@ichaingo/ui 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -1
- package/.babelrc +0 -12
- package/components.json +0 -21
- package/eslint.config.mjs +0 -12
- package/postcss.config.js +0 -6
- package/src/components/ui/accordion.tsx +0 -64
- package/src/components/ui/alert-dialog.tsx +0 -155
- package/src/components/ui/alert.tsx +0 -66
- package/src/components/ui/aspect-ratio.tsx +0 -9
- package/src/components/ui/avatar.tsx +0 -51
- package/src/components/ui/badge.tsx +0 -46
- package/src/components/ui/breadcrumb.tsx +0 -109
- package/src/components/ui/button.tsx +0 -59
- package/src/components/ui/calendar.tsx +0 -211
- package/src/components/ui/card.tsx +0 -92
- package/src/components/ui/carousel.tsx +0 -239
- package/src/components/ui/checkbox.tsx +0 -30
- package/src/components/ui/collapsible.tsx +0 -31
- package/src/components/ui/command.tsx +0 -182
- package/src/components/ui/context-menu.tsx +0 -250
- package/src/components/ui/dialog.tsx +0 -141
- package/src/components/ui/dropdown-menu.tsx +0 -255
- package/src/components/ui/form.tsx +0 -165
- package/src/components/ui/hover-card.tsx +0 -42
- package/src/components/ui/input.tsx +0 -21
- package/src/components/ui/label.tsx +0 -24
- package/src/components/ui/menubar.tsx +0 -274
- package/src/components/ui/navigation-menu.tsx +0 -168
- package/src/components/ui/pagination.tsx +0 -125
- package/src/components/ui/popover.tsx +0 -46
- package/src/components/ui/progress.tsx +0 -29
- package/src/components/ui/radio-group.tsx +0 -43
- package/src/components/ui/resizable.tsx +0 -54
- package/src/components/ui/scroll-area.tsx +0 -56
- package/src/components/ui/select.tsx +0 -183
- package/src/components/ui/separator.tsx +0 -26
- package/src/components/ui/sheet.tsx +0 -137
- package/src/components/ui/skeleton.tsx +0 -13
- package/src/components/ui/slider.tsx +0 -61
- package/src/components/ui/sonner.tsx +0 -23
- package/src/components/ui/switch.tsx +0 -29
- package/src/components/ui/table.tsx +0 -114
- package/src/components/ui/tabs.tsx +0 -64
- package/src/components/ui/textarea.tsx +0 -18
- package/src/components/ui/toggle-group.tsx +0 -71
- package/src/components/ui/toggle.tsx +0 -45
- package/src/components/ui/tooltip.tsx +0 -59
- package/src/index.ts +0 -46
- package/src/lib/utils.ts +0 -6
- package/src/style.css +0 -0
- package/tailwind.config.js +0 -52
- package/tsconfig.json +0 -19
- package/tsconfig.lib.json +0 -54
- package/tsconfig.spec.json +0 -32
- package/vite.config.ts +0 -136
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import * as React from "react"
|
|
2
|
-
|
|
3
|
-
import { cn } from "@/lib/utils"
|
|
4
|
-
|
|
5
|
-
function Table({ className, ...props }: React.ComponentProps<"table">) {
|
|
6
|
-
return (
|
|
7
|
-
<div
|
|
8
|
-
data-slot="table-container"
|
|
9
|
-
className="relative w-full overflow-x-auto"
|
|
10
|
-
>
|
|
11
|
-
<table
|
|
12
|
-
data-slot="table"
|
|
13
|
-
className={cn("w-full caption-bottom text-sm", className)}
|
|
14
|
-
{...props}
|
|
15
|
-
/>
|
|
16
|
-
</div>
|
|
17
|
-
)
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
function TableHeader({ className, ...props }: React.ComponentProps<"thead">) {
|
|
21
|
-
return (
|
|
22
|
-
<thead
|
|
23
|
-
data-slot="table-header"
|
|
24
|
-
className={cn("[&_tr]:border-b", className)}
|
|
25
|
-
{...props}
|
|
26
|
-
/>
|
|
27
|
-
)
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
function TableBody({ className, ...props }: React.ComponentProps<"tbody">) {
|
|
31
|
-
return (
|
|
32
|
-
<tbody
|
|
33
|
-
data-slot="table-body"
|
|
34
|
-
className={cn("[&_tr:last-child]:border-0", className)}
|
|
35
|
-
{...props}
|
|
36
|
-
/>
|
|
37
|
-
)
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">) {
|
|
41
|
-
return (
|
|
42
|
-
<tfoot
|
|
43
|
-
data-slot="table-footer"
|
|
44
|
-
className={cn(
|
|
45
|
-
"bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",
|
|
46
|
-
className
|
|
47
|
-
)}
|
|
48
|
-
{...props}
|
|
49
|
-
/>
|
|
50
|
-
)
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
function TableRow({ className, ...props }: React.ComponentProps<"tr">) {
|
|
54
|
-
return (
|
|
55
|
-
<tr
|
|
56
|
-
data-slot="table-row"
|
|
57
|
-
className={cn(
|
|
58
|
-
"hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
|
|
59
|
-
className
|
|
60
|
-
)}
|
|
61
|
-
{...props}
|
|
62
|
-
/>
|
|
63
|
-
)
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
function TableHead({ className, ...props }: React.ComponentProps<"th">) {
|
|
67
|
-
return (
|
|
68
|
-
<th
|
|
69
|
-
data-slot="table-head"
|
|
70
|
-
className={cn(
|
|
71
|
-
"text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
72
|
-
className
|
|
73
|
-
)}
|
|
74
|
-
{...props}
|
|
75
|
-
/>
|
|
76
|
-
)
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
function TableCell({ className, ...props }: React.ComponentProps<"td">) {
|
|
80
|
-
return (
|
|
81
|
-
<td
|
|
82
|
-
data-slot="table-cell"
|
|
83
|
-
className={cn(
|
|
84
|
-
"p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
85
|
-
className
|
|
86
|
-
)}
|
|
87
|
-
{...props}
|
|
88
|
-
/>
|
|
89
|
-
)
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
function TableCaption({
|
|
93
|
-
className,
|
|
94
|
-
...props
|
|
95
|
-
}: React.ComponentProps<"caption">) {
|
|
96
|
-
return (
|
|
97
|
-
<caption
|
|
98
|
-
data-slot="table-caption"
|
|
99
|
-
className={cn("text-muted-foreground mt-4 text-sm", className)}
|
|
100
|
-
{...props}
|
|
101
|
-
/>
|
|
102
|
-
)
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export {
|
|
106
|
-
Table,
|
|
107
|
-
TableHeader,
|
|
108
|
-
TableBody,
|
|
109
|
-
TableFooter,
|
|
110
|
-
TableHead,
|
|
111
|
-
TableRow,
|
|
112
|
-
TableCell,
|
|
113
|
-
TableCaption,
|
|
114
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import * as React from "react"
|
|
2
|
-
import * as TabsPrimitive from "@radix-ui/react-tabs"
|
|
3
|
-
|
|
4
|
-
import { cn } from "@/lib/utils"
|
|
5
|
-
|
|
6
|
-
function Tabs({
|
|
7
|
-
className,
|
|
8
|
-
...props
|
|
9
|
-
}: React.ComponentProps<typeof TabsPrimitive.Root>) {
|
|
10
|
-
return (
|
|
11
|
-
<TabsPrimitive.Root
|
|
12
|
-
data-slot="tabs"
|
|
13
|
-
className={cn("flex flex-col gap-2", className)}
|
|
14
|
-
{...props}
|
|
15
|
-
/>
|
|
16
|
-
)
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function TabsList({
|
|
20
|
-
className,
|
|
21
|
-
...props
|
|
22
|
-
}: React.ComponentProps<typeof TabsPrimitive.List>) {
|
|
23
|
-
return (
|
|
24
|
-
<TabsPrimitive.List
|
|
25
|
-
data-slot="tabs-list"
|
|
26
|
-
className={cn(
|
|
27
|
-
"bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",
|
|
28
|
-
className
|
|
29
|
-
)}
|
|
30
|
-
{...props}
|
|
31
|
-
/>
|
|
32
|
-
)
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
function TabsTrigger({
|
|
36
|
-
className,
|
|
37
|
-
...props
|
|
38
|
-
}: React.ComponentProps<typeof TabsPrimitive.Trigger>) {
|
|
39
|
-
return (
|
|
40
|
-
<TabsPrimitive.Trigger
|
|
41
|
-
data-slot="tabs-trigger"
|
|
42
|
-
className={cn(
|
|
43
|
-
"data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
44
|
-
className
|
|
45
|
-
)}
|
|
46
|
-
{...props}
|
|
47
|
-
/>
|
|
48
|
-
)
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function TabsContent({
|
|
52
|
-
className,
|
|
53
|
-
...props
|
|
54
|
-
}: React.ComponentProps<typeof TabsPrimitive.Content>) {
|
|
55
|
-
return (
|
|
56
|
-
<TabsPrimitive.Content
|
|
57
|
-
data-slot="tabs-content"
|
|
58
|
-
className={cn("flex-1 outline-none", className)}
|
|
59
|
-
{...props}
|
|
60
|
-
/>
|
|
61
|
-
)
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export { Tabs, TabsList, TabsTrigger, TabsContent }
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as React from "react"
|
|
2
|
-
|
|
3
|
-
import { cn } from "@/lib/utils"
|
|
4
|
-
|
|
5
|
-
function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {
|
|
6
|
-
return (
|
|
7
|
-
<textarea
|
|
8
|
-
data-slot="textarea"
|
|
9
|
-
className={cn(
|
|
10
|
-
"border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
11
|
-
className
|
|
12
|
-
)}
|
|
13
|
-
{...props}
|
|
14
|
-
/>
|
|
15
|
-
)
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export { Textarea }
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import * as React from "react"
|
|
2
|
-
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group"
|
|
3
|
-
import { type VariantProps } from "class-variance-authority"
|
|
4
|
-
|
|
5
|
-
import { cn } from "@/lib/utils"
|
|
6
|
-
import { toggleVariants } from "@/components/ui/toggle"
|
|
7
|
-
|
|
8
|
-
const ToggleGroupContext = React.createContext<
|
|
9
|
-
VariantProps<typeof toggleVariants>
|
|
10
|
-
>({
|
|
11
|
-
size: "default",
|
|
12
|
-
variant: "default",
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
function ToggleGroup({
|
|
16
|
-
className,
|
|
17
|
-
variant,
|
|
18
|
-
size,
|
|
19
|
-
children,
|
|
20
|
-
...props
|
|
21
|
-
}: React.ComponentProps<typeof ToggleGroupPrimitive.Root> &
|
|
22
|
-
VariantProps<typeof toggleVariants>) {
|
|
23
|
-
return (
|
|
24
|
-
<ToggleGroupPrimitive.Root
|
|
25
|
-
data-slot="toggle-group"
|
|
26
|
-
data-variant={variant}
|
|
27
|
-
data-size={size}
|
|
28
|
-
className={cn(
|
|
29
|
-
"group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",
|
|
30
|
-
className
|
|
31
|
-
)}
|
|
32
|
-
{...props}
|
|
33
|
-
>
|
|
34
|
-
<ToggleGroupContext.Provider value={{ variant, size }}>
|
|
35
|
-
{children}
|
|
36
|
-
</ToggleGroupContext.Provider>
|
|
37
|
-
</ToggleGroupPrimitive.Root>
|
|
38
|
-
)
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function ToggleGroupItem({
|
|
42
|
-
className,
|
|
43
|
-
children,
|
|
44
|
-
variant,
|
|
45
|
-
size,
|
|
46
|
-
...props
|
|
47
|
-
}: React.ComponentProps<typeof ToggleGroupPrimitive.Item> &
|
|
48
|
-
VariantProps<typeof toggleVariants>) {
|
|
49
|
-
const context = React.useContext(ToggleGroupContext)
|
|
50
|
-
|
|
51
|
-
return (
|
|
52
|
-
<ToggleGroupPrimitive.Item
|
|
53
|
-
data-slot="toggle-group-item"
|
|
54
|
-
data-variant={context.variant || variant}
|
|
55
|
-
data-size={context.size || size}
|
|
56
|
-
className={cn(
|
|
57
|
-
toggleVariants({
|
|
58
|
-
variant: context.variant || variant,
|
|
59
|
-
size: context.size || size,
|
|
60
|
-
}),
|
|
61
|
-
"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",
|
|
62
|
-
className
|
|
63
|
-
)}
|
|
64
|
-
{...props}
|
|
65
|
-
>
|
|
66
|
-
{children}
|
|
67
|
-
</ToggleGroupPrimitive.Item>
|
|
68
|
-
)
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export { ToggleGroup, ToggleGroupItem }
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import * as React from "react"
|
|
2
|
-
import * as TogglePrimitive from "@radix-ui/react-toggle"
|
|
3
|
-
import { cva, type VariantProps } from "class-variance-authority"
|
|
4
|
-
|
|
5
|
-
import { cn } from "@/lib/utils"
|
|
6
|
-
|
|
7
|
-
const toggleVariants = cva(
|
|
8
|
-
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",
|
|
9
|
-
{
|
|
10
|
-
variants: {
|
|
11
|
-
variant: {
|
|
12
|
-
default: "bg-transparent",
|
|
13
|
-
outline:
|
|
14
|
-
"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground",
|
|
15
|
-
},
|
|
16
|
-
size: {
|
|
17
|
-
default: "h-9 px-2 min-w-9",
|
|
18
|
-
sm: "h-8 px-1.5 min-w-8",
|
|
19
|
-
lg: "h-10 px-2.5 min-w-10",
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
defaultVariants: {
|
|
23
|
-
variant: "default",
|
|
24
|
-
size: "default",
|
|
25
|
-
},
|
|
26
|
-
}
|
|
27
|
-
)
|
|
28
|
-
|
|
29
|
-
function Toggle({
|
|
30
|
-
className,
|
|
31
|
-
variant,
|
|
32
|
-
size,
|
|
33
|
-
...props
|
|
34
|
-
}: React.ComponentProps<typeof TogglePrimitive.Root> &
|
|
35
|
-
VariantProps<typeof toggleVariants>) {
|
|
36
|
-
return (
|
|
37
|
-
<TogglePrimitive.Root
|
|
38
|
-
data-slot="toggle"
|
|
39
|
-
className={cn(toggleVariants({ variant, size, className }))}
|
|
40
|
-
{...props}
|
|
41
|
-
/>
|
|
42
|
-
)
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export { Toggle, toggleVariants }
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import * as React from "react"
|
|
2
|
-
import * as TooltipPrimitive from "@radix-ui/react-tooltip"
|
|
3
|
-
|
|
4
|
-
import { cn } from "@/lib/utils"
|
|
5
|
-
|
|
6
|
-
function TooltipProvider({
|
|
7
|
-
delayDuration = 0,
|
|
8
|
-
...props
|
|
9
|
-
}: React.ComponentProps<typeof TooltipPrimitive.Provider>) {
|
|
10
|
-
return (
|
|
11
|
-
<TooltipPrimitive.Provider
|
|
12
|
-
data-slot="tooltip-provider"
|
|
13
|
-
delayDuration={delayDuration}
|
|
14
|
-
{...props}
|
|
15
|
-
/>
|
|
16
|
-
)
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function Tooltip({
|
|
20
|
-
...props
|
|
21
|
-
}: React.ComponentProps<typeof TooltipPrimitive.Root>) {
|
|
22
|
-
return (
|
|
23
|
-
<TooltipProvider>
|
|
24
|
-
<TooltipPrimitive.Root data-slot="tooltip" {...props} />
|
|
25
|
-
</TooltipProvider>
|
|
26
|
-
)
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function TooltipTrigger({
|
|
30
|
-
...props
|
|
31
|
-
}: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {
|
|
32
|
-
return <TooltipPrimitive.Trigger data-slot="tooltip-trigger" {...props} />
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
function TooltipContent({
|
|
36
|
-
className,
|
|
37
|
-
sideOffset = 0,
|
|
38
|
-
children,
|
|
39
|
-
...props
|
|
40
|
-
}: React.ComponentProps<typeof TooltipPrimitive.Content>) {
|
|
41
|
-
return (
|
|
42
|
-
<TooltipPrimitive.Portal>
|
|
43
|
-
<TooltipPrimitive.Content
|
|
44
|
-
data-slot="tooltip-content"
|
|
45
|
-
sideOffset={sideOffset}
|
|
46
|
-
className={cn(
|
|
47
|
-
"bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
|
|
48
|
-
className
|
|
49
|
-
)}
|
|
50
|
-
{...props}
|
|
51
|
-
>
|
|
52
|
-
{children}
|
|
53
|
-
<TooltipPrimitive.Arrow className="bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" />
|
|
54
|
-
</TooltipPrimitive.Content>
|
|
55
|
-
</TooltipPrimitive.Portal>
|
|
56
|
-
)
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }
|
package/src/index.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
// UI Components
|
|
2
|
-
export * from './components/ui/accordion';
|
|
3
|
-
export * from './components/ui/alert';
|
|
4
|
-
export * from './components/ui/alert-dialog';
|
|
5
|
-
export * from './components/ui/aspect-ratio';
|
|
6
|
-
export * from './components/ui/avatar';
|
|
7
|
-
export * from './components/ui/badge';
|
|
8
|
-
export * from './components/ui/breadcrumb';
|
|
9
|
-
export * from './components/ui/button';
|
|
10
|
-
export * from './components/ui/calendar';
|
|
11
|
-
export * from './components/ui/card';
|
|
12
|
-
export * from './components/ui/carousel';
|
|
13
|
-
export * from './components/ui/checkbox';
|
|
14
|
-
export * from './components/ui/collapsible';
|
|
15
|
-
export * from './components/ui/command';
|
|
16
|
-
export * from './components/ui/context-menu';
|
|
17
|
-
export * from './components/ui/dialog';
|
|
18
|
-
export * from './components/ui/dropdown-menu';
|
|
19
|
-
export * from './components/ui/form';
|
|
20
|
-
export * from './components/ui/hover-card';
|
|
21
|
-
export * from './components/ui/input';
|
|
22
|
-
export * from './components/ui/label';
|
|
23
|
-
export * from './components/ui/menubar';
|
|
24
|
-
export * from './components/ui/navigation-menu';
|
|
25
|
-
export * from './components/ui/pagination';
|
|
26
|
-
export * from './components/ui/popover';
|
|
27
|
-
export * from './components/ui/progress';
|
|
28
|
-
export * from './components/ui/radio-group';
|
|
29
|
-
export * from './components/ui/resizable';
|
|
30
|
-
export * from './components/ui/scroll-area';
|
|
31
|
-
export * from './components/ui/select';
|
|
32
|
-
export * from './components/ui/separator';
|
|
33
|
-
export * from './components/ui/sheet';
|
|
34
|
-
export * from './components/ui/skeleton';
|
|
35
|
-
export * from './components/ui/slider';
|
|
36
|
-
export * from './components/ui/sonner';
|
|
37
|
-
export * from './components/ui/switch';
|
|
38
|
-
export * from './components/ui/table';
|
|
39
|
-
export * from './components/ui/tabs';
|
|
40
|
-
export * from './components/ui/textarea';
|
|
41
|
-
export * from './components/ui/toggle';
|
|
42
|
-
export * from './components/ui/toggle-group';
|
|
43
|
-
export * from './components/ui/tooltip';
|
|
44
|
-
|
|
45
|
-
// Utilities
|
|
46
|
-
export * from './lib/utils';
|
package/src/lib/utils.ts
DELETED
package/src/style.css
DELETED
|
File without changes
|
package/tailwind.config.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/** @type {import('tailwindcss').Config} */
|
|
2
|
-
module.exports = {
|
|
3
|
-
content: [
|
|
4
|
-
"./src/**/*.{js,ts,jsx,tsx}",
|
|
5
|
-
"./index.html",
|
|
6
|
-
],
|
|
7
|
-
theme: {
|
|
8
|
-
extend: {
|
|
9
|
-
colors: {
|
|
10
|
-
border: "hsl(var(--border))",
|
|
11
|
-
input: "hsl(var(--input))",
|
|
12
|
-
ring: "hsl(var(--ring))",
|
|
13
|
-
background: "hsl(var(--background))",
|
|
14
|
-
foreground: "hsl(var(--foreground))",
|
|
15
|
-
primary: {
|
|
16
|
-
DEFAULT: "hsl(var(--primary))",
|
|
17
|
-
foreground: "hsl(var(--primary-foreground))",
|
|
18
|
-
},
|
|
19
|
-
secondary: {
|
|
20
|
-
DEFAULT: "hsl(var(--secondary))",
|
|
21
|
-
foreground: "hsl(var(--secondary-foreground))",
|
|
22
|
-
},
|
|
23
|
-
destructive: {
|
|
24
|
-
DEFAULT: "hsl(var(--destructive))",
|
|
25
|
-
foreground: "hsl(var(--destructive-foreground))",
|
|
26
|
-
},
|
|
27
|
-
muted: {
|
|
28
|
-
DEFAULT: "hsl(var(--muted))",
|
|
29
|
-
foreground: "hsl(var(--muted-foreground))",
|
|
30
|
-
},
|
|
31
|
-
accent: {
|
|
32
|
-
DEFAULT: "hsl(var(--accent))",
|
|
33
|
-
foreground: "hsl(var(--accent-foreground))",
|
|
34
|
-
},
|
|
35
|
-
popover: {
|
|
36
|
-
DEFAULT: "hsl(var(--popover))",
|
|
37
|
-
foreground: "hsl(var(--popover-foreground))",
|
|
38
|
-
},
|
|
39
|
-
card: {
|
|
40
|
-
DEFAULT: "hsl(var(--card))",
|
|
41
|
-
foreground: "hsl(var(--card-foreground))",
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
borderRadius: {
|
|
45
|
-
lg: "var(--radius)",
|
|
46
|
-
md: "calc(var(--radius) - 2px)",
|
|
47
|
-
sm: "calc(var(--radius) - 4px)",
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
plugins: [require("tailwindcss-animate")],
|
|
52
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"files": [],
|
|
3
|
-
"include": [],
|
|
4
|
-
"references": [
|
|
5
|
-
{
|
|
6
|
-
"path": "./tsconfig.lib.json"
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
"path": "./tsconfig.spec.json"
|
|
10
|
-
}
|
|
11
|
-
],
|
|
12
|
-
"compilerOptions": {
|
|
13
|
-
"baseUrl": "../../ui",
|
|
14
|
-
"paths": {
|
|
15
|
-
"@/*": ["../../ui/src/*"]
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"extends": "../../tsconfig.base.json"
|
|
19
|
-
}
|
package/tsconfig.lib.json
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../tsconfig.base.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"outDir": "dist",
|
|
5
|
-
"declaration": true,
|
|
6
|
-
"declarationMap": true,
|
|
7
|
-
"emitDeclarationOnly": false,
|
|
8
|
-
"types": [
|
|
9
|
-
"node",
|
|
10
|
-
"@nx/react/typings/cssmodule.d.ts",
|
|
11
|
-
"@nx/react/typings/image.d.ts",
|
|
12
|
-
"vite/client"
|
|
13
|
-
],
|
|
14
|
-
"rootDir": "src",
|
|
15
|
-
"jsx": "react-jsx",
|
|
16
|
-
"module": "esnext",
|
|
17
|
-
"moduleResolution": "bundler",
|
|
18
|
-
"tsBuildInfoFile": "dist/tsconfig.lib.tsbuildinfo",
|
|
19
|
-
"baseUrl": ".",
|
|
20
|
-
"paths": {
|
|
21
|
-
"@/*": ["./src/*"],
|
|
22
|
-
"@/components/*": ["./src/components/*"],
|
|
23
|
-
"@/lib/*": ["./src/lib/*"]
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"exclude": [
|
|
27
|
-
"../../ui/out-tsc",
|
|
28
|
-
"../../ui/dist",
|
|
29
|
-
"../../ui/**/*.spec.ts",
|
|
30
|
-
"../../ui/**/*.test.ts",
|
|
31
|
-
"../../ui/**/*.spec.tsx",
|
|
32
|
-
"../../ui/**/*.test.tsx",
|
|
33
|
-
"../../ui/**/*.spec.js",
|
|
34
|
-
"../../ui/**/*.test.js",
|
|
35
|
-
"../../ui/**/*.spec.jsx",
|
|
36
|
-
"../../ui/**/*.test.jsx",
|
|
37
|
-
"../../ui/vite.config.ts",
|
|
38
|
-
"../../ui/vite.config.mts",
|
|
39
|
-
"../../ui/vitest.config.ts",
|
|
40
|
-
"../../ui/vitest.config.mts",
|
|
41
|
-
"../../ui/src/**/*.test.ts",
|
|
42
|
-
"../../ui/src/**/*.spec.ts",
|
|
43
|
-
"../../ui/src/**/*.test.tsx",
|
|
44
|
-
"../../ui/src/**/*.spec.tsx",
|
|
45
|
-
"../../ui/src/**/*.test.js",
|
|
46
|
-
"../../ui/src/**/*.spec.js",
|
|
47
|
-
"../../ui/src/**/*.test.jsx",
|
|
48
|
-
"../../ui/src/**/*.spec.jsx",
|
|
49
|
-
"../../ui/eslint.config.js",
|
|
50
|
-
"../../ui/eslint.config.cjs",
|
|
51
|
-
"../../ui/eslint.config.mjs"
|
|
52
|
-
],
|
|
53
|
-
"include": ["src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx"]
|
|
54
|
-
}
|
package/tsconfig.spec.json
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../tsconfig.base.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"outDir": "../../ui/out-tsc/vitest",
|
|
5
|
-
"types": [
|
|
6
|
-
"vitest/globals",
|
|
7
|
-
"vitest/importMeta",
|
|
8
|
-
"vite/client",
|
|
9
|
-
"node",
|
|
10
|
-
"vitest"
|
|
11
|
-
],
|
|
12
|
-
"jsx": "react-jsx",
|
|
13
|
-
"module": "esnext",
|
|
14
|
-
"moduleResolution": "bundler"
|
|
15
|
-
},
|
|
16
|
-
"include": [
|
|
17
|
-
"../../ui/vite.config.ts",
|
|
18
|
-
"../../ui/vite.config.mts",
|
|
19
|
-
"../../ui/vitest.config.ts",
|
|
20
|
-
"../../ui/vitest.config.mts",
|
|
21
|
-
"../../ui/src/**/*.test.ts",
|
|
22
|
-
"../../ui/src/**/*.spec.ts",
|
|
23
|
-
"../../ui/src/**/*.test.tsx",
|
|
24
|
-
"../../ui/src/**/*.spec.tsx",
|
|
25
|
-
"../../ui/src/**/*.test.js",
|
|
26
|
-
"../../ui/src/**/*.spec.js",
|
|
27
|
-
"../../ui/src/**/*.test.jsx",
|
|
28
|
-
"../../ui/src/**/*.spec.jsx",
|
|
29
|
-
"../../ui/src/**/*.d.ts"
|
|
30
|
-
],
|
|
31
|
-
"references": []
|
|
32
|
-
}
|