@cerberus-design/react 0.15.0-next-7a184be → 0.15.0-next-47ecb2e

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.
Files changed (138) hide show
  1. package/build/legacy/_tsup-dts-rollup.d.cts +319 -93
  2. package/build/legacy/components/checkbox/checkbox.cjs.map +1 -1
  3. package/build/legacy/components/checkbox/index.cjs.map +1 -1
  4. package/build/legacy/components/for.cjs.map +1 -1
  5. package/build/legacy/components/select/index.cjs +265 -0
  6. package/build/legacy/components/select/index.cjs.map +1 -0
  7. package/build/legacy/components/select/option-group.cjs +60 -0
  8. package/build/legacy/components/select/option-group.cjs.map +1 -0
  9. package/build/legacy/components/select/parts.cjs +153 -0
  10. package/build/legacy/components/select/parts.cjs.map +1 -0
  11. package/build/legacy/components/select/primitives.cjs +167 -0
  12. package/build/legacy/components/select/primitives.cjs.map +1 -0
  13. package/build/legacy/components/select/select.cjs +212 -0
  14. package/build/legacy/components/select/select.cjs.map +1 -0
  15. package/build/legacy/components/switch/index.cjs +118 -0
  16. package/build/legacy/components/switch/index.cjs.map +1 -0
  17. package/build/legacy/components/switch/parts.cjs +75 -0
  18. package/build/legacy/components/switch/parts.cjs.map +1 -0
  19. package/build/legacy/components/switch/primitives.cjs +72 -0
  20. package/build/legacy/components/switch/primitives.cjs.map +1 -0
  21. package/build/legacy/components/switch/switch-indicator.cjs +51 -0
  22. package/build/legacy/components/switch/switch-indicator.cjs.map +1 -0
  23. package/build/legacy/components/switch/switch.cjs +106 -0
  24. package/build/legacy/components/switch/switch.cjs.map +1 -0
  25. package/build/legacy/components/toggle/index.cjs +45 -0
  26. package/build/legacy/components/toggle/index.cjs.map +1 -0
  27. package/build/legacy/components/toggle/parts.cjs +41 -0
  28. package/build/legacy/components/toggle/parts.cjs.map +1 -0
  29. package/build/legacy/components/toggle/primitives.cjs +35 -0
  30. package/build/legacy/components/toggle/primitives.cjs.map +1 -0
  31. package/build/legacy/hooks/useToggle.cjs.map +1 -1
  32. package/build/legacy/index.cjs +617 -483
  33. package/build/legacy/index.cjs.map +1 -1
  34. package/build/modern/_tsup-dts-rollup.d.ts +319 -93
  35. package/build/modern/chunk-2CVGNLIM.js +15 -0
  36. package/build/modern/chunk-2CVGNLIM.js.map +1 -0
  37. package/build/modern/chunk-2LF3HPNA.js +1 -0
  38. package/build/modern/chunk-CAZ3EICD.js +16 -0
  39. package/build/modern/chunk-CAZ3EICD.js.map +1 -0
  40. package/build/modern/chunk-CIMY2U22.js +10 -0
  41. package/build/modern/chunk-CIMY2U22.js.map +1 -0
  42. package/build/modern/chunk-IASVL7CW.js +19 -0
  43. package/build/modern/chunk-IASVL7CW.js.map +1 -0
  44. package/build/modern/{chunk-REO5GUNC.js → chunk-ICTISECN.js} +1 -1
  45. package/build/modern/chunk-ICTISECN.js.map +1 -0
  46. package/build/modern/{chunk-77FJSNGD.js → chunk-IIH363FO.js} +1 -1
  47. package/build/modern/{chunk-77FJSNGD.js.map → chunk-IIH363FO.js.map} +1 -1
  48. package/build/modern/chunk-KQQPZJEI.js +21 -0
  49. package/build/modern/chunk-KQQPZJEI.js.map +1 -0
  50. package/build/modern/chunk-LZWNHXRP.js +48 -0
  51. package/build/modern/chunk-LZWNHXRP.js.map +1 -0
  52. package/build/modern/chunk-OVHCXBBI.js +22 -0
  53. package/build/modern/chunk-OVHCXBBI.js.map +1 -0
  54. package/build/modern/chunk-P3SF56LT.js +47 -0
  55. package/build/modern/chunk-P3SF56LT.js.map +1 -0
  56. package/build/modern/chunk-QCBLRACK.js +133 -0
  57. package/build/modern/chunk-QCBLRACK.js.map +1 -0
  58. package/build/modern/chunk-UDY6USHW.js +1 -0
  59. package/build/modern/chunk-V4YYGGMH.js +1 -0
  60. package/build/modern/chunk-XTNGF4D6.js +41 -0
  61. package/build/modern/chunk-XTNGF4D6.js.map +1 -0
  62. package/build/modern/{chunk-UNN4LHRS.js → chunk-Y4ZEJ2EF.js} +1 -1
  63. package/build/modern/chunk-Y4ZEJ2EF.js.map +1 -0
  64. package/build/modern/components/checkbox/checkbox.js +1 -1
  65. package/build/modern/components/checkbox/index.js +1 -1
  66. package/build/modern/components/for.js +1 -1
  67. package/build/modern/components/select/index.js +57 -0
  68. package/build/modern/components/select/index.js.map +1 -0
  69. package/build/modern/components/select/option-group.js +10 -0
  70. package/build/modern/components/select/option-group.js.map +1 -0
  71. package/build/modern/components/select/parts.js +8 -0
  72. package/build/modern/components/select/parts.js.map +1 -0
  73. package/build/modern/components/{Select.server.js → select/primitives.js} +8 -4
  74. package/build/modern/components/select/primitives.js.map +1 -0
  75. package/build/modern/components/select/select.js +15 -0
  76. package/build/modern/components/select/select.js.map +1 -0
  77. package/build/modern/components/switch/index.js +26 -0
  78. package/build/modern/components/switch/index.js.map +1 -0
  79. package/build/modern/components/switch/parts.js +8 -0
  80. package/build/modern/components/switch/parts.js.map +1 -0
  81. package/build/modern/components/switch/primitives.js +15 -0
  82. package/build/modern/components/switch/primitives.js.map +1 -0
  83. package/build/modern/components/switch/switch-indicator.js +9 -0
  84. package/build/modern/components/switch/switch-indicator.js.map +1 -0
  85. package/build/modern/components/switch/switch.js +11 -0
  86. package/build/modern/components/switch/switch.js.map +1 -0
  87. package/build/modern/components/toggle/index.js +14 -0
  88. package/build/modern/components/toggle/index.js.map +1 -0
  89. package/build/modern/components/toggle/parts.js +8 -0
  90. package/build/modern/components/toggle/parts.js.map +1 -0
  91. package/build/modern/components/toggle/primitives.js +9 -0
  92. package/build/modern/components/toggle/primitives.js.map +1 -0
  93. package/build/modern/context/confirm-modal.js +1 -1
  94. package/build/modern/context/cta-modal.js +2 -2
  95. package/build/modern/context/prompt-modal.js +1 -1
  96. package/build/modern/hooks/useToggle.js +1 -1
  97. package/build/modern/index.js +110 -72
  98. package/build/modern/index.js.map +1 -1
  99. package/package.json +3 -3
  100. package/src/components/checkbox/checkbox.tsx +4 -10
  101. package/src/components/for.tsx +1 -1
  102. package/src/components/select/index.ts +4 -0
  103. package/src/components/select/option-group.tsx +34 -0
  104. package/src/components/select/parts.ts +113 -0
  105. package/src/components/select/primitives.tsx +205 -0
  106. package/src/components/select/select.tsx +135 -0
  107. package/src/components/switch/index.ts +3 -0
  108. package/src/components/switch/parts.ts +53 -0
  109. package/src/components/switch/primitives.tsx +69 -0
  110. package/src/components/switch/switch-indicator.tsx +9 -0
  111. package/src/components/switch/switch.tsx +30 -0
  112. package/src/components/toggle/index.ts +2 -0
  113. package/src/components/toggle/parts.ts +32 -0
  114. package/src/components/toggle/primitives.tsx +17 -0
  115. package/src/hooks/useToggle.ts +1 -3
  116. package/src/index.ts +6 -6
  117. package/build/legacy/components/Select.cjs +0 -142
  118. package/build/legacy/components/Select.cjs.map +0 -1
  119. package/build/legacy/components/Select.server.cjs +0 -78
  120. package/build/legacy/components/Select.server.cjs.map +0 -1
  121. package/build/legacy/components/Toggle.cjs +0 -94
  122. package/build/legacy/components/Toggle.cjs.map +0 -1
  123. package/build/modern/chunk-GENS32QO.js +0 -61
  124. package/build/modern/chunk-GENS32QO.js.map +0 -1
  125. package/build/modern/chunk-REO5GUNC.js.map +0 -1
  126. package/build/modern/chunk-S2X5OEPK.js +0 -89
  127. package/build/modern/chunk-S2X5OEPK.js.map +0 -1
  128. package/build/modern/chunk-UNN4LHRS.js.map +0 -1
  129. package/build/modern/chunk-YWMPB2JR.js +0 -41
  130. package/build/modern/chunk-YWMPB2JR.js.map +0 -1
  131. package/build/modern/components/Select.js +0 -20
  132. package/build/modern/components/Toggle.js +0 -9
  133. package/src/components/Select.server.tsx +0 -80
  134. package/src/components/Select.tsx +0 -219
  135. package/src/components/Toggle.tsx +0 -98
  136. /package/build/modern/{components/Select.js.map → chunk-2LF3HPNA.js.map} +0 -0
  137. /package/build/modern/{components/Select.server.js.map → chunk-UDY6USHW.js.map} +0 -0
  138. /package/build/modern/{components/Toggle.js.map → chunk-V4YYGGMH.js.map} +0 -0
