@cerberus-design/react 0.14.2-next-81321e7 → 0.14.2-next-2f75188

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 (71) hide show
  1. package/build/legacy/_tsup-dts-rollup.d.cts +172 -44
  2. package/build/legacy/components/DatePicker.client.cjs +4 -4
  3. package/build/legacy/components/DatePicker.client.cjs.map +1 -1
  4. package/build/legacy/components/Dialog.cjs +86 -0
  5. package/build/legacy/components/Dialog.cjs.map +1 -0
  6. package/build/legacy/components/Dialog.client.cjs +95 -0
  7. package/build/legacy/components/Dialog.client.cjs.map +1 -0
  8. package/build/legacy/components/Modal.cjs.map +1 -1
  9. package/build/legacy/components/ModalDescription.cjs.map +1 -1
  10. package/build/legacy/components/ModalHeader.cjs.map +1 -1
  11. package/build/legacy/components/ModalHeading.cjs.map +1 -1
  12. package/build/legacy/context/confirm-modal.cjs.map +1 -1
  13. package/build/legacy/context/cta-modal.cjs.map +1 -1
  14. package/build/legacy/context/prompt-modal.cjs.map +1 -1
  15. package/build/legacy/index.cjs +598 -513
  16. package/build/legacy/index.cjs.map +1 -1
  17. package/build/modern/_tsup-dts-rollup.d.ts +172 -44
  18. package/build/modern/chunk-6BN3XKQF.js +42 -0
  19. package/build/modern/chunk-6BN3XKQF.js.map +1 -0
  20. package/build/modern/{chunk-2UXE5PDG.js → chunk-7NN3SJ7W.js} +1 -1
  21. package/build/modern/chunk-7NN3SJ7W.js.map +1 -0
  22. package/build/modern/{chunk-XHM46FXT.js → chunk-JAROS4Q3.js} +4 -4
  23. package/build/modern/{chunk-BE4EOU2P.js → chunk-JIRW4XOJ.js} +1 -1
  24. package/build/modern/chunk-JIRW4XOJ.js.map +1 -0
  25. package/build/modern/{chunk-YJI4Y7BH.js → chunk-MUTAYS3P.js} +5 -5
  26. package/build/modern/{chunk-XY6WL55R.js → chunk-NUMM4TNC.js} +1 -1
  27. package/build/modern/chunk-NUMM4TNC.js.map +1 -0
  28. package/build/modern/{chunk-USYM6XU6.js → chunk-O6LFWUHI.js} +4 -4
  29. package/build/modern/{chunk-XDDLXEFV.js → chunk-R4RFWDBM.js} +8 -8
  30. package/build/modern/chunk-TFL56AYR.js +56 -0
  31. package/build/modern/chunk-TFL56AYR.js.map +1 -0
  32. package/build/modern/{chunk-ZHBHPMTP.js → chunk-VGEK2DQB.js} +8 -8
  33. package/build/modern/{chunk-Q4JXWPU7.js → chunk-YKKNWILF.js} +12 -12
  34. package/build/modern/chunk-YKKNWILF.js.map +1 -0
  35. package/build/modern/{chunk-Q7BRMIBR.js → chunk-ZL6ZITLA.js} +1 -1
  36. package/build/modern/chunk-ZL6ZITLA.js.map +1 -0
  37. package/build/modern/components/DatePicker.client.js +4 -4
  38. package/build/modern/components/Dialog.client.js +10 -0
  39. package/build/modern/components/Dialog.client.js.map +1 -0
  40. package/build/modern/components/Dialog.js +24 -0
  41. package/build/modern/components/Dialog.js.map +1 -0
  42. package/build/modern/components/FileStatus.js +2 -2
  43. package/build/modern/components/Modal.js +1 -1
  44. package/build/modern/components/ModalDescription.js +1 -1
  45. package/build/modern/components/ModalHeader.js +1 -1
  46. package/build/modern/components/ModalHeading.js +1 -1
  47. package/build/modern/context/confirm-modal.js +5 -5
  48. package/build/modern/context/cta-modal.js +6 -6
  49. package/build/modern/context/notification-center.js +2 -2
  50. package/build/modern/context/prompt-modal.js +6 -6
  51. package/build/modern/index.js +72 -48
  52. package/build/modern/index.js.map +1 -1
  53. package/package.json +2 -2
  54. package/src/components/DatePicker.client.tsx +9 -5
  55. package/src/components/Dialog.client.tsx +39 -0
  56. package/src/components/Dialog.tsx +165 -0
  57. package/src/components/Modal.tsx +1 -16
  58. package/src/components/ModalDescription.tsx +1 -8
  59. package/src/components/ModalHeader.tsx +1 -10
  60. package/src/components/ModalHeading.tsx +1 -8
  61. package/src/index.ts +2 -0
  62. package/build/modern/chunk-2UXE5PDG.js.map +0 -1
  63. package/build/modern/chunk-BE4EOU2P.js.map +0 -1
  64. package/build/modern/chunk-Q4JXWPU7.js.map +0 -1
  65. package/build/modern/chunk-Q7BRMIBR.js.map +0 -1
  66. package/build/modern/chunk-XY6WL55R.js.map +0 -1
  67. /package/build/modern/{chunk-XHM46FXT.js.map → chunk-JAROS4Q3.js.map} +0 -0
  68. /package/build/modern/{chunk-YJI4Y7BH.js.map → chunk-MUTAYS3P.js.map} +0 -0
  69. /package/build/modern/{chunk-USYM6XU6.js.map → chunk-O6LFWUHI.js.map} +0 -0
  70. /package/build/modern/{chunk-XDDLXEFV.js.map → chunk-R4RFWDBM.js.map} +0 -0
  71. /package/build/modern/{chunk-ZHBHPMTP.js.map → chunk-VGEK2DQB.js.map} +0 -0
@@ -55,6 +55,16 @@ __export(src_exports, {
55
55
  DatePickerViewControl: () => DatePickerViewControl,
56
56
  DatePickerViewControlGroup: () => DatePickerViewControlGroup,
57
57
  DatePickerYearView: () => DatePickerYearView,
58
+ Dialog: () => Dialog,
59
+ DialogBackdrop: () => DialogBackdrop,
60
+ DialogCloseIconTrigger: () => DialogCloseIconTrigger,
61
+ DialogCloseTrigger: () => DialogCloseTrigger,
62
+ DialogContent: () => DialogContent,
63
+ DialogDescription: () => DialogDescription,
64
+ DialogHeading: () => DialogHeading,
65
+ DialogPositioner: () => DialogPositioner,
66
+ DialogProvider: () => DialogProvider,
67
+ DialogTrigger: () => DialogTrigger,
58
68
  Droppable: () => Droppable,
59
69
  FeatureFlag: () => FeatureFlag,
60
70
  FeatureFlags: () => FeatureFlags,
@@ -946,8 +956,8 @@ function RangePickerInput(props) {
946
956
  ] });
947
957
  }
948
958
  function DatePickerContent(props) {
949
- const { children, ...contentProps } = props;
950
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react8.DatePicker.Positioner, { className: datePickerStyles2.positioner, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
959
+ const { children, withModal, ...contentProps } = props;
960
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Portal, { disabled: withModal ?? false, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react8.DatePicker.Positioner, { className: datePickerStyles2.positioner, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
951
961
  import_react8.DatePicker.Content,
952
962
  {
953
963
  ...contentProps,
@@ -999,28 +1009,93 @@ function DatePickerYearView(props) {
999
1009
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DatePickerTable, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react8.DatePicker.TableBody, { children: datePicker3.getYearsGrid({ columns: 4 }).map((years, id) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react8.DatePicker.TableRow, { children: years.map((year, id2) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DatePickerTableCell, { value: year.value, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DatePickerTableCellTrigger, { children: year.label }) }, id2)) }, id)) }) })
1000
1010
  ] }) }) });
1001
1011
  }
1002
- function DatePickerCalendar() {
1003
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(DatePickerContent, { children: [
1012
+ function DatePickerCalendar(props) {
1013
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(DatePickerContent, { withModal: props.withModal, children: [
1004
1014
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DatePickerDayView, {}),
1005
1015
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DatePickerMonthView, {}),
1006
1016
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DatePickerYearView, {})
1007
1017
  ] });
1008
1018
  }
1009
1019
 
1020
+ // src/components/Dialog.tsx
1021
+ var import_react10 = require("@ark-ui/react");
1022
+ var import_recipes10 = require("@cerberus/styled-system/recipes");
1023
+ var import_css12 = require("@cerberus/styled-system/css");
1024
+ var import_jsx_runtime15 = require("react/jsx-runtime");
1025
+ function DialogProvider(props) {
1026
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react10.Dialog.Root, { ...props });
1027
+ }
1028
+ function Dialog(props) {
1029
+ const { size, ...contentProps } = props;
1030
+ const styles = (0, import_recipes10.dialog)({ size });
1031
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(Portal, { children: [
1032
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DialogBackdrop, { className: styles.backdrop }),
1033
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DialogPositioner, { className: styles.positioner, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DialogContent, { className: styles.content, ...contentProps }) })
1034
+ ] });
1035
+ }
1036
+ function DialogHeading(props) {
1037
+ const styles = (0, import_recipes10.dialog)();
1038
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react10.Dialog.Title, { ...props, className: (0, import_css12.cx)(props.className, styles.title) });
1039
+ }
1040
+ function DialogDescription(props) {
1041
+ const styles = (0, import_recipes10.dialog)();
1042
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1043
+ import_react10.Dialog.Description,
1044
+ {
1045
+ ...props,
1046
+ className: (0, import_css12.cx)(props.className, styles.description)
1047
+ }
1048
+ );
1049
+ }
1050
+ var DialogTrigger = import_react10.Dialog.Trigger;
1051
+ var DialogCloseTrigger = import_react10.Dialog.CloseTrigger;
1052
+ var DialogBackdrop = import_react10.Dialog.Backdrop;
1053
+ var DialogPositioner = import_react10.Dialog.Positioner;
1054
+ var DialogContent = import_react10.Dialog.Content;
1055
+
1056
+ // src/components/Dialog.client.tsx
1057
+ var import_react11 = require("@ark-ui/react");
1058
+ var import_recipes11 = require("@cerberus/styled-system/recipes");
1059
+ var import_css13 = require("@cerberus/styled-system/css");
1060
+ var import_jsx_runtime16 = require("react/jsx-runtime");
1061
+ function DialogCloseIconTrigger(props) {
1062
+ const { icons } = useCerberusContext();
1063
+ const { close: CloseIcon } = icons;
1064
+ const styles = (0, import_recipes11.dialog)();
1065
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1066
+ import_react11.Dialog.CloseTrigger,
1067
+ {
1068
+ ...props,
1069
+ className: (0, import_css13.cx)(props.className, styles.closeTrigger),
1070
+ asChild: true,
1071
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1072
+ IconButton,
1073
+ {
1074
+ ariaLabel: "Close dialog",
1075
+ palette: "action",
1076
+ size: "lg",
1077
+ usage: "ghost",
1078
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CloseIcon, {})
1079
+ }
1080
+ )
1081
+ }
1082
+ );
1083
+ }
1084
+
1010
1085
  // src/components/Droppable.tsx
1011
1086
  var import_core = require("@dnd-kit/core");
