@cerberus-design/react 0.15.0-next-e0ce56e → 0.15.0-next-739c492

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 (204) hide show
  1. package/build/legacy/_tsup-dts-rollup.d.cts +313 -112
  2. package/build/legacy/components/Checkbox.cjs +27 -35
  3. package/build/legacy/components/Checkbox.cjs.map +1 -1
  4. package/build/legacy/components/DatePicker.client.cjs +67 -89
  5. package/build/legacy/components/DatePicker.client.cjs.map +1 -1
  6. package/build/legacy/components/Fieldset.cjs +4 -17
  7. package/build/legacy/components/Fieldset.cjs.map +1 -1
  8. package/build/legacy/components/FieldsetLabel.cjs.map +1 -1
  9. package/build/legacy/components/FileStatus.cjs +126 -79
  10. package/build/legacy/components/FileStatus.cjs.map +1 -1
  11. package/build/legacy/components/Legend.cjs +10 -22
  12. package/build/legacy/components/Legend.cjs.map +1 -1
  13. package/build/legacy/components/Radio.cjs +4 -21
  14. package/build/legacy/components/Radio.cjs.map +1 -1
  15. package/build/legacy/components/Select.cjs +19 -54
  16. package/build/legacy/components/Select.cjs.map +1 -1
  17. package/build/legacy/components/Toggle.cjs +17 -24
  18. package/build/legacy/components/Toggle.cjs.map +1 -1
  19. package/build/legacy/components/button/button.cjs +1 -1
  20. package/build/legacy/components/button/button.cjs.map +1 -1
  21. package/build/legacy/components/button/index.cjs +1 -1
  22. package/build/legacy/components/button/index.cjs.map +1 -1
  23. package/build/legacy/components/button/parts.cjs +1 -1
  24. package/build/legacy/components/button/parts.cjs.map +1 -1
  25. package/build/legacy/components/{FieldMessage.cjs → deprecated/FieldMessage.cjs} +4 -17
  26. package/build/legacy/components/deprecated/FieldMessage.cjs.map +1 -0
  27. package/build/legacy/components/{Textarea.cjs → deprecated/Label.cjs} +24 -36
  28. package/build/legacy/components/deprecated/Label.cjs.map +1 -0
  29. package/build/legacy/components/field/field.cjs +130 -0
  30. package/build/legacy/components/field/field.cjs.map +1 -0
  31. package/build/legacy/components/field/index.cjs +261 -0
  32. package/build/legacy/components/field/index.cjs.map +1 -0
  33. package/build/legacy/components/field/parts.cjs +184 -0
  34. package/build/legacy/components/field/parts.cjs.map +1 -0
  35. package/build/legacy/components/field/primitives.cjs +186 -0
  36. package/build/legacy/components/field/primitives.cjs.map +1 -0
  37. package/build/legacy/components/field/start-indicator.cjs +45 -0
  38. package/build/legacy/components/field/start-indicator.cjs.map +1 -0
  39. package/build/legacy/components/field/status-indicator.cjs +78 -0
  40. package/build/legacy/components/field/status-indicator.cjs.map +1 -0
  41. package/build/legacy/context/confirm-modal.cjs +1 -1
  42. package/build/legacy/context/confirm-modal.cjs.map +1 -1
  43. package/build/legacy/context/cta-modal.cjs +1 -1
  44. package/build/legacy/context/cta-modal.cjs.map +1 -1
  45. package/build/legacy/context/field.cjs +23 -4
  46. package/build/legacy/context/field.cjs.map +1 -1
  47. package/build/legacy/context/notification-center.cjs.map +1 -1
  48. package/build/legacy/context/prompt-modal.cjs +168 -166
  49. package/build/legacy/context/prompt-modal.cjs.map +1 -1
  50. package/build/legacy/hooks/useDate.cjs.map +1 -1
  51. package/build/legacy/index.cjs +1156 -1067
  52. package/build/legacy/index.cjs.map +1 -1
  53. package/build/legacy/utils/index.cjs +22 -2
  54. package/build/legacy/utils/index.cjs.map +1 -1
  55. package/build/modern/_tsup-dts-rollup.d.ts +313 -112
  56. package/build/modern/{chunk-2JX27W6Y.js → chunk-2BIHLH4V.js} +2 -2
  57. package/build/modern/chunk-2BIHLH4V.js.map +1 -0
  58. package/build/modern/{chunk-3ZDFQO25.js → chunk-6EUC3SUI.js} +4 -7
  59. package/build/modern/chunk-6EUC3SUI.js.map +1 -0
  60. package/build/modern/{chunk-MER66QUY.js → chunk-6KZVE4HC.js} +1 -1
  61. package/build/modern/{chunk-MER66QUY.js.map → chunk-6KZVE4HC.js.map} +1 -1
  62. package/build/modern/{chunk-FTPZHG6J.js → chunk-6WOJAMZV.js} +3 -9
  63. package/build/modern/chunk-6WOJAMZV.js.map +1 -0
  64. package/build/modern/chunk-7VA5SXTY.js +31 -0
  65. package/build/modern/chunk-7VA5SXTY.js.map +1 -0
  66. package/build/modern/chunk-7YVOZULL.js +23 -0
  67. package/build/modern/chunk-7YVOZULL.js.map +1 -0
  68. package/build/modern/{chunk-KU2AWAK3.js → chunk-B2A6QFKT.js} +4 -17
  69. package/build/modern/chunk-B2A6QFKT.js.map +1 -0
  70. package/build/modern/chunk-BL7G3577.js +29 -0
  71. package/build/modern/chunk-BL7G3577.js.map +1 -0
  72. package/build/modern/chunk-C5NL3X7W.js +96 -0
  73. package/build/modern/chunk-C5NL3X7W.js.map +1 -0
  74. package/build/modern/chunk-CNA2VKAH.js +43 -0
  75. package/build/modern/chunk-CNA2VKAH.js.map +1 -0
  76. package/build/modern/{chunk-Z7FGXAND.js → chunk-FMRWRVUS.js} +2 -2
  77. package/build/modern/{chunk-NGOLRISW.js → chunk-FVE4GBB7.js} +9 -8
  78. package/build/modern/chunk-FVE4GBB7.js.map +1 -0
  79. package/build/modern/{chunk-7P7OWBGV.js → chunk-G2VFEBY4.js} +8 -8
  80. package/build/modern/chunk-G2VFEBY4.js.map +1 -0
  81. package/build/modern/{chunk-XQICKZH4.js → chunk-GENS32QO.js} +10 -8
  82. package/build/modern/chunk-GENS32QO.js.map +1 -0
  83. package/build/modern/{chunk-Q4IV5NUT.js → chunk-GNPGG4ND.js} +37 -40
  84. package/build/modern/chunk-GNPGG4ND.js.map +1 -0
  85. package/build/modern/{chunk-7S47NSGR.js → chunk-H54FR7IP.js} +2 -2
  86. package/build/modern/chunk-IGSC4IEA.js +37 -0
  87. package/build/modern/chunk-IGSC4IEA.js.map +1 -0
  88. package/build/modern/{chunk-JWIJHSI6.js → chunk-L7N24B6B.js} +3 -6
  89. package/build/modern/chunk-L7N24B6B.js.map +1 -0
  90. package/build/modern/{chunk-3RGRHMJQ.js → chunk-LCN7LYTU.js} +5 -5
  91. package/build/modern/{chunk-3BM6MZ4A.js → chunk-MWRO5QYD.js} +1 -1
  92. package/build/modern/chunk-MWRO5QYD.js.map +1 -0
  93. package/build/modern/{chunk-PZAZKQMO.js → chunk-OYT7RGC7.js} +1 -1
  94. package/build/modern/chunk-OYT7RGC7.js.map +1 -0
  95. package/build/modern/{chunk-ILQW5VZT.js → chunk-RBNOEAWJ.js} +4 -7
  96. package/build/modern/chunk-RBNOEAWJ.js.map +1 -0
  97. package/build/modern/{chunk-5QONP7GT.js → chunk-S2X5OEPK.js} +2 -10
  98. package/build/modern/chunk-S2X5OEPK.js.map +1 -0
  99. package/build/modern/chunk-TYPULJMJ.js +1 -0
  100. package/build/modern/chunk-Z52R6ABJ.js +21 -0
  101. package/build/modern/chunk-Z52R6ABJ.js.map +1 -0
  102. package/build/modern/components/Checkbox.js +1 -2
  103. package/build/modern/components/DatePicker.client.js +3 -4
  104. package/build/modern/components/Fieldset.js +1 -2
  105. package/build/modern/components/FieldsetLabel.js +1 -1
  106. package/build/modern/components/FileStatus.js +9 -3
  107. package/build/modern/components/Legend.js +1 -2
  108. package/build/modern/components/Radio.js +1 -3
  109. package/build/modern/components/Select.js +1 -2
  110. package/build/modern/components/Toggle.js +1 -2
  111. package/build/modern/components/button/button.js +1 -1
  112. package/build/modern/components/button/index.js +2 -2
  113. package/build/modern/components/button/parts.js +2 -2
  114. package/build/modern/components/deprecated/FieldMessage.js +8 -0
  115. package/build/modern/components/deprecated/Label.js +17 -0
  116. package/build/modern/components/field/field.js +14 -0
  117. package/build/modern/components/field/index.js +42 -0
  118. package/build/modern/components/field/index.js.map +1 -0
  119. package/build/modern/components/field/parts.js +11 -0
  120. package/build/modern/components/field/parts.js.map +1 -0
  121. package/build/modern/components/field/primitives.js +24 -0
  122. package/build/modern/components/field/primitives.js.map +1 -0
  123. package/build/modern/components/field/start-indicator.js +7 -0
  124. package/build/modern/components/field/start-indicator.js.map +1 -0
  125. package/build/modern/components/field/status-indicator.js +9 -0
  126. package/build/modern/components/field/status-indicator.js.map +1 -0
  127. package/build/modern/context/confirm-modal.js +2 -2
  128. package/build/modern/context/cta-modal.js +4 -4
  129. package/build/modern/context/field.js +34 -4
  130. package/build/modern/context/field.js.map +1 -1
  131. package/build/modern/context/notification-center.js +2 -2
  132. package/build/modern/context/prompt-modal.js +10 -5
  133. package/build/modern/hooks/useDate.js +1 -1
  134. package/build/modern/index.js +85 -62
  135. package/build/modern/index.js.map +1 -1
  136. package/build/modern/utils/index.js +5 -3
  137. package/package.json +2 -2
  138. package/src/components/Checkbox.tsx +13 -9
  139. package/src/components/DatePicker.client.tsx +2 -14
  140. package/src/components/Fieldset.tsx +3 -3
  141. package/src/components/FieldsetLabel.tsx +5 -2
  142. package/src/components/FileStatus.tsx +4 -5
  143. package/src/components/Legend.tsx +5 -6
  144. package/src/components/Radio.tsx +2 -7
  145. package/src/components/Select.tsx +1 -16
  146. package/src/components/Toggle.tsx +14 -7
  147. package/src/components/button/button.tsx +1 -1
  148. package/src/components/button/parts.ts +6 -0
  149. package/src/components/{FieldMessage.tsx → deprecated/FieldMessage.tsx} +2 -13
  150. package/src/components/deprecated/Label.tsx +24 -0
  151. package/src/components/field/field.tsx +77 -0
  152. package/src/components/field/index.ts +5 -0
  153. package/src/components/field/parts.ts +71 -0
  154. package/src/components/field/primitives.tsx +197 -0
  155. package/src/components/field/start-indicator.tsx +23 -0
  156. package/src/components/field/status-indicator.tsx +58 -0
  157. package/src/context/field.tsx +6 -5
  158. package/src/context/prompt-modal.tsx +16 -18
  159. package/src/hooks/useDate.ts +1 -7
  160. package/src/index.ts +4 -6
  161. package/src/utils/index.ts +30 -0
  162. package/build/legacy/components/FieldMessage.cjs.map +0 -1
  163. package/build/legacy/components/Input.cjs +0 -95
  164. package/build/legacy/components/Input.cjs.map +0 -1
  165. package/build/legacy/components/Label.cjs +0 -93
  166. package/build/legacy/components/Label.cjs.map +0 -1
  167. package/build/legacy/components/Textarea.cjs.map +0 -1
  168. package/build/modern/chunk-2JX27W6Y.js.map +0 -1
  169. package/build/modern/chunk-3BM6MZ4A.js.map +0 -1
  170. package/build/modern/chunk-3ZDFQO25.js.map +0 -1
  171. package/build/modern/chunk-5QONP7GT.js.map +0 -1
  172. package/build/modern/chunk-7P7OWBGV.js.map +0 -1
  173. package/build/modern/chunk-C5EHJUS5.js +0 -10
  174. package/build/modern/chunk-C5EHJUS5.js.map +0 -1
  175. package/build/modern/chunk-FTPZHG6J.js.map +0 -1
  176. package/build/modern/chunk-ILQW5VZT.js.map +0 -1
  177. package/build/modern/chunk-JIJM6JFJ.js +0 -36
  178. package/build/modern/chunk-JIJM6JFJ.js.map +0 -1
  179. package/build/modern/chunk-JWIJHSI6.js.map +0 -1
  180. package/build/modern/chunk-KU2AWAK3.js.map +0 -1
  181. package/build/modern/chunk-NGOLRISW.js.map +0 -1
  182. package/build/modern/chunk-NMF2HYWO.js +0 -50
  183. package/build/modern/chunk-NMF2HYWO.js.map +0 -1
  184. package/build/modern/chunk-PZAZKQMO.js.map +0 -1
  185. package/build/modern/chunk-Q4IV5NUT.js.map +0 -1
  186. package/build/modern/chunk-UZDVOIW5.js +0 -33
  187. package/build/modern/chunk-UZDVOIW5.js.map +0 -1
  188. package/build/modern/chunk-VYCU7I4J.js +0 -43
  189. package/build/modern/chunk-VYCU7I4J.js.map +0 -1
  190. package/build/modern/chunk-XQICKZH4.js.map +0 -1
  191. package/build/modern/components/FieldMessage.js +0 -9
  192. package/build/modern/components/Input.js +0 -11
  193. package/build/modern/components/Label.js +0 -10
  194. package/build/modern/components/Textarea.js +0 -9
  195. package/src/components/Input.tsx +0 -69
  196. package/src/components/Label.tsx +0 -69
  197. package/src/components/Textarea.tsx +0 -52
  198. /package/build/modern/{chunk-Z7FGXAND.js.map → chunk-FMRWRVUS.js.map} +0 -0
  199. /package/build/modern/{chunk-7S47NSGR.js.map → chunk-H54FR7IP.js.map} +0 -0
  200. /package/build/modern/{chunk-3RGRHMJQ.js.map → chunk-LCN7LYTU.js.map} +0 -0
  201. /package/build/modern/{components/FieldMessage.js.map → chunk-TYPULJMJ.js.map} +0 -0
  202. /package/build/modern/components/{Input.js.map → deprecated/FieldMessage.js.map} +0 -0
  203. /package/build/modern/components/{Label.js.map → deprecated/Label.js.map} +0 -0
  204. /package/build/modern/components/{Textarea.js.map → field/field.js.map} +0 -0
@@ -70,8 +70,17 @@ __export(src_exports, {
70
70
  Droppable: () => Droppable,
71
71
  FeatureFlag: () => FeatureFlag,
72
72
  FeatureFlags: () => FeatureFlags,
73
- Field: () => Field,
73
+ Field: () => Field2,
74
+ FieldErrorText: () => FieldErrorText,
75
+ FieldHelperText: () => FieldHelperText,
76
+ FieldInput: () => FieldInput,
77
+ FieldLabel: () => FieldLabel,
74
78
  FieldMessage: () => FieldMessage,
79
+ FieldParts: () => FieldParts,
80
+ FieldRoot: () => FieldRoot,
81
+ FieldStartIndicator: () => FieldStartIndicator,
82
+ FieldStatusIndicator: () => FieldStatusIndicator,
83
+ FieldTextarea: () => FieldTextarea,
75
84
  Fieldset: () => Fieldset,
76
85
  FieldsetLabel: () => FieldsetLabel,
77
86
  FileStatus: () => FileStatus,
@@ -157,13 +166,13 @@ __export(src_exports, {
157
166
  makeSystemConfig: () => makeSystemConfig,
158
167
  processStatus: () => processStatus,
159
168
  setLocalStorage: () => setLocalStorage,
169
+ splitProps: () => splitProps,
160
170
  trapFocus: () => trapFocus,
161
171
  useCTAModal: () => useCTAModal,
162
172
  useCerberusContext: () => useCerberusContext,
163
173
  useConfirmModal: () => useConfirmModal,
164
174
  useDate: () => useDate,
165
175
  useFeatureFlags: () => useFeatureFlags,
166
- useFieldContext: () => useFieldContext,
167
176
  useModal: () => useModal,
168
177
  useNavMenuContext: () => useNavMenuContext,
169
178
  useNotificationCenter: () => useNotificationCenter,
@@ -176,33 +185,296 @@ __export(src_exports, {
176
185
  });
177
186
  module.exports = __toCommonJS(src_exports);
178
187
 
179
- // src/components/deprecated/Modal.tsx
188
+ // src/components/deprecated/FieldMessage.tsx
180
189
  var import_css = require("@cerberus/styled-system/css");
181
190
  var import_recipes = require("@cerberus/styled-system/recipes");
182
- var import_react = require("react");
191
+ var import_field = require("@ark-ui/react/field");
183
192
  var import_jsx_runtime = require("react/jsx-runtime");
184
- function ModalEl(props, ref) {
193
+ function FieldMessage(props) {
194
+ const { invalid } = (0, import_field.useFieldContext)();
185
195
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
196
+ "small",
197
+ {
198
+ ...props,
199
+ ...invalid && { "aria-invalid": true },
200
+ className: (0, import_css.cx)(props.className, (0, import_recipes.fieldMessage)())
201
+ }
202
+ );
203
+ }
204
+
205
+ // src/components/deprecated/Label.tsx
206
+ var import_recipes5 = require("@cerberus/styled-system/recipes");
207
+ var import_css5 = require("@cerberus/styled-system/css");
208
+
209
+ // src/utils/localStorage.ts
210
+ function getLocalStorage(key, defaultValue) {
211
+ const value = window.localStorage.getItem(key);
212
+ if (value) {
213
+ return value;
214
+ }
215
+ return defaultValue;
216
+ }
217
+ function setLocalStorage(key, value) {
218
+ const stringValue = typeof value === "string" ? value : JSON.stringify(value);
219
+ window.localStorage.setItem(key, stringValue);
220
+ }
221
+
222
+ // src/utils/index.ts
223
+ function formatNotifyCount(count) {
224
+ if (count > 99) return "99+";
225
+ return count.toString();
226
+ }
227
+ function splitProps(props, ...keyGroups) {
228
+ const result = keyGroups.map(() => ({}));
229
+ const rest = {};
230
+ for (const key in props) {
231
+ let assigned = false;
232
+ for (let i = 0; i < keyGroups.length; i++) {
233
+ if (keyGroups[i].includes(key)) {
234
+ result[i][key] = props[key];
235
+ assigned = true;
236
+ break;
237
+ }
238
+ }
239
+ if (!assigned) {
240
+ rest[key] = props[key];
241
+ }
242
+ }
243
+ return [...result, rest];
244
+ }
245
+
246
+ // src/components/field/primitives.tsx
247
+ var import_field2 = require("@ark-ui/react/field");
248
+ var import_css4 = require("@cerberus/styled-system/css");
249
+ var import_recipes4 = require("@cerberus/styled-system/recipes");
250
+
251
+ // src/components/field/status-indicator.tsx
252
+ var import_react2 = require("@ark-ui/react");
253
+ var import_css2 = require("@cerberus/styled-system/css");
254
+ var import_recipes2 = require("@cerberus/styled-system/recipes");
255
+
256
+ // src/context/cerberus.tsx
257
+ var import_react = require("react");
258
+ var import_jsx_runtime2 = require("react/jsx-runtime");
259
+ var CerberusContext = (0, import_react.createContext)(null);
260
+ function CerberusProvider(props) {
261
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(CerberusContext.Provider, { value: props.config, children: props.children });
262
+ }
263
+ function useCerberusContext() {
264
+ const context = (0, import_react.useContext)(CerberusContext);
265
+ if (!context) {
266
+ throw new Error("useCerberus must be used within a CerberusProvider");
267
+ }
268
+ return context;
269
+ }
270
+
271
+ // src/components/field/status-indicator.tsx
272
+ var import_jsx_runtime3 = require("react/jsx-runtime");
273
+ function FieldStatusIndicator(props) {
274
+ const { fallback, ...nativeProps } = props;
275
+ const styles = (0, import_recipes2.field)();
276
+ const fieldContext = (0, import_react2.useFieldContext)();
277
+ const { icons } = useCerberusContext();
278
+ const { invalid: InvalidIcon } = icons;
279
+ if (fieldContext.invalid) {
280
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
281
+ "span",
282
+ {
283
+ ...nativeProps,
284
+ "aria-hidden": "true",
285
+ "data-invalid": true,
286
+ className: (0, import_css2.cx)(nativeProps.className, styles.statusIndicator),
287
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(InvalidIcon, {})
288
+ }
289
+ );
290
+ }
291
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
292
+ "span",
293
+ {
294
+ ...nativeProps,
295
+ "aria-hidden": "true",
296
+ "data-part": "end-indicator",
297
+ className: (0, import_css2.cx)(nativeProps.className, styles.endIndicator),
298
+ children: fallback
299
+ }
300
+ );
301
+ }
302
+
303
+ // src/components/field/start-indicator.tsx
304
+ var import_css3 = require("@cerberus/styled-system/css");
305
+ var import_recipes3 = require("@cerberus/styled-system/recipes");
306
+ var import_jsx_runtime4 = require("react/jsx-runtime");
307
+ function FieldStartIndicator(props) {
308
+ const styles = (0, import_recipes3.field)();
309
+ if (!props.children) return null;
310
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
311
+ "span",
312
+ {
313
+ ...props,
314
+ "data-part": "start-indicator",
315
+ className: (0, import_css3.cx)(props.className, styles.startIndicator)
316
+ }
317
+ );
318
+ }
319
+
320
+ // src/components/field/primitives.tsx
321
+ var import_jsx_runtime5 = require("react/jsx-runtime");
322
+ function FieldRoot(props) {
323
+ const { size, ...fieldProps } = props;
324
+ const styles = (0, import_recipes4.field)({ size });
325
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
326
+ import_field2.Field.Root,
327
+ {
328
+ ...fieldProps,
329
+ className: (0, import_css4.cx)(styles.root, fieldProps.className)
330
+ }
331
+ );
332
+ }
333
+ function FieldLabel(props) {
334
+ const { children, ...nativeProps } = props;
335
+ const styles = (0, import_recipes4.field)();
336
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_field2.Field.Label, { ...nativeProps, className: (0, import_css4.cx)(styles.label, props.className), children: [
337
+ children,
338
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_field2.Field.RequiredIndicator, { children: "(required)" })
339
+ ] });
340
+ }
341
+ function FieldInput(props) {
342
+ const { size, startIcon, endIcon, ...fieldProps } = props;
343
+ const styles = (0, import_recipes4.field)({ size });
344
+ const hasStartIcon = Boolean(startIcon);
345
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: styles.inputRoot, children: [
346
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(FieldStartIndicator, { children: startIcon }),
347
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
348
+ import_field2.Field.Input,
349
+ {
350
+ ...fieldProps,
351
+ ...hasStartIcon && { "data-has": "start-indicator" },
352
+ className: (0, import_css4.cx)(styles.input, fieldProps.className)
353
+ }
354
+ ),
355
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(FieldStatusIndicator, { fallback: endIcon })
356
+ ] });
357
+ }
358
+ function FieldHelperText(props) {
359
+ const styles = (0, import_recipes4.field)();
360
+ if (!props.children) return null;
361
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
362
+ import_field2.Field.HelperText,
363
+ {
364
+ ...props,
365
+ className: (0, import_css4.cx)(styles.helperText, props.className)
366
+ }
367
+ );
368
+ }
369
+ function FieldErrorText(props) {
370
+ const styles = (0, import_recipes4.field)();
371
+ if (!props.children) return null;
372
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
373
+ import_field2.Field.ErrorText,
374
+ {
375
+ ...props,
376
+ className: (0, import_css4.cx)(styles.errorText, props.className)
377
+ }
378
+ );
379
+ }
380
+ function FieldTextarea(props) {
381
+ const styles = (0, import_recipes4.field)();
382
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
383
+ import_field2.Field.Textarea,
384
+ {
385
+ ...props,
386
+ className: (0, import_css4.cx)(styles.textarea, props.className)
387
+ }
388
+ );
389
+ }
390
+ var Input = FieldInput;
391
+ var Textarea = FieldTextarea;
392
+
393
+ // src/components/field/field.tsx
394
+ var import_jsx = require("@cerberus/styled-system/jsx");
395
+
396
+ // src/components/Show.tsx
397
+ var import_react3 = require("react");
398
+ function Show(props) {
399
+ const { when, children, fallback } = props;
400
+ const condition = (0, import_react3.useMemo)(() => when ?? false, [when]);
401
+ return (0, import_react3.useMemo)(() => {
402
+ if (condition) return children;
403
+ return fallback ?? null;
404
+ }, [condition, children, fallback]);
405
+ }
406
+
407
+ // src/components/field/field.tsx
408
+ var import_jsx_runtime6 = require("react/jsx-runtime");
409
+ function Field2(props) {
410
+ const [statusProps, fieldProps, rootProps] = splitProps(
411
+ props,
412
+ ["disabled", "required", "readOnly", "invalid"],
413
+ ["label", "helperText", "secondaryHelperText", "errorText", "children"]
414
+ );
415
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(FieldRoot, { ...statusProps, ...rootProps, children: [
416
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Show, { when: Boolean(fieldProps.label), children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(FieldLabel, { children: fieldProps.label }) }),
417
+ fieldProps.children,
418
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Show, { when: Boolean(fieldProps.helperText && !statusProps.invalid), children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx.HStack, { justifyContent: "space-between", w: "full", children: [
419
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(FieldHelperText, { children: fieldProps.helperText }),
420
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Show, { when: Boolean(fieldProps.secondaryHelperText), children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(FieldHelperText, { children: fieldProps.secondaryHelperText }) })
421
+ ] }) }),
422
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(FieldErrorText, { children: fieldProps.errorText })
423
+ ] });
424
+ }
425
+
426
+ // src/components/field/parts.ts
427
+ var FieldParts = {
428
+ Root: FieldRoot,
429
+ Label: FieldLabel,
430
+ Input: FieldInput,
431
+ Textarea: FieldTextarea,
432
+ HelperText: FieldHelperText,
433
+ ErrorText: FieldErrorText,
434
+ StartIndicator: FieldStartIndicator,
435
+ StatusIndicator: FieldStatusIndicator
436
+ };
437
+
438
+ // src/components/deprecated/Label.tsx
439
+ var import_jsx_runtime7 = require("react/jsx-runtime");
440
+ function Label(props) {
441
+ const { size, ...nativeProps } = props;
442
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
443
+ FieldLabel,
444
+ {
445
+ ...nativeProps,
446
+ className: (0, import_css5.cx)((0, import_recipes5.label)({ size }), props.className)
447
+ }
448
+ );
449
+ }
450
+
451
+ // src/components/deprecated/Modal.tsx
452
+ var import_css6 = require("@cerberus/styled-system/css");
453
+ var import_recipes6 = require("@cerberus/styled-system/recipes");
454
+ var import_react4 = require("react");
455
+ var import_jsx_runtime8 = require("react/jsx-runtime");
456
+ function ModalEl(props, ref) {
457
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
186
458
  "dialog",
187
459
  {
188
460
  ...props,
189
- className: (0, import_css.cx)(props.className, (0, import_recipes.modal)().dialog),
461
+ className: (0, import_css6.cx)(props.className, (0, import_recipes6.modal)().dialog),
190
462
  ref
191
463
  }
192
464
  );
