@turingpaper/ui 0.0.1-test.1 → 0.0.1-test.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/dist/accordion.mjs +85 -0
- package/dist/alert-dialog.mjs +180 -0
- package/dist/avatar.mjs +106 -0
- package/dist/badge.mjs +43 -0
- package/dist/breadcrumb.mjs +117 -0
- package/dist/checkbox.mjs +34 -0
- package/dist/collapsible.mjs +34 -0
- package/dist/command.mjs +173 -0
- package/dist/components/accordion.d.ts +7 -0
- package/dist/components/alert-dialog.d.ts +18 -0
- package/dist/components/avatar.d.ts +11 -0
- package/dist/components/badge.d.ts +9 -0
- package/dist/components/breadcrumb.d.ts +11 -0
- package/dist/components/checkbox.d.ts +4 -0
- package/dist/components/collapsible.d.ts +5 -0
- package/dist/components/command.d.ts +18 -0
- package/dist/components/dialog.d.ts +17 -0
- package/dist/components/drawer.d.ts +13 -0
- package/dist/components/dropdown-menu.d.ts +29 -0
- package/dist/components/hover-card.d.ts +6 -0
- package/dist/components/input-group.d.ts +16 -0
- package/dist/components/label.d.ts +4 -0
- package/dist/components/pagination.d.ts +17 -0
- package/dist/components/popover.d.ts +10 -0
- package/dist/components/progress.d.ts +4 -0
- package/dist/components/radio-group.d.ts +5 -0
- package/dist/components/scroll-area.d.ts +5 -0
- package/dist/components/select.d.ts +15 -0
- package/dist/components/separator.d.ts +4 -0
- package/dist/components/sheet.d.ts +14 -0
- package/dist/components/skeleton.d.ts +2 -0
- package/dist/components/slider.d.ts +4 -0
- package/dist/components/switch.d.ts +6 -0
- package/dist/components/table.d.ts +10 -0
- package/dist/components/tabs.d.ts +11 -0
- package/dist/components/textarea.d.ts +3 -0
- package/dist/components/toggle-group.d.ts +10 -0
- package/dist/components/toggle.d.ts +9 -0
- package/dist/components/tooltip.d.ts +7 -0
- package/dist/dialog.mjs +156 -0
- package/dist/drawer.mjs +127 -0
- package/dist/dropdown-menu.mjs +251 -0
- package/dist/hover-card.mjs +38 -0
- package/dist/input-group.mjs +141 -0
- package/dist/label.mjs +22 -0
- package/dist/pagination.mjs +128 -0
- package/dist/popover.mjs +80 -0
- package/dist/progress.mjs +31 -0
- package/dist/provider.mjs +1 -1
- package/dist/radio-group.mjs +44 -0
- package/dist/scroll-area.mjs +59 -0
- package/dist/select.mjs +186 -0
- package/dist/separator.mjs +26 -0
- package/dist/sheet.mjs +139 -0
- package/dist/skeleton.mjs +15 -0
- package/dist/slider.mjs +59 -0
- package/dist/styles.css +1 -1
- package/dist/switch.mjs +31 -0
- package/dist/table.mjs +114 -0
- package/dist/tabs.mjs +90 -0
- package/dist/textarea.mjs +18 -0
- package/dist/toggle-group.mjs +76 -0
- package/dist/toggle.mjs +43 -0
- package/dist/tooltip.mjs +55 -0
- package/package.json +128 -2
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { jsx as n, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { Accordion as r } from "radix-ui";
|
|
3
|
+
import { cn as t } from "./utils.mjs";
|
|
4
|
+
import { ChevronDownIcon as d, ChevronUpIcon as c } from "lucide-react";
|
|
5
|
+
function p({
|
|
6
|
+
className: o,
|
|
7
|
+
...e
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ n(
|
|
10
|
+
r.Root,
|
|
11
|
+
{
|
|
12
|
+
"data-slot": "accordion",
|
|
13
|
+
className: t(
|
|
14
|
+
"flex w-full flex-col overflow-hidden rounded-2xl border",
|
|
15
|
+
o
|
|
16
|
+
),
|
|
17
|
+
...e
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
function u({
|
|
22
|
+
className: o,
|
|
23
|
+
...e
|
|
24
|
+
}) {
|
|
25
|
+
return /* @__PURE__ */ n(
|
|
26
|
+
r.Item,
|
|
27
|
+
{
|
|
28
|
+
"data-slot": "accordion-item",
|
|
29
|
+
className: t("not-last:border-b data-open:bg-muted/50", o),
|
|
30
|
+
...e
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
function f({
|
|
35
|
+
className: o,
|
|
36
|
+
children: e,
|
|
37
|
+
...a
|
|
38
|
+
}) {
|
|
39
|
+
return /* @__PURE__ */ n(r.Header, { className: "flex", children: /* @__PURE__ */ i(
|
|
40
|
+
r.Trigger,
|
|
41
|
+
{
|
|
42
|
+
"data-slot": "accordion-trigger",
|
|
43
|
+
className: t(
|
|
44
|
+
"group/accordion-trigger relative flex flex-1 items-start justify-between gap-6 border border-transparent p-4 text-left text-sm font-medium transition-all outline-none hover:underline disabled:pointer-events-none disabled:opacity-50 **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4 **:data-[slot=accordion-trigger-icon]:text-muted-foreground",
|
|
45
|
+
o
|
|
46
|
+
),
|
|
47
|
+
...a,
|
|
48
|
+
children: [
|
|
49
|
+
e,
|
|
50
|
+
/* @__PURE__ */ n(d, { "data-slot": "accordion-trigger-icon", className: "pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden" }),
|
|
51
|
+
/* @__PURE__ */ n(c, { "data-slot": "accordion-trigger-icon", className: "pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline" })
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
) });
|
|
55
|
+
}
|
|
56
|
+
function x({
|
|
57
|
+
className: o,
|
|
58
|
+
children: e,
|
|
59
|
+
...a
|
|
60
|
+
}) {
|
|
61
|
+
return /* @__PURE__ */ n(
|
|
62
|
+
r.Content,
|
|
63
|
+
{
|
|
64
|
+
"data-slot": "accordion-content",
|
|
65
|
+
className: "overflow-hidden px-4 text-sm data-open:animate-accordion-down data-closed:animate-accordion-up",
|
|
66
|
+
...a,
|
|
67
|
+
children: /* @__PURE__ */ n(
|
|
68
|
+
"div",
|
|
69
|
+
{
|
|
70
|
+
className: t(
|
|
71
|
+
"h-(--radix-accordion-content-height) pt-0 pb-4 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",
|
|
72
|
+
o
|
|
73
|
+
),
|
|
74
|
+
children: e
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
export {
|
|
81
|
+
p as Accordion,
|
|
82
|
+
x as AccordionContent,
|
|
83
|
+
u as AccordionItem,
|
|
84
|
+
f as AccordionTrigger
|
|
85
|
+
};
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { AlertDialog as o } from "radix-ui";
|
|
3
|
+
import { cn as l } from "./utils.mjs";
|
|
4
|
+
import { Button as d } from "./button.mjs";
|
|
5
|
+
function p({
|
|
6
|
+
...t
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ e(o.Root, { "data-slot": "alert-dialog", ...t });
|
|
9
|
+
}
|
|
10
|
+
function x({
|
|
11
|
+
...t
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ e(o.Trigger, { "data-slot": "alert-dialog-trigger", ...t });
|
|
14
|
+
}
|
|
15
|
+
function s({
|
|
16
|
+
...t
|
|
17
|
+
}) {
|
|
18
|
+
return /* @__PURE__ */ e(o.Portal, { "data-slot": "alert-dialog-portal", ...t });
|
|
19
|
+
}
|
|
20
|
+
function u({
|
|
21
|
+
className: t,
|
|
22
|
+
...a
|
|
23
|
+
}) {
|
|
24
|
+
return /* @__PURE__ */ e(
|
|
25
|
+
o.Overlay,
|
|
26
|
+
{
|
|
27
|
+
"data-slot": "alert-dialog-overlay",
|
|
28
|
+
className: l(
|
|
29
|
+
"fixed inset-0 z-50 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",
|
|
30
|
+
t
|
|
31
|
+
),
|
|
32
|
+
...a
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
function z({
|
|
37
|
+
className: t,
|
|
38
|
+
size: a = "default",
|
|
39
|
+
...r
|
|
40
|
+
}) {
|
|
41
|
+
return /* @__PURE__ */ n(s, { children: [
|
|
42
|
+
/* @__PURE__ */ e(u, {}),
|
|
43
|
+
/* @__PURE__ */ e(
|
|
44
|
+
o.Content,
|
|
45
|
+
{
|
|
46
|
+
"data-slot": "alert-dialog-content",
|
|
47
|
+
"data-size": a,
|
|
48
|
+
className: l(
|
|
49
|
+
"group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-6 rounded-4xl bg-popover p-6 text-popover-foreground ring-1 ring-foreground/5 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-md data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
50
|
+
t
|
|
51
|
+
),
|
|
52
|
+
...r
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
] });
|
|
56
|
+
}
|
|
57
|
+
function A({
|
|
58
|
+
className: t,
|
|
59
|
+
...a
|
|
60
|
+
}) {
|
|
61
|
+
return /* @__PURE__ */ e(
|
|
62
|
+
"div",
|
|
63
|
+
{
|
|
64
|
+
"data-slot": "alert-dialog-header",
|
|
65
|
+
className: l(
|
|
66
|
+
"grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",
|
|
67
|
+
t
|
|
68
|
+
),
|
|
69
|
+
...a
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
function D({
|
|
74
|
+
className: t,
|
|
75
|
+
...a
|
|
76
|
+
}) {
|
|
77
|
+
return /* @__PURE__ */ e(
|
|
78
|
+
"div",
|
|
79
|
+
{
|
|
80
|
+
"data-slot": "alert-dialog-footer",
|
|
81
|
+
className: l(
|
|
82
|
+
"flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",
|
|
83
|
+
t
|
|
84
|
+
),
|
|
85
|
+
...a
|
|
86
|
+
}
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
function h({
|
|
90
|
+
className: t,
|
|
91
|
+
...a
|
|
92
|
+
}) {
|
|
93
|
+
return /* @__PURE__ */ e(
|
|
94
|
+
"div",
|
|
95
|
+
{
|
|
96
|
+
"data-slot": "alert-dialog-media",
|
|
97
|
+
className: l(
|
|
98
|
+
"mb-2 inline-flex size-16 items-center justify-center rounded-full bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-8",
|
|
99
|
+
t
|
|
100
|
+
),
|
|
101
|
+
...a
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
function v({
|
|
106
|
+
className: t,
|
|
107
|
+
...a
|
|
108
|
+
}) {
|
|
109
|
+
return /* @__PURE__ */ e(
|
|
110
|
+
o.Title,
|
|
111
|
+
{
|
|
112
|
+
"data-slot": "alert-dialog-title",
|
|
113
|
+
className: l(
|
|
114
|
+
"text-lg font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",
|
|
115
|
+
t
|
|
116
|
+
),
|
|
117
|
+
...a
|
|
118
|
+
}
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
function b({
|
|
122
|
+
className: t,
|
|
123
|
+
...a
|
|
124
|
+
}) {
|
|
125
|
+
return /* @__PURE__ */ e(
|
|
126
|
+
o.Description,
|
|
127
|
+
{
|
|
128
|
+
"data-slot": "alert-dialog-description",
|
|
129
|
+
className: l(
|
|
130
|
+
"text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",
|
|
131
|
+
t
|
|
132
|
+
),
|
|
133
|
+
...a
|
|
134
|
+
}
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
function w({
|
|
138
|
+
className: t,
|
|
139
|
+
variant: a = "default",
|
|
140
|
+
size: r = "default",
|
|
141
|
+
...i
|
|
142
|
+
}) {
|
|
143
|
+
return /* @__PURE__ */ e(d, { variant: a, size: r, asChild: !0, children: /* @__PURE__ */ e(
|
|
144
|
+
o.Action,
|
|
145
|
+
{
|
|
146
|
+
"data-slot": "alert-dialog-action",
|
|
147
|
+
className: l(t),
|
|
148
|
+
...i
|
|
149
|
+
}
|
|
150
|
+
) });
|
|
151
|
+
}
|
|
152
|
+
function N({
|
|
153
|
+
className: t,
|
|
154
|
+
variant: a = "outline",
|
|
155
|
+
size: r = "default",
|
|
156
|
+
...i
|
|
157
|
+
}) {
|
|
158
|
+
return /* @__PURE__ */ e(d, { variant: a, size: r, asChild: !0, children: /* @__PURE__ */ e(
|
|
159
|
+
o.Cancel,
|
|
160
|
+
{
|
|
161
|
+
"data-slot": "alert-dialog-cancel",
|
|
162
|
+
className: l(t),
|
|
163
|
+
...i
|
|
164
|
+
}
|
|
165
|
+
) });
|
|
166
|
+
}
|
|
167
|
+
export {
|
|
168
|
+
p as AlertDialog,
|
|
169
|
+
w as AlertDialogAction,
|
|
170
|
+
N as AlertDialogCancel,
|
|
171
|
+
z as AlertDialogContent,
|
|
172
|
+
b as AlertDialogDescription,
|
|
173
|
+
D as AlertDialogFooter,
|
|
174
|
+
A as AlertDialogHeader,
|
|
175
|
+
h as AlertDialogMedia,
|
|
176
|
+
u as AlertDialogOverlay,
|
|
177
|
+
s as AlertDialogPortal,
|
|
178
|
+
v as AlertDialogTitle,
|
|
179
|
+
x as AlertDialogTrigger
|
|
180
|
+
};
|
package/dist/avatar.mjs
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Avatar as s } from "radix-ui";
|
|
3
|
+
import { cn as r } from "./utils.mjs";
|
|
4
|
+
function l({
|
|
5
|
+
className: a,
|
|
6
|
+
size: t = "default",
|
|
7
|
+
...o
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ e(
|
|
10
|
+
s.Root,
|
|
11
|
+
{
|
|
12
|
+
"data-slot": "avatar",
|
|
13
|
+
"data-size": t,
|
|
14
|
+
className: r(
|
|
15
|
+
"group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten",
|
|
16
|
+
a
|
|
17
|
+
),
|
|
18
|
+
...o
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
function n({
|
|
23
|
+
className: a,
|
|
24
|
+
...t
|
|
25
|
+
}) {
|
|
26
|
+
return /* @__PURE__ */ e(
|
|
27
|
+
s.Image,
|
|
28
|
+
{
|
|
29
|
+
"data-slot": "avatar-image",
|
|
30
|
+
className: r(
|
|
31
|
+
"aspect-square size-full rounded-full object-cover",
|
|
32
|
+
a
|
|
33
|
+
),
|
|
34
|
+
...t
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
function g({
|
|
39
|
+
className: a,
|
|
40
|
+
...t
|
|
41
|
+
}) {
|
|
42
|
+
return /* @__PURE__ */ e(
|
|
43
|
+
s.Fallback,
|
|
44
|
+
{
|
|
45
|
+
"data-slot": "avatar-fallback",
|
|
46
|
+
className: r(
|
|
47
|
+
"flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",
|
|
48
|
+
a
|
|
49
|
+
),
|
|
50
|
+
...t
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
function v({ className: a, ...t }) {
|
|
55
|
+
return /* @__PURE__ */ e(
|
|
56
|
+
"span",
|
|
57
|
+
{
|
|
58
|
+
"data-slot": "avatar-badge",
|
|
59
|
+
className: r(
|
|
60
|
+
"absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-primary text-primary-foreground bg-blend-color ring-2 ring-background select-none",
|
|
61
|
+
"group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden",
|
|
62
|
+
"group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2",
|
|
63
|
+
"group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2",
|
|
64
|
+
a
|
|
65
|
+
),
|
|
66
|
+
...t
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
function f({ className: a, ...t }) {
|
|
71
|
+
return /* @__PURE__ */ e(
|
|
72
|
+
"div",
|
|
73
|
+
{
|
|
74
|
+
"data-slot": "avatar-group",
|
|
75
|
+
className: r(
|
|
76
|
+
"group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background",
|
|
77
|
+
a
|
|
78
|
+
),
|
|
79
|
+
...t
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
function m({
|
|
84
|
+
className: a,
|
|
85
|
+
...t
|
|
86
|
+
}) {
|
|
87
|
+
return /* @__PURE__ */ e(
|
|
88
|
+
"div",
|
|
89
|
+
{
|
|
90
|
+
"data-slot": "avatar-group-count",
|
|
91
|
+
className: r(
|
|
92
|
+
"relative flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-sm text-muted-foreground ring-2 ring-background group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3",
|
|
93
|
+
a
|
|
94
|
+
),
|
|
95
|
+
...t
|
|
96
|
+
}
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
export {
|
|
100
|
+
l as Avatar,
|
|
101
|
+
v as AvatarBadge,
|
|
102
|
+
g as AvatarFallback,
|
|
103
|
+
f as AvatarGroup,
|
|
104
|
+
m as AvatarGroupCount,
|
|
105
|
+
n as AvatarImage
|
|
106
|
+
};
|
package/dist/badge.mjs
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { cva as n } from "class-variance-authority";
|
|
3
|
+
import { Slot as d } from "radix-ui";
|
|
4
|
+
import { cn as s } from "./utils.mjs";
|
|
5
|
+
const u = n(
|
|
6
|
+
"group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",
|
|
7
|
+
{
|
|
8
|
+
variants: {
|
|
9
|
+
variant: {
|
|
10
|
+
default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
|
|
11
|
+
secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
|
|
12
|
+
destructive: "bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",
|
|
13
|
+
outline: "border-border bg-input/30 text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
|
|
14
|
+
ghost: "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
|
|
15
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: {
|
|
19
|
+
variant: "default"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
function f({
|
|
24
|
+
className: r,
|
|
25
|
+
variant: e = "default",
|
|
26
|
+
asChild: t = !1,
|
|
27
|
+
...i
|
|
28
|
+
}) {
|
|
29
|
+
const a = t ? d.Root : "span";
|
|
30
|
+
return /* @__PURE__ */ o(
|
|
31
|
+
a,
|
|
32
|
+
{
|
|
33
|
+
"data-slot": "badge",
|
|
34
|
+
"data-variant": e,
|
|
35
|
+
className: s(u({ variant: e }), r),
|
|
36
|
+
...i
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
f as Badge,
|
|
42
|
+
u as badgeVariants
|
|
43
|
+
};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { jsx as a, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { Slot as i } from "radix-ui";
|
|
3
|
+
import { cn as t } from "./utils.mjs";
|
|
4
|
+
import { MoreHorizontalIcon as l, ChevronRightIcon as c } from "lucide-react";
|
|
5
|
+
function p({ className: r, ...e }) {
|
|
6
|
+
return /* @__PURE__ */ a(
|
|
7
|
+
"nav",
|
|
8
|
+
{
|
|
9
|
+
"aria-label": "breadcrumb",
|
|
10
|
+
"data-slot": "breadcrumb",
|
|
11
|
+
className: t(r),
|
|
12
|
+
...e
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
function f({ className: r, ...e }) {
|
|
17
|
+
return /* @__PURE__ */ a(
|
|
18
|
+
"ol",
|
|
19
|
+
{
|
|
20
|
+
"data-slot": "breadcrumb-list",
|
|
21
|
+
className: t(
|
|
22
|
+
"flex flex-wrap items-center gap-1.5 text-sm wrap-break-word text-muted-foreground sm:gap-2.5",
|
|
23
|
+
r
|
|
24
|
+
),
|
|
25
|
+
...e
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
function g({ className: r, ...e }) {
|
|
30
|
+
return /* @__PURE__ */ a(
|
|
31
|
+
"li",
|
|
32
|
+
{
|
|
33
|
+
"data-slot": "breadcrumb-item",
|
|
34
|
+
className: t("inline-flex items-center gap-1.5", r),
|
|
35
|
+
...e
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
function x({
|
|
40
|
+
asChild: r,
|
|
41
|
+
className: e,
|
|
42
|
+
...n
|
|
43
|
+
}) {
|
|
44
|
+
const o = r ? i.Root : "a";
|
|
45
|
+
return /* @__PURE__ */ a(
|
|
46
|
+
o,
|
|
47
|
+
{
|
|
48
|
+
"data-slot": "breadcrumb-link",
|
|
49
|
+
className: t("transition-colors hover:text-foreground", e),
|
|
50
|
+
...n
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
function h({ className: r, ...e }) {
|
|
55
|
+
return /* @__PURE__ */ a(
|
|
56
|
+
"span",
|
|
57
|
+
{
|
|
58
|
+
"data-slot": "breadcrumb-page",
|
|
59
|
+
role: "link",
|
|
60
|
+
"aria-disabled": "true",
|
|
61
|
+
"aria-current": "page",
|
|
62
|
+
className: t("font-normal text-foreground", r),
|
|
63
|
+
...e
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
function N({
|
|
68
|
+
children: r,
|
|
69
|
+
className: e,
|
|
70
|
+
...n
|
|
71
|
+
}) {
|
|
72
|
+
return /* @__PURE__ */ a(
|
|
73
|
+
"li",
|
|
74
|
+
{
|
|
75
|
+
"data-slot": "breadcrumb-separator",
|
|
76
|
+
role: "presentation",
|
|
77
|
+
"aria-hidden": "true",
|
|
78
|
+
className: t("[&>svg]:size-3.5", e),
|
|
79
|
+
...n,
|
|
80
|
+
children: r ?? /* @__PURE__ */ a(c, {})
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
function B({
|
|
85
|
+
className: r,
|
|
86
|
+
...e
|
|
87
|
+
}) {
|
|
88
|
+
return /* @__PURE__ */ s(
|
|
89
|
+
"span",
|
|
90
|
+
{
|
|
91
|
+
"data-slot": "breadcrumb-ellipsis",
|
|
92
|
+
role: "presentation",
|
|
93
|
+
"aria-hidden": "true",
|
|
94
|
+
className: t(
|
|
95
|
+
"flex size-5 items-center justify-center [&>svg]:size-4",
|
|
96
|
+
r
|
|
97
|
+
),
|
|
98
|
+
...e,
|
|
99
|
+
children: [
|
|
100
|
+
/* @__PURE__ */ a(
|
|
101
|
+
l,
|
|
102
|
+
{}
|
|
103
|
+
),
|
|
104
|
+
/* @__PURE__ */ a("span", { className: "sr-only", children: "More" })
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
export {
|
|
110
|
+
p as Breadcrumb,
|
|
111
|
+
B as BreadcrumbEllipsis,
|
|
112
|
+
g as BreadcrumbItem,
|
|
113
|
+
x as BreadcrumbLink,
|
|
114
|
+
f as BreadcrumbList,
|
|
115
|
+
h as BreadcrumbPage,
|
|
116
|
+
N as BreadcrumbSeparator
|
|
117
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Checkbox as e } from "radix-ui";
|
|
3
|
+
import { cn as t } from "./utils.mjs";
|
|
4
|
+
import { CheckIcon as d } from "lucide-react";
|
|
5
|
+
function l({
|
|
6
|
+
className: i,
|
|
7
|
+
...a
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ r(
|
|
10
|
+
e.Root,
|
|
11
|
+
{
|
|
12
|
+
"data-slot": "checkbox",
|
|
13
|
+
className: t(
|
|
14
|
+
"peer relative flex size-4 shrink-0 items-center justify-center rounded-[6px] border border-input transition-shadow outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-[3px] aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",
|
|
15
|
+
i
|
|
16
|
+
),
|
|
17
|
+
...a,
|
|
18
|
+
children: /* @__PURE__ */ r(
|
|
19
|
+
e.Indicator,
|
|
20
|
+
{
|
|
21
|
+
"data-slot": "checkbox-indicator",
|
|
22
|
+
className: "grid place-content-center text-current transition-none [&>svg]:size-3.5",
|
|
23
|
+
children: /* @__PURE__ */ r(
|
|
24
|
+
d,
|
|
25
|
+
{}
|
|
26
|
+
)
|
|
27
|
+
}
|
|
28
|
+
)
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
l as Checkbox
|
|
34
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Collapsible as t } from "radix-ui";
|
|
3
|
+
function a({
|
|
4
|
+
...l
|
|
5
|
+
}) {
|
|
6
|
+
return /* @__PURE__ */ o(t.Root, { "data-slot": "collapsible", ...l });
|
|
7
|
+
}
|
|
8
|
+
function r({
|
|
9
|
+
...l
|
|
10
|
+
}) {
|
|
11
|
+
return /* @__PURE__ */ o(
|
|
12
|
+
t.CollapsibleTrigger,
|
|
13
|
+
{
|
|
14
|
+
"data-slot": "collapsible-trigger",
|
|
15
|
+
...l
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
function n({
|
|
20
|
+
...l
|
|
21
|
+
}) {
|
|
22
|
+
return /* @__PURE__ */ o(
|
|
23
|
+
t.CollapsibleContent,
|
|
24
|
+
{
|
|
25
|
+
"data-slot": "collapsible-content",
|
|
26
|
+
...l
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
a as Collapsible,
|
|
32
|
+
n as CollapsibleContent,
|
|
33
|
+
r as CollapsibleTrigger
|
|
34
|
+
};
|