refactor: update import statements in react components
Updated the import statements in multiple react components to use the new `@pswui-lib` package instead of the deprecated `@pswui-lib/shared@1.0.0`. This makes the code cleaner and easier
This commit is contained in:
parent
f07d496792
commit
76ec211d81
@ -1,5 +1,5 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { vcn, VariantProps, Slot, AsChild } from "@pswui-lib/shared@1.0.0";
|
import { vcn, VariantProps, Slot, AsChild } from "@pswui-lib";
|
||||||
|
|
||||||
const colors = {
|
const colors = {
|
||||||
outline: {
|
outline: {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { VariantProps, vcn } from "@pswui-lib/shared@1.0.0";
|
import { VariantProps, vcn } from "@pswui-lib";
|
||||||
|
|
||||||
const checkboxColors = {
|
const checkboxColors = {
|
||||||
background: {
|
background: {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import React, { Dispatch, SetStateAction, useState } from "react";
|
import React, { Dispatch, SetStateAction, useState } from "react";
|
||||||
import { Slot, VariantProps, vcn } from "@pswui-lib/shared@1.0.0";
|
import { Slot, VariantProps, vcn } from "@pswui-lib";
|
||||||
import ReactDOM from "react-dom";
|
import ReactDOM from "react-dom";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -7,7 +7,7 @@ import React, {
|
|||||||
useRef,
|
useRef,
|
||||||
useState,
|
useState,
|
||||||
} from "react";
|
} from "react";
|
||||||
import { AsChild, Slot, VariantProps, vcn } from "@pswui-lib/shared@1.0.0";
|
import { AsChild, Slot, VariantProps, vcn } from "@pswui-lib";
|
||||||
import { createPortal } from "react-dom";
|
import { createPortal } from "react-dom";
|
||||||
|
|
||||||
interface IDrawerContext {
|
interface IDrawerContext {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { VariantProps, vcn } from "@pswui-lib/shared@1.0.0";
|
import { VariantProps, vcn } from "@pswui-lib";
|
||||||
|
|
||||||
const inputColors = {
|
const inputColors = {
|
||||||
background: {
|
background: {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { VariantProps, vcn } from "@pswui-lib/shared@1.0.0";
|
import { VariantProps, vcn } from "@pswui-lib";
|
||||||
|
|
||||||
const [labelVariant, resolveLabelVariantProps] = vcn({
|
const [labelVariant, resolveLabelVariantProps] = vcn({
|
||||||
base: "has-[input[disabled]]:brightness-75 has-[input[disabled]]:cursor-not-allowed has-[input:invalid]:text-red-500",
|
base: "has-[input[disabled]]:brightness-75 has-[input[disabled]]:cursor-not-allowed has-[input:invalid]:text-red-500",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import React, { useContext, useEffect, useRef } from "react";
|
import React, { useContext, useEffect, useRef } from "react";
|
||||||
import { AsChild, Slot, VariantProps, vcn } from "@pswui-lib/shared@1.0.0";
|
import { AsChild, Slot, VariantProps, vcn } from "@pswui-lib";
|
||||||
|
|
||||||
interface IPopoverContext {
|
interface IPopoverContext {
|
||||||
opened: boolean;
|
opened: boolean;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { VariantProps, vcn } from "@pswui-lib/shared@1.0.0";
|
import { VariantProps, vcn } from "@pswui-lib";
|
||||||
|
|
||||||
const switchColors = {
|
const switchColors = {
|
||||||
background: {
|
background: {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { AsChild, Slot, VariantProps, vcn } from "@pswui-lib/shared@1.0.0";
|
import { AsChild, Slot, VariantProps, vcn } from "@pswui-lib";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
interface Tab {
|
interface Tab {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import React, { useEffect, useId, useRef } from "react";
|
import React, { useEffect, useId, useRef } from "react";
|
||||||
import ReactDOM from "react-dom";
|
import ReactDOM from "react-dom";
|
||||||
import { VariantProps, vcn } from "@pswui-lib/shared@1.0.0";
|
import { VariantProps, vcn } from "@pswui-lib";
|
||||||
|
|
||||||
interface ToastOption {
|
interface ToastOption {
|
||||||
closeButton: boolean;
|
closeButton: boolean;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
import { VariantProps, vcn } from "@pswui-lib/shared@1.0.0";
|
import { VariantProps, vcn } from "@pswui-lib";
|
||||||
|
|
||||||
interface TooltipContextBody {
|
interface TooltipContextBody {
|
||||||
position: "top" | "bottom" | "left" | "right";
|
position: "top" | "bottom" | "left" | "right";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user