@timbal-ai/timbal-react 1.5.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 +17 -1
- package/README.md +25 -0
- package/dist/app.cjs +855 -640
- package/dist/app.d.cts +4 -4
- package/dist/app.d.ts +4 -4
- package/dist/app.esm.js +6 -6
- package/dist/{chart-artifact-2OTDTRwM.d.ts → chart-artifact-C2pZQsaP.d.ts} +81 -29
- package/dist/{chart-artifact-CS3qyGIY.d.cts → chart-artifact-VAqgH-My.d.cts} +81 -29
- 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 +26 -26
- package/dist/chat.d.cts +3 -3
- package/dist/chat.d.ts +3 -3
- package/dist/chat.esm.js +3 -3
- package/dist/{chunk-TZI3ID3C.esm.js → chunk-24B4I4XC.esm.js} +3 -3
- package/dist/{chunk-SZDYIRMB.esm.js → chunk-6SQMTBPL.esm.js} +618 -530
- package/dist/{chunk-QIABF4KB.esm.js → chunk-ELEY66OH.esm.js} +2 -2
- package/dist/{chunk-WMKPT5BV.esm.js → chunk-HSL36SJ4.esm.js} +6 -6
- package/dist/chunk-JJOO4PR5.esm.js +391 -0
- package/dist/{chunk-AZL2WANO.esm.js → chunk-MBS7XHV2.esm.js} +28 -28
- package/dist/{chunk-5ECRZ5O7.esm.js → chunk-NO5AWNWT.esm.js} +224 -57
- package/dist/{chunk-ZNYAETFD.esm.js → chunk-R4RQT2XQ.esm.js} +2 -2
- package/dist/{chunk-JYDJRGDE.esm.js → chunk-TMP7RIA7.esm.js} +2 -2
- package/dist/{chunk-IGHBLJV3.esm.js → chunk-WQIQW7EM.esm.js} +3 -2
- package/dist/{chunk-B4XAC4G7.esm.js → chunk-YYEI6XME.esm.js} +361 -527
- package/dist/{circular-progress-CDsJwIPF.d.cts → circular-progress-B9nnwzCu.d.cts} +1 -1
- package/dist/{circular-progress-CDsJwIPF.d.ts → circular-progress-B9nnwzCu.d.ts} +1 -1
- package/dist/index.cjs +1327 -852
- package/dist/index.d.cts +9 -8
- package/dist/index.d.ts +9 -8
- package/dist/index.esm.js +40 -20
- package/dist/{kanban-U5xNe9py.d.cts → kanban-FFBeaZPS.d.cts} +4 -4
- package/dist/{kanban-U5xNe9py.d.ts → kanban-FFBeaZPS.d.ts} +4 -4
- package/dist/{layout-B8r6Jbat.d.ts → layout-CuKeSY74.d.ts} +1 -1
- package/dist/{layout-Cu7Ijn04.d.cts → layout-PzVwkJyL.d.cts} +1 -1
- package/dist/site.cjs +71 -0
- package/dist/site.d.cts +15 -1
- package/dist/site.d.ts +15 -1
- package/dist/site.esm.js +12 -311
- package/dist/studio.cjs +31 -31
- package/dist/studio.d.cts +2 -2
- package/dist/studio.d.ts +2 -2
- package/dist/studio.esm.js +7 -7
- package/dist/{timbal-v2-button-B7vPs7gg.d.ts → timbal-v2-button-DCAZNyUx.d.cts} +1 -1
- package/dist/{timbal-v2-button-B7vPs7gg.d.cts → timbal-v2-button-DCAZNyUx.d.ts} +1 -1
- package/dist/ui.cjs +77 -77
- package/dist/ui.d.cts +3 -3
- package/dist/ui.d.ts +3 -3
- package/dist/ui.esm.js +15 -15
- package/dist/{welcome-NXZlcihe.d.cts → welcome-B00oH5Io.d.cts} +1 -1
- package/dist/{welcome-DduQAC4K.d.ts → welcome-DU-4NTjZ.d.ts} +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
PopoverAnchor,
|
|
5
5
|
PopoverContent,
|
|
6
6
|
PopoverTrigger
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NO5AWNWT.esm.js";
|
|
8
8
|
import {
|
|
9
9
|
Button,
|
|
10
10
|
Dialog,
|
|
@@ -19,177 +19,21 @@ import {
|
|
|
19
19
|
controlClass,
|
|
20
20
|
controlSurfaceClass,
|
|
21
21
|
overlayItemClass,
|
|
22
|
-
overlayListPanelClass,
|
|
23
22
|
overlaySurfaceClass
|
|
24
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-MBS7XHV2.esm.js";
|
|
25
24
|
import {
|
|
26
25
|
cn
|
|
27
26
|
} from "./chunk-EDEKQYSU.esm.js";
|
|
28
27
|
|
|
29
|
-
// src/ui/select.tsx
|
|
30
|
-
import { Select as SelectPrimitive } from "radix-ui";
|
|
31
|
-
import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
|
|
32
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
33
|
-
function Select({
|
|
34
|
-
...props
|
|
35
|
-
}) {
|
|
36
|
-
return /* @__PURE__ */ jsx(SelectPrimitive.Root, { "data-slot": "select", ...props });
|
|
37
|
-
}
|
|
38
|
-
function SelectGroup({
|
|
39
|
-
...props
|
|
40
|
-
}) {
|
|
41
|
-
return /* @__PURE__ */ jsx(SelectPrimitive.Group, { "data-slot": "select-group", ...props });
|
|
42
|
-
}
|
|
43
|
-
function SelectValue({
|
|
44
|
-
...props
|
|
45
|
-
}) {
|
|
46
|
-
return /* @__PURE__ */ jsx(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
|
|
47
|
-
}
|
|
48
|
-
function SelectTrigger({
|
|
49
|
-
className,
|
|
50
|
-
size = "default",
|
|
51
|
-
children,
|
|
52
|
-
...props
|
|
53
|
-
}) {
|
|
54
|
-
return /* @__PURE__ */ jsxs(
|
|
55
|
-
SelectPrimitive.Trigger,
|
|
56
|
-
{
|
|
57
|
-
"data-slot": "select-trigger",
|
|
58
|
-
"data-size": size,
|
|
59
|
-
className: cn(
|
|
60
|
-
controlClass({ size }),
|
|
61
|
-
"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",
|
|
62
|
-
className
|
|
63
|
-
),
|
|
64
|
-
...props,
|
|
65
|
-
children: [
|
|
66
|
-
children,
|
|
67
|
-
/* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4 opacity-50" }) })
|
|
68
|
-
]
|
|
69
|
-
}
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
function SelectContent({
|
|
73
|
-
className,
|
|
74
|
-
children,
|
|
75
|
-
position = "popper",
|
|
76
|
-
...props
|
|
77
|
-
}) {
|
|
78
|
-
return /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
|
|
79
|
-
SelectPrimitive.Content,
|
|
80
|
-
{
|
|
81
|
-
"data-slot": "select-content",
|
|
82
|
-
className: cn(
|
|
83
|
-
overlayListPanelClass,
|
|
84
|
-
"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",
|
|
85
|
-
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",
|
|
86
|
-
className
|
|
87
|
-
),
|
|
88
|
-
position,
|
|
89
|
-
...props,
|
|
90
|
-
children: [
|
|
91
|
-
/* @__PURE__ */ jsx(SelectScrollUpButton, {}),
|
|
92
|
-
/* @__PURE__ */ jsx(
|
|
93
|
-
SelectPrimitive.Viewport,
|
|
94
|
-
{
|
|
95
|
-
className: cn(
|
|
96
|
-
"p-1",
|
|
97
|
-
position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
|
|
98
|
-
),
|
|
99
|
-
children
|
|
100
|
-
}
|
|
101
|
-
),
|
|
102
|
-
/* @__PURE__ */ jsx(SelectScrollDownButton, {})
|
|
103
|
-
]
|
|
104
|
-
}
|
|
105
|
-
) });
|
|
106
|
-
}
|
|
107
|
-
function SelectLabel({
|
|
108
|
-
className,
|
|
109
|
-
...props
|
|
110
|
-
}) {
|
|
111
|
-
return /* @__PURE__ */ jsx(
|
|
112
|
-
SelectPrimitive.Label,
|
|
113
|
-
{
|
|
114
|
-
"data-slot": "select-label",
|
|
115
|
-
className: cn("px-2 py-1.5 text-xs font-medium text-muted-foreground", className),
|
|
116
|
-
...props
|
|
117
|
-
}
|
|
118
|
-
);
|
|
119
|
-
}
|
|
120
|
-
function SelectItem({
|
|
121
|
-
className,
|
|
122
|
-
children,
|
|
123
|
-
...props
|
|
124
|
-
}) {
|
|
125
|
-
return /* @__PURE__ */ jsxs(
|
|
126
|
-
SelectPrimitive.Item,
|
|
127
|
-
{
|
|
128
|
-
"data-slot": "select-item",
|
|
129
|
-
className: cn(
|
|
130
|
-
overlayItemClass,
|
|
131
|
-
"w-full py-1.5 pr-8 pl-2 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
132
|
-
className
|
|
133
|
-
),
|
|
134
|
-
...props,
|
|
135
|
-
children: [
|
|
136
|
-
/* @__PURE__ */ jsx("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) }) }),
|
|
137
|
-
/* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children })
|
|
138
|
-
]
|
|
139
|
-
}
|
|
140
|
-
);
|
|
141
|
-
}
|
|
142
|
-
function SelectSeparator({
|
|
143
|
-
className,
|
|
144
|
-
...props
|
|
145
|
-
}) {
|
|
146
|
-
return /* @__PURE__ */ jsx(
|
|
147
|
-
SelectPrimitive.Separator,
|
|
148
|
-
{
|
|
149
|
-
"data-slot": "select-separator",
|
|
150
|
-
className: cn("-mx-1 my-1 h-px bg-border", className),
|
|
151
|
-
...props
|
|
152
|
-
}
|
|
153
|
-
);
|
|
154
|
-
}
|
|
155
|
-
function SelectScrollUpButton({
|
|
156
|
-
className,
|
|
157
|
-
...props
|
|
158
|
-
}) {
|
|
159
|
-
return /* @__PURE__ */ jsx(
|
|
160
|
-
SelectPrimitive.ScrollUpButton,
|
|
161
|
-
{
|
|
162
|
-
"data-slot": "select-scroll-up-button",
|
|
163
|
-
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
164
|
-
...props,
|
|
165
|
-
children: /* @__PURE__ */ jsx(ChevronUpIcon, { className: "size-4" })
|
|
166
|
-
}
|
|
167
|
-
);
|
|
168
|
-
}
|
|
169
|
-
function SelectScrollDownButton({
|
|
170
|
-
className,
|
|
171
|
-
...props
|
|
172
|
-
}) {
|
|
173
|
-
return /* @__PURE__ */ jsx(
|
|
174
|
-
SelectPrimitive.ScrollDownButton,
|
|
175
|
-
{
|
|
176
|
-
"data-slot": "select-scroll-down-button",
|
|
177
|
-
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
178
|
-
...props,
|
|
179
|
-
children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4" })
|
|
180
|
-
}
|
|
181
|
-
);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
28
|
// src/ui/input.tsx
|
|
185
|
-
import { jsx
|
|
29
|
+
import { jsx } from "react/jsx-runtime";
|
|
186
30
|
function Input({
|
|
187
31
|
className,
|
|
188
32
|
type,
|
|
189
33
|
controlSize,
|
|
190
34
|
...props
|
|
191
35
|
}) {
|
|
192
|
-
return /* @__PURE__ */
|
|
36
|
+
return /* @__PURE__ */ jsx(
|
|
193
37
|
"input",
|
|
194
38
|
{
|
|
195
39
|
type,
|
|
@@ -205,15 +49,15 @@ function Input({
|
|
|
205
49
|
}
|
|
206
50
|
|
|
207
51
|
// src/ui/textarea.tsx
|
|
208
|
-
import { jsx as
|
|
52
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
209
53
|
function Textarea({ className, ...props }) {
|
|
210
|
-
return /* @__PURE__ */
|
|
54
|
+
return /* @__PURE__ */ jsx2(
|
|
211
55
|
"textarea",
|
|
212
56
|
{
|
|
213
57
|
"data-slot": "textarea",
|
|
214
58
|
className: cn(
|
|
215
59
|
controlSurfaceClass,
|
|
216
|
-
"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",
|
|
217
61
|
className
|
|
218
62
|
),
|
|
219
63
|
...props
|
|
@@ -223,12 +67,12 @@ function Textarea({ className, ...props }) {
|
|
|
223
67
|
|
|
224
68
|
// src/ui/label.tsx
|
|
225
69
|
import { Label as LabelPrimitive } from "radix-ui";
|
|
226
|
-
import { jsx as
|
|
70
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
227
71
|
function Label({
|
|
228
72
|
className,
|
|
229
73
|
...props
|
|
230
74
|
}) {
|
|
231
|
-
return /* @__PURE__ */
|
|
75
|
+
return /* @__PURE__ */ jsx3(
|
|
232
76
|
LabelPrimitive.Root,
|
|
233
77
|
{
|
|
234
78
|
"data-slot": "label",
|
|
@@ -244,12 +88,12 @@ function Label({
|
|
|
244
88
|
|
|
245
89
|
// src/ui/switch.tsx
|
|
246
90
|
import { Switch as SwitchPrimitive } from "radix-ui";
|
|
247
|
-
import { jsx as
|
|
91
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
248
92
|
function Switch({
|
|
249
93
|
className,
|
|
250
94
|
...props
|
|
251
95
|
}) {
|
|
252
|
-
return /* @__PURE__ */
|
|
96
|
+
return /* @__PURE__ */ jsx4(
|
|
253
97
|
SwitchPrimitive.Root,
|
|
254
98
|
{
|
|
255
99
|
"data-slot": "switch",
|
|
@@ -261,7 +105,7 @@ function Switch({
|
|
|
261
105
|
className
|
|
262
106
|
),
|
|
263
107
|
...props,
|
|
264
|
-
children: /* @__PURE__ */
|
|
108
|
+
children: /* @__PURE__ */ jsx4(
|
|
265
109
|
SwitchPrimitive.Thumb,
|
|
266
110
|
{
|
|
267
111
|
"data-slot": "switch-thumb",
|
|
@@ -278,12 +122,12 @@ function Switch({
|
|
|
278
122
|
// src/ui/radio-group.tsx
|
|
279
123
|
import { RadioGroup as RadioGroupPrimitive } from "radix-ui";
|
|
280
124
|
import { CircleIcon } from "lucide-react";
|
|
281
|
-
import { jsx as
|
|
125
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
282
126
|
function RadioGroup({
|
|
283
127
|
className,
|
|
284
128
|
...props
|
|
285
129
|
}) {
|
|
286
|
-
return /* @__PURE__ */
|
|
130
|
+
return /* @__PURE__ */ jsx5(
|
|
287
131
|
RadioGroupPrimitive.Root,
|
|
288
132
|
{
|
|
289
133
|
"data-slot": "radio-group",
|
|
@@ -296,7 +140,7 @@ function RadioGroupItem({
|
|
|
296
140
|
className,
|
|
297
141
|
...props
|
|
298
142
|
}) {
|
|
299
|
-
return /* @__PURE__ */
|
|
143
|
+
return /* @__PURE__ */ jsx5(
|
|
300
144
|
RadioGroupPrimitive.Item,
|
|
301
145
|
{
|
|
302
146
|
"data-slot": "radio-group-item",
|
|
@@ -307,12 +151,12 @@ function RadioGroupItem({
|
|
|
307
151
|
className
|
|
308
152
|
),
|
|
309
153
|
...props,
|
|
310
|
-
children: /* @__PURE__ */
|
|
154
|
+
children: /* @__PURE__ */ jsx5(
|
|
311
155
|
RadioGroupPrimitive.Indicator,
|
|
312
156
|
{
|
|
313
157
|
"data-slot": "radio-group-indicator",
|
|
314
158
|
className: "flex items-center justify-center",
|
|
315
|
-
children: /* @__PURE__ */
|
|
159
|
+
children: /* @__PURE__ */ jsx5(CircleIcon, { className: "size-2 fill-foreground text-foreground" })
|
|
316
160
|
}
|
|
317
161
|
)
|
|
318
162
|
}
|
|
@@ -321,17 +165,17 @@ function RadioGroupItem({
|
|
|
321
165
|
|
|
322
166
|
// src/ui/form.tsx
|
|
323
167
|
import { Form as FormPrimitive } from "radix-ui";
|
|
324
|
-
import { jsx as
|
|
168
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
325
169
|
function Form({ ...props }) {
|
|
326
|
-
return /* @__PURE__ */
|
|
170
|
+
return /* @__PURE__ */ jsx6(FormPrimitive.Root, { "data-slot": "form", ...props });
|
|
327
171
|
}
|
|
328
172
|
function FormField({
|
|
329
173
|
...props
|
|
330
174
|
}) {
|
|
331
|
-
return /* @__PURE__ */
|
|
175
|
+
return /* @__PURE__ */ jsx6(FormPrimitive.Field, { "data-slot": "form-field", ...props });
|
|
332
176
|
}
|
|
333
177
|
function FormItem({ className, ...props }) {
|
|
334
|
-
return /* @__PURE__ */
|
|
178
|
+
return /* @__PURE__ */ jsx6(
|
|
335
179
|
"div",
|
|
336
180
|
{
|
|
337
181
|
"data-slot": "form-item",
|
|
@@ -344,18 +188,18 @@ function FormLabel({
|
|
|
344
188
|
className,
|
|
345
189
|
...props
|
|
346
190
|
}) {
|
|
347
|
-
return /* @__PURE__ */
|
|
191
|
+
return /* @__PURE__ */ jsx6(FormPrimitive.Label, { asChild: true, children: /* @__PURE__ */ jsx6(Label, { "data-slot": "form-label", className, ...props }) });
|
|
348
192
|
}
|
|
349
193
|
function FormControl({
|
|
350
194
|
...props
|
|
351
195
|
}) {
|
|
352
|
-
return /* @__PURE__ */
|
|
196
|
+
return /* @__PURE__ */ jsx6(FormPrimitive.Control, { "data-slot": "form-control", ...props });
|
|
353
197
|
}
|
|
354
198
|
function FormMessage({
|
|
355
199
|
className,
|
|
356
200
|
...props
|
|
357
201
|
}) {
|
|
358
|
-
return /* @__PURE__ */
|
|
202
|
+
return /* @__PURE__ */ jsx6(
|
|
359
203
|
FormPrimitive.Message,
|
|
360
204
|
{
|
|
361
205
|
"data-slot": "form-message",
|
|
@@ -368,7 +212,7 @@ function FormSubmit({
|
|
|
368
212
|
className,
|
|
369
213
|
...props
|
|
370
214
|
}) {
|
|
371
|
-
return /* @__PURE__ */
|
|
215
|
+
return /* @__PURE__ */ jsx6(
|
|
372
216
|
FormPrimitive.Submit,
|
|
373
217
|
{
|
|
374
218
|
"data-slot": "form-submit",
|
|
@@ -380,22 +224,22 @@ function FormSubmit({
|
|
|
380
224
|
|
|
381
225
|
// src/ui/aspect-ratio.tsx
|
|
382
226
|
import { AspectRatio as AspectRatioPrimitive } from "radix-ui";
|
|
383
|
-
import { jsx as
|
|
227
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
384
228
|
function AspectRatio({
|
|
385
229
|
...props
|
|
386
230
|
}) {
|
|
387
|
-
return /* @__PURE__ */
|
|
231
|
+
return /* @__PURE__ */ jsx7(AspectRatioPrimitive.Root, { "data-slot": "aspect-ratio", ...props });
|
|
388
232
|
}
|
|
389
233
|
|
|
390
234
|
// src/ui/breadcrumb.tsx
|
|
391
235
|
import { ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
|
|
392
236
|
import { Slot } from "radix-ui";
|
|
393
|
-
import { jsx as
|
|
237
|
+
import { jsx as jsx8, jsxs } from "react/jsx-runtime";
|
|
394
238
|
function Breadcrumb({ ...props }) {
|
|
395
|
-
return /* @__PURE__ */
|
|
239
|
+
return /* @__PURE__ */ jsx8("nav", { "data-slot": "breadcrumb", "aria-label": "Breadcrumb", ...props });
|
|
396
240
|
}
|
|
397
241
|
function BreadcrumbList({ className, ...props }) {
|
|
398
|
-
return /* @__PURE__ */
|
|
242
|
+
return /* @__PURE__ */ jsx8(
|
|
399
243
|
"ol",
|
|
400
244
|
{
|
|
401
245
|
"data-slot": "breadcrumb-list",
|
|
@@ -408,7 +252,7 @@ function BreadcrumbList({ className, ...props }) {
|
|
|
408
252
|
);
|
|
409
253
|
}
|
|
410
254
|
function BreadcrumbItem({ className, ...props }) {
|
|
411
|
-
return /* @__PURE__ */
|
|
255
|
+
return /* @__PURE__ */ jsx8(
|
|
412
256
|
"li",
|
|
413
257
|
{
|
|
414
258
|
"data-slot": "breadcrumb-item",
|
|
@@ -423,7 +267,7 @@ function BreadcrumbLink({
|
|
|
423
267
|
...props
|
|
424
268
|
}) {
|
|
425
269
|
const Comp = asChild ? Slot.Root : "a";
|
|
426
|
-
return /* @__PURE__ */
|
|
270
|
+
return /* @__PURE__ */ jsx8(
|
|
427
271
|
Comp,
|
|
428
272
|
{
|
|
429
273
|
"data-slot": "breadcrumb-link",
|
|
@@ -433,7 +277,7 @@ function BreadcrumbLink({
|
|
|
433
277
|
);
|
|
434
278
|
}
|
|
435
279
|
function BreadcrumbPage({ className, ...props }) {
|
|
436
|
-
return /* @__PURE__ */
|
|
280
|
+
return /* @__PURE__ */ jsx8(
|
|
437
281
|
"span",
|
|
438
282
|
{
|
|
439
283
|
"data-slot": "breadcrumb-page",
|
|
@@ -450,7 +294,7 @@ function BreadcrumbSeparator({
|
|
|
450
294
|
className,
|
|
451
295
|
...props
|
|
452
296
|
}) {
|
|
453
|
-
return /* @__PURE__ */
|
|
297
|
+
return /* @__PURE__ */ jsx8(
|
|
454
298
|
"li",
|
|
455
299
|
{
|
|
456
300
|
"data-slot": "breadcrumb-separator",
|
|
@@ -458,7 +302,7 @@ function BreadcrumbSeparator({
|
|
|
458
302
|
"aria-hidden": "true",
|
|
459
303
|
className: cn("[&>svg]:size-3.5", className),
|
|
460
304
|
...props,
|
|
461
|
-
children: children ?? /* @__PURE__ */
|
|
305
|
+
children: children ?? /* @__PURE__ */ jsx8(ChevronRightIcon, {})
|
|
462
306
|
}
|
|
463
307
|
);
|
|
464
308
|
}
|
|
@@ -466,17 +310,17 @@ function BreadcrumbEllipsis({
|
|
|
466
310
|
className,
|
|
467
311
|
...props
|
|
468
312
|
}) {
|
|
469
|
-
return /* @__PURE__ */
|
|
313
|
+
return /* @__PURE__ */ jsxs(
|
|
470
314
|
"span",
|
|
471
315
|
{
|
|
472
316
|
"data-slot": "breadcrumb-ellipsis",
|
|
473
317
|
role: "presentation",
|
|
474
318
|
"aria-hidden": "true",
|
|
475
|
-
className: cn("flex size-
|
|
319
|
+
className: cn("flex size-8 items-center justify-center", className),
|
|
476
320
|
...props,
|
|
477
321
|
children: [
|
|
478
|
-
/* @__PURE__ */
|
|
479
|
-
/* @__PURE__ */
|
|
322
|
+
/* @__PURE__ */ jsx8(MoreHorizontalIcon, { className: "size-4" }),
|
|
323
|
+
/* @__PURE__ */ jsx8("span", { className: "sr-only", children: "More" })
|
|
480
324
|
]
|
|
481
325
|
}
|
|
482
326
|
);
|
|
@@ -484,9 +328,9 @@ function BreadcrumbEllipsis({
|
|
|
484
328
|
|
|
485
329
|
// src/ui/pagination.tsx
|
|
486
330
|
import { ChevronLeftIcon, ChevronRightIcon as ChevronRightIcon2, MoreHorizontalIcon as MoreHorizontalIcon2 } from "lucide-react";
|
|
487
|
-
import { jsx as
|
|
331
|
+
import { jsx as jsx9, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
488
332
|
function Pagination({ className, ...props }) {
|
|
489
|
-
return /* @__PURE__ */
|
|
333
|
+
return /* @__PURE__ */ jsx9(
|
|
490
334
|
"nav",
|
|
491
335
|
{
|
|
492
336
|
"data-slot": "pagination",
|
|
@@ -498,7 +342,7 @@ function Pagination({ className, ...props }) {
|
|
|
498
342
|
);
|
|
499
343
|
}
|
|
500
344
|
function PaginationContent({ className, ...props }) {
|
|
501
|
-
return /* @__PURE__ */
|
|
345
|
+
return /* @__PURE__ */ jsx9(
|
|
502
346
|
"ul",
|
|
503
347
|
{
|
|
504
348
|
"data-slot": "pagination-content",
|
|
@@ -508,7 +352,7 @@ function PaginationContent({ className, ...props }) {
|
|
|
508
352
|
);
|
|
509
353
|
}
|
|
510
354
|
function PaginationItem({ ...props }) {
|
|
511
|
-
return /* @__PURE__ */
|
|
355
|
+
return /* @__PURE__ */ jsx9("li", { "data-slot": "pagination-item", ...props });
|
|
512
356
|
}
|
|
513
357
|
function PaginationLink({
|
|
514
358
|
className,
|
|
@@ -516,7 +360,7 @@ function PaginationLink({
|
|
|
516
360
|
size = "icon",
|
|
517
361
|
...props
|
|
518
362
|
}) {
|
|
519
|
-
return /* @__PURE__ */
|
|
363
|
+
return /* @__PURE__ */ jsx9(Button, { asChild: true, variant: isActive ? "outline" : "ghost", size, className, children: /* @__PURE__ */ jsx9(
|
|
520
364
|
"a",
|
|
521
365
|
{
|
|
522
366
|
"data-slot": "pagination-link",
|
|
@@ -529,7 +373,7 @@ function PaginationPrevious({
|
|
|
529
373
|
className,
|
|
530
374
|
...props
|
|
531
375
|
}) {
|
|
532
|
-
return /* @__PURE__ */
|
|
376
|
+
return /* @__PURE__ */ jsxs2(
|
|
533
377
|
PaginationLink,
|
|
534
378
|
{
|
|
535
379
|
"aria-label": "Go to previous page",
|
|
@@ -537,8 +381,8 @@ function PaginationPrevious({
|
|
|
537
381
|
className: cn("gap-1 px-2.5 sm:pl-2.5", className),
|
|
538
382
|
...props,
|
|
539
383
|
children: [
|
|
540
|
-
/* @__PURE__ */
|
|
541
|
-
/* @__PURE__ */
|
|
384
|
+
/* @__PURE__ */ jsx9(ChevronLeftIcon, { className: "size-4" }),
|
|
385
|
+
/* @__PURE__ */ jsx9("span", { className: "hidden sm:block", children: "Previous" })
|
|
542
386
|
]
|
|
543
387
|
}
|
|
544
388
|
);
|
|
@@ -547,7 +391,7 @@ function PaginationNext({
|
|
|
547
391
|
className,
|
|
548
392
|
...props
|
|
549
393
|
}) {
|
|
550
|
-
return /* @__PURE__ */
|
|
394
|
+
return /* @__PURE__ */ jsxs2(
|
|
551
395
|
PaginationLink,
|
|
552
396
|
{
|
|
553
397
|
"aria-label": "Go to next page",
|
|
@@ -555,8 +399,8 @@ function PaginationNext({
|
|
|
555
399
|
className: cn("gap-1 px-2.5 sm:pr-2.5", className),
|
|
556
400
|
...props,
|
|
557
401
|
children: [
|
|
558
|
-
/* @__PURE__ */
|
|
559
|
-
/* @__PURE__ */
|
|
402
|
+
/* @__PURE__ */ jsx9("span", { className: "hidden sm:block", children: "Next" }),
|
|
403
|
+
/* @__PURE__ */ jsx9(ChevronRightIcon2, { className: "size-4" })
|
|
560
404
|
]
|
|
561
405
|
}
|
|
562
406
|
);
|
|
@@ -565,7 +409,7 @@ function PaginationEllipsis({
|
|
|
565
409
|
className,
|
|
566
410
|
...props
|
|
567
411
|
}) {
|
|
568
|
-
return /* @__PURE__ */
|
|
412
|
+
return /* @__PURE__ */ jsxs2(
|
|
569
413
|
"span",
|
|
570
414
|
{
|
|
571
415
|
"data-slot": "pagination-ellipsis",
|
|
@@ -573,8 +417,8 @@ function PaginationEllipsis({
|
|
|
573
417
|
className: cn("flex size-9 items-center justify-center", className),
|
|
574
418
|
...props,
|
|
575
419
|
children: [
|
|
576
|
-
/* @__PURE__ */
|
|
577
|
-
/* @__PURE__ */
|
|
420
|
+
/* @__PURE__ */ jsx9(MoreHorizontalIcon2, { className: "size-4" }),
|
|
421
|
+
/* @__PURE__ */ jsx9("span", { className: "sr-only", children: "More pages" })
|
|
578
422
|
]
|
|
579
423
|
}
|
|
580
424
|
);
|
|
@@ -582,12 +426,12 @@ function PaginationEllipsis({
|
|
|
582
426
|
|
|
583
427
|
// src/ui/toolbar.tsx
|
|
584
428
|
import { Toolbar as ToolbarPrimitive } from "radix-ui";
|
|
585
|
-
import { jsx as
|
|
429
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
586
430
|
function Toolbar({
|
|
587
431
|
className,
|
|
588
432
|
...props
|
|
589
433
|
}) {
|
|
590
|
-
return /* @__PURE__ */
|
|
434
|
+
return /* @__PURE__ */ jsx10(
|
|
591
435
|
ToolbarPrimitive.Root,
|
|
592
436
|
{
|
|
593
437
|
"data-slot": "toolbar",
|
|
@@ -603,12 +447,12 @@ function ToolbarButton({
|
|
|
603
447
|
className,
|
|
604
448
|
...props
|
|
605
449
|
}) {
|
|
606
|
-
return /* @__PURE__ */
|
|
450
|
+
return /* @__PURE__ */ jsx10(
|
|
607
451
|
ToolbarPrimitive.Button,
|
|
608
452
|
{
|
|
609
453
|
"data-slot": "toolbar-button",
|
|
610
454
|
className: cn(
|
|
611
|
-
"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",
|
|
612
456
|
"hover:bg-muted focus-visible:ring-2 focus-visible:ring-foreground/10 disabled:pointer-events-none disabled:opacity-50",
|
|
613
457
|
className
|
|
614
458
|
),
|
|
@@ -620,7 +464,7 @@ function ToolbarSeparator({
|
|
|
620
464
|
className,
|
|
621
465
|
...props
|
|
622
466
|
}) {
|
|
623
|
-
return /* @__PURE__ */
|
|
467
|
+
return /* @__PURE__ */ jsx10(
|
|
624
468
|
ToolbarPrimitive.Separator,
|
|
625
469
|
{
|
|
626
470
|
"data-slot": "toolbar-separator",
|
|
@@ -633,7 +477,7 @@ function ToolbarToggleGroup({
|
|
|
633
477
|
className,
|
|
634
478
|
...props
|
|
635
479
|
}) {
|
|
636
|
-
return /* @__PURE__ */
|
|
480
|
+
return /* @__PURE__ */ jsx10(
|
|
637
481
|
ToolbarPrimitive.ToggleGroup,
|
|
638
482
|
{
|
|
639
483
|
"data-slot": "toolbar-toggle-group",
|
|
@@ -646,12 +490,12 @@ function ToolbarToggleItem({
|
|
|
646
490
|
className,
|
|
647
491
|
...props
|
|
648
492
|
}) {
|
|
649
|
-
return /* @__PURE__ */
|
|
493
|
+
return /* @__PURE__ */ jsx10(
|
|
650
494
|
ToolbarPrimitive.ToggleItem,
|
|
651
495
|
{
|
|
652
496
|
"data-slot": "toolbar-toggle-item",
|
|
653
497
|
className: cn(
|
|
654
|
-
"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",
|
|
655
499
|
"hover:bg-muted focus-visible:ring-2 focus-visible:ring-foreground/10",
|
|
656
500
|
"data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
|
|
657
501
|
className
|
|
@@ -664,12 +508,12 @@ function ToolbarLink({
|
|
|
664
508
|
className,
|
|
665
509
|
...props
|
|
666
510
|
}) {
|
|
667
|
-
return /* @__PURE__ */
|
|
511
|
+
return /* @__PURE__ */ jsx10(
|
|
668
512
|
ToolbarPrimitive.Link,
|
|
669
513
|
{
|
|
670
514
|
"data-slot": "toolbar-link",
|
|
671
515
|
className: cn(
|
|
672
|
-
"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",
|
|
673
517
|
className
|
|
674
518
|
),
|
|
675
519
|
...props
|
|
@@ -679,18 +523,18 @@ function ToolbarLink({
|
|
|
679
523
|
|
|
680
524
|
// src/ui/menubar.tsx
|
|
681
525
|
import { Menubar as MenubarPrimitive } from "radix-ui";
|
|
682
|
-
import { CheckIcon
|
|
683
|
-
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";
|
|
684
528
|
function Menubar({
|
|
685
529
|
className,
|
|
686
530
|
...props
|
|
687
531
|
}) {
|
|
688
|
-
return /* @__PURE__ */
|
|
532
|
+
return /* @__PURE__ */ jsx11(
|
|
689
533
|
MenubarPrimitive.Root,
|
|
690
534
|
{
|
|
691
535
|
"data-slot": "menubar",
|
|
692
536
|
className: cn(
|
|
693
|
-
"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",
|
|
694
538
|
className
|
|
695
539
|
),
|
|
696
540
|
...props
|
|
@@ -700,18 +544,18 @@ function Menubar({
|
|
|
700
544
|
function MenubarMenu({
|
|
701
545
|
...props
|
|
702
546
|
}) {
|
|
703
|
-
return /* @__PURE__ */
|
|
547
|
+
return /* @__PURE__ */ jsx11(MenubarPrimitive.Menu, { "data-slot": "menubar-menu", ...props });
|
|
704
548
|
}
|
|
705
549
|
function MenubarTrigger({
|
|
706
550
|
className,
|
|
707
551
|
...props
|
|
708
552
|
}) {
|
|
709
|
-
return /* @__PURE__ */
|
|
553
|
+
return /* @__PURE__ */ jsx11(
|
|
710
554
|
MenubarPrimitive.Trigger,
|
|
711
555
|
{
|
|
712
556
|
"data-slot": "menubar-trigger",
|
|
713
557
|
className: cn(
|
|
714
|
-
"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",
|
|
715
559
|
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
|
|
716
560
|
className
|
|
717
561
|
),
|
|
@@ -726,7 +570,7 @@ function MenubarContent({
|
|
|
726
570
|
sideOffset = 8,
|
|
727
571
|
...props
|
|
728
572
|
}) {
|
|
729
|
-
return /* @__PURE__ */
|
|
573
|
+
return /* @__PURE__ */ jsx11(MenubarPrimitive.Portal, { children: /* @__PURE__ */ jsx11(
|
|
730
574
|
MenubarPrimitive.Content,
|
|
731
575
|
{
|
|
732
576
|
"data-slot": "menubar-content",
|
|
@@ -748,7 +592,7 @@ function MenubarItem({
|
|
|
748
592
|
variant = "default",
|
|
749
593
|
...props
|
|
750
594
|
}) {
|
|
751
|
-
return /* @__PURE__ */
|
|
595
|
+
return /* @__PURE__ */ jsx11(
|
|
752
596
|
MenubarPrimitive.Item,
|
|
753
597
|
{
|
|
754
598
|
"data-slot": "menubar-item",
|
|
@@ -769,15 +613,15 @@ function MenubarCheckboxItem({
|
|
|
769
613
|
checked,
|
|
770
614
|
...props
|
|
771
615
|
}) {
|
|
772
|
-
return /* @__PURE__ */
|
|
616
|
+
return /* @__PURE__ */ jsxs3(
|
|
773
617
|
MenubarPrimitive.CheckboxItem,
|
|
774
618
|
{
|
|
775
619
|
"data-slot": "menubar-checkbox-item",
|
|
776
|
-
className: cn(overlayItemClass, "py-1
|
|
620
|
+
className: cn(overlayItemClass, "py-1 pr-2 pl-8", className),
|
|
777
621
|
checked,
|
|
778
622
|
...props,
|
|
779
623
|
children: [
|
|
780
|
-
/* @__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" }) }) }),
|
|
781
625
|
children
|
|
782
626
|
]
|
|
783
627
|
}
|
|
@@ -786,21 +630,21 @@ function MenubarCheckboxItem({
|
|
|
786
630
|
function MenubarRadioGroup({
|
|
787
631
|
...props
|
|
788
632
|
}) {
|
|
789
|
-
return /* @__PURE__ */
|
|
633
|
+
return /* @__PURE__ */ jsx11(MenubarPrimitive.RadioGroup, { "data-slot": "menubar-radio-group", ...props });
|
|
790
634
|
}
|
|
791
635
|
function MenubarRadioItem({
|
|
792
636
|
className,
|
|
793
637
|
children,
|
|
794
638
|
...props
|
|
795
639
|
}) {
|
|
796
|
-
return /* @__PURE__ */
|
|
640
|
+
return /* @__PURE__ */ jsxs3(
|
|
797
641
|
MenubarPrimitive.RadioItem,
|
|
798
642
|
{
|
|
799
643
|
"data-slot": "menubar-radio-item",
|
|
800
|
-
className: cn(overlayItemClass, "py-1
|
|
644
|
+
className: cn(overlayItemClass, "py-1 pr-2 pl-8", className),
|
|
801
645
|
...props,
|
|
802
646
|
children: [
|
|
803
|
-
/* @__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" }) }) }),
|
|
804
648
|
children
|
|
805
649
|
]
|
|
806
650
|
}
|
|
@@ -811,7 +655,7 @@ function MenubarLabel({
|
|
|
811
655
|
inset,
|
|
812
656
|
...props
|
|
813
657
|
}) {
|
|
814
|
-
return /* @__PURE__ */
|
|
658
|
+
return /* @__PURE__ */ jsx11(
|
|
815
659
|
MenubarPrimitive.Label,
|
|
816
660
|
{
|
|
817
661
|
"data-slot": "menubar-label",
|
|
@@ -828,7 +672,7 @@ function MenubarSeparator({
|
|
|
828
672
|
className,
|
|
829
673
|
...props
|
|
830
674
|
}) {
|
|
831
|
-
return /* @__PURE__ */
|
|
675
|
+
return /* @__PURE__ */ jsx11(
|
|
832
676
|
MenubarPrimitive.Separator,
|
|
833
677
|
{
|
|
834
678
|
"data-slot": "menubar-separator",
|
|
@@ -841,7 +685,7 @@ function MenubarShortcut({
|
|
|
841
685
|
className,
|
|
842
686
|
...props
|
|
843
687
|
}) {
|
|
844
|
-
return /* @__PURE__ */
|
|
688
|
+
return /* @__PURE__ */ jsx11(
|
|
845
689
|
"span",
|
|
846
690
|
{
|
|
847
691
|
"data-slot": "menubar-shortcut",
|
|
@@ -856,7 +700,7 @@ function MenubarShortcut({
|
|
|
856
700
|
function MenubarSub({
|
|
857
701
|
...props
|
|
858
702
|
}) {
|
|
859
|
-
return /* @__PURE__ */
|
|
703
|
+
return /* @__PURE__ */ jsx11(MenubarPrimitive.Sub, { "data-slot": "menubar-sub", ...props });
|
|
860
704
|
}
|
|
861
705
|
function MenubarSubTrigger({
|
|
862
706
|
className,
|
|
@@ -864,7 +708,7 @@ function MenubarSubTrigger({
|
|
|
864
708
|
children,
|
|
865
709
|
...props
|
|
866
710
|
}) {
|
|
867
|
-
return /* @__PURE__ */
|
|
711
|
+
return /* @__PURE__ */ jsxs3(
|
|
868
712
|
MenubarPrimitive.SubTrigger,
|
|
869
713
|
{
|
|
870
714
|
"data-slot": "menubar-sub-trigger",
|
|
@@ -877,7 +721,7 @@ function MenubarSubTrigger({
|
|
|
877
721
|
...props,
|
|
878
722
|
children: [
|
|
879
723
|
children,
|
|
880
|
-
/* @__PURE__ */
|
|
724
|
+
/* @__PURE__ */ jsx11(ChevronRightIcon3, { className: "ml-auto size-4" })
|
|
881
725
|
]
|
|
882
726
|
}
|
|
883
727
|
);
|
|
@@ -886,7 +730,7 @@ function MenubarSubContent({
|
|
|
886
730
|
className,
|
|
887
731
|
...props
|
|
888
732
|
}) {
|
|
889
|
-
return /* @__PURE__ */
|
|
733
|
+
return /* @__PURE__ */ jsx11(
|
|
890
734
|
MenubarPrimitive.SubContent,
|
|
891
735
|
{
|
|
892
736
|
"data-slot": "menubar-sub-content",
|
|
@@ -902,16 +746,16 @@ function MenubarSubContent({
|
|
|
902
746
|
|
|
903
747
|
// src/ui/navigation-menu.tsx
|
|
904
748
|
import { NavigationMenu as NavigationMenuPrimitive } from "radix-ui";
|
|
905
|
-
import { ChevronDownIcon
|
|
749
|
+
import { ChevronDownIcon } from "lucide-react";
|
|
906
750
|
import { cva } from "class-variance-authority";
|
|
907
|
-
import { jsx as
|
|
751
|
+
import { jsx as jsx12, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
908
752
|
function NavigationMenu({
|
|
909
753
|
className,
|
|
910
754
|
children,
|
|
911
755
|
viewport = true,
|
|
912
756
|
...props
|
|
913
757
|
}) {
|
|
914
|
-
return /* @__PURE__ */
|
|
758
|
+
return /* @__PURE__ */ jsxs4(
|
|
915
759
|
NavigationMenuPrimitive.Root,
|
|
916
760
|
{
|
|
917
761
|
"data-slot": "navigation-menu",
|
|
@@ -923,7 +767,7 @@ function NavigationMenu({
|
|
|
923
767
|
...props,
|
|
924
768
|
children: [
|
|
925
769
|
children,
|
|
926
|
-
viewport ? /* @__PURE__ */
|
|
770
|
+
viewport ? /* @__PURE__ */ jsx12(NavigationMenuViewport, {}) : null
|
|
927
771
|
]
|
|
928
772
|
}
|
|
929
773
|
);
|
|
@@ -932,7 +776,7 @@ function NavigationMenuList({
|
|
|
932
776
|
className,
|
|
933
777
|
...props
|
|
934
778
|
}) {
|
|
935
|
-
return /* @__PURE__ */
|
|
779
|
+
return /* @__PURE__ */ jsx12(
|
|
936
780
|
NavigationMenuPrimitive.List,
|
|
937
781
|
{
|
|
938
782
|
"data-slot": "navigation-menu-list",
|
|
@@ -947,7 +791,7 @@ function NavigationMenuList({
|
|
|
947
791
|
function NavigationMenuItem({
|
|
948
792
|
...props
|
|
949
793
|
}) {
|
|
950
|
-
return /* @__PURE__ */
|
|
794
|
+
return /* @__PURE__ */ jsx12(NavigationMenuPrimitive.Item, { "data-slot": "navigation-menu-item", ...props });
|
|
951
795
|
}
|
|
952
796
|
var navigationMenuTriggerStyle = cva(
|
|
953
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"
|
|
@@ -957,7 +801,7 @@ function NavigationMenuTrigger({
|
|
|
957
801
|
children,
|
|
958
802
|
...props
|
|
959
803
|
}) {
|
|
960
|
-
return /* @__PURE__ */
|
|
804
|
+
return /* @__PURE__ */ jsxs4(
|
|
961
805
|
NavigationMenuPrimitive.Trigger,
|
|
962
806
|
{
|
|
963
807
|
"data-slot": "navigation-menu-trigger",
|
|
@@ -966,8 +810,8 @@ function NavigationMenuTrigger({
|
|
|
966
810
|
children: [
|
|
967
811
|
children,
|
|
968
812
|
" ",
|
|
969
|
-
/* @__PURE__ */
|
|
970
|
-
|
|
813
|
+
/* @__PURE__ */ jsx12(
|
|
814
|
+
ChevronDownIcon,
|
|
971
815
|
{
|
|
972
816
|
className: "relative top-px ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
973
817
|
"aria-hidden": "true"
|
|
@@ -981,7 +825,7 @@ function NavigationMenuContent({
|
|
|
981
825
|
className,
|
|
982
826
|
...props
|
|
983
827
|
}) {
|
|
984
|
-
return /* @__PURE__ */
|
|
828
|
+
return /* @__PURE__ */ jsx12(
|
|
985
829
|
NavigationMenuPrimitive.Content,
|
|
986
830
|
{
|
|
987
831
|
"data-slot": "navigation-menu-content",
|
|
@@ -998,7 +842,7 @@ function NavigationMenuViewport({
|
|
|
998
842
|
className,
|
|
999
843
|
...props
|
|
1000
844
|
}) {
|
|
1001
|
-
return /* @__PURE__ */
|
|
845
|
+
return /* @__PURE__ */ jsx12("div", { className: cn("absolute top-full left-0 isolate z-[80] flex justify-center"), children: /* @__PURE__ */ jsx12(
|
|
1002
846
|
NavigationMenuPrimitive.Viewport,
|
|
1003
847
|
{
|
|
1004
848
|
"data-slot": "navigation-menu-viewport",
|
|
@@ -1015,7 +859,7 @@ function NavigationMenuLink({
|
|
|
1015
859
|
className,
|
|
1016
860
|
...props
|
|
1017
861
|
}) {
|
|
1018
|
-
return /* @__PURE__ */
|
|
862
|
+
return /* @__PURE__ */ jsx12(
|
|
1019
863
|
NavigationMenuPrimitive.Link,
|
|
1020
864
|
{
|
|
1021
865
|
"data-slot": "navigation-menu-link",
|
|
@@ -1031,7 +875,7 @@ function NavigationMenuIndicator({
|
|
|
1031
875
|
className,
|
|
1032
876
|
...props
|
|
1033
877
|
}) {
|
|
1034
|
-
return /* @__PURE__ */
|
|
878
|
+
return /* @__PURE__ */ jsx12(
|
|
1035
879
|
NavigationMenuPrimitive.Indicator,
|
|
1036
880
|
{
|
|
1037
881
|
"data-slot": "navigation-menu-indicator",
|
|
@@ -1040,7 +884,7 @@ function NavigationMenuIndicator({
|
|
|
1040
884
|
className
|
|
1041
885
|
),
|
|
1042
886
|
...props,
|
|
1043
|
-
children: /* @__PURE__ */
|
|
887
|
+
children: /* @__PURE__ */ jsx12("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
1044
888
|
}
|
|
1045
889
|
);
|
|
1046
890
|
}
|
|
@@ -1048,12 +892,12 @@ function NavigationMenuIndicator({
|
|
|
1048
892
|
// src/ui/command.tsx
|
|
1049
893
|
import { Command as CommandPrimitive } from "cmdk";
|
|
1050
894
|
import { SearchIcon } from "lucide-react";
|
|
1051
|
-
import { jsx as
|
|
895
|
+
import { jsx as jsx13, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1052
896
|
function Command({
|
|
1053
897
|
className,
|
|
1054
898
|
...props
|
|
1055
899
|
}) {
|
|
1056
|
-
return /* @__PURE__ */
|
|
900
|
+
return /* @__PURE__ */ jsx13(
|
|
1057
901
|
CommandPrimitive,
|
|
1058
902
|
{
|
|
1059
903
|
"data-slot": "command",
|
|
@@ -1073,17 +917,17 @@ function CommandDialog({
|
|
|
1073
917
|
showCloseButton = true,
|
|
1074
918
|
...props
|
|
1075
919
|
}) {
|
|
1076
|
-
return /* @__PURE__ */
|
|
1077
|
-
/* @__PURE__ */
|
|
1078
|
-
/* @__PURE__ */
|
|
1079
|
-
/* @__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 })
|
|
1080
924
|
] }),
|
|
1081
|
-
/* @__PURE__ */
|
|
925
|
+
/* @__PURE__ */ jsx13(
|
|
1082
926
|
DialogContent,
|
|
1083
927
|
{
|
|
1084
928
|
className: cn("overflow-hidden p-0", className),
|
|
1085
929
|
showCloseButton,
|
|
1086
|
-
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 })
|
|
1087
931
|
}
|
|
1088
932
|
)
|
|
1089
933
|
] });
|
|
@@ -1092,19 +936,19 @@ function CommandInput({
|
|
|
1092
936
|
className,
|
|
1093
937
|
...props
|
|
1094
938
|
}) {
|
|
1095
|
-
return /* @__PURE__ */
|
|
939
|
+
return /* @__PURE__ */ jsxs5(
|
|
1096
940
|
"div",
|
|
1097
941
|
{
|
|
1098
942
|
"data-slot": "command-input-wrapper",
|
|
1099
|
-
className: "flex h-
|
|
943
|
+
className: "flex h-9 items-center gap-2 border-b border-border px-2.5",
|
|
1100
944
|
children: [
|
|
1101
|
-
/* @__PURE__ */
|
|
1102
|
-
/* @__PURE__ */
|
|
945
|
+
/* @__PURE__ */ jsx13(SearchIcon, { className: "size-4 shrink-0 text-muted-foreground" }),
|
|
946
|
+
/* @__PURE__ */ jsx13(
|
|
1103
947
|
CommandPrimitive.Input,
|
|
1104
948
|
{
|
|
1105
949
|
"data-slot": "command-input",
|
|
1106
950
|
className: cn(
|
|
1107
|
-
"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",
|
|
1108
952
|
className
|
|
1109
953
|
),
|
|
1110
954
|
...props
|
|
@@ -1118,7 +962,7 @@ function CommandList({
|
|
|
1118
962
|
className,
|
|
1119
963
|
...props
|
|
1120
964
|
}) {
|
|
1121
|
-
return /* @__PURE__ */
|
|
965
|
+
return /* @__PURE__ */ jsx13(
|
|
1122
966
|
CommandPrimitive.List,
|
|
1123
967
|
{
|
|
1124
968
|
"data-slot": "command-list",
|
|
@@ -1130,11 +974,11 @@ function CommandList({
|
|
|
1130
974
|
function CommandEmpty({
|
|
1131
975
|
...props
|
|
1132
976
|
}) {
|
|
1133
|
-
return /* @__PURE__ */
|
|
977
|
+
return /* @__PURE__ */ jsx13(
|
|
1134
978
|
CommandPrimitive.Empty,
|
|
1135
979
|
{
|
|
1136
980
|
"data-slot": "command-empty",
|
|
1137
|
-
className: "py-
|
|
981
|
+
className: "py-4 text-center text-sm text-muted-foreground",
|
|
1138
982
|
...props
|
|
1139
983
|
}
|
|
1140
984
|
);
|
|
@@ -1143,12 +987,12 @@ function CommandGroup({
|
|
|
1143
987
|
className,
|
|
1144
988
|
...props
|
|
1145
989
|
}) {
|
|
1146
|
-
return /* @__PURE__ */
|
|
990
|
+
return /* @__PURE__ */ jsx13(
|
|
1147
991
|
CommandPrimitive.Group,
|
|
1148
992
|
{
|
|
1149
993
|
"data-slot": "command-group",
|
|
1150
994
|
className: cn(
|
|
1151
|
-
"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",
|
|
1152
996
|
className
|
|
1153
997
|
),
|
|
1154
998
|
...props
|
|
@@ -1159,7 +1003,7 @@ function CommandSeparator({
|
|
|
1159
1003
|
className,
|
|
1160
1004
|
...props
|
|
1161
1005
|
}) {
|
|
1162
|
-
return /* @__PURE__ */
|
|
1006
|
+
return /* @__PURE__ */ jsx13(
|
|
1163
1007
|
CommandPrimitive.Separator,
|
|
1164
1008
|
{
|
|
1165
1009
|
"data-slot": "command-separator",
|
|
@@ -1172,7 +1016,7 @@ function CommandItem({
|
|
|
1172
1016
|
className,
|
|
1173
1017
|
...props
|
|
1174
1018
|
}) {
|
|
1175
|
-
return /* @__PURE__ */
|
|
1019
|
+
return /* @__PURE__ */ jsx13(
|
|
1176
1020
|
CommandPrimitive.Item,
|
|
1177
1021
|
{
|
|
1178
1022
|
"data-slot": "command-item",
|
|
@@ -1189,7 +1033,7 @@ function CommandShortcut({
|
|
|
1189
1033
|
className,
|
|
1190
1034
|
...props
|
|
1191
1035
|
}) {
|
|
1192
|
-
return /* @__PURE__ */
|
|
1036
|
+
return /* @__PURE__ */ jsx13(
|
|
1193
1037
|
"span",
|
|
1194
1038
|
{
|
|
1195
1039
|
"data-slot": "command-shortcut",
|
|
@@ -1204,12 +1048,12 @@ function CommandShortcut({
|
|
|
1204
1048
|
|
|
1205
1049
|
// src/ui/calendar.tsx
|
|
1206
1050
|
import * as React from "react";
|
|
1207
|
-
import { ChevronDownIcon as
|
|
1051
|
+
import { ChevronDownIcon as ChevronDownIcon2, ChevronLeftIcon as ChevronLeftIcon2, ChevronRightIcon as ChevronRightIcon4 } from "lucide-react";
|
|
1208
1052
|
import {
|
|
1209
1053
|
DayPicker,
|
|
1210
1054
|
getDefaultClassNames
|
|
1211
1055
|
} from "react-day-picker";
|
|
1212
|
-
import { jsx as
|
|
1056
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
1213
1057
|
function Calendar({
|
|
1214
1058
|
className,
|
|
1215
1059
|
classNames,
|
|
@@ -1217,7 +1061,7 @@ function Calendar({
|
|
|
1217
1061
|
...props
|
|
1218
1062
|
}) {
|
|
1219
1063
|
const defaults = getDefaultClassNames();
|
|
1220
|
-
return /* @__PURE__ */
|
|
1064
|
+
return /* @__PURE__ */ jsx14(
|
|
1221
1065
|
DayPicker,
|
|
1222
1066
|
{
|
|
1223
1067
|
showOutsideDays,
|
|
@@ -1233,12 +1077,12 @@ function Calendar({
|
|
|
1233
1077
|
button_previous: cn(navButtonClass, defaults.button_previous),
|
|
1234
1078
|
button_next: cn(navButtonClass, defaults.button_next),
|
|
1235
1079
|
month_caption: cn(
|
|
1236
|
-
"flex h-
|
|
1080
|
+
"flex h-9 items-center justify-center",
|
|
1237
1081
|
defaults.month_caption
|
|
1238
1082
|
),
|
|
1239
1083
|
caption_label: cn("text-sm font-semibold", defaults.caption_label),
|
|
1240
1084
|
dropdowns: cn(
|
|
1241
|
-
"flex h-
|
|
1085
|
+
"flex h-9 items-center justify-center gap-1.5 text-sm font-semibold",
|
|
1242
1086
|
defaults.dropdowns
|
|
1243
1087
|
),
|
|
1244
1088
|
dropdown_root: cn(
|
|
@@ -1249,17 +1093,17 @@ function Calendar({
|
|
|
1249
1093
|
month_grid: cn("border-separate border-spacing-y-1", defaults.month_grid),
|
|
1250
1094
|
weekdays: cn(defaults.weekdays),
|
|
1251
1095
|
weekday: cn(
|
|
1252
|
-
"size-
|
|
1096
|
+
"size-9 pb-2 text-xs font-medium text-muted-foreground",
|
|
1253
1097
|
defaults.weekday
|
|
1254
1098
|
),
|
|
1255
1099
|
week: cn(defaults.week),
|
|
1256
|
-
week_number_header: cn("size-
|
|
1100
|
+
week_number_header: cn("size-9", defaults.week_number_header),
|
|
1257
1101
|
week_number: cn(
|
|
1258
1102
|
"text-xs text-muted-foreground",
|
|
1259
1103
|
defaults.week_number
|
|
1260
1104
|
),
|
|
1261
1105
|
day: cn(
|
|
1262
|
-
"relative size-
|
|
1106
|
+
"relative size-9 p-0 text-center text-sm focus-within:relative focus-within:z-10",
|
|
1263
1107
|
defaults.day
|
|
1264
1108
|
),
|
|
1265
1109
|
range_start: cn("rounded-l-md", defaults.range_start),
|
|
@@ -1279,8 +1123,8 @@ function Calendar({
|
|
|
1279
1123
|
},
|
|
1280
1124
|
components: {
|
|
1281
1125
|
Chevron: ({ orientation, className: chevronClass, ...chevronProps }) => {
|
|
1282
|
-
const Icon = orientation === "left" ? ChevronLeftIcon2 : orientation === "right" ? ChevronRightIcon4 :
|
|
1283
|
-
return /* @__PURE__ */
|
|
1126
|
+
const Icon = orientation === "left" ? ChevronLeftIcon2 : orientation === "right" ? ChevronRightIcon4 : ChevronDownIcon2;
|
|
1127
|
+
return /* @__PURE__ */ jsx14(Icon, { className: cn("size-4", chevronClass), ...chevronProps });
|
|
1284
1128
|
},
|
|
1285
1129
|
DayButton: CalendarDayButton
|
|
1286
1130
|
},
|
|
@@ -1305,7 +1149,7 @@ function CalendarDayButton({
|
|
|
1305
1149
|
if (modifiers.focused) ref.current?.focus();
|
|
1306
1150
|
}, [modifiers.focused]);
|
|
1307
1151
|
const isSingle = modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle;
|
|
1308
|
-
return /* @__PURE__ */
|
|
1152
|
+
return /* @__PURE__ */ jsx14(
|
|
1309
1153
|
"button",
|
|
1310
1154
|
{
|
|
1311
1155
|
ref,
|
|
@@ -1332,12 +1176,12 @@ function CalendarDayButton({
|
|
|
1332
1176
|
}
|
|
1333
1177
|
|
|
1334
1178
|
// src/ui/combobox.tsx
|
|
1335
|
-
import { ChevronDownIcon as
|
|
1336
|
-
import { jsx as
|
|
1179
|
+
import { ChevronDownIcon as ChevronDownIcon3 } from "lucide-react";
|
|
1180
|
+
import { jsx as jsx15, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1337
1181
|
function Combobox({
|
|
1338
1182
|
...props
|
|
1339
1183
|
}) {
|
|
1340
|
-
return /* @__PURE__ */
|
|
1184
|
+
return /* @__PURE__ */ jsx15(Popover, { "data-slot": "combobox", ...props });
|
|
1341
1185
|
}
|
|
1342
1186
|
function ComboboxTrigger({
|
|
1343
1187
|
className,
|
|
@@ -1345,7 +1189,7 @@ function ComboboxTrigger({
|
|
|
1345
1189
|
children,
|
|
1346
1190
|
...props
|
|
1347
1191
|
}) {
|
|
1348
|
-
return /* @__PURE__ */
|
|
1192
|
+
return /* @__PURE__ */ jsxs6(
|
|
1349
1193
|
PopoverTrigger,
|
|
1350
1194
|
{
|
|
1351
1195
|
"data-slot": "combobox-trigger",
|
|
@@ -1357,8 +1201,8 @@ function ComboboxTrigger({
|
|
|
1357
1201
|
),
|
|
1358
1202
|
...props,
|
|
1359
1203
|
children: [
|
|
1360
|
-
/* @__PURE__ */
|
|
1361
|
-
/* @__PURE__ */
|
|
1204
|
+
/* @__PURE__ */ jsx15("span", { className: "truncate", children }),
|
|
1205
|
+
/* @__PURE__ */ jsx15(ChevronDownIcon3, { className: "size-4 shrink-0 opacity-50" })
|
|
1362
1206
|
]
|
|
1363
1207
|
}
|
|
1364
1208
|
);
|
|
@@ -1366,14 +1210,14 @@ function ComboboxTrigger({
|
|
|
1366
1210
|
function ComboboxAnchor({
|
|
1367
1211
|
...props
|
|
1368
1212
|
}) {
|
|
1369
|
-
return /* @__PURE__ */
|
|
1213
|
+
return /* @__PURE__ */ jsx15(PopoverAnchor, { "data-slot": "combobox-anchor", ...props });
|
|
1370
1214
|
}
|
|
1371
1215
|
function ComboboxContent({
|
|
1372
1216
|
className,
|
|
1373
1217
|
align = "start",
|
|
1374
1218
|
...props
|
|
1375
1219
|
}) {
|
|
1376
|
-
return /* @__PURE__ */
|
|
1220
|
+
return /* @__PURE__ */ jsx15(
|
|
1377
1221
|
PopoverContent,
|
|
1378
1222
|
{
|
|
1379
1223
|
"data-slot": "combobox-content",
|
|
@@ -1391,7 +1235,7 @@ function ComboboxCommand({
|
|
|
1391
1235
|
className,
|
|
1392
1236
|
...props
|
|
1393
1237
|
}) {
|
|
1394
|
-
return /* @__PURE__ */
|
|
1238
|
+
return /* @__PURE__ */ jsx15(
|
|
1395
1239
|
Command,
|
|
1396
1240
|
{
|
|
1397
1241
|
"data-slot": "combobox-command",
|
|
@@ -1403,58 +1247,58 @@ function ComboboxCommand({
|
|
|
1403
1247
|
function ComboboxInput({
|
|
1404
1248
|
...props
|
|
1405
1249
|
}) {
|
|
1406
|
-
return /* @__PURE__ */
|
|
1250
|
+
return /* @__PURE__ */ jsx15(CommandInput, { "data-slot": "combobox-input", ...props });
|
|
1407
1251
|
}
|
|
1408
1252
|
function ComboboxList({
|
|
1409
1253
|
...props
|
|
1410
1254
|
}) {
|
|
1411
|
-
return /* @__PURE__ */
|
|
1255
|
+
return /* @__PURE__ */ jsx15(CommandList, { "data-slot": "combobox-list", ...props });
|
|
1412
1256
|
}
|
|
1413
1257
|
function ComboboxEmpty({
|
|
1414
1258
|
...props
|
|
1415
1259
|
}) {
|
|
1416
|
-
return /* @__PURE__ */
|
|
1260
|
+
return /* @__PURE__ */ jsx15(CommandEmpty, { "data-slot": "combobox-empty", ...props });
|
|
1417
1261
|
}
|
|
1418
1262
|
function ComboboxGroup({
|
|
1419
1263
|
...props
|
|
1420
1264
|
}) {
|
|
1421
|
-
return /* @__PURE__ */
|
|
1265
|
+
return /* @__PURE__ */ jsx15(CommandGroup, { "data-slot": "combobox-group", ...props });
|
|
1422
1266
|
}
|
|
1423
1267
|
function ComboboxItem({
|
|
1424
1268
|
...props
|
|
1425
1269
|
}) {
|
|
1426
|
-
return /* @__PURE__ */
|
|
1270
|
+
return /* @__PURE__ */ jsx15(CommandItem, { "data-slot": "combobox-item", ...props });
|
|
1427
1271
|
}
|
|
1428
1272
|
function ComboboxSeparator({
|
|
1429
1273
|
...props
|
|
1430
1274
|
}) {
|
|
1431
|
-
return /* @__PURE__ */
|
|
1275
|
+
return /* @__PURE__ */ jsx15(CommandSeparator, { "data-slot": "combobox-separator", ...props });
|
|
1432
1276
|
}
|
|
1433
1277
|
function ComboboxShortcut({
|
|
1434
1278
|
...props
|
|
1435
1279
|
}) {
|
|
1436
|
-
return /* @__PURE__ */
|
|
1280
|
+
return /* @__PURE__ */ jsx15(CommandShortcut, { "data-slot": "combobox-shortcut", ...props });
|
|
1437
1281
|
}
|
|
1438
1282
|
|
|
1439
1283
|
// src/ui/date-picker.tsx
|
|
1440
1284
|
import { CalendarIcon } from "lucide-react";
|
|
1441
|
-
import { jsx as
|
|
1285
|
+
import { jsx as jsx16, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1442
1286
|
function DatePicker({
|
|
1443
1287
|
...props
|
|
1444
1288
|
}) {
|
|
1445
|
-
return /* @__PURE__ */
|
|
1289
|
+
return /* @__PURE__ */ jsx16(Popover, { "data-slot": "date-picker", ...props });
|
|
1446
1290
|
}
|
|
1447
1291
|
function DatePickerTrigger({
|
|
1448
1292
|
...props
|
|
1449
1293
|
}) {
|
|
1450
|
-
return /* @__PURE__ */
|
|
1294
|
+
return /* @__PURE__ */ jsx16(PopoverTrigger, { "data-slot": "date-picker-trigger", ...props });
|
|
1451
1295
|
}
|
|
1452
1296
|
function DatePickerContent({
|
|
1453
1297
|
className,
|
|
1454
1298
|
align = "start",
|
|
1455
1299
|
...props
|
|
1456
1300
|
}) {
|
|
1457
|
-
return /* @__PURE__ */
|
|
1301
|
+
return /* @__PURE__ */ jsx16(
|
|
1458
1302
|
PopoverContent,
|
|
1459
1303
|
{
|
|
1460
1304
|
"data-slot": "date-picker-content",
|
|
@@ -1468,7 +1312,7 @@ function DatePickerCalendar({
|
|
|
1468
1312
|
className,
|
|
1469
1313
|
...props
|
|
1470
1314
|
}) {
|
|
1471
|
-
return /* @__PURE__ */
|
|
1315
|
+
return /* @__PURE__ */ jsx16(
|
|
1472
1316
|
Calendar,
|
|
1473
1317
|
{
|
|
1474
1318
|
"data-slot": "date-picker-calendar",
|
|
@@ -1490,7 +1334,7 @@ function DatePickerButton({
|
|
|
1490
1334
|
className,
|
|
1491
1335
|
...props
|
|
1492
1336
|
}) {
|
|
1493
|
-
return /* @__PURE__ */
|
|
1337
|
+
return /* @__PURE__ */ jsxs7(
|
|
1494
1338
|
"button",
|
|
1495
1339
|
{
|
|
1496
1340
|
type: "button",
|
|
@@ -1503,7 +1347,7 @@ function DatePickerButton({
|
|
|
1503
1347
|
),
|
|
1504
1348
|
...props,
|
|
1505
1349
|
children: [
|
|
1506
|
-
/* @__PURE__ */
|
|
1350
|
+
/* @__PURE__ */ jsx16(CalendarIcon, { className: "size-4 shrink-0 opacity-70" }),
|
|
1507
1351
|
date ? formatPickerDate(date) : placeholder
|
|
1508
1352
|
]
|
|
1509
1353
|
}
|
|
@@ -1513,14 +1357,14 @@ function DatePickerButton({
|
|
|
1513
1357
|
// src/ui/input-otp.tsx
|
|
1514
1358
|
import { MinusIcon } from "lucide-react";
|
|
1515
1359
|
import { unstable_OneTimePasswordField as OTPField } from "radix-ui";
|
|
1516
|
-
import { jsx as
|
|
1360
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1517
1361
|
function InputOTP({
|
|
1518
1362
|
className,
|
|
1519
1363
|
containerClassName,
|
|
1520
1364
|
children,
|
|
1521
1365
|
...props
|
|
1522
1366
|
}) {
|
|
1523
|
-
return /* @__PURE__ */
|
|
1367
|
+
return /* @__PURE__ */ jsx17(
|
|
1524
1368
|
OTPField.Root,
|
|
1525
1369
|
{
|
|
1526
1370
|
"data-slot": "input-otp",
|
|
@@ -1538,7 +1382,7 @@ function InputOTPGroup({
|
|
|
1538
1382
|
className,
|
|
1539
1383
|
...props
|
|
1540
1384
|
}) {
|
|
1541
|
-
return /* @__PURE__ */
|
|
1385
|
+
return /* @__PURE__ */ jsx17(
|
|
1542
1386
|
"div",
|
|
1543
1387
|
{
|
|
1544
1388
|
"data-slot": "input-otp-group",
|
|
@@ -1551,13 +1395,13 @@ function InputOTPSlot({
|
|
|
1551
1395
|
className,
|
|
1552
1396
|
...props
|
|
1553
1397
|
}) {
|
|
1554
|
-
return /* @__PURE__ */
|
|
1398
|
+
return /* @__PURE__ */ jsx17(
|
|
1555
1399
|
OTPField.Input,
|
|
1556
1400
|
{
|
|
1557
1401
|
"data-slot": "input-otp-slot",
|
|
1558
1402
|
className: cn(
|
|
1559
1403
|
controlSurfaceClass,
|
|
1560
|
-
"relative size-
|
|
1404
|
+
"relative size-8 rounded-none text-center text-sm tabular-nums",
|
|
1561
1405
|
"-ms-px first:ms-0 first:rounded-s-lg last:rounded-e-lg",
|
|
1562
1406
|
"focus-visible:z-10",
|
|
1563
1407
|
className
|
|
@@ -1569,13 +1413,13 @@ function InputOTPSlot({
|
|
|
1569
1413
|
function InputOTPHiddenInput({
|
|
1570
1414
|
...props
|
|
1571
1415
|
}) {
|
|
1572
|
-
return /* @__PURE__ */
|
|
1416
|
+
return /* @__PURE__ */ jsx17(OTPField.HiddenInput, { "data-slot": "input-otp-hidden-input", ...props });
|
|
1573
1417
|
}
|
|
1574
1418
|
function InputOTPSeparator({
|
|
1575
1419
|
className,
|
|
1576
1420
|
...props
|
|
1577
1421
|
}) {
|
|
1578
|
-
return /* @__PURE__ */
|
|
1422
|
+
return /* @__PURE__ */ jsx17(
|
|
1579
1423
|
"div",
|
|
1580
1424
|
{
|
|
1581
1425
|
role: "separator",
|
|
@@ -1583,15 +1427,15 @@ function InputOTPSeparator({
|
|
|
1583
1427
|
"aria-hidden": true,
|
|
1584
1428
|
className: cn("text-muted-foreground", className),
|
|
1585
1429
|
...props,
|
|
1586
|
-
children: /* @__PURE__ */
|
|
1430
|
+
children: /* @__PURE__ */ jsx17(MinusIcon, { className: "size-4" })
|
|
1587
1431
|
}
|
|
1588
1432
|
);
|
|
1589
1433
|
}
|
|
1590
1434
|
|
|
1591
1435
|
// src/ui/kbd.tsx
|
|
1592
|
-
import { jsx as
|
|
1436
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1593
1437
|
function Kbd({ className, ...props }) {
|
|
1594
|
-
return /* @__PURE__ */
|
|
1438
|
+
return /* @__PURE__ */ jsx18(
|
|
1595
1439
|
"kbd",
|
|
1596
1440
|
{
|
|
1597
1441
|
"data-slot": "kbd",
|
|
@@ -1604,7 +1448,7 @@ function Kbd({ className, ...props }) {
|
|
|
1604
1448
|
);
|
|
1605
1449
|
}
|
|
1606
1450
|
function KbdGroup({ className, ...props }) {
|
|
1607
|
-
return /* @__PURE__ */
|
|
1451
|
+
return /* @__PURE__ */ jsx18(
|
|
1608
1452
|
"div",
|
|
1609
1453
|
{
|
|
1610
1454
|
"data-slot": "kbd-group",
|
|
@@ -1615,12 +1459,12 @@ function KbdGroup({ className, ...props }) {
|
|
|
1615
1459
|
}
|
|
1616
1460
|
|
|
1617
1461
|
// src/ui/spinner.tsx
|
|
1618
|
-
import { jsx as
|
|
1462
|
+
import { jsx as jsx19, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1619
1463
|
function Spinner({
|
|
1620
1464
|
className,
|
|
1621
1465
|
...props
|
|
1622
1466
|
}) {
|
|
1623
|
-
return /* @__PURE__ */
|
|
1467
|
+
return /* @__PURE__ */ jsxs8(
|
|
1624
1468
|
"svg",
|
|
1625
1469
|
{
|
|
1626
1470
|
"data-slot": "spinner",
|
|
@@ -1631,7 +1475,7 @@ function Spinner({
|
|
|
1631
1475
|
className: cn("size-4 animate-spin text-muted-foreground", className),
|
|
1632
1476
|
...props,
|
|
1633
1477
|
children: [
|
|
1634
|
-
/* @__PURE__ */
|
|
1478
|
+
/* @__PURE__ */ jsx19(
|
|
1635
1479
|
"circle",
|
|
1636
1480
|
{
|
|
1637
1481
|
className: "opacity-25",
|
|
@@ -1642,7 +1486,7 @@ function Spinner({
|
|
|
1642
1486
|
strokeWidth: "3"
|
|
1643
1487
|
}
|
|
1644
1488
|
),
|
|
1645
|
-
/* @__PURE__ */
|
|
1489
|
+
/* @__PURE__ */ jsx19(
|
|
1646
1490
|
"path",
|
|
1647
1491
|
{
|
|
1648
1492
|
className: "opacity-75",
|
|
@@ -1656,12 +1500,12 @@ function Spinner({
|
|
|
1656
1500
|
}
|
|
1657
1501
|
|
|
1658
1502
|
// src/ui/input-group.tsx
|
|
1659
|
-
import { jsx as
|
|
1503
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
1660
1504
|
function InputGroup({
|
|
1661
1505
|
className,
|
|
1662
1506
|
...props
|
|
1663
1507
|
}) {
|
|
1664
|
-
return /* @__PURE__ */
|
|
1508
|
+
return /* @__PURE__ */ jsx20(
|
|
1665
1509
|
"div",
|
|
1666
1510
|
{
|
|
1667
1511
|
"data-slot": "input-group",
|
|
@@ -1680,7 +1524,7 @@ function InputGroupAddon({
|
|
|
1680
1524
|
align = "inline-start",
|
|
1681
1525
|
...props
|
|
1682
1526
|
}) {
|
|
1683
|
-
return /* @__PURE__ */
|
|
1527
|
+
return /* @__PURE__ */ jsx20(
|
|
1684
1528
|
"div",
|
|
1685
1529
|
{
|
|
1686
1530
|
"data-slot": "input-group-addon",
|
|
@@ -1699,7 +1543,7 @@ function InputGroupInput({
|
|
|
1699
1543
|
className,
|
|
1700
1544
|
...props
|
|
1701
1545
|
}) {
|
|
1702
|
-
return /* @__PURE__ */
|
|
1546
|
+
return /* @__PURE__ */ jsx20(
|
|
1703
1547
|
"input",
|
|
1704
1548
|
{
|
|
1705
1549
|
"data-slot": "input-group-control",
|
|
@@ -1716,7 +1560,7 @@ function InputGroupText({
|
|
|
1716
1560
|
className,
|
|
1717
1561
|
...props
|
|
1718
1562
|
}) {
|
|
1719
|
-
return /* @__PURE__ */
|
|
1563
|
+
return /* @__PURE__ */ jsx20(
|
|
1720
1564
|
"span",
|
|
1721
1565
|
{
|
|
1722
1566
|
"data-slot": "input-group-text",
|
|
@@ -1728,18 +1572,18 @@ function InputGroupText({
|
|
|
1728
1572
|
|
|
1729
1573
|
// src/ui/accordion.tsx
|
|
1730
1574
|
import { Accordion as AccordionPrimitive } from "radix-ui";
|
|
1731
|
-
import { ChevronDownIcon as
|
|
1732
|
-
import { jsx as
|
|
1575
|
+
import { ChevronDownIcon as ChevronDownIcon4 } from "lucide-react";
|
|
1576
|
+
import { jsx as jsx21, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1733
1577
|
function Accordion({
|
|
1734
1578
|
...props
|
|
1735
1579
|
}) {
|
|
1736
|
-
return /* @__PURE__ */
|
|
1580
|
+
return /* @__PURE__ */ jsx21(AccordionPrimitive.Root, { "data-slot": "accordion", ...props });
|
|
1737
1581
|
}
|
|
1738
1582
|
function AccordionItem({
|
|
1739
1583
|
className,
|
|
1740
1584
|
...props
|
|
1741
1585
|
}) {
|
|
1742
|
-
return /* @__PURE__ */
|
|
1586
|
+
return /* @__PURE__ */ jsx21(
|
|
1743
1587
|
AccordionPrimitive.Item,
|
|
1744
1588
|
{
|
|
1745
1589
|
"data-slot": "accordion-item",
|
|
@@ -1753,12 +1597,12 @@ function AccordionTrigger({
|
|
|
1753
1597
|
children,
|
|
1754
1598
|
...props
|
|
1755
1599
|
}) {
|
|
1756
|
-
return /* @__PURE__ */
|
|
1600
|
+
return /* @__PURE__ */ jsx21(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs9(
|
|
1757
1601
|
AccordionPrimitive.Trigger,
|
|
1758
1602
|
{
|
|
1759
1603
|
"data-slot": "accordion-trigger",
|
|
1760
1604
|
className: cn(
|
|
1761
|
-
"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",
|
|
1762
1606
|
"focus-visible:ring-2 focus-visible:ring-foreground/10 disabled:pointer-events-none disabled:opacity-50",
|
|
1763
1607
|
"hover:underline [&[data-state=open]>svg]:rotate-180",
|
|
1764
1608
|
className
|
|
@@ -1766,7 +1610,7 @@ function AccordionTrigger({
|
|
|
1766
1610
|
...props,
|
|
1767
1611
|
children: [
|
|
1768
1612
|
children,
|
|
1769
|
-
/* @__PURE__ */
|
|
1613
|
+
/* @__PURE__ */ jsx21(ChevronDownIcon4, { className: "pointer-events-none size-4 shrink-0 text-muted-foreground transition-transform duration-200" })
|
|
1770
1614
|
]
|
|
1771
1615
|
}
|
|
1772
1616
|
) });
|
|
@@ -1776,27 +1620,27 @@ function AccordionContent({
|
|
|
1776
1620
|
children,
|
|
1777
1621
|
...props
|
|
1778
1622
|
}) {
|
|
1779
|
-
return /* @__PURE__ */
|
|
1623
|
+
return /* @__PURE__ */ jsx21(
|
|
1780
1624
|
AccordionPrimitive.Content,
|
|
1781
1625
|
{
|
|
1782
1626
|
"data-slot": "accordion-content",
|
|
1783
1627
|
className: "overflow-hidden text-sm text-muted-foreground data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
1784
1628
|
...props,
|
|
1785
|
-
children: /* @__PURE__ */
|
|
1629
|
+
children: /* @__PURE__ */ jsx21("div", { className: cn("pt-0 pb-3", className), children })
|
|
1786
1630
|
}
|
|
1787
1631
|
);
|
|
1788
1632
|
}
|
|
1789
1633
|
|
|
1790
1634
|
// src/ui/separator.tsx
|
|
1791
1635
|
import { Separator as SeparatorPrimitive } from "radix-ui";
|
|
1792
|
-
import { jsx as
|
|
1636
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
1793
1637
|
function Separator({
|
|
1794
1638
|
className,
|
|
1795
1639
|
orientation = "horizontal",
|
|
1796
1640
|
decorative = true,
|
|
1797
1641
|
...props
|
|
1798
1642
|
}) {
|
|
1799
|
-
return /* @__PURE__ */
|
|
1643
|
+
return /* @__PURE__ */ jsx22(
|
|
1800
1644
|
SeparatorPrimitive.Root,
|
|
1801
1645
|
{
|
|
1802
1646
|
"data-slot": "separator",
|
|
@@ -1814,7 +1658,7 @@ function Separator({
|
|
|
1814
1658
|
// src/ui/slider.tsx
|
|
1815
1659
|
import * as React2 from "react";
|
|
1816
1660
|
import { Slider as SliderPrimitive } from "radix-ui";
|
|
1817
|
-
import { jsx as
|
|
1661
|
+
import { jsx as jsx23, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1818
1662
|
function Slider({
|
|
1819
1663
|
className,
|
|
1820
1664
|
defaultValue,
|
|
@@ -1828,7 +1672,7 @@ function Slider({
|
|
|
1828
1672
|
if (Array.isArray(defaultValue)) return defaultValue;
|
|
1829
1673
|
return [min];
|
|
1830
1674
|
}, [value, defaultValue, min]);
|
|
1831
|
-
return /* @__PURE__ */
|
|
1675
|
+
return /* @__PURE__ */ jsxs10(
|
|
1832
1676
|
SliderPrimitive.Root,
|
|
1833
1677
|
{
|
|
1834
1678
|
"data-slot": "slider",
|
|
@@ -1843,12 +1687,12 @@ function Slider({
|
|
|
1843
1687
|
),
|
|
1844
1688
|
...props,
|
|
1845
1689
|
children: [
|
|
1846
|
-
/* @__PURE__ */
|
|
1690
|
+
/* @__PURE__ */ jsx23(
|
|
1847
1691
|
SliderPrimitive.Track,
|
|
1848
1692
|
{
|
|
1849
1693
|
"data-slot": "slider-track",
|
|
1850
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",
|
|
1851
|
-
children: /* @__PURE__ */
|
|
1695
|
+
children: /* @__PURE__ */ jsx23(
|
|
1852
1696
|
SliderPrimitive.Range,
|
|
1853
1697
|
{
|
|
1854
1698
|
"data-slot": "slider-range",
|
|
@@ -1857,7 +1701,7 @@ function Slider({
|
|
|
1857
1701
|
)
|
|
1858
1702
|
}
|
|
1859
1703
|
),
|
|
1860
|
-
Array.from({ length: thumbs.length }, (_, i) => /* @__PURE__ */
|
|
1704
|
+
Array.from({ length: thumbs.length }, (_, i) => /* @__PURE__ */ jsx23(
|
|
1861
1705
|
SliderPrimitive.Thumb,
|
|
1862
1706
|
{
|
|
1863
1707
|
"data-slot": "slider-thumb",
|
|
@@ -1872,13 +1716,13 @@ function Slider({
|
|
|
1872
1716
|
|
|
1873
1717
|
// src/ui/progress.tsx
|
|
1874
1718
|
import { Progress as ProgressPrimitive } from "radix-ui";
|
|
1875
|
-
import { jsx as
|
|
1719
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
1876
1720
|
function Progress({
|
|
1877
1721
|
className,
|
|
1878
1722
|
value,
|
|
1879
1723
|
...props
|
|
1880
1724
|
}) {
|
|
1881
|
-
return /* @__PURE__ */
|
|
1725
|
+
return /* @__PURE__ */ jsx24(
|
|
1882
1726
|
ProgressPrimitive.Root,
|
|
1883
1727
|
{
|
|
1884
1728
|
"data-slot": "progress",
|
|
@@ -1887,7 +1731,7 @@ function Progress({
|
|
|
1887
1731
|
className
|
|
1888
1732
|
),
|
|
1889
1733
|
...props,
|
|
1890
|
-
children: /* @__PURE__ */
|
|
1734
|
+
children: /* @__PURE__ */ jsx24(
|
|
1891
1735
|
ProgressPrimitive.Indicator,
|
|
1892
1736
|
{
|
|
1893
1737
|
"data-slot": "progress-indicator",
|
|
@@ -1902,7 +1746,7 @@ function Progress({
|
|
|
1902
1746
|
// src/ui/badge.tsx
|
|
1903
1747
|
import { Slot as Slot2 } from "radix-ui";
|
|
1904
1748
|
import { cva as cva2 } from "class-variance-authority";
|
|
1905
|
-
import { jsx as
|
|
1749
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
1906
1750
|
var badgeVariants = cva2(
|
|
1907
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",
|
|
1908
1752
|
{
|
|
@@ -1926,7 +1770,7 @@ function Badge({
|
|
|
1926
1770
|
...props
|
|
1927
1771
|
}) {
|
|
1928
1772
|
const Comp = asChild ? Slot2.Root : "span";
|
|
1929
|
-
return /* @__PURE__ */
|
|
1773
|
+
return /* @__PURE__ */ jsx25(
|
|
1930
1774
|
Comp,
|
|
1931
1775
|
{
|
|
1932
1776
|
"data-slot": "badge",
|
|
@@ -1940,30 +1784,30 @@ function Badge({
|
|
|
1940
1784
|
import { XIcon } from "lucide-react";
|
|
1941
1785
|
import { Dialog as SheetPrimitive } from "radix-ui";
|
|
1942
1786
|
import { cva as cva3 } from "class-variance-authority";
|
|
1943
|
-
import { jsx as
|
|
1787
|
+
import { jsx as jsx26, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1944
1788
|
function Sheet({ ...props }) {
|
|
1945
|
-
return /* @__PURE__ */
|
|
1789
|
+
return /* @__PURE__ */ jsx26(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
|
|
1946
1790
|
}
|
|
1947
1791
|
function SheetTrigger({
|
|
1948
1792
|
...props
|
|
1949
1793
|
}) {
|
|
1950
|
-
return /* @__PURE__ */
|
|
1794
|
+
return /* @__PURE__ */ jsx26(SheetPrimitive.Trigger, { "data-slot": "sheet-trigger", ...props });
|
|
1951
1795
|
}
|
|
1952
1796
|
function SheetClose({
|
|
1953
1797
|
...props
|
|
1954
1798
|
}) {
|
|
1955
|
-
return /* @__PURE__ */
|
|
1799
|
+
return /* @__PURE__ */ jsx26(SheetPrimitive.Close, { "data-slot": "sheet-close", ...props });
|
|
1956
1800
|
}
|
|
1957
1801
|
function SheetPortal({
|
|
1958
1802
|
...props
|
|
1959
1803
|
}) {
|
|
1960
|
-
return /* @__PURE__ */
|
|
1804
|
+
return /* @__PURE__ */ jsx26(SheetPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
|
|
1961
1805
|
}
|
|
1962
1806
|
function SheetOverlay({
|
|
1963
1807
|
className,
|
|
1964
1808
|
...props
|
|
1965
1809
|
}) {
|
|
1966
|
-
return /* @__PURE__ */
|
|
1810
|
+
return /* @__PURE__ */ jsx26(
|
|
1967
1811
|
SheetPrimitive.Overlay,
|
|
1968
1812
|
{
|
|
1969
1813
|
"data-slot": "sheet-overlay",
|
|
@@ -1983,10 +1827,10 @@ var sheetContentVariants = cva3(
|
|
|
1983
1827
|
{
|
|
1984
1828
|
variants: {
|
|
1985
1829
|
side: {
|
|
1986
|
-
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-
|
|
1987
|
-
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-
|
|
1988
|
-
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-
|
|
1989
|
-
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-
|
|
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"
|
|
1990
1834
|
},
|
|
1991
1835
|
size: {
|
|
1992
1836
|
default: "",
|
|
@@ -2028,9 +1872,9 @@ function SheetContent({
|
|
|
2028
1872
|
showCloseButton = true,
|
|
2029
1873
|
...props
|
|
2030
1874
|
}) {
|
|
2031
|
-
return /* @__PURE__ */
|
|
2032
|
-
/* @__PURE__ */
|
|
2033
|
-
/* @__PURE__ */
|
|
1875
|
+
return /* @__PURE__ */ jsxs11(SheetPortal, { children: [
|
|
1876
|
+
/* @__PURE__ */ jsx26(SheetOverlay, {}),
|
|
1877
|
+
/* @__PURE__ */ jsxs11(
|
|
2034
1878
|
SheetPrimitive.Content,
|
|
2035
1879
|
{
|
|
2036
1880
|
"data-slot": "sheet-content",
|
|
@@ -2038,9 +1882,9 @@ function SheetContent({
|
|
|
2038
1882
|
...props,
|
|
2039
1883
|
children: [
|
|
2040
1884
|
children,
|
|
2041
|
-
showCloseButton ? /* @__PURE__ */
|
|
2042
|
-
/* @__PURE__ */
|
|
2043
|
-
/* @__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" })
|
|
2044
1888
|
] }) : null
|
|
2045
1889
|
]
|
|
2046
1890
|
}
|
|
@@ -2048,7 +1892,7 @@ function SheetContent({
|
|
|
2048
1892
|
] });
|
|
2049
1893
|
}
|
|
2050
1894
|
function SheetHeader({ className, ...props }) {
|
|
2051
|
-
return /* @__PURE__ */
|
|
1895
|
+
return /* @__PURE__ */ jsx26(
|
|
2052
1896
|
"div",
|
|
2053
1897
|
{
|
|
2054
1898
|
"data-slot": "sheet-header",
|
|
@@ -2058,7 +1902,7 @@ function SheetHeader({ className, ...props }) {
|
|
|
2058
1902
|
);
|
|
2059
1903
|
}
|
|
2060
1904
|
function SheetFooter({ className, ...props }) {
|
|
2061
|
-
return /* @__PURE__ */
|
|
1905
|
+
return /* @__PURE__ */ jsx26(
|
|
2062
1906
|
"div",
|
|
2063
1907
|
{
|
|
2064
1908
|
"data-slot": "sheet-footer",
|
|
@@ -2071,7 +1915,7 @@ function SheetTitle({
|
|
|
2071
1915
|
className,
|
|
2072
1916
|
...props
|
|
2073
1917
|
}) {
|
|
2074
|
-
return /* @__PURE__ */
|
|
1918
|
+
return /* @__PURE__ */ jsx26(
|
|
2075
1919
|
SheetPrimitive.Title,
|
|
2076
1920
|
{
|
|
2077
1921
|
"data-slot": "sheet-title",
|
|
@@ -2084,7 +1928,7 @@ function SheetDescription({
|
|
|
2084
1928
|
className,
|
|
2085
1929
|
...props
|
|
2086
1930
|
}) {
|
|
2087
|
-
return /* @__PURE__ */
|
|
1931
|
+
return /* @__PURE__ */ jsx26(
|
|
2088
1932
|
SheetPrimitive.Description,
|
|
2089
1933
|
{
|
|
2090
1934
|
"data-slot": "sheet-description",
|
|
@@ -2096,27 +1940,27 @@ function SheetDescription({
|
|
|
2096
1940
|
|
|
2097
1941
|
// src/ui/alert-dialog.tsx
|
|
2098
1942
|
import { AlertDialog as AlertDialogPrimitive } from "radix-ui";
|
|
2099
|
-
import { jsx as
|
|
1943
|
+
import { jsx as jsx27, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2100
1944
|
function AlertDialog({
|
|
2101
1945
|
...props
|
|
2102
1946
|
}) {
|
|
2103
|
-
return /* @__PURE__ */
|
|
1947
|
+
return /* @__PURE__ */ jsx27(AlertDialogPrimitive.Root, { "data-slot": "alert-dialog", ...props });
|
|
2104
1948
|
}
|
|
2105
1949
|
function AlertDialogTrigger({
|
|
2106
1950
|
...props
|
|
2107
1951
|
}) {
|
|
2108
|
-
return /* @__PURE__ */
|
|
1952
|
+
return /* @__PURE__ */ jsx27(AlertDialogPrimitive.Trigger, { "data-slot": "alert-dialog-trigger", ...props });
|
|
2109
1953
|
}
|
|
2110
1954
|
function AlertDialogPortal({
|
|
2111
1955
|
...props
|
|
2112
1956
|
}) {
|
|
2113
|
-
return /* @__PURE__ */
|
|
1957
|
+
return /* @__PURE__ */ jsx27(AlertDialogPrimitive.Portal, { "data-slot": "alert-dialog-portal", ...props });
|
|
2114
1958
|
}
|
|
2115
1959
|
function AlertDialogOverlay({
|
|
2116
1960
|
className,
|
|
2117
1961
|
...props
|
|
2118
1962
|
}) {
|
|
2119
|
-
return /* @__PURE__ */
|
|
1963
|
+
return /* @__PURE__ */ jsx27(
|
|
2120
1964
|
AlertDialogPrimitive.Overlay,
|
|
2121
1965
|
{
|
|
2122
1966
|
"data-slot": "alert-dialog-overlay",
|
|
@@ -2132,9 +1976,9 @@ function AlertDialogContent({
|
|
|
2132
1976
|
className,
|
|
2133
1977
|
...props
|
|
2134
1978
|
}) {
|
|
2135
|
-
return /* @__PURE__ */
|
|
2136
|
-
/* @__PURE__ */
|
|
2137
|
-
/* @__PURE__ */
|
|
1979
|
+
return /* @__PURE__ */ jsxs12(AlertDialogPortal, { children: [
|
|
1980
|
+
/* @__PURE__ */ jsx27(AlertDialogOverlay, {}),
|
|
1981
|
+
/* @__PURE__ */ jsx27(
|
|
2138
1982
|
AlertDialogPrimitive.Content,
|
|
2139
1983
|
{
|
|
2140
1984
|
"data-slot": "alert-dialog-content",
|
|
@@ -2149,7 +1993,7 @@ function AlertDialogContent({
|
|
|
2149
1993
|
] });
|
|
2150
1994
|
}
|
|
2151
1995
|
function AlertDialogHeader({ className, ...props }) {
|
|
2152
|
-
return /* @__PURE__ */
|
|
1996
|
+
return /* @__PURE__ */ jsx27(
|
|
2153
1997
|
"div",
|
|
2154
1998
|
{
|
|
2155
1999
|
"data-slot": "alert-dialog-header",
|
|
@@ -2159,7 +2003,7 @@ function AlertDialogHeader({ className, ...props }) {
|
|
|
2159
2003
|
);
|
|
2160
2004
|
}
|
|
2161
2005
|
function AlertDialogFooter({ className, ...props }) {
|
|
2162
|
-
return /* @__PURE__ */
|
|
2006
|
+
return /* @__PURE__ */ jsx27(
|
|
2163
2007
|
"div",
|
|
2164
2008
|
{
|
|
2165
2009
|
"data-slot": "alert-dialog-footer",
|
|
@@ -2175,7 +2019,7 @@ function AlertDialogTitle({
|
|
|
2175
2019
|
className,
|
|
2176
2020
|
...props
|
|
2177
2021
|
}) {
|
|
2178
|
-
return /* @__PURE__ */
|
|
2022
|
+
return /* @__PURE__ */ jsx27(
|
|
2179
2023
|
AlertDialogPrimitive.Title,
|
|
2180
2024
|
{
|
|
2181
2025
|
"data-slot": "alert-dialog-title",
|
|
@@ -2188,7 +2032,7 @@ function AlertDialogDescription({
|
|
|
2188
2032
|
className,
|
|
2189
2033
|
...props
|
|
2190
2034
|
}) {
|
|
2191
|
-
return /* @__PURE__ */
|
|
2035
|
+
return /* @__PURE__ */ jsx27(
|
|
2192
2036
|
AlertDialogPrimitive.Description,
|
|
2193
2037
|
{
|
|
2194
2038
|
"data-slot": "alert-dialog-description",
|
|
@@ -2201,7 +2045,7 @@ function AlertDialogAction({
|
|
|
2201
2045
|
className,
|
|
2202
2046
|
...props
|
|
2203
2047
|
}) {
|
|
2204
|
-
return /* @__PURE__ */
|
|
2048
|
+
return /* @__PURE__ */ jsx27(Button, { asChild: true, children: /* @__PURE__ */ jsx27(
|
|
2205
2049
|
AlertDialogPrimitive.Action,
|
|
2206
2050
|
{
|
|
2207
2051
|
"data-slot": "alert-dialog-action",
|
|
@@ -2214,7 +2058,7 @@ function AlertDialogCancel({
|
|
|
2214
2058
|
className,
|
|
2215
2059
|
...props
|
|
2216
2060
|
}) {
|
|
2217
|
-
return /* @__PURE__ */
|
|
2061
|
+
return /* @__PURE__ */ jsx27(Button, { asChild: true, variant: "outline", children: /* @__PURE__ */ jsx27(
|
|
2218
2062
|
AlertDialogPrimitive.Cancel,
|
|
2219
2063
|
{
|
|
2220
2064
|
"data-slot": "alert-dialog-cancel",
|
|
@@ -2226,22 +2070,22 @@ function AlertDialogCancel({
|
|
|
2226
2070
|
|
|
2227
2071
|
// src/ui/collapsible.tsx
|
|
2228
2072
|
import { Collapsible as CollapsiblePrimitive } from "radix-ui";
|
|
2229
|
-
import { jsx as
|
|
2073
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
2230
2074
|
function Collapsible({
|
|
2231
2075
|
...props
|
|
2232
2076
|
}) {
|
|
2233
|
-
return /* @__PURE__ */
|
|
2077
|
+
return /* @__PURE__ */ jsx28(CollapsiblePrimitive.Root, { "data-slot": "collapsible", ...props });
|
|
2234
2078
|
}
|
|
2235
2079
|
function CollapsibleTrigger({
|
|
2236
2080
|
...props
|
|
2237
2081
|
}) {
|
|
2238
|
-
return /* @__PURE__ */
|
|
2082
|
+
return /* @__PURE__ */ jsx28(CollapsiblePrimitive.Trigger, { "data-slot": "collapsible-trigger", ...props });
|
|
2239
2083
|
}
|
|
2240
2084
|
function CollapsibleContent({
|
|
2241
2085
|
className,
|
|
2242
2086
|
...props
|
|
2243
2087
|
}) {
|
|
2244
|
-
return /* @__PURE__ */
|
|
2088
|
+
return /* @__PURE__ */ jsx28(
|
|
2245
2089
|
CollapsiblePrimitive.Content,
|
|
2246
2090
|
{
|
|
2247
2091
|
"data-slot": "collapsible-content",
|
|
@@ -2256,20 +2100,20 @@ function CollapsibleContent({
|
|
|
2256
2100
|
|
|
2257
2101
|
// src/ui/scroll-area.tsx
|
|
2258
2102
|
import { ScrollArea as ScrollAreaPrimitive } from "radix-ui";
|
|
2259
|
-
import { jsx as
|
|
2103
|
+
import { jsx as jsx29, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2260
2104
|
function ScrollArea({
|
|
2261
2105
|
className,
|
|
2262
2106
|
children,
|
|
2263
2107
|
...props
|
|
2264
2108
|
}) {
|
|
2265
|
-
return /* @__PURE__ */
|
|
2109
|
+
return /* @__PURE__ */ jsxs13(
|
|
2266
2110
|
ScrollAreaPrimitive.Root,
|
|
2267
2111
|
{
|
|
2268
2112
|
"data-slot": "scroll-area",
|
|
2269
2113
|
className: cn("relative overflow-hidden", className),
|
|
2270
2114
|
...props,
|
|
2271
2115
|
children: [
|
|
2272
|
-
/* @__PURE__ */
|
|
2116
|
+
/* @__PURE__ */ jsx29(
|
|
2273
2117
|
ScrollAreaPrimitive.Viewport,
|
|
2274
2118
|
{
|
|
2275
2119
|
"data-slot": "scroll-area-viewport",
|
|
@@ -2277,8 +2121,8 @@ function ScrollArea({
|
|
|
2277
2121
|
children
|
|
2278
2122
|
}
|
|
2279
2123
|
),
|
|
2280
|
-
/* @__PURE__ */
|
|
2281
|
-
/* @__PURE__ */
|
|
2124
|
+
/* @__PURE__ */ jsx29(ScrollBar, {}),
|
|
2125
|
+
/* @__PURE__ */ jsx29(ScrollAreaPrimitive.Corner, {})
|
|
2282
2126
|
]
|
|
2283
2127
|
}
|
|
2284
2128
|
);
|
|
@@ -2288,7 +2132,7 @@ function ScrollBar({
|
|
|
2288
2132
|
orientation = "vertical",
|
|
2289
2133
|
...props
|
|
2290
2134
|
}) {
|
|
2291
|
-
return /* @__PURE__ */
|
|
2135
|
+
return /* @__PURE__ */ jsx29(
|
|
2292
2136
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
2293
2137
|
{
|
|
2294
2138
|
"data-slot": "scroll-area-scrollbar",
|
|
@@ -2300,7 +2144,7 @@ function ScrollBar({
|
|
|
2300
2144
|
className
|
|
2301
2145
|
),
|
|
2302
2146
|
...props,
|
|
2303
|
-
children: /* @__PURE__ */
|
|
2147
|
+
children: /* @__PURE__ */ jsx29(
|
|
2304
2148
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
|
2305
2149
|
{
|
|
2306
2150
|
"data-slot": "scroll-area-thumb",
|
|
@@ -2314,7 +2158,7 @@ function ScrollBar({
|
|
|
2314
2158
|
// src/ui/toggle.tsx
|
|
2315
2159
|
import { Toggle as TogglePrimitive } from "radix-ui";
|
|
2316
2160
|
import { cva as cva4 } from "class-variance-authority";
|
|
2317
|
-
import { jsx as
|
|
2161
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
2318
2162
|
var toggleVariants = cva4(
|
|
2319
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",
|
|
2320
2164
|
{
|
|
@@ -2351,7 +2195,7 @@ function Toggle({
|
|
|
2351
2195
|
size,
|
|
2352
2196
|
...props
|
|
2353
2197
|
}) {
|
|
2354
|
-
return /* @__PURE__ */
|
|
2198
|
+
return /* @__PURE__ */ jsx30(
|
|
2355
2199
|
TogglePrimitive.Root,
|
|
2356
2200
|
{
|
|
2357
2201
|
"data-slot": "toggle",
|
|
@@ -2363,12 +2207,12 @@ function Toggle({
|
|
|
2363
2207
|
|
|
2364
2208
|
// src/ui/toggle-group.tsx
|
|
2365
2209
|
import { ToggleGroup as ToggleGroupPrimitive } from "radix-ui";
|
|
2366
|
-
import { jsx as
|
|
2210
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
2367
2211
|
function ToggleGroup({
|
|
2368
2212
|
className,
|
|
2369
2213
|
...props
|
|
2370
2214
|
}) {
|
|
2371
|
-
return /* @__PURE__ */
|
|
2215
|
+
return /* @__PURE__ */ jsx31(
|
|
2372
2216
|
ToggleGroupPrimitive.Root,
|
|
2373
2217
|
{
|
|
2374
2218
|
"data-slot": "toggle-group",
|
|
@@ -2381,7 +2225,7 @@ function ToggleGroupItem({
|
|
|
2381
2225
|
className,
|
|
2382
2226
|
...props
|
|
2383
2227
|
}) {
|
|
2384
|
-
return /* @__PURE__ */
|
|
2228
|
+
return /* @__PURE__ */ jsx31(
|
|
2385
2229
|
ToggleGroupPrimitive.Item,
|
|
2386
2230
|
{
|
|
2387
2231
|
"data-slot": "toggle-group-item",
|
|
@@ -2393,16 +2237,16 @@ function ToggleGroupItem({
|
|
|
2393
2237
|
|
|
2394
2238
|
// src/ui/hover-card.tsx
|
|
2395
2239
|
import { HoverCard as HoverCardPrimitive } from "radix-ui";
|
|
2396
|
-
import { jsx as
|
|
2240
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
2397
2241
|
function HoverCard({
|
|
2398
2242
|
...props
|
|
2399
2243
|
}) {
|
|
2400
|
-
return /* @__PURE__ */
|
|
2244
|
+
return /* @__PURE__ */ jsx32(HoverCardPrimitive.Root, { "data-slot": "hover-card", ...props });
|
|
2401
2245
|
}
|
|
2402
2246
|
function HoverCardTrigger({
|
|
2403
2247
|
...props
|
|
2404
2248
|
}) {
|
|
2405
|
-
return /* @__PURE__ */
|
|
2249
|
+
return /* @__PURE__ */ jsx32(HoverCardPrimitive.Trigger, { "data-slot": "hover-card-trigger", ...props });
|
|
2406
2250
|
}
|
|
2407
2251
|
function HoverCardContent({
|
|
2408
2252
|
className,
|
|
@@ -2410,7 +2254,7 @@ function HoverCardContent({
|
|
|
2410
2254
|
sideOffset = 4,
|
|
2411
2255
|
...props
|
|
2412
2256
|
}) {
|
|
2413
|
-
return /* @__PURE__ */
|
|
2257
|
+
return /* @__PURE__ */ jsx32(HoverCardPrimitive.Portal, { children: /* @__PURE__ */ jsx32(
|
|
2414
2258
|
HoverCardPrimitive.Content,
|
|
2415
2259
|
{
|
|
2416
2260
|
"data-slot": "hover-card-content",
|
|
@@ -2428,28 +2272,28 @@ function HoverCardContent({
|
|
|
2428
2272
|
|
|
2429
2273
|
// src/ui/context-menu.tsx
|
|
2430
2274
|
import { ContextMenu as ContextMenuPrimitive } from "radix-ui";
|
|
2431
|
-
import { CheckIcon as
|
|
2432
|
-
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";
|
|
2433
2277
|
function ContextMenu({
|
|
2434
2278
|
...props
|
|
2435
2279
|
}) {
|
|
2436
|
-
return /* @__PURE__ */
|
|
2280
|
+
return /* @__PURE__ */ jsx33(ContextMenuPrimitive.Root, { "data-slot": "context-menu", ...props });
|
|
2437
2281
|
}
|
|
2438
2282
|
function ContextMenuTrigger({
|
|
2439
2283
|
...props
|
|
2440
2284
|
}) {
|
|
2441
|
-
return /* @__PURE__ */
|
|
2285
|
+
return /* @__PURE__ */ jsx33(ContextMenuPrimitive.Trigger, { "data-slot": "context-menu-trigger", ...props });
|
|
2442
2286
|
}
|
|
2443
2287
|
function ContextMenuGroup({
|
|
2444
2288
|
...props
|
|
2445
2289
|
}) {
|
|
2446
|
-
return /* @__PURE__ */
|
|
2290
|
+
return /* @__PURE__ */ jsx33(ContextMenuPrimitive.Group, { "data-slot": "context-menu-group", ...props });
|
|
2447
2291
|
}
|
|
2448
2292
|
function ContextMenuContent({
|
|
2449
2293
|
className,
|
|
2450
2294
|
...props
|
|
2451
2295
|
}) {
|
|
2452
|
-
return /* @__PURE__ */
|
|
2296
|
+
return /* @__PURE__ */ jsx33(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx33(
|
|
2453
2297
|
ContextMenuPrimitive.Content,
|
|
2454
2298
|
{
|
|
2455
2299
|
"data-slot": "context-menu-content",
|
|
@@ -2468,7 +2312,7 @@ function ContextMenuItem({
|
|
|
2468
2312
|
variant = "default",
|
|
2469
2313
|
...props
|
|
2470
2314
|
}) {
|
|
2471
|
-
return /* @__PURE__ */
|
|
2315
|
+
return /* @__PURE__ */ jsx33(
|
|
2472
2316
|
ContextMenuPrimitive.Item,
|
|
2473
2317
|
{
|
|
2474
2318
|
"data-slot": "context-menu-item",
|
|
@@ -2489,7 +2333,7 @@ function ContextMenuCheckboxItem({
|
|
|
2489
2333
|
checked,
|
|
2490
2334
|
...props
|
|
2491
2335
|
}) {
|
|
2492
|
-
return /* @__PURE__ */
|
|
2336
|
+
return /* @__PURE__ */ jsxs14(
|
|
2493
2337
|
ContextMenuPrimitive.CheckboxItem,
|
|
2494
2338
|
{
|
|
2495
2339
|
"data-slot": "context-menu-checkbox-item",
|
|
@@ -2497,7 +2341,7 @@ function ContextMenuCheckboxItem({
|
|
|
2497
2341
|
checked,
|
|
2498
2342
|
...props,
|
|
2499
2343
|
children: [
|
|
2500
|
-
/* @__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" }) }) }),
|
|
2501
2345
|
children
|
|
2502
2346
|
]
|
|
2503
2347
|
}
|
|
@@ -2506,7 +2350,7 @@ function ContextMenuCheckboxItem({
|
|
|
2506
2350
|
function ContextMenuRadioGroup({
|
|
2507
2351
|
...props
|
|
2508
2352
|
}) {
|
|
2509
|
-
return /* @__PURE__ */
|
|
2353
|
+
return /* @__PURE__ */ jsx33(
|
|
2510
2354
|
ContextMenuPrimitive.RadioGroup,
|
|
2511
2355
|
{
|
|
2512
2356
|
"data-slot": "context-menu-radio-group",
|
|
@@ -2519,14 +2363,14 @@ function ContextMenuRadioItem({
|
|
|
2519
2363
|
children,
|
|
2520
2364
|
...props
|
|
2521
2365
|
}) {
|
|
2522
|
-
return /* @__PURE__ */
|
|
2366
|
+
return /* @__PURE__ */ jsxs14(
|
|
2523
2367
|
ContextMenuPrimitive.RadioItem,
|
|
2524
2368
|
{
|
|
2525
2369
|
"data-slot": "context-menu-radio-item",
|
|
2526
2370
|
className: cn(overlayItemClass, "py-1.5 pr-2 pl-8", className),
|
|
2527
2371
|
...props,
|
|
2528
2372
|
children: [
|
|
2529
|
-
/* @__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" }) }) }),
|
|
2530
2374
|
children
|
|
2531
2375
|
]
|
|
2532
2376
|
}
|
|
@@ -2537,7 +2381,7 @@ function ContextMenuLabel({
|
|
|
2537
2381
|
inset,
|
|
2538
2382
|
...props
|
|
2539
2383
|
}) {
|
|
2540
|
-
return /* @__PURE__ */
|
|
2384
|
+
return /* @__PURE__ */ jsx33(
|
|
2541
2385
|
ContextMenuPrimitive.Label,
|
|
2542
2386
|
{
|
|
2543
2387
|
"data-slot": "context-menu-label",
|
|
@@ -2554,7 +2398,7 @@ function ContextMenuSeparator({
|
|
|
2554
2398
|
className,
|
|
2555
2399
|
...props
|
|
2556
2400
|
}) {
|
|
2557
|
-
return /* @__PURE__ */
|
|
2401
|
+
return /* @__PURE__ */ jsx33(
|
|
2558
2402
|
ContextMenuPrimitive.Separator,
|
|
2559
2403
|
{
|
|
2560
2404
|
"data-slot": "context-menu-separator",
|
|
@@ -2567,7 +2411,7 @@ function ContextMenuShortcut({
|
|
|
2567
2411
|
className,
|
|
2568
2412
|
...props
|
|
2569
2413
|
}) {
|
|
2570
|
-
return /* @__PURE__ */
|
|
2414
|
+
return /* @__PURE__ */ jsx33(
|
|
2571
2415
|
"span",
|
|
2572
2416
|
{
|
|
2573
2417
|
"data-slot": "context-menu-shortcut",
|
|
@@ -2582,7 +2426,7 @@ function ContextMenuShortcut({
|
|
|
2582
2426
|
function ContextMenuSub({
|
|
2583
2427
|
...props
|
|
2584
2428
|
}) {
|
|
2585
|
-
return /* @__PURE__ */
|
|
2429
|
+
return /* @__PURE__ */ jsx33(ContextMenuPrimitive.Sub, { "data-slot": "context-menu-sub", ...props });
|
|
2586
2430
|
}
|
|
2587
2431
|
function ContextMenuSubTrigger({
|
|
2588
2432
|
className,
|
|
@@ -2590,7 +2434,7 @@ function ContextMenuSubTrigger({
|
|
|
2590
2434
|
children,
|
|
2591
2435
|
...props
|
|
2592
2436
|
}) {
|
|
2593
|
-
return /* @__PURE__ */
|
|
2437
|
+
return /* @__PURE__ */ jsxs14(
|
|
2594
2438
|
ContextMenuPrimitive.SubTrigger,
|
|
2595
2439
|
{
|
|
2596
2440
|
"data-slot": "context-menu-sub-trigger",
|
|
@@ -2603,7 +2447,7 @@ function ContextMenuSubTrigger({
|
|
|
2603
2447
|
...props,
|
|
2604
2448
|
children: [
|
|
2605
2449
|
children,
|
|
2606
|
-
/* @__PURE__ */
|
|
2450
|
+
/* @__PURE__ */ jsx33(ChevronRightIcon5, { className: "ml-auto size-4" })
|
|
2607
2451
|
]
|
|
2608
2452
|
}
|
|
2609
2453
|
);
|
|
@@ -2612,7 +2456,7 @@ function ContextMenuSubContent({
|
|
|
2612
2456
|
className,
|
|
2613
2457
|
...props
|
|
2614
2458
|
}) {
|
|
2615
|
-
return /* @__PURE__ */
|
|
2459
|
+
return /* @__PURE__ */ jsx33(
|
|
2616
2460
|
ContextMenuPrimitive.SubContent,
|
|
2617
2461
|
{
|
|
2618
2462
|
"data-slot": "context-menu-sub-content",
|
|
@@ -2628,9 +2472,9 @@ function ContextMenuSubContent({
|
|
|
2628
2472
|
|
|
2629
2473
|
// src/ui/alert.tsx
|
|
2630
2474
|
import { cva as cva5 } from "class-variance-authority";
|
|
2631
|
-
import { jsx as
|
|
2475
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
2632
2476
|
var alertVariants = cva5(
|
|
2633
|
-
"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",
|
|
2634
2478
|
{
|
|
2635
2479
|
variants: {
|
|
2636
2480
|
variant: {
|
|
@@ -2648,7 +2492,7 @@ function Alert({
|
|
|
2648
2492
|
variant,
|
|
2649
2493
|
...props
|
|
2650
2494
|
}) {
|
|
2651
|
-
return /* @__PURE__ */
|
|
2495
|
+
return /* @__PURE__ */ jsx34(
|
|
2652
2496
|
"div",
|
|
2653
2497
|
{
|
|
2654
2498
|
"data-slot": "alert",
|
|
@@ -2659,7 +2503,7 @@ function Alert({
|
|
|
2659
2503
|
);
|
|
2660
2504
|
}
|
|
2661
2505
|
function AlertTitle({ className, ...props }) {
|
|
2662
|
-
return /* @__PURE__ */
|
|
2506
|
+
return /* @__PURE__ */ jsx34(
|
|
2663
2507
|
"div",
|
|
2664
2508
|
{
|
|
2665
2509
|
"data-slot": "alert-title",
|
|
@@ -2669,7 +2513,7 @@ function AlertTitle({ className, ...props }) {
|
|
|
2669
2513
|
);
|
|
2670
2514
|
}
|
|
2671
2515
|
function AlertDescription({ className, ...props }) {
|
|
2672
|
-
return /* @__PURE__ */
|
|
2516
|
+
return /* @__PURE__ */ jsx34(
|
|
2673
2517
|
"div",
|
|
2674
2518
|
{
|
|
2675
2519
|
"data-slot": "alert-description",
|
|
@@ -2680,15 +2524,15 @@ function AlertDescription({ className, ...props }) {
|
|
|
2680
2524
|
}
|
|
2681
2525
|
|
|
2682
2526
|
// src/ui/card.tsx
|
|
2683
|
-
import { jsx as
|
|
2527
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2684
2528
|
function Card({ className, ...props }) {
|
|
2685
|
-
return /* @__PURE__ */
|
|
2529
|
+
return /* @__PURE__ */ jsx35(
|
|
2686
2530
|
"div",
|
|
2687
2531
|
{
|
|
2688
2532
|
"data-slot": "card",
|
|
2689
2533
|
className: cn(
|
|
2690
2534
|
TIMBAL_V2_ELEVATED_SURFACE,
|
|
2691
|
-
"flex flex-col gap-
|
|
2535
|
+
"flex flex-col gap-3 rounded-xl py-3 text-card-foreground",
|
|
2692
2536
|
className
|
|
2693
2537
|
),
|
|
2694
2538
|
...props
|
|
@@ -2696,17 +2540,17 @@ function Card({ className, ...props }) {
|
|
|
2696
2540
|
);
|
|
2697
2541
|
}
|
|
2698
2542
|
function CardHeader({ className, ...props }) {
|
|
2699
|
-
return /* @__PURE__ */
|
|
2543
|
+
return /* @__PURE__ */ jsx35(
|
|
2700
2544
|
"div",
|
|
2701
2545
|
{
|
|
2702
2546
|
"data-slot": "card-header",
|
|
2703
|
-
className: cn("flex flex-col gap-1.5 px-
|
|
2547
|
+
className: cn("flex flex-col gap-1.5 px-3.5", className),
|
|
2704
2548
|
...props
|
|
2705
2549
|
}
|
|
2706
2550
|
);
|
|
2707
2551
|
}
|
|
2708
2552
|
function CardTitle({ className, ...props }) {
|
|
2709
|
-
return /* @__PURE__ */
|
|
2553
|
+
return /* @__PURE__ */ jsx35(
|
|
2710
2554
|
"div",
|
|
2711
2555
|
{
|
|
2712
2556
|
"data-slot": "card-title",
|
|
@@ -2716,7 +2560,7 @@ function CardTitle({ className, ...props }) {
|
|
|
2716
2560
|
);
|
|
2717
2561
|
}
|
|
2718
2562
|
function CardDescription({ className, ...props }) {
|
|
2719
|
-
return /* @__PURE__ */
|
|
2563
|
+
return /* @__PURE__ */ jsx35(
|
|
2720
2564
|
"div",
|
|
2721
2565
|
{
|
|
2722
2566
|
"data-slot": "card-description",
|
|
@@ -2726,23 +2570,23 @@ function CardDescription({ className, ...props }) {
|
|
|
2726
2570
|
);
|
|
2727
2571
|
}
|
|
2728
2572
|
function CardContent({ className, ...props }) {
|
|
2729
|
-
return /* @__PURE__ */
|
|
2573
|
+
return /* @__PURE__ */ jsx35("div", { "data-slot": "card-content", className: cn("px-3.5", className), ...props });
|
|
2730
2574
|
}
|
|
2731
2575
|
function CardFooter({ className, ...props }) {
|
|
2732
|
-
return /* @__PURE__ */
|
|
2576
|
+
return /* @__PURE__ */ jsx35(
|
|
2733
2577
|
"div",
|
|
2734
2578
|
{
|
|
2735
2579
|
"data-slot": "card-footer",
|
|
2736
|
-
className: cn("flex items-center px-
|
|
2580
|
+
className: cn("flex items-center px-3.5", className),
|
|
2737
2581
|
...props
|
|
2738
2582
|
}
|
|
2739
2583
|
);
|
|
2740
2584
|
}
|
|
2741
2585
|
|
|
2742
2586
|
// src/ui/table.tsx
|
|
2743
|
-
import { jsx as
|
|
2587
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
2744
2588
|
function Table({ className, ...props }) {
|
|
2745
|
-
return /* @__PURE__ */
|
|
2589
|
+
return /* @__PURE__ */ jsx36("div", { "data-slot": "table-container", className: "relative w-full overflow-x-auto", children: /* @__PURE__ */ jsx36(
|
|
2746
2590
|
"table",
|
|
2747
2591
|
{
|
|
2748
2592
|
"data-slot": "table",
|
|
@@ -2752,7 +2596,7 @@ function Table({ className, ...props }) {
|
|
|
2752
2596
|
) });
|
|
2753
2597
|
}
|
|
2754
2598
|
function TableHeader({ className, ...props }) {
|
|
2755
|
-
return /* @__PURE__ */
|
|
2599
|
+
return /* @__PURE__ */ jsx36(
|
|
2756
2600
|
"thead",
|
|
2757
2601
|
{
|
|
2758
2602
|
"data-slot": "table-header",
|
|
@@ -2762,7 +2606,7 @@ function TableHeader({ className, ...props }) {
|
|
|
2762
2606
|
);
|
|
2763
2607
|
}
|
|
2764
2608
|
function TableBody({ className, ...props }) {
|
|
2765
|
-
return /* @__PURE__ */
|
|
2609
|
+
return /* @__PURE__ */ jsx36(
|
|
2766
2610
|
"tbody",
|
|
2767
2611
|
{
|
|
2768
2612
|
"data-slot": "table-body",
|
|
@@ -2772,7 +2616,7 @@ function TableBody({ className, ...props }) {
|
|
|
2772
2616
|
);
|
|
2773
2617
|
}
|
|
2774
2618
|
function TableFooter({ className, ...props }) {
|
|
2775
|
-
return /* @__PURE__ */
|
|
2619
|
+
return /* @__PURE__ */ jsx36(
|
|
2776
2620
|
"tfoot",
|
|
2777
2621
|
{
|
|
2778
2622
|
"data-slot": "table-footer",
|
|
@@ -2785,7 +2629,7 @@ function TableFooter({ className, ...props }) {
|
|
|
2785
2629
|
);
|
|
2786
2630
|
}
|
|
2787
2631
|
function TableRow({ className, ...props }) {
|
|
2788
|
-
return /* @__PURE__ */
|
|
2632
|
+
return /* @__PURE__ */ jsx36(
|
|
2789
2633
|
"tr",
|
|
2790
2634
|
{
|
|
2791
2635
|
"data-slot": "table-row",
|
|
@@ -2798,12 +2642,12 @@ function TableRow({ className, ...props }) {
|
|
|
2798
2642
|
);
|
|
2799
2643
|
}
|
|
2800
2644
|
function TableHead({ className, ...props }) {
|
|
2801
|
-
return /* @__PURE__ */
|
|
2645
|
+
return /* @__PURE__ */ jsx36(
|
|
2802
2646
|
"th",
|
|
2803
2647
|
{
|
|
2804
2648
|
"data-slot": "table-head",
|
|
2805
2649
|
className: cn(
|
|
2806
|
-
"h-
|
|
2650
|
+
"h-8 px-2.5 text-left align-middle text-xs font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",
|
|
2807
2651
|
className
|
|
2808
2652
|
),
|
|
2809
2653
|
...props
|
|
@@ -2811,12 +2655,12 @@ function TableHead({ className, ...props }) {
|
|
|
2811
2655
|
);
|
|
2812
2656
|
}
|
|
2813
2657
|
function TableCell({ className, ...props }) {
|
|
2814
|
-
return /* @__PURE__ */
|
|
2658
|
+
return /* @__PURE__ */ jsx36(
|
|
2815
2659
|
"td",
|
|
2816
2660
|
{
|
|
2817
2661
|
"data-slot": "table-cell",
|
|
2818
2662
|
className: cn(
|
|
2819
|
-
"
|
|
2663
|
+
"py-2 px-2.5 align-middle text-sm [&:has([role=checkbox])]:pr-0",
|
|
2820
2664
|
className
|
|
2821
2665
|
),
|
|
2822
2666
|
...props
|
|
@@ -2824,7 +2668,7 @@ function TableCell({ className, ...props }) {
|
|
|
2824
2668
|
);
|
|
2825
2669
|
}
|
|
2826
2670
|
function TableCaption({ className, ...props }) {
|
|
2827
|
-
return /* @__PURE__ */
|
|
2671
|
+
return /* @__PURE__ */ jsx36(
|
|
2828
2672
|
"caption",
|
|
2829
2673
|
{
|
|
2830
2674
|
"data-slot": "table-caption",
|
|
@@ -2837,17 +2681,17 @@ function TableCaption({ className, ...props }) {
|
|
|
2837
2681
|
// src/ui/toast.tsx
|
|
2838
2682
|
import { Toast as ToastPrimitive } from "radix-ui";
|
|
2839
2683
|
import { XIcon as XIcon2 } from "lucide-react";
|
|
2840
|
-
import { jsx as
|
|
2684
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
2841
2685
|
function ToastProvider({
|
|
2842
2686
|
...props
|
|
2843
2687
|
}) {
|
|
2844
|
-
return /* @__PURE__ */
|
|
2688
|
+
return /* @__PURE__ */ jsx37(ToastPrimitive.Provider, { "data-slot": "toast-provider", ...props });
|
|
2845
2689
|
}
|
|
2846
2690
|
function ToastViewport({
|
|
2847
2691
|
className,
|
|
2848
2692
|
...props
|
|
2849
2693
|
}) {
|
|
2850
|
-
return /* @__PURE__ */
|
|
2694
|
+
return /* @__PURE__ */ jsx37(
|
|
2851
2695
|
ToastPrimitive.Viewport,
|
|
2852
2696
|
{
|
|
2853
2697
|
"data-slot": "toast-viewport",
|
|
@@ -2864,13 +2708,13 @@ function Toast({
|
|
|
2864
2708
|
variant = "default",
|
|
2865
2709
|
...props
|
|
2866
2710
|
}) {
|
|
2867
|
-
return /* @__PURE__ */
|
|
2711
|
+
return /* @__PURE__ */ jsx37(
|
|
2868
2712
|
ToastPrimitive.Root,
|
|
2869
2713
|
{
|
|
2870
2714
|
"data-slot": "toast",
|
|
2871
2715
|
className: cn(
|
|
2872
2716
|
TIMBAL_V2_ELEVATED_SURFACE,
|
|
2873
|
-
"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",
|
|
2874
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",
|
|
2875
2719
|
variant === "destructive" && "border-destructive/45 bg-destructive/10 text-destructive",
|
|
2876
2720
|
className
|
|
@@ -2883,7 +2727,7 @@ function ToastAction({
|
|
|
2883
2727
|
className,
|
|
2884
2728
|
...props
|
|
2885
2729
|
}) {
|
|
2886
|
-
return /* @__PURE__ */
|
|
2730
|
+
return /* @__PURE__ */ jsx37(
|
|
2887
2731
|
ToastPrimitive.Action,
|
|
2888
2732
|
{
|
|
2889
2733
|
"data-slot": "toast-action",
|
|
@@ -2899,7 +2743,7 @@ function ToastClose({
|
|
|
2899
2743
|
className,
|
|
2900
2744
|
...props
|
|
2901
2745
|
}) {
|
|
2902
|
-
return /* @__PURE__ */
|
|
2746
|
+
return /* @__PURE__ */ jsx37(
|
|
2903
2747
|
ToastPrimitive.Close,
|
|
2904
2748
|
{
|
|
2905
2749
|
"data-slot": "toast-close",
|
|
@@ -2909,7 +2753,7 @@ function ToastClose({
|
|
|
2909
2753
|
),
|
|
2910
2754
|
"toast-close": "",
|
|
2911
2755
|
...props,
|
|
2912
|
-
children: /* @__PURE__ */
|
|
2756
|
+
children: /* @__PURE__ */ jsx37(XIcon2, { className: "size-4" })
|
|
2913
2757
|
}
|
|
2914
2758
|
);
|
|
2915
2759
|
}
|
|
@@ -2917,7 +2761,7 @@ function ToastTitle({
|
|
|
2917
2761
|
className,
|
|
2918
2762
|
...props
|
|
2919
2763
|
}) {
|
|
2920
|
-
return /* @__PURE__ */
|
|
2764
|
+
return /* @__PURE__ */ jsx37(
|
|
2921
2765
|
ToastPrimitive.Title,
|
|
2922
2766
|
{
|
|
2923
2767
|
"data-slot": "toast-title",
|
|
@@ -2930,7 +2774,7 @@ function ToastDescription({
|
|
|
2930
2774
|
className,
|
|
2931
2775
|
...props
|
|
2932
2776
|
}) {
|
|
2933
|
-
return /* @__PURE__ */
|
|
2777
|
+
return /* @__PURE__ */ jsx37(
|
|
2934
2778
|
ToastPrimitive.Description,
|
|
2935
2779
|
{
|
|
2936
2780
|
"data-slot": "toast-description",
|
|
@@ -3009,32 +2853,32 @@ function useToast() {
|
|
|
3009
2853
|
}
|
|
3010
2854
|
|
|
3011
2855
|
// src/ui/toaster.tsx
|
|
3012
|
-
import { jsx as
|
|
2856
|
+
import { jsx as jsx38, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
3013
2857
|
function Toaster() {
|
|
3014
2858
|
const { toasts, dismiss } = useToast();
|
|
3015
|
-
return /* @__PURE__ */
|
|
3016
|
-
toasts.map(({ id, title, description, variant }) => /* @__PURE__ */
|
|
2859
|
+
return /* @__PURE__ */ jsxs15(ToastProvider, { children: [
|
|
2860
|
+
toasts.map(({ id, title, description, variant }) => /* @__PURE__ */ jsxs15(
|
|
3017
2861
|
Toast,
|
|
3018
2862
|
{
|
|
3019
2863
|
variant,
|
|
3020
2864
|
onOpenChange: (open) => !open && dismiss(id),
|
|
3021
2865
|
children: [
|
|
3022
|
-
/* @__PURE__ */
|
|
3023
|
-
title ? /* @__PURE__ */
|
|
3024
|
-
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
|
|
3025
2869
|
] }),
|
|
3026
|
-
/* @__PURE__ */
|
|
2870
|
+
/* @__PURE__ */ jsx38(ToastClose, {})
|
|
3027
2871
|
]
|
|
3028
2872
|
},
|
|
3029
2873
|
id
|
|
3030
2874
|
)),
|
|
3031
|
-
/* @__PURE__ */
|
|
2875
|
+
/* @__PURE__ */ jsx38(ToastViewport, {})
|
|
3032
2876
|
] });
|
|
3033
2877
|
}
|
|
3034
2878
|
|
|
3035
2879
|
// src/ui/avatar-group.tsx
|
|
3036
2880
|
import * as React4 from "react";
|
|
3037
|
-
import { jsxs as
|
|
2881
|
+
import { jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3038
2882
|
var spacingClass = {
|
|
3039
2883
|
sm: "-space-x-2",
|
|
3040
2884
|
md: "-space-x-3"
|
|
@@ -3049,7 +2893,7 @@ function AvatarGroup({
|
|
|
3049
2893
|
const items = React4.Children.toArray(children);
|
|
3050
2894
|
const overflow = typeof max === "number" ? items.length - max : 0;
|
|
3051
2895
|
const visible = typeof max === "number" ? items.slice(0, max) : items;
|
|
3052
|
-
return /* @__PURE__ */
|
|
2896
|
+
return /* @__PURE__ */ jsxs16(
|
|
3053
2897
|
"div",
|
|
3054
2898
|
{
|
|
3055
2899
|
"data-slot": "avatar-group",
|
|
@@ -3062,7 +2906,7 @@ function AvatarGroup({
|
|
|
3062
2906
|
...props,
|
|
3063
2907
|
children: [
|
|
3064
2908
|
visible,
|
|
3065
|
-
overflow > 0 ? /* @__PURE__ */
|
|
2909
|
+
overflow > 0 ? /* @__PURE__ */ jsxs16(
|
|
3066
2910
|
"span",
|
|
3067
2911
|
{
|
|
3068
2912
|
"aria-label": `${overflow} more`,
|
|
@@ -3079,8 +2923,8 @@ function AvatarGroup({
|
|
|
3079
2923
|
}
|
|
3080
2924
|
|
|
3081
2925
|
// src/ui/stepper.tsx
|
|
3082
|
-
import { CheckIcon as
|
|
3083
|
-
import { jsx as
|
|
2926
|
+
import { CheckIcon as CheckIcon3 } from "lucide-react";
|
|
2927
|
+
import { jsx as jsx39, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3084
2928
|
function Stepper({
|
|
3085
2929
|
steps,
|
|
3086
2930
|
current,
|
|
@@ -3089,7 +2933,7 @@ function Stepper({
|
|
|
3089
2933
|
...props
|
|
3090
2934
|
}) {
|
|
3091
2935
|
const isVertical = orientation === "vertical";
|
|
3092
|
-
return /* @__PURE__ */
|
|
2936
|
+
return /* @__PURE__ */ jsx39(
|
|
3093
2937
|
"ol",
|
|
3094
2938
|
{
|
|
3095
2939
|
"data-slot": "stepper",
|
|
@@ -3104,7 +2948,7 @@ function Stepper({
|
|
|
3104
2948
|
const active = index === current;
|
|
3105
2949
|
const last = index === steps.length - 1;
|
|
3106
2950
|
const connectorFilled = index < current;
|
|
3107
|
-
return /* @__PURE__ */
|
|
2951
|
+
return /* @__PURE__ */ jsxs17(
|
|
3108
2952
|
"li",
|
|
3109
2953
|
{
|
|
3110
2954
|
"aria-current": active ? "step" : void 0,
|
|
@@ -3114,8 +2958,8 @@ function Stepper({
|
|
|
3114
2958
|
last && !isVertical && "flex-none"
|
|
3115
2959
|
),
|
|
3116
2960
|
children: [
|
|
3117
|
-
/* @__PURE__ */
|
|
3118
|
-
/* @__PURE__ */
|
|
2961
|
+
/* @__PURE__ */ jsxs17("div", { className: cn("flex items-center gap-2", isVertical && "flex-col"), children: [
|
|
2962
|
+
/* @__PURE__ */ jsx39(
|
|
3119
2963
|
"span",
|
|
3120
2964
|
{
|
|
3121
2965
|
className: cn(
|
|
@@ -3124,10 +2968,10 @@ function Stepper({
|
|
|
3124
2968
|
active && "border-primary text-primary",
|
|
3125
2969
|
!complete && !active && "border-border text-muted-foreground"
|
|
3126
2970
|
),
|
|
3127
|
-
children: complete ? /* @__PURE__ */
|
|
2971
|
+
children: complete ? /* @__PURE__ */ jsx39(CheckIcon3, { className: "size-3.5", "aria-hidden": true }) : index + 1
|
|
3128
2972
|
}
|
|
3129
2973
|
),
|
|
3130
|
-
!last ? /* @__PURE__ */
|
|
2974
|
+
!last ? /* @__PURE__ */ jsx39(
|
|
3131
2975
|
"span",
|
|
3132
2976
|
{
|
|
3133
2977
|
"aria-hidden": true,
|
|
@@ -3139,8 +2983,8 @@ function Stepper({
|
|
|
3139
2983
|
}
|
|
3140
2984
|
) : null
|
|
3141
2985
|
] }),
|
|
3142
|
-
/* @__PURE__ */
|
|
3143
|
-
/* @__PURE__ */
|
|
2986
|
+
/* @__PURE__ */ jsxs17("div", { className: cn("min-w-0", isVertical && "pb-4"), children: [
|
|
2987
|
+
/* @__PURE__ */ jsx39(
|
|
3144
2988
|
"p",
|
|
3145
2989
|
{
|
|
3146
2990
|
className: cn(
|
|
@@ -3150,7 +2994,7 @@ function Stepper({
|
|
|
3150
2994
|
children: step.label
|
|
3151
2995
|
}
|
|
3152
2996
|
),
|
|
3153
|
-
step.description ? /* @__PURE__ */
|
|
2997
|
+
step.description ? /* @__PURE__ */ jsx39("p", { className: "truncate text-xs text-muted-foreground", children: step.description }) : null
|
|
3154
2998
|
] })
|
|
3155
2999
|
]
|
|
3156
3000
|
},
|
|
@@ -3164,7 +3008,7 @@ function Stepper({
|
|
|
3164
3008
|
// src/ui/rating.tsx
|
|
3165
3009
|
import * as React5 from "react";
|
|
3166
3010
|
import { StarIcon } from "lucide-react";
|
|
3167
|
-
import { jsx as
|
|
3011
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
3168
3012
|
var sizeClass = { sm: "size-4", md: "size-5", lg: "size-6" };
|
|
3169
3013
|
var ratingFillClass = {
|
|
3170
3014
|
amber: "fill-amber-400 text-amber-400",
|
|
@@ -3198,14 +3042,14 @@ function Rating({
|
|
|
3198
3042
|
onChange?.(next);
|
|
3199
3043
|
};
|
|
3200
3044
|
if (!interactive) {
|
|
3201
|
-
return /* @__PURE__ */
|
|
3045
|
+
return /* @__PURE__ */ jsx40(
|
|
3202
3046
|
"span",
|
|
3203
3047
|
{
|
|
3204
3048
|
"data-slot": "rating",
|
|
3205
3049
|
role: "img",
|
|
3206
3050
|
"aria-label": `${label}: ${value} of ${max}`,
|
|
3207
3051
|
className: cn("inline-flex items-center gap-0.5", disabled && "opacity-50", className),
|
|
3208
|
-
children: Array.from({ length: max }, (_, i) => /* @__PURE__ */
|
|
3052
|
+
children: Array.from({ length: max }, (_, i) => /* @__PURE__ */ jsx40(
|
|
3209
3053
|
StarIcon,
|
|
3210
3054
|
{
|
|
3211
3055
|
"aria-hidden": true,
|
|
@@ -3219,7 +3063,7 @@ function Rating({
|
|
|
3219
3063
|
}
|
|
3220
3064
|
);
|
|
3221
3065
|
}
|
|
3222
|
-
return /* @__PURE__ */
|
|
3066
|
+
return /* @__PURE__ */ jsx40(
|
|
3223
3067
|
"span",
|
|
3224
3068
|
{
|
|
3225
3069
|
"data-slot": "rating",
|
|
@@ -3230,7 +3074,7 @@ function Rating({
|
|
|
3230
3074
|
children: Array.from({ length: max }, (_, i) => {
|
|
3231
3075
|
const unit = i + 1;
|
|
3232
3076
|
const filled = unit <= shown;
|
|
3233
|
-
return /* @__PURE__ */
|
|
3077
|
+
return /* @__PURE__ */ jsx40(
|
|
3234
3078
|
"button",
|
|
3235
3079
|
{
|
|
3236
3080
|
type: "button",
|
|
@@ -3242,7 +3086,7 @@ function Rating({
|
|
|
3242
3086
|
onFocus: () => setHover(unit),
|
|
3243
3087
|
onBlur: () => setHover(null),
|
|
3244
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",
|
|
3245
|
-
children: /* @__PURE__ */
|
|
3089
|
+
children: /* @__PURE__ */ jsx40(
|
|
3246
3090
|
StarIcon,
|
|
3247
3091
|
{
|
|
3248
3092
|
className: cn(
|
|
@@ -3263,7 +3107,7 @@ function Rating({
|
|
|
3263
3107
|
// src/ui/number-field.tsx
|
|
3264
3108
|
import * as React6 from "react";
|
|
3265
3109
|
import { MinusIcon as MinusIcon2, PlusIcon } from "lucide-react";
|
|
3266
|
-
import { jsx as
|
|
3110
|
+
import { jsx as jsx41, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3267
3111
|
var heightClass = { sm: "h-9", default: "h-10" };
|
|
3268
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";
|
|
3269
3113
|
function clamp(n, min, max) {
|
|
@@ -3292,7 +3136,7 @@ function NumberField({
|
|
|
3292
3136
|
if (!isControlled) setUncontrolled(clamped);
|
|
3293
3137
|
onValueChange?.(clamped);
|
|
3294
3138
|
};
|
|
3295
|
-
return /* @__PURE__ */
|
|
3139
|
+
return /* @__PURE__ */ jsxs18(
|
|
3296
3140
|
"div",
|
|
3297
3141
|
{
|
|
3298
3142
|
"data-slot": "number-field",
|
|
@@ -3304,7 +3148,7 @@ function NumberField({
|
|
|
3304
3148
|
className
|
|
3305
3149
|
),
|
|
3306
3150
|
children: [
|
|
3307
|
-
/* @__PURE__ */
|
|
3151
|
+
/* @__PURE__ */ jsx41(
|
|
3308
3152
|
"button",
|
|
3309
3153
|
{
|
|
3310
3154
|
type: "button",
|
|
@@ -3313,10 +3157,10 @@ function NumberField({
|
|
|
3313
3157
|
disabled: disabled || typeof min === "number" && value <= min,
|
|
3314
3158
|
onClick: () => commit(value - step),
|
|
3315
3159
|
className: cn(stepButtonClass, "border-r border-border"),
|
|
3316
|
-
children: /* @__PURE__ */
|
|
3160
|
+
children: /* @__PURE__ */ jsx41(MinusIcon2, { className: "size-4" })
|
|
3317
3161
|
}
|
|
3318
3162
|
),
|
|
3319
|
-
/* @__PURE__ */
|
|
3163
|
+
/* @__PURE__ */ jsx41(
|
|
3320
3164
|
"input",
|
|
3321
3165
|
{
|
|
3322
3166
|
type: "number",
|
|
@@ -3340,7 +3184,7 @@ function NumberField({
|
|
|
3340
3184
|
...inputProps
|
|
3341
3185
|
}
|
|
3342
3186
|
),
|
|
3343
|
-
/* @__PURE__ */
|
|
3187
|
+
/* @__PURE__ */ jsx41(
|
|
3344
3188
|
"button",
|
|
3345
3189
|
{
|
|
3346
3190
|
type: "button",
|
|
@@ -3349,7 +3193,7 @@ function NumberField({
|
|
|
3349
3193
|
disabled: disabled || typeof max === "number" && value >= max,
|
|
3350
3194
|
onClick: () => commit(value + step),
|
|
3351
3195
|
className: cn(stepButtonClass, "border-l border-border"),
|
|
3352
|
-
children: /* @__PURE__ */
|
|
3196
|
+
children: /* @__PURE__ */ jsx41(PlusIcon, { className: "size-4" })
|
|
3353
3197
|
}
|
|
3354
3198
|
)
|
|
3355
3199
|
]
|
|
@@ -3360,10 +3204,10 @@ function NumberField({
|
|
|
3360
3204
|
// src/ui/tag-input.tsx
|
|
3361
3205
|
import * as React7 from "react";
|
|
3362
3206
|
import { XIcon as XIcon3 } from "lucide-react";
|
|
3363
|
-
import { jsx as
|
|
3207
|
+
import { jsx as jsx42, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3364
3208
|
var tagInputSizeClass = {
|
|
3365
|
-
sm: "min-h-
|
|
3366
|
-
default: "min-h-
|
|
3209
|
+
sm: "min-h-8 gap-1 px-1.5 py-0.5",
|
|
3210
|
+
default: "min-h-9 gap-1 px-2 py-1"
|
|
3367
3211
|
};
|
|
3368
3212
|
function TagInput({
|
|
3369
3213
|
value: valueProp,
|
|
@@ -3409,7 +3253,7 @@ function TagInput({
|
|
|
3409
3253
|
removeAt(tags.length - 1);
|
|
3410
3254
|
}
|
|
3411
3255
|
};
|
|
3412
|
-
return /* @__PURE__ */
|
|
3256
|
+
return /* @__PURE__ */ jsxs19(
|
|
3413
3257
|
"div",
|
|
3414
3258
|
{
|
|
3415
3259
|
"data-slot": "tag-input",
|
|
@@ -3421,27 +3265,27 @@ function TagInput({
|
|
|
3421
3265
|
className
|
|
3422
3266
|
),
|
|
3423
3267
|
children: [
|
|
3424
|
-
tags.map((tag, index) => /* @__PURE__ */
|
|
3268
|
+
tags.map((tag, index) => /* @__PURE__ */ jsxs19(
|
|
3425
3269
|
"span",
|
|
3426
3270
|
{
|
|
3427
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",
|
|
3428
3272
|
children: [
|
|
3429
3273
|
tag,
|
|
3430
|
-
/* @__PURE__ */
|
|
3274
|
+
/* @__PURE__ */ jsx42(
|
|
3431
3275
|
"button",
|
|
3432
3276
|
{
|
|
3433
3277
|
type: "button",
|
|
3434
3278
|
"aria-label": `Remove ${tag}`,
|
|
3435
3279
|
onClick: () => removeAt(index),
|
|
3436
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",
|
|
3437
|
-
children: /* @__PURE__ */
|
|
3281
|
+
children: /* @__PURE__ */ jsx42(XIcon3, { className: "size-3", "aria-hidden": true })
|
|
3438
3282
|
}
|
|
3439
3283
|
)
|
|
3440
3284
|
]
|
|
3441
3285
|
},
|
|
3442
3286
|
`${tag}-${index}`
|
|
3443
3287
|
)),
|
|
3444
|
-
/* @__PURE__ */
|
|
3288
|
+
/* @__PURE__ */ jsx42(
|
|
3445
3289
|
"input",
|
|
3446
3290
|
{
|
|
3447
3291
|
type: "text",
|
|
@@ -3464,15 +3308,15 @@ function TagInput({
|
|
|
3464
3308
|
}
|
|
3465
3309
|
|
|
3466
3310
|
// src/ui/snippet.tsx
|
|
3467
|
-
import { jsx as
|
|
3311
|
+
import { jsx as jsx43, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3468
3312
|
var snippetVariantClass = {
|
|
3469
3313
|
muted: "border-border bg-muted/40",
|
|
3470
3314
|
outline: "border-border bg-transparent",
|
|
3471
3315
|
ghost: "border-transparent bg-foreground/[0.04]"
|
|
3472
3316
|
};
|
|
3473
3317
|
var snippetSizeClass = {
|
|
3474
|
-
sm: "gap-1.5 py-
|
|
3475
|
-
default: "gap-2 py-1
|
|
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"
|
|
3476
3320
|
};
|
|
3477
3321
|
function Snippet({
|
|
3478
3322
|
children,
|
|
@@ -3483,7 +3327,7 @@ function Snippet({
|
|
|
3483
3327
|
className,
|
|
3484
3328
|
...props
|
|
3485
3329
|
}) {
|
|
3486
|
-
return /* @__PURE__ */
|
|
3330
|
+
return /* @__PURE__ */ jsxs20(
|
|
3487
3331
|
"div",
|
|
3488
3332
|
{
|
|
3489
3333
|
"data-slot": "snippet",
|
|
@@ -3496,9 +3340,9 @@ function Snippet({
|
|
|
3496
3340
|
),
|
|
3497
3341
|
...props,
|
|
3498
3342
|
children: [
|
|
3499
|
-
symbol ? /* @__PURE__ */
|
|
3500
|
-
/* @__PURE__ */
|
|
3501
|
-
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(
|
|
3502
3346
|
CopyButton,
|
|
3503
3347
|
{
|
|
3504
3348
|
value: children,
|
|
@@ -3511,7 +3355,7 @@ function Snippet({
|
|
|
3511
3355
|
}
|
|
3512
3356
|
|
|
3513
3357
|
// src/ui/circular-progress.tsx
|
|
3514
|
-
import { jsx as
|
|
3358
|
+
import { jsx as jsx44, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3515
3359
|
var toneClass = {
|
|
3516
3360
|
primary: "text-primary",
|
|
3517
3361
|
success: "text-emerald-500",
|
|
@@ -3534,7 +3378,7 @@ function CircularProgress({
|
|
|
3534
3378
|
const circumference = 2 * Math.PI * radius;
|
|
3535
3379
|
const pct = indeterminate ? 0.25 : Math.min(Math.max(value / max, 0), 1);
|
|
3536
3380
|
const dashOffset = circumference * (1 - pct);
|
|
3537
|
-
return /* @__PURE__ */
|
|
3381
|
+
return /* @__PURE__ */ jsxs21(
|
|
3538
3382
|
"div",
|
|
3539
3383
|
{
|
|
3540
3384
|
"data-slot": "circular-progress",
|
|
@@ -3546,7 +3390,7 @@ function CircularProgress({
|
|
|
3546
3390
|
style: { width: size, height: size },
|
|
3547
3391
|
...props,
|
|
3548
3392
|
children: [
|
|
3549
|
-
/* @__PURE__ */
|
|
3393
|
+
/* @__PURE__ */ jsxs21(
|
|
3550
3394
|
"svg",
|
|
3551
3395
|
{
|
|
3552
3396
|
width: size,
|
|
@@ -3554,7 +3398,7 @@ function CircularProgress({
|
|
|
3554
3398
|
viewBox: `0 0 ${size} ${size}`,
|
|
3555
3399
|
className: cn(toneClass[tone], indeterminate && "animate-spin"),
|
|
3556
3400
|
children: [
|
|
3557
|
-
/* @__PURE__ */
|
|
3401
|
+
/* @__PURE__ */ jsx44(
|
|
3558
3402
|
"circle",
|
|
3559
3403
|
{
|
|
3560
3404
|
cx: size / 2,
|
|
@@ -3565,7 +3409,7 @@ function CircularProgress({
|
|
|
3565
3409
|
className: "stroke-current opacity-15"
|
|
3566
3410
|
}
|
|
3567
3411
|
),
|
|
3568
|
-
/* @__PURE__ */
|
|
3412
|
+
/* @__PURE__ */ jsx44(
|
|
3569
3413
|
"circle",
|
|
3570
3414
|
{
|
|
3571
3415
|
cx: size / 2,
|
|
@@ -3583,23 +3427,13 @@ function CircularProgress({
|
|
|
3583
3427
|
]
|
|
3584
3428
|
}
|
|
3585
3429
|
),
|
|
3586
|
-
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
|
|
3587
3431
|
]
|
|
3588
3432
|
}
|
|
3589
3433
|
);
|
|
3590
3434
|
}
|
|
3591
3435
|
|
|
3592
3436
|
export {
|
|
3593
|
-
Select,
|
|
3594
|
-
SelectGroup,
|
|
3595
|
-
SelectValue,
|
|
3596
|
-
SelectTrigger,
|
|
3597
|
-
SelectContent,
|
|
3598
|
-
SelectLabel,
|
|
3599
|
-
SelectItem,
|
|
3600
|
-
SelectSeparator,
|
|
3601
|
-
SelectScrollUpButton,
|
|
3602
|
-
SelectScrollDownButton,
|
|
3603
3437
|
Input,
|
|
3604
3438
|
Textarea,
|
|
3605
3439
|
Label,
|