@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/sonner.mjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useTheme as t } from "@0xchain/next-themes";
|
|
3
|
-
import { Toaster as s } from "sonner";
|
|
4
|
-
const n = ({ ...r }) => {
|
|
5
|
-
const { theme: o = "system" } = t();
|
|
6
|
-
return /* @__PURE__ */ e(
|
|
7
|
-
s,
|
|
8
|
-
{
|
|
9
|
-
theme: o,
|
|
10
|
-
className: "toaster group",
|
|
11
|
-
style: {
|
|
12
|
-
"--normal-bg": "var(--popover)",
|
|
13
|
-
"--normal-text": "var(--popover-foreground)",
|
|
14
|
-
"--normal-border": "var(--border)"
|
|
15
|
-
},
|
|
16
|
-
...r
|
|
17
|
-
}
|
|
18
|
-
);
|
|
19
|
-
};
|
|
20
|
-
export {
|
|
21
|
-
n as Toaster
|
|
22
|
-
};
|
package/dist/table.mjs
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { c as o } from "./utils-B7J70Nno.js";
|
|
3
|
-
function n({ className: t, ...e }) {
|
|
4
|
-
return /* @__PURE__ */ a(
|
|
5
|
-
"div",
|
|
6
|
-
{
|
|
7
|
-
"data-slot": "table-container",
|
|
8
|
-
className: "relative w-full overflow-x-auto",
|
|
9
|
-
children: /* @__PURE__ */ a(
|
|
10
|
-
"table",
|
|
11
|
-
{
|
|
12
|
-
"data-slot": "table",
|
|
13
|
-
className: o("w-full caption-bottom text-sm", t),
|
|
14
|
-
...e
|
|
15
|
-
}
|
|
16
|
-
)
|
|
17
|
-
}
|
|
18
|
-
);
|
|
19
|
-
}
|
|
20
|
-
function s({ className: t, ...e }) {
|
|
21
|
-
return /* @__PURE__ */ a(
|
|
22
|
-
"thead",
|
|
23
|
-
{
|
|
24
|
-
"data-slot": "table-header",
|
|
25
|
-
className: o("[&_tr]:border-b", t),
|
|
26
|
-
...e
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
}
|
|
30
|
-
function d({ className: t, ...e }) {
|
|
31
|
-
return /* @__PURE__ */ a(
|
|
32
|
-
"tbody",
|
|
33
|
-
{
|
|
34
|
-
"data-slot": "table-body",
|
|
35
|
-
className: o("[&_tr:last-child]:border-0", t),
|
|
36
|
-
...e
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
function c({ className: t, ...e }) {
|
|
41
|
-
return /* @__PURE__ */ a(
|
|
42
|
-
"tfoot",
|
|
43
|
-
{
|
|
44
|
-
"data-slot": "table-footer",
|
|
45
|
-
className: o(
|
|
46
|
-
"bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",
|
|
47
|
-
t
|
|
48
|
-
),
|
|
49
|
-
...e
|
|
50
|
-
}
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
function b({ className: t, ...e }) {
|
|
54
|
-
return /* @__PURE__ */ a(
|
|
55
|
-
"tr",
|
|
56
|
-
{
|
|
57
|
-
"data-slot": "table-row",
|
|
58
|
-
className: o(
|
|
59
|
-
"hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
|
|
60
|
-
t
|
|
61
|
-
),
|
|
62
|
-
...e
|
|
63
|
-
}
|
|
64
|
-
);
|
|
65
|
-
}
|
|
66
|
-
function i({ className: t, ...e }) {
|
|
67
|
-
return /* @__PURE__ */ a(
|
|
68
|
-
"th",
|
|
69
|
-
{
|
|
70
|
-
"data-slot": "table-head",
|
|
71
|
-
className: o(
|
|
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
|
-
t
|
|
74
|
-
),
|
|
75
|
-
...e
|
|
76
|
-
}
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
function m({ className: t, ...e }) {
|
|
80
|
-
return /* @__PURE__ */ a(
|
|
81
|
-
"td",
|
|
82
|
-
{
|
|
83
|
-
"data-slot": "table-cell",
|
|
84
|
-
className: o(
|
|
85
|
-
"p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
86
|
-
t
|
|
87
|
-
),
|
|
88
|
-
...e
|
|
89
|
-
}
|
|
90
|
-
);
|
|
91
|
-
}
|
|
92
|
-
function u({
|
|
93
|
-
className: t,
|
|
94
|
-
...e
|
|
95
|
-
}) {
|
|
96
|
-
return /* @__PURE__ */ a(
|
|
97
|
-
"caption",
|
|
98
|
-
{
|
|
99
|
-
"data-slot": "table-caption",
|
|
100
|
-
className: o("text-muted-foreground mt-4 text-sm", t),
|
|
101
|
-
...e
|
|
102
|
-
}
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
export {
|
|
106
|
-
n as Table,
|
|
107
|
-
d as TableBody,
|
|
108
|
-
u as TableCaption,
|
|
109
|
-
m as TableCell,
|
|
110
|
-
c as TableFooter,
|
|
111
|
-
i as TableHead,
|
|
112
|
-
s as TableHeader,
|
|
113
|
-
b as TableRow
|
|
114
|
-
};
|
package/dist/toggle-group.mjs
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import * as s from "react";
|
|
3
|
-
import * as d from "@radix-ui/react-toggle-group";
|
|
4
|
-
import { c as l } from "./utils-B7J70Nno.js";
|
|
5
|
-
import { toggleVariants as m } from "./toggle.mjs";
|
|
6
|
-
const u = s.createContext({
|
|
7
|
-
size: "default",
|
|
8
|
-
variant: "default"
|
|
9
|
-
});
|
|
10
|
-
function p({
|
|
11
|
-
className: r,
|
|
12
|
-
variant: o,
|
|
13
|
-
size: t,
|
|
14
|
-
children: e,
|
|
15
|
-
...i
|
|
16
|
-
}) {
|
|
17
|
-
return /* @__PURE__ */ n(
|
|
18
|
-
d.Root,
|
|
19
|
-
{
|
|
20
|
-
"data-slot": "toggle-group",
|
|
21
|
-
"data-variant": o,
|
|
22
|
-
"data-size": t,
|
|
23
|
-
className: l(
|
|
24
|
-
"group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",
|
|
25
|
-
r
|
|
26
|
-
),
|
|
27
|
-
...i,
|
|
28
|
-
children: /* @__PURE__ */ n(u.Provider, { value: { variant: o, size: t }, children: e })
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
function v({
|
|
33
|
-
className: r,
|
|
34
|
-
children: o,
|
|
35
|
-
variant: t,
|
|
36
|
-
size: e,
|
|
37
|
-
...i
|
|
38
|
-
}) {
|
|
39
|
-
const a = s.useContext(u);
|
|
40
|
-
return /* @__PURE__ */ n(
|
|
41
|
-
d.Item,
|
|
42
|
-
{
|
|
43
|
-
"data-slot": "toggle-group-item",
|
|
44
|
-
"data-variant": a.variant || t,
|
|
45
|
-
"data-size": a.size || e,
|
|
46
|
-
className: l(
|
|
47
|
-
m({
|
|
48
|
-
variant: a.variant || t,
|
|
49
|
-
size: a.size || e
|
|
50
|
-
}),
|
|
51
|
-
"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",
|
|
52
|
-
r
|
|
53
|
-
),
|
|
54
|
-
...i,
|
|
55
|
-
children: o
|
|
56
|
-
}
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
export {
|
|
60
|
-
p as ToggleGroup,
|
|
61
|
-
v as ToggleGroupItem
|
|
62
|
-
};
|
package/dist/tooltip.mjs
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { jsx as i, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import * as o from "@radix-ui/react-tooltip";
|
|
3
|
-
import { c as d } from "./utils-B7J70Nno.js";
|
|
4
|
-
function l({
|
|
5
|
-
delayDuration: t = 0,
|
|
6
|
-
...r
|
|
7
|
-
}) {
|
|
8
|
-
return /* @__PURE__ */ i(
|
|
9
|
-
o.Provider,
|
|
10
|
-
{
|
|
11
|
-
"data-slot": "tooltip-provider",
|
|
12
|
-
delayDuration: t,
|
|
13
|
-
...r
|
|
14
|
-
}
|
|
15
|
-
);
|
|
16
|
-
}
|
|
17
|
-
function p({
|
|
18
|
-
...t
|
|
19
|
-
}) {
|
|
20
|
-
return /* @__PURE__ */ i(l, { children: /* @__PURE__ */ i(o.Root, { "data-slot": "tooltip", ...t }) });
|
|
21
|
-
}
|
|
22
|
-
function c({
|
|
23
|
-
...t
|
|
24
|
-
}) {
|
|
25
|
-
return /* @__PURE__ */ i(o.Trigger, { "data-slot": "tooltip-trigger", ...t });
|
|
26
|
-
}
|
|
27
|
-
function f({
|
|
28
|
-
className: t,
|
|
29
|
-
sideOffset: r = 0,
|
|
30
|
-
children: e,
|
|
31
|
-
...a
|
|
32
|
-
}) {
|
|
33
|
-
return /* @__PURE__ */ i(o.Portal, { children: /* @__PURE__ */ n(
|
|
34
|
-
o.Content,
|
|
35
|
-
{
|
|
36
|
-
"data-slot": "tooltip-content",
|
|
37
|
-
sideOffset: r,
|
|
38
|
-
className: d(
|
|
39
|
-
"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",
|
|
40
|
-
t
|
|
41
|
-
),
|
|
42
|
-
...a,
|
|
43
|
-
children: [
|
|
44
|
-
e,
|
|
45
|
-
/* @__PURE__ */ i(o.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
|
|
46
|
-
]
|
|
47
|
-
}
|
|
48
|
-
) });
|
|
49
|
-
}
|
|
50
|
-
export {
|
|
51
|
-
p as Tooltip,
|
|
52
|
-
f as TooltipContent,
|
|
53
|
-
l as TooltipProvider,
|
|
54
|
-
c as TooltipTrigger
|
|
55
|
-
};
|