From 2deae4af7927443208fb8a881415cc324c9f9e11 Mon Sep 17 00:00:00 2001 From: p-sw Date: Tue, 11 Jun 2024 16:20:24 +0900 Subject: [PATCH] refactor(components): update import statements Updated the import statements in multiple component files to use the updated package name for shared resources. This change was necessary for import consistency and to ensure proper functioning of the components as per the new package name "@pswui-lib/shared@1.0.0". --- packages/react/components/Button.tsx | 2 +- packages/react/components/Checkbox.tsx | 2 +- packages/react/components/Dialog.tsx | 2 +- packages/react/components/Drawer.tsx | 2 +- packages/react/components/Input.tsx | 2 +- packages/react/components/Label.tsx | 2 +- packages/react/components/Popover.tsx | 2 +- packages/react/components/Switch.tsx | 2 +- packages/react/components/Tabs.tsx | 2 +- packages/react/components/Toast.tsx | 2 +- packages/react/components/Tooltip.tsx | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/react/components/Button.tsx b/packages/react/components/Button.tsx index f30149a..68b36d7 100644 --- a/packages/react/components/Button.tsx +++ b/packages/react/components/Button.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { vcn, VariantProps, Slot, AsChild } from "../lib/shared@1.0.0"; +import { vcn, VariantProps, Slot, AsChild } from "@pswui-lib/shared@1.0.0"; const colors = { outline: { diff --git a/packages/react/components/Checkbox.tsx b/packages/react/components/Checkbox.tsx index c334271..0de4d88 100644 --- a/packages/react/components/Checkbox.tsx +++ b/packages/react/components/Checkbox.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { VariantProps, vcn } from "../lib/shared@1.0.0"; +import { VariantProps, vcn } from "@pswui-lib/shared@1.0.0"; const checkboxColors = { background: { diff --git a/packages/react/components/Dialog.tsx b/packages/react/components/Dialog.tsx index 9dab755..bb40f43 100644 --- a/packages/react/components/Dialog.tsx +++ b/packages/react/components/Dialog.tsx @@ -1,5 +1,5 @@ import React, { Dispatch, SetStateAction, useState } from "react"; -import { Slot, VariantProps, vcn } from "../lib/shared@1.0.0"; +import { Slot, VariantProps, vcn } from "@pswui-lib/shared@1.0.0"; import ReactDOM from "react-dom"; /** diff --git a/packages/react/components/Drawer.tsx b/packages/react/components/Drawer.tsx index 217927e..4395306 100644 --- a/packages/react/components/Drawer.tsx +++ b/packages/react/components/Drawer.tsx @@ -7,7 +7,7 @@ import React, { useRef, useState, } from "react"; -import { AsChild, Slot, VariantProps, vcn } from "../lib/shared@1.0.0"; +import { AsChild, Slot, VariantProps, vcn } from "@pswui-lib/shared@1.0.0"; import { createPortal } from "react-dom"; interface IDrawerContext { diff --git a/packages/react/components/Input.tsx b/packages/react/components/Input.tsx index ac58a9e..92fa57e 100644 --- a/packages/react/components/Input.tsx +++ b/packages/react/components/Input.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { VariantProps, vcn } from "../lib/shared@1.0.0"; +import { VariantProps, vcn } from "@pswui-lib/shared@1.0.0"; const inputColors = { background: { diff --git a/packages/react/components/Label.tsx b/packages/react/components/Label.tsx index da26e4c..8c46cb2 100644 --- a/packages/react/components/Label.tsx +++ b/packages/react/components/Label.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { VariantProps, vcn } from "../lib/shared@1.0.0"; +import { VariantProps, vcn } from "@pswui-lib/shared@1.0.0"; const [labelVariant, resolveLabelVariantProps] = vcn({ base: "has-[input[disabled]]:brightness-75 has-[input[disabled]]:cursor-not-allowed has-[input:invalid]:text-red-500", diff --git a/packages/react/components/Popover.tsx b/packages/react/components/Popover.tsx index 5652a8d..cbd36d4 100644 --- a/packages/react/components/Popover.tsx +++ b/packages/react/components/Popover.tsx @@ -1,5 +1,5 @@ import React, { useContext, useEffect, useRef } from "react"; -import { AsChild, Slot, VariantProps, vcn } from "../lib/shared@1.0.0"; +import { AsChild, Slot, VariantProps, vcn } from "@pswui-lib/shared@1.0.0"; interface IPopoverContext { opened: boolean; diff --git a/packages/react/components/Switch.tsx b/packages/react/components/Switch.tsx index e4be78f..4535ed2 100644 --- a/packages/react/components/Switch.tsx +++ b/packages/react/components/Switch.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { VariantProps, vcn } from "../lib/shared@1.0.0"; +import { VariantProps, vcn } from "@pswui-lib/shared@1.0.0"; const switchColors = { background: { diff --git a/packages/react/components/Tabs.tsx b/packages/react/components/Tabs.tsx index cddf192..fc9e1d6 100644 --- a/packages/react/components/Tabs.tsx +++ b/packages/react/components/Tabs.tsx @@ -1,4 +1,4 @@ -import { AsChild, Slot, VariantProps, vcn } from "../lib/shared@1.0.0"; +import { AsChild, Slot, VariantProps, vcn } from "@pswui-lib/shared@1.0.0"; import React from "react"; interface Tab { diff --git a/packages/react/components/Toast.tsx b/packages/react/components/Toast.tsx index dd9a2b9..f22e771 100644 --- a/packages/react/components/Toast.tsx +++ b/packages/react/components/Toast.tsx @@ -1,6 +1,6 @@ import React, { useEffect, useId, useRef } from "react"; import ReactDOM from "react-dom"; -import { VariantProps, vcn } from "../lib/shared@1.0.0"; +import { VariantProps, vcn } from "@pswui-lib/shared@1.0.0"; interface ToastOption { closeButton: boolean; diff --git a/packages/react/components/Tooltip.tsx b/packages/react/components/Tooltip.tsx index a50c773..bedf002 100644 --- a/packages/react/components/Tooltip.tsx +++ b/packages/react/components/Tooltip.tsx @@ -1,5 +1,5 @@ import React, { useState } from "react"; -import { VariantProps, vcn } from "../lib/shared@1.0.0"; +import { VariantProps, vcn } from "@pswui-lib/shared@1.0.0"; interface TooltipContextBody { position: "top" | "bottom" | "left" | "right";