@0xchain/ui 1.1.0-beta.2 → 1.1.0-beta.21
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.js +103 -0
- package/dist/{button.mjs → button.js} +18 -17
- package/dist/calendar.js +186 -0
- package/dist/card.js +90 -0
- package/dist/carousel.js +198 -0
- package/dist/{checkbox.mjs → checkbox.js} +16 -16
- package/dist/collapsible.js +34 -0
- package/dist/command.js +170 -0
- package/dist/context-menu.js +223 -0
- package/dist/dialog.js +136 -0
- package/dist/dropdown-menu.js +231 -0
- package/dist/form.js +116 -0
- package/dist/hover-card.js +38 -0
- package/dist/{input.mjs → input.js} +9 -9
- package/dist/{label.mjs → label.js} +12 -12
- package/dist/menubar.js +251 -0
- package/dist/{navigation-menu.mjs → navigation-menu.js} +89 -89
- package/dist/pagination.js +116 -0
- package/dist/popover.js +44 -0
- package/dist/progress.js +31 -0
- package/dist/radio-group.js +45 -0
- package/dist/resizable.js +48 -0
- package/dist/scroll-area.js +60 -0
- package/dist/select.js +169 -0
- package/dist/separator.js +26 -0
- package/dist/sheet.js +126 -0
- package/dist/skeleton.js +15 -0
- package/dist/{slider.mjs → slider.js} +33 -33
- package/dist/sonner.js +22 -0
- package/dist/{switch.mjs → switch.js} +15 -15
- package/dist/table.js +114 -0
- package/dist/{tabs.mjs → tabs.js} +37 -37
- package/dist/{textarea.mjs → textarea.js} +8 -8
- package/dist/toggle-group.js +62 -0
- package/dist/{toggle.mjs → toggle.js} +16 -16
- 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
package/dist/progress.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
3
|
+
import { c as cn } from "./utils-CzDCF-Ah.js";
|
|
4
|
+
function Progress({
|
|
5
|
+
className,
|
|
6
|
+
value,
|
|
7
|
+
...props
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ jsx(
|
|
10
|
+
ProgressPrimitive.Root,
|
|
11
|
+
{
|
|
12
|
+
"data-slot": "progress",
|
|
13
|
+
className: cn(
|
|
14
|
+
"bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",
|
|
15
|
+
className
|
|
16
|
+
),
|
|
17
|
+
...props,
|
|
18
|
+
children: /* @__PURE__ */ jsx(
|
|
19
|
+
ProgressPrimitive.Indicator,
|
|
20
|
+
{
|
|
21
|
+
"data-slot": "progress-indicator",
|
|
22
|
+
className: "bg-primary h-full w-full flex-1 transition-all",
|
|
23
|
+
style: { transform: `translateX(-${100 - (value || 0)}%)` }
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
Progress
|
|
31
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
3
|
+
import { CircleIcon } from "lucide-react";
|
|
4
|
+
import { c as cn } from "./utils-CzDCF-Ah.js";
|
|
5
|
+
function RadioGroup({
|
|
6
|
+
className,
|
|
7
|
+
...props
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ jsx(
|
|
10
|
+
RadioGroupPrimitive.Root,
|
|
11
|
+
{
|
|
12
|
+
"data-slot": "radio-group",
|
|
13
|
+
className: cn("grid gap-3", className),
|
|
14
|
+
...props
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
function RadioGroupItem({
|
|
19
|
+
className,
|
|
20
|
+
...props
|
|
21
|
+
}) {
|
|
22
|
+
return /* @__PURE__ */ jsx(
|
|
23
|
+
RadioGroupPrimitive.Item,
|
|
24
|
+
{
|
|
25
|
+
"data-slot": "radio-group-item",
|
|
26
|
+
className: cn(
|
|
27
|
+
"border-input text-primary 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 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
28
|
+
className
|
|
29
|
+
),
|
|
30
|
+
...props,
|
|
31
|
+
children: /* @__PURE__ */ jsx(
|
|
32
|
+
RadioGroupPrimitive.Indicator,
|
|
33
|
+
{
|
|
34
|
+
"data-slot": "radio-group-indicator",
|
|
35
|
+
className: "relative flex items-center justify-center",
|
|
36
|
+
children: /* @__PURE__ */ jsx(CircleIcon, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
|
|
37
|
+
}
|
|
38
|
+
)
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
export {
|
|
43
|
+
RadioGroup,
|
|
44
|
+
RadioGroupItem
|
|
45
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { GripVerticalIcon } from "lucide-react";
|
|
3
|
+
import * as ResizablePrimitive from "react-resizable-panels";
|
|
4
|
+
import { c as cn } from "./utils-CzDCF-Ah.js";
|
|
5
|
+
function ResizablePanelGroup({
|
|
6
|
+
className,
|
|
7
|
+
...props
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ jsx(
|
|
10
|
+
ResizablePrimitive.PanelGroup,
|
|
11
|
+
{
|
|
12
|
+
"data-slot": "resizable-panel-group",
|
|
13
|
+
className: cn(
|
|
14
|
+
"flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
|
|
15
|
+
className
|
|
16
|
+
),
|
|
17
|
+
...props
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
function ResizablePanel({
|
|
22
|
+
...props
|
|
23
|
+
}) {
|
|
24
|
+
return /* @__PURE__ */ jsx(ResizablePrimitive.Panel, { "data-slot": "resizable-panel", ...props });
|
|
25
|
+
}
|
|
26
|
+
function ResizableHandle({
|
|
27
|
+
withHandle,
|
|
28
|
+
className,
|
|
29
|
+
...props
|
|
30
|
+
}) {
|
|
31
|
+
return /* @__PURE__ */ jsx(
|
|
32
|
+
ResizablePrimitive.PanelResizeHandle,
|
|
33
|
+
{
|
|
34
|
+
"data-slot": "resizable-handle",
|
|
35
|
+
className: cn(
|
|
36
|
+
"bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",
|
|
37
|
+
className
|
|
38
|
+
),
|
|
39
|
+
...props,
|
|
40
|
+
children: withHandle && /* @__PURE__ */ jsx("div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ jsx(GripVerticalIcon, { className: "size-2.5" }) })
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
ResizableHandle,
|
|
46
|
+
ResizablePanel,
|
|
47
|
+
ResizablePanelGroup
|
|
48
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
3
|
+
import { c as cn } from "./utils-CzDCF-Ah.js";
|
|
4
|
+
function ScrollArea({
|
|
5
|
+
className,
|
|
6
|
+
children,
|
|
7
|
+
...props
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ jsxs(
|
|
10
|
+
ScrollAreaPrimitive.Root,
|
|
11
|
+
{
|
|
12
|
+
"data-slot": "scroll-area",
|
|
13
|
+
className: cn("relative", className),
|
|
14
|
+
...props,
|
|
15
|
+
children: [
|
|
16
|
+
/* @__PURE__ */ jsx(
|
|
17
|
+
ScrollAreaPrimitive.Viewport,
|
|
18
|
+
{
|
|
19
|
+
"data-slot": "scroll-area-viewport",
|
|
20
|
+
className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
|
|
21
|
+
children
|
|
22
|
+
}
|
|
23
|
+
),
|
|
24
|
+
/* @__PURE__ */ jsx(ScrollBar, {}),
|
|
25
|
+
/* @__PURE__ */ jsx(ScrollAreaPrimitive.Corner, {})
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
function ScrollBar({
|
|
31
|
+
className,
|
|
32
|
+
orientation = "vertical",
|
|
33
|
+
...props
|
|
34
|
+
}) {
|
|
35
|
+
return /* @__PURE__ */ jsx(
|
|
36
|
+
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
37
|
+
{
|
|
38
|
+
"data-slot": "scroll-area-scrollbar",
|
|
39
|
+
orientation,
|
|
40
|
+
className: cn(
|
|
41
|
+
"flex touch-none p-px transition-colors select-none",
|
|
42
|
+
orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent",
|
|
43
|
+
orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent",
|
|
44
|
+
className
|
|
45
|
+
),
|
|
46
|
+
...props,
|
|
47
|
+
children: /* @__PURE__ */ jsx(
|
|
48
|
+
ScrollAreaPrimitive.ScrollAreaThumb,
|
|
49
|
+
{
|
|
50
|
+
"data-slot": "scroll-area-thumb",
|
|
51
|
+
className: "bg-border relative flex-1 rounded-full"
|
|
52
|
+
}
|
|
53
|
+
)
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
export {
|
|
58
|
+
ScrollArea,
|
|
59
|
+
ScrollBar
|
|
60
|
+
};
|
package/dist/select.js
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
3
|
+
import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
|
|
4
|
+
import { c as cn } from "./utils-CzDCF-Ah.js";
|
|
5
|
+
function Select({
|
|
6
|
+
...props
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ jsx(SelectPrimitive.Root, { "data-slot": "select", ...props });
|
|
9
|
+
}
|
|
10
|
+
function SelectGroup({
|
|
11
|
+
...props
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ jsx(SelectPrimitive.Group, { "data-slot": "select-group", ...props });
|
|
14
|
+
}
|
|
15
|
+
function SelectValue({
|
|
16
|
+
...props
|
|
17
|
+
}) {
|
|
18
|
+
return /* @__PURE__ */ jsx(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
|
|
19
|
+
}
|
|
20
|
+
function SelectTrigger({
|
|
21
|
+
className,
|
|
22
|
+
size = "default",
|
|
23
|
+
children,
|
|
24
|
+
...props
|
|
25
|
+
}) {
|
|
26
|
+
return /* @__PURE__ */ jsxs(
|
|
27
|
+
SelectPrimitive.Trigger,
|
|
28
|
+
{
|
|
29
|
+
"data-slot": "select-trigger",
|
|
30
|
+
"data-size": size,
|
|
31
|
+
className: cn(
|
|
32
|
+
"border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]: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 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
33
|
+
className
|
|
34
|
+
),
|
|
35
|
+
...props,
|
|
36
|
+
children: [
|
|
37
|
+
children,
|
|
38
|
+
/* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4 opacity-50" }) })
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
function SelectContent({
|
|
44
|
+
className,
|
|
45
|
+
children,
|
|
46
|
+
position = "popper",
|
|
47
|
+
...props
|
|
48
|
+
}) {
|
|
49
|
+
return /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
|
|
50
|
+
SelectPrimitive.Content,
|
|
51
|
+
{
|
|
52
|
+
"data-slot": "select-content",
|
|
53
|
+
className: cn(
|
|
54
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
|
|
55
|
+
position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
56
|
+
className
|
|
57
|
+
),
|
|
58
|
+
position,
|
|
59
|
+
...props,
|
|
60
|
+
children: [
|
|
61
|
+
/* @__PURE__ */ jsx(SelectScrollUpButton, {}),
|
|
62
|
+
/* @__PURE__ */ jsx(
|
|
63
|
+
SelectPrimitive.Viewport,
|
|
64
|
+
{
|
|
65
|
+
className: cn(
|
|
66
|
+
"p-1",
|
|
67
|
+
position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
|
|
68
|
+
),
|
|
69
|
+
children
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
/* @__PURE__ */ jsx(SelectScrollDownButton, {})
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
) });
|
|
76
|
+
}
|
|
77
|
+
function SelectLabel({
|
|
78
|
+
className,
|
|
79
|
+
...props
|
|
80
|
+
}) {
|
|
81
|
+
return /* @__PURE__ */ jsx(
|
|
82
|
+
SelectPrimitive.Label,
|
|
83
|
+
{
|
|
84
|
+
"data-slot": "select-label",
|
|
85
|
+
className: cn("text-muted-foreground px-2 py-1.5 text-xs", className),
|
|
86
|
+
...props
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
function SelectItem({
|
|
91
|
+
className,
|
|
92
|
+
children,
|
|
93
|
+
...props
|
|
94
|
+
}) {
|
|
95
|
+
return /* @__PURE__ */ jsxs(
|
|
96
|
+
SelectPrimitive.Item,
|
|
97
|
+
{
|
|
98
|
+
"data-slot": "select-item",
|
|
99
|
+
className: cn(
|
|
100
|
+
"focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
101
|
+
className
|
|
102
|
+
),
|
|
103
|
+
...props,
|
|
104
|
+
children: [
|
|
105
|
+
/* @__PURE__ */ jsx("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) }) }),
|
|
106
|
+
/* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children })
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
function SelectSeparator({
|
|
112
|
+
className,
|
|
113
|
+
...props
|
|
114
|
+
}) {
|
|
115
|
+
return /* @__PURE__ */ jsx(
|
|
116
|
+
SelectPrimitive.Separator,
|
|
117
|
+
{
|
|
118
|
+
"data-slot": "select-separator",
|
|
119
|
+
className: cn("bg-border pointer-events-none -mx-1 my-1 h-px", className),
|
|
120
|
+
...props
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
function SelectScrollUpButton({
|
|
125
|
+
className,
|
|
126
|
+
...props
|
|
127
|
+
}) {
|
|
128
|
+
return /* @__PURE__ */ jsx(
|
|
129
|
+
SelectPrimitive.ScrollUpButton,
|
|
130
|
+
{
|
|
131
|
+
"data-slot": "select-scroll-up-button",
|
|
132
|
+
className: cn(
|
|
133
|
+
"flex cursor-default items-center justify-center py-1",
|
|
134
|
+
className
|
|
135
|
+
),
|
|
136
|
+
...props,
|
|
137
|
+
children: /* @__PURE__ */ jsx(ChevronUpIcon, { className: "size-4" })
|
|
138
|
+
}
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
function SelectScrollDownButton({
|
|
142
|
+
className,
|
|
143
|
+
...props
|
|
144
|
+
}) {
|
|
145
|
+
return /* @__PURE__ */ jsx(
|
|
146
|
+
SelectPrimitive.ScrollDownButton,
|
|
147
|
+
{
|
|
148
|
+
"data-slot": "select-scroll-down-button",
|
|
149
|
+
className: cn(
|
|
150
|
+
"flex cursor-default items-center justify-center py-1",
|
|
151
|
+
className
|
|
152
|
+
),
|
|
153
|
+
...props,
|
|
154
|
+
children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4" })
|
|
155
|
+
}
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
export {
|
|
159
|
+
Select,
|
|
160
|
+
SelectContent,
|
|
161
|
+
SelectGroup,
|
|
162
|
+
SelectItem,
|
|
163
|
+
SelectLabel,
|
|
164
|
+
SelectScrollDownButton,
|
|
165
|
+
SelectScrollUpButton,
|
|
166
|
+
SelectSeparator,
|
|
167
|
+
SelectTrigger,
|
|
168
|
+
SelectValue
|
|
169
|
+
};
|
|
@@ -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.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.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
|
+
};
|
|
@@ -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.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
|
+
};
|