@deriv-com/trading-game-design-system 0.2.10 → 0.2.12
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/README.md +21 -11
- package/dist/index.cjs +675 -778
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -18
- package/dist/index.d.ts +10 -18
- package/dist/index.js +523 -622
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/styles.css +87 -85
package/dist/index.cjs
CHANGED
|
@@ -95,9 +95,6 @@ __export(index_exports, {
|
|
|
95
95
|
BreadcrumbPage: () => BreadcrumbPage,
|
|
96
96
|
BreadcrumbSeparator: () => BreadcrumbSeparator,
|
|
97
97
|
Button: () => Button,
|
|
98
|
-
ButtonGroup: () => ButtonGroup,
|
|
99
|
-
ButtonGroupSeparator: () => ButtonGroupSeparator,
|
|
100
|
-
ButtonGroupText: () => ButtonGroupText,
|
|
101
98
|
Calendar: () => Calendar,
|
|
102
99
|
CalendarDayButton: () => CalendarDayButton,
|
|
103
100
|
Card: () => Card,
|
|
@@ -364,7 +361,6 @@ __export(index_exports, {
|
|
|
364
361
|
TooltipProvider: () => TooltipProvider,
|
|
365
362
|
TooltipTrigger: () => TooltipTrigger,
|
|
366
363
|
badgeVariants: () => badgeVariants,
|
|
367
|
-
buttonGroupVariants: () => buttonGroupVariants,
|
|
368
364
|
buttonVariants: () => buttonVariants,
|
|
369
365
|
cn: () => cn,
|
|
370
366
|
navigationMenuTriggerStyle: () => navigationMenuTriggerStyle,
|
|
@@ -456,7 +452,7 @@ function AccordionContent(_a) {
|
|
|
456
452
|
var import_class_variance_authority = require("class-variance-authority");
|
|
457
453
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
458
454
|
var alertVariants = (0, import_class_variance_authority.cva)(
|
|
459
|
-
"relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-
|
|
455
|
+
"relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-sm border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
|
|
460
456
|
{
|
|
461
457
|
variants: {
|
|
462
458
|
variant: {
|
|
@@ -532,22 +528,18 @@ var buttonVariants = (0, import_class_variance_authority2.cva)(
|
|
|
532
528
|
// Cyan family
|
|
533
529
|
primary: "bg-primary text-primary-foreground shadow-[0_0_20px_rgba(0,255,255,0.3)] hover:[background:linear-gradient(rgba(255,255,255,0.1),rgba(255,255,255,0.1)),var(--color-primary)] hover:shadow-[0_0_20px_rgba(0,255,255,0.8)]",
|
|
534
530
|
secondary: "[background:linear-gradient(rgba(0,0,0,0.2),rgba(0,0,0,0.2)),rgba(0,255,255,0.04)] border border-primary/40 text-primary shadow-[0_0_20px_rgba(0,255,255,0.3)] hover:[background:rgba(0,255,255,0.04)] hover:border-primary hover:shadow-[0_0_20px_rgba(0,255,255,0.4)]",
|
|
535
|
-
tertiary: "bg-transparent text-primary hover:underline underline-offset-4"
|
|
536
|
-
// Amber family
|
|
537
|
-
"amber-primary": "bg-secondary-hover text-primary-foreground hover:[background:linear-gradient(rgba(255,255,255,0.2),rgba(255,255,255,0.2)),var(--color-secondary-hover)]",
|
|
538
|
-
"amber-secondary": "bg-transparent border border-secondary-hover/30 text-secondary-hover hover:bg-secondary-hover/[0.04] hover:border-secondary-hover",
|
|
539
|
-
"amber-tertiary": "bg-transparent text-secondary-hover hover:underline underline-offset-4"
|
|
531
|
+
tertiary: "bg-transparent text-primary hover:underline underline-offset-4"
|
|
540
532
|
},
|
|
541
533
|
size: {
|
|
542
|
-
lg: "h-12 gap-3 rounded-
|
|
543
|
-
md: "h-10 gap-2 rounded-
|
|
544
|
-
sm: "h-8 gap-1 rounded-
|
|
545
|
-
xs: "h-6 gap-1 rounded-
|
|
546
|
-
icon: "size-12 rounded-
|
|
547
|
-
"icon-lg": "size-12 rounded-
|
|
548
|
-
"icon-md": "size-10 rounded-
|
|
549
|
-
"icon-sm": "size-7 rounded-
|
|
550
|
-
"icon-xs": "size-6 rounded-
|
|
534
|
+
lg: "h-12 gap-3 rounded-sm px-6 py-[14px] text-sm [&_svg:not([class*='size-'])]:size-4",
|
|
535
|
+
md: "h-10 gap-2 rounded-xs px-4 py-3 text-sm [&_svg:not([class*='size-'])]:size-4",
|
|
536
|
+
sm: "h-8 gap-1 rounded-xs px-3 py-2 text-xs [&_svg:not([class*='size-'])]:size-[14px]",
|
|
537
|
+
xs: "h-6 gap-1 rounded-xs px-2 py-1.5 text-xs [&_svg:not([class*='size-'])]:size-3",
|
|
538
|
+
icon: "size-12 rounded-sm [&_svg:not([class*='size-'])]:size-4",
|
|
539
|
+
"icon-lg": "size-12 rounded-sm [&_svg:not([class*='size-'])]:size-4",
|
|
540
|
+
"icon-md": "size-10 rounded-sm [&_svg:not([class*='size-'])]:size-4",
|
|
541
|
+
"icon-sm": "size-7 rounded-sm [&_svg:not([class*='size-'])]:size-4",
|
|
542
|
+
"icon-xs": "size-6 rounded-sm [&_svg:not([class*='size-'])]:size-3"
|
|
551
543
|
}
|
|
552
544
|
},
|
|
553
545
|
defaultVariants: {
|
|
@@ -609,7 +601,7 @@ function AlertDialogOverlay(_a) {
|
|
|
609
601
|
__spreadValues({
|
|
610
602
|
"data-slot": "alert-dialog-overlay",
|
|
611
603
|
className: cn(
|
|
612
|
-
"fixed inset-0 z-50 bg-
|
|
604
|
+
"fixed inset-0 z-50 bg-overlay data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",
|
|
613
605
|
className
|
|
614
606
|
)
|
|
615
607
|
}, props)
|
|
@@ -631,7 +623,7 @@ function AlertDialogContent(_a) {
|
|
|
631
623
|
"data-slot": "alert-dialog-content",
|
|
632
624
|
"data-size": size,
|
|
633
625
|
className: cn(
|
|
634
|
-
"group/alert-dialog-content fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-
|
|
626
|
+
"group/alert-dialog-content fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-sm border bg-background p-6 shadow-lg duration-200 data-[size=sm]:max-w-xs data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[size=default]:sm:max-w-lg",
|
|
635
627
|
className
|
|
636
628
|
)
|
|
637
629
|
}, props)
|
|
@@ -782,7 +774,7 @@ function Avatar(_a) {
|
|
|
782
774
|
"data-slot": "avatar",
|
|
783
775
|
"data-size": size,
|
|
784
776
|
className: cn(
|
|
785
|
-
"group/avatar relative flex size-8 shrink-0
|
|
777
|
+
"group/avatar relative flex size-8 shrink-0 rounded-full select-none data-[size=lg]:size-10 data-[size=sm]:size-6",
|
|
786
778
|
className
|
|
787
779
|
)
|
|
788
780
|
}, props)
|
|
@@ -798,7 +790,7 @@ function AvatarImage(_a) {
|
|
|
798
790
|
import_radix_ui5.Avatar.Image,
|
|
799
791
|
__spreadValues({
|
|
800
792
|
"data-slot": "avatar-image",
|
|
801
|
-
className: cn("aspect-square size-full", className)
|
|
793
|
+
className: cn("aspect-square size-full overflow-hidden rounded-full", className)
|
|
802
794
|
}, props)
|
|
803
795
|
);
|
|
804
796
|
}
|
|
@@ -813,7 +805,7 @@ function AvatarFallback(_a) {
|
|
|
813
805
|
__spreadValues({
|
|
814
806
|
"data-slot": "avatar-fallback",
|
|
815
807
|
className: cn(
|
|
816
|
-
"flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",
|
|
808
|
+
"flex size-full items-center justify-center overflow-hidden rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",
|
|
817
809
|
className
|
|
818
810
|
)
|
|
819
811
|
}, props)
|
|
@@ -871,20 +863,29 @@ var import_class_variance_authority3 = require("class-variance-authority");
|
|
|
871
863
|
var import_radix_ui6 = require("radix-ui");
|
|
872
864
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
873
865
|
var badgeVariants = (0, import_class_variance_authority3.cva)(
|
|
874
|
-
"inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent
|
|
866
|
+
"inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent text-xs font-display font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",
|
|
875
867
|
{
|
|
876
868
|
variants: {
|
|
877
869
|
variant: {
|
|
878
870
|
default: "bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
879
871
|
secondary: "bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
872
|
+
fill: "bg-primary/10 border-transparent text-primary",
|
|
873
|
+
"fill-amber": "bg-secondary-hover/10 border-transparent text-secondary-hover",
|
|
874
|
+
"fill-purple": "bg-badge-rank/10 border-transparent text-badge-rank",
|
|
875
|
+
"fill-success": "bg-semantic-win/10 border-transparent text-semantic-win",
|
|
876
|
+
"fill-fail": "bg-semantic-loss/10 border-transparent text-semantic-loss",
|
|
877
|
+
ghost: "bg-transparent border-transparent text-primary [a&]:hover:bg-primary/10 [a&]:hover:text-primary",
|
|
883
878
|
link: "text-primary underline-offset-4 [a&]:hover:underline"
|
|
879
|
+
},
|
|
880
|
+
size: {
|
|
881
|
+
default: "h-5 px-2 py-0.5 text-xs",
|
|
882
|
+
md: "h-8 px-3 py-1 text-sm",
|
|
883
|
+
lg: "h-10 px-4 py-1.5 text-sm"
|
|
884
884
|
}
|
|
885
885
|
},
|
|
886
886
|
defaultVariants: {
|
|
887
|
-
variant: "default"
|
|
887
|
+
variant: "default",
|
|
888
|
+
size: "default"
|
|
888
889
|
}
|
|
889
890
|
}
|
|
890
891
|
);
|
|
@@ -892,10 +893,12 @@ function Badge(_a) {
|
|
|
892
893
|
var _b = _a, {
|
|
893
894
|
className,
|
|
894
895
|
variant = "default",
|
|
896
|
+
size = "default",
|
|
895
897
|
asChild = false
|
|
896
898
|
} = _b, props = __objRest(_b, [
|
|
897
899
|
"className",
|
|
898
900
|
"variant",
|
|
901
|
+
"size",
|
|
899
902
|
"asChild"
|
|
900
903
|
]);
|
|
901
904
|
const Comp = asChild ? import_radix_ui6.Slot.Root : "span";
|
|
@@ -904,7 +907,7 @@ function Badge(_a) {
|
|
|
904
907
|
__spreadValues({
|
|
905
908
|
"data-slot": "badge",
|
|
906
909
|
"data-variant": variant,
|
|
907
|
-
className: cn(badgeVariants({ variant }), className)
|
|
910
|
+
className: cn(badgeVariants({ variant, size }), className)
|
|
908
911
|
}, props)
|
|
909
912
|
);
|
|
910
913
|
}
|
|
@@ -966,7 +969,7 @@ function BreadcrumbPage(_a) {
|
|
|
966
969
|
role: "link",
|
|
967
970
|
"aria-disabled": "true",
|
|
968
971
|
"aria-current": "page",
|
|
969
|
-
className: cn("font-normal text-
|
|
972
|
+
className: cn("font-normal text-secondary-hover", className)
|
|
970
973
|
}, props)
|
|
971
974
|
);
|
|
972
975
|
}
|
|
@@ -1012,116 +1015,11 @@ function BreadcrumbEllipsis(_a) {
|
|
|
1012
1015
|
);
|
|
1013
1016
|
}
|
|
1014
1017
|
|
|
1015
|
-
// components/ui/button-group.tsx
|
|
1016
|
-
var import_class_variance_authority4 = require("class-variance-authority");
|
|
1017
|
-
var import_radix_ui9 = require("radix-ui");
|
|
1018
|
-
|
|
1019
|
-
// components/ui/separator.tsx
|
|
1020
|
-
var import_radix_ui8 = require("radix-ui");
|
|
1021
|
-
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
1022
|
-
function Separator(_a) {
|
|
1023
|
-
var _b = _a, {
|
|
1024
|
-
className,
|
|
1025
|
-
orientation = "horizontal",
|
|
1026
|
-
decorative = true
|
|
1027
|
-
} = _b, props = __objRest(_b, [
|
|
1028
|
-
"className",
|
|
1029
|
-
"orientation",
|
|
1030
|
-
"decorative"
|
|
1031
|
-
]);
|
|
1032
|
-
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1033
|
-
import_radix_ui8.Separator.Root,
|
|
1034
|
-
__spreadValues({
|
|
1035
|
-
"data-slot": "separator",
|
|
1036
|
-
decorative,
|
|
1037
|
-
orientation,
|
|
1038
|
-
className: cn(
|
|
1039
|
-
"shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
1040
|
-
className
|
|
1041
|
-
)
|
|
1042
|
-
}, props)
|
|
1043
|
-
);
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
// components/ui/button-group.tsx
|
|
1047
|
-
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
1048
|
-
var buttonGroupVariants = (0, import_class_variance_authority4.cva)(
|
|
1049
|
-
"flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",
|
|
1050
|
-
{
|
|
1051
|
-
variants: {
|
|
1052
|
-
orientation: {
|
|
1053
|
-
horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",
|
|
1054
|
-
vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"
|
|
1055
|
-
}
|
|
1056
|
-
},
|
|
1057
|
-
defaultVariants: {
|
|
1058
|
-
orientation: "horizontal"
|
|
1059
|
-
}
|
|
1060
|
-
}
|
|
1061
|
-
);
|
|
1062
|
-
function ButtonGroup(_a) {
|
|
1063
|
-
var _b = _a, {
|
|
1064
|
-
className,
|
|
1065
|
-
orientation
|
|
1066
|
-
} = _b, props = __objRest(_b, [
|
|
1067
|
-
"className",
|
|
1068
|
-
"orientation"
|
|
1069
|
-
]);
|
|
1070
|
-
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1071
|
-
"div",
|
|
1072
|
-
__spreadValues({
|
|
1073
|
-
role: "group",
|
|
1074
|
-
"data-slot": "button-group",
|
|
1075
|
-
"data-orientation": orientation,
|
|
1076
|
-
className: cn(buttonGroupVariants({ orientation }), className)
|
|
1077
|
-
}, props)
|
|
1078
|
-
);
|
|
1079
|
-
}
|
|
1080
|
-
function ButtonGroupText(_a) {
|
|
1081
|
-
var _b = _a, {
|
|
1082
|
-
className,
|
|
1083
|
-
asChild = false
|
|
1084
|
-
} = _b, props = __objRest(_b, [
|
|
1085
|
-
"className",
|
|
1086
|
-
"asChild"
|
|
1087
|
-
]);
|
|
1088
|
-
const Comp = asChild ? import_radix_ui9.Slot.Root : "div";
|
|
1089
|
-
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1090
|
-
Comp,
|
|
1091
|
-
__spreadValues({
|
|
1092
|
-
className: cn(
|
|
1093
|
-
"flex items-center gap-2 rounded-md border bg-muted px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",
|
|
1094
|
-
className
|
|
1095
|
-
)
|
|
1096
|
-
}, props)
|
|
1097
|
-
);
|
|
1098
|
-
}
|
|
1099
|
-
function ButtonGroupSeparator(_a) {
|
|
1100
|
-
var _b = _a, {
|
|
1101
|
-
className,
|
|
1102
|
-
orientation = "vertical"
|
|
1103
|
-
} = _b, props = __objRest(_b, [
|
|
1104
|
-
"className",
|
|
1105
|
-
"orientation"
|
|
1106
|
-
]);
|
|
1107
|
-
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1108
|
-
Separator,
|
|
1109
|
-
__spreadValues({
|
|
1110
|
-
"data-slot": "button-group-separator",
|
|
1111
|
-
orientation,
|
|
1112
|
-
className: cn(
|
|
1113
|
-
"relative m-0! self-stretch bg-input data-[orientation=vertical]:h-auto",
|
|
1114
|
-
className
|
|
1115
|
-
)
|
|
1116
|
-
}, props)
|
|
1117
|
-
);
|
|
1118
|
-
}
|
|
1119
|
-
|
|
1120
1018
|
// components/ui/calendar.tsx
|
|
1121
1019
|
var React = __toESM(require("react"), 1);
|
|
1122
1020
|
var import_lucide_react3 = require("lucide-react");
|
|
1123
1021
|
var import_react_day_picker = require("react-day-picker");
|
|
1124
|
-
var
|
|
1022
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
1125
1023
|
function Calendar(_a) {
|
|
1126
1024
|
var _b = _a, {
|
|
1127
1025
|
className,
|
|
@@ -1141,7 +1039,7 @@ function Calendar(_a) {
|
|
|
1141
1039
|
"components"
|
|
1142
1040
|
]);
|
|
1143
1041
|
const defaultClassNames = (0, import_react_day_picker.getDefaultClassNames)();
|
|
1144
|
-
return /* @__PURE__ */ (0,
|
|
1042
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1145
1043
|
import_react_day_picker.DayPicker,
|
|
1146
1044
|
__spreadValues({
|
|
1147
1045
|
showOutsideDays,
|
|
@@ -1193,14 +1091,14 @@ function Calendar(_a) {
|
|
|
1193
1091
|
defaultClassNames.dropdown
|
|
1194
1092
|
),
|
|
1195
1093
|
caption_label: cn(
|
|
1196
|
-
"font-medium select-none",
|
|
1094
|
+
"font-body font-medium select-none",
|
|
1197
1095
|
captionLayout === "label" ? "text-sm" : "flex h-8 items-center gap-1 rounded-md pr-1 pl-2 text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground",
|
|
1198
1096
|
defaultClassNames.caption_label
|
|
1199
1097
|
),
|
|
1200
1098
|
table: "w-full border-collapse",
|
|
1201
1099
|
weekdays: cn("flex", defaultClassNames.weekdays),
|
|
1202
1100
|
weekday: cn(
|
|
1203
|
-
"flex-1 rounded-md text-[0.8rem] font-normal text-muted-foreground select-none",
|
|
1101
|
+
"flex-1 rounded-md text-[0.8rem] font-body font-normal text-muted-foreground select-none",
|
|
1204
1102
|
defaultClassNames.weekday
|
|
1205
1103
|
),
|
|
1206
1104
|
week: cn("mt-2 flex w-full", defaultClassNames.week),
|
|
@@ -1224,7 +1122,7 @@ function Calendar(_a) {
|
|
|
1224
1122
|
range_middle: cn("rounded-none", defaultClassNames.range_middle),
|
|
1225
1123
|
range_end: cn("rounded-r-md bg-accent", defaultClassNames.range_end),
|
|
1226
1124
|
today: cn(
|
|
1227
|
-
"rounded-md
|
|
1125
|
+
"rounded-md border border-primary/40 text-primary data-[selected=true]:rounded-none",
|
|
1228
1126
|
defaultClassNames.today
|
|
1229
1127
|
),
|
|
1230
1128
|
outside: cn(
|
|
@@ -1240,7 +1138,7 @@ function Calendar(_a) {
|
|
|
1240
1138
|
components: __spreadValues({
|
|
1241
1139
|
Root: (_a2) => {
|
|
1242
1140
|
var _b2 = _a2, { className: className2, rootRef } = _b2, props2 = __objRest(_b2, ["className", "rootRef"]);
|
|
1243
|
-
return /* @__PURE__ */ (0,
|
|
1141
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1244
1142
|
"div",
|
|
1245
1143
|
__spreadValues({
|
|
1246
1144
|
"data-slot": "calendar",
|
|
@@ -1252,22 +1150,22 @@ function Calendar(_a) {
|
|
|
1252
1150
|
Chevron: (_c) => {
|
|
1253
1151
|
var _d = _c, { className: className2, orientation } = _d, props2 = __objRest(_d, ["className", "orientation"]);
|
|
1254
1152
|
if (orientation === "left") {
|
|
1255
|
-
return /* @__PURE__ */ (0,
|
|
1153
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react3.ChevronLeftIcon, __spreadValues({ className: cn("size-4", className2) }, props2));
|
|
1256
1154
|
}
|
|
1257
1155
|
if (orientation === "right") {
|
|
1258
|
-
return /* @__PURE__ */ (0,
|
|
1156
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1259
1157
|
import_lucide_react3.ChevronRightIcon,
|
|
1260
1158
|
__spreadValues({
|
|
1261
1159
|
className: cn("size-4", className2)
|
|
1262
1160
|
}, props2)
|
|
1263
1161
|
);
|
|
1264
1162
|
}
|
|
1265
|
-
return /* @__PURE__ */ (0,
|
|
1163
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react3.ChevronDownIcon, __spreadValues({ className: cn("size-4", className2) }, props2));
|
|
1266
1164
|
},
|
|
1267
1165
|
DayButton: CalendarDayButton,
|
|
1268
1166
|
WeekNumber: (_e) => {
|
|
1269
1167
|
var _f = _e, { children } = _f, props2 = __objRest(_f, ["children"]);
|
|
1270
|
-
return /* @__PURE__ */ (0,
|
|
1168
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("td", __spreadProps(__spreadValues({}, props2), { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children }) }));
|
|
1271
1169
|
}
|
|
1272
1170
|
}, components)
|
|
1273
1171
|
}, props)
|
|
@@ -1289,11 +1187,11 @@ function CalendarDayButton(_a) {
|
|
|
1289
1187
|
var _a2;
|
|
1290
1188
|
if (modifiers.focused) (_a2 = ref.current) == null ? void 0 : _a2.focus();
|
|
1291
1189
|
}, [modifiers.focused]);
|
|
1292
|
-
return /* @__PURE__ */ (0,
|
|
1190
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1293
1191
|
Button,
|
|
1294
1192
|
__spreadValues({
|
|
1295
1193
|
ref,
|
|
1296
|
-
variant: "
|
|
1194
|
+
variant: "tertiary",
|
|
1297
1195
|
size: "icon",
|
|
1298
1196
|
"data-day": day.date.toLocaleDateString(),
|
|
1299
1197
|
"data-selected-single": modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle,
|
|
@@ -1301,7 +1199,7 @@ function CalendarDayButton(_a) {
|
|
|
1301
1199
|
"data-range-end": modifiers.range_end,
|
|
1302
1200
|
"data-range-middle": modifiers.range_middle,
|
|
1303
1201
|
className: cn(
|
|
1304
|
-
"flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground
|
|
1202
|
+
"flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-body font-normal bg-transparent border-transparent shadow-none text-foreground hover:bg-accent hover:text-foreground hover:no-underline hover:shadow-none group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[selected-single=true]:shadow-[0_0_12px_rgba(0,255,255,0.4)] [&>span]:text-xs [&>span]:opacity-70",
|
|
1305
1203
|
defaultClassNames.day,
|
|
1306
1204
|
className
|
|
1307
1205
|
)
|
|
@@ -1310,15 +1208,15 @@ function CalendarDayButton(_a) {
|
|
|
1310
1208
|
}
|
|
1311
1209
|
|
|
1312
1210
|
// components/ui/card.tsx
|
|
1313
|
-
var
|
|
1211
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
1314
1212
|
function Card(_a) {
|
|
1315
1213
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1316
|
-
return /* @__PURE__ */ (0,
|
|
1214
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1317
1215
|
"div",
|
|
1318
1216
|
__spreadValues({
|
|
1319
1217
|
"data-slot": "card",
|
|
1320
1218
|
className: cn(
|
|
1321
|
-
"flex flex-col gap-6 rounded-
|
|
1219
|
+
"flex flex-col gap-6 rounded-sm border bg-card py-6 text-card-foreground shadow-sm",
|
|
1322
1220
|
className
|
|
1323
1221
|
)
|
|
1324
1222
|
}, props)
|
|
@@ -1326,7 +1224,7 @@ function Card(_a) {
|
|
|
1326
1224
|
}
|
|
1327
1225
|
function CardHeader(_a) {
|
|
1328
1226
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1329
|
-
return /* @__PURE__ */ (0,
|
|
1227
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1330
1228
|
"div",
|
|
1331
1229
|
__spreadValues({
|
|
1332
1230
|
"data-slot": "card-header",
|
|
@@ -1339,7 +1237,7 @@ function CardHeader(_a) {
|
|
|
1339
1237
|
}
|
|
1340
1238
|
function CardTitle(_a) {
|
|
1341
1239
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1342
|
-
return /* @__PURE__ */ (0,
|
|
1240
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1343
1241
|
"div",
|
|
1344
1242
|
__spreadValues({
|
|
1345
1243
|
"data-slot": "card-title",
|
|
@@ -1349,7 +1247,7 @@ function CardTitle(_a) {
|
|
|
1349
1247
|
}
|
|
1350
1248
|
function CardDescription(_a) {
|
|
1351
1249
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1352
|
-
return /* @__PURE__ */ (0,
|
|
1250
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1353
1251
|
"div",
|
|
1354
1252
|
__spreadValues({
|
|
1355
1253
|
"data-slot": "card-description",
|
|
@@ -1359,7 +1257,7 @@ function CardDescription(_a) {
|
|
|
1359
1257
|
}
|
|
1360
1258
|
function CardAction(_a) {
|
|
1361
1259
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1362
|
-
return /* @__PURE__ */ (0,
|
|
1260
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1363
1261
|
"div",
|
|
1364
1262
|
__spreadValues({
|
|
1365
1263
|
"data-slot": "card-action",
|
|
@@ -1372,7 +1270,7 @@ function CardAction(_a) {
|
|
|
1372
1270
|
}
|
|
1373
1271
|
function CardContent(_a) {
|
|
1374
1272
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1375
|
-
return /* @__PURE__ */ (0,
|
|
1273
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1376
1274
|
"div",
|
|
1377
1275
|
__spreadValues({
|
|
1378
1276
|
"data-slot": "card-content",
|
|
@@ -1382,7 +1280,7 @@ function CardContent(_a) {
|
|
|
1382
1280
|
}
|
|
1383
1281
|
function CardFooter(_a) {
|
|
1384
1282
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1385
|
-
return /* @__PURE__ */ (0,
|
|
1283
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1386
1284
|
"div",
|
|
1387
1285
|
__spreadValues({
|
|
1388
1286
|
"data-slot": "card-footer",
|
|
@@ -1395,7 +1293,7 @@ function CardFooter(_a) {
|
|
|
1395
1293
|
var React2 = __toESM(require("react"), 1);
|
|
1396
1294
|
var import_embla_carousel_react = __toESM(require("embla-carousel-react"), 1);
|
|
1397
1295
|
var import_lucide_react4 = require("lucide-react");
|
|
1398
|
-
var
|
|
1296
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
1399
1297
|
var CarouselContext = React2.createContext(null);
|
|
1400
1298
|
function useCarousel() {
|
|
1401
1299
|
const context = React2.useContext(CarouselContext);
|
|
@@ -1464,7 +1362,7 @@ function Carousel(_a) {
|
|
|
1464
1362
|
api == null ? void 0 : api.off("select", onSelect);
|
|
1465
1363
|
};
|
|
1466
1364
|
}, [api, onSelect]);
|
|
1467
|
-
return /* @__PURE__ */ (0,
|
|
1365
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1468
1366
|
CarouselContext.Provider,
|
|
1469
1367
|
{
|
|
1470
1368
|
value: {
|
|
@@ -1477,7 +1375,7 @@ function Carousel(_a) {
|
|
|
1477
1375
|
canScrollPrev,
|
|
1478
1376
|
canScrollNext
|
|
1479
1377
|
},
|
|
1480
|
-
children: /* @__PURE__ */ (0,
|
|
1378
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1481
1379
|
"div",
|
|
1482
1380
|
__spreadProps(__spreadValues({
|
|
1483
1381
|
onKeyDownCapture: handleKeyDown,
|
|
@@ -1495,13 +1393,13 @@ function Carousel(_a) {
|
|
|
1495
1393
|
function CarouselContent(_a) {
|
|
1496
1394
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1497
1395
|
const { carouselRef, orientation } = useCarousel();
|
|
1498
|
-
return /* @__PURE__ */ (0,
|
|
1396
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1499
1397
|
"div",
|
|
1500
1398
|
{
|
|
1501
1399
|
ref: carouselRef,
|
|
1502
1400
|
className: "overflow-hidden",
|
|
1503
1401
|
"data-slot": "carousel-content",
|
|
1504
|
-
children: /* @__PURE__ */ (0,
|
|
1402
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1505
1403
|
"div",
|
|
1506
1404
|
__spreadValues({
|
|
1507
1405
|
className: cn(
|
|
@@ -1517,7 +1415,7 @@ function CarouselContent(_a) {
|
|
|
1517
1415
|
function CarouselItem(_a) {
|
|
1518
1416
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1519
1417
|
const { orientation } = useCarousel();
|
|
1520
|
-
return /* @__PURE__ */ (0,
|
|
1418
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1521
1419
|
"div",
|
|
1522
1420
|
__spreadValues({
|
|
1523
1421
|
role: "group",
|
|
@@ -1535,21 +1433,21 @@ function CarouselPrevious(_a) {
|
|
|
1535
1433
|
var _b = _a, {
|
|
1536
1434
|
className,
|
|
1537
1435
|
variant = "secondary",
|
|
1538
|
-
size = "icon"
|
|
1436
|
+
size = "icon-md"
|
|
1539
1437
|
} = _b, props = __objRest(_b, [
|
|
1540
1438
|
"className",
|
|
1541
1439
|
"variant",
|
|
1542
1440
|
"size"
|
|
1543
1441
|
]);
|
|
1544
1442
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
1545
|
-
return /* @__PURE__ */ (0,
|
|
1443
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
1546
1444
|
Button,
|
|
1547
1445
|
__spreadProps(__spreadValues({
|
|
1548
1446
|
"data-slot": "carousel-previous",
|
|
1549
1447
|
variant,
|
|
1550
1448
|
size,
|
|
1551
1449
|
className: cn(
|
|
1552
|
-
"absolute
|
|
1450
|
+
"absolute rounded-sm",
|
|
1553
1451
|
orientation === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
1554
1452
|
className
|
|
1555
1453
|
),
|
|
@@ -1557,8 +1455,8 @@ function CarouselPrevious(_a) {
|
|
|
1557
1455
|
onClick: scrollPrev
|
|
1558
1456
|
}, props), {
|
|
1559
1457
|
children: [
|
|
1560
|
-
/* @__PURE__ */ (0,
|
|
1561
|
-
/* @__PURE__ */ (0,
|
|
1458
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react4.ArrowLeft, {}),
|
|
1459
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "sr-only", children: "Previous slide" })
|
|
1562
1460
|
]
|
|
1563
1461
|
})
|
|
1564
1462
|
);
|
|
@@ -1567,21 +1465,21 @@ function CarouselNext(_a) {
|
|
|
1567
1465
|
var _b = _a, {
|
|
1568
1466
|
className,
|
|
1569
1467
|
variant = "secondary",
|
|
1570
|
-
size = "icon"
|
|
1468
|
+
size = "icon-md"
|
|
1571
1469
|
} = _b, props = __objRest(_b, [
|
|
1572
1470
|
"className",
|
|
1573
1471
|
"variant",
|
|
1574
1472
|
"size"
|
|
1575
1473
|
]);
|
|
1576
1474
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
1577
|
-
return /* @__PURE__ */ (0,
|
|
1475
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
1578
1476
|
Button,
|
|
1579
1477
|
__spreadProps(__spreadValues({
|
|
1580
1478
|
"data-slot": "carousel-next",
|
|
1581
1479
|
variant,
|
|
1582
1480
|
size,
|
|
1583
1481
|
className: cn(
|
|
1584
|
-
"absolute
|
|
1482
|
+
"absolute rounded-sm",
|
|
1585
1483
|
orientation === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
1586
1484
|
className
|
|
1587
1485
|
),
|
|
@@ -1589,8 +1487,8 @@ function CarouselNext(_a) {
|
|
|
1589
1487
|
onClick: scrollNext
|
|
1590
1488
|
}, props), {
|
|
1591
1489
|
children: [
|
|
1592
|
-
/* @__PURE__ */ (0,
|
|
1593
|
-
/* @__PURE__ */ (0,
|
|
1490
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react4.ArrowRight, {}),
|
|
1491
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "sr-only", children: "Next slide" })
|
|
1594
1492
|
]
|
|
1595
1493
|
})
|
|
1596
1494
|
);
|
|
@@ -1599,7 +1497,7 @@ function CarouselNext(_a) {
|
|
|
1599
1497
|
// components/ui/chart.tsx
|
|
1600
1498
|
var React3 = __toESM(require("react"), 1);
|
|
1601
1499
|
var RechartsPrimitive = __toESM(require("recharts"), 1);
|
|
1602
|
-
var
|
|
1500
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
1603
1501
|
var THEMES = { light: "", dark: ".dark" };
|
|
1604
1502
|
var ChartContext = React3.createContext(null);
|
|
1605
1503
|
function useChart() {
|
|
@@ -1623,7 +1521,7 @@ function ChartContainer(_a) {
|
|
|
1623
1521
|
]);
|
|
1624
1522
|
const uniqueId = React3.useId();
|
|
1625
1523
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
1626
|
-
return /* @__PURE__ */ (0,
|
|
1524
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
1627
1525
|
"div",
|
|
1628
1526
|
__spreadProps(__spreadValues({
|
|
1629
1527
|
"data-slot": "chart",
|
|
@@ -1634,8 +1532,8 @@ function ChartContainer(_a) {
|
|
|
1634
1532
|
)
|
|
1635
1533
|
}, props), {
|
|
1636
1534
|
children: [
|
|
1637
|
-
/* @__PURE__ */ (0,
|
|
1638
|
-
/* @__PURE__ */ (0,
|
|
1535
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ChartStyle, { id: chartId, config }),
|
|
1536
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(RechartsPrimitive.ResponsiveContainer, { children })
|
|
1639
1537
|
]
|
|
1640
1538
|
})
|
|
1641
1539
|
) });
|
|
@@ -1647,7 +1545,7 @@ var ChartStyle = ({ id, config }) => {
|
|
|
1647
1545
|
if (!colorConfig.length) {
|
|
1648
1546
|
return null;
|
|
1649
1547
|
}
|
|
1650
|
-
return /* @__PURE__ */ (0,
|
|
1548
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1651
1549
|
"style",
|
|
1652
1550
|
{
|
|
1653
1551
|
dangerouslySetInnerHTML: {
|
|
@@ -1693,12 +1591,12 @@ function ChartTooltipContent({
|
|
|
1693
1591
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1694
1592
|
const value = !labelKey && typeof label === "string" ? ((_a = config[label]) == null ? void 0 : _a.label) || label : itemConfig == null ? void 0 : itemConfig.label;
|
|
1695
1593
|
if (labelFormatter) {
|
|
1696
|
-
return /* @__PURE__ */ (0,
|
|
1594
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: cn("font-medium", labelClassName), children: labelFormatter(value, payload) });
|
|
1697
1595
|
}
|
|
1698
1596
|
if (!value) {
|
|
1699
1597
|
return null;
|
|
1700
1598
|
}
|
|
1701
|
-
return /* @__PURE__ */ (0,
|
|
1599
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: cn("font-medium", labelClassName), children: value });
|
|
1702
1600
|
}, [
|
|
1703
1601
|
label,
|
|
1704
1602
|
labelFormatter,
|
|
@@ -1712,7 +1610,7 @@ function ChartTooltipContent({
|
|
|
1712
1610
|
return null;
|
|
1713
1611
|
}
|
|
1714
1612
|
const nestLabel = payload.length === 1 && indicator !== "dot";
|
|
1715
|
-
return /* @__PURE__ */ (0,
|
|
1613
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
1716
1614
|
"div",
|
|
1717
1615
|
{
|
|
1718
1616
|
className: cn(
|
|
@@ -1721,19 +1619,19 @@ function ChartTooltipContent({
|
|
|
1721
1619
|
),
|
|
1722
1620
|
children: [
|
|
1723
1621
|
!nestLabel ? tooltipLabel : null,
|
|
1724
|
-
/* @__PURE__ */ (0,
|
|
1622
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "grid gap-1.5", children: payload.filter((item) => item.type !== "none").map((item, index) => {
|
|
1725
1623
|
const key = `${nameKey || item.name || item.dataKey || "value"}`;
|
|
1726
1624
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1727
1625
|
const indicatorColor = color || item.payload.fill || item.color;
|
|
1728
|
-
return /* @__PURE__ */ (0,
|
|
1626
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1729
1627
|
"div",
|
|
1730
1628
|
{
|
|
1731
1629
|
className: cn(
|
|
1732
1630
|
"flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",
|
|
1733
1631
|
indicator === "dot" && "items-center"
|
|
1734
1632
|
),
|
|
1735
|
-
children: formatter && (item == null ? void 0 : item.value) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ (0,
|
|
1736
|
-
(itemConfig == null ? void 0 : itemConfig.icon) ? /* @__PURE__ */ (0,
|
|
1633
|
+
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_runtime12.jsxs)(import_jsx_runtime12.Fragment, { children: [
|
|
1634
|
+
(itemConfig == null ? void 0 : itemConfig.icon) ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1737
1635
|
"div",
|
|
1738
1636
|
{
|
|
1739
1637
|
className: cn(
|
|
@@ -1751,7 +1649,7 @@ function ChartTooltipContent({
|
|
|
1751
1649
|
}
|
|
1752
1650
|
}
|
|
1753
1651
|
),
|
|
1754
|
-
/* @__PURE__ */ (0,
|
|
1652
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
1755
1653
|
"div",
|
|
1756
1654
|
{
|
|
1757
1655
|
className: cn(
|
|
@@ -1759,11 +1657,11 @@ function ChartTooltipContent({
|
|
|
1759
1657
|
nestLabel ? "items-end" : "items-center"
|
|
1760
1658
|
),
|
|
1761
1659
|
children: [
|
|
1762
|
-
/* @__PURE__ */ (0,
|
|
1660
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "grid gap-1.5", children: [
|
|
1763
1661
|
nestLabel ? tooltipLabel : null,
|
|
1764
|
-
/* @__PURE__ */ (0,
|
|
1662
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "text-muted-foreground", children: (itemConfig == null ? void 0 : itemConfig.label) || item.name })
|
|
1765
1663
|
] }),
|
|
1766
|
-
item.value && /* @__PURE__ */ (0,
|
|
1664
|
+
item.value && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "font-mono font-medium text-foreground tabular-nums", children: item.value.toLocaleString() })
|
|
1767
1665
|
]
|
|
1768
1666
|
}
|
|
1769
1667
|
)
|
|
@@ -1788,7 +1686,7 @@ function ChartLegendContent({
|
|
|
1788
1686
|
if (!(payload == null ? void 0 : payload.length)) {
|
|
1789
1687
|
return null;
|
|
1790
1688
|
}
|
|
1791
|
-
return /* @__PURE__ */ (0,
|
|
1689
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1792
1690
|
"div",
|
|
1793
1691
|
{
|
|
1794
1692
|
className: cn(
|
|
@@ -1799,14 +1697,14 @@ function ChartLegendContent({
|
|
|
1799
1697
|
children: payload.filter((item) => item.type !== "none").map((item) => {
|
|
1800
1698
|
const key = `${nameKey || item.dataKey || "value"}`;
|
|
1801
1699
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1802
|
-
return /* @__PURE__ */ (0,
|
|
1700
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
1803
1701
|
"div",
|
|
1804
1702
|
{
|
|
1805
1703
|
className: cn(
|
|
1806
1704
|
"flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"
|
|
1807
1705
|
),
|
|
1808
1706
|
children: [
|
|
1809
|
-
(itemConfig == null ? void 0 : itemConfig.icon) && !hideIcon ? /* @__PURE__ */ (0,
|
|
1707
|
+
(itemConfig == null ? void 0 : itemConfig.icon) && !hideIcon ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(itemConfig.icon, {}) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1810
1708
|
"div",
|
|
1811
1709
|
{
|
|
1812
1710
|
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
@@ -1840,29 +1738,29 @@ function getPayloadConfigFromPayload(config, payload, key) {
|
|
|
1840
1738
|
|
|
1841
1739
|
// components/ui/checkbox.tsx
|
|
1842
1740
|
var import_lucide_react5 = require("lucide-react");
|
|
1843
|
-
var
|
|
1844
|
-
var
|
|
1741
|
+
var import_radix_ui8 = require("radix-ui");
|
|
1742
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
1845
1743
|
function Checkbox(_a) {
|
|
1846
1744
|
var _b = _a, {
|
|
1847
1745
|
className
|
|
1848
1746
|
} = _b, props = __objRest(_b, [
|
|
1849
1747
|
"className"
|
|
1850
1748
|
]);
|
|
1851
|
-
return /* @__PURE__ */ (0,
|
|
1852
|
-
|
|
1749
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1750
|
+
import_radix_ui8.Checkbox.Root,
|
|
1853
1751
|
__spreadProps(__spreadValues({
|
|
1854
1752
|
"data-slot": "checkbox",
|
|
1855
1753
|
className: cn(
|
|
1856
|
-
"peer size-4 shrink-0 rounded-[
|
|
1754
|
+
"peer size-4 shrink-0 rounded-[2px] border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary",
|
|
1857
1755
|
className
|
|
1858
1756
|
)
|
|
1859
1757
|
}, props), {
|
|
1860
|
-
children: /* @__PURE__ */ (0,
|
|
1861
|
-
|
|
1758
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1759
|
+
import_radix_ui8.Checkbox.Indicator,
|
|
1862
1760
|
{
|
|
1863
1761
|
"data-slot": "checkbox-indicator",
|
|
1864
1762
|
className: "grid place-content-center text-current transition-none",
|
|
1865
|
-
children: /* @__PURE__ */ (0,
|
|
1763
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react5.CheckIcon, { className: "size-3.5" })
|
|
1866
1764
|
}
|
|
1867
1765
|
)
|
|
1868
1766
|
})
|
|
@@ -1870,16 +1768,16 @@ function Checkbox(_a) {
|
|
|
1870
1768
|
}
|
|
1871
1769
|
|
|
1872
1770
|
// components/ui/collapsible.tsx
|
|
1873
|
-
var
|
|
1874
|
-
var
|
|
1771
|
+
var import_radix_ui9 = require("radix-ui");
|
|
1772
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1875
1773
|
function Collapsible(_a) {
|
|
1876
1774
|
var props = __objRest(_a, []);
|
|
1877
|
-
return /* @__PURE__ */ (0,
|
|
1775
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_radix_ui9.Collapsible.Root, __spreadValues({ "data-slot": "collapsible" }, props));
|
|
1878
1776
|
}
|
|
1879
1777
|
function CollapsibleTrigger(_a) {
|
|
1880
1778
|
var props = __objRest(_a, []);
|
|
1881
|
-
return /* @__PURE__ */ (0,
|
|
1882
|
-
|
|
1779
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1780
|
+
import_radix_ui9.Collapsible.CollapsibleTrigger,
|
|
1883
1781
|
__spreadValues({
|
|
1884
1782
|
"data-slot": "collapsible-trigger"
|
|
1885
1783
|
}, props)
|
|
@@ -1887,8 +1785,8 @@ function CollapsibleTrigger(_a) {
|
|
|
1887
1785
|
}
|
|
1888
1786
|
function CollapsibleContent(_a) {
|
|
1889
1787
|
var props = __objRest(_a, []);
|
|
1890
|
-
return /* @__PURE__ */ (0,
|
|
1891
|
-
|
|
1788
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1789
|
+
import_radix_ui9.Collapsible.CollapsibleContent,
|
|
1892
1790
|
__spreadValues({
|
|
1893
1791
|
"data-slot": "collapsible-content"
|
|
1894
1792
|
}, props)
|
|
@@ -1901,20 +1799,20 @@ var import_react = require("@base-ui/react");
|
|
|
1901
1799
|
var import_lucide_react6 = require("lucide-react");
|
|
1902
1800
|
|
|
1903
1801
|
// components/ui/input-group.tsx
|
|
1904
|
-
var
|
|
1802
|
+
var import_class_variance_authority4 = require("class-variance-authority");
|
|
1905
1803
|
|
|
1906
1804
|
// components/ui/input.tsx
|
|
1907
|
-
var
|
|
1805
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1908
1806
|
function Input(_a) {
|
|
1909
1807
|
var _b = _a, { className, type } = _b, props = __objRest(_b, ["className", "type"]);
|
|
1910
|
-
return /* @__PURE__ */ (0,
|
|
1808
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1911
1809
|
"input",
|
|
1912
1810
|
__spreadValues({
|
|
1913
1811
|
type,
|
|
1914
1812
|
"data-slot": "input",
|
|
1915
1813
|
className: cn(
|
|
1916
|
-
"h-9 w-full min-w-0 rounded-
|
|
1917
|
-
"focus-visible:border-
|
|
1814
|
+
"h-9 w-full min-w-0 rounded-sm border border-border bg-white/5 px-3 py-1 text-base text-foreground font-body shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-text-tertiary disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
1815
|
+
"focus-visible:border-primary/40 focus-visible:ring-[3px] focus-visible:ring-primary/[0.08]",
|
|
1918
1816
|
"aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",
|
|
1919
1817
|
className
|
|
1920
1818
|
)
|
|
@@ -1923,15 +1821,15 @@ function Input(_a) {
|
|
|
1923
1821
|
}
|
|
1924
1822
|
|
|
1925
1823
|
// components/ui/textarea.tsx
|
|
1926
|
-
var
|
|
1824
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1927
1825
|
function Textarea(_a) {
|
|
1928
1826
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1929
|
-
return /* @__PURE__ */ (0,
|
|
1827
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1930
1828
|
"textarea",
|
|
1931
1829
|
__spreadValues({
|
|
1932
1830
|
"data-slot": "textarea",
|
|
1933
1831
|
className: cn(
|
|
1934
|
-
"flex field-sizing-content min-h-16 w-full rounded-
|
|
1832
|
+
"flex field-sizing-content min-h-16 w-full rounded-sm border border-border bg-white/5 px-3 py-2 text-base text-foreground font-body shadow-xs transition-[color,box-shadow] outline-none placeholder:text-text-tertiary focus-visible:border-primary/40 focus-visible:ring-[3px] focus-visible:ring-primary/[0.08] disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:aria-invalid:ring-destructive/40",
|
|
1935
1833
|
className
|
|
1936
1834
|
)
|
|
1937
1835
|
}, props)
|
|
@@ -1939,16 +1837,16 @@ function Textarea(_a) {
|
|
|
1939
1837
|
}
|
|
1940
1838
|
|
|
1941
1839
|
// components/ui/input-group.tsx
|
|
1942
|
-
var
|
|
1840
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1943
1841
|
function InputGroup(_a) {
|
|
1944
1842
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1945
|
-
return /* @__PURE__ */ (0,
|
|
1843
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1946
1844
|
"div",
|
|
1947
1845
|
__spreadValues({
|
|
1948
1846
|
"data-slot": "input-group",
|
|
1949
1847
|
role: "group",
|
|
1950
1848
|
className: cn(
|
|
1951
|
-
"group/input-group relative flex w-full items-center rounded-
|
|
1849
|
+
"group/input-group relative flex w-full items-center rounded-sm border border-border bg-white/5 shadow-xs transition-[color,box-shadow] outline-none",
|
|
1952
1850
|
"h-9 min-w-0 has-[>textarea]:h-auto",
|
|
1953
1851
|
// Variants based on alignment.
|
|
1954
1852
|
"has-[>[data-align=inline-start]]:[&>input]:pl-2",
|
|
@@ -1956,7 +1854,7 @@ function InputGroup(_a) {
|
|
|
1956
1854
|
"has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3",
|
|
1957
1855
|
"has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3",
|
|
1958
1856
|
// Focus state.
|
|
1959
|
-
"has-[[data-slot=input-group-control]:focus-visible]:border-
|
|
1857
|
+
"has-[[data-slot=input-group-control]:focus-visible]:border-primary/40 has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot=input-group-control]:focus-visible]:ring-primary/[0.08]",
|
|
1960
1858
|
// Error state.
|
|
1961
1859
|
"has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-destructive/20 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40",
|
|
1962
1860
|
className
|
|
@@ -1964,7 +1862,7 @@ function InputGroup(_a) {
|
|
|
1964
1862
|
}, props)
|
|
1965
1863
|
);
|
|
1966
1864
|
}
|
|
1967
|
-
var inputGroupAddonVariants = (0,
|
|
1865
|
+
var inputGroupAddonVariants = (0, import_class_variance_authority4.cva)(
|
|
1968
1866
|
"flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",
|
|
1969
1867
|
{
|
|
1970
1868
|
variants: {
|
|
@@ -1988,7 +1886,7 @@ function InputGroupAddon(_a) {
|
|
|
1988
1886
|
"className",
|
|
1989
1887
|
"align"
|
|
1990
1888
|
]);
|
|
1991
|
-
return /* @__PURE__ */ (0,
|
|
1889
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1992
1890
|
"div",
|
|
1993
1891
|
__spreadValues({
|
|
1994
1892
|
role: "group",
|
|
@@ -2005,7 +1903,7 @@ function InputGroupAddon(_a) {
|
|
|
2005
1903
|
}, props)
|
|
2006
1904
|
);
|
|
2007
1905
|
}
|
|
2008
|
-
var inputGroupButtonVariants = (0,
|
|
1906
|
+
var inputGroupButtonVariants = (0, import_class_variance_authority4.cva)(
|
|
2009
1907
|
"flex items-center gap-2 text-sm shadow-none",
|
|
2010
1908
|
{
|
|
2011
1909
|
variants: {
|
|
@@ -2033,7 +1931,7 @@ function InputGroupButton(_a) {
|
|
|
2033
1931
|
"variant",
|
|
2034
1932
|
"size"
|
|
2035
1933
|
]);
|
|
2036
|
-
return /* @__PURE__ */ (0,
|
|
1934
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2037
1935
|
Button,
|
|
2038
1936
|
__spreadValues({
|
|
2039
1937
|
type,
|
|
@@ -2045,7 +1943,7 @@ function InputGroupButton(_a) {
|
|
|
2045
1943
|
}
|
|
2046
1944
|
function InputGroupText(_a) {
|
|
2047
1945
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2048
|
-
return /* @__PURE__ */ (0,
|
|
1946
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2049
1947
|
"span",
|
|
2050
1948
|
__spreadValues({
|
|
2051
1949
|
className: cn(
|
|
@@ -2061,7 +1959,7 @@ function InputGroupInput(_a) {
|
|
|
2061
1959
|
} = _b, props = __objRest(_b, [
|
|
2062
1960
|
"className"
|
|
2063
1961
|
]);
|
|
2064
|
-
return /* @__PURE__ */ (0,
|
|
1962
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2065
1963
|
Input,
|
|
2066
1964
|
__spreadValues({
|
|
2067
1965
|
"data-slot": "input-group-control",
|
|
@@ -2078,7 +1976,7 @@ function InputGroupTextarea(_a) {
|
|
|
2078
1976
|
} = _b, props = __objRest(_b, [
|
|
2079
1977
|
"className"
|
|
2080
1978
|
]);
|
|
2081
|
-
return /* @__PURE__ */ (0,
|
|
1979
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2082
1980
|
Textarea,
|
|
2083
1981
|
__spreadValues({
|
|
2084
1982
|
"data-slot": "input-group-control",
|
|
@@ -2091,11 +1989,11 @@ function InputGroupTextarea(_a) {
|
|
|
2091
1989
|
}
|
|
2092
1990
|
|
|
2093
1991
|
// components/ui/combobox.tsx
|
|
2094
|
-
var
|
|
1992
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
2095
1993
|
var Combobox = import_react.Combobox.Root;
|
|
2096
1994
|
function ComboboxValue(_a) {
|
|
2097
1995
|
var props = __objRest(_a, []);
|
|
2098
|
-
return /* @__PURE__ */ (0,
|
|
1996
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react.Combobox.Value, __spreadValues({ "data-slot": "combobox-value" }, props));
|
|
2099
1997
|
}
|
|
2100
1998
|
function ComboboxTrigger(_a) {
|
|
2101
1999
|
var _b = _a, {
|
|
@@ -2105,7 +2003,7 @@ function ComboboxTrigger(_a) {
|
|
|
2105
2003
|
"className",
|
|
2106
2004
|
"children"
|
|
2107
2005
|
]);
|
|
2108
|
-
return /* @__PURE__ */ (0,
|
|
2006
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
2109
2007
|
import_react.Combobox.Trigger,
|
|
2110
2008
|
__spreadProps(__spreadValues({
|
|
2111
2009
|
"data-slot": "combobox-trigger",
|
|
@@ -2113,7 +2011,7 @@ function ComboboxTrigger(_a) {
|
|
|
2113
2011
|
}, props), {
|
|
2114
2012
|
children: [
|
|
2115
2013
|
children,
|
|
2116
|
-
/* @__PURE__ */ (0,
|
|
2014
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2117
2015
|
import_lucide_react6.ChevronDownIcon,
|
|
2118
2016
|
{
|
|
2119
2017
|
"data-slot": "combobox-trigger-icon",
|
|
@@ -2126,14 +2024,14 @@ function ComboboxTrigger(_a) {
|
|
|
2126
2024
|
}
|
|
2127
2025
|
function ComboboxClear(_a) {
|
|
2128
2026
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2129
|
-
return /* @__PURE__ */ (0,
|
|
2027
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2130
2028
|
import_react.Combobox.Clear,
|
|
2131
2029
|
__spreadProps(__spreadValues({
|
|
2132
2030
|
"data-slot": "combobox-clear",
|
|
2133
|
-
render: /* @__PURE__ */ (0,
|
|
2031
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(InputGroupButton, { variant: "secondary", size: "icon-xs" }),
|
|
2134
2032
|
className: cn(className)
|
|
2135
2033
|
}, props), {
|
|
2136
|
-
children: /* @__PURE__ */ (0,
|
|
2034
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react6.XIcon, { className: "pointer-events-none" })
|
|
2137
2035
|
})
|
|
2138
2036
|
);
|
|
2139
2037
|
}
|
|
@@ -2151,15 +2049,15 @@ function ComboboxInput(_a) {
|
|
|
2151
2049
|
"showTrigger",
|
|
2152
2050
|
"showClear"
|
|
2153
2051
|
]);
|
|
2154
|
-
return /* @__PURE__ */ (0,
|
|
2155
|
-
/* @__PURE__ */ (0,
|
|
2052
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(InputGroup, { className: cn("w-auto", className), children: [
|
|
2053
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2156
2054
|
import_react.Combobox.Input,
|
|
2157
2055
|
__spreadValues({
|
|
2158
|
-
render: /* @__PURE__ */ (0,
|
|
2056
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(InputGroupInput, { disabled })
|
|
2159
2057
|
}, props)
|
|
2160
2058
|
),
|
|
2161
|
-
/* @__PURE__ */ (0,
|
|
2162
|
-
showTrigger && /* @__PURE__ */ (0,
|
|
2059
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(InputGroupAddon, { align: "inline-end", children: [
|
|
2060
|
+
showTrigger && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2163
2061
|
InputGroupButton,
|
|
2164
2062
|
{
|
|
2165
2063
|
size: "icon-xs",
|
|
@@ -2168,10 +2066,10 @@ function ComboboxInput(_a) {
|
|
|
2168
2066
|
"data-slot": "input-group-button",
|
|
2169
2067
|
className: "group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent",
|
|
2170
2068
|
disabled,
|
|
2171
|
-
children: /* @__PURE__ */ (0,
|
|
2069
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ComboboxTrigger, {})
|
|
2172
2070
|
}
|
|
2173
2071
|
),
|
|
2174
|
-
showClear && /* @__PURE__ */ (0,
|
|
2072
|
+
showClear && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ComboboxClear, { disabled })
|
|
2175
2073
|
] }),
|
|
2176
2074
|
children
|
|
2177
2075
|
] });
|
|
@@ -2192,7 +2090,7 @@ function ComboboxContent(_a) {
|
|
|
2192
2090
|
"alignOffset",
|
|
2193
2091
|
"anchor"
|
|
2194
2092
|
]);
|
|
2195
|
-
return /* @__PURE__ */ (0,
|
|
2093
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react.Combobox.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2196
2094
|
import_react.Combobox.Positioner,
|
|
2197
2095
|
{
|
|
2198
2096
|
side,
|
|
@@ -2201,13 +2099,13 @@ function ComboboxContent(_a) {
|
|
|
2201
2099
|
alignOffset,
|
|
2202
2100
|
anchor,
|
|
2203
2101
|
className: "isolate z-50",
|
|
2204
|
-
children: /* @__PURE__ */ (0,
|
|
2102
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2205
2103
|
import_react.Combobox.Popup,
|
|
2206
2104
|
__spreadValues({
|
|
2207
2105
|
"data-slot": "combobox-content",
|
|
2208
2106
|
"data-chips": !!anchor,
|
|
2209
2107
|
className: cn(
|
|
2210
|
-
"group/combobox-content relative max-h-96 w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width)+--spacing(7))] origin-(--transform-origin) overflow-hidden rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-
|
|
2108
|
+
"group/combobox-content relative max-h-96 w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width)+--spacing(7))] origin-(--transform-origin) overflow-hidden rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-border duration-100 data-[chips=true]:min-w-(--anchor-width) data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-8 *:data-[slot=input-group]:border-input/30 *:data-[slot=input-group]:bg-input/30 *:data-[slot=input-group]:shadow-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
2211
2109
|
className
|
|
2212
2110
|
)
|
|
2213
2111
|
}, props)
|
|
@@ -2217,7 +2115,7 @@ function ComboboxContent(_a) {
|
|
|
2217
2115
|
}
|
|
2218
2116
|
function ComboboxList(_a) {
|
|
2219
2117
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2220
|
-
return /* @__PURE__ */ (0,
|
|
2118
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2221
2119
|
import_react.Combobox.List,
|
|
2222
2120
|
__spreadValues({
|
|
2223
2121
|
"data-slot": "combobox-list",
|
|
@@ -2236,7 +2134,7 @@ function ComboboxItem(_a) {
|
|
|
2236
2134
|
"className",
|
|
2237
2135
|
"children"
|
|
2238
2136
|
]);
|
|
2239
|
-
return /* @__PURE__ */ (0,
|
|
2137
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
2240
2138
|
import_react.Combobox.Item,
|
|
2241
2139
|
__spreadProps(__spreadValues({
|
|
2242
2140
|
"data-slot": "combobox-item",
|
|
@@ -2247,12 +2145,12 @@ function ComboboxItem(_a) {
|
|
|
2247
2145
|
}, props), {
|
|
2248
2146
|
children: [
|
|
2249
2147
|
children,
|
|
2250
|
-
/* @__PURE__ */ (0,
|
|
2148
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2251
2149
|
import_react.Combobox.ItemIndicator,
|
|
2252
2150
|
{
|
|
2253
2151
|
"data-slot": "combobox-item-indicator",
|
|
2254
|
-
render: /* @__PURE__ */ (0,
|
|
2255
|
-
children: /* @__PURE__ */ (0,
|
|
2152
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
|
|
2153
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react6.CheckIcon, { className: "pointer-events-none size-4 pointer-coarse:size-5" })
|
|
2256
2154
|
}
|
|
2257
2155
|
)
|
|
2258
2156
|
]
|
|
@@ -2261,7 +2159,7 @@ function ComboboxItem(_a) {
|
|
|
2261
2159
|
}
|
|
2262
2160
|
function ComboboxGroup(_a) {
|
|
2263
2161
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2264
|
-
return /* @__PURE__ */ (0,
|
|
2162
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2265
2163
|
import_react.Combobox.Group,
|
|
2266
2164
|
__spreadValues({
|
|
2267
2165
|
"data-slot": "combobox-group",
|
|
@@ -2275,7 +2173,7 @@ function ComboboxLabel(_a) {
|
|
|
2275
2173
|
} = _b, props = __objRest(_b, [
|
|
2276
2174
|
"className"
|
|
2277
2175
|
]);
|
|
2278
|
-
return /* @__PURE__ */ (0,
|
|
2176
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2279
2177
|
import_react.Combobox.GroupLabel,
|
|
2280
2178
|
__spreadValues({
|
|
2281
2179
|
"data-slot": "combobox-label",
|
|
@@ -2288,11 +2186,11 @@ function ComboboxLabel(_a) {
|
|
|
2288
2186
|
}
|
|
2289
2187
|
function ComboboxCollection(_a) {
|
|
2290
2188
|
var props = __objRest(_a, []);
|
|
2291
|
-
return /* @__PURE__ */ (0,
|
|
2189
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react.Combobox.Collection, __spreadValues({ "data-slot": "combobox-collection" }, props));
|
|
2292
2190
|
}
|
|
2293
2191
|
function ComboboxEmpty(_a) {
|
|
2294
2192
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2295
|
-
return /* @__PURE__ */ (0,
|
|
2193
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2296
2194
|
import_react.Combobox.Empty,
|
|
2297
2195
|
__spreadValues({
|
|
2298
2196
|
"data-slot": "combobox-empty",
|
|
@@ -2309,7 +2207,7 @@ function ComboboxSeparator(_a) {
|
|
|
2309
2207
|
} = _b, props = __objRest(_b, [
|
|
2310
2208
|
"className"
|
|
2311
2209
|
]);
|
|
2312
|
-
return /* @__PURE__ */ (0,
|
|
2210
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2313
2211
|
import_react.Combobox.Separator,
|
|
2314
2212
|
__spreadValues({
|
|
2315
2213
|
"data-slot": "combobox-separator",
|
|
@@ -2323,7 +2221,7 @@ function ComboboxChips(_a) {
|
|
|
2323
2221
|
} = _b, props = __objRest(_b, [
|
|
2324
2222
|
"className"
|
|
2325
2223
|
]);
|
|
2326
|
-
return /* @__PURE__ */ (0,
|
|
2224
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2327
2225
|
import_react.Combobox.Chips,
|
|
2328
2226
|
__spreadValues({
|
|
2329
2227
|
"data-slot": "combobox-chips",
|
|
@@ -2344,7 +2242,7 @@ function ComboboxChip(_a) {
|
|
|
2344
2242
|
"children",
|
|
2345
2243
|
"showRemove"
|
|
2346
2244
|
]);
|
|
2347
|
-
return /* @__PURE__ */ (0,
|
|
2245
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
2348
2246
|
import_react.Combobox.Chip,
|
|
2349
2247
|
__spreadProps(__spreadValues({
|
|
2350
2248
|
"data-slot": "combobox-chip",
|
|
@@ -2355,13 +2253,13 @@ function ComboboxChip(_a) {
|
|
|
2355
2253
|
}, props), {
|
|
2356
2254
|
children: [
|
|
2357
2255
|
children,
|
|
2358
|
-
showRemove && /* @__PURE__ */ (0,
|
|
2256
|
+
showRemove && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2359
2257
|
import_react.Combobox.ChipRemove,
|
|
2360
2258
|
{
|
|
2361
|
-
render: /* @__PURE__ */ (0,
|
|
2259
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Button, { variant: "secondary", size: "icon-xs" }),
|
|
2362
2260
|
className: "-ml-1 opacity-50 hover:opacity-100",
|
|
2363
2261
|
"data-slot": "combobox-chip-remove",
|
|
2364
|
-
children: /* @__PURE__ */ (0,
|
|
2262
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react6.XIcon, { className: "pointer-events-none" })
|
|
2365
2263
|
}
|
|
2366
2264
|
)
|
|
2367
2265
|
]
|
|
@@ -2376,7 +2274,7 @@ function ComboboxChipsInput(_a) {
|
|
|
2376
2274
|
"className",
|
|
2377
2275
|
"children"
|
|
2378
2276
|
]);
|
|
2379
|
-
return /* @__PURE__ */ (0,
|
|
2277
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2380
2278
|
import_react.Combobox.Input,
|
|
2381
2279
|
__spreadValues({
|
|
2382
2280
|
"data-slot": "combobox-chip-input",
|
|
@@ -2394,23 +2292,23 @@ var import_lucide_react8 = require("lucide-react");
|
|
|
2394
2292
|
|
|
2395
2293
|
// components/ui/dialog.tsx
|
|
2396
2294
|
var import_lucide_react7 = require("lucide-react");
|
|
2397
|
-
var
|
|
2398
|
-
var
|
|
2295
|
+
var import_radix_ui10 = require("radix-ui");
|
|
2296
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
2399
2297
|
function Dialog(_a) {
|
|
2400
2298
|
var props = __objRest(_a, []);
|
|
2401
|
-
return /* @__PURE__ */ (0,
|
|
2299
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_radix_ui10.Dialog.Root, __spreadValues({ "data-slot": "dialog" }, props));
|
|
2402
2300
|
}
|
|
2403
2301
|
function DialogTrigger(_a) {
|
|
2404
2302
|
var props = __objRest(_a, []);
|
|
2405
|
-
return /* @__PURE__ */ (0,
|
|
2303
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_radix_ui10.Dialog.Trigger, __spreadValues({ "data-slot": "dialog-trigger" }, props));
|
|
2406
2304
|
}
|
|
2407
2305
|
function DialogPortal(_a) {
|
|
2408
2306
|
var props = __objRest(_a, []);
|
|
2409
|
-
return /* @__PURE__ */ (0,
|
|
2307
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_radix_ui10.Dialog.Portal, __spreadValues({ "data-slot": "dialog-portal" }, props));
|
|
2410
2308
|
}
|
|
2411
2309
|
function DialogClose(_a) {
|
|
2412
2310
|
var props = __objRest(_a, []);
|
|
2413
|
-
return /* @__PURE__ */ (0,
|
|
2311
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_radix_ui10.Dialog.Close, __spreadValues({ "data-slot": "dialog-close" }, props));
|
|
2414
2312
|
}
|
|
2415
2313
|
function DialogOverlay(_a) {
|
|
2416
2314
|
var _b = _a, {
|
|
@@ -2418,12 +2316,12 @@ function DialogOverlay(_a) {
|
|
|
2418
2316
|
} = _b, props = __objRest(_b, [
|
|
2419
2317
|
"className"
|
|
2420
2318
|
]);
|
|
2421
|
-
return /* @__PURE__ */ (0,
|
|
2422
|
-
|
|
2319
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2320
|
+
import_radix_ui10.Dialog.Overlay,
|
|
2423
2321
|
__spreadValues({
|
|
2424
2322
|
"data-slot": "dialog-overlay",
|
|
2425
2323
|
className: cn(
|
|
2426
|
-
"fixed inset-0 z-50 bg-
|
|
2324
|
+
"fixed inset-0 z-50 bg-overlay data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",
|
|
2427
2325
|
className
|
|
2428
2326
|
)
|
|
2429
2327
|
}, props)
|
|
@@ -2439,27 +2337,27 @@ function DialogContent(_a) {
|
|
|
2439
2337
|
"children",
|
|
2440
2338
|
"showCloseButton"
|
|
2441
2339
|
]);
|
|
2442
|
-
return /* @__PURE__ */ (0,
|
|
2443
|
-
/* @__PURE__ */ (0,
|
|
2444
|
-
/* @__PURE__ */ (0,
|
|
2445
|
-
|
|
2340
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(DialogPortal, { "data-slot": "dialog-portal", children: [
|
|
2341
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DialogOverlay, {}),
|
|
2342
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
2343
|
+
import_radix_ui10.Dialog.Content,
|
|
2446
2344
|
__spreadProps(__spreadValues({
|
|
2447
2345
|
"data-slot": "dialog-content",
|
|
2448
2346
|
className: cn(
|
|
2449
|
-
"fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-
|
|
2347
|
+
"fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-sm border bg-background p-6 shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg",
|
|
2450
2348
|
className
|
|
2451
2349
|
)
|
|
2452
2350
|
}, props), {
|
|
2453
2351
|
children: [
|
|
2454
2352
|
children,
|
|
2455
|
-
showCloseButton && /* @__PURE__ */ (0,
|
|
2456
|
-
|
|
2353
|
+
showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
2354
|
+
import_radix_ui10.Dialog.Close,
|
|
2457
2355
|
{
|
|
2458
2356
|
"data-slot": "dialog-close",
|
|
2459
2357
|
className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background 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-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
2460
2358
|
children: [
|
|
2461
|
-
/* @__PURE__ */ (0,
|
|
2462
|
-
/* @__PURE__ */ (0,
|
|
2359
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react7.XIcon, {}),
|
|
2360
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "sr-only", children: "Close" })
|
|
2463
2361
|
]
|
|
2464
2362
|
}
|
|
2465
2363
|
)
|
|
@@ -2470,7 +2368,7 @@ function DialogContent(_a) {
|
|
|
2470
2368
|
}
|
|
2471
2369
|
function DialogHeader(_a) {
|
|
2472
2370
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2473
|
-
return /* @__PURE__ */ (0,
|
|
2371
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2474
2372
|
"div",
|
|
2475
2373
|
__spreadValues({
|
|
2476
2374
|
"data-slot": "dialog-header",
|
|
@@ -2488,7 +2386,7 @@ function DialogFooter(_a) {
|
|
|
2488
2386
|
"showCloseButton",
|
|
2489
2387
|
"children"
|
|
2490
2388
|
]);
|
|
2491
|
-
return /* @__PURE__ */ (0,
|
|
2389
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
2492
2390
|
"div",
|
|
2493
2391
|
__spreadProps(__spreadValues({
|
|
2494
2392
|
"data-slot": "dialog-footer",
|
|
@@ -2499,7 +2397,7 @@ function DialogFooter(_a) {
|
|
|
2499
2397
|
}, props), {
|
|
2500
2398
|
children: [
|
|
2501
2399
|
children,
|
|
2502
|
-
showCloseButton && /* @__PURE__ */ (0,
|
|
2400
|
+
showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_radix_ui10.Dialog.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Button, { variant: "secondary", children: "Close" }) })
|
|
2503
2401
|
]
|
|
2504
2402
|
})
|
|
2505
2403
|
);
|
|
@@ -2510,11 +2408,11 @@ function DialogTitle(_a) {
|
|
|
2510
2408
|
} = _b, props = __objRest(_b, [
|
|
2511
2409
|
"className"
|
|
2512
2410
|
]);
|
|
2513
|
-
return /* @__PURE__ */ (0,
|
|
2514
|
-
|
|
2411
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2412
|
+
import_radix_ui10.Dialog.Title,
|
|
2515
2413
|
__spreadValues({
|
|
2516
2414
|
"data-slot": "dialog-title",
|
|
2517
|
-
className: cn("text-lg leading-none font-semibold", className)
|
|
2415
|
+
className: cn("text-lg leading-none font-semibold font-display", className)
|
|
2518
2416
|
}, props)
|
|
2519
2417
|
);
|
|
2520
2418
|
}
|
|
@@ -2524,8 +2422,8 @@ function DialogDescription(_a) {
|
|
|
2524
2422
|
} = _b, props = __objRest(_b, [
|
|
2525
2423
|
"className"
|
|
2526
2424
|
]);
|
|
2527
|
-
return /* @__PURE__ */ (0,
|
|
2528
|
-
|
|
2425
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2426
|
+
import_radix_ui10.Dialog.Description,
|
|
2529
2427
|
__spreadValues({
|
|
2530
2428
|
"data-slot": "dialog-description",
|
|
2531
2429
|
className: cn("text-sm text-muted-foreground", className)
|
|
@@ -2534,19 +2432,19 @@ function DialogDescription(_a) {
|
|
|
2534
2432
|
}
|
|
2535
2433
|
|
|
2536
2434
|
// components/ui/command.tsx
|
|
2537
|
-
var
|
|
2435
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
2538
2436
|
function Command(_a) {
|
|
2539
2437
|
var _b = _a, {
|
|
2540
2438
|
className
|
|
2541
2439
|
} = _b, props = __objRest(_b, [
|
|
2542
2440
|
"className"
|
|
2543
2441
|
]);
|
|
2544
|
-
return /* @__PURE__ */ (0,
|
|
2442
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2545
2443
|
import_cmdk.Command,
|
|
2546
2444
|
__spreadValues({
|
|
2547
2445
|
"data-slot": "command",
|
|
2548
2446
|
className: cn(
|
|
2549
|
-
"flex h-full w-full flex-col overflow-hidden rounded-
|
|
2447
|
+
"flex h-full w-full flex-col overflow-hidden rounded-sm bg-popover text-popover-foreground",
|
|
2550
2448
|
className
|
|
2551
2449
|
)
|
|
2552
2450
|
}, props)
|
|
@@ -2566,17 +2464,17 @@ function CommandDialog(_a) {
|
|
|
2566
2464
|
"className",
|
|
2567
2465
|
"showCloseButton"
|
|
2568
2466
|
]);
|
|
2569
|
-
return /* @__PURE__ */ (0,
|
|
2570
|
-
/* @__PURE__ */ (0,
|
|
2571
|
-
/* @__PURE__ */ (0,
|
|
2572
|
-
/* @__PURE__ */ (0,
|
|
2467
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(Dialog, __spreadProps(__spreadValues({}, props), { children: [
|
|
2468
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(DialogHeader, { className: "sr-only", children: [
|
|
2469
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(DialogTitle, { children: title }),
|
|
2470
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(DialogDescription, { children: description })
|
|
2573
2471
|
] }),
|
|
2574
|
-
/* @__PURE__ */ (0,
|
|
2472
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2575
2473
|
DialogContent,
|
|
2576
2474
|
{
|
|
2577
2475
|
className: cn("overflow-hidden p-0", className),
|
|
2578
2476
|
showCloseButton,
|
|
2579
|
-
children: /* @__PURE__ */ (0,
|
|
2477
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Command, { className: "**:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[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 })
|
|
2580
2478
|
}
|
|
2581
2479
|
)
|
|
2582
2480
|
] }));
|
|
@@ -2587,14 +2485,14 @@ function CommandInput(_a) {
|
|
|
2587
2485
|
} = _b, props = __objRest(_b, [
|
|
2588
2486
|
"className"
|
|
2589
2487
|
]);
|
|
2590
|
-
return /* @__PURE__ */ (0,
|
|
2488
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
2591
2489
|
"div",
|
|
2592
2490
|
{
|
|
2593
2491
|
"data-slot": "command-input-wrapper",
|
|
2594
2492
|
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
2595
2493
|
children: [
|
|
2596
|
-
/* @__PURE__ */ (0,
|
|
2597
|
-
/* @__PURE__ */ (0,
|
|
2494
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react8.SearchIcon, { className: "size-4 shrink-0 opacity-50" }),
|
|
2495
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2598
2496
|
import_cmdk.Command.Input,
|
|
2599
2497
|
__spreadValues({
|
|
2600
2498
|
"data-slot": "command-input",
|
|
@@ -2614,7 +2512,7 @@ function CommandList(_a) {
|
|
|
2614
2512
|
} = _b, props = __objRest(_b, [
|
|
2615
2513
|
"className"
|
|
2616
2514
|
]);
|
|
2617
|
-
return /* @__PURE__ */ (0,
|
|
2515
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2618
2516
|
import_cmdk.Command.List,
|
|
2619
2517
|
__spreadValues({
|
|
2620
2518
|
"data-slot": "command-list",
|
|
@@ -2627,7 +2525,7 @@ function CommandList(_a) {
|
|
|
2627
2525
|
}
|
|
2628
2526
|
function CommandEmpty(_a) {
|
|
2629
2527
|
var props = __objRest(_a, []);
|
|
2630
|
-
return /* @__PURE__ */ (0,
|
|
2528
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2631
2529
|
import_cmdk.Command.Empty,
|
|
2632
2530
|
__spreadValues({
|
|
2633
2531
|
"data-slot": "command-empty",
|
|
@@ -2641,7 +2539,7 @@ function CommandGroup(_a) {
|
|
|
2641
2539
|
} = _b, props = __objRest(_b, [
|
|
2642
2540
|
"className"
|
|
2643
2541
|
]);
|
|
2644
|
-
return /* @__PURE__ */ (0,
|
|
2542
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2645
2543
|
import_cmdk.Command.Group,
|
|
2646
2544
|
__spreadValues({
|
|
2647
2545
|
"data-slot": "command-group",
|
|
@@ -2658,7 +2556,7 @@ function CommandSeparator(_a) {
|
|
|
2658
2556
|
} = _b, props = __objRest(_b, [
|
|
2659
2557
|
"className"
|
|
2660
2558
|
]);
|
|
2661
|
-
return /* @__PURE__ */ (0,
|
|
2559
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2662
2560
|
import_cmdk.Command.Separator,
|
|
2663
2561
|
__spreadValues({
|
|
2664
2562
|
"data-slot": "command-separator",
|
|
@@ -2672,7 +2570,7 @@ function CommandItem(_a) {
|
|
|
2672
2570
|
} = _b, props = __objRest(_b, [
|
|
2673
2571
|
"className"
|
|
2674
2572
|
]);
|
|
2675
|
-
return /* @__PURE__ */ (0,
|
|
2573
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2676
2574
|
import_cmdk.Command.Item,
|
|
2677
2575
|
__spreadValues({
|
|
2678
2576
|
"data-slot": "command-item",
|
|
@@ -2689,7 +2587,7 @@ function CommandShortcut(_a) {
|
|
|
2689
2587
|
} = _b, props = __objRest(_b, [
|
|
2690
2588
|
"className"
|
|
2691
2589
|
]);
|
|
2692
|
-
return /* @__PURE__ */ (0,
|
|
2590
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2693
2591
|
"span",
|
|
2694
2592
|
__spreadValues({
|
|
2695
2593
|
"data-slot": "command-shortcut",
|
|
@@ -2703,32 +2601,32 @@ function CommandShortcut(_a) {
|
|
|
2703
2601
|
|
|
2704
2602
|
// components/ui/context-menu.tsx
|
|
2705
2603
|
var import_lucide_react9 = require("lucide-react");
|
|
2706
|
-
var
|
|
2707
|
-
var
|
|
2604
|
+
var import_radix_ui11 = require("radix-ui");
|
|
2605
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
2708
2606
|
function ContextMenu(_a) {
|
|
2709
2607
|
var props = __objRest(_a, []);
|
|
2710
|
-
return /* @__PURE__ */ (0,
|
|
2608
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_radix_ui11.ContextMenu.Root, __spreadValues({ "data-slot": "context-menu" }, props));
|
|
2711
2609
|
}
|
|
2712
2610
|
function ContextMenuTrigger(_a) {
|
|
2713
2611
|
var props = __objRest(_a, []);
|
|
2714
|
-
return /* @__PURE__ */ (0,
|
|
2612
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_radix_ui11.ContextMenu.Trigger, __spreadValues({ "data-slot": "context-menu-trigger" }, props));
|
|
2715
2613
|
}
|
|
2716
2614
|
function ContextMenuGroup(_a) {
|
|
2717
2615
|
var props = __objRest(_a, []);
|
|
2718
|
-
return /* @__PURE__ */ (0,
|
|
2616
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_radix_ui11.ContextMenu.Group, __spreadValues({ "data-slot": "context-menu-group" }, props));
|
|
2719
2617
|
}
|
|
2720
2618
|
function ContextMenuPortal(_a) {
|
|
2721
2619
|
var props = __objRest(_a, []);
|
|
2722
|
-
return /* @__PURE__ */ (0,
|
|
2620
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_radix_ui11.ContextMenu.Portal, __spreadValues({ "data-slot": "context-menu-portal" }, props));
|
|
2723
2621
|
}
|
|
2724
2622
|
function ContextMenuSub(_a) {
|
|
2725
2623
|
var props = __objRest(_a, []);
|
|
2726
|
-
return /* @__PURE__ */ (0,
|
|
2624
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_radix_ui11.ContextMenu.Sub, __spreadValues({ "data-slot": "context-menu-sub" }, props));
|
|
2727
2625
|
}
|
|
2728
2626
|
function ContextMenuRadioGroup(_a) {
|
|
2729
2627
|
var props = __objRest(_a, []);
|
|
2730
|
-
return /* @__PURE__ */ (0,
|
|
2731
|
-
|
|
2628
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2629
|
+
import_radix_ui11.ContextMenu.RadioGroup,
|
|
2732
2630
|
__spreadValues({
|
|
2733
2631
|
"data-slot": "context-menu-radio-group"
|
|
2734
2632
|
}, props)
|
|
@@ -2744,8 +2642,8 @@ function ContextMenuSubTrigger(_a) {
|
|
|
2744
2642
|
"inset",
|
|
2745
2643
|
"children"
|
|
2746
2644
|
]);
|
|
2747
|
-
return /* @__PURE__ */ (0,
|
|
2748
|
-
|
|
2645
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
2646
|
+
import_radix_ui11.ContextMenu.SubTrigger,
|
|
2749
2647
|
__spreadProps(__spreadValues({
|
|
2750
2648
|
"data-slot": "context-menu-sub-trigger",
|
|
2751
2649
|
"data-inset": inset,
|
|
@@ -2756,7 +2654,7 @@ function ContextMenuSubTrigger(_a) {
|
|
|
2756
2654
|
}, props), {
|
|
2757
2655
|
children: [
|
|
2758
2656
|
children,
|
|
2759
|
-
/* @__PURE__ */ (0,
|
|
2657
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react9.ChevronRightIcon, { className: "ml-auto" })
|
|
2760
2658
|
]
|
|
2761
2659
|
})
|
|
2762
2660
|
);
|
|
@@ -2767,8 +2665,8 @@ function ContextMenuSubContent(_a) {
|
|
|
2767
2665
|
} = _b, props = __objRest(_b, [
|
|
2768
2666
|
"className"
|
|
2769
2667
|
]);
|
|
2770
|
-
return /* @__PURE__ */ (0,
|
|
2771
|
-
|
|
2668
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2669
|
+
import_radix_ui11.ContextMenu.SubContent,
|
|
2772
2670
|
__spreadValues({
|
|
2773
2671
|
"data-slot": "context-menu-sub-content",
|
|
2774
2672
|
className: cn(
|
|
@@ -2784,8 +2682,8 @@ function ContextMenuContent(_a) {
|
|
|
2784
2682
|
} = _b, props = __objRest(_b, [
|
|
2785
2683
|
"className"
|
|
2786
2684
|
]);
|
|
2787
|
-
return /* @__PURE__ */ (0,
|
|
2788
|
-
|
|
2685
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_radix_ui11.ContextMenu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2686
|
+
import_radix_ui11.ContextMenu.Content,
|
|
2789
2687
|
__spreadValues({
|
|
2790
2688
|
"data-slot": "context-menu-content",
|
|
2791
2689
|
className: cn(
|
|
@@ -2805,8 +2703,8 @@ function ContextMenuItem(_a) {
|
|
|
2805
2703
|
"inset",
|
|
2806
2704
|
"variant"
|
|
2807
2705
|
]);
|
|
2808
|
-
return /* @__PURE__ */ (0,
|
|
2809
|
-
|
|
2706
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2707
|
+
import_radix_ui11.ContextMenu.Item,
|
|
2810
2708
|
__spreadValues({
|
|
2811
2709
|
"data-slot": "context-menu-item",
|
|
2812
2710
|
"data-inset": inset,
|
|
@@ -2828,8 +2726,8 @@ function ContextMenuCheckboxItem(_a) {
|
|
|
2828
2726
|
"children",
|
|
2829
2727
|
"checked"
|
|
2830
2728
|
]);
|
|
2831
|
-
return /* @__PURE__ */ (0,
|
|
2832
|
-
|
|
2729
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
2730
|
+
import_radix_ui11.ContextMenu.CheckboxItem,
|
|
2833
2731
|
__spreadProps(__spreadValues({
|
|
2834
2732
|
"data-slot": "context-menu-checkbox-item",
|
|
2835
2733
|
className: cn(
|
|
@@ -2839,7 +2737,7 @@ function ContextMenuCheckboxItem(_a) {
|
|
|
2839
2737
|
checked
|
|
2840
2738
|
}, props), {
|
|
2841
2739
|
children: [
|
|
2842
|
-
/* @__PURE__ */ (0,
|
|
2740
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_radix_ui11.ContextMenu.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react9.CheckIcon, { className: "size-4" }) }) }),
|
|
2843
2741
|
children
|
|
2844
2742
|
]
|
|
2845
2743
|
})
|
|
@@ -2853,8 +2751,8 @@ function ContextMenuRadioItem(_a) {
|
|
|
2853
2751
|
"className",
|
|
2854
2752
|
"children"
|
|
2855
2753
|
]);
|
|
2856
|
-
return /* @__PURE__ */ (0,
|
|
2857
|
-
|
|
2754
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
2755
|
+
import_radix_ui11.ContextMenu.RadioItem,
|
|
2858
2756
|
__spreadProps(__spreadValues({
|
|
2859
2757
|
"data-slot": "context-menu-radio-item",
|
|
2860
2758
|
className: cn(
|
|
@@ -2863,7 +2761,7 @@ function ContextMenuRadioItem(_a) {
|
|
|
2863
2761
|
)
|
|
2864
2762
|
}, props), {
|
|
2865
2763
|
children: [
|
|
2866
|
-
/* @__PURE__ */ (0,
|
|
2764
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_radix_ui11.ContextMenu.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react9.CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
2867
2765
|
children
|
|
2868
2766
|
]
|
|
2869
2767
|
})
|
|
@@ -2877,8 +2775,8 @@ function ContextMenuLabel(_a) {
|
|
|
2877
2775
|
"className",
|
|
2878
2776
|
"inset"
|
|
2879
2777
|
]);
|
|
2880
|
-
return /* @__PURE__ */ (0,
|
|
2881
|
-
|
|
2778
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2779
|
+
import_radix_ui11.ContextMenu.Label,
|
|
2882
2780
|
__spreadValues({
|
|
2883
2781
|
"data-slot": "context-menu-label",
|
|
2884
2782
|
"data-inset": inset,
|
|
@@ -2895,8 +2793,8 @@ function ContextMenuSeparator(_a) {
|
|
|
2895
2793
|
} = _b, props = __objRest(_b, [
|
|
2896
2794
|
"className"
|
|
2897
2795
|
]);
|
|
2898
|
-
return /* @__PURE__ */ (0,
|
|
2899
|
-
|
|
2796
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2797
|
+
import_radix_ui11.ContextMenu.Separator,
|
|
2900
2798
|
__spreadValues({
|
|
2901
2799
|
"data-slot": "context-menu-separator",
|
|
2902
2800
|
className: cn("-mx-1 my-1 h-px bg-border", className)
|
|
@@ -2909,7 +2807,7 @@ function ContextMenuShortcut(_a) {
|
|
|
2909
2807
|
} = _b, props = __objRest(_b, [
|
|
2910
2808
|
"className"
|
|
2911
2809
|
]);
|
|
2912
|
-
return /* @__PURE__ */ (0,
|
|
2810
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2913
2811
|
"span",
|
|
2914
2812
|
__spreadValues({
|
|
2915
2813
|
"data-slot": "context-menu-shortcut",
|
|
@@ -2922,35 +2820,35 @@ function ContextMenuShortcut(_a) {
|
|
|
2922
2820
|
}
|
|
2923
2821
|
|
|
2924
2822
|
// components/ui/direction.tsx
|
|
2925
|
-
var
|
|
2926
|
-
var
|
|
2823
|
+
var import_radix_ui12 = require("radix-ui");
|
|
2824
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
2927
2825
|
function DirectionProvider({
|
|
2928
2826
|
dir,
|
|
2929
2827
|
direction,
|
|
2930
2828
|
children
|
|
2931
2829
|
}) {
|
|
2932
|
-
return /* @__PURE__ */ (0,
|
|
2830
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_radix_ui12.Direction.DirectionProvider, { dir: direction != null ? direction : dir, children });
|
|
2933
2831
|
}
|
|
2934
|
-
var useDirection =
|
|
2832
|
+
var useDirection = import_radix_ui12.Direction.useDirection;
|
|
2935
2833
|
|
|
2936
2834
|
// components/ui/drawer.tsx
|
|
2937
2835
|
var import_vaul = require("vaul");
|
|
2938
|
-
var
|
|
2836
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
2939
2837
|
function Drawer(_a) {
|
|
2940
2838
|
var props = __objRest(_a, []);
|
|
2941
|
-
return /* @__PURE__ */ (0,
|
|
2839
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_vaul.Drawer.Root, __spreadValues({ "data-slot": "drawer" }, props));
|
|
2942
2840
|
}
|
|
2943
2841
|
function DrawerTrigger(_a) {
|
|
2944
2842
|
var props = __objRest(_a, []);
|
|
2945
|
-
return /* @__PURE__ */ (0,
|
|
2843
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_vaul.Drawer.Trigger, __spreadValues({ "data-slot": "drawer-trigger" }, props));
|
|
2946
2844
|
}
|
|
2947
2845
|
function DrawerPortal(_a) {
|
|
2948
2846
|
var props = __objRest(_a, []);
|
|
2949
|
-
return /* @__PURE__ */ (0,
|
|
2847
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_vaul.Drawer.Portal, __spreadValues({ "data-slot": "drawer-portal" }, props));
|
|
2950
2848
|
}
|
|
2951
2849
|
function DrawerClose(_a) {
|
|
2952
2850
|
var props = __objRest(_a, []);
|
|
2953
|
-
return /* @__PURE__ */ (0,
|
|
2851
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_vaul.Drawer.Close, __spreadValues({ "data-slot": "drawer-close" }, props));
|
|
2954
2852
|
}
|
|
2955
2853
|
function DrawerOverlay(_a) {
|
|
2956
2854
|
var _b = _a, {
|
|
@@ -2958,12 +2856,12 @@ function DrawerOverlay(_a) {
|
|
|
2958
2856
|
} = _b, props = __objRest(_b, [
|
|
2959
2857
|
"className"
|
|
2960
2858
|
]);
|
|
2961
|
-
return /* @__PURE__ */ (0,
|
|
2859
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2962
2860
|
import_vaul.Drawer.Overlay,
|
|
2963
2861
|
__spreadValues({
|
|
2964
2862
|
"data-slot": "drawer-overlay",
|
|
2965
2863
|
className: cn(
|
|
2966
|
-
"fixed inset-0 z-50 bg-
|
|
2864
|
+
"fixed inset-0 z-50 bg-overlay data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",
|
|
2967
2865
|
className
|
|
2968
2866
|
)
|
|
2969
2867
|
}, props)
|
|
@@ -2977,9 +2875,9 @@ function DrawerContent(_a) {
|
|
|
2977
2875
|
"className",
|
|
2978
2876
|
"children"
|
|
2979
2877
|
]);
|
|
2980
|
-
return /* @__PURE__ */ (0,
|
|
2981
|
-
/* @__PURE__ */ (0,
|
|
2982
|
-
/* @__PURE__ */ (0,
|
|
2878
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(DrawerPortal, { "data-slot": "drawer-portal", children: [
|
|
2879
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DrawerOverlay, {}),
|
|
2880
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
2983
2881
|
import_vaul.Drawer.Content,
|
|
2984
2882
|
__spreadProps(__spreadValues({
|
|
2985
2883
|
"data-slot": "drawer-content",
|
|
@@ -2993,7 +2891,7 @@ function DrawerContent(_a) {
|
|
|
2993
2891
|
)
|
|
2994
2892
|
}, props), {
|
|
2995
2893
|
children: [
|
|
2996
|
-
/* @__PURE__ */ (0,
|
|
2894
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full bg-muted group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
|
|
2997
2895
|
children
|
|
2998
2896
|
]
|
|
2999
2897
|
})
|
|
@@ -3002,7 +2900,7 @@ function DrawerContent(_a) {
|
|
|
3002
2900
|
}
|
|
3003
2901
|
function DrawerHeader(_a) {
|
|
3004
2902
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3005
|
-
return /* @__PURE__ */ (0,
|
|
2903
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3006
2904
|
"div",
|
|
3007
2905
|
__spreadValues({
|
|
3008
2906
|
"data-slot": "drawer-header",
|
|
@@ -3015,7 +2913,7 @@ function DrawerHeader(_a) {
|
|
|
3015
2913
|
}
|
|
3016
2914
|
function DrawerFooter(_a) {
|
|
3017
2915
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3018
|
-
return /* @__PURE__ */ (0,
|
|
2916
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3019
2917
|
"div",
|
|
3020
2918
|
__spreadValues({
|
|
3021
2919
|
"data-slot": "drawer-footer",
|
|
@@ -3029,11 +2927,11 @@ function DrawerTitle(_a) {
|
|
|
3029
2927
|
} = _b, props = __objRest(_b, [
|
|
3030
2928
|
"className"
|
|
3031
2929
|
]);
|
|
3032
|
-
return /* @__PURE__ */ (0,
|
|
2930
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3033
2931
|
import_vaul.Drawer.Title,
|
|
3034
2932
|
__spreadValues({
|
|
3035
2933
|
"data-slot": "drawer-title",
|
|
3036
|
-
className: cn("font-semibold text-foreground", className)
|
|
2934
|
+
className: cn("font-semibold font-display text-foreground", className)
|
|
3037
2935
|
}, props)
|
|
3038
2936
|
);
|
|
3039
2937
|
}
|
|
@@ -3043,7 +2941,7 @@ function DrawerDescription(_a) {
|
|
|
3043
2941
|
} = _b, props = __objRest(_b, [
|
|
3044
2942
|
"className"
|
|
3045
2943
|
]);
|
|
3046
|
-
return /* @__PURE__ */ (0,
|
|
2944
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3047
2945
|
import_vaul.Drawer.Description,
|
|
3048
2946
|
__spreadValues({
|
|
3049
2947
|
"data-slot": "drawer-description",
|
|
@@ -3054,20 +2952,20 @@ function DrawerDescription(_a) {
|
|
|
3054
2952
|
|
|
3055
2953
|
// components/ui/dropdown-menu.tsx
|
|
3056
2954
|
var import_lucide_react10 = require("lucide-react");
|
|
3057
|
-
var
|
|
3058
|
-
var
|
|
2955
|
+
var import_radix_ui13 = require("radix-ui");
|
|
2956
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
3059
2957
|
function DropdownMenu(_a) {
|
|
3060
2958
|
var props = __objRest(_a, []);
|
|
3061
|
-
return /* @__PURE__ */ (0,
|
|
2959
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_radix_ui13.DropdownMenu.Root, __spreadValues({ "data-slot": "dropdown-menu" }, props));
|
|
3062
2960
|
}
|
|
3063
2961
|
function DropdownMenuPortal(_a) {
|
|
3064
2962
|
var props = __objRest(_a, []);
|
|
3065
|
-
return /* @__PURE__ */ (0,
|
|
2963
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_radix_ui13.DropdownMenu.Portal, __spreadValues({ "data-slot": "dropdown-menu-portal" }, props));
|
|
3066
2964
|
}
|
|
3067
2965
|
function DropdownMenuTrigger(_a) {
|
|
3068
2966
|
var props = __objRest(_a, []);
|
|
3069
|
-
return /* @__PURE__ */ (0,
|
|
3070
|
-
|
|
2967
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2968
|
+
import_radix_ui13.DropdownMenu.Trigger,
|
|
3071
2969
|
__spreadValues({
|
|
3072
2970
|
"data-slot": "dropdown-menu-trigger"
|
|
3073
2971
|
}, props)
|
|
@@ -3081,13 +2979,13 @@ function DropdownMenuContent(_a) {
|
|
|
3081
2979
|
"className",
|
|
3082
2980
|
"sideOffset"
|
|
3083
2981
|
]);
|
|
3084
|
-
return /* @__PURE__ */ (0,
|
|
3085
|
-
|
|
2982
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_radix_ui13.DropdownMenu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2983
|
+
import_radix_ui13.DropdownMenu.Content,
|
|
3086
2984
|
__spreadValues({
|
|
3087
2985
|
"data-slot": "dropdown-menu-content",
|
|
3088
2986
|
sideOffset,
|
|
3089
2987
|
className: cn(
|
|
3090
|
-
"z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-
|
|
2988
|
+
"z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-sm border bg-popover p-1 text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
3091
2989
|
className
|
|
3092
2990
|
)
|
|
3093
2991
|
}, props)
|
|
@@ -3095,7 +2993,7 @@ function DropdownMenuContent(_a) {
|
|
|
3095
2993
|
}
|
|
3096
2994
|
function DropdownMenuGroup(_a) {
|
|
3097
2995
|
var props = __objRest(_a, []);
|
|
3098
|
-
return /* @__PURE__ */ (0,
|
|
2996
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_radix_ui13.DropdownMenu.Group, __spreadValues({ "data-slot": "dropdown-menu-group" }, props));
|
|
3099
2997
|
}
|
|
3100
2998
|
function DropdownMenuItem(_a) {
|
|
3101
2999
|
var _b = _a, {
|
|
@@ -3107,8 +3005,8 @@ function DropdownMenuItem(_a) {
|
|
|
3107
3005
|
"inset",
|
|
3108
3006
|
"variant"
|
|
3109
3007
|
]);
|
|
3110
|
-
return /* @__PURE__ */ (0,
|
|
3111
|
-
|
|
3008
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
3009
|
+
import_radix_ui13.DropdownMenu.Item,
|
|
3112
3010
|
__spreadValues({
|
|
3113
3011
|
"data-slot": "dropdown-menu-item",
|
|
3114
3012
|
"data-inset": inset,
|
|
@@ -3130,8 +3028,8 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
3130
3028
|
"children",
|
|
3131
3029
|
"checked"
|
|
3132
3030
|
]);
|
|
3133
|
-
return /* @__PURE__ */ (0,
|
|
3134
|
-
|
|
3031
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
3032
|
+
import_radix_ui13.DropdownMenu.CheckboxItem,
|
|
3135
3033
|
__spreadProps(__spreadValues({
|
|
3136
3034
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
3137
3035
|
className: cn(
|
|
@@ -3141,7 +3039,7 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
3141
3039
|
checked
|
|
3142
3040
|
}, props), {
|
|
3143
3041
|
children: [
|
|
3144
|
-
/* @__PURE__ */ (0,
|
|
3042
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_radix_ui13.DropdownMenu.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react10.CheckIcon, { className: "size-4" }) }) }),
|
|
3145
3043
|
children
|
|
3146
3044
|
]
|
|
3147
3045
|
})
|
|
@@ -3149,8 +3047,8 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
3149
3047
|
}
|
|
3150
3048
|
function DropdownMenuRadioGroup(_a) {
|
|
3151
3049
|
var props = __objRest(_a, []);
|
|
3152
|
-
return /* @__PURE__ */ (0,
|
|
3153
|
-
|
|
3050
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
3051
|
+
import_radix_ui13.DropdownMenu.RadioGroup,
|
|
3154
3052
|
__spreadValues({
|
|
3155
3053
|
"data-slot": "dropdown-menu-radio-group"
|
|
3156
3054
|
}, props)
|
|
@@ -3164,8 +3062,8 @@ function DropdownMenuRadioItem(_a) {
|
|
|
3164
3062
|
"className",
|
|
3165
3063
|
"children"
|
|
3166
3064
|
]);
|
|
3167
|
-
return /* @__PURE__ */ (0,
|
|
3168
|
-
|
|
3065
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
3066
|
+
import_radix_ui13.DropdownMenu.RadioItem,
|
|
3169
3067
|
__spreadProps(__spreadValues({
|
|
3170
3068
|
"data-slot": "dropdown-menu-radio-item",
|
|
3171
3069
|
className: cn(
|
|
@@ -3174,7 +3072,7 @@ function DropdownMenuRadioItem(_a) {
|
|
|
3174
3072
|
)
|
|
3175
3073
|
}, props), {
|
|
3176
3074
|
children: [
|
|
3177
|
-
/* @__PURE__ */ (0,
|
|
3075
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_radix_ui13.DropdownMenu.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react10.CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
3178
3076
|
children
|
|
3179
3077
|
]
|
|
3180
3078
|
})
|
|
@@ -3188,8 +3086,8 @@ function DropdownMenuLabel(_a) {
|
|
|
3188
3086
|
"className",
|
|
3189
3087
|
"inset"
|
|
3190
3088
|
]);
|
|
3191
|
-
return /* @__PURE__ */ (0,
|
|
3192
|
-
|
|
3089
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
3090
|
+
import_radix_ui13.DropdownMenu.Label,
|
|
3193
3091
|
__spreadValues({
|
|
3194
3092
|
"data-slot": "dropdown-menu-label",
|
|
3195
3093
|
"data-inset": inset,
|
|
@@ -3206,8 +3104,8 @@ function DropdownMenuSeparator(_a) {
|
|
|
3206
3104
|
} = _b, props = __objRest(_b, [
|
|
3207
3105
|
"className"
|
|
3208
3106
|
]);
|
|
3209
|
-
return /* @__PURE__ */ (0,
|
|
3210
|
-
|
|
3107
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
3108
|
+
import_radix_ui13.DropdownMenu.Separator,
|
|
3211
3109
|
__spreadValues({
|
|
3212
3110
|
"data-slot": "dropdown-menu-separator",
|
|
3213
3111
|
className: cn("-mx-1 my-1 h-px bg-border", className)
|
|
@@ -3220,7 +3118,7 @@ function DropdownMenuShortcut(_a) {
|
|
|
3220
3118
|
} = _b, props = __objRest(_b, [
|
|
3221
3119
|
"className"
|
|
3222
3120
|
]);
|
|
3223
|
-
return /* @__PURE__ */ (0,
|
|
3121
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
3224
3122
|
"span",
|
|
3225
3123
|
__spreadValues({
|
|
3226
3124
|
"data-slot": "dropdown-menu-shortcut",
|
|
@@ -3233,7 +3131,7 @@ function DropdownMenuShortcut(_a) {
|
|
|
3233
3131
|
}
|
|
3234
3132
|
function DropdownMenuSub(_a) {
|
|
3235
3133
|
var props = __objRest(_a, []);
|
|
3236
|
-
return /* @__PURE__ */ (0,
|
|
3134
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_radix_ui13.DropdownMenu.Sub, __spreadValues({ "data-slot": "dropdown-menu-sub" }, props));
|
|
3237
3135
|
}
|
|
3238
3136
|
function DropdownMenuSubTrigger(_a) {
|
|
3239
3137
|
var _b = _a, {
|
|
@@ -3245,8 +3143,8 @@ function DropdownMenuSubTrigger(_a) {
|
|
|
3245
3143
|
"inset",
|
|
3246
3144
|
"children"
|
|
3247
3145
|
]);
|
|
3248
|
-
return /* @__PURE__ */ (0,
|
|
3249
|
-
|
|
3146
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
3147
|
+
import_radix_ui13.DropdownMenu.SubTrigger,
|
|
3250
3148
|
__spreadProps(__spreadValues({
|
|
3251
3149
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
3252
3150
|
"data-inset": inset,
|
|
@@ -3257,7 +3155,7 @@ function DropdownMenuSubTrigger(_a) {
|
|
|
3257
3155
|
}, props), {
|
|
3258
3156
|
children: [
|
|
3259
3157
|
children,
|
|
3260
|
-
/* @__PURE__ */ (0,
|
|
3158
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react10.ChevronRightIcon, { className: "ml-auto size-4" })
|
|
3261
3159
|
]
|
|
3262
3160
|
})
|
|
3263
3161
|
);
|
|
@@ -3268,12 +3166,12 @@ function DropdownMenuSubContent(_a) {
|
|
|
3268
3166
|
} = _b, props = __objRest(_b, [
|
|
3269
3167
|
"className"
|
|
3270
3168
|
]);
|
|
3271
|
-
return /* @__PURE__ */ (0,
|
|
3272
|
-
|
|
3169
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
3170
|
+
import_radix_ui13.DropdownMenu.SubContent,
|
|
3273
3171
|
__spreadValues({
|
|
3274
3172
|
"data-slot": "dropdown-menu-sub-content",
|
|
3275
3173
|
className: cn(
|
|
3276
|
-
"z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-
|
|
3174
|
+
"z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-sm border bg-popover p-1 text-popover-foreground shadow-lg data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
3277
3175
|
className
|
|
3278
3176
|
)
|
|
3279
3177
|
}, props)
|
|
@@ -3281,16 +3179,16 @@ function DropdownMenuSubContent(_a) {
|
|
|
3281
3179
|
}
|
|
3282
3180
|
|
|
3283
3181
|
// components/ui/empty.tsx
|
|
3284
|
-
var
|
|
3285
|
-
var
|
|
3182
|
+
var import_class_variance_authority5 = require("class-variance-authority");
|
|
3183
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
3286
3184
|
function Empty(_a) {
|
|
3287
3185
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3288
|
-
return /* @__PURE__ */ (0,
|
|
3186
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3289
3187
|
"div",
|
|
3290
3188
|
__spreadValues({
|
|
3291
3189
|
"data-slot": "empty",
|
|
3292
3190
|
className: cn(
|
|
3293
|
-
"flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-
|
|
3191
|
+
"flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-sm border-dashed p-6 text-center text-balance md:p-12",
|
|
3294
3192
|
className
|
|
3295
3193
|
)
|
|
3296
3194
|
}, props)
|
|
@@ -3298,7 +3196,7 @@ function Empty(_a) {
|
|
|
3298
3196
|
}
|
|
3299
3197
|
function EmptyHeader(_a) {
|
|
3300
3198
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3301
|
-
return /* @__PURE__ */ (0,
|
|
3199
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3302
3200
|
"div",
|
|
3303
3201
|
__spreadValues({
|
|
3304
3202
|
"data-slot": "empty-header",
|
|
@@ -3309,7 +3207,7 @@ function EmptyHeader(_a) {
|
|
|
3309
3207
|
}, props)
|
|
3310
3208
|
);
|
|
3311
3209
|
}
|
|
3312
|
-
var emptyMediaVariants = (0,
|
|
3210
|
+
var emptyMediaVariants = (0, import_class_variance_authority5.cva)(
|
|
3313
3211
|
"mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
3314
3212
|
{
|
|
3315
3213
|
variants: {
|
|
@@ -3331,7 +3229,7 @@ function EmptyMedia(_a) {
|
|
|
3331
3229
|
"className",
|
|
3332
3230
|
"variant"
|
|
3333
3231
|
]);
|
|
3334
|
-
return /* @__PURE__ */ (0,
|
|
3232
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3335
3233
|
"div",
|
|
3336
3234
|
__spreadValues({
|
|
3337
3235
|
"data-slot": "empty-icon",
|
|
@@ -3342,7 +3240,7 @@ function EmptyMedia(_a) {
|
|
|
3342
3240
|
}
|
|
3343
3241
|
function EmptyTitle(_a) {
|
|
3344
3242
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3345
|
-
return /* @__PURE__ */ (0,
|
|
3243
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3346
3244
|
"div",
|
|
3347
3245
|
__spreadValues({
|
|
3348
3246
|
"data-slot": "empty-title",
|
|
@@ -3352,7 +3250,7 @@ function EmptyTitle(_a) {
|
|
|
3352
3250
|
}
|
|
3353
3251
|
function EmptyDescription(_a) {
|
|
3354
3252
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3355
|
-
return /* @__PURE__ */ (0,
|
|
3253
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3356
3254
|
"div",
|
|
3357
3255
|
__spreadValues({
|
|
3358
3256
|
"data-slot": "empty-description",
|
|
@@ -3365,7 +3263,7 @@ function EmptyDescription(_a) {
|
|
|
3365
3263
|
}
|
|
3366
3264
|
function EmptyContent(_a) {
|
|
3367
3265
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3368
|
-
return /* @__PURE__ */ (0,
|
|
3266
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3369
3267
|
"div",
|
|
3370
3268
|
__spreadValues({
|
|
3371
3269
|
"data-slot": "empty-content",
|
|
@@ -3379,19 +3277,19 @@ function EmptyContent(_a) {
|
|
|
3379
3277
|
|
|
3380
3278
|
// components/ui/field.tsx
|
|
3381
3279
|
var import_react2 = require("react");
|
|
3382
|
-
var
|
|
3280
|
+
var import_class_variance_authority6 = require("class-variance-authority");
|
|
3383
3281
|
|
|
3384
3282
|
// components/ui/label.tsx
|
|
3385
|
-
var
|
|
3386
|
-
var
|
|
3283
|
+
var import_radix_ui14 = require("radix-ui");
|
|
3284
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
3387
3285
|
function Label(_a) {
|
|
3388
3286
|
var _b = _a, {
|
|
3389
3287
|
className
|
|
3390
3288
|
} = _b, props = __objRest(_b, [
|
|
3391
3289
|
"className"
|
|
3392
3290
|
]);
|
|
3393
|
-
return /* @__PURE__ */ (0,
|
|
3394
|
-
|
|
3291
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3292
|
+
import_radix_ui14.Label.Root,
|
|
3395
3293
|
__spreadValues({
|
|
3396
3294
|
"data-slot": "label",
|
|
3397
3295
|
className: cn(
|
|
@@ -3402,11 +3300,38 @@ function Label(_a) {
|
|
|
3402
3300
|
);
|
|
3403
3301
|
}
|
|
3404
3302
|
|
|
3303
|
+
// components/ui/separator.tsx
|
|
3304
|
+
var import_radix_ui15 = require("radix-ui");
|
|
3305
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
3306
|
+
function Separator(_a) {
|
|
3307
|
+
var _b = _a, {
|
|
3308
|
+
className,
|
|
3309
|
+
orientation = "horizontal",
|
|
3310
|
+
decorative = true
|
|
3311
|
+
} = _b, props = __objRest(_b, [
|
|
3312
|
+
"className",
|
|
3313
|
+
"orientation",
|
|
3314
|
+
"decorative"
|
|
3315
|
+
]);
|
|
3316
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3317
|
+
import_radix_ui15.Separator.Root,
|
|
3318
|
+
__spreadValues({
|
|
3319
|
+
"data-slot": "separator",
|
|
3320
|
+
decorative,
|
|
3321
|
+
orientation,
|
|
3322
|
+
className: cn(
|
|
3323
|
+
"shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
3324
|
+
className
|
|
3325
|
+
)
|
|
3326
|
+
}, props)
|
|
3327
|
+
);
|
|
3328
|
+
}
|
|
3329
|
+
|
|
3405
3330
|
// components/ui/field.tsx
|
|
3406
|
-
var
|
|
3331
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
3407
3332
|
function FieldSet(_a) {
|
|
3408
3333
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3409
|
-
return /* @__PURE__ */ (0,
|
|
3334
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3410
3335
|
"fieldset",
|
|
3411
3336
|
__spreadValues({
|
|
3412
3337
|
"data-slot": "field-set",
|
|
@@ -3426,7 +3351,7 @@ function FieldLegend(_a) {
|
|
|
3426
3351
|
"className",
|
|
3427
3352
|
"variant"
|
|
3428
3353
|
]);
|
|
3429
|
-
return /* @__PURE__ */ (0,
|
|
3354
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3430
3355
|
"legend",
|
|
3431
3356
|
__spreadValues({
|
|
3432
3357
|
"data-slot": "field-legend",
|
|
@@ -3442,7 +3367,7 @@ function FieldLegend(_a) {
|
|
|
3442
3367
|
}
|
|
3443
3368
|
function FieldGroup(_a) {
|
|
3444
3369
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3445
|
-
return /* @__PURE__ */ (0,
|
|
3370
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3446
3371
|
"div",
|
|
3447
3372
|
__spreadValues({
|
|
3448
3373
|
"data-slot": "field-group",
|
|
@@ -3453,7 +3378,7 @@ function FieldGroup(_a) {
|
|
|
3453
3378
|
}, props)
|
|
3454
3379
|
);
|
|
3455
3380
|
}
|
|
3456
|
-
var fieldVariants = (0,
|
|
3381
|
+
var fieldVariants = (0, import_class_variance_authority6.cva)(
|
|
3457
3382
|
"group/field flex w-full gap-3 data-[invalid=true]:text-destructive",
|
|
3458
3383
|
{
|
|
3459
3384
|
variants: {
|
|
@@ -3484,7 +3409,7 @@ function Field(_a) {
|
|
|
3484
3409
|
"className",
|
|
3485
3410
|
"orientation"
|
|
3486
3411
|
]);
|
|
3487
|
-
return /* @__PURE__ */ (0,
|
|
3412
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3488
3413
|
"div",
|
|
3489
3414
|
__spreadValues({
|
|
3490
3415
|
role: "group",
|
|
@@ -3496,7 +3421,7 @@ function Field(_a) {
|
|
|
3496
3421
|
}
|
|
3497
3422
|
function FieldContent(_a) {
|
|
3498
3423
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3499
|
-
return /* @__PURE__ */ (0,
|
|
3424
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3500
3425
|
"div",
|
|
3501
3426
|
__spreadValues({
|
|
3502
3427
|
"data-slot": "field-content",
|
|
@@ -3513,7 +3438,7 @@ function FieldLabel(_a) {
|
|
|
3513
3438
|
} = _b, props = __objRest(_b, [
|
|
3514
3439
|
"className"
|
|
3515
3440
|
]);
|
|
3516
|
-
return /* @__PURE__ */ (0,
|
|
3441
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3517
3442
|
Label,
|
|
3518
3443
|
__spreadValues({
|
|
3519
3444
|
"data-slot": "field-label",
|
|
@@ -3528,7 +3453,7 @@ function FieldLabel(_a) {
|
|
|
3528
3453
|
}
|
|
3529
3454
|
function FieldTitle(_a) {
|
|
3530
3455
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3531
|
-
return /* @__PURE__ */ (0,
|
|
3456
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3532
3457
|
"div",
|
|
3533
3458
|
__spreadValues({
|
|
3534
3459
|
"data-slot": "field-label",
|
|
@@ -3541,7 +3466,7 @@ function FieldTitle(_a) {
|
|
|
3541
3466
|
}
|
|
3542
3467
|
function FieldDescription(_a) {
|
|
3543
3468
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3544
|
-
return /* @__PURE__ */ (0,
|
|
3469
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3545
3470
|
"p",
|
|
3546
3471
|
__spreadValues({
|
|
3547
3472
|
"data-slot": "field-description",
|
|
@@ -3562,7 +3487,7 @@ function FieldSeparator(_a) {
|
|
|
3562
3487
|
"children",
|
|
3563
3488
|
"className"
|
|
3564
3489
|
]);
|
|
3565
|
-
return /* @__PURE__ */ (0,
|
|
3490
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
3566
3491
|
"div",
|
|
3567
3492
|
__spreadProps(__spreadValues({
|
|
3568
3493
|
"data-slot": "field-separator",
|
|
@@ -3573,8 +3498,8 @@ function FieldSeparator(_a) {
|
|
|
3573
3498
|
)
|
|
3574
3499
|
}, props), {
|
|
3575
3500
|
children: [
|
|
3576
|
-
/* @__PURE__ */ (0,
|
|
3577
|
-
children && /* @__PURE__ */ (0,
|
|
3501
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Separator, { className: "absolute inset-0 top-1/2" }),
|
|
3502
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3578
3503
|
"span",
|
|
3579
3504
|
{
|
|
3580
3505
|
className: "relative mx-auto block w-fit bg-background px-2 text-muted-foreground",
|
|
@@ -3610,14 +3535,14 @@ function FieldError(_a) {
|
|
|
3610
3535
|
if ((uniqueErrors == null ? void 0 : uniqueErrors.length) == 1) {
|
|
3611
3536
|
return (_a2 = uniqueErrors[0]) == null ? void 0 : _a2.message;
|
|
3612
3537
|
}
|
|
3613
|
-
return /* @__PURE__ */ (0,
|
|
3614
|
-
(error, index) => (error == null ? void 0 : error.message) && /* @__PURE__ */ (0,
|
|
3538
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: uniqueErrors.map(
|
|
3539
|
+
(error, index) => (error == null ? void 0 : error.message) && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("li", { children: error.message }, index)
|
|
3615
3540
|
) });
|
|
3616
3541
|
}, [children, errors]);
|
|
3617
3542
|
if (!content) {
|
|
3618
3543
|
return null;
|
|
3619
3544
|
}
|
|
3620
|
-
return /* @__PURE__ */ (0,
|
|
3545
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3621
3546
|
"div",
|
|
3622
3547
|
__spreadProps(__spreadValues({
|
|
3623
3548
|
role: "alert",
|
|
@@ -3631,16 +3556,16 @@ function FieldError(_a) {
|
|
|
3631
3556
|
|
|
3632
3557
|
// components/ui/form.tsx
|
|
3633
3558
|
var React5 = __toESM(require("react"), 1);
|
|
3634
|
-
var
|
|
3559
|
+
var import_radix_ui16 = require("radix-ui");
|
|
3635
3560
|
var import_react_hook_form = require("react-hook-form");
|
|
3636
|
-
var
|
|
3561
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
3637
3562
|
var Form = import_react_hook_form.FormProvider;
|
|
3638
3563
|
var FormFieldContext = React5.createContext(
|
|
3639
3564
|
{}
|
|
3640
3565
|
);
|
|
3641
3566
|
var FormField = (_a) => {
|
|
3642
3567
|
var props = __objRest(_a, []);
|
|
3643
|
-
return /* @__PURE__ */ (0,
|
|
3568
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react_hook_form.Controller, __spreadValues({}, props)) });
|
|
3644
3569
|
};
|
|
3645
3570
|
var useFormField = () => {
|
|
3646
3571
|
const fieldContext = React5.useContext(FormFieldContext);
|
|
@@ -3666,7 +3591,7 @@ var FormItemContext = React5.createContext(
|
|
|
3666
3591
|
function FormItem(_a) {
|
|
3667
3592
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3668
3593
|
const id = React5.useId();
|
|
3669
|
-
return /* @__PURE__ */ (0,
|
|
3594
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3670
3595
|
"div",
|
|
3671
3596
|
__spreadValues({
|
|
3672
3597
|
"data-slot": "form-item",
|
|
@@ -3681,7 +3606,7 @@ function FormLabel(_a) {
|
|
|
3681
3606
|
"className"
|
|
3682
3607
|
]);
|
|
3683
3608
|
const { error, formItemId } = useFormField();
|
|
3684
|
-
return /* @__PURE__ */ (0,
|
|
3609
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3685
3610
|
Label,
|
|
3686
3611
|
__spreadValues({
|
|
3687
3612
|
"data-slot": "form-label",
|
|
@@ -3694,8 +3619,8 @@ function FormLabel(_a) {
|
|
|
3694
3619
|
function FormControl(_a) {
|
|
3695
3620
|
var props = __objRest(_a, []);
|
|
3696
3621
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
3697
|
-
return /* @__PURE__ */ (0,
|
|
3698
|
-
|
|
3622
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3623
|
+
import_radix_ui16.Slot.Root,
|
|
3699
3624
|
__spreadValues({
|
|
3700
3625
|
"data-slot": "form-control",
|
|
3701
3626
|
id: formItemId,
|
|
@@ -3707,7 +3632,7 @@ function FormControl(_a) {
|
|
|
3707
3632
|
function FormDescription(_a) {
|
|
3708
3633
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3709
3634
|
const { formDescriptionId } = useFormField();
|
|
3710
|
-
return /* @__PURE__ */ (0,
|
|
3635
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3711
3636
|
"p",
|
|
3712
3637
|
__spreadValues({
|
|
3713
3638
|
"data-slot": "form-description",
|
|
@@ -3724,7 +3649,7 @@ function FormMessage(_a) {
|
|
|
3724
3649
|
if (!body) {
|
|
3725
3650
|
return null;
|
|
3726
3651
|
}
|
|
3727
|
-
return /* @__PURE__ */ (0,
|
|
3652
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3728
3653
|
"p",
|
|
3729
3654
|
__spreadProps(__spreadValues({
|
|
3730
3655
|
"data-slot": "form-message",
|
|
@@ -3737,15 +3662,15 @@ function FormMessage(_a) {
|
|
|
3737
3662
|
}
|
|
3738
3663
|
|
|
3739
3664
|
// components/ui/hover-card.tsx
|
|
3740
|
-
var
|
|
3741
|
-
var
|
|
3665
|
+
var import_radix_ui17 = require("radix-ui");
|
|
3666
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
3742
3667
|
function HoverCard(_a) {
|
|
3743
3668
|
var props = __objRest(_a, []);
|
|
3744
|
-
return /* @__PURE__ */ (0,
|
|
3669
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_radix_ui17.HoverCard.Root, __spreadValues({ "data-slot": "hover-card" }, props));
|
|
3745
3670
|
}
|
|
3746
3671
|
function HoverCardTrigger(_a) {
|
|
3747
3672
|
var props = __objRest(_a, []);
|
|
3748
|
-
return /* @__PURE__ */ (0,
|
|
3673
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_radix_ui17.HoverCard.Trigger, __spreadValues({ "data-slot": "hover-card-trigger" }, props));
|
|
3749
3674
|
}
|
|
3750
3675
|
function HoverCardContent(_a) {
|
|
3751
3676
|
var _b = _a, {
|
|
@@ -3757,8 +3682,8 @@ function HoverCardContent(_a) {
|
|
|
3757
3682
|
"align",
|
|
3758
3683
|
"sideOffset"
|
|
3759
3684
|
]);
|
|
3760
|
-
return /* @__PURE__ */ (0,
|
|
3761
|
-
|
|
3685
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_radix_ui17.HoverCard.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3686
|
+
import_radix_ui17.HoverCard.Content,
|
|
3762
3687
|
__spreadValues({
|
|
3763
3688
|
"data-slot": "hover-card-content",
|
|
3764
3689
|
align,
|
|
@@ -3775,7 +3700,7 @@ function HoverCardContent(_a) {
|
|
|
3775
3700
|
var React6 = __toESM(require("react"), 1);
|
|
3776
3701
|
var import_input_otp = require("input-otp");
|
|
3777
3702
|
var import_lucide_react11 = require("lucide-react");
|
|
3778
|
-
var
|
|
3703
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
3779
3704
|
function InputOTP(_a) {
|
|
3780
3705
|
var _b = _a, {
|
|
3781
3706
|
className,
|
|
@@ -3784,7 +3709,7 @@ function InputOTP(_a) {
|
|
|
3784
3709
|
"className",
|
|
3785
3710
|
"containerClassName"
|
|
3786
3711
|
]);
|
|
3787
|
-
return /* @__PURE__ */ (0,
|
|
3712
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3788
3713
|
import_input_otp.OTPInput,
|
|
3789
3714
|
__spreadValues({
|
|
3790
3715
|
"data-slot": "input-otp",
|
|
@@ -3798,7 +3723,7 @@ function InputOTP(_a) {
|
|
|
3798
3723
|
}
|
|
3799
3724
|
function InputOTPGroup(_a) {
|
|
3800
3725
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3801
|
-
return /* @__PURE__ */ (0,
|
|
3726
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3802
3727
|
"div",
|
|
3803
3728
|
__spreadValues({
|
|
3804
3729
|
"data-slot": "input-otp-group",
|
|
@@ -3817,35 +3742,35 @@ function InputOTPSlot(_a) {
|
|
|
3817
3742
|
var _a2;
|
|
3818
3743
|
const inputOTPContext = React6.useContext(import_input_otp.OTPInputContext);
|
|
3819
3744
|
const { char, hasFakeCaret, isActive } = (_a2 = inputOTPContext == null ? void 0 : inputOTPContext.slots[index]) != null ? _a2 : {};
|
|
3820
|
-
return /* @__PURE__ */ (0,
|
|
3745
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
3821
3746
|
"div",
|
|
3822
3747
|
__spreadProps(__spreadValues({
|
|
3823
3748
|
"data-slot": "input-otp-slot",
|
|
3824
3749
|
"data-active": isActive,
|
|
3825
3750
|
className: cn(
|
|
3826
|
-
"relative flex h-9 w-9 items-center justify-center border
|
|
3751
|
+
"relative flex h-9 w-9 items-center justify-center border border-border bg-white/5 text-sm font-body text-foreground shadow-xs transition-[color,box-shadow] outline-none first:rounded-l-sm last:rounded-r-sm aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 data-[active=true]:z-10 data-[active=true]:border-primary/40 data-[active=true]:ring-[3px] data-[active=true]:ring-primary/[0.08] data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40",
|
|
3827
3752
|
className
|
|
3828
3753
|
)
|
|
3829
3754
|
}, props), {
|
|
3830
3755
|
children: [
|
|
3831
3756
|
char,
|
|
3832
|
-
hasFakeCaret && /* @__PURE__ */ (0,
|
|
3757
|
+
hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
|
|
3833
3758
|
]
|
|
3834
3759
|
})
|
|
3835
3760
|
);
|
|
3836
3761
|
}
|
|
3837
3762
|
function InputOTPSeparator(_a) {
|
|
3838
3763
|
var props = __objRest(_a, []);
|
|
3839
|
-
return /* @__PURE__ */ (0,
|
|
3764
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", __spreadProps(__spreadValues({ "data-slot": "input-otp-separator", role: "separator" }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.MinusIcon, {}) }));
|
|
3840
3765
|
}
|
|
3841
3766
|
|
|
3842
3767
|
// components/ui/item.tsx
|
|
3843
|
-
var
|
|
3844
|
-
var
|
|
3845
|
-
var
|
|
3768
|
+
var import_class_variance_authority7 = require("class-variance-authority");
|
|
3769
|
+
var import_radix_ui18 = require("radix-ui");
|
|
3770
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
3846
3771
|
function ItemGroup(_a) {
|
|
3847
3772
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3848
|
-
return /* @__PURE__ */ (0,
|
|
3773
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3849
3774
|
"div",
|
|
3850
3775
|
__spreadValues({
|
|
3851
3776
|
role: "list",
|
|
@@ -3860,7 +3785,7 @@ function ItemSeparator(_a) {
|
|
|
3860
3785
|
} = _b, props = __objRest(_b, [
|
|
3861
3786
|
"className"
|
|
3862
3787
|
]);
|
|
3863
|
-
return /* @__PURE__ */ (0,
|
|
3788
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3864
3789
|
Separator,
|
|
3865
3790
|
__spreadValues({
|
|
3866
3791
|
"data-slot": "item-separator",
|
|
@@ -3869,7 +3794,7 @@ function ItemSeparator(_a) {
|
|
|
3869
3794
|
}, props)
|
|
3870
3795
|
);
|
|
3871
3796
|
}
|
|
3872
|
-
var itemVariants = (0,
|
|
3797
|
+
var itemVariants = (0, import_class_variance_authority7.cva)(
|
|
3873
3798
|
"group/item flex flex-wrap items-center rounded-md border border-transparent text-sm transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-accent/50",
|
|
3874
3799
|
{
|
|
3875
3800
|
variants: {
|
|
@@ -3901,8 +3826,8 @@ function Item(_a) {
|
|
|
3901
3826
|
"size",
|
|
3902
3827
|
"asChild"
|
|
3903
3828
|
]);
|
|
3904
|
-
const Comp = asChild ?
|
|
3905
|
-
return /* @__PURE__ */ (0,
|
|
3829
|
+
const Comp = asChild ? import_radix_ui18.Slot.Root : "div";
|
|
3830
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3906
3831
|
Comp,
|
|
3907
3832
|
__spreadValues({
|
|
3908
3833
|
"data-slot": "item",
|
|
@@ -3912,7 +3837,7 @@ function Item(_a) {
|
|
|
3912
3837
|
}, props)
|
|
3913
3838
|
);
|
|
3914
3839
|
}
|
|
3915
|
-
var itemMediaVariants = (0,
|
|
3840
|
+
var itemMediaVariants = (0, import_class_variance_authority7.cva)(
|
|
3916
3841
|
"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",
|
|
3917
3842
|
{
|
|
3918
3843
|
variants: {
|
|
@@ -3935,7 +3860,7 @@ function ItemMedia(_a) {
|
|
|
3935
3860
|
"className",
|
|
3936
3861
|
"variant"
|
|
3937
3862
|
]);
|
|
3938
|
-
return /* @__PURE__ */ (0,
|
|
3863
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3939
3864
|
"div",
|
|
3940
3865
|
__spreadValues({
|
|
3941
3866
|
"data-slot": "item-media",
|
|
@@ -3946,7 +3871,7 @@ function ItemMedia(_a) {
|
|
|
3946
3871
|
}
|
|
3947
3872
|
function ItemContent(_a) {
|
|
3948
3873
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3949
|
-
return /* @__PURE__ */ (0,
|
|
3874
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3950
3875
|
"div",
|
|
3951
3876
|
__spreadValues({
|
|
3952
3877
|
"data-slot": "item-content",
|
|
@@ -3959,7 +3884,7 @@ function ItemContent(_a) {
|
|
|
3959
3884
|
}
|
|
3960
3885
|
function ItemTitle(_a) {
|
|
3961
3886
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3962
|
-
return /* @__PURE__ */ (0,
|
|
3887
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3963
3888
|
"div",
|
|
3964
3889
|
__spreadValues({
|
|
3965
3890
|
"data-slot": "item-title",
|
|
@@ -3972,7 +3897,7 @@ function ItemTitle(_a) {
|
|
|
3972
3897
|
}
|
|
3973
3898
|
function ItemDescription(_a) {
|
|
3974
3899
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3975
|
-
return /* @__PURE__ */ (0,
|
|
3900
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3976
3901
|
"p",
|
|
3977
3902
|
__spreadValues({
|
|
3978
3903
|
"data-slot": "item-description",
|
|
@@ -3986,7 +3911,7 @@ function ItemDescription(_a) {
|
|
|
3986
3911
|
}
|
|
3987
3912
|
function ItemActions(_a) {
|
|
3988
3913
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3989
|
-
return /* @__PURE__ */ (0,
|
|
3914
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3990
3915
|
"div",
|
|
3991
3916
|
__spreadValues({
|
|
3992
3917
|
"data-slot": "item-actions",
|
|
@@ -3996,7 +3921,7 @@ function ItemActions(_a) {
|
|
|
3996
3921
|
}
|
|
3997
3922
|
function ItemHeader(_a) {
|
|
3998
3923
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3999
|
-
return /* @__PURE__ */ (0,
|
|
3924
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
4000
3925
|
"div",
|
|
4001
3926
|
__spreadValues({
|
|
4002
3927
|
"data-slot": "item-header",
|
|
@@ -4009,7 +3934,7 @@ function ItemHeader(_a) {
|
|
|
4009
3934
|
}
|
|
4010
3935
|
function ItemFooter(_a) {
|
|
4011
3936
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4012
|
-
return /* @__PURE__ */ (0,
|
|
3937
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
4013
3938
|
"div",
|
|
4014
3939
|
__spreadValues({
|
|
4015
3940
|
"data-slot": "item-footer",
|
|
@@ -4022,10 +3947,10 @@ function ItemFooter(_a) {
|
|
|
4022
3947
|
}
|
|
4023
3948
|
|
|
4024
3949
|
// components/ui/kbd.tsx
|
|
4025
|
-
var
|
|
3950
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
4026
3951
|
function Kbd(_a) {
|
|
4027
3952
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4028
|
-
return /* @__PURE__ */ (0,
|
|
3953
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
4029
3954
|
"kbd",
|
|
4030
3955
|
__spreadValues({
|
|
4031
3956
|
"data-slot": "kbd",
|
|
@@ -4040,7 +3965,7 @@ function Kbd(_a) {
|
|
|
4040
3965
|
}
|
|
4041
3966
|
function KbdGroup(_a) {
|
|
4042
3967
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4043
|
-
return /* @__PURE__ */ (0,
|
|
3968
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
4044
3969
|
"kbd",
|
|
4045
3970
|
__spreadValues({
|
|
4046
3971
|
"data-slot": "kbd-group",
|
|
@@ -4051,16 +3976,16 @@ function KbdGroup(_a) {
|
|
|
4051
3976
|
|
|
4052
3977
|
// components/ui/menubar.tsx
|
|
4053
3978
|
var import_lucide_react12 = require("lucide-react");
|
|
4054
|
-
var
|
|
4055
|
-
var
|
|
3979
|
+
var import_radix_ui19 = require("radix-ui");
|
|
3980
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
4056
3981
|
function Menubar(_a) {
|
|
4057
3982
|
var _b = _a, {
|
|
4058
3983
|
className
|
|
4059
3984
|
} = _b, props = __objRest(_b, [
|
|
4060
3985
|
"className"
|
|
4061
3986
|
]);
|
|
4062
|
-
return /* @__PURE__ */ (0,
|
|
4063
|
-
|
|
3987
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3988
|
+
import_radix_ui19.Menubar.Root,
|
|
4064
3989
|
__spreadValues({
|
|
4065
3990
|
"data-slot": "menubar",
|
|
4066
3991
|
className: cn(
|
|
@@ -4072,19 +3997,19 @@ function Menubar(_a) {
|
|
|
4072
3997
|
}
|
|
4073
3998
|
function MenubarMenu(_a) {
|
|
4074
3999
|
var props = __objRest(_a, []);
|
|
4075
|
-
return /* @__PURE__ */ (0,
|
|
4000
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_radix_ui19.Menubar.Menu, __spreadValues({ "data-slot": "menubar-menu" }, props));
|
|
4076
4001
|
}
|
|
4077
4002
|
function MenubarGroup(_a) {
|
|
4078
4003
|
var props = __objRest(_a, []);
|
|
4079
|
-
return /* @__PURE__ */ (0,
|
|
4004
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_radix_ui19.Menubar.Group, __spreadValues({ "data-slot": "menubar-group" }, props));
|
|
4080
4005
|
}
|
|
4081
4006
|
function MenubarPortal(_a) {
|
|
4082
4007
|
var props = __objRest(_a, []);
|
|
4083
|
-
return /* @__PURE__ */ (0,
|
|
4008
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_radix_ui19.Menubar.Portal, __spreadValues({ "data-slot": "menubar-portal" }, props));
|
|
4084
4009
|
}
|
|
4085
4010
|
function MenubarRadioGroup(_a) {
|
|
4086
4011
|
var props = __objRest(_a, []);
|
|
4087
|
-
return /* @__PURE__ */ (0,
|
|
4012
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_radix_ui19.Menubar.RadioGroup, __spreadValues({ "data-slot": "menubar-radio-group" }, props));
|
|
4088
4013
|
}
|
|
4089
4014
|
function MenubarTrigger(_a) {
|
|
4090
4015
|
var _b = _a, {
|
|
@@ -4092,8 +4017,8 @@ function MenubarTrigger(_a) {
|
|
|
4092
4017
|
} = _b, props = __objRest(_b, [
|
|
4093
4018
|
"className"
|
|
4094
4019
|
]);
|
|
4095
|
-
return /* @__PURE__ */ (0,
|
|
4096
|
-
|
|
4020
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4021
|
+
import_radix_ui19.Menubar.Trigger,
|
|
4097
4022
|
__spreadValues({
|
|
4098
4023
|
"data-slot": "menubar-trigger",
|
|
4099
4024
|
className: cn(
|
|
@@ -4115,8 +4040,8 @@ function MenubarContent(_a) {
|
|
|
4115
4040
|
"alignOffset",
|
|
4116
4041
|
"sideOffset"
|
|
4117
4042
|
]);
|
|
4118
|
-
return /* @__PURE__ */ (0,
|
|
4119
|
-
|
|
4043
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(MenubarPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4044
|
+
import_radix_ui19.Menubar.Content,
|
|
4120
4045
|
__spreadValues({
|
|
4121
4046
|
"data-slot": "menubar-content",
|
|
4122
4047
|
align,
|
|
@@ -4139,8 +4064,8 @@ function MenubarItem(_a) {
|
|
|
4139
4064
|
"inset",
|
|
4140
4065
|
"variant"
|
|
4141
4066
|
]);
|
|
4142
|
-
return /* @__PURE__ */ (0,
|
|
4143
|
-
|
|
4067
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4068
|
+
import_radix_ui19.Menubar.Item,
|
|
4144
4069
|
__spreadValues({
|
|
4145
4070
|
"data-slot": "menubar-item",
|
|
4146
4071
|
"data-inset": inset,
|
|
@@ -4162,8 +4087,8 @@ function MenubarCheckboxItem(_a) {
|
|
|
4162
4087
|
"children",
|
|
4163
4088
|
"checked"
|
|
4164
4089
|
]);
|
|
4165
|
-
return /* @__PURE__ */ (0,
|
|
4166
|
-
|
|
4090
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
4091
|
+
import_radix_ui19.Menubar.CheckboxItem,
|
|
4167
4092
|
__spreadProps(__spreadValues({
|
|
4168
4093
|
"data-slot": "menubar-checkbox-item",
|
|
4169
4094
|
className: cn(
|
|
@@ -4173,7 +4098,7 @@ function MenubarCheckboxItem(_a) {
|
|
|
4173
4098
|
checked
|
|
4174
4099
|
}, props), {
|
|
4175
4100
|
children: [
|
|
4176
|
-
/* @__PURE__ */ (0,
|
|
4101
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_radix_ui19.Menubar.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react12.CheckIcon, { className: "size-4" }) }) }),
|
|
4177
4102
|
children
|
|
4178
4103
|
]
|
|
4179
4104
|
})
|
|
@@ -4187,8 +4112,8 @@ function MenubarRadioItem(_a) {
|
|
|
4187
4112
|
"className",
|
|
4188
4113
|
"children"
|
|
4189
4114
|
]);
|
|
4190
|
-
return /* @__PURE__ */ (0,
|
|
4191
|
-
|
|
4115
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
4116
|
+
import_radix_ui19.Menubar.RadioItem,
|
|
4192
4117
|
__spreadProps(__spreadValues({
|
|
4193
4118
|
"data-slot": "menubar-radio-item",
|
|
4194
4119
|
className: cn(
|
|
@@ -4197,7 +4122,7 @@ function MenubarRadioItem(_a) {
|
|
|
4197
4122
|
)
|
|
4198
4123
|
}, props), {
|
|
4199
4124
|
children: [
|
|
4200
|
-
/* @__PURE__ */ (0,
|
|
4125
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_radix_ui19.Menubar.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react12.CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
4201
4126
|
children
|
|
4202
4127
|
]
|
|
4203
4128
|
})
|
|
@@ -4211,8 +4136,8 @@ function MenubarLabel(_a) {
|
|
|
4211
4136
|
"className",
|
|
4212
4137
|
"inset"
|
|
4213
4138
|
]);
|
|
4214
|
-
return /* @__PURE__ */ (0,
|
|
4215
|
-
|
|
4139
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4140
|
+
import_radix_ui19.Menubar.Label,
|
|
4216
4141
|
__spreadValues({
|
|
4217
4142
|
"data-slot": "menubar-label",
|
|
4218
4143
|
"data-inset": inset,
|
|
@@ -4229,8 +4154,8 @@ function MenubarSeparator(_a) {
|
|
|
4229
4154
|
} = _b, props = __objRest(_b, [
|
|
4230
4155
|
"className"
|
|
4231
4156
|
]);
|
|
4232
|
-
return /* @__PURE__ */ (0,
|
|
4233
|
-
|
|
4157
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4158
|
+
import_radix_ui19.Menubar.Separator,
|
|
4234
4159
|
__spreadValues({
|
|
4235
4160
|
"data-slot": "menubar-separator",
|
|
4236
4161
|
className: cn("-mx-1 my-1 h-px bg-border", className)
|
|
@@ -4243,7 +4168,7 @@ function MenubarShortcut(_a) {
|
|
|
4243
4168
|
} = _b, props = __objRest(_b, [
|
|
4244
4169
|
"className"
|
|
4245
4170
|
]);
|
|
4246
|
-
return /* @__PURE__ */ (0,
|
|
4171
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4247
4172
|
"span",
|
|
4248
4173
|
__spreadValues({
|
|
4249
4174
|
"data-slot": "menubar-shortcut",
|
|
@@ -4256,7 +4181,7 @@ function MenubarShortcut(_a) {
|
|
|
4256
4181
|
}
|
|
4257
4182
|
function MenubarSub(_a) {
|
|
4258
4183
|
var props = __objRest(_a, []);
|
|
4259
|
-
return /* @__PURE__ */ (0,
|
|
4184
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_radix_ui19.Menubar.Sub, __spreadValues({ "data-slot": "menubar-sub" }, props));
|
|
4260
4185
|
}
|
|
4261
4186
|
function MenubarSubTrigger(_a) {
|
|
4262
4187
|
var _b = _a, {
|
|
@@ -4268,8 +4193,8 @@ function MenubarSubTrigger(_a) {
|
|
|
4268
4193
|
"inset",
|
|
4269
4194
|
"children"
|
|
4270
4195
|
]);
|
|
4271
|
-
return /* @__PURE__ */ (0,
|
|
4272
|
-
|
|
4196
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
4197
|
+
import_radix_ui19.Menubar.SubTrigger,
|
|
4273
4198
|
__spreadProps(__spreadValues({
|
|
4274
4199
|
"data-slot": "menubar-sub-trigger",
|
|
4275
4200
|
"data-inset": inset,
|
|
@@ -4280,7 +4205,7 @@ function MenubarSubTrigger(_a) {
|
|
|
4280
4205
|
}, props), {
|
|
4281
4206
|
children: [
|
|
4282
4207
|
children,
|
|
4283
|
-
/* @__PURE__ */ (0,
|
|
4208
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react12.ChevronRightIcon, { className: "ml-auto h-4 w-4" })
|
|
4284
4209
|
]
|
|
4285
4210
|
})
|
|
4286
4211
|
);
|
|
@@ -4291,8 +4216,8 @@ function MenubarSubContent(_a) {
|
|
|
4291
4216
|
} = _b, props = __objRest(_b, [
|
|
4292
4217
|
"className"
|
|
4293
4218
|
]);
|
|
4294
|
-
return /* @__PURE__ */ (0,
|
|
4295
|
-
|
|
4219
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4220
|
+
import_radix_ui19.Menubar.SubContent,
|
|
4296
4221
|
__spreadValues({
|
|
4297
4222
|
"data-slot": "menubar-sub-content",
|
|
4298
4223
|
className: cn(
|
|
@@ -4305,7 +4230,7 @@ function MenubarSubContent(_a) {
|
|
|
4305
4230
|
|
|
4306
4231
|
// components/ui/native-select.tsx
|
|
4307
4232
|
var import_lucide_react13 = require("lucide-react");
|
|
4308
|
-
var
|
|
4233
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
4309
4234
|
function NativeSelect(_a) {
|
|
4310
4235
|
var _b = _a, {
|
|
4311
4236
|
className,
|
|
@@ -4314,13 +4239,13 @@ function NativeSelect(_a) {
|
|
|
4314
4239
|
"className",
|
|
4315
4240
|
"size"
|
|
4316
4241
|
]);
|
|
4317
|
-
return /* @__PURE__ */ (0,
|
|
4242
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
4318
4243
|
"div",
|
|
4319
4244
|
{
|
|
4320
4245
|
className: "group/native-select relative w-fit has-[select:disabled]:opacity-50",
|
|
4321
4246
|
"data-slot": "native-select-wrapper",
|
|
4322
4247
|
children: [
|
|
4323
|
-
/* @__PURE__ */ (0,
|
|
4248
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
4324
4249
|
"select",
|
|
4325
4250
|
__spreadValues({
|
|
4326
4251
|
"data-slot": "native-select",
|
|
@@ -4333,7 +4258,7 @@ function NativeSelect(_a) {
|
|
|
4333
4258
|
)
|
|
4334
4259
|
}, props)
|
|
4335
4260
|
),
|
|
4336
|
-
/* @__PURE__ */ (0,
|
|
4261
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
4337
4262
|
import_lucide_react13.ChevronDownIcon,
|
|
4338
4263
|
{
|
|
4339
4264
|
className: "pointer-events-none absolute top-1/2 right-3.5 size-4 -translate-y-1/2 text-muted-foreground opacity-50 select-none",
|
|
@@ -4347,7 +4272,7 @@ function NativeSelect(_a) {
|
|
|
4347
4272
|
}
|
|
4348
4273
|
function NativeSelectOption(_a) {
|
|
4349
4274
|
var props = __objRest(_a, []);
|
|
4350
|
-
return /* @__PURE__ */ (0,
|
|
4275
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("option", __spreadValues({ "data-slot": "native-select-option" }, props));
|
|
4351
4276
|
}
|
|
4352
4277
|
function NativeSelectOptGroup(_a) {
|
|
4353
4278
|
var _b = _a, {
|
|
@@ -4355,7 +4280,7 @@ function NativeSelectOptGroup(_a) {
|
|
|
4355
4280
|
} = _b, props = __objRest(_b, [
|
|
4356
4281
|
"className"
|
|
4357
4282
|
]);
|
|
4358
|
-
return /* @__PURE__ */ (0,
|
|
4283
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
4359
4284
|
"optgroup",
|
|
4360
4285
|
__spreadValues({
|
|
4361
4286
|
"data-slot": "native-select-optgroup",
|
|
@@ -4365,10 +4290,10 @@ function NativeSelectOptGroup(_a) {
|
|
|
4365
4290
|
}
|
|
4366
4291
|
|
|
4367
4292
|
// components/ui/navigation-menu.tsx
|
|
4368
|
-
var
|
|
4293
|
+
var import_class_variance_authority8 = require("class-variance-authority");
|
|
4369
4294
|
var import_lucide_react14 = require("lucide-react");
|
|
4370
|
-
var
|
|
4371
|
-
var
|
|
4295
|
+
var import_radix_ui20 = require("radix-ui");
|
|
4296
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
4372
4297
|
function NavigationMenu(_a) {
|
|
4373
4298
|
var _b = _a, {
|
|
4374
4299
|
className,
|
|
@@ -4379,8 +4304,8 @@ function NavigationMenu(_a) {
|
|
|
4379
4304
|
"children",
|
|
4380
4305
|
"viewport"
|
|
4381
4306
|
]);
|
|
4382
|
-
return /* @__PURE__ */ (0,
|
|
4383
|
-
|
|
4307
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
4308
|
+
import_radix_ui20.NavigationMenu.Root,
|
|
4384
4309
|
__spreadProps(__spreadValues({
|
|
4385
4310
|
"data-slot": "navigation-menu",
|
|
4386
4311
|
"data-viewport": viewport,
|
|
@@ -4391,7 +4316,7 @@ function NavigationMenu(_a) {
|
|
|
4391
4316
|
}, props), {
|
|
4392
4317
|
children: [
|
|
4393
4318
|
children,
|
|
4394
|
-
viewport && /* @__PURE__ */ (0,
|
|
4319
|
+
viewport && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(NavigationMenuViewport, {})
|
|
4395
4320
|
]
|
|
4396
4321
|
})
|
|
4397
4322
|
);
|
|
@@ -4402,8 +4327,8 @@ function NavigationMenuList(_a) {
|
|
|
4402
4327
|
} = _b, props = __objRest(_b, [
|
|
4403
4328
|
"className"
|
|
4404
4329
|
]);
|
|
4405
|
-
return /* @__PURE__ */ (0,
|
|
4406
|
-
|
|
4330
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
4331
|
+
import_radix_ui20.NavigationMenu.List,
|
|
4407
4332
|
__spreadValues({
|
|
4408
4333
|
"data-slot": "navigation-menu-list",
|
|
4409
4334
|
className: cn(
|
|
@@ -4419,15 +4344,15 @@ function NavigationMenuItem(_a) {
|
|
|
4419
4344
|
} = _b, props = __objRest(_b, [
|
|
4420
4345
|
"className"
|
|
4421
4346
|
]);
|
|
4422
|
-
return /* @__PURE__ */ (0,
|
|
4423
|
-
|
|
4347
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
4348
|
+
import_radix_ui20.NavigationMenu.Item,
|
|
4424
4349
|
__spreadValues({
|
|
4425
4350
|
"data-slot": "navigation-menu-item",
|
|
4426
4351
|
className: cn("relative", className)
|
|
4427
4352
|
}, props)
|
|
4428
4353
|
);
|
|
4429
4354
|
}
|
|
4430
|
-
var navigationMenuTriggerStyle = (0,
|
|
4355
|
+
var navigationMenuTriggerStyle = (0, import_class_variance_authority8.cva)(
|
|
4431
4356
|
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-[color,box-shadow] outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-accent/50 data-[state=open]:text-accent-foreground data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"
|
|
4432
4357
|
);
|
|
4433
4358
|
function NavigationMenuTrigger(_a) {
|
|
@@ -4438,8 +4363,8 @@ function NavigationMenuTrigger(_a) {
|
|
|
4438
4363
|
"className",
|
|
4439
4364
|
"children"
|
|
4440
4365
|
]);
|
|
4441
|
-
return /* @__PURE__ */ (0,
|
|
4442
|
-
|
|
4366
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
4367
|
+
import_radix_ui20.NavigationMenu.Trigger,
|
|
4443
4368
|
__spreadProps(__spreadValues({
|
|
4444
4369
|
"data-slot": "navigation-menu-trigger",
|
|
4445
4370
|
className: cn(navigationMenuTriggerStyle(), "group", className)
|
|
@@ -4447,7 +4372,7 @@ function NavigationMenuTrigger(_a) {
|
|
|
4447
4372
|
children: [
|
|
4448
4373
|
children,
|
|
4449
4374
|
" ",
|
|
4450
|
-
/* @__PURE__ */ (0,
|
|
4375
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
4451
4376
|
import_lucide_react14.ChevronDownIcon,
|
|
4452
4377
|
{
|
|
4453
4378
|
className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
@@ -4464,8 +4389,8 @@ function NavigationMenuContent(_a) {
|
|
|
4464
4389
|
} = _b, props = __objRest(_b, [
|
|
4465
4390
|
"className"
|
|
4466
4391
|
]);
|
|
4467
|
-
return /* @__PURE__ */ (0,
|
|
4468
|
-
|
|
4392
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
4393
|
+
import_radix_ui20.NavigationMenu.Content,
|
|
4469
4394
|
__spreadValues({
|
|
4470
4395
|
"data-slot": "navigation-menu-content",
|
|
4471
4396
|
className: cn(
|
|
@@ -4482,14 +4407,14 @@ function NavigationMenuViewport(_a) {
|
|
|
4482
4407
|
} = _b, props = __objRest(_b, [
|
|
4483
4408
|
"className"
|
|
4484
4409
|
]);
|
|
4485
|
-
return /* @__PURE__ */ (0,
|
|
4410
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
4486
4411
|
"div",
|
|
4487
4412
|
{
|
|
4488
4413
|
className: cn(
|
|
4489
4414
|
"absolute top-full left-0 isolate z-50 flex justify-center"
|
|
4490
4415
|
),
|
|
4491
|
-
children: /* @__PURE__ */ (0,
|
|
4492
|
-
|
|
4416
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
4417
|
+
import_radix_ui20.NavigationMenu.Viewport,
|
|
4493
4418
|
__spreadValues({
|
|
4494
4419
|
"data-slot": "navigation-menu-viewport",
|
|
4495
4420
|
className: cn(
|
|
@@ -4507,8 +4432,8 @@ function NavigationMenuLink(_a) {
|
|
|
4507
4432
|
} = _b, props = __objRest(_b, [
|
|
4508
4433
|
"className"
|
|
4509
4434
|
]);
|
|
4510
|
-
return /* @__PURE__ */ (0,
|
|
4511
|
-
|
|
4435
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
4436
|
+
import_radix_ui20.NavigationMenu.Link,
|
|
4512
4437
|
__spreadValues({
|
|
4513
4438
|
"data-slot": "navigation-menu-link",
|
|
4514
4439
|
className: cn(
|
|
@@ -4524,8 +4449,8 @@ function NavigationMenuIndicator(_a) {
|
|
|
4524
4449
|
} = _b, props = __objRest(_b, [
|
|
4525
4450
|
"className"
|
|
4526
4451
|
]);
|
|
4527
|
-
return /* @__PURE__ */ (0,
|
|
4528
|
-
|
|
4452
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
4453
|
+
import_radix_ui20.NavigationMenu.Indicator,
|
|
4529
4454
|
__spreadProps(__spreadValues({
|
|
4530
4455
|
"data-slot": "navigation-menu-indicator",
|
|
4531
4456
|
className: cn(
|
|
@@ -4533,17 +4458,17 @@ function NavigationMenuIndicator(_a) {
|
|
|
4533
4458
|
className
|
|
4534
4459
|
)
|
|
4535
4460
|
}, props), {
|
|
4536
|
-
children: /* @__PURE__ */ (0,
|
|
4461
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
4537
4462
|
})
|
|
4538
4463
|
);
|
|
4539
4464
|
}
|
|
4540
4465
|
|
|
4541
4466
|
// components/ui/pagination.tsx
|
|
4542
4467
|
var import_lucide_react15 = require("lucide-react");
|
|
4543
|
-
var
|
|
4468
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
4544
4469
|
function Pagination(_a) {
|
|
4545
4470
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4546
|
-
return /* @__PURE__ */ (0,
|
|
4471
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4547
4472
|
"nav",
|
|
4548
4473
|
__spreadValues({
|
|
4549
4474
|
role: "navigation",
|
|
@@ -4559,7 +4484,7 @@ function PaginationContent(_a) {
|
|
|
4559
4484
|
} = _b, props = __objRest(_b, [
|
|
4560
4485
|
"className"
|
|
4561
4486
|
]);
|
|
4562
|
-
return /* @__PURE__ */ (0,
|
|
4487
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4563
4488
|
"ul",
|
|
4564
4489
|
__spreadValues({
|
|
4565
4490
|
"data-slot": "pagination-content",
|
|
@@ -4569,19 +4494,19 @@ function PaginationContent(_a) {
|
|
|
4569
4494
|
}
|
|
4570
4495
|
function PaginationItem(_a) {
|
|
4571
4496
|
var props = __objRest(_a, []);
|
|
4572
|
-
return /* @__PURE__ */ (0,
|
|
4497
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("li", __spreadValues({ "data-slot": "pagination-item" }, props));
|
|
4573
4498
|
}
|
|
4574
4499
|
function PaginationLink(_a) {
|
|
4575
4500
|
var _b = _a, {
|
|
4576
4501
|
className,
|
|
4577
4502
|
isActive,
|
|
4578
|
-
size = "icon"
|
|
4503
|
+
size = "icon-md"
|
|
4579
4504
|
} = _b, props = __objRest(_b, [
|
|
4580
4505
|
"className",
|
|
4581
4506
|
"isActive",
|
|
4582
4507
|
"size"
|
|
4583
4508
|
]);
|
|
4584
|
-
return /* @__PURE__ */ (0,
|
|
4509
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4585
4510
|
"a",
|
|
4586
4511
|
__spreadValues({
|
|
4587
4512
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -4603,19 +4528,7 @@ function PaginationPrevious(_a) {
|
|
|
4603
4528
|
} = _b, props = __objRest(_b, [
|
|
4604
4529
|
"className"
|
|
4605
4530
|
]);
|
|
4606
|
-
return /* @__PURE__ */ (0,
|
|
4607
|
-
PaginationLink,
|
|
4608
|
-
__spreadProps(__spreadValues({
|
|
4609
|
-
"aria-label": "Go to previous page",
|
|
4610
|
-
size: "md",
|
|
4611
|
-
className: cn("gap-1 px-2.5 sm:pl-2.5", className)
|
|
4612
|
-
}, props), {
|
|
4613
|
-
children: [
|
|
4614
|
-
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react15.ChevronLeftIcon, {}),
|
|
4615
|
-
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "hidden sm:block", children: "Previous" })
|
|
4616
|
-
]
|
|
4617
|
-
})
|
|
4618
|
-
);
|
|
4531
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Button, { asChild: true, variant: "tertiary", size: "icon-md", className: cn(className), children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("a", __spreadProps(__spreadValues({ "aria-label": "Go to previous page", "data-slot": "pagination-link" }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react15.ChevronLeftIcon, { className: "size-5" }) })) });
|
|
4619
4532
|
}
|
|
4620
4533
|
function PaginationNext(_a) {
|
|
4621
4534
|
var _b = _a, {
|
|
@@ -4623,19 +4536,7 @@ function PaginationNext(_a) {
|
|
|
4623
4536
|
} = _b, props = __objRest(_b, [
|
|
4624
4537
|
"className"
|
|
4625
4538
|
]);
|
|
4626
|
-
return /* @__PURE__ */ (0,
|
|
4627
|
-
PaginationLink,
|
|
4628
|
-
__spreadProps(__spreadValues({
|
|
4629
|
-
"aria-label": "Go to next page",
|
|
4630
|
-
size: "md",
|
|
4631
|
-
className: cn("gap-1 px-2.5 sm:pr-2.5", className)
|
|
4632
|
-
}, props), {
|
|
4633
|
-
children: [
|
|
4634
|
-
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "hidden sm:block", children: "Next" }),
|
|
4635
|
-
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react15.ChevronRightIcon, {})
|
|
4636
|
-
]
|
|
4637
|
-
})
|
|
4638
|
-
);
|
|
4539
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Button, { asChild: true, variant: "tertiary", size: "icon-md", className: cn(className), children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("a", __spreadProps(__spreadValues({ "aria-label": "Go to next page", "data-slot": "pagination-link" }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react15.ChevronRightIcon, { className: "size-5" }) })) });
|
|
4639
4540
|
}
|
|
4640
4541
|
function PaginationEllipsis(_a) {
|
|
4641
4542
|
var _b = _a, {
|
|
@@ -4643,31 +4544,31 @@ function PaginationEllipsis(_a) {
|
|
|
4643
4544
|
} = _b, props = __objRest(_b, [
|
|
4644
4545
|
"className"
|
|
4645
4546
|
]);
|
|
4646
|
-
return /* @__PURE__ */ (0,
|
|
4547
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
4647
4548
|
"span",
|
|
4648
4549
|
__spreadProps(__spreadValues({
|
|
4649
4550
|
"aria-hidden": true,
|
|
4650
4551
|
"data-slot": "pagination-ellipsis",
|
|
4651
|
-
className: cn("flex size-
|
|
4552
|
+
className: cn("flex size-10 items-center justify-center", className)
|
|
4652
4553
|
}, props), {
|
|
4653
4554
|
children: [
|
|
4654
|
-
/* @__PURE__ */ (0,
|
|
4655
|
-
/* @__PURE__ */ (0,
|
|
4555
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react15.MoreHorizontalIcon, { className: "size-4" }),
|
|
4556
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "sr-only", children: "More pages" })
|
|
4656
4557
|
]
|
|
4657
4558
|
})
|
|
4658
4559
|
);
|
|
4659
4560
|
}
|
|
4660
4561
|
|
|
4661
4562
|
// components/ui/popover.tsx
|
|
4662
|
-
var
|
|
4663
|
-
var
|
|
4563
|
+
var import_radix_ui21 = require("radix-ui");
|
|
4564
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
4664
4565
|
function Popover(_a) {
|
|
4665
4566
|
var props = __objRest(_a, []);
|
|
4666
|
-
return /* @__PURE__ */ (0,
|
|
4567
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_radix_ui21.Popover.Root, __spreadValues({ "data-slot": "popover" }, props));
|
|
4667
4568
|
}
|
|
4668
4569
|
function PopoverTrigger(_a) {
|
|
4669
4570
|
var props = __objRest(_a, []);
|
|
4670
|
-
return /* @__PURE__ */ (0,
|
|
4571
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_radix_ui21.Popover.Trigger, __spreadValues({ "data-slot": "popover-trigger" }, props));
|
|
4671
4572
|
}
|
|
4672
4573
|
function PopoverContent(_a) {
|
|
4673
4574
|
var _b = _a, {
|
|
@@ -4679,8 +4580,8 @@ function PopoverContent(_a) {
|
|
|
4679
4580
|
"align",
|
|
4680
4581
|
"sideOffset"
|
|
4681
4582
|
]);
|
|
4682
|
-
return /* @__PURE__ */ (0,
|
|
4683
|
-
|
|
4583
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_radix_ui21.Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4584
|
+
import_radix_ui21.Popover.Content,
|
|
4684
4585
|
__spreadValues({
|
|
4685
4586
|
"data-slot": "popover-content",
|
|
4686
4587
|
align,
|
|
@@ -4694,11 +4595,11 @@ function PopoverContent(_a) {
|
|
|
4694
4595
|
}
|
|
4695
4596
|
function PopoverAnchor(_a) {
|
|
4696
4597
|
var props = __objRest(_a, []);
|
|
4697
|
-
return /* @__PURE__ */ (0,
|
|
4598
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_radix_ui21.Popover.Anchor, __spreadValues({ "data-slot": "popover-anchor" }, props));
|
|
4698
4599
|
}
|
|
4699
4600
|
function PopoverHeader(_a) {
|
|
4700
4601
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4701
|
-
return /* @__PURE__ */ (0,
|
|
4602
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4702
4603
|
"div",
|
|
4703
4604
|
__spreadValues({
|
|
4704
4605
|
"data-slot": "popover-header",
|
|
@@ -4708,7 +4609,7 @@ function PopoverHeader(_a) {
|
|
|
4708
4609
|
}
|
|
4709
4610
|
function PopoverTitle(_a) {
|
|
4710
4611
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4711
|
-
return /* @__PURE__ */ (0,
|
|
4612
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4712
4613
|
"div",
|
|
4713
4614
|
__spreadValues({
|
|
4714
4615
|
"data-slot": "popover-title",
|
|
@@ -4722,7 +4623,7 @@ function PopoverDescription(_a) {
|
|
|
4722
4623
|
} = _b, props = __objRest(_b, [
|
|
4723
4624
|
"className"
|
|
4724
4625
|
]);
|
|
4725
|
-
return /* @__PURE__ */ (0,
|
|
4626
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4726
4627
|
"p",
|
|
4727
4628
|
__spreadValues({
|
|
4728
4629
|
"data-slot": "popover-description",
|
|
@@ -4732,8 +4633,8 @@ function PopoverDescription(_a) {
|
|
|
4732
4633
|
}
|
|
4733
4634
|
|
|
4734
4635
|
// components/ui/progress.tsx
|
|
4735
|
-
var
|
|
4736
|
-
var
|
|
4636
|
+
var import_radix_ui22 = require("radix-ui");
|
|
4637
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
4737
4638
|
function Progress(_a) {
|
|
4738
4639
|
var _b = _a, {
|
|
4739
4640
|
className,
|
|
@@ -4742,17 +4643,17 @@ function Progress(_a) {
|
|
|
4742
4643
|
"className",
|
|
4743
4644
|
"value"
|
|
4744
4645
|
]);
|
|
4745
|
-
return /* @__PURE__ */ (0,
|
|
4746
|
-
|
|
4646
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4647
|
+
import_radix_ui22.Progress.Root,
|
|
4747
4648
|
__spreadProps(__spreadValues({
|
|
4748
4649
|
"data-slot": "progress",
|
|
4749
4650
|
className: cn(
|
|
4750
|
-
"relative h-2 w-full overflow-hidden rounded-
|
|
4651
|
+
"relative h-2 w-full overflow-hidden rounded-2xs bg-primary/20",
|
|
4751
4652
|
className
|
|
4752
4653
|
)
|
|
4753
4654
|
}, props), {
|
|
4754
|
-
children: /* @__PURE__ */ (0,
|
|
4755
|
-
|
|
4655
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4656
|
+
import_radix_ui22.Progress.Indicator,
|
|
4756
4657
|
{
|
|
4757
4658
|
"data-slot": "progress-indicator",
|
|
4758
4659
|
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
@@ -4765,16 +4666,16 @@ function Progress(_a) {
|
|
|
4765
4666
|
|
|
4766
4667
|
// components/ui/radio-group.tsx
|
|
4767
4668
|
var import_lucide_react16 = require("lucide-react");
|
|
4768
|
-
var
|
|
4769
|
-
var
|
|
4669
|
+
var import_radix_ui23 = require("radix-ui");
|
|
4670
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
4770
4671
|
function RadioGroup(_a) {
|
|
4771
4672
|
var _b = _a, {
|
|
4772
4673
|
className
|
|
4773
4674
|
} = _b, props = __objRest(_b, [
|
|
4774
4675
|
"className"
|
|
4775
4676
|
]);
|
|
4776
|
-
return /* @__PURE__ */ (0,
|
|
4777
|
-
|
|
4677
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4678
|
+
import_radix_ui23.RadioGroup.Root,
|
|
4778
4679
|
__spreadValues({
|
|
4779
4680
|
"data-slot": "radio-group",
|
|
4780
4681
|
className: cn("grid gap-3", className)
|
|
@@ -4787,8 +4688,8 @@ function RadioGroupItem(_a) {
|
|
|
4787
4688
|
} = _b, props = __objRest(_b, [
|
|
4788
4689
|
"className"
|
|
4789
4690
|
]);
|
|
4790
|
-
return /* @__PURE__ */ (0,
|
|
4791
|
-
|
|
4691
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4692
|
+
import_radix_ui23.RadioGroup.Item,
|
|
4792
4693
|
__spreadProps(__spreadValues({
|
|
4793
4694
|
"data-slot": "radio-group-item",
|
|
4794
4695
|
className: cn(
|
|
@@ -4796,12 +4697,12 @@ function RadioGroupItem(_a) {
|
|
|
4796
4697
|
className
|
|
4797
4698
|
)
|
|
4798
4699
|
}, props), {
|
|
4799
|
-
children: /* @__PURE__ */ (0,
|
|
4800
|
-
|
|
4700
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4701
|
+
import_radix_ui23.RadioGroup.Indicator,
|
|
4801
4702
|
{
|
|
4802
4703
|
"data-slot": "radio-group-indicator",
|
|
4803
4704
|
className: "relative flex items-center justify-center",
|
|
4804
|
-
children: /* @__PURE__ */ (0,
|
|
4705
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.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" })
|
|
4805
4706
|
}
|
|
4806
4707
|
)
|
|
4807
4708
|
})
|
|
@@ -4811,14 +4712,14 @@ function RadioGroupItem(_a) {
|
|
|
4811
4712
|
// components/ui/resizable.tsx
|
|
4812
4713
|
var import_lucide_react17 = require("lucide-react");
|
|
4813
4714
|
var ResizablePrimitive = __toESM(require("react-resizable-panels"), 1);
|
|
4814
|
-
var
|
|
4715
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
4815
4716
|
function ResizablePanelGroup(_a) {
|
|
4816
4717
|
var _b = _a, {
|
|
4817
4718
|
className
|
|
4818
4719
|
} = _b, props = __objRest(_b, [
|
|
4819
4720
|
"className"
|
|
4820
4721
|
]);
|
|
4821
|
-
return /* @__PURE__ */ (0,
|
|
4722
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4822
4723
|
ResizablePrimitive.Group,
|
|
4823
4724
|
__spreadValues({
|
|
4824
4725
|
"data-slot": "resizable-panel-group",
|
|
@@ -4831,7 +4732,7 @@ function ResizablePanelGroup(_a) {
|
|
|
4831
4732
|
}
|
|
4832
4733
|
function ResizablePanel(_a) {
|
|
4833
4734
|
var props = __objRest(_a, []);
|
|
4834
|
-
return /* @__PURE__ */ (0,
|
|
4735
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ResizablePrimitive.Panel, __spreadValues({ "data-slot": "resizable-panel" }, props));
|
|
4835
4736
|
}
|
|
4836
4737
|
function ResizableHandle(_a) {
|
|
4837
4738
|
var _b = _a, {
|
|
@@ -4841,7 +4742,7 @@ function ResizableHandle(_a) {
|
|
|
4841
4742
|
"withHandle",
|
|
4842
4743
|
"className"
|
|
4843
4744
|
]);
|
|
4844
|
-
return /* @__PURE__ */ (0,
|
|
4745
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4845
4746
|
ResizablePrimitive.Separator,
|
|
4846
4747
|
__spreadProps(__spreadValues({
|
|
4847
4748
|
"data-slot": "resizable-handle",
|
|
@@ -4850,14 +4751,14 @@ function ResizableHandle(_a) {
|
|
|
4850
4751
|
className
|
|
4851
4752
|
)
|
|
4852
4753
|
}, props), {
|
|
4853
|
-
children: withHandle && /* @__PURE__ */ (0,
|
|
4754
|
+
children: withHandle && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-xs border bg-border", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react17.GripVerticalIcon, { className: "size-2.5" }) })
|
|
4854
4755
|
})
|
|
4855
4756
|
);
|
|
4856
4757
|
}
|
|
4857
4758
|
|
|
4858
4759
|
// components/ui/scroll-area.tsx
|
|
4859
|
-
var
|
|
4860
|
-
var
|
|
4760
|
+
var import_radix_ui24 = require("radix-ui");
|
|
4761
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
4861
4762
|
function ScrollArea(_a) {
|
|
4862
4763
|
var _b = _a, {
|
|
4863
4764
|
className,
|
|
@@ -4866,23 +4767,23 @@ function ScrollArea(_a) {
|
|
|
4866
4767
|
"className",
|
|
4867
4768
|
"children"
|
|
4868
4769
|
]);
|
|
4869
|
-
return /* @__PURE__ */ (0,
|
|
4870
|
-
|
|
4770
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
4771
|
+
import_radix_ui24.ScrollArea.Root,
|
|
4871
4772
|
__spreadProps(__spreadValues({
|
|
4872
4773
|
"data-slot": "scroll-area",
|
|
4873
4774
|
className: cn("relative", className)
|
|
4874
4775
|
}, props), {
|
|
4875
4776
|
children: [
|
|
4876
|
-
/* @__PURE__ */ (0,
|
|
4877
|
-
|
|
4777
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4778
|
+
import_radix_ui24.ScrollArea.Viewport,
|
|
4878
4779
|
{
|
|
4879
4780
|
"data-slot": "scroll-area-viewport",
|
|
4880
4781
|
className: "size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",
|
|
4881
4782
|
children
|
|
4882
4783
|
}
|
|
4883
4784
|
),
|
|
4884
|
-
/* @__PURE__ */ (0,
|
|
4885
|
-
/* @__PURE__ */ (0,
|
|
4785
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ScrollBar, {}),
|
|
4786
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_radix_ui24.ScrollArea.Corner, {})
|
|
4886
4787
|
]
|
|
4887
4788
|
})
|
|
4888
4789
|
);
|
|
@@ -4895,8 +4796,8 @@ function ScrollBar(_a) {
|
|
|
4895
4796
|
"className",
|
|
4896
4797
|
"orientation"
|
|
4897
4798
|
]);
|
|
4898
|
-
return /* @__PURE__ */ (0,
|
|
4899
|
-
|
|
4799
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4800
|
+
import_radix_ui24.ScrollArea.ScrollAreaScrollbar,
|
|
4900
4801
|
__spreadProps(__spreadValues({
|
|
4901
4802
|
"data-slot": "scroll-area-scrollbar",
|
|
4902
4803
|
orientation,
|
|
@@ -4907,8 +4808,8 @@ function ScrollBar(_a) {
|
|
|
4907
4808
|
className
|
|
4908
4809
|
)
|
|
4909
4810
|
}, props), {
|
|
4910
|
-
children: /* @__PURE__ */ (0,
|
|
4911
|
-
|
|
4811
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4812
|
+
import_radix_ui24.ScrollArea.ScrollAreaThumb,
|
|
4912
4813
|
{
|
|
4913
4814
|
"data-slot": "scroll-area-thumb",
|
|
4914
4815
|
className: "relative flex-1 rounded-full bg-border"
|
|
@@ -4920,19 +4821,19 @@ function ScrollBar(_a) {
|
|
|
4920
4821
|
|
|
4921
4822
|
// components/ui/select.tsx
|
|
4922
4823
|
var import_lucide_react18 = require("lucide-react");
|
|
4923
|
-
var
|
|
4924
|
-
var
|
|
4824
|
+
var import_radix_ui25 = require("radix-ui");
|
|
4825
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
4925
4826
|
function Select(_a) {
|
|
4926
4827
|
var props = __objRest(_a, []);
|
|
4927
|
-
return /* @__PURE__ */ (0,
|
|
4828
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_radix_ui25.Select.Root, __spreadValues({ "data-slot": "select" }, props));
|
|
4928
4829
|
}
|
|
4929
4830
|
function SelectGroup(_a) {
|
|
4930
4831
|
var props = __objRest(_a, []);
|
|
4931
|
-
return /* @__PURE__ */ (0,
|
|
4832
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_radix_ui25.Select.Group, __spreadValues({ "data-slot": "select-group" }, props));
|
|
4932
4833
|
}
|
|
4933
4834
|
function SelectValue(_a) {
|
|
4934
4835
|
var props = __objRest(_a, []);
|
|
4935
|
-
return /* @__PURE__ */ (0,
|
|
4836
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_radix_ui25.Select.Value, __spreadValues({ "data-slot": "select-value" }, props));
|
|
4936
4837
|
}
|
|
4937
4838
|
function SelectTrigger(_a) {
|
|
4938
4839
|
var _b = _a, {
|
|
@@ -4944,19 +4845,19 @@ function SelectTrigger(_a) {
|
|
|
4944
4845
|
"size",
|
|
4945
4846
|
"children"
|
|
4946
4847
|
]);
|
|
4947
|
-
return /* @__PURE__ */ (0,
|
|
4948
|
-
|
|
4848
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
4849
|
+
import_radix_ui25.Select.Trigger,
|
|
4949
4850
|
__spreadProps(__spreadValues({
|
|
4950
4851
|
"data-slot": "select-trigger",
|
|
4951
4852
|
"data-size": size,
|
|
4952
4853
|
className: cn(
|
|
4953
|
-
"flex w-fit items-center justify-between gap-2 rounded-
|
|
4854
|
+
"flex w-fit items-center justify-between gap-2 rounded-sm border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
|
|
4954
4855
|
className
|
|
4955
4856
|
)
|
|
4956
4857
|
}, props), {
|
|
4957
4858
|
children: [
|
|
4958
4859
|
children,
|
|
4959
|
-
/* @__PURE__ */ (0,
|
|
4860
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_radix_ui25.Select.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react18.ChevronDownIcon, { className: "size-4 opacity-50" }) })
|
|
4960
4861
|
]
|
|
4961
4862
|
})
|
|
4962
4863
|
);
|
|
@@ -4973,12 +4874,12 @@ function SelectContent(_a) {
|
|
|
4973
4874
|
"position",
|
|
4974
4875
|
"align"
|
|
4975
4876
|
]);
|
|
4976
|
-
return /* @__PURE__ */ (0,
|
|
4977
|
-
|
|
4877
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_radix_ui25.Select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
4878
|
+
import_radix_ui25.Select.Content,
|
|
4978
4879
|
__spreadProps(__spreadValues({
|
|
4979
4880
|
"data-slot": "select-content",
|
|
4980
4881
|
className: cn(
|
|
4981
|
-
"relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-
|
|
4882
|
+
"relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-sm border bg-popover text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
4982
4883
|
position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
4983
4884
|
className
|
|
4984
4885
|
),
|
|
@@ -4986,9 +4887,9 @@ function SelectContent(_a) {
|
|
|
4986
4887
|
align
|
|
4987
4888
|
}, props), {
|
|
4988
4889
|
children: [
|
|
4989
|
-
/* @__PURE__ */ (0,
|
|
4990
|
-
/* @__PURE__ */ (0,
|
|
4991
|
-
|
|
4890
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(SelectScrollUpButton, {}),
|
|
4891
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4892
|
+
import_radix_ui25.Select.Viewport,
|
|
4992
4893
|
{
|
|
4993
4894
|
className: cn(
|
|
4994
4895
|
"p-1",
|
|
@@ -4997,7 +4898,7 @@ function SelectContent(_a) {
|
|
|
4997
4898
|
children
|
|
4998
4899
|
}
|
|
4999
4900
|
),
|
|
5000
|
-
/* @__PURE__ */ (0,
|
|
4901
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(SelectScrollDownButton, {})
|
|
5001
4902
|
]
|
|
5002
4903
|
})
|
|
5003
4904
|
) });
|
|
@@ -5008,8 +4909,8 @@ function SelectLabel(_a) {
|
|
|
5008
4909
|
} = _b, props = __objRest(_b, [
|
|
5009
4910
|
"className"
|
|
5010
4911
|
]);
|
|
5011
|
-
return /* @__PURE__ */ (0,
|
|
5012
|
-
|
|
4912
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4913
|
+
import_radix_ui25.Select.Label,
|
|
5013
4914
|
__spreadValues({
|
|
5014
4915
|
"data-slot": "select-label",
|
|
5015
4916
|
className: cn("px-2 py-1.5 text-xs text-muted-foreground", className)
|
|
@@ -5024,8 +4925,8 @@ function SelectItem(_a) {
|
|
|
5024
4925
|
"className",
|
|
5025
4926
|
"children"
|
|
5026
4927
|
]);
|
|
5027
|
-
return /* @__PURE__ */ (0,
|
|
5028
|
-
|
|
4928
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
4929
|
+
import_radix_ui25.Select.Item,
|
|
5029
4930
|
__spreadProps(__spreadValues({
|
|
5030
4931
|
"data-slot": "select-item",
|
|
5031
4932
|
className: cn(
|
|
@@ -5034,15 +4935,15 @@ function SelectItem(_a) {
|
|
|
5034
4935
|
)
|
|
5035
4936
|
}, props), {
|
|
5036
4937
|
children: [
|
|
5037
|
-
/* @__PURE__ */ (0,
|
|
4938
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5038
4939
|
"span",
|
|
5039
4940
|
{
|
|
5040
4941
|
"data-slot": "select-item-indicator",
|
|
5041
4942
|
className: "absolute right-2 flex size-3.5 items-center justify-center",
|
|
5042
|
-
children: /* @__PURE__ */ (0,
|
|
4943
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_radix_ui25.Select.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react18.CheckIcon, { className: "size-4" }) })
|
|
5043
4944
|
}
|
|
5044
4945
|
),
|
|
5045
|
-
/* @__PURE__ */ (0,
|
|
4946
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_radix_ui25.Select.ItemText, { children })
|
|
5046
4947
|
]
|
|
5047
4948
|
})
|
|
5048
4949
|
);
|
|
@@ -5053,8 +4954,8 @@ function SelectSeparator(_a) {
|
|
|
5053
4954
|
} = _b, props = __objRest(_b, [
|
|
5054
4955
|
"className"
|
|
5055
4956
|
]);
|
|
5056
|
-
return /* @__PURE__ */ (0,
|
|
5057
|
-
|
|
4957
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4958
|
+
import_radix_ui25.Select.Separator,
|
|
5058
4959
|
__spreadValues({
|
|
5059
4960
|
"data-slot": "select-separator",
|
|
5060
4961
|
className: cn("pointer-events-none -mx-1 my-1 h-px bg-border", className)
|
|
@@ -5067,8 +4968,8 @@ function SelectScrollUpButton(_a) {
|
|
|
5067
4968
|
} = _b, props = __objRest(_b, [
|
|
5068
4969
|
"className"
|
|
5069
4970
|
]);
|
|
5070
|
-
return /* @__PURE__ */ (0,
|
|
5071
|
-
|
|
4971
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4972
|
+
import_radix_ui25.Select.ScrollUpButton,
|
|
5072
4973
|
__spreadProps(__spreadValues({
|
|
5073
4974
|
"data-slot": "select-scroll-up-button",
|
|
5074
4975
|
className: cn(
|
|
@@ -5076,7 +4977,7 @@ function SelectScrollUpButton(_a) {
|
|
|
5076
4977
|
className
|
|
5077
4978
|
)
|
|
5078
4979
|
}, props), {
|
|
5079
|
-
children: /* @__PURE__ */ (0,
|
|
4980
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react18.ChevronUpIcon, { className: "size-4" })
|
|
5080
4981
|
})
|
|
5081
4982
|
);
|
|
5082
4983
|
}
|
|
@@ -5086,8 +4987,8 @@ function SelectScrollDownButton(_a) {
|
|
|
5086
4987
|
} = _b, props = __objRest(_b, [
|
|
5087
4988
|
"className"
|
|
5088
4989
|
]);
|
|
5089
|
-
return /* @__PURE__ */ (0,
|
|
5090
|
-
|
|
4990
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4991
|
+
import_radix_ui25.Select.ScrollDownButton,
|
|
5091
4992
|
__spreadProps(__spreadValues({
|
|
5092
4993
|
"data-slot": "select-scroll-down-button",
|
|
5093
4994
|
className: cn(
|
|
@@ -5095,30 +4996,30 @@ function SelectScrollDownButton(_a) {
|
|
|
5095
4996
|
className
|
|
5096
4997
|
)
|
|
5097
4998
|
}, props), {
|
|
5098
|
-
children: /* @__PURE__ */ (0,
|
|
4999
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react18.ChevronDownIcon, { className: "size-4" })
|
|
5099
5000
|
})
|
|
5100
5001
|
);
|
|
5101
5002
|
}
|
|
5102
5003
|
|
|
5103
5004
|
// components/ui/sheet.tsx
|
|
5104
5005
|
var import_lucide_react19 = require("lucide-react");
|
|
5105
|
-
var
|
|
5106
|
-
var
|
|
5006
|
+
var import_radix_ui26 = require("radix-ui");
|
|
5007
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
5107
5008
|
function Sheet(_a) {
|
|
5108
5009
|
var props = __objRest(_a, []);
|
|
5109
|
-
return /* @__PURE__ */ (0,
|
|
5010
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_radix_ui26.Dialog.Root, __spreadValues({ "data-slot": "sheet" }, props));
|
|
5110
5011
|
}
|
|
5111
5012
|
function SheetTrigger(_a) {
|
|
5112
5013
|
var props = __objRest(_a, []);
|
|
5113
|
-
return /* @__PURE__ */ (0,
|
|
5014
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_radix_ui26.Dialog.Trigger, __spreadValues({ "data-slot": "sheet-trigger" }, props));
|
|
5114
5015
|
}
|
|
5115
5016
|
function SheetClose(_a) {
|
|
5116
5017
|
var props = __objRest(_a, []);
|
|
5117
|
-
return /* @__PURE__ */ (0,
|
|
5018
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_radix_ui26.Dialog.Close, __spreadValues({ "data-slot": "sheet-close" }, props));
|
|
5118
5019
|
}
|
|
5119
5020
|
function SheetPortal(_a) {
|
|
5120
5021
|
var props = __objRest(_a, []);
|
|
5121
|
-
return /* @__PURE__ */ (0,
|
|
5022
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_radix_ui26.Dialog.Portal, __spreadValues({ "data-slot": "sheet-portal" }, props));
|
|
5122
5023
|
}
|
|
5123
5024
|
function SheetOverlay(_a) {
|
|
5124
5025
|
var _b = _a, {
|
|
@@ -5126,12 +5027,12 @@ function SheetOverlay(_a) {
|
|
|
5126
5027
|
} = _b, props = __objRest(_b, [
|
|
5127
5028
|
"className"
|
|
5128
5029
|
]);
|
|
5129
|
-
return /* @__PURE__ */ (0,
|
|
5130
|
-
|
|
5030
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
5031
|
+
import_radix_ui26.Dialog.Overlay,
|
|
5131
5032
|
__spreadValues({
|
|
5132
5033
|
"data-slot": "sheet-overlay",
|
|
5133
5034
|
className: cn(
|
|
5134
|
-
"fixed inset-0 z-50 bg-
|
|
5035
|
+
"fixed inset-0 z-50 bg-overlay data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",
|
|
5135
5036
|
className
|
|
5136
5037
|
)
|
|
5137
5038
|
}, props)
|
|
@@ -5149,10 +5050,10 @@ function SheetContent(_a) {
|
|
|
5149
5050
|
"side",
|
|
5150
5051
|
"showCloseButton"
|
|
5151
5052
|
]);
|
|
5152
|
-
return /* @__PURE__ */ (0,
|
|
5153
|
-
/* @__PURE__ */ (0,
|
|
5154
|
-
/* @__PURE__ */ (0,
|
|
5155
|
-
|
|
5053
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(SheetPortal, { children: [
|
|
5054
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SheetOverlay, {}),
|
|
5055
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
5056
|
+
import_radix_ui26.Dialog.Content,
|
|
5156
5057
|
__spreadProps(__spreadValues({
|
|
5157
5058
|
"data-slot": "sheet-content",
|
|
5158
5059
|
className: cn(
|
|
@@ -5166,9 +5067,9 @@ function SheetContent(_a) {
|
|
|
5166
5067
|
}, props), {
|
|
5167
5068
|
children: [
|
|
5168
5069
|
children,
|
|
5169
|
-
showCloseButton && /* @__PURE__ */ (0,
|
|
5170
|
-
/* @__PURE__ */ (0,
|
|
5171
|
-
/* @__PURE__ */ (0,
|
|
5070
|
+
showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_radix_ui26.Dialog.Close, { className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background 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: [
|
|
5071
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react19.XIcon, { className: "size-4" }),
|
|
5072
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "sr-only", children: "Close" })
|
|
5172
5073
|
] })
|
|
5173
5074
|
]
|
|
5174
5075
|
})
|
|
@@ -5177,7 +5078,7 @@ function SheetContent(_a) {
|
|
|
5177
5078
|
}
|
|
5178
5079
|
function SheetHeader(_a) {
|
|
5179
5080
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5180
|
-
return /* @__PURE__ */ (0,
|
|
5081
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
5181
5082
|
"div",
|
|
5182
5083
|
__spreadValues({
|
|
5183
5084
|
"data-slot": "sheet-header",
|
|
@@ -5187,7 +5088,7 @@ function SheetHeader(_a) {
|
|
|
5187
5088
|
}
|
|
5188
5089
|
function SheetFooter(_a) {
|
|
5189
5090
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5190
|
-
return /* @__PURE__ */ (0,
|
|
5091
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
5191
5092
|
"div",
|
|
5192
5093
|
__spreadValues({
|
|
5193
5094
|
"data-slot": "sheet-footer",
|
|
@@ -5201,8 +5102,8 @@ function SheetTitle(_a) {
|
|
|
5201
5102
|
} = _b, props = __objRest(_b, [
|
|
5202
5103
|
"className"
|
|
5203
5104
|
]);
|
|
5204
|
-
return /* @__PURE__ */ (0,
|
|
5205
|
-
|
|
5105
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
5106
|
+
import_radix_ui26.Dialog.Title,
|
|
5206
5107
|
__spreadValues({
|
|
5207
5108
|
"data-slot": "sheet-title",
|
|
5208
5109
|
className: cn("font-semibold text-foreground", className)
|
|
@@ -5215,8 +5116,8 @@ function SheetDescription(_a) {
|
|
|
5215
5116
|
} = _b, props = __objRest(_b, [
|
|
5216
5117
|
"className"
|
|
5217
5118
|
]);
|
|
5218
|
-
return /* @__PURE__ */ (0,
|
|
5219
|
-
|
|
5119
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
5120
|
+
import_radix_ui26.Dialog.Description,
|
|
5220
5121
|
__spreadValues({
|
|
5221
5122
|
"data-slot": "sheet-description",
|
|
5222
5123
|
className: cn("text-sm text-muted-foreground", className)
|
|
@@ -5226,9 +5127,9 @@ function SheetDescription(_a) {
|
|
|
5226
5127
|
|
|
5227
5128
|
// components/ui/sidebar.tsx
|
|
5228
5129
|
var React8 = __toESM(require("react"), 1);
|
|
5229
|
-
var
|
|
5130
|
+
var import_class_variance_authority9 = require("class-variance-authority");
|
|
5230
5131
|
var import_lucide_react20 = require("lucide-react");
|
|
5231
|
-
var
|
|
5132
|
+
var import_radix_ui28 = require("radix-ui");
|
|
5232
5133
|
|
|
5233
5134
|
// hooks/use-mobile.ts
|
|
5234
5135
|
var React7 = __toESM(require("react"), 1);
|
|
@@ -5248,10 +5149,10 @@ function useIsMobile() {
|
|
|
5248
5149
|
}
|
|
5249
5150
|
|
|
5250
5151
|
// components/ui/skeleton.tsx
|
|
5251
|
-
var
|
|
5152
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
5252
5153
|
function Skeleton(_a) {
|
|
5253
5154
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5254
|
-
return /* @__PURE__ */ (0,
|
|
5155
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
5255
5156
|
"div",
|
|
5256
5157
|
__spreadValues({
|
|
5257
5158
|
"data-slot": "skeleton",
|
|
@@ -5261,16 +5162,16 @@ function Skeleton(_a) {
|
|
|
5261
5162
|
}
|
|
5262
5163
|
|
|
5263
5164
|
// components/ui/tooltip.tsx
|
|
5264
|
-
var
|
|
5265
|
-
var
|
|
5165
|
+
var import_radix_ui27 = require("radix-ui");
|
|
5166
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
5266
5167
|
function TooltipProvider(_a) {
|
|
5267
5168
|
var _b = _a, {
|
|
5268
5169
|
delayDuration = 0
|
|
5269
5170
|
} = _b, props = __objRest(_b, [
|
|
5270
5171
|
"delayDuration"
|
|
5271
5172
|
]);
|
|
5272
|
-
return /* @__PURE__ */ (0,
|
|
5273
|
-
|
|
5173
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
5174
|
+
import_radix_ui27.Tooltip.Provider,
|
|
5274
5175
|
__spreadValues({
|
|
5275
5176
|
"data-slot": "tooltip-provider",
|
|
5276
5177
|
delayDuration
|
|
@@ -5279,11 +5180,11 @@ function TooltipProvider(_a) {
|
|
|
5279
5180
|
}
|
|
5280
5181
|
function Tooltip2(_a) {
|
|
5281
5182
|
var props = __objRest(_a, []);
|
|
5282
|
-
return /* @__PURE__ */ (0,
|
|
5183
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_radix_ui27.Tooltip.Root, __spreadValues({ "data-slot": "tooltip" }, props));
|
|
5283
5184
|
}
|
|
5284
5185
|
function TooltipTrigger(_a) {
|
|
5285
5186
|
var props = __objRest(_a, []);
|
|
5286
|
-
return /* @__PURE__ */ (0,
|
|
5187
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_radix_ui27.Tooltip.Trigger, __spreadValues({ "data-slot": "tooltip-trigger" }, props));
|
|
5287
5188
|
}
|
|
5288
5189
|
function TooltipContent(_a) {
|
|
5289
5190
|
var _b = _a, {
|
|
@@ -5295,8 +5196,8 @@ function TooltipContent(_a) {
|
|
|
5295
5196
|
"sideOffset",
|
|
5296
5197
|
"children"
|
|
5297
5198
|
]);
|
|
5298
|
-
return /* @__PURE__ */ (0,
|
|
5299
|
-
|
|
5199
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_radix_ui27.Tooltip.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
5200
|
+
import_radix_ui27.Tooltip.Content,
|
|
5300
5201
|
__spreadProps(__spreadValues({
|
|
5301
5202
|
"data-slot": "tooltip-content",
|
|
5302
5203
|
sideOffset,
|
|
@@ -5307,14 +5208,14 @@ function TooltipContent(_a) {
|
|
|
5307
5208
|
}, props), {
|
|
5308
5209
|
children: [
|
|
5309
5210
|
children,
|
|
5310
|
-
/* @__PURE__ */ (0,
|
|
5211
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_radix_ui27.Tooltip.Arrow, { className: "z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground" })
|
|
5311
5212
|
]
|
|
5312
5213
|
})
|
|
5313
5214
|
) });
|
|
5314
5215
|
}
|
|
5315
5216
|
|
|
5316
5217
|
// components/ui/sidebar.tsx
|
|
5317
|
-
var
|
|
5218
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
5318
5219
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
5319
5220
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
5320
5221
|
var SIDEBAR_WIDTH = "16rem";
|
|
@@ -5387,7 +5288,7 @@ function SidebarProvider(_a) {
|
|
|
5387
5288
|
}),
|
|
5388
5289
|
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
5389
5290
|
);
|
|
5390
|
-
return /* @__PURE__ */ (0,
|
|
5291
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5391
5292
|
"div",
|
|
5392
5293
|
__spreadProps(__spreadValues({
|
|
5393
5294
|
"data-slot": "sidebar-wrapper",
|
|
@@ -5420,7 +5321,7 @@ function Sidebar(_a) {
|
|
|
5420
5321
|
]);
|
|
5421
5322
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
5422
5323
|
if (collapsible === "none") {
|
|
5423
|
-
return /* @__PURE__ */ (0,
|
|
5324
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5424
5325
|
"div",
|
|
5425
5326
|
__spreadProps(__spreadValues({
|
|
5426
5327
|
"data-slot": "sidebar",
|
|
@@ -5434,7 +5335,7 @@ function Sidebar(_a) {
|
|
|
5434
5335
|
);
|
|
5435
5336
|
}
|
|
5436
5337
|
if (isMobile) {
|
|
5437
|
-
return /* @__PURE__ */ (0,
|
|
5338
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Sheet, __spreadProps(__spreadValues({ open: openMobile, onOpenChange: setOpenMobile }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
5438
5339
|
SheetContent,
|
|
5439
5340
|
{
|
|
5440
5341
|
"data-sidebar": "sidebar",
|
|
@@ -5446,16 +5347,16 @@ function Sidebar(_a) {
|
|
|
5446
5347
|
},
|
|
5447
5348
|
side,
|
|
5448
5349
|
children: [
|
|
5449
|
-
/* @__PURE__ */ (0,
|
|
5450
|
-
/* @__PURE__ */ (0,
|
|
5451
|
-
/* @__PURE__ */ (0,
|
|
5350
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(SheetHeader, { className: "sr-only", children: [
|
|
5351
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SheetTitle, { children: "Sidebar" }),
|
|
5352
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SheetDescription, { children: "Displays the mobile sidebar." })
|
|
5452
5353
|
] }),
|
|
5453
|
-
/* @__PURE__ */ (0,
|
|
5354
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex h-full w-full flex-col", children })
|
|
5454
5355
|
]
|
|
5455
5356
|
}
|
|
5456
5357
|
) }));
|
|
5457
5358
|
}
|
|
5458
|
-
return /* @__PURE__ */ (0,
|
|
5359
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
5459
5360
|
"div",
|
|
5460
5361
|
{
|
|
5461
5362
|
className: "group peer hidden text-sidebar-foreground md:block",
|
|
@@ -5465,7 +5366,7 @@ function Sidebar(_a) {
|
|
|
5465
5366
|
"data-side": side,
|
|
5466
5367
|
"data-slot": "sidebar",
|
|
5467
5368
|
children: [
|
|
5468
|
-
/* @__PURE__ */ (0,
|
|
5369
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5469
5370
|
"div",
|
|
5470
5371
|
{
|
|
5471
5372
|
"data-slot": "sidebar-gap",
|
|
@@ -5477,7 +5378,7 @@ function Sidebar(_a) {
|
|
|
5477
5378
|
)
|
|
5478
5379
|
}
|
|
5479
5380
|
),
|
|
5480
|
-
/* @__PURE__ */ (0,
|
|
5381
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5481
5382
|
"div",
|
|
5482
5383
|
__spreadProps(__spreadValues({
|
|
5483
5384
|
"data-slot": "sidebar-container",
|
|
@@ -5489,7 +5390,7 @@ function Sidebar(_a) {
|
|
|
5489
5390
|
className
|
|
5490
5391
|
)
|
|
5491
5392
|
}, props), {
|
|
5492
|
-
children: /* @__PURE__ */ (0,
|
|
5393
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5493
5394
|
"div",
|
|
5494
5395
|
{
|
|
5495
5396
|
"data-sidebar": "sidebar",
|
|
@@ -5513,7 +5414,7 @@ function SidebarTrigger(_a) {
|
|
|
5513
5414
|
"onClick"
|
|
5514
5415
|
]);
|
|
5515
5416
|
const { toggleSidebar } = useSidebar();
|
|
5516
|
-
return /* @__PURE__ */ (0,
|
|
5417
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
5517
5418
|
Button,
|
|
5518
5419
|
__spreadProps(__spreadValues({
|
|
5519
5420
|
"data-sidebar": "trigger",
|
|
@@ -5527,8 +5428,8 @@ function SidebarTrigger(_a) {
|
|
|
5527
5428
|
}
|
|
5528
5429
|
}, props), {
|
|
5529
5430
|
children: [
|
|
5530
|
-
/* @__PURE__ */ (0,
|
|
5531
|
-
/* @__PURE__ */ (0,
|
|
5431
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react20.PanelLeftIcon, {}),
|
|
5432
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
5532
5433
|
]
|
|
5533
5434
|
})
|
|
5534
5435
|
);
|
|
@@ -5536,7 +5437,7 @@ function SidebarTrigger(_a) {
|
|
|
5536
5437
|
function SidebarRail(_a) {
|
|
5537
5438
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5538
5439
|
const { toggleSidebar } = useSidebar();
|
|
5539
|
-
return /* @__PURE__ */ (0,
|
|
5440
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5540
5441
|
"button",
|
|
5541
5442
|
__spreadValues({
|
|
5542
5443
|
"data-sidebar": "rail",
|
|
@@ -5559,7 +5460,7 @@ function SidebarRail(_a) {
|
|
|
5559
5460
|
}
|
|
5560
5461
|
function SidebarInset(_a) {
|
|
5561
5462
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5562
|
-
return /* @__PURE__ */ (0,
|
|
5463
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5563
5464
|
"main",
|
|
5564
5465
|
__spreadValues({
|
|
5565
5466
|
"data-slot": "sidebar-inset",
|
|
@@ -5577,7 +5478,7 @@ function SidebarInput(_a) {
|
|
|
5577
5478
|
} = _b, props = __objRest(_b, [
|
|
5578
5479
|
"className"
|
|
5579
5480
|
]);
|
|
5580
|
-
return /* @__PURE__ */ (0,
|
|
5481
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5581
5482
|
Input,
|
|
5582
5483
|
__spreadValues({
|
|
5583
5484
|
"data-slot": "sidebar-input",
|
|
@@ -5588,7 +5489,7 @@ function SidebarInput(_a) {
|
|
|
5588
5489
|
}
|
|
5589
5490
|
function SidebarHeader(_a) {
|
|
5590
5491
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5591
|
-
return /* @__PURE__ */ (0,
|
|
5492
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5592
5493
|
"div",
|
|
5593
5494
|
__spreadValues({
|
|
5594
5495
|
"data-slot": "sidebar-header",
|
|
@@ -5599,7 +5500,7 @@ function SidebarHeader(_a) {
|
|
|
5599
5500
|
}
|
|
5600
5501
|
function SidebarFooter(_a) {
|
|
5601
5502
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5602
|
-
return /* @__PURE__ */ (0,
|
|
5503
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5603
5504
|
"div",
|
|
5604
5505
|
__spreadValues({
|
|
5605
5506
|
"data-slot": "sidebar-footer",
|
|
@@ -5614,7 +5515,7 @@ function SidebarSeparator(_a) {
|
|
|
5614
5515
|
} = _b, props = __objRest(_b, [
|
|
5615
5516
|
"className"
|
|
5616
5517
|
]);
|
|
5617
|
-
return /* @__PURE__ */ (0,
|
|
5518
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5618
5519
|
Separator,
|
|
5619
5520
|
__spreadValues({
|
|
5620
5521
|
"data-slot": "sidebar-separator",
|
|
@@ -5625,7 +5526,7 @@ function SidebarSeparator(_a) {
|
|
|
5625
5526
|
}
|
|
5626
5527
|
function SidebarContent(_a) {
|
|
5627
5528
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5628
|
-
return /* @__PURE__ */ (0,
|
|
5529
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5629
5530
|
"div",
|
|
5630
5531
|
__spreadValues({
|
|
5631
5532
|
"data-slot": "sidebar-content",
|
|
@@ -5639,7 +5540,7 @@ function SidebarContent(_a) {
|
|
|
5639
5540
|
}
|
|
5640
5541
|
function SidebarGroup(_a) {
|
|
5641
5542
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5642
|
-
return /* @__PURE__ */ (0,
|
|
5543
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5643
5544
|
"div",
|
|
5644
5545
|
__spreadValues({
|
|
5645
5546
|
"data-slot": "sidebar-group",
|
|
@@ -5656,8 +5557,8 @@ function SidebarGroupLabel(_a) {
|
|
|
5656
5557
|
"className",
|
|
5657
5558
|
"asChild"
|
|
5658
5559
|
]);
|
|
5659
|
-
const Comp = asChild ?
|
|
5660
|
-
return /* @__PURE__ */ (0,
|
|
5560
|
+
const Comp = asChild ? import_radix_ui28.Slot.Root : "div";
|
|
5561
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5661
5562
|
Comp,
|
|
5662
5563
|
__spreadValues({
|
|
5663
5564
|
"data-slot": "sidebar-group-label",
|
|
@@ -5678,8 +5579,8 @@ function SidebarGroupAction(_a) {
|
|
|
5678
5579
|
"className",
|
|
5679
5580
|
"asChild"
|
|
5680
5581
|
]);
|
|
5681
|
-
const Comp = asChild ?
|
|
5682
|
-
return /* @__PURE__ */ (0,
|
|
5582
|
+
const Comp = asChild ? import_radix_ui28.Slot.Root : "button";
|
|
5583
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5683
5584
|
Comp,
|
|
5684
5585
|
__spreadValues({
|
|
5685
5586
|
"data-slot": "sidebar-group-action",
|
|
@@ -5700,7 +5601,7 @@ function SidebarGroupContent(_a) {
|
|
|
5700
5601
|
} = _b, props = __objRest(_b, [
|
|
5701
5602
|
"className"
|
|
5702
5603
|
]);
|
|
5703
|
-
return /* @__PURE__ */ (0,
|
|
5604
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5704
5605
|
"div",
|
|
5705
5606
|
__spreadValues({
|
|
5706
5607
|
"data-slot": "sidebar-group-content",
|
|
@@ -5711,7 +5612,7 @@ function SidebarGroupContent(_a) {
|
|
|
5711
5612
|
}
|
|
5712
5613
|
function SidebarMenu(_a) {
|
|
5713
5614
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5714
|
-
return /* @__PURE__ */ (0,
|
|
5615
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5715
5616
|
"ul",
|
|
5716
5617
|
__spreadValues({
|
|
5717
5618
|
"data-slot": "sidebar-menu",
|
|
@@ -5722,7 +5623,7 @@ function SidebarMenu(_a) {
|
|
|
5722
5623
|
}
|
|
5723
5624
|
function SidebarMenuItem(_a) {
|
|
5724
5625
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5725
|
-
return /* @__PURE__ */ (0,
|
|
5626
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5726
5627
|
"li",
|
|
5727
5628
|
__spreadValues({
|
|
5728
5629
|
"data-slot": "sidebar-menu-item",
|
|
@@ -5731,13 +5632,13 @@ function SidebarMenuItem(_a) {
|
|
|
5731
5632
|
}, props)
|
|
5732
5633
|
);
|
|
5733
5634
|
}
|
|
5734
|
-
var sidebarMenuButtonVariants = (0,
|
|
5635
|
+
var sidebarMenuButtonVariants = (0, import_class_variance_authority9.cva)(
|
|
5735
5636
|
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left 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-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
5736
5637
|
{
|
|
5737
5638
|
variants: {
|
|
5738
5639
|
variant: {
|
|
5739
5640
|
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
5740
|
-
outline: "bg-background
|
|
5641
|
+
outline: "bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"
|
|
5741
5642
|
},
|
|
5742
5643
|
size: {
|
|
5743
5644
|
default: "h-8 text-sm",
|
|
@@ -5767,9 +5668,9 @@ function SidebarMenuButton(_a) {
|
|
|
5767
5668
|
"tooltip",
|
|
5768
5669
|
"className"
|
|
5769
5670
|
]);
|
|
5770
|
-
const Comp = asChild ?
|
|
5671
|
+
const Comp = asChild ? import_radix_ui28.Slot.Root : "button";
|
|
5771
5672
|
const { isMobile, state } = useSidebar();
|
|
5772
|
-
const button = /* @__PURE__ */ (0,
|
|
5673
|
+
const button = /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5773
5674
|
Comp,
|
|
5774
5675
|
__spreadValues({
|
|
5775
5676
|
"data-slot": "sidebar-menu-button",
|
|
@@ -5787,9 +5688,9 @@ function SidebarMenuButton(_a) {
|
|
|
5787
5688
|
children: tooltip
|
|
5788
5689
|
};
|
|
5789
5690
|
}
|
|
5790
|
-
return /* @__PURE__ */ (0,
|
|
5791
|
-
/* @__PURE__ */ (0,
|
|
5792
|
-
/* @__PURE__ */ (0,
|
|
5691
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(Tooltip2, { children: [
|
|
5692
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TooltipTrigger, { asChild: true, children: button }),
|
|
5693
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5793
5694
|
TooltipContent,
|
|
5794
5695
|
__spreadValues({
|
|
5795
5696
|
side: "right",
|
|
@@ -5809,8 +5710,8 @@ function SidebarMenuAction(_a) {
|
|
|
5809
5710
|
"asChild",
|
|
5810
5711
|
"showOnHover"
|
|
5811
5712
|
]);
|
|
5812
|
-
const Comp = asChild ?
|
|
5813
|
-
return /* @__PURE__ */ (0,
|
|
5713
|
+
const Comp = asChild ? import_radix_ui28.Slot.Root : "button";
|
|
5714
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5814
5715
|
Comp,
|
|
5815
5716
|
__spreadValues({
|
|
5816
5717
|
"data-slot": "sidebar-menu-action",
|
|
@@ -5835,7 +5736,7 @@ function SidebarMenuBadge(_a) {
|
|
|
5835
5736
|
} = _b, props = __objRest(_b, [
|
|
5836
5737
|
"className"
|
|
5837
5738
|
]);
|
|
5838
|
-
return /* @__PURE__ */ (0,
|
|
5739
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5839
5740
|
"div",
|
|
5840
5741
|
__spreadValues({
|
|
5841
5742
|
"data-slot": "sidebar-menu-badge",
|
|
@@ -5863,7 +5764,7 @@ function SidebarMenuSkeleton(_a) {
|
|
|
5863
5764
|
const width = React8.useMemo(() => {
|
|
5864
5765
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
5865
5766
|
}, []);
|
|
5866
|
-
return /* @__PURE__ */ (0,
|
|
5767
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
5867
5768
|
"div",
|
|
5868
5769
|
__spreadProps(__spreadValues({
|
|
5869
5770
|
"data-slot": "sidebar-menu-skeleton",
|
|
@@ -5871,14 +5772,14 @@ function SidebarMenuSkeleton(_a) {
|
|
|
5871
5772
|
className: cn("flex h-8 items-center gap-2 rounded-md px-2", className)
|
|
5872
5773
|
}, props), {
|
|
5873
5774
|
children: [
|
|
5874
|
-
showIcon && /* @__PURE__ */ (0,
|
|
5775
|
+
showIcon && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5875
5776
|
Skeleton,
|
|
5876
5777
|
{
|
|
5877
5778
|
className: "size-4 rounded-md",
|
|
5878
5779
|
"data-sidebar": "menu-skeleton-icon"
|
|
5879
5780
|
}
|
|
5880
5781
|
),
|
|
5881
|
-
/* @__PURE__ */ (0,
|
|
5782
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5882
5783
|
Skeleton,
|
|
5883
5784
|
{
|
|
5884
5785
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
@@ -5894,7 +5795,7 @@ function SidebarMenuSkeleton(_a) {
|
|
|
5894
5795
|
}
|
|
5895
5796
|
function SidebarMenuSub(_a) {
|
|
5896
5797
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5897
|
-
return /* @__PURE__ */ (0,
|
|
5798
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5898
5799
|
"ul",
|
|
5899
5800
|
__spreadValues({
|
|
5900
5801
|
"data-slot": "sidebar-menu-sub",
|
|
@@ -5913,7 +5814,7 @@ function SidebarMenuSubItem(_a) {
|
|
|
5913
5814
|
} = _b, props = __objRest(_b, [
|
|
5914
5815
|
"className"
|
|
5915
5816
|
]);
|
|
5916
|
-
return /* @__PURE__ */ (0,
|
|
5817
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5917
5818
|
"li",
|
|
5918
5819
|
__spreadValues({
|
|
5919
5820
|
"data-slot": "sidebar-menu-sub-item",
|
|
@@ -5934,8 +5835,8 @@ function SidebarMenuSubButton(_a) {
|
|
|
5934
5835
|
"isActive",
|
|
5935
5836
|
"className"
|
|
5936
5837
|
]);
|
|
5937
|
-
const Comp = asChild ?
|
|
5938
|
-
return /* @__PURE__ */ (0,
|
|
5838
|
+
const Comp = asChild ? import_radix_ui28.Slot.Root : "a";
|
|
5839
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5939
5840
|
Comp,
|
|
5940
5841
|
__spreadValues({
|
|
5941
5842
|
"data-slot": "sidebar-menu-sub-button",
|
|
@@ -5956,8 +5857,8 @@ function SidebarMenuSubButton(_a) {
|
|
|
5956
5857
|
|
|
5957
5858
|
// components/ui/slider.tsx
|
|
5958
5859
|
var React9 = __toESM(require("react"), 1);
|
|
5959
|
-
var
|
|
5960
|
-
var
|
|
5860
|
+
var import_radix_ui29 = require("radix-ui");
|
|
5861
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
5961
5862
|
function Slider(_a) {
|
|
5962
5863
|
var _b = _a, {
|
|
5963
5864
|
className,
|
|
@@ -5976,8 +5877,8 @@ function Slider(_a) {
|
|
|
5976
5877
|
() => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
|
|
5977
5878
|
[value, defaultValue, min, max]
|
|
5978
5879
|
);
|
|
5979
|
-
return /* @__PURE__ */ (0,
|
|
5980
|
-
|
|
5880
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
5881
|
+
import_radix_ui29.Slider.Root,
|
|
5981
5882
|
__spreadProps(__spreadValues({
|
|
5982
5883
|
"data-slot": "slider",
|
|
5983
5884
|
defaultValue,
|
|
@@ -5990,15 +5891,15 @@ function Slider(_a) {
|
|
|
5990
5891
|
)
|
|
5991
5892
|
}, props), {
|
|
5992
5893
|
children: [
|
|
5993
|
-
/* @__PURE__ */ (0,
|
|
5994
|
-
|
|
5894
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5895
|
+
import_radix_ui29.Slider.Track,
|
|
5995
5896
|
{
|
|
5996
5897
|
"data-slot": "slider-track",
|
|
5997
5898
|
className: cn(
|
|
5998
5899
|
"relative grow overflow-hidden rounded-full bg-muted data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"
|
|
5999
5900
|
),
|
|
6000
|
-
children: /* @__PURE__ */ (0,
|
|
6001
|
-
|
|
5901
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5902
|
+
import_radix_ui29.Slider.Range,
|
|
6002
5903
|
{
|
|
6003
5904
|
"data-slot": "slider-range",
|
|
6004
5905
|
className: cn(
|
|
@@ -6008,11 +5909,11 @@ function Slider(_a) {
|
|
|
6008
5909
|
)
|
|
6009
5910
|
}
|
|
6010
5911
|
),
|
|
6011
|
-
Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ (0,
|
|
6012
|
-
|
|
5912
|
+
Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5913
|
+
import_radix_ui29.Slider.Thumb,
|
|
6013
5914
|
{
|
|
6014
5915
|
"data-slot": "slider-thumb",
|
|
6015
|
-
className: "block size-4 shrink-0 rounded-full border border-primary bg-
|
|
5916
|
+
className: "block size-4 shrink-0 rounded-full border border-primary bg-background shadow-sm ring-ring/50 transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
|
|
6016
5917
|
},
|
|
6017
5918
|
index
|
|
6018
5919
|
))
|
|
@@ -6025,21 +5926,21 @@ function Slider(_a) {
|
|
|
6025
5926
|
var import_lucide_react21 = require("lucide-react");
|
|
6026
5927
|
var import_next_themes = require("next-themes");
|
|
6027
5928
|
var import_sonner = require("sonner");
|
|
6028
|
-
var
|
|
5929
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
6029
5930
|
var Toaster = (_a) => {
|
|
6030
5931
|
var props = __objRest(_a, []);
|
|
6031
5932
|
const { theme = "system" } = (0, import_next_themes.useTheme)();
|
|
6032
|
-
return /* @__PURE__ */ (0,
|
|
5933
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
6033
5934
|
import_sonner.Toaster,
|
|
6034
5935
|
__spreadValues({
|
|
6035
5936
|
theme,
|
|
6036
5937
|
className: "toaster group",
|
|
6037
5938
|
icons: {
|
|
6038
|
-
success: /* @__PURE__ */ (0,
|
|
6039
|
-
info: /* @__PURE__ */ (0,
|
|
6040
|
-
warning: /* @__PURE__ */ (0,
|
|
6041
|
-
error: /* @__PURE__ */ (0,
|
|
6042
|
-
loading: /* @__PURE__ */ (0,
|
|
5939
|
+
success: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_lucide_react21.CircleCheckIcon, { className: "size-4" }),
|
|
5940
|
+
info: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_lucide_react21.InfoIcon, { className: "size-4" }),
|
|
5941
|
+
warning: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_lucide_react21.TriangleAlertIcon, { className: "size-4" }),
|
|
5942
|
+
error: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_lucide_react21.OctagonXIcon, { className: "size-4" }),
|
|
5943
|
+
loading: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_lucide_react21.Loader2Icon, { className: "size-4 animate-spin" })
|
|
6043
5944
|
},
|
|
6044
5945
|
style: {
|
|
6045
5946
|
"--normal-bg": "var(--popover)",
|
|
@@ -6053,22 +5954,22 @@ var Toaster = (_a) => {
|
|
|
6053
5954
|
|
|
6054
5955
|
// components/ui/spinner.tsx
|
|
6055
5956
|
var import_lucide_react22 = require("lucide-react");
|
|
6056
|
-
var
|
|
5957
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
6057
5958
|
function Spinner(_a) {
|
|
6058
5959
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6059
|
-
return /* @__PURE__ */ (0,
|
|
5960
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
6060
5961
|
import_lucide_react22.Loader2Icon,
|
|
6061
5962
|
__spreadValues({
|
|
6062
5963
|
role: "status",
|
|
6063
5964
|
"aria-label": "Loading",
|
|
6064
|
-
className: cn("size-4 animate-spin", className)
|
|
5965
|
+
className: cn("size-4 animate-spin text-primary", className)
|
|
6065
5966
|
}, props)
|
|
6066
5967
|
);
|
|
6067
5968
|
}
|
|
6068
5969
|
|
|
6069
5970
|
// components/ui/switch.tsx
|
|
6070
|
-
var
|
|
6071
|
-
var
|
|
5971
|
+
var import_radix_ui30 = require("radix-ui");
|
|
5972
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
6072
5973
|
function Switch(_a) {
|
|
6073
5974
|
var _b = _a, {
|
|
6074
5975
|
className,
|
|
@@ -6077,22 +5978,22 @@ function Switch(_a) {
|
|
|
6077
5978
|
"className",
|
|
6078
5979
|
"size"
|
|
6079
5980
|
]);
|
|
6080
|
-
return /* @__PURE__ */ (0,
|
|
6081
|
-
|
|
5981
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5982
|
+
import_radix_ui30.Switch.Root,
|
|
6082
5983
|
__spreadProps(__spreadValues({
|
|
6083
5984
|
"data-slot": "switch",
|
|
6084
5985
|
"data-size": size,
|
|
6085
5986
|
className: cn(
|
|
6086
|
-
"peer group/switch inline-flex shrink-0 items-center rounded-
|
|
5987
|
+
"peer group/switch inline-flex shrink-0 items-center rounded-xs border border-transparent shadow-xs transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80",
|
|
6087
5988
|
className
|
|
6088
5989
|
)
|
|
6089
5990
|
}, props), {
|
|
6090
|
-
children: /* @__PURE__ */ (0,
|
|
6091
|
-
|
|
5991
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5992
|
+
import_radix_ui30.Switch.Thumb,
|
|
6092
5993
|
{
|
|
6093
5994
|
"data-slot": "switch-thumb",
|
|
6094
5995
|
className: cn(
|
|
6095
|
-
"pointer-events-none block rounded-
|
|
5996
|
+
"pointer-events-none block rounded-2xs bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground"
|
|
6096
5997
|
)
|
|
6097
5998
|
}
|
|
6098
5999
|
)
|
|
@@ -6101,15 +6002,15 @@ function Switch(_a) {
|
|
|
6101
6002
|
}
|
|
6102
6003
|
|
|
6103
6004
|
// components/ui/table.tsx
|
|
6104
|
-
var
|
|
6005
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
6105
6006
|
function Table(_a) {
|
|
6106
6007
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6107
|
-
return /* @__PURE__ */ (0,
|
|
6008
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6108
6009
|
"div",
|
|
6109
6010
|
{
|
|
6110
6011
|
"data-slot": "table-container",
|
|
6111
6012
|
className: "relative w-full overflow-x-auto",
|
|
6112
|
-
children: /* @__PURE__ */ (0,
|
|
6013
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6113
6014
|
"table",
|
|
6114
6015
|
__spreadValues({
|
|
6115
6016
|
"data-slot": "table",
|
|
@@ -6121,7 +6022,7 @@ function Table(_a) {
|
|
|
6121
6022
|
}
|
|
6122
6023
|
function TableHeader(_a) {
|
|
6123
6024
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6124
|
-
return /* @__PURE__ */ (0,
|
|
6025
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6125
6026
|
"thead",
|
|
6126
6027
|
__spreadValues({
|
|
6127
6028
|
"data-slot": "table-header",
|
|
@@ -6131,7 +6032,7 @@ function TableHeader(_a) {
|
|
|
6131
6032
|
}
|
|
6132
6033
|
function TableBody(_a) {
|
|
6133
6034
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6134
|
-
return /* @__PURE__ */ (0,
|
|
6035
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6135
6036
|
"tbody",
|
|
6136
6037
|
__spreadValues({
|
|
6137
6038
|
"data-slot": "table-body",
|
|
@@ -6141,7 +6042,7 @@ function TableBody(_a) {
|
|
|
6141
6042
|
}
|
|
6142
6043
|
function TableFooter(_a) {
|
|
6143
6044
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6144
|
-
return /* @__PURE__ */ (0,
|
|
6045
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6145
6046
|
"tfoot",
|
|
6146
6047
|
__spreadValues({
|
|
6147
6048
|
"data-slot": "table-footer",
|
|
@@ -6154,7 +6055,7 @@ function TableFooter(_a) {
|
|
|
6154
6055
|
}
|
|
6155
6056
|
function TableRow(_a) {
|
|
6156
6057
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6157
|
-
return /* @__PURE__ */ (0,
|
|
6058
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6158
6059
|
"tr",
|
|
6159
6060
|
__spreadValues({
|
|
6160
6061
|
"data-slot": "table-row",
|
|
@@ -6167,7 +6068,7 @@ function TableRow(_a) {
|
|
|
6167
6068
|
}
|
|
6168
6069
|
function TableHead(_a) {
|
|
6169
6070
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6170
|
-
return /* @__PURE__ */ (0,
|
|
6071
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6171
6072
|
"th",
|
|
6172
6073
|
__spreadValues({
|
|
6173
6074
|
"data-slot": "table-head",
|
|
@@ -6180,7 +6081,7 @@ function TableHead(_a) {
|
|
|
6180
6081
|
}
|
|
6181
6082
|
function TableCell(_a) {
|
|
6182
6083
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6183
|
-
return /* @__PURE__ */ (0,
|
|
6084
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6184
6085
|
"td",
|
|
6185
6086
|
__spreadValues({
|
|
6186
6087
|
"data-slot": "table-cell",
|
|
@@ -6197,7 +6098,7 @@ function TableCaption(_a) {
|
|
|
6197
6098
|
} = _b, props = __objRest(_b, [
|
|
6198
6099
|
"className"
|
|
6199
6100
|
]);
|
|
6200
|
-
return /* @__PURE__ */ (0,
|
|
6101
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6201
6102
|
"caption",
|
|
6202
6103
|
__spreadValues({
|
|
6203
6104
|
"data-slot": "table-caption",
|
|
@@ -6207,9 +6108,9 @@ function TableCaption(_a) {
|
|
|
6207
6108
|
}
|
|
6208
6109
|
|
|
6209
6110
|
// components/ui/tabs.tsx
|
|
6210
|
-
var
|
|
6211
|
-
var
|
|
6212
|
-
var
|
|
6111
|
+
var import_class_variance_authority10 = require("class-variance-authority");
|
|
6112
|
+
var import_radix_ui31 = require("radix-ui");
|
|
6113
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
6213
6114
|
function Tabs(_a) {
|
|
6214
6115
|
var _b = _a, {
|
|
6215
6116
|
className,
|
|
@@ -6218,8 +6119,8 @@ function Tabs(_a) {
|
|
|
6218
6119
|
"className",
|
|
6219
6120
|
"orientation"
|
|
6220
6121
|
]);
|
|
6221
|
-
return /* @__PURE__ */ (0,
|
|
6222
|
-
|
|
6122
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
6123
|
+
import_radix_ui31.Tabs.Root,
|
|
6223
6124
|
__spreadValues({
|
|
6224
6125
|
"data-slot": "tabs",
|
|
6225
6126
|
"data-orientation": orientation,
|
|
@@ -6231,7 +6132,7 @@ function Tabs(_a) {
|
|
|
6231
6132
|
}, props)
|
|
6232
6133
|
);
|
|
6233
6134
|
}
|
|
6234
|
-
var tabsListVariants = (0,
|
|
6135
|
+
var tabsListVariants = (0, import_class_variance_authority10.cva)(
|
|
6235
6136
|
"group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none",
|
|
6236
6137
|
{
|
|
6237
6138
|
variants: {
|
|
@@ -6253,8 +6154,8 @@ function TabsList(_a) {
|
|
|
6253
6154
|
"className",
|
|
6254
6155
|
"variant"
|
|
6255
6156
|
]);
|
|
6256
|
-
return /* @__PURE__ */ (0,
|
|
6257
|
-
|
|
6157
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
6158
|
+
import_radix_ui31.Tabs.List,
|
|
6258
6159
|
__spreadValues({
|
|
6259
6160
|
"data-slot": "tabs-list",
|
|
6260
6161
|
"data-variant": variant,
|
|
@@ -6268,8 +6169,8 @@ function TabsTrigger(_a) {
|
|
|
6268
6169
|
} = _b, props = __objRest(_b, [
|
|
6269
6170
|
"className"
|
|
6270
6171
|
]);
|
|
6271
|
-
return /* @__PURE__ */ (0,
|
|
6272
|
-
|
|
6172
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
6173
|
+
import_radix_ui31.Tabs.Trigger,
|
|
6273
6174
|
__spreadValues({
|
|
6274
6175
|
"data-slot": "tabs-trigger",
|
|
6275
6176
|
className: cn(
|
|
@@ -6288,8 +6189,8 @@ function TabsContent(_a) {
|
|
|
6288
6189
|
} = _b, props = __objRest(_b, [
|
|
6289
6190
|
"className"
|
|
6290
6191
|
]);
|
|
6291
|
-
return /* @__PURE__ */ (0,
|
|
6292
|
-
|
|
6192
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
6193
|
+
import_radix_ui31.Tabs.Content,
|
|
6293
6194
|
__spreadValues({
|
|
6294
6195
|
"data-slot": "tabs-content",
|
|
6295
6196
|
className: cn("flex-1 outline-none", className)
|
|
@@ -6298,10 +6199,10 @@ function TabsContent(_a) {
|
|
|
6298
6199
|
}
|
|
6299
6200
|
|
|
6300
6201
|
// components/ui/toggle.tsx
|
|
6301
|
-
var
|
|
6302
|
-
var
|
|
6303
|
-
var
|
|
6304
|
-
var toggleVariants = (0,
|
|
6202
|
+
var import_class_variance_authority11 = require("class-variance-authority");
|
|
6203
|
+
var import_radix_ui32 = require("radix-ui");
|
|
6204
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
6205
|
+
var toggleVariants = (0, import_class_variance_authority11.cva)(
|
|
6305
6206
|
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-muted hover:text-muted-foreground 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-accent data-[state=on]:text-accent-foreground dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
6306
6207
|
{
|
|
6307
6208
|
variants: {
|
|
@@ -6331,8 +6232,8 @@ function Toggle(_a) {
|
|
|
6331
6232
|
"variant",
|
|
6332
6233
|
"size"
|
|
6333
6234
|
]);
|
|
6334
|
-
return /* @__PURE__ */ (0,
|
|
6335
|
-
|
|
6235
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
6236
|
+
import_radix_ui32.Toggle.Root,
|
|
6336
6237
|
__spreadValues({
|
|
6337
6238
|
"data-slot": "toggle",
|
|
6338
6239
|
className: cn(toggleVariants({ variant, size, className }))
|
|
@@ -6342,8 +6243,8 @@ function Toggle(_a) {
|
|
|
6342
6243
|
|
|
6343
6244
|
// components/ui/toggle-group.tsx
|
|
6344
6245
|
var React10 = __toESM(require("react"), 1);
|
|
6345
|
-
var
|
|
6346
|
-
var
|
|
6246
|
+
var import_radix_ui33 = require("radix-ui");
|
|
6247
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
6347
6248
|
var ToggleGroupContext = React10.createContext({
|
|
6348
6249
|
size: "default",
|
|
6349
6250
|
variant: "default",
|
|
@@ -6363,8 +6264,8 @@ function ToggleGroup(_a) {
|
|
|
6363
6264
|
"spacing",
|
|
6364
6265
|
"children"
|
|
6365
6266
|
]);
|
|
6366
|
-
return /* @__PURE__ */ (0,
|
|
6367
|
-
|
|
6267
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
6268
|
+
import_radix_ui33.ToggleGroup.Root,
|
|
6368
6269
|
__spreadProps(__spreadValues({
|
|
6369
6270
|
"data-slot": "toggle-group",
|
|
6370
6271
|
"data-variant": variant,
|
|
@@ -6376,7 +6277,7 @@ function ToggleGroup(_a) {
|
|
|
6376
6277
|
className
|
|
6377
6278
|
)
|
|
6378
6279
|
}, props), {
|
|
6379
|
-
children: /* @__PURE__ */ (0,
|
|
6280
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ToggleGroupContext.Provider, { value: { variant, size, spacing }, children })
|
|
6380
6281
|
})
|
|
6381
6282
|
);
|
|
6382
6283
|
}
|
|
@@ -6393,8 +6294,8 @@ function ToggleGroupItem(_a) {
|
|
|
6393
6294
|
"size"
|
|
6394
6295
|
]);
|
|
6395
6296
|
const context = React10.useContext(ToggleGroupContext);
|
|
6396
|
-
return /* @__PURE__ */ (0,
|
|
6397
|
-
|
|
6297
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
6298
|
+
import_radix_ui33.ToggleGroup.Item,
|
|
6398
6299
|
__spreadProps(__spreadValues({
|
|
6399
6300
|
"data-slot": "toggle-group-item",
|
|
6400
6301
|
"data-variant": context.variant || variant,
|
|
@@ -6451,9 +6352,6 @@ function ToggleGroupItem(_a) {
|
|
|
6451
6352
|
BreadcrumbPage,
|
|
6452
6353
|
BreadcrumbSeparator,
|
|
6453
6354
|
Button,
|
|
6454
|
-
ButtonGroup,
|
|
6455
|
-
ButtonGroupSeparator,
|
|
6456
|
-
ButtonGroupText,
|
|
6457
6355
|
Calendar,
|
|
6458
6356
|
CalendarDayButton,
|
|
6459
6357
|
Card,
|
|
@@ -6720,7 +6618,6 @@ function ToggleGroupItem(_a) {
|
|
|
6720
6618
|
TooltipProvider,
|
|
6721
6619
|
TooltipTrigger,
|
|
6722
6620
|
badgeVariants,
|
|
6723
|
-
buttonGroupVariants,
|
|
6724
6621
|
buttonVariants,
|
|
6725
6622
|
cn,
|
|
6726
6623
|
navigationMenuTriggerStyle,
|