@@ -140,10 +140,11 @@ __export(src_exports, {
140
140
  RadioGroupRoot: () => RadioGroupRoot,
141
141
  RadioParts: () => RadioParts,
142
142
  RangePickerInput: () => RangePickerInput,
143
- Select: () => Select,
143
+ Select: () => Select2,
144
144
  SelectClearTrigger: () => SelectClearTrigger,
145
145
  SelectContent: () => SelectContent,
146
146
  SelectControl: () => SelectControl,
147
+ SelectHiddenSelect: () => SelectHiddenSelect,
147
148
  SelectIndicator: () => SelectIndicator,
148
149
  SelectItem: () => SelectItem,
149
150
  SelectItemGroup: () => SelectItemGroup,
@@ -151,12 +152,20 @@ __export(src_exports, {
151
152
  SelectItemIndicator: () => SelectItemIndicator,
152
153
  SelectItemText: () => SelectItemText,
153
154
  SelectLabel: () => SelectLabel,
155
+ SelectParts: () => SelectParts,
154
156
  SelectPositioner: () => SelectPositioner,
155
157
  SelectRoot: () => SelectRoot,
156
158
  SelectTrigger: () => SelectTrigger,
157
159
  SelectValueText: () => SelectValueText,
158
160
  Show: () => Show,
159
161
  Spinner: () => Spinner,
162
+ Switch: () => Switch2,
163
+ SwitchControl: () => SwitchControl,
164
+ SwitchHiddenInput: () => SwitchHiddenInput,
165
+ SwitchLabel: () => SwitchLabel,
166
+ SwitchParts: () => SwitchParts,
167
+ SwitchRoot: () => SwitchRoot,
168
+ SwitchThumb: () => SwitchThumb,
160
169
  THEME_KEY: () => THEME_KEY,
161
170
  Tab: () => Tab,
162
171
  TabIndicator: () => TabIndicator,
@@ -174,7 +183,9 @@ __export(src_exports, {
174
183
  Th: () => Th,
175
184
  Thead: () => Thead,
176
185
  ThemeProvider: () => ThemeProvider,
177
- Toggle: () => Toggle,
186
+ ToggleIndicator: () => ToggleIndicator,
187
+ ToggleParts: () => ToggleParts,
188
+ ToggleRoot: () => ToggleRoot,
178
189
  Tooltip: () => Tooltip,
179
190
  Tr: () => Tr,
180
191
  createNavTriggerProps: () => createNavTriggerProps,
@@ -871,8 +882,51 @@ var MONTHS = [
871
882
  "DEC"
872
883
  ];
873
884
 
885
+ // src/hooks/useModal.ts
886
+ var import_react9 = require("react");
887
+ function useModal() {
888
+ const modalRef = (0, import_react9.useRef)(null);
889
+ const [isOpen, setIsOpen] = (0, import_react9.useState)(false);
890
+ const show = (0, import_react9.useCallback)(() => {
891
+ var _a;
892
+ (_a = modalRef.current) == null ? void 0 : _a.showModal();
893
+ setIsOpen(true);
894
+ }, []);
895
+ const close = (0, import_react9.useCallback)(() => {
896
+ var _a;
897
+ (_a = modalRef.current) == null ? void 0 : _a.close();
898
+ setIsOpen(false);
899
+ }, []);
900
+ return (0, import_react9.useMemo)(() => {
901
+ return {
902
+ modalRef,
903
+ show,
904
+ close,
905
+ isOpen
906
+ };
907
+ }, [modalRef, show, close, isOpen]);
908
+ }
909
+
910
+ // src/hooks/useToggle.ts
911
+ var import_react10 = require("react");
912
+ function useToggle(options) {
913
+ const [checked, setChecked] = (0, import_react10.useState)((options == null ? void 0 : options.checked) ?? "");
914
+ const onChange = options == null ? void 0 : options.onChange;
915
+ const handleChange = (0, import_react10.useCallback)(
916
+ (e) => {
917
+ const target = e.currentTarget;
918
+ setChecked((prev) => {
919
+ return prev === target.value ? "" : target.value;
920
+ });
921
+ onChange == null ? void 0 : onChange(e);
922
+ },
923
+ [onChange]
924
+ );
925
+ return (0, import_react10.useMemo)(() => ({ checked, handleChange }), [checked, handleChange]);
926
+ }
927
+
874
928
  // src/components/Accordion.tsx
875
- var import_react9 = require("@ark-ui/react");
929
+ var import_react11 = require("@ark-ui/react");
876
930
  var import_css15 = require("@cerberus/styled-system/css");
877
931
  var import_recipes11 = require("@cerberus/styled-system/recipes");
878
932
  var import_jsx_runtime17 = require("react/jsx-runtime");
@@ -880,7 +934,7 @@ function Accordion(props) {
880
934
  const { size, className, ...rootProps } = props;
881
935
  const styles = (0, import_recipes11.accordion)({ size });
882
936
  return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
883
- import_react9.Accordion.Root,
937
+ import_react11.Accordion.Root,
884
938
  {
885
939
  collapsible: true,
886
940
  className: (0, import_css15.cx)(className, styles.root),
@@ -892,7 +946,7 @@ function AccordionItem(props) {
892
946
  const { size, ...itemProps } = props;
893
947
  const styles = (0, import_recipes11.accordion)({ size });
894
948
  return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
895
- import_react9.Accordion.Item,
949
+ import_react11.Accordion.Item,
896
950
  {
897
951
  ...itemProps,
898
952
  className: (0, import_css15.cx)(itemProps.className, styles.item)
@@ -903,7 +957,7 @@ function AccordionItemTrigger(props) {
903
957
  const { size, ...triggerProps } = props;
904
958
  const styles = (0, import_recipes11.accordion)({ size });
905
959
  return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
906
- import_react9.Accordion.ItemTrigger,
960
+ import_react11.Accordion.ItemTrigger,
907
961
  {
908
962
  ...triggerProps,
909
963
  className: (0, import_css15.cx)(triggerProps.className, styles.itemTrigger)
@@ -914,7 +968,7 @@ function AccordionItemContent(props) {
914
968
  const { size, ...contentProps } = props;
915
969
  const styles = (0, import_recipes11.accordion)({ size });
916
970
  return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
917
- import_react9.Accordion.ItemContent,
971
+ import_react11.Accordion.ItemContent,
918
972
  {
919
973
  ...contentProps,
920
974
  className: (0, import_css15.cx)(contentProps.className, styles.itemContent)
@@ -923,7 +977,7 @@ function AccordionItemContent(props) {
923
977
  }
924
978
 
925
979
  // src/components/Accordion.client.tsx
926
- var import_react10 = require("@ark-ui/react");
980
+ var import_react12 = require("@ark-ui/react");
927
981
  var import_css16 = require("@cerberus/styled-system/css");
928
982
  var import_recipes12 = require("@cerberus/styled-system/recipes");
929
983
  var import_jsx_runtime18 = require("react/jsx-runtime");
@@ -934,7 +988,7 @@ function AccordionItemIndicator(props) {
934
988
  const { icons } = useCerberusContext();
935
989
  const ChevronDown = icons.accordionIndicator;
936
990
  return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
937
- import_react10.Accordion.ItemIndicator,
991
+ import_react12.Accordion.ItemIndicator,
938
992
  {
939
993
  ...indicatorProps,
940
994
  className: (0, import_css16.cx)(indicatorProps.className, styles.itemIndicator),
@@ -1187,7 +1241,7 @@ function AdmonitionDescription(props) {
1187
1241
  }
1188
1242
 
1189
1243
  // src/components/button/button.tsx
1190
- var import_react11 = require("react");
1244
+ var import_react13 = require("react");
1191
1245
  var import_css20 = require("@cerberus/styled-system/css");
1192
1246
  var import_recipes15 = require("@cerberus/styled-system/recipes");
1193
1247
  var import_jsx2 = require("@cerberus/styled-system/jsx");
@@ -1270,12 +1324,12 @@ function Spinner(props) {
1270
1324
 
1271
1325
  // src/components/button/button.tsx
1272
1326
  var import_jsx_runtime24 = require("react/jsx-runtime");
1273
- var ButtonContext = (0, import_react11.createContext)({
1327
+ var ButtonContext = (0, import_react13.createContext)({
1274
1328
  pending: false
1275
1329
  });
1276
1330
  function Button(props) {
1277
1331
  const { palette, usage, shape, size, pending = false, ...nativeProps } = props;
1278
- const value = (0, import_react11.useMemo)(() => ({ pending }), [pending]);
1332
+ const value = (0, import_react13.useMemo)(() => ({ pending }), [pending]);
1279
1333
  return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ButtonContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1280
1334
  "button",
1281
1335
  {
@@ -1294,7 +1348,7 @@ function Button(props) {
1294
1348
  ) });
1295
1349
  }
1296
1350
  function ButtonIcon(props) {
1297
- const { pending } = (0, import_react11.useContext)(ButtonContext);
1351
+ const { pending } = (0, import_react13.useContext)(ButtonContext);
1298
1352
  return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Show, { when: pending, fallback: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jsx_runtime24.Fragment, { children: props.children }), children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jsx2.Box, { w: "4", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Spinner, {}) }) });
1299
1353
  }
1300
1354
 
@@ -1336,19 +1390,19 @@ function Text(props) {
1336
1390
  }
1337
1391
 
1338
1392
  // src/components/checkbox/primitives.tsx
1339
- var import_react12 = require("@ark-ui/react");
1393
+ var import_react14 = require("@ark-ui/react");
1340
1394
  var import_css21 = require("@cerberus/styled-system/css");
1341
1395
  var import_recipes16 = require("@cerberus/styled-system/recipes");
1342
1396
  var import_jsx_runtime26 = require("react/jsx-runtime");
1343
1397
  function CheckboxRoot(props) {
1344
1398
  const styles = (0, import_recipes16.checkbox)();
1345
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react12.Checkbox.Root, { ...props, className: (0, import_css21.cx)(styles.root, props.className) });
1399
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react14.Checkbox.Root, { ...props, className: (0, import_css21.cx)(styles.root, props.className) });
1346
1400
  }
1347
1401
  function CheckboxLabel(props) {
1348
1402
  const { size, ...labelProps } = props;
1349
1403
  const styles = (0, import_recipes16.checkbox)({ size });
1350
1404
  return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1351
- import_react12.Checkbox.Label,
1405
+ import_react14.Checkbox.Label,
1352
1406
  {
1353
1407
  ...labelProps,
1354
1408
  className: (0, import_css21.cx)(styles.label, labelProps.className)
@@ -1359,7 +1413,7 @@ function CheckboxControl(props) {
1359
1413
  const { size, ...controlProps } = props;
1360
1414
  const styles = (0, import_recipes16.checkbox)({ size });
1361
1415
  return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1362
- import_react12.Checkbox.Control,
1416
+ import_react14.Checkbox.Control,
1363
1417
  {
1364
1418
  ...controlProps,
1365
1419
  className: (0, import_css21.cx)(styles.control, controlProps.className)
@@ -1369,7 +1423,7 @@ function CheckboxControl(props) {
1369
1423
  function CheckboxIndicator(props) {
1370
1424
  const styles = (0, import_recipes16.checkbox)();
1371
1425
  return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1372
- import_react12.Checkbox.Indicator,
1426
+ import_react14.Checkbox.Indicator,
1373
1427
  {
1374
1428
  ...props,
1375
1429
  className: (0, import_css21.cx)(styles.indicator, props.className)
@@ -1377,11 +1431,11 @@ function CheckboxIndicator(props) {
1377
1431
  );
1378
1432
  }
1379
1433
  function CheckboxHiddenInput(props) {
1380
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react12.Checkbox.HiddenInput, { ...props });
1434
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react14.Checkbox.HiddenInput, { ...props });
1381
1435
  }
1382
1436
  function CheckboxGroup(props) {
1383
1437
  const styles = (0, import_recipes16.checkbox)();
1384
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react12.Checkbox.Group, { ...props, className: (0, import_css21.cx)(styles.group, props.className) });
1438
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react14.Checkbox.Group, { ...props, className: (0, import_css21.cx)(styles.group, props.className) });
1385
1439
  }
1386
1440
 
1387
1441
  // src/components/checkbox/parts.ts
@@ -1562,18 +1616,18 @@ function CircularProgress(props) {
1562
1616
  }
1563
1617
 
1564
1618
  // src/components/DatePicker.client.tsx
1565
- var import_react15 = require("@ark-ui/react");
1619
+ var import_react17 = require("@ark-ui/react");
1566
1620
 
1567
1621
  // src/components/Portal.tsx
1568
- var import_react13 = require("@ark-ui/react");
1569
- var Portal = import_react13.Portal;
1622
+ var import_react15 = require("@ark-ui/react");
1623
+ var Portal = import_react15.Portal;
1570
1624
 
1571
1625
  // src/components/DatePicker.client.tsx
1572
1626
  var import_recipes19 = require("@cerberus/styled-system/recipes");
1573
1627
  var import_css25 = require("@cerberus/styled-system/css");
1574
1628
 
1575
1629
  // src/components/DatePicker.server.tsx
1576
- var import_react14 = require("@ark-ui/react");
1630
+ var import_react16 = require("@ark-ui/react");
1577
1631
  var import_css23 = require("@cerberus/styled-system/css");
1578
1632
  var import_recipes17 = require("@cerberus/styled-system/recipes");
1579
1633
  var import_jsx_runtime30 = require("react/jsx-runtime");
@@ -1581,7 +1635,7 @@ var datePickerStyles = (0, import_recipes17.datePicker)();
1581
1635
  function DatePickerLabel(props) {
1582
1636
  const { className, ...arkProps } = props;
1583
1637
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1584
- import_react14.DatePicker.Label,
1638
+ import_react16.DatePicker.Label,
1585
1639
  {
1586
1640
  ...arkProps,
1587
1641
  className: (0, import_css23.cx)(
@@ -1595,7 +1649,7 @@ function DatePickerLabel(props) {
1595
1649
  }
1596
1650
  function DatePickerViewControl(props) {
1597
1651
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1598
- import_react14.DatePicker.Control,
1652
+ import_react16.DatePicker.Control,
1599
1653
  {
1600
1654
  ...props,
1601
1655
  className: (0, import_css23.cx)(props.className, datePickerStyles.viewControl)
@@ -1604,7 +1658,7 @@ function DatePickerViewControl(props) {
1604
1658
  }
1605
1659
  function DatePickerTable(props) {
1606
1660
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1607
- import_react14.DatePicker.Table,
1661
+ import_react16.DatePicker.Table,
1608
1662
  {
1609
1663
  ...props,
1610
1664
  className: (0, import_css23.cx)(props.className, datePickerStyles.table)
@@ -1613,7 +1667,7 @@ function DatePickerTable(props) {
1613
1667
  }
1614
1668
  function DatePickerTableHeader(props) {
1615
1669
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1616
- import_react14.DatePicker.TableHeader,
1670
+ import_react16.DatePicker.TableHeader,
1617
1671
  {
1618
1672
  ...props,
1619
1673
  className: (0, import_css23.cx)(props.className, datePickerStyles.tableHeader)
@@ -1622,7 +1676,7 @@ function DatePickerTableHeader(props) {
1622
1676
  }
1623
1677
  function DatePickerTableCell(props) {
1624
1678
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1625
- import_react14.DatePicker.TableCell,
1679
+ import_react16.DatePicker.TableCell,
1626
1680
  {
1627
1681
  ...props,
1628
1682
  className: (0, import_css23.cx)(props.className, datePickerStyles.tableCell)
@@ -1631,15 +1685,15 @@ function DatePickerTableCell(props) {
1631
1685
  }
1632
1686
  function DatePickerTableCellTrigger(props) {
1633
1687
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1634
- import_react14.DatePicker.TableCellTrigger,
1688
+ import_react16.DatePicker.TableCellTrigger,
1635
1689
  {
1636
1690
  ...props,
1637
1691
  className: (0, import_css23.cx)(props.className, datePickerStyles.tableCellTrigger)
1638
1692
  }
1639
1693
  );
1640
1694
  }
1641
- var DatePickerView = import_react14.DatePicker.View;
1642
- var DatePickerContext = import_react14.DatePicker.Context;
1695
+ var DatePickerView = import_react16.DatePicker.View;
1696
+ var DatePickerContext = import_react16.DatePicker.Context;
1643
1697
 
1644
1698
  // src/components/IconButton.tsx
1645
1699
  var import_css24 = require("@cerberus/styled-system/css");
@@ -1665,12 +1719,12 @@ function IconButton(props) {
1665
1719
  }
1666
1720
 
1667
1721
  // src/components/DatePicker.client.tsx
1668
- var import_react16 = require("react");
1722
+ var import_react18 = require("react");
1669
1723
  var import_jsx_runtime32 = require("react/jsx-runtime");
1670
1724
  var datePickerStyles2 = (0, import_recipes19.datePicker)();
1671
1725
  function DatePicker(props) {
1672
1726
  return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1673
- import_react15.DatePicker.Root,
1727
+ import_react17.DatePicker.Root,
1674
1728
  {
1675
1729
  ...props,
1676
1730
  positioning: {
@@ -1683,8 +1737,8 @@ function DatePickerViewControlGroup(props) {
1683
1737
  const { icons } = useCerberusContext();
1684
1738
  const { calendarPrev: PrevIcon, calendarNext: NextIcon } = icons;
1685
1739
  return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(DatePickerViewControl, { ...props, children: [
1686
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react15.DatePicker.PrevTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(IconButton, { ariaLabel: "Previous", size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(PrevIcon, {}) }) }),
1687
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react15.DatePicker.ViewTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1740
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.PrevTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(IconButton, { ariaLabel: "Previous", size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(PrevIcon, {}) }) }),
1741
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.ViewTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1688
1742
  Button,
1689
1743
  {
1690
1744
  className: (0, import_css25.css)({
@@ -1694,17 +1748,17 @@ function DatePickerViewControlGroup(props) {
1694
1748
  shape: "rounded",
1695
1749
  size: "sm",
1696
1750
  usage: "ghost",
1697
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react15.DatePicker.RangeText, {})
1751
+ children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.RangeText, {})
1698
1752
  }
1699
1753
  ) }),
1700
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react15.DatePicker.NextTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(IconButton, { ariaLabel: "Next", size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(NextIcon, {}) }) })
1754
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.NextTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(IconButton, { ariaLabel: "Next", size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(NextIcon, {}) }) })
1701
1755
  ] });
1702
1756
  }
1703
1757
  function DatePickerTrigger(props) {
1704
1758
  const { icons } = useCerberusContext();
1705
1759
  const { calendar: CalendarIcon } = icons;
1706
1760
  return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1707
- import_react15.DatePicker.Trigger,
1761
+ import_react17.DatePicker.Trigger,
1708
1762
  {
1709
1763
  ...props,
1710
1764
  className: (0, import_css25.cx)(
@@ -1720,10 +1774,10 @@ function DatePickerTrigger(props) {
1720
1774
  );
1721
1775
  }
1722
1776
  function DatePickerInput(props) {
1723
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react15.DatePicker.Control, { className: datePickerStyles2.control, children: [
1777
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react17.DatePicker.Control, { className: datePickerStyles2.control, children: [
1724
1778
  /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerTrigger, {}),
1725
1779
  /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1726
- import_react15.DatePicker.Input,
1780
+ import_react17.DatePicker.Input,
1727
1781
  {
1728
1782
  ...props,
1729
1783
  className: (0, import_css25.cx)(props.className, datePickerStyles2.input),
@@ -1735,12 +1789,12 @@ function DatePickerInput(props) {
1735
1789
  }
1736
1790
  function RangePickerInput(props) {
1737
1791
  const { defaultValue, ...nativeProps } = props;
1738
- const startDate = (0, import_react16.useMemo)(() => defaultValue == null ? void 0 : defaultValue[0], [defaultValue]);
1739
- const endDate = (0, import_react16.useMemo)(() => defaultValue == null ? void 0 : defaultValue[1], [defaultValue]);
1740
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react15.DatePicker.Control, { "data-range": true, className: datePickerStyles2.control, children: [
1792
+ const startDate = (0, import_react18.useMemo)(() => defaultValue == null ? void 0 : defaultValue[0], [defaultValue]);
1793
+ const endDate = (0, import_react18.useMemo)(() => defaultValue == null ? void 0 : defaultValue[1], [defaultValue]);
1794
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react17.DatePicker.Control, { "data-range": true, className: datePickerStyles2.control, children: [
1741
1795
  /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerTrigger, {}),
1742
1796
  /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1743
- import_react15.DatePicker.Input,
1797
+ import_react17.DatePicker.Input,
1744
1798
  {
1745
1799
  ...nativeProps,
1746
1800
  "data-range-input": true,
@@ -1752,7 +1806,7 @@ function RangePickerInput(props) {
1752
1806
  }
1753
1807
  ),
1754
1808
  /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1755
- import_react15.DatePicker.Input,
1809
+ import_react17.DatePicker.Input,
1756
1810
  {
1757
1811
  ...nativeProps,
1758
1812
  "data-range-input": true,
@@ -1768,8 +1822,8 @@ function RangePickerInput(props) {
1768
1822
  }
1769
1823
  function DatePickerContent(props) {
1770
1824
  const { children, withModal, ...contentProps } = props;
1771
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Portal, { disabled: withModal ?? false, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react15.DatePicker.Positioner, { className: datePickerStyles2.positioner, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1772
- import_react15.DatePicker.Content,
1825
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Portal, { disabled: withModal ?? false, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.Positioner, { className: datePickerStyles2.positioner, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1826
+ import_react17.DatePicker.Content,
1773
1827
  {
1774
1828
  ...contentProps,
1775
1829
  className: (0, import_css25.cx)(contentProps.className, datePickerStyles2.content),
@@ -1797,8 +1851,8 @@ function DatePickerDayView(props) {
1797
1851
  return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerView, { ...props, view: "day", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerContext, { children: (datePicker3) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
1798
1852
  /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerViewControlGroup, {}),
1799
1853
  /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(DatePickerTable, { children: [
1800
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react15.DatePicker.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react15.DatePicker.TableRow, { children: datePicker3.weekDays.map((weekDay, id) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerTableHeader, { children: weekDay.narrow }, id)) }) }),
1801
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react15.DatePicker.TableBody, { children: datePicker3.weeks.map((week, id) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react15.DatePicker.TableRow, { children: week.map((day, id2) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerTableCell, { value: day, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1854
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.TableRow, { children: datePicker3.weekDays.map((weekDay, id) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerTableHeader, { children: weekDay.narrow }, id)) }) }),
1855
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.TableBody, { children: datePicker3.weeks.map((week, id) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.TableRow, { children: week.map((day, id2) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerTableCell, { value: day, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1802
1856
  DatePickerTableCellTrigger,
1803
1857
  {
1804
1858
  "data-date": getDayValue(day),
@@ -1809,15 +1863,15 @@ function DatePickerDayView(props) {
1809
1863
  ] }) }) });
1810
1864
  }
1811
1865
  function DatePickerMonthView(props) {
1812
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react15.DatePicker.View, { ...props, view: "month", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react15.DatePicker.Context, { children: (datePicker3) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
1866
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.View, { ...props, view: "month", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.Context, { children: (datePicker3) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
1813
1867
  /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerViewControlGroup, {}),
1814
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerTable, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react15.DatePicker.TableBody, { children: datePicker3.getMonthsGrid({ columns: 4, format: "short" }).map((months, id) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react15.DatePicker.TableRow, { children: months.map((month, id2) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerTableCell, { value: month.value, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerTableCellTrigger, { children: month.label }) }, id2)) }, id)) }) })
1868
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerTable, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.TableBody, { children: datePicker3.getMonthsGrid({ columns: 4, format: "short" }).map((months, id) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.TableRow, { children: months.map((month, id2) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerTableCell, { value: month.value, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerTableCellTrigger, { children: month.label }) }, id2)) }, id)) }) })
1815
1869
  ] }) }) });
1816
1870
  }
1817
1871
  function DatePickerYearView(props) {
1818
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react15.DatePicker.View, { ...props, view: "year", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react15.DatePicker.Context, { children: (datePicker3) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
1872
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.View, { ...props, view: "year", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.Context, { children: (datePicker3) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
1819
1873
  /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerViewControlGroup, {}),
1820
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerTable, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react15.DatePicker.TableBody, { children: datePicker3.getYearsGrid({ columns: 4 }).map((years, id) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react15.DatePicker.TableRow, { children: years.map((year, id2) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerTableCell, { value: year.value, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerTableCellTrigger, { children: year.label }) }, id2)) }, id)) }) })
1874
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerTable, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.TableBody, { children: datePicker3.getYearsGrid({ columns: 4 }).map((years, id) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.TableRow, { children: years.map((year, id2) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerTableCell, { value: year.value, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerTableCellTrigger, { children: year.label }) }, id2)) }, id)) }) })
1821
1875
  ] }) }) });
1822
1876
  }
1823
1877
  function DatePickerCalendar(props) {
@@ -1829,12 +1883,12 @@ function DatePickerCalendar(props) {
1829
1883
  }
1830
1884
 
1831
1885
  // src/components/Dialog.tsx
1832
- var import_react17 = require("@ark-ui/react");
1886
+ var import_react19 = require("@ark-ui/react");
1833
1887
  var import_recipes20 = require("@cerberus/styled-system/recipes");
1834
1888
  var import_css26 = require("@cerberus/styled-system/css");
1835
1889
  var import_jsx_runtime33 = require("react/jsx-runtime");
1836
1890
  function DialogProvider(props) {
1837
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react17.Dialog.Root, { ...props });
1891
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react19.Dialog.Root, { ...props });
1838
1892
  }
1839
1893
  function Dialog(props) {
1840
1894
  const { size, ...contentProps } = props;
@@ -1846,26 +1900,26 @@ function Dialog(props) {
1846
1900
  }
1847
1901
  function DialogHeading(props) {
1848
1902
  const styles = (0, import_recipes20.dialog)();
1849
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react17.Dialog.Title, { ...props, className: (0, import_css26.cx)(props.className, styles.title) });
1903
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react19.Dialog.Title, { ...props, className: (0, import_css26.cx)(props.className, styles.title) });
1850
1904
  }
1851
1905
  function DialogDescription(props) {
1852
1906
  const styles = (0, import_recipes20.dialog)();
1853
1907
  return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1854
- import_react17.Dialog.Description,
1908
+ import_react19.Dialog.Description,
1855
1909
  {
1856
1910
  ...props,
1857
1911
  className: (0, import_css26.cx)(props.className, styles.description)
1858
1912
  }
1859
1913
  );
1860
1914
  }
1861
- var DialogTrigger = import_react17.Dialog.Trigger;
1862
- var DialogCloseTrigger = import_react17.Dialog.CloseTrigger;
1863
- var DialogBackdrop = import_react17.Dialog.Backdrop;
1864
- var DialogPositioner = import_react17.Dialog.Positioner;
1865
- var DialogContent = import_react17.Dialog.Content;
1915
+ var DialogTrigger = import_react19.Dialog.Trigger;
1916
+ var DialogCloseTrigger = import_react19.Dialog.CloseTrigger;
1917
+ var DialogBackdrop = import_react19.Dialog.Backdrop;
1918
+ var DialogPositioner = import_react19.Dialog.Positioner;
1919
+ var DialogContent = import_react19.Dialog.Content;
1866
1920
 
1867
1921
  // src/components/Dialog.client.tsx
1868
- var import_react18 = require("@ark-ui/react");
1922
+ var import_react20 = require("@ark-ui/react");
1869
1923
  var import_recipes21 = require("@cerberus/styled-system/recipes");
1870
1924
  var import_css27 = require("@cerberus/styled-system/css");
1871
1925
  var import_jsx_runtime34 = require("react/jsx-runtime");
@@ -1874,7 +1928,7 @@ function DialogCloseIconTrigger(props) {
1874
1928
  const { close: CloseIcon } = icons;
1875
1929
  const styles = (0, import_recipes21.dialog)();
1876
1930
  return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1877
- import_react18.Dialog.CloseTrigger,
1931
+ import_react20.Dialog.CloseTrigger,
1878
1932
  {
1879
1933
  ...props,
1880
1934
  className: (0, import_css27.cx)(props.className, styles.closeTrigger),
@@ -1895,11 +1949,11 @@ function DialogCloseIconTrigger(props) {
1895
1949
 
1896
1950
  // src/components/Droppable.tsx
1897
1951
  var import_core = require("@dnd-kit/core");
1898
- var import_react19 = require("react");
1952
+ var import_react21 = require("react");
1899
1953
  var import_jsx_runtime35 = require("react/jsx-runtime");
1900
1954
  function Droppable(props) {
1901
1955
  const { dropped, id, disabled, data, resizeObserverConfig, ...nativeProps } = props;
1902
- const uuid = (0, import_react19.useId)();
1956
+ const uuid = (0, import_react21.useId)();
1903
1957
  const { isOver, setNodeRef } = (0, import_core.useDroppable)({
1904
1958
  data,
1905
1959
  disabled,
@@ -1919,14 +1973,14 @@ function Droppable(props) {
1919
1973
  }
1920
1974
 
1921
1975
  // src/context/feature-flags.tsx
1922
- var import_react20 = require("react");
1976
+ var import_react22 = require("react");
1923
1977
  var import_jsx_runtime36 = require("react/jsx-runtime");
1924
- var FeatureFlagContext = (0, import_react20.createContext)(null);
1978
+ var FeatureFlagContext = (0, import_react22.createContext)(null);
1925
1979
  function FeatureFlags(props) {
1926
1980
  return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(FeatureFlagContext.Provider, { value: props.flags, children: props.children });
1927
1981
  }
1928
1982
  function useFeatureFlags(key) {
1929
- const context = (0, import_react20.useContext)(FeatureFlagContext);
1983
+ const context = (0, import_react22.useContext)(FeatureFlagContext);
1930
1984
  if (context === null) {
1931
1985
  throw new Error(
1932
1986
  "useFeatureFlag must be used within a FeatureFlags Provider"
@@ -2009,7 +2063,7 @@ function Fieldset2(props) {
2009
2063
  }
2010
2064
 
2011
2065
  // src/components/FileStatus.tsx
2012
- var import_react21 = require("react");
2066
+ var import_react23 = require("react");
2013
2067
  var import_recipes24 = require("@cerberus/styled-system/recipes");
2014
2068
  var import_css30 = require("@cerberus/styled-system/css");
2015
2069
  var import_patterns6 = require("@cerberus/styled-system/patterns");
@@ -2059,10 +2113,10 @@ var processStatus = /* @__PURE__ */ ((processStatus2) => {
2059
2113
  })(processStatus || {});
2060
2114
  function FileStatus(props) {
2061
2115
  const { file, now, status, onClick, ...nativeProps } = props;
2062
- const actionLabel = (0, import_react21.useMemo)(() => getStatusActionLabel(status), [status]);
2063
- const palette = (0, import_react21.useMemo)(() => getPalette(status), [status]);
2064
- const modalIconPalette = (0, import_react21.useMemo)(() => getModalIconPalette(status), [status]);
2065
- const styles = (0, import_react21.useMemo)(() => {
2116
+ const actionLabel = (0, import_react23.useMemo)(() => getStatusActionLabel(status), [status]);
2117
+ const palette = (0, import_react23.useMemo)(() => getPalette(status), [status]);
2118
+ const modalIconPalette = (0, import_react23.useMemo)(() => getModalIconPalette(status), [status]);
2119
+ const styles = (0, import_react23.useMemo)(() => {
2066
2120
  switch (status) {
2067
2121
  case "todo" /* TODO */:
2068
2122
  return (0, import_recipes24.fileStatus)({ status: "todo" });
@@ -2076,7 +2130,7 @@ function FileStatus(props) {
2076
2130
  return (0, import_recipes24.fileStatus)();
2077
2131
  }
2078
2132
  }, [status]);
2079
- const handleClick = (0, import_react21.useCallback)(
2133
+ const handleClick = (0, import_react23.useCallback)(
2080
2134
  (e) => {
2081
2135
  const actionStatus = getStatusActionLabel(
2082
2136
  status
@@ -2360,18 +2414,18 @@ function Legend(props) {
2360
2414
  }
2361
2415
 
2362
2416
  // src/components/Menu.tsx
2363
- var import_react22 = require("@ark-ui/react");
2417
+ var import_react24 = require("@ark-ui/react");
2364
2418
  var import_recipes27 = require("@cerberus/styled-system/recipes");
2365
2419
  var import_css33 = require("@cerberus/styled-system/css");
2366
2420
  var import_jsx_runtime44 = require("react/jsx-runtime");
2367
2421
  var menuStyles = (0, import_recipes27.menu)();
2368
- var Menu = import_react22.Menu.Root;
2422
+ var Menu = import_react24.Menu.Root;
2369
2423
  function MenuTrigger(props) {
2370
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react22.Menu.Trigger, { ...props, asChild: true });
2424
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react24.Menu.Trigger, { ...props, asChild: true });
2371
2425
  }
2372
2426
  function MenuContent(props) {
2373
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react22.Menu.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2374
- import_react22.Menu.Content,
2427
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react24.Menu.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2428
+ import_react24.Menu.Content,
2375
2429
  {
2376
2430
  ...props,
2377
2431
  className: (0, import_css33.cx)(props.className, menuStyles.content)
@@ -2379,12 +2433,12 @@ function MenuContent(props) {
2379
2433
  ) });
2380
2434
  }
2381
2435
  function MenuItem(props) {
2382
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react22.Menu.Item, { ...props, className: (0, import_css33.cx)(props.className, menuStyles.item) });
2436
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react24.Menu.Item, { ...props, className: (0, import_css33.cx)(props.className, menuStyles.item) });
2383
2437
  }
2384
- var MenuItemGroup = import_react22.Menu.ItemGroup;
2438
+ var MenuItemGroup = import_react24.Menu.ItemGroup;
2385
2439
  function MenuGroupLabel(props) {
2386
2440
  return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2387
- import_react22.Menu.ItemGroupLabel,
2441
+ import_react24.Menu.ItemGroupLabel,
2388
2442
  {
2389
2443
  ...props,
2390
2444
  className: (0, import_css33.cx)(props.className, menuStyles.itemGroupLabel)
@@ -2393,7 +2447,7 @@ function MenuGroupLabel(props) {
2393
2447
  }
2394
2448
  function MenuSeparator(props) {
2395
2449
  return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2396
- import_react22.Menu.Separator,
2450
+ import_react24.Menu.Separator,
2397
2451
  {
2398
2452
  ...props,
2399
2453
  className: (0, import_css33.cx)(props.className, menuStyles.separator)
@@ -2405,7 +2459,7 @@ function MenuSeparator(props) {
2405
2459
  var import_css34 = require("@cerberus/styled-system/css");
2406
2460
  var import_patterns9 = require("@cerberus/styled-system/patterns");
2407
2461
  var import_recipes28 = require("@cerberus/styled-system/recipes");
2408
- var import_react23 = require("react");
2462
+ var import_react25 = require("react");
2409
2463
 
2410
2464
  // src/aria-helpers/trap-focus.aria.ts
2411
2465
  function trapFocus(modalRef) {
@@ -2444,7 +2498,7 @@ function MatchNotificationIcon(props) {
2444
2498
  }
2445
2499
  function Notification(props) {
2446
2500
  const { children, palette, onClose, ...nativeProps } = props;
2447
- const ref = (0, import_react23.useRef)(null);
2501
+ const ref = (0, import_react25.useRef)(null);
2448
2502
  const onKeyDown = trapFocus(ref);
2449
2503
  const styles = (0, import_recipes28.notification)({ palette });
2450
2504
  const { icons } = useCerberusContext();
@@ -2613,27 +2667,257 @@ function Radio(props) {
2613
2667
  ] });
2614
2668
  }
2615
2669
 
2670
+ // src/components/select/primitives.tsx
2671
+ var import_select = require("@ark-ui/react/select");
2672
+ var import_recipes32 = require("@cerberus/styled-system/recipes");
2673
+ var import_css38 = require("@cerberus/styled-system/css");
2674
+ var import_jsx_runtime50 = require("react/jsx-runtime");
2675
+ function SelectRoot(props) {
2676
+ const { size, ...rootProps } = props;
2677
+ const styles = (0, import_recipes32.select)({ size });
2678
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2679
+ import_select.Select.Root,
2680
+ {
2681
+ ...rootProps,
2682
+ className: (0, import_css38.cx)(styles.root, rootProps.className)
2683
+ }
2684
+ );
2685
+ }
2686
+ function SelectLabel(props) {
2687
+ const styles = (0, import_recipes32.select)();
2688
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_select.Select.Label, { ...props, className: (0, import_css38.cx)(styles.label, props.className) });
2689
+ }
2690
+ function SelectControl(props) {
2691
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_select.Select.Control, { ...props });
2692
+ }
2693
+ function SelectTrigger(props) {
2694
+ const styles = (0, import_recipes32.select)();
2695
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2696
+ import_select.Select.Trigger,
2697
+ {
2698
+ ...props,
2699
+ className: (0, import_css38.cx)(styles.trigger, props.className)
2700
+ }
2701
+ );
2702
+ }
2703
+ function SelectValueText(props) {
2704
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_select.Select.ValueText, { ...props });
2705
+ }
2706
+ function SelectIndicator(props) {
2707
+ const styles = (0, import_recipes32.select)();
2708
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2709
+ import_select.Select.Indicator,
2710
+ {
2711
+ ...props,
2712
+ className: (0, import_css38.cx)(styles.indicator, props.className)
2713
+ }
2714
+ );
2715
+ }
2716
+ function SelectClearTrigger(props) {
2717
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_select.Select.ClearTrigger, { ...props });
2718
+ }
2719
+ function SelectPositioner(props) {
2720
+ const styles = (0, import_recipes32.select)();
2721
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2722
+ import_select.Select.Positioner,
2723
+ {
2724
+ ...props,
2725
+ className: (0, import_css38.cx)(styles.positioner, props.className)
2726
+ }
2727
+ );
2728
+ }
2729
+ function SelectContent(props) {
2730
+ const { size, ...contentProps } = props;
2731
+ const styles = (0, import_recipes32.select)({ size });
2732
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2733
+ import_select.Select.Content,
2734
+ {
2735
+ ...contentProps,
2736
+ className: (0, import_css38.cx)(styles.content, contentProps.className)
2737
+ }
2738
+ );
2739
+ }
2740
+ function SelectItemGroup(props) {
2741
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_select.Select.ItemGroup, { ...props });
2742
+ }
2743
+ function SelectItemGroupLabel(props) {
2744
+ const styles = (0, import_recipes32.select)();
2745
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2746
+ import_select.Select.ItemGroupLabel,
2747
+ {
2748
+ ...props,
2749
+ className: (0, import_css38.cx)(styles.itemGroupLabel, props.className)
2750
+ }
2751
+ );
2752
+ }
2753
+ function SelectItem(props) {
2754
+ const styles = (0, import_recipes32.select)();
2755
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_select.Select.Item, { ...props, className: (0, import_css38.cx)(styles.item, props.className) });
2756
+ }
2757
+ function SelectItemText(props) {
2758
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_select.Select.ItemText, { ...props });
2759
+ }
2760
+ function SelectItemIndicator(props) {
2761
+ const styles = (0, import_recipes32.select)();
2762
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2763
+ import_select.Select.ItemIndicator,
2764
+ {
2765
+ ...props,
2766
+ className: (0, import_css38.cx)(styles.itemIndicator, props.className)
2767
+ }
2768
+ );
2769
+ }
2770
+ function SelectHiddenSelect(props) {
2771
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_select.Select.HiddenSelect, { ...props });
2772
+ }
2773
+ function createSelectCollection(collection) {
2774
+ return (0, import_select.createListCollection)({
2775
+ items: collection
2776
+ });
2777
+ }
2778
+
2779
+ // src/components/select/parts.ts
2780
+ var SelectParts = {
2781
+ Root: SelectRoot,
2782
+ Label: SelectLabel,
2783
+ Control: SelectControl,
2784
+ Trigger: SelectTrigger,
2785
+ ClearTrigger: SelectClearTrigger,
2786
+ ValueText: SelectValueText,
2787
+ Indicator: SelectIndicator,
2788
+ Positioner: SelectPositioner,
2789
+ Content: SelectContent,
2790
+ ItemGroup: SelectItemGroup,
2791
+ ItemGroupLabel: SelectItemGroupLabel,
2792
+ Item: SelectItem,
2793
+ ItemText: SelectItemText,
2794
+ ItemIndicator: SelectItemIndicator,
2795
+ HiddenSelect: SelectHiddenSelect
2796
+ };
2797
+
2798
+ // src/components/select/select.tsx
2799
+ var import_jsx4 = require("@cerberus/styled-system/jsx");
2800
+ var import_jsx_runtime51 = require("react/jsx-runtime");
2801
+ function Select2(props) {
2802
+ const { collection, placeholder, ...rootProps } = props;
2803
+ const { icons } = useCerberusContext();
2804
+ const { selectArrow: SelectArrow, invalid: InvalidIcon } = icons;
2805
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(SelectParts.Root, { collection, ...rootProps, children: [
2806
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SelectParts.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(SelectParts.Trigger, { children: [
2807
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SelectParts.ValueText, { placeholder }),
2808
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx4.HStack, { children: [
2809
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Show, { when: props.invalid, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(InvalidIcon, { "data-part": "invalid-icon" }) }),
2810
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SelectParts.Indicator, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SelectArrow, {}) })
2811
+ ] })
2812
+ ] }) }),
2813
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SelectParts.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SelectParts.Content, { size: rootProps.size, children: props.children }) }) }),
2814
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SelectParts.HiddenSelect, {})
2815
+ ] });
2816
+ }
2817
+ function Option(props) {
2818
+ const { item, ...itemProps } = props;
2819
+ const { icons } = useCerberusContext();
2820
+ const { selectChecked: CheckedIcon } = icons;
2821
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(SelectParts.Item, { ...itemProps, item, children: [
2822
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SelectParts.ItemText, { children: item == null ? void 0 : item.label }),
2823
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SelectParts.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(CheckedIcon, {}) })
2824
+ ] });
2825
+ }
2826
+
2827
+ // src/components/select/option-group.tsx
2828
+ var import_jsx_runtime52 = require("react/jsx-runtime");
2829
+ function OptionGroup(props) {
2830
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SelectItemGroup, { ...props });
2831
+ }
2832
+ function OptionGroupLabel(props) {
2833
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SelectItemGroupLabel, { ...props });
2834
+ }
2835
+
2836
+ // src/components/switch/primitives.tsx
2837
+ var import_react26 = require("@ark-ui/react");
2838
+ var import_css39 = require("@cerberus/styled-system/css");
2839
+ var import_recipes33 = require("@cerberus/styled-system/recipes");
2840
+ var import_jsx_runtime53 = require("react/jsx-runtime");
2841
+ function SwitchRoot(props) {
2842
+ const { size, ...rootProps } = props;
2843
+ const styles = (0, import_recipes33.switchRecipe)({ size });
2844
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2845
+ import_react26.Switch.Root,
2846
+ {
2847
+ ...rootProps,
2848
+ className: (0, import_css39.cx)(styles.root, rootProps.className)
2849
+ }
2850
+ );
2851
+ }
2852
+ function SwitchLabel(props) {
2853
+ const styles = (0, import_recipes33.switchRecipe)();
2854
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react26.Switch.Label, { ...props, className: (0, import_css39.cx)(styles.label, props.className) });
2855
+ }
2856
+ function SwitchControl(props) {
2857
+ const styles = (0, import_recipes33.switchRecipe)();
2858
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2859
+ import_react26.Switch.Control,
2860
+ {
2861
+ ...props,
2862
+ className: (0, import_css39.cx)(styles.control, props.className)
2863
+ }
2864
+ );
2865
+ }
2866
+ function SwitchThumb(props) {
2867
+ const styles = (0, import_recipes33.switchRecipe)();
2868
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react26.Switch.Thumb, { ...props, className: (0, import_css39.cx)(styles.thumb, props.className) });
2869
+ }
2870
+ var SwitchHiddenInput = import_react26.Switch.HiddenInput;
2871
+
2872
+ // src/components/switch/parts.ts
2873
+ var SwitchParts = {
2874
+ Root: SwitchRoot,
2875
+ Label: SwitchLabel,
2876
+ Control: SwitchControl,
2877
+ Thumb: SwitchThumb,
2878
+ HiddenInput: SwitchHiddenInput
2879
+ };
2880
+
2881
+ // src/components/switch/switch-indicator.tsx
2882
+ var import_jsx_runtime54 = require("react/jsx-runtime");
2883
+ function SwitchIndicator() {
2884
+ const { icons } = useCerberusContext();
2885
+ const { toggleChecked: CheckIcon } = icons;
2886
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(CheckIcon, {});
2887
+ }
2888
+
2889
+ // src/components/switch/switch.tsx
2890
+ var import_jsx_runtime55 = require("react/jsx-runtime");
2891
+ function Switch2(props) {
2892
+ const { children, ...rootProps } = props;
2893
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(SwitchParts.Root, { ...rootProps, children: [
2894
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SwitchParts.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SwitchParts.Thumb, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SwitchIndicator, {}) }) }),
2895
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SwitchParts.Label, { children }),
2896
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SwitchParts.HiddenInput, {})
2897
+ ] });
2898
+ }
2899
+
2616
2900
  // src/components/Tabs.client.tsx
