@marigold/components 4.1.5 → 4.2.1

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,11 @@ 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
+ const { onPointerUp, ...props } = menuItemProps;
1300
+ return /* @__PURE__ */ React34.createElement(Box19, {
1147
1301
  as: "li",
1148
1302
  ref,
1149
1303
  __baseCSS: {
@@ -1152,7 +1306,7 @@ var MenuItem = ({ item, state, onAction, css }) => {
1152
1306
  }
1153
1307
  },
1154
1308
  css,
1155
- ...mergeProps3(menuItemProps, focusProps),
1309
+ ...mergeProps3(props, { onPointerDown: onPointerUp }, focusProps),
1156
1310
  ...stateProps
1157
1311
  }, item.rendered);
1158
1312
  };
@@ -1166,14 +1320,12 @@ var Menu = ({ variant, size, ...props }) => {
1166
1320
  const state = useTreeState({ ...ownProps, selectionMode: "none" });
1167
1321
  const { menuProps } = useMenu(ownProps, state, ref);
1168
1322
  useSyncRef({ ref: scrollRef }, ref);
1169
- const styles = useComponentStyles18(
1323
+ const styles = useComponentStyles19(
1170
1324
  "Menu",
1171
1325
  { variant, size },
1172
1326
  { parts: ["container", "item"] }
1173
1327
  );
1174
- return /* @__PURE__ */ React32.createElement("div", null, /* @__PURE__ */ React32.createElement(DismissButton2, {
1175
- onDismiss: ownProps.onClose
1176
- }), /* @__PURE__ */ React32.createElement(Box17, {
1328
+ return /* @__PURE__ */ React35.createElement(Box20, {
1177
1329
  as: "ul",
1178
1330
  ref,
1179
1331
  __baseCSS: {
@@ -1183,23 +1335,20 @@ var Menu = ({ variant, size, ...props }) => {
1183
1335
  },
1184
1336
  css: styles.container,
1185
1337
  ...menuProps
1186
- }, [...state.collection].map((item) => /* @__PURE__ */ React32.createElement(MenuItem, {
1338
+ }, [...state.collection].map((item) => /* @__PURE__ */ React35.createElement(MenuItem, {
1187
1339
  key: item.key,
1188
1340
  item,
1189
1341
  state,
1190
1342
  onAction: props.onSelect,
1191
1343
  css: styles.item
1192
- }))), /* @__PURE__ */ React32.createElement(DismissButton2, {
1193
- onDismiss: ownProps.onClose
1194
- }));
1344
+ })));
1195
1345
  };
1196
1346
  Menu.Trigger = MenuTrigger;
1197
1347
  Menu.Item = Item;
1198
1348
 
1199
1349
  // 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";
1350
+ import React36 from "react";
1351
+ import { useComponentStyles as useComponentStyles20 } from "@marigold/system";
1203
1352
  var Message = ({
1204
1353
  messageTitle,
1205
1354
  variant = "info",
@@ -1207,7 +1356,7 @@ var Message = ({
1207
1356
  children,
1208
1357
  ...props
1209
1358
  }) => {
1210
- const styles = useComponentStyles19(
1359
+ const styles = useComponentStyles20(
1211
1360
  "Message",
1212
1361
  {
1213
1362
  variant,
@@ -1215,151 +1364,77 @@ var Message = ({
1215
1364
  },
1216
1365
  { parts: ["container", "icon", "title", "content"] }
1217
1366
  );
1218
- var icon = /* @__PURE__ */ React33.createElement(Info, null);
1367
+ var icon = /* @__PURE__ */ React36.createElement("svg", {
1368
+ viewBox: "0 0 24 24"
1369
+ }, /* @__PURE__ */ React36.createElement("path", {
1370
+ 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"
1371
+ }));
1219
1372
  if (variant === "warning") {
1220
- icon = /* @__PURE__ */ React33.createElement(Notification, null);
1373
+ icon = /* @__PURE__ */ React36.createElement("svg", {
1374
+ viewBox: "0 0 24 24"
1375
+ }, /* @__PURE__ */ React36.createElement("path", {
1376
+ 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"
1377
+ }));
1221
1378
  }
1222
1379
  if (variant === "error") {
1223
- icon = /* @__PURE__ */ React33.createElement(Exclamation, null);
1380
+ icon = /* @__PURE__ */ React36.createElement("svg", {
1381
+ viewBox: "0 0 24 24"
1382
+ }, /* @__PURE__ */ React36.createElement("path", {
1383
+ 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"
1384
+ }));
1224
1385
  }
1225
- return /* @__PURE__ */ React33.createElement(Box, {
1386
+ return /* @__PURE__ */ React36.createElement(Box, {
1226
1387
  css: styles.container,
1227
1388
  ...props
1228
- }, /* @__PURE__ */ React33.createElement(Box, {
1389
+ }, /* @__PURE__ */ React36.createElement(Box, {
1229
1390
  __baseCSS: { display: "flex", alignItems: "top", gap: 4 }
1230
- }, /* @__PURE__ */ React33.createElement(Box, {
1391
+ }, /* @__PURE__ */ React36.createElement(Box, {
1231
1392
  role: "presentation",
1232
1393
  __baseCSS: { flex: "0 0 16px" },
1233
1394
  css: styles.icon
1234
- }, icon), /* @__PURE__ */ React33.createElement(Box, {
1395
+ }, icon), /* @__PURE__ */ React36.createElement(Box, {
1235
1396
  css: styles.title
1236
- }, messageTitle)), /* @__PURE__ */ React33.createElement(Box, {
1397
+ }, messageTitle)), /* @__PURE__ */ React36.createElement(Box, {
1237
1398
  css: styles.content
1238
1399
  }, children));
1239
1400
  };
1240
1401
 
1241
1402
  // src/NumberField/NumberField.tsx
1242
- import React37, { forwardRef as forwardRef7 } from "react";
1403
+ import React38, { forwardRef as forwardRef8 } from "react";
1243
1404
  import { useFocusRing as useFocusRing4 } from "@react-aria/focus";
1244
1405
  import { useHover as useHover4 } from "@react-aria/interactions";
1245
1406
  import { useLocale } from "@react-aria/i18n";
1246
1407
  import { useNumberField } from "@react-aria/numberfield";
1247
- import { mergeProps as mergeProps5, useObjectRef as useObjectRef7 } from "@react-aria/utils";
1408
+ import { mergeProps as mergeProps5, useObjectRef as useObjectRef8 } from "@react-aria/utils";
1248
1409
  import { useNumberFieldState } from "@react-stately/numberfield";
1249
1410
  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
1411
+ Box as Box22,
1412
+ useComponentStyles as useComponentStyles21,
1413
+ useStateProps as useStateProps6
1268
1414
  } 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
1415
 
1341
1416
  // src/NumberField/StepButton.tsx
1342
- import React36, { useRef as useRef7 } from "react";
1417
+ import React37, { useRef as useRef7 } from "react";
1343
1418
  import { useButton as useButton3 } from "@react-aria/button";
1344
1419
  import { useHover as useHover3 } from "@react-aria/interactions";
1345
1420
  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, {
1421
+ import { Box as Box21, useStateProps as useStateProps5 } from "@marigold/system";
1422
+ var Plus = () => /* @__PURE__ */ React37.createElement(Box21, {
1348
1423
  as: "svg",
1349
1424
  __baseCSS: { width: 16, height: 16 },
1350
1425
  viewBox: "0 0 20 20",
1351
1426
  fill: "currentColor"
1352
- }, /* @__PURE__ */ React36.createElement("path", {
1427
+ }, /* @__PURE__ */ React37.createElement("path", {
1353
1428
  fillRule: "evenodd",
1354
1429
  clipRule: "evenodd",
1355
1430
  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
1431
  }));
1357
- var Minus = () => /* @__PURE__ */ React36.createElement(Box20, {
1432
+ var Minus = () => /* @__PURE__ */ React37.createElement(Box21, {
1358
1433
  as: "svg",
1359
1434
  __baseCSS: { width: 16, height: 16 },
1360
1435
  viewBox: "0 0 20 20",
1361
1436
  fill: "currentColor"
1362
- }, /* @__PURE__ */ React36.createElement("path", {
1437
+ }, /* @__PURE__ */ React37.createElement("path", {
1363
1438
  fillRule: "evenodd",
1364
1439
  clipRule: "evenodd",
1365
1440
  d: "M3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
@@ -1371,13 +1446,13 @@ var StepButton = ({ direction, css, ...props }) => {
1371
1446
  ref
1372
1447
  );
1373
1448
  const { hoverProps, isHovered } = useHover3(props);
1374
- const stateProps = useStateProps4({
1449
+ const stateProps = useStateProps5({
1375
1450
  active: isPressed,
1376
1451
  hover: isHovered,
1377
1452
  disabled: props.isDisabled
1378
1453
  });
1379
1454
  const Icon3 = direction === "up" ? Plus : Minus;
1380
- return /* @__PURE__ */ React36.createElement(Box20, {
1455
+ return /* @__PURE__ */ React37.createElement(Box21, {
1381
1456
  __baseCSS: {
1382
1457
  display: "flex",
1383
1458
  alignItems: "center",
@@ -1387,11 +1462,11 @@ var StepButton = ({ direction, css, ...props }) => {
1387
1462
  css,
1388
1463
  ...mergeProps4(buttonProps, hoverProps),
1389
1464
  ...stateProps
1390
- }, /* @__PURE__ */ React36.createElement(Icon3, null));
1465
+ }, /* @__PURE__ */ React37.createElement(Icon3, null));
1391
1466
  };
1392
1467
 
1393
1468
  // src/NumberField/NumberField.tsx
1394
- var NumberField = forwardRef7(
1469
+ var NumberField = forwardRef8(
1395
1470
  ({
1396
1471
  variant,
1397
1472
  size,
@@ -1412,7 +1487,7 @@ var NumberField = forwardRef7(
1412
1487
  };
1413
1488
  const showStepper = !hideStepper;
1414
1489
  const { locale } = useLocale();
1415
- const inputRef = useObjectRef7(ref);
1490
+ const inputRef = useObjectRef8(ref);
1416
1491
  const state = useNumberFieldState({ ...props, locale });
1417
1492
  const {
1418
1493
  labelProps,
@@ -1429,19 +1504,19 @@ var NumberField = forwardRef7(
1429
1504
  isTextInput: true,
1430
1505
  autoFocus: props.autoFocus
1431
1506
  });
1432
- const styles = useComponentStyles22(
1507
+ const styles = useComponentStyles21(
1433
1508
  "NumberField",
1434
1509
  { variant, size },
1435
1510
  { parts: ["group", "stepper"] }
1436
1511
  );
1437
- const stateProps = useStateProps5({
1512
+ const stateProps = useStateProps6({
1438
1513
  hover: isHovered,
1439
1514
  focus: isFocused,
1440
1515
  disabled,
1441
1516
  readOnly,
1442
1517
  error
1443
1518
  });
1444
- return /* @__PURE__ */ React37.createElement(FieldBase, {
1519
+ return /* @__PURE__ */ React38.createElement(FieldBase, {
1445
1520
  label: props.label,
1446
1521
  labelProps,
1447
1522
  required,
@@ -1454,7 +1529,7 @@ var NumberField = forwardRef7(
1454
1529
  variant,
1455
1530
  size,
1456
1531
  width
1457
- }, /* @__PURE__ */ React37.createElement(Box21, {
1532
+ }, /* @__PURE__ */ React38.createElement(Box22, {
1458
1533
  "data-group": true,
1459
1534
  __baseCSS: {
1460
1535
  display: "flex",
@@ -1467,17 +1542,17 @@ var NumberField = forwardRef7(
1467
1542
  css: styles.group,
1468
1543
  ...mergeProps5(groupProps, focusProps, hoverProps),
1469
1544
  ...stateProps
1470
- }, showStepper && /* @__PURE__ */ React37.createElement(StepButton, {
1545
+ }, showStepper && /* @__PURE__ */ React38.createElement(StepButton, {
1471
1546
  direction: "down",
1472
1547
  css: styles.stepper,
1473
1548
  ...decrementButtonProps
1474
- }), /* @__PURE__ */ React37.createElement(Input, {
1549
+ }), /* @__PURE__ */ React38.createElement(Input, {
1475
1550
  ref: inputRef,
1476
1551
  variant,
1477
1552
  size,
1478
1553
  ...inputProps,
1479
1554
  ...stateProps
1480
- }), showStepper && /* @__PURE__ */ React37.createElement(StepButton, {
1555
+ }), showStepper && /* @__PURE__ */ React38.createElement(StepButton, {
1481
1556
  direction: "up",
1482
1557
  css: styles.stepper,
1483
1558
  ...incrementButtonProps
@@ -1490,7 +1565,7 @@ import { useTheme as useTheme2, ThemeProvider as ThemeProvider2 } from "@marigol
1490
1565
  import { SSRProvider } from "@react-aria/ssr";
1491
1566
 
1492
1567
  // src/Provider/MarigoldProvider.tsx
1493
- import React38 from "react";
1568
+ import React39 from "react";
1494
1569
  import { OverlayProvider } from "@react-aria/overlays";
1495
1570
  import {
1496
1571
  Global,
@@ -1513,26 +1588,26 @@ function MarigoldProvider({
1513
1588
  Nested themes with a "root" property must specify a "selector" to prevent accidentally overriding global CSS`
1514
1589
  );
1515
1590
  }
1516
- return /* @__PURE__ */ React38.createElement(ThemeProvider, {
1591
+ return /* @__PURE__ */ React39.createElement(ThemeProvider, {
1517
1592
  theme
1518
- }, /* @__PURE__ */ React38.createElement(Global, {
1593
+ }, /* @__PURE__ */ React39.createElement(Global, {
1519
1594
  normalizeDocument: isTopLevel && normalizeDocument,
1520
1595
  selector
1521
- }), isTopLevel ? /* @__PURE__ */ React38.createElement(OverlayProvider, null, children) : children);
1596
+ }), isTopLevel ? /* @__PURE__ */ React39.createElement(OverlayProvider, null, children) : children);
1522
1597
  }
1523
1598
 
1524
1599
  // src/Radio/Radio.tsx
1525
- import React40, {
1526
- forwardRef as forwardRef8
1600
+ import React41, {
1601
+ forwardRef as forwardRef9
1527
1602
  } from "react";
1528
1603
  import { useHover as useHover5 } from "@react-aria/interactions";
1529
1604
  import { useFocusRing as useFocusRing5 } from "@react-aria/focus";
1530
1605
  import { useRadio } from "@react-aria/radio";
1531
- import { useObjectRef as useObjectRef8 } from "@react-aria/utils";
1606
+ import { mergeProps as mergeProps6, useObjectRef as useObjectRef9 } from "@react-aria/utils";
1532
1607
  import {
1533
- Box as Box23,
1534
- useComponentStyles as useComponentStyles24,
1535
- useStateProps as useStateProps6
1608
+ Box as Box24,
1609
+ useComponentStyles as useComponentStyles22,
1610
+ useStateProps as useStateProps8
1536
1611
  } from "@marigold/system";
1537
1612
 
1538
1613
  // src/Radio/Context.ts
@@ -1543,18 +1618,13 @@ var RadioGroupContext = createContext5(
1543
1618
  var useRadioGroupContext = () => useContext5(RadioGroupContext);
1544
1619
 
1545
1620
  // src/Radio/RadioGroup.tsx
1546
- import React39 from "react";
1621
+ import React40 from "react";
1547
1622
  import { useRadioGroup } from "@react-aria/radio";
1548
1623
  import { useRadioGroupState } from "@react-stately/radio";
1549
- import {
1550
- Box as Box22,
1551
- useComponentStyles as useComponentStyles23
1552
- } from "@marigold/system";
1624
+ import { Box as Box23, useStateProps as useStateProps7 } from "@marigold/system";
1553
1625
  var RadioGroup = ({
1554
1626
  children,
1555
1627
  orientation = "vertical",
1556
- size,
1557
- variant,
1558
1628
  width,
1559
1629
  required,
1560
1630
  disabled,
@@ -1570,20 +1640,26 @@ var RadioGroup = ({
1570
1640
  ...rest
1571
1641
  };
1572
1642
  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",
1643
+ const { radioGroupProps, labelProps, errorMessageProps, descriptionProps } = useRadioGroup(props, state);
1644
+ const stateProps = useStateProps7({
1645
+ disabled,
1646
+ readOnly,
1647
+ error
1648
+ });
1649
+ return /* @__PURE__ */ React40.createElement(FieldBase, {
1650
+ width,
1651
+ label: props.label,
1652
+ labelProps: { as: "span", ...labelProps },
1653
+ description: props.description,
1654
+ descriptionProps,
1655
+ error,
1656
+ errorMessage: props.errorMessage,
1657
+ errorMessageProps,
1658
+ disabled,
1659
+ stateProps,
1584
1660
  required,
1585
- ...labelProps
1586
- }, props.label), /* @__PURE__ */ React39.createElement(Box22, {
1661
+ ...radioGroupProps
1662
+ }, /* @__PURE__ */ React40.createElement(Box23, {
1587
1663
  role: "presentation",
1588
1664
  "data-orientation": orientation,
1589
1665
  __baseCSS: {
@@ -1591,23 +1667,22 @@ var RadioGroup = ({
1591
1667
  flexDirection: orientation === "vertical" ? "column" : "row",
1592
1668
  alignItems: "start",
1593
1669
  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 }
1670
+ }
1671
+ }, /* @__PURE__ */ React40.createElement(RadioGroupContext.Provider, {
1672
+ value: { width, error, state }
1598
1673
  }, children)));
1599
1674
  };
1600
1675
 
1601
1676
  // src/Radio/Radio.tsx
1602
- var Dot = () => /* @__PURE__ */ React40.createElement("svg", {
1677
+ var Dot = () => /* @__PURE__ */ React41.createElement("svg", {
1603
1678
  viewBox: "0 0 6 6"
1604
- }, /* @__PURE__ */ React40.createElement("circle", {
1679
+ }, /* @__PURE__ */ React41.createElement("circle", {
1605
1680
  fill: "currentColor",
1606
1681
  cx: "3",
1607
1682
  cy: "3",
1608
1683
  r: "3"
1609
1684
  }));
1610
- var Icon2 = ({ checked, css, ...props }) => /* @__PURE__ */ React40.createElement(Box23, {
1685
+ var Icon2 = ({ checked, css, ...props }) => /* @__PURE__ */ React41.createElement(Box24, {
1611
1686
  "aria-hidden": "true",
1612
1687
  __baseCSS: {
1613
1688
  width: 16,
@@ -1622,30 +1697,30 @@ var Icon2 = ({ checked, css, ...props }) => /* @__PURE__ */ React40.createElemen
1622
1697
  },
1623
1698
  css,
1624
1699
  ...props
1625
- }, checked ? /* @__PURE__ */ React40.createElement(Dot, null) : null);
1626
- var Radio = forwardRef8(
1700
+ }, checked ? /* @__PURE__ */ React41.createElement(Dot, null) : null);
1701
+ var Radio = forwardRef9(
1627
1702
  ({ width, disabled, ...props }, ref) => {
1628
1703
  const {
1629
1704
  variant,
1630
1705
  size,
1631
1706
  error,
1632
1707
  width: groupWidth,
1633
- ...state
1708
+ state
1634
1709
  } = useRadioGroupContext();
1635
- const inputRef = useObjectRef8(ref);
1710
+ const inputRef = useObjectRef9(ref);
1636
1711
  const { inputProps } = useRadio(
1637
1712
  { isDisabled: disabled, ...props },
1638
1713
  state,
1639
1714
  inputRef
1640
1715
  );
1641
- const styles = useComponentStyles24(
1716
+ const styles = useComponentStyles22(
1642
1717
  "Radio",
1643
1718
  { variant: variant || props.variant, size: size || props.size },
1644
1719
  { parts: ["container", "label", "radio"] }
1645
1720
  );
1646
- const { hoverProps, isHovered } = useHover5({});
1721
+ const { hoverProps, isHovered } = useHover5({ isDisabled: disabled });
1647
1722
  const { isFocusVisible, focusProps } = useFocusRing5();
1648
- const stateProps = useStateProps6({
1723
+ const stateProps = useStateProps8({
1649
1724
  hover: isHovered,
1650
1725
  focus: isFocusVisible,
1651
1726
  checked: inputProps.checked,
@@ -1653,7 +1728,7 @@ var Radio = forwardRef8(
1653
1728
  readOnly: props.readOnly,
1654
1729
  error
1655
1730
  });
1656
- return /* @__PURE__ */ React40.createElement(Box23, {
1731
+ return /* @__PURE__ */ React41.createElement(Box24, {
1657
1732
  as: "label",
1658
1733
  __baseCSS: {
1659
1734
  display: "flex",
@@ -1663,9 +1738,8 @@ var Radio = forwardRef8(
1663
1738
  width: width || groupWidth || "100%"
1664
1739
  },
1665
1740
  css: styles.container,
1666
- ...hoverProps,
1667
- ...stateProps
1668
- }, /* @__PURE__ */ React40.createElement(Box23, {
1741
+ ...mergeProps6(hoverProps, stateProps)
1742
+ }, /* @__PURE__ */ React41.createElement(Box24, {
1669
1743
  as: "input",
1670
1744
  ref: inputRef,
1671
1745
  css: {
@@ -1678,13 +1752,12 @@ var Radio = forwardRef8(
1678
1752
  opacity: 1e-4,
1679
1753
  cursor: inputProps.disabled ? "not-allowed" : "pointer"
1680
1754
  },
1681
- ...inputProps,
1682
- ...focusProps
1683
- }), /* @__PURE__ */ React40.createElement(Icon2, {
1755
+ ...mergeProps6(inputProps, focusProps)
1756
+ }), /* @__PURE__ */ React41.createElement(Icon2, {
1684
1757
  checked: inputProps.checked,
1685
1758
  css: styles.radio,
1686
1759
  ...stateProps
1687
- }), /* @__PURE__ */ React40.createElement(Box23, {
1760
+ }), /* @__PURE__ */ React41.createElement(Box24, {
1688
1761
  css: styles.label,
1689
1762
  ...stateProps
1690
1763
  }, props.children));
@@ -1693,8 +1766,8 @@ var Radio = forwardRef8(
1693
1766
  Radio.Group = RadioGroup;
1694
1767
 
1695
1768
  // src/Select/Select.tsx
1696
- import React44, {
1697
- forwardRef as forwardRef10,
1769
+ import React45, {
1770
+ forwardRef as forwardRef11,
1698
1771
  useRef as useRef9
1699
1772
  } from "react";
1700
1773
  import { useButton as useButton4 } from "@react-aria/button";
@@ -1703,19 +1776,20 @@ import { useLocalizedStringFormatter } from "@react-aria/i18n";
1703
1776
  import { HiddenSelect, useSelect } from "@react-aria/select";
1704
1777
  import { useSelectState } from "@react-stately/select";
1705
1778
  import { Item as Item2, Section } from "@react-stately/collections";
1706
- import { mergeProps as mergeProps6, useObjectRef as useObjectRef10 } from "@react-aria/utils";
1779
+ import { mergeProps as mergeProps8, useObjectRef as useObjectRef11 } from "@react-aria/utils";
1707
1780
  import {
1708
- Box as Box27,
1709
- useComponentStyles as useComponentStyles26,
1710
- useStateProps as useStateProps8
1781
+ Box as Box28,
1782
+ useComponentStyles as useComponentStyles24,
1783
+ useResponsiveValue as useResponsiveValue2,
1784
+ useStateProps as useStateProps10
1711
1785
  } from "@marigold/system";
1712
1786
 
1713
1787
  // src/ListBox/ListBox.tsx
1714
- import React43, { forwardRef as forwardRef9 } from "react";
1715
- import { useObjectRef as useObjectRef9 } from "@react-aria/utils";
1788
+ import React44, { forwardRef as forwardRef10 } from "react";
1789
+ import { useObjectRef as useObjectRef10 } from "@react-aria/utils";
1716
1790
  import {
1717
- Box as Box26,
1718
- useComponentStyles as useComponentStyles25
1791
+ Box as Box27,
1792
+ useComponentStyles as useComponentStyles23
1719
1793
  } from "@marigold/system";
1720
1794
  import { useListBox } from "@react-aria/listbox";
1721
1795
 
@@ -1725,14 +1799,15 @@ var ListBoxContext = createContext6({});
1725
1799
  var useListBoxContext = () => useContext6(ListBoxContext);
1726
1800
 
1727
1801
  // src/ListBox/ListBoxSection.tsx
1728
- import React42 from "react";
1802
+ import React43 from "react";
1729
1803
  import { useListBoxSection } from "@react-aria/listbox";
1730
- import { Box as Box25 } from "@marigold/system";
1804
+ import { Box as Box26 } from "@marigold/system";
1731
1805
 
1732
1806
  // src/ListBox/ListBoxOption.tsx
1733
- import React41, { useRef as useRef8 } from "react";
1807
+ import React42, { useRef as useRef8 } from "react";
1734
1808
  import { useOption } from "@react-aria/listbox";
1735
- import { Box as Box24, useStateProps as useStateProps7 } from "@marigold/system";
1809
+ import { mergeProps as mergeProps7 } from "@react-aria/utils";
1810
+ import { Box as Box25, useStateProps as useStateProps9 } from "@marigold/system";
1736
1811
  var ListBoxOption = ({ item, state }) => {
1737
1812
  const ref = useRef8(null);
1738
1813
  const { optionProps, isSelected, isDisabled, isFocused } = useOption(
@@ -1742,18 +1817,18 @@ var ListBoxOption = ({ item, state }) => {
1742
1817
  state,
1743
1818
  ref
1744
1819
  );
1820
+ const { onPointerUp, ...props } = optionProps;
1745
1821
  const { styles } = useListBoxContext();
1746
- const stateProps = useStateProps7({
1822
+ const stateProps = useStateProps9({
1747
1823
  selected: isSelected,
1748
1824
  disabled: isDisabled,
1749
1825
  focusVisible: isFocused
1750
1826
  });
1751
- return /* @__PURE__ */ React41.createElement(Box24, {
1827
+ return /* @__PURE__ */ React42.createElement(Box25, {
1752
1828
  as: "li",
1753
1829
  ref,
1754
1830
  css: styles.option,
1755
- ...optionProps,
1756
- ...stateProps
1831
+ ...mergeProps7(props, { onPointerDown: onPointerUp }, { ...stateProps })
1757
1832
  }, item.rendered);
1758
1833
  };
1759
1834
 
@@ -1764,19 +1839,19 @@ var ListBoxSection = ({ section, state }) => {
1764
1839
  "aria-label": section["aria-label"]
1765
1840
  });
1766
1841
  const { styles } = useListBoxContext();
1767
- return /* @__PURE__ */ React42.createElement(Box25, {
1842
+ return /* @__PURE__ */ React43.createElement(Box26, {
1768
1843
  as: "li",
1769
1844
  css: styles.section,
1770
1845
  ...itemProps
1771
- }, section.rendered && /* @__PURE__ */ React42.createElement(Box25, {
1846
+ }, section.rendered && /* @__PURE__ */ React43.createElement(Box26, {
1772
1847
  css: styles.sectionTitle,
1773
1848
  ...headingProps
1774
- }, section.rendered), /* @__PURE__ */ React42.createElement(Box25, {
1849
+ }, section.rendered), /* @__PURE__ */ React43.createElement(Box26, {
1775
1850
  as: "ul",
1776
1851
  __baseCSS: { listStyle: "none", p: 0 },
1777
1852
  css: styles.list,
1778
1853
  ...groupProps
1779
- }, [...section.childNodes].map((node) => /* @__PURE__ */ React42.createElement(ListBoxOption, {
1854
+ }, [...section.childNodes].map((node) => /* @__PURE__ */ React43.createElement(ListBoxOption, {
1780
1855
  key: node.key,
1781
1856
  item: node,
1782
1857
  state
@@ -1784,31 +1859,31 @@ var ListBoxSection = ({ section, state }) => {
1784
1859
  };
1785
1860
 
1786
1861
  // src/ListBox/ListBox.tsx
1787
- var ListBox = forwardRef9(
1862
+ var ListBox = forwardRef10(
1788
1863
  ({ state, variant, size, ...props }, ref) => {
1789
- const innerRef = useObjectRef9(ref);
1864
+ const innerRef = useObjectRef10(ref);
1790
1865
  const { listBoxProps } = useListBox(props, state, innerRef);
1791
- const styles = useComponentStyles25(
1866
+ const styles = useComponentStyles23(
1792
1867
  "ListBox",
1793
1868
  { variant, size },
1794
1869
  { parts: ["container", "list", "option", "section", "sectionTitle"] }
1795
1870
  );
1796
- return /* @__PURE__ */ React43.createElement(ListBoxContext.Provider, {
1871
+ return /* @__PURE__ */ React44.createElement(ListBoxContext.Provider, {
1797
1872
  value: { styles }
1798
- }, /* @__PURE__ */ React43.createElement(Box26, {
1873
+ }, /* @__PURE__ */ React44.createElement(Box27, {
1799
1874
  css: styles.container
1800
- }, /* @__PURE__ */ React43.createElement(Box26, {
1875
+ }, /* @__PURE__ */ React44.createElement(Box27, {
1801
1876
  as: "ul",
1802
1877
  ref: innerRef,
1803
1878
  __baseCSS: { listStyle: "none", p: 0 },
1804
1879
  css: styles.list,
1805
1880
  ...listBoxProps
1806
1881
  }, [...state.collection].map(
1807
- (item) => item.type === "section" ? /* @__PURE__ */ React43.createElement(ListBoxSection, {
1882
+ (item) => item.type === "section" ? /* @__PURE__ */ React44.createElement(ListBoxSection, {
1808
1883
  key: item.key,
1809
1884
  section: item,
1810
1885
  state
1811
- }) : /* @__PURE__ */ React43.createElement(ListBoxOption, {
1886
+ }) : /* @__PURE__ */ React44.createElement(ListBoxOption, {
1812
1887
  key: item.key,
1813
1888
  item,
1814
1889
  state
@@ -1828,19 +1903,19 @@ var messages = {
1828
1903
  };
1829
1904
 
1830
1905
  // src/Select/Select.tsx
1831
- var Chevron = ({ css }) => /* @__PURE__ */ React44.createElement(Box27, {
1906
+ var Chevron = ({ css }) => /* @__PURE__ */ React45.createElement(Box28, {
1832
1907
  as: "svg",
1833
1908
  __baseCSS: { width: 16, height: 16, fill: "none" },
1834
1909
  css,
1835
1910
  viewBox: "0 0 24 24",
1836
1911
  stroke: "currentColor",
1837
1912
  strokeWidth: 2
1838
- }, /* @__PURE__ */ React44.createElement("path", {
1913
+ }, /* @__PURE__ */ React45.createElement("path", {
1839
1914
  strokeLinecap: "round",
1840
1915
  strokeLinejoin: "round",
1841
1916
  d: "M19 9l-7 7-7-7"
1842
1917
  }));
1843
- var Select = forwardRef10(
1918
+ var Select = forwardRef11(
1844
1919
  ({ variant, size, width, open, disabled, required, error, ...rest }, ref) => {
1845
1920
  const formatMessage = useLocalizedStringFormatter(messages);
1846
1921
  const props = {
@@ -1852,8 +1927,9 @@ var Select = forwardRef10(
1852
1927
  ...rest
1853
1928
  };
1854
1929
  const state = useSelectState(props);
1855
- const buttonRef = useObjectRef10(ref);
1930
+ const buttonRef = useObjectRef11(ref);
1856
1931
  const listboxRef = useRef9(null);
1932
+ const isSmallScreen = useResponsiveValue2([true, false, false], 2);
1857
1933
  const {
1858
1934
  labelProps,
1859
1935
  triggerProps,
@@ -1867,18 +1943,18 @@ var Select = forwardRef10(
1867
1943
  buttonRef
1868
1944
  );
1869
1945
  const { focusProps, isFocusVisible } = useFocusRing6();
1870
- const styles = useComponentStyles26(
1946
+ const styles = useComponentStyles24(
1871
1947
  "Select",
1872
1948
  { variant, size },
1873
1949
  { parts: ["container", "button", "icon"] }
1874
1950
  );
1875
- const stateProps = useStateProps8({
1951
+ const stateProps = useStateProps10({
1876
1952
  disabled,
1877
1953
  error,
1878
1954
  focusVisible: isFocusVisible,
1879
1955
  expanded: state.isOpen
1880
1956
  });
1881
- return /* @__PURE__ */ React44.createElement(FieldBase, {
1957
+ return /* @__PURE__ */ React45.createElement(FieldBase, {
1882
1958
  variant,
1883
1959
  size,
1884
1960
  width,
@@ -1892,13 +1968,13 @@ var Select = forwardRef10(
1892
1968
  stateProps,
1893
1969
  disabled,
1894
1970
  required
1895
- }, /* @__PURE__ */ React44.createElement(HiddenSelect, {
1971
+ }, /* @__PURE__ */ React45.createElement(HiddenSelect, {
1896
1972
  state,
1897
1973
  triggerRef: buttonRef,
1898
1974
  label: props.label,
1899
1975
  name: props.name,
1900
1976
  isDisabled: disabled
1901
- }), /* @__PURE__ */ React44.createElement(Box27, {
1977
+ }), /* @__PURE__ */ React45.createElement(Box28, {
1902
1978
  as: "button",
1903
1979
  __baseCSS: {
1904
1980
  display: "flex",
@@ -1909,21 +1985,29 @@ var Select = forwardRef10(
1909
1985
  },
1910
1986
  css: styles.button,
1911
1987
  ref: buttonRef,
1912
- ...mergeProps6(buttonProps, focusProps),
1988
+ ...mergeProps8(buttonProps, focusProps),
1913
1989
  ...stateProps
1914
- }, /* @__PURE__ */ React44.createElement(Box27, {
1990
+ }, /* @__PURE__ */ React45.createElement(Box28, {
1915
1991
  css: {
1916
1992
  overflow: "hidden",
1917
1993
  whiteSpace: "nowrap"
1918
1994
  },
1919
1995
  ...valueProps
1920
- }, state.selectedItem ? state.selectedItem.rendered : props.placeholder), /* @__PURE__ */ React44.createElement(Chevron, {
1996
+ }, state.selectedItem ? state.selectedItem.rendered : props.placeholder), /* @__PURE__ */ React45.createElement(Chevron, {
1921
1997
  css: styles.icon
1922
- })), /* @__PURE__ */ React44.createElement(Popover, {
1998
+ })), isSmallScreen ? /* @__PURE__ */ React45.createElement(Tray, {
1999
+ state
2000
+ }, /* @__PURE__ */ React45.createElement(ListBox, {
2001
+ ref: listboxRef,
2002
+ state,
2003
+ variant,
2004
+ size,
2005
+ ...menuProps
2006
+ })) : /* @__PURE__ */ React45.createElement(Popover, {
1923
2007
  state,
1924
2008
  triggerRef: buttonRef,
1925
2009
  scrollRef: listboxRef
1926
- }, /* @__PURE__ */ React44.createElement(ListBox, {
2010
+ }, /* @__PURE__ */ React45.createElement(ListBox, {
1927
2011
  ref: listboxRef,
1928
2012
  state,
1929
2013
  variant,
@@ -1936,18 +2020,18 @@ Select.Option = Item2;
1936
2020
  Select.Section = Section;
1937
2021
 
1938
2022
  // src/Slider/Slider.tsx
1939
- import React46, { forwardRef as forwardRef11 } from "react";
2023
+ import React47, { forwardRef as forwardRef12 } from "react";
1940
2024
  import { useSlider } from "@react-aria/slider";
1941
2025
  import { useSliderState } from "@react-stately/slider";
1942
2026
  import { useNumberFormatter } from "@react-aria/i18n";
1943
- import { useObjectRef as useObjectRef11 } from "@react-aria/utils";
1944
- import { useComponentStyles as useComponentStyles27 } from "@marigold/system";
2027
+ import { useObjectRef as useObjectRef12 } from "@react-aria/utils";
2028
+ import { useComponentStyles as useComponentStyles25 } from "@marigold/system";
1945
2029
 
1946
2030
  // src/Slider/Thumb.tsx
1947
- import React45, { useEffect } from "react";
2031
+ import React46, { useEffect } from "react";
1948
2032
  import { useSliderThumb } from "@react-aria/slider";
1949
- import { mergeProps as mergeProps7 } from "@react-aria/utils";
1950
- import { useStateProps as useStateProps9 } from "@marigold/system";
2033
+ import { mergeProps as mergeProps9 } from "@react-aria/utils";
2034
+ import { useStateProps as useStateProps11 } from "@marigold/system";
1951
2035
 
1952
2036
  // src/VisuallyHidden/VisuallyHidden.tsx
1953
2037
  import { VisuallyHidden } from "@react-aria/visually-hidden";
@@ -1956,10 +2040,10 @@ import { VisuallyHidden } from "@react-aria/visually-hidden";
1956
2040
  import { useFocusRing as useFocusRing7 } from "@react-aria/focus";
1957
2041
  var Thumb = ({ state, trackRef, styles, ...props }) => {
1958
2042
  const { disabled } = props;
1959
- const inputRef = React45.useRef(null);
2043
+ const inputRef = React46.useRef(null);
1960
2044
  const { isFocusVisible, focusProps, isFocused } = useFocusRing7();
1961
2045
  const focused = isFocused || isFocusVisible || state.isThumbDragging(0);
1962
- const stateProps = useStateProps9({
2046
+ const stateProps = useStateProps11({
1963
2047
  focus: focused,
1964
2048
  disabled
1965
2049
  });
@@ -1975,24 +2059,24 @@ var Thumb = ({ state, trackRef, styles, ...props }) => {
1975
2059
  useEffect(() => {
1976
2060
  state.setThumbEditable(0, !disabled);
1977
2061
  }, [disabled, state]);
1978
- return /* @__PURE__ */ React45.createElement(Box, {
2062
+ return /* @__PURE__ */ React46.createElement(Box, {
1979
2063
  __baseCSS: { top: "50%" },
1980
2064
  css: styles,
1981
2065
  ...thumbProps,
1982
2066
  ...stateProps
1983
- }, /* @__PURE__ */ React45.createElement(VisuallyHidden, null, /* @__PURE__ */ React45.createElement(Box, {
2067
+ }, /* @__PURE__ */ React46.createElement(VisuallyHidden, null, /* @__PURE__ */ React46.createElement(Box, {
1984
2068
  as: "input",
1985
2069
  type: "range",
1986
2070
  ref: inputRef,
1987
- ...mergeProps7(inputProps, focusProps)
2071
+ ...mergeProps9(inputProps, focusProps)
1988
2072
  })));
1989
2073
  };
1990
2074
 
1991
2075
  // src/Slider/Slider.tsx
1992
- var Slider = forwardRef11(
2076
+ var Slider = forwardRef12(
1993
2077
  ({ variant, size, width = "100%", ...props }, ref) => {
1994
2078
  const { formatOptions } = props;
1995
- const trackRef = useObjectRef11(ref);
2079
+ const trackRef = useObjectRef12(ref);
1996
2080
  const numberFormatter = useNumberFormatter(formatOptions);
1997
2081
  const state = useSliderState({ ...props, numberFormatter });
1998
2082
  const { groupProps, trackProps, labelProps, outputProps } = useSlider(
@@ -2003,12 +2087,12 @@ var Slider = forwardRef11(
2003
2087
  state,
2004
2088
  trackRef
2005
2089
  );
2006
- const styles = useComponentStyles27(
2090
+ const styles = useComponentStyles25(
2007
2091
  "Slider",
2008
2092
  { variant, size },
2009
2093
  { parts: ["track", "thumb", "label", "output"] }
2010
2094
  );
2011
- return /* @__PURE__ */ React46.createElement(Box, {
2095
+ return /* @__PURE__ */ React47.createElement(Box, {
2012
2096
  __baseCSS: {
2013
2097
  display: "flex",
2014
2098
  flexDirection: "column",
@@ -2016,18 +2100,18 @@ var Slider = forwardRef11(
2016
2100
  width
2017
2101
  },
2018
2102
  ...groupProps
2019
- }, /* @__PURE__ */ React46.createElement(Box, {
2103
+ }, /* @__PURE__ */ React47.createElement(Box, {
2020
2104
  __baseCSS: { display: "flex", alignSelf: "stretch" }
2021
- }, props.children && /* @__PURE__ */ React46.createElement(Box, {
2105
+ }, props.children && /* @__PURE__ */ React47.createElement(Box, {
2022
2106
  as: "label",
2023
2107
  __baseCSS: styles.label,
2024
2108
  ...labelProps
2025
- }, props.children), /* @__PURE__ */ React46.createElement(Box, {
2109
+ }, props.children), /* @__PURE__ */ React47.createElement(Box, {
2026
2110
  as: "output",
2027
2111
  ...outputProps,
2028
2112
  __baseCSS: { flex: "1 0 auto", textAlign: "end" },
2029
2113
  css: styles.output
2030
- }, state.getThumbValueLabel(0))), /* @__PURE__ */ React46.createElement(Box, {
2114
+ }, state.getThumbValueLabel(0))), /* @__PURE__ */ React47.createElement(Box, {
2031
2115
  ...trackProps,
2032
2116
  ref: trackRef,
2033
2117
  __baseCSS: {
@@ -2035,13 +2119,13 @@ var Slider = forwardRef11(
2035
2119
  width: "100%",
2036
2120
  cursor: props.disabled ? "not-allowed" : "pointer"
2037
2121
  }
2038
- }, /* @__PURE__ */ React46.createElement(Box, {
2122
+ }, /* @__PURE__ */ React47.createElement(Box, {
2039
2123
  __baseCSS: {
2040
2124
  top: "50%",
2041
2125
  transform: "translateY(-50%)"
2042
2126
  },
2043
2127
  css: styles.track
2044
- }), /* @__PURE__ */ React46.createElement(Thumb, {
2128
+ }), /* @__PURE__ */ React47.createElement(Thumb, {
2045
2129
  state,
2046
2130
  trackRef,
2047
2131
  disabled: props.disabled,
@@ -2051,16 +2135,16 @@ var Slider = forwardRef11(
2051
2135
  );
2052
2136
 
2053
2137
  // 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, {
2138
+ import React48 from "react";
2139
+ import { Box as Box29 } from "@marigold/system";
2140
+ var Split = (props) => /* @__PURE__ */ React48.createElement(Box29, {
2057
2141
  ...props,
2058
2142
  role: "separator",
2059
2143
  css: { flexGrow: 1 }
2060
2144
  });
2061
2145
 
2062
2146
  // src/Stack/Stack.tsx
2063
- import React48 from "react";
2147
+ import React49 from "react";
2064
2148
  var ALIGNMENT_X2 = {
2065
2149
  none: "initial",
2066
2150
  left: "flex-start",
@@ -2080,7 +2164,7 @@ var Stack = ({
2080
2164
  alignY = "none",
2081
2165
  stretch = false,
2082
2166
  ...props
2083
- }) => /* @__PURE__ */ React48.createElement(Box, {
2167
+ }) => /* @__PURE__ */ React49.createElement(Box, {
2084
2168
  css: {
2085
2169
  display: "flex",
2086
2170
  flexDirection: "column",
@@ -2094,16 +2178,16 @@ var Stack = ({
2094
2178
  }, children);
2095
2179
 
2096
2180
  // src/Switch/Switch.tsx
2097
- import React49, { forwardRef as forwardRef12 } from "react";
2181
+ import React50, { forwardRef as forwardRef13 } from "react";
2098
2182
  import { useFocusRing as useFocusRing8 } from "@react-aria/focus";
2099
2183
  import { useSwitch } from "@react-aria/switch";
2100
- import { useObjectRef as useObjectRef12 } from "@react-aria/utils";
2184
+ import { useObjectRef as useObjectRef13 } from "@react-aria/utils";
2101
2185
  import { useToggleState as useToggleState2 } from "@react-stately/toggle";
2102
2186
  import {
2103
- useComponentStyles as useComponentStyles28,
2104
- useStateProps as useStateProps10
2187
+ useComponentStyles as useComponentStyles26,
2188
+ useStateProps as useStateProps12
2105
2189
  } from "@marigold/system";
2106
- var Switch = forwardRef12(
2190
+ var Switch = forwardRef13(
2107
2191
  ({
2108
2192
  variant,
2109
2193
  size,
@@ -2114,7 +2198,7 @@ var Switch = forwardRef12(
2114
2198
  defaultChecked,
2115
2199
  ...rest
2116
2200
  }, ref) => {
2117
- const inputRef = useObjectRef12(ref);
2201
+ const inputRef = useObjectRef13(ref);
2118
2202
  const props = {
2119
2203
  isSelected: checked,
2120
2204
  isDisabled: disabled,
@@ -2125,18 +2209,18 @@ var Switch = forwardRef12(
2125
2209
  const state = useToggleState2(props);
2126
2210
  const { inputProps } = useSwitch(props, state, inputRef);
2127
2211
  const { isFocusVisible, focusProps } = useFocusRing8();
2128
- const stateProps = useStateProps10({
2212
+ const stateProps = useStateProps12({
2129
2213
  checked: state.isSelected,
2130
2214
  disabled,
2131
2215
  readOnly,
2132
2216
  focus: isFocusVisible
2133
2217
  });
2134
- const styles = useComponentStyles28(
2218
+ const styles = useComponentStyles26(
2135
2219
  "Switch",
2136
2220
  { variant, size },
2137
2221
  { parts: ["container", "label", "track", "thumb"] }
2138
2222
  );
2139
- return /* @__PURE__ */ React49.createElement(Box, {
2223
+ return /* @__PURE__ */ React50.createElement(Box, {
2140
2224
  as: "label",
2141
2225
  __baseCSS: {
2142
2226
  display: "flex",
@@ -2147,7 +2231,7 @@ var Switch = forwardRef12(
2147
2231
  width
2148
2232
  },
2149
2233
  css: styles.container
2150
- }, /* @__PURE__ */ React49.createElement(Box, {
2234
+ }, /* @__PURE__ */ React50.createElement(Box, {
2151
2235
  as: "input",
2152
2236
  ref: inputRef,
2153
2237
  css: {
@@ -2162,9 +2246,9 @@ var Switch = forwardRef12(
2162
2246
  },
2163
2247
  ...inputProps,
2164
2248
  ...focusProps
2165
- }), props.children && /* @__PURE__ */ React49.createElement(Box, {
2249
+ }), props.children && /* @__PURE__ */ React50.createElement(Box, {
2166
2250
  css: styles.label
2167
- }, props.children), /* @__PURE__ */ React49.createElement(Box, {
2251
+ }, props.children), /* @__PURE__ */ React50.createElement(Box, {
2168
2252
  __baseCSS: {
2169
2253
  position: "relative",
2170
2254
  width: 48,
@@ -2175,7 +2259,7 @@ var Switch = forwardRef12(
2175
2259
  },
2176
2260
  css: styles.track,
2177
2261
  ...stateProps
2178
- }, /* @__PURE__ */ React49.createElement(Box, {
2262
+ }, /* @__PURE__ */ React50.createElement(Box, {
2179
2263
  __baseCSS: {
2180
2264
  display: "block",
2181
2265
  position: "absolute",
@@ -2199,7 +2283,7 @@ var Switch = forwardRef12(
2199
2283
  );
2200
2284
 
2201
2285
  // src/Table/Table.tsx
2202
- import React58, { useRef as useRef16 } from "react";
2286
+ import React59, { useRef as useRef16 } from "react";
2203
2287
  import { useTable } from "@react-aria/table";
2204
2288
  import {
2205
2289
  Cell,
@@ -2210,8 +2294,8 @@ import {
2210
2294
  useTableState
2211
2295
  } from "@react-stately/table";
2212
2296
  import {
2213
- Box as Box34,
2214
- useComponentStyles as useComponentStyles29
2297
+ Box as Box35,
2298
+ useComponentStyles as useComponentStyles28
2215
2299
  } from "@marigold/system";
2216
2300
 
2217
2301
  // src/Table/Context.tsx
@@ -2220,21 +2304,21 @@ var TableContext = createContext7({});
2220
2304
  var useTableContext = () => useContext7(TableContext);
2221
2305
 
2222
2306
  // src/Table/TableBody.tsx
2223
- import React50 from "react";
2307
+ import React51 from "react";
2224
2308
  import { useTableRowGroup } from "@react-aria/table";
2225
2309
  var TableBody = ({ children }) => {
2226
2310
  const { rowGroupProps } = useTableRowGroup();
2227
- return /* @__PURE__ */ React50.createElement("tbody", {
2311
+ return /* @__PURE__ */ React51.createElement("tbody", {
2228
2312
  ...rowGroupProps
2229
2313
  }, children);
2230
2314
  };
2231
2315
 
2232
2316
  // src/Table/TableCell.tsx
2233
- import React51, { useRef as useRef10 } from "react";
2317
+ import React52, { useRef as useRef10 } from "react";
2234
2318
  import { useTableCell } from "@react-aria/table";
2235
2319
  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";
2320
+ import { mergeProps as mergeProps10 } from "@react-aria/utils";
2321
+ import { Box as Box30, useStateProps as useStateProps13 } from "@marigold/system";
2238
2322
  var TableCell = ({ cell }) => {
2239
2323
  const ref = useRef10(null);
2240
2324
  const { interactive, state, styles } = useTableContext();
@@ -2252,22 +2336,22 @@ var TableCell = ({ cell }) => {
2252
2336
  onPointerDown: (e) => e.stopPropagation()
2253
2337
  };
2254
2338
  const { focusProps, isFocusVisible } = useFocusRing9();
2255
- const stateProps = useStateProps11({ disabled, focusVisible: isFocusVisible });
2256
- return /* @__PURE__ */ React51.createElement(Box29, {
2339
+ const stateProps = useStateProps13({ disabled, focusVisible: isFocusVisible });
2340
+ return /* @__PURE__ */ React52.createElement(Box30, {
2257
2341
  as: "td",
2258
2342
  ref,
2259
2343
  css: styles.cell,
2260
- ...mergeProps8(cellProps, focusProps),
2344
+ ...mergeProps10(cellProps, focusProps),
2261
2345
  ...stateProps
2262
2346
  }, cell.rendered);
2263
2347
  };
2264
2348
 
2265
2349
  // src/Table/TableCheckboxCell.tsx
2266
- import React52, { useRef as useRef11 } from "react";
2350
+ import React53, { useRef as useRef11 } from "react";
2267
2351
  import { useTableCell as useTableCell2, useTableSelectionCheckbox } from "@react-aria/table";
2268
2352
  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";
2353
+ import { mergeProps as mergeProps11 } from "@react-aria/utils";
2354
+ import { Box as Box31, useStateProps as useStateProps14 } from "@marigold/system";
2271
2355
 
2272
2356
  // src/Table/utils.ts
2273
2357
  var mapCheckboxProps = ({
@@ -2305,8 +2389,8 @@ var TableCheckboxCell = ({ cell }) => {
2305
2389
  useTableSelectionCheckbox({ key: cell.parentKey }, state)
2306
2390
  );
2307
2391
  const { focusProps, isFocusVisible } = useFocusRing10();
2308
- const stateProps = useStateProps12({ disabled, focusVisible: isFocusVisible });
2309
- return /* @__PURE__ */ React52.createElement(Box30, {
2392
+ const stateProps = useStateProps14({ disabled, focusVisible: isFocusVisible });
2393
+ return /* @__PURE__ */ React53.createElement(Box31, {
2310
2394
  as: "td",
2311
2395
  ref,
2312
2396
  __baseCSS: {
@@ -2315,24 +2399,24 @@ var TableCheckboxCell = ({ cell }) => {
2315
2399
  lineHeight: 1
2316
2400
  },
2317
2401
  css: styles.cell,
2318
- ...mergeProps9(gridCellProps, focusProps),
2402
+ ...mergeProps11(gridCellProps, focusProps),
2319
2403
  ...stateProps
2320
- }, /* @__PURE__ */ React52.createElement(Checkbox, {
2404
+ }, /* @__PURE__ */ React53.createElement(Checkbox, {
2321
2405
  ...checkboxProps
2322
2406
  }));
2323
2407
  };
2324
2408
 
2325
2409
  // src/Table/TableColumnHeader.tsx
2326
- import React53, { useRef as useRef12 } from "react";
2410
+ import React54, { useRef as useRef12 } from "react";
2327
2411
  import { useFocusRing as useFocusRing11 } from "@react-aria/focus";
2328
2412
  import { useHover as useHover6 } from "@react-aria/interactions";
2329
2413
  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";
2414
+ import { mergeProps as mergeProps12 } from "@react-aria/utils";
2415
+ import { Box as Box32, useStateProps as useStateProps15 } from "@marigold/system";
2332
2416
  var SortIndicator = ({
2333
2417
  direction = "ascending",
2334
2418
  visible
2335
- }) => /* @__PURE__ */ React53.createElement(Box31, {
2419
+ }) => /* @__PURE__ */ React54.createElement(Box32, {
2336
2420
  as: "span",
2337
2421
  role: "presentation",
2338
2422
  "aria-hidden": "true",
@@ -2355,57 +2439,63 @@ var TableColumnHeader = ({ column }) => {
2355
2439
  );
2356
2440
  const { hoverProps, isHovered } = useHover6({});
2357
2441
  const { focusProps, isFocusVisible } = useFocusRing11();
2358
- const stateProps = useStateProps13({
2442
+ const stateProps = useStateProps15({
2359
2443
  hover: isHovered,
2360
2444
  focusVisible: isFocusVisible
2361
2445
  });
2362
- return /* @__PURE__ */ React53.createElement(Box31, {
2446
+ return /* @__PURE__ */ React54.createElement(Box32, {
2363
2447
  as: "th",
2364
2448
  colSpan: column.colspan,
2365
2449
  ref,
2366
2450
  __baseCSS: { cursor: "default" },
2367
2451
  css: styles.header,
2368
- ...mergeProps10(columnHeaderProps, hoverProps, focusProps),
2452
+ ...mergeProps12(columnHeaderProps, hoverProps, focusProps),
2369
2453
  ...stateProps
2370
- }, column.rendered, column.props.allowsSorting && /* @__PURE__ */ React53.createElement(SortIndicator, {
2454
+ }, column.rendered, column.props.allowsSorting && /* @__PURE__ */ React54.createElement(SortIndicator, {
2371
2455
  direction: (_a = state.sortDescriptor) == null ? void 0 : _a.direction,
2372
2456
  visible: ((_b = state.sortDescriptor) == null ? void 0 : _b.column) === column.key
2373
2457
  }));
2374
2458
  };
2375
2459
 
2376
2460
  // src/Table/TableHeader.tsx
2377
- import React54 from "react";
2461
+ import React55 from "react";
2378
2462
  import { useTableRowGroup as useTableRowGroup2 } from "@react-aria/table";
2379
2463
  var TableHeader = ({ children }) => {
2380
2464
  const { rowGroupProps } = useTableRowGroup2();
2381
- return /* @__PURE__ */ React54.createElement("thead", {
2465
+ return /* @__PURE__ */ React55.createElement("thead", {
2382
2466
  ...rowGroupProps
2383
2467
  }, children);
2384
2468
  };
2385
2469
 
2386
2470
  // src/Table/TableHeaderRow.tsx
2387
- import React55, { useRef as useRef13 } from "react";
2471
+ import React56, { useRef as useRef13 } from "react";
2388
2472
  import { useTableHeaderRow } from "@react-aria/table";
2389
2473
  var TableHeaderRow = ({ item, children }) => {
2390
2474
  const { state } = useTableContext();
2391
2475
  const ref = useRef13(null);
2392
2476
  const { rowProps } = useTableHeaderRow({ node: item }, state, ref);
2393
- return /* @__PURE__ */ React55.createElement("tr", {
2477
+ return /* @__PURE__ */ React56.createElement("tr", {
2394
2478
  ...rowProps,
2395
2479
  ref
2396
2480
  }, children);
2397
2481
  };
2398
2482
 
2399
2483
  // src/Table/TableRow.tsx
2400
- import React56, { useRef as useRef14 } from "react";
2484
+ import React57, { useRef as useRef14 } from "react";
2401
2485
  import { useFocusRing as useFocusRing12 } from "@react-aria/focus";
2402
2486
  import { useHover as useHover7 } from "@react-aria/interactions";
2403
2487
  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";
2488
+ import { mergeProps as mergeProps13 } from "@react-aria/utils";
2489
+ import { Box as Box33, useComponentStyles as useComponentStyles27, useStateProps as useStateProps16 } from "@marigold/system";
2406
2490
  var TableRow = ({ children, row }) => {
2407
2491
  const ref = useRef14(null);
2408
- const { interactive, state, styles } = useTableContext();
2492
+ const { interactive, state, ...ctx } = useTableContext();
2493
+ const { variant, size } = row.props;
2494
+ const { row: styles } = useComponentStyles27(
2495
+ "Table",
2496
+ { variant: variant || ctx.variant, size: size || ctx.size },
2497
+ { parts: ["row"] }
2498
+ );
2409
2499
  const { rowProps, isPressed } = useTableRow(
2410
2500
  {
2411
2501
  node: row
@@ -2419,35 +2509,35 @@ var TableRow = ({ children, row }) => {
2419
2509
  const { hoverProps, isHovered } = useHover7({
2420
2510
  isDisabled: disabled || !interactive
2421
2511
  });
2422
- const stateProps = useStateProps14({
2512
+ const stateProps = useStateProps16({
2423
2513
  disabled,
2424
2514
  selected,
2425
2515
  hover: isHovered,
2426
2516
  focusVisible: isFocusVisible,
2427
2517
  active: isPressed
2428
2518
  });
2429
- return /* @__PURE__ */ React56.createElement(Box32, {
2519
+ return /* @__PURE__ */ React57.createElement(Box33, {
2430
2520
  as: "tr",
2431
2521
  ref,
2432
2522
  __baseCSS: {
2433
2523
  cursor: !interactive ? "text" : disabled ? "default" : "pointer"
2434
2524
  },
2435
- css: styles.row,
2436
- ...mergeProps11(rowProps, focusProps, hoverProps),
2525
+ css: styles,
2526
+ ...mergeProps13(rowProps, focusProps, hoverProps),
2437
2527
  ...stateProps
2438
2528
  }, children);
2439
2529
  };
2440
2530
 
2441
2531
  // src/Table/TableSelectAllCell.tsx
2442
- import React57, { useRef as useRef15 } from "react";
2532
+ import React58, { useRef as useRef15 } from "react";
2443
2533
  import { useFocusRing as useFocusRing13 } from "@react-aria/focus";
2444
2534
  import { useHover as useHover8 } from "@react-aria/interactions";
2445
2535
  import {
2446
2536
  useTableColumnHeader as useTableColumnHeader2,
2447
2537
  useTableSelectAllCheckbox
2448
2538
  } from "@react-aria/table";
2449
- import { mergeProps as mergeProps12 } from "@react-aria/utils";
2450
- import { Box as Box33, useStateProps as useStateProps15 } from "@marigold/system";
2539
+ import { mergeProps as mergeProps14 } from "@react-aria/utils";
2540
+ import { Box as Box34, useStateProps as useStateProps17 } from "@marigold/system";
2451
2541
  var TableSelectAllCell = ({ column }) => {
2452
2542
  const ref = useRef15(null);
2453
2543
  const { state, styles } = useTableContext();
@@ -2461,11 +2551,11 @@ var TableSelectAllCell = ({ column }) => {
2461
2551
  const { checkboxProps } = mapCheckboxProps(useTableSelectAllCheckbox(state));
2462
2552
  const { hoverProps, isHovered } = useHover8({});
2463
2553
  const { focusProps, isFocusVisible } = useFocusRing13();
2464
- const stateProps = useStateProps15({
2554
+ const stateProps = useStateProps17({
2465
2555
  hover: isHovered,
2466
2556
  focusVisible: isFocusVisible
2467
2557
  });
2468
- return /* @__PURE__ */ React57.createElement(Box33, {
2558
+ return /* @__PURE__ */ React58.createElement(Box34, {
2469
2559
  as: "th",
2470
2560
  ref,
2471
2561
  __baseCSS: {
@@ -2474,9 +2564,9 @@ var TableSelectAllCell = ({ column }) => {
2474
2564
  lineHeight: 1
2475
2565
  },
2476
2566
  css: styles.header,
2477
- ...mergeProps12(columnHeaderProps, hoverProps, focusProps),
2567
+ ...mergeProps14(columnHeaderProps, hoverProps, focusProps),
2478
2568
  ...stateProps
2479
- }, /* @__PURE__ */ React57.createElement(Checkbox, {
2569
+ }, /* @__PURE__ */ React58.createElement(Checkbox, {
2480
2570
  ...checkboxProps
2481
2571
  }));
2482
2572
  };
@@ -2497,15 +2587,15 @@ var Table = ({
2497
2587
  showSelectionCheckboxes: selectionMode === "multiple" && props.selectionBehavior !== "replace"
2498
2588
  });
2499
2589
  const { gridProps } = useTable(props, state, tableRef);
2500
- const styles = useComponentStyles29(
2590
+ const styles = useComponentStyles28(
2501
2591
  "Table",
2502
2592
  { variant, size },
2503
2593
  { parts: ["table", "header", "row", "cell"] }
2504
2594
  );
2505
2595
  const { collection } = state;
2506
- return /* @__PURE__ */ React58.createElement(TableContext.Provider, {
2596
+ return /* @__PURE__ */ React59.createElement(TableContext.Provider, {
2507
2597
  value: { state, interactive, styles }
2508
- }, /* @__PURE__ */ React58.createElement(Box34, {
2598
+ }, /* @__PURE__ */ React59.createElement(Box35, {
2509
2599
  as: "table",
2510
2600
  ref: tableRef,
2511
2601
  __baseCSS: {
@@ -2517,30 +2607,30 @@ var Table = ({
2517
2607
  },
2518
2608
  css: styles.table,
2519
2609
  ...gridProps
2520
- }, /* @__PURE__ */ React58.createElement(TableHeader, null, collection.headerRows.map((headerRow) => /* @__PURE__ */ React58.createElement(TableHeaderRow, {
2610
+ }, /* @__PURE__ */ React59.createElement(TableHeader, null, collection.headerRows.map((headerRow) => /* @__PURE__ */ React59.createElement(TableHeaderRow, {
2521
2611
  key: headerRow.key,
2522
2612
  item: headerRow
2523
2613
  }, [...headerRow.childNodes].map(
2524
2614
  (column) => {
2525
2615
  var _a;
2526
- return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ React58.createElement(TableSelectAllCell, {
2616
+ return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ React59.createElement(TableSelectAllCell, {
2527
2617
  key: column.key,
2528
2618
  column
2529
- }) : /* @__PURE__ */ React58.createElement(TableColumnHeader, {
2619
+ }) : /* @__PURE__ */ React59.createElement(TableColumnHeader, {
2530
2620
  key: column.key,
2531
2621
  column
2532
2622
  });
2533
2623
  }
2534
- )))), /* @__PURE__ */ React58.createElement(TableBody, null, [...collection.body.childNodes].map((row) => /* @__PURE__ */ React58.createElement(TableRow, {
2624
+ )))), /* @__PURE__ */ React59.createElement(TableBody, null, [...collection.body.childNodes].map((row) => /* @__PURE__ */ React59.createElement(TableRow, {
2535
2625
  key: row.key,
2536
2626
  row
2537
2627
  }, [...row.childNodes].map(
2538
2628
  (cell) => {
2539
2629
  var _a;
2540
- return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ React58.createElement(TableCheckboxCell, {
2630
+ return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ React59.createElement(TableCheckboxCell, {
2541
2631
  key: cell.key,
2542
2632
  cell
2543
- }) : /* @__PURE__ */ React58.createElement(TableCell, {
2633
+ }) : /* @__PURE__ */ React59.createElement(TableCell, {
2544
2634
  key: cell.key,
2545
2635
  cell
2546
2636
  });
@@ -2554,11 +2644,11 @@ Table.Header = Header2;
2554
2644
  Table.Row = Row;
2555
2645
 
2556
2646
  // src/Text/Text.tsx
2557
- import React59 from "react";
2647
+ import React60 from "react";
2558
2648
  import {
2559
- useComponentStyles as useComponentStyles30
2649
+ useComponentStyles as useComponentStyles29
2560
2650
  } from "@marigold/system";
2561
- import { Box as Box35 } from "@marigold/system";
2651
+ import { Box as Box36 } from "@marigold/system";
2562
2652
  var Text = ({
2563
2653
  variant,
2564
2654
  size,
@@ -2571,11 +2661,11 @@ var Text = ({
2571
2661
  children,
2572
2662
  ...props
2573
2663
  }) => {
2574
- const styles = useComponentStyles30("Text", {
2664
+ const styles = useComponentStyles29("Text", {
2575
2665
  variant,
2576
2666
  size
2577
2667
  });
2578
- return /* @__PURE__ */ React59.createElement(Box35, {
2668
+ return /* @__PURE__ */ React60.createElement(Box36, {
2579
2669
  as: "p",
2580
2670
  ...props,
2581
2671
  css: [
@@ -2586,17 +2676,17 @@ var Text = ({
2586
2676
  };
2587
2677
 
2588
2678
  // src/TextArea/TextArea.tsx
2589
- import React60, { forwardRef as forwardRef13 } from "react";
2679
+ import React61, { forwardRef as forwardRef14 } from "react";
2590
2680
  import { useHover as useHover9 } from "@react-aria/interactions";
2591
2681
  import { useFocusRing as useFocusRing14 } from "@react-aria/focus";
2592
2682
  import { useTextField } from "@react-aria/textfield";
2593
- import { useObjectRef as useObjectRef13 } from "@react-aria/utils";
2683
+ import { useObjectRef as useObjectRef14 } from "@react-aria/utils";
2594
2684
  import {
2595
- Box as Box36,
2596
- useComponentStyles as useComponentStyles31,
2597
- useStateProps as useStateProps16
2685
+ Box as Box37,
2686
+ useComponentStyles as useComponentStyles30,
2687
+ useStateProps as useStateProps18
2598
2688
  } from "@marigold/system";
2599
- var TextArea = forwardRef13(
2689
+ var TextArea = forwardRef14(
2600
2690
  ({
2601
2691
  variant,
2602
2692
  size,
@@ -2609,7 +2699,7 @@ var TextArea = forwardRef13(
2609
2699
  ...props
2610
2700
  }, ref) => {
2611
2701
  const { label, description, errorMessage } = props;
2612
- const textAreaRef = useObjectRef13(ref);
2702
+ const textAreaRef = useObjectRef14(ref);
2613
2703
  const { labelProps, inputProps, descriptionProps, errorMessageProps } = useTextField(
2614
2704
  {
2615
2705
  inputElementType: "textarea",
@@ -2623,15 +2713,15 @@ var TextArea = forwardRef13(
2623
2713
  );
2624
2714
  const { hoverProps, isHovered } = useHover9({});
2625
2715
  const { focusProps, isFocusVisible } = useFocusRing14();
2626
- const stateProps = useStateProps16({
2716
+ const stateProps = useStateProps18({
2627
2717
  hover: isHovered,
2628
2718
  focus: isFocusVisible,
2629
2719
  disabled,
2630
2720
  readOnly,
2631
2721
  error
2632
2722
  });
2633
- const styles = useComponentStyles31("TextArea", { variant, size });
2634
- return /* @__PURE__ */ React60.createElement(FieldBase, {
2723
+ const styles = useComponentStyles30("TextArea", { variant, size });
2724
+ return /* @__PURE__ */ React61.createElement(FieldBase, {
2635
2725
  label,
2636
2726
  labelProps,
2637
2727
  required,
@@ -2644,7 +2734,7 @@ var TextArea = forwardRef13(
2644
2734
  variant,
2645
2735
  size,
2646
2736
  width
2647
- }, /* @__PURE__ */ React60.createElement(Box36, {
2737
+ }, /* @__PURE__ */ React61.createElement(Box37, {
2648
2738
  as: "textarea",
2649
2739
  css: styles,
2650
2740
  ref: textAreaRef,
@@ -2658,16 +2748,16 @@ var TextArea = forwardRef13(
2658
2748
  );
2659
2749
 
2660
2750
  // src/TextField/TextField.tsx
2661
- import React61, { forwardRef as forwardRef14 } from "react";
2751
+ import React62, { forwardRef as forwardRef15 } from "react";
2662
2752
  import { useHover as useHover10 } from "@react-aria/interactions";
2663
2753
  import { useFocusRing as useFocusRing15 } from "@react-aria/focus";
2664
2754
  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(
2755
+ import { useObjectRef as useObjectRef15 } from "@react-aria/utils";
2756
+ import { useStateProps as useStateProps19 } from "@marigold/system";
2757
+ var TextField = forwardRef15(
2668
2758
  ({ variant, size, width, disabled, required, readOnly, error, ...props }, ref) => {
2669
2759
  const { label, description, errorMessage, autoFocus } = props;
2670
- const inputRef = useObjectRef14(ref);
2760
+ const inputRef = useObjectRef15(ref);
2671
2761
  const { labelProps, inputProps, descriptionProps, errorMessageProps } = useTextField2(
2672
2762
  {
2673
2763
  isDisabled: disabled,
@@ -2683,14 +2773,14 @@ var TextField = forwardRef14(
2683
2773
  isTextInput: true,
2684
2774
  autoFocus
2685
2775
  });
2686
- const stateProps = useStateProps17({
2776
+ const stateProps = useStateProps19({
2687
2777
  hover: isHovered,
2688
2778
  focus: isFocusVisible,
2689
2779
  disabled,
2690
2780
  readOnly,
2691
2781
  error
2692
2782
  });
2693
- return /* @__PURE__ */ React61.createElement(FieldBase, {
2783
+ return /* @__PURE__ */ React62.createElement(FieldBase, {
2694
2784
  label,
2695
2785
  labelProps,
2696
2786
  required,
@@ -2703,7 +2793,7 @@ var TextField = forwardRef14(
2703
2793
  variant,
2704
2794
  size,
2705
2795
  width
2706
- }, /* @__PURE__ */ React61.createElement(Input, {
2796
+ }, /* @__PURE__ */ React62.createElement(Input, {
2707
2797
  ref: inputRef,
2708
2798
  variant,
2709
2799
  size,
@@ -2716,7 +2806,7 @@ var TextField = forwardRef14(
2716
2806
  );
2717
2807
 
2718
2808
  // src/Tiles/Tiles.tsx
2719
- import React62 from "react";
2809
+ import React63 from "react";
2720
2810
  import { useTheme as useTheme3 } from "@marigold/system";
2721
2811
  var Tiles = ({
2722
2812
  space = "none",
@@ -2732,7 +2822,7 @@ var Tiles = ({
2732
2822
  if (stretch) {
2733
2823
  column = `minmax(${column}, 1fr)`;
2734
2824
  }
2735
- return /* @__PURE__ */ React62.createElement(Box, {
2825
+ return /* @__PURE__ */ React63.createElement(Box, {
2736
2826
  ...props,
2737
2827
  css: {
2738
2828
  display: "grid",
@@ -2744,11 +2834,11 @@ var Tiles = ({
2744
2834
  };
2745
2835
 
2746
2836
  // src/Tooltip/Tooltip.tsx
2747
- import React64 from "react";
2837
+ import React65 from "react";
2748
2838
  import { useTooltip } from "@react-aria/tooltip";
2749
2839
  import {
2750
- Box as Box37,
2751
- useComponentStyles as useComponentStyles32
2840
+ Box as Box38,
2841
+ useComponentStyles as useComponentStyles31
2752
2842
  } from "@marigold/system";
2753
2843
 
2754
2844
  // src/Tooltip/Context.ts
@@ -2757,7 +2847,7 @@ var TooltipContext = createContext8({});
2757
2847
  var useTooltipContext = () => useContext8(TooltipContext);
2758
2848
 
2759
2849
  // src/Tooltip/TooltipTrigger.tsx
2760
- import React63, { useRef as useRef17 } from "react";
2850
+ import React64, { useRef as useRef17 } from "react";
2761
2851
  import { FocusableProvider } from "@react-aria/focus";
2762
2852
  import { useOverlayPosition } from "@react-aria/overlays";
2763
2853
  import { useTooltipTrigger } from "@react-aria/tooltip";
@@ -2770,7 +2860,7 @@ var TooltipTrigger = ({
2770
2860
  children,
2771
2861
  ...rest
2772
2862
  }) => {
2773
- const [tooltipTrigger, tooltip] = React63.Children.toArray(children);
2863
+ const [tooltipTrigger, tooltip] = React64.Children.toArray(children);
2774
2864
  const props = {
2775
2865
  ...rest,
2776
2866
  isDisabled: disabled,
@@ -2798,10 +2888,10 @@ var TooltipTrigger = ({
2798
2888
  isOpen: state.isOpen,
2799
2889
  overlayRef
2800
2890
  });
2801
- return /* @__PURE__ */ React63.createElement(FocusableProvider, {
2891
+ return /* @__PURE__ */ React64.createElement(FocusableProvider, {
2802
2892
  ref: tooltipTriggerRef,
2803
2893
  ...triggerProps
2804
- }, tooltipTrigger, /* @__PURE__ */ React63.createElement(TooltipContext.Provider, {
2894
+ }, tooltipTrigger, /* @__PURE__ */ React64.createElement(TooltipContext.Provider, {
2805
2895
  value: {
2806
2896
  state,
2807
2897
  overlayRef,
@@ -2810,7 +2900,7 @@ var TooltipTrigger = ({
2810
2900
  ...tooltipProps,
2811
2901
  ...positionProps
2812
2902
  }
2813
- }, /* @__PURE__ */ React63.createElement(Overlay, {
2903
+ }, /* @__PURE__ */ React64.createElement(Overlay, {
2814
2904
  open: state.isOpen
2815
2905
  }, tooltip)));
2816
2906
  };
@@ -2819,18 +2909,18 @@ var TooltipTrigger = ({
2819
2909
  var Tooltip = ({ children, variant, size }) => {
2820
2910
  const { arrowProps, state, overlayRef, placement, ...rest } = useTooltipContext();
2821
2911
  const { tooltipProps } = useTooltip({}, state);
2822
- const styles = useComponentStyles32(
2912
+ const styles = useComponentStyles31(
2823
2913
  "Tooltip",
2824
2914
  { variant, size },
2825
2915
  { parts: ["container", "arrow"] }
2826
2916
  );
2827
- return /* @__PURE__ */ React64.createElement(Box37, {
2917
+ return /* @__PURE__ */ React65.createElement(Box38, {
2828
2918
  ...tooltipProps,
2829
2919
  ...rest,
2830
2920
  ref: overlayRef,
2831
2921
  css: styles.container,
2832
2922
  "data-placement": placement
2833
- }, /* @__PURE__ */ React64.createElement("div", null, children), /* @__PURE__ */ React64.createElement(Box37, {
2923
+ }, /* @__PURE__ */ React65.createElement("div", null, children), /* @__PURE__ */ React65.createElement(Box38, {
2834
2924
  ...arrowProps,
2835
2925
  __baseCSS: {
2836
2926
  position: "absolute",
@@ -2847,122 +2937,122 @@ var Tooltip = ({ children, variant, size }) => {
2847
2937
  Tooltip.Trigger = TooltipTrigger;
2848
2938
 
2849
2939
  // 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, {
2940
+ import { SVG as SVG3 } from "@marigold/system";
2941
+ import React66, { forwardRef as forwardRef16 } from "react";
2942
+ var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React66.createElement(SVG3, {
2853
2943
  id: "XLoader",
2854
2944
  xmlns: "http://www.w3.org/2000/svg",
2855
2945
  size: 150,
2856
2946
  viewBox: "0 0 150 150",
2857
2947
  ...props,
2858
2948
  ...ref
2859
- }, /* @__PURE__ */ React65.createElement("path", {
2949
+ }, /* @__PURE__ */ React66.createElement("path", {
2860
2950
  id: "XMLID_1_",
2861
2951
  d: "M35.3 27h26.5l54 74.1H88.7z"
2862
- }), /* @__PURE__ */ React65.createElement("path", {
2952
+ }), /* @__PURE__ */ React66.createElement("path", {
2863
2953
  id: "XMLID_5_",
2864
2954
  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", {
2955
+ }, /* @__PURE__ */ React66.createElement("animate", {
2866
2956
  attributeName: "opacity",
2867
2957
  attributeType: "XML",
2868
2958
  values: "1; .01; 1; 1; 1;",
2869
2959
  begin: "1.0s",
2870
2960
  dur: "2.5s",
2871
2961
  repeatCount: "indefinite"
2872
- })), /* @__PURE__ */ React65.createElement("path", {
2962
+ })), /* @__PURE__ */ React66.createElement("path", {
2873
2963
  id: "XMLID_18_",
2874
2964
  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", {
2965
+ }, /* @__PURE__ */ React66.createElement("animate", {
2876
2966
  attributeName: "opacity",
2877
2967
  attributeType: "XML",
2878
2968
  values: "1; .01; 1; 1; 1;",
2879
2969
  begin: "0.9s",
2880
2970
  dur: "2.5s",
2881
2971
  repeatCount: "indefinite"
2882
- })), /* @__PURE__ */ React65.createElement("path", {
2972
+ })), /* @__PURE__ */ React66.createElement("path", {
2883
2973
  id: "XMLID_19_",
2884
2974
  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", {
2975
+ }, /* @__PURE__ */ React66.createElement("animate", {
2886
2976
  attributeName: "opacity",
2887
2977
  attributeType: "XML",
2888
2978
  values: "1; .01; 1; 1; 1;",
2889
2979
  begin: "0.8s",
2890
2980
  dur: "2.5s",
2891
2981
  repeatCount: "indefinite"
2892
- })), /* @__PURE__ */ React65.createElement("path", {
2982
+ })), /* @__PURE__ */ React66.createElement("path", {
2893
2983
  id: "XMLID_20_",
2894
2984
  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", {
2985
+ }, /* @__PURE__ */ React66.createElement("animate", {
2896
2986
  attributeName: "opacity",
2897
2987
  attributeType: "XML",
2898
2988
  values: "1; .01; 1; 1; 1;",
2899
2989
  begin: "0.7s",
2900
2990
  dur: "2.5s",
2901
2991
  repeatCount: "indefinite"
2902
- })), /* @__PURE__ */ React65.createElement("path", {
2992
+ })), /* @__PURE__ */ React66.createElement("path", {
2903
2993
  id: "XMLID_21_",
2904
2994
  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", {
2995
+ }, /* @__PURE__ */ React66.createElement("animate", {
2906
2996
  attributeName: "opacity",
2907
2997
  attributeType: "XML",
2908
2998
  values: "1; .01; 1; 1; 1;",
2909
2999
  begin: "0.6s",
2910
3000
  dur: "2.5s",
2911
3001
  repeatCount: "indefinite"
2912
- })), /* @__PURE__ */ React65.createElement("path", {
3002
+ })), /* @__PURE__ */ React66.createElement("path", {
2913
3003
  id: "XMLID_22_",
2914
3004
  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", {
3005
+ }, /* @__PURE__ */ React66.createElement("animate", {
2916
3006
  attributeName: "opacity",
2917
3007
  attributeType: "XML",
2918
3008
  values: "1; .01; 1; 1; 1;",
2919
3009
  begin: "0.5s",
2920
3010
  dur: "2.5s",
2921
3011
  repeatCount: "indefinite"
2922
- })), /* @__PURE__ */ React65.createElement("path", {
3012
+ })), /* @__PURE__ */ React66.createElement("path", {
2923
3013
  id: "XMLID_23_",
2924
3014
  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", {
3015
+ }, /* @__PURE__ */ React66.createElement("animate", {
2926
3016
  attributeName: "opacity",
2927
3017
  attributeType: "XML",
2928
3018
  values: "1; .01; 1; 1; 1;",
2929
3019
  begin: "0.4s",
2930
3020
  dur: "2.5s",
2931
3021
  repeatCount: "indefinite"
2932
- })), /* @__PURE__ */ React65.createElement("path", {
3022
+ })), /* @__PURE__ */ React66.createElement("path", {
2933
3023
  id: "XMLID_24_",
2934
3024
  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", {
3025
+ }, /* @__PURE__ */ React66.createElement("animate", {
2936
3026
  attributeName: "opacity",
2937
3027
  attributeType: "XML",
2938
3028
  values: "1; .01; 1; 1; 1;",
2939
3029
  begin: "0.3s",
2940
3030
  dur: "2.5s",
2941
3031
  repeatCount: "indefinite"
2942
- })), /* @__PURE__ */ React65.createElement("path", {
3032
+ })), /* @__PURE__ */ React66.createElement("path", {
2943
3033
  id: "XMLID_25_",
2944
3034
  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", {
3035
+ }, /* @__PURE__ */ React66.createElement("animate", {
2946
3036
  attributeName: "opacity",
2947
3037
  attributeType: "XML",
2948
3038
  values: "1; .01; 1; 1; 1;",
2949
3039
  begin: "0.2s",
2950
3040
  dur: "2.5s",
2951
3041
  repeatCount: "indefinite"
2952
- })), /* @__PURE__ */ React65.createElement("path", {
3042
+ })), /* @__PURE__ */ React66.createElement("path", {
2953
3043
  id: "XMLID_26_",
2954
3044
  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", {
3045
+ }, /* @__PURE__ */ React66.createElement("animate", {
2956
3046
  attributeName: "opacity",
2957
3047
  attributeType: "XML",
2958
3048
  values: "1; .01; 1; 1; 1;",
2959
3049
  begin: "0.1s",
2960
3050
  dur: "2.5s",
2961
3051
  repeatCount: "indefinite"
2962
- })), /* @__PURE__ */ React65.createElement("path", {
3052
+ })), /* @__PURE__ */ React66.createElement("path", {
2963
3053
  id: "XMLID_27_",
2964
3054
  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", {
3055
+ }, /* @__PURE__ */ React66.createElement("animate", {
2966
3056
  attributeName: "opacity",
2967
3057
  attributeType: "XML",
2968
3058
  values: "1; .01; 1; 1; 1;",
@@ -3017,6 +3107,8 @@ export {
3017
3107
  ThemeProvider2 as ThemeProvider,
3018
3108
  Tiles,
3019
3109
  Tooltip,
3110
+ Tray,
3111
+ TrayWrapper,
3020
3112
  Underlay,
3021
3113
  VisuallyHidden,
3022
3114
  XLoader,