fix: fix pswui component imports

This commit is contained in:
Shinwoo PARK 2024-06-13 18:23:46 +00:00
parent 4154c8211c
commit 8e981b02c8
66 changed files with 111 additions and 111 deletions

View File

@ -10,7 +10,7 @@ import Home from "./Home";
import DocsLayout from "./DocsLayout";
import ErrorBoundary from "./ErrorHandler";
import DynamicLayout from "./DynamicLayout";
import { Code } from "./components/LoadedCode";
import { Code } from "@/components/LoadedCode";
import DocsIntroduction, {
tableOfContents as docsIntroductionToc,
@ -31,7 +31,7 @@ import React, {
useRef,
useState,
} from "react";
import { Tooltip, TooltipContent } from "@components/Tooltip.tsx";
import { Tooltip, TooltipContent } from "@pswui/Tooltip";
function buildThresholdList() {
const thresholds: number[] = [];

View File

@ -1,5 +1,5 @@
import { Link } from "react-router-dom";
import { Button } from "../components/Button";
import { Button } from "@pswui/Button";
function Home() {
return (

View File

@ -1,16 +1,16 @@
import { useEffect, useState } from "react";
import { Link, Outlet, useLocation } from "react-router-dom";
import { Button } from "../components/Button";
import { Button } from "@pswui/Button";
import RouteObject from "./RouteObject";
import { Toaster } from "@components/Toast";
import { Popover, PopoverContent, PopoverTrigger } from "@components/Popover";
import { Toaster } from "@pswui/Toast";
import { Popover, PopoverContent, PopoverTrigger } from "@pswui/Popover";
import {
DrawerClose,
DrawerContent,
DrawerOverlay,
DrawerRoot,
DrawerTrigger,
} from "@components/Drawer";
} from "@pswui/Drawer";
type Theme = "light" | "dark" | "system";

View File

@ -1,8 +1,8 @@
import { forwardRef, useEffect, useState } from "react";
import SyntaxHighlighter from "react-syntax-highlighter";
import { gruvboxDark } from "react-syntax-highlighter/dist/cjs/styles/hljs";
import { Button } from "@components/Button";
import { useToast } from "@components/Toast";
import { Button } from "@pswui/Button";
import { useToast } from "@pswui/Toast";
import { twMerge } from "tailwind-merge";
export const GITHUB = "https://raw.githubusercontent.com/p-sw/ui/main";

View File

@ -1,4 +1,4 @@
import { TabProvider, TabTrigger, TabContent, TabList } from "@components/Tabs";
import { TabProvider, TabTrigger, TabContent, TabList } from "@pswui/Tabs";
import { Story } from "@/components/Story";
import { LoadedCode, GITHUB } from "@/components/LoadedCode";
import { ButtonDemo } from "./ButtonBlocks/Preview";

View File

@ -1,4 +1,4 @@
import { Button } from "@components/Button";
import { Button } from "@pswui/Button";
export const Danger = () => {
return <Button preset="danger">Danger</Button>;

View File

@ -1,4 +1,4 @@
import { Button } from "@components/Button";
import { Button } from "@pswui/Button";
export const Default = () => {
return <Button preset="default">Default</Button>;

View File

@ -1,4 +1,4 @@
import { Button } from "@components/Button";
import { Button } from "@pswui/Button";
export const Ghost = () => {
return <Button preset="ghost">Ghost</Button>;

View File

@ -1,4 +1,4 @@
import { Button } from "@components/Button";
import { Button } from "@pswui/Button";
export const Link = () => {
return <Button preset="link">Link</Button>;

View File

@ -1,4 +1,4 @@
import { Button } from "@components/Button";
import { Button } from "@pswui/Button";
export const Success = () => {
return <Button preset="success">Success</Button>;

View File

@ -1,4 +1,4 @@
import { Button } from "@components/Button";
import { Button } from "@pswui/Button";
export const Warning = () => {
return <Button preset="warning">Warning</Button>;

View File

@ -1,4 +1,4 @@
import { Button } from "@components/Button";
import { Button } from "@pswui/Button";
export function ButtonDemo() {
return <Button>Button</Button>;

View File

@ -1,4 +1,4 @@
import { TabProvider, TabTrigger, TabContent, TabList } from "@components/Tabs";
import { TabProvider, TabTrigger, TabContent, TabList } from "@pswui/Tabs";
import { Story } from "@/components/Story";
import { LoadedCode, GITHUB } from "@/components/LoadedCode";
import { CheckboxDemo } from "./CheckboxBlocks/Preview";

View File

@ -1,5 +1,5 @@
import { Label } from "@components/Label";
import { Checkbox } from "@components/Checkbox";
import { Label } from "@pswui/Label";
import { Checkbox } from "@pswui/Checkbox";
export function Disabled() {
return (

View File

@ -1,5 +1,5 @@
import { Label } from "@components/Label";
import { Checkbox } from "@components/Checkbox";
import { Label } from "@pswui/Label";
import { Checkbox } from "@pswui/Checkbox";
export function Text() {
return (

View File

@ -1,5 +1,5 @@
import { Checkbox } from "@components/Checkbox";
import { Label } from "@components/Label";
import { Checkbox } from "@pswui/Checkbox";
import { Label } from "@pswui/Label";
export function CheckboxDemo() {
return (

View File

@ -1,4 +1,4 @@
import { TabProvider, TabTrigger, TabContent, TabList } from "@components/Tabs";
import { TabProvider, TabTrigger, TabContent, TabList } from "@pswui/Tabs";
import { Story } from "@/components/Story";
import { LoadedCode, GITHUB } from "@/components/LoadedCode";
import { DialogDemo } from "./DialogBlocks/Preview";

View File

@ -1,4 +1,4 @@
import { Button } from "@components/Button";
import { Button } from "@pswui/Button";
import {
DialogRoot,
DialogTrigger,
@ -9,7 +9,7 @@ import {
DialogSubtitle,
DialogFooter,
DialogClose,
} from "@components/Dialog";
} from "@pswui/Dialog";
export function BasicInformationalDialog() {
return (

View File

@ -8,9 +8,9 @@ import {
DialogSubtitle,
DialogFooter,
DialogClose,
} from "@components/Dialog";
import { Button } from "@components/Button";
import { useToast } from "@components/Toast";
} from "@pswui/Dialog";
import { Button } from "@pswui/Button";
import { useToast } from "@pswui/Toast";
export function DeletingItem() {
const { toast } = useToast();

View File

@ -8,8 +8,8 @@ import {
DialogSubtitle,
DialogFooter,
DialogClose,
} from "@components/Dialog";
import { Button } from "@components/Button";
} from "@pswui/Dialog";
import { Button } from "@pswui/Button";
export function DialogDemo() {
return (

View File

@ -1,4 +1,4 @@
import { TabProvider, TabTrigger, TabContent, TabList } from "@components/Tabs";
import { TabProvider, TabTrigger, TabContent, TabList } from "@pswui/Tabs";
import { Story } from "@/components/Story";
import { LoadedCode, GITHUB } from '@/components/LoadedCode';
import { DrawerDemo } from "./DrawerBlocks/Preview";

View File

@ -7,8 +7,8 @@ import {
DrawerBody,
DrawerFooter,
DrawerClose,
} from "@components/Drawer";
import { Button } from "@components/Button";
} from "@pswui/Drawer";
import { Button } from "@pswui/Button";
export const Bottom = () => {
return (

View File

@ -7,8 +7,8 @@ import {
DrawerBody,
DrawerFooter,
DrawerClose,
} from "@components/Drawer";
import { Button } from "@components/Button";
} from "@pswui/Drawer";
import { Button } from "@pswui/Button";
export const Left = () => {
return (

View File

@ -7,8 +7,8 @@ import {
DrawerBody,
DrawerFooter,
DrawerClose,
} from "@components/Drawer";
import { Button } from "@components/Button";
} from "@pswui/Drawer";
import { Button } from "@pswui/Button";
export const Right = () => {
return (

View File

@ -7,8 +7,8 @@ import {
DrawerBody,
DrawerFooter,
DrawerClose,
} from "@components/Drawer";
import { Button } from "@components/Button";
} from "@pswui/Drawer";
import { Button } from "@pswui/Button";
export const Top = () => {
return (

View File

@ -1,4 +1,4 @@
import { Button } from "@components/Button";
import { Button } from "@pswui/Button";
import {
DrawerRoot,
DrawerTrigger,
@ -8,7 +8,7 @@ import {
DrawerHeader,
DrawerBody,
DrawerFooter,
} from "@components/Drawer";
} from "@pswui/Drawer";
export const DrawerDemo = () => {
return (

View File

@ -1,4 +1,4 @@
import { TabProvider, TabTrigger, TabContent, TabList } from "@components/Tabs";
import { TabProvider, TabTrigger, TabContent, TabList } from "@pswui/Tabs";
import { Story } from "@/components/Story";
import { LoadedCode, GITHUB } from "@/components/LoadedCode";
import { InputDemo } from "./InputBlocks/Preview";

View File

@ -1,4 +1,4 @@
import { Input } from "@components/Input";
import { Input } from "@pswui/Input";
export function Disabled() {
return <Input type="text" disabled />;

View File

@ -1,4 +1,4 @@
import { Input } from "@components/Input";
import { Input } from "@pswui/Input";
export function Invalid() {
return <Input type="text" invalid="Invalid Input" />;

View File

@ -1,4 +1,4 @@
import { Input } from "@components/Input";
import { Input } from "@pswui/Input";
export function InputDemo() {
return <Input type="text" />;

View File

@ -1,5 +1,5 @@
import { Button } from "@components/Button";
import { Input, InputFrame } from "@components/Input";
import { Button } from "@pswui/Button";
import { Input, InputFrame } from "@pswui/Input";
export function InputFrameDemo() {
return (

View File

@ -1,6 +1,6 @@
import {
TabProvider, TabTrigger, TabContent, TabList
} from "@components/Tabs";
} from "@pswui/Tabs";
import { Story } from "@/components/Story";
import { LoadedCode, GITHUB } from "@/components/LoadedCode";
import { LabelDemo } from "./LabelBlocks/Preview";

View File

@ -1,5 +1,5 @@
import { Label } from "@components/Label";
import { Input } from "@components/Input";
import { Label } from "@pswui/Label";
import { Input } from "@pswui/Input";
export function Disabled() {
return (

View File

@ -1,5 +1,5 @@
import { Label } from "@components/Label";
import { Checkbox } from "@components/Checkbox";
import { Label } from "@pswui/Label";
import { Checkbox } from "@pswui/Checkbox";
export function Horizontal() {
return (

View File

@ -1,5 +1,5 @@
import { Label } from "@components/Label";
import { Input } from "@components/Input";
import { Label } from "@pswui/Label";
import { Input } from "@pswui/Input";
export function Invalid() {
return (

View File

@ -1,5 +1,5 @@
import { Label } from "@components/Label";
import { Input } from "@components/Input";
import { Label } from "@pswui/Label";
import { Input } from "@pswui/Input";
export function Vertical() {
return (

View File

@ -1,5 +1,5 @@
import { Label } from "@components/Label";
import { Input } from "@components/Input";
import { Label } from "@pswui/Label";
import { Input } from "@pswui/Input";
export function LabelDemo() {
return (

View File

@ -1,4 +1,4 @@
import { TabProvider, TabTrigger, TabContent, TabList } from "@components/Tabs";
import { TabProvider, TabTrigger, TabContent, TabList } from "@pswui/Tabs";
import { Story } from "@/components/Story";
import { LoadedCode, GITHUB } from "@/components/LoadedCode";
import { PopoverDemo } from "./PopoverBlocks/Preview";

View File

@ -1,5 +1,5 @@
import { Popover, PopoverTrigger, PopoverContent } from "@components/Popover.tsx";
import { Button } from "@components/Button.tsx";
import { Popover, PopoverTrigger, PopoverContent } from "@pswui/Popover.tsx";
import { Button } from "@pswui/Button.tsx";
import { useState } from "react";
const DarkIcon = () => {

View File

@ -2,9 +2,9 @@ import {
Popover,
PopoverTrigger,
PopoverContent,
} from "@components/Popover.tsx";
import { Button } from "@components/Button.tsx";
import { useToast } from "@components/Toast.tsx";
} from "@pswui/Popover.tsx";
import { Button } from "@pswui/Button.tsx";
import { useToast } from "@pswui/Toast.tsx";
import {
createContext,
Dispatch,
@ -14,8 +14,8 @@ import {
useState,
useTransition,
} from "react";
import { Label } from "@components/Label.tsx";
import { Input } from "@components/Input.tsx";
import { Label } from "@pswui/Label.tsx";
import { Input } from "@pswui/Input.tsx";
interface UserControlState {
signIn: boolean;

View File

@ -1,5 +1,5 @@
import { Button } from "@components/Button";
import { Popover, PopoverContent, PopoverTrigger } from "@components/Popover";
import { Button } from "@pswui/Button";
import { Popover, PopoverContent, PopoverTrigger } from "@pswui/Popover";
export function PopoverDemo() {
return (

View File

@ -1,4 +1,4 @@
import { TabProvider, TabTrigger, TabContent, TabList } from "@components/Tabs";
import { TabProvider, TabTrigger, TabContent, TabList } from "@pswui/Tabs";
import { Story } from "@/components/Story";
import { LoadedCode, GITHUB } from "@/components/LoadedCode";
import { SwitchDemo } from "./SwitchBlocks/Preview";

View File

@ -1,4 +1,4 @@
import { Switch } from "@components/Switch";
import { Switch } from "@pswui/Switch";
export function SwitchDemo() {
return <Switch />;

View File

@ -1,4 +1,4 @@
import { TabProvider, TabTrigger, TabContent, TabList } from "@components/Tabs";
import { TabProvider, TabTrigger, TabContent, TabList } from "@pswui/Tabs";
import { Story } from "@/components/Story";
import { LoadedCode, GITHUB } from "@/components/LoadedCode";
import { TabsDemo } from "./TabsBlocks/Preview";

View File

@ -1,4 +1,4 @@
import { TabProvider, TabTrigger, TabContent, TabList } from "@components/Tabs";
import { TabProvider, TabTrigger, TabContent, TabList } from "@pswui/Tabs";
export function TabsDemo() {
return (

View File

@ -1,4 +1,4 @@
import { TabProvider, TabTrigger, TabContent, TabList } from "@components/Tabs"
import { TabProvider, TabTrigger, TabContent, TabList } from "@pswui/Tabs"
import { Story } from "@/components/Story";
import { LoadedCode, GITHUB } from "@/components/LoadedCode";
import { ToastDemo } from "./ToastBlocks/Preview";

View File

@ -1,5 +1,5 @@
import { Button } from "@components/Button";
import { Toaster, useToast } from "@components/Toast";
import { Button } from "@pswui/Button";
import { Toaster, useToast } from "@pswui/Toast";
function Children() {
const { toast } = useToast();

View File

@ -1,5 +1,5 @@
import { Button } from "@components/Button";
import { Toaster, useToast } from "@components/Toast";
import { Button } from "@pswui/Button";
import { Toaster, useToast } from "@pswui/Toast";
function Children() {
const { toast } = useToast();

View File

@ -1,5 +1,5 @@
import { Button } from "@components/Button";
import { Toaster, useToast } from "@components/Toast";
import { Button } from "@pswui/Button";
import { Toaster, useToast } from "@pswui/Toast";
function Children() {
const { toast } = useToast();

View File

@ -1,5 +1,5 @@
import { Button } from "@components/Button";
import { Toaster, useToast } from "@components/Toast";
import { Button } from "@pswui/Button";
import { Toaster, useToast } from "@pswui/Toast";
function Children() {
const { toast } = useToast();

View File

@ -1,5 +1,5 @@
import { Button } from "@components/Button";
import { Toaster, useToast } from "@components/Toast";
import { Button } from "@pswui/Button";
import { Toaster, useToast } from "@pswui/Toast";
function Children() {
const { toast } = useToast();

View File

@ -1,5 +1,5 @@
import { Button } from "@components/Button";
import { Toaster, useToast } from "@components/Toast";
import { Button } from "@pswui/Button";
import { Toaster, useToast } from "@pswui/Toast";
function Children() {
const { toast } = useToast();

View File

@ -1,5 +1,5 @@
import { Button } from "@components/Button";
import { Toaster, useToast } from "@components/Toast";
import { Button } from "@pswui/Button";
import { Toaster, useToast } from "@pswui/Toast";
function Children() {
const { toast } = useToast();

View File

@ -1,4 +1,4 @@
import { TabProvider, TabTrigger, TabContent, TabList } from "@components/Tabs";
import { TabProvider, TabTrigger, TabContent, TabList } from "@pswui/Tabs";
import { Story } from "@/components/Story";
import { LoadedCode, GITHUB } from "@/components/LoadedCode";
import { TooltipDemo } from "./TooltipBlocks/Preview";

View File

@ -1,5 +1,5 @@
import { Button } from "@components/Button";
import { Tooltip, TooltipContent } from "@components/Tooltip";
import { Button } from "@pswui/Button";
import { Tooltip, TooltipContent } from "@pswui/Tooltip";
export function Bottom() {
return (

View File

@ -1,5 +1,5 @@
import { Button } from "@components/Button";
import { Tooltip, TooltipContent } from "@components/Tooltip";
import { Button } from "@pswui/Button";
import { Tooltip, TooltipContent } from "@pswui/Tooltip";
import { useState } from "react";
export function Controlled() {

View File

@ -1,5 +1,5 @@
import { Button } from "@components/Button";
import { Tooltip, TooltipContent } from "@components/Tooltip";
import { Button } from "@pswui/Button";
import { Tooltip, TooltipContent } from "@pswui/Tooltip";
export function EarlyDelay() {
return (

View File

@ -1,5 +1,5 @@
import { Button } from "@components/Button";
import { Tooltip, TooltipContent } from "@components/Tooltip";
import { Button } from "@pswui/Button";
import { Tooltip, TooltipContent } from "@pswui/Tooltip";
export function LateDelay() {
return (

View File

@ -1,5 +1,5 @@
import { Button } from "@components/Button";
import { Tooltip, TooltipContent } from "@components/Tooltip";
import { Button } from "@pswui/Button";
import { Tooltip, TooltipContent } from "@pswui/Tooltip";
export function Left() {
return (

View File

@ -1,5 +1,5 @@
import { Button } from "@components/Button";
import { Tooltip, TooltipContent } from "@components/Tooltip";
import { Button } from "@pswui/Button";
import { Tooltip, TooltipContent } from "@pswui/Tooltip";
export function NoDelay() {
return (

View File

@ -1,5 +1,5 @@
import { Button } from "@components/Button";
import { Tooltip, TooltipContent } from "@components/Tooltip";
import { Button } from "@pswui/Button";
import { Tooltip, TooltipContent } from "@pswui/Tooltip";
export function Right() {
return (

View File

@ -1,5 +1,5 @@
import { Button } from "@components/Button";
import { Tooltip, TooltipContent } from "@components/Tooltip";
import { Button } from "@pswui/Button";
import { Tooltip, TooltipContent } from "@pswui/Tooltip";
export function Top() {
return (

View File

@ -1,5 +1,5 @@
import { Button } from "@components/Button";
import { Tooltip, TooltipContent } from "@components/Tooltip";
import { Button } from "@pswui/Button";
import { Tooltip, TooltipContent } from "@pswui/Tooltip";
export function TooltipDemo() {
return (

View File

@ -1,4 +1,4 @@
import {TabProvider, TabContent, TabList, TabTrigger} from "@components/Tabs";
import {TabProvider, TabContent, TabList, TabTrigger} from "@pswui/Tabs";
import {Code} from "@/components/LoadedCode";
# Installation

View File

@ -1,5 +1,5 @@
import { Link } from "react-router-dom";
import { Button } from "../../components/Button";
import { Button } from "@pswui/Button";
function PageNotFound() {
return (

View File

@ -1,5 +1,5 @@
import { Link } from "react-router-dom";
import { Button } from "../../components/Button";
import { Button } from "@pswui/Button";
function UnexpectedError() {
return (