@0xchain/ui 1.1.0-beta.4 → 1.1.0-beta.43
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/LICENSE +21 -0
- package/dist/accordion.js +64 -0
- package/dist/alert-dialog.js +146 -0
- package/dist/{alert.mjs → alert.js} +26 -26
- package/dist/aspect-ratio.js +10 -0
- package/dist/avatar.js +53 -0
- package/dist/{badge.mjs → badge.js} +17 -16
- package/dist/breadcrumb.d.ts +2 -20
- package/dist/breadcrumb.js +103 -0
- package/dist/button.d.ts +2 -15
- package/dist/{button.mjs → button.js} +18 -17
- package/dist/calendar.d.ts +2 -23
- package/dist/calendar.js +186 -0
- package/dist/card.d.ts +2 -18
- package/dist/card.js +90 -0
- package/dist/carousel.d.ts +2 -42
- package/dist/carousel.js +198 -0
- package/dist/checkbox.d.ts +2 -7
- package/dist/{checkbox.mjs → checkbox.js} +16 -16
- package/dist/collapsible.d.ts +2 -10
- package/dist/collapsible.js +34 -0
- package/dist/command.d.ts +2 -31
- package/dist/command.js +170 -0
- package/dist/components/ui/accordion.d.ts +8 -0
- package/dist/components/ui/accordion.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog.d.ts +15 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/alert.d.ts +10 -0
- package/dist/components/ui/alert.d.ts.map +1 -0
- package/dist/components/ui/aspect-ratio.d.ts +4 -0
- package/dist/components/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/components/ui/avatar.d.ts +7 -0
- package/dist/components/ui/avatar.d.ts.map +1 -0
- package/dist/components/ui/badge.d.ts +10 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/breadcrumb.d.ts +12 -0
- package/dist/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/components/ui/button.d.ts +11 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/calendar.d.ts +9 -0
- package/dist/components/ui/calendar.d.ts.map +1 -0
- package/dist/components/ui/card.d.ts +10 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/carousel.d.ts +20 -0
- package/dist/components/ui/carousel.d.ts.map +1 -0
- package/dist/components/ui/checkbox.d.ts +5 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/collapsible.d.ts +6 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -0
- package/dist/components/ui/command.d.ts +19 -0
- package/dist/components/ui/command.d.ts.map +1 -0
- package/dist/components/ui/context-menu.d.ts +26 -0
- package/dist/components/ui/context-menu.d.ts.map +1 -0
- package/dist/components/ui/dialog.d.ts +16 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +26 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/hover-card.d.ts +7 -0
- package/dist/components/ui/hover-card.d.ts.map +1 -0
- package/dist/components/ui/input.d.ts +4 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/label.d.ts +5 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/menubar.d.ts +27 -0
- package/dist/components/ui/menubar.d.ts.map +1 -0
- package/dist/components/ui/navigation-menu.d.ts +15 -0
- package/dist/components/ui/navigation-menu.d.ts.map +1 -0
- package/dist/components/ui/pagination.d.ts +14 -0
- package/dist/components/ui/pagination.d.ts.map +1 -0
- package/dist/components/ui/popover.d.ts +8 -0
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/progress.d.ts +5 -0
- package/dist/components/ui/progress.d.ts.map +1 -0
- package/dist/components/ui/radio-group.d.ts +6 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -0
- package/dist/components/ui/resizable.d.ts +9 -0
- package/dist/components/ui/resizable.d.ts.map +1 -0
- package/dist/components/ui/scroll-area.d.ts +6 -0
- package/dist/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/components/ui/select.d.ts +16 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/separator.d.ts +5 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/sheet.d.ts +14 -0
- package/dist/components/ui/sheet.d.ts.map +1 -0
- package/dist/components/ui/skeleton.d.ts +3 -0
- package/dist/components/ui/skeleton.d.ts.map +1 -0
- package/dist/components/ui/slider.d.ts +5 -0
- package/dist/components/ui/slider.d.ts.map +1 -0
- package/dist/components/ui/sonner.d.ts +4 -0
- package/dist/components/ui/sonner.d.ts.map +1 -0
- package/dist/components/ui/switch.d.ts +5 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/table.d.ts +11 -0
- package/dist/components/ui/table.d.ts.map +1 -0
- package/dist/components/ui/tabs.d.ts +8 -0
- package/dist/components/ui/tabs.d.ts.map +1 -0
- package/dist/components/ui/textarea.d.ts +4 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/toggle-group.d.ts +8 -0
- package/dist/components/ui/toggle-group.d.ts.map +1 -0
- package/dist/components/ui/toggle.d.ts +10 -0
- package/dist/components/ui/toggle.d.ts.map +1 -0
- package/dist/components/ui/tooltip.d.ts +8 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/context-menu.d.ts +2 -42
- package/dist/context-menu.js +223 -0
- package/dist/dialog.d.ts +2 -27
- package/dist/dialog.js +136 -0
- package/dist/dropdown-menu.d.ts +2 -42
- package/dist/dropdown-menu.js +231 -0
- package/dist/form.d.ts +1 -38
- package/dist/form.js +116 -0
- package/dist/hover-card.d.ts +2 -11
- package/dist/hover-card.js +38 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/input.d.ts +2 -6
- package/dist/{input.mjs → input.js} +9 -9
- package/dist/label.d.ts +2 -7
- package/dist/{label.mjs → label.js} +12 -12
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/menubar.d.ts +2 -44
- package/dist/menubar.js +251 -0
- package/dist/navigation-menu.d.ts +2 -26
- package/dist/{navigation-menu.mjs → navigation-menu.js} +89 -89
- package/dist/pagination.d.ts +2 -33
- package/dist/pagination.js +116 -0
- package/dist/popover.d.ts +2 -13
- package/dist/popover.js +44 -0
- package/dist/progress.d.ts +2 -7
- package/dist/progress.js +31 -0
- package/dist/radio-group.d.ts +2 -9
- package/dist/radio-group.js +45 -0
- package/dist/resizable.d.ts +2 -13
- package/dist/resizable.js +48 -0
- package/dist/scroll-area.d.ts +2 -9
- package/dist/scroll-area.js +60 -0
- package/dist/select.d.ts +2 -27
- package/dist/select.js +169 -0
- package/dist/separator.d.ts +2 -7
- package/dist/separator.js +26 -0
- package/dist/sheet.d.ts +2 -23
- package/dist/sheet.js +126 -0
- package/dist/skeleton.d.ts +2 -5
- package/dist/skeleton.js +15 -0
- package/dist/slider.d.ts +2 -7
- package/dist/{slider.mjs → slider.js} +33 -33
- package/dist/sonner.d.ts +2 -6
- package/dist/sonner.js +22 -0
- package/dist/switch.d.ts +2 -7
- package/dist/{switch.mjs → switch.js} +15 -15
- package/dist/table.d.ts +2 -20
- package/dist/table.js +114 -0
- package/dist/tabs.d.ts +2 -13
- package/dist/{tabs.mjs → tabs.js} +37 -37
- package/dist/textarea.d.ts +2 -6
- package/dist/{textarea.mjs → textarea.js} +8 -8
- package/dist/toggle-group.d.ts +2 -16
- package/dist/toggle-group.js +62 -0
- package/dist/toggle.d.ts +2 -14
- package/dist/{toggle.mjs → toggle.js} +16 -16
- package/dist/tooltip.d.ts +2 -13
- package/dist/tooltip.js +55 -0
- package/dist/utils-CzDCF-Ah.js +8 -0
- package/package.json +138 -89
- package/dist/accordion.mjs +0 -64
- package/dist/alert-dialog.mjs +0 -146
- package/dist/aspect-ratio.mjs +0 -10
- package/dist/avatar.mjs +0 -53
- package/dist/breadcrumb.mjs +0 -102
- package/dist/calendar.mjs +0 -173
- package/dist/card.mjs +0 -90
- package/dist/carousel.mjs +0 -177
- package/dist/collapsible.mjs +0 -34
- package/dist/command.mjs +0 -170
- package/dist/context-menu.mjs +0 -223
- package/dist/dialog.mjs +0 -136
- package/dist/dropdown-menu.mjs +0 -231
- package/dist/form.mjs +0 -101
- package/dist/hover-card.mjs +0 -38
- package/dist/menubar.mjs +0 -251
- package/dist/pagination.mjs +0 -116
- package/dist/popover.mjs +0 -44
- package/dist/progress.mjs +0 -31
- package/dist/radio-group.mjs +0 -45
- package/dist/resizable.mjs +0 -48
- package/dist/scroll-area.mjs +0 -60
- package/dist/select.mjs +0 -169
- package/dist/separator.mjs +0 -26
- package/dist/sheet.mjs +0 -126
- package/dist/skeleton.mjs +0 -15
- package/dist/sonner.mjs +0 -22
- package/dist/table.mjs +0 -114
- package/dist/toggle-group.mjs +0 -62
- package/dist/tooltip.mjs +0 -55
- package/dist/utils-B7J70Nno.js +0 -8
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
3
|
+
import { c as cn } from "./utils-CzDCF-Ah.js";
|
|
4
|
+
function Separator({
|
|
5
|
+
className,
|
|
6
|
+
orientation = "horizontal",
|
|
7
|
+
decorative = true,
|
|
8
|
+
...props
|
|
9
|
+
}) {
|
|
10
|
+
return /* @__PURE__ */ jsx(
|
|
11
|
+
SeparatorPrimitive.Root,
|
|
12
|
+
{
|
|
13
|
+
"data-slot": "separator",
|
|
14
|
+
decorative,
|
|
15
|
+
orientation,
|
|
16
|
+
className: cn(
|
|
17
|
+
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
18
|
+
className
|
|
19
|
+
),
|
|
20
|
+
...props
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
Separator
|
|
26
|
+
};
|
package/dist/sheet.d.ts
CHANGED
|
@@ -1,23 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
4
|
-
|
|
5
|
-
export declare function Sheet({ ...props }: React_2.ComponentProps<typeof SheetPrimitive.Root>): JSX.Element;
|
|
6
|
-
|
|
7
|
-
export declare function SheetClose({ ...props }: React_2.ComponentProps<typeof SheetPrimitive.Close>): JSX.Element;
|
|
8
|
-
|
|
9
|
-
export declare function SheetContent({ className, children, side, ...props }: React_2.ComponentProps<typeof SheetPrimitive.Content> & {
|
|
10
|
-
side?: "top" | "right" | "bottom" | "left";
|
|
11
|
-
}): JSX.Element;
|
|
12
|
-
|
|
13
|
-
export declare function SheetDescription({ className, ...props }: React_2.ComponentProps<typeof SheetPrimitive.Description>): JSX.Element;
|
|
14
|
-
|
|
15
|
-
export declare function SheetFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
16
|
-
|
|
17
|
-
export declare function SheetHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
18
|
-
|
|
19
|
-
export declare function SheetTitle({ className, ...props }: React_2.ComponentProps<typeof SheetPrimitive.Title>): JSX.Element;
|
|
20
|
-
|
|
21
|
-
export declare function SheetTrigger({ ...props }: React_2.ComponentProps<typeof SheetPrimitive.Trigger>): JSX.Element;
|
|
22
|
-
|
|
23
|
-
export { }
|
|
1
|
+
export * from './components/ui/sheet'
|
|
2
|
+
export {}
|
package/dist/sheet.js
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
3
|
+
import { XIcon } from "lucide-react";
|
|
4
|
+
import { c as cn } from "./utils-CzDCF-Ah.js";
|
|
5
|
+
function Sheet({ ...props }) {
|
|
6
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Root, { "data-slot": "sheet", ...props });
|
|
7
|
+
}
|
|
8
|
+
function SheetTrigger({
|
|
9
|
+
...props
|
|
10
|
+
}) {
|
|
11
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, { "data-slot": "sheet-trigger", ...props });
|
|
12
|
+
}
|
|
13
|
+
function SheetClose({
|
|
14
|
+
...props
|
|
15
|
+
}) {
|
|
16
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Close, { "data-slot": "sheet-close", ...props });
|
|
17
|
+
}
|
|
18
|
+
function SheetPortal({
|
|
19
|
+
...props
|
|
20
|
+
}) {
|
|
21
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
|
|
22
|
+
}
|
|
23
|
+
function SheetOverlay({
|
|
24
|
+
className,
|
|
25
|
+
...props
|
|
26
|
+
}) {
|
|
27
|
+
return /* @__PURE__ */ jsx(
|
|
28
|
+
DialogPrimitive.Overlay,
|
|
29
|
+
{
|
|
30
|
+
"data-slot": "sheet-overlay",
|
|
31
|
+
className: cn(
|
|
32
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
33
|
+
className
|
|
34
|
+
),
|
|
35
|
+
...props
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
function SheetContent({
|
|
40
|
+
className,
|
|
41
|
+
children,
|
|
42
|
+
side = "right",
|
|
43
|
+
...props
|
|
44
|
+
}) {
|
|
45
|
+
return /* @__PURE__ */ jsxs(SheetPortal, { children: [
|
|
46
|
+
/* @__PURE__ */ jsx(SheetOverlay, {}),
|
|
47
|
+
/* @__PURE__ */ jsxs(
|
|
48
|
+
DialogPrimitive.Content,
|
|
49
|
+
{
|
|
50
|
+
"data-slot": "sheet-content",
|
|
51
|
+
className: cn(
|
|
52
|
+
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
53
|
+
side === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
|
|
54
|
+
side === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
|
|
55
|
+
side === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
|
|
56
|
+
side === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
|
|
57
|
+
className
|
|
58
|
+
),
|
|
59
|
+
...props,
|
|
60
|
+
children: [
|
|
61
|
+
children,
|
|
62
|
+
/* @__PURE__ */ jsxs(DialogPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
|
|
63
|
+
/* @__PURE__ */ jsx(XIcon, { className: "size-4" }),
|
|
64
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
65
|
+
] })
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
] });
|
|
70
|
+
}
|
|
71
|
+
function SheetHeader({ className, ...props }) {
|
|
72
|
+
return /* @__PURE__ */ jsx(
|
|
73
|
+
"div",
|
|
74
|
+
{
|
|
75
|
+
"data-slot": "sheet-header",
|
|
76
|
+
className: cn("flex flex-col gap-1.5 p-4", className),
|
|
77
|
+
...props
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
function SheetFooter({ className, ...props }) {
|
|
82
|
+
return /* @__PURE__ */ jsx(
|
|
83
|
+
"div",
|
|
84
|
+
{
|
|
85
|
+
"data-slot": "sheet-footer",
|
|
86
|
+
className: cn("mt-auto flex flex-col gap-2 p-4", className),
|
|
87
|
+
...props
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
function SheetTitle({
|
|
92
|
+
className,
|
|
93
|
+
...props
|
|
94
|
+
}) {
|
|
95
|
+
return /* @__PURE__ */ jsx(
|
|
96
|
+
DialogPrimitive.Title,
|
|
97
|
+
{
|
|
98
|
+
"data-slot": "sheet-title",
|
|
99
|
+
className: cn("text-foreground font-semibold", className),
|
|
100
|
+
...props
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
function SheetDescription({
|
|
105
|
+
className,
|
|
106
|
+
...props
|
|
107
|
+
}) {
|
|
108
|
+
return /* @__PURE__ */ jsx(
|
|
109
|
+
DialogPrimitive.Description,
|
|
110
|
+
{
|
|
111
|
+
"data-slot": "sheet-description",
|
|
112
|
+
className: cn("text-muted-foreground text-sm", className),
|
|
113
|
+
...props
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
export {
|
|
118
|
+
Sheet,
|
|
119
|
+
SheetClose,
|
|
120
|
+
SheetContent,
|
|
121
|
+
SheetDescription,
|
|
122
|
+
SheetFooter,
|
|
123
|
+
SheetHeader,
|
|
124
|
+
SheetTitle,
|
|
125
|
+
SheetTrigger
|
|
126
|
+
};
|
package/dist/skeleton.d.ts
CHANGED
package/dist/skeleton.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { c as cn } from "./utils-CzDCF-Ah.js";
|
|
3
|
+
function Skeleton({ className, ...props }) {
|
|
4
|
+
return /* @__PURE__ */ jsx(
|
|
5
|
+
"div",
|
|
6
|
+
{
|
|
7
|
+
"data-slot": "skeleton",
|
|
8
|
+
className: cn("bg-accent animate-pulse rounded-md", className),
|
|
9
|
+
...props
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
Skeleton
|
|
15
|
+
};
|
package/dist/slider.d.ts
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
4
|
-
|
|
5
|
-
export declare function Slider({ className, defaultValue, value, min, max, ...props }: React_2.ComponentProps<typeof SliderPrimitive.Root>): JSX.Element;
|
|
6
|
-
|
|
7
|
-
export { }
|
|
1
|
+
export * from './components/ui/slider'
|
|
2
|
+
export {}
|
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import { jsxs
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import { c as
|
|
5
|
-
function
|
|
6
|
-
className
|
|
7
|
-
defaultValue
|
|
8
|
-
value
|
|
9
|
-
min
|
|
10
|
-
max
|
|
11
|
-
...
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
4
|
+
import { c as cn } from "./utils-CzDCF-Ah.js";
|
|
5
|
+
function Slider({
|
|
6
|
+
className,
|
|
7
|
+
defaultValue,
|
|
8
|
+
value,
|
|
9
|
+
min = 0,
|
|
10
|
+
max = 100,
|
|
11
|
+
...props
|
|
12
12
|
}) {
|
|
13
|
-
const
|
|
14
|
-
() => Array.isArray(
|
|
15
|
-
[
|
|
13
|
+
const _values = React.useMemo(
|
|
14
|
+
() => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
|
|
15
|
+
[value, defaultValue, min, max]
|
|
16
16
|
);
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
-
|
|
17
|
+
return /* @__PURE__ */ jsxs(
|
|
18
|
+
SliderPrimitive.Root,
|
|
19
19
|
{
|
|
20
20
|
"data-slot": "slider",
|
|
21
|
-
defaultValue
|
|
22
|
-
value
|
|
23
|
-
min
|
|
24
|
-
max
|
|
25
|
-
className:
|
|
21
|
+
defaultValue,
|
|
22
|
+
value,
|
|
23
|
+
min,
|
|
24
|
+
max,
|
|
25
|
+
className: cn(
|
|
26
26
|
"relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",
|
|
27
|
-
|
|
27
|
+
className
|
|
28
28
|
),
|
|
29
|
-
...
|
|
29
|
+
...props,
|
|
30
30
|
children: [
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
|
|
31
|
+
/* @__PURE__ */ jsx(
|
|
32
|
+
SliderPrimitive.Track,
|
|
33
33
|
{
|
|
34
34
|
"data-slot": "slider-track",
|
|
35
|
-
className:
|
|
35
|
+
className: cn(
|
|
36
36
|
"bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"
|
|
37
37
|
),
|
|
38
|
-
children: /* @__PURE__ */
|
|
39
|
-
|
|
38
|
+
children: /* @__PURE__ */ jsx(
|
|
39
|
+
SliderPrimitive.Range,
|
|
40
40
|
{
|
|
41
41
|
"data-slot": "slider-range",
|
|
42
|
-
className:
|
|
42
|
+
className: cn(
|
|
43
43
|
"bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full"
|
|
44
44
|
)
|
|
45
45
|
}
|
|
46
46
|
)
|
|
47
47
|
}
|
|
48
48
|
),
|
|
49
|
-
Array.from({ length:
|
|
50
|
-
|
|
49
|
+
Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ jsx(
|
|
50
|
+
SliderPrimitive.Thumb,
|
|
51
51
|
{
|
|
52
52
|
"data-slot": "slider-thumb",
|
|
53
53
|
className: "border-primary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
|
|
54
54
|
},
|
|
55
|
-
|
|
55
|
+
index
|
|
56
56
|
))
|
|
57
57
|
]
|
|
58
58
|
}
|
|
59
59
|
);
|
|
60
60
|
}
|
|
61
61
|
export {
|
|
62
|
-
|
|
62
|
+
Slider
|
|
63
63
|
};
|
package/dist/sonner.d.ts
CHANGED
package/dist/sonner.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useTheme } from "@0xchain/next-themes";
|
|
3
|
+
import { Toaster as Toaster$1 } from "sonner";
|
|
4
|
+
const Toaster = ({ ...props }) => {
|
|
5
|
+
const { theme = "system" } = useTheme();
|
|
6
|
+
return /* @__PURE__ */ jsx(
|
|
7
|
+
Toaster$1,
|
|
8
|
+
{
|
|
9
|
+
theme,
|
|
10
|
+
className: "toaster group",
|
|
11
|
+
style: {
|
|
12
|
+
"--normal-bg": "var(--popover)",
|
|
13
|
+
"--normal-text": "var(--popover-foreground)",
|
|
14
|
+
"--normal-border": "var(--border)"
|
|
15
|
+
},
|
|
16
|
+
...props
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
Toaster
|
|
22
|
+
};
|
package/dist/switch.d.ts
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
4
|
-
|
|
5
|
-
export declare function Switch({ className, ...props }: React_2.ComponentProps<typeof SwitchPrimitive.Root>): JSX.Element;
|
|
6
|
-
|
|
7
|
-
export { }
|
|
1
|
+
export * from './components/ui/switch'
|
|
2
|
+
export {}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { jsx
|
|
2
|
-
import * as
|
|
3
|
-
import { c as
|
|
4
|
-
function
|
|
5
|
-
className
|
|
6
|
-
...
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
3
|
+
import { c as cn } from "./utils-CzDCF-Ah.js";
|
|
4
|
+
function Switch({
|
|
5
|
+
className,
|
|
6
|
+
...props
|
|
7
7
|
}) {
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
|
|
8
|
+
return /* @__PURE__ */ jsx(
|
|
9
|
+
SwitchPrimitive.Root,
|
|
10
10
|
{
|
|
11
11
|
"data-slot": "switch",
|
|
12
|
-
className:
|
|
12
|
+
className: cn(
|
|
13
13
|
"peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
14
|
-
|
|
14
|
+
className
|
|
15
15
|
),
|
|
16
|
-
...
|
|
17
|
-
children: /* @__PURE__ */
|
|
18
|
-
|
|
16
|
+
...props,
|
|
17
|
+
children: /* @__PURE__ */ jsx(
|
|
18
|
+
SwitchPrimitive.Thumb,
|
|
19
19
|
{
|
|
20
20
|
"data-slot": "switch-thumb",
|
|
21
|
-
className:
|
|
21
|
+
className: cn(
|
|
22
22
|
"bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"
|
|
23
23
|
)
|
|
24
24
|
}
|
|
@@ -27,5 +27,5 @@ function o({
|
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
Switch
|
|
31
31
|
};
|
package/dist/table.d.ts
CHANGED
|
@@ -1,20 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export declare function Table({ className, ...props }: React_2.ComponentProps<"table">): JSX.Element;
|
|
5
|
-
|
|
6
|
-
export declare function TableBody({ className, ...props }: React_2.ComponentProps<"tbody">): JSX.Element;
|
|
7
|
-
|
|
8
|
-
export declare function TableCaption({ className, ...props }: React_2.ComponentProps<"caption">): JSX.Element;
|
|
9
|
-
|
|
10
|
-
export declare function TableCell({ className, ...props }: React_2.ComponentProps<"td">): JSX.Element;
|
|
11
|
-
|
|
12
|
-
export declare function TableFooter({ className, ...props }: React_2.ComponentProps<"tfoot">): JSX.Element;
|
|
13
|
-
|
|
14
|
-
export declare function TableHead({ className, ...props }: React_2.ComponentProps<"th">): JSX.Element;
|
|
15
|
-
|
|
16
|
-
export declare function TableHeader({ className, ...props }: React_2.ComponentProps<"thead">): JSX.Element;
|
|
17
|
-
|
|
18
|
-
export declare function TableRow({ className, ...props }: React_2.ComponentProps<"tr">): JSX.Element;
|
|
19
|
-
|
|
20
|
-
export { }
|
|
1
|
+
export * from './components/ui/table'
|
|
2
|
+
export {}
|
package/dist/table.js
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { c as cn } from "./utils-CzDCF-Ah.js";
|
|
3
|
+
function Table({ className, ...props }) {
|
|
4
|
+
return /* @__PURE__ */ jsx(
|
|
5
|
+
"div",
|
|
6
|
+
{
|
|
7
|
+
"data-slot": "table-container",
|
|
8
|
+
className: "relative w-full overflow-x-auto",
|
|
9
|
+
children: /* @__PURE__ */ jsx(
|
|
10
|
+
"table",
|
|
11
|
+
{
|
|
12
|
+
"data-slot": "table",
|
|
13
|
+
className: cn("w-full caption-bottom text-sm", className),
|
|
14
|
+
...props
|
|
15
|
+
}
|
|
16
|
+
)
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
function TableHeader({ className, ...props }) {
|
|
21
|
+
return /* @__PURE__ */ jsx(
|
|
22
|
+
"thead",
|
|
23
|
+
{
|
|
24
|
+
"data-slot": "table-header",
|
|
25
|
+
className: cn("[&_tr]:border-b", className),
|
|
26
|
+
...props
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
function TableBody({ className, ...props }) {
|
|
31
|
+
return /* @__PURE__ */ jsx(
|
|
32
|
+
"tbody",
|
|
33
|
+
{
|
|
34
|
+
"data-slot": "table-body",
|
|
35
|
+
className: cn("[&_tr:last-child]:border-0", className),
|
|
36
|
+
...props
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
function TableFooter({ className, ...props }) {
|
|
41
|
+
return /* @__PURE__ */ jsx(
|
|
42
|
+
"tfoot",
|
|
43
|
+
{
|
|
44
|
+
"data-slot": "table-footer",
|
|
45
|
+
className: cn(
|
|
46
|
+
"bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",
|
|
47
|
+
className
|
|
48
|
+
),
|
|
49
|
+
...props
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
function TableRow({ className, ...props }) {
|
|
54
|
+
return /* @__PURE__ */ jsx(
|
|
55
|
+
"tr",
|
|
56
|
+
{
|
|
57
|
+
"data-slot": "table-row",
|
|
58
|
+
className: cn(
|
|
59
|
+
"hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
|
|
60
|
+
className
|
|
61
|
+
),
|
|
62
|
+
...props
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
function TableHead({ className, ...props }) {
|
|
67
|
+
return /* @__PURE__ */ jsx(
|
|
68
|
+
"th",
|
|
69
|
+
{
|
|
70
|
+
"data-slot": "table-head",
|
|
71
|
+
className: cn(
|
|
72
|
+
"text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
73
|
+
className
|
|
74
|
+
),
|
|
75
|
+
...props
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
function TableCell({ className, ...props }) {
|
|
80
|
+
return /* @__PURE__ */ jsx(
|
|
81
|
+
"td",
|
|
82
|
+
{
|
|
83
|
+
"data-slot": "table-cell",
|
|
84
|
+
className: cn(
|
|
85
|
+
"p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
86
|
+
className
|
|
87
|
+
),
|
|
88
|
+
...props
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
function TableCaption({
|
|
93
|
+
className,
|
|
94
|
+
...props
|
|
95
|
+
}) {
|
|
96
|
+
return /* @__PURE__ */ jsx(
|
|
97
|
+
"caption",
|
|
98
|
+
{
|
|
99
|
+
"data-slot": "table-caption",
|
|
100
|
+
className: cn("text-muted-foreground mt-4 text-sm", className),
|
|
101
|
+
...props
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
export {
|
|
106
|
+
Table,
|
|
107
|
+
TableBody,
|
|
108
|
+
TableCaption,
|
|
109
|
+
TableCell,
|
|
110
|
+
TableFooter,
|
|
111
|
+
TableHead,
|
|
112
|
+
TableHeader,
|
|
113
|
+
TableRow
|
|
114
|
+
};
|
package/dist/tabs.d.ts
CHANGED
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
4
|
-
|
|
5
|
-
export declare function Tabs({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Root>): JSX.Element;
|
|
6
|
-
|
|
7
|
-
export declare function TabsContent({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Content>): JSX.Element;
|
|
8
|
-
|
|
9
|
-
export declare function TabsList({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.List>): JSX.Element;
|
|
10
|
-
|
|
11
|
-
export declare function TabsTrigger({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Trigger>): JSX.Element;
|
|
12
|
-
|
|
13
|
-
export { }
|
|
1
|
+
export * from './components/ui/tabs'
|
|
2
|
+
export {}
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import { jsx
|
|
2
|
-
import * as
|
|
3
|
-
import { c as
|
|
4
|
-
function
|
|
5
|
-
className
|
|
6
|
-
...
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
3
|
+
import { c as cn } from "./utils-CzDCF-Ah.js";
|
|
4
|
+
function Tabs({
|
|
5
|
+
className,
|
|
6
|
+
...props
|
|
7
7
|
}) {
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
|
|
8
|
+
return /* @__PURE__ */ jsx(
|
|
9
|
+
TabsPrimitive.Root,
|
|
10
10
|
{
|
|
11
11
|
"data-slot": "tabs",
|
|
12
|
-
className:
|
|
13
|
-
...
|
|
12
|
+
className: cn("flex flex-col gap-2", className),
|
|
13
|
+
...props
|
|
14
14
|
}
|
|
15
15
|
);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
className
|
|
19
|
-
...
|
|
17
|
+
function TabsList({
|
|
18
|
+
className,
|
|
19
|
+
...props
|
|
20
20
|
}) {
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
|
|
21
|
+
return /* @__PURE__ */ jsx(
|
|
22
|
+
TabsPrimitive.List,
|
|
23
23
|
{
|
|
24
24
|
"data-slot": "tabs-list",
|
|
25
|
-
className:
|
|
25
|
+
className: cn(
|
|
26
26
|
"bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",
|
|
27
|
-
|
|
27
|
+
className
|
|
28
28
|
),
|
|
29
|
-
...
|
|
29
|
+
...props
|
|
30
30
|
}
|
|
31
31
|
);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
className
|
|
35
|
-
...
|
|
33
|
+
function TabsTrigger({
|
|
34
|
+
className,
|
|
35
|
+
...props
|
|
36
36
|
}) {
|
|
37
|
-
return /* @__PURE__ */
|
|
38
|
-
|
|
37
|
+
return /* @__PURE__ */ jsx(
|
|
38
|
+
TabsPrimitive.Trigger,
|
|
39
39
|
{
|
|
40
40
|
"data-slot": "tabs-trigger",
|
|
41
|
-
className:
|
|
41
|
+
className: cn(
|
|
42
42
|
"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",
|
|
43
|
-
|
|
43
|
+
className
|
|
44
44
|
),
|
|
45
|
-
...
|
|
45
|
+
...props
|
|
46
46
|
}
|
|
47
47
|
);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
className
|
|
51
|
-
...
|
|
49
|
+
function TabsContent({
|
|
50
|
+
className,
|
|
51
|
+
...props
|
|
52
52
|
}) {
|
|
53
|
-
return /* @__PURE__ */
|
|
54
|
-
|
|
53
|
+
return /* @__PURE__ */ jsx(
|
|
54
|
+
TabsPrimitive.Content,
|
|
55
55
|
{
|
|
56
56
|
"data-slot": "tabs-content",
|
|
57
|
-
className:
|
|
58
|
-
...
|
|
57
|
+
className: cn("flex-1 outline-none", className),
|
|
58
|
+
...props
|
|
59
59
|
}
|
|
60
60
|
);
|
|
61
61
|
}
|
|
62
62
|
export {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
Tabs,
|
|
64
|
+
TabsContent,
|
|
65
|
+
TabsList,
|
|
66
|
+
TabsTrigger
|
|
67
67
|
};
|
package/dist/textarea.d.ts
CHANGED