@marigold/components 6.8.0 → 6.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -605,59 +605,75 @@ var ListBox = forwardRef4(
605
605
 
606
606
  // src/Overlay/Modal.tsx
607
607
  import { forwardRef as forwardRef5 } from "react";
608
- import { FocusScope } from "@react-aria/focus";
609
- import { useModal, useOverlay, usePreventScroll } from "@react-aria/overlays";
610
- import { mergeProps as mergeProps4, useObjectRef as useObjectRef2 } from "@react-aria/utils";
608
+ import { Modal } from "react-aria-components";
609
+ import { useTheme } from "@marigold/system";
611
610
 
612
611
  // src/Overlay/Underlay.tsx
612
+ import { ModalOverlay } from "react-aria-components";
613
613
  import { cn as cn9, useClassNames as useClassNames7 } from "@marigold/system";
614
614
  import { jsx as jsx15 } from "react/jsx-runtime";
615
- var Underlay = ({ size, variant, ...props }) => {
615
+ var Underlay = ({
616
+ size,
617
+ variant,
618
+ open,
619
+ dismissable,
620
+ keyboardDismissable,
621
+ ...rest
622
+ }) => {
616
623
  const classNames2 = useClassNames7({ component: "Underlay", size, variant });
617
- return /* @__PURE__ */ jsx15("div", { className: cn9("fixed inset-0 z-40", classNames2), ...props });
624
+ const props = {
625
+ isOpen: open,
626
+ isDismissable: dismissable,
627
+ isKeyboardDismissDisabled: keyboardDismissable,
628
+ ...rest
629
+ };
630
+ return /* @__PURE__ */ jsx15(
631
+ ModalOverlay,
632
+ {
633
+ className: ({ isEntering, isExiting }) => cn9(
634
+ "fixed inset-0 z-10 flex min-h-full items-center justify-center overflow-y-auto backdrop-blur ",
635
+ isEntering ? "animate-in fade-in duration-300 ease-out" : "",
636
+ isExiting ? "animate-out fade-out duration-200 ease-in" : "",
637
+ classNames2
638
+ ),
639
+ ...props,
640
+ children: props.children
641
+ }
642
+ );
618
643
  };
619
644
 
620
645
  // src/Overlay/Modal.tsx
621
- import { jsx as jsx16, jsxs as jsxs8 } from "react/jsx-runtime";
622
- var Modal = forwardRef5(
623
- ({ children, open, dismissable, keyboardDismissable, onClose, ...props }, ref) => {
624
- const modalRef = useObjectRef2(ref);
625
- const { overlayProps, underlayProps } = useOverlay(
626
- {
627
- isOpen: open,
628
- onClose,
629
- isDismissable: dismissable,
630
- isKeyboardDismissDisabled: !keyboardDismissable
631
- },
632
- modalRef
633
- );
634
- usePreventScroll();
635
- const { modalProps } = useModal({});
636
- return /* @__PURE__ */ jsxs8(FocusScope, { contain: true, restoreFocus: true, autoFocus: true, children: [
637
- /* @__PURE__ */ jsx16(Underlay, { ...underlayProps, variant: "modal" }),
638
- /* @__PURE__ */ jsx16(
639
- "div",
640
- {
641
- className: "pointer-none fixed inset-0 z-50 flex items-center justify-center",
642
- ref: modalRef,
643
- ...mergeProps4(props, overlayProps, modalProps),
644
- children: /* @__PURE__ */ jsx16("div", { style: { pointerEvents: "auto" }, children })
645
- }
646
- )
647
- ] });
648
- }
649
- );
646
+ import { jsx as jsx16 } from "react/jsx-runtime";
647
+ var _Modal = forwardRef5(({ open, dismissable, keyboardDismissable, ...rest }, ref) => {
648
+ const theme = useTheme();
649
+ const props = {
650
+ isOpen: open,
651
+ isDismissable: dismissable,
652
+ isKeyboardDismissDisabled: keyboardDismissable,
653
+ ...rest
654
+ };
655
+ return /* @__PURE__ */ jsx16(
656
+ Underlay,
657
+ {
658
+ dismissable,
659
+ keyboardDismissable,
660
+ open,
661
+ variant: "modal",
662
+ children: /* @__PURE__ */ jsx16(Modal, { ref, "data-theme": theme.name, ...props, children: props.children })
663
+ }
664
+ );
665
+ });
650
666
 
651
667
  // src/Overlay/Overlay.tsx
652
668
  import { useRef as useRef4 } from "react";
653
669
  import {
654
670
  Overlay as ReactAriaOverlay
655
671
  } from "@react-aria/overlays";
656
- import { useTheme } from "@marigold/system";
672
+ import { useTheme as useTheme2 } from "@marigold/system";
657
673
  import { jsx as jsx17 } from "react/jsx-runtime";
658
674
  var Overlay = ({ children, container, open }) => {
659
675
  const nodeRef = useRef4(null);
660
- const theme = useTheme();
676
+ const theme = useTheme2();
661
677
  let mountOverlay = open;
662
678
  if (!mountOverlay) {
663
679
  return null;
@@ -676,13 +692,13 @@ var Overlay = ({ children, container, open }) => {
676
692
 
677
693
  // src/Overlay/Popover.tsx
678
694
  import { forwardRef as forwardRef6, useRef as useRef5 } from "react";
679
- import { FocusScope as FocusScope2 } from "@react-aria/focus";
695
+ import { FocusScope } from "@react-aria/focus";
680
696
  import {
681
697
  DismissButton,
682
698
  usePopover
683
699
  } from "@react-aria/overlays";
684
700
  import { useClassNames as useClassNames8 } from "@marigold/system";
685
- import { jsx as jsx18, jsxs as jsxs9 } from "react/jsx-runtime";
701
+ import { jsx as jsx18, jsxs as jsxs8 } from "react/jsx-runtime";
686
702
  var Popover = forwardRef6(
687
703
  (props, ref) => {
688
704
  const fallbackRef = useRef5(null);
@@ -713,9 +729,9 @@ var PopoverWrapper = forwardRef6(
713
729
  component: "Popover",
714
730
  variant: placement
715
731
  });
716
- return /* @__PURE__ */ jsxs9(FocusScope2, { restoreFocus: true, children: [
732
+ return /* @__PURE__ */ jsxs8(FocusScope, { restoreFocus: true, children: [
717
733
  !isNonModal && /* @__PURE__ */ jsx18(Underlay, { ...underlayProps }),
718
- /* @__PURE__ */ jsxs9(
734
+ /* @__PURE__ */ jsxs8(
719
735
  "div",
720
736
  {
721
737
  ...popoverProps,
@@ -739,17 +755,27 @@ var PopoverWrapper = forwardRef6(
739
755
 
740
756
  // src/Overlay/Tray.tsx
741
757
  import { forwardRef as forwardRef7 } from "react";
742
- import { FocusScope as FocusScope3 } from "@react-aria/focus";
758
+ import { FocusScope as FocusScope2 } from "@react-aria/focus";
743
759
  import {
744
760
  DismissButton as DismissButton2,
745
761
  useModalOverlay
746
762
  } from "@react-aria/overlays";
747
- import { useObjectRef as useObjectRef3 } from "@react-aria/utils";
748
- import { jsx as jsx19, jsxs as jsxs10 } from "react/jsx-runtime";
763
+ import { useObjectRef as useObjectRef2 } from "@react-aria/utils";
764
+
765
+ // src/Overlay/_Underlay.tsx
766
+ import { cn as cn10, useClassNames as useClassNames9 } from "@marigold/system";
767
+ import { jsx as jsx19 } from "react/jsx-runtime";
768
+ var Underlay2 = ({ size, variant, ...props }) => {
769
+ const classNames2 = useClassNames9({ component: "Underlay", size, variant });
770
+ return /* @__PURE__ */ jsx19("div", { className: cn10("fixed inset-0 z-40", classNames2), ...props });
771
+ };
772
+
773
+ // src/Overlay/Tray.tsx
774
+ import { jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
749
775
  var Tray = forwardRef7(
750
776
  ({ state, children, ...props }, ref) => {
751
- const trayRef = useObjectRef3(ref);
752
- return /* @__PURE__ */ jsx19(Overlay, { open: state.isOpen, children: /* @__PURE__ */ jsx19(TrayWrapper, { state, ...props, ref: trayRef, children }) });
777
+ const trayRef = useObjectRef2(ref);
778
+ return /* @__PURE__ */ jsx20(Overlay, { open: state.isOpen, children: /* @__PURE__ */ jsx20(TrayWrapper, { state, ...props, ref: trayRef, children }) });
753
779
  }
754
780
  );
755
781
  var TrayWrapper = forwardRef7(
@@ -762,7 +788,7 @@ var TrayWrapper = forwardRef7(
762
788
  state,
763
789
  ref
764
790
  );
765
- return /* @__PURE__ */ jsx19(FocusScope3, { contain: true, restoreFocus: true, autoFocus: true, children: /* @__PURE__ */ jsx19(Underlay, { ...underlayProps, variant: "modal", children: /* @__PURE__ */ jsxs10(
791
+ return /* @__PURE__ */ jsx20(FocusScope2, { contain: true, restoreFocus: true, autoFocus: true, children: /* @__PURE__ */ jsx20(Underlay2, { ...underlayProps, variant: "modal", children: /* @__PURE__ */ jsxs9(
766
792
  "div",
767
793
  {
768
794
  ...modalProps,
@@ -770,9 +796,9 @@ var TrayWrapper = forwardRef7(
770
796
  className: "absolute bottom-0 w-full",
771
797
  "data-testid": "tray",
772
798
  children: [
773
- /* @__PURE__ */ jsx19(DismissButton2, { onDismiss: state.close }),
799
+ /* @__PURE__ */ jsx20(DismissButton2, { onDismiss: state.close }),
774
800
  children,
775
- /* @__PURE__ */ jsx19(DismissButton2, { onDismiss: state.close })
801
+ /* @__PURE__ */ jsx20(DismissButton2, { onDismiss: state.close })
776
802
  ]
777
803
  }
778
804
  ) }) });
@@ -784,9 +810,9 @@ import { useRef as useRef6 } from "react";
784
810
  import { useButton as useButton2 } from "@react-aria/button";
785
811
  import { useFocusRing as useFocusRing2 } from "@react-aria/focus";
786
812
  import { useHover } from "@react-aria/interactions";
787
- import { mergeProps as mergeProps5 } from "@react-aria/utils";
788
- import { cn as cn10, useStateProps as useStateProps3 } from "@marigold/system";
789
- import { jsx as jsx20 } from "react/jsx-runtime";
813
+ import { mergeProps as mergeProps4 } from "@react-aria/utils";
814
+ import { cn as cn11, useStateProps as useStateProps3 } from "@marigold/system";
815
+ import { jsx as jsx21 } from "react/jsx-runtime";
790
816
  var ClearButton = ({
791
817
  preventFocus,
792
818
  disabled,
@@ -829,17 +855,17 @@ var ClearButton = ({
829
855
  focusVisible: isFocusVisible,
830
856
  hover: isHovered
831
857
  });
832
- return /* @__PURE__ */ jsx20(
858
+ return /* @__PURE__ */ jsx21(
833
859
  "button",
834
860
  {
835
- ...mergeProps5(buttonProps, focusProps, hoverProps, props),
861
+ ...mergeProps4(buttonProps, focusProps, hoverProps, props),
836
862
  ...stateProps,
837
863
  ref: buttonRef,
838
- className: cn10(
864
+ className: cn11(
839
865
  "cursor-pointer appearance-none border-none p-0 pr-1",
840
866
  className
841
867
  ),
842
- children: /* @__PURE__ */ jsx20(
868
+ children: /* @__PURE__ */ jsx21(
843
869
  "svg",
844
870
  {
845
871
  xmlns: "http://www.w3.org/2000/svg",
@@ -847,7 +873,7 @@ var ClearButton = ({
847
873
  fill: "currentColor",
848
874
  width: 20,
849
875
  height: 20,
850
- children: /* @__PURE__ */ jsx20("path", { d: "M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z" })
876
+ children: /* @__PURE__ */ jsx21("path", { d: "M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z" })
851
877
  }
852
878
  )
853
879
  }
@@ -855,8 +881,8 @@ var ClearButton = ({
855
881
  };
856
882
 
857
883
  // src/Autocomplete/Autocomplete.tsx
858
- import { Fragment as Fragment2, jsx as jsx21, jsxs as jsxs11 } from "react/jsx-runtime";
859
- var SearchIcon = (props) => /* @__PURE__ */ jsx21(
884
+ import { Fragment as Fragment2, jsx as jsx22, jsxs as jsxs10 } from "react/jsx-runtime";
885
+ var SearchIcon = (props) => /* @__PURE__ */ jsx22(
860
886
  "svg",
861
887
  {
862
888
  xmlns: "http://www.w3.org/2000/svg",
@@ -865,7 +891,7 @@ var SearchIcon = (props) => /* @__PURE__ */ jsx21(
865
891
  width: 24,
866
892
  height: 24,
867
893
  ...props,
868
- children: /* @__PURE__ */ jsx21("path", { d: "M16.1865 14.5142H15.3057L14.9936 14.2131C16.0862 12.9421 16.744 11.292 16.744 9.497C16.744 5.49443 13.4996 2.25 9.497 2.25C5.49443 2.25 2.25 5.49443 2.25 9.497C2.25 13.4996 5.49443 16.744 9.497 16.744C11.292 16.744 12.9421 16.0862 14.2131 14.9936L14.5142 15.3057V16.1865L20.0888 21.75L21.75 20.0888L16.1865 14.5142ZM9.49701 14.5142C6.72085 14.5142 4.47986 12.2732 4.47986 9.49701C4.47986 6.72085 6.72085 4.47986 9.49701 4.47986C12.2732 4.47986 14.5142 6.72085 14.5142 9.49701C14.5142 12.2732 12.2732 14.5142 9.49701 14.5142Z" })
894
+ children: /* @__PURE__ */ jsx22("path", { d: "M16.1865 14.5142H15.3057L14.9936 14.2131C16.0862 12.9421 16.744 11.292 16.744 9.497C16.744 5.49443 13.4996 2.25 9.497 2.25C5.49443 2.25 2.25 5.49443 2.25 9.497C2.25 13.4996 5.49443 16.744 9.497 16.744C11.292 16.744 12.9421 16.0862 14.2131 14.9936L14.5142 15.3057V16.1865L20.0888 21.75L21.75 20.0888L16.1865 14.5142ZM9.49701 14.5142C6.72085 14.5142 4.47986 12.2732 4.47986 9.49701C4.47986 6.72085 6.72085 4.47986 9.49701 4.47986C12.2732 4.47986 14.5142 6.72085 14.5142 9.49701C14.5142 12.2732 12.2732 14.5142 9.49701 14.5142Z" })
869
895
  }
870
896
  );
871
897
  var Autocomplete = ({
@@ -920,8 +946,8 @@ var Autocomplete = ({
920
946
  state
921
947
  );
922
948
  const { isDisabled, ...restClearButtonProps } = clearButtonProps;
923
- return /* @__PURE__ */ jsxs11(Fragment2, { children: [
924
- /* @__PURE__ */ jsx21(
949
+ return /* @__PURE__ */ jsxs10(Fragment2, { children: [
950
+ /* @__PURE__ */ jsx22(
925
951
  FieldBase,
926
952
  {
927
953
  label: props.label,
@@ -931,13 +957,13 @@ var Autocomplete = ({
931
957
  errorMessage: props.errorMessage,
932
958
  disabled,
933
959
  width,
934
- children: /* @__PURE__ */ jsx21(
960
+ children: /* @__PURE__ */ jsx22(
935
961
  Input,
936
962
  {
937
963
  ...inputProps,
938
964
  ref: inputRef,
939
- icon: /* @__PURE__ */ jsx21(SearchIcon, {}),
940
- action: state.inputValue !== "" ? /* @__PURE__ */ jsx21(
965
+ icon: /* @__PURE__ */ jsx22(SearchIcon, {}),
966
+ action: state.inputValue !== "" ? /* @__PURE__ */ jsx22(
941
967
  ClearButton,
942
968
  {
943
969
  preventFocus: true,
@@ -949,7 +975,7 @@ var Autocomplete = ({
949
975
  )
950
976
  }
951
977
  ),
952
- /* @__PURE__ */ jsx21(
978
+ /* @__PURE__ */ jsx22(
953
979
  Popover,
954
980
  {
955
981
  state,
@@ -957,7 +983,7 @@ var Autocomplete = ({
957
983
  triggerRef: inputRef,
958
984
  scrollRef: listBoxRef,
959
985
  isNonModal: true,
960
- children: /* @__PURE__ */ jsx21(ListBox, { ref: listBoxRef, state, ...listBoxProps })
986
+ children: /* @__PURE__ */ jsx22(ListBox, { ref: listBoxRef, state, ...listBoxProps })
961
987
  }
962
988
  )
963
989
  ] });
@@ -974,22 +1000,22 @@ import { useComboBoxState as useComboBoxState2 } from "@react-stately/combobox";
974
1000
  // src/Button/Button.tsx
975
1001
  import { forwardRef as forwardRef8 } from "react";
976
1002
  import { Button } from "react-aria-components";
977
- import { cn as cn11, useClassNames as useClassNames9 } from "@marigold/system";
978
- import { jsx as jsx22 } from "react/jsx-runtime";
1003
+ import { cn as cn12, useClassNames as useClassNames10 } from "@marigold/system";
1004
+ import { jsx as jsx23 } from "react/jsx-runtime";
979
1005
  var _Button = forwardRef8(
980
1006
  ({ children, variant, size, className, disabled, fullWidth, ...props }, ref) => {
981
- const classNames2 = useClassNames9({
1007
+ const classNames2 = useClassNames10({
982
1008
  component: "Button",
983
1009
  variant,
984
1010
  size,
985
1011
  className
986
1012
  });
987
- return /* @__PURE__ */ jsx22(
1013
+ return /* @__PURE__ */ jsx23(
988
1014
  Button,
989
1015
  {
990
1016
  ...props,
991
1017
  ref,
992
- className: cn11(
1018
+ className: cn12(
993
1019
  "inline-flex items-center justify-center gap-[0.5ch]",
994
1020
  classNames2,
995
1021
  fullWidth ? "w-full" : void 0
@@ -1002,7 +1028,7 @@ var _Button = forwardRef8(
1002
1028
  );
1003
1029
 
1004
1030
  // src/ComboBox/ComboBox.tsx
1005
- import { Fragment as Fragment3, jsx as jsx23, jsxs as jsxs12 } from "react/jsx-runtime";
1031
+ import { Fragment as Fragment3, jsx as jsx24, jsxs as jsxs11 } from "react/jsx-runtime";
1006
1032
  var ComboBox = ({
1007
1033
  error,
1008
1034
  width,
@@ -1042,8 +1068,8 @@ var ComboBox = ({
1042
1068
  );
1043
1069
  const errorMessageProps = { "aria-invalid": error };
1044
1070
  const { label, description, errorMessage } = props;
1045
- return /* @__PURE__ */ jsxs12(Fragment3, { children: [
1046
- /* @__PURE__ */ jsx23(
1071
+ return /* @__PURE__ */ jsxs11(Fragment3, { children: [
1072
+ /* @__PURE__ */ jsx24(
1047
1073
  FieldBase,
1048
1074
  {
1049
1075
  label,
@@ -1053,25 +1079,25 @@ var ComboBox = ({
1053
1079
  errorMessage,
1054
1080
  errorMessageProps,
1055
1081
  width,
1056
- children: /* @__PURE__ */ jsx23(
1082
+ children: /* @__PURE__ */ jsx24(
1057
1083
  Input,
1058
1084
  {
1059
1085
  ...inputProps,
1060
1086
  ref: inputRef,
1061
- action: /* @__PURE__ */ jsx23(
1087
+ action: /* @__PURE__ */ jsx24(
1062
1088
  _Button,
1063
1089
  {
1064
1090
  className: "absolute right-2 h-4 w-4 border-none bg-transparent p-0",
1065
1091
  ref: buttonRef,
1066
1092
  ...triggerProps,
1067
- children: /* @__PURE__ */ jsx23(ChevronDown, { className: "h-4 w-4" })
1093
+ children: /* @__PURE__ */ jsx24(ChevronDown, { className: "h-4 w-4" })
1068
1094
  }
1069
1095
  )
1070
1096
  }
1071
1097
  )
1072
1098
  }
1073
1099
  ),
1074
- /* @__PURE__ */ jsx23(
1100
+ /* @__PURE__ */ jsx24(
1075
1101
  Popover,
1076
1102
  {
1077
1103
  state,
@@ -1079,7 +1105,7 @@ var ComboBox = ({
1079
1105
  triggerRef: inputRef,
1080
1106
  scrollRef: listBoxRef,
1081
1107
  isNonModal: true,
1082
- children: /* @__PURE__ */ jsx23(ListBox, { ref: listBoxRef, state, ...listBoxProps })
1108
+ children: /* @__PURE__ */ jsx24(ListBox, { ref: listBoxRef, state, ...listBoxProps })
1083
1109
  }
1084
1110
  )
1085
1111
  ] });
@@ -1087,16 +1113,16 @@ var ComboBox = ({
1087
1113
  ComboBox.Item = Item3;
1088
1114
 
1089
1115
  // src/Badge/Badge.tsx
1090
- import { useClassNames as useClassNames10 } from "@marigold/system";
1091
- import { jsx as jsx24 } from "react/jsx-runtime";
1116
+ import { useClassNames as useClassNames11 } from "@marigold/system";
1117
+ import { jsx as jsx25 } from "react/jsx-runtime";
1092
1118
  var Badge = ({ variant, size, children, ...props }) => {
1093
- const classNames2 = useClassNames10({ component: "Badge", variant, size });
1094
- return /* @__PURE__ */ jsx24("div", { ...props, className: classNames2, children });
1119
+ const classNames2 = useClassNames11({ component: "Badge", variant, size });
1120
+ return /* @__PURE__ */ jsx25("div", { ...props, className: classNames2, children });
1095
1121
  };
1096
1122
 
1097
1123
  // src/Breakout/Breakout.tsx
1098
- import { alignment, cn as cn12, createVar as createVar4 } from "@marigold/system";
1099
- import { jsx as jsx25 } from "react/jsx-runtime";
1124
+ import { alignment, cn as cn13, createVar as createVar4 } from "@marigold/system";
1125
+ import { jsx as jsx26 } from "react/jsx-runtime";
1100
1126
  var Breakout = ({
1101
1127
  height,
1102
1128
  children,
@@ -1106,10 +1132,10 @@ var Breakout = ({
1106
1132
  ...props
1107
1133
  }) => {
1108
1134
  var _a, _b, _c, _d;
1109
- return /* @__PURE__ */ jsx25(
1135
+ return /* @__PURE__ */ jsx26(
1110
1136
  "div",
1111
1137
  {
1112
- className: cn12(
1138
+ className: cn13(
1113
1139
  "col-start-[1_!important] col-end-[-1_!important] w-full",
1114
1140
  alignX && ((_b = (_a = alignment) == null ? void 0 : _a.horizontal) == null ? void 0 : _b.alignmentX[alignX]),
1115
1141
  alignY && ((_d = (_c = alignment) == null ? void 0 : _c.horizontal) == null ? void 0 : _d.alignmentY[alignY]),
@@ -1124,16 +1150,16 @@ var Breakout = ({
1124
1150
  };
1125
1151
 
1126
1152
  // src/Body/Body.tsx
1127
- import { useClassNames as useClassNames11 } from "@marigold/system";
1128
- import { jsx as jsx26 } from "react/jsx-runtime";
1153
+ import { useClassNames as useClassNames12 } from "@marigold/system";
1154
+ import { jsx as jsx27 } from "react/jsx-runtime";
1129
1155
  var Body = ({ children, variant, size, ...props }) => {
1130
- const classNames2 = useClassNames11({ component: "Body", variant, size });
1131
- return /* @__PURE__ */ jsx26("section", { ...props, className: classNames2, children });
1156
+ const classNames2 = useClassNames12({ component: "Body", variant, size });
1157
+ return /* @__PURE__ */ jsx27("section", { ...props, className: classNames2, children });
1132
1158
  };
1133
1159
 
1134
1160
  // src/Card/Card.tsx
1135
1161
  import {
1136
- cn as cn13,
1162
+ cn as cn14,
1137
1163
  gapSpace as gapSpace2,
1138
1164
  paddingBottom,
1139
1165
  paddingLeft,
@@ -1142,9 +1168,9 @@ import {
1142
1168
  paddingSpaceX,
1143
1169
  paddingSpaceY,
1144
1170
  paddingTop,
1145
- useClassNames as useClassNames12
1171
+ useClassNames as useClassNames13
1146
1172
  } from "@marigold/system";
1147
- import { jsx as jsx27 } from "react/jsx-runtime";
1173
+ import { jsx as jsx28 } from "react/jsx-runtime";
1148
1174
  var Card = ({
1149
1175
  children,
1150
1176
  variant,
@@ -1159,12 +1185,12 @@ var Card = ({
1159
1185
  pr,
1160
1186
  ...props
1161
1187
  }) => {
1162
- const classNames2 = useClassNames12({ component: "Card", variant, size });
1163
- return /* @__PURE__ */ jsx27(
1188
+ const classNames2 = useClassNames13({ component: "Card", variant, size });
1189
+ return /* @__PURE__ */ jsx28(
1164
1190
  "div",
1165
1191
  {
1166
1192
  ...props,
1167
- className: cn13(
1193
+ className: cn14(
1168
1194
  "flex flex-col",
1169
1195
  classNames2,
1170
1196
  gapSpace2[space],
@@ -1182,19 +1208,19 @@ var Card = ({
1182
1208
  };
1183
1209
 
1184
1210
  // src/Center/Center.tsx
1185
- import { cn as cn14, createVar as createVar5, gapSpace as gapSpace3 } from "@marigold/system";
1186
- import { jsx as jsx28 } from "react/jsx-runtime";
1211
+ import { cn as cn15, createVar as createVar5, gapSpace as gapSpace3 } from "@marigold/system";
1212
+ import { jsx as jsx29 } from "react/jsx-runtime";
1187
1213
  var Center = ({
1188
1214
  maxWidth = "100%",
1189
1215
  space = 0,
1190
1216
  children,
1191
1217
  ...props
1192
1218
  }) => {
1193
- return /* @__PURE__ */ jsx28(
1219
+ return /* @__PURE__ */ jsx29(
1194
1220
  "div",
1195
1221
  {
1196
1222
  ...props,
1197
- className: cn14(
1223
+ className: cn15(
1198
1224
  "me-[auto] ms-[auto] box-content flex flex-col items-center justify-center",
1199
1225
  gapSpace3[space],
1200
1226
  "max-w-[--maxWidth]"
@@ -1208,9 +1234,9 @@ var Center = ({
1208
1234
  // src/Checkbox/Checkbox.tsx
1209
1235
  import { forwardRef as forwardRef9 } from "react";
1210
1236
  import { Checkbox } from "react-aria-components";
1211
- import { cn as cn15, useClassNames as useClassNames13 } from "@marigold/system";
1212
- import { Fragment as Fragment4, jsx as jsx29, jsxs as jsxs13 } from "react/jsx-runtime";
1213
- var CheckMark = () => /* @__PURE__ */ jsx29("svg", { viewBox: "0 0 12 10", children: /* @__PURE__ */ jsx29(
1237
+ import { cn as cn16, useClassNames as useClassNames14 } from "@marigold/system";
1238
+ import { Fragment as Fragment4, jsx as jsx30, jsxs as jsxs12 } from "react/jsx-runtime";
1239
+ var CheckMark = () => /* @__PURE__ */ jsx30("svg", { viewBox: "0 0 12 10", children: /* @__PURE__ */ jsx30(
1214
1240
  "path",
1215
1241
  {
1216
1242
  fill: "currentColor",
@@ -1218,7 +1244,7 @@ var CheckMark = () => /* @__PURE__ */ jsx29("svg", { viewBox: "0 0 12 10", child
1218
1244
  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"
1219
1245
  }
1220
1246
  ) });
1221
- var IndeterminateMark = () => /* @__PURE__ */ jsx29("svg", { width: "12", height: "3", viewBox: "0 0 12 3", children: /* @__PURE__ */ jsx29(
1247
+ var IndeterminateMark = () => /* @__PURE__ */ jsx30("svg", { width: "12", height: "3", viewBox: "0 0 12 3", children: /* @__PURE__ */ jsx30(
1222
1248
  "path",
1223
1249
  {
1224
1250
  fill: "currentColor",
@@ -1227,11 +1253,11 @@ var IndeterminateMark = () => /* @__PURE__ */ jsx29("svg", { width: "12", height
1227
1253
  }
1228
1254
  ) });
1229
1255
  var Icon = ({ className, checked, indeterminate, ...props }) => {
1230
- return /* @__PURE__ */ jsx29(
1256
+ return /* @__PURE__ */ jsx30(
1231
1257
  "div",
1232
1258
  {
1233
1259
  "aria-hidden": "true",
1234
- className: cn15(
1260
+ className: cn16(
1235
1261
  "flex shrink-0 grow-0 basis-4 items-center justify-center",
1236
1262
  "h-4 w-4 p-px",
1237
1263
  "bg-white",
@@ -1239,7 +1265,7 @@ var Icon = ({ className, checked, indeterminate, ...props }) => {
1239
1265
  className
1240
1266
  ),
1241
1267
  ...props,
1242
- children: indeterminate ? /* @__PURE__ */ jsx29(IndeterminateMark, {}) : checked ? /* @__PURE__ */ jsx29(CheckMark, {}) : null
1268
+ children: indeterminate ? /* @__PURE__ */ jsx30(IndeterminateMark, {}) : checked ? /* @__PURE__ */ jsx30(CheckMark, {}) : null
1243
1269
  }
1244
1270
  );
1245
1271
  };
@@ -1268,19 +1294,19 @@ var _Checkbox = forwardRef9(
1268
1294
  defaultSelected: defaultChecked,
1269
1295
  ...rest
1270
1296
  };
1271
- const classNames2 = useClassNames13({ component: "Checkbox", variant, size });
1272
- return /* @__PURE__ */ jsx29(
1297
+ const classNames2 = useClassNames14({ component: "Checkbox", variant, size });
1298
+ return /* @__PURE__ */ jsx30(
1273
1299
  Checkbox,
1274
1300
  {
1275
1301
  ref,
1276
- className: cn15(
1302
+ className: cn16(
1277
1303
  "group/checkbox flex items-center gap-[0.5rem]",
1278
1304
  "cursor-pointer data-[disabled]:cursor-not-allowed",
1279
1305
  classNames2.container
1280
1306
  ),
1281
1307
  ...props,
1282
- children: ({ isSelected, isIndeterminate }) => /* @__PURE__ */ jsxs13(Fragment4, { children: [
1283
- /* @__PURE__ */ jsx29(
1308
+ children: ({ isSelected, isIndeterminate }) => /* @__PURE__ */ jsxs12(Fragment4, { children: [
1309
+ /* @__PURE__ */ jsx30(
1284
1310
  Icon,
1285
1311
  {
1286
1312
  checked: isSelected,
@@ -1288,7 +1314,7 @@ var _Checkbox = forwardRef9(
1288
1314
  className: classNames2.checkbox
1289
1315
  }
1290
1316
  ),
1291
- /* @__PURE__ */ jsx29("div", { className: classNames2.label, children })
1317
+ /* @__PURE__ */ jsx30("div", { className: classNames2.label, children })
1292
1318
  ] })
1293
1319
  }
1294
1320
  );
@@ -1297,16 +1323,16 @@ var _Checkbox = forwardRef9(
1297
1323
 
1298
1324
  // src/Checkbox/CheckboxGroup.tsx
1299
1325
  import { CheckboxGroup } from "react-aria-components";
1300
- import { useClassNames as useClassNames16 } from "@marigold/system";
1326
+ import { useClassNames as useClassNames17 } from "@marigold/system";
1301
1327
 
1302
1328
  // src/FieldBase/_FieldBase.tsx
1303
1329
  import { forwardRef as forwardRef10 } from "react";
1304
- import { cn as cn17, width as twWidth2, useClassNames as useClassNames15 } from "@marigold/system";
1330
+ import { cn as cn18, width as twWidth2, useClassNames as useClassNames16 } from "@marigold/system";
1305
1331
 
1306
1332
  // src/HelpText/_HelpText.tsx
1307
1333
  import { FieldError, Text } from "react-aria-components";
1308
- import { cn as cn16, useClassNames as useClassNames14 } from "@marigold/system";
1309
- import { jsx as jsx30, jsxs as jsxs14 } from "react/jsx-runtime";
1334
+ import { cn as cn17, useClassNames as useClassNames15 } from "@marigold/system";
1335
+ import { jsx as jsx31, jsxs as jsxs13 } from "react/jsx-runtime";
1310
1336
  var HelpText2 = ({
1311
1337
  variant,
1312
1338
  size,
@@ -1317,7 +1343,7 @@ var HelpText2 = ({
1317
1343
  ...props
1318
1344
  }) => {
1319
1345
  const hasErrorMessage = errorMessage && error;
1320
- const classNames2 = useClassNames14({
1346
+ const classNames2 = useClassNames15({
1321
1347
  component: "HelpText",
1322
1348
  variant,
1323
1349
  size
@@ -1325,33 +1351,33 @@ var HelpText2 = ({
1325
1351
  if (!description && !errorMessage) {
1326
1352
  return null;
1327
1353
  }
1328
- return /* @__PURE__ */ jsxs14("div", { className: cn16(classNames2.container), children: [
1329
- /* @__PURE__ */ jsxs14(
1354
+ return /* @__PURE__ */ jsxs13("div", { className: cn17(classNames2.container), children: [
1355
+ /* @__PURE__ */ jsxs13(
1330
1356
  FieldError,
1331
1357
  {
1332
1358
  ...props,
1333
1359
  className: "grid grid-flow-col items-center justify-start gap-1",
1334
1360
  children: [
1335
- /* @__PURE__ */ jsx30(
1361
+ /* @__PURE__ */ jsx31(
1336
1362
  "svg",
1337
1363
  {
1338
- className: cn16("h-4 w-4", classNames2.icon),
1364
+ className: cn17("h-4 w-4", classNames2.icon),
1339
1365
  viewBox: "0 0 24 24",
1340
1366
  role: "presentation",
1341
1367
  fill: "currentColor",
1342
- children: /* @__PURE__ */ jsx30("path", { d: "M2.25 20.3097H21.75L12 3.46875L2.25 20.3097ZM12.8864 17.2606H11.1136V15.4879H12.8864V17.2606ZM12.8864 13.7151H11.1136V10.1697H12.8864V13.7151Z" })
1368
+ children: /* @__PURE__ */ jsx31("path", { d: "M2.25 20.3097H21.75L12 3.46875L2.25 20.3097ZM12.8864 17.2606H11.1136V15.4879H12.8864V17.2606ZM12.8864 13.7151H11.1136V10.1697H12.8864V13.7151Z" })
1343
1369
  }
1344
1370
  ),
1345
1371
  errorMessage
1346
1372
  ]
1347
1373
  }
1348
1374
  ),
1349
- !hasErrorMessage && /* @__PURE__ */ jsx30(Text, { slot: "description", children: description })
1375
+ !hasErrorMessage && /* @__PURE__ */ jsx31(Text, { slot: "description", children: description })
1350
1376
  ] });
1351
1377
  };
1352
1378
 
1353
1379
  // src/FieldBase/_FieldBase.tsx
1354
- import { jsx as jsx31, jsxs as jsxs15 } from "react/jsx-runtime";
1380
+ import { jsx as jsx32, jsxs as jsxs14 } from "react/jsx-runtime";
1355
1381
  var fixedForwardRef = forwardRef10;
1356
1382
  var _FieldBase = (props, ref) => {
1357
1383
  const {
@@ -1364,24 +1390,26 @@ var _FieldBase = (props, ref) => {
1364
1390
  description,
1365
1391
  errorMessage,
1366
1392
  className,
1393
+ stateProps,
1367
1394
  ...rest
1368
1395
  } = props;
1369
- const classNames2 = useClassNames15({
1396
+ const classNames2 = useClassNames16({
1370
1397
  component: "Field",
1371
1398
  variant,
1372
1399
  size
1373
1400
  });
1374
- return /* @__PURE__ */ jsxs15(
1401
+ return /* @__PURE__ */ jsxs14(
1375
1402
  Component,
1376
1403
  {
1377
1404
  ref,
1378
- className: cn17("group/field", twWidth2[width], classNames2, className),
1405
+ className: cn18("group/field", twWidth2[width], classNames2, className),
1379
1406
  "data-required": props.isRequired ? true : void 0,
1407
+ "data-error": props.isInvalid ? true : void 0,
1380
1408
  ...rest,
1381
1409
  children: [
1382
- label ? /* @__PURE__ */ jsx31(_Label, { variant, size, children: label }) : /* @__PURE__ */ jsx31("span", { "aria-hidden": "true" }),
1410
+ label ? /* @__PURE__ */ jsx32(_Label, { variant, size, children: label }) : /* @__PURE__ */ jsx32("span", { "aria-hidden": "true" }),
1383
1411
  children,
1384
- /* @__PURE__ */ jsx31(
1412
+ /* @__PURE__ */ jsx32(
1385
1413
  HelpText2,
1386
1414
  {
1387
1415
  variant,
@@ -1398,7 +1426,7 @@ var _FieldBase = (props, ref) => {
1398
1426
  var FieldBase2 = fixedForwardRef(_FieldBase);
1399
1427
 
1400
1428
  // src/Checkbox/CheckboxGroup.tsx
1401
- import { jsx as jsx32 } from "react/jsx-runtime";
1429
+ import { jsx as jsx33 } from "react/jsx-runtime";
1402
1430
  var _CheckboxGroup = ({
1403
1431
  children,
1404
1432
  variant,
@@ -1409,7 +1437,7 @@ var _CheckboxGroup = ({
1409
1437
  error,
1410
1438
  ...rest
1411
1439
  }) => {
1412
- const classNames2 = useClassNames16({
1440
+ const classNames2 = useClassNames17({
1413
1441
  component: "Checkbox",
1414
1442
  variant,
1415
1443
  size,
@@ -1423,13 +1451,13 @@ var _CheckboxGroup = ({
1423
1451
  isInvalid: error,
1424
1452
  ...rest
1425
1453
  };
1426
- return /* @__PURE__ */ jsx32(FieldBase2, { as: CheckboxGroup, ...props, children });
1454
+ return /* @__PURE__ */ jsx33(FieldBase2, { as: CheckboxGroup, ...props, children });
1427
1455
  };
1428
1456
 
1429
1457
  // src/Columns/Columns.tsx
1430
1458
  import { Children as Children3, cloneElement as cloneElement3, isValidElement as isValidElement2 } from "react";
1431
- import { cn as cn18, createVar as createVar6, gapSpace as gapSpace4 } from "@marigold/system";
1432
- import { jsx as jsx33 } from "react/jsx-runtime";
1459
+ import { cn as cn19, createVar as createVar6, gapSpace as gapSpace4 } from "@marigold/system";
1460
+ import { jsx as jsx34 } from "react/jsx-runtime";
1433
1461
  var Columns = ({
1434
1462
  space = 0,
1435
1463
  columns,
@@ -1445,19 +1473,19 @@ var Columns = ({
1445
1473
  )}`
1446
1474
  );
1447
1475
  }
1448
- return /* @__PURE__ */ jsx33(
1476
+ return /* @__PURE__ */ jsx34(
1449
1477
  "div",
1450
1478
  {
1451
- className: cn18(
1479
+ className: cn19(
1452
1480
  "flex flex-wrap items-stretch",
1453
1481
  stretch && "h-full",
1454
1482
  gapSpace4[space]
1455
1483
  ),
1456
1484
  ...props,
1457
- children: Children3.map(children, (child, idx) => /* @__PURE__ */ jsx33(
1485
+ children: Children3.map(children, (child, idx) => /* @__PURE__ */ jsx34(
1458
1486
  "div",
1459
1487
  {
1460
- className: cn18(
1488
+ className: cn19(
1461
1489
  "grow-[--columnSize] basis-[calc((var(--collapseAt)_-_100%)_*_999)]"
1462
1490
  ),
1463
1491
  style: createVar6({ collapseAt, columnSize: columns[idx] }),
@@ -1470,13 +1498,13 @@ var Columns = ({
1470
1498
 
1471
1499
  // src/Container/Container.tsx
1472
1500
  import {
1473
- cn as cn19,
1501
+ cn as cn20,
1474
1502
  createVar as createVar7,
1475
1503
  gridColsAlign,
1476
1504
  gridColumn,
1477
1505
  placeItems
1478
1506
  } from "@marigold/system";
1479
- import { jsx as jsx34 } from "react/jsx-runtime";
1507
+ import { jsx as jsx35 } from "react/jsx-runtime";
1480
1508
  var content = {
1481
1509
  small: "20ch",
1482
1510
  medium: "45ch",
@@ -1496,11 +1524,11 @@ var Container = ({
1496
1524
  ...props
1497
1525
  }) => {
1498
1526
  const maxWidth = contentType === "content" ? content[size] : header[size];
1499
- return /* @__PURE__ */ jsx34(
1527
+ return /* @__PURE__ */ jsx35(
1500
1528
  "div",
1501
1529
  {
1502
1530
  ...props,
1503
- className: cn19(
1531
+ className: cn20(
1504
1532
  "grid",
1505
1533
  placeItems[alignItems],
1506
1534
  gridColsAlign[align],
@@ -1513,38 +1541,19 @@ var Container = ({
1513
1541
  };
1514
1542
 
1515
1543
  // src/Dialog/Dialog.tsx
1516
- import {
1517
- Children as Children5,
1518
- cloneElement as cloneElement4,
1519
- isValidElement as isValidElement3,
1520
- useRef as useRef9
1521
- } from "react";
1522
- import { useButton as useButton3 } from "@react-aria/button";
1523
- import { useDialog } from "@react-aria/dialog";
1524
- import { cn as cn21, useClassNames as useClassNames19 } from "@marigold/system";
1525
-
1526
- // src/Header/Header.tsx
1527
- import { Header } from "react-aria-components";
1528
- import { useClassNames as useClassNames17 } from "@marigold/system";
1529
- import { jsx as jsx35 } from "react/jsx-runtime";
1530
- var _Header = ({ variant, size, ...props }) => {
1531
- const classNames2 = useClassNames17({
1532
- component: "Header",
1533
- variant,
1534
- size
1535
- });
1536
- return /* @__PURE__ */ jsx35(Header, { className: classNames2, ...props, children: props.children });
1537
- };
1544
+ import { useContext as useContext3 } from "react";
1545
+ import { Dialog, OverlayTriggerStateContext } from "react-aria-components";
1546
+ import { cn as cn22, useClassNames as useClassNames19 } from "@marigold/system";
1538
1547
 
1539
1548
  // src/Headline/Headline.tsx
1540
1549
  import { Heading } from "react-aria-components";
1541
1550
  import {
1542
- cn as cn20,
1551
+ cn as cn21,
1543
1552
  createVar as createVar8,
1544
1553
  get,
1545
1554
  textAlign,
1546
1555
  useClassNames as useClassNames18,
1547
- useTheme as useTheme2
1556
+ useTheme as useTheme3
1548
1557
  } from "@marigold/system";
1549
1558
  import { jsx as jsx36 } from "react/jsx-runtime";
1550
1559
  var _Headline = ({
@@ -1556,7 +1565,7 @@ var _Headline = ({
1556
1565
  level = 1,
1557
1566
  ...props
1558
1567
  }) => {
1559
- const theme = useTheme2();
1568
+ const theme = useTheme3();
1560
1569
  const classNames2 = useClassNames18({
1561
1570
  component: "Headline",
1562
1571
  variant,
@@ -1567,7 +1576,7 @@ var _Headline = ({
1567
1576
  {
1568
1577
  level: Number(level),
1569
1578
  ...props,
1570
- className: cn20(classNames2, "text-[--color]", textAlign[align]),
1579
+ className: cn21(classNames2, "text-[--color]", textAlign[align]),
1571
1580
  style: createVar8({
1572
1581
  color: color && theme.colors && get(
1573
1582
  theme.colors,
@@ -1581,96 +1590,50 @@ var _Headline = ({
1581
1590
  );
1582
1591
  };
1583
1592
 
1584
- // src/Dialog/Context.ts
1585
- import { createContext as createContext3, useContext as useContext3 } from "react";
1586
- var DialogContext = createContext3({});
1587
- var useDialogContext = () => useContext3(DialogContext);
1588
-
1589
- // src/Dialog/DialogController.tsx
1590
- import { useOverlayTriggerState } from "@react-stately/overlays";
1591
- import { jsx as jsx37 } from "react/jsx-runtime";
1592
- var DialogController = ({
1593
- children,
1594
- dismissable = true,
1595
- keyboardDismissable = true,
1593
+ // src/Dialog/DialogTrigger.tsx
1594
+ import { Children as Children4 } from "react";
1595
+ import { DialogTrigger } from "react-aria-components";
1596
+ import { jsx as jsx37, jsxs as jsxs15 } from "react/jsx-runtime";
1597
+ var _DialogTrigger = ({
1596
1598
  open,
1597
- onOpenChange
1599
+ dismissable,
1600
+ keyboardDismissable,
1601
+ ...rest
1598
1602
  }) => {
1599
- const state = useOverlayTriggerState({
1603
+ const props = {
1600
1604
  isOpen: open,
1601
- onOpenChange
1602
- });
1603
- const ctx = { open: state.isOpen, close: state.close };
1604
- return /* @__PURE__ */ jsx37(DialogContext.Provider, { value: ctx, children: /* @__PURE__ */ jsx37(Overlay, { open: state.isOpen, children: /* @__PURE__ */ jsx37(
1605
- Modal,
1606
- {
1607
- open: state.isOpen,
1608
- onClose: state.close,
1609
- dismissable,
1610
- keyboardDismissable,
1611
- children
1612
- }
1613
- ) }) });
1614
- };
1615
-
1616
- // src/Dialog/DialogTrigger.tsx
1617
- import { Children as Children4, useRef as useRef8 } from "react";
1618
- import { PressResponder } from "@react-aria/interactions";
1619
- import { useOverlayTriggerState as useOverlayTriggerState2 } from "@react-stately/overlays";
1620
- import { jsx as jsx38, jsxs as jsxs16 } from "react/jsx-runtime";
1621
- var DialogTrigger = ({
1622
- children,
1623
- dismissable = true,
1624
- keyboardDismissable = true
1625
- }) => {
1626
- const [dialogTrigger, dialog] = Children4.toArray(children);
1627
- const dialogTriggerRef = useRef8(null);
1628
- const state = useOverlayTriggerState2({});
1629
- const ctx = { open: state.isOpen, close: state.close };
1630
- return /* @__PURE__ */ jsxs16(DialogContext.Provider, { value: ctx, children: [
1631
- /* @__PURE__ */ jsx38(
1632
- PressResponder,
1633
- {
1634
- ref: dialogTriggerRef,
1635
- isPressed: state.isOpen,
1636
- onPress: state.toggle,
1637
- children: dialogTrigger
1638
- }
1639
- ),
1640
- /* @__PURE__ */ jsx38(Overlay, { open: state.isOpen, children: /* @__PURE__ */ jsx38(
1641
- Modal,
1605
+ ...rest
1606
+ };
1607
+ const children = Children4.toArray(props.children);
1608
+ const [dialogTrigger, dialog] = children;
1609
+ const hasDialogTrigger = dialogTrigger.type !== _Dialog;
1610
+ const currentDialog = children.length < 2 ? !hasDialogTrigger && dialogTrigger : dialog;
1611
+ return /* @__PURE__ */ jsxs15(DialogTrigger, { ...props, children: [
1612
+ hasDialogTrigger && dialogTrigger,
1613
+ /* @__PURE__ */ jsx37(
1614
+ _Modal,
1642
1615
  {
1643
- open: state.isOpen,
1644
- onClose: state.close,
1645
1616
  dismissable,
1646
1617
  keyboardDismissable,
1647
- children: dialog
1618
+ children: currentDialog
1648
1619
  }
1649
- ) })
1620
+ )
1650
1621
  ] });
1651
1622
  };
1652
1623
 
1653
1624
  // src/Dialog/Dialog.tsx
1654
- import { jsx as jsx39, jsxs as jsxs17 } from "react/jsx-runtime";
1625
+ import { Fragment as Fragment5, jsx as jsx38, jsxs as jsxs16 } from "react/jsx-runtime";
1655
1626
  var CloseButton = ({ className }) => {
1656
- const ref = useRef9(null);
1657
- const { close } = useDialogContext();
1658
- const { buttonProps } = useButton3(
1659
- {
1660
- onPress: () => close == null ? void 0 : close()
1661
- },
1662
- ref
1663
- );
1664
- return /* @__PURE__ */ jsx39("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx39(
1627
+ const { close } = useContext3(OverlayTriggerStateContext);
1628
+ return /* @__PURE__ */ jsx38("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx38(
1665
1629
  "button",
1666
1630
  {
1667
- className: cn21(
1631
+ className: cn22(
1668
1632
  "h-4 w-4 cursor-pointer border-none p-0 leading-normal outline-0",
1669
1633
  className
1670
1634
  ),
1671
- ref,
1672
- ...buttonProps,
1673
- children: /* @__PURE__ */ jsx39("svg", { viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx39(
1635
+ onClick: close,
1636
+ children: /* @__PURE__ */ jsx38("svg", { viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx38(
1674
1637
  "path",
1675
1638
  {
1676
1639
  fillRule: "evenodd",
@@ -1681,66 +1644,74 @@ var CloseButton = ({ className }) => {
1681
1644
  }
1682
1645
  ) });
1683
1646
  };
1684
- var addTitleProps = (children, titleProps) => {
1685
- const childs = Children5.toArray(children);
1686
- const titleIndex = childs.findIndex(
1687
- (child) => isValidElement3(child) && (child.type === _Header || child.type === _Headline)
1688
- );
1689
- if (titleIndex < 0) {
1690
- console.warn(
1691
- "No child in <Dialog> found that can act as title for accessibility. Please add a <Header> or <Headline> as direct child."
1692
- );
1693
- return children;
1694
- }
1695
- const titleChild = cloneElement4(
1696
- childs[titleIndex],
1697
- titleProps
1698
- );
1699
- childs.splice(titleIndex, 1, titleChild);
1700
- return childs;
1701
- };
1702
- var Dialog = ({
1703
- children,
1647
+ var DialogHeadline = ({ children }) => /* @__PURE__ */ jsx38(_Headline, { slot: "title", children });
1648
+ var _Dialog = ({
1704
1649
  variant,
1705
1650
  size,
1706
1651
  closeButton,
1652
+ isNonModal,
1707
1653
  ...props
1708
1654
  }) => {
1709
- const ref = useRef9(null);
1710
- const { close } = useDialogContext();
1711
- const { dialogProps, titleProps } = useDialog(props, ref);
1712
1655
  const classNames2 = useClassNames19({ component: "Dialog", variant, size });
1713
- return /* @__PURE__ */ jsxs17("div", { className: classNames2.container, ...dialogProps, children: [
1714
- closeButton && /* @__PURE__ */ jsx39(CloseButton, { className: classNames2.closeButton }),
1715
- typeof children === "function" ? children({ close, titleProps }) : props["aria-labelledby"] ? children : addTitleProps(children, titleProps)
1716
- ] });
1656
+ let state = useContext3(OverlayTriggerStateContext);
1657
+ let children = props.children;
1658
+ if (typeof children === "function") {
1659
+ children = children({
1660
+ close: (state == null ? void 0 : state.close) || (() => {
1661
+ })
1662
+ });
1663
+ }
1664
+ return /* @__PURE__ */ jsx38(
1665
+ Dialog,
1666
+ {
1667
+ ...props,
1668
+ className: cn22("relative outline-none", classNames2.container),
1669
+ children: /* @__PURE__ */ jsxs16(Fragment5, { children: [
1670
+ closeButton && /* @__PURE__ */ jsx38(CloseButton, { className: classNames2.closeButton }),
1671
+ children
1672
+ ] })
1673
+ }
1674
+ );
1717
1675
  };
1718
- Dialog.Trigger = DialogTrigger;
1719
- Dialog.Controller = DialogController;
1676
+ _Dialog.Trigger = _DialogTrigger;
1677
+ _Dialog.Headline = DialogHeadline;
1720
1678
 
1721
1679
  // src/Divider/Divider.tsx
1722
1680
  import { Separator } from "react-aria-components";
1723
1681
  import { useClassNames as useClassNames20 } from "@marigold/system";
1724
- import { jsx as jsx40 } from "react/jsx-runtime";
1682
+ import { jsx as jsx39 } from "react/jsx-runtime";
1725
1683
  var _Divider = ({ variant, ...props }) => {
1726
1684
  const classNames2 = useClassNames20({ component: "Divider", variant });
1727
- return /* @__PURE__ */ jsx40(Separator, { className: classNames2, ...props });
1685
+ return /* @__PURE__ */ jsx39(Separator, { className: classNames2, ...props });
1728
1686
  };
1729
1687
 
1730
1688
  // src/Footer/Footer.tsx
1731
1689
  import { useClassNames as useClassNames21 } from "@marigold/system";
1732
- import { jsx as jsx41 } from "react/jsx-runtime";
1690
+ import { jsx as jsx40 } from "react/jsx-runtime";
1733
1691
  var Footer = ({ children, variant, size, ...props }) => {
1734
1692
  const classNames2 = useClassNames21({ component: "Footer", variant, size });
1735
- return /* @__PURE__ */ jsx41("footer", { ...props, className: classNames2, children });
1693
+ return /* @__PURE__ */ jsx40("footer", { ...props, className: classNames2, children });
1694
+ };
1695
+
1696
+ // src/Header/Header.tsx
1697
+ import { Header } from "react-aria-components";
1698
+ import { useClassNames as useClassNames22 } from "@marigold/system";
1699
+ import { jsx as jsx41 } from "react/jsx-runtime";
1700
+ var _Header = ({ variant, size, ...props }) => {
1701
+ const classNames2 = useClassNames22({
1702
+ component: "Header",
1703
+ variant,
1704
+ size
1705
+ });
1706
+ return /* @__PURE__ */ jsx41(Header, { className: classNames2, ...props, children: props.children });
1736
1707
  };
1737
1708
 
1738
1709
  // src/Image/Image.tsx
1739
1710
  import {
1740
- cn as cn22,
1711
+ cn as cn23,
1741
1712
  objectFit,
1742
1713
  objectPosition,
1743
- useClassNames as useClassNames22
1714
+ useClassNames as useClassNames23
1744
1715
  } from "@marigold/system";
1745
1716
  import { jsx as jsx42 } from "react/jsx-runtime";
1746
1717
  var Image = ({
@@ -1750,13 +1721,13 @@ var Image = ({
1750
1721
  position = "none",
1751
1722
  ...props
1752
1723
  }) => {
1753
- const classNames2 = useClassNames22({ component: "Image", variant, size });
1724
+ const classNames2 = useClassNames23({ component: "Image", variant, size });
1754
1725
  return /* @__PURE__ */ jsx42(
1755
1726
  "img",
1756
1727
  {
1757
1728
  ...props,
1758
1729
  alt: props.alt,
1759
- className: cn22(
1730
+ className: cn23(
1760
1731
  fit !== "none" && "h-full w-full",
1761
1732
  classNames2,
1762
1733
  objectFit[fit],
@@ -1769,7 +1740,7 @@ var Image = ({
1769
1740
  // src/Inline/Inline.tsx
1770
1741
  import {
1771
1742
  alignment as alignment2,
1772
- cn as cn23,
1743
+ cn as cn24,
1773
1744
  gapSpace as gapSpace5
1774
1745
  } from "@marigold/system";
1775
1746
  import { jsx as jsx43 } from "react/jsx-runtime";
@@ -1786,7 +1757,7 @@ var Inline = ({
1786
1757
  "div",
1787
1758
  {
1788
1759
  ...props,
1789
- className: cn23(
1760
+ className: cn24(
1790
1761
  "flex flex-wrap",
1791
1762
  gapSpace5[space],
1792
1763
  alignX && ((_b2 = (_a2 = alignment2) == null ? void 0 : _a2.horizontal) == null ? void 0 : _b2.alignmentX[alignX]),
@@ -1799,29 +1770,29 @@ var Inline = ({
1799
1770
 
1800
1771
  // src/DateField/DateField.tsx
1801
1772
  import { createCalendar } from "@internationalized/date";
1802
- import { useRef as useRef11 } from "react";
1773
+ import { useRef as useRef9 } from "react";
1803
1774
  import { useDateField } from "@react-aria/datepicker";
1804
1775
  import { useFocusRing as useFocusRing4 } from "@react-aria/focus";
1805
1776
  import { useLocale } from "@react-aria/i18n";
1806
1777
  import { useHover as useHover2 } from "@react-aria/interactions";
1807
- import { mergeProps as mergeProps7 } from "@react-aria/utils";
1778
+ import { mergeProps as mergeProps6 } from "@react-aria/utils";
1808
1779
  import { useDateFieldState } from "@react-stately/datepicker";
1809
- import { cn as cn25, useClassNames as useClassNames23, useStateProps as useStateProps5 } from "@marigold/system";
1780
+ import { cn as cn26, useClassNames as useClassNames24, useStateProps as useStateProps5 } from "@marigold/system";
1810
1781
 
1811
1782
  // src/DateField/DateSegment.tsx
1812
- import { useRef as useRef10 } from "react";
1783
+ import { useRef as useRef8 } from "react";
1813
1784
  import { useDateSegment } from "@react-aria/datepicker";
1814
1785
  import { useFocusRing as useFocusRing3 } from "@react-aria/focus";
1815
- import { mergeProps as mergeProps6 } from "@react-aria/utils";
1816
- import { cn as cn24, useStateProps as useStateProps4 } from "@marigold/system";
1817
- import { jsx as jsx44, jsxs as jsxs18 } from "react/jsx-runtime";
1786
+ import { mergeProps as mergeProps5 } from "@react-aria/utils";
1787
+ import { cn as cn25, useStateProps as useStateProps4 } from "@marigold/system";
1788
+ import { jsx as jsx44, jsxs as jsxs17 } from "react/jsx-runtime";
1818
1789
  var DateSegment = ({
1819
1790
  className,
1820
1791
  segment,
1821
1792
  state,
1822
1793
  isPrevPlaceholder
1823
1794
  }) => {
1824
- const ref = useRef10(null);
1795
+ const ref = useRef8(null);
1825
1796
  const { segmentProps } = useDateSegment(segment, state, ref);
1826
1797
  const { focusProps, isFocused } = useFocusRing3({
1827
1798
  within: true,
@@ -1832,12 +1803,12 @@ var DateSegment = ({
1832
1803
  focusVisible: isFocused
1833
1804
  });
1834
1805
  const { isPlaceholder, placeholder, text, type, maxValue } = segment;
1835
- return /* @__PURE__ */ jsxs18(
1806
+ return /* @__PURE__ */ jsxs17(
1836
1807
  "div",
1837
1808
  {
1838
- ...mergeProps6(segmentProps, stateProps, focusProps),
1809
+ ...mergeProps5(segmentProps, stateProps, focusProps),
1839
1810
  ref,
1840
- className: cn24(
1811
+ className: cn25(
1841
1812
  "group/segment",
1842
1813
  "text-center leading-none outline-0",
1843
1814
  type !== "literal" && "p-0.5",
@@ -1852,7 +1823,7 @@ var DateSegment = ({
1852
1823
  "span",
1853
1824
  {
1854
1825
  "aria-hidden": "true",
1855
- className: cn24(
1826
+ className: cn25(
1856
1827
  isPlaceholder ? "visible block" : "invisible hidden",
1857
1828
  "pointer-events-none w-full text-center"
1858
1829
  ),
@@ -1866,7 +1837,7 @@ var DateSegment = ({
1866
1837
  };
1867
1838
 
1868
1839
  // src/DateField/DateField.tsx
1869
- import { jsx as jsx45, jsxs as jsxs19 } from "react/jsx-runtime";
1840
+ import { jsx as jsx45, jsxs as jsxs18 } from "react/jsx-runtime";
1870
1841
  var DateField = ({
1871
1842
  disabled,
1872
1843
  readOnly,
@@ -1895,13 +1866,13 @@ var DateField = ({
1895
1866
  locale,
1896
1867
  createCalendar
1897
1868
  });
1898
- const ref = useRef11(null);
1869
+ const ref = useRef9(null);
1899
1870
  const { fieldProps, labelProps, descriptionProps } = useDateField(
1900
1871
  props,
1901
1872
  state,
1902
1873
  ref
1903
1874
  );
1904
- const classNames2 = useClassNames23({ component: "DateField", variant, size });
1875
+ const classNames2 = useClassNames24({ component: "DateField", variant, size });
1905
1876
  const { focusProps, isFocused } = useFocusRing4({
1906
1877
  within: true,
1907
1878
  isTextInput: true,
@@ -1931,11 +1902,11 @@ var DateField = ({
1931
1902
  variant,
1932
1903
  size,
1933
1904
  width,
1934
- children: /* @__PURE__ */ jsxs19(
1905
+ children: /* @__PURE__ */ jsxs18(
1935
1906
  "div",
1936
1907
  {
1937
- ...mergeProps7(fieldProps, focusProps, stateProps, hoverProps),
1938
- className: cn25(
1908
+ ...mergeProps6(fieldProps, focusProps, stateProps, hoverProps),
1909
+ className: cn26(
1939
1910
  "relative flex flex-row flex-nowrap",
1940
1911
  "cursor-text aria-disabled:cursor-not-allowed",
1941
1912
  classNames2.field
@@ -1960,7 +1931,7 @@ var DateField = ({
1960
1931
  "svg",
1961
1932
  {
1962
1933
  "data-testid": "action",
1963
- className: cn25(classNames2.action),
1934
+ className: cn26(classNames2.action),
1964
1935
  viewBox: "0 0 24 24",
1965
1936
  width: 24,
1966
1937
  height: 24,
@@ -1976,14 +1947,14 @@ var DateField = ({
1976
1947
 
1977
1948
  // src/Calendar/Calendar.tsx
1978
1949
  import { createCalendar as createCalendar2 } from "@internationalized/date";
1979
- import { useRef as useRef14, useState } from "react";
1950
+ import { useRef as useRef12, useState } from "react";
1980
1951
  import {
1981
1952
  useCalendar
1982
1953
  } from "@react-aria/calendar";
1983
1954
  import { useDateFormatter as useDateFormatter3, useLocale as useLocale3 } from "@react-aria/i18n";
1984
1955
  import { useCalendarState } from "@react-stately/calendar";
1985
1956
  import { ChevronDown as ChevronDown2, ChevronLeft, ChevronRight } from "@marigold/icons";
1986
- import { cn as cn27, useClassNames as useClassNames25, useStateProps as useStateProps7 } from "@marigold/system";
1957
+ import { cn as cn28, useClassNames as useClassNames26, useStateProps as useStateProps7 } from "@marigold/system";
1987
1958
 
1988
1959
  // src/Calendar/CalendarGrid.tsx
1989
1960
  import { getWeeksInMonth, startOfWeek, today } from "@internationalized/date";
@@ -1993,17 +1964,17 @@ import { useLocale as useLocale2 } from "@react-aria/i18n";
1993
1964
  import { useDateFormatter } from "@react-aria/i18n";
1994
1965
 
1995
1966
  // src/Calendar/CalendarCell.tsx
1996
- import { useRef as useRef12 } from "react";
1967
+ import { useRef as useRef10 } from "react";
1997
1968
  import { useCalendarCell } from "@react-aria/calendar";
1998
1969
  import { useHover as useHover3 } from "@react-aria/interactions";
1999
- import { mergeProps as mergeProps8 } from "@react-aria/utils";
2000
- import { cn as cn26, useClassNames as useClassNames24, useStateProps as useStateProps6 } from "@marigold/system";
1970
+ import { mergeProps as mergeProps7 } from "@react-aria/utils";
1971
+ import { cn as cn27, useClassNames as useClassNames25, useStateProps as useStateProps6 } from "@marigold/system";
2001
1972
  import { jsx as jsx46 } from "react/jsx-runtime";
2002
1973
  var CalendarCell = (props) => {
2003
- const ref = useRef12(null);
1974
+ const ref = useRef10(null);
2004
1975
  const { state } = props;
2005
1976
  let { cellProps, buttonProps, formattedDate, isOutsideVisibleRange } = useCalendarCell(props, state, ref);
2006
- const classNames2 = useClassNames24({
1977
+ const classNames2 = useClassNames25({
2007
1978
  component: "Calendar"
2008
1979
  });
2009
1980
  const isDisabled = cellProps["aria-disabled"];
@@ -2018,20 +1989,20 @@ var CalendarCell = (props) => {
2018
1989
  return /* @__PURE__ */ jsx46("td", { className: "group/cell", ...cellProps, children: /* @__PURE__ */ jsx46(
2019
1990
  "div",
2020
1991
  {
2021
- className: cn26(
1992
+ className: cn27(
2022
1993
  "flex h-[30px] w-[30px] cursor-pointer items-center justify-center rounded-full p-[5.3px] text-sm font-normal aria-disabled:cursor-default",
2023
1994
  classNames2.calendarCell
2024
1995
  ),
2025
1996
  hidden: isOutsideVisibleRange,
2026
1997
  ref,
2027
- ...mergeProps8(buttonProps, stateProps, hoverProps),
1998
+ ...mergeProps7(buttonProps, stateProps, hoverProps),
2028
1999
  children: formattedDate
2029
2000
  }
2030
2001
  ) });
2031
2002
  };
2032
2003
 
2033
2004
  // src/Calendar/CalendarGrid.tsx
2034
- import { jsx as jsx47, jsxs as jsxs20 } from "react/jsx-runtime";
2005
+ import { jsx as jsx47, jsxs as jsxs19 } from "react/jsx-runtime";
2035
2006
  var CalendarGrid = ({ state, ...props }) => {
2036
2007
  const { locale } = useLocale2();
2037
2008
  const { gridProps, headerProps } = useCalendarGrid(props, state);
@@ -2051,7 +2022,7 @@ var CalendarGrid = ({ state, ...props }) => {
2051
2022
  return dayFormatter.format(dateDay);
2052
2023
  });
2053
2024
  }, [locale, state.timeZone, dayFormatter]);
2054
- return /* @__PURE__ */ jsxs20(
2025
+ return /* @__PURE__ */ jsxs19(
2055
2026
  "table",
2056
2027
  {
2057
2028
  className: "w-full border-spacing-[6px]",
@@ -2112,7 +2083,7 @@ var MonthDropdown = ({
2112
2083
  var MonthDropdown_default = MonthDropdown;
2113
2084
 
2114
2085
  // src/Calendar/YearDropdown.tsx
2115
- import { useEffect as useEffect2, useRef as useRef13 } from "react";
2086
+ import { useEffect as useEffect2, useRef as useRef11 } from "react";
2116
2087
  import { useDateFormatter as useDateFormatter2 } from "@react-aria/i18n";
2117
2088
  import { jsx as jsx49 } from "react/jsx-runtime";
2118
2089
  var YearDropdown = ({ state, setSelectedDropdown }) => {
@@ -2128,7 +2099,7 @@ var YearDropdown = ({ state, setSelectedDropdown }) => {
2128
2099
  formatted: formatter.format(date.toDate(state.timeZone))
2129
2100
  });
2130
2101
  }
2131
- const activeButtonRef = useRef13(null);
2102
+ const activeButtonRef = useRef11(null);
2132
2103
  useEffect2(() => {
2133
2104
  if (activeButtonRef.current) {
2134
2105
  const activeButton = activeButtonRef.current;
@@ -2179,7 +2150,7 @@ var YearDropdown = ({ state, setSelectedDropdown }) => {
2179
2150
  var YearDropdown_default = YearDropdown;
2180
2151
 
2181
2152
  // src/Calendar/Calendar.tsx
2182
- import { Fragment as Fragment5, jsx as jsx50, jsxs as jsxs21 } from "react/jsx-runtime";
2153
+ import { Fragment as Fragment6, jsx as jsx50, jsxs as jsxs20 } from "react/jsx-runtime";
2183
2154
  var buttonStyles = "flex items-center justify-between gap-1 overflow-hidden";
2184
2155
  var Calendar = ({
2185
2156
  disabled,
@@ -2199,7 +2170,7 @@ var Calendar = ({
2199
2170
  locale,
2200
2171
  createCalendar: createCalendar2
2201
2172
  });
2202
- const ref = useRef14(null);
2173
+ const ref = useRef12(null);
2203
2174
  const { calendarProps, prevButtonProps, nextButtonProps } = useCalendar(
2204
2175
  props,
2205
2176
  state
@@ -2218,8 +2189,8 @@ var Calendar = ({
2218
2189
  disabled: state.isDisabled,
2219
2190
  focusVisible: state.isFocused
2220
2191
  });
2221
- const classNames2 = useClassNames25({ component: "Calendar" });
2222
- const { select: selectClassNames } = useClassNames25({ component: "Select" });
2192
+ const classNames2 = useClassNames26({ component: "Calendar" });
2193
+ const { select: selectClassNames } = useClassNames26({ component: "Select" });
2223
2194
  const [selectedDropdown, setSelectedDropdown] = useState();
2224
2195
  let months = [];
2225
2196
  let formatter = useDateFormatter3({
@@ -2239,7 +2210,7 @@ var Calendar = ({
2239
2210
  "div",
2240
2211
  {
2241
2212
  tabIndex: -1,
2242
- className: cn27(
2213
+ className: cn28(
2243
2214
  "flex min-h-[350px] w-[360px] flex-col rounded-sm p-4 shadow-[0_4px_4px_rgba(165,165,165,0.25)]",
2244
2215
  classNames2.calendar
2245
2216
  ),
@@ -2259,15 +2230,15 @@ var Calendar = ({
2259
2230
  setSelectedDropdown,
2260
2231
  state
2261
2232
  }
2262
- ) : /* @__PURE__ */ jsxs21(Fragment5, { children: [
2263
- /* @__PURE__ */ jsxs21("div", { className: "mb-4 flex items-center justify-between", children: [
2264
- /* @__PURE__ */ jsxs21("div", { className: "flex w-full gap-4", children: [
2265
- /* @__PURE__ */ jsxs21(
2233
+ ) : /* @__PURE__ */ jsxs20(Fragment6, { children: [
2234
+ /* @__PURE__ */ jsxs20("div", { className: "mb-4 flex items-center justify-between", children: [
2235
+ /* @__PURE__ */ jsxs20("div", { className: "flex w-full gap-4", children: [
2236
+ /* @__PURE__ */ jsxs20(
2266
2237
  "button",
2267
2238
  {
2268
2239
  disabled: state.isDisabled,
2269
2240
  onClick: () => setSelectedDropdown("month"),
2270
- className: cn27(buttonStyles, selectClassNames),
2241
+ className: cn28(buttonStyles, selectClassNames),
2271
2242
  "data-testid": "month",
2272
2243
  children: [
2273
2244
  selectedValue.month,
@@ -2275,12 +2246,12 @@ var Calendar = ({
2275
2246
  ]
2276
2247
  }
2277
2248
  ),
2278
- /* @__PURE__ */ jsxs21(
2249
+ /* @__PURE__ */ jsxs20(
2279
2250
  "button",
2280
2251
  {
2281
2252
  disabled: state.isDisabled,
2282
2253
  onClick: () => setSelectedDropdown("year"),
2283
- className: cn27(buttonStyles, selectClassNames),
2254
+ className: cn28(buttonStyles, selectClassNames),
2284
2255
  "data-testid": "year",
2285
2256
  children: [
2286
2257
  selectedValue.year,
@@ -2289,10 +2260,10 @@ var Calendar = ({
2289
2260
  }
2290
2261
  )
2291
2262
  ] }),
2292
- /* @__PURE__ */ jsxs21(
2263
+ /* @__PURE__ */ jsxs20(
2293
2264
  "div",
2294
2265
  {
2295
- className: cn27(
2266
+ className: cn28(
2296
2267
  "flex w-full flex-nowrap justify-end gap-[10px] [&_button:disabled]:cursor-not-allowed [&_button]:px-2 [&_button]:py-1",
2297
2268
  classNames2.calendarControllers
2298
2269
  ),
@@ -2310,12 +2281,12 @@ var Calendar = ({
2310
2281
  };
2311
2282
 
2312
2283
  // src/DatePicker/DatePicker.tsx
2313
- import { useRef as useRef15 } from "react";
2284
+ import { useRef as useRef13 } from "react";
2314
2285
  import { useDatePicker } from "@react-aria/datepicker";
2315
- import { mergeProps as mergeProps9 } from "@react-aria/utils";
2286
+ import { mergeProps as mergeProps8 } from "@react-aria/utils";
2316
2287
  import { useDatePickerState } from "@react-stately/datepicker";
2317
- import { useClassNames as useClassNames26, useStateProps as useStateProps8 } from "@marigold/system";
2318
- import { Fragment as Fragment6, jsx as jsx51, jsxs as jsxs22 } from "react/jsx-runtime";
2288
+ import { useClassNames as useClassNames27, useStateProps as useStateProps8 } from "@marigold/system";
2289
+ import { Fragment as Fragment7, jsx as jsx51, jsxs as jsxs21 } from "react/jsx-runtime";
2319
2290
  var DatePicker = ({
2320
2291
  disabled,
2321
2292
  required,
@@ -2339,7 +2310,7 @@ var DatePicker = ({
2339
2310
  shouldCloseOnSelect,
2340
2311
  ...props
2341
2312
  });
2342
- const ref = useRef15(null);
2313
+ const ref = useRef13(null);
2343
2314
  const stateProps = useStateProps8({
2344
2315
  focus: state.isOpen
2345
2316
  });
@@ -2349,12 +2320,12 @@ var DatePicker = ({
2349
2320
  ref
2350
2321
  );
2351
2322
  const { isDisabled, errorMessage, description, label } = props;
2352
- const classNames2 = useClassNames26({
2323
+ const classNames2 = useClassNames27({
2353
2324
  component: "DatePicker",
2354
2325
  size,
2355
2326
  variant
2356
2327
  });
2357
- return /* @__PURE__ */ jsxs22(Fragment6, { children: [
2328
+ return /* @__PURE__ */ jsxs21(Fragment7, { children: [
2358
2329
  /* @__PURE__ */ jsx51("div", { className: "flex w-full min-w-[300px]", ...groupProps, children: /* @__PURE__ */ jsx51(
2359
2330
  DateField,
2360
2331
  {
@@ -2371,7 +2342,7 @@ var DatePicker = ({
2371
2342
  action: /* @__PURE__ */ jsx51("div", { className: classNames2.container, children: /* @__PURE__ */ jsx51(
2372
2343
  _Button,
2373
2344
  {
2374
- ...mergeProps9(buttonProps, stateProps),
2345
+ ...mergeProps8(buttonProps, stateProps),
2375
2346
  disabled: isDisabled,
2376
2347
  children: /* @__PURE__ */ jsx51(
2377
2348
  "svg",
@@ -2393,7 +2364,7 @@ var DatePicker = ({
2393
2364
 
2394
2365
  // src/Inset/Inset.tsx
2395
2366
  import {
2396
- cn as cn28,
2367
+ cn as cn29,
2397
2368
  paddingSpace as paddingSpace2,
2398
2369
  paddingSpaceX as paddingSpaceX2,
2399
2370
  paddingSpaceY as paddingSpaceY2
@@ -2402,7 +2373,7 @@ import { jsx as jsx52 } from "react/jsx-runtime";
2402
2373
  var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx52(
2403
2374
  "div",
2404
2375
  {
2405
- className: cn28(
2376
+ className: cn29(
2406
2377
  space && paddingSpace2[space],
2407
2378
  !space && spaceX && paddingSpaceX2[spaceX],
2408
2379
  !space && spaceY && paddingSpaceY2[spaceY]
@@ -2414,11 +2385,11 @@ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx52(
2414
2385
  // src/Link/Link.tsx
2415
2386
  import { forwardRef as forwardRef11 } from "react";
2416
2387
  import { Link } from "react-aria-components";
2417
- import { useClassNames as useClassNames27 } from "@marigold/system";
2388
+ import { useClassNames as useClassNames28 } from "@marigold/system";
2418
2389
  import { jsx as jsx53 } from "react/jsx-runtime";
2419
2390
  var _Link = forwardRef11(
2420
2391
  ({ variant, size, disabled, children, ...props }, ref) => {
2421
- const classNames2 = useClassNames27({
2392
+ const classNames2 = useClassNames28({
2422
2393
  component: "Link",
2423
2394
  variant,
2424
2395
  size
@@ -2428,11 +2399,11 @@ var _Link = forwardRef11(
2428
2399
  );
2429
2400
 
2430
2401
  // src/List/List.tsx
2431
- import { useClassNames as useClassNames28 } from "@marigold/system";
2402
+ import { useClassNames as useClassNames29 } from "@marigold/system";
2432
2403
 
2433
2404
  // src/List/Context.ts
2434
- import { createContext as createContext4, useContext as useContext4 } from "react";
2435
- var ListContext = createContext4({});
2405
+ import { createContext as createContext3, useContext as useContext4 } from "react";
2406
+ var ListContext = createContext3({});
2436
2407
  var useListContext = () => useContext4(ListContext);
2437
2408
 
2438
2409
  // src/List/ListItem.tsx
@@ -2452,32 +2423,32 @@ var List = ({
2452
2423
  ...props
2453
2424
  }) => {
2454
2425
  const Component = as;
2455
- const classNames2 = useClassNames28({ component: "List", variant, size });
2426
+ const classNames2 = useClassNames29({ component: "List", variant, size });
2456
2427
  return /* @__PURE__ */ jsx55(Component, { ...props, className: classNames2[as], children: /* @__PURE__ */ jsx55(ListContext.Provider, { value: { classNames: classNames2.item }, children }) });
2457
2428
  };
2458
2429
  List.Item = ListItem;
2459
2430
 
2460
2431
  // src/Menu/Menu.tsx
2461
- import { useRef as useRef18 } from "react";
2432
+ import { useRef as useRef16 } from "react";
2462
2433
  import { useMenu } from "@react-aria/menu";
2463
2434
  import { useSyncRef } from "@react-aria/utils";
2464
2435
  import { Item as Item4, Section } from "@react-stately/collections";
2465
2436
  import { useTreeState as useTreeState2 } from "@react-stately/tree";
2466
- import { useClassNames as useClassNames30 } from "@marigold/system";
2437
+ import { useClassNames as useClassNames31 } from "@marigold/system";
2467
2438
 
2468
2439
  // src/Menu/Context.ts
2469
2440
  import {
2470
- createContext as createContext5,
2441
+ createContext as createContext4,
2471
2442
  useContext as useContext5
2472
2443
  } from "react";
2473
- var MenuContext = createContext5({});
2444
+ var MenuContext = createContext4({});
2474
2445
  var useMenuContext = () => useContext5(MenuContext);
2475
2446
 
2476
2447
  // src/Menu/MenuItem.tsx
2477
- import { useRef as useRef16 } from "react";
2448
+ import { useRef as useRef14 } from "react";
2478
2449
  import { useFocusRing as useFocusRing5 } from "@react-aria/focus";
2479
2450
  import { useMenuItem } from "@react-aria/menu";
2480
- import { mergeProps as mergeProps10 } from "@react-aria/utils";
2451
+ import { mergeProps as mergeProps9 } from "@react-aria/utils";
2481
2452
  import { useStateProps as useStateProps9 } from "@marigold/system";
2482
2453
  import { jsx as jsx56 } from "react/jsx-runtime";
2483
2454
  var MenuItem = ({
@@ -2486,7 +2457,7 @@ var MenuItem = ({
2486
2457
  onAction,
2487
2458
  className
2488
2459
  }) => {
2489
- const ref = useRef16(null);
2460
+ const ref = useRef14(null);
2490
2461
  const { onClose } = useMenuContext();
2491
2462
  const { menuItemProps } = useMenuItem(
2492
2463
  {
@@ -2507,7 +2478,7 @@ var MenuItem = ({
2507
2478
  {
2508
2479
  ref,
2509
2480
  className,
2510
- ...mergeProps10(
2481
+ ...mergeProps9(
2511
2482
  props,
2512
2483
  { onPointerDown: onPointerUp },
2513
2484
  stateProps,
@@ -2520,17 +2491,17 @@ var MenuItem = ({
2520
2491
 
2521
2492
  // src/Menu/MenuSection.tsx
2522
2493
  import { useMenuSection } from "@react-aria/menu";
2523
- import { useClassNames as useClassNames29 } from "@marigold/system";
2524
- import { Fragment as Fragment7, jsx as jsx57, jsxs as jsxs23 } from "react/jsx-runtime";
2494
+ import { useClassNames as useClassNames30 } from "@marigold/system";
2495
+ import { Fragment as Fragment8, jsx as jsx57, jsxs as jsxs22 } from "react/jsx-runtime";
2525
2496
  var MenuSection = ({ onAction, item, state }) => {
2526
2497
  let { itemProps, headingProps, groupProps } = useMenuSection({
2527
2498
  heading: item.rendered,
2528
2499
  "aria-label": item["aria-label"]
2529
2500
  });
2530
- const className = useClassNames29({ component: "Menu" });
2531
- return /* @__PURE__ */ jsxs23(Fragment7, { children: [
2501
+ const className = useClassNames30({ component: "Menu" });
2502
+ return /* @__PURE__ */ jsxs22(Fragment8, { children: [
2532
2503
  item.key !== state.collection.getFirstKey() && /* @__PURE__ */ jsx57("li", { children: /* @__PURE__ */ jsx57(_Divider, { variant: "section" }) }),
2533
- /* @__PURE__ */ jsxs23("li", { ...itemProps, children: [
2504
+ /* @__PURE__ */ jsxs22("li", { ...itemProps, children: [
2534
2505
  item.rendered && /* @__PURE__ */ jsx57("span", { ...headingProps, className: className.section, children: item.rendered }),
2535
2506
  /* @__PURE__ */ jsx57("ul", { ...groupProps, className: "pb-1", children: [...item.props.children].map((node) => /* @__PURE__ */ jsx57(
2536
2507
  MenuItem,
@@ -2548,22 +2519,22 @@ var MenuSection = ({ onAction, item, state }) => {
2548
2519
  var MenuSection_default = MenuSection;
2549
2520
 
2550
2521
  // src/Menu/MenuTrigger.tsx
2551
- import { Children as Children6, useRef as useRef17 } from "react";
2552
- import { PressResponder as PressResponder2 } from "@react-aria/interactions";
2522
+ import { Children as Children5, useRef as useRef15 } from "react";
2523
+ import { PressResponder } from "@react-aria/interactions";
2553
2524
  import { useMenuTrigger } from "@react-aria/menu";
2554
- import { useObjectRef as useObjectRef4 } from "@react-aria/utils";
2525
+ import { useObjectRef as useObjectRef3 } from "@react-aria/utils";
2555
2526
  import { useMenuTriggerState } from "@react-stately/menu";
2556
2527
  import { useSmallScreen } from "@marigold/system";
2557
- import { jsx as jsx58, jsxs as jsxs24 } from "react/jsx-runtime";
2528
+ import { jsx as jsx58, jsxs as jsxs23 } from "react/jsx-runtime";
2558
2529
  var MenuTrigger = ({
2559
2530
  disabled,
2560
2531
  open,
2561
2532
  onOpenChange,
2562
2533
  children
2563
2534
  }) => {
2564
- const [menuTrigger, menu] = Children6.toArray(children);
2565
- const menuTriggerRef = useRef17(null);
2566
- const menuRef = useObjectRef4();
2535
+ const [menuTrigger, menu] = Children5.toArray(children);
2536
+ const menuTriggerRef = useRef15(null);
2537
+ const menuRef = useObjectRef3();
2567
2538
  const state = useMenuTriggerState({
2568
2539
  isOpen: open,
2569
2540
  onOpenChange
@@ -2581,9 +2552,9 @@ var MenuTrigger = ({
2581
2552
  autoFocus: state.focusStrategy
2582
2553
  };
2583
2554
  const isSmallScreen = useSmallScreen();
2584
- return /* @__PURE__ */ jsxs24(MenuContext.Provider, { value: menuContext, children: [
2555
+ return /* @__PURE__ */ jsxs23(MenuContext.Provider, { value: menuContext, children: [
2585
2556
  /* @__PURE__ */ jsx58(
2586
- PressResponder2,
2557
+ PressResponder,
2587
2558
  {
2588
2559
  ...menuTriggerProps,
2589
2560
  ref: menuTriggerRef,
@@ -2600,11 +2571,11 @@ import { jsx as jsx59 } from "react/jsx-runtime";
2600
2571
  var Menu = ({ variant, size, ...props }) => {
2601
2572
  const { ref: scrollRef, ...menuContext } = useMenuContext();
2602
2573
  const ownProps = { ...props, ...menuContext };
2603
- const ref = useRef18(null);
2574
+ const ref = useRef16(null);
2604
2575
  const state = useTreeState2({ ...ownProps, selectionMode: "none" });
2605
2576
  const { menuProps } = useMenu(ownProps, state, ref);
2606
2577
  useSyncRef({ ref: scrollRef }, ref);
2607
- const classNames2 = useClassNames30({ component: "Menu", variant, size });
2578
+ const classNames2 = useClassNames31({ component: "Menu", variant, size });
2608
2579
  return /* @__PURE__ */ jsx59("ul", { ref, className: classNames2.container, ...menuProps, children: [...state.collection].map((item) => {
2609
2580
  if (item.type === "section") {
2610
2581
  return /* @__PURE__ */ jsx59(
@@ -2635,18 +2606,34 @@ Menu.Section = Section;
2635
2606
 
2636
2607
  // src/Menu/ActionMenu.tsx
2637
2608
  import { SVG as SVG5 } from "@marigold/system";
2638
- import { jsx as jsx60, jsxs as jsxs25 } from "react/jsx-runtime";
2609
+ import { jsx as jsx60, jsxs as jsxs24 } from "react/jsx-runtime";
2639
2610
  var ActionMenu = (props) => {
2640
- return /* @__PURE__ */ jsxs25(Menu.Trigger, { children: [
2611
+ return /* @__PURE__ */ jsxs24(Menu.Trigger, { children: [
2641
2612
  /* @__PURE__ */ jsx60(_Button, { variant: "menu", size: "small", children: /* @__PURE__ */ jsx60(SVG5, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx60("path", { d: "M12.0117 7.47656C13.2557 7.47656 14.2734 6.45879 14.2734 5.21484C14.2734 3.9709 13.2557 2.95312 12.0117 2.95312C10.7678 2.95312 9.75 3.9709 9.75 5.21484C9.75 6.45879 10.7678 7.47656 12.0117 7.47656ZM12.0117 9.73828C10.7678 9.73828 9.75 10.7561 9.75 12C9.75 13.2439 10.7678 14.2617 12.0117 14.2617C13.2557 14.2617 14.2734 13.2439 14.2734 12C14.2734 10.7561 13.2557 9.73828 12.0117 9.73828ZM12.0117 16.5234C10.7678 16.5234 9.75 17.5412 9.75 18.7852C9.75 20.0291 10.7678 21.0469 12.0117 21.0469C13.2557 21.0469 14.2734 20.0291 14.2734 18.7852C14.2734 17.5412 13.2557 16.5234 12.0117 16.5234Z" }) }) }),
2642
2613
  /* @__PURE__ */ jsx60(Menu, { ...props })
2643
2614
  ] });
2644
2615
  };
2645
2616
 
2646
2617
  // src/Message/Message.tsx
2647
- import { cn as cn29, useClassNames as useClassNames31 } from "@marigold/system";
2648
- import { jsx as jsx61, jsxs as jsxs26 } from "react/jsx-runtime";
2618
+ import { cn as cn30, useClassNames as useClassNames32 } from "@marigold/system";
2619
+ import { jsx as jsx61, jsxs as jsxs25 } from "react/jsx-runtime";
2649
2620
  var icons = {
2621
+ success: () => /* @__PURE__ */ jsx61(
2622
+ "svg",
2623
+ {
2624
+ xmlns: "http://www.w3.org/2000/svg",
2625
+ viewBox: "0 0 24 24",
2626
+ fill: "currentColor",
2627
+ children: /* @__PURE__ */ jsx61(
2628
+ "path",
2629
+ {
2630
+ fillRule: "evenodd",
2631
+ d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z",
2632
+ clipRule: "evenodd"
2633
+ }
2634
+ )
2635
+ }
2636
+ ),
2650
2637
  info: () => /* @__PURE__ */ jsx61(
2651
2638
  "svg",
2652
2639
  {
@@ -2703,105 +2690,139 @@ var Message = ({
2703
2690
  children,
2704
2691
  ...props
2705
2692
  }) => {
2706
- const classNames2 = useClassNames31({ component: "Message", variant, size });
2693
+ const classNames2 = useClassNames32({ component: "Message", variant, size });
2707
2694
  const Icon3 = icons[variant];
2708
- return /* @__PURE__ */ jsxs26(
2695
+ return /* @__PURE__ */ jsxs25(
2709
2696
  "div",
2710
2697
  {
2711
- className: cn29(
2698
+ className: cn30(
2712
2699
  "grid auto-rows-min grid-cols-[min-content_auto] gap-1",
2713
2700
  classNames2.container
2714
2701
  ),
2715
2702
  ...props,
2716
2703
  children: [
2717
- /* @__PURE__ */ jsx61("div", { className: cn29("col-span-1 h-5 w-5 self-center", classNames2.icon), children: /* @__PURE__ */ jsx61(Icon3, {}) }),
2704
+ /* @__PURE__ */ jsx61("div", { className: cn30("col-span-1 h-5 w-5 self-center", classNames2.icon), children: /* @__PURE__ */ jsx61(Icon3, {}) }),
2718
2705
  /* @__PURE__ */ jsx61(
2719
2706
  "div",
2720
2707
  {
2721
- className: cn29("col-start-2 row-start-1 self-center", classNames2.title),
2708
+ className: cn30("col-start-2 row-start-1 self-center", classNames2.title),
2722
2709
  children: messageTitle
2723
2710
  }
2724
2711
  ),
2725
- /* @__PURE__ */ jsx61("div", { className: cn29("col-start-2", classNames2.content), children })
2712
+ /* @__PURE__ */ jsx61("div", { className: cn30("col-start-2", classNames2.content), children })
2726
2713
  ]
2727
2714
  }
2728
2715
  );
2729
2716
  };
2730
2717
 
2731
2718
  // src/NumberField/NumberField.tsx
2732
- import { forwardRef as forwardRef12 } from "react";
2733
- import { useFocusRing as useFocusRing6 } from "@react-aria/focus";
2734
- import { useLocale as useLocale4 } from "@react-aria/i18n";
2735
- import { useHover as useHover5 } from "@react-aria/interactions";
2736
- import { useNumberField } from "@react-aria/numberfield";
2737
- import { mergeProps as mergeProps12, useObjectRef as useObjectRef5 } from "@react-aria/utils";
2738
- import { useNumberFieldState } from "@react-stately/numberfield";
2739
- import { cn as cn31, useClassNames as useClassNames32, useStateProps as useStateProps11 } from "@marigold/system";
2719
+ import { forwardRef as forwardRef13 } from "react";
2720
+ import { Group, NumberField } from "react-aria-components";
2721
+ import { cn as cn33, useClassNames as useClassNames34 } from "@marigold/system";
2740
2722
 
2741
- // src/NumberField/StepButton.tsx
2742
- import { useRef as useRef19 } from "react";
2743
- import { useButton as useButton4 } from "@react-aria/button";
2744
- import { useHover as useHover4 } from "@react-aria/interactions";
2745
- import { mergeProps as mergeProps11 } from "@react-aria/utils";
2746
- import { cn as cn30, useStateProps as useStateProps10 } from "@marigold/system";
2747
- import { jsx as jsx62 } from "react/jsx-runtime";
2748
- var Plus = () => /* @__PURE__ */ jsx62("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx62(
2749
- "path",
2750
- {
2751
- fillRule: "evenodd",
2752
- clipRule: "evenodd",
2753
- 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"
2754
- }
2755
- ) });
2756
- var Minus = () => /* @__PURE__ */ jsx62("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx62(
2757
- "path",
2758
- {
2759
- fillRule: "evenodd",
2760
- clipRule: "evenodd",
2761
- d: "M3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
2762
- }
2763
- ) });
2764
- var StepButton = ({
2765
- direction,
2766
- className,
2767
- ...props
2768
- }) => {
2769
- const ref = useRef19(null);
2770
- const { buttonProps, isPressed } = useButton4(
2771
- { ...props, elementType: "div" },
2772
- ref
2773
- );
2774
- const { hoverProps, isHovered } = useHover4(props);
2775
- const stateProps = useStateProps10({
2776
- active: isPressed,
2777
- hover: isHovered,
2778
- disabled: props.isDisabled
2779
- });
2723
+ // src/Input/_Input.tsx
2724
+ import { cloneElement as cloneElement4, forwardRef as forwardRef12 } from "react";
2725
+ import { Input as Input2 } from "react-aria-components";
2726
+ import { cn as cn31, useClassNames as useClassNames33 } from "@marigold/system";
2727
+ import { jsx as jsx62, jsxs as jsxs26 } from "react/jsx-runtime";
2728
+ var _Input = forwardRef12(
2729
+ ({ type, icon, action, variant, size, className, ...props }, ref) => {
2730
+ const classNames2 = useClassNames33({
2731
+ component: "Input",
2732
+ variant,
2733
+ size
2734
+ });
2735
+ const inputIcon = icon ? cloneElement4(icon, {
2736
+ className: cn31(
2737
+ "pointer-events-none absolute",
2738
+ classNames2.icon,
2739
+ icon.props.className
2740
+ ),
2741
+ ...icon.props
2742
+ }) : null;
2743
+ const inputAction = action && !props.readOnly ? cloneElement4(action, {
2744
+ className: cn31(
2745
+ "absolute",
2746
+ classNames2.action,
2747
+ action.props.className
2748
+ ),
2749
+ ...action.props
2750
+ }) : null;
2751
+ return /* @__PURE__ */ jsxs26(
2752
+ "div",
2753
+ {
2754
+ className: "group/input relative flex items-center",
2755
+ "data-icon": icon && "",
2756
+ "data-action": action && "",
2757
+ children: [
2758
+ inputIcon,
2759
+ /* @__PURE__ */ jsx62(
2760
+ Input2,
2761
+ {
2762
+ ...props,
2763
+ className: cn31(
2764
+ "w-full flex-1",
2765
+ "disabled:cursor-not-allowed",
2766
+ "[&[type=file]]:border-none [&[type=file]]:p-0",
2767
+ "[&[type=color]]:ml-0 [&[type=color]]:border-none [&[type=color]]:bg-transparent [&[type=color]]:p-0",
2768
+ classNames2.input,
2769
+ className
2770
+ ),
2771
+ ref,
2772
+ type
2773
+ }
2774
+ ),
2775
+ inputAction
2776
+ ]
2777
+ }
2778
+ );
2779
+ }
2780
+ );
2781
+
2782
+ // src/NumberField/StepButton.tsx
2783
+ import { Button as Button2 } from "react-aria-components";
2784
+ import { cn as cn32 } from "@marigold/system";
2785
+ import { jsx as jsx63 } from "react/jsx-runtime";
2786
+ var Plus = () => /* @__PURE__ */ jsx63("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx63(
2787
+ "path",
2788
+ {
2789
+ fillRule: "evenodd",
2790
+ clipRule: "evenodd",
2791
+ 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"
2792
+ }
2793
+ ) });
2794
+ var Minus = () => /* @__PURE__ */ jsx63("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx63(
2795
+ "path",
2796
+ {
2797
+ fillRule: "evenodd",
2798
+ clipRule: "evenodd",
2799
+ d: "M3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
2800
+ }
2801
+ ) });
2802
+ var _StepButton = ({ direction, className, ...props }) => {
2780
2803
  const Icon3 = direction === "up" ? Plus : Minus;
2781
- return /* @__PURE__ */ jsx62(
2782
- "div",
2804
+ return /* @__PURE__ */ jsx63(
2805
+ Button2,
2783
2806
  {
2784
- className: cn30(
2807
+ className: cn32(
2785
2808
  [
2786
2809
  "flex items-center justify-center",
2787
2810
  "cursor-pointer data-[disabled]:cursor-not-allowed"
2788
2811
  ],
2789
2812
  className
2790
2813
  ),
2791
- ...mergeProps11(buttonProps, hoverProps),
2792
- ...stateProps,
2793
- children: /* @__PURE__ */ jsx62(Icon3, {})
2814
+ ...props,
2815
+ children: /* @__PURE__ */ jsx63(Icon3, {})
2794
2816
  }
2795
2817
  );
2796
2818
  };
2797
2819
 
2798
2820
  // src/NumberField/NumberField.tsx
2799
- import { jsx as jsx63, jsxs as jsxs27 } from "react/jsx-runtime";
2800
- var NumberField = forwardRef12(
2821
+ import { jsx as jsx64, jsxs as jsxs27 } from "react/jsx-runtime";
2822
+ var _NumberField = forwardRef13(
2801
2823
  ({
2802
2824
  variant,
2803
2825
  size,
2804
- width,
2805
2826
  disabled,
2806
2827
  required,
2807
2828
  readOnly,
@@ -2809,140 +2830,87 @@ var NumberField = forwardRef12(
2809
2830
  hideStepper,
2810
2831
  ...rest
2811
2832
  }, ref) => {
2833
+ const classNames2 = useClassNames34({
2834
+ component: "NumberField",
2835
+ size,
2836
+ variant
2837
+ });
2812
2838
  const props = {
2813
2839
  isDisabled: disabled,
2814
- isRequired: required,
2815
2840
  isReadOnly: readOnly,
2816
- validationState: error ? "invalid" : "valid",
2841
+ isInvalid: error,
2842
+ isRequired: required,
2817
2843
  ...rest
2818
2844
  };
2819
2845
  const showStepper = !hideStepper;
2820
- const { locale } = useLocale4();
2821
- const inputRef = useObjectRef5(ref);
2822
- const state = useNumberFieldState({ ...props, locale });
2823
- const {
2824
- labelProps,
2825
- groupProps,
2826
- inputProps,
2827
- descriptionProps,
2828
- errorMessageProps,
2829
- incrementButtonProps,
2830
- decrementButtonProps
2831
- } = useNumberField(props, state, inputRef);
2832
- const { hoverProps, isHovered } = useHover5({ isDisabled: disabled });
2833
- const { focusProps, isFocused } = useFocusRing6({
2834
- within: true,
2835
- isTextInput: true,
2836
- autoFocus: props.autoFocus
2837
- });
2838
- const stateProps = useStateProps11({
2839
- hover: isHovered,
2840
- focus: isFocused,
2841
- disabled,
2842
- error,
2843
- readOnly,
2844
- required
2845
- });
2846
- const classNames2 = useClassNames32({
2847
- component: "NumberField",
2848
- size,
2849
- variant
2850
- });
2851
- return /* @__PURE__ */ jsx63(
2852
- FieldBase,
2853
- {
2854
- label: props.label,
2855
- labelProps,
2856
- description: props.description,
2857
- descriptionProps,
2858
- error,
2859
- errorMessage: props.errorMessage,
2860
- errorMessageProps,
2861
- stateProps,
2862
- variant,
2863
- size,
2864
- width,
2865
- children: /* @__PURE__ */ jsxs27(
2866
- "div",
2867
- {
2868
- "data-group": true,
2869
- className: cn31("flex items-stretch", classNames2.group),
2870
- "data-testid": "number-field-container",
2871
- ...mergeProps12(groupProps, focusProps, hoverProps),
2872
- ...stateProps,
2873
- children: [
2874
- showStepper && /* @__PURE__ */ jsx63(
2875
- StepButton,
2876
- {
2877
- className: classNames2.stepper,
2878
- direction: "down",
2879
- ...decrementButtonProps
2880
- }
2881
- ),
2882
- /* @__PURE__ */ jsx63("div", { className: "flex-1", children: /* @__PURE__ */ jsx63(
2883
- Input,
2884
- {
2885
- ref: inputRef,
2886
- variant,
2887
- size,
2888
- ...inputProps,
2889
- ...stateProps
2890
- }
2891
- ) }),
2892
- showStepper && /* @__PURE__ */ jsx63(
2893
- StepButton,
2894
- {
2895
- className: classNames2.stepper,
2896
- direction: "up",
2897
- ...incrementButtonProps
2898
- }
2899
- )
2900
- ]
2901
- }
2902
- )
2903
- }
2904
- );
2846
+ return /* @__PURE__ */ jsx64(FieldBase2, { as: NumberField, ...props, children: /* @__PURE__ */ jsxs27(Group, { className: cn33("flex items-stretch", classNames2.group), children: [
2847
+ showStepper && /* @__PURE__ */ jsx64(
2848
+ _StepButton,
2849
+ {
2850
+ className: classNames2.stepper,
2851
+ direction: "down",
2852
+ slot: "decrement"
2853
+ }
2854
+ ),
2855
+ /* @__PURE__ */ jsx64("div", { className: "flex-1", children: /* @__PURE__ */ jsx64(
2856
+ _Input,
2857
+ {
2858
+ ref,
2859
+ variant,
2860
+ size,
2861
+ className: classNames2.input
2862
+ }
2863
+ ) }),
2864
+ showStepper && /* @__PURE__ */ jsx64(
2865
+ _StepButton,
2866
+ {
2867
+ className: classNames2.stepper,
2868
+ direction: "up",
2869
+ slot: "increment"
2870
+ }
2871
+ )
2872
+ ] }) });
2905
2873
  }
2906
2874
  );
2907
2875
 
2908
2876
  // src/Provider/index.ts
2909
- import { useTheme as useTheme4, ThemeProvider as ThemeProvider2 } from "@marigold/system";
2877
+ import { useTheme as useTheme5, ThemeProvider as ThemeProvider2 } from "@marigold/system";
2910
2878
 
2911
2879
  // src/Provider/MarigoldProvider.tsx
2912
2880
  import { OverlayProvider } from "@react-aria/overlays";
2913
2881
  import {
2914
2882
  ThemeProvider,
2915
2883
  defaultTheme,
2916
- useTheme as useTheme3
2884
+ useTheme as useTheme4
2917
2885
  } from "@marigold/system";
2918
- import { jsx as jsx64 } from "react/jsx-runtime";
2886
+ import { jsx as jsx65 } from "react/jsx-runtime";
2919
2887
  function MarigoldProvider({
2920
2888
  children,
2921
2889
  theme
2922
2890
  }) {
2923
- const outerTheme = useTheme3();
2891
+ const outerTheme = useTheme4();
2924
2892
  const isTopLevel = outerTheme === defaultTheme;
2925
- return /* @__PURE__ */ jsx64(ThemeProvider, { theme, children: isTopLevel ? /* @__PURE__ */ jsx64(OverlayProvider, { children }) : children });
2893
+ return /* @__PURE__ */ jsx65(ThemeProvider, { theme, children: isTopLevel ? /* @__PURE__ */ jsx65(OverlayProvider, { children }) : children });
2926
2894
  }
2927
2895
 
2928
2896
  // src/Radio/Radio.tsx
2929
2897
  import {
2930
- forwardRef as forwardRef13
2898
+ forwardRef as forwardRef14
2931
2899
  } from "react";
2932
2900
  import { Radio } from "react-aria-components";
2933
- import { cn as cn33, useClassNames as useClassNames34 } from "@marigold/system";
2901
+ import { cn as cn35, useClassNames as useClassNames36 } from "@marigold/system";
2934
2902
 
2935
2903
  // src/Radio/Context.ts
2936
- import { createContext as createContext6, useContext as useContext6 } from "react";
2937
- var RadioGroupContext = createContext6(
2904
+ import { createContext as createContext5, useContext as useContext6 } from "react";
2905
+ var RadioGroupContext = createContext5(
2938
2906
  null
2939
2907
  );
2940
2908
  var useRadioGroupContext = () => useContext6(RadioGroupContext);
2941
2909
 
2942
2910
  // src/Radio/RadioGroup.tsx
2943
2911
  import { RadioGroup } from "react-aria-components";
2944
- import { cn as cn32, useClassNames as useClassNames33 } from "@marigold/system";
2945
- import { jsx as jsx65 } from "react/jsx-runtime";
2912
+ import { cn as cn34, useClassNames as useClassNames35 } from "@marigold/system";
2913
+ import { jsx as jsx66 } from "react/jsx-runtime";
2946
2914
  var _RadioGroup = ({
2947
2915
  variant,
2948
2916
  size,
@@ -2958,7 +2926,7 @@ var _RadioGroup = ({
2958
2926
  width,
2959
2927
  ...rest
2960
2928
  }) => {
2961
- const classNames2 = useClassNames33({ component: "Radio", variant, size });
2929
+ const classNames2 = useClassNames35({ component: "Radio", variant, size });
2962
2930
  const props = {
2963
2931
  isDisabled: disabled,
2964
2932
  isReadOnly: readOnly,
@@ -2966,7 +2934,7 @@ var _RadioGroup = ({
2966
2934
  isInvalid: error,
2967
2935
  ...rest
2968
2936
  };
2969
- return /* @__PURE__ */ jsx65(
2937
+ return /* @__PURE__ */ jsx66(
2970
2938
  FieldBase2,
2971
2939
  {
2972
2940
  as: RadioGroup,
@@ -2977,18 +2945,18 @@ var _RadioGroup = ({
2977
2945
  variant,
2978
2946
  size,
2979
2947
  ...props,
2980
- children: /* @__PURE__ */ jsx65(
2948
+ children: /* @__PURE__ */ jsx66(
2981
2949
  "div",
2982
2950
  {
2983
2951
  role: "presentation",
2984
2952
  "data-testid": "group",
2985
2953
  "data-orientation": orientation,
2986
- className: cn32(
2954
+ className: cn34(
2987
2955
  classNames2.group,
2988
2956
  "flex items-start",
2989
2957
  orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
2990
2958
  ),
2991
- children: /* @__PURE__ */ jsx65(RadioGroupContext.Provider, { value: { width, variant, size }, children })
2959
+ children: /* @__PURE__ */ jsx66(RadioGroupContext.Provider, { value: { width, variant, size }, children })
2992
2960
  }
2993
2961
  )
2994
2962
  }
@@ -2996,33 +2964,33 @@ var _RadioGroup = ({
2996
2964
  };
2997
2965
 
2998
2966
  // src/Radio/Radio.tsx
2999
- import { Fragment as Fragment8, jsx as jsx66, jsxs as jsxs28 } from "react/jsx-runtime";
3000
- var Dot = () => /* @__PURE__ */ jsx66("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ jsx66("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
3001
- var Icon2 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx66(
2967
+ import { Fragment as Fragment9, jsx as jsx67, jsxs as jsxs28 } from "react/jsx-runtime";
2968
+ var Dot = () => /* @__PURE__ */ jsx67("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ jsx67("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
2969
+ var Icon2 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx67(
3002
2970
  "div",
3003
2971
  {
3004
- className: cn33(
2972
+ className: cn35(
3005
2973
  "bg-secondary-50 flex h-4 w-4 items-center justify-center rounded-[50%] border p-1",
3006
2974
  className
3007
2975
  ),
3008
2976
  "aria-hidden": "true",
3009
2977
  ...props,
3010
- children: checked ? /* @__PURE__ */ jsx66(Dot, {}) : null
2978
+ children: checked ? /* @__PURE__ */ jsx67(Dot, {}) : null
3011
2979
  }
3012
2980
  );
3013
- var _Radio = forwardRef13(
2981
+ var _Radio = forwardRef14(
3014
2982
  ({ value, disabled, width, children, ...props }, ref) => {
3015
2983
  const { variant, size, width: groupWidth } = useRadioGroupContext();
3016
- const classNames2 = useClassNames34({
2984
+ const classNames2 = useClassNames36({
3017
2985
  component: "Radio",
3018
2986
  variant: variant || props.variant,
3019
2987
  size: size || props.size
3020
2988
  });
3021
- return /* @__PURE__ */ jsx66(
2989
+ return /* @__PURE__ */ jsx67(
3022
2990
  Radio,
3023
2991
  {
3024
2992
  ref,
3025
- className: cn33(
2993
+ className: cn35(
3026
2994
  "group/radio",
3027
2995
  "relative flex items-center gap-[1ch]",
3028
2996
  width || groupWidth || "w-full",
@@ -3031,18 +2999,18 @@ var _Radio = forwardRef13(
3031
2999
  value,
3032
3000
  isDisabled: disabled,
3033
3001
  ...props,
3034
- children: ({ isSelected }) => /* @__PURE__ */ jsxs28(Fragment8, { children: [
3035
- /* @__PURE__ */ jsx66(
3002
+ children: ({ isSelected }) => /* @__PURE__ */ jsxs28(Fragment9, { children: [
3003
+ /* @__PURE__ */ jsx67(
3036
3004
  Icon2,
3037
3005
  {
3038
3006
  checked: isSelected,
3039
- className: cn33(
3007
+ className: cn35(
3040
3008
  disabled ? "cursor-not-allowed" : "cursor-pointer",
3041
3009
  classNames2.radio
3042
3010
  )
3043
3011
  }
3044
3012
  ),
3045
- /* @__PURE__ */ jsx66("div", { className: classNames2.label, children })
3013
+ /* @__PURE__ */ jsx67("div", { className: classNames2.label, children })
3046
3014
  ] })
3047
3015
  }
3048
3016
  );
@@ -3052,21 +3020,21 @@ _Radio.Group = _RadioGroup;
3052
3020
 
3053
3021
  // src/Select/Select.tsx
3054
3022
  import {
3055
- forwardRef as forwardRef14,
3056
- useRef as useRef20
3023
+ forwardRef as forwardRef15,
3024
+ useRef as useRef17
3057
3025
  } from "react";
3058
- import { useButton as useButton5 } from "@react-aria/button";
3059
- import { useFocusRing as useFocusRing7 } from "@react-aria/focus";
3026
+ import { useButton as useButton3 } from "@react-aria/button";
3027
+ import { useFocusRing as useFocusRing6 } from "@react-aria/focus";
3060
3028
  import { useLocalizedStringFormatter } from "@react-aria/i18n";
3061
3029
  import { HiddenSelect, useSelect } from "@react-aria/select";
3062
- import { mergeProps as mergeProps13, useObjectRef as useObjectRef6 } from "@react-aria/utils";
3030
+ import { mergeProps as mergeProps10, useObjectRef as useObjectRef4 } from "@react-aria/utils";
3063
3031
  import { Item as Item5, Section as Section2 } from "@react-stately/collections";
3064
3032
  import { useSelectState } from "@react-stately/select";
3065
3033
  import {
3066
- cn as cn34,
3067
- useClassNames as useClassNames35,
3034
+ cn as cn36,
3035
+ useClassNames as useClassNames37,
3068
3036
  useSmallScreen as useSmallScreen2,
3069
- useStateProps as useStateProps12
3037
+ useStateProps as useStateProps10
3070
3038
  } from "@marigold/system";
3071
3039
 
3072
3040
  // src/Select/intl.ts
@@ -3080,8 +3048,8 @@ var messages = {
3080
3048
  };
3081
3049
 
3082
3050
  // src/Select/Select.tsx
3083
- import { jsx as jsx67, jsxs as jsxs29 } from "react/jsx-runtime";
3084
- var Select = forwardRef14(
3051
+ import { jsx as jsx68, jsxs as jsxs29 } from "react/jsx-runtime";
3052
+ var Select = forwardRef15(
3085
3053
  ({
3086
3054
  variant,
3087
3055
  size,
@@ -3103,8 +3071,8 @@ var Select = forwardRef14(
3103
3071
  onSelectionChange: onChange,
3104
3072
  ...rest
3105
3073
  };
3106
- const buttonRef = useObjectRef6(ref);
3107
- const listboxRef = useRef20(null);
3074
+ const buttonRef = useObjectRef4(ref);
3075
+ const listboxRef = useRef17(null);
3108
3076
  const state = useSelectState(props);
3109
3077
  const {
3110
3078
  labelProps,
@@ -3114,14 +3082,14 @@ var Select = forwardRef14(
3114
3082
  descriptionProps,
3115
3083
  errorMessageProps
3116
3084
  } = useSelect(props, state, buttonRef);
3117
- const { buttonProps } = useButton5(
3085
+ const { buttonProps } = useButton3(
3118
3086
  { isDisabled: disabled, ...triggerProps },
3119
3087
  buttonRef
3120
3088
  );
3121
- const { focusProps, isFocusVisible } = useFocusRing7();
3122
- const classNames2 = useClassNames35({ component: "Select", variant, size });
3089
+ const { focusProps, isFocusVisible } = useFocusRing6();
3090
+ const classNames2 = useClassNames37({ component: "Select", variant, size });
3123
3091
  const isSmallScreen = useSmallScreen2();
3124
- const stateProps = useStateProps12({
3092
+ const stateProps = useStateProps10({
3125
3093
  disabled,
3126
3094
  error,
3127
3095
  focusVisible: isFocusVisible,
@@ -3144,7 +3112,7 @@ var Select = forwardRef14(
3144
3112
  stateProps,
3145
3113
  disabled,
3146
3114
  children: [
3147
- /* @__PURE__ */ jsx67(
3115
+ /* @__PURE__ */ jsx68(
3148
3116
  HiddenSelect,
3149
3117
  {
3150
3118
  state,
@@ -3157,20 +3125,20 @@ var Select = forwardRef14(
3157
3125
  /* @__PURE__ */ jsxs29(
3158
3126
  "button",
3159
3127
  {
3160
- className: cn34(
3128
+ className: cn36(
3161
3129
  "flex w-full items-center justify-between gap-1 overflow-hidden",
3162
3130
  classNames2.select
3163
3131
  ),
3164
3132
  ref: buttonRef,
3165
- ...mergeProps13(buttonProps, focusProps),
3133
+ ...mergeProps10(buttonProps, focusProps),
3166
3134
  ...stateProps,
3167
3135
  children: [
3168
- /* @__PURE__ */ jsx67("div", { className: "overflow-hidden whitespace-nowrap", ...valueProps, children: state.selectedItem ? state.selectedItem.rendered : props.placeholder }),
3169
- /* @__PURE__ */ jsx67(ChevronDown, { className: "h-4 w-4" })
3136
+ /* @__PURE__ */ jsx68("div", { className: "overflow-hidden whitespace-nowrap", ...valueProps, children: state.selectedItem ? state.selectedItem.rendered : props.placeholder }),
3137
+ /* @__PURE__ */ jsx68(ChevronDown, { className: "h-4 w-4" })
3170
3138
  ]
3171
3139
  }
3172
3140
  ),
3173
- isSmallScreen ? /* @__PURE__ */ jsx67(Tray, { state, children: /* @__PURE__ */ jsx67(
3141
+ isSmallScreen ? /* @__PURE__ */ jsx68(Tray, { state, children: /* @__PURE__ */ jsx68(
3174
3142
  ListBox,
3175
3143
  {
3176
3144
  ref: listboxRef,
@@ -3179,7 +3147,7 @@ var Select = forwardRef14(
3179
3147
  size,
3180
3148
  ...menuProps
3181
3149
  }
3182
- ) }) : /* @__PURE__ */ jsx67(Popover, { state, triggerRef: buttonRef, scrollRef: listboxRef, children: /* @__PURE__ */ jsx67(
3150
+ ) }) : /* @__PURE__ */ jsx68(Popover, { state, triggerRef: buttonRef, scrollRef: listboxRef, children: /* @__PURE__ */ jsx68(
3183
3151
  ListBox,
3184
3152
  {
3185
3153
  ref: listboxRef,
@@ -3198,7 +3166,7 @@ Select.Option = Item5;
3198
3166
  Select.Section = Section2;
3199
3167
 
3200
3168
  // src/Slider/Slider.tsx
3201
- import { forwardRef as forwardRef15 } from "react";
3169
+ import { forwardRef as forwardRef16 } from "react";
3202
3170
  import {
3203
3171
  Slider,
3204
3172
  SliderOutput,
@@ -3206,12 +3174,12 @@ import {
3206
3174
  SliderTrack
3207
3175
  } from "react-aria-components";
3208
3176
  import {
3209
- cn as cn35,
3177
+ cn as cn37,
3210
3178
  width as twWidth3,
3211
- useClassNames as useClassNames36
3179
+ useClassNames as useClassNames38
3212
3180
  } from "@marigold/system";
3213
- import { jsx as jsx68, jsxs as jsxs30 } from "react/jsx-runtime";
3214
- var _Slider = forwardRef15(
3181
+ import { jsx as jsx69, jsxs as jsxs30 } from "react/jsx-runtime";
3182
+ var _Slider = forwardRef16(
3215
3183
  ({
3216
3184
  thumbLabels,
3217
3185
  variant,
@@ -3220,7 +3188,7 @@ var _Slider = forwardRef15(
3220
3188
  disabled,
3221
3189
  ...rest
3222
3190
  }, ref) => {
3223
- const classNames2 = useClassNames36({
3191
+ const classNames2 = useClassNames38({
3224
3192
  component: "Slider",
3225
3193
  variant,
3226
3194
  size
@@ -3232,7 +3200,7 @@ var _Slider = forwardRef15(
3232
3200
  return /* @__PURE__ */ jsxs30(
3233
3201
  Slider,
3234
3202
  {
3235
- className: cn35(
3203
+ className: cn37(
3236
3204
  "grid grid-cols-[auto_1fr] gap-y-1",
3237
3205
  classNames2.container,
3238
3206
  twWidth3[width]
@@ -3240,16 +3208,16 @@ var _Slider = forwardRef15(
3240
3208
  ref,
3241
3209
  ...props,
3242
3210
  children: [
3243
- /* @__PURE__ */ jsx68(_Label, { children: props.children }),
3244
- /* @__PURE__ */ jsx68(SliderOutput, { className: cn35("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
3245
- /* @__PURE__ */ jsx68(
3211
+ /* @__PURE__ */ jsx69(_Label, { children: props.children }),
3212
+ /* @__PURE__ */ jsx69(SliderOutput, { className: cn37("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
3213
+ /* @__PURE__ */ jsx69(
3246
3214
  SliderTrack,
3247
3215
  {
3248
- className: cn35("relative col-span-2 h-2 w-full", classNames2.track),
3249
- children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ jsx68(
3216
+ className: cn37("relative col-span-2 h-2 w-full", classNames2.track),
3217
+ children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ jsx69(
3250
3218
  SliderThumb,
3251
3219
  {
3252
- className: cn35("top-1/2 cursor-pointer", classNames2.thumb),
3220
+ className: cn37("top-1/2 cursor-pointer", classNames2.thumb),
3253
3221
  index: i,
3254
3222
  "aria-label": thumbLabels == null ? void 0 : thumbLabels[i]
3255
3223
  },
@@ -3264,16 +3232,16 @@ var _Slider = forwardRef15(
3264
3232
  );
3265
3233
 
3266
3234
  // src/Split/Split.tsx
3267
- import { jsx as jsx69 } from "react/jsx-runtime";
3268
- var Split = (props) => /* @__PURE__ */ jsx69("div", { ...props, role: "separator", className: "grow" });
3235
+ import { jsx as jsx70 } from "react/jsx-runtime";
3236
+ var Split = (props) => /* @__PURE__ */ jsx70("div", { ...props, role: "separator", className: "grow" });
3269
3237
 
3270
3238
  // src/Stack/Stack.tsx
3271
3239
  import {
3272
3240
  alignment as alignment3,
3273
- cn as cn36,
3241
+ cn as cn38,
3274
3242
  gapSpace as gapSpace6
3275
3243
  } from "@marigold/system";
3276
- import { jsx as jsx70 } from "react/jsx-runtime";
3244
+ import { jsx as jsx71 } from "react/jsx-runtime";
3277
3245
  var Stack = ({
3278
3246
  children,
3279
3247
  space = 0,
@@ -3284,10 +3252,10 @@ var Stack = ({
3284
3252
  ...props
3285
3253
  }) => {
3286
3254
  var _a, _b, _c, _d;
3287
- return /* @__PURE__ */ jsx70(
3255
+ return /* @__PURE__ */ jsx71(
3288
3256
  "div",
3289
3257
  {
3290
- className: cn36(
3258
+ className: cn38(
3291
3259
  "flex flex-col",
3292
3260
  gapSpace6[space],
3293
3261
  alignX && ((_b = (_a = alignment3) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
@@ -3301,15 +3269,15 @@ var Stack = ({
3301
3269
  };
3302
3270
 
3303
3271
  // src/Switch/Switch.tsx
3304
- import { forwardRef as forwardRef16 } from "react";
3272
+ import { forwardRef as forwardRef17 } from "react";
3305
3273
  import { Switch } from "react-aria-components";
3306
3274
  import {
3307
- cn as cn37,
3275
+ cn as cn39,
3308
3276
  width as twWidth4,
3309
- useClassNames as useClassNames37
3277
+ useClassNames as useClassNames39
3310
3278
  } from "@marigold/system";
3311
- import { jsx as jsx71, jsxs as jsxs31 } from "react/jsx-runtime";
3312
- var _Switch = forwardRef16(
3279
+ import { jsx as jsx72, jsxs as jsxs31 } from "react/jsx-runtime";
3280
+ var _Switch = forwardRef17(
3313
3281
  ({
3314
3282
  variant,
3315
3283
  size,
@@ -3320,7 +3288,7 @@ var _Switch = forwardRef16(
3320
3288
  readOnly,
3321
3289
  ...rest
3322
3290
  }, ref) => {
3323
- const classNames2 = useClassNames37({ component: "Switch", size, variant });
3291
+ const classNames2 = useClassNames39({ component: "Switch", size, variant });
3324
3292
  const props = {
3325
3293
  isDisabled: disabled,
3326
3294
  isReadOnly: readOnly,
@@ -3332,25 +3300,25 @@ var _Switch = forwardRef16(
3332
3300
  {
3333
3301
  ...props,
3334
3302
  ref,
3335
- className: cn37(
3303
+ className: cn39(
3336
3304
  twWidth4[width],
3337
3305
  "group/switch",
3338
3306
  "flex items-center justify-between gap-[1ch]",
3339
3307
  classNames2.container
3340
3308
  ),
3341
3309
  children: [
3342
- /* @__PURE__ */ jsx71(_Label, { elementType: "span", children }),
3343
- /* @__PURE__ */ jsx71("div", { className: "relative", children: /* @__PURE__ */ jsx71(
3310
+ /* @__PURE__ */ jsx72(_Label, { elementType: "span", children }),
3311
+ /* @__PURE__ */ jsx72("div", { className: "relative", children: /* @__PURE__ */ jsx72(
3344
3312
  "div",
3345
3313
  {
3346
- className: cn37(
3314
+ className: cn39(
3347
3315
  "h-6 w-12 basis-12 rounded-3xl group-disabled/switch:cursor-not-allowed ",
3348
3316
  classNames2.track
3349
3317
  ),
3350
- children: /* @__PURE__ */ jsx71(
3318
+ children: /* @__PURE__ */ jsx72(
3351
3319
  "div",
3352
3320
  {
3353
- className: cn37(
3321
+ className: cn39(
3354
3322
  "h-[22px] w-[22px]",
3355
3323
  "cubic-bezier(.7,0,.3,1)",
3356
3324
  "absolute left-0 top-px",
@@ -3369,7 +3337,7 @@ var _Switch = forwardRef16(
3369
3337
  );
3370
3338
 
3371
3339
  // src/Table/Table.tsx
3372
- import { useRef as useRef27 } from "react";
3340
+ import { useRef as useRef24 } from "react";
3373
3341
  import { useTable } from "@react-aria/table";
3374
3342
  import {
3375
3343
  TableBody as Body2,
@@ -3379,30 +3347,30 @@ import {
3379
3347
  Row,
3380
3348
  useTableState
3381
3349
  } from "@react-stately/table";
3382
- import { cn as cn42, useClassNames as useClassNames39 } from "@marigold/system";
3350
+ import { cn as cn44, useClassNames as useClassNames41 } from "@marigold/system";
3383
3351
 
3384
3352
  // src/Table/Context.tsx
3385
- import { createContext as createContext7, useContext as useContext7 } from "react";
3386
- var TableContext = createContext7({});
3353
+ import { createContext as createContext6, useContext as useContext7 } from "react";
3354
+ var TableContext = createContext6({});
3387
3355
  var useTableContext = () => useContext7(TableContext);
3388
3356
 
3389
3357
  // src/Table/TableBody.tsx
3390
3358
  import { useTableRowGroup } from "@react-aria/table";
3391
- import { jsx as jsx72 } from "react/jsx-runtime";
3359
+ import { jsx as jsx73 } from "react/jsx-runtime";
3392
3360
  var TableBody = ({ children }) => {
3393
3361
  const { rowGroupProps } = useTableRowGroup();
3394
- return /* @__PURE__ */ jsx72("tbody", { ...rowGroupProps, children });
3362
+ return /* @__PURE__ */ jsx73("tbody", { ...rowGroupProps, children });
3395
3363
  };
3396
3364
 
3397
3365
  // src/Table/TableCell.tsx
3398
- import { useRef as useRef21 } from "react";
3399
- import { useFocusRing as useFocusRing8 } from "@react-aria/focus";
3366
+ import { useRef as useRef18 } from "react";
3367
+ import { useFocusRing as useFocusRing7 } from "@react-aria/focus";
3400
3368
  import { useTableCell } from "@react-aria/table";
3401
- import { mergeProps as mergeProps14 } from "@react-aria/utils";
3402
- import { useStateProps as useStateProps13 } from "@marigold/system";
3403
- import { jsx as jsx73 } from "react/jsx-runtime";
3369
+ import { mergeProps as mergeProps11 } from "@react-aria/utils";
3370
+ import { useStateProps as useStateProps11 } from "@marigold/system";
3371
+ import { jsx as jsx74 } from "react/jsx-runtime";
3404
3372
  var TableCell = ({ cell }) => {
3405
- const ref = useRef21(null);
3373
+ const ref = useRef18(null);
3406
3374
  const { interactive, state, classNames: classNames2 } = useTableContext();
3407
3375
  const disabled = state.disabledKeys.has(cell.parentKey);
3408
3376
  const { gridCellProps } = useTableCell(
@@ -3421,14 +3389,14 @@ var TableCell = ({ cell }) => {
3421
3389
  onMouseDown: (e) => e.stopPropagation(),
3422
3390
  onPointerDown: (e) => e.stopPropagation()
3423
3391
  };
3424
- const { focusProps, isFocusVisible } = useFocusRing8();
3425
- const stateProps = useStateProps13({ disabled, focusVisible: isFocusVisible });
3426
- return /* @__PURE__ */ jsx73(
3392
+ const { focusProps, isFocusVisible } = useFocusRing7();
3393
+ const stateProps = useStateProps11({ disabled, focusVisible: isFocusVisible });
3394
+ return /* @__PURE__ */ jsx74(
3427
3395
  "td",
3428
3396
  {
3429
3397
  ref,
3430
3398
  className: classNames2 == null ? void 0 : classNames2.cell,
3431
- ...mergeProps14(cellProps, focusProps),
3399
+ ...mergeProps11(cellProps, focusProps),
3432
3400
  ...stateProps,
3433
3401
  children: cell.rendered
3434
3402
  }
@@ -3436,11 +3404,11 @@ var TableCell = ({ cell }) => {
3436
3404
  };
3437
3405
 
3438
3406
  // src/Table/TableCheckboxCell.tsx
3439
- import { useRef as useRef22 } from "react";
3440
- import { useFocusRing as useFocusRing9 } from "@react-aria/focus";
3407
+ import { useRef as useRef19 } from "react";
3408
+ import { useFocusRing as useFocusRing8 } from "@react-aria/focus";
3441
3409
  import { useTableCell as useTableCell2, useTableSelectionCheckbox } from "@react-aria/table";
3442
- import { mergeProps as mergeProps15 } from "@react-aria/utils";
3443
- import { cn as cn38, useStateProps as useStateProps14 } from "@marigold/system";
3410
+ import { mergeProps as mergeProps12 } from "@react-aria/utils";
3411
+ import { cn as cn40, useStateProps as useStateProps12 } from "@marigold/system";
3444
3412
 
3445
3413
  // src/Table/utils.ts
3446
3414
  var mapCheckboxProps = ({
@@ -3463,9 +3431,9 @@ var mapCheckboxProps = ({
3463
3431
  };
3464
3432
 
3465
3433
  // src/Table/TableCheckboxCell.tsx
3466
- import { jsx as jsx74 } from "react/jsx-runtime";
3434
+ import { jsx as jsx75 } from "react/jsx-runtime";
3467
3435
  var TableCheckboxCell = ({ cell }) => {
3468
- const ref = useRef22(null);
3436
+ const ref = useRef19(null);
3469
3437
  const { state, classNames: classNames2 } = useTableContext();
3470
3438
  const disabled = state.disabledKeys.has(cell.parentKey);
3471
3439
  const { gridCellProps } = useTableCell2(
@@ -3478,36 +3446,36 @@ var TableCheckboxCell = ({ cell }) => {
3478
3446
  const { checkboxProps } = mapCheckboxProps(
3479
3447
  useTableSelectionCheckbox({ key: cell.parentKey }, state)
3480
3448
  );
3481
- const { focusProps, isFocusVisible } = useFocusRing9();
3482
- const stateProps = useStateProps14({ disabled, focusVisible: isFocusVisible });
3483
- return /* @__PURE__ */ jsx74(
3449
+ const { focusProps, isFocusVisible } = useFocusRing8();
3450
+ const stateProps = useStateProps12({ disabled, focusVisible: isFocusVisible });
3451
+ return /* @__PURE__ */ jsx75(
3484
3452
  "td",
3485
3453
  {
3486
3454
  ref,
3487
- className: cn38("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
3488
- ...mergeProps15(gridCellProps, focusProps),
3455
+ className: cn40("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
3456
+ ...mergeProps12(gridCellProps, focusProps),
3489
3457
  ...stateProps,
3490
- children: /* @__PURE__ */ jsx74(_Checkbox, { ...checkboxProps })
3458
+ children: /* @__PURE__ */ jsx75(_Checkbox, { ...checkboxProps })
3491
3459
  }
3492
3460
  );
3493
3461
  };
3494
3462
 
3495
3463
  // src/Table/TableColumnHeader.tsx
3496
- import { useRef as useRef23 } from "react";
3497
- import { useFocusRing as useFocusRing10 } from "@react-aria/focus";
3498
- import { useHover as useHover6 } from "@react-aria/interactions";
3464
+ import { useRef as useRef20 } from "react";
3465
+ import { useFocusRing as useFocusRing9 } from "@react-aria/focus";
3466
+ import { useHover as useHover4 } from "@react-aria/interactions";
3499
3467
  import { useTableColumnHeader } from "@react-aria/table";
3500
- import { mergeProps as mergeProps16 } from "@react-aria/utils";
3468
+ import { mergeProps as mergeProps13 } from "@react-aria/utils";
3501
3469
  import { SortDown, SortUp } from "@marigold/icons";
3502
- import { cn as cn39, useStateProps as useStateProps15 } from "@marigold/system";
3470
+ import { cn as cn41, useStateProps as useStateProps13 } from "@marigold/system";
3503
3471
  import { width as twWidth5 } from "@marigold/system";
3504
- import { jsx as jsx75, jsxs as jsxs32 } from "react/jsx-runtime";
3472
+ import { jsx as jsx76, jsxs as jsxs32 } from "react/jsx-runtime";
3505
3473
  var TableColumnHeader = ({
3506
3474
  column,
3507
3475
  width = "auto"
3508
3476
  }) => {
3509
3477
  var _a, _b;
3510
- const ref = useRef23(null);
3478
+ const ref = useRef20(null);
3511
3479
  const { state, classNames: classNames2 } = useTableContext();
3512
3480
  const { columnHeaderProps } = useTableColumnHeader(
3513
3481
  {
@@ -3516,9 +3484,9 @@ var TableColumnHeader = ({
3516
3484
  state,
3517
3485
  ref
3518
3486
  );
3519
- const { hoverProps, isHovered } = useHover6({});
3520
- const { focusProps, isFocusVisible } = useFocusRing10();
3521
- const stateProps = useStateProps15({
3487
+ const { hoverProps, isHovered } = useHover4({});
3488
+ const { focusProps, isFocusVisible } = useFocusRing9();
3489
+ const stateProps = useStateProps13({
3522
3490
  hover: isHovered,
3523
3491
  focusVisible: isFocusVisible
3524
3492
  });
@@ -3527,12 +3495,12 @@ var TableColumnHeader = ({
3527
3495
  {
3528
3496
  colSpan: column.colspan,
3529
3497
  ref,
3530
- className: cn39("cursor-default", twWidth5[width], classNames2 == null ? void 0 : classNames2.header),
3531
- ...mergeProps16(columnHeaderProps, hoverProps, focusProps),
3498
+ className: cn41("cursor-default", twWidth5[width], classNames2 == null ? void 0 : classNames2.header),
3499
+ ...mergeProps13(columnHeaderProps, hoverProps, focusProps),
3532
3500
  ...stateProps,
3533
3501
  children: [
3534
3502
  column.rendered,
3535
- column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ jsx75(SortUp, { className: "inline-block" }) : /* @__PURE__ */ jsx75(SortDown, { className: "inline-block" }) : /* @__PURE__ */ jsx75(SortDown, { className: "inline-block" }))
3503
+ column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ jsx76(SortUp, { className: "inline-block" }) : /* @__PURE__ */ jsx76(SortDown, { className: "inline-block" }) : /* @__PURE__ */ jsx76(SortDown, { className: "inline-block" }))
3536
3504
  ]
3537
3505
  }
3538
3506
  );
@@ -3540,36 +3508,36 @@ var TableColumnHeader = ({
3540
3508
 
3541
3509
  // src/Table/TableHeader.tsx
3542
3510
  import { useTableRowGroup as useTableRowGroup2 } from "@react-aria/table";
3543
- import { jsx as jsx76 } from "react/jsx-runtime";
3511
+ import { jsx as jsx77 } from "react/jsx-runtime";
3544
3512
  var TableHeader = ({ children }) => {
3545
3513
  const { rowGroupProps } = useTableRowGroup2();
3546
- return /* @__PURE__ */ jsx76("thead", { ...rowGroupProps, children });
3514
+ return /* @__PURE__ */ jsx77("thead", { ...rowGroupProps, children });
3547
3515
  };
3548
3516
 
3549
3517
  // src/Table/TableHeaderRow.tsx
3550
- import { useRef as useRef24 } from "react";
3518
+ import { useRef as useRef21 } from "react";
3551
3519
  import { useTableHeaderRow } from "@react-aria/table";
3552
- import { jsx as jsx77 } from "react/jsx-runtime";
3520
+ import { jsx as jsx78 } from "react/jsx-runtime";
3553
3521
  var TableHeaderRow = ({ item, children }) => {
3554
3522
  const { state } = useTableContext();
3555
- const ref = useRef24(null);
3523
+ const ref = useRef21(null);
3556
3524
  const { rowProps } = useTableHeaderRow({ node: item }, state, ref);
3557
- return /* @__PURE__ */ jsx77("tr", { ...rowProps, ref, children });
3525
+ return /* @__PURE__ */ jsx78("tr", { ...rowProps, ref, children });
3558
3526
  };
3559
3527
 
3560
3528
  // src/Table/TableRow.tsx
3561
- import { useRef as useRef25 } from "react";
3562
- import { useFocusRing as useFocusRing11 } from "@react-aria/focus";
3563
- import { useHover as useHover7 } from "@react-aria/interactions";
3529
+ import { useRef as useRef22 } from "react";
3530
+ import { useFocusRing as useFocusRing10 } from "@react-aria/focus";
3531
+ import { useHover as useHover5 } from "@react-aria/interactions";
3564
3532
  import { useTableRow } from "@react-aria/table";
3565
- import { mergeProps as mergeProps17 } from "@react-aria/utils";
3566
- import { cn as cn40, useClassNames as useClassNames38, useStateProps as useStateProps16 } from "@marigold/system";
3567
- import { jsx as jsx78 } from "react/jsx-runtime";
3533
+ import { mergeProps as mergeProps14 } from "@react-aria/utils";
3534
+ import { cn as cn42, useClassNames as useClassNames40, useStateProps as useStateProps14 } from "@marigold/system";
3535
+ import { jsx as jsx79 } from "react/jsx-runtime";
3568
3536
  var TableRow = ({ children, row }) => {
3569
- const ref = useRef25(null);
3537
+ const ref = useRef22(null);
3570
3538
  const { interactive, state, ...ctx } = useTableContext();
3571
3539
  const { variant, size } = row.props;
3572
- const classNames2 = useClassNames38({
3540
+ const classNames2 = useClassNames40({
3573
3541
  component: "Table",
3574
3542
  variant: variant || ctx.variant,
3575
3543
  size: size || ctx.size
@@ -3583,28 +3551,28 @@ var TableRow = ({ children, row }) => {
3583
3551
  );
3584
3552
  const disabled = state.disabledKeys.has(row.key);
3585
3553
  const selected = state.selectionManager.isSelected(row.key);
3586
- const { focusProps, isFocusVisible } = useFocusRing11({ within: true });
3587
- const { hoverProps, isHovered } = useHover7({
3554
+ const { focusProps, isFocusVisible } = useFocusRing10({ within: true });
3555
+ const { hoverProps, isHovered } = useHover5({
3588
3556
  isDisabled: disabled || !interactive
3589
3557
  });
3590
- const stateProps = useStateProps16({
3558
+ const stateProps = useStateProps14({
3591
3559
  disabled,
3592
3560
  selected,
3593
3561
  hover: isHovered,
3594
3562
  focusVisible: isFocusVisible,
3595
3563
  active: isPressed
3596
3564
  });
3597
- return /* @__PURE__ */ jsx78(
3565
+ return /* @__PURE__ */ jsx79(
3598
3566
  "tr",
3599
3567
  {
3600
3568
  ref,
3601
- className: cn40(
3569
+ className: cn42(
3602
3570
  [
3603
3571
  !interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"
3604
3572
  ],
3605
3573
  classNames2 == null ? void 0 : classNames2.row
3606
3574
  ),
3607
- ...mergeProps17(rowProps, focusProps, hoverProps),
3575
+ ...mergeProps14(rowProps, focusProps, hoverProps),
3608
3576
  ...stateProps,
3609
3577
  children
3610
3578
  }
@@ -3612,25 +3580,25 @@ var TableRow = ({ children, row }) => {
3612
3580
  };
3613
3581
 
3614
3582
  // src/Table/TableSelectAllCell.tsx
3615
- import { useRef as useRef26 } from "react";
3616
- import { useFocusRing as useFocusRing12 } from "@react-aria/focus";
3617
- import { useHover as useHover8 } from "@react-aria/interactions";
3583
+ import { useRef as useRef23 } from "react";
3584
+ import { useFocusRing as useFocusRing11 } from "@react-aria/focus";
3585
+ import { useHover as useHover6 } from "@react-aria/interactions";
3618
3586
  import {
3619
3587
  useTableColumnHeader as useTableColumnHeader2,
3620
3588
  useTableSelectAllCheckbox
3621
3589
  } from "@react-aria/table";
3622
- import { mergeProps as mergeProps18 } from "@react-aria/utils";
3590
+ import { mergeProps as mergeProps15 } from "@react-aria/utils";
3623
3591
  import {
3624
- cn as cn41,
3592
+ cn as cn43,
3625
3593
  width as twWidth6,
3626
- useStateProps as useStateProps17
3594
+ useStateProps as useStateProps15
3627
3595
  } from "@marigold/system";
3628
- import { jsx as jsx79 } from "react/jsx-runtime";
3596
+ import { jsx as jsx80 } from "react/jsx-runtime";
3629
3597
  var TableSelectAllCell = ({
3630
3598
  column,
3631
3599
  width = "auto"
3632
3600
  }) => {
3633
- const ref = useRef26(null);
3601
+ const ref = useRef23(null);
3634
3602
  const { state, classNames: classNames2 } = useTableContext();
3635
3603
  const { columnHeaderProps } = useTableColumnHeader2(
3636
3604
  {
@@ -3640,30 +3608,30 @@ var TableSelectAllCell = ({
3640
3608
  ref
3641
3609
  );
3642
3610
  const { checkboxProps } = mapCheckboxProps(useTableSelectAllCheckbox(state));
3643
- const { hoverProps, isHovered } = useHover8({});
3644
- const { focusProps, isFocusVisible } = useFocusRing12();
3645
- const stateProps = useStateProps17({
3611
+ const { hoverProps, isHovered } = useHover6({});
3612
+ const { focusProps, isFocusVisible } = useFocusRing11();
3613
+ const stateProps = useStateProps15({
3646
3614
  hover: isHovered,
3647
3615
  focusVisible: isFocusVisible
3648
3616
  });
3649
- return /* @__PURE__ */ jsx79(
3617
+ return /* @__PURE__ */ jsx80(
3650
3618
  "th",
3651
3619
  {
3652
3620
  ref,
3653
- className: cn41(
3621
+ className: cn43(
3654
3622
  twWidth6[width],
3655
3623
  ["text-center align-middle leading-none"],
3656
3624
  classNames2 == null ? void 0 : classNames2.header
3657
3625
  ),
3658
- ...mergeProps18(columnHeaderProps, hoverProps, focusProps),
3626
+ ...mergeProps15(columnHeaderProps, hoverProps, focusProps),
3659
3627
  ...stateProps,
3660
- children: /* @__PURE__ */ jsx79(_Checkbox, { ...checkboxProps })
3628
+ children: /* @__PURE__ */ jsx80(_Checkbox, { ...checkboxProps })
3661
3629
  }
3662
3630
  );
3663
3631
  };
3664
3632
 
3665
3633
  // src/Table/Table.tsx
3666
- import { jsx as jsx80, jsxs as jsxs33 } from "react/jsx-runtime";
3634
+ import { jsx as jsx81, jsxs as jsxs33 } from "react/jsx-runtime";
3667
3635
  var Table = ({
3668
3636
  variant,
3669
3637
  size,
@@ -3672,7 +3640,7 @@ var Table = ({
3672
3640
  ...props
3673
3641
  }) => {
3674
3642
  const interactive = selectionMode !== "none";
3675
- const tableRef = useRef27(null);
3643
+ const tableRef = useRef24(null);
3676
3644
  const state = useTableState({
3677
3645
  ...props,
3678
3646
  selectionMode,
@@ -3680,13 +3648,13 @@ var Table = ({
3680
3648
  props.selectionBehavior !== "replace"
3681
3649
  });
3682
3650
  const { gridProps } = useTable(props, state, tableRef);
3683
- const classNames2 = useClassNames39({
3651
+ const classNames2 = useClassNames41({
3684
3652
  component: "Table",
3685
3653
  variant,
3686
3654
  size
3687
3655
  });
3688
3656
  const { collection } = state;
3689
- return /* @__PURE__ */ jsx80(
3657
+ return /* @__PURE__ */ jsx81(
3690
3658
  TableContext.Provider,
3691
3659
  {
3692
3660
  value: { state, interactive, classNames: classNames2, variant, size },
@@ -3694,7 +3662,7 @@ var Table = ({
3694
3662
  "table",
3695
3663
  {
3696
3664
  ref: tableRef,
3697
- className: cn42(
3665
+ className: cn44(
3698
3666
  "group/table",
3699
3667
  "border-collapse overflow-auto whitespace-nowrap",
3700
3668
  stretch ? "table w-full" : "block",
@@ -3702,17 +3670,17 @@ var Table = ({
3702
3670
  ),
3703
3671
  ...gridProps,
3704
3672
  children: [
3705
- /* @__PURE__ */ jsx80(TableHeader, { children: collection.headerRows.map((headerRow) => /* @__PURE__ */ jsx80(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
3673
+ /* @__PURE__ */ jsx81(TableHeader, { children: collection.headerRows.map((headerRow) => /* @__PURE__ */ jsx81(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
3706
3674
  (column) => {
3707
3675
  var _a, _b, _c;
3708
- return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx80(
3676
+ return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx81(
3709
3677
  TableSelectAllCell,
3710
3678
  {
3711
3679
  width: (_b = column.props) == null ? void 0 : _b.width,
3712
3680
  column
3713
3681
  },
3714
3682
  column.key
3715
- ) : /* @__PURE__ */ jsx80(
3683
+ ) : /* @__PURE__ */ jsx81(
3716
3684
  TableColumnHeader,
3717
3685
  {
3718
3686
  width: (_c = column.props) == null ? void 0 : _c.width,
@@ -3724,10 +3692,10 @@ var Table = ({
3724
3692
  ) }, headerRow.key)) }),
3725
3693
  /* @__PURE__ */ jsxs33(TableBody, { children: [
3726
3694
  ...collection.rows.map(
3727
- (row) => row.type === "item" && /* @__PURE__ */ jsx80(TableRow, { row, children: [...collection.getChildren(row.key)].map(
3695
+ (row) => row.type === "item" && /* @__PURE__ */ jsx81(TableRow, { row, children: [...collection.getChildren(row.key)].map(
3728
3696
  (cell) => {
3729
3697
  var _a;
3730
- return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx80(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ jsx80(TableCell, { cell }, cell.key);
3698
+ return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx81(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ jsx81(TableCell, { cell }, cell.key);
3731
3699
  }
3732
3700
  ) }, row.key)
3733
3701
  )
@@ -3746,7 +3714,7 @@ Table.Row = Row;
3746
3714
 
3747
3715
  // src/Text/Text.tsx
3748
3716
  import {
3749
- cn as cn43,
3717
+ cn as cn45,
3750
3718
  createVar as createVar9,
3751
3719
  cursorStyle,
3752
3720
  fontWeight,
@@ -3754,10 +3722,10 @@ import {
3754
3722
  textAlign as textAlign2,
3755
3723
  textSize,
3756
3724
  textStyle,
3757
- useClassNames as useClassNames40,
3758
- useTheme as useTheme5
3725
+ useClassNames as useClassNames42,
3726
+ useTheme as useTheme6
3759
3727
  } from "@marigold/system";
3760
- import { jsx as jsx81 } from "react/jsx-runtime";
3728
+ import { jsx as jsx82 } from "react/jsx-runtime";
3761
3729
  var Text2 = ({
3762
3730
  variant,
3763
3731
  size,
@@ -3770,17 +3738,17 @@ var Text2 = ({
3770
3738
  children,
3771
3739
  ...props
3772
3740
  }) => {
3773
- const theme = useTheme5();
3774
- const classNames2 = useClassNames40({
3741
+ const theme = useTheme6();
3742
+ const classNames2 = useClassNames42({
3775
3743
  component: "Text",
3776
3744
  variant,
3777
3745
  size
3778
3746
  });
3779
- return /* @__PURE__ */ jsx81(
3747
+ return /* @__PURE__ */ jsx82(
3780
3748
  "p",
3781
3749
  {
3782
3750
  ...props,
3783
- className: cn43(
3751
+ className: cn45(
3784
3752
  classNames2,
3785
3753
  "text-[--color] outline-[--outline]",
3786
3754
  fontStyle && textStyle[fontStyle],
@@ -3803,145 +3771,61 @@ var Text2 = ({
3803
3771
  };
3804
3772
 
3805
3773
  // src/TextArea/TextArea.tsx
3806
- import { forwardRef as forwardRef17 } from "react";
3807
- import { useFocusRing as useFocusRing13 } from "@react-aria/focus";
3808
- import { useHover as useHover9 } from "@react-aria/interactions";
3809
- import { useTextField } from "@react-aria/textfield";
3810
- import { useObjectRef as useObjectRef7 } from "@react-aria/utils";
3811
- import { useClassNames as useClassNames41, useStateProps as useStateProps18 } from "@marigold/system";
3812
- import { jsx as jsx82 } from "react/jsx-runtime";
3813
- var TextArea = forwardRef17(
3774
+ import { forwardRef as forwardRef18 } from "react";
3775
+ import { TextArea, TextField } from "react-aria-components";
3776
+ import { useClassNames as useClassNames43 } from "@marigold/system";
3777
+ import { jsx as jsx83 } from "react/jsx-runtime";
3778
+ var _TextArea = forwardRef18(
3814
3779
  ({
3815
3780
  variant,
3816
3781
  size,
3817
- width,
3818
- disabled,
3819
3782
  required,
3783
+ disabled,
3820
3784
  readOnly,
3821
3785
  error,
3822
3786
  rows,
3823
- ...props
3787
+ ...rest
3824
3788
  }, ref) => {
3825
- const { label, description, errorMessage } = props;
3826
- const textAreaRef = useObjectRef7(ref);
3827
- const { labelProps, inputProps, descriptionProps, errorMessageProps } = useTextField(
3828
- {
3829
- inputElementType: "textarea",
3830
- isDisabled: disabled,
3831
- isRequired: required,
3832
- isReadOnly: readOnly,
3833
- validationState: error ? "invalid" : "valid",
3834
- ...props
3835
- },
3836
- textAreaRef
3837
- );
3838
- const { hoverProps, isHovered } = useHover9({});
3839
- const { focusProps, isFocusVisible } = useFocusRing13();
3840
- const stateProps = useStateProps18({
3841
- hover: isHovered,
3842
- focus: isFocusVisible,
3843
- disabled,
3844
- readOnly,
3845
- required,
3846
- error
3847
- });
3848
- const classNames2 = useClassNames41({ component: "TextArea", variant, size });
3849
- return /* @__PURE__ */ jsx82(
3850
- FieldBase,
3851
- {
3852
- label,
3853
- labelProps,
3854
- description,
3855
- descriptionProps,
3856
- error,
3857
- errorMessage,
3858
- errorMessageProps,
3859
- stateProps,
3860
- variant,
3861
- size,
3862
- width,
3863
- children: /* @__PURE__ */ jsx82(
3864
- "textarea",
3865
- {
3866
- className: classNames2,
3867
- ref: textAreaRef,
3868
- rows,
3869
- ...inputProps,
3870
- ...focusProps,
3871
- ...hoverProps
3872
- }
3873
- )
3874
- }
3875
- );
3789
+ const classNames2 = useClassNames43({ component: "TextArea", variant, size });
3790
+ const props = {
3791
+ isDisabled: disabled,
3792
+ isReadOnly: readOnly,
3793
+ isInvalid: error,
3794
+ isRequired: required,
3795
+ ...rest
3796
+ };
3797
+ return /* @__PURE__ */ jsx83(FieldBase2, { as: TextField, ...props, variant, size, children: /* @__PURE__ */ jsx83(TextArea, { className: classNames2, ref, rows }) });
3876
3798
  }
3877
3799
  );
3878
3800
 
3879
3801
  // src/TextField/TextField.tsx
3880
- import { forwardRef as forwardRef18 } from "react";
3881
- import { useFocusRing as useFocusRing14 } from "@react-aria/focus";
3882
- import { useHover as useHover10 } from "@react-aria/interactions";
3883
- import { useTextField as useTextField2 } from "@react-aria/textfield";
3884
- import { mergeProps as mergeProps19, useObjectRef as useObjectRef8 } from "@react-aria/utils";
3885
- import { useStateProps as useStateProps19 } from "@marigold/system";
3886
- import { jsx as jsx83 } from "react/jsx-runtime";
3887
- var TextField = forwardRef18(
3888
- ({ variant, size, width, disabled, required, readOnly, error, ...props }, ref) => {
3889
- const { label, description, errorMessage, autoFocus } = props;
3890
- const inputRef = useObjectRef8(ref);
3891
- const { labelProps, inputProps, descriptionProps, errorMessageProps } = useTextField2(
3892
- {
3893
- isDisabled: disabled,
3894
- isRequired: required,
3895
- isReadOnly: readOnly,
3896
- validationState: error ? "invalid" : "valid",
3897
- ...props
3898
- },
3899
- inputRef
3900
- );
3901
- const { hoverProps, isHovered } = useHover10({});
3902
- const { focusProps, isFocused } = useFocusRing14({
3903
- isTextInput: true,
3904
- autoFocus
3905
- });
3906
- const stateProps = useStateProps19({
3907
- hover: isHovered,
3908
- focus: isFocused,
3909
- disabled,
3910
- error,
3911
- readOnly,
3912
- required
3913
- });
3914
- return /* @__PURE__ */ jsx83(
3915
- FieldBase,
3916
- {
3917
- label,
3918
- labelProps,
3919
- description,
3920
- descriptionProps,
3921
- error,
3922
- errorMessage,
3923
- errorMessageProps,
3924
- stateProps,
3925
- variant,
3926
- size,
3927
- width,
3928
- children: /* @__PURE__ */ jsx83(
3929
- Input,
3930
- {
3931
- ref: inputRef,
3932
- variant,
3933
- size,
3934
- ...mergeProps19(focusProps, inputProps, hoverProps)
3935
- }
3936
- )
3937
- }
3938
- );
3802
+ import { forwardRef as forwardRef19 } from "react";
3803
+ import { TextField as TextField2 } from "react-aria-components";
3804
+ import { jsx as jsx84 } from "react/jsx-runtime";
3805
+ var _TextField = forwardRef19(
3806
+ ({
3807
+ variant,
3808
+ size,
3809
+ required,
3810
+ disabled,
3811
+ readOnly,
3812
+ error,
3813
+ ...rest
3814
+ }, ref) => {
3815
+ const props = {
3816
+ isDisabled: disabled,
3817
+ isReadOnly: readOnly,
3818
+ isInvalid: error,
3819
+ isRequired: required,
3820
+ ...rest
3821
+ };
3822
+ return /* @__PURE__ */ jsx84(FieldBase2, { as: TextField2, ...props, children: /* @__PURE__ */ jsx84(_Input, { ref }) });
3939
3823
  }
3940
3824
  );
3941
3825
 
3942
3826
  // src/Tiles/Tiles.tsx
3943
- import { cn as cn44, createVar as createVar10, gapSpace as gapSpace7 } from "@marigold/system";
3944
- import { jsx as jsx84 } from "react/jsx-runtime";
3827
+ import { cn as cn46, createVar as createVar10, gapSpace as gapSpace7 } from "@marigold/system";
3828
+ import { jsx as jsx85 } from "react/jsx-runtime";
3945
3829
  var Tiles = ({
3946
3830
  space = 0,
3947
3831
  stretch = false,
@@ -3954,11 +3838,11 @@ var Tiles = ({
3954
3838
  if (stretch) {
3955
3839
  column = `minmax(${column}, 1fr)`;
3956
3840
  }
3957
- return /* @__PURE__ */ jsx84(
3841
+ return /* @__PURE__ */ jsx85(
3958
3842
  "div",
3959
3843
  {
3960
3844
  ...props,
3961
- className: cn44(
3845
+ className: cn46(
3962
3846
  "grid",
3963
3847
  gapSpace7[space],
3964
3848
  "grid-cols-[repeat(auto-fit,var(--column))]",
@@ -3971,126 +3855,64 @@ var Tiles = ({
3971
3855
  };
3972
3856
 
3973
3857
  // src/Tooltip/Tooltip.tsx
3974
- import { useTooltip } from "@react-aria/tooltip";
3975
- import { cn as cn45, useClassNames as useClassNames42 } from "@marigold/system";
3976
-
3977
- // src/Tooltip/Context.ts
3978
- import { createContext as createContext8, useContext as useContext8 } from "react";
3979
- var TooltipContext = createContext8({});
3980
- var useTooltipContext = () => useContext8(TooltipContext);
3858
+ import { OverlayArrow, Tooltip } from "react-aria-components";
3859
+ import { cn as cn47, useClassNames as useClassNames44 } from "@marigold/system";
3981
3860
 
3982
3861
  // src/Tooltip/TooltipTrigger.tsx
3983
- import { Children as Children7, useRef as useRef28 } from "react";
3984
- import { FocusableProvider } from "@react-aria/focus";
3985
- import { useOverlayPosition } from "@react-aria/overlays";
3986
- import { useTooltipTrigger } from "@react-aria/tooltip";
3987
- import { useTooltipTriggerState } from "@react-stately/tooltip";
3988
- import { jsx as jsx85, jsxs as jsxs34 } from "react/jsx-runtime";
3989
- var TooltipTrigger = ({
3990
- disabled,
3991
- open,
3862
+ import { TooltipTrigger } from "react-aria-components";
3863
+ import { jsx as jsx86 } from "react/jsx-runtime";
3864
+ var _TooltipTrigger = ({
3992
3865
  delay = 1e3,
3993
- placement = "top",
3994
3866
  children,
3867
+ disabled,
3868
+ open,
3995
3869
  ...rest
3996
3870
  }) => {
3997
- const [tooltipTrigger, tooltip] = Children7.toArray(children);
3998
3871
  const props = {
3999
3872
  ...rest,
4000
3873
  isDisabled: disabled,
4001
3874
  isOpen: open,
4002
- delay,
4003
- placement
3875
+ delay
4004
3876
  };
4005
- const tooltipTriggerRef = useRef28(null);
4006
- const overlayRef = useRef28(null);
4007
- const state = useTooltipTriggerState(props);
4008
- const { triggerProps, tooltipProps } = useTooltipTrigger(
4009
- props,
4010
- state,
4011
- tooltipTriggerRef
4012
- );
4013
- const {
4014
- overlayProps: positionProps,
4015
- placement: overlayPlacement,
4016
- arrowProps
4017
- } = useOverlayPosition({
4018
- placement: props.placement,
4019
- targetRef: tooltipTriggerRef,
4020
- offset: props.offset,
4021
- crossOffset: props.crossOffset,
4022
- isOpen: state.isOpen,
4023
- overlayRef
4024
- });
4025
- return /* @__PURE__ */ jsxs34(FocusableProvider, { ref: tooltipTriggerRef, ...triggerProps, children: [
4026
- tooltipTrigger,
4027
- /* @__PURE__ */ jsx85(
4028
- TooltipContext.Provider,
4029
- {
4030
- value: {
4031
- state,
4032
- overlayRef,
4033
- arrowProps,
4034
- placement: overlayPlacement,
4035
- ...tooltipProps,
4036
- ...positionProps
4037
- },
4038
- children: /* @__PURE__ */ jsx85(Overlay, { open: state.isOpen, children: tooltip })
4039
- }
4040
- )
4041
- ] });
3877
+ return /* @__PURE__ */ jsx86(TooltipTrigger, { ...props, children });
4042
3878
  };
4043
3879
 
4044
3880
  // src/Tooltip/Tooltip.tsx
4045
- import { jsx as jsx86, jsxs as jsxs35 } from "react/jsx-runtime";
4046
- var Tooltip = ({ children, variant, size }) => {
4047
- const { arrowProps, state, overlayRef, placement, ...rest } = useTooltipContext();
4048
- const { tooltipProps } = useTooltip({}, state);
4049
- const classNames2 = useClassNames42({ component: "Tooltip", variant, size });
4050
- return /* @__PURE__ */ jsxs35(
4051
- "div",
4052
- {
4053
- ...tooltipProps,
4054
- ...rest,
4055
- ref: overlayRef,
4056
- className: cn45("group/tooltip", classNames2.container),
4057
- "data-placement": placement,
4058
- children: [
4059
- /* @__PURE__ */ jsx86("div", { children }),
4060
- /* @__PURE__ */ jsx86(
4061
- "div",
4062
- {
4063
- ...arrowProps,
4064
- className: cn45("absolute h-0 w-0", classNames2.arrow)
4065
- }
4066
- )
4067
- ]
4068
- }
4069
- );
3881
+ import { jsx as jsx87, jsxs as jsxs34 } from "react/jsx-runtime";
3882
+ var _Tooltip = ({ children, variant, size, open, ...rest }) => {
3883
+ const props = {
3884
+ ...rest,
3885
+ isOpen: open
3886
+ };
3887
+ const classNames2 = useClassNames44({ component: "Tooltip", variant, size });
3888
+ return /* @__PURE__ */ jsxs34(Tooltip, { ...props, className: cn47("group/tooltip", classNames2.container), children: [
3889
+ /* @__PURE__ */ jsx87(OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ jsx87("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx87("path", { d: "M0 0 L4 4 L8 0" }) }) }),
3890
+ children
3891
+ ] });
4070
3892
  };
4071
- Tooltip.Trigger = TooltipTrigger;
3893
+ _Tooltip.Trigger = _TooltipTrigger;
4072
3894
 
4073
3895
  // src/TagGroup/index.ts
4074
3896
  import { Item as Item6 } from "@react-stately/collections";
4075
3897
 
4076
3898
  // src/TagGroup/TagGroup.tsx
4077
- import { useRef as useRef30 } from "react";
3899
+ import { useRef as useRef26 } from "react";
4078
3900
  import { useTagGroup } from "@react-aria/tag";
4079
3901
  import { useListState } from "@react-stately/list";
4080
- import { useStateProps as useStateProps20 } from "@marigold/system";
3902
+ import { useStateProps as useStateProps16 } from "@marigold/system";
4081
3903
 
4082
3904
  // src/TagGroup/Tag.tsx
4083
- import React3, { useRef as useRef29 } from "react";
4084
- import { useButton as useButton6 } from "@react-aria/button";
4085
- import { useFocusRing as useFocusRing15 } from "@react-aria/focus";
3905
+ import React3, { useRef as useRef25 } from "react";
3906
+ import { useButton as useButton4 } from "@react-aria/button";
3907
+ import { useFocusRing as useFocusRing12 } from "@react-aria/focus";
4086
3908
  import { useTag } from "@react-aria/tag";
4087
- import { mergeProps as mergeProps20 } from "@react-aria/utils";
4088
- import { cn as cn46, useClassNames as useClassNames43 } from "@marigold/system";
4089
- import { jsx as jsx87, jsxs as jsxs36 } from "react/jsx-runtime";
3909
+ import { mergeProps as mergeProps16 } from "@react-aria/utils";
3910
+ import { cn as cn48, useClassNames as useClassNames45 } from "@marigold/system";
3911
+ import { jsx as jsx88, jsxs as jsxs35 } from "react/jsx-runtime";
4090
3912
  var CloseButton2 = ({ className, ...props }) => {
4091
- const ref = useRef29(null);
4092
- const { buttonProps } = useButton6({ ...props }, ref);
4093
- return /* @__PURE__ */ jsx87("button", { className, ...buttonProps, children: /* @__PURE__ */ jsx87("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx87("path", { 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" }) }) });
3913
+ const ref = useRef25(null);
3914
+ const { buttonProps } = useButton4({ ...props }, ref);
3915
+ return /* @__PURE__ */ jsx88("button", { className, ...buttonProps, children: /* @__PURE__ */ jsx88("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx88("path", { 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" }) }) });
4094
3916
  };
4095
3917
  var Tag = ({ variant, size, item, state, ...rest }) => {
4096
3918
  const props = {
@@ -4098,7 +3920,7 @@ var Tag = ({ variant, size, item, state, ...rest }) => {
4098
3920
  ...rest
4099
3921
  };
4100
3922
  let ref = React3.useRef(null);
4101
- let { focusProps } = useFocusRing15({ within: true });
3923
+ let { focusProps } = useFocusRing12({ within: true });
4102
3924
  const { rowProps, gridCellProps, allowsRemoving, removeButtonProps } = useTag(
4103
3925
  {
4104
3926
  ...props,
@@ -4107,20 +3929,20 @@ var Tag = ({ variant, size, item, state, ...rest }) => {
4107
3929
  state,
4108
3930
  ref
4109
3931
  );
4110
- const classNames2 = useClassNames43({ component: "Tag", variant, size });
4111
- return /* @__PURE__ */ jsx87(
3932
+ const classNames2 = useClassNames45({ component: "Tag", variant, size });
3933
+ return /* @__PURE__ */ jsx88(
4112
3934
  "span",
4113
3935
  {
4114
3936
  ref,
4115
- ...mergeProps20(rowProps, focusProps),
3937
+ ...mergeProps16(rowProps, focusProps),
4116
3938
  className: classNames2.tag,
4117
- children: /* @__PURE__ */ jsxs36("div", { ...gridCellProps, className: classNames2.gridCell, children: [
4118
- /* @__PURE__ */ jsx87("span", { children: item.rendered }),
4119
- allowsRemoving && /* @__PURE__ */ jsx87(
3939
+ children: /* @__PURE__ */ jsxs35("div", { ...gridCellProps, className: classNames2.gridCell, children: [
3940
+ /* @__PURE__ */ jsx88("span", { children: item.rendered }),
3941
+ allowsRemoving && /* @__PURE__ */ jsx88(
4120
3942
  CloseButton2,
4121
3943
  {
4122
3944
  ...removeButtonProps,
4123
- className: cn46("flex items-center", classNames2.closeButton)
3945
+ className: cn48("flex items-center", classNames2.closeButton)
4124
3946
  }
4125
3947
  )
4126
3948
  ] })
@@ -4129,7 +3951,7 @@ var Tag = ({ variant, size, item, state, ...rest }) => {
4129
3951
  };
4130
3952
 
4131
3953
  // src/TagGroup/TagGroup.tsx
4132
- import { jsx as jsx88 } from "react/jsx-runtime";
3954
+ import { jsx as jsx89 } from "react/jsx-runtime";
4133
3955
  import { createElement } from "react";
4134
3956
  var TagGroup = ({
4135
3957
  width,
@@ -4143,14 +3965,14 @@ var TagGroup = ({
4143
3965
  validationState: error ? "invalid" : "valid",
4144
3966
  ...rest
4145
3967
  };
4146
- const inputRef = useRef30(null);
3968
+ const inputRef = useRef26(null);
4147
3969
  const state = useListState(props);
4148
3970
  const { gridProps, labelProps, descriptionProps, errorMessageProps } = useTagGroup(props, state, inputRef);
4149
- const stateProps = useStateProps20({
3971
+ const stateProps = useStateProps16({
4150
3972
  error,
4151
3973
  required
4152
3974
  });
4153
- return /* @__PURE__ */ jsx88(
3975
+ return /* @__PURE__ */ jsx89(
4154
3976
  FieldBase,
4155
3977
  {
4156
3978
  width,
@@ -4163,7 +3985,7 @@ var TagGroup = ({
4163
3985
  errorMessageProps,
4164
3986
  stateProps,
4165
3987
  ...gridProps,
4166
- children: /* @__PURE__ */ jsx88(
3988
+ children: /* @__PURE__ */ jsx89(
4167
3989
  "div",
4168
3990
  {
4169
3991
  role: "presentation",
@@ -4195,10 +4017,10 @@ Tag2.Group = TagGroup;
4195
4017
  import { VisuallyHidden } from "@react-aria/visually-hidden";
4196
4018
 
4197
4019
  // src/XLoader/XLoader.tsx
4198
- import { forwardRef as forwardRef19 } from "react";
4020
+ import { forwardRef as forwardRef20 } from "react";
4199
4021
  import { SVG as SVG6 } from "@marigold/system";
4200
- import { jsx as jsx89, jsxs as jsxs37 } from "react/jsx-runtime";
4201
- var XLoader = forwardRef19((props, ref) => /* @__PURE__ */ jsxs37(
4022
+ import { jsx as jsx90, jsxs as jsxs36 } from "react/jsx-runtime";
4023
+ var XLoader = forwardRef20((props, ref) => /* @__PURE__ */ jsxs36(
4202
4024
  SVG6,
4203
4025
  {
4204
4026
  id: "XLoader",
@@ -4208,13 +4030,13 @@ var XLoader = forwardRef19((props, ref) => /* @__PURE__ */ jsxs37(
4208
4030
  ...props,
4209
4031
  ...ref,
4210
4032
  children: [
4211
- /* @__PURE__ */ jsx89("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
4212
- /* @__PURE__ */ jsx89(
4033
+ /* @__PURE__ */ jsx90("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
4034
+ /* @__PURE__ */ jsx90(
4213
4035
  "path",
4214
4036
  {
4215
4037
  id: "XMLID_5_",
4216
4038
  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",
4217
- children: /* @__PURE__ */ jsx89(
4039
+ children: /* @__PURE__ */ jsx90(
4218
4040
  "animate",
4219
4041
  {
4220
4042
  attributeName: "opacity",
@@ -4227,12 +4049,12 @@ var XLoader = forwardRef19((props, ref) => /* @__PURE__ */ jsxs37(
4227
4049
  )
4228
4050
  }
4229
4051
  ),
4230
- /* @__PURE__ */ jsx89(
4052
+ /* @__PURE__ */ jsx90(
4231
4053
  "path",
4232
4054
  {
4233
4055
  id: "XMLID_18_",
4234
4056
  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",
4235
- children: /* @__PURE__ */ jsx89(
4057
+ children: /* @__PURE__ */ jsx90(
4236
4058
  "animate",
4237
4059
  {
4238
4060
  attributeName: "opacity",
@@ -4245,12 +4067,12 @@ var XLoader = forwardRef19((props, ref) => /* @__PURE__ */ jsxs37(
4245
4067
  )
4246
4068
  }
4247
4069
  ),
4248
- /* @__PURE__ */ jsx89(
4070
+ /* @__PURE__ */ jsx90(
4249
4071
  "path",
4250
4072
  {
4251
4073
  id: "XMLID_19_",
4252
4074
  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",
4253
- children: /* @__PURE__ */ jsx89(
4075
+ children: /* @__PURE__ */ jsx90(
4254
4076
  "animate",
4255
4077
  {
4256
4078
  attributeName: "opacity",
@@ -4263,12 +4085,12 @@ var XLoader = forwardRef19((props, ref) => /* @__PURE__ */ jsxs37(
4263
4085
  )
4264
4086
  }
4265
4087
  ),
4266
- /* @__PURE__ */ jsx89(
4088
+ /* @__PURE__ */ jsx90(
4267
4089
  "path",
4268
4090
  {
4269
4091
  id: "XMLID_20_",
4270
4092
  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",
4271
- children: /* @__PURE__ */ jsx89(
4093
+ children: /* @__PURE__ */ jsx90(
4272
4094
  "animate",
4273
4095
  {
4274
4096
  attributeName: "opacity",
@@ -4281,12 +4103,12 @@ var XLoader = forwardRef19((props, ref) => /* @__PURE__ */ jsxs37(
4281
4103
  )
4282
4104
  }
4283
4105
  ),
4284
- /* @__PURE__ */ jsx89(
4106
+ /* @__PURE__ */ jsx90(
4285
4107
  "path",
4286
4108
  {
4287
4109
  id: "XMLID_21_",
4288
4110
  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",
4289
- children: /* @__PURE__ */ jsx89(
4111
+ children: /* @__PURE__ */ jsx90(
4290
4112
  "animate",
4291
4113
  {
4292
4114
  attributeName: "opacity",
@@ -4299,12 +4121,12 @@ var XLoader = forwardRef19((props, ref) => /* @__PURE__ */ jsxs37(
4299
4121
  )
4300
4122
  }
4301
4123
  ),
4302
- /* @__PURE__ */ jsx89(
4124
+ /* @__PURE__ */ jsx90(
4303
4125
  "path",
4304
4126
  {
4305
4127
  id: "XMLID_22_",
4306
4128
  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",
4307
- children: /* @__PURE__ */ jsx89(
4129
+ children: /* @__PURE__ */ jsx90(
4308
4130
  "animate",
4309
4131
  {
4310
4132
  attributeName: "opacity",
@@ -4317,12 +4139,12 @@ var XLoader = forwardRef19((props, ref) => /* @__PURE__ */ jsxs37(
4317
4139
  )
4318
4140
  }
4319
4141
  ),
4320
- /* @__PURE__ */ jsx89(
4142
+ /* @__PURE__ */ jsx90(
4321
4143
  "path",
4322
4144
  {
4323
4145
  id: "XMLID_23_",
4324
4146
  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",
4325
- children: /* @__PURE__ */ jsx89(
4147
+ children: /* @__PURE__ */ jsx90(
4326
4148
  "animate",
4327
4149
  {
4328
4150
  attributeName: "opacity",
@@ -4335,12 +4157,12 @@ var XLoader = forwardRef19((props, ref) => /* @__PURE__ */ jsxs37(
4335
4157
  )
4336
4158
  }
4337
4159
  ),
4338
- /* @__PURE__ */ jsx89(
4160
+ /* @__PURE__ */ jsx90(
4339
4161
  "path",
4340
4162
  {
4341
4163
  id: "XMLID_24_",
4342
4164
  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",
4343
- children: /* @__PURE__ */ jsx89(
4165
+ children: /* @__PURE__ */ jsx90(
4344
4166
  "animate",
4345
4167
  {
4346
4168
  attributeName: "opacity",
@@ -4353,12 +4175,12 @@ var XLoader = forwardRef19((props, ref) => /* @__PURE__ */ jsxs37(
4353
4175
  )
4354
4176
  }
4355
4177
  ),
4356
- /* @__PURE__ */ jsx89(
4178
+ /* @__PURE__ */ jsx90(
4357
4179
  "path",
4358
4180
  {
4359
4181
  id: "XMLID_25_",
4360
4182
  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",
4361
- children: /* @__PURE__ */ jsx89(
4183
+ children: /* @__PURE__ */ jsx90(
4362
4184
  "animate",
4363
4185
  {
4364
4186
  attributeName: "opacity",
@@ -4371,12 +4193,12 @@ var XLoader = forwardRef19((props, ref) => /* @__PURE__ */ jsxs37(
4371
4193
  )
4372
4194
  }
4373
4195
  ),
4374
- /* @__PURE__ */ jsx89(
4196
+ /* @__PURE__ */ jsx90(
4375
4197
  "path",
4376
4198
  {
4377
4199
  id: "XMLID_26_",
4378
4200
  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",
4379
- children: /* @__PURE__ */ jsx89(
4201
+ children: /* @__PURE__ */ jsx90(
4380
4202
  "animate",
4381
4203
  {
4382
4204
  attributeName: "opacity",
@@ -4389,12 +4211,12 @@ var XLoader = forwardRef19((props, ref) => /* @__PURE__ */ jsxs37(
4389
4211
  )
4390
4212
  }
4391
4213
  ),
4392
- /* @__PURE__ */ jsx89(
4214
+ /* @__PURE__ */ jsx90(
4393
4215
  "path",
4394
4216
  {
4395
4217
  id: "XMLID_27_",
4396
4218
  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",
4397
- children: /* @__PURE__ */ jsx89(
4219
+ children: /* @__PURE__ */ jsx90(
4398
4220
  "animate",
4399
4221
  {
4400
4222
  attributeName: "opacity",
@@ -4412,43 +4234,43 @@ var XLoader = forwardRef19((props, ref) => /* @__PURE__ */ jsxs37(
4412
4234
  ));
4413
4235
 
4414
4236
  // src/Tabs/Tabs.tsx
4415
- import { useRef as useRef33 } from "react";
4237
+ import { useRef as useRef29 } from "react";
4416
4238
  import { useTabList } from "@react-aria/tabs";
4417
4239
  import { Item as Item7 } from "@react-stately/collections";
4418
4240
  import { useTabListState } from "@react-stately/tabs";
4419
- import { cn as cn49, gapSpace as gapSpace8, useClassNames as useClassNames44 } from "@marigold/system";
4241
+ import { cn as cn51, gapSpace as gapSpace8, useClassNames as useClassNames46 } from "@marigold/system";
4420
4242
 
4421
4243
  // src/Tabs/Context.ts
4422
- import { createContext as createContext9, useContext as useContext9 } from "react";
4423
- var TabContext = createContext9({});
4424
- var useTabContext = () => useContext9(TabContext);
4244
+ import { createContext as createContext7, useContext as useContext8 } from "react";
4245
+ var TabContext = createContext7({});
4246
+ var useTabContext = () => useContext8(TabContext);
4425
4247
 
4426
4248
  // src/Tabs/Tab.tsx
4427
- import { useRef as useRef31 } from "react";
4428
- import { useFocus, useHover as useHover11 } from "@react-aria/interactions";
4249
+ import { useRef as useRef27 } from "react";
4250
+ import { useFocus, useHover as useHover7 } from "@react-aria/interactions";
4429
4251
  import { useTab } from "@react-aria/tabs";
4430
- import { mergeProps as mergeProps21 } from "@react-aria/utils";
4431
- import { cn as cn47, useStateProps as useStateProps21 } from "@marigold/system";
4432
- import { jsx as jsx90 } from "react/jsx-runtime";
4252
+ import { mergeProps as mergeProps17 } from "@react-aria/utils";
4253
+ import { cn as cn49, useStateProps as useStateProps17 } from "@marigold/system";
4254
+ import { jsx as jsx91 } from "react/jsx-runtime";
4433
4255
  var Tab = ({ item, state }) => {
4434
4256
  const { key, rendered } = item;
4435
- const ref = useRef31(null);
4257
+ const ref = useRef27(null);
4436
4258
  const { tabProps, isSelected } = useTab({ key }, state, ref);
4437
4259
  const disabled = tabProps["aria-disabled"];
4438
- const { hoverProps, isHovered } = useHover11({
4260
+ const { hoverProps, isHovered } = useHover7({
4439
4261
  isDisabled: disabled || isSelected
4440
4262
  });
4441
4263
  const { focusProps } = useFocus({});
4442
- const stateProps = useStateProps21({ active: isSelected, hover: isHovered });
4264
+ const stateProps = useStateProps17({ active: isSelected, hover: isHovered });
4443
4265
  const { classNames: classNames2 } = useTabContext();
4444
- return /* @__PURE__ */ jsx90(
4266
+ return /* @__PURE__ */ jsx91(
4445
4267
  "div",
4446
4268
  {
4447
- className: cn47(
4269
+ className: cn49(
4448
4270
  "flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
4449
4271
  classNames2.tab
4450
4272
  ),
4451
- ...mergeProps21(tabProps, stateProps, focusProps, hoverProps),
4273
+ ...mergeProps17(tabProps, stateProps, focusProps, hoverProps),
4452
4274
  ref,
4453
4275
  children: rendered
4454
4276
  }
@@ -4456,21 +4278,21 @@ var Tab = ({ item, state }) => {
4456
4278
  };
4457
4279
 
4458
4280
  // src/Tabs/TabPanel.tsx
4459
- import { useRef as useRef32 } from "react";
4281
+ import { useRef as useRef28 } from "react";
4460
4282
  import { useTabPanel } from "@react-aria/tabs";
4461
- import { cn as cn48 } from "@marigold/system";
4462
- import { jsx as jsx91 } from "react/jsx-runtime";
4283
+ import { cn as cn50 } from "@marigold/system";
4284
+ import { jsx as jsx92 } from "react/jsx-runtime";
4463
4285
  var TabPanel = ({ state, ...props }) => {
4464
4286
  var _a;
4465
- const ref = useRef32(null);
4287
+ const ref = useRef28(null);
4466
4288
  const { tabPanelProps } = useTabPanel(props, state, ref);
4467
4289
  const selectedItemProps = (_a = state.selectedItem) == null ? void 0 : _a.props;
4468
4290
  const { classNames: classNames2 } = useTabContext();
4469
- return /* @__PURE__ */ jsx91("div", { className: cn48(classNames2.tabpanel), ref, ...tabPanelProps, children: selectedItemProps == null ? void 0 : selectedItemProps.children });
4291
+ return /* @__PURE__ */ jsx92("div", { className: cn50(classNames2.tabpanel), ref, ...tabPanelProps, children: selectedItemProps == null ? void 0 : selectedItemProps.children });
4470
4292
  };
4471
4293
 
4472
4294
  // src/Tabs/Tabs.tsx
4473
- import { jsx as jsx92, jsxs as jsxs38 } from "react/jsx-runtime";
4295
+ import { jsx as jsx93, jsxs as jsxs37 } from "react/jsx-runtime";
4474
4296
  var Tabs = ({
4475
4297
  space = 2,
4476
4298
  size = "medium",
@@ -4479,31 +4301,31 @@ var Tabs = ({
4479
4301
  ...rest
4480
4302
  }) => {
4481
4303
  var _a;
4482
- const ref = useRef33(null);
4304
+ const ref = useRef29(null);
4483
4305
  const props = {
4484
4306
  isDisabled: disabled,
4485
4307
  ...rest
4486
4308
  };
4487
4309
  const state = useTabListState(props);
4488
4310
  const { tabListProps } = useTabList(props, state, ref);
4489
- const classNames2 = useClassNames44({
4311
+ const classNames2 = useClassNames46({
4490
4312
  component: "Tabs",
4491
4313
  size,
4492
4314
  variant
4493
4315
  });
4494
- return /* @__PURE__ */ jsx92(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsxs38("div", { className: cn49(classNames2.container), children: [
4495
- /* @__PURE__ */ jsx92(
4316
+ return /* @__PURE__ */ jsx93(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsxs37("div", { className: cn51(classNames2.container), children: [
4317
+ /* @__PURE__ */ jsx93(
4496
4318
  "div",
4497
4319
  {
4498
- className: cn49("flex", gapSpace8[space], classNames2.tabs),
4320
+ className: cn51("flex", gapSpace8[space], classNames2.tabs),
4499
4321
  ...tabListProps,
4500
4322
  ref,
4501
4323
  children: [...state.collection].map((item) => {
4502
- return /* @__PURE__ */ jsx92(Tab, { item, state }, item.key);
4324
+ return /* @__PURE__ */ jsx93(Tab, { item, state }, item.key);
4503
4325
  })
4504
4326
  }
4505
4327
  ),
4506
- /* @__PURE__ */ jsx92(TabPanel, { state }, (_a = state.selectedItem) == null ? void 0 : _a.key)
4328
+ /* @__PURE__ */ jsx93(TabPanel, { state }, (_a = state.selectedItem) == null ? void 0 : _a.key)
4507
4329
  ] }) });
4508
4330
  };
4509
4331
  Tabs.Item = Item7;
@@ -4530,7 +4352,7 @@ export {
4530
4352
  Container,
4531
4353
  DateField,
4532
4354
  DatePicker,
4533
- Dialog,
4355
+ _Dialog as Dialog,
4534
4356
  _Divider as Divider,
4535
4357
  FieldBase,
4536
4358
  FieldGroup,
@@ -4548,8 +4370,8 @@ export {
4548
4370
  MarigoldProvider,
4549
4371
  Menu,
4550
4372
  Message,
4551
- Modal,
4552
- NumberField,
4373
+ _Modal as Modal,
4374
+ _NumberField as NumberField,
4553
4375
  Overlay,
4554
4376
  Popover,
4555
4377
  _Radio as Radio,
@@ -4563,19 +4385,20 @@ export {
4563
4385
  Tabs,
4564
4386
  Tag2 as Tag,
4565
4387
  Text2 as Text,
4566
- TextArea,
4567
- TextField,
4388
+ _TextArea as TextArea,
4389
+ _TextField as TextField,
4568
4390
  ThemeProvider2 as ThemeProvider,
4569
4391
  Tiles,
4570
- Tooltip,
4392
+ _Tooltip as Tooltip,
4571
4393
  Tray,
4572
4394
  TrayWrapper,
4573
4395
  Underlay,
4574
4396
  VisuallyHidden,
4575
4397
  XLoader,
4576
4398
  _Slider,
4399
+ _TextArea,
4577
4400
  useAsyncList,
4578
4401
  useFieldGroupContext,
4579
4402
  useListData,
4580
- useTheme4 as useTheme
4403
+ useTheme5 as useTheme
4581
4404
  };