@cerberus-design/react 0.8.1 → 0.9.0

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 (77) hide show
  1. package/build/legacy/_tsup-dts-rollup.d.cts +49 -0
  2. package/build/legacy/components/Avatar.cjs +196 -0
  3. package/build/legacy/components/Avatar.cjs.map +1 -0
  4. package/build/legacy/components/Checkbox.cjs +1 -0
  5. package/build/legacy/components/Checkbox.cjs.map +1 -1
  6. package/build/legacy/components/FileStatus.cjs +1 -0
  7. package/build/legacy/components/FileStatus.cjs.map +1 -1
  8. package/build/legacy/components/FileUploader.cjs +1 -0
  9. package/build/legacy/components/FileUploader.cjs.map +1 -1
  10. package/build/legacy/components/Input.cjs +1 -0
  11. package/build/legacy/components/Input.cjs.map +1 -1
  12. package/build/legacy/components/Notification.cjs +1 -0
  13. package/build/legacy/components/Notification.cjs.map +1 -1
  14. package/build/legacy/components/Select.cjs +1 -0
  15. package/build/legacy/components/Select.cjs.map +1 -1
  16. package/build/legacy/components/Toggle.cjs +1 -0
  17. package/build/legacy/components/Toggle.cjs.map +1 -1
  18. package/build/legacy/config/cerbIcons.cjs +1 -0
  19. package/build/legacy/config/cerbIcons.cjs.map +1 -1
  20. package/build/legacy/config/defineIcons.cjs +1 -0
  21. package/build/legacy/config/defineIcons.cjs.map +1 -1
  22. package/build/legacy/context/confirm-modal.cjs +1 -0
  23. package/build/legacy/context/confirm-modal.cjs.map +1 -1
  24. package/build/legacy/context/notification-center.cjs +1 -0
  25. package/build/legacy/context/notification-center.cjs.map +1 -1
  26. package/build/legacy/context/prompt-modal.cjs +1 -0
  27. package/build/legacy/context/prompt-modal.cjs.map +1 -1
  28. package/build/legacy/index.cjs +499 -403
  29. package/build/legacy/index.cjs.map +1 -1
  30. package/build/modern/_tsup-dts-rollup.d.ts +49 -0
  31. package/build/modern/{chunk-ID3XWGLY.js → chunk-4YJOK7JJ.js} +2 -2
  32. package/build/modern/{chunk-GUECLKHY.js → chunk-BDCFYW34.js} +3 -1
  33. package/build/modern/chunk-BDCFYW34.js.map +1 -0
  34. package/build/modern/{chunk-S6CMAXQF.js → chunk-CZMC77YO.js} +9 -9
  35. package/build/modern/{chunk-53QBTZZF.js → chunk-FMFKM2AB.js} +2 -2
  36. package/build/modern/{chunk-GZY6CH7D.js → chunk-GB3SECCO.js} +8 -8
  37. package/build/modern/{chunk-VPWBSZAR.js → chunk-KKJKOKP7.js} +5 -5
  38. package/build/modern/{chunk-7NX4RGDB.js → chunk-MLCVO7JP.js} +2 -2
  39. package/build/modern/{chunk-5WVXIAG2.js → chunk-NBG2OSYI.js} +2 -2
  40. package/build/modern/{chunk-EJIMJWPB.js → chunk-QZ6NS6VN.js} +2 -2
  41. package/build/modern/{chunk-TF3HRELU.js → chunk-TUIVLIJI.js} +2 -2
  42. package/build/modern/chunk-UN3OAW56.js +104 -0
  43. package/build/modern/chunk-UN3OAW56.js.map +1 -0
  44. package/build/modern/{chunk-RHG26FYL.js → chunk-VRPAW76S.js} +2 -2
  45. package/build/modern/{chunk-4FD33RTW.js → chunk-ZCIJRM2X.js} +2 -2
  46. package/build/modern/components/Avatar.js +11 -0
  47. package/build/modern/components/Avatar.js.map +1 -0
  48. package/build/modern/components/Checkbox.js +3 -3
  49. package/build/modern/components/FileStatus.js +3 -3
  50. package/build/modern/components/FileUploader.js +3 -3
  51. package/build/modern/components/Input.js +3 -3
  52. package/build/modern/components/Notification.js +3 -3
  53. package/build/modern/components/Select.js +3 -3
  54. package/build/modern/components/Toggle.js +3 -3
  55. package/build/modern/config/cerbIcons.js +1 -1
  56. package/build/modern/config/defineIcons.js +2 -2
  57. package/build/modern/context/confirm-modal.js +5 -5
  58. package/build/modern/context/notification-center.js +5 -5
  59. package/build/modern/context/prompt-modal.js +6 -6
  60. package/build/modern/index.js +35 -31
  61. package/build/modern/index.js.map +1 -1
  62. package/package.json +2 -2
  63. package/src/components/Avatar.tsx +132 -0
  64. package/src/config/cerbIcons.ts +3 -0
  65. package/src/index.ts +1 -0
  66. package/build/modern/chunk-GUECLKHY.js.map +0 -1
  67. /package/build/modern/{chunk-ID3XWGLY.js.map → chunk-4YJOK7JJ.js.map} +0 -0
  68. /package/build/modern/{chunk-S6CMAXQF.js.map → chunk-CZMC77YO.js.map} +0 -0
  69. /package/build/modern/{chunk-53QBTZZF.js.map → chunk-FMFKM2AB.js.map} +0 -0
  70. /package/build/modern/{chunk-GZY6CH7D.js.map → chunk-GB3SECCO.js.map} +0 -0
  71. /package/build/modern/{chunk-VPWBSZAR.js.map → chunk-KKJKOKP7.js.map} +0 -0
  72. /package/build/modern/{chunk-7NX4RGDB.js.map → chunk-MLCVO7JP.js.map} +0 -0
  73. /package/build/modern/{chunk-5WVXIAG2.js.map → chunk-NBG2OSYI.js.map} +0 -0
  74. /package/build/modern/{chunk-EJIMJWPB.js.map → chunk-QZ6NS6VN.js.map} +0 -0
  75. /package/build/modern/{chunk-TF3HRELU.js.map → chunk-TUIVLIJI.js.map} +0 -0
  76. /package/build/modern/{chunk-RHG26FYL.js.map → chunk-VRPAW76S.js.map} +0 -0
  77. /package/build/modern/{chunk-4FD33RTW.js.map → chunk-ZCIJRM2X.js.map} +0 -0
@@ -22,6 +22,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
22
22
  var src_exports = {};
23
23
  __export(src_exports, {
24
24
  $cerberusIcons: () => $cerberusIcons,
25
+ Avatar: () => Avatar,
25
26
  Button: () => Button,
26
27
  Checkbox: () => Checkbox,
27
28
  ConfirmModal: () => ConfirmModal,
@@ -92,75 +93,18 @@ __export(src_exports, {
92
93
  });
93
94
  module.exports = __toCommonJS(src_exports);
94
95
 
95
- // src/components/Button.tsx
96
+ // src/components/Avatar.tsx
96
97
  var import_css = require("@cerberus/styled-system/css");
97
- var import_recipes = require("@cerberus/styled-system/recipes");
98
- var import_jsx_runtime = require("react/jsx-runtime");
99
- function Button(props) {
100
- const { palette, usage, shape, ...nativeProps } = props;
101
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
102
- "button",
103
- {
104
- ...nativeProps,
105
- className: (0, import_css.cx)(
106
- nativeProps.className,
107
- (0, import_recipes.button)({
108
- palette,
109
- usage,
110
- shape
111
- })
112
- )
113
- }
114
- );
115
- }
116
-
117
- // src/components/Checkbox.tsx
118
- var import_recipes2 = require("@cerberus/styled-system/recipes");
119
98
  var import_patterns = require("@cerberus/styled-system/patterns");
120
- var import_css2 = require("@cerberus/styled-system/css");
121
-
122
- // src/components/Show.tsx
123
- var import_react = require("react");
124
- function Show(props) {
125
- const { when, children, fallback } = props;
126
- const condition = (0, import_react.useMemo)(() => when ?? false, [when]);
127
- return (0, import_react.useMemo)(() => {
128
- if (condition) return children;
129
- return fallback ?? null;
130
- }, [condition, children, fallback]);
131
- }
132
-
133
- // src/context/field.tsx
134
- var import_react2 = require("react");
135
- var import_jsx_runtime2 = require("react/jsx-runtime");
136
- var FieldContext = (0, import_react2.createContext)(null);
137
- function Field(props) {
138
- const value = (0, import_react2.useMemo)(
139
- () => ({
140
- disabled: props.disabled,
141
- readOnly: props.readOnly,
142
- required: props.required,
143
- invalid: props.invalid
144
- }),
145
- [props.disabled, props.readOnly, props.required, props.invalid]
146
- );
147
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(FieldContext.Provider, { value, children: props.children });
148
- }
149
- function useFieldContext() {
150
- const context = (0, import_react2.useContext)(FieldContext);
151
- if (!context) {
152
- throw new Error("useFieldContext must be used within a Field Provider.");
153
- }
154
- return context;
155
- }
99
+ var import_recipes = require("@cerberus/styled-system/recipes");
156
100
 
157
101
  // src/config/cerbIcons.ts
158
102
  var import_icons = require("@cerberus/icons");
159
103
 
160
104
  // src/config/icons/checkbox.icons.tsx
161
- var import_jsx_runtime3 = require("react/jsx-runtime");
105
+ var import_jsx_runtime = require("react/jsx-runtime");
162
106
  function CheckmarkIcon(props) {
163
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
107
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
164
108
  "svg",
165
109
  {
166
110
  "aria-hidden": "true",
@@ -169,7 +113,7 @@ function CheckmarkIcon(props) {
169
113
  role: "img",
170
114
  viewBox: "0 0 24 24",
171
115
  ...props,
172
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
116
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
173
117
  "path",
174
118
  {
175
119
  fill: "currentColor",
@@ -180,7 +124,7 @@ function CheckmarkIcon(props) {
180
124
  );
181
125
  }
182
126
  function IndeterminateIcon(props) {
183
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
127
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
184
128
  "svg",
185
129
  {
186
130
  "aria-hidden": "true",
@@ -189,13 +133,14 @@ function IndeterminateIcon(props) {
189
133
  fill: "none",
190
134
  viewBox: "0 0 24 24",
191
135
  ...props,
192
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { fill: "currentColor", d: "M4 11h16v2.667H4z" })
136
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { fill: "currentColor", d: "M4 11h16v2.667H4z" })
193
137
  }
194
138
  );
195
139
  }
196
140
 
197
141
  // src/config/cerbIcons.ts
198
142
  var defaultIcons = {
143
+ avatar: import_icons.UserFilled,
199
144
  checkbox: CheckmarkIcon,
200
145
  close: import_icons.CloseFilled,
201
146
  confirmModal: import_icons.Information,
@@ -232,25 +177,175 @@ function defineIcons(icons) {
232
177
  }
233
178
  var $cerberusIcons = defaultIcons;
234
179
 
180
+ // src/components/Show.tsx
181
+ var import_react = require("react");
182
+ function Show(props) {
183
+ const { when, children, fallback } = props;
184
+ const condition = (0, import_react.useMemo)(() => when ?? false, [when]);
185
+ return (0, import_react.useMemo)(() => {
186
+ if (condition) return children;
187
+ return fallback ?? null;
188
+ }, [condition, children, fallback]);
189
+ }
190
+
191
+ // src/components/Avatar.tsx
192
+ var import_jsx_runtime2 = require("react/jsx-runtime");
193
+ function Avatar(props) {
194
+ const {
195
+ ariaLabel,
196
+ as,
197
+ gradient,
198
+ size,
199
+ src,
200
+ width,
201
+ height,
202
+ icon,
203
+ ...nativeProps
204
+ } = props;
205
+ const { avatar: AvatarIcon } = $cerberusIcons;
206
+ const initials = (ariaLabel || "").split(" ").map((word) => word[0]).join("").slice(0, 2);
207
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
208
+ "div",
209
+ {
210
+ ...nativeProps,
211
+ className: (0, import_css.cx)(
212
+ nativeProps.className,
213
+ (0, import_recipes.avatar)({ gradient, size }),
214
+ (0, import_patterns.circle)()
215
+ ),
216
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
217
+ Show,
218
+ {
219
+ when: Boolean(src) || Boolean(as),
220
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
221
+ Show,
222
+ {
223
+ when: Boolean(initials),
224
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
225
+ Show,
226
+ {
227
+ when: Boolean(icon),
228
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
229
+ AvatarIcon,
230
+ {
231
+ size: iconSizeMap[size]
232
+ }
233
+ ),
234
+ children: icon
235
+ }
236
+ ),
237
+ children: initials
238
+ }
239
+ ),
240
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
241
+ Show,
242
+ {
243
+ when: Boolean(as),
244
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
245
+ "img",
246
+ {
247
+ alt: props.ariaLabel,
248
+ className: (0, import_css.css)({
249
+ h: "full",
250
+ objectFit: "cover",
251
+ w: "full"
252
+ }),
253
+ decoding: "async",
254
+ loading: "lazy",
255
+ src,
256
+ height,
257
+ width
258
+ }
259
+ ),
260
+ children: as
261
+ }
262
+ )
263
+ }
264
+ )
265
+ }
266
+ );
267
+ }
268
+ var iconSizeMap = {
269
+ xs: 16,
270
+ sm: 16,
271
+ md: 20,
272
+ lg: 34,
273
+ xl: 32,
274
+ "2xl": 32,
275
+ "3xl": 32,
276
+ "4xl": 32
277
+ };
278
+
279
+ // src/components/Button.tsx
280
+ var import_css2 = require("@cerberus/styled-system/css");
281
+ var import_recipes2 = require("@cerberus/styled-system/recipes");
282
+ var import_jsx_runtime3 = require("react/jsx-runtime");
283
+ function Button(props) {
284
+ const { palette, usage, shape, ...nativeProps } = props;
285
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
286
+ "button",
287
+ {
288
+ ...nativeProps,
289
+ className: (0, import_css2.cx)(
290
+ nativeProps.className,
291
+ (0, import_recipes2.button)({
292
+ palette,
293
+ usage,
294
+ shape
295
+ })
296
+ )
297
+ }
298
+ );
299
+ }
300
+
235
301
  // src/components/Checkbox.tsx
