@marigold/components 5.2.0 → 5.4.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.
package/dist/index.mjs CHANGED
@@ -68,12 +68,15 @@ var Aspect = ({
68
68
  );
69
69
 
70
70
  // src/Autocomplete/Autocomplete.tsx
71
- import React18, { useRef as useRef5 } from "react";
71
+ import React17, { useRef as useRef5 } from "react";
72
72
  import { useSearchAutocomplete } from "@react-aria/autocomplete";
73
73
  import { useFilter } from "@react-aria/i18n";
74
74
  import { useComboBoxState } from "@react-stately/combobox";
75
75
  import { Item } from "@react-stately/collections";
76
- import { SVG as SVG3 } from "@marigold/system";
76
+ import {
77
+ SVG as SVG3,
78
+ useComponentStyles as useComponentStyles7
79
+ } from "@marigold/system";
77
80
 
78
81
  // src/FieldBase/FieldBase.tsx
79
82
  import React6 from "react";
@@ -228,63 +231,78 @@ var FieldBase = ({
228
231
  );
229
232
  };
230
233
 
231
- // src/Input/InputField.tsx
234
+ // src/Input/Input.tsx
232
235
  import React7, { forwardRef } from "react";
233
- import { Box as Box5 } from "@marigold/system";
234
- var InputField = forwardRef(
235
- ({ type = "text", ...props }, ref) => {
236
+ import {
237
+ Box as Box5,
238
+ useComponentStyles as useComponentStyles4,
239
+ useStateProps
240
+ } from "@marigold/system";
241
+ var Input = forwardRef(
242
+ ({ type = "text", icon, action, variant, size, ...props }, ref) => {
243
+ const styles = useComponentStyles4(
244
+ "Input",
245
+ { variant, size },
246
+ { parts: ["input", "icon", "container"] }
247
+ );
248
+ const stateProps = useStateProps({
249
+ hasIcon: icon ? true : false
250
+ });
236
251
  return /* @__PURE__ */ React7.createElement(
237
252
  Box5,
238
253
  {
239
- __baseCSS: { border: 0, width: "100%", outline: "none" },
240
- ...props,
241
- ref,
242
- as: "input",
243
- type
244
- }
254
+ __baseCSS: {
255
+ position: "relative",
256
+ display: "flex",
257
+ alignItems: "center",
258
+ width: "100%"
259
+ },
260
+ css: styles.container
261
+ },
262
+ /* @__PURE__ */ React7.createElement(
263
+ Box5,
264
+ {
265
+ __baseCSS: { border: 0, width: "100%", outline: "none", pl: 16 },
266
+ ...props,
267
+ ...stateProps,
268
+ as: "input",
269
+ ref,
270
+ css: styles.input,
271
+ type
272
+ }
273
+ ),
274
+ icon && /* @__PURE__ */ React7.createElement(
275
+ Box5,
276
+ {
277
+ __baseCSS: {
278
+ position: "absolute",
279
+ pointerEvents: "none",
280
+ left: 8
281
+ },
282
+ css: styles.icon
283
+ },
284
+ icon
285
+ ),
286
+ /* @__PURE__ */ React7.createElement(
287
+ Box5,
288
+ {
289
+ __baseCSS: {
290
+ display: "inline-flex",
291
+ position: "absolute",
292
+ right: 8
293
+ }
294
+ },
295
+ action
296
+ )
245
297
  );
246
298
  }
247
299
  );
248
300
 
249
- // src/Input/Input.tsx
250
- import {
251
- Box as Box6,
252
- useComponentStyles as useComponentStyles4
253
- } from "@marigold/system";
254
- import React8 from "react";
255
- var Input = ({
256
- space = "xsmall",
257
- children,
258
- variant,
259
- size,
260
- ...props
261
- }) => {
262
- const [leading, input, trailing] = React8.Children.toArray(children);
263
- const styles = useComponentStyles4("Input", { variant, size });
264
- return /* @__PURE__ */ React8.createElement(
265
- Box6,
266
- {
267
- __baseCSS: {
268
- display: "flex",
269
- alignItems: "center",
270
- width: "100%",
271
- gap: space
272
- },
273
- css: styles,
274
- ...props
275
- },
276
- leading,
277
- input,
278
- trailing
279
- );
280
- };
281
- Input.Field = InputField;
282
-
283
301
  // src/ListBox/ListBox.tsx
284
- import React11, { forwardRef as forwardRef2 } from "react";
302
+ import React10, { forwardRef as forwardRef2 } from "react";
285
303
  import { useObjectRef } from "@react-aria/utils";
286
304
  import {
287
- Box as Box9,
305
+ Box as Box8,
288
306
  useComponentStyles as useComponentStyles5
289
307
  } from "@marigold/system";
290
308
  import { useListBox } from "@react-aria/listbox";
@@ -295,15 +313,15 @@ var ListBoxContext = createContext2({});
295
313
  var useListBoxContext = () => useContext2(ListBoxContext);
296
314
 
297
315
  // src/ListBox/ListBoxSection.tsx
298
- import React10 from "react";
316
+ import React9 from "react";
299
317
  import { useListBoxSection } from "@react-aria/listbox";
300
- import { Box as Box8 } from "@marigold/system";
318
+ import { Box as Box7 } from "@marigold/system";
301
319
 
302
320
  // src/ListBox/ListBoxOption.tsx
303
- import React9, { useRef } from "react";
321
+ import React8, { useRef } from "react";
304
322
  import { useOption } from "@react-aria/listbox";
305
323
  import { mergeProps } from "@react-aria/utils";
306
- import { Box as Box7, useStateProps } from "@marigold/system";
324
+ import { Box as Box6, useStateProps as useStateProps2 } from "@marigold/system";
307
325
  var ListBoxOption = ({ item, state }) => {
308
326
  const ref = useRef(null);
309
327
  const { optionProps, isSelected, isDisabled, isFocused } = useOption(
@@ -315,13 +333,13 @@ var ListBoxOption = ({ item, state }) => {
315
333
  );
316
334
  const { onPointerUp, ...props } = optionProps;
317
335
  const { styles } = useListBoxContext();
318
- const stateProps = useStateProps({
336
+ const stateProps = useStateProps2({
319
337
  selected: isSelected,
320
338
  disabled: isDisabled,
321
339
  focusVisible: isFocused
322
340
  });
323
- return /* @__PURE__ */ React9.createElement(
324
- Box7,
341
+ return /* @__PURE__ */ React8.createElement(
342
+ Box6,
325
343
  {
326
344
  as: "li",
327
345
  ref,
@@ -339,15 +357,15 @@ var ListBoxSection = ({ section, state }) => {
339
357
  "aria-label": section["aria-label"]
340
358
  });
341
359
  const { styles } = useListBoxContext();
342
- return /* @__PURE__ */ React10.createElement(Box8, { as: "li", css: styles.section, ...itemProps }, section.rendered && /* @__PURE__ */ React10.createElement(Box8, { css: styles.sectionTitle, ...headingProps }, section.rendered), /* @__PURE__ */ React10.createElement(
343
- Box8,
360
+ return /* @__PURE__ */ React9.createElement(Box7, { as: "li", css: styles.section, ...itemProps }, section.rendered && /* @__PURE__ */ React9.createElement(Box7, { css: styles.sectionTitle, ...headingProps }, section.rendered), /* @__PURE__ */ React9.createElement(
361
+ Box7,
344
362
  {
345
363
  as: "ul",
346
364
  __baseCSS: { listStyle: "none", p: 0 },
347
365
  css: styles.list,
348
366
  ...groupProps
349
367
  },
350
- [...section.childNodes].map((node) => /* @__PURE__ */ React10.createElement(ListBoxOption, { key: node.key, item: node, state }))
368
+ [...section.childNodes].map((node) => /* @__PURE__ */ React9.createElement(ListBoxOption, { key: node.key, item: node, state }))
351
369
  ));
352
370
  };
353
371
 
@@ -361,8 +379,8 @@ var ListBox = forwardRef2(
361
379
  { variant, size },
362
380
  { parts: ["container", "list", "option", "section", "sectionTitle"] }
363
381
  );
364
- return /* @__PURE__ */ React11.createElement(ListBoxContext.Provider, { value: { styles } }, /* @__PURE__ */ React11.createElement(Box9, { css: styles.container }, /* @__PURE__ */ React11.createElement(
365
- Box9,
382
+ return /* @__PURE__ */ React10.createElement(ListBoxContext.Provider, { value: { styles } }, /* @__PURE__ */ React10.createElement(Box8, { css: styles.container }, /* @__PURE__ */ React10.createElement(
383
+ Box8,
366
384
  {
367
385
  as: "ul",
368
386
  ref: innerRef,
@@ -371,25 +389,25 @@ var ListBox = forwardRef2(
371
389
  ...listBoxProps
372
390
  },
373
391
  [...state.collection].map(
374
- (item) => item.type === "section" ? /* @__PURE__ */ React11.createElement(ListBoxSection, { key: item.key, section: item, state }) : /* @__PURE__ */ React11.createElement(ListBoxOption, { key: item.key, item, state })
392
+ (item) => item.type === "section" ? /* @__PURE__ */ React10.createElement(ListBoxSection, { key: item.key, section: item, state }) : /* @__PURE__ */ React10.createElement(ListBoxOption, { key: item.key, item, state })
375
393
  )
376
394
  )));
377
395
  }
378
396
  );
379
397
 
380
398
  // src/Overlay/Modal.tsx
381
- import React13, { forwardRef as forwardRef3 } from "react";
399
+ import React12, { forwardRef as forwardRef3 } from "react";
382
400
  import { FocusScope } from "@react-aria/focus";
383
401
  import { useModal, useOverlay, usePreventScroll } from "@react-aria/overlays";
384
402
  import { mergeProps as mergeProps2, useObjectRef as useObjectRef2 } from "@react-aria/utils";
385
403
 
386
404
  // src/Overlay/Underlay.tsx
387
- import React12 from "react";
388
- import { Box as Box10, useComponentStyles as useComponentStyles6 } from "@marigold/system";
405
+ import React11 from "react";
406
+ import { Box as Box9, useComponentStyles as useComponentStyles6 } from "@marigold/system";
389
407
  var Underlay = ({ size, variant, ...props }) => {
390
408
  const styles = useComponentStyles6("Underlay", { size, variant });
391
- return /* @__PURE__ */ React12.createElement(
392
- Box10,
409
+ return /* @__PURE__ */ React11.createElement(
410
+ Box9,
393
411
  {
394
412
  __baseCSS: {
395
413
  position: "fixed",
@@ -417,7 +435,7 @@ var Modal = forwardRef3(
417
435
  );
418
436
  usePreventScroll();
419
437
  const { modalProps } = useModal({});
420
- return /* @__PURE__ */ React13.createElement(FocusScope, { contain: true, restoreFocus: true, autoFocus: true }, /* @__PURE__ */ React13.createElement(Underlay, { ...underlayProps, variant: "modal" }), /* @__PURE__ */ React13.createElement(
438
+ return /* @__PURE__ */ React12.createElement(FocusScope, { contain: true, restoreFocus: true, autoFocus: true }, /* @__PURE__ */ React12.createElement(Underlay, { ...underlayProps, variant: "modal" }), /* @__PURE__ */ React12.createElement(
421
439
  "div",
422
440
  {
423
441
  style: {
@@ -432,13 +450,13 @@ var Modal = forwardRef3(
432
450
  ref: modalRef,
433
451
  ...mergeProps2(props, overlayProps, modalProps)
434
452
  },
435
- /* @__PURE__ */ React13.createElement("div", { style: { pointerEvents: "auto" } }, children)
453
+ /* @__PURE__ */ React12.createElement("div", { style: { pointerEvents: "auto" } }, children)
436
454
  ));
437
455
  }
438
456
  );
439
457
 
440
458
  // src/Overlay/Overlay.tsx
441
- import React14, { useRef as useRef2 } from "react";
459
+ import React13, { useRef as useRef2 } from "react";
442
460
  import { Transition } from "react-transition-group";
443
461
  import {
444
462
  Overlay as ReactAriaOverlay
@@ -461,7 +479,7 @@ var Overlay = ({ children, container, open }) => {
461
479
  if (!mountOverlay) {
462
480
  return null;
463
481
  }
464
- return /* @__PURE__ */ React14.createElement(ReactAriaOverlay, { portalContainer: container }, /* @__PURE__ */ React14.createElement(Transition, { nodeRef, timeout: duration, in: open, appear: true }, (state) => /* @__PURE__ */ React14.createElement(
482
+ return /* @__PURE__ */ React13.createElement(ReactAriaOverlay, { portalContainer: container }, /* @__PURE__ */ React13.createElement(Transition, { nodeRef, timeout: duration, in: open, appear: true }, (state) => /* @__PURE__ */ React13.createElement(
465
483
  "div",
466
484
  {
467
485
  ref: nodeRef,
@@ -476,7 +494,7 @@ var Overlay = ({ children, container, open }) => {
476
494
  };
477
495
 
478
496
  // src/Overlay/Popover.tsx
479
- import React15, { forwardRef as forwardRef4, useRef as useRef3 } from "react";
497
+ import React14, { forwardRef as forwardRef4, useRef as useRef3 } from "react";
480
498
  import {
481
499
  DismissButton,
482
500
  usePopover
@@ -487,7 +505,7 @@ var Popover = forwardRef4(
487
505
  const fallbackRef = useRef3(null);
488
506
  const popoverRef = ref || fallbackRef;
489
507
  let { children, state, ...otherProps } = props;
490
- return /* @__PURE__ */ React15.createElement(Overlay, { open: state.isOpen, ...otherProps }, /* @__PURE__ */ React15.createElement(PopoverWrapper, { ref: popoverRef, ...props }, children));
508
+ return /* @__PURE__ */ React14.createElement(Overlay, { open: state.isOpen, ...otherProps }, /* @__PURE__ */ React14.createElement(PopoverWrapper, { ref: popoverRef, ...props }, children));
491
509
  }
492
510
  );
493
511
  var PopoverWrapper = forwardRef4(
@@ -508,7 +526,7 @@ var PopoverWrapper = forwardRef4(
508
526
  },
509
527
  state
510
528
  );
511
- return /* @__PURE__ */ React15.createElement(FocusScope2, { restoreFocus: true }, !isNonModal && /* @__PURE__ */ React15.createElement(Underlay, { ...underlayProps }), /* @__PURE__ */ React15.createElement(
529
+ return /* @__PURE__ */ React14.createElement(FocusScope2, { restoreFocus: true }, !isNonModal && /* @__PURE__ */ React14.createElement(Underlay, { ...underlayProps }), /* @__PURE__ */ React14.createElement(
512
530
  "div",
513
531
  {
514
532
  ...popoverProps,
@@ -519,16 +537,16 @@ var PopoverWrapper = forwardRef4(
519
537
  ref,
520
538
  role: "presentation"
521
539
  },
522
- !isNonModal && /* @__PURE__ */ React15.createElement(DismissButton, { onDismiss: state.close }),
540
+ !isNonModal && /* @__PURE__ */ React14.createElement(DismissButton, { onDismiss: state.close }),
523
541
  children,
524
- /* @__PURE__ */ React15.createElement(DismissButton, { onDismiss: state.close })
542
+ /* @__PURE__ */ React14.createElement(DismissButton, { onDismiss: state.close })
525
543
  ));
526
544
  }
527
545
  );
528
546
 
529
547
  // src/Overlay/Tray.tsx
530
- import React16 from "react";
531
- import { Box as Box11 } from "@marigold/system";
548
+ import React15 from "react";
549
+ import { Box as Box10 } from "@marigold/system";
532
550
  import { FocusScope as FocusScope3 } from "@react-aria/focus";
533
551
  import {
534
552
  DismissButton as DismissButton2,
@@ -539,7 +557,7 @@ import { forwardRef as forwardRef5 } from "react";
539
557
  var Tray = forwardRef5(
540
558
  ({ state, children, ...props }, ref) => {
541
559
  const trayRef = useObjectRef3(ref);
542
- return /* @__PURE__ */ React16.createElement(Overlay, { open: state.isOpen }, /* @__PURE__ */ React16.createElement(TrayWrapper, { state, ...props, ref: trayRef }, children));
560
+ return /* @__PURE__ */ React15.createElement(Overlay, { open: state.isOpen }, /* @__PURE__ */ React15.createElement(TrayWrapper, { state, ...props, ref: trayRef }, children));
543
561
  }
544
562
  );
545
563
  var TrayWrapper = forwardRef5(
@@ -552,29 +570,30 @@ var TrayWrapper = forwardRef5(
552
570
  state,
553
571
  ref
554
572
  );
555
- return /* @__PURE__ */ React16.createElement(FocusScope3, { contain: true, restoreFocus: true, autoFocus: true }, /* @__PURE__ */ React16.createElement(Underlay, { ...underlayProps, variant: "modal" }, /* @__PURE__ */ React16.createElement(
556
- Box11,
573
+ return /* @__PURE__ */ React15.createElement(FocusScope3, { contain: true, restoreFocus: true, autoFocus: true }, /* @__PURE__ */ React15.createElement(Underlay, { ...underlayProps, variant: "modal" }, /* @__PURE__ */ React15.createElement(
574
+ Box10,
557
575
  {
558
576
  ...modalProps,
559
577
  ref,
560
578
  __baseCSS: { position: "absolute", width: "100%", bottom: 0 },
561
579
  "data-testid": "tray"
562
580
  },
563
- /* @__PURE__ */ React16.createElement(DismissButton2, { onDismiss: state.close }),
581
+ /* @__PURE__ */ React15.createElement(DismissButton2, { onDismiss: state.close }),
564
582
  children,
565
- /* @__PURE__ */ React16.createElement(DismissButton2, { onDismiss: state.close })
583
+ /* @__PURE__ */ React15.createElement(DismissButton2, { onDismiss: state.close })
566
584
  )));
567
585
  }
568
586
  );
569
587
 
570
588
  // src/Autocomplete/ClearButton.tsx
571
- import React17, { useRef as useRef4 } from "react";
589
+ import React16, { useRef as useRef4 } from "react";
572
590
  import { useHover } from "@react-aria/interactions";
573
591
  import { useFocusRing } from "@react-aria/focus";
574
592
  import { useButton } from "@react-aria/button";
575
593
  import { mergeProps as mergeProps3 } from "@react-aria/utils";
576
- import { Box as Box12, useStateProps as useStateProps2 } from "@marigold/system";
594
+ import { Box as Box11, useStateProps as useStateProps3 } from "@marigold/system";
577
595
  var ClearButton = ({
596
+ css,
578
597
  preventFocus,
579
598
  disabled,
580
599
  onClick,
@@ -610,57 +629,50 @@ var ClearButton = ({
610
629
  if (preventFocus) {
611
630
  delete buttonProps.tabIndex;
612
631
  }
613
- const stateProps = useStateProps2({
632
+ const stateProps = useStateProps3({
614
633
  active: isPressed,
615
634
  focusVisible: isFocusVisible,
616
635
  hover: isHovered
617
636
  });
618
- return /* @__PURE__ */ React17.createElement(
619
- Box12,
637
+ return /* @__PURE__ */ React16.createElement(
638
+ Box11,
620
639
  {
621
640
  ...mergeProps3(buttonProps, focusProps, hoverProps, props),
622
641
  ...stateProps,
623
642
  as: "button",
624
643
  ref: buttonRef,
625
- css: {
644
+ __baseCSS: {
626
645
  appearance: "none",
627
646
  border: "none",
628
647
  p: 0,
629
- cursor: "pointer"
630
- }
648
+ cursor: "pointer",
649
+ height: 16,
650
+ width: 16
651
+ },
652
+ css
631
653
  },
632
- /* @__PURE__ */ React17.createElement(
654
+ /* @__PURE__ */ React16.createElement(
633
655
  "svg",
634
656
  {
635
657
  xmlns: "http://www.w3.org/2000/svg",
636
658
  viewBox: "0 0 20 20",
637
- fill: "currentColor",
638
- height: 20,
639
- width: 20
659
+ fill: "currentColor"
640
660
  },
641
- /* @__PURE__ */ React17.createElement("path", { d: "M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z" })
661
+ /* @__PURE__ */ React16.createElement("path", { d: "M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z" })
642
662
  )
643
663
  );
644
664
  };
645
665
 
646
666
  // src/Autocomplete/Autocomplete.tsx
647
- var SearchIcon = () => /* @__PURE__ */ React18.createElement(
667
+ var SearchIcon = ({ css }) => /* @__PURE__ */ React17.createElement(
648
668
  SVG3,
649
669
  {
650
670
  xmlns: "http://www.w3.org/2000/svg",
651
- viewBox: "0 0 20 20",
671
+ viewBox: "0 0 24 24",
652
672
  fill: "currentColor",
653
- height: 16,
654
- width: 16
673
+ css
655
674
  },
656
- /* @__PURE__ */ React18.createElement(
657
- "path",
658
- {
659
- fillRule: "evenodd",
660
- d: "M9 3.5a5.5 5.5 0 100 11 5.5 5.5 0 000-11zM2 9a7 7 0 1112.452 4.391l3.328 3.329a.75.75 0 11-1.06 1.06l-3.329-3.328A7 7 0 012 9z",
661
- clipRule: "evenodd"
662
- }
663
- )
675
+ /* @__PURE__ */ React17.createElement("path", { d: "M16.1865 14.5142H15.3057L14.9936 14.2131C16.0862 12.9421 16.744 11.292 16.744 9.497C16.744 5.49443 13.4996 2.25 9.497 2.25C5.49443 2.25 2.25 5.49443 2.25 9.497C2.25 13.4996 5.49443 16.744 9.497 16.744C11.292 16.744 12.9421 16.0862 14.2131 14.9936L14.5142 15.3057V16.1865L20.0888 21.75L21.75 20.0888L16.1865 14.5142ZM9.49701 14.5142C6.72085 14.5142 4.47986 12.2732 4.47986 9.49701C4.47986 6.72085 6.72085 4.47986 9.49701 4.47986C12.2732 4.47986 14.5142 6.72085 14.5142 9.49701C14.5142 12.2732 12.2732 14.5142 9.49701 14.5142Z" })
664
676
  );
665
677
  var Autocomplete = ({
666
678
  disabled,
@@ -670,6 +682,8 @@ var Autocomplete = ({
670
682
  onChange,
671
683
  value,
672
684
  defaultValue,
685
+ variant,
686
+ size,
673
687
  width,
674
688
  ...rest
675
689
  }) => {
@@ -713,7 +727,12 @@ var Autocomplete = ({
713
727
  );
714
728
  const errorMessageProps = { "aria-invalid": error };
715
729
  const { isDisabled, ...restClearButtonProps } = clearButtonProps;
716
- return /* @__PURE__ */ React18.createElement(React18.Fragment, null, /* @__PURE__ */ React18.createElement(
730
+ const styles = useComponentStyles7(
731
+ "Autocomplete",
732
+ { variant, size },
733
+ { parts: ["icon", "clear"] }
734
+ );
735
+ return /* @__PURE__ */ React17.createElement(React17.Fragment, null, /* @__PURE__ */ React17.createElement(
717
736
  FieldBase,
718
737
  {
719
738
  label: props.label,
@@ -725,15 +744,24 @@ var Autocomplete = ({
725
744
  disabled,
726
745
  width
727
746
  },
728
- /* @__PURE__ */ React18.createElement(Input, null, /* @__PURE__ */ React18.createElement(SearchIcon, null), /* @__PURE__ */ React18.createElement(Input.Field, { ...inputProps, ref: inputRef }), state.inputValue !== "" && /* @__PURE__ */ React18.createElement(
729
- ClearButton,
747
+ /* @__PURE__ */ React17.createElement(
748
+ Input,
730
749
  {
731
- preventFocus: true,
732
- disabled: isDisabled,
733
- ...restClearButtonProps
750
+ ...inputProps,
751
+ ref: inputRef,
752
+ icon: /* @__PURE__ */ React17.createElement(SearchIcon, { css: { height: 16, width: 16, ...styles.icon } }),
753
+ action: state.inputValue !== "" ? /* @__PURE__ */ React17.createElement(
754
+ ClearButton,
755
+ {
756
+ preventFocus: true,
757
+ disabled: isDisabled,
758
+ css: styles.clear,
759
+ ...restClearButtonProps
760
+ }
761
+ ) : void 0
734
762
  }
735
- ))
736
- ), /* @__PURE__ */ React18.createElement(
763
+ )
764
+ ), /* @__PURE__ */ React17.createElement(
737
765
  Popover,
738
766
  {
739
767
  state,
@@ -742,21 +770,21 @@ var Autocomplete = ({
742
770
  scrollRef: listBoxRef,
743
771
  isNonModal: true
744
772
  },
745
- /* @__PURE__ */ React18.createElement(ListBox, { ref: listBoxRef, state, ...listBoxProps })
773
+ /* @__PURE__ */ React17.createElement(ListBox, { ref: listBoxRef, state, ...listBoxProps })
746
774
  ));
747
775
  };
748
776
  Autocomplete.Item = Item;
749
777
 
750
778
  // src/Badge/Badge.tsx
751
- import React19 from "react";
752
- import { useComponentStyles as useComponentStyles7 } from "@marigold/system";
779
+ import React18 from "react";
780
+ import { useComponentStyles as useComponentStyles8 } from "@marigold/system";
753
781
  var Badge = ({ variant, size, children, ...props }) => {
754
- const styles = useComponentStyles7("Badge", { variant, size });
755
- return /* @__PURE__ */ React19.createElement(Box, { ...props, css: styles }, children);
782
+ const styles = useComponentStyles8("Badge", { variant, size });
783
+ return /* @__PURE__ */ React18.createElement(Box, { ...props, css: styles }, children);
756
784
  };
757
785
 
758
786
  // src/Breakout/Breakout.tsx
759
- import React20 from "react";
787
+ import React19 from "react";
760
788
  var useAlignment = (direction) => {
761
789
  switch (direction) {
762
790
  case "right":
@@ -777,7 +805,7 @@ var Breakout = ({
777
805
  }) => {
778
806
  const alignItems = useAlignment(alignY);
779
807
  const justifyContent = useAlignment(alignX);
780
- return /* @__PURE__ */ React20.createElement(
808
+ return /* @__PURE__ */ React19.createElement(
781
809
  Box,
782
810
  {
783
811
  css: {
@@ -795,26 +823,26 @@ var Breakout = ({
795
823
  };
796
824
 
797
825
  // src/Body/Body.tsx
798
- import React21 from "react";
826
+ import React20 from "react";
799
827
  import {
800
- Box as Box13,
801
- useComponentStyles as useComponentStyles8
828
+ Box as Box12,
829
+ useComponentStyles as useComponentStyles9
802
830
  } from "@marigold/system";
803
831
  var Body = ({ children, variant, size, ...props }) => {
804
- const styles = useComponentStyles8("Body", { variant, size });
805
- return /* @__PURE__ */ React21.createElement(Box13, { as: "section", ...props, css: styles }, children);
832
+ const styles = useComponentStyles9("Body", { variant, size });
833
+ return /* @__PURE__ */ React20.createElement(Box12, { as: "section", ...props, css: styles }, children);
806
834
  };
807
835
 
808
836
  // src/Button/Button.tsx
809
- import React22, { forwardRef as forwardRef6 } from "react";
837
+ import React21, { forwardRef as forwardRef6 } from "react";
810
838
  import { useButton as useButton2 } from "@react-aria/button";
811
839
  import { useFocusRing as useFocusRing2 } from "@react-aria/focus";
812
840
  import { useHover as useHover2 } from "@react-aria/interactions";
813
841
  import { mergeProps as mergeProps4, useObjectRef as useObjectRef4 } from "@react-aria/utils";
814
842
  import {
815
- Box as Box14,
816
- useComponentStyles as useComponentStyles9,
817
- useStateProps as useStateProps3
843
+ Box as Box13,
844
+ useComponentStyles as useComponentStyles10,
845
+ useStateProps as useStateProps4
818
846
  } from "@marigold/system";
819
847
  var Button = forwardRef6(
820
848
  ({
@@ -855,14 +883,14 @@ var Button = forwardRef6(
855
883
  },
856
884
  buttonRef
857
885
  );
858
- const styles = useComponentStyles9("Button", { variant, size });
859
- const stateProps = useStateProps3({
886
+ const styles = useComponentStyles10("Button", { variant, size });
887
+ const stateProps = useStateProps4({
860
888
  active: isPressed,
861
889
  focusVisible: isFocusVisible,
862
890
  hover: isHovered
863
891
  });
864
- return /* @__PURE__ */ React22.createElement(
865
- Box14,
892
+ return /* @__PURE__ */ React21.createElement(
893
+ Box13,
866
894
  {
867
895
  ...mergeProps4(buttonProps, focusProps, hoverProps, props),
868
896
  ...stateProps,
@@ -887,10 +915,10 @@ var Button = forwardRef6(
887
915
  );
888
916
 
889
917
  // src/Card/Card.tsx
890
- import React23 from "react";
918
+ import React22 from "react";
891
919
  import {
892
- Box as Box15,
893
- useComponentStyles as useComponentStyles10
920
+ Box as Box14,
921
+ useComponentStyles as useComponentStyles11
894
922
  } from "@marigold/system";
895
923
  var Card = ({
896
924
  children,
@@ -905,18 +933,18 @@ var Card = ({
905
933
  pr,
906
934
  ...props
907
935
  }) => {
908
- const styles = useComponentStyles10("Card", { variant, size });
909
- return /* @__PURE__ */ React23.createElement(Box15, { ...props, css: [styles, { p, px, py, pt, pb, pl, pr }] }, children);
936
+ const styles = useComponentStyles11("Card", { variant, size });
937
+ return /* @__PURE__ */ React22.createElement(Box14, { ...props, css: [styles, { p, px, py, pt, pb, pl, pr }] }, children);
910
938
  };
911
939
 
912
940
  // src/Center/Center.tsx
913
- import React24 from "react";
941
+ import React23 from "react";
914
942
  var Center = ({
915
943
  maxWidth,
916
944
  space = "none",
917
945
  children,
918
946
  ...props
919
- }) => /* @__PURE__ */ React24.createElement(
947
+ }) => /* @__PURE__ */ React23.createElement(
920
948
  Box,
921
949
  {
922
950
  css: {
@@ -935,25 +963,25 @@ var Center = ({
935
963
  );
936
964
 
937
965
  // src/Checkbox/Checkbox.tsx
938
- import React26, { forwardRef as forwardRef7 } from "react";
966
+ import React25, { forwardRef as forwardRef7 } from "react";
939
967
  import { useCheckbox, useCheckboxGroupItem } from "@react-aria/checkbox";
940
968
  import { useFocusRing as useFocusRing3 } from "@react-aria/focus";
941
969
  import { useHover as useHover3 } from "@react-aria/interactions";
942
970
  import { useObjectRef as useObjectRef5 } from "@react-aria/utils";
943
971
  import { useToggleState } from "@react-stately/toggle";
944
972
  import {
945
- Box as Box17,
946
- useComponentStyles as useComponentStyles11,
947
- useStateProps as useStateProps5
973
+ Box as Box16,
974
+ useComponentStyles as useComponentStyles12,
975
+ useStateProps as useStateProps6
948
976
  } from "@marigold/system";
949
977
 
950
978
  // src/Checkbox/CheckboxGroup.tsx
951
- import React25, { createContext as createContext3, useContext as useContext3 } from "react";
979
+ import React24, { createContext as createContext3, useContext as useContext3 } from "react";
952
980
  import { useCheckboxGroup } from "@react-aria/checkbox";
953
981
  import {
954
982
  useCheckboxGroupState
955
983
  } from "@react-stately/checkbox";
956
- import { Box as Box16, useStateProps as useStateProps4 } from "@marigold/system";
984
+ import { Box as Box15, useStateProps as useStateProps5 } from "@marigold/system";
957
985
  var CheckboxGroupContext = createContext3(
958
986
  null
959
987
  );
@@ -975,12 +1003,12 @@ var CheckboxGroup = ({
975
1003
  };
976
1004
  const state = useCheckboxGroupState(props);
977
1005
  const { groupProps, labelProps, descriptionProps, errorMessageProps } = useCheckboxGroup(props, state);
978
- const stateProps = useStateProps4({
1006
+ const stateProps = useStateProps5({
979
1007
  disabled,
980
1008
  readOnly,
981
1009
  error
982
1010
  });
983
- return /* @__PURE__ */ React25.createElement(
1011
+ return /* @__PURE__ */ React24.createElement(
984
1012
  FieldBase,
985
1013
  {
986
1014
  label: props.label,
@@ -995,8 +1023,8 @@ var CheckboxGroup = ({
995
1023
  required,
996
1024
  ...groupProps
997
1025
  },
998
- /* @__PURE__ */ React25.createElement(
999
- Box16,
1026
+ /* @__PURE__ */ React24.createElement(
1027
+ Box15,
1000
1028
  {
1001
1029
  role: "presentation",
1002
1030
  __baseCSS: {
@@ -1005,13 +1033,13 @@ var CheckboxGroup = ({
1005
1033
  alignItems: "start"
1006
1034
  }
1007
1035
  },
1008
- /* @__PURE__ */ React25.createElement(CheckboxGroupContext.Provider, { value: { error, ...state } }, children)
1036
+ /* @__PURE__ */ React24.createElement(CheckboxGroupContext.Provider, { value: { error, ...state } }, children)
1009
1037
  )
1010
1038
  );
1011
1039
  };
1012
1040
 
1013
1041
  // src/Checkbox/Checkbox.tsx
1014
- var CheckMark = () => /* @__PURE__ */ React26.createElement("svg", { viewBox: "0 0 12 10" }, /* @__PURE__ */ React26.createElement(
1042
+ var CheckMark = () => /* @__PURE__ */ React25.createElement("svg", { viewBox: "0 0 12 10" }, /* @__PURE__ */ React25.createElement(
1015
1043
  "path",
1016
1044
  {
1017
1045
  fill: "currentColor",
@@ -1019,7 +1047,7 @@ var CheckMark = () => /* @__PURE__ */ React26.createElement("svg", { viewBox: "0
1019
1047
  d: "M11.915 1.548 10.367 0 4.045 6.315 1.557 3.827 0 5.373l4.045 4.046 7.87-7.871Z"
1020
1048
  }
1021
1049
  ));
1022
- var IndeterminateMark = () => /* @__PURE__ */ React26.createElement("svg", { width: "12", height: "3", viewBox: "0 0 12 3" }, /* @__PURE__ */ React26.createElement(
1050
+ var IndeterminateMark = () => /* @__PURE__ */ React25.createElement("svg", { width: "12", height: "3", viewBox: "0 0 12 3" }, /* @__PURE__ */ React25.createElement(
1023
1051
  "path",
1024
1052
  {
1025
1053
  fill: "currentColor",
@@ -1027,8 +1055,8 @@ var IndeterminateMark = () => /* @__PURE__ */ React26.createElement("svg", { wid
1027
1055
  d: "M11.5 2.04018H0.5V0.46875H11.5V2.04018Z"
1028
1056
  }
1029
1057
  ));
1030
- var Icon = ({ css, checked, indeterminate, ...props }) => /* @__PURE__ */ React26.createElement(
1031
- Box17,
1058
+ var Icon = ({ css, checked, indeterminate, ...props }) => /* @__PURE__ */ React25.createElement(
1059
+ Box16,
1032
1060
  {
1033
1061
  "aria-hidden": "true",
1034
1062
  __baseCSS: {
@@ -1046,7 +1074,7 @@ var Icon = ({ css, checked, indeterminate, ...props }) => /* @__PURE__ */ React2
1046
1074
  css,
1047
1075
  ...props
1048
1076
  },
1049
- indeterminate ? /* @__PURE__ */ React26.createElement(IndeterminateMark, null) : checked ? /* @__PURE__ */ React26.createElement(CheckMark, null) : null
1077
+ indeterminate ? /* @__PURE__ */ React25.createElement(IndeterminateMark, null) : checked ? /* @__PURE__ */ React25.createElement(CheckMark, null) : null
1050
1078
  );
1051
1079
  var Checkbox = forwardRef7(
1052
1080
  ({
@@ -1097,7 +1125,7 @@ var Checkbox = forwardRef7(
1097
1125
  }),
1098
1126
  inputRef
1099
1127
  );
1100
- const styles = useComponentStyles11(
1128
+ const styles = useComponentStyles12(
1101
1129
  "Checkbox",
1102
1130
  {
1103
1131
  variant,
@@ -1107,7 +1135,7 @@ var Checkbox = forwardRef7(
1107
1135
  );
1108
1136
  const { hoverProps, isHovered } = useHover3({});
1109
1137
  const { isFocusVisible, focusProps } = useFocusRing3();
1110
- const stateProps = useStateProps5({
1138
+ const stateProps = useStateProps6({
1111
1139
  hover: isHovered,
1112
1140
  focus: isFocusVisible,
1113
1141
  checked: inputProps.checked,
@@ -1116,8 +1144,8 @@ var Checkbox = forwardRef7(
1116
1144
  readOnly,
1117
1145
  indeterminate
1118
1146
  });
1119
- return /* @__PURE__ */ React26.createElement(
1120
- Box17,
1147
+ return /* @__PURE__ */ React25.createElement(
1148
+ Box16,
1121
1149
  {
1122
1150
  as: "label",
1123
1151
  __baseCSS: {
@@ -1130,8 +1158,8 @@ var Checkbox = forwardRef7(
1130
1158
  ...hoverProps,
1131
1159
  ...stateProps
1132
1160
  },
1133
- /* @__PURE__ */ React26.createElement(
1134
- Box17,
1161
+ /* @__PURE__ */ React25.createElement(
1162
+ Box16,
1135
1163
  {
1136
1164
  as: "input",
1137
1165
  ref: inputRef,
@@ -1149,7 +1177,7 @@ var Checkbox = forwardRef7(
1149
1177
  ...focusProps
1150
1178
  }
1151
1179
  ),
1152
- /* @__PURE__ */ React26.createElement(
1180
+ /* @__PURE__ */ React25.createElement(
1153
1181
  Icon,
1154
1182
  {
1155
1183
  checked: inputProps.checked,
@@ -1158,13 +1186,13 @@ var Checkbox = forwardRef7(
1158
1186
  ...stateProps
1159
1187
  }
1160
1188
  ),
1161
- props.children && /* @__PURE__ */ React26.createElement(Box17, { css: styles.label, ...stateProps }, props.children)
1189
+ props.children && /* @__PURE__ */ React25.createElement(Box16, { css: styles.label, ...stateProps }, props.children)
1162
1190
  );
1163
1191
  }
1164
1192
  );
1165
1193
 
1166
1194
  // src/Columns/Columns.tsx
1167
- import React27, {
1195
+ import React26, {
1168
1196
  Children,
1169
1197
  cloneElement,
1170
1198
  isValidElement
@@ -1184,7 +1212,7 @@ var Columns = ({
1184
1212
  )}`
1185
1213
  );
1186
1214
  }
1187
- return /* @__PURE__ */ React27.createElement(
1215
+ return /* @__PURE__ */ React26.createElement(
1188
1216
  Box,
1189
1217
  {
1190
1218
  css: {
@@ -1203,7 +1231,7 @@ var Columns = ({
1203
1231
  },
1204
1232
  ...props
1205
1233
  },
1206
- Children.map(children, (child, idx) => /* @__PURE__ */ React27.createElement(
1234
+ Children.map(children, (child, idx) => /* @__PURE__ */ React26.createElement(
1207
1235
  Box,
1208
1236
  {
1209
1237
  css: {
@@ -1217,7 +1245,7 @@ var Columns = ({
1217
1245
  };
1218
1246
 
1219
1247
  // src/Container/Container.tsx
1220
- import React28 from "react";
1248
+ import React27 from "react";
1221
1249
  import { size as tokenSize } from "@marigold/tokens";
1222
1250
  var ALIGN_ITEMS = {
1223
1251
  left: "start",
@@ -1248,7 +1276,7 @@ var Container = ({
1248
1276
  ...props
1249
1277
  }) => {
1250
1278
  const maxWidth = tokenSize[contentType][size];
1251
- return /* @__PURE__ */ React28.createElement(
1279
+ return /* @__PURE__ */ React27.createElement(
1252
1280
  Box,
1253
1281
  {
1254
1282
  css: {
@@ -1266,29 +1294,29 @@ var Container = ({
1266
1294
  };
1267
1295
 
1268
1296
  // src/Dialog/Dialog.tsx
1269
- import React33, { useRef as useRef7 } from "react";
1297
+ import React32, { useRef as useRef7 } from "react";
1270
1298
  import { useButton as useButton3 } from "@react-aria/button";
1271
1299
  import { useDialog } from "@react-aria/dialog";
1272
1300
  import {
1273
- Box as Box19,
1274
- useComponentStyles as useComponentStyles14
1301
+ Box as Box18,
1302
+ useComponentStyles as useComponentStyles15
1275
1303
  } from "@marigold/system";
1276
1304
 
1277
1305
  // src/Header/Header.tsx
1278
- import React29 from "react";
1306
+ import React28 from "react";
1279
1307
  import {
1280
- useComponentStyles as useComponentStyles12
1308
+ useComponentStyles as useComponentStyles13
1281
1309
  } from "@marigold/system";
1282
1310
  var Header = ({ children, variant, size, ...props }) => {
1283
- const styles = useComponentStyles12("Header", { variant, size });
1284
- return /* @__PURE__ */ React29.createElement(Box, { as: "header", ...props, css: styles }, children);
1311
+ const styles = useComponentStyles13("Header", { variant, size });
1312
+ return /* @__PURE__ */ React28.createElement(Box, { as: "header", ...props, css: styles }, children);
1285
1313
  };
1286
1314
 
1287
1315
  // src/Headline/Headline.tsx
1288
- import React30 from "react";
1316
+ import React29 from "react";
1289
1317
  import {
1290
- Box as Box18,
1291
- useComponentStyles as useComponentStyles13
1318
+ Box as Box17,
1319
+ useComponentStyles as useComponentStyles14
1292
1320
  } from "@marigold/system";
1293
1321
  var Headline = ({
1294
1322
  children,
@@ -1299,12 +1327,12 @@ var Headline = ({
1299
1327
  level = "1",
1300
1328
  ...props
1301
1329
  }) => {
1302
- const styles = useComponentStyles13("Headline", {
1330
+ const styles = useComponentStyles14("Headline", {
1303
1331
  variant,
1304
1332
  size: size != null ? size : `level-${level}`
1305
1333
  });
1306
- return /* @__PURE__ */ React30.createElement(
1307
- Box18,
1334
+ return /* @__PURE__ */ React29.createElement(
1335
+ Box17,
1308
1336
  {
1309
1337
  as: `h${level}`,
1310
1338
  ...props,
@@ -1320,7 +1348,7 @@ var DialogContext = createContext4({});
1320
1348
  var useDialogContext = () => useContext4(DialogContext);
1321
1349
 
1322
1350
  // src/Dialog/DialogTrigger.tsx
1323
- import React31, { useRef as useRef6 } from "react";
1351
+ import React30, { useRef as useRef6 } from "react";
1324
1352
  import { PressResponder } from "@react-aria/interactions";
1325
1353
  import { useOverlayTriggerState } from "@react-stately/overlays";
1326
1354
  var DialogTrigger = ({
@@ -1328,11 +1356,11 @@ var DialogTrigger = ({
1328
1356
  dismissable = true,
1329
1357
  keyboardDismissable = true
1330
1358
  }) => {
1331
- const [dialogTrigger, dialog] = React31.Children.toArray(children);
1359
+ const [dialogTrigger, dialog] = React30.Children.toArray(children);
1332
1360
  const dialogTriggerRef = useRef6(null);
1333
1361
  const state = useOverlayTriggerState({});
1334
1362
  const ctx = { open: state.isOpen, close: state.close };
1335
- return /* @__PURE__ */ React31.createElement(DialogContext.Provider, { value: ctx }, /* @__PURE__ */ React31.createElement(
1363
+ return /* @__PURE__ */ React30.createElement(DialogContext.Provider, { value: ctx }, /* @__PURE__ */ React30.createElement(
1336
1364
  PressResponder,
1337
1365
  {
1338
1366
  ref: dialogTriggerRef,
@@ -1340,7 +1368,7 @@ var DialogTrigger = ({
1340
1368
  onPress: state.toggle
1341
1369
  },
1342
1370
  dialogTrigger
1343
- ), /* @__PURE__ */ React31.createElement(Overlay, { open: state.isOpen }, /* @__PURE__ */ React31.createElement(
1371
+ ), /* @__PURE__ */ React30.createElement(Overlay, { open: state.isOpen }, /* @__PURE__ */ React30.createElement(
1344
1372
  Modal,
1345
1373
  {
1346
1374
  open: state.isOpen,
@@ -1354,7 +1382,7 @@ var DialogTrigger = ({
1354
1382
 
1355
1383
  // src/Dialog/DialogController.tsx
1356
1384
  import { useOverlayTriggerState as useOverlayTriggerState2 } from "@react-stately/overlays";
1357
- import React32 from "react";
1385
+ import React31 from "react";
1358
1386
  var DialogController = ({
1359
1387
  children,
1360
1388
  dismissable = true,
@@ -1367,7 +1395,7 @@ var DialogController = ({
1367
1395
  onOpenChange
1368
1396
  });
1369
1397
  const ctx = { open: state.isOpen, close: state.close };
1370
- return /* @__PURE__ */ React32.createElement(DialogContext.Provider, { value: ctx }, /* @__PURE__ */ React32.createElement(Overlay, { open: state.isOpen }, /* @__PURE__ */ React32.createElement(
1398
+ return /* @__PURE__ */ React31.createElement(DialogContext.Provider, { value: ctx }, /* @__PURE__ */ React31.createElement(Overlay, { open: state.isOpen }, /* @__PURE__ */ React31.createElement(
1371
1399
  Modal,
1372
1400
  {
1373
1401
  open: state.isOpen,
@@ -1389,8 +1417,8 @@ var CloseButton = ({ css }) => {
1389
1417
  },
1390
1418
  ref
1391
1419
  );
1392
- return /* @__PURE__ */ React33.createElement(Box19, { css: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React33.createElement(
1393
- Box19,
1420
+ return /* @__PURE__ */ React32.createElement(Box18, { css: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React32.createElement(
1421
+ Box18,
1394
1422
  {
1395
1423
  as: "button",
1396
1424
  __baseCSS: {
@@ -1406,7 +1434,7 @@ var CloseButton = ({ css }) => {
1406
1434
  ref,
1407
1435
  ...buttonProps
1408
1436
  },
1409
- /* @__PURE__ */ React33.createElement("svg", { viewBox: "0 0 20 20", fill: "currentColor" }, /* @__PURE__ */ React33.createElement(
1437
+ /* @__PURE__ */ React32.createElement("svg", { viewBox: "0 0 20 20", fill: "currentColor" }, /* @__PURE__ */ React32.createElement(
1410
1438
  "path",
1411
1439
  {
1412
1440
  fillRule: "evenodd",
@@ -1417,9 +1445,9 @@ var CloseButton = ({ css }) => {
1417
1445
  ));
1418
1446
  };
1419
1447
  var addTitleProps = (children, titleProps) => {
1420
- const childs = React33.Children.toArray(children);
1448
+ const childs = React32.Children.toArray(children);
1421
1449
  const titleIndex = childs.findIndex(
1422
- (child) => React33.isValidElement(child) && (child.type === Header || child.type === Headline)
1450
+ (child) => React32.isValidElement(child) && (child.type === Header || child.type === Headline)
1423
1451
  );
1424
1452
  if (titleIndex < 0) {
1425
1453
  console.warn(
@@ -1427,7 +1455,7 @@ var addTitleProps = (children, titleProps) => {
1427
1455
  );
1428
1456
  return children;
1429
1457
  }
1430
- const titleChild = React33.cloneElement(
1458
+ const titleChild = React32.cloneElement(
1431
1459
  childs[titleIndex],
1432
1460
  titleProps
1433
1461
  );
@@ -1444,40 +1472,40 @@ var Dialog = ({
1444
1472
  const ref = useRef7(null);
1445
1473
  const { close } = useDialogContext();
1446
1474
  const { dialogProps, titleProps } = useDialog(props, ref);
1447
- const styles = useComponentStyles14(
1475
+ const styles = useComponentStyles15(
1448
1476
  "Dialog",
1449
1477
  { variant, size },
1450
1478
  { parts: ["container", "closeButton"] }
1451
1479
  );
1452
- return /* @__PURE__ */ React33.createElement(Box19, { __baseCSS: { bg: "#fff" }, css: styles.container, ...dialogProps }, closeButton && /* @__PURE__ */ React33.createElement(CloseButton, { css: styles.closeButton }), typeof children === "function" ? children({ close, titleProps }) : props["aria-labelledby"] ? children : addTitleProps(children, titleProps));
1480
+ return /* @__PURE__ */ React32.createElement(Box18, { __baseCSS: { bg: "#fff" }, css: styles.container, ...dialogProps }, closeButton && /* @__PURE__ */ React32.createElement(CloseButton, { css: styles.closeButton }), typeof children === "function" ? children({ close, titleProps }) : props["aria-labelledby"] ? children : addTitleProps(children, titleProps));
1453
1481
  };
1454
1482
  Dialog.Trigger = DialogTrigger;
1455
1483
  Dialog.Controller = DialogController;
1456
1484
 
1457
1485
  // src/Divider/Divider.tsx
1458
- import React34 from "react";
1486
+ import React33 from "react";
1459
1487
  import { useSeparator } from "@react-aria/separator";
1460
- import { Box as Box20, useComponentStyles as useComponentStyles15 } from "@marigold/system";
1488
+ import { Box as Box19, useComponentStyles as useComponentStyles16 } from "@marigold/system";
1461
1489
  var Divider = ({ variant, ...props }) => {
1462
1490
  const { separatorProps } = useSeparator(props);
1463
- const styles = useComponentStyles15("Divider", { variant });
1464
- return /* @__PURE__ */ React34.createElement(Box20, { css: styles, ...props, ...separatorProps });
1491
+ const styles = useComponentStyles16("Divider", { variant });
1492
+ return /* @__PURE__ */ React33.createElement(Box19, { css: styles, ...props, ...separatorProps });
1465
1493
  };
1466
1494
 
1467
1495
  // src/Footer/Footer.tsx
1468
- import React35 from "react";
1496
+ import React34 from "react";
1469
1497
  import {
1470
- useComponentStyles as useComponentStyles16
1498
+ useComponentStyles as useComponentStyles17
1471
1499
  } from "@marigold/system";
1472
1500
  var Footer = ({ children, variant, size, ...props }) => {
1473
- const styles = useComponentStyles16("Footer", { variant, size });
1474
- return /* @__PURE__ */ React35.createElement(Box, { as: "footer", ...props, css: styles }, children);
1501
+ const styles = useComponentStyles17("Footer", { variant, size });
1502
+ return /* @__PURE__ */ React34.createElement(Box, { as: "footer", ...props, css: styles }, children);
1475
1503
  };
1476
1504
 
1477
1505
  // src/Image/Image.tsx
1478
- import React36 from "react";
1479
- import { Box as Box21 } from "@marigold/system";
1480
- import { useComponentStyles as useComponentStyles17 } from "@marigold/system";
1506
+ import React35 from "react";
1507
+ import { Box as Box20 } from "@marigold/system";
1508
+ import { useComponentStyles as useComponentStyles18 } from "@marigold/system";
1481
1509
  var Image = ({
1482
1510
  variant,
1483
1511
  size,
@@ -1485,14 +1513,14 @@ var Image = ({
1485
1513
  position,
1486
1514
  ...props
1487
1515
  }) => {
1488
- const styles = useComponentStyles17("Image", { variant, size });
1516
+ const styles = useComponentStyles18("Image", { variant, size });
1489
1517
  const css = {
1490
1518
  ...styles,
1491
1519
  objectFit: fit,
1492
1520
  objectPosition: position
1493
1521
  };
1494
- return /* @__PURE__ */ React36.createElement(
1495
- Box21,
1522
+ return /* @__PURE__ */ React35.createElement(
1523
+ Box20,
1496
1524
  {
1497
1525
  ...props,
1498
1526
  as: "img",
@@ -1503,7 +1531,7 @@ var Image = ({
1503
1531
  };
1504
1532
 
1505
1533
  // src/Inline/Inline.tsx
1506
- import React37 from "react";
1534
+ import React36 from "react";
1507
1535
  var ALIGNMENT_X = {
1508
1536
  left: "flex-start",
1509
1537
  center: "center",
@@ -1520,7 +1548,7 @@ var Inline = ({
1520
1548
  alignY = "center",
1521
1549
  children,
1522
1550
  ...props
1523
- }) => /* @__PURE__ */ React37.createElement(
1551
+ }) => /* @__PURE__ */ React36.createElement(
1524
1552
  Box,
1525
1553
  {
1526
1554
  css: {
@@ -1536,14 +1564,14 @@ var Inline = ({
1536
1564
  );
1537
1565
 
1538
1566
  // src/Inset/Inset.tsx
1539
- import React38 from "react";
1540
- import { Box as Box22 } from "@marigold/system";
1541
- var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ React38.createElement(Box22, { css: space ? { p: space } : { px: spaceX, py: spaceY } }, children);
1567
+ import React37 from "react";
1568
+ import { Box as Box21 } from "@marigold/system";
1569
+ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ React37.createElement(Box21, { css: space ? { p: space } : { px: spaceX, py: spaceY } }, children);
1542
1570
 
1543
1571
  // src/Link/Link.tsx
1544
- import React39, { forwardRef as forwardRef8 } from "react";
1572
+ import React38, { forwardRef as forwardRef8 } from "react";
1545
1573
  import { useLink } from "@react-aria/link";
1546
- import { useComponentStyles as useComponentStyles18 } from "@marigold/system";
1574
+ import { useComponentStyles as useComponentStyles19 } from "@marigold/system";
1547
1575
  import { useObjectRef as useObjectRef6 } from "@react-aria/utils";
1548
1576
  var Link = forwardRef8(
1549
1577
  ({
@@ -1565,8 +1593,8 @@ var Link = forwardRef8(
1565
1593
  },
1566
1594
  linkRef
1567
1595
  );
1568
- const styles = useComponentStyles18("Link", { variant, size });
1569
- return /* @__PURE__ */ React39.createElement(
1596
+ const styles = useComponentStyles19("Link", { variant, size });
1597
+ return /* @__PURE__ */ React38.createElement(
1570
1598
  Box,
1571
1599
  {
1572
1600
  as,
@@ -1582,10 +1610,10 @@ var Link = forwardRef8(
1582
1610
  );
1583
1611
 
1584
1612
  // src/List/List.tsx
1585
- import React41 from "react";
1613
+ import React40 from "react";
1586
1614
  import {
1587
- Box as Box24,
1588
- useComponentStyles as useComponentStyles19
1615
+ Box as Box23,
1616
+ useComponentStyles as useComponentStyles20
1589
1617
  } from "@marigold/system";
1590
1618
 
1591
1619
  // src/List/Context.ts
@@ -1594,11 +1622,11 @@ var ListContext = createContext5({});
1594
1622
  var useListContext = () => useContext5(ListContext);
1595
1623
 
1596
1624
  // src/List/ListItem.tsx
1597
- import React40 from "react";
1598
- import { Box as Box23 } from "@marigold/system";
1625
+ import React39 from "react";
1626
+ import { Box as Box22 } from "@marigold/system";
1599
1627
  var ListItem = ({ children, ...props }) => {
1600
1628
  const { styles } = useListContext();
1601
- return /* @__PURE__ */ React40.createElement(Box23, { ...props, as: "li", css: styles }, children);
1629
+ return /* @__PURE__ */ React39.createElement(Box22, { ...props, as: "li", css: styles }, children);
1602
1630
  };
1603
1631
 
1604
1632
  // src/List/List.tsx
@@ -1609,23 +1637,23 @@ var List = ({
1609
1637
  size,
1610
1638
  ...props
1611
1639
  }) => {
1612
- const styles = useComponentStyles19(
1640
+ const styles = useComponentStyles20(
1613
1641
  "List",
1614
1642
  { variant, size },
1615
1643
  { parts: ["ul", "ol", "item"] }
1616
1644
  );
1617
- return /* @__PURE__ */ React41.createElement(Box24, { ...props, as, css: styles[as] }, /* @__PURE__ */ React41.createElement(ListContext.Provider, { value: { styles: styles.item } }, children));
1645
+ return /* @__PURE__ */ React40.createElement(Box23, { ...props, as, css: styles[as] }, /* @__PURE__ */ React40.createElement(ListContext.Provider, { value: { styles: styles.item } }, children));
1618
1646
  };
1619
1647
  List.Item = ListItem;
1620
1648
 
1621
1649
  // src/Menu/Menu.tsx
1622
- import React44, { useRef as useRef10 } from "react";
1650
+ import React43, { useRef as useRef10 } from "react";
1623
1651
  import { useMenu } from "@react-aria/menu";
1624
1652
  import { Item as Item2 } from "@react-stately/collections";
1625
1653
  import { useTreeState } from "@react-stately/tree";
1626
1654
  import {
1627
- Box as Box26,
1628
- useComponentStyles as useComponentStyles20
1655
+ Box as Box25,
1656
+ useComponentStyles as useComponentStyles21
1629
1657
  } from "@marigold/system";
1630
1658
 
1631
1659
  // src/Menu/Context.ts
@@ -1637,7 +1665,7 @@ var MenuContext = createContext6({});
1637
1665
  var useMenuContext = () => useContext6(MenuContext);
1638
1666
 
1639
1667
  // src/Menu/MenuTrigger.tsx
1640
- import React42, { useRef as useRef8 } from "react";
1668
+ import React41, { useRef as useRef8 } from "react";
1641
1669
  import { useMenuTriggerState } from "@react-stately/menu";
1642
1670
  import { PressResponder as PressResponder2 } from "@react-aria/interactions";
1643
1671
  import { useMenuTrigger } from "@react-aria/menu";
@@ -1649,7 +1677,7 @@ var MenuTrigger = ({
1649
1677
  onOpenChange,
1650
1678
  children
1651
1679
  }) => {
1652
- const [menuTrigger, menu] = React42.Children.toArray(children);
1680
+ const [menuTrigger, menu] = React41.Children.toArray(children);
1653
1681
  const menuTriggerRef = useRef8(null);
1654
1682
  const menuRef = useObjectRef7();
1655
1683
  const state = useMenuTriggerState({
@@ -1669,7 +1697,7 @@ var MenuTrigger = ({
1669
1697
  autoFocus: state.focusStrategy
1670
1698
  };
1671
1699
  const isSmallScreen = useResponsiveValue([true, false, false], 2);
1672
- return /* @__PURE__ */ React42.createElement(MenuContext.Provider, { value: menuContext }, /* @__PURE__ */ React42.createElement(
1700
+ return /* @__PURE__ */ React41.createElement(MenuContext.Provider, { value: menuContext }, /* @__PURE__ */ React41.createElement(
1673
1701
  PressResponder2,
1674
1702
  {
1675
1703
  ...menuTriggerProps,
@@ -1677,15 +1705,15 @@ var MenuTrigger = ({
1677
1705
  isPressed: state.isOpen
1678
1706
  },
1679
1707
  menuTrigger
1680
- ), isSmallScreen ? /* @__PURE__ */ React42.createElement(Tray, { state }, menu) : /* @__PURE__ */ React42.createElement(Popover, { triggerRef: menuTriggerRef, scrollRef: menuRef, state }, menu));
1708
+ ), isSmallScreen ? /* @__PURE__ */ React41.createElement(Tray, { state }, menu) : /* @__PURE__ */ React41.createElement(Popover, { triggerRef: menuTriggerRef, scrollRef: menuRef, state }, menu));
1681
1709
  };
1682
1710
 
1683
1711
  // src/Menu/MenuItem.tsx
1684
- import React43, { useRef as useRef9 } from "react";
1712
+ import React42, { useRef as useRef9 } from "react";
1685
1713
  import { useFocusRing as useFocusRing4 } from "@react-aria/focus";
1686
1714
  import { useMenuItem } from "@react-aria/menu";
1687
1715
  import { mergeProps as mergeProps5 } from "@react-aria/utils";
1688
- import { Box as Box25, useStateProps as useStateProps6 } from "@marigold/system";
1716
+ import { Box as Box24, useStateProps as useStateProps7 } from "@marigold/system";
1689
1717
  var MenuItem = ({ item, state, onAction, css }) => {
1690
1718
  const ref = useRef9(null);
1691
1719
  const { onClose } = useMenuContext();
@@ -1699,12 +1727,12 @@ var MenuItem = ({ item, state, onAction, css }) => {
1699
1727
  ref
1700
1728
  );
1701
1729
  const { isFocusVisible, focusProps } = useFocusRing4();
1702
- const stateProps = useStateProps6({
1730
+ const stateProps = useStateProps7({
1703
1731
  focus: isFocusVisible
1704
1732
  });
1705
1733
  const { onPointerUp, ...props } = menuItemProps;
1706
- return /* @__PURE__ */ React43.createElement(
1707
- Box25,
1734
+ return /* @__PURE__ */ React42.createElement(
1735
+ Box24,
1708
1736
  {
1709
1737
  as: "li",
1710
1738
  ref,
@@ -1730,13 +1758,13 @@ var Menu = ({ variant, size, ...props }) => {
1730
1758
  const state = useTreeState({ ...ownProps, selectionMode: "none" });
1731
1759
  const { menuProps } = useMenu(ownProps, state, ref);
1732
1760
  useSyncRef({ ref: scrollRef }, ref);
1733
- const styles = useComponentStyles20(
1761
+ const styles = useComponentStyles21(
1734
1762
  "Menu",
1735
1763
  { variant, size },
1736
1764
  { parts: ["container", "item"] }
1737
1765
  );
1738
- return /* @__PURE__ */ React44.createElement(
1739
- Box26,
1766
+ return /* @__PURE__ */ React43.createElement(
1767
+ Box25,
1740
1768
  {
1741
1769
  as: "ul",
1742
1770
  ref,
@@ -1748,7 +1776,7 @@ var Menu = ({ variant, size, ...props }) => {
1748
1776
  css: styles.container,
1749
1777
  ...menuProps
1750
1778
  },
1751
- [...state.collection].map((item) => /* @__PURE__ */ React44.createElement(
1779
+ [...state.collection].map((item) => /* @__PURE__ */ React43.createElement(
1752
1780
  MenuItem,
1753
1781
  {
1754
1782
  key: item.key,
@@ -1764,15 +1792,15 @@ Menu.Trigger = MenuTrigger;
1764
1792
  Menu.Item = Item2;
1765
1793
 
1766
1794
  // src/Menu/ActionMenu.tsx
1767
- import React45 from "react";
1795
+ import React44 from "react";
1768
1796
  import { SVG as SVG4 } from "@marigold/system";
1769
1797
  var ActionMenu = (props) => {
1770
- return /* @__PURE__ */ React45.createElement(Menu.Trigger, null, /* @__PURE__ */ React45.createElement(Button, { variant: "menu", size: "small" }, /* @__PURE__ */ React45.createElement(SVG4, { viewBox: "0 0 24 24" }, /* @__PURE__ */ React45.createElement("path", { d: "M12.0117 7.47656C13.2557 7.47656 14.2734 6.45879 14.2734 5.21484C14.2734 3.9709 13.2557 2.95312 12.0117 2.95312C10.7678 2.95312 9.75 3.9709 9.75 5.21484C9.75 6.45879 10.7678 7.47656 12.0117 7.47656ZM12.0117 9.73828C10.7678 9.73828 9.75 10.7561 9.75 12C9.75 13.2439 10.7678 14.2617 12.0117 14.2617C13.2557 14.2617 14.2734 13.2439 14.2734 12C14.2734 10.7561 13.2557 9.73828 12.0117 9.73828ZM12.0117 16.5234C10.7678 16.5234 9.75 17.5412 9.75 18.7852C9.75 20.0291 10.7678 21.0469 12.0117 21.0469C13.2557 21.0469 14.2734 20.0291 14.2734 18.7852C14.2734 17.5412 13.2557 16.5234 12.0117 16.5234Z" }))), /* @__PURE__ */ React45.createElement(Menu, { ...props }));
1798
+ return /* @__PURE__ */ React44.createElement(Menu.Trigger, null, /* @__PURE__ */ React44.createElement(Button, { variant: "menu", size: "small" }, /* @__PURE__ */ React44.createElement(SVG4, { viewBox: "0 0 24 24" }, /* @__PURE__ */ React44.createElement("path", { d: "M12.0117 7.47656C13.2557 7.47656 14.2734 6.45879 14.2734 5.21484C14.2734 3.9709 13.2557 2.95312 12.0117 2.95312C10.7678 2.95312 9.75 3.9709 9.75 5.21484C9.75 6.45879 10.7678 7.47656 12.0117 7.47656ZM12.0117 9.73828C10.7678 9.73828 9.75 10.7561 9.75 12C9.75 13.2439 10.7678 14.2617 12.0117 14.2617C13.2557 14.2617 14.2734 13.2439 14.2734 12C14.2734 10.7561 13.2557 9.73828 12.0117 9.73828ZM12.0117 16.5234C10.7678 16.5234 9.75 17.5412 9.75 18.7852C9.75 20.0291 10.7678 21.0469 12.0117 21.0469C13.2557 21.0469 14.2734 20.0291 14.2734 18.7852C14.2734 17.5412 13.2557 16.5234 12.0117 16.5234Z" }))), /* @__PURE__ */ React44.createElement(Menu, { ...props }));
1771
1799
  };
1772
1800
 
1773
1801
  // src/Message/Message.tsx
1774
- import React46 from "react";
1775
- import { useComponentStyles as useComponentStyles21 } from "@marigold/system";
1802
+ import React45 from "react";
1803
+ import { useComponentStyles as useComponentStyles22 } from "@marigold/system";
1776
1804
  var Message = ({
1777
1805
  messageTitle,
1778
1806
  variant = "info",
@@ -1780,7 +1808,7 @@ var Message = ({
1780
1808
  children,
1781
1809
  ...props
1782
1810
  }) => {
1783
- const styles = useComponentStyles21(
1811
+ const styles = useComponentStyles22(
1784
1812
  "Message",
1785
1813
  {
1786
1814
  variant,
@@ -1788,14 +1816,14 @@ var Message = ({
1788
1816
  },
1789
1817
  { parts: ["container", "icon", "title", "content"] }
1790
1818
  );
1791
- var icon = /* @__PURE__ */ React46.createElement("svg", { viewBox: "0 0 24 24" }, /* @__PURE__ */ React46.createElement("path", { d: "M12 2.85938C6.95437 2.85938 2.85938 6.95437 2.85938 12C2.85938 17.0456 6.95437 21.1406 12 21.1406C17.0456 21.1406 21.1406 17.0456 21.1406 12C21.1406 6.95437 17.0456 2.85938 12 2.85938ZM12.7875 15.9374H11.2125V11.2124H12.7875V15.9374ZM12.7875 9.6375H11.2125V8.0625H12.7875V9.6375Z" }));
1819
+ var icon = /* @__PURE__ */ React45.createElement("svg", { viewBox: "0 0 24 24" }, /* @__PURE__ */ React45.createElement("path", { d: "M12 2.85938C6.95437 2.85938 2.85938 6.95437 2.85938 12C2.85938 17.0456 6.95437 21.1406 12 21.1406C17.0456 21.1406 21.1406 17.0456 21.1406 12C21.1406 6.95437 17.0456 2.85938 12 2.85938ZM12.7875 15.9374H11.2125V11.2124H12.7875V15.9374ZM12.7875 9.6375H11.2125V8.0625H12.7875V9.6375Z" }));
1792
1820
  if (variant === "warning") {
1793
- icon = /* @__PURE__ */ React46.createElement("svg", { viewBox: "0 0 24 24" }, /* @__PURE__ */ React46.createElement("path", { d: "M19.2 3H4.8C3.81 3 3.009 3.81 3.009 4.8L3 21L6.6 17.4H19.2C20.19 17.4 21 16.59 21 15.6V4.8C21 3.81 20.19 3 19.2 3ZM12.9 13.8H11.1V12H12.9V13.8ZM12.9 10.2001H11.1V6.60008H12.9V10.2001Z" }));
1821
+ icon = /* @__PURE__ */ React45.createElement("svg", { viewBox: "0 0 24 24" }, /* @__PURE__ */ React45.createElement("path", { d: "M19.2 3H4.8C3.81 3 3.009 3.81 3.009 4.8L3 21L6.6 17.4H19.2C20.19 17.4 21 16.59 21 15.6V4.8C21 3.81 20.19 3 19.2 3ZM12.9 13.8H11.1V12H12.9V13.8ZM12.9 10.2001H11.1V6.60008H12.9V10.2001Z" }));
1794
1822
  }
1795
1823
  if (variant === "error") {
1796
- icon = /* @__PURE__ */ React46.createElement("svg", { viewBox: "0 0 24 24" }, /* @__PURE__ */ React46.createElement("path", { d: "M2.25 20.3097H21.75L12 3.46875L2.25 20.3097ZM12.8864 17.2606H11.1136V15.4879H12.8864V17.2606ZM12.8864 13.7151H11.1136V10.1697H12.8864V13.7151Z" }));
1824
+ icon = /* @__PURE__ */ React45.createElement("svg", { viewBox: "0 0 24 24" }, /* @__PURE__ */ React45.createElement("path", { d: "M2.25 20.3097H21.75L12 3.46875L2.25 20.3097ZM12.8864 17.2606H11.1136V15.4879H12.8864V17.2606ZM12.8864 13.7151H11.1136V10.1697H12.8864V13.7151Z" }));
1797
1825
  }
1798
- return /* @__PURE__ */ React46.createElement(Box, { css: styles.container, ...props }, /* @__PURE__ */ React46.createElement(Box, { __baseCSS: { display: "flex", alignItems: "top", gap: 4 } }, /* @__PURE__ */ React46.createElement(
1826
+ return /* @__PURE__ */ React45.createElement(Box, { css: styles.container, ...props }, /* @__PURE__ */ React45.createElement(Box, { __baseCSS: { display: "flex", alignItems: "top", gap: 4 } }, /* @__PURE__ */ React45.createElement(
1799
1827
  Box,
1800
1828
  {
1801
1829
  role: "presentation",
@@ -1803,11 +1831,11 @@ var Message = ({
1803
1831
  css: styles.icon
1804
1832
  },
1805
1833
  icon
1806
- ), /* @__PURE__ */ React46.createElement(Box, { css: styles.title }, messageTitle)), /* @__PURE__ */ React46.createElement(Box, { css: styles.content }, children));
1834
+ ), /* @__PURE__ */ React45.createElement(Box, { css: styles.title }, messageTitle)), /* @__PURE__ */ React45.createElement(Box, { css: styles.content }, children));
1807
1835
  };
1808
1836
 
1809
1837
  // src/NumberField/NumberField.tsx
1810
- import React48, { forwardRef as forwardRef9 } from "react";
1838
+ import React47, { forwardRef as forwardRef9 } from "react";
1811
1839
  import { useFocusRing as useFocusRing5 } from "@react-aria/focus";
1812
1840
  import { useHover as useHover5 } from "@react-aria/interactions";
1813
1841
  import { useLocale } from "@react-aria/i18n";
@@ -1815,26 +1843,26 @@ import { useNumberField } from "@react-aria/numberfield";
1815
1843
  import { mergeProps as mergeProps7, useObjectRef as useObjectRef8 } from "@react-aria/utils";
1816
1844
  import { useNumberFieldState } from "@react-stately/numberfield";
1817
1845
  import {
1818
- Box as Box28,
1819
- useComponentStyles as useComponentStyles22,
1820
- useStateProps as useStateProps8
1846
+ Box as Box27,
1847
+ useComponentStyles as useComponentStyles23,
1848
+ useStateProps as useStateProps9
1821
1849
  } from "@marigold/system";
1822
1850
 
1823
1851
  // src/NumberField/StepButton.tsx
1824
- import React47, { useRef as useRef11 } from "react";
1852
+ import React46, { useRef as useRef11 } from "react";
1825
1853
  import { useButton as useButton4 } from "@react-aria/button";
1826
1854
  import { useHover as useHover4 } from "@react-aria/interactions";
1827
1855
  import { mergeProps as mergeProps6 } from "@react-aria/utils";
1828
- import { Box as Box27, useStateProps as useStateProps7 } from "@marigold/system";
1829
- var Plus = () => /* @__PURE__ */ React47.createElement(
1830
- Box27,
1856
+ import { Box as Box26, useStateProps as useStateProps8 } from "@marigold/system";
1857
+ var Plus = () => /* @__PURE__ */ React46.createElement(
1858
+ Box26,
1831
1859
  {
1832
1860
  as: "svg",
1833
1861
  __baseCSS: { width: 16, height: 16 },
1834
1862
  viewBox: "0 0 20 20",
1835
1863
  fill: "currentColor"
1836
1864
  },
1837
- /* @__PURE__ */ React47.createElement(
1865
+ /* @__PURE__ */ React46.createElement(
1838
1866
  "path",
1839
1867
  {
1840
1868
  fillRule: "evenodd",
@@ -1843,15 +1871,15 @@ var Plus = () => /* @__PURE__ */ React47.createElement(
1843
1871
  }
1844
1872
  )
1845
1873
  );
1846
- var Minus = () => /* @__PURE__ */ React47.createElement(
1847
- Box27,
1874
+ var Minus = () => /* @__PURE__ */ React46.createElement(
1875
+ Box26,
1848
1876
  {
1849
1877
  as: "svg",
1850
1878
  __baseCSS: { width: 16, height: 16 },
1851
1879
  viewBox: "0 0 20 20",
1852
1880
  fill: "currentColor"
1853
1881
  },
1854
- /* @__PURE__ */ React47.createElement(
1882
+ /* @__PURE__ */ React46.createElement(
1855
1883
  "path",
1856
1884
  {
1857
1885
  fillRule: "evenodd",
@@ -1867,14 +1895,14 @@ var StepButton = ({ direction, css, ...props }) => {
1867
1895
  ref
1868
1896
  );
1869
1897
  const { hoverProps, isHovered } = useHover4(props);
1870
- const stateProps = useStateProps7({
1898
+ const stateProps = useStateProps8({
1871
1899
  active: isPressed,
1872
1900
  hover: isHovered,
1873
1901
  disabled: props.isDisabled
1874
1902
  });
1875
1903
  const Icon3 = direction === "up" ? Plus : Minus;
1876
- return /* @__PURE__ */ React47.createElement(
1877
- Box27,
1904
+ return /* @__PURE__ */ React46.createElement(
1905
+ Box26,
1878
1906
  {
1879
1907
  __baseCSS: {
1880
1908
  display: "flex",
@@ -1886,7 +1914,7 @@ var StepButton = ({ direction, css, ...props }) => {
1886
1914
  ...mergeProps6(buttonProps, hoverProps),
1887
1915
  ...stateProps
1888
1916
  },
1889
- /* @__PURE__ */ React47.createElement(Icon3, null)
1917
+ /* @__PURE__ */ React46.createElement(Icon3, null)
1890
1918
  );
1891
1919
  };
1892
1920
 
@@ -1929,19 +1957,19 @@ var NumberField = forwardRef9(
1929
1957
  isTextInput: true,
1930
1958
  autoFocus: props.autoFocus
1931
1959
  });
1932
- const styles = useComponentStyles22(
1960
+ const styles = useComponentStyles23(
1933
1961
  "NumberField",
1934
1962
  { variant, size },
1935
1963
  { parts: ["group", "stepper"] }
1936
1964
  );
1937
- const stateProps = useStateProps8({
1965
+ const stateProps = useStateProps9({
1938
1966
  hover: isHovered,
1939
1967
  focus: isFocused,
1940
1968
  disabled,
1941
1969
  readOnly,
1942
1970
  error
1943
1971
  });
1944
- return /* @__PURE__ */ React48.createElement(
1972
+ return /* @__PURE__ */ React47.createElement(
1945
1973
  FieldBase,
1946
1974
  {
1947
1975
  label: props.label,
@@ -1957,8 +1985,8 @@ var NumberField = forwardRef9(
1957
1985
  size,
1958
1986
  width
1959
1987
  },
1960
- /* @__PURE__ */ React48.createElement(
1961
- Box28,
1988
+ /* @__PURE__ */ React47.createElement(
1989
+ Box27,
1962
1990
  {
1963
1991
  "data-group": true,
1964
1992
  __baseCSS: {
@@ -1974,7 +2002,7 @@ var NumberField = forwardRef9(
1974
2002
  ...mergeProps7(groupProps, focusProps, hoverProps),
1975
2003
  ...stateProps
1976
2004
  },
1977
- showStepper && /* @__PURE__ */ React48.createElement(
2005
+ showStepper && /* @__PURE__ */ React47.createElement(
1978
2006
  StepButton,
1979
2007
  {
1980
2008
  direction: "down",
@@ -1982,15 +2010,17 @@ var NumberField = forwardRef9(
1982
2010
  ...decrementButtonProps
1983
2011
  }
1984
2012
  ),
1985
- /* @__PURE__ */ React48.createElement(Input, { variant, size, ...stateProps }, /* @__PURE__ */ React48.createElement(
1986
- Input.Field,
2013
+ /* @__PURE__ */ React47.createElement(
2014
+ Input,
1987
2015
  {
1988
2016
  ref: inputRef,
2017
+ variant,
2018
+ size,
1989
2019
  ...inputProps,
1990
2020
  ...stateProps
1991
2021
  }
1992
- )),
1993
- showStepper && /* @__PURE__ */ React48.createElement(
2022
+ ),
2023
+ showStepper && /* @__PURE__ */ React47.createElement(
1994
2024
  StepButton,
1995
2025
  {
1996
2026
  direction: "up",
@@ -2008,7 +2038,7 @@ import { useTheme as useTheme2, ThemeProvider as ThemeProvider2 } from "@marigol
2008
2038
  import { SSRProvider } from "@react-aria/ssr";
2009
2039
 
2010
2040
  // src/Provider/MarigoldProvider.tsx
2011
- import React49 from "react";
2041
+ import React48 from "react";
2012
2042
  import { OverlayProvider } from "@react-aria/overlays";
2013
2043
  import {
2014
2044
  Global,
@@ -2031,17 +2061,17 @@ function MarigoldProvider({
2031
2061
  Nested themes with a "root" property must specify a "selector" to prevent accidentally overriding global CSS`
2032
2062
  );
2033
2063
  }
2034
- return /* @__PURE__ */ React49.createElement(ThemeProvider, { theme }, /* @__PURE__ */ React49.createElement(
2064
+ return /* @__PURE__ */ React48.createElement(ThemeProvider, { theme }, /* @__PURE__ */ React48.createElement(
2035
2065
  Global,
2036
2066
  {
2037
2067
  normalizeDocument: isTopLevel && normalizeDocument,
2038
2068
  selector
2039
2069
  }
2040
- ), isTopLevel ? /* @__PURE__ */ React49.createElement(OverlayProvider, null, children) : children);
2070
+ ), isTopLevel ? /* @__PURE__ */ React48.createElement(OverlayProvider, null, children) : children);
2041
2071
  }
2042
2072
 
2043
2073
  // src/Radio/Radio.tsx
2044
- import React51, {
2074
+ import React50, {
2045
2075
  forwardRef as forwardRef10
2046
2076
  } from "react";
2047
2077
  import { useHover as useHover6 } from "@react-aria/interactions";
@@ -2049,9 +2079,9 @@ import { useFocusRing as useFocusRing6 } from "@react-aria/focus";
2049
2079
  import { useRadio } from "@react-aria/radio";
2050
2080
  import { mergeProps as mergeProps8, useObjectRef as useObjectRef9 } from "@react-aria/utils";
2051
2081
  import {
2052
- Box as Box30,
2053
- useComponentStyles as useComponentStyles23,
2054
- useStateProps as useStateProps10
2082
+ Box as Box29,
2083
+ useComponentStyles as useComponentStyles24,
2084
+ useStateProps as useStateProps11
2055
2085
  } from "@marigold/system";
2056
2086
 
2057
2087
  // src/Radio/Context.ts
@@ -2062,10 +2092,10 @@ var RadioGroupContext = createContext7(
2062
2092
  var useRadioGroupContext = () => useContext7(RadioGroupContext);
2063
2093
 
2064
2094
  // src/Radio/RadioGroup.tsx
2065
- import React50 from "react";
2095
+ import React49 from "react";
2066
2096
  import { useRadioGroup } from "@react-aria/radio";
2067
2097
  import { useRadioGroupState } from "@react-stately/radio";
2068
- import { Box as Box29, useStateProps as useStateProps9 } from "@marigold/system";
2098
+ import { Box as Box28, useStateProps as useStateProps10 } from "@marigold/system";
2069
2099
  var RadioGroup = ({
2070
2100
  children,
2071
2101
  orientation = "vertical",
@@ -2085,12 +2115,12 @@ var RadioGroup = ({
2085
2115
  };
2086
2116
  const state = useRadioGroupState(props);
2087
2117
  const { radioGroupProps, labelProps, errorMessageProps, descriptionProps } = useRadioGroup(props, state);
2088
- const stateProps = useStateProps9({
2118
+ const stateProps = useStateProps10({
2089
2119
  disabled,
2090
2120
  readOnly,
2091
2121
  error
2092
2122
  });
2093
- return /* @__PURE__ */ React50.createElement(
2123
+ return /* @__PURE__ */ React49.createElement(
2094
2124
  FieldBase,
2095
2125
  {
2096
2126
  width,
@@ -2106,8 +2136,8 @@ var RadioGroup = ({
2106
2136
  required,
2107
2137
  ...radioGroupProps
2108
2138
  },
2109
- /* @__PURE__ */ React50.createElement(
2110
- Box29,
2139
+ /* @__PURE__ */ React49.createElement(
2140
+ Box28,
2111
2141
  {
2112
2142
  role: "presentation",
2113
2143
  "data-orientation": orientation,
@@ -2118,15 +2148,15 @@ var RadioGroup = ({
2118
2148
  gap: orientation === "vertical" ? "0.5ch" : "1.5ch"
2119
2149
  }
2120
2150
  },
2121
- /* @__PURE__ */ React50.createElement(RadioGroupContext.Provider, { value: { width, error, state } }, children)
2151
+ /* @__PURE__ */ React49.createElement(RadioGroupContext.Provider, { value: { width, error, state } }, children)
2122
2152
  )
2123
2153
  );
2124
2154
  };
2125
2155
 
2126
2156
  // src/Radio/Radio.tsx
2127
- var Dot = () => /* @__PURE__ */ React51.createElement("svg", { viewBox: "0 0 6 6" }, /* @__PURE__ */ React51.createElement("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }));
2128
- var Icon2 = ({ checked, css, ...props }) => /* @__PURE__ */ React51.createElement(
2129
- Box30,
2157
+ var Dot = () => /* @__PURE__ */ React50.createElement("svg", { viewBox: "0 0 6 6" }, /* @__PURE__ */ React50.createElement("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }));
2158
+ var Icon2 = ({ checked, css, ...props }) => /* @__PURE__ */ React50.createElement(
2159
+ Box29,
2130
2160
  {
2131
2161
  "aria-hidden": "true",
2132
2162
  __baseCSS: {
@@ -2143,7 +2173,7 @@ var Icon2 = ({ checked, css, ...props }) => /* @__PURE__ */ React51.createElemen
2143
2173
  css,
2144
2174
  ...props
2145
2175
  },
2146
- checked ? /* @__PURE__ */ React51.createElement(Dot, null) : null
2176
+ checked ? /* @__PURE__ */ React50.createElement(Dot, null) : null
2147
2177
  );
2148
2178
  var Radio = forwardRef10(
2149
2179
  ({ width, disabled, ...props }, ref) => {
@@ -2160,14 +2190,14 @@ var Radio = forwardRef10(
2160
2190
  state,
2161
2191
  inputRef
2162
2192
  );
2163
- const styles = useComponentStyles23(
2193
+ const styles = useComponentStyles24(
2164
2194
  "Radio",
2165
2195
  { variant: variant || props.variant, size: size || props.size },
2166
2196
  { parts: ["container", "label", "radio"] }
2167
2197
  );
2168
2198
  const { hoverProps, isHovered } = useHover6({ isDisabled: disabled });
2169
2199
  const { isFocusVisible, focusProps } = useFocusRing6();
2170
- const stateProps = useStateProps10({
2200
+ const stateProps = useStateProps11({
2171
2201
  hover: isHovered,
2172
2202
  focus: isFocusVisible,
2173
2203
  checked: inputProps.checked,
@@ -2175,8 +2205,8 @@ var Radio = forwardRef10(
2175
2205
  readOnly: props.readOnly,
2176
2206
  error
2177
2207
  });
2178
- return /* @__PURE__ */ React51.createElement(
2179
- Box30,
2208
+ return /* @__PURE__ */ React50.createElement(
2209
+ Box29,
2180
2210
  {
2181
2211
  as: "label",
2182
2212
  __baseCSS: {
@@ -2189,8 +2219,8 @@ var Radio = forwardRef10(
2189
2219
  css: styles.container,
2190
2220
  ...mergeProps8(hoverProps, stateProps)
2191
2221
  },
2192
- /* @__PURE__ */ React51.createElement(
2193
- Box30,
2222
+ /* @__PURE__ */ React50.createElement(
2223
+ Box29,
2194
2224
  {
2195
2225
  as: "input",
2196
2226
  ref: inputRef,
@@ -2207,15 +2237,15 @@ var Radio = forwardRef10(
2207
2237
  ...mergeProps8(inputProps, focusProps)
2208
2238
  }
2209
2239
  ),
2210
- /* @__PURE__ */ React51.createElement(Icon2, { checked: inputProps.checked, css: styles.radio, ...stateProps }),
2211
- /* @__PURE__ */ React51.createElement(Box30, { css: styles.label, ...stateProps }, props.children)
2240
+ /* @__PURE__ */ React50.createElement(Icon2, { checked: inputProps.checked, css: styles.radio, ...stateProps }),
2241
+ /* @__PURE__ */ React50.createElement(Box29, { css: styles.label, ...stateProps }, props.children)
2212
2242
  );
2213
2243
  }
2214
2244
  );
2215
2245
  Radio.Group = RadioGroup;
2216
2246
 
2217
2247
  // src/Select/Select.tsx
2218
- import React52, {
2248
+ import React51, {
2219
2249
  forwardRef as forwardRef11,
2220
2250
  useRef as useRef12
2221
2251
  } from "react";
@@ -2227,10 +2257,10 @@ import { useSelectState } from "@react-stately/select";
2227
2257
  import { Item as Item3, Section } from "@react-stately/collections";
2228
2258
  import { mergeProps as mergeProps9, useObjectRef as useObjectRef10 } from "@react-aria/utils";
2229
2259
  import {
2230
- Box as Box31,
2231
- useComponentStyles as useComponentStyles24,
2260
+ Box as Box30,
2261
+ useComponentStyles as useComponentStyles25,
2232
2262
  useResponsiveValue as useResponsiveValue2,
2233
- useStateProps as useStateProps11
2263
+ useStateProps as useStateProps12
2234
2264
  } from "@marigold/system";
2235
2265
 
2236
2266
  // src/Select/intl.ts
@@ -2244,8 +2274,8 @@ var messages = {
2244
2274
  };
2245
2275
 
2246
2276
  // src/Select/Select.tsx
2247
- var Chevron = ({ css }) => /* @__PURE__ */ React52.createElement(
2248
- Box31,
2277
+ var Chevron = ({ css }) => /* @__PURE__ */ React51.createElement(
2278
+ Box30,
2249
2279
  {
2250
2280
  as: "svg",
2251
2281
  __baseCSS: { width: 16, height: 16, fill: "none" },
@@ -2254,7 +2284,7 @@ var Chevron = ({ css }) => /* @__PURE__ */ React52.createElement(
2254
2284
  stroke: "currentColor",
2255
2285
  strokeWidth: 2
2256
2286
  },
2257
- /* @__PURE__ */ React52.createElement("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19 9l-7 7-7-7" })
2287
+ /* @__PURE__ */ React51.createElement("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19 9l-7 7-7-7" })
2258
2288
  );
2259
2289
  var Select = forwardRef11(
2260
2290
  ({
@@ -2295,18 +2325,18 @@ var Select = forwardRef11(
2295
2325
  buttonRef
2296
2326
  );
2297
2327
  const { focusProps, isFocusVisible } = useFocusRing7();
2298
- const styles = useComponentStyles24(
2328
+ const styles = useComponentStyles25(
2299
2329
  "Select",
2300
2330
  { variant, size },
2301
2331
  { parts: ["container", "button", "icon"] }
2302
2332
  );
2303
- const stateProps = useStateProps11({
2333
+ const stateProps = useStateProps12({
2304
2334
  disabled,
2305
2335
  error,
2306
2336
  focusVisible: isFocusVisible,
2307
2337
  expanded: state.isOpen
2308
2338
  });
2309
- return /* @__PURE__ */ React52.createElement(
2339
+ return /* @__PURE__ */ React51.createElement(
2310
2340
  FieldBase,
2311
2341
  {
2312
2342
  variant,
@@ -2323,7 +2353,7 @@ var Select = forwardRef11(
2323
2353
  disabled,
2324
2354
  required
2325
2355
  },
2326
- /* @__PURE__ */ React52.createElement(
2356
+ /* @__PURE__ */ React51.createElement(
2327
2357
  HiddenSelect,
2328
2358
  {
2329
2359
  state,
@@ -2333,8 +2363,8 @@ var Select = forwardRef11(
2333
2363
  isDisabled: disabled
2334
2364
  }
2335
2365
  ),
2336
- /* @__PURE__ */ React52.createElement(
2337
- Box31,
2366
+ /* @__PURE__ */ React51.createElement(
2367
+ Box30,
2338
2368
  {
2339
2369
  as: "button",
2340
2370
  __baseCSS: {
@@ -2349,8 +2379,8 @@ var Select = forwardRef11(
2349
2379
  ...mergeProps9(buttonProps, focusProps),
2350
2380
  ...stateProps
2351
2381
  },
2352
- /* @__PURE__ */ React52.createElement(
2353
- Box31,
2382
+ /* @__PURE__ */ React51.createElement(
2383
+ Box30,
2354
2384
  {
2355
2385
  css: {
2356
2386
  overflow: "hidden",
@@ -2360,9 +2390,9 @@ var Select = forwardRef11(
2360
2390
  },
2361
2391
  state.selectedItem ? state.selectedItem.rendered : props.placeholder
2362
2392
  ),
2363
- /* @__PURE__ */ React52.createElement(Chevron, { css: styles.icon })
2393
+ /* @__PURE__ */ React51.createElement(Chevron, { css: styles.icon })
2364
2394
  ),
2365
- isSmallScreen ? /* @__PURE__ */ React52.createElement(Tray, { state }, /* @__PURE__ */ React52.createElement(
2395
+ isSmallScreen ? /* @__PURE__ */ React51.createElement(Tray, { state }, /* @__PURE__ */ React51.createElement(
2366
2396
  ListBox,
2367
2397
  {
2368
2398
  ref: listboxRef,
@@ -2371,7 +2401,7 @@ var Select = forwardRef11(
2371
2401
  size,
2372
2402
  ...menuProps
2373
2403
  }
2374
- )) : /* @__PURE__ */ React52.createElement(Popover, { state, triggerRef: buttonRef, scrollRef: listboxRef }, /* @__PURE__ */ React52.createElement(
2404
+ )) : /* @__PURE__ */ React51.createElement(Popover, { state, triggerRef: buttonRef, scrollRef: listboxRef }, /* @__PURE__ */ React51.createElement(
2375
2405
  ListBox,
2376
2406
  {
2377
2407
  ref: listboxRef,
@@ -2388,18 +2418,18 @@ Select.Option = Item3;
2388
2418
  Select.Section = Section;
2389
2419
 
2390
2420
  // src/Slider/Slider.tsx
2391
- import React54, { forwardRef as forwardRef12 } from "react";
2421
+ import React53, { forwardRef as forwardRef12 } from "react";
2392
2422
  import { useSlider } from "@react-aria/slider";
2393
2423
  import { useSliderState } from "@react-stately/slider";
2394
2424
  import { useNumberFormatter } from "@react-aria/i18n";
2395
2425
  import { useObjectRef as useObjectRef11 } from "@react-aria/utils";
2396
- import { useComponentStyles as useComponentStyles25 } from "@marigold/system";
2426
+ import { useComponentStyles as useComponentStyles26 } from "@marigold/system";
2397
2427
 
2398
2428
  // src/Slider/Thumb.tsx
2399
- import React53, { useEffect } from "react";
2429
+ import React52, { useEffect } from "react";
2400
2430
  import { useSliderThumb } from "@react-aria/slider";
2401
2431
  import { mergeProps as mergeProps10 } from "@react-aria/utils";
2402
- import { useStateProps as useStateProps12 } from "@marigold/system";
2432
+ import { useStateProps as useStateProps13 } from "@marigold/system";
2403
2433
 
2404
2434
  // src/VisuallyHidden/VisuallyHidden.tsx
2405
2435
  import { VisuallyHidden } from "@react-aria/visually-hidden";
@@ -2408,10 +2438,10 @@ import { VisuallyHidden } from "@react-aria/visually-hidden";
2408
2438
  import { useFocusRing as useFocusRing8 } from "@react-aria/focus";
2409
2439
  var Thumb = ({ state, trackRef, styles, ...props }) => {
2410
2440
  const { disabled } = props;
2411
- const inputRef = React53.useRef(null);
2441
+ const inputRef = React52.useRef(null);
2412
2442
  const { isFocusVisible, focusProps, isFocused } = useFocusRing8();
2413
2443
  const focused = isFocused || isFocusVisible || state.isThumbDragging(0);
2414
- const stateProps = useStateProps12({
2444
+ const stateProps = useStateProps13({
2415
2445
  focus: focused,
2416
2446
  disabled
2417
2447
  });
@@ -2427,7 +2457,7 @@ var Thumb = ({ state, trackRef, styles, ...props }) => {
2427
2457
  useEffect(() => {
2428
2458
  state.setThumbEditable(0, !disabled);
2429
2459
  }, [disabled, state]);
2430
- return /* @__PURE__ */ React53.createElement(
2460
+ return /* @__PURE__ */ React52.createElement(
2431
2461
  Box,
2432
2462
  {
2433
2463
  __baseCSS: { top: "50%" },
@@ -2435,7 +2465,7 @@ var Thumb = ({ state, trackRef, styles, ...props }) => {
2435
2465
  ...thumbProps,
2436
2466
  ...stateProps
2437
2467
  },
2438
- /* @__PURE__ */ React53.createElement(VisuallyHidden, null, /* @__PURE__ */ React53.createElement(
2468
+ /* @__PURE__ */ React52.createElement(VisuallyHidden, null, /* @__PURE__ */ React52.createElement(
2439
2469
  Box,
2440
2470
  {
2441
2471
  as: "input",
@@ -2462,12 +2492,12 @@ var Slider = forwardRef12(
2462
2492
  state,
2463
2493
  trackRef
2464
2494
  );
2465
- const styles = useComponentStyles25(
2495
+ const styles = useComponentStyles26(
2466
2496
  "Slider",
2467
2497
  { variant, size },
2468
2498
  { parts: ["track", "thumb", "label", "output"] }
2469
2499
  );
2470
- return /* @__PURE__ */ React54.createElement(
2500
+ return /* @__PURE__ */ React53.createElement(
2471
2501
  Box,
2472
2502
  {
2473
2503
  __baseCSS: {
@@ -2478,7 +2508,7 @@ var Slider = forwardRef12(
2478
2508
  },
2479
2509
  ...groupProps
2480
2510
  },
2481
- /* @__PURE__ */ React54.createElement(Box, { __baseCSS: { display: "flex", alignSelf: "stretch" } }, props.children && /* @__PURE__ */ React54.createElement(Box, { as: "label", __baseCSS: styles.label, ...labelProps }, props.children), /* @__PURE__ */ React54.createElement(
2511
+ /* @__PURE__ */ React53.createElement(Box, { __baseCSS: { display: "flex", alignSelf: "stretch" } }, props.children && /* @__PURE__ */ React53.createElement(Box, { as: "label", __baseCSS: styles.label, ...labelProps }, props.children), /* @__PURE__ */ React53.createElement(
2482
2512
  Box,
2483
2513
  {
2484
2514
  as: "output",
@@ -2488,7 +2518,7 @@ var Slider = forwardRef12(
2488
2518
  },
2489
2519
  state.getThumbValueLabel(0)
2490
2520
  )),
2491
- /* @__PURE__ */ React54.createElement(
2521
+ /* @__PURE__ */ React53.createElement(
2492
2522
  Box,
2493
2523
  {
2494
2524
  ...trackProps,
@@ -2499,7 +2529,7 @@ var Slider = forwardRef12(
2499
2529
  cursor: props.disabled ? "not-allowed" : "pointer"
2500
2530
  }
2501
2531
  },
2502
- /* @__PURE__ */ React54.createElement(
2532
+ /* @__PURE__ */ React53.createElement(
2503
2533
  Box,
2504
2534
  {
2505
2535
  __baseCSS: {
@@ -2509,7 +2539,7 @@ var Slider = forwardRef12(
2509
2539
  css: styles.track
2510
2540
  }
2511
2541
  ),
2512
- /* @__PURE__ */ React54.createElement(
2542
+ /* @__PURE__ */ React53.createElement(
2513
2543
  Thumb,
2514
2544
  {
2515
2545
  state,
@@ -2524,13 +2554,13 @@ var Slider = forwardRef12(
2524
2554
  );
2525
2555
 
2526
2556
  // src/Split/Split.tsx
2527
- import React55 from "react";
2528
- import { Box as Box32 } from "@marigold/system";
2529
- var Split = (props) => /* @__PURE__ */ React55.createElement(Box32, { ...props, role: "separator", css: { flexGrow: 1 } });
2557
+ import React54 from "react";
2558
+ import { Box as Box31 } from "@marigold/system";
2559
+ var Split = (props) => /* @__PURE__ */ React54.createElement(Box31, { ...props, role: "separator", css: { flexGrow: 1 } });
2530
2560
 
2531
2561
  // src/Stack/Stack.tsx
2532
- import React56 from "react";
2533
- import { Box as Box33 } from "@marigold/system";
2562
+ import React55 from "react";
2563
+ import { Box as Box32 } from "@marigold/system";
2534
2564
  var ALIGNMENT_X2 = {
2535
2565
  none: "initial",
2536
2566
  left: "flex-start",
@@ -2550,8 +2580,8 @@ var Stack = ({
2550
2580
  alignY = "none",
2551
2581
  stretch = false,
2552
2582
  ...props
2553
- }) => /* @__PURE__ */ React56.createElement(
2554
- Box33,
2583
+ }) => /* @__PURE__ */ React55.createElement(
2584
+ Box32,
2555
2585
  {
2556
2586
  css: {
2557
2587
  display: "flex",
@@ -2568,14 +2598,14 @@ var Stack = ({
2568
2598
  );
2569
2599
 
2570
2600
  // src/Switch/Switch.tsx
2571
- import React57, { forwardRef as forwardRef13 } from "react";
2601
+ import React56, { forwardRef as forwardRef13 } from "react";
2572
2602
  import { useFocusRing as useFocusRing9 } from "@react-aria/focus";
2573
2603
  import { useSwitch } from "@react-aria/switch";
2574
2604
  import { useObjectRef as useObjectRef12 } from "@react-aria/utils";
2575
2605
  import { useToggleState as useToggleState2 } from "@react-stately/toggle";
2576
2606
  import {
2577
- useComponentStyles as useComponentStyles26,
2578
- useStateProps as useStateProps13
2607
+ useComponentStyles as useComponentStyles27,
2608
+ useStateProps as useStateProps14
2579
2609
  } from "@marigold/system";
2580
2610
  var Switch = forwardRef13(
2581
2611
  ({
@@ -2599,18 +2629,18 @@ var Switch = forwardRef13(
2599
2629
  const state = useToggleState2(props);
2600
2630
  const { inputProps } = useSwitch(props, state, inputRef);
2601
2631
  const { isFocusVisible, focusProps } = useFocusRing9();
2602
- const stateProps = useStateProps13({
2632
+ const stateProps = useStateProps14({
2603
2633
  checked: state.isSelected,
2604
2634
  disabled,
2605
2635
  readOnly,
2606
2636
  focus: isFocusVisible
2607
2637
  });
2608
- const styles = useComponentStyles26(
2638
+ const styles = useComponentStyles27(
2609
2639
  "Switch",
2610
2640
  { variant, size },
2611
2641
  { parts: ["container", "label", "track", "thumb"] }
2612
2642
  );
2613
- return /* @__PURE__ */ React57.createElement(
2643
+ return /* @__PURE__ */ React56.createElement(
2614
2644
  Box,
2615
2645
  {
2616
2646
  as: "label",
@@ -2624,7 +2654,7 @@ var Switch = forwardRef13(
2624
2654
  },
2625
2655
  css: styles.container
2626
2656
  },
2627
- /* @__PURE__ */ React57.createElement(
2657
+ /* @__PURE__ */ React56.createElement(
2628
2658
  Box,
2629
2659
  {
2630
2660
  as: "input",
@@ -2643,8 +2673,8 @@ var Switch = forwardRef13(
2643
2673
  ...focusProps
2644
2674
  }
2645
2675
  ),
2646
- props.children && /* @__PURE__ */ React57.createElement(Box, { css: styles.label }, props.children),
2647
- /* @__PURE__ */ React57.createElement(
2676
+ props.children && /* @__PURE__ */ React56.createElement(Box, { css: styles.label }, props.children),
2677
+ /* @__PURE__ */ React56.createElement(
2648
2678
  Box,
2649
2679
  {
2650
2680
  __baseCSS: {
@@ -2658,7 +2688,7 @@ var Switch = forwardRef13(
2658
2688
  css: styles.track,
2659
2689
  ...stateProps
2660
2690
  },
2661
- /* @__PURE__ */ React57.createElement(
2691
+ /* @__PURE__ */ React56.createElement(
2662
2692
  Box,
2663
2693
  {
2664
2694
  __baseCSS: {
@@ -2687,7 +2717,7 @@ var Switch = forwardRef13(
2687
2717
  );
2688
2718
 
2689
2719
  // src/Table/Table.tsx
2690
- import React66, { useRef as useRef19 } from "react";
2720
+ import React65, { useRef as useRef19 } from "react";
2691
2721
  import { useTable } from "@react-aria/table";
2692
2722
  import {
2693
2723
  Cell,
@@ -2698,8 +2728,8 @@ import {
2698
2728
  useTableState
2699
2729
  } from "@react-stately/table";
2700
2730
  import {
2701
- Box as Box39,
2702
- useComponentStyles as useComponentStyles28
2731
+ Box as Box38,
2732
+ useComponentStyles as useComponentStyles29
2703
2733
  } from "@marigold/system";
2704
2734
 
2705
2735
  // src/Table/Context.tsx
@@ -2708,19 +2738,19 @@ var TableContext = createContext8({});
2708
2738
  var useTableContext = () => useContext8(TableContext);
2709
2739
 
2710
2740
  // src/Table/TableBody.tsx
2711
- import React58 from "react";
2741
+ import React57 from "react";
2712
2742
  import { useTableRowGroup } from "@react-aria/table";
2713
2743
  var TableBody = ({ children }) => {
2714
2744
  const { rowGroupProps } = useTableRowGroup();
2715
- return /* @__PURE__ */ React58.createElement("tbody", { ...rowGroupProps }, children);
2745
+ return /* @__PURE__ */ React57.createElement("tbody", { ...rowGroupProps }, children);
2716
2746
  };
2717
2747
 
2718
2748
  // src/Table/TableCell.tsx
2719
- import React59, { useRef as useRef13 } from "react";
2749
+ import React58, { useRef as useRef13 } from "react";
2720
2750
  import { useTableCell } from "@react-aria/table";
2721
2751
  import { useFocusRing as useFocusRing10 } from "@react-aria/focus";
2722
2752
  import { mergeProps as mergeProps11 } from "@react-aria/utils";
2723
- import { Box as Box34, useStateProps as useStateProps14 } from "@marigold/system";
2753
+ import { Box as Box33, useStateProps as useStateProps15 } from "@marigold/system";
2724
2754
  var TableCell = ({ cell }) => {
2725
2755
  const ref = useRef13(null);
2726
2756
  const { interactive, state, styles } = useTableContext();
@@ -2742,9 +2772,9 @@ var TableCell = ({ cell }) => {
2742
2772
  onPointerDown: (e) => e.stopPropagation()
2743
2773
  };
2744
2774
  const { focusProps, isFocusVisible } = useFocusRing10();
2745
- const stateProps = useStateProps14({ disabled, focusVisible: isFocusVisible });
2746
- return /* @__PURE__ */ React59.createElement(
2747
- Box34,
2775
+ const stateProps = useStateProps15({ disabled, focusVisible: isFocusVisible });
2776
+ return /* @__PURE__ */ React58.createElement(
2777
+ Box33,
2748
2778
  {
2749
2779
  as: "td",
2750
2780
  ref,
@@ -2757,11 +2787,11 @@ var TableCell = ({ cell }) => {
2757
2787
  };
2758
2788
 
2759
2789
  // src/Table/TableCheckboxCell.tsx
2760
- import React60, { useRef as useRef14 } from "react";
2790
+ import React59, { useRef as useRef14 } from "react";
2761
2791
  import { useTableCell as useTableCell2, useTableSelectionCheckbox } from "@react-aria/table";
2762
2792
  import { useFocusRing as useFocusRing11 } from "@react-aria/focus";
2763
2793
  import { mergeProps as mergeProps12 } from "@react-aria/utils";
2764
- import { Box as Box35, useStateProps as useStateProps15 } from "@marigold/system";
2794
+ import { Box as Box34, useStateProps as useStateProps16 } from "@marigold/system";
2765
2795
 
2766
2796
  // src/Table/utils.ts
2767
2797
  var mapCheckboxProps = ({
@@ -2799,9 +2829,9 @@ var TableCheckboxCell = ({ cell }) => {
2799
2829
  useTableSelectionCheckbox({ key: cell.parentKey }, state)
2800
2830
  );
2801
2831
  const { focusProps, isFocusVisible } = useFocusRing11();
2802
- const stateProps = useStateProps15({ disabled, focusVisible: isFocusVisible });
2803
- return /* @__PURE__ */ React60.createElement(
2804
- Box35,
2832
+ const stateProps = useStateProps16({ disabled, focusVisible: isFocusVisible });
2833
+ return /* @__PURE__ */ React59.createElement(
2834
+ Box34,
2805
2835
  {
2806
2836
  as: "td",
2807
2837
  ref,
@@ -2814,22 +2844,22 @@ var TableCheckboxCell = ({ cell }) => {
2814
2844
  ...mergeProps12(gridCellProps, focusProps),
2815
2845
  ...stateProps
2816
2846
  },
2817
- /* @__PURE__ */ React60.createElement(Checkbox, { ...checkboxProps })
2847
+ /* @__PURE__ */ React59.createElement(Checkbox, { ...checkboxProps })
2818
2848
  );
2819
2849
  };
2820
2850
 
2821
2851
  // src/Table/TableColumnHeader.tsx
2822
- import React61, { useRef as useRef15 } from "react";
2852
+ import React60, { useRef as useRef15 } from "react";
2823
2853
  import { useFocusRing as useFocusRing12 } from "@react-aria/focus";
2824
2854
  import { useHover as useHover7 } from "@react-aria/interactions";
2825
2855
  import { useTableColumnHeader } from "@react-aria/table";
2826
2856
  import { mergeProps as mergeProps13 } from "@react-aria/utils";
2827
- import { Box as Box36, useStateProps as useStateProps16 } from "@marigold/system";
2857
+ import { Box as Box35, useStateProps as useStateProps17 } from "@marigold/system";
2828
2858
  var SortIndicator = ({
2829
2859
  direction = "ascending",
2830
2860
  visible
2831
- }) => /* @__PURE__ */ React61.createElement(
2832
- Box36,
2861
+ }) => /* @__PURE__ */ React60.createElement(
2862
+ Box35,
2833
2863
  {
2834
2864
  as: "span",
2835
2865
  role: "presentation",
@@ -2855,12 +2885,12 @@ var TableColumnHeader = ({ column }) => {
2855
2885
  );
2856
2886
  const { hoverProps, isHovered } = useHover7({});
2857
2887
  const { focusProps, isFocusVisible } = useFocusRing12();
2858
- const stateProps = useStateProps16({
2888
+ const stateProps = useStateProps17({
2859
2889
  hover: isHovered,
2860
2890
  focusVisible: isFocusVisible
2861
2891
  });
2862
- return /* @__PURE__ */ React61.createElement(
2863
- Box36,
2892
+ return /* @__PURE__ */ React60.createElement(
2893
+ Box35,
2864
2894
  {
2865
2895
  as: "th",
2866
2896
  colSpan: column.colspan,
@@ -2871,7 +2901,7 @@ var TableColumnHeader = ({ column }) => {
2871
2901
  ...stateProps
2872
2902
  },
2873
2903
  column.rendered,
2874
- column.props.allowsSorting && /* @__PURE__ */ React61.createElement(
2904
+ column.props.allowsSorting && /* @__PURE__ */ React60.createElement(
2875
2905
  SortIndicator,
2876
2906
  {
2877
2907
  direction: (_a = state.sortDescriptor) == null ? void 0 : _a.direction,
@@ -2882,35 +2912,35 @@ var TableColumnHeader = ({ column }) => {
2882
2912
  };
2883
2913
 
2884
2914
  // src/Table/TableHeader.tsx
2885
- import React62 from "react";
2915
+ import React61 from "react";
2886
2916
  import { useTableRowGroup as useTableRowGroup2 } from "@react-aria/table";
2887
2917
  var TableHeader = ({ children }) => {
2888
2918
  const { rowGroupProps } = useTableRowGroup2();
2889
- return /* @__PURE__ */ React62.createElement("thead", { ...rowGroupProps }, children);
2919
+ return /* @__PURE__ */ React61.createElement("thead", { ...rowGroupProps }, children);
2890
2920
  };
2891
2921
 
2892
2922
  // src/Table/TableHeaderRow.tsx
2893
- import React63, { useRef as useRef16 } from "react";
2923
+ import React62, { useRef as useRef16 } from "react";
2894
2924
  import { useTableHeaderRow } from "@react-aria/table";
2895
2925
  var TableHeaderRow = ({ item, children }) => {
2896
2926
  const { state } = useTableContext();
2897
2927
  const ref = useRef16(null);
2898
2928
  const { rowProps } = useTableHeaderRow({ node: item }, state, ref);
2899
- return /* @__PURE__ */ React63.createElement("tr", { ...rowProps, ref }, children);
2929
+ return /* @__PURE__ */ React62.createElement("tr", { ...rowProps, ref }, children);
2900
2930
  };
2901
2931
 
2902
2932
  // src/Table/TableRow.tsx
2903
- import React64, { useRef as useRef17 } from "react";
2933
+ import React63, { useRef as useRef17 } from "react";
2904
2934
  import { useFocusRing as useFocusRing13 } from "@react-aria/focus";
2905
2935
  import { useHover as useHover8 } from "@react-aria/interactions";
2906
2936
  import { useTableRow } from "@react-aria/table";
2907
2937
  import { mergeProps as mergeProps14 } from "@react-aria/utils";
2908
- import { Box as Box37, useComponentStyles as useComponentStyles27, useStateProps as useStateProps17 } from "@marigold/system";
2938
+ import { Box as Box36, useComponentStyles as useComponentStyles28, useStateProps as useStateProps18 } from "@marigold/system";
2909
2939
  var TableRow = ({ children, row }) => {
2910
2940
  const ref = useRef17(null);
2911
2941
  const { interactive, state, ...ctx } = useTableContext();
2912
2942
  const { variant, size } = row.props;
2913
- const { row: styles } = useComponentStyles27(
2943
+ const { row: styles } = useComponentStyles28(
2914
2944
  "Table",
2915
2945
  { variant: variant || ctx.variant, size: size || ctx.size },
2916
2946
  { parts: ["row"] }
@@ -2928,15 +2958,15 @@ var TableRow = ({ children, row }) => {
2928
2958
  const { hoverProps, isHovered } = useHover8({
2929
2959
  isDisabled: disabled || !interactive
2930
2960
  });
2931
- const stateProps = useStateProps17({
2961
+ const stateProps = useStateProps18({
2932
2962
  disabled,
2933
2963
  selected,
2934
2964
  hover: isHovered,
2935
2965
  focusVisible: isFocusVisible,
2936
2966
  active: isPressed
2937
2967
  });
2938
- return /* @__PURE__ */ React64.createElement(
2939
- Box37,
2968
+ return /* @__PURE__ */ React63.createElement(
2969
+ Box36,
2940
2970
  {
2941
2971
  as: "tr",
2942
2972
  ref,
@@ -2952,7 +2982,7 @@ var TableRow = ({ children, row }) => {
2952
2982
  };
2953
2983
 
2954
2984
  // src/Table/TableSelectAllCell.tsx
2955
- import React65, { useRef as useRef18 } from "react";
2985
+ import React64, { useRef as useRef18 } from "react";
2956
2986
  import { useFocusRing as useFocusRing14 } from "@react-aria/focus";
2957
2987
  import { useHover as useHover9 } from "@react-aria/interactions";
2958
2988
  import {
@@ -2960,7 +2990,7 @@ import {
2960
2990
  useTableSelectAllCheckbox
2961
2991
  } from "@react-aria/table";
2962
2992
  import { mergeProps as mergeProps15 } from "@react-aria/utils";
2963
- import { Box as Box38, useStateProps as useStateProps18 } from "@marigold/system";
2993
+ import { Box as Box37, useStateProps as useStateProps19 } from "@marigold/system";
2964
2994
  var TableSelectAllCell = ({ column }) => {
2965
2995
  const ref = useRef18(null);
2966
2996
  const { state, styles } = useTableContext();
@@ -2974,12 +3004,12 @@ var TableSelectAllCell = ({ column }) => {
2974
3004
  const { checkboxProps } = mapCheckboxProps(useTableSelectAllCheckbox(state));
2975
3005
  const { hoverProps, isHovered } = useHover9({});
2976
3006
  const { focusProps, isFocusVisible } = useFocusRing14();
2977
- const stateProps = useStateProps18({
3007
+ const stateProps = useStateProps19({
2978
3008
  hover: isHovered,
2979
3009
  focusVisible: isFocusVisible
2980
3010
  });
2981
- return /* @__PURE__ */ React65.createElement(
2982
- Box38,
3011
+ return /* @__PURE__ */ React64.createElement(
3012
+ Box37,
2983
3013
  {
2984
3014
  as: "th",
2985
3015
  ref,
@@ -2992,7 +3022,7 @@ var TableSelectAllCell = ({ column }) => {
2992
3022
  ...mergeProps15(columnHeaderProps, hoverProps, focusProps),
2993
3023
  ...stateProps
2994
3024
  },
2995
- /* @__PURE__ */ React65.createElement(Checkbox, { ...checkboxProps })
3025
+ /* @__PURE__ */ React64.createElement(Checkbox, { ...checkboxProps })
2996
3026
  );
2997
3027
  };
2998
3028
 
@@ -3013,14 +3043,14 @@ var Table = ({
3013
3043
  props.selectionBehavior !== "replace"
3014
3044
  });
3015
3045
  const { gridProps } = useTable(props, state, tableRef);
3016
- const styles = useComponentStyles28(
3046
+ const styles = useComponentStyles29(
3017
3047
  "Table",
3018
3048
  { variant, size },
3019
3049
  { parts: ["table", "header", "row", "cell"] }
3020
3050
  );
3021
3051
  const { collection } = state;
3022
- return /* @__PURE__ */ React66.createElement(TableContext.Provider, { value: { state, interactive, styles } }, /* @__PURE__ */ React66.createElement(
3023
- Box39,
3052
+ return /* @__PURE__ */ React65.createElement(TableContext.Provider, { value: { state, interactive, styles } }, /* @__PURE__ */ React65.createElement(
3053
+ Box38,
3024
3054
  {
3025
3055
  as: "table",
3026
3056
  ref: tableRef,
@@ -3034,16 +3064,16 @@ var Table = ({
3034
3064
  css: styles.table,
3035
3065
  ...gridProps
3036
3066
  },
3037
- /* @__PURE__ */ React66.createElement(TableHeader, null, collection.headerRows.map((headerRow) => /* @__PURE__ */ React66.createElement(TableHeaderRow, { key: headerRow.key, item: headerRow }, [...headerRow.childNodes].map(
3067
+ /* @__PURE__ */ React65.createElement(TableHeader, null, collection.headerRows.map((headerRow) => /* @__PURE__ */ React65.createElement(TableHeaderRow, { key: headerRow.key, item: headerRow }, [...headerRow.childNodes].map(
3038
3068
  (column) => {
3039
3069
  var _a;
3040
- return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ React66.createElement(TableSelectAllCell, { key: column.key, column }) : /* @__PURE__ */ React66.createElement(TableColumnHeader, { key: column.key, column });
3070
+ return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ React65.createElement(TableSelectAllCell, { key: column.key, column }) : /* @__PURE__ */ React65.createElement(TableColumnHeader, { key: column.key, column });
3041
3071
  }
3042
3072
  )))),
3043
- /* @__PURE__ */ React66.createElement(TableBody, null, [...collection.body.childNodes].map((row) => /* @__PURE__ */ React66.createElement(TableRow, { key: row.key, row }, [...row.childNodes].map(
3073
+ /* @__PURE__ */ React65.createElement(TableBody, null, [...collection.body.childNodes].map((row) => /* @__PURE__ */ React65.createElement(TableRow, { key: row.key, row }, [...row.childNodes].map(
3044
3074
  (cell) => {
3045
3075
  var _a;
3046
- return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ React66.createElement(TableCheckboxCell, { key: cell.key, cell }) : /* @__PURE__ */ React66.createElement(TableCell, { key: cell.key, cell });
3076
+ return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ React65.createElement(TableCheckboxCell, { key: cell.key, cell }) : /* @__PURE__ */ React65.createElement(TableCell, { key: cell.key, cell });
3047
3077
  }
3048
3078
  ))))
3049
3079
  ));
@@ -3055,11 +3085,11 @@ Table.Header = Header2;
3055
3085
  Table.Row = Row;
3056
3086
 
3057
3087
  // src/Text/Text.tsx
3058
- import React67 from "react";
3088
+ import React66 from "react";
3059
3089
  import {
3060
- useComponentStyles as useComponentStyles29
3090
+ useComponentStyles as useComponentStyles30
3061
3091
  } from "@marigold/system";
3062
- import { Box as Box40 } from "@marigold/system";
3092
+ import { Box as Box39 } from "@marigold/system";
3063
3093
  var Text = ({
3064
3094
  variant,
3065
3095
  size,
@@ -3067,18 +3097,19 @@ var Text = ({
3067
3097
  align,
3068
3098
  color,
3069
3099
  fontSize,
3100
+ fontStyle,
3070
3101
  fontWeight,
3071
3102
  cursor,
3072
3103
  outline,
3073
3104
  children,
3074
3105
  ...props
3075
3106
  }) => {
3076
- const styles = useComponentStyles29("Text", {
3107
+ const styles = useComponentStyles30("Text", {
3077
3108
  variant,
3078
3109
  size
3079
3110
  });
3080
- return /* @__PURE__ */ React67.createElement(
3081
- Box40,
3111
+ return /* @__PURE__ */ React66.createElement(
3112
+ Box39,
3082
3113
  {
3083
3114
  as: "p",
3084
3115
  ...props,
@@ -3090,6 +3121,7 @@ var Text = ({
3090
3121
  cursor,
3091
3122
  outline,
3092
3123
  fontSize,
3124
+ fontStyle,
3093
3125
  fontWeight,
3094
3126
  textAlign: align
3095
3127
  }
@@ -3100,15 +3132,15 @@ var Text = ({
3100
3132
  };
3101
3133
 
3102
3134
  // src/TextArea/TextArea.tsx
3103
- import React68, { forwardRef as forwardRef14 } from "react";
3135
+ import React67, { forwardRef as forwardRef14 } from "react";
3104
3136
  import { useHover as useHover10 } from "@react-aria/interactions";
3105
3137
  import { useFocusRing as useFocusRing15 } from "@react-aria/focus";
3106
3138
  import { useTextField } from "@react-aria/textfield";
3107
3139
  import { useObjectRef as useObjectRef13 } from "@react-aria/utils";
3108
3140
  import {
3109
- Box as Box41,
3110
- useComponentStyles as useComponentStyles30,
3111
- useStateProps as useStateProps19
3141
+ Box as Box40,
3142
+ useComponentStyles as useComponentStyles31,
3143
+ useStateProps as useStateProps20
3112
3144
  } from "@marigold/system";
3113
3145
  var TextArea = forwardRef14(
3114
3146
  ({
@@ -3137,15 +3169,15 @@ var TextArea = forwardRef14(
3137
3169
  );
3138
3170
  const { hoverProps, isHovered } = useHover10({});
3139
3171
  const { focusProps, isFocusVisible } = useFocusRing15();
3140
- const stateProps = useStateProps19({
3172
+ const stateProps = useStateProps20({
3141
3173
  hover: isHovered,
3142
3174
  focus: isFocusVisible,
3143
3175
  disabled,
3144
3176
  readOnly,
3145
3177
  error
3146
3178
  });
3147
- const styles = useComponentStyles30("TextArea", { variant, size });
3148
- return /* @__PURE__ */ React68.createElement(
3179
+ const styles = useComponentStyles31("TextArea", { variant, size });
3180
+ return /* @__PURE__ */ React67.createElement(
3149
3181
  FieldBase,
3150
3182
  {
3151
3183
  label,
@@ -3161,8 +3193,8 @@ var TextArea = forwardRef14(
3161
3193
  size,
3162
3194
  width
3163
3195
  },
3164
- /* @__PURE__ */ React68.createElement(
3165
- Box41,
3196
+ /* @__PURE__ */ React67.createElement(
3197
+ Box40,
3166
3198
  {
3167
3199
  as: "textarea",
3168
3200
  css: styles,
@@ -3179,12 +3211,12 @@ var TextArea = forwardRef14(
3179
3211
  );
3180
3212
 
3181
3213
  // src/TextField/TextField.tsx
3182
- import React69, { forwardRef as forwardRef15 } from "react";
3214
+ import React68, { forwardRef as forwardRef15 } from "react";
3183
3215
  import { useHover as useHover11 } from "@react-aria/interactions";
3184
3216
  import { useFocusRing as useFocusRing16 } from "@react-aria/focus";
3185
3217
  import { useTextField as useTextField2 } from "@react-aria/textfield";
3186
3218
  import { useObjectRef as useObjectRef14 } from "@react-aria/utils";
3187
- import { useStateProps as useStateProps20 } from "@marigold/system";
3219
+ import { useStateProps as useStateProps21 } from "@marigold/system";
3188
3220
  var TextField = forwardRef15(
3189
3221
  ({ variant, size, width, disabled, required, readOnly, error, ...props }, ref) => {
3190
3222
  const { label, description, errorMessage, autoFocus } = props;
@@ -3204,14 +3236,14 @@ var TextField = forwardRef15(
3204
3236
  isTextInput: true,
3205
3237
  autoFocus
3206
3238
  });
3207
- const stateProps = useStateProps20({
3239
+ const stateProps = useStateProps21({
3208
3240
  hover: isHovered,
3209
3241
  focus: isFocused,
3210
3242
  disabled,
3211
3243
  readOnly,
3212
3244
  error
3213
3245
  });
3214
- return /* @__PURE__ */ React69.createElement(
3246
+ return /* @__PURE__ */ React68.createElement(
3215
3247
  FieldBase,
3216
3248
  {
3217
3249
  label,
@@ -3227,8 +3259,8 @@ var TextField = forwardRef15(
3227
3259
  size,
3228
3260
  width
3229
3261
  },
3230
- /* @__PURE__ */ React69.createElement(Input, { ...stateProps }, /* @__PURE__ */ React69.createElement(
3231
- Input.Field,
3262
+ /* @__PURE__ */ React68.createElement(
3263
+ Input,
3232
3264
  {
3233
3265
  ref: inputRef,
3234
3266
  variant,
@@ -3238,13 +3270,13 @@ var TextField = forwardRef15(
3238
3270
  ...hoverProps,
3239
3271
  ...stateProps
3240
3272
  }
3241
- ))
3273
+ )
3242
3274
  );
3243
3275
  }
3244
3276
  );
3245
3277
 
3246
3278
  // src/Tiles/Tiles.tsx
3247
- import React70 from "react";
3279
+ import React69 from "react";
3248
3280
  import { useTheme as useTheme3 } from "@marigold/system";
3249
3281
  var Tiles = ({
3250
3282
  space = "none",
@@ -3260,7 +3292,7 @@ var Tiles = ({
3260
3292
  if (stretch) {
3261
3293
  column = `minmax(${column}, 1fr)`;
3262
3294
  }
3263
- return /* @__PURE__ */ React70.createElement(
3295
+ return /* @__PURE__ */ React69.createElement(
3264
3296
  Box,
3265
3297
  {
3266
3298
  ...props,
@@ -3280,11 +3312,11 @@ var Tiles = ({
3280
3312
  };
3281
3313
 
3282
3314
  // src/Tooltip/Tooltip.tsx
3283
- import React72 from "react";
3315
+ import React71 from "react";
3284
3316
  import { useTooltip } from "@react-aria/tooltip";
3285
3317
  import {
3286
- Box as Box42,
3287
- useComponentStyles as useComponentStyles31
3318
+ Box as Box41,
3319
+ useComponentStyles as useComponentStyles32
3288
3320
  } from "@marigold/system";
3289
3321
 
3290
3322
  // src/Tooltip/Context.ts
@@ -3293,7 +3325,7 @@ var TooltipContext = createContext9({});
3293
3325
  var useTooltipContext = () => useContext9(TooltipContext);
3294
3326
 
3295
3327
  // src/Tooltip/TooltipTrigger.tsx
3296
- import React71, { useRef as useRef20 } from "react";
3328
+ import React70, { useRef as useRef20 } from "react";
3297
3329
  import { FocusableProvider } from "@react-aria/focus";
3298
3330
  import { useOverlayPosition } from "@react-aria/overlays";
3299
3331
  import { useTooltipTrigger } from "@react-aria/tooltip";
@@ -3306,7 +3338,7 @@ var TooltipTrigger = ({
3306
3338
  children,
3307
3339
  ...rest
3308
3340
  }) => {
3309
- const [tooltipTrigger, tooltip] = React71.Children.toArray(children);
3341
+ const [tooltipTrigger, tooltip] = React70.Children.toArray(children);
3310
3342
  const props = {
3311
3343
  ...rest,
3312
3344
  isDisabled: disabled,
@@ -3334,7 +3366,7 @@ var TooltipTrigger = ({
3334
3366
  isOpen: state.isOpen,
3335
3367
  overlayRef
3336
3368
  });
3337
- return /* @__PURE__ */ React71.createElement(FocusableProvider, { ref: tooltipTriggerRef, ...triggerProps }, tooltipTrigger, /* @__PURE__ */ React71.createElement(
3369
+ return /* @__PURE__ */ React70.createElement(FocusableProvider, { ref: tooltipTriggerRef, ...triggerProps }, tooltipTrigger, /* @__PURE__ */ React70.createElement(
3338
3370
  TooltipContext.Provider,
3339
3371
  {
3340
3372
  value: {
@@ -3346,7 +3378,7 @@ var TooltipTrigger = ({
3346
3378
  ...positionProps
3347
3379
  }
3348
3380
  },
3349
- /* @__PURE__ */ React71.createElement(Overlay, { open: state.isOpen }, tooltip)
3381
+ /* @__PURE__ */ React70.createElement(Overlay, { open: state.isOpen }, tooltip)
3350
3382
  ));
3351
3383
  };
3352
3384
 
@@ -3354,13 +3386,13 @@ var TooltipTrigger = ({
3354
3386
  var Tooltip = ({ children, variant, size }) => {
3355
3387
  const { arrowProps, state, overlayRef, placement, ...rest } = useTooltipContext();
3356
3388
  const { tooltipProps } = useTooltip({}, state);
3357
- const styles = useComponentStyles31(
3389
+ const styles = useComponentStyles32(
3358
3390
  "Tooltip",
3359
3391
  { variant, size },
3360
3392
  { parts: ["container", "arrow"] }
3361
3393
  );
3362
- return /* @__PURE__ */ React72.createElement(
3363
- Box42,
3394
+ return /* @__PURE__ */ React71.createElement(
3395
+ Box41,
3364
3396
  {
3365
3397
  ...tooltipProps,
3366
3398
  ...rest,
@@ -3368,9 +3400,9 @@ var Tooltip = ({ children, variant, size }) => {
3368
3400
  css: styles.container,
3369
3401
  "data-placement": placement
3370
3402
  },
3371
- /* @__PURE__ */ React72.createElement("div", null, children),
3372
- /* @__PURE__ */ React72.createElement(
3373
- Box42,
3403
+ /* @__PURE__ */ React71.createElement("div", null, children),
3404
+ /* @__PURE__ */ React71.createElement(
3405
+ Box41,
3374
3406
  {
3375
3407
  ...arrowProps,
3376
3408
  __baseCSS: {
@@ -3391,8 +3423,8 @@ Tooltip.Trigger = TooltipTrigger;
3391
3423
 
3392
3424
  // src/XLoader/XLoader.tsx
3393
3425
  import { SVG as SVG5 } from "@marigold/system";
3394
- import React73, { forwardRef as forwardRef16 } from "react";
3395
- var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React73.createElement(
3426
+ import React72, { forwardRef as forwardRef16 } from "react";
3427
+ var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React72.createElement(
3396
3428
  SVG5,
3397
3429
  {
3398
3430
  id: "XLoader",
@@ -3402,14 +3434,14 @@ var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React73.createElement
3402
3434
  ...props,
3403
3435
  ...ref
3404
3436
  },
3405
- /* @__PURE__ */ React73.createElement("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
3406
- /* @__PURE__ */ React73.createElement(
3437
+ /* @__PURE__ */ React72.createElement("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
3438
+ /* @__PURE__ */ React72.createElement(
3407
3439
  "path",
3408
3440
  {
3409
3441
  id: "XMLID_5_",
3410
3442
  d: "M124.3 12.8h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z"
3411
3443
  },
3412
- /* @__PURE__ */ React73.createElement(
3444
+ /* @__PURE__ */ React72.createElement(
3413
3445
  "animate",
3414
3446
  {
3415
3447
  attributeName: "opacity",
@@ -3421,13 +3453,13 @@ var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React73.createElement
3421
3453
  }
3422
3454
  )
3423
3455
  ),
3424
- /* @__PURE__ */ React73.createElement(
3456
+ /* @__PURE__ */ React72.createElement(
3425
3457
  "path",
3426
3458
  {
3427
3459
  id: "XMLID_18_",
3428
3460
  d: "M115.9 24.4h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z"
3429
3461
  },
3430
- /* @__PURE__ */ React73.createElement(
3462
+ /* @__PURE__ */ React72.createElement(
3431
3463
  "animate",
3432
3464
  {
3433
3465
  attributeName: "opacity",
@@ -3439,13 +3471,13 @@ var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React73.createElement
3439
3471
  }
3440
3472
  )
3441
3473
  ),
3442
- /* @__PURE__ */ React73.createElement(
3474
+ /* @__PURE__ */ React72.createElement(
3443
3475
  "path",
3444
3476
  {
3445
3477
  id: "XMLID_19_",
3446
3478
  d: "M107.5 35.9h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z"
3447
3479
  },
3448
- /* @__PURE__ */ React73.createElement(
3480
+ /* @__PURE__ */ React72.createElement(
3449
3481
  "animate",
3450
3482
  {
3451
3483
  attributeName: "opacity",
@@ -3457,13 +3489,13 @@ var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React73.createElement
3457
3489
  }
3458
3490
  )
3459
3491
  ),
3460
- /* @__PURE__ */ React73.createElement(
3492
+ /* @__PURE__ */ React72.createElement(
3461
3493
  "path",
3462
3494
  {
3463
3495
  id: "XMLID_20_",
3464
3496
  d: "M99.1 47.5h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z"
3465
3497
  },
3466
- /* @__PURE__ */ React73.createElement(
3498
+ /* @__PURE__ */ React72.createElement(
3467
3499
  "animate",
3468
3500
  {
3469
3501
  attributeName: "opacity",
@@ -3475,13 +3507,13 @@ var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React73.createElement
3475
3507
  }
3476
3508
  )
3477
3509
  ),
3478
- /* @__PURE__ */ React73.createElement(
3510
+ /* @__PURE__ */ React72.createElement(
3479
3511
  "path",
3480
3512
  {
3481
3513
  id: "XMLID_21_",
3482
3514
  d: "M90.7 59H90c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.8-2.2 4.9-4.9 4.9z"
3483
3515
  },
3484
- /* @__PURE__ */ React73.createElement(
3516
+ /* @__PURE__ */ React72.createElement(
3485
3517
  "animate",
3486
3518
  {
3487
3519
  attributeName: "opacity",
@@ -3493,13 +3525,13 @@ var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React73.createElement
3493
3525
  }
3494
3526
  )
3495
3527
  ),
3496
- /* @__PURE__ */ React73.createElement(
3528
+ /* @__PURE__ */ React72.createElement(
3497
3529
  "path",
3498
3530
  {
3499
3531
  id: "XMLID_22_",
3500
3532
  d: "M68 89.8h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.8c0 2.6-2.2 4.8-4.9 4.8z"
3501
3533
  },
3502
- /* @__PURE__ */ React73.createElement(
3534
+ /* @__PURE__ */ React72.createElement(
3503
3535
  "animate",
3504
3536
  {
3505
3537
  attributeName: "opacity",
@@ -3511,13 +3543,13 @@ var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React73.createElement
3511
3543
  }
3512
3544
  )
3513
3545
  ),
3514
- /* @__PURE__ */ React73.createElement(
3546
+ /* @__PURE__ */ React72.createElement(
3515
3547
  "path",
3516
3548
  {
3517
3549
  id: "XMLID_23_",
3518
3550
  d: "M59.6 101.4h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z"
3519
3551
  },
3520
- /* @__PURE__ */ React73.createElement(
3552
+ /* @__PURE__ */ React72.createElement(
3521
3553
  "animate",
3522
3554
  {
3523
3555
  attributeName: "opacity",
@@ -3529,13 +3561,13 @@ var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React73.createElement
3529
3561
  }
3530
3562
  )
3531
3563
  ),
3532
- /* @__PURE__ */ React73.createElement(
3564
+ /* @__PURE__ */ React72.createElement(
3533
3565
  "path",
3534
3566
  {
3535
3567
  id: "XMLID_24_",
3536
3568
  d: "M51.2 112.9h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.8-2.2 4.9-4.9 4.9z"
3537
3569
  },
3538
- /* @__PURE__ */ React73.createElement(
3570
+ /* @__PURE__ */ React72.createElement(
3539
3571
  "animate",
3540
3572
  {
3541
3573
  attributeName: "opacity",
@@ -3547,13 +3579,13 @@ var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React73.createElement
3547
3579
  }
3548
3580
  )
3549
3581
  ),
3550
- /* @__PURE__ */ React73.createElement(
3582
+ /* @__PURE__ */ React72.createElement(
3551
3583
  "path",
3552
3584
  {
3553
3585
  id: "XMLID_25_",
3554
3586
  d: "M42.8 124.5h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.7-2.2 4.9-4.9 4.9z"
3555
3587
  },
3556
- /* @__PURE__ */ React73.createElement(
3588
+ /* @__PURE__ */ React72.createElement(
3557
3589
  "animate",
3558
3590
  {
3559
3591
  attributeName: "opacity",
@@ -3565,13 +3597,13 @@ var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React73.createElement
3565
3597
  }
3566
3598
  )
3567
3599
  ),
3568
- /* @__PURE__ */ React73.createElement(
3600
+ /* @__PURE__ */ React72.createElement(
3569
3601
  "path",
3570
3602
  {
3571
3603
  id: "XMLID_26_",
3572
3604
  d: "M34.4 136h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.7-2.2 4.9-4.9 4.9z"
3573
3605
  },
3574
- /* @__PURE__ */ React73.createElement(
3606
+ /* @__PURE__ */ React72.createElement(
3575
3607
  "animate",
3576
3608
  {
3577
3609
  attributeName: "opacity",
@@ -3583,13 +3615,13 @@ var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React73.createElement
3583
3615
  }
3584
3616
  )
3585
3617
  ),
3586
- /* @__PURE__ */ React73.createElement(
3618
+ /* @__PURE__ */ React72.createElement(
3587
3619
  "path",
3588
3620
  {
3589
3621
  id: "XMLID_27_",
3590
3622
  d: "M26 147.6h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.8-2.2 4.9-4.9 4.9z"
3591
3623
  },
3592
- /* @__PURE__ */ React73.createElement(
3624
+ /* @__PURE__ */ React72.createElement(
3593
3625
  "animate",
3594
3626
  {
3595
3627
  attributeName: "opacity",
@@ -3630,7 +3662,6 @@ export {
3630
3662
  Image,
3631
3663
  Inline,
3632
3664
  Input,
3633
- InputField,
3634
3665
  Inset,
3635
3666
  Label,
3636
3667
  Link,