@trading-game/design-intelligence-layer 0.9.5 → 0.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +692 -593
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -5
- package/dist/index.d.ts +14 -5
- package/dist/index.js +697 -599
- package/dist/index.js.map +1 -1
- package/guides/design-system-guide/trading-game-ds-guide.md +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -176,7 +176,51 @@ import { AlertDialog as AlertDialogPrimitive } from "radix-ui";
|
|
|
176
176
|
// components/ui/button.tsx
|
|
177
177
|
import { cva as cva2 } from "class-variance-authority";
|
|
178
178
|
import { Slot } from "radix-ui";
|
|
179
|
-
|
|
179
|
+
|
|
180
|
+
// components/ui/spinner.tsx
|
|
181
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
182
|
+
var PILL_COUNT = 8;
|
|
183
|
+
function Spinner(_a) {
|
|
184
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
185
|
+
return /* @__PURE__ */ jsxs2(
|
|
186
|
+
"div",
|
|
187
|
+
__spreadProps(__spreadValues({
|
|
188
|
+
role: "status",
|
|
189
|
+
"aria-label": "Loading",
|
|
190
|
+
className: cn("relative inline-block size-4 text-current", className)
|
|
191
|
+
}, props), {
|
|
192
|
+
children: [
|
|
193
|
+
/* @__PURE__ */ jsx3("style", { children: `
|
|
194
|
+
@keyframes spinner-fade {
|
|
195
|
+
0% { opacity: 1; }
|
|
196
|
+
100% { opacity: 0.15; }
|
|
197
|
+
}
|
|
198
|
+
` }),
|
|
199
|
+
Array.from({ length: PILL_COUNT }, (_, i) => /* @__PURE__ */ jsx3(
|
|
200
|
+
"span",
|
|
201
|
+
{
|
|
202
|
+
style: {
|
|
203
|
+
position: "absolute",
|
|
204
|
+
left: "50%",
|
|
205
|
+
top: "0",
|
|
206
|
+
width: "12%",
|
|
207
|
+
height: "30%",
|
|
208
|
+
borderRadius: "9999px",
|
|
209
|
+
backgroundColor: "currentColor",
|
|
210
|
+
transformOrigin: "50% 167%",
|
|
211
|
+
transform: `translateX(-50%) rotate(${i * 45}deg)`,
|
|
212
|
+
animation: `spinner-fade 0.8s linear ${i * 0.8 / PILL_COUNT}s infinite`
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
i
|
|
216
|
+
))
|
|
217
|
+
]
|
|
218
|
+
})
|
|
219
|
+
);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
// components/ui/button.tsx
|
|
223
|
+
import { Fragment, jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
180
224
|
var buttonVariants = cva2(
|
|
181
225
|
"inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 active:opacity-60 disabled:pointer-events-none disabled:opacity-24 aria-invalid:border-destructive aria-invalid:ring-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 font-display font-bold",
|
|
182
226
|
{
|
|
@@ -205,47 +249,68 @@ var buttonVariants = cva2(
|
|
|
205
249
|
}
|
|
206
250
|
}
|
|
207
251
|
);
|
|
252
|
+
var spinnerSizeMap = {
|
|
253
|
+
lg: "size-5",
|
|
254
|
+
md: "size-4",
|
|
255
|
+
sm: "size-3.5",
|
|
256
|
+
xs: "size-3",
|
|
257
|
+
icon: "size-4",
|
|
258
|
+
"icon-lg": "size-4",
|
|
259
|
+
"icon-md": "size-4",
|
|
260
|
+
"icon-sm": "size-3.5",
|
|
261
|
+
"icon-xs": "size-3"
|
|
262
|
+
};
|
|
208
263
|
function Button(_a) {
|
|
209
264
|
var _b = _a, {
|
|
210
265
|
className,
|
|
211
266
|
variant = "primary",
|
|
212
267
|
size = "lg",
|
|
213
268
|
asChild = false,
|
|
214
|
-
loading = false
|
|
269
|
+
loading = false,
|
|
270
|
+
children
|
|
215
271
|
} = _b, props = __objRest(_b, [
|
|
216
272
|
"className",
|
|
217
273
|
"variant",
|
|
218
274
|
"size",
|
|
219
275
|
"asChild",
|
|
220
|
-
"loading"
|
|
276
|
+
"loading",
|
|
277
|
+
"children"
|
|
221
278
|
]);
|
|
222
279
|
const Comp = asChild ? Slot.Root : "button";
|
|
223
|
-
return /* @__PURE__ */
|
|
280
|
+
return /* @__PURE__ */ jsx4(
|
|
224
281
|
Comp,
|
|
225
|
-
__spreadValues({
|
|
282
|
+
__spreadProps(__spreadValues({
|
|
226
283
|
"data-slot": "button",
|
|
227
284
|
"data-variant": variant,
|
|
228
285
|
"data-size": size,
|
|
229
286
|
"data-loading": loading || void 0,
|
|
230
|
-
className: cn(
|
|
287
|
+
className: cn(
|
|
288
|
+
buttonVariants({ variant, size, className }),
|
|
289
|
+
loading && "pointer-events-none opacity-24 relative"
|
|
290
|
+
),
|
|
231
291
|
"aria-busy": loading || void 0
|
|
232
|
-
}, props)
|
|
292
|
+
}, props), {
|
|
293
|
+
children: loading ? /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
294
|
+
/* @__PURE__ */ jsx4("span", { className: "invisible inline-flex items-center gap-[inherit]", "aria-hidden": true, children }),
|
|
295
|
+
/* @__PURE__ */ jsx4("span", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx4(Spinner, { className: spinnerSizeMap[size != null ? size : "lg"] }) })
|
|
296
|
+
] }) : children
|
|
297
|
+
})
|
|
233
298
|
);
|
|
234
299
|
}
|
|
235
300
|
|
|
236
301
|
// components/ui/alert-dialog.tsx
|
|
237
|
-
import { jsx as
|
|
302
|
+
import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
238
303
|
function AlertDialog(_a) {
|
|
239
304
|
var props = __objRest(_a, []);
|
|
240
|
-
return /* @__PURE__ */
|
|
305
|
+
return /* @__PURE__ */ jsx5(AlertDialogPrimitive.Root, __spreadValues({ "data-slot": "alert-dialog" }, props));
|
|
241
306
|
}
|
|
242
307
|
function AlertDialogTrigger(_a) {
|
|
243
308
|
var props = __objRest(_a, []);
|
|
244
|
-
return /* @__PURE__ */
|
|
309
|
+
return /* @__PURE__ */ jsx5(AlertDialogPrimitive.Trigger, __spreadValues({ "data-slot": "alert-dialog-trigger" }, props));
|
|
245
310
|
}
|
|
246
311
|
function AlertDialogPortal(_a) {
|
|
247
312
|
var props = __objRest(_a, []);
|
|
248
|
-
return /* @__PURE__ */
|
|
313
|
+
return /* @__PURE__ */ jsx5(AlertDialogPrimitive.Portal, __spreadValues({ "data-slot": "alert-dialog-portal" }, props));
|
|
249
314
|
}
|
|
250
315
|
function AlertDialogOverlay(_a) {
|
|
251
316
|
var _b = _a, {
|
|
@@ -253,7 +318,7 @@ function AlertDialogOverlay(_a) {
|
|
|
253
318
|
} = _b, props = __objRest(_b, [
|
|
254
319
|
"className"
|
|
255
320
|
]);
|
|
256
|
-
return /* @__PURE__ */
|
|
321
|
+
return /* @__PURE__ */ jsx5(
|
|
257
322
|
AlertDialogPrimitive.Overlay,
|
|
258
323
|
__spreadValues({
|
|
259
324
|
"data-slot": "alert-dialog-overlay",
|
|
@@ -272,9 +337,9 @@ function AlertDialogContent(_a) {
|
|
|
272
337
|
"className",
|
|
273
338
|
"size"
|
|
274
339
|
]);
|
|
275
|
-
return /* @__PURE__ */
|
|
276
|
-
/* @__PURE__ */
|
|
277
|
-
/* @__PURE__ */
|
|
340
|
+
return /* @__PURE__ */ jsxs4(AlertDialogPortal, { children: [
|
|
341
|
+
/* @__PURE__ */ jsx5(AlertDialogOverlay, {}),
|
|
342
|
+
/* @__PURE__ */ jsx5(
|
|
278
343
|
AlertDialogPrimitive.Content,
|
|
279
344
|
__spreadValues({
|
|
280
345
|
"data-slot": "alert-dialog-content",
|
|
@@ -293,7 +358,7 @@ function AlertDialogHeader(_a) {
|
|
|
293
358
|
} = _b, props = __objRest(_b, [
|
|
294
359
|
"className"
|
|
295
360
|
]);
|
|
296
|
-
return /* @__PURE__ */
|
|
361
|
+
return /* @__PURE__ */ jsx5(
|
|
297
362
|
"div",
|
|
298
363
|
__spreadValues({
|
|
299
364
|
"data-slot": "alert-dialog-header",
|
|
@@ -310,7 +375,7 @@ function AlertDialogFooter(_a) {
|
|
|
310
375
|
} = _b, props = __objRest(_b, [
|
|
311
376
|
"className"
|
|
312
377
|
]);
|
|
313
|
-
return /* @__PURE__ */
|
|
378
|
+
return /* @__PURE__ */ jsx5(
|
|
314
379
|
"div",
|
|
315
380
|
__spreadValues({
|
|
316
381
|
"data-slot": "alert-dialog-footer",
|
|
@@ -327,7 +392,7 @@ function AlertDialogTitle(_a) {
|
|
|
327
392
|
} = _b, props = __objRest(_b, [
|
|
328
393
|
"className"
|
|
329
394
|
]);
|
|
330
|
-
return /* @__PURE__ */
|
|
395
|
+
return /* @__PURE__ */ jsx5(
|
|
331
396
|
AlertDialogPrimitive.Title,
|
|
332
397
|
__spreadValues({
|
|
333
398
|
"data-slot": "alert-dialog-title",
|
|
@@ -344,7 +409,7 @@ function AlertDialogDescription(_a) {
|
|
|
344
409
|
} = _b, props = __objRest(_b, [
|
|
345
410
|
"className"
|
|
346
411
|
]);
|
|
347
|
-
return /* @__PURE__ */
|
|
412
|
+
return /* @__PURE__ */ jsx5(
|
|
348
413
|
AlertDialogPrimitive.Description,
|
|
349
414
|
__spreadValues({
|
|
350
415
|
"data-slot": "alert-dialog-description",
|
|
@@ -358,7 +423,7 @@ function AlertDialogMedia(_a) {
|
|
|
358
423
|
} = _b, props = __objRest(_b, [
|
|
359
424
|
"className"
|
|
360
425
|
]);
|
|
361
|
-
return /* @__PURE__ */
|
|
426
|
+
return /* @__PURE__ */ jsx5(
|
|
362
427
|
"div",
|
|
363
428
|
__spreadValues({
|
|
364
429
|
"data-slot": "alert-dialog-media",
|
|
@@ -379,7 +444,7 @@ function AlertDialogAction(_a) {
|
|
|
379
444
|
"variant",
|
|
380
445
|
"size"
|
|
381
446
|
]);
|
|
382
|
-
return /* @__PURE__ */
|
|
447
|
+
return /* @__PURE__ */ jsx5(Button, { variant, size, asChild: true, className: cn("group-data-[size=sm]/alert-dialog-content:w-full", className), children: /* @__PURE__ */ jsx5(
|
|
383
448
|
AlertDialogPrimitive.Action,
|
|
384
449
|
__spreadValues({
|
|
385
450
|
"data-slot": "alert-dialog-action"
|
|
@@ -396,7 +461,7 @@ function AlertDialogCancel(_a) {
|
|
|
396
461
|
"variant",
|
|
397
462
|
"size"
|
|
398
463
|
]);
|
|
399
|
-
return /* @__PURE__ */
|
|
464
|
+
return /* @__PURE__ */ jsx5(Button, { variant, size, asChild: true, className: cn("group-data-[size=sm]/alert-dialog-content:w-full", className), children: /* @__PURE__ */ jsx5(
|
|
400
465
|
AlertDialogPrimitive.Cancel,
|
|
401
466
|
__spreadValues({
|
|
402
467
|
"data-slot": "alert-dialog-cancel"
|
|
@@ -406,15 +471,15 @@ function AlertDialogCancel(_a) {
|
|
|
406
471
|
|
|
407
472
|
// components/ui/aspect-ratio.tsx
|
|
408
473
|
import { AspectRatio as AspectRatioPrimitive } from "radix-ui";
|
|
409
|
-
import { jsx as
|
|
474
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
410
475
|
function AspectRatio(_a) {
|
|
411
476
|
var props = __objRest(_a, []);
|
|
412
|
-
return /* @__PURE__ */
|
|
477
|
+
return /* @__PURE__ */ jsx6(AspectRatioPrimitive.Root, __spreadValues({ "data-slot": "aspect-ratio" }, props));
|
|
413
478
|
}
|
|
414
479
|
|
|
415
480
|
// components/ui/avatar.tsx
|
|
416
481
|
import { Avatar as AvatarPrimitive } from "radix-ui";
|
|
417
|
-
import { jsx as
|
|
482
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
418
483
|
function Avatar(_a) {
|
|
419
484
|
var _b = _a, {
|
|
420
485
|
className,
|
|
@@ -423,7 +488,7 @@ function Avatar(_a) {
|
|
|
423
488
|
"className",
|
|
424
489
|
"size"
|
|
425
490
|
]);
|
|
426
|
-
return /* @__PURE__ */
|
|
491
|
+
return /* @__PURE__ */ jsx7(
|
|
427
492
|
AvatarPrimitive.Root,
|
|
428
493
|
__spreadValues({
|
|
429
494
|
"data-slot": "avatar",
|
|
@@ -441,7 +506,7 @@ function AvatarImage(_a) {
|
|
|
441
506
|
} = _b, props = __objRest(_b, [
|
|
442
507
|
"className"
|
|
443
508
|
]);
|
|
444
|
-
return /* @__PURE__ */
|
|
509
|
+
return /* @__PURE__ */ jsx7(
|
|
445
510
|
AvatarPrimitive.Image,
|
|
446
511
|
__spreadValues({
|
|
447
512
|
"data-slot": "avatar-image",
|
|
@@ -455,7 +520,7 @@ function AvatarFallback(_a) {
|
|
|
455
520
|
} = _b, props = __objRest(_b, [
|
|
456
521
|
"className"
|
|
457
522
|
]);
|
|
458
|
-
return /* @__PURE__ */
|
|
523
|
+
return /* @__PURE__ */ jsx7(
|
|
459
524
|
AvatarPrimitive.Fallback,
|
|
460
525
|
__spreadValues({
|
|
461
526
|
"data-slot": "avatar-fallback",
|
|
@@ -468,7 +533,7 @@ function AvatarFallback(_a) {
|
|
|
468
533
|
}
|
|
469
534
|
function AvatarBadge(_a) {
|
|
470
535
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
471
|
-
return /* @__PURE__ */
|
|
536
|
+
return /* @__PURE__ */ jsx7(
|
|
472
537
|
"span",
|
|
473
538
|
__spreadValues({
|
|
474
539
|
"data-slot": "avatar-badge",
|
|
@@ -485,7 +550,7 @@ function AvatarBadge(_a) {
|
|
|
485
550
|
}
|
|
486
551
|
function AvatarGroup(_a) {
|
|
487
552
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
488
|
-
return /* @__PURE__ */
|
|
553
|
+
return /* @__PURE__ */ jsx7(
|
|
489
554
|
"div",
|
|
490
555
|
__spreadValues({
|
|
491
556
|
"data-slot": "avatar-group",
|
|
@@ -502,7 +567,7 @@ function AvatarGroupCount(_a) {
|
|
|
502
567
|
} = _b, props = __objRest(_b, [
|
|
503
568
|
"className"
|
|
504
569
|
]);
|
|
505
|
-
return /* @__PURE__ */
|
|
570
|
+
return /* @__PURE__ */ jsx7(
|
|
506
571
|
"div",
|
|
507
572
|
__spreadValues({
|
|
508
573
|
"data-slot": "avatar-group-count",
|
|
@@ -517,7 +582,7 @@ function AvatarGroupCount(_a) {
|
|
|
517
582
|
// components/ui/badge.tsx
|
|
518
583
|
import { cva as cva3 } from "class-variance-authority";
|
|
519
584
|
import { Slot as Slot2 } from "radix-ui";
|
|
520
|
-
import { jsx as
|
|
585
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
521
586
|
var badgeVariants = cva3(
|
|
522
587
|
"inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent text-xs font-display font-semibold tracking-wide whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [&>svg]:pointer-events-none [&>svg]:size-3",
|
|
523
588
|
{
|
|
@@ -564,7 +629,7 @@ function Badge(_a) {
|
|
|
564
629
|
"asChild"
|
|
565
630
|
]);
|
|
566
631
|
const Comp = asChild ? Slot2.Root : "span";
|
|
567
|
-
return /* @__PURE__ */
|
|
632
|
+
return /* @__PURE__ */ jsx8(
|
|
568
633
|
Comp,
|
|
569
634
|
__spreadValues({
|
|
570
635
|
"data-slot": "badge",
|
|
@@ -577,14 +642,14 @@ function Badge(_a) {
|
|
|
577
642
|
// components/ui/breadcrumb.tsx
|
|
578
643
|
import { ChevronRight, MoreHorizontal } from "lucide-react";
|
|
579
644
|
import { Slot as Slot3 } from "radix-ui";
|
|
580
|
-
import { jsx as
|
|
645
|
+
import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
581
646
|
function Breadcrumb(_a) {
|
|
582
647
|
var props = __objRest(_a, []);
|
|
583
|
-
return /* @__PURE__ */
|
|
648
|
+
return /* @__PURE__ */ jsx9("nav", __spreadValues({ "aria-label": "breadcrumb", "data-slot": "breadcrumb" }, props));
|
|
584
649
|
}
|
|
585
650
|
function BreadcrumbList(_a) {
|
|
586
651
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
587
|
-
return /* @__PURE__ */
|
|
652
|
+
return /* @__PURE__ */ jsx9(
|
|
588
653
|
"ol",
|
|
589
654
|
__spreadValues({
|
|
590
655
|
"data-slot": "breadcrumb-list",
|
|
@@ -597,7 +662,7 @@ function BreadcrumbList(_a) {
|
|
|
597
662
|
}
|
|
598
663
|
function BreadcrumbItem(_a) {
|
|
599
664
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
600
|
-
return /* @__PURE__ */
|
|
665
|
+
return /* @__PURE__ */ jsx9(
|
|
601
666
|
"li",
|
|
602
667
|
__spreadValues({
|
|
603
668
|
"data-slot": "breadcrumb-item",
|
|
@@ -614,7 +679,7 @@ function BreadcrumbLink(_a) {
|
|
|
614
679
|
"className"
|
|
615
680
|
]);
|
|
616
681
|
const Comp = asChild ? Slot3.Root : "a";
|
|
617
|
-
return /* @__PURE__ */
|
|
682
|
+
return /* @__PURE__ */ jsx9(
|
|
618
683
|
Comp,
|
|
619
684
|
__spreadValues({
|
|
620
685
|
"data-slot": "breadcrumb-link",
|
|
@@ -624,7 +689,7 @@ function BreadcrumbLink(_a) {
|
|
|
624
689
|
}
|
|
625
690
|
function BreadcrumbPage(_a) {
|
|
626
691
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
627
|
-
return /* @__PURE__ */
|
|
692
|
+
return /* @__PURE__ */ jsx9(
|
|
628
693
|
"span",
|
|
629
694
|
__spreadValues({
|
|
630
695
|
"data-slot": "breadcrumb-page",
|
|
@@ -643,7 +708,7 @@ function BreadcrumbSeparator(_a) {
|
|
|
643
708
|
"children",
|
|
644
709
|
"className"
|
|
645
710
|
]);
|
|
646
|
-
return /* @__PURE__ */
|
|
711
|
+
return /* @__PURE__ */ jsx9(
|
|
647
712
|
"li",
|
|
648
713
|
__spreadProps(__spreadValues({
|
|
649
714
|
"data-slot": "breadcrumb-separator",
|
|
@@ -651,7 +716,7 @@ function BreadcrumbSeparator(_a) {
|
|
|
651
716
|
"aria-hidden": "true",
|
|
652
717
|
className: cn("[&>svg]:size-3.5", className)
|
|
653
718
|
}, props), {
|
|
654
|
-
children: children != null ? children : /* @__PURE__ */
|
|
719
|
+
children: children != null ? children : /* @__PURE__ */ jsx9(ChevronRight, {})
|
|
655
720
|
})
|
|
656
721
|
);
|
|
657
722
|
}
|
|
@@ -661,7 +726,7 @@ function BreadcrumbEllipsis(_a) {
|
|
|
661
726
|
} = _b, props = __objRest(_b, [
|
|
662
727
|
"className"
|
|
663
728
|
]);
|
|
664
|
-
return /* @__PURE__ */
|
|
729
|
+
return /* @__PURE__ */ jsxs5(
|
|
665
730
|
"span",
|
|
666
731
|
__spreadProps(__spreadValues({
|
|
667
732
|
"data-slot": "breadcrumb-ellipsis",
|
|
@@ -670,8 +735,8 @@ function BreadcrumbEllipsis(_a) {
|
|
|
670
735
|
className: cn("flex size-9 items-center justify-center", className)
|
|
671
736
|
}, props), {
|
|
672
737
|
children: [
|
|
673
|
-
/* @__PURE__ */
|
|
674
|
-
/* @__PURE__ */
|
|
738
|
+
/* @__PURE__ */ jsx9(MoreHorizontal, { className: "size-4" }),
|
|
739
|
+
/* @__PURE__ */ jsx9("span", { className: "sr-only", children: "More" })
|
|
675
740
|
]
|
|
676
741
|
})
|
|
677
742
|
);
|
|
@@ -688,7 +753,7 @@ import {
|
|
|
688
753
|
DayPicker,
|
|
689
754
|
getDefaultClassNames
|
|
690
755
|
} from "react-day-picker";
|
|
691
|
-
import { jsx as
|
|
756
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
692
757
|
function Calendar(_a) {
|
|
693
758
|
var _b = _a, {
|
|
694
759
|
className,
|
|
@@ -708,7 +773,7 @@ function Calendar(_a) {
|
|
|
708
773
|
"components"
|
|
709
774
|
]);
|
|
710
775
|
const defaultClassNames = getDefaultClassNames();
|
|
711
|
-
return /* @__PURE__ */
|
|
776
|
+
return /* @__PURE__ */ jsx10(
|
|
712
777
|
DayPicker,
|
|
713
778
|
__spreadValues({
|
|
714
779
|
showOutsideDays,
|
|
@@ -807,7 +872,7 @@ function Calendar(_a) {
|
|
|
807
872
|
components: __spreadValues({
|
|
808
873
|
Root: (_a2) => {
|
|
809
874
|
var _b2 = _a2, { className: className2, rootRef } = _b2, props2 = __objRest(_b2, ["className", "rootRef"]);
|
|
810
|
-
return /* @__PURE__ */
|
|
875
|
+
return /* @__PURE__ */ jsx10(
|
|
811
876
|
"div",
|
|
812
877
|
__spreadValues({
|
|
813
878
|
"data-slot": "calendar",
|
|
@@ -819,22 +884,22 @@ function Calendar(_a) {
|
|
|
819
884
|
Chevron: (_c) => {
|
|
820
885
|
var _d = _c, { className: className2, orientation } = _d, props2 = __objRest(_d, ["className", "orientation"]);
|
|
821
886
|
if (orientation === "left") {
|
|
822
|
-
return /* @__PURE__ */
|
|
887
|
+
return /* @__PURE__ */ jsx10(ChevronLeftIcon, __spreadValues({ className: cn("size-4", className2) }, props2));
|
|
823
888
|
}
|
|
824
889
|
if (orientation === "right") {
|
|
825
|
-
return /* @__PURE__ */
|
|
890
|
+
return /* @__PURE__ */ jsx10(
|
|
826
891
|
ChevronRightIcon,
|
|
827
892
|
__spreadValues({
|
|
828
893
|
className: cn("size-4", className2)
|
|
829
894
|
}, props2)
|
|
830
895
|
);
|
|
831
896
|
}
|
|
832
|
-
return /* @__PURE__ */
|
|
897
|
+
return /* @__PURE__ */ jsx10(ChevronDownIcon2, __spreadValues({ className: cn("size-4", className2) }, props2));
|
|
833
898
|
},
|
|
834
899
|
DayButton: CalendarDayButton,
|
|
835
900
|
WeekNumber: (_e) => {
|
|
836
901
|
var _f = _e, { children } = _f, props2 = __objRest(_f, ["children"]);
|
|
837
|
-
return /* @__PURE__ */
|
|
902
|
+
return /* @__PURE__ */ jsx10("td", __spreadProps(__spreadValues({}, props2), { children: /* @__PURE__ */ jsx10("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children }) }));
|
|
838
903
|
}
|
|
839
904
|
}, components)
|
|
840
905
|
}, props)
|
|
@@ -856,7 +921,7 @@ function CalendarDayButton(_a) {
|
|
|
856
921
|
var _a2;
|
|
857
922
|
if (modifiers.focused) (_a2 = ref.current) == null ? void 0 : _a2.focus();
|
|
858
923
|
}, [modifiers.focused]);
|
|
859
|
-
return /* @__PURE__ */
|
|
924
|
+
return /* @__PURE__ */ jsx10(
|
|
860
925
|
Button,
|
|
861
926
|
__spreadValues({
|
|
862
927
|
ref,
|
|
@@ -878,10 +943,10 @@ function CalendarDayButton(_a) {
|
|
|
878
943
|
}
|
|
879
944
|
|
|
880
945
|
// components/ui/card.tsx
|
|
881
|
-
import { jsx as
|
|
946
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
882
947
|
function Card(_a) {
|
|
883
948
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
884
|
-
return /* @__PURE__ */
|
|
949
|
+
return /* @__PURE__ */ jsx11(
|
|
885
950
|
"div",
|
|
886
951
|
__spreadValues({
|
|
887
952
|
"data-slot": "card",
|
|
@@ -894,7 +959,7 @@ function Card(_a) {
|
|
|
894
959
|
}
|
|
895
960
|
function CardHeader(_a) {
|
|
896
961
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
897
|
-
return /* @__PURE__ */
|
|
962
|
+
return /* @__PURE__ */ jsx11(
|
|
898
963
|
"div",
|
|
899
964
|
__spreadValues({
|
|
900
965
|
"data-slot": "card-header",
|
|
@@ -907,7 +972,7 @@ function CardHeader(_a) {
|
|
|
907
972
|
}
|
|
908
973
|
function CardTitle(_a) {
|
|
909
974
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
910
|
-
return /* @__PURE__ */
|
|
975
|
+
return /* @__PURE__ */ jsx11(
|
|
911
976
|
"div",
|
|
912
977
|
__spreadValues({
|
|
913
978
|
"data-slot": "card-title",
|
|
@@ -917,7 +982,7 @@ function CardTitle(_a) {
|
|
|
917
982
|
}
|
|
918
983
|
function CardDescription(_a) {
|
|
919
984
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
920
|
-
return /* @__PURE__ */
|
|
985
|
+
return /* @__PURE__ */ jsx11(
|
|
921
986
|
"div",
|
|
922
987
|
__spreadValues({
|
|
923
988
|
"data-slot": "card-description",
|
|
@@ -927,7 +992,7 @@ function CardDescription(_a) {
|
|
|
927
992
|
}
|
|
928
993
|
function CardAction(_a) {
|
|
929
994
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
930
|
-
return /* @__PURE__ */
|
|
995
|
+
return /* @__PURE__ */ jsx11(
|
|
931
996
|
"div",
|
|
932
997
|
__spreadValues({
|
|
933
998
|
"data-slot": "card-action",
|
|
@@ -940,7 +1005,7 @@ function CardAction(_a) {
|
|
|
940
1005
|
}
|
|
941
1006
|
function CardContent(_a) {
|
|
942
1007
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
943
|
-
return /* @__PURE__ */
|
|
1008
|
+
return /* @__PURE__ */ jsx11(
|
|
944
1009
|
"div",
|
|
945
1010
|
__spreadValues({
|
|
946
1011
|
"data-slot": "card-content",
|
|
@@ -950,7 +1015,7 @@ function CardContent(_a) {
|
|
|
950
1015
|
}
|
|
951
1016
|
function CardFooter(_a) {
|
|
952
1017
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
953
|
-
return /* @__PURE__ */
|
|
1018
|
+
return /* @__PURE__ */ jsx11(
|
|
954
1019
|
"div",
|
|
955
1020
|
__spreadValues({
|
|
956
1021
|
"data-slot": "card-footer",
|
|
@@ -963,7 +1028,7 @@ function CardFooter(_a) {
|
|
|
963
1028
|
import * as React2 from "react";
|
|
964
1029
|
import useEmblaCarousel from "embla-carousel-react";
|
|
965
1030
|
import { ArrowLeft, ArrowRight } from "lucide-react";
|
|
966
|
-
import { jsx as
|
|
1031
|
+
import { jsx as jsx12, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
967
1032
|
var CarouselContext = React2.createContext(null);
|
|
968
1033
|
function useCarousel() {
|
|
969
1034
|
const context = React2.useContext(CarouselContext);
|
|
@@ -1032,7 +1097,7 @@ function Carousel(_a) {
|
|
|
1032
1097
|
api == null ? void 0 : api.off("select", onSelect);
|
|
1033
1098
|
};
|
|
1034
1099
|
}, [api, onSelect]);
|
|
1035
|
-
return /* @__PURE__ */
|
|
1100
|
+
return /* @__PURE__ */ jsx12(
|
|
1036
1101
|
CarouselContext.Provider,
|
|
1037
1102
|
{
|
|
1038
1103
|
value: {
|
|
@@ -1045,7 +1110,7 @@ function Carousel(_a) {
|
|
|
1045
1110
|
canScrollPrev,
|
|
1046
1111
|
canScrollNext
|
|
1047
1112
|
},
|
|
1048
|
-
children: /* @__PURE__ */
|
|
1113
|
+
children: /* @__PURE__ */ jsx12(
|
|
1049
1114
|
"div",
|
|
1050
1115
|
__spreadProps(__spreadValues({
|
|
1051
1116
|
onKeyDownCapture: handleKeyDown,
|
|
@@ -1063,13 +1128,13 @@ function Carousel(_a) {
|
|
|
1063
1128
|
function CarouselContent(_a) {
|
|
1064
1129
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1065
1130
|
const { carouselRef, orientation } = useCarousel();
|
|
1066
|
-
return /* @__PURE__ */
|
|
1131
|
+
return /* @__PURE__ */ jsx12(
|
|
1067
1132
|
"div",
|
|
1068
1133
|
{
|
|
1069
1134
|
ref: carouselRef,
|
|
1070
1135
|
className: "overflow-hidden",
|
|
1071
1136
|
"data-slot": "carousel-content",
|
|
1072
|
-
children: /* @__PURE__ */
|
|
1137
|
+
children: /* @__PURE__ */ jsx12(
|
|
1073
1138
|
"div",
|
|
1074
1139
|
__spreadValues({
|
|
1075
1140
|
className: cn(
|
|
@@ -1085,7 +1150,7 @@ function CarouselContent(_a) {
|
|
|
1085
1150
|
function CarouselItem(_a) {
|
|
1086
1151
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1087
1152
|
const { orientation } = useCarousel();
|
|
1088
|
-
return /* @__PURE__ */
|
|
1153
|
+
return /* @__PURE__ */ jsx12(
|
|
1089
1154
|
"div",
|
|
1090
1155
|
__spreadValues({
|
|
1091
1156
|
role: "group",
|
|
@@ -1110,7 +1175,7 @@ function CarouselPrevious(_a) {
|
|
|
1110
1175
|
"size"
|
|
1111
1176
|
]);
|
|
1112
1177
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
1113
|
-
return /* @__PURE__ */
|
|
1178
|
+
return /* @__PURE__ */ jsxs6(
|
|
1114
1179
|
Button,
|
|
1115
1180
|
__spreadProps(__spreadValues({
|
|
1116
1181
|
"data-slot": "carousel-previous",
|
|
@@ -1125,8 +1190,8 @@ function CarouselPrevious(_a) {
|
|
|
1125
1190
|
onClick: scrollPrev
|
|
1126
1191
|
}, props), {
|
|
1127
1192
|
children: [
|
|
1128
|
-
/* @__PURE__ */
|
|
1129
|
-
/* @__PURE__ */
|
|
1193
|
+
/* @__PURE__ */ jsx12(ArrowLeft, {}),
|
|
1194
|
+
/* @__PURE__ */ jsx12("span", { className: "sr-only", children: "Previous slide" })
|
|
1130
1195
|
]
|
|
1131
1196
|
})
|
|
1132
1197
|
);
|
|
@@ -1142,7 +1207,7 @@ function CarouselNext(_a) {
|
|
|
1142
1207
|
"size"
|
|
1143
1208
|
]);
|
|
1144
1209
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
1145
|
-
return /* @__PURE__ */
|
|
1210
|
+
return /* @__PURE__ */ jsxs6(
|
|
1146
1211
|
Button,
|
|
1147
1212
|
__spreadProps(__spreadValues({
|
|
1148
1213
|
"data-slot": "carousel-next",
|
|
@@ -1157,8 +1222,8 @@ function CarouselNext(_a) {
|
|
|
1157
1222
|
onClick: scrollNext
|
|
1158
1223
|
}, props), {
|
|
1159
1224
|
children: [
|
|
1160
|
-
/* @__PURE__ */
|
|
1161
|
-
/* @__PURE__ */
|
|
1225
|
+
/* @__PURE__ */ jsx12(ArrowRight, {}),
|
|
1226
|
+
/* @__PURE__ */ jsx12("span", { className: "sr-only", children: "Next slide" })
|
|
1162
1227
|
]
|
|
1163
1228
|
})
|
|
1164
1229
|
);
|
|
@@ -1167,7 +1232,7 @@ function CarouselNext(_a) {
|
|
|
1167
1232
|
// components/ui/chart.tsx
|
|
1168
1233
|
import * as React3 from "react";
|
|
1169
1234
|
import * as RechartsPrimitive from "recharts";
|
|
1170
|
-
import { Fragment, jsx as
|
|
1235
|
+
import { Fragment as Fragment2, jsx as jsx13, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1171
1236
|
var THEMES = { light: "" };
|
|
1172
1237
|
var ChartContext = React3.createContext(null);
|
|
1173
1238
|
function useChart() {
|
|
@@ -1191,7 +1256,7 @@ function ChartContainer(_a) {
|
|
|
1191
1256
|
]);
|
|
1192
1257
|
const uniqueId = React3.useId();
|
|
1193
1258
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
1194
|
-
return /* @__PURE__ */
|
|
1259
|
+
return /* @__PURE__ */ jsx13(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxs7(
|
|
1195
1260
|
"div",
|
|
1196
1261
|
__spreadProps(__spreadValues({
|
|
1197
1262
|
"data-slot": "chart",
|
|
@@ -1202,8 +1267,8 @@ function ChartContainer(_a) {
|
|
|
1202
1267
|
)
|
|
1203
1268
|
}, props), {
|
|
1204
1269
|
children: [
|
|
1205
|
-
/* @__PURE__ */
|
|
1206
|
-
/* @__PURE__ */
|
|
1270
|
+
/* @__PURE__ */ jsx13(ChartStyle, { id: chartId, config }),
|
|
1271
|
+
/* @__PURE__ */ jsx13(RechartsPrimitive.ResponsiveContainer, { children })
|
|
1207
1272
|
]
|
|
1208
1273
|
})
|
|
1209
1274
|
) });
|
|
@@ -1215,7 +1280,7 @@ var ChartStyle = ({ id, config }) => {
|
|
|
1215
1280
|
if (!colorConfig.length) {
|
|
1216
1281
|
return null;
|
|
1217
1282
|
}
|
|
1218
|
-
return /* @__PURE__ */
|
|
1283
|
+
return /* @__PURE__ */ jsx13(
|
|
1219
1284
|
"style",
|
|
1220
1285
|
{
|
|
1221
1286
|
dangerouslySetInnerHTML: {
|
|
@@ -1261,12 +1326,12 @@ function ChartTooltipContent({
|
|
|
1261
1326
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1262
1327
|
const value = !labelKey && typeof label === "string" ? ((_a = config[label]) == null ? void 0 : _a.label) || label : itemConfig == null ? void 0 : itemConfig.label;
|
|
1263
1328
|
if (labelFormatter) {
|
|
1264
|
-
return /* @__PURE__ */
|
|
1329
|
+
return /* @__PURE__ */ jsx13("div", { className: cn("font-medium", labelClassName), children: labelFormatter(value, payload) });
|
|
1265
1330
|
}
|
|
1266
1331
|
if (!value) {
|
|
1267
1332
|
return null;
|
|
1268
1333
|
}
|
|
1269
|
-
return /* @__PURE__ */
|
|
1334
|
+
return /* @__PURE__ */ jsx13("div", { className: cn("font-medium", labelClassName), children: value });
|
|
1270
1335
|
}, [
|
|
1271
1336
|
label,
|
|
1272
1337
|
labelFormatter,
|
|
@@ -1280,7 +1345,7 @@ function ChartTooltipContent({
|
|
|
1280
1345
|
return null;
|
|
1281
1346
|
}
|
|
1282
1347
|
const nestLabel = payload.length === 1 && indicator !== "dot";
|
|
1283
|
-
return /* @__PURE__ */
|
|
1348
|
+
return /* @__PURE__ */ jsxs7(
|
|
1284
1349
|
"div",
|
|
1285
1350
|
{
|
|
1286
1351
|
className: cn(
|
|
@@ -1289,19 +1354,19 @@ function ChartTooltipContent({
|
|
|
1289
1354
|
),
|
|
1290
1355
|
children: [
|
|
1291
1356
|
!nestLabel ? tooltipLabel : null,
|
|
1292
|
-
/* @__PURE__ */
|
|
1357
|
+
/* @__PURE__ */ jsx13("div", { className: "grid gap-1.5", children: payload.filter((item) => item.type !== "none").map((item, index) => {
|
|
1293
1358
|
const key = `${nameKey || item.name || item.dataKey || "value"}`;
|
|
1294
1359
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1295
1360
|
const indicatorColor = color || item.payload.fill || item.color;
|
|
1296
|
-
return /* @__PURE__ */
|
|
1361
|
+
return /* @__PURE__ */ jsx13(
|
|
1297
1362
|
"div",
|
|
1298
1363
|
{
|
|
1299
1364
|
className: cn(
|
|
1300
1365
|
"flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-on-subtle",
|
|
1301
1366
|
indicator === "dot" && "items-center"
|
|
1302
1367
|
),
|
|
1303
|
-
children: formatter && (item == null ? void 0 : item.value) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */
|
|
1304
|
-
(itemConfig == null ? void 0 : itemConfig.icon) ? /* @__PURE__ */
|
|
1368
|
+
children: formatter && (item == null ? void 0 : item.value) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ jsxs7(Fragment2, { children: [
|
|
1369
|
+
(itemConfig == null ? void 0 : itemConfig.icon) ? /* @__PURE__ */ jsx13(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ jsx13(
|
|
1305
1370
|
"div",
|
|
1306
1371
|
{
|
|
1307
1372
|
className: cn(
|
|
@@ -1319,7 +1384,7 @@ function ChartTooltipContent({
|
|
|
1319
1384
|
}
|
|
1320
1385
|
}
|
|
1321
1386
|
),
|
|
1322
|
-
/* @__PURE__ */
|
|
1387
|
+
/* @__PURE__ */ jsxs7(
|
|
1323
1388
|
"div",
|
|
1324
1389
|
{
|
|
1325
1390
|
className: cn(
|
|
@@ -1327,11 +1392,11 @@ function ChartTooltipContent({
|
|
|
1327
1392
|
nestLabel ? "items-end" : "items-center"
|
|
1328
1393
|
),
|
|
1329
1394
|
children: [
|
|
1330
|
-
/* @__PURE__ */
|
|
1395
|
+
/* @__PURE__ */ jsxs7("div", { className: "grid gap-1.5", children: [
|
|
1331
1396
|
nestLabel ? tooltipLabel : null,
|
|
1332
|
-
/* @__PURE__ */
|
|
1397
|
+
/* @__PURE__ */ jsx13("span", { className: "text-on-subtle", children: (itemConfig == null ? void 0 : itemConfig.label) || item.name })
|
|
1333
1398
|
] }),
|
|
1334
|
-
item.value && /* @__PURE__ */
|
|
1399
|
+
item.value && /* @__PURE__ */ jsx13("span", { className: "font-mono font-medium text-on-prominent tabular-nums", children: item.value.toLocaleString() })
|
|
1335
1400
|
]
|
|
1336
1401
|
}
|
|
1337
1402
|
)
|
|
@@ -1356,7 +1421,7 @@ function ChartLegendContent({
|
|
|
1356
1421
|
if (!(payload == null ? void 0 : payload.length)) {
|
|
1357
1422
|
return null;
|
|
1358
1423
|
}
|
|
1359
|
-
return /* @__PURE__ */
|
|
1424
|
+
return /* @__PURE__ */ jsx13(
|
|
1360
1425
|
"div",
|
|
1361
1426
|
{
|
|
1362
1427
|
className: cn(
|
|
@@ -1367,14 +1432,14 @@ function ChartLegendContent({
|
|
|
1367
1432
|
children: payload.filter((item) => item.type !== "none").map((item) => {
|
|
1368
1433
|
const key = `${nameKey || item.dataKey || "value"}`;
|
|
1369
1434
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1370
|
-
return /* @__PURE__ */
|
|
1435
|
+
return /* @__PURE__ */ jsxs7(
|
|
1371
1436
|
"div",
|
|
1372
1437
|
{
|
|
1373
1438
|
className: cn(
|
|
1374
1439
|
"flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-on-subtle"
|
|
1375
1440
|
),
|
|
1376
1441
|
children: [
|
|
1377
|
-
(itemConfig == null ? void 0 : itemConfig.icon) && !hideIcon ? /* @__PURE__ */
|
|
1442
|
+
(itemConfig == null ? void 0 : itemConfig.icon) && !hideIcon ? /* @__PURE__ */ jsx13(itemConfig.icon, {}) : /* @__PURE__ */ jsx13(
|
|
1378
1443
|
"div",
|
|
1379
1444
|
{
|
|
1380
1445
|
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
@@ -1409,14 +1474,14 @@ function getPayloadConfigFromPayload(config, payload, key) {
|
|
|
1409
1474
|
// components/ui/checkbox.tsx
|
|
1410
1475
|
import { CheckIcon } from "lucide-react";
|
|
1411
1476
|
import { Checkbox as CheckboxPrimitive } from "radix-ui";
|
|
1412
|
-
import { jsx as
|
|
1477
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
1413
1478
|
function Checkbox(_a) {
|
|
1414
1479
|
var _b = _a, {
|
|
1415
1480
|
className
|
|
1416
1481
|
} = _b, props = __objRest(_b, [
|
|
1417
1482
|
"className"
|
|
1418
1483
|
]);
|
|
1419
|
-
return /* @__PURE__ */
|
|
1484
|
+
return /* @__PURE__ */ jsx14(
|
|
1420
1485
|
CheckboxPrimitive.Root,
|
|
1421
1486
|
__spreadProps(__spreadValues({
|
|
1422
1487
|
"data-slot": "checkbox",
|
|
@@ -1425,12 +1490,12 @@ function Checkbox(_a) {
|
|
|
1425
1490
|
className
|
|
1426
1491
|
)
|
|
1427
1492
|
}, props), {
|
|
1428
|
-
children: /* @__PURE__ */
|
|
1493
|
+
children: /* @__PURE__ */ jsx14(
|
|
1429
1494
|
CheckboxPrimitive.Indicator,
|
|
1430
1495
|
{
|
|
1431
1496
|
"data-slot": "checkbox-indicator",
|
|
1432
1497
|
className: "grid place-content-center text-current transition-none",
|
|
1433
|
-
children: /* @__PURE__ */
|
|
1498
|
+
children: /* @__PURE__ */ jsx14(CheckIcon, { className: "size-3.5" })
|
|
1434
1499
|
}
|
|
1435
1500
|
)
|
|
1436
1501
|
})
|
|
@@ -1439,14 +1504,14 @@ function Checkbox(_a) {
|
|
|
1439
1504
|
|
|
1440
1505
|
// components/ui/collapsible.tsx
|
|
1441
1506
|
import { Collapsible as CollapsiblePrimitive } from "radix-ui";
|
|
1442
|
-
import { jsx as
|
|
1507
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
1443
1508
|
function Collapsible(_a) {
|
|
1444
1509
|
var props = __objRest(_a, []);
|
|
1445
|
-
return /* @__PURE__ */
|
|
1510
|
+
return /* @__PURE__ */ jsx15(CollapsiblePrimitive.Root, __spreadValues({ "data-slot": "collapsible" }, props));
|
|
1446
1511
|
}
|
|
1447
1512
|
function CollapsibleTrigger(_a) {
|
|
1448
1513
|
var props = __objRest(_a, []);
|
|
1449
|
-
return /* @__PURE__ */
|
|
1514
|
+
return /* @__PURE__ */ jsx15(
|
|
1450
1515
|
CollapsiblePrimitive.CollapsibleTrigger,
|
|
1451
1516
|
__spreadValues({
|
|
1452
1517
|
"data-slot": "collapsible-trigger"
|
|
@@ -1455,7 +1520,7 @@ function CollapsibleTrigger(_a) {
|
|
|
1455
1520
|
}
|
|
1456
1521
|
function CollapsibleContent(_a) {
|
|
1457
1522
|
var props = __objRest(_a, []);
|
|
1458
|
-
return /* @__PURE__ */
|
|
1523
|
+
return /* @__PURE__ */ jsx15(
|
|
1459
1524
|
CollapsiblePrimitive.CollapsibleContent,
|
|
1460
1525
|
__spreadValues({
|
|
1461
1526
|
"data-slot": "collapsible-content"
|
|
@@ -1464,36 +1529,66 @@ function CollapsibleContent(_a) {
|
|
|
1464
1529
|
}
|
|
1465
1530
|
|
|
1466
1531
|
// components/ui/combobox.tsx
|
|
1467
|
-
import * as
|
|
1532
|
+
import * as React5 from "react";
|
|
1468
1533
|
import { Combobox as ComboboxPrimitive } from "@base-ui/react";
|
|
1469
1534
|
import { CheckIcon as CheckIcon2, ChevronDownIcon as ChevronDownIcon3, XIcon } from "lucide-react";
|
|
1470
1535
|
|
|
1471
1536
|
// components/ui/input-group.tsx
|
|
1472
|
-
import
|
|
1537
|
+
import * as React4 from "react";
|
|
1538
|
+
import { cva as cva5 } from "class-variance-authority";
|
|
1473
1539
|
|
|
1474
1540
|
// components/ui/input.tsx
|
|
1475
|
-
import {
|
|
1541
|
+
import { cva as cva4 } from "class-variance-authority";
|
|
1542
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
1543
|
+
var inputVariants = cva4(
|
|
1544
|
+
[
|
|
1545
|
+
"w-full min-w-0 rounded-sm border border-border-subtle bg-white/5",
|
|
1546
|
+
"text-on-prominent font-body shadow-xs transition-[color,box-shadow] outline-none",
|
|
1547
|
+
"selection:bg-primary selection:text-on-prominent-static-inverse",
|
|
1548
|
+
"file:inline-flex file:border-0 file:bg-transparent file:font-medium file:text-on-prominent",
|
|
1549
|
+
"placeholder:text-on-subtle",
|
|
1550
|
+
"disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
1551
|
+
"focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/[0.08]"
|
|
1552
|
+
].join(" "),
|
|
1553
|
+
{
|
|
1554
|
+
variants: {
|
|
1555
|
+
size: {
|
|
1556
|
+
sm: "h-8 px-3 py-1 text-xs file:h-6 file:text-xs",
|
|
1557
|
+
md: "h-10 px-3 py-1 text-sm file:h-7 file:text-sm",
|
|
1558
|
+
lg: "h-12 px-4 py-2 text-base file:h-8 file:text-sm"
|
|
1559
|
+
}
|
|
1560
|
+
},
|
|
1561
|
+
defaultVariants: {
|
|
1562
|
+
size: "md"
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1565
|
+
);
|
|
1476
1566
|
function Input(_a) {
|
|
1477
|
-
var _b = _a, {
|
|
1478
|
-
|
|
1567
|
+
var _b = _a, {
|
|
1568
|
+
className,
|
|
1569
|
+
type,
|
|
1570
|
+
size = "md"
|
|
1571
|
+
} = _b, props = __objRest(_b, [
|
|
1572
|
+
"className",
|
|
1573
|
+
"type",
|
|
1574
|
+
"size"
|
|
1575
|
+
]);
|
|
1576
|
+
return /* @__PURE__ */ jsx16(
|
|
1479
1577
|
"input",
|
|
1480
1578
|
__spreadValues({
|
|
1481
1579
|
type,
|
|
1482
1580
|
"data-slot": "input",
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
"focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/[0.08]",
|
|
1486
|
-
className
|
|
1487
|
-
)
|
|
1581
|
+
"data-size": size,
|
|
1582
|
+
className: cn(inputVariants({ size }), className)
|
|
1488
1583
|
}, props)
|
|
1489
1584
|
);
|
|
1490
1585
|
}
|
|
1491
1586
|
|
|
1492
1587
|
// components/ui/textarea.tsx
|
|
1493
|
-
import { jsx as
|
|
1588
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1494
1589
|
function Textarea(_a) {
|
|
1495
1590
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1496
|
-
return /* @__PURE__ */
|
|
1591
|
+
return /* @__PURE__ */ jsx17(
|
|
1497
1592
|
"textarea",
|
|
1498
1593
|
__spreadValues({
|
|
1499
1594
|
"data-slot": "textarea",
|
|
@@ -1506,33 +1601,68 @@ function Textarea(_a) {
|
|
|
1506
1601
|
}
|
|
1507
1602
|
|
|
1508
1603
|
// components/ui/input-group.tsx
|
|
1509
|
-
import { jsx as
|
|
1604
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1605
|
+
var InputGroupSizeContext = React4.createContext("md");
|
|
1606
|
+
var inputGroupVariants = cva5(
|
|
1607
|
+
[
|
|
1608
|
+
"group/input-group relative flex w-full items-center rounded-sm border border-border-subtle bg-white/5",
|
|
1609
|
+
"shadow-xs transition-[color,box-shadow] outline-none min-w-0 has-[>textarea]:h-auto",
|
|
1610
|
+
// Reduce input padding on the addon side, and mirror it on the opposite side for visual symmetry.
|
|
1611
|
+
"has-[>[data-align=inline-start]]:[&>input]:pl-2",
|
|
1612
|
+
"has-[>[data-align=inline-start]]:[&>input]:pr-2",
|
|
1613
|
+
"has-[>[data-align=inline-end]]:[&>input]:pr-2",
|
|
1614
|
+
"has-[>[data-align=inline-end]]:[&>input]:pl-2",
|
|
1615
|
+
"has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3",
|
|
1616
|
+
"has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3",
|
|
1617
|
+
// Focus state.
|
|
1618
|
+
"has-[[data-slot=input-group-control]:focus-visible]:border-primary has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot=input-group-control]:focus-visible]:ring-primary/[0.08]",
|
|
1619
|
+
// Error state.
|
|
1620
|
+
"has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-destructive/20"
|
|
1621
|
+
].join(" "),
|
|
1622
|
+
{
|
|
1623
|
+
variants: {
|
|
1624
|
+
size: {
|
|
1625
|
+
sm: "h-8",
|
|
1626
|
+
md: "h-10",
|
|
1627
|
+
lg: "h-12"
|
|
1628
|
+
}
|
|
1629
|
+
},
|
|
1630
|
+
defaultVariants: {
|
|
1631
|
+
size: "md"
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
);
|
|
1510
1635
|
function InputGroup(_a) {
|
|
1511
|
-
var _b = _a, {
|
|
1512
|
-
|
|
1636
|
+
var _b = _a, {
|
|
1637
|
+
className,
|
|
1638
|
+
size = "md"
|
|
1639
|
+
} = _b, props = __objRest(_b, [
|
|
1640
|
+
"className",
|
|
1641
|
+
"size"
|
|
1642
|
+
]);
|
|
1643
|
+
return /* @__PURE__ */ jsx18(InputGroupSizeContext.Provider, { value: size, children: /* @__PURE__ */ jsx18(
|
|
1513
1644
|
"div",
|
|
1514
1645
|
__spreadValues({
|
|
1515
1646
|
"data-slot": "input-group",
|
|
1647
|
+
"data-size": size,
|
|
1516
1648
|
role: "group",
|
|
1517
|
-
className: cn(
|
|
1518
|
-
"group/input-group relative flex w-full items-center rounded-sm border border-border-subtle bg-white/5 shadow-xs transition-[color,box-shadow] outline-none",
|
|
1519
|
-
"h-9 min-w-0 has-[>textarea]:h-auto",
|
|
1520
|
-
// Variants based on alignment.
|
|
1521
|
-
"has-[>[data-align=inline-start]]:[&>input]:pl-2",
|
|
1522
|
-
"has-[>[data-align=inline-end]]:[&>input]:pr-2",
|
|
1523
|
-
"has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3",
|
|
1524
|
-
"has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3",
|
|
1525
|
-
// Focus state.
|
|
1526
|
-
"has-[[data-slot=input-group-control]:focus-visible]:border-primary has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot=input-group-control]:focus-visible]:ring-primary/[0.08]",
|
|
1527
|
-
// Error state.
|
|
1528
|
-
"has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-destructive/20",
|
|
1529
|
-
className
|
|
1530
|
-
)
|
|
1649
|
+
className: cn(inputGroupVariants({ size }), className)
|
|
1531
1650
|
}, props)
|
|
1532
|
-
);
|
|
1651
|
+
) });
|
|
1533
1652
|
}
|
|
1534
|
-
var inputGroupAddonVariants =
|
|
1535
|
-
|
|
1653
|
+
var inputGroupAddonVariants = cva5(
|
|
1654
|
+
[
|
|
1655
|
+
"flex h-auto cursor-text items-center justify-center gap-2 py-1.5 font-medium text-on-subtle select-none",
|
|
1656
|
+
"group-data-[disabled=true]/input-group:opacity-50",
|
|
1657
|
+
"[&>kbd]:rounded-[calc(var(--radius)-5px)]",
|
|
1658
|
+
// Size-responsive text and icon sizing.
|
|
1659
|
+
"group-data-[size=sm]/input-group:py-1 group-data-[size=sm]/input-group:text-xs",
|
|
1660
|
+
"group-data-[size=md]/input-group:text-sm",
|
|
1661
|
+
"group-data-[size=lg]/input-group:py-2 group-data-[size=lg]/input-group:text-sm",
|
|
1662
|
+
// Default icon size (overridden by size variants below).
|
|
1663
|
+
"[&>svg:not([class*='size-'])]:size-4",
|
|
1664
|
+
"group-data-[size=sm]/input-group:[&>svg:not([class*='size-'])]:size-3.5"
|
|
1665
|
+
].join(" "),
|
|
1536
1666
|
{
|
|
1537
1667
|
variants: {
|
|
1538
1668
|
align: {
|
|
@@ -1555,7 +1685,7 @@ function InputGroupAddon(_a) {
|
|
|
1555
1685
|
"className",
|
|
1556
1686
|
"align"
|
|
1557
1687
|
]);
|
|
1558
|
-
return /* @__PURE__ */
|
|
1688
|
+
return /* @__PURE__ */ jsx18(
|
|
1559
1689
|
"div",
|
|
1560
1690
|
__spreadValues({
|
|
1561
1691
|
role: "group",
|
|
@@ -1572,7 +1702,7 @@ function InputGroupAddon(_a) {
|
|
|
1572
1702
|
}, props)
|
|
1573
1703
|
);
|
|
1574
1704
|
}
|
|
1575
|
-
var inputGroupButtonVariants =
|
|
1705
|
+
var inputGroupButtonVariants = cva5(
|
|
1576
1706
|
"flex items-center gap-2 text-sm shadow-none",
|
|
1577
1707
|
{
|
|
1578
1708
|
variants: {
|
|
@@ -1600,7 +1730,7 @@ function InputGroupButton(_a) {
|
|
|
1600
1730
|
"variant",
|
|
1601
1731
|
"size"
|
|
1602
1732
|
]);
|
|
1603
|
-
return /* @__PURE__ */
|
|
1733
|
+
return /* @__PURE__ */ jsx18(
|
|
1604
1734
|
Button,
|
|
1605
1735
|
__spreadValues({
|
|
1606
1736
|
type,
|
|
@@ -1612,11 +1742,15 @@ function InputGroupButton(_a) {
|
|
|
1612
1742
|
}
|
|
1613
1743
|
function InputGroupText(_a) {
|
|
1614
1744
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1615
|
-
return /* @__PURE__ */
|
|
1745
|
+
return /* @__PURE__ */ jsx18(
|
|
1616
1746
|
"span",
|
|
1617
1747
|
__spreadValues({
|
|
1618
1748
|
className: cn(
|
|
1619
|
-
"flex items-center gap-2 text-
|
|
1749
|
+
"flex items-center gap-2 text-on-subtle",
|
|
1750
|
+
"group-data-[size=sm]/input-group:text-xs group-data-[size=sm]/input-group:[&_svg:not([class*='size-'])]:size-3.5",
|
|
1751
|
+
"group-data-[size=md]/input-group:text-sm group-data-[size=md]/input-group:[&_svg:not([class*='size-'])]:size-4",
|
|
1752
|
+
"group-data-[size=lg]/input-group:text-sm group-data-[size=lg]/input-group:[&_svg:not([class*='size-'])]:size-4",
|
|
1753
|
+
"[&_svg]:pointer-events-none",
|
|
1620
1754
|
className
|
|
1621
1755
|
)
|
|
1622
1756
|
}, props)
|
|
@@ -1624,16 +1758,21 @@ function InputGroupText(_a) {
|
|
|
1624
1758
|
}
|
|
1625
1759
|
function InputGroupInput(_a) {
|
|
1626
1760
|
var _b = _a, {
|
|
1627
|
-
className
|
|
1761
|
+
className,
|
|
1762
|
+
size: sizeProp
|
|
1628
1763
|
} = _b, props = __objRest(_b, [
|
|
1629
|
-
"className"
|
|
1764
|
+
"className",
|
|
1765
|
+
"size"
|
|
1630
1766
|
]);
|
|
1631
|
-
|
|
1767
|
+
const groupSize = React4.useContext(InputGroupSizeContext);
|
|
1768
|
+
const size = sizeProp != null ? sizeProp : groupSize;
|
|
1769
|
+
return /* @__PURE__ */ jsx18(
|
|
1632
1770
|
Input,
|
|
1633
1771
|
__spreadValues({
|
|
1634
1772
|
"data-slot": "input-group-control",
|
|
1773
|
+
size,
|
|
1635
1774
|
className: cn(
|
|
1636
|
-
"flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0",
|
|
1775
|
+
"h-full flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0",
|
|
1637
1776
|
className
|
|
1638
1777
|
)
|
|
1639
1778
|
}, props)
|
|
@@ -1645,7 +1784,7 @@ function InputGroupTextarea(_a) {
|
|
|
1645
1784
|
} = _b, props = __objRest(_b, [
|
|
1646
1785
|
"className"
|
|
1647
1786
|
]);
|
|
1648
|
-
return /* @__PURE__ */
|
|
1787
|
+
return /* @__PURE__ */ jsx18(
|
|
1649
1788
|
Textarea,
|
|
1650
1789
|
__spreadValues({
|
|
1651
1790
|
"data-slot": "input-group-control",
|
|
@@ -1658,11 +1797,11 @@ function InputGroupTextarea(_a) {
|
|
|
1658
1797
|
}
|
|
1659
1798
|
|
|
1660
1799
|
// components/ui/combobox.tsx
|
|
1661
|
-
import { jsx as
|
|
1800
|
+
import { jsx as jsx19, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1662
1801
|
var Combobox = ComboboxPrimitive.Root;
|
|
1663
1802
|
function ComboboxValue(_a) {
|
|
1664
1803
|
var props = __objRest(_a, []);
|
|
1665
|
-
return /* @__PURE__ */
|
|
1804
|
+
return /* @__PURE__ */ jsx19(ComboboxPrimitive.Value, __spreadValues({ "data-slot": "combobox-value" }, props));
|
|
1666
1805
|
}
|
|
1667
1806
|
function ComboboxTrigger(_a) {
|
|
1668
1807
|
var _b = _a, {
|
|
@@ -1672,7 +1811,7 @@ function ComboboxTrigger(_a) {
|
|
|
1672
1811
|
"className",
|
|
1673
1812
|
"children"
|
|
1674
1813
|
]);
|
|
1675
|
-
return /* @__PURE__ */
|
|
1814
|
+
return /* @__PURE__ */ jsxs8(
|
|
1676
1815
|
ComboboxPrimitive.Trigger,
|
|
1677
1816
|
__spreadProps(__spreadValues({
|
|
1678
1817
|
"data-slot": "combobox-trigger",
|
|
@@ -1680,7 +1819,7 @@ function ComboboxTrigger(_a) {
|
|
|
1680
1819
|
}, props), {
|
|
1681
1820
|
children: [
|
|
1682
1821
|
children,
|
|
1683
|
-
/* @__PURE__ */
|
|
1822
|
+
/* @__PURE__ */ jsx19(
|
|
1684
1823
|
ChevronDownIcon3,
|
|
1685
1824
|
{
|
|
1686
1825
|
"data-slot": "combobox-trigger-icon",
|
|
@@ -1693,14 +1832,14 @@ function ComboboxTrigger(_a) {
|
|
|
1693
1832
|
}
|
|
1694
1833
|
function ComboboxClear(_a) {
|
|
1695
1834
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1696
|
-
return /* @__PURE__ */
|
|
1835
|
+
return /* @__PURE__ */ jsx19(
|
|
1697
1836
|
ComboboxPrimitive.Clear,
|
|
1698
1837
|
__spreadProps(__spreadValues({
|
|
1699
1838
|
"data-slot": "combobox-clear",
|
|
1700
|
-
render: /* @__PURE__ */
|
|
1839
|
+
render: /* @__PURE__ */ jsx19(InputGroupButton, { variant: "secondary", size: "icon-xs" }),
|
|
1701
1840
|
className: cn(className)
|
|
1702
1841
|
}, props), {
|
|
1703
|
-
children: /* @__PURE__ */
|
|
1842
|
+
children: /* @__PURE__ */ jsx19(XIcon, { className: "pointer-events-none" })
|
|
1704
1843
|
})
|
|
1705
1844
|
);
|
|
1706
1845
|
}
|
|
@@ -1718,15 +1857,15 @@ function ComboboxInput(_a) {
|
|
|
1718
1857
|
"showTrigger",
|
|
1719
1858
|
"showClear"
|
|
1720
1859
|
]);
|
|
1721
|
-
return /* @__PURE__ */
|
|
1722
|
-
/* @__PURE__ */
|
|
1860
|
+
return /* @__PURE__ */ jsxs8(InputGroup, { className: cn("w-auto", className), children: [
|
|
1861
|
+
/* @__PURE__ */ jsx19(
|
|
1723
1862
|
ComboboxPrimitive.Input,
|
|
1724
1863
|
__spreadValues({
|
|
1725
|
-
render: /* @__PURE__ */
|
|
1864
|
+
render: /* @__PURE__ */ jsx19(InputGroupInput, { disabled })
|
|
1726
1865
|
}, props)
|
|
1727
1866
|
),
|
|
1728
|
-
/* @__PURE__ */
|
|
1729
|
-
showTrigger && /* @__PURE__ */
|
|
1867
|
+
/* @__PURE__ */ jsxs8(InputGroupAddon, { align: "inline-end", children: [
|
|
1868
|
+
showTrigger && /* @__PURE__ */ jsx19(
|
|
1730
1869
|
InputGroupButton,
|
|
1731
1870
|
{
|
|
1732
1871
|
size: "icon-xs",
|
|
@@ -1735,10 +1874,10 @@ function ComboboxInput(_a) {
|
|
|
1735
1874
|
"data-slot": "input-group-button",
|
|
1736
1875
|
className: "group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent",
|
|
1737
1876
|
disabled,
|
|
1738
|
-
children: /* @__PURE__ */
|
|
1877
|
+
children: /* @__PURE__ */ jsx19(ComboboxTrigger, {})
|
|
1739
1878
|
}
|
|
1740
1879
|
),
|
|
1741
|
-
showClear && /* @__PURE__ */
|
|
1880
|
+
showClear && /* @__PURE__ */ jsx19(ComboboxClear, { disabled })
|
|
1742
1881
|
] }),
|
|
1743
1882
|
children
|
|
1744
1883
|
] });
|
|
@@ -1759,7 +1898,7 @@ function ComboboxContent(_a) {
|
|
|
1759
1898
|
"alignOffset",
|
|
1760
1899
|
"anchor"
|
|
1761
1900
|
]);
|
|
1762
|
-
return /* @__PURE__ */
|
|
1901
|
+
return /* @__PURE__ */ jsx19(ComboboxPrimitive.Portal, { children: /* @__PURE__ */ jsx19(
|
|
1763
1902
|
ComboboxPrimitive.Positioner,
|
|
1764
1903
|
{
|
|
1765
1904
|
side,
|
|
@@ -1768,7 +1907,7 @@ function ComboboxContent(_a) {
|
|
|
1768
1907
|
alignOffset,
|
|
1769
1908
|
anchor,
|
|
1770
1909
|
className: "isolate z-50",
|
|
1771
|
-
children: /* @__PURE__ */
|
|
1910
|
+
children: /* @__PURE__ */ jsx19(
|
|
1772
1911
|
ComboboxPrimitive.Popup,
|
|
1773
1912
|
__spreadValues({
|
|
1774
1913
|
"data-slot": "combobox-content",
|
|
@@ -1784,7 +1923,7 @@ function ComboboxContent(_a) {
|
|
|
1784
1923
|
}
|
|
1785
1924
|
function ComboboxList(_a) {
|
|
1786
1925
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1787
|
-
return /* @__PURE__ */
|
|
1926
|
+
return /* @__PURE__ */ jsx19(
|
|
1788
1927
|
ComboboxPrimitive.List,
|
|
1789
1928
|
__spreadValues({
|
|
1790
1929
|
"data-slot": "combobox-list",
|
|
@@ -1803,7 +1942,7 @@ function ComboboxItem(_a) {
|
|
|
1803
1942
|
"className",
|
|
1804
1943
|
"children"
|
|
1805
1944
|
]);
|
|
1806
|
-
return /* @__PURE__ */
|
|
1945
|
+
return /* @__PURE__ */ jsxs8(
|
|
1807
1946
|
ComboboxPrimitive.Item,
|
|
1808
1947
|
__spreadProps(__spreadValues({
|
|
1809
1948
|
"data-slot": "combobox-item",
|
|
@@ -1814,12 +1953,12 @@ function ComboboxItem(_a) {
|
|
|
1814
1953
|
}, props), {
|
|
1815
1954
|
children: [
|
|
1816
1955
|
children,
|
|
1817
|
-
/* @__PURE__ */
|
|
1956
|
+
/* @__PURE__ */ jsx19(
|
|
1818
1957
|
ComboboxPrimitive.ItemIndicator,
|
|
1819
1958
|
{
|
|
1820
1959
|
"data-slot": "combobox-item-indicator",
|
|
1821
|
-
render: /* @__PURE__ */
|
|
1822
|
-
children: /* @__PURE__ */
|
|
1960
|
+
render: /* @__PURE__ */ jsx19("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
|
|
1961
|
+
children: /* @__PURE__ */ jsx19(CheckIcon2, { className: "pointer-events-none size-4 pointer-coarse:size-5" })
|
|
1823
1962
|
}
|
|
1824
1963
|
)
|
|
1825
1964
|
]
|
|
@@ -1828,7 +1967,7 @@ function ComboboxItem(_a) {
|
|
|
1828
1967
|
}
|
|
1829
1968
|
function ComboboxGroup(_a) {
|
|
1830
1969
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1831
|
-
return /* @__PURE__ */
|
|
1970
|
+
return /* @__PURE__ */ jsx19(
|
|
1832
1971
|
ComboboxPrimitive.Group,
|
|
1833
1972
|
__spreadValues({
|
|
1834
1973
|
"data-slot": "combobox-group",
|
|
@@ -1842,7 +1981,7 @@ function ComboboxLabel(_a) {
|
|
|
1842
1981
|
} = _b, props = __objRest(_b, [
|
|
1843
1982
|
"className"
|
|
1844
1983
|
]);
|
|
1845
|
-
return /* @__PURE__ */
|
|
1984
|
+
return /* @__PURE__ */ jsx19(
|
|
1846
1985
|
ComboboxPrimitive.GroupLabel,
|
|
1847
1986
|
__spreadValues({
|
|
1848
1987
|
"data-slot": "combobox-label",
|
|
@@ -1855,11 +1994,11 @@ function ComboboxLabel(_a) {
|
|
|
1855
1994
|
}
|
|
1856
1995
|
function ComboboxCollection(_a) {
|
|
1857
1996
|
var props = __objRest(_a, []);
|
|
1858
|
-
return /* @__PURE__ */
|
|
1997
|
+
return /* @__PURE__ */ jsx19(ComboboxPrimitive.Collection, __spreadValues({ "data-slot": "combobox-collection" }, props));
|
|
1859
1998
|
}
|
|
1860
1999
|
function ComboboxEmpty(_a) {
|
|
1861
2000
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1862
|
-
return /* @__PURE__ */
|
|
2001
|
+
return /* @__PURE__ */ jsx19(
|
|
1863
2002
|
ComboboxPrimitive.Empty,
|
|
1864
2003
|
__spreadValues({
|
|
1865
2004
|
"data-slot": "combobox-empty",
|
|
@@ -1876,7 +2015,7 @@ function ComboboxSeparator(_a) {
|
|
|
1876
2015
|
} = _b, props = __objRest(_b, [
|
|
1877
2016
|
"className"
|
|
1878
2017
|
]);
|
|
1879
|
-
return /* @__PURE__ */
|
|
2018
|
+
return /* @__PURE__ */ jsx19(
|
|
1880
2019
|
ComboboxPrimitive.Separator,
|
|
1881
2020
|
__spreadValues({
|
|
1882
2021
|
"data-slot": "combobox-separator",
|
|
@@ -1890,7 +2029,7 @@ function ComboboxChips(_a) {
|
|
|
1890
2029
|
} = _b, props = __objRest(_b, [
|
|
1891
2030
|
"className"
|
|
1892
2031
|
]);
|
|
1893
|
-
return /* @__PURE__ */
|
|
2032
|
+
return /* @__PURE__ */ jsx19(
|
|
1894
2033
|
ComboboxPrimitive.Chips,
|
|
1895
2034
|
__spreadValues({
|
|
1896
2035
|
"data-slot": "combobox-chips",
|
|
@@ -1911,7 +2050,7 @@ function ComboboxChip(_a) {
|
|
|
1911
2050
|
"children",
|
|
1912
2051
|
"showRemove"
|
|
1913
2052
|
]);
|
|
1914
|
-
return /* @__PURE__ */
|
|
2053
|
+
return /* @__PURE__ */ jsxs8(
|
|
1915
2054
|
ComboboxPrimitive.Chip,
|
|
1916
2055
|
__spreadProps(__spreadValues({
|
|
1917
2056
|
"data-slot": "combobox-chip",
|
|
@@ -1922,13 +2061,13 @@ function ComboboxChip(_a) {
|
|
|
1922
2061
|
}, props), {
|
|
1923
2062
|
children: [
|
|
1924
2063
|
children,
|
|
1925
|
-
showRemove && /* @__PURE__ */
|
|
2064
|
+
showRemove && /* @__PURE__ */ jsx19(
|
|
1926
2065
|
ComboboxPrimitive.ChipRemove,
|
|
1927
2066
|
{
|
|
1928
|
-
render: /* @__PURE__ */
|
|
2067
|
+
render: /* @__PURE__ */ jsx19(Button, { variant: "secondary", size: "icon-xs" }),
|
|
1929
2068
|
className: "-ml-1 opacity-50 hover:opacity-100",
|
|
1930
2069
|
"data-slot": "combobox-chip-remove",
|
|
1931
|
-
children: /* @__PURE__ */
|
|
2070
|
+
children: /* @__PURE__ */ jsx19(XIcon, { className: "pointer-events-none" })
|
|
1932
2071
|
}
|
|
1933
2072
|
)
|
|
1934
2073
|
]
|
|
@@ -1943,7 +2082,7 @@ function ComboboxChipsInput(_a) {
|
|
|
1943
2082
|
"className",
|
|
1944
2083
|
"children"
|
|
1945
2084
|
]);
|
|
1946
|
-
return /* @__PURE__ */
|
|
2085
|
+
return /* @__PURE__ */ jsx19(
|
|
1947
2086
|
ComboboxPrimitive.Input,
|
|
1948
2087
|
__spreadValues({
|
|
1949
2088
|
"data-slot": "combobox-chip-input",
|
|
@@ -1952,7 +2091,7 @@ function ComboboxChipsInput(_a) {
|
|
|
1952
2091
|
);
|
|
1953
2092
|
}
|
|
1954
2093
|
function useComboboxAnchor() {
|
|
1955
|
-
return
|
|
2094
|
+
return React5.useRef(null);
|
|
1956
2095
|
}
|
|
1957
2096
|
|
|
1958
2097
|
// components/ui/command.tsx
|
|
@@ -1962,22 +2101,22 @@ import { SearchIcon } from "lucide-react";
|
|
|
1962
2101
|
// components/ui/dialog.tsx
|
|
1963
2102
|
import { XIcon as XIcon2 } from "lucide-react";
|
|
1964
2103
|
import { Dialog as DialogPrimitive } from "radix-ui";
|
|
1965
|
-
import { jsx as
|
|
2104
|
+
import { jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1966
2105
|
function Dialog(_a) {
|
|
1967
2106
|
var props = __objRest(_a, []);
|
|
1968
|
-
return /* @__PURE__ */
|
|
2107
|
+
return /* @__PURE__ */ jsx20(DialogPrimitive.Root, __spreadValues({ "data-slot": "dialog" }, props));
|
|
1969
2108
|
}
|
|
1970
2109
|
function DialogTrigger(_a) {
|
|
1971
2110
|
var props = __objRest(_a, []);
|
|
1972
|
-
return /* @__PURE__ */
|
|
2111
|
+
return /* @__PURE__ */ jsx20(DialogPrimitive.Trigger, __spreadValues({ "data-slot": "dialog-trigger" }, props));
|
|
1973
2112
|
}
|
|
1974
2113
|
function DialogPortal(_a) {
|
|
1975
2114
|
var props = __objRest(_a, []);
|
|
1976
|
-
return /* @__PURE__ */
|
|
2115
|
+
return /* @__PURE__ */ jsx20(DialogPrimitive.Portal, __spreadValues({ "data-slot": "dialog-portal" }, props));
|
|
1977
2116
|
}
|
|
1978
2117
|
function DialogClose(_a) {
|
|
1979
2118
|
var props = __objRest(_a, []);
|
|
1980
|
-
return /* @__PURE__ */
|
|
2119
|
+
return /* @__PURE__ */ jsx20(DialogPrimitive.Close, __spreadValues({ "data-slot": "dialog-close" }, props));
|
|
1981
2120
|
}
|
|
1982
2121
|
function DialogOverlay(_a) {
|
|
1983
2122
|
var _b = _a, {
|
|
@@ -1985,7 +2124,7 @@ function DialogOverlay(_a) {
|
|
|
1985
2124
|
} = _b, props = __objRest(_b, [
|
|
1986
2125
|
"className"
|
|
1987
2126
|
]);
|
|
1988
|
-
return /* @__PURE__ */
|
|
2127
|
+
return /* @__PURE__ */ jsx20(
|
|
1989
2128
|
DialogPrimitive.Overlay,
|
|
1990
2129
|
__spreadValues({
|
|
1991
2130
|
"data-slot": "dialog-overlay",
|
|
@@ -2006,9 +2145,9 @@ function DialogContent(_a) {
|
|
|
2006
2145
|
"children",
|
|
2007
2146
|
"showCloseButton"
|
|
2008
2147
|
]);
|
|
2009
|
-
return /* @__PURE__ */
|
|
2010
|
-
/* @__PURE__ */
|
|
2011
|
-
/* @__PURE__ */
|
|
2148
|
+
return /* @__PURE__ */ jsxs9(DialogPortal, { "data-slot": "dialog-portal", children: [
|
|
2149
|
+
/* @__PURE__ */ jsx20(DialogOverlay, {}),
|
|
2150
|
+
/* @__PURE__ */ jsxs9(
|
|
2012
2151
|
DialogPrimitive.Content,
|
|
2013
2152
|
__spreadProps(__spreadValues({
|
|
2014
2153
|
"data-slot": "dialog-content",
|
|
@@ -2019,14 +2158,14 @@ function DialogContent(_a) {
|
|
|
2019
2158
|
}, props), {
|
|
2020
2159
|
children: [
|
|
2021
2160
|
children,
|
|
2022
|
-
showCloseButton && /* @__PURE__ */
|
|
2161
|
+
showCloseButton && /* @__PURE__ */ jsxs9(
|
|
2023
2162
|
DialogPrimitive.Close,
|
|
2024
2163
|
{
|
|
2025
2164
|
"data-slot": "dialog-close",
|
|
2026
2165
|
className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-prominent transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-on-subtle [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
2027
2166
|
children: [
|
|
2028
|
-
/* @__PURE__ */
|
|
2029
|
-
/* @__PURE__ */
|
|
2167
|
+
/* @__PURE__ */ jsx20(XIcon2, {}),
|
|
2168
|
+
/* @__PURE__ */ jsx20("span", { className: "sr-only", children: "Close" })
|
|
2030
2169
|
]
|
|
2031
2170
|
}
|
|
2032
2171
|
)
|
|
@@ -2037,7 +2176,7 @@ function DialogContent(_a) {
|
|
|
2037
2176
|
}
|
|
2038
2177
|
function DialogHeader(_a) {
|
|
2039
2178
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2040
|
-
return /* @__PURE__ */
|
|
2179
|
+
return /* @__PURE__ */ jsx20(
|
|
2041
2180
|
"div",
|
|
2042
2181
|
__spreadValues({
|
|
2043
2182
|
"data-slot": "dialog-header",
|
|
@@ -2055,7 +2194,7 @@ function DialogFooter(_a) {
|
|
|
2055
2194
|
"showCloseButton",
|
|
2056
2195
|
"children"
|
|
2057
2196
|
]);
|
|
2058
|
-
return /* @__PURE__ */
|
|
2197
|
+
return /* @__PURE__ */ jsxs9(
|
|
2059
2198
|
"div",
|
|
2060
2199
|
__spreadProps(__spreadValues({
|
|
2061
2200
|
"data-slot": "dialog-footer",
|
|
@@ -2066,7 +2205,7 @@ function DialogFooter(_a) {
|
|
|
2066
2205
|
}, props), {
|
|
2067
2206
|
children: [
|
|
2068
2207
|
children,
|
|
2069
|
-
showCloseButton && /* @__PURE__ */
|
|
2208
|
+
showCloseButton && /* @__PURE__ */ jsx20(DialogPrimitive.Close, { asChild: true, children: /* @__PURE__ */ jsx20(Button, { variant: "secondary", size: "md", children: "Close" }) })
|
|
2070
2209
|
]
|
|
2071
2210
|
})
|
|
2072
2211
|
);
|
|
@@ -2077,7 +2216,7 @@ function DialogTitle(_a) {
|
|
|
2077
2216
|
} = _b, props = __objRest(_b, [
|
|
2078
2217
|
"className"
|
|
2079
2218
|
]);
|
|
2080
|
-
return /* @__PURE__ */
|
|
2219
|
+
return /* @__PURE__ */ jsx20(
|
|
2081
2220
|
DialogPrimitive.Title,
|
|
2082
2221
|
__spreadValues({
|
|
2083
2222
|
"data-slot": "dialog-title",
|
|
@@ -2091,7 +2230,7 @@ function DialogDescription(_a) {
|
|
|
2091
2230
|
} = _b, props = __objRest(_b, [
|
|
2092
2231
|
"className"
|
|
2093
2232
|
]);
|
|
2094
|
-
return /* @__PURE__ */
|
|
2233
|
+
return /* @__PURE__ */ jsx20(
|
|
2095
2234
|
DialogPrimitive.Description,
|
|
2096
2235
|
__spreadValues({
|
|
2097
2236
|
"data-slot": "dialog-description",
|
|
@@ -2101,14 +2240,14 @@ function DialogDescription(_a) {
|
|
|
2101
2240
|
}
|
|
2102
2241
|
|
|
2103
2242
|
// components/ui/command.tsx
|
|
2104
|
-
import { jsx as
|
|
2243
|
+
import { jsx as jsx21, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
2105
2244
|
function Command(_a) {
|
|
2106
2245
|
var _b = _a, {
|
|
2107
2246
|
className
|
|
2108
2247
|
} = _b, props = __objRest(_b, [
|
|
2109
2248
|
"className"
|
|
2110
2249
|
]);
|
|
2111
|
-
return /* @__PURE__ */
|
|
2250
|
+
return /* @__PURE__ */ jsx21(
|
|
2112
2251
|
CommandPrimitive,
|
|
2113
2252
|
__spreadValues({
|
|
2114
2253
|
"data-slot": "command",
|
|
@@ -2133,17 +2272,17 @@ function CommandDialog(_a) {
|
|
|
2133
2272
|
"className",
|
|
2134
2273
|
"showCloseButton"
|
|
2135
2274
|
]);
|
|
2136
|
-
return /* @__PURE__ */
|
|
2137
|
-
/* @__PURE__ */
|
|
2138
|
-
/* @__PURE__ */
|
|
2139
|
-
/* @__PURE__ */
|
|
2275
|
+
return /* @__PURE__ */ jsxs10(Dialog, __spreadProps(__spreadValues({}, props), { children: [
|
|
2276
|
+
/* @__PURE__ */ jsxs10(DialogHeader, { className: "sr-only", children: [
|
|
2277
|
+
/* @__PURE__ */ jsx21(DialogTitle, { children: title }),
|
|
2278
|
+
/* @__PURE__ */ jsx21(DialogDescription, { children: description })
|
|
2140
2279
|
] }),
|
|
2141
|
-
/* @__PURE__ */
|
|
2280
|
+
/* @__PURE__ */ jsx21(
|
|
2142
2281
|
DialogContent,
|
|
2143
2282
|
{
|
|
2144
2283
|
className: cn("overflow-hidden p-0", className),
|
|
2145
2284
|
showCloseButton,
|
|
2146
|
-
children: /* @__PURE__ */
|
|
2285
|
+
children: /* @__PURE__ */ jsx21(Command, { className: "**:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-on-subtle [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children })
|
|
2147
2286
|
}
|
|
2148
2287
|
)
|
|
2149
2288
|
] }));
|
|
@@ -2154,14 +2293,14 @@ function CommandInput(_a) {
|
|
|
2154
2293
|
} = _b, props = __objRest(_b, [
|
|
2155
2294
|
"className"
|
|
2156
2295
|
]);
|
|
2157
|
-
return /* @__PURE__ */
|
|
2296
|
+
return /* @__PURE__ */ jsxs10(
|
|
2158
2297
|
"div",
|
|
2159
2298
|
{
|
|
2160
2299
|
"data-slot": "command-input-wrapper",
|
|
2161
2300
|
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
2162
2301
|
children: [
|
|
2163
|
-
/* @__PURE__ */
|
|
2164
|
-
/* @__PURE__ */
|
|
2302
|
+
/* @__PURE__ */ jsx21(SearchIcon, { className: "size-4 shrink-0 opacity-50" }),
|
|
2303
|
+
/* @__PURE__ */ jsx21(
|
|
2165
2304
|
CommandPrimitive.Input,
|
|
2166
2305
|
__spreadValues({
|
|
2167
2306
|
"data-slot": "command-input",
|
|
@@ -2181,7 +2320,7 @@ function CommandList(_a) {
|
|
|
2181
2320
|
} = _b, props = __objRest(_b, [
|
|
2182
2321
|
"className"
|
|
2183
2322
|
]);
|
|
2184
|
-
return /* @__PURE__ */
|
|
2323
|
+
return /* @__PURE__ */ jsx21(
|
|
2185
2324
|
CommandPrimitive.List,
|
|
2186
2325
|
__spreadValues({
|
|
2187
2326
|
"data-slot": "command-list",
|
|
@@ -2194,7 +2333,7 @@ function CommandList(_a) {
|
|
|
2194
2333
|
}
|
|
2195
2334
|
function CommandEmpty(_a) {
|
|
2196
2335
|
var props = __objRest(_a, []);
|
|
2197
|
-
return /* @__PURE__ */
|
|
2336
|
+
return /* @__PURE__ */ jsx21(
|
|
2198
2337
|
CommandPrimitive.Empty,
|
|
2199
2338
|
__spreadValues({
|
|
2200
2339
|
"data-slot": "command-empty",
|
|
@@ -2208,7 +2347,7 @@ function CommandGroup(_a) {
|
|
|
2208
2347
|
} = _b, props = __objRest(_b, [
|
|
2209
2348
|
"className"
|
|
2210
2349
|
]);
|
|
2211
|
-
return /* @__PURE__ */
|
|
2350
|
+
return /* @__PURE__ */ jsx21(
|
|
2212
2351
|
CommandPrimitive.Group,
|
|
2213
2352
|
__spreadValues({
|
|
2214
2353
|
"data-slot": "command-group",
|
|
@@ -2225,7 +2364,7 @@ function CommandSeparator(_a) {
|
|
|
2225
2364
|
} = _b, props = __objRest(_b, [
|
|
2226
2365
|
"className"
|
|
2227
2366
|
]);
|
|
2228
|
-
return /* @__PURE__ */
|
|
2367
|
+
return /* @__PURE__ */ jsx21(
|
|
2229
2368
|
CommandPrimitive.Separator,
|
|
2230
2369
|
__spreadValues({
|
|
2231
2370
|
"data-slot": "command-separator",
|
|
@@ -2239,7 +2378,7 @@ function CommandItem(_a) {
|
|
|
2239
2378
|
} = _b, props = __objRest(_b, [
|
|
2240
2379
|
"className"
|
|
2241
2380
|
]);
|
|
2242
|
-
return /* @__PURE__ */
|
|
2381
|
+
return /* @__PURE__ */ jsx21(
|
|
2243
2382
|
CommandPrimitive.Item,
|
|
2244
2383
|
__spreadValues({
|
|
2245
2384
|
"data-slot": "command-item",
|
|
@@ -2256,7 +2395,7 @@ function CommandShortcut(_a) {
|
|
|
2256
2395
|
} = _b, props = __objRest(_b, [
|
|
2257
2396
|
"className"
|
|
2258
2397
|
]);
|
|
2259
|
-
return /* @__PURE__ */
|
|
2398
|
+
return /* @__PURE__ */ jsx21(
|
|
2260
2399
|
"span",
|
|
2261
2400
|
__spreadValues({
|
|
2262
2401
|
"data-slot": "command-shortcut",
|
|
@@ -2271,30 +2410,30 @@ function CommandShortcut(_a) {
|
|
|
2271
2410
|
// components/ui/context-menu.tsx
|
|
2272
2411
|
import { CheckIcon as CheckIcon3, ChevronRightIcon as ChevronRightIcon2, CircleIcon } from "lucide-react";
|
|
2273
2412
|
import { ContextMenu as ContextMenuPrimitive } from "radix-ui";
|
|
2274
|
-
import { jsx as
|
|
2413
|
+
import { jsx as jsx22, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2275
2414
|
function ContextMenu(_a) {
|
|
2276
2415
|
var props = __objRest(_a, []);
|
|
2277
|
-
return /* @__PURE__ */
|
|
2416
|
+
return /* @__PURE__ */ jsx22(ContextMenuPrimitive.Root, __spreadValues({ "data-slot": "context-menu" }, props));
|
|
2278
2417
|
}
|
|
2279
2418
|
function ContextMenuTrigger(_a) {
|
|
2280
2419
|
var props = __objRest(_a, []);
|
|
2281
|
-
return /* @__PURE__ */
|
|
2420
|
+
return /* @__PURE__ */ jsx22(ContextMenuPrimitive.Trigger, __spreadValues({ "data-slot": "context-menu-trigger" }, props));
|
|
2282
2421
|
}
|
|
2283
2422
|
function ContextMenuGroup(_a) {
|
|
2284
2423
|
var props = __objRest(_a, []);
|
|
2285
|
-
return /* @__PURE__ */
|
|
2424
|
+
return /* @__PURE__ */ jsx22(ContextMenuPrimitive.Group, __spreadValues({ "data-slot": "context-menu-group" }, props));
|
|
2286
2425
|
}
|
|
2287
2426
|
function ContextMenuPortal(_a) {
|
|
2288
2427
|
var props = __objRest(_a, []);
|
|
2289
|
-
return /* @__PURE__ */
|
|
2428
|
+
return /* @__PURE__ */ jsx22(ContextMenuPrimitive.Portal, __spreadValues({ "data-slot": "context-menu-portal" }, props));
|
|
2290
2429
|
}
|
|
2291
2430
|
function ContextMenuSub(_a) {
|
|
2292
2431
|
var props = __objRest(_a, []);
|
|
2293
|
-
return /* @__PURE__ */
|
|
2432
|
+
return /* @__PURE__ */ jsx22(ContextMenuPrimitive.Sub, __spreadValues({ "data-slot": "context-menu-sub" }, props));
|
|
2294
2433
|
}
|
|
2295
2434
|
function ContextMenuRadioGroup(_a) {
|
|
2296
2435
|
var props = __objRest(_a, []);
|
|
2297
|
-
return /* @__PURE__ */
|
|
2436
|
+
return /* @__PURE__ */ jsx22(
|
|
2298
2437
|
ContextMenuPrimitive.RadioGroup,
|
|
2299
2438
|
__spreadValues({
|
|
2300
2439
|
"data-slot": "context-menu-radio-group"
|
|
@@ -2311,7 +2450,7 @@ function ContextMenuSubTrigger(_a) {
|
|
|
2311
2450
|
"inset",
|
|
2312
2451
|
"children"
|
|
2313
2452
|
]);
|
|
2314
|
-
return /* @__PURE__ */
|
|
2453
|
+
return /* @__PURE__ */ jsxs11(
|
|
2315
2454
|
ContextMenuPrimitive.SubTrigger,
|
|
2316
2455
|
__spreadProps(__spreadValues({
|
|
2317
2456
|
"data-slot": "context-menu-sub-trigger",
|
|
@@ -2323,7 +2462,7 @@ function ContextMenuSubTrigger(_a) {
|
|
|
2323
2462
|
}, props), {
|
|
2324
2463
|
children: [
|
|
2325
2464
|
children,
|
|
2326
|
-
/* @__PURE__ */
|
|
2465
|
+
/* @__PURE__ */ jsx22(ChevronRightIcon2, { className: "ml-auto" })
|
|
2327
2466
|
]
|
|
2328
2467
|
})
|
|
2329
2468
|
);
|
|
@@ -2334,7 +2473,7 @@ function ContextMenuSubContent(_a) {
|
|
|
2334
2473
|
} = _b, props = __objRest(_b, [
|
|
2335
2474
|
"className"
|
|
2336
2475
|
]);
|
|
2337
|
-
return /* @__PURE__ */
|
|
2476
|
+
return /* @__PURE__ */ jsx22(
|
|
2338
2477
|
ContextMenuPrimitive.SubContent,
|
|
2339
2478
|
__spreadValues({
|
|
2340
2479
|
"data-slot": "context-menu-sub-content",
|
|
@@ -2351,7 +2490,7 @@ function ContextMenuContent(_a) {
|
|
|
2351
2490
|
} = _b, props = __objRest(_b, [
|
|
2352
2491
|
"className"
|
|
2353
2492
|
]);
|
|
2354
|
-
return /* @__PURE__ */
|
|
2493
|
+
return /* @__PURE__ */ jsx22(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx22(
|
|
2355
2494
|
ContextMenuPrimitive.Content,
|
|
2356
2495
|
__spreadValues({
|
|
2357
2496
|
"data-slot": "context-menu-content",
|
|
@@ -2372,7 +2511,7 @@ function ContextMenuItem(_a) {
|
|
|
2372
2511
|
"inset",
|
|
2373
2512
|
"variant"
|
|
2374
2513
|
]);
|
|
2375
|
-
return /* @__PURE__ */
|
|
2514
|
+
return /* @__PURE__ */ jsx22(
|
|
2376
2515
|
ContextMenuPrimitive.Item,
|
|
2377
2516
|
__spreadValues({
|
|
2378
2517
|
"data-slot": "context-menu-item",
|
|
@@ -2395,7 +2534,7 @@ function ContextMenuCheckboxItem(_a) {
|
|
|
2395
2534
|
"children",
|
|
2396
2535
|
"checked"
|
|
2397
2536
|
]);
|
|
2398
|
-
return /* @__PURE__ */
|
|
2537
|
+
return /* @__PURE__ */ jsxs11(
|
|
2399
2538
|
ContextMenuPrimitive.CheckboxItem,
|
|
2400
2539
|
__spreadProps(__spreadValues({
|
|
2401
2540
|
"data-slot": "context-menu-checkbox-item",
|
|
@@ -2406,7 +2545,7 @@ function ContextMenuCheckboxItem(_a) {
|
|
|
2406
2545
|
checked
|
|
2407
2546
|
}, props), {
|
|
2408
2547
|
children: [
|
|
2409
|
-
/* @__PURE__ */
|
|
2548
|
+
/* @__PURE__ */ jsx22("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx22(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx22(CheckIcon3, { className: "size-4" }) }) }),
|
|
2410
2549
|
children
|
|
2411
2550
|
]
|
|
2412
2551
|
})
|
|
@@ -2420,7 +2559,7 @@ function ContextMenuRadioItem(_a) {
|
|
|
2420
2559
|
"className",
|
|
2421
2560
|
"children"
|
|
2422
2561
|
]);
|
|
2423
|
-
return /* @__PURE__ */
|
|
2562
|
+
return /* @__PURE__ */ jsxs11(
|
|
2424
2563
|
ContextMenuPrimitive.RadioItem,
|
|
2425
2564
|
__spreadProps(__spreadValues({
|
|
2426
2565
|
"data-slot": "context-menu-radio-item",
|
|
@@ -2430,7 +2569,7 @@ function ContextMenuRadioItem(_a) {
|
|
|
2430
2569
|
)
|
|
2431
2570
|
}, props), {
|
|
2432
2571
|
children: [
|
|
2433
|
-
/* @__PURE__ */
|
|
2572
|
+
/* @__PURE__ */ jsx22("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx22(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx22(CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
2434
2573
|
children
|
|
2435
2574
|
]
|
|
2436
2575
|
})
|
|
@@ -2444,7 +2583,7 @@ function ContextMenuLabel(_a) {
|
|
|
2444
2583
|
"className",
|
|
2445
2584
|
"inset"
|
|
2446
2585
|
]);
|
|
2447
|
-
return /* @__PURE__ */
|
|
2586
|
+
return /* @__PURE__ */ jsx22(
|
|
2448
2587
|
ContextMenuPrimitive.Label,
|
|
2449
2588
|
__spreadValues({
|
|
2450
2589
|
"data-slot": "context-menu-label",
|
|
@@ -2462,7 +2601,7 @@ function ContextMenuSeparator(_a) {
|
|
|
2462
2601
|
} = _b, props = __objRest(_b, [
|
|
2463
2602
|
"className"
|
|
2464
2603
|
]);
|
|
2465
|
-
return /* @__PURE__ */
|
|
2604
|
+
return /* @__PURE__ */ jsx22(
|
|
2466
2605
|
ContextMenuPrimitive.Separator,
|
|
2467
2606
|
__spreadValues({
|
|
2468
2607
|
"data-slot": "context-menu-separator",
|
|
@@ -2476,7 +2615,7 @@ function ContextMenuShortcut(_a) {
|
|
|
2476
2615
|
} = _b, props = __objRest(_b, [
|
|
2477
2616
|
"className"
|
|
2478
2617
|
]);
|
|
2479
|
-
return /* @__PURE__ */
|
|
2618
|
+
return /* @__PURE__ */ jsx22(
|
|
2480
2619
|
"span",
|
|
2481
2620
|
__spreadValues({
|
|
2482
2621
|
"data-slot": "context-menu-shortcut",
|
|
@@ -2490,34 +2629,34 @@ function ContextMenuShortcut(_a) {
|
|
|
2490
2629
|
|
|
2491
2630
|
// components/ui/direction.tsx
|
|
2492
2631
|
import { Direction } from "radix-ui";
|
|
2493
|
-
import { jsx as
|
|
2632
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
2494
2633
|
function DirectionProvider({
|
|
2495
2634
|
dir,
|
|
2496
2635
|
direction,
|
|
2497
2636
|
children
|
|
2498
2637
|
}) {
|
|
2499
|
-
return /* @__PURE__ */
|
|
2638
|
+
return /* @__PURE__ */ jsx23(Direction.DirectionProvider, { dir: direction != null ? direction : dir, children });
|
|
2500
2639
|
}
|
|
2501
2640
|
var useDirection = Direction.useDirection;
|
|
2502
2641
|
|
|
2503
2642
|
// components/ui/drawer.tsx
|
|
2504
2643
|
import { Drawer as DrawerPrimitive } from "vaul";
|
|
2505
|
-
import { jsx as
|
|
2644
|
+
import { jsx as jsx24, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2506
2645
|
function Drawer(_a) {
|
|
2507
2646
|
var props = __objRest(_a, []);
|
|
2508
|
-
return /* @__PURE__ */
|
|
2647
|
+
return /* @__PURE__ */ jsx24(DrawerPrimitive.Root, __spreadValues({ "data-slot": "drawer" }, props));
|
|
2509
2648
|
}
|
|
2510
2649
|
function DrawerTrigger(_a) {
|
|
2511
2650
|
var props = __objRest(_a, []);
|
|
2512
|
-
return /* @__PURE__ */
|
|
2651
|
+
return /* @__PURE__ */ jsx24(DrawerPrimitive.Trigger, __spreadValues({ "data-slot": "drawer-trigger" }, props));
|
|
2513
2652
|
}
|
|
2514
2653
|
function DrawerPortal(_a) {
|
|
2515
2654
|
var props = __objRest(_a, []);
|
|
2516
|
-
return /* @__PURE__ */
|
|
2655
|
+
return /* @__PURE__ */ jsx24(DrawerPrimitive.Portal, __spreadValues({ "data-slot": "drawer-portal" }, props));
|
|
2517
2656
|
}
|
|
2518
2657
|
function DrawerClose(_a) {
|
|
2519
2658
|
var props = __objRest(_a, []);
|
|
2520
|
-
return /* @__PURE__ */
|
|
2659
|
+
return /* @__PURE__ */ jsx24(DrawerPrimitive.Close, __spreadValues({ "data-slot": "drawer-close" }, props));
|
|
2521
2660
|
}
|
|
2522
2661
|
function DrawerOverlay(_a) {
|
|
2523
2662
|
var _b = _a, {
|
|
@@ -2525,7 +2664,7 @@ function DrawerOverlay(_a) {
|
|
|
2525
2664
|
} = _b, props = __objRest(_b, [
|
|
2526
2665
|
"className"
|
|
2527
2666
|
]);
|
|
2528
|
-
return /* @__PURE__ */
|
|
2667
|
+
return /* @__PURE__ */ jsx24(
|
|
2529
2668
|
DrawerPrimitive.Overlay,
|
|
2530
2669
|
__spreadValues({
|
|
2531
2670
|
"data-slot": "drawer-overlay",
|
|
@@ -2544,9 +2683,9 @@ function DrawerContent(_a) {
|
|
|
2544
2683
|
"className",
|
|
2545
2684
|
"children"
|
|
2546
2685
|
]);
|
|
2547
|
-
return /* @__PURE__ */
|
|
2548
|
-
/* @__PURE__ */
|
|
2549
|
-
/* @__PURE__ */
|
|
2686
|
+
return /* @__PURE__ */ jsxs12(DrawerPortal, { "data-slot": "drawer-portal", children: [
|
|
2687
|
+
/* @__PURE__ */ jsx24(DrawerOverlay, {}),
|
|
2688
|
+
/* @__PURE__ */ jsxs12(
|
|
2550
2689
|
DrawerPrimitive.Content,
|
|
2551
2690
|
__spreadProps(__spreadValues({
|
|
2552
2691
|
"data-slot": "drawer-content",
|
|
@@ -2560,7 +2699,7 @@ function DrawerContent(_a) {
|
|
|
2560
2699
|
)
|
|
2561
2700
|
}, props), {
|
|
2562
2701
|
children: [
|
|
2563
|
-
/* @__PURE__ */
|
|
2702
|
+
/* @__PURE__ */ jsx24("div", { className: "mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full bg-subtle group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
|
|
2564
2703
|
children
|
|
2565
2704
|
]
|
|
2566
2705
|
})
|
|
@@ -2569,7 +2708,7 @@ function DrawerContent(_a) {
|
|
|
2569
2708
|
}
|
|
2570
2709
|
function DrawerHeader(_a) {
|
|
2571
2710
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2572
|
-
return /* @__PURE__ */
|
|
2711
|
+
return /* @__PURE__ */ jsx24(
|
|
2573
2712
|
"div",
|
|
2574
2713
|
__spreadValues({
|
|
2575
2714
|
"data-slot": "drawer-header",
|
|
@@ -2582,7 +2721,7 @@ function DrawerHeader(_a) {
|
|
|
2582
2721
|
}
|
|
2583
2722
|
function DrawerFooter(_a) {
|
|
2584
2723
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2585
|
-
return /* @__PURE__ */
|
|
2724
|
+
return /* @__PURE__ */ jsx24(
|
|
2586
2725
|
"div",
|
|
2587
2726
|
__spreadValues({
|
|
2588
2727
|
"data-slot": "drawer-footer",
|
|
@@ -2596,7 +2735,7 @@ function DrawerTitle(_a) {
|
|
|
2596
2735
|
} = _b, props = __objRest(_b, [
|
|
2597
2736
|
"className"
|
|
2598
2737
|
]);
|
|
2599
|
-
return /* @__PURE__ */
|
|
2738
|
+
return /* @__PURE__ */ jsx24(
|
|
2600
2739
|
DrawerPrimitive.Title,
|
|
2601
2740
|
__spreadValues({
|
|
2602
2741
|
"data-slot": "drawer-title",
|
|
@@ -2610,7 +2749,7 @@ function DrawerDescription(_a) {
|
|
|
2610
2749
|
} = _b, props = __objRest(_b, [
|
|
2611
2750
|
"className"
|
|
2612
2751
|
]);
|
|
2613
|
-
return /* @__PURE__ */
|
|
2752
|
+
return /* @__PURE__ */ jsx24(
|
|
2614
2753
|
DrawerPrimitive.Description,
|
|
2615
2754
|
__spreadValues({
|
|
2616
2755
|
"data-slot": "drawer-description",
|
|
@@ -2622,18 +2761,18 @@ function DrawerDescription(_a) {
|
|
|
2622
2761
|
// components/ui/dropdown-menu.tsx
|
|
2623
2762
|
import { CheckIcon as CheckIcon4, ChevronRightIcon as ChevronRightIcon3, CircleIcon as CircleIcon2 } from "lucide-react";
|
|
2624
2763
|
import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
|
|
2625
|
-
import { jsx as
|
|
2764
|
+
import { jsx as jsx25, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2626
2765
|
function DropdownMenu(_a) {
|
|
2627
2766
|
var props = __objRest(_a, []);
|
|
2628
|
-
return /* @__PURE__ */
|
|
2767
|
+
return /* @__PURE__ */ jsx25(DropdownMenuPrimitive.Root, __spreadValues({ "data-slot": "dropdown-menu" }, props));
|
|
2629
2768
|
}
|
|
2630
2769
|
function DropdownMenuPortal(_a) {
|
|
2631
2770
|
var props = __objRest(_a, []);
|
|
2632
|
-
return /* @__PURE__ */
|
|
2771
|
+
return /* @__PURE__ */ jsx25(DropdownMenuPrimitive.Portal, __spreadValues({ "data-slot": "dropdown-menu-portal" }, props));
|
|
2633
2772
|
}
|
|
2634
2773
|
function DropdownMenuTrigger(_a) {
|
|
2635
2774
|
var props = __objRest(_a, []);
|
|
2636
|
-
return /* @__PURE__ */
|
|
2775
|
+
return /* @__PURE__ */ jsx25(
|
|
2637
2776
|
DropdownMenuPrimitive.Trigger,
|
|
2638
2777
|
__spreadValues({
|
|
2639
2778
|
"data-slot": "dropdown-menu-trigger"
|
|
@@ -2648,7 +2787,7 @@ function DropdownMenuContent(_a) {
|
|
|
2648
2787
|
"className",
|
|
2649
2788
|
"sideOffset"
|
|
2650
2789
|
]);
|
|
2651
|
-
return /* @__PURE__ */
|
|
2790
|
+
return /* @__PURE__ */ jsx25(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx25(
|
|
2652
2791
|
DropdownMenuPrimitive.Content,
|
|
2653
2792
|
__spreadValues({
|
|
2654
2793
|
"data-slot": "dropdown-menu-content",
|
|
@@ -2662,7 +2801,7 @@ function DropdownMenuContent(_a) {
|
|
|
2662
2801
|
}
|
|
2663
2802
|
function DropdownMenuGroup(_a) {
|
|
2664
2803
|
var props = __objRest(_a, []);
|
|
2665
|
-
return /* @__PURE__ */
|
|
2804
|
+
return /* @__PURE__ */ jsx25(DropdownMenuPrimitive.Group, __spreadValues({ "data-slot": "dropdown-menu-group" }, props));
|
|
2666
2805
|
}
|
|
2667
2806
|
function DropdownMenuItem(_a) {
|
|
2668
2807
|
var _b = _a, {
|
|
@@ -2674,7 +2813,7 @@ function DropdownMenuItem(_a) {
|
|
|
2674
2813
|
"inset",
|
|
2675
2814
|
"variant"
|
|
2676
2815
|
]);
|
|
2677
|
-
return /* @__PURE__ */
|
|
2816
|
+
return /* @__PURE__ */ jsx25(
|
|
2678
2817
|
DropdownMenuPrimitive.Item,
|
|
2679
2818
|
__spreadValues({
|
|
2680
2819
|
"data-slot": "dropdown-menu-item",
|
|
@@ -2697,7 +2836,7 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
2697
2836
|
"children",
|
|
2698
2837
|
"checked"
|
|
2699
2838
|
]);
|
|
2700
|
-
return /* @__PURE__ */
|
|
2839
|
+
return /* @__PURE__ */ jsxs13(
|
|
2701
2840
|
DropdownMenuPrimitive.CheckboxItem,
|
|
2702
2841
|
__spreadProps(__spreadValues({
|
|
2703
2842
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
@@ -2708,7 +2847,7 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
2708
2847
|
checked
|
|
2709
2848
|
}, props), {
|
|
2710
2849
|
children: [
|
|
2711
|
-
/* @__PURE__ */
|
|
2850
|
+
/* @__PURE__ */ jsx25("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx25(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx25(CheckIcon4, { className: "size-4" }) }) }),
|
|
2712
2851
|
children
|
|
2713
2852
|
]
|
|
2714
2853
|
})
|
|
@@ -2716,7 +2855,7 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
2716
2855
|
}
|
|
2717
2856
|
function DropdownMenuRadioGroup(_a) {
|
|
2718
2857
|
var props = __objRest(_a, []);
|
|
2719
|
-
return /* @__PURE__ */
|
|
2858
|
+
return /* @__PURE__ */ jsx25(
|
|
2720
2859
|
DropdownMenuPrimitive.RadioGroup,
|
|
2721
2860
|
__spreadValues({
|
|
2722
2861
|
"data-slot": "dropdown-menu-radio-group"
|
|
@@ -2731,7 +2870,7 @@ function DropdownMenuRadioItem(_a) {
|
|
|
2731
2870
|
"className",
|
|
2732
2871
|
"children"
|
|
2733
2872
|
]);
|
|
2734
|
-
return /* @__PURE__ */
|
|
2873
|
+
return /* @__PURE__ */ jsxs13(
|
|
2735
2874
|
DropdownMenuPrimitive.RadioItem,
|
|
2736
2875
|
__spreadProps(__spreadValues({
|
|
2737
2876
|
"data-slot": "dropdown-menu-radio-item",
|
|
@@ -2741,7 +2880,7 @@ function DropdownMenuRadioItem(_a) {
|
|
|
2741
2880
|
)
|
|
2742
2881
|
}, props), {
|
|
2743
2882
|
children: [
|
|
2744
|
-
/* @__PURE__ */
|
|
2883
|
+
/* @__PURE__ */ jsx25("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx25(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx25(CircleIcon2, { className: "size-2 fill-current" }) }) }),
|
|
2745
2884
|
children
|
|
2746
2885
|
]
|
|
2747
2886
|
})
|
|
@@ -2755,7 +2894,7 @@ function DropdownMenuLabel(_a) {
|
|
|
2755
2894
|
"className",
|
|
2756
2895
|
"inset"
|
|
2757
2896
|
]);
|
|
2758
|
-
return /* @__PURE__ */
|
|
2897
|
+
return /* @__PURE__ */ jsx25(
|
|
2759
2898
|
DropdownMenuPrimitive.Label,
|
|
2760
2899
|
__spreadValues({
|
|
2761
2900
|
"data-slot": "dropdown-menu-label",
|
|
@@ -2773,7 +2912,7 @@ function DropdownMenuSeparator(_a) {
|
|
|
2773
2912
|
} = _b, props = __objRest(_b, [
|
|
2774
2913
|
"className"
|
|
2775
2914
|
]);
|
|
2776
|
-
return /* @__PURE__ */
|
|
2915
|
+
return /* @__PURE__ */ jsx25(
|
|
2777
2916
|
DropdownMenuPrimitive.Separator,
|
|
2778
2917
|
__spreadValues({
|
|
2779
2918
|
"data-slot": "dropdown-menu-separator",
|
|
@@ -2787,7 +2926,7 @@ function DropdownMenuShortcut(_a) {
|
|
|
2787
2926
|
} = _b, props = __objRest(_b, [
|
|
2788
2927
|
"className"
|
|
2789
2928
|
]);
|
|
2790
|
-
return /* @__PURE__ */
|
|
2929
|
+
return /* @__PURE__ */ jsx25(
|
|
2791
2930
|
"span",
|
|
2792
2931
|
__spreadValues({
|
|
2793
2932
|
"data-slot": "dropdown-menu-shortcut",
|
|
@@ -2800,7 +2939,7 @@ function DropdownMenuShortcut(_a) {
|
|
|
2800
2939
|
}
|
|
2801
2940
|
function DropdownMenuSub(_a) {
|
|
2802
2941
|
var props = __objRest(_a, []);
|
|
2803
|
-
return /* @__PURE__ */
|
|
2942
|
+
return /* @__PURE__ */ jsx25(DropdownMenuPrimitive.Sub, __spreadValues({ "data-slot": "dropdown-menu-sub" }, props));
|
|
2804
2943
|
}
|
|
2805
2944
|
function DropdownMenuSubTrigger(_a) {
|
|
2806
2945
|
var _b = _a, {
|
|
@@ -2812,7 +2951,7 @@ function DropdownMenuSubTrigger(_a) {
|
|
|
2812
2951
|
"inset",
|
|
2813
2952
|
"children"
|
|
2814
2953
|
]);
|
|
2815
|
-
return /* @__PURE__ */
|
|
2954
|
+
return /* @__PURE__ */ jsxs13(
|
|
2816
2955
|
DropdownMenuPrimitive.SubTrigger,
|
|
2817
2956
|
__spreadProps(__spreadValues({
|
|
2818
2957
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
@@ -2824,7 +2963,7 @@ function DropdownMenuSubTrigger(_a) {
|
|
|
2824
2963
|
}, props), {
|
|
2825
2964
|
children: [
|
|
2826
2965
|
children,
|
|
2827
|
-
/* @__PURE__ */
|
|
2966
|
+
/* @__PURE__ */ jsx25(ChevronRightIcon3, { className: "ml-auto size-4" })
|
|
2828
2967
|
]
|
|
2829
2968
|
})
|
|
2830
2969
|
);
|
|
@@ -2835,7 +2974,7 @@ function DropdownMenuSubContent(_a) {
|
|
|
2835
2974
|
} = _b, props = __objRest(_b, [
|
|
2836
2975
|
"className"
|
|
2837
2976
|
]);
|
|
2838
|
-
return /* @__PURE__ */
|
|
2977
|
+
return /* @__PURE__ */ jsx25(
|
|
2839
2978
|
DropdownMenuPrimitive.SubContent,
|
|
2840
2979
|
__spreadValues({
|
|
2841
2980
|
"data-slot": "dropdown-menu-sub-content",
|
|
@@ -2848,11 +2987,11 @@ function DropdownMenuSubContent(_a) {
|
|
|
2848
2987
|
}
|
|
2849
2988
|
|
|
2850
2989
|
// components/ui/empty.tsx
|
|
2851
|
-
import { cva as
|
|
2852
|
-
import { jsx as
|
|
2990
|
+
import { cva as cva6 } from "class-variance-authority";
|
|
2991
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
2853
2992
|
function Empty(_a) {
|
|
2854
2993
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2855
|
-
return /* @__PURE__ */
|
|
2994
|
+
return /* @__PURE__ */ jsx26(
|
|
2856
2995
|
"div",
|
|
2857
2996
|
__spreadValues({
|
|
2858
2997
|
"data-slot": "empty",
|
|
@@ -2865,7 +3004,7 @@ function Empty(_a) {
|
|
|
2865
3004
|
}
|
|
2866
3005
|
function EmptyHeader(_a) {
|
|
2867
3006
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2868
|
-
return /* @__PURE__ */
|
|
3007
|
+
return /* @__PURE__ */ jsx26(
|
|
2869
3008
|
"div",
|
|
2870
3009
|
__spreadValues({
|
|
2871
3010
|
"data-slot": "empty-header",
|
|
@@ -2876,7 +3015,7 @@ function EmptyHeader(_a) {
|
|
|
2876
3015
|
}, props)
|
|
2877
3016
|
);
|
|
2878
3017
|
}
|
|
2879
|
-
var emptyMediaVariants =
|
|
3018
|
+
var emptyMediaVariants = cva6(
|
|
2880
3019
|
"mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
2881
3020
|
{
|
|
2882
3021
|
variants: {
|
|
@@ -2898,7 +3037,7 @@ function EmptyMedia(_a) {
|
|
|
2898
3037
|
"className",
|
|
2899
3038
|
"variant"
|
|
2900
3039
|
]);
|
|
2901
|
-
return /* @__PURE__ */
|
|
3040
|
+
return /* @__PURE__ */ jsx26(
|
|
2902
3041
|
"div",
|
|
2903
3042
|
__spreadValues({
|
|
2904
3043
|
"data-slot": "empty-icon",
|
|
@@ -2909,7 +3048,7 @@ function EmptyMedia(_a) {
|
|
|
2909
3048
|
}
|
|
2910
3049
|
function EmptyTitle(_a) {
|
|
2911
3050
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2912
|
-
return /* @__PURE__ */
|
|
3051
|
+
return /* @__PURE__ */ jsx26(
|
|
2913
3052
|
"div",
|
|
2914
3053
|
__spreadValues({
|
|
2915
3054
|
"data-slot": "empty-title",
|
|
@@ -2919,7 +3058,7 @@ function EmptyTitle(_a) {
|
|
|
2919
3058
|
}
|
|
2920
3059
|
function EmptyDescription(_a) {
|
|
2921
3060
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2922
|
-
return /* @__PURE__ */
|
|
3061
|
+
return /* @__PURE__ */ jsx26(
|
|
2923
3062
|
"div",
|
|
2924
3063
|
__spreadValues({
|
|
2925
3064
|
"data-slot": "empty-description",
|
|
@@ -2932,7 +3071,7 @@ function EmptyDescription(_a) {
|
|
|
2932
3071
|
}
|
|
2933
3072
|
function EmptyContent(_a) {
|
|
2934
3073
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2935
|
-
return /* @__PURE__ */
|
|
3074
|
+
return /* @__PURE__ */ jsx26(
|
|
2936
3075
|
"div",
|
|
2937
3076
|
__spreadValues({
|
|
2938
3077
|
"data-slot": "empty-content",
|
|
@@ -2946,18 +3085,18 @@ function EmptyContent(_a) {
|
|
|
2946
3085
|
|
|
2947
3086
|
// components/ui/field.tsx
|
|
2948
3087
|
import { useMemo as useMemo2 } from "react";
|
|
2949
|
-
import { cva as
|
|
3088
|
+
import { cva as cva7 } from "class-variance-authority";
|
|
2950
3089
|
|
|
2951
3090
|
// components/ui/label.tsx
|
|
2952
3091
|
import { Label as LabelPrimitive } from "radix-ui";
|
|
2953
|
-
import { jsx as
|
|
3092
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
2954
3093
|
function Label(_a) {
|
|
2955
3094
|
var _b = _a, {
|
|
2956
3095
|
className
|
|
2957
3096
|
} = _b, props = __objRest(_b, [
|
|
2958
3097
|
"className"
|
|
2959
3098
|
]);
|
|
2960
|
-
return /* @__PURE__ */
|
|
3099
|
+
return /* @__PURE__ */ jsx27(
|
|
2961
3100
|
LabelPrimitive.Root,
|
|
2962
3101
|
__spreadValues({
|
|
2963
3102
|
"data-slot": "label",
|
|
@@ -2971,7 +3110,7 @@ function Label(_a) {
|
|
|
2971
3110
|
|
|
2972
3111
|
// components/ui/separator.tsx
|
|
2973
3112
|
import { Separator as SeparatorPrimitive } from "radix-ui";
|
|
2974
|
-
import { jsx as
|
|
3113
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
2975
3114
|
function Separator(_a) {
|
|
2976
3115
|
var _b = _a, {
|
|
2977
3116
|
className,
|
|
@@ -2982,7 +3121,7 @@ function Separator(_a) {
|
|
|
2982
3121
|
"orientation",
|
|
2983
3122
|
"decorative"
|
|
2984
3123
|
]);
|
|
2985
|
-
return /* @__PURE__ */
|
|
3124
|
+
return /* @__PURE__ */ jsx28(
|
|
2986
3125
|
SeparatorPrimitive.Root,
|
|
2987
3126
|
__spreadValues({
|
|
2988
3127
|
"data-slot": "separator",
|
|
@@ -2997,10 +3136,10 @@ function Separator(_a) {
|
|
|
2997
3136
|
}
|
|
2998
3137
|
|
|
2999
3138
|
// components/ui/field.tsx
|
|
3000
|
-
import { jsx as
|
|
3139
|
+
import { jsx as jsx29, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
3001
3140
|
function FieldSet(_a) {
|
|
3002
3141
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3003
|
-
return /* @__PURE__ */
|
|
3142
|
+
return /* @__PURE__ */ jsx29(
|
|
3004
3143
|
"fieldset",
|
|
3005
3144
|
__spreadValues({
|
|
3006
3145
|
"data-slot": "field-set",
|
|
@@ -3020,7 +3159,7 @@ function FieldLegend(_a) {
|
|
|
3020
3159
|
"className",
|
|
3021
3160
|
"variant"
|
|
3022
3161
|
]);
|
|
3023
|
-
return /* @__PURE__ */
|
|
3162
|
+
return /* @__PURE__ */ jsx29(
|
|
3024
3163
|
"legend",
|
|
3025
3164
|
__spreadValues({
|
|
3026
3165
|
"data-slot": "field-legend",
|
|
@@ -3036,7 +3175,7 @@ function FieldLegend(_a) {
|
|
|
3036
3175
|
}
|
|
3037
3176
|
function FieldGroup(_a) {
|
|
3038
3177
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3039
|
-
return /* @__PURE__ */
|
|
3178
|
+
return /* @__PURE__ */ jsx29(
|
|
3040
3179
|
"div",
|
|
3041
3180
|
__spreadValues({
|
|
3042
3181
|
"data-slot": "field-group",
|
|
@@ -3047,7 +3186,7 @@ function FieldGroup(_a) {
|
|
|
3047
3186
|
}, props)
|
|
3048
3187
|
);
|
|
3049
3188
|
}
|
|
3050
|
-
var fieldVariants =
|
|
3189
|
+
var fieldVariants = cva7(
|
|
3051
3190
|
"group/field flex w-full gap-3 data-[invalid=true]:text-destructive",
|
|
3052
3191
|
{
|
|
3053
3192
|
variants: {
|
|
@@ -3078,7 +3217,7 @@ function Field(_a) {
|
|
|
3078
3217
|
"className",
|
|
3079
3218
|
"orientation"
|
|
3080
3219
|
]);
|
|
3081
|
-
return /* @__PURE__ */
|
|
3220
|
+
return /* @__PURE__ */ jsx29(
|
|
3082
3221
|
"div",
|
|
3083
3222
|
__spreadValues({
|
|
3084
3223
|
role: "group",
|
|
@@ -3090,7 +3229,7 @@ function Field(_a) {
|
|
|
3090
3229
|
}
|
|
3091
3230
|
function FieldContent(_a) {
|
|
3092
3231
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3093
|
-
return /* @__PURE__ */
|
|
3232
|
+
return /* @__PURE__ */ jsx29(
|
|
3094
3233
|
"div",
|
|
3095
3234
|
__spreadValues({
|
|
3096
3235
|
"data-slot": "field-content",
|
|
@@ -3107,7 +3246,7 @@ function FieldLabel(_a) {
|
|
|
3107
3246
|
} = _b, props = __objRest(_b, [
|
|
3108
3247
|
"className"
|
|
3109
3248
|
]);
|
|
3110
|
-
return /* @__PURE__ */
|
|
3249
|
+
return /* @__PURE__ */ jsx29(
|
|
3111
3250
|
Label,
|
|
3112
3251
|
__spreadValues({
|
|
3113
3252
|
"data-slot": "field-label",
|
|
@@ -3122,7 +3261,7 @@ function FieldLabel(_a) {
|
|
|
3122
3261
|
}
|
|
3123
3262
|
function FieldTitle(_a) {
|
|
3124
3263
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3125
|
-
return /* @__PURE__ */
|
|
3264
|
+
return /* @__PURE__ */ jsx29(
|
|
3126
3265
|
"div",
|
|
3127
3266
|
__spreadValues({
|
|
3128
3267
|
"data-slot": "field-label",
|
|
@@ -3135,7 +3274,7 @@ function FieldTitle(_a) {
|
|
|
3135
3274
|
}
|
|
3136
3275
|
function FieldDescription(_a) {
|
|
3137
3276
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3138
|
-
return /* @__PURE__ */
|
|
3277
|
+
return /* @__PURE__ */ jsx29(
|
|
3139
3278
|
"p",
|
|
3140
3279
|
__spreadValues({
|
|
3141
3280
|
"data-slot": "field-description",
|
|
@@ -3156,7 +3295,7 @@ function FieldSeparator(_a) {
|
|
|
3156
3295
|
"children",
|
|
3157
3296
|
"className"
|
|
3158
3297
|
]);
|
|
3159
|
-
return /* @__PURE__ */
|
|
3298
|
+
return /* @__PURE__ */ jsxs14(
|
|
3160
3299
|
"div",
|
|
3161
3300
|
__spreadProps(__spreadValues({
|
|
3162
3301
|
"data-slot": "field-separator",
|
|
@@ -3167,8 +3306,8 @@ function FieldSeparator(_a) {
|
|
|
3167
3306
|
)
|
|
3168
3307
|
}, props), {
|
|
3169
3308
|
children: [
|
|
3170
|
-
/* @__PURE__ */
|
|
3171
|
-
children && /* @__PURE__ */
|
|
3309
|
+
/* @__PURE__ */ jsx29(Separator, { className: "absolute inset-0 top-1/2" }),
|
|
3310
|
+
children && /* @__PURE__ */ jsx29(
|
|
3172
3311
|
"span",
|
|
3173
3312
|
{
|
|
3174
3313
|
className: "relative mx-auto block w-fit bg-prominent px-2 text-on-subtle",
|
|
@@ -3204,14 +3343,14 @@ function FieldError(_a) {
|
|
|
3204
3343
|
if ((uniqueErrors == null ? void 0 : uniqueErrors.length) == 1) {
|
|
3205
3344
|
return (_a2 = uniqueErrors[0]) == null ? void 0 : _a2.message;
|
|
3206
3345
|
}
|
|
3207
|
-
return /* @__PURE__ */
|
|
3208
|
-
(error, index) => (error == null ? void 0 : error.message) && /* @__PURE__ */
|
|
3346
|
+
return /* @__PURE__ */ jsx29("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: uniqueErrors.map(
|
|
3347
|
+
(error, index) => (error == null ? void 0 : error.message) && /* @__PURE__ */ jsx29("li", { children: error.message }, index)
|
|
3209
3348
|
) });
|
|
3210
3349
|
}, [children, errors]);
|
|
3211
3350
|
if (!content) {
|
|
3212
3351
|
return null;
|
|
3213
3352
|
}
|
|
3214
|
-
return /* @__PURE__ */
|
|
3353
|
+
return /* @__PURE__ */ jsx29(
|
|
3215
3354
|
"div",
|
|
3216
3355
|
__spreadProps(__spreadValues({
|
|
3217
3356
|
role: "alert",
|
|
@@ -3224,7 +3363,7 @@ function FieldError(_a) {
|
|
|
3224
3363
|
}
|
|
3225
3364
|
|
|
3226
3365
|
// components/ui/form.tsx
|
|
3227
|
-
import * as
|
|
3366
|
+
import * as React6 from "react";
|
|
3228
3367
|
import { Slot as Slot4 } from "radix-ui";
|
|
3229
3368
|
import {
|
|
3230
3369
|
Controller,
|
|
@@ -3232,18 +3371,18 @@ import {
|
|
|
3232
3371
|
useFormContext,
|
|
3233
3372
|
useFormState
|
|
3234
3373
|
} from "react-hook-form";
|
|
3235
|
-
import { jsx as
|
|
3374
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
3236
3375
|
var Form = FormProvider;
|
|
3237
|
-
var FormFieldContext =
|
|
3376
|
+
var FormFieldContext = React6.createContext(
|
|
3238
3377
|
{}
|
|
3239
3378
|
);
|
|
3240
3379
|
var FormField = (_a) => {
|
|
3241
3380
|
var props = __objRest(_a, []);
|
|
3242
|
-
return /* @__PURE__ */
|
|
3381
|
+
return /* @__PURE__ */ jsx30(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx30(Controller, __spreadValues({}, props)) });
|
|
3243
3382
|
};
|
|
3244
3383
|
var useFormField = () => {
|
|
3245
|
-
const fieldContext =
|
|
3246
|
-
const itemContext =
|
|
3384
|
+
const fieldContext = React6.useContext(FormFieldContext);
|
|
3385
|
+
const itemContext = React6.useContext(FormItemContext);
|
|
3247
3386
|
const { getFieldState } = useFormContext();
|
|
3248
3387
|
const formState = useFormState({ name: fieldContext.name });
|
|
3249
3388
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
@@ -3259,13 +3398,13 @@ var useFormField = () => {
|
|
|
3259
3398
|
formMessageId: `${id}-form-item-message`
|
|
3260
3399
|
}, fieldState);
|
|
3261
3400
|
};
|
|
3262
|
-
var FormItemContext =
|
|
3401
|
+
var FormItemContext = React6.createContext(
|
|
3263
3402
|
{}
|
|
3264
3403
|
);
|
|
3265
3404
|
function FormItem(_a) {
|
|
3266
3405
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3267
|
-
const id =
|
|
3268
|
-
return /* @__PURE__ */
|
|
3406
|
+
const id = React6.useId();
|
|
3407
|
+
return /* @__PURE__ */ jsx30(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx30(
|
|
3269
3408
|
"div",
|
|
3270
3409
|
__spreadValues({
|
|
3271
3410
|
"data-slot": "form-item",
|
|
@@ -3280,7 +3419,7 @@ function FormLabel(_a) {
|
|
|
3280
3419
|
"className"
|
|
3281
3420
|
]);
|
|
3282
3421
|
const { error, formItemId } = useFormField();
|
|
3283
|
-
return /* @__PURE__ */
|
|
3422
|
+
return /* @__PURE__ */ jsx30(
|
|
3284
3423
|
Label,
|
|
3285
3424
|
__spreadValues({
|
|
3286
3425
|
"data-slot": "form-label",
|
|
@@ -3293,7 +3432,7 @@ function FormLabel(_a) {
|
|
|
3293
3432
|
function FormControl(_a) {
|
|
3294
3433
|
var props = __objRest(_a, []);
|
|
3295
3434
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
3296
|
-
return /* @__PURE__ */
|
|
3435
|
+
return /* @__PURE__ */ jsx30(
|
|
3297
3436
|
Slot4.Root,
|
|
3298
3437
|
__spreadValues({
|
|
3299
3438
|
"data-slot": "form-control",
|
|
@@ -3306,7 +3445,7 @@ function FormControl(_a) {
|
|
|
3306
3445
|
function FormDescription(_a) {
|
|
3307
3446
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3308
3447
|
const { formDescriptionId } = useFormField();
|
|
3309
|
-
return /* @__PURE__ */
|
|
3448
|
+
return /* @__PURE__ */ jsx30(
|
|
3310
3449
|
"p",
|
|
3311
3450
|
__spreadValues({
|
|
3312
3451
|
"data-slot": "form-description",
|
|
@@ -3323,7 +3462,7 @@ function FormMessage(_a) {
|
|
|
3323
3462
|
if (!body) {
|
|
3324
3463
|
return null;
|
|
3325
3464
|
}
|
|
3326
|
-
return /* @__PURE__ */
|
|
3465
|
+
return /* @__PURE__ */ jsx30(
|
|
3327
3466
|
"p",
|
|
3328
3467
|
__spreadProps(__spreadValues({
|
|
3329
3468
|
"data-slot": "form-message",
|
|
@@ -3337,14 +3476,14 @@ function FormMessage(_a) {
|
|
|
3337
3476
|
|
|
3338
3477
|
// components/ui/hover-card.tsx
|
|
3339
3478
|
import { HoverCard as HoverCardPrimitive } from "radix-ui";
|
|
3340
|
-
import { jsx as
|
|
3479
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
3341
3480
|
function HoverCard(_a) {
|
|
3342
3481
|
var props = __objRest(_a, []);
|
|
3343
|
-
return /* @__PURE__ */
|
|
3482
|
+
return /* @__PURE__ */ jsx31(HoverCardPrimitive.Root, __spreadValues({ "data-slot": "hover-card" }, props));
|
|
3344
3483
|
}
|
|
3345
3484
|
function HoverCardTrigger(_a) {
|
|
3346
3485
|
var props = __objRest(_a, []);
|
|
3347
|
-
return /* @__PURE__ */
|
|
3486
|
+
return /* @__PURE__ */ jsx31(HoverCardPrimitive.Trigger, __spreadValues({ "data-slot": "hover-card-trigger" }, props));
|
|
3348
3487
|
}
|
|
3349
3488
|
function HoverCardContent(_a) {
|
|
3350
3489
|
var _b = _a, {
|
|
@@ -3356,7 +3495,7 @@ function HoverCardContent(_a) {
|
|
|
3356
3495
|
"align",
|
|
3357
3496
|
"sideOffset"
|
|
3358
3497
|
]);
|
|
3359
|
-
return /* @__PURE__ */
|
|
3498
|
+
return /* @__PURE__ */ jsx31(HoverCardPrimitive.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ jsx31(
|
|
3360
3499
|
HoverCardPrimitive.Content,
|
|
3361
3500
|
__spreadValues({
|
|
3362
3501
|
"data-slot": "hover-card-content",
|
|
@@ -3371,10 +3510,10 @@ function HoverCardContent(_a) {
|
|
|
3371
3510
|
}
|
|
3372
3511
|
|
|
3373
3512
|
// components/ui/input-otp.tsx
|
|
3374
|
-
import * as
|
|
3513
|
+
import * as React7 from "react";
|
|
3375
3514
|
import { OTPInput, OTPInputContext } from "input-otp";
|
|
3376
3515
|
import { MinusIcon } from "lucide-react";
|
|
3377
|
-
import { jsx as
|
|
3516
|
+
import { jsx as jsx32, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
3378
3517
|
function InputOTP(_a) {
|
|
3379
3518
|
var _b = _a, {
|
|
3380
3519
|
className,
|
|
@@ -3383,7 +3522,7 @@ function InputOTP(_a) {
|
|
|
3383
3522
|
"className",
|
|
3384
3523
|
"containerClassName"
|
|
3385
3524
|
]);
|
|
3386
|
-
return /* @__PURE__ */
|
|
3525
|
+
return /* @__PURE__ */ jsx32(
|
|
3387
3526
|
OTPInput,
|
|
3388
3527
|
__spreadValues({
|
|
3389
3528
|
"data-slot": "input-otp",
|
|
@@ -3397,7 +3536,7 @@ function InputOTP(_a) {
|
|
|
3397
3536
|
}
|
|
3398
3537
|
function InputOTPGroup(_a) {
|
|
3399
3538
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3400
|
-
return /* @__PURE__ */
|
|
3539
|
+
return /* @__PURE__ */ jsx32(
|
|
3401
3540
|
"div",
|
|
3402
3541
|
__spreadValues({
|
|
3403
3542
|
"data-slot": "input-otp-group",
|
|
@@ -3414,9 +3553,9 @@ function InputOTPSlot(_a) {
|
|
|
3414
3553
|
"className"
|
|
3415
3554
|
]);
|
|
3416
3555
|
var _a2;
|
|
3417
|
-
const inputOTPContext =
|
|
3556
|
+
const inputOTPContext = React7.useContext(OTPInputContext);
|
|
3418
3557
|
const { char, hasFakeCaret, isActive } = (_a2 = inputOTPContext == null ? void 0 : inputOTPContext.slots[index]) != null ? _a2 : {};
|
|
3419
|
-
return /* @__PURE__ */
|
|
3558
|
+
return /* @__PURE__ */ jsxs15(
|
|
3420
3559
|
"div",
|
|
3421
3560
|
__spreadProps(__spreadValues({
|
|
3422
3561
|
"data-slot": "input-otp-slot",
|
|
@@ -3428,23 +3567,23 @@ function InputOTPSlot(_a) {
|
|
|
3428
3567
|
}, props), {
|
|
3429
3568
|
children: [
|
|
3430
3569
|
char,
|
|
3431
|
-
hasFakeCaret && /* @__PURE__ */
|
|
3570
|
+
hasFakeCaret && /* @__PURE__ */ jsx32("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx32("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
|
|
3432
3571
|
]
|
|
3433
3572
|
})
|
|
3434
3573
|
);
|
|
3435
3574
|
}
|
|
3436
3575
|
function InputOTPSeparator(_a) {
|
|
3437
3576
|
var props = __objRest(_a, []);
|
|
3438
|
-
return /* @__PURE__ */
|
|
3577
|
+
return /* @__PURE__ */ jsx32("div", __spreadProps(__spreadValues({ "data-slot": "input-otp-separator", role: "separator" }, props), { children: /* @__PURE__ */ jsx32(MinusIcon, {}) }));
|
|
3439
3578
|
}
|
|
3440
3579
|
|
|
3441
3580
|
// components/ui/item.tsx
|
|
3442
|
-
import { cva as
|
|
3581
|
+
import { cva as cva8 } from "class-variance-authority";
|
|
3443
3582
|
import { Slot as Slot5 } from "radix-ui";
|
|
3444
|
-
import { jsx as
|
|
3583
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
3445
3584
|
function ItemGroup(_a) {
|
|
3446
3585
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3447
|
-
return /* @__PURE__ */
|
|
3586
|
+
return /* @__PURE__ */ jsx33(
|
|
3448
3587
|
"div",
|
|
3449
3588
|
__spreadValues({
|
|
3450
3589
|
role: "list",
|
|
@@ -3459,7 +3598,7 @@ function ItemSeparator(_a) {
|
|
|
3459
3598
|
} = _b, props = __objRest(_b, [
|
|
3460
3599
|
"className"
|
|
3461
3600
|
]);
|
|
3462
|
-
return /* @__PURE__ */
|
|
3601
|
+
return /* @__PURE__ */ jsx33(
|
|
3463
3602
|
Separator,
|
|
3464
3603
|
__spreadValues({
|
|
3465
3604
|
"data-slot": "item-separator",
|
|
@@ -3468,7 +3607,7 @@ function ItemSeparator(_a) {
|
|
|
3468
3607
|
}, props)
|
|
3469
3608
|
);
|
|
3470
3609
|
}
|
|
3471
|
-
var itemVariants =
|
|
3610
|
+
var itemVariants = cva8(
|
|
3472
3611
|
"group/item flex flex-wrap items-center rounded-md border border-transparent text-sm transition-colors duration-instant outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-secondary-hover",
|
|
3473
3612
|
{
|
|
3474
3613
|
variants: {
|
|
@@ -3501,7 +3640,7 @@ function Item(_a) {
|
|
|
3501
3640
|
"asChild"
|
|
3502
3641
|
]);
|
|
3503
3642
|
const Comp = asChild ? Slot5.Root : "div";
|
|
3504
|
-
return /* @__PURE__ */
|
|
3643
|
+
return /* @__PURE__ */ jsx33(
|
|
3505
3644
|
Comp,
|
|
3506
3645
|
__spreadValues({
|
|
3507
3646
|
"data-slot": "item",
|
|
@@ -3511,7 +3650,7 @@ function Item(_a) {
|
|
|
3511
3650
|
}, props)
|
|
3512
3651
|
);
|
|
3513
3652
|
}
|
|
3514
|
-
var itemMediaVariants =
|
|
3653
|
+
var itemMediaVariants = cva8(
|
|
3515
3654
|
"flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none",
|
|
3516
3655
|
{
|
|
3517
3656
|
variants: {
|
|
@@ -3534,7 +3673,7 @@ function ItemMedia(_a) {
|
|
|
3534
3673
|
"className",
|
|
3535
3674
|
"variant"
|
|
3536
3675
|
]);
|
|
3537
|
-
return /* @__PURE__ */
|
|
3676
|
+
return /* @__PURE__ */ jsx33(
|
|
3538
3677
|
"div",
|
|
3539
3678
|
__spreadValues({
|
|
3540
3679
|
"data-slot": "item-media",
|
|
@@ -3545,7 +3684,7 @@ function ItemMedia(_a) {
|
|
|
3545
3684
|
}
|
|
3546
3685
|
function ItemContent(_a) {
|
|
3547
3686
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3548
|
-
return /* @__PURE__ */
|
|
3687
|
+
return /* @__PURE__ */ jsx33(
|
|
3549
3688
|
"div",
|
|
3550
3689
|
__spreadValues({
|
|
3551
3690
|
"data-slot": "item-content",
|
|
@@ -3558,7 +3697,7 @@ function ItemContent(_a) {
|
|
|
3558
3697
|
}
|
|
3559
3698
|
function ItemTitle(_a) {
|
|
3560
3699
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3561
|
-
return /* @__PURE__ */
|
|
3700
|
+
return /* @__PURE__ */ jsx33(
|
|
3562
3701
|
"div",
|
|
3563
3702
|
__spreadValues({
|
|
3564
3703
|
"data-slot": "item-title",
|
|
@@ -3571,7 +3710,7 @@ function ItemTitle(_a) {
|
|
|
3571
3710
|
}
|
|
3572
3711
|
function ItemDescription(_a) {
|
|
3573
3712
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3574
|
-
return /* @__PURE__ */
|
|
3713
|
+
return /* @__PURE__ */ jsx33(
|
|
3575
3714
|
"p",
|
|
3576
3715
|
__spreadValues({
|
|
3577
3716
|
"data-slot": "item-description",
|
|
@@ -3585,7 +3724,7 @@ function ItemDescription(_a) {
|
|
|
3585
3724
|
}
|
|
3586
3725
|
function ItemActions(_a) {
|
|
3587
3726
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3588
|
-
return /* @__PURE__ */
|
|
3727
|
+
return /* @__PURE__ */ jsx33(
|
|
3589
3728
|
"div",
|
|
3590
3729
|
__spreadValues({
|
|
3591
3730
|
"data-slot": "item-actions",
|
|
@@ -3595,7 +3734,7 @@ function ItemActions(_a) {
|
|
|
3595
3734
|
}
|
|
3596
3735
|
function ItemHeader(_a) {
|
|
3597
3736
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3598
|
-
return /* @__PURE__ */
|
|
3737
|
+
return /* @__PURE__ */ jsx33(
|
|
3599
3738
|
"div",
|
|
3600
3739
|
__spreadValues({
|
|
3601
3740
|
"data-slot": "item-header",
|
|
@@ -3608,7 +3747,7 @@ function ItemHeader(_a) {
|
|
|
3608
3747
|
}
|
|
3609
3748
|
function ItemFooter(_a) {
|
|
3610
3749
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3611
|
-
return /* @__PURE__ */
|
|
3750
|
+
return /* @__PURE__ */ jsx33(
|
|
3612
3751
|
"div",
|
|
3613
3752
|
__spreadValues({
|
|
3614
3753
|
"data-slot": "item-footer",
|
|
@@ -3621,10 +3760,10 @@ function ItemFooter(_a) {
|
|
|
3621
3760
|
}
|
|
3622
3761
|
|
|
3623
3762
|
// components/ui/kbd.tsx
|
|
3624
|
-
import { jsx as
|
|
3763
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
3625
3764
|
function Kbd(_a) {
|
|
3626
3765
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3627
|
-
return /* @__PURE__ */
|
|
3766
|
+
return /* @__PURE__ */ jsx34(
|
|
3628
3767
|
"kbd",
|
|
3629
3768
|
__spreadValues({
|
|
3630
3769
|
"data-slot": "kbd",
|
|
@@ -3639,7 +3778,7 @@ function Kbd(_a) {
|
|
|
3639
3778
|
}
|
|
3640
3779
|
function KbdGroup(_a) {
|
|
3641
3780
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3642
|
-
return /* @__PURE__ */
|
|
3781
|
+
return /* @__PURE__ */ jsx34(
|
|
3643
3782
|
"kbd",
|
|
3644
3783
|
__spreadValues({
|
|
3645
3784
|
"data-slot": "kbd-group",
|
|
@@ -3649,10 +3788,10 @@ function KbdGroup(_a) {
|
|
|
3649
3788
|
}
|
|
3650
3789
|
|
|
3651
3790
|
// components/ui/link.tsx
|
|
3652
|
-
import { cva as
|
|
3791
|
+
import { cva as cva9 } from "class-variance-authority";
|
|
3653
3792
|
import { Slot as Slot6 } from "radix-ui";
|
|
3654
|
-
import { jsx as
|
|
3655
|
-
var linkVariants =
|
|
3793
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
3794
|
+
var linkVariants = cva9(
|
|
3656
3795
|
"inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 active:opacity-60 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:inline font-display font-bold normal-case tracking-wide text-primary hover:underline decoration-2 underline-offset-4",
|
|
3657
3796
|
{
|
|
3658
3797
|
variants: {
|
|
@@ -3678,7 +3817,7 @@ function Link(_a) {
|
|
|
3678
3817
|
"asChild"
|
|
3679
3818
|
]);
|
|
3680
3819
|
const Comp = asChild ? Slot6.Root : "a";
|
|
3681
|
-
return /* @__PURE__ */
|
|
3820
|
+
return /* @__PURE__ */ jsx35(
|
|
3682
3821
|
Comp,
|
|
3683
3822
|
__spreadValues({
|
|
3684
3823
|
"data-slot": "link",
|
|
@@ -3691,14 +3830,14 @@ function Link(_a) {
|
|
|
3691
3830
|
// components/ui/menubar.tsx
|
|
3692
3831
|
import { CheckIcon as CheckIcon5, ChevronRightIcon as ChevronRightIcon4, CircleIcon as CircleIcon3 } from "lucide-react";
|
|
3693
3832
|
import { Menubar as MenubarPrimitive } from "radix-ui";
|
|
3694
|
-
import { jsx as
|
|
3833
|
+
import { jsx as jsx36, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3695
3834
|
function Menubar(_a) {
|
|
3696
3835
|
var _b = _a, {
|
|
3697
3836
|
className
|
|
3698
3837
|
} = _b, props = __objRest(_b, [
|
|
3699
3838
|
"className"
|
|
3700
3839
|
]);
|
|
3701
|
-
return /* @__PURE__ */
|
|
3840
|
+
return /* @__PURE__ */ jsx36(
|
|
3702
3841
|
MenubarPrimitive.Root,
|
|
3703
3842
|
__spreadValues({
|
|
3704
3843
|
"data-slot": "menubar",
|
|
@@ -3711,19 +3850,19 @@ function Menubar(_a) {
|
|
|
3711
3850
|
}
|
|
3712
3851
|
function MenubarMenu(_a) {
|
|
3713
3852
|
var props = __objRest(_a, []);
|
|
3714
|
-
return /* @__PURE__ */
|
|
3853
|
+
return /* @__PURE__ */ jsx36(MenubarPrimitive.Menu, __spreadValues({ "data-slot": "menubar-menu" }, props));
|
|
3715
3854
|
}
|
|
3716
3855
|
function MenubarGroup(_a) {
|
|
3717
3856
|
var props = __objRest(_a, []);
|
|
3718
|
-
return /* @__PURE__ */
|
|
3857
|
+
return /* @__PURE__ */ jsx36(MenubarPrimitive.Group, __spreadValues({ "data-slot": "menubar-group" }, props));
|
|
3719
3858
|
}
|
|
3720
3859
|
function MenubarPortal(_a) {
|
|
3721
3860
|
var props = __objRest(_a, []);
|
|
3722
|
-
return /* @__PURE__ */
|
|
3861
|
+
return /* @__PURE__ */ jsx36(MenubarPrimitive.Portal, __spreadValues({ "data-slot": "menubar-portal" }, props));
|
|
3723
3862
|
}
|
|
3724
3863
|
function MenubarRadioGroup(_a) {
|
|
3725
3864
|
var props = __objRest(_a, []);
|
|
3726
|
-
return /* @__PURE__ */
|
|
3865
|
+
return /* @__PURE__ */ jsx36(MenubarPrimitive.RadioGroup, __spreadValues({ "data-slot": "menubar-radio-group" }, props));
|
|
3727
3866
|
}
|
|
3728
3867
|
function MenubarTrigger(_a) {
|
|
3729
3868
|
var _b = _a, {
|
|
@@ -3731,7 +3870,7 @@ function MenubarTrigger(_a) {
|
|
|
3731
3870
|
} = _b, props = __objRest(_b, [
|
|
3732
3871
|
"className"
|
|
3733
3872
|
]);
|
|
3734
|
-
return /* @__PURE__ */
|
|
3873
|
+
return /* @__PURE__ */ jsx36(
|
|
3735
3874
|
MenubarPrimitive.Trigger,
|
|
3736
3875
|
__spreadValues({
|
|
3737
3876
|
"data-slot": "menubar-trigger",
|
|
@@ -3754,7 +3893,7 @@ function MenubarContent(_a) {
|
|
|
3754
3893
|
"alignOffset",
|
|
3755
3894
|
"sideOffset"
|
|
3756
3895
|
]);
|
|
3757
|
-
return /* @__PURE__ */
|
|
3896
|
+
return /* @__PURE__ */ jsx36(MenubarPortal, { children: /* @__PURE__ */ jsx36(
|
|
3758
3897
|
MenubarPrimitive.Content,
|
|
3759
3898
|
__spreadValues({
|
|
3760
3899
|
"data-slot": "menubar-content",
|
|
@@ -3778,7 +3917,7 @@ function MenubarItem(_a) {
|
|
|
3778
3917
|
"inset",
|
|
3779
3918
|
"variant"
|
|
3780
3919
|
]);
|
|
3781
|
-
return /* @__PURE__ */
|
|
3920
|
+
return /* @__PURE__ */ jsx36(
|
|
3782
3921
|
MenubarPrimitive.Item,
|
|
3783
3922
|
__spreadValues({
|
|
3784
3923
|
"data-slot": "menubar-item",
|
|
@@ -3801,7 +3940,7 @@ function MenubarCheckboxItem(_a) {
|
|
|
3801
3940
|
"children",
|
|
3802
3941
|
"checked"
|
|
3803
3942
|
]);
|
|
3804
|
-
return /* @__PURE__ */
|
|
3943
|
+
return /* @__PURE__ */ jsxs16(
|
|
3805
3944
|
MenubarPrimitive.CheckboxItem,
|
|
3806
3945
|
__spreadProps(__spreadValues({
|
|
3807
3946
|
"data-slot": "menubar-checkbox-item",
|
|
@@ -3812,7 +3951,7 @@ function MenubarCheckboxItem(_a) {
|
|
|
3812
3951
|
checked
|
|
3813
3952
|
}, props), {
|
|
3814
3953
|
children: [
|
|
3815
|
-
/* @__PURE__ */
|
|
3954
|
+
/* @__PURE__ */ jsx36("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx36(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx36(CheckIcon5, { className: "size-4" }) }) }),
|
|
3816
3955
|
children
|
|
3817
3956
|
]
|
|
3818
3957
|
})
|
|
@@ -3826,7 +3965,7 @@ function MenubarRadioItem(_a) {
|
|
|
3826
3965
|
"className",
|
|
3827
3966
|
"children"
|
|
3828
3967
|
]);
|
|
3829
|
-
return /* @__PURE__ */
|
|
3968
|
+
return /* @__PURE__ */ jsxs16(
|
|
3830
3969
|
MenubarPrimitive.RadioItem,
|
|
3831
3970
|
__spreadProps(__spreadValues({
|
|
3832
3971
|
"data-slot": "menubar-radio-item",
|
|
@@ -3836,7 +3975,7 @@ function MenubarRadioItem(_a) {
|
|
|
3836
3975
|
)
|
|
3837
3976
|
}, props), {
|
|
3838
3977
|
children: [
|
|
3839
|
-
/* @__PURE__ */
|
|
3978
|
+
/* @__PURE__ */ jsx36("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx36(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx36(CircleIcon3, { className: "size-2 fill-current" }) }) }),
|
|
3840
3979
|
children
|
|
3841
3980
|
]
|
|
3842
3981
|
})
|
|
@@ -3850,7 +3989,7 @@ function MenubarLabel(_a) {
|
|
|
3850
3989
|
"className",
|
|
3851
3990
|
"inset"
|
|
3852
3991
|
]);
|
|
3853
|
-
return /* @__PURE__ */
|
|
3992
|
+
return /* @__PURE__ */ jsx36(
|
|
3854
3993
|
MenubarPrimitive.Label,
|
|
3855
3994
|
__spreadValues({
|
|
3856
3995
|
"data-slot": "menubar-label",
|
|
@@ -3868,7 +4007,7 @@ function MenubarSeparator(_a) {
|
|
|
3868
4007
|
} = _b, props = __objRest(_b, [
|
|
3869
4008
|
"className"
|
|
3870
4009
|
]);
|
|
3871
|
-
return /* @__PURE__ */
|
|
4010
|
+
return /* @__PURE__ */ jsx36(
|
|
3872
4011
|
MenubarPrimitive.Separator,
|
|
3873
4012
|
__spreadValues({
|
|
3874
4013
|
"data-slot": "menubar-separator",
|
|
@@ -3882,7 +4021,7 @@ function MenubarShortcut(_a) {
|
|
|
3882
4021
|
} = _b, props = __objRest(_b, [
|
|
3883
4022
|
"className"
|
|
3884
4023
|
]);
|
|
3885
|
-
return /* @__PURE__ */
|
|
4024
|
+
return /* @__PURE__ */ jsx36(
|
|
3886
4025
|
"span",
|
|
3887
4026
|
__spreadValues({
|
|
3888
4027
|
"data-slot": "menubar-shortcut",
|
|
@@ -3895,7 +4034,7 @@ function MenubarShortcut(_a) {
|
|
|
3895
4034
|
}
|
|
3896
4035
|
function MenubarSub(_a) {
|
|
3897
4036
|
var props = __objRest(_a, []);
|
|
3898
|
-
return /* @__PURE__ */
|
|
4037
|
+
return /* @__PURE__ */ jsx36(MenubarPrimitive.Sub, __spreadValues({ "data-slot": "menubar-sub" }, props));
|
|
3899
4038
|
}
|
|
3900
4039
|
function MenubarSubTrigger(_a) {
|
|
3901
4040
|
var _b = _a, {
|
|
@@ -3907,7 +4046,7 @@ function MenubarSubTrigger(_a) {
|
|
|
3907
4046
|
"inset",
|
|
3908
4047
|
"children"
|
|
3909
4048
|
]);
|
|
3910
|
-
return /* @__PURE__ */
|
|
4049
|
+
return /* @__PURE__ */ jsxs16(
|
|
3911
4050
|
MenubarPrimitive.SubTrigger,
|
|
3912
4051
|
__spreadProps(__spreadValues({
|
|
3913
4052
|
"data-slot": "menubar-sub-trigger",
|
|
@@ -3919,7 +4058,7 @@ function MenubarSubTrigger(_a) {
|
|
|
3919
4058
|
}, props), {
|
|
3920
4059
|
children: [
|
|
3921
4060
|
children,
|
|
3922
|
-
/* @__PURE__ */
|
|
4061
|
+
/* @__PURE__ */ jsx36(ChevronRightIcon4, { className: "ml-auto h-4 w-4" })
|
|
3923
4062
|
]
|
|
3924
4063
|
})
|
|
3925
4064
|
);
|
|
@@ -3930,7 +4069,7 @@ function MenubarSubContent(_a) {
|
|
|
3930
4069
|
} = _b, props = __objRest(_b, [
|
|
3931
4070
|
"className"
|
|
3932
4071
|
]);
|
|
3933
|
-
return /* @__PURE__ */
|
|
4072
|
+
return /* @__PURE__ */ jsx36(
|
|
3934
4073
|
MenubarPrimitive.SubContent,
|
|
3935
4074
|
__spreadValues({
|
|
3936
4075
|
"data-slot": "menubar-sub-content",
|
|
@@ -3944,7 +4083,7 @@ function MenubarSubContent(_a) {
|
|
|
3944
4083
|
|
|
3945
4084
|
// components/ui/native-select.tsx
|
|
3946
4085
|
import { ChevronDownIcon as ChevronDownIcon4 } from "lucide-react";
|
|
3947
|
-
import { jsx as
|
|
4086
|
+
import { jsx as jsx37, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3948
4087
|
function NativeSelect(_a) {
|
|
3949
4088
|
var _b = _a, {
|
|
3950
4089
|
className,
|
|
@@ -3953,13 +4092,13 @@ function NativeSelect(_a) {
|
|
|
3953
4092
|
"className",
|
|
3954
4093
|
"size"
|
|
3955
4094
|
]);
|
|
3956
|
-
return /* @__PURE__ */
|
|
4095
|
+
return /* @__PURE__ */ jsxs17(
|
|
3957
4096
|
"div",
|
|
3958
4097
|
{
|
|
3959
4098
|
className: "group/native-select relative w-fit has-[select:disabled]:opacity-50",
|
|
3960
4099
|
"data-slot": "native-select-wrapper",
|
|
3961
4100
|
children: [
|
|
3962
|
-
/* @__PURE__ */
|
|
4101
|
+
/* @__PURE__ */ jsx37(
|
|
3963
4102
|
"select",
|
|
3964
4103
|
__spreadValues({
|
|
3965
4104
|
"data-slot": "native-select",
|
|
@@ -3971,7 +4110,7 @@ function NativeSelect(_a) {
|
|
|
3971
4110
|
)
|
|
3972
4111
|
}, props)
|
|
3973
4112
|
),
|
|
3974
|
-
/* @__PURE__ */
|
|
4113
|
+
/* @__PURE__ */ jsx37(
|
|
3975
4114
|
ChevronDownIcon4,
|
|
3976
4115
|
{
|
|
3977
4116
|
className: "pointer-events-none absolute top-1/2 right-3.5 size-4 -translate-y-1/2 text-on-subtle opacity-50 select-none",
|
|
@@ -3985,7 +4124,7 @@ function NativeSelect(_a) {
|
|
|
3985
4124
|
}
|
|
3986
4125
|
function NativeSelectOption(_a) {
|
|
3987
4126
|
var props = __objRest(_a, []);
|
|
3988
|
-
return /* @__PURE__ */
|
|
4127
|
+
return /* @__PURE__ */ jsx37("option", __spreadValues({ "data-slot": "native-select-option" }, props));
|
|
3989
4128
|
}
|
|
3990
4129
|
function NativeSelectOptGroup(_a) {
|
|
3991
4130
|
var _b = _a, {
|
|
@@ -3993,7 +4132,7 @@ function NativeSelectOptGroup(_a) {
|
|
|
3993
4132
|
} = _b, props = __objRest(_b, [
|
|
3994
4133
|
"className"
|
|
3995
4134
|
]);
|
|
3996
|
-
return /* @__PURE__ */
|
|
4135
|
+
return /* @__PURE__ */ jsx37(
|
|
3997
4136
|
"optgroup",
|
|
3998
4137
|
__spreadValues({
|
|
3999
4138
|
"data-slot": "native-select-optgroup",
|
|
@@ -4003,10 +4142,10 @@ function NativeSelectOptGroup(_a) {
|
|
|
4003
4142
|
}
|
|
4004
4143
|
|
|
4005
4144
|
// components/ui/navigation-menu.tsx
|
|
4006
|
-
import { cva as
|
|
4145
|
+
import { cva as cva10 } from "class-variance-authority";
|
|
4007
4146
|
import { ChevronDownIcon as ChevronDownIcon5 } from "lucide-react";
|
|
4008
4147
|
import { NavigationMenu as NavigationMenuPrimitive } from "radix-ui";
|
|
4009
|
-
import { jsx as
|
|
4148
|
+
import { jsx as jsx38, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
4010
4149
|
function NavigationMenu(_a) {
|
|
4011
4150
|
var _b = _a, {
|
|
4012
4151
|
className,
|
|
@@ -4017,7 +4156,7 @@ function NavigationMenu(_a) {
|
|
|
4017
4156
|
"children",
|
|
4018
4157
|
"viewport"
|
|
4019
4158
|
]);
|
|
4020
|
-
return /* @__PURE__ */
|
|
4159
|
+
return /* @__PURE__ */ jsxs18(
|
|
4021
4160
|
NavigationMenuPrimitive.Root,
|
|
4022
4161
|
__spreadProps(__spreadValues({
|
|
4023
4162
|
"data-slot": "navigation-menu",
|
|
@@ -4029,7 +4168,7 @@ function NavigationMenu(_a) {
|
|
|
4029
4168
|
}, props), {
|
|
4030
4169
|
children: [
|
|
4031
4170
|
children,
|
|
4032
|
-
viewport && /* @__PURE__ */
|
|
4171
|
+
viewport && /* @__PURE__ */ jsx38(NavigationMenuViewport, {})
|
|
4033
4172
|
]
|
|
4034
4173
|
})
|
|
4035
4174
|
);
|
|
@@ -4040,7 +4179,7 @@ function NavigationMenuList(_a) {
|
|
|
4040
4179
|
} = _b, props = __objRest(_b, [
|
|
4041
4180
|
"className"
|
|
4042
4181
|
]);
|
|
4043
|
-
return /* @__PURE__ */
|
|
4182
|
+
return /* @__PURE__ */ jsx38(
|
|
4044
4183
|
NavigationMenuPrimitive.List,
|
|
4045
4184
|
__spreadValues({
|
|
4046
4185
|
"data-slot": "navigation-menu-list",
|
|
@@ -4057,7 +4196,7 @@ function NavigationMenuItem(_a) {
|
|
|
4057
4196
|
} = _b, props = __objRest(_b, [
|
|
4058
4197
|
"className"
|
|
4059
4198
|
]);
|
|
4060
|
-
return /* @__PURE__ */
|
|
4199
|
+
return /* @__PURE__ */ jsx38(
|
|
4061
4200
|
NavigationMenuPrimitive.Item,
|
|
4062
4201
|
__spreadValues({
|
|
4063
4202
|
"data-slot": "navigation-menu-item",
|
|
@@ -4065,7 +4204,7 @@ function NavigationMenuItem(_a) {
|
|
|
4065
4204
|
}, props)
|
|
4066
4205
|
);
|
|
4067
4206
|
}
|
|
4068
|
-
var navigationMenuTriggerStyle =
|
|
4207
|
+
var navigationMenuTriggerStyle = cva10(
|
|
4069
4208
|
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-prominent px-4 py-2 text-sm font-medium transition-[color,box-shadow] outline-none hover:bg-secondary-hover hover:text-on-prominent focus:bg-secondary-hover focus:text-on-prominent focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-secondary-hover data-[state=open]:text-on-prominent data-[state=open]:hover:bg-secondary-hover data-[state=open]:focus:bg-secondary-hover"
|
|
4070
4209
|
);
|
|
4071
4210
|
function NavigationMenuTrigger(_a) {
|
|
@@ -4076,7 +4215,7 @@ function NavigationMenuTrigger(_a) {
|
|
|
4076
4215
|
"className",
|
|
4077
4216
|
"children"
|
|
4078
4217
|
]);
|
|
4079
|
-
return /* @__PURE__ */
|
|
4218
|
+
return /* @__PURE__ */ jsxs18(
|
|
4080
4219
|
NavigationMenuPrimitive.Trigger,
|
|
4081
4220
|
__spreadProps(__spreadValues({
|
|
4082
4221
|
"data-slot": "navigation-menu-trigger",
|
|
@@ -4085,7 +4224,7 @@ function NavigationMenuTrigger(_a) {
|
|
|
4085
4224
|
children: [
|
|
4086
4225
|
children,
|
|
4087
4226
|
" ",
|
|
4088
|
-
/* @__PURE__ */
|
|
4227
|
+
/* @__PURE__ */ jsx38(
|
|
4089
4228
|
ChevronDownIcon5,
|
|
4090
4229
|
{
|
|
4091
4230
|
className: "relative top-[1px] ml-1 size-3 transition duration-slow group-data-[state=open]:rotate-180",
|
|
@@ -4102,7 +4241,7 @@ function NavigationMenuContent(_a) {
|
|
|
4102
4241
|
} = _b, props = __objRest(_b, [
|
|
4103
4242
|
"className"
|
|
4104
4243
|
]);
|
|
4105
|
-
return /* @__PURE__ */
|
|
4244
|
+
return /* @__PURE__ */ jsx38(
|
|
4106
4245
|
NavigationMenuPrimitive.Content,
|
|
4107
4246
|
__spreadValues({
|
|
4108
4247
|
"data-slot": "navigation-menu-content",
|
|
@@ -4120,13 +4259,13 @@ function NavigationMenuViewport(_a) {
|
|
|
4120
4259
|
} = _b, props = __objRest(_b, [
|
|
4121
4260
|
"className"
|
|
4122
4261
|
]);
|
|
4123
|
-
return /* @__PURE__ */
|
|
4262
|
+
return /* @__PURE__ */ jsx38(
|
|
4124
4263
|
"div",
|
|
4125
4264
|
{
|
|
4126
4265
|
className: cn(
|
|
4127
4266
|
"absolute top-full left-0 isolate z-50 flex justify-center"
|
|
4128
4267
|
),
|
|
4129
|
-
children: /* @__PURE__ */
|
|
4268
|
+
children: /* @__PURE__ */ jsx38(
|
|
4130
4269
|
NavigationMenuPrimitive.Viewport,
|
|
4131
4270
|
__spreadValues({
|
|
4132
4271
|
"data-slot": "navigation-menu-viewport",
|
|
@@ -4145,7 +4284,7 @@ function NavigationMenuLink(_a) {
|
|
|
4145
4284
|
} = _b, props = __objRest(_b, [
|
|
4146
4285
|
"className"
|
|
4147
4286
|
]);
|
|
4148
|
-
return /* @__PURE__ */
|
|
4287
|
+
return /* @__PURE__ */ jsx38(
|
|
4149
4288
|
NavigationMenuPrimitive.Link,
|
|
4150
4289
|
__spreadValues({
|
|
4151
4290
|
"data-slot": "navigation-menu-link",
|
|
@@ -4162,7 +4301,7 @@ function NavigationMenuIndicator(_a) {
|
|
|
4162
4301
|
} = _b, props = __objRest(_b, [
|
|
4163
4302
|
"className"
|
|
4164
4303
|
]);
|
|
4165
|
-
return /* @__PURE__ */
|
|
4304
|
+
return /* @__PURE__ */ jsx38(
|
|
4166
4305
|
NavigationMenuPrimitive.Indicator,
|
|
4167
4306
|
__spreadProps(__spreadValues({
|
|
4168
4307
|
"data-slot": "navigation-menu-indicator",
|
|
@@ -4171,7 +4310,7 @@ function NavigationMenuIndicator(_a) {
|
|
|
4171
4310
|
className
|
|
4172
4311
|
)
|
|
4173
4312
|
}, props), {
|
|
4174
|
-
children: /* @__PURE__ */
|
|
4313
|
+
children: /* @__PURE__ */ jsx38("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
4175
4314
|
})
|
|
4176
4315
|
);
|
|
4177
4316
|
}
|
|
@@ -4182,10 +4321,10 @@ import {
|
|
|
4182
4321
|
ChevronRightIcon as ChevronRightIcon5,
|
|
4183
4322
|
MoreHorizontalIcon
|
|
4184
4323
|
} from "lucide-react";
|
|
4185
|
-
import { jsx as
|
|
4324
|
+
import { jsx as jsx39, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
4186
4325
|
function Pagination(_a) {
|
|
4187
4326
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4188
|
-
return /* @__PURE__ */
|
|
4327
|
+
return /* @__PURE__ */ jsx39(
|
|
4189
4328
|
"nav",
|
|
4190
4329
|
__spreadValues({
|
|
4191
4330
|
role: "navigation",
|
|
@@ -4201,7 +4340,7 @@ function PaginationContent(_a) {
|
|
|
4201
4340
|
} = _b, props = __objRest(_b, [
|
|
4202
4341
|
"className"
|
|
4203
4342
|
]);
|
|
4204
|
-
return /* @__PURE__ */
|
|
4343
|
+
return /* @__PURE__ */ jsx39(
|
|
4205
4344
|
"ul",
|
|
4206
4345
|
__spreadValues({
|
|
4207
4346
|
"data-slot": "pagination-content",
|
|
@@ -4211,7 +4350,7 @@ function PaginationContent(_a) {
|
|
|
4211
4350
|
}
|
|
4212
4351
|
function PaginationItem(_a) {
|
|
4213
4352
|
var props = __objRest(_a, []);
|
|
4214
|
-
return /* @__PURE__ */
|
|
4353
|
+
return /* @__PURE__ */ jsx39("li", __spreadValues({ "data-slot": "pagination-item" }, props));
|
|
4215
4354
|
}
|
|
4216
4355
|
function PaginationLink(_a) {
|
|
4217
4356
|
var _b = _a, {
|
|
@@ -4223,7 +4362,7 @@ function PaginationLink(_a) {
|
|
|
4223
4362
|
"isActive",
|
|
4224
4363
|
"size"
|
|
4225
4364
|
]);
|
|
4226
|
-
return /* @__PURE__ */
|
|
4365
|
+
return /* @__PURE__ */ jsx39(
|
|
4227
4366
|
"a",
|
|
4228
4367
|
__spreadValues({
|
|
4229
4368
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -4243,7 +4382,7 @@ function PaginationPrevious(_a) {
|
|
|
4243
4382
|
} = _b, props = __objRest(_b, [
|
|
4244
4383
|
"className"
|
|
4245
4384
|
]);
|
|
4246
|
-
return /* @__PURE__ */
|
|
4385
|
+
return /* @__PURE__ */ jsx39(Button, { asChild: true, variant: "tertiary", size: "icon-md", className: cn(className), children: /* @__PURE__ */ jsx39("a", __spreadProps(__spreadValues({ "aria-label": "Go to previous page", "data-slot": "pagination-link" }, props), { children: /* @__PURE__ */ jsx39(ChevronLeftIcon2, { className: "size-5" }) })) });
|
|
4247
4386
|
}
|
|
4248
4387
|
function PaginationNext(_a) {
|
|
4249
4388
|
var _b = _a, {
|
|
@@ -4251,7 +4390,7 @@ function PaginationNext(_a) {
|
|
|
4251
4390
|
} = _b, props = __objRest(_b, [
|
|
4252
4391
|
"className"
|
|
4253
4392
|
]);
|
|
4254
|
-
return /* @__PURE__ */
|
|
4393
|
+
return /* @__PURE__ */ jsx39(Button, { asChild: true, variant: "tertiary", size: "icon-md", className: cn(className), children: /* @__PURE__ */ jsx39("a", __spreadProps(__spreadValues({ "aria-label": "Go to next page", "data-slot": "pagination-link" }, props), { children: /* @__PURE__ */ jsx39(ChevronRightIcon5, { className: "size-5" }) })) });
|
|
4255
4394
|
}
|
|
4256
4395
|
function PaginationEllipsis(_a) {
|
|
4257
4396
|
var _b = _a, {
|
|
@@ -4259,7 +4398,7 @@ function PaginationEllipsis(_a) {
|
|
|
4259
4398
|
} = _b, props = __objRest(_b, [
|
|
4260
4399
|
"className"
|
|
4261
4400
|
]);
|
|
4262
|
-
return /* @__PURE__ */
|
|
4401
|
+
return /* @__PURE__ */ jsxs19(
|
|
4263
4402
|
"span",
|
|
4264
4403
|
__spreadProps(__spreadValues({
|
|
4265
4404
|
"aria-hidden": true,
|
|
@@ -4267,8 +4406,8 @@ function PaginationEllipsis(_a) {
|
|
|
4267
4406
|
className: cn("flex size-10 items-center justify-center", className)
|
|
4268
4407
|
}, props), {
|
|
4269
4408
|
children: [
|
|
4270
|
-
/* @__PURE__ */
|
|
4271
|
-
/* @__PURE__ */
|
|
4409
|
+
/* @__PURE__ */ jsx39(MoreHorizontalIcon, { className: "size-4" }),
|
|
4410
|
+
/* @__PURE__ */ jsx39("span", { className: "sr-only", children: "More pages" })
|
|
4272
4411
|
]
|
|
4273
4412
|
})
|
|
4274
4413
|
);
|
|
@@ -4276,14 +4415,14 @@ function PaginationEllipsis(_a) {
|
|
|
4276
4415
|
|
|
4277
4416
|
// components/ui/popover.tsx
|
|
4278
4417
|
import { Popover as PopoverPrimitive } from "radix-ui";
|
|
4279
|
-
import { jsx as
|
|
4418
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
4280
4419
|
function Popover(_a) {
|
|
4281
4420
|
var props = __objRest(_a, []);
|
|
4282
|
-
return /* @__PURE__ */
|
|
4421
|
+
return /* @__PURE__ */ jsx40(PopoverPrimitive.Root, __spreadValues({ "data-slot": "popover" }, props));
|
|
4283
4422
|
}
|
|
4284
4423
|
function PopoverTrigger(_a) {
|
|
4285
4424
|
var props = __objRest(_a, []);
|
|
4286
|
-
return /* @__PURE__ */
|
|
4425
|
+
return /* @__PURE__ */ jsx40(PopoverPrimitive.Trigger, __spreadValues({ "data-slot": "popover-trigger" }, props));
|
|
4287
4426
|
}
|
|
4288
4427
|
function PopoverContent(_a) {
|
|
4289
4428
|
var _b = _a, {
|
|
@@ -4295,7 +4434,7 @@ function PopoverContent(_a) {
|
|
|
4295
4434
|
"align",
|
|
4296
4435
|
"sideOffset"
|
|
4297
4436
|
]);
|
|
4298
|
-
return /* @__PURE__ */
|
|
4437
|
+
return /* @__PURE__ */ jsx40(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx40(
|
|
4299
4438
|
PopoverPrimitive.Content,
|
|
4300
4439
|
__spreadValues({
|
|
4301
4440
|
"data-slot": "popover-content",
|
|
@@ -4310,11 +4449,11 @@ function PopoverContent(_a) {
|
|
|
4310
4449
|
}
|
|
4311
4450
|
function PopoverAnchor(_a) {
|
|
4312
4451
|
var props = __objRest(_a, []);
|
|
4313
|
-
return /* @__PURE__ */
|
|
4452
|
+
return /* @__PURE__ */ jsx40(PopoverPrimitive.Anchor, __spreadValues({ "data-slot": "popover-anchor" }, props));
|
|
4314
4453
|
}
|
|
4315
4454
|
function PopoverHeader(_a) {
|
|
4316
4455
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4317
|
-
return /* @__PURE__ */
|
|
4456
|
+
return /* @__PURE__ */ jsx40(
|
|
4318
4457
|
"div",
|
|
4319
4458
|
__spreadValues({
|
|
4320
4459
|
"data-slot": "popover-header",
|
|
@@ -4324,7 +4463,7 @@ function PopoverHeader(_a) {
|
|
|
4324
4463
|
}
|
|
4325
4464
|
function PopoverTitle(_a) {
|
|
4326
4465
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4327
|
-
return /* @__PURE__ */
|
|
4466
|
+
return /* @__PURE__ */ jsx40(
|
|
4328
4467
|
"div",
|
|
4329
4468
|
__spreadValues({
|
|
4330
4469
|
"data-slot": "popover-title",
|
|
@@ -4338,7 +4477,7 @@ function PopoverDescription(_a) {
|
|
|
4338
4477
|
} = _b, props = __objRest(_b, [
|
|
4339
4478
|
"className"
|
|
4340
4479
|
]);
|
|
4341
|
-
return /* @__PURE__ */
|
|
4480
|
+
return /* @__PURE__ */ jsx40(
|
|
4342
4481
|
"p",
|
|
4343
4482
|
__spreadValues({
|
|
4344
4483
|
"data-slot": "popover-description",
|
|
@@ -4349,7 +4488,7 @@ function PopoverDescription(_a) {
|
|
|
4349
4488
|
|
|
4350
4489
|
// components/ui/progress.tsx
|
|
4351
4490
|
import { Progress as ProgressPrimitive } from "radix-ui";
|
|
4352
|
-
import { jsx as
|
|
4491
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
4353
4492
|
function Progress(_a) {
|
|
4354
4493
|
var _b = _a, {
|
|
4355
4494
|
className,
|
|
@@ -4358,7 +4497,7 @@ function Progress(_a) {
|
|
|
4358
4497
|
"className",
|
|
4359
4498
|
"value"
|
|
4360
4499
|
]);
|
|
4361
|
-
return /* @__PURE__ */
|
|
4500
|
+
return /* @__PURE__ */ jsx41(
|
|
4362
4501
|
ProgressPrimitive.Root,
|
|
4363
4502
|
__spreadProps(__spreadValues({
|
|
4364
4503
|
"data-slot": "progress",
|
|
@@ -4367,7 +4506,7 @@ function Progress(_a) {
|
|
|
4367
4506
|
className
|
|
4368
4507
|
)
|
|
4369
4508
|
}, props), {
|
|
4370
|
-
children: /* @__PURE__ */
|
|
4509
|
+
children: /* @__PURE__ */ jsx41(
|
|
4371
4510
|
ProgressPrimitive.Indicator,
|
|
4372
4511
|
{
|
|
4373
4512
|
"data-slot": "progress-indicator",
|
|
@@ -4382,14 +4521,14 @@ function Progress(_a) {
|
|
|
4382
4521
|
// components/ui/radio-group.tsx
|
|
4383
4522
|
import { CircleIcon as CircleIcon4 } from "lucide-react";
|
|
4384
4523
|
import { RadioGroup as RadioGroupPrimitive } from "radix-ui";
|
|
4385
|
-
import { jsx as
|
|
4524
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
4386
4525
|
function RadioGroup(_a) {
|
|
4387
4526
|
var _b = _a, {
|
|
4388
4527
|
className
|
|
4389
4528
|
} = _b, props = __objRest(_b, [
|
|
4390
4529
|
"className"
|
|
4391
4530
|
]);
|
|
4392
|
-
return /* @__PURE__ */
|
|
4531
|
+
return /* @__PURE__ */ jsx42(
|
|
4393
4532
|
RadioGroupPrimitive.Root,
|
|
4394
4533
|
__spreadValues({
|
|
4395
4534
|
"data-slot": "radio-group",
|
|
@@ -4403,7 +4542,7 @@ function RadioGroupItem(_a) {
|
|
|
4403
4542
|
} = _b, props = __objRest(_b, [
|
|
4404
4543
|
"className"
|
|
4405
4544
|
]);
|
|
4406
|
-
return /* @__PURE__ */
|
|
4545
|
+
return /* @__PURE__ */ jsx42(
|
|
4407
4546
|
RadioGroupPrimitive.Item,
|
|
4408
4547
|
__spreadProps(__spreadValues({
|
|
4409
4548
|
"data-slot": "radio-group-item",
|
|
@@ -4412,12 +4551,12 @@ function RadioGroupItem(_a) {
|
|
|
4412
4551
|
className
|
|
4413
4552
|
)
|
|
4414
4553
|
}, props), {
|
|
4415
|
-
children: /* @__PURE__ */
|
|
4554
|
+
children: /* @__PURE__ */ jsx42(
|
|
4416
4555
|
RadioGroupPrimitive.Indicator,
|
|
4417
4556
|
{
|
|
4418
4557
|
"data-slot": "radio-group-indicator",
|
|
4419
4558
|
className: "relative flex items-center justify-center",
|
|
4420
|
-
children: /* @__PURE__ */
|
|
4559
|
+
children: /* @__PURE__ */ jsx42(CircleIcon4, { className: "absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary" })
|
|
4421
4560
|
}
|
|
4422
4561
|
)
|
|
4423
4562
|
})
|
|
@@ -4427,14 +4566,14 @@ function RadioGroupItem(_a) {
|
|
|
4427
4566
|
// components/ui/resizable.tsx
|
|
4428
4567
|
import { GripVerticalIcon } from "lucide-react";
|
|
4429
4568
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
4430
|
-
import { jsx as
|
|
4569
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
4431
4570
|
function ResizablePanelGroup(_a) {
|
|
4432
4571
|
var _b = _a, {
|
|
4433
4572
|
className
|
|
4434
4573
|
} = _b, props = __objRest(_b, [
|
|
4435
4574
|
"className"
|
|
4436
4575
|
]);
|
|
4437
|
-
return /* @__PURE__ */
|
|
4576
|
+
return /* @__PURE__ */ jsx43(
|
|
4438
4577
|
ResizablePrimitive.Group,
|
|
4439
4578
|
__spreadValues({
|
|
4440
4579
|
"data-slot": "resizable-panel-group",
|
|
@@ -4447,7 +4586,7 @@ function ResizablePanelGroup(_a) {
|
|
|
4447
4586
|
}
|
|
4448
4587
|
function ResizablePanel(_a) {
|
|
4449
4588
|
var props = __objRest(_a, []);
|
|
4450
|
-
return /* @__PURE__ */
|
|
4589
|
+
return /* @__PURE__ */ jsx43(ResizablePrimitive.Panel, __spreadValues({ "data-slot": "resizable-panel" }, props));
|
|
4451
4590
|
}
|
|
4452
4591
|
function ResizableHandle(_a) {
|
|
4453
4592
|
var _b = _a, {
|
|
@@ -4457,7 +4596,7 @@ function ResizableHandle(_a) {
|
|
|
4457
4596
|
"withHandle",
|
|
4458
4597
|
"className"
|
|
4459
4598
|
]);
|
|
4460
|
-
return /* @__PURE__ */
|
|
4599
|
+
return /* @__PURE__ */ jsx43(
|
|
4461
4600
|
ResizablePrimitive.Separator,
|
|
4462
4601
|
__spreadProps(__spreadValues({
|
|
4463
4602
|
"data-slot": "resizable-handle",
|
|
@@ -4466,14 +4605,14 @@ function ResizableHandle(_a) {
|
|
|
4466
4605
|
className
|
|
4467
4606
|
)
|
|
4468
4607
|
}, props), {
|
|
4469
|
-
children: withHandle && /* @__PURE__ */
|
|
4608
|
+
children: withHandle && /* @__PURE__ */ jsx43("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-xs border bg-border", children: /* @__PURE__ */ jsx43(GripVerticalIcon, { className: "size-2.5" }) })
|
|
4470
4609
|
})
|
|
4471
4610
|
);
|
|
4472
4611
|
}
|
|
4473
4612
|
|
|
4474
4613
|
// components/ui/scroll-area.tsx
|
|
4475
4614
|
import { ScrollArea as ScrollAreaPrimitive } from "radix-ui";
|
|
4476
|
-
import { jsx as
|
|
4615
|
+
import { jsx as jsx44, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
4477
4616
|
function ScrollArea(_a) {
|
|
4478
4617
|
var _b = _a, {
|
|
4479
4618
|
className,
|
|
@@ -4482,14 +4621,14 @@ function ScrollArea(_a) {
|
|
|
4482
4621
|
"className",
|
|
4483
4622
|
"children"
|
|
4484
4623
|
]);
|
|
4485
|
-
return /* @__PURE__ */
|
|
4624
|
+
return /* @__PURE__ */ jsxs20(
|
|
4486
4625
|
ScrollAreaPrimitive.Root,
|
|
4487
4626
|
__spreadProps(__spreadValues({
|
|
4488
4627
|
"data-slot": "scroll-area",
|
|
4489
4628
|
className: cn("relative", className)
|
|
4490
4629
|
}, props), {
|
|
4491
4630
|
children: [
|
|
4492
|
-
/* @__PURE__ */
|
|
4631
|
+
/* @__PURE__ */ jsx44(
|
|
4493
4632
|
ScrollAreaPrimitive.Viewport,
|
|
4494
4633
|
{
|
|
4495
4634
|
"data-slot": "scroll-area-viewport",
|
|
@@ -4497,8 +4636,8 @@ function ScrollArea(_a) {
|
|
|
4497
4636
|
children
|
|
4498
4637
|
}
|
|
4499
4638
|
),
|
|
4500
|
-
/* @__PURE__ */
|
|
4501
|
-
/* @__PURE__ */
|
|
4639
|
+
/* @__PURE__ */ jsx44(ScrollBar, {}),
|
|
4640
|
+
/* @__PURE__ */ jsx44(ScrollAreaPrimitive.Corner, {})
|
|
4502
4641
|
]
|
|
4503
4642
|
})
|
|
4504
4643
|
);
|
|
@@ -4511,7 +4650,7 @@ function ScrollBar(_a) {
|
|
|
4511
4650
|
"className",
|
|
4512
4651
|
"orientation"
|
|
4513
4652
|
]);
|
|
4514
|
-
return /* @__PURE__ */
|
|
4653
|
+
return /* @__PURE__ */ jsx44(
|
|
4515
4654
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
4516
4655
|
__spreadProps(__spreadValues({
|
|
4517
4656
|
"data-slot": "scroll-area-scrollbar",
|
|
@@ -4523,7 +4662,7 @@ function ScrollBar(_a) {
|
|
|
4523
4662
|
className
|
|
4524
4663
|
)
|
|
4525
4664
|
}, props), {
|
|
4526
|
-
children: /* @__PURE__ */
|
|
4665
|
+
children: /* @__PURE__ */ jsx44(
|
|
4527
4666
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
|
4528
4667
|
{
|
|
4529
4668
|
"data-slot": "scroll-area-thumb",
|
|
@@ -4537,18 +4676,18 @@ function ScrollBar(_a) {
|
|
|
4537
4676
|
// components/ui/select.tsx
|
|
4538
4677
|
import { CheckIcon as CheckIcon6, ChevronDownIcon as ChevronDownIcon6, ChevronUpIcon } from "lucide-react";
|
|
4539
4678
|
import { Select as SelectPrimitive } from "radix-ui";
|
|
4540
|
-
import { jsx as
|
|
4679
|
+
import { jsx as jsx45, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
4541
4680
|
function Select(_a) {
|
|
4542
4681
|
var props = __objRest(_a, []);
|
|
4543
|
-
return /* @__PURE__ */
|
|
4682
|
+
return /* @__PURE__ */ jsx45(SelectPrimitive.Root, __spreadValues({ "data-slot": "select" }, props));
|
|
4544
4683
|
}
|
|
4545
4684
|
function SelectGroup(_a) {
|
|
4546
4685
|
var props = __objRest(_a, []);
|
|
4547
|
-
return /* @__PURE__ */
|
|
4686
|
+
return /* @__PURE__ */ jsx45(SelectPrimitive.Group, __spreadValues({ "data-slot": "select-group" }, props));
|
|
4548
4687
|
}
|
|
4549
4688
|
function SelectValue(_a) {
|
|
4550
4689
|
var props = __objRest(_a, []);
|
|
4551
|
-
return /* @__PURE__ */
|
|
4690
|
+
return /* @__PURE__ */ jsx45(SelectPrimitive.Value, __spreadValues({ "data-slot": "select-value" }, props));
|
|
4552
4691
|
}
|
|
4553
4692
|
function SelectTrigger(_a) {
|
|
4554
4693
|
var _b = _a, {
|
|
@@ -4562,7 +4701,7 @@ function SelectTrigger(_a) {
|
|
|
4562
4701
|
"readOnly",
|
|
4563
4702
|
"children"
|
|
4564
4703
|
]);
|
|
4565
|
-
return /* @__PURE__ */
|
|
4704
|
+
return /* @__PURE__ */ jsxs21(
|
|
4566
4705
|
SelectPrimitive.Trigger,
|
|
4567
4706
|
__spreadProps(__spreadValues({
|
|
4568
4707
|
"data-slot": "select-trigger",
|
|
@@ -4576,7 +4715,7 @@ function SelectTrigger(_a) {
|
|
|
4576
4715
|
}, props), {
|
|
4577
4716
|
children: [
|
|
4578
4717
|
children,
|
|
4579
|
-
/* @__PURE__ */
|
|
4718
|
+
/* @__PURE__ */ jsx45(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx45(ChevronDownIcon6, { className: cn("size-4", readOnly ? "opacity-30" : "opacity-50") }) })
|
|
4580
4719
|
]
|
|
4581
4720
|
})
|
|
4582
4721
|
);
|
|
@@ -4593,7 +4732,7 @@ function SelectContent(_a) {
|
|
|
4593
4732
|
"position",
|
|
4594
4733
|
"align"
|
|
4595
4734
|
]);
|
|
4596
|
-
return /* @__PURE__ */
|
|
4735
|
+
return /* @__PURE__ */ jsx45(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs21(
|
|
4597
4736
|
SelectPrimitive.Content,
|
|
4598
4737
|
__spreadProps(__spreadValues({
|
|
4599
4738
|
"data-slot": "select-content",
|
|
@@ -4606,8 +4745,8 @@ function SelectContent(_a) {
|
|
|
4606
4745
|
align
|
|
4607
4746
|
}, props), {
|
|
4608
4747
|
children: [
|
|
4609
|
-
/* @__PURE__ */
|
|
4610
|
-
/* @__PURE__ */
|
|
4748
|
+
/* @__PURE__ */ jsx45(SelectScrollUpButton, {}),
|
|
4749
|
+
/* @__PURE__ */ jsx45(
|
|
4611
4750
|
SelectPrimitive.Viewport,
|
|
4612
4751
|
{
|
|
4613
4752
|
className: cn(
|
|
@@ -4617,7 +4756,7 @@ function SelectContent(_a) {
|
|
|
4617
4756
|
children
|
|
4618
4757
|
}
|
|
4619
4758
|
),
|
|
4620
|
-
/* @__PURE__ */
|
|
4759
|
+
/* @__PURE__ */ jsx45(SelectScrollDownButton, {})
|
|
4621
4760
|
]
|
|
4622
4761
|
})
|
|
4623
4762
|
) });
|
|
@@ -4628,7 +4767,7 @@ function SelectLabel(_a) {
|
|
|
4628
4767
|
} = _b, props = __objRest(_b, [
|
|
4629
4768
|
"className"
|
|
4630
4769
|
]);
|
|
4631
|
-
return /* @__PURE__ */
|
|
4770
|
+
return /* @__PURE__ */ jsx45(
|
|
4632
4771
|
SelectPrimitive.Label,
|
|
4633
4772
|
__spreadValues({
|
|
4634
4773
|
"data-slot": "select-label",
|
|
@@ -4644,7 +4783,7 @@ function SelectItem(_a) {
|
|
|
4644
4783
|
"className",
|
|
4645
4784
|
"children"
|
|
4646
4785
|
]);
|
|
4647
|
-
return /* @__PURE__ */
|
|
4786
|
+
return /* @__PURE__ */ jsxs21(
|
|
4648
4787
|
SelectPrimitive.Item,
|
|
4649
4788
|
__spreadProps(__spreadValues({
|
|
4650
4789
|
"data-slot": "select-item",
|
|
@@ -4654,15 +4793,15 @@ function SelectItem(_a) {
|
|
|
4654
4793
|
)
|
|
4655
4794
|
}, props), {
|
|
4656
4795
|
children: [
|
|
4657
|
-
/* @__PURE__ */
|
|
4796
|
+
/* @__PURE__ */ jsx45(
|
|
4658
4797
|
"span",
|
|
4659
4798
|
{
|
|
4660
4799
|
"data-slot": "select-item-indicator",
|
|
4661
4800
|
className: "absolute right-2 flex size-3.5 items-center justify-center",
|
|
4662
|
-
children: /* @__PURE__ */
|
|
4801
|
+
children: /* @__PURE__ */ jsx45(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx45(CheckIcon6, { className: "size-4 text-primary" }) })
|
|
4663
4802
|
}
|
|
4664
4803
|
),
|
|
4665
|
-
/* @__PURE__ */
|
|
4804
|
+
/* @__PURE__ */ jsx45(SelectPrimitive.ItemText, { children })
|
|
4666
4805
|
]
|
|
4667
4806
|
})
|
|
4668
4807
|
);
|
|
@@ -4673,7 +4812,7 @@ function SelectSeparator(_a) {
|
|
|
4673
4812
|
} = _b, props = __objRest(_b, [
|
|
4674
4813
|
"className"
|
|
4675
4814
|
]);
|
|
4676
|
-
return /* @__PURE__ */
|
|
4815
|
+
return /* @__PURE__ */ jsx45(
|
|
4677
4816
|
SelectPrimitive.Separator,
|
|
4678
4817
|
__spreadValues({
|
|
4679
4818
|
"data-slot": "select-separator",
|
|
@@ -4687,7 +4826,7 @@ function SelectScrollUpButton(_a) {
|
|
|
4687
4826
|
} = _b, props = __objRest(_b, [
|
|
4688
4827
|
"className"
|
|
4689
4828
|
]);
|
|
4690
|
-
return /* @__PURE__ */
|
|
4829
|
+
return /* @__PURE__ */ jsx45(
|
|
4691
4830
|
SelectPrimitive.ScrollUpButton,
|
|
4692
4831
|
__spreadProps(__spreadValues({
|
|
4693
4832
|
"data-slot": "select-scroll-up-button",
|
|
@@ -4696,7 +4835,7 @@ function SelectScrollUpButton(_a) {
|
|
|
4696
4835
|
className
|
|
4697
4836
|
)
|
|
4698
4837
|
}, props), {
|
|
4699
|
-
children: /* @__PURE__ */
|
|
4838
|
+
children: /* @__PURE__ */ jsx45(ChevronUpIcon, { className: "size-4" })
|
|
4700
4839
|
})
|
|
4701
4840
|
);
|
|
4702
4841
|
}
|
|
@@ -4706,7 +4845,7 @@ function SelectScrollDownButton(_a) {
|
|
|
4706
4845
|
} = _b, props = __objRest(_b, [
|
|
4707
4846
|
"className"
|
|
4708
4847
|
]);
|
|
4709
|
-
return /* @__PURE__ */
|
|
4848
|
+
return /* @__PURE__ */ jsx45(
|
|
4710
4849
|
SelectPrimitive.ScrollDownButton,
|
|
4711
4850
|
__spreadProps(__spreadValues({
|
|
4712
4851
|
"data-slot": "select-scroll-down-button",
|
|
@@ -4715,7 +4854,7 @@ function SelectScrollDownButton(_a) {
|
|
|
4715
4854
|
className
|
|
4716
4855
|
)
|
|
4717
4856
|
}, props), {
|
|
4718
|
-
children: /* @__PURE__ */
|
|
4857
|
+
children: /* @__PURE__ */ jsx45(ChevronDownIcon6, { className: "size-4" })
|
|
4719
4858
|
})
|
|
4720
4859
|
);
|
|
4721
4860
|
}
|
|
@@ -4723,22 +4862,22 @@ function SelectScrollDownButton(_a) {
|
|
|
4723
4862
|
// components/ui/sheet.tsx
|
|
4724
4863
|
import { XIcon as XIcon3 } from "lucide-react";
|
|
4725
4864
|
import { Dialog as SheetPrimitive } from "radix-ui";
|
|
4726
|
-
import { jsx as
|
|
4865
|
+
import { jsx as jsx46, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
4727
4866
|
function Sheet(_a) {
|
|
4728
4867
|
var props = __objRest(_a, []);
|
|
4729
|
-
return /* @__PURE__ */
|
|
4868
|
+
return /* @__PURE__ */ jsx46(SheetPrimitive.Root, __spreadValues({ "data-slot": "sheet" }, props));
|
|
4730
4869
|
}
|
|
4731
4870
|
function SheetTrigger(_a) {
|
|
4732
4871
|
var props = __objRest(_a, []);
|
|
4733
|
-
return /* @__PURE__ */
|
|
4872
|
+
return /* @__PURE__ */ jsx46(SheetPrimitive.Trigger, __spreadValues({ "data-slot": "sheet-trigger" }, props));
|
|
4734
4873
|
}
|
|
4735
4874
|
function SheetClose(_a) {
|
|
4736
4875
|
var props = __objRest(_a, []);
|
|
4737
|
-
return /* @__PURE__ */
|
|
4876
|
+
return /* @__PURE__ */ jsx46(SheetPrimitive.Close, __spreadValues({ "data-slot": "sheet-close" }, props));
|
|
4738
4877
|
}
|
|
4739
4878
|
function SheetPortal(_a) {
|
|
4740
4879
|
var props = __objRest(_a, []);
|
|
4741
|
-
return /* @__PURE__ */
|
|
4880
|
+
return /* @__PURE__ */ jsx46(SheetPrimitive.Portal, __spreadValues({ "data-slot": "sheet-portal" }, props));
|
|
4742
4881
|
}
|
|
4743
4882
|
function SheetOverlay(_a) {
|
|
4744
4883
|
var _b = _a, {
|
|
@@ -4746,7 +4885,7 @@ function SheetOverlay(_a) {
|
|
|
4746
4885
|
} = _b, props = __objRest(_b, [
|
|
4747
4886
|
"className"
|
|
4748
4887
|
]);
|
|
4749
|
-
return /* @__PURE__ */
|
|
4888
|
+
return /* @__PURE__ */ jsx46(
|
|
4750
4889
|
SheetPrimitive.Overlay,
|
|
4751
4890
|
__spreadValues({
|
|
4752
4891
|
"data-slot": "sheet-overlay",
|
|
@@ -4769,9 +4908,9 @@ function SheetContent(_a) {
|
|
|
4769
4908
|
"side",
|
|
4770
4909
|
"showCloseButton"
|
|
4771
4910
|
]);
|
|
4772
|
-
return /* @__PURE__ */
|
|
4773
|
-
/* @__PURE__ */
|
|
4774
|
-
/* @__PURE__ */
|
|
4911
|
+
return /* @__PURE__ */ jsxs22(SheetPortal, { children: [
|
|
4912
|
+
/* @__PURE__ */ jsx46(SheetOverlay, {}),
|
|
4913
|
+
/* @__PURE__ */ jsxs22(
|
|
4775
4914
|
SheetPrimitive.Content,
|
|
4776
4915
|
__spreadProps(__spreadValues({
|
|
4777
4916
|
"data-slot": "sheet-content",
|
|
@@ -4786,9 +4925,9 @@ function SheetContent(_a) {
|
|
|
4786
4925
|
}, props), {
|
|
4787
4926
|
children: [
|
|
4788
4927
|
children,
|
|
4789
|
-
showCloseButton && /* @__PURE__ */
|
|
4790
|
-
/* @__PURE__ */
|
|
4791
|
-
/* @__PURE__ */
|
|
4928
|
+
showCloseButton && /* @__PURE__ */ jsxs22(SheetPrimitive.Close, { className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-prominent transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
4929
|
+
/* @__PURE__ */ jsx46(XIcon3, { className: "size-4" }),
|
|
4930
|
+
/* @__PURE__ */ jsx46("span", { className: "sr-only", children: "Close" })
|
|
4792
4931
|
] })
|
|
4793
4932
|
]
|
|
4794
4933
|
})
|
|
@@ -4797,7 +4936,7 @@ function SheetContent(_a) {
|
|
|
4797
4936
|
}
|
|
4798
4937
|
function SheetHeader(_a) {
|
|
4799
4938
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4800
|
-
return /* @__PURE__ */
|
|
4939
|
+
return /* @__PURE__ */ jsx46(
|
|
4801
4940
|
"div",
|
|
4802
4941
|
__spreadValues({
|
|
4803
4942
|
"data-slot": "sheet-header",
|
|
@@ -4807,7 +4946,7 @@ function SheetHeader(_a) {
|
|
|
4807
4946
|
}
|
|
4808
4947
|
function SheetFooter(_a) {
|
|
4809
4948
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4810
|
-
return /* @__PURE__ */
|
|
4949
|
+
return /* @__PURE__ */ jsx46(
|
|
4811
4950
|
"div",
|
|
4812
4951
|
__spreadValues({
|
|
4813
4952
|
"data-slot": "sheet-footer",
|
|
@@ -4821,7 +4960,7 @@ function SheetTitle(_a) {
|
|
|
4821
4960
|
} = _b, props = __objRest(_b, [
|
|
4822
4961
|
"className"
|
|
4823
4962
|
]);
|
|
4824
|
-
return /* @__PURE__ */
|
|
4963
|
+
return /* @__PURE__ */ jsx46(
|
|
4825
4964
|
SheetPrimitive.Title,
|
|
4826
4965
|
__spreadValues({
|
|
4827
4966
|
"data-slot": "sheet-title",
|
|
@@ -4835,7 +4974,7 @@ function SheetDescription(_a) {
|
|
|
4835
4974
|
} = _b, props = __objRest(_b, [
|
|
4836
4975
|
"className"
|
|
4837
4976
|
]);
|
|
4838
|
-
return /* @__PURE__ */
|
|
4977
|
+
return /* @__PURE__ */ jsx46(
|
|
4839
4978
|
SheetPrimitive.Description,
|
|
4840
4979
|
__spreadValues({
|
|
4841
4980
|
"data-slot": "sheet-description",
|
|
@@ -4845,17 +4984,17 @@ function SheetDescription(_a) {
|
|
|
4845
4984
|
}
|
|
4846
4985
|
|
|
4847
4986
|
// components/ui/sidebar.tsx
|
|
4848
|
-
import * as
|
|
4849
|
-
import { cva as
|
|
4987
|
+
import * as React9 from "react";
|
|
4988
|
+
import { cva as cva11 } from "class-variance-authority";
|
|
4850
4989
|
import { PanelLeftIcon } from "lucide-react";
|
|
4851
4990
|
import { Slot as Slot7 } from "radix-ui";
|
|
4852
4991
|
|
|
4853
4992
|
// hooks/use-mobile.ts
|
|
4854
|
-
import * as
|
|
4993
|
+
import * as React8 from "react";
|
|
4855
4994
|
var MOBILE_BREAKPOINT = 768;
|
|
4856
4995
|
function useIsMobile() {
|
|
4857
|
-
const [isMobile, setIsMobile] =
|
|
4858
|
-
|
|
4996
|
+
const [isMobile, setIsMobile] = React8.useState(void 0);
|
|
4997
|
+
React8.useEffect(() => {
|
|
4859
4998
|
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
4860
4999
|
const onChange = () => {
|
|
4861
5000
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
@@ -4868,10 +5007,10 @@ function useIsMobile() {
|
|
|
4868
5007
|
}
|
|
4869
5008
|
|
|
4870
5009
|
// components/ui/skeleton.tsx
|
|
4871
|
-
import { jsx as
|
|
5010
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
4872
5011
|
function Skeleton(_a) {
|
|
4873
5012
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4874
|
-
return /* @__PURE__ */
|
|
5013
|
+
return /* @__PURE__ */ jsx47(
|
|
4875
5014
|
"div",
|
|
4876
5015
|
__spreadValues({
|
|
4877
5016
|
"data-slot": "skeleton",
|
|
@@ -4882,14 +5021,14 @@ function Skeleton(_a) {
|
|
|
4882
5021
|
|
|
4883
5022
|
// components/ui/tooltip.tsx
|
|
4884
5023
|
import { Tooltip as TooltipPrimitive } from "radix-ui";
|
|
4885
|
-
import { jsx as
|
|
5024
|
+
import { jsx as jsx48, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
4886
5025
|
function TooltipProvider(_a) {
|
|
4887
5026
|
var _b = _a, {
|
|
4888
5027
|
delayDuration = 0
|
|
4889
5028
|
} = _b, props = __objRest(_b, [
|
|
4890
5029
|
"delayDuration"
|
|
4891
5030
|
]);
|
|
4892
|
-
return /* @__PURE__ */
|
|
5031
|
+
return /* @__PURE__ */ jsx48(
|
|
4893
5032
|
TooltipPrimitive.Provider,
|
|
4894
5033
|
__spreadValues({
|
|
4895
5034
|
"data-slot": "tooltip-provider",
|
|
@@ -4899,11 +5038,11 @@ function TooltipProvider(_a) {
|
|
|
4899
5038
|
}
|
|
4900
5039
|
function Tooltip2(_a) {
|
|
4901
5040
|
var props = __objRest(_a, []);
|
|
4902
|
-
return /* @__PURE__ */
|
|
5041
|
+
return /* @__PURE__ */ jsx48(TooltipPrimitive.Root, __spreadValues({ "data-slot": "tooltip" }, props));
|
|
4903
5042
|
}
|
|
4904
5043
|
function TooltipTrigger(_a) {
|
|
4905
5044
|
var props = __objRest(_a, []);
|
|
4906
|
-
return /* @__PURE__ */
|
|
5045
|
+
return /* @__PURE__ */ jsx48(TooltipPrimitive.Trigger, __spreadValues({ "data-slot": "tooltip-trigger" }, props));
|
|
4907
5046
|
}
|
|
4908
5047
|
function TooltipContent(_a) {
|
|
4909
5048
|
var _b = _a, {
|
|
@@ -4915,7 +5054,7 @@ function TooltipContent(_a) {
|
|
|
4915
5054
|
"sideOffset",
|
|
4916
5055
|
"children"
|
|
4917
5056
|
]);
|
|
4918
|
-
return /* @__PURE__ */
|
|
5057
|
+
return /* @__PURE__ */ jsx48(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs23(
|
|
4919
5058
|
TooltipPrimitive.Content,
|
|
4920
5059
|
__spreadProps(__spreadValues({
|
|
4921
5060
|
"data-slot": "tooltip-content",
|
|
@@ -4927,23 +5066,23 @@ function TooltipContent(_a) {
|
|
|
4927
5066
|
}, props), {
|
|
4928
5067
|
children: [
|
|
4929
5068
|
children,
|
|
4930
|
-
/* @__PURE__ */
|
|
5069
|
+
/* @__PURE__ */ jsx48(TooltipPrimitive.Arrow, { className: "fill-primary" })
|
|
4931
5070
|
]
|
|
4932
5071
|
})
|
|
4933
5072
|
) });
|
|
4934
5073
|
}
|
|
4935
5074
|
|
|
4936
5075
|
// components/ui/sidebar.tsx
|
|
4937
|
-
import { jsx as
|
|
5076
|
+
import { jsx as jsx49, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
4938
5077
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
4939
5078
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
4940
5079
|
var SIDEBAR_WIDTH = "16rem";
|
|
4941
5080
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
4942
5081
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
4943
5082
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
4944
|
-
var SidebarContext =
|
|
5083
|
+
var SidebarContext = React9.createContext(null);
|
|
4945
5084
|
function useSidebar() {
|
|
4946
|
-
const context =
|
|
5085
|
+
const context = React9.useContext(SidebarContext);
|
|
4947
5086
|
if (!context) {
|
|
4948
5087
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
4949
5088
|
}
|
|
@@ -4966,10 +5105,10 @@ function SidebarProvider(_a) {
|
|
|
4966
5105
|
"children"
|
|
4967
5106
|
]);
|
|
4968
5107
|
const isMobile = useIsMobile();
|
|
4969
|
-
const [openMobile, setOpenMobile] =
|
|
4970
|
-
const [_open, _setOpen] =
|
|
5108
|
+
const [openMobile, setOpenMobile] = React9.useState(false);
|
|
5109
|
+
const [_open, _setOpen] = React9.useState(defaultOpen);
|
|
4971
5110
|
const open = openProp != null ? openProp : _open;
|
|
4972
|
-
const setOpen =
|
|
5111
|
+
const setOpen = React9.useCallback(
|
|
4973
5112
|
(value) => {
|
|
4974
5113
|
const openState = typeof value === "function" ? value(open) : value;
|
|
4975
5114
|
if (setOpenProp) {
|
|
@@ -4981,10 +5120,10 @@ function SidebarProvider(_a) {
|
|
|
4981
5120
|
},
|
|
4982
5121
|
[setOpenProp, open]
|
|
4983
5122
|
);
|
|
4984
|
-
const toggleSidebar =
|
|
5123
|
+
const toggleSidebar = React9.useCallback(() => {
|
|
4985
5124
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
4986
5125
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
4987
|
-
|
|
5126
|
+
React9.useEffect(() => {
|
|
4988
5127
|
const handleKeyDown = (event) => {
|
|
4989
5128
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
4990
5129
|
event.preventDefault();
|
|
@@ -4995,7 +5134,7 @@ function SidebarProvider(_a) {
|
|
|
4995
5134
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
4996
5135
|
}, [toggleSidebar]);
|
|
4997
5136
|
const state = open ? "expanded" : "collapsed";
|
|
4998
|
-
const contextValue =
|
|
5137
|
+
const contextValue = React9.useMemo(
|
|
4999
5138
|
() => ({
|
|
5000
5139
|
state,
|
|
5001
5140
|
open,
|
|
@@ -5007,7 +5146,7 @@ function SidebarProvider(_a) {
|
|
|
5007
5146
|
}),
|
|
5008
5147
|
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
5009
5148
|
);
|
|
5010
|
-
return /* @__PURE__ */
|
|
5149
|
+
return /* @__PURE__ */ jsx49(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx49(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ jsx49(
|
|
5011
5150
|
"div",
|
|
5012
5151
|
__spreadProps(__spreadValues({
|
|
5013
5152
|
"data-slot": "sidebar-wrapper",
|
|
@@ -5040,7 +5179,7 @@ function Sidebar(_a) {
|
|
|
5040
5179
|
]);
|
|
5041
5180
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
5042
5181
|
if (collapsible === "none") {
|
|
5043
|
-
return /* @__PURE__ */
|
|
5182
|
+
return /* @__PURE__ */ jsx49(
|
|
5044
5183
|
"div",
|
|
5045
5184
|
__spreadProps(__spreadValues({
|
|
5046
5185
|
"data-slot": "sidebar",
|
|
@@ -5054,7 +5193,7 @@ function Sidebar(_a) {
|
|
|
5054
5193
|
);
|
|
5055
5194
|
}
|
|
5056
5195
|
if (isMobile) {
|
|
5057
|
-
return /* @__PURE__ */
|
|
5196
|
+
return /* @__PURE__ */ jsx49(Sheet, __spreadProps(__spreadValues({ open: openMobile, onOpenChange: setOpenMobile }, props), { children: /* @__PURE__ */ jsxs24(
|
|
5058
5197
|
SheetContent,
|
|
5059
5198
|
{
|
|
5060
5199
|
"data-sidebar": "sidebar",
|
|
@@ -5066,16 +5205,16 @@ function Sidebar(_a) {
|
|
|
5066
5205
|
},
|
|
5067
5206
|
side,
|
|
5068
5207
|
children: [
|
|
5069
|
-
/* @__PURE__ */
|
|
5070
|
-
/* @__PURE__ */
|
|
5071
|
-
/* @__PURE__ */
|
|
5208
|
+
/* @__PURE__ */ jsxs24(SheetHeader, { className: "sr-only", children: [
|
|
5209
|
+
/* @__PURE__ */ jsx49(SheetTitle, { children: "Sidebar" }),
|
|
5210
|
+
/* @__PURE__ */ jsx49(SheetDescription, { children: "Displays the mobile sidebar." })
|
|
5072
5211
|
] }),
|
|
5073
|
-
/* @__PURE__ */
|
|
5212
|
+
/* @__PURE__ */ jsx49("div", { className: "flex h-full w-full flex-col", children })
|
|
5074
5213
|
]
|
|
5075
5214
|
}
|
|
5076
5215
|
) }));
|
|
5077
5216
|
}
|
|
5078
|
-
return /* @__PURE__ */
|
|
5217
|
+
return /* @__PURE__ */ jsxs24(
|
|
5079
5218
|
"div",
|
|
5080
5219
|
{
|
|
5081
5220
|
className: "group peer hidden text-sidebar-foreground md:block",
|
|
@@ -5085,7 +5224,7 @@ function Sidebar(_a) {
|
|
|
5085
5224
|
"data-side": side,
|
|
5086
5225
|
"data-slot": "sidebar",
|
|
5087
5226
|
children: [
|
|
5088
|
-
/* @__PURE__ */
|
|
5227
|
+
/* @__PURE__ */ jsx49(
|
|
5089
5228
|
"div",
|
|
5090
5229
|
{
|
|
5091
5230
|
"data-slot": "sidebar-gap",
|
|
@@ -5097,7 +5236,7 @@ function Sidebar(_a) {
|
|
|
5097
5236
|
)
|
|
5098
5237
|
}
|
|
5099
5238
|
),
|
|
5100
|
-
/* @__PURE__ */
|
|
5239
|
+
/* @__PURE__ */ jsx49(
|
|
5101
5240
|
"div",
|
|
5102
5241
|
__spreadProps(__spreadValues({
|
|
5103
5242
|
"data-slot": "sidebar-container",
|
|
@@ -5109,7 +5248,7 @@ function Sidebar(_a) {
|
|
|
5109
5248
|
className
|
|
5110
5249
|
)
|
|
5111
5250
|
}, props), {
|
|
5112
|
-
children: /* @__PURE__ */
|
|
5251
|
+
children: /* @__PURE__ */ jsx49(
|
|
5113
5252
|
"div",
|
|
5114
5253
|
{
|
|
5115
5254
|
"data-sidebar": "sidebar",
|
|
@@ -5133,7 +5272,7 @@ function SidebarTrigger(_a) {
|
|
|
5133
5272
|
"onClick"
|
|
5134
5273
|
]);
|
|
5135
5274
|
const { toggleSidebar } = useSidebar();
|
|
5136
|
-
return /* @__PURE__ */
|
|
5275
|
+
return /* @__PURE__ */ jsxs24(
|
|
5137
5276
|
Button,
|
|
5138
5277
|
__spreadProps(__spreadValues({
|
|
5139
5278
|
"data-sidebar": "trigger",
|
|
@@ -5147,8 +5286,8 @@ function SidebarTrigger(_a) {
|
|
|
5147
5286
|
}
|
|
5148
5287
|
}, props), {
|
|
5149
5288
|
children: [
|
|
5150
|
-
/* @__PURE__ */
|
|
5151
|
-
/* @__PURE__ */
|
|
5289
|
+
/* @__PURE__ */ jsx49(PanelLeftIcon, {}),
|
|
5290
|
+
/* @__PURE__ */ jsx49("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
5152
5291
|
]
|
|
5153
5292
|
})
|
|
5154
5293
|
);
|
|
@@ -5156,7 +5295,7 @@ function SidebarTrigger(_a) {
|
|
|
5156
5295
|
function SidebarRail(_a) {
|
|
5157
5296
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5158
5297
|
const { toggleSidebar } = useSidebar();
|
|
5159
|
-
return /* @__PURE__ */
|
|
5298
|
+
return /* @__PURE__ */ jsx49(
|
|
5160
5299
|
"button",
|
|
5161
5300
|
__spreadValues({
|
|
5162
5301
|
"data-sidebar": "rail",
|
|
@@ -5179,7 +5318,7 @@ function SidebarRail(_a) {
|
|
|
5179
5318
|
}
|
|
5180
5319
|
function SidebarInset(_a) {
|
|
5181
5320
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5182
|
-
return /* @__PURE__ */
|
|
5321
|
+
return /* @__PURE__ */ jsx49(
|
|
5183
5322
|
"main",
|
|
5184
5323
|
__spreadValues({
|
|
5185
5324
|
"data-slot": "sidebar-inset",
|
|
@@ -5197,7 +5336,7 @@ function SidebarInput(_a) {
|
|
|
5197
5336
|
} = _b, props = __objRest(_b, [
|
|
5198
5337
|
"className"
|
|
5199
5338
|
]);
|
|
5200
|
-
return /* @__PURE__ */
|
|
5339
|
+
return /* @__PURE__ */ jsx49(
|
|
5201
5340
|
Input,
|
|
5202
5341
|
__spreadValues({
|
|
5203
5342
|
"data-slot": "sidebar-input",
|
|
@@ -5208,7 +5347,7 @@ function SidebarInput(_a) {
|
|
|
5208
5347
|
}
|
|
5209
5348
|
function SidebarHeader(_a) {
|
|
5210
5349
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5211
|
-
return /* @__PURE__ */
|
|
5350
|
+
return /* @__PURE__ */ jsx49(
|
|
5212
5351
|
"div",
|
|
5213
5352
|
__spreadValues({
|
|
5214
5353
|
"data-slot": "sidebar-header",
|
|
@@ -5219,7 +5358,7 @@ function SidebarHeader(_a) {
|
|
|
5219
5358
|
}
|
|
5220
5359
|
function SidebarFooter(_a) {
|
|
5221
5360
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5222
|
-
return /* @__PURE__ */
|
|
5361
|
+
return /* @__PURE__ */ jsx49(
|
|
5223
5362
|
"div",
|
|
5224
5363
|
__spreadValues({
|
|
5225
5364
|
"data-slot": "sidebar-footer",
|
|
@@ -5234,7 +5373,7 @@ function SidebarSeparator(_a) {
|
|
|
5234
5373
|
} = _b, props = __objRest(_b, [
|
|
5235
5374
|
"className"
|
|
5236
5375
|
]);
|
|
5237
|
-
return /* @__PURE__ */
|
|
5376
|
+
return /* @__PURE__ */ jsx49(
|
|
5238
5377
|
Separator,
|
|
5239
5378
|
__spreadValues({
|
|
5240
5379
|
"data-slot": "sidebar-separator",
|
|
@@ -5245,7 +5384,7 @@ function SidebarSeparator(_a) {
|
|
|
5245
5384
|
}
|
|
5246
5385
|
function SidebarContent(_a) {
|
|
5247
5386
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5248
|
-
return /* @__PURE__ */
|
|
5387
|
+
return /* @__PURE__ */ jsx49(
|
|
5249
5388
|
"div",
|
|
5250
5389
|
__spreadValues({
|
|
5251
5390
|
"data-slot": "sidebar-content",
|
|
@@ -5259,7 +5398,7 @@ function SidebarContent(_a) {
|
|
|
5259
5398
|
}
|
|
5260
5399
|
function SidebarGroup(_a) {
|
|
5261
5400
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5262
|
-
return /* @__PURE__ */
|
|
5401
|
+
return /* @__PURE__ */ jsx49(
|
|
5263
5402
|
"div",
|
|
5264
5403
|
__spreadValues({
|
|
5265
5404
|
"data-slot": "sidebar-group",
|
|
@@ -5277,7 +5416,7 @@ function SidebarGroupLabel(_a) {
|
|
|
5277
5416
|
"asChild"
|
|
5278
5417
|
]);
|
|
5279
5418
|
const Comp = asChild ? Slot7.Root : "div";
|
|
5280
|
-
return /* @__PURE__ */
|
|
5419
|
+
return /* @__PURE__ */ jsx49(
|
|
5281
5420
|
Comp,
|
|
5282
5421
|
__spreadValues({
|
|
5283
5422
|
"data-slot": "sidebar-group-label",
|
|
@@ -5299,7 +5438,7 @@ function SidebarGroupAction(_a) {
|
|
|
5299
5438
|
"asChild"
|
|
5300
5439
|
]);
|
|
5301
5440
|
const Comp = asChild ? Slot7.Root : "button";
|
|
5302
|
-
return /* @__PURE__ */
|
|
5441
|
+
return /* @__PURE__ */ jsx49(
|
|
5303
5442
|
Comp,
|
|
5304
5443
|
__spreadValues({
|
|
5305
5444
|
"data-slot": "sidebar-group-action",
|
|
@@ -5320,7 +5459,7 @@ function SidebarGroupContent(_a) {
|
|
|
5320
5459
|
} = _b, props = __objRest(_b, [
|
|
5321
5460
|
"className"
|
|
5322
5461
|
]);
|
|
5323
|
-
return /* @__PURE__ */
|
|
5462
|
+
return /* @__PURE__ */ jsx49(
|
|
5324
5463
|
"div",
|
|
5325
5464
|
__spreadValues({
|
|
5326
5465
|
"data-slot": "sidebar-group-content",
|
|
@@ -5331,7 +5470,7 @@ function SidebarGroupContent(_a) {
|
|
|
5331
5470
|
}
|
|
5332
5471
|
function SidebarMenu(_a) {
|
|
5333
5472
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5334
|
-
return /* @__PURE__ */
|
|
5473
|
+
return /* @__PURE__ */ jsx49(
|
|
5335
5474
|
"ul",
|
|
5336
5475
|
__spreadValues({
|
|
5337
5476
|
"data-slot": "sidebar-menu",
|
|
@@ -5342,7 +5481,7 @@ function SidebarMenu(_a) {
|
|
|
5342
5481
|
}
|
|
5343
5482
|
function SidebarMenuItem(_a) {
|
|
5344
5483
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5345
|
-
return /* @__PURE__ */
|
|
5484
|
+
return /* @__PURE__ */ jsx49(
|
|
5346
5485
|
"li",
|
|
5347
5486
|
__spreadValues({
|
|
5348
5487
|
"data-slot": "sidebar-menu-item",
|
|
@@ -5351,7 +5490,7 @@ function SidebarMenuItem(_a) {
|
|
|
5351
5490
|
}, props)
|
|
5352
5491
|
);
|
|
5353
5492
|
}
|
|
5354
|
-
var sidebarMenuButtonVariants =
|
|
5493
|
+
var sidebarMenuButtonVariants = cva11(
|
|
5355
5494
|
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-sm p-2 text-left text-sidebar-foreground text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-secondary-hover hover:text-primary focus-visible:ring-2 active:bg-secondary-hover active:text-primary disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-secondary-hover data-[active=true]:font-semibold data-[active=true]:text-primary data-[active=true]:hover:bg-secondary-hover data-[active=true]:hover:text-primary data-[state=open]:hover:bg-secondary-hover data-[state=open]:hover:text-primary [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 data-[active=true]:[&>svg]:text-primary",
|
|
5356
5495
|
{
|
|
5357
5496
|
variants: {
|
|
@@ -5389,7 +5528,7 @@ function SidebarMenuButton(_a) {
|
|
|
5389
5528
|
]);
|
|
5390
5529
|
const Comp = asChild ? Slot7.Root : "button";
|
|
5391
5530
|
const { isMobile, state } = useSidebar();
|
|
5392
|
-
const button = /* @__PURE__ */
|
|
5531
|
+
const button = /* @__PURE__ */ jsx49(
|
|
5393
5532
|
Comp,
|
|
5394
5533
|
__spreadValues({
|
|
5395
5534
|
"data-slot": "sidebar-menu-button",
|
|
@@ -5407,9 +5546,9 @@ function SidebarMenuButton(_a) {
|
|
|
5407
5546
|
children: tooltip
|
|
5408
5547
|
};
|
|
5409
5548
|
}
|
|
5410
|
-
return /* @__PURE__ */
|
|
5411
|
-
/* @__PURE__ */
|
|
5412
|
-
/* @__PURE__ */
|
|
5549
|
+
return /* @__PURE__ */ jsxs24(Tooltip2, { children: [
|
|
5550
|
+
/* @__PURE__ */ jsx49(TooltipTrigger, { asChild: true, children: button }),
|
|
5551
|
+
/* @__PURE__ */ jsx49(
|
|
5413
5552
|
TooltipContent,
|
|
5414
5553
|
__spreadValues({
|
|
5415
5554
|
side: "right",
|
|
@@ -5430,7 +5569,7 @@ function SidebarMenuAction(_a) {
|
|
|
5430
5569
|
"showOnHover"
|
|
5431
5570
|
]);
|
|
5432
5571
|
const Comp = asChild ? Slot7.Root : "button";
|
|
5433
|
-
return /* @__PURE__ */
|
|
5572
|
+
return /* @__PURE__ */ jsx49(
|
|
5434
5573
|
Comp,
|
|
5435
5574
|
__spreadValues({
|
|
5436
5575
|
"data-slot": "sidebar-menu-action",
|
|
@@ -5455,7 +5594,7 @@ function SidebarMenuBadge(_a) {
|
|
|
5455
5594
|
} = _b, props = __objRest(_b, [
|
|
5456
5595
|
"className"
|
|
5457
5596
|
]);
|
|
5458
|
-
return /* @__PURE__ */
|
|
5597
|
+
return /* @__PURE__ */ jsx49(
|
|
5459
5598
|
"div",
|
|
5460
5599
|
__spreadValues({
|
|
5461
5600
|
"data-slot": "sidebar-menu-badge",
|
|
@@ -5481,7 +5620,7 @@ function SidebarMenuSkeleton(_a) {
|
|
|
5481
5620
|
"showIcon"
|
|
5482
5621
|
]);
|
|
5483
5622
|
const width = "70%";
|
|
5484
|
-
return /* @__PURE__ */
|
|
5623
|
+
return /* @__PURE__ */ jsxs24(
|
|
5485
5624
|
"div",
|
|
5486
5625
|
__spreadProps(__spreadValues({
|
|
5487
5626
|
"data-slot": "sidebar-menu-skeleton",
|
|
@@ -5489,14 +5628,14 @@ function SidebarMenuSkeleton(_a) {
|
|
|
5489
5628
|
className: cn("flex h-8 items-center gap-2 rounded-md px-2", className)
|
|
5490
5629
|
}, props), {
|
|
5491
5630
|
children: [
|
|
5492
|
-
showIcon && /* @__PURE__ */
|
|
5631
|
+
showIcon && /* @__PURE__ */ jsx49(
|
|
5493
5632
|
Skeleton,
|
|
5494
5633
|
{
|
|
5495
5634
|
className: "size-4 rounded-md",
|
|
5496
5635
|
"data-sidebar": "menu-skeleton-icon"
|
|
5497
5636
|
}
|
|
5498
5637
|
),
|
|
5499
|
-
/* @__PURE__ */
|
|
5638
|
+
/* @__PURE__ */ jsx49(
|
|
5500
5639
|
Skeleton,
|
|
5501
5640
|
{
|
|
5502
5641
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
@@ -5512,7 +5651,7 @@ function SidebarMenuSkeleton(_a) {
|
|
|
5512
5651
|
}
|
|
5513
5652
|
function SidebarMenuSub(_a) {
|
|
5514
5653
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5515
|
-
return /* @__PURE__ */
|
|
5654
|
+
return /* @__PURE__ */ jsx49(
|
|
5516
5655
|
"ul",
|
|
5517
5656
|
__spreadValues({
|
|
5518
5657
|
"data-slot": "sidebar-menu-sub",
|
|
@@ -5531,7 +5670,7 @@ function SidebarMenuSubItem(_a) {
|
|
|
5531
5670
|
} = _b, props = __objRest(_b, [
|
|
5532
5671
|
"className"
|
|
5533
5672
|
]);
|
|
5534
|
-
return /* @__PURE__ */
|
|
5673
|
+
return /* @__PURE__ */ jsx49(
|
|
5535
5674
|
"li",
|
|
5536
5675
|
__spreadValues({
|
|
5537
5676
|
"data-slot": "sidebar-menu-sub-item",
|
|
@@ -5553,7 +5692,7 @@ function SidebarMenuSubButton(_a) {
|
|
|
5553
5692
|
"className"
|
|
5554
5693
|
]);
|
|
5555
5694
|
const Comp = asChild ? Slot7.Root : "a";
|
|
5556
|
-
return /* @__PURE__ */
|
|
5695
|
+
return /* @__PURE__ */ jsx49(
|
|
5557
5696
|
Comp,
|
|
5558
5697
|
__spreadValues({
|
|
5559
5698
|
"data-slot": "sidebar-menu-sub-button",
|
|
@@ -5573,9 +5712,9 @@ function SidebarMenuSubButton(_a) {
|
|
|
5573
5712
|
}
|
|
5574
5713
|
|
|
5575
5714
|
// components/ui/slider.tsx
|
|
5576
|
-
import * as
|
|
5715
|
+
import * as React10 from "react";
|
|
5577
5716
|
import { Slider as SliderPrimitive } from "radix-ui";
|
|
5578
|
-
import { jsx as
|
|
5717
|
+
import { jsx as jsx50, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
5579
5718
|
function Slider(_a) {
|
|
5580
5719
|
var _b = _a, {
|
|
5581
5720
|
className,
|
|
@@ -5590,11 +5729,11 @@ function Slider(_a) {
|
|
|
5590
5729
|
"min",
|
|
5591
5730
|
"max"
|
|
5592
5731
|
]);
|
|
5593
|
-
const _values =
|
|
5732
|
+
const _values = React10.useMemo(
|
|
5594
5733
|
() => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
|
|
5595
5734
|
[value, defaultValue, min, max]
|
|
5596
5735
|
);
|
|
5597
|
-
return /* @__PURE__ */
|
|
5736
|
+
return /* @__PURE__ */ jsxs25(
|
|
5598
5737
|
SliderPrimitive.Root,
|
|
5599
5738
|
__spreadProps(__spreadValues({
|
|
5600
5739
|
"data-slot": "slider",
|
|
@@ -5608,14 +5747,14 @@ function Slider(_a) {
|
|
|
5608
5747
|
)
|
|
5609
5748
|
}, props), {
|
|
5610
5749
|
children: [
|
|
5611
|
-
/* @__PURE__ */
|
|
5750
|
+
/* @__PURE__ */ jsx50(
|
|
5612
5751
|
SliderPrimitive.Track,
|
|
5613
5752
|
{
|
|
5614
5753
|
"data-slot": "slider-track",
|
|
5615
5754
|
className: cn(
|
|
5616
5755
|
"relative grow overflow-hidden rounded-full bg-subtle data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"
|
|
5617
5756
|
),
|
|
5618
|
-
children: /* @__PURE__ */
|
|
5757
|
+
children: /* @__PURE__ */ jsx50(
|
|
5619
5758
|
SliderPrimitive.Range,
|
|
5620
5759
|
{
|
|
5621
5760
|
"data-slot": "slider-range",
|
|
@@ -5626,7 +5765,7 @@ function Slider(_a) {
|
|
|
5626
5765
|
)
|
|
5627
5766
|
}
|
|
5628
5767
|
),
|
|
5629
|
-
Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */
|
|
5768
|
+
Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ jsx50(
|
|
5630
5769
|
SliderPrimitive.Thumb,
|
|
5631
5770
|
{
|
|
5632
5771
|
"data-slot": "slider-thumb",
|
|
@@ -5649,21 +5788,21 @@ import {
|
|
|
5649
5788
|
} from "lucide-react";
|
|
5650
5789
|
import { useTheme } from "next-themes";
|
|
5651
5790
|
import { Toaster as Sonner } from "sonner";
|
|
5652
|
-
import { jsx as
|
|
5791
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
5653
5792
|
var Toaster = (_a) => {
|
|
5654
5793
|
var props = __objRest(_a, []);
|
|
5655
5794
|
const { theme = "system" } = useTheme();
|
|
5656
|
-
return /* @__PURE__ */
|
|
5795
|
+
return /* @__PURE__ */ jsx51(
|
|
5657
5796
|
Sonner,
|
|
5658
5797
|
__spreadValues({
|
|
5659
5798
|
theme,
|
|
5660
5799
|
className: "toaster group",
|
|
5661
5800
|
icons: {
|
|
5662
|
-
success: /* @__PURE__ */
|
|
5663
|
-
info: /* @__PURE__ */
|
|
5664
|
-
warning: /* @__PURE__ */
|
|
5665
|
-
error: /* @__PURE__ */
|
|
5666
|
-
loading: /* @__PURE__ */
|
|
5801
|
+
success: /* @__PURE__ */ jsx51(CircleCheckIcon, { className: "size-4" }),
|
|
5802
|
+
info: /* @__PURE__ */ jsx51(InfoIcon, { className: "size-4" }),
|
|
5803
|
+
warning: /* @__PURE__ */ jsx51(TriangleAlertIcon, { className: "size-4" }),
|
|
5804
|
+
error: /* @__PURE__ */ jsx51(OctagonXIcon, { className: "size-4" }),
|
|
5805
|
+
loading: /* @__PURE__ */ jsx51(Loader2Icon, { className: "size-4 animate-spin" })
|
|
5667
5806
|
},
|
|
5668
5807
|
style: {
|
|
5669
5808
|
"--normal-bg": "var(--popover)",
|
|
@@ -5676,9 +5815,9 @@ var Toaster = (_a) => {
|
|
|
5676
5815
|
};
|
|
5677
5816
|
|
|
5678
5817
|
// components/ui/stepper.tsx
|
|
5679
|
-
import * as
|
|
5818
|
+
import * as React11 from "react";
|
|
5680
5819
|
import { Minus, Plus } from "lucide-react";
|
|
5681
|
-
import { jsx as
|
|
5820
|
+
import { jsx as jsx52, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
5682
5821
|
function clamp(value, min, max) {
|
|
5683
5822
|
return Math.min(Math.max(value, min), max);
|
|
5684
5823
|
}
|
|
@@ -5692,8 +5831,8 @@ function formatValue(value, decimalPlaces) {
|
|
|
5692
5831
|
}
|
|
5693
5832
|
var stepperSizeConfig = {
|
|
5694
5833
|
sm: { container: "h-8", buttonSize: "icon-xs", iconClass: "size-3" },
|
|
5695
|
-
md: { container: "h-
|
|
5696
|
-
lg: { container: "h-
|
|
5834
|
+
md: { container: "h-10", buttonSize: "icon-xs", iconClass: "size-3.5" },
|
|
5835
|
+
lg: { container: "h-12", buttonSize: "icon-sm", iconClass: "size-4" }
|
|
5697
5836
|
};
|
|
5698
5837
|
function Stepper({
|
|
5699
5838
|
value: controlledValue,
|
|
@@ -5712,16 +5851,16 @@ function Stepper({
|
|
|
5712
5851
|
}) {
|
|
5713
5852
|
const { container, buttonSize, iconClass } = stepperSizeConfig[size];
|
|
5714
5853
|
const isControlled = controlledValue !== void 0;
|
|
5715
|
-
const [internalValue, setInternalValue] =
|
|
5854
|
+
const [internalValue, setInternalValue] = React11.useState(
|
|
5716
5855
|
clamp(defaultValue, min, max)
|
|
5717
5856
|
);
|
|
5718
5857
|
const currentValue = isControlled ? controlledValue : internalValue;
|
|
5719
5858
|
const decimalPlaces = getDecimalPlaces(step);
|
|
5720
|
-
const [displayString, setDisplayString] =
|
|
5859
|
+
const [displayString, setDisplayString] = React11.useState(
|
|
5721
5860
|
formatValue(currentValue, decimalPlaces)
|
|
5722
5861
|
);
|
|
5723
|
-
const [isFocused, setIsFocused] =
|
|
5724
|
-
|
|
5862
|
+
const [isFocused, setIsFocused] = React11.useState(false);
|
|
5863
|
+
React11.useEffect(() => {
|
|
5725
5864
|
if (!isFocused) {
|
|
5726
5865
|
setDisplayString(formatValue(currentValue, decimalPlaces));
|
|
5727
5866
|
}
|
|
@@ -5771,14 +5910,14 @@ function Stepper({
|
|
|
5771
5910
|
}
|
|
5772
5911
|
}
|
|
5773
5912
|
}
|
|
5774
|
-
return /* @__PURE__ */
|
|
5913
|
+
return /* @__PURE__ */ jsxs26(
|
|
5775
5914
|
InputGroup,
|
|
5776
5915
|
{
|
|
5777
5916
|
"data-slot": "stepper",
|
|
5778
5917
|
"data-disabled": disabled || void 0,
|
|
5779
5918
|
className: cn("w-32", container, className),
|
|
5780
5919
|
children: [
|
|
5781
|
-
/* @__PURE__ */
|
|
5920
|
+
/* @__PURE__ */ jsx52(InputGroupAddon, { align: "inline-start", children: /* @__PURE__ */ jsx52(
|
|
5782
5921
|
InputGroupButton,
|
|
5783
5922
|
{
|
|
5784
5923
|
size: buttonSize,
|
|
@@ -5786,10 +5925,10 @@ function Stepper({
|
|
|
5786
5925
|
onClick: handleDecrement,
|
|
5787
5926
|
disabled: disabled || currentValue <= min,
|
|
5788
5927
|
"aria-label": "Decrease value",
|
|
5789
|
-
children: /* @__PURE__ */
|
|
5928
|
+
children: /* @__PURE__ */ jsx52(Minus, { className: iconClass })
|
|
5790
5929
|
}
|
|
5791
5930
|
) }),
|
|
5792
|
-
/* @__PURE__ */
|
|
5931
|
+
/* @__PURE__ */ jsx52(
|
|
5793
5932
|
InputGroupInput,
|
|
5794
5933
|
{
|
|
5795
5934
|
type: "text",
|
|
@@ -5811,9 +5950,9 @@ function Stepper({
|
|
|
5811
5950
|
className: "text-center [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"
|
|
5812
5951
|
}
|
|
5813
5952
|
),
|
|
5814
|
-
/* @__PURE__ */
|
|
5815
|
-
/* @__PURE__ */
|
|
5816
|
-
/* @__PURE__ */
|
|
5953
|
+
/* @__PURE__ */ jsxs26(InputGroupAddon, { align: "inline-end", children: [
|
|
5954
|
+
/* @__PURE__ */ jsx52(InputGroupText, { className: "font-normal text-on-subtle", children: "USDT" }),
|
|
5955
|
+
/* @__PURE__ */ jsx52(
|
|
5817
5956
|
InputGroupButton,
|
|
5818
5957
|
{
|
|
5819
5958
|
size: buttonSize,
|
|
@@ -5821,7 +5960,7 @@ function Stepper({
|
|
|
5821
5960
|
onClick: handleIncrement,
|
|
5822
5961
|
disabled: disabled || currentValue >= max,
|
|
5823
5962
|
"aria-label": "Increase value",
|
|
5824
|
-
children: /* @__PURE__ */
|
|
5963
|
+
children: /* @__PURE__ */ jsx52(Plus, { className: iconClass })
|
|
5825
5964
|
}
|
|
5826
5965
|
)
|
|
5827
5966
|
] })
|
|
@@ -5830,48 +5969,6 @@ function Stepper({
|
|
|
5830
5969
|
);
|
|
5831
5970
|
}
|
|
5832
5971
|
|
|
5833
|
-
// components/ui/spinner.tsx
|
|
5834
|
-
import { jsx as jsx52, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
5835
|
-
var PILL_COUNT = 8;
|
|
5836
|
-
function Spinner(_a) {
|
|
5837
|
-
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5838
|
-
return /* @__PURE__ */ jsxs25(
|
|
5839
|
-
"div",
|
|
5840
|
-
__spreadProps(__spreadValues({
|
|
5841
|
-
role: "status",
|
|
5842
|
-
"aria-label": "Loading",
|
|
5843
|
-
className: cn("relative inline-block size-4 text-current", className)
|
|
5844
|
-
}, props), {
|
|
5845
|
-
children: [
|
|
5846
|
-
/* @__PURE__ */ jsx52("style", { children: `
|
|
5847
|
-
@keyframes spinner-fade {
|
|
5848
|
-
0% { opacity: 1; }
|
|
5849
|
-
100% { opacity: 0.15; }
|
|
5850
|
-
}
|
|
5851
|
-
` }),
|
|
5852
|
-
Array.from({ length: PILL_COUNT }, (_, i) => /* @__PURE__ */ jsx52(
|
|
5853
|
-
"span",
|
|
5854
|
-
{
|
|
5855
|
-
style: {
|
|
5856
|
-
position: "absolute",
|
|
5857
|
-
left: "50%",
|
|
5858
|
-
top: "0",
|
|
5859
|
-
width: "12%",
|
|
5860
|
-
height: "30%",
|
|
5861
|
-
borderRadius: "9999px",
|
|
5862
|
-
backgroundColor: "currentColor",
|
|
5863
|
-
transformOrigin: "50% 167%",
|
|
5864
|
-
transform: `translateX(-50%) rotate(${i * 45}deg)`,
|
|
5865
|
-
animation: `spinner-fade 0.8s linear ${i * 0.8 / PILL_COUNT}s infinite`
|
|
5866
|
-
}
|
|
5867
|
-
},
|
|
5868
|
-
i
|
|
5869
|
-
))
|
|
5870
|
-
]
|
|
5871
|
-
})
|
|
5872
|
-
);
|
|
5873
|
-
}
|
|
5874
|
-
|
|
5875
5972
|
// components/ui/switch.tsx
|
|
5876
5973
|
import { Switch as SwitchPrimitive } from "radix-ui";
|
|
5877
5974
|
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
@@ -6013,7 +6110,7 @@ function TableCaption(_a) {
|
|
|
6013
6110
|
}
|
|
6014
6111
|
|
|
6015
6112
|
// components/ui/tabs.tsx
|
|
6016
|
-
import { cva as
|
|
6113
|
+
import { cva as cva12 } from "class-variance-authority";
|
|
6017
6114
|
import { Tabs as TabsPrimitive } from "radix-ui";
|
|
6018
6115
|
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
6019
6116
|
function Tabs(_a) {
|
|
@@ -6037,7 +6134,7 @@ function Tabs(_a) {
|
|
|
6037
6134
|
}, props)
|
|
6038
6135
|
);
|
|
6039
6136
|
}
|
|
6040
|
-
var tabsListVariants =
|
|
6137
|
+
var tabsListVariants = cva12(
|
|
6041
6138
|
"group/tabs-list inline-flex w-fit items-center justify-center text-on-subtle group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none has-[[data-icon-position=top]]:h-auto",
|
|
6042
6139
|
{
|
|
6043
6140
|
variants: {
|
|
@@ -6122,7 +6219,7 @@ function TabsContent(_a) {
|
|
|
6122
6219
|
|
|
6123
6220
|
// components/ui/ticket-card.tsx
|
|
6124
6221
|
import { ArrowRight as ArrowRight2 } from "lucide-react";
|
|
6125
|
-
import { jsx as jsx56, jsxs as
|
|
6222
|
+
import { jsx as jsx56, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
6126
6223
|
function TicketCard({
|
|
6127
6224
|
icon,
|
|
6128
6225
|
label,
|
|
@@ -6133,7 +6230,7 @@ function TicketCard({
|
|
|
6133
6230
|
stubDisabled = false,
|
|
6134
6231
|
className
|
|
6135
6232
|
}) {
|
|
6136
|
-
return /* @__PURE__ */
|
|
6233
|
+
return /* @__PURE__ */ jsxs27(
|
|
6137
6234
|
"div",
|
|
6138
6235
|
{
|
|
6139
6236
|
"data-slot": "ticket-card",
|
|
@@ -6143,9 +6240,9 @@ function TicketCard({
|
|
|
6143
6240
|
className
|
|
6144
6241
|
),
|
|
6145
6242
|
children: [
|
|
6146
|
-
/* @__PURE__ */
|
|
6243
|
+
/* @__PURE__ */ jsxs27("div", { className: "relative flex min-w-0 flex-1 items-center gap-3 px-4 py-4 sm:gap-4 sm:px-5", children: [
|
|
6147
6244
|
icon && /* @__PURE__ */ jsx56("div", { className: "flex shrink-0 size-11 rounded-full border-2 border-primary items-center justify-center text-primary sm:size-12", children: icon }),
|
|
6148
|
-
/* @__PURE__ */
|
|
6245
|
+
/* @__PURE__ */ jsxs27("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5 overflow-hidden", children: [
|
|
6149
6246
|
label && /* @__PURE__ */ jsx56("span", { className: "text-on-subtle uppercase tracking-widest text-xs font-semibold", children: label }),
|
|
6150
6247
|
value && /* @__PURE__ */ jsx56("span", { className: "truncate text-lg font-bold text-on-prominent sm:text-xl", children: value })
|
|
6151
6248
|
] }),
|
|
@@ -6177,7 +6274,7 @@ function TicketCard({
|
|
|
6177
6274
|
className: cn(
|
|
6178
6275
|
"relative z-[1] inline-flex max-w-[72%] shrink-0 self-stretch sm:max-w-[44%]"
|
|
6179
6276
|
),
|
|
6180
|
-
children: /* @__PURE__ */
|
|
6277
|
+
children: /* @__PURE__ */ jsxs27(
|
|
6181
6278
|
"button",
|
|
6182
6279
|
{
|
|
6183
6280
|
type: "button",
|
|
@@ -6212,10 +6309,10 @@ function TicketCard({
|
|
|
6212
6309
|
}
|
|
6213
6310
|
|
|
6214
6311
|
// components/ui/toggle.tsx
|
|
6215
|
-
import { cva as
|
|
6312
|
+
import { cva as cva13 } from "class-variance-authority";
|
|
6216
6313
|
import { Toggle as TogglePrimitive } from "radix-ui";
|
|
6217
6314
|
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
6218
|
-
var toggleVariants =
|
|
6315
|
+
var toggleVariants = cva13(
|
|
6219
6316
|
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-secondary-hover hover:text-on-prominent focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=on]:bg-secondary-hover data-[state=on]:border-transparent data-[state=on]:text-primary [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
6220
6317
|
{
|
|
6221
6318
|
variants: {
|
|
@@ -6255,10 +6352,10 @@ function Toggle(_a) {
|
|
|
6255
6352
|
}
|
|
6256
6353
|
|
|
6257
6354
|
// components/ui/toggle-group.tsx
|
|
6258
|
-
import * as
|
|
6355
|
+
import * as React12 from "react";
|
|
6259
6356
|
import { ToggleGroup as ToggleGroupPrimitive } from "radix-ui";
|
|
6260
6357
|
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
6261
|
-
var ToggleGroupContext =
|
|
6358
|
+
var ToggleGroupContext = React12.createContext({
|
|
6262
6359
|
size: "default",
|
|
6263
6360
|
variant: "default",
|
|
6264
6361
|
spacing: 0
|
|
@@ -6306,7 +6403,7 @@ function ToggleGroupItem(_a) {
|
|
|
6306
6403
|
"variant",
|
|
6307
6404
|
"size"
|
|
6308
6405
|
]);
|
|
6309
|
-
const context =
|
|
6406
|
+
const context = React12.useContext(ToggleGroupContext);
|
|
6310
6407
|
return /* @__PURE__ */ jsx58(
|
|
6311
6408
|
ToggleGroupPrimitive.Item,
|
|
6312
6409
|
__spreadProps(__spreadValues({
|
|
@@ -6635,6 +6732,7 @@ export {
|
|
|
6635
6732
|
badgeVariants,
|
|
6636
6733
|
buttonVariants,
|
|
6637
6734
|
cn,
|
|
6735
|
+
inputVariants,
|
|
6638
6736
|
linkVariants,
|
|
6639
6737
|
navigationMenuTriggerStyle,
|
|
6640
6738
|
tabsListVariants,
|