302
+ var import_recipes3 = require("@cerberus/styled-system/recipes");
303
+ var import_patterns2 = require("@cerberus/styled-system/patterns");
304
+ var import_css3 = require("@cerberus/styled-system/css");
305
+
306
+ // src/context/field.tsx
307
+ var import_react2 = require("react");
236
308
  var import_jsx_runtime4 = require("react/jsx-runtime");
309
+ var FieldContext = (0, import_react2.createContext)(null);
310
+ function Field(props) {
311
+ const value = (0, import_react2.useMemo)(
312
+ () => ({
313
+ disabled: props.disabled,
314
+ readOnly: props.readOnly,
315
+ required: props.required,
316
+ invalid: props.invalid
317
+ }),
318
+ [props.disabled, props.readOnly, props.required, props.invalid]
319
+ );
320
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(FieldContext.Provider, { value, children: props.children });
321
+ }
322
+ function useFieldContext() {
323
+ const context = (0, import_react2.useContext)(FieldContext);
324
+ if (!context) {
325
+ throw new Error("useFieldContext must be used within a Field Provider.");
326
+ }
327
+ return context;
328
+ }
329
+
330
+ // src/components/Checkbox.tsx
331
+ var import_jsx_runtime5 = require("react/jsx-runtime");
237
332
  function Checkbox(props) {
238
333
  const { describedBy, size, checked, mixed, ...nativeProps } = props;
239
334
  const { invalid, ...fieldStates } = useFieldContext();
240
- const styles = (0, import_recipes2.checkbox)({ size });
335
+ const styles = (0, import_recipes3.checkbox)({ size });
241
336
  const { checkbox: CheckIcon, indeterminate: IndeterminateIcon2 } = $cerberusIcons;
242
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
337
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
243
338
  "div",
244
339
  {
245
- className: (0, import_css2.cx)(
340
+ className: (0, import_css3.cx)(
246
341
  styles.root,
247
- (0, import_patterns.vstack)({
342
+ (0, import_patterns2.vstack)({
248
343
  gap: "0",
249
344
  justify: "center"
250
345
  })
251
346
  ),
252
347
  children: [
253
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
348
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
254
349
  "input",
255
350
  {
256
351
  ...nativeProps,
@@ -258,12 +353,12 @@ function Checkbox(props) {
258
353
  ...describedBy && { "aria-describedby": describedBy },
259
354
  ...invalid && { "aria-invalid": true },
260
355
  ...mixed && { "aria-checked": "mixed" },
261
- className: (0, import_css2.cx)("peer", nativeProps.className, styles.input),
356
+ className: (0, import_css3.cx)("peer", nativeProps.className, styles.input),
262
357
  type: "checkbox"
263
358
  }
264
359
  ),
265
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Show, { when: checked && !mixed, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: styles.icon, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(CheckIcon, {}) }) }),
266
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Show, { when: mixed, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: styles.icon, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(IndeterminateIcon2, {}) }) })
360
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Show, { when: checked && !mixed, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: styles.icon, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(CheckIcon, {}) }) }),
361
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Show, { when: mixed, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: styles.icon, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(IndeterminateIcon2, {}) }) })
267
362
  ]
268
363
  }
269
364
  );
@@ -272,7 +367,7 @@ function Checkbox(props) {
272
367
  // src/components/Droppable.tsx
273
368
  var import_core = require("@dnd-kit/core");
274
369
  var import_react3 = require("react");
275
- var import_jsx_runtime5 = require("react/jsx-runtime");
370
+ var import_jsx_runtime6 = require("react/jsx-runtime");
276
371
  function Droppable(props) {
277
372
  const { dropped, id, disabled, data, resizeObserverConfig, ...nativeProps } = props;
278
373
  const uuid = (0, import_react3.useId)();
@@ -282,7 +377,7 @@ function Droppable(props) {
282
377
  id: id || uuid,
283
378
  resizeObserverConfig
284
379
  });
285
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
380
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
286
381
  "div",
287
382
  {
288
383
  ...nativeProps,
@@ -295,27 +390,27 @@ function Droppable(props) {
295
390
  }
296
391
 
297
392
  // src/components/FieldMessage.tsx
298
- var import_css3 = require("@cerberus/styled-system/css");
299
- var import_recipes3 = require("@cerberus/styled-system/recipes");
300
- var import_jsx_runtime6 = require("react/jsx-runtime");
393
+ var import_css4 = require("@cerberus/styled-system/css");
394
+ var import_recipes4 = require("@cerberus/styled-system/recipes");
395
+ var import_jsx_runtime7 = require("react/jsx-runtime");
301
396
  function FieldMessage(props) {
302
397
  const { invalid } = useFieldContext();
303
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
398
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
304
399
  "small",
305
400
  {
306
401
  ...props,
307
402
  ...invalid && { "aria-invalid": true },
308
- className: (0, import_css3.cx)(props.className, (0, import_recipes3.fieldMessage)())
403
+ className: (0, import_css4.cx)(props.className, (0, import_recipes4.fieldMessage)())
309
404
  }
310
405
  );
311
406
  }
312
407
 
313
408
  // src/context/feature-flags.tsx
314
409
  var import_react4 = require("react");
315
- var import_jsx_runtime7 = require("react/jsx-runtime");
410
+ var import_jsx_runtime8 = require("react/jsx-runtime");
316
411
  var FeatureFlagContext = (0, import_react4.createContext)(null);
317
412
  function FeatureFlags(props) {
318
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(FeatureFlagContext.Provider, { value: props.flags, children: props.children });
413
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(FeatureFlagContext.Provider, { value: props.flags, children: props.children });
319
414
  }
320
415
  function useFeatureFlags(key) {
321
416
  const context = (0, import_react4.useContext)(FeatureFlagContext);
@@ -328,36 +423,36 @@ function useFeatureFlags(key) {
328
423
  }
329
424
 
330
425
  // src/components/FeatureFlag.tsx
331
- var import_jsx_runtime8 = require("react/jsx-runtime");
426
+ var import_jsx_runtime9 = require("react/jsx-runtime");
332
427
  function FeatureFlag(props) {
333
428
  const showContent = useFeatureFlags(props.flag);
334
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Show, { when: showContent, children: props.children });
429
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Show, { when: showContent, children: props.children });
335
430
  }
336
431
 
337
432
  // src/components/FileStatus.tsx
338
433
  var import_react5 = require("react");
339
434
 
340
435
  // src/components/ProgressBar.tsx
