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".
This commit is contained in:
p-sw 2024-06-11 16:20:24 +09:00
parent edfaef2c75
commit 2deae4af79
11 changed files with 11 additions and 11 deletions

View File

@ -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: {

View File

@ -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: {

View File

@ -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";
/**

View File

@ -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 {

View File

@ -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: {

View File

@ -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",

View File

@ -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;

View File

@ -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: {

View File

@ -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 {

View File

@ -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;

View File

@ -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";