@pelatform/ui 1.5.2 → 1.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/default.js CHANGED
@@ -27,6 +27,15 @@ import {
27
27
  Badge,
28
28
  BadgeButton,
29
29
  BadgeDot,
30
+ Card,
31
+ CardContent,
32
+ CardDescription,
33
+ CardFooter,
34
+ CardHeader,
35
+ CardHeading,
36
+ CardTable,
37
+ CardTitle,
38
+ CardToolbar,
30
39
  Collapsible,
31
40
  CollapsibleContent,
32
41
  CollapsibleTrigger,
@@ -82,7 +91,7 @@ import {
82
91
  TooltipTrigger,
83
92
  avatarStatusVariants,
84
93
  badgeVariants
85
- } from "./chunk-TYEFU7IG.js";
94
+ } from "./chunk-CTHRAJQZ.js";
86
95
  import {
87
96
  Button,
88
97
  ButtonArrow,
@@ -803,172 +812,14 @@ function Calendar({
803
812
  );
804
813
  }
805
814
 
806
- // src/ui/default/card.tsx
807
- import * as React3 from "react";
808
- import { cva as cva4 } from "class-variance-authority";
809
- import { jsx as jsx8 } from "react/jsx-runtime";
810
- var CardContext = React3.createContext({
811
- variant: "default"
812
- // Default value
813
- });
814
- var useCardContext = () => {
815
- const context = React3.useContext(CardContext);
816
- if (!context) {
817
- throw new Error("useCardContext must be used within a Card component");
818
- }
819
- return context;
820
- };
821
- var cardVariants = cva4("flex flex-col items-stretch text-card-foreground rounded-xl", {
822
- variants: {
823
- variant: {
824
- default: "bg-card border border-border shadow-xs black/5",
825
- accent: "bg-muted shadow-xs p-1"
826
- }
827
- },
828
- defaultVariants: {
829
- variant: "default"
830
- }
831
- });
832
- var cardHeaderVariants = cva4(
833
- "flex items-center justify-between flex-wrap px-5 min-h-14 gap-2.5",
834
- {
835
- variants: {
836
- variant: {
837
- default: "border-b border-border",
838
- accent: ""
839
- }
840
- },
841
- defaultVariants: {
842
- variant: "default"
843
- }
844
- }
845
- );
846
- var cardContentVariants = cva4("grow p-5", {
847
- variants: {
848
- variant: {
849
- default: "",
850
- accent: "bg-card rounded-t-xl last:rounded-b-xl"
851
- }
852
- },
853
- defaultVariants: {
854
- variant: "default"
855
- }
856
- });
857
- var cardTableVariants = cva4("grid grow", {
858
- variants: {
859
- variant: {
860
- default: "",
861
- accent: "bg-card rounded-xl"
862
- }
863
- },
864
- defaultVariants: {
865
- variant: "default"
866
- }
867
- });
868
- var cardFooterVariants = cva4("flex items-center px-5 min-h-14", {
869
- variants: {
870
- variant: {
871
- default: "border-t border-border",
872
- accent: "bg-card rounded-b-xl mt-[2px]"
873
- }
874
- },
875
- defaultVariants: {
876
- variant: "default"
877
- }
878
- });
879
- function Card({
880
- className,
881
- variant = "default",
882
- ...props
883
- }) {
884
- return /* @__PURE__ */ jsx8(CardContext.Provider, { value: { variant: variant || "default" }, children: /* @__PURE__ */ jsx8("div", { "data-slot": "card", className: cn(cardVariants({ variant }), className), ...props }) });
885
- }
886
- function CardHeader({ className, ...props }) {
887
- const { variant } = useCardContext();
888
- return /* @__PURE__ */ jsx8(
889
- "div",
890
- {
891
- "data-slot": "card-header",
892
- className: cn(cardHeaderVariants({ variant }), className),
893
- ...props
894
- }
895
- );
896
- }
897
- function CardContent({ className, ...props }) {
898
- const { variant } = useCardContext();
899
- return /* @__PURE__ */ jsx8(
900
- "div",
901
- {
902
- "data-slot": "card-content",
903
- className: cn(cardContentVariants({ variant }), className),
904
- ...props
905
- }
906
- );
907
- }
908
- function CardTable({ className, ...props }) {
909
- const { variant } = useCardContext();
910
- return /* @__PURE__ */ jsx8(
911
- "div",
912
- {
913
- "data-slot": "card-table",
914
- className: cn(cardTableVariants({ variant }), className),
915
- ...props
916
- }
917
- );
918
- }
919
- function CardFooter({ className, ...props }) {
920
- const { variant } = useCardContext();
921
- return /* @__PURE__ */ jsx8(
922
- "div",
923
- {
924
- "data-slot": "card-footer",
925
- className: cn(cardFooterVariants({ variant }), className),
926
- ...props
927
- }
928
- );
929
- }
930
- function CardHeading({ className, ...props }) {
931
- return /* @__PURE__ */ jsx8("div", { "data-slot": "card-heading", className: cn("space-y-1", className), ...props });
932
- }
933
- function CardToolbar({ className, ...props }) {
934
- return /* @__PURE__ */ jsx8(
935
- "div",
936
- {
937
- "data-slot": "card-toolbar",
938
- className: cn("flex items-center gap-2.5", className),
939
- ...props
940
- }
941
- );
942
- }
943
- function CardTitle({ className, ...props }) {
944
- return /* @__PURE__ */ jsx8(
945
- "h3",
946
- {
947
- "data-slot": "card-title",
948
- className: cn("font-semibold text-base leading-none tracking-tight", className),
949
- ...props
950
- }
951
- );
952
- }
953
- function CardDescription({ className, ...props }) {
954
- return /* @__PURE__ */ jsx8(
955
- "div",
956
- {
957
- "data-slot": "card-description",
958
- className: cn("text-muted-foreground text-sm", className),
959
- ...props
960
- }
961
- );
962
- }
963
-
964
815
  // src/ui/default/carousel.tsx
965
- import * as React4 from "react";
816
+ import * as React3 from "react";
966
817
  import useEmblaCarousel from "embla-carousel-react";
967
818
  import { ArrowLeft, ArrowRight } from "lucide-react";
968
- import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
969
- var CarouselContext = React4.createContext(null);
819
+ import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
820
+ var CarouselContext = React3.createContext(null);
970
821
  function useCarousel() {
971
- const context = React4.useContext(CarouselContext);
822
+ const context = React3.useContext(CarouselContext);
972
823
  if (!context) {
973
824
  throw new Error("useCarousel must be used within a <Carousel />");
974
825
  }
@@ -990,20 +841,20 @@ function Carousel({
990
841
  },
991
842
  plugins
992
843
  );
993
- const [canScrollPrev, setCanScrollPrev] = React4.useState(false);
994
- const [canScrollNext, setCanScrollNext] = React4.useState(false);
995
- const onSelect = React4.useCallback((api2) => {
844
+ const [canScrollPrev, setCanScrollPrev] = React3.useState(false);
845
+ const [canScrollNext, setCanScrollNext] = React3.useState(false);
846
+ const onSelect = React3.useCallback((api2) => {
996
847
  if (!api2) return;
997
848
  setCanScrollPrev(api2.canScrollPrev());
998
849
  setCanScrollNext(api2.canScrollNext());
999
850
  }, []);
1000
- const scrollPrev = React4.useCallback(() => {
851
+ const scrollPrev = React3.useCallback(() => {
1001
852
  api?.scrollPrev();
1002
853
  }, [api]);
1003
- const scrollNext = React4.useCallback(() => {
854
+ const scrollNext = React3.useCallback(() => {
1004
855
  api?.scrollNext();
1005
856
  }, [api]);
1006
- const handleKeyDown = React4.useCallback(
857
+ const handleKeyDown = React3.useCallback(
1007
858
  (event) => {
1008
859
  if (event.key === "ArrowLeft") {
1009
860
  event.preventDefault();
@@ -1015,11 +866,11 @@ function Carousel({
1015
866
  },
1016
867
  [scrollPrev, scrollNext]
1017
868
  );
1018
- React4.useEffect(() => {
869
+ React3.useEffect(() => {
1019
870
  if (!api || !setApi) return;
1020
871
  setApi(api);
1021
872
  }, [api, setApi]);
1022
- React4.useEffect(() => {
873
+ React3.useEffect(() => {
1023
874
  if (!api) return;
1024
875
  onSelect(api);
1025
876
  api.on("reInit", onSelect);
@@ -1028,7 +879,7 @@ function Carousel({
1028
879
  api?.off("select", onSelect);
1029
880
  };
1030
881
  }, [api, onSelect]);
1031
- return /* @__PURE__ */ jsx9(
882
+ return /* @__PURE__ */ jsx8(
1032
883
  CarouselContext.Provider,
1033
884
  {
1034
885
  value: {
@@ -1041,7 +892,7 @@ function Carousel({
1041
892
  canScrollPrev,
1042
893
  canScrollNext
1043
894
  },
1044
- children: /* @__PURE__ */ jsx9(
895
+ children: /* @__PURE__ */ jsx8(
1045
896
  "div",
1046
897
  {
1047
898
  onKeyDownCapture: handleKeyDown,
@@ -1058,7 +909,7 @@ function Carousel({
1058
909
  }
1059
910
  function CarouselContent({ className, ...props }) {
1060
911
  const { carouselRef, orientation } = useCarousel();
1061
- return /* @__PURE__ */ jsx9("div", { ref: carouselRef, className: "overflow-hidden", "data-slot": "carousel-content", children: /* @__PURE__ */ jsx9(
912
+ return /* @__PURE__ */ jsx8("div", { ref: carouselRef, className: "overflow-hidden", "data-slot": "carousel-content", children: /* @__PURE__ */ jsx8(
1062
913
  "div",
1063
914
  {
1064
915
  className: cn("flex", orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col", className),
@@ -1068,7 +919,7 @@ function CarouselContent({ className, ...props }) {
1068
919
  }
1069
920
  function CarouselItem({ className, ...props }) {
1070
921
  const { orientation } = useCarousel();
1071
- return /* @__PURE__ */ jsx9(
922
+ return /* @__PURE__ */ jsx8(
1072
923
  "div",
1073
924
  {
1074
925
  role: "group",
@@ -1105,8 +956,8 @@ function CarouselPrevious({
1105
956
  onClick: scrollPrev,
1106
957
  ...props,
1107
958
  children: [
1108
- /* @__PURE__ */ jsx9(ArrowLeft, {}),
1109
- /* @__PURE__ */ jsx9("span", { className: "sr-only", children: "Previous slide" })
959
+ /* @__PURE__ */ jsx8(ArrowLeft, {}),
960
+ /* @__PURE__ */ jsx8("span", { className: "sr-only", children: "Previous slide" })
1110
961
  ]
1111
962
  }
1112
963
  );
@@ -1133,19 +984,19 @@ function CarouselNext({
1133
984
  onClick: scrollNext,
1134
985
  ...props,
1135
986
  children: [
1136
- /* @__PURE__ */ jsx9(ArrowRight, {}),
1137
- /* @__PURE__ */ jsx9("span", { className: "sr-only", children: "Next slide" })
987
+ /* @__PURE__ */ jsx8(ArrowRight, {}),
988
+ /* @__PURE__ */ jsx8("span", { className: "sr-only", children: "Next slide" })
1138
989
  ]
1139
990
  }
1140
991
  );
1141
992
  }
1142
993
 
1143
994
  // src/ui/default/checkbox.tsx
1144
- import { cva as cva5 } from "class-variance-authority";
995
+ import { cva as cva4 } from "class-variance-authority";
1145
996
  import { Check, Minus } from "lucide-react";
1146
997
  import { Checkbox as CheckboxPrimitive } from "radix-ui";
1147
- import { jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
1148
- var checkboxVariants = cva5(
998
+ import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
999
+ var checkboxVariants = cva4(
1149
1000
  `
1150
1001
  group peer bg-background shrink-0 rounded-md border border-input ring-offset-background focus-visible:outline-none
1151
1002
  focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50
@@ -1171,26 +1022,26 @@ function Checkbox({
1171
1022
  size,
1172
1023
  ...props
1173
1024
  }) {
1174
- return /* @__PURE__ */ jsx10(
1025
+ return /* @__PURE__ */ jsx9(
1175
1026
  CheckboxPrimitive.Root,
1176
1027
  {
1177
1028
  "data-slot": "checkbox",
1178
1029
  className: cn(checkboxVariants({ size }), className),
1179
1030
  ...props,
1180
1031
  children: /* @__PURE__ */ jsxs5(CheckboxPrimitive.Indicator, { className: cn("flex items-center justify-center text-current"), children: [
1181
- /* @__PURE__ */ jsx10(Check, { className: "group-data-[state=indeterminate]:hidden" }),
1182
- /* @__PURE__ */ jsx10(Minus, { className: "hidden group-data-[state=indeterminate]:block" })
1032
+ /* @__PURE__ */ jsx9(Check, { className: "group-data-[state=indeterminate]:hidden" }),
1033
+ /* @__PURE__ */ jsx9(Minus, { className: "hidden group-data-[state=indeterminate]:block" })
1183
1034
  ] })
1184
1035
  }
1185
1036
  );
1186
1037
  }
1187
1038
 
1188
1039
  // src/ui/default/code.tsx
1189
- import { cva as cva6 } from "class-variance-authority";
1040
+ import { cva as cva5 } from "class-variance-authority";
1190
1041
  import { Check as Check2, Copy } from "lucide-react";
1191
1042
  import { Slot as SlotPrimitive2 } from "radix-ui";
1192
- import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
1193
- var codeVariants = cva6("relative rounded-md bg-muted font-mono text-sm font-medium", {
1043
+ import { jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
1044
+ var codeVariants = cva5("relative rounded-md bg-muted font-mono text-sm font-medium", {
1194
1045
  variants: {
1195
1046
  variant: {
1196
1047
  default: "bg-muted text-muted-foreground",
@@ -1222,8 +1073,8 @@ function Code({
1222
1073
  const Comp = asChild ? SlotPrimitive2.Slot : "code";
1223
1074
  const textToCopy = copyText || (typeof children === "string" ? children : "");
1224
1075
  return /* @__PURE__ */ jsxs6("span", { className: cn("inline-flex items-center gap-2", className), "data-slot": "code", children: [
1225
- /* @__PURE__ */ jsx11(Comp, { "data-slot": "code-panel", className: cn(codeVariants({ variant, size })), ...props, children }),
1226
- showCopyButton && textToCopy && /* @__PURE__ */ jsx11(
1076
+ /* @__PURE__ */ jsx10(Comp, { "data-slot": "code-panel", className: cn(codeVariants({ variant, size })), ...props, children }),
1077
+ showCopyButton && textToCopy && /* @__PURE__ */ jsx10(
1227
1078
  Button,
1228
1079
  {
1229
1080
  mode: "icon",
@@ -1231,7 +1082,7 @@ function Code({
1231
1082
  variant: "ghost",
1232
1083
  className: "h-4 w-4 p-0 opacity-60 hover:opacity-100",
1233
1084
  onClick: () => copy(textToCopy),
1234
- children: copied ? /* @__PURE__ */ jsx11(Check2, { className: "h-3 w-3" }) : /* @__PURE__ */ jsx11(Copy, { className: "h-3 w-3" })
1085
+ children: copied ? /* @__PURE__ */ jsx10(Check2, { className: "h-3 w-3" }) : /* @__PURE__ */ jsx10(Copy, { className: "h-3 w-3" })
1235
1086
  }
1236
1087
  )
1237
1088
  ] });
@@ -1240,28 +1091,28 @@ function Code({
1240
1091
  // src/ui/default/context-menu.tsx
1241
1092
  import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
1242
1093
  import { ContextMenu as ContextMenuPrimitive } from "radix-ui";
1243
- import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
1094
+ import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
1244
1095
  function ContextMenu({ ...props }) {
1245
- return /* @__PURE__ */ jsx12(ContextMenuPrimitive.Root, { "data-slot": "context-menu", ...props });
1096
+ return /* @__PURE__ */ jsx11(ContextMenuPrimitive.Root, { "data-slot": "context-menu", ...props });
1246
1097
  }
1247
1098
  function ContextMenuTrigger({
1248
1099
  ...props
1249
1100
  }) {
1250
- return /* @__PURE__ */ jsx12(ContextMenuPrimitive.Trigger, { "data-slot": "context-menu-trigger", ...props });
1101
+ return /* @__PURE__ */ jsx11(ContextMenuPrimitive.Trigger, { "data-slot": "context-menu-trigger", ...props });
1251
1102
  }
1252
1103
  function ContextMenuGroup({ ...props }) {
1253
- return /* @__PURE__ */ jsx12(ContextMenuPrimitive.Group, { "data-slot": "context-menu-group", ...props });
1104
+ return /* @__PURE__ */ jsx11(ContextMenuPrimitive.Group, { "data-slot": "context-menu-group", ...props });
1254
1105
  }
1255
1106
  function ContextMenuPortal({ ...props }) {
1256
- return /* @__PURE__ */ jsx12(ContextMenuPrimitive.Portal, { "data-slot": "context-menu-portal", ...props });
1107
+ return /* @__PURE__ */ jsx11(ContextMenuPrimitive.Portal, { "data-slot": "context-menu-portal", ...props });
1257
1108
  }
1258
1109
  function ContextMenuSub({ ...props }) {
1259
- return /* @__PURE__ */ jsx12(ContextMenuPrimitive.Sub, { "data-slot": "context-menu-sub", ...props });
1110
+ return /* @__PURE__ */ jsx11(ContextMenuPrimitive.Sub, { "data-slot": "context-menu-sub", ...props });
1260
1111
  }
1261
1112
  function ContextMenuRadioGroup({
1262
1113
  ...props
1263
1114
  }) {
1264
- return /* @__PURE__ */ jsx12(ContextMenuPrimitive.RadioGroup, { "data-slot": "context-menu-radio-group", ...props });
1115
+ return /* @__PURE__ */ jsx11(ContextMenuPrimitive.RadioGroup, { "data-slot": "context-menu-radio-group", ...props });
1265
1116
  }
1266
1117
  function ContextMenuSubTrigger({
1267
1118
  className,
@@ -1281,7 +1132,7 @@ function ContextMenuSubTrigger({
1281
1132
  ...props,
1282
1133
  children: [
1283
1134
  children,
1284
- /* @__PURE__ */ jsx12(ChevronRightIcon, { className: "ml-auto" })
1135
+ /* @__PURE__ */ jsx11(ChevronRightIcon, { className: "ml-auto" })
1285
1136
  ]
1286
1137
  }
1287
1138
  );
@@ -1290,7 +1141,7 @@ function ContextMenuSubContent({
1290
1141
  className,
1291
1142
  ...props
1292
1143
  }) {
1293
- return /* @__PURE__ */ jsx12(
1144
+ return /* @__PURE__ */ jsx11(
1294
1145
  ContextMenuPrimitive.SubContent,
1295
1146
  {
1296
1147
  "data-slot": "context-menu-sub-content",
@@ -1306,7 +1157,7 @@ function ContextMenuContent({
1306
1157
  className,
1307
1158
  ...props
1308
1159
  }) {
1309
- return /* @__PURE__ */ jsx12(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx12(
1160
+ return /* @__PURE__ */ jsx11(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx11(
1310
1161
  ContextMenuPrimitive.Content,
1311
1162
  {
1312
1163
  "data-slot": "context-menu-content",
@@ -1324,7 +1175,7 @@ function ContextMenuItem({
1324
1175
  variant = "default",
1325
1176
  ...props
1326
1177
  }) {
1327
- return /* @__PURE__ */ jsx12(
1178
+ return /* @__PURE__ */ jsx11(
1328
1179
  ContextMenuPrimitive.Item,
1329
1180
  {
1330
1181
  "data-slot": "context-menu-item",
@@ -1355,7 +1206,7 @@ function ContextMenuCheckboxItem({
1355
1206
  checked,
1356
1207
  ...props,
1357
1208
  children: [
1358
- /* @__PURE__ */ jsx12("span", { className: "pointer-events-none absolute start-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx12(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx12(CheckIcon, { className: "size-4 text-primary" }) }) }),
1209
+ /* @__PURE__ */ jsx11("span", { className: "pointer-events-none absolute start-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx11(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx11(CheckIcon, { className: "size-4 text-primary" }) }) }),
1359
1210
  children
1360
1211
  ]
1361
1212
  }
@@ -1376,7 +1227,7 @@ function ContextMenuRadioItem({
1376
1227
  ),
1377
1228
  ...props,
1378
1229
  children: [
1379
- /* @__PURE__ */ jsx12("span", { className: "pointer-events-none absolute start-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx12(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx12(CircleIcon, { className: "size-1.5 fill-primary" }) }) }),
1230
+ /* @__PURE__ */ jsx11("span", { className: "pointer-events-none absolute start-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx11(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx11(CircleIcon, { className: "size-1.5 fill-primary" }) }) }),
1380
1231
  children
1381
1232
  ]
1382
1233
  }
@@ -1387,7 +1238,7 @@ function ContextMenuLabel({
1387
1238
  inset,
1388
1239
  ...props
1389
1240
  }) {
1390
- return /* @__PURE__ */ jsx12(
1241
+ return /* @__PURE__ */ jsx11(
1391
1242
  ContextMenuPrimitive.Label,
1392
1243
  {
1393
1244
  "data-slot": "context-menu-label",
@@ -1401,7 +1252,7 @@ function ContextMenuSeparator({
1401
1252
  className,
1402
1253
  ...props
1403
1254
  }) {
1404
- return /* @__PURE__ */ jsx12(
1255
+ return /* @__PURE__ */ jsx11(
1405
1256
  ContextMenuPrimitive.Separator,
1406
1257
  {
1407
1258
  "data-slot": "context-menu-separator",
@@ -1411,7 +1262,7 @@ function ContextMenuSeparator({
1411
1262
  );
1412
1263
  }
1413
1264
  function ContextMenuShortcut({ className, ...props }) {
1414
- return /* @__PURE__ */ jsx12(
1265
+ return /* @__PURE__ */ jsx11(
1415
1266
  "span",
1416
1267
  {
1417
1268
  "data-slot": "context-menu-shortcut",
@@ -1422,11 +1273,11 @@ function ContextMenuShortcut({ className, ...props }) {
1422
1273
  }
1423
1274
 
1424
1275
  // src/ui/default/data-grid.tsx
1425
- import { createContext as createContext5, useContext as useContext5 } from "react";
1426
- import { jsx as jsx13 } from "react/jsx-runtime";
1427
- var DataGridContext = createContext5(void 0);
1276
+ import { createContext as createContext4, useContext as useContext4 } from "react";
1277
+ import { jsx as jsx12 } from "react/jsx-runtime";
1278
+ var DataGridContext = createContext4(void 0);
1428
1279
  function useDataGrid() {
1429
- const context = useContext5(DataGridContext);
1280
+ const context = useContext4(DataGridContext);
1430
1281
  if (!context) {
1431
1282
  throw new Error("useDataGrid must be used within a DataGridProvider");
1432
1283
  }
@@ -1437,7 +1288,7 @@ function DataGridProvider({
1437
1288
  table,
1438
1289
  ...props
1439
1290
  }) {
1440
- return /* @__PURE__ */ jsx13(
1291
+ return /* @__PURE__ */ jsx12(
1441
1292
  DataGridContext.Provider,
1442
1293
  {
1443
1294
  value: {
@@ -1496,14 +1347,14 @@ function DataGrid({ children, table, ...props }) {
1496
1347
  if (!table) {
1497
1348
  throw new Error('DataGrid requires a "table" prop');
1498
1349
  }
1499
- return /* @__PURE__ */ jsx13(DataGridProvider, { table, ...mergedProps, children });
1350
+ return /* @__PURE__ */ jsx12(DataGridProvider, { table, ...mergedProps, children });
1500
1351
  }
1501
1352
  function DataGridContainer({
1502
1353
  children,
1503
1354
  className,
1504
1355
  border = true
1505
1356
  }) {
1506
- return /* @__PURE__ */ jsx13(
1357
+ return /* @__PURE__ */ jsx12(
1507
1358
  "div",
1508
1359
  {
1509
1360
  "data-slot": "data-grid",
@@ -1518,12 +1369,12 @@ import { Check as Check3, CirclePlus } from "lucide-react";
1518
1369
 
1519
1370
  // src/ui/default/popover.tsx
1520
1371
  import { Popover as PopoverPrimitive } from "radix-ui";
1521
- import { jsx as jsx14 } from "react/jsx-runtime";
1372
+ import { jsx as jsx13 } from "react/jsx-runtime";
1522
1373
  function Popover({ ...props }) {
1523
- return /* @__PURE__ */ jsx14(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
1374
+ return /* @__PURE__ */ jsx13(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
1524
1375
  }
1525
1376
  function PopoverTrigger({ ...props }) {
1526
- return /* @__PURE__ */ jsx14(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
1377
+ return /* @__PURE__ */ jsx13(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
1527
1378
  }
1528
1379
  function PopoverContent({
1529
1380
  className,
@@ -1531,7 +1382,7 @@ function PopoverContent({
1531
1382
  sideOffset = 4,
1532
1383
  ...props
1533
1384
  }) {
1534
- return /* @__PURE__ */ jsx14(PopoverPrimitive.PopoverPortal, { children: /* @__PURE__ */ jsx14(
1385
+ return /* @__PURE__ */ jsx13(PopoverPrimitive.PopoverPortal, { children: /* @__PURE__ */ jsx13(
1535
1386
  PopoverPrimitive.Content,
1536
1387
  {
1537
1388
  "data-slot": "popover-content",
@@ -1546,11 +1397,11 @@ function PopoverContent({
1546
1397
  ) });
1547
1398
  }
1548
1399
  function PopoverAnchor({ ...props }) {
1549
- return /* @__PURE__ */ jsx14(PopoverPrimitive.Anchor, { "data-slot": "popover-anchor", ...props });
1400
+ return /* @__PURE__ */ jsx13(PopoverPrimitive.Anchor, { "data-slot": "popover-anchor", ...props });
1550
1401
  }
1551
1402
 
1552
1403
  // src/ui/default/data-grid-column-filter.tsx
1553
- import { Fragment, jsx as jsx15, jsxs as jsxs8 } from "react/jsx-runtime";
1404
+ import { Fragment, jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
1554
1405
  function DataGridColumnFilter({
1555
1406
  column,
1556
1407
  title,
@@ -1559,16 +1410,16 @@ function DataGridColumnFilter({
1559
1410
  const facets = column?.getFacetedUniqueValues();
1560
1411
  const selectedValues = new Set(column?.getFilterValue());
1561
1412
  return /* @__PURE__ */ jsxs8(Popover, { children: [
1562
- /* @__PURE__ */ jsx15(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs8(Button, { variant: "outline", size: "sm", children: [
1563
- /* @__PURE__ */ jsx15(CirclePlus, { className: "size-4" }),
1413
+ /* @__PURE__ */ jsx14(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs8(Button, { variant: "outline", size: "sm", children: [
1414
+ /* @__PURE__ */ jsx14(CirclePlus, { className: "size-4" }),
1564
1415
  title,
1565
1416
  selectedValues?.size > 0 && /* @__PURE__ */ jsxs8(Fragment, { children: [
1566
- /* @__PURE__ */ jsx15(Separator, { orientation: "vertical", className: "mx-2 h-4" }),
1567
- /* @__PURE__ */ jsx15(Badge, { variant: "secondary", className: "rounded-sm px-1 font-normal lg:hidden", children: selectedValues.size }),
1568
- /* @__PURE__ */ jsx15("div", { className: "hidden space-x-1 lg:flex", children: selectedValues.size > 2 ? /* @__PURE__ */ jsxs8(Badge, { variant: "secondary", className: "rounded-sm px-1 font-normal", children: [
1417
+ /* @__PURE__ */ jsx14(Separator, { orientation: "vertical", className: "mx-2 h-4" }),
1418
+ /* @__PURE__ */ jsx14(Badge, { variant: "secondary", className: "rounded-sm px-1 font-normal lg:hidden", children: selectedValues.size }),
1419
+ /* @__PURE__ */ jsx14("div", { className: "hidden space-x-1 lg:flex", children: selectedValues.size > 2 ? /* @__PURE__ */ jsxs8(Badge, { variant: "secondary", className: "rounded-sm px-1 font-normal", children: [
1569
1420
  selectedValues.size,
1570
1421
  " selected"
1571
- ] }) : options.filter((option) => selectedValues.has(option.value)).map((option) => /* @__PURE__ */ jsx15(
1422
+ ] }) : options.filter((option) => selectedValues.has(option.value)).map((option) => /* @__PURE__ */ jsx14(
1572
1423
  Badge,
1573
1424
  {
1574
1425
  variant: "secondary",
@@ -1579,11 +1430,11 @@ function DataGridColumnFilter({
1579
1430
  )) })
1580
1431
  ] })
1581
1432
  ] }) }),
1582
- /* @__PURE__ */ jsx15(PopoverContent, { className: "w-[200px] p-0", align: "start", children: /* @__PURE__ */ jsxs8(Command, { children: [
1583
- /* @__PURE__ */ jsx15(CommandInput, { placeholder: title }),
1433
+ /* @__PURE__ */ jsx14(PopoverContent, { className: "w-[200px] p-0", align: "start", children: /* @__PURE__ */ jsxs8(Command, { children: [
1434
+ /* @__PURE__ */ jsx14(CommandInput, { placeholder: title }),
1584
1435
  /* @__PURE__ */ jsxs8(CommandList, { children: [
1585
- /* @__PURE__ */ jsx15(CommandEmpty, { children: "No results found." }),
1586
- /* @__PURE__ */ jsx15(CommandGroup, { children: options.map((option) => {
1436
+ /* @__PURE__ */ jsx14(CommandEmpty, { children: "No results found." }),
1437
+ /* @__PURE__ */ jsx14(CommandGroup, { children: options.map((option) => {
1587
1438
  const isSelected = selectedValues.has(option.value);
1588
1439
  return /* @__PURE__ */ jsxs8(
1589
1440
  CommandItem,
@@ -1598,27 +1449,27 @@ function DataGridColumnFilter({
1598
1449
  column?.setFilterValue(filterValues.length ? filterValues : void 0);
1599
1450
  },
1600
1451
  children: [
1601
- /* @__PURE__ */ jsx15(
1452
+ /* @__PURE__ */ jsx14(
1602
1453
  "div",
1603
1454
  {
1604
1455
  className: cn(
1605
1456
  "me-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",
1606
1457
  isSelected ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
1607
1458
  ),
1608
- children: /* @__PURE__ */ jsx15(Check3, { className: cn("h-4 w-4") })
1459
+ children: /* @__PURE__ */ jsx14(Check3, { className: cn("h-4 w-4") })
1609
1460
  }
1610
1461
  ),
1611
- option.icon && /* @__PURE__ */ jsx15(option.icon, { className: "mr-2 h-4 w-4 text-muted-foreground" }),
1612
- /* @__PURE__ */ jsx15("span", { children: option.label }),
1613
- facets?.get(option.value) && /* @__PURE__ */ jsx15("span", { className: "ms-auto flex h-4 w-4 items-center justify-center font-mono text-xs", children: facets.get(option.value) })
1462
+ option.icon && /* @__PURE__ */ jsx14(option.icon, { className: "mr-2 h-4 w-4 text-muted-foreground" }),
1463
+ /* @__PURE__ */ jsx14("span", { children: option.label }),
1464
+ facets?.get(option.value) && /* @__PURE__ */ jsx14("span", { className: "ms-auto flex h-4 w-4 items-center justify-center font-mono text-xs", children: facets.get(option.value) })
1614
1465
  ]
1615
1466
  },
1616
1467
  option.value
1617
1468
  );
1618
1469
  }) }),
1619
1470
  selectedValues.size > 0 && /* @__PURE__ */ jsxs8(Fragment, { children: [
1620
- /* @__PURE__ */ jsx15(CommandSeparator, {}),
1621
- /* @__PURE__ */ jsx15(CommandGroup, { children: /* @__PURE__ */ jsx15(
1471
+ /* @__PURE__ */ jsx14(CommandSeparator, {}),
1472
+ /* @__PURE__ */ jsx14(CommandGroup, { children: /* @__PURE__ */ jsx14(
1622
1473
  CommandItem,
1623
1474
  {
1624
1475
  onSelect: () => column?.setFilterValue(void 0),
@@ -1645,7 +1496,7 @@ import {
1645
1496
  PinOff,
1646
1497
  Settings2
1647
1498
  } from "lucide-react";
1648
- import { Fragment as Fragment2, jsx as jsx16, jsxs as jsxs9 } from "react/jsx-runtime";
1499
+ import { Fragment as Fragment2, jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
1649
1500
  function DataGridColumnHeader({
1650
1501
  column,
1651
1502
  title = "",
@@ -1718,13 +1569,13 @@ function DataGridColumnHeader({
1718
1569
  children: [
1719
1570
  icon && icon,
1720
1571
  title,
1721
- column.getCanSort() && (column.getIsSorted() === "desc" ? /* @__PURE__ */ jsx16(ArrowDown, { className: "mt-px size-[0.7rem]!" }) : column.getIsSorted() === "asc" ? /* @__PURE__ */ jsx16(ArrowUp, { className: "mt-px size-[0.7rem]!" }) : /* @__PURE__ */ jsx16(ChevronsUpDown, { className: "mt-px size-[0.7rem]!" }))
1572
+ column.getCanSort() && (column.getIsSorted() === "desc" ? /* @__PURE__ */ jsx15(ArrowDown, { className: "mt-px size-[0.7rem]!" }) : column.getIsSorted() === "asc" ? /* @__PURE__ */ jsx15(ArrowUp, { className: "mt-px size-[0.7rem]!" }) : /* @__PURE__ */ jsx15(ChevronsUpDown, { className: "mt-px size-[0.7rem]!" }))
1722
1573
  ]
1723
1574
  }
1724
1575
  );
1725
1576
  };
1726
1577
  const headerPin = () => {
1727
- return /* @__PURE__ */ jsx16(
1578
+ return /* @__PURE__ */ jsx15(
1728
1579
  Button,
1729
1580
  {
1730
1581
  mode: "icon",
@@ -1734,17 +1585,17 @@ function DataGridColumnHeader({
1734
1585
  onClick: () => column.pin(false),
1735
1586
  "aria-label": `Unpin ${title} column`,
1736
1587
  title: `Unpin ${title} column`,
1737
- children: /* @__PURE__ */ jsx16(PinOff, { className: "size-3.5! opacity-50!", "aria-hidden": "true" })
1588
+ children: /* @__PURE__ */ jsx15(PinOff, { className: "size-3.5! opacity-50!", "aria-hidden": "true" })
1738
1589
  }
1739
1590
  );
1740
1591
  };
1741
1592
  const headerControls = () => {
1742
1593
  return /* @__PURE__ */ jsxs9("div", { className: "flex h-full items-center justify-between gap-1.5", children: [
1743
1594
  /* @__PURE__ */ jsxs9(DropdownMenu, { children: [
1744
- /* @__PURE__ */ jsx16(DropdownMenuTrigger, { asChild: true, children: headerButton() }),
1595
+ /* @__PURE__ */ jsx15(DropdownMenuTrigger, { asChild: true, children: headerButton() }),
1745
1596
  /* @__PURE__ */ jsxs9(DropdownMenuContent, { className: "w-40", align: "start", children: [
1746
- filter && /* @__PURE__ */ jsx16(DropdownMenuLabel, { children: filter }),
1747
- filter && (column.getCanSort() || column.getCanPin() || visibility) && /* @__PURE__ */ jsx16(DropdownMenuSeparator, {}),
1597
+ filter && /* @__PURE__ */ jsx15(DropdownMenuLabel, { children: filter }),
1598
+ filter && (column.getCanSort() || column.getCanPin() || visibility) && /* @__PURE__ */ jsx15(DropdownMenuSeparator, {}),
1748
1599
  column.getCanSort() && /* @__PURE__ */ jsxs9(Fragment2, { children: [
1749
1600
  /* @__PURE__ */ jsxs9(
1750
1601
  DropdownMenuItem,
@@ -1758,9 +1609,9 @@ function DataGridColumnHeader({
1758
1609
  },
1759
1610
  disabled: !column.getCanSort(),
1760
1611
  children: [
1761
- /* @__PURE__ */ jsx16(ArrowUp, { className: "size-3.5!" }),
1762
- /* @__PURE__ */ jsx16("span", { className: "grow", children: "Asc" }),
1763
- column.getIsSorted() === "asc" && /* @__PURE__ */ jsx16(Check4, { className: "size-4 text-primary opacity-100!" })
1612
+ /* @__PURE__ */ jsx15(ArrowUp, { className: "size-3.5!" }),
1613
+ /* @__PURE__ */ jsx15("span", { className: "grow", children: "Asc" }),
1614
+ column.getIsSorted() === "asc" && /* @__PURE__ */ jsx15(Check4, { className: "size-4 text-primary opacity-100!" })
1764
1615
  ]
1765
1616
  }
1766
1617
  ),
@@ -1776,23 +1627,23 @@ function DataGridColumnHeader({
1776
1627
  },
1777
1628
  disabled: !column.getCanSort(),
1778
1629
  children: [
1779
- /* @__PURE__ */ jsx16(ArrowDown, { className: "size-3.5!" }),
1780
- /* @__PURE__ */ jsx16("span", { className: "grow", children: "Desc" }),
1781
- column.getIsSorted() === "desc" && /* @__PURE__ */ jsx16(Check4, { className: "size-4 text-primary opacity-100!" })
1630
+ /* @__PURE__ */ jsx15(ArrowDown, { className: "size-3.5!" }),
1631
+ /* @__PURE__ */ jsx15("span", { className: "grow", children: "Desc" }),
1632
+ column.getIsSorted() === "desc" && /* @__PURE__ */ jsx15(Check4, { className: "size-4 text-primary opacity-100!" })
1782
1633
  ]
1783
1634
  }
1784
1635
  )
1785
1636
  ] }),
1786
- (filter || column.getCanSort()) && (column.getCanSort() || column.getCanPin() || visibility) && /* @__PURE__ */ jsx16(DropdownMenuSeparator, {}),
1637
+ (filter || column.getCanSort()) && (column.getCanSort() || column.getCanPin() || visibility) && /* @__PURE__ */ jsx15(DropdownMenuSeparator, {}),
1787
1638
  props.tableLayout?.columnsPinnable && column.getCanPin() && /* @__PURE__ */ jsxs9(Fragment2, { children: [
1788
1639
  /* @__PURE__ */ jsxs9(
1789
1640
  DropdownMenuItem,
1790
1641
  {
1791
1642
  onClick: () => column.pin(column.getIsPinned() === "left" ? false : "left"),
1792
1643
  children: [
1793
- /* @__PURE__ */ jsx16(ArrowLeftToLine, { className: "size-3.5!", "aria-hidden": "true" }),
1794
- /* @__PURE__ */ jsx16("span", { className: "grow", children: "Pin to left" }),
1795
- column.getIsPinned() === "left" && /* @__PURE__ */ jsx16(Check4, { className: "size-4 text-primary opacity-100!" })
1644
+ /* @__PURE__ */ jsx15(ArrowLeftToLine, { className: "size-3.5!", "aria-hidden": "true" }),
1645
+ /* @__PURE__ */ jsx15("span", { className: "grow", children: "Pin to left" }),
1646
+ column.getIsPinned() === "left" && /* @__PURE__ */ jsx15(Check4, { className: "size-4 text-primary opacity-100!" })
1796
1647
  ]
1797
1648
  }
1798
1649
  ),
@@ -1801,23 +1652,23 @@ function DataGridColumnHeader({
1801
1652
  {
1802
1653
  onClick: () => column.pin(column.getIsPinned() === "right" ? false : "right"),
1803
1654
  children: [
1804
- /* @__PURE__ */ jsx16(ArrowRightToLine, { className: "size-3.5!", "aria-hidden": "true" }),
1805
- /* @__PURE__ */ jsx16("span", { className: "grow", children: "Pin to right" }),
1806
- column.getIsPinned() === "right" && /* @__PURE__ */ jsx16(Check4, { className: "size-4 text-primary opacity-100!" })
1655
+ /* @__PURE__ */ jsx15(ArrowRightToLine, { className: "size-3.5!", "aria-hidden": "true" }),
1656
+ /* @__PURE__ */ jsx15("span", { className: "grow", children: "Pin to right" }),
1657
+ column.getIsPinned() === "right" && /* @__PURE__ */ jsx15(Check4, { className: "size-4 text-primary opacity-100!" })
1807
1658
  ]
1808
1659
  }
1809
1660
  )
1810
1661
  ] }),
1811
1662
  props.tableLayout?.columnsMovable && /* @__PURE__ */ jsxs9(Fragment2, { children: [
1812
- /* @__PURE__ */ jsx16(DropdownMenuSeparator, {}),
1663
+ /* @__PURE__ */ jsx15(DropdownMenuSeparator, {}),
1813
1664
  /* @__PURE__ */ jsxs9(
1814
1665
  DropdownMenuItem,
1815
1666
  {
1816
1667
  onClick: () => moveColumn("left"),
1817
1668
  disabled: !canMove("left") || column.getIsPinned() !== false,
1818
1669
  children: [
1819
- /* @__PURE__ */ jsx16(ArrowLeft2, { className: "size-3.5!", "aria-hidden": "true" }),
1820
- /* @__PURE__ */ jsx16("span", { children: "Move to Left" })
1670
+ /* @__PURE__ */ jsx15(ArrowLeft2, { className: "size-3.5!", "aria-hidden": "true" }),
1671
+ /* @__PURE__ */ jsx15("span", { children: "Move to Left" })
1821
1672
  ]
1822
1673
  }
1823
1674
  ),
@@ -1827,20 +1678,20 @@ function DataGridColumnHeader({
1827
1678
  onClick: () => moveColumn("right"),
1828
1679
  disabled: !canMove("right") || column.getIsPinned() !== false,
1829
1680
  children: [
1830
- /* @__PURE__ */ jsx16(ArrowRight2, { className: "size-3.5!", "aria-hidden": "true" }),
1831
- /* @__PURE__ */ jsx16("span", { children: "Move to Right" })
1681
+ /* @__PURE__ */ jsx15(ArrowRight2, { className: "size-3.5!", "aria-hidden": "true" }),
1682
+ /* @__PURE__ */ jsx15("span", { children: "Move to Right" })
1832
1683
  ]
1833
1684
  }
1834
1685
  )
1835
1686
  ] }),
1836
- props.tableLayout?.columnsVisibility && visibility && (column.getCanSort() || column.getCanPin() || filter) && /* @__PURE__ */ jsx16(DropdownMenuSeparator, {}),
1687
+ props.tableLayout?.columnsVisibility && visibility && (column.getCanSort() || column.getCanPin() || filter) && /* @__PURE__ */ jsx15(DropdownMenuSeparator, {}),
1837
1688
  props.tableLayout?.columnsVisibility && visibility && /* @__PURE__ */ jsxs9(DropdownMenuSub, { children: [
1838
1689
  /* @__PURE__ */ jsxs9(DropdownMenuSubTrigger, { children: [
1839
- /* @__PURE__ */ jsx16(Settings2, { className: "size-3.5!" }),
1840
- /* @__PURE__ */ jsx16("span", { children: "Columns" })
1690
+ /* @__PURE__ */ jsx15(Settings2, { className: "size-3.5!" }),
1691
+ /* @__PURE__ */ jsx15("span", { children: "Columns" })
1841
1692
  ] }),
1842
- /* @__PURE__ */ jsx16(DropdownMenuPortal, { children: /* @__PURE__ */ jsx16(DropdownMenuSubContent, { children: table.getAllColumns().filter((col) => typeof col.accessorFn !== "undefined" && col.getCanHide()).map((col) => {
1843
- return /* @__PURE__ */ jsx16(
1693
+ /* @__PURE__ */ jsx15(DropdownMenuPortal, { children: /* @__PURE__ */ jsx15(DropdownMenuSubContent, { children: table.getAllColumns().filter((col) => typeof col.accessorFn !== "undefined" && col.getCanHide()).map((col) => {
1694
+ return /* @__PURE__ */ jsx15(
1844
1695
  DropdownMenuCheckboxItem,
1845
1696
  {
1846
1697
  checked: col.getIsVisible(),
@@ -1862,23 +1713,23 @@ function DataGridColumnHeader({
1862
1713
  return headerControls();
1863
1714
  }
1864
1715
  if (column.getCanSort() || props.tableLayout?.columnsResizable && column.getCanResize()) {
1865
- return /* @__PURE__ */ jsx16("div", { className: "flex h-full items-center", children: headerButton() });
1716
+ return /* @__PURE__ */ jsx15("div", { className: "flex h-full items-center", children: headerButton() });
1866
1717
  }
1867
1718
  return headerLabel();
1868
1719
  }
1869
1720
 
1870
1721
  // src/ui/default/data-grid-column-visibility.tsx
1871
- import { jsx as jsx17, jsxs as jsxs10 } from "react/jsx-runtime";
1722
+ import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
1872
1723
  function DataGridColumnVisibility({
1873
1724
  table,
1874
1725
  trigger
1875
1726
  }) {
1876
1727
  return /* @__PURE__ */ jsxs10(DropdownMenu, { children: [
1877
- /* @__PURE__ */ jsx17(DropdownMenuTrigger, { asChild: true, children: trigger }),
1728
+ /* @__PURE__ */ jsx16(DropdownMenuTrigger, { asChild: true, children: trigger }),
1878
1729
  /* @__PURE__ */ jsxs10(DropdownMenuContent, { align: "end", className: "min-w-[150px]", children: [
1879
- /* @__PURE__ */ jsx17(DropdownMenuLabel, { className: "font-medium", children: "Toggle Columns" }),
1730
+ /* @__PURE__ */ jsx16(DropdownMenuLabel, { className: "font-medium", children: "Toggle Columns" }),
1880
1731
  table.getAllColumns().filter((column) => typeof column.accessorFn !== "undefined" && column.getCanHide()).map((column) => {
1881
- return /* @__PURE__ */ jsx17(
1732
+ return /* @__PURE__ */ jsx16(
1882
1733
  DropdownMenuCheckboxItem,
1883
1734
  {
1884
1735
  className: "capitalize",
@@ -1898,28 +1749,28 @@ function DataGridColumnVisibility({
1898
1749
  import { ChevronLeftIcon, ChevronRightIcon as ChevronRightIcon2 } from "lucide-react";
1899
1750
 
1900
1751
  // src/ui/default/select.tsx
1901
- import * as React5 from "react";
1752
+ import * as React4 from "react";
1902
1753
  import { isValidElement as isValidElement2 } from "react";
1903
- import { cva as cva7 } from "class-variance-authority";
1754
+ import { cva as cva6 } from "class-variance-authority";
1904
1755
  import { Check as Check5, ChevronDown as ChevronDown3, ChevronUp } from "lucide-react";
1905
1756
  import { Select as SelectPrimitive } from "radix-ui";
1906
- import { jsx as jsx18, jsxs as jsxs11 } from "react/jsx-runtime";
1907
- var SelectContext = React5.createContext({ indicatorPosition: "left", indicator: null, indicatorVisibility: true });
1757
+ import { jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
1758
+ var SelectContext = React4.createContext({ indicatorPosition: "left", indicator: null, indicatorVisibility: true });
1908
1759
  var Select = ({
1909
1760
  indicatorPosition = "left",
1910
1761
  indicatorVisibility = true,
1911
1762
  indicator,
1912
1763
  ...props
1913
1764
  }) => {
1914
- return /* @__PURE__ */ jsx18(SelectContext.Provider, { value: { indicatorPosition, indicatorVisibility, indicator }, children: /* @__PURE__ */ jsx18(SelectPrimitive.Root, { ...props }) });
1765
+ return /* @__PURE__ */ jsx17(SelectContext.Provider, { value: { indicatorPosition, indicatorVisibility, indicator }, children: /* @__PURE__ */ jsx17(SelectPrimitive.Root, { ...props }) });
1915
1766
  };
1916
1767
  function SelectGroup({ ...props }) {
1917
- return /* @__PURE__ */ jsx18(SelectPrimitive.Group, { "data-slot": "select-group", ...props });
1768
+ return /* @__PURE__ */ jsx17(SelectPrimitive.Group, { "data-slot": "select-group", ...props });
1918
1769
  }
1919
1770
  function SelectValue({ ...props }) {
1920
- return /* @__PURE__ */ jsx18(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
1771
+ return /* @__PURE__ */ jsx17(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
1921
1772
  }
1922
- var selectTriggerVariants = cva7(
1773
+ var selectTriggerVariants = cva6(
1923
1774
  `
1924
1775
  flex bg-background w-full items-center justify-between outline-none border border-input shadow-xs shadow-black/5 transition-shadow
1925
1776
  text-foreground data-placeholder:text-muted-foreground focus-visible:border-ring focus-visible:outline-none focus-visible:ring-[3px]
@@ -1950,7 +1801,7 @@ function SelectTrigger({ className, children, size, ...props }) {
1950
1801
  ...props,
1951
1802
  children: [
1952
1803
  children,
1953
- /* @__PURE__ */ jsx18(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx18(ChevronDown3, { className: "-me-0.5 h-4 w-4 opacity-60" }) })
1804
+ /* @__PURE__ */ jsx17(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx17(ChevronDown3, { className: "-me-0.5 h-4 w-4 opacity-60" }) })
1954
1805
  ]
1955
1806
  }
1956
1807
  );
@@ -1959,13 +1810,13 @@ function SelectScrollUpButton({
1959
1810
  className,
1960
1811
  ...props
1961
1812
  }) {
1962
- return /* @__PURE__ */ jsx18(
1813
+ return /* @__PURE__ */ jsx17(
1963
1814
  SelectPrimitive.ScrollUpButton,
1964
1815
  {
1965
1816
  "data-slot": "select-scroll-up-button",
1966
1817
  className: cn("flex cursor-default items-center justify-center py-1", className),
1967
1818
  ...props,
1968
- children: /* @__PURE__ */ jsx18(ChevronUp, { className: "h-4 w-4" })
1819
+ children: /* @__PURE__ */ jsx17(ChevronUp, { className: "h-4 w-4" })
1969
1820
  }
1970
1821
  );
1971
1822
  }
@@ -1973,13 +1824,13 @@ function SelectScrollDownButton({
1973
1824
  className,
1974
1825
  ...props
1975
1826
  }) {
1976
- return /* @__PURE__ */ jsx18(
1827
+ return /* @__PURE__ */ jsx17(
1977
1828
  SelectPrimitive.ScrollDownButton,
1978
1829
  {
1979
1830
  "data-slot": "select-scroll-down-button",
1980
1831
  className: cn("flex cursor-default items-center justify-center py-1", className),
1981
1832
  ...props,
1982
- children: /* @__PURE__ */ jsx18(ChevronDown3, { className: "h-4 w-4" })
1833
+ children: /* @__PURE__ */ jsx17(ChevronDown3, { className: "h-4 w-4" })
1983
1834
  }
1984
1835
  );
1985
1836
  }
@@ -1989,7 +1840,7 @@ function SelectContent({
1989
1840
  position = "popper",
1990
1841
  ...props
1991
1842
  }) {
1992
- return /* @__PURE__ */ jsx18(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs11(
1843
+ return /* @__PURE__ */ jsx17(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs11(
1993
1844
  SelectPrimitive.Content,
1994
1845
  {
1995
1846
  "data-slot": "select-content",
@@ -2001,8 +1852,8 @@ function SelectContent({
2001
1852
  position,
2002
1853
  ...props,
2003
1854
  children: [
2004
- /* @__PURE__ */ jsx18(SelectScrollUpButton, {}),
2005
- /* @__PURE__ */ jsx18(
1855
+ /* @__PURE__ */ jsx17(SelectScrollUpButton, {}),
1856
+ /* @__PURE__ */ jsx17(
2006
1857
  SelectPrimitive.Viewport,
2007
1858
  {
2008
1859
  className: cn(
@@ -2012,13 +1863,13 @@ function SelectContent({
2012
1863
  children
2013
1864
  }
2014
1865
  ),
2015
- /* @__PURE__ */ jsx18(SelectScrollDownButton, {})
1866
+ /* @__PURE__ */ jsx17(SelectScrollDownButton, {})
2016
1867
  ]
2017
1868
  }
2018
1869
  ) });
2019
1870
  }
2020
1871
  function SelectLabel({ className, ...props }) {
2021
- return /* @__PURE__ */ jsx18(
1872
+ return /* @__PURE__ */ jsx17(
2022
1873
  SelectPrimitive.Label,
2023
1874
  {
2024
1875
  "data-slot": "select-label",
@@ -2032,7 +1883,7 @@ function SelectItem({
2032
1883
  children,
2033
1884
  ...props
2034
1885
  }) {
2035
- const { indicatorPosition, indicatorVisibility, indicator } = React5.useContext(SelectContext);
1886
+ const { indicatorPosition, indicatorVisibility, indicator } = React4.useContext(SelectContext);
2036
1887
  return /* @__PURE__ */ jsxs11(
2037
1888
  SelectPrimitive.Item,
2038
1889
  {
@@ -2044,17 +1895,17 @@ function SelectItem({
2044
1895
  ),
2045
1896
  ...props,
2046
1897
  children: [
2047
- indicatorVisibility && (indicator && isValidElement2(indicator) ? indicator : /* @__PURE__ */ jsx18(
1898
+ indicatorVisibility && (indicator && isValidElement2(indicator) ? indicator : /* @__PURE__ */ jsx17(
2048
1899
  "span",
2049
1900
  {
2050
1901
  className: cn(
2051
1902
  "absolute flex h-3.5 w-3.5 items-center justify-center",
2052
1903
  indicatorPosition === "left" ? "start-2" : "end-2"
2053
1904
  ),
2054
- children: /* @__PURE__ */ jsx18(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx18(Check5, { className: "h-4 w-4 text-primary" }) })
1905
+ children: /* @__PURE__ */ jsx17(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx17(Check5, { className: "h-4 w-4 text-primary" }) })
2055
1906
  }
2056
1907
  )),
2057
- /* @__PURE__ */ jsx18(SelectPrimitive.ItemText, { children })
1908
+ /* @__PURE__ */ jsx17(SelectPrimitive.ItemText, { children })
2058
1909
  ]
2059
1910
  }
2060
1911
  );
@@ -2064,8 +1915,8 @@ function SelectIndicator({
2064
1915
  className,
2065
1916
  ...props
2066
1917
  }) {
2067
- const { indicatorPosition } = React5.useContext(SelectContext);
2068
- return /* @__PURE__ */ jsx18(
1918
+ const { indicatorPosition } = React4.useContext(SelectContext);
1919
+ return /* @__PURE__ */ jsx17(
2069
1920
  "span",
2070
1921
  {
2071
1922
  "data-slot": "select-indicator",
@@ -2075,7 +1926,7 @@ function SelectIndicator({
2075
1926
  className
2076
1927
  ),
2077
1928
  ...props,
2078
- children: /* @__PURE__ */ jsx18(SelectPrimitive.ItemIndicator, { children })
1929
+ children: /* @__PURE__ */ jsx17(SelectPrimitive.ItemIndicator, { children })
2079
1930
  }
2080
1931
  );
2081
1932
  }
@@ -2083,7 +1934,7 @@ function SelectSeparator({
2083
1934
  className,
2084
1935
  ...props
2085
1936
  }) {
2086
- return /* @__PURE__ */ jsx18(
1937
+ return /* @__PURE__ */ jsx17(
2087
1938
  SelectPrimitive.Separator,
2088
1939
  {
2089
1940
  "data-slot": "select-separator",
@@ -2094,9 +1945,9 @@ function SelectSeparator({
2094
1945
  }
2095
1946
 
2096
1947
  // src/ui/default/skeleton.tsx
2097
- import { jsx as jsx19 } from "react/jsx-runtime";
1948
+ import { jsx as jsx18 } from "react/jsx-runtime";
2098
1949
  function Skeleton({ className, ...props }) {
2099
- return /* @__PURE__ */ jsx19(
1950
+ return /* @__PURE__ */ jsx18(
2100
1951
  "div",
2101
1952
  {
2102
1953
  "data-slot": "skeleton",
@@ -2107,18 +1958,18 @@ function Skeleton({ className, ...props }) {
2107
1958
  }
2108
1959
 
2109
1960
  // src/ui/default/data-grid-pagination.tsx
2110
- import { Fragment as Fragment3, jsx as jsx20, jsxs as jsxs12 } from "react/jsx-runtime";
1961
+ import { Fragment as Fragment3, jsx as jsx19, jsxs as jsxs12 } from "react/jsx-runtime";
2111
1962
  function DataGridPagination(props) {
2112
1963
  const { table, recordCount, isLoading } = useDataGrid();
2113
1964
  const defaultProps = {
2114
1965
  sizes: [5, 10, 25, 50, 100],
2115
1966
  sizesLabel: "Show",
2116
1967
  sizesDescription: "per page",
2117
- sizesSkeleton: /* @__PURE__ */ jsx20(Skeleton, { className: "h-8 w-44" }),
1968
+ sizesSkeleton: /* @__PURE__ */ jsx19(Skeleton, { className: "h-8 w-44" }),
2118
1969
  moreLimit: 5,
2119
1970
  more: false,
2120
1971
  info: "{from} - {to} of {count}",
2121
- infoSkeleton: /* @__PURE__ */ jsx20(Skeleton, { className: "h-8 w-60" }),
1972
+ infoSkeleton: /* @__PURE__ */ jsx19(Skeleton, { className: "h-8 w-60" }),
2122
1973
  rowsPerPageLabel: "Rows per page",
2123
1974
  previousPageLabel: "Go to previous page",
2124
1975
  nextPageLabel: "Go to next page",
@@ -2140,7 +1991,7 @@ function DataGridPagination(props) {
2140
1991
  const buttons = [];
2141
1992
  for (let i = currentGroupStart; i < currentGroupEnd; i++) {
2142
1993
  buttons.push(
2143
- /* @__PURE__ */ jsx20(
1994
+ /* @__PURE__ */ jsx19(
2144
1995
  Button,
2145
1996
  {
2146
1997
  size: "sm",
@@ -2164,7 +2015,7 @@ function DataGridPagination(props) {
2164
2015
  };
2165
2016
  const renderEllipsisPrevButton = () => {
2166
2017
  if (currentGroupStart > 0) {
2167
- return /* @__PURE__ */ jsx20(
2018
+ return /* @__PURE__ */ jsx19(
2168
2019
  Button,
2169
2020
  {
2170
2021
  size: "sm",
@@ -2180,7 +2031,7 @@ function DataGridPagination(props) {
2180
2031
  };
2181
2032
  const renderEllipsisNextButton = () => {
2182
2033
  if (currentGroupEnd < pageCount) {
2183
- return /* @__PURE__ */ jsx20(
2034
+ return /* @__PURE__ */ jsx19(
2184
2035
  Button,
2185
2036
  {
2186
2037
  className: btnBaseClasses,
@@ -2203,8 +2054,8 @@ function DataGridPagination(props) {
2203
2054
  mergedProps?.className
2204
2055
  ),
2205
2056
  children: [
2206
- /* @__PURE__ */ jsx20("div", { className: "order-2 flex flex-wrap items-center space-x-2.5 pb-2.5 sm:order-1 sm:pb-0", children: isLoading ? mergedProps?.sizesSkeleton : /* @__PURE__ */ jsxs12(Fragment3, { children: [
2207
- /* @__PURE__ */ jsx20("div", { className: "text-muted-foreground text-sm", children: mergedProps.rowsPerPageLabel }),
2057
+ /* @__PURE__ */ jsx19("div", { className: "order-2 flex flex-wrap items-center space-x-2.5 pb-2.5 sm:order-1 sm:pb-0", children: isLoading ? mergedProps?.sizesSkeleton : /* @__PURE__ */ jsxs12(Fragment3, { children: [
2058
+ /* @__PURE__ */ jsx19("div", { className: "text-muted-foreground text-sm", children: mergedProps.rowsPerPageLabel }),
2208
2059
  /* @__PURE__ */ jsxs12(
2209
2060
  Select,
2210
2061
  {
@@ -2215,14 +2066,14 @@ function DataGridPagination(props) {
2215
2066
  table.setPageSize(newPageSize);
2216
2067
  },
2217
2068
  children: [
2218
- /* @__PURE__ */ jsx20(SelectTrigger, { className: "w-fit", size: "sm", children: /* @__PURE__ */ jsx20(SelectValue, { placeholder: `${pageSize}` }) }),
2219
- /* @__PURE__ */ jsx20(SelectContent, { side: "top", className: "min-w-[50px]", children: mergedProps?.sizes?.map((size) => /* @__PURE__ */ jsx20(SelectItem, { value: `${size}`, children: size }, size)) })
2069
+ /* @__PURE__ */ jsx19(SelectTrigger, { className: "w-fit", size: "sm", children: /* @__PURE__ */ jsx19(SelectValue, { placeholder: `${pageSize}` }) }),
2070
+ /* @__PURE__ */ jsx19(SelectContent, { side: "top", className: "min-w-[50px]", children: mergedProps?.sizes?.map((size) => /* @__PURE__ */ jsx19(SelectItem, { value: `${size}`, children: size }, size)) })
2220
2071
  ]
2221
2072
  }
2222
2073
  )
2223
2074
  ] }) }),
2224
- /* @__PURE__ */ jsx20("div", { className: "order-1 flex flex-col items-center justify-center gap-2.5 pt-2.5 sm:order-2 sm:flex-row sm:justify-end sm:pt-0", children: isLoading ? mergedProps?.infoSkeleton : /* @__PURE__ */ jsxs12(Fragment3, { children: [
2225
- /* @__PURE__ */ jsx20("div", { className: "order-2 text-nowrap text-muted-foreground text-sm sm:order-1", children: paginationInfo }),
2075
+ /* @__PURE__ */ jsx19("div", { className: "order-1 flex flex-col items-center justify-center gap-2.5 pt-2.5 sm:order-2 sm:flex-row sm:justify-end sm:pt-0", children: isLoading ? mergedProps?.infoSkeleton : /* @__PURE__ */ jsxs12(Fragment3, { children: [
2076
+ /* @__PURE__ */ jsx19("div", { className: "order-2 text-nowrap text-muted-foreground text-sm sm:order-1", children: paginationInfo }),
2226
2077
  pageCount > 1 && /* @__PURE__ */ jsxs12("div", { className: "order-1 flex items-center space-x-1 sm:order-2", children: [
2227
2078
  /* @__PURE__ */ jsxs12(
2228
2079
  Button,
@@ -2234,8 +2085,8 @@ function DataGridPagination(props) {
2234
2085
  onClick: () => table.previousPage(),
2235
2086
  disabled: !table.getCanPreviousPage(),
2236
2087
  children: [
2237
- /* @__PURE__ */ jsx20("span", { className: "sr-only", children: mergedProps.previousPageLabel }),
2238
- /* @__PURE__ */ jsx20(ChevronLeftIcon, { className: "size-4" })
2088
+ /* @__PURE__ */ jsx19("span", { className: "sr-only", children: mergedProps.previousPageLabel }),
2089
+ /* @__PURE__ */ jsx19(ChevronLeftIcon, { className: "size-4" })
2239
2090
  ]
2240
2091
  }
2241
2092
  ),
@@ -2252,8 +2103,8 @@ function DataGridPagination(props) {
2252
2103
  onClick: () => table.nextPage(),
2253
2104
  disabled: !table.getCanNextPage(),
2254
2105
  children: [
2255
- /* @__PURE__ */ jsx20("span", { className: "sr-only", children: mergedProps.nextPageLabel }),
2256
- /* @__PURE__ */ jsx20(ChevronRightIcon2, { className: "size-4" })
2106
+ /* @__PURE__ */ jsx19("span", { className: "sr-only", children: mergedProps.nextPageLabel }),
2107
+ /* @__PURE__ */ jsx19(ChevronRightIcon2, { className: "size-4" })
2257
2108
  ]
2258
2109
  }
2259
2110
  )
@@ -2269,9 +2120,9 @@ import { Fragment as Fragment4 } from "react";
2269
2120
  import {
2270
2121
  flexRender
2271
2122
  } from "@tanstack/react-table";
2272
- import { cva as cva8 } from "class-variance-authority";
2273
- import { Fragment as Fragment5, jsx as jsx21, jsxs as jsxs13 } from "react/jsx-runtime";
2274
- var headerCellSpacingVariants = cva8("", {
2123
+ import { cva as cva7 } from "class-variance-authority";
2124
+ import { Fragment as Fragment5, jsx as jsx20, jsxs as jsxs13 } from "react/jsx-runtime";
2125
+ var headerCellSpacingVariants = cva7("", {
2275
2126
  variants: {
2276
2127
  size: {
2277
2128
  dense: "px-2.5 h-9",
@@ -2282,7 +2133,7 @@ var headerCellSpacingVariants = cva8("", {
2282
2133
  size: "default"
2283
2134
  }
2284
2135
  });
2285
- var bodyCellSpacingVariants = cva8("", {
2136
+ var bodyCellSpacingVariants = cva7("", {
2286
2137
  variants: {
2287
2138
  size: {
2288
2139
  dense: "px-2.5 py-2",
@@ -2305,7 +2156,7 @@ function getPinningStyles(column) {
2305
2156
  }
2306
2157
  function DataGridTableBase({ children }) {
2307
2158
  const { props } = useDataGrid();
2308
- return /* @__PURE__ */ jsx21(
2159
+ return /* @__PURE__ */ jsx20(
2309
2160
  "table",
2310
2161
  {
2311
2162
  "data-slot": "data-grid-table",
@@ -2321,7 +2172,7 @@ function DataGridTableBase({ children }) {
2321
2172
  }
2322
2173
  function DataGridTableHead({ children }) {
2323
2174
  const { props } = useDataGrid();
2324
- return /* @__PURE__ */ jsx21(
2175
+ return /* @__PURE__ */ jsx20(
2325
2176
  "thead",
2326
2177
  {
2327
2178
  className: cn(
@@ -2337,7 +2188,7 @@ function DataGridTableHeadRow({
2337
2188
  headerGroup
2338
2189
  }) {
2339
2190
  const { props } = useDataGrid();
2340
- return /* @__PURE__ */ jsx21(
2191
+ return /* @__PURE__ */ jsx20(
2341
2192
  "tr",
2342
2193
  {
2343
2194
  className: cn(
@@ -2367,7 +2218,7 @@ function DataGridTableHeadRowCell({
2367
2218
  const headerCellSpacing = headerCellSpacingVariants({
2368
2219
  size: props.tableLayout?.dense ? "dense" : "default"
2369
2220
  });
2370
- return /* @__PURE__ */ jsx21(
2221
+ return /* @__PURE__ */ jsx20(
2371
2222
  "th",
2372
2223
  {
2373
2224
  ref: dndRef,
@@ -2396,7 +2247,7 @@ function DataGridTableHeadRowCell({
2396
2247
  }
2397
2248
  function DataGridTableHeadRowCellResize({ header }) {
2398
2249
  const { column } = header;
2399
- return /* @__PURE__ */ jsx21(
2250
+ return /* @__PURE__ */ jsx20(
2400
2251
  "div",
2401
2252
  {
2402
2253
  ...{
@@ -2409,11 +2260,11 @@ function DataGridTableHeadRowCellResize({ header }) {
2409
2260
  );
2410
2261
  }
2411
2262
  function DataGridTableRowSpacer() {
2412
- return /* @__PURE__ */ jsx21("tbody", { "aria-hidden": "true", className: "h-2" });
2263
+ return /* @__PURE__ */ jsx20("tbody", { "aria-hidden": "true", className: "h-2" });
2413
2264
  }
2414
2265
  function DataGridTableBody({ children }) {
2415
2266
  const { props } = useDataGrid();
2416
- return /* @__PURE__ */ jsx21(
2267
+ return /* @__PURE__ */ jsx20(
2417
2268
  "tbody",
2418
2269
  {
2419
2270
  className: cn(
@@ -2427,7 +2278,7 @@ function DataGridTableBody({ children }) {
2427
2278
  }
2428
2279
  function DataGridTableBodyRowSkeleton({ children }) {
2429
2280
  const { table, props } = useDataGrid();
2430
- return /* @__PURE__ */ jsx21(
2281
+ return /* @__PURE__ */ jsx20(
2431
2282
  "tr",
2432
2283
  {
2433
2284
  className: cn(
@@ -2451,7 +2302,7 @@ function DataGridTableBodyRowSkeletonCell({
2451
2302
  const bodyCellSpacing = bodyCellSpacingVariants({
2452
2303
  size: props.tableLayout?.dense ? "dense" : "default"
2453
2304
  });
2454
- return /* @__PURE__ */ jsx21(
2305
+ return /* @__PURE__ */ jsx20(
2455
2306
  "td",
2456
2307
  {
2457
2308
  className: cn(
@@ -2474,7 +2325,7 @@ function DataGridTableBodyRow({
2474
2325
  dndStyle
2475
2326
  }) {
2476
2327
  const { props, table } = useDataGrid();
2477
- return /* @__PURE__ */ jsx21(
2328
+ return /* @__PURE__ */ jsx20(
2478
2329
  "tr",
2479
2330
  {
2480
2331
  ref: dndRef,
@@ -2496,7 +2347,7 @@ function DataGridTableBodyRow({
2496
2347
  }
2497
2348
  function DataGridTableBodyRowExpandded({ row }) {
2498
2349
  const { props, table } = useDataGrid();
2499
- return /* @__PURE__ */ jsx21("tr", { className: cn(props.tableLayout?.rowBorder && "[&:not(:last-child)>td]:border-b"), children: /* @__PURE__ */ jsx21("td", { colSpan: row.getVisibleCells().length, children: table.getAllColumns().find((column) => column.columnDef.meta?.expandedContent)?.columnDef.meta?.expandedContent?.(row.original) }) });
2350
+ return /* @__PURE__ */ jsx20("tr", { className: cn(props.tableLayout?.rowBorder && "[&:not(:last-child)>td]:border-b"), children: /* @__PURE__ */ jsx20("td", { colSpan: row.getVisibleCells().length, children: table.getAllColumns().find((column) => column.columnDef.meta?.expandedContent)?.columnDef.meta?.expandedContent?.(row.original) }) });
2500
2351
  }
2501
2352
  function DataGridTableBodyRowCell({
2502
2353
  children,
@@ -2512,7 +2363,7 @@ function DataGridTableBodyRowCell({
2512
2363
  const bodyCellSpacing = bodyCellSpacingVariants({
2513
2364
  size: props.tableLayout?.dense ? "dense" : "default"
2514
2365
  });
2515
- return /* @__PURE__ */ jsx21(
2366
+ return /* @__PURE__ */ jsx20(
2516
2367
  "td",
2517
2368
  {
2518
2369
  ref: dndRef,
@@ -2540,11 +2391,11 @@ function DataGridTableBodyRowCell({
2540
2391
  function DataGridTableEmpty() {
2541
2392
  const { table, props } = useDataGrid();
2542
2393
  const totalColumns = table.getAllColumns().length;
2543
- return /* @__PURE__ */ jsx21("tr", { children: /* @__PURE__ */ jsx21("td", { colSpan: totalColumns, className: "py-6 text-center text-muted-foreground", children: props.emptyMessage || "No data available" }) });
2394
+ return /* @__PURE__ */ jsx20("tr", { children: /* @__PURE__ */ jsx20("td", { colSpan: totalColumns, className: "py-6 text-center text-muted-foreground", children: props.emptyMessage || "No data available" }) });
2544
2395
  }
2545
2396
  function DataGridTableLoader() {
2546
2397
  const { props } = useDataGrid();
2547
- return /* @__PURE__ */ jsx21("div", { className: "-translate-x-1/2 -translate-y-1/2 absolute top-1/2 left-1/2", children: /* @__PURE__ */ jsxs13("div", { className: "flex items-center gap-2 rounded-md border bg-card px-4 py-2 font-medium text-muted-foreground text-sm leading-none shadow-xs", children: [
2398
+ return /* @__PURE__ */ jsx20("div", { className: "-translate-x-1/2 -translate-y-1/2 absolute top-1/2 left-1/2", children: /* @__PURE__ */ jsxs13("div", { className: "flex items-center gap-2 rounded-md border bg-card px-4 py-2 font-medium text-muted-foreground text-sm leading-none shadow-xs", children: [
2548
2399
  /* @__PURE__ */ jsxs13(
2549
2400
  "svg",
2550
2401
  {
@@ -2553,7 +2404,7 @@ function DataGridTableLoader() {
2553
2404
  fill: "none",
2554
2405
  viewBox: "0 0 24 24",
2555
2406
  children: [
2556
- /* @__PURE__ */ jsx21(
2407
+ /* @__PURE__ */ jsx20(
2557
2408
  "circle",
2558
2409
  {
2559
2410
  className: "opacity-25",
@@ -2564,7 +2415,7 @@ function DataGridTableLoader() {
2564
2415
  strokeWidth: "3"
2565
2416
  }
2566
2417
  ),
2567
- /* @__PURE__ */ jsx21(
2418
+ /* @__PURE__ */ jsx20(
2568
2419
  "path",
2569
2420
  {
2570
2421
  className: "opacity-75",
@@ -2583,16 +2434,16 @@ function DataGridTableRowSelect({
2583
2434
  size
2584
2435
  }) {
2585
2436
  return /* @__PURE__ */ jsxs13(Fragment5, { children: [
2586
- /* @__PURE__ */ jsx21(
2437
+ /* @__PURE__ */ jsx20(
2587
2438
  "div",
2588
2439
  {
2589
2440
  className: cn(
2590
- "absolute start-0 top-0 bottom-0 hidden w-[2px] bg-primary",
2441
+ "absolute start-0 top-0 bottom-0 hidden w-0.5 bg-primary",
2591
2442
  row.getIsSelected() && "block"
2592
2443
  )
2593
2444
  }
2594
2445
  ),
2595
- /* @__PURE__ */ jsx21(
2446
+ /* @__PURE__ */ jsx20(
2596
2447
  Checkbox,
2597
2448
  {
2598
2449
  checked: row.getIsSelected(),
@@ -2606,7 +2457,7 @@ function DataGridTableRowSelect({
2606
2457
  }
2607
2458
  function DataGridTableRowSelectAll({ size }) {
2608
2459
  const { table, recordCount, isLoading } = useDataGrid();
2609
- return /* @__PURE__ */ jsx21(
2460
+ return /* @__PURE__ */ jsx20(
2610
2461
  Checkbox,
2611
2462
  {
2612
2463
  checked: table.getIsAllPageRowsSelected() || table.getIsSomePageRowsSelected() && "indeterminate",
@@ -2622,24 +2473,24 @@ function DataGridTable() {
2622
2473
  const { table, isLoading, props } = useDataGrid();
2623
2474
  const pagination = table.getState().pagination;
2624
2475
  return /* @__PURE__ */ jsxs13(DataGridTableBase, { children: [
2625
- /* @__PURE__ */ jsx21(DataGridTableHead, { children: table.getHeaderGroups().map((headerGroup, index) => {
2626
- return /* @__PURE__ */ jsx21(DataGridTableHeadRow, { headerGroup, children: headerGroup.headers.map((header, index2) => {
2476
+ /* @__PURE__ */ jsx20(DataGridTableHead, { children: table.getHeaderGroups().map((headerGroup, index) => {
2477
+ return /* @__PURE__ */ jsx20(DataGridTableHeadRow, { headerGroup, children: headerGroup.headers.map((header, index2) => {
2627
2478
  const { column } = header;
2628
2479
  return /* @__PURE__ */ jsxs13(DataGridTableHeadRowCell, { header, children: [
2629
2480
  header.isPlaceholder ? null : flexRender(header.column.columnDef.header, header.getContext()),
2630
- props.tableLayout?.columnsResizable && column.getCanResize() && /* @__PURE__ */ jsx21(DataGridTableHeadRowCellResize, { header })
2481
+ props.tableLayout?.columnsResizable && column.getCanResize() && /* @__PURE__ */ jsx20(DataGridTableHeadRowCellResize, { header })
2631
2482
  ] }, index2);
2632
2483
  }) }, index);
2633
2484
  }) }),
2634
- (props.tableLayout?.stripped || !props.tableLayout?.rowBorder) && /* @__PURE__ */ jsx21(DataGridTableRowSpacer, {}),
2635
- /* @__PURE__ */ jsx21(DataGridTableBody, { children: isLoading && props.loadingMode === "skeleton" && pagination?.pageSize ? (
2485
+ (props.tableLayout?.stripped || !props.tableLayout?.rowBorder) && /* @__PURE__ */ jsx20(DataGridTableRowSpacer, {}),
2486
+ /* @__PURE__ */ jsx20(DataGridTableBody, { children: isLoading && props.loadingMode === "skeleton" && pagination?.pageSize ? (
2636
2487
  // Show skeleton loading immediately
2637
- Array.from({ length: pagination.pageSize }).map((_, rowIndex) => /* @__PURE__ */ jsx21(DataGridTableBodyRowSkeleton, { children: table.getVisibleFlatColumns().map((column, colIndex) => {
2638
- return /* @__PURE__ */ jsx21(DataGridTableBodyRowSkeletonCell, { column, children: column.columnDef.meta?.skeleton }, colIndex);
2488
+ Array.from({ length: pagination.pageSize }).map((_, rowIndex) => /* @__PURE__ */ jsx20(DataGridTableBodyRowSkeleton, { children: table.getVisibleFlatColumns().map((column, colIndex) => {
2489
+ return /* @__PURE__ */ jsx20(DataGridTableBodyRowSkeletonCell, { column, children: column.columnDef.meta?.skeleton }, colIndex);
2639
2490
  }) }, rowIndex))
2640
2491
  ) : isLoading && props.loadingMode === "spinner" ? (
2641
2492
  // Show spinner loading immediately
2642
- /* @__PURE__ */ jsx21("tr", { children: /* @__PURE__ */ jsx21("td", { colSpan: table.getVisibleFlatColumns().length, className: "p-8", children: /* @__PURE__ */ jsxs13("div", { className: "flex items-center justify-center", children: [
2493
+ /* @__PURE__ */ jsx20("tr", { children: /* @__PURE__ */ jsx20("td", { colSpan: table.getVisibleFlatColumns().length, className: "p-8", children: /* @__PURE__ */ jsxs13("div", { className: "flex items-center justify-center", children: [
2643
2494
  /* @__PURE__ */ jsxs13(
2644
2495
  "svg",
2645
2496
  {
@@ -2648,7 +2499,7 @@ function DataGridTable() {
2648
2499
  fill: "none",
2649
2500
  viewBox: "0 0 24 24",
2650
2501
  children: [
2651
- /* @__PURE__ */ jsx21(
2502
+ /* @__PURE__ */ jsx20(
2652
2503
  "circle",
2653
2504
  {
2654
2505
  className: "opacity-25",
@@ -2659,7 +2510,7 @@ function DataGridTable() {
2659
2510
  strokeWidth: "4"
2660
2511
  }
2661
2512
  ),
2662
- /* @__PURE__ */ jsx21(
2513
+ /* @__PURE__ */ jsx20(
2663
2514
  "path",
2664
2515
  {
2665
2516
  className: "opacity-75",
@@ -2676,13 +2527,13 @@ function DataGridTable() {
2676
2527
  // Show actual data when not loading
2677
2528
  table.getRowModel().rows.map((row, index) => {
2678
2529
  return /* @__PURE__ */ jsxs13(Fragment4, { children: [
2679
- /* @__PURE__ */ jsx21(DataGridTableBodyRow, { row, children: row.getVisibleCells().map((cell, colIndex) => {
2680
- return /* @__PURE__ */ jsx21(DataGridTableBodyRowCell, { cell, children: flexRender(cell.column.columnDef.cell, cell.getContext()) }, colIndex);
2530
+ /* @__PURE__ */ jsx20(DataGridTableBodyRow, { row, children: row.getVisibleCells().map((cell, colIndex) => {
2531
+ return /* @__PURE__ */ jsx20(DataGridTableBodyRowCell, { cell, children: flexRender(cell.column.columnDef.cell, cell.getContext()) }, colIndex);
2681
2532
  }) }, index),
2682
- row.getIsExpanded() && /* @__PURE__ */ jsx21(DataGridTableBodyRowExpandded, { row })
2533
+ row.getIsExpanded() && /* @__PURE__ */ jsx20(DataGridTableBodyRowExpandded, { row })
2683
2534
  ] }, row.id);
2684
2535
  })
2685
- ) : /* @__PURE__ */ jsx21(DataGridTableEmpty, {}) })
2536
+ ) : /* @__PURE__ */ jsx20(DataGridTableEmpty, {}) })
2686
2537
  ] });
2687
2538
  }
2688
2539
 
@@ -2704,7 +2555,7 @@ import {
2704
2555
  flexRender as flexRender2
2705
2556
  } from "@tanstack/react-table";
2706
2557
  import { GripVertical } from "lucide-react";
2707
- import { jsx as jsx22, jsxs as jsxs14 } from "react/jsx-runtime";
2558
+ import { jsx as jsx21, jsxs as jsxs14 } from "react/jsx-runtime";
2708
2559
  function DataGridTableDndHeader({ header }) {
2709
2560
  const { props } = useDataGrid();
2710
2561
  const { column } = header;
@@ -2720,8 +2571,8 @@ function DataGridTableDndHeader({ header }) {
2720
2571
  width: header.column.getSize(),
2721
2572
  zIndex: isDragging ? 1 : 0
2722
2573
  };
2723
- return /* @__PURE__ */ jsx22(DataGridTableHeadRowCell, { header, dndStyle: style, dndRef: setNodeRef, children: /* @__PURE__ */ jsxs14("div", { className: "flex items-center justify-start gap-0.5", children: [
2724
- /* @__PURE__ */ jsx22(
2574
+ return /* @__PURE__ */ jsx21(DataGridTableHeadRowCell, { header, dndStyle: style, dndRef: setNodeRef, children: /* @__PURE__ */ jsxs14("div", { className: "flex items-center justify-start gap-0.5", children: [
2575
+ /* @__PURE__ */ jsx21(
2725
2576
  Button,
2726
2577
  {
2727
2578
  mode: "icon",
@@ -2731,11 +2582,11 @@ function DataGridTableDndHeader({ header }) {
2731
2582
  ...attributes,
2732
2583
  ...listeners,
2733
2584
  "aria-label": "Drag to reorder",
2734
- children: /* @__PURE__ */ jsx22(GripVertical, { className: "opacity-50", "aria-hidden": "true" })
2585
+ children: /* @__PURE__ */ jsx21(GripVertical, { className: "opacity-50", "aria-hidden": "true" })
2735
2586
  }
2736
2587
  ),
2737
2588
  header.isPlaceholder ? null : flexRender2(header.column.columnDef.header, header.getContext()),
2738
- props.tableLayout?.columnsResizable && column.getCanResize() && /* @__PURE__ */ jsx22(DataGridTableHeadRowCellResize, { header })
2589
+ props.tableLayout?.columnsResizable && column.getCanResize() && /* @__PURE__ */ jsx21(DataGridTableHeadRowCellResize, { header })
2739
2590
  ] }) });
2740
2591
  }
2741
2592
  function DataGridTableDndCell({ cell }) {
@@ -2750,7 +2601,7 @@ function DataGridTableDndCell({ cell }) {
2750
2601
  width: cell.column.getSize(),
2751
2602
  zIndex: isDragging ? 1 : 0
2752
2603
  };
2753
- return /* @__PURE__ */ jsx22(DataGridTableBodyRowCell, { cell, dndStyle: style, dndRef: setNodeRef, children: flexRender2(cell.column.columnDef.cell, cell.getContext()) });
2604
+ return /* @__PURE__ */ jsx21(DataGridTableBodyRowCell, { cell, dndStyle: style, dndRef: setNodeRef, children: flexRender2(cell.column.columnDef.cell, cell.getContext()) });
2754
2605
  }
2755
2606
  function DataGridTableDnd({
2756
2607
  handleDragEnd
@@ -2762,7 +2613,7 @@ function DataGridTableDnd({
2762
2613
  useSensor(TouchSensor, {}),
2763
2614
  useSensor(KeyboardSensor, {})
2764
2615
  );
2765
- return /* @__PURE__ */ jsx22(
2616
+ return /* @__PURE__ */ jsx21(
2766
2617
  DndContext,
2767
2618
  {
2768
2619
  id: useId(),
@@ -2770,37 +2621,37 @@ function DataGridTableDnd({
2770
2621
  modifiers: [restrictToParentElement],
2771
2622
  onDragEnd: handleDragEnd,
2772
2623
  sensors,
2773
- children: /* @__PURE__ */ jsx22("div", { className: "relative", children: /* @__PURE__ */ jsxs14(DataGridTableBase, { children: [
2774
- /* @__PURE__ */ jsx22(DataGridTableHead, { children: table.getHeaderGroups().map((headerGroup, index) => {
2624
+ children: /* @__PURE__ */ jsx21("div", { className: "relative", children: /* @__PURE__ */ jsxs14(DataGridTableBase, { children: [
2625
+ /* @__PURE__ */ jsx21(DataGridTableHead, { children: table.getHeaderGroups().map((headerGroup, index) => {
2775
2626
  console.log("table.getState().columnOrder:", table.getState().columnOrder);
2776
- return /* @__PURE__ */ jsx22(DataGridTableHeadRow, { headerGroup, children: /* @__PURE__ */ jsx22(
2627
+ return /* @__PURE__ */ jsx21(DataGridTableHeadRow, { headerGroup, children: /* @__PURE__ */ jsx21(
2777
2628
  SortableContext,
2778
2629
  {
2779
2630
  items: table.getState().columnOrder,
2780
2631
  strategy: horizontalListSortingStrategy,
2781
- children: headerGroup.headers.map((header, index2) => /* @__PURE__ */ jsx22(DataGridTableDndHeader, { header }, index2))
2632
+ children: headerGroup.headers.map((header, index2) => /* @__PURE__ */ jsx21(DataGridTableDndHeader, { header }, index2))
2782
2633
  }
2783
2634
  ) }, index);
2784
2635
  }) }),
2785
- (props.tableLayout?.stripped || !props.tableLayout?.rowBorder) && /* @__PURE__ */ jsx22(DataGridTableRowSpacer, {}),
2786
- /* @__PURE__ */ jsx22(DataGridTableBody, { children: props.loadingMode === "skeleton" && isLoading && pagination?.pageSize ? Array.from({ length: pagination.pageSize }).map((_, rowIndex) => /* @__PURE__ */ jsx22(DataGridTableBodyRowSkeleton, { children: table.getVisibleFlatColumns().map((column, colIndex) => {
2787
- return /* @__PURE__ */ jsx22(DataGridTableBodyRowSkeletonCell, { column, children: column.columnDef.meta?.skeleton }, colIndex);
2636
+ (props.tableLayout?.stripped || !props.tableLayout?.rowBorder) && /* @__PURE__ */ jsx21(DataGridTableRowSpacer, {}),
2637
+ /* @__PURE__ */ jsx21(DataGridTableBody, { children: props.loadingMode === "skeleton" && isLoading && pagination?.pageSize ? Array.from({ length: pagination.pageSize }).map((_, rowIndex) => /* @__PURE__ */ jsx21(DataGridTableBodyRowSkeleton, { children: table.getVisibleFlatColumns().map((column, colIndex) => {
2638
+ return /* @__PURE__ */ jsx21(DataGridTableBodyRowSkeletonCell, { column, children: column.columnDef.meta?.skeleton }, colIndex);
2788
2639
  }) }, rowIndex)) : table.getRowModel().rows.length ? table.getRowModel().rows.map((row, index) => {
2789
2640
  return /* @__PURE__ */ jsxs14(Fragment6, { children: [
2790
- /* @__PURE__ */ jsx22(DataGridTableBodyRow, { row, children: row.getVisibleCells().map((cell) => {
2791
- return /* @__PURE__ */ jsx22(
2641
+ /* @__PURE__ */ jsx21(DataGridTableBodyRow, { row, children: row.getVisibleCells().map((cell) => {
2642
+ return /* @__PURE__ */ jsx21(
2792
2643
  SortableContext,
2793
2644
  {
2794
2645
  items: table.getState().columnOrder,
2795
2646
  strategy: horizontalListSortingStrategy,
2796
- children: /* @__PURE__ */ jsx22(DataGridTableDndCell, { cell })
2647
+ children: /* @__PURE__ */ jsx21(DataGridTableDndCell, { cell })
2797
2648
  },
2798
2649
  cell.id
2799
2650
  );
2800
2651
  }) }, index),
2801
- row.getIsExpanded() && /* @__PURE__ */ jsx22(DataGridTableBodyRowExpandded, { row })
2652
+ row.getIsExpanded() && /* @__PURE__ */ jsx21(DataGridTableBodyRowExpandded, { row })
2802
2653
  ] }, row.id);
2803
- }) : /* @__PURE__ */ jsx22(DataGridTableEmpty, {}) })
2654
+ }) : /* @__PURE__ */ jsx21(DataGridTableEmpty, {}) })
2804
2655
  ] }) })
2805
2656
  }
2806
2657
  );
@@ -2822,12 +2673,12 @@ import { SortableContext as SortableContext2, useSortable as useSortable2, verti
2822
2673
  import { CSS as CSS3 } from "@dnd-kit/utilities";
2823
2674
  import { flexRender as flexRender3 } from "@tanstack/react-table";
2824
2675
  import { GripHorizontal } from "lucide-react";
2825
- import { jsx as jsx23, jsxs as jsxs15 } from "react/jsx-runtime";
2676
+ import { jsx as jsx22, jsxs as jsxs15 } from "react/jsx-runtime";
2826
2677
  function DataGridTableDndRowHandle({ rowId }) {
2827
2678
  const { attributes, listeners } = useSortable2({
2828
2679
  id: rowId
2829
2680
  });
2830
- return /* @__PURE__ */ jsx23(Button, { variant: "dim", size: "sm", className: "size-7", ...attributes, ...listeners, children: /* @__PURE__ */ jsx23(GripHorizontal, {}) });
2681
+ return /* @__PURE__ */ jsx22(Button, { variant: "dim", size: "sm", className: "size-7", ...attributes, ...listeners, children: /* @__PURE__ */ jsx22(GripHorizontal, {}) });
2831
2682
  }
2832
2683
  function DataGridTableDndRow({ row }) {
2833
2684
  const { transform, transition, setNodeRef, isDragging } = useSortable2({
@@ -2841,8 +2692,8 @@ function DataGridTableDndRow({ row }) {
2841
2692
  zIndex: isDragging ? 1 : 0,
2842
2693
  position: "relative"
2843
2694
  };
2844
- return /* @__PURE__ */ jsx23(DataGridTableBodyRow, { row, dndRef: setNodeRef, dndStyle: style, children: row.getVisibleCells().map((cell, colIndex) => {
2845
- return /* @__PURE__ */ jsx23(DataGridTableBodyRowCell, { cell, children: flexRender3(cell.column.columnDef.cell, cell.getContext()) }, colIndex);
2695
+ return /* @__PURE__ */ jsx22(DataGridTableBodyRow, { row, dndRef: setNodeRef, dndStyle: style, children: row.getVisibleCells().map((cell, colIndex) => {
2696
+ return /* @__PURE__ */ jsx22(DataGridTableBodyRowCell, { cell, children: flexRender3(cell.column.columnDef.cell, cell.getContext()) }, colIndex);
2846
2697
  }) }, row.id);
2847
2698
  }
2848
2699
  function DataGridTableDndRows({
@@ -2856,7 +2707,7 @@ function DataGridTableDndRows({
2856
2707
  useSensor2(TouchSensor2, {}),
2857
2708
  useSensor2(KeyboardSensor2, {})
2858
2709
  );
2859
- return /* @__PURE__ */ jsx23(
2710
+ return /* @__PURE__ */ jsx22(
2860
2711
  DndContext2,
2861
2712
  {
2862
2713
  id: useId2(),
@@ -2864,31 +2715,31 @@ function DataGridTableDndRows({
2864
2715
  modifiers: [restrictToVerticalAxis],
2865
2716
  onDragEnd: handleDragEnd,
2866
2717
  sensors,
2867
- children: /* @__PURE__ */ jsx23("div", { className: "relative", children: /* @__PURE__ */ jsxs15(DataGridTableBase, { children: [
2868
- /* @__PURE__ */ jsx23(DataGridTableHead, { children: table.getHeaderGroups().map((headerGroup, index) => {
2869
- return /* @__PURE__ */ jsx23(DataGridTableHeadRow, { headerGroup, children: headerGroup.headers.map((header, index2) => {
2718
+ children: /* @__PURE__ */ jsx22("div", { className: "relative", children: /* @__PURE__ */ jsxs15(DataGridTableBase, { children: [
2719
+ /* @__PURE__ */ jsx22(DataGridTableHead, { children: table.getHeaderGroups().map((headerGroup, index) => {
2720
+ return /* @__PURE__ */ jsx22(DataGridTableHeadRow, { headerGroup, children: headerGroup.headers.map((header, index2) => {
2870
2721
  const { column } = header;
2871
2722
  return /* @__PURE__ */ jsxs15(DataGridTableHeadRowCell, { header, children: [
2872
2723
  header.isPlaceholder ? null : flexRender3(header.column.columnDef.header, header.getContext()),
2873
- props.tableLayout?.columnsResizable && column.getCanResize() && /* @__PURE__ */ jsx23(DataGridTableHeadRowCellResize, { header })
2724
+ props.tableLayout?.columnsResizable && column.getCanResize() && /* @__PURE__ */ jsx22(DataGridTableHeadRowCellResize, { header })
2874
2725
  ] }, index2);
2875
2726
  }) }, index);
2876
2727
  }) }),
2877
- (props.tableLayout?.stripped || !props.tableLayout?.rowBorder) && /* @__PURE__ */ jsx23(DataGridTableRowSpacer, {}),
2878
- /* @__PURE__ */ jsx23(DataGridTableBody, { children: props.loadingMode === "skeleton" && isLoading && pagination?.pageSize ? Array.from({ length: pagination.pageSize }).map((_, rowIndex) => /* @__PURE__ */ jsx23(DataGridTableBodyRowSkeleton, { children: table.getVisibleFlatColumns().map((column, colIndex) => {
2879
- return /* @__PURE__ */ jsx23(DataGridTableBodyRowSkeletonCell, { column, children: column.columnDef.meta?.skeleton }, colIndex);
2880
- }) }, rowIndex)) : table.getRowModel().rows.length ? /* @__PURE__ */ jsx23(SortableContext2, { items: dataIds, strategy: verticalListSortingStrategy, children: table.getRowModel().rows.map((row) => {
2881
- return /* @__PURE__ */ jsx23(DataGridTableDndRow, { row }, row.id);
2882
- }) }) : /* @__PURE__ */ jsx23(DataGridTableEmpty, {}) })
2728
+ (props.tableLayout?.stripped || !props.tableLayout?.rowBorder) && /* @__PURE__ */ jsx22(DataGridTableRowSpacer, {}),
2729
+ /* @__PURE__ */ jsx22(DataGridTableBody, { children: props.loadingMode === "skeleton" && isLoading && pagination?.pageSize ? Array.from({ length: pagination.pageSize }).map((_, rowIndex) => /* @__PURE__ */ jsx22(DataGridTableBodyRowSkeleton, { children: table.getVisibleFlatColumns().map((column, colIndex) => {
2730
+ return /* @__PURE__ */ jsx22(DataGridTableBodyRowSkeletonCell, { column, children: column.columnDef.meta?.skeleton }, colIndex);
2731
+ }) }, rowIndex)) : table.getRowModel().rows.length ? /* @__PURE__ */ jsx22(SortableContext2, { items: dataIds, strategy: verticalListSortingStrategy, children: table.getRowModel().rows.map((row) => {
2732
+ return /* @__PURE__ */ jsx22(DataGridTableDndRow, { row }, row.id);
2733
+ }) }) : /* @__PURE__ */ jsx22(DataGridTableEmpty, {}) })
2883
2734
  ] }) })
2884
2735
  }
2885
2736
  );
2886
2737
  }
2887
2738
 
2888
2739
  // src/ui/default/description-list.tsx
2889
- import { jsx as jsx24 } from "react/jsx-runtime";
2740
+ import { jsx as jsx23 } from "react/jsx-runtime";
2890
2741
  var DescriptionList = ({ className, ref, ...props }) => {
2891
- return /* @__PURE__ */ jsx24(
2742
+ return /* @__PURE__ */ jsx23(
2892
2743
  "dl",
2893
2744
  {
2894
2745
  ref,
@@ -2901,7 +2752,7 @@ var DescriptionList = ({ className, ref, ...props }) => {
2901
2752
  );
2902
2753
  };
2903
2754
  var DescriptionTerm = ({ className, ref, ...props }) => {
2904
- return /* @__PURE__ */ jsx24(
2755
+ return /* @__PURE__ */ jsx23(
2905
2756
  "dt",
2906
2757
  {
2907
2758
  ref,
@@ -2914,7 +2765,7 @@ var DescriptionTerm = ({ className, ref, ...props }) => {
2914
2765
  );
2915
2766
  };
2916
2767
  var DescriptionDetails = ({ className, ...props }) => {
2917
- return /* @__PURE__ */ jsx24(
2768
+ return /* @__PURE__ */ jsx23(
2918
2769
  "dd",
2919
2770
  {
2920
2771
  ...props,
@@ -2929,10 +2780,10 @@ DescriptionList.Term = DescriptionTerm;
2929
2780
  DescriptionList.Details = DescriptionDetails;
2930
2781
 
2931
2782
  // src/ui/default/empty.tsx
2932
- import { cva as cva9 } from "class-variance-authority";
2933
- import { jsx as jsx25 } from "react/jsx-runtime";
2783
+ import { cva as cva8 } from "class-variance-authority";
2784
+ import { jsx as jsx24 } from "react/jsx-runtime";
2934
2785
  function Empty({ className, ...props }) {
2935
- return /* @__PURE__ */ jsx25(
2786
+ return /* @__PURE__ */ jsx24(
2936
2787
  "div",
2937
2788
  {
2938
2789
  "data-slot": "empty",
@@ -2945,7 +2796,7 @@ function Empty({ className, ...props }) {
2945
2796
  );
2946
2797
  }
2947
2798
  function EmptyHeader({ className, ...props }) {
2948
- return /* @__PURE__ */ jsx25(
2799
+ return /* @__PURE__ */ jsx24(
2949
2800
  "div",
2950
2801
  {
2951
2802
  "data-slot": "empty-header",
@@ -2954,7 +2805,7 @@ function EmptyHeader({ className, ...props }) {
2954
2805
  }
2955
2806
  );
2956
2807
  }
2957
- var emptyMediaVariants = cva9(
2808
+ var emptyMediaVariants = cva8(
2958
2809
  "flex shrink-0 items-center justify-center mb-2 [&_svg]:pointer-events-none [&_svg]:shrink-0",
2959
2810
  {
2960
2811
  variants: {
@@ -2973,7 +2824,7 @@ function EmptyMedia({
2973
2824
  variant = "default",
2974
2825
  ...props
2975
2826
  }) {
2976
- return /* @__PURE__ */ jsx25(
2827
+ return /* @__PURE__ */ jsx24(
2977
2828
  "div",
2978
2829
  {
2979
2830
  "data-slot": "empty-icon",
@@ -2984,7 +2835,7 @@ function EmptyMedia({
2984
2835
  );
2985
2836
  }
2986
2837
  function EmptyTitle({ className, ...props }) {
2987
- return /* @__PURE__ */ jsx25(
2838
+ return /* @__PURE__ */ jsx24(
2988
2839
  "div",
2989
2840
  {
2990
2841
  "data-slot": "empty-title",
@@ -2994,7 +2845,7 @@ function EmptyTitle({ className, ...props }) {
2994
2845
  );
2995
2846
  }
2996
2847
  function EmptyDescription({ className, ...props }) {
2997
- return /* @__PURE__ */ jsx25(
2848
+ return /* @__PURE__ */ jsx24(
2998
2849
  "div",
2999
2850
  {
3000
2851
  "data-slot": "empty-description",
@@ -3007,7 +2858,7 @@ function EmptyDescription({ className, ...props }) {
3007
2858
  );
3008
2859
  }
3009
2860
  function EmptyContent({ className, ...props }) {
3010
- return /* @__PURE__ */ jsx25(
2861
+ return /* @__PURE__ */ jsx24(
3011
2862
  "div",
3012
2863
  {
3013
2864
  "data-slot": "empty-content",
@@ -3022,13 +2873,13 @@ function EmptyContent({ className, ...props }) {
3022
2873
 
3023
2874
  // src/ui/default/field.tsx
3024
2875
  import { useMemo as useMemo2 } from "react";
3025
- import { cva as cva11 } from "class-variance-authority";
2876
+ import { cva as cva10 } from "class-variance-authority";
3026
2877
 
3027
2878
  // src/ui/default/label.tsx
3028
- import { cva as cva10 } from "class-variance-authority";
2879
+ import { cva as cva9 } from "class-variance-authority";
3029
2880
  import { Label as LabelPrimitive } from "radix-ui";
3030
- import { jsx as jsx26 } from "react/jsx-runtime";
3031
- var labelVariants = cva10(
2881
+ import { jsx as jsx25 } from "react/jsx-runtime";
2882
+ var labelVariants = cva9(
3032
2883
  "text-sm leading-none text-foreground peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
3033
2884
  {
3034
2885
  variants: {
@@ -3047,7 +2898,7 @@ function Label({
3047
2898
  variant,
3048
2899
  ...props
3049
2900
  }) {
3050
- return /* @__PURE__ */ jsx26(
2901
+ return /* @__PURE__ */ jsx25(
3051
2902
  LabelPrimitive.Root,
3052
2903
  {
3053
2904
  "data-slot": "label",
@@ -3058,9 +2909,9 @@ function Label({
3058
2909
  }
3059
2910
 
3060
2911
  // src/ui/default/field.tsx
3061
- import { jsx as jsx27, jsxs as jsxs16 } from "react/jsx-runtime";
2912
+ import { jsx as jsx26, jsxs as jsxs16 } from "react/jsx-runtime";
3062
2913
  function FieldSet({ className, ...props }) {
3063
- return /* @__PURE__ */ jsx27(
2914
+ return /* @__PURE__ */ jsx26(
3064
2915
  "fieldset",
3065
2916
  {
3066
2917
  "data-slot": "field-set",
@@ -3078,7 +2929,7 @@ function FieldLegend({
3078
2929
  variant = "legend",
3079
2930
  ...props
3080
2931
  }) {
3081
- return /* @__PURE__ */ jsx27(
2932
+ return /* @__PURE__ */ jsx26(
3082
2933
  "legend",
3083
2934
  {
3084
2935
  "data-slot": "field-legend",
@@ -3094,7 +2945,7 @@ function FieldLegend({
3094
2945
  );
3095
2946
  }
3096
2947
  function FieldGroup({ className, ...props }) {
3097
- return /* @__PURE__ */ jsx27(
2948
+ return /* @__PURE__ */ jsx26(
3098
2949
  "div",
3099
2950
  {
3100
2951
  "data-slot": "field-group",
@@ -3106,7 +2957,7 @@ function FieldGroup({ className, ...props }) {
3106
2957
  }
3107
2958
  );
3108
2959
  }
3109
- var fieldVariants = cva11("group/field flex w-full gap-3 data-[invalid=true]:text-destructive", {
2960
+ var fieldVariants = cva10("group/field flex w-full gap-3 data-[invalid=true]:text-destructive", {
3110
2961
  variants: {
3111
2962
  orientation: {
3112
2963
  vertical: ["flex-col *:w-full [&>.sr-only]:w-auto"],
@@ -3131,7 +2982,7 @@ function Field({
3131
2982
  orientation = "vertical",
3132
2983
  ...props
3133
2984
  }) {
3134
- return /* @__PURE__ */ jsx27(
2985
+ return /* @__PURE__ */ jsx26(
3135
2986
  "div",
3136
2987
  {
3137
2988
  role: "group",
@@ -3143,7 +2994,7 @@ function Field({
3143
2994
  );
3144
2995
  }
3145
2996
  function FieldContent({ className, ...props }) {
3146
- return /* @__PURE__ */ jsx27(
2997
+ return /* @__PURE__ */ jsx26(
3147
2998
  "div",
3148
2999
  {
3149
3000
  "data-slot": "field-content",
@@ -3153,7 +3004,7 @@ function FieldContent({ className, ...props }) {
3153
3004
  );
3154
3005
  }
3155
3006
  function FieldLabel({ className, ...props }) {
3156
- return /* @__PURE__ */ jsx27(
3007
+ return /* @__PURE__ */ jsx26(
3157
3008
  Label,
3158
3009
  {
3159
3010
  "data-slot": "field-label",
@@ -3168,7 +3019,7 @@ function FieldLabel({ className, ...props }) {
3168
3019
  );
3169
3020
  }
3170
3021
  function FieldTitle({ className, ...props }) {
3171
- return /* @__PURE__ */ jsx27(
3022
+ return /* @__PURE__ */ jsx26(
3172
3023
  "div",
3173
3024
  {
3174
3025
  "data-slot": "field-label",
@@ -3181,7 +3032,7 @@ function FieldTitle({ className, ...props }) {
3181
3032
  );
3182
3033
  }
3183
3034
  function FieldDescription({ className, ...props }) {
3184
- return /* @__PURE__ */ jsx27(
3035
+ return /* @__PURE__ */ jsx26(
3185
3036
  "p",
3186
3037
  {
3187
3038
  "data-slot": "field-description",
@@ -3211,8 +3062,8 @@ function FieldSeparator({
3211
3062
  ),
3212
3063
  ...props,
3213
3064
  children: [
3214
- /* @__PURE__ */ jsx27(Separator, { className: "absolute inset-0 top-1/2" }),
3215
- children && /* @__PURE__ */ jsx27(
3065
+ /* @__PURE__ */ jsx26(Separator, { className: "absolute inset-0 top-1/2" }),
3066
+ children && /* @__PURE__ */ jsx26(
3216
3067
  "span",
3217
3068
  {
3218
3069
  className: "relative mx-auto block w-fit bg-background px-2 text-muted-foreground",
@@ -3240,12 +3091,12 @@ function FieldError({
3240
3091
  if (errors?.length === 1) {
3241
3092
  return errors[0]?.message;
3242
3093
  }
3243
- return /* @__PURE__ */ jsx27("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: errors.map((error, index) => error?.message && /* @__PURE__ */ jsx27("li", { children: error.message }, index)) });
3094
+ return /* @__PURE__ */ jsx26("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: errors.map((error, index) => error?.message && /* @__PURE__ */ jsx26("li", { children: error.message }, index)) });
3244
3095
  }, [children, errors]);
3245
3096
  if (!content) {
3246
3097
  return null;
3247
3098
  }
3248
- return /* @__PURE__ */ jsx27(
3099
+ return /* @__PURE__ */ jsx26(
3249
3100
  "div",
3250
3101
  {
3251
3102
  role: "alert",
@@ -3258,26 +3109,26 @@ function FieldError({
3258
3109
  }
3259
3110
 
3260
3111
  // src/ui/default/filters.tsx
3261
- import { createContext as createContext8, useCallback as useCallback2, useContext as useContext8, useMemo as useMemo3, useState as useState3 } from "react";
3262
- import { cva as cva13 } from "class-variance-authority";
3112
+ import { createContext as createContext7, useCallback as useCallback2, useContext as useContext7, useMemo as useMemo3, useState as useState3 } from "react";
3113
+ import { cva as cva12 } from "class-variance-authority";
3263
3114
  import { AlertCircle, Check as Check6, Plus as Plus2, X } from "lucide-react";
3264
3115
 
3265
3116
  // src/ui/default/switch.tsx
3266
- import * as React6 from "react";
3267
- import { cva as cva12 } from "class-variance-authority";
3117
+ import * as React5 from "react";
3118
+ import { cva as cva11 } from "class-variance-authority";
3268
3119
  import { Switch as SwitchPrimitive } from "radix-ui";
3269
- import { jsx as jsx28 } from "react/jsx-runtime";
3270
- var SwitchContext = React6.createContext({
3120
+ import { jsx as jsx27 } from "react/jsx-runtime";
3121
+ var SwitchContext = React5.createContext({
3271
3122
  permanent: false
3272
3123
  });
3273
3124
  var useSwitchContext = () => {
3274
- const context = React6.useContext(SwitchContext);
3125
+ const context = React5.useContext(SwitchContext);
3275
3126
  if (!context) {
3276
3127
  throw new Error("SwitchIndicator must be used within a Switch component");
3277
3128
  }
3278
3129
  return context;
3279
3130
  };
3280
- var switchVariants = cva12(
3131
+ var switchVariants = cva11(
3281
3132
  `
3282
3133
  relative peer inline-flex shrink-0 cursor-pointer items-center rounded-full transition-colors
3283
3134
  focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background
@@ -3309,7 +3160,7 @@ var switchVariants = cva12(
3309
3160
  }
3310
3161
  }
3311
3162
  );
3312
- var switchThumbVariants = cva12(
3163
+ var switchThumbVariants = cva11(
3313
3164
  "pointer-events-none block bg-white w-1/2 h-[calc(100%-4px)] shadow-lg ring-0 transition-transform start-0 data-[state=unchecked]:translate-x-[2px] data-[state=checked]:translate-x-[calc(100%-2px)] rtl:data-[state=unchecked]:-translate-x-[2px] rtl:data-[state=checked]:-translate-x-[calc(100%-2px)]",
3314
3165
  {
3315
3166
  variants: {
@@ -3338,7 +3189,7 @@ var switchThumbVariants = cva12(
3338
3189
  }
3339
3190
  }
3340
3191
  );
3341
- var switchIndicatorVariants = cva12(
3192
+ var switchIndicatorVariants = cva11(
3342
3193
  "text-sm font-medium absolute mx-[2px] top-1/2 w-1/2 -translate-y-1/2 flex pointer-events-none items-center justify-center text-center transition-transform duration-300 [transition-timing-function:cubic-bezier(0.16,1,0.3,1)]",
3343
3194
  {
3344
3195
  variants: {
@@ -3385,7 +3236,7 @@ function SwitchWrapper({
3385
3236
  permanent = false,
3386
3237
  ...props
3387
3238
  }) {
3388
- return /* @__PURE__ */ jsx28(SwitchContext.Provider, { value: { permanent }, children: /* @__PURE__ */ jsx28(
3239
+ return /* @__PURE__ */ jsx27(SwitchContext.Provider, { value: { permanent }, children: /* @__PURE__ */ jsx27(
3389
3240
  "div",
3390
3241
  {
3391
3242
  "data-slot": "switch-wrapper",
@@ -3404,13 +3255,13 @@ function Switch({
3404
3255
  }) {
3405
3256
  const context = useSwitchContext();
3406
3257
  const permanent = context?.permanent ?? false;
3407
- return /* @__PURE__ */ jsx28(
3258
+ return /* @__PURE__ */ jsx27(
3408
3259
  SwitchPrimitive.Root,
3409
3260
  {
3410
3261
  "data-slot": "switch",
3411
3262
  className: cn(switchVariants({ shape, size, permanent }), className),
3412
3263
  ...props,
3413
- children: /* @__PURE__ */ jsx28(SwitchPrimitive.Thumb, { className: cn(switchThumbVariants({ shape, size }), thumbClassName) })
3264
+ children: /* @__PURE__ */ jsx27(SwitchPrimitive.Thumb, { className: cn(switchThumbVariants({ shape, size }), thumbClassName) })
3414
3265
  }
3415
3266
  );
3416
3267
  }
@@ -3421,7 +3272,7 @@ function SwitchIndicator({
3421
3272
  }) {
3422
3273
  const context = useSwitchContext();
3423
3274
  const permanent = context?.permanent ?? false;
3424
- return /* @__PURE__ */ jsx28(
3275
+ return /* @__PURE__ */ jsx27(
3425
3276
  "span",
3426
3277
  {
3427
3278
  "data-slot": "switch-indicator",
@@ -3432,7 +3283,7 @@ function SwitchIndicator({
3432
3283
  }
3433
3284
 
3434
3285
  // src/ui/default/filters.tsx
3435
- import { Fragment as Fragment7, jsx as jsx29, jsxs as jsxs17 } from "react/jsx-runtime";
3286
+ import { Fragment as Fragment7, jsx as jsx28, jsxs as jsxs17 } from "react/jsx-runtime";
3436
3287
  var DEFAULT_I18N = {
3437
3288
  // UI Labels
3438
3289
  addFilter: "Add filter",
@@ -3501,7 +3352,7 @@ var DEFAULT_I18N = {
3501
3352
  invalid: "Invalid input format"
3502
3353
  }
3503
3354
  };
3504
- var FilterContext = createContext8({
3355
+ var FilterContext = createContext7({
3505
3356
  variant: "outline",
3506
3357
  size: "md",
3507
3358
  radius: "md",
@@ -3517,8 +3368,8 @@ var FilterContext = createContext8({
3517
3368
  trigger: void 0,
3518
3369
  allowMultiple: true
3519
3370
  });
3520
- var useFilterContext = () => useContext8(FilterContext);
3521
- var filterInputVariants = cva13(
3371
+ var useFilterContext = () => useContext7(FilterContext);
3372
+ var filterInputVariants = cva12(
3522
3373
  [
3523
3374
  "transition shrink-0 outline-none text-foreground relative flex items-center",
3524
3375
  "has-[[data-slot=filters-input]:focus-visible]:ring-ring/30",
@@ -3556,7 +3407,7 @@ var filterInputVariants = cva13(
3556
3407
  }
3557
3408
  }
3558
3409
  );
3559
- var filterRemoveButtonVariants = cva13(
3410
+ var filterRemoveButtonVariants = cva12(
3560
3411
  [
3561
3412
  "inline-flex items-center shrink-0 justify-center transition text-muted-foreground hover:text-foreground"
3562
3413
  ],
@@ -3588,7 +3439,7 @@ var filterRemoveButtonVariants = cva13(
3588
3439
  }
3589
3440
  }
3590
3441
  );
3591
- var filterAddButtonVariants = cva13(
3442
+ var filterAddButtonVariants = cva12(
3592
3443
  [
3593
3444
  "inline-flex items-center shrink-0 justify-center transition text-foreground shadow-xs shadow-black/5",
3594
3445
  "[&_svg:not([role=img]):not([class*=text-]):not([class*=opacity-])]:opacity-60"
@@ -3620,7 +3471,7 @@ var filterAddButtonVariants = cva13(
3620
3471
  }
3621
3472
  }
3622
3473
  );
3623
- var filterOperatorVariants = cva13(
3474
+ var filterOperatorVariants = cva12(
3624
3475
  [
3625
3476
  "transition text-muted-foreground hover:text-foreground data-[state=open]:text-foreground shrink-0 flex items-center relative focus-visible:z-1"
3626
3477
  ],
@@ -3647,7 +3498,7 @@ var filterOperatorVariants = cva13(
3647
3498
  }
3648
3499
  }
3649
3500
  );
3650
- var filterFieldLabelVariants = cva13(
3501
+ var filterFieldLabelVariants = cva12(
3651
3502
  [
3652
3503
  "flex gap-1.5 shrink-0 px-1.5 py-1 items-center text-foreground",
3653
3504
  "[&_svg:not([class*=size-])]:size-3.5 [&_svg:not([class*=opacity-])]:opacity-60"
@@ -3674,7 +3525,7 @@ var filterFieldLabelVariants = cva13(
3674
3525
  }
3675
3526
  }
3676
3527
  );
3677
- var filterFieldValueVariants = cva13(
3528
+ var filterFieldValueVariants = cva12(
3678
3529
  "text-foreground transition shrink-0 flex items-center gap-1 relative focus-visible:z-1",
3679
3530
  {
3680
3531
  variants: {
@@ -3699,7 +3550,7 @@ var filterFieldValueVariants = cva13(
3699
3550
  }
3700
3551
  }
3701
3552
  );
3702
- var filterFieldAddonVariants = cva13("text-foreground shrink-0 flex items-center justify-center", {
3553
+ var filterFieldAddonVariants = cva12("text-foreground shrink-0 flex items-center justify-center", {
3703
3554
  variants: {
3704
3555
  variant: {
3705
3556
  solid: "",
@@ -3716,7 +3567,7 @@ var filterFieldAddonVariants = cva13("text-foreground shrink-0 flex items-center
3716
3567
  size: "md"
3717
3568
  }
3718
3569
  });
3719
- var filterFieldBetweenVariants = cva13("text-muted-foreground shrink-0 flex items-center", {
3570
+ var filterFieldBetweenVariants = cva12("text-muted-foreground shrink-0 flex items-center", {
3720
3571
  variants: {
3721
3572
  variant: {
3722
3573
  solid: "bg-secondary",
@@ -3733,7 +3584,7 @@ var filterFieldBetweenVariants = cva13("text-muted-foreground shrink-0 flex item
3733
3584
  size: "md"
3734
3585
  }
3735
3586
  });
3736
- var filtersContainerVariants = cva13("flex flex-wrap items-center", {
3587
+ var filtersContainerVariants = cva12("flex flex-wrap items-center", {
3737
3588
  variants: {
3738
3589
  variant: {
3739
3590
  solid: "gap-2",
@@ -3750,7 +3601,7 @@ var filtersContainerVariants = cva13("flex flex-wrap items-center", {
3750
3601
  size: "md"
3751
3602
  }
3752
3603
  });
3753
- var filterItemVariants = cva13("flex items-center shadow-xs shadow-black/5", {
3604
+ var filterItemVariants = cva12("flex items-center shadow-xs shadow-black/5", {
3754
3605
  variants: {
3755
3606
  variant: {
3756
3607
  solid: "gap-px",
@@ -3843,7 +3694,7 @@ function FilterInput({
3843
3694
  ),
3844
3695
  "data-slot": "filters-input-wrapper",
3845
3696
  children: [
3846
- field?.prefix && /* @__PURE__ */ jsx29(
3697
+ field?.prefix && /* @__PURE__ */ jsx28(
3847
3698
  "div",
3848
3699
  {
3849
3700
  "data-slot": "filters-prefix",
@@ -3852,7 +3703,7 @@ function FilterInput({
3852
3703
  }
3853
3704
  ),
3854
3705
  /* @__PURE__ */ jsxs17("div", { className: "flex w-full items-stretch", children: [
3855
- /* @__PURE__ */ jsx29(
3706
+ /* @__PURE__ */ jsx28(
3856
3707
  "input",
3857
3708
  {
3858
3709
  className: "w-full outline-none",
@@ -3866,11 +3717,11 @@ function FilterInput({
3866
3717
  }
3867
3718
  ),
3868
3719
  !isValid && validationMessage && /* @__PURE__ */ jsxs17(Tooltip, { children: [
3869
- /* @__PURE__ */ jsx29(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx29("div", { className: "-translate-y-1/2 absolute top-1/2 right-2 flex items-center", children: /* @__PURE__ */ jsx29(AlertCircle, { className: "size-3.5 text-destructive" }) }) }),
3870
- /* @__PURE__ */ jsx29(TooltipContent, { children: /* @__PURE__ */ jsx29("p", { className: "text-sm", children: validationMessage }) })
3720
+ /* @__PURE__ */ jsx28(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx28("div", { className: "-translate-y-1/2 absolute top-1/2 right-2 flex items-center", children: /* @__PURE__ */ jsx28(AlertCircle, { className: "size-3.5 text-destructive" }) }) }),
3721
+ /* @__PURE__ */ jsx28(TooltipContent, { children: /* @__PURE__ */ jsx28("p", { className: "text-sm", children: validationMessage }) })
3871
3722
  ] })
3872
3723
  ] }),
3873
- field?.suffix && /* @__PURE__ */ jsx29(
3724
+ field?.suffix && /* @__PURE__ */ jsx28(
3874
3725
  "div",
3875
3726
  {
3876
3727
  "data-slot": "filters-suffix",
@@ -3882,9 +3733,9 @@ function FilterInput({
3882
3733
  }
3883
3734
  );
3884
3735
  }
3885
- function FilterRemoveButton({ className, icon = /* @__PURE__ */ jsx29(X, {}), ...props }) {
3736
+ function FilterRemoveButton({ className, icon = /* @__PURE__ */ jsx28(X, {}), ...props }) {
3886
3737
  const context = useFilterContext();
3887
- return /* @__PURE__ */ jsx29(
3738
+ return /* @__PURE__ */ jsx28(
3888
3739
  "button",
3889
3740
  {
3890
3741
  "data-slot": "filters-remove",
@@ -4064,21 +3915,21 @@ function FilterOperatorDropdown({
4064
3915
  );
4065
3916
  }
4066
3917
  return /* @__PURE__ */ jsxs17(DropdownMenu, { children: [
4067
- /* @__PURE__ */ jsx29(
3918
+ /* @__PURE__ */ jsx28(
4068
3919
  DropdownMenuTrigger,
4069
3920
  {
4070
3921
  className: filterOperatorVariants({ variant: context.variant, size: context.size }),
4071
3922
  children: operatorLabel
4072
3923
  }
4073
3924
  ),
4074
- /* @__PURE__ */ jsx29(DropdownMenuContent, { align: "start", className: "w-fit min-w-fit", children: operators.map((op) => /* @__PURE__ */ jsxs17(
3925
+ /* @__PURE__ */ jsx28(DropdownMenuContent, { align: "start", className: "w-fit min-w-fit", children: operators.map((op) => /* @__PURE__ */ jsxs17(
4075
3926
  DropdownMenuItem,
4076
3927
  {
4077
3928
  onClick: () => onChange(op.value),
4078
3929
  className: "flex items-center justify-between",
4079
3930
  children: [
4080
- /* @__PURE__ */ jsx29("span", { children: op.label }),
4081
- /* @__PURE__ */ jsx29(
3931
+ /* @__PURE__ */ jsx28("span", { children: op.label }),
3932
+ /* @__PURE__ */ jsx28(
4082
3933
  Check6,
4083
3934
  {
4084
3935
  className: `ms-auto text-primary ${op.value === operator ? "opacity-100" : "opacity-0"}`
@@ -4109,8 +3960,8 @@ function SelectOptionsPopover({
4109
3960
  onClose?.();
4110
3961
  };
4111
3962
  if (inline) {
4112
- return /* @__PURE__ */ jsx29("div", { className: "w-full", children: /* @__PURE__ */ jsxs17(Command, { children: [
4113
- field.searchable !== false && /* @__PURE__ */ jsx29(
3963
+ return /* @__PURE__ */ jsx28("div", { className: "w-full", children: /* @__PURE__ */ jsxs17(Command, { children: [
3964
+ field.searchable !== false && /* @__PURE__ */ jsx28(
4114
3965
  CommandInput,
4115
3966
  {
4116
3967
  placeholder: context.i18n.placeholders.searchField(field.label || ""),
@@ -4120,8 +3971,8 @@ function SelectOptionsPopover({
4120
3971
  }
4121
3972
  ),
4122
3973
  /* @__PURE__ */ jsxs17(CommandList, { children: [
4123
- /* @__PURE__ */ jsx29(CommandEmpty, { children: context.i18n.noResultsFound }),
4124
- selectedOptions.length > 0 && /* @__PURE__ */ jsx29(CommandGroup, { heading: field.label || "Selected", children: selectedOptions.map((option) => /* @__PURE__ */ jsxs17(
3974
+ /* @__PURE__ */ jsx28(CommandEmpty, { children: context.i18n.noResultsFound }),
3975
+ selectedOptions.length > 0 && /* @__PURE__ */ jsx28(CommandGroup, { heading: field.label || "Selected", children: selectedOptions.map((option) => /* @__PURE__ */ jsxs17(
4125
3976
  CommandItem,
4126
3977
  {
4127
3978
  className: "group flex items-center gap-2",
@@ -4143,15 +3994,15 @@ function SelectOptionsPopover({
4143
3994
  },
4144
3995
  children: [
4145
3996
  option.icon && option.icon,
4146
- /* @__PURE__ */ jsx29("span", { className: "truncate text-accent-foreground", children: option.label }),
4147
- /* @__PURE__ */ jsx29(Check6, { className: "ms-auto text-primary" })
3997
+ /* @__PURE__ */ jsx28("span", { className: "truncate text-accent-foreground", children: option.label }),
3998
+ /* @__PURE__ */ jsx28(Check6, { className: "ms-auto text-primary" })
4148
3999
  ]
4149
4000
  },
4150
4001
  String(option.value)
4151
4002
  )) }),
4152
4003
  unselectedOptions.length > 0 && /* @__PURE__ */ jsxs17(Fragment7, { children: [
4153
- selectedOptions.length > 0 && /* @__PURE__ */ jsx29(CommandSeparator, {}),
4154
- /* @__PURE__ */ jsx29(CommandGroup, { children: unselectedOptions.map((option) => /* @__PURE__ */ jsxs17(
4004
+ selectedOptions.length > 0 && /* @__PURE__ */ jsx28(CommandSeparator, {}),
4005
+ /* @__PURE__ */ jsx28(CommandGroup, { children: unselectedOptions.map((option) => /* @__PURE__ */ jsxs17(
4155
4006
  CommandItem,
4156
4007
  {
4157
4008
  className: "group flex items-center gap-2",
@@ -4178,8 +4029,8 @@ function SelectOptionsPopover({
4178
4029
  },
4179
4030
  children: [
4180
4031
  option.icon && option.icon,
4181
- /* @__PURE__ */ jsx29("span", { className: "truncate text-accent-foreground", children: option.label }),
4182
- /* @__PURE__ */ jsx29(Check6, { className: "ms-auto text-primary opacity-0" })
4032
+ /* @__PURE__ */ jsx28("span", { className: "truncate text-accent-foreground", children: option.label }),
4033
+ /* @__PURE__ */ jsx28(Check6, { className: "ms-auto text-primary opacity-0" })
4183
4034
  ]
4184
4035
  },
4185
4036
  String(option.value)
@@ -4199,7 +4050,7 @@ function SelectOptionsPopover({
4199
4050
  }
4200
4051
  },
4201
4052
  children: [
4202
- /* @__PURE__ */ jsx29(
4053
+ /* @__PURE__ */ jsx28(
4203
4054
  PopoverTrigger,
4204
4055
  {
4205
4056
  className: filterFieldValueVariants({
@@ -4207,20 +4058,20 @@ function SelectOptionsPopover({
4207
4058
  size: context.size,
4208
4059
  cursorPointer: context.cursorPointer
4209
4060
  }),
4210
- children: /* @__PURE__ */ jsx29("div", { className: "flex items-center gap-1.5", children: field.customValueRenderer ? field.customValueRenderer(values, field.options || []) : /* @__PURE__ */ jsxs17(Fragment7, { children: [
4211
- selectedOptions.length > 0 && /* @__PURE__ */ jsx29(
4061
+ children: /* @__PURE__ */ jsx28("div", { className: "flex items-center gap-1.5", children: field.customValueRenderer ? field.customValueRenderer(values, field.options || []) : /* @__PURE__ */ jsxs17(Fragment7, { children: [
4062
+ selectedOptions.length > 0 && /* @__PURE__ */ jsx28(
4212
4063
  "div",
4213
4064
  {
4214
4065
  className: cn("-space-x-1.5 flex items-center", field.selectedOptionsClassName),
4215
- children: selectedOptions.slice(0, 3).map((option) => /* @__PURE__ */ jsx29("div", { children: option.icon }, String(option.value)))
4066
+ children: selectedOptions.slice(0, 3).map((option) => /* @__PURE__ */ jsx28("div", { children: option.icon }, String(option.value)))
4216
4067
  }
4217
4068
  ),
4218
4069
  selectedOptions.length === 1 ? selectedOptions[0].label : selectedOptions.length > 1 ? `${selectedOptions.length} ${context.i18n.selectedCount}` : context.i18n.select
4219
4070
  ] }) })
4220
4071
  }
4221
4072
  ),
4222
- /* @__PURE__ */ jsx29(PopoverContent, { align: "start", className: cn("w-[200px] p-0", field.className), children: /* @__PURE__ */ jsxs17(Command, { children: [
4223
- field.searchable !== false && /* @__PURE__ */ jsx29(
4073
+ /* @__PURE__ */ jsx28(PopoverContent, { align: "start", className: cn("w-[200px] p-0", field.className), children: /* @__PURE__ */ jsxs17(Command, { children: [
4074
+ field.searchable !== false && /* @__PURE__ */ jsx28(
4224
4075
  CommandInput,
4225
4076
  {
4226
4077
  placeholder: context.i18n.placeholders.searchField(field.label || ""),
@@ -4230,8 +4081,8 @@ function SelectOptionsPopover({
4230
4081
  }
4231
4082
  ),
4232
4083
  /* @__PURE__ */ jsxs17(CommandList, { children: [
4233
- /* @__PURE__ */ jsx29(CommandEmpty, { children: context.i18n.noResultsFound }),
4234
- selectedOptions.length > 0 && /* @__PURE__ */ jsx29(CommandGroup, { children: selectedOptions.map((option) => /* @__PURE__ */ jsxs17(
4084
+ /* @__PURE__ */ jsx28(CommandEmpty, { children: context.i18n.noResultsFound }),
4085
+ selectedOptions.length > 0 && /* @__PURE__ */ jsx28(CommandGroup, { children: selectedOptions.map((option) => /* @__PURE__ */ jsxs17(
4235
4086
  CommandItem,
4236
4087
  {
4237
4088
  className: "group flex items-center gap-2",
@@ -4248,15 +4099,15 @@ function SelectOptionsPopover({
4248
4099
  },
4249
4100
  children: [
4250
4101
  option.icon && option.icon,
4251
- /* @__PURE__ */ jsx29("span", { className: "truncate text-accent-foreground", children: option.label }),
4252
- /* @__PURE__ */ jsx29(Check6, { className: "ms-auto text-primary" })
4102
+ /* @__PURE__ */ jsx28("span", { className: "truncate text-accent-foreground", children: option.label }),
4103
+ /* @__PURE__ */ jsx28(Check6, { className: "ms-auto text-primary" })
4253
4104
  ]
4254
4105
  },
4255
4106
  String(option.value)
4256
4107
  )) }),
4257
4108
  unselectedOptions.length > 0 && /* @__PURE__ */ jsxs17(Fragment7, { children: [
4258
- selectedOptions.length > 0 && /* @__PURE__ */ jsx29(CommandSeparator, {}),
4259
- /* @__PURE__ */ jsx29(CommandGroup, { children: unselectedOptions.map((option) => /* @__PURE__ */ jsxs17(
4109
+ selectedOptions.length > 0 && /* @__PURE__ */ jsx28(CommandSeparator, {}),
4110
+ /* @__PURE__ */ jsx28(CommandGroup, { children: unselectedOptions.map((option) => /* @__PURE__ */ jsxs17(
4260
4111
  CommandItem,
4261
4112
  {
4262
4113
  className: "group flex items-center gap-2",
@@ -4276,8 +4127,8 @@ function SelectOptionsPopover({
4276
4127
  },
4277
4128
  children: [
4278
4129
  option.icon && option.icon,
4279
- /* @__PURE__ */ jsx29("span", { className: "truncate text-accent-foreground", children: option.label }),
4280
- /* @__PURE__ */ jsx29(Check6, { className: "ms-auto text-primary opacity-0" })
4130
+ /* @__PURE__ */ jsx28("span", { className: "truncate text-accent-foreground", children: option.label }),
4131
+ /* @__PURE__ */ jsx28(Check6, { className: "ms-auto text-primary opacity-0" })
4281
4132
  ]
4282
4133
  },
4283
4134
  String(option.value)
@@ -4302,7 +4153,7 @@ function FilterValueSelector({
4302
4153
  return null;
4303
4154
  }
4304
4155
  if (field.customRenderer) {
4305
- return /* @__PURE__ */ jsx29(
4156
+ return /* @__PURE__ */ jsx28(
4306
4157
  "div",
4307
4158
  {
4308
4159
  className: filterFieldValueVariants({
@@ -4318,7 +4169,7 @@ function FilterValueSelector({
4318
4169
  const isChecked = values[0] === true;
4319
4170
  const onLabel = field.onLabel || context.i18n.true;
4320
4171
  const offLabel = field.offLabel || context.i18n.false;
4321
- return /* @__PURE__ */ jsx29(
4172
+ return /* @__PURE__ */ jsx28(
4322
4173
  "div",
4323
4174
  {
4324
4175
  className: filterFieldValueVariants({
@@ -4327,7 +4178,7 @@ function FilterValueSelector({
4327
4178
  cursorPointer: context.cursorPointer
4328
4179
  }),
4329
4180
  children: /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-2", children: [
4330
- /* @__PURE__ */ jsx29(
4181
+ /* @__PURE__ */ jsx28(
4331
4182
  Switch,
4332
4183
  {
4333
4184
  checked: isChecked,
@@ -4335,7 +4186,7 @@ function FilterValueSelector({
4335
4186
  size: "sm"
4336
4187
  }
4337
4188
  ),
4338
- field.onLabel && field.offLabel && /* @__PURE__ */ jsx29("span", { className: "text-muted-foreground text-xs", children: isChecked ? onLabel : offLabel })
4189
+ field.onLabel && field.offLabel && /* @__PURE__ */ jsx28("span", { className: "text-muted-foreground text-xs", children: isChecked ? onLabel : offLabel })
4339
4190
  ] })
4340
4191
  }
4341
4192
  );
@@ -4345,7 +4196,7 @@ function FilterValueSelector({
4345
4196
  const startTime = values[0] || "";
4346
4197
  const endTime = values[1] || "";
4347
4198
  return /* @__PURE__ */ jsxs17("div", { className: "flex items-center", "data-slot": "filters-item", children: [
4348
- /* @__PURE__ */ jsx29(
4199
+ /* @__PURE__ */ jsx28(
4349
4200
  FilterInput,
4350
4201
  {
4351
4202
  type: "time",
@@ -4356,7 +4207,7 @@ function FilterValueSelector({
4356
4207
  field
4357
4208
  }
4358
4209
  ),
4359
- /* @__PURE__ */ jsx29(
4210
+ /* @__PURE__ */ jsx28(
4360
4211
  "div",
4361
4212
  {
4362
4213
  "data-slot": "filters-between",
@@ -4364,7 +4215,7 @@ function FilterValueSelector({
4364
4215
  children: context.i18n.to
4365
4216
  }
4366
4217
  ),
4367
- /* @__PURE__ */ jsx29(
4218
+ /* @__PURE__ */ jsx28(
4368
4219
  FilterInput,
4369
4220
  {
4370
4221
  type: "time",
@@ -4377,7 +4228,7 @@ function FilterValueSelector({
4377
4228
  )
4378
4229
  ] });
4379
4230
  }
4380
- return /* @__PURE__ */ jsx29(
4231
+ return /* @__PURE__ */ jsx28(
4381
4232
  FilterInput,
4382
4233
  {
4383
4234
  type: "time",
@@ -4394,7 +4245,7 @@ function FilterValueSelector({
4394
4245
  const startDateTime = values[0] || "";
4395
4246
  const endDateTime = values[1] || "";
4396
4247
  return /* @__PURE__ */ jsxs17("div", { className: "flex items-center", "data-slot": "filters-item", children: [
4397
- /* @__PURE__ */ jsx29(
4248
+ /* @__PURE__ */ jsx28(
4398
4249
  FilterInput,
4399
4250
  {
4400
4251
  type: "datetime-local",
@@ -4405,7 +4256,7 @@ function FilterValueSelector({
4405
4256
  field
4406
4257
  }
4407
4258
  ),
4408
- /* @__PURE__ */ jsx29(
4259
+ /* @__PURE__ */ jsx28(
4409
4260
  "div",
4410
4261
  {
4411
4262
  "data-slot": "filters-between",
@@ -4413,7 +4264,7 @@ function FilterValueSelector({
4413
4264
  children: context.i18n.to
4414
4265
  }
4415
4266
  ),
4416
- /* @__PURE__ */ jsx29(
4267
+ /* @__PURE__ */ jsx28(
4417
4268
  FilterInput,
4418
4269
  {
4419
4270
  type: "datetime-local",
@@ -4426,7 +4277,7 @@ function FilterValueSelector({
4426
4277
  )
4427
4278
  ] });
4428
4279
  }
4429
- return /* @__PURE__ */ jsx29(
4280
+ return /* @__PURE__ */ jsx28(
4430
4281
  FilterInput,
4431
4282
  {
4432
4283
  type: "datetime-local",
@@ -4463,7 +4314,7 @@ function FilterValueSelector({
4463
4314
  return void 0;
4464
4315
  }
4465
4316
  };
4466
- return /* @__PURE__ */ jsx29(
4317
+ return /* @__PURE__ */ jsx28(
4467
4318
  FilterInput,
4468
4319
  {
4469
4320
  type: getInputType(),
@@ -4489,7 +4340,7 @@ function FilterValueSelector({
4489
4340
  cursorPointer: context.cursorPointer
4490
4341
  }),
4491
4342
  children: [
4492
- /* @__PURE__ */ jsx29(
4343
+ /* @__PURE__ */ jsx28(
4493
4344
  FilterInput,
4494
4345
  {
4495
4346
  type: "date",
@@ -4500,7 +4351,7 @@ function FilterValueSelector({
4500
4351
  field
4501
4352
  }
4502
4353
  ),
4503
- /* @__PURE__ */ jsx29(
4354
+ /* @__PURE__ */ jsx28(
4504
4355
  "div",
4505
4356
  {
4506
4357
  "data-slot": "filters-between",
@@ -4508,7 +4359,7 @@ function FilterValueSelector({
4508
4359
  children: context.i18n.to
4509
4360
  }
4510
4361
  ),
4511
- /* @__PURE__ */ jsx29(
4362
+ /* @__PURE__ */ jsx28(
4512
4363
  FilterInput,
4513
4364
  {
4514
4365
  type: "date",
@@ -4528,7 +4379,7 @@ function FilterValueSelector({
4528
4379
  const minVal = values[0] || "";
4529
4380
  const maxVal = values[1] || "";
4530
4381
  return /* @__PURE__ */ jsxs17("div", { className: "flex items-center", "data-slot": "filters-item", children: [
4531
- /* @__PURE__ */ jsx29(
4382
+ /* @__PURE__ */ jsx28(
4532
4383
  FilterInput,
4533
4384
  {
4534
4385
  type: "number",
@@ -4544,7 +4395,7 @@ function FilterValueSelector({
4544
4395
  field
4545
4396
  }
4546
4397
  ),
4547
- /* @__PURE__ */ jsx29(
4398
+ /* @__PURE__ */ jsx28(
4548
4399
  "div",
4549
4400
  {
4550
4401
  "data-slot": "filters-between",
@@ -4552,7 +4403,7 @@ function FilterValueSelector({
4552
4403
  children: context.i18n.to
4553
4404
  }
4554
4405
  ),
4555
- /* @__PURE__ */ jsx29(
4406
+ /* @__PURE__ */ jsx28(
4556
4407
  FilterInput,
4557
4408
  {
4558
4409
  type: "number",
@@ -4570,7 +4421,7 @@ function FilterValueSelector({
4570
4421
  )
4571
4422
  ] });
4572
4423
  }
4573
- return /* @__PURE__ */ jsx29("div", { className: "flex items-center", "data-slot": "filters-item", children: /* @__PURE__ */ jsx29(
4424
+ return /* @__PURE__ */ jsx28("div", { className: "flex items-center", "data-slot": "filters-item", children: /* @__PURE__ */ jsx28(
4574
4425
  FilterInput,
4575
4426
  {
4576
4427
  type: field.type === "number" ? "number" : "text",
@@ -4588,7 +4439,7 @@ function FilterValueSelector({
4588
4439
  ) });
4589
4440
  }
4590
4441
  if (field.type === "date") {
4591
- return /* @__PURE__ */ jsx29(
4442
+ return /* @__PURE__ */ jsx28(
4592
4443
  FilterInput,
4593
4444
  {
4594
4445
  type: "date",
@@ -4601,7 +4452,7 @@ function FilterValueSelector({
4601
4452
  );
4602
4453
  }
4603
4454
  if (field.type === "select" || field.type === "multiselect") {
4604
- return /* @__PURE__ */ jsx29(SelectOptionsPopover, { field, values, onChange });
4455
+ return /* @__PURE__ */ jsx28(SelectOptionsPopover, { field, values, onChange });
4605
4456
  }
4606
4457
  const isMultiSelect = values.length > 1;
4607
4458
  const selectedOptions = field.options?.filter((opt) => values.includes(opt.value)) || [];
@@ -4617,7 +4468,7 @@ function FilterValueSelector({
4617
4468
  }
4618
4469
  },
4619
4470
  children: [
4620
- /* @__PURE__ */ jsx29(
4471
+ /* @__PURE__ */ jsx28(
4621
4472
  PopoverTrigger,
4622
4473
  {
4623
4474
  className: filterFieldValueVariants({
@@ -4625,14 +4476,14 @@ function FilterValueSelector({
4625
4476
  size: context.size,
4626
4477
  cursorPointer: context.cursorPointer
4627
4478
  }),
4628
- children: /* @__PURE__ */ jsx29("div", { className: "flex items-center gap-1.5", children: field.customValueRenderer ? field.customValueRenderer(values, field.options || []) : /* @__PURE__ */ jsxs17(Fragment7, { children: [
4629
- selectedOptions.length > 0 && /* @__PURE__ */ jsx29("div", { className: "-space-x-1.5 flex items-center", children: selectedOptions.slice(0, 3).map((option) => /* @__PURE__ */ jsx29("div", { children: option.icon }, String(option.value))) }),
4479
+ children: /* @__PURE__ */ jsx28("div", { className: "flex items-center gap-1.5", children: field.customValueRenderer ? field.customValueRenderer(values, field.options || []) : /* @__PURE__ */ jsxs17(Fragment7, { children: [
4480
+ selectedOptions.length > 0 && /* @__PURE__ */ jsx28("div", { className: "-space-x-1.5 flex items-center", children: selectedOptions.slice(0, 3).map((option) => /* @__PURE__ */ jsx28("div", { children: option.icon }, String(option.value))) }),
4630
4481
  selectedOptions.length === 1 ? selectedOptions[0].label : selectedOptions.length > 1 ? `${selectedOptions.length} ${context.i18n.selectedCount}` : context.i18n.select
4631
4482
  ] }) })
4632
4483
  }
4633
4484
  ),
4634
- /* @__PURE__ */ jsx29(PopoverContent, { className: cn("w-36 p-0", field.popoverContentClassName), children: /* @__PURE__ */ jsxs17(Command, { children: [
4635
- field.searchable !== false && /* @__PURE__ */ jsx29(
4485
+ /* @__PURE__ */ jsx28(PopoverContent, { className: cn("w-36 p-0", field.popoverContentClassName), children: /* @__PURE__ */ jsxs17(Command, { children: [
4486
+ field.searchable !== false && /* @__PURE__ */ jsx28(
4636
4487
  CommandInput,
4637
4488
  {
4638
4489
  placeholder: context.i18n.placeholders.searchField(field.label || ""),
@@ -4642,8 +4493,8 @@ function FilterValueSelector({
4642
4493
  }
4643
4494
  ),
4644
4495
  /* @__PURE__ */ jsxs17(CommandList, { children: [
4645
- /* @__PURE__ */ jsx29(CommandEmpty, { children: context.i18n.noResultsFound }),
4646
- selectedOptions.length > 0 && /* @__PURE__ */ jsx29(CommandGroup, { children: selectedOptions.map((option) => /* @__PURE__ */ jsxs17(
4496
+ /* @__PURE__ */ jsx28(CommandEmpty, { children: context.i18n.noResultsFound }),
4497
+ selectedOptions.length > 0 && /* @__PURE__ */ jsx28(CommandGroup, { children: selectedOptions.map((option) => /* @__PURE__ */ jsxs17(
4647
4498
  CommandItem,
4648
4499
  {
4649
4500
  className: "group flex items-center gap-2",
@@ -4657,15 +4508,15 @@ function FilterValueSelector({
4657
4508
  },
4658
4509
  children: [
4659
4510
  option.icon && option.icon,
4660
- /* @__PURE__ */ jsx29("span", { className: "truncate text-accent-foreground", children: option.label }),
4661
- /* @__PURE__ */ jsx29(Check6, { className: "ms-auto text-primary" })
4511
+ /* @__PURE__ */ jsx28("span", { className: "truncate text-accent-foreground", children: option.label }),
4512
+ /* @__PURE__ */ jsx28(Check6, { className: "ms-auto text-primary" })
4662
4513
  ]
4663
4514
  },
4664
4515
  String(option.value)
4665
4516
  )) }),
4666
4517
  unselectedOptions.length > 0 && /* @__PURE__ */ jsxs17(Fragment7, { children: [
4667
- selectedOptions.length > 0 && /* @__PURE__ */ jsx29(CommandSeparator, {}),
4668
- /* @__PURE__ */ jsx29(CommandGroup, { children: unselectedOptions.map((option) => /* @__PURE__ */ jsxs17(
4518
+ selectedOptions.length > 0 && /* @__PURE__ */ jsx28(CommandSeparator, {}),
4519
+ /* @__PURE__ */ jsx28(CommandGroup, { children: unselectedOptions.map((option) => /* @__PURE__ */ jsxs17(
4669
4520
  CommandItem,
4670
4521
  {
4671
4522
  className: "group flex items-center gap-2",
@@ -4684,8 +4535,8 @@ function FilterValueSelector({
4684
4535
  },
4685
4536
  children: [
4686
4537
  option.icon && option.icon,
4687
- /* @__PURE__ */ jsx29("span", { className: "truncate text-accent-foreground", children: option.label }),
4688
- /* @__PURE__ */ jsx29(Check6, { className: "ms-auto text-primary opacity-0" })
4538
+ /* @__PURE__ */ jsx28("span", { className: "truncate text-accent-foreground", children: option.label }),
4539
+ /* @__PURE__ */ jsx28(Check6, { className: "ms-auto text-primary opacity-0" })
4689
4540
  ]
4690
4541
  },
4691
4542
  String(option.value)
@@ -4727,7 +4578,7 @@ var FiltersContent = ({
4727
4578
  },
4728
4579
  [filters, onChange]
4729
4580
  );
4730
- return /* @__PURE__ */ jsx29(
4581
+ return /* @__PURE__ */ jsx28(
4731
4582
  "div",
4732
4583
  {
4733
4584
  className: cn(
@@ -4757,7 +4608,7 @@ var FiltersContent = ({
4757
4608
  ]
4758
4609
  }
4759
4610
  ),
4760
- /* @__PURE__ */ jsx29(
4611
+ /* @__PURE__ */ jsx28(
4761
4612
  FilterOperatorDropdown,
4762
4613
  {
4763
4614
  field,
@@ -4766,7 +4617,7 @@ var FiltersContent = ({
4766
4617
  onChange: (operator) => updateFilter(filter.id, { operator })
4767
4618
  }
4768
4619
  ),
4769
- /* @__PURE__ */ jsx29(
4620
+ /* @__PURE__ */ jsx28(
4770
4621
  FilterValueSelector,
4771
4622
  {
4772
4623
  field,
@@ -4775,7 +4626,7 @@ var FiltersContent = ({
4775
4626
  operator: filter.operator
4776
4627
  }
4777
4628
  ),
4778
- /* @__PURE__ */ jsx29(FilterRemoveButton, { onClick: () => removeFilter(filter.id) })
4629
+ /* @__PURE__ */ jsx28(FilterRemoveButton, { onClick: () => removeFilter(filter.id) })
4779
4630
  ]
4780
4631
  },
4781
4632
  filter.id
@@ -4922,7 +4773,7 @@ function Filters({
4922
4773
  return !filters.some((filter) => filter.field === field.key);
4923
4774
  });
4924
4775
  }, [fields, filters, allowMultiple]);
4925
- return /* @__PURE__ */ jsx29(
4776
+ return /* @__PURE__ */ jsx28(
4926
4777
  FilterContext.Provider,
4927
4778
  {
4928
4779
  value: {
@@ -4954,7 +4805,7 @@ function Filters({
4954
4805
  }
4955
4806
  },
4956
4807
  children: [
4957
- /* @__PURE__ */ jsx29(PopoverTrigger, { asChild: true, children: addButton ? addButton : /* @__PURE__ */ jsxs17(
4808
+ /* @__PURE__ */ jsx28(PopoverTrigger, { asChild: true, children: addButton ? addButton : /* @__PURE__ */ jsxs17(
4958
4809
  "button",
4959
4810
  {
4960
4811
  className: cn(
@@ -4968,14 +4819,14 @@ function Filters({
4968
4819
  ),
4969
4820
  title: mergedI18n.addFilterTitle,
4970
4821
  children: [
4971
- addButtonIcon || /* @__PURE__ */ jsx29(Plus2, {}),
4822
+ addButtonIcon || /* @__PURE__ */ jsx28(Plus2, {}),
4972
4823
  addButtonText || mergedI18n.addFilter
4973
4824
  ]
4974
4825
  }
4975
4826
  ) }),
4976
- /* @__PURE__ */ jsx29(PopoverContent, { className: cn("w-[200px] p-0", popoverContentClassName), align: "start", children: /* @__PURE__ */ jsx29(Command, { children: selectedFieldForOptions ? (
4827
+ /* @__PURE__ */ jsx28(PopoverContent, { className: cn("w-[200px] p-0", popoverContentClassName), align: "start", children: /* @__PURE__ */ jsx28(Command, { children: selectedFieldForOptions ? (
4977
4828
  // Show original select/multiselect rendering without back button
4978
- /* @__PURE__ */ jsx29(
4829
+ /* @__PURE__ */ jsx28(
4979
4830
  SelectOptionsPopover,
4980
4831
  {
4981
4832
  field: selectedFieldForOptions,
@@ -4995,9 +4846,9 @@ function Filters({
4995
4846
  ) : (
4996
4847
  // Show field selection
4997
4848
  /* @__PURE__ */ jsxs17(Fragment7, { children: [
4998
- showSearchInput && /* @__PURE__ */ jsx29(CommandInput, { placeholder: mergedI18n.searchFields, className: "h-9" }),
4849
+ showSearchInput && /* @__PURE__ */ jsx28(CommandInput, { placeholder: mergedI18n.searchFields, className: "h-9" }),
4999
4850
  /* @__PURE__ */ jsxs17(CommandList, { children: [
5000
- /* @__PURE__ */ jsx29(CommandEmpty, { children: mergedI18n.noFieldsFound }),
4851
+ /* @__PURE__ */ jsx28(CommandEmpty, { children: mergedI18n.noFieldsFound }),
5001
4852
  fields.map((item, index) => {
5002
4853
  if (isFieldGroup(item)) {
5003
4854
  const groupFields = item.fields.filter((field2) => {
@@ -5010,9 +4861,9 @@ function Filters({
5010
4861
  return !filters.some((filter) => filter.field === field2.key);
5011
4862
  });
5012
4863
  if (groupFields.length === 0) return null;
5013
- return /* @__PURE__ */ jsx29(CommandGroup, { heading: item.group || "Fields", children: groupFields.map((field2, fieldIndex) => {
4864
+ return /* @__PURE__ */ jsx28(CommandGroup, { heading: item.group || "Fields", children: groupFields.map((field2, fieldIndex) => {
5014
4865
  if (field2.type === "separator") {
5015
- return /* @__PURE__ */ jsx29(CommandSeparator, {}, `separator-${fieldIndex}`);
4866
+ return /* @__PURE__ */ jsx28(CommandSeparator, {}, `separator-${fieldIndex}`);
5016
4867
  }
5017
4868
  return /* @__PURE__ */ jsxs17(
5018
4869
  CommandItem,
@@ -5020,7 +4871,7 @@ function Filters({
5020
4871
  onSelect: () => field2.key && addFilter(field2.key),
5021
4872
  children: [
5022
4873
  field2.icon,
5023
- /* @__PURE__ */ jsx29("span", { children: field2.label })
4874
+ /* @__PURE__ */ jsx28("span", { children: field2.label })
5024
4875
  ]
5025
4876
  },
5026
4877
  field2.key
@@ -5038,9 +4889,9 @@ function Filters({
5038
4889
  return !filters.some((filter) => filter.field === field2.key);
5039
4890
  });
5040
4891
  if (groupFields.length === 0) return null;
5041
- return /* @__PURE__ */ jsx29(CommandGroup, { heading: item.group || "Fields", children: groupFields.map((field2, fieldIndex) => {
4892
+ return /* @__PURE__ */ jsx28(CommandGroup, { heading: item.group || "Fields", children: groupFields.map((field2, fieldIndex) => {
5042
4893
  if (field2.type === "separator") {
5043
- return /* @__PURE__ */ jsx29(CommandSeparator, {}, `separator-${fieldIndex}`);
4894
+ return /* @__PURE__ */ jsx28(CommandSeparator, {}, `separator-${fieldIndex}`);
5044
4895
  }
5045
4896
  return /* @__PURE__ */ jsxs17(
5046
4897
  CommandItem,
@@ -5048,7 +4899,7 @@ function Filters({
5048
4899
  onSelect: () => field2.key && addFilter(field2.key),
5049
4900
  children: [
5050
4901
  field2.icon,
5051
- /* @__PURE__ */ jsx29("span", { children: field2.label })
4902
+ /* @__PURE__ */ jsx28("span", { children: field2.label })
5052
4903
  ]
5053
4904
  },
5054
4905
  field2.key
@@ -5057,7 +4908,7 @@ function Filters({
5057
4908
  }
5058
4909
  const field = item;
5059
4910
  if (field.type === "separator") {
5060
- return /* @__PURE__ */ jsx29(CommandSeparator, {}, `separator-${index}`);
4911
+ return /* @__PURE__ */ jsx28(CommandSeparator, {}, `separator-${index}`);
5061
4912
  }
5062
4913
  return /* @__PURE__ */ jsxs17(
5063
4914
  CommandItem,
@@ -5065,7 +4916,7 @@ function Filters({
5065
4916
  onSelect: () => field.key && addFilter(field.key),
5066
4917
  children: [
5067
4918
  field.icon,
5068
- /* @__PURE__ */ jsx29("span", { children: field.label })
4919
+ /* @__PURE__ */ jsx28("span", { children: field.label })
5069
4920
  ]
5070
4921
  },
5071
4922
  field.key
@@ -5100,7 +4951,7 @@ function Filters({
5100
4951
  ]
5101
4952
  }
5102
4953
  ),
5103
- /* @__PURE__ */ jsx29(
4954
+ /* @__PURE__ */ jsx28(
5104
4955
  FilterOperatorDropdown,
5105
4956
  {
5106
4957
  field,
@@ -5109,7 +4960,7 @@ function Filters({
5109
4960
  onChange: (operator) => updateFilter(filter.id, { operator })
5110
4961
  }
5111
4962
  ),
5112
- /* @__PURE__ */ jsx29(
4963
+ /* @__PURE__ */ jsx28(
5113
4964
  FilterValueSelector,
5114
4965
  {
5115
4966
  field,
@@ -5118,7 +4969,7 @@ function Filters({
5118
4969
  operator: filter.operator
5119
4970
  }
5120
4971
  ),
5121
- /* @__PURE__ */ jsx29(FilterRemoveButton, { onClick: () => removeFilter(filter.id) })
4972
+ /* @__PURE__ */ jsx28(FilterRemoveButton, { onClick: () => removeFilter(filter.id) })
5122
4973
  ]
5123
4974
  },
5124
4975
  filter.id
@@ -5142,24 +4993,24 @@ var createFilterGroup = (id, label, fields, initialFilters = []) => ({
5142
4993
  });
5143
4994
 
5144
4995
  // src/ui/default/form.tsx
5145
- import * as React7 from "react";
4996
+ import * as React6 from "react";
5146
4997
  import { Slot as Slot2 } from "@radix-ui/react-slot";
5147
4998
  import {
5148
4999
  Controller,
5149
5000
  FormProvider,
5150
5001
  useFormContext
5151
5002
  } from "react-hook-form";
5152
- import { jsx as jsx30 } from "react/jsx-runtime";
5003
+ import { jsx as jsx29 } from "react/jsx-runtime";
5153
5004
  var Form = FormProvider;
5154
- var FormFieldContext = React7.createContext({});
5005
+ var FormFieldContext = React6.createContext({});
5155
5006
  var FormField = ({
5156
5007
  ...props
5157
5008
  }) => {
5158
- return /* @__PURE__ */ jsx30(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx30(Controller, { ...props }) });
5009
+ return /* @__PURE__ */ jsx29(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx29(Controller, { ...props }) });
5159
5010
  };
5160
5011
  var useFormField = () => {
5161
- const fieldContext = React7.useContext(FormFieldContext);
5162
- const itemContext = React7.useContext(FormItemContext);
5012
+ const fieldContext = React6.useContext(FormFieldContext);
5013
+ const itemContext = React6.useContext(FormItemContext);
5163
5014
  const { getFieldState, formState } = useFormContext();
5164
5015
  const fieldState = getFieldState(fieldContext.name, formState);
5165
5016
  if (!fieldContext) {
@@ -5175,11 +5026,11 @@ var useFormField = () => {
5175
5026
  ...fieldState
5176
5027
  };
5177
5028
  };
5178
- var FormItemContext = React7.createContext({});
5029
+ var FormItemContext = React6.createContext({});
5179
5030
  function FormItem({ className, ...props }) {
5180
- const id = React7.useId();
5031
+ const id = React6.useId();
5181
5032
  const { error } = useFormField();
5182
- return /* @__PURE__ */ jsx30(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx30(
5033
+ return /* @__PURE__ */ jsx29(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx29(
5183
5034
  "div",
5184
5035
  {
5185
5036
  "data-slot": "form-item",
@@ -5191,7 +5042,7 @@ function FormItem({ className, ...props }) {
5191
5042
  }
5192
5043
  function FormLabel({ className, ...props }) {
5193
5044
  const { formItemId } = useFormField();
5194
- return /* @__PURE__ */ jsx30(
5045
+ return /* @__PURE__ */ jsx29(
5195
5046
  Label,
5196
5047
  {
5197
5048
  "data-slot": "form-label",
@@ -5206,7 +5057,7 @@ function FormLabel({ className, ...props }) {
5206
5057
  }
5207
5058
  function FormControl({ ...props }) {
5208
5059
  const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
5209
- return /* @__PURE__ */ jsx30(
5060
+ return /* @__PURE__ */ jsx29(
5210
5061
  Slot2,
5211
5062
  {
5212
5063
  "data-slot": "form-control",
@@ -5222,7 +5073,7 @@ function FormDescription({ className, ...props }) {
5222
5073
  if (error) {
5223
5074
  return null;
5224
5075
  }
5225
- return /* @__PURE__ */ jsx30(
5076
+ return /* @__PURE__ */ jsx29(
5226
5077
  "div",
5227
5078
  {
5228
5079
  "data-slot": "form-description",
@@ -5242,7 +5093,7 @@ function FormMessage({
5242
5093
  if (!body) {
5243
5094
  return null;
5244
5095
  }
5245
- return /* @__PURE__ */ jsx30(
5096
+ return /* @__PURE__ */ jsx29(
5246
5097
  "div",
5247
5098
  {
5248
5099
  "data-slot": "form-message",
@@ -5255,10 +5106,10 @@ function FormMessage({
5255
5106
  }
5256
5107
 
5257
5108
  // src/ui/default/heading.tsx
5258
- import { jsx as jsx31 } from "react/jsx-runtime";
5109
+ import { jsx as jsx30 } from "react/jsx-runtime";
5259
5110
  var Heading = ({ className, level = 1, ...props }) => {
5260
5111
  const Element = `h${level}`;
5261
- return /* @__PURE__ */ jsx31(
5112
+ return /* @__PURE__ */ jsx30(
5262
5113
  Element,
5263
5114
  {
5264
5115
  className: cn(
@@ -5276,12 +5127,12 @@ var Heading = ({ className, level = 1, ...props }) => {
5276
5127
 
5277
5128
  // src/ui/default/hover-card.tsx
5278
5129
  import { HoverCard as HoverCardPrimitive } from "radix-ui";
5279
- import { jsx as jsx32 } from "react/jsx-runtime";
5130
+ import { jsx as jsx31 } from "react/jsx-runtime";
5280
5131
  function HoverCard({ ...props }) {
5281
- return /* @__PURE__ */ jsx32(HoverCardPrimitive.Root, { "data-slot": "hover-card", ...props });
5132
+ return /* @__PURE__ */ jsx31(HoverCardPrimitive.Root, { "data-slot": "hover-card", ...props });
5282
5133
  }
5283
5134
  function HoverCardTrigger({ ...props }) {
5284
- return /* @__PURE__ */ jsx32(HoverCardPrimitive.Trigger, { "data-slot": "hover-card-trigger", ...props });
5135
+ return /* @__PURE__ */ jsx31(HoverCardPrimitive.Trigger, { "data-slot": "hover-card-trigger", ...props });
5285
5136
  }
5286
5137
  function HoverCardContent({
5287
5138
  className,
@@ -5289,7 +5140,7 @@ function HoverCardContent({
5289
5140
  sideOffset = 4,
5290
5141
  ...props
5291
5142
  }) {
5292
- return /* @__PURE__ */ jsx32(HoverCardPrimitive.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ jsx32(
5143
+ return /* @__PURE__ */ jsx31(HoverCardPrimitive.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ jsx31(
5293
5144
  HoverCardPrimitive.Content,
5294
5145
  {
5295
5146
  "data-slot": "hover-card-content",
@@ -5305,16 +5156,16 @@ function HoverCardContent({
5305
5156
  }
5306
5157
 
5307
5158
  // src/ui/default/input-otp.tsx
5308
- import * as React8 from "react";
5159
+ import * as React7 from "react";
5309
5160
  import { OTPInput, OTPInputContext } from "input-otp";
5310
5161
  import { MinusIcon } from "lucide-react";
5311
- import { jsx as jsx33, jsxs as jsxs18 } from "react/jsx-runtime";
5162
+ import { jsx as jsx32, jsxs as jsxs18 } from "react/jsx-runtime";
5312
5163
  function InputOTP({
5313
5164
  className,
5314
5165
  containerClassName,
5315
5166
  ...props
5316
5167
  }) {
5317
- return /* @__PURE__ */ jsx33(
5168
+ return /* @__PURE__ */ jsx32(
5318
5169
  OTPInput,
5319
5170
  {
5320
5171
  "data-slot": "input-otp",
@@ -5325,14 +5176,14 @@ function InputOTP({
5325
5176
  );
5326
5177
  }
5327
5178
  function InputOTPGroup({ className, ...props }) {
5328
- return /* @__PURE__ */ jsx33("div", { "data-slot": "input-otp-group", className: cn("flex items-center", className), ...props });
5179
+ return /* @__PURE__ */ jsx32("div", { "data-slot": "input-otp-group", className: cn("flex items-center", className), ...props });
5329
5180
  }
5330
5181
  function InputOTPSlot({
5331
5182
  index,
5332
5183
  className,
5333
5184
  ...props
5334
5185
  }) {
5335
- const inputOTPContext = React8.useContext(OTPInputContext);
5186
+ const inputOTPContext = React7.useContext(OTPInputContext);
5336
5187
  const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {};
5337
5188
  return /* @__PURE__ */ jsxs18(
5338
5189
  "div",
@@ -5346,21 +5197,21 @@ function InputOTPSlot({
5346
5197
  ...props,
5347
5198
  children: [
5348
5199
  char,
5349
- hasFakeCaret && /* @__PURE__ */ jsx33("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx33("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
5200
+ hasFakeCaret && /* @__PURE__ */ jsx32("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx32("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
5350
5201
  ]
5351
5202
  }
5352
5203
  );
5353
5204
  }
5354
5205
  function InputOTPSeparator({ ...props }) {
5355
- return /* @__PURE__ */ jsx33("div", { "data-slot": "input-otp-separator", role: "separator", ...props, children: /* @__PURE__ */ jsx33(MinusIcon, {}) });
5206
+ return /* @__PURE__ */ jsx32("div", { "data-slot": "input-otp-separator", role: "separator", ...props, children: /* @__PURE__ */ jsx32(MinusIcon, {}) });
5356
5207
  }
5357
5208
 
5358
5209
  // src/ui/default/item.tsx
5359
5210
  import { Slot as Slot3 } from "@radix-ui/react-slot";
5360
- import { cva as cva14 } from "class-variance-authority";
5361
- import { jsx as jsx34 } from "react/jsx-runtime";
5211
+ import { cva as cva13 } from "class-variance-authority";
5212
+ import { jsx as jsx33 } from "react/jsx-runtime";
5362
5213
  function ItemGroup({ className, ...props }) {
5363
- return /* @__PURE__ */ jsx34(
5214
+ return /* @__PURE__ */ jsx33(
5364
5215
  "div",
5365
5216
  {
5366
5217
  role: "list",
@@ -5371,7 +5222,7 @@ function ItemGroup({ className, ...props }) {
5371
5222
  );
5372
5223
  }
5373
5224
  function ItemSeparator({ className, ...props }) {
5374
- return /* @__PURE__ */ jsx34(
5225
+ return /* @__PURE__ */ jsx33(
5375
5226
  Separator,
5376
5227
  {
5377
5228
  "data-slot": "item-separator",
@@ -5381,7 +5232,7 @@ function ItemSeparator({ className, ...props }) {
5381
5232
  }
5382
5233
  );
5383
5234
  }
5384
- var itemVariants2 = cva14(
5235
+ var itemVariants2 = cva13(
5385
5236
  "group/item flex items-center border border-transparent text-sm rounded-md transition-colors [a]:hover:bg-accent/50 [a]:transition-colors duration-100 flex-wrap outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
5386
5237
  {
5387
5238
  variants: {
@@ -5409,7 +5260,7 @@ function Item({
5409
5260
  ...props
5410
5261
  }) {
5411
5262
  const Comp = asChild ? Slot3 : "div";
5412
- return /* @__PURE__ */ jsx34(
5263
+ return /* @__PURE__ */ jsx33(
5413
5264
  Comp,
5414
5265
  {
5415
5266
  "data-slot": "item",
@@ -5420,7 +5271,7 @@ function Item({
5420
5271
  }
5421
5272
  );
5422
5273
  }
5423
- var itemMediaVariants = cva14(
5274
+ var itemMediaVariants = cva13(
5424
5275
  "flex shrink-0 items-center justify-center gap-2 group-has-data-[slot=item-description]/item:self-start [&_svg]:pointer-events-none group-has-data-[slot=item-description]/item:translate-y-0.5",
5425
5276
  {
5426
5277
  variants: {
@@ -5440,7 +5291,7 @@ function ItemMedia({
5440
5291
  variant = "default",
5441
5292
  ...props
5442
5293
  }) {
5443
- return /* @__PURE__ */ jsx34(
5294
+ return /* @__PURE__ */ jsx33(
5444
5295
  "div",
5445
5296
  {
5446
5297
  "data-slot": "item-media",
@@ -5451,7 +5302,7 @@ function ItemMedia({
5451
5302
  );
5452
5303
  }
5453
5304
  function ItemContent({ className, ...props }) {
5454
- return /* @__PURE__ */ jsx34(
5305
+ return /* @__PURE__ */ jsx33(
5455
5306
  "div",
5456
5307
  {
5457
5308
  "data-slot": "item-content",
@@ -5461,7 +5312,7 @@ function ItemContent({ className, ...props }) {
5461
5312
  );
5462
5313
  }
5463
5314
  function ItemTitle({ className, ...props }) {
5464
- return /* @__PURE__ */ jsx34(
5315
+ return /* @__PURE__ */ jsx33(
5465
5316
  "div",
5466
5317
  {
5467
5318
  "data-slot": "item-title",
@@ -5471,7 +5322,7 @@ function ItemTitle({ className, ...props }) {
5471
5322
  );
5472
5323
  }
5473
5324
  function ItemDescription({ className, ...props }) {
5474
- return /* @__PURE__ */ jsx34(
5325
+ return /* @__PURE__ */ jsx33(
5475
5326
  "p",
5476
5327
  {
5477
5328
  "data-slot": "item-description",
@@ -5485,10 +5336,10 @@ function ItemDescription({ className, ...props }) {
5485
5336
  );
5486
5337
  }
5487
5338
  function ItemActions({ className, ...props }) {
5488
- return /* @__PURE__ */ jsx34("div", { "data-slot": "item-actions", className: cn("flex items-center gap-2", className), ...props });
5339
+ return /* @__PURE__ */ jsx33("div", { "data-slot": "item-actions", className: cn("flex items-center gap-2", className), ...props });
5489
5340
  }
5490
5341
  function ItemHeader({ className, ...props }) {
5491
- return /* @__PURE__ */ jsx34(
5342
+ return /* @__PURE__ */ jsx33(
5492
5343
  "div",
5493
5344
  {
5494
5345
  "data-slot": "item-header",
@@ -5498,7 +5349,7 @@ function ItemHeader({ className, ...props }) {
5498
5349
  );
5499
5350
  }
5500
5351
  function ItemFooter({ className, ...props }) {
5501
- return /* @__PURE__ */ jsx34(
5352
+ return /* @__PURE__ */ jsx33(
5502
5353
  "div",
5503
5354
  {
5504
5355
  "data-slot": "item-footer",
@@ -5509,7 +5360,7 @@ function ItemFooter({ className, ...props }) {
5509
5360
  }
5510
5361
 
5511
5362
  // src/ui/default/kanban.tsx
5512
- import * as React9 from "react";
5363
+ import * as React8 from "react";
5513
5364
  import {
5514
5365
  DndContext as DndContext3,
5515
5366
  DragOverlay,
@@ -5530,8 +5381,8 @@ import {
5530
5381
  } from "@dnd-kit/sortable";
5531
5382
  import { CSS as CSS4 } from "@dnd-kit/utilities";
5532
5383
  import { Slot as Slot4 } from "@radix-ui/react-slot";
5533
- import { jsx as jsx35 } from "react/jsx-runtime";
5534
- var KanbanContext = React9.createContext({
5384
+ import { jsx as jsx34 } from "react/jsx-runtime";
5385
+ var KanbanContext = React8.createContext({
5535
5386
  columns: {},
5536
5387
  setColumns: () => {
5537
5388
  },
@@ -5543,13 +5394,13 @@ var KanbanContext = React9.createContext({
5543
5394
  findContainer: () => void 0,
5544
5395
  isColumn: () => false
5545
5396
  });
5546
- var ColumnContext = React9.createContext({
5397
+ var ColumnContext = React8.createContext({
5547
5398
  attributes: {},
5548
5399
  listeners: void 0,
5549
5400
  isDragging: false,
5550
5401
  disabled: false
5551
5402
  });
5552
- var ItemContext = React9.createContext({
5403
+ var ItemContext = React8.createContext({
5553
5404
  listeners: void 0,
5554
5405
  isDragging: false,
5555
5406
  disabled: false
@@ -5574,7 +5425,7 @@ function Kanban({
5574
5425
  }) {
5575
5426
  const columns = value;
5576
5427
  const setColumns = onValueChange;
5577
- const [activeId, setActiveId] = React9.useState(null);
5428
+ const [activeId, setActiveId] = React8.useState(null);
5578
5429
  const sensors = useSensors3(
5579
5430
  useSensor3(PointerSensor, {
5580
5431
  activationConstraint: {
@@ -5585,22 +5436,22 @@ function Kanban({
5585
5436
  coordinateGetter: sortableKeyboardCoordinates
5586
5437
  })
5587
5438
  );
5588
- const columnIds = React9.useMemo(() => Object.keys(columns), [columns]);
5589
- const isColumn = React9.useCallback(
5439
+ const columnIds = React8.useMemo(() => Object.keys(columns), [columns]);
5440
+ const isColumn = React8.useCallback(
5590
5441
  (id) => columnIds.includes(id),
5591
5442
  [columnIds]
5592
5443
  );
5593
- const findContainer = React9.useCallback(
5444
+ const findContainer = React8.useCallback(
5594
5445
  (id) => {
5595
5446
  if (isColumn(id)) return id;
5596
5447
  return columnIds.find((key) => columns[key].some((item) => getItemValue(item) === id));
5597
5448
  },
5598
5449
  [columns, columnIds, getItemValue, isColumn]
5599
5450
  );
5600
- const handleDragStart = React9.useCallback((event) => {
5451
+ const handleDragStart = React8.useCallback((event) => {
5601
5452
  setActiveId(event.active.id);
5602
5453
  }, []);
5603
- const handleDragOver = React9.useCallback(
5454
+ const handleDragOver = React8.useCallback(
5604
5455
  (event) => {
5605
5456
  if (onMove) {
5606
5457
  return;
@@ -5631,7 +5482,7 @@ function Kanban({
5631
5482
  },
5632
5483
  [findContainer, getItemValue, isColumn, setColumns, columns, onMove]
5633
5484
  );
5634
- const handleDragEnd = React9.useCallback(
5485
+ const handleDragEnd = React8.useCallback(
5635
5486
  (event) => {
5636
5487
  const { active, over } = event;
5637
5488
  setActiveId(null);
@@ -5685,7 +5536,7 @@ function Kanban({
5685
5536
  },
5686
5537
  [columnIds, columns, findContainer, getItemValue, isColumn, setColumns, onMove]
5687
5538
  );
5688
- const contextValue = React9.useMemo(
5539
+ const contextValue = React8.useMemo(
5689
5540
  () => ({
5690
5541
  columns,
5691
5542
  setColumns,
@@ -5698,20 +5549,20 @@ function Kanban({
5698
5549
  }),
5699
5550
  [columns, setColumns, getItemValue, columnIds, activeId, findContainer, isColumn]
5700
5551
  );
5701
- return /* @__PURE__ */ jsx35(KanbanContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx35(
5552
+ return /* @__PURE__ */ jsx34(KanbanContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx34(
5702
5553
  DndContext3,
5703
5554
  {
5704
5555
  sensors,
5705
5556
  onDragStart: handleDragStart,
5706
5557
  onDragOver: handleDragOver,
5707
5558
  onDragEnd: handleDragEnd,
5708
- children: /* @__PURE__ */ jsx35("div", { "data-slot": "kanban", "data-dragging": activeId !== null, className: cn(className), children })
5559
+ children: /* @__PURE__ */ jsx34("div", { "data-slot": "kanban", "data-dragging": activeId !== null, className: cn(className), children })
5709
5560
  }
5710
5561
  ) });
5711
5562
  }
5712
5563
  function KanbanBoard({ children, className }) {
5713
- const { columnIds } = React9.useContext(KanbanContext);
5714
- return /* @__PURE__ */ jsx35(SortableContext3, { items: columnIds, strategy: rectSortingStrategy, children: /* @__PURE__ */ jsx35(
5564
+ const { columnIds } = React8.useContext(KanbanContext);
5565
+ return /* @__PURE__ */ jsx34(SortableContext3, { items: columnIds, strategy: rectSortingStrategy, children: /* @__PURE__ */ jsx34(
5715
5566
  "div",
5716
5567
  {
5717
5568
  "data-slot": "kanban-board",
@@ -5732,17 +5583,17 @@ function KanbanColumn({ value, className, children, disabled }) {
5732
5583
  id: value,
5733
5584
  disabled
5734
5585
  });
5735
- const { activeId, isColumn } = React9.useContext(KanbanContext);
5586
+ const { activeId, isColumn } = React8.useContext(KanbanContext);
5736
5587
  const isColumnDragging = activeId ? isColumn(activeId) : false;
5737
5588
  const style = {
5738
5589
  transition,
5739
5590
  transform: CSS4.Translate.toString(transform)
5740
5591
  };
5741
- return /* @__PURE__ */ jsx35(
5592
+ return /* @__PURE__ */ jsx34(
5742
5593
  ColumnContext.Provider,
5743
5594
  {
5744
5595
  value: { attributes, listeners, isDragging: isColumnDragging, disabled },
5745
- children: /* @__PURE__ */ jsx35(
5596
+ children: /* @__PURE__ */ jsx34(
5746
5597
  "div",
5747
5598
  {
5748
5599
  "data-slot": "kanban-column",
@@ -5769,9 +5620,9 @@ function KanbanColumnHandle({
5769
5620
  children,
5770
5621
  cursor = true
5771
5622
  }) {
5772
- const { attributes, listeners, isDragging, disabled } = React9.useContext(ColumnContext);
5623
+ const { attributes, listeners, isDragging, disabled } = React8.useContext(ColumnContext);
5773
5624
  const Comp = asChild ? Slot4 : "div";
5774
- return /* @__PURE__ */ jsx35(
5625
+ return /* @__PURE__ */ jsx34(
5775
5626
  Comp,
5776
5627
  {
5777
5628
  "data-slot": "kanban-column-handle",
@@ -5800,14 +5651,14 @@ function KanbanItem({ value, asChild = false, className, children, disabled }) {
5800
5651
  id: value,
5801
5652
  disabled
5802
5653
  });
5803
- const { activeId, isColumn } = React9.useContext(KanbanContext);
5654
+ const { activeId, isColumn } = React8.useContext(KanbanContext);
5804
5655
  const isItemDragging = activeId ? !isColumn(activeId) : false;
5805
5656
  const style = {
5806
5657
  transition,
5807
5658
  transform: CSS4.Translate.toString(transform)
5808
5659
  };
5809
5660
  const Comp = asChild ? Slot4 : "div";
5810
- return /* @__PURE__ */ jsx35(ItemContext.Provider, { value: { listeners, isDragging: isItemDragging, disabled }, children: /* @__PURE__ */ jsx35(
5661
+ return /* @__PURE__ */ jsx34(ItemContext.Provider, { value: { listeners, isDragging: isItemDragging, disabled }, children: /* @__PURE__ */ jsx34(
5811
5662
  Comp,
5812
5663
  {
5813
5664
  "data-slot": "kanban-item",
@@ -5823,9 +5674,9 @@ function KanbanItem({ value, asChild = false, className, children, disabled }) {
5823
5674
  ) });
5824
5675
  }
5825
5676
  function KanbanItemHandle({ asChild, className, children, cursor = true }) {
5826
- const { listeners, isDragging, disabled } = React9.useContext(ItemContext);
5677
+ const { listeners, isDragging, disabled } = React8.useContext(ItemContext);
5827
5678
  const Comp = asChild ? Slot4 : "div";
5828
- return /* @__PURE__ */ jsx35(
5679
+ return /* @__PURE__ */ jsx34(
5829
5680
  Comp,
5830
5681
  {
5831
5682
  "data-slot": "kanban-item-handle",
@@ -5838,14 +5689,14 @@ function KanbanItemHandle({ asChild, className, children, cursor = true }) {
5838
5689
  );
5839
5690
  }
5840
5691
  function KanbanColumnContent({ value, className, children }) {
5841
- const { columns, getItemId } = React9.useContext(KanbanContext);
5842
- const itemIds = React9.useMemo(() => columns[value].map(getItemId), [columns, getItemId, value]);
5843
- return /* @__PURE__ */ jsx35(SortableContext3, { items: itemIds, strategy: verticalListSortingStrategy2, children: /* @__PURE__ */ jsx35("div", { "data-slot": "kanban-column-content", className: cn("flex flex-col gap-2", className), children }) });
5692
+ const { columns, getItemId } = React8.useContext(KanbanContext);
5693
+ const itemIds = React8.useMemo(() => columns[value].map(getItemId), [columns, getItemId, value]);
5694
+ return /* @__PURE__ */ jsx34(SortableContext3, { items: itemIds, strategy: verticalListSortingStrategy2, children: /* @__PURE__ */ jsx34("div", { "data-slot": "kanban-column-content", className: cn("flex flex-col gap-2", className), children }) });
5844
5695
  }
5845
5696
  function KanbanOverlay({ children, className }) {
5846
- const { activeId, isColumn } = React9.useContext(KanbanContext);
5847
- const [dimensions, setDimensions] = React9.useState(null);
5848
- React9.useEffect(() => {
5697
+ const { activeId, isColumn } = React8.useContext(KanbanContext);
5698
+ const [dimensions, setDimensions] = React8.useState(null);
5699
+ React8.useEffect(() => {
5849
5700
  if (activeId) {
5850
5701
  const element = document.querySelector(
5851
5702
  `[data-slot="kanban-${isColumn(activeId) ? "column" : "item"}"][data-value="${activeId}"]`
@@ -5862,7 +5713,7 @@ function KanbanOverlay({ children, className }) {
5862
5713
  width: dimensions?.width,
5863
5714
  height: dimensions?.height
5864
5715
  };
5865
- const content = React9.useMemo(() => {
5716
+ const content = React8.useMemo(() => {
5866
5717
  if (!activeId) return null;
5867
5718
  if (typeof children === "function") {
5868
5719
  return children({
@@ -5872,7 +5723,7 @@ function KanbanOverlay({ children, className }) {
5872
5723
  }
5873
5724
  return children;
5874
5725
  }, [activeId, children, isColumn]);
5875
- return /* @__PURE__ */ jsx35(DragOverlay, { dropAnimation: dropAnimationConfig, children: /* @__PURE__ */ jsx35(
5726
+ return /* @__PURE__ */ jsx34(DragOverlay, { dropAnimation: dropAnimationConfig, children: /* @__PURE__ */ jsx34(
5876
5727
  "div",
5877
5728
  {
5878
5729
  "data-slot": "kanban-overlay",
@@ -5885,9 +5736,9 @@ function KanbanOverlay({ children, className }) {
5885
5736
  }
5886
5737
 
5887
5738
  // src/ui/default/kbd.tsx
5888
- import { jsx as jsx36 } from "react/jsx-runtime";
5739
+ import { jsx as jsx35 } from "react/jsx-runtime";
5889
5740
  function Kbd({ className, ...props }) {
5890
- return /* @__PURE__ */ jsx36(
5741
+ return /* @__PURE__ */ jsx35(
5891
5742
  "kbd",
5892
5743
  {
5893
5744
  "data-slot": "kbd",
@@ -5902,7 +5753,7 @@ function Kbd({ className, ...props }) {
5902
5753
  );
5903
5754
  }
5904
5755
  function KbdGroup({ className, ...props }) {
5905
- return /* @__PURE__ */ jsx36(
5756
+ return /* @__PURE__ */ jsx35(
5906
5757
  "kbd",
5907
5758
  {
5908
5759
  "data-slot": "kbd-group",
@@ -5915,21 +5766,21 @@ function KbdGroup({ className, ...props }) {
5915
5766
  // src/ui/default/menubar.tsx
5916
5767
  import { Check as Check7, ChevronRight as ChevronRight3, Circle } from "lucide-react";
5917
5768
  import { Menubar as MenubarPrimitive } from "radix-ui";
5918
- import { jsx as jsx37, jsxs as jsxs19 } from "react/jsx-runtime";
5769
+ import { jsx as jsx36, jsxs as jsxs19 } from "react/jsx-runtime";
5919
5770
  function MenubarMenu({ ...props }) {
5920
- return /* @__PURE__ */ jsx37(MenubarPrimitive.Menu, { "data-slot": "menubar-menu", ...props });
5771
+ return /* @__PURE__ */ jsx36(MenubarPrimitive.Menu, { "data-slot": "menubar-menu", ...props });
5921
5772
  }
5922
5773
  function MenubarGroup({ ...props }) {
5923
- return /* @__PURE__ */ jsx37(MenubarPrimitive.Group, { "data-slot": "menubar-group", ...props });
5774
+ return /* @__PURE__ */ jsx36(MenubarPrimitive.Group, { "data-slot": "menubar-group", ...props });
5924
5775
  }
5925
5776
  function MenubarPortal({ ...props }) {
5926
- return /* @__PURE__ */ jsx37(MenubarPrimitive.Portal, { "data-slot": "menubar-portal", ...props });
5777
+ return /* @__PURE__ */ jsx36(MenubarPrimitive.Portal, { "data-slot": "menubar-portal", ...props });
5927
5778
  }
5928
5779
  function MenubarRadioGroup({ ...props }) {
5929
- return /* @__PURE__ */ jsx37(MenubarPrimitive.RadioGroup, { "data-slot": "menubar-radio-group", ...props });
5780
+ return /* @__PURE__ */ jsx36(MenubarPrimitive.RadioGroup, { "data-slot": "menubar-radio-group", ...props });
5930
5781
  }
5931
5782
  function Menubar({ className, ...props }) {
5932
- return /* @__PURE__ */ jsx37(
5783
+ return /* @__PURE__ */ jsx36(
5933
5784
  MenubarPrimitive.Root,
5934
5785
  {
5935
5786
  "data-slot": "menubar",
@@ -5945,7 +5796,7 @@ function MenubarTrigger({
5945
5796
  className,
5946
5797
  ...props
5947
5798
  }) {
5948
- return /* @__PURE__ */ jsx37(
5799
+ return /* @__PURE__ */ jsx36(
5949
5800
  MenubarPrimitive.Trigger,
5950
5801
  {
5951
5802
  "data-slot": "menubar-trigger",
@@ -5983,7 +5834,7 @@ function MenubarSubTrigger({
5983
5834
  ...props,
5984
5835
  children: [
5985
5836
  children,
5986
- /* @__PURE__ */ jsx37(ChevronRight3, { className: "ms-auto size-3.5!" })
5837
+ /* @__PURE__ */ jsx36(ChevronRight3, { className: "ms-auto size-3.5!" })
5987
5838
  ]
5988
5839
  }
5989
5840
  );
@@ -5992,7 +5843,7 @@ function MenubarSubContent({
5992
5843
  className,
5993
5844
  ...props
5994
5845
  }) {
5995
- return /* @__PURE__ */ jsx37(
5846
+ return /* @__PURE__ */ jsx36(
5996
5847
  MenubarPrimitive.SubContent,
5997
5848
  {
5998
5849
  "data-slot": "menubar-sub-content",
@@ -6011,7 +5862,7 @@ function MenubarContent({
6011
5862
  sideOffset = 8,
6012
5863
  ...props
6013
5864
  }) {
6014
- return /* @__PURE__ */ jsx37(MenubarPrimitive.Portal, { children: /* @__PURE__ */ jsx37(
5865
+ return /* @__PURE__ */ jsx36(MenubarPrimitive.Portal, { children: /* @__PURE__ */ jsx36(
6015
5866
  MenubarPrimitive.Content,
6016
5867
  {
6017
5868
  "data-slot": "menubar-content",
@@ -6031,7 +5882,7 @@ function MenubarItem({
6031
5882
  inset,
6032
5883
  ...props
6033
5884
  }) {
6034
- return /* @__PURE__ */ jsx37(
5885
+ return /* @__PURE__ */ jsx36(
6035
5886
  MenubarPrimitive.Item,
6036
5887
  {
6037
5888
  "data-slot": "menubar-item",
@@ -6063,7 +5914,7 @@ function MenubarCheckboxItem({
6063
5914
  checked,
6064
5915
  ...props,
6065
5916
  children: [
6066
- /* @__PURE__ */ jsx37("span", { className: "absolute start-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx37(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx37(Check7, { className: "h-4 w-4 text-primary" }) }) }),
5917
+ /* @__PURE__ */ jsx36("span", { className: "absolute start-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx36(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx36(Check7, { className: "h-4 w-4 text-primary" }) }) }),
6067
5918
  children
6068
5919
  ]
6069
5920
  }
@@ -6084,7 +5935,7 @@ function MenubarRadioItem({
6084
5935
  ),
6085
5936
  ...props,
6086
5937
  children: [
6087
- /* @__PURE__ */ jsx37("span", { className: "absolute start-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx37(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx37(Circle, { className: "h-2 w-2 fill-current" }) }) }),
5938
+ /* @__PURE__ */ jsx36("span", { className: "absolute start-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx36(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx36(Circle, { className: "h-2 w-2 fill-current" }) }) }),
6088
5939
  children
6089
5940
  ]
6090
5941
  }
@@ -6095,7 +5946,7 @@ function MenubarLabel({
6095
5946
  inset,
6096
5947
  ...props
6097
5948
  }) {
6098
- return /* @__PURE__ */ jsx37(
5949
+ return /* @__PURE__ */ jsx36(
6099
5950
  MenubarPrimitive.Label,
6100
5951
  {
6101
5952
  "data-slot": "menubar-label",
@@ -6108,7 +5959,7 @@ function MenubarSeparator({
6108
5959
  className,
6109
5960
  ...props
6110
5961
  }) {
6111
- return /* @__PURE__ */ jsx37(
5962
+ return /* @__PURE__ */ jsx36(
6112
5963
  MenubarPrimitive.Separator,
6113
5964
  {
6114
5965
  "data-slot": "menubar-separator",
@@ -6118,10 +5969,10 @@ function MenubarSeparator({
6118
5969
  );
6119
5970
  }
6120
5971
  function MenubarSub({ ...props }) {
6121
- return /* @__PURE__ */ jsx37(MenubarPrimitive.Sub, { "data-slot": "menubar-sub", ...props });
5972
+ return /* @__PURE__ */ jsx36(MenubarPrimitive.Sub, { "data-slot": "menubar-sub", ...props });
6122
5973
  }
6123
5974
  var MenubarShortcut = ({ className, ...props }) => {
6124
- return /* @__PURE__ */ jsx37(
5975
+ return /* @__PURE__ */ jsx36(
6125
5976
  "span",
6126
5977
  {
6127
5978
  "data-slot": "menubar-shortcut",
@@ -6132,10 +5983,10 @@ var MenubarShortcut = ({ className, ...props }) => {
6132
5983
  };
6133
5984
 
6134
5985
  // src/ui/default/navigation-menu.tsx
6135
- import { cva as cva15 } from "class-variance-authority";
5986
+ import { cva as cva14 } from "class-variance-authority";
6136
5987
  import { ChevronDownIcon } from "lucide-react";
6137
5988
  import { NavigationMenu as NavigationMenuPrimitive } from "radix-ui";
6138
- import { jsx as jsx38, jsxs as jsxs20 } from "react/jsx-runtime";
5989
+ import { jsx as jsx37, jsxs as jsxs20 } from "react/jsx-runtime";
6139
5990
  function NavigationMenu({
6140
5991
  className,
6141
5992
  children,
@@ -6154,7 +6005,7 @@ function NavigationMenu({
6154
6005
  ...props,
6155
6006
  children: [
6156
6007
  children,
6157
- viewport && /* @__PURE__ */ jsx38(NavigationMenuViewport, {})
6008
+ viewport && /* @__PURE__ */ jsx37(NavigationMenuViewport, {})
6158
6009
  ]
6159
6010
  }
6160
6011
  );
@@ -6163,7 +6014,7 @@ function NavigationMenuList({
6163
6014
  className,
6164
6015
  ...props
6165
6016
  }) {
6166
- return /* @__PURE__ */ jsx38(
6017
+ return /* @__PURE__ */ jsx37(
6167
6018
  NavigationMenuPrimitive.List,
6168
6019
  {
6169
6020
  "data-slot": "navigation-menu-list",
@@ -6176,7 +6027,7 @@ function NavigationMenuItem({
6176
6027
  className,
6177
6028
  ...props
6178
6029
  }) {
6179
- return /* @__PURE__ */ jsx38(
6030
+ return /* @__PURE__ */ jsx37(
6180
6031
  NavigationMenuPrimitive.Item,
6181
6032
  {
6182
6033
  "data-slot": "navigation-menu-item",
@@ -6185,7 +6036,7 @@ function NavigationMenuItem({
6185
6036
  }
6186
6037
  );
6187
6038
  }
6188
- var navigationMenuTriggerStyle = cva15(
6039
+ var navigationMenuTriggerStyle = cva14(
6189
6040
  "cursor-pointer group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[active=true]:bg-accent/50 data-[state=open]:bg-accent/50 data-[active=true]:text-accent-foreground ring-ring/10 dark:ring-ring/20 dark:outline-ring/40 outline-ring/50 transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1"
6190
6041
  );
6191
6042
  function NavigationMenuTrigger({
@@ -6202,7 +6053,7 @@ function NavigationMenuTrigger({
6202
6053
  children: [
6203
6054
  children,
6204
6055
  " ",
6205
- /* @__PURE__ */ jsx38(
6056
+ /* @__PURE__ */ jsx37(
6206
6057
  ChevronDownIcon,
6207
6058
  {
6208
6059
  className: "relative top-px ms-1 size-3.5 opacity-60 transition duration-300 group-data-[state=open]:rotate-180",
@@ -6217,7 +6068,7 @@ function NavigationMenuContent({
6217
6068
  className,
6218
6069
  ...props
6219
6070
  }) {
6220
- return /* @__PURE__ */ jsx38(
6071
+ return /* @__PURE__ */ jsx37(
6221
6072
  NavigationMenuPrimitive.Content,
6222
6073
  {
6223
6074
  "data-slot": "navigation-menu-content",
@@ -6234,7 +6085,7 @@ function NavigationMenuViewport({
6234
6085
  className,
6235
6086
  ...props
6236
6087
  }) {
6237
- return /* @__PURE__ */ jsx38("div", { className: cn("absolute top-full left-0 isolate z-50 flex justify-center"), children: /* @__PURE__ */ jsx38(
6088
+ return /* @__PURE__ */ jsx37("div", { className: cn("absolute top-full left-0 isolate z-50 flex justify-center"), children: /* @__PURE__ */ jsx37(
6238
6089
  NavigationMenuPrimitive.Viewport,
6239
6090
  {
6240
6091
  "data-slot": "navigation-menu-viewport",
@@ -6250,7 +6101,7 @@ function NavigationMenuLink({
6250
6101
  className,
6251
6102
  ...props
6252
6103
  }) {
6253
- return /* @__PURE__ */ jsx38(
6104
+ return /* @__PURE__ */ jsx37(
6254
6105
  NavigationMenuPrimitive.Link,
6255
6106
  {
6256
6107
  "data-slot": "navigation-menu-link",
@@ -6266,7 +6117,7 @@ function NavigationMenuIndicator({
6266
6117
  className,
6267
6118
  ...props
6268
6119
  }) {
6269
- return /* @__PURE__ */ jsx38(
6120
+ return /* @__PURE__ */ jsx37(
6270
6121
  NavigationMenuPrimitive.Indicator,
6271
6122
  {
6272
6123
  "data-slot": "navigation-menu-indicator",
@@ -6275,15 +6126,15 @@ function NavigationMenuIndicator({
6275
6126
  className
6276
6127
  ),
6277
6128
  ...props,
6278
- children: /* @__PURE__ */ jsx38("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-ts-md bg-border shadow-md" })
6129
+ children: /* @__PURE__ */ jsx37("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-ts-md bg-border shadow-md" })
6279
6130
  }
6280
6131
  );
6281
6132
  }
6282
6133
 
6283
6134
  // src/ui/default/pagination.tsx
6284
6135
  import { MoreHorizontal as MoreHorizontal2 } from "lucide-react";
6285
- import { jsx as jsx39, jsxs as jsxs21 } from "react/jsx-runtime";
6286
- var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx39(
6136
+ import { jsx as jsx38, jsxs as jsxs21 } from "react/jsx-runtime";
6137
+ var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx38(
6287
6138
  "nav",
6288
6139
  {
6289
6140
  "data-slot": "pagination",
@@ -6293,7 +6144,7 @@ var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx39(
6293
6144
  }
6294
6145
  );
6295
6146
  function PaginationContent({ className, ...props }) {
6296
- return /* @__PURE__ */ jsx39(
6147
+ return /* @__PURE__ */ jsx38(
6297
6148
  "ul",
6298
6149
  {
6299
6150
  "data-slot": "pagination-content",
@@ -6303,7 +6154,7 @@ function PaginationContent({ className, ...props }) {
6303
6154
  );
6304
6155
  }
6305
6156
  function PaginationItem({ className, ...props }) {
6306
- return /* @__PURE__ */ jsx39("li", { "data-slot": "pagination-item", className: cn("", className), ...props });
6157
+ return /* @__PURE__ */ jsx38("li", { "data-slot": "pagination-item", className: cn("", className), ...props });
6307
6158
  }
6308
6159
  var PaginationEllipsis = ({ className, ...props }) => /* @__PURE__ */ jsxs21(
6309
6160
  "span",
@@ -6313,28 +6164,28 @@ var PaginationEllipsis = ({ className, ...props }) => /* @__PURE__ */ jsxs21(
6313
6164
  className: cn("flex h-9 w-9 items-center justify-center", className),
6314
6165
  ...props,
6315
6166
  children: [
6316
- /* @__PURE__ */ jsx39(MoreHorizontal2, { className: "h-4 w-4" }),
6317
- /* @__PURE__ */ jsx39("span", { className: "sr-only", children: "More pages" })
6167
+ /* @__PURE__ */ jsx38(MoreHorizontal2, { className: "h-4 w-4" }),
6168
+ /* @__PURE__ */ jsx38("span", { className: "sr-only", children: "More pages" })
6318
6169
  ]
6319
6170
  }
6320
6171
  );
6321
6172
 
6322
6173
  // src/ui/default/progress.tsx
6323
6174
  import { Progress as ProgressPrimitive } from "radix-ui";
6324
- import { jsx as jsx40, jsxs as jsxs22 } from "react/jsx-runtime";
6175
+ import { jsx as jsx39, jsxs as jsxs22 } from "react/jsx-runtime";
6325
6176
  function Progress({
6326
6177
  className,
6327
6178
  indicatorClassName,
6328
6179
  value,
6329
6180
  ...props
6330
6181
  }) {
6331
- return /* @__PURE__ */ jsx40(
6182
+ return /* @__PURE__ */ jsx39(
6332
6183
  ProgressPrimitive.Root,
6333
6184
  {
6334
6185
  "data-slot": "progress",
6335
6186
  className: cn("relative h-1.5 w-full overflow-hidden rounded-full bg-secondary", className),
6336
6187
  ...props,
6337
- children: /* @__PURE__ */ jsx40(
6188
+ children: /* @__PURE__ */ jsx39(
6338
6189
  ProgressPrimitive.Indicator,
6339
6190
  {
6340
6191
  "data-slot": "progress-indicator",
@@ -6374,7 +6225,7 @@ function ProgressCircle({
6374
6225
  height: size,
6375
6226
  viewBox: `0 0 ${size} ${size}`,
6376
6227
  children: [
6377
- /* @__PURE__ */ jsx40(
6228
+ /* @__PURE__ */ jsx39(
6378
6229
  "circle",
6379
6230
  {
6380
6231
  "data-slot": "progress-circle-track",
@@ -6387,7 +6238,7 @@ function ProgressCircle({
6387
6238
  className: cn("text-secondary", trackClassName)
6388
6239
  }
6389
6240
  ),
6390
- /* @__PURE__ */ jsx40(
6241
+ /* @__PURE__ */ jsx39(
6391
6242
  "circle",
6392
6243
  {
6393
6244
  "data-slot": "progress-circle-indicator",
@@ -6406,7 +6257,7 @@ function ProgressCircle({
6406
6257
  ]
6407
6258
  }
6408
6259
  ),
6409
- children && /* @__PURE__ */ jsx40(
6260
+ children && /* @__PURE__ */ jsx39(
6410
6261
  "div",
6411
6262
  {
6412
6263
  "data-slot": "progress-circle-content",
@@ -6450,7 +6301,7 @@ function ProgressRadial({
6450
6301
  ...props,
6451
6302
  children: [
6452
6303
  /* @__PURE__ */ jsxs22("svg", { width: size, height: size, viewBox: `0 0 ${size} ${size}`, children: [
6453
- /* @__PURE__ */ jsx40(
6304
+ /* @__PURE__ */ jsx39(
6454
6305
  "path",
6455
6306
  {
6456
6307
  d: [
@@ -6473,7 +6324,7 @@ function ProgressRadial({
6473
6324
  className: cn("text-secondary", trackClassName)
6474
6325
  }
6475
6326
  ),
6476
- /* @__PURE__ */ jsx40(
6327
+ /* @__PURE__ */ jsx39(
6477
6328
  "path",
6478
6329
  {
6479
6330
  d: pathData,
@@ -6485,7 +6336,7 @@ function ProgressRadial({
6485
6336
  }
6486
6337
  )
6487
6338
  ] }),
6488
- (showLabel || children) && /* @__PURE__ */ jsx40("div", { className: "absolute inset-0 flex items-center justify-center", children: children || /* @__PURE__ */ jsxs22("span", { className: "font-bold text-lg", children: [
6339
+ (showLabel || children) && /* @__PURE__ */ jsx39("div", { className: "absolute inset-0 flex items-center justify-center", children: children || /* @__PURE__ */ jsxs22("span", { className: "font-bold text-lg", children: [
6489
6340
  value,
6490
6341
  "%"
6491
6342
  ] }) })
@@ -6495,12 +6346,12 @@ function ProgressRadial({
6495
6346
  }
6496
6347
 
6497
6348
  // src/ui/default/radio-group.tsx
6498
- import * as React10 from "react";
6499
- import { cva as cva16 } from "class-variance-authority";
6349
+ import * as React9 from "react";
6350
+ import { cva as cva15 } from "class-variance-authority";
6500
6351
  import { Circle as Circle2 } from "lucide-react";
6501
6352
  import { RadioGroup as RadioGroupPrimitive } from "radix-ui";
6502
- import { jsx as jsx41 } from "react/jsx-runtime";
6503
- var radioGroupVariants = cva16("grid gap-2.5", {
6353
+ import { jsx as jsx40 } from "react/jsx-runtime";
6354
+ var radioGroupVariants = cva15("grid gap-2.5", {
6504
6355
  variants: {
6505
6356
  variant: {
6506
6357
  primary: "",
@@ -6517,14 +6368,14 @@ var radioGroupVariants = cva16("grid gap-2.5", {
6517
6368
  size: "md"
6518
6369
  }
6519
6370
  });
6520
- var RadioGroupContext = React10.createContext({ variant: "primary", size: "md" });
6371
+ var RadioGroupContext = React9.createContext({ variant: "primary", size: "md" });
6521
6372
  function RadioGroup({
6522
6373
  className,
6523
6374
  variant,
6524
6375
  size,
6525
6376
  ...props
6526
6377
  }) {
6527
- return /* @__PURE__ */ jsx41(RadioGroupContext.Provider, { value: { variant: variant ?? "primary", size: size ?? "md" }, children: /* @__PURE__ */ jsx41(
6378
+ return /* @__PURE__ */ jsx40(RadioGroupContext.Provider, { value: { variant: variant ?? "primary", size: size ?? "md" }, children: /* @__PURE__ */ jsx40(
6528
6379
  RadioGroupPrimitive.Root,
6529
6380
  {
6530
6381
  "data-slot": "radio-group",
@@ -6533,7 +6384,7 @@ function RadioGroup({
6533
6384
  }
6534
6385
  ) });
6535
6386
  }
6536
- var radioItemVariants = cva16(
6387
+ var radioItemVariants = cva15(
6537
6388
  `
6538
6389
  peer aspect-square rounded-full border outline-hidden ring-offset-background focus:outline-none focus-visible:ring-2
6539
6390
  focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50
@@ -6559,20 +6410,20 @@ function RadioGroupItem({
6559
6410
  size,
6560
6411
  ...props
6561
6412
  }) {
6562
- const { size: contextSize } = React10.useContext(RadioGroupContext);
6413
+ const { size: contextSize } = React9.useContext(RadioGroupContext);
6563
6414
  const effectiveSize = size ?? contextSize;
6564
- return /* @__PURE__ */ jsx41(
6415
+ return /* @__PURE__ */ jsx40(
6565
6416
  RadioGroupPrimitive.Item,
6566
6417
  {
6567
6418
  "data-slot": "radio-group-item",
6568
6419
  className: cn(radioItemVariants({ size: effectiveSize }), className),
6569
6420
  ...props,
6570
- children: /* @__PURE__ */ jsx41(
6421
+ children: /* @__PURE__ */ jsx40(
6571
6422
  RadioGroupPrimitive.Indicator,
6572
6423
  {
6573
6424
  "data-slot": "radio-group-indicator",
6574
6425
  className: "flex items-center justify-center",
6575
- children: /* @__PURE__ */ jsx41(Circle2, { className: "fill-current text-current" })
6426
+ children: /* @__PURE__ */ jsx40(Circle2, { className: "fill-current text-current" })
6576
6427
  }
6577
6428
  )
6578
6429
  }
@@ -6580,11 +6431,11 @@ function RadioGroupItem({
6580
6431
  }
6581
6432
 
6582
6433
  // src/ui/default/rating.tsx
6583
- import * as React11 from "react";
6584
- import { cva as cva17 } from "class-variance-authority";
6434
+ import * as React10 from "react";
6435
+ import { cva as cva16 } from "class-variance-authority";
6585
6436
  import { Star } from "lucide-react";
6586
- import { jsx as jsx42, jsxs as jsxs23 } from "react/jsx-runtime";
6587
- var ratingVariants = cva17("flex items-center", {
6437
+ import { jsx as jsx41, jsxs as jsxs23 } from "react/jsx-runtime";
6438
+ var ratingVariants = cva16("flex items-center", {
6588
6439
  variants: {
6589
6440
  size: {
6590
6441
  sm: "gap-2",
@@ -6596,7 +6447,7 @@ var ratingVariants = cva17("flex items-center", {
6596
6447
  size: "md"
6597
6448
  }
6598
6449
  });
6599
- var starVariants = cva17("", {
6450
+ var starVariants = cva16("", {
6600
6451
  variants: {
6601
6452
  size: {
6602
6453
  sm: "w-4 h-4",
@@ -6608,7 +6459,7 @@ var starVariants = cva17("", {
6608
6459
  size: "md"
6609
6460
  }
6610
6461
  });
6611
- var valueVariants = cva17("text-muted-foreground w-5", {
6462
+ var valueVariants = cva16("text-muted-foreground w-5", {
6612
6463
  variants: {
6613
6464
  size: {
6614
6465
  sm: "text-xs",
@@ -6631,7 +6482,7 @@ function Rating({
6631
6482
  onRatingChange,
6632
6483
  ...props
6633
6484
  }) {
6634
- const [hoveredRating, setHoveredRating] = React11.useState(null);
6485
+ const [hoveredRating, setHoveredRating] = React10.useState(null);
6635
6486
  const displayRating = editable && hoveredRating !== null ? hoveredRating : rating;
6636
6487
  const handleStarClick = (starRating) => {
6637
6488
  if (editable && onRatingChange) {
@@ -6663,21 +6514,21 @@ function Rating({
6663
6514
  onMouseEnter: () => handleStarMouseEnter(i),
6664
6515
  onMouseLeave: handleStarMouseLeave,
6665
6516
  children: [
6666
- /* @__PURE__ */ jsx42(
6517
+ /* @__PURE__ */ jsx41(
6667
6518
  Star,
6668
6519
  {
6669
6520
  "data-slot": "rating-star-empty",
6670
6521
  className: cn(starVariants({ size }), "text-muted-foreground/30")
6671
6522
  }
6672
6523
  ),
6673
- /* @__PURE__ */ jsx42(
6524
+ /* @__PURE__ */ jsx41(
6674
6525
  "div",
6675
6526
  {
6676
6527
  className: "absolute inset-0 overflow-hidden",
6677
6528
  style: {
6678
6529
  width: filled ? "100%" : `${fillPercentage}%`
6679
6530
  },
6680
- children: /* @__PURE__ */ jsx42(
6531
+ children: /* @__PURE__ */ jsx41(
6681
6532
  Star,
6682
6533
  {
6683
6534
  "data-slot": "rating-star-filled",
@@ -6695,19 +6546,19 @@ function Rating({
6695
6546
  return stars;
6696
6547
  };
6697
6548
  return /* @__PURE__ */ jsxs23("div", { "data-slot": "rating", className: cn(ratingVariants({ size }), className), ...props, children: [
6698
- /* @__PURE__ */ jsx42("div", { className: "flex items-center", children: renderStars() }),
6699
- showValue && /* @__PURE__ */ jsx42("span", { "data-slot": "rating-value", className: cn(valueVariants({ size }), starClassName), children: displayRating.toFixed(1) })
6549
+ /* @__PURE__ */ jsx41("div", { className: "flex items-center", children: renderStars() }),
6550
+ showValue && /* @__PURE__ */ jsx41("span", { "data-slot": "rating-value", className: cn(valueVariants({ size }), starClassName), children: displayRating.toFixed(1) })
6700
6551
  ] });
6701
6552
  }
6702
6553
 
6703
6554
  // src/ui/default/resizable.tsx
6704
6555
  import { GripVertical as GripVertical2 } from "lucide-react";
6705
6556
  import * as ResizablePrimitive from "react-resizable-panels";
6706
- import { jsx as jsx43 } from "react/jsx-runtime";
6557
+ import { jsx as jsx42 } from "react/jsx-runtime";
6707
6558
  var ResizablePanelGroup = ({
6708
6559
  className,
6709
6560
  ...props
6710
- }) => /* @__PURE__ */ jsx43(
6561
+ }) => /* @__PURE__ */ jsx42(
6711
6562
  ResizablePrimitive.PanelGroup,
6712
6563
  {
6713
6564
  "data-slot": "resizable-panel-group",
@@ -6720,7 +6571,7 @@ var ResizableHandle = ({
6720
6571
  withHandle,
6721
6572
  className,
6722
6573
  ...props
6723
- }) => /* @__PURE__ */ jsx43(
6574
+ }) => /* @__PURE__ */ jsx42(
6724
6575
  ResizablePrimitive.PanelResizeHandle,
6725
6576
  {
6726
6577
  "data-slot": "resizable-handle",
@@ -6729,13 +6580,13 @@ var ResizableHandle = ({
6729
6580
  className
6730
6581
  ),
6731
6582
  ...props,
6732
- children: withHandle && /* @__PURE__ */ jsx43("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ jsx43(GripVertical2, { className: "h-2.5 w-2.5" }) })
6583
+ children: withHandle && /* @__PURE__ */ jsx42("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ jsx42(GripVertical2, { className: "h-2.5 w-2.5" }) })
6733
6584
  }
6734
6585
  );
6735
6586
 
6736
6587
  // src/ui/default/scroll-area.tsx
6737
6588
  import { ScrollArea as ScrollAreaPrimitive } from "radix-ui";
6738
- import { jsx as jsx44, jsxs as jsxs24 } from "react/jsx-runtime";
6589
+ import { jsx as jsx43, jsxs as jsxs24 } from "react/jsx-runtime";
6739
6590
  function ScrollArea({
6740
6591
  className,
6741
6592
  viewportClassName,
@@ -6750,7 +6601,7 @@ function ScrollArea({
6750
6601
  className: cn("relative overflow-hidden", className),
6751
6602
  ...props,
6752
6603
  children: [
6753
- /* @__PURE__ */ jsx44(
6604
+ /* @__PURE__ */ jsx43(
6754
6605
  ScrollAreaPrimitive.Viewport,
6755
6606
  {
6756
6607
  ref: viewportRef,
@@ -6758,8 +6609,8 @@ function ScrollArea({
6758
6609
  children
6759
6610
  }
6760
6611
  ),
6761
- /* @__PURE__ */ jsx44(ScrollBar, {}),
6762
- /* @__PURE__ */ jsx44(ScrollAreaPrimitive.Corner, {})
6612
+ /* @__PURE__ */ jsx43(ScrollBar, {}),
6613
+ /* @__PURE__ */ jsx43(ScrollAreaPrimitive.Corner, {})
6763
6614
  ]
6764
6615
  }
6765
6616
  );
@@ -6769,7 +6620,7 @@ function ScrollBar({
6769
6620
  orientation = "vertical",
6770
6621
  ...props
6771
6622
  }) {
6772
- return /* @__PURE__ */ jsx44(
6623
+ return /* @__PURE__ */ jsx43(
6773
6624
  ScrollAreaPrimitive.ScrollAreaScrollbar,
6774
6625
  {
6775
6626
  "data-slot": "scroll-area-scrollbar",
@@ -6781,14 +6632,14 @@ function ScrollBar({
6781
6632
  className
6782
6633
  ),
6783
6634
  ...props,
6784
- children: /* @__PURE__ */ jsx44(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
6635
+ children: /* @__PURE__ */ jsx43(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
6785
6636
  }
6786
6637
  );
6787
6638
  }
6788
6639
 
6789
6640
  // src/ui/default/scrollspy.tsx
6790
6641
  import { useCallback as useCallback4, useEffect as useEffect4, useRef } from "react";
6791
- import { jsx as jsx45 } from "react/jsx-runtime";
6642
+ import { jsx as jsx44 } from "react/jsx-runtime";
6792
6643
  function Scrollspy({
6793
6644
  children,
6794
6645
  targetRef,
@@ -6916,31 +6767,31 @@ function Scrollspy({
6916
6767
  });
6917
6768
  };
6918
6769
  }, [targetRef, handleScroll, dataAttribute, scrollTo, scrollToHashSection]);
6919
- return /* @__PURE__ */ jsx45("div", { "data-slot": "scrollspy", className, ref: selfRef, children });
6770
+ return /* @__PURE__ */ jsx44("div", { "data-slot": "scrollspy", className, ref: selfRef, children });
6920
6771
  }
6921
6772
 
6922
6773
  // src/ui/default/sheet.tsx
6923
- import { cva as cva18 } from "class-variance-authority";
6774
+ import { cva as cva17 } from "class-variance-authority";
6924
6775
  import { X as X2 } from "lucide-react";
6925
6776
  import { Dialog as SheetPrimitive } from "radix-ui";
6926
- import { jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
6777
+ import { jsx as jsx45, jsxs as jsxs25 } from "react/jsx-runtime";
6927
6778
  function Sheet({ ...props }) {
6928
- return /* @__PURE__ */ jsx46(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
6779
+ return /* @__PURE__ */ jsx45(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
6929
6780
  }
6930
6781
  function SheetTrigger({ ...props }) {
6931
- return /* @__PURE__ */ jsx46(SheetPrimitive.Trigger, { "data-slot": "sheet-trigger", ...props });
6782
+ return /* @__PURE__ */ jsx45(SheetPrimitive.Trigger, { "data-slot": "sheet-trigger", ...props });
6932
6783
  }
6933
6784
  function SheetClose({ ...props }) {
6934
- return /* @__PURE__ */ jsx46(SheetPrimitive.Close, { "data-slot": "sheet-close", ...props });
6785
+ return /* @__PURE__ */ jsx45(SheetPrimitive.Close, { "data-slot": "sheet-close", ...props });
6935
6786
  }
6936
6787
  function SheetPortal({ ...props }) {
6937
- return /* @__PURE__ */ jsx46(SheetPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
6788
+ return /* @__PURE__ */ jsx45(SheetPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
6938
6789
  }
6939
6790
  function SheetOverlay({
6940
6791
  className,
6941
6792
  ...props
6942
6793
  }) {
6943
- return /* @__PURE__ */ jsx46(
6794
+ return /* @__PURE__ */ jsx45(
6944
6795
  SheetPrimitive.Overlay,
6945
6796
  {
6946
6797
  "data-slot": "sheet-overlay",
@@ -6952,7 +6803,7 @@ function SheetOverlay({
6952
6803
  }
6953
6804
  );
6954
6805
  }
6955
- var sheetVariants = cva18(
6806
+ var sheetVariants = cva17(
6956
6807
  "flex flex-col items-strech fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-400",
6957
6808
  {
6958
6809
  variants: {
@@ -6977,7 +6828,7 @@ function SheetContent({
6977
6828
  ...props
6978
6829
  }) {
6979
6830
  return /* @__PURE__ */ jsxs25(SheetPortal, { children: [
6980
- overlay && /* @__PURE__ */ jsx46(SheetOverlay, {}),
6831
+ overlay && /* @__PURE__ */ jsx45(SheetOverlay, {}),
6981
6832
  /* @__PURE__ */ jsxs25(SheetPrimitive.Content, { className: cn(sheetVariants({ side }), className), ...props, children: [
6982
6833
  children,
6983
6834
  close && /* @__PURE__ */ jsxs25(
@@ -6986,8 +6837,8 @@ function SheetContent({
6986
6837
  "data-slot": "sheet-close",
6987
6838
  className: "absolute end-5 top-4 cursor-pointer rounded-sm opacity-60 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",
6988
6839
  children: [
6989
- /* @__PURE__ */ jsx46(X2, { className: "h-4 w-4" }),
6990
- /* @__PURE__ */ jsx46("span", { className: "sr-only", children: "Close" })
6840
+ /* @__PURE__ */ jsx45(X2, { className: "h-4 w-4" }),
6841
+ /* @__PURE__ */ jsx45("span", { className: "sr-only", children: "Close" })
6991
6842
  ]
6992
6843
  }
6993
6844
  )
@@ -6995,7 +6846,7 @@ function SheetContent({
6995
6846
  ] });
6996
6847
  }
6997
6848
  function SheetHeader({ className, ...props }) {
6998
- return /* @__PURE__ */ jsx46(
6849
+ return /* @__PURE__ */ jsx45(
6999
6850
  "div",
7000
6851
  {
7001
6852
  "data-slot": "sheet-header",
@@ -7005,10 +6856,10 @@ function SheetHeader({ className, ...props }) {
7005
6856
  );
7006
6857
  }
7007
6858
  function SheetBody({ className, ...props }) {
7008
- return /* @__PURE__ */ jsx46("div", { "data-slot": "sheet-body", className: cn("py-2.5", className), ...props });
6859
+ return /* @__PURE__ */ jsx45("div", { "data-slot": "sheet-body", className: cn("py-2.5", className), ...props });
7009
6860
  }
7010
6861
  function SheetFooter({ className, ...props }) {
7011
- return /* @__PURE__ */ jsx46(
6862
+ return /* @__PURE__ */ jsx45(
7012
6863
  "div",
7013
6864
  {
7014
6865
  "data-slot": "sheet-footer",
@@ -7018,7 +6869,7 @@ function SheetFooter({ className, ...props }) {
7018
6869
  );
7019
6870
  }
7020
6871
  function SheetTitle({ className, ...props }) {
7021
- return /* @__PURE__ */ jsx46(
6872
+ return /* @__PURE__ */ jsx45(
7022
6873
  SheetPrimitive.Title,
7023
6874
  {
7024
6875
  "data-slot": "sheet-title",
@@ -7031,7 +6882,7 @@ function SheetDescription({
7031
6882
  className,
7032
6883
  ...props
7033
6884
  }) {
7034
- return /* @__PURE__ */ jsx46(
6885
+ return /* @__PURE__ */ jsx45(
7035
6886
  SheetPrimitive.Description,
7036
6887
  {
7037
6888
  "data-slot": "sheet-description",
@@ -7042,20 +6893,20 @@ function SheetDescription({
7042
6893
  }
7043
6894
 
7044
6895
  // src/ui/default/sidebar.tsx
7045
- import * as React12 from "react";
6896
+ import * as React11 from "react";
7046
6897
  import { Slot as Slot5 } from "@radix-ui/react-slot";
7047
- import { cva as cva19 } from "class-variance-authority";
6898
+ import { cva as cva18 } from "class-variance-authority";
7048
6899
  import { PanelLeftIcon } from "lucide-react";
7049
- import { jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
6900
+ import { jsx as jsx46, jsxs as jsxs26 } from "react/jsx-runtime";
7050
6901
  var SIDEBAR_COOKIE_NAME = "sidebar_state";
7051
6902
  var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
7052
6903
  var SIDEBAR_WIDTH = "16rem";
7053
6904
  var SIDEBAR_WIDTH_MOBILE = "18rem";
7054
6905
  var SIDEBAR_WIDTH_ICON = "3rem";
7055
6906
  var SIDEBAR_KEYBOARD_SHORTCUT = "b";
7056
- var SidebarContext = React12.createContext(null);
6907
+ var SidebarContext = React11.createContext(null);
7057
6908
  function useSidebar() {
7058
- const context = React12.useContext(SidebarContext);
6909
+ const context = React11.useContext(SidebarContext);
7059
6910
  if (!context) {
7060
6911
  throw new Error("useSidebar must be used within a SidebarProvider.");
7061
6912
  }
@@ -7071,10 +6922,10 @@ function SidebarProvider({
7071
6922
  ...props
7072
6923
  }) {
7073
6924
  const isMobile = useIsMobile(768);
7074
- const [openMobile, setOpenMobile] = React12.useState(false);
7075
- const [_open, _setOpen] = React12.useState(defaultOpen);
6925
+ const [openMobile, setOpenMobile] = React11.useState(false);
6926
+ const [_open, _setOpen] = React11.useState(defaultOpen);
7076
6927
  const open = openProp ?? _open;
7077
- const setOpen = React12.useCallback(
6928
+ const setOpen = React11.useCallback(
7078
6929
  (value) => {
7079
6930
  const openState = typeof value === "function" ? value(open) : value;
7080
6931
  if (setOpenProp) {
@@ -7086,10 +6937,10 @@ function SidebarProvider({
7086
6937
  },
7087
6938
  [setOpenProp, open]
7088
6939
  );
7089
- const toggleSidebar = React12.useCallback(() => {
6940
+ const toggleSidebar = React11.useCallback(() => {
7090
6941
  return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
7091
6942
  }, [isMobile, setOpen]);
7092
- React12.useEffect(() => {
6943
+ React11.useEffect(() => {
7093
6944
  const handleKeyDown = (event) => {
7094
6945
  if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
7095
6946
  event.preventDefault();
@@ -7100,7 +6951,7 @@ function SidebarProvider({
7100
6951
  return () => window.removeEventListener("keydown", handleKeyDown);
7101
6952
  }, [toggleSidebar]);
7102
6953
  const state = open ? "expanded" : "collapsed";
7103
- const contextValue = React12.useMemo(
6954
+ const contextValue = React11.useMemo(
7104
6955
  () => ({
7105
6956
  state,
7106
6957
  open,
@@ -7112,7 +6963,7 @@ function SidebarProvider({
7112
6963
  }),
7113
6964
  [state, open, setOpen, isMobile, openMobile, toggleSidebar]
7114
6965
  );
7115
- return /* @__PURE__ */ jsx47(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx47(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ jsx47(
6966
+ return /* @__PURE__ */ jsx46(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx46(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ jsx46(
7116
6967
  "div",
7117
6968
  {
7118
6969
  "data-slot": "sidebar-wrapper",
@@ -7140,7 +6991,7 @@ function Sidebar({
7140
6991
  }) {
7141
6992
  const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
7142
6993
  if (collapsible === "none") {
7143
- return /* @__PURE__ */ jsx47(
6994
+ return /* @__PURE__ */ jsx46(
7144
6995
  "div",
7145
6996
  {
7146
6997
  "data-slot": "sidebar",
@@ -7154,7 +7005,7 @@ function Sidebar({
7154
7005
  );
7155
7006
  }
7156
7007
  if (isMobile) {
7157
- return /* @__PURE__ */ jsx47(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ jsxs26(
7008
+ return /* @__PURE__ */ jsx46(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ jsxs26(
7158
7009
  SheetContent,
7159
7010
  {
7160
7011
  "data-sidebar": "sidebar",
@@ -7167,10 +7018,10 @@ function Sidebar({
7167
7018
  side,
7168
7019
  children: [
7169
7020
  /* @__PURE__ */ jsxs26(SheetHeader, { className: "sr-only", children: [
7170
- /* @__PURE__ */ jsx47(SheetTitle, { children: "Sidebar" }),
7171
- /* @__PURE__ */ jsx47(SheetDescription, { children: "Displays the mobile sidebar." })
7021
+ /* @__PURE__ */ jsx46(SheetTitle, { children: "Sidebar" }),
7022
+ /* @__PURE__ */ jsx46(SheetDescription, { children: "Displays the mobile sidebar." })
7172
7023
  ] }),
7173
- /* @__PURE__ */ jsx47("div", { className: "flex h-full w-full flex-col", children })
7024
+ /* @__PURE__ */ jsx46("div", { className: "flex h-full w-full flex-col", children })
7174
7025
  ]
7175
7026
  }
7176
7027
  ) });
@@ -7185,7 +7036,7 @@ function Sidebar({
7185
7036
  "data-side": side,
7186
7037
  "data-slot": "sidebar",
7187
7038
  children: [
7188
- /* @__PURE__ */ jsx47(
7039
+ /* @__PURE__ */ jsx46(
7189
7040
  "div",
7190
7041
  {
7191
7042
  "data-slot": "sidebar-gap",
@@ -7197,7 +7048,7 @@ function Sidebar({
7197
7048
  )
7198
7049
  }
7199
7050
  ),
7200
- /* @__PURE__ */ jsx47(
7051
+ /* @__PURE__ */ jsx46(
7201
7052
  "div",
7202
7053
  {
7203
7054
  "data-slot": "sidebar-container",
@@ -7209,7 +7060,7 @@ function Sidebar({
7209
7060
  className
7210
7061
  ),
7211
7062
  ...props,
7212
- children: /* @__PURE__ */ jsx47(
7063
+ children: /* @__PURE__ */ jsx46(
7213
7064
  "div",
7214
7065
  {
7215
7066
  "data-sidebar": "sidebar",
@@ -7240,15 +7091,15 @@ function SidebarTrigger({ className, onClick, ...props }) {
7240
7091
  },
7241
7092
  ...props,
7242
7093
  children: [
7243
- /* @__PURE__ */ jsx47(PanelLeftIcon, {}),
7244
- /* @__PURE__ */ jsx47("span", { className: "sr-only", children: "Toggle Sidebar" })
7094
+ /* @__PURE__ */ jsx46(PanelLeftIcon, {}),
7095
+ /* @__PURE__ */ jsx46("span", { className: "sr-only", children: "Toggle Sidebar" })
7245
7096
  ]
7246
7097
  }
7247
7098
  );
7248
7099
  }
7249
7100
  function SidebarRail({ className, ...props }) {
7250
7101
  const { toggleSidebar } = useSidebar();
7251
- return /* @__PURE__ */ jsx47(
7102
+ return /* @__PURE__ */ jsx46(
7252
7103
  "button",
7253
7104
  {
7254
7105
  "data-sidebar": "rail",
@@ -7258,7 +7109,7 @@ function SidebarRail({ className, ...props }) {
7258
7109
  onClick: toggleSidebar,
7259
7110
  title: "Toggle Sidebar",
7260
7111
  className: cn(
7261
- "-translate-x-1/2 group-data-[side=left]:-right-4 absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=right]:left-0 sm:flex",
7112
+ "-translate-x-1/2 group-data-[side=left]:-right-4 absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-0.5 hover:after:bg-sidebar-border group-data-[side=right]:left-0 sm:flex",
7262
7113
  "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
7263
7114
  "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
7264
7115
  "group-data-[collapsible=offcanvas]:translate-x-0 hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:after:left-full",
@@ -7271,7 +7122,7 @@ function SidebarRail({ className, ...props }) {
7271
7122
  );
7272
7123
  }
7273
7124
  function SidebarInset({ className, ...props }) {
7274
- return /* @__PURE__ */ jsx47(
7125
+ return /* @__PURE__ */ jsx46(
7275
7126
  "main",
7276
7127
  {
7277
7128
  "data-slot": "sidebar-inset",
@@ -7285,7 +7136,7 @@ function SidebarInset({ className, ...props }) {
7285
7136
  );
7286
7137
  }
7287
7138
  function SidebarInput({ className, ...props }) {
7288
- return /* @__PURE__ */ jsx47(
7139
+ return /* @__PURE__ */ jsx46(
7289
7140
  Input,
7290
7141
  {
7291
7142
  "data-slot": "sidebar-input",
@@ -7296,7 +7147,7 @@ function SidebarInput({ className, ...props }) {
7296
7147
  );
7297
7148
  }
7298
7149
  function SidebarHeader({ className, ...props }) {
7299
- return /* @__PURE__ */ jsx47(
7150
+ return /* @__PURE__ */ jsx46(
7300
7151
  "div",
7301
7152
  {
7302
7153
  "data-slot": "sidebar-header",
@@ -7307,7 +7158,7 @@ function SidebarHeader({ className, ...props }) {
7307
7158
  );
7308
7159
  }
7309
7160
  function SidebarFooter({ className, ...props }) {
7310
- return /* @__PURE__ */ jsx47(
7161
+ return /* @__PURE__ */ jsx46(
7311
7162
  "div",
7312
7163
  {
7313
7164
  "data-slot": "sidebar-footer",
@@ -7318,7 +7169,7 @@ function SidebarFooter({ className, ...props }) {
7318
7169
  );
7319
7170
  }
7320
7171
  function SidebarSeparator({ className, ...props }) {
7321
- return /* @__PURE__ */ jsx47(
7172
+ return /* @__PURE__ */ jsx46(
7322
7173
  Separator,
7323
7174
  {
7324
7175
  "data-slot": "sidebar-separator",
@@ -7329,7 +7180,7 @@ function SidebarSeparator({ className, ...props }) {
7329
7180
  );
7330
7181
  }
7331
7182
  function SidebarContent({ className, ...props }) {
7332
- return /* @__PURE__ */ jsx47(
7183
+ return /* @__PURE__ */ jsx46(
7333
7184
  "div",
7334
7185
  {
7335
7186
  "data-slot": "sidebar-content",
@@ -7343,7 +7194,7 @@ function SidebarContent({ className, ...props }) {
7343
7194
  );
7344
7195
  }
7345
7196
  function SidebarGroup({ className, ...props }) {
7346
- return /* @__PURE__ */ jsx47(
7197
+ return /* @__PURE__ */ jsx46(
7347
7198
  "div",
7348
7199
  {
7349
7200
  "data-slot": "sidebar-group",
@@ -7359,7 +7210,7 @@ function SidebarGroupLabel({
7359
7210
  ...props
7360
7211
  }) {
7361
7212
  const Comp = asChild ? Slot5 : "div";
7362
- return /* @__PURE__ */ jsx47(
7213
+ return /* @__PURE__ */ jsx46(
7363
7214
  Comp,
7364
7215
  {
7365
7216
  "data-slot": "sidebar-group-label",
@@ -7379,7 +7230,7 @@ function SidebarGroupAction({
7379
7230
  ...props
7380
7231
  }) {
7381
7232
  const Comp = asChild ? Slot5 : "button";
7382
- return /* @__PURE__ */ jsx47(
7233
+ return /* @__PURE__ */ jsx46(
7383
7234
  Comp,
7384
7235
  {
7385
7236
  "data-slot": "sidebar-group-action",
@@ -7396,7 +7247,7 @@ function SidebarGroupAction({
7396
7247
  );
7397
7248
  }
7398
7249
  function SidebarGroupContent({ className, ...props }) {
7399
- return /* @__PURE__ */ jsx47(
7250
+ return /* @__PURE__ */ jsx46(
7400
7251
  "div",
7401
7252
  {
7402
7253
  "data-slot": "sidebar-group-content",
@@ -7407,7 +7258,7 @@ function SidebarGroupContent({ className, ...props }) {
7407
7258
  );
7408
7259
  }
7409
7260
  function SidebarMenu({ className, ...props }) {
7410
- return /* @__PURE__ */ jsx47(
7261
+ return /* @__PURE__ */ jsx46(
7411
7262
  "ul",
7412
7263
  {
7413
7264
  "data-slot": "sidebar-menu",
@@ -7418,7 +7269,7 @@ function SidebarMenu({ className, ...props }) {
7418
7269
  );
7419
7270
  }
7420
7271
  function SidebarMenuItem({ className, ...props }) {
7421
- return /* @__PURE__ */ jsx47(
7272
+ return /* @__PURE__ */ jsx46(
7422
7273
  "li",
7423
7274
  {
7424
7275
  "data-slot": "sidebar-menu-item",
@@ -7428,7 +7279,7 @@ function SidebarMenuItem({ className, ...props }) {
7428
7279
  }
7429
7280
  );
7430
7281
  }
7431
- var sidebarMenuButtonVariants = cva19(
7282
+ var sidebarMenuButtonVariants = cva18(
7432
7283
  "peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] 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 group-has-data-[sidebar=menu-action]/menu-item:pr-8 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 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
7433
7284
  {
7434
7285
  variants: {
@@ -7459,7 +7310,7 @@ function SidebarMenuButton({
7459
7310
  }) {
7460
7311
  const Comp = asChild ? Slot5 : "button";
7461
7312
  const { isMobile, state } = useSidebar();
7462
- const button = /* @__PURE__ */ jsx47(
7313
+ const button = /* @__PURE__ */ jsx46(
7463
7314
  Comp,
7464
7315
  {
7465
7316
  "data-slot": "sidebar-menu-button",
@@ -7479,8 +7330,8 @@ function SidebarMenuButton({
7479
7330
  };
7480
7331
  }
7481
7332
  return /* @__PURE__ */ jsxs26(Tooltip, { children: [
7482
- /* @__PURE__ */ jsx47(TooltipTrigger, { asChild: true, children: button }),
7483
- /* @__PURE__ */ jsx47(
7333
+ /* @__PURE__ */ jsx46(TooltipTrigger, { asChild: true, children: button }),
7334
+ /* @__PURE__ */ jsx46(
7484
7335
  TooltipContent,
7485
7336
  {
7486
7337
  side: "right",
@@ -7498,7 +7349,7 @@ function SidebarMenuAction({
7498
7349
  ...props
7499
7350
  }) {
7500
7351
  const Comp = asChild ? Slot5 : "button";
7501
- return /* @__PURE__ */ jsx47(
7352
+ return /* @__PURE__ */ jsx46(
7502
7353
  Comp,
7503
7354
  {
7504
7355
  "data-slot": "sidebar-menu-action",
@@ -7519,7 +7370,7 @@ function SidebarMenuAction({
7519
7370
  );
7520
7371
  }
7521
7372
  function SidebarMenuBadge({ className, ...props }) {
7522
- return /* @__PURE__ */ jsx47(
7373
+ return /* @__PURE__ */ jsx46(
7523
7374
  "div",
7524
7375
  {
7525
7376
  "data-slot": "sidebar-menu-badge",
@@ -7542,7 +7393,7 @@ function SidebarMenuSkeleton({
7542
7393
  showIcon = false,
7543
7394
  ...props
7544
7395
  }) {
7545
- const width = React12.useMemo(() => {
7396
+ const width = React11.useMemo(() => {
7546
7397
  return `${Math.floor(Math.random() * 40) + 50}%`;
7547
7398
  }, []);
7548
7399
  return /* @__PURE__ */ jsxs26(
@@ -7553,8 +7404,8 @@ function SidebarMenuSkeleton({
7553
7404
  className: cn("flex h-8 items-center gap-2 rounded-md px-2", className),
7554
7405
  ...props,
7555
7406
  children: [
7556
- showIcon && /* @__PURE__ */ jsx47(Skeleton, { className: "size-4 rounded-md", "data-sidebar": "menu-skeleton-icon" }),
7557
- /* @__PURE__ */ jsx47(
7407
+ showIcon && /* @__PURE__ */ jsx46(Skeleton, { className: "size-4 rounded-md", "data-sidebar": "menu-skeleton-icon" }),
7408
+ /* @__PURE__ */ jsx46(
7558
7409
  Skeleton,
7559
7410
  {
7560
7411
  className: "h-4 max-w-(--skeleton-width) flex-1",
@@ -7569,7 +7420,7 @@ function SidebarMenuSkeleton({
7569
7420
  );
7570
7421
  }
7571
7422
  function SidebarMenuSub({ className, ...props }) {
7572
- return /* @__PURE__ */ jsx47(
7423
+ return /* @__PURE__ */ jsx46(
7573
7424
  "ul",
7574
7425
  {
7575
7426
  "data-slot": "sidebar-menu-sub",
@@ -7584,7 +7435,7 @@ function SidebarMenuSub({ className, ...props }) {
7584
7435
  );
7585
7436
  }
7586
7437
  function SidebarMenuSubItem({ className, ...props }) {
7587
- return /* @__PURE__ */ jsx47(
7438
+ return /* @__PURE__ */ jsx46(
7588
7439
  "li",
7589
7440
  {
7590
7441
  "data-slot": "sidebar-menu-sub-item",
@@ -7602,7 +7453,7 @@ function SidebarMenuSubButton({
7602
7453
  ...props
7603
7454
  }) {
7604
7455
  const Comp = asChild ? Slot5 : "a";
7605
- return /* @__PURE__ */ jsx47(
7456
+ return /* @__PURE__ */ jsx46(
7606
7457
  Comp,
7607
7458
  {
7608
7459
  "data-slot": "sidebar-menu-sub-button",
@@ -7624,7 +7475,7 @@ function SidebarMenuSubButton({
7624
7475
 
7625
7476
  // src/ui/default/slider.tsx
7626
7477
  import { Slider as SliderPrimitive } from "radix-ui";
7627
- import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
7478
+ import { jsx as jsx47, jsxs as jsxs27 } from "react/jsx-runtime";
7628
7479
  function Slider({
7629
7480
  className,
7630
7481
  children,
@@ -7637,14 +7488,14 @@ function Slider({
7637
7488
  className: cn("relative flex h-4 w-full touch-none select-none items-center", className),
7638
7489
  ...props,
7639
7490
  children: [
7640
- /* @__PURE__ */ jsx48(SliderPrimitive.Track, { className: "relative h-1.5 w-full overflow-hidden rounded-full bg-accent", children: /* @__PURE__ */ jsx48(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
7491
+ /* @__PURE__ */ jsx47(SliderPrimitive.Track, { className: "relative h-1.5 w-full overflow-hidden rounded-full bg-accent", children: /* @__PURE__ */ jsx47(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
7641
7492
  children
7642
7493
  ]
7643
7494
  }
7644
7495
  );
7645
7496
  }
7646
7497
  function SliderThumb({ className, ...props }) {
7647
- return /* @__PURE__ */ jsx48(
7498
+ return /* @__PURE__ */ jsx47(
7648
7499
  SliderPrimitive.Thumb,
7649
7500
  {
7650
7501
  "data-slot": "slider-thumb",
@@ -7660,10 +7511,10 @@ function SliderThumb({ className, ...props }) {
7660
7511
  // src/ui/default/sonner.tsx
7661
7512
  import { useTheme } from "next-themes";
7662
7513
  import { Toaster as Sonner } from "sonner";
7663
- import { jsx as jsx49 } from "react/jsx-runtime";
7514
+ import { jsx as jsx48 } from "react/jsx-runtime";
7664
7515
  var Toaster = ({ ...props }) => {
7665
7516
  const { theme = "system" } = useTheme();
7666
- return /* @__PURE__ */ jsx49(
7517
+ return /* @__PURE__ */ jsx48(
7667
7518
  Sonner,
7668
7519
  {
7669
7520
  theme,
@@ -7682,7 +7533,7 @@ var Toaster = ({ ...props }) => {
7682
7533
  };
7683
7534
 
7684
7535
  // src/ui/default/sortable.tsx
7685
- import * as React13 from "react";
7536
+ import * as React12 from "react";
7686
7537
  import {
7687
7538
  DndContext as DndContext4,
7688
7539
  DragOverlay as DragOverlay2,
@@ -7701,8 +7552,8 @@ import {
7701
7552
  } from "@dnd-kit/sortable";
7702
7553
  import { CSS as CSS5 } from "@dnd-kit/utilities";
7703
7554
  import { Slot as Slot6 } from "@radix-ui/react-slot";
7704
- import { jsx as jsx50, jsxs as jsxs28 } from "react/jsx-runtime";
7705
- var SortableItemContext = React13.createContext({
7555
+ import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
7556
+ var SortableItemContext = React12.createContext({
7706
7557
  listeners: void 0,
7707
7558
  isDragging: false,
7708
7559
  disabled: false
@@ -7718,7 +7569,7 @@ function Sortable({
7718
7569
  onDragStart,
7719
7570
  onDragEnd
7720
7571
  }) {
7721
- const [activeId, setActiveId] = React13.useState(null);
7572
+ const [activeId, setActiveId] = React12.useState(null);
7722
7573
  const sensors = useSensors4(
7723
7574
  useSensor4(PointerSensor2, {
7724
7575
  activationConstraint: {
@@ -7729,14 +7580,14 @@ function Sortable({
7729
7580
  coordinateGetter: sortableKeyboardCoordinates2
7730
7581
  })
7731
7582
  );
7732
- const handleDragStart = React13.useCallback(
7583
+ const handleDragStart = React12.useCallback(
7733
7584
  (event) => {
7734
7585
  setActiveId(event.active.id);
7735
7586
  onDragStart?.(event);
7736
7587
  },
7737
7588
  [onDragStart]
7738
7589
  );
7739
- const handleDragEnd = React13.useCallback(
7590
+ const handleDragEnd = React12.useCallback(
7740
7591
  (event) => {
7741
7592
  const { active, over } = event;
7742
7593
  setActiveId(null);
@@ -7765,12 +7616,12 @@ function Sortable({
7765
7616
  return verticalListSortingStrategy3;
7766
7617
  }
7767
7618
  };
7768
- const itemIds = React13.useMemo(() => value.map(getItemValue), [value, getItemValue]);
7619
+ const itemIds = React12.useMemo(() => value.map(getItemValue), [value, getItemValue]);
7769
7620
  return /* @__PURE__ */ jsxs28(DndContext4, { sensors, onDragStart: handleDragStart, onDragEnd: handleDragEnd, children: [
7770
- /* @__PURE__ */ jsx50(SortableContext4, { items: itemIds, strategy: getStrategy(), children: /* @__PURE__ */ jsx50("div", { "data-slot": "sortable", "data-dragging": activeId !== null, className: cn(className), children }) }),
7771
- /* @__PURE__ */ jsx50(DragOverlay2, { children: activeId ? /* @__PURE__ */ jsx50("div", { className: "z-50", children: React13.Children.map(children, (child) => {
7772
- if (React13.isValidElement(child) && child.props.value === activeId) {
7773
- return React13.cloneElement(child, {
7621
+ /* @__PURE__ */ jsx49(SortableContext4, { items: itemIds, strategy: getStrategy(), children: /* @__PURE__ */ jsx49("div", { "data-slot": "sortable", "data-dragging": activeId !== null, className: cn(className), children }) }),
7622
+ /* @__PURE__ */ jsx49(DragOverlay2, { children: activeId ? /* @__PURE__ */ jsx49("div", { className: "z-50", children: React12.Children.map(children, (child) => {
7623
+ if (React12.isValidElement(child) && child.props.value === activeId) {
7624
+ return React12.cloneElement(child, {
7774
7625
  ...child.props,
7775
7626
  className: cn(child.props.className, "z-50 shadow-lg")
7776
7627
  });
@@ -7802,7 +7653,7 @@ function SortableItem({
7802
7653
  transform: CSS5.Translate.toString(transform)
7803
7654
  };
7804
7655
  const Comp = asChild ? Slot6 : "div";
7805
- return /* @__PURE__ */ jsx50(SortableItemContext.Provider, { value: { listeners, isDragging: isSortableDragging, disabled }, children: /* @__PURE__ */ jsx50(
7656
+ return /* @__PURE__ */ jsx49(SortableItemContext.Provider, { value: { listeners, isDragging: isSortableDragging, disabled }, children: /* @__PURE__ */ jsx49(
7806
7657
  Comp,
7807
7658
  {
7808
7659
  "data-slot": "sortable-item",
@@ -7823,9 +7674,9 @@ function SortableItemHandle({
7823
7674
  children,
7824
7675
  cursor = true
7825
7676
  }) {
7826
- const { listeners, isDragging, disabled } = React13.useContext(SortableItemContext);
7677
+ const { listeners, isDragging, disabled } = React12.useContext(SortableItemContext);
7827
7678
  const Comp = asChild ? Slot6 : "div";
7828
- return /* @__PURE__ */ jsx50(
7679
+ return /* @__PURE__ */ jsx49(
7829
7680
  Comp,
7830
7681
  {
7831
7682
  "data-slot": "sortable-item-handle",
@@ -7840,9 +7691,9 @@ function SortableItemHandle({
7840
7691
 
7841
7692
  // src/ui/default/spinner.tsx
7842
7693
  import { Loader2Icon, LoaderIcon } from "lucide-react";
7843
- import { jsx as jsx51 } from "react/jsx-runtime";
7694
+ import { jsx as jsx50 } from "react/jsx-runtime";
7844
7695
  function Spinner({ className, ...props }) {
7845
- return /* @__PURE__ */ jsx51(
7696
+ return /* @__PURE__ */ jsx50(
7846
7697
  Loader2Icon,
7847
7698
  {
7848
7699
  role: "status",
@@ -7853,7 +7704,7 @@ function Spinner({ className, ...props }) {
7853
7704
  );
7854
7705
  }
7855
7706
  function SpinnerDefault({ className, ...props }) {
7856
- return /* @__PURE__ */ jsx51(
7707
+ return /* @__PURE__ */ jsx50(
7857
7708
  LoaderIcon,
7858
7709
  {
7859
7710
  role: "status",
@@ -7865,18 +7716,18 @@ function SpinnerDefault({ className, ...props }) {
7865
7716
  }
7866
7717
 
7867
7718
  // src/ui/default/stepper.tsx
7868
- import * as React14 from "react";
7869
- import { createContext as createContext14, useContext as useContext15 } from "react";
7870
- import { jsx as jsx52 } from "react/jsx-runtime";
7871
- var StepperContext = createContext14(void 0);
7872
- var StepItemContext = createContext14(void 0);
7719
+ import * as React13 from "react";
7720
+ import { createContext as createContext13, useContext as useContext14 } from "react";
7721
+ import { jsx as jsx51 } from "react/jsx-runtime";
7722
+ var StepperContext = createContext13(void 0);
7723
+ var StepItemContext = createContext13(void 0);
7873
7724
  function useStepper() {
7874
- const ctx = useContext15(StepperContext);
7725
+ const ctx = useContext14(StepperContext);
7875
7726
  if (!ctx) throw new Error("useStepper must be used within a Stepper");
7876
7727
  return ctx;
7877
7728
  }
7878
7729
  function useStepItem() {
7879
- const ctx = useContext15(StepItemContext);
7730
+ const ctx = useContext14(StepItemContext);
7880
7731
  if (!ctx) throw new Error("useStepItem must be used within a StepperItem");
7881
7732
  return ctx;
7882
7733
  }
@@ -7890,9 +7741,9 @@ function Stepper({
7890
7741
  indicators = {},
7891
7742
  ...props
7892
7743
  }) {
7893
- const [activeStep, setActiveStep] = React14.useState(defaultValue);
7894
- const [triggerNodes, setTriggerNodes] = React14.useState([]);
7895
- const registerTrigger = React14.useCallback((node) => {
7744
+ const [activeStep, setActiveStep] = React13.useState(defaultValue);
7745
+ const [triggerNodes, setTriggerNodes] = React13.useState([]);
7746
+ const registerTrigger = React13.useCallback((node) => {
7896
7747
  setTriggerNodes((prev) => {
7897
7748
  if (node && !prev.includes(node)) {
7898
7749
  return [...prev, node];
@@ -7903,7 +7754,7 @@ function Stepper({
7903
7754
  }
7904
7755
  });
7905
7756
  }, []);
7906
- const handleSetActiveStep = React14.useCallback(
7757
+ const handleSetActiveStep = React13.useCallback(
7907
7758
  (step) => {
7908
7759
  if (value === void 0) {
7909
7760
  setActiveStep(step);
@@ -7913,31 +7764,31 @@ function Stepper({
7913
7764
  [value, onValueChange]
7914
7765
  );
7915
7766
  const currentStep = value ?? activeStep;
7916
- const focusTrigger = React14.useCallback(
7767
+ const focusTrigger = React13.useCallback(
7917
7768
  (idx) => {
7918
7769
  if (triggerNodes[idx]) triggerNodes[idx].focus();
7919
7770
  },
7920
7771
  [triggerNodes]
7921
7772
  );
7922
- const focusNext = React14.useCallback(
7773
+ const focusNext = React13.useCallback(
7923
7774
  (currentIdx) => focusTrigger((currentIdx + 1) % triggerNodes.length),
7924
7775
  [focusTrigger, triggerNodes.length]
7925
7776
  );
7926
- const focusPrev = React14.useCallback(
7777
+ const focusPrev = React13.useCallback(
7927
7778
  (currentIdx) => focusTrigger((currentIdx - 1 + triggerNodes.length) % triggerNodes.length),
7928
7779
  [focusTrigger, triggerNodes.length]
7929
7780
  );
7930
- const focusFirst = React14.useCallback(() => focusTrigger(0), [focusTrigger]);
7931
- const focusLast = React14.useCallback(
7781
+ const focusFirst = React13.useCallback(() => focusTrigger(0), [focusTrigger]);
7782
+ const focusLast = React13.useCallback(
7932
7783
  () => focusTrigger(triggerNodes.length - 1),
7933
7784
  [focusTrigger, triggerNodes.length]
7934
7785
  );
7935
- const contextValue = React14.useMemo(
7786
+ const contextValue = React13.useMemo(
7936
7787
  () => ({
7937
7788
  activeStep: currentStep,
7938
7789
  setActiveStep: handleSetActiveStep,
7939
- stepsCount: React14.Children.toArray(children).filter(
7940
- (child) => React14.isValidElement(child) && child.type.displayName === "StepperItem"
7790
+ stepsCount: React13.Children.toArray(children).filter(
7791
+ (child) => React13.isValidElement(child) && child.type.displayName === "StepperItem"
7941
7792
  ).length,
7942
7793
  orientation,
7943
7794
  registerTrigger,
@@ -7962,7 +7813,7 @@ function Stepper({
7962
7813
  indicators
7963
7814
  ]
7964
7815
  );
7965
- return /* @__PURE__ */ jsx52(StepperContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx52(
7816
+ return /* @__PURE__ */ jsx51(StepperContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx51(
7966
7817
  "div",
7967
7818
  {
7968
7819
  role: "tablist",
@@ -7987,7 +7838,7 @@ function StepperItem({
7987
7838
  const { activeStep } = useStepper();
7988
7839
  const state = completed || step < activeStep ? "completed" : activeStep === step ? "active" : "inactive";
7989
7840
  const isLoading = loading && step === activeStep;
7990
- return /* @__PURE__ */ jsx52(StepItemContext.Provider, { value: { step, state, isDisabled: disabled, isLoading }, children: /* @__PURE__ */ jsx52(
7841
+ return /* @__PURE__ */ jsx51(StepItemContext.Provider, { value: { step, state, isDisabled: disabled, isLoading }, children: /* @__PURE__ */ jsx51(
7991
7842
  "div",
7992
7843
  {
7993
7844
  "data-slot": "stepper-item",
@@ -8025,13 +7876,13 @@ function StepperTrigger({
8025
7876
  const isSelected = activeStep === step;
8026
7877
  const id = `stepper-tab-${step}`;
8027
7878
  const panelId = `stepper-panel-${step}`;
8028
- const btnRef = React14.useRef(null);
8029
- React14.useEffect(() => {
7879
+ const btnRef = React13.useRef(null);
7880
+ React13.useEffect(() => {
8030
7881
  if (btnRef.current) {
8031
7882
  registerTrigger(btnRef.current);
8032
7883
  }
8033
7884
  }, [registerTrigger]);
8034
- const myIdx = React14.useMemo(
7885
+ const myIdx = React13.useMemo(
8035
7886
  () => triggerNodes.findIndex((n) => n === btnRef.current),
8036
7887
  [triggerNodes]
8037
7888
  );
@@ -8063,9 +7914,9 @@ function StepperTrigger({
8063
7914
  }
8064
7915
  };
8065
7916
  if (asChild) {
8066
- return /* @__PURE__ */ jsx52("span", { "data-slot": "stepper-trigger", "data-state": state, className, children });
7917
+ return /* @__PURE__ */ jsx51("span", { "data-slot": "stepper-trigger", "data-state": state, className, children });
8067
7918
  }
8068
- return /* @__PURE__ */ jsx52(
7919
+ return /* @__PURE__ */ jsx51(
8069
7920
  "button",
8070
7921
  {
8071
7922
  ref: btnRef,
@@ -8092,7 +7943,7 @@ function StepperTrigger({
8092
7943
  function StepperIndicator({ children, className }) {
8093
7944
  const { state, isLoading } = useStepItem();
8094
7945
  const { indicators } = useStepper();
8095
- return /* @__PURE__ */ jsx52(
7946
+ return /* @__PURE__ */ jsx51(
8096
7947
  "div",
8097
7948
  {
8098
7949
  "data-slot": "stepper-indicator",
@@ -8101,13 +7952,13 @@ function StepperIndicator({ children, className }) {
8101
7952
  "relative flex size-6 shrink-0 items-center justify-center overflow-hidden rounded-full border-background bg-accent text-accent-foreground text-xs data-[state=active]:bg-primary data-[state=completed]:bg-primary data-[state=active]:text-primary-foreground data-[state=completed]:text-primary-foreground",
8102
7953
  className
8103
7954
  ),
8104
- children: /* @__PURE__ */ jsx52("div", { className: "absolute", children: indicators && (isLoading && indicators.loading || state === "completed" && indicators.completed || state === "active" && indicators.active || state === "inactive" && indicators.inactive) ? isLoading && indicators.loading || state === "completed" && indicators.completed || state === "active" && indicators.active || state === "inactive" && indicators.inactive : children })
7955
+ children: /* @__PURE__ */ jsx51("div", { className: "absolute", children: indicators && (isLoading && indicators.loading || state === "completed" && indicators.completed || state === "active" && indicators.active || state === "inactive" && indicators.inactive) ? isLoading && indicators.loading || state === "completed" && indicators.completed || state === "active" && indicators.active || state === "inactive" && indicators.inactive : children })
8105
7956
  }
8106
7957
  );
8107
7958
  }
8108
7959
  function StepperSeparator({ className }) {
8109
7960
  const { state } = useStepItem();
8110
- return /* @__PURE__ */ jsx52(
7961
+ return /* @__PURE__ */ jsx51(
8111
7962
  "div",
8112
7963
  {
8113
7964
  "data-slot": "stepper-separator",
@@ -8121,7 +7972,7 @@ function StepperSeparator({ className }) {
8121
7972
  }
8122
7973
  function StepperTitle({ children, className }) {
8123
7974
  const { state } = useStepItem();
8124
- return /* @__PURE__ */ jsx52(
7975
+ return /* @__PURE__ */ jsx51(
8125
7976
  "h3",
8126
7977
  {
8127
7978
  "data-slot": "stepper-title",
@@ -8133,7 +7984,7 @@ function StepperTitle({ children, className }) {
8133
7984
  }
8134
7985
  function StepperDescription({ children, className }) {
8135
7986
  const { state } = useStepItem();
8136
- return /* @__PURE__ */ jsx52(
7987
+ return /* @__PURE__ */ jsx51(
8137
7988
  "div",
8138
7989
  {
8139
7990
  "data-slot": "stepper-description",
@@ -8145,7 +7996,7 @@ function StepperDescription({ children, className }) {
8145
7996
  }
8146
7997
  function StepperNav({ children, className }) {
8147
7998
  const { activeStep, orientation } = useStepper();
8148
- return /* @__PURE__ */ jsx52(
7999
+ return /* @__PURE__ */ jsx51(
8149
8000
  "nav",
8150
8001
  {
8151
8002
  "data-slot": "stepper-nav",
@@ -8161,7 +8012,7 @@ function StepperNav({ children, className }) {
8161
8012
  }
8162
8013
  function StepperPanel({ children, className }) {
8163
8014
  const { activeStep } = useStepper();
8164
- return /* @__PURE__ */ jsx52("div", { "data-slot": "stepper-panel", "data-state": activeStep, className: cn("w-full", className), children });
8015
+ return /* @__PURE__ */ jsx51("div", { "data-slot": "stepper-panel", "data-state": activeStep, className: cn("w-full", className), children });
8165
8016
  }
8166
8017
  function StepperContent({ value, forceMount, children, className }) {
8167
8018
  const { activeStep } = useStepper();
@@ -8169,7 +8020,7 @@ function StepperContent({ value, forceMount, children, className }) {
8169
8020
  if (!forceMount && !isActive) {
8170
8021
  return null;
8171
8022
  }
8172
- return /* @__PURE__ */ jsx52(
8023
+ return /* @__PURE__ */ jsx51(
8173
8024
  "div",
8174
8025
  {
8175
8026
  "data-slot": "stepper-content",
@@ -8182,9 +8033,9 @@ function StepperContent({ value, forceMount, children, className }) {
8182
8033
  }
8183
8034
 
8184
8035
  // src/ui/default/table.tsx
8185
- import { jsx as jsx53 } from "react/jsx-runtime";
8036
+ import { jsx as jsx52 } from "react/jsx-runtime";
8186
8037
  function Table({ className, ...props }) {
8187
- return /* @__PURE__ */ jsx53("div", { "data-slot": "table-wrapper", className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx53(
8038
+ return /* @__PURE__ */ jsx52("div", { "data-slot": "table-wrapper", className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx52(
8188
8039
  "table",
8189
8040
  {
8190
8041
  "data-slot": "table",
@@ -8194,10 +8045,10 @@ function Table({ className, ...props }) {
8194
8045
  ) });
8195
8046
  }
8196
8047
  function TableHeader({ className, ...props }) {
8197
- return /* @__PURE__ */ jsx53("thead", { "data-slot": "table-header", className: cn("[&_tr]:border-b", className), ...props });
8048
+ return /* @__PURE__ */ jsx52("thead", { "data-slot": "table-header", className: cn("[&_tr]:border-b", className), ...props });
8198
8049
  }
8199
8050
  function TableBody({ className, ...props }) {
8200
- return /* @__PURE__ */ jsx53(
8051
+ return /* @__PURE__ */ jsx52(
8201
8052
  "tbody",
8202
8053
  {
8203
8054
  "data-slot": "table-body",
@@ -8207,7 +8058,7 @@ function TableBody({ className, ...props }) {
8207
8058
  );
8208
8059
  }
8209
8060
  function TableFooter({ className, ...props }) {
8210
- return /* @__PURE__ */ jsx53(
8061
+ return /* @__PURE__ */ jsx52(
8211
8062
  "tfoot",
8212
8063
  {
8213
8064
  "data-slot": "table-footer",
@@ -8217,7 +8068,7 @@ function TableFooter({ className, ...props }) {
8217
8068
  );
8218
8069
  }
8219
8070
  function TableRow({ className, ...props }) {
8220
- return /* @__PURE__ */ jsx53(
8071
+ return /* @__PURE__ */ jsx52(
8221
8072
  "tr",
8222
8073
  {
8223
8074
  "data-slot": "table-row",
@@ -8230,7 +8081,7 @@ function TableRow({ className, ...props }) {
8230
8081
  );
8231
8082
  }
8232
8083
  function TableHead({ className, ...props }) {
8233
- return /* @__PURE__ */ jsx53(
8084
+ return /* @__PURE__ */ jsx52(
8234
8085
  "th",
8235
8086
  {
8236
8087
  "data-slot": "table-head",
@@ -8243,7 +8094,7 @@ function TableHead({ className, ...props }) {
8243
8094
  );
8244
8095
  }
8245
8096
  function TableCell({ className, ...props }) {
8246
- return /* @__PURE__ */ jsx53(
8097
+ return /* @__PURE__ */ jsx52(
8247
8098
  "td",
8248
8099
  {
8249
8100
  "data-slot": "table-cell",
@@ -8253,7 +8104,7 @@ function TableCell({ className, ...props }) {
8253
8104
  );
8254
8105
  }
8255
8106
  function TableCaption({ className, ...props }) {
8256
- return /* @__PURE__ */ jsx53(
8107
+ return /* @__PURE__ */ jsx52(
8257
8108
  "caption",
8258
8109
  {
8259
8110
  "data-slot": "table-caption",
@@ -8264,11 +8115,11 @@ function TableCaption({ className, ...props }) {
8264
8115
  }
8265
8116
 
8266
8117
  // src/ui/default/tabs.tsx
8267
- import * as React15 from "react";
8268
- import { cva as cva20 } from "class-variance-authority";
8118
+ import * as React14 from "react";
8119
+ import { cva as cva19 } from "class-variance-authority";
8269
8120
  import { Tabs as TabsPrimitive } from "radix-ui";
8270
- import { jsx as jsx54 } from "react/jsx-runtime";
8271
- var tabsListVariants = cva20("flex items-center shrink-0", {
8121
+ import { jsx as jsx53 } from "react/jsx-runtime";
8122
+ var tabsListVariants = cva19("flex items-center shrink-0", {
8272
8123
  variants: {
8273
8124
  variant: {
8274
8125
  default: "bg-accent p-1",
@@ -8335,7 +8186,7 @@ var tabsListVariants = cva20("flex items-center shrink-0", {
8335
8186
  size: "md"
8336
8187
  }
8337
8188
  });
8338
- var tabsTriggerVariants = cva20(
8189
+ var tabsTriggerVariants = cva19(
8339
8190
  "shrink-0 cursor-pointer whitespace-nowrap inline-flex justify-center items-center font-medium ring-offset-background transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:shrink-0 [&_svg]:text-muted-foreground [&:hover_svg]:text-primary [&[data-state=active]_svg]:text-primary",
8340
8191
  {
8341
8192
  variants: {
@@ -8371,7 +8222,7 @@ var tabsTriggerVariants = cva20(
8371
8222
  }
8372
8223
  }
8373
8224
  );
8374
- var tabsContentVariants = cva20(
8225
+ var tabsContentVariants = cva19(
8375
8226
  "mt-2.5 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
8376
8227
  {
8377
8228
  variants: {
@@ -8384,12 +8235,12 @@ var tabsContentVariants = cva20(
8384
8235
  }
8385
8236
  }
8386
8237
  );
8387
- var TabsContext = React15.createContext({
8238
+ var TabsContext = React14.createContext({
8388
8239
  variant: "default",
8389
8240
  size: "md"
8390
8241
  });
8391
8242
  function Tabs({ className, ...props }) {
8392
- return /* @__PURE__ */ jsx54(TabsPrimitive.Root, { "data-slot": "tabs", className: cn("", className), ...props });
8243
+ return /* @__PURE__ */ jsx53(TabsPrimitive.Root, { "data-slot": "tabs", className: cn("", className), ...props });
8393
8244
  }
8394
8245
  function TabsList({
8395
8246
  className,
@@ -8398,7 +8249,7 @@ function TabsList({
8398
8249
  size = "md",
8399
8250
  ...props
8400
8251
  }) {
8401
- return /* @__PURE__ */ jsx54(TabsContext.Provider, { value: { variant: variant || "default", size: size || "md" }, children: /* @__PURE__ */ jsx54(
8252
+ return /* @__PURE__ */ jsx53(TabsContext.Provider, { value: { variant: variant || "default", size: size || "md" }, children: /* @__PURE__ */ jsx53(
8402
8253
  TabsPrimitive.List,
8403
8254
  {
8404
8255
  "data-slot": "tabs-list",
@@ -8408,8 +8259,8 @@ function TabsList({
8408
8259
  ) });
8409
8260
  }
8410
8261
  function TabsTrigger({ className, ...props }) {
8411
- const { variant, size } = React15.useContext(TabsContext);
8412
- return /* @__PURE__ */ jsx54(
8262
+ const { variant, size } = React14.useContext(TabsContext);
8263
+ return /* @__PURE__ */ jsx53(
8413
8264
  TabsPrimitive.Trigger,
8414
8265
  {
8415
8266
  "data-slot": "tabs-trigger",
@@ -8423,7 +8274,7 @@ function TabsContent({
8423
8274
  variant,
8424
8275
  ...props
8425
8276
  }) {
8426
- return /* @__PURE__ */ jsx54(
8277
+ return /* @__PURE__ */ jsx53(
8427
8278
  TabsPrimitive.Content,
8428
8279
  {
8429
8280
  "data-slot": "tabs-content",
@@ -8434,9 +8285,9 @@ function TabsContent({
8434
8285
  }
8435
8286
 
8436
8287
  // src/ui/default/textarea.tsx
8437
- import { cva as cva21 } from "class-variance-authority";
8438
- import { jsx as jsx55 } from "react/jsx-runtime";
8439
- var textareaVariants = cva21(
8288
+ import { cva as cva20 } from "class-variance-authority";
8289
+ import { jsx as jsx54 } from "react/jsx-runtime";
8290
+ var textareaVariants = cva20(
8440
8291
  `
8441
8292
  w-full bg-background border border-input shadow-xs shadow-black/5 transition-[color,box-shadow]
8442
8293
  text-foreground placeholder:text-muted-foreground/80 focus-visible:border-ring focus-visible:outline-none focus-visible:ring-[3px]
@@ -8461,7 +8312,7 @@ function Textarea({
8461
8312
  variant,
8462
8313
  ...props
8463
8314
  }) {
8464
- return /* @__PURE__ */ jsx55(
8315
+ return /* @__PURE__ */ jsx54(
8465
8316
  "textarea",
8466
8317
  {
8467
8318
  "data-slot": "textarea",
@@ -8472,10 +8323,10 @@ function Textarea({
8472
8323
  }
8473
8324
 
8474
8325
  // src/ui/default/toggle.tsx
8475
- import { cva as cva22 } from "class-variance-authority";
8326
+ import { cva as cva21 } from "class-variance-authority";
8476
8327
  import { Toggle as TogglePrimitive } from "radix-ui";
8477
- import { jsx as jsx56 } from "react/jsx-runtime";
8478
- var toggleVariants = cva22(
8328
+ import { jsx as jsx55 } from "react/jsx-runtime";
8329
+ var toggleVariants = cva21(
8479
8330
  "cursor-pointer inline-flex items-center justify-center rounded-md shrink-0 font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",
8480
8331
  {
8481
8332
  variants: {
@@ -8501,7 +8352,7 @@ function Toggle({
8501
8352
  size,
8502
8353
  ...props
8503
8354
  }) {
8504
- return /* @__PURE__ */ jsx56(
8355
+ return /* @__PURE__ */ jsx55(
8505
8356
  TogglePrimitive.Root,
8506
8357
  {
8507
8358
  "data-slot": "toggle",
@@ -8512,10 +8363,10 @@ function Toggle({
8512
8363
  }
8513
8364
 
8514
8365
  // src/ui/default/toggle-group.tsx
8515
- import * as React16 from "react";
8366
+ import * as React15 from "react";
8516
8367
  import { ToggleGroup as ToggleGroupPrimitive } from "radix-ui";
8517
- import { jsx as jsx57 } from "react/jsx-runtime";
8518
- var ToggleGroupContext = React16.createContext({
8368
+ import { jsx as jsx56 } from "react/jsx-runtime";
8369
+ var ToggleGroupContext = React15.createContext({
8519
8370
  size: "md",
8520
8371
  variant: "default"
8521
8372
  });
@@ -8526,7 +8377,7 @@ function ToggleGroup({
8526
8377
  children,
8527
8378
  ...props
8528
8379
  }) {
8529
- return /* @__PURE__ */ jsx57(
8380
+ return /* @__PURE__ */ jsx56(
8530
8381
  ToggleGroupPrimitive.Root,
8531
8382
  {
8532
8383
  "data-slot": "toggle-group",
@@ -8537,7 +8388,7 @@ function ToggleGroup({
8537
8388
  className
8538
8389
  ),
8539
8390
  ...props,
8540
- children: /* @__PURE__ */ jsx57(ToggleGroupContext.Provider, { value: { variant, size }, children })
8391
+ children: /* @__PURE__ */ jsx56(ToggleGroupContext.Provider, { value: { variant, size }, children })
8541
8392
  }
8542
8393
  );
8543
8394
  }
@@ -8548,8 +8399,8 @@ function ToggleGroupItem({
8548
8399
  size,
8549
8400
  ...props
8550
8401
  }) {
8551
- const context = React16.useContext(ToggleGroupContext);
8552
- return /* @__PURE__ */ jsx57(
8402
+ const context = React15.useContext(ToggleGroupContext);
8403
+ return /* @__PURE__ */ jsx56(
8553
8404
  ToggleGroupPrimitive.Item,
8554
8405
  {
8555
8406
  "data-slot": "toggle-group-item",
@@ -8570,18 +8421,18 @@ function ToggleGroupItem({
8570
8421
  }
8571
8422
 
8572
8423
  // src/ui/default/tree.tsx
8573
- import * as React17 from "react";
8424
+ import * as React16 from "react";
8574
8425
  import { ChevronDownIcon as ChevronDownIcon2, SquareMinus, SquarePlus } from "lucide-react";
8575
8426
  import { Slot as SlotPrimitive3 } from "radix-ui";
8576
- import { jsx as jsx58, jsxs as jsxs29 } from "react/jsx-runtime";
8577
- var TreeContext = React17.createContext({
8427
+ import { jsx as jsx57, jsxs as jsxs29 } from "react/jsx-runtime";
8428
+ var TreeContext = React16.createContext({
8578
8429
  indent: 20,
8579
8430
  currentItem: void 0,
8580
8431
  tree: void 0,
8581
8432
  toggleIconType: "plus-minus"
8582
8433
  });
8583
8434
  function useTreeContext() {
8584
- return React17.useContext(TreeContext);
8435
+ return React16.useContext(TreeContext);
8585
8436
  }
8586
8437
  function Tree({ indent = 20, tree, className, toggleIconType = "chevron", ...props }) {
8587
8438
  const containerProps = tree && typeof tree.getContainerProps === "function" ? tree.getContainerProps() : {};
@@ -8591,7 +8442,7 @@ function Tree({ indent = 20, tree, className, toggleIconType = "chevron", ...pro
8591
8442
  ...propStyle,
8592
8443
  "--tree-indent": `${indent}px`
8593
8444
  };
8594
- return /* @__PURE__ */ jsx58(TreeContext.Provider, { value: { indent, tree, toggleIconType }, children: /* @__PURE__ */ jsx58(
8445
+ return /* @__PURE__ */ jsx57(TreeContext.Provider, { value: { indent, tree, toggleIconType }, children: /* @__PURE__ */ jsx57(
8595
8446
  "div",
8596
8447
  {
8597
8448
  "data-slot": "tree",
@@ -8618,7 +8469,7 @@ function TreeItem({
8618
8469
  "--tree-padding": `${item.getItemMeta().level * indent}px`
8619
8470
  };
8620
8471
  const Comp = asChild ? SlotPrimitive3.Slot : "button";
8621
- return /* @__PURE__ */ jsx58(TreeContext.Provider, { value: { ...parentContext, currentItem: item }, children: /* @__PURE__ */ jsx58(
8472
+ return /* @__PURE__ */ jsx57(TreeContext.Provider, { value: { ...parentContext, currentItem: item }, children: /* @__PURE__ */ jsx57(
8622
8473
  Comp,
8623
8474
  {
8624
8475
  "data-slot": "tree-item",
@@ -8660,21 +8511,21 @@ function TreeItemLabel({
8660
8511
  ),
8661
8512
  ...props,
8662
8513
  children: [
8663
- item.isFolder() && (toggleIconType === "plus-minus" ? item.isExpanded() ? /* @__PURE__ */ jsx58(
8514
+ item.isFolder() && (toggleIconType === "plus-minus" ? item.isExpanded() ? /* @__PURE__ */ jsx57(
8664
8515
  SquareMinus,
8665
8516
  {
8666
8517
  className: "size-3.5 text-muted-foreground",
8667
8518
  stroke: "currentColor",
8668
8519
  strokeWidth: "1"
8669
8520
  }
8670
- ) : /* @__PURE__ */ jsx58(
8521
+ ) : /* @__PURE__ */ jsx57(
8671
8522
  SquarePlus,
8672
8523
  {
8673
8524
  className: "size-3.5 text-muted-foreground",
8674
8525
  stroke: "currentColor",
8675
8526
  strokeWidth: "1"
8676
8527
  }
8677
- ) : /* @__PURE__ */ jsx58(ChevronDownIcon2, { className: "in-aria-[expanded=false]:-rotate-90 size-4 text-muted-foreground" })),
8528
+ ) : /* @__PURE__ */ jsx57(ChevronDownIcon2, { className: "in-aria-[expanded=false]:-rotate-90 size-4 text-muted-foreground" })),
8678
8529
  children || (typeof item.getItemName === "function" ? item.getItemName() : null)
8679
8530
  ]
8680
8531
  }
@@ -8689,7 +8540,7 @@ function TreeDragLine({ className, ...props }) {
8689
8540
  return null;
8690
8541
  }
8691
8542
  const dragLine = tree.getDragLineStyle();
8692
- return /* @__PURE__ */ jsx58(
8543
+ return /* @__PURE__ */ jsx57(
8693
8544
  "div",
8694
8545
  {
8695
8546
  style: dragLine,