@marigold/components 4.1.5 → 4.2.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
@@ -241,33 +241,36 @@ var Center = ({
241
241
  }, children);
242
242
 
243
243
  // src/Checkbox/Checkbox.tsx
244
- import React11, { forwardRef as forwardRef2 } from "react";
244
+ import React13, { forwardRef as forwardRef2 } from "react";
245
245
  import { useCheckbox, useCheckboxGroupItem } from "@react-aria/checkbox";
246
246
  import { useFocusRing as useFocusRing2 } from "@react-aria/focus";
247
247
  import { useHover as useHover2 } from "@react-aria/interactions";
248
248
  import { useObjectRef as useObjectRef2 } from "@react-aria/utils";
249
249
  import { useToggleState } from "@react-stately/toggle";
250
250
  import {
251
- Box as Box7,
252
- useComponentStyles as useComponentStyles7,
253
- useStateProps as useStateProps2
251
+ Box as Box9,
252
+ useComponentStyles as useComponentStyles8,
253
+ useStateProps as useStateProps3
254
254
  } from "@marigold/system";
255
255
 
256
256
  // src/Checkbox/CheckboxGroup.tsx
257
- import React10, { createContext, useContext } from "react";
257
+ import React12, { createContext, useContext } from "react";
258
258
  import { useCheckboxGroup } from "@react-aria/checkbox";
259
259
  import {
260
260
  useCheckboxGroupState
261
261
  } from "@react-stately/checkbox";
262
+ import { Box as Box8, useStateProps as useStateProps2 } from "@marigold/system";
263
+
264
+ // src/FieldBase/FieldBase.tsx
265
+ import React11 from "react";
262
266
  import {
263
- Box as Box6,
264
- useComponentStyles as useComponentStyles6
267
+ Box as Box7,
268
+ useComponentStyles as useComponentStyles7
265
269
  } from "@marigold/system";
266
270
 
267
271
  // src/Label/Label.tsx
268
272
  import React9 from "react";
269
- import { Required } from "@marigold/icons";
270
- import { Box as Box5, useComponentStyles as useComponentStyles5 } from "@marigold/system";
273
+ import { Box as Box5, SVG, useComponentStyles as useComponentStyles5 } from "@marigold/system";
271
274
  var Label = ({
272
275
  as = "label",
273
276
  required,
@@ -281,12 +284,105 @@ var Label = ({
281
284
  ...props,
282
285
  as,
283
286
  "aria-required": required,
287
+ __baseCSS: { display: "flex" },
284
288
  css: styles
285
- }, children, required && /* @__PURE__ */ React9.createElement(Required, {
289
+ }, children, required && /* @__PURE__ */ React9.createElement(SVG, {
290
+ viewBox: "0 0 24 24",
286
291
  role: "presentation",
287
292
  size: 16,
288
293
  fill: "error"
289
- }));
294
+ }, /* @__PURE__ */ React9.createElement("path", {
295
+ d: "M10.8 3.84003H13.2V9.85259L18.1543 7.01815L19.3461 9.10132L14.3584 11.9549L19.3371 14.7999L18.1463 16.8836L13.2 14.0572V20.16H10.8V13.9907L5.76116 16.8735L4.56935 14.7903L9.5232 11.9561L4.56 9.12003L5.75073 7.03624L10.8 9.92154V3.84003Z"
296
+ })));
297
+ };
298
+
299
+ // src/HelpText/HelpText.tsx
300
+ import React10 from "react";
301
+ import {
302
+ Box as Box6,
303
+ SVG as SVG2,
304
+ useComponentStyles as useComponentStyles6
305
+ } from "@marigold/system";
306
+ var HelpText = ({
307
+ variant,
308
+ size,
309
+ disabled,
310
+ description,
311
+ descriptionProps,
312
+ error,
313
+ errorMessage,
314
+ errorMessageProps,
315
+ ...props
316
+ }) => {
317
+ var _a;
318
+ const hasErrorMessage = errorMessage && error;
319
+ const styles = useComponentStyles6(
320
+ "HelpText",
321
+ { variant, size },
322
+ { parts: ["container", "icon"] }
323
+ );
324
+ return /* @__PURE__ */ React10.createElement(Box6, {
325
+ ...hasErrorMessage ? errorMessageProps : descriptionProps,
326
+ ...props,
327
+ __baseCSS: { display: "flex", alignItems: "center", gap: 4 },
328
+ css: styles.container
329
+ }, hasErrorMessage ? /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement(SVG2, {
330
+ viewBox: "0 0 24 24",
331
+ role: "presentation",
332
+ size: ((_a = styles == null ? void 0 : styles.icon) == null ? void 0 : _a.size) || 16
333
+ }, /* @__PURE__ */ React10.createElement("path", {
334
+ 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"
335
+ })), errorMessage) : /* @__PURE__ */ React10.createElement(React10.Fragment, null, description));
336
+ };
337
+
338
+ // src/FieldBase/FieldBase.tsx
339
+ var FieldBase = ({
340
+ children,
341
+ variant,
342
+ size,
343
+ width = "100%",
344
+ disabled,
345
+ required,
346
+ label,
347
+ labelProps,
348
+ description,
349
+ descriptionProps,
350
+ error,
351
+ errorMessage,
352
+ errorMessageProps,
353
+ stateProps,
354
+ ...props
355
+ }) => {
356
+ const hasHelpText = !!description || errorMessage && error;
357
+ const style = useComponentStyles7("Field", { variant, size });
358
+ return /* @__PURE__ */ React11.createElement(Box7, {
359
+ ...props,
360
+ __baseCSS: {
361
+ display: "flex",
362
+ flexDirection: "column",
363
+ width,
364
+ position: "relative"
365
+ },
366
+ css: style
367
+ }, label && /* @__PURE__ */ React11.createElement(Label, {
368
+ required,
369
+ variant,
370
+ size,
371
+ ...labelProps,
372
+ ...stateProps
373
+ }, label), /* @__PURE__ */ React11.createElement(Box7, {
374
+ __baseCSS: { display: "flex", flexDirection: "column" }
375
+ }, children, hasHelpText && /* @__PURE__ */ React11.createElement(HelpText, {
376
+ ...stateProps,
377
+ variant,
378
+ size,
379
+ disabled,
380
+ description,
381
+ descriptionProps,
382
+ error,
383
+ errorMessage,
384
+ errorMessageProps
385
+ })));
290
386
  };
291
387
 
292
388
  // src/Checkbox/CheckboxGroup.tsx