193
465
  }
194
- var Modal = (0, import_react.forwardRef)(ModalEl);
466
+ var Modal = (0, import_react4.forwardRef)(ModalEl);
195
467
 
196
468
  // src/components/deprecated/ModalHeader.tsx
197
- var import_css2 = require("@cerberus/styled-system/css");
469
+ var import_css7 = require("@cerberus/styled-system/css");
198
470
  var import_patterns = require("@cerberus/styled-system/patterns");
199
- var import_jsx_runtime2 = require("react/jsx-runtime");
471
+ var import_jsx_runtime9 = require("react/jsx-runtime");
200
472
  function ModalHeader(props) {
201
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
473
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
202
474
  "div",
203
475
  {
204
476
  ...props,
205
- className: (0, import_css2.cx)(
477
+ className: (0, import_css7.cx)(
206
478
  props.className,
207
479
  (0, import_patterns.vstack)({
208
480
  alignItems: "flex-start",
@@ -215,25 +487,25 @@ function ModalHeader(props) {
215
487
  }
216
488
 
217
489
  // src/components/deprecated/ModalHeading.tsx
218
- var import_css3 = require("@cerberus/styled-system/css");
219
- var import_recipes2 = require("@cerberus/styled-system/recipes");
220
- var import_jsx_runtime3 = require("react/jsx-runtime");
490
+ var import_css8 = require("@cerberus/styled-system/css");
491
+ var import_recipes7 = require("@cerberus/styled-system/recipes");
492
+ var import_jsx_runtime10 = require("react/jsx-runtime");
221
493
  function ModalHeading(props) {
222
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { ...props, className: (0, import_css3.cx)(props.className, (0, import_recipes2.modal)().heading) });
494
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("p", { ...props, className: (0, import_css8.cx)(props.className, (0, import_recipes7.modal)().heading) });
223
495
  }
224
496
 
225
497
  // src/components/deprecated/ModalDescription.tsx
226
- var import_css4 = require("@cerberus/styled-system/css");
227
- var import_recipes3 = require("@cerberus/styled-system/recipes");
228
- var import_jsx_runtime4 = require("react/jsx-runtime");
498
+ var import_css9 = require("@cerberus/styled-system/css");
499
+ var import_recipes8 = require("@cerberus/styled-system/recipes");
500
+ var import_jsx_runtime11 = require("react/jsx-runtime");
229
501
  function ModalDescription(props) {
230
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { ...props, className: (0, import_css4.cx)(props.className, (0, import_recipes3.modal)().description) });
502
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { ...props, className: (0, import_css9.cx)(props.className, (0, import_recipes8.modal)().description) });
231
503
  }
232
504
 
233
505
  // src/components/deprecated/NavMenuTrigger.tsx
234
- var import_react4 = require("react");
235
- var import_css6 = require("@cerberus/styled-system/css");
236
- var import_recipes4 = require("@cerberus/styled-system/recipes");
506
+ var import_react6 = require("react");
507
+ var import_css11 = require("@cerberus/styled-system/css");
508
+ var import_recipes9 = require("@cerberus/styled-system/recipes");
237
509
 
238
510
  // src/aria-helpers/nav-menu.aria.ts
239
511
  function createNavTriggerProps(values) {
@@ -244,18 +516,18 @@ function createNavTriggerProps(values) {
244
516
  }
245
517
 
246
518
  // src/context/navMenu.tsx
247
- var import_css5 = require("@cerberus/styled-system/css");
248
- var import_react2 = require("react");
249
- var import_jsx_runtime5 = require("react/jsx-runtime");
250
- var NavMenuContext = (0, import_react2.createContext)(null);
519
+ var import_css10 = require("@cerberus/styled-system/css");
520
+ var import_react5 = require("react");
521
+ var import_jsx_runtime12 = require("react/jsx-runtime");
522
+ var NavMenuContext = (0, import_react5.createContext)(null);
251
523
  function NavMenu(props) {
252
- const triggerRef = (0, import_react2.useRef)(null);
253
- const menuRef = (0, import_react2.useRef)(null);
254
- const [expanded, setExpanded] = (0, import_react2.useState)(false);
255
- const handleToggle = (0, import_react2.useCallback)(() => {
524
+ const triggerRef = (0, import_react5.useRef)(null);
525
+ const menuRef = (0, import_react5.useRef)(null);
526
+ const [expanded, setExpanded] = (0, import_react5.useState)(false);
527
+ const handleToggle = (0, import_react5.useCallback)(() => {
256
528
  setExpanded((prev) => !prev);
257
529
  }, []);
258
- const value = (0, import_react2.useMemo)(
530
+ const value = (0, import_react5.useMemo)(
259
531
  () => ({
260
532
  triggerRef,
261
533
  menuRef,
@@ -264,10 +536,10 @@ function NavMenu(props) {
264
536
  }),
265
537
  [expanded, handleToggle]
266
538
  );
267
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(NavMenuContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
539
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(NavMenuContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
268
540
  "nav",
269
541
  {
270
- className: (0, import_css5.css)({
542
+ className: (0, import_css10.css)({
271
543
  position: "relative"
272
544
  }),
273
545
  children: props.children
@@ -275,26 +547,15 @@ function NavMenu(props) {
275
547
  ) });
276
548
  }
277
549
  function useNavMenuContext() {
278
- const context = (0, import_react2.useContext)(NavMenuContext);
550
+ const context = (0, import_react5.useContext)(NavMenuContext);
279
551
  if (!context) {
280
552
  throw new Error("useNavMenuContext must be used within a NavMenu.");
281
553
  }
282
554
  return context;
283
555
  }
284
556
 
285
- // src/components/Show.tsx
286
- var import_react3 = require("react");
287
- function Show(props) {
288
- const { when, children, fallback } = props;
289
- const condition = (0, import_react3.useMemo)(() => when ?? false, [when]);
290
- return (0, import_react3.useMemo)(() => {
291
- if (condition) return children;
292
- return fallback ?? null;
293
- }, [condition, children, fallback]);
294
- }
295
-
296
557
  // src/components/deprecated/NavMenuTrigger.tsx
297
- var import_jsx_runtime6 = require("react/jsx-runtime");
558
+ var import_jsx_runtime13 = require("react/jsx-runtime");
298
559
  function NavMenuTrigger(props) {
299
560
  const {
300
561
  as,
@@ -313,25 +574,25 @@ function NavMenuTrigger(props) {
313
574
  });
314
575
  const hasAs = Boolean(as);
315
576
  const AsSub = as;
316
- const handleClick = (0, import_react4.useCallback)(
577
+ const handleClick = (0, import_react6.useCallback)(
317
578
  (e) => {
318
579
  if (onClick) return onClick(e);
319
580
  onToggle();
320
581
  },
321
582
  [onClick, onToggle]
322
583
  );
323
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
584
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
324
585
  Show,
325
586
  {
326
587
  when: hasAs,
327
- fallback: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
588
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
328
589
  "button",
329
590
  {
330
591
  ...nativeProps,
331
592
  ...ariaProps,
332
- className: (0, import_css6.cx)(
593
+ className: (0, import_css11.cx)(
333
594
  nativeProps.className,
334
- (0, import_recipes4.button)({
595
+ (0, import_recipes9.button)({
335
596
  palette,
336
597
  usage,
337
598
  shape
@@ -342,7 +603,7 @@ function NavMenuTrigger(props) {
342
603
  children: props.children
343
604
  }
344
605
  ),
345
- children: hasAs && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
606
+ children: hasAs && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
346
607
  AsSub,
347
608
  {
348
609
  ...nativeProps,
@@ -356,10 +617,10 @@ function NavMenuTrigger(props) {
356
617
  }
357
618
 
358
619
  // src/components/deprecated/NavMenuList.tsx
359
- var import_react5 = require("react");
360
- var import_css7 = require("@cerberus/styled-system/css");
620
+ var import_react7 = require("react");
621
+ var import_css12 = require("@cerberus/styled-system/css");
361
622
  var import_patterns2 = require("@cerberus/styled-system/patterns");
362
- var import_jsx_runtime7 = require("react/jsx-runtime");
623
+ var import_jsx_runtime14 = require("react/jsx-runtime");
363
624
  function getPosition(position) {
364
625
  const defaultPositions = {
365
626
  left: "auto",
@@ -413,16 +674,16 @@ var navListStyles = (0, import_patterns2.vstack)({
413
674
  function NavMenuList(props) {
414
675
  const { position, ...nativeProps } = props;
415
676
  const { menuRef, expanded } = useNavMenuContext();
416
- const locationStyles = (0, import_react5.useMemo)(
677
+ const locationStyles = (0, import_react7.useMemo)(
417
678
  () => getPosition(position ?? "bottom"),
418
679
  [position]
419
680
  );
420
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Show, { when: expanded, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
681
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Show, { when: expanded, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
421
682
  "ul",
422
683
  {
423
684
  ...nativeProps,
424
685
  "data-position": position ?? "bottom",
425
- className: (0, import_css7.cx)(nativeProps.className, navListStyles),
686
+ className: (0, import_css12.cx)(nativeProps.className, navListStyles),
426
687
  ref: menuRef,
427
688
  style: locationStyles
428
689
  }
@@ -430,29 +691,29 @@ function NavMenuList(props) {
430
691
  }
431
692
 
432
693
  // src/components/deprecated/NavMenuLink.tsx
433
- var import_css8 = require("@cerberus/styled-system/css");
434
- var import_jsx_runtime8 = require("react/jsx-runtime");
694
+ var import_css13 = require("@cerberus/styled-system/css");
695
+ var import_jsx_runtime15 = require("react/jsx-runtime");
435
696
  function NavMenuLink(props) {
436
697
  const { as, ...nativeProps } = props;
437
698
  const hasAs = Boolean(as);
438
699
  const AsSub = as;
439
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
700
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
440
701
  "li",
441
702
  {
442
- className: (0, import_css8.css)({
703
+ className: (0, import_css13.css)({
443
704
  w: "full"
444
705
  }),
445
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
706
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
446
707
  Show,
447
708
  {
448
709
  when: hasAs,
449
- fallback: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
710
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
450
711
  "a",
451
712
  {
452
713
  ...nativeProps,
453
- className: (0, import_css8.cx)(
714
+ className: (0, import_css13.cx)(
454
715
  nativeProps.className,
455
- (0, import_css8.css)({
716
+ (0, import_css13.css)({
456
717
  color: "action.navigation.initial",
457
718
  textStyle: "link",
458
719
  _hover: {
@@ -462,105 +723,181 @@ function NavMenuLink(props) {
462
723
  )
463
724
  }
464
725
  ),
465
- children: hasAs && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(AsSub, { ...nativeProps })
726
+ children: hasAs && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(AsSub, { ...nativeProps })
466
727
  }
467
728
  )
468
729
  }
469
730
  );
470
731
  }
471
732
 
733
+ // src/hooks/useDate.ts
734
+ var import_react8 = require("react");
735
+ function useDate(options) {
736
+ const initialValue = (options == null ? void 0 : options.initialValue) ?? "";
737
+ const format = (options == null ? void 0 : options.format) ?? DateFormats.USMilitary;
738
+ const onChange = options == null ? void 0 : options.onChange;
739
+ const [value, setValue] = (0, import_react8.useState)(initialValue);
740
+ const handleChange = (0, import_react8.useCallback)(
741
+ (e) => {
742
+ const newValue = formatMilitaryDate(e.currentTarget.value);
743
+ if (onChange) onChange(e);
744
+ setValue(newValue);
745
+ },
746
+ [onChange]
747
+ );
748
+ return (0, import_react8.useMemo)(
749
+ () => ({
750
+ format,
751
+ value,
752
+ ISO: formatMilitaryToISO(value),
753
+ onChange: handleChange
754
+ }),
755
+ [format, value, handleChange]
756
+ );
757
+ }
758
+ function formatMilitaryToISO(input) {
759
+ const [day, month, year] = input.split(" ");
760
+ const monthIndex = MONTHS.findIndex((m) => m.startsWith(month));
761
+ const monthNum = monthIndex + 1;
762
+ return `${year ?? "0000"}-${monthNum.toString().padStart(2, "0")}-${day.padStart(
763
+ 2,
764
+ "0"
765
+ )}`;
766
+ }
767
+ function formatMilitaryDate(input) {
768
+ let formatted = input.toUpperCase().replace(/[^0-9A-Z]/g, "");
769
+ let day = "";
770
+ let month = "";
771
+ let year = "";
772
+ if (formatted.length >= 2) {
773
+ day = formatted.replace(/[^0-9]/g, "").slice(0, 2);
774
+ const dayNum = parseInt(day, 10);
775
+ if (dayNum > 31) day = "31";
776
+ else if (dayNum === 0) day = "01";
777
+ formatted = formatted.slice(2);
778
+ }
779
+ if (formatted.length >= 3) {
780
+ month = formatted.slice(0, 3);
781
+ const monthIndex = MONTHS.findIndex((m) => m.startsWith(month));
782
+ if (monthIndex !== -1) {
783
+ month = MONTHS[monthIndex];
784
+ } else {
785
+ month = month.replace(/[^A-Z]/g, "");
786
+ }
787
+ formatted = formatted.slice(3);
788
+ }
789
+ if (formatted.length > 0) {
790
+ year = formatted.slice(0, 4);
791
+ }
792
+ return [day, month, year].filter(Boolean).join(" ");
793
+ }
794
+ function formatISOToMilitary(date) {
795
+ const [year, month, day] = date.split("-");
796
+ const monthIndex = parseInt(month, 10) - 1;
797
+ const monthStr = MONTHS[monthIndex];
798
+ return `${day} ${monthStr} ${year}`;
799
+ }
800
+ var DateFormats = {
801
+ get ISO() {
802
+ return "YYYY-MM-DD";
803
+ },
804
+ get USMilitary() {
805
+ return "DD MMM YYYY";
806
+ },
807
+ get Months() {
808
+ return MONTHS;
809
+ }
810
+ };
811
+ var MONTHS = [
812
+ "JAN",
813
+ "FEB",
814
+ "MAR",
815
+ "APR",
816
+ "MAY",
817
+ "JUN",
818
+ "JUL",
819
+ "AUG",
820
+ "SEP",
821
+ "OCT",
822
+ "NOV",
823
+ "DEC"
824
+ ];
825
+
472
826
  // src/components/Accordion.tsx
473
- var import_react6 = require("@ark-ui/react");
474
- var import_css9 = require("@cerberus/styled-system/css");
475
- var import_recipes5 = require("@cerberus/styled-system/recipes");
476
- var import_jsx_runtime9 = require("react/jsx-runtime");
827
+ var import_react9 = require("@ark-ui/react");
828
+ var import_css14 = require("@cerberus/styled-system/css");
829
+ var import_recipes10 = require("@cerberus/styled-system/recipes");
830
+ var import_jsx_runtime16 = require("react/jsx-runtime");
477
831
  function Accordion(props) {
478
832
  const { size, className, ...rootProps } = props;
479
- const styles = (0, import_recipes5.accordion)({ size });
480
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
481
- import_react6.Accordion.Root,
833
+ const styles = (0, import_recipes10.accordion)({ size });
834
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
835
+ import_react9.Accordion.Root,
482
836
  {
483
837
  collapsible: true,
484
- className: (0, import_css9.cx)(className, styles.root),
838
+ className: (0, import_css14.cx)(className, styles.root),
485
839
  ...rootProps
486
840
  }
487
841
  );
488
842
  }
489
843
  function AccordionItem(props) {
490
844
  const { size, ...itemProps } = props;
491
- const styles = (0, import_recipes5.accordion)({ size });
492
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
493
- import_react6.Accordion.Item,
845
+ const styles = (0, import_recipes10.accordion)({ size });
846
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
847
+ import_react9.Accordion.Item,
494
848
  {
495
849
  ...itemProps,
496
- className: (0, import_css9.cx)(itemProps.className, styles.item)
850
+ className: (0, import_css14.cx)(itemProps.className, styles.item)
497
851
  }
498
852
  );
499
853
  }
500
854
  function AccordionItemTrigger(props) {
501
855
  const { size, ...triggerProps } = props;
502
- const styles = (0, import_recipes5.accordion)({ size });
503
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
504
- import_react6.Accordion.ItemTrigger,
856
+ const styles = (0, import_recipes10.accordion)({ size });
857
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
858
+ import_react9.Accordion.ItemTrigger,
505
859
  {
506
860
  ...triggerProps,
507
- className: (0, import_css9.cx)(triggerProps.className, styles.itemTrigger)
861
+ className: (0, import_css14.cx)(triggerProps.className, styles.itemTrigger)
508
862
  }
509
863
  );
510
864
  }
511
865
  function AccordionItemContent(props) {
512
866
  const { size, ...contentProps } = props;
513
- const styles = (0, import_recipes5.accordion)({ size });
514
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
515
- import_react6.Accordion.ItemContent,
867
+ const styles = (0, import_recipes10.accordion)({ size });
868
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
869
+ import_react9.Accordion.ItemContent,
516
870
  {
517
871
  ...contentProps,
518
- className: (0, import_css9.cx)(contentProps.className, styles.itemContent)
872
+ className: (0, import_css14.cx)(contentProps.className, styles.itemContent)
519
873
  }
520
874
  );
521
875
  }
522
876
 
523
877
  // src/components/Accordion.client.tsx
524
- var import_react8 = require("@ark-ui/react");
525
- var import_css10 = require("@cerberus/styled-system/css");
526
- var import_recipes6 = require("@cerberus/styled-system/recipes");
527
-
528
- // src/context/cerberus.tsx
529
- var import_react7 = require("react");
530
- var import_jsx_runtime10 = require("react/jsx-runtime");
531
- var CerberusContext = (0, import_react7.createContext)(null);
532
- function CerberusProvider(props) {
533
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(CerberusContext.Provider, { value: props.config, children: props.children });
534
- }
535
- function useCerberusContext() {
536
- const context = (0, import_react7.useContext)(CerberusContext);
537
- if (!context) {
538
- throw new Error("useCerberus must be used within a CerberusProvider");
539
- }
540
- return context;
541
- }
542
-
543
- // src/components/Accordion.client.tsx
544
- var import_jsx_runtime11 = require("react/jsx-runtime");
878
+ var import_react10 = require("@ark-ui/react");
879
+ var import_css15 = require("@cerberus/styled-system/css");
880
+ var import_recipes11 = require("@cerberus/styled-system/recipes");
881
+ var import_jsx_runtime17 = require("react/jsx-runtime");
545
882
  function AccordionItemIndicator(props) {
546
883
  const { size, ...indicatorProps } = props;
547
- const styles = (0, import_recipes6.accordion)({ size });
884
+ const styles = (0, import_recipes11.accordion)({ size });
548
885
  const iconSize = size === "sm" ? 16 : "24";
549
886
  const { icons } = useCerberusContext();
550
887
  const ChevronDown = icons.accordionIndicator;
551
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
552
- import_react8.Accordion.ItemIndicator,
888
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
889
+ import_react10.Accordion.ItemIndicator,
553
890
  {
554
891
  ...indicatorProps,
555
- className: (0, import_css10.cx)(indicatorProps.className, styles.itemIndicator),
556
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ChevronDown, { size: iconSize })
892
+ className: (0, import_css15.cx)(indicatorProps.className, styles.itemIndicator),
893
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(ChevronDown, { size: iconSize })
557
894
  }
558
895
  );
559
896
  }
560
897
 
561
898
  // src/components/AccordionItemGroup.tsx
562
- var import_css11 = require("@cerberus/styled-system/css");
563
- var import_jsx_runtime12 = require("react/jsx-runtime");
899
+ var import_css16 = require("@cerberus/styled-system/css");
900
+ var import_jsx_runtime18 = require("react/jsx-runtime");
564
901
  function AccordionItemGroup(props) {
565
902
  const {
566
903
  size,
@@ -573,26 +910,26 @@ function AccordionItemGroup(props) {
573
910
  gap: "md",
574
911
  justifyContent: "flex-start"
575
912
  } : void 0;
576
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(AccordionItem, { ...itemProps, children: [
577
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(AccordionItemTrigger, { className: (0, import_css11.css)(triggerStyles), size, children: [
578
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Show, { when: indicatorPosition === "start", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AccordionItemIndicator, { size }) }),
913
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(AccordionItem, { ...itemProps, children: [
914
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(AccordionItemTrigger, { className: (0, import_css16.css)(triggerStyles), size, children: [
915
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Show, { when: indicatorPosition === "start", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(AccordionItemIndicator, { size }) }),
579
916
  heading,
580
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Show, { when: indicatorPosition === "end", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AccordionItemIndicator, { size }) })
917
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Show, { when: indicatorPosition === "end", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(AccordionItemIndicator, { size }) })
581
918
  ] }),
582
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AccordionItemContent, { size, children })
919
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(AccordionItemContent, { size, children })
583
920
  ] });
584
921
  }
585
922
 
586
923
  // src/components/Admonition.tsx
587
- var import_recipes8 = require("@cerberus/styled-system/recipes");
588
- var import_css13 = require("@cerberus/styled-system/css");
924
+ var import_recipes13 = require("@cerberus/styled-system/recipes");
925
+ var import_css18 = require("@cerberus/styled-system/css");
589
926
  var import_patterns4 = require("@cerberus/styled-system/patterns");
590
927
 
591
928
  // src/components/Avatar.tsx
592
- var import_css12 = require("@cerberus/styled-system/css");
929
+ var import_css17 = require("@cerberus/styled-system/css");
593
930
  var import_patterns3 = require("@cerberus/styled-system/patterns");
594
- var import_recipes7 = require("@cerberus/styled-system/recipes");
595
- var import_jsx_runtime13 = require("react/jsx-runtime");
931
+ var import_recipes12 = require("@cerberus/styled-system/recipes");
932
+ var import_jsx_runtime19 = require("react/jsx-runtime");
596
933
  function Avatar(props) {
597
934
  const {
598
935
  ariaLabel,
@@ -608,28 +945,28 @@ function Avatar(props) {
608
945
  const { icons } = useCerberusContext();
609
946
  const { avatar: AvatarIcon } = icons;
610
947
  const initials = (ariaLabel || "").split(" ").map((word) => word[0]).join("").slice(0, 2);
611
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
948
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
612
949
  "div",
613
950
  {
614
951
  ...nativeProps,
615
- className: (0, import_css12.cx)(
952
+ className: (0, import_css17.cx)(
616
953
  nativeProps.className,
617
- (0, import_recipes7.avatar)({ gradient, size }),
954
+ (0, import_recipes12.avatar)({ gradient, size }),
618
955
  (0, import_patterns3.circle)()
619
956
  ),
620
- children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
957
+ children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
621
958
  Show,
622
959
  {
623
960
  when: Boolean(src) || Boolean(as),
624
- fallback: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
961
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
625
962
  Show,
626
963
  {
627
964
  when: Boolean(initials),
628
- fallback: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
965
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
629
966
  Show,
630
967
  {
631
968
  when: Boolean(icon),
632
- fallback: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
969
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
633
970
  AvatarIcon,
634
971
  {
635
972
  size: iconSizeMap[size]
@@ -641,15 +978,15 @@ function Avatar(props) {
641
978
  children: initials
642
979
  }
643
980
  ),
644
- children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
981
+ children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
645
982
  Show,
646
983
  {
647
984
  when: Boolean(as),
648
- fallback: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
985
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
649
986
  "img",
650
987
  {
651
988
  alt: props.ariaLabel,
652
- className: (0, import_css12.css)({
989
+ className: (0, import_css17.css)({
653
990
  h: "full",
654
991
  objectFit: "cover",
655
992
  w: "full"
@@ -681,7 +1018,7 @@ var iconSizeMap = {
681
1018
  };
682
1019
 
683
1020
  // src/components/Admonition.client.tsx
684
- var import_jsx_runtime14 = require("react/jsx-runtime");
1021
+ var import_jsx_runtime20 = require("react/jsx-runtime");
685
1022
  function MatchAvatar(props) {
686
1023
  const { icons } = useCerberusContext();
687
1024
  const {
@@ -692,56 +1029,56 @@ function MatchAvatar(props) {
692
1029
  } = icons;
693
1030
  switch (props.palette) {
694
1031
  case "page":
695
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1032
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
696
1033
  Avatar,
697
1034
  {
698
1035
  gradient: "charon-light",
699
1036
  ariaLabel: "",
700
- icon: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(InfoIcon, {}),
1037
+ icon: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(InfoIcon, {}),
701
1038
  size: "sm",
702
1039
  src: ""
703
1040
  }
704
1041
  );
705
1042
  case "info":
706
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1043
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
707
1044
  Avatar,
708
1045
  {
709
1046
  gradient: "amphiaraus-dark",
710
1047
  ariaLabel: "",
711
- icon: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(InfoIcon, {}),
1048
+ icon: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(InfoIcon, {}),
712
1049
  size: "sm",
713
1050
  src: ""
714
1051
  }
715
1052
  );
716
1053
  case "success":
717
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1054
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
718
1055
  Avatar,
719
1056
  {
720
1057
  gradient: "thanatos-dark",
721
1058
  ariaLabel: "",
722
- icon: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(SuccessIcon, {}),
1059
+ icon: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SuccessIcon, {}),
723
1060
  size: "sm",
724
1061
  src: ""
725
1062
  }
726
1063
  );
727
1064
  case "warning":
728
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1065
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
729
1066
  Avatar,
730
1067
  {
731
1068
  gradient: "asphodel-light",
732
1069
  ariaLabel: "",
733
- icon: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(WarningIcon, {}),
1070
+ icon: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(WarningIcon, {}),
734
1071
  size: "sm",
735
1072
  src: ""
736
1073
  }
737
1074
  );
738
1075
  case "danger":
739
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1076
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
740
1077
  Avatar,
741
1078
  {
742
1079
  gradient: "hades-light",
743
1080
  ariaLabel: "",
744
- icon: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DangerIcon, {}),
1081
+ icon: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(DangerIcon, {}),
745
1082
  size: "sm",
746
1083
  src: ""
747
1084
  }
@@ -752,64 +1089,65 @@ function MatchAvatar(props) {
752
1089
  }
753
1090
 
754
1091
  // src/components/Admonition.tsx
755
- var import_jsx_runtime15 = require("react/jsx-runtime");
1092
+ var import_jsx_runtime21 = require("react/jsx-runtime");
756
1093
  function Admonition(props) {
757
1094
  const { children, palette = "page", usage, icon, ...nativeProps } = props;
758
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
1095
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
759
1096
  "aside",
760
1097
  {
761
1098
  ...nativeProps,
762
- className: (0, import_css13.cx)(
1099
+ className: (0, import_css18.cx)(
763
1100
  nativeProps.className,
764
1101
  (0, import_patterns4.hstack)({
765
1102
  gap: "md",
766
1103
  w: "full"
767
1104
  }),
768
- (0, import_recipes8.admonition)({ palette, usage }).root
1105
+ (0, import_recipes13.admonition)({ palette, usage }).root
769
1106
  ),
770
1107
  children: [
771
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Show, { when: Boolean(icon), fallback: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(MatchAvatar, { palette }), children: icon }),
772
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { children })
1108
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Show, { when: Boolean(icon), fallback: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(MatchAvatar, { palette }), children: icon }),
1109
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { children })
773
1110
  ]
774
1111
  }
775
1112
  );
776
1113
  }
777
1114
  function AdmonitionHeading(props) {
778
1115
  const { palette, usage, ...nativeProps } = props;
779
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1116
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
780
1117
  "p",
781
1118
  {
782
1119
  ...nativeProps,
783
- className: (0, import_css13.cx)(
1120
+ className: (0, import_css18.cx)(
784
1121
  nativeProps.className,
785
- (0, import_recipes8.admonition)({ palette, usage }).heading
1122
+ (0, import_recipes13.admonition)({ palette, usage }).heading
786
1123
  )
787
1124
  }
788
1125
  );
789
1126
  }
790
1127
  function AdmonitionDescription(props) {
791
1128
  const { palette, usage, ...nativeProps } = props;
792
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1129
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
793
1130
  "p",
794
1131
  {
795
1132
  ...nativeProps,
796
- className: (0, import_css13.cx)(
1133
+ className: (0, import_css18.cx)(
797
1134
  nativeProps.className,
798
- (0, import_recipes8.admonition)({ palette, usage }).description
1135
+ (0, import_recipes13.admonition)({ palette, usage }).description
799
1136
  )
800
1137
  }
801
1138
  );
802
1139
  }
803
1140
 
804
1141
  // src/components/button/button.tsx
805
- var import_react9 = require("react");
806
- var import_css14 = require("@cerberus/styled-system/css");
807
- var import_recipes9 = require("@cerberus/styled-system/recipes");
1142
+ var import_react11 = require("react");
1143
+ var import_css19 = require("@cerberus/styled-system/css");
1144
+ var import_recipes14 = require("@cerberus/styled-system/recipes");
1145
+ var import_jsx2 = require("@cerberus/styled-system/jsx");
808
1146
 
809
1147
  // src/components/Spinner.tsx
810
- var import_jsx_runtime16 = require("react/jsx-runtime");
1148
+ var import_jsx_runtime22 = require("react/jsx-runtime");
811
1149
  function Spinner(props) {
812
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1150
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
813
1151
  "svg",
814
1152
  {
815
1153
  "aria-busy": "true",
@@ -819,7 +1157,7 @@ function Spinner(props) {
819
1157
  width: props.size,
820
1158
  viewBox: "0 0 24 24",
821
1159
  ...props,
822
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1160
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
823
1161
  "g",
824
1162
  {
825
1163
  fill: "none",
@@ -828,14 +1166,14 @@ function Spinner(props) {
828
1166
  strokeLinejoin: "round",
829
1167
  strokeWidth: 2,
830
1168
  children: [
831
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1169
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
832
1170
  "path",
833
1171
  {
834
1172
  strokeDasharray: 16,
835
1173
  strokeDashoffset: 16,
836
1174
  d: "M12 3c4.97 0 9 4.03 9 9",
837
1175
  children: [
838
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1176
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
839
1177
  "animate",
840
1178
  {
841
1179
  fill: "freeze",
@@ -844,7 +1182,7 @@ function Spinner(props) {
844
1182
  values: "16;0"
845
1183
  }
846
1184
  ),
847
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1185
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
848
1186
  "animateTransform",
849
1187
  {
850
1188
  attributeName: "transform",
@@ -857,14 +1195,14 @@ function Spinner(props) {
857
1195
  ]
858
1196
  }
859
1197
  ),
860
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1198
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
861
1199
  "path",
862
1200
  {
863
1201
  strokeDasharray: 64,
864
1202
  strokeDashoffset: 64,
865
1203
  strokeOpacity: 0.3,
866
1204
  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",
867
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1205
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
868
1206
  "animate",
869
1207
  {
870
1208
  fill: "freeze",
@@ -883,22 +1221,21 @@ function Spinner(props) {
883
1221
  }
884
1222
 
885
1223
  // src/components/button/button.tsx
886
- var import_jsx = require("@cerberus/styled-system/jsx");
887
- var import_jsx_runtime17 = require("react/jsx-runtime");
888
- var ButtonContext = (0, import_react9.createContext)({
1224
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1225
+ var ButtonContext = (0, import_react11.createContext)({
889
1226
  pending: false
890
1227
  });
891
1228
  function Button(props) {
892
1229
  const { palette, usage, shape, size, pending = false, ...nativeProps } = props;
893
- const value = (0, import_react9.useMemo)(() => ({ pending }), [pending]);
894
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(ButtonContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1230
+ const value = (0, import_react11.useMemo)(() => ({ pending }), [pending]);
1231
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ButtonContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
895
1232
  "button",
896
1233
  {
897
1234
  ...nativeProps,
898
1235
  disabled: pending || nativeProps.disabled,
899
- className: (0, import_css14.cx)(
1236
+ className: (0, import_css19.cx)(
900
1237
  nativeProps.className,
901
- (0, import_recipes9.button)({
1238
+ (0, import_recipes14.button)({
902
1239
  palette,
903
1240
  usage,
904
1241
  shape,
@@ -909,51 +1246,26 @@ function Button(props) {
909
1246
  ) });
910
1247
  }
911
1248
  function ButtonIcon(props) {
912
- const { pending } = (0, import_react9.useContext)(ButtonContext);
913
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Show, { when: pending, fallback: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_jsx_runtime17.Fragment, { children: props.children }), children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_jsx.Box, { w: "4", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Spinner, {}) }) });
914
- }
915
-
916
- // src/components/button/parts.ts
917
- var ButtonParts = {
918
- Root: Button,
919
- Icon: ButtonIcon
920
- };
921
-
922
- // src/components/Checkbox.tsx
923
- var import_recipes10 = require("@cerberus/styled-system/recipes");
924
- var import_patterns5 = require("@cerberus/styled-system/patterns");
925
- var import_css15 = require("@cerberus/styled-system/css");
926
-
927
- // src/context/field.tsx
928
- var import_react10 = require("react");
929
- var import_jsx_runtime18 = require("react/jsx-runtime");
930
- var FieldContext = (0, import_react10.createContext)(null);
931
- function Field(props) {
932
- const value = (0, import_react10.useMemo)(
933
- () => ({
934
- disabled: props.disabled,
935
- readOnly: props.readOnly,
936
- required: props.required,
937
- invalid: props.invalid
938
- }),
939
- [props.disabled, props.readOnly, props.required, props.invalid]
940
- );
941
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(FieldContext.Provider, { value, children: props.children });
942
- }
943
- function useFieldContext() {
944
- const context = (0, import_react10.useContext)(FieldContext);
945
- if (!context) {
946
- throw new Error("useFieldContext must be used within a Field Provider.");
947
- }
948
- return context;
1249
+ const { pending } = (0, import_react11.useContext)(ButtonContext);
1250
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Show, { when: pending, fallback: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_jsx_runtime23.Fragment, { children: props.children }), children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_jsx2.Box, { w: "4", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Spinner, {}) }) });
949
1251
  }
950
1252
 
1253
+ // src/components/button/parts.ts
1254
+ var ButtonParts = {
1255
+ Root: Button,
1256
+ Icon: ButtonIcon
1257
+ };
1258
+
951
1259
  // src/components/Checkbox.tsx
952
- var import_jsx_runtime19 = require("react/jsx-runtime");
1260
+ var import_recipes15 = require("@cerberus/styled-system/recipes");
1261
+ var import_patterns5 = require("@cerberus/styled-system/patterns");
1262
+ var import_css20 = require("@cerberus/styled-system/css");
1263
+ var import_field4 = require("@ark-ui/react/field");
1264
+ var import_jsx_runtime24 = require("react/jsx-runtime");
953
1265
  function Checkbox(props) {
954
- const { describedBy, size, checked, mixed, ...nativeProps } = props;
955
- const { invalid, ...fieldStates } = useFieldContext();
956
- const styles = (0, import_recipes10.checkbox)({ size });
1266
+ const { size, checked, mixed, ...nativeProps } = props;
1267
+ const { invalid, disabled, readOnly, required, ariaDescribedby, ids } = (0, import_field4.useFieldContext)();
1268
+ const styles = (0, import_recipes15.checkbox)({ size });
957
1269
  const { icons } = useCerberusContext();
958
1270
  const { checkbox: CheckIcon, indeterminate: IndeterminateIcon2 } = icons;
959
1271
  if (!CheckIcon) {
@@ -962,10 +1274,10 @@ function Checkbox(props) {
962
1274
  if (!IndeterminateIcon2) {
963
1275
  throw new Error("The CerberusProvider is missing the indeterminate icon.");
964
1276
  }
965
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
1277
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
966
1278
  "div",
967
1279
  {
968
- className: (0, import_css15.cx)(
1280
+ className: (0, import_css20.cx)(
969
1281
  styles.root,
970
1282
  (0, import_patterns5.vstack)({
971
1283
  gap: "0",
@@ -973,20 +1285,23 @@ function Checkbox(props) {
973
1285
  })
974
1286
  ),
975
1287
  children: [
976
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1288
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
977
1289
  "input",
978
1290
  {
979
1291
  ...nativeProps,
980
- ...fieldStates,
981
- ...describedBy && { "aria-describedby": describedBy },
1292
+ ...disabled && { disabled: true },
1293
+ ...readOnly && { readOnly: true },
1294
+ ...required && { required: true },
1295
+ ...ariaDescribedby && { "aria-describedby": ariaDescribedby },
982
1296
  ...invalid && { "aria-invalid": true },
983
1297
  ...mixed && { "aria-checked": "mixed" },
984
- className: (0, import_css15.cx)("peer", nativeProps.className, styles.input),
1298
+ id: ids.control,
1299
+ className: (0, import_css20.cx)("peer", nativeProps.className, styles.input),
985
1300
  type: "checkbox"
986
1301
  }
987
1302
  ),
988
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Show, { when: checked && !mixed, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: styles.icon, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CheckIcon, {}) }) }),
989
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Show, { when: mixed, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: styles.icon, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(IndeterminateIcon2, {}) }) })
1303
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Show, { when: checked && !mixed, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: styles.icon, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CheckIcon, {}) }) }),
1304
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Show, { when: mixed, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: styles.icon, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(IndeterminateIcon2, {}) }) })
990
1305
  ]
991
1306
  }
992
1307
  );
@@ -994,15 +1309,15 @@ function Checkbox(props) {
994
1309
 
995
1310
  // src/components/CircularProgress.tsx
996
1311
  var import_patterns6 = require("@cerberus/styled-system/patterns");
997
- var import_css16 = require("@cerberus/styled-system/css");
998
- var import_jsx_runtime20 = require("react/jsx-runtime");
1312
+ var import_css21 = require("@cerberus/styled-system/css");
1313
+ var import_jsx_runtime25 = require("react/jsx-runtime");
999
1314
  function CircularProgress(props) {
1000
1315
  const strokeW = 14;
1001
1316
  const radius = `calc(50% * (1 - ${strokeW}/100))`;
1002
1317
  const status = props.syntax ?? "Done";
1003
1318
  const now = props.now >= 100 ? 100 : props.now;
1004
1319
  const bgStyle = props.bgStyle ?? "filled";
1005
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1320
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1006
1321
  "div",
1007
1322
  {
1008
1323
  id: props.id,
@@ -1017,11 +1332,11 @@ function CircularProgress(props) {
1017
1332
  position: "relative"
1018
1333
  }),
1019
1334
  role: "progressbar",
1020
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
1335
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
1021
1336
  "svg",
1022
1337
  {
1023
1338
  "data-complete": now === 100,
1024
- className: (0, import_css16.css)({
1339
+ className: (0, import_css21.css)({
1025
1340
  display: "block",
1026
1341
  rounded: "full",
1027
1342
  transition: "all 0.5s ease"
@@ -1032,17 +1347,17 @@ function CircularProgress(props) {
1032
1347
  viewBox: "0 0 100 100",
1033
1348
  xmlns: "http://www.w3.org/2000/svg",
1034
1349
  children: [
1035
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("title", { children: props.title }),
1036
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("desc", { children: `${now}% ${status}` }),
1037
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("linearGradient", { id: "gradient", children: [
1038
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1350
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("title", { children: props.title }),
1351
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("desc", { children: `${now}% ${status}` }),
1352
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("linearGradient", { id: "gradient", children: [
1353
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1039
1354
  "stop",
1040
1355
  {
1041
1356
  offset: "0%",
1042
1357
  stopColor: "var(--cerberus-colors-data-viz-progress-start)"
1043
1358
  }
1044
1359
  ),
1045
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1360
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1046
1361
  "stop",
1047
1362
  {
1048
1363
  offset: "100%",
@@ -1050,10 +1365,10 @@ function CircularProgress(props) {
1050
1365
  }
1051
1366
  )
1052
1367
  ] }) }),
1053
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Show, { when: bgStyle === "filled", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1368
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Show, { when: bgStyle === "filled", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1054
1369
  "circle",
1055
1370
  {
1056
- className: (0, import_css16.css)({
1371
+ className: (0, import_css21.css)({
1057
1372
  fill: "page.surface.initial"
1058
1373
  }),
1059
1374
  cx: "50%",
@@ -1062,10 +1377,10 @@ function CircularProgress(props) {
1062
1377
  pathLength: "100"
1063
1378
  }
1064
1379
  ) }),
1065
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1380
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1066
1381
  "circle",
1067
1382
  {
1068
- className: (0, import_css16.css)({
1383
+ className: (0, import_css21.css)({
1069
1384
  stroke: "page.bg.100"
1070
1385
  }),
1071
1386
  cx: "50%",
@@ -1074,11 +1389,11 @@ function CircularProgress(props) {
1074
1389
  pathLength: "100"
1075
1390
  }
1076
1391
  ),
1077
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1392
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1078
1393
  "circle",
1079
1394
  {
1080
1395
  "data-complete": now === 100,
1081
- className: (0, import_css16.css)({
1396
+ className: (0, import_css21.css)({
1082
1397
  stroke: "url(#gradient)",
1083
1398
  transition: "stroke-dashoffset, stroke 0.5s ease",
1084
1399
  _isComplete: {
@@ -1095,11 +1410,11 @@ function CircularProgress(props) {
1095
1410
  transform: "rotate(-90 50 50)"
1096
1411
  }
1097
1412
  ),
1098
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("g", { children: [
1099
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
1413
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("g", { children: [
1414
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
1100
1415
  "text",
1101
1416
  {
1102
- className: (0, import_css16.css)({
1417
+ className: (0, import_css21.css)({
1103
1418
  fill: "page.text.initial",
1104
1419
  fontFamily: "mono",
1105
1420
  textStyle: "1.25rem"
@@ -1114,10 +1429,10 @@ function CircularProgress(props) {
1114
1429
  ]
1115
1430
  }
1116
1431
  ),
1117
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1432
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1118
1433
  "text",
1119
1434
  {
1120
- className: (0, import_css16.css)({
1435
+ className: (0, import_css21.css)({
1121
1436
  fill: "page.text.100",
1122
1437
  fontSize: "0.5rem",
1123
1438
  fontWeight: 600
@@ -1138,31 +1453,31 @@ function CircularProgress(props) {
1138
1453
  }
1139
1454
 
1140
1455
  // src/components/DatePicker.client.tsx
1141
- var import_react13 = require("@ark-ui/react");
1456
+ var import_react14 = require("@ark-ui/react");
1142
1457
 
1143
1458
  // src/components/Portal.tsx
1144
- var import_react11 = require("@ark-ui/react");
1145
- var Portal = import_react11.Portal;
1459
+ var import_react12 = require("@ark-ui/react");
1460
+ var Portal = import_react12.Portal;
1146
1461
 
1147
1462
  // src/components/DatePicker.client.tsx
1148
- var import_recipes13 = require("@cerberus/styled-system/recipes");
1149
- var import_css19 = require("@cerberus/styled-system/css");
1463
+ var import_recipes18 = require("@cerberus/styled-system/recipes");
1464
+ var import_css24 = require("@cerberus/styled-system/css");
1150
1465
 
1151
1466
  // src/components/DatePicker.server.tsx
1152
- var import_react12 = require("@ark-ui/react");
1153
- var import_css17 = require("@cerberus/styled-system/css");
1154
- var import_recipes11 = require("@cerberus/styled-system/recipes");
1155
- var import_jsx_runtime21 = require("react/jsx-runtime");
1156
- var datePickerStyles = (0, import_recipes11.datePicker)();
1467
+ var import_react13 = require("@ark-ui/react");
1468
+ var import_css22 = require("@cerberus/styled-system/css");
1469
+ var import_recipes16 = require("@cerberus/styled-system/recipes");
1470
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1471
+ var datePickerStyles = (0, import_recipes16.datePicker)();
1157
1472
  function DatePickerLabel(props) {
1158
1473
  const { className, ...arkProps } = props;
1159
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1160
- import_react12.DatePicker.Label,
1474
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1475
+ import_react13.DatePicker.Label,
1161
1476
  {
1162
1477
  ...arkProps,
1163
- className: (0, import_css17.cx)(
1478
+ className: (0, import_css22.cx)(
1164
1479
  className,
1165
- (0, import_recipes11.label)({
1480
+ (0, import_recipes16.label)({
1166
1481
  size: "sm"
1167
1482
  })
1168
1483
  )
@@ -1170,67 +1485,67 @@ function DatePickerLabel(props) {
1170
1485
  );
1171
1486
  }
1172
1487
  function DatePickerViewControl(props) {
1173
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1174
- import_react12.DatePicker.Control,
1488
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1489
+ import_react13.DatePicker.Control,
1175
1490
  {
1176
1491
  ...props,
1177
- className: (0, import_css17.cx)(props.className, datePickerStyles.viewControl)
1492
+ className: (0, import_css22.cx)(props.className, datePickerStyles.viewControl)
1178
1493
  }
1179
1494
  );
1180
1495
  }
1181
1496
  function DatePickerTable(props) {
1182
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1183
- import_react12.DatePicker.Table,
1497
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1498
+ import_react13.DatePicker.Table,
1184
1499
  {
1185
1500
  ...props,
1186
- className: (0, import_css17.cx)(props.className, datePickerStyles.table)
1501
+ className: (0, import_css22.cx)(props.className, datePickerStyles.table)
1187
1502
  }
1188
1503
  );
1189
1504
  }
1190
1505
  function DatePickerTableHeader(props) {
1191
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1192
- import_react12.DatePicker.TableHeader,
1506
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1507
+ import_react13.DatePicker.TableHeader,
1193
1508
  {
1194
1509
  ...props,
1195
- className: (0, import_css17.cx)(props.className, datePickerStyles.tableHeader)
1510
+ className: (0, import_css22.cx)(props.className, datePickerStyles.tableHeader)
1196
1511
  }
1197
1512
  );
1198
1513
  }
1199
1514
  function DatePickerTableCell(props) {
1200
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1201
- import_react12.DatePicker.TableCell,
1515
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1516
+ import_react13.DatePicker.TableCell,
1202
1517
  {
1203
1518
  ...props,
1204
- className: (0, import_css17.cx)(props.className, datePickerStyles.tableCell)
1519
+ className: (0, import_css22.cx)(props.className, datePickerStyles.tableCell)
1205
1520
  }
1206
1521
  );
1207
1522
  }
1208
1523
  function DatePickerTableCellTrigger(props) {
1209
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1210
- import_react12.DatePicker.TableCellTrigger,
1524
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1525
+ import_react13.DatePicker.TableCellTrigger,
1211
1526
  {
1212
1527
  ...props,
1213
- className: (0, import_css17.cx)(props.className, datePickerStyles.tableCellTrigger)
1528
+ className: (0, import_css22.cx)(props.className, datePickerStyles.tableCellTrigger)
1214
1529
  }
1215
1530
  );
1216
1531
  }
1217
- var DatePickerView = import_react12.DatePicker.View;
1218
- var DatePickerContext = import_react12.DatePicker.Context;
1532
+ var DatePickerView = import_react13.DatePicker.View;
1533
+ var DatePickerContext = import_react13.DatePicker.Context;
1219
1534
 
1220
1535
  // src/components/IconButton.tsx
1221
- var import_css18 = require("@cerberus/styled-system/css");
1222
- var import_recipes12 = require("@cerberus/styled-system/recipes");
1223
- var import_jsx_runtime22 = require("react/jsx-runtime");
1536
+ var import_css23 = require("@cerberus/styled-system/css");
1537
+ var import_recipes17 = require("@cerberus/styled-system/recipes");
1538
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1224
1539
  function IconButton(props) {
1225
1540
  const { ariaLabel, palette, usage, size, ...nativeProps } = props;
1226
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1541
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1227
1542
  "button",
1228
1543
  {
1229
1544
  ...nativeProps,
1230
1545
  "aria-label": ariaLabel ?? "Icon Button",
1231
- className: (0, import_css18.cx)(
1546
+ className: (0, import_css23.cx)(
1232
1547
  nativeProps.className,
1233
- (0, import_recipes12.iconButton)({
1548
+ (0, import_recipes17.iconButton)({
1234
1549
  palette,
1235
1550
  usage,
1236
1551
  size
@@ -1241,16 +1556,14 @@ function IconButton(props) {
1241
1556
  }
1242
1557
 
1243
1558
  // src/components/DatePicker.client.tsx
1244
- var import_react14 = require("react");
1245
- var import_jsx_runtime23 = require("react/jsx-runtime");
1246
- var datePickerStyles2 = (0, import_recipes13.datePicker)();
1559
+ var import_react15 = require("react");
1560
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1561
+ var datePickerStyles2 = (0, import_recipes18.datePicker)();
1247
1562
  function DatePicker(props) {
1248
- const states = useFieldContext();
1249
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1250
- import_react13.DatePicker.Root,
1563
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1564
+ import_react14.DatePicker.Root,
1251
1565
  {
1252
1566
  ...props,
1253
- ...states,
1254
1567
  positioning: {
1255
1568
  placement: "bottom-start"
1256
1569
  }
@@ -1260,54 +1573,51 @@ function DatePicker(props) {
1260
1573
  function DatePickerViewControlGroup(props) {
1261
1574
  const { icons } = useCerberusContext();
1262
1575
  const { calendarPrev: PrevIcon, calendarNext: NextIcon } = icons;
1263
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(DatePickerViewControl, { ...props, children: [
1264
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react13.DatePicker.PrevTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(IconButton, { ariaLabel: "Previous", size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(PrevIcon, {}) }) }),
1265
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react13.DatePicker.ViewTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1576
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(DatePickerViewControl, { ...props, children: [
1577
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react14.DatePicker.PrevTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(IconButton, { ariaLabel: "Previous", size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(PrevIcon, {}) }) }),
1578
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react14.DatePicker.ViewTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1266
1579
  Button,
1267
1580
  {
1268
- className: (0, import_css19.css)({
1581
+ className: (0, import_css24.css)({
1269
1582
  h: "2rem",
1270
1583
  paddingInline: "md"
1271
1584
  }),
1272
1585
  shape: "rounded",
1273
1586
  size: "sm",
1274
1587
  usage: "ghost",
1275
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react13.DatePicker.RangeText, {})
1588
+ children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react14.DatePicker.RangeText, {})
1276
1589
  }
1277
1590
  ) }),
1278
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react13.DatePicker.NextTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(IconButton, { ariaLabel: "Next", size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(NextIcon, {}) }) })
1591
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react14.DatePicker.NextTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(IconButton, { ariaLabel: "Next", size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(NextIcon, {}) }) })
1279
1592
  ] });
1280
1593
  }
1281
1594
  function DatePickerTrigger(props) {
1282
1595
  const { icons } = useCerberusContext();
1283
1596
  const { calendar: CalendarIcon } = icons;
1284
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1285
- import_react13.DatePicker.Trigger,
1597
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1598
+ import_react14.DatePicker.Trigger,
1286
1599
  {
1287
1600
  ...props,
1288
- className: (0, import_css19.cx)(
1601
+ className: (0, import_css24.cx)(
1289
1602
  props.className,
1290
- (0, import_recipes13.iconButton)({
1603
+ (0, import_recipes18.iconButton)({
1291
1604
  size: "sm",
1292
1605
  usage: "ghost"
1293
1606
  }),
1294
1607
  datePickerStyles2.trigger
1295
1608
  ),
1296
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CalendarIcon, {})
1609
+ children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(CalendarIcon, {})
1297
1610
  }
1298
1611
  );
1299
1612
  }
1300
1613
  function DatePickerInput(props) {
1301
- const { invalid, ...fieldStates } = useFieldContext();
1302
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_react13.DatePicker.Control, { className: datePickerStyles2.control, children: [
1303
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DatePickerTrigger, {}),
1304
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1305
- import_react13.DatePicker.Input,
1614
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_react14.DatePicker.Control, { className: datePickerStyles2.control, children: [
1615
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DatePickerTrigger, {}),
1616
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1617
+ import_react14.DatePicker.Input,
1306
1618
  {
1307
1619
  ...props,
1308
- ...fieldStates,
1309
- ...invalid && { "aria-invalid": true },
1310
- className: (0, import_css19.cx)(props.className, datePickerStyles2.input),
1620
+ className: (0, import_css24.cx)(props.className, datePickerStyles2.input),
1311
1621
  placeholder: props.placeholder ?? "DD MMM YYYY",
1312
1622
  maxLength: 11
1313
1623
  }
@@ -1315,36 +1625,31 @@ function DatePickerInput(props) {
1315
1625
  ] });
1316
1626
  }
1317
1627
  function RangePickerInput(props) {
1318
- const { invalid, ...fieldStates } = useFieldContext();
1319
1628
  const { defaultValue, ...nativeProps } = props;
1320
- const startDate = (0, import_react14.useMemo)(() => defaultValue == null ? void 0 : defaultValue[0], [defaultValue]);
1321
- const endDate = (0, import_react14.useMemo)(() => defaultValue == null ? void 0 : defaultValue[1], [defaultValue]);
1322
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_react13.DatePicker.Control, { "data-range": true, className: datePickerStyles2.control, children: [
1323
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DatePickerTrigger, {}),
1324
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1325
- import_react13.DatePicker.Input,
1629
+ const startDate = (0, import_react15.useMemo)(() => defaultValue == null ? void 0 : defaultValue[0], [defaultValue]);
1630
+ const endDate = (0, import_react15.useMemo)(() => defaultValue == null ? void 0 : defaultValue[1], [defaultValue]);
1631
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_react14.DatePicker.Control, { "data-range": true, className: datePickerStyles2.control, children: [
1632
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DatePickerTrigger, {}),
1633
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1634
+ import_react14.DatePicker.Input,
1326
1635
  {
1327
1636
  ...nativeProps,
1328
- ...fieldStates,
1329
- ...invalid && { "aria-invalid": true },
1330
1637
  "data-range-input": true,
1331
1638
  defaultValue: startDate,
1332
- className: (0, import_css19.cx)(props.className, datePickerStyles2.input),
1639
+ className: (0, import_css24.cx)(props.className, datePickerStyles2.input),
1333
1640
  placeholder: props.placeholder ?? "DD MMM YYYY",
1334
1641
  maxLength: 11,
1335
1642
  index: 0
1336
1643
  }
1337
1644
  ),
1338
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1339
- import_react13.DatePicker.Input,
1645
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1646
+ import_react14.DatePicker.Input,
1340
1647
  {
1341
1648
  ...nativeProps,
1342
- ...fieldStates,
1343
- ...invalid && { "aria-invalid": true },
1344
1649
  "data-range-input": true,
1345
1650
  defaultValue: endDate,
1346
1651
  "data-range-end-input": true,
1347
- className: (0, import_css19.cx)(props.className, datePickerStyles2.input),
1652
+ className: (0, import_css24.cx)(props.className, datePickerStyles2.input),
1348
1653
  placeholder: props.placeholder ?? "DD MMM YYYY",
1349
1654
  maxLength: 11,
1350
1655
  index: 1
@@ -1354,11 +1659,11 @@ function RangePickerInput(props) {
1354
1659
  }
1355
1660
  function DatePickerContent(props) {
1356
1661
  const { children, withModal, ...contentProps } = props;
1357
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Portal, { disabled: withModal ?? false, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react13.DatePicker.Positioner, { className: datePickerStyles2.positioner, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1358
- import_react13.DatePicker.Content,
1662
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Portal, { disabled: withModal ?? false, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react14.DatePicker.Positioner, { className: datePickerStyles2.positioner, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1663
+ import_react14.DatePicker.Content,
1359
1664
  {
1360
1665
  ...contentProps,
1361
- className: (0, import_css19.cx)(contentProps.className, datePickerStyles2.content),
1666
+ className: (0, import_css24.cx)(contentProps.className, datePickerStyles2.content),
1362
1667
  children
1363
1668
  }
1364
1669
  ) }) });
@@ -1380,11 +1685,11 @@ function DatePickerDayView(props) {
1380
1685
  if (isPastDay(date)) return "past";
1381
1686
  return "future";
1382
1687
  }
1383
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DatePickerView, { ...props, view: "day", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DatePickerContext, { children: (datePicker3) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
1384
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DatePickerViewControlGroup, {}),
1385
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(DatePickerTable, { children: [
1386
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react13.DatePicker.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react13.DatePicker.TableRow, { children: datePicker3.weekDays.map((weekDay, id) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DatePickerTableHeader, { children: weekDay.narrow }, id)) }) }),
1387
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react13.DatePicker.TableBody, { children: datePicker3.weeks.map((week, id) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react13.DatePicker.TableRow, { children: week.map((day, id2) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DatePickerTableCell, { value: day, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1688
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DatePickerView, { ...props, view: "day", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DatePickerContext, { children: (datePicker3) => /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
1689
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DatePickerViewControlGroup, {}),
1690
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(DatePickerTable, { children: [
1691
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react14.DatePicker.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react14.DatePicker.TableRow, { children: datePicker3.weekDays.map((weekDay, id) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DatePickerTableHeader, { children: weekDay.narrow }, id)) }) }),
1692
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react14.DatePicker.TableBody, { children: datePicker3.weeks.map((week, id) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react14.DatePicker.TableRow, { children: week.map((day, id2) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DatePickerTableCell, { value: day, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1388
1693
  DatePickerTableCellTrigger,
1389
1694
  {
1390
1695
  "data-date": getDayValue(day),
@@ -1395,84 +1700,84 @@ function DatePickerDayView(props) {
1395
1700
  ] }) }) });
1396
1701
  }
1397
1702
  function DatePickerMonthView(props) {
1398
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react13.DatePicker.View, { ...props, view: "month", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react13.DatePicker.Context, { children: (datePicker3) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
1399
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DatePickerViewControlGroup, {}),
1400
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DatePickerTable, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react13.DatePicker.TableBody, { children: datePicker3.getMonthsGrid({ columns: 4, format: "short" }).map((months, id) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react13.DatePicker.TableRow, { children: months.map((month, id2) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DatePickerTableCell, { value: month.value, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DatePickerTableCellTrigger, { children: month.label }) }, id2)) }, id)) }) })
1703
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react14.DatePicker.View, { ...props, view: "month", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react14.DatePicker.Context, { children: (datePicker3) => /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
1704
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DatePickerViewControlGroup, {}),
1705
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DatePickerTable, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react14.DatePicker.TableBody, { children: datePicker3.getMonthsGrid({ columns: 4, format: "short" }).map((months, id) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react14.DatePicker.TableRow, { children: months.map((month, id2) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DatePickerTableCell, { value: month.value, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DatePickerTableCellTrigger, { children: month.label }) }, id2)) }, id)) }) })
1401
1706
  ] }) }) });
1402
1707
  }
1403
1708
  function DatePickerYearView(props) {
1404
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react13.DatePicker.View, { ...props, view: "year", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react13.DatePicker.Context, { children: (datePicker3) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
1405
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DatePickerViewControlGroup, {}),
1406
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DatePickerTable, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react13.DatePicker.TableBody, { children: datePicker3.getYearsGrid({ columns: 4 }).map((years, id) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react13.DatePicker.TableRow, { children: years.map((year, id2) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DatePickerTableCell, { value: year.value, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DatePickerTableCellTrigger, { children: year.label }) }, id2)) }, id)) }) })
1709
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react14.DatePicker.View, { ...props, view: "year", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react14.DatePicker.Context, { children: (datePicker3) => /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
1710
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DatePickerViewControlGroup, {}),
1711
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DatePickerTable, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react14.DatePicker.TableBody, { children: datePicker3.getYearsGrid({ columns: 4 }).map((years, id) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react14.DatePicker.TableRow, { children: years.map((year, id2) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DatePickerTableCell, { value: year.value, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DatePickerTableCellTrigger, { children: year.label }) }, id2)) }, id)) }) })
1407
1712
  ] }) }) });
1408
1713
  }
1409
1714
  function DatePickerCalendar(props) {
1410
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(DatePickerContent, { withModal: props.withModal, children: [
1411
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DatePickerDayView, {}),
1412
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DatePickerMonthView, {}),
1413
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DatePickerYearView, {})
1715
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(DatePickerContent, { withModal: props.withModal, children: [
1716
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DatePickerDayView, {}),
1717
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DatePickerMonthView, {}),
1718
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DatePickerYearView, {})
1414
1719
  ] });
1415
1720
  }
1416
1721
 
1417
1722
  // src/components/Dialog.tsx
1418
- var import_react15 = require("@ark-ui/react");
1419
- var import_recipes14 = require("@cerberus/styled-system/recipes");
1420
- var import_css20 = require("@cerberus/styled-system/css");
1421
- var import_jsx_runtime24 = require("react/jsx-runtime");
1723
+ var import_react16 = require("@ark-ui/react");
1724
+ var import_recipes19 = require("@cerberus/styled-system/recipes");
1725
+ var import_css25 = require("@cerberus/styled-system/css");
1726
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1422
1727
  function DialogProvider(props) {
1423
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react15.Dialog.Root, { ...props });
1728
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react16.Dialog.Root, { ...props });
1424
1729
  }
1425
1730
  function Dialog(props) {
1426
1731
  const { size, ...contentProps } = props;
1427
- const styles = (0, import_recipes14.dialog)({ size });
1428
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Portal, { children: [
1429
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DialogBackdrop, { className: styles.backdrop }),
1430
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DialogPositioner, { className: styles.positioner, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DialogContent, { className: styles.content, ...contentProps }) })
1732
+ const styles = (0, import_recipes19.dialog)({ size });
1733
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(Portal, { children: [
1734
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(DialogBackdrop, { className: styles.backdrop }),
1735
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(DialogPositioner, { className: styles.positioner, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(DialogContent, { className: styles.content, ...contentProps }) })
1431
1736
  ] });
1432
1737
  }
1433
1738
  function DialogHeading(props) {
1434
- const styles = (0, import_recipes14.dialog)();
1435
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react15.Dialog.Title, { ...props, className: (0, import_css20.cx)(props.className, styles.title) });
1739
+ const styles = (0, import_recipes19.dialog)();
1740
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react16.Dialog.Title, { ...props, className: (0, import_css25.cx)(props.className, styles.title) });
1436
1741
  }
1437
1742
  function DialogDescription(props) {
1438
- const styles = (0, import_recipes14.dialog)();
1439
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1440
- import_react15.Dialog.Description,
1743
+ const styles = (0, import_recipes19.dialog)();
1744
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1745
+ import_react16.Dialog.Description,
1441
1746
  {
1442
1747
  ...props,
1443
- className: (0, import_css20.cx)(props.className, styles.description)
1748
+ className: (0, import_css25.cx)(props.className, styles.description)
1444
1749
  }
1445
1750
  );
1446
1751
  }
1447
- var DialogTrigger = import_react15.Dialog.Trigger;
1448
- var DialogCloseTrigger = import_react15.Dialog.CloseTrigger;
1449
- var DialogBackdrop = import_react15.Dialog.Backdrop;
1450
- var DialogPositioner = import_react15.Dialog.Positioner;
1451
- var DialogContent = import_react15.Dialog.Content;
1752
+ var DialogTrigger = import_react16.Dialog.Trigger;
1753
+ var DialogCloseTrigger = import_react16.Dialog.CloseTrigger;
1754
+ var DialogBackdrop = import_react16.Dialog.Backdrop;
1755
+ var DialogPositioner = import_react16.Dialog.Positioner;
1756
+ var DialogContent = import_react16.Dialog.Content;
1452
1757
 
1453
1758
  // src/components/Dialog.client.tsx
1454
- var import_react16 = require("@ark-ui/react");
1455
- var import_recipes15 = require("@cerberus/styled-system/recipes");
1456
- var import_css21 = require("@cerberus/styled-system/css");
1457
- var import_jsx_runtime25 = require("react/jsx-runtime");
1759
+ var import_react17 = require("@ark-ui/react");
1760
+ var import_recipes20 = require("@cerberus/styled-system/recipes");
1761
+ var import_css26 = require("@cerberus/styled-system/css");
1762
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1458
1763
  function DialogCloseIconTrigger(props) {
1459
1764
  const { icons } = useCerberusContext();
1460
1765
  const { close: CloseIcon } = icons;
1461
- const styles = (0, import_recipes15.dialog)();
1462
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1463
- import_react16.Dialog.CloseTrigger,
1766
+ const styles = (0, import_recipes20.dialog)();
1767
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1768
+ import_react17.Dialog.CloseTrigger,
1464
1769
  {
1465
1770
  ...props,
1466
- className: (0, import_css21.cx)(props.className, styles.closeTrigger),
1771
+ className: (0, import_css26.cx)(props.className, styles.closeTrigger),
1467
1772
  asChild: true,
1468
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1773
+ children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1469
1774
  IconButton,
1470
1775
  {
1471
1776
  ariaLabel: "Close dialog",
1472
1777
  palette: "action",
1473
1778
  size: "lg",
1474
1779
  usage: "ghost",
1475
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CloseIcon, {})
1780
+ children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CloseIcon, {})
1476
1781
  }
1477
1782
  )
1478
1783
  }
@@ -1481,18 +1786,18 @@ function DialogCloseIconTrigger(props) {
1481
1786
 
1482
1787
  // src/components/Droppable.tsx
1483
1788
  var import_core = require("@dnd-kit/core");
1484
- var import_react17 = require("react");
1485
- var import_jsx_runtime26 = require("react/jsx-runtime");
1789
+ var import_react18 = require("react");
1790
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1486
1791
  function Droppable(props) {
1487
1792
  const { dropped, id, disabled, data, resizeObserverConfig, ...nativeProps } = props;
1488
- const uuid = (0, import_react17.useId)();
1793
+ const uuid = (0, import_react18.useId)();
1489
1794
  const { isOver, setNodeRef } = (0, import_core.useDroppable)({
1490
1795
  data,
1491
1796
  disabled,
1492
1797
  id: id || uuid,
1493
1798
  resizeObserverConfig
1494
1799
  });
1495
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1800
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1496
1801
  "div",
1497
1802
  {
1498
1803
  ...nativeProps,
@@ -1504,31 +1809,15 @@ function Droppable(props) {
1504
1809
  );
1505
1810
  }
1506
1811
 
1507
- // src/components/FieldMessage.tsx
1508
- var import_css22 = require("@cerberus/styled-system/css");
1509
- var import_recipes16 = require("@cerberus/styled-system/recipes");
1510
- var import_jsx_runtime27 = require("react/jsx-runtime");
1511
- function FieldMessage(props) {
1512
- const { invalid } = useFieldContext();
1513
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1514
- "small",
1515
- {
1516
- ...props,
1517
- ...invalid && { "aria-invalid": true },
1518
- className: (0, import_css22.cx)(props.className, (0, import_recipes16.fieldMessage)())
1519
- }
1520
- );
1521
- }
1522
-
1523
1812
  // src/context/feature-flags.tsx
1524
- var import_react18 = require("react");
1525
- var import_jsx_runtime28 = require("react/jsx-runtime");
1526
- var FeatureFlagContext = (0, import_react18.createContext)(null);
1813
+ var import_react19 = require("react");
1814
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1815
+ var FeatureFlagContext = (0, import_react19.createContext)(null);
1527
1816
  function FeatureFlags(props) {
1528
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(FeatureFlagContext.Provider, { value: props.flags, children: props.children });
1817
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(FeatureFlagContext.Provider, { value: props.flags, children: props.children });
1529
1818
  }
1530
1819
  function useFeatureFlags(key) {
1531
- const context = (0, import_react18.useContext)(FeatureFlagContext);
1820
+ const context = (0, import_react19.useContext)(FeatureFlagContext);
1532
1821
  if (context === null) {
1533
1822
  throw new Error(
1534
1823
  "useFeatureFlag must be used within a FeatureFlags Provider"
@@ -1538,26 +1827,27 @@ function useFeatureFlags(key) {
1538
1827
  }
1539
1828
 
1540
1829
  // src/components/FeatureFlag.tsx
1541
- var import_jsx_runtime29 = require("react/jsx-runtime");
1830
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1542
1831
  function FeatureFlag(props) {
1543
1832
  const showContent = useFeatureFlags(props.flag);
1544
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Show, { when: showContent, children: props.children });
1833
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Show, { when: showContent, children: props.children });
1545
1834
  }
1546
1835
 
1547
1836
  // src/components/Fieldset.tsx
1548
- var import_css23 = require("@cerberus/styled-system/css");
1549
- var import_jsx_runtime30 = require("react/jsx-runtime");
1837
+ var import_field5 = require("@ark-ui/react/field");
1838
+ var import_css27 = require("@cerberus/styled-system/css");
1839
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1550
1840
  function Fieldset(props) {
1551
- const { invalid, ...formState } = useFieldContext();
1552
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1841
+ const { invalid, disabled } = (0, import_field5.useFieldContext)();
1842
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1553
1843
  "fieldset",
1554
1844
  {
1555
1845
  ...props,
1556
- ...formState,
1846
+ disabled,
1557
1847
  ...invalid && { "aria-invalid": true },
1558
- className: (0, import_css23.cx)(
1848
+ className: (0, import_css27.cx)(
1559
1849
  props.className,
1560
- (0, import_css23.css)({
1850
+ (0, import_css27.css)({
1561
1851
  border: "none",
1562
1852
  pt: 2,
1563
1853
  margin: 0
@@ -1568,18 +1858,18 @@ function Fieldset(props) {
1568
1858
  }
1569
1859
 
1570
1860
  // src/components/FieldsetLabel.tsx
1571
- var import_css24 = require("@cerberus/styled-system/css");
1572
- var import_recipes17 = require("@cerberus/styled-system/recipes");
1573
- var import_jsx_runtime31 = require("react/jsx-runtime");
1861
+ var import_css28 = require("@cerberus/styled-system/css");
1862
+ var import_recipes21 = require("@cerberus/styled-system/recipes");
1863
+ var import_jsx_runtime35 = require("react/jsx-runtime");
1574
1864
  function FieldsetLabel(props) {
1575
1865
  const { size, usage, ...nativeProps } = props;
1576
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1866
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1577
1867
  "label",
1578
1868
  {
1579
1869
  ...nativeProps,
1580
- className: (0, import_css24.cx)(
1870
+ className: (0, import_css28.cx)(
1581
1871
  nativeProps.className,
1582
- (0, import_recipes17.label)({
1872
+ (0, import_recipes21.label)({
1583
1873
  size,
1584
1874
  usage
1585
1875
  })
@@ -1589,23 +1879,23 @@ function FieldsetLabel(props) {
1589
1879
  }
1590
1880
 
1591
1881
  // src/components/FileStatus.tsx
1592
- var import_react19 = require("react");
1593
- var import_recipes19 = require("@cerberus/styled-system/recipes");
1594
- var import_css26 = require("@cerberus/styled-system/css");
1882
+ var import_react20 = require("react");
1883
+ var import_recipes23 = require("@cerberus/styled-system/recipes");
1884
+ var import_css30 = require("@cerberus/styled-system/css");
1595
1885
  var import_patterns7 = require("@cerberus/styled-system/patterns");
1596
1886
 
1597
1887
  // src/components/ProgressBar.tsx
1598
- var import_css25 = require("@cerberus/styled-system/css");
1599
- var import_recipes18 = require("@cerberus/styled-system/recipes");
1600
- var import_jsx_runtime32 = require("react/jsx-runtime");
1888
+ var import_css29 = require("@cerberus/styled-system/css");
1889
+ var import_recipes22 = require("@cerberus/styled-system/recipes");
1890
+ var import_jsx_runtime36 = require("react/jsx-runtime");
1601
1891
  function ProgressBar(props) {
1602
1892
  const { indeterminate, size, usage, now, label: label5, ...nativeProps } = props;
1603
- const styles = (0, import_recipes18.progressBar)({ size, usage });
1893
+ const styles = (0, import_recipes22.progressBar)({ size, usage });
1604
1894
  const nowClamped = Math.min(100, Math.max(0, now || 0));
1605
1895
  const width = {
1606
1896
  width: indeterminate ? "50%" : `${nowClamped}%`
1607
1897
  };
1608
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1898
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1609
1899
  "div",
1610
1900
  {
1611
1901
  ...nativeProps,
@@ -1613,9 +1903,9 @@ function ProgressBar(props) {
1613
1903
  "aria-valuemin": 0,
1614
1904
  "aria-valuemax": 100,
1615
1905
  "aria-valuenow": indeterminate ? 0 : nowClamped,
1616
- className: (0, import_css25.cx)(nativeProps.className, styles.root),
1906
+ className: (0, import_css29.cx)(nativeProps.className, styles.root),
1617
1907
  role: "progressbar",
1618
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1908
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1619
1909
  "div",
1620
1910
  {
1621
1911
  ...indeterminate && { "data-indeterminate": true },
@@ -1629,7 +1919,7 @@ function ProgressBar(props) {
1629
1919
  }
1630
1920
 
1631
1921
  // src/components/FileStatus.tsx
1632
- var import_jsx_runtime33 = require("react/jsx-runtime");
1922
+ var import_jsx_runtime37 = require("react/jsx-runtime");
1633
1923
  var processStatus = /* @__PURE__ */ ((processStatus2) => {
1634
1924
  processStatus2["TODO"] = "todo";
1635
1925
  processStatus2["PROCESSING"] = "processing";
@@ -1639,24 +1929,24 @@ var processStatus = /* @__PURE__ */ ((processStatus2) => {
1639
1929
  })(processStatus || {});
1640
1930
  function FileStatus(props) {
1641
1931
  const { file, now, status, onClick, ...nativeProps } = props;
1642
- const actionLabel = (0, import_react19.useMemo)(() => getStatusActionLabel(status), [status]);
1643
- const palette = (0, import_react19.useMemo)(() => getPalette(status), [status]);
1644
- const modalIconPalette = (0, import_react19.useMemo)(() => getModalIconPalette(status), [status]);
1645
- const styles = (0, import_react19.useMemo)(() => {
1932
+ const actionLabel = (0, import_react20.useMemo)(() => getStatusActionLabel(status), [status]);
1933
+ const palette = (0, import_react20.useMemo)(() => getPalette(status), [status]);
1934
+ const modalIconPalette = (0, import_react20.useMemo)(() => getModalIconPalette(status), [status]);
1935
+ const styles = (0, import_react20.useMemo)(() => {
1646
1936
  switch (status) {
1647
1937
  case "todo" /* TODO */:
1648
- return (0, import_recipes19.fileStatus)({ status: "todo" });
1938
+ return (0, import_recipes23.fileStatus)({ status: "todo" });
1649
1939
  case "processing" /* PROCESSING */:
1650
- return (0, import_recipes19.fileStatus)({ status: "processing" });
1940
+ return (0, import_recipes23.fileStatus)({ status: "processing" });
1651
1941
  case "done" /* DONE */:
1652
- return (0, import_recipes19.fileStatus)({ status: "done" });
1942
+ return (0, import_recipes23.fileStatus)({ status: "done" });
1653
1943
  case "error" /* ERROR */:
1654
- return (0, import_recipes19.fileStatus)({ status: "error" });
1944
+ return (0, import_recipes23.fileStatus)({ status: "error" });
1655
1945
  default:
1656
- return (0, import_recipes19.fileStatus)();
1946
+ return (0, import_recipes23.fileStatus)();
1657
1947
  }
1658
1948
  }, [status]);
1659
- const handleClick = (0, import_react19.useCallback)(
1949
+ const handleClick = (0, import_react20.useCallback)(
1660
1950
  (e) => {
1661
1951
  const actionStatus = getStatusActionLabel(
1662
1952
  status
@@ -1665,22 +1955,22 @@ function FileStatus(props) {
1665
1955
  },
1666
1956
  [onClick]
1667
1957
  );
1668
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
1958
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
1669
1959
  "div",
1670
1960
  {
1671
1961
  ...nativeProps,
1672
- className: (0, import_css26.cx)(nativeProps.className, styles.root, (0, import_patterns7.hstack)()),
1962
+ className: (0, import_css30.cx)(nativeProps.className, styles.root, (0, import_patterns7.hstack)()),
1673
1963
  children: [
1674
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1964
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1675
1965
  Avatar,
1676
1966
  {
1677
1967
  ariaLabel: "",
1678
1968
  gradient: modalIconPalette,
1679
- icon: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(MatchFileStatusIcon, { size: 24, status }),
1969
+ icon: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(MatchFileStatusIcon, { size: 24, status }),
1680
1970
  src: ""
1681
1971
  }
1682
1972
  ),
1683
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
1973
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
1684
1974
  "div",
1685
1975
  {
1686
1976
  className: (0, import_patterns7.vstack)({
@@ -1689,17 +1979,17 @@ function FileStatus(props) {
1689
1979
  w: "full"
1690
1980
  }),
1691
1981
  children: [
1692
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1982
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1693
1983
  "small",
1694
1984
  {
1695
- className: (0, import_css26.css)({
1985
+ className: (0, import_css30.css)({
1696
1986
  color: "page.text.initial",
1697
1987
  textStyle: "label-sm"
1698
1988
  }),
1699
1989
  children: file
1700
1990
  }
1701
1991
  ),
1702
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1992
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1703
1993
  ProgressBar,
1704
1994
  {
1705
1995
  id: props.id,
@@ -1708,27 +1998,27 @@ function FileStatus(props) {
1708
1998
  size: "sm"
1709
1999
  }
1710
2000
  ),
1711
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Field, { invalid: modalIconPalette === "hades-dark", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1712
- FieldMessage,
2001
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Field2, { label: "", invalid: modalIconPalette === "hades-dark", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2002
+ FieldHelperText,
1713
2003
  {
1714
- className: (0, import_css26.css)({
2004
+ className: (0, import_css30.css)({
1715
2005
  color: "page.text.100"
1716
2006
  }),
1717
2007
  id: `help:${file}`,
1718
- children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(MatchFileStatusText, { status, now })
2008
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(MatchFileStatusText, { status, now })
1719
2009
  }
1720
2010
  ) })
1721
2011
  ]
1722
2012
  }
1723
2013
  ),
1724
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2014
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1725
2015
  IconButton,
1726
2016
  {
1727
2017
  ariaLabel: actionLabel,
1728
2018
  onClick: handleClick,
1729
2019
  palette,
1730
2020
  size: "sm",
1731
- children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(MatchStatusAction, { status })
2021
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(MatchStatusAction, { status })
1732
2022
  }
1733
2023
  )
1734
2024
  ]
@@ -1745,13 +2035,13 @@ function MatchFileStatusIcon(props) {
1745
2035
  } = icons;
1746
2036
  switch (props.status) {
1747
2037
  case "todo" /* TODO */:
1748
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(TodoIcon, { size: props.size });
2038
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(TodoIcon, { size: props.size });
1749
2039
  case "processing" /* PROCESSING */:
1750
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(FileUploaderIcon, { size: props.size });
2040
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(FileUploaderIcon, { size: props.size });
1751
2041
  case "done" /* DONE */:
1752
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(DoneIcon, { size: props.size });
2042
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DoneIcon, { size: props.size });
1753
2043
  case "error" /* ERROR */:
1754
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(InvalidIcon, { size: props.size });
2044
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(InvalidIcon, { size: props.size });
1755
2045
  default:
1756
2046
  throw new Error("Unknown status");
1757
2047
  }
@@ -1776,11 +2066,11 @@ function MatchStatusAction(props) {
1776
2066
  switch (props.status) {
1777
2067
  case "todo" /* TODO */:
1778
2068
  case "processing" /* PROCESSING */:
1779
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CloseIcon, {});
2069
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(CloseIcon, {});
1780
2070
  case "error" /* ERROR */:
1781
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(RedoIcon, {});
2071
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(RedoIcon, {});
1782
2072
  case "done" /* DONE */:
1783
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(TrashIcon, {});
2073
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(TrashIcon, {});
1784
2074
  default:
1785
2075
  throw new Error("Invalid status");
1786
2076
  }
@@ -1826,40 +2116,40 @@ function getModalIconPalette(status) {
1826
2116
  }
1827
2117
 
1828
2118
  // src/components/FileUploader.tsx
1829
- var import_css27 = require("@cerberus/styled-system/css");
2119
+ var import_css31 = require("@cerberus/styled-system/css");
1830
2120
  var import_patterns8 = require("@cerberus/styled-system/patterns");
1831
- var import_recipes20 = require("@cerberus/styled-system/recipes");
1832
- var import_jsx_runtime34 = require("react/jsx-runtime");
2121
+ var import_recipes24 = require("@cerberus/styled-system/recipes");
2122
+ var import_jsx_runtime38 = require("react/jsx-runtime");
1833
2123
  function FileUploader(props) {
1834
2124
  var _a;
1835
2125
  const { icons } = useCerberusContext();
1836
- const styles = (0, import_recipes20.fileUploader)();
2126
+ const styles = (0, import_recipes24.fileUploader)();
1837
2127
  const { waitingFileUploader: Icon } = icons;
1838
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
2128
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
1839
2129
  "div",
1840
2130
  {
1841
2131
  ...props.disabled ? { "aria-disabled": true } : {},
1842
- className: (0, import_css27.cx)(
2132
+ className: (0, import_css31.cx)(
1843
2133
  (0, import_patterns8.vstack)({
1844
2134
  justify: "center"
1845
2135
  }),
1846
2136
  styles.container
1847
2137
  ),
1848
2138
  children: [
1849
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: styles.icon, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2139
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: styles.icon, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1850
2140
  Avatar,
1851
2141
  {
1852
2142
  gradient: "charon-light",
1853
2143
  ariaLabel: "",
1854
- icon: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Icon, {}),
2144
+ icon: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Icon, {}),
1855
2145
  size: "md",
1856
2146
  src: ""
1857
2147
  }
1858
2148
  ) }),
1859
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
2149
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
1860
2150
  "label",
1861
2151
  {
1862
- className: (0, import_css27.cx)(
2152
+ className: (0, import_css31.cx)(
1863
2153
  (0, import_patterns8.vstack)({
1864
2154
  justify: "center"
1865
2155
  }),
@@ -1867,16 +2157,16 @@ function FileUploader(props) {
1867
2157
  ),
1868
2158
  htmlFor: props.name,
1869
2159
  children: [
1870
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Show, { when: Boolean(props.heading), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: styles.heading, children: props.heading }) }),
2160
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Show, { when: Boolean(props.heading), children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: styles.heading, children: props.heading }) }),
1871
2161
  "Import ",
1872
2162
  (_a = props.accept) == null ? void 0 : _a.replace(",", ", "),
1873
2163
  " files",
1874
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: styles.description, children: "Click to select files" }),
1875
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2164
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: styles.description, children: "Click to select files" }),
2165
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1876
2166
  "input",
1877
2167
  {
1878
2168
  ...props,
1879
- className: (0, import_css27.cx)(props.className, styles.input),
2169
+ className: (0, import_css31.cx)(props.className, styles.input),
1880
2170
  type: "file"
1881
2171
  }
1882
2172
  )
@@ -1888,104 +2178,36 @@ function FileUploader(props) {
1888
2178
  );
1889
2179
  }
1890
2180
 
1891
- // src/components/Input.tsx
1892
- var import_recipes21 = require("@cerberus/styled-system/recipes");
1893
- var import_css28 = require("@cerberus/styled-system/css");
1894
- var import_jsx_runtime35 = require("react/jsx-runtime");
1895
- function Input(props) {
1896
- const { describedBy, size, startIcon, endIcon, ...nativeProps } = props;
1897
- const inputStyles = (0, import_recipes21.input)({ size });
1898
- const { invalid, ...fieldStates } = useFieldContext();
1899
- const hasEndIcon = Boolean(endIcon);
1900
- const { icons } = useCerberusContext();
1901
- const { invalid: InvalidIcon } = icons;
1902
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: inputStyles.root, children: [
1903
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Show, { when: Boolean(startIcon), children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: inputStyles.startIcon, children: startIcon }) }),
1904
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1905
- "input",
1906
- {
1907
- ...nativeProps,
1908
- ...fieldStates,
1909
- ...describedBy && { "aria-describedby": describedBy },
1910
- ...invalid && { "aria-invalid": true },
1911
- "data-start-icon": Boolean(startIcon),
1912
- className: (0, import_css28.cx)("peer", nativeProps.className, inputStyles.input)
1913
- }
1914
- ),
1915
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Show, { when: invalid, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(InvalidIcon, { className: inputStyles.icon }) }),
1916
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Show, { when: hasEndIcon && !invalid, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: inputStyles.icon, children: endIcon }) })
1917
- ] });
1918
- }
1919
-
1920
- // src/components/Label.tsx
1921
- var import_recipes22 = require("@cerberus/styled-system/recipes");
1922
- var import_css29 = require("@cerberus/styled-system/css");
1923
- var import_patterns9 = require("@cerberus/styled-system/patterns");
1924
- var import_jsx_runtime36 = require("react/jsx-runtime");
1925
- function Label(props) {
1926
- const { hidden, size, ...nativeProps } = props;
1927
- const { required, disabled } = useFieldContext();
1928
- const usage = hidden ? "hidden" : "visible";
1929
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
1930
- "label",
1931
- {
1932
- ...nativeProps,
1933
- ...disabled && { "data-disabled": true },
1934
- className: (0, import_css29.cx)(
1935
- nativeProps.className,
1936
- (0, import_recipes22.label)({ size, usage }),
1937
- (0, import_patterns9.hstack)({
1938
- justify: "space-between",
1939
- w: "full"
1940
- })
1941
- ),
1942
- children: [
1943
- props.children,
1944
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Show, { when: required, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1945
- "span",
1946
- {
1947
- className: (0, import_css29.css)({
1948
- color: "page.text.100",
1949
- fontSize: "inherit"
1950
- }),
1951
- children: "(required)"
1952
- }
1953
- ) })
1954
- ]
1955
- }
1956
- );
1957
- }
1958
-
1959
2181
  // src/components/Legend.tsx
1960
- var import_css30 = require("@cerberus/styled-system/css");
1961
- var import_recipes23 = require("@cerberus/styled-system/recipes");
1962
- var import_patterns10 = require("@cerberus/styled-system/patterns");
1963
- var import_jsx_runtime37 = require("react/jsx-runtime");
2182
+ var import_css32 = require("@cerberus/styled-system/css");
2183
+ var import_recipes25 = require("@cerberus/styled-system/recipes");
2184
+ var import_patterns9 = require("@cerberus/styled-system/patterns");
2185
+ var import_field7 = require("@ark-ui/react/field");
2186
+ var import_jsx_runtime39 = require("react/jsx-runtime");
1964
2187
  function Legend(props) {
1965
2188
  const { size, ...nativeProps } = props;
1966
- const { invalid, ...formState } = useFieldContext();
1967
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
2189
+ const { invalid, required } = (0, import_field7.useFieldContext)();
2190
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
1968
2191
  "legend",
1969
2192
  {
1970
2193
  ...nativeProps,
1971
- ...formState,
1972
2194
  ...invalid && { "aria-invalid": true },
1973
- className: (0, import_css30.cx)(
2195
+ className: (0, import_css32.cx)(
1974
2196
  nativeProps.className,
1975
- (0, import_patterns10.hstack)({
2197
+ (0, import_patterns9.hstack)({
1976
2198
  justify: "space-between",
1977
2199
  w: "full"
1978
2200
  }),
1979
- (0, import_recipes23.label)({
2201
+ (0, import_recipes25.label)({
1980
2202
  size
1981
2203
  })
1982
2204
  ),
1983
2205
  children: [
1984
2206
  nativeProps.children,
1985
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Show, { when: formState.required, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2207
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Show, { when: required, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1986
2208
  "span",
1987
2209
  {
1988
- className: (0, import_css30.css)({
2210
+ className: (0, import_css32.css)({
1989
2211
  color: "page.text.100",
1990
2212
  fontSize: "inherit"
1991
2213
  }),
@@ -1998,52 +2220,52 @@ function Legend(props) {
1998
2220
  }
1999
2221
 
2000
2222
  // src/components/Menu.tsx
2001
- var import_react20 = require("@ark-ui/react");
2002
- var import_recipes24 = require("@cerberus/styled-system/recipes");
2003
- var import_css31 = require("@cerberus/styled-system/css");
2004
- var import_jsx_runtime38 = require("react/jsx-runtime");
2005
- var menuStyles = (0, import_recipes24.menu)();
2006
- var Menu = import_react20.Menu.Root;
2223
+ var import_react21 = require("@ark-ui/react");
2224
+ var import_recipes26 = require("@cerberus/styled-system/recipes");
2225
+ var import_css33 = require("@cerberus/styled-system/css");
2226
+ var import_jsx_runtime40 = require("react/jsx-runtime");
2227
+ var menuStyles = (0, import_recipes26.menu)();
2228
+ var Menu = import_react21.Menu.Root;
2007
2229
  function MenuTrigger(props) {
2008
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react20.Menu.Trigger, { ...props, asChild: true });
2230
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react21.Menu.Trigger, { ...props, asChild: true });
2009
2231
  }
2010
2232
  function MenuContent(props) {
2011
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react20.Menu.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2012
- import_react20.Menu.Content,
2233
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react21.Menu.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2234
+ import_react21.Menu.Content,
2013
2235
  {
2014
2236
  ...props,
2015
- className: (0, import_css31.cx)(props.className, menuStyles.content)
2237
+ className: (0, import_css33.cx)(props.className, menuStyles.content)
2016
2238
  }
2017
2239
  ) });
2018
2240
  }
2019
2241
  function MenuItem(props) {
2020
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react20.Menu.Item, { ...props, className: (0, import_css31.cx)(props.className, menuStyles.item) });
2242
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react21.Menu.Item, { ...props, className: (0, import_css33.cx)(props.className, menuStyles.item) });
2021
2243
  }
2022
- var MenuItemGroup = import_react20.Menu.ItemGroup;
2244
+ var MenuItemGroup = import_react21.Menu.ItemGroup;
2023
2245
  function MenuGroupLabel(props) {
2024
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2025
- import_react20.Menu.ItemGroupLabel,
2246
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2247
+ import_react21.Menu.ItemGroupLabel,
2026
2248
  {
2027
2249
  ...props,
2028
- className: (0, import_css31.cx)(props.className, menuStyles.itemGroupLabel)
2250
+ className: (0, import_css33.cx)(props.className, menuStyles.itemGroupLabel)
2029
2251
  }
2030
2252
  );
2031
2253
  }
2032
2254
  function MenuSeparator(props) {
2033
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2034
- import_react20.Menu.Separator,
2255
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2256
+ import_react21.Menu.Separator,
2035
2257
  {
2036
2258
  ...props,
2037
- className: (0, import_css31.cx)(props.className, menuStyles.separator)
2259
+ className: (0, import_css33.cx)(props.className, menuStyles.separator)
2038
2260
  }
2039
2261
  );
2040
2262
  }
2041
2263
 
2042
2264
  // src/components/Notification.tsx
2043
- var import_css32 = require("@cerberus/styled-system/css");
2044
- var import_patterns11 = require("@cerberus/styled-system/patterns");
2045
- var import_recipes25 = require("@cerberus/styled-system/recipes");
2046
- var import_react21 = require("react");
2265
+ var import_css34 = require("@cerberus/styled-system/css");
2266
+ var import_patterns10 = require("@cerberus/styled-system/patterns");
2267
+ var import_recipes27 = require("@cerberus/styled-system/recipes");
2268
+ var import_react22 = require("react");
2047
2269
 
2048
2270
  // src/aria-helpers/trap-focus.aria.ts
2049
2271
  function trapFocus(modalRef) {
@@ -2072,29 +2294,29 @@ function trapFocus(modalRef) {
2072
2294
  }
2073
2295
 
2074
2296
  // src/components/Notification.tsx
2075
- var import_jsx_runtime39 = require("react/jsx-runtime");
2297
+ var import_jsx_runtime41 = require("react/jsx-runtime");
2076
2298
  function MatchNotificationIcon(props) {
2077
2299
  const { icons } = useCerberusContext();
2078
2300
  const palette = props.palette || "info";
2079
2301
  const key = `${palette}Notification`;
2080
2302
  const Icon = icons[key];
2081
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Icon, {});
2303
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon, {});
2082
2304
  }
2083
2305
  function Notification(props) {
2084
2306
  const { children, palette, onClose, ...nativeProps } = props;
2085
- const ref = (0, import_react21.useRef)(null);
2307
+ const ref = (0, import_react22.useRef)(null);
2086
2308
  const onKeyDown = trapFocus(ref);
2087
- const styles = (0, import_recipes25.notification)({ palette });
2309
+ const styles = (0, import_recipes27.notification)({ palette });
2088
2310
  const { icons } = useCerberusContext();
2089
2311
  const { close: CloseIcon } = icons;
2090
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
2312
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
2091
2313
  "dialog",
2092
2314
  {
2093
2315
  ...nativeProps,
2094
2316
  "data-placement": "left",
2095
- className: (0, import_css32.cx)(
2317
+ className: (0, import_css34.cx)(
2096
2318
  nativeProps.className,
2097
- (0, import_patterns11.hstack)({
2319
+ (0, import_patterns10.hstack)({
2098
2320
  position: "relative",
2099
2321
  gap: "4"
2100
2322
  }),
@@ -2103,11 +2325,11 @@ function Notification(props) {
2103
2325
  onKeyDown,
2104
2326
  ref,
2105
2327
  children: [
2106
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: styles.icon, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(MatchNotificationIcon, { palette }) }),
2107
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2328
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: styles.icon, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(MatchNotificationIcon, { palette }) }),
2329
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2108
2330
  "div",
2109
2331
  {
2110
- className: (0, import_patterns11.vstack)({
2332
+ className: (0, import_patterns10.vstack)({
2111
2333
  alignItems: "flex-start",
2112
2334
  gap: "0",
2113
2335
  py: "2"
@@ -2115,14 +2337,14 @@ function Notification(props) {
2115
2337
  children
2116
2338
  }
2117
2339
  ),
2118
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2340
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2119
2341
  "button",
2120
2342
  {
2121
2343
  "aria-label": "Close",
2122
2344
  className: styles.close,
2123
2345
  onClick: onClose,
2124
2346
  value: props.id,
2125
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(CloseIcon, {})
2347
+ children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(CloseIcon, {})
2126
2348
  }
2127
2349
  )
2128
2350
  ]
@@ -2131,59 +2353,57 @@ function Notification(props) {
2131
2353
  }
2132
2354
 
2133
2355
  // src/components/NotificationHeading.tsx
2134
- var import_css33 = require("@cerberus/styled-system/css");
2135
- var import_recipes26 = require("@cerberus/styled-system/recipes");
2136
- var import_jsx_runtime40 = require("react/jsx-runtime");
2356
+ var import_css35 = require("@cerberus/styled-system/css");
2357
+ var import_recipes28 = require("@cerberus/styled-system/recipes");
2358
+ var import_jsx_runtime42 = require("react/jsx-runtime");
2137
2359
  function NotificationHeading(props) {
2138
2360
  const { palette, ...nativeProps } = props;
2139
- const styles = (0, import_recipes26.notification)({ palette });
2140
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { className: (0, import_css33.cx)(nativeProps.className, styles.heading), ...nativeProps });
2361
+ const styles = (0, import_recipes28.notification)({ palette });
2362
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { className: (0, import_css35.cx)(nativeProps.className, styles.heading), ...nativeProps });
2141
2363
  }
2142
2364
 
2143
2365
  // src/components/NotificationDescription.tsx
2144
- var import_css34 = require("@cerberus/styled-system/css");
2145
- var import_recipes27 = require("@cerberus/styled-system/recipes");
2146
- var import_jsx_runtime41 = require("react/jsx-runtime");
2366
+ var import_css36 = require("@cerberus/styled-system/css");
2367
+ var import_recipes29 = require("@cerberus/styled-system/recipes");
2368
+ var import_jsx_runtime43 = require("react/jsx-runtime");
2147
2369
  function NotificationDescription(props) {
2148
2370
  const { palette, ...nativeProps } = props;
2149
- const styles = (0, import_recipes27.notification)({ palette });
2150
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2371
+ const styles = (0, import_recipes29.notification)({ palette });
2372
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2151
2373
  "p",
2152
2374
  {
2153
- className: (0, import_css34.cx)(nativeProps.className, styles.description),
2375
+ className: (0, import_css36.cx)(nativeProps.className, styles.description),
2154
2376
  ...nativeProps
2155
2377
  }
2156
2378
  );
2157
2379
  }
2158
2380
 
2159
2381
  // src/components/Radio.tsx
2160
- var import_css35 = require("@cerberus/styled-system/css");
2161
- var import_patterns12 = require("@cerberus/styled-system/patterns");
2162
- var import_recipes28 = require("@cerberus/styled-system/recipes");
2163
- var import_jsx_runtime42 = require("react/jsx-runtime");
2382
+ var import_field8 = require("@ark-ui/react/field");
2383
+ var import_css37 = require("@cerberus/styled-system/css");
2384
+ var import_patterns11 = require("@cerberus/styled-system/patterns");
2385
+ var import_recipes30 = require("@cerberus/styled-system/recipes");
2386
+ var import_jsx_runtime44 = require("react/jsx-runtime");
2164
2387
  function Radio(props) {
2165
2388
  const { children, size, ...nativeProps } = props;
2166
- const { invalid, ...state } = useFieldContext();
2167
- const styles = (0, import_recipes28.radio)({ size });
2168
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
2389
+ const styles = (0, import_recipes30.radio)({ size });
2390
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
2169
2391
  "div",
2170
2392
  {
2171
- className: (0, import_css35.cx)(
2393
+ className: (0, import_css37.cx)(
2172
2394
  "group",
2173
- (0, import_patterns12.hstack)({
2395
+ (0, import_patterns11.hstack)({
2174
2396
  gap: "sm"
2175
2397
  }),
2176
2398
  styles.root
2177
2399
  ),
2178
2400
  tabIndex: 0,
2179
2401
  children: [
2180
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2181
- "input",
2402
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2403
+ import_field8.Field.Input,
2182
2404
  {
2183
2405
  ...nativeProps,
2184
- ...state,
2185
- ...invalid && { "aria-invalid": true },
2186
- className: (0, import_css35.cx)(nativeProps.className, styles.input),
2406
+ className: (0, import_css37.cx)(nativeProps.className, styles.input),
2187
2407
  tabIndex: -1,
2188
2408
  type: "radio"
2189
2409
  }
@@ -2196,40 +2416,25 @@ function Radio(props) {
2196
2416
 
2197
2417
  // src/components/Tabs.client.tsx
2198
2418
  var import_tabs2 = require("@ark-ui/react/tabs");
2199
- var import_css36 = require("@cerberus/styled-system/css");
2419
+ var import_css38 = require("@cerberus/styled-system/css");
2200
2420
 
2201
2421
  // src/context/tabs.tsx
2202
2422
  var import_tabs = require("@ark-ui/react/tabs");
2203
- var import_recipes29 = require("@cerberus/styled-system/recipes");
2204
- var import_react22 = require("react");
2205
-
2206
- // src/utils/localStorage.ts
2207
- function getLocalStorage(key, defaultValue) {
2208
- const value = window.localStorage.getItem(key);
2209
- if (value) {
2210
- return value;
2211
- }
2212
- return defaultValue;
2213
- }
2214
- function setLocalStorage(key, value) {
2215
- const stringValue = typeof value === "string" ? value : JSON.stringify(value);
2216
- window.localStorage.setItem(key, stringValue);
2217
- }
2218
-
2219
- // src/context/tabs.tsx
2220
- var import_jsx_runtime43 = require("react/jsx-runtime");
2221
- var TabsContext = (0, import_react22.createContext)(null);
2423
+ var import_recipes31 = require("@cerberus/styled-system/recipes");
2424
+ var import_react23 = require("react");
2425
+ var import_jsx_runtime45 = require("react/jsx-runtime");
2426
+ var TabsContext = (0, import_react23.createContext)(null);
2222
2427
  function Tabs(props) {
2223
2428
  const { cache, defaultValue, palette, uuid, ...arkProps } = props;
2224
- const [activeTab, setActiveTab] = (0, import_react22.useState)(
2429
+ const [activeTab, setActiveTab] = (0, import_react23.useState)(
2225
2430
  () => cache ? "" : defaultValue
2226
2431
  );
2227
- const styles = (0, import_recipes29.tabs)({ palette });
2228
- const cacheKey = (0, import_react22.useMemo)(
2432
+ const styles = (0, import_recipes31.tabs)({ palette });
2433
+ const cacheKey = (0, import_react23.useMemo)(
2229
2434
  () => uuid ? `cerberus-tabs-${uuid}` : "cerberus-tabs",
2230
2435
  [uuid]
2231
2436
  );
2232
- const handleValueChange = (0, import_react22.useCallback)(
2437
+ const handleValueChange = (0, import_react23.useCallback)(
2233
2438
  (details) => {
2234
2439
  if (cache) {
2235
2440
  setLocalStorage(cacheKey, details.value);
@@ -2238,20 +2443,20 @@ function Tabs(props) {
2238
2443
  },
2239
2444
  [cache]
2240
2445
  );
2241
- (0, import_react22.useEffect)(() => {
2446
+ (0, import_react23.useEffect)(() => {
2242
2447
  if (cache && !activeTab) {
2243
2448
  const cachedTab = getLocalStorage(cacheKey, defaultValue ?? "");
2244
2449
  setActiveTab(cachedTab);
2245
2450
  }
2246
2451
  }, [cache, defaultValue, activeTab]);
2247
- const value = (0, import_react22.useMemo)(
2452
+ const value = (0, import_react23.useMemo)(
2248
2453
  () => ({
2249
2454
  active: activeTab,
2250
2455
  styles
2251
2456
  }),
2252
2457
  [activeTab, palette, styles]
2253
2458
  );
2254
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(TabsContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2459
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TabsContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2255
2460
  import_tabs.Tabs.Root,
2256
2461
  {
2257
2462
  ...arkProps,
@@ -2265,7 +2470,7 @@ function Tabs(props) {
2265
2470
  ) });
2266
2471
  }
2267
2472
  function useTabsContext() {
2268
- const context = (0, import_react22.useContext)(TabsContext);
2473
+ const context = (0, import_react23.useContext)(TabsContext);
2269
2474
  if (!context) {
2270
2475
  throw new Error("useTabsContext must be used within a Tabs Provider.");
2271
2476
  }
@@ -2273,18 +2478,18 @@ function useTabsContext() {
2273
2478
  }
2274
2479
 
2275
2480
  // src/components/Tabs.client.tsx
2276
- var import_jsx_runtime44 = require("react/jsx-runtime");
2481
+ var import_jsx_runtime46 = require("react/jsx-runtime");
2277
2482
  function TabsList(props) {
2278
2483
  const { children, ...tabsProps } = props;
2279
2484
  const { styles } = useTabsContext();
2280
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
2485
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
2281
2486
  import_tabs2.Tabs.List,
2282
2487
  {
2283
2488
  ...tabsProps,
2284
- className: (0, import_css36.cx)(tabsProps.className, styles.list),
2489
+ className: (0, import_css38.cx)(tabsProps.className, styles.list),
2285
2490
  children: [
2286
2491
  children,
2287
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(TabIndicator, {})
2492
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TabIndicator, {})
2288
2493
  ]
2289
2494
  }
2290
2495
  );
@@ -2292,90 +2497,90 @@ function TabsList(props) {
2292
2497
  var TabList = TabsList;
2293
2498
  function Tab(props) {
2294
2499
  const { styles } = useTabsContext();
2295
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2500
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2296
2501
  import_tabs2.Tabs.Trigger,
2297
2502
  {
2298
2503
  ...props,
2299
- className: (0, import_css36.cx)(props.className, styles.trigger)
2504
+ className: (0, import_css38.cx)(props.className, styles.trigger)
2300
2505
  }
2301
2506
  );
2302
2507
  }
2303
2508
  function TabIndicator(props) {
2304
2509
  const { styles } = useTabsContext();
2305
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2510
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2306
2511
  import_tabs2.Tabs.Indicator,
2307
2512
  {
2308
2513
  ...props,
2309
- className: (0, import_css36.cx)(props.className, styles.indicator)
2514
+ className: (0, import_css38.cx)(props.className, styles.indicator)
2310
2515
  }
2311
2516
  );
2312
2517
  }
2313
2518
  function TabPanel(props) {
2314
2519
  const { styles } = useTabsContext();
2315
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2520
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2316
2521
  import_tabs2.Tabs.Content,
2317
2522
  {
2318
2523
  ...props,
2319
- className: (0, import_css36.cx)(props.className, styles.content)
2524
+ className: (0, import_css38.cx)(props.className, styles.content)
2320
2525
  }
2321
2526
  );
2322
2527
  }
2323
2528
 
2324
2529
  // src/components/Table.tsx
2325
- var import_css37 = require("@cerberus/styled-system/css");
2326
- var import_recipes30 = require("@cerberus/styled-system/recipes");
2327
- var import_jsx_runtime45 = require("react/jsx-runtime");
2530
+ var import_css39 = require("@cerberus/styled-system/css");
2531
+ var import_recipes32 = require("@cerberus/styled-system/recipes");
2532
+ var import_jsx_runtime47 = require("react/jsx-runtime");
2328
2533
  function Table(props) {
2329
2534
  const { caption, children, ...nativeProps } = props;
2330
- const styles = (0, import_recipes30.table)();
2331
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: styles.container, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
2535
+ const styles = (0, import_recipes32.table)();
2536
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: styles.container, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
2332
2537
  "table",
2333
2538
  {
2334
2539
  ...nativeProps,
2335
- className: (0, import_css37.cx)(nativeProps.className, styles.table),
2540
+ className: (0, import_css39.cx)(nativeProps.className, styles.table),
2336
2541
  children: [
2337
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("caption", { className: styles.caption, children: caption }),
2542
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("caption", { className: styles.caption, children: caption }),
2338
2543
  children
2339
2544
  ]
2340
2545
  }
2341
2546
  ) });
2342
2547
  }
2343
2548
  function Tr(props) {
2344
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("tr", { ...props });
2549
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("tr", { ...props });
2345
2550
  }
2346
2551
 
2347
2552
  // src/components/Thead.tsx
2348
- var import_css38 = require("@cerberus/styled-system/css");
2349
- var import_recipes31 = require("@cerberus/styled-system/recipes");
2350
- var import_jsx_runtime46 = require("react/jsx-runtime");
2553
+ var import_css40 = require("@cerberus/styled-system/css");
2554
+ var import_recipes33 = require("@cerberus/styled-system/recipes");
2555
+ var import_jsx_runtime48 = require("react/jsx-runtime");
2351
2556
  function Thead(props) {
2352
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("thead", { ...props, className: (0, import_css38.cx)(props.className, (0, import_recipes31.thead)()) });
2557
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("thead", { ...props, className: (0, import_css40.cx)(props.className, (0, import_recipes33.thead)()) });
2353
2558
  }
2354
2559
 
2355
2560
  // src/components/Th.tsx
2356
- var import_css39 = require("@cerberus/styled-system/css");
2357
- var import_recipes32 = require("@cerberus/styled-system/recipes");
2358
- var import_jsx_runtime47 = require("react/jsx-runtime");
2561
+ var import_css41 = require("@cerberus/styled-system/css");
2562
+ var import_recipes34 = require("@cerberus/styled-system/recipes");
2563
+ var import_jsx_runtime49 = require("react/jsx-runtime");
2359
2564
  function Th(props) {
2360
2565
  const { size, onClick, ...nativeProps } = props;
2361
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2566
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2362
2567
  Show,
2363
2568
  {
2364
2569
  when: Boolean(onClick),
2365
- fallback: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2570
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2366
2571
  "th",
2367
2572
  {
2368
2573
  ...nativeProps,
2369
- className: (0, import_css39.cx)(nativeProps.className, (0, import_recipes32.th)({ size }))
2574
+ className: (0, import_css41.cx)(nativeProps.className, (0, import_recipes34.th)({ size }))
2370
2575
  }
2371
2576
  ),
2372
- children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("th", { ...nativeProps, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2577
+ children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("th", { ...nativeProps, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2373
2578
  "button",
2374
2579
  {
2375
- className: (0, import_css39.cx)(
2580
+ className: (0, import_css41.cx)(
2376
2581
  nativeProps.className,
2377
- (0, import_recipes32.th)({ size }),
2378
- (0, import_css39.css)({
2582
+ (0, import_recipes34.th)({ size }),
2583
+ (0, import_css41.css)({
2379
2584
  alignItems: "center",
2380
2585
  display: "inline-flex",
2381
2586
  justifyContent: "space-between",
@@ -2395,18 +2600,18 @@ function Th(props) {
2395
2600
  }
2396
2601
 
2397
2602
  // src/components/Td.tsx
2398
- var import_css40 = require("@cerberus/styled-system/css");
2399
- var import_recipes33 = require("@cerberus/styled-system/recipes");
2400
- var import_jsx_runtime48 = require("react/jsx-runtime");
2603
+ var import_css42 = require("@cerberus/styled-system/css");
2604
+ var import_recipes35 = require("@cerberus/styled-system/recipes");
2605
+ var import_jsx_runtime50 = require("react/jsx-runtime");
2401
2606
  function Td(props) {
2402
2607
  const { size, ...nativeProps } = props;
2403
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2608
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2404
2609
  "td",
2405
2610
  {
2406
2611
  ...nativeProps,
2407
- className: (0, import_css40.cx)(
2612
+ className: (0, import_css42.cx)(
2408
2613
  nativeProps.className,
2409
- (0, import_recipes33.td)({
2614
+ (0, import_recipes35.td)({
2410
2615
  size
2411
2616
  })
2412
2617
  )
@@ -2415,18 +2620,18 @@ function Td(props) {
2415
2620
  }
2416
2621
 
2417
2622
  // src/components/Tbody.tsx
2418
- var import_recipes34 = require("@cerberus/styled-system/recipes");
2419
- var import_css41 = require("@cerberus/styled-system/css");
2420
- var import_jsx_runtime49 = require("react/jsx-runtime");
2623
+ var import_recipes36 = require("@cerberus/styled-system/recipes");
2624
+ var import_css43 = require("@cerberus/styled-system/css");
2625
+ var import_jsx_runtime51 = require("react/jsx-runtime");
2421
2626
  function Tbody(props) {
2422
2627
  const { decoration, ...nativeProps } = props;
2423
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2628
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2424
2629
  "tbody",
2425
2630
  {
2426
2631
  ...nativeProps,
2427
- className: (0, import_css41.cx)(
2632
+ className: (0, import_css43.cx)(
2428
2633
  nativeProps.className,
2429
- (0, import_recipes34.tbody)({
2634
+ (0, import_recipes36.tbody)({
2430
2635
  decoration
2431
2636
  })
2432
2637
  )
@@ -2435,9 +2640,9 @@ function Tbody(props) {
2435
2640
  }
2436
2641
 
2437
2642
  // src/components/Tag.tsx
2438
- var import_css42 = require("@cerberus/styled-system/css");
2439
- var import_recipes35 = require("@cerberus/styled-system/recipes");
2440
- var import_jsx_runtime50 = require("react/jsx-runtime");
2643
+ var import_css44 = require("@cerberus/styled-system/css");
2644
+ var import_recipes37 = require("@cerberus/styled-system/recipes");
2645
+ var import_jsx_runtime52 = require("react/jsx-runtime");
2441
2646
  function Tag(props) {
2442
2647
  const { shape: initShape, gradient, onClick, usage, ...nativeProps } = props;
2443
2648
  const palette = (props == null ? void 0 : props.palette) ?? "page";
@@ -2446,13 +2651,13 @@ function Tag(props) {
2446
2651
  const closableStyles = isClosable ? closableCss : "";
2447
2652
  const { icons } = useCerberusContext();
2448
2653
  const { close: Close } = icons;
2449
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
2654
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
2450
2655
  "span",
2451
2656
  {
2452
2657
  ...nativeProps,
2453
- className: (0, import_css42.cx)(
2658
+ className: (0, import_css44.cx)(
2454
2659
  nativeProps.className,
2455
- (0, import_recipes35.tag)({
2660
+ (0, import_recipes37.tag)({
2456
2661
  gradient,
2457
2662
  palette,
2458
2663
  shape,
@@ -2462,127 +2667,104 @@ function Tag(props) {
2462
2667
  ),
2463
2668
  children: [
2464
2669
  props.children,
2465
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Show, { when: isClosable, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2670
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Show, { when: isClosable, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2466
2671
  "button",
2467
2672
  {
2468
2673
  "aria-label": "Close",
2469
- className: (0, import_recipes35.iconButton)({
2674
+ className: (0, import_recipes37.iconButton)({
2470
2675
  palette: "action",
2471
2676
  usage: "filled",
2472
2677
  size: "sm"
2473
2678
  }),
2474
2679
  onClick,
2475
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Close, {})
2680
+ children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Close, {})
2476
2681
  }
2477
2682
  ) })
2478
2683
  ]
2479
2684
  }
2480
2685
  );
2481
2686
  }
2482
- var closableCss = (0, import_css42.css)({
2687
+ var closableCss = (0, import_css44.css)({
2483
2688
  bgColor: "action.bg.active",
2484
2689
  color: "action.text.initial",
2485
2690
  paddingInlineEnd: "0"
2486
2691
  });
2487
2692
 
2488
2693
  // src/components/Text.tsx
2489
- var import_jsx2 = require("@cerberus/styled-system/jsx");
2490
- var import_jsx_runtime51 = require("react/jsx-runtime");
2694
+ var import_jsx3 = require("@cerberus/styled-system/jsx");
2695
+ var import_jsx_runtime53 = require("react/jsx-runtime");
2491
2696
  function Text(props) {
2492
2697
  const { as = "p", ...pandaJSXProps } = props;
2493
2698
  switch (as) {
2494
2699
  case "h1":
2495
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx2.H1, { ...pandaJSXProps });
2700
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_jsx3.H1, { ...pandaJSXProps });
2496
2701
  case "h2":
2497
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx2.H2, { ...pandaJSXProps });
2702
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_jsx3.H2, { ...pandaJSXProps });
2498
2703
  case "h3":
2499
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx2.H3, { ...pandaJSXProps });
2704
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_jsx3.H3, { ...pandaJSXProps });
2500
2705
  case "h4":
2501
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx2.H4, { ...pandaJSXProps });
2706
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_jsx3.H4, { ...pandaJSXProps });
2502
2707
  case "h5":
2503
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx2.H5, { ...pandaJSXProps });
2708
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_jsx3.H5, { ...pandaJSXProps });
2504
2709
  case "h6":
2505
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx2.H6, { ...pandaJSXProps });
2710
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_jsx3.H6, { ...pandaJSXProps });
2506
2711
  case "strong":
2507
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx2.Strong, { ...pandaJSXProps });
2712
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_jsx3.Strong, { ...pandaJSXProps });
2508
2713
  case "em":
2509
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx2.Em, { ...pandaJSXProps });
2714
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_jsx3.Em, { ...pandaJSXProps });
2510
2715
  case "small":
2511
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx2.Small, { ...pandaJSXProps });
2716
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_jsx3.Small, { ...pandaJSXProps });
2512
2717
  case "span":
2513
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx2.Span, { ...pandaJSXProps });
2718
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_jsx3.Span, { ...pandaJSXProps });
2514
2719
  default:
2515
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx2.P, { ...pandaJSXProps });
2720
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_jsx3.P, { ...pandaJSXProps });
2516
2721
  }
2517
2722
  }
2518
2723
 
2519
- // src/components/Textarea.tsx
2520
- var import_css43 = require("@cerberus/styled-system/css");
2521
- var import_recipes36 = require("@cerberus/styled-system/recipes");
2522
- var import_jsx_runtime52 = require("react/jsx-runtime");
2523
- function Textarea(props) {
2524
- const { describedBy, ...nativeProps } = props;
2525
- const { invalid, ...fieldState } = useFieldContext();
2526
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2527
- "textarea",
2528
- {
2529
- ...nativeProps,
2530
- ...fieldState,
2531
- ...describedBy && { "aria-describedby": describedBy },
2532
- ...invalid && { "aria-invalid": true },
2533
- className: (0, import_css43.cx)(
2534
- props.className,
2535
- (0, import_recipes36.input)().input,
2536
- (0, import_css43.css)({
2537
- pxi: "2",
2538
- py: "2",
2539
- resize: "vertical"
2540
- })
2541
- ),
2542
- rows: 4
2543
- }
2544
- );
2545
- }
2546
-
2547
2724
  // src/components/Toggle.tsx
2548
- var import_css44 = require("@cerberus/styled-system/css");
2549
- var import_patterns13 = require("@cerberus/styled-system/patterns");
2550
- var import_recipes37 = require("@cerberus/styled-system/recipes");
2551
- var import_jsx_runtime53 = require("react/jsx-runtime");
2725
+ var import_field9 = require("@ark-ui/react/field");
2726
+ var import_css45 = require("@cerberus/styled-system/css");
2727
+ var import_patterns12 = require("@cerberus/styled-system/patterns");
2728
+ var import_recipes38 = require("@cerberus/styled-system/recipes");
2729
+ var import_jsx_runtime54 = require("react/jsx-runtime");
2552
2730
  function Toggle(props) {
2553
- const { size, describedBy, ...nativeProps } = props;
2554
- const styles = (0, import_recipes37.toggle)({ size });
2555
- const { invalid, ...state } = useFieldContext();
2731
+ const { size, ...nativeProps } = props;
2732
+ const styles = (0, import_recipes38.toggle)({ size });
2733
+ const { invalid, disabled, readOnly, required, ariaDescribedby } = (0, import_field9.useFieldContext)();
2556
2734
  const { icons } = useCerberusContext();
2557
2735
  const CheckedIcon = icons.toggleChecked;
2558
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
2736
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
2559
2737
  "span",
2560
2738
  {
2561
- className: (0, import_css44.cx)("group", styles.track, (0, import_patterns13.hstack)()),
2739
+ className: (0, import_css45.cx)("group", styles.track, (0, import_patterns12.hstack)()),
2562
2740
  "data-checked": props.checked || props.defaultChecked,
2563
2741
  children: [
2564
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2742
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2565
2743
  "input",
2566
2744
  {
2567
2745
  ...nativeProps,
2568
- ...state,
2569
- ...describedBy && { "aria-describedby": describedBy },
2746
+ ...disabled && { disabled: true },
2747
+ ...readOnly && { readOnly: true },
2748
+ ...required && { required: true },
2749
+ ...ariaDescribedby && {
2750
+ "aria-describedby": ariaDescribedby
2751
+ },
2570
2752
  ...invalid && { "aria-invalid": true },
2571
- className: (0, import_css44.cx)("peer", styles.input),
2753
+ className: (0, import_css45.cx)("peer", styles.input),
2572
2754
  role: "switch",
2573
2755
  type: "checkbox"
2574
2756
  }
2575
2757
  ),
2576
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2758
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2577
2759
  "span",
2578
2760
  {
2579
- className: (0, import_css44.cx)(
2761
+ className: (0, import_css45.cx)(
2580
2762
  styles.thumb,
2581
- (0, import_patterns13.vstack)({
2763
+ (0, import_patterns12.vstack)({
2582
2764
  justify: "center"
2583
2765
  })
2584
2766
  ),
2585
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(CheckedIcon, {})
2767
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(CheckedIcon, {})
2586
2768
  }
2587
2769
  )
2588
2770
  ]
@@ -2592,24 +2774,24 @@ function Toggle(props) {
2592
2774
 
2593
2775
  // src/components/Tooltip.tsx
2594
2776
  var import_tooltip = require("@ark-ui/react/tooltip");
2595
- var import_css45 = require("@cerberus/styled-system/css");
2596
- var import_recipes38 = require("@cerberus/styled-system/recipes");
2597
- var import_jsx_runtime54 = require("react/jsx-runtime");
2777
+ var import_css46 = require("@cerberus/styled-system/css");
2778
+ var import_recipes39 = require("@cerberus/styled-system/recipes");
2779
+ var import_jsx_runtime55 = require("react/jsx-runtime");
2598
2780
  function Tooltip(props) {
2599
2781
  const { content, children, asChild, ...nativeProps } = props;
2600
- const styles = (0, import_recipes38.tooltip)();
2782
+ const styles = (0, import_recipes39.tooltip)();
2601
2783
  const position = {
2602
2784
  placement: props.position || "top"
2603
2785
  };
2604
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_tooltip.Tooltip.Root, { openDelay: 400, positioning: position, children: [
2605
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_tooltip.Tooltip.Trigger, { className: styles.trigger, asChild, children }),
2606
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_tooltip.Tooltip.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
2786
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_tooltip.Tooltip.Root, { openDelay: 400, positioning: position, children: [
2787
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_tooltip.Tooltip.Trigger, { className: styles.trigger, asChild, children }),
2788
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_tooltip.Tooltip.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
2607
2789
  import_tooltip.Tooltip.Content,
2608
2790
  {
2609
2791
  ...nativeProps,
2610
- className: (0, import_css45.cx)(nativeProps.className, styles.content),
2792
+ className: (0, import_css46.cx)(nativeProps.className, styles.content),
2611
2793
  children: [
2612
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_tooltip.Tooltip.Arrow, { className: styles.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_tooltip.Tooltip.ArrowTip, { className: styles.arrowTip }) }),
2794
+ /* @__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 }) }),
2613
2795
  content
2614
2796
  ]
2615
2797
  }
@@ -2619,18 +2801,18 @@ function Tooltip(props) {
2619
2801
 
2620
2802
  // src/components/Select.tsx
2621
2803
  var import_select2 = require("@ark-ui/react/select");
2622
- var import_recipes39 = require("@cerberus/styled-system/recipes");
2623
- var import_css46 = require("@cerberus/styled-system/css");
2624
- var import_jsx3 = require("@cerberus/styled-system/jsx");
2804
+ var import_recipes40 = require("@cerberus/styled-system/recipes");
2805
+ var import_css47 = require("@cerberus/styled-system/css");
2806
+ var import_jsx4 = require("@cerberus/styled-system/jsx");
2625
2807
 
2626
2808
  // src/components/Select.server.tsx
2627
2809
  var import_select = require("@ark-ui/react/select");
2628
- var import_jsx_runtime55 = require("react/jsx-runtime");
2810
+ var import_jsx_runtime56 = require("react/jsx-runtime");
2629
2811
  function SelectRoot(props) {
2630
2812
  const { children, ...rootProps } = props;
2631
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_select.Select.Root, { ...rootProps, children: [
2813
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_select.Select.Root, { ...rootProps, children: [
2632
2814
  children,
2633
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_select.Select.HiddenSelect, {})
2815
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_select.Select.HiddenSelect, {})
2634
2816
  ] });
2635
2817
  }
2636
2818
  var SelectLabel = import_select.Select.Label;
@@ -2648,48 +2830,44 @@ var SelectItemText = import_select.Select.ItemText;
2648
2830
  var SelectItemIndicator = import_select.Select.ItemIndicator;
2649
2831
 
2650
2832
  // src/components/Select.tsx
2651
- var import_jsx_runtime56 = require("react/jsx-runtime");
2833
+ var import_jsx_runtime57 = require("react/jsx-runtime");
2652
2834
  function Select(props) {
2653
- const { collection, label: label5, placeholder, size, ...rootProps } = props;
2835
+ const { collection, placeholder, size, ...rootProps } = props;
2654
2836
  const { icons } = useCerberusContext();
2655
2837
  const { selectArrow: SelectArrow, invalid: InvalidIcon } = icons;
2656
- const styles = (0, import_recipes39.select)({ size });
2657
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(SelectRoot, { className: styles.root, collection, ...rootProps, children: [
2658
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(SelectLabel, { className: styles.label, children: [
2659
- label5,
2660
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Show, { when: props.required, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, { as: "span", color: "page.text.100", children: "(required)" }) })
2661
- ] }),
2662
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SelectControl, { className: styles.control, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(SelectTrigger, { className: styles.trigger, children: [
2663
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SelectValueText, { placeholder }),
2664
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx3.HStack, { children: [
2665
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Show, { when: props.invalid, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(InvalidIcon, { "data-part": "invalid-icon" }) }),
2666
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SelectIndicator, { className: styles.indicator, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SelectArrow, {}) })
2838
+ const styles = (0, import_recipes40.select)({ size });
2839
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(SelectRoot, { className: styles.root, collection, ...rootProps, children: [
2840
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SelectControl, { className: styles.control, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(SelectTrigger, { className: styles.trigger, children: [
2841
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SelectValueText, { placeholder }),
2842
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx4.HStack, { children: [
2843
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Show, { when: props.invalid, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(InvalidIcon, { "data-part": "invalid-icon" }) }),
2844
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SelectIndicator, { className: styles.indicator, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SelectArrow, {}) })
2667
2845
  ] })
2668
2846
  ] }) }),
2669
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SelectPositioner, { className: styles.positioner, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SelectContent, { className: styles.content, children: props.children }) }) }),
2670
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_select2.Select.HiddenSelect, {})
2847
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SelectPositioner, { className: styles.positioner, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SelectContent, { className: styles.content, children: props.children }) }) }),
2848
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_select2.Select.HiddenSelect, {})
2671
2849
  ] });
2672
2850
  }
2673
2851
  function Option(props) {
2674
2852
  const { item, ...itemProps } = props;
2675
2853
  const { icons } = useCerberusContext();
2676
2854
  const { selectChecked: CheckedIcon } = icons;
2677
- const styles = (0, import_recipes39.select)();
2678
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(SelectItem, { ...itemProps, item, className: styles.item, children: [
2679
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SelectItemText, { className: styles.itemText, children: item == null ? void 0 : item.label }),
2680
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SelectItemIndicator, { className: styles.itemIndicator, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(CheckedIcon, {}) })
2855
+ const styles = (0, import_recipes40.select)();
2856
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(SelectItem, { ...itemProps, item, className: styles.item, children: [
2857
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SelectItemText, { className: styles.itemText, children: item == null ? void 0 : item.label }),
2858
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SelectItemIndicator, { className: styles.itemIndicator, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(CheckedIcon, {}) })
2681
2859
  ] });
2682
2860
  }
2683
2861
  function OptionGroup(props) {
2684
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SelectItemGroup, { ...props });
2862
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SelectItemGroup, { ...props });
2685
2863
  }
2686
2864
  function OptionGroupLabel(props) {
2687
- const styles = (0, import_recipes39.select)();
2688
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
2865
+ const styles = (0, import_recipes40.select)();
2866
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2689
2867
  SelectItemGroupLabel,
2690
2868
  {
2691
2869
  ...props,
2692
- className: (0, import_css46.cx)(props.className, styles.itemGroupLabel)
2870
+ className: (0, import_css47.cx)(props.className, styles.itemGroupLabel)
2693
2871
  }
2694
2872
  );
2695
2873
  }
@@ -2700,23 +2878,23 @@ function createSelectCollection(collection) {
2700
2878
  }
2701
2879
 
2702
2880
  // src/context/confirm-modal.tsx
2703
- var import_react23 = require("react");
2704
- var import_css47 = require("@cerberus/styled-system/css");
2705
- var import_jsx4 = require("@cerberus/styled-system/jsx");
2706
- var import_jsx_runtime57 = require("react/jsx-runtime");
2707
- var ConfirmModalContext = (0, import_react23.createContext)(null);
2881
+ var import_react24 = require("react");
2882
+ var import_css48 = require("@cerberus/styled-system/css");
2883
+ var import_jsx5 = require("@cerberus/styled-system/jsx");
2884
+ var import_jsx_runtime58 = require("react/jsx-runtime");
2885
+ var ConfirmModalContext = (0, import_react24.createContext)(null);
2708
2886
  function ConfirmModal(props) {
2709
- const [open, setOpen] = (0, import_react23.useState)(false);
2710
- const [content, setContent] = (0, import_react23.useState)(null);
2711
- const resolveRef = (0, import_react23.useRef)(null);
2887
+ const [open, setOpen] = (0, import_react24.useState)(false);
2888
+ const [content, setContent] = (0, import_react24.useState)(null);
2889
+ const resolveRef = (0, import_react24.useRef)(null);
2712
2890
  const kind = (content == null ? void 0 : content.kind) ?? "non-destructive";
2713
2891
  const { icons } = useCerberusContext();
2714
2892
  const { confirmModal: ConfirmIcon } = icons;
2715
- const palette = (0, import_react23.useMemo)(
2893
+ const palette = (0, import_react24.useMemo)(
2716
2894
  () => kind === "destructive" ? "danger" : "action",
2717
2895
  [kind]
2718
2896
  );
2719
- const handleChoice = (0, import_react23.useCallback)(
2897
+ const handleChoice = (0, import_react24.useCallback)(
2720
2898
  (e) => {
2721
2899
  var _a, _b;
2722
2900
  const target = e.currentTarget;
@@ -2728,7 +2906,7 @@ function ConfirmModal(props) {
2728
2906
  },
2729
2907
  [setOpen]
2730
2908
  );
2731
- const handleShow = (0, import_react23.useCallback)(
2909
+ const handleShow = (0, import_react24.useCallback)(
2732
2910
  (options) => {
2733
2911
  return new Promise((resolve) => {
2734
2912
  setContent({ ...options });
@@ -2738,42 +2916,42 @@ function ConfirmModal(props) {
2738
2916
  },
2739
2917
  [setOpen, setContent]
2740
2918
  );
2741
- const value = (0, import_react23.useMemo)(
2919
+ const value = (0, import_react24.useMemo)(
2742
2920
  () => ({
2743
2921
  show: handleShow
2744
2922
  }),
2745
2923
  [handleShow]
2746
2924
  );
2747
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(ConfirmModalContext.Provider, { value, children: [
2925
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(ConfirmModalContext.Provider, { value, children: [
2748
2926
  props.children,
2749
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Dialog, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx4.VStack, { gap: "xl", w: "full", children: [
2750
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx4.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: [
2751
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2752
- import_jsx4.HStack,
2927
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Dialog, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx5.VStack, { gap: "xl", w: "full", children: [
2928
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx5.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: [
2929
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2930
+ import_jsx5.HStack,
2753
2931
  {
2754
2932
  alignSelf: "center",
2755
2933
  justify: "center",
2756
2934
  paddingBlockEnd: "md",
2757
2935
  w: "full",
2758
- children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2936
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2759
2937
  Show,
2760
2938
  {
2761
2939
  when: palette === "danger",
2762
- fallback: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2940
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2763
2941
  Avatar,
2764
2942
  {
2765
2943
  ariaLabel: "",
2766
2944
  gradient: "charon-light",
2767
- icon: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ConfirmIcon, { size: 24 }),
2945
+ icon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ConfirmIcon, { size: 24 }),
2768
2946
  src: ""
2769
2947
  }
2770
2948
  ),
2771
- children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2949
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2772
2950
  Avatar,
2773
2951
  {
2774
2952
  ariaLabel: "",
2775
2953
  gradient: "hades-dark",
2776
- icon: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ConfirmIcon, { size: 24 }),
2954
+ icon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ConfirmIcon, { size: 24 }),
2777
2955
  src: ""
2778
2956
  }
2779
2957
  )
@@ -2781,15 +2959,15 @@ function ConfirmModal(props) {
2781
2959
  )
2782
2960
  }
2783
2961
  ),
2784
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
2785
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(DialogDescription, { children: content == null ? void 0 : content.description })
2962
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
2963
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(DialogDescription, { children: content == null ? void 0 : content.description })
2786
2964
  ] }),
2787
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx4.HStack, { gap: "4", w: "full", children: [
2788
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2965
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx5.HStack, { gap: "4", w: "full", children: [
2966
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2789
2967
  Button,
2790
2968
  {
2791
2969
  autoFocus: true,
2792
- className: (0, import_css47.css)({
2970
+ className: (0, import_css48.css)({
2793
2971
  w: "1/2"
2794
2972
  }),
2795
2973
  name: "confirm",
@@ -2799,10 +2977,10 @@ function ConfirmModal(props) {
2799
2977
  children: content == null ? void 0 : content.actionText
2800
2978
  }
2801
2979
  ),
2802
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(DialogCloseTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2980
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(DialogCloseTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2803
2981
  Button,
2804
2982
  {
2805
- className: (0, import_css47.css)({
2983
+ className: (0, import_css48.css)({
2806
2984
  w: "1/2"
2807
2985
  }),
2808
2986
  name: "cancel",
@@ -2817,7 +2995,7 @@ function ConfirmModal(props) {
2817
2995
  ] });
2818
2996
  }
2819
2997
  function useConfirmModal() {
2820
- const context = (0, import_react23.useContext)(ConfirmModalContext);
2998
+ const context = (0, import_react24.useContext)(ConfirmModalContext);
2821
2999
  if (context === null) {
2822
3000
  throw new Error(
2823
3001
  "useConfirmModal must be used within a ConfirmModal Provider"
@@ -2827,20 +3005,20 @@ function useConfirmModal() {
2827
3005
  }
2828
3006
 
2829
3007
  // src/context/cta-modal.tsx
2830
- var import_react24 = require("react");
2831
- var import_jsx5 = require("@cerberus/styled-system/jsx");
2832
- var import_css48 = require("@cerberus/styled-system/css");
3008
+ var import_react25 = require("react");
2833
3009
  var import_jsx6 = require("@cerberus/styled-system/jsx");
2834
- var import_jsx_runtime58 = require("react/jsx-runtime");
2835
- var CTAModalContext = (0, import_react24.createContext)(null);
3010
+ var import_css49 = require("@cerberus/styled-system/css");
3011
+ var import_jsx7 = require("@cerberus/styled-system/jsx");
3012
+ var import_jsx_runtime59 = require("react/jsx-runtime");
3013
+ var CTAModalContext = (0, import_react25.createContext)(null);
2836
3014
  function CTAModal(props) {
2837
3015
  var _a, _b;
2838
- const [open, setOpen] = (0, import_react24.useState)(false);
2839
- const [content, setContent] = (0, import_react24.useState)(null);
3016
+ const [open, setOpen] = (0, import_react25.useState)(false);
3017
+ const [content, setContent] = (0, import_react25.useState)(null);
2840
3018
  const confirmIcon = content == null ? void 0 : content.icon;
2841
3019
  const { icons } = useCerberusContext();
2842
3020
  const { confirmModal: FallbackIcon } = icons;
2843
- const handleShow = (0, import_react24.useCallback)(
3021
+ const handleShow = (0, import_react25.useCallback)(
2844
3022
  (options) => {
2845
3023
  const maxActions = 2;
2846
3024
  if (options.actions.length > maxActions) {
@@ -2853,7 +3031,7 @@ function CTAModal(props) {
2853
3031
  },
2854
3032
  [setOpen]
2855
3033
  );
2856
- const handleActionClick = (0, import_react24.useCallback)(
3034
+ const handleActionClick = (0, import_react25.useCallback)(
2857
3035
  (event) => {
2858
3036
  const index = event.currentTarget.getAttribute("data-index");
2859
3037
  const action = content == null ? void 0 : content.actions[Number(index)];
@@ -2863,42 +3041,42 @@ function CTAModal(props) {
2863
3041
  },
2864
3042
  [content, setOpen]
2865
3043
  );
2866
- const value = (0, import_react24.useMemo)(
3044
+ const value = (0, import_react25.useMemo)(
2867
3045
  () => ({
2868
3046
  show: handleShow
2869
3047
  }),
2870
3048
  [handleShow]
2871
3049
  );
2872
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(CTAModalContext.Provider, { value, children: [
3050
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(CTAModalContext.Provider, { value, children: [
2873
3051
  props.children,
2874
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Dialog, { size: "sm", children: [
2875
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(DialogCloseIconTrigger, {}),
2876
- /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx6.VStack, { gap: "xl", w: "full", children: [
2877
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_jsx6.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx6.VStack, { gap: "lg", w: "full", children: [
2878
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
3052
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Dialog, { size: "sm", children: [
3053
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(DialogCloseIconTrigger, {}),
3054
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx7.VStack, { gap: "xl", w: "full", children: [
3055
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_jsx7.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx7.VStack, { gap: "lg", w: "full", children: [
3056
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2879
3057
  Avatar,
2880
3058
  {
2881
3059
  ariaLabel: "",
2882
3060
  gradient: "charon-light",
2883
- icon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
3061
+ icon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2884
3062
  Show,
2885
3063
  {
2886
3064
  when: Boolean(confirmIcon),
2887
- fallback: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(FallbackIcon, { size: 24 }),
3065
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(FallbackIcon, { size: 24 }),
2888
3066
  children: confirmIcon
2889
3067
  }
2890
3068
  ),
2891
3069
  src: ""
2892
3070
  }
2893
3071
  ),
2894
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
2895
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(DialogDescription, { children: content == null ? void 0 : content.description })
3072
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
3073
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(DialogDescription, { children: content == null ? void 0 : content.description })
2896
3074
  ] }) }),
2897
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_jsx5.HStack, { gap: "md", w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime58.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_runtime58.jsx)(
3075
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_jsx6.HStack, { gap: "md", w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime59.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_runtime59.jsx)(
2898
3076
  Button,
2899
3077
  {
2900
3078
  "data-index": index,
2901
- className: (0, import_css48.css)({
3079
+ className: (0, import_css49.css)({
2902
3080
  w: "1/2"
2903
3081
  }),
2904
3082
  onClick: handleActionClick,
@@ -2913,7 +3091,7 @@ function CTAModal(props) {
2913
3091
  ] });
2914
3092
  }
2915
3093
  function useCTAModal() {
2916
- const context = (0, import_react24.useContext)(CTAModalContext);
3094
+ const context = (0, import_react25.useContext)(CTAModalContext);
2917
3095
  if (context === null) {
2918
3096
  throw new Error("useCTAModal must be used within a CTAModal Provider");
2919
3097
  }
@@ -2921,10 +3099,10 @@ function useCTAModal() {
2921
3099
  }
2922
3100
 
2923
3101
  // src/context/notification-center.tsx
2924
- var import_react25 = require("react");
2925
- var import_patterns14 = require("@cerberus/styled-system/patterns");
2926
- var import_recipes40 = require("@cerberus/styled-system/recipes");
2927
- var import_css49 = require("@cerberus/styled-system/css");
3102
+ var import_react26 = require("react");
3103
+ var import_patterns13 = require("@cerberus/styled-system/patterns");
3104
+ var import_recipes41 = require("@cerberus/styled-system/recipes");
3105
+ var import_css50 = require("@cerberus/styled-system/css");
2928
3106
 
2929
3107
  // src/context/notification-center/store.ts
2930
3108
  function notificationCenterReducer(state, action) {
@@ -2957,16 +3135,16 @@ function clearNotificationState(dispatch) {
2957
3135
  }
2958
3136
 
2959
3137
  // src/context/notification-center.tsx
2960
- var import_jsx_runtime59 = require("react/jsx-runtime");
2961
- var NotificationsContext = (0, import_react25.createContext)(null);
3138
+ var import_jsx_runtime60 = require("react/jsx-runtime");
3139
+ var NotificationsContext = (0, import_react26.createContext)(null);
2962
3140
  function NotificationCenter(props) {
2963
- const [state, dispatch] = (0, import_react25.useReducer)(notificationCenterReducer, []);
2964
- const styles = (0, import_recipes40.notification)();
2965
- const timeout = (0, import_react25.useMemo)(
3141
+ const [state, dispatch] = (0, import_react26.useReducer)(notificationCenterReducer, []);
3142
+ const styles = (0, import_recipes41.notification)();
3143
+ const timeout = (0, import_react26.useMemo)(
2966
3144
  () => props.duration || 6e3,
2967
3145
  [props.duration]
2968
3146
  );
2969
- const closeNotification = (0, import_react25.useCallback)(
3147
+ const closeNotification = (0, import_react26.useCallback)(
2970
3148
  (id) => {
2971
3149
  updateNotificationState(dispatch, {
2972
3150
  id,
@@ -2978,7 +3156,7 @@ function NotificationCenter(props) {
2978
3156
  },
2979
3157
  [dispatch]
2980
3158
  );
2981
- const handleNotify = (0, import_react25.useCallback)(
3159
+ const handleNotify = (0, import_react26.useCallback)(
2982
3160
  (options) => {
2983
3161
  const id = `${options.palette}:${state.length + 1}`;
2984
3162
  addNotification(dispatch, {
@@ -2992,32 +3170,32 @@ function NotificationCenter(props) {
2992
3170
  },
2993
3171
  [dispatch, state, timeout, closeNotification]
2994
3172
  );
2995
- const handleClose = (0, import_react25.useCallback)(
3173
+ const handleClose = (0, import_react26.useCallback)(
2996
3174
  (e) => {
2997
3175
  const target = e.currentTarget;
2998
3176
  closeNotification(target.value);
2999
3177
  },
3000
3178
  [closeNotification]
3001
3179
  );
3002
- const handleCloseAll = (0, import_react25.useCallback)(() => {
3180
+ const handleCloseAll = (0, import_react26.useCallback)(() => {
3003
3181
  state.forEach((item) => {
3004
3182
  if (item.onClose) item.onClose();
3005
3183
  });
3006
3184
  clearNotificationState(dispatch);
3007
3185
  }, [state, dispatch]);
3008
- const value = (0, import_react25.useMemo)(
3186
+ const value = (0, import_react26.useMemo)(
3009
3187
  () => ({
3010
3188
  notify: handleNotify
3011
3189
  }),
3012
3190
  [handleNotify]
3013
3191
  );
3014
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(NotificationsContext.Provider, { value, children: [
3192
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(NotificationsContext.Provider, { value, children: [
3015
3193
  props.children,
3016
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Show, { when: state.length > 0, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Portal, { container: props.container, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: styles.center, children: [
3017
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Show, { when: state.length >= 4, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3194
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Show, { when: state.length > 0, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Portal, { container: props.container, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: styles.center, children: [
3195
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Show, { when: state.length >= 4, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3018
3196
  Button,
3019
3197
  {
3020
- className: (0, import_css49.cx)(styles.closeAll, (0, import_patterns14.animateIn)()),
3198
+ className: (0, import_css50.cx)(styles.closeAll, (0, import_patterns13.animateIn)()),
3021
3199
  onClick: handleCloseAll,
3022
3200
  palette: "action",
3023
3201
  shape: "rounded",
@@ -3026,17 +3204,17 @@ function NotificationCenter(props) {
3026
3204
  children: "Close all"
3027
3205
  }
3028
3206
  ) }),
3029
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3207
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3030
3208
  "div",
3031
3209
  {
3032
- className: (0, import_patterns14.vstack)({
3210
+ className: (0, import_patterns13.vstack)({
3033
3211
  alignItems: "flex-end",
3034
3212
  gap: "4"
3035
3213
  }),
3036
3214
  style: {
3037
3215
  alignItems: "flex-end"
3038
3216
  },
3039
- children: state.map((option) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3217
+ children: state.map((option) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3040
3218
  MatchNotification,
3041
3219
  {
3042
3220
  ...option,
@@ -3052,7 +3230,7 @@ function NotificationCenter(props) {
3052
3230
  }
3053
3231
  function MatchNotification(props) {
3054
3232
  const { palette, id, onClose, heading, description, open } = props;
3055
- const sharedProps = (0, import_react25.useMemo)(
3233
+ const sharedProps = (0, import_react26.useMemo)(
3056
3234
  () => ({
3057
3235
  id,
3058
3236
  open: true,
@@ -3063,30 +3241,30 @@ function MatchNotification(props) {
3063
3241
  );
3064
3242
  switch (palette) {
3065
3243
  case "success":
3066
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Notification, { ...sharedProps, palette: "success", children: [
3067
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(NotificationHeading, { palette: "success", children: heading }),
3068
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(NotificationDescription, { palette: "success", children: description })
3244
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Notification, { ...sharedProps, palette: "success", children: [
3245
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(NotificationHeading, { palette: "success", children: heading }),
3246
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(NotificationDescription, { palette: "success", children: description })
3069
3247
  ] });
3070
3248
  case "warning":
3071
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Notification, { ...sharedProps, palette: "warning", children: [
3072
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(NotificationHeading, { palette: "warning", children: heading }),
3073
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(NotificationDescription, { palette: "warning", children: description })
3249
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Notification, { ...sharedProps, palette: "warning", children: [
3250
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(NotificationHeading, { palette: "warning", children: heading }),
3251
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(NotificationDescription, { palette: "warning", children: description })
3074
3252
  ] });
3075
3253
  case "danger":
3076
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Notification, { ...sharedProps, palette: "danger", children: [
3077
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(NotificationHeading, { palette: "danger", children: heading }),
3078
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(NotificationDescription, { palette: "danger", children: description })
3254
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Notification, { ...sharedProps, palette: "danger", children: [
3255
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(NotificationHeading, { palette: "danger", children: heading }),
3256
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(NotificationDescription, { palette: "danger", children: description })
3079
3257
  ] });
3080
3258
  case "info":
3081
3259
  default:
3082
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Notification, { ...sharedProps, palette: "info", children: [
3083
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(NotificationHeading, { palette: "info", children: heading }),
3084
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(NotificationDescription, { palette: "info", children: description })
3260
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Notification, { ...sharedProps, palette: "info", children: [
3261
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(NotificationHeading, { palette: "info", children: heading }),
3262
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(NotificationDescription, { palette: "info", children: description })
3085
3263
  ] });
3086
3264
  }
3087
3265
  }
3088
3266
  function useNotificationCenter() {
3089
- const context = (0, import_react25.useContext)(NotificationsContext);
3267
+ const context = (0, import_react26.useContext)(NotificationsContext);
3090
3268
  if (!context) {
3091
3269
  throw new Error(
3092
3270
  "useNotificationCenter must be used within a NotificationsProvider"
@@ -3096,35 +3274,35 @@ function useNotificationCenter() {
3096
3274
  }
3097
3275
 
3098
3276
  // src/context/prompt-modal.tsx
3099
- var import_react26 = require("react");
3100
- var import_css50 = require("@cerberus/styled-system/css");
3101
- var import_patterns15 = require("@cerberus/styled-system/patterns");
3102
- var import_jsx7 = require("@cerberus/styled-system/jsx");
3103
- var import_react27 = require("@ark-ui/react");
3104
- var import_jsx_runtime60 = require("react/jsx-runtime");
3105
- var PromptModalContext = (0, import_react26.createContext)(null);
3277
+ var import_react27 = require("react");
3278
+ var import_react28 = require("@ark-ui/react");
3279
+ var import_jsx8 = require("@cerberus/styled-system/jsx");
3280
+ var import_css51 = require("@cerberus/styled-system/css");
3281
+ var import_patterns14 = require("@cerberus/styled-system/patterns");
3282
+ var import_jsx_runtime61 = require("react/jsx-runtime");
3283
+ var PromptModalContext = (0, import_react27.createContext)(null);
3106
3284
  function PromptModal(props) {
3107
- const resolveRef = (0, import_react26.useRef)(null);
3108
- const [open, setOpen] = (0, import_react26.useState)(false);
3109
- const [content, setContent] = (0, import_react26.useState)(null);
3110
- const [inputValue, setInputValue] = (0, import_react26.useState)("");
3285
+ const resolveRef = (0, import_react27.useRef)(null);
3286
+ const [open, setOpen] = (0, import_react27.useState)(false);
3287
+ const [content, setContent] = (0, import_react27.useState)(null);
3288
+ const [inputValue, setInputValue] = (0, import_react27.useState)("");
3111
3289
  const { icons } = useCerberusContext();
3112
3290
  const { promptModal: PromptIcon } = icons;
3113
- const isValid = (0, import_react26.useMemo)(
3291
+ const isValid = (0, import_react27.useMemo)(
3114
3292
  () => inputValue === (content == null ? void 0 : content.key),
3115
3293
  [inputValue, content]
3116
3294
  );
3117
- const palette = (0, import_react26.useMemo)(
3295
+ const palette = (0, import_react27.useMemo)(
3118
3296
  () => (content == null ? void 0 : content.kind) === "destructive" ? "danger" : "action",
3119
3297
  [content]
3120
3298
  );
3121
- const handleChange = (0, import_react26.useCallback)(
3299
+ const handleChange = (0, import_react27.useCallback)(
3122
3300
  (e) => {
3123
3301
  setInputValue(e.currentTarget.value);
3124
3302
  },
3125
3303
  [content]
3126
3304
  );
3127
- const handleChoice = (0, import_react26.useCallback)(
3305
+ const handleChoice = (0, import_react27.useCallback)(
3128
3306
  (e) => {
3129
3307
  var _a;
3130
3308
  const target = e.currentTarget;
@@ -3135,7 +3313,7 @@ function PromptModal(props) {
3135
3313
  },
3136
3314
  [inputValue, setOpen]
3137
3315
  );
3138
- const handleShow = (0, import_react26.useCallback)(
3316
+ const handleShow = (0, import_react27.useCallback)(
3139
3317
  (options) => {
3140
3318
  return new Promise((resolve) => {
3141
3319
  setContent({ ...options, kind: options.kind || "non-destructive" });
@@ -3145,42 +3323,42 @@ function PromptModal(props) {
3145
3323
  },
3146
3324
  [setOpen]
3147
3325
  );
3148
- const value = (0, import_react26.useMemo)(
3326
+ const value = (0, import_react27.useMemo)(
3149
3327
  () => ({
3150
3328
  show: handleShow
3151
3329
  }),
3152
3330
  [handleShow]
3153
3331
  );
3154
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(PromptModalContext.Provider, { value, children: [
3332
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(PromptModalContext.Provider, { value, children: [
3155
3333
  props.children,
3156
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Dialog, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx7.VStack, { gap: "xl", w: "full", children: [
3157
- /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx7.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: [
3158
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3159
- import_jsx7.HStack,
3334
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Dialog, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx8.VStack, { gap: "xl", w: "full", children: [
3335
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx8.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: [
3336
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3337
+ import_jsx8.HStack,
3160
3338
  {
3161
3339
  alignSelf: "center",
3162
3340
  justify: "center",
3163
3341
  paddingBlockEnd: "md",
3164
3342
  w: "full",
3165
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3343
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3166
3344
  Show,
3167
3345
  {
3168
3346
  when: palette === "danger",
3169
- fallback: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3347
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3170
3348
  Avatar,
3171
3349
  {
3172
3350
  ariaLabel: "",
3173
3351
  gradient: "charon-light",
3174
- icon: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(PromptIcon, { size: 24 }),
3352
+ icon: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(PromptIcon, { size: 24 }),
3175
3353
  src: ""
3176
3354
  }
3177
3355
  ),
3178
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3356
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3179
3357
  Avatar,
3180
3358
  {
3181
3359
  ariaLabel: "",
3182
3360
  gradient: "hades-dark",
3183
- icon: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(PromptIcon, { size: 24 }),
3361
+ icon: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(PromptIcon, { size: 24 }),
3184
3362
  src: ""
3185
3363
  }
3186
3364
  )
@@ -3188,51 +3366,52 @@ function PromptModal(props) {
3188
3366
  )
3189
3367
  }
3190
3368
  ),
3191
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
3192
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(DialogDescription, { children: content == null ? void 0 : content.description })
3369
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
3370
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(DialogDescription, { children: content == null ? void 0 : content.description })
3193
3371
  ] }),
3194
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3195
- import_jsx7.VStack,
3372
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3373
+ import_jsx8.VStack,
3196
3374
  {
3197
3375
  alignItems: "flex-start",
3198
3376
  marginBlockStart: "md",
3199
3377
  marginBlockEnd: "lg",
3200
3378
  w: "full",
3201
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Field, { invalid: !isValid, children: [
3202
- /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
3203
- Label,
3204
- {
3205
- className: (0, import_patterns15.hstack)({
3206
- gap: "xs",
3207
- justify: "flex-start !important"
3208
- }),
3209
- htmlFor: "confirm",
3210
- size: "md",
3211
- children: [
3212
- "Type",
3213
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Text, { as: "strong", textTransform: "uppercase", children: content == null ? void 0 : content.key }),
3214
- "to confirm"
3215
- ]
3216
- }
3217
- ),
3218
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3219
- Input,
3220
- {
3221
- id: "confirm",
3222
- name: "confirm",
3223
- onChange: handleChange,
3224
- type: "text"
3225
- }
3226
- )
3227
- ] })
3379
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
3380
+ FieldRoot,
3381
+ {
3382
+ ids: {
3383
+ control: "confirm"
3384
+ },
3385
+ invalid: !isValid,
3386
+ children: [
3387
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
3388
+ FieldLabel,
3389
+ {
3390
+ className: (0, import_patterns14.hstack)({
3391
+ gap: "xs",
3392
+ justify: "flex-start !important",
3393
+ marginBlockEnd: "xs",
3394
+ textStyle: "label-md"
3395
+ }),
3396
+ children: [
3397
+ "Type",
3398
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Text, { as: "strong", textTransform: "uppercase", children: content == null ? void 0 : content.key }),
3399
+ "to confirm"
3400
+ ]
3401
+ }
3402
+ ),
3403
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Input, { name: "confirm", onChange: handleChange, type: "text" })
3404
+ ]
3405
+ }
3406
+ )
3228
3407
  }
3229
3408
  ),
3230
- /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx7.HStack, { gap: "md", justify: "stretch", w: "full", children: [
3231
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3409
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx8.HStack, { gap: "md", justify: "stretch", w: "full", children: [
3410
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3232
3411
  Button,
3233
3412
  {
3234
3413
  autoFocus: true,
3235
- className: (0, import_css50.css)({
3414
+ className: (0, import_css51.css)({
3236
3415
  w: "1/2"
3237
3416
  }),
3238
3417
  disabled: !isValid,
@@ -3243,10 +3422,10 @@ function PromptModal(props) {
3243
3422
  children: content == null ? void 0 : content.actionText
3244
3423
  }
3245
3424
  ),
3246
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react27.DialogCloseTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3425
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react28.DialogCloseTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3247
3426
  Button,
3248
3427
  {
3249
- className: (0, import_css50.css)({
3428
+ className: (0, import_css51.css)({
3250
3429
  w: "1/2"
3251
3430
  }),
3252
3431
  name: "cancel",
@@ -3261,7 +3440,7 @@ function PromptModal(props) {
3261
3440
  ] });
3262
3441
  }
3263
3442
  function usePromptModal() {
3264
- const context = (0, import_react26.useContext)(PromptModalContext);
3443
+ const context = (0, import_react27.useContext)(PromptModalContext);
3265
3444
  if (context === null) {
3266
3445
  throw new Error("usePromptModal must be used within a PromptModal Provider");
3267
3446
  }
@@ -3269,50 +3448,50 @@ function usePromptModal() {
3269
3448
  }
3270
3449
 
3271
3450
  // src/context/theme.tsx
3272
- var import_react29 = require("react");
3451
+ var import_react30 = require("react");
3273
3452
 
3274
3453
  // src/hooks/useTheme.ts
3275
- var import_react28 = require("react");
3454
+ var import_react29 = require("react");
3276
3455
  var THEME_KEY = "cerberus-theme";
3277
3456
  var MODE_KEY = "cerberus-mode";
3278
3457
  function useTheme(defaultTheme = "cerberus", defaultColorMode = "light", options = {}) {
3279
3458
  const { updateMode, updateTheme, cache } = options;
3280
- const [theme, setTheme] = (0, import_react28.useState)(defaultTheme);
3281
- const [colorMode, setColorMode] = (0, import_react28.useState)(defaultColorMode);
3282
- const handleThemeChange = (0, import_react28.useCallback)(
3459
+ const [theme, setTheme] = (0, import_react29.useState)(defaultTheme);
3460
+ const [colorMode, setColorMode] = (0, import_react29.useState)(defaultColorMode);
3461
+ const handleThemeChange = (0, import_react29.useCallback)(
3283
3462
  (newTheme) => {
3284
3463
  setTheme(newTheme);
3285
3464
  updateTheme == null ? void 0 : updateTheme(newTheme);
3286
3465
  },
3287
3466
  [updateTheme]
3288
3467
  );
3289
- const handleColorModeChange = (0, import_react28.useCallback)(
3468
+ const handleColorModeChange = (0, import_react29.useCallback)(
3290
3469
  (newMode) => {
3291
3470
  setColorMode(newMode);
3292
3471
  updateMode == null ? void 0 : updateMode(newMode);
3293
3472
  },
3294
3473
  [updateMode]
3295
3474
  );
3296
- (0, import_react28.useLayoutEffect)(() => {
3475
+ (0, import_react29.useLayoutEffect)(() => {
3297
3476
  const theme2 = localStorage.getItem(THEME_KEY);
3298
3477
  if (theme2) {
3299
3478
  setTheme(theme2);
3300
3479
  }
3301
3480
  }, []);
3302
- (0, import_react28.useLayoutEffect)(() => {
3481
+ (0, import_react29.useLayoutEffect)(() => {
3303
3482
  const mode = localStorage.getItem(MODE_KEY);
3304
3483
  if (mode) {
3305
3484
  setColorMode(mode);
3306
3485
  }
3307
3486
  }, []);
3308
- (0, import_react28.useEffect)(() => {
3487
+ (0, import_react29.useEffect)(() => {
3309
3488
  const root = document.documentElement;
3310
3489
  root.dataset.pandaTheme = theme;
3311
3490
  if (cache) {
3312
3491
  localStorage.setItem(THEME_KEY, theme);
3313
3492
  }
3314
3493
  }, [theme, cache]);
3315
- (0, import_react28.useEffect)(() => {
3494
+ (0, import_react29.useEffect)(() => {
3316
3495
  const root = document.documentElement;
3317
3496
  if (colorMode === "system") {
3318
3497
  root.dataset.colorMode = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
@@ -3323,7 +3502,7 @@ function useTheme(defaultTheme = "cerberus", defaultColorMode = "light", options
3323
3502
  localStorage.setItem(MODE_KEY, colorMode);
3324
3503
  }
3325
3504
  }, [colorMode, cache]);
3326
- return (0, import_react28.useMemo)(
3505
+ return (0, import_react29.useMemo)(
3327
3506
  () => ({
3328
3507
  theme,
3329
3508
  mode: colorMode,
@@ -3335,8 +3514,8 @@ function useTheme(defaultTheme = "cerberus", defaultColorMode = "light", options
3335
3514
  }
3336
3515
 
3337
3516
  // src/context/theme.tsx
3338
- var import_jsx_runtime61 = require("react/jsx-runtime");
3339
- var ThemeContext = (0, import_react29.createContext)(
3517
+ var import_jsx_runtime62 = require("react/jsx-runtime");
3518
+ var ThemeContext = (0, import_react30.createContext)(
3340
3519
  null
3341
3520
  );
3342
3521
  function ThemeProvider(props) {
@@ -3345,109 +3524,16 @@ function ThemeProvider(props) {
3345
3524
  updateMode: props.updateMode,
3346
3525
  updateTheme: props.updateTheme
3347
3526
  });
3348
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ThemeContext.Provider, { value: state, children: props.children });
3527
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(ThemeContext.Provider, { value: state, children: props.children });
3349
3528
  }
3350
3529
  function useThemeContext() {
3351
- const context = (0, import_react29.useContext)(ThemeContext);
3530
+ const context = (0, import_react30.useContext)(ThemeContext);
3352
3531
  if (!context) {
3353
3532
  throw new Error("useThemeContext must be used within a ThemeProvider");
3354
3533
  }
3355
3534
  return context;
3356
3535
  }
3357
3536
 
3358
- // src/hooks/useDate.ts
3359
- var import_react30 = require("react");
3360
- function useDate(options) {
3361
- const initialValue = (options == null ? void 0 : options.initialValue) ?? "";
3362
- const format = (options == null ? void 0 : options.format) ?? DateFormats.USMilitary;
3363
- const onChange = options == null ? void 0 : options.onChange;
3364
- const [value, setValue] = (0, import_react30.useState)(initialValue);
3365
- const handleChange = (0, import_react30.useCallback)(
3366
- (e) => {
3367
- const newValue = formatMilitaryDate(e.currentTarget.value);
3368
- if (onChange) onChange(e);
3369
- setValue(newValue);
3370
- },
3371
- [onChange]
3372
- );
3373
- return (0, import_react30.useMemo)(
3374
- () => ({
3375
- format,
3376
- value,
3377
- ISO: formatMilitaryToISO(value),
3378
- onChange: handleChange
3379
- }),
3380
- [format, value, handleChange]
3381
- );
3382
- }
3383
- function formatMilitaryToISO(input3) {
3384
- const [day, month, year] = input3.split(" ");
3385
- const monthIndex = MONTHS.findIndex((m) => m.startsWith(month));
3386
- const monthNum = monthIndex + 1;
3387
- return `${year ?? "0000"}-${monthNum.toString().padStart(2, "0")}-${day.padStart(
3388
- 2,
3389
- "0"
3390
- )}`;
3391
- }
3392
- function formatMilitaryDate(input3) {
3393
- let formatted = input3.toUpperCase().replace(/[^0-9A-Z]/g, "");
3394
- let day = "";
3395
- let month = "";
3396
- let year = "";
3397
- if (formatted.length >= 2) {
3398
- day = formatted.replace(/[^0-9]/g, "").slice(0, 2);
3399
- const dayNum = parseInt(day, 10);
3400
- if (dayNum > 31) day = "31";
3401
- else if (dayNum === 0) day = "01";
3402
- formatted = formatted.slice(2);
3403
- }
3404
- if (formatted.length >= 3) {
3405
- month = formatted.slice(0, 3);
3406
- const monthIndex = MONTHS.findIndex((m) => m.startsWith(month));
3407
- if (monthIndex !== -1) {
3408
- month = MONTHS[monthIndex];
3409
- } else {
3410
- month = month.replace(/[^A-Z]/g, "");
3411
- }
3412
- formatted = formatted.slice(3);
3413
- }
3414
- if (formatted.length > 0) {
3415
- year = formatted.slice(0, 4);
3416
- }
3417
- return [day, month, year].filter(Boolean).join(" ");
3418
- }
3419
- function formatISOToMilitary(date) {
3420
- const [year, month, day] = date.split("-");
3421
- const monthIndex = parseInt(month, 10) - 1;
3422
- const monthStr = MONTHS[monthIndex];
3423
- return `${day} ${monthStr} ${year}`;
3424
- }
3425
- var DateFormats = {
3426
- get ISO() {
3427
- return "YYYY-MM-DD";
3428
- },
3429
- get USMilitary() {
3430
- return "DD MMM YYYY";
3431
- },
3432
- get Months() {
3433
- return MONTHS;
3434
- }
3435
- };
3436
- var MONTHS = [
3437
- "JAN",
3438
- "FEB",
3439
- "MAR",
3440
- "APR",
3441
- "MAY",
3442
- "JUN",
3443
- "JUL",
3444
- "AUG",
3445
- "SEP",
3446
- "OCT",
3447
- "NOV",
3448
- "DEC"
3449
- ];
3450
-
3451
3537
  // src/hooks/useModal.ts
3452
3538
  var import_react31 = require("react");
3453
3539
  function useModal() {
@@ -3526,9 +3612,9 @@ function rootColorsReducer(state, action) {
3526
3612
  }
3527
3613
 
3528
3614
  // src/config/icons/checkbox.icons.tsx
3529
- var import_jsx_runtime62 = require("react/jsx-runtime");
3615
+ var import_jsx_runtime63 = require("react/jsx-runtime");
3530
3616
  function CheckmarkIcon(props) {
3531
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3617
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3532
3618
  "svg",
3533
3619
  {
3534
3620
  "aria-hidden": "true",
@@ -3537,7 +3623,7 @@ function CheckmarkIcon(props) {
3537
3623
  role: "img",
3538
3624
  viewBox: "0 0 24 24",
3539
3625
  ...props,
3540
- children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3626
+ children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3541
3627
  "path",
3542
3628
  {
3543
3629
  fill: "currentColor",
@@ -3548,7 +3634,7 @@ function CheckmarkIcon(props) {
3548
3634
  );
3549
3635
  }
3550
3636
  function IndeterminateIcon(props) {
3551
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3637
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3552
3638
  "svg",
3553
3639
  {
3554
3640
  "aria-hidden": "true",
@@ -3557,15 +3643,15 @@ function IndeterminateIcon(props) {
3557
3643
  fill: "none",
3558
3644
  viewBox: "0 0 24 24",
3559
3645
  ...props,
3560
- children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("path", { fill: "currentColor", d: "M4 11h16v2.667H4z" })
3646
+ children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("path", { fill: "currentColor", d: "M4 11h16v2.667H4z" })
3561
3647
  }
3562
3648
  );
3563
3649
  }
3564
3650
 
3565
3651
  // src/components/AnimatingUploadIcon.tsx
3566
- var import_jsx_runtime63 = require("react/jsx-runtime");
3652
+ var import_jsx_runtime64 = require("react/jsx-runtime");
3567
3653
  function AnimatingUploadIcon(props) {
3568
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3654
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3569
3655
  "svg",
3570
3656
  {
3571
3657
  "aria-hidden": "true",
@@ -3573,7 +3659,7 @@ function AnimatingUploadIcon(props) {
3573
3659
  width: props.size ?? "1em",
3574
3660
  height: props.size ?? "1em",
3575
3661
  viewBox: "0 0 24 24",
3576
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
3662
+ children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
3577
3663
  "g",
3578
3664
  {
3579
3665
  fill: "none",
@@ -3582,14 +3668,14 @@ function AnimatingUploadIcon(props) {
3582
3668
  strokeLinejoin: "round",
3583
3669
  strokeWidth: 1.5,
3584
3670
  children: [
3585
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3671
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3586
3672
  "path",
3587
3673
  {
3588
3674
  "data-name": "animating-trail",
3589
3675
  strokeDasharray: "2 4",
3590
3676
  strokeDashoffset: 6,
3591
3677
  d: "M12 21c-4.97 0 -9 -4.03 -9 -9c0 -4.97 4.03 -9 9 -9",
3592
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3678
+ children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3593
3679
  "animate",
3594
3680
  {
3595
3681
  attributeName: "stroke-dashoffset",
@@ -3600,14 +3686,14 @@ function AnimatingUploadIcon(props) {
3600
3686
  )
3601
3687
  }
3602
3688
  ),
3603
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3689
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3604
3690
  "path",
3605
3691
  {
3606
3692
  "data-name": "half-circle",
3607
3693
  strokeDasharray: 32,
3608
3694
  strokeDashoffset: 32,
3609
3695
  d: "M12 3c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9",
3610
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3696
+ children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3611
3697
  "animate",
3612
3698
  {
3613
3699
  fill: "freeze",
@@ -3619,7 +3705,7 @@ function AnimatingUploadIcon(props) {
3619
3705
  )
3620
3706
  }
3621
3707
  ),
3622
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3708
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3623
3709
  "svg",
3624
3710
  {
3625
3711
  "aria-hidden": "true",
@@ -3629,7 +3715,7 @@ function AnimatingUploadIcon(props) {
3629
3715
  x: "27%",
3630
3716
  y: "27%",
3631
3717
  viewBox: "0 0 24 24",
3632
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3718
+ children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3633
3719
  "polygon",
3634
3720
  {
3635
3721
  fill: "currentColor",
@@ -3637,7 +3723,7 @@ function AnimatingUploadIcon(props) {
3637
3723
  strokeWidth: 0.8,
3638
3724
  opacity: "1",
3639
3725
  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 ",
3640
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3726
+ children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3641
3727
  "animate",
3642
3728
  {
3643
3729
  fill: "freeze",
@@ -3676,12 +3762,6 @@ function makeSystemConfig(options) {
3676
3762
  return options;
3677
3763
  }
3678
3764
 
3679
- // src/utils/index.ts
3680
- function formatNotifyCount(count) {
3681
- if (count > 99) return "99+";
3682
- return count.toString();
3683
- }
3684
-
3685
3765
  // src/index.ts
3686
3766
  __reExport(src_exports, require("@dnd-kit/core"), module.exports);
3687
3767
  // Annotate the CommonJS export names for ESM import in node:
@@ -3736,7 +3816,16 @@ __reExport(src_exports, require("@dnd-kit/core"), module.exports);
3736
3816
  FeatureFlag,
3737
3817
  FeatureFlags,
3738
3818
  Field,
3819
+ FieldErrorText,
3820
+ FieldHelperText,
3821
+ FieldInput,
3822
+ FieldLabel,
3739
3823
  FieldMessage,
3824
+ FieldParts,
3825
+ FieldRoot,
3826
+ FieldStartIndicator,
3827
+ FieldStatusIndicator,
3828
+ FieldTextarea,
3740
3829
  Fieldset,
3741
3830
  FieldsetLabel,
3742
3831
  FileStatus,
@@ -3822,13 +3911,13 @@ __reExport(src_exports, require("@dnd-kit/core"), module.exports);
3822
3911
  makeSystemConfig,
3823
3912
  processStatus,
3824
3913
  setLocalStorage,
3914
+ splitProps,
3825
3915
  trapFocus,
3826
3916
  useCTAModal,
3827
3917
  useCerberusContext,
3828
3918
  useConfirmModal,
3829
3919
  useDate,
3830
3920
  useFeatureFlags,
3831
- useFieldContext,
3832
3921
  useModal,
3833
3922
  useNavMenuContext,
3834
3923
  useNotificationCenter,