2617
2901
  var import_tabs2 = require("@ark-ui/react/tabs");
2618
- var import_css38 = require("@cerberus/styled-system/css");
2902
+ var import_css40 = require("@cerberus/styled-system/css");
2619
2903
 
2620
2904
  // src/context/tabs.tsx
2621
2905
  var import_tabs = require("@ark-ui/react/tabs");
2622
- var import_recipes32 = require("@cerberus/styled-system/recipes");
2623
- var import_react24 = require("react");
2624
- var import_jsx_runtime50 = require("react/jsx-runtime");
2625
- var TabsContext = (0, import_react24.createContext)(null);
2906
+ var import_recipes34 = require("@cerberus/styled-system/recipes");
2907
+ var import_react27 = require("react");
2908
+ var import_jsx_runtime56 = require("react/jsx-runtime");
2909
+ var TabsContext = (0, import_react27.createContext)(null);
2626
2910
  function Tabs(props) {
2627
2911
  const { cache, defaultValue, palette, uuid, ...arkProps } = props;
2628
- const [activeTab, setActiveTab] = (0, import_react24.useState)(
2912
+ const [activeTab, setActiveTab] = (0, import_react27.useState)(
2629
2913
  () => cache ? "" : defaultValue
2630
2914
  );
2631
- const styles = (0, import_recipes32.tabs)({ palette });
2632
- const cacheKey = (0, import_react24.useMemo)(
2915
+ const styles = (0, import_recipes34.tabs)({ palette });
2916
+ const cacheKey = (0, import_react27.useMemo)(
2633
2917
  () => uuid ? `cerberus-tabs-${uuid}` : "cerberus-tabs",
2634
2918
  [uuid]
2635
2919
  );
2636
- const handleValueChange = (0, import_react24.useCallback)(
2920
+ const handleValueChange = (0, import_react27.useCallback)(
2637
2921
  (details) => {
2638
2922
  if (cache) {
2639
2923
  setLocalStorage(cacheKey, details.value);
@@ -2642,20 +2926,20 @@ function Tabs(props) {
2642
2926
  },
2643
2927
  [cache]
2644
2928
  );
2645
- (0, import_react24.useEffect)(() => {
2929
+ (0, import_react27.useEffect)(() => {
2646
2930
  if (cache && !activeTab) {
2647
2931
  const cachedTab = getLocalStorage(cacheKey, defaultValue ?? "");
2648
2932
  setActiveTab(cachedTab);
2649
2933
  }
2650
2934
  }, [cache, defaultValue, activeTab]);
2651
- const value = (0, import_react24.useMemo)(
2935
+ const value = (0, import_react27.useMemo)(
2652
2936
  () => ({
2653
2937
  active: activeTab,
2654
2938
  styles
2655
2939
  }),
2656
2940
  [activeTab, palette, styles]
2657
2941
  );
2658
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(TabsContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2942
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(TabsContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
2659
2943
  import_tabs.Tabs.Root,
2660
2944
  {
2661
2945
  ...arkProps,
@@ -2669,7 +2953,7 @@ function Tabs(props) {
2669
2953
  ) });
2670
2954
  }
2671
2955
  function useTabsContext() {
2672
- const context = (0, import_react24.useContext)(TabsContext);
2956
+ const context = (0, import_react27.useContext)(TabsContext);
2673
2957
  if (!context) {
2674
2958
  throw new Error("useTabsContext must be used within a Tabs Provider.");
2675
2959
  }
@@ -2677,18 +2961,18 @@ function useTabsContext() {
2677
2961
  }
2678
2962
 
2679
2963
  // src/components/Tabs.client.tsx
2680
- var import_jsx_runtime51 = require("react/jsx-runtime");
2964
+ var import_jsx_runtime57 = require("react/jsx-runtime");
2681
2965
  function TabsList(props) {
2682
2966
  const { children, ...tabsProps } = props;
2683
2967
  const { styles } = useTabsContext();
2684
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
2968
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
2685
2969
  import_tabs2.Tabs.List,
2686
2970
  {
2687
2971
  ...tabsProps,
2688
- className: (0, import_css38.cx)(tabsProps.className, styles.list),
2972
+ className: (0, import_css40.cx)(tabsProps.className, styles.list),
2689
2973
  children: [
2690
2974
  children,
2691
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TabIndicator, {})
2975
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(TabIndicator, {})
2692
2976
  ]
2693
2977
  }
2694
2978
  );
@@ -2696,90 +2980,90 @@ function TabsList(props) {
2696
2980
  var TabList = TabsList;
2697
2981
  function Tab(props) {
2698
2982
  const { styles } = useTabsContext();
2699
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2983
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2700
2984
  import_tabs2.Tabs.Trigger,
2701
2985
  {
2702
2986
  ...props,
2703
- className: (0, import_css38.cx)(props.className, styles.trigger)
2987
+ className: (0, import_css40.cx)(props.className, styles.trigger)
2704
2988
  }
2705
2989
  );
2706
2990
  }
2707
2991
  function TabIndicator(props) {
2708
2992
  const { styles } = useTabsContext();
2709
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2993
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2710
2994
  import_tabs2.Tabs.Indicator,
2711
2995
  {
2712
2996
  ...props,
2713
- className: (0, import_css38.cx)(props.className, styles.indicator)
2997
+ className: (0, import_css40.cx)(props.className, styles.indicator)
2714
2998
  }
2715
2999
  );
2716
3000
  }
2717
3001
  function TabPanel(props) {
2718
3002
  const { styles } = useTabsContext();
2719
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
3003
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2720
3004
  import_tabs2.Tabs.Content,
2721
3005
  {
2722
3006
  ...props,
2723
- className: (0, import_css38.cx)(props.className, styles.content)
3007
+ className: (0, import_css40.cx)(props.className, styles.content)
2724
3008
  }
2725
3009
  );
2726
3010
  }
2727
3011
 
2728
3012
  // src/components/Table.tsx
2729
- var import_css39 = require("@cerberus/styled-system/css");
2730
- var import_recipes33 = require("@cerberus/styled-system/recipes");
2731
- var import_jsx_runtime52 = require("react/jsx-runtime");
3013
+ var import_css41 = require("@cerberus/styled-system/css");
3014
+ var import_recipes35 = require("@cerberus/styled-system/recipes");
3015
+ var import_jsx_runtime58 = require("react/jsx-runtime");
2732
3016
  function Table(props) {
2733
3017
  const { caption, children, ...nativeProps } = props;
2734
- const styles = (0, import_recipes33.table)();
2735
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: styles.container, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
3018
+ const styles = (0, import_recipes35.table)();
3019
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: styles.container, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
2736
3020
  "table",
2737
3021
  {
2738
3022
  ...nativeProps,
2739
- className: (0, import_css39.cx)(nativeProps.className, styles.table),
3023
+ className: (0, import_css41.cx)(nativeProps.className, styles.table),
2740
3024
  children: [
2741
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("caption", { className: styles.caption, children: caption }),
3025
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("caption", { className: styles.caption, children: caption }),
2742
3026
  children
2743
3027
  ]
2744
3028
  }
2745
3029
  ) });
2746
3030
  }
2747
3031
  function Tr(props) {
2748
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("tr", { ...props });
3032
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("tr", { ...props });
2749
3033
  }
2750
3034
 
2751
3035
  // src/components/Thead.tsx
2752
- var import_css40 = require("@cerberus/styled-system/css");
2753
- var import_recipes34 = require("@cerberus/styled-system/recipes");
2754
- var import_jsx_runtime53 = require("react/jsx-runtime");
3036
+ var import_css42 = require("@cerberus/styled-system/css");
3037
+ var import_recipes36 = require("@cerberus/styled-system/recipes");
3038
+ var import_jsx_runtime59 = require("react/jsx-runtime");
2755
3039
  function Thead(props) {
2756
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("thead", { ...props, className: (0, import_css40.cx)(props.className, (0, import_recipes34.thead)()) });
3040
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("thead", { ...props, className: (0, import_css42.cx)(props.className, (0, import_recipes36.thead)()) });
2757
3041
  }
2758
3042
 
2759
3043
  // src/components/Th.tsx
2760
- var import_css41 = require("@cerberus/styled-system/css");
2761
- var import_recipes35 = require("@cerberus/styled-system/recipes");
2762
- var import_jsx_runtime54 = require("react/jsx-runtime");
3044
+ var import_css43 = require("@cerberus/styled-system/css");
3045
+ var import_recipes37 = require("@cerberus/styled-system/recipes");
3046
+ var import_jsx_runtime60 = require("react/jsx-runtime");
2763
3047
  function Th(props) {
2764
3048
  const { size, onClick, ...nativeProps } = props;
2765
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
3049
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2766
3050
  Show,
2767
3051
  {
2768
3052
  when: Boolean(onClick),
2769
- fallback: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
3053
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2770
3054
  "th",
2771
3055
  {
2772
3056
  ...nativeProps,
2773
- className: (0, import_css41.cx)(nativeProps.className, (0, import_recipes35.th)({ size }))
3057
+ className: (0, import_css43.cx)(nativeProps.className, (0, import_recipes37.th)({ size }))
2774
3058
  }
2775
3059
  ),
2776
- children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("th", { ...nativeProps, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
3060
+ children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("th", { ...nativeProps, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2777
3061
  "button",
2778
3062
  {
2779
- className: (0, import_css41.cx)(
3063
+ className: (0, import_css43.cx)(
2780
3064
  nativeProps.className,
2781
- (0, import_recipes35.th)({ size }),
2782
- (0, import_css41.css)({
3065
+ (0, import_recipes37.th)({ size }),
3066
+ (0, import_css43.css)({
2783
3067
  alignItems: "center",
2784
3068
  display: "inline-flex",
2785
3069
  justifyContent: "space-between",
@@ -2799,18 +3083,18 @@ function Th(props) {
2799
3083
  }
2800
3084
 
2801
3085
  // src/components/Td.tsx
2802
- var import_css42 = require("@cerberus/styled-system/css");
2803
- var import_recipes36 = require("@cerberus/styled-system/recipes");
2804
- var import_jsx_runtime55 = require("react/jsx-runtime");
3086
+ var import_css44 = require("@cerberus/styled-system/css");
3087
+ var import_recipes38 = require("@cerberus/styled-system/recipes");
3088
+ var import_jsx_runtime61 = require("react/jsx-runtime");
2805
3089
  function Td(props) {
2806
3090
  const { size, ...nativeProps } = props;
2807
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
3091
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2808
3092
  "td",
2809
3093
  {
2810
3094
  ...nativeProps,
2811
- className: (0, import_css42.cx)(
3095
+ className: (0, import_css44.cx)(
2812
3096
  nativeProps.className,
2813
- (0, import_recipes36.td)({
3097
+ (0, import_recipes38.td)({
2814
3098
  size
2815
3099
  })
2816
3100
  )
@@ -2819,18 +3103,18 @@ function Td(props) {
2819
3103
  }
2820
3104
 
2821
3105
  // src/components/Tbody.tsx
2822
- var import_recipes37 = require("@cerberus/styled-system/recipes");
2823
- var import_css43 = require("@cerberus/styled-system/css");
2824
- var import_jsx_runtime56 = require("react/jsx-runtime");
3106
+ var import_recipes39 = require("@cerberus/styled-system/recipes");
3107
+ var import_css45 = require("@cerberus/styled-system/css");
3108
+ var import_jsx_runtime62 = require("react/jsx-runtime");
2825
3109
  function Tbody(props) {
2826
3110
  const { decoration, ...nativeProps } = props;
2827
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3111
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2828
3112
  "tbody",
2829
3113
  {
2830
3114
  ...nativeProps,
2831
- className: (0, import_css43.cx)(
3115
+ className: (0, import_css45.cx)(
2832
3116
  nativeProps.className,
2833
- (0, import_recipes37.tbody)({
3117
+ (0, import_recipes39.tbody)({
2834
3118
  decoration
2835
3119
  })
2836
3120
  )
@@ -2839,9 +3123,9 @@ function Tbody(props) {
2839
3123
  }
2840
3124
 
2841
3125
  // src/components/Tag.tsx
2842
- var import_css44 = require("@cerberus/styled-system/css");
2843
- var import_recipes38 = require("@cerberus/styled-system/recipes");
2844
- var import_jsx_runtime57 = require("react/jsx-runtime");
3126
+ var import_css46 = require("@cerberus/styled-system/css");
3127
+ var import_recipes40 = require("@cerberus/styled-system/recipes");
3128
+ var import_jsx_runtime63 = require("react/jsx-runtime");
2845
3129
  function Tag(props) {
2846
3130
  const { shape: initShape, gradient, onClick, usage, ...nativeProps } = props;
2847
3131
  const palette = (props == null ? void 0 : props.palette) ?? "page";
@@ -2850,13 +3134,13 @@ function Tag(props) {
2850
3134
  const closableStyles = isClosable ? closableCss : "";
2851
3135
  const { icons } = useCerberusContext();
2852
3136
  const { close: Close } = icons;
2853
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
3137
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
2854
3138
  "span",
2855
3139
  {
2856
3140
  ...nativeProps,
2857
- className: (0, import_css44.cx)(
3141
+ className: (0, import_css46.cx)(
2858
3142
  nativeProps.className,
2859
- (0, import_recipes38.tag)({
3143
+ (0, import_recipes40.tag)({
2860
3144
  gradient,
2861
3145
  palette,
2862
3146
  shape,
@@ -2866,100 +3150,60 @@ function Tag(props) {
2866
3150
  ),
2867
3151
  children: [
2868
3152
  props.children,
2869
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Show, { when: isClosable, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
3153
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Show, { when: isClosable, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2870
3154
  "button",
2871
3155
  {
2872
3156
  "aria-label": "Close",
2873
- className: (0, import_recipes38.iconButton)({
3157
+ className: (0, import_recipes40.iconButton)({
2874
3158
  palette: "action",
2875
3159
  usage: "filled",
2876
3160
  size: "sm"
2877
3161
  }),
2878
3162
  onClick,
2879
- children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Close, {})
3163
+ children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Close, {})
2880
3164
  }
2881
3165
  ) })
2882
3166
  ]
2883
3167
  }
2884
3168
  );
2885
3169
  }
2886
- var closableCss = (0, import_css44.css)({
3170
+ var closableCss = (0, import_css46.css)({
2887
3171
  bgColor: "action.bg.active",
2888
3172
  color: "action.text.initial",
2889
3173
  paddingInlineEnd: "0"
2890
3174
  });
2891
3175
 
2892
- // src/components/Toggle.tsx
2893
- var import_field6 = require("@ark-ui/react/field");
2894
- var import_css45 = require("@cerberus/styled-system/css");
2895
- var import_patterns10 = require("@cerberus/styled-system/patterns");
2896
- var import_recipes39 = require("@cerberus/styled-system/recipes");
2897
- var import_jsx_runtime58 = require("react/jsx-runtime");
2898
- function Toggle(props) {
2899
- const { size, ...nativeProps } = props;
2900
- const styles = (0, import_recipes39.toggle)({ size });
2901
- const { invalid, disabled, readOnly, required, ariaDescribedby } = (0, import_field6.useFieldContext)();
2902
- const { icons } = useCerberusContext();
2903
- const CheckedIcon = icons.toggleChecked;
2904
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
2905
- "span",
2906
- {
2907
- className: (0, import_css45.cx)("group", styles.track, (0, import_patterns10.hstack)()),
2908
- "data-checked": props.checked || props.defaultChecked,
2909
- children: [
2910
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2911
- "input",
2912
- {
2913
- ...nativeProps,
2914
- ...disabled && { disabled: true },
2915
- ...readOnly && { readOnly: true },
2916
- ...required && { required: true },
2917
- ...ariaDescribedby && {
2918
- "aria-describedby": ariaDescribedby
2919
- },
2920
- ...invalid && { "aria-invalid": true },
2921
- className: (0, import_css45.cx)("peer", styles.input),
2922
- role: "switch",
2923
- type: "checkbox"
2924
- }
2925
- ),
2926
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2927
- "span",
2928
- {
2929
- className: (0, import_css45.cx)(
2930
- styles.thumb,
2931
- (0, import_patterns10.vstack)({
2932
- justify: "center"
2933
- })
2934
- ),
2935
- children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(CheckedIcon, {})
2936
- }
2937
- )
2938
- ]
2939
- }
2940
- );
2941
- }
3176
+ // src/components/toggle/primitives.tsx
3177
+ var import_toggle = require("@ark-ui/react/toggle");
3178
+ var ToggleRoot = import_toggle.Toggle.Root;
3179
+ var ToggleIndicator = import_toggle.Toggle.Indicator;
3180
+
3181
+ // src/components/toggle/parts.ts
3182
+ var ToggleParts = {
3183
+ Root: ToggleRoot,
3184
+ Indicator: ToggleIndicator
3185
+ };
2942
3186
 
2943
3187
  // src/components/Tooltip.tsx
2944
3188
  var import_tooltip = require("@ark-ui/react/tooltip");
2945
- var import_css46 = require("@cerberus/styled-system/css");
2946
- var import_recipes40 = require("@cerberus/styled-system/recipes");
2947
- var import_jsx_runtime59 = require("react/jsx-runtime");
3189
+ var import_css47 = require("@cerberus/styled-system/css");
3190
+ var import_recipes41 = require("@cerberus/styled-system/recipes");
3191
+ var import_jsx_runtime64 = require("react/jsx-runtime");
2948
3192
  function Tooltip(props) {
2949
3193
  const { content, children, asChild, ...nativeProps } = props;
2950
- const styles = (0, import_recipes40.tooltip)();
3194
+ const styles = (0, import_recipes41.tooltip)();
2951
3195
  const position = {
2952
3196
  placement: props.position || "top"
2953
3197
  };
2954
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_tooltip.Tooltip.Root, { openDelay: 400, positioning: position, children: [
2955
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_tooltip.Tooltip.Trigger, { className: styles.trigger, asChild, children }),
2956
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_tooltip.Tooltip.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
3198
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_tooltip.Tooltip.Root, { openDelay: 400, positioning: position, children: [
3199
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_tooltip.Tooltip.Trigger, { className: styles.trigger, asChild, children }),
3200
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_tooltip.Tooltip.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
2957
3201
  import_tooltip.Tooltip.Content,
2958
3202
  {
2959
3203
  ...nativeProps,
2960
- className: (0, import_css46.cx)(nativeProps.className, styles.content),
3204
+ className: (0, import_css47.cx)(nativeProps.className, styles.content),
2961
3205
  children: [
2962
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_tooltip.Tooltip.Arrow, { className: styles.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_tooltip.Tooltip.ArrowTip, { className: styles.arrowTip }) }),
3206
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_tooltip.Tooltip.Arrow, { className: styles.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_tooltip.Tooltip.ArrowTip, { className: styles.arrowTip }) }),
2963
3207
  content
2964
3208
  ]
2965
3209
  }
@@ -2967,102 +3211,24 @@ function Tooltip(props) {
2967
3211
  ] });
2968
3212
  }
2969
3213
 
2970
- // src/components/Select.tsx
2971
- var import_select2 = require("@ark-ui/react/select");
2972
- var import_recipes41 = require("@cerberus/styled-system/recipes");
2973
- var import_css47 = require("@cerberus/styled-system/css");
2974
- var import_jsx4 = require("@cerberus/styled-system/jsx");
2975
-
2976
- // src/components/Select.server.tsx
2977
- var import_select = require("@ark-ui/react/select");
2978
- var import_jsx_runtime60 = require("react/jsx-runtime");
2979
- function SelectRoot(props) {
2980
- const { children, ...rootProps } = props;
2981
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_select.Select.Root, { ...rootProps, children: [
2982
- children,
2983
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_select.Select.HiddenSelect, {})
2984
- ] });
2985
- }
2986
- var SelectLabel = import_select.Select.Label;
2987
- var SelectControl = import_select.Select.Control;
2988
- var SelectTrigger = import_select.Select.Trigger;
2989
- var SelectValueText = import_select.Select.ValueText;
2990
- var SelectIndicator = import_select.Select.Indicator;
2991
- var SelectClearTrigger = import_select.Select.ClearTrigger;
2992
- var SelectPositioner = import_select.Select.Positioner;
2993
- var SelectContent = import_select.Select.Content;
2994
- var SelectItemGroup = import_select.Select.ItemGroup;
2995
- var SelectItemGroupLabel = import_select.Select.ItemGroupLabel;
2996
- var SelectItem = import_select.Select.Item;
2997
- var SelectItemText = import_select.Select.ItemText;
2998
- var SelectItemIndicator = import_select.Select.ItemIndicator;
2999
-
3000
- // src/components/Select.tsx
3001
- var import_jsx_runtime61 = require("react/jsx-runtime");
3002
- function Select(props) {
3003
- const { collection, placeholder, size, ...rootProps } = props;
3004
- const { icons } = useCerberusContext();
3005
- const { selectArrow: SelectArrow, invalid: InvalidIcon } = icons;
3006
- const styles = (0, import_recipes41.select)({ size });
3007
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(SelectRoot, { className: styles.root, collection, ...rootProps, children: [
3008
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(SelectControl, { className: styles.control, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(SelectTrigger, { className: styles.trigger, children: [
3009
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(SelectValueText, { placeholder }),
3010
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx4.HStack, { children: [
3011
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Show, { when: props.invalid, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(InvalidIcon, { "data-part": "invalid-icon" }) }),
3012
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(SelectIndicator, { className: styles.indicator, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(SelectArrow, {}) })
3013
- ] })
3014
- ] }) }),
3015
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(SelectPositioner, { className: styles.positioner, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(SelectContent, { className: styles.content, children: props.children }) }) }),
3016
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_select2.Select.HiddenSelect, {})
3017
- ] });
3018
- }
3019
- function Option(props) {
3020
- const { item, ...itemProps } = props;
3021
- const { icons } = useCerberusContext();
3022
- const { selectChecked: CheckedIcon } = icons;
3023
- const styles = (0, import_recipes41.select)();
3024
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(SelectItem, { ...itemProps, item, className: styles.item, children: [
3025
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(SelectItemText, { className: styles.itemText, children: item == null ? void 0 : item.label }),
3026
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(SelectItemIndicator, { className: styles.itemIndicator, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(CheckedIcon, {}) })
3027
- ] });
3028
- }
3029
- function OptionGroup(props) {
3030
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(SelectItemGroup, { ...props });
3031
- }
3032
- function OptionGroupLabel(props) {
3033
- const styles = (0, import_recipes41.select)();
3034
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3035
- SelectItemGroupLabel,
3036
- {
3037
- ...props,
3038
- className: (0, import_css47.cx)(props.className, styles.itemGroupLabel)
3039
- }
3040
- );
3041
- }
3042
- function createSelectCollection(collection) {
3043
- return (0, import_select2.createListCollection)({
3044
- items: collection
3045
- });
3046
- }
3047
-
3048
3214
  // src/context/confirm-modal.tsx
3049
- var import_react25 = require("react");
3215
+ var import_react28 = require("react");
3050
3216
  var import_css48 = require("@cerberus/styled-system/css");
3051
3217
  var import_jsx5 = require("@cerberus/styled-system/jsx");
3052
- var import_jsx_runtime62 = require("react/jsx-runtime");
3053
- var ConfirmModalContext = (0, import_react25.createContext)(null);
3218
+ var import_jsx_runtime65 = require("react/jsx-runtime");
3219
+ var ConfirmModalContext = (0, import_react28.createContext)(null);
3054
3220
  function ConfirmModal(props) {
3055
- const [open, setOpen] = (0, import_react25.useState)(false);
3056
- const [content, setContent] = (0, import_react25.useState)(null);
3057
- const resolveRef = (0, import_react25.useRef)(null);
3221
+ const [open, setOpen] = (0, import_react28.useState)(false);
3222
+ const [content, setContent] = (0, import_react28.useState)(null);
3223
+ const resolveRef = (0, import_react28.useRef)(null);
3058
3224
  const kind = (content == null ? void 0 : content.kind) ?? "non-destructive";
3059
3225
  const { icons } = useCerberusContext();
3060
3226
  const { confirmModal: ConfirmIcon } = icons;
3061
- const palette = (0, import_react25.useMemo)(
3227
+ const palette = (0, import_react28.useMemo)(
3062
3228
  () => kind === "destructive" ? "danger" : "action",
3063
3229
  [kind]
3064
3230
  );
3065
- const handleChoice = (0, import_react25.useCallback)(
3231
+ const handleChoice = (0, import_react28.useCallback)(
3066
3232
  (e) => {
3067
3233
  var _a, _b;
3068
3234
  const target = e.currentTarget;
@@ -3074,7 +3240,7 @@ function ConfirmModal(props) {
3074
3240
  },
3075
3241
  [setOpen]
3076
3242
  );
3077
- const handleShow = (0, import_react25.useCallback)(
3243
+ const handleShow = (0, import_react28.useCallback)(
3078
3244
  (options) => {
3079
3245
  return new Promise((resolve) => {
3080
3246
  setContent({ ...options });
@@ -3084,42 +3250,42 @@ function ConfirmModal(props) {
3084
3250
  },
3085
3251
  [setOpen, setContent]
3086
3252
  );
3087
- const value = (0, import_react25.useMemo)(
3253
+ const value = (0, import_react28.useMemo)(
3088
3254
  () => ({
3089
3255
  show: handleShow
3090
3256
  }),
3091
3257
  [handleShow]
3092
3258
  );
3093
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(ConfirmModalContext.Provider, { value, children: [
3259
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(ConfirmModalContext.Provider, { value, children: [
3094
3260
  props.children,
3095
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Dialog, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx5.VStack, { gap: "xl", w: "full", children: [
3096
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx5.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: [
3097
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3261
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Dialog, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx5.VStack, { gap: "xl", w: "full", children: [
3262
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx5.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: [
3263
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3098
3264
  import_jsx5.HStack,
3099
3265
  {
3100
3266
  alignSelf: "center",
3101
3267
  justify: "center",
3102
3268
  paddingBlockEnd: "md",
3103
3269
  w: "full",
3104
- children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3270
+ children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3105
3271
  Show,
3106
3272
  {
3107
3273
  when: palette === "danger",
3108
- fallback: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3274
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3109
3275
  Avatar,
3110
3276
  {
3111
3277
  ariaLabel: "",
3112
3278
  gradient: "charon-light",
3113
- icon: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(ConfirmIcon, { size: 24 }),
3279
+ icon: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ConfirmIcon, { size: 24 }),
3114
3280
  src: ""
3115
3281
  }
3116
3282
  ),
3117
- children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3283
+ children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3118
3284
  Avatar,
3119
3285
  {
3120
3286
  ariaLabel: "",
3121
3287
  gradient: "hades-dark",
3122
- icon: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(ConfirmIcon, { size: 24 }),
3288
+ icon: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ConfirmIcon, { size: 24 }),
3123
3289
  src: ""
3124
3290
  }
3125
3291
  )
@@ -3127,11 +3293,11 @@ function ConfirmModal(props) {
3127
3293
  )
3128
3294
  }
3129
3295
  ),
3130
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
3131
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(DialogDescription, { children: content == null ? void 0 : content.description })
3296
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
3297
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DialogDescription, { children: content == null ? void 0 : content.description })
3132
3298
  ] }),
3133
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx5.HStack, { gap: "4", w: "full", children: [
3134
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3299
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx5.HStack, { gap: "4", w: "full", children: [
3300
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3135
3301
  Button,
3136
3302
  {
3137
3303
  autoFocus: true,
@@ -3145,7 +3311,7 @@ function ConfirmModal(props) {
3145
3311
  children: content == null ? void 0 : content.actionText
3146
3312
  }
3147
3313
  ),
3148
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(DialogCloseTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3314
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DialogCloseTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3149
3315
  Button,
3150
3316
  {
3151
3317
  className: (0, import_css48.css)({
@@ -3163,7 +3329,7 @@ function ConfirmModal(props) {
3163
3329
  ] });
3164
3330
  }
3165
3331
  function useConfirmModal() {
3166
- const context = (0, import_react25.useContext)(ConfirmModalContext);
3332
+ const context = (0, import_react28.useContext)(ConfirmModalContext);
3167
3333
  if (context === null) {
3168
3334
  throw new Error(
3169
3335
  "useConfirmModal must be used within a ConfirmModal Provider"
@@ -3173,20 +3339,20 @@ function useConfirmModal() {
3173
3339
  }
3174
3340
 
3175
3341
  // src/context/cta-modal.tsx
3176
- var import_react26 = require("react");
3342
+ var import_react29 = require("react");
3177
3343
  var import_jsx6 = require("@cerberus/styled-system/jsx");
3178
3344
  var import_css49 = require("@cerberus/styled-system/css");
3179
3345
  var import_jsx7 = require("@cerberus/styled-system/jsx");
3180
- var import_jsx_runtime63 = require("react/jsx-runtime");
3181
- var CTAModalContext = (0, import_react26.createContext)(null);
3346
+ var import_jsx_runtime66 = require("react/jsx-runtime");
3347
+ var CTAModalContext = (0, import_react29.createContext)(null);
3182
3348
  function CTAModal(props) {
3183
3349
  var _a, _b;
3184
- const [open, setOpen] = (0, import_react26.useState)(false);
3185
- const [content, setContent] = (0, import_react26.useState)(null);
3350
+ const [open, setOpen] = (0, import_react29.useState)(false);
3351
+ const [content, setContent] = (0, import_react29.useState)(null);
3186
3352
  const confirmIcon = content == null ? void 0 : content.icon;
3187
3353
  const { icons } = useCerberusContext();
3188
3354
  const { confirmModal: FallbackIcon } = icons;
3189
- const handleShow = (0, import_react26.useCallback)(
3355
+ const handleShow = (0, import_react29.useCallback)(
3190
3356
  (options) => {
3191
3357
  const maxActions = 2;
3192
3358
  if (options.actions.length > maxActions) {
@@ -3199,7 +3365,7 @@ function CTAModal(props) {
3199
3365
  },
3200
3366
  [setOpen]
3201
3367
  );
3202
- const handleActionClick = (0, import_react26.useCallback)(
3368
+ const handleActionClick = (0, import_react29.useCallback)(
3203
3369
  (event) => {
3204
3370
  const index = event.currentTarget.getAttribute("data-index");
3205
3371
  const action = content == null ? void 0 : content.actions[Number(index)];
@@ -3209,38 +3375,38 @@ function CTAModal(props) {
3209
3375
  },
3210
3376
  [content, setOpen]
3211
3377
  );
3212
- const value = (0, import_react26.useMemo)(
3378
+ const value = (0, import_react29.useMemo)(
3213
3379
  () => ({
3214
3380
  show: handleShow
3215
3381
  }),
3216
3382
  [handleShow]
3217
3383
  );
3218
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(CTAModalContext.Provider, { value, children: [
3384
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(CTAModalContext.Provider, { value, children: [
3219
3385
  props.children,
3220
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Dialog, { size: "sm", children: [
3221
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(DialogCloseIconTrigger, {}),
3222
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx7.VStack, { gap: "xl", w: "full", children: [
3223
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_jsx7.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx7.VStack, { gap: "lg", w: "full", children: [
3224
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3386
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Dialog, { size: "sm", children: [
3387
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DialogCloseIconTrigger, {}),
3388
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx7.VStack, { gap: "xl", w: "full", children: [
3389
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_jsx7.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx7.VStack, { gap: "lg", w: "full", children: [
3390
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3225
3391
  Avatar,
3226
3392
  {
3227
3393
  ariaLabel: "",
3228
3394
  gradient: "charon-light",
3229
- icon: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3395
+ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3230
3396
  Show,
3231
3397
  {
3232
3398
  when: Boolean(confirmIcon),
3233
- fallback: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(FallbackIcon, { size: 24 }),
3399
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(FallbackIcon, { size: 24 }),
3234
3400
  children: confirmIcon
3235
3401
  }
3236
3402
  ),
3237
3403
  src: ""
3238
3404
  }
3239
3405
  ),
3240
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
3241
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(DialogDescription, { children: content == null ? void 0 : content.description })
3406
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
3407
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DialogDescription, { children: content == null ? void 0 : content.description })
3242
3408
  ] }) }),
3243
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_jsx6.HStack, { gap: "md", w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Show, { when: Boolean((_a = content == null ? void 0 : content.actions) == null ? void 0 : _a.length), children: (_b = content == null ? void 0 : content.actions) == null ? void 0 : _b.map((action, index) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3409
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_jsx6.HStack, { gap: "md", w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Show, { when: Boolean((_a = content == null ? void 0 : content.actions) == null ? void 0 : _a.length), children: (_b = content == null ? void 0 : content.actions) == null ? void 0 : _b.map((action, index) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3244
3410
  Button,
3245
3411
  {
3246
3412
  "data-index": index,
@@ -3259,7 +3425,7 @@ function CTAModal(props) {
3259
3425
  ] });
3260
3426
  }
3261
3427
  function useCTAModal() {
3262
- const context = (0, import_react26.useContext)(CTAModalContext);
3428
+ const context = (0, import_react29.useContext)(CTAModalContext);
3263
3429
  if (context === null) {
3264
3430
  throw new Error("useCTAModal must be used within a CTAModal Provider");
3265
3431
  }
@@ -3267,8 +3433,8 @@ function useCTAModal() {
3267
3433
  }
3268
3434
 
3269
3435
  // src/context/notification-center.tsx
3270
- var import_react27 = require("react");
3271
- var import_patterns11 = require("@cerberus/styled-system/patterns");
3436
+ var import_react30 = require("react");
3437
+ var import_patterns10 = require("@cerberus/styled-system/patterns");
3272
3438
  var import_recipes42 = require("@cerberus/styled-system/recipes");
3273
3439
  var import_css50 = require("@cerberus/styled-system/css");
3274
3440
 
@@ -3303,16 +3469,16 @@ function clearNotificationState(dispatch) {
3303
3469
  }
3304
3470
 
3305
3471
  // src/context/notification-center.tsx
3306
- var import_jsx_runtime64 = require("react/jsx-runtime");
3307
- var NotificationsContext = (0, import_react27.createContext)(null);
3472
+ var import_jsx_runtime67 = require("react/jsx-runtime");
3473
+ var NotificationsContext = (0, import_react30.createContext)(null);
3308
3474
  function NotificationCenter(props) {
3309
- const [state, dispatch] = (0, import_react27.useReducer)(notificationCenterReducer, []);
3475
+ const [state, dispatch] = (0, import_react30.useReducer)(notificationCenterReducer, []);
3310
3476
  const styles = (0, import_recipes42.notification)();
3311
- const timeout = (0, import_react27.useMemo)(
3477
+ const timeout = (0, import_react30.useMemo)(
3312
3478
  () => props.duration || 6e3,
3313
3479
  [props.duration]
3314
3480
  );
3315
- const closeNotification = (0, import_react27.useCallback)(
3481
+ const closeNotification = (0, import_react30.useCallback)(
3316
3482
  (id) => {
3317
3483
  updateNotificationState(dispatch, {
3318
3484
  id,
@@ -3324,7 +3490,7 @@ function NotificationCenter(props) {
3324
3490
  },
3325
3491
  [dispatch]
3326
3492
  );
3327
- const handleNotify = (0, import_react27.useCallback)(
3493
+ const handleNotify = (0, import_react30.useCallback)(
3328
3494
  (options) => {
3329
3495
  const id = `${options.palette}:${state.length + 1}`;
3330
3496
  addNotification(dispatch, {
@@ -3338,32 +3504,32 @@ function NotificationCenter(props) {
3338
3504
  },
3339
3505
  [dispatch, state, timeout, closeNotification]
3340
3506
  );
3341
- const handleClose = (0, import_react27.useCallback)(
3507
+ const handleClose = (0, import_react30.useCallback)(
3342
3508
  (e) => {
3343
3509
  const target = e.currentTarget;
3344
3510
  closeNotification(target.value);
3345
3511
  },
3346
3512
  [closeNotification]
3347
3513
  );
3348
- const handleCloseAll = (0, import_react27.useCallback)(() => {
3514
+ const handleCloseAll = (0, import_react30.useCallback)(() => {
3349
3515
  state.forEach((item) => {
3350
3516
  if (item.onClose) item.onClose();
3351
3517
  });
3352
3518
  clearNotificationState(dispatch);
3353
3519
  }, [state, dispatch]);
3354
- const value = (0, import_react27.useMemo)(
3520
+ const value = (0, import_react30.useMemo)(
3355
3521
  () => ({
3356
3522
  notify: handleNotify
3357
3523
  }),
3358
3524
  [handleNotify]
3359
3525
  );
3360
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(NotificationsContext.Provider, { value, children: [
3526
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(NotificationsContext.Provider, { value, children: [
3361
3527
  props.children,
3362
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Show, { when: state.length > 0, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Portal, { container: props.container, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: styles.center, children: [
3363
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Show, { when: state.length >= 4, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3528
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Show, { when: state.length > 0, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Portal, { container: props.container, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: styles.center, children: [
3529
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Show, { when: state.length >= 4, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3364
3530
  Button,
3365
3531
  {
3366
- className: (0, import_css50.cx)(styles.closeAll, (0, import_patterns11.animateIn)()),
3532
+ className: (0, import_css50.cx)(styles.closeAll, (0, import_patterns10.animateIn)()),
3367
3533
  onClick: handleCloseAll,
3368
3534
  palette: "action",
3369
3535
  shape: "rounded",
@@ -3372,17 +3538,17 @@ function NotificationCenter(props) {
3372
3538
  children: "Close all"
3373
3539
  }
3374
3540
  ) }),
3375
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3541
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3376
3542
  "div",
3377
3543
  {
3378
- className: (0, import_patterns11.vstack)({
3544
+ className: (0, import_patterns10.vstack)({
3379
3545
  alignItems: "flex-end",
3380
3546
  gap: "4"
3381
3547
  }),
3382
3548
  style: {
3383
3549
  alignItems: "flex-end"
3384
3550
  },
3385
- children: state.map((option) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3551
+ children: state.map((option) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3386
3552
  MatchNotification,
3387
3553
  {
3388
3554
  ...option,
@@ -3398,7 +3564,7 @@ function NotificationCenter(props) {
3398
3564
  }
3399
3565
  function MatchNotification(props) {
3400
3566
  const { palette, id, onClose, heading, description, open } = props;
3401
- const sharedProps = (0, import_react27.useMemo)(
3567
+ const sharedProps = (0, import_react30.useMemo)(
3402
3568
  () => ({
3403
3569
  id,
3404
3570
  open: true,
@@ -3409,30 +3575,30 @@ function MatchNotification(props) {
3409
3575
  );
3410
3576
  switch (palette) {
3411
3577
  case "success":
3412
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Notification, { ...sharedProps, palette: "success", children: [
3413
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(NotificationHeading, { palette: "success", children: heading }),
3414
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(NotificationDescription, { palette: "success", children: description })
3578
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Notification, { ...sharedProps, palette: "success", children: [
3579
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(NotificationHeading, { palette: "success", children: heading }),
3580
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(NotificationDescription, { palette: "success", children: description })
3415
3581
  ] });
3416
3582
  case "warning":
3417
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Notification, { ...sharedProps, palette: "warning", children: [
3418
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(NotificationHeading, { palette: "warning", children: heading }),
3419
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(NotificationDescription, { palette: "warning", children: description })
3583
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Notification, { ...sharedProps, palette: "warning", children: [
3584
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(NotificationHeading, { palette: "warning", children: heading }),
3585
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(NotificationDescription, { palette: "warning", children: description })
3420
3586
  ] });
3421
3587
  case "danger":
3422
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Notification, { ...sharedProps, palette: "danger", children: [
3423
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(NotificationHeading, { palette: "danger", children: heading }),
3424
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(NotificationDescription, { palette: "danger", children: description })
3588
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Notification, { ...sharedProps, palette: "danger", children: [
3589
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(NotificationHeading, { palette: "danger", children: heading }),
3590
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(NotificationDescription, { palette: "danger", children: description })
3425
3591
  ] });
3426
3592
  case "info":
3427
3593
  default:
3428
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Notification, { ...sharedProps, palette: "info", children: [
3429
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(NotificationHeading, { palette: "info", children: heading }),
3430
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(NotificationDescription, { palette: "info", children: description })
3594
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Notification, { ...sharedProps, palette: "info", children: [
3595
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(NotificationHeading, { palette: "info", children: heading }),
3596
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(NotificationDescription, { palette: "info", children: description })
3431
3597
  ] });
3432
3598
  }
3433
3599
  }
3434
3600
  function useNotificationCenter() {
3435
- const context = (0, import_react27.useContext)(NotificationsContext);
3601
+ const context = (0, import_react30.useContext)(NotificationsContext);
3436
3602
  if (!context) {
3437
3603
  throw new Error(
3438
3604
  "useNotificationCenter must be used within a NotificationsProvider"
@@ -3442,35 +3608,35 @@ function useNotificationCenter() {
3442
3608
  }
3443
3609
 
3444
3610
  // src/context/prompt-modal.tsx
3445
- var import_react28 = require("react");
3446
- var import_react29 = require("@ark-ui/react");
3611
+ var import_react31 = require("react");
3612
+ var import_react32 = require("@ark-ui/react");
3447
3613
  var import_jsx8 = require("@cerberus/styled-system/jsx");
3448
3614
  var import_css51 = require("@cerberus/styled-system/css");
3449
- var import_patterns12 = require("@cerberus/styled-system/patterns");
3450
- var import_jsx_runtime65 = require("react/jsx-runtime");
3451
- var PromptModalContext = (0, import_react28.createContext)(null);
3615
+ var import_patterns11 = require("@cerberus/styled-system/patterns");
3616
+ var import_jsx_runtime68 = require("react/jsx-runtime");
3617
+ var PromptModalContext = (0, import_react31.createContext)(null);
3452
3618
  function PromptModal(props) {
3453
- const resolveRef = (0, import_react28.useRef)(null);
3454
- const [open, setOpen] = (0, import_react28.useState)(false);
3455
- const [content, setContent] = (0, import_react28.useState)(null);
3456
- const [inputValue, setInputValue] = (0, import_react28.useState)("");
3619
+ const resolveRef = (0, import_react31.useRef)(null);
3620
+ const [open, setOpen] = (0, import_react31.useState)(false);
3621
+ const [content, setContent] = (0, import_react31.useState)(null);
3622
+ const [inputValue, setInputValue] = (0, import_react31.useState)("");
3457
3623
  const { icons } = useCerberusContext();
3458
3624
  const { promptModal: PromptIcon } = icons;
3459
- const isValid = (0, import_react28.useMemo)(
3625
+ const isValid = (0, import_react31.useMemo)(
3460
3626
  () => inputValue === (content == null ? void 0 : content.key),
3461
3627
  [inputValue, content]
3462
3628
  );
3463
- const palette = (0, import_react28.useMemo)(
3629
+ const palette = (0, import_react31.useMemo)(
3464
3630
  () => (content == null ? void 0 : content.kind) === "destructive" ? "danger" : "action",
3465
3631
  [content]
3466
3632
  );
3467
- const handleChange = (0, import_react28.useCallback)(
3633
+ const handleChange = (0, import_react31.useCallback)(
3468
3634
  (e) => {
3469
3635
  setInputValue(e.currentTarget.value);
3470
3636
  },
3471
3637
  [content]
3472
3638
  );
3473
- const handleChoice = (0, import_react28.useCallback)(
3639
+ const handleChoice = (0, import_react31.useCallback)(
3474
3640
  (e) => {
3475
3641
  var _a;
3476
3642
  const target = e.currentTarget;
@@ -3481,7 +3647,7 @@ function PromptModal(props) {
3481
3647
  },
3482
3648
  [inputValue, setOpen]
3483
3649
  );
3484
- const handleShow = (0, import_react28.useCallback)(
3650
+ const handleShow = (0, import_react31.useCallback)(
3485
3651
  (options) => {
3486
3652
  return new Promise((resolve) => {
3487
3653
  setContent({ ...options, kind: options.kind || "non-destructive" });
@@ -3491,42 +3657,42 @@ function PromptModal(props) {
3491
3657
  },
3492
3658
  [setOpen]
3493
3659
  );
3494
- const value = (0, import_react28.useMemo)(
3660
+ const value = (0, import_react31.useMemo)(
3495
3661
  () => ({
3496
3662
  show: handleShow
3497
3663
  }),
3498
3664
  [handleShow]
3499
3665
  );
3500
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(PromptModalContext.Provider, { value, children: [
3666
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(PromptModalContext.Provider, { value, children: [
3501
3667
  props.children,
3502
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Dialog, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx8.VStack, { gap: "xl", w: "full", children: [
3503
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx8.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: [
3504
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3668
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Dialog, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_jsx8.VStack, { gap: "xl", w: "full", children: [
3669
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_jsx8.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: [
3670
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3505
3671
  import_jsx8.HStack,
3506
3672
  {
3507
3673
  alignSelf: "center",
3508
3674
  justify: "center",
3509
3675
  paddingBlockEnd: "md",
3510
3676
  w: "full",
3511
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3677
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3512
3678
  Show,
3513
3679
  {
3514
3680
  when: palette === "danger",
3515
- fallback: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3681
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3516
3682
  Avatar,
3517
3683
  {
3518
3684
  ariaLabel: "",
3519
3685
  gradient: "charon-light",
3520
- icon: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(PromptIcon, { size: 24 }),
3686
+ icon: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(PromptIcon, { size: 24 }),
3521
3687
  src: ""
3522
3688
  }
3523
3689
  ),
3524
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3690
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3525
3691
  Avatar,
3526
3692
  {
3527
3693
  ariaLabel: "",
3528
3694
  gradient: "hades-dark",
3529
- icon: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(PromptIcon, { size: 24 }),
3695
+ icon: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(PromptIcon, { size: 24 }),
3530
3696
  src: ""
3531
3697
  }
3532
3698
  )
@@ -3534,17 +3700,17 @@ function PromptModal(props) {
3534
3700
  )
3535
3701
  }
3536
3702
  ),
3537
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
3538
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DialogDescription, { children: content == null ? void 0 : content.description })
3703
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
3704
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(DialogDescription, { children: content == null ? void 0 : content.description })
3539
3705
  ] }),
3540
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3706
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3541
3707
  import_jsx8.VStack,
3542
3708
  {
3543
3709
  alignItems: "flex-start",
3544
3710
  marginBlockStart: "md",
3545
3711
  marginBlockEnd: "lg",
3546
3712
  w: "full",
3547
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
3713
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
3548
3714
  FieldRoot,
3549
3715
  {
3550
3716
  ids: {
@@ -3552,10 +3718,10 @@ function PromptModal(props) {
3552
3718
  },
3553
3719
  invalid: !isValid,
3554
3720
  children: [
3555
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
3721
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
3556
3722
  FieldLabel,
3557
3723
  {
3558
- className: (0, import_patterns12.hstack)({
3724
+ className: (0, import_patterns11.hstack)({
3559
3725
  gap: "xs",
3560
3726
  justify: "flex-start !important",
3561
3727
  marginBlockEnd: "xs",
@@ -3563,19 +3729,19 @@ function PromptModal(props) {
3563
3729
  }),
3564
3730
  children: [
3565
3731
  "Type",
3566
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Text, { as: "strong", textTransform: "uppercase", children: content == null ? void 0 : content.key }),
3732
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Text, { as: "strong", textTransform: "uppercase", children: content == null ? void 0 : content.key }),
3567
3733
  "to confirm"
3568
3734
  ]
3569
3735
  }
3570
3736
  ),
3571
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Input, { name: "confirm", onChange: handleChange, type: "text" })
3737
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Input, { name: "confirm", onChange: handleChange, type: "text" })
3572
3738
  ]
3573
3739
  }
3574
3740
  )
3575
3741
  }
3576
3742
  ),
3577
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx8.HStack, { gap: "md", justify: "stretch", w: "full", children: [
3578
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3743
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_jsx8.HStack, { gap: "md", justify: "stretch", w: "full", children: [
3744
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3579
3745
  Button,
3580
3746
  {
3581
3747
  autoFocus: true,
@@ -3590,7 +3756,7 @@ function PromptModal(props) {
3590
3756
  children: content == null ? void 0 : content.actionText
3591
3757
  }
3592
3758
  ),
3593
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react29.DialogCloseTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3759
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react32.DialogCloseTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3594
3760
  Button,
3595
3761
  {
3596
3762
  className: (0, import_css51.css)({
@@ -3608,7 +3774,7 @@ function PromptModal(props) {
3608
3774
  ] });
3609
3775
  }
3610
3776
  function usePromptModal() {
3611
- const context = (0, import_react28.useContext)(PromptModalContext);
3777
+ const context = (0, import_react31.useContext)(PromptModalContext);
3612
3778
  if (context === null) {
3613
3779
  throw new Error("usePromptModal must be used within a PromptModal Provider");
3614
3780
  }
@@ -3616,50 +3782,50 @@ function usePromptModal() {
3616
3782
  }
3617
3783
 
3618
3784
  // src/context/theme.tsx
3619
- var import_react31 = require("react");
3785
+ var import_react34 = require("react");
3620
3786
 
3621
3787
  // src/hooks/useTheme.ts
3622
- var import_react30 = require("react");
3788
+ var import_react33 = require("react");
3623
3789
  var THEME_KEY = "cerberus-theme";
3624
3790
  var MODE_KEY = "cerberus-mode";
3625
3791
  function useTheme(defaultTheme = "cerberus", defaultColorMode = "light", options = {}) {
3626
3792
  const { updateMode, updateTheme, cache } = options;
3627
- const [theme, setTheme] = (0, import_react30.useState)(defaultTheme);
3628
- const [colorMode, setColorMode] = (0, import_react30.useState)(defaultColorMode);
3629
- const handleThemeChange = (0, import_react30.useCallback)(
3793
+ const [theme, setTheme] = (0, import_react33.useState)(defaultTheme);
3794
+ const [colorMode, setColorMode] = (0, import_react33.useState)(defaultColorMode);
3795
+ const handleThemeChange = (0, import_react33.useCallback)(
3630
3796
  (newTheme) => {
3631
3797
  setTheme(newTheme);
3632
3798
  updateTheme == null ? void 0 : updateTheme(newTheme);
3633
3799
  },
3634
3800
  [updateTheme]
3635
3801
  );
3636
- const handleColorModeChange = (0, import_react30.useCallback)(
3802
+ const handleColorModeChange = (0, import_react33.useCallback)(
3637
3803
  (newMode) => {
3638
3804
  setColorMode(newMode);
3639
3805
  updateMode == null ? void 0 : updateMode(newMode);
3640
3806
  },
3641
3807
  [updateMode]
3642
3808
  );
3643
- (0, import_react30.useLayoutEffect)(() => {
3809
+ (0, import_react33.useLayoutEffect)(() => {
3644
3810
  const theme2 = localStorage.getItem(THEME_KEY);
3645
3811
  if (theme2) {
3646
3812
  setTheme(theme2);
3647
3813
  }
3648
3814
  }, []);
3649
- (0, import_react30.useLayoutEffect)(() => {
3815
+ (0, import_react33.useLayoutEffect)(() => {
3650
3816
  const mode = localStorage.getItem(MODE_KEY);
3651
3817
  if (mode) {
3652
3818
  setColorMode(mode);
3653
3819
  }
3654
3820
  }, []);
3655
- (0, import_react30.useEffect)(() => {
3821
+ (0, import_react33.useEffect)(() => {
3656
3822
  const root = document.documentElement;
3657
3823
  root.dataset.pandaTheme = theme;
3658
3824
  if (cache) {
3659
3825
  localStorage.setItem(THEME_KEY, theme);
3660
3826
  }
3661
3827
  }, [theme, cache]);
3662
- (0, import_react30.useEffect)(() => {
3828
+ (0, import_react33.useEffect)(() => {
3663
3829
  const root = document.documentElement;
3664
3830
  if (colorMode === "system") {
3665
3831
  root.dataset.colorMode = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
@@ -3670,7 +3836,7 @@ function useTheme(defaultTheme = "cerberus", defaultColorMode = "light", options
3670
3836
  localStorage.setItem(MODE_KEY, colorMode);
3671
3837
  }
3672
3838
  }, [colorMode, cache]);
3673
- return (0, import_react30.useMemo)(
3839
+ return (0, import_react33.useMemo)(
3674
3840
  () => ({
3675
3841
  theme,
3676
3842
  mode: colorMode,
@@ -3682,8 +3848,8 @@ function useTheme(defaultTheme = "cerberus", defaultColorMode = "light", options
3682
3848
  }
3683
3849
 
3684
3850
  // src/context/theme.tsx
3685
- var import_jsx_runtime66 = require("react/jsx-runtime");
3686
- var ThemeContext = (0, import_react31.createContext)(
3851
+ var import_jsx_runtime69 = require("react/jsx-runtime");
3852
+ var ThemeContext = (0, import_react34.createContext)(
3687
3853
  null
3688
3854
  );
3689
3855
  function ThemeProvider(props) {
@@ -3692,74 +3858,31 @@ function ThemeProvider(props) {
3692
3858
  updateMode: props.updateMode,
3693
3859
  updateTheme: props.updateTheme
3694
3860
  });
3695
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(ThemeContext.Provider, { value: state, children: props.children });
3861
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ThemeContext.Provider, { value: state, children: props.children });
3696
3862
  }
3697
3863
  function useThemeContext() {
3698
- const context = (0, import_react31.useContext)(ThemeContext);
3864
+ const context = (0, import_react34.useContext)(ThemeContext);
3699
3865
  if (!context) {
3700
3866
  throw new Error("useThemeContext must be used within a ThemeProvider");
3701
3867
  }
3702
3868
  return context;
3703
3869
  }
3704
3870
 
3705
- // src/hooks/useModal.ts
3706
- var import_react32 = require("react");
3707
- function useModal() {
3708
- const modalRef = (0, import_react32.useRef)(null);
3709
- const [isOpen, setIsOpen] = (0, import_react32.useState)(false);
3710
- const show = (0, import_react32.useCallback)(() => {
3711
- var _a;
3712
- (_a = modalRef.current) == null ? void 0 : _a.showModal();
3713
- setIsOpen(true);
3714
- }, []);
3715
- const close = (0, import_react32.useCallback)(() => {
3716
- var _a;
3717
- (_a = modalRef.current) == null ? void 0 : _a.close();
3718
- setIsOpen(false);
3719
- }, []);
3720
- return (0, import_react32.useMemo)(() => {
3721
- return {
3722
- modalRef,
3723
- show,
3724
- close,
3725
- isOpen
3726
- };
3727
- }, [modalRef, show, close, isOpen]);
3728
- }
3729
-
3730
- // src/hooks/useToggle.ts
3731
- var import_react33 = require("react");
3732
- function useToggle(options) {
3733
- const [checked, setChecked] = (0, import_react33.useState)((options == null ? void 0 : options.checked) ?? "");
3734
- const onChange = options == null ? void 0 : options.onChange;
3735
- const handleChange = (0, import_react33.useCallback)(
3736
- (e) => {
3737
- const target = e.currentTarget;
3738
- setChecked((prev) => {
3739
- return prev === target.value ? "" : target.value;
3740
- });
3741
- onChange == null ? void 0 : onChange(e);
3742
- },
3743
- [onChange]
3744
- );
3745
- return (0, import_react33.useMemo)(() => ({ checked, handleChange }), [checked, handleChange]);
3746
- }
3747
-
3748
3871
  // src/hooks/useRootColors.ts
3749
- var import_react34 = require("react");
3872
+ var import_react35 = require("react");
3750
3873
  function useRootColors(colors = []) {
3751
- const [state, dispatch] = (0, import_react34.useReducer)(rootColorsReducer, {});
3752
- const handleRefetch = (0, import_react34.useCallback)(() => {
3874
+ const [state, dispatch] = (0, import_react35.useReducer)(rootColorsReducer, {});
3875
+ const handleRefetch = (0, import_react35.useCallback)(() => {
3753
3876
  return new Promise((resolve) => {
3754
3877
  dispatch(formatColors(colors));
3755
3878
  resolve();
3756
3879
  });
3757
3880
  }, []);
3758
- (0, import_react34.useEffect)(() => {
3881
+ (0, import_react35.useEffect)(() => {
3759
3882
  if (Object.keys(state).length === colors.length) return;
3760
3883
  dispatch(formatColors(colors));
3761
3884
  }, [colors]);
3762
- return (0, import_react34.useMemo)(
3885
+ return (0, import_react35.useMemo)(
3763
3886
  () => ({ colors: state, refetch: handleRefetch }),
3764
3887
  [state, handleRefetch]
3765
3888
  );
@@ -3780,9 +3903,9 @@ function rootColorsReducer(state, action) {
3780
3903
  }
3781
3904
 
3782
3905
  // src/config/icons/checkbox.icons.tsx
3783
- var import_jsx_runtime67 = require("react/jsx-runtime");
3906
+ var import_jsx_runtime70 = require("react/jsx-runtime");
3784
3907
  function CheckmarkIcon(props) {
3785
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3908
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3786
3909
  "svg",
3787
3910
  {
3788
3911
  "aria-hidden": "true",
@@ -3791,7 +3914,7 @@ function CheckmarkIcon(props) {
3791
3914
  role: "img",
3792
3915
  viewBox: "0 0 24 24",
3793
3916
  ...props,
3794
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3917
+ children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3795
3918
  "path",
3796
3919
  {
3797
3920
  fill: "currentColor",
@@ -3802,7 +3925,7 @@ function CheckmarkIcon(props) {
3802
3925
  );
3803
3926
  }
3804
3927
  function IndeterminateIcon(props) {
3805
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3928
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3806
3929
  "svg",
3807
3930
  {
3808
3931
  "aria-hidden": "true",
@@ -3811,15 +3934,15 @@ function IndeterminateIcon(props) {
3811
3934
  fill: "none",
3812
3935
  viewBox: "0 0 24 24",
3813
3936
  ...props,
3814
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", { fill: "currentColor", d: "M4 11h16v2.667H4z" })
3937
+ children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("path", { fill: "currentColor", d: "M4 11h16v2.667H4z" })
3815
3938
  }
3816
3939
  );
3817
3940
  }
3818
3941
 
3819
3942
  // src/components/AnimatingUploadIcon.tsx
3820
- var import_jsx_runtime68 = require("react/jsx-runtime");
3943
+ var import_jsx_runtime71 = require("react/jsx-runtime");
3821
3944
  function AnimatingUploadIcon(props) {
3822
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3945
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3823
3946
  "svg",
3824
3947
  {
3825
3948
  "aria-hidden": "true",
@@ -3827,7 +3950,7 @@ function AnimatingUploadIcon(props) {
3827
3950
  width: props.size ?? "1em",
3828
3951
  height: props.size ?? "1em",
3829
3952
  viewBox: "0 0 24 24",
3830
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
3953
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
3831
3954
  "g",
3832
3955
  {
3833
3956
  fill: "none",
@@ -3836,14 +3959,14 @@ function AnimatingUploadIcon(props) {
3836
3959
  strokeLinejoin: "round",
3837
3960
  strokeWidth: 1.5,
3838
3961
  children: [
3839
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3962
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3840
3963
  "path",
3841
3964
  {
3842
3965
  "data-name": "animating-trail",
3843
3966
  strokeDasharray: "2 4",
3844
3967
  strokeDashoffset: 6,
3845
3968
  d: "M12 21c-4.97 0 -9 -4.03 -9 -9c0 -4.97 4.03 -9 9 -9",
3846
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3969
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3847
3970
  "animate",
3848
3971
  {
3849
3972
  attributeName: "stroke-dashoffset",
@@ -3854,14 +3977,14 @@ function AnimatingUploadIcon(props) {
3854
3977
  )
3855
3978
  }
3856
3979
  ),
3857
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3980
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3858
3981
  "path",
3859
3982
  {
3860
3983
  "data-name": "half-circle",
3861
3984
  strokeDasharray: 32,
3862
3985
  strokeDashoffset: 32,
3863
3986
  d: "M12 3c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9",
3864
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3987
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3865
3988
  "animate",
3866
3989
  {
3867
3990
  fill: "freeze",
@@ -3873,7 +3996,7 @@ function AnimatingUploadIcon(props) {
3873
3996
  )
3874
3997
  }
3875
3998
  ),
3876
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3999
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3877
4000
  "svg",
3878
4001
  {
3879
4002
  "aria-hidden": "true",
@@ -3883,7 +4006,7 @@ function AnimatingUploadIcon(props) {
3883
4006
  x: "27%",
3884
4007
  y: "27%",
3885
4008
  viewBox: "0 0 24 24",
3886
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
4009
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3887
4010
  "polygon",
3888
4011
  {
3889
4012
  fill: "currentColor",
@@ -3891,7 +4014,7 @@ function AnimatingUploadIcon(props) {
3891
4014
  strokeWidth: 0.8,
3892
4015
  opacity: "1",
3893
4016
  points: "3.7,6.7 7.5,2.9 7.5,15 8.5,15 8.5,2.9 12.3,6.7 13,6 8,1 3,6 ",
3894
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
4017
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3895
4018
  "animate",
3896
4019
  {
3897
4020
  fill: "freeze",
@@ -4057,6 +4180,7 @@ __reExport(src_exports, require("@dnd-kit/core"), module.exports);
4057
4180
  SelectClearTrigger,
4058
4181
  SelectContent,
4059
4182
  SelectControl,
4183
+ SelectHiddenSelect,
4060
4184
  SelectIndicator,
4061
4185
  SelectItem,
4062
4186
  SelectItemGroup,
@@ -4064,12 +4188,20 @@ __reExport(src_exports, require("@dnd-kit/core"), module.exports);
4064
4188
  SelectItemIndicator,
4065
4189
  SelectItemText,
4066
4190
  SelectLabel,
4191
+ SelectParts,
4067
4192
  SelectPositioner,
4068
4193
  SelectRoot,
4069
4194
  SelectTrigger,
4070
4195
  SelectValueText,
4071
4196
  Show,
4072
4197
  Spinner,
4198
+ Switch,
4199
+ SwitchControl,
4200
+ SwitchHiddenInput,
4201
+ SwitchLabel,
4202
+ SwitchParts,
4203
+ SwitchRoot,
4204
+ SwitchThumb,
4073
4205
  THEME_KEY,
4074
4206
  Tab,
4075
4207
  TabIndicator,
@@ -4087,7 +4219,9 @@ __reExport(src_exports, require("@dnd-kit/core"), module.exports);
4087
4219
  Th,
4088
4220
  Thead,
4089
4221
  ThemeProvider,
4090
- Toggle,
4222
+ ToggleIndicator,
4223
+ ToggleParts,
4224
+ ToggleRoot,
4091
4225
  Tooltip,
4092
4226
  Tr,
4093
4227
  createNavTriggerProps,