1012
- var import_react10 = require("react");
1013
- var import_jsx_runtime15 = require("react/jsx-runtime");
1087
+ var import_react12 = require("react");
1088
+ var import_jsx_runtime17 = require("react/jsx-runtime");
1014
1089
  function Droppable(props) {
1015
1090
  const { dropped, id, disabled, data, resizeObserverConfig, ...nativeProps } = props;
1016
- const uuid = (0, import_react10.useId)();
1091
+ const uuid = (0, import_react12.useId)();
1017
1092
  const { isOver, setNodeRef } = (0, import_core.useDroppable)({
1018
1093
  data,
1019
1094
  disabled,
1020
1095
  id: id || uuid,
1021
1096
  resizeObserverConfig
1022
1097
  });
1023
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1098
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1024
1099
  "div",
1025
1100
  {
1026
1101
  ...nativeProps,
@@ -1033,30 +1108,30 @@ function Droppable(props) {
1033
1108
  }
1034
1109
 
1035
1110
  // src/components/FieldMessage.tsx
1036
- var import_css12 = require("@cerberus/styled-system/css");
1037
- var import_recipes10 = require("@cerberus/styled-system/recipes");
1038
- var import_jsx_runtime16 = require("react/jsx-runtime");
1111
+ var import_css14 = require("@cerberus/styled-system/css");
1112
+ var import_recipes12 = require("@cerberus/styled-system/recipes");
1113
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1039
1114
  function FieldMessage(props) {
1040
1115
  const { invalid } = useFieldContext();
1041
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1116
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1042
1117
  "small",
1043
1118
  {
1044
1119
  ...props,
1045
1120
  ...invalid && { "aria-invalid": true },
1046
- className: (0, import_css12.cx)(props.className, (0, import_recipes10.fieldMessage)())
1121
+ className: (0, import_css14.cx)(props.className, (0, import_recipes12.fieldMessage)())
1047
1122
  }
1048
1123
  );
1049
1124
  }
1050
1125
 
1051
1126
  // src/context/feature-flags.tsx
1052
- var import_react11 = require("react");
1053
- var import_jsx_runtime17 = require("react/jsx-runtime");
1054
- var FeatureFlagContext = (0, import_react11.createContext)(null);
1127
+ var import_react13 = require("react");
1128
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1129
+ var FeatureFlagContext = (0, import_react13.createContext)(null);
1055
1130
  function FeatureFlags(props) {
1056
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(FeatureFlagContext.Provider, { value: props.flags, children: props.children });
1131
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(FeatureFlagContext.Provider, { value: props.flags, children: props.children });
1057
1132
  }
1058
1133
  function useFeatureFlags(key) {
1059
- const context = (0, import_react11.useContext)(FeatureFlagContext);
1134
+ const context = (0, import_react13.useContext)(FeatureFlagContext);
1060
1135
  if (context === null) {
1061
1136
  throw new Error(
1062
1137
  "useFeatureFlag must be used within a FeatureFlags Provider"
@@ -1066,26 +1141,26 @@ function useFeatureFlags(key) {
1066
1141
  }
1067
1142
 
1068
1143
  // src/components/FeatureFlag.tsx
1069
- var import_jsx_runtime18 = require("react/jsx-runtime");
1144
+ var import_jsx_runtime20 = require("react/jsx-runtime");
1070
1145
  function FeatureFlag(props) {
1071
1146
  const showContent = useFeatureFlags(props.flag);
1072
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Show, { when: showContent, children: props.children });
1147
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Show, { when: showContent, children: props.children });
1073
1148
  }
1074
1149
 
1075
1150
  // src/components/Fieldset.tsx
1076
- var import_css13 = require("@cerberus/styled-system/css");
1077
- var import_jsx_runtime19 = require("react/jsx-runtime");
1151
+ var import_css15 = require("@cerberus/styled-system/css");
1152
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1078
1153
  function Fieldset(props) {
1079
1154
  const { invalid, ...formState } = useFieldContext();
1080
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1155
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1081
1156
  "fieldset",
1082
1157
  {
1083
1158
  ...props,
1084
1159
  ...formState,
1085
1160
  ...invalid && { "aria-invalid": true },
1086
- className: (0, import_css13.cx)(
1161
+ className: (0, import_css15.cx)(
1087
1162
  props.className,
1088
- (0, import_css13.css)({
1163
+ (0, import_css15.css)({
1089
1164
  border: "none",
1090
1165
  pt: 2,
1091
1166
  margin: 0
@@ -1096,18 +1171,18 @@ function Fieldset(props) {
1096
1171
  }
1097
1172
 
1098
1173
  // src/components/FieldsetLabel.tsx
1099
- var import_css14 = require("@cerberus/styled-system/css");
1100
- var import_recipes11 = require("@cerberus/styled-system/recipes");
1101
- var import_jsx_runtime20 = require("react/jsx-runtime");
1174
+ var import_css16 = require("@cerberus/styled-system/css");
1175
+ var import_recipes13 = require("@cerberus/styled-system/recipes");
1176
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1102
1177
  function FieldsetLabel(props) {
1103
1178
  const { size, usage, ...nativeProps } = props;
1104
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1179
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1105
1180
  "label",
1106
1181
  {
1107
1182
  ...nativeProps,
1108
- className: (0, import_css14.cx)(
1183
+ className: (0, import_css16.cx)(
1109
1184
  nativeProps.className,
1110
- (0, import_recipes11.label)({
1185
+ (0, import_recipes13.label)({
1111
1186
  size,
1112
1187
  usage
1113
1188
  })
@@ -1117,23 +1192,23 @@ function FieldsetLabel(props) {
1117
1192
  }
1118
1193
 
1119
1194
  // src/components/FileStatus.tsx
1120
- var import_react12 = require("react");
1121
- var import_recipes13 = require("@cerberus/styled-system/recipes");
1122
- var import_css16 = require("@cerberus/styled-system/css");
1195
+ var import_react14 = require("react");
1196
+ var import_recipes15 = require("@cerberus/styled-system/recipes");
1197
+ var import_css18 = require("@cerberus/styled-system/css");
1123
1198
  var import_patterns5 = require("@cerberus/styled-system/patterns");
1124
1199
 
1125
1200
  // src/components/ProgressBar.tsx
1126
- var import_css15 = require("@cerberus/styled-system/css");
1127
- var import_recipes12 = require("@cerberus/styled-system/recipes");
1128
- var import_jsx_runtime21 = require("react/jsx-runtime");
1201
+ var import_css17 = require("@cerberus/styled-system/css");
1202
+ var import_recipes14 = require("@cerberus/styled-system/recipes");
1203
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1129
1204
  function ProgressBar(props) {
1130
1205
  const { indeterminate, size, usage, now, label: label5, ...nativeProps } = props;
1131
- const styles = (0, import_recipes12.progressBar)({ size, usage });
1206
+ const styles = (0, import_recipes14.progressBar)({ size, usage });
1132
1207
  const nowClamped = Math.min(100, Math.max(0, now || 0));
1133
1208
  const width = {
1134
1209
  width: indeterminate ? "50%" : `${nowClamped}%`
1135
1210
  };
1136
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1211
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1137
1212
  "div",
1138
1213
  {
1139
1214
  ...nativeProps,
@@ -1141,9 +1216,9 @@ function ProgressBar(props) {
1141
1216
  "aria-valuemin": 0,
1142
1217
  "aria-valuemax": 100,
1143
1218
  "aria-valuenow": indeterminate ? 0 : nowClamped,
1144
- className: (0, import_css15.cx)(nativeProps.className, styles.root),
1219
+ className: (0, import_css17.cx)(nativeProps.className, styles.root),
1145
1220
  role: "progressbar",
1146
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1221
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1147
1222
  "div",
1148
1223
  {
1149
1224
  ...indeterminate && { "data-indeterminate": true },
@@ -1157,7 +1232,7 @@ function ProgressBar(props) {
1157
1232
  }
1158
1233
 
1159
1234
  // src/components/FileStatus.tsx
1160
- var import_jsx_runtime22 = require("react/jsx-runtime");
1235
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1161
1236
  var processStatus = /* @__PURE__ */ ((processStatus2) => {
1162
1237
  processStatus2["TODO"] = "todo";
1163
1238
  processStatus2["PROCESSING"] = "processing";
@@ -1167,24 +1242,24 @@ var processStatus = /* @__PURE__ */ ((processStatus2) => {
1167
1242
  })(processStatus || {});
1168
1243
  function FileStatus(props) {
1169
1244
  const { file, now, status, onClick, ...nativeProps } = props;
1170
- const actionLabel = (0, import_react12.useMemo)(() => getStatusActionLabel(status), [status]);
1171
- const palette = (0, import_react12.useMemo)(() => getPalette(status), [status]);
1172
- const modalIconPalette = (0, import_react12.useMemo)(() => getModalIconPalette(status), [status]);
1173
- const styles = (0, import_react12.useMemo)(() => {
1245
+ const actionLabel = (0, import_react14.useMemo)(() => getStatusActionLabel(status), [status]);
1246
+ const palette = (0, import_react14.useMemo)(() => getPalette(status), [status]);
1247
+ const modalIconPalette = (0, import_react14.useMemo)(() => getModalIconPalette(status), [status]);
1248
+ const styles = (0, import_react14.useMemo)(() => {
1174
1249
  switch (status) {
1175
1250
  case "todo" /* TODO */:
1176
- return (0, import_recipes13.fileStatus)({ status: "todo" });
1251
+ return (0, import_recipes15.fileStatus)({ status: "todo" });
1177
1252
  case "processing" /* PROCESSING */:
1178
- return (0, import_recipes13.fileStatus)({ status: "processing" });
1253
+ return (0, import_recipes15.fileStatus)({ status: "processing" });
1179
1254
  case "done" /* DONE */:
1180
- return (0, import_recipes13.fileStatus)({ status: "done" });
1255
+ return (0, import_recipes15.fileStatus)({ status: "done" });
1181
1256
  case "error" /* ERROR */:
1182
- return (0, import_recipes13.fileStatus)({ status: "error" });
1257
+ return (0, import_recipes15.fileStatus)({ status: "error" });
1183
1258
  default:
1184
- return (0, import_recipes13.fileStatus)();
1259
+ return (0, import_recipes15.fileStatus)();
1185
1260
  }
1186
1261
  }, [status]);
1187
- const handleClick = (0, import_react12.useCallback)(
1262
+ const handleClick = (0, import_react14.useCallback)(
1188
1263
  (e) => {
1189
1264
  const actionStatus = getStatusActionLabel(
1190
1265
  status
@@ -1193,22 +1268,22 @@ function FileStatus(props) {
1193
1268
  },
1194
1269
  [onClick]
1195
1270
  );
1196
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1271
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1197
1272
  "div",
1198
1273
  {
1199
1274
  ...nativeProps,
1200
- className: (0, import_css16.cx)(nativeProps.className, styles.root, (0, import_patterns5.hstack)()),
1275
+ className: (0, import_css18.cx)(nativeProps.className, styles.root, (0, import_patterns5.hstack)()),
1201
1276
  children: [
1202
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1277
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1203
1278
  Avatar,
1204
1279
  {
1205
1280
  ariaLabel: "",
1206
1281
  gradient: modalIconPalette,
1207
- icon: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(MatchFileStatusIcon, { size: 24, status }),
1282
+ icon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(MatchFileStatusIcon, { size: 24, status }),
1208
1283
  src: ""
1209
1284
  }
1210
1285
  ),
1211
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1286
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1212
1287
  "div",
1213
1288
  {
1214
1289
  className: (0, import_patterns5.vstack)({
@@ -1217,17 +1292,17 @@ function FileStatus(props) {
1217
1292
  w: "full"
1218
1293
  }),
1219
1294
  children: [
1220
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1295
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1221
1296
  "small",
1222
1297
  {
1223
- className: (0, import_css16.css)({
1298
+ className: (0, import_css18.css)({
1224
1299
  color: "page.text.initial",
1225
1300
  textStyle: "label-sm"
1226
1301
  }),
1227
1302
  children: file
1228
1303
  }
1229
1304
  ),
1230
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1305
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1231
1306
  ProgressBar,
1232
1307
  {
1233
1308
  id: props.id,
@@ -1236,27 +1311,27 @@ function FileStatus(props) {
1236
1311
  size: "sm"
1237
1312
  }
1238
1313
  ),
1239
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Field, { invalid: modalIconPalette === "hades-dark", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1314
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Field, { invalid: modalIconPalette === "hades-dark", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1240
1315
  FieldMessage,
1241
1316
  {
1242
- className: (0, import_css16.css)({
1317
+ className: (0, import_css18.css)({
1243
1318
  color: "page.text.100"
1244
1319
  }),
1245
1320
  id: `help:${file}`,
1246
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(MatchFileStatusText, { status, now })
1321
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(MatchFileStatusText, { status, now })
1247
1322
  }
1248
1323
  ) })
1249
1324
  ]
1250
1325
  }
1251
1326
  ),
1252
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1327
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1253
1328
  IconButton,
1254
1329
  {
1255
1330
  ariaLabel: actionLabel,
1256
1331
  onClick: handleClick,
1257
1332
  palette,
1258
1333
  size: "sm",
1259
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(MatchStatusAction, { status })
1334
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(MatchStatusAction, { status })
1260
1335
  }
1261
1336
  )
1262
1337
  ]
@@ -1273,13 +1348,13 @@ function MatchFileStatusIcon(props) {
1273
1348
  } = icons;
1274
1349
  switch (props.status) {
1275
1350
  case "todo" /* TODO */:
1276
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(TodoIcon, { size: props.size });
1351
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TodoIcon, { size: props.size });
1277
1352
  case "processing" /* PROCESSING */:
1278
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(FileUploaderIcon, { size: props.size });
1353
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(FileUploaderIcon, { size: props.size });
1279
1354
  case "done" /* DONE */:
1280
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DoneIcon, { size: props.size });
1355
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DoneIcon, { size: props.size });
1281
1356
  case "error" /* ERROR */:
1282
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(InvalidIcon, { size: props.size });
1357
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(InvalidIcon, { size: props.size });
1283
1358
  default:
1284
1359
  throw new Error("Unknown status");
1285
1360
  }
@@ -1304,11 +1379,11 @@ function MatchStatusAction(props) {
1304
1379
  switch (props.status) {
1305
1380
  case "todo" /* TODO */:
1306
1381
  case "processing" /* PROCESSING */:
1307
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CloseIcon, {});
1382
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CloseIcon, {});
1308
1383
  case "error" /* ERROR */:
1309
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(RedoIcon, {});
1384
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(RedoIcon, {});
1310
1385
  case "done" /* DONE */:
1311
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(TrashIcon, {});
1386
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TrashIcon, {});
1312
1387
  default:
1313
1388
  throw new Error("Invalid status");
1314
1389
  }
@@ -1354,40 +1429,40 @@ function getModalIconPalette(status) {
1354
1429
  }
1355
1430
 
1356
1431
  // src/components/FileUploader.tsx
1357
- var import_css17 = require("@cerberus/styled-system/css");
1432
+ var import_css19 = require("@cerberus/styled-system/css");
1358
1433
  var import_patterns6 = require("@cerberus/styled-system/patterns");
1359
- var import_recipes14 = require("@cerberus/styled-system/recipes");
1360
- var import_jsx_runtime23 = require("react/jsx-runtime");
1434
+ var import_recipes16 = require("@cerberus/styled-system/recipes");
1435
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1361
1436
  function FileUploader(props) {
1362
1437
  var _a;
1363
1438
  const { icons } = useCerberusContext();
1364
- const styles = (0, import_recipes14.fileUploader)();
1439
+ const styles = (0, import_recipes16.fileUploader)();
1365
1440
  const { waitingFileUploader: Icon } = icons;
1366
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1441
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
1367
1442
  "div",
1368
1443
  {
1369
1444
  ...props.disabled ? { "aria-disabled": true } : {},
1370
- className: (0, import_css17.cx)(
1445
+ className: (0, import_css19.cx)(
1371
1446
  (0, import_patterns6.vstack)({
1372
1447
  justify: "center"
1373
1448
  }),
1374
1449
  styles.container
1375
1450
  ),
1376
1451
  children: [
1377
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: styles.icon, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1452
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: styles.icon, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1378
1453
  Avatar,
1379
1454
  {
1380
1455
  gradient: "charon-light",
1381
1456
  ariaLabel: "",
1382
- icon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Icon, {}),
1457
+ icon: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icon, {}),
1383
1458
  size: "md",
1384
1459
  src: ""
1385
1460
  }
1386
1461
  ) }),
1387
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1462
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
1388
1463
  "label",
1389
1464
  {
1390
- className: (0, import_css17.cx)(
1465
+ className: (0, import_css19.cx)(
1391
1466
  (0, import_patterns6.vstack)({
1392
1467
  justify: "center"
1393
1468
  }),
@@ -1395,16 +1470,16 @@ function FileUploader(props) {
1395
1470
  ),
1396
1471
  htmlFor: props.name,
1397
1472
  children: [
1398
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Show, { when: Boolean(props.heading), children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: styles.heading, children: props.heading }) }),
1473
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Show, { when: Boolean(props.heading), children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { className: styles.heading, children: props.heading }) }),
1399
1474
  "Import ",
1400
1475
  (_a = props.accept) == null ? void 0 : _a.replace(",", ", "),
1401
1476
  " files",
1402
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: styles.description, children: "Click to select files" }),
1403
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1477
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { className: styles.description, children: "Click to select files" }),
1478
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1404
1479
  "input",
1405
1480
  {
1406
1481
  ...props,
1407
- className: (0, import_css17.cx)(props.className, styles.input),
1482
+ className: (0, import_css19.cx)(props.className, styles.input),
1408
1483
  type: "file"
1409
1484
  }
1410
1485
  )
@@ -1417,19 +1492,19 @@ function FileUploader(props) {
1417
1492
  }
1418
1493
 
1419
1494
  // src/components/Input.tsx
1420
- var import_recipes15 = require("@cerberus/styled-system/recipes");
1421
- var import_css18 = require("@cerberus/styled-system/css");
1422
- var import_jsx_runtime24 = require("react/jsx-runtime");
1495
+ var import_recipes17 = require("@cerberus/styled-system/recipes");
1496
+ var import_css20 = require("@cerberus/styled-system/css");
1497
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1423
1498
  function Input(props) {
1424
1499
  const { describedBy, size, startIcon, endIcon, ...nativeProps } = props;
1425
- const inputStyles = (0, import_recipes15.input)({ size });
1500
+ const inputStyles = (0, import_recipes17.input)({ size });
1426
1501
  const { invalid, ...fieldStates } = useFieldContext();
1427
1502
  const hasEndIcon = Boolean(endIcon);
1428
1503
  const { icons } = useCerberusContext();
1429
1504
  const { invalid: InvalidIcon } = icons;
1430
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: inputStyles.root, children: [
1431
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Show, { when: Boolean(startIcon), children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: inputStyles.startIcon, children: startIcon }) }),
1432
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1505
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: inputStyles.root, children: [
1506
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Show, { when: Boolean(startIcon), children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: inputStyles.startIcon, children: startIcon }) }),
1507
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1433
1508
  "input",
1434
1509
  {
1435
1510
  ...nativeProps,
@@ -1437,31 +1512,31 @@ function Input(props) {
1437
1512
  ...describedBy && { "aria-describedby": describedBy },
1438
1513
  ...invalid && { "aria-invalid": true },
1439
1514
  "data-start-icon": Boolean(startIcon),
1440
- className: (0, import_css18.cx)("peer", nativeProps.className, inputStyles.input)
1515
+ className: (0, import_css20.cx)("peer", nativeProps.className, inputStyles.input)
1441
1516
  }
1442
1517
  ),
1443
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Show, { when: invalid, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(InvalidIcon, { className: inputStyles.icon }) }),
1444
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Show, { when: hasEndIcon && !invalid, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: inputStyles.icon, children: endIcon }) })
1518
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Show, { when: invalid, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(InvalidIcon, { className: inputStyles.icon }) }),
1519
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Show, { when: hasEndIcon && !invalid, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: inputStyles.icon, children: endIcon }) })
1445
1520
  ] });
1446
1521
  }
1447
1522
 
1448
1523
  // src/components/Label.tsx
1449
- var import_recipes16 = require("@cerberus/styled-system/recipes");
1450
- var import_css19 = require("@cerberus/styled-system/css");
1524
+ var import_recipes18 = require("@cerberus/styled-system/recipes");
1525
+ var import_css21 = require("@cerberus/styled-system/css");
1451
1526
  var import_patterns7 = require("@cerberus/styled-system/patterns");
1452
- var import_jsx_runtime25 = require("react/jsx-runtime");
1527
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1453
1528
  function Label(props) {
1454
1529
  const { hidden, size, ...nativeProps } = props;
1455
1530
  const { required, disabled } = useFieldContext();
1456
1531
  const usage = hidden ? "hidden" : "visible";
1457
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
1532
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
1458
1533
  "label",
1459
1534
  {
1460
1535
  ...nativeProps,
1461
1536
  ...disabled && { "data-disabled": true },
1462
- className: (0, import_css19.cx)(
1537
+ className: (0, import_css21.cx)(
1463
1538
  nativeProps.className,
1464
- (0, import_recipes16.label)({ size, usage }),
1539
+ (0, import_recipes18.label)({ size, usage }),
1465
1540
  (0, import_patterns7.hstack)({
1466
1541
  justify: "space-between",
1467
1542
  w: "full"
@@ -1469,10 +1544,10 @@ function Label(props) {
1469
1544
  ),
1470
1545
  children: [
1471
1546
  props.children,
1472
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Show, { when: required, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1547
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Show, { when: required, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1473
1548
  "span",
1474
1549
  {
1475
- className: (0, import_css19.css)({
1550
+ className: (0, import_css21.css)({
1476
1551
  color: "page.text.100",
1477
1552
  fontSize: "inherit"
1478
1553
  }),
@@ -1485,35 +1560,35 @@ function Label(props) {
1485
1560
  }
1486
1561
 
1487
1562
  // src/components/Legend.tsx
1488
- var import_css20 = require("@cerberus/styled-system/css");
1489
- var import_recipes17 = require("@cerberus/styled-system/recipes");
1563
+ var import_css22 = require("@cerberus/styled-system/css");
1564
+ var import_recipes19 = require("@cerberus/styled-system/recipes");
1490
1565
  var import_patterns8 = require("@cerberus/styled-system/patterns");
1491
- var import_jsx_runtime26 = require("react/jsx-runtime");
1566
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1492
1567
  function Legend(props) {
1493
1568
  const { size, ...nativeProps } = props;
1494
1569
  const { invalid, ...formState } = useFieldContext();
1495
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
1570
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
1496
1571
  "legend",
1497
1572
  {
1498
1573
  ...nativeProps,
1499
1574
  ...formState,
1500
1575
  ...invalid && { "aria-invalid": true },
1501
- className: (0, import_css20.cx)(
1576
+ className: (0, import_css22.cx)(
1502
1577
  nativeProps.className,
1503
1578
  (0, import_patterns8.hstack)({
1504
1579
  justify: "space-between",
1505
1580
  w: "full"
1506
1581
  }),
1507
- (0, import_recipes17.label)({
1582
+ (0, import_recipes19.label)({
1508
1583
  size
1509
1584
  })
1510
1585
  ),
1511
1586
  children: [
1512
1587
  nativeProps.children,
1513
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Show, { when: formState.required, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1588
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Show, { when: formState.required, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1514
1589
  "span",
1515
1590
  {
1516
- className: (0, import_css20.css)({
1591
+ className: (0, import_css22.css)({
1517
1592
  color: "page.text.100",
1518
1593
  fontSize: "inherit"
1519
1594
  }),
@@ -1526,74 +1601,74 @@ function Legend(props) {
1526
1601
  }
1527
1602
 
1528
1603
  // src/components/Menu.tsx
1529
- var import_react13 = require("@ark-ui/react");
1530
- var import_recipes18 = require("@cerberus/styled-system/recipes");
1531
- var import_css21 = require("@cerberus/styled-system/css");
1532
- var import_jsx_runtime27 = require("react/jsx-runtime");
1533
- var menuStyles = (0, import_recipes18.menu)();
1534
- var Menu = import_react13.Menu.Root;
1604
+ var import_react15 = require("@ark-ui/react");
1605
+ var import_recipes20 = require("@cerberus/styled-system/recipes");
1606
+ var import_css23 = require("@cerberus/styled-system/css");
1607
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1608
+ var menuStyles = (0, import_recipes20.menu)();
1609
+ var Menu = import_react15.Menu.Root;
1535
1610
  function MenuTrigger(props) {
1536
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react13.Menu.Trigger, { ...props, asChild: true });
1611
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react15.Menu.Trigger, { ...props, asChild: true });
1537
1612
  }
1538
1613
  function MenuContent(props) {
1539
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react13.Menu.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1540
- import_react13.Menu.Content,
1614
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react15.Menu.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1615
+ import_react15.Menu.Content,
1541
1616
  {
1542
1617
  ...props,
1543
- className: (0, import_css21.cx)(props.className, menuStyles.content)
1618
+ className: (0, import_css23.cx)(props.className, menuStyles.content)
1544
1619
  }
1545
1620
  ) });
1546
1621
  }
1547
1622
  function MenuItem(props) {
1548
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react13.Menu.Item, { ...props, className: (0, import_css21.cx)(props.className, menuStyles.item) });
1623
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react15.Menu.Item, { ...props, className: (0, import_css23.cx)(props.className, menuStyles.item) });
1549
1624
  }
1550
- var MenuItemGroup = import_react13.Menu.ItemGroup;
1625
+ var MenuItemGroup = import_react15.Menu.ItemGroup;
1551
1626
  function MenuGroupLabel(props) {
1552
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1553
- import_react13.Menu.ItemGroupLabel,
1627
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1628
+ import_react15.Menu.ItemGroupLabel,
1554
1629
  {
1555
1630
  ...props,
1556
- className: (0, import_css21.cx)(props.className, menuStyles.itemGroupLabel)
1631
+ className: (0, import_css23.cx)(props.className, menuStyles.itemGroupLabel)
1557
1632
  }
1558
1633
  );
1559
1634
  }
1560
1635
  function MenuSeparator(props) {
1561
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1562
- import_react13.Menu.Separator,
1636
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1637
+ import_react15.Menu.Separator,
1563
1638
  {
1564
1639
  ...props,
1565
- className: (0, import_css21.cx)(props.className, menuStyles.separator)
1640
+ className: (0, import_css23.cx)(props.className, menuStyles.separator)
1566
1641
  }
1567
1642
  );
1568
1643
  }
1569
1644
 
1570
1645
  // src/components/Modal.tsx
1571
- var import_css22 = require("@cerberus/styled-system/css");
1572
- var import_recipes19 = require("@cerberus/styled-system/recipes");
1573
- var import_react14 = require("react");
1574
- var import_jsx_runtime28 = require("react/jsx-runtime");
1646
+ var import_css24 = require("@cerberus/styled-system/css");
1647
+ var import_recipes21 = require("@cerberus/styled-system/recipes");
1648
+ var import_react16 = require("react");
1649
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1575
1650
  function ModalEl(props, ref) {
1576
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1651
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1577
1652
  "dialog",
1578
1653
  {
1579
1654
  ...props,
1580
- className: (0, import_css22.cx)(props.className, (0, import_recipes19.modal)().dialog),
1655
+ className: (0, import_css24.cx)(props.className, (0, import_recipes21.modal)().dialog),
1581
1656
  ref
1582
1657
  }
1583
1658
  );
1584
1659
  }
1585
- var Modal = (0, import_react14.forwardRef)(ModalEl);
1660
+ var Modal = (0, import_react16.forwardRef)(ModalEl);
1586
1661
 
1587
1662
  // src/components/ModalHeader.tsx
1588
- var import_css23 = require("@cerberus/styled-system/css");
1663
+ var import_css25 = require("@cerberus/styled-system/css");
1589
1664
  var import_patterns9 = require("@cerberus/styled-system/patterns");
1590
- var import_jsx_runtime29 = require("react/jsx-runtime");
1665
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1591
1666
  function ModalHeader(props) {
1592
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1667
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1593
1668
  "div",
1594
1669
  {
1595
1670
  ...props,
1596
- className: (0, import_css23.cx)(
1671
+ className: (0, import_css25.cx)(
1597
1672
  props.className,
1598
1673
  (0, import_patterns9.vstack)({
1599
1674
  alignItems: "flex-start",
@@ -1606,25 +1681,25 @@ function ModalHeader(props) {
1606
1681
  }
1607
1682
 
1608
1683
  // src/components/ModalHeading.tsx
1609
- var import_css24 = require("@cerberus/styled-system/css");
1610
- var import_recipes20 = require("@cerberus/styled-system/recipes");
1611
- var import_jsx_runtime30 = require("react/jsx-runtime");
1684
+ var import_css26 = require("@cerberus/styled-system/css");
1685
+ var import_recipes22 = require("@cerberus/styled-system/recipes");
1686
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1612
1687
  function ModalHeading(props) {
1613
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { ...props, className: (0, import_css24.cx)(props.className, (0, import_recipes20.modal)().heading) });
1688
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { ...props, className: (0, import_css26.cx)(props.className, (0, import_recipes22.modal)().heading) });
1614
1689
  }
1615
1690
 
1616
1691
  // src/components/ModalDescription.tsx
1617
- var import_css25 = require("@cerberus/styled-system/css");
1618
- var import_recipes21 = require("@cerberus/styled-system/recipes");
1619
- var import_jsx_runtime31 = require("react/jsx-runtime");
1692
+ var import_css27 = require("@cerberus/styled-system/css");
1693
+ var import_recipes23 = require("@cerberus/styled-system/recipes");
1694
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1620
1695
  function ModalDescription(props) {
1621
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { ...props, className: (0, import_css25.cx)(props.className, (0, import_recipes21.modal)().description) });
1696
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { ...props, className: (0, import_css27.cx)(props.className, (0, import_recipes23.modal)().description) });
1622
1697
  }
1623
1698
 
1624
1699
  // src/components/NavMenuTrigger.tsx
1625
- var import_react16 = require("react");
1626
- var import_css27 = require("@cerberus/styled-system/css");
1627
- var import_recipes22 = require("@cerberus/styled-system/recipes");
1700
+ var import_react18 = require("react");
1701
+ var import_css29 = require("@cerberus/styled-system/css");
1702
+ var import_recipes24 = require("@cerberus/styled-system/recipes");
1628
1703
 
1629
1704
  // src/aria-helpers/nav-menu.aria.ts
1630
1705
  function createNavTriggerProps(values) {
@@ -1635,18 +1710,18 @@ function createNavTriggerProps(values) {
1635
1710
  }
1636
1711
 
1637
1712
  // src/context/navMenu.tsx
1638
- var import_css26 = require("@cerberus/styled-system/css");
1639
- var import_react15 = require("react");
1640
- var import_jsx_runtime32 = require("react/jsx-runtime");
1641
- var NavMenuContext = (0, import_react15.createContext)(null);
1713
+ var import_css28 = require("@cerberus/styled-system/css");
1714
+ var import_react17 = require("react");
1715
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1716
+ var NavMenuContext = (0, import_react17.createContext)(null);
1642
1717
  function NavMenu(props) {
1643
- const triggerRef = (0, import_react15.useRef)(null);
1644
- const menuRef = (0, import_react15.useRef)(null);
1645
- const [expanded, setExpanded] = (0, import_react15.useState)(false);
1646
- const handleToggle = (0, import_react15.useCallback)(() => {
1718
+ const triggerRef = (0, import_react17.useRef)(null);
1719
+ const menuRef = (0, import_react17.useRef)(null);
1720
+ const [expanded, setExpanded] = (0, import_react17.useState)(false);
1721
+ const handleToggle = (0, import_react17.useCallback)(() => {
1647
1722
  setExpanded((prev) => !prev);
1648
1723
  }, []);
1649
- const value = (0, import_react15.useMemo)(
1724
+ const value = (0, import_react17.useMemo)(
1650
1725
  () => ({
1651
1726
  triggerRef,
1652
1727
  menuRef,
@@ -1655,10 +1730,10 @@ function NavMenu(props) {
1655
1730
  }),
1656
1731
  [expanded, handleToggle]
1657
1732
  );
1658
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(NavMenuContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1733
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(NavMenuContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1659
1734
  "nav",
1660
1735
  {
1661
- className: (0, import_css26.css)({
1736
+ className: (0, import_css28.css)({
1662
1737
  position: "relative"
1663
1738
  }),
1664
1739
  children: props.children
@@ -1666,7 +1741,7 @@ function NavMenu(props) {
1666
1741
  ) });
1667
1742
  }
1668
1743
  function useNavMenuContext() {
1669
- const context = (0, import_react15.useContext)(NavMenuContext);
1744
+ const context = (0, import_react17.useContext)(NavMenuContext);
1670
1745
  if (!context) {
1671
1746
  throw new Error("useNavMenuContext must be used within a NavMenu.");
1672
1747
  }
@@ -1674,7 +1749,7 @@ function useNavMenuContext() {
1674
1749
  }
1675
1750
 
1676
1751
  // src/components/NavMenuTrigger.tsx
1677
- var import_jsx_runtime33 = require("react/jsx-runtime");
1752
+ var import_jsx_runtime35 = require("react/jsx-runtime");
1678
1753
  function NavMenuTrigger(props) {
1679
1754
  const {
1680
1755
  as,
@@ -1693,25 +1768,25 @@ function NavMenuTrigger(props) {
1693
1768
  });
1694
1769
  const hasAs = Boolean(as);
1695
1770
  const AsSub = as;
1696
- const handleClick = (0, import_react16.useCallback)(
1771
+ const handleClick = (0, import_react18.useCallback)(
1697
1772
  (e) => {
1698
1773
  if (onClick) return onClick(e);
1699
1774
  onToggle();
1700
1775
  },
1701
1776
  [onClick, onToggle]
1702
1777
  );
1703
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1778
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1704
1779
  Show,
1705
1780
  {
1706
1781
  when: hasAs,
1707
- fallback: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1782
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1708
1783
  "button",
1709
1784
  {
1710
1785
  ...nativeProps,
1711
1786
  ...ariaProps,
1712
- className: (0, import_css27.cx)(
1787
+ className: (0, import_css29.cx)(
1713
1788
  nativeProps.className,
1714
- (0, import_recipes22.button)({
1789
+ (0, import_recipes24.button)({
1715
1790
  palette,
1716
1791
  usage,
1717
1792
  shape
@@ -1722,7 +1797,7 @@ function NavMenuTrigger(props) {
1722
1797
  children: props.children
1723
1798
  }
1724
1799
  ),
1725
- children: hasAs && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1800
+ children: hasAs && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1726
1801
  AsSub,
1727
1802
  {
1728
1803
  ...nativeProps,
@@ -1736,10 +1811,10 @@ function NavMenuTrigger(props) {
1736
1811
  }
1737
1812
 
1738
1813
  // src/components/NavMenuList.tsx
1739
- var import_react17 = require("react");
1740
- var import_css28 = require("@cerberus/styled-system/css");
1814
+ var import_react19 = require("react");
1815
+ var import_css30 = require("@cerberus/styled-system/css");
1741
1816
  var import_patterns10 = require("@cerberus/styled-system/patterns");
1742
- var import_jsx_runtime34 = require("react/jsx-runtime");
1817
+ var import_jsx_runtime36 = require("react/jsx-runtime");
1743
1818
  function getPosition(position) {
1744
1819
  const defaultPositions = {
1745
1820
  left: "auto",
@@ -1793,16 +1868,16 @@ var navListStyles = (0, import_patterns10.vstack)({
1793
1868
  function NavMenuList(props) {
1794
1869
  const { position, ...nativeProps } = props;
1795
1870
  const { menuRef, expanded } = useNavMenuContext();
1796
- const locationStyles = (0, import_react17.useMemo)(
1871
+ const locationStyles = (0, import_react19.useMemo)(
1797
1872
  () => getPosition(position ?? "bottom"),
1798
1873
  [position]
1799
1874
  );
1800
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Show, { when: expanded, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1875
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Show, { when: expanded, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1801
1876
  "ul",
1802
1877
  {
1803
1878
  ...nativeProps,
1804
1879
  "data-position": position ?? "bottom",
1805
- className: (0, import_css28.cx)(nativeProps.className, navListStyles),
1880
+ className: (0, import_css30.cx)(nativeProps.className, navListStyles),
1806
1881
  ref: menuRef,
1807
1882
  style: locationStyles
1808
1883
  }
@@ -1810,29 +1885,29 @@ function NavMenuList(props) {
1810
1885
  }
1811
1886
 
1812
1887
  // src/components/NavMenuLink.tsx
1813
- var import_css29 = require("@cerberus/styled-system/css");
1814
- var import_jsx_runtime35 = require("react/jsx-runtime");
1888
+ var import_css31 = require("@cerberus/styled-system/css");
1889
+ var import_jsx_runtime37 = require("react/jsx-runtime");
1815
1890
  function NavMenuLink(props) {
1816
1891
  const { as, ...nativeProps } = props;
1817
1892
  const hasAs = Boolean(as);
1818
1893
  const AsSub = as;
1819
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1894
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1820
1895
  "li",
1821
1896
  {
1822
- className: (0, import_css29.css)({
1897
+ className: (0, import_css31.css)({
1823
1898
  w: "full"
1824
1899
  }),
1825
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1900
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1826
1901
  Show,
1827
1902
  {
1828
1903
  when: hasAs,
1829
- fallback: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1904
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1830
1905
  "a",
1831
1906
  {
1832
1907
  ...nativeProps,
1833
- className: (0, import_css29.cx)(
1908
+ className: (0, import_css31.cx)(
1834
1909
  nativeProps.className,
1835
- (0, import_css29.css)({
1910
+ (0, import_css31.css)({
1836
1911
  color: "action.navigation.initial",
1837
1912
  textStyle: "link",
1838
1913
  _hover: {
@@ -1842,7 +1917,7 @@ function NavMenuLink(props) {
1842
1917
  )
1843
1918
  }
1844
1919
  ),
1845
- children: hasAs && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(AsSub, { ...nativeProps })
1920
+ children: hasAs && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(AsSub, { ...nativeProps })
1846
1921
  }
1847
1922
  )
1848
1923
  }
@@ -1850,10 +1925,10 @@ function NavMenuLink(props) {
1850
1925
  }
1851
1926
 
1852
1927
  // src/components/Notification.tsx
1853
- var import_css30 = require("@cerberus/styled-system/css");
1928
+ var import_css32 = require("@cerberus/styled-system/css");
1854
1929
  var import_patterns11 = require("@cerberus/styled-system/patterns");
1855
- var import_recipes23 = require("@cerberus/styled-system/recipes");
1856
- var import_react18 = require("react");
1930
+ var import_recipes25 = require("@cerberus/styled-system/recipes");
1931
+ var import_react20 = require("react");
1857
1932
 
1858
1933
  // src/aria-helpers/trap-focus.aria.ts
1859
1934
  function trapFocus(modalRef) {
@@ -1882,27 +1957,27 @@ function trapFocus(modalRef) {
1882
1957
  }
1883
1958
 
1884
1959
  // src/components/Notification.tsx
1885
- var import_jsx_runtime36 = require("react/jsx-runtime");
1960
+ var import_jsx_runtime38 = require("react/jsx-runtime");
1886
1961
  function MatchNotificationIcon(props) {
1887
1962
  const { icons } = useCerberusContext();
1888
1963
  const palette = props.palette || "info";
1889
1964
  const key = `${palette}Notification`;
1890
1965
  const Icon = icons[key];
1891
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Icon, {});
1966
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Icon, {});
1892
1967
  }
1893
1968
  function Notification(props) {
1894
1969
  const { children, palette, onClose, ...nativeProps } = props;
1895
- const ref = (0, import_react18.useRef)(null);
1970
+ const ref = (0, import_react20.useRef)(null);
1896
1971
  const onKeyDown = trapFocus(ref);
1897
- const styles = (0, import_recipes23.notification)({ palette });
1972
+ const styles = (0, import_recipes25.notification)({ palette });
1898
1973
  const { icons } = useCerberusContext();
1899
1974
  const { close: CloseIcon } = icons;
1900
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
1975
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
1901
1976
  "dialog",
1902
1977
  {
1903
1978
  ...nativeProps,
1904
1979
  "data-placement": "left",
1905
- className: (0, import_css30.cx)(
1980
+ className: (0, import_css32.cx)(
1906
1981
  nativeProps.className,
1907
1982
  (0, import_patterns11.hstack)({
1908
1983
  position: "relative",
@@ -1913,8 +1988,8 @@ function Notification(props) {
1913
1988
  onKeyDown,
1914
1989
  ref,
1915
1990
  children: [
1916
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: styles.icon, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(MatchNotificationIcon, { palette }) }),
1917
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1991
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: styles.icon, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(MatchNotificationIcon, { palette }) }),
1992
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1918
1993
  "div",
1919
1994
  {
1920
1995
  className: (0, import_patterns11.vstack)({
@@ -1925,14 +2000,14 @@ function Notification(props) {
1925
2000
  children
1926
2001
  }
1927
2002
  ),
1928
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2003
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1929
2004
  "button",
1930
2005
  {
1931
2006
  "aria-label": "Close",
1932
2007
  className: styles.close,
1933
2008
  onClick: onClose,
1934
2009
  value: props.id,
1935
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(CloseIcon, {})
2010
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(CloseIcon, {})
1936
2011
  }
1937
2012
  )
1938
2013
  ]
@@ -1941,44 +2016,44 @@ function Notification(props) {
1941
2016
  }
1942
2017
 
1943
2018
  // src/components/NotificationHeading.tsx
1944
- var import_css31 = require("@cerberus/styled-system/css");
1945
- var import_recipes24 = require("@cerberus/styled-system/recipes");
1946
- var import_jsx_runtime37 = require("react/jsx-runtime");
2019
+ var import_css33 = require("@cerberus/styled-system/css");
2020
+ var import_recipes26 = require("@cerberus/styled-system/recipes");
2021
+ var import_jsx_runtime39 = require("react/jsx-runtime");
1947
2022
  function NotificationHeading(props) {
1948
2023
  const { palette, ...nativeProps } = props;
1949
- const styles = (0, import_recipes24.notification)({ palette });
1950
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: (0, import_css31.cx)(nativeProps.className, styles.heading), ...nativeProps });
2024
+ const styles = (0, import_recipes26.notification)({ palette });
2025
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { className: (0, import_css33.cx)(nativeProps.className, styles.heading), ...nativeProps });
1951
2026
  }
1952
2027
 
1953
2028
  // src/components/NotificationDescription.tsx
1954
- var import_css32 = require("@cerberus/styled-system/css");
1955
- var import_recipes25 = require("@cerberus/styled-system/recipes");
1956
- var import_jsx_runtime38 = require("react/jsx-runtime");
2029
+ var import_css34 = require("@cerberus/styled-system/css");
2030
+ var import_recipes27 = require("@cerberus/styled-system/recipes");
2031
+ var import_jsx_runtime40 = require("react/jsx-runtime");
1957
2032
  function NotificationDescription(props) {
1958
2033
  const { palette, ...nativeProps } = props;
1959
- const styles = (0, import_recipes25.notification)({ palette });
1960
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2034
+ const styles = (0, import_recipes27.notification)({ palette });
2035
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
1961
2036
  "p",
1962
2037
  {
1963
- className: (0, import_css32.cx)(nativeProps.className, styles.description),
2038
+ className: (0, import_css34.cx)(nativeProps.className, styles.description),
1964
2039
  ...nativeProps
1965
2040
  }
1966
2041
  );
1967
2042
  }
1968
2043
 
1969
2044
  // src/components/Radio.tsx
1970
- var import_css33 = require("@cerberus/styled-system/css");
2045
+ var import_css35 = require("@cerberus/styled-system/css");
1971
2046
  var import_patterns12 = require("@cerberus/styled-system/patterns");
1972
- var import_recipes26 = require("@cerberus/styled-system/recipes");
1973
- var import_jsx_runtime39 = require("react/jsx-runtime");
2047
+ var import_recipes28 = require("@cerberus/styled-system/recipes");
2048
+ var import_jsx_runtime41 = require("react/jsx-runtime");
1974
2049
  function Radio(props) {
1975
2050
  const { children, size, ...nativeProps } = props;
1976
2051
  const { invalid, ...state } = useFieldContext();
1977
- const styles = (0, import_recipes26.radio)({ size });
1978
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
2052
+ const styles = (0, import_recipes28.radio)({ size });
2053
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
1979
2054
  "div",
1980
2055
  {
1981
- className: (0, import_css33.cx)(
2056
+ className: (0, import_css35.cx)(
1982
2057
  "group",
1983
2058
  (0, import_patterns12.hstack)({
1984
2059
  gap: "sm"
@@ -1987,13 +2062,13 @@ function Radio(props) {
1987
2062
  ),
1988
2063
  tabIndex: 0,
1989
2064
  children: [
1990
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2065
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
1991
2066
  "input",
1992
2067
  {
1993
2068
  ...nativeProps,
1994
2069
  ...state,
1995
2070
  ...invalid && { "aria-invalid": true },
1996
- className: (0, import_css33.cx)(nativeProps.className, styles.input),
2071
+ className: (0, import_css35.cx)(nativeProps.className, styles.input),
1997
2072
  tabIndex: -1,
1998
2073
  type: "radio"
1999
2074
  }
@@ -2005,20 +2080,20 @@ function Radio(props) {
2005
2080
  }
2006
2081
 
2007
2082
  // src/components/Select.tsx
2008
- var import_css34 = require("@cerberus/styled-system/css");
2083
+ var import_css36 = require("@cerberus/styled-system/css");
2009
2084
  var import_patterns13 = require("@cerberus/styled-system/patterns");
2010
- var import_recipes27 = require("@cerberus/styled-system/recipes");
2011
- var import_jsx_runtime40 = require("react/jsx-runtime");
2085
+ var import_recipes29 = require("@cerberus/styled-system/recipes");
2086
+ var import_jsx_runtime42 = require("react/jsx-runtime");
2012
2087
  function Select(props) {
2013
2088
  const { describedBy, size, ...nativeProps } = props;
2014
2089
  const { invalid, ...fieldStates } = useFieldContext();
2015
2090
  const { icons } = useCerberusContext();
2016
2091
  const { invalid: InvalidIcon, selectArrow: SelectArrow } = icons;
2017
- const styles = (0, import_recipes27.select)({
2092
+ const styles = (0, import_recipes29.select)({
2018
2093
  size
2019
2094
  });
2020
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: styles.root, children: [
2021
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2095
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: styles.root, children: [
2096
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2022
2097
  "select",
2023
2098
  {
2024
2099
  ...nativeProps,
@@ -2028,38 +2103,38 @@ function Select(props) {
2028
2103
  className: styles.input
2029
2104
  }
2030
2105
  ),
2031
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
2106
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
2032
2107
  "span",
2033
2108
  {
2034
- className: (0, import_css34.cx)(
2109
+ className: (0, import_css36.cx)(
2035
2110
  styles.iconStack,
2036
2111
  (0, import_patterns13.hstack)({
2037
2112
  gap: "2"
2038
2113
  })
2039
2114
  ),
2040
2115
  children: [
2041
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Show, { when: invalid, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2116
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Show, { when: invalid, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2042
2117
  "span",
2043
2118
  {
2044
2119
  ...invalid && { "data-invalid": true },
2045
2120
  className: styles.stateIcon,
2046
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(InvalidIcon, {})
2121
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(InvalidIcon, {})
2047
2122
  }
2048
2123
  ) }),
2049
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: styles.arrowIcon, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(SelectArrow, {}) })
2124
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: styles.arrowIcon, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectArrow, {}) })
2050
2125
  ]
2051
2126
  }
2052
2127
  )
2053
2128
  ] });
2054
2129
  }
2055
2130
  function Option(props) {
2056
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("option", { ...props });
2131
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("option", { ...props });
2057
2132
  }
2058
2133
 
2059
2134
  // src/components/Spinner.tsx
2060
- var import_jsx_runtime41 = require("react/jsx-runtime");
2135
+ var import_jsx_runtime43 = require("react/jsx-runtime");
2061
2136
  function Spinner(props) {
2062
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2137
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2063
2138
  "svg",
2064
2139
  {
2065
2140
  "aria-busy": "true",
@@ -2069,7 +2144,7 @@ function Spinner(props) {
2069
2144
  width: props.size,
2070
2145
  viewBox: "0 0 24 24",
2071
2146
  ...props,
2072
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
2147
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
2073
2148
  "g",
2074
2149
  {
2075
2150
  fill: "none",
@@ -2078,14 +2153,14 @@ function Spinner(props) {
2078
2153
  strokeLinejoin: "round",
2079
2154
  strokeWidth: 2,
2080
2155
  children: [
2081
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
2156
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
2082
2157
  "path",
2083
2158
  {
2084
2159
  strokeDasharray: 16,
2085
2160
  strokeDashoffset: 16,
2086
2161
  d: "M12 3c4.97 0 9 4.03 9 9",
2087
2162
  children: [
2088
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2163
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2089
2164
  "animate",
2090
2165
  {
2091
2166
  fill: "freeze",
@@ -2094,7 +2169,7 @@ function Spinner(props) {
2094
2169
  values: "16;0"
2095
2170
  }
2096
2171
  ),
2097
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2172
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2098
2173
  "animateTransform",
2099
2174
  {
2100
2175
  attributeName: "transform",
@@ -2107,14 +2182,14 @@ function Spinner(props) {
2107
2182
  ]
2108
2183
  }
2109
2184
  ),
2110
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2185
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2111
2186
  "path",
2112
2187
  {
2113
2188
  strokeDasharray: 64,
2114
2189
  strokeDashoffset: 64,
2115
2190
  strokeOpacity: 0.3,
2116
2191
  d: "M12 3c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9c-4.97 0 -9 -4.03 -9 -9c0 -4.97 4.03 -9 9 -9Z",
2117
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2192
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2118
2193
  "animate",
2119
2194
  {
2120
2195
  fill: "freeze",
@@ -2134,12 +2209,12 @@ function Spinner(props) {
2134
2209
 
2135
2210
  // src/components/Tabs.client.tsx
2136
2211
  var import_tabs2 = require("@ark-ui/react/tabs");
2137
- var import_css35 = require("@cerberus/styled-system/css");
2212
+ var import_css37 = require("@cerberus/styled-system/css");
2138
2213
 
2139
2214
  // src/context/tabs.tsx
2140
2215
  var import_tabs = require("@ark-ui/react/tabs");
2141
- var import_recipes28 = require("@cerberus/styled-system/recipes");
2142
- var import_react19 = require("react");
2216
+ var import_recipes30 = require("@cerberus/styled-system/recipes");
2217
+ var import_react21 = require("react");
2143
2218
 
2144
2219
  // src/utils/localStorage.ts
2145
2220
  function getLocalStorage(key, defaultValue) {
@@ -2155,19 +2230,19 @@ function setLocalStorage(key, value) {
2155
2230
  }
2156
2231
 
2157
2232
  // src/context/tabs.tsx
2158
- var import_jsx_runtime42 = require("react/jsx-runtime");
2159
- var TabsContext = (0, import_react19.createContext)(null);
2233
+ var import_jsx_runtime44 = require("react/jsx-runtime");
2234
+ var TabsContext = (0, import_react21.createContext)(null);
2160
2235
  function Tabs(props) {
2161
2236
  const { cache, defaultValue, palette, uuid, ...arkProps } = props;
2162
- const [activeTab, setActiveTab] = (0, import_react19.useState)(
2237
+ const [activeTab, setActiveTab] = (0, import_react21.useState)(
2163
2238
  () => cache ? "" : defaultValue
2164
2239
  );
2165
- const styles = (0, import_recipes28.tabs)({ palette });
2166
- const cacheKey = (0, import_react19.useMemo)(
2240
+ const styles = (0, import_recipes30.tabs)({ palette });
2241
+ const cacheKey = (0, import_react21.useMemo)(
2167
2242
  () => uuid ? `cerberus-tabs-${uuid}` : "cerberus-tabs",
2168
2243
  [uuid]
2169
2244
  );
2170
- const handleValueChange = (0, import_react19.useCallback)(
2245
+ const handleValueChange = (0, import_react21.useCallback)(
2171
2246
  (details) => {
2172
2247
  if (cache) {
2173
2248
  setLocalStorage(cacheKey, details.value);
@@ -2176,20 +2251,20 @@ function Tabs(props) {
2176
2251
  },
2177
2252
  [cache]
2178
2253
  );
2179
- (0, import_react19.useEffect)(() => {
2254
+ (0, import_react21.useEffect)(() => {
2180
2255
  if (cache && !activeTab) {
2181
2256
  const cachedTab = getLocalStorage(cacheKey, defaultValue ?? "");
2182
2257
  setActiveTab(cachedTab);
2183
2258
  }
2184
2259
  }, [cache, defaultValue, activeTab]);
2185
- const value = (0, import_react19.useMemo)(
2260
+ const value = (0, import_react21.useMemo)(
2186
2261
  () => ({
2187
2262
  active: activeTab,
2188
2263
  styles
2189
2264
  }),
2190
2265
  [activeTab, palette, styles]
2191
2266
  );
2192
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(TabsContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2267
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(TabsContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2193
2268
  import_tabs.Tabs.Root,
2194
2269
  {
2195
2270
  ...arkProps,
@@ -2203,7 +2278,7 @@ function Tabs(props) {
2203
2278
  ) });
2204
2279
  }
2205
2280
  function useTabsContext() {
2206
- const context = (0, import_react19.useContext)(TabsContext);
2281
+ const context = (0, import_react21.useContext)(TabsContext);
2207
2282
  if (!context) {
2208
2283
  throw new Error("useTabsContext must be used within a Tabs Provider.");
2209
2284
  }
@@ -2211,18 +2286,18 @@ function useTabsContext() {
2211
2286
  }
2212
2287
 
2213
2288
  // src/components/Tabs.client.tsx
2214
- var import_jsx_runtime43 = require("react/jsx-runtime");
2289
+ var import_jsx_runtime45 = require("react/jsx-runtime");
2215
2290
  function TabsList(props) {
2216
2291
  const { children, ...tabsProps } = props;
2217
2292
  const { styles } = useTabsContext();
2218
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
2293
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
2219
2294
  import_tabs2.Tabs.List,
2220
2295
  {
2221
2296
  ...tabsProps,
2222
- className: (0, import_css35.cx)(tabsProps.className, styles.list),
2297
+ className: (0, import_css37.cx)(tabsProps.className, styles.list),
2223
2298
  children: [
2224
2299
  children,
2225
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(TabIndicator, {})
2300
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TabIndicator, {})
2226
2301
  ]
2227
2302
  }
2228
2303
  );
@@ -2230,90 +2305,90 @@ function TabsList(props) {
2230
2305
  var TabList = TabsList;
2231
2306
  function Tab(props) {
2232
2307
  const { styles } = useTabsContext();
2233
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2308
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2234
2309
  import_tabs2.Tabs.Trigger,
2235
2310
  {
2236
2311
  ...props,
2237
- className: (0, import_css35.cx)(props.className, styles.trigger)
2312
+ className: (0, import_css37.cx)(props.className, styles.trigger)
2238
2313
  }
2239
2314
  );
2240
2315
  }
2241
2316
  function TabIndicator(props) {
2242
2317
  const { styles } = useTabsContext();
2243
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2318
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2244
2319
  import_tabs2.Tabs.Indicator,
2245
2320
  {
2246
2321
  ...props,
2247
- className: (0, import_css35.cx)(props.className, styles.indicator)
2322
+ className: (0, import_css37.cx)(props.className, styles.indicator)
2248
2323
  }
2249
2324
  );
2250
2325
  }
2251
2326
  function TabPanel(props) {
2252
2327
  const { styles } = useTabsContext();
2253
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2328
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2254
2329
  import_tabs2.Tabs.Content,
2255
2330
  {
2256
2331
  ...props,
2257
- className: (0, import_css35.cx)(props.className, styles.content)
2332
+ className: (0, import_css37.cx)(props.className, styles.content)
2258
2333
  }
2259
2334
  );
2260
2335
  }
2261
2336
 
2262
2337
  // src/components/Table.tsx
2263
- var import_css36 = require("@cerberus/styled-system/css");
2264
- var import_recipes29 = require("@cerberus/styled-system/recipes");
2265
- var import_jsx_runtime44 = require("react/jsx-runtime");
2338
+ var import_css38 = require("@cerberus/styled-system/css");
2339
+ var import_recipes31 = require("@cerberus/styled-system/recipes");
2340
+ var import_jsx_runtime46 = require("react/jsx-runtime");
2266
2341
  function Table(props) {
2267
2342
  const { caption, children, ...nativeProps } = props;
2268
- const styles = (0, import_recipes29.table)();
2269
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: styles.container, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
2343
+ const styles = (0, import_recipes31.table)();
2344
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: styles.container, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
2270
2345
  "table",
2271
2346
  {
2272
2347
  ...nativeProps,
2273
- className: (0, import_css36.cx)(nativeProps.className, styles.table),
2348
+ className: (0, import_css38.cx)(nativeProps.className, styles.table),
2274
2349
  children: [
2275
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("caption", { className: styles.caption, children: caption }),
2350
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("caption", { className: styles.caption, children: caption }),
2276
2351
  children
2277
2352
  ]
2278
2353
  }
2279
2354
  ) });
2280
2355
  }
2281
2356
  function Tr(props) {
2282
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("tr", { ...props });
2357
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("tr", { ...props });
2283
2358
  }
2284
2359
 
2285
2360
  // src/components/Thead.tsx
2286
- var import_css37 = require("@cerberus/styled-system/css");
2287
- var import_recipes30 = require("@cerberus/styled-system/recipes");
2288
- var import_jsx_runtime45 = require("react/jsx-runtime");
2361
+ var import_css39 = require("@cerberus/styled-system/css");
2362
+ var import_recipes32 = require("@cerberus/styled-system/recipes");
2363
+ var import_jsx_runtime47 = require("react/jsx-runtime");
2289
2364
  function Thead(props) {
2290
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("thead", { ...props, className: (0, import_css37.cx)(props.className, (0, import_recipes30.thead)()) });
2365
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("thead", { ...props, className: (0, import_css39.cx)(props.className, (0, import_recipes32.thead)()) });
2291
2366
  }
2292
2367
 
2293
2368
  // src/components/Th.tsx
2294
- var import_css38 = require("@cerberus/styled-system/css");
2295
- var import_recipes31 = require("@cerberus/styled-system/recipes");
2296
- var import_jsx_runtime46 = require("react/jsx-runtime");
2369
+ var import_css40 = require("@cerberus/styled-system/css");
2370
+ var import_recipes33 = require("@cerberus/styled-system/recipes");
2371
+ var import_jsx_runtime48 = require("react/jsx-runtime");
2297
2372
  function Th(props) {
2298
2373
  const { size, onClick, ...nativeProps } = props;
2299
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2374
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2300
2375
  Show,
2301
2376
  {
2302
2377
  when: Boolean(onClick),
2303
- fallback: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2378
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2304
2379
  "th",
2305
2380
  {
2306
2381
  ...nativeProps,
2307
- className: (0, import_css38.cx)(nativeProps.className, (0, import_recipes31.th)({ size }))
2382
+ className: (0, import_css40.cx)(nativeProps.className, (0, import_recipes33.th)({ size }))
2308
2383
  }
2309
2384
  ),
2310
- children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("th", { ...nativeProps, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2385
+ children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("th", { ...nativeProps, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2311
2386
  "button",
2312
2387
  {
2313
- className: (0, import_css38.cx)(
2388
+ className: (0, import_css40.cx)(
2314
2389
  nativeProps.className,
2315
- (0, import_recipes31.th)({ size }),
2316
- (0, import_css38.css)({
2390
+ (0, import_recipes33.th)({ size }),
2391
+ (0, import_css40.css)({
2317
2392
  alignItems: "center",
2318
2393
  display: "inline-flex",
2319
2394
  justifyContent: "space-between",
@@ -2333,18 +2408,18 @@ function Th(props) {
2333
2408
  }
2334
2409
 
2335
2410
  // src/components/Td.tsx
2336
- var import_css39 = require("@cerberus/styled-system/css");
2337
- var import_recipes32 = require("@cerberus/styled-system/recipes");
2338
- var import_jsx_runtime47 = require("react/jsx-runtime");
2411
+ var import_css41 = require("@cerberus/styled-system/css");
2412
+ var import_recipes34 = require("@cerberus/styled-system/recipes");
2413
+ var import_jsx_runtime49 = require("react/jsx-runtime");
2339
2414
  function Td(props) {
2340
2415
  const { size, ...nativeProps } = props;
2341
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2416
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2342
2417
  "td",
2343
2418
  {
2344
2419
  ...nativeProps,
2345
- className: (0, import_css39.cx)(
2420
+ className: (0, import_css41.cx)(
2346
2421
  nativeProps.className,
2347
- (0, import_recipes32.td)({
2422
+ (0, import_recipes34.td)({
2348
2423
  size
2349
2424
  })
2350
2425
  )
@@ -2353,18 +2428,18 @@ function Td(props) {
2353
2428
  }
2354
2429
 
2355
2430
  // src/components/Tbody.tsx
2356
- var import_recipes33 = require("@cerberus/styled-system/recipes");
2357
- var import_css40 = require("@cerberus/styled-system/css");
2358
- var import_jsx_runtime48 = require("react/jsx-runtime");
2431
+ var import_recipes35 = require("@cerberus/styled-system/recipes");
2432
+ var import_css42 = require("@cerberus/styled-system/css");
2433
+ var import_jsx_runtime50 = require("react/jsx-runtime");
2359
2434
  function Tbody(props) {
2360
2435
  const { decoration, ...nativeProps } = props;
2361
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2436
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2362
2437
  "tbody",
2363
2438
  {
2364
2439
  ...nativeProps,
2365
- className: (0, import_css40.cx)(
2440
+ className: (0, import_css42.cx)(
2366
2441
  nativeProps.className,
2367
- (0, import_recipes33.tbody)({
2442
+ (0, import_recipes35.tbody)({
2368
2443
  decoration
2369
2444
  })
2370
2445
  )
@@ -2373,9 +2448,9 @@ function Tbody(props) {
2373
2448
  }
2374
2449
 
2375
2450
  // src/components/Tag.tsx
2376
- var import_css41 = require("@cerberus/styled-system/css");
2377
- var import_recipes34 = require("@cerberus/styled-system/recipes");
2378
- var import_jsx_runtime49 = require("react/jsx-runtime");
2451
+ var import_css43 = require("@cerberus/styled-system/css");
2452
+ var import_recipes36 = require("@cerberus/styled-system/recipes");
2453
+ var import_jsx_runtime51 = require("react/jsx-runtime");
2379
2454
  function Tag(props) {
2380
2455
  const { shape: initShape, gradient, onClick, usage, ...nativeProps } = props;
2381
2456
  const palette = (props == null ? void 0 : props.palette) ?? "page";
@@ -2384,13 +2459,13 @@ function Tag(props) {
2384
2459
  const closableStyles = isClosable ? closableCss : "";
2385
2460
  const { icons } = useCerberusContext();
2386
2461
  const { close: Close } = icons;
2387
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
2462
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
2388
2463
  "span",
2389
2464
  {
2390
2465
  ...nativeProps,
2391
- className: (0, import_css41.cx)(
2466
+ className: (0, import_css43.cx)(
2392
2467
  nativeProps.className,
2393
- (0, import_recipes34.tag)({
2468
+ (0, import_recipes36.tag)({
2394
2469
  gradient,
2395
2470
  palette,
2396
2471
  shape,
@@ -2400,24 +2475,24 @@ function Tag(props) {
2400
2475
  ),
2401
2476
  children: [
2402
2477
  props.children,
2403
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Show, { when: isClosable, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2478
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Show, { when: isClosable, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2404
2479
  "button",
2405
2480
  {
2406
2481
  "aria-label": "Close",
2407
- className: (0, import_recipes34.iconButton)({
2482
+ className: (0, import_recipes36.iconButton)({
2408
2483
  palette: "action",
2409
2484
  usage: "filled",
2410
2485
  size: "sm"
2411
2486
  }),
2412
2487
  onClick,
2413
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Close, {})
2488
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Close, {})
2414
2489
  }
2415
2490
  ) })
2416
2491
  ]
2417
2492
  }
2418
2493
  );
2419
2494
  }
2420
- var closableCss = (0, import_css41.css)({
2495
+ var closableCss = (0, import_css43.css)({
2421
2496
  bgColor: "action.bg.active",
2422
2497
  color: "action.text.initial",
2423
2498
  paddingInlineEnd: "0"
@@ -2425,53 +2500,53 @@ var closableCss = (0, import_css41.css)({
2425
2500
 
2426
2501
  // src/components/Text.tsx
2427
2502
  var import_jsx = require("@cerberus/styled-system/jsx");
2428
- var import_jsx_runtime50 = require("react/jsx-runtime");
2503
+ var import_jsx_runtime52 = require("react/jsx-runtime");
2429
2504
  function Text(props) {
2430
2505
  const { as = "p", ...pandaJSXProps } = props;
2431
2506
  switch (as) {
2432
2507
  case "h1":
2433
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_jsx.H1, { ...pandaJSXProps });
2508
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx.H1, { ...pandaJSXProps });
2434
2509
  case "h2":
2435
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_jsx.H2, { ...pandaJSXProps });
2510
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx.H2, { ...pandaJSXProps });
2436
2511
  case "h3":
2437
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_jsx.H3, { ...pandaJSXProps });
2512
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx.H3, { ...pandaJSXProps });
2438
2513
  case "h4":
2439
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_jsx.H4, { ...pandaJSXProps });
2514
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx.H4, { ...pandaJSXProps });
2440
2515
  case "h5":
2441
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_jsx.H5, { ...pandaJSXProps });
2516
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx.H5, { ...pandaJSXProps });
2442
2517
  case "h6":
2443
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_jsx.H6, { ...pandaJSXProps });
2518
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx.H6, { ...pandaJSXProps });
2444
2519
  case "strong":
2445
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_jsx.Strong, { ...pandaJSXProps });
2520
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx.Strong, { ...pandaJSXProps });
2446
2521
  case "em":
2447
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_jsx.Em, { ...pandaJSXProps });
2522
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx.Em, { ...pandaJSXProps });
2448
2523
  case "small":
2449
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_jsx.Small, { ...pandaJSXProps });
2524
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx.Small, { ...pandaJSXProps });
2450
2525
  case "span":
2451
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_jsx.Span, { ...pandaJSXProps });
2526
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx.Span, { ...pandaJSXProps });
2452
2527
  default:
2453
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_jsx.P, { ...pandaJSXProps });
2528
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx.P, { ...pandaJSXProps });
2454
2529
  }
2455
2530
  }
2456
2531
 
2457
2532
  // src/components/Textarea.tsx
2458
- var import_css42 = require("@cerberus/styled-system/css");
2459
- var import_recipes35 = require("@cerberus/styled-system/recipes");
2460
- var import_jsx_runtime51 = require("react/jsx-runtime");
2533
+ var import_css44 = require("@cerberus/styled-system/css");
2534
+ var import_recipes37 = require("@cerberus/styled-system/recipes");
2535
+ var import_jsx_runtime53 = require("react/jsx-runtime");
2461
2536
  function Textarea(props) {
2462
2537
  const { describedBy, ...nativeProps } = props;
2463
2538
  const { invalid, ...fieldState } = useFieldContext();
2464
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2539
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2465
2540
  "textarea",
2466
2541
  {
2467
2542
  ...nativeProps,
2468
2543
  ...fieldState,
2469
2544
  ...describedBy && { "aria-describedby": describedBy },
2470
2545
  ...invalid && { "aria-invalid": true },
2471
- className: (0, import_css42.cx)(
2546
+ className: (0, import_css44.cx)(
2472
2547
  props.className,
2473
- (0, import_recipes35.input)().input,
2474
- (0, import_css42.css)({
2548
+ (0, import_recipes37.input)().input,
2549
+ (0, import_css44.css)({
2475
2550
  pxi: "2",
2476
2551
  py: "2",
2477
2552
  resize: "vertical"
@@ -2483,44 +2558,44 @@ function Textarea(props) {
2483
2558
  }
2484
2559
 
2485
2560
  // src/components/Toggle.tsx
2486
- var import_css43 = require("@cerberus/styled-system/css");
2561
+ var import_css45 = require("@cerberus/styled-system/css");
2487
2562
  var import_patterns14 = require("@cerberus/styled-system/patterns");
2488
- var import_recipes36 = require("@cerberus/styled-system/recipes");
2489
- var import_jsx_runtime52 = require("react/jsx-runtime");
2563
+ var import_recipes38 = require("@cerberus/styled-system/recipes");
2564
+ var import_jsx_runtime54 = require("react/jsx-runtime");
2490
2565
  function Toggle(props) {
2491
2566
  const { size, describedBy, ...nativeProps } = props;
2492
- const styles = (0, import_recipes36.toggle)({ size });
2567
+ const styles = (0, import_recipes38.toggle)({ size });
2493
2568
  const { invalid, ...state } = useFieldContext();
2494
2569
  const { icons } = useCerberusContext();
2495
2570
  const CheckedIcon = icons.toggleChecked;
2496
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
2571
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
2497
2572
  "span",
2498
2573
  {
2499
- className: (0, import_css43.cx)("group", styles.track, (0, import_patterns14.hstack)()),
2574
+ className: (0, import_css45.cx)("group", styles.track, (0, import_patterns14.hstack)()),
2500
2575
  "data-checked": props.checked || props.defaultChecked,
2501
2576
  children: [
2502
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2577
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2503
2578
  "input",
2504
2579
  {
2505
2580
  ...nativeProps,
2506
2581
  ...state,
2507
2582
  ...describedBy && { "aria-describedby": describedBy },
2508
2583
  ...invalid && { "aria-invalid": true },
2509
- className: (0, import_css43.cx)("peer", styles.input),
2584
+ className: (0, import_css45.cx)("peer", styles.input),
2510
2585
  role: "switch",
2511
2586
  type: "checkbox"
2512
2587
  }
2513
2588
  ),
2514
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2589
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2515
2590
  "span",
2516
2591
  {
2517
- className: (0, import_css43.cx)(
2592
+ className: (0, import_css45.cx)(
2518
2593
  styles.thumb,
2519
2594
  (0, import_patterns14.vstack)({
2520
2595
  justify: "center"
2521
2596
  })
2522
2597
  ),
2523
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(CheckedIcon, {})
2598
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(CheckedIcon, {})
2524
2599
  }
2525
2600
  )
2526
2601
  ]
@@ -2530,24 +2605,24 @@ function Toggle(props) {
2530
2605
 
2531
2606
  // src/components/Tooltip.tsx
2532
2607
  var import_tooltip = require("@ark-ui/react/tooltip");
2533
- var import_css44 = require("@cerberus/styled-system/css");
2534
- var import_recipes37 = require("@cerberus/styled-system/recipes");
2535
- var import_jsx_runtime53 = require("react/jsx-runtime");
2608
+ var import_css46 = require("@cerberus/styled-system/css");
2609
+ var import_recipes39 = require("@cerberus/styled-system/recipes");
2610
+ var import_jsx_runtime55 = require("react/jsx-runtime");
2536
2611
  function Tooltip(props) {
2537
2612
  const { content, children, asChild, ...nativeProps } = props;
2538
- const styles = (0, import_recipes37.tooltip)();
2613
+ const styles = (0, import_recipes39.tooltip)();
2539
2614
  const position = {
2540
2615
  placement: props.position || "top"
2541
2616
  };
2542
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_tooltip.Tooltip.Root, { openDelay: 400, positioning: position, children: [
2543
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_tooltip.Tooltip.Trigger, { className: styles.trigger, asChild, children }),
2544
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_tooltip.Tooltip.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
2617
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_tooltip.Tooltip.Root, { openDelay: 400, positioning: position, children: [
2618
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_tooltip.Tooltip.Trigger, { className: styles.trigger, asChild, children }),
2619
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_tooltip.Tooltip.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
2545
2620
  import_tooltip.Tooltip.Content,
2546
2621
  {
2547
2622
  ...nativeProps,
2548
- className: (0, import_css44.cx)(nativeProps.className, styles.content),
2623
+ className: (0, import_css46.cx)(nativeProps.className, styles.content),
2549
2624
  children: [
2550
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_tooltip.Tooltip.Arrow, { className: styles.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_tooltip.Tooltip.ArrowTip, { className: styles.arrowTip }) }),
2625
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_tooltip.Tooltip.Arrow, { className: styles.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_tooltip.Tooltip.ArrowTip, { className: styles.arrowTip }) }),
2551
2626
  content
2552
2627
  ]
2553
2628
  }
@@ -2556,26 +2631,26 @@ function Tooltip(props) {
2556
2631
  }
2557
2632
 
2558
2633
  // src/context/confirm-modal.tsx
2559
- var import_react21 = require("react");
2560
- var import_css45 = require("@cerberus/styled-system/css");
2634
+ var import_react23 = require("react");
2635
+ var import_css47 = require("@cerberus/styled-system/css");
2561
2636
  var import_patterns15 = require("@cerberus/styled-system/patterns");
2562
2637
 
2563
2638
  // src/hooks/useModal.ts
2564
- var import_react20 = require("react");
2639
+ var import_react22 = require("react");
2565
2640
  function useModal() {
2566
- const modalRef = (0, import_react20.useRef)(null);
2567
- const [isOpen, setIsOpen] = (0, import_react20.useState)(false);
2568
- const show = (0, import_react20.useCallback)(() => {
2641
+ const modalRef = (0, import_react22.useRef)(null);
2642
+ const [isOpen, setIsOpen] = (0, import_react22.useState)(false);
2643
+ const show = (0, import_react22.useCallback)(() => {
2569
2644
  var _a;
2570
2645
  (_a = modalRef.current) == null ? void 0 : _a.showModal();
2571
2646
  setIsOpen(true);
2572
2647
  }, []);
2573
- const close = (0, import_react20.useCallback)(() => {
2648
+ const close = (0, import_react22.useCallback)(() => {
2574
2649
  var _a;
2575
2650
  (_a = modalRef.current) == null ? void 0 : _a.close();
2576
2651
  setIsOpen(false);
2577
2652
  }, []);
2578
- return (0, import_react20.useMemo)(() => {
2653
+ return (0, import_react22.useMemo)(() => {
2579
2654
  return {
2580
2655
  modalRef,
2581
2656
  show,
@@ -2587,21 +2662,21 @@ function useModal() {
2587
2662
 
2588
2663
  // src/context/confirm-modal.tsx
2589
2664
  var import_jsx2 = require("@cerberus/styled-system/jsx");
2590
- var import_jsx_runtime54 = require("react/jsx-runtime");
2591
- var ConfirmModalContext = (0, import_react21.createContext)(null);
2665
+ var import_jsx_runtime56 = require("react/jsx-runtime");
2666
+ var ConfirmModalContext = (0, import_react23.createContext)(null);
2592
2667
  function ConfirmModal(props) {
2593
2668
  const { modalRef, show, close } = useModal();
2594
- const resolveRef = (0, import_react21.useRef)(null);
2595
- const [content, setContent] = (0, import_react21.useState)(null);
2669
+ const resolveRef = (0, import_react23.useRef)(null);
2670
+ const [content, setContent] = (0, import_react23.useState)(null);
2596
2671
  const focusTrap = trapFocus(modalRef);
2597
2672
  const kind = (content == null ? void 0 : content.kind) ?? "non-destructive";
2598
2673
  const { icons } = useCerberusContext();
2599
2674
  const { confirmModal: ConfirmIcon } = icons;
2600
- const palette = (0, import_react21.useMemo)(
2675
+ const palette = (0, import_react23.useMemo)(
2601
2676
  () => kind === "destructive" ? "danger" : "action",
2602
2677
  [kind]
2603
2678
  );
2604
- const handleChoice = (0, import_react21.useCallback)(
2679
+ const handleChoice = (0, import_react23.useCallback)(
2605
2680
  (e) => {
2606
2681
  var _a, _b;
2607
2682
  const target = e.currentTarget;
@@ -2613,7 +2688,7 @@ function ConfirmModal(props) {
2613
2688
  },
2614
2689
  [close]
2615
2690
  );
2616
- const handleShow = (0, import_react21.useCallback)(
2691
+ const handleShow = (0, import_react23.useCallback)(
2617
2692
  (options) => {
2618
2693
  return new Promise((resolve) => {
2619
2694
  setContent({ ...options });
@@ -2623,42 +2698,42 @@ function ConfirmModal(props) {
2623
2698
  },
2624
2699
  [show]
2625
2700
  );
2626
- const value = (0, import_react21.useMemo)(
2701
+ const value = (0, import_react23.useMemo)(
2627
2702
  () => ({
2628
2703
  show: handleShow
2629
2704
  }),
2630
2705
  [handleShow]
2631
2706
  );
2632
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(ConfirmModalContext.Provider, { value, children: [
2707
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(ConfirmModalContext.Provider, { value, children: [
2633
2708
  props.children,
2634
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Modal, { onKeyDown: focusTrap, ref: modalRef, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_jsx2.VStack, { gap: "xl", w: "full", children: [
2635
- /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(ModalHeader, { children: [
2636
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2709
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Modal, { onKeyDown: focusTrap, ref: modalRef, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx2.VStack, { gap: "xl", w: "full", children: [
2710
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(ModalHeader, { children: [
2711
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
2637
2712
  "div",
2638
2713
  {
2639
2714
  className: (0, import_patterns15.hstack)({
2640
2715
  justify: "center",
2641
2716
  w: "full"
2642
2717
  }),
2643
- children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2718
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
2644
2719
  Show,
2645
2720
  {
2646
2721
  when: palette === "danger",
2647
- fallback: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2722
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
2648
2723
  Avatar,
2649
2724
  {
2650
2725
  ariaLabel: "",
2651
2726
  gradient: "charon-light",
2652
- icon: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ConfirmIcon, { size: 24 }),
2727
+ icon: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ConfirmIcon, { size: 24 }),
2653
2728
  src: ""
2654
2729
  }
2655
2730
  ),
2656
- children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2731
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
2657
2732
  Avatar,
2658
2733
  {
2659
2734
  ariaLabel: "",
2660
2735
  gradient: "hades-dark",
2661
- icon: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ConfirmIcon, { size: 24 }),
2736
+ icon: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ConfirmIcon, { size: 24 }),
2662
2737
  src: ""
2663
2738
  }
2664
2739
  )
@@ -2666,15 +2741,15 @@ function ConfirmModal(props) {
2666
2741
  )
2667
2742
  }
2668
2743
  ),
2669
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ModalHeading, { children: content == null ? void 0 : content.heading }),
2670
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ModalDescription, { children: content == null ? void 0 : content.description })
2744
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ModalHeading, { children: content == null ? void 0 : content.heading }),
2745
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ModalDescription, { children: content == null ? void 0 : content.description })
2671
2746
  ] }),
2672
- /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_jsx2.HStack, { gap: "4", w: "full", children: [
2673
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2747
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx2.HStack, { gap: "4", w: "full", children: [
2748
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
2674
2749
  Button,
2675
2750
  {
2676
2751
  autoFocus: true,
2677
- className: (0, import_css45.css)({
2752
+ className: (0, import_css47.css)({
2678
2753
  w: "1/2"
2679
2754
  }),
2680
2755
  name: "confirm",
@@ -2684,10 +2759,10 @@ function ConfirmModal(props) {
2684
2759
  children: content == null ? void 0 : content.actionText
2685
2760
  }
2686
2761
  ),
2687
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2762
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
2688
2763
  Button,
2689
2764
  {
2690
- className: (0, import_css45.css)({
2765
+ className: (0, import_css47.css)({
2691
2766
  w: "1/2"
2692
2767
  }),
2693
2768
  name: "cancel",
@@ -2702,7 +2777,7 @@ function ConfirmModal(props) {
2702
2777
  ] });
2703
2778
  }
2704
2779
  function useConfirmModal() {
2705
- const context = (0, import_react21.useContext)(ConfirmModalContext);
2780
+ const context = (0, import_react23.useContext)(ConfirmModalContext);
2706
2781
  if (context === null) {
2707
2782
  throw new Error(
2708
2783
  "useConfirmModal must be used within a ConfirmModal Provider"
@@ -2712,21 +2787,21 @@ function useConfirmModal() {
2712
2787
  }
2713
2788
 
2714
2789
  // src/context/cta-modal.tsx
2715
- var import_react22 = require("react");
2790
+ var import_react24 = require("react");
2716
2791
  var import_jsx3 = require("@cerberus/styled-system/jsx");
2717
- var import_css46 = require("@cerberus/styled-system/css");
2792
+ var import_css48 = require("@cerberus/styled-system/css");
2718
2793
  var import_jsx4 = require("@cerberus/styled-system/jsx");
2719
- var import_jsx_runtime55 = require("react/jsx-runtime");
2720
- var CTAModalContext = (0, import_react22.createContext)(null);
2794
+ var import_jsx_runtime57 = require("react/jsx-runtime");
2795
+ var CTAModalContext = (0, import_react24.createContext)(null);
2721
2796
  function CTAModal(props) {
2722
2797
  var _a, _b;
2723
2798
  const { modalRef, show, close } = useModal();
2724
- const [content, setContent] = (0, import_react22.useState)(null);
2799
+ const [content, setContent] = (0, import_react24.useState)(null);
2725
2800
  const focusTrap = trapFocus(modalRef);
2726
2801
  const confirmIcon = content == null ? void 0 : content.icon;
2727
2802
  const { icons } = useCerberusContext();
2728
2803
  const { close: CloseIcon, confirmModal: FallbackIcon } = icons;
2729
- const handleShow = (0, import_react22.useCallback)(
2804
+ const handleShow = (0, import_react24.useCallback)(
2730
2805
  (options) => {
2731
2806
  const maxActions = 2;
2732
2807
  if (options.actions.length > maxActions) {
@@ -2739,7 +2814,7 @@ function CTAModal(props) {
2739
2814
  },
2740
2815
  [show]
2741
2816
  );
2742
- const handleActionClick = (0, import_react22.useCallback)(
2817
+ const handleActionClick = (0, import_react24.useCallback)(
2743
2818
  (event) => {
2744
2819
  const index = event.currentTarget.getAttribute("data-index");
2745
2820
  const action = content == null ? void 0 : content.actions[Number(index)];
@@ -2749,54 +2824,54 @@ function CTAModal(props) {
2749
2824
  },
2750
2825
  [content, close]
2751
2826
  );
2752
- const value = (0, import_react22.useMemo)(
2827
+ const value = (0, import_react24.useMemo)(
2753
2828
  () => ({
2754
2829
  show: handleShow
2755
2830
  }),
2756
2831
  [handleShow]
2757
2832
  );
2758
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(CTAModalContext.Provider, { value, children: [
2833
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(CTAModalContext.Provider, { value, children: [
2759
2834
  props.children,
2760
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Modal, { onKeyDown: focusTrap, ref: modalRef, children: [
2761
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
2835
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Modal, { onKeyDown: focusTrap, ref: modalRef, children: [
2836
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2762
2837
  "span",
2763
2838
  {
2764
- className: (0, import_css46.css)({
2839
+ className: (0, import_css48.css)({
2765
2840
  padding: "md",
2766
2841
  position: "absolute",
2767
2842
  right: 0,
2768
2843
  top: 0,
2769
2844
  zIndex: "decorator"
2770
2845
  }),
2771
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(IconButton, { ariaLabel: "Close modal", onClick: close, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(CloseIcon, {}) })
2846
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(IconButton, { ariaLabel: "Close modal", onClick: close, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(CloseIcon, {}) })
2772
2847
  }
2773
2848
  ),
2774
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx4.VStack, { gap: "xl", w: "full", children: [
2775
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ModalHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx4.VStack, { gap: "lg", w: "full", children: [
2776
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
2849
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx4.VStack, { gap: "xl", w: "full", children: [
2850
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ModalHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx4.VStack, { gap: "lg", w: "full", children: [
2851
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2777
2852
  Avatar,
2778
2853
  {
2779
2854
  ariaLabel: "",
2780
2855
  gradient: "charon-light",
2781
- icon: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
2856
+ icon: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2782
2857
  Show,
2783
2858
  {
2784
2859
  when: Boolean(confirmIcon),
2785
- fallback: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(FallbackIcon, { size: 24 }),
2860
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(FallbackIcon, { size: 24 }),
2786
2861
  children: confirmIcon
2787
2862
  }
2788
2863
  ),
2789
2864
  src: ""
2790
2865
  }
2791
2866
  ),
2792
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ModalHeading, { children: content == null ? void 0 : content.heading }),
2793
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ModalDescription, { children: content == null ? void 0 : content.description })
2867
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ModalHeading, { children: content == null ? void 0 : content.heading }),
2868
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ModalDescription, { children: content == null ? void 0 : content.description })
2794
2869
  ] }) }),
2795
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_jsx3.HStack, { gap: "md", w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime55.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_runtime55.jsx)(
2870
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_jsx3.HStack, { gap: "md", w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime57.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_runtime57.jsx)(
2796
2871
  Button,
2797
2872
  {
2798
2873
  "data-index": index,
2799
- className: (0, import_css46.css)({
2874
+ className: (0, import_css48.css)({
2800
2875
  w: "1/2"
2801
2876
  }),
2802
2877
  onClick: handleActionClick,
@@ -2811,7 +2886,7 @@ function CTAModal(props) {
2811
2886
  ] });
2812
2887
  }
2813
2888
  function useCTAModal() {
2814
- const context = (0, import_react22.useContext)(CTAModalContext);
2889
+ const context = (0, import_react24.useContext)(CTAModalContext);
2815
2890
  if (context === null) {
2816
2891
  throw new Error("useCTAModal must be used within a CTAModal Provider");
2817
2892
  }
@@ -2819,10 +2894,10 @@ function useCTAModal() {
2819
2894
  }
2820
2895
 
2821
2896
  // src/context/notification-center.tsx
2822
- var import_react23 = require("react");
2897
+ var import_react25 = require("react");
2823
2898
  var import_patterns16 = require("@cerberus/styled-system/patterns");
2824
- var import_recipes38 = require("@cerberus/styled-system/recipes");
2825
- var import_css47 = require("@cerberus/styled-system/css");
2899
+ var import_recipes40 = require("@cerberus/styled-system/recipes");
2900
+ var import_css49 = require("@cerberus/styled-system/css");
2826
2901
 
2827
2902
  // src/context/notification-center/store.ts
2828
2903
  function notificationCenterReducer(state, action) {
@@ -2855,16 +2930,16 @@ function clearNotificationState(dispatch) {
2855
2930
  }
2856
2931
 
2857
2932
  // src/context/notification-center.tsx
2858
- var import_jsx_runtime56 = require("react/jsx-runtime");
2859
- var NotificationsContext = (0, import_react23.createContext)(null);
2933
+ var import_jsx_runtime58 = require("react/jsx-runtime");
2934
+ var NotificationsContext = (0, import_react25.createContext)(null);
2860
2935
  function NotificationCenter(props) {
2861
- const [state, dispatch] = (0, import_react23.useReducer)(notificationCenterReducer, []);
2862
- const styles = (0, import_recipes38.notification)();
2863
- const timeout = (0, import_react23.useMemo)(
2936
+ const [state, dispatch] = (0, import_react25.useReducer)(notificationCenterReducer, []);
2937
+ const styles = (0, import_recipes40.notification)();
2938
+ const timeout = (0, import_react25.useMemo)(
2864
2939
  () => props.duration || 6e3,
2865
2940
  [props.duration]
2866
2941
  );
2867
- const closeNotification = (0, import_react23.useCallback)(
2942
+ const closeNotification = (0, import_react25.useCallback)(
2868
2943
  (id) => {
2869
2944
  updateNotificationState(dispatch, {
2870
2945
  id,
@@ -2876,7 +2951,7 @@ function NotificationCenter(props) {
2876
2951
  },
2877
2952
  [dispatch]
2878
2953
  );
2879
- const handleNotify = (0, import_react23.useCallback)(
2954
+ const handleNotify = (0, import_react25.useCallback)(
2880
2955
  (options) => {
2881
2956
  const id = `${options.palette}:${state.length + 1}`;
2882
2957
  addNotification(dispatch, {
@@ -2890,32 +2965,32 @@ function NotificationCenter(props) {
2890
2965
  },
2891
2966
  [dispatch, state, timeout, closeNotification]
2892
2967
  );
2893
- const handleClose = (0, import_react23.useCallback)(
2968
+ const handleClose = (0, import_react25.useCallback)(
2894
2969
  (e) => {
2895
2970
  const target = e.currentTarget;
2896
2971
  closeNotification(target.value);
2897
2972
  },
2898
2973
  [closeNotification]
2899
2974
  );
2900
- const handleCloseAll = (0, import_react23.useCallback)(() => {
2975
+ const handleCloseAll = (0, import_react25.useCallback)(() => {
2901
2976
  state.forEach((item) => {
2902
2977
  if (item.onClose) item.onClose();
2903
2978
  });
2904
2979
  clearNotificationState(dispatch);
2905
2980
  }, [state, dispatch]);
2906
- const value = (0, import_react23.useMemo)(
2981
+ const value = (0, import_react25.useMemo)(
2907
2982
  () => ({
2908
2983
  notify: handleNotify
2909
2984
  }),
2910
2985
  [handleNotify]
2911
2986
  );
2912
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(NotificationsContext.Provider, { value, children: [
2987
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(NotificationsContext.Provider, { value, children: [
2913
2988
  props.children,
2914
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Show, { when: state.length > 0, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Portal, { container: props.container, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: styles.center, children: [
2915
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Show, { when: state.length >= 4, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
2989
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Show, { when: state.length > 0, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Portal, { container: props.container, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: styles.center, children: [
2990
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Show, { when: state.length >= 4, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2916
2991
  Button,
2917
2992
  {
2918
- className: (0, import_css47.cx)(styles.closeAll, (0, import_patterns16.animateIn)()),
2993
+ className: (0, import_css49.cx)(styles.closeAll, (0, import_patterns16.animateIn)()),
2919
2994
  onClick: handleCloseAll,
2920
2995
  palette: "action",
2921
2996
  shape: "rounded",
@@ -2924,7 +2999,7 @@ function NotificationCenter(props) {
2924
2999
  children: "Close all"
2925
3000
  }
2926
3001
  ) }),
2927
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3002
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2928
3003
  "div",
2929
3004
  {
2930
3005
  className: (0, import_patterns16.vstack)({
@@ -2934,7 +3009,7 @@ function NotificationCenter(props) {
2934
3009
  style: {
2935
3010
  alignItems: "flex-end"
2936
3011
  },
2937
- children: state.map((option) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3012
+ children: state.map((option) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2938
3013
  MatchNotification,
2939
3014
  {
2940
3015
  ...option,
@@ -2950,7 +3025,7 @@ function NotificationCenter(props) {
2950
3025
  }
2951
3026
  function MatchNotification(props) {
2952
3027
  const { palette, id, onClose, heading, description, open } = props;
2953
- const sharedProps = (0, import_react23.useMemo)(
3028
+ const sharedProps = (0, import_react25.useMemo)(
2954
3029
  () => ({
2955
3030
  id,
2956
3031
  open: true,
@@ -2961,30 +3036,30 @@ function MatchNotification(props) {
2961
3036
  );
2962
3037
  switch (palette) {
2963
3038
  case "success":
2964
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Notification, { ...sharedProps, palette: "success", children: [
2965
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(NotificationHeading, { palette: "success", children: heading }),
2966
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(NotificationDescription, { palette: "success", children: description })
3039
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Notification, { ...sharedProps, palette: "success", children: [
3040
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(NotificationHeading, { palette: "success", children: heading }),
3041
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(NotificationDescription, { palette: "success", children: description })
2967
3042
  ] });
2968
3043
  case "warning":
2969
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Notification, { ...sharedProps, palette: "warning", children: [
2970
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(NotificationHeading, { palette: "warning", children: heading }),
2971
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(NotificationDescription, { palette: "warning", children: description })
3044
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Notification, { ...sharedProps, palette: "warning", children: [
3045
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(NotificationHeading, { palette: "warning", children: heading }),
3046
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(NotificationDescription, { palette: "warning", children: description })
2972
3047
  ] });
2973
3048
  case "danger":
2974
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Notification, { ...sharedProps, palette: "danger", children: [
2975
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(NotificationHeading, { palette: "danger", children: heading }),
2976
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(NotificationDescription, { palette: "danger", children: description })
3049
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Notification, { ...sharedProps, palette: "danger", children: [
3050
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(NotificationHeading, { palette: "danger", children: heading }),
3051
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(NotificationDescription, { palette: "danger", children: description })
2977
3052
  ] });
2978
3053
  case "info":
2979
3054
  default:
2980
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Notification, { ...sharedProps, palette: "info", children: [
2981
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(NotificationHeading, { palette: "info", children: heading }),
2982
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(NotificationDescription, { palette: "info", children: description })
3055
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Notification, { ...sharedProps, palette: "info", children: [
3056
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(NotificationHeading, { palette: "info", children: heading }),
3057
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(NotificationDescription, { palette: "info", children: description })
2983
3058
  ] });
2984
3059
  }
2985
3060
  }
2986
3061
  function useNotificationCenter() {
2987
- const context = (0, import_react23.useContext)(NotificationsContext);
3062
+ const context = (0, import_react25.useContext)(NotificationsContext);
2988
3063
  if (!context) {
2989
3064
  throw new Error(
2990
3065
  "useNotificationCenter must be used within a NotificationsProvider"
@@ -2994,34 +3069,34 @@ function useNotificationCenter() {
2994
3069
  }
2995
3070
 
2996
3071
  // src/context/prompt-modal.tsx
2997
- var import_react24 = require("react");
2998
- var import_css48 = require("@cerberus/styled-system/css");
3072
+ var import_react26 = require("react");
3073
+ var import_css50 = require("@cerberus/styled-system/css");
2999
3074
  var import_patterns17 = require("@cerberus/styled-system/patterns");
3000
- var import_jsx_runtime57 = require("react/jsx-runtime");
3001
- var PromptModalContext = (0, import_react24.createContext)(null);
3075
+ var import_jsx_runtime59 = require("react/jsx-runtime");
3076
+ var PromptModalContext = (0, import_react26.createContext)(null);
3002
3077
  function PromptModal(props) {
3003
3078
  const { modalRef, show, close } = useModal();
3004
- const resolveRef = (0, import_react24.useRef)(null);
3005
- const [content, setContent] = (0, import_react24.useState)(null);
3006
- const [inputValue, setInputValue] = (0, import_react24.useState)("");
3079
+ const resolveRef = (0, import_react26.useRef)(null);
3080
+ const [content, setContent] = (0, import_react26.useState)(null);
3081
+ const [inputValue, setInputValue] = (0, import_react26.useState)("");
3007
3082
  const focusTrap = trapFocus(modalRef);
3008
3083
  const { icons } = useCerberusContext();
3009
3084
  const { promptModal: PromptIcon } = icons;
3010
- const isValid = (0, import_react24.useMemo)(
3085
+ const isValid = (0, import_react26.useMemo)(
3011
3086
  () => inputValue === (content == null ? void 0 : content.key),
3012
3087
  [inputValue, content]
3013
3088
  );
3014
- const palette = (0, import_react24.useMemo)(
3089
+ const palette = (0, import_react26.useMemo)(
3015
3090
  () => (content == null ? void 0 : content.kind) === "destructive" ? "danger" : "action",
3016
3091
  [content]
3017
3092
  );
3018
- const handleChange = (0, import_react24.useCallback)(
3093
+ const handleChange = (0, import_react26.useCallback)(
3019
3094
  (e) => {
3020
3095
  setInputValue(e.currentTarget.value);
3021
3096
  },
3022
3097
  [content]
3023
3098
  );
3024
- const handleChoice = (0, import_react24.useCallback)(
3099
+ const handleChoice = (0, import_react26.useCallback)(
3025
3100
  (e) => {
3026
3101
  var _a;
3027
3102
  const target = e.currentTarget;
@@ -3032,7 +3107,7 @@ function PromptModal(props) {
3032
3107
  },
3033
3108
  [inputValue, close]
3034
3109
  );
3035
- const handleShow = (0, import_react24.useCallback)(
3110
+ const handleShow = (0, import_react26.useCallback)(
3036
3111
  (options) => {
3037
3112
  return new Promise((resolve) => {
3038
3113
  setContent({ ...options, kind: options.kind || "non-destructive" });
@@ -3042,42 +3117,42 @@ function PromptModal(props) {
3042
3117
  },
3043
3118
  [show]
3044
3119
  );
3045
- const value = (0, import_react24.useMemo)(
3120
+ const value = (0, import_react26.useMemo)(
3046
3121
  () => ({
3047
3122
  show: handleShow
3048
3123
  }),
3049
3124
  [handleShow]
3050
3125
  );
3051
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(PromptModalContext.Provider, { value, children: [
3126
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(PromptModalContext.Provider, { value, children: [
3052
3127
  props.children,
3053
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Modal, { onKeyDown: focusTrap, ref: modalRef, children: [
3054
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(ModalHeader, { children: [
3055
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
3128
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Modal, { onKeyDown: focusTrap, ref: modalRef, children: [
3129
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(ModalHeader, { children: [
3130
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3056
3131
  "div",
3057
3132
  {
3058
3133
  className: (0, import_patterns17.hstack)({
3059
3134
  justify: "center",
3060
3135
  w: "full"
3061
3136
  }),
3062
- children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
3137
+ children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3063
3138
  Show,
3064
3139
  {
3065
3140
  when: palette === "danger",
3066
- fallback: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
3141
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3067
3142
  Avatar,
3068
3143
  {
3069
3144
  ariaLabel: "",
3070
3145
  gradient: "charon-light",
3071
- icon: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(PromptIcon, { size: 24 }),
3146
+ icon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(PromptIcon, { size: 24 }),
3072
3147
  src: ""
3073
3148
  }
3074
3149
  ),
3075
- children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
3150
+ children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3076
3151
  Avatar,
3077
3152
  {
3078
3153
  ariaLabel: "",
3079
3154
  gradient: "hades-dark",
3080
- icon: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(PromptIcon, { size: 24 }),
3155
+ icon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(PromptIcon, { size: 24 }),
3081
3156
  src: ""
3082
3157
  }
3083
3158
  )
@@ -3085,10 +3160,10 @@ function PromptModal(props) {
3085
3160
  )
3086
3161
  }
3087
3162
  ),
3088
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ModalHeading, { children: content == null ? void 0 : content.heading }),
3089
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ModalDescription, { children: content == null ? void 0 : content.description })
3163
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ModalHeading, { children: content == null ? void 0 : content.heading }),
3164
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ModalDescription, { children: content == null ? void 0 : content.description })
3090
3165
  ] }),
3091
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
3166
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3092
3167
  "div",
3093
3168
  {
3094
3169
  className: (0, import_patterns17.vstack)({
@@ -3096,11 +3171,11 @@ function PromptModal(props) {
3096
3171
  mt: "4",
3097
3172
  mb: "8"
3098
3173
  }),
3099
- children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Field, { invalid: !isValid, children: [
3100
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
3174
+ children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Field, { invalid: !isValid, children: [
3175
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
3101
3176
  Label,
3102
3177
  {
3103
- className: (0, import_css48.css)({
3178
+ className: (0, import_css50.css)({
3104
3179
  gap: 1,
3105
3180
  justifyContent: "flex-start"
3106
3181
  }),
@@ -3108,10 +3183,10 @@ function PromptModal(props) {
3108
3183
  size: "md",
3109
3184
  children: [
3110
3185
  "Type",
3111
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
3186
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3112
3187
  "strong",
3113
3188
  {
3114
- className: (0, import_css48.css)({
3189
+ className: (0, import_css50.css)({
3115
3190
  textTransform: "uppercase"
3116
3191
  }),
3117
3192
  children: content == null ? void 0 : content.key
@@ -3121,7 +3196,7 @@ function PromptModal(props) {
3121
3196
  ]
3122
3197
  }
3123
3198
  ),
3124
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
3199
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3125
3200
  Input,
3126
3201
  {
3127
3202
  id: "confirm",
@@ -3133,7 +3208,7 @@ function PromptModal(props) {
3133
3208
  ] })
3134
3209
  }
3135
3210
  ),
3136
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
3211
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
3137
3212
  "div",
3138
3213
  {
3139
3214
  className: (0, import_patterns17.hstack)({
@@ -3141,11 +3216,11 @@ function PromptModal(props) {
3141
3216
  gap: "4"
3142
3217
  }),
3143
3218
  children: [
3144
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
3219
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3145
3220
  Button,
3146
3221
  {
3147
3222
  autoFocus: true,
3148
- className: (0, import_css48.css)({
3223
+ className: (0, import_css50.css)({
3149
3224
  w: "1/2"
3150
3225
  }),
3151
3226
  disabled: !isValid,
@@ -3156,10 +3231,10 @@ function PromptModal(props) {
3156
3231
  children: content == null ? void 0 : content.actionText
3157
3232
  }
3158
3233
  ),
3159
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
3234
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3160
3235
  Button,
3161
3236
  {
3162
- className: (0, import_css48.css)({
3237
+ className: (0, import_css50.css)({
3163
3238
  w: "1/2"
3164
3239
  }),
3165
3240
  name: "cancel",
@@ -3176,7 +3251,7 @@ function PromptModal(props) {
3176
3251
  ] });
3177
3252
  }
3178
3253
  function usePromptModal() {
3179
- const context = (0, import_react24.useContext)(PromptModalContext);
3254
+ const context = (0, import_react26.useContext)(PromptModalContext);
3180
3255
  if (context === null) {
3181
3256
  throw new Error("usePromptModal must be used within a PromptModal Provider");
3182
3257
  }
@@ -3184,50 +3259,50 @@ function usePromptModal() {
3184
3259
  }
3185
3260
 
3186
3261
  // src/context/theme.tsx
3187
- var import_react26 = require("react");
3262
+ var import_react28 = require("react");
3188
3263
 
3189
3264
  // src/hooks/useTheme.ts
3190
- var import_react25 = require("react");
3265
+ var import_react27 = require("react");
3191
3266
  var THEME_KEY = "cerberus-theme";
3192
3267
  var MODE_KEY = "cerberus-mode";
3193
3268
  function useTheme(defaultTheme = "cerberus", defaultColorMode = "light", options = {}) {
3194
3269
  const { updateMode, updateTheme, cache } = options;
3195
- const [theme, setTheme] = (0, import_react25.useState)(defaultTheme);
3196
- const [colorMode, setColorMode] = (0, import_react25.useState)(defaultColorMode);
3197
- const handleThemeChange = (0, import_react25.useCallback)(
3270
+ const [theme, setTheme] = (0, import_react27.useState)(defaultTheme);
3271
+ const [colorMode, setColorMode] = (0, import_react27.useState)(defaultColorMode);
3272
+ const handleThemeChange = (0, import_react27.useCallback)(
3198
3273
  (newTheme) => {
3199
3274
  setTheme(newTheme);
3200
3275
  updateTheme == null ? void 0 : updateTheme(newTheme);
3201
3276
  },
3202
3277
  [updateTheme]
3203
3278
  );
3204
- const handleColorModeChange = (0, import_react25.useCallback)(
3279
+ const handleColorModeChange = (0, import_react27.useCallback)(
3205
3280
  (newMode) => {
3206
3281
  setColorMode(newMode);
3207
3282
  updateMode == null ? void 0 : updateMode(newMode);
3208
3283
  },
3209
3284
  [updateMode]
3210
3285
  );
3211
- (0, import_react25.useLayoutEffect)(() => {
3286
+ (0, import_react27.useLayoutEffect)(() => {
3212
3287
  const theme2 = localStorage.getItem(THEME_KEY);
3213
3288
  if (theme2) {
3214
3289
  setTheme(theme2);
3215
3290
  }
3216
3291
  }, []);
3217
- (0, import_react25.useLayoutEffect)(() => {
3292
+ (0, import_react27.useLayoutEffect)(() => {
3218
3293
  const mode = localStorage.getItem(MODE_KEY);
3219
3294
  if (mode) {
3220
3295
  setColorMode(mode);
3221
3296
  }
3222
3297
  }, []);
3223
- (0, import_react25.useEffect)(() => {
3298
+ (0, import_react27.useEffect)(() => {
3224
3299
  const root = document.documentElement;
3225
3300
  root.dataset.pandaTheme = theme;
3226
3301
  if (cache) {
3227
3302
  localStorage.setItem(THEME_KEY, theme);
3228
3303
  }
3229
3304
  }, [theme, cache]);
3230
- (0, import_react25.useEffect)(() => {
3305
+ (0, import_react27.useEffect)(() => {
3231
3306
  const root = document.documentElement;
3232
3307
  if (colorMode === "system") {
3233
3308
  root.dataset.colorMode = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
@@ -3238,7 +3313,7 @@ function useTheme(defaultTheme = "cerberus", defaultColorMode = "light", options
3238
3313
  localStorage.setItem(MODE_KEY, colorMode);
3239
3314
  }
3240
3315
  }, [colorMode, cache]);
3241
- return (0, import_react25.useMemo)(
3316
+ return (0, import_react27.useMemo)(
3242
3317
  () => ({
3243
3318
  theme,
3244
3319
  mode: colorMode,
@@ -3250,8 +3325,8 @@ function useTheme(defaultTheme = "cerberus", defaultColorMode = "light", options
3250
3325
  }
3251
3326
 
3252
3327
  // src/context/theme.tsx
3253
- var import_jsx_runtime58 = require("react/jsx-runtime");
3254
- var ThemeContext = (0, import_react26.createContext)(
3328
+ var import_jsx_runtime60 = require("react/jsx-runtime");
3329
+ var ThemeContext = (0, import_react28.createContext)(
3255
3330
  null
3256
3331
  );
3257
3332
  function ThemeProvider(props) {
@@ -3260,10 +3335,10 @@ function ThemeProvider(props) {
3260
3335
  updateMode: props.updateMode,
3261
3336
  updateTheme: props.updateTheme
3262
3337
  });
3263
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ThemeContext.Provider, { value: state, children: props.children });
3338
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ThemeContext.Provider, { value: state, children: props.children });
3264
3339
  }
3265
3340
  function useThemeContext() {
3266
- const context = (0, import_react26.useContext)(ThemeContext);
3341
+ const context = (0, import_react28.useContext)(ThemeContext);
3267
3342
  if (!context) {
3268
3343
  throw new Error("useThemeContext must be used within a ThemeProvider");
3269
3344
  }
@@ -3271,13 +3346,13 @@ function useThemeContext() {
3271
3346
  }
3272
3347
 
3273
3348
  // src/hooks/useDate.ts
3274
- var import_react27 = require("react");
3349
+ var import_react29 = require("react");
3275
3350
  function useDate(options) {
3276
3351
  const initialValue = (options == null ? void 0 : options.initialValue) ?? "";
3277
3352
  const format = (options == null ? void 0 : options.format) ?? DateFormats.USMilitary;
3278
3353
  const onChange = options == null ? void 0 : options.onChange;
3279
- const [value, setValue] = (0, import_react27.useState)(initialValue);
3280
- const handleChange = (0, import_react27.useCallback)(
3354
+ const [value, setValue] = (0, import_react29.useState)(initialValue);
3355
+ const handleChange = (0, import_react29.useCallback)(
3281
3356
  (e) => {
3282
3357
  const newValue = formatMilitaryDate(e.currentTarget.value);
3283
3358
  if (onChange) onChange(e);
@@ -3285,7 +3360,7 @@ function useDate(options) {
3285
3360
  },
3286
3361
  [onChange]
3287
3362
  );
3288
- return (0, import_react27.useMemo)(
3363
+ return (0, import_react29.useMemo)(
3289
3364
  () => ({
3290
3365
  format,
3291
3366
  value,
@@ -3364,11 +3439,11 @@ var MONTHS = [
3364
3439
  ];
3365
3440
 
3366
3441
  // src/hooks/useToggle.ts
3367
- var import_react28 = require("react");
3442
+ var import_react30 = require("react");
3368
3443
  function useToggle(options) {
3369
- const [checked, setChecked] = (0, import_react28.useState)((options == null ? void 0 : options.checked) ?? "");
3444
+ const [checked, setChecked] = (0, import_react30.useState)((options == null ? void 0 : options.checked) ?? "");
3370
3445
  const onChange = options == null ? void 0 : options.onChange;
3371
- const handleChange = (0, import_react28.useCallback)(
3446
+ const handleChange = (0, import_react30.useCallback)(
3372
3447
  (e) => {
3373
3448
  const target = e.currentTarget;
3374
3449
  setChecked((prev) => {
@@ -3378,25 +3453,25 @@ function useToggle(options) {
3378
3453
  },
3379
3454
  [onChange]
3380
3455
  );
3381
- return (0, import_react28.useMemo)(() => ({ checked, handleChange }), [checked, handleChange]);
3456
+ return (0, import_react30.useMemo)(() => ({ checked, handleChange }), [checked, handleChange]);
3382
3457
  }
3383
3458
 
3384
3459
  // src/hooks/useRootColors.ts
3385
- var import_react29 = require("react");
3460
+ var import_react31 = require("react");
3386
3461
  function useRootColors(colors = []) {
3387
- const [state, dispatch] = (0, import_react29.useReducer)(rootColorsReducer, {});
3388
- const handleRefetch = (0, import_react29.useCallback)(() => {
3462
+ const [state, dispatch] = (0, import_react31.useReducer)(rootColorsReducer, {});
3463
+ const handleRefetch = (0, import_react31.useCallback)(() => {
3389
3464
  return new Promise((resolve) => {
3390
3465
  dispatch(formatColors(colors));
3391
3466
  resolve();
3392
3467
  });
3393
3468
  }, []);
3394
- (0, import_react29.useEffect)(() => {
3469
+ (0, import_react31.useEffect)(() => {
3395
3470
  if (Object.keys(state).length === colors.length) return;
3396
3471
  dispatch(formatColors(colors));
3397
3472
  console.log("updating colors in root hook");
3398
3473
  }, [colors]);
3399
- return (0, import_react29.useMemo)(
3474
+ return (0, import_react31.useMemo)(
3400
3475
  () => ({ colors: state, refetch: handleRefetch }),
3401
3476
  [state, handleRefetch]
3402
3477
  );
@@ -3417,9 +3492,9 @@ function rootColorsReducer(state, action) {
3417
3492
  }
3418
3493
 
3419
3494
  // src/config/icons/checkbox.icons.tsx
3420
- var import_jsx_runtime59 = require("react/jsx-runtime");
3495
+ var import_jsx_runtime61 = require("react/jsx-runtime");
3421
3496
  function CheckmarkIcon(props) {
3422
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3497
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3423
3498
  "svg",
3424
3499
  {
3425
3500
  "aria-hidden": "true",
@@ -3428,7 +3503,7 @@ function CheckmarkIcon(props) {
3428
3503
  role: "img",
3429
3504
  viewBox: "0 0 24 24",
3430
3505
  ...props,
3431
- children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3506
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3432
3507
  "path",
3433
3508
  {
3434
3509
  fill: "currentColor",
@@ -3439,7 +3514,7 @@ function CheckmarkIcon(props) {
3439
3514
  );
3440
3515
  }
3441
3516
  function IndeterminateIcon(props) {
3442
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3517
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3443
3518
  "svg",
3444
3519
  {
3445
3520
  "aria-hidden": "true",
@@ -3448,15 +3523,15 @@ function IndeterminateIcon(props) {
3448
3523
  fill: "none",
3449
3524
  viewBox: "0 0 24 24",
3450
3525
  ...props,
3451
- children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("path", { fill: "currentColor", d: "M4 11h16v2.667H4z" })
3526
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("path", { fill: "currentColor", d: "M4 11h16v2.667H4z" })
3452
3527
  }
3453
3528
  );
3454
3529
  }
3455
3530
 
3456
3531
  // src/components/AnimatingUploadIcon.tsx
3457
- var import_jsx_runtime60 = require("react/jsx-runtime");
3532
+ var import_jsx_runtime62 = require("react/jsx-runtime");
3458
3533
  function AnimatingUploadIcon(props) {
3459
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3534
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3460
3535
  "svg",
3461
3536
  {
3462
3537
  "aria-hidden": "true",
@@ -3464,7 +3539,7 @@ function AnimatingUploadIcon(props) {
3464
3539
  width: props.size ?? "1em",
3465
3540
  height: props.size ?? "1em",
3466
3541
  viewBox: "0 0 24 24",
3467
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
3542
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
3468
3543
  "g",
3469
3544
  {
3470
3545
  fill: "none",
@@ -3473,14 +3548,14 @@ function AnimatingUploadIcon(props) {
3473
3548
  strokeLinejoin: "round",
3474
3549
  strokeWidth: 1.5,
3475
3550
  children: [
3476
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3551
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3477
3552
  "path",
3478
3553
  {
3479
3554
  "data-name": "animating-trail",
3480
3555
  strokeDasharray: "2 4",
3481
3556
  strokeDashoffset: 6,
3482
3557
  d: "M12 21c-4.97 0 -9 -4.03 -9 -9c0 -4.97 4.03 -9 9 -9",
3483
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3558
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3484
3559
  "animate",
3485
3560
  {
3486
3561
  attributeName: "stroke-dashoffset",
@@ -3491,14 +3566,14 @@ function AnimatingUploadIcon(props) {
3491
3566
  )
3492
3567
  }
3493
3568
  ),
3494
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3569
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3495
3570
  "path",
3496
3571
  {
3497
3572
  "data-name": "half-circle",
3498
3573
  strokeDasharray: 32,
3499
3574
  strokeDashoffset: 32,
3500
3575
  d: "M12 3c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9",
3501
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3576
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3502
3577
  "animate",
3503
3578
  {
3504
3579
  fill: "freeze",
@@ -3510,7 +3585,7 @@ function AnimatingUploadIcon(props) {
3510
3585
  )
3511
3586
  }
3512
3587
  ),
3513
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3588
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3514
3589
  "svg",
3515
3590
  {
3516
3591
  "aria-hidden": "true",
@@ -3520,7 +3595,7 @@ function AnimatingUploadIcon(props) {
3520
3595
  x: "27%",
3521
3596
  y: "27%",
3522
3597
  viewBox: "0 0 24 24",
3523
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3598
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3524
3599
  "polygon",
3525
3600
  {
3526
3601
  fill: "currentColor",
@@ -3528,7 +3603,7 @@ function AnimatingUploadIcon(props) {
3528
3603
  strokeWidth: 0.8,
3529
3604
  opacity: "1",
3530
3605
  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 ",
3531
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3606
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3532
3607
  "animate",
3533
3608
  {
3534
3609
  fill: "freeze",
@@ -3611,6 +3686,16 @@ __reExport(src_exports, require("@dnd-kit/core"), module.exports);
3611
3686
  DatePickerViewControl,
3612
3687
  DatePickerViewControlGroup,
3613
3688
  DatePickerYearView,
3689
+ Dialog,
3690
+ DialogBackdrop,
3691
+ DialogCloseIconTrigger,
3692
+ DialogCloseTrigger,
3693
+ DialogContent,
3694
+ DialogDescription,
3695
+ DialogHeading,
3696
+ DialogPositioner,
3697
+ DialogProvider,
3698
+ DialogTrigger,
3614
3699
  Droppable,
3615
3700
  FeatureFlag,
3616
3701
  FeatureFlags,