@timbal-ai/timbal-react 1.4.0 → 1.6.0
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/CHANGELOG.md +30 -0
- package/README.md +43 -4
- package/dist/app.cjs +3770 -1506
- package/dist/app.d.cts +76 -31
- package/dist/app.d.ts +76 -31
- package/dist/app.esm.js +30 -8
- package/dist/{chart-artifact-C8-Py6lc.d.cts → chart-artifact-C2pZQsaP.d.ts} +247 -41
- package/dist/{chart-artifact-CMnDys2t.d.ts → chart-artifact-VAqgH-My.d.cts} +247 -41
- package/dist/{chat-ClmzWzCX.d.cts → chat-DDsp-Vzz.d.cts} +1 -1
- package/dist/{chat-ClmzWzCX.d.ts → chat-DDsp-Vzz.d.ts} +1 -1
- package/dist/chat.cjs +280 -123
- package/dist/chat.d.cts +3 -3
- package/dist/chat.d.ts +3 -3
- package/dist/chat.esm.js +4 -3
- package/dist/chunk-24B4I4XC.esm.js +232 -0
- package/dist/{chunk-VOWNCS3F.esm.js → chunk-6SQMTBPL.esm.js} +1669 -504
- package/dist/chunk-EDEKQYSU.esm.js +10 -0
- package/dist/{chunk-QIABF4KB.esm.js → chunk-ELEY66OH.esm.js} +2 -2
- package/dist/{chunk-THBA27QY.esm.js → chunk-HSL36SJ4.esm.js} +243 -124
- package/dist/chunk-JJOO4PR5.esm.js +391 -0
- package/dist/{chunk-QU7ET55D.esm.js → chunk-MBS7XHV2.esm.js} +335 -192
- package/dist/chunk-NO5AWNWT.esm.js +1066 -0
- package/dist/{chunk-VXMM2HX7.esm.js → chunk-R4RQT2XQ.esm.js} +3 -3
- package/dist/{chunk-OFWC4MIY.esm.js → chunk-TMP7RIA7.esm.js} +5 -3
- package/dist/{chunk-GQBYZRD7.esm.js → chunk-WQIQW7EM.esm.js} +40 -28
- package/dist/{chunk-OH23AX2V.esm.js → chunk-YYEI6XME.esm.js} +441 -957
- package/dist/{circular-progress-Ci8L-Hfa.d.cts → circular-progress-B9nnwzCu.d.cts} +20 -78
- package/dist/{circular-progress-Ci8L-Hfa.d.ts → circular-progress-B9nnwzCu.d.ts} +20 -78
- package/dist/index.cjs +5547 -3192
- package/dist/index.d.cts +10 -8
- package/dist/index.d.ts +10 -8
- package/dist/index.esm.js +76 -44
- package/dist/kanban-FFBeaZPS.d.cts +212 -0
- package/dist/kanban-FFBeaZPS.d.ts +212 -0
- package/dist/{layout-BTJyU8wd.d.ts → layout-CuKeSY74.d.ts} +1 -1
- package/dist/{layout-C2G-FcER.d.cts → layout-PzVwkJyL.d.cts} +1 -1
- package/dist/site.cjs +429 -0
- package/dist/site.d.cts +198 -0
- package/dist/site.d.ts +198 -0
- package/dist/site.esm.js +23 -0
- package/dist/studio.cjs +722 -363
- package/dist/studio.d.cts +2 -2
- package/dist/studio.d.ts +2 -2
- package/dist/studio.esm.js +8 -6
- package/dist/styles.css +56 -0
- package/dist/{timbal-v2-button-CNfdwGq4.d.cts → timbal-v2-button-DCAZNyUx.d.cts} +3 -3
- package/dist/{timbal-v2-button-CNfdwGq4.d.ts → timbal-v2-button-DCAZNyUx.d.ts} +3 -3
- package/dist/ui.cjs +1553 -708
- package/dist/ui.d.cts +11 -4
- package/dist/ui.d.ts +11 -4
- package/dist/ui.esm.js +45 -36
- package/dist/{welcome-DXqsGTwH.d.ts → welcome-B00oH5Io.d.cts} +5 -1
- package/dist/{welcome-BFGRoNfK.d.cts → welcome-DU-4NTjZ.d.ts} +5 -1
- package/package.json +9 -1
- package/dist/button-BoyX5pM_.d.cts +0 -18
- package/dist/button-BoyX5pM_.d.ts +0 -18
- package/dist/chunk-UCGVL7ZY.esm.js +0 -52
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CopyButton,
|
|
3
|
+
Popover,
|
|
4
|
+
PopoverAnchor,
|
|
5
|
+
PopoverContent,
|
|
6
|
+
PopoverTrigger
|
|
7
|
+
} from "./chunk-NO5AWNWT.esm.js";
|
|
1
8
|
import {
|
|
2
9
|
Button,
|
|
3
10
|
Dialog,
|
|
@@ -9,433 +16,24 @@ import {
|
|
|
9
16
|
TIMBAL_V2_MODAL_SURFACE,
|
|
10
17
|
TIMBAL_V2_SWITCH_THUMB,
|
|
11
18
|
TIMBAL_V2_SWITCH_TRACK_OFF,
|
|
12
|
-
cn,
|
|
13
19
|
controlClass,
|
|
14
20
|
controlSurfaceClass,
|
|
15
21
|
overlayItemClass,
|
|
16
|
-
overlayListPanelClass,
|
|
17
22
|
overlaySurfaceClass
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
|
|
23
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
24
|
-
function DropdownMenu({
|
|
25
|
-
...props
|
|
26
|
-
}) {
|
|
27
|
-
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
|
|
28
|
-
}
|
|
29
|
-
function DropdownMenuTrigger({
|
|
30
|
-
...props
|
|
31
|
-
}) {
|
|
32
|
-
return /* @__PURE__ */ jsx(
|
|
33
|
-
DropdownMenuPrimitive.Trigger,
|
|
34
|
-
{
|
|
35
|
-
"data-slot": "dropdown-menu-trigger",
|
|
36
|
-
...props
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
function DropdownMenuGroup({
|
|
41
|
-
...props
|
|
42
|
-
}) {
|
|
43
|
-
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Group, { "data-slot": "dropdown-menu-group", ...props });
|
|
44
|
-
}
|
|
45
|
-
function DropdownMenuContent({
|
|
46
|
-
className,
|
|
47
|
-
sideOffset = 4,
|
|
48
|
-
...props
|
|
49
|
-
}) {
|
|
50
|
-
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
51
|
-
DropdownMenuPrimitive.Content,
|
|
52
|
-
{
|
|
53
|
-
"data-slot": "dropdown-menu-content",
|
|
54
|
-
sideOffset,
|
|
55
|
-
className: cn(
|
|
56
|
-
overlayListPanelClass,
|
|
57
|
-
"max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] origin-[var(--radix-dropdown-menu-content-transform-origin)] overflow-x-hidden overflow-y-auto p-1",
|
|
58
|
-
className
|
|
59
|
-
),
|
|
60
|
-
...props
|
|
61
|
-
}
|
|
62
|
-
) });
|
|
63
|
-
}
|
|
64
|
-
function DropdownMenuItem({
|
|
65
|
-
className,
|
|
66
|
-
inset,
|
|
67
|
-
variant = "default",
|
|
68
|
-
...props
|
|
69
|
-
}) {
|
|
70
|
-
return /* @__PURE__ */ jsx(
|
|
71
|
-
DropdownMenuPrimitive.Item,
|
|
72
|
-
{
|
|
73
|
-
"data-slot": "dropdown-menu-item",
|
|
74
|
-
"data-inset": inset,
|
|
75
|
-
"data-variant": variant,
|
|
76
|
-
className: cn(
|
|
77
|
-
overlayItemClass,
|
|
78
|
-
"data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10",
|
|
79
|
-
className
|
|
80
|
-
),
|
|
81
|
-
...props
|
|
82
|
-
}
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
function DropdownMenuCheckboxItem({
|
|
86
|
-
className,
|
|
87
|
-
children,
|
|
88
|
-
checked,
|
|
89
|
-
...props
|
|
90
|
-
}) {
|
|
91
|
-
return /* @__PURE__ */ jsxs(
|
|
92
|
-
DropdownMenuPrimitive.CheckboxItem,
|
|
93
|
-
{
|
|
94
|
-
"data-slot": "dropdown-menu-checkbox-item",
|
|
95
|
-
className: cn(overlayItemClass, "py-1.5 pr-2 pl-8", className),
|
|
96
|
-
checked,
|
|
97
|
-
...props,
|
|
98
|
-
children: [
|
|
99
|
-
/* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) }) }),
|
|
100
|
-
children
|
|
101
|
-
]
|
|
102
|
-
}
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
function DropdownMenuRadioGroup({
|
|
106
|
-
...props
|
|
107
|
-
}) {
|
|
108
|
-
return /* @__PURE__ */ jsx(
|
|
109
|
-
DropdownMenuPrimitive.RadioGroup,
|
|
110
|
-
{
|
|
111
|
-
"data-slot": "dropdown-menu-radio-group",
|
|
112
|
-
...props
|
|
113
|
-
}
|
|
114
|
-
);
|
|
115
|
-
}
|
|
116
|
-
function DropdownMenuRadioItem({
|
|
117
|
-
className,
|
|
118
|
-
children,
|
|
119
|
-
...props
|
|
120
|
-
}) {
|
|
121
|
-
return /* @__PURE__ */ jsxs(
|
|
122
|
-
DropdownMenuPrimitive.RadioItem,
|
|
123
|
-
{
|
|
124
|
-
"data-slot": "dropdown-menu-radio-item",
|
|
125
|
-
className: cn(overlayItemClass, "py-1.5 pr-2 pl-8", className),
|
|
126
|
-
...props,
|
|
127
|
-
children: [
|
|
128
|
-
/* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
129
|
-
children
|
|
130
|
-
]
|
|
131
|
-
}
|
|
132
|
-
);
|
|
133
|
-
}
|
|
134
|
-
function DropdownMenuLabel({
|
|
135
|
-
className,
|
|
136
|
-
inset,
|
|
137
|
-
...props
|
|
138
|
-
}) {
|
|
139
|
-
return /* @__PURE__ */ jsx(
|
|
140
|
-
DropdownMenuPrimitive.Label,
|
|
141
|
-
{
|
|
142
|
-
"data-slot": "dropdown-menu-label",
|
|
143
|
-
"data-inset": inset,
|
|
144
|
-
className: cn(
|
|
145
|
-
"px-2 py-1.5 text-xs font-medium text-muted-foreground data-[inset]:pl-8",
|
|
146
|
-
className
|
|
147
|
-
),
|
|
148
|
-
...props
|
|
149
|
-
}
|
|
150
|
-
);
|
|
151
|
-
}
|
|
152
|
-
function DropdownMenuSeparator({
|
|
153
|
-
className,
|
|
154
|
-
...props
|
|
155
|
-
}) {
|
|
156
|
-
return /* @__PURE__ */ jsx(
|
|
157
|
-
DropdownMenuPrimitive.Separator,
|
|
158
|
-
{
|
|
159
|
-
"data-slot": "dropdown-menu-separator",
|
|
160
|
-
className: cn("-mx-1 my-1 h-px bg-border", className),
|
|
161
|
-
...props
|
|
162
|
-
}
|
|
163
|
-
);
|
|
164
|
-
}
|
|
165
|
-
function DropdownMenuShortcut({
|
|
166
|
-
className,
|
|
167
|
-
...props
|
|
168
|
-
}) {
|
|
169
|
-
return /* @__PURE__ */ jsx(
|
|
170
|
-
"span",
|
|
171
|
-
{
|
|
172
|
-
"data-slot": "dropdown-menu-shortcut",
|
|
173
|
-
className: cn(
|
|
174
|
-
"ml-auto text-xs tracking-widest text-muted-foreground",
|
|
175
|
-
className
|
|
176
|
-
),
|
|
177
|
-
...props
|
|
178
|
-
}
|
|
179
|
-
);
|
|
180
|
-
}
|
|
181
|
-
function DropdownMenuSub({
|
|
182
|
-
...props
|
|
183
|
-
}) {
|
|
184
|
-
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Sub, { "data-slot": "dropdown-menu-sub", ...props });
|
|
185
|
-
}
|
|
186
|
-
function DropdownMenuSubTrigger({
|
|
187
|
-
className,
|
|
188
|
-
inset,
|
|
189
|
-
children,
|
|
190
|
-
...props
|
|
191
|
-
}) {
|
|
192
|
-
return /* @__PURE__ */ jsxs(
|
|
193
|
-
DropdownMenuPrimitive.SubTrigger,
|
|
194
|
-
{
|
|
195
|
-
"data-slot": "dropdown-menu-sub-trigger",
|
|
196
|
-
"data-inset": inset,
|
|
197
|
-
className: cn(
|
|
198
|
-
overlayItemClass,
|
|
199
|
-
"data-[state=open]:bg-accent data-[state=open]:text-accent-foreground data-[inset]:pl-8",
|
|
200
|
-
className
|
|
201
|
-
),
|
|
202
|
-
...props,
|
|
203
|
-
children: [
|
|
204
|
-
children,
|
|
205
|
-
/* @__PURE__ */ jsx(ChevronRightIcon, { className: "ml-auto size-4" })
|
|
206
|
-
]
|
|
207
|
-
}
|
|
208
|
-
);
|
|
209
|
-
}
|
|
210
|
-
function DropdownMenuSubContent({
|
|
211
|
-
className,
|
|
212
|
-
...props
|
|
213
|
-
}) {
|
|
214
|
-
return /* @__PURE__ */ jsx(
|
|
215
|
-
DropdownMenuPrimitive.SubContent,
|
|
216
|
-
{
|
|
217
|
-
"data-slot": "dropdown-menu-sub-content",
|
|
218
|
-
className: cn(
|
|
219
|
-
overlayListPanelClass,
|
|
220
|
-
"min-w-[8rem] origin-[var(--radix-dropdown-menu-content-transform-origin)] overflow-hidden p-1",
|
|
221
|
-
className
|
|
222
|
-
),
|
|
223
|
-
...props
|
|
224
|
-
}
|
|
225
|
-
);
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
// src/ui/popover.tsx
|
|
229
|
-
import { Popover as PopoverPrimitive } from "radix-ui";
|
|
230
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
231
|
-
function Popover({
|
|
232
|
-
...props
|
|
233
|
-
}) {
|
|
234
|
-
return /* @__PURE__ */ jsx2(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
|
|
235
|
-
}
|
|
236
|
-
function PopoverTrigger({
|
|
237
|
-
...props
|
|
238
|
-
}) {
|
|
239
|
-
return /* @__PURE__ */ jsx2(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
|
|
240
|
-
}
|
|
241
|
-
function PopoverAnchor({
|
|
242
|
-
...props
|
|
243
|
-
}) {
|
|
244
|
-
return /* @__PURE__ */ jsx2(PopoverPrimitive.Anchor, { "data-slot": "popover-anchor", ...props });
|
|
245
|
-
}
|
|
246
|
-
function PopoverContent({
|
|
247
|
-
className,
|
|
248
|
-
align = "center",
|
|
249
|
-
sideOffset = 4,
|
|
250
|
-
variant = "default",
|
|
251
|
-
...props
|
|
252
|
-
}) {
|
|
253
|
-
return /* @__PURE__ */ jsx2(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx2(
|
|
254
|
-
PopoverPrimitive.Content,
|
|
255
|
-
{
|
|
256
|
-
"data-slot": "popover-content",
|
|
257
|
-
"data-variant": variant,
|
|
258
|
-
align,
|
|
259
|
-
sideOffset,
|
|
260
|
-
className: cn(
|
|
261
|
-
variant === "list" ? cn(
|
|
262
|
-
overlayListPanelClass,
|
|
263
|
-
"min-w-[8rem] origin-[var(--radix-popover-content-transform-origin)]"
|
|
264
|
-
) : cn(
|
|
265
|
-
overlaySurfaceClass,
|
|
266
|
-
"w-72 origin-[var(--radix-popover-content-transform-origin)] rounded-xl p-4 outline-hidden"
|
|
267
|
-
),
|
|
268
|
-
className
|
|
269
|
-
),
|
|
270
|
-
...props
|
|
271
|
-
}
|
|
272
|
-
) });
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
// src/ui/select.tsx
|
|
276
|
-
import { Select as SelectPrimitive } from "radix-ui";
|
|
277
|
-
import { CheckIcon as CheckIcon2, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
|
|
278
|
-
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
279
|
-
function Select({
|
|
280
|
-
...props
|
|
281
|
-
}) {
|
|
282
|
-
return /* @__PURE__ */ jsx3(SelectPrimitive.Root, { "data-slot": "select", ...props });
|
|
283
|
-
}
|
|
284
|
-
function SelectGroup({
|
|
285
|
-
...props
|
|
286
|
-
}) {
|
|
287
|
-
return /* @__PURE__ */ jsx3(SelectPrimitive.Group, { "data-slot": "select-group", ...props });
|
|
288
|
-
}
|
|
289
|
-
function SelectValue({
|
|
290
|
-
...props
|
|
291
|
-
}) {
|
|
292
|
-
return /* @__PURE__ */ jsx3(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
|
|
293
|
-
}
|
|
294
|
-
function SelectTrigger({
|
|
295
|
-
className,
|
|
296
|
-
size = "default",
|
|
297
|
-
children,
|
|
298
|
-
...props
|
|
299
|
-
}) {
|
|
300
|
-
return /* @__PURE__ */ jsxs2(
|
|
301
|
-
SelectPrimitive.Trigger,
|
|
302
|
-
{
|
|
303
|
-
"data-slot": "select-trigger",
|
|
304
|
-
"data-size": size,
|
|
305
|
-
className: cn(
|
|
306
|
-
controlClass({ size }),
|
|
307
|
-
"flex w-fit items-center justify-between gap-2 whitespace-nowrap *: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 [&_svg:not([class*='text-'])]:text-muted-foreground",
|
|
308
|
-
className
|
|
309
|
-
),
|
|
310
|
-
...props,
|
|
311
|
-
children: [
|
|
312
|
-
children,
|
|
313
|
-
/* @__PURE__ */ jsx3(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx3(ChevronDownIcon, { className: "size-4 opacity-50" }) })
|
|
314
|
-
]
|
|
315
|
-
}
|
|
316
|
-
);
|
|
317
|
-
}
|
|
318
|
-
function SelectContent({
|
|
319
|
-
className,
|
|
320
|
-
children,
|
|
321
|
-
position = "popper",
|
|
322
|
-
...props
|
|
323
|
-
}) {
|
|
324
|
-
return /* @__PURE__ */ jsx3(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs2(
|
|
325
|
-
SelectPrimitive.Content,
|
|
326
|
-
{
|
|
327
|
-
"data-slot": "select-content",
|
|
328
|
-
className: cn(
|
|
329
|
-
overlayListPanelClass,
|
|
330
|
-
"relative max-h-[var(--radix-select-content-available-height)] min-w-[8rem] origin-[var(--radix-select-content-transform-origin)] overflow-x-hidden overflow-y-auto",
|
|
331
|
-
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",
|
|
332
|
-
className
|
|
333
|
-
),
|
|
334
|
-
position,
|
|
335
|
-
...props,
|
|
336
|
-
children: [
|
|
337
|
-
/* @__PURE__ */ jsx3(SelectScrollUpButton, {}),
|
|
338
|
-
/* @__PURE__ */ jsx3(
|
|
339
|
-
SelectPrimitive.Viewport,
|
|
340
|
-
{
|
|
341
|
-
className: cn(
|
|
342
|
-
"p-1",
|
|
343
|
-
position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
|
|
344
|
-
),
|
|
345
|
-
children
|
|
346
|
-
}
|
|
347
|
-
),
|
|
348
|
-
/* @__PURE__ */ jsx3(SelectScrollDownButton, {})
|
|
349
|
-
]
|
|
350
|
-
}
|
|
351
|
-
) });
|
|
352
|
-
}
|
|
353
|
-
function SelectLabel({
|
|
354
|
-
className,
|
|
355
|
-
...props
|
|
356
|
-
}) {
|
|
357
|
-
return /* @__PURE__ */ jsx3(
|
|
358
|
-
SelectPrimitive.Label,
|
|
359
|
-
{
|
|
360
|
-
"data-slot": "select-label",
|
|
361
|
-
className: cn("px-2 py-1.5 text-xs font-medium text-muted-foreground", className),
|
|
362
|
-
...props
|
|
363
|
-
}
|
|
364
|
-
);
|
|
365
|
-
}
|
|
366
|
-
function SelectItem({
|
|
367
|
-
className,
|
|
368
|
-
children,
|
|
369
|
-
...props
|
|
370
|
-
}) {
|
|
371
|
-
return /* @__PURE__ */ jsxs2(
|
|
372
|
-
SelectPrimitive.Item,
|
|
373
|
-
{
|
|
374
|
-
"data-slot": "select-item",
|
|
375
|
-
className: cn(
|
|
376
|
-
overlayItemClass,
|
|
377
|
-
"w-full py-1.5 pr-8 pl-2 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
378
|
-
className
|
|
379
|
-
),
|
|
380
|
-
...props,
|
|
381
|
-
children: [
|
|
382
|
-
/* @__PURE__ */ jsx3("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx3(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx3(CheckIcon2, { className: "size-4" }) }) }),
|
|
383
|
-
/* @__PURE__ */ jsx3(SelectPrimitive.ItemText, { children })
|
|
384
|
-
]
|
|
385
|
-
}
|
|
386
|
-
);
|
|
387
|
-
}
|
|
388
|
-
function SelectSeparator({
|
|
389
|
-
className,
|
|
390
|
-
...props
|
|
391
|
-
}) {
|
|
392
|
-
return /* @__PURE__ */ jsx3(
|
|
393
|
-
SelectPrimitive.Separator,
|
|
394
|
-
{
|
|
395
|
-
"data-slot": "select-separator",
|
|
396
|
-
className: cn("-mx-1 my-1 h-px bg-border", className),
|
|
397
|
-
...props
|
|
398
|
-
}
|
|
399
|
-
);
|
|
400
|
-
}
|
|
401
|
-
function SelectScrollUpButton({
|
|
402
|
-
className,
|
|
403
|
-
...props
|
|
404
|
-
}) {
|
|
405
|
-
return /* @__PURE__ */ jsx3(
|
|
406
|
-
SelectPrimitive.ScrollUpButton,
|
|
407
|
-
{
|
|
408
|
-
"data-slot": "select-scroll-up-button",
|
|
409
|
-
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
410
|
-
...props,
|
|
411
|
-
children: /* @__PURE__ */ jsx3(ChevronUpIcon, { className: "size-4" })
|
|
412
|
-
}
|
|
413
|
-
);
|
|
414
|
-
}
|
|
415
|
-
function SelectScrollDownButton({
|
|
416
|
-
className,
|
|
417
|
-
...props
|
|
418
|
-
}) {
|
|
419
|
-
return /* @__PURE__ */ jsx3(
|
|
420
|
-
SelectPrimitive.ScrollDownButton,
|
|
421
|
-
{
|
|
422
|
-
"data-slot": "select-scroll-down-button",
|
|
423
|
-
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
424
|
-
...props,
|
|
425
|
-
children: /* @__PURE__ */ jsx3(ChevronDownIcon, { className: "size-4" })
|
|
426
|
-
}
|
|
427
|
-
);
|
|
428
|
-
}
|
|
23
|
+
} from "./chunk-MBS7XHV2.esm.js";
|
|
24
|
+
import {
|
|
25
|
+
cn
|
|
26
|
+
} from "./chunk-EDEKQYSU.esm.js";
|
|
429
27
|
|
|
430
28
|
// src/ui/input.tsx
|
|
431
|
-
import { jsx
|
|
29
|
+
import { jsx } from "react/jsx-runtime";
|
|
432
30
|
function Input({
|
|
433
31
|
className,
|
|
434
32
|
type,
|
|
435
33
|
controlSize,
|
|
436
34
|
...props
|
|
437
35
|
}) {
|
|
438
|
-
return /* @__PURE__ */
|
|
36
|
+
return /* @__PURE__ */ jsx(
|
|
439
37
|
"input",
|
|
440
38
|
{
|
|
441
39
|
type,
|
|
@@ -451,15 +49,15 @@ function Input({
|
|
|
451
49
|
}
|
|
452
50
|
|
|
453
51
|
// src/ui/textarea.tsx
|
|
454
|
-
import { jsx as
|
|
52
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
455
53
|
function Textarea({ className, ...props }) {
|
|
456
|
-
return /* @__PURE__ */
|
|
54
|
+
return /* @__PURE__ */ jsx2(
|
|
457
55
|
"textarea",
|
|
458
56
|
{
|
|
459
57
|
"data-slot": "textarea",
|
|
460
58
|
className: cn(
|
|
461
59
|
controlSurfaceClass,
|
|
462
|
-
"min-h-16 w-full resize-y rounded-lg px-
|
|
60
|
+
"min-h-16 w-full resize-y rounded-lg px-2.5 py-1.5 leading-relaxed",
|
|
463
61
|
className
|
|
464
62
|
),
|
|
465
63
|
...props
|
|
@@ -469,12 +67,12 @@ function Textarea({ className, ...props }) {
|
|
|
469
67
|
|
|
470
68
|
// src/ui/label.tsx
|
|
471
69
|
import { Label as LabelPrimitive } from "radix-ui";
|
|
472
|
-
import { jsx as
|
|
70
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
473
71
|
function Label({
|
|
474
72
|
className,
|
|
475
73
|
...props
|
|
476
74
|
}) {
|
|
477
|
-
return /* @__PURE__ */
|
|
75
|
+
return /* @__PURE__ */ jsx3(
|
|
478
76
|
LabelPrimitive.Root,
|
|
479
77
|
{
|
|
480
78
|
"data-slot": "label",
|
|
@@ -490,12 +88,12 @@ function Label({
|
|
|
490
88
|
|
|
491
89
|
// src/ui/switch.tsx
|
|
492
90
|
import { Switch as SwitchPrimitive } from "radix-ui";
|
|
493
|
-
import { jsx as
|
|
91
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
494
92
|
function Switch({
|
|
495
93
|
className,
|
|
496
94
|
...props
|
|
497
95
|
}) {
|
|
498
|
-
return /* @__PURE__ */
|
|
96
|
+
return /* @__PURE__ */ jsx4(
|
|
499
97
|
SwitchPrimitive.Root,
|
|
500
98
|
{
|
|
501
99
|
"data-slot": "switch",
|
|
@@ -507,7 +105,7 @@ function Switch({
|
|
|
507
105
|
className
|
|
508
106
|
),
|
|
509
107
|
...props,
|
|
510
|
-
children: /* @__PURE__ */
|
|
108
|
+
children: /* @__PURE__ */ jsx4(
|
|
511
109
|
SwitchPrimitive.Thumb,
|
|
512
110
|
{
|
|
513
111
|
"data-slot": "switch-thumb",
|
|
@@ -523,13 +121,13 @@ function Switch({
|
|
|
523
121
|
|
|
524
122
|
// src/ui/radio-group.tsx
|
|
525
123
|
import { RadioGroup as RadioGroupPrimitive } from "radix-ui";
|
|
526
|
-
import { CircleIcon
|
|
527
|
-
import { jsx as
|
|
124
|
+
import { CircleIcon } from "lucide-react";
|
|
125
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
528
126
|
function RadioGroup({
|
|
529
127
|
className,
|
|
530
128
|
...props
|
|
531
129
|
}) {
|
|
532
|
-
return /* @__PURE__ */
|
|
130
|
+
return /* @__PURE__ */ jsx5(
|
|
533
131
|
RadioGroupPrimitive.Root,
|
|
534
132
|
{
|
|
535
133
|
"data-slot": "radio-group",
|
|
@@ -542,7 +140,7 @@ function RadioGroupItem({
|
|
|
542
140
|
className,
|
|
543
141
|
...props
|
|
544
142
|
}) {
|
|
545
|
-
return /* @__PURE__ */
|
|
143
|
+
return /* @__PURE__ */ jsx5(
|
|
546
144
|
RadioGroupPrimitive.Item,
|
|
547
145
|
{
|
|
548
146
|
"data-slot": "radio-group-item",
|
|
@@ -553,12 +151,12 @@ function RadioGroupItem({
|
|
|
553
151
|
className
|
|
554
152
|
),
|
|
555
153
|
...props,
|
|
556
|
-
children: /* @__PURE__ */
|
|
154
|
+
children: /* @__PURE__ */ jsx5(
|
|
557
155
|
RadioGroupPrimitive.Indicator,
|
|
558
156
|
{
|
|
559
157
|
"data-slot": "radio-group-indicator",
|
|
560
158
|
className: "flex items-center justify-center",
|
|
561
|
-
children: /* @__PURE__ */
|
|
159
|
+
children: /* @__PURE__ */ jsx5(CircleIcon, { className: "size-2 fill-foreground text-foreground" })
|
|
562
160
|
}
|
|
563
161
|
)
|
|
564
162
|
}
|
|
@@ -567,17 +165,17 @@ function RadioGroupItem({
|
|
|
567
165
|
|
|
568
166
|
// src/ui/form.tsx
|
|
569
167
|
import { Form as FormPrimitive } from "radix-ui";
|
|
570
|
-
import { jsx as
|
|
168
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
571
169
|
function Form({ ...props }) {
|
|
572
|
-
return /* @__PURE__ */
|
|
170
|
+
return /* @__PURE__ */ jsx6(FormPrimitive.Root, { "data-slot": "form", ...props });
|
|
573
171
|
}
|
|
574
172
|
function FormField({
|
|
575
173
|
...props
|
|
576
174
|
}) {
|
|
577
|
-
return /* @__PURE__ */
|
|
175
|
+
return /* @__PURE__ */ jsx6(FormPrimitive.Field, { "data-slot": "form-field", ...props });
|
|
578
176
|
}
|
|
579
177
|
function FormItem({ className, ...props }) {
|
|
580
|
-
return /* @__PURE__ */
|
|
178
|
+
return /* @__PURE__ */ jsx6(
|
|
581
179
|
"div",
|
|
582
180
|
{
|
|
583
181
|
"data-slot": "form-item",
|
|
@@ -590,18 +188,18 @@ function FormLabel({
|
|
|
590
188
|
className,
|
|
591
189
|
...props
|
|
592
190
|
}) {
|
|
593
|
-
return /* @__PURE__ */
|
|
191
|
+
return /* @__PURE__ */ jsx6(FormPrimitive.Label, { asChild: true, children: /* @__PURE__ */ jsx6(Label, { "data-slot": "form-label", className, ...props }) });
|
|
594
192
|
}
|
|
595
193
|
function FormControl({
|
|
596
194
|
...props
|
|
597
195
|
}) {
|
|
598
|
-
return /* @__PURE__ */
|
|
196
|
+
return /* @__PURE__ */ jsx6(FormPrimitive.Control, { "data-slot": "form-control", ...props });
|
|
599
197
|
}
|
|
600
198
|
function FormMessage({
|
|
601
199
|
className,
|
|
602
200
|
...props
|
|
603
201
|
}) {
|
|
604
|
-
return /* @__PURE__ */
|
|
202
|
+
return /* @__PURE__ */ jsx6(
|
|
605
203
|
FormPrimitive.Message,
|
|
606
204
|
{
|
|
607
205
|
"data-slot": "form-message",
|
|
@@ -614,7 +212,7 @@ function FormSubmit({
|
|
|
614
212
|
className,
|
|
615
213
|
...props
|
|
616
214
|
}) {
|
|
617
|
-
return /* @__PURE__ */
|
|
215
|
+
return /* @__PURE__ */ jsx6(
|
|
618
216
|
FormPrimitive.Submit,
|
|
619
217
|
{
|
|
620
218
|
"data-slot": "form-submit",
|
|
@@ -626,22 +224,22 @@ function FormSubmit({
|
|
|
626
224
|
|
|
627
225
|
// src/ui/aspect-ratio.tsx
|
|
628
226
|
import { AspectRatio as AspectRatioPrimitive } from "radix-ui";
|
|
629
|
-
import { jsx as
|
|
227
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
630
228
|
function AspectRatio({
|
|
631
229
|
...props
|
|
632
230
|
}) {
|
|
633
|
-
return /* @__PURE__ */
|
|
231
|
+
return /* @__PURE__ */ jsx7(AspectRatioPrimitive.Root, { "data-slot": "aspect-ratio", ...props });
|
|
634
232
|
}
|
|
635
233
|
|
|
636
234
|
// src/ui/breadcrumb.tsx
|
|
637
|
-
import { ChevronRightIcon
|
|
235
|
+
import { ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
|
|
638
236
|
import { Slot } from "radix-ui";
|
|
639
|
-
import { jsx as
|
|
237
|
+
import { jsx as jsx8, jsxs } from "react/jsx-runtime";
|
|
640
238
|
function Breadcrumb({ ...props }) {
|
|
641
|
-
return /* @__PURE__ */
|
|
239
|
+
return /* @__PURE__ */ jsx8("nav", { "data-slot": "breadcrumb", "aria-label": "Breadcrumb", ...props });
|
|
642
240
|
}
|
|
643
241
|
function BreadcrumbList({ className, ...props }) {
|
|
644
|
-
return /* @__PURE__ */
|
|
242
|
+
return /* @__PURE__ */ jsx8(
|
|
645
243
|
"ol",
|
|
646
244
|
{
|
|
647
245
|
"data-slot": "breadcrumb-list",
|
|
@@ -654,7 +252,7 @@ function BreadcrumbList({ className, ...props }) {
|
|
|
654
252
|
);
|
|
655
253
|
}
|
|
656
254
|
function BreadcrumbItem({ className, ...props }) {
|
|
657
|
-
return /* @__PURE__ */
|
|
255
|
+
return /* @__PURE__ */ jsx8(
|
|
658
256
|
"li",
|
|
659
257
|
{
|
|
660
258
|
"data-slot": "breadcrumb-item",
|
|
@@ -669,7 +267,7 @@ function BreadcrumbLink({
|
|
|
669
267
|
...props
|
|
670
268
|
}) {
|
|
671
269
|
const Comp = asChild ? Slot.Root : "a";
|
|
672
|
-
return /* @__PURE__ */
|
|
270
|
+
return /* @__PURE__ */ jsx8(
|
|
673
271
|
Comp,
|
|
674
272
|
{
|
|
675
273
|
"data-slot": "breadcrumb-link",
|
|
@@ -679,7 +277,7 @@ function BreadcrumbLink({
|
|
|
679
277
|
);
|
|
680
278
|
}
|
|
681
279
|
function BreadcrumbPage({ className, ...props }) {
|
|
682
|
-
return /* @__PURE__ */
|
|
280
|
+
return /* @__PURE__ */ jsx8(
|
|
683
281
|
"span",
|
|
684
282
|
{
|
|
685
283
|
"data-slot": "breadcrumb-page",
|
|
@@ -696,7 +294,7 @@ function BreadcrumbSeparator({
|
|
|
696
294
|
className,
|
|
697
295
|
...props
|
|
698
296
|
}) {
|
|
699
|
-
return /* @__PURE__ */
|
|
297
|
+
return /* @__PURE__ */ jsx8(
|
|
700
298
|
"li",
|
|
701
299
|
{
|
|
702
300
|
"data-slot": "breadcrumb-separator",
|
|
@@ -704,7 +302,7 @@ function BreadcrumbSeparator({
|
|
|
704
302
|
"aria-hidden": "true",
|
|
705
303
|
className: cn("[&>svg]:size-3.5", className),
|
|
706
304
|
...props,
|
|
707
|
-
children: children ?? /* @__PURE__ */
|
|
305
|
+
children: children ?? /* @__PURE__ */ jsx8(ChevronRightIcon, {})
|
|
708
306
|
}
|
|
709
307
|
);
|
|
710
308
|
}
|
|
@@ -712,27 +310,27 @@ function BreadcrumbEllipsis({
|
|
|
712
310
|
className,
|
|
713
311
|
...props
|
|
714
312
|
}) {
|
|
715
|
-
return /* @__PURE__ */
|
|
313
|
+
return /* @__PURE__ */ jsxs(
|
|
716
314
|
"span",
|
|
717
315
|
{
|
|
718
316
|
"data-slot": "breadcrumb-ellipsis",
|
|
719
317
|
role: "presentation",
|
|
720
318
|
"aria-hidden": "true",
|
|
721
|
-
className: cn("flex size-
|
|
319
|
+
className: cn("flex size-8 items-center justify-center", className),
|
|
722
320
|
...props,
|
|
723
321
|
children: [
|
|
724
|
-
/* @__PURE__ */
|
|
725
|
-
/* @__PURE__ */
|
|
322
|
+
/* @__PURE__ */ jsx8(MoreHorizontalIcon, { className: "size-4" }),
|
|
323
|
+
/* @__PURE__ */ jsx8("span", { className: "sr-only", children: "More" })
|
|
726
324
|
]
|
|
727
325
|
}
|
|
728
326
|
);
|
|
729
327
|
}
|
|
730
328
|
|
|
731
329
|
// src/ui/pagination.tsx
|
|
732
|
-
import { ChevronLeftIcon, ChevronRightIcon as
|
|
733
|
-
import { jsx as
|
|
330
|
+
import { ChevronLeftIcon, ChevronRightIcon as ChevronRightIcon2, MoreHorizontalIcon as MoreHorizontalIcon2 } from "lucide-react";
|
|
331
|
+
import { jsx as jsx9, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
734
332
|
function Pagination({ className, ...props }) {
|
|
735
|
-
return /* @__PURE__ */
|
|
333
|
+
return /* @__PURE__ */ jsx9(
|
|
736
334
|
"nav",
|
|
737
335
|
{
|
|
738
336
|
"data-slot": "pagination",
|
|
@@ -744,7 +342,7 @@ function Pagination({ className, ...props }) {
|
|
|
744
342
|
);
|
|
745
343
|
}
|
|
746
344
|
function PaginationContent({ className, ...props }) {
|
|
747
|
-
return /* @__PURE__ */
|
|
345
|
+
return /* @__PURE__ */ jsx9(
|
|
748
346
|
"ul",
|
|
749
347
|
{
|
|
750
348
|
"data-slot": "pagination-content",
|
|
@@ -754,7 +352,7 @@ function PaginationContent({ className, ...props }) {
|
|
|
754
352
|
);
|
|
755
353
|
}
|
|
756
354
|
function PaginationItem({ ...props }) {
|
|
757
|
-
return /* @__PURE__ */
|
|
355
|
+
return /* @__PURE__ */ jsx9("li", { "data-slot": "pagination-item", ...props });
|
|
758
356
|
}
|
|
759
357
|
function PaginationLink({
|
|
760
358
|
className,
|
|
@@ -762,7 +360,7 @@ function PaginationLink({
|
|
|
762
360
|
size = "icon",
|
|
763
361
|
...props
|
|
764
362
|
}) {
|
|
765
|
-
return /* @__PURE__ */
|
|
363
|
+
return /* @__PURE__ */ jsx9(Button, { asChild: true, variant: isActive ? "outline" : "ghost", size, className, children: /* @__PURE__ */ jsx9(
|
|
766
364
|
"a",
|
|
767
365
|
{
|
|
768
366
|
"data-slot": "pagination-link",
|
|
@@ -775,7 +373,7 @@ function PaginationPrevious({
|
|
|
775
373
|
className,
|
|
776
374
|
...props
|
|
777
375
|
}) {
|
|
778
|
-
return /* @__PURE__ */
|
|
376
|
+
return /* @__PURE__ */ jsxs2(
|
|
779
377
|
PaginationLink,
|
|
780
378
|
{
|
|
781
379
|
"aria-label": "Go to previous page",
|
|
@@ -783,8 +381,8 @@ function PaginationPrevious({
|
|
|
783
381
|
className: cn("gap-1 px-2.5 sm:pl-2.5", className),
|
|
784
382
|
...props,
|
|
785
383
|
children: [
|
|
786
|
-
/* @__PURE__ */
|
|
787
|
-
/* @__PURE__ */
|
|
384
|
+
/* @__PURE__ */ jsx9(ChevronLeftIcon, { className: "size-4" }),
|
|
385
|
+
/* @__PURE__ */ jsx9("span", { className: "hidden sm:block", children: "Previous" })
|
|
788
386
|
]
|
|
789
387
|
}
|
|
790
388
|
);
|
|
@@ -793,7 +391,7 @@ function PaginationNext({
|
|
|
793
391
|
className,
|
|
794
392
|
...props
|
|
795
393
|
}) {
|
|
796
|
-
return /* @__PURE__ */
|
|
394
|
+
return /* @__PURE__ */ jsxs2(
|
|
797
395
|
PaginationLink,
|
|
798
396
|
{
|
|
799
397
|
"aria-label": "Go to next page",
|
|
@@ -801,8 +399,8 @@ function PaginationNext({
|
|
|
801
399
|
className: cn("gap-1 px-2.5 sm:pr-2.5", className),
|
|
802
400
|
...props,
|
|
803
401
|
children: [
|
|
804
|
-
/* @__PURE__ */
|
|
805
|
-
/* @__PURE__ */
|
|
402
|
+
/* @__PURE__ */ jsx9("span", { className: "hidden sm:block", children: "Next" }),
|
|
403
|
+
/* @__PURE__ */ jsx9(ChevronRightIcon2, { className: "size-4" })
|
|
806
404
|
]
|
|
807
405
|
}
|
|
808
406
|
);
|
|
@@ -811,7 +409,7 @@ function PaginationEllipsis({
|
|
|
811
409
|
className,
|
|
812
410
|
...props
|
|
813
411
|
}) {
|
|
814
|
-
return /* @__PURE__ */
|
|
412
|
+
return /* @__PURE__ */ jsxs2(
|
|
815
413
|
"span",
|
|
816
414
|
{
|
|
817
415
|
"data-slot": "pagination-ellipsis",
|
|
@@ -819,8 +417,8 @@ function PaginationEllipsis({
|
|
|
819
417
|
className: cn("flex size-9 items-center justify-center", className),
|
|
820
418
|
...props,
|
|
821
419
|
children: [
|
|
822
|
-
/* @__PURE__ */
|
|
823
|
-
/* @__PURE__ */
|
|
420
|
+
/* @__PURE__ */ jsx9(MoreHorizontalIcon2, { className: "size-4" }),
|
|
421
|
+
/* @__PURE__ */ jsx9("span", { className: "sr-only", children: "More pages" })
|
|
824
422
|
]
|
|
825
423
|
}
|
|
826
424
|
);
|
|
@@ -828,12 +426,12 @@ function PaginationEllipsis({
|
|
|
828
426
|
|
|
829
427
|
// src/ui/toolbar.tsx
|
|
830
428
|
import { Toolbar as ToolbarPrimitive } from "radix-ui";
|
|
831
|
-
import { jsx as
|
|
429
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
832
430
|
function Toolbar({
|
|
833
431
|
className,
|
|
834
432
|
...props
|
|
835
433
|
}) {
|
|
836
|
-
return /* @__PURE__ */
|
|
434
|
+
return /* @__PURE__ */ jsx10(
|
|
837
435
|
ToolbarPrimitive.Root,
|
|
838
436
|
{
|
|
839
437
|
"data-slot": "toolbar",
|
|
@@ -849,12 +447,12 @@ function ToolbarButton({
|
|
|
849
447
|
className,
|
|
850
448
|
...props
|
|
851
449
|
}) {
|
|
852
|
-
return /* @__PURE__ */
|
|
450
|
+
return /* @__PURE__ */ jsx10(
|
|
853
451
|
ToolbarPrimitive.Button,
|
|
854
452
|
{
|
|
855
453
|
"data-slot": "toolbar-button",
|
|
856
454
|
className: cn(
|
|
857
|
-
"inline-flex h-
|
|
455
|
+
"inline-flex h-7 min-w-7 items-center justify-center rounded-md px-1.5 text-sm font-medium text-foreground outline-none transition-colors",
|
|
858
456
|
"hover:bg-muted focus-visible:ring-2 focus-visible:ring-foreground/10 disabled:pointer-events-none disabled:opacity-50",
|
|
859
457
|
className
|
|
860
458
|
),
|
|
@@ -866,7 +464,7 @@ function ToolbarSeparator({
|
|
|
866
464
|
className,
|
|
867
465
|
...props
|
|
868
466
|
}) {
|
|
869
|
-
return /* @__PURE__ */
|
|
467
|
+
return /* @__PURE__ */ jsx10(
|
|
870
468
|
ToolbarPrimitive.Separator,
|
|
871
469
|
{
|
|
872
470
|
"data-slot": "toolbar-separator",
|
|
@@ -879,7 +477,7 @@ function ToolbarToggleGroup({
|
|
|
879
477
|
className,
|
|
880
478
|
...props
|
|
881
479
|
}) {
|
|
882
|
-
return /* @__PURE__ */
|
|
480
|
+
return /* @__PURE__ */ jsx10(
|
|
883
481
|
ToolbarPrimitive.ToggleGroup,
|
|
884
482
|
{
|
|
885
483
|
"data-slot": "toolbar-toggle-group",
|
|
@@ -892,12 +490,12 @@ function ToolbarToggleItem({
|
|
|
892
490
|
className,
|
|
893
491
|
...props
|
|
894
492
|
}) {
|
|
895
|
-
return /* @__PURE__ */
|
|
493
|
+
return /* @__PURE__ */ jsx10(
|
|
896
494
|
ToolbarPrimitive.ToggleItem,
|
|
897
495
|
{
|
|
898
496
|
"data-slot": "toolbar-toggle-item",
|
|
899
497
|
className: cn(
|
|
900
|
-
"inline-flex h-
|
|
498
|
+
"inline-flex h-7 min-w-7 items-center justify-center rounded-md px-1.5 text-sm outline-none transition-colors",
|
|
901
499
|
"hover:bg-muted focus-visible:ring-2 focus-visible:ring-foreground/10",
|
|
902
500
|
"data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
|
|
903
501
|
className
|
|
@@ -910,12 +508,12 @@ function ToolbarLink({
|
|
|
910
508
|
className,
|
|
911
509
|
...props
|
|
912
510
|
}) {
|
|
913
|
-
return /* @__PURE__ */
|
|
511
|
+
return /* @__PURE__ */ jsx10(
|
|
914
512
|
ToolbarPrimitive.Link,
|
|
915
513
|
{
|
|
916
514
|
"data-slot": "toolbar-link",
|
|
917
515
|
className: cn(
|
|
918
|
-
"inline-flex h-
|
|
516
|
+
"inline-flex h-7 items-center rounded-md px-1.5 text-sm text-foreground outline-none transition-colors hover:bg-muted focus-visible:ring-2 focus-visible:ring-foreground/10",
|
|
919
517
|
className
|
|
920
518
|
),
|
|
921
519
|
...props
|
|
@@ -925,18 +523,18 @@ function ToolbarLink({
|
|
|
925
523
|
|
|
926
524
|
// src/ui/menubar.tsx
|
|
927
525
|
import { Menubar as MenubarPrimitive } from "radix-ui";
|
|
928
|
-
import { CheckIcon
|
|
929
|
-
import { jsx as
|
|
526
|
+
import { CheckIcon, ChevronRightIcon as ChevronRightIcon3, CircleIcon as CircleIcon2 } from "lucide-react";
|
|
527
|
+
import { jsx as jsx11, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
930
528
|
function Menubar({
|
|
931
529
|
className,
|
|
932
530
|
...props
|
|
933
531
|
}) {
|
|
934
|
-
return /* @__PURE__ */
|
|
532
|
+
return /* @__PURE__ */ jsx11(
|
|
935
533
|
MenubarPrimitive.Root,
|
|
936
534
|
{
|
|
937
535
|
"data-slot": "menubar",
|
|
938
536
|
className: cn(
|
|
939
|
-
"flex h-
|
|
537
|
+
"flex h-8 items-center gap-1 rounded-lg border border-border bg-gradient-to-b from-elevated-from to-elevated-to p-1 shadow-card",
|
|
940
538
|
className
|
|
941
539
|
),
|
|
942
540
|
...props
|
|
@@ -946,18 +544,18 @@ function Menubar({
|
|
|
946
544
|
function MenubarMenu({
|
|
947
545
|
...props
|
|
948
546
|
}) {
|
|
949
|
-
return /* @__PURE__ */
|
|
547
|
+
return /* @__PURE__ */ jsx11(MenubarPrimitive.Menu, { "data-slot": "menubar-menu", ...props });
|
|
950
548
|
}
|
|
951
549
|
function MenubarTrigger({
|
|
952
550
|
className,
|
|
953
551
|
...props
|
|
954
552
|
}) {
|
|
955
|
-
return /* @__PURE__ */
|
|
553
|
+
return /* @__PURE__ */ jsx11(
|
|
956
554
|
MenubarPrimitive.Trigger,
|
|
957
555
|
{
|
|
958
556
|
"data-slot": "menubar-trigger",
|
|
959
557
|
className: cn(
|
|
960
|
-
"flex cursor-default items-center rounded-md px-2 py-
|
|
558
|
+
"flex cursor-default items-center rounded-md px-2 py-0.5 text-sm font-medium outline-none select-none",
|
|
961
559
|
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
|
|
962
560
|
className
|
|
963
561
|
),
|
|
@@ -972,7 +570,7 @@ function MenubarContent({
|
|
|
972
570
|
sideOffset = 8,
|
|
973
571
|
...props
|
|
974
572
|
}) {
|
|
975
|
-
return /* @__PURE__ */
|
|
573
|
+
return /* @__PURE__ */ jsx11(MenubarPrimitive.Portal, { children: /* @__PURE__ */ jsx11(
|
|
976
574
|
MenubarPrimitive.Content,
|
|
977
575
|
{
|
|
978
576
|
"data-slot": "menubar-content",
|
|
@@ -994,7 +592,7 @@ function MenubarItem({
|
|
|
994
592
|
variant = "default",
|
|
995
593
|
...props
|
|
996
594
|
}) {
|
|
997
|
-
return /* @__PURE__ */
|
|
595
|
+
return /* @__PURE__ */ jsx11(
|
|
998
596
|
MenubarPrimitive.Item,
|
|
999
597
|
{
|
|
1000
598
|
"data-slot": "menubar-item",
|
|
@@ -1015,15 +613,15 @@ function MenubarCheckboxItem({
|
|
|
1015
613
|
checked,
|
|
1016
614
|
...props
|
|
1017
615
|
}) {
|
|
1018
|
-
return /* @__PURE__ */
|
|
616
|
+
return /* @__PURE__ */ jsxs3(
|
|
1019
617
|
MenubarPrimitive.CheckboxItem,
|
|
1020
618
|
{
|
|
1021
619
|
"data-slot": "menubar-checkbox-item",
|
|
1022
|
-
className: cn(overlayItemClass, "py-1
|
|
620
|
+
className: cn(overlayItemClass, "py-1 pr-2 pl-8", className),
|
|
1023
621
|
checked,
|
|
1024
622
|
...props,
|
|
1025
623
|
children: [
|
|
1026
|
-
/* @__PURE__ */
|
|
624
|
+
/* @__PURE__ */ jsx11("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx11(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx11(CheckIcon, { className: "size-4" }) }) }),
|
|
1027
625
|
children
|
|
1028
626
|
]
|
|
1029
627
|
}
|
|
@@ -1032,21 +630,21 @@ function MenubarCheckboxItem({
|
|
|
1032
630
|
function MenubarRadioGroup({
|
|
1033
631
|
...props
|
|
1034
632
|
}) {
|
|
1035
|
-
return /* @__PURE__ */
|
|
633
|
+
return /* @__PURE__ */ jsx11(MenubarPrimitive.RadioGroup, { "data-slot": "menubar-radio-group", ...props });
|
|
1036
634
|
}
|
|
1037
635
|
function MenubarRadioItem({
|
|
1038
636
|
className,
|
|
1039
637
|
children,
|
|
1040
638
|
...props
|
|
1041
639
|
}) {
|
|
1042
|
-
return /* @__PURE__ */
|
|
640
|
+
return /* @__PURE__ */ jsxs3(
|
|
1043
641
|
MenubarPrimitive.RadioItem,
|
|
1044
642
|
{
|
|
1045
643
|
"data-slot": "menubar-radio-item",
|
|
1046
|
-
className: cn(overlayItemClass, "py-1
|
|
644
|
+
className: cn(overlayItemClass, "py-1 pr-2 pl-8", className),
|
|
1047
645
|
...props,
|
|
1048
646
|
children: [
|
|
1049
|
-
/* @__PURE__ */
|
|
647
|
+
/* @__PURE__ */ jsx11("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx11(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx11(CircleIcon2, { className: "size-2 fill-current" }) }) }),
|
|
1050
648
|
children
|
|
1051
649
|
]
|
|
1052
650
|
}
|
|
@@ -1057,7 +655,7 @@ function MenubarLabel({
|
|
|
1057
655
|
inset,
|
|
1058
656
|
...props
|
|
1059
657
|
}) {
|
|
1060
|
-
return /* @__PURE__ */
|
|
658
|
+
return /* @__PURE__ */ jsx11(
|
|
1061
659
|
MenubarPrimitive.Label,
|
|
1062
660
|
{
|
|
1063
661
|
"data-slot": "menubar-label",
|
|
@@ -1074,7 +672,7 @@ function MenubarSeparator({
|
|
|
1074
672
|
className,
|
|
1075
673
|
...props
|
|
1076
674
|
}) {
|
|
1077
|
-
return /* @__PURE__ */
|
|
675
|
+
return /* @__PURE__ */ jsx11(
|
|
1078
676
|
MenubarPrimitive.Separator,
|
|
1079
677
|
{
|
|
1080
678
|
"data-slot": "menubar-separator",
|
|
@@ -1087,7 +685,7 @@ function MenubarShortcut({
|
|
|
1087
685
|
className,
|
|
1088
686
|
...props
|
|
1089
687
|
}) {
|
|
1090
|
-
return /* @__PURE__ */
|
|
688
|
+
return /* @__PURE__ */ jsx11(
|
|
1091
689
|
"span",
|
|
1092
690
|
{
|
|
1093
691
|
"data-slot": "menubar-shortcut",
|
|
@@ -1102,7 +700,7 @@ function MenubarShortcut({
|
|
|
1102
700
|
function MenubarSub({
|
|
1103
701
|
...props
|
|
1104
702
|
}) {
|
|
1105
|
-
return /* @__PURE__ */
|
|
703
|
+
return /* @__PURE__ */ jsx11(MenubarPrimitive.Sub, { "data-slot": "menubar-sub", ...props });
|
|
1106
704
|
}
|
|
1107
705
|
function MenubarSubTrigger({
|
|
1108
706
|
className,
|
|
@@ -1110,7 +708,7 @@ function MenubarSubTrigger({
|
|
|
1110
708
|
children,
|
|
1111
709
|
...props
|
|
1112
710
|
}) {
|
|
1113
|
-
return /* @__PURE__ */
|
|
711
|
+
return /* @__PURE__ */ jsxs3(
|
|
1114
712
|
MenubarPrimitive.SubTrigger,
|
|
1115
713
|
{
|
|
1116
714
|
"data-slot": "menubar-sub-trigger",
|
|
@@ -1123,7 +721,7 @@ function MenubarSubTrigger({
|
|
|
1123
721
|
...props,
|
|
1124
722
|
children: [
|
|
1125
723
|
children,
|
|
1126
|
-
/* @__PURE__ */
|
|
724
|
+
/* @__PURE__ */ jsx11(ChevronRightIcon3, { className: "ml-auto size-4" })
|
|
1127
725
|
]
|
|
1128
726
|
}
|
|
1129
727
|
);
|
|
@@ -1132,7 +730,7 @@ function MenubarSubContent({
|
|
|
1132
730
|
className,
|
|
1133
731
|
...props
|
|
1134
732
|
}) {
|
|
1135
|
-
return /* @__PURE__ */
|
|
733
|
+
return /* @__PURE__ */ jsx11(
|
|
1136
734
|
MenubarPrimitive.SubContent,
|
|
1137
735
|
{
|
|
1138
736
|
"data-slot": "menubar-sub-content",
|
|
@@ -1148,16 +746,16 @@ function MenubarSubContent({
|
|
|
1148
746
|
|
|
1149
747
|
// src/ui/navigation-menu.tsx
|
|
1150
748
|
import { NavigationMenu as NavigationMenuPrimitive } from "radix-ui";
|
|
1151
|
-
import { ChevronDownIcon
|
|
749
|
+
import { ChevronDownIcon } from "lucide-react";
|
|
1152
750
|
import { cva } from "class-variance-authority";
|
|
1153
|
-
import { jsx as
|
|
751
|
+
import { jsx as jsx12, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1154
752
|
function NavigationMenu({
|
|
1155
753
|
className,
|
|
1156
754
|
children,
|
|
1157
755
|
viewport = true,
|
|
1158
756
|
...props
|
|
1159
757
|
}) {
|
|
1160
|
-
return /* @__PURE__ */
|
|
758
|
+
return /* @__PURE__ */ jsxs4(
|
|
1161
759
|
NavigationMenuPrimitive.Root,
|
|
1162
760
|
{
|
|
1163
761
|
"data-slot": "navigation-menu",
|
|
@@ -1169,7 +767,7 @@ function NavigationMenu({
|
|
|
1169
767
|
...props,
|
|
1170
768
|
children: [
|
|
1171
769
|
children,
|
|
1172
|
-
viewport ? /* @__PURE__ */
|
|
770
|
+
viewport ? /* @__PURE__ */ jsx12(NavigationMenuViewport, {}) : null
|
|
1173
771
|
]
|
|
1174
772
|
}
|
|
1175
773
|
);
|
|
@@ -1178,7 +776,7 @@ function NavigationMenuList({
|
|
|
1178
776
|
className,
|
|
1179
777
|
...props
|
|
1180
778
|
}) {
|
|
1181
|
-
return /* @__PURE__ */
|
|
779
|
+
return /* @__PURE__ */ jsx12(
|
|
1182
780
|
NavigationMenuPrimitive.List,
|
|
1183
781
|
{
|
|
1184
782
|
"data-slot": "navigation-menu-list",
|
|
@@ -1193,7 +791,7 @@ function NavigationMenuList({
|
|
|
1193
791
|
function NavigationMenuItem({
|
|
1194
792
|
...props
|
|
1195
793
|
}) {
|
|
1196
|
-
return /* @__PURE__ */
|
|
794
|
+
return /* @__PURE__ */ jsx12(NavigationMenuPrimitive.Item, { "data-slot": "navigation-menu-item", ...props });
|
|
1197
795
|
}
|
|
1198
796
|
var navigationMenuTriggerStyle = cva(
|
|
1199
797
|
"group inline-flex h-9 w-max items-center justify-center rounded-lg bg-transparent px-4 py-2 text-sm font-medium transition-colors hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-muted/80 data-[state=open]:text-foreground"
|
|
@@ -1203,7 +801,7 @@ function NavigationMenuTrigger({
|
|
|
1203
801
|
children,
|
|
1204
802
|
...props
|
|
1205
803
|
}) {
|
|
1206
|
-
return /* @__PURE__ */
|
|
804
|
+
return /* @__PURE__ */ jsxs4(
|
|
1207
805
|
NavigationMenuPrimitive.Trigger,
|
|
1208
806
|
{
|
|
1209
807
|
"data-slot": "navigation-menu-trigger",
|
|
@@ -1212,8 +810,8 @@ function NavigationMenuTrigger({
|
|
|
1212
810
|
children: [
|
|
1213
811
|
children,
|
|
1214
812
|
" ",
|
|
1215
|
-
/* @__PURE__ */
|
|
1216
|
-
|
|
813
|
+
/* @__PURE__ */ jsx12(
|
|
814
|
+
ChevronDownIcon,
|
|
1217
815
|
{
|
|
1218
816
|
className: "relative top-px ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
1219
817
|
"aria-hidden": "true"
|
|
@@ -1227,12 +825,12 @@ function NavigationMenuContent({
|
|
|
1227
825
|
className,
|
|
1228
826
|
...props
|
|
1229
827
|
}) {
|
|
1230
|
-
return /* @__PURE__ */
|
|
828
|
+
return /* @__PURE__ */ jsx12(
|
|
1231
829
|
NavigationMenuPrimitive.Content,
|
|
1232
830
|
{
|
|
1233
831
|
"data-slot": "navigation-menu-content",
|
|
1234
832
|
className: cn(
|
|
1235
|
-
"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-
|
|
833
|
+
"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-1 md:absolute md:w-auto",
|
|
1236
834
|
"group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-lg group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:border-border group-data-[viewport=false]/navigation-menu:shadow-card",
|
|
1237
835
|
className
|
|
1238
836
|
),
|
|
@@ -1244,7 +842,7 @@ function NavigationMenuViewport({
|
|
|
1244
842
|
className,
|
|
1245
843
|
...props
|
|
1246
844
|
}) {
|
|
1247
|
-
return /* @__PURE__ */
|
|
845
|
+
return /* @__PURE__ */ jsx12("div", { className: cn("absolute top-full left-0 isolate z-[80] flex justify-center"), children: /* @__PURE__ */ jsx12(
|
|
1248
846
|
NavigationMenuPrimitive.Viewport,
|
|
1249
847
|
{
|
|
1250
848
|
"data-slot": "navigation-menu-viewport",
|
|
@@ -1261,12 +859,12 @@ function NavigationMenuLink({
|
|
|
1261
859
|
className,
|
|
1262
860
|
...props
|
|
1263
861
|
}) {
|
|
1264
|
-
return /* @__PURE__ */
|
|
862
|
+
return /* @__PURE__ */ jsx12(
|
|
1265
863
|
NavigationMenuPrimitive.Link,
|
|
1266
864
|
{
|
|
1267
865
|
"data-slot": "navigation-menu-link",
|
|
1268
866
|
className: cn(
|
|
1269
|
-
"flex flex-col gap-1 rounded-md
|
|
867
|
+
"flex flex-col gap-1 rounded-md px-3 py-1.5 text-sm transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground [&_svg:not([class*='size-'])]:size-4",
|
|
1270
868
|
className
|
|
1271
869
|
),
|
|
1272
870
|
...props
|
|
@@ -1277,7 +875,7 @@ function NavigationMenuIndicator({
|
|
|
1277
875
|
className,
|
|
1278
876
|
...props
|
|
1279
877
|
}) {
|
|
1280
|
-
return /* @__PURE__ */
|
|
878
|
+
return /* @__PURE__ */ jsx12(
|
|
1281
879
|
NavigationMenuPrimitive.Indicator,
|
|
1282
880
|
{
|
|
1283
881
|
"data-slot": "navigation-menu-indicator",
|
|
@@ -1286,7 +884,7 @@ function NavigationMenuIndicator({
|
|
|
1286
884
|
className
|
|
1287
885
|
),
|
|
1288
886
|
...props,
|
|
1289
|
-
children: /* @__PURE__ */
|
|
887
|
+
children: /* @__PURE__ */ jsx12("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
1290
888
|
}
|
|
1291
889
|
);
|
|
1292
890
|
}
|
|
@@ -1294,12 +892,12 @@ function NavigationMenuIndicator({
|
|
|
1294
892
|
// src/ui/command.tsx
|
|
1295
893
|
import { Command as CommandPrimitive } from "cmdk";
|
|
1296
894
|
import { SearchIcon } from "lucide-react";
|
|
1297
|
-
import { jsx as
|
|
895
|
+
import { jsx as jsx13, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1298
896
|
function Command({
|
|
1299
897
|
className,
|
|
1300
898
|
...props
|
|
1301
899
|
}) {
|
|
1302
|
-
return /* @__PURE__ */
|
|
900
|
+
return /* @__PURE__ */ jsx13(
|
|
1303
901
|
CommandPrimitive,
|
|
1304
902
|
{
|
|
1305
903
|
"data-slot": "command",
|
|
@@ -1319,17 +917,17 @@ function CommandDialog({
|
|
|
1319
917
|
showCloseButton = true,
|
|
1320
918
|
...props
|
|
1321
919
|
}) {
|
|
1322
|
-
return /* @__PURE__ */
|
|
1323
|
-
/* @__PURE__ */
|
|
1324
|
-
/* @__PURE__ */
|
|
1325
|
-
/* @__PURE__ */
|
|
920
|
+
return /* @__PURE__ */ jsxs5(Dialog, { ...props, children: [
|
|
921
|
+
/* @__PURE__ */ jsxs5(DialogHeader, { className: "sr-only", children: [
|
|
922
|
+
/* @__PURE__ */ jsx13(DialogTitle, { children: title }),
|
|
923
|
+
/* @__PURE__ */ jsx13(DialogDescription, { children: description })
|
|
1326
924
|
] }),
|
|
1327
|
-
/* @__PURE__ */
|
|
925
|
+
/* @__PURE__ */ jsx13(
|
|
1328
926
|
DialogContent,
|
|
1329
927
|
{
|
|
1330
928
|
className: cn("overflow-hidden p-0", className),
|
|
1331
929
|
showCloseButton,
|
|
1332
|
-
children: /* @__PURE__ */
|
|
930
|
+
children: /* @__PURE__ */ jsx13(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:size-4 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-1.5 [&_[cmdk-item]_svg]:size-4", children })
|
|
1333
931
|
}
|
|
1334
932
|
)
|
|
1335
933
|
] });
|
|
@@ -1338,19 +936,19 @@ function CommandInput({
|
|
|
1338
936
|
className,
|
|
1339
937
|
...props
|
|
1340
938
|
}) {
|
|
1341
|
-
return /* @__PURE__ */
|
|
939
|
+
return /* @__PURE__ */ jsxs5(
|
|
1342
940
|
"div",
|
|
1343
941
|
{
|
|
1344
942
|
"data-slot": "command-input-wrapper",
|
|
1345
|
-
className: "flex h-
|
|
943
|
+
className: "flex h-9 items-center gap-2 border-b border-border px-2.5",
|
|
1346
944
|
children: [
|
|
1347
|
-
/* @__PURE__ */
|
|
1348
|
-
/* @__PURE__ */
|
|
945
|
+
/* @__PURE__ */ jsx13(SearchIcon, { className: "size-4 shrink-0 text-muted-foreground" }),
|
|
946
|
+
/* @__PURE__ */ jsx13(
|
|
1349
947
|
CommandPrimitive.Input,
|
|
1350
948
|
{
|
|
1351
949
|
"data-slot": "command-input",
|
|
1352
950
|
className: cn(
|
|
1353
|
-
"flex h-
|
|
951
|
+
"flex h-9 w-full rounded-md bg-transparent py-2 text-sm outline-none placeholder:text-muted-foreground/70 disabled:cursor-not-allowed disabled:opacity-50",
|
|
1354
952
|
className
|
|
1355
953
|
),
|
|
1356
954
|
...props
|
|
@@ -1364,7 +962,7 @@ function CommandList({
|
|
|
1364
962
|
className,
|
|
1365
963
|
...props
|
|
1366
964
|
}) {
|
|
1367
|
-
return /* @__PURE__ */
|
|
965
|
+
return /* @__PURE__ */ jsx13(
|
|
1368
966
|
CommandPrimitive.List,
|
|
1369
967
|
{
|
|
1370
968
|
"data-slot": "command-list",
|
|
@@ -1376,11 +974,11 @@ function CommandList({
|
|
|
1376
974
|
function CommandEmpty({
|
|
1377
975
|
...props
|
|
1378
976
|
}) {
|
|
1379
|
-
return /* @__PURE__ */
|
|
977
|
+
return /* @__PURE__ */ jsx13(
|
|
1380
978
|
CommandPrimitive.Empty,
|
|
1381
979
|
{
|
|
1382
980
|
"data-slot": "command-empty",
|
|
1383
|
-
className: "py-
|
|
981
|
+
className: "py-4 text-center text-sm text-muted-foreground",
|
|
1384
982
|
...props
|
|
1385
983
|
}
|
|
1386
984
|
);
|
|
@@ -1389,12 +987,12 @@ function CommandGroup({
|
|
|
1389
987
|
className,
|
|
1390
988
|
...props
|
|
1391
989
|
}) {
|
|
1392
|
-
return /* @__PURE__ */
|
|
990
|
+
return /* @__PURE__ */ jsx13(
|
|
1393
991
|
CommandPrimitive.Group,
|
|
1394
992
|
{
|
|
1395
993
|
"data-slot": "command-group",
|
|
1396
994
|
className: cn(
|
|
1397
|
-
"overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1
|
|
995
|
+
"overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
|
|
1398
996
|
className
|
|
1399
997
|
),
|
|
1400
998
|
...props
|
|
@@ -1405,7 +1003,7 @@ function CommandSeparator({
|
|
|
1405
1003
|
className,
|
|
1406
1004
|
...props
|
|
1407
1005
|
}) {
|
|
1408
|
-
return /* @__PURE__ */
|
|
1006
|
+
return /* @__PURE__ */ jsx13(
|
|
1409
1007
|
CommandPrimitive.Separator,
|
|
1410
1008
|
{
|
|
1411
1009
|
"data-slot": "command-separator",
|
|
@@ -1418,7 +1016,7 @@ function CommandItem({
|
|
|
1418
1016
|
className,
|
|
1419
1017
|
...props
|
|
1420
1018
|
}) {
|
|
1421
|
-
return /* @__PURE__ */
|
|
1019
|
+
return /* @__PURE__ */ jsx13(
|
|
1422
1020
|
CommandPrimitive.Item,
|
|
1423
1021
|
{
|
|
1424
1022
|
"data-slot": "command-item",
|
|
@@ -1435,7 +1033,7 @@ function CommandShortcut({
|
|
|
1435
1033
|
className,
|
|
1436
1034
|
...props
|
|
1437
1035
|
}) {
|
|
1438
|
-
return /* @__PURE__ */
|
|
1036
|
+
return /* @__PURE__ */ jsx13(
|
|
1439
1037
|
"span",
|
|
1440
1038
|
{
|
|
1441
1039
|
"data-slot": "command-shortcut",
|
|
@@ -1450,12 +1048,12 @@ function CommandShortcut({
|
|
|
1450
1048
|
|
|
1451
1049
|
// src/ui/calendar.tsx
|
|
1452
1050
|
import * as React from "react";
|
|
1453
|
-
import { ChevronDownIcon as
|
|
1051
|
+
import { ChevronDownIcon as ChevronDownIcon2, ChevronLeftIcon as ChevronLeftIcon2, ChevronRightIcon as ChevronRightIcon4 } from "lucide-react";
|
|
1454
1052
|
import {
|
|
1455
1053
|
DayPicker,
|
|
1456
1054
|
getDefaultClassNames
|
|
1457
1055
|
} from "react-day-picker";
|
|
1458
|
-
import { jsx as
|
|
1056
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
1459
1057
|
function Calendar({
|
|
1460
1058
|
className,
|
|
1461
1059
|
classNames,
|
|
@@ -1463,7 +1061,7 @@ function Calendar({
|
|
|
1463
1061
|
...props
|
|
1464
1062
|
}) {
|
|
1465
1063
|
const defaults = getDefaultClassNames();
|
|
1466
|
-
return /* @__PURE__ */
|
|
1064
|
+
return /* @__PURE__ */ jsx14(
|
|
1467
1065
|
DayPicker,
|
|
1468
1066
|
{
|
|
1469
1067
|
showOutsideDays,
|
|
@@ -1479,12 +1077,12 @@ function Calendar({
|
|
|
1479
1077
|
button_previous: cn(navButtonClass, defaults.button_previous),
|
|
1480
1078
|
button_next: cn(navButtonClass, defaults.button_next),
|
|
1481
1079
|
month_caption: cn(
|
|
1482
|
-
"flex h-
|
|
1080
|
+
"flex h-9 items-center justify-center",
|
|
1483
1081
|
defaults.month_caption
|
|
1484
1082
|
),
|
|
1485
1083
|
caption_label: cn("text-sm font-semibold", defaults.caption_label),
|
|
1486
1084
|
dropdowns: cn(
|
|
1487
|
-
"flex h-
|
|
1085
|
+
"flex h-9 items-center justify-center gap-1.5 text-sm font-semibold",
|
|
1488
1086
|
defaults.dropdowns
|
|
1489
1087
|
),
|
|
1490
1088
|
dropdown_root: cn(
|
|
@@ -1495,17 +1093,17 @@ function Calendar({
|
|
|
1495
1093
|
month_grid: cn("border-separate border-spacing-y-1", defaults.month_grid),
|
|
1496
1094
|
weekdays: cn(defaults.weekdays),
|
|
1497
1095
|
weekday: cn(
|
|
1498
|
-
"size-
|
|
1096
|
+
"size-9 pb-2 text-xs font-medium text-muted-foreground",
|
|
1499
1097
|
defaults.weekday
|
|
1500
1098
|
),
|
|
1501
1099
|
week: cn(defaults.week),
|
|
1502
|
-
week_number_header: cn("size-
|
|
1100
|
+
week_number_header: cn("size-9", defaults.week_number_header),
|
|
1503
1101
|
week_number: cn(
|
|
1504
1102
|
"text-xs text-muted-foreground",
|
|
1505
1103
|
defaults.week_number
|
|
1506
1104
|
),
|
|
1507
1105
|
day: cn(
|
|
1508
|
-
"relative size-
|
|
1106
|
+
"relative size-9 p-0 text-center text-sm focus-within:relative focus-within:z-10",
|
|
1509
1107
|
defaults.day
|
|
1510
1108
|
),
|
|
1511
1109
|
range_start: cn("rounded-l-md", defaults.range_start),
|
|
@@ -1525,8 +1123,8 @@ function Calendar({
|
|
|
1525
1123
|
},
|
|
1526
1124
|
components: {
|
|
1527
1125
|
Chevron: ({ orientation, className: chevronClass, ...chevronProps }) => {
|
|
1528
|
-
const Icon = orientation === "left" ? ChevronLeftIcon2 : orientation === "right" ?
|
|
1529
|
-
return /* @__PURE__ */
|
|
1126
|
+
const Icon = orientation === "left" ? ChevronLeftIcon2 : orientation === "right" ? ChevronRightIcon4 : ChevronDownIcon2;
|
|
1127
|
+
return /* @__PURE__ */ jsx14(Icon, { className: cn("size-4", chevronClass), ...chevronProps });
|
|
1530
1128
|
},
|
|
1531
1129
|
DayButton: CalendarDayButton
|
|
1532
1130
|
},
|
|
@@ -1551,7 +1149,7 @@ function CalendarDayButton({
|
|
|
1551
1149
|
if (modifiers.focused) ref.current?.focus();
|
|
1552
1150
|
}, [modifiers.focused]);
|
|
1553
1151
|
const isSingle = modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle;
|
|
1554
|
-
return /* @__PURE__ */
|
|
1152
|
+
return /* @__PURE__ */ jsx14(
|
|
1555
1153
|
"button",
|
|
1556
1154
|
{
|
|
1557
1155
|
ref,
|
|
@@ -1578,12 +1176,12 @@ function CalendarDayButton({
|
|
|
1578
1176
|
}
|
|
1579
1177
|
|
|
1580
1178
|
// src/ui/combobox.tsx
|
|
1581
|
-
import { ChevronDownIcon as
|
|
1582
|
-
import { jsx as
|
|
1179
|
+
import { ChevronDownIcon as ChevronDownIcon3 } from "lucide-react";
|
|
1180
|
+
import { jsx as jsx15, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1583
1181
|
function Combobox({
|
|
1584
1182
|
...props
|
|
1585
1183
|
}) {
|
|
1586
|
-
return /* @__PURE__ */
|
|
1184
|
+
return /* @__PURE__ */ jsx15(Popover, { "data-slot": "combobox", ...props });
|
|
1587
1185
|
}
|
|
1588
1186
|
function ComboboxTrigger({
|
|
1589
1187
|
className,
|
|
@@ -1591,7 +1189,7 @@ function ComboboxTrigger({
|
|
|
1591
1189
|
children,
|
|
1592
1190
|
...props
|
|
1593
1191
|
}) {
|
|
1594
|
-
return /* @__PURE__ */
|
|
1192
|
+
return /* @__PURE__ */ jsxs6(
|
|
1595
1193
|
PopoverTrigger,
|
|
1596
1194
|
{
|
|
1597
1195
|
"data-slot": "combobox-trigger",
|
|
@@ -1603,8 +1201,8 @@ function ComboboxTrigger({
|
|
|
1603
1201
|
),
|
|
1604
1202
|
...props,
|
|
1605
1203
|
children: [
|
|
1606
|
-
/* @__PURE__ */
|
|
1607
|
-
/* @__PURE__ */
|
|
1204
|
+
/* @__PURE__ */ jsx15("span", { className: "truncate", children }),
|
|
1205
|
+
/* @__PURE__ */ jsx15(ChevronDownIcon3, { className: "size-4 shrink-0 opacity-50" })
|
|
1608
1206
|
]
|
|
1609
1207
|
}
|
|
1610
1208
|
);
|
|
@@ -1612,14 +1210,14 @@ function ComboboxTrigger({
|
|
|
1612
1210
|
function ComboboxAnchor({
|
|
1613
1211
|
...props
|
|
1614
1212
|
}) {
|
|
1615
|
-
return /* @__PURE__ */
|
|
1213
|
+
return /* @__PURE__ */ jsx15(PopoverAnchor, { "data-slot": "combobox-anchor", ...props });
|
|
1616
1214
|
}
|
|
1617
1215
|
function ComboboxContent({
|
|
1618
1216
|
className,
|
|
1619
1217
|
align = "start",
|
|
1620
1218
|
...props
|
|
1621
1219
|
}) {
|
|
1622
|
-
return /* @__PURE__ */
|
|
1220
|
+
return /* @__PURE__ */ jsx15(
|
|
1623
1221
|
PopoverContent,
|
|
1624
1222
|
{
|
|
1625
1223
|
"data-slot": "combobox-content",
|
|
@@ -1637,7 +1235,7 @@ function ComboboxCommand({
|
|
|
1637
1235
|
className,
|
|
1638
1236
|
...props
|
|
1639
1237
|
}) {
|
|
1640
|
-
return /* @__PURE__ */
|
|
1238
|
+
return /* @__PURE__ */ jsx15(
|
|
1641
1239
|
Command,
|
|
1642
1240
|
{
|
|
1643
1241
|
"data-slot": "combobox-command",
|
|
@@ -1649,58 +1247,58 @@ function ComboboxCommand({
|
|
|
1649
1247
|
function ComboboxInput({
|
|
1650
1248
|
...props
|
|
1651
1249
|
}) {
|
|
1652
|
-
return /* @__PURE__ */
|
|
1250
|
+
return /* @__PURE__ */ jsx15(CommandInput, { "data-slot": "combobox-input", ...props });
|
|
1653
1251
|
}
|
|
1654
1252
|
function ComboboxList({
|
|
1655
1253
|
...props
|
|
1656
1254
|
}) {
|
|
1657
|
-
return /* @__PURE__ */
|
|
1255
|
+
return /* @__PURE__ */ jsx15(CommandList, { "data-slot": "combobox-list", ...props });
|
|
1658
1256
|
}
|
|
1659
1257
|
function ComboboxEmpty({
|
|
1660
1258
|
...props
|
|
1661
1259
|
}) {
|
|
1662
|
-
return /* @__PURE__ */
|
|
1260
|
+
return /* @__PURE__ */ jsx15(CommandEmpty, { "data-slot": "combobox-empty", ...props });
|
|
1663
1261
|
}
|
|
1664
1262
|
function ComboboxGroup({
|
|
1665
1263
|
...props
|
|
1666
1264
|
}) {
|
|
1667
|
-
return /* @__PURE__ */
|
|
1265
|
+
return /* @__PURE__ */ jsx15(CommandGroup, { "data-slot": "combobox-group", ...props });
|
|
1668
1266
|
}
|
|
1669
1267
|
function ComboboxItem({
|
|
1670
1268
|
...props
|
|
1671
1269
|
}) {
|
|
1672
|
-
return /* @__PURE__ */
|
|
1270
|
+
return /* @__PURE__ */ jsx15(CommandItem, { "data-slot": "combobox-item", ...props });
|
|
1673
1271
|
}
|
|
1674
1272
|
function ComboboxSeparator({
|
|
1675
1273
|
...props
|
|
1676
1274
|
}) {
|
|
1677
|
-
return /* @__PURE__ */
|
|
1275
|
+
return /* @__PURE__ */ jsx15(CommandSeparator, { "data-slot": "combobox-separator", ...props });
|
|
1678
1276
|
}
|
|
1679
1277
|
function ComboboxShortcut({
|
|
1680
1278
|
...props
|
|
1681
1279
|
}) {
|
|
1682
|
-
return /* @__PURE__ */
|
|
1280
|
+
return /* @__PURE__ */ jsx15(CommandShortcut, { "data-slot": "combobox-shortcut", ...props });
|
|
1683
1281
|
}
|
|
1684
1282
|
|
|
1685
1283
|
// src/ui/date-picker.tsx
|
|
1686
1284
|
import { CalendarIcon } from "lucide-react";
|
|
1687
|
-
import { jsx as
|
|
1285
|
+
import { jsx as jsx16, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1688
1286
|
function DatePicker({
|
|
1689
1287
|
...props
|
|
1690
1288
|
}) {
|
|
1691
|
-
return /* @__PURE__ */
|
|
1289
|
+
return /* @__PURE__ */ jsx16(Popover, { "data-slot": "date-picker", ...props });
|
|
1692
1290
|
}
|
|
1693
1291
|
function DatePickerTrigger({
|
|
1694
1292
|
...props
|
|
1695
1293
|
}) {
|
|
1696
|
-
return /* @__PURE__ */
|
|
1294
|
+
return /* @__PURE__ */ jsx16(PopoverTrigger, { "data-slot": "date-picker-trigger", ...props });
|
|
1697
1295
|
}
|
|
1698
1296
|
function DatePickerContent({
|
|
1699
1297
|
className,
|
|
1700
1298
|
align = "start",
|
|
1701
1299
|
...props
|
|
1702
1300
|
}) {
|
|
1703
|
-
return /* @__PURE__ */
|
|
1301
|
+
return /* @__PURE__ */ jsx16(
|
|
1704
1302
|
PopoverContent,
|
|
1705
1303
|
{
|
|
1706
1304
|
"data-slot": "date-picker-content",
|
|
@@ -1714,7 +1312,7 @@ function DatePickerCalendar({
|
|
|
1714
1312
|
className,
|
|
1715
1313
|
...props
|
|
1716
1314
|
}) {
|
|
1717
|
-
return /* @__PURE__ */
|
|
1315
|
+
return /* @__PURE__ */ jsx16(
|
|
1718
1316
|
Calendar,
|
|
1719
1317
|
{
|
|
1720
1318
|
"data-slot": "date-picker-calendar",
|
|
@@ -1736,7 +1334,7 @@ function DatePickerButton({
|
|
|
1736
1334
|
className,
|
|
1737
1335
|
...props
|
|
1738
1336
|
}) {
|
|
1739
|
-
return /* @__PURE__ */
|
|
1337
|
+
return /* @__PURE__ */ jsxs7(
|
|
1740
1338
|
"button",
|
|
1741
1339
|
{
|
|
1742
1340
|
type: "button",
|
|
@@ -1749,7 +1347,7 @@ function DatePickerButton({
|
|
|
1749
1347
|
),
|
|
1750
1348
|
...props,
|
|
1751
1349
|
children: [
|
|
1752
|
-
/* @__PURE__ */
|
|
1350
|
+
/* @__PURE__ */ jsx16(CalendarIcon, { className: "size-4 shrink-0 opacity-70" }),
|
|
1753
1351
|
date ? formatPickerDate(date) : placeholder
|
|
1754
1352
|
]
|
|
1755
1353
|
}
|
|
@@ -1759,14 +1357,14 @@ function DatePickerButton({
|
|
|
1759
1357
|
// src/ui/input-otp.tsx
|
|
1760
1358
|
import { MinusIcon } from "lucide-react";
|
|
1761
1359
|
import { unstable_OneTimePasswordField as OTPField } from "radix-ui";
|
|
1762
|
-
import { jsx as
|
|
1360
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1763
1361
|
function InputOTP({
|
|
1764
1362
|
className,
|
|
1765
1363
|
containerClassName,
|
|
1766
1364
|
children,
|
|
1767
1365
|
...props
|
|
1768
1366
|
}) {
|
|
1769
|
-
return /* @__PURE__ */
|
|
1367
|
+
return /* @__PURE__ */ jsx17(
|
|
1770
1368
|
OTPField.Root,
|
|
1771
1369
|
{
|
|
1772
1370
|
"data-slot": "input-otp",
|
|
@@ -1784,7 +1382,7 @@ function InputOTPGroup({
|
|
|
1784
1382
|
className,
|
|
1785
1383
|
...props
|
|
1786
1384
|
}) {
|
|
1787
|
-
return /* @__PURE__ */
|
|
1385
|
+
return /* @__PURE__ */ jsx17(
|
|
1788
1386
|
"div",
|
|
1789
1387
|
{
|
|
1790
1388
|
"data-slot": "input-otp-group",
|
|
@@ -1797,13 +1395,13 @@ function InputOTPSlot({
|
|
|
1797
1395
|
className,
|
|
1798
1396
|
...props
|
|
1799
1397
|
}) {
|
|
1800
|
-
return /* @__PURE__ */
|
|
1398
|
+
return /* @__PURE__ */ jsx17(
|
|
1801
1399
|
OTPField.Input,
|
|
1802
1400
|
{
|
|
1803
1401
|
"data-slot": "input-otp-slot",
|
|
1804
1402
|
className: cn(
|
|
1805
1403
|
controlSurfaceClass,
|
|
1806
|
-
"relative size-
|
|
1404
|
+
"relative size-8 rounded-none text-center text-sm tabular-nums",
|
|
1807
1405
|
"-ms-px first:ms-0 first:rounded-s-lg last:rounded-e-lg",
|
|
1808
1406
|
"focus-visible:z-10",
|
|
1809
1407
|
className
|
|
@@ -1815,13 +1413,13 @@ function InputOTPSlot({
|
|
|
1815
1413
|
function InputOTPHiddenInput({
|
|
1816
1414
|
...props
|
|
1817
1415
|
}) {
|
|
1818
|
-
return /* @__PURE__ */
|
|
1416
|
+
return /* @__PURE__ */ jsx17(OTPField.HiddenInput, { "data-slot": "input-otp-hidden-input", ...props });
|
|
1819
1417
|
}
|
|
1820
1418
|
function InputOTPSeparator({
|
|
1821
1419
|
className,
|
|
1822
1420
|
...props
|
|
1823
1421
|
}) {
|
|
1824
|
-
return /* @__PURE__ */
|
|
1422
|
+
return /* @__PURE__ */ jsx17(
|
|
1825
1423
|
"div",
|
|
1826
1424
|
{
|
|
1827
1425
|
role: "separator",
|
|
@@ -1829,15 +1427,15 @@ function InputOTPSeparator({
|
|
|
1829
1427
|
"aria-hidden": true,
|
|
1830
1428
|
className: cn("text-muted-foreground", className),
|
|
1831
1429
|
...props,
|
|
1832
|
-
children: /* @__PURE__ */
|
|
1430
|
+
children: /* @__PURE__ */ jsx17(MinusIcon, { className: "size-4" })
|
|
1833
1431
|
}
|
|
1834
1432
|
);
|
|
1835
1433
|
}
|
|
1836
1434
|
|
|
1837
1435
|
// src/ui/kbd.tsx
|
|
1838
|
-
import { jsx as
|
|
1436
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1839
1437
|
function Kbd({ className, ...props }) {
|
|
1840
|
-
return /* @__PURE__ */
|
|
1438
|
+
return /* @__PURE__ */ jsx18(
|
|
1841
1439
|
"kbd",
|
|
1842
1440
|
{
|
|
1843
1441
|
"data-slot": "kbd",
|
|
@@ -1850,7 +1448,7 @@ function Kbd({ className, ...props }) {
|
|
|
1850
1448
|
);
|
|
1851
1449
|
}
|
|
1852
1450
|
function KbdGroup({ className, ...props }) {
|
|
1853
|
-
return /* @__PURE__ */
|
|
1451
|
+
return /* @__PURE__ */ jsx18(
|
|
1854
1452
|
"div",
|
|
1855
1453
|
{
|
|
1856
1454
|
"data-slot": "kbd-group",
|
|
@@ -1861,12 +1459,12 @@ function KbdGroup({ className, ...props }) {
|
|
|
1861
1459
|
}
|
|
1862
1460
|
|
|
1863
1461
|
// src/ui/spinner.tsx
|
|
1864
|
-
import { jsx as
|
|
1462
|
+
import { jsx as jsx19, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1865
1463
|
function Spinner({
|
|
1866
1464
|
className,
|
|
1867
1465
|
...props
|
|
1868
1466
|
}) {
|
|
1869
|
-
return /* @__PURE__ */
|
|
1467
|
+
return /* @__PURE__ */ jsxs8(
|
|
1870
1468
|
"svg",
|
|
1871
1469
|
{
|
|
1872
1470
|
"data-slot": "spinner",
|
|
@@ -1877,7 +1475,7 @@ function Spinner({
|
|
|
1877
1475
|
className: cn("size-4 animate-spin text-muted-foreground", className),
|
|
1878
1476
|
...props,
|
|
1879
1477
|
children: [
|
|
1880
|
-
/* @__PURE__ */
|
|
1478
|
+
/* @__PURE__ */ jsx19(
|
|
1881
1479
|
"circle",
|
|
1882
1480
|
{
|
|
1883
1481
|
className: "opacity-25",
|
|
@@ -1888,7 +1486,7 @@ function Spinner({
|
|
|
1888
1486
|
strokeWidth: "3"
|
|
1889
1487
|
}
|
|
1890
1488
|
),
|
|
1891
|
-
/* @__PURE__ */
|
|
1489
|
+
/* @__PURE__ */ jsx19(
|
|
1892
1490
|
"path",
|
|
1893
1491
|
{
|
|
1894
1492
|
className: "opacity-75",
|
|
@@ -1902,12 +1500,12 @@ function Spinner({
|
|
|
1902
1500
|
}
|
|
1903
1501
|
|
|
1904
1502
|
// src/ui/input-group.tsx
|
|
1905
|
-
import { jsx as
|
|
1503
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
1906
1504
|
function InputGroup({
|
|
1907
1505
|
className,
|
|
1908
1506
|
...props
|
|
1909
1507
|
}) {
|
|
1910
|
-
return /* @__PURE__ */
|
|
1508
|
+
return /* @__PURE__ */ jsx20(
|
|
1911
1509
|
"div",
|
|
1912
1510
|
{
|
|
1913
1511
|
"data-slot": "input-group",
|
|
@@ -1926,7 +1524,7 @@ function InputGroupAddon({
|
|
|
1926
1524
|
align = "inline-start",
|
|
1927
1525
|
...props
|
|
1928
1526
|
}) {
|
|
1929
|
-
return /* @__PURE__ */
|
|
1527
|
+
return /* @__PURE__ */ jsx20(
|
|
1930
1528
|
"div",
|
|
1931
1529
|
{
|
|
1932
1530
|
"data-slot": "input-group-addon",
|
|
@@ -1945,7 +1543,7 @@ function InputGroupInput({
|
|
|
1945
1543
|
className,
|
|
1946
1544
|
...props
|
|
1947
1545
|
}) {
|
|
1948
|
-
return /* @__PURE__ */
|
|
1546
|
+
return /* @__PURE__ */ jsx20(
|
|
1949
1547
|
"input",
|
|
1950
1548
|
{
|
|
1951
1549
|
"data-slot": "input-group-control",
|
|
@@ -1962,7 +1560,7 @@ function InputGroupText({
|
|
|
1962
1560
|
className,
|
|
1963
1561
|
...props
|
|
1964
1562
|
}) {
|
|
1965
|
-
return /* @__PURE__ */
|
|
1563
|
+
return /* @__PURE__ */ jsx20(
|
|
1966
1564
|
"span",
|
|
1967
1565
|
{
|
|
1968
1566
|
"data-slot": "input-group-text",
|
|
@@ -1974,18 +1572,18 @@ function InputGroupText({
|
|
|
1974
1572
|
|
|
1975
1573
|
// src/ui/accordion.tsx
|
|
1976
1574
|
import { Accordion as AccordionPrimitive } from "radix-ui";
|
|
1977
|
-
import { ChevronDownIcon as
|
|
1978
|
-
import { jsx as
|
|
1575
|
+
import { ChevronDownIcon as ChevronDownIcon4 } from "lucide-react";
|
|
1576
|
+
import { jsx as jsx21, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1979
1577
|
function Accordion({
|
|
1980
1578
|
...props
|
|
1981
1579
|
}) {
|
|
1982
|
-
return /* @__PURE__ */
|
|
1580
|
+
return /* @__PURE__ */ jsx21(AccordionPrimitive.Root, { "data-slot": "accordion", ...props });
|
|
1983
1581
|
}
|
|
1984
1582
|
function AccordionItem({
|
|
1985
1583
|
className,
|
|
1986
1584
|
...props
|
|
1987
1585
|
}) {
|
|
1988
|
-
return /* @__PURE__ */
|
|
1586
|
+
return /* @__PURE__ */ jsx21(
|
|
1989
1587
|
AccordionPrimitive.Item,
|
|
1990
1588
|
{
|
|
1991
1589
|
"data-slot": "accordion-item",
|
|
@@ -1999,12 +1597,12 @@ function AccordionTrigger({
|
|
|
1999
1597
|
children,
|
|
2000
1598
|
...props
|
|
2001
1599
|
}) {
|
|
2002
|
-
return /* @__PURE__ */
|
|
1600
|
+
return /* @__PURE__ */ jsx21(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs9(
|
|
2003
1601
|
AccordionPrimitive.Trigger,
|
|
2004
1602
|
{
|
|
2005
1603
|
"data-slot": "accordion-trigger",
|
|
2006
1604
|
className: cn(
|
|
2007
|
-
"flex flex-1 items-center justify-between gap-4 rounded-md py-
|
|
1605
|
+
"flex flex-1 items-center justify-between gap-4 rounded-md py-3 text-left text-sm font-medium outline-none transition-all",
|
|
2008
1606
|
"focus-visible:ring-2 focus-visible:ring-foreground/10 disabled:pointer-events-none disabled:opacity-50",
|
|
2009
1607
|
"hover:underline [&[data-state=open]>svg]:rotate-180",
|
|
2010
1608
|
className
|
|
@@ -2012,7 +1610,7 @@ function AccordionTrigger({
|
|
|
2012
1610
|
...props,
|
|
2013
1611
|
children: [
|
|
2014
1612
|
children,
|
|
2015
|
-
/* @__PURE__ */
|
|
1613
|
+
/* @__PURE__ */ jsx21(ChevronDownIcon4, { className: "pointer-events-none size-4 shrink-0 text-muted-foreground transition-transform duration-200" })
|
|
2016
1614
|
]
|
|
2017
1615
|
}
|
|
2018
1616
|
) });
|
|
@@ -2022,27 +1620,27 @@ function AccordionContent({
|
|
|
2022
1620
|
children,
|
|
2023
1621
|
...props
|
|
2024
1622
|
}) {
|
|
2025
|
-
return /* @__PURE__ */
|
|
1623
|
+
return /* @__PURE__ */ jsx21(
|
|
2026
1624
|
AccordionPrimitive.Content,
|
|
2027
1625
|
{
|
|
2028
1626
|
"data-slot": "accordion-content",
|
|
2029
1627
|
className: "overflow-hidden text-sm text-muted-foreground data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
2030
1628
|
...props,
|
|
2031
|
-
children: /* @__PURE__ */
|
|
1629
|
+
children: /* @__PURE__ */ jsx21("div", { className: cn("pt-0 pb-3", className), children })
|
|
2032
1630
|
}
|
|
2033
1631
|
);
|
|
2034
1632
|
}
|
|
2035
1633
|
|
|
2036
1634
|
// src/ui/separator.tsx
|
|
2037
1635
|
import { Separator as SeparatorPrimitive } from "radix-ui";
|
|
2038
|
-
import { jsx as
|
|
1636
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
2039
1637
|
function Separator({
|
|
2040
1638
|
className,
|
|
2041
1639
|
orientation = "horizontal",
|
|
2042
1640
|
decorative = true,
|
|
2043
1641
|
...props
|
|
2044
1642
|
}) {
|
|
2045
|
-
return /* @__PURE__ */
|
|
1643
|
+
return /* @__PURE__ */ jsx22(
|
|
2046
1644
|
SeparatorPrimitive.Root,
|
|
2047
1645
|
{
|
|
2048
1646
|
"data-slot": "separator",
|
|
@@ -2060,7 +1658,7 @@ function Separator({
|
|
|
2060
1658
|
// src/ui/slider.tsx
|
|
2061
1659
|
import * as React2 from "react";
|
|
2062
1660
|
import { Slider as SliderPrimitive } from "radix-ui";
|
|
2063
|
-
import { jsx as
|
|
1661
|
+
import { jsx as jsx23, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
2064
1662
|
function Slider({
|
|
2065
1663
|
className,
|
|
2066
1664
|
defaultValue,
|
|
@@ -2074,7 +1672,7 @@ function Slider({
|
|
|
2074
1672
|
if (Array.isArray(defaultValue)) return defaultValue;
|
|
2075
1673
|
return [min];
|
|
2076
1674
|
}, [value, defaultValue, min]);
|
|
2077
|
-
return /* @__PURE__ */
|
|
1675
|
+
return /* @__PURE__ */ jsxs10(
|
|
2078
1676
|
SliderPrimitive.Root,
|
|
2079
1677
|
{
|
|
2080
1678
|
"data-slot": "slider",
|
|
@@ -2089,12 +1687,12 @@ function Slider({
|
|
|
2089
1687
|
),
|
|
2090
1688
|
...props,
|
|
2091
1689
|
children: [
|
|
2092
|
-
/* @__PURE__ */
|
|
1690
|
+
/* @__PURE__ */ jsx23(
|
|
2093
1691
|
SliderPrimitive.Track,
|
|
2094
1692
|
{
|
|
2095
1693
|
"data-slot": "slider-track",
|
|
2096
1694
|
className: "relative grow overflow-hidden rounded-full bg-muted data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5",
|
|
2097
|
-
children: /* @__PURE__ */
|
|
1695
|
+
children: /* @__PURE__ */ jsx23(
|
|
2098
1696
|
SliderPrimitive.Range,
|
|
2099
1697
|
{
|
|
2100
1698
|
"data-slot": "slider-range",
|
|
@@ -2103,7 +1701,7 @@ function Slider({
|
|
|
2103
1701
|
)
|
|
2104
1702
|
}
|
|
2105
1703
|
),
|
|
2106
|
-
Array.from({ length: thumbs.length }, (_, i) => /* @__PURE__ */
|
|
1704
|
+
Array.from({ length: thumbs.length }, (_, i) => /* @__PURE__ */ jsx23(
|
|
2107
1705
|
SliderPrimitive.Thumb,
|
|
2108
1706
|
{
|
|
2109
1707
|
"data-slot": "slider-thumb",
|
|
@@ -2118,13 +1716,13 @@ function Slider({
|
|
|
2118
1716
|
|
|
2119
1717
|
// src/ui/progress.tsx
|
|
2120
1718
|
import { Progress as ProgressPrimitive } from "radix-ui";
|
|
2121
|
-
import { jsx as
|
|
1719
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
2122
1720
|
function Progress({
|
|
2123
1721
|
className,
|
|
2124
1722
|
value,
|
|
2125
1723
|
...props
|
|
2126
1724
|
}) {
|
|
2127
|
-
return /* @__PURE__ */
|
|
1725
|
+
return /* @__PURE__ */ jsx24(
|
|
2128
1726
|
ProgressPrimitive.Root,
|
|
2129
1727
|
{
|
|
2130
1728
|
"data-slot": "progress",
|
|
@@ -2133,7 +1731,7 @@ function Progress({
|
|
|
2133
1731
|
className
|
|
2134
1732
|
),
|
|
2135
1733
|
...props,
|
|
2136
|
-
children: /* @__PURE__ */
|
|
1734
|
+
children: /* @__PURE__ */ jsx24(
|
|
2137
1735
|
ProgressPrimitive.Indicator,
|
|
2138
1736
|
{
|
|
2139
1737
|
"data-slot": "progress-indicator",
|
|
@@ -2148,7 +1746,7 @@ function Progress({
|
|
|
2148
1746
|
// src/ui/badge.tsx
|
|
2149
1747
|
import { Slot as Slot2 } from "radix-ui";
|
|
2150
1748
|
import { cva as cva2 } from "class-variance-authority";
|
|
2151
|
-
import { jsx as
|
|
1749
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
2152
1750
|
var badgeVariants = cva2(
|
|
2153
1751
|
"inline-flex w-fit shrink-0 items-center justify-center gap-1 whitespace-nowrap rounded-md border px-2 py-0.5 text-xs font-medium [&>svg]:pointer-events-none [&>svg]:size-3",
|
|
2154
1752
|
{
|
|
@@ -2172,7 +1770,7 @@ function Badge({
|
|
|
2172
1770
|
...props
|
|
2173
1771
|
}) {
|
|
2174
1772
|
const Comp = asChild ? Slot2.Root : "span";
|
|
2175
|
-
return /* @__PURE__ */
|
|
1773
|
+
return /* @__PURE__ */ jsx25(
|
|
2176
1774
|
Comp,
|
|
2177
1775
|
{
|
|
2178
1776
|
"data-slot": "badge",
|
|
@@ -2186,35 +1784,35 @@ function Badge({
|
|
|
2186
1784
|
import { XIcon } from "lucide-react";
|
|
2187
1785
|
import { Dialog as SheetPrimitive } from "radix-ui";
|
|
2188
1786
|
import { cva as cva3 } from "class-variance-authority";
|
|
2189
|
-
import { jsx as
|
|
1787
|
+
import { jsx as jsx26, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2190
1788
|
function Sheet({ ...props }) {
|
|
2191
|
-
return /* @__PURE__ */
|
|
1789
|
+
return /* @__PURE__ */ jsx26(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
|
|
2192
1790
|
}
|
|
2193
1791
|
function SheetTrigger({
|
|
2194
1792
|
...props
|
|
2195
1793
|
}) {
|
|
2196
|
-
return /* @__PURE__ */
|
|
1794
|
+
return /* @__PURE__ */ jsx26(SheetPrimitive.Trigger, { "data-slot": "sheet-trigger", ...props });
|
|
2197
1795
|
}
|
|
2198
1796
|
function SheetClose({
|
|
2199
1797
|
...props
|
|
2200
1798
|
}) {
|
|
2201
|
-
return /* @__PURE__ */
|
|
1799
|
+
return /* @__PURE__ */ jsx26(SheetPrimitive.Close, { "data-slot": "sheet-close", ...props });
|
|
2202
1800
|
}
|
|
2203
1801
|
function SheetPortal({
|
|
2204
1802
|
...props
|
|
2205
1803
|
}) {
|
|
2206
|
-
return /* @__PURE__ */
|
|
1804
|
+
return /* @__PURE__ */ jsx26(SheetPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
|
|
2207
1805
|
}
|
|
2208
1806
|
function SheetOverlay({
|
|
2209
1807
|
className,
|
|
2210
1808
|
...props
|
|
2211
1809
|
}) {
|
|
2212
|
-
return /* @__PURE__ */
|
|
1810
|
+
return /* @__PURE__ */ jsx26(
|
|
2213
1811
|
SheetPrimitive.Overlay,
|
|
2214
1812
|
{
|
|
2215
1813
|
"data-slot": "sheet-overlay",
|
|
2216
1814
|
className: cn(
|
|
2217
|
-
"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-[70] bg-black/
|
|
1815
|
+
"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-[70] bg-black/40 backdrop-blur-[2px] duration-300",
|
|
2218
1816
|
className
|
|
2219
1817
|
),
|
|
2220
1818
|
...props
|
|
@@ -2224,19 +1822,45 @@ function SheetOverlay({
|
|
|
2224
1822
|
var sheetContentVariants = cva3(
|
|
2225
1823
|
cn(
|
|
2226
1824
|
TIMBAL_V2_MODAL_SURFACE,
|
|
2227
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-[70] flex flex-col gap-4 shadow-card-elevated
|
|
1825
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0 fixed z-[70] flex flex-col gap-4 shadow-card-elevated duration-300"
|
|
2228
1826
|
),
|
|
2229
1827
|
{
|
|
2230
1828
|
variants: {
|
|
2231
1829
|
side: {
|
|
2232
|
-
top: "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-
|
|
2233
|
-
bottom: "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-
|
|
2234
|
-
left: "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left
|
|
2235
|
-
right: "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right
|
|
1830
|
+
top: "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top fixed top-4 inset-x-4 mx-auto w-[calc(100vw-2rem)] sm:max-w-lg rounded-2xl p-5",
|
|
1831
|
+
bottom: "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom fixed bottom-4 inset-x-4 mx-auto w-[calc(100vw-2rem)] sm:max-w-lg rounded-2xl p-5",
|
|
1832
|
+
left: "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left fixed top-4 bottom-4 left-4 w-[calc(100vw-2rem)] rounded-2xl p-5",
|
|
1833
|
+
right: "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right fixed top-4 bottom-4 right-4 w-[calc(100vw-2rem)] rounded-2xl p-5"
|
|
1834
|
+
},
|
|
1835
|
+
size: {
|
|
1836
|
+
default: "",
|
|
1837
|
+
sm: "",
|
|
1838
|
+
md: "",
|
|
1839
|
+
lg: "",
|
|
1840
|
+
xl: "",
|
|
1841
|
+
"2xl": "",
|
|
1842
|
+
full: ""
|
|
2236
1843
|
}
|
|
2237
1844
|
},
|
|
1845
|
+
compoundVariants: [
|
|
1846
|
+
{ side: "left", size: "default", class: "sm:max-w-md md:max-w-lg" },
|
|
1847
|
+
{ side: "right", size: "default", class: "sm:max-w-md md:max-w-lg" },
|
|
1848
|
+
{ side: "left", size: "sm", class: "sm:max-w-sm md:max-w-md" },
|
|
1849
|
+
{ side: "right", size: "sm", class: "sm:max-w-sm md:max-w-md" },
|
|
1850
|
+
{ side: "left", size: "md", class: "sm:max-w-md md:max-w-lg" },
|
|
1851
|
+
{ side: "right", size: "md", class: "sm:max-w-md md:max-w-lg" },
|
|
1852
|
+
{ side: "left", size: "lg", class: "sm:max-w-lg md:max-w-xl lg:max-w-2xl" },
|
|
1853
|
+
{ side: "right", size: "lg", class: "sm:max-w-lg md:max-w-xl lg:max-w-2xl" },
|
|
1854
|
+
{ side: "left", size: "xl", class: "sm:max-w-xl md:max-w-3xl lg:max-w-4xl" },
|
|
1855
|
+
{ side: "right", size: "xl", class: "sm:max-w-xl md:max-w-3xl lg:max-w-4xl" },
|
|
1856
|
+
{ side: "left", size: "2xl", class: "sm:max-w-2xl md:max-w-4xl lg:max-w-5xl xl:max-w-6xl" },
|
|
1857
|
+
{ side: "right", size: "2xl", class: "sm:max-w-2xl md:max-w-4xl lg:max-w-5xl xl:max-w-6xl" },
|
|
1858
|
+
{ side: "left", size: "full", class: "max-w-[calc(100vw-2rem)]" },
|
|
1859
|
+
{ side: "right", size: "full", class: "max-w-[calc(100vw-2rem)]" }
|
|
1860
|
+
],
|
|
2238
1861
|
defaultVariants: {
|
|
2239
|
-
side: "right"
|
|
1862
|
+
side: "right",
|
|
1863
|
+
size: "default"
|
|
2240
1864
|
}
|
|
2241
1865
|
}
|
|
2242
1866
|
);
|
|
@@ -2244,22 +1868,23 @@ function SheetContent({
|
|
|
2244
1868
|
className,
|
|
2245
1869
|
children,
|
|
2246
1870
|
side = "right",
|
|
1871
|
+
size = "default",
|
|
2247
1872
|
showCloseButton = true,
|
|
2248
1873
|
...props
|
|
2249
1874
|
}) {
|
|
2250
|
-
return /* @__PURE__ */
|
|
2251
|
-
/* @__PURE__ */
|
|
2252
|
-
/* @__PURE__ */
|
|
1875
|
+
return /* @__PURE__ */ jsxs11(SheetPortal, { children: [
|
|
1876
|
+
/* @__PURE__ */ jsx26(SheetOverlay, {}),
|
|
1877
|
+
/* @__PURE__ */ jsxs11(
|
|
2253
1878
|
SheetPrimitive.Content,
|
|
2254
1879
|
{
|
|
2255
1880
|
"data-slot": "sheet-content",
|
|
2256
|
-
className: cn(sheetContentVariants({ side }), className),
|
|
1881
|
+
className: cn(sheetContentVariants({ side, size }), className),
|
|
2257
1882
|
...props,
|
|
2258
1883
|
children: [
|
|
2259
1884
|
children,
|
|
2260
|
-
showCloseButton ? /* @__PURE__ */
|
|
2261
|
-
/* @__PURE__ */
|
|
2262
|
-
/* @__PURE__ */
|
|
1885
|
+
showCloseButton ? /* @__PURE__ */ jsxs11(SheetPrimitive.Close, { className: "absolute top-4 right-4 rounded-xs opacity-70 transition-[opacity,background-color] hover:bg-ghost-fill-hover hover:opacity-100 focus:ring-2 focus:ring-foreground/10 focus:outline-hidden disabled:pointer-events-none", children: [
|
|
1886
|
+
/* @__PURE__ */ jsx26(XIcon, { className: "size-4" }),
|
|
1887
|
+
/* @__PURE__ */ jsx26("span", { className: "sr-only", children: "Close" })
|
|
2263
1888
|
] }) : null
|
|
2264
1889
|
]
|
|
2265
1890
|
}
|
|
@@ -2267,7 +1892,7 @@ function SheetContent({
|
|
|
2267
1892
|
] });
|
|
2268
1893
|
}
|
|
2269
1894
|
function SheetHeader({ className, ...props }) {
|
|
2270
|
-
return /* @__PURE__ */
|
|
1895
|
+
return /* @__PURE__ */ jsx26(
|
|
2271
1896
|
"div",
|
|
2272
1897
|
{
|
|
2273
1898
|
"data-slot": "sheet-header",
|
|
@@ -2277,7 +1902,7 @@ function SheetHeader({ className, ...props }) {
|
|
|
2277
1902
|
);
|
|
2278
1903
|
}
|
|
2279
1904
|
function SheetFooter({ className, ...props }) {
|
|
2280
|
-
return /* @__PURE__ */
|
|
1905
|
+
return /* @__PURE__ */ jsx26(
|
|
2281
1906
|
"div",
|
|
2282
1907
|
{
|
|
2283
1908
|
"data-slot": "sheet-footer",
|
|
@@ -2290,7 +1915,7 @@ function SheetTitle({
|
|
|
2290
1915
|
className,
|
|
2291
1916
|
...props
|
|
2292
1917
|
}) {
|
|
2293
|
-
return /* @__PURE__ */
|
|
1918
|
+
return /* @__PURE__ */ jsx26(
|
|
2294
1919
|
SheetPrimitive.Title,
|
|
2295
1920
|
{
|
|
2296
1921
|
"data-slot": "sheet-title",
|
|
@@ -2303,7 +1928,7 @@ function SheetDescription({
|
|
|
2303
1928
|
className,
|
|
2304
1929
|
...props
|
|
2305
1930
|
}) {
|
|
2306
|
-
return /* @__PURE__ */
|
|
1931
|
+
return /* @__PURE__ */ jsx26(
|
|
2307
1932
|
SheetPrimitive.Description,
|
|
2308
1933
|
{
|
|
2309
1934
|
"data-slot": "sheet-description",
|
|
@@ -2315,27 +1940,27 @@ function SheetDescription({
|
|
|
2315
1940
|
|
|
2316
1941
|
// src/ui/alert-dialog.tsx
|
|
2317
1942
|
import { AlertDialog as AlertDialogPrimitive } from "radix-ui";
|
|
2318
|
-
import { jsx as
|
|
1943
|
+
import { jsx as jsx27, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2319
1944
|
function AlertDialog({
|
|
2320
1945
|
...props
|
|
2321
1946
|
}) {
|
|
2322
|
-
return /* @__PURE__ */
|
|
1947
|
+
return /* @__PURE__ */ jsx27(AlertDialogPrimitive.Root, { "data-slot": "alert-dialog", ...props });
|
|
2323
1948
|
}
|
|
2324
1949
|
function AlertDialogTrigger({
|
|
2325
1950
|
...props
|
|
2326
1951
|
}) {
|
|
2327
|
-
return /* @__PURE__ */
|
|
1952
|
+
return /* @__PURE__ */ jsx27(AlertDialogPrimitive.Trigger, { "data-slot": "alert-dialog-trigger", ...props });
|
|
2328
1953
|
}
|
|
2329
1954
|
function AlertDialogPortal({
|
|
2330
1955
|
...props
|
|
2331
1956
|
}) {
|
|
2332
|
-
return /* @__PURE__ */
|
|
1957
|
+
return /* @__PURE__ */ jsx27(AlertDialogPrimitive.Portal, { "data-slot": "alert-dialog-portal", ...props });
|
|
2333
1958
|
}
|
|
2334
1959
|
function AlertDialogOverlay({
|
|
2335
1960
|
className,
|
|
2336
1961
|
...props
|
|
2337
1962
|
}) {
|
|
2338
|
-
return /* @__PURE__ */
|
|
1963
|
+
return /* @__PURE__ */ jsx27(
|
|
2339
1964
|
AlertDialogPrimitive.Overlay,
|
|
2340
1965
|
{
|
|
2341
1966
|
"data-slot": "alert-dialog-overlay",
|
|
@@ -2351,9 +1976,9 @@ function AlertDialogContent({
|
|
|
2351
1976
|
className,
|
|
2352
1977
|
...props
|
|
2353
1978
|
}) {
|
|
2354
|
-
return /* @__PURE__ */
|
|
2355
|
-
/* @__PURE__ */
|
|
2356
|
-
/* @__PURE__ */
|
|
1979
|
+
return /* @__PURE__ */ jsxs12(AlertDialogPortal, { children: [
|
|
1980
|
+
/* @__PURE__ */ jsx27(AlertDialogOverlay, {}),
|
|
1981
|
+
/* @__PURE__ */ jsx27(
|
|
2357
1982
|
AlertDialogPrimitive.Content,
|
|
2358
1983
|
{
|
|
2359
1984
|
"data-slot": "alert-dialog-content",
|
|
@@ -2368,7 +1993,7 @@ function AlertDialogContent({
|
|
|
2368
1993
|
] });
|
|
2369
1994
|
}
|
|
2370
1995
|
function AlertDialogHeader({ className, ...props }) {
|
|
2371
|
-
return /* @__PURE__ */
|
|
1996
|
+
return /* @__PURE__ */ jsx27(
|
|
2372
1997
|
"div",
|
|
2373
1998
|
{
|
|
2374
1999
|
"data-slot": "alert-dialog-header",
|
|
@@ -2378,7 +2003,7 @@ function AlertDialogHeader({ className, ...props }) {
|
|
|
2378
2003
|
);
|
|
2379
2004
|
}
|
|
2380
2005
|
function AlertDialogFooter({ className, ...props }) {
|
|
2381
|
-
return /* @__PURE__ */
|
|
2006
|
+
return /* @__PURE__ */ jsx27(
|
|
2382
2007
|
"div",
|
|
2383
2008
|
{
|
|
2384
2009
|
"data-slot": "alert-dialog-footer",
|
|
@@ -2394,7 +2019,7 @@ function AlertDialogTitle({
|
|
|
2394
2019
|
className,
|
|
2395
2020
|
...props
|
|
2396
2021
|
}) {
|
|
2397
|
-
return /* @__PURE__ */
|
|
2022
|
+
return /* @__PURE__ */ jsx27(
|
|
2398
2023
|
AlertDialogPrimitive.Title,
|
|
2399
2024
|
{
|
|
2400
2025
|
"data-slot": "alert-dialog-title",
|
|
@@ -2407,7 +2032,7 @@ function AlertDialogDescription({
|
|
|
2407
2032
|
className,
|
|
2408
2033
|
...props
|
|
2409
2034
|
}) {
|
|
2410
|
-
return /* @__PURE__ */
|
|
2035
|
+
return /* @__PURE__ */ jsx27(
|
|
2411
2036
|
AlertDialogPrimitive.Description,
|
|
2412
2037
|
{
|
|
2413
2038
|
"data-slot": "alert-dialog-description",
|
|
@@ -2420,7 +2045,7 @@ function AlertDialogAction({
|
|
|
2420
2045
|
className,
|
|
2421
2046
|
...props
|
|
2422
2047
|
}) {
|
|
2423
|
-
return /* @__PURE__ */
|
|
2048
|
+
return /* @__PURE__ */ jsx27(Button, { asChild: true, children: /* @__PURE__ */ jsx27(
|
|
2424
2049
|
AlertDialogPrimitive.Action,
|
|
2425
2050
|
{
|
|
2426
2051
|
"data-slot": "alert-dialog-action",
|
|
@@ -2433,7 +2058,7 @@ function AlertDialogCancel({
|
|
|
2433
2058
|
className,
|
|
2434
2059
|
...props
|
|
2435
2060
|
}) {
|
|
2436
|
-
return /* @__PURE__ */
|
|
2061
|
+
return /* @__PURE__ */ jsx27(Button, { asChild: true, variant: "outline", children: /* @__PURE__ */ jsx27(
|
|
2437
2062
|
AlertDialogPrimitive.Cancel,
|
|
2438
2063
|
{
|
|
2439
2064
|
"data-slot": "alert-dialog-cancel",
|
|
@@ -2445,22 +2070,22 @@ function AlertDialogCancel({
|
|
|
2445
2070
|
|
|
2446
2071
|
// src/ui/collapsible.tsx
|
|
2447
2072
|
import { Collapsible as CollapsiblePrimitive } from "radix-ui";
|
|
2448
|
-
import { jsx as
|
|
2073
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
2449
2074
|
function Collapsible({
|
|
2450
2075
|
...props
|
|
2451
2076
|
}) {
|
|
2452
|
-
return /* @__PURE__ */
|
|
2077
|
+
return /* @__PURE__ */ jsx28(CollapsiblePrimitive.Root, { "data-slot": "collapsible", ...props });
|
|
2453
2078
|
}
|
|
2454
2079
|
function CollapsibleTrigger({
|
|
2455
2080
|
...props
|
|
2456
2081
|
}) {
|
|
2457
|
-
return /* @__PURE__ */
|
|
2082
|
+
return /* @__PURE__ */ jsx28(CollapsiblePrimitive.Trigger, { "data-slot": "collapsible-trigger", ...props });
|
|
2458
2083
|
}
|
|
2459
2084
|
function CollapsibleContent({
|
|
2460
2085
|
className,
|
|
2461
2086
|
...props
|
|
2462
2087
|
}) {
|
|
2463
|
-
return /* @__PURE__ */
|
|
2088
|
+
return /* @__PURE__ */ jsx28(
|
|
2464
2089
|
CollapsiblePrimitive.Content,
|
|
2465
2090
|
{
|
|
2466
2091
|
"data-slot": "collapsible-content",
|
|
@@ -2475,20 +2100,20 @@ function CollapsibleContent({
|
|
|
2475
2100
|
|
|
2476
2101
|
// src/ui/scroll-area.tsx
|
|
2477
2102
|
import { ScrollArea as ScrollAreaPrimitive } from "radix-ui";
|
|
2478
|
-
import { jsx as
|
|
2103
|
+
import { jsx as jsx29, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2479
2104
|
function ScrollArea({
|
|
2480
2105
|
className,
|
|
2481
2106
|
children,
|
|
2482
2107
|
...props
|
|
2483
2108
|
}) {
|
|
2484
|
-
return /* @__PURE__ */
|
|
2109
|
+
return /* @__PURE__ */ jsxs13(
|
|
2485
2110
|
ScrollAreaPrimitive.Root,
|
|
2486
2111
|
{
|
|
2487
2112
|
"data-slot": "scroll-area",
|
|
2488
2113
|
className: cn("relative overflow-hidden", className),
|
|
2489
2114
|
...props,
|
|
2490
2115
|
children: [
|
|
2491
|
-
/* @__PURE__ */
|
|
2116
|
+
/* @__PURE__ */ jsx29(
|
|
2492
2117
|
ScrollAreaPrimitive.Viewport,
|
|
2493
2118
|
{
|
|
2494
2119
|
"data-slot": "scroll-area-viewport",
|
|
@@ -2496,8 +2121,8 @@ function ScrollArea({
|
|
|
2496
2121
|
children
|
|
2497
2122
|
}
|
|
2498
2123
|
),
|
|
2499
|
-
/* @__PURE__ */
|
|
2500
|
-
/* @__PURE__ */
|
|
2124
|
+
/* @__PURE__ */ jsx29(ScrollBar, {}),
|
|
2125
|
+
/* @__PURE__ */ jsx29(ScrollAreaPrimitive.Corner, {})
|
|
2501
2126
|
]
|
|
2502
2127
|
}
|
|
2503
2128
|
);
|
|
@@ -2507,7 +2132,7 @@ function ScrollBar({
|
|
|
2507
2132
|
orientation = "vertical",
|
|
2508
2133
|
...props
|
|
2509
2134
|
}) {
|
|
2510
|
-
return /* @__PURE__ */
|
|
2135
|
+
return /* @__PURE__ */ jsx29(
|
|
2511
2136
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
2512
2137
|
{
|
|
2513
2138
|
"data-slot": "scroll-area-scrollbar",
|
|
@@ -2519,7 +2144,7 @@ function ScrollBar({
|
|
|
2519
2144
|
className
|
|
2520
2145
|
),
|
|
2521
2146
|
...props,
|
|
2522
|
-
children: /* @__PURE__ */
|
|
2147
|
+
children: /* @__PURE__ */ jsx29(
|
|
2523
2148
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
|
2524
2149
|
{
|
|
2525
2150
|
"data-slot": "scroll-area-thumb",
|
|
@@ -2533,7 +2158,7 @@ function ScrollBar({
|
|
|
2533
2158
|
// src/ui/toggle.tsx
|
|
2534
2159
|
import { Toggle as TogglePrimitive } from "radix-ui";
|
|
2535
2160
|
import { cva as cva4 } from "class-variance-authority";
|
|
2536
|
-
import { jsx as
|
|
2161
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
2537
2162
|
var toggleVariants = cva4(
|
|
2538
2163
|
"inline-flex items-center justify-center gap-2 rounded-lg text-sm font-medium whitespace-nowrap outline-none transition-[color,box-shadow,background-color,border-color] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0",
|
|
2539
2164
|
{
|
|
@@ -2570,7 +2195,7 @@ function Toggle({
|
|
|
2570
2195
|
size,
|
|
2571
2196
|
...props
|
|
2572
2197
|
}) {
|
|
2573
|
-
return /* @__PURE__ */
|
|
2198
|
+
return /* @__PURE__ */ jsx30(
|
|
2574
2199
|
TogglePrimitive.Root,
|
|
2575
2200
|
{
|
|
2576
2201
|
"data-slot": "toggle",
|
|
@@ -2582,12 +2207,12 @@ function Toggle({
|
|
|
2582
2207
|
|
|
2583
2208
|
// src/ui/toggle-group.tsx
|
|
2584
2209
|
import { ToggleGroup as ToggleGroupPrimitive } from "radix-ui";
|
|
2585
|
-
import { jsx as
|
|
2210
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
2586
2211
|
function ToggleGroup({
|
|
2587
2212
|
className,
|
|
2588
2213
|
...props
|
|
2589
2214
|
}) {
|
|
2590
|
-
return /* @__PURE__ */
|
|
2215
|
+
return /* @__PURE__ */ jsx31(
|
|
2591
2216
|
ToggleGroupPrimitive.Root,
|
|
2592
2217
|
{
|
|
2593
2218
|
"data-slot": "toggle-group",
|
|
@@ -2600,7 +2225,7 @@ function ToggleGroupItem({
|
|
|
2600
2225
|
className,
|
|
2601
2226
|
...props
|
|
2602
2227
|
}) {
|
|
2603
|
-
return /* @__PURE__ */
|
|
2228
|
+
return /* @__PURE__ */ jsx31(
|
|
2604
2229
|
ToggleGroupPrimitive.Item,
|
|
2605
2230
|
{
|
|
2606
2231
|
"data-slot": "toggle-group-item",
|
|
@@ -2612,16 +2237,16 @@ function ToggleGroupItem({
|
|
|
2612
2237
|
|
|
2613
2238
|
// src/ui/hover-card.tsx
|
|
2614
2239
|
import { HoverCard as HoverCardPrimitive } from "radix-ui";
|
|
2615
|
-
import { jsx as
|
|
2240
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
2616
2241
|
function HoverCard({
|
|
2617
2242
|
...props
|
|
2618
2243
|
}) {
|
|
2619
|
-
return /* @__PURE__ */
|
|
2244
|
+
return /* @__PURE__ */ jsx32(HoverCardPrimitive.Root, { "data-slot": "hover-card", ...props });
|
|
2620
2245
|
}
|
|
2621
2246
|
function HoverCardTrigger({
|
|
2622
2247
|
...props
|
|
2623
2248
|
}) {
|
|
2624
|
-
return /* @__PURE__ */
|
|
2249
|
+
return /* @__PURE__ */ jsx32(HoverCardPrimitive.Trigger, { "data-slot": "hover-card-trigger", ...props });
|
|
2625
2250
|
}
|
|
2626
2251
|
function HoverCardContent({
|
|
2627
2252
|
className,
|
|
@@ -2629,7 +2254,7 @@ function HoverCardContent({
|
|
|
2629
2254
|
sideOffset = 4,
|
|
2630
2255
|
...props
|
|
2631
2256
|
}) {
|
|
2632
|
-
return /* @__PURE__ */
|
|
2257
|
+
return /* @__PURE__ */ jsx32(HoverCardPrimitive.Portal, { children: /* @__PURE__ */ jsx32(
|
|
2633
2258
|
HoverCardPrimitive.Content,
|
|
2634
2259
|
{
|
|
2635
2260
|
"data-slot": "hover-card-content",
|
|
@@ -2647,28 +2272,28 @@ function HoverCardContent({
|
|
|
2647
2272
|
|
|
2648
2273
|
// src/ui/context-menu.tsx
|
|
2649
2274
|
import { ContextMenu as ContextMenuPrimitive } from "radix-ui";
|
|
2650
|
-
import { CheckIcon as
|
|
2651
|
-
import { jsx as
|
|
2275
|
+
import { CheckIcon as CheckIcon2, ChevronRightIcon as ChevronRightIcon5, CircleIcon as CircleIcon3 } from "lucide-react";
|
|
2276
|
+
import { jsx as jsx33, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2652
2277
|
function ContextMenu({
|
|
2653
2278
|
...props
|
|
2654
2279
|
}) {
|
|
2655
|
-
return /* @__PURE__ */
|
|
2280
|
+
return /* @__PURE__ */ jsx33(ContextMenuPrimitive.Root, { "data-slot": "context-menu", ...props });
|
|
2656
2281
|
}
|
|
2657
2282
|
function ContextMenuTrigger({
|
|
2658
2283
|
...props
|
|
2659
2284
|
}) {
|
|
2660
|
-
return /* @__PURE__ */
|
|
2285
|
+
return /* @__PURE__ */ jsx33(ContextMenuPrimitive.Trigger, { "data-slot": "context-menu-trigger", ...props });
|
|
2661
2286
|
}
|
|
2662
2287
|
function ContextMenuGroup({
|
|
2663
2288
|
...props
|
|
2664
2289
|
}) {
|
|
2665
|
-
return /* @__PURE__ */
|
|
2290
|
+
return /* @__PURE__ */ jsx33(ContextMenuPrimitive.Group, { "data-slot": "context-menu-group", ...props });
|
|
2666
2291
|
}
|
|
2667
2292
|
function ContextMenuContent({
|
|
2668
2293
|
className,
|
|
2669
2294
|
...props
|
|
2670
2295
|
}) {
|
|
2671
|
-
return /* @__PURE__ */
|
|
2296
|
+
return /* @__PURE__ */ jsx33(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx33(
|
|
2672
2297
|
ContextMenuPrimitive.Content,
|
|
2673
2298
|
{
|
|
2674
2299
|
"data-slot": "context-menu-content",
|
|
@@ -2687,7 +2312,7 @@ function ContextMenuItem({
|
|
|
2687
2312
|
variant = "default",
|
|
2688
2313
|
...props
|
|
2689
2314
|
}) {
|
|
2690
|
-
return /* @__PURE__ */
|
|
2315
|
+
return /* @__PURE__ */ jsx33(
|
|
2691
2316
|
ContextMenuPrimitive.Item,
|
|
2692
2317
|
{
|
|
2693
2318
|
"data-slot": "context-menu-item",
|
|
@@ -2708,7 +2333,7 @@ function ContextMenuCheckboxItem({
|
|
|
2708
2333
|
checked,
|
|
2709
2334
|
...props
|
|
2710
2335
|
}) {
|
|
2711
|
-
return /* @__PURE__ */
|
|
2336
|
+
return /* @__PURE__ */ jsxs14(
|
|
2712
2337
|
ContextMenuPrimitive.CheckboxItem,
|
|
2713
2338
|
{
|
|
2714
2339
|
"data-slot": "context-menu-checkbox-item",
|
|
@@ -2716,7 +2341,7 @@ function ContextMenuCheckboxItem({
|
|
|
2716
2341
|
checked,
|
|
2717
2342
|
...props,
|
|
2718
2343
|
children: [
|
|
2719
|
-
/* @__PURE__ */
|
|
2344
|
+
/* @__PURE__ */ jsx33("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx33(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx33(CheckIcon2, { className: "size-4" }) }) }),
|
|
2720
2345
|
children
|
|
2721
2346
|
]
|
|
2722
2347
|
}
|
|
@@ -2725,7 +2350,7 @@ function ContextMenuCheckboxItem({
|
|
|
2725
2350
|
function ContextMenuRadioGroup({
|
|
2726
2351
|
...props
|
|
2727
2352
|
}) {
|
|
2728
|
-
return /* @__PURE__ */
|
|
2353
|
+
return /* @__PURE__ */ jsx33(
|
|
2729
2354
|
ContextMenuPrimitive.RadioGroup,
|
|
2730
2355
|
{
|
|
2731
2356
|
"data-slot": "context-menu-radio-group",
|
|
@@ -2738,14 +2363,14 @@ function ContextMenuRadioItem({
|
|
|
2738
2363
|
children,
|
|
2739
2364
|
...props
|
|
2740
2365
|
}) {
|
|
2741
|
-
return /* @__PURE__ */
|
|
2366
|
+
return /* @__PURE__ */ jsxs14(
|
|
2742
2367
|
ContextMenuPrimitive.RadioItem,
|
|
2743
2368
|
{
|
|
2744
2369
|
"data-slot": "context-menu-radio-item",
|
|
2745
2370
|
className: cn(overlayItemClass, "py-1.5 pr-2 pl-8", className),
|
|
2746
2371
|
...props,
|
|
2747
2372
|
children: [
|
|
2748
|
-
/* @__PURE__ */
|
|
2373
|
+
/* @__PURE__ */ jsx33("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx33(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx33(CircleIcon3, { className: "size-2 fill-current" }) }) }),
|
|
2749
2374
|
children
|
|
2750
2375
|
]
|
|
2751
2376
|
}
|
|
@@ -2756,7 +2381,7 @@ function ContextMenuLabel({
|
|
|
2756
2381
|
inset,
|
|
2757
2382
|
...props
|
|
2758
2383
|
}) {
|
|
2759
|
-
return /* @__PURE__ */
|
|
2384
|
+
return /* @__PURE__ */ jsx33(
|
|
2760
2385
|
ContextMenuPrimitive.Label,
|
|
2761
2386
|
{
|
|
2762
2387
|
"data-slot": "context-menu-label",
|
|
@@ -2773,7 +2398,7 @@ function ContextMenuSeparator({
|
|
|
2773
2398
|
className,
|
|
2774
2399
|
...props
|
|
2775
2400
|
}) {
|
|
2776
|
-
return /* @__PURE__ */
|
|
2401
|
+
return /* @__PURE__ */ jsx33(
|
|
2777
2402
|
ContextMenuPrimitive.Separator,
|
|
2778
2403
|
{
|
|
2779
2404
|
"data-slot": "context-menu-separator",
|
|
@@ -2786,7 +2411,7 @@ function ContextMenuShortcut({
|
|
|
2786
2411
|
className,
|
|
2787
2412
|
...props
|
|
2788
2413
|
}) {
|
|
2789
|
-
return /* @__PURE__ */
|
|
2414
|
+
return /* @__PURE__ */ jsx33(
|
|
2790
2415
|
"span",
|
|
2791
2416
|
{
|
|
2792
2417
|
"data-slot": "context-menu-shortcut",
|
|
@@ -2801,7 +2426,7 @@ function ContextMenuShortcut({
|
|
|
2801
2426
|
function ContextMenuSub({
|
|
2802
2427
|
...props
|
|
2803
2428
|
}) {
|
|
2804
|
-
return /* @__PURE__ */
|
|
2429
|
+
return /* @__PURE__ */ jsx33(ContextMenuPrimitive.Sub, { "data-slot": "context-menu-sub", ...props });
|
|
2805
2430
|
}
|
|
2806
2431
|
function ContextMenuSubTrigger({
|
|
2807
2432
|
className,
|
|
@@ -2809,7 +2434,7 @@ function ContextMenuSubTrigger({
|
|
|
2809
2434
|
children,
|
|
2810
2435
|
...props
|
|
2811
2436
|
}) {
|
|
2812
|
-
return /* @__PURE__ */
|
|
2437
|
+
return /* @__PURE__ */ jsxs14(
|
|
2813
2438
|
ContextMenuPrimitive.SubTrigger,
|
|
2814
2439
|
{
|
|
2815
2440
|
"data-slot": "context-menu-sub-trigger",
|
|
@@ -2822,7 +2447,7 @@ function ContextMenuSubTrigger({
|
|
|
2822
2447
|
...props,
|
|
2823
2448
|
children: [
|
|
2824
2449
|
children,
|
|
2825
|
-
/* @__PURE__ */
|
|
2450
|
+
/* @__PURE__ */ jsx33(ChevronRightIcon5, { className: "ml-auto size-4" })
|
|
2826
2451
|
]
|
|
2827
2452
|
}
|
|
2828
2453
|
);
|
|
@@ -2831,7 +2456,7 @@ function ContextMenuSubContent({
|
|
|
2831
2456
|
className,
|
|
2832
2457
|
...props
|
|
2833
2458
|
}) {
|
|
2834
|
-
return /* @__PURE__ */
|
|
2459
|
+
return /* @__PURE__ */ jsx33(
|
|
2835
2460
|
ContextMenuPrimitive.SubContent,
|
|
2836
2461
|
{
|
|
2837
2462
|
"data-slot": "context-menu-sub-content",
|
|
@@ -2847,9 +2472,9 @@ function ContextMenuSubContent({
|
|
|
2847
2472
|
|
|
2848
2473
|
// src/ui/alert.tsx
|
|
2849
2474
|
import { cva as cva5 } from "class-variance-authority";
|
|
2850
|
-
import { jsx as
|
|
2475
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
2851
2476
|
var alertVariants = cva5(
|
|
2852
|
-
"relative grid w-full gap-1 rounded-xl border px-
|
|
2477
|
+
"relative grid w-full gap-1 rounded-xl border px-3.5 py-2.5 text-sm [&>svg]:absolute [&>svg]:top-3 [&>svg]:left-3.5 [&>svg]:size-4 [&>svg+div]:translate-y-[-3px] [&:has(svg)]:pl-10",
|
|
2853
2478
|
{
|
|
2854
2479
|
variants: {
|
|
2855
2480
|
variant: {
|
|
@@ -2867,7 +2492,7 @@ function Alert({
|
|
|
2867
2492
|
variant,
|
|
2868
2493
|
...props
|
|
2869
2494
|
}) {
|
|
2870
|
-
return /* @__PURE__ */
|
|
2495
|
+
return /* @__PURE__ */ jsx34(
|
|
2871
2496
|
"div",
|
|
2872
2497
|
{
|
|
2873
2498
|
"data-slot": "alert",
|
|
@@ -2878,7 +2503,7 @@ function Alert({
|
|
|
2878
2503
|
);
|
|
2879
2504
|
}
|
|
2880
2505
|
function AlertTitle({ className, ...props }) {
|
|
2881
|
-
return /* @__PURE__ */
|
|
2506
|
+
return /* @__PURE__ */ jsx34(
|
|
2882
2507
|
"div",
|
|
2883
2508
|
{
|
|
2884
2509
|
"data-slot": "alert-title",
|
|
@@ -2888,7 +2513,7 @@ function AlertTitle({ className, ...props }) {
|
|
|
2888
2513
|
);
|
|
2889
2514
|
}
|
|
2890
2515
|
function AlertDescription({ className, ...props }) {
|
|
2891
|
-
return /* @__PURE__ */
|
|
2516
|
+
return /* @__PURE__ */ jsx34(
|
|
2892
2517
|
"div",
|
|
2893
2518
|
{
|
|
2894
2519
|
"data-slot": "alert-description",
|
|
@@ -2899,15 +2524,15 @@ function AlertDescription({ className, ...props }) {
|
|
|
2899
2524
|
}
|
|
2900
2525
|
|
|
2901
2526
|
// src/ui/card.tsx
|
|
2902
|
-
import { jsx as
|
|
2527
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2903
2528
|
function Card({ className, ...props }) {
|
|
2904
|
-
return /* @__PURE__ */
|
|
2529
|
+
return /* @__PURE__ */ jsx35(
|
|
2905
2530
|
"div",
|
|
2906
2531
|
{
|
|
2907
2532
|
"data-slot": "card",
|
|
2908
2533
|
className: cn(
|
|
2909
2534
|
TIMBAL_V2_ELEVATED_SURFACE,
|
|
2910
|
-
"flex flex-col gap-
|
|
2535
|
+
"flex flex-col gap-3 rounded-xl py-3 text-card-foreground",
|
|
2911
2536
|
className
|
|
2912
2537
|
),
|
|
2913
2538
|
...props
|
|
@@ -2915,17 +2540,17 @@ function Card({ className, ...props }) {
|
|
|
2915
2540
|
);
|
|
2916
2541
|
}
|
|
2917
2542
|
function CardHeader({ className, ...props }) {
|
|
2918
|
-
return /* @__PURE__ */
|
|
2543
|
+
return /* @__PURE__ */ jsx35(
|
|
2919
2544
|
"div",
|
|
2920
2545
|
{
|
|
2921
2546
|
"data-slot": "card-header",
|
|
2922
|
-
className: cn("flex flex-col gap-1.5 px-
|
|
2547
|
+
className: cn("flex flex-col gap-1.5 px-3.5", className),
|
|
2923
2548
|
...props
|
|
2924
2549
|
}
|
|
2925
2550
|
);
|
|
2926
2551
|
}
|
|
2927
2552
|
function CardTitle({ className, ...props }) {
|
|
2928
|
-
return /* @__PURE__ */
|
|
2553
|
+
return /* @__PURE__ */ jsx35(
|
|
2929
2554
|
"div",
|
|
2930
2555
|
{
|
|
2931
2556
|
"data-slot": "card-title",
|
|
@@ -2935,7 +2560,7 @@ function CardTitle({ className, ...props }) {
|
|
|
2935
2560
|
);
|
|
2936
2561
|
}
|
|
2937
2562
|
function CardDescription({ className, ...props }) {
|
|
2938
|
-
return /* @__PURE__ */
|
|
2563
|
+
return /* @__PURE__ */ jsx35(
|
|
2939
2564
|
"div",
|
|
2940
2565
|
{
|
|
2941
2566
|
"data-slot": "card-description",
|
|
@@ -2945,23 +2570,23 @@ function CardDescription({ className, ...props }) {
|
|
|
2945
2570
|
);
|
|
2946
2571
|
}
|
|
2947
2572
|
function CardContent({ className, ...props }) {
|
|
2948
|
-
return /* @__PURE__ */
|
|
2573
|
+
return /* @__PURE__ */ jsx35("div", { "data-slot": "card-content", className: cn("px-3.5", className), ...props });
|
|
2949
2574
|
}
|
|
2950
2575
|
function CardFooter({ className, ...props }) {
|
|
2951
|
-
return /* @__PURE__ */
|
|
2576
|
+
return /* @__PURE__ */ jsx35(
|
|
2952
2577
|
"div",
|
|
2953
2578
|
{
|
|
2954
2579
|
"data-slot": "card-footer",
|
|
2955
|
-
className: cn("flex items-center px-
|
|
2580
|
+
className: cn("flex items-center px-3.5", className),
|
|
2956
2581
|
...props
|
|
2957
2582
|
}
|
|
2958
2583
|
);
|
|
2959
2584
|
}
|
|
2960
2585
|
|
|
2961
2586
|
// src/ui/table.tsx
|
|
2962
|
-
import { jsx as
|
|
2587
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
2963
2588
|
function Table({ className, ...props }) {
|
|
2964
|
-
return /* @__PURE__ */
|
|
2589
|
+
return /* @__PURE__ */ jsx36("div", { "data-slot": "table-container", className: "relative w-full overflow-x-auto", children: /* @__PURE__ */ jsx36(
|
|
2965
2590
|
"table",
|
|
2966
2591
|
{
|
|
2967
2592
|
"data-slot": "table",
|
|
@@ -2971,7 +2596,7 @@ function Table({ className, ...props }) {
|
|
|
2971
2596
|
) });
|
|
2972
2597
|
}
|
|
2973
2598
|
function TableHeader({ className, ...props }) {
|
|
2974
|
-
return /* @__PURE__ */
|
|
2599
|
+
return /* @__PURE__ */ jsx36(
|
|
2975
2600
|
"thead",
|
|
2976
2601
|
{
|
|
2977
2602
|
"data-slot": "table-header",
|
|
@@ -2981,7 +2606,7 @@ function TableHeader({ className, ...props }) {
|
|
|
2981
2606
|
);
|
|
2982
2607
|
}
|
|
2983
2608
|
function TableBody({ className, ...props }) {
|
|
2984
|
-
return /* @__PURE__ */
|
|
2609
|
+
return /* @__PURE__ */ jsx36(
|
|
2985
2610
|
"tbody",
|
|
2986
2611
|
{
|
|
2987
2612
|
"data-slot": "table-body",
|
|
@@ -2991,7 +2616,7 @@ function TableBody({ className, ...props }) {
|
|
|
2991
2616
|
);
|
|
2992
2617
|
}
|
|
2993
2618
|
function TableFooter({ className, ...props }) {
|
|
2994
|
-
return /* @__PURE__ */
|
|
2619
|
+
return /* @__PURE__ */ jsx36(
|
|
2995
2620
|
"tfoot",
|
|
2996
2621
|
{
|
|
2997
2622
|
"data-slot": "table-footer",
|
|
@@ -3004,7 +2629,7 @@ function TableFooter({ className, ...props }) {
|
|
|
3004
2629
|
);
|
|
3005
2630
|
}
|
|
3006
2631
|
function TableRow({ className, ...props }) {
|
|
3007
|
-
return /* @__PURE__ */
|
|
2632
|
+
return /* @__PURE__ */ jsx36(
|
|
3008
2633
|
"tr",
|
|
3009
2634
|
{
|
|
3010
2635
|
"data-slot": "table-row",
|
|
@@ -3017,12 +2642,12 @@ function TableRow({ className, ...props }) {
|
|
|
3017
2642
|
);
|
|
3018
2643
|
}
|
|
3019
2644
|
function TableHead({ className, ...props }) {
|
|
3020
|
-
return /* @__PURE__ */
|
|
2645
|
+
return /* @__PURE__ */ jsx36(
|
|
3021
2646
|
"th",
|
|
3022
2647
|
{
|
|
3023
2648
|
"data-slot": "table-head",
|
|
3024
2649
|
className: cn(
|
|
3025
|
-
"h-
|
|
2650
|
+
"h-8 px-2.5 text-left align-middle text-xs font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",
|
|
3026
2651
|
className
|
|
3027
2652
|
),
|
|
3028
2653
|
...props
|
|
@@ -3030,12 +2655,12 @@ function TableHead({ className, ...props }) {
|
|
|
3030
2655
|
);
|
|
3031
2656
|
}
|
|
3032
2657
|
function TableCell({ className, ...props }) {
|
|
3033
|
-
return /* @__PURE__ */
|
|
2658
|
+
return /* @__PURE__ */ jsx36(
|
|
3034
2659
|
"td",
|
|
3035
2660
|
{
|
|
3036
2661
|
"data-slot": "table-cell",
|
|
3037
2662
|
className: cn(
|
|
3038
|
-
"
|
|
2663
|
+
"py-2 px-2.5 align-middle text-sm [&:has([role=checkbox])]:pr-0",
|
|
3039
2664
|
className
|
|
3040
2665
|
),
|
|
3041
2666
|
...props
|
|
@@ -3043,7 +2668,7 @@ function TableCell({ className, ...props }) {
|
|
|
3043
2668
|
);
|
|
3044
2669
|
}
|
|
3045
2670
|
function TableCaption({ className, ...props }) {
|
|
3046
|
-
return /* @__PURE__ */
|
|
2671
|
+
return /* @__PURE__ */ jsx36(
|
|
3047
2672
|
"caption",
|
|
3048
2673
|
{
|
|
3049
2674
|
"data-slot": "table-caption",
|
|
@@ -3056,17 +2681,17 @@ function TableCaption({ className, ...props }) {
|
|
|
3056
2681
|
// src/ui/toast.tsx
|
|
3057
2682
|
import { Toast as ToastPrimitive } from "radix-ui";
|
|
3058
2683
|
import { XIcon as XIcon2 } from "lucide-react";
|
|
3059
|
-
import { jsx as
|
|
2684
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
3060
2685
|
function ToastProvider({
|
|
3061
2686
|
...props
|
|
3062
2687
|
}) {
|
|
3063
|
-
return /* @__PURE__ */
|
|
2688
|
+
return /* @__PURE__ */ jsx37(ToastPrimitive.Provider, { "data-slot": "toast-provider", ...props });
|
|
3064
2689
|
}
|
|
3065
2690
|
function ToastViewport({
|
|
3066
2691
|
className,
|
|
3067
2692
|
...props
|
|
3068
2693
|
}) {
|
|
3069
|
-
return /* @__PURE__ */
|
|
2694
|
+
return /* @__PURE__ */ jsx37(
|
|
3070
2695
|
ToastPrimitive.Viewport,
|
|
3071
2696
|
{
|
|
3072
2697
|
"data-slot": "toast-viewport",
|
|
@@ -3083,13 +2708,13 @@ function Toast({
|
|
|
3083
2708
|
variant = "default",
|
|
3084
2709
|
...props
|
|
3085
2710
|
}) {
|
|
3086
|
-
return /* @__PURE__ */
|
|
2711
|
+
return /* @__PURE__ */ jsx37(
|
|
3087
2712
|
ToastPrimitive.Root,
|
|
3088
2713
|
{
|
|
3089
2714
|
"data-slot": "toast",
|
|
3090
2715
|
className: cn(
|
|
3091
2716
|
TIMBAL_V2_ELEVATED_SURFACE,
|
|
3092
|
-
"group pointer-events-auto relative flex w-full items-center justify-between gap-3 overflow-hidden rounded-xl p-
|
|
2717
|
+
"group pointer-events-auto relative flex w-full items-center justify-between gap-3 overflow-hidden rounded-xl p-3 pr-7 shadow-card-elevated transition-all",
|
|
3093
2718
|
"data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full data-[state=closed]:slide-out-to-right-full",
|
|
3094
2719
|
variant === "destructive" && "border-destructive/45 bg-destructive/10 text-destructive",
|
|
3095
2720
|
className
|
|
@@ -3102,7 +2727,7 @@ function ToastAction({
|
|
|
3102
2727
|
className,
|
|
3103
2728
|
...props
|
|
3104
2729
|
}) {
|
|
3105
|
-
return /* @__PURE__ */
|
|
2730
|
+
return /* @__PURE__ */ jsx37(
|
|
3106
2731
|
ToastPrimitive.Action,
|
|
3107
2732
|
{
|
|
3108
2733
|
"data-slot": "toast-action",
|
|
@@ -3118,7 +2743,7 @@ function ToastClose({
|
|
|
3118
2743
|
className,
|
|
3119
2744
|
...props
|
|
3120
2745
|
}) {
|
|
3121
|
-
return /* @__PURE__ */
|
|
2746
|
+
return /* @__PURE__ */ jsx37(
|
|
3122
2747
|
ToastPrimitive.Close,
|
|
3123
2748
|
{
|
|
3124
2749
|
"data-slot": "toast-close",
|
|
@@ -3128,7 +2753,7 @@ function ToastClose({
|
|
|
3128
2753
|
),
|
|
3129
2754
|
"toast-close": "",
|
|
3130
2755
|
...props,
|
|
3131
|
-
children: /* @__PURE__ */
|
|
2756
|
+
children: /* @__PURE__ */ jsx37(XIcon2, { className: "size-4" })
|
|
3132
2757
|
}
|
|
3133
2758
|
);
|
|
3134
2759
|
}
|
|
@@ -3136,7 +2761,7 @@ function ToastTitle({
|
|
|
3136
2761
|
className,
|
|
3137
2762
|
...props
|
|
3138
2763
|
}) {
|
|
3139
|
-
return /* @__PURE__ */
|
|
2764
|
+
return /* @__PURE__ */ jsx37(
|
|
3140
2765
|
ToastPrimitive.Title,
|
|
3141
2766
|
{
|
|
3142
2767
|
"data-slot": "toast-title",
|
|
@@ -3149,7 +2774,7 @@ function ToastDescription({
|
|
|
3149
2774
|
className,
|
|
3150
2775
|
...props
|
|
3151
2776
|
}) {
|
|
3152
|
-
return /* @__PURE__ */
|
|
2777
|
+
return /* @__PURE__ */ jsx37(
|
|
3153
2778
|
ToastPrimitive.Description,
|
|
3154
2779
|
{
|
|
3155
2780
|
"data-slot": "toast-description",
|
|
@@ -3228,32 +2853,32 @@ function useToast() {
|
|
|
3228
2853
|
}
|
|
3229
2854
|
|
|
3230
2855
|
// src/ui/toaster.tsx
|
|
3231
|
-
import { jsx as
|
|
2856
|
+
import { jsx as jsx38, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
3232
2857
|
function Toaster() {
|
|
3233
2858
|
const { toasts, dismiss } = useToast();
|
|
3234
|
-
return /* @__PURE__ */
|
|
3235
|
-
toasts.map(({ id, title, description, variant }) => /* @__PURE__ */
|
|
2859
|
+
return /* @__PURE__ */ jsxs15(ToastProvider, { children: [
|
|
2860
|
+
toasts.map(({ id, title, description, variant }) => /* @__PURE__ */ jsxs15(
|
|
3236
2861
|
Toast,
|
|
3237
2862
|
{
|
|
3238
2863
|
variant,
|
|
3239
2864
|
onOpenChange: (open) => !open && dismiss(id),
|
|
3240
2865
|
children: [
|
|
3241
|
-
/* @__PURE__ */
|
|
3242
|
-
title ? /* @__PURE__ */
|
|
3243
|
-
description ? /* @__PURE__ */
|
|
2866
|
+
/* @__PURE__ */ jsxs15("div", { className: "grid gap-1", children: [
|
|
2867
|
+
title ? /* @__PURE__ */ jsx38(ToastTitle, { children: title }) : null,
|
|
2868
|
+
description ? /* @__PURE__ */ jsx38(ToastDescription, { children: description }) : null
|
|
3244
2869
|
] }),
|
|
3245
|
-
/* @__PURE__ */
|
|
2870
|
+
/* @__PURE__ */ jsx38(ToastClose, {})
|
|
3246
2871
|
]
|
|
3247
2872
|
},
|
|
3248
2873
|
id
|
|
3249
2874
|
)),
|
|
3250
|
-
/* @__PURE__ */
|
|
2875
|
+
/* @__PURE__ */ jsx38(ToastViewport, {})
|
|
3251
2876
|
] });
|
|
3252
2877
|
}
|
|
3253
2878
|
|
|
3254
2879
|
// src/ui/avatar-group.tsx
|
|
3255
2880
|
import * as React4 from "react";
|
|
3256
|
-
import { jsxs as
|
|
2881
|
+
import { jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3257
2882
|
var spacingClass = {
|
|
3258
2883
|
sm: "-space-x-2",
|
|
3259
2884
|
md: "-space-x-3"
|
|
@@ -3268,7 +2893,7 @@ function AvatarGroup({
|
|
|
3268
2893
|
const items = React4.Children.toArray(children);
|
|
3269
2894
|
const overflow = typeof max === "number" ? items.length - max : 0;
|
|
3270
2895
|
const visible = typeof max === "number" ? items.slice(0, max) : items;
|
|
3271
|
-
return /* @__PURE__ */
|
|
2896
|
+
return /* @__PURE__ */ jsxs16(
|
|
3272
2897
|
"div",
|
|
3273
2898
|
{
|
|
3274
2899
|
"data-slot": "avatar-group",
|
|
@@ -3281,7 +2906,7 @@ function AvatarGroup({
|
|
|
3281
2906
|
...props,
|
|
3282
2907
|
children: [
|
|
3283
2908
|
visible,
|
|
3284
|
-
overflow > 0 ? /* @__PURE__ */
|
|
2909
|
+
overflow > 0 ? /* @__PURE__ */ jsxs16(
|
|
3285
2910
|
"span",
|
|
3286
2911
|
{
|
|
3287
2912
|
"aria-label": `${overflow} more`,
|
|
@@ -3298,8 +2923,8 @@ function AvatarGroup({
|
|
|
3298
2923
|
}
|
|
3299
2924
|
|
|
3300
2925
|
// src/ui/stepper.tsx
|
|
3301
|
-
import { CheckIcon as
|
|
3302
|
-
import { jsx as
|
|
2926
|
+
import { CheckIcon as CheckIcon3 } from "lucide-react";
|
|
2927
|
+
import { jsx as jsx39, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3303
2928
|
function Stepper({
|
|
3304
2929
|
steps,
|
|
3305
2930
|
current,
|
|
@@ -3308,7 +2933,7 @@ function Stepper({
|
|
|
3308
2933
|
...props
|
|
3309
2934
|
}) {
|
|
3310
2935
|
const isVertical = orientation === "vertical";
|
|
3311
|
-
return /* @__PURE__ */
|
|
2936
|
+
return /* @__PURE__ */ jsx39(
|
|
3312
2937
|
"ol",
|
|
3313
2938
|
{
|
|
3314
2939
|
"data-slot": "stepper",
|
|
@@ -3323,7 +2948,7 @@ function Stepper({
|
|
|
3323
2948
|
const active = index === current;
|
|
3324
2949
|
const last = index === steps.length - 1;
|
|
3325
2950
|
const connectorFilled = index < current;
|
|
3326
|
-
return /* @__PURE__ */
|
|
2951
|
+
return /* @__PURE__ */ jsxs17(
|
|
3327
2952
|
"li",
|
|
3328
2953
|
{
|
|
3329
2954
|
"aria-current": active ? "step" : void 0,
|
|
@@ -3333,8 +2958,8 @@ function Stepper({
|
|
|
3333
2958
|
last && !isVertical && "flex-none"
|
|
3334
2959
|
),
|
|
3335
2960
|
children: [
|
|
3336
|
-
/* @__PURE__ */
|
|
3337
|
-
/* @__PURE__ */
|
|
2961
|
+
/* @__PURE__ */ jsxs17("div", { className: cn("flex items-center gap-2", isVertical && "flex-col"), children: [
|
|
2962
|
+
/* @__PURE__ */ jsx39(
|
|
3338
2963
|
"span",
|
|
3339
2964
|
{
|
|
3340
2965
|
className: cn(
|
|
@@ -3343,10 +2968,10 @@ function Stepper({
|
|
|
3343
2968
|
active && "border-primary text-primary",
|
|
3344
2969
|
!complete && !active && "border-border text-muted-foreground"
|
|
3345
2970
|
),
|
|
3346
|
-
children: complete ? /* @__PURE__ */
|
|
2971
|
+
children: complete ? /* @__PURE__ */ jsx39(CheckIcon3, { className: "size-3.5", "aria-hidden": true }) : index + 1
|
|
3347
2972
|
}
|
|
3348
2973
|
),
|
|
3349
|
-
!last ? /* @__PURE__ */
|
|
2974
|
+
!last ? /* @__PURE__ */ jsx39(
|
|
3350
2975
|
"span",
|
|
3351
2976
|
{
|
|
3352
2977
|
"aria-hidden": true,
|
|
@@ -3358,8 +2983,8 @@ function Stepper({
|
|
|
3358
2983
|
}
|
|
3359
2984
|
) : null
|
|
3360
2985
|
] }),
|
|
3361
|
-
/* @__PURE__ */
|
|
3362
|
-
/* @__PURE__ */
|
|
2986
|
+
/* @__PURE__ */ jsxs17("div", { className: cn("min-w-0", isVertical && "pb-4"), children: [
|
|
2987
|
+
/* @__PURE__ */ jsx39(
|
|
3363
2988
|
"p",
|
|
3364
2989
|
{
|
|
3365
2990
|
className: cn(
|
|
@@ -3369,7 +2994,7 @@ function Stepper({
|
|
|
3369
2994
|
children: step.label
|
|
3370
2995
|
}
|
|
3371
2996
|
),
|
|
3372
|
-
step.description ? /* @__PURE__ */
|
|
2997
|
+
step.description ? /* @__PURE__ */ jsx39("p", { className: "truncate text-xs text-muted-foreground", children: step.description }) : null
|
|
3373
2998
|
] })
|
|
3374
2999
|
]
|
|
3375
3000
|
},
|
|
@@ -3380,50 +3005,19 @@ function Stepper({
|
|
|
3380
3005
|
);
|
|
3381
3006
|
}
|
|
3382
3007
|
|
|
3383
|
-
// src/ui/timeline.tsx
|
|
3384
|
-
import { jsx as jsx43, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3385
|
-
var dotToneClass = {
|
|
3386
|
-
default: "border-border bg-card",
|
|
3387
|
-
primary: "border-primary bg-primary",
|
|
3388
|
-
success: "border-emerald-500 bg-emerald-500",
|
|
3389
|
-
warn: "border-amber-500 bg-amber-500",
|
|
3390
|
-
danger: "border-destructive bg-destructive"
|
|
3391
|
-
};
|
|
3392
|
-
function Timeline({ items, className, ...props }) {
|
|
3393
|
-
return /* @__PURE__ */ jsx43("ol", { "data-slot": "timeline", className: cn("flex flex-col", className), ...props, children: items.map((item, index) => {
|
|
3394
|
-
const last = index === items.length - 1;
|
|
3395
|
-
const tone = item.tone ?? "default";
|
|
3396
|
-
return /* @__PURE__ */ jsxs20("li", { className: "relative flex gap-3 pb-5 last:pb-0", children: [
|
|
3397
|
-
/* @__PURE__ */ jsxs20("div", { className: "flex flex-col items-center", children: [
|
|
3398
|
-
/* @__PURE__ */ jsx43(
|
|
3399
|
-
"span",
|
|
3400
|
-
{
|
|
3401
|
-
className: cn(
|
|
3402
|
-
"z-[1] mt-0.5 inline-flex size-3 shrink-0 items-center justify-center rounded-full border-2",
|
|
3403
|
-
dotToneClass[tone],
|
|
3404
|
-
item.icon && "size-6"
|
|
3405
|
-
),
|
|
3406
|
-
children: item.icon
|
|
3407
|
-
}
|
|
3408
|
-
),
|
|
3409
|
-
!last ? /* @__PURE__ */ jsx43("span", { "aria-hidden": true, className: "w-px flex-1 bg-border" }) : null
|
|
3410
|
-
] }),
|
|
3411
|
-
/* @__PURE__ */ jsxs20("div", { className: "min-w-0 flex-1 pb-0.5", children: [
|
|
3412
|
-
/* @__PURE__ */ jsxs20("div", { className: "flex items-start justify-between gap-2", children: [
|
|
3413
|
-
/* @__PURE__ */ jsx43("p", { className: "text-sm font-medium text-foreground", children: item.title }),
|
|
3414
|
-
item.meta ? /* @__PURE__ */ jsx43("span", { className: "shrink-0 text-xs text-muted-foreground tabular-nums", children: item.meta }) : null
|
|
3415
|
-
] }),
|
|
3416
|
-
item.description ? /* @__PURE__ */ jsx43("p", { className: "mt-0.5 text-sm text-muted-foreground", children: item.description }) : null
|
|
3417
|
-
] })
|
|
3418
|
-
] }, item.id);
|
|
3419
|
-
}) });
|
|
3420
|
-
}
|
|
3421
|
-
|
|
3422
3008
|
// src/ui/rating.tsx
|
|
3423
3009
|
import * as React5 from "react";
|
|
3424
3010
|
import { StarIcon } from "lucide-react";
|
|
3425
|
-
import { jsx as
|
|
3011
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
3426
3012
|
var sizeClass = { sm: "size-4", md: "size-5", lg: "size-6" };
|
|
3013
|
+
var ratingFillClass = {
|
|
3014
|
+
amber: "fill-amber-400 text-amber-400",
|
|
3015
|
+
primary: "fill-primary text-primary",
|
|
3016
|
+
success: "fill-emerald-500 text-emerald-500",
|
|
3017
|
+
warn: "fill-amber-500 text-amber-500",
|
|
3018
|
+
danger: "fill-destructive text-destructive"
|
|
3019
|
+
};
|
|
3020
|
+
var ratingEmptyClass = "fill-transparent text-muted-foreground/40";
|
|
3427
3021
|
function Rating({
|
|
3428
3022
|
value: valueProp,
|
|
3429
3023
|
defaultValue = 0,
|
|
@@ -3432,6 +3026,7 @@ function Rating({
|
|
|
3432
3026
|
readOnly = false,
|
|
3433
3027
|
disabled = false,
|
|
3434
3028
|
size = "md",
|
|
3029
|
+
tone = "amber",
|
|
3435
3030
|
label = "Rating",
|
|
3436
3031
|
className
|
|
3437
3032
|
}) {
|
|
@@ -3447,20 +3042,20 @@ function Rating({
|
|
|
3447
3042
|
onChange?.(next);
|
|
3448
3043
|
};
|
|
3449
3044
|
if (!interactive) {
|
|
3450
|
-
return /* @__PURE__ */
|
|
3045
|
+
return /* @__PURE__ */ jsx40(
|
|
3451
3046
|
"span",
|
|
3452
3047
|
{
|
|
3453
3048
|
"data-slot": "rating",
|
|
3454
3049
|
role: "img",
|
|
3455
3050
|
"aria-label": `${label}: ${value} of ${max}`,
|
|
3456
3051
|
className: cn("inline-flex items-center gap-0.5", disabled && "opacity-50", className),
|
|
3457
|
-
children: Array.from({ length: max }, (_, i) => /* @__PURE__ */
|
|
3052
|
+
children: Array.from({ length: max }, (_, i) => /* @__PURE__ */ jsx40(
|
|
3458
3053
|
StarIcon,
|
|
3459
3054
|
{
|
|
3460
3055
|
"aria-hidden": true,
|
|
3461
3056
|
className: cn(
|
|
3462
3057
|
sizeClass[size],
|
|
3463
|
-
i < value ?
|
|
3058
|
+
i < value ? ratingFillClass[tone] : ratingEmptyClass
|
|
3464
3059
|
)
|
|
3465
3060
|
},
|
|
3466
3061
|
i
|
|
@@ -3468,7 +3063,7 @@ function Rating({
|
|
|
3468
3063
|
}
|
|
3469
3064
|
);
|
|
3470
3065
|
}
|
|
3471
|
-
return /* @__PURE__ */
|
|
3066
|
+
return /* @__PURE__ */ jsx40(
|
|
3472
3067
|
"span",
|
|
3473
3068
|
{
|
|
3474
3069
|
"data-slot": "rating",
|
|
@@ -3479,7 +3074,7 @@ function Rating({
|
|
|
3479
3074
|
children: Array.from({ length: max }, (_, i) => {
|
|
3480
3075
|
const unit = i + 1;
|
|
3481
3076
|
const filled = unit <= shown;
|
|
3482
|
-
return /* @__PURE__ */
|
|
3077
|
+
return /* @__PURE__ */ jsx40(
|
|
3483
3078
|
"button",
|
|
3484
3079
|
{
|
|
3485
3080
|
type: "button",
|
|
@@ -3491,13 +3086,13 @@ function Rating({
|
|
|
3491
3086
|
onFocus: () => setHover(unit),
|
|
3492
3087
|
onBlur: () => setHover(null),
|
|
3493
3088
|
className: "rounded-sm p-0.5 transition-transform hover:scale-110 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-foreground/15",
|
|
3494
|
-
children: /* @__PURE__ */
|
|
3089
|
+
children: /* @__PURE__ */ jsx40(
|
|
3495
3090
|
StarIcon,
|
|
3496
3091
|
{
|
|
3497
3092
|
className: cn(
|
|
3498
3093
|
sizeClass[size],
|
|
3499
3094
|
"transition-colors",
|
|
3500
|
-
filled ?
|
|
3095
|
+
filled ? ratingFillClass[tone] : ratingEmptyClass
|
|
3501
3096
|
)
|
|
3502
3097
|
}
|
|
3503
3098
|
)
|
|
@@ -3512,7 +3107,7 @@ function Rating({
|
|
|
3512
3107
|
// src/ui/number-field.tsx
|
|
3513
3108
|
import * as React6 from "react";
|
|
3514
3109
|
import { MinusIcon as MinusIcon2, PlusIcon } from "lucide-react";
|
|
3515
|
-
import { jsx as
|
|
3110
|
+
import { jsx as jsx41, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3516
3111
|
var heightClass = { sm: "h-9", default: "h-10" };
|
|
3517
3112
|
var stepButtonClass = "inline-flex aspect-square h-full items-center justify-center text-muted-foreground transition-colors hover:bg-accent hover:text-foreground disabled:pointer-events-none disabled:opacity-40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-foreground/15";
|
|
3518
3113
|
function clamp(n, min, max) {
|
|
@@ -3541,7 +3136,7 @@ function NumberField({
|
|
|
3541
3136
|
if (!isControlled) setUncontrolled(clamped);
|
|
3542
3137
|
onValueChange?.(clamped);
|
|
3543
3138
|
};
|
|
3544
|
-
return /* @__PURE__ */
|
|
3139
|
+
return /* @__PURE__ */ jsxs18(
|
|
3545
3140
|
"div",
|
|
3546
3141
|
{
|
|
3547
3142
|
"data-slot": "number-field",
|
|
@@ -3553,7 +3148,7 @@ function NumberField({
|
|
|
3553
3148
|
className
|
|
3554
3149
|
),
|
|
3555
3150
|
children: [
|
|
3556
|
-
/* @__PURE__ */
|
|
3151
|
+
/* @__PURE__ */ jsx41(
|
|
3557
3152
|
"button",
|
|
3558
3153
|
{
|
|
3559
3154
|
type: "button",
|
|
@@ -3562,10 +3157,10 @@ function NumberField({
|
|
|
3562
3157
|
disabled: disabled || typeof min === "number" && value <= min,
|
|
3563
3158
|
onClick: () => commit(value - step),
|
|
3564
3159
|
className: cn(stepButtonClass, "border-r border-border"),
|
|
3565
|
-
children: /* @__PURE__ */
|
|
3160
|
+
children: /* @__PURE__ */ jsx41(MinusIcon2, { className: "size-4" })
|
|
3566
3161
|
}
|
|
3567
3162
|
),
|
|
3568
|
-
/* @__PURE__ */
|
|
3163
|
+
/* @__PURE__ */ jsx41(
|
|
3569
3164
|
"input",
|
|
3570
3165
|
{
|
|
3571
3166
|
type: "number",
|
|
@@ -3589,7 +3184,7 @@ function NumberField({
|
|
|
3589
3184
|
...inputProps
|
|
3590
3185
|
}
|
|
3591
3186
|
),
|
|
3592
|
-
/* @__PURE__ */
|
|
3187
|
+
/* @__PURE__ */ jsx41(
|
|
3593
3188
|
"button",
|
|
3594
3189
|
{
|
|
3595
3190
|
type: "button",
|
|
@@ -3598,7 +3193,7 @@ function NumberField({
|
|
|
3598
3193
|
disabled: disabled || typeof max === "number" && value >= max,
|
|
3599
3194
|
onClick: () => commit(value + step),
|
|
3600
3195
|
className: cn(stepButtonClass, "border-l border-border"),
|
|
3601
|
-
children: /* @__PURE__ */
|
|
3196
|
+
children: /* @__PURE__ */ jsx41(PlusIcon, { className: "size-4" })
|
|
3602
3197
|
}
|
|
3603
3198
|
)
|
|
3604
3199
|
]
|
|
@@ -3609,7 +3204,11 @@ function NumberField({
|
|
|
3609
3204
|
// src/ui/tag-input.tsx
|
|
3610
3205
|
import * as React7 from "react";
|
|
3611
3206
|
import { XIcon as XIcon3 } from "lucide-react";
|
|
3612
|
-
import { jsx as
|
|
3207
|
+
import { jsx as jsx42, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3208
|
+
var tagInputSizeClass = {
|
|
3209
|
+
sm: "min-h-8 gap-1 px-1.5 py-0.5",
|
|
3210
|
+
default: "min-h-9 gap-1 px-2 py-1"
|
|
3211
|
+
};
|
|
3613
3212
|
function TagInput({
|
|
3614
3213
|
value: valueProp,
|
|
3615
3214
|
defaultValue = [],
|
|
@@ -3619,6 +3218,7 @@ function TagInput({
|
|
|
3619
3218
|
dedupe = true,
|
|
3620
3219
|
max,
|
|
3621
3220
|
disabled,
|
|
3221
|
+
size = "default",
|
|
3622
3222
|
ariaLabel,
|
|
3623
3223
|
className,
|
|
3624
3224
|
inputClassName
|
|
@@ -3653,38 +3253,39 @@ function TagInput({
|
|
|
3653
3253
|
removeAt(tags.length - 1);
|
|
3654
3254
|
}
|
|
3655
3255
|
};
|
|
3656
|
-
return /* @__PURE__ */
|
|
3256
|
+
return /* @__PURE__ */ jsxs19(
|
|
3657
3257
|
"div",
|
|
3658
3258
|
{
|
|
3659
3259
|
"data-slot": "tag-input",
|
|
3660
3260
|
className: cn(
|
|
3661
3261
|
controlSurfaceClass,
|
|
3662
|
-
"flex
|
|
3262
|
+
"flex w-full flex-wrap items-center rounded-lg",
|
|
3263
|
+
tagInputSizeClass[size],
|
|
3663
3264
|
disabled && "pointer-events-none opacity-50",
|
|
3664
3265
|
className
|
|
3665
3266
|
),
|
|
3666
3267
|
children: [
|
|
3667
|
-
tags.map((tag, index) => /* @__PURE__ */
|
|
3268
|
+
tags.map((tag, index) => /* @__PURE__ */ jsxs19(
|
|
3668
3269
|
"span",
|
|
3669
3270
|
{
|
|
3670
3271
|
className: "inline-flex items-center gap-1 rounded-md bg-muted py-0.5 pl-2 pr-1 text-xs font-medium text-foreground",
|
|
3671
3272
|
children: [
|
|
3672
3273
|
tag,
|
|
3673
|
-
/* @__PURE__ */
|
|
3274
|
+
/* @__PURE__ */ jsx42(
|
|
3674
3275
|
"button",
|
|
3675
3276
|
{
|
|
3676
3277
|
type: "button",
|
|
3677
3278
|
"aria-label": `Remove ${tag}`,
|
|
3678
3279
|
onClick: () => removeAt(index),
|
|
3679
3280
|
className: "inline-flex size-4 items-center justify-center rounded-sm text-muted-foreground transition-colors hover:bg-foreground/10 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-foreground/20",
|
|
3680
|
-
children: /* @__PURE__ */
|
|
3281
|
+
children: /* @__PURE__ */ jsx42(XIcon3, { className: "size-3", "aria-hidden": true })
|
|
3681
3282
|
}
|
|
3682
3283
|
)
|
|
3683
3284
|
]
|
|
3684
3285
|
},
|
|
3685
3286
|
`${tag}-${index}`
|
|
3686
3287
|
)),
|
|
3687
|
-
/* @__PURE__ */
|
|
3288
|
+
/* @__PURE__ */ jsx42(
|
|
3688
3289
|
"input",
|
|
3689
3290
|
{
|
|
3690
3291
|
type: "text",
|
|
@@ -3706,141 +3307,55 @@ function TagInput({
|
|
|
3706
3307
|
);
|
|
3707
3308
|
}
|
|
3708
3309
|
|
|
3709
|
-
// src/ui/banner.tsx
|
|
3710
|
-
import { XIcon as XIcon4 } from "lucide-react";
|
|
3711
|
-
import { jsx as jsx47, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
3712
|
-
var bannerToneClass = {
|
|
3713
|
-
default: "border-border bg-muted/50 text-foreground",
|
|
3714
|
-
primary: "border-primary/20 bg-primary/10 text-foreground",
|
|
3715
|
-
success: "border-emerald-500/25 bg-emerald-500/10 text-foreground [&_[data-banner-icon]]:text-emerald-600 dark:[&_[data-banner-icon]]:text-emerald-400",
|
|
3716
|
-
warn: "border-amber-500/25 bg-amber-500/10 text-foreground [&_[data-banner-icon]]:text-amber-600 dark:[&_[data-banner-icon]]:text-amber-400",
|
|
3717
|
-
danger: "border-destructive/25 bg-destructive/10 text-foreground [&_[data-banner-icon]]:text-destructive"
|
|
3718
|
-
};
|
|
3719
|
-
function Banner({
|
|
3720
|
-
tone = "default",
|
|
3721
|
-
icon,
|
|
3722
|
-
title,
|
|
3723
|
-
actions,
|
|
3724
|
-
onDismiss,
|
|
3725
|
-
className,
|
|
3726
|
-
children,
|
|
3727
|
-
...props
|
|
3728
|
-
}) {
|
|
3729
|
-
return /* @__PURE__ */ jsxs23(
|
|
3730
|
-
"div",
|
|
3731
|
-
{
|
|
3732
|
-
"data-slot": "banner",
|
|
3733
|
-
role: "status",
|
|
3734
|
-
className: cn(
|
|
3735
|
-
"flex w-full items-start gap-3 rounded-lg border px-4 py-3 text-sm",
|
|
3736
|
-
bannerToneClass[tone],
|
|
3737
|
-
className
|
|
3738
|
-
),
|
|
3739
|
-
...props,
|
|
3740
|
-
children: [
|
|
3741
|
-
icon ? /* @__PURE__ */ jsx47("span", { "data-banner-icon": true, className: "mt-0.5 shrink-0 [&_svg]:size-4", children: icon }) : null,
|
|
3742
|
-
/* @__PURE__ */ jsxs23("div", { className: "min-w-0 flex-1", children: [
|
|
3743
|
-
title ? /* @__PURE__ */ jsx47("p", { className: "font-medium", children: title }) : null,
|
|
3744
|
-
children ? /* @__PURE__ */ jsx47("div", { className: cn("text-muted-foreground", title && "mt-0.5"), children }) : null
|
|
3745
|
-
] }),
|
|
3746
|
-
actions ? /* @__PURE__ */ jsx47("div", { className: "flex shrink-0 items-center gap-2", children: actions }) : null,
|
|
3747
|
-
onDismiss ? /* @__PURE__ */ jsx47(
|
|
3748
|
-
"button",
|
|
3749
|
-
{
|
|
3750
|
-
type: "button",
|
|
3751
|
-
"aria-label": "Dismiss",
|
|
3752
|
-
onClick: onDismiss,
|
|
3753
|
-
className: "-mr-1 -mt-0.5 inline-flex size-7 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-foreground/10 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-foreground/15",
|
|
3754
|
-
children: /* @__PURE__ */ jsx47(XIcon4, { className: "size-4", "aria-hidden": true })
|
|
3755
|
-
}
|
|
3756
|
-
) : null
|
|
3757
|
-
]
|
|
3758
|
-
}
|
|
3759
|
-
);
|
|
3760
|
-
}
|
|
3761
|
-
|
|
3762
|
-
// src/ui/copy-button.tsx
|
|
3763
|
-
import * as React8 from "react";
|
|
3764
|
-
import { CheckIcon as CheckIcon6, CopyIcon } from "lucide-react";
|
|
3765
|
-
import { jsx as jsx48, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3766
|
-
function CopyButton({
|
|
3767
|
-
value,
|
|
3768
|
-
timeout = 1500,
|
|
3769
|
-
onCopied,
|
|
3770
|
-
className,
|
|
3771
|
-
children,
|
|
3772
|
-
onClick,
|
|
3773
|
-
...props
|
|
3774
|
-
}) {
|
|
3775
|
-
const [copied, setCopied] = React8.useState(false);
|
|
3776
|
-
const timer = React8.useRef(void 0);
|
|
3777
|
-
React8.useEffect(() => () => clearTimeout(timer.current), []);
|
|
3778
|
-
const handleClick = async (event) => {
|
|
3779
|
-
onClick?.(event);
|
|
3780
|
-
if (event.defaultPrevented) return;
|
|
3781
|
-
try {
|
|
3782
|
-
await navigator.clipboard.writeText(value);
|
|
3783
|
-
setCopied(true);
|
|
3784
|
-
onCopied?.(value);
|
|
3785
|
-
clearTimeout(timer.current);
|
|
3786
|
-
timer.current = setTimeout(() => setCopied(false), timeout);
|
|
3787
|
-
} catch {
|
|
3788
|
-
}
|
|
3789
|
-
};
|
|
3790
|
-
const Icon = copied ? CheckIcon6 : CopyIcon;
|
|
3791
|
-
return /* @__PURE__ */ jsxs24(
|
|
3792
|
-
"button",
|
|
3793
|
-
{
|
|
3794
|
-
type: "button",
|
|
3795
|
-
"data-slot": "copy-button",
|
|
3796
|
-
"data-copied": copied || void 0,
|
|
3797
|
-
"aria-label": copied ? "Copied" : "Copy",
|
|
3798
|
-
onClick: handleClick,
|
|
3799
|
-
className: cn(
|
|
3800
|
-
"inline-flex items-center justify-center gap-1.5 rounded-md text-sm font-medium text-muted-foreground transition-colors",
|
|
3801
|
-
"hover:bg-accent hover:text-foreground data-[copied=true]:text-emerald-600 dark:data-[copied=true]:text-emerald-400",
|
|
3802
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-foreground/15",
|
|
3803
|
-
children ? "h-8 px-2" : "size-8",
|
|
3804
|
-
className
|
|
3805
|
-
),
|
|
3806
|
-
...props,
|
|
3807
|
-
children: [
|
|
3808
|
-
/* @__PURE__ */ jsx48(Icon, { className: "size-4 shrink-0", "aria-hidden": true }),
|
|
3809
|
-
children
|
|
3810
|
-
]
|
|
3811
|
-
}
|
|
3812
|
-
);
|
|
3813
|
-
}
|
|
3814
|
-
|
|
3815
3310
|
// src/ui/snippet.tsx
|
|
3816
|
-
import { jsx as
|
|
3311
|
+
import { jsx as jsx43, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3312
|
+
var snippetVariantClass = {
|
|
3313
|
+
muted: "border-border bg-muted/40",
|
|
3314
|
+
outline: "border-border bg-transparent",
|
|
3315
|
+
ghost: "border-transparent bg-foreground/[0.04]"
|
|
3316
|
+
};
|
|
3317
|
+
var snippetSizeClass = {
|
|
3318
|
+
sm: "gap-1.5 py-0.5 pl-2 pr-0.5 text-xs",
|
|
3319
|
+
default: "gap-2 py-1 pl-2.5 pr-1 text-sm"
|
|
3320
|
+
};
|
|
3817
3321
|
function Snippet({
|
|
3818
3322
|
children,
|
|
3819
3323
|
symbol,
|
|
3324
|
+
variant = "muted",
|
|
3325
|
+
size = "default",
|
|
3820
3326
|
hideCopy = false,
|
|
3821
3327
|
className,
|
|
3822
3328
|
...props
|
|
3823
3329
|
}) {
|
|
3824
|
-
return /* @__PURE__ */
|
|
3330
|
+
return /* @__PURE__ */ jsxs20(
|
|
3825
3331
|
"div",
|
|
3826
3332
|
{
|
|
3827
3333
|
"data-slot": "snippet",
|
|
3334
|
+
"data-variant": variant,
|
|
3828
3335
|
className: cn(
|
|
3829
|
-
"flex items-center
|
|
3336
|
+
"flex items-center rounded-lg border font-mono",
|
|
3337
|
+
snippetVariantClass[variant],
|
|
3338
|
+
snippetSizeClass[size],
|
|
3830
3339
|
className
|
|
3831
3340
|
),
|
|
3832
3341
|
...props,
|
|
3833
3342
|
children: [
|
|
3834
|
-
symbol ? /* @__PURE__ */
|
|
3835
|
-
/* @__PURE__ */
|
|
3836
|
-
hideCopy ? null : /* @__PURE__ */
|
|
3343
|
+
symbol ? /* @__PURE__ */ jsx43("span", { "aria-hidden": true, className: "select-none text-muted-foreground", children: symbol }) : null,
|
|
3344
|
+
/* @__PURE__ */ jsx43("code", { className: "min-w-0 flex-1 truncate text-foreground", children }),
|
|
3345
|
+
hideCopy ? null : /* @__PURE__ */ jsx43(
|
|
3346
|
+
CopyButton,
|
|
3347
|
+
{
|
|
3348
|
+
value: children,
|
|
3349
|
+
className: cn("shrink-0", size === "sm" ? "size-6" : "size-7")
|
|
3350
|
+
}
|
|
3351
|
+
)
|
|
3837
3352
|
]
|
|
3838
3353
|
}
|
|
3839
3354
|
);
|
|
3840
3355
|
}
|
|
3841
3356
|
|
|
3842
3357
|
// src/ui/circular-progress.tsx
|
|
3843
|
-
import { jsx as
|
|
3358
|
+
import { jsx as jsx44, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3844
3359
|
var toneClass = {
|
|
3845
3360
|
primary: "text-primary",
|
|
3846
3361
|
success: "text-emerald-500",
|
|
@@ -3863,7 +3378,7 @@ function CircularProgress({
|
|
|
3863
3378
|
const circumference = 2 * Math.PI * radius;
|
|
3864
3379
|
const pct = indeterminate ? 0.25 : Math.min(Math.max(value / max, 0), 1);
|
|
3865
3380
|
const dashOffset = circumference * (1 - pct);
|
|
3866
|
-
return /* @__PURE__ */
|
|
3381
|
+
return /* @__PURE__ */ jsxs21(
|
|
3867
3382
|
"div",
|
|
3868
3383
|
{
|
|
3869
3384
|
"data-slot": "circular-progress",
|
|
@@ -3875,7 +3390,7 @@ function CircularProgress({
|
|
|
3875
3390
|
style: { width: size, height: size },
|
|
3876
3391
|
...props,
|
|
3877
3392
|
children: [
|
|
3878
|
-
/* @__PURE__ */
|
|
3393
|
+
/* @__PURE__ */ jsxs21(
|
|
3879
3394
|
"svg",
|
|
3880
3395
|
{
|
|
3881
3396
|
width: size,
|
|
@@ -3883,7 +3398,7 @@ function CircularProgress({
|
|
|
3883
3398
|
viewBox: `0 0 ${size} ${size}`,
|
|
3884
3399
|
className: cn(toneClass[tone], indeterminate && "animate-spin"),
|
|
3885
3400
|
children: [
|
|
3886
|
-
/* @__PURE__ */
|
|
3401
|
+
/* @__PURE__ */ jsx44(
|
|
3887
3402
|
"circle",
|
|
3888
3403
|
{
|
|
3889
3404
|
cx: size / 2,
|
|
@@ -3894,7 +3409,7 @@ function CircularProgress({
|
|
|
3894
3409
|
className: "stroke-current opacity-15"
|
|
3895
3410
|
}
|
|
3896
3411
|
),
|
|
3897
|
-
/* @__PURE__ */
|
|
3412
|
+
/* @__PURE__ */ jsx44(
|
|
3898
3413
|
"circle",
|
|
3899
3414
|
{
|
|
3900
3415
|
cx: size / 2,
|
|
@@ -3912,41 +3427,13 @@ function CircularProgress({
|
|
|
3912
3427
|
]
|
|
3913
3428
|
}
|
|
3914
3429
|
),
|
|
3915
|
-
showLabel && !indeterminate ? /* @__PURE__ */
|
|
3430
|
+
showLabel && !indeterminate ? /* @__PURE__ */ jsx44("span", { className: "absolute inset-0 flex items-center justify-center text-[0.7rem] font-medium tabular-nums text-foreground", children: label ?? `${Math.round(pct * 100)}%` }) : null
|
|
3916
3431
|
]
|
|
3917
3432
|
}
|
|
3918
3433
|
);
|
|
3919
3434
|
}
|
|
3920
3435
|
|
|
3921
3436
|
export {
|
|
3922
|
-
DropdownMenu,
|
|
3923
|
-
DropdownMenuTrigger,
|
|
3924
|
-
DropdownMenuGroup,
|
|
3925
|
-
DropdownMenuContent,
|
|
3926
|
-
DropdownMenuItem,
|
|
3927
|
-
DropdownMenuCheckboxItem,
|
|
3928
|
-
DropdownMenuRadioGroup,
|
|
3929
|
-
DropdownMenuRadioItem,
|
|
3930
|
-
DropdownMenuLabel,
|
|
3931
|
-
DropdownMenuSeparator,
|
|
3932
|
-
DropdownMenuShortcut,
|
|
3933
|
-
DropdownMenuSub,
|
|
3934
|
-
DropdownMenuSubTrigger,
|
|
3935
|
-
DropdownMenuSubContent,
|
|
3936
|
-
Popover,
|
|
3937
|
-
PopoverTrigger,
|
|
3938
|
-
PopoverAnchor,
|
|
3939
|
-
PopoverContent,
|
|
3940
|
-
Select,
|
|
3941
|
-
SelectGroup,
|
|
3942
|
-
SelectValue,
|
|
3943
|
-
SelectTrigger,
|
|
3944
|
-
SelectContent,
|
|
3945
|
-
SelectLabel,
|
|
3946
|
-
SelectItem,
|
|
3947
|
-
SelectSeparator,
|
|
3948
|
-
SelectScrollUpButton,
|
|
3949
|
-
SelectScrollDownButton,
|
|
3950
3437
|
Input,
|
|
3951
3438
|
Textarea,
|
|
3952
3439
|
Label,
|
|
@@ -4129,12 +3616,9 @@ export {
|
|
|
4129
3616
|
Toaster,
|
|
4130
3617
|
AvatarGroup,
|
|
4131
3618
|
Stepper,
|
|
4132
|
-
Timeline,
|
|
4133
3619
|
Rating,
|
|
4134
3620
|
NumberField,
|
|
4135
3621
|
TagInput,
|
|
4136
|
-
Banner,
|
|
4137
|
-
CopyButton,
|
|
4138
3622
|
Snippet,
|
|
4139
3623
|
CircularProgress
|
|
4140
3624
|
};
|