@@ -296,8 +392,6 @@ var CheckboxGroupContext = createContext(
296
392
  var useCheckboxGroupContext = () => useContext(CheckboxGroupContext);
297
393
  var CheckboxGroup = ({
298
394
  children,
299
- variant,
300
- size,
301
395
  required,
302
396
  disabled,
303
397
  readOnly,
@@ -312,50 +406,54 @@ var CheckboxGroup = ({
312
406
  ...rest
313
407
  };
314
408
  const state = useCheckboxGroupState(props);
315
- const { groupProps, labelProps } = useCheckboxGroup(props, state);
316
- const styles = useComponentStyles6(
317
- "CheckboxGroup",
318
- { variant, size },
319
- { parts: ["container", "group"] }
320
- );
321
- return /* @__PURE__ */ React10.createElement(Box6, {
322
- ...groupProps,
323
- css: styles.container
324
- }, props.label && /* @__PURE__ */ React10.createElement(Label, {
325
- as: "span",
409
+ const { groupProps, labelProps, descriptionProps, errorMessageProps } = useCheckboxGroup(props, state);
410
+ const stateProps = useStateProps2({
411
+ disabled,
412
+ readOnly,
413
+ error
414
+ });
415
+ return /* @__PURE__ */ React12.createElement(FieldBase, {
416
+ label: props.label,
417
+ labelProps: { as: "span", ...labelProps },
418
+ description: props.description,
419
+ descriptionProps,
420
+ error,
421
+ errorMessage: props.errorMessage,
422
+ errorMessageProps,
423
+ disabled,
424
+ stateProps,
326
425
  required,
327
- ...labelProps
328
- }, props.label), /* @__PURE__ */ React10.createElement(Box6, {
426
+ ...groupProps
427
+ }, /* @__PURE__ */ React12.createElement(Box8, {
329
428
  role: "presentation",
330
429
  __baseCSS: {
331
430
  display: "flex",
332
431
  flexDirection: "column",
333
432
  alignItems: "start"
334
- },
335
- css: styles.group
336
- }, /* @__PURE__ */ React10.createElement(CheckboxGroupContext.Provider, {
337
- value: { variant, size, error, ...state }
433
+ }
434
+ }, /* @__PURE__ */ React12.createElement(CheckboxGroupContext.Provider, {
435
+ value: { error, ...state }
338
436
  }, children)));
339
437
  };
340
438
 
341
439
  // src/Checkbox/Checkbox.tsx
342
- var CheckMark = () => /* @__PURE__ */ React11.createElement("svg", {
440
+ var CheckMark = () => /* @__PURE__ */ React13.createElement("svg", {
343
441
  viewBox: "0 0 12 10"
344
- }, /* @__PURE__ */ React11.createElement("path", {
442
+ }, /* @__PURE__ */ React13.createElement("path", {
345
443
  fill: "currentColor",
346
444
  stroke: "none",
347
445
  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"
348
446
  }));
349
- var IndeterminateMark = () => /* @__PURE__ */ React11.createElement("svg", {
447
+ var IndeterminateMark = () => /* @__PURE__ */ React13.createElement("svg", {
350
448
  width: "12",
351
449
  height: "3",
352
450
  viewBox: "0 0 12 3"
353
- }, /* @__PURE__ */ React11.createElement("path", {
451
+ }, /* @__PURE__ */ React13.createElement("path", {
354
452
  fill: "currentColor",
355
453
  stroke: "none",
356
454
  d: "M11.5 2.04018H0.5V0.46875H11.5V2.04018Z"
357
455
  }));
358
- var Icon = ({ css, checked, indeterminate, ...props }) => /* @__PURE__ */ React11.createElement(Box7, {
456
+ var Icon = ({ css, checked, indeterminate, ...props }) => /* @__PURE__ */ React13.createElement(Box9, {
359
457
  "aria-hidden": "true",
360
458
  __baseCSS: {
361
459
  flex: "0 0 16px",
@@ -371,7 +469,7 @@ var Icon = ({ css, checked, indeterminate, ...props }) => /* @__PURE__ */ React1
371
469
  },
372
470
  css,
373
471
  ...props
374
- }, indeterminate ? /* @__PURE__ */ React11.createElement(IndeterminateMark, null) : checked ? /* @__PURE__ */ React11.createElement(CheckMark, null) : null);
472
+ }, indeterminate ? /* @__PURE__ */ React13.createElement(IndeterminateMark, null) : checked ? /* @__PURE__ */ React13.createElement(CheckMark, null) : null);
375
473
  var Checkbox = forwardRef2(
376
474
  ({
377
475
  size,
@@ -417,17 +515,17 @@ var Checkbox = forwardRef2(
417
515
  }),
418
516
  inputRef
419
517
  );
420
- const styles = useComponentStyles7(
518
+ const styles = useComponentStyles8(
421
519
  "Checkbox",
422
520
  {
423
- variant: (groupState == null ? void 0 : groupState.variant) || variant,
424
- size: (groupState == null ? void 0 : groupState.size) || size
521
+ variant,
522
+ size
425
523
  },
426
524
  { parts: ["container", "label", "checkbox"] }
427
525
  );
428
526
  const { hoverProps, isHovered } = useHover2({});
429
527
  const { isFocusVisible, focusProps } = useFocusRing2();
430
- const stateProps = useStateProps2({
528
+ const stateProps = useStateProps3({
431
529
  hover: isHovered,
432
530
  focus: isFocusVisible,
433
531
  checked: inputProps.checked,
@@ -436,7 +534,7 @@ var Checkbox = forwardRef2(
436
534
  readOnly,
437
535
  indeterminate
438
536
  });
439
- return /* @__PURE__ */ React11.createElement(Box7, {
537
+ return /* @__PURE__ */ React13.createElement(Box9, {
440
538
  as: "label",
441
539
  __baseCSS: {
442
540
  display: "flex",
@@ -447,7 +545,7 @@ var Checkbox = forwardRef2(
447
545
  css: styles.container,
448
546
  ...hoverProps,
449
547
  ...stateProps
450
- }, /* @__PURE__ */ React11.createElement(Box7, {
548
+ }, /* @__PURE__ */ React13.createElement(Box9, {
451
549
  as: "input",
452
550
  ref: inputRef,
453
551
  css: {
@@ -462,12 +560,12 @@ var Checkbox = forwardRef2(
462
560
  },
463
561
  ...inputProps,
464
562
  ...focusProps
465
- }), /* @__PURE__ */ React11.createElement(Icon, {
563
+ }), /* @__PURE__ */ React13.createElement(Icon, {
466
564
  checked: inputProps.checked,
467
565
  indeterminate,
468
566
  css: styles.checkbox,
469
567
  ...stateProps
470
- }), props.children && /* @__PURE__ */ React11.createElement(Box7, {
568
+ }), props.children && /* @__PURE__ */ React13.createElement(Box9, {
471
569
  css: styles.label,
472
570
  ...stateProps
473
571
  }, props.children));
@@ -475,7 +573,7 @@ var Checkbox = forwardRef2(
475
573
  );
476
574
 
477
575
  // src/Columns/Columns.tsx
478
- import React12, {
576
+ import React14, {
479
577
  Children,
480
578
  cloneElement,
481
579
  isValidElement
@@ -495,7 +593,7 @@ var Columns = ({
495
593
  )}`
496
594
  );
497
595
  }
498
- return /* @__PURE__ */ React12.createElement(Box, {
596
+ return /* @__PURE__ */ React14.createElement(Box, {
499
597
  css: {
500
598
  display: "flex",
501
599
  flexWrap: "wrap",
@@ -507,7 +605,7 @@ var Columns = ({
507
605
  }
508
606
  },
509
607
  ...props
510
- }, Children.map(children, (child, idx) => /* @__PURE__ */ React12.createElement(Box, {
608
+ }, Children.map(children, (child, idx) => /* @__PURE__ */ React14.createElement(Box, {
511
609
  css: {
512
610
  flexGrow: columns[idx]
513
611
  }
@@ -515,7 +613,7 @@ var Columns = ({
515
613
  };
516
614
 
517
615
  // src/Container/Container.tsx
518
- import React13 from "react";
616
+ import React15 from "react";
519
617
  import { size as tokenSize } from "@marigold/tokens";
520
618
  var ALIGN_ITEMS = {
521
619
  left: "start",
@@ -546,7 +644,7 @@ var Container = ({
546
644
  ...props
547
645
  }) => {
548
646
  const maxWidth = tokenSize[contentType][size];
549
- return /* @__PURE__ */ React13.createElement(Box, {
647
+ return /* @__PURE__ */ React15.createElement(Box, {
550
648
  display: "grid",
551
649
  css: {
552
650
  gridTemplateColumns: ALIGN[align](maxWidth).gridTemplateColumns,
@@ -560,22 +658,22 @@ var Container = ({
560
658
  };
561
659
 
562
660
  // src/Dialog/Dialog.tsx
563
- import React21, { useRef as useRef3 } from "react";
661
+ import React24, { useRef as useRef3 } from "react";
564
662
  import { useButton as useButton2 } from "@react-aria/button";
565
663
  import { useDialog } from "@react-aria/dialog";
566
664
  import {
567
- Box as Box10,
568
- useComponentStyles as useComponentStyles11
665
+ Box as Box13,
666
+ useComponentStyles as useComponentStyles12
569
667
  } from "@marigold/system";
570
668
 
571
669
  // src/Header/Header.tsx
572
- import React14 from "react";
670
+ import React16 from "react";
573
671
  import {
574
- useComponentStyles as useComponentStyles8
672
+ useComponentStyles as useComponentStyles9
575
673
  } from "@marigold/system";
576
674
  var Header = ({ children, variant, size, ...props }) => {
577
- const styles = useComponentStyles8("Header", { variant, size });
578
- return /* @__PURE__ */ React14.createElement(Box, {
675
+ const styles = useComponentStyles9("Header", { variant, size });
676
+ return /* @__PURE__ */ React16.createElement(Box, {
579
677
  as: "header",
580
678
  ...props,
581
679
  css: styles
@@ -583,10 +681,10 @@ var Header = ({ children, variant, size, ...props }) => {
583
681
  };
584
682
 
585
683
  // src/Headline/Headline.tsx
586
- import React15 from "react";
684
+ import React17 from "react";
587
685
  import {
588
- Box as Box8,
589
- useComponentStyles as useComponentStyles9
686
+ Box as Box10,
687
+ useComponentStyles as useComponentStyles10
590
688
  } from "@marigold/system";
591
689
  var Headline = ({
592
690
  children,
@@ -597,11 +695,11 @@ var Headline = ({
597
695
  level = "1",
598
696
  ...props
599
697
  }) => {
600
- const styles = useComponentStyles9("Headline", {
698
+ const styles = useComponentStyles10("Headline", {
601
699
  variant,
602
700
  size: size != null ? size : `level-${level}`
603
701
  });
604
- return /* @__PURE__ */ React15.createElement(Box8, {
702
+ return /* @__PURE__ */ React17.createElement(Box10, {
605
703
  as: `h${level}`,
606
704
  ...props,
607
705
  css: [styles, { color, textAlign: align }]
@@ -614,22 +712,22 @@ var DialogContext = createContext2({});
614
712
  var useDialogContext = () => useContext2(DialogContext);
615
713
 
616
714
  // src/Dialog/DialogTrigger.tsx
617
- import React20, { useRef as useRef2 } from "react";
715
+ import React23, { useRef as useRef2 } from "react";
618
716
  import { PressResponder } from "@react-aria/interactions";
619
717
  import { useOverlayTriggerState } from "@react-stately/overlays";
620
718
 
621
719
  // src/Overlay/Modal.tsx
622
- import React17, { forwardRef as forwardRef3 } from "react";
720
+ import React19, { forwardRef as forwardRef3 } from "react";
623
721
  import { FocusScope } from "@react-aria/focus";
624
722
  import { useModal, useOverlay, usePreventScroll } from "@react-aria/overlays";
625
723
  import { mergeProps as mergeProps2, useObjectRef as useObjectRef3 } from "@react-aria/utils";
626
724
 
627
725
  // src/Overlay/Underlay.tsx
628
- import React16 from "react";
629
- import { Box as Box9, useComponentStyles as useComponentStyles10 } from "@marigold/system";
726
+ import React18 from "react";
727
+ import { Box as Box11, useComponentStyles as useComponentStyles11 } from "@marigold/system";
630
728
  var Underlay = ({ size, variant, ...props }) => {
631
- const styles = useComponentStyles10("Underlay", { size, variant });
632
- return /* @__PURE__ */ React16.createElement(Box9, {
729
+ const styles = useComponentStyles11("Underlay", { size, variant });
730
+ return /* @__PURE__ */ React18.createElement(Box11, {
633
731
  __baseCSS: {
634
732
  position: "fixed",
635
733
  inset: 0,
@@ -655,14 +753,14 @@ var Modal = forwardRef3(
655
753
  );
656
754
  usePreventScroll();
657
755
  const { modalProps } = useModal({});
658
- return /* @__PURE__ */ React17.createElement(FocusScope, {
756
+ return /* @__PURE__ */ React19.createElement(FocusScope, {
659
757
  contain: true,
660
758
  restoreFocus: true,
661
759
  autoFocus: true
662
- }, /* @__PURE__ */ React17.createElement(Underlay, {
760
+ }, /* @__PURE__ */ React19.createElement(Underlay, {
663
761
  ...underlayProps,
664
762
  variant: "modal"
665
- }), /* @__PURE__ */ React17.createElement("div", {
763
+ }), /* @__PURE__ */ React19.createElement("div", {
666
764
  style: {
667
765
  display: "flex",
668
766
  alignItems: "center",
@@ -674,14 +772,14 @@ var Modal = forwardRef3(
674
772
  },
675
773
  ref: modalRef,
676
774
  ...mergeProps2(props, overlayProps, modalProps)
677
- }, /* @__PURE__ */ React17.createElement("div", {
775
+ }, /* @__PURE__ */ React19.createElement("div", {
678
776
  style: { pointerEvents: "auto" }
679
777
  }, children)));
680
778
  }
681
779
  );
682
780
 
683
781
  // src/Overlay/Overlay.tsx
684
- import React18, { useRef } from "react";
782
+ import React20, { useRef } from "react";
685
783
  import { Transition } from "react-transition-group";
686
784
  import {
687
785
  Overlay as ReactAriaOverlay
@@ -704,14 +802,14 @@ var Overlay = ({ children, container, open }) => {
704
802
  if (!mountOverlay) {
705
803
  return null;
706
804
  }
707
- return /* @__PURE__ */ React18.createElement(ReactAriaOverlay, {
805
+ return /* @__PURE__ */ React20.createElement(ReactAriaOverlay, {
708
806
  portalContainer: container
709
- }, /* @__PURE__ */ React18.createElement(Transition, {
807
+ }, /* @__PURE__ */ React20.createElement(Transition, {
710
808
  nodeRef,
711
809
  timeout: duration,
712
810
  in: open,
713
811
  appear: true
714
- }, (state) => /* @__PURE__ */ React18.createElement("div", {
812
+ }, (state) => /* @__PURE__ */ React20.createElement("div", {
715
813
  ref: nodeRef,
716
814
  "data-testid": "overlay",
717
815
  style: {
@@ -722,7 +820,7 @@ var Overlay = ({ children, container, open }) => {
722
820
  };
723
821
 
724
822
  // src/Overlay/Popover.tsx
725
- import React19, { forwardRef as forwardRef4 } from "react";
823
+ import React21, { forwardRef as forwardRef4 } from "react";
726
824
  import {
727
825
  DismissButton,
728
826
  usePopover
@@ -733,10 +831,10 @@ var Popover = forwardRef4(
733
831
  (props, ref) => {
734
832
  const popoverRef = useObjectRef4(ref);
735
833
  let { children, state, ...otherProps } = props;
736
- return /* @__PURE__ */ React19.createElement(Overlay, {
834
+ return /* @__PURE__ */ React21.createElement(Overlay, {
737
835
  open: state.isOpen,
738
836
  ...otherProps
739
- }, /* @__PURE__ */ React19.createElement(PopoverWrapper, {
837
+ }, /* @__PURE__ */ React21.createElement(PopoverWrapper, {
740
838
  ref: popoverRef,
741
839
  ...props
742
840
  }, children));
@@ -760,11 +858,11 @@ var PopoverWrapper = forwardRef4(
760
858
  },
761
859
  state
762
860
  );
763
- return /* @__PURE__ */ React19.createElement(FocusScope2, {
861
+ return /* @__PURE__ */ React21.createElement(FocusScope2, {
764
862
  restoreFocus: true
765
- }, !isNonModal && /* @__PURE__ */ React19.createElement(Underlay, {
863
+ }, !isNonModal && /* @__PURE__ */ React21.createElement(Underlay, {
766
864
  ...underlayProps
767
- }), /* @__PURE__ */ React19.createElement("div", {
865
+ }), /* @__PURE__ */ React21.createElement("div", {
768
866
  ...popoverProps,
769
867
  style: {
770
868
  ...popoverProps.style,
@@ -772,33 +870,85 @@ var PopoverWrapper = forwardRef4(
772
870
  },
773
871
  ref,
774
872
  role: "presentation"
775
- }, !isNonModal && /* @__PURE__ */ React19.createElement(DismissButton, {
873
+ }, !isNonModal && /* @__PURE__ */ React21.createElement(DismissButton, {
776
874
  onDismiss: state.close
777
- }), children, /* @__PURE__ */ React19.createElement(DismissButton, {
875
+ }), children, /* @__PURE__ */ React21.createElement(DismissButton, {
778
876
  onDismiss: state.close
779
877
  })));
780
878
  }
781
879
  );
782
880
 
881
+ // src/Overlay/Tray.tsx
882
+ import React22 from "react";
883
+ import { Box as Box12 } from "@marigold/system";
884
+ import { FocusScope as FocusScope3 } from "@react-aria/focus";
885
+ import {
886
+ DismissButton as DismissButton2,
887
+ useModalOverlay
888
+ } from "@react-aria/overlays";
889
+ import { useObjectRef as useObjectRef5 } from "@react-aria/utils";
890
+ import { forwardRef as forwardRef5 } from "react";
891
+ var Tray = forwardRef5(
892
+ ({ state, children, ...props }, ref) => {
893
+ const trayRef = useObjectRef5(ref);
894
+ return /* @__PURE__ */ React22.createElement(Overlay, {
895
+ open: state.isOpen
896
+ }, /* @__PURE__ */ React22.createElement(TrayWrapper, {
897
+ state,
898
+ ...props,
899
+ ref: trayRef
900
+ }, children));
901
+ }
902
+ );
903
+ var TrayWrapper = forwardRef5(
904
+ ({ children, state, ...props }, ref) => {
905
+ let { modalProps, underlayProps } = useModalOverlay(
906
+ {
907
+ ...props,
908
+ isDismissable: true
909
+ },
910
+ state,
911
+ ref
912
+ );
913
+ return /* @__PURE__ */ React22.createElement(FocusScope3, {
914
+ contain: true,
915
+ restoreFocus: true,
916
+ autoFocus: true
917
+ }, /* @__PURE__ */ React22.createElement(Underlay, {
918
+ ...underlayProps,
919
+ variant: "modal"
920
+ }, /* @__PURE__ */ React22.createElement(Box12, {
921
+ ...modalProps,
922
+ ref,
923
+ __baseCSS: { position: "absolute", width: "100%", bottom: 0 },
924
+ "data-testid": "tray"
925
+ }, /* @__PURE__ */ React22.createElement(DismissButton2, {
926
+ onDismiss: state.close
927
+ }), children, /* @__PURE__ */ React22.createElement(DismissButton2, {
928
+ onDismiss: state.close
929
+ }))));
930
+ }
931
+ );
932
+
783
933
  // src/Dialog/DialogTrigger.tsx
784
934
  var DialogTrigger = ({
785
935
  children,
786
936
  dismissable = true,
787
937
  keyboardDismissable = true
788
938
  }) => {
789
- const [dialogTrigger, dialog] = React20.Children.toArray(children);
939
+ const [dialogTrigger, dialog] = React23.Children.toArray(children);
790
940
  const dialogTriggerRef = useRef2(null);
791
941
  const state = useOverlayTriggerState({});
792
942
  const ctx = { open: state.isOpen, close: state.close };
793
- return /* @__PURE__ */ React20.createElement(DialogContext.Provider, {
943
+ return /* @__PURE__ */ React23.createElement(DialogContext.Provider, {
794
944
  value: ctx
795
- }, /* @__PURE__ */ React20.createElement(PressResponder, {
945
+ }, /* @__PURE__ */ React23.createElement(PressResponder, {
796
946
  ref: dialogTriggerRef,
797
947
  isPressed: state.isOpen,
798
948
  onPress: state.toggle
799
- }, dialogTrigger), /* @__PURE__ */ React20.createElement(Overlay, {
949
+ }, dialogTrigger), /* @__PURE__ */ React23.createElement(Overlay, {
800
950
  open: state.isOpen
801
- }, /* @__PURE__ */ React20.createElement(Modal, {
951
+ }, /* @__PURE__ */ React23.createElement(Modal, {
802
952
  open: state.isOpen,
803
953
  onClose: state.close,
804
954
  dismissable,
@@ -816,9 +966,9 @@ var CloseButton = ({ css }) => {
816
966
  },
817
967
  ref
818
968
  );
819
- return /* @__PURE__ */ React21.createElement(Box10, {
969
+ return /* @__PURE__ */ React24.createElement(Box13, {
820
970
  css: { display: "flex", justifyContent: "flex-end" }
821
- }, /* @__PURE__ */ React21.createElement(Box10, {
971
+ }, /* @__PURE__ */ React24.createElement(Box13, {
822
972
  as: "button",
823
973
  __baseCSS: {
824
974
  outline: "none",
@@ -832,19 +982,19 @@ var CloseButton = ({ css }) => {
832
982
  css,
833
983
  ref,
834
984
  ...buttonProps
835
- }, /* @__PURE__ */ React21.createElement("svg", {
985
+ }, /* @__PURE__ */ React24.createElement("svg", {
836
986
  viewBox: "0 0 20 20",
837
987
  fill: "currentColor"
838
- }, /* @__PURE__ */ React21.createElement("path", {
988
+ }, /* @__PURE__ */ React24.createElement("path", {
839
989
  fillRule: "evenodd",
840
990
  clipRule: "evenodd",
841
991
  d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"
842
992
  }))));
843
993
  };
844
994
  var addTitleProps = (children, titleProps) => {
845
- const childs = React21.Children.toArray(children);
995
+ const childs = React24.Children.toArray(children);
846
996
  const titleIndex = childs.findIndex(
847
- (child) => React21.isValidElement(child) && (child.type === Header || child.type === Headline)
997
+ (child) => React24.isValidElement(child) && (child.type === Header || child.type === Headline)
848
998
  );
849
999
  if (titleIndex < 0) {
850
1000
  console.warn(
@@ -852,7 +1002,7 @@ var addTitleProps = (children, titleProps) => {
852
1002
  );
853
1003
  return children;
854
1004
  }
855
- const titleChild = React21.cloneElement(
1005
+ const titleChild = React24.cloneElement(
856
1006
  childs[titleIndex],
857
1007
  titleProps
858
1008
  );
@@ -869,29 +1019,29 @@ var Dialog = ({
869
1019
  const ref = useRef3(null);
870
1020
  const { close } = useDialogContext();
871
1021
  const { dialogProps, titleProps } = useDialog(props, ref);
872
- const styles = useComponentStyles11(
1022
+ const styles = useComponentStyles12(
873
1023
  "Dialog",
874
1024
  { variant, size },
875
1025
  { parts: ["container", "closeButton"] }
876
1026
  );
877
- return /* @__PURE__ */ React21.createElement(Box10, {
1027
+ return /* @__PURE__ */ React24.createElement(Box13, {
878
1028
  __baseCSS: { bg: "#fff" },
879
1029
  css: styles.container,
880
1030
  ...dialogProps
881
- }, closeButton && /* @__PURE__ */ React21.createElement(CloseButton, {
1031
+ }, closeButton && /* @__PURE__ */ React24.createElement(CloseButton, {
882
1032
  css: styles.closeButton
883
1033
  }), typeof children === "function" ? children({ close, titleProps }) : props["aria-labelledby"] ? children : addTitleProps(children, titleProps));
884
1034
  };
885
1035
  Dialog.Trigger = DialogTrigger;
886
1036
 
887
1037
  // src/Divider/Divider.tsx
888
- import React22 from "react";
1038
+ import React25 from "react";
889
1039
  import { useSeparator } from "@react-aria/separator";
890
- import { Box as Box11, useComponentStyles as useComponentStyles12 } from "@marigold/system";
1040
+ import { Box as Box14, useComponentStyles as useComponentStyles13 } from "@marigold/system";
891
1041
  var Divider = ({ variant, ...props }) => {
892
1042
  const { separatorProps } = useSeparator(props);
893
- const styles = useComponentStyles12("Divider", { variant });
894
- return /* @__PURE__ */ React22.createElement(Box11, {
1043
+ const styles = useComponentStyles13("Divider", { variant });
1044
+ return /* @__PURE__ */ React25.createElement(Box14, {
895
1045
  css: styles,
896
1046
  ...props,
897
1047
  ...separatorProps
@@ -899,13 +1049,13 @@ var Divider = ({ variant, ...props }) => {
899
1049
  };
900
1050
 
901
1051
  // src/Footer/Footer.tsx
902
- import React23 from "react";
1052
+ import React26 from "react";
903
1053
  import {
904
- useComponentStyles as useComponentStyles13
1054
+ useComponentStyles as useComponentStyles14
905
1055
  } from "@marigold/system";
906
1056
  var Footer = ({ children, variant, size, ...props }) => {
907
- const styles = useComponentStyles13("Footer", { variant, size });
908
- return /* @__PURE__ */ React23.createElement(Box, {
1057
+ const styles = useComponentStyles14("Footer", { variant, size });
1058
+ return /* @__PURE__ */ React26.createElement(Box, {
909
1059
  as: "footer",
910
1060
  ...props,
911
1061
  css: styles
@@ -913,9 +1063,9 @@ var Footer = ({ children, variant, size, ...props }) => {
913
1063
  };
914
1064
 
915
1065
  // src/Image/Image.tsx
916
- import React24 from "react";
917
- import { Box as Box12 } from "@marigold/system";
918
- import { useComponentStyles as useComponentStyles14 } from "@marigold/system";
1066
+ import React27 from "react";
1067
+ import { Box as Box15 } from "@marigold/system";
1068
+ import { useComponentStyles as useComponentStyles15 } from "@marigold/system";
919
1069
  var Image = ({
920
1070
  variant,
921
1071
  size,
@@ -923,13 +1073,13 @@ var Image = ({
923
1073
  position,
924
1074
  ...props
925
1075
  }) => {
926
- const styles = useComponentStyles14("Image", { variant, size });
1076
+ const styles = useComponentStyles15("Image", { variant, size });
927
1077
  const css = {
928
1078
  ...styles,
929
1079
  objectFit: fit,
930
1080
  objectPosition: position
931
1081
  };
932
- return /* @__PURE__ */ React24.createElement(Box12, {
1082
+ return /* @__PURE__ */ React27.createElement(Box15, {
933
1083
  ...props,
934
1084
  as: "img",
935
1085
  __baseCSS: fit ? { width: " 100%", height: "100%" } : {},
@@ -938,7 +1088,7 @@ var Image = ({
938
1088
  };
939
1089
 
940
1090
  // src/Inline/Inline.tsx
941
- import React25 from "react";
1091
+ import React28 from "react";
942
1092
  var ALIGNMENT_X = {
943
1093
  left: "flex-start",
944
1094
  center: "center",
@@ -955,7 +1105,7 @@ var Inline = ({
955
1105
  alignY = "center",
956
1106
  children,
957
1107
  ...props
958
- }) => /* @__PURE__ */ React25.createElement(Box, {
1108
+ }) => /* @__PURE__ */ React28.createElement(Box, {
959
1109
  css: {
960
1110
  display: "flex",
961
1111
  flexWrap: "wrap",
@@ -967,12 +1117,12 @@ var Inline = ({
967
1117
  }, children);
968
1118
 
969
1119
  // src/Input/Input.tsx
970
- import React26, { forwardRef as forwardRef5 } from "react";
971
- import { Box as Box13, useComponentStyles as useComponentStyles15 } from "@marigold/system";
972
- var Input = forwardRef5(
1120
+ import React29, { forwardRef as forwardRef6 } from "react";
1121
+ import { Box as Box16, useComponentStyles as useComponentStyles16 } from "@marigold/system";
1122
+ var Input = forwardRef6(
973
1123
  ({ variant, size, type = "text", ...props }, ref) => {
974
- const styles = useComponentStyles15("Input", { variant, size });
975
- return /* @__PURE__ */ React26.createElement(Box13, {
1124
+ const styles = useComponentStyles16("Input", { variant, size });
1125
+ return /* @__PURE__ */ React29.createElement(Box16, {
976
1126
  ...props,
977
1127
  ref,
978
1128
  as: "input",
@@ -983,11 +1133,11 @@ var Input = forwardRef5(
983
1133
  );
984
1134
 
985
1135
  // src/Link/Link.tsx
986
- import React27, { forwardRef as forwardRef6 } from "react";
1136
+ import React30, { forwardRef as forwardRef7 } from "react";
987
1137
  import { useLink } from "@react-aria/link";
988
- import { useComponentStyles as useComponentStyles16 } from "@marigold/system";
989
- import { useObjectRef as useObjectRef5 } from "@react-aria/utils";
990
- var Link = forwardRef6(
1138
+ import { useComponentStyles as useComponentStyles17 } from "@marigold/system";
1139
+ import { useObjectRef as useObjectRef6 } from "@react-aria/utils";
1140
+ var Link = forwardRef7(
991
1141
  ({
992
1142
  as = "a",
993
1143
  variant,
@@ -998,7 +1148,7 @@ var Link = forwardRef6(
998
1148
  onPressStart,
999
1149
  ...props
1000
1150
  }, ref) => {
1001
- const linkRef = useObjectRef5(ref);
1151
+ const linkRef = useObjectRef6(ref);
1002
1152
  const { linkProps } = useLink(
1003
1153
  {
1004
1154
  ...props,
@@ -1007,8 +1157,8 @@ var Link = forwardRef6(
1007
1157
  },
1008
1158
  linkRef
1009
1159
  );
1010
- const styles = useComponentStyles16("Link", { variant, size });
1011
- return /* @__PURE__ */ React27.createElement(React27.Fragment, null, " ", /* @__PURE__ */ React27.createElement(Box, {
1160
+ const styles = useComponentStyles17("Link", { variant, size });
1161
+ return /* @__PURE__ */ React30.createElement(React30.Fragment, null, " ", /* @__PURE__ */ React30.createElement(Box, {
1012
1162
  as,
1013
1163
  role: "link",
1014
1164
  css: styles,
@@ -1020,10 +1170,10 @@ var Link = forwardRef6(
1020
1170
  );
1021
1171
 
1022
1172
  // src/List/List.tsx
1023
- import React29 from "react";
1173
+ import React32 from "react";
1024
1174
  import {
1025
- Box as Box15,
1026
- useComponentStyles as useComponentStyles17
1175
+ Box as Box18,
1176
+ useComponentStyles as useComponentStyles18
1027
1177
  } from "@marigold/system";
1028
1178
 
1029
1179
  // src/List/Context.ts
@@ -1032,11 +1182,11 @@ var ListContext = createContext3({});
1032
1182
  var useListContext = () => useContext3(ListContext);
1033
1183
 
1034
1184
  // src/List/ListItem.tsx
1035
- import React28 from "react";
1036
- import { Box as Box14 } from "@marigold/system";
1185
+ import React31 from "react";
1186
+ import { Box as Box17 } from "@marigold/system";
1037
1187
  var ListItem = ({ children, ...props }) => {
1038
1188
  const { styles } = useListContext();
1039
- return /* @__PURE__ */ React28.createElement(Box14, {
1189
+ return /* @__PURE__ */ React31.createElement(Box17, {
1040
1190
  ...props,
1041
1191
  as: "li",
1042
1192
  css: styles
@@ -1051,30 +1201,29 @@ var List = ({
1051
1201
  size,
1052
1202
  ...props
1053
1203
  }) => {
1054
- const styles = useComponentStyles17(
1204
+ const styles = useComponentStyles18(
1055
1205
  "List",
1056
1206
  { variant, size },
1057
1207
  { parts: ["ul", "ol", "item"] }
1058
1208
  );
1059
- return /* @__PURE__ */ React29.createElement(Box15, {
1209
+ return /* @__PURE__ */ React32.createElement(Box18, {
1060
1210
  ...props,
1061
1211
  as,
1062
1212
  css: styles[as]
1063
- }, /* @__PURE__ */ React29.createElement(ListContext.Provider, {
1213
+ }, /* @__PURE__ */ React32.createElement(ListContext.Provider, {
1064
1214
  value: { styles: styles.item }
1065
1215
  }, children));
1066
1216
  };
1067
1217
  List.Item = ListItem;
1068
1218
 
1069
1219
  // src/Menu/Menu.tsx
1070
- import React32, { useRef as useRef6 } from "react";
1220
+ import React35, { useRef as useRef6 } from "react";
1071
1221
  import { useMenu } from "@react-aria/menu";
1072
- import { DismissButton as DismissButton2 } from "@react-aria/overlays";
1073
1222
  import { Item } from "@react-stately/collections";
1074
1223
  import { useTreeState } from "@react-stately/tree";
1075
1224
  import {
1076
- Box as Box17,
1077
- useComponentStyles as useComponentStyles18
1225
+ Box as Box20,
1226
+ useComponentStyles as useComponentStyles19
1078
1227
  } from "@marigold/system";
1079
1228
 
1080
1229
  // src/Menu/Context.ts
@@ -1086,15 +1235,16 @@ var MenuContext = createContext4({});
1086
1235
  var useMenuContext = () => useContext4(MenuContext);
1087
1236
 
1088
1237
  // src/Menu/MenuTrigger.tsx
1089
- import React30, { useRef as useRef4 } from "react";
1238
+ import React33, { useRef as useRef4 } from "react";
1090
1239
  import { useMenuTriggerState } from "@react-stately/menu";
1091
- import { useMenuTrigger } from "@react-aria/menu";
1092
1240
  import { PressResponder as PressResponder2 } from "@react-aria/interactions";
1093
- import { useObjectRef as useObjectRef6 } from "@react-aria/utils";
1241
+ import { useMenuTrigger } from "@react-aria/menu";
1242
+ import { useObjectRef as useObjectRef7 } from "@react-aria/utils";
1243
+ import { useResponsiveValue } from "@marigold/system";
1094
1244
  var MenuTrigger = ({ disabled, children }) => {
1095
- const [menuTrigger, menu] = React30.Children.toArray(children);
1245
+ const [menuTrigger, menu] = React33.Children.toArray(children);
1096
1246
  const menuTriggerRef = useRef4(null);
1097
- const menuRef = useObjectRef6();
1247
+ const menuRef = useObjectRef7();
1098
1248
  const state = useMenuTriggerState({});
1099
1249
  const { menuTriggerProps, menuProps } = useMenuTrigger(
1100
1250
  { trigger: "press", isDisabled: disabled },
@@ -1108,13 +1258,16 @@ var MenuTrigger = ({ disabled, children }) => {
1108
1258
  onClose: state.close,
1109
1259
  autoFocus: state.focusStrategy
1110
1260
  };
1111
- return /* @__PURE__ */ React30.createElement(MenuContext.Provider, {
1261
+ const isSmallScreen = useResponsiveValue([true, false, false], 2);
1262
+ return /* @__PURE__ */ React33.createElement(MenuContext.Provider, {
1112
1263
  value: menuContext
1113
- }, /* @__PURE__ */ React30.createElement(PressResponder2, {
1264
+ }, /* @__PURE__ */ React33.createElement(PressResponder2, {
1114
1265
  ...menuTriggerProps,
1115
1266
  ref: menuTriggerRef,
1116
1267
  isPressed: state.isOpen
1117
- }, menuTrigger), /* @__PURE__ */ React30.createElement(Popover, {
1268
+ }, menuTrigger), isSmallScreen ? /* @__PURE__ */ React33.createElement(Tray, {
1269
+ state
1270
+ }, menu) : /* @__PURE__ */ React33.createElement(Popover, {
1118
1271
  triggerRef: menuTriggerRef,
1119
1272
  scrollRef: menuRef,
1120
1273
  state
@@ -1122,11 +1275,11 @@ var MenuTrigger = ({ disabled, children }) => {
1122
1275
  };
1123
1276
 
1124
1277
  // src/Menu/MenuItem.tsx
1125
- import React31, { useRef as useRef5 } from "react";
1278
+ import React34, { useRef as useRef5 } from "react";
1126
1279
  import { useFocusRing as useFocusRing3 } from "@react-aria/focus";
1127
1280
  import { useMenuItem } from "@react-aria/menu";
1128
1281
  import { mergeProps as mergeProps3 } from "@react-aria/utils";
1129
- import { Box as Box16, useStateProps as useStateProps3 } from "@marigold/system";
1282
+ import { Box as Box19, useStateProps as useStateProps4 } from "@marigold/system";
1130
1283
  var MenuItem = ({ item, state, onAction, css }) => {
1131
1284
  const ref = useRef5(null);
1132
1285
  const { onClose } = useMenuContext();
@@ -1140,10 +1293,10 @@ var MenuItem = ({ item, state, onAction, css }) => {
1140
1293
  ref
1141
1294
  );
1142
1295
  const { isFocusVisible, focusProps } = useFocusRing3();
1143
- const stateProps = useStateProps3({
1296
+ const stateProps = useStateProps4({
1144
1297
  focus: isFocusVisible
1145
1298
  });
1146
- return /* @__PURE__ */ React31.createElement(Box16, {
1299
+ return /* @__PURE__ */ React34.createElement(Box19, {
1147
1300
  as: "li",
1148
1301
  ref,
1149
1302
  __baseCSS: {
@@ -1166,14 +1319,12 @@ var Menu = ({ variant, size, ...props }) => {
1166
1319
  const state = useTreeState({ ...ownProps, selectionMode: "none" });
1167
1320
  const { menuProps } = useMenu(ownProps, state, ref);
1168
1321
  useSyncRef({ ref: scrollRef }, ref);
1169
- const styles = useComponentStyles18(
1322
+ const styles = useComponentStyles19(
1170
1323
  "Menu",
1171
1324
  { variant, size },
1172
1325
  { parts: ["container", "item"] }
1173
1326
  );
1174
- return /* @__PURE__ */ React32.createElement("div", null, /* @__PURE__ */ React32.createElement(DismissButton2, {
1175
- onDismiss: ownProps.onClose
1176
- }), /* @__PURE__ */ React32.createElement(Box17, {
1327
+ return /* @__PURE__ */ React35.createElement(Box20, {
1177
1328
  as: "ul",
1178
1329
  ref,
1179
1330
  __baseCSS: {
@@ -1183,23 +1334,20 @@ var Menu = ({ variant, size, ...props }) => {
1183
1334
  },
1184
1335
  css: styles.container,
1185
1336
  ...menuProps
1186
- }, [...state.collection].map((item) => /* @__PURE__ */ React32.createElement(MenuItem, {
1337
+ }, [...state.collection].map((item) => /* @__PURE__ */ React35.createElement(MenuItem, {
1187
1338
  key: item.key,
1188
1339
  item,
1189
1340
  state,
1190
1341
  onAction: props.onSelect,
1191
1342
  css: styles.item
1192
- }))), /* @__PURE__ */ React32.createElement(DismissButton2, {
1193
- onDismiss: ownProps.onClose
1194
- }));
1343
+ })));
1195
1344
  };
1196
1345
  Menu.Trigger = MenuTrigger;
1197
1346
  Menu.Item = Item;
1198
1347
 
1199
1348
  // src/Message/Message.tsx
1200
- import React33 from "react";
1201
- import { Exclamation, Info, Notification } from "@marigold/icons";
1202
- import { useComponentStyles as useComponentStyles19 } from "@marigold/system";
1349
+ import React36 from "react";
1350
+ import { useComponentStyles as useComponentStyles20 } from "@marigold/system";
1203
1351
  var Message = ({
1204
1352
  messageTitle,
1205
1353
  variant = "info",
@@ -1207,7 +1355,7 @@ var Message = ({
1207
1355
  children,
1208
1356
  ...props
1209
1357
  }) => {
1210
- const styles = useComponentStyles19(
1358
+ const styles = useComponentStyles20(
1211
1359
  "Message",
1212
1360
  {
1213
1361
  variant,
@@ -1215,151 +1363,77 @@ var Message = ({
1215
1363
  },
1216
1364
  { parts: ["container", "icon", "title", "content"] }
1217
1365
  );
1218
- var icon = /* @__PURE__ */ React33.createElement(Info, null);
1366
+ var icon = /* @__PURE__ */ React36.createElement("svg", {
1367
+ viewBox: "0 0 24 24"
1368
+ }, /* @__PURE__ */ React36.createElement("path", {
1369
+ 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"
1370
+ }));
1219
1371
  if (variant === "warning") {
1220
- icon = /* @__PURE__ */ React33.createElement(Notification, null);
1372
+ icon = /* @__PURE__ */ React36.createElement("svg", {
1373
+ viewBox: "0 0 24 24"
1374
+ }, /* @__PURE__ */ React36.createElement("path", {
1375
+ 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"
1376
+ }));
1221
1377
  }
1222
1378
  if (variant === "error") {
1223
- icon = /* @__PURE__ */ React33.createElement(Exclamation, null);
1379
+ icon = /* @__PURE__ */ React36.createElement("svg", {
1380
+ viewBox: "0 0 24 24"
1381
+ }, /* @__PURE__ */ React36.createElement("path", {
1382
+ 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"
1383
+ }));
1224
1384
  }
1225
- return /* @__PURE__ */ React33.createElement(Box, {
1385
+ return /* @__PURE__ */ React36.createElement(Box, {
1226
1386
  css: styles.container,
1227
1387
  ...props
1228
- }, /* @__PURE__ */ React33.createElement(Box, {
1388
+ }, /* @__PURE__ */ React36.createElement(Box, {
1229
1389
  __baseCSS: { display: "flex", alignItems: "top", gap: 4 }
1230
- }, /* @__PURE__ */ React33.createElement(Box, {
1390
+ }, /* @__PURE__ */ React36.createElement(Box, {
1231
1391
  role: "presentation",
1232
1392
  __baseCSS: { flex: "0 0 16px" },
1233
1393
  css: styles.icon
1234
- }, icon), /* @__PURE__ */ React33.createElement(Box, {
1394
+ }, icon), /* @__PURE__ */ React36.createElement(Box, {
1235
1395
  css: styles.title
1236
- }, messageTitle)), /* @__PURE__ */ React33.createElement(Box, {
1396
+ }, messageTitle)), /* @__PURE__ */ React36.createElement(Box, {
1237
1397
  css: styles.content
1238
1398
  }, children));
1239
1399
  };
1240
1400
 
1241
1401
  // src/NumberField/NumberField.tsx
1242
- import React37, { forwardRef as forwardRef7 } from "react";
1402
+ import React38, { forwardRef as forwardRef8 } from "react";
1243
1403
  import { useFocusRing as useFocusRing4 } from "@react-aria/focus";
1244
1404
  import { useHover as useHover4 } from "@react-aria/interactions";
1245
1405
  import { useLocale } from "@react-aria/i18n";
1246
1406
  import { useNumberField } from "@react-aria/numberfield";
1247
- import { mergeProps as mergeProps5, useObjectRef as useObjectRef7 } from "@react-aria/utils";
1407
+ import { mergeProps as mergeProps5, useObjectRef as useObjectRef8 } from "@react-aria/utils";
1248
1408
  import { useNumberFieldState } from "@react-stately/numberfield";
1249
1409
  import {
1250
- Box as Box21,
1251
- useComponentStyles as useComponentStyles22,
1252
- useStateProps as useStateProps5
1253
- } from "@marigold/system";
1254
-
1255
- // src/FieldBase/FieldBase.tsx
1256
- import React35 from "react";
1257
- import {
1258
- Box as Box19,
1259
- useComponentStyles as useComponentStyles21
1260
- } from "@marigold/system";
1261
-
1262
- // src/HelpText/HelpText.tsx
1263
- import React34 from "react";
1264
- import { Exclamation as Exclamation2 } from "@marigold/icons";
1265
- import {
1266
- Box as Box18,
1267
- useComponentStyles as useComponentStyles20
1410
+ Box as Box22,
1411
+ useComponentStyles as useComponentStyles21,
1412
+ useStateProps as useStateProps6
1268
1413
  } from "@marigold/system";
1269
- var HelpText = ({
1270
- variant,
1271
- size,
1272
- disabled,
1273
- description,
1274
- descriptionProps,
1275
- error,
1276
- errorMessage,
1277
- errorMessageProps,
1278
- ...props
1279
- }) => {
1280
- var _a;
1281
- const hasErrorMessage = errorMessage && error;
1282
- const styles = useComponentStyles20(
1283
- "HelpText",
1284
- { variant, size },
1285
- { parts: ["container", "icon"] }
1286
- );
1287
- return /* @__PURE__ */ React34.createElement(Box18, {
1288
- ...hasErrorMessage ? errorMessageProps : descriptionProps,
1289
- ...props,
1290
- __baseCSS: { display: "flex", alignItems: "center", gap: 4 },
1291
- css: styles.container
1292
- }, hasErrorMessage ? /* @__PURE__ */ React34.createElement(React34.Fragment, null, /* @__PURE__ */ React34.createElement(Exclamation2, {
1293
- role: "presentation",
1294
- size: ((_a = styles == null ? void 0 : styles.icon) == null ? void 0 : _a.size) || 16
1295
- }), errorMessage) : /* @__PURE__ */ React34.createElement(React34.Fragment, null, description));
1296
- };
1297
-
1298
- // src/FieldBase/FieldBase.tsx
1299
- var FieldBase = ({
1300
- children,
1301
- variant,
1302
- size,
1303
- width = "100%",
1304
- disabled,
1305
- required,
1306
- label,
1307
- labelProps,
1308
- description,
1309
- descriptionProps,
1310
- error,
1311
- errorMessage,
1312
- errorMessageProps,
1313
- stateProps
1314
- }) => {
1315
- const hasHelpText = !!description || errorMessage && error;
1316
- const style = useComponentStyles21("Field", { variant, size });
1317
- return /* @__PURE__ */ React35.createElement(Box19, {
1318
- __baseCSS: { display: "flex", flexDirection: "column", width },
1319
- css: style
1320
- }, label && /* @__PURE__ */ React35.createElement(Label, {
1321
- required,
1322
- variant,
1323
- size,
1324
- ...labelProps,
1325
- ...stateProps
1326
- }, label), /* @__PURE__ */ React35.createElement(Box19, {
1327
- __baseCSS: { display: "flex", flexDirection: "column" }
1328
- }, children, hasHelpText && /* @__PURE__ */ React35.createElement(HelpText, {
1329
- ...stateProps,
1330
- variant,
1331
- size,
1332
- disabled,
1333
- description,
1334
- descriptionProps,
1335
- error,
1336
- errorMessage,
1337
- errorMessageProps
1338
- })));
1339
- };
1340
1414
 
1341
1415
  // src/NumberField/StepButton.tsx
1342
- import React36, { useRef as useRef7 } from "react";
1416
+ import React37, { useRef as useRef7 } from "react";
1343
1417
  import { useButton as useButton3 } from "@react-aria/button";
1344
1418
  import { useHover as useHover3 } from "@react-aria/interactions";
1345
1419
  import { mergeProps as mergeProps4 } from "@react-aria/utils";
1346
- import { Box as Box20, useStateProps as useStateProps4 } from "@marigold/system";
1347
- var Plus = () => /* @__PURE__ */ React36.createElement(Box20, {
1420
+ import { Box as Box21, useStateProps as useStateProps5 } from "@marigold/system";
1421
+ var Plus = () => /* @__PURE__ */ React37.createElement(Box21, {
1348
1422
  as: "svg",
1349
1423
  __baseCSS: { width: 16, height: 16 },
1350
1424
  viewBox: "0 0 20 20",
1351
1425
  fill: "currentColor"
1352
- }, /* @__PURE__ */ React36.createElement("path", {
1426
+ }, /* @__PURE__ */ React37.createElement("path", {
1353
1427
  fillRule: "evenodd",
1354
1428
  clipRule: "evenodd",
1355
1429
  d: "M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z"
1356
1430
  }));
1357
- var Minus = () => /* @__PURE__ */ React36.createElement(Box20, {
1431
+ var Minus = () => /* @__PURE__ */ React37.createElement(Box21, {
1358
1432
  as: "svg",
1359
1433
  __baseCSS: { width: 16, height: 16 },
1360
1434
  viewBox: "0 0 20 20",
1361
1435
  fill: "currentColor"
1362
- }, /* @__PURE__ */ React36.createElement("path", {
1436
+ }, /* @__PURE__ */ React37.createElement("path", {
1363
1437
  fillRule: "evenodd",
1364
1438
  clipRule: "evenodd",
1365
1439
  d: "M3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
@@ -1371,13 +1445,13 @@ var StepButton = ({ direction, css, ...props }) => {
1371
1445
  ref
1372
1446
  );
1373
1447
  const { hoverProps, isHovered } = useHover3(props);
1374
- const stateProps = useStateProps4({
1448
+ const stateProps = useStateProps5({
1375
1449
  active: isPressed,
1376
1450
  hover: isHovered,
1377
1451
  disabled: props.isDisabled
1378
1452
  });
1379
1453
  const Icon3 = direction === "up" ? Plus : Minus;
1380
- return /* @__PURE__ */ React36.createElement(Box20, {
1454
+ return /* @__PURE__ */ React37.createElement(Box21, {
1381
1455
  __baseCSS: {
1382
1456
  display: "flex",
1383
1457
  alignItems: "center",
@@ -1387,11 +1461,11 @@ var StepButton = ({ direction, css, ...props }) => {
1387
1461
  css,
1388
1462
  ...mergeProps4(buttonProps, hoverProps),
1389
1463
  ...stateProps
1390
- }, /* @__PURE__ */ React36.createElement(Icon3, null));
1464
+ }, /* @__PURE__ */ React37.createElement(Icon3, null));
1391
1465
  };
1392
1466
 
1393
1467
  // src/NumberField/NumberField.tsx
1394
- var NumberField = forwardRef7(
1468
+ var NumberField = forwardRef8(
1395
1469
  ({
1396
1470
  variant,
1397
1471
  size,
@@ -1412,7 +1486,7 @@ var NumberField = forwardRef7(
1412
1486
  };
1413
1487
  const showStepper = !hideStepper;
1414
1488
  const { locale } = useLocale();
1415
- const inputRef = useObjectRef7(ref);
1489
+ const inputRef = useObjectRef8(ref);
1416
1490
  const state = useNumberFieldState({ ...props, locale });
1417
1491
  const {
1418
1492
  labelProps,
@@ -1429,19 +1503,19 @@ var NumberField = forwardRef7(
1429
1503
  isTextInput: true,
1430
1504
  autoFocus: props.autoFocus
1431
1505
  });
1432
- const styles = useComponentStyles22(
1506
+ const styles = useComponentStyles21(
1433
1507
  "NumberField",
1434
1508
  { variant, size },
1435
1509
  { parts: ["group", "stepper"] }
1436
1510
  );
1437
- const stateProps = useStateProps5({
1511
+ const stateProps = useStateProps6({
1438
1512
  hover: isHovered,
1439
1513
  focus: isFocused,
1440
1514
  disabled,
1441
1515
  readOnly,
1442
1516
  error
1443
1517
  });
1444
- return /* @__PURE__ */ React37.createElement(FieldBase, {
1518
+ return /* @__PURE__ */ React38.createElement(FieldBase, {
1445
1519
  label: props.label,
1446
1520
  labelProps,
1447
1521
  required,
@@ -1454,7 +1528,7 @@ var NumberField = forwardRef7(
1454
1528
  variant,
1455
1529
  size,
1456
1530
  width
1457
- }, /* @__PURE__ */ React37.createElement(Box21, {
1531
+ }, /* @__PURE__ */ React38.createElement(Box22, {
1458
1532
  "data-group": true,
1459
1533
  __baseCSS: {
1460
1534
  display: "flex",
@@ -1467,17 +1541,17 @@ var NumberField = forwardRef7(
1467
1541
  css: styles.group,
1468
1542
  ...mergeProps5(groupProps, focusProps, hoverProps),
1469
1543
  ...stateProps
1470
- }, showStepper && /* @__PURE__ */ React37.createElement(StepButton, {
1544
+ }, showStepper && /* @__PURE__ */ React38.createElement(StepButton, {
1471
1545
  direction: "down",
1472
1546
  css: styles.stepper,
1473
1547
  ...decrementButtonProps
1474
- }), /* @__PURE__ */ React37.createElement(Input, {
1548
+ }), /* @__PURE__ */ React38.createElement(Input, {
1475
1549
  ref: inputRef,
1476
1550
  variant,
1477
1551
  size,
1478
1552
  ...inputProps,
1479
1553
  ...stateProps
1480
- }), showStepper && /* @__PURE__ */ React37.createElement(StepButton, {
1554
+ }), showStepper && /* @__PURE__ */ React38.createElement(StepButton, {
1481
1555
  direction: "up",
1482
1556
  css: styles.stepper,
1483
1557
  ...incrementButtonProps
@@ -1490,7 +1564,7 @@ import { useTheme as useTheme2, ThemeProvider as ThemeProvider2 } from "@marigol
1490
1564
  import { SSRProvider } from "@react-aria/ssr";
1491
1565
 
1492
1566
  // src/Provider/MarigoldProvider.tsx
1493
- import React38 from "react";
1567
+ import React39 from "react";
1494
1568
  import { OverlayProvider } from "@react-aria/overlays";
1495
1569
  import {
1496
1570
  Global,
@@ -1513,26 +1587,26 @@ function MarigoldProvider({
1513
1587
  Nested themes with a "root" property must specify a "selector" to prevent accidentally overriding global CSS`
1514
1588
  );
1515
1589
  }
1516
- return /* @__PURE__ */ React38.createElement(ThemeProvider, {
1590
+ return /* @__PURE__ */ React39.createElement(ThemeProvider, {
1517
1591
  theme
1518
- }, /* @__PURE__ */ React38.createElement(Global, {
1592
+ }, /* @__PURE__ */ React39.createElement(Global, {
1519
1593
  normalizeDocument: isTopLevel && normalizeDocument,
1520
1594
  selector
1521
- }), isTopLevel ? /* @__PURE__ */ React38.createElement(OverlayProvider, null, children) : children);
1595
+ }), isTopLevel ? /* @__PURE__ */ React39.createElement(OverlayProvider, null, children) : children);
1522
1596
  }
1523
1597
 
1524
1598
  // src/Radio/Radio.tsx
1525
- import React40, {
1526
- forwardRef as forwardRef8
1599
+ import React41, {
1600
+ forwardRef as forwardRef9
1527
1601
  } from "react";
1528
1602
  import { useHover as useHover5 } from "@react-aria/interactions";
1529
1603
  import { useFocusRing as useFocusRing5 } from "@react-aria/focus";
1530
1604
  import { useRadio } from "@react-aria/radio";
1531
- import { useObjectRef as useObjectRef8 } from "@react-aria/utils";
1605
+ import { mergeProps as mergeProps6, useObjectRef as useObjectRef9 } from "@react-aria/utils";
1532
1606
  import {
1533
- Box as Box23,
1534
- useComponentStyles as useComponentStyles24,
1535
- useStateProps as useStateProps6
1607
+ Box as Box24,
1608
+ useComponentStyles as useComponentStyles22,
1609
+ useStateProps as useStateProps8
1536
1610
  } from "@marigold/system";
1537
1611
 
1538
1612
  // src/Radio/Context.ts
@@ -1543,18 +1617,13 @@ var RadioGroupContext = createContext5(
1543
1617
  var useRadioGroupContext = () => useContext5(RadioGroupContext);
1544
1618
 
1545
1619
  // src/Radio/RadioGroup.tsx
1546
- import React39 from "react";
1620
+ import React40 from "react";
1547
1621
  import { useRadioGroup } from "@react-aria/radio";
1548
1622
  import { useRadioGroupState } from "@react-stately/radio";
1549
- import {
1550
- Box as Box22,
1551
- useComponentStyles as useComponentStyles23
1552
- } from "@marigold/system";
1623
+ import { Box as Box23, useStateProps as useStateProps7 } from "@marigold/system";
1553
1624
  var RadioGroup = ({
1554
1625
  children,
1555
1626
  orientation = "vertical",
1556
- size,
1557
- variant,
1558
1627
  width,
1559
1628
  required,
1560
1629
  disabled,
@@ -1570,20 +1639,26 @@ var RadioGroup = ({
1570
1639
  ...rest
1571
1640
  };
1572
1641
  const state = useRadioGroupState(props);
1573
- const { radioGroupProps, labelProps } = useRadioGroup(props, state);
1574
- const styles = useComponentStyles23(
1575
- "RadioGroup",
1576
- { variant, size },
1577
- { parts: ["container", "group"] }
1578
- );
1579
- return /* @__PURE__ */ React39.createElement(Box22, {
1580
- ...radioGroupProps,
1581
- css: styles.container
1582
- }, props.label && /* @__PURE__ */ React39.createElement(Label, {
1583
- as: "span",
1642
+ const { radioGroupProps, labelProps, errorMessageProps, descriptionProps } = useRadioGroup(props, state);
1643
+ const stateProps = useStateProps7({
1644
+ disabled,
1645
+ readOnly,
1646
+ error
1647
+ });
1648
+ return /* @__PURE__ */ React40.createElement(FieldBase, {
1649
+ width,
1650
+ label: props.label,
1651
+ labelProps: { as: "span", ...labelProps },
1652
+ description: props.description,
1653
+ descriptionProps,
1654
+ error,
1655
+ errorMessage: props.errorMessage,
1656
+ errorMessageProps,
1657
+ disabled,
1658
+ stateProps,
1584
1659
  required,
1585
- ...labelProps
1586
- }, props.label), /* @__PURE__ */ React39.createElement(Box22, {
1660
+ ...radioGroupProps
1661
+ }, /* @__PURE__ */ React40.createElement(Box23, {
1587
1662
  role: "presentation",
1588
1663
  "data-orientation": orientation,
1589
1664
  __baseCSS: {
@@ -1591,23 +1666,22 @@ var RadioGroup = ({
1591
1666
  flexDirection: orientation === "vertical" ? "column" : "row",
1592
1667
  alignItems: "start",
1593
1668
  gap: orientation === "vertical" ? "0.5ch" : "1.5ch"
1594
- },
1595
- css: styles.group
1596
- }, /* @__PURE__ */ React39.createElement(RadioGroupContext.Provider, {
1597
- value: { variant, size, width, error, ...state }
1669
+ }
1670
+ }, /* @__PURE__ */ React40.createElement(RadioGroupContext.Provider, {
1671
+ value: { width, error, state }
1598
1672
  }, children)));
1599
1673
  };
1600
1674
 
1601
1675
  // src/Radio/Radio.tsx
1602
- var Dot = () => /* @__PURE__ */ React40.createElement("svg", {
1676
+ var Dot = () => /* @__PURE__ */ React41.createElement("svg", {
1603
1677
  viewBox: "0 0 6 6"
1604
- }, /* @__PURE__ */ React40.createElement("circle", {
1678
+ }, /* @__PURE__ */ React41.createElement("circle", {
1605
1679
  fill: "currentColor",
1606
1680
  cx: "3",
1607
1681
  cy: "3",
1608
1682
  r: "3"
1609
1683
  }));
1610
- var Icon2 = ({ checked, css, ...props }) => /* @__PURE__ */ React40.createElement(Box23, {
1684
+ var Icon2 = ({ checked, css, ...props }) => /* @__PURE__ */ React41.createElement(Box24, {
1611
1685
  "aria-hidden": "true",
1612
1686
  __baseCSS: {
1613
1687
  width: 16,
@@ -1622,30 +1696,30 @@ var Icon2 = ({ checked, css, ...props }) => /* @__PURE__ */ React40.createElemen
1622
1696
  },
1623
1697
  css,
1624
1698
  ...props
1625
- }, checked ? /* @__PURE__ */ React40.createElement(Dot, null) : null);
1626
- var Radio = forwardRef8(
1699
+ }, checked ? /* @__PURE__ */ React41.createElement(Dot, null) : null);
1700
+ var Radio = forwardRef9(
1627
1701
  ({ width, disabled, ...props }, ref) => {
1628
1702
  const {
1629
1703
  variant,
1630
1704
  size,
1631
1705
  error,
1632
1706
  width: groupWidth,
1633
- ...state
1707
+ state
1634
1708
  } = useRadioGroupContext();
1635
- const inputRef = useObjectRef8(ref);
1709
+ const inputRef = useObjectRef9(ref);
1636
1710
  const { inputProps } = useRadio(
1637
1711
  { isDisabled: disabled, ...props },
1638
1712
  state,
1639
1713
  inputRef
1640
1714
  );
1641
- const styles = useComponentStyles24(
1715
+ const styles = useComponentStyles22(
1642
1716
  "Radio",
1643
1717
  { variant: variant || props.variant, size: size || props.size },
1644
1718
  { parts: ["container", "label", "radio"] }
1645
1719
  );
1646
- const { hoverProps, isHovered } = useHover5({});
1720
+ const { hoverProps, isHovered } = useHover5({ isDisabled: disabled });
1647
1721
  const { isFocusVisible, focusProps } = useFocusRing5();
1648
- const stateProps = useStateProps6({
1722
+ const stateProps = useStateProps8({
1649
1723
  hover: isHovered,
1650
1724
  focus: isFocusVisible,
1651
1725
  checked: inputProps.checked,
@@ -1653,7 +1727,7 @@ var Radio = forwardRef8(
1653
1727
  readOnly: props.readOnly,
1654
1728
  error
1655
1729
  });
1656
- return /* @__PURE__ */ React40.createElement(Box23, {
1730
+ return /* @__PURE__ */ React41.createElement(Box24, {
1657
1731
  as: "label",
1658
1732
  __baseCSS: {
1659
1733
  display: "flex",
@@ -1663,9 +1737,8 @@ var Radio = forwardRef8(
1663
1737
  width: width || groupWidth || "100%"
1664
1738
  },
1665
1739
  css: styles.container,
1666
- ...hoverProps,
1667
- ...stateProps
1668
- }, /* @__PURE__ */ React40.createElement(Box23, {
1740
+ ...mergeProps6(hoverProps, stateProps)
1741
+ }, /* @__PURE__ */ React41.createElement(Box24, {
1669
1742
  as: "input",
1670
1743
  ref: inputRef,
1671
1744
  css: {
@@ -1678,13 +1751,12 @@ var Radio = forwardRef8(
1678
1751
  opacity: 1e-4,
1679
1752
  cursor: inputProps.disabled ? "not-allowed" : "pointer"
1680
1753
  },
1681
- ...inputProps,
1682
- ...focusProps
1683
- }), /* @__PURE__ */ React40.createElement(Icon2, {
1754
+ ...mergeProps6(inputProps, focusProps)
1755
+ }), /* @__PURE__ */ React41.createElement(Icon2, {
1684
1756
  checked: inputProps.checked,
1685
1757
  css: styles.radio,
1686
1758
  ...stateProps
1687
- }), /* @__PURE__ */ React40.createElement(Box23, {
1759
+ }), /* @__PURE__ */ React41.createElement(Box24, {
1688
1760
  css: styles.label,
1689
1761
  ...stateProps
1690
1762
  }, props.children));
@@ -1693,8 +1765,8 @@ var Radio = forwardRef8(
1693
1765
  Radio.Group = RadioGroup;
1694
1766
 
1695
1767
  // src/Select/Select.tsx
1696
- import React44, {
1697
- forwardRef as forwardRef10,
1768
+ import React45, {
1769
+ forwardRef as forwardRef11,
1698
1770
  useRef as useRef9
1699
1771
  } from "react";
1700
1772
  import { useButton as useButton4 } from "@react-aria/button";
@@ -1703,19 +1775,20 @@ import { useLocalizedStringFormatter } from "@react-aria/i18n";
1703
1775
  import { HiddenSelect, useSelect } from "@react-aria/select";
1704
1776
  import { useSelectState } from "@react-stately/select";
1705
1777
  import { Item as Item2, Section } from "@react-stately/collections";
1706
- import { mergeProps as mergeProps6, useObjectRef as useObjectRef10 } from "@react-aria/utils";
1778
+ import { mergeProps as mergeProps7, useObjectRef as useObjectRef11 } from "@react-aria/utils";
1707
1779
  import {
1708
- Box as Box27,
1709
- useComponentStyles as useComponentStyles26,
1710
- useStateProps as useStateProps8
1780
+ Box as Box28,
1781
+ useComponentStyles as useComponentStyles24,
1782
+ useResponsiveValue as useResponsiveValue2,
1783
+ useStateProps as useStateProps10
1711
1784
  } from "@marigold/system";
1712
1785
 
1713
1786
  // src/ListBox/ListBox.tsx
1714
- import React43, { forwardRef as forwardRef9 } from "react";
1715
- import { useObjectRef as useObjectRef9 } from "@react-aria/utils";
1787
+ import React44, { forwardRef as forwardRef10 } from "react";
1788
+ import { useObjectRef as useObjectRef10 } from "@react-aria/utils";
1716
1789
  import {
1717
- Box as Box26,
1718
- useComponentStyles as useComponentStyles25
1790
+ Box as Box27,
1791
+ useComponentStyles as useComponentStyles23
1719
1792
  } from "@marigold/system";
1720
1793
  import { useListBox } from "@react-aria/listbox";
1721
1794
 
@@ -1725,14 +1798,14 @@ var ListBoxContext = createContext6({});
1725
1798
  var useListBoxContext = () => useContext6(ListBoxContext);
1726
1799
 
1727
1800
  // src/ListBox/ListBoxSection.tsx
1728
- import React42 from "react";
1801
+ import React43 from "react";
1729
1802
  import { useListBoxSection } from "@react-aria/listbox";
1730
- import { Box as Box25 } from "@marigold/system";
1803
+ import { Box as Box26 } from "@marigold/system";
1731
1804
 
1732
1805
  // src/ListBox/ListBoxOption.tsx
1733
- import React41, { useRef as useRef8 } from "react";
1806
+ import React42, { useRef as useRef8 } from "react";
1734
1807
  import { useOption } from "@react-aria/listbox";
1735
- import { Box as Box24, useStateProps as useStateProps7 } from "@marigold/system";
1808
+ import { Box as Box25, useStateProps as useStateProps9 } from "@marigold/system";
1736
1809
  var ListBoxOption = ({ item, state }) => {
1737
1810
  const ref = useRef8(null);
1738
1811
  const { optionProps, isSelected, isDisabled, isFocused } = useOption(
@@ -1743,12 +1816,12 @@ var ListBoxOption = ({ item, state }) => {
1743
1816
  ref
1744
1817
  );
1745
1818
  const { styles } = useListBoxContext();
1746
- const stateProps = useStateProps7({
1819
+ const stateProps = useStateProps9({
1747
1820
  selected: isSelected,
1748
1821
  disabled: isDisabled,
1749
1822
  focusVisible: isFocused
1750
1823
  });
1751
- return /* @__PURE__ */ React41.createElement(Box24, {
1824
+ return /* @__PURE__ */ React42.createElement(Box25, {
1752
1825
  as: "li",
1753
1826
  ref,
1754
1827
  css: styles.option,
@@ -1764,19 +1837,19 @@ var ListBoxSection = ({ section, state }) => {
1764
1837
  "aria-label": section["aria-label"]
1765
1838
  });
1766
1839
  const { styles } = useListBoxContext();
1767
- return /* @__PURE__ */ React42.createElement(Box25, {
1840
+ return /* @__PURE__ */ React43.createElement(Box26, {
1768
1841
  as: "li",
1769
1842
  css: styles.section,
1770
1843
  ...itemProps
1771
- }, section.rendered && /* @__PURE__ */ React42.createElement(Box25, {
1844
+ }, section.rendered && /* @__PURE__ */ React43.createElement(Box26, {
1772
1845
  css: styles.sectionTitle,
1773
1846
  ...headingProps
1774
- }, section.rendered), /* @__PURE__ */ React42.createElement(Box25, {
1847
+ }, section.rendered), /* @__PURE__ */ React43.createElement(Box26, {
1775
1848
  as: "ul",
1776
1849
  __baseCSS: { listStyle: "none", p: 0 },
1777
1850
  css: styles.list,
1778
1851
  ...groupProps
1779
- }, [...section.childNodes].map((node) => /* @__PURE__ */ React42.createElement(ListBoxOption, {
1852
+ }, [...section.childNodes].map((node) => /* @__PURE__ */ React43.createElement(ListBoxOption, {
1780
1853
  key: node.key,
1781
1854
  item: node,
1782
1855
  state
@@ -1784,31 +1857,31 @@ var ListBoxSection = ({ section, state }) => {
1784
1857
  };
1785
1858
 
1786
1859
  // src/ListBox/ListBox.tsx
1787
- var ListBox = forwardRef9(
1860
+ var ListBox = forwardRef10(
1788
1861
  ({ state, variant, size, ...props }, ref) => {
1789
- const innerRef = useObjectRef9(ref);
1862
+ const innerRef = useObjectRef10(ref);
1790
1863
  const { listBoxProps } = useListBox(props, state, innerRef);
1791
- const styles = useComponentStyles25(
1864
+ const styles = useComponentStyles23(
1792
1865
  "ListBox",
1793
1866
  { variant, size },
1794
1867
  { parts: ["container", "list", "option", "section", "sectionTitle"] }
1795
1868
  );
1796
- return /* @__PURE__ */ React43.createElement(ListBoxContext.Provider, {
1869
+ return /* @__PURE__ */ React44.createElement(ListBoxContext.Provider, {
1797
1870
  value: { styles }
1798
- }, /* @__PURE__ */ React43.createElement(Box26, {
1871
+ }, /* @__PURE__ */ React44.createElement(Box27, {
1799
1872
  css: styles.container
1800
- }, /* @__PURE__ */ React43.createElement(Box26, {
1873
+ }, /* @__PURE__ */ React44.createElement(Box27, {
1801
1874
  as: "ul",
1802
1875
  ref: innerRef,
1803
1876
  __baseCSS: { listStyle: "none", p: 0 },
1804
1877
  css: styles.list,
1805
1878
  ...listBoxProps
1806
1879
  }, [...state.collection].map(
1807
- (item) => item.type === "section" ? /* @__PURE__ */ React43.createElement(ListBoxSection, {
1880
+ (item) => item.type === "section" ? /* @__PURE__ */ React44.createElement(ListBoxSection, {
1808
1881
  key: item.key,
1809
1882
  section: item,
1810
1883
  state
1811
- }) : /* @__PURE__ */ React43.createElement(ListBoxOption, {
1884
+ }) : /* @__PURE__ */ React44.createElement(ListBoxOption, {
1812
1885
  key: item.key,
1813
1886
  item,
1814
1887
  state
@@ -1828,19 +1901,19 @@ var messages = {
1828
1901
  };
1829
1902
 
1830
1903
  // src/Select/Select.tsx
1831
- var Chevron = ({ css }) => /* @__PURE__ */ React44.createElement(Box27, {
1904
+ var Chevron = ({ css }) => /* @__PURE__ */ React45.createElement(Box28, {
1832
1905
  as: "svg",
1833
1906
  __baseCSS: { width: 16, height: 16, fill: "none" },
1834
1907
  css,
1835
1908
  viewBox: "0 0 24 24",
1836
1909
  stroke: "currentColor",
1837
1910
  strokeWidth: 2
1838
- }, /* @__PURE__ */ React44.createElement("path", {
1911
+ }, /* @__PURE__ */ React45.createElement("path", {
1839
1912
  strokeLinecap: "round",
1840
1913
  strokeLinejoin: "round",
1841
1914
  d: "M19 9l-7 7-7-7"
1842
1915
  }));
1843
- var Select = forwardRef10(
1916
+ var Select = forwardRef11(
1844
1917
  ({ variant, size, width, open, disabled, required, error, ...rest }, ref) => {
1845
1918
  const formatMessage = useLocalizedStringFormatter(messages);
1846
1919
  const props = {
@@ -1852,8 +1925,9 @@ var Select = forwardRef10(
1852
1925
  ...rest
1853
1926
  };
1854
1927
  const state = useSelectState(props);
1855
- const buttonRef = useObjectRef10(ref);
1928
+ const buttonRef = useObjectRef11(ref);
1856
1929
  const listboxRef = useRef9(null);
1930
+ const isSmallScreen = useResponsiveValue2([true, false, false], 2);
1857
1931
  const {
1858
1932
  labelProps,
1859
1933
  triggerProps,
@@ -1867,18 +1941,18 @@ var Select = forwardRef10(
1867
1941
  buttonRef
1868
1942
  );
1869
1943
  const { focusProps, isFocusVisible } = useFocusRing6();
1870
- const styles = useComponentStyles26(
1944
+ const styles = useComponentStyles24(
1871
1945
  "Select",
1872
1946
  { variant, size },
1873
1947
  { parts: ["container", "button", "icon"] }
1874
1948
  );
1875
- const stateProps = useStateProps8({
1949
+ const stateProps = useStateProps10({
1876
1950
  disabled,
1877
1951
  error,
1878
1952
  focusVisible: isFocusVisible,
1879
1953
  expanded: state.isOpen
1880
1954
  });
1881
- return /* @__PURE__ */ React44.createElement(FieldBase, {
1955
+ return /* @__PURE__ */ React45.createElement(FieldBase, {
1882
1956
  variant,
1883
1957
  size,
1884
1958
  width,
@@ -1892,13 +1966,13 @@ var Select = forwardRef10(
1892
1966
  stateProps,
1893
1967
  disabled,
1894
1968
  required
1895
- }, /* @__PURE__ */ React44.createElement(HiddenSelect, {
1969
+ }, /* @__PURE__ */ React45.createElement(HiddenSelect, {
1896
1970
  state,
1897
1971
  triggerRef: buttonRef,
1898
1972
  label: props.label,
1899
1973
  name: props.name,
1900
1974
  isDisabled: disabled
1901
- }), /* @__PURE__ */ React44.createElement(Box27, {
1975
+ }), /* @__PURE__ */ React45.createElement(Box28, {
1902
1976
  as: "button",
1903
1977
  __baseCSS: {
1904
1978
  display: "flex",
@@ -1909,21 +1983,29 @@ var Select = forwardRef10(
1909
1983
  },
1910
1984
  css: styles.button,
1911
1985
  ref: buttonRef,
1912
- ...mergeProps6(buttonProps, focusProps),
1986
+ ...mergeProps7(buttonProps, focusProps),
1913
1987
  ...stateProps
1914
- }, /* @__PURE__ */ React44.createElement(Box27, {
1988
+ }, /* @__PURE__ */ React45.createElement(Box28, {
1915
1989
  css: {
1916
1990
  overflow: "hidden",
1917
1991
  whiteSpace: "nowrap"
1918
1992
  },
1919
1993
  ...valueProps
1920
- }, state.selectedItem ? state.selectedItem.rendered : props.placeholder), /* @__PURE__ */ React44.createElement(Chevron, {
1994
+ }, state.selectedItem ? state.selectedItem.rendered : props.placeholder), /* @__PURE__ */ React45.createElement(Chevron, {
1921
1995
  css: styles.icon
1922
- })), /* @__PURE__ */ React44.createElement(Popover, {
1996
+ })), isSmallScreen ? /* @__PURE__ */ React45.createElement(Tray, {
1997
+ state
1998
+ }, /* @__PURE__ */ React45.createElement(ListBox, {
1999
+ ref: listboxRef,
2000
+ state,
2001
+ variant,
2002
+ size,
2003
+ ...menuProps
2004
+ })) : /* @__PURE__ */ React45.createElement(Popover, {
1923
2005
  state,
1924
2006
  triggerRef: buttonRef,
1925
2007
  scrollRef: listboxRef
1926
- }, /* @__PURE__ */ React44.createElement(ListBox, {
2008
+ }, /* @__PURE__ */ React45.createElement(ListBox, {
1927
2009
  ref: listboxRef,
1928
2010
  state,
1929
2011
  variant,
@@ -1936,18 +2018,18 @@ Select.Option = Item2;
1936
2018
  Select.Section = Section;
1937
2019
 
1938
2020
  // src/Slider/Slider.tsx
1939
- import React46, { forwardRef as forwardRef11 } from "react";
2021
+ import React47, { forwardRef as forwardRef12 } from "react";
1940
2022
  import { useSlider } from "@react-aria/slider";
1941
2023
  import { useSliderState } from "@react-stately/slider";
1942
2024
  import { useNumberFormatter } from "@react-aria/i18n";
1943
- import { useObjectRef as useObjectRef11 } from "@react-aria/utils";
1944
- import { useComponentStyles as useComponentStyles27 } from "@marigold/system";
2025
+ import { useObjectRef as useObjectRef12 } from "@react-aria/utils";
2026
+ import { useComponentStyles as useComponentStyles25 } from "@marigold/system";
1945
2027
 
1946
2028
  // src/Slider/Thumb.tsx
1947
- import React45, { useEffect } from "react";
2029
+ import React46, { useEffect } from "react";
1948
2030
  import { useSliderThumb } from "@react-aria/slider";
1949
- import { mergeProps as mergeProps7 } from "@react-aria/utils";
1950
- import { useStateProps as useStateProps9 } from "@marigold/system";
2031
+ import { mergeProps as mergeProps8 } from "@react-aria/utils";
2032
+ import { useStateProps as useStateProps11 } from "@marigold/system";
1951
2033
 
1952
2034
  // src/VisuallyHidden/VisuallyHidden.tsx
1953
2035
  import { VisuallyHidden } from "@react-aria/visually-hidden";
@@ -1956,10 +2038,10 @@ import { VisuallyHidden } from "@react-aria/visually-hidden";
1956
2038
  import { useFocusRing as useFocusRing7 } from "@react-aria/focus";
1957
2039
  var Thumb = ({ state, trackRef, styles, ...props }) => {
1958
2040
  const { disabled } = props;
1959
- const inputRef = React45.useRef(null);
2041
+ const inputRef = React46.useRef(null);
1960
2042
  const { isFocusVisible, focusProps, isFocused } = useFocusRing7();
1961
2043
  const focused = isFocused || isFocusVisible || state.isThumbDragging(0);
1962
- const stateProps = useStateProps9({
2044
+ const stateProps = useStateProps11({
1963
2045
  focus: focused,
1964
2046
  disabled
1965
2047
  });
@@ -1975,24 +2057,24 @@ var Thumb = ({ state, trackRef, styles, ...props }) => {
1975
2057
  useEffect(() => {
1976
2058
  state.setThumbEditable(0, !disabled);
1977
2059
  }, [disabled, state]);
1978
- return /* @__PURE__ */ React45.createElement(Box, {
2060
+ return /* @__PURE__ */ React46.createElement(Box, {
1979
2061
  __baseCSS: { top: "50%" },
1980
2062
  css: styles,
1981
2063
  ...thumbProps,
1982
2064
  ...stateProps
1983
- }, /* @__PURE__ */ React45.createElement(VisuallyHidden, null, /* @__PURE__ */ React45.createElement(Box, {
2065
+ }, /* @__PURE__ */ React46.createElement(VisuallyHidden, null, /* @__PURE__ */ React46.createElement(Box, {
1984
2066
  as: "input",
1985
2067
  type: "range",
1986
2068
  ref: inputRef,
1987
- ...mergeProps7(inputProps, focusProps)
2069
+ ...mergeProps8(inputProps, focusProps)
1988
2070
  })));
1989
2071
  };
1990
2072
 
1991
2073
  // src/Slider/Slider.tsx
1992
- var Slider = forwardRef11(
2074
+ var Slider = forwardRef12(
1993
2075
  ({ variant, size, width = "100%", ...props }, ref) => {
1994
2076
  const { formatOptions } = props;
1995
- const trackRef = useObjectRef11(ref);
2077
+ const trackRef = useObjectRef12(ref);
1996
2078
  const numberFormatter = useNumberFormatter(formatOptions);
1997
2079
  const state = useSliderState({ ...props, numberFormatter });
1998
2080
  const { groupProps, trackProps, labelProps, outputProps } = useSlider(
@@ -2003,12 +2085,12 @@ var Slider = forwardRef11(
2003
2085
  state,
2004
2086
  trackRef
2005
2087
  );
2006
- const styles = useComponentStyles27(
2088
+ const styles = useComponentStyles25(
2007
2089
  "Slider",
2008
2090
  { variant, size },
2009
2091
  { parts: ["track", "thumb", "label", "output"] }
2010
2092
  );
2011
- return /* @__PURE__ */ React46.createElement(Box, {
2093
+ return /* @__PURE__ */ React47.createElement(Box, {
2012
2094
  __baseCSS: {
2013
2095
  display: "flex",
2014
2096
  flexDirection: "column",
@@ -2016,18 +2098,18 @@ var Slider = forwardRef11(
2016
2098
  width
2017
2099
  },
2018
2100
  ...groupProps
2019
- }, /* @__PURE__ */ React46.createElement(Box, {
2101
+ }, /* @__PURE__ */ React47.createElement(Box, {
2020
2102
  __baseCSS: { display: "flex", alignSelf: "stretch" }
2021
- }, props.children && /* @__PURE__ */ React46.createElement(Box, {
2103
+ }, props.children && /* @__PURE__ */ React47.createElement(Box, {
2022
2104
  as: "label",
2023
2105
  __baseCSS: styles.label,
2024
2106
  ...labelProps
2025
- }, props.children), /* @__PURE__ */ React46.createElement(Box, {
2107
+ }, props.children), /* @__PURE__ */ React47.createElement(Box, {
2026
2108
  as: "output",
2027
2109
  ...outputProps,
2028
2110
  __baseCSS: { flex: "1 0 auto", textAlign: "end" },
2029
2111
  css: styles.output
2030
- }, state.getThumbValueLabel(0))), /* @__PURE__ */ React46.createElement(Box, {
2112
+ }, state.getThumbValueLabel(0))), /* @__PURE__ */ React47.createElement(Box, {
2031
2113
  ...trackProps,
2032
2114
  ref: trackRef,
2033
2115
  __baseCSS: {
@@ -2035,13 +2117,13 @@ var Slider = forwardRef11(
2035
2117
  width: "100%",
2036
2118
  cursor: props.disabled ? "not-allowed" : "pointer"
2037
2119
  }
2038
- }, /* @__PURE__ */ React46.createElement(Box, {
2120
+ }, /* @__PURE__ */ React47.createElement(Box, {
2039
2121
  __baseCSS: {
2040
2122
  top: "50%",
2041
2123
  transform: "translateY(-50%)"
2042
2124
  },
2043
2125
  css: styles.track
2044
- }), /* @__PURE__ */ React46.createElement(Thumb, {
2126
+ }), /* @__PURE__ */ React47.createElement(Thumb, {
2045
2127
  state,
2046
2128
  trackRef,
2047
2129
  disabled: props.disabled,
@@ -2051,16 +2133,16 @@ var Slider = forwardRef11(
2051
2133
  );
2052
2134
 
2053
2135
  // src/Split/Split.tsx
2054
- import React47 from "react";
2055
- import { Box as Box28 } from "@marigold/system";
2056
- var Split = (props) => /* @__PURE__ */ React47.createElement(Box28, {
2136
+ import React48 from "react";
2137
+ import { Box as Box29 } from "@marigold/system";
2138
+ var Split = (props) => /* @__PURE__ */ React48.createElement(Box29, {
2057
2139
  ...props,
2058
2140
  role: "separator",
2059
2141
  css: { flexGrow: 1 }
2060
2142
  });
2061
2143
 
2062
2144
  // src/Stack/Stack.tsx
2063
- import React48 from "react";
2145
+ import React49 from "react";
2064
2146
  var ALIGNMENT_X2 = {
2065
2147
  none: "initial",
2066
2148
  left: "flex-start",
@@ -2080,7 +2162,7 @@ var Stack = ({
2080
2162
  alignY = "none",
2081
2163
  stretch = false,
2082
2164
  ...props
2083
- }) => /* @__PURE__ */ React48.createElement(Box, {
2165
+ }) => /* @__PURE__ */ React49.createElement(Box, {
2084
2166
  css: {
2085
2167
  display: "flex",
2086
2168
  flexDirection: "column",
@@ -2094,16 +2176,16 @@ var Stack = ({
2094
2176
  }, children);
2095
2177
 
2096
2178
  // src/Switch/Switch.tsx
2097
- import React49, { forwardRef as forwardRef12 } from "react";
2179
+ import React50, { forwardRef as forwardRef13 } from "react";
2098
2180
  import { useFocusRing as useFocusRing8 } from "@react-aria/focus";
2099
2181
  import { useSwitch } from "@react-aria/switch";
2100
- import { useObjectRef as useObjectRef12 } from "@react-aria/utils";
2182
+ import { useObjectRef as useObjectRef13 } from "@react-aria/utils";
2101
2183
  import { useToggleState as useToggleState2 } from "@react-stately/toggle";
2102
2184
  import {
2103
- useComponentStyles as useComponentStyles28,
2104
- useStateProps as useStateProps10
2185
+ useComponentStyles as useComponentStyles26,
2186
+ useStateProps as useStateProps12
2105
2187
  } from "@marigold/system";
2106
- var Switch = forwardRef12(
2188
+ var Switch = forwardRef13(
2107
2189
  ({
2108
2190
  variant,
2109
2191
  size,
@@ -2114,7 +2196,7 @@ var Switch = forwardRef12(
2114
2196
  defaultChecked,
2115
2197
  ...rest
2116
2198
  }, ref) => {
2117
- const inputRef = useObjectRef12(ref);
2199
+ const inputRef = useObjectRef13(ref);
2118
2200
  const props = {
2119
2201
  isSelected: checked,
2120
2202
  isDisabled: disabled,
@@ -2125,18 +2207,18 @@ var Switch = forwardRef12(
2125
2207
  const state = useToggleState2(props);
2126
2208
  const { inputProps } = useSwitch(props, state, inputRef);
2127
2209
  const { isFocusVisible, focusProps } = useFocusRing8();
2128
- const stateProps = useStateProps10({
2210
+ const stateProps = useStateProps12({
2129
2211
  checked: state.isSelected,
2130
2212
  disabled,
2131
2213
  readOnly,
2132
2214
  focus: isFocusVisible
2133
2215
  });
2134
- const styles = useComponentStyles28(
2216
+ const styles = useComponentStyles26(
2135
2217
  "Switch",
2136
2218
  { variant, size },
2137
2219
  { parts: ["container", "label", "track", "thumb"] }
2138
2220
  );
2139
- return /* @__PURE__ */ React49.createElement(Box, {
2221
+ return /* @__PURE__ */ React50.createElement(Box, {
2140
2222
  as: "label",
2141
2223
  __baseCSS: {
2142
2224
  display: "flex",
@@ -2147,7 +2229,7 @@ var Switch = forwardRef12(
2147
2229
  width
2148
2230
  },
2149
2231
  css: styles.container
2150
- }, /* @__PURE__ */ React49.createElement(Box, {
2232
+ }, /* @__PURE__ */ React50.createElement(Box, {
2151
2233
  as: "input",
2152
2234
  ref: inputRef,
2153
2235
  css: {
@@ -2162,9 +2244,9 @@ var Switch = forwardRef12(
2162
2244
  },
2163
2245
  ...inputProps,
2164
2246
  ...focusProps
2165
- }), props.children && /* @__PURE__ */ React49.createElement(Box, {
2247
+ }), props.children && /* @__PURE__ */ React50.createElement(Box, {
2166
2248
  css: styles.label
2167
- }, props.children), /* @__PURE__ */ React49.createElement(Box, {
2249
+ }, props.children), /* @__PURE__ */ React50.createElement(Box, {
2168
2250
  __baseCSS: {
2169
2251
  position: "relative",
2170
2252
  width: 48,
@@ -2175,7 +2257,7 @@ var Switch = forwardRef12(
2175
2257
  },
2176
2258
  css: styles.track,
2177
2259
  ...stateProps
2178
- }, /* @__PURE__ */ React49.createElement(Box, {
2260
+ }, /* @__PURE__ */ React50.createElement(Box, {
2179
2261
  __baseCSS: {
2180
2262
  display: "block",
2181
2263
  position: "absolute",
@@ -2199,7 +2281,7 @@ var Switch = forwardRef12(
2199
2281
  );
2200
2282
 
2201
2283
  // src/Table/Table.tsx
2202
- import React58, { useRef as useRef16 } from "react";
2284
+ import React59, { useRef as useRef16 } from "react";
2203
2285
  import { useTable } from "@react-aria/table";
2204
2286
  import {
2205
2287
  Cell,
@@ -2210,8 +2292,8 @@ import {
2210
2292
  useTableState
2211
2293
  } from "@react-stately/table";
2212
2294
  import {
2213
- Box as Box34,
2214
- useComponentStyles as useComponentStyles29
2295
+ Box as Box35,
2296
+ useComponentStyles as useComponentStyles28
2215
2297
  } from "@marigold/system";
2216
2298
 
2217
2299
  // src/Table/Context.tsx
@@ -2220,21 +2302,21 @@ var TableContext = createContext7({});
2220
2302
  var useTableContext = () => useContext7(TableContext);
2221
2303
 
2222
2304
  // src/Table/TableBody.tsx
2223
- import React50 from "react";
2305
+ import React51 from "react";
2224
2306
  import { useTableRowGroup } from "@react-aria/table";
2225
2307
  var TableBody = ({ children }) => {
2226
2308
  const { rowGroupProps } = useTableRowGroup();
2227
- return /* @__PURE__ */ React50.createElement("tbody", {
2309
+ return /* @__PURE__ */ React51.createElement("tbody", {
2228
2310
  ...rowGroupProps
2229
2311
  }, children);
2230
2312
  };
2231
2313
 
2232
2314
  // src/Table/TableCell.tsx
2233
- import React51, { useRef as useRef10 } from "react";
2315
+ import React52, { useRef as useRef10 } from "react";
2234
2316
  import { useTableCell } from "@react-aria/table";
2235
2317
  import { useFocusRing as useFocusRing9 } from "@react-aria/focus";
2236
- import { mergeProps as mergeProps8 } from "@react-aria/utils";
2237
- import { Box as Box29, useStateProps as useStateProps11 } from "@marigold/system";
2318
+ import { mergeProps as mergeProps9 } from "@react-aria/utils";
2319
+ import { Box as Box30, useStateProps as useStateProps13 } from "@marigold/system";
2238
2320
  var TableCell = ({ cell }) => {
2239
2321
  const ref = useRef10(null);
2240
2322
  const { interactive, state, styles } = useTableContext();
@@ -2252,22 +2334,22 @@ var TableCell = ({ cell }) => {
2252
2334
  onPointerDown: (e) => e.stopPropagation()
2253
2335
  };
2254
2336
  const { focusProps, isFocusVisible } = useFocusRing9();
2255
- const stateProps = useStateProps11({ disabled, focusVisible: isFocusVisible });
2256
- return /* @__PURE__ */ React51.createElement(Box29, {
2337
+ const stateProps = useStateProps13({ disabled, focusVisible: isFocusVisible });
2338
+ return /* @__PURE__ */ React52.createElement(Box30, {
2257
2339
  as: "td",
2258
2340
  ref,
2259
2341
  css: styles.cell,
2260
- ...mergeProps8(cellProps, focusProps),
2342
+ ...mergeProps9(cellProps, focusProps),
2261
2343
  ...stateProps
2262
2344
  }, cell.rendered);
2263
2345
  };
2264
2346
 
2265
2347
  // src/Table/TableCheckboxCell.tsx
2266
- import React52, { useRef as useRef11 } from "react";
2348
+ import React53, { useRef as useRef11 } from "react";
2267
2349
  import { useTableCell as useTableCell2, useTableSelectionCheckbox } from "@react-aria/table";
2268
2350
  import { useFocusRing as useFocusRing10 } from "@react-aria/focus";
2269
- import { mergeProps as mergeProps9 } from "@react-aria/utils";
2270
- import { Box as Box30, useStateProps as useStateProps12 } from "@marigold/system";
2351
+ import { mergeProps as mergeProps10 } from "@react-aria/utils";
2352
+ import { Box as Box31, useStateProps as useStateProps14 } from "@marigold/system";
2271
2353
 
2272
2354
  // src/Table/utils.ts
2273
2355
  var mapCheckboxProps = ({
@@ -2305,8 +2387,8 @@ var TableCheckboxCell = ({ cell }) => {
2305
2387
  useTableSelectionCheckbox({ key: cell.parentKey }, state)
2306
2388
  );
2307
2389
  const { focusProps, isFocusVisible } = useFocusRing10();
2308
- const stateProps = useStateProps12({ disabled, focusVisible: isFocusVisible });
2309
- return /* @__PURE__ */ React52.createElement(Box30, {
2390
+ const stateProps = useStateProps14({ disabled, focusVisible: isFocusVisible });
2391
+ return /* @__PURE__ */ React53.createElement(Box31, {
2310
2392
  as: "td",
2311
2393
  ref,
2312
2394
  __baseCSS: {
@@ -2315,24 +2397,24 @@ var TableCheckboxCell = ({ cell }) => {
2315
2397
  lineHeight: 1
2316
2398
  },
2317
2399
  css: styles.cell,
2318
- ...mergeProps9(gridCellProps, focusProps),
2400
+ ...mergeProps10(gridCellProps, focusProps),
2319
2401
  ...stateProps
2320
- }, /* @__PURE__ */ React52.createElement(Checkbox, {
2402
+ }, /* @__PURE__ */ React53.createElement(Checkbox, {
2321
2403
  ...checkboxProps
2322
2404
  }));
2323
2405
  };
2324
2406
 
2325
2407
  // src/Table/TableColumnHeader.tsx
2326
- import React53, { useRef as useRef12 } from "react";
2408
+ import React54, { useRef as useRef12 } from "react";
2327
2409
  import { useFocusRing as useFocusRing11 } from "@react-aria/focus";
2328
2410
  import { useHover as useHover6 } from "@react-aria/interactions";
2329
2411
  import { useTableColumnHeader } from "@react-aria/table";
2330
- import { mergeProps as mergeProps10 } from "@react-aria/utils";
2331
- import { Box as Box31, useStateProps as useStateProps13 } from "@marigold/system";
2412
+ import { mergeProps as mergeProps11 } from "@react-aria/utils";
2413
+ import { Box as Box32, useStateProps as useStateProps15 } from "@marigold/system";
2332
2414
  var SortIndicator = ({
2333
2415
  direction = "ascending",
2334
2416
  visible
2335
- }) => /* @__PURE__ */ React53.createElement(Box31, {
2417
+ }) => /* @__PURE__ */ React54.createElement(Box32, {
2336
2418
  as: "span",
2337
2419
  role: "presentation",
2338
2420
  "aria-hidden": "true",
@@ -2355,57 +2437,63 @@ var TableColumnHeader = ({ column }) => {
2355
2437
  );
2356
2438
  const { hoverProps, isHovered } = useHover6({});
2357
2439
  const { focusProps, isFocusVisible } = useFocusRing11();
2358
- const stateProps = useStateProps13({
2440
+ const stateProps = useStateProps15({
2359
2441
  hover: isHovered,
2360
2442
  focusVisible: isFocusVisible
2361
2443
  });
2362
- return /* @__PURE__ */ React53.createElement(Box31, {
2444
+ return /* @__PURE__ */ React54.createElement(Box32, {
2363
2445
  as: "th",
2364
2446
  colSpan: column.colspan,
2365
2447
  ref,
2366
2448
  __baseCSS: { cursor: "default" },
2367
2449
  css: styles.header,
2368
- ...mergeProps10(columnHeaderProps, hoverProps, focusProps),
2450
+ ...mergeProps11(columnHeaderProps, hoverProps, focusProps),
2369
2451
  ...stateProps
2370
- }, column.rendered, column.props.allowsSorting && /* @__PURE__ */ React53.createElement(SortIndicator, {
2452
+ }, column.rendered, column.props.allowsSorting && /* @__PURE__ */ React54.createElement(SortIndicator, {
2371
2453
  direction: (_a = state.sortDescriptor) == null ? void 0 : _a.direction,
2372
2454
  visible: ((_b = state.sortDescriptor) == null ? void 0 : _b.column) === column.key
2373
2455
  }));
2374
2456
  };
2375
2457
 
2376
2458
  // src/Table/TableHeader.tsx
2377
- import React54 from "react";
2459
+ import React55 from "react";
2378
2460
  import { useTableRowGroup as useTableRowGroup2 } from "@react-aria/table";
2379
2461
  var TableHeader = ({ children }) => {
2380
2462
  const { rowGroupProps } = useTableRowGroup2();
2381
- return /* @__PURE__ */ React54.createElement("thead", {
2463
+ return /* @__PURE__ */ React55.createElement("thead", {
2382
2464
  ...rowGroupProps
2383
2465
  }, children);
2384
2466
  };
2385
2467
 
2386
2468
  // src/Table/TableHeaderRow.tsx
2387
- import React55, { useRef as useRef13 } from "react";
2469
+ import React56, { useRef as useRef13 } from "react";
2388
2470
  import { useTableHeaderRow } from "@react-aria/table";
2389
2471
  var TableHeaderRow = ({ item, children }) => {
2390
2472
  const { state } = useTableContext();
2391
2473
  const ref = useRef13(null);
2392
2474
  const { rowProps } = useTableHeaderRow({ node: item }, state, ref);
2393
- return /* @__PURE__ */ React55.createElement("tr", {
2475
+ return /* @__PURE__ */ React56.createElement("tr", {
2394
2476
  ...rowProps,
2395
2477
  ref
2396
2478
  }, children);
2397
2479
  };
2398
2480
 
2399
2481
  // src/Table/TableRow.tsx
2400
- import React56, { useRef as useRef14 } from "react";
2482
+ import React57, { useRef as useRef14 } from "react";
2401
2483
  import { useFocusRing as useFocusRing12 } from "@react-aria/focus";
2402
2484
  import { useHover as useHover7 } from "@react-aria/interactions";
2403
2485
  import { useTableRow } from "@react-aria/table";
2404
- import { mergeProps as mergeProps11 } from "@react-aria/utils";
2405
- import { Box as Box32, useStateProps as useStateProps14 } from "@marigold/system";
2486
+ import { mergeProps as mergeProps12 } from "@react-aria/utils";
2487
+ import { Box as Box33, useComponentStyles as useComponentStyles27, useStateProps as useStateProps16 } from "@marigold/system";
2406
2488
  var TableRow = ({ children, row }) => {
2407
2489
  const ref = useRef14(null);
2408
- const { interactive, state, styles } = useTableContext();
2490
+ const { interactive, state, ...ctx } = useTableContext();
2491
+ const { variant, size } = row.props;
2492
+ const { row: styles } = useComponentStyles27(
2493
+ "Table",
2494
+ { variant: variant || ctx.variant, size: size || ctx.size },
2495
+ { parts: ["row"] }
2496
+ );
2409
2497
  const { rowProps, isPressed } = useTableRow(
2410
2498
  {
2411
2499
  node: row
@@ -2419,35 +2507,35 @@ var TableRow = ({ children, row }) => {
2419
2507
  const { hoverProps, isHovered } = useHover7({
2420
2508
  isDisabled: disabled || !interactive
2421
2509
  });
2422
- const stateProps = useStateProps14({
2510
+ const stateProps = useStateProps16({
2423
2511
  disabled,
2424
2512
  selected,
2425
2513
  hover: isHovered,
2426
2514
  focusVisible: isFocusVisible,
2427
2515
  active: isPressed
2428
2516
  });
2429
- return /* @__PURE__ */ React56.createElement(Box32, {
2517
+ return /* @__PURE__ */ React57.createElement(Box33, {
2430
2518
  as: "tr",
2431
2519
  ref,
2432
2520
  __baseCSS: {
2433
2521
  cursor: !interactive ? "text" : disabled ? "default" : "pointer"
2434
2522
  },
2435
- css: styles.row,
2436
- ...mergeProps11(rowProps, focusProps, hoverProps),
2523
+ css: styles,
2524
+ ...mergeProps12(rowProps, focusProps, hoverProps),
2437
2525
  ...stateProps
2438
2526
  }, children);
2439
2527
  };
2440
2528
 
2441
2529
  // src/Table/TableSelectAllCell.tsx
2442
- import React57, { useRef as useRef15 } from "react";
2530
+ import React58, { useRef as useRef15 } from "react";
2443
2531
  import { useFocusRing as useFocusRing13 } from "@react-aria/focus";
2444
2532
  import { useHover as useHover8 } from "@react-aria/interactions";
2445
2533
  import {
2446
2534
  useTableColumnHeader as useTableColumnHeader2,
2447
2535
  useTableSelectAllCheckbox
2448
2536
  } from "@react-aria/table";
2449
- import { mergeProps as mergeProps12 } from "@react-aria/utils";
2450
- import { Box as Box33, useStateProps as useStateProps15 } from "@marigold/system";
2537
+ import { mergeProps as mergeProps13 } from "@react-aria/utils";
2538
+ import { Box as Box34, useStateProps as useStateProps17 } from "@marigold/system";
2451
2539
  var TableSelectAllCell = ({ column }) => {
2452
2540
  const ref = useRef15(null);
2453
2541
  const { state, styles } = useTableContext();
@@ -2461,11 +2549,11 @@ var TableSelectAllCell = ({ column }) => {
2461
2549
  const { checkboxProps } = mapCheckboxProps(useTableSelectAllCheckbox(state));
2462
2550
  const { hoverProps, isHovered } = useHover8({});
2463
2551
  const { focusProps, isFocusVisible } = useFocusRing13();
2464
- const stateProps = useStateProps15({
2552
+ const stateProps = useStateProps17({
2465
2553
  hover: isHovered,
2466
2554
  focusVisible: isFocusVisible
2467
2555
  });
2468
- return /* @__PURE__ */ React57.createElement(Box33, {
2556
+ return /* @__PURE__ */ React58.createElement(Box34, {
2469
2557
  as: "th",
2470
2558
  ref,
2471
2559
  __baseCSS: {
@@ -2474,9 +2562,9 @@ var TableSelectAllCell = ({ column }) => {
2474
2562
  lineHeight: 1
2475
2563
  },
2476
2564
  css: styles.header,
2477
- ...mergeProps12(columnHeaderProps, hoverProps, focusProps),
2565
+ ...mergeProps13(columnHeaderProps, hoverProps, focusProps),
2478
2566
  ...stateProps
2479
- }, /* @__PURE__ */ React57.createElement(Checkbox, {
2567
+ }, /* @__PURE__ */ React58.createElement(Checkbox, {
2480
2568
  ...checkboxProps
2481
2569
  }));
2482
2570
  };
@@ -2497,15 +2585,15 @@ var Table = ({
2497
2585
  showSelectionCheckboxes: selectionMode === "multiple" && props.selectionBehavior !== "replace"
2498
2586
  });
2499
2587
  const { gridProps } = useTable(props, state, tableRef);
2500
- const styles = useComponentStyles29(
2588
+ const styles = useComponentStyles28(
2501
2589
  "Table",
2502
2590
  { variant, size },
2503
2591
  { parts: ["table", "header", "row", "cell"] }
2504
2592
  );
2505
2593
  const { collection } = state;
2506
- return /* @__PURE__ */ React58.createElement(TableContext.Provider, {
2594
+ return /* @__PURE__ */ React59.createElement(TableContext.Provider, {
2507
2595
  value: { state, interactive, styles }
2508
- }, /* @__PURE__ */ React58.createElement(Box34, {
2596
+ }, /* @__PURE__ */ React59.createElement(Box35, {
2509
2597
  as: "table",
2510
2598
  ref: tableRef,
2511
2599
  __baseCSS: {
@@ -2517,30 +2605,30 @@ var Table = ({
2517
2605
  },
2518
2606
  css: styles.table,
2519
2607
  ...gridProps
2520
- }, /* @__PURE__ */ React58.createElement(TableHeader, null, collection.headerRows.map((headerRow) => /* @__PURE__ */ React58.createElement(TableHeaderRow, {
2608
+ }, /* @__PURE__ */ React59.createElement(TableHeader, null, collection.headerRows.map((headerRow) => /* @__PURE__ */ React59.createElement(TableHeaderRow, {
2521
2609
  key: headerRow.key,
2522
2610
  item: headerRow
2523
2611
  }, [...headerRow.childNodes].map(
2524
2612
  (column) => {
2525
2613
  var _a;
2526
- return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ React58.createElement(TableSelectAllCell, {
2614
+ return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ React59.createElement(TableSelectAllCell, {
2527
2615
  key: column.key,
2528
2616
  column
2529
- }) : /* @__PURE__ */ React58.createElement(TableColumnHeader, {
2617
+ }) : /* @__PURE__ */ React59.createElement(TableColumnHeader, {
2530
2618
  key: column.key,
2531
2619
  column
2532
2620
  });
2533
2621
  }
2534
- )))), /* @__PURE__ */ React58.createElement(TableBody, null, [...collection.body.childNodes].map((row) => /* @__PURE__ */ React58.createElement(TableRow, {
2622
+ )))), /* @__PURE__ */ React59.createElement(TableBody, null, [...collection.body.childNodes].map((row) => /* @__PURE__ */ React59.createElement(TableRow, {
2535
2623
  key: row.key,
2536
2624
  row
2537
2625
  }, [...row.childNodes].map(
2538
2626
  (cell) => {
2539
2627
  var _a;
2540
- return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ React58.createElement(TableCheckboxCell, {
2628
+ return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ React59.createElement(TableCheckboxCell, {
2541
2629
  key: cell.key,
2542
2630
  cell
2543
- }) : /* @__PURE__ */ React58.createElement(TableCell, {
2631
+ }) : /* @__PURE__ */ React59.createElement(TableCell, {
2544
2632
  key: cell.key,
2545
2633
  cell
2546
2634
  });
@@ -2554,11 +2642,11 @@ Table.Header = Header2;
2554
2642
  Table.Row = Row;
2555
2643
 
2556
2644
  // src/Text/Text.tsx
2557
- import React59 from "react";
2645
+ import React60 from "react";
2558
2646
  import {
2559
- useComponentStyles as useComponentStyles30
2647
+ useComponentStyles as useComponentStyles29
2560
2648
  } from "@marigold/system";
2561
- import { Box as Box35 } from "@marigold/system";
2649
+ import { Box as Box36 } from "@marigold/system";
2562
2650
  var Text = ({
2563
2651
  variant,
2564
2652
  size,
@@ -2571,11 +2659,11 @@ var Text = ({
2571
2659
  children,
2572
2660
  ...props
2573
2661
  }) => {
2574
- const styles = useComponentStyles30("Text", {
2662
+ const styles = useComponentStyles29("Text", {
2575
2663
  variant,
2576
2664
  size
2577
2665
  });
2578
- return /* @__PURE__ */ React59.createElement(Box35, {
2666
+ return /* @__PURE__ */ React60.createElement(Box36, {
2579
2667
  as: "p",
2580
2668
  ...props,
2581
2669
  css: [
@@ -2586,17 +2674,17 @@ var Text = ({
2586
2674
  };
2587
2675
 
2588
2676
  // src/TextArea/TextArea.tsx
2589
- import React60, { forwardRef as forwardRef13 } from "react";
2677
+ import React61, { forwardRef as forwardRef14 } from "react";
2590
2678
  import { useHover as useHover9 } from "@react-aria/interactions";
2591
2679
  import { useFocusRing as useFocusRing14 } from "@react-aria/focus";
2592
2680
  import { useTextField } from "@react-aria/textfield";
2593
- import { useObjectRef as useObjectRef13 } from "@react-aria/utils";
2681
+ import { useObjectRef as useObjectRef14 } from "@react-aria/utils";
2594
2682
  import {
2595
- Box as Box36,
2596
- useComponentStyles as useComponentStyles31,
2597
- useStateProps as useStateProps16
2683
+ Box as Box37,
2684
+ useComponentStyles as useComponentStyles30,
2685
+ useStateProps as useStateProps18
2598
2686
  } from "@marigold/system";
2599
- var TextArea = forwardRef13(
2687
+ var TextArea = forwardRef14(
2600
2688
  ({
2601
2689
  variant,
2602
2690
  size,
@@ -2609,7 +2697,7 @@ var TextArea = forwardRef13(
2609
2697
  ...props
2610
2698
  }, ref) => {
2611
2699
  const { label, description, errorMessage } = props;
2612
- const textAreaRef = useObjectRef13(ref);
2700
+ const textAreaRef = useObjectRef14(ref);
2613
2701
  const { labelProps, inputProps, descriptionProps, errorMessageProps } = useTextField(
2614
2702
  {
2615
2703
  inputElementType: "textarea",
@@ -2623,15 +2711,15 @@ var TextArea = forwardRef13(
2623
2711
  );
2624
2712
  const { hoverProps, isHovered } = useHover9({});
2625
2713
  const { focusProps, isFocusVisible } = useFocusRing14();
2626
- const stateProps = useStateProps16({
2714
+ const stateProps = useStateProps18({
2627
2715
  hover: isHovered,
2628
2716
  focus: isFocusVisible,
2629
2717
  disabled,
2630
2718
  readOnly,
2631
2719
  error
2632
2720
  });
2633
- const styles = useComponentStyles31("TextArea", { variant, size });
2634
- return /* @__PURE__ */ React60.createElement(FieldBase, {
2721
+ const styles = useComponentStyles30("TextArea", { variant, size });
2722
+ return /* @__PURE__ */ React61.createElement(FieldBase, {
2635
2723
  label,
2636
2724
  labelProps,
2637
2725
  required,
@@ -2644,7 +2732,7 @@ var TextArea = forwardRef13(
2644
2732
  variant,
2645
2733
  size,
2646
2734
  width
2647
- }, /* @__PURE__ */ React60.createElement(Box36, {
2735
+ }, /* @__PURE__ */ React61.createElement(Box37, {
2648
2736
  as: "textarea",
2649
2737
  css: styles,
2650
2738
  ref: textAreaRef,
@@ -2658,16 +2746,16 @@ var TextArea = forwardRef13(
2658
2746
  );
2659
2747
 
2660
2748
  // src/TextField/TextField.tsx
2661
- import React61, { forwardRef as forwardRef14 } from "react";
2749
+ import React62, { forwardRef as forwardRef15 } from "react";
2662
2750
  import { useHover as useHover10 } from "@react-aria/interactions";
2663
2751
  import { useFocusRing as useFocusRing15 } from "@react-aria/focus";
2664
2752
  import { useTextField as useTextField2 } from "@react-aria/textfield";
2665
- import { useObjectRef as useObjectRef14 } from "@react-aria/utils";
2666
- import { useStateProps as useStateProps17 } from "@marigold/system";
2667
- var TextField = forwardRef14(
2753
+ import { useObjectRef as useObjectRef15 } from "@react-aria/utils";
2754
+ import { useStateProps as useStateProps19 } from "@marigold/system";
2755
+ var TextField = forwardRef15(
2668
2756
  ({ variant, size, width, disabled, required, readOnly, error, ...props }, ref) => {
2669
2757
  const { label, description, errorMessage, autoFocus } = props;
2670
- const inputRef = useObjectRef14(ref);
2758
+ const inputRef = useObjectRef15(ref);
2671
2759
  const { labelProps, inputProps, descriptionProps, errorMessageProps } = useTextField2(
2672
2760
  {
2673
2761
  isDisabled: disabled,
@@ -2683,14 +2771,14 @@ var TextField = forwardRef14(
2683
2771
  isTextInput: true,
2684
2772
  autoFocus
2685
2773
  });
2686
- const stateProps = useStateProps17({
2774
+ const stateProps = useStateProps19({
2687
2775
  hover: isHovered,
2688
2776
  focus: isFocusVisible,
2689
2777
  disabled,
2690
2778
  readOnly,
2691
2779
  error
2692
2780
  });
2693
- return /* @__PURE__ */ React61.createElement(FieldBase, {
2781
+ return /* @__PURE__ */ React62.createElement(FieldBase, {
2694
2782
  label,
2695
2783
  labelProps,
2696
2784
  required,
@@ -2703,7 +2791,7 @@ var TextField = forwardRef14(
2703
2791
  variant,
2704
2792
  size,
2705
2793
  width
2706
- }, /* @__PURE__ */ React61.createElement(Input, {
2794
+ }, /* @__PURE__ */ React62.createElement(Input, {
2707
2795
  ref: inputRef,
2708
2796
  variant,
2709
2797
  size,
@@ -2716,7 +2804,7 @@ var TextField = forwardRef14(
2716
2804
  );
2717
2805
 
2718
2806
  // src/Tiles/Tiles.tsx
2719
- import React62 from "react";
2807
+ import React63 from "react";
2720
2808
  import { useTheme as useTheme3 } from "@marigold/system";
2721
2809
  var Tiles = ({
2722
2810
  space = "none",
@@ -2732,7 +2820,7 @@ var Tiles = ({
2732
2820
  if (stretch) {
2733
2821
  column = `minmax(${column}, 1fr)`;
2734
2822
  }
2735
- return /* @__PURE__ */ React62.createElement(Box, {
2823
+ return /* @__PURE__ */ React63.createElement(Box, {
2736
2824
  ...props,
2737
2825
  css: {
2738
2826
  display: "grid",
@@ -2744,11 +2832,11 @@ var Tiles = ({
2744
2832
  };
2745
2833
 
2746
2834
  // src/Tooltip/Tooltip.tsx
2747
- import React64 from "react";
2835
+ import React65 from "react";
2748
2836
  import { useTooltip } from "@react-aria/tooltip";
2749
2837
  import {
2750
- Box as Box37,
2751
- useComponentStyles as useComponentStyles32
2838
+ Box as Box38,
2839
+ useComponentStyles as useComponentStyles31
2752
2840
  } from "@marigold/system";
2753
2841
 
2754
2842
  // src/Tooltip/Context.ts
@@ -2757,7 +2845,7 @@ var TooltipContext = createContext8({});
2757
2845
  var useTooltipContext = () => useContext8(TooltipContext);
2758
2846
 
2759
2847
  // src/Tooltip/TooltipTrigger.tsx
2760
- import React63, { useRef as useRef17 } from "react";
2848
+ import React64, { useRef as useRef17 } from "react";
2761
2849
  import { FocusableProvider } from "@react-aria/focus";
2762
2850
  import { useOverlayPosition } from "@react-aria/overlays";
2763
2851
  import { useTooltipTrigger } from "@react-aria/tooltip";
@@ -2770,7 +2858,7 @@ var TooltipTrigger = ({
2770
2858
  children,
2771
2859
  ...rest
2772
2860
  }) => {
2773
- const [tooltipTrigger, tooltip] = React63.Children.toArray(children);
2861
+ const [tooltipTrigger, tooltip] = React64.Children.toArray(children);
2774
2862
  const props = {
2775
2863
  ...rest,
2776
2864
  isDisabled: disabled,
@@ -2798,10 +2886,10 @@ var TooltipTrigger = ({
2798
2886
  isOpen: state.isOpen,
2799
2887
  overlayRef
2800
2888
  });
2801
- return /* @__PURE__ */ React63.createElement(FocusableProvider, {
2889
+ return /* @__PURE__ */ React64.createElement(FocusableProvider, {
2802
2890
  ref: tooltipTriggerRef,
2803
2891
  ...triggerProps
2804
- }, tooltipTrigger, /* @__PURE__ */ React63.createElement(TooltipContext.Provider, {
2892
+ }, tooltipTrigger, /* @__PURE__ */ React64.createElement(TooltipContext.Provider, {
2805
2893
  value: {
2806
2894
  state,
2807
2895
  overlayRef,
@@ -2810,7 +2898,7 @@ var TooltipTrigger = ({
2810
2898
  ...tooltipProps,
2811
2899
  ...positionProps
2812
2900
  }
2813
- }, /* @__PURE__ */ React63.createElement(Overlay, {
2901
+ }, /* @__PURE__ */ React64.createElement(Overlay, {
2814
2902
  open: state.isOpen
2815
2903
  }, tooltip)));
2816
2904
  };
@@ -2819,18 +2907,18 @@ var TooltipTrigger = ({
2819
2907
  var Tooltip = ({ children, variant, size }) => {
2820
2908
  const { arrowProps, state, overlayRef, placement, ...rest } = useTooltipContext();
2821
2909
  const { tooltipProps } = useTooltip({}, state);
2822
- const styles = useComponentStyles32(
2910
+ const styles = useComponentStyles31(
2823
2911
  "Tooltip",
2824
2912
  { variant, size },
2825
2913
  { parts: ["container", "arrow"] }
2826
2914
  );
2827
- return /* @__PURE__ */ React64.createElement(Box37, {
2915
+ return /* @__PURE__ */ React65.createElement(Box38, {
2828
2916
  ...tooltipProps,
2829
2917
  ...rest,
2830
2918
  ref: overlayRef,
2831
2919
  css: styles.container,
2832
2920
  "data-placement": placement
2833
- }, /* @__PURE__ */ React64.createElement("div", null, children), /* @__PURE__ */ React64.createElement(Box37, {
2921
+ }, /* @__PURE__ */ React65.createElement("div", null, children), /* @__PURE__ */ React65.createElement(Box38, {
2834
2922
  ...arrowProps,
2835
2923
  __baseCSS: {
2836
2924
  position: "absolute",
@@ -2847,122 +2935,122 @@ var Tooltip = ({ children, variant, size }) => {
2847
2935
  Tooltip.Trigger = TooltipTrigger;
2848
2936
 
2849
2937
  // src/XLoader/XLoader.tsx
2850
- import { SVG } from "@marigold/system";
2851
- import React65, { forwardRef as forwardRef15 } from "react";
2852
- var XLoader = forwardRef15((props, ref) => /* @__PURE__ */ React65.createElement(SVG, {
2938
+ import { SVG as SVG3 } from "@marigold/system";
2939
+ import React66, { forwardRef as forwardRef16 } from "react";
2940
+ var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React66.createElement(SVG3, {
2853
2941
  id: "XLoader",
2854
2942
  xmlns: "http://www.w3.org/2000/svg",
2855
2943
  size: 150,
2856
2944
  viewBox: "0 0 150 150",
2857
2945
  ...props,
2858
2946
  ...ref
2859
- }, /* @__PURE__ */ React65.createElement("path", {
2947
+ }, /* @__PURE__ */ React66.createElement("path", {
2860
2948
  id: "XMLID_1_",
2861
2949
  d: "M35.3 27h26.5l54 74.1H88.7z"
2862
- }), /* @__PURE__ */ React65.createElement("path", {
2950
+ }), /* @__PURE__ */ React66.createElement("path", {
2863
2951
  id: "XMLID_5_",
2864
2952
  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"
2865
- }, /* @__PURE__ */ React65.createElement("animate", {
2953
+ }, /* @__PURE__ */ React66.createElement("animate", {
2866
2954
  attributeName: "opacity",
2867
2955
  attributeType: "XML",
2868
2956
  values: "1; .01; 1; 1; 1;",
2869
2957
  begin: "1.0s",
2870
2958
  dur: "2.5s",
2871
2959
  repeatCount: "indefinite"
2872
- })), /* @__PURE__ */ React65.createElement("path", {
2960
+ })), /* @__PURE__ */ React66.createElement("path", {
2873
2961
  id: "XMLID_18_",
2874
2962
  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"
2875
- }, /* @__PURE__ */ React65.createElement("animate", {
2963
+ }, /* @__PURE__ */ React66.createElement("animate", {
2876
2964
  attributeName: "opacity",
2877
2965
  attributeType: "XML",
2878
2966
  values: "1; .01; 1; 1; 1;",
2879
2967
  begin: "0.9s",
2880
2968
  dur: "2.5s",
2881
2969
  repeatCount: "indefinite"
2882
- })), /* @__PURE__ */ React65.createElement("path", {
2970
+ })), /* @__PURE__ */ React66.createElement("path", {
2883
2971
  id: "XMLID_19_",
2884
2972
  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"
2885
- }, /* @__PURE__ */ React65.createElement("animate", {
2973
+ }, /* @__PURE__ */ React66.createElement("animate", {
2886
2974
  attributeName: "opacity",
2887
2975
  attributeType: "XML",
2888
2976
  values: "1; .01; 1; 1; 1;",
2889
2977
  begin: "0.8s",
2890
2978
  dur: "2.5s",
2891
2979
  repeatCount: "indefinite"
2892
- })), /* @__PURE__ */ React65.createElement("path", {
2980
+ })), /* @__PURE__ */ React66.createElement("path", {
2893
2981
  id: "XMLID_20_",
2894
2982
  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"
2895
- }, /* @__PURE__ */ React65.createElement("animate", {
2983
+ }, /* @__PURE__ */ React66.createElement("animate", {
2896
2984
  attributeName: "opacity",
2897
2985
  attributeType: "XML",
2898
2986
  values: "1; .01; 1; 1; 1;",
2899
2987
  begin: "0.7s",
2900
2988
  dur: "2.5s",
2901
2989
  repeatCount: "indefinite"
2902
- })), /* @__PURE__ */ React65.createElement("path", {
2990
+ })), /* @__PURE__ */ React66.createElement("path", {
2903
2991
  id: "XMLID_21_",
2904
2992
  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"
2905
- }, /* @__PURE__ */ React65.createElement("animate", {
2993
+ }, /* @__PURE__ */ React66.createElement("animate", {
2906
2994
  attributeName: "opacity",
2907
2995
  attributeType: "XML",
2908
2996
  values: "1; .01; 1; 1; 1;",
2909
2997
  begin: "0.6s",
2910
2998
  dur: "2.5s",
2911
2999
  repeatCount: "indefinite"
2912
- })), /* @__PURE__ */ React65.createElement("path", {
3000
+ })), /* @__PURE__ */ React66.createElement("path", {
2913
3001
  id: "XMLID_22_",
2914
3002
  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"
2915
- }, /* @__PURE__ */ React65.createElement("animate", {
3003
+ }, /* @__PURE__ */ React66.createElement("animate", {
2916
3004
  attributeName: "opacity",
2917
3005
  attributeType: "XML",
2918
3006
  values: "1; .01; 1; 1; 1;",
2919
3007
  begin: "0.5s",
2920
3008
  dur: "2.5s",
2921
3009
  repeatCount: "indefinite"
2922
- })), /* @__PURE__ */ React65.createElement("path", {
3010
+ })), /* @__PURE__ */ React66.createElement("path", {
2923
3011
  id: "XMLID_23_",
2924
3012
  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"
2925
- }, /* @__PURE__ */ React65.createElement("animate", {
3013
+ }, /* @__PURE__ */ React66.createElement("animate", {
2926
3014
  attributeName: "opacity",
2927
3015
  attributeType: "XML",
2928
3016
  values: "1; .01; 1; 1; 1;",
2929
3017
  begin: "0.4s",
2930
3018
  dur: "2.5s",
2931
3019
  repeatCount: "indefinite"
2932
- })), /* @__PURE__ */ React65.createElement("path", {
3020
+ })), /* @__PURE__ */ React66.createElement("path", {
2933
3021
  id: "XMLID_24_",
2934
3022
  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"
2935
- }, /* @__PURE__ */ React65.createElement("animate", {
3023
+ }, /* @__PURE__ */ React66.createElement("animate", {
2936
3024
  attributeName: "opacity",
2937
3025
  attributeType: "XML",
2938
3026
  values: "1; .01; 1; 1; 1;",
2939
3027
  begin: "0.3s",
2940
3028
  dur: "2.5s",
2941
3029
  repeatCount: "indefinite"
2942
- })), /* @__PURE__ */ React65.createElement("path", {
3030
+ })), /* @__PURE__ */ React66.createElement("path", {
2943
3031
  id: "XMLID_25_",
2944
3032
  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"
2945
- }, /* @__PURE__ */ React65.createElement("animate", {
3033
+ }, /* @__PURE__ */ React66.createElement("animate", {
2946
3034
  attributeName: "opacity",
2947
3035
  attributeType: "XML",
2948
3036
  values: "1; .01; 1; 1; 1;",
2949
3037
  begin: "0.2s",
2950
3038
  dur: "2.5s",
2951
3039
  repeatCount: "indefinite"
2952
- })), /* @__PURE__ */ React65.createElement("path", {
3040
+ })), /* @__PURE__ */ React66.createElement("path", {
2953
3041
  id: "XMLID_26_",
2954
3042
  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"
2955
- }, /* @__PURE__ */ React65.createElement("animate", {
3043
+ }, /* @__PURE__ */ React66.createElement("animate", {
2956
3044
  attributeName: "opacity",
2957
3045
  attributeType: "XML",
2958
3046
  values: "1; .01; 1; 1; 1;",
2959
3047
  begin: "0.1s",
2960
3048
  dur: "2.5s",
2961
3049
  repeatCount: "indefinite"
2962
- })), /* @__PURE__ */ React65.createElement("path", {
3050
+ })), /* @__PURE__ */ React66.createElement("path", {
2963
3051
  id: "XMLID_27_",
2964
3052
  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"
2965
- }, /* @__PURE__ */ React65.createElement("animate", {
3053
+ }, /* @__PURE__ */ React66.createElement("animate", {
2966
3054
  attributeName: "opacity",
2967
3055
  attributeType: "XML",
2968
3056
  values: "1; .01; 1; 1; 1;",
@@ -3017,6 +3105,8 @@ export {
3017
3105
  ThemeProvider2 as ThemeProvider,
3018
3106
  Tiles,
3019
3107
  Tooltip,
3108
+ Tray,
3109
+ TrayWrapper,
3020
3110
  Underlay,
3021
3111
  VisuallyHidden,
3022
3112
  XLoader,