@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.cjs
CHANGED
|
@@ -366,6 +366,7 @@ __export(index_exports, {
|
|
|
366
366
|
badgeVariants: () => badgeVariants,
|
|
367
367
|
buttonVariants: () => buttonVariants,
|
|
368
368
|
cn: () => cn,
|
|
369
|
+
inputVariants: () => inputVariants,
|
|
369
370
|
linkVariants: () => linkVariants,
|
|
370
371
|
navigationMenuTriggerStyle: () => navigationMenuTriggerStyle,
|
|
371
372
|
tabsListVariants: () => tabsListVariants,
|
|
@@ -523,7 +524,51 @@ var import_radix_ui3 = require("radix-ui");
|
|
|
523
524
|
// components/ui/button.tsx
|
|
524
525
|
var import_class_variance_authority2 = require("class-variance-authority");
|
|
525
526
|
var import_radix_ui2 = require("radix-ui");
|
|
527
|
+
|
|
528
|
+
// components/ui/spinner.tsx
|
|
526
529
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
530
|
+
var PILL_COUNT = 8;
|
|
531
|
+
function Spinner(_a) {
|
|
532
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
533
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
534
|
+
"div",
|
|
535
|
+
__spreadProps(__spreadValues({
|
|
536
|
+
role: "status",
|
|
537
|
+
"aria-label": "Loading",
|
|
538
|
+
className: cn("relative inline-block size-4 text-current", className)
|
|
539
|
+
}, props), {
|
|
540
|
+
children: [
|
|
541
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("style", { children: `
|
|
542
|
+
@keyframes spinner-fade {
|
|
543
|
+
0% { opacity: 1; }
|
|
544
|
+
100% { opacity: 0.15; }
|
|
545
|
+
}
|
|
546
|
+
` }),
|
|
547
|
+
Array.from({ length: PILL_COUNT }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
548
|
+
"span",
|
|
549
|
+
{
|
|
550
|
+
style: {
|
|
551
|
+
position: "absolute",
|
|
552
|
+
left: "50%",
|
|
553
|
+
top: "0",
|
|
554
|
+
width: "12%",
|
|
555
|
+
height: "30%",
|
|
556
|
+
borderRadius: "9999px",
|
|
557
|
+
backgroundColor: "currentColor",
|
|
558
|
+
transformOrigin: "50% 167%",
|
|
559
|
+
transform: `translateX(-50%) rotate(${i * 45}deg)`,
|
|
560
|
+
animation: `spinner-fade 0.8s linear ${i * 0.8 / PILL_COUNT}s infinite`
|
|
561
|
+
}
|
|
562
|
+
},
|
|
563
|
+
i
|
|
564
|
+
))
|
|
565
|
+
]
|
|
566
|
+
})
|
|
567
|
+
);
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
// components/ui/button.tsx
|
|
571
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
527
572
|
var buttonVariants = (0, import_class_variance_authority2.cva)(
|
|
528
573
|
"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",
|
|
529
574
|
{
|
|
@@ -552,47 +597,68 @@ var buttonVariants = (0, import_class_variance_authority2.cva)(
|
|
|
552
597
|
}
|
|
553
598
|
}
|
|
554
599
|
);
|
|
600
|
+
var spinnerSizeMap = {
|
|
601
|
+
lg: "size-5",
|
|
602
|
+
md: "size-4",
|
|
603
|
+
sm: "size-3.5",
|
|
604
|
+
xs: "size-3",
|
|
605
|
+
icon: "size-4",
|
|
606
|
+
"icon-lg": "size-4",
|
|
607
|
+
"icon-md": "size-4",
|
|
608
|
+
"icon-sm": "size-3.5",
|
|
609
|
+
"icon-xs": "size-3"
|
|
610
|
+
};
|
|
555
611
|
function Button(_a) {
|
|
556
612
|
var _b = _a, {
|
|
557
613
|
className,
|
|
558
614
|
variant = "primary",
|
|
559
615
|
size = "lg",
|
|
560
616
|
asChild = false,
|
|
561
|
-
loading = false
|
|
617
|
+
loading = false,
|
|
618
|
+
children
|
|
562
619
|
} = _b, props = __objRest(_b, [
|
|
563
620
|
"className",
|
|
564
621
|
"variant",
|
|
565
622
|
"size",
|
|
566
623
|
"asChild",
|
|
567
|
-
"loading"
|
|
624
|
+
"loading",
|
|
625
|
+
"children"
|
|
568
626
|
]);
|
|
569
627
|
const Comp = asChild ? import_radix_ui2.Slot.Root : "button";
|
|
570
|
-
return /* @__PURE__ */ (0,
|
|
628
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
571
629
|
Comp,
|
|
572
|
-
__spreadValues({
|
|
630
|
+
__spreadProps(__spreadValues({
|
|
573
631
|
"data-slot": "button",
|
|
574
632
|
"data-variant": variant,
|
|
575
633
|
"data-size": size,
|
|
576
634
|
"data-loading": loading || void 0,
|
|
577
|
-
className: cn(
|
|
635
|
+
className: cn(
|
|
636
|
+
buttonVariants({ variant, size, className }),
|
|
637
|
+
loading && "pointer-events-none opacity-24 relative"
|
|
638
|
+
),
|
|
578
639
|
"aria-busy": loading || void 0
|
|
579
|
-
}, props)
|
|
640
|
+
}, props), {
|
|
641
|
+
children: loading ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
642
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "invisible inline-flex items-center gap-[inherit]", "aria-hidden": true, children }),
|
|
643
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Spinner, { className: spinnerSizeMap[size != null ? size : "lg"] }) })
|
|
644
|
+
] }) : children
|
|
645
|
+
})
|
|
580
646
|
);
|
|
581
647
|
}
|
|
582
648
|
|
|
583
649
|
// components/ui/alert-dialog.tsx
|
|
584
|
-
var
|
|
650
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
585
651
|
function AlertDialog(_a) {
|
|
586
652
|
var props = __objRest(_a, []);
|
|
587
|
-
return /* @__PURE__ */ (0,
|
|
653
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_radix_ui3.AlertDialog.Root, __spreadValues({ "data-slot": "alert-dialog" }, props));
|
|
588
654
|
}
|
|
589
655
|
function AlertDialogTrigger(_a) {
|
|
590
656
|
var props = __objRest(_a, []);
|
|
591
|
-
return /* @__PURE__ */ (0,
|
|
657
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_radix_ui3.AlertDialog.Trigger, __spreadValues({ "data-slot": "alert-dialog-trigger" }, props));
|
|
592
658
|
}
|
|
593
659
|
function AlertDialogPortal(_a) {
|
|
594
660
|
var props = __objRest(_a, []);
|
|
595
|
-
return /* @__PURE__ */ (0,
|
|
661
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_radix_ui3.AlertDialog.Portal, __spreadValues({ "data-slot": "alert-dialog-portal" }, props));
|
|
596
662
|
}
|
|
597
663
|
function AlertDialogOverlay(_a) {
|
|
598
664
|
var _b = _a, {
|
|
@@ -600,7 +666,7 @@ function AlertDialogOverlay(_a) {
|
|
|
600
666
|
} = _b, props = __objRest(_b, [
|
|
601
667
|
"className"
|
|
602
668
|
]);
|
|
603
|
-
return /* @__PURE__ */ (0,
|
|
669
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
604
670
|
import_radix_ui3.AlertDialog.Overlay,
|
|
605
671
|
__spreadValues({
|
|
606
672
|
"data-slot": "alert-dialog-overlay",
|
|
@@ -619,9 +685,9 @@ function AlertDialogContent(_a) {
|
|
|
619
685
|
"className",
|
|
620
686
|
"size"
|
|
621
687
|
]);
|
|
622
|
-
return /* @__PURE__ */ (0,
|
|
623
|
-
/* @__PURE__ */ (0,
|
|
624
|
-
/* @__PURE__ */ (0,
|
|
688
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(AlertDialogPortal, { children: [
|
|
689
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(AlertDialogOverlay, {}),
|
|
690
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
625
691
|
import_radix_ui3.AlertDialog.Content,
|
|
626
692
|
__spreadValues({
|
|
627
693
|
"data-slot": "alert-dialog-content",
|
|
@@ -640,7 +706,7 @@ function AlertDialogHeader(_a) {
|
|
|
640
706
|
} = _b, props = __objRest(_b, [
|
|
641
707
|
"className"
|
|
642
708
|
]);
|
|
643
|
-
return /* @__PURE__ */ (0,
|
|
709
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
644
710
|
"div",
|
|
645
711
|
__spreadValues({
|
|
646
712
|
"data-slot": "alert-dialog-header",
|
|
@@ -657,7 +723,7 @@ function AlertDialogFooter(_a) {
|
|
|
657
723
|
} = _b, props = __objRest(_b, [
|
|
658
724
|
"className"
|
|
659
725
|
]);
|
|
660
|
-
return /* @__PURE__ */ (0,
|
|
726
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
661
727
|
"div",
|
|
662
728
|
__spreadValues({
|
|
663
729
|
"data-slot": "alert-dialog-footer",
|
|
@@ -674,7 +740,7 @@ function AlertDialogTitle(_a) {
|
|
|
674
740
|
} = _b, props = __objRest(_b, [
|
|
675
741
|
"className"
|
|
676
742
|
]);
|
|
677
|
-
return /* @__PURE__ */ (0,
|
|
743
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
678
744
|
import_radix_ui3.AlertDialog.Title,
|
|
679
745
|
__spreadValues({
|
|
680
746
|
"data-slot": "alert-dialog-title",
|
|
@@ -691,7 +757,7 @@ function AlertDialogDescription(_a) {
|
|
|
691
757
|
} = _b, props = __objRest(_b, [
|
|
692
758
|
"className"
|
|
693
759
|
]);
|
|
694
|
-
return /* @__PURE__ */ (0,
|
|
760
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
695
761
|
import_radix_ui3.AlertDialog.Description,
|
|
696
762
|
__spreadValues({
|
|
697
763
|
"data-slot": "alert-dialog-description",
|
|
@@ -705,7 +771,7 @@ function AlertDialogMedia(_a) {
|
|
|
705
771
|
} = _b, props = __objRest(_b, [
|
|
706
772
|
"className"
|
|
707
773
|
]);
|
|
708
|
-
return /* @__PURE__ */ (0,
|
|
774
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
709
775
|
"div",
|
|
710
776
|
__spreadValues({
|
|
711
777
|
"data-slot": "alert-dialog-media",
|
|
@@ -726,7 +792,7 @@ function AlertDialogAction(_a) {
|
|
|
726
792
|
"variant",
|
|
727
793
|
"size"
|
|
728
794
|
]);
|
|
729
|
-
return /* @__PURE__ */ (0,
|
|
795
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Button, { variant, size, asChild: true, className: cn("group-data-[size=sm]/alert-dialog-content:w-full", className), children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
730
796
|
import_radix_ui3.AlertDialog.Action,
|
|
731
797
|
__spreadValues({
|
|
732
798
|
"data-slot": "alert-dialog-action"
|
|
@@ -743,7 +809,7 @@ function AlertDialogCancel(_a) {
|
|
|
743
809
|
"variant",
|
|
744
810
|
"size"
|
|
745
811
|
]);
|
|
746
|
-
return /* @__PURE__ */ (0,
|
|
812
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Button, { variant, size, asChild: true, className: cn("group-data-[size=sm]/alert-dialog-content:w-full", className), children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
747
813
|
import_radix_ui3.AlertDialog.Cancel,
|
|
748
814
|
__spreadValues({
|
|
749
815
|
"data-slot": "alert-dialog-cancel"
|
|
@@ -753,15 +819,15 @@ function AlertDialogCancel(_a) {
|
|
|
753
819
|
|
|
754
820
|
// components/ui/aspect-ratio.tsx
|
|
755
821
|
var import_radix_ui4 = require("radix-ui");
|
|
756
|
-
var
|
|
822
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
757
823
|
function AspectRatio(_a) {
|
|
758
824
|
var props = __objRest(_a, []);
|
|
759
|
-
return /* @__PURE__ */ (0,
|
|
825
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_radix_ui4.AspectRatio.Root, __spreadValues({ "data-slot": "aspect-ratio" }, props));
|
|
760
826
|
}
|
|
761
827
|
|
|
762
828
|
// components/ui/avatar.tsx
|
|
763
829
|
var import_radix_ui5 = require("radix-ui");
|
|
764
|
-
var
|
|
830
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
765
831
|
function Avatar(_a) {
|
|
766
832
|
var _b = _a, {
|
|
767
833
|
className,
|
|
@@ -770,7 +836,7 @@ function Avatar(_a) {
|
|
|
770
836
|
"className",
|
|
771
837
|
"size"
|
|
772
838
|
]);
|
|
773
|
-
return /* @__PURE__ */ (0,
|
|
839
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
774
840
|
import_radix_ui5.Avatar.Root,
|
|
775
841
|
__spreadValues({
|
|
776
842
|
"data-slot": "avatar",
|
|
@@ -788,7 +854,7 @@ function AvatarImage(_a) {
|
|
|
788
854
|
} = _b, props = __objRest(_b, [
|
|
789
855
|
"className"
|
|
790
856
|
]);
|
|
791
|
-
return /* @__PURE__ */ (0,
|
|
857
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
792
858
|
import_radix_ui5.Avatar.Image,
|
|
793
859
|
__spreadValues({
|
|
794
860
|
"data-slot": "avatar-image",
|
|
@@ -802,7 +868,7 @@ function AvatarFallback(_a) {
|
|
|
802
868
|
} = _b, props = __objRest(_b, [
|
|
803
869
|
"className"
|
|
804
870
|
]);
|
|
805
|
-
return /* @__PURE__ */ (0,
|
|
871
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
806
872
|
import_radix_ui5.Avatar.Fallback,
|
|
807
873
|
__spreadValues({
|
|
808
874
|
"data-slot": "avatar-fallback",
|
|
@@ -815,7 +881,7 @@ function AvatarFallback(_a) {
|
|
|
815
881
|
}
|
|
816
882
|
function AvatarBadge(_a) {
|
|
817
883
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
818
|
-
return /* @__PURE__ */ (0,
|
|
884
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
819
885
|
"span",
|
|
820
886
|
__spreadValues({
|
|
821
887
|
"data-slot": "avatar-badge",
|
|
@@ -832,7 +898,7 @@ function AvatarBadge(_a) {
|
|
|
832
898
|
}
|
|
833
899
|
function AvatarGroup(_a) {
|
|
834
900
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
835
|
-
return /* @__PURE__ */ (0,
|
|
901
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
836
902
|
"div",
|
|
837
903
|
__spreadValues({
|
|
838
904
|
"data-slot": "avatar-group",
|
|
@@ -849,7 +915,7 @@ function AvatarGroupCount(_a) {
|
|
|
849
915
|
} = _b, props = __objRest(_b, [
|
|
850
916
|
"className"
|
|
851
917
|
]);
|
|
852
|
-
return /* @__PURE__ */ (0,
|
|
918
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
853
919
|
"div",
|
|
854
920
|
__spreadValues({
|
|
855
921
|
"data-slot": "avatar-group-count",
|
|
@@ -864,7 +930,7 @@ function AvatarGroupCount(_a) {
|
|
|
864
930
|
// components/ui/badge.tsx
|
|
865
931
|
var import_class_variance_authority3 = require("class-variance-authority");
|
|
866
932
|
var import_radix_ui6 = require("radix-ui");
|
|
867
|
-
var
|
|
933
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
868
934
|
var badgeVariants = (0, import_class_variance_authority3.cva)(
|
|
869
935
|
"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",
|
|
870
936
|
{
|
|
@@ -911,7 +977,7 @@ function Badge(_a) {
|
|
|
911
977
|
"asChild"
|
|
912
978
|
]);
|
|
913
979
|
const Comp = asChild ? import_radix_ui6.Slot.Root : "span";
|
|
914
|
-
return /* @__PURE__ */ (0,
|
|
980
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
915
981
|
Comp,
|
|
916
982
|
__spreadValues({
|
|
917
983
|
"data-slot": "badge",
|
|
@@ -924,14 +990,14 @@ function Badge(_a) {
|
|
|
924
990
|
// components/ui/breadcrumb.tsx
|
|
925
991
|
var import_lucide_react2 = require("lucide-react");
|
|
926
992
|
var import_radix_ui7 = require("radix-ui");
|
|
927
|
-
var
|
|
993
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
928
994
|
function Breadcrumb(_a) {
|
|
929
995
|
var props = __objRest(_a, []);
|
|
930
|
-
return /* @__PURE__ */ (0,
|
|
996
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("nav", __spreadValues({ "aria-label": "breadcrumb", "data-slot": "breadcrumb" }, props));
|
|
931
997
|
}
|
|
932
998
|
function BreadcrumbList(_a) {
|
|
933
999
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
934
|
-
return /* @__PURE__ */ (0,
|
|
1000
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
935
1001
|
"ol",
|
|
936
1002
|
__spreadValues({
|
|
937
1003
|
"data-slot": "breadcrumb-list",
|
|
@@ -944,7 +1010,7 @@ function BreadcrumbList(_a) {
|
|
|
944
1010
|
}
|
|
945
1011
|
function BreadcrumbItem(_a) {
|
|
946
1012
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
947
|
-
return /* @__PURE__ */ (0,
|
|
1013
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
948
1014
|
"li",
|
|
949
1015
|
__spreadValues({
|
|
950
1016
|
"data-slot": "breadcrumb-item",
|
|
@@ -961,7 +1027,7 @@ function BreadcrumbLink(_a) {
|
|
|
961
1027
|
"className"
|
|
962
1028
|
]);
|
|
963
1029
|
const Comp = asChild ? import_radix_ui7.Slot.Root : "a";
|
|
964
|
-
return /* @__PURE__ */ (0,
|
|
1030
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
965
1031
|
Comp,
|
|
966
1032
|
__spreadValues({
|
|
967
1033
|
"data-slot": "breadcrumb-link",
|
|
@@ -971,7 +1037,7 @@ function BreadcrumbLink(_a) {
|
|
|
971
1037
|
}
|
|
972
1038
|
function BreadcrumbPage(_a) {
|
|
973
1039
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
974
|
-
return /* @__PURE__ */ (0,
|
|
1040
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
975
1041
|
"span",
|
|
976
1042
|
__spreadValues({
|
|
977
1043
|
"data-slot": "breadcrumb-page",
|
|
@@ -990,7 +1056,7 @@ function BreadcrumbSeparator(_a) {
|
|
|
990
1056
|
"children",
|
|
991
1057
|
"className"
|
|
992
1058
|
]);
|
|
993
|
-
return /* @__PURE__ */ (0,
|
|
1059
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
994
1060
|
"li",
|
|
995
1061
|
__spreadProps(__spreadValues({
|
|
996
1062
|
"data-slot": "breadcrumb-separator",
|
|
@@ -998,7 +1064,7 @@ function BreadcrumbSeparator(_a) {
|
|
|
998
1064
|
"aria-hidden": "true",
|
|
999
1065
|
className: cn("[&>svg]:size-3.5", className)
|
|
1000
1066
|
}, props), {
|
|
1001
|
-
children: children != null ? children : /* @__PURE__ */ (0,
|
|
1067
|
+
children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react2.ChevronRight, {})
|
|
1002
1068
|
})
|
|
1003
1069
|
);
|
|
1004
1070
|
}
|
|
@@ -1008,7 +1074,7 @@ function BreadcrumbEllipsis(_a) {
|
|
|
1008
1074
|
} = _b, props = __objRest(_b, [
|
|
1009
1075
|
"className"
|
|
1010
1076
|
]);
|
|
1011
|
-
return /* @__PURE__ */ (0,
|
|
1077
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
1012
1078
|
"span",
|
|
1013
1079
|
__spreadProps(__spreadValues({
|
|
1014
1080
|
"data-slot": "breadcrumb-ellipsis",
|
|
@@ -1017,8 +1083,8 @@ function BreadcrumbEllipsis(_a) {
|
|
|
1017
1083
|
className: cn("flex size-9 items-center justify-center", className)
|
|
1018
1084
|
}, props), {
|
|
1019
1085
|
children: [
|
|
1020
|
-
/* @__PURE__ */ (0,
|
|
1021
|
-
/* @__PURE__ */ (0,
|
|
1086
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react2.MoreHorizontal, { className: "size-4" }),
|
|
1087
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "sr-only", children: "More" })
|
|
1022
1088
|
]
|
|
1023
1089
|
})
|
|
1024
1090
|
);
|
|
@@ -1028,7 +1094,7 @@ function BreadcrumbEllipsis(_a) {
|
|
|
1028
1094
|
var React = __toESM(require("react"), 1);
|
|
1029
1095
|
var import_lucide_react3 = require("lucide-react");
|
|
1030
1096
|
var import_react_day_picker = require("react-day-picker");
|
|
1031
|
-
var
|
|
1097
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
1032
1098
|
function Calendar(_a) {
|
|
1033
1099
|
var _b = _a, {
|
|
1034
1100
|
className,
|
|
@@ -1048,7 +1114,7 @@ function Calendar(_a) {
|
|
|
1048
1114
|
"components"
|
|
1049
1115
|
]);
|
|
1050
1116
|
const defaultClassNames = (0, import_react_day_picker.getDefaultClassNames)();
|
|
1051
|
-
return /* @__PURE__ */ (0,
|
|
1117
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1052
1118
|
import_react_day_picker.DayPicker,
|
|
1053
1119
|
__spreadValues({
|
|
1054
1120
|
showOutsideDays,
|
|
@@ -1147,7 +1213,7 @@ function Calendar(_a) {
|
|
|
1147
1213
|
components: __spreadValues({
|
|
1148
1214
|
Root: (_a2) => {
|
|
1149
1215
|
var _b2 = _a2, { className: className2, rootRef } = _b2, props2 = __objRest(_b2, ["className", "rootRef"]);
|
|
1150
|
-
return /* @__PURE__ */ (0,
|
|
1216
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1151
1217
|
"div",
|
|
1152
1218
|
__spreadValues({
|
|
1153
1219
|
"data-slot": "calendar",
|
|
@@ -1159,22 +1225,22 @@ function Calendar(_a) {
|
|
|
1159
1225
|
Chevron: (_c) => {
|
|
1160
1226
|
var _d = _c, { className: className2, orientation } = _d, props2 = __objRest(_d, ["className", "orientation"]);
|
|
1161
1227
|
if (orientation === "left") {
|
|
1162
|
-
return /* @__PURE__ */ (0,
|
|
1228
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react3.ChevronLeftIcon, __spreadValues({ className: cn("size-4", className2) }, props2));
|
|
1163
1229
|
}
|
|
1164
1230
|
if (orientation === "right") {
|
|
1165
|
-
return /* @__PURE__ */ (0,
|
|
1231
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1166
1232
|
import_lucide_react3.ChevronRightIcon,
|
|
1167
1233
|
__spreadValues({
|
|
1168
1234
|
className: cn("size-4", className2)
|
|
1169
1235
|
}, props2)
|
|
1170
1236
|
);
|
|
1171
1237
|
}
|
|
1172
|
-
return /* @__PURE__ */ (0,
|
|
1238
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react3.ChevronDownIcon, __spreadValues({ className: cn("size-4", className2) }, props2));
|
|
1173
1239
|
},
|
|
1174
1240
|
DayButton: CalendarDayButton,
|
|
1175
1241
|
WeekNumber: (_e) => {
|
|
1176
1242
|
var _f = _e, { children } = _f, props2 = __objRest(_f, ["children"]);
|
|
1177
|
-
return /* @__PURE__ */ (0,
|
|
1243
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("td", __spreadProps(__spreadValues({}, props2), { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children }) }));
|
|
1178
1244
|
}
|
|
1179
1245
|
}, components)
|
|
1180
1246
|
}, props)
|
|
@@ -1196,7 +1262,7 @@ function CalendarDayButton(_a) {
|
|
|
1196
1262
|
var _a2;
|
|
1197
1263
|
if (modifiers.focused) (_a2 = ref.current) == null ? void 0 : _a2.focus();
|
|
1198
1264
|
}, [modifiers.focused]);
|
|
1199
|
-
return /* @__PURE__ */ (0,
|
|
1265
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1200
1266
|
Button,
|
|
1201
1267
|
__spreadValues({
|
|
1202
1268
|
ref,
|
|
@@ -1218,10 +1284,10 @@ function CalendarDayButton(_a) {
|
|
|
1218
1284
|
}
|
|
1219
1285
|
|
|
1220
1286
|
// components/ui/card.tsx
|
|
1221
|
-
var
|
|
1287
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
1222
1288
|
function Card(_a) {
|
|
1223
1289
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1224
|
-
return /* @__PURE__ */ (0,
|
|
1290
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1225
1291
|
"div",
|
|
1226
1292
|
__spreadValues({
|
|
1227
1293
|
"data-slot": "card",
|
|
@@ -1234,7 +1300,7 @@ function Card(_a) {
|
|
|
1234
1300
|
}
|
|
1235
1301
|
function CardHeader(_a) {
|
|
1236
1302
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1237
|
-
return /* @__PURE__ */ (0,
|
|
1303
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1238
1304
|
"div",
|
|
1239
1305
|
__spreadValues({
|
|
1240
1306
|
"data-slot": "card-header",
|
|
@@ -1247,7 +1313,7 @@ function CardHeader(_a) {
|
|
|
1247
1313
|
}
|
|
1248
1314
|
function CardTitle(_a) {
|
|
1249
1315
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1250
|
-
return /* @__PURE__ */ (0,
|
|
1316
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1251
1317
|
"div",
|
|
1252
1318
|
__spreadValues({
|
|
1253
1319
|
"data-slot": "card-title",
|
|
@@ -1257,7 +1323,7 @@ function CardTitle(_a) {
|
|
|
1257
1323
|
}
|
|
1258
1324
|
function CardDescription(_a) {
|
|
1259
1325
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1260
|
-
return /* @__PURE__ */ (0,
|
|
1326
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1261
1327
|
"div",
|
|
1262
1328
|
__spreadValues({
|
|
1263
1329
|
"data-slot": "card-description",
|
|
@@ -1267,7 +1333,7 @@ function CardDescription(_a) {
|
|
|
1267
1333
|
}
|
|
1268
1334
|
function CardAction(_a) {
|
|
1269
1335
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1270
|
-
return /* @__PURE__ */ (0,
|
|
1336
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1271
1337
|
"div",
|
|
1272
1338
|
__spreadValues({
|
|
1273
1339
|
"data-slot": "card-action",
|
|
@@ -1280,7 +1346,7 @@ function CardAction(_a) {
|
|
|
1280
1346
|
}
|
|
1281
1347
|
function CardContent(_a) {
|
|
1282
1348
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1283
|
-
return /* @__PURE__ */ (0,
|
|
1349
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1284
1350
|
"div",
|
|
1285
1351
|
__spreadValues({
|
|
1286
1352
|
"data-slot": "card-content",
|
|
@@ -1290,7 +1356,7 @@ function CardContent(_a) {
|
|
|
1290
1356
|
}
|
|
1291
1357
|
function CardFooter(_a) {
|
|
1292
1358
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1293
|
-
return /* @__PURE__ */ (0,
|
|
1359
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1294
1360
|
"div",
|
|
1295
1361
|
__spreadValues({
|
|
1296
1362
|
"data-slot": "card-footer",
|
|
@@ -1303,7 +1369,7 @@ function CardFooter(_a) {
|
|
|
1303
1369
|
var React2 = __toESM(require("react"), 1);
|
|
1304
1370
|
var import_embla_carousel_react = __toESM(require("embla-carousel-react"), 1);
|
|
1305
1371
|
var import_lucide_react4 = require("lucide-react");
|
|
1306
|
-
var
|
|
1372
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
1307
1373
|
var CarouselContext = React2.createContext(null);
|
|
1308
1374
|
function useCarousel() {
|
|
1309
1375
|
const context = React2.useContext(CarouselContext);
|
|
@@ -1372,7 +1438,7 @@ function Carousel(_a) {
|
|
|
1372
1438
|
api == null ? void 0 : api.off("select", onSelect);
|
|
1373
1439
|
};
|
|
1374
1440
|
}, [api, onSelect]);
|
|
1375
|
-
return /* @__PURE__ */ (0,
|
|
1441
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1376
1442
|
CarouselContext.Provider,
|
|
1377
1443
|
{
|
|
1378
1444
|
value: {
|
|
@@ -1385,7 +1451,7 @@ function Carousel(_a) {
|
|
|
1385
1451
|
canScrollPrev,
|
|
1386
1452
|
canScrollNext
|
|
1387
1453
|
},
|
|
1388
|
-
children: /* @__PURE__ */ (0,
|
|
1454
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1389
1455
|
"div",
|
|
1390
1456
|
__spreadProps(__spreadValues({
|
|
1391
1457
|
onKeyDownCapture: handleKeyDown,
|
|
@@ -1403,13 +1469,13 @@ function Carousel(_a) {
|
|
|
1403
1469
|
function CarouselContent(_a) {
|
|
1404
1470
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1405
1471
|
const { carouselRef, orientation } = useCarousel();
|
|
1406
|
-
return /* @__PURE__ */ (0,
|
|
1472
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1407
1473
|
"div",
|
|
1408
1474
|
{
|
|
1409
1475
|
ref: carouselRef,
|
|
1410
1476
|
className: "overflow-hidden",
|
|
1411
1477
|
"data-slot": "carousel-content",
|
|
1412
|
-
children: /* @__PURE__ */ (0,
|
|
1478
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1413
1479
|
"div",
|
|
1414
1480
|
__spreadValues({
|
|
1415
1481
|
className: cn(
|
|
@@ -1425,7 +1491,7 @@ function CarouselContent(_a) {
|
|
|
1425
1491
|
function CarouselItem(_a) {
|
|
1426
1492
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1427
1493
|
const { orientation } = useCarousel();
|
|
1428
|
-
return /* @__PURE__ */ (0,
|
|
1494
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1429
1495
|
"div",
|
|
1430
1496
|
__spreadValues({
|
|
1431
1497
|
role: "group",
|
|
@@ -1450,7 +1516,7 @@ function CarouselPrevious(_a) {
|
|
|
1450
1516
|
"size"
|
|
1451
1517
|
]);
|
|
1452
1518
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
1453
|
-
return /* @__PURE__ */ (0,
|
|
1519
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
1454
1520
|
Button,
|
|
1455
1521
|
__spreadProps(__spreadValues({
|
|
1456
1522
|
"data-slot": "carousel-previous",
|
|
@@ -1465,8 +1531,8 @@ function CarouselPrevious(_a) {
|
|
|
1465
1531
|
onClick: scrollPrev
|
|
1466
1532
|
}, props), {
|
|
1467
1533
|
children: [
|
|
1468
|
-
/* @__PURE__ */ (0,
|
|
1469
|
-
/* @__PURE__ */ (0,
|
|
1534
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react4.ArrowLeft, {}),
|
|
1535
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "sr-only", children: "Previous slide" })
|
|
1470
1536
|
]
|
|
1471
1537
|
})
|
|
1472
1538
|
);
|
|
@@ -1482,7 +1548,7 @@ function CarouselNext(_a) {
|
|
|
1482
1548
|
"size"
|
|
1483
1549
|
]);
|
|
1484
1550
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
1485
|
-
return /* @__PURE__ */ (0,
|
|
1551
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
1486
1552
|
Button,
|
|
1487
1553
|
__spreadProps(__spreadValues({
|
|
1488
1554
|
"data-slot": "carousel-next",
|
|
@@ -1497,8 +1563,8 @@ function CarouselNext(_a) {
|
|
|
1497
1563
|
onClick: scrollNext
|
|
1498
1564
|
}, props), {
|
|
1499
1565
|
children: [
|
|
1500
|
-
/* @__PURE__ */ (0,
|
|
1501
|
-
/* @__PURE__ */ (0,
|
|
1566
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react4.ArrowRight, {}),
|
|
1567
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "sr-only", children: "Next slide" })
|
|
1502
1568
|
]
|
|
1503
1569
|
})
|
|
1504
1570
|
);
|
|
@@ -1507,7 +1573,7 @@ function CarouselNext(_a) {
|
|
|
1507
1573
|
// components/ui/chart.tsx
|
|
1508
1574
|
var React3 = __toESM(require("react"), 1);
|
|
1509
1575
|
var RechartsPrimitive = __toESM(require("recharts"), 1);
|
|
1510
|
-
var
|
|
1576
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
1511
1577
|
var THEMES = { light: "" };
|
|
1512
1578
|
var ChartContext = React3.createContext(null);
|
|
1513
1579
|
function useChart() {
|
|
@@ -1531,7 +1597,7 @@ function ChartContainer(_a) {
|
|
|
1531
1597
|
]);
|
|
1532
1598
|
const uniqueId = React3.useId();
|
|
1533
1599
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
1534
|
-
return /* @__PURE__ */ (0,
|
|
1600
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
1535
1601
|
"div",
|
|
1536
1602
|
__spreadProps(__spreadValues({
|
|
1537
1603
|
"data-slot": "chart",
|
|
@@ -1542,8 +1608,8 @@ function ChartContainer(_a) {
|
|
|
1542
1608
|
)
|
|
1543
1609
|
}, props), {
|
|
1544
1610
|
children: [
|
|
1545
|
-
/* @__PURE__ */ (0,
|
|
1546
|
-
/* @__PURE__ */ (0,
|
|
1611
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ChartStyle, { id: chartId, config }),
|
|
1612
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(RechartsPrimitive.ResponsiveContainer, { children })
|
|
1547
1613
|
]
|
|
1548
1614
|
})
|
|
1549
1615
|
) });
|
|
@@ -1555,7 +1621,7 @@ var ChartStyle = ({ id, config }) => {
|
|
|
1555
1621
|
if (!colorConfig.length) {
|
|
1556
1622
|
return null;
|
|
1557
1623
|
}
|
|
1558
|
-
return /* @__PURE__ */ (0,
|
|
1624
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1559
1625
|
"style",
|
|
1560
1626
|
{
|
|
1561
1627
|
dangerouslySetInnerHTML: {
|
|
@@ -1601,12 +1667,12 @@ function ChartTooltipContent({
|
|
|
1601
1667
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1602
1668
|
const value = !labelKey && typeof label === "string" ? ((_a = config[label]) == null ? void 0 : _a.label) || label : itemConfig == null ? void 0 : itemConfig.label;
|
|
1603
1669
|
if (labelFormatter) {
|
|
1604
|
-
return /* @__PURE__ */ (0,
|
|
1670
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: cn("font-medium", labelClassName), children: labelFormatter(value, payload) });
|
|
1605
1671
|
}
|
|
1606
1672
|
if (!value) {
|
|
1607
1673
|
return null;
|
|
1608
1674
|
}
|
|
1609
|
-
return /* @__PURE__ */ (0,
|
|
1675
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: cn("font-medium", labelClassName), children: value });
|
|
1610
1676
|
}, [
|
|
1611
1677
|
label,
|
|
1612
1678
|
labelFormatter,
|
|
@@ -1620,7 +1686,7 @@ function ChartTooltipContent({
|
|
|
1620
1686
|
return null;
|
|
1621
1687
|
}
|
|
1622
1688
|
const nestLabel = payload.length === 1 && indicator !== "dot";
|
|
1623
|
-
return /* @__PURE__ */ (0,
|
|
1689
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
1624
1690
|
"div",
|
|
1625
1691
|
{
|
|
1626
1692
|
className: cn(
|
|
@@ -1629,19 +1695,19 @@ function ChartTooltipContent({
|
|
|
1629
1695
|
),
|
|
1630
1696
|
children: [
|
|
1631
1697
|
!nestLabel ? tooltipLabel : null,
|
|
1632
|
-
/* @__PURE__ */ (0,
|
|
1698
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "grid gap-1.5", children: payload.filter((item) => item.type !== "none").map((item, index) => {
|
|
1633
1699
|
const key = `${nameKey || item.name || item.dataKey || "value"}`;
|
|
1634
1700
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1635
1701
|
const indicatorColor = color || item.payload.fill || item.color;
|
|
1636
|
-
return /* @__PURE__ */ (0,
|
|
1702
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1637
1703
|
"div",
|
|
1638
1704
|
{
|
|
1639
1705
|
className: cn(
|
|
1640
1706
|
"flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-on-subtle",
|
|
1641
1707
|
indicator === "dot" && "items-center"
|
|
1642
1708
|
),
|
|
1643
|
-
children: formatter && (item == null ? void 0 : item.value) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ (0,
|
|
1644
|
-
(itemConfig == null ? void 0 : itemConfig.icon) ? /* @__PURE__ */ (0,
|
|
1709
|
+
children: formatter && (item == null ? void 0 : item.value) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, { children: [
|
|
1710
|
+
(itemConfig == null ? void 0 : itemConfig.icon) ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1645
1711
|
"div",
|
|
1646
1712
|
{
|
|
1647
1713
|
className: cn(
|
|
@@ -1659,7 +1725,7 @@ function ChartTooltipContent({
|
|
|
1659
1725
|
}
|
|
1660
1726
|
}
|
|
1661
1727
|
),
|
|
1662
|
-
/* @__PURE__ */ (0,
|
|
1728
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
1663
1729
|
"div",
|
|
1664
1730
|
{
|
|
1665
1731
|
className: cn(
|
|
@@ -1667,11 +1733,11 @@ function ChartTooltipContent({
|
|
|
1667
1733
|
nestLabel ? "items-end" : "items-center"
|
|
1668
1734
|
),
|
|
1669
1735
|
children: [
|
|
1670
|
-
/* @__PURE__ */ (0,
|
|
1736
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "grid gap-1.5", children: [
|
|
1671
1737
|
nestLabel ? tooltipLabel : null,
|
|
1672
|
-
/* @__PURE__ */ (0,
|
|
1738
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "text-on-subtle", children: (itemConfig == null ? void 0 : itemConfig.label) || item.name })
|
|
1673
1739
|
] }),
|
|
1674
|
-
item.value && /* @__PURE__ */ (0,
|
|
1740
|
+
item.value && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "font-mono font-medium text-on-prominent tabular-nums", children: item.value.toLocaleString() })
|
|
1675
1741
|
]
|
|
1676
1742
|
}
|
|
1677
1743
|
)
|
|
@@ -1696,7 +1762,7 @@ function ChartLegendContent({
|
|
|
1696
1762
|
if (!(payload == null ? void 0 : payload.length)) {
|
|
1697
1763
|
return null;
|
|
1698
1764
|
}
|
|
1699
|
-
return /* @__PURE__ */ (0,
|
|
1765
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1700
1766
|
"div",
|
|
1701
1767
|
{
|
|
1702
1768
|
className: cn(
|
|
@@ -1707,14 +1773,14 @@ function ChartLegendContent({
|
|
|
1707
1773
|
children: payload.filter((item) => item.type !== "none").map((item) => {
|
|
1708
1774
|
const key = `${nameKey || item.dataKey || "value"}`;
|
|
1709
1775
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1710
|
-
return /* @__PURE__ */ (0,
|
|
1776
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
1711
1777
|
"div",
|
|
1712
1778
|
{
|
|
1713
1779
|
className: cn(
|
|
1714
1780
|
"flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-on-subtle"
|
|
1715
1781
|
),
|
|
1716
1782
|
children: [
|
|
1717
|
-
(itemConfig == null ? void 0 : itemConfig.icon) && !hideIcon ? /* @__PURE__ */ (0,
|
|
1783
|
+
(itemConfig == null ? void 0 : itemConfig.icon) && !hideIcon ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(itemConfig.icon, {}) : /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1718
1784
|
"div",
|
|
1719
1785
|
{
|
|
1720
1786
|
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
@@ -1749,14 +1815,14 @@ function getPayloadConfigFromPayload(config, payload, key) {
|
|
|
1749
1815
|
// components/ui/checkbox.tsx
|
|
1750
1816
|
var import_lucide_react5 = require("lucide-react");
|
|
1751
1817
|
var import_radix_ui8 = require("radix-ui");
|
|
1752
|
-
var
|
|
1818
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1753
1819
|
function Checkbox(_a) {
|
|
1754
1820
|
var _b = _a, {
|
|
1755
1821
|
className
|
|
1756
1822
|
} = _b, props = __objRest(_b, [
|
|
1757
1823
|
"className"
|
|
1758
1824
|
]);
|
|
1759
|
-
return /* @__PURE__ */ (0,
|
|
1825
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1760
1826
|
import_radix_ui8.Checkbox.Root,
|
|
1761
1827
|
__spreadProps(__spreadValues({
|
|
1762
1828
|
"data-slot": "checkbox",
|
|
@@ -1765,12 +1831,12 @@ function Checkbox(_a) {
|
|
|
1765
1831
|
className
|
|
1766
1832
|
)
|
|
1767
1833
|
}, props), {
|
|
1768
|
-
children: /* @__PURE__ */ (0,
|
|
1834
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1769
1835
|
import_radix_ui8.Checkbox.Indicator,
|
|
1770
1836
|
{
|
|
1771
1837
|
"data-slot": "checkbox-indicator",
|
|
1772
1838
|
className: "grid place-content-center text-current transition-none",
|
|
1773
|
-
children: /* @__PURE__ */ (0,
|
|
1839
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react5.CheckIcon, { className: "size-3.5" })
|
|
1774
1840
|
}
|
|
1775
1841
|
)
|
|
1776
1842
|
})
|
|
@@ -1779,14 +1845,14 @@ function Checkbox(_a) {
|
|
|
1779
1845
|
|
|
1780
1846
|
// components/ui/collapsible.tsx
|
|
1781
1847
|
var import_radix_ui9 = require("radix-ui");
|
|
1782
|
-
var
|
|
1848
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1783
1849
|
function Collapsible(_a) {
|
|
1784
1850
|
var props = __objRest(_a, []);
|
|
1785
|
-
return /* @__PURE__ */ (0,
|
|
1851
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_radix_ui9.Collapsible.Root, __spreadValues({ "data-slot": "collapsible" }, props));
|
|
1786
1852
|
}
|
|
1787
1853
|
function CollapsibleTrigger(_a) {
|
|
1788
1854
|
var props = __objRest(_a, []);
|
|
1789
|
-
return /* @__PURE__ */ (0,
|
|
1855
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1790
1856
|
import_radix_ui9.Collapsible.CollapsibleTrigger,
|
|
1791
1857
|
__spreadValues({
|
|
1792
1858
|
"data-slot": "collapsible-trigger"
|
|
@@ -1795,7 +1861,7 @@ function CollapsibleTrigger(_a) {
|
|
|
1795
1861
|
}
|
|
1796
1862
|
function CollapsibleContent(_a) {
|
|
1797
1863
|
var props = __objRest(_a, []);
|
|
1798
|
-
return /* @__PURE__ */ (0,
|
|
1864
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1799
1865
|
import_radix_ui9.Collapsible.CollapsibleContent,
|
|
1800
1866
|
__spreadValues({
|
|
1801
1867
|
"data-slot": "collapsible-content"
|
|
@@ -1804,36 +1870,66 @@ function CollapsibleContent(_a) {
|
|
|
1804
1870
|
}
|
|
1805
1871
|
|
|
1806
1872
|
// components/ui/combobox.tsx
|
|
1807
|
-
var
|
|
1873
|
+
var React5 = __toESM(require("react"), 1);
|
|
1808
1874
|
var import_react = require("@base-ui/react");
|
|
1809
1875
|
var import_lucide_react6 = require("lucide-react");
|
|
1810
1876
|
|
|
1811
1877
|
// components/ui/input-group.tsx
|
|
1812
|
-
var
|
|
1878
|
+
var React4 = __toESM(require("react"), 1);
|
|
1879
|
+
var import_class_variance_authority5 = require("class-variance-authority");
|
|
1813
1880
|
|
|
1814
1881
|
// components/ui/input.tsx
|
|
1815
|
-
var
|
|
1882
|
+
var import_class_variance_authority4 = require("class-variance-authority");
|
|
1883
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1884
|
+
var inputVariants = (0, import_class_variance_authority4.cva)(
|
|
1885
|
+
[
|
|
1886
|
+
"w-full min-w-0 rounded-sm border border-border-subtle bg-white/5",
|
|
1887
|
+
"text-on-prominent font-body shadow-xs transition-[color,box-shadow] outline-none",
|
|
1888
|
+
"selection:bg-primary selection:text-on-prominent-static-inverse",
|
|
1889
|
+
"file:inline-flex file:border-0 file:bg-transparent file:font-medium file:text-on-prominent",
|
|
1890
|
+
"placeholder:text-on-subtle",
|
|
1891
|
+
"disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
1892
|
+
"focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/[0.08]"
|
|
1893
|
+
].join(" "),
|
|
1894
|
+
{
|
|
1895
|
+
variants: {
|
|
1896
|
+
size: {
|
|
1897
|
+
sm: "h-8 px-3 py-1 text-xs file:h-6 file:text-xs",
|
|
1898
|
+
md: "h-10 px-3 py-1 text-sm file:h-7 file:text-sm",
|
|
1899
|
+
lg: "h-12 px-4 py-2 text-base file:h-8 file:text-sm"
|
|
1900
|
+
}
|
|
1901
|
+
},
|
|
1902
|
+
defaultVariants: {
|
|
1903
|
+
size: "md"
|
|
1904
|
+
}
|
|
1905
|
+
}
|
|
1906
|
+
);
|
|
1816
1907
|
function Input(_a) {
|
|
1817
|
-
var _b = _a, {
|
|
1818
|
-
|
|
1908
|
+
var _b = _a, {
|
|
1909
|
+
className,
|
|
1910
|
+
type,
|
|
1911
|
+
size = "md"
|
|
1912
|
+
} = _b, props = __objRest(_b, [
|
|
1913
|
+
"className",
|
|
1914
|
+
"type",
|
|
1915
|
+
"size"
|
|
1916
|
+
]);
|
|
1917
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1819
1918
|
"input",
|
|
1820
1919
|
__spreadValues({
|
|
1821
1920
|
type,
|
|
1822
1921
|
"data-slot": "input",
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
"focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/[0.08]",
|
|
1826
|
-
className
|
|
1827
|
-
)
|
|
1922
|
+
"data-size": size,
|
|
1923
|
+
className: cn(inputVariants({ size }), className)
|
|
1828
1924
|
}, props)
|
|
1829
1925
|
);
|
|
1830
1926
|
}
|
|
1831
1927
|
|
|
1832
1928
|
// components/ui/textarea.tsx
|
|
1833
|
-
var
|
|
1929
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1834
1930
|
function Textarea(_a) {
|
|
1835
1931
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1836
|
-
return /* @__PURE__ */ (0,
|
|
1932
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1837
1933
|
"textarea",
|
|
1838
1934
|
__spreadValues({
|
|
1839
1935
|
"data-slot": "textarea",
|
|
@@ -1846,33 +1942,68 @@ function Textarea(_a) {
|
|
|
1846
1942
|
}
|
|
1847
1943
|
|
|
1848
1944
|
// components/ui/input-group.tsx
|
|
1849
|
-
var
|
|
1945
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1946
|
+
var InputGroupSizeContext = React4.createContext("md");
|
|
1947
|
+
var inputGroupVariants = (0, import_class_variance_authority5.cva)(
|
|
1948
|
+
[
|
|
1949
|
+
"group/input-group relative flex w-full items-center rounded-sm border border-border-subtle bg-white/5",
|
|
1950
|
+
"shadow-xs transition-[color,box-shadow] outline-none min-w-0 has-[>textarea]:h-auto",
|
|
1951
|
+
// Reduce input padding on the addon side, and mirror it on the opposite side for visual symmetry.
|
|
1952
|
+
"has-[>[data-align=inline-start]]:[&>input]:pl-2",
|
|
1953
|
+
"has-[>[data-align=inline-start]]:[&>input]:pr-2",
|
|
1954
|
+
"has-[>[data-align=inline-end]]:[&>input]:pr-2",
|
|
1955
|
+
"has-[>[data-align=inline-end]]:[&>input]:pl-2",
|
|
1956
|
+
"has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3",
|
|
1957
|
+
"has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3",
|
|
1958
|
+
// Focus state.
|
|
1959
|
+
"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]",
|
|
1960
|
+
// Error state.
|
|
1961
|
+
"has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-destructive/20"
|
|
1962
|
+
].join(" "),
|
|
1963
|
+
{
|
|
1964
|
+
variants: {
|
|
1965
|
+
size: {
|
|
1966
|
+
sm: "h-8",
|
|
1967
|
+
md: "h-10",
|
|
1968
|
+
lg: "h-12"
|
|
1969
|
+
}
|
|
1970
|
+
},
|
|
1971
|
+
defaultVariants: {
|
|
1972
|
+
size: "md"
|
|
1973
|
+
}
|
|
1974
|
+
}
|
|
1975
|
+
);
|
|
1850
1976
|
function InputGroup(_a) {
|
|
1851
|
-
var _b = _a, {
|
|
1852
|
-
|
|
1977
|
+
var _b = _a, {
|
|
1978
|
+
className,
|
|
1979
|
+
size = "md"
|
|
1980
|
+
} = _b, props = __objRest(_b, [
|
|
1981
|
+
"className",
|
|
1982
|
+
"size"
|
|
1983
|
+
]);
|
|
1984
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(InputGroupSizeContext.Provider, { value: size, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1853
1985
|
"div",
|
|
1854
1986
|
__spreadValues({
|
|
1855
1987
|
"data-slot": "input-group",
|
|
1988
|
+
"data-size": size,
|
|
1856
1989
|
role: "group",
|
|
1857
|
-
className: cn(
|
|
1858
|
-
"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",
|
|
1859
|
-
"h-9 min-w-0 has-[>textarea]:h-auto",
|
|
1860
|
-
// Variants based on alignment.
|
|
1861
|
-
"has-[>[data-align=inline-start]]:[&>input]:pl-2",
|
|
1862
|
-
"has-[>[data-align=inline-end]]:[&>input]:pr-2",
|
|
1863
|
-
"has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3",
|
|
1864
|
-
"has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3",
|
|
1865
|
-
// Focus state.
|
|
1866
|
-
"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]",
|
|
1867
|
-
// Error state.
|
|
1868
|
-
"has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-destructive/20",
|
|
1869
|
-
className
|
|
1870
|
-
)
|
|
1990
|
+
className: cn(inputGroupVariants({ size }), className)
|
|
1871
1991
|
}, props)
|
|
1872
|
-
);
|
|
1992
|
+
) });
|
|
1873
1993
|
}
|
|
1874
|
-
var inputGroupAddonVariants = (0,
|
|
1875
|
-
|
|
1994
|
+
var inputGroupAddonVariants = (0, import_class_variance_authority5.cva)(
|
|
1995
|
+
[
|
|
1996
|
+
"flex h-auto cursor-text items-center justify-center gap-2 py-1.5 font-medium text-on-subtle select-none",
|
|
1997
|
+
"group-data-[disabled=true]/input-group:opacity-50",
|
|
1998
|
+
"[&>kbd]:rounded-[calc(var(--radius)-5px)]",
|
|
1999
|
+
// Size-responsive text and icon sizing.
|
|
2000
|
+
"group-data-[size=sm]/input-group:py-1 group-data-[size=sm]/input-group:text-xs",
|
|
2001
|
+
"group-data-[size=md]/input-group:text-sm",
|
|
2002
|
+
"group-data-[size=lg]/input-group:py-2 group-data-[size=lg]/input-group:text-sm",
|
|
2003
|
+
// Default icon size (overridden by size variants below).
|
|
2004
|
+
"[&>svg:not([class*='size-'])]:size-4",
|
|
2005
|
+
"group-data-[size=sm]/input-group:[&>svg:not([class*='size-'])]:size-3.5"
|
|
2006
|
+
].join(" "),
|
|
1876
2007
|
{
|
|
1877
2008
|
variants: {
|
|
1878
2009
|
align: {
|
|
@@ -1895,7 +2026,7 @@ function InputGroupAddon(_a) {
|
|
|
1895
2026
|
"className",
|
|
1896
2027
|
"align"
|
|
1897
2028
|
]);
|
|
1898
|
-
return /* @__PURE__ */ (0,
|
|
2029
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1899
2030
|
"div",
|
|
1900
2031
|
__spreadValues({
|
|
1901
2032
|
role: "group",
|
|
@@ -1912,7 +2043,7 @@ function InputGroupAddon(_a) {
|
|
|
1912
2043
|
}, props)
|
|
1913
2044
|
);
|
|
1914
2045
|
}
|
|
1915
|
-
var inputGroupButtonVariants = (0,
|
|
2046
|
+
var inputGroupButtonVariants = (0, import_class_variance_authority5.cva)(
|
|
1916
2047
|
"flex items-center gap-2 text-sm shadow-none",
|
|
1917
2048
|
{
|
|
1918
2049
|
variants: {
|
|
@@ -1940,7 +2071,7 @@ function InputGroupButton(_a) {
|
|
|
1940
2071
|
"variant",
|
|
1941
2072
|
"size"
|
|
1942
2073
|
]);
|
|
1943
|
-
return /* @__PURE__ */ (0,
|
|
2074
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1944
2075
|
Button,
|
|
1945
2076
|
__spreadValues({
|
|
1946
2077
|
type,
|
|
@@ -1952,11 +2083,15 @@ function InputGroupButton(_a) {
|
|
|
1952
2083
|
}
|
|
1953
2084
|
function InputGroupText(_a) {
|
|
1954
2085
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1955
|
-
return /* @__PURE__ */ (0,
|
|
2086
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1956
2087
|
"span",
|
|
1957
2088
|
__spreadValues({
|
|
1958
2089
|
className: cn(
|
|
1959
|
-
"flex items-center gap-2 text-
|
|
2090
|
+
"flex items-center gap-2 text-on-subtle",
|
|
2091
|
+
"group-data-[size=sm]/input-group:text-xs group-data-[size=sm]/input-group:[&_svg:not([class*='size-'])]:size-3.5",
|
|
2092
|
+
"group-data-[size=md]/input-group:text-sm group-data-[size=md]/input-group:[&_svg:not([class*='size-'])]:size-4",
|
|
2093
|
+
"group-data-[size=lg]/input-group:text-sm group-data-[size=lg]/input-group:[&_svg:not([class*='size-'])]:size-4",
|
|
2094
|
+
"[&_svg]:pointer-events-none",
|
|
1960
2095
|
className
|
|
1961
2096
|
)
|
|
1962
2097
|
}, props)
|
|
@@ -1964,16 +2099,21 @@ function InputGroupText(_a) {
|
|
|
1964
2099
|
}
|
|
1965
2100
|
function InputGroupInput(_a) {
|
|
1966
2101
|
var _b = _a, {
|
|
1967
|
-
className
|
|
2102
|
+
className,
|
|
2103
|
+
size: sizeProp
|
|
1968
2104
|
} = _b, props = __objRest(_b, [
|
|
1969
|
-
"className"
|
|
2105
|
+
"className",
|
|
2106
|
+
"size"
|
|
1970
2107
|
]);
|
|
1971
|
-
|
|
2108
|
+
const groupSize = React4.useContext(InputGroupSizeContext);
|
|
2109
|
+
const size = sizeProp != null ? sizeProp : groupSize;
|
|
2110
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1972
2111
|
Input,
|
|
1973
2112
|
__spreadValues({
|
|
1974
2113
|
"data-slot": "input-group-control",
|
|
2114
|
+
size,
|
|
1975
2115
|
className: cn(
|
|
1976
|
-
"flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0",
|
|
2116
|
+
"h-full flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0",
|
|
1977
2117
|
className
|
|
1978
2118
|
)
|
|
1979
2119
|
}, props)
|
|
@@ -1985,7 +2125,7 @@ function InputGroupTextarea(_a) {
|
|
|
1985
2125
|
} = _b, props = __objRest(_b, [
|
|
1986
2126
|
"className"
|
|
1987
2127
|
]);
|
|
1988
|
-
return /* @__PURE__ */ (0,
|
|
2128
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1989
2129
|
Textarea,
|
|
1990
2130
|
__spreadValues({
|
|
1991
2131
|
"data-slot": "input-group-control",
|
|
@@ -1998,11 +2138,11 @@ function InputGroupTextarea(_a) {
|
|
|
1998
2138
|
}
|
|
1999
2139
|
|
|
2000
2140
|
// components/ui/combobox.tsx
|
|
2001
|
-
var
|
|
2141
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
2002
2142
|
var Combobox = import_react.Combobox.Root;
|
|
2003
2143
|
function ComboboxValue(_a) {
|
|
2004
2144
|
var props = __objRest(_a, []);
|
|
2005
|
-
return /* @__PURE__ */ (0,
|
|
2145
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react.Combobox.Value, __spreadValues({ "data-slot": "combobox-value" }, props));
|
|
2006
2146
|
}
|
|
2007
2147
|
function ComboboxTrigger(_a) {
|
|
2008
2148
|
var _b = _a, {
|
|
@@ -2012,7 +2152,7 @@ function ComboboxTrigger(_a) {
|
|
|
2012
2152
|
"className",
|
|
2013
2153
|
"children"
|
|
2014
2154
|
]);
|
|
2015
|
-
return /* @__PURE__ */ (0,
|
|
2155
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
2016
2156
|
import_react.Combobox.Trigger,
|
|
2017
2157
|
__spreadProps(__spreadValues({
|
|
2018
2158
|
"data-slot": "combobox-trigger",
|
|
@@ -2020,7 +2160,7 @@ function ComboboxTrigger(_a) {
|
|
|
2020
2160
|
}, props), {
|
|
2021
2161
|
children: [
|
|
2022
2162
|
children,
|
|
2023
|
-
/* @__PURE__ */ (0,
|
|
2163
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2024
2164
|
import_lucide_react6.ChevronDownIcon,
|
|
2025
2165
|
{
|
|
2026
2166
|
"data-slot": "combobox-trigger-icon",
|
|
@@ -2033,14 +2173,14 @@ function ComboboxTrigger(_a) {
|
|
|
2033
2173
|
}
|
|
2034
2174
|
function ComboboxClear(_a) {
|
|
2035
2175
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2036
|
-
return /* @__PURE__ */ (0,
|
|
2176
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2037
2177
|
import_react.Combobox.Clear,
|
|
2038
2178
|
__spreadProps(__spreadValues({
|
|
2039
2179
|
"data-slot": "combobox-clear",
|
|
2040
|
-
render: /* @__PURE__ */ (0,
|
|
2180
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(InputGroupButton, { variant: "secondary", size: "icon-xs" }),
|
|
2041
2181
|
className: cn(className)
|
|
2042
2182
|
}, props), {
|
|
2043
|
-
children: /* @__PURE__ */ (0,
|
|
2183
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react6.XIcon, { className: "pointer-events-none" })
|
|
2044
2184
|
})
|
|
2045
2185
|
);
|
|
2046
2186
|
}
|
|
@@ -2058,15 +2198,15 @@ function ComboboxInput(_a) {
|
|
|
2058
2198
|
"showTrigger",
|
|
2059
2199
|
"showClear"
|
|
2060
2200
|
]);
|
|
2061
|
-
return /* @__PURE__ */ (0,
|
|
2062
|
-
/* @__PURE__ */ (0,
|
|
2201
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(InputGroup, { className: cn("w-auto", className), children: [
|
|
2202
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2063
2203
|
import_react.Combobox.Input,
|
|
2064
2204
|
__spreadValues({
|
|
2065
|
-
render: /* @__PURE__ */ (0,
|
|
2205
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(InputGroupInput, { disabled })
|
|
2066
2206
|
}, props)
|
|
2067
2207
|
),
|
|
2068
|
-
/* @__PURE__ */ (0,
|
|
2069
|
-
showTrigger && /* @__PURE__ */ (0,
|
|
2208
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(InputGroupAddon, { align: "inline-end", children: [
|
|
2209
|
+
showTrigger && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2070
2210
|
InputGroupButton,
|
|
2071
2211
|
{
|
|
2072
2212
|
size: "icon-xs",
|
|
@@ -2075,10 +2215,10 @@ function ComboboxInput(_a) {
|
|
|
2075
2215
|
"data-slot": "input-group-button",
|
|
2076
2216
|
className: "group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent",
|
|
2077
2217
|
disabled,
|
|
2078
|
-
children: /* @__PURE__ */ (0,
|
|
2218
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(ComboboxTrigger, {})
|
|
2079
2219
|
}
|
|
2080
2220
|
),
|
|
2081
|
-
showClear && /* @__PURE__ */ (0,
|
|
2221
|
+
showClear && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(ComboboxClear, { disabled })
|
|
2082
2222
|
] }),
|
|
2083
2223
|
children
|
|
2084
2224
|
] });
|
|
@@ -2099,7 +2239,7 @@ function ComboboxContent(_a) {
|
|
|
2099
2239
|
"alignOffset",
|
|
2100
2240
|
"anchor"
|
|
2101
2241
|
]);
|
|
2102
|
-
return /* @__PURE__ */ (0,
|
|
2242
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react.Combobox.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2103
2243
|
import_react.Combobox.Positioner,
|
|
2104
2244
|
{
|
|
2105
2245
|
side,
|
|
@@ -2108,7 +2248,7 @@ function ComboboxContent(_a) {
|
|
|
2108
2248
|
alignOffset,
|
|
2109
2249
|
anchor,
|
|
2110
2250
|
className: "isolate z-50",
|
|
2111
|
-
children: /* @__PURE__ */ (0,
|
|
2251
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2112
2252
|
import_react.Combobox.Popup,
|
|
2113
2253
|
__spreadValues({
|
|
2114
2254
|
"data-slot": "combobox-content",
|
|
@@ -2124,7 +2264,7 @@ function ComboboxContent(_a) {
|
|
|
2124
2264
|
}
|
|
2125
2265
|
function ComboboxList(_a) {
|
|
2126
2266
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2127
|
-
return /* @__PURE__ */ (0,
|
|
2267
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2128
2268
|
import_react.Combobox.List,
|
|
2129
2269
|
__spreadValues({
|
|
2130
2270
|
"data-slot": "combobox-list",
|
|
@@ -2143,7 +2283,7 @@ function ComboboxItem(_a) {
|
|
|
2143
2283
|
"className",
|
|
2144
2284
|
"children"
|
|
2145
2285
|
]);
|
|
2146
|
-
return /* @__PURE__ */ (0,
|
|
2286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
2147
2287
|
import_react.Combobox.Item,
|
|
2148
2288
|
__spreadProps(__spreadValues({
|
|
2149
2289
|
"data-slot": "combobox-item",
|
|
@@ -2154,12 +2294,12 @@ function ComboboxItem(_a) {
|
|
|
2154
2294
|
}, props), {
|
|
2155
2295
|
children: [
|
|
2156
2296
|
children,
|
|
2157
|
-
/* @__PURE__ */ (0,
|
|
2297
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2158
2298
|
import_react.Combobox.ItemIndicator,
|
|
2159
2299
|
{
|
|
2160
2300
|
"data-slot": "combobox-item-indicator",
|
|
2161
|
-
render: /* @__PURE__ */ (0,
|
|
2162
|
-
children: /* @__PURE__ */ (0,
|
|
2301
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
|
|
2302
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react6.CheckIcon, { className: "pointer-events-none size-4 pointer-coarse:size-5" })
|
|
2163
2303
|
}
|
|
2164
2304
|
)
|
|
2165
2305
|
]
|
|
@@ -2168,7 +2308,7 @@ function ComboboxItem(_a) {
|
|
|
2168
2308
|
}
|
|
2169
2309
|
function ComboboxGroup(_a) {
|
|
2170
2310
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2171
|
-
return /* @__PURE__ */ (0,
|
|
2311
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2172
2312
|
import_react.Combobox.Group,
|
|
2173
2313
|
__spreadValues({
|
|
2174
2314
|
"data-slot": "combobox-group",
|
|
@@ -2182,7 +2322,7 @@ function ComboboxLabel(_a) {
|
|
|
2182
2322
|
} = _b, props = __objRest(_b, [
|
|
2183
2323
|
"className"
|
|
2184
2324
|
]);
|
|
2185
|
-
return /* @__PURE__ */ (0,
|
|
2325
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2186
2326
|
import_react.Combobox.GroupLabel,
|
|
2187
2327
|
__spreadValues({
|
|
2188
2328
|
"data-slot": "combobox-label",
|
|
@@ -2195,11 +2335,11 @@ function ComboboxLabel(_a) {
|
|
|
2195
2335
|
}
|
|
2196
2336
|
function ComboboxCollection(_a) {
|
|
2197
2337
|
var props = __objRest(_a, []);
|
|
2198
|
-
return /* @__PURE__ */ (0,
|
|
2338
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react.Combobox.Collection, __spreadValues({ "data-slot": "combobox-collection" }, props));
|
|
2199
2339
|
}
|
|
2200
2340
|
function ComboboxEmpty(_a) {
|
|
2201
2341
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2202
|
-
return /* @__PURE__ */ (0,
|
|
2342
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2203
2343
|
import_react.Combobox.Empty,
|
|
2204
2344
|
__spreadValues({
|
|
2205
2345
|
"data-slot": "combobox-empty",
|
|
@@ -2216,7 +2356,7 @@ function ComboboxSeparator(_a) {
|
|
|
2216
2356
|
} = _b, props = __objRest(_b, [
|
|
2217
2357
|
"className"
|
|
2218
2358
|
]);
|
|
2219
|
-
return /* @__PURE__ */ (0,
|
|
2359
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2220
2360
|
import_react.Combobox.Separator,
|
|
2221
2361
|
__spreadValues({
|
|
2222
2362
|
"data-slot": "combobox-separator",
|
|
@@ -2230,7 +2370,7 @@ function ComboboxChips(_a) {
|
|
|
2230
2370
|
} = _b, props = __objRest(_b, [
|
|
2231
2371
|
"className"
|
|
2232
2372
|
]);
|
|
2233
|
-
return /* @__PURE__ */ (0,
|
|
2373
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2234
2374
|
import_react.Combobox.Chips,
|
|
2235
2375
|
__spreadValues({
|
|
2236
2376
|
"data-slot": "combobox-chips",
|
|
@@ -2251,7 +2391,7 @@ function ComboboxChip(_a) {
|
|
|
2251
2391
|
"children",
|
|
2252
2392
|
"showRemove"
|
|
2253
2393
|
]);
|
|
2254
|
-
return /* @__PURE__ */ (0,
|
|
2394
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
2255
2395
|
import_react.Combobox.Chip,
|
|
2256
2396
|
__spreadProps(__spreadValues({
|
|
2257
2397
|
"data-slot": "combobox-chip",
|
|
@@ -2262,13 +2402,13 @@ function ComboboxChip(_a) {
|
|
|
2262
2402
|
}, props), {
|
|
2263
2403
|
children: [
|
|
2264
2404
|
children,
|
|
2265
|
-
showRemove && /* @__PURE__ */ (0,
|
|
2405
|
+
showRemove && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2266
2406
|
import_react.Combobox.ChipRemove,
|
|
2267
2407
|
{
|
|
2268
|
-
render: /* @__PURE__ */ (0,
|
|
2408
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Button, { variant: "secondary", size: "icon-xs" }),
|
|
2269
2409
|
className: "-ml-1 opacity-50 hover:opacity-100",
|
|
2270
2410
|
"data-slot": "combobox-chip-remove",
|
|
2271
|
-
children: /* @__PURE__ */ (0,
|
|
2411
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react6.XIcon, { className: "pointer-events-none" })
|
|
2272
2412
|
}
|
|
2273
2413
|
)
|
|
2274
2414
|
]
|
|
@@ -2283,7 +2423,7 @@ function ComboboxChipsInput(_a) {
|
|
|
2283
2423
|
"className",
|
|
2284
2424
|
"children"
|
|
2285
2425
|
]);
|
|
2286
|
-
return /* @__PURE__ */ (0,
|
|
2426
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2287
2427
|
import_react.Combobox.Input,
|
|
2288
2428
|
__spreadValues({
|
|
2289
2429
|
"data-slot": "combobox-chip-input",
|
|
@@ -2292,7 +2432,7 @@ function ComboboxChipsInput(_a) {
|
|
|
2292
2432
|
);
|
|
2293
2433
|
}
|
|
2294
2434
|
function useComboboxAnchor() {
|
|
2295
|
-
return
|
|
2435
|
+
return React5.useRef(null);
|
|
2296
2436
|
}
|
|
2297
2437
|
|
|
2298
2438
|
// components/ui/command.tsx
|
|
@@ -2302,22 +2442,22 @@ var import_lucide_react8 = require("lucide-react");
|
|
|
2302
2442
|
// components/ui/dialog.tsx
|
|
2303
2443
|
var import_lucide_react7 = require("lucide-react");
|
|
2304
2444
|
var import_radix_ui10 = require("radix-ui");
|
|
2305
|
-
var
|
|
2445
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
2306
2446
|
function Dialog(_a) {
|
|
2307
2447
|
var props = __objRest(_a, []);
|
|
2308
|
-
return /* @__PURE__ */ (0,
|
|
2448
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_radix_ui10.Dialog.Root, __spreadValues({ "data-slot": "dialog" }, props));
|
|
2309
2449
|
}
|
|
2310
2450
|
function DialogTrigger(_a) {
|
|
2311
2451
|
var props = __objRest(_a, []);
|
|
2312
|
-
return /* @__PURE__ */ (0,
|
|
2452
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_radix_ui10.Dialog.Trigger, __spreadValues({ "data-slot": "dialog-trigger" }, props));
|
|
2313
2453
|
}
|
|
2314
2454
|
function DialogPortal(_a) {
|
|
2315
2455
|
var props = __objRest(_a, []);
|
|
2316
|
-
return /* @__PURE__ */ (0,
|
|
2456
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_radix_ui10.Dialog.Portal, __spreadValues({ "data-slot": "dialog-portal" }, props));
|
|
2317
2457
|
}
|
|
2318
2458
|
function DialogClose(_a) {
|
|
2319
2459
|
var props = __objRest(_a, []);
|
|
2320
|
-
return /* @__PURE__ */ (0,
|
|
2460
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_radix_ui10.Dialog.Close, __spreadValues({ "data-slot": "dialog-close" }, props));
|
|
2321
2461
|
}
|
|
2322
2462
|
function DialogOverlay(_a) {
|
|
2323
2463
|
var _b = _a, {
|
|
@@ -2325,7 +2465,7 @@ function DialogOverlay(_a) {
|
|
|
2325
2465
|
} = _b, props = __objRest(_b, [
|
|
2326
2466
|
"className"
|
|
2327
2467
|
]);
|
|
2328
|
-
return /* @__PURE__ */ (0,
|
|
2468
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2329
2469
|
import_radix_ui10.Dialog.Overlay,
|
|
2330
2470
|
__spreadValues({
|
|
2331
2471
|
"data-slot": "dialog-overlay",
|
|
@@ -2346,9 +2486,9 @@ function DialogContent(_a) {
|
|
|
2346
2486
|
"children",
|
|
2347
2487
|
"showCloseButton"
|
|
2348
2488
|
]);
|
|
2349
|
-
return /* @__PURE__ */ (0,
|
|
2350
|
-
/* @__PURE__ */ (0,
|
|
2351
|
-
/* @__PURE__ */ (0,
|
|
2489
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(DialogPortal, { "data-slot": "dialog-portal", children: [
|
|
2490
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(DialogOverlay, {}),
|
|
2491
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
2352
2492
|
import_radix_ui10.Dialog.Content,
|
|
2353
2493
|
__spreadProps(__spreadValues({
|
|
2354
2494
|
"data-slot": "dialog-content",
|
|
@@ -2359,14 +2499,14 @@ function DialogContent(_a) {
|
|
|
2359
2499
|
}, props), {
|
|
2360
2500
|
children: [
|
|
2361
2501
|
children,
|
|
2362
|
-
showCloseButton && /* @__PURE__ */ (0,
|
|
2502
|
+
showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
2363
2503
|
import_radix_ui10.Dialog.Close,
|
|
2364
2504
|
{
|
|
2365
2505
|
"data-slot": "dialog-close",
|
|
2366
2506
|
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",
|
|
2367
2507
|
children: [
|
|
2368
|
-
/* @__PURE__ */ (0,
|
|
2369
|
-
/* @__PURE__ */ (0,
|
|
2508
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react7.XIcon, {}),
|
|
2509
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "sr-only", children: "Close" })
|
|
2370
2510
|
]
|
|
2371
2511
|
}
|
|
2372
2512
|
)
|
|
@@ -2377,7 +2517,7 @@ function DialogContent(_a) {
|
|
|
2377
2517
|
}
|
|
2378
2518
|
function DialogHeader(_a) {
|
|
2379
2519
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2380
|
-
return /* @__PURE__ */ (0,
|
|
2520
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2381
2521
|
"div",
|
|
2382
2522
|
__spreadValues({
|
|
2383
2523
|
"data-slot": "dialog-header",
|
|
@@ -2395,7 +2535,7 @@ function DialogFooter(_a) {
|
|
|
2395
2535
|
"showCloseButton",
|
|
2396
2536
|
"children"
|
|
2397
2537
|
]);
|
|
2398
|
-
return /* @__PURE__ */ (0,
|
|
2538
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
2399
2539
|
"div",
|
|
2400
2540
|
__spreadProps(__spreadValues({
|
|
2401
2541
|
"data-slot": "dialog-footer",
|
|
@@ -2406,7 +2546,7 @@ function DialogFooter(_a) {
|
|
|
2406
2546
|
}, props), {
|
|
2407
2547
|
children: [
|
|
2408
2548
|
children,
|
|
2409
|
-
showCloseButton && /* @__PURE__ */ (0,
|
|
2549
|
+
showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_radix_ui10.Dialog.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Button, { variant: "secondary", size: "md", children: "Close" }) })
|
|
2410
2550
|
]
|
|
2411
2551
|
})
|
|
2412
2552
|
);
|
|
@@ -2417,7 +2557,7 @@ function DialogTitle(_a) {
|
|
|
2417
2557
|
} = _b, props = __objRest(_b, [
|
|
2418
2558
|
"className"
|
|
2419
2559
|
]);
|
|
2420
|
-
return /* @__PURE__ */ (0,
|
|
2560
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2421
2561
|
import_radix_ui10.Dialog.Title,
|
|
2422
2562
|
__spreadValues({
|
|
2423
2563
|
"data-slot": "dialog-title",
|
|
@@ -2431,7 +2571,7 @@ function DialogDescription(_a) {
|
|
|
2431
2571
|
} = _b, props = __objRest(_b, [
|
|
2432
2572
|
"className"
|
|
2433
2573
|
]);
|
|
2434
|
-
return /* @__PURE__ */ (0,
|
|
2574
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2435
2575
|
import_radix_ui10.Dialog.Description,
|
|
2436
2576
|
__spreadValues({
|
|
2437
2577
|
"data-slot": "dialog-description",
|
|
@@ -2441,14 +2581,14 @@ function DialogDescription(_a) {
|
|
|
2441
2581
|
}
|
|
2442
2582
|
|
|
2443
2583
|
// components/ui/command.tsx
|
|
2444
|
-
var
|
|
2584
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
2445
2585
|
function Command(_a) {
|
|
2446
2586
|
var _b = _a, {
|
|
2447
2587
|
className
|
|
2448
2588
|
} = _b, props = __objRest(_b, [
|
|
2449
2589
|
"className"
|
|
2450
2590
|
]);
|
|
2451
|
-
return /* @__PURE__ */ (0,
|
|
2591
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2452
2592
|
import_cmdk.Command,
|
|
2453
2593
|
__spreadValues({
|
|
2454
2594
|
"data-slot": "command",
|
|
@@ -2473,17 +2613,17 @@ function CommandDialog(_a) {
|
|
|
2473
2613
|
"className",
|
|
2474
2614
|
"showCloseButton"
|
|
2475
2615
|
]);
|
|
2476
|
-
return /* @__PURE__ */ (0,
|
|
2477
|
-
/* @__PURE__ */ (0,
|
|
2478
|
-
/* @__PURE__ */ (0,
|
|
2479
|
-
/* @__PURE__ */ (0,
|
|
2616
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(Dialog, __spreadProps(__spreadValues({}, props), { children: [
|
|
2617
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(DialogHeader, { className: "sr-only", children: [
|
|
2618
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(DialogTitle, { children: title }),
|
|
2619
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(DialogDescription, { children: description })
|
|
2480
2620
|
] }),
|
|
2481
|
-
/* @__PURE__ */ (0,
|
|
2621
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2482
2622
|
DialogContent,
|
|
2483
2623
|
{
|
|
2484
2624
|
className: cn("overflow-hidden p-0", className),
|
|
2485
2625
|
showCloseButton,
|
|
2486
|
-
children: /* @__PURE__ */ (0,
|
|
2626
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(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 })
|
|
2487
2627
|
}
|
|
2488
2628
|
)
|
|
2489
2629
|
] }));
|
|
@@ -2494,14 +2634,14 @@ function CommandInput(_a) {
|
|
|
2494
2634
|
} = _b, props = __objRest(_b, [
|
|
2495
2635
|
"className"
|
|
2496
2636
|
]);
|
|
2497
|
-
return /* @__PURE__ */ (0,
|
|
2637
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
2498
2638
|
"div",
|
|
2499
2639
|
{
|
|
2500
2640
|
"data-slot": "command-input-wrapper",
|
|
2501
2641
|
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
2502
2642
|
children: [
|
|
2503
|
-
/* @__PURE__ */ (0,
|
|
2504
|
-
/* @__PURE__ */ (0,
|
|
2643
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react8.SearchIcon, { className: "size-4 shrink-0 opacity-50" }),
|
|
2644
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2505
2645
|
import_cmdk.Command.Input,
|
|
2506
2646
|
__spreadValues({
|
|
2507
2647
|
"data-slot": "command-input",
|
|
@@ -2521,7 +2661,7 @@ function CommandList(_a) {
|
|
|
2521
2661
|
} = _b, props = __objRest(_b, [
|
|
2522
2662
|
"className"
|
|
2523
2663
|
]);
|
|
2524
|
-
return /* @__PURE__ */ (0,
|
|
2664
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2525
2665
|
import_cmdk.Command.List,
|
|
2526
2666
|
__spreadValues({
|
|
2527
2667
|
"data-slot": "command-list",
|
|
@@ -2534,7 +2674,7 @@ function CommandList(_a) {
|
|
|
2534
2674
|
}
|
|
2535
2675
|
function CommandEmpty(_a) {
|
|
2536
2676
|
var props = __objRest(_a, []);
|
|
2537
|
-
return /* @__PURE__ */ (0,
|
|
2677
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2538
2678
|
import_cmdk.Command.Empty,
|
|
2539
2679
|
__spreadValues({
|
|
2540
2680
|
"data-slot": "command-empty",
|
|
@@ -2548,7 +2688,7 @@ function CommandGroup(_a) {
|
|
|
2548
2688
|
} = _b, props = __objRest(_b, [
|
|
2549
2689
|
"className"
|
|
2550
2690
|
]);
|
|
2551
|
-
return /* @__PURE__ */ (0,
|
|
2691
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2552
2692
|
import_cmdk.Command.Group,
|
|
2553
2693
|
__spreadValues({
|
|
2554
2694
|
"data-slot": "command-group",
|
|
@@ -2565,7 +2705,7 @@ function CommandSeparator(_a) {
|
|
|
2565
2705
|
} = _b, props = __objRest(_b, [
|
|
2566
2706
|
"className"
|
|
2567
2707
|
]);
|
|
2568
|
-
return /* @__PURE__ */ (0,
|
|
2708
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2569
2709
|
import_cmdk.Command.Separator,
|
|
2570
2710
|
__spreadValues({
|
|
2571
2711
|
"data-slot": "command-separator",
|
|
@@ -2579,7 +2719,7 @@ function CommandItem(_a) {
|
|
|
2579
2719
|
} = _b, props = __objRest(_b, [
|
|
2580
2720
|
"className"
|
|
2581
2721
|
]);
|
|
2582
|
-
return /* @__PURE__ */ (0,
|
|
2722
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2583
2723
|
import_cmdk.Command.Item,
|
|
2584
2724
|
__spreadValues({
|
|
2585
2725
|
"data-slot": "command-item",
|
|
@@ -2596,7 +2736,7 @@ function CommandShortcut(_a) {
|
|
|
2596
2736
|
} = _b, props = __objRest(_b, [
|
|
2597
2737
|
"className"
|
|
2598
2738
|
]);
|
|
2599
|
-
return /* @__PURE__ */ (0,
|
|
2739
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2600
2740
|
"span",
|
|
2601
2741
|
__spreadValues({
|
|
2602
2742
|
"data-slot": "command-shortcut",
|
|
@@ -2611,30 +2751,30 @@ function CommandShortcut(_a) {
|
|
|
2611
2751
|
// components/ui/context-menu.tsx
|
|
2612
2752
|
var import_lucide_react9 = require("lucide-react");
|
|
2613
2753
|
var import_radix_ui11 = require("radix-ui");
|
|
2614
|
-
var
|
|
2754
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
2615
2755
|
function ContextMenu(_a) {
|
|
2616
2756
|
var props = __objRest(_a, []);
|
|
2617
|
-
return /* @__PURE__ */ (0,
|
|
2757
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_radix_ui11.ContextMenu.Root, __spreadValues({ "data-slot": "context-menu" }, props));
|
|
2618
2758
|
}
|
|
2619
2759
|
function ContextMenuTrigger(_a) {
|
|
2620
2760
|
var props = __objRest(_a, []);
|
|
2621
|
-
return /* @__PURE__ */ (0,
|
|
2761
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_radix_ui11.ContextMenu.Trigger, __spreadValues({ "data-slot": "context-menu-trigger" }, props));
|
|
2622
2762
|
}
|
|
2623
2763
|
function ContextMenuGroup(_a) {
|
|
2624
2764
|
var props = __objRest(_a, []);
|
|
2625
|
-
return /* @__PURE__ */ (0,
|
|
2765
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_radix_ui11.ContextMenu.Group, __spreadValues({ "data-slot": "context-menu-group" }, props));
|
|
2626
2766
|
}
|
|
2627
2767
|
function ContextMenuPortal(_a) {
|
|
2628
2768
|
var props = __objRest(_a, []);
|
|
2629
|
-
return /* @__PURE__ */ (0,
|
|
2769
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_radix_ui11.ContextMenu.Portal, __spreadValues({ "data-slot": "context-menu-portal" }, props));
|
|
2630
2770
|
}
|
|
2631
2771
|
function ContextMenuSub(_a) {
|
|
2632
2772
|
var props = __objRest(_a, []);
|
|
2633
|
-
return /* @__PURE__ */ (0,
|
|
2773
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_radix_ui11.ContextMenu.Sub, __spreadValues({ "data-slot": "context-menu-sub" }, props));
|
|
2634
2774
|
}
|
|
2635
2775
|
function ContextMenuRadioGroup(_a) {
|
|
2636
2776
|
var props = __objRest(_a, []);
|
|
2637
|
-
return /* @__PURE__ */ (0,
|
|
2777
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2638
2778
|
import_radix_ui11.ContextMenu.RadioGroup,
|
|
2639
2779
|
__spreadValues({
|
|
2640
2780
|
"data-slot": "context-menu-radio-group"
|
|
@@ -2651,7 +2791,7 @@ function ContextMenuSubTrigger(_a) {
|
|
|
2651
2791
|
"inset",
|
|
2652
2792
|
"children"
|
|
2653
2793
|
]);
|
|
2654
|
-
return /* @__PURE__ */ (0,
|
|
2794
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
2655
2795
|
import_radix_ui11.ContextMenu.SubTrigger,
|
|
2656
2796
|
__spreadProps(__spreadValues({
|
|
2657
2797
|
"data-slot": "context-menu-sub-trigger",
|
|
@@ -2663,7 +2803,7 @@ function ContextMenuSubTrigger(_a) {
|
|
|
2663
2803
|
}, props), {
|
|
2664
2804
|
children: [
|
|
2665
2805
|
children,
|
|
2666
|
-
/* @__PURE__ */ (0,
|
|
2806
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react9.ChevronRightIcon, { className: "ml-auto" })
|
|
2667
2807
|
]
|
|
2668
2808
|
})
|
|
2669
2809
|
);
|
|
@@ -2674,7 +2814,7 @@ function ContextMenuSubContent(_a) {
|
|
|
2674
2814
|
} = _b, props = __objRest(_b, [
|
|
2675
2815
|
"className"
|
|
2676
2816
|
]);
|
|
2677
|
-
return /* @__PURE__ */ (0,
|
|
2817
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2678
2818
|
import_radix_ui11.ContextMenu.SubContent,
|
|
2679
2819
|
__spreadValues({
|
|
2680
2820
|
"data-slot": "context-menu-sub-content",
|
|
@@ -2691,7 +2831,7 @@ function ContextMenuContent(_a) {
|
|
|
2691
2831
|
} = _b, props = __objRest(_b, [
|
|
2692
2832
|
"className"
|
|
2693
2833
|
]);
|
|
2694
|
-
return /* @__PURE__ */ (0,
|
|
2834
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_radix_ui11.ContextMenu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2695
2835
|
import_radix_ui11.ContextMenu.Content,
|
|
2696
2836
|
__spreadValues({
|
|
2697
2837
|
"data-slot": "context-menu-content",
|
|
@@ -2712,7 +2852,7 @@ function ContextMenuItem(_a) {
|
|
|
2712
2852
|
"inset",
|
|
2713
2853
|
"variant"
|
|
2714
2854
|
]);
|
|
2715
|
-
return /* @__PURE__ */ (0,
|
|
2855
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2716
2856
|
import_radix_ui11.ContextMenu.Item,
|
|
2717
2857
|
__spreadValues({
|
|
2718
2858
|
"data-slot": "context-menu-item",
|
|
@@ -2735,7 +2875,7 @@ function ContextMenuCheckboxItem(_a) {
|
|
|
2735
2875
|
"children",
|
|
2736
2876
|
"checked"
|
|
2737
2877
|
]);
|
|
2738
|
-
return /* @__PURE__ */ (0,
|
|
2878
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
2739
2879
|
import_radix_ui11.ContextMenu.CheckboxItem,
|
|
2740
2880
|
__spreadProps(__spreadValues({
|
|
2741
2881
|
"data-slot": "context-menu-checkbox-item",
|
|
@@ -2746,7 +2886,7 @@ function ContextMenuCheckboxItem(_a) {
|
|
|
2746
2886
|
checked
|
|
2747
2887
|
}, props), {
|
|
2748
2888
|
children: [
|
|
2749
|
-
/* @__PURE__ */ (0,
|
|
2889
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_radix_ui11.ContextMenu.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react9.CheckIcon, { className: "size-4" }) }) }),
|
|
2750
2890
|
children
|
|
2751
2891
|
]
|
|
2752
2892
|
})
|
|
@@ -2760,7 +2900,7 @@ function ContextMenuRadioItem(_a) {
|
|
|
2760
2900
|
"className",
|
|
2761
2901
|
"children"
|
|
2762
2902
|
]);
|
|
2763
|
-
return /* @__PURE__ */ (0,
|
|
2903
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
2764
2904
|
import_radix_ui11.ContextMenu.RadioItem,
|
|
2765
2905
|
__spreadProps(__spreadValues({
|
|
2766
2906
|
"data-slot": "context-menu-radio-item",
|
|
@@ -2770,7 +2910,7 @@ function ContextMenuRadioItem(_a) {
|
|
|
2770
2910
|
)
|
|
2771
2911
|
}, props), {
|
|
2772
2912
|
children: [
|
|
2773
|
-
/* @__PURE__ */ (0,
|
|
2913
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_radix_ui11.ContextMenu.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react9.CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
2774
2914
|
children
|
|
2775
2915
|
]
|
|
2776
2916
|
})
|
|
@@ -2784,7 +2924,7 @@ function ContextMenuLabel(_a) {
|
|
|
2784
2924
|
"className",
|
|
2785
2925
|
"inset"
|
|
2786
2926
|
]);
|
|
2787
|
-
return /* @__PURE__ */ (0,
|
|
2927
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2788
2928
|
import_radix_ui11.ContextMenu.Label,
|
|
2789
2929
|
__spreadValues({
|
|
2790
2930
|
"data-slot": "context-menu-label",
|
|
@@ -2802,7 +2942,7 @@ function ContextMenuSeparator(_a) {
|
|
|
2802
2942
|
} = _b, props = __objRest(_b, [
|
|
2803
2943
|
"className"
|
|
2804
2944
|
]);
|
|
2805
|
-
return /* @__PURE__ */ (0,
|
|
2945
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2806
2946
|
import_radix_ui11.ContextMenu.Separator,
|
|
2807
2947
|
__spreadValues({
|
|
2808
2948
|
"data-slot": "context-menu-separator",
|
|
@@ -2816,7 +2956,7 @@ function ContextMenuShortcut(_a) {
|
|
|
2816
2956
|
} = _b, props = __objRest(_b, [
|
|
2817
2957
|
"className"
|
|
2818
2958
|
]);
|
|
2819
|
-
return /* @__PURE__ */ (0,
|
|
2959
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2820
2960
|
"span",
|
|
2821
2961
|
__spreadValues({
|
|
2822
2962
|
"data-slot": "context-menu-shortcut",
|
|
@@ -2830,34 +2970,34 @@ function ContextMenuShortcut(_a) {
|
|
|
2830
2970
|
|
|
2831
2971
|
// components/ui/direction.tsx
|
|
2832
2972
|
var import_radix_ui12 = require("radix-ui");
|
|
2833
|
-
var
|
|
2973
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
2834
2974
|
function DirectionProvider({
|
|
2835
2975
|
dir,
|
|
2836
2976
|
direction,
|
|
2837
2977
|
children
|
|
2838
2978
|
}) {
|
|
2839
|
-
return /* @__PURE__ */ (0,
|
|
2979
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_radix_ui12.Direction.DirectionProvider, { dir: direction != null ? direction : dir, children });
|
|
2840
2980
|
}
|
|
2841
2981
|
var useDirection = import_radix_ui12.Direction.useDirection;
|
|
2842
2982
|
|
|
2843
2983
|
// components/ui/drawer.tsx
|
|
2844
2984
|
var import_vaul = require("vaul");
|
|
2845
|
-
var
|
|
2985
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
2846
2986
|
function Drawer(_a) {
|
|
2847
2987
|
var props = __objRest(_a, []);
|
|
2848
|
-
return /* @__PURE__ */ (0,
|
|
2988
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_vaul.Drawer.Root, __spreadValues({ "data-slot": "drawer" }, props));
|
|
2849
2989
|
}
|
|
2850
2990
|
function DrawerTrigger(_a) {
|
|
2851
2991
|
var props = __objRest(_a, []);
|
|
2852
|
-
return /* @__PURE__ */ (0,
|
|
2992
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_vaul.Drawer.Trigger, __spreadValues({ "data-slot": "drawer-trigger" }, props));
|
|
2853
2993
|
}
|
|
2854
2994
|
function DrawerPortal(_a) {
|
|
2855
2995
|
var props = __objRest(_a, []);
|
|
2856
|
-
return /* @__PURE__ */ (0,
|
|
2996
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_vaul.Drawer.Portal, __spreadValues({ "data-slot": "drawer-portal" }, props));
|
|
2857
2997
|
}
|
|
2858
2998
|
function DrawerClose(_a) {
|
|
2859
2999
|
var props = __objRest(_a, []);
|
|
2860
|
-
return /* @__PURE__ */ (0,
|
|
3000
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_vaul.Drawer.Close, __spreadValues({ "data-slot": "drawer-close" }, props));
|
|
2861
3001
|
}
|
|
2862
3002
|
function DrawerOverlay(_a) {
|
|
2863
3003
|
var _b = _a, {
|
|
@@ -2865,7 +3005,7 @@ function DrawerOverlay(_a) {
|
|
|
2865
3005
|
} = _b, props = __objRest(_b, [
|
|
2866
3006
|
"className"
|
|
2867
3007
|
]);
|
|
2868
|
-
return /* @__PURE__ */ (0,
|
|
3008
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2869
3009
|
import_vaul.Drawer.Overlay,
|
|
2870
3010
|
__spreadValues({
|
|
2871
3011
|
"data-slot": "drawer-overlay",
|
|
@@ -2884,9 +3024,9 @@ function DrawerContent(_a) {
|
|
|
2884
3024
|
"className",
|
|
2885
3025
|
"children"
|
|
2886
3026
|
]);
|
|
2887
|
-
return /* @__PURE__ */ (0,
|
|
2888
|
-
/* @__PURE__ */ (0,
|
|
2889
|
-
/* @__PURE__ */ (0,
|
|
3027
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(DrawerPortal, { "data-slot": "drawer-portal", children: [
|
|
3028
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DrawerOverlay, {}),
|
|
3029
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
2890
3030
|
import_vaul.Drawer.Content,
|
|
2891
3031
|
__spreadProps(__spreadValues({
|
|
2892
3032
|
"data-slot": "drawer-content",
|
|
@@ -2900,7 +3040,7 @@ function DrawerContent(_a) {
|
|
|
2900
3040
|
)
|
|
2901
3041
|
}, props), {
|
|
2902
3042
|
children: [
|
|
2903
|
-
/* @__PURE__ */ (0,
|
|
3043
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("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" }),
|
|
2904
3044
|
children
|
|
2905
3045
|
]
|
|
2906
3046
|
})
|
|
@@ -2909,7 +3049,7 @@ function DrawerContent(_a) {
|
|
|
2909
3049
|
}
|
|
2910
3050
|
function DrawerHeader(_a) {
|
|
2911
3051
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2912
|
-
return /* @__PURE__ */ (0,
|
|
3052
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2913
3053
|
"div",
|
|
2914
3054
|
__spreadValues({
|
|
2915
3055
|
"data-slot": "drawer-header",
|
|
@@ -2922,7 +3062,7 @@ function DrawerHeader(_a) {
|
|
|
2922
3062
|
}
|
|
2923
3063
|
function DrawerFooter(_a) {
|
|
2924
3064
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2925
|
-
return /* @__PURE__ */ (0,
|
|
3065
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2926
3066
|
"div",
|
|
2927
3067
|
__spreadValues({
|
|
2928
3068
|
"data-slot": "drawer-footer",
|
|
@@ -2936,7 +3076,7 @@ function DrawerTitle(_a) {
|
|
|
2936
3076
|
} = _b, props = __objRest(_b, [
|
|
2937
3077
|
"className"
|
|
2938
3078
|
]);
|
|
2939
|
-
return /* @__PURE__ */ (0,
|
|
3079
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2940
3080
|
import_vaul.Drawer.Title,
|
|
2941
3081
|
__spreadValues({
|
|
2942
3082
|
"data-slot": "drawer-title",
|
|
@@ -2950,7 +3090,7 @@ function DrawerDescription(_a) {
|
|
|
2950
3090
|
} = _b, props = __objRest(_b, [
|
|
2951
3091
|
"className"
|
|
2952
3092
|
]);
|
|
2953
|
-
return /* @__PURE__ */ (0,
|
|
3093
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2954
3094
|
import_vaul.Drawer.Description,
|
|
2955
3095
|
__spreadValues({
|
|
2956
3096
|
"data-slot": "drawer-description",
|
|
@@ -2962,18 +3102,18 @@ function DrawerDescription(_a) {
|
|
|
2962
3102
|
// components/ui/dropdown-menu.tsx
|
|
2963
3103
|
var import_lucide_react10 = require("lucide-react");
|
|
2964
3104
|
var import_radix_ui13 = require("radix-ui");
|
|
2965
|
-
var
|
|
3105
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
2966
3106
|
function DropdownMenu(_a) {
|
|
2967
3107
|
var props = __objRest(_a, []);
|
|
2968
|
-
return /* @__PURE__ */ (0,
|
|
3108
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_radix_ui13.DropdownMenu.Root, __spreadValues({ "data-slot": "dropdown-menu" }, props));
|
|
2969
3109
|
}
|
|
2970
3110
|
function DropdownMenuPortal(_a) {
|
|
2971
3111
|
var props = __objRest(_a, []);
|
|
2972
|
-
return /* @__PURE__ */ (0,
|
|
3112
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_radix_ui13.DropdownMenu.Portal, __spreadValues({ "data-slot": "dropdown-menu-portal" }, props));
|
|
2973
3113
|
}
|
|
2974
3114
|
function DropdownMenuTrigger(_a) {
|
|
2975
3115
|
var props = __objRest(_a, []);
|
|
2976
|
-
return /* @__PURE__ */ (0,
|
|
3116
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
2977
3117
|
import_radix_ui13.DropdownMenu.Trigger,
|
|
2978
3118
|
__spreadValues({
|
|
2979
3119
|
"data-slot": "dropdown-menu-trigger"
|
|
@@ -2988,7 +3128,7 @@ function DropdownMenuContent(_a) {
|
|
|
2988
3128
|
"className",
|
|
2989
3129
|
"sideOffset"
|
|
2990
3130
|
]);
|
|
2991
|
-
return /* @__PURE__ */ (0,
|
|
3131
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_radix_ui13.DropdownMenu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
2992
3132
|
import_radix_ui13.DropdownMenu.Content,
|
|
2993
3133
|
__spreadValues({
|
|
2994
3134
|
"data-slot": "dropdown-menu-content",
|
|
@@ -3002,7 +3142,7 @@ function DropdownMenuContent(_a) {
|
|
|
3002
3142
|
}
|
|
3003
3143
|
function DropdownMenuGroup(_a) {
|
|
3004
3144
|
var props = __objRest(_a, []);
|
|
3005
|
-
return /* @__PURE__ */ (0,
|
|
3145
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_radix_ui13.DropdownMenu.Group, __spreadValues({ "data-slot": "dropdown-menu-group" }, props));
|
|
3006
3146
|
}
|
|
3007
3147
|
function DropdownMenuItem(_a) {
|
|
3008
3148
|
var _b = _a, {
|
|
@@ -3014,7 +3154,7 @@ function DropdownMenuItem(_a) {
|
|
|
3014
3154
|
"inset",
|
|
3015
3155
|
"variant"
|
|
3016
3156
|
]);
|
|
3017
|
-
return /* @__PURE__ */ (0,
|
|
3157
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3018
3158
|
import_radix_ui13.DropdownMenu.Item,
|
|
3019
3159
|
__spreadValues({
|
|
3020
3160
|
"data-slot": "dropdown-menu-item",
|
|
@@ -3037,7 +3177,7 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
3037
3177
|
"children",
|
|
3038
3178
|
"checked"
|
|
3039
3179
|
]);
|
|
3040
|
-
return /* @__PURE__ */ (0,
|
|
3180
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
3041
3181
|
import_radix_ui13.DropdownMenu.CheckboxItem,
|
|
3042
3182
|
__spreadProps(__spreadValues({
|
|
3043
3183
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
@@ -3048,7 +3188,7 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
3048
3188
|
checked
|
|
3049
3189
|
}, props), {
|
|
3050
3190
|
children: [
|
|
3051
|
-
/* @__PURE__ */ (0,
|
|
3191
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_radix_ui13.DropdownMenu.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react10.CheckIcon, { className: "size-4" }) }) }),
|
|
3052
3192
|
children
|
|
3053
3193
|
]
|
|
3054
3194
|
})
|
|
@@ -3056,7 +3196,7 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
3056
3196
|
}
|
|
3057
3197
|
function DropdownMenuRadioGroup(_a) {
|
|
3058
3198
|
var props = __objRest(_a, []);
|
|
3059
|
-
return /* @__PURE__ */ (0,
|
|
3199
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3060
3200
|
import_radix_ui13.DropdownMenu.RadioGroup,
|
|
3061
3201
|
__spreadValues({
|
|
3062
3202
|
"data-slot": "dropdown-menu-radio-group"
|
|
@@ -3071,7 +3211,7 @@ function DropdownMenuRadioItem(_a) {
|
|
|
3071
3211
|
"className",
|
|
3072
3212
|
"children"
|
|
3073
3213
|
]);
|
|
3074
|
-
return /* @__PURE__ */ (0,
|
|
3214
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
3075
3215
|
import_radix_ui13.DropdownMenu.RadioItem,
|
|
3076
3216
|
__spreadProps(__spreadValues({
|
|
3077
3217
|
"data-slot": "dropdown-menu-radio-item",
|
|
@@ -3081,7 +3221,7 @@ function DropdownMenuRadioItem(_a) {
|
|
|
3081
3221
|
)
|
|
3082
3222
|
}, props), {
|
|
3083
3223
|
children: [
|
|
3084
|
-
/* @__PURE__ */ (0,
|
|
3224
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_radix_ui13.DropdownMenu.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react10.CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
3085
3225
|
children
|
|
3086
3226
|
]
|
|
3087
3227
|
})
|
|
@@ -3095,7 +3235,7 @@ function DropdownMenuLabel(_a) {
|
|
|
3095
3235
|
"className",
|
|
3096
3236
|
"inset"
|
|
3097
3237
|
]);
|
|
3098
|
-
return /* @__PURE__ */ (0,
|
|
3238
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3099
3239
|
import_radix_ui13.DropdownMenu.Label,
|
|
3100
3240
|
__spreadValues({
|
|
3101
3241
|
"data-slot": "dropdown-menu-label",
|
|
@@ -3113,7 +3253,7 @@ function DropdownMenuSeparator(_a) {
|
|
|
3113
3253
|
} = _b, props = __objRest(_b, [
|
|
3114
3254
|
"className"
|
|
3115
3255
|
]);
|
|
3116
|
-
return /* @__PURE__ */ (0,
|
|
3256
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3117
3257
|
import_radix_ui13.DropdownMenu.Separator,
|
|
3118
3258
|
__spreadValues({
|
|
3119
3259
|
"data-slot": "dropdown-menu-separator",
|
|
@@ -3127,7 +3267,7 @@ function DropdownMenuShortcut(_a) {
|
|
|
3127
3267
|
} = _b, props = __objRest(_b, [
|
|
3128
3268
|
"className"
|
|
3129
3269
|
]);
|
|
3130
|
-
return /* @__PURE__ */ (0,
|
|
3270
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3131
3271
|
"span",
|
|
3132
3272
|
__spreadValues({
|
|
3133
3273
|
"data-slot": "dropdown-menu-shortcut",
|
|
@@ -3140,7 +3280,7 @@ function DropdownMenuShortcut(_a) {
|
|
|
3140
3280
|
}
|
|
3141
3281
|
function DropdownMenuSub(_a) {
|
|
3142
3282
|
var props = __objRest(_a, []);
|
|
3143
|
-
return /* @__PURE__ */ (0,
|
|
3283
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_radix_ui13.DropdownMenu.Sub, __spreadValues({ "data-slot": "dropdown-menu-sub" }, props));
|
|
3144
3284
|
}
|
|
3145
3285
|
function DropdownMenuSubTrigger(_a) {
|
|
3146
3286
|
var _b = _a, {
|
|
@@ -3152,7 +3292,7 @@ function DropdownMenuSubTrigger(_a) {
|
|
|
3152
3292
|
"inset",
|
|
3153
3293
|
"children"
|
|
3154
3294
|
]);
|
|
3155
|
-
return /* @__PURE__ */ (0,
|
|
3295
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
3156
3296
|
import_radix_ui13.DropdownMenu.SubTrigger,
|
|
3157
3297
|
__spreadProps(__spreadValues({
|
|
3158
3298
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
@@ -3164,7 +3304,7 @@ function DropdownMenuSubTrigger(_a) {
|
|
|
3164
3304
|
}, props), {
|
|
3165
3305
|
children: [
|
|
3166
3306
|
children,
|
|
3167
|
-
/* @__PURE__ */ (0,
|
|
3307
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react10.ChevronRightIcon, { className: "ml-auto size-4" })
|
|
3168
3308
|
]
|
|
3169
3309
|
})
|
|
3170
3310
|
);
|
|
@@ -3175,7 +3315,7 @@ function DropdownMenuSubContent(_a) {
|
|
|
3175
3315
|
} = _b, props = __objRest(_b, [
|
|
3176
3316
|
"className"
|
|
3177
3317
|
]);
|
|
3178
|
-
return /* @__PURE__ */ (0,
|
|
3318
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3179
3319
|
import_radix_ui13.DropdownMenu.SubContent,
|
|
3180
3320
|
__spreadValues({
|
|
3181
3321
|
"data-slot": "dropdown-menu-sub-content",
|
|
@@ -3188,11 +3328,11 @@ function DropdownMenuSubContent(_a) {
|
|
|
3188
3328
|
}
|
|
3189
3329
|
|
|
3190
3330
|
// components/ui/empty.tsx
|
|
3191
|
-
var
|
|
3192
|
-
var
|
|
3331
|
+
var import_class_variance_authority6 = require("class-variance-authority");
|
|
3332
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
3193
3333
|
function Empty(_a) {
|
|
3194
3334
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3195
|
-
return /* @__PURE__ */ (0,
|
|
3335
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3196
3336
|
"div",
|
|
3197
3337
|
__spreadValues({
|
|
3198
3338
|
"data-slot": "empty",
|
|
@@ -3205,7 +3345,7 @@ function Empty(_a) {
|
|
|
3205
3345
|
}
|
|
3206
3346
|
function EmptyHeader(_a) {
|
|
3207
3347
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3208
|
-
return /* @__PURE__ */ (0,
|
|
3348
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3209
3349
|
"div",
|
|
3210
3350
|
__spreadValues({
|
|
3211
3351
|
"data-slot": "empty-header",
|
|
@@ -3216,7 +3356,7 @@ function EmptyHeader(_a) {
|
|
|
3216
3356
|
}, props)
|
|
3217
3357
|
);
|
|
3218
3358
|
}
|
|
3219
|
-
var emptyMediaVariants = (0,
|
|
3359
|
+
var emptyMediaVariants = (0, import_class_variance_authority6.cva)(
|
|
3220
3360
|
"mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
3221
3361
|
{
|
|
3222
3362
|
variants: {
|
|
@@ -3238,7 +3378,7 @@ function EmptyMedia(_a) {
|
|
|
3238
3378
|
"className",
|
|
3239
3379
|
"variant"
|
|
3240
3380
|
]);
|
|
3241
|
-
return /* @__PURE__ */ (0,
|
|
3381
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3242
3382
|
"div",
|
|
3243
3383
|
__spreadValues({
|
|
3244
3384
|
"data-slot": "empty-icon",
|
|
@@ -3249,7 +3389,7 @@ function EmptyMedia(_a) {
|
|
|
3249
3389
|
}
|
|
3250
3390
|
function EmptyTitle(_a) {
|
|
3251
3391
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3252
|
-
return /* @__PURE__ */ (0,
|
|
3392
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3253
3393
|
"div",
|
|
3254
3394
|
__spreadValues({
|
|
3255
3395
|
"data-slot": "empty-title",
|
|
@@ -3259,7 +3399,7 @@ function EmptyTitle(_a) {
|
|
|
3259
3399
|
}
|
|
3260
3400
|
function EmptyDescription(_a) {
|
|
3261
3401
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3262
|
-
return /* @__PURE__ */ (0,
|
|
3402
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3263
3403
|
"div",
|
|
3264
3404
|
__spreadValues({
|
|
3265
3405
|
"data-slot": "empty-description",
|
|
@@ -3272,7 +3412,7 @@ function EmptyDescription(_a) {
|
|
|
3272
3412
|
}
|
|
3273
3413
|
function EmptyContent(_a) {
|
|
3274
3414
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3275
|
-
return /* @__PURE__ */ (0,
|
|
3415
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3276
3416
|
"div",
|
|
3277
3417
|
__spreadValues({
|
|
3278
3418
|
"data-slot": "empty-content",
|
|
@@ -3286,18 +3426,18 @@ function EmptyContent(_a) {
|
|
|
3286
3426
|
|
|
3287
3427
|
// components/ui/field.tsx
|
|
3288
3428
|
var import_react2 = require("react");
|
|
3289
|
-
var
|
|
3429
|
+
var import_class_variance_authority7 = require("class-variance-authority");
|
|
3290
3430
|
|
|
3291
3431
|
// components/ui/label.tsx
|
|
3292
3432
|
var import_radix_ui14 = require("radix-ui");
|
|
3293
|
-
var
|
|
3433
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
3294
3434
|
function Label(_a) {
|
|
3295
3435
|
var _b = _a, {
|
|
3296
3436
|
className
|
|
3297
3437
|
} = _b, props = __objRest(_b, [
|
|
3298
3438
|
"className"
|
|
3299
3439
|
]);
|
|
3300
|
-
return /* @__PURE__ */ (0,
|
|
3440
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3301
3441
|
import_radix_ui14.Label.Root,
|
|
3302
3442
|
__spreadValues({
|
|
3303
3443
|
"data-slot": "label",
|
|
@@ -3311,7 +3451,7 @@ function Label(_a) {
|
|
|
3311
3451
|
|
|
3312
3452
|
// components/ui/separator.tsx
|
|
3313
3453
|
var import_radix_ui15 = require("radix-ui");
|
|
3314
|
-
var
|
|
3454
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
3315
3455
|
function Separator(_a) {
|
|
3316
3456
|
var _b = _a, {
|
|
3317
3457
|
className,
|
|
@@ -3322,7 +3462,7 @@ function Separator(_a) {
|
|
|
3322
3462
|
"orientation",
|
|
3323
3463
|
"decorative"
|
|
3324
3464
|
]);
|
|
3325
|
-
return /* @__PURE__ */ (0,
|
|
3465
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3326
3466
|
import_radix_ui15.Separator.Root,
|
|
3327
3467
|
__spreadValues({
|
|
3328
3468
|
"data-slot": "separator",
|
|
@@ -3337,10 +3477,10 @@ function Separator(_a) {
|
|
|
3337
3477
|
}
|
|
3338
3478
|
|
|
3339
3479
|
// components/ui/field.tsx
|
|
3340
|
-
var
|
|
3480
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
3341
3481
|
function FieldSet(_a) {
|
|
3342
3482
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3343
|
-
return /* @__PURE__ */ (0,
|
|
3483
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3344
3484
|
"fieldset",
|
|
3345
3485
|
__spreadValues({
|
|
3346
3486
|
"data-slot": "field-set",
|
|
@@ -3360,7 +3500,7 @@ function FieldLegend(_a) {
|
|
|
3360
3500
|
"className",
|
|
3361
3501
|
"variant"
|
|
3362
3502
|
]);
|
|
3363
|
-
return /* @__PURE__ */ (0,
|
|
3503
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3364
3504
|
"legend",
|
|
3365
3505
|
__spreadValues({
|
|
3366
3506
|
"data-slot": "field-legend",
|
|
@@ -3376,7 +3516,7 @@ function FieldLegend(_a) {
|
|
|
3376
3516
|
}
|
|
3377
3517
|
function FieldGroup(_a) {
|
|
3378
3518
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3379
|
-
return /* @__PURE__ */ (0,
|
|
3519
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3380
3520
|
"div",
|
|
3381
3521
|
__spreadValues({
|
|
3382
3522
|
"data-slot": "field-group",
|
|
@@ -3387,7 +3527,7 @@ function FieldGroup(_a) {
|
|
|
3387
3527
|
}, props)
|
|
3388
3528
|
);
|
|
3389
3529
|
}
|
|
3390
|
-
var fieldVariants = (0,
|
|
3530
|
+
var fieldVariants = (0, import_class_variance_authority7.cva)(
|
|
3391
3531
|
"group/field flex w-full gap-3 data-[invalid=true]:text-destructive",
|
|
3392
3532
|
{
|
|
3393
3533
|
variants: {
|
|
@@ -3418,7 +3558,7 @@ function Field(_a) {
|
|
|
3418
3558
|
"className",
|
|
3419
3559
|
"orientation"
|
|
3420
3560
|
]);
|
|
3421
|
-
return /* @__PURE__ */ (0,
|
|
3561
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3422
3562
|
"div",
|
|
3423
3563
|
__spreadValues({
|
|
3424
3564
|
role: "group",
|
|
@@ -3430,7 +3570,7 @@ function Field(_a) {
|
|
|
3430
3570
|
}
|
|
3431
3571
|
function FieldContent(_a) {
|
|
3432
3572
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3433
|
-
return /* @__PURE__ */ (0,
|
|
3573
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3434
3574
|
"div",
|
|
3435
3575
|
__spreadValues({
|
|
3436
3576
|
"data-slot": "field-content",
|
|
@@ -3447,7 +3587,7 @@ function FieldLabel(_a) {
|
|
|
3447
3587
|
} = _b, props = __objRest(_b, [
|
|
3448
3588
|
"className"
|
|
3449
3589
|
]);
|
|
3450
|
-
return /* @__PURE__ */ (0,
|
|
3590
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3451
3591
|
Label,
|
|
3452
3592
|
__spreadValues({
|
|
3453
3593
|
"data-slot": "field-label",
|
|
@@ -3462,7 +3602,7 @@ function FieldLabel(_a) {
|
|
|
3462
3602
|
}
|
|
3463
3603
|
function FieldTitle(_a) {
|
|
3464
3604
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3465
|
-
return /* @__PURE__ */ (0,
|
|
3605
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3466
3606
|
"div",
|
|
3467
3607
|
__spreadValues({
|
|
3468
3608
|
"data-slot": "field-label",
|
|
@@ -3475,7 +3615,7 @@ function FieldTitle(_a) {
|
|
|
3475
3615
|
}
|
|
3476
3616
|
function FieldDescription(_a) {
|
|
3477
3617
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3478
|
-
return /* @__PURE__ */ (0,
|
|
3618
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3479
3619
|
"p",
|
|
3480
3620
|
__spreadValues({
|
|
3481
3621
|
"data-slot": "field-description",
|
|
@@ -3496,7 +3636,7 @@ function FieldSeparator(_a) {
|
|
|
3496
3636
|
"children",
|
|
3497
3637
|
"className"
|
|
3498
3638
|
]);
|
|
3499
|
-
return /* @__PURE__ */ (0,
|
|
3639
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
3500
3640
|
"div",
|
|
3501
3641
|
__spreadProps(__spreadValues({
|
|
3502
3642
|
"data-slot": "field-separator",
|
|
@@ -3507,8 +3647,8 @@ function FieldSeparator(_a) {
|
|
|
3507
3647
|
)
|
|
3508
3648
|
}, props), {
|
|
3509
3649
|
children: [
|
|
3510
|
-
/* @__PURE__ */ (0,
|
|
3511
|
-
children && /* @__PURE__ */ (0,
|
|
3650
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Separator, { className: "absolute inset-0 top-1/2" }),
|
|
3651
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3512
3652
|
"span",
|
|
3513
3653
|
{
|
|
3514
3654
|
className: "relative mx-auto block w-fit bg-prominent px-2 text-on-subtle",
|
|
@@ -3544,14 +3684,14 @@ function FieldError(_a) {
|
|
|
3544
3684
|
if ((uniqueErrors == null ? void 0 : uniqueErrors.length) == 1) {
|
|
3545
3685
|
return (_a2 = uniqueErrors[0]) == null ? void 0 : _a2.message;
|
|
3546
3686
|
}
|
|
3547
|
-
return /* @__PURE__ */ (0,
|
|
3548
|
-
(error, index) => (error == null ? void 0 : error.message) && /* @__PURE__ */ (0,
|
|
3687
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: uniqueErrors.map(
|
|
3688
|
+
(error, index) => (error == null ? void 0 : error.message) && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("li", { children: error.message }, index)
|
|
3549
3689
|
) });
|
|
3550
3690
|
}, [children, errors]);
|
|
3551
3691
|
if (!content) {
|
|
3552
3692
|
return null;
|
|
3553
3693
|
}
|
|
3554
|
-
return /* @__PURE__ */ (0,
|
|
3694
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3555
3695
|
"div",
|
|
3556
3696
|
__spreadProps(__spreadValues({
|
|
3557
3697
|
role: "alert",
|
|
@@ -3564,21 +3704,21 @@ function FieldError(_a) {
|
|
|
3564
3704
|
}
|
|
3565
3705
|
|
|
3566
3706
|
// components/ui/form.tsx
|
|
3567
|
-
var
|
|
3707
|
+
var React6 = __toESM(require("react"), 1);
|
|
3568
3708
|
var import_radix_ui16 = require("radix-ui");
|
|
3569
3709
|
var import_react_hook_form = require("react-hook-form");
|
|
3570
|
-
var
|
|
3710
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
3571
3711
|
var Form = import_react_hook_form.FormProvider;
|
|
3572
|
-
var FormFieldContext =
|
|
3712
|
+
var FormFieldContext = React6.createContext(
|
|
3573
3713
|
{}
|
|
3574
3714
|
);
|
|
3575
3715
|
var FormField = (_a) => {
|
|
3576
3716
|
var props = __objRest(_a, []);
|
|
3577
|
-
return /* @__PURE__ */ (0,
|
|
3717
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react_hook_form.Controller, __spreadValues({}, props)) });
|
|
3578
3718
|
};
|
|
3579
3719
|
var useFormField = () => {
|
|
3580
|
-
const fieldContext =
|
|
3581
|
-
const itemContext =
|
|
3720
|
+
const fieldContext = React6.useContext(FormFieldContext);
|
|
3721
|
+
const itemContext = React6.useContext(FormItemContext);
|
|
3582
3722
|
const { getFieldState } = (0, import_react_hook_form.useFormContext)();
|
|
3583
3723
|
const formState = (0, import_react_hook_form.useFormState)({ name: fieldContext.name });
|
|
3584
3724
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
@@ -3594,13 +3734,13 @@ var useFormField = () => {
|
|
|
3594
3734
|
formMessageId: `${id}-form-item-message`
|
|
3595
3735
|
}, fieldState);
|
|
3596
3736
|
};
|
|
3597
|
-
var FormItemContext =
|
|
3737
|
+
var FormItemContext = React6.createContext(
|
|
3598
3738
|
{}
|
|
3599
3739
|
);
|
|
3600
3740
|
function FormItem(_a) {
|
|
3601
3741
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3602
|
-
const id =
|
|
3603
|
-
return /* @__PURE__ */ (0,
|
|
3742
|
+
const id = React6.useId();
|
|
3743
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3604
3744
|
"div",
|
|
3605
3745
|
__spreadValues({
|
|
3606
3746
|
"data-slot": "form-item",
|
|
@@ -3615,7 +3755,7 @@ function FormLabel(_a) {
|
|
|
3615
3755
|
"className"
|
|
3616
3756
|
]);
|
|
3617
3757
|
const { error, formItemId } = useFormField();
|
|
3618
|
-
return /* @__PURE__ */ (0,
|
|
3758
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3619
3759
|
Label,
|
|
3620
3760
|
__spreadValues({
|
|
3621
3761
|
"data-slot": "form-label",
|
|
@@ -3628,7 +3768,7 @@ function FormLabel(_a) {
|
|
|
3628
3768
|
function FormControl(_a) {
|
|
3629
3769
|
var props = __objRest(_a, []);
|
|
3630
3770
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
3631
|
-
return /* @__PURE__ */ (0,
|
|
3771
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3632
3772
|
import_radix_ui16.Slot.Root,
|
|
3633
3773
|
__spreadValues({
|
|
3634
3774
|
"data-slot": "form-control",
|
|
@@ -3641,7 +3781,7 @@ function FormControl(_a) {
|
|
|
3641
3781
|
function FormDescription(_a) {
|
|
3642
3782
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3643
3783
|
const { formDescriptionId } = useFormField();
|
|
3644
|
-
return /* @__PURE__ */ (0,
|
|
3784
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3645
3785
|
"p",
|
|
3646
3786
|
__spreadValues({
|
|
3647
3787
|
"data-slot": "form-description",
|
|
@@ -3658,7 +3798,7 @@ function FormMessage(_a) {
|
|
|
3658
3798
|
if (!body) {
|
|
3659
3799
|
return null;
|
|
3660
3800
|
}
|
|
3661
|
-
return /* @__PURE__ */ (0,
|
|
3801
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3662
3802
|
"p",
|
|
3663
3803
|
__spreadProps(__spreadValues({
|
|
3664
3804
|
"data-slot": "form-message",
|
|
@@ -3672,14 +3812,14 @@ function FormMessage(_a) {
|
|
|
3672
3812
|
|
|
3673
3813
|
// components/ui/hover-card.tsx
|
|
3674
3814
|
var import_radix_ui17 = require("radix-ui");
|
|
3675
|
-
var
|
|
3815
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
3676
3816
|
function HoverCard(_a) {
|
|
3677
3817
|
var props = __objRest(_a, []);
|
|
3678
|
-
return /* @__PURE__ */ (0,
|
|
3818
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_radix_ui17.HoverCard.Root, __spreadValues({ "data-slot": "hover-card" }, props));
|
|
3679
3819
|
}
|
|
3680
3820
|
function HoverCardTrigger(_a) {
|
|
3681
3821
|
var props = __objRest(_a, []);
|
|
3682
|
-
return /* @__PURE__ */ (0,
|
|
3822
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_radix_ui17.HoverCard.Trigger, __spreadValues({ "data-slot": "hover-card-trigger" }, props));
|
|
3683
3823
|
}
|
|
3684
3824
|
function HoverCardContent(_a) {
|
|
3685
3825
|
var _b = _a, {
|
|
@@ -3691,7 +3831,7 @@ function HoverCardContent(_a) {
|
|
|
3691
3831
|
"align",
|
|
3692
3832
|
"sideOffset"
|
|
3693
3833
|
]);
|
|
3694
|
-
return /* @__PURE__ */ (0,
|
|
3834
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_radix_ui17.HoverCard.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3695
3835
|
import_radix_ui17.HoverCard.Content,
|
|
3696
3836
|
__spreadValues({
|
|
3697
3837
|
"data-slot": "hover-card-content",
|
|
@@ -3706,10 +3846,10 @@ function HoverCardContent(_a) {
|
|
|
3706
3846
|
}
|
|
3707
3847
|
|
|
3708
3848
|
// components/ui/input-otp.tsx
|
|
3709
|
-
var
|
|
3849
|
+
var React7 = __toESM(require("react"), 1);
|
|
3710
3850
|
var import_input_otp = require("input-otp");
|
|
3711
3851
|
var import_lucide_react11 = require("lucide-react");
|
|
3712
|
-
var
|
|
3852
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
3713
3853
|
function InputOTP(_a) {
|
|
3714
3854
|
var _b = _a, {
|
|
3715
3855
|
className,
|
|
@@ -3718,7 +3858,7 @@ function InputOTP(_a) {
|
|
|
3718
3858
|
"className",
|
|
3719
3859
|
"containerClassName"
|
|
3720
3860
|
]);
|
|
3721
|
-
return /* @__PURE__ */ (0,
|
|
3861
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3722
3862
|
import_input_otp.OTPInput,
|
|
3723
3863
|
__spreadValues({
|
|
3724
3864
|
"data-slot": "input-otp",
|
|
@@ -3732,7 +3872,7 @@ function InputOTP(_a) {
|
|
|
3732
3872
|
}
|
|
3733
3873
|
function InputOTPGroup(_a) {
|
|
3734
3874
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3735
|
-
return /* @__PURE__ */ (0,
|
|
3875
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3736
3876
|
"div",
|
|
3737
3877
|
__spreadValues({
|
|
3738
3878
|
"data-slot": "input-otp-group",
|
|
@@ -3749,9 +3889,9 @@ function InputOTPSlot(_a) {
|
|
|
3749
3889
|
"className"
|
|
3750
3890
|
]);
|
|
3751
3891
|
var _a2;
|
|
3752
|
-
const inputOTPContext =
|
|
3892
|
+
const inputOTPContext = React7.useContext(import_input_otp.OTPInputContext);
|
|
3753
3893
|
const { char, hasFakeCaret, isActive } = (_a2 = inputOTPContext == null ? void 0 : inputOTPContext.slots[index]) != null ? _a2 : {};
|
|
3754
|
-
return /* @__PURE__ */ (0,
|
|
3894
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
3755
3895
|
"div",
|
|
3756
3896
|
__spreadProps(__spreadValues({
|
|
3757
3897
|
"data-slot": "input-otp-slot",
|
|
@@ -3763,23 +3903,23 @@ function InputOTPSlot(_a) {
|
|
|
3763
3903
|
}, props), {
|
|
3764
3904
|
children: [
|
|
3765
3905
|
char,
|
|
3766
|
-
hasFakeCaret && /* @__PURE__ */ (0,
|
|
3906
|
+
hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
|
|
3767
3907
|
]
|
|
3768
3908
|
})
|
|
3769
3909
|
);
|
|
3770
3910
|
}
|
|
3771
3911
|
function InputOTPSeparator(_a) {
|
|
3772
3912
|
var props = __objRest(_a, []);
|
|
3773
|
-
return /* @__PURE__ */ (0,
|
|
3913
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", __spreadProps(__spreadValues({ "data-slot": "input-otp-separator", role: "separator" }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react11.MinusIcon, {}) }));
|
|
3774
3914
|
}
|
|
3775
3915
|
|
|
3776
3916
|
// components/ui/item.tsx
|
|
3777
|
-
var
|
|
3917
|
+
var import_class_variance_authority8 = require("class-variance-authority");
|
|
3778
3918
|
var import_radix_ui18 = require("radix-ui");
|
|
3779
|
-
var
|
|
3919
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
3780
3920
|
function ItemGroup(_a) {
|
|
3781
3921
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3782
|
-
return /* @__PURE__ */ (0,
|
|
3922
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3783
3923
|
"div",
|
|
3784
3924
|
__spreadValues({
|
|
3785
3925
|
role: "list",
|
|
@@ -3794,7 +3934,7 @@ function ItemSeparator(_a) {
|
|
|
3794
3934
|
} = _b, props = __objRest(_b, [
|
|
3795
3935
|
"className"
|
|
3796
3936
|
]);
|
|
3797
|
-
return /* @__PURE__ */ (0,
|
|
3937
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3798
3938
|
Separator,
|
|
3799
3939
|
__spreadValues({
|
|
3800
3940
|
"data-slot": "item-separator",
|
|
@@ -3803,7 +3943,7 @@ function ItemSeparator(_a) {
|
|
|
3803
3943
|
}, props)
|
|
3804
3944
|
);
|
|
3805
3945
|
}
|
|
3806
|
-
var itemVariants = (0,
|
|
3946
|
+
var itemVariants = (0, import_class_variance_authority8.cva)(
|
|
3807
3947
|
"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",
|
|
3808
3948
|
{
|
|
3809
3949
|
variants: {
|
|
@@ -3836,7 +3976,7 @@ function Item(_a) {
|
|
|
3836
3976
|
"asChild"
|
|
3837
3977
|
]);
|
|
3838
3978
|
const Comp = asChild ? import_radix_ui18.Slot.Root : "div";
|
|
3839
|
-
return /* @__PURE__ */ (0,
|
|
3979
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3840
3980
|
Comp,
|
|
3841
3981
|
__spreadValues({
|
|
3842
3982
|
"data-slot": "item",
|
|
@@ -3846,7 +3986,7 @@ function Item(_a) {
|
|
|
3846
3986
|
}, props)
|
|
3847
3987
|
);
|
|
3848
3988
|
}
|
|
3849
|
-
var itemMediaVariants = (0,
|
|
3989
|
+
var itemMediaVariants = (0, import_class_variance_authority8.cva)(
|
|
3850
3990
|
"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",
|
|
3851
3991
|
{
|
|
3852
3992
|
variants: {
|
|
@@ -3869,7 +4009,7 @@ function ItemMedia(_a) {
|
|
|
3869
4009
|
"className",
|
|
3870
4010
|
"variant"
|
|
3871
4011
|
]);
|
|
3872
|
-
return /* @__PURE__ */ (0,
|
|
4012
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3873
4013
|
"div",
|
|
3874
4014
|
__spreadValues({
|
|
3875
4015
|
"data-slot": "item-media",
|
|
@@ -3880,7 +4020,7 @@ function ItemMedia(_a) {
|
|
|
3880
4020
|
}
|
|
3881
4021
|
function ItemContent(_a) {
|
|
3882
4022
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3883
|
-
return /* @__PURE__ */ (0,
|
|
4023
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3884
4024
|
"div",
|
|
3885
4025
|
__spreadValues({
|
|
3886
4026
|
"data-slot": "item-content",
|
|
@@ -3893,7 +4033,7 @@ function ItemContent(_a) {
|
|
|
3893
4033
|
}
|
|
3894
4034
|
function ItemTitle(_a) {
|
|
3895
4035
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3896
|
-
return /* @__PURE__ */ (0,
|
|
4036
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3897
4037
|
"div",
|
|
3898
4038
|
__spreadValues({
|
|
3899
4039
|
"data-slot": "item-title",
|
|
@@ -3906,7 +4046,7 @@ function ItemTitle(_a) {
|
|
|
3906
4046
|
}
|
|
3907
4047
|
function ItemDescription(_a) {
|
|
3908
4048
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3909
|
-
return /* @__PURE__ */ (0,
|
|
4049
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3910
4050
|
"p",
|
|
3911
4051
|
__spreadValues({
|
|
3912
4052
|
"data-slot": "item-description",
|
|
@@ -3920,7 +4060,7 @@ function ItemDescription(_a) {
|
|
|
3920
4060
|
}
|
|
3921
4061
|
function ItemActions(_a) {
|
|
3922
4062
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3923
|
-
return /* @__PURE__ */ (0,
|
|
4063
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3924
4064
|
"div",
|
|
3925
4065
|
__spreadValues({
|
|
3926
4066
|
"data-slot": "item-actions",
|
|
@@ -3930,7 +4070,7 @@ function ItemActions(_a) {
|
|
|
3930
4070
|
}
|
|
3931
4071
|
function ItemHeader(_a) {
|
|
3932
4072
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3933
|
-
return /* @__PURE__ */ (0,
|
|
4073
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3934
4074
|
"div",
|
|
3935
4075
|
__spreadValues({
|
|
3936
4076
|
"data-slot": "item-header",
|
|
@@ -3943,7 +4083,7 @@ function ItemHeader(_a) {
|
|
|
3943
4083
|
}
|
|
3944
4084
|
function ItemFooter(_a) {
|
|
3945
4085
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3946
|
-
return /* @__PURE__ */ (0,
|
|
4086
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3947
4087
|
"div",
|
|
3948
4088
|
__spreadValues({
|
|
3949
4089
|
"data-slot": "item-footer",
|
|
@@ -3956,10 +4096,10 @@ function ItemFooter(_a) {
|
|
|
3956
4096
|
}
|
|
3957
4097
|
|
|
3958
4098
|
// components/ui/kbd.tsx
|
|
3959
|
-
var
|
|
4099
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
3960
4100
|
function Kbd(_a) {
|
|
3961
4101
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3962
|
-
return /* @__PURE__ */ (0,
|
|
4102
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3963
4103
|
"kbd",
|
|
3964
4104
|
__spreadValues({
|
|
3965
4105
|
"data-slot": "kbd",
|
|
@@ -3974,7 +4114,7 @@ function Kbd(_a) {
|
|
|
3974
4114
|
}
|
|
3975
4115
|
function KbdGroup(_a) {
|
|
3976
4116
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3977
|
-
return /* @__PURE__ */ (0,
|
|
4117
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3978
4118
|
"kbd",
|
|
3979
4119
|
__spreadValues({
|
|
3980
4120
|
"data-slot": "kbd-group",
|
|
@@ -3984,10 +4124,10 @@ function KbdGroup(_a) {
|
|
|
3984
4124
|
}
|
|
3985
4125
|
|
|
3986
4126
|
// components/ui/link.tsx
|
|
3987
|
-
var
|
|
4127
|
+
var import_class_variance_authority9 = require("class-variance-authority");
|
|
3988
4128
|
var import_radix_ui19 = require("radix-ui");
|
|
3989
|
-
var
|
|
3990
|
-
var linkVariants = (0,
|
|
4129
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
4130
|
+
var linkVariants = (0, import_class_variance_authority9.cva)(
|
|
3991
4131
|
"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",
|
|
3992
4132
|
{
|
|
3993
4133
|
variants: {
|
|
@@ -4013,7 +4153,7 @@ function Link(_a) {
|
|
|
4013
4153
|
"asChild"
|
|
4014
4154
|
]);
|
|
4015
4155
|
const Comp = asChild ? import_radix_ui19.Slot.Root : "a";
|
|
4016
|
-
return /* @__PURE__ */ (0,
|
|
4156
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
4017
4157
|
Comp,
|
|
4018
4158
|
__spreadValues({
|
|
4019
4159
|
"data-slot": "link",
|
|
@@ -4026,14 +4166,14 @@ function Link(_a) {
|
|
|
4026
4166
|
// components/ui/menubar.tsx
|
|
4027
4167
|
var import_lucide_react12 = require("lucide-react");
|
|
4028
4168
|
var import_radix_ui20 = require("radix-ui");
|
|
4029
|
-
var
|
|
4169
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
4030
4170
|
function Menubar(_a) {
|
|
4031
4171
|
var _b = _a, {
|
|
4032
4172
|
className
|
|
4033
4173
|
} = _b, props = __objRest(_b, [
|
|
4034
4174
|
"className"
|
|
4035
4175
|
]);
|
|
4036
|
-
return /* @__PURE__ */ (0,
|
|
4176
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
4037
4177
|
import_radix_ui20.Menubar.Root,
|
|
4038
4178
|
__spreadValues({
|
|
4039
4179
|
"data-slot": "menubar",
|
|
@@ -4046,19 +4186,19 @@ function Menubar(_a) {
|
|
|
4046
4186
|
}
|
|
4047
4187
|
function MenubarMenu(_a) {
|
|
4048
4188
|
var props = __objRest(_a, []);
|
|
4049
|
-
return /* @__PURE__ */ (0,
|
|
4189
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_radix_ui20.Menubar.Menu, __spreadValues({ "data-slot": "menubar-menu" }, props));
|
|
4050
4190
|
}
|
|
4051
4191
|
function MenubarGroup(_a) {
|
|
4052
4192
|
var props = __objRest(_a, []);
|
|
4053
|
-
return /* @__PURE__ */ (0,
|
|
4193
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_radix_ui20.Menubar.Group, __spreadValues({ "data-slot": "menubar-group" }, props));
|
|
4054
4194
|
}
|
|
4055
4195
|
function MenubarPortal(_a) {
|
|
4056
4196
|
var props = __objRest(_a, []);
|
|
4057
|
-
return /* @__PURE__ */ (0,
|
|
4197
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_radix_ui20.Menubar.Portal, __spreadValues({ "data-slot": "menubar-portal" }, props));
|
|
4058
4198
|
}
|
|
4059
4199
|
function MenubarRadioGroup(_a) {
|
|
4060
4200
|
var props = __objRest(_a, []);
|
|
4061
|
-
return /* @__PURE__ */ (0,
|
|
4201
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_radix_ui20.Menubar.RadioGroup, __spreadValues({ "data-slot": "menubar-radio-group" }, props));
|
|
4062
4202
|
}
|
|
4063
4203
|
function MenubarTrigger(_a) {
|
|
4064
4204
|
var _b = _a, {
|
|
@@ -4066,7 +4206,7 @@ function MenubarTrigger(_a) {
|
|
|
4066
4206
|
} = _b, props = __objRest(_b, [
|
|
4067
4207
|
"className"
|
|
4068
4208
|
]);
|
|
4069
|
-
return /* @__PURE__ */ (0,
|
|
4209
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
4070
4210
|
import_radix_ui20.Menubar.Trigger,
|
|
4071
4211
|
__spreadValues({
|
|
4072
4212
|
"data-slot": "menubar-trigger",
|
|
@@ -4089,7 +4229,7 @@ function MenubarContent(_a) {
|
|
|
4089
4229
|
"alignOffset",
|
|
4090
4230
|
"sideOffset"
|
|
4091
4231
|
]);
|
|
4092
|
-
return /* @__PURE__ */ (0,
|
|
4232
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(MenubarPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
4093
4233
|
import_radix_ui20.Menubar.Content,
|
|
4094
4234
|
__spreadValues({
|
|
4095
4235
|
"data-slot": "menubar-content",
|
|
@@ -4113,7 +4253,7 @@ function MenubarItem(_a) {
|
|
|
4113
4253
|
"inset",
|
|
4114
4254
|
"variant"
|
|
4115
4255
|
]);
|
|
4116
|
-
return /* @__PURE__ */ (0,
|
|
4256
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
4117
4257
|
import_radix_ui20.Menubar.Item,
|
|
4118
4258
|
__spreadValues({
|
|
4119
4259
|
"data-slot": "menubar-item",
|
|
@@ -4136,7 +4276,7 @@ function MenubarCheckboxItem(_a) {
|
|
|
4136
4276
|
"children",
|
|
4137
4277
|
"checked"
|
|
4138
4278
|
]);
|
|
4139
|
-
return /* @__PURE__ */ (0,
|
|
4279
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
4140
4280
|
import_radix_ui20.Menubar.CheckboxItem,
|
|
4141
4281
|
__spreadProps(__spreadValues({
|
|
4142
4282
|
"data-slot": "menubar-checkbox-item",
|
|
@@ -4147,7 +4287,7 @@ function MenubarCheckboxItem(_a) {
|
|
|
4147
4287
|
checked
|
|
4148
4288
|
}, props), {
|
|
4149
4289
|
children: [
|
|
4150
|
-
/* @__PURE__ */ (0,
|
|
4290
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_radix_ui20.Menubar.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react12.CheckIcon, { className: "size-4" }) }) }),
|
|
4151
4291
|
children
|
|
4152
4292
|
]
|
|
4153
4293
|
})
|
|
@@ -4161,7 +4301,7 @@ function MenubarRadioItem(_a) {
|
|
|
4161
4301
|
"className",
|
|
4162
4302
|
"children"
|
|
4163
4303
|
]);
|
|
4164
|
-
return /* @__PURE__ */ (0,
|
|
4304
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
4165
4305
|
import_radix_ui20.Menubar.RadioItem,
|
|
4166
4306
|
__spreadProps(__spreadValues({
|
|
4167
4307
|
"data-slot": "menubar-radio-item",
|
|
@@ -4171,7 +4311,7 @@ function MenubarRadioItem(_a) {
|
|
|
4171
4311
|
)
|
|
4172
4312
|
}, props), {
|
|
4173
4313
|
children: [
|
|
4174
|
-
/* @__PURE__ */ (0,
|
|
4314
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_radix_ui20.Menubar.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react12.CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
4175
4315
|
children
|
|
4176
4316
|
]
|
|
4177
4317
|
})
|
|
@@ -4185,7 +4325,7 @@ function MenubarLabel(_a) {
|
|
|
4185
4325
|
"className",
|
|
4186
4326
|
"inset"
|
|
4187
4327
|
]);
|
|
4188
|
-
return /* @__PURE__ */ (0,
|
|
4328
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
4189
4329
|
import_radix_ui20.Menubar.Label,
|
|
4190
4330
|
__spreadValues({
|
|
4191
4331
|
"data-slot": "menubar-label",
|
|
@@ -4203,7 +4343,7 @@ function MenubarSeparator(_a) {
|
|
|
4203
4343
|
} = _b, props = __objRest(_b, [
|
|
4204
4344
|
"className"
|
|
4205
4345
|
]);
|
|
4206
|
-
return /* @__PURE__ */ (0,
|
|
4346
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
4207
4347
|
import_radix_ui20.Menubar.Separator,
|
|
4208
4348
|
__spreadValues({
|
|
4209
4349
|
"data-slot": "menubar-separator",
|
|
@@ -4217,7 +4357,7 @@ function MenubarShortcut(_a) {
|
|
|
4217
4357
|
} = _b, props = __objRest(_b, [
|
|
4218
4358
|
"className"
|
|
4219
4359
|
]);
|
|
4220
|
-
return /* @__PURE__ */ (0,
|
|
4360
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
4221
4361
|
"span",
|
|
4222
4362
|
__spreadValues({
|
|
4223
4363
|
"data-slot": "menubar-shortcut",
|
|
@@ -4230,7 +4370,7 @@ function MenubarShortcut(_a) {
|
|
|
4230
4370
|
}
|
|
4231
4371
|
function MenubarSub(_a) {
|
|
4232
4372
|
var props = __objRest(_a, []);
|
|
4233
|
-
return /* @__PURE__ */ (0,
|
|
4373
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_radix_ui20.Menubar.Sub, __spreadValues({ "data-slot": "menubar-sub" }, props));
|
|
4234
4374
|
}
|
|
4235
4375
|
function MenubarSubTrigger(_a) {
|
|
4236
4376
|
var _b = _a, {
|
|
@@ -4242,7 +4382,7 @@ function MenubarSubTrigger(_a) {
|
|
|
4242
4382
|
"inset",
|
|
4243
4383
|
"children"
|
|
4244
4384
|
]);
|
|
4245
|
-
return /* @__PURE__ */ (0,
|
|
4385
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
4246
4386
|
import_radix_ui20.Menubar.SubTrigger,
|
|
4247
4387
|
__spreadProps(__spreadValues({
|
|
4248
4388
|
"data-slot": "menubar-sub-trigger",
|
|
@@ -4254,7 +4394,7 @@ function MenubarSubTrigger(_a) {
|
|
|
4254
4394
|
}, props), {
|
|
4255
4395
|
children: [
|
|
4256
4396
|
children,
|
|
4257
|
-
/* @__PURE__ */ (0,
|
|
4397
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react12.ChevronRightIcon, { className: "ml-auto h-4 w-4" })
|
|
4258
4398
|
]
|
|
4259
4399
|
})
|
|
4260
4400
|
);
|
|
@@ -4265,7 +4405,7 @@ function MenubarSubContent(_a) {
|
|
|
4265
4405
|
} = _b, props = __objRest(_b, [
|
|
4266
4406
|
"className"
|
|
4267
4407
|
]);
|
|
4268
|
-
return /* @__PURE__ */ (0,
|
|
4408
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
4269
4409
|
import_radix_ui20.Menubar.SubContent,
|
|
4270
4410
|
__spreadValues({
|
|
4271
4411
|
"data-slot": "menubar-sub-content",
|
|
@@ -4279,7 +4419,7 @@ function MenubarSubContent(_a) {
|
|
|
4279
4419
|
|
|
4280
4420
|
// components/ui/native-select.tsx
|
|
4281
4421
|
var import_lucide_react13 = require("lucide-react");
|
|
4282
|
-
var
|
|
4422
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
4283
4423
|
function NativeSelect(_a) {
|
|
4284
4424
|
var _b = _a, {
|
|
4285
4425
|
className,
|
|
@@ -4288,13 +4428,13 @@ function NativeSelect(_a) {
|
|
|
4288
4428
|
"className",
|
|
4289
4429
|
"size"
|
|
4290
4430
|
]);
|
|
4291
|
-
return /* @__PURE__ */ (0,
|
|
4431
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
4292
4432
|
"div",
|
|
4293
4433
|
{
|
|
4294
4434
|
className: "group/native-select relative w-fit has-[select:disabled]:opacity-50",
|
|
4295
4435
|
"data-slot": "native-select-wrapper",
|
|
4296
4436
|
children: [
|
|
4297
|
-
/* @__PURE__ */ (0,
|
|
4437
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4298
4438
|
"select",
|
|
4299
4439
|
__spreadValues({
|
|
4300
4440
|
"data-slot": "native-select",
|
|
@@ -4306,7 +4446,7 @@ function NativeSelect(_a) {
|
|
|
4306
4446
|
)
|
|
4307
4447
|
}, props)
|
|
4308
4448
|
),
|
|
4309
|
-
/* @__PURE__ */ (0,
|
|
4449
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4310
4450
|
import_lucide_react13.ChevronDownIcon,
|
|
4311
4451
|
{
|
|
4312
4452
|
className: "pointer-events-none absolute top-1/2 right-3.5 size-4 -translate-y-1/2 text-on-subtle opacity-50 select-none",
|
|
@@ -4320,7 +4460,7 @@ function NativeSelect(_a) {
|
|
|
4320
4460
|
}
|
|
4321
4461
|
function NativeSelectOption(_a) {
|
|
4322
4462
|
var props = __objRest(_a, []);
|
|
4323
|
-
return /* @__PURE__ */ (0,
|
|
4463
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("option", __spreadValues({ "data-slot": "native-select-option" }, props));
|
|
4324
4464
|
}
|
|
4325
4465
|
function NativeSelectOptGroup(_a) {
|
|
4326
4466
|
var _b = _a, {
|
|
@@ -4328,7 +4468,7 @@ function NativeSelectOptGroup(_a) {
|
|
|
4328
4468
|
} = _b, props = __objRest(_b, [
|
|
4329
4469
|
"className"
|
|
4330
4470
|
]);
|
|
4331
|
-
return /* @__PURE__ */ (0,
|
|
4471
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4332
4472
|
"optgroup",
|
|
4333
4473
|
__spreadValues({
|
|
4334
4474
|
"data-slot": "native-select-optgroup",
|
|
@@ -4338,10 +4478,10 @@ function NativeSelectOptGroup(_a) {
|
|
|
4338
4478
|
}
|
|
4339
4479
|
|
|
4340
4480
|
// components/ui/navigation-menu.tsx
|
|
4341
|
-
var
|
|
4481
|
+
var import_class_variance_authority10 = require("class-variance-authority");
|
|
4342
4482
|
var import_lucide_react14 = require("lucide-react");
|
|
4343
4483
|
var import_radix_ui21 = require("radix-ui");
|
|
4344
|
-
var
|
|
4484
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
4345
4485
|
function NavigationMenu(_a) {
|
|
4346
4486
|
var _b = _a, {
|
|
4347
4487
|
className,
|
|
@@ -4352,7 +4492,7 @@ function NavigationMenu(_a) {
|
|
|
4352
4492
|
"children",
|
|
4353
4493
|
"viewport"
|
|
4354
4494
|
]);
|
|
4355
|
-
return /* @__PURE__ */ (0,
|
|
4495
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
4356
4496
|
import_radix_ui21.NavigationMenu.Root,
|
|
4357
4497
|
__spreadProps(__spreadValues({
|
|
4358
4498
|
"data-slot": "navigation-menu",
|
|
@@ -4364,7 +4504,7 @@ function NavigationMenu(_a) {
|
|
|
4364
4504
|
}, props), {
|
|
4365
4505
|
children: [
|
|
4366
4506
|
children,
|
|
4367
|
-
viewport && /* @__PURE__ */ (0,
|
|
4507
|
+
viewport && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(NavigationMenuViewport, {})
|
|
4368
4508
|
]
|
|
4369
4509
|
})
|
|
4370
4510
|
);
|
|
@@ -4375,7 +4515,7 @@ function NavigationMenuList(_a) {
|
|
|
4375
4515
|
} = _b, props = __objRest(_b, [
|
|
4376
4516
|
"className"
|
|
4377
4517
|
]);
|
|
4378
|
-
return /* @__PURE__ */ (0,
|
|
4518
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4379
4519
|
import_radix_ui21.NavigationMenu.List,
|
|
4380
4520
|
__spreadValues({
|
|
4381
4521
|
"data-slot": "navigation-menu-list",
|
|
@@ -4392,7 +4532,7 @@ function NavigationMenuItem(_a) {
|
|
|
4392
4532
|
} = _b, props = __objRest(_b, [
|
|
4393
4533
|
"className"
|
|
4394
4534
|
]);
|
|
4395
|
-
return /* @__PURE__ */ (0,
|
|
4535
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4396
4536
|
import_radix_ui21.NavigationMenu.Item,
|
|
4397
4537
|
__spreadValues({
|
|
4398
4538
|
"data-slot": "navigation-menu-item",
|
|
@@ -4400,7 +4540,7 @@ function NavigationMenuItem(_a) {
|
|
|
4400
4540
|
}, props)
|
|
4401
4541
|
);
|
|
4402
4542
|
}
|
|
4403
|
-
var navigationMenuTriggerStyle = (0,
|
|
4543
|
+
var navigationMenuTriggerStyle = (0, import_class_variance_authority10.cva)(
|
|
4404
4544
|
"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"
|
|
4405
4545
|
);
|
|
4406
4546
|
function NavigationMenuTrigger(_a) {
|
|
@@ -4411,7 +4551,7 @@ function NavigationMenuTrigger(_a) {
|
|
|
4411
4551
|
"className",
|
|
4412
4552
|
"children"
|
|
4413
4553
|
]);
|
|
4414
|
-
return /* @__PURE__ */ (0,
|
|
4554
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
4415
4555
|
import_radix_ui21.NavigationMenu.Trigger,
|
|
4416
4556
|
__spreadProps(__spreadValues({
|
|
4417
4557
|
"data-slot": "navigation-menu-trigger",
|
|
@@ -4420,7 +4560,7 @@ function NavigationMenuTrigger(_a) {
|
|
|
4420
4560
|
children: [
|
|
4421
4561
|
children,
|
|
4422
4562
|
" ",
|
|
4423
|
-
/* @__PURE__ */ (0,
|
|
4563
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4424
4564
|
import_lucide_react14.ChevronDownIcon,
|
|
4425
4565
|
{
|
|
4426
4566
|
className: "relative top-[1px] ml-1 size-3 transition duration-slow group-data-[state=open]:rotate-180",
|
|
@@ -4437,7 +4577,7 @@ function NavigationMenuContent(_a) {
|
|
|
4437
4577
|
} = _b, props = __objRest(_b, [
|
|
4438
4578
|
"className"
|
|
4439
4579
|
]);
|
|
4440
|
-
return /* @__PURE__ */ (0,
|
|
4580
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4441
4581
|
import_radix_ui21.NavigationMenu.Content,
|
|
4442
4582
|
__spreadValues({
|
|
4443
4583
|
"data-slot": "navigation-menu-content",
|
|
@@ -4455,13 +4595,13 @@ function NavigationMenuViewport(_a) {
|
|
|
4455
4595
|
} = _b, props = __objRest(_b, [
|
|
4456
4596
|
"className"
|
|
4457
4597
|
]);
|
|
4458
|
-
return /* @__PURE__ */ (0,
|
|
4598
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4459
4599
|
"div",
|
|
4460
4600
|
{
|
|
4461
4601
|
className: cn(
|
|
4462
4602
|
"absolute top-full left-0 isolate z-50 flex justify-center"
|
|
4463
4603
|
),
|
|
4464
|
-
children: /* @__PURE__ */ (0,
|
|
4604
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4465
4605
|
import_radix_ui21.NavigationMenu.Viewport,
|
|
4466
4606
|
__spreadValues({
|
|
4467
4607
|
"data-slot": "navigation-menu-viewport",
|
|
@@ -4480,7 +4620,7 @@ function NavigationMenuLink(_a) {
|
|
|
4480
4620
|
} = _b, props = __objRest(_b, [
|
|
4481
4621
|
"className"
|
|
4482
4622
|
]);
|
|
4483
|
-
return /* @__PURE__ */ (0,
|
|
4623
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4484
4624
|
import_radix_ui21.NavigationMenu.Link,
|
|
4485
4625
|
__spreadValues({
|
|
4486
4626
|
"data-slot": "navigation-menu-link",
|
|
@@ -4497,7 +4637,7 @@ function NavigationMenuIndicator(_a) {
|
|
|
4497
4637
|
} = _b, props = __objRest(_b, [
|
|
4498
4638
|
"className"
|
|
4499
4639
|
]);
|
|
4500
|
-
return /* @__PURE__ */ (0,
|
|
4640
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4501
4641
|
import_radix_ui21.NavigationMenu.Indicator,
|
|
4502
4642
|
__spreadProps(__spreadValues({
|
|
4503
4643
|
"data-slot": "navigation-menu-indicator",
|
|
@@ -4506,17 +4646,17 @@ function NavigationMenuIndicator(_a) {
|
|
|
4506
4646
|
className
|
|
4507
4647
|
)
|
|
4508
4648
|
}, props), {
|
|
4509
|
-
children: /* @__PURE__ */ (0,
|
|
4649
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
4510
4650
|
})
|
|
4511
4651
|
);
|
|
4512
4652
|
}
|
|
4513
4653
|
|
|
4514
4654
|
// components/ui/pagination.tsx
|
|
4515
4655
|
var import_lucide_react15 = require("lucide-react");
|
|
4516
|
-
var
|
|
4656
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
4517
4657
|
function Pagination(_a) {
|
|
4518
4658
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4519
|
-
return /* @__PURE__ */ (0,
|
|
4659
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4520
4660
|
"nav",
|
|
4521
4661
|
__spreadValues({
|
|
4522
4662
|
role: "navigation",
|
|
@@ -4532,7 +4672,7 @@ function PaginationContent(_a) {
|
|
|
4532
4672
|
} = _b, props = __objRest(_b, [
|
|
4533
4673
|
"className"
|
|
4534
4674
|
]);
|
|
4535
|
-
return /* @__PURE__ */ (0,
|
|
4675
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4536
4676
|
"ul",
|
|
4537
4677
|
__spreadValues({
|
|
4538
4678
|
"data-slot": "pagination-content",
|
|
@@ -4542,7 +4682,7 @@ function PaginationContent(_a) {
|
|
|
4542
4682
|
}
|
|
4543
4683
|
function PaginationItem(_a) {
|
|
4544
4684
|
var props = __objRest(_a, []);
|
|
4545
|
-
return /* @__PURE__ */ (0,
|
|
4685
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("li", __spreadValues({ "data-slot": "pagination-item" }, props));
|
|
4546
4686
|
}
|
|
4547
4687
|
function PaginationLink(_a) {
|
|
4548
4688
|
var _b = _a, {
|
|
@@ -4554,7 +4694,7 @@ function PaginationLink(_a) {
|
|
|
4554
4694
|
"isActive",
|
|
4555
4695
|
"size"
|
|
4556
4696
|
]);
|
|
4557
|
-
return /* @__PURE__ */ (0,
|
|
4697
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4558
4698
|
"a",
|
|
4559
4699
|
__spreadValues({
|
|
4560
4700
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -4574,7 +4714,7 @@ function PaginationPrevious(_a) {
|
|
|
4574
4714
|
} = _b, props = __objRest(_b, [
|
|
4575
4715
|
"className"
|
|
4576
4716
|
]);
|
|
4577
|
-
return /* @__PURE__ */ (0,
|
|
4717
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Button, { asChild: true, variant: "tertiary", size: "icon-md", className: cn(className), children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("a", __spreadProps(__spreadValues({ "aria-label": "Go to previous page", "data-slot": "pagination-link" }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react15.ChevronLeftIcon, { className: "size-5" }) })) });
|
|
4578
4718
|
}
|
|
4579
4719
|
function PaginationNext(_a) {
|
|
4580
4720
|
var _b = _a, {
|
|
@@ -4582,7 +4722,7 @@ function PaginationNext(_a) {
|
|
|
4582
4722
|
} = _b, props = __objRest(_b, [
|
|
4583
4723
|
"className"
|
|
4584
4724
|
]);
|
|
4585
|
-
return /* @__PURE__ */ (0,
|
|
4725
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Button, { asChild: true, variant: "tertiary", size: "icon-md", className: cn(className), children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("a", __spreadProps(__spreadValues({ "aria-label": "Go to next page", "data-slot": "pagination-link" }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react15.ChevronRightIcon, { className: "size-5" }) })) });
|
|
4586
4726
|
}
|
|
4587
4727
|
function PaginationEllipsis(_a) {
|
|
4588
4728
|
var _b = _a, {
|
|
@@ -4590,7 +4730,7 @@ function PaginationEllipsis(_a) {
|
|
|
4590
4730
|
} = _b, props = __objRest(_b, [
|
|
4591
4731
|
"className"
|
|
4592
4732
|
]);
|
|
4593
|
-
return /* @__PURE__ */ (0,
|
|
4733
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
4594
4734
|
"span",
|
|
4595
4735
|
__spreadProps(__spreadValues({
|
|
4596
4736
|
"aria-hidden": true,
|
|
@@ -4598,8 +4738,8 @@ function PaginationEllipsis(_a) {
|
|
|
4598
4738
|
className: cn("flex size-10 items-center justify-center", className)
|
|
4599
4739
|
}, props), {
|
|
4600
4740
|
children: [
|
|
4601
|
-
/* @__PURE__ */ (0,
|
|
4602
|
-
/* @__PURE__ */ (0,
|
|
4741
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react15.MoreHorizontalIcon, { className: "size-4" }),
|
|
4742
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "sr-only", children: "More pages" })
|
|
4603
4743
|
]
|
|
4604
4744
|
})
|
|
4605
4745
|
);
|
|
@@ -4607,14 +4747,14 @@ function PaginationEllipsis(_a) {
|
|
|
4607
4747
|
|
|
4608
4748
|
// components/ui/popover.tsx
|
|
4609
4749
|
var import_radix_ui22 = require("radix-ui");
|
|
4610
|
-
var
|
|
4750
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
4611
4751
|
function Popover(_a) {
|
|
4612
4752
|
var props = __objRest(_a, []);
|
|
4613
|
-
return /* @__PURE__ */ (0,
|
|
4753
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_radix_ui22.Popover.Root, __spreadValues({ "data-slot": "popover" }, props));
|
|
4614
4754
|
}
|
|
4615
4755
|
function PopoverTrigger(_a) {
|
|
4616
4756
|
var props = __objRest(_a, []);
|
|
4617
|
-
return /* @__PURE__ */ (0,
|
|
4757
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_radix_ui22.Popover.Trigger, __spreadValues({ "data-slot": "popover-trigger" }, props));
|
|
4618
4758
|
}
|
|
4619
4759
|
function PopoverContent(_a) {
|
|
4620
4760
|
var _b = _a, {
|
|
@@ -4626,7 +4766,7 @@ function PopoverContent(_a) {
|
|
|
4626
4766
|
"align",
|
|
4627
4767
|
"sideOffset"
|
|
4628
4768
|
]);
|
|
4629
|
-
return /* @__PURE__ */ (0,
|
|
4769
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_radix_ui22.Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4630
4770
|
import_radix_ui22.Popover.Content,
|
|
4631
4771
|
__spreadValues({
|
|
4632
4772
|
"data-slot": "popover-content",
|
|
@@ -4641,11 +4781,11 @@ function PopoverContent(_a) {
|
|
|
4641
4781
|
}
|
|
4642
4782
|
function PopoverAnchor(_a) {
|
|
4643
4783
|
var props = __objRest(_a, []);
|
|
4644
|
-
return /* @__PURE__ */ (0,
|
|
4784
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_radix_ui22.Popover.Anchor, __spreadValues({ "data-slot": "popover-anchor" }, props));
|
|
4645
4785
|
}
|
|
4646
4786
|
function PopoverHeader(_a) {
|
|
4647
4787
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4648
|
-
return /* @__PURE__ */ (0,
|
|
4788
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4649
4789
|
"div",
|
|
4650
4790
|
__spreadValues({
|
|
4651
4791
|
"data-slot": "popover-header",
|
|
@@ -4655,7 +4795,7 @@ function PopoverHeader(_a) {
|
|
|
4655
4795
|
}
|
|
4656
4796
|
function PopoverTitle(_a) {
|
|
4657
4797
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4658
|
-
return /* @__PURE__ */ (0,
|
|
4798
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4659
4799
|
"div",
|
|
4660
4800
|
__spreadValues({
|
|
4661
4801
|
"data-slot": "popover-title",
|
|
@@ -4669,7 +4809,7 @@ function PopoverDescription(_a) {
|
|
|
4669
4809
|
} = _b, props = __objRest(_b, [
|
|
4670
4810
|
"className"
|
|
4671
4811
|
]);
|
|
4672
|
-
return /* @__PURE__ */ (0,
|
|
4812
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4673
4813
|
"p",
|
|
4674
4814
|
__spreadValues({
|
|
4675
4815
|
"data-slot": "popover-description",
|
|
@@ -4680,7 +4820,7 @@ function PopoverDescription(_a) {
|
|
|
4680
4820
|
|
|
4681
4821
|
// components/ui/progress.tsx
|
|
4682
4822
|
var import_radix_ui23 = require("radix-ui");
|
|
4683
|
-
var
|
|
4823
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
4684
4824
|
function Progress(_a) {
|
|
4685
4825
|
var _b = _a, {
|
|
4686
4826
|
className,
|
|
@@ -4689,7 +4829,7 @@ function Progress(_a) {
|
|
|
4689
4829
|
"className",
|
|
4690
4830
|
"value"
|
|
4691
4831
|
]);
|
|
4692
|
-
return /* @__PURE__ */ (0,
|
|
4832
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4693
4833
|
import_radix_ui23.Progress.Root,
|
|
4694
4834
|
__spreadProps(__spreadValues({
|
|
4695
4835
|
"data-slot": "progress",
|
|
@@ -4698,7 +4838,7 @@ function Progress(_a) {
|
|
|
4698
4838
|
className
|
|
4699
4839
|
)
|
|
4700
4840
|
}, props), {
|
|
4701
|
-
children: /* @__PURE__ */ (0,
|
|
4841
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4702
4842
|
import_radix_ui23.Progress.Indicator,
|
|
4703
4843
|
{
|
|
4704
4844
|
"data-slot": "progress-indicator",
|
|
@@ -4713,14 +4853,14 @@ function Progress(_a) {
|
|
|
4713
4853
|
// components/ui/radio-group.tsx
|
|
4714
4854
|
var import_lucide_react16 = require("lucide-react");
|
|
4715
4855
|
var import_radix_ui24 = require("radix-ui");
|
|
4716
|
-
var
|
|
4856
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
4717
4857
|
function RadioGroup(_a) {
|
|
4718
4858
|
var _b = _a, {
|
|
4719
4859
|
className
|
|
4720
4860
|
} = _b, props = __objRest(_b, [
|
|
4721
4861
|
"className"
|
|
4722
4862
|
]);
|
|
4723
|
-
return /* @__PURE__ */ (0,
|
|
4863
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4724
4864
|
import_radix_ui24.RadioGroup.Root,
|
|
4725
4865
|
__spreadValues({
|
|
4726
4866
|
"data-slot": "radio-group",
|
|
@@ -4734,7 +4874,7 @@ function RadioGroupItem(_a) {
|
|
|
4734
4874
|
} = _b, props = __objRest(_b, [
|
|
4735
4875
|
"className"
|
|
4736
4876
|
]);
|
|
4737
|
-
return /* @__PURE__ */ (0,
|
|
4877
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4738
4878
|
import_radix_ui24.RadioGroup.Item,
|
|
4739
4879
|
__spreadProps(__spreadValues({
|
|
4740
4880
|
"data-slot": "radio-group-item",
|
|
@@ -4743,12 +4883,12 @@ function RadioGroupItem(_a) {
|
|
|
4743
4883
|
className
|
|
4744
4884
|
)
|
|
4745
4885
|
}, props), {
|
|
4746
|
-
children: /* @__PURE__ */ (0,
|
|
4886
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4747
4887
|
import_radix_ui24.RadioGroup.Indicator,
|
|
4748
4888
|
{
|
|
4749
4889
|
"data-slot": "radio-group-indicator",
|
|
4750
4890
|
className: "relative flex items-center justify-center",
|
|
4751
|
-
children: /* @__PURE__ */ (0,
|
|
4891
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react16.CircleIcon, { className: "absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary" })
|
|
4752
4892
|
}
|
|
4753
4893
|
)
|
|
4754
4894
|
})
|
|
@@ -4758,14 +4898,14 @@ function RadioGroupItem(_a) {
|
|
|
4758
4898
|
// components/ui/resizable.tsx
|
|
4759
4899
|
var import_lucide_react17 = require("lucide-react");
|
|
4760
4900
|
var ResizablePrimitive = __toESM(require("react-resizable-panels"), 1);
|
|
4761
|
-
var
|
|
4901
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
4762
4902
|
function ResizablePanelGroup(_a) {
|
|
4763
4903
|
var _b = _a, {
|
|
4764
4904
|
className
|
|
4765
4905
|
} = _b, props = __objRest(_b, [
|
|
4766
4906
|
"className"
|
|
4767
4907
|
]);
|
|
4768
|
-
return /* @__PURE__ */ (0,
|
|
4908
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4769
4909
|
ResizablePrimitive.Group,
|
|
4770
4910
|
__spreadValues({
|
|
4771
4911
|
"data-slot": "resizable-panel-group",
|
|
@@ -4778,7 +4918,7 @@ function ResizablePanelGroup(_a) {
|
|
|
4778
4918
|
}
|
|
4779
4919
|
function ResizablePanel(_a) {
|
|
4780
4920
|
var props = __objRest(_a, []);
|
|
4781
|
-
return /* @__PURE__ */ (0,
|
|
4921
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ResizablePrimitive.Panel, __spreadValues({ "data-slot": "resizable-panel" }, props));
|
|
4782
4922
|
}
|
|
4783
4923
|
function ResizableHandle(_a) {
|
|
4784
4924
|
var _b = _a, {
|
|
@@ -4788,7 +4928,7 @@ function ResizableHandle(_a) {
|
|
|
4788
4928
|
"withHandle",
|
|
4789
4929
|
"className"
|
|
4790
4930
|
]);
|
|
4791
|
-
return /* @__PURE__ */ (0,
|
|
4931
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4792
4932
|
ResizablePrimitive.Separator,
|
|
4793
4933
|
__spreadProps(__spreadValues({
|
|
4794
4934
|
"data-slot": "resizable-handle",
|
|
@@ -4797,14 +4937,14 @@ function ResizableHandle(_a) {
|
|
|
4797
4937
|
className
|
|
4798
4938
|
)
|
|
4799
4939
|
}, props), {
|
|
4800
|
-
children: withHandle && /* @__PURE__ */ (0,
|
|
4940
|
+
children: withHandle && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-xs border bg-border", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react17.GripVerticalIcon, { className: "size-2.5" }) })
|
|
4801
4941
|
})
|
|
4802
4942
|
);
|
|
4803
4943
|
}
|
|
4804
4944
|
|
|
4805
4945
|
// components/ui/scroll-area.tsx
|
|
4806
4946
|
var import_radix_ui25 = require("radix-ui");
|
|
4807
|
-
var
|
|
4947
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
4808
4948
|
function ScrollArea(_a) {
|
|
4809
4949
|
var _b = _a, {
|
|
4810
4950
|
className,
|
|
@@ -4813,14 +4953,14 @@ function ScrollArea(_a) {
|
|
|
4813
4953
|
"className",
|
|
4814
4954
|
"children"
|
|
4815
4955
|
]);
|
|
4816
|
-
return /* @__PURE__ */ (0,
|
|
4956
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
4817
4957
|
import_radix_ui25.ScrollArea.Root,
|
|
4818
4958
|
__spreadProps(__spreadValues({
|
|
4819
4959
|
"data-slot": "scroll-area",
|
|
4820
4960
|
className: cn("relative", className)
|
|
4821
4961
|
}, props), {
|
|
4822
4962
|
children: [
|
|
4823
|
-
/* @__PURE__ */ (0,
|
|
4963
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
4824
4964
|
import_radix_ui25.ScrollArea.Viewport,
|
|
4825
4965
|
{
|
|
4826
4966
|
"data-slot": "scroll-area-viewport",
|
|
@@ -4828,8 +4968,8 @@ function ScrollArea(_a) {
|
|
|
4828
4968
|
children
|
|
4829
4969
|
}
|
|
4830
4970
|
),
|
|
4831
|
-
/* @__PURE__ */ (0,
|
|
4832
|
-
/* @__PURE__ */ (0,
|
|
4971
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ScrollBar, {}),
|
|
4972
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_radix_ui25.ScrollArea.Corner, {})
|
|
4833
4973
|
]
|
|
4834
4974
|
})
|
|
4835
4975
|
);
|
|
@@ -4842,7 +4982,7 @@ function ScrollBar(_a) {
|
|
|
4842
4982
|
"className",
|
|
4843
4983
|
"orientation"
|
|
4844
4984
|
]);
|
|
4845
|
-
return /* @__PURE__ */ (0,
|
|
4985
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
4846
4986
|
import_radix_ui25.ScrollArea.ScrollAreaScrollbar,
|
|
4847
4987
|
__spreadProps(__spreadValues({
|
|
4848
4988
|
"data-slot": "scroll-area-scrollbar",
|
|
@@ -4854,7 +4994,7 @@ function ScrollBar(_a) {
|
|
|
4854
4994
|
className
|
|
4855
4995
|
)
|
|
4856
4996
|
}, props), {
|
|
4857
|
-
children: /* @__PURE__ */ (0,
|
|
4997
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
4858
4998
|
import_radix_ui25.ScrollArea.ScrollAreaThumb,
|
|
4859
4999
|
{
|
|
4860
5000
|
"data-slot": "scroll-area-thumb",
|
|
@@ -4868,18 +5008,18 @@ function ScrollBar(_a) {
|
|
|
4868
5008
|
// components/ui/select.tsx
|
|
4869
5009
|
var import_lucide_react18 = require("lucide-react");
|
|
4870
5010
|
var import_radix_ui26 = require("radix-ui");
|
|
4871
|
-
var
|
|
5011
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
4872
5012
|
function Select(_a) {
|
|
4873
5013
|
var props = __objRest(_a, []);
|
|
4874
|
-
return /* @__PURE__ */ (0,
|
|
5014
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_radix_ui26.Select.Root, __spreadValues({ "data-slot": "select" }, props));
|
|
4875
5015
|
}
|
|
4876
5016
|
function SelectGroup(_a) {
|
|
4877
5017
|
var props = __objRest(_a, []);
|
|
4878
|
-
return /* @__PURE__ */ (0,
|
|
5018
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_radix_ui26.Select.Group, __spreadValues({ "data-slot": "select-group" }, props));
|
|
4879
5019
|
}
|
|
4880
5020
|
function SelectValue(_a) {
|
|
4881
5021
|
var props = __objRest(_a, []);
|
|
4882
|
-
return /* @__PURE__ */ (0,
|
|
5022
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_radix_ui26.Select.Value, __spreadValues({ "data-slot": "select-value" }, props));
|
|
4883
5023
|
}
|
|
4884
5024
|
function SelectTrigger(_a) {
|
|
4885
5025
|
var _b = _a, {
|
|
@@ -4893,7 +5033,7 @@ function SelectTrigger(_a) {
|
|
|
4893
5033
|
"readOnly",
|
|
4894
5034
|
"children"
|
|
4895
5035
|
]);
|
|
4896
|
-
return /* @__PURE__ */ (0,
|
|
5036
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
4897
5037
|
import_radix_ui26.Select.Trigger,
|
|
4898
5038
|
__spreadProps(__spreadValues({
|
|
4899
5039
|
"data-slot": "select-trigger",
|
|
@@ -4907,7 +5047,7 @@ function SelectTrigger(_a) {
|
|
|
4907
5047
|
}, props), {
|
|
4908
5048
|
children: [
|
|
4909
5049
|
children,
|
|
4910
|
-
/* @__PURE__ */ (0,
|
|
5050
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_radix_ui26.Select.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react18.ChevronDownIcon, { className: cn("size-4", readOnly ? "opacity-30" : "opacity-50") }) })
|
|
4911
5051
|
]
|
|
4912
5052
|
})
|
|
4913
5053
|
);
|
|
@@ -4924,7 +5064,7 @@ function SelectContent(_a) {
|
|
|
4924
5064
|
"position",
|
|
4925
5065
|
"align"
|
|
4926
5066
|
]);
|
|
4927
|
-
return /* @__PURE__ */ (0,
|
|
5067
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_radix_ui26.Select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
4928
5068
|
import_radix_ui26.Select.Content,
|
|
4929
5069
|
__spreadProps(__spreadValues({
|
|
4930
5070
|
"data-slot": "select-content",
|
|
@@ -4937,8 +5077,8 @@ function SelectContent(_a) {
|
|
|
4937
5077
|
align
|
|
4938
5078
|
}, props), {
|
|
4939
5079
|
children: [
|
|
4940
|
-
/* @__PURE__ */ (0,
|
|
4941
|
-
/* @__PURE__ */ (0,
|
|
5080
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectScrollUpButton, {}),
|
|
5081
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4942
5082
|
import_radix_ui26.Select.Viewport,
|
|
4943
5083
|
{
|
|
4944
5084
|
className: cn(
|
|
@@ -4948,7 +5088,7 @@ function SelectContent(_a) {
|
|
|
4948
5088
|
children
|
|
4949
5089
|
}
|
|
4950
5090
|
),
|
|
4951
|
-
/* @__PURE__ */ (0,
|
|
5091
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectScrollDownButton, {})
|
|
4952
5092
|
]
|
|
4953
5093
|
})
|
|
4954
5094
|
) });
|
|
@@ -4959,7 +5099,7 @@ function SelectLabel(_a) {
|
|
|
4959
5099
|
} = _b, props = __objRest(_b, [
|
|
4960
5100
|
"className"
|
|
4961
5101
|
]);
|
|
4962
|
-
return /* @__PURE__ */ (0,
|
|
5102
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4963
5103
|
import_radix_ui26.Select.Label,
|
|
4964
5104
|
__spreadValues({
|
|
4965
5105
|
"data-slot": "select-label",
|
|
@@ -4975,7 +5115,7 @@ function SelectItem(_a) {
|
|
|
4975
5115
|
"className",
|
|
4976
5116
|
"children"
|
|
4977
5117
|
]);
|
|
4978
|
-
return /* @__PURE__ */ (0,
|
|
5118
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
4979
5119
|
import_radix_ui26.Select.Item,
|
|
4980
5120
|
__spreadProps(__spreadValues({
|
|
4981
5121
|
"data-slot": "select-item",
|
|
@@ -4985,15 +5125,15 @@ function SelectItem(_a) {
|
|
|
4985
5125
|
)
|
|
4986
5126
|
}, props), {
|
|
4987
5127
|
children: [
|
|
4988
|
-
/* @__PURE__ */ (0,
|
|
5128
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4989
5129
|
"span",
|
|
4990
5130
|
{
|
|
4991
5131
|
"data-slot": "select-item-indicator",
|
|
4992
5132
|
className: "absolute right-2 flex size-3.5 items-center justify-center",
|
|
4993
|
-
children: /* @__PURE__ */ (0,
|
|
5133
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_radix_ui26.Select.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react18.CheckIcon, { className: "size-4 text-primary" }) })
|
|
4994
5134
|
}
|
|
4995
5135
|
),
|
|
4996
|
-
/* @__PURE__ */ (0,
|
|
5136
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_radix_ui26.Select.ItemText, { children })
|
|
4997
5137
|
]
|
|
4998
5138
|
})
|
|
4999
5139
|
);
|
|
@@ -5004,7 +5144,7 @@ function SelectSeparator(_a) {
|
|
|
5004
5144
|
} = _b, props = __objRest(_b, [
|
|
5005
5145
|
"className"
|
|
5006
5146
|
]);
|
|
5007
|
-
return /* @__PURE__ */ (0,
|
|
5147
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
5008
5148
|
import_radix_ui26.Select.Separator,
|
|
5009
5149
|
__spreadValues({
|
|
5010
5150
|
"data-slot": "select-separator",
|
|
@@ -5018,7 +5158,7 @@ function SelectScrollUpButton(_a) {
|
|
|
5018
5158
|
} = _b, props = __objRest(_b, [
|
|
5019
5159
|
"className"
|
|
5020
5160
|
]);
|
|
5021
|
-
return /* @__PURE__ */ (0,
|
|
5161
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
5022
5162
|
import_radix_ui26.Select.ScrollUpButton,
|
|
5023
5163
|
__spreadProps(__spreadValues({
|
|
5024
5164
|
"data-slot": "select-scroll-up-button",
|
|
@@ -5027,7 +5167,7 @@ function SelectScrollUpButton(_a) {
|
|
|
5027
5167
|
className
|
|
5028
5168
|
)
|
|
5029
5169
|
}, props), {
|
|
5030
|
-
children: /* @__PURE__ */ (0,
|
|
5170
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react18.ChevronUpIcon, { className: "size-4" })
|
|
5031
5171
|
})
|
|
5032
5172
|
);
|
|
5033
5173
|
}
|
|
@@ -5037,7 +5177,7 @@ function SelectScrollDownButton(_a) {
|
|
|
5037
5177
|
} = _b, props = __objRest(_b, [
|
|
5038
5178
|
"className"
|
|
5039
5179
|
]);
|
|
5040
|
-
return /* @__PURE__ */ (0,
|
|
5180
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
5041
5181
|
import_radix_ui26.Select.ScrollDownButton,
|
|
5042
5182
|
__spreadProps(__spreadValues({
|
|
5043
5183
|
"data-slot": "select-scroll-down-button",
|
|
@@ -5046,7 +5186,7 @@ function SelectScrollDownButton(_a) {
|
|
|
5046
5186
|
className
|
|
5047
5187
|
)
|
|
5048
5188
|
}, props), {
|
|
5049
|
-
children: /* @__PURE__ */ (0,
|
|
5189
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react18.ChevronDownIcon, { className: "size-4" })
|
|
5050
5190
|
})
|
|
5051
5191
|
);
|
|
5052
5192
|
}
|
|
@@ -5054,22 +5194,22 @@ function SelectScrollDownButton(_a) {
|
|
|
5054
5194
|
// components/ui/sheet.tsx
|
|
5055
5195
|
var import_lucide_react19 = require("lucide-react");
|
|
5056
5196
|
var import_radix_ui27 = require("radix-ui");
|
|
5057
|
-
var
|
|
5197
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
5058
5198
|
function Sheet(_a) {
|
|
5059
5199
|
var props = __objRest(_a, []);
|
|
5060
|
-
return /* @__PURE__ */ (0,
|
|
5200
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_radix_ui27.Dialog.Root, __spreadValues({ "data-slot": "sheet" }, props));
|
|
5061
5201
|
}
|
|
5062
5202
|
function SheetTrigger(_a) {
|
|
5063
5203
|
var props = __objRest(_a, []);
|
|
5064
|
-
return /* @__PURE__ */ (0,
|
|
5204
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_radix_ui27.Dialog.Trigger, __spreadValues({ "data-slot": "sheet-trigger" }, props));
|
|
5065
5205
|
}
|
|
5066
5206
|
function SheetClose(_a) {
|
|
5067
5207
|
var props = __objRest(_a, []);
|
|
5068
|
-
return /* @__PURE__ */ (0,
|
|
5208
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_radix_ui27.Dialog.Close, __spreadValues({ "data-slot": "sheet-close" }, props));
|
|
5069
5209
|
}
|
|
5070
5210
|
function SheetPortal(_a) {
|
|
5071
5211
|
var props = __objRest(_a, []);
|
|
5072
|
-
return /* @__PURE__ */ (0,
|
|
5212
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_radix_ui27.Dialog.Portal, __spreadValues({ "data-slot": "sheet-portal" }, props));
|
|
5073
5213
|
}
|
|
5074
5214
|
function SheetOverlay(_a) {
|
|
5075
5215
|
var _b = _a, {
|
|
@@ -5077,7 +5217,7 @@ function SheetOverlay(_a) {
|
|
|
5077
5217
|
} = _b, props = __objRest(_b, [
|
|
5078
5218
|
"className"
|
|
5079
5219
|
]);
|
|
5080
|
-
return /* @__PURE__ */ (0,
|
|
5220
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
5081
5221
|
import_radix_ui27.Dialog.Overlay,
|
|
5082
5222
|
__spreadValues({
|
|
5083
5223
|
"data-slot": "sheet-overlay",
|
|
@@ -5100,9 +5240,9 @@ function SheetContent(_a) {
|
|
|
5100
5240
|
"side",
|
|
5101
5241
|
"showCloseButton"
|
|
5102
5242
|
]);
|
|
5103
|
-
return /* @__PURE__ */ (0,
|
|
5104
|
-
/* @__PURE__ */ (0,
|
|
5105
|
-
/* @__PURE__ */ (0,
|
|
5243
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(SheetPortal, { children: [
|
|
5244
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SheetOverlay, {}),
|
|
5245
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
5106
5246
|
import_radix_ui27.Dialog.Content,
|
|
5107
5247
|
__spreadProps(__spreadValues({
|
|
5108
5248
|
"data-slot": "sheet-content",
|
|
@@ -5117,9 +5257,9 @@ function SheetContent(_a) {
|
|
|
5117
5257
|
}, props), {
|
|
5118
5258
|
children: [
|
|
5119
5259
|
children,
|
|
5120
|
-
showCloseButton && /* @__PURE__ */ (0,
|
|
5121
|
-
/* @__PURE__ */ (0,
|
|
5122
|
-
/* @__PURE__ */ (0,
|
|
5260
|
+
showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_radix_ui27.Dialog.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: [
|
|
5261
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react19.XIcon, { className: "size-4" }),
|
|
5262
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "sr-only", children: "Close" })
|
|
5123
5263
|
] })
|
|
5124
5264
|
]
|
|
5125
5265
|
})
|
|
@@ -5128,7 +5268,7 @@ function SheetContent(_a) {
|
|
|
5128
5268
|
}
|
|
5129
5269
|
function SheetHeader(_a) {
|
|
5130
5270
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5131
|
-
return /* @__PURE__ */ (0,
|
|
5271
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
5132
5272
|
"div",
|
|
5133
5273
|
__spreadValues({
|
|
5134
5274
|
"data-slot": "sheet-header",
|
|
@@ -5138,7 +5278,7 @@ function SheetHeader(_a) {
|
|
|
5138
5278
|
}
|
|
5139
5279
|
function SheetFooter(_a) {
|
|
5140
5280
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5141
|
-
return /* @__PURE__ */ (0,
|
|
5281
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
5142
5282
|
"div",
|
|
5143
5283
|
__spreadValues({
|
|
5144
5284
|
"data-slot": "sheet-footer",
|
|
@@ -5152,7 +5292,7 @@ function SheetTitle(_a) {
|
|
|
5152
5292
|
} = _b, props = __objRest(_b, [
|
|
5153
5293
|
"className"
|
|
5154
5294
|
]);
|
|
5155
|
-
return /* @__PURE__ */ (0,
|
|
5295
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
5156
5296
|
import_radix_ui27.Dialog.Title,
|
|
5157
5297
|
__spreadValues({
|
|
5158
5298
|
"data-slot": "sheet-title",
|
|
@@ -5166,7 +5306,7 @@ function SheetDescription(_a) {
|
|
|
5166
5306
|
} = _b, props = __objRest(_b, [
|
|
5167
5307
|
"className"
|
|
5168
5308
|
]);
|
|
5169
|
-
return /* @__PURE__ */ (0,
|
|
5309
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
5170
5310
|
import_radix_ui27.Dialog.Description,
|
|
5171
5311
|
__spreadValues({
|
|
5172
5312
|
"data-slot": "sheet-description",
|
|
@@ -5176,17 +5316,17 @@ function SheetDescription(_a) {
|
|
|
5176
5316
|
}
|
|
5177
5317
|
|
|
5178
5318
|
// components/ui/sidebar.tsx
|
|
5179
|
-
var
|
|
5180
|
-
var
|
|
5319
|
+
var React9 = __toESM(require("react"), 1);
|
|
5320
|
+
var import_class_variance_authority11 = require("class-variance-authority");
|
|
5181
5321
|
var import_lucide_react20 = require("lucide-react");
|
|
5182
5322
|
var import_radix_ui29 = require("radix-ui");
|
|
5183
5323
|
|
|
5184
5324
|
// hooks/use-mobile.ts
|
|
5185
|
-
var
|
|
5325
|
+
var React8 = __toESM(require("react"), 1);
|
|
5186
5326
|
var MOBILE_BREAKPOINT = 768;
|
|
5187
5327
|
function useIsMobile() {
|
|
5188
|
-
const [isMobile, setIsMobile] =
|
|
5189
|
-
|
|
5328
|
+
const [isMobile, setIsMobile] = React8.useState(void 0);
|
|
5329
|
+
React8.useEffect(() => {
|
|
5190
5330
|
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
5191
5331
|
const onChange = () => {
|
|
5192
5332
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
@@ -5199,10 +5339,10 @@ function useIsMobile() {
|
|
|
5199
5339
|
}
|
|
5200
5340
|
|
|
5201
5341
|
// components/ui/skeleton.tsx
|
|
5202
|
-
var
|
|
5342
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
5203
5343
|
function Skeleton(_a) {
|
|
5204
5344
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5205
|
-
return /* @__PURE__ */ (0,
|
|
5345
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5206
5346
|
"div",
|
|
5207
5347
|
__spreadValues({
|
|
5208
5348
|
"data-slot": "skeleton",
|
|
@@ -5213,14 +5353,14 @@ function Skeleton(_a) {
|
|
|
5213
5353
|
|
|
5214
5354
|
// components/ui/tooltip.tsx
|
|
5215
5355
|
var import_radix_ui28 = require("radix-ui");
|
|
5216
|
-
var
|
|
5356
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
5217
5357
|
function TooltipProvider(_a) {
|
|
5218
5358
|
var _b = _a, {
|
|
5219
5359
|
delayDuration = 0
|
|
5220
5360
|
} = _b, props = __objRest(_b, [
|
|
5221
5361
|
"delayDuration"
|
|
5222
5362
|
]);
|
|
5223
|
-
return /* @__PURE__ */ (0,
|
|
5363
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5224
5364
|
import_radix_ui28.Tooltip.Provider,
|
|
5225
5365
|
__spreadValues({
|
|
5226
5366
|
"data-slot": "tooltip-provider",
|
|
@@ -5230,11 +5370,11 @@ function TooltipProvider(_a) {
|
|
|
5230
5370
|
}
|
|
5231
5371
|
function Tooltip2(_a) {
|
|
5232
5372
|
var props = __objRest(_a, []);
|
|
5233
|
-
return /* @__PURE__ */ (0,
|
|
5373
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_radix_ui28.Tooltip.Root, __spreadValues({ "data-slot": "tooltip" }, props));
|
|
5234
5374
|
}
|
|
5235
5375
|
function TooltipTrigger(_a) {
|
|
5236
5376
|
var props = __objRest(_a, []);
|
|
5237
|
-
return /* @__PURE__ */ (0,
|
|
5377
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_radix_ui28.Tooltip.Trigger, __spreadValues({ "data-slot": "tooltip-trigger" }, props));
|
|
5238
5378
|
}
|
|
5239
5379
|
function TooltipContent(_a) {
|
|
5240
5380
|
var _b = _a, {
|
|
@@ -5246,7 +5386,7 @@ function TooltipContent(_a) {
|
|
|
5246
5386
|
"sideOffset",
|
|
5247
5387
|
"children"
|
|
5248
5388
|
]);
|
|
5249
|
-
return /* @__PURE__ */ (0,
|
|
5389
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_radix_ui28.Tooltip.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
5250
5390
|
import_radix_ui28.Tooltip.Content,
|
|
5251
5391
|
__spreadProps(__spreadValues({
|
|
5252
5392
|
"data-slot": "tooltip-content",
|
|
@@ -5258,23 +5398,23 @@ function TooltipContent(_a) {
|
|
|
5258
5398
|
}, props), {
|
|
5259
5399
|
children: [
|
|
5260
5400
|
children,
|
|
5261
|
-
/* @__PURE__ */ (0,
|
|
5401
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_radix_ui28.Tooltip.Arrow, { className: "fill-primary" })
|
|
5262
5402
|
]
|
|
5263
5403
|
})
|
|
5264
5404
|
) });
|
|
5265
5405
|
}
|
|
5266
5406
|
|
|
5267
5407
|
// components/ui/sidebar.tsx
|
|
5268
|
-
var
|
|
5408
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
5269
5409
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
5270
5410
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
5271
5411
|
var SIDEBAR_WIDTH = "16rem";
|
|
5272
5412
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
5273
5413
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
5274
5414
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
5275
|
-
var SidebarContext =
|
|
5415
|
+
var SidebarContext = React9.createContext(null);
|
|
5276
5416
|
function useSidebar() {
|
|
5277
|
-
const context =
|
|
5417
|
+
const context = React9.useContext(SidebarContext);
|
|
5278
5418
|
if (!context) {
|
|
5279
5419
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
5280
5420
|
}
|
|
@@ -5297,10 +5437,10 @@ function SidebarProvider(_a) {
|
|
|
5297
5437
|
"children"
|
|
5298
5438
|
]);
|
|
5299
5439
|
const isMobile = useIsMobile();
|
|
5300
|
-
const [openMobile, setOpenMobile] =
|
|
5301
|
-
const [_open, _setOpen] =
|
|
5440
|
+
const [openMobile, setOpenMobile] = React9.useState(false);
|
|
5441
|
+
const [_open, _setOpen] = React9.useState(defaultOpen);
|
|
5302
5442
|
const open = openProp != null ? openProp : _open;
|
|
5303
|
-
const setOpen =
|
|
5443
|
+
const setOpen = React9.useCallback(
|
|
5304
5444
|
(value) => {
|
|
5305
5445
|
const openState = typeof value === "function" ? value(open) : value;
|
|
5306
5446
|
if (setOpenProp) {
|
|
@@ -5312,10 +5452,10 @@ function SidebarProvider(_a) {
|
|
|
5312
5452
|
},
|
|
5313
5453
|
[setOpenProp, open]
|
|
5314
5454
|
);
|
|
5315
|
-
const toggleSidebar =
|
|
5455
|
+
const toggleSidebar = React9.useCallback(() => {
|
|
5316
5456
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
5317
5457
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
5318
|
-
|
|
5458
|
+
React9.useEffect(() => {
|
|
5319
5459
|
const handleKeyDown = (event) => {
|
|
5320
5460
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
5321
5461
|
event.preventDefault();
|
|
@@ -5326,7 +5466,7 @@ function SidebarProvider(_a) {
|
|
|
5326
5466
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
5327
5467
|
}, [toggleSidebar]);
|
|
5328
5468
|
const state = open ? "expanded" : "collapsed";
|
|
5329
|
-
const contextValue =
|
|
5469
|
+
const contextValue = React9.useMemo(
|
|
5330
5470
|
() => ({
|
|
5331
5471
|
state,
|
|
5332
5472
|
open,
|
|
@@ -5338,7 +5478,7 @@ function SidebarProvider(_a) {
|
|
|
5338
5478
|
}),
|
|
5339
5479
|
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
5340
5480
|
);
|
|
5341
|
-
return /* @__PURE__ */ (0,
|
|
5481
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5342
5482
|
"div",
|
|
5343
5483
|
__spreadProps(__spreadValues({
|
|
5344
5484
|
"data-slot": "sidebar-wrapper",
|
|
@@ -5371,7 +5511,7 @@ function Sidebar(_a) {
|
|
|
5371
5511
|
]);
|
|
5372
5512
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
5373
5513
|
if (collapsible === "none") {
|
|
5374
|
-
return /* @__PURE__ */ (0,
|
|
5514
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5375
5515
|
"div",
|
|
5376
5516
|
__spreadProps(__spreadValues({
|
|
5377
5517
|
"data-slot": "sidebar",
|
|
@@ -5385,7 +5525,7 @@ function Sidebar(_a) {
|
|
|
5385
5525
|
);
|
|
5386
5526
|
}
|
|
5387
5527
|
if (isMobile) {
|
|
5388
|
-
return /* @__PURE__ */ (0,
|
|
5528
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Sheet, __spreadProps(__spreadValues({ open: openMobile, onOpenChange: setOpenMobile }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
5389
5529
|
SheetContent,
|
|
5390
5530
|
{
|
|
5391
5531
|
"data-sidebar": "sidebar",
|
|
@@ -5397,16 +5537,16 @@ function Sidebar(_a) {
|
|
|
5397
5537
|
},
|
|
5398
5538
|
side,
|
|
5399
5539
|
children: [
|
|
5400
|
-
/* @__PURE__ */ (0,
|
|
5401
|
-
/* @__PURE__ */ (0,
|
|
5402
|
-
/* @__PURE__ */ (0,
|
|
5540
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(SheetHeader, { className: "sr-only", children: [
|
|
5541
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SheetTitle, { children: "Sidebar" }),
|
|
5542
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SheetDescription, { children: "Displays the mobile sidebar." })
|
|
5403
5543
|
] }),
|
|
5404
|
-
/* @__PURE__ */ (0,
|
|
5544
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "flex h-full w-full flex-col", children })
|
|
5405
5545
|
]
|
|
5406
5546
|
}
|
|
5407
5547
|
) }));
|
|
5408
5548
|
}
|
|
5409
|
-
return /* @__PURE__ */ (0,
|
|
5549
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
5410
5550
|
"div",
|
|
5411
5551
|
{
|
|
5412
5552
|
className: "group peer hidden text-sidebar-foreground md:block",
|
|
@@ -5416,7 +5556,7 @@ function Sidebar(_a) {
|
|
|
5416
5556
|
"data-side": side,
|
|
5417
5557
|
"data-slot": "sidebar",
|
|
5418
5558
|
children: [
|
|
5419
|
-
/* @__PURE__ */ (0,
|
|
5559
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5420
5560
|
"div",
|
|
5421
5561
|
{
|
|
5422
5562
|
"data-slot": "sidebar-gap",
|
|
@@ -5428,7 +5568,7 @@ function Sidebar(_a) {
|
|
|
5428
5568
|
)
|
|
5429
5569
|
}
|
|
5430
5570
|
),
|
|
5431
|
-
/* @__PURE__ */ (0,
|
|
5571
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5432
5572
|
"div",
|
|
5433
5573
|
__spreadProps(__spreadValues({
|
|
5434
5574
|
"data-slot": "sidebar-container",
|
|
@@ -5440,7 +5580,7 @@ function Sidebar(_a) {
|
|
|
5440
5580
|
className
|
|
5441
5581
|
)
|
|
5442
5582
|
}, props), {
|
|
5443
|
-
children: /* @__PURE__ */ (0,
|
|
5583
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5444
5584
|
"div",
|
|
5445
5585
|
{
|
|
5446
5586
|
"data-sidebar": "sidebar",
|
|
@@ -5464,7 +5604,7 @@ function SidebarTrigger(_a) {
|
|
|
5464
5604
|
"onClick"
|
|
5465
5605
|
]);
|
|
5466
5606
|
const { toggleSidebar } = useSidebar();
|
|
5467
|
-
return /* @__PURE__ */ (0,
|
|
5607
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
5468
5608
|
Button,
|
|
5469
5609
|
__spreadProps(__spreadValues({
|
|
5470
5610
|
"data-sidebar": "trigger",
|
|
@@ -5478,8 +5618,8 @@ function SidebarTrigger(_a) {
|
|
|
5478
5618
|
}
|
|
5479
5619
|
}, props), {
|
|
5480
5620
|
children: [
|
|
5481
|
-
/* @__PURE__ */ (0,
|
|
5482
|
-
/* @__PURE__ */ (0,
|
|
5621
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_lucide_react20.PanelLeftIcon, {}),
|
|
5622
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
5483
5623
|
]
|
|
5484
5624
|
})
|
|
5485
5625
|
);
|
|
@@ -5487,7 +5627,7 @@ function SidebarTrigger(_a) {
|
|
|
5487
5627
|
function SidebarRail(_a) {
|
|
5488
5628
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5489
5629
|
const { toggleSidebar } = useSidebar();
|
|
5490
|
-
return /* @__PURE__ */ (0,
|
|
5630
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5491
5631
|
"button",
|
|
5492
5632
|
__spreadValues({
|
|
5493
5633
|
"data-sidebar": "rail",
|
|
@@ -5510,7 +5650,7 @@ function SidebarRail(_a) {
|
|
|
5510
5650
|
}
|
|
5511
5651
|
function SidebarInset(_a) {
|
|
5512
5652
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5513
|
-
return /* @__PURE__ */ (0,
|
|
5653
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5514
5654
|
"main",
|
|
5515
5655
|
__spreadValues({
|
|
5516
5656
|
"data-slot": "sidebar-inset",
|
|
@@ -5528,7 +5668,7 @@ function SidebarInput(_a) {
|
|
|
5528
5668
|
} = _b, props = __objRest(_b, [
|
|
5529
5669
|
"className"
|
|
5530
5670
|
]);
|
|
5531
|
-
return /* @__PURE__ */ (0,
|
|
5671
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5532
5672
|
Input,
|
|
5533
5673
|
__spreadValues({
|
|
5534
5674
|
"data-slot": "sidebar-input",
|
|
@@ -5539,7 +5679,7 @@ function SidebarInput(_a) {
|
|
|
5539
5679
|
}
|
|
5540
5680
|
function SidebarHeader(_a) {
|
|
5541
5681
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5542
|
-
return /* @__PURE__ */ (0,
|
|
5682
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5543
5683
|
"div",
|
|
5544
5684
|
__spreadValues({
|
|
5545
5685
|
"data-slot": "sidebar-header",
|
|
@@ -5550,7 +5690,7 @@ function SidebarHeader(_a) {
|
|
|
5550
5690
|
}
|
|
5551
5691
|
function SidebarFooter(_a) {
|
|
5552
5692
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5553
|
-
return /* @__PURE__ */ (0,
|
|
5693
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5554
5694
|
"div",
|
|
5555
5695
|
__spreadValues({
|
|
5556
5696
|
"data-slot": "sidebar-footer",
|
|
@@ -5565,7 +5705,7 @@ function SidebarSeparator(_a) {
|
|
|
5565
5705
|
} = _b, props = __objRest(_b, [
|
|
5566
5706
|
"className"
|
|
5567
5707
|
]);
|
|
5568
|
-
return /* @__PURE__ */ (0,
|
|
5708
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5569
5709
|
Separator,
|
|
5570
5710
|
__spreadValues({
|
|
5571
5711
|
"data-slot": "sidebar-separator",
|
|
@@ -5576,7 +5716,7 @@ function SidebarSeparator(_a) {
|
|
|
5576
5716
|
}
|
|
5577
5717
|
function SidebarContent(_a) {
|
|
5578
5718
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5579
|
-
return /* @__PURE__ */ (0,
|
|
5719
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5580
5720
|
"div",
|
|
5581
5721
|
__spreadValues({
|
|
5582
5722
|
"data-slot": "sidebar-content",
|
|
@@ -5590,7 +5730,7 @@ function SidebarContent(_a) {
|
|
|
5590
5730
|
}
|
|
5591
5731
|
function SidebarGroup(_a) {
|
|
5592
5732
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5593
|
-
return /* @__PURE__ */ (0,
|
|
5733
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5594
5734
|
"div",
|
|
5595
5735
|
__spreadValues({
|
|
5596
5736
|
"data-slot": "sidebar-group",
|
|
@@ -5608,7 +5748,7 @@ function SidebarGroupLabel(_a) {
|
|
|
5608
5748
|
"asChild"
|
|
5609
5749
|
]);
|
|
5610
5750
|
const Comp = asChild ? import_radix_ui29.Slot.Root : "div";
|
|
5611
|
-
return /* @__PURE__ */ (0,
|
|
5751
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5612
5752
|
Comp,
|
|
5613
5753
|
__spreadValues({
|
|
5614
5754
|
"data-slot": "sidebar-group-label",
|
|
@@ -5630,7 +5770,7 @@ function SidebarGroupAction(_a) {
|
|
|
5630
5770
|
"asChild"
|
|
5631
5771
|
]);
|
|
5632
5772
|
const Comp = asChild ? import_radix_ui29.Slot.Root : "button";
|
|
5633
|
-
return /* @__PURE__ */ (0,
|
|
5773
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5634
5774
|
Comp,
|
|
5635
5775
|
__spreadValues({
|
|
5636
5776
|
"data-slot": "sidebar-group-action",
|
|
@@ -5651,7 +5791,7 @@ function SidebarGroupContent(_a) {
|
|
|
5651
5791
|
} = _b, props = __objRest(_b, [
|
|
5652
5792
|
"className"
|
|
5653
5793
|
]);
|
|
5654
|
-
return /* @__PURE__ */ (0,
|
|
5794
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5655
5795
|
"div",
|
|
5656
5796
|
__spreadValues({
|
|
5657
5797
|
"data-slot": "sidebar-group-content",
|
|
@@ -5662,7 +5802,7 @@ function SidebarGroupContent(_a) {
|
|
|
5662
5802
|
}
|
|
5663
5803
|
function SidebarMenu(_a) {
|
|
5664
5804
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5665
|
-
return /* @__PURE__ */ (0,
|
|
5805
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5666
5806
|
"ul",
|
|
5667
5807
|
__spreadValues({
|
|
5668
5808
|
"data-slot": "sidebar-menu",
|
|
@@ -5673,7 +5813,7 @@ function SidebarMenu(_a) {
|
|
|
5673
5813
|
}
|
|
5674
5814
|
function SidebarMenuItem(_a) {
|
|
5675
5815
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5676
|
-
return /* @__PURE__ */ (0,
|
|
5816
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5677
5817
|
"li",
|
|
5678
5818
|
__spreadValues({
|
|
5679
5819
|
"data-slot": "sidebar-menu-item",
|
|
@@ -5682,7 +5822,7 @@ function SidebarMenuItem(_a) {
|
|
|
5682
5822
|
}, props)
|
|
5683
5823
|
);
|
|
5684
5824
|
}
|
|
5685
|
-
var sidebarMenuButtonVariants = (0,
|
|
5825
|
+
var sidebarMenuButtonVariants = (0, import_class_variance_authority11.cva)(
|
|
5686
5826
|
"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",
|
|
5687
5827
|
{
|
|
5688
5828
|
variants: {
|
|
@@ -5720,7 +5860,7 @@ function SidebarMenuButton(_a) {
|
|
|
5720
5860
|
]);
|
|
5721
5861
|
const Comp = asChild ? import_radix_ui29.Slot.Root : "button";
|
|
5722
5862
|
const { isMobile, state } = useSidebar();
|
|
5723
|
-
const button = /* @__PURE__ */ (0,
|
|
5863
|
+
const button = /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5724
5864
|
Comp,
|
|
5725
5865
|
__spreadValues({
|
|
5726
5866
|
"data-slot": "sidebar-menu-button",
|
|
@@ -5738,9 +5878,9 @@ function SidebarMenuButton(_a) {
|
|
|
5738
5878
|
children: tooltip
|
|
5739
5879
|
};
|
|
5740
5880
|
}
|
|
5741
|
-
return /* @__PURE__ */ (0,
|
|
5742
|
-
/* @__PURE__ */ (0,
|
|
5743
|
-
/* @__PURE__ */ (0,
|
|
5881
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Tooltip2, { children: [
|
|
5882
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(TooltipTrigger, { asChild: true, children: button }),
|
|
5883
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5744
5884
|
TooltipContent,
|
|
5745
5885
|
__spreadValues({
|
|
5746
5886
|
side: "right",
|
|
@@ -5761,7 +5901,7 @@ function SidebarMenuAction(_a) {
|
|
|
5761
5901
|
"showOnHover"
|
|
5762
5902
|
]);
|
|
5763
5903
|
const Comp = asChild ? import_radix_ui29.Slot.Root : "button";
|
|
5764
|
-
return /* @__PURE__ */ (0,
|
|
5904
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5765
5905
|
Comp,
|
|
5766
5906
|
__spreadValues({
|
|
5767
5907
|
"data-slot": "sidebar-menu-action",
|
|
@@ -5786,7 +5926,7 @@ function SidebarMenuBadge(_a) {
|
|
|
5786
5926
|
} = _b, props = __objRest(_b, [
|
|
5787
5927
|
"className"
|
|
5788
5928
|
]);
|
|
5789
|
-
return /* @__PURE__ */ (0,
|
|
5929
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5790
5930
|
"div",
|
|
5791
5931
|
__spreadValues({
|
|
5792
5932
|
"data-slot": "sidebar-menu-badge",
|
|
@@ -5812,7 +5952,7 @@ function SidebarMenuSkeleton(_a) {
|
|
|
5812
5952
|
"showIcon"
|
|
5813
5953
|
]);
|
|
5814
5954
|
const width = "70%";
|
|
5815
|
-
return /* @__PURE__ */ (0,
|
|
5955
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
5816
5956
|
"div",
|
|
5817
5957
|
__spreadProps(__spreadValues({
|
|
5818
5958
|
"data-slot": "sidebar-menu-skeleton",
|
|
@@ -5820,14 +5960,14 @@ function SidebarMenuSkeleton(_a) {
|
|
|
5820
5960
|
className: cn("flex h-8 items-center gap-2 rounded-md px-2", className)
|
|
5821
5961
|
}, props), {
|
|
5822
5962
|
children: [
|
|
5823
|
-
showIcon && /* @__PURE__ */ (0,
|
|
5963
|
+
showIcon && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5824
5964
|
Skeleton,
|
|
5825
5965
|
{
|
|
5826
5966
|
className: "size-4 rounded-md",
|
|
5827
5967
|
"data-sidebar": "menu-skeleton-icon"
|
|
5828
5968
|
}
|
|
5829
5969
|
),
|
|
5830
|
-
/* @__PURE__ */ (0,
|
|
5970
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5831
5971
|
Skeleton,
|
|
5832
5972
|
{
|
|
5833
5973
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
@@ -5843,7 +5983,7 @@ function SidebarMenuSkeleton(_a) {
|
|
|
5843
5983
|
}
|
|
5844
5984
|
function SidebarMenuSub(_a) {
|
|
5845
5985
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5846
|
-
return /* @__PURE__ */ (0,
|
|
5986
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5847
5987
|
"ul",
|
|
5848
5988
|
__spreadValues({
|
|
5849
5989
|
"data-slot": "sidebar-menu-sub",
|
|
@@ -5862,7 +6002,7 @@ function SidebarMenuSubItem(_a) {
|
|
|
5862
6002
|
} = _b, props = __objRest(_b, [
|
|
5863
6003
|
"className"
|
|
5864
6004
|
]);
|
|
5865
|
-
return /* @__PURE__ */ (0,
|
|
6005
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5866
6006
|
"li",
|
|
5867
6007
|
__spreadValues({
|
|
5868
6008
|
"data-slot": "sidebar-menu-sub-item",
|
|
@@ -5884,7 +6024,7 @@ function SidebarMenuSubButton(_a) {
|
|
|
5884
6024
|
"className"
|
|
5885
6025
|
]);
|
|
5886
6026
|
const Comp = asChild ? import_radix_ui29.Slot.Root : "a";
|
|
5887
|
-
return /* @__PURE__ */ (0,
|
|
6027
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5888
6028
|
Comp,
|
|
5889
6029
|
__spreadValues({
|
|
5890
6030
|
"data-slot": "sidebar-menu-sub-button",
|
|
@@ -5904,9 +6044,9 @@ function SidebarMenuSubButton(_a) {
|
|
|
5904
6044
|
}
|
|
5905
6045
|
|
|
5906
6046
|
// components/ui/slider.tsx
|
|
5907
|
-
var
|
|
6047
|
+
var React10 = __toESM(require("react"), 1);
|
|
5908
6048
|
var import_radix_ui30 = require("radix-ui");
|
|
5909
|
-
var
|
|
6049
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
5910
6050
|
function Slider(_a) {
|
|
5911
6051
|
var _b = _a, {
|
|
5912
6052
|
className,
|
|
@@ -5921,11 +6061,11 @@ function Slider(_a) {
|
|
|
5921
6061
|
"min",
|
|
5922
6062
|
"max"
|
|
5923
6063
|
]);
|
|
5924
|
-
const _values =
|
|
6064
|
+
const _values = React10.useMemo(
|
|
5925
6065
|
() => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
|
|
5926
6066
|
[value, defaultValue, min, max]
|
|
5927
6067
|
);
|
|
5928
|
-
return /* @__PURE__ */ (0,
|
|
6068
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
5929
6069
|
import_radix_ui30.Slider.Root,
|
|
5930
6070
|
__spreadProps(__spreadValues({
|
|
5931
6071
|
"data-slot": "slider",
|
|
@@ -5939,14 +6079,14 @@ function Slider(_a) {
|
|
|
5939
6079
|
)
|
|
5940
6080
|
}, props), {
|
|
5941
6081
|
children: [
|
|
5942
|
-
/* @__PURE__ */ (0,
|
|
6082
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5943
6083
|
import_radix_ui30.Slider.Track,
|
|
5944
6084
|
{
|
|
5945
6085
|
"data-slot": "slider-track",
|
|
5946
6086
|
className: cn(
|
|
5947
6087
|
"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"
|
|
5948
6088
|
),
|
|
5949
|
-
children: /* @__PURE__ */ (0,
|
|
6089
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5950
6090
|
import_radix_ui30.Slider.Range,
|
|
5951
6091
|
{
|
|
5952
6092
|
"data-slot": "slider-range",
|
|
@@ -5957,7 +6097,7 @@ function Slider(_a) {
|
|
|
5957
6097
|
)
|
|
5958
6098
|
}
|
|
5959
6099
|
),
|
|
5960
|
-
Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ (0,
|
|
6100
|
+
Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5961
6101
|
import_radix_ui30.Slider.Thumb,
|
|
5962
6102
|
{
|
|
5963
6103
|
"data-slot": "slider-thumb",
|
|
@@ -5974,21 +6114,21 @@ function Slider(_a) {
|
|
|
5974
6114
|
var import_lucide_react21 = require("lucide-react");
|
|
5975
6115
|
var import_next_themes = require("next-themes");
|
|
5976
6116
|
var import_sonner = require("sonner");
|
|
5977
|
-
var
|
|
6117
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
5978
6118
|
var Toaster = (_a) => {
|
|
5979
6119
|
var props = __objRest(_a, []);
|
|
5980
6120
|
const { theme = "system" } = (0, import_next_themes.useTheme)();
|
|
5981
|
-
return /* @__PURE__ */ (0,
|
|
6121
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5982
6122
|
import_sonner.Toaster,
|
|
5983
6123
|
__spreadValues({
|
|
5984
6124
|
theme,
|
|
5985
6125
|
className: "toaster group",
|
|
5986
6126
|
icons: {
|
|
5987
|
-
success: /* @__PURE__ */ (0,
|
|
5988
|
-
info: /* @__PURE__ */ (0,
|
|
5989
|
-
warning: /* @__PURE__ */ (0,
|
|
5990
|
-
error: /* @__PURE__ */ (0,
|
|
5991
|
-
loading: /* @__PURE__ */ (0,
|
|
6127
|
+
success: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react21.CircleCheckIcon, { className: "size-4" }),
|
|
6128
|
+
info: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react21.InfoIcon, { className: "size-4" }),
|
|
6129
|
+
warning: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react21.TriangleAlertIcon, { className: "size-4" }),
|
|
6130
|
+
error: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react21.OctagonXIcon, { className: "size-4" }),
|
|
6131
|
+
loading: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react21.Loader2Icon, { className: "size-4 animate-spin" })
|
|
5992
6132
|
},
|
|
5993
6133
|
style: {
|
|
5994
6134
|
"--normal-bg": "var(--popover)",
|
|
@@ -6001,9 +6141,9 @@ var Toaster = (_a) => {
|
|
|
6001
6141
|
};
|
|
6002
6142
|
|
|
6003
6143
|
// components/ui/stepper.tsx
|
|
6004
|
-
var
|
|
6144
|
+
var React11 = __toESM(require("react"), 1);
|
|
6005
6145
|
var import_lucide_react22 = require("lucide-react");
|
|
6006
|
-
var
|
|
6146
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
6007
6147
|
function clamp(value, min, max) {
|
|
6008
6148
|
return Math.min(Math.max(value, min), max);
|
|
6009
6149
|
}
|
|
@@ -6017,8 +6157,8 @@ function formatValue(value, decimalPlaces) {
|
|
|
6017
6157
|
}
|
|
6018
6158
|
var stepperSizeConfig = {
|
|
6019
6159
|
sm: { container: "h-8", buttonSize: "icon-xs", iconClass: "size-3" },
|
|
6020
|
-
md: { container: "h-
|
|
6021
|
-
lg: { container: "h-
|
|
6160
|
+
md: { container: "h-10", buttonSize: "icon-xs", iconClass: "size-3.5" },
|
|
6161
|
+
lg: { container: "h-12", buttonSize: "icon-sm", iconClass: "size-4" }
|
|
6022
6162
|
};
|
|
6023
6163
|
function Stepper({
|
|
6024
6164
|
value: controlledValue,
|
|
@@ -6037,16 +6177,16 @@ function Stepper({
|
|
|
6037
6177
|
}) {
|
|
6038
6178
|
const { container, buttonSize, iconClass } = stepperSizeConfig[size];
|
|
6039
6179
|
const isControlled = controlledValue !== void 0;
|
|
6040
|
-
const [internalValue, setInternalValue] =
|
|
6180
|
+
const [internalValue, setInternalValue] = React11.useState(
|
|
6041
6181
|
clamp(defaultValue, min, max)
|
|
6042
6182
|
);
|
|
6043
6183
|
const currentValue = isControlled ? controlledValue : internalValue;
|
|
6044
6184
|
const decimalPlaces = getDecimalPlaces(step);
|
|
6045
|
-
const [displayString, setDisplayString] =
|
|
6185
|
+
const [displayString, setDisplayString] = React11.useState(
|
|
6046
6186
|
formatValue(currentValue, decimalPlaces)
|
|
6047
6187
|
);
|
|
6048
|
-
const [isFocused, setIsFocused] =
|
|
6049
|
-
|
|
6188
|
+
const [isFocused, setIsFocused] = React11.useState(false);
|
|
6189
|
+
React11.useEffect(() => {
|
|
6050
6190
|
if (!isFocused) {
|
|
6051
6191
|
setDisplayString(formatValue(currentValue, decimalPlaces));
|
|
6052
6192
|
}
|
|
@@ -6096,14 +6236,14 @@ function Stepper({
|
|
|
6096
6236
|
}
|
|
6097
6237
|
}
|
|
6098
6238
|
}
|
|
6099
|
-
return /* @__PURE__ */ (0,
|
|
6239
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
6100
6240
|
InputGroup,
|
|
6101
6241
|
{
|
|
6102
6242
|
"data-slot": "stepper",
|
|
6103
6243
|
"data-disabled": disabled || void 0,
|
|
6104
6244
|
className: cn("w-32", container, className),
|
|
6105
6245
|
children: [
|
|
6106
|
-
/* @__PURE__ */ (0,
|
|
6246
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(InputGroupAddon, { align: "inline-start", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6107
6247
|
InputGroupButton,
|
|
6108
6248
|
{
|
|
6109
6249
|
size: buttonSize,
|
|
@@ -6111,10 +6251,10 @@ function Stepper({
|
|
|
6111
6251
|
onClick: handleDecrement,
|
|
6112
6252
|
disabled: disabled || currentValue <= min,
|
|
6113
6253
|
"aria-label": "Decrease value",
|
|
6114
|
-
children: /* @__PURE__ */ (0,
|
|
6254
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_lucide_react22.Minus, { className: iconClass })
|
|
6115
6255
|
}
|
|
6116
6256
|
) }),
|
|
6117
|
-
/* @__PURE__ */ (0,
|
|
6257
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6118
6258
|
InputGroupInput,
|
|
6119
6259
|
{
|
|
6120
6260
|
type: "text",
|
|
@@ -6136,9 +6276,9 @@ function Stepper({
|
|
|
6136
6276
|
className: "text-center [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"
|
|
6137
6277
|
}
|
|
6138
6278
|
),
|
|
6139
|
-
/* @__PURE__ */ (0,
|
|
6140
|
-
/* @__PURE__ */ (0,
|
|
6141
|
-
/* @__PURE__ */ (0,
|
|
6279
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(InputGroupAddon, { align: "inline-end", children: [
|
|
6280
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(InputGroupText, { className: "font-normal text-on-subtle", children: "USDT" }),
|
|
6281
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6142
6282
|
InputGroupButton,
|
|
6143
6283
|
{
|
|
6144
6284
|
size: buttonSize,
|
|
@@ -6146,7 +6286,7 @@ function Stepper({
|
|
|
6146
6286
|
onClick: handleIncrement,
|
|
6147
6287
|
disabled: disabled || currentValue >= max,
|
|
6148
6288
|
"aria-label": "Increase value",
|
|
6149
|
-
children: /* @__PURE__ */ (0,
|
|
6289
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_lucide_react22.Plus, { className: iconClass })
|
|
6150
6290
|
}
|
|
6151
6291
|
)
|
|
6152
6292
|
] })
|
|
@@ -6155,48 +6295,6 @@ function Stepper({
|
|
|
6155
6295
|
);
|
|
6156
6296
|
}
|
|
6157
6297
|
|
|
6158
|
-
// components/ui/spinner.tsx
|
|
6159
|
-
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
6160
|
-
var PILL_COUNT = 8;
|
|
6161
|
-
function Spinner(_a) {
|
|
6162
|
-
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6163
|
-
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
6164
|
-
"div",
|
|
6165
|
-
__spreadProps(__spreadValues({
|
|
6166
|
-
role: "status",
|
|
6167
|
-
"aria-label": "Loading",
|
|
6168
|
-
className: cn("relative inline-block size-4 text-current", className)
|
|
6169
|
-
}, props), {
|
|
6170
|
-
children: [
|
|
6171
|
-
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("style", { children: `
|
|
6172
|
-
@keyframes spinner-fade {
|
|
6173
|
-
0% { opacity: 1; }
|
|
6174
|
-
100% { opacity: 0.15; }
|
|
6175
|
-
}
|
|
6176
|
-
` }),
|
|
6177
|
-
Array.from({ length: PILL_COUNT }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6178
|
-
"span",
|
|
6179
|
-
{
|
|
6180
|
-
style: {
|
|
6181
|
-
position: "absolute",
|
|
6182
|
-
left: "50%",
|
|
6183
|
-
top: "0",
|
|
6184
|
-
width: "12%",
|
|
6185
|
-
height: "30%",
|
|
6186
|
-
borderRadius: "9999px",
|
|
6187
|
-
backgroundColor: "currentColor",
|
|
6188
|
-
transformOrigin: "50% 167%",
|
|
6189
|
-
transform: `translateX(-50%) rotate(${i * 45}deg)`,
|
|
6190
|
-
animation: `spinner-fade 0.8s linear ${i * 0.8 / PILL_COUNT}s infinite`
|
|
6191
|
-
}
|
|
6192
|
-
},
|
|
6193
|
-
i
|
|
6194
|
-
))
|
|
6195
|
-
]
|
|
6196
|
-
})
|
|
6197
|
-
);
|
|
6198
|
-
}
|
|
6199
|
-
|
|
6200
6298
|
// components/ui/switch.tsx
|
|
6201
6299
|
var import_radix_ui31 = require("radix-ui");
|
|
6202
6300
|
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
@@ -6338,7 +6436,7 @@ function TableCaption(_a) {
|
|
|
6338
6436
|
}
|
|
6339
6437
|
|
|
6340
6438
|
// components/ui/tabs.tsx
|
|
6341
|
-
var
|
|
6439
|
+
var import_class_variance_authority12 = require("class-variance-authority");
|
|
6342
6440
|
var import_radix_ui32 = require("radix-ui");
|
|
6343
6441
|
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
6344
6442
|
function Tabs(_a) {
|
|
@@ -6362,7 +6460,7 @@ function Tabs(_a) {
|
|
|
6362
6460
|
}, props)
|
|
6363
6461
|
);
|
|
6364
6462
|
}
|
|
6365
|
-
var tabsListVariants = (0,
|
|
6463
|
+
var tabsListVariants = (0, import_class_variance_authority12.cva)(
|
|
6366
6464
|
"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",
|
|
6367
6465
|
{
|
|
6368
6466
|
variants: {
|
|
@@ -6537,10 +6635,10 @@ function TicketCard({
|
|
|
6537
6635
|
}
|
|
6538
6636
|
|
|
6539
6637
|
// components/ui/toggle.tsx
|
|
6540
|
-
var
|
|
6638
|
+
var import_class_variance_authority13 = require("class-variance-authority");
|
|
6541
6639
|
var import_radix_ui33 = require("radix-ui");
|
|
6542
6640
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
6543
|
-
var toggleVariants = (0,
|
|
6641
|
+
var toggleVariants = (0, import_class_variance_authority13.cva)(
|
|
6544
6642
|
"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",
|
|
6545
6643
|
{
|
|
6546
6644
|
variants: {
|
|
@@ -6580,10 +6678,10 @@ function Toggle(_a) {
|
|
|
6580
6678
|
}
|
|
6581
6679
|
|
|
6582
6680
|
// components/ui/toggle-group.tsx
|
|
6583
|
-
var
|
|
6681
|
+
var React12 = __toESM(require("react"), 1);
|
|
6584
6682
|
var import_radix_ui34 = require("radix-ui");
|
|
6585
6683
|
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
6586
|
-
var ToggleGroupContext =
|
|
6684
|
+
var ToggleGroupContext = React12.createContext({
|
|
6587
6685
|
size: "default",
|
|
6588
6686
|
variant: "default",
|
|
6589
6687
|
spacing: 0
|
|
@@ -6631,7 +6729,7 @@ function ToggleGroupItem(_a) {
|
|
|
6631
6729
|
"variant",
|
|
6632
6730
|
"size"
|
|
6633
6731
|
]);
|
|
6634
|
-
const context =
|
|
6732
|
+
const context = React12.useContext(ToggleGroupContext);
|
|
6635
6733
|
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
6636
6734
|
import_radix_ui34.ToggleGroup.Item,
|
|
6637
6735
|
__spreadProps(__spreadValues({
|
|
@@ -6961,6 +7059,7 @@ function ToggleGroupItem(_a) {
|
|
|
6961
7059
|
badgeVariants,
|
|
6962
7060
|
buttonVariants,
|
|
6963
7061
|
cn,
|
|
7062
|
+
inputVariants,
|
|
6964
7063
|
linkVariants,
|
|
6965
7064
|
navigationMenuTriggerStyle,
|
|
6966
7065
|
tabsListVariants,
|