341
- var import_css4 = require("@cerberus/styled-system/css");
342
- var import_recipes4 = require("@cerberus/styled-system/recipes");
343
- var import_jsx_runtime9 = require("react/jsx-runtime");
436
+ var import_css5 = require("@cerberus/styled-system/css");
437
+ var import_recipes5 = require("@cerberus/styled-system/recipes");
438
+ var import_jsx_runtime10 = require("react/jsx-runtime");
344
439
  function ProgressBar(props) {
345
440
  const { indeterminate, size, usage, now, ...nativeProps } = props;
346
- const styles = (0, import_recipes4.progressBar)({ size, usage });
441
+ const styles = (0, import_recipes5.progressBar)({ size, usage });
347
442
  const nowClamped = Math.min(100, Math.max(0, now || 0));
348
443
  const width = {
349
444
  width: indeterminate ? "50%" : `${nowClamped}%`
350
445
  };
351
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
446
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
352
447
  "div",
353
448
  {
354
449
  ...nativeProps,
355
450
  "aria-valuemin": 0,
356
451
  "aria-valuemax": 100,
357
452
  "aria-valuenow": indeterminate ? 0 : nowClamped,
358
- className: (0, import_css4.cx)(nativeProps.className, styles.root),
453
+ className: (0, import_css5.cx)(nativeProps.className, styles.root),
359
454
  role: "meter",
360
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
455
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
361
456
  "div",
362
457
  {
363
458
  ...indeterminate && { "data-indeterminate": true },
@@ -371,21 +466,21 @@ function ProgressBar(props) {
371
466
  }
372
467
 
373
468
  // src/components/IconButton.tsx
374
- var import_css5 = require("@cerberus/styled-system/css");
375
- var import_recipes5 = require("@cerberus/styled-system/recipes");
376
- var import_jsx_runtime10 = require("react/jsx-runtime");
469
+ var import_css6 = require("@cerberus/styled-system/css");
470
+ var import_recipes6 = require("@cerberus/styled-system/recipes");
471
+ var import_jsx_runtime11 = require("react/jsx-runtime");
377
472
  function IconButton(props) {
378
473
  const { ariaLabel, palette, usage, size, ...nativeProps } = props;
379
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
474
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
380
475
  "button",
381
476
  {
382
477
  ...nativeProps,
383
478
  "data-tooltip": true,
384
479
  "data-position": props.tooltipPosition ?? "top",
385
480
  "aria-label": ariaLabel ?? "Icon Button",
386
- className: (0, import_css5.cx)(
481
+ className: (0, import_css6.cx)(
387
482
  nativeProps.className,
388
- (0, import_recipes5.iconButton)({
483
+ (0, import_recipes6.iconButton)({
389
484
  palette,
390
485
  usage,
391
486
  size
@@ -396,10 +491,10 @@ function IconButton(props) {
396
491
  }
397
492
 
398
493
  // src/components/FileStatus.tsx
399
- var import_recipes6 = require("@cerberus/styled-system/recipes");
400
- var import_css6 = require("@cerberus/styled-system/css");
401
- var import_patterns2 = require("@cerberus/styled-system/patterns");
402
- var import_jsx_runtime11 = require("react/jsx-runtime");
494
+ var import_recipes7 = require("@cerberus/styled-system/recipes");
495
+ var import_css7 = require("@cerberus/styled-system/css");
496
+ var import_patterns3 = require("@cerberus/styled-system/patterns");
497
+ var import_jsx_runtime12 = require("react/jsx-runtime");
403
498
  var processStatus = /* @__PURE__ */ ((processStatus2) => {
404
499
  processStatus2["TODO"] = "todo";
405
500
  processStatus2["PROCESSING"] = "processing";
@@ -415,15 +510,15 @@ function FileStatus(props) {
415
510
  const styles = (0, import_react5.useMemo)(() => {
416
511
  switch (status) {
417
512
  case "todo" /* TODO */:
418
- return (0, import_recipes6.fileStatus)({ status: "todo" });
513
+ return (0, import_recipes7.fileStatus)({ status: "todo" });
419
514
  case "processing" /* PROCESSING */:
420
- return (0, import_recipes6.fileStatus)({ status: "processing" });
515
+ return (0, import_recipes7.fileStatus)({ status: "processing" });
421
516
  case "done" /* DONE */:
422
- return (0, import_recipes6.fileStatus)({ status: "done" });
517
+ return (0, import_recipes7.fileStatus)({ status: "done" });
423
518
  case "error" /* ERROR */:
424
- return (0, import_recipes6.fileStatus)({ status: "error" });
519
+ return (0, import_recipes7.fileStatus)({ status: "error" });
425
520
  default:
426
- return (0, import_recipes6.fileStatus)();
521
+ return (0, import_recipes7.fileStatus)();
427
522
  }
428
523
  }, [status]);
429
524
  const handleClick = (0, import_react5.useCallback)(
@@ -435,65 +530,65 @@ function FileStatus(props) {
435
530
  },
436
531
  [onClick]
437
532
  );
438
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
533
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
439
534
  "div",
440
535
  {
441
536
  ...nativeProps,
442
- className: (0, import_css6.cx)(nativeProps.className, styles.root, (0, import_patterns2.hstack)()),
537
+ className: (0, import_css7.cx)(nativeProps.className, styles.root, (0, import_patterns3.hstack)()),
443
538
  children: [
444
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
539
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
445
540
  "div",
446
541
  {
447
- className: (0, import_css6.cx)(
542
+ className: (0, import_css7.cx)(
448
543
  styles.icon,
449
- (0, import_patterns2.circle)({
544
+ (0, import_patterns3.circle)({
450
545
  size: "2rem"
451
546
  })
452
547
  ),
453
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(MatchFileStatusIcon, { status })
548
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(MatchFileStatusIcon, { status })
454
549
  }
455
550
  ),
456
- /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
551
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
457
552
  "div",
458
553
  {
459
- className: (0, import_patterns2.vstack)({
554
+ className: (0, import_patterns3.vstack)({
460
555
  alignItems: "flex-start",
461
556
  gap: "0.12rem",
462
557
  w: "full"
463
558
  }),
464
559
  children: [
465
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
560
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
466
561
  "small",
467
562
  {
468
- className: (0, import_css6.css)({
563
+ className: (0, import_css7.css)({
469
564
  color: "page.text.initial",
470
565
  textStyle: "label-sm"
471
566
  }),
472
567
  children: file
473
568
  }
474
569
  ),
475
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ProgressBar, { now, size: "sm" }),
476
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Field, { invalid: modalIconPalette === "danger", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
570
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ProgressBar, { now, size: "sm" }),
571
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Field, { invalid: modalIconPalette === "danger", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
477
572
  FieldMessage,
478
573
  {
479
- className: (0, import_css6.css)({
574
+ className: (0, import_css7.css)({
480
575
  color: "page.text.100"
481
576
  }),
482
577
  id: `help:${file}`,
483
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(MatchFileStatusText, { status, now })
578
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(MatchFileStatusText, { status, now })
484
579
  }
485
580
  ) })
486
581
  ]
487
582
  }
488
583
  ),
489
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
584
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
490
585
  IconButton,
491
586
  {
492
587
  ariaLabel: actionLabel,
493
588
  onClick: handleClick,
494
589
  palette,
495
590
  size: "sm",
496
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(MatchStatusAction, { status })
591
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(MatchStatusAction, { status })
497
592
  }
498
593
  )
499
594
  ]
@@ -509,11 +604,11 @@ function MatchFileStatusIcon(props) {
509
604
  switch (props.status) {
510
605
  case "todo" /* TODO */:
511
606
  case "processing" /* PROCESSING */:
512
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(FileUploaderIcon, {});
607
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(FileUploaderIcon, {});
513
608
  case "done" /* DONE */:
514
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DoneIcon, {});
609
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DoneIcon, {});
515
610
  case "error" /* ERROR */:
516
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(InvalidIcon, {});
611
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(InvalidIcon, {});
517
612
  default:
518
613
  throw new Error("Unknown status");
519
614
  }
@@ -537,11 +632,11 @@ function MatchStatusAction(props) {
537
632
  switch (props.status) {
538
633
  case "todo" /* TODO */:
539
634
  case "processing" /* PROCESSING */:
540
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(CloseIcon, {});
635
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(CloseIcon, {});
541
636
  case "error" /* ERROR */:
542
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(RedoIcon, {});
637
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(RedoIcon, {});
543
638
  case "done" /* DONE */:
544
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(TrashIcon, {});
639
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(TrashIcon, {});
545
640
  default:
546
641
  throw new Error("Invalid status");
547
642
  }
@@ -587,46 +682,46 @@ function getModalIconPalette(status) {
587
682
  }
588
683
 
589
684
  // src/components/FileUploader.tsx
590
- var import_css7 = require("@cerberus/styled-system/css");
591
- var import_patterns3 = require("@cerberus/styled-system/patterns");
592
- var import_recipes7 = require("@cerberus/styled-system/recipes");
593
- var import_jsx_runtime12 = require("react/jsx-runtime");
685
+ var import_css8 = require("@cerberus/styled-system/css");
686
+ var import_patterns4 = require("@cerberus/styled-system/patterns");
687
+ var import_recipes8 = require("@cerberus/styled-system/recipes");
688
+ var import_jsx_runtime13 = require("react/jsx-runtime");
594
689
  function FileUploader(props) {
595
690
  var _a;
596
- const styles = (0, import_recipes7.fileUploader)();
691
+ const styles = (0, import_recipes8.fileUploader)();
597
692
  const Icon = $cerberusIcons.fileUploader;
598
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
693
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
599
694
  "div",
600
695
  {
601
- className: (0, import_css7.cx)(
602
- (0, import_patterns3.vstack)({
696
+ className: (0, import_css8.cx)(
697
+ (0, import_patterns4.vstack)({
603
698
  justify: "center"
604
699
  }),
605
700
  styles.container
606
701
  ),
607
702
  children: [
608
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: (0, import_css7.cx)(styles.icon, (0, import_recipes7.modalIcon)(), (0, import_patterns3.circle)()), children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Icon, {}) }),
609
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
703
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: (0, import_css8.cx)(styles.icon, (0, import_recipes8.modalIcon)(), (0, import_patterns4.circle)()), children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Icon, {}) }),
704
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
610
705
  "label",
611
706
  {
612
- className: (0, import_css7.cx)(
613
- (0, import_patterns3.vstack)({
707
+ className: (0, import_css8.cx)(
708
+ (0, import_patterns4.vstack)({
614
709
  justify: "center"
615
710
  }),
616
711
  styles.label
617
712
  ),
618
713
  htmlFor: props.name,
619
714
  children: [
620
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Show, { when: Boolean(props.heading), children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: styles.heading, children: props.heading }) }),
715
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Show, { when: Boolean(props.heading), children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: styles.heading, children: props.heading }) }),
621
716
  "Import ",
622
717
  (_a = props.accept) == null ? void 0 : _a.replace(",", ", "),
623
718
  " files",
624
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: styles.description, children: "Click to select files" }),
625
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
719
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: styles.description, children: "Click to select files" }),
720
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
626
721
  "input",
627
722
  {
628
723
  ...props,
629
- className: (0, import_css7.cx)(props.className, styles.input),
724
+ className: (0, import_css8.cx)(props.className, styles.input),
630
725
  type: "file"
631
726
  }
632
727
  )
@@ -639,18 +734,18 @@ function FileUploader(props) {
639
734
  }
640
735
 
641
736
  // src/components/Input.tsx
642
- var import_recipes8 = require("@cerberus/styled-system/recipes");
643
- var import_css8 = require("@cerberus/styled-system/css");
644
- var import_jsx_runtime13 = require("react/jsx-runtime");
737
+ var import_recipes9 = require("@cerberus/styled-system/recipes");
738
+ var import_css9 = require("@cerberus/styled-system/css");
739
+ var import_jsx_runtime14 = require("react/jsx-runtime");
645
740
  function Input(props) {
646
741
  const { describedBy, size, startIcon, endIcon, ...nativeProps } = props;
647
- const inputStyles = (0, import_recipes8.input)({ size });
742
+ const inputStyles = (0, import_recipes9.input)({ size });
648
743
  const { invalid, ...fieldStates } = useFieldContext();
649
744
  const hasEndIcon = Boolean(endIcon);
650
745
  const { invalid: InvalidIcon } = $cerberusIcons;
651
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: inputStyles.root, children: [
652
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Show, { when: Boolean(startIcon), children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: inputStyles.startIcon, children: startIcon }) }),
653
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
746
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: inputStyles.root, children: [
747
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Show, { when: Boolean(startIcon), children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: inputStyles.startIcon, children: startIcon }) }),
748
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
654
749
  "input",
655
750
  {
656
751
  ...nativeProps,
@@ -658,42 +753,42 @@ function Input(props) {
658
753
  ...describedBy && { "aria-describedby": describedBy },
659
754
  ...invalid && { "aria-invalid": true },
660
755
  "data-start-icon": Boolean(startIcon),
661
- className: (0, import_css8.cx)("peer", nativeProps.className, inputStyles.input)
756
+ className: (0, import_css9.cx)("peer", nativeProps.className, inputStyles.input)
662
757
  }
663
758
  ),
664
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Show, { when: invalid, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(InvalidIcon, { className: inputStyles.icon }) }),
665
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Show, { when: hasEndIcon && !invalid, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: inputStyles.icon, children: endIcon }) })
759
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Show, { when: invalid, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(InvalidIcon, { className: inputStyles.icon }) }),
760
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Show, { when: hasEndIcon && !invalid, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: inputStyles.icon, children: endIcon }) })
666
761
  ] });
667
762
  }
668
763
 
669
764
  // src/components/Label.tsx
670
- var import_recipes9 = require("@cerberus/styled-system/recipes");
671
- var import_css9 = require("@cerberus/styled-system/css");
672
- var import_patterns4 = require("@cerberus/styled-system/patterns");
673
- var import_jsx_runtime14 = require("react/jsx-runtime");
765
+ var import_recipes10 = require("@cerberus/styled-system/recipes");
766
+ var import_css10 = require("@cerberus/styled-system/css");
767
+ var import_patterns5 = require("@cerberus/styled-system/patterns");
768
+ var import_jsx_runtime15 = require("react/jsx-runtime");
674
769
  function Label(props) {
675
770
  const { hidden, size, ...nativeProps } = props;
676
771
  const { required, disabled } = useFieldContext();
677
772
  const usage = hidden ? "hidden" : "visible";
678
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
773
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
679
774
  "label",
680
775
  {
681
776
  ...nativeProps,
682
777
  ...disabled && { "data-disabled": true },
683
- className: (0, import_css9.cx)(
778
+ className: (0, import_css10.cx)(
684
779
  nativeProps.className,
685
- (0, import_recipes9.label)({ size, usage }),
686
- (0, import_patterns4.hstack)({
780
+ (0, import_recipes10.label)({ size, usage }),
781
+ (0, import_patterns5.hstack)({
687
782
  justify: "space-between",
688
783
  w: "full"
689
784
  })
690
785
  ),
691
786
  children: [
692
787
  props.children,
693
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Show, { when: required, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
788
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Show, { when: required, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
694
789
  "span",
695
790
  {
696
- className: (0, import_css9.css)({
791
+ className: (0, import_css10.css)({
697
792
  color: "inherit",
698
793
  fontSize: "inherit"
699
794
  }),
@@ -706,16 +801,16 @@ function Label(props) {
706
801
  }
707
802
 
708
803
  // src/components/Modal.tsx
709
- var import_css10 = require("@cerberus/styled-system/css");
710
- var import_recipes10 = require("@cerberus/styled-system/recipes");
804
+ var import_css11 = require("@cerberus/styled-system/css");
805
+ var import_recipes11 = require("@cerberus/styled-system/recipes");
711
806
  var import_react6 = require("react");
712
- var import_jsx_runtime15 = require("react/jsx-runtime");
807
+ var import_jsx_runtime16 = require("react/jsx-runtime");
713
808
  function ModalEl(props, ref) {
714
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
809
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
715
810
  "dialog",
716
811
  {
717
812
  ...props,
718
- className: (0, import_css10.cx)(props.className, (0, import_recipes10.modal)().dialog),
813
+ className: (0, import_css11.cx)(props.className, (0, import_recipes11.modal)().dialog),
719
814
  ref
720
815
  }
721
816
  );
@@ -723,17 +818,17 @@ function ModalEl(props, ref) {
723
818
  var Modal = (0, import_react6.forwardRef)(ModalEl);
724
819
 
725
820
  // src/components/ModalHeader.tsx
726
- var import_css11 = require("@cerberus/styled-system/css");
727
- var import_patterns5 = require("@cerberus/styled-system/patterns");
728
- var import_jsx_runtime16 = require("react/jsx-runtime");
821
+ var import_css12 = require("@cerberus/styled-system/css");
822
+ var import_patterns6 = require("@cerberus/styled-system/patterns");
823
+ var import_jsx_runtime17 = require("react/jsx-runtime");
729
824
  function ModalHeader(props) {
730
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
825
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
731
826
  "div",
732
827
  {
733
828
  ...props,
734
- className: (0, import_css11.cx)(
829
+ className: (0, import_css12.cx)(
735
830
  props.className,
736
- (0, import_patterns5.vstack)({
831
+ (0, import_patterns6.vstack)({
737
832
  alignItems: "flex-start",
738
833
  gap: "4",
739
834
  mb: "8"
@@ -744,38 +839,38 @@ function ModalHeader(props) {
744
839
  }
745
840
 
746
841
  // src/components/ModalHeading.tsx
747
- var import_css12 = require("@cerberus/styled-system/css");
748
- var import_recipes11 = require("@cerberus/styled-system/recipes");
749
- var import_jsx_runtime17 = require("react/jsx-runtime");
750
- function ModalHeading(props) {
751
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { ...props, className: (0, import_css12.cx)(props.className, (0, import_recipes11.modal)().heading) });
752
- }
753
-
754
- // src/components/ModalDescription.tsx
755
842
  var import_css13 = require("@cerberus/styled-system/css");
756
843
  var import_recipes12 = require("@cerberus/styled-system/recipes");
757
844
  var import_jsx_runtime18 = require("react/jsx-runtime");
758
- function ModalDescription(props) {
759
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { ...props, className: (0, import_css13.cx)(props.className, (0, import_recipes12.modal)().description) });
845
+ function ModalHeading(props) {
846
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { ...props, className: (0, import_css13.cx)(props.className, (0, import_recipes12.modal)().heading) });
760
847
  }
761
848
 
762
- // src/components/ModalIcon.tsx
849
+ // src/components/ModalDescription.tsx
763
850
  var import_css14 = require("@cerberus/styled-system/css");
764
- var import_patterns6 = require("@cerberus/styled-system/patterns");
765
851
  var import_recipes13 = require("@cerberus/styled-system/recipes");
766
852
  var import_jsx_runtime19 = require("react/jsx-runtime");
853
+ function ModalDescription(props) {
854
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { ...props, className: (0, import_css14.cx)(props.className, (0, import_recipes13.modal)().description) });
855
+ }
856
+
857
+ // src/components/ModalIcon.tsx
858
+ var import_css15 = require("@cerberus/styled-system/css");
859
+ var import_patterns7 = require("@cerberus/styled-system/patterns");
860
+ var import_recipes14 = require("@cerberus/styled-system/recipes");
861
+ var import_jsx_runtime20 = require("react/jsx-runtime");
767
862
  function ModalIcon(props) {
768
863
  const { palette, ...nativeProps } = props;
769
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
864
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
770
865
  "div",
771
866
  {
772
867
  ...nativeProps,
773
- className: (0, import_css14.cx)(
868
+ className: (0, import_css15.cx)(
774
869
  nativeProps.className,
775
- (0, import_recipes13.modalIcon)({
870
+ (0, import_recipes14.modalIcon)({
776
871
  palette
777
872
  }),
778
- (0, import_patterns6.circle)()
873
+ (0, import_patterns7.circle)()
779
874
  ),
780
875
  children: props.children
781
876
  }
@@ -784,8 +879,8 @@ function ModalIcon(props) {
784
879
 
785
880
  // src/components/NavMenuTrigger.tsx
786
881
  var import_react8 = require("react");
787
- var import_css16 = require("@cerberus/styled-system/css");
788
- var import_recipes14 = require("@cerberus/styled-system/recipes");
882
+ var import_css17 = require("@cerberus/styled-system/css");
883
+ var import_recipes15 = require("@cerberus/styled-system/recipes");
789
884
 
790
885
  // src/aria-helpers/nav-menu.aria.ts
791
886
  function createNavTriggerProps(values) {
@@ -796,9 +891,9 @@ function createNavTriggerProps(values) {
796
891
  }
797
892
 
798
893
  // src/context/navMenu.tsx
799
- var import_css15 = require("@cerberus/styled-system/css");
894
+ var import_css16 = require("@cerberus/styled-system/css");
800
895
  var import_react7 = require("react");
801
- var import_jsx_runtime20 = require("react/jsx-runtime");
896
+ var import_jsx_runtime21 = require("react/jsx-runtime");
802
897
  var NavMenuContext = (0, import_react7.createContext)(null);
803
898
  function NavMenu(props) {
804
899
  const triggerRef = (0, import_react7.useRef)(null);
@@ -816,10 +911,10 @@ function NavMenu(props) {
816
911
  }),
817
912
  [expanded, handleToggle]
818
913
  );
819
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(NavMenuContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
914
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(NavMenuContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
820
915
  "nav",
821
916
  {
822
- className: (0, import_css15.css)({
917
+ className: (0, import_css16.css)({
823
918
  position: "relative"
824
919
  }),
825
920
  children: props.children
@@ -835,7 +930,7 @@ function useNavMenuContext() {
835
930
  }
836
931
 
837
932
  // src/components/NavMenuTrigger.tsx
838
- var import_jsx_runtime21 = require("react/jsx-runtime");
933
+ var import_jsx_runtime22 = require("react/jsx-runtime");
839
934
  function NavMenuTrigger(props) {
840
935
  const {
841
936
  as,
@@ -861,18 +956,18 @@ function NavMenuTrigger(props) {
861
956
  },
862
957
  [onClick, onToggle]
863
958
  );
864
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
959
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
865
960
  Show,
866
961
  {
867
962
  when: hasAs,
868
- fallback: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
963
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
869
964
  "button",
870
965
  {
871
966
  ...nativeProps,
872
967
  ...ariaProps,
873
- className: (0, import_css16.cx)(
968
+ className: (0, import_css17.cx)(
874
969
  nativeProps.className,
875
- (0, import_recipes14.button)({
970
+ (0, import_recipes15.button)({
876
971
  palette,
877
972
  usage,
878
973
  shape
@@ -883,7 +978,7 @@ function NavMenuTrigger(props) {
883
978
  children: props.children
884
979
  }
885
980
  ),
886
- children: hasAs && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
981
+ children: hasAs && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
887
982
  AsSub,
888
983
  {
889
984
  ...nativeProps,
@@ -898,9 +993,9 @@ function NavMenuTrigger(props) {
898
993
 
899
994
  // src/components/NavMenuList.tsx
900
995
  var import_react9 = require("react");
901
- var import_css17 = require("@cerberus/styled-system/css");
902
- var import_patterns7 = require("@cerberus/styled-system/patterns");
903
- var import_jsx_runtime22 = require("react/jsx-runtime");
996
+ var import_css18 = require("@cerberus/styled-system/css");
997
+ var import_patterns8 = require("@cerberus/styled-system/patterns");
998
+ var import_jsx_runtime23 = require("react/jsx-runtime");
904
999
  function getPosition(position) {
905
1000
  const defaultPositions = {
906
1001
  left: "auto",
@@ -921,7 +1016,7 @@ function getPosition(position) {
921
1016
  return defaultPositions;
922
1017
  }
923
1018
  }
924
- var navListStyles = (0, import_patterns7.vstack)({
1019
+ var navListStyles = (0, import_patterns8.vstack)({
925
1020
  alignItems: "flex-start",
926
1021
  bgColor: "page.surface.100",
927
1022
  boxShadow: "lg",
@@ -958,12 +1053,12 @@ function NavMenuList(props) {
958
1053
  () => getPosition(position ?? "bottom"),
959
1054
  [position]
960
1055
  );
961
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Show, { when: expanded, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1056
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Show, { when: expanded, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
962
1057
  "ul",
963
1058
  {
964
1059
  ...nativeProps,
965
1060
  "data-position": position ?? "bottom",
966
- className: (0, import_css17.cx)(nativeProps.className, navListStyles),
1061
+ className: (0, import_css18.cx)(nativeProps.className, navListStyles),
967
1062
  ref: menuRef,
968
1063
  style: locationStyles
969
1064
  }
@@ -971,29 +1066,29 @@ function NavMenuList(props) {
971
1066
  }
972
1067
 
973
1068
  // src/components/NavMenuLink.tsx
974
- var import_css18 = require("@cerberus/styled-system/css");
975
- var import_jsx_runtime23 = require("react/jsx-runtime");
1069
+ var import_css19 = require("@cerberus/styled-system/css");
1070
+ var import_jsx_runtime24 = require("react/jsx-runtime");
976
1071
  function NavMenuLink(props) {
977
1072
  const { as, ...nativeProps } = props;
978
1073
  const hasAs = Boolean(as);
979
1074
  const AsSub = as;
980
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1075
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
981
1076
  "li",
982
1077
  {
983
- className: (0, import_css18.css)({
1078
+ className: (0, import_css19.css)({
984
1079
  w: "full"
985
1080
  }),
986
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1081
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
987
1082
  Show,
988
1083
  {
989
1084
  when: hasAs,
990
- fallback: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1085
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
991
1086
  "a",
992
1087
  {
993
1088
  ...nativeProps,
994
- className: (0, import_css18.cx)(
1089
+ className: (0, import_css19.cx)(
995
1090
  nativeProps.className,
996
- (0, import_css18.css)({
1091
+ (0, import_css19.css)({
997
1092
  color: "action.navigation.initial",
998
1093
  textStyle: "link",
999
1094
  _hover: {
@@ -1003,7 +1098,7 @@ function NavMenuLink(props) {
1003
1098
  )
1004
1099
  }
1005
1100
  ),
1006
- children: hasAs && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(AsSub, { ...nativeProps })
1101
+ children: hasAs && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(AsSub, { ...nativeProps })
1007
1102
  }
1008
1103
  )
1009
1104
  }
@@ -1011,9 +1106,9 @@ function NavMenuLink(props) {
1011
1106
  }
1012
1107
 
1013
1108
  // src/components/Notification.tsx
1014
- var import_css19 = require("@cerberus/styled-system/css");
1015
- var import_patterns8 = require("@cerberus/styled-system/patterns");
1016
- var import_recipes15 = require("@cerberus/styled-system/recipes");
1109
+ var import_css20 = require("@cerberus/styled-system/css");
1110
+ var import_patterns9 = require("@cerberus/styled-system/patterns");
1111
+ var import_recipes16 = require("@cerberus/styled-system/recipes");
1017
1112
  var import_react10 = require("react");
1018
1113
  var import_icons2 = require("@cerberus/icons");
1019
1114
 
@@ -1044,25 +1139,25 @@ function trapFocus(modalRef) {
1044
1139
  }
1045
1140
 
1046
1141
  // src/components/Notification.tsx
1047
- var import_jsx_runtime24 = require("react/jsx-runtime");
1142
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1048
1143
  function MatchNotificationIcon(props) {
1049
1144
  const palette = props.palette || "info";
1050
1145
  const key = `${palette}Notification`;
1051
1146
  const Icon = $cerberusIcons[key];
1052
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Icon, {});
1147
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icon, {});
1053
1148
  }
1054
1149
  function Notification(props) {
1055
1150
  const { children, palette, onClose, ...nativeProps } = props;
1056
1151
  const ref = (0, import_react10.useRef)(null);
1057
1152
  const onKeyDown = trapFocus(ref);
1058
- const styles = (0, import_recipes15.notification)({ palette });
1059
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1153
+ const styles = (0, import_recipes16.notification)({ palette });
1154
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
1060
1155
  "dialog",
1061
1156
  {
1062
1157
  ...nativeProps,
1063
- className: (0, import_css19.cx)(
1158
+ className: (0, import_css20.cx)(
1064
1159
  nativeProps.className,
1065
- (0, import_patterns8.hstack)({
1160
+ (0, import_patterns9.hstack)({
1066
1161
  position: "relative",
1067
1162
  gap: "4"
1068
1163
  }),
@@ -1072,11 +1167,11 @@ function Notification(props) {
1072
1167
  ref,
1073
1168
  role: "alert",
1074
1169
  children: [
1075
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: styles.icon, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(MatchNotificationIcon, { palette }) }),
1076
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1170
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: styles.icon, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(MatchNotificationIcon, { palette }) }),
1171
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1077
1172
  "div",
1078
1173
  {
1079
- className: (0, import_patterns8.vstack)({
1174
+ className: (0, import_patterns9.vstack)({
1080
1175
  alignItems: "flex-start",
1081
1176
  gap: "0",
1082
1177
  py: "2"
@@ -1084,14 +1179,14 @@ function Notification(props) {
1084
1179
  children
1085
1180
  }
1086
1181
  ),
1087
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1182
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1088
1183
  "button",
1089
1184
  {
1090
1185
  "aria-label": "Close",
1091
1186
  className: styles.close,
1092
1187
  onClick: onClose,
1093
1188
  value: props.id,
1094
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_icons2.Close, {})
1189
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_icons2.Close, {})
1095
1190
  }
1096
1191
  )
1097
1192
  ]
@@ -1100,26 +1195,26 @@ function Notification(props) {
1100
1195
  }
1101
1196
 
1102
1197
  // src/components/NotificationHeading.tsx
1103
- var import_css20 = require("@cerberus/styled-system/css");
1104
- var import_recipes16 = require("@cerberus/styled-system/recipes");
1105
- var import_jsx_runtime25 = require("react/jsx-runtime");
1198
+ var import_css21 = require("@cerberus/styled-system/css");
1199
+ var import_recipes17 = require("@cerberus/styled-system/recipes");
1200
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1106
1201
  function NotificationHeading(props) {
1107
1202
  const { palette, ...nativeProps } = props;
1108
- const styles = (0, import_recipes16.notification)({ palette });
1109
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { className: (0, import_css20.cx)(nativeProps.className, styles.heading), ...nativeProps });
1203
+ const styles = (0, import_recipes17.notification)({ palette });
1204
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: (0, import_css21.cx)(nativeProps.className, styles.heading), ...nativeProps });
1110
1205
  }
1111
1206
 
1112
1207
  // src/components/NotificationDescription.tsx
1113
- var import_css21 = require("@cerberus/styled-system/css");
1114
- var import_recipes17 = require("@cerberus/styled-system/recipes");
1115
- var import_jsx_runtime26 = require("react/jsx-runtime");
1208
+ var import_css22 = require("@cerberus/styled-system/css");
1209
+ var import_recipes18 = require("@cerberus/styled-system/recipes");
1210
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1116
1211
  function NotificationDescription(props) {
1117
1212
  const { palette, ...nativeProps } = props;
1118
- const styles = (0, import_recipes17.notification)({ palette });
1119
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1213
+ const styles = (0, import_recipes18.notification)({ palette });
1214
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1120
1215
  "p",
1121
1216
  {
1122
- className: (0, import_css21.cx)(nativeProps.className, styles.description),
1217
+ className: (0, import_css22.cx)(nativeProps.className, styles.description),
1123
1218
  ...nativeProps
1124
1219
  }
1125
1220
  );
@@ -1133,22 +1228,22 @@ function Portal(props) {
1133
1228
  }
1134
1229
 
1135
1230
  // src/components/Radio.tsx
1136
- var import_css22 = require("@cerberus/styled-system/css");
1137
- var import_patterns9 = require("@cerberus/styled-system/patterns");
1138
- var import_recipes18 = require("@cerberus/styled-system/recipes");
1139
- var import_jsx_runtime27 = require("react/jsx-runtime");
1231
+ var import_css23 = require("@cerberus/styled-system/css");
1232
+ var import_patterns10 = require("@cerberus/styled-system/patterns");
1233
+ var import_recipes19 = require("@cerberus/styled-system/recipes");
1234
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1140
1235
  function Radio(props) {
1141
1236
  const { children, size, ...nativeProps } = props;
1142
1237
  const { invalid, ...state } = useFieldContext();
1143
- const styles = (0, import_recipes18.radio)({ size });
1144
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: (0, import_css22.cx)("group", (0, import_patterns9.hstack)(), styles.root), tabIndex: 0, children: [
1145
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1238
+ const styles = (0, import_recipes19.radio)({ size });
1239
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: (0, import_css23.cx)("group", (0, import_patterns10.hstack)(), styles.root), tabIndex: 0, children: [
1240
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1146
1241
  "input",
1147
1242
  {
1148
1243
  ...nativeProps,
1149
1244
  ...state,
1150
1245
  ...invalid && { "aria-invalid": true },
1151
- className: (0, import_css22.cx)(nativeProps.className, styles.input),
1246
+ className: (0, import_css23.cx)(nativeProps.className, styles.input),
1152
1247
  tabIndex: -1,
1153
1248
  type: "radio"
1154
1249
  }
@@ -1158,19 +1253,19 @@ function Radio(props) {
1158
1253
  }
1159
1254
 
1160
1255
  // src/components/Select.tsx
1161
- var import_css23 = require("@cerberus/styled-system/css");
1162
- var import_patterns10 = require("@cerberus/styled-system/patterns");
1163
- var import_recipes19 = require("@cerberus/styled-system/recipes");
1164
- var import_jsx_runtime28 = require("react/jsx-runtime");
1256
+ var import_css24 = require("@cerberus/styled-system/css");
1257
+ var import_patterns11 = require("@cerberus/styled-system/patterns");
1258
+ var import_recipes20 = require("@cerberus/styled-system/recipes");
1259
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1165
1260
  function Select(props) {
1166
1261
  const { describedBy, size, ...nativeProps } = props;
1167
1262
  const { invalid, ...fieldStates } = useFieldContext();
1168
1263
  const { invalid: InvalidIcon, selectArrow: SelectArrow } = $cerberusIcons;
1169
- const styles = (0, import_recipes19.select)({
1264
+ const styles = (0, import_recipes20.select)({
1170
1265
  size
1171
1266
  });
1172
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: styles.root, children: [
1173
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1267
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: styles.root, children: [
1268
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1174
1269
  "select",
1175
1270
  {
1176
1271
  ...nativeProps,
@@ -1180,41 +1275,41 @@ function Select(props) {
1180
1275
  className: styles.input
1181
1276
  }
1182
1277
  ),
1183
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
1278
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
1184
1279
  "span",
1185
1280
  {
1186
- className: (0, import_css23.cx)(
1281
+ className: (0, import_css24.cx)(
1187
1282
  styles.iconStack,
1188
- (0, import_patterns10.hstack)({
1283
+ (0, import_patterns11.hstack)({
1189
1284
  gap: "2"
1190
1285
  })
1191
1286
  ),
1192
1287
  children: [
1193
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Show, { when: invalid, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1288
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Show, { when: invalid, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1194
1289
  "span",
1195
1290
  {
1196
1291
  ...invalid && { "data-invalid": true },
1197
1292
  className: styles.stateIcon,
1198
- children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(InvalidIcon, {})
1293
+ children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(InvalidIcon, {})
1199
1294
  }
1200
1295
  ) }),
1201
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: styles.arrowIcon, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(SelectArrow, {}) })
1296
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: styles.arrowIcon, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SelectArrow, {}) })
1202
1297
  ]
1203
1298
  }
1204
1299
  )
1205
1300
  ] });
1206
1301
  }
1207
1302
  function Option(props) {
1208
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("option", { ...props });
1303
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("option", { ...props });
1209
1304
  }
1210
1305
 
1211
1306
  // src/components/Tab.tsx
1212
1307
  var import_react13 = require("react");
1213
1308
 
1214
1309
  // src/context/tabs.tsx
1215
- var import_recipes20 = require("@cerberus/styled-system/recipes");
1310
+ var import_recipes21 = require("@cerberus/styled-system/recipes");
1216
1311
  var import_react11 = require("react");
1217
- var import_jsx_runtime29 = require("react/jsx-runtime");
1312
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1218
1313
  var TabsContext = (0, import_react11.createContext)(null);
1219
1314
  function Tabs(props) {
1220
1315
  const { cache, active, id, palette } = props;
@@ -1228,7 +1323,7 @@ function Tabs(props) {
1228
1323
  tabs: tabsList,
1229
1324
  id: uuid,
1230
1325
  active: activeTab,
1231
- styles: (0, import_recipes20.tabs)({ palette }),
1326
+ styles: (0, import_recipes21.tabs)({ palette }),
1232
1327
  onTabUpdate: setActiveTab
1233
1328
  }),
1234
1329
  [activeTab, setActiveTab, palette, uuid, tabsList]
@@ -1246,7 +1341,7 @@ function Tabs(props) {
1246
1341
  window.localStorage.setItem(uuid, activeTab);
1247
1342
  }
1248
1343
  }, [activeTab, cache]);
1249
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(TabsContext.Provider, { value, children: props.children });
1344
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(TabsContext.Provider, { value, children: props.children });
1250
1345
  }
1251
1346
  function useTabsContext() {
1252
1347
  const context = (0, import_react11.useContext)(TabsContext);
@@ -1257,7 +1352,7 @@ function useTabsContext() {
1257
1352
  }
1258
1353
 
1259
1354
  // src/components/Tab.tsx
1260
- var import_css24 = require("@cerberus/styled-system/css");
1355
+ var import_css25 = require("@cerberus/styled-system/css");
1261
1356
 
1262
1357
  // src/aria-helpers/tabs.aria.ts
1263
1358
  var import_react12 = require("react");
@@ -1316,7 +1411,7 @@ function useTabsKeyboardNavigation() {
1316
1411
  }
1317
1412
 
1318
1413
  // src/components/Tab.tsx
1319
- var import_jsx_runtime30 = require("react/jsx-runtime");
1414
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1320
1415
  function Tab(props) {
1321
1416
  const { value, ...nativeProps } = props;
1322
1417
  const { active, onTabUpdate, styles } = useTabsContext();
@@ -1328,7 +1423,7 @@ function Tab(props) {
1328
1423
  (_a = props.onClick) == null ? void 0 : _a.call(props, e);
1329
1424
  startTransition(() => onTabUpdate(e.currentTarget.value));
1330
1425
  }
1331
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1426
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1332
1427
  "button",
1333
1428
  {
1334
1429
  ...nativeProps,
@@ -1337,7 +1432,7 @@ function Tab(props) {
1337
1432
  "aria-busy": isPending,
1338
1433
  "aria-selected": isActive,
1339
1434
  id: value,
1340
- className: (0, import_css24.cx)(nativeProps.className, styles.tab),
1435
+ className: (0, import_css25.cx)(nativeProps.className, styles.tab),
1341
1436
  onClick: handleClick,
1342
1437
  role: "tab",
1343
1438
  ref,
@@ -1347,20 +1442,20 @@ function Tab(props) {
1347
1442
  }
1348
1443
 
1349
1444
  // src/components/TabList.tsx
1350
- var import_css25 = require("@cerberus/styled-system/css");
1351
- var import_patterns11 = require("@cerberus/styled-system/patterns");
1352
- var import_jsx_runtime31 = require("react/jsx-runtime");
1445
+ var import_css26 = require("@cerberus/styled-system/css");
1446
+ var import_patterns12 = require("@cerberus/styled-system/patterns");
1447
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1353
1448
  function TabList(props) {
1354
1449
  const { description, ...nativeProps } = props;
1355
1450
  const { id, styles } = useTabsContext();
1356
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1451
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1357
1452
  "div",
1358
1453
  {
1359
1454
  ...nativeProps,
1360
1455
  "aria-describedby": description,
1361
- className: (0, import_css25.cx)(
1456
+ className: (0, import_css26.cx)(
1362
1457
  nativeProps.className,
1363
- (0, import_patterns11.hstack)({
1458
+ (0, import_patterns12.hstack)({
1364
1459
  gap: "0"
1365
1460
  }),
1366
1461
  styles.tabList
@@ -1371,20 +1466,20 @@ function TabList(props) {
1371
1466
  }
1372
1467
 
1373
1468
  // src/components/TabPanel.tsx
1374
- var import_css26 = require("@cerberus/styled-system/css");
1469
+ var import_css27 = require("@cerberus/styled-system/css");
1375
1470
  var import_react14 = require("react");
1376
- var import_jsx_runtime32 = require("react/jsx-runtime");
1471
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1377
1472
  function TabPanel(props) {
1378
1473
  const { tab, ...nativeProps } = props;
1379
1474
  const { active, styles } = useTabsContext();
1380
1475
  const isActive = (0, import_react14.useMemo)(() => active === tab, [active, tab]);
1381
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Show, { when: isActive, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1476
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Show, { when: isActive, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1382
1477
  "div",
1383
1478
  {
1384
1479
  ...nativeProps,
1385
1480
  ...isActive && { tabIndex: 0 },
1386
1481
  "aria-labelledby": tab,
1387
- className: (0, import_css26.cx)(nativeProps.className, styles.tabPanel),
1482
+ className: (0, import_css27.cx)(nativeProps.className, styles.tabPanel),
1388
1483
  id: `panel:${tab}`,
1389
1484
  role: "tabpanel"
1390
1485
  }
@@ -1392,60 +1487,60 @@ function TabPanel(props) {
1392
1487
  }
1393
1488
 
1394
1489
  // src/components/Table.tsx
1395
- var import_css27 = require("@cerberus/styled-system/css");
1396
- var import_recipes21 = require("@cerberus/styled-system/recipes");
1397
- var import_jsx_runtime33 = require("react/jsx-runtime");
1490
+ var import_css28 = require("@cerberus/styled-system/css");
1491
+ var import_recipes22 = require("@cerberus/styled-system/recipes");
1492
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1398
1493
  function Table(props) {
1399
1494
  const { caption, children, ...nativeProps } = props;
1400
- const styles = (0, import_recipes21.table)();
1401
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: styles.container, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
1495
+ const styles = (0, import_recipes22.table)();
1496
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: styles.container, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
1402
1497
  "table",
1403
1498
  {
1404
1499
  ...nativeProps,
1405
- className: (0, import_css27.cx)(nativeProps.className, styles.table),
1500
+ className: (0, import_css28.cx)(nativeProps.className, styles.table),
1406
1501
  children: [
1407
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("caption", { className: styles.caption, children: caption }),
1502
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("caption", { className: styles.caption, children: caption }),
1408
1503
  children
1409
1504
  ]
1410
1505
  }
1411
1506
  ) });
1412
1507
  }
1413
1508
  function Tr(props) {
1414
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("tr", { ...props });
1509
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("tr", { ...props });
1415
1510
  }
1416
1511
 
1417
1512
  // src/components/Thead.tsx
1418
- var import_css28 = require("@cerberus/styled-system/css");
1419
- var import_recipes22 = require("@cerberus/styled-system/recipes");
1420
- var import_jsx_runtime34 = require("react/jsx-runtime");
1513
+ var import_css29 = require("@cerberus/styled-system/css");
1514
+ var import_recipes23 = require("@cerberus/styled-system/recipes");
1515
+ var import_jsx_runtime35 = require("react/jsx-runtime");
1421
1516
  function Thead(props) {
1422
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("thead", { ...props, className: (0, import_css28.cx)(props.className, (0, import_recipes22.thead)()) });
1517
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("thead", { ...props, className: (0, import_css29.cx)(props.className, (0, import_recipes23.thead)()) });
1423
1518
  }
1424
1519
 
1425
1520
  // src/components/Th.tsx
1426
- var import_css29 = require("@cerberus/styled-system/css");
1427
- var import_recipes23 = require("@cerberus/styled-system/recipes");
1428
- var import_jsx_runtime35 = require("react/jsx-runtime");
1521
+ var import_css30 = require("@cerberus/styled-system/css");
1522
+ var import_recipes24 = require("@cerberus/styled-system/recipes");
1523
+ var import_jsx_runtime36 = require("react/jsx-runtime");
1429
1524
  function Th(props) {
1430
1525
  const { size, onClick, ...nativeProps } = props;
1431
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1526
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1432
1527
  Show,
1433
1528
  {
1434
1529
  when: Boolean(onClick),
1435
- fallback: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1530
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1436
1531
  "th",
1437
1532
  {
1438
1533
  ...nativeProps,
1439
- className: (0, import_css29.cx)(nativeProps.className, (0, import_recipes23.th)({ size }))
1534
+ className: (0, import_css30.cx)(nativeProps.className, (0, import_recipes24.th)({ size }))
1440
1535
  }
1441
1536
  ),
1442
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("th", { ...nativeProps, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1537
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("th", { ...nativeProps, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1443
1538
  "button",
1444
1539
  {
1445
- className: (0, import_css29.cx)(
1540
+ className: (0, import_css30.cx)(
1446
1541
  nativeProps.className,
1447
- (0, import_recipes23.th)({ size }),
1448
- (0, import_css29.css)({
1542
+ (0, import_recipes24.th)({ size }),
1543
+ (0, import_css30.css)({
1449
1544
  alignItems: "center",
1450
1545
  display: "inline-flex",
1451
1546
  justifyContent: "space-between",
@@ -1462,18 +1557,18 @@ function Th(props) {
1462
1557
  }
1463
1558
 
1464
1559
  // src/components/Td.tsx
1465
- var import_css30 = require("@cerberus/styled-system/css");
1466
- var import_recipes24 = require("@cerberus/styled-system/recipes");
1467
- var import_jsx_runtime36 = require("react/jsx-runtime");
1560
+ var import_css31 = require("@cerberus/styled-system/css");
1561
+ var import_recipes25 = require("@cerberus/styled-system/recipes");
1562
+ var import_jsx_runtime37 = require("react/jsx-runtime");
1468
1563
  function Td(props) {
1469
1564
  const { size, ...nativeProps } = props;
1470
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1565
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1471
1566
  "td",
1472
1567
  {
1473
1568
  ...nativeProps,
1474
- className: (0, import_css30.cx)(
1569
+ className: (0, import_css31.cx)(
1475
1570
  nativeProps.className,
1476
- (0, import_recipes24.td)({
1571
+ (0, import_recipes25.td)({
1477
1572
  size
1478
1573
  })
1479
1574
  )
@@ -1482,18 +1577,18 @@ function Td(props) {
1482
1577
  }
1483
1578
 
1484
1579
  // src/components/Tbody.tsx
1485
- var import_recipes25 = require("@cerberus/styled-system/recipes");
1486
- var import_css31 = require("@cerberus/styled-system/css");
1487
- var import_jsx_runtime37 = require("react/jsx-runtime");
1580
+ var import_recipes26 = require("@cerberus/styled-system/recipes");
1581
+ var import_css32 = require("@cerberus/styled-system/css");
1582
+ var import_jsx_runtime38 = require("react/jsx-runtime");
1488
1583
  function Tbody(props) {
1489
1584
  const { decoration, ...nativeProps } = props;
1490
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1585
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1491
1586
  "tbody",
1492
1587
  {
1493
1588
  ...nativeProps,
1494
- className: (0, import_css31.cx)(
1589
+ className: (0, import_css32.cx)(
1495
1590
  nativeProps.className,
1496
- (0, import_recipes25.tbody)({
1591
+ (0, import_recipes26.tbody)({
1497
1592
  decoration
1498
1593
  })
1499
1594
  )
@@ -1503,22 +1598,22 @@ function Tbody(props) {
1503
1598
 
1504
1599
  // src/components/Tag.tsx
1505
1600
  var import_icons3 = require("@cerberus/icons");
1506
- var import_css32 = require("@cerberus/styled-system/css");
1507
- var import_recipes26 = require("@cerberus/styled-system/recipes");
1508
- var import_jsx_runtime38 = require("react/jsx-runtime");
1601
+ var import_css33 = require("@cerberus/styled-system/css");
1602
+ var import_recipes27 = require("@cerberus/styled-system/recipes");
1603
+ var import_jsx_runtime39 = require("react/jsx-runtime");
1509
1604
  function Tag(props) {
1510
1605
  const { shape: initShape, gradient, onClick, usage, ...nativeProps } = props;
1511
1606
  const palette = (props == null ? void 0 : props.palette) ?? "page";
1512
1607
  const isClosable = Boolean(onClick);
1513
1608
  const shape = isClosable ? "pill" : initShape;
1514
1609
  const closableStyles = isClosable ? closableCss : "";
1515
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
1610
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
1516
1611
  "span",
1517
1612
  {
1518
1613
  ...nativeProps,
1519
- className: (0, import_css32.cx)(
1614
+ className: (0, import_css33.cx)(
1520
1615
  nativeProps.className,
1521
- (0, import_recipes26.tag)({
1616
+ (0, import_recipes27.tag)({
1522
1617
  gradient,
1523
1618
  palette,
1524
1619
  shape,
@@ -1528,47 +1623,47 @@ function Tag(props) {
1528
1623
  ),
1529
1624
  children: [
1530
1625
  props.children,
1531
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Show, { when: isClosable, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1626
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Show, { when: isClosable, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1532
1627
  "button",
1533
1628
  {
1534
1629
  "aria-label": "Close",
1535
- className: (0, import_recipes26.iconButton)({
1630
+ className: (0, import_recipes27.iconButton)({
1536
1631
  palette: "action",
1537
1632
  usage: "filled",
1538
1633
  size: "sm"
1539
1634
  }),
1540
1635
  onClick,
1541
- children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_icons3.Close, {})
1636
+ children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_icons3.Close, {})
1542
1637
  }
1543
1638
  ) })
1544
1639
  ]
1545
1640
  }
1546
1641
  );
1547
1642
  }
1548
- var closableCss = (0, import_css32.css)({
1643
+ var closableCss = (0, import_css33.css)({
1549
1644
  bgColor: "action.bg.active",
1550
1645
  color: "action.text.initial",
1551
1646
  paddingInlineEnd: "0"
1552
1647
  });
1553
1648
 
1554
1649
  // src/components/Textarea.tsx
1555
- var import_css33 = require("@cerberus/styled-system/css");
1556
- var import_recipes27 = require("@cerberus/styled-system/recipes");
1557
- var import_jsx_runtime39 = require("react/jsx-runtime");
1650
+ var import_css34 = require("@cerberus/styled-system/css");
1651
+ var import_recipes28 = require("@cerberus/styled-system/recipes");
1652
+ var import_jsx_runtime40 = require("react/jsx-runtime");
1558
1653
  function Textarea(props) {
1559
1654
  const { describedBy, ...nativeProps } = props;
1560
1655
  const { invalid, ...fieldState } = useFieldContext();
1561
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1656
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
1562
1657
  "textarea",
1563
1658
  {
1564
1659
  ...nativeProps,
1565
1660
  ...fieldState,
1566
1661
  ...describedBy && { "aria-describedby": describedBy },
1567
1662
  ...invalid && { "aria-invalid": true },
1568
- className: (0, import_css33.cx)(
1663
+ className: (0, import_css34.cx)(
1569
1664
  props.className,
1570
- (0, import_recipes27.input)().input,
1571
- (0, import_css33.css)({
1665
+ (0, import_recipes28.input)().input,
1666
+ (0, import_css34.css)({
1572
1667
  pxi: "2",
1573
1668
  py: "2",
1574
1669
  resize: "vertical"
@@ -1580,43 +1675,43 @@ function Textarea(props) {
1580
1675
  }
1581
1676
 
1582
1677
  // src/components/Toggle.tsx
1583
- var import_css34 = require("@cerberus/styled-system/css");
1584
- var import_patterns12 = require("@cerberus/styled-system/patterns");
1585
- var import_recipes28 = require("@cerberus/styled-system/recipes");
1586
- var import_jsx_runtime40 = require("react/jsx-runtime");
1678
+ var import_css35 = require("@cerberus/styled-system/css");
1679
+ var import_patterns13 = require("@cerberus/styled-system/patterns");
1680
+ var import_recipes29 = require("@cerberus/styled-system/recipes");
1681
+ var import_jsx_runtime41 = require("react/jsx-runtime");
1587
1682
  function Toggle(props) {
1588
1683
  const { size, describedBy, ...nativeProps } = props;
1589
- const styles = (0, import_recipes28.toggle)({ size });
1684
+ const styles = (0, import_recipes29.toggle)({ size });
1590
1685
  const { invalid, ...state } = useFieldContext();
1591
1686
  const Icon = $cerberusIcons.toggleChecked;
1592
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
1687
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
1593
1688
  "span",
1594
1689
  {
1595
- className: (0, import_css34.cx)("group", styles.track, (0, import_patterns12.hstack)()),
1690
+ className: (0, import_css35.cx)("group", styles.track, (0, import_patterns13.hstack)()),
1596
1691
  "data-checked": props.checked || props.defaultChecked,
1597
1692
  children: [
1598
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
1693
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
1599
1694
  "input",
1600
1695
  {
1601
1696
  ...nativeProps,
1602
1697
  ...state,
1603
1698
  ...describedBy && { "aria-describedby": describedBy },
1604
1699
  ...invalid && { "aria-invalid": true },
1605
- className: (0, import_css34.cx)("peer", styles.input),
1700
+ className: (0, import_css35.cx)("peer", styles.input),
1606
1701
  role: "switch",
1607
1702
  type: "checkbox"
1608
1703
  }
1609
1704
  ),
1610
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
1705
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
1611
1706
  "span",
1612
1707
  {
1613
- className: (0, import_css34.cx)(
1708
+ className: (0, import_css35.cx)(
1614
1709
  styles.thumb,
1615
- (0, import_patterns12.vstack)({
1710
+ (0, import_patterns13.vstack)({
1616
1711
  justify: "center"
1617
1712
  })
1618
1713
  ),
1619
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Icon, {})
1714
+ children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon, {})
1620
1715
  }
1621
1716
  )
1622
1717
  ]
@@ -1626,8 +1721,8 @@ function Toggle(props) {
1626
1721
 
1627
1722
  // src/context/confirm-modal.tsx
1628
1723
  var import_react16 = require("react");
1629
- var import_css35 = require("@cerberus/styled-system/css");
1630
- var import_patterns13 = require("@cerberus/styled-system/patterns");
1724
+ var import_css36 = require("@cerberus/styled-system/css");
1725
+ var import_patterns14 = require("@cerberus/styled-system/patterns");
1631
1726
 
1632
1727
  // src/hooks/useModal.ts
1633
1728
  var import_react15 = require("react");
@@ -1651,7 +1746,7 @@ function useModal() {
1651
1746
  }
1652
1747
 
1653
1748
  // src/context/confirm-modal.tsx
1654
- var import_jsx_runtime41 = require("react/jsx-runtime");
1749
+ var import_jsx_runtime42 = require("react/jsx-runtime");
1655
1750
  var ConfirmModalContext = (0, import_react16.createContext)(null);
1656
1751
  function ConfirmModal(props) {
1657
1752
  const { modalRef, show, close } = useModal();
@@ -1691,33 +1786,33 @@ function ConfirmModal(props) {
1691
1786
  }),
1692
1787
  [handleShow]
1693
1788
  );
1694
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(ConfirmModalContext.Provider, { value, children: [
1789
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(ConfirmModalContext.Provider, { value, children: [
1695
1790
  props.children,
1696
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(Modal, { onKeyDown: focusTrap, ref: modalRef, children: [
1697
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(ModalHeader, { children: [
1698
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
1791
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Modal, { onKeyDown: focusTrap, ref: modalRef, children: [
1792
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(ModalHeader, { children: [
1793
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
1699
1794
  Show,
1700
1795
  {
1701
1796
  when: palette === "danger",
1702
- fallback: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ModalIcon, { palette: "action", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ConfirmIcon, { size: 24 }) }),
1703
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ModalIcon, { palette: "danger", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ConfirmIcon, { size: 24 }) })
1797
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ModalIcon, { palette: "action", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ConfirmIcon, { size: 24 }) }),
1798
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ModalIcon, { palette: "danger", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ConfirmIcon, { size: 24 }) })
1704
1799
  }
1705
1800
  ),
1706
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ModalHeading, { children: content == null ? void 0 : content.heading }),
1707
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ModalDescription, { children: content == null ? void 0 : content.description })
1801
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ModalHeading, { children: content == null ? void 0 : content.heading }),
1802
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ModalDescription, { children: content == null ? void 0 : content.description })
1708
1803
  ] }),
1709
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
1804
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
1710
1805
  "div",
1711
1806
  {
1712
- className: (0, import_patterns13.hstack)({
1807
+ className: (0, import_patterns14.hstack)({
1713
1808
  gap: "4"
1714
1809
  }),
1715
1810
  children: [
1716
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
1811
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
1717
1812
  Button,
1718
1813
  {
1719
1814
  autoFocus: true,
1720
- className: (0, import_css35.css)({
1815
+ className: (0, import_css36.css)({
1721
1816
  w: "1/2"
1722
1817
  }),
1723
1818
  name: "confirm",
@@ -1727,10 +1822,10 @@ function ConfirmModal(props) {
1727
1822
  children: content == null ? void 0 : content.actionText
1728
1823
  }
1729
1824
  ),
1730
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
1825
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
1731
1826
  Button,
1732
1827
  {
1733
- className: (0, import_css35.css)({
1828
+ className: (0, import_css36.css)({
1734
1829
  w: "1/2"
1735
1830
  }),
1736
1831
  name: "cancel",
@@ -1758,14 +1853,14 @@ function useConfirmModal() {
1758
1853
 
1759
1854
  // src/context/notification-center.tsx
1760
1855
  var import_react17 = require("react");
1761
- var import_patterns14 = require("@cerberus/styled-system/patterns");
1762
- var import_recipes29 = require("@cerberus/styled-system/recipes");
1763
- var import_css36 = require("@cerberus/styled-system/css");
1764
- var import_jsx_runtime42 = require("react/jsx-runtime");
1856
+ var import_patterns15 = require("@cerberus/styled-system/patterns");
1857
+ var import_recipes30 = require("@cerberus/styled-system/recipes");
1858
+ var import_css37 = require("@cerberus/styled-system/css");
1859
+ var import_jsx_runtime43 = require("react/jsx-runtime");
1765
1860
  var NotificationsContext = (0, import_react17.createContext)(null);
1766
1861
  function NotificationCenter(props) {
1767
1862
  const [activeNotifications, setActiveNotifications] = (0, import_react17.useState)([]);
1768
- const styles = (0, import_recipes29.notification)();
1863
+ const styles = (0, import_recipes30.notification)();
1769
1864
  const handleNotify = (0, import_react17.useCallback)((options) => {
1770
1865
  setActiveNotifications((prev) => {
1771
1866
  const id = `${options.palette}:${prev.length + 1}`;
@@ -1794,13 +1889,13 @@ function NotificationCenter(props) {
1794
1889
  }),
1795
1890
  [handleNotify]
1796
1891
  );
1797
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(NotificationsContext.Provider, { value, children: [
1892
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(NotificationsContext.Provider, { value, children: [
1798
1893
  props.children,
1799
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Show, { when: activeNotifications.length > 0, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Portal, { container: props.container, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: styles.center, children: [
1800
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Show, { when: activeNotifications.length >= 4, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
1894
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Show, { when: activeNotifications.length > 0, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Portal, { container: props.container, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: styles.center, children: [
1895
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Show, { when: activeNotifications.length >= 4, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
1801
1896
  Button,
1802
1897
  {
1803
- className: (0, import_css36.cx)(styles.closeAll, (0, import_patterns14.animateIn)()),
1898
+ className: (0, import_css37.cx)(styles.closeAll, (0, import_patterns15.animateIn)()),
1804
1899
  onClick: handleCloseAll,
1805
1900
  palette: "action",
1806
1901
  shape: "rounded",
@@ -1809,17 +1904,17 @@ function NotificationCenter(props) {
1809
1904
  children: "Close all"
1810
1905
  }
1811
1906
  ) }),
1812
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
1907
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
1813
1908
  "div",
1814
1909
  {
1815
- className: (0, import_patterns14.vstack)({
1910
+ className: (0, import_patterns15.vstack)({
1816
1911
  alignItems: "flex-end",
1817
1912
  gap: "4"
1818
1913
  }),
1819
1914
  style: {
1820
1915
  alignItems: "flex-end"
1821
1916
  },
1822
- children: activeNotifications.map((option) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
1917
+ children: activeNotifications.map((option) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
1823
1918
  Notification,
1824
1919
  {
1825
1920
  id: option.id,
@@ -1827,8 +1922,8 @@ function NotificationCenter(props) {
1827
1922
  open: true,
1828
1923
  palette: option.palette,
1829
1924
  children: [
1830
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(NotificationHeading, { palette: option.palette, children: option.heading }),
1831
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(NotificationDescription, { palette: option.palette, children: option.description })
1925
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(NotificationHeading, { palette: option.palette, children: option.heading }),
1926
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(NotificationDescription, { palette: option.palette, children: option.description })
1832
1927
  ]
1833
1928
  },
1834
1929
  option.id
@@ -1850,9 +1945,9 @@ function useNotificationCenter() {
1850
1945
 
1851
1946
  // src/context/prompt-modal.tsx
1852
1947
  var import_react18 = require("react");
1853
- var import_css37 = require("@cerberus/styled-system/css");
1854
- var import_patterns15 = require("@cerberus/styled-system/patterns");
1855
- var import_jsx_runtime43 = require("react/jsx-runtime");
1948
+ var import_css38 = require("@cerberus/styled-system/css");
1949
+ var import_patterns16 = require("@cerberus/styled-system/patterns");
1950
+ var import_jsx_runtime44 = require("react/jsx-runtime");
1856
1951
  var PromptModalContext = (0, import_react18.createContext)(null);
1857
1952
  function PromptModal(props) {
1858
1953
  const { modalRef, show, close } = useModal();
@@ -1902,36 +1997,36 @@ function PromptModal(props) {
1902
1997
  }),
1903
1998
  [handleShow]
1904
1999
  );
1905
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(PromptModalContext.Provider, { value, children: [
2000
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(PromptModalContext.Provider, { value, children: [
1906
2001
  props.children,
1907
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Modal, { onKeyDown: focusTrap, ref: modalRef, children: [
1908
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(ModalHeader, { children: [
1909
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2002
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(Modal, { onKeyDown: focusTrap, ref: modalRef, children: [
2003
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(ModalHeader, { children: [
2004
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
1910
2005
  Show,
1911
2006
  {
1912
2007
  when: palette === "danger",
1913
- fallback: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ModalIcon, { palette: "action", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(PromptIcon, { size: 24 }) }),
1914
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ModalIcon, { palette: "danger", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(PromptIcon, { size: 24 }) })
2008
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ModalIcon, { palette: "action", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(PromptIcon, { size: 24 }) }),
2009
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ModalIcon, { palette: "danger", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(PromptIcon, { size: 24 }) })
1915
2010
  }
1916
2011
  ),
1917
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ModalHeading, { children: content == null ? void 0 : content.heading }),
1918
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ModalDescription, { children: content == null ? void 0 : content.description })
2012
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ModalHeading, { children: content == null ? void 0 : content.heading }),
2013
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ModalDescription, { children: content == null ? void 0 : content.description })
1919
2014
  ] }),
1920
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2015
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
1921
2016
  "div",
1922
2017
  {
1923
- className: (0, import_patterns15.vstack)({
2018
+ className: (0, import_patterns16.vstack)({
1924
2019
  alignItems: "flex-start",
1925
2020
  mt: "4",
1926
2021
  mb: "8"
1927
2022
  }),
1928
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Field, { invalid: !isValid, children: [
1929
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Label, { htmlFor: "confirm", size: "md", children: [
2023
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(Field, { invalid: !isValid, children: [
2024
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(Label, { htmlFor: "confirm", size: "md", children: [
1930
2025
  "Type",
1931
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2026
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
1932
2027
  "strong",
1933
2028
  {
1934
- className: (0, import_css37.css)({
2029
+ className: (0, import_css38.css)({
1935
2030
  textTransform: "uppercase"
1936
2031
  }),
1937
2032
  children: content == null ? void 0 : content.key
@@ -1939,7 +2034,7 @@ function PromptModal(props) {
1939
2034
  ),
1940
2035
  "to confirm"
1941
2036
  ] }),
1942
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2037
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
1943
2038
  Input,
1944
2039
  {
1945
2040
  id: "confirm",
@@ -1951,19 +2046,19 @@ function PromptModal(props) {
1951
2046
  ] })
1952
2047
  }
1953
2048
  ),
1954
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
2049
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
1955
2050
  "div",
1956
2051
  {
1957
- className: (0, import_patterns15.hstack)({
2052
+ className: (0, import_patterns16.hstack)({
1958
2053
  justifyContent: "stretch",
1959
2054
  gap: "4"
1960
2055
  }),
1961
2056
  children: [
1962
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2057
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
1963
2058
  Button,
1964
2059
  {
1965
2060
  autoFocus: true,
1966
- className: (0, import_css37.css)({
2061
+ className: (0, import_css38.css)({
1967
2062
  w: "1/2"
1968
2063
  }),
1969
2064
  disabled: !isValid,
@@ -1974,10 +2069,10 @@ function PromptModal(props) {
1974
2069
  children: content == null ? void 0 : content.actionText
1975
2070
  }
1976
2071
  ),
1977
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2072
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
1978
2073
  Button,
1979
2074
  {
1980
- className: (0, import_css37.css)({
2075
+ className: (0, import_css38.css)({
1981
2076
  w: "1/2"
1982
2077
  }),
1983
2078
  name: "cancel",
@@ -2052,7 +2147,7 @@ function useTheme(defaultTheme = "cerberus", defaultColorMode = "light") {
2052
2147
  }
2053
2148
 
2054
2149
  // src/context/theme.tsx
2055
- var import_jsx_runtime44 = require("react/jsx-runtime");
2150
+ var import_jsx_runtime45 = require("react/jsx-runtime");
2056
2151
  var THEME_KEY = "cerberus-theme";
2057
2152
  var MODE_KEY = "cerberus-mode";
2058
2153
  var ThemeContext = (0, import_react20.createContext)(
@@ -2060,7 +2155,7 @@ var ThemeContext = (0, import_react20.createContext)(
2060
2155
  );
2061
2156
  function ThemeProvider(props) {
2062
2157
  const state = useTheme();
2063
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ThemeContext.Provider, { value: state, children: props.children });
2158
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(ThemeContext.Provider, { value: state, children: props.children });
2064
2159
  }
2065
2160
  function useThemeContext() {
2066
2161
  const context = (0, import_react20.useContext)(ThemeContext);
@@ -2093,6 +2188,7 @@ __reExport(src_exports, require("@dnd-kit/core"), module.exports);
2093
2188
  // Annotate the CommonJS export names for ESM import in node:
2094
2189
  0 && (module.exports = {
2095
2190
  $cerberusIcons,
2191
+ Avatar,
2096
2192
  Button,
2097
2193
  Checkbox,
2098
2194
  ConfirmModal,