@cerberus-design/react 0.14.2-next-a928afd → 0.14.2-next-0052cda

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