@marigold/components 6.7.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,26 +1323,27 @@ 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
- import { Text } from "react-aria-components";
1308
- import { cn as cn16, useClassNames as useClassNames14 } from "@marigold/system";
1309
- import { Fragment as Fragment5, jsx as jsx30, jsxs as jsxs14 } from "react/jsx-runtime";
1333
+ import { FieldError, Text } from "react-aria-components";
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,
1313
1339
  description,
1314
1340
  error,
1315
1341
  errorMessage,
1342
+ isInvalid,
1316
1343
  ...props
1317
1344
  }) => {
1318
1345
  const hasErrorMessage = errorMessage && error;
1319
- const classNames2 = useClassNames14({
1346
+ const classNames2 = useClassNames15({
1320
1347
  component: "HelpText",
1321
1348
  variant,
1322
1349
  size
@@ -1324,31 +1351,33 @@ var HelpText2 = ({
1324
1351
  if (!description && !errorMessage) {
1325
1352
  return null;
1326
1353
  }
1327
- return /* @__PURE__ */ jsx30(
1328
- Text,
1329
- {
1330
- ...props,
1331
- slot: hasErrorMessage ? "errorMessage" : "description",
1332
- className: cn16("flex items-center gap-1", classNames2.container),
1333
- children: hasErrorMessage ? /* @__PURE__ */ jsxs14(Fragment5, { children: [
1334
- /* @__PURE__ */ jsx30(
1335
- "svg",
1336
- {
1337
- className: cn16("h-4 w-4", classNames2.icon),
1338
- viewBox: "0 0 24 24",
1339
- role: "presentation",
1340
- fill: "currentColor",
1341
- 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" })
1342
- }
1343
- ),
1344
- errorMessage
1345
- ] }) : description
1346
- }
1347
- );
1354
+ return /* @__PURE__ */ jsxs13("div", { className: cn17(classNames2.container), children: [
1355
+ /* @__PURE__ */ jsxs13(
1356
+ FieldError,
1357
+ {
1358
+ ...props,
1359
+ className: "grid grid-flow-col items-center justify-start gap-1",
1360
+ children: [
1361
+ /* @__PURE__ */ jsx31(
1362
+ "svg",
1363
+ {
1364
+ className: cn17("h-4 w-4", classNames2.icon),
1365
+ viewBox: "0 0 24 24",
1366
+ role: "presentation",
1367
+ fill: "currentColor",
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" })
1369
+ }
1370
+ ),
1371
+ errorMessage
1372
+ ]
1373
+ }
1374
+ ),
1375
+ !hasErrorMessage && /* @__PURE__ */ jsx31(Text, { slot: "description", children: description })
1376
+ ] });
1348
1377
  };
1349
1378
 
1350
1379
  // src/FieldBase/_FieldBase.tsx
1351
- import { jsx as jsx31, jsxs as jsxs15 } from "react/jsx-runtime";
1380
+ import { jsx as jsx32, jsxs as jsxs14 } from "react/jsx-runtime";
1352
1381
  var fixedForwardRef = forwardRef10;
1353
1382
  var _FieldBase = (props, ref) => {
1354
1383
  const {
@@ -1361,23 +1390,26 @@ var _FieldBase = (props, ref) => {
1361
1390
  description,
1362
1391
  errorMessage,
1363
1392
  className,
1393
+ stateProps,
1364
1394
  ...rest
1365
1395
  } = props;
1366
- const classNames2 = useClassNames15({
1396
+ const classNames2 = useClassNames16({
1367
1397
  component: "Field",
1368
1398
  variant,
1369
1399
  size
1370
1400
  });
1371
- return /* @__PURE__ */ jsxs15(
1401
+ return /* @__PURE__ */ jsxs14(
1372
1402
  Component,
1373
1403
  {
1374
1404
  ref,
1375
- className: cn17("group/field", twWidth2[width], classNames2, className),
1405
+ className: cn18("group/field", twWidth2[width], classNames2, className),
1406
+ "data-required": props.isRequired ? true : void 0,
1407
+ "data-error": props.isInvalid ? true : void 0,
1376
1408
  ...rest,
1377
1409
  children: [
1378
- 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" }),
1379
1411
  children,
1380
- /* @__PURE__ */ jsx31(
1412
+ /* @__PURE__ */ jsx32(
1381
1413
  HelpText2,
1382
1414
  {
1383
1415
  variant,
@@ -1394,7 +1426,7 @@ var _FieldBase = (props, ref) => {
1394
1426
  var FieldBase2 = fixedForwardRef(_FieldBase);
1395
1427
 
1396
1428
  // src/Checkbox/CheckboxGroup.tsx
1397
- import { jsx as jsx32 } from "react/jsx-runtime";
1429
+ import { jsx as jsx33 } from "react/jsx-runtime";
1398
1430
  var _CheckboxGroup = ({
1399
1431
  children,
1400
1432
  variant,
@@ -1405,7 +1437,7 @@ var _CheckboxGroup = ({
1405
1437
  error,
1406
1438
  ...rest
1407
1439
  }) => {
1408
- const classNames2 = useClassNames16({
1440
+ const classNames2 = useClassNames17({
1409
1441
  component: "Checkbox",
1410
1442
  variant,
1411
1443
  size,
@@ -1419,13 +1451,13 @@ var _CheckboxGroup = ({
1419
1451
  isInvalid: error,
1420
1452
  ...rest
1421
1453
  };
1422
- return /* @__PURE__ */ jsx32(FieldBase2, { as: CheckboxGroup, ...props, children });
1454
+ return /* @__PURE__ */ jsx33(FieldBase2, { as: CheckboxGroup, ...props, children });
1423
1455
  };
1424
1456
 
1425
1457
  // src/Columns/Columns.tsx
1426
1458
  import { Children as Children3, cloneElement as cloneElement3, isValidElement as isValidElement2 } from "react";
1427
- import { cn as cn18, createVar as createVar6, gapSpace as gapSpace4 } from "@marigold/system";
1428
- 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";
1429
1461
  var Columns = ({
1430
1462
  space = 0,
1431
1463
  columns,
@@ -1441,19 +1473,19 @@ var Columns = ({
1441
1473
  )}`
1442
1474
  );
1443
1475
  }
1444
- return /* @__PURE__ */ jsx33(
1476
+ return /* @__PURE__ */ jsx34(
1445
1477
  "div",
1446
1478
  {
1447
- className: cn18(
1479
+ className: cn19(
1448
1480
  "flex flex-wrap items-stretch",
1449
1481
  stretch && "h-full",
1450
1482
  gapSpace4[space]
1451
1483
  ),
1452
1484
  ...props,
1453
- children: Children3.map(children, (child, idx) => /* @__PURE__ */ jsx33(
1485
+ children: Children3.map(children, (child, idx) => /* @__PURE__ */ jsx34(
1454
1486
  "div",
1455
1487
  {
1456
- className: cn18(
1488
+ className: cn19(
1457
1489
  "grow-[--columnSize] basis-[calc((var(--collapseAt)_-_100%)_*_999)]"
1458
1490
  ),
1459
1491
  style: createVar6({ collapseAt, columnSize: columns[idx] }),
@@ -1466,13 +1498,13 @@ var Columns = ({
1466
1498
 
1467
1499
  // src/Container/Container.tsx
1468
1500
  import {
1469
- cn as cn19,
1501
+ cn as cn20,
1470
1502
  createVar as createVar7,
1471
1503
  gridColsAlign,
1472
1504
  gridColumn,
1473
1505
  placeItems
1474
1506
  } from "@marigold/system";
1475
- import { jsx as jsx34 } from "react/jsx-runtime";
1507
+ import { jsx as jsx35 } from "react/jsx-runtime";
1476
1508
  var content = {
1477
1509
  small: "20ch",
1478
1510
  medium: "45ch",
@@ -1492,11 +1524,11 @@ var Container = ({
1492
1524
  ...props
1493
1525
  }) => {
1494
1526
  const maxWidth = contentType === "content" ? content[size] : header[size];
1495
- return /* @__PURE__ */ jsx34(
1527
+ return /* @__PURE__ */ jsx35(
1496
1528
  "div",
1497
1529
  {
1498
1530
  ...props,
1499
- className: cn19(
1531
+ className: cn20(
1500
1532
  "grid",
1501
1533
  placeItems[alignItems],
1502
1534
  gridColsAlign[align],
@@ -1509,38 +1541,19 @@ var Container = ({
1509
1541
  };
1510
1542
 
1511
1543
  // src/Dialog/Dialog.tsx
1512
- import {
1513
- Children as Children5,
1514
- cloneElement as cloneElement4,
1515
- isValidElement as isValidElement3,
1516
- useRef as useRef9
1517
- } from "react";
1518
- import { useButton as useButton3 } from "@react-aria/button";
1519
- import { useDialog } from "@react-aria/dialog";
1520
- import { cn as cn21, useClassNames as useClassNames19 } from "@marigold/system";
1521
-
1522
- // src/Header/Header.tsx
1523
- import { Header } from "react-aria-components";
1524
- import { useClassNames as useClassNames17 } from "@marigold/system";
1525
- import { jsx as jsx35 } from "react/jsx-runtime";
1526
- var _Header = ({ variant, size, ...props }) => {
1527
- const classNames2 = useClassNames17({
1528
- component: "Header",
1529
- variant,
1530
- size
1531
- });
1532
- return /* @__PURE__ */ jsx35(Header, { className: classNames2, ...props, children: props.children });
1533
- };
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";
1534
1547
 
1535
1548
  // src/Headline/Headline.tsx
1536
1549
  import { Heading } from "react-aria-components";
1537
1550
  import {
1538
- cn as cn20,
1551
+ cn as cn21,
1539
1552
  createVar as createVar8,
1540
1553
  get,
1541
1554
  textAlign,
1542
1555
  useClassNames as useClassNames18,
1543
- useTheme as useTheme2
1556
+ useTheme as useTheme3
1544
1557
  } from "@marigold/system";
1545
1558
  import { jsx as jsx36 } from "react/jsx-runtime";
1546
1559
  var _Headline = ({
@@ -1552,7 +1565,7 @@ var _Headline = ({
1552
1565
  level = 1,
1553
1566
  ...props
1554
1567
  }) => {
1555
- const theme = useTheme2();
1568
+ const theme = useTheme3();
1556
1569
  const classNames2 = useClassNames18({
1557
1570
  component: "Headline",
1558
1571
  variant,
@@ -1563,7 +1576,7 @@ var _Headline = ({
1563
1576
  {
1564
1577
  level: Number(level),
1565
1578
  ...props,
1566
- className: cn20(classNames2, "text-[--color]", textAlign[align]),
1579
+ className: cn21(classNames2, "text-[--color]", textAlign[align]),
1567
1580
  style: createVar8({
1568
1581
  color: color && theme.colors && get(
1569
1582
  theme.colors,
@@ -1577,96 +1590,50 @@ var _Headline = ({
1577
1590
  );
1578
1591
  };
1579
1592
 
1580
- // src/Dialog/Context.ts
1581
- import { createContext as createContext3, useContext as useContext3 } from "react";
1582
- var DialogContext = createContext3({});
1583
- var useDialogContext = () => useContext3(DialogContext);
1584
-
1585
- // src/Dialog/DialogController.tsx
1586
- import { useOverlayTriggerState } from "@react-stately/overlays";
1587
- import { jsx as jsx37 } from "react/jsx-runtime";
1588
- var DialogController = ({
1589
- children,
1590
- dismissable = true,
1591
- 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 = ({
1592
1598
  open,
1593
- onOpenChange
1599
+ dismissable,
1600
+ keyboardDismissable,
1601
+ ...rest
1594
1602
  }) => {
1595
- const state = useOverlayTriggerState({
1603
+ const props = {
1596
1604
  isOpen: open,
1597
- onOpenChange
1598
- });
1599
- const ctx = { open: state.isOpen, close: state.close };
1600
- return /* @__PURE__ */ jsx37(DialogContext.Provider, { value: ctx, children: /* @__PURE__ */ jsx37(Overlay, { open: state.isOpen, children: /* @__PURE__ */ jsx37(
1601
- Modal,
1602
- {
1603
- open: state.isOpen,
1604
- onClose: state.close,
1605
- dismissable,
1606
- keyboardDismissable,
1607
- children
1608
- }
1609
- ) }) });
1610
- };
1611
-
1612
- // src/Dialog/DialogTrigger.tsx
1613
- import { Children as Children4, useRef as useRef8 } from "react";
1614
- import { PressResponder } from "@react-aria/interactions";
1615
- import { useOverlayTriggerState as useOverlayTriggerState2 } from "@react-stately/overlays";
1616
- import { jsx as jsx38, jsxs as jsxs16 } from "react/jsx-runtime";
1617
- var DialogTrigger = ({
1618
- children,
1619
- dismissable = true,
1620
- keyboardDismissable = true
1621
- }) => {
1622
- const [dialogTrigger, dialog] = Children4.toArray(children);
1623
- const dialogTriggerRef = useRef8(null);
1624
- const state = useOverlayTriggerState2({});
1625
- const ctx = { open: state.isOpen, close: state.close };
1626
- return /* @__PURE__ */ jsxs16(DialogContext.Provider, { value: ctx, children: [
1627
- /* @__PURE__ */ jsx38(
1628
- PressResponder,
1629
- {
1630
- ref: dialogTriggerRef,
1631
- isPressed: state.isOpen,
1632
- onPress: state.toggle,
1633
- children: dialogTrigger
1634
- }
1635
- ),
1636
- /* @__PURE__ */ jsx38(Overlay, { open: state.isOpen, children: /* @__PURE__ */ jsx38(
1637
- 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,
1638
1615
  {
1639
- open: state.isOpen,
1640
- onClose: state.close,
1641
1616
  dismissable,
1642
1617
  keyboardDismissable,
1643
- children: dialog
1618
+ children: currentDialog
1644
1619
  }
1645
- ) })
1620
+ )
1646
1621
  ] });
1647
1622
  };
1648
1623
 
1649
1624
  // src/Dialog/Dialog.tsx
1650
- 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";
1651
1626
  var CloseButton = ({ className }) => {
1652
- const ref = useRef9(null);
1653
- const { close } = useDialogContext();
1654
- const { buttonProps } = useButton3(
1655
- {
1656
- onPress: () => close == null ? void 0 : close()
1657
- },
1658
- ref
1659
- );
1660
- 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(
1661
1629
  "button",
1662
1630
  {
1663
- className: cn21(
1631
+ className: cn22(
1664
1632
  "h-4 w-4 cursor-pointer border-none p-0 leading-normal outline-0",
1665
1633
  className
1666
1634
  ),
1667
- ref,
1668
- ...buttonProps,
1669
- 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(
1670
1637
  "path",
1671
1638
  {
1672
1639
  fillRule: "evenodd",
@@ -1677,66 +1644,74 @@ var CloseButton = ({ className }) => {
1677
1644
  }
1678
1645
  ) });
1679
1646
  };
1680
- var addTitleProps = (children, titleProps) => {
1681
- const childs = Children5.toArray(children);
1682
- const titleIndex = childs.findIndex(
1683
- (child) => isValidElement3(child) && (child.type === _Header || child.type === _Headline)
1684
- );
1685
- if (titleIndex < 0) {
1686
- console.warn(
1687
- "No child in <Dialog> found that can act as title for accessibility. Please add a <Header> or <Headline> as direct child."
1688
- );
1689
- return children;
1690
- }
1691
- const titleChild = cloneElement4(
1692
- childs[titleIndex],
1693
- titleProps
1694
- );
1695
- childs.splice(titleIndex, 1, titleChild);
1696
- return childs;
1697
- };
1698
- var Dialog = ({
1699
- children,
1647
+ var DialogHeadline = ({ children }) => /* @__PURE__ */ jsx38(_Headline, { slot: "title", children });
1648
+ var _Dialog = ({
1700
1649
  variant,
1701
1650
  size,
1702
1651
  closeButton,
1652
+ isNonModal,
1703
1653
  ...props
1704
1654
  }) => {
1705
- const ref = useRef9(null);
1706
- const { close } = useDialogContext();
1707
- const { dialogProps, titleProps } = useDialog(props, ref);
1708
1655
  const classNames2 = useClassNames19({ component: "Dialog", variant, size });
1709
- return /* @__PURE__ */ jsxs17("div", { className: classNames2.container, ...dialogProps, children: [
1710
- closeButton && /* @__PURE__ */ jsx39(CloseButton, { className: classNames2.closeButton }),
1711
- typeof children === "function" ? children({ close, titleProps }) : props["aria-labelledby"] ? children : addTitleProps(children, titleProps)
1712
- ] });
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
+ );
1713
1675
  };
1714
- Dialog.Trigger = DialogTrigger;
1715
- Dialog.Controller = DialogController;
1676
+ _Dialog.Trigger = _DialogTrigger;
1677
+ _Dialog.Headline = DialogHeadline;
1716
1678
 
1717
1679
  // src/Divider/Divider.tsx
1718
1680
  import { Separator } from "react-aria-components";
1719
1681
  import { useClassNames as useClassNames20 } from "@marigold/system";
1720
- import { jsx as jsx40 } from "react/jsx-runtime";
1682
+ import { jsx as jsx39 } from "react/jsx-runtime";
1721
1683
  var _Divider = ({ variant, ...props }) => {
1722
1684
  const classNames2 = useClassNames20({ component: "Divider", variant });
1723
- return /* @__PURE__ */ jsx40(Separator, { className: classNames2, ...props });
1685
+ return /* @__PURE__ */ jsx39(Separator, { className: classNames2, ...props });
1724
1686
  };
1725
1687
 
1726
1688
  // src/Footer/Footer.tsx
1727
1689
  import { useClassNames as useClassNames21 } from "@marigold/system";
1728
- import { jsx as jsx41 } from "react/jsx-runtime";
1690
+ import { jsx as jsx40 } from "react/jsx-runtime";
1729
1691
  var Footer = ({ children, variant, size, ...props }) => {
1730
1692
  const classNames2 = useClassNames21({ component: "Footer", variant, size });
1731
- 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 });
1732
1707
  };
1733
1708
 
1734
1709
  // src/Image/Image.tsx
1735
1710
  import {
1736
- cn as cn22,
1711
+ cn as cn23,
1737
1712
  objectFit,
1738
1713
  objectPosition,
1739
- useClassNames as useClassNames22
1714
+ useClassNames as useClassNames23
1740
1715
  } from "@marigold/system";
1741
1716
  import { jsx as jsx42 } from "react/jsx-runtime";
1742
1717
  var Image = ({
@@ -1746,13 +1721,13 @@ var Image = ({
1746
1721
  position = "none",
1747
1722
  ...props
1748
1723
  }) => {
1749
- const classNames2 = useClassNames22({ component: "Image", variant, size });
1724
+ const classNames2 = useClassNames23({ component: "Image", variant, size });
1750
1725
  return /* @__PURE__ */ jsx42(
1751
1726
  "img",
1752
1727
  {
1753
1728
  ...props,
1754
1729
  alt: props.alt,
1755
- className: cn22(
1730
+ className: cn23(
1756
1731
  fit !== "none" && "h-full w-full",
1757
1732
  classNames2,
1758
1733
  objectFit[fit],
@@ -1765,7 +1740,7 @@ var Image = ({
1765
1740
  // src/Inline/Inline.tsx
1766
1741
  import {
1767
1742
  alignment as alignment2,
1768
- cn as cn23,
1743
+ cn as cn24,
1769
1744
  gapSpace as gapSpace5
1770
1745
  } from "@marigold/system";
1771
1746
  import { jsx as jsx43 } from "react/jsx-runtime";
@@ -1782,7 +1757,7 @@ var Inline = ({
1782
1757
  "div",
1783
1758
  {
1784
1759
  ...props,
1785
- className: cn23(
1760
+ className: cn24(
1786
1761
  "flex flex-wrap",
1787
1762
  gapSpace5[space],
1788
1763
  alignX && ((_b2 = (_a2 = alignment2) == null ? void 0 : _a2.horizontal) == null ? void 0 : _b2.alignmentX[alignX]),
@@ -1795,29 +1770,29 @@ var Inline = ({
1795
1770
 
1796
1771
  // src/DateField/DateField.tsx
1797
1772
  import { createCalendar } from "@internationalized/date";
1798
- import { useRef as useRef11 } from "react";
1773
+ import { useRef as useRef9 } from "react";
1799
1774
  import { useDateField } from "@react-aria/datepicker";
1800
1775
  import { useFocusRing as useFocusRing4 } from "@react-aria/focus";
1801
1776
  import { useLocale } from "@react-aria/i18n";
1802
1777
  import { useHover as useHover2 } from "@react-aria/interactions";
1803
- import { mergeProps as mergeProps7 } from "@react-aria/utils";
1778
+ import { mergeProps as mergeProps6 } from "@react-aria/utils";
1804
1779
  import { useDateFieldState } from "@react-stately/datepicker";
1805
- 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";
1806
1781
 
1807
1782
  // src/DateField/DateSegment.tsx
1808
- import { useRef as useRef10 } from "react";
1783
+ import { useRef as useRef8 } from "react";
1809
1784
  import { useDateSegment } from "@react-aria/datepicker";
1810
1785
  import { useFocusRing as useFocusRing3 } from "@react-aria/focus";
1811
- import { mergeProps as mergeProps6 } from "@react-aria/utils";
1812
- import { cn as cn24, useStateProps as useStateProps4 } from "@marigold/system";
1813
- 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";
1814
1789
  var DateSegment = ({
1815
1790
  className,
1816
1791
  segment,
1817
1792
  state,
1818
1793
  isPrevPlaceholder
1819
1794
  }) => {
1820
- const ref = useRef10(null);
1795
+ const ref = useRef8(null);
1821
1796
  const { segmentProps } = useDateSegment(segment, state, ref);
1822
1797
  const { focusProps, isFocused } = useFocusRing3({
1823
1798
  within: true,
@@ -1828,12 +1803,12 @@ var DateSegment = ({
1828
1803
  focusVisible: isFocused
1829
1804
  });
1830
1805
  const { isPlaceholder, placeholder, text, type, maxValue } = segment;
1831
- return /* @__PURE__ */ jsxs18(
1806
+ return /* @__PURE__ */ jsxs17(
1832
1807
  "div",
1833
1808
  {
1834
- ...mergeProps6(segmentProps, stateProps, focusProps),
1809
+ ...mergeProps5(segmentProps, stateProps, focusProps),
1835
1810
  ref,
1836
- className: cn24(
1811
+ className: cn25(
1837
1812
  "group/segment",
1838
1813
  "text-center leading-none outline-0",
1839
1814
  type !== "literal" && "p-0.5",
@@ -1848,7 +1823,7 @@ var DateSegment = ({
1848
1823
  "span",
1849
1824
  {
1850
1825
  "aria-hidden": "true",
1851
- className: cn24(
1826
+ className: cn25(
1852
1827
  isPlaceholder ? "visible block" : "invisible hidden",
1853
1828
  "pointer-events-none w-full text-center"
1854
1829
  ),
@@ -1862,7 +1837,7 @@ var DateSegment = ({
1862
1837
  };
1863
1838
 
1864
1839
  // src/DateField/DateField.tsx
1865
- import { jsx as jsx45, jsxs as jsxs19 } from "react/jsx-runtime";
1840
+ import { jsx as jsx45, jsxs as jsxs18 } from "react/jsx-runtime";
1866
1841
  var DateField = ({
1867
1842
  disabled,
1868
1843
  readOnly,
@@ -1891,13 +1866,13 @@ var DateField = ({
1891
1866
  locale,
1892
1867
  createCalendar
1893
1868
  });
1894
- const ref = useRef11(null);
1869
+ const ref = useRef9(null);
1895
1870
  const { fieldProps, labelProps, descriptionProps } = useDateField(
1896
1871
  props,
1897
1872
  state,
1898
1873
  ref
1899
1874
  );
1900
- const classNames2 = useClassNames23({ component: "DateField", variant, size });
1875
+ const classNames2 = useClassNames24({ component: "DateField", variant, size });
1901
1876
  const { focusProps, isFocused } = useFocusRing4({
1902
1877
  within: true,
1903
1878
  isTextInput: true,
@@ -1927,11 +1902,11 @@ var DateField = ({
1927
1902
  variant,
1928
1903
  size,
1929
1904
  width,
1930
- children: /* @__PURE__ */ jsxs19(
1905
+ children: /* @__PURE__ */ jsxs18(
1931
1906
  "div",
1932
1907
  {
1933
- ...mergeProps7(fieldProps, focusProps, stateProps, hoverProps),
1934
- className: cn25(
1908
+ ...mergeProps6(fieldProps, focusProps, stateProps, hoverProps),
1909
+ className: cn26(
1935
1910
  "relative flex flex-row flex-nowrap",
1936
1911
  "cursor-text aria-disabled:cursor-not-allowed",
1937
1912
  classNames2.field
@@ -1956,7 +1931,7 @@ var DateField = ({
1956
1931
  "svg",
1957
1932
  {
1958
1933
  "data-testid": "action",
1959
- className: cn25(classNames2.action),
1934
+ className: cn26(classNames2.action),
1960
1935
  viewBox: "0 0 24 24",
1961
1936
  width: 24,
1962
1937
  height: 24,
@@ -1972,14 +1947,14 @@ var DateField = ({
1972
1947
 
1973
1948
  // src/Calendar/Calendar.tsx
1974
1949
  import { createCalendar as createCalendar2 } from "@internationalized/date";
1975
- import { useRef as useRef14, useState } from "react";
1950
+ import { useRef as useRef12, useState } from "react";
1976
1951
  import {
1977
1952
  useCalendar
1978
1953
  } from "@react-aria/calendar";
1979
1954
  import { useDateFormatter as useDateFormatter3, useLocale as useLocale3 } from "@react-aria/i18n";
1980
1955
  import { useCalendarState } from "@react-stately/calendar";
1981
1956
  import { ChevronDown as ChevronDown2, ChevronLeft, ChevronRight } from "@marigold/icons";
1982
- 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";
1983
1958
 
1984
1959
  // src/Calendar/CalendarGrid.tsx
1985
1960
  import { getWeeksInMonth, startOfWeek, today } from "@internationalized/date";
@@ -1989,17 +1964,17 @@ import { useLocale as useLocale2 } from "@react-aria/i18n";
1989
1964
  import { useDateFormatter } from "@react-aria/i18n";
1990
1965
 
1991
1966
  // src/Calendar/CalendarCell.tsx
1992
- import { useRef as useRef12 } from "react";
1967
+ import { useRef as useRef10 } from "react";
1993
1968
  import { useCalendarCell } from "@react-aria/calendar";
1994
1969
  import { useHover as useHover3 } from "@react-aria/interactions";
1995
- import { mergeProps as mergeProps8 } from "@react-aria/utils";
1996
- 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";
1997
1972
  import { jsx as jsx46 } from "react/jsx-runtime";
1998
1973
  var CalendarCell = (props) => {
1999
- const ref = useRef12(null);
1974
+ const ref = useRef10(null);
2000
1975
  const { state } = props;
2001
1976
  let { cellProps, buttonProps, formattedDate, isOutsideVisibleRange } = useCalendarCell(props, state, ref);
2002
- const classNames2 = useClassNames24({
1977
+ const classNames2 = useClassNames25({
2003
1978
  component: "Calendar"
2004
1979
  });
2005
1980
  const isDisabled = cellProps["aria-disabled"];
@@ -2014,20 +1989,20 @@ var CalendarCell = (props) => {
2014
1989
  return /* @__PURE__ */ jsx46("td", { className: "group/cell", ...cellProps, children: /* @__PURE__ */ jsx46(
2015
1990
  "div",
2016
1991
  {
2017
- className: cn26(
1992
+ className: cn27(
2018
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",
2019
1994
  classNames2.calendarCell
2020
1995
  ),
2021
1996
  hidden: isOutsideVisibleRange,
2022
1997
  ref,
2023
- ...mergeProps8(buttonProps, stateProps, hoverProps),
1998
+ ...mergeProps7(buttonProps, stateProps, hoverProps),
2024
1999
  children: formattedDate
2025
2000
  }
2026
2001
  ) });
2027
2002
  };
2028
2003
 
2029
2004
  // src/Calendar/CalendarGrid.tsx
2030
- import { jsx as jsx47, jsxs as jsxs20 } from "react/jsx-runtime";
2005
+ import { jsx as jsx47, jsxs as jsxs19 } from "react/jsx-runtime";
2031
2006
  var CalendarGrid = ({ state, ...props }) => {
2032
2007
  const { locale } = useLocale2();
2033
2008
  const { gridProps, headerProps } = useCalendarGrid(props, state);
@@ -2047,7 +2022,7 @@ var CalendarGrid = ({ state, ...props }) => {
2047
2022
  return dayFormatter.format(dateDay);
2048
2023
  });
2049
2024
  }, [locale, state.timeZone, dayFormatter]);
2050
- return /* @__PURE__ */ jsxs20(
2025
+ return /* @__PURE__ */ jsxs19(
2051
2026
  "table",
2052
2027
  {
2053
2028
  className: "w-full border-spacing-[6px]",
@@ -2108,7 +2083,7 @@ var MonthDropdown = ({
2108
2083
  var MonthDropdown_default = MonthDropdown;
2109
2084
 
2110
2085
  // src/Calendar/YearDropdown.tsx
2111
- import { useEffect as useEffect2, useRef as useRef13 } from "react";
2086
+ import { useEffect as useEffect2, useRef as useRef11 } from "react";
2112
2087
  import { useDateFormatter as useDateFormatter2 } from "@react-aria/i18n";
2113
2088
  import { jsx as jsx49 } from "react/jsx-runtime";
2114
2089
  var YearDropdown = ({ state, setSelectedDropdown }) => {
@@ -2124,7 +2099,7 @@ var YearDropdown = ({ state, setSelectedDropdown }) => {
2124
2099
  formatted: formatter.format(date.toDate(state.timeZone))
2125
2100
  });
2126
2101
  }
2127
- const activeButtonRef = useRef13(null);
2102
+ const activeButtonRef = useRef11(null);
2128
2103
  useEffect2(() => {
2129
2104
  if (activeButtonRef.current) {
2130
2105
  const activeButton = activeButtonRef.current;
@@ -2175,7 +2150,7 @@ var YearDropdown = ({ state, setSelectedDropdown }) => {
2175
2150
  var YearDropdown_default = YearDropdown;
2176
2151
 
2177
2152
  // src/Calendar/Calendar.tsx
2178
- import { Fragment as Fragment6, 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";
2179
2154
  var buttonStyles = "flex items-center justify-between gap-1 overflow-hidden";
2180
2155
  var Calendar = ({
2181
2156
  disabled,
@@ -2195,7 +2170,7 @@ var Calendar = ({
2195
2170
  locale,
2196
2171
  createCalendar: createCalendar2
2197
2172
  });
2198
- const ref = useRef14(null);
2173
+ const ref = useRef12(null);
2199
2174
  const { calendarProps, prevButtonProps, nextButtonProps } = useCalendar(
2200
2175
  props,
2201
2176
  state
@@ -2214,8 +2189,8 @@ var Calendar = ({
2214
2189
  disabled: state.isDisabled,
2215
2190
  focusVisible: state.isFocused
2216
2191
  });
2217
- const classNames2 = useClassNames25({ component: "Calendar" });
2218
- const { select: selectClassNames } = useClassNames25({ component: "Select" });
2192
+ const classNames2 = useClassNames26({ component: "Calendar" });
2193
+ const { select: selectClassNames } = useClassNames26({ component: "Select" });
2219
2194
  const [selectedDropdown, setSelectedDropdown] = useState();
2220
2195
  let months = [];
2221
2196
  let formatter = useDateFormatter3({
@@ -2235,7 +2210,7 @@ var Calendar = ({
2235
2210
  "div",
2236
2211
  {
2237
2212
  tabIndex: -1,
2238
- className: cn27(
2213
+ className: cn28(
2239
2214
  "flex min-h-[350px] w-[360px] flex-col rounded-sm p-4 shadow-[0_4px_4px_rgba(165,165,165,0.25)]",
2240
2215
  classNames2.calendar
2241
2216
  ),
@@ -2255,15 +2230,15 @@ var Calendar = ({
2255
2230
  setSelectedDropdown,
2256
2231
  state
2257
2232
  }
2258
- ) : /* @__PURE__ */ jsxs21(Fragment6, { children: [
2259
- /* @__PURE__ */ jsxs21("div", { className: "mb-4 flex items-center justify-between", children: [
2260
- /* @__PURE__ */ jsxs21("div", { className: "flex w-full gap-4", children: [
2261
- /* @__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(
2262
2237
  "button",
2263
2238
  {
2264
2239
  disabled: state.isDisabled,
2265
2240
  onClick: () => setSelectedDropdown("month"),
2266
- className: cn27(buttonStyles, selectClassNames),
2241
+ className: cn28(buttonStyles, selectClassNames),
2267
2242
  "data-testid": "month",
2268
2243
  children: [
2269
2244
  selectedValue.month,
@@ -2271,12 +2246,12 @@ var Calendar = ({
2271
2246
  ]
2272
2247
  }
2273
2248
  ),
2274
- /* @__PURE__ */ jsxs21(
2249
+ /* @__PURE__ */ jsxs20(
2275
2250
  "button",
2276
2251
  {
2277
2252
  disabled: state.isDisabled,
2278
2253
  onClick: () => setSelectedDropdown("year"),
2279
- className: cn27(buttonStyles, selectClassNames),
2254
+ className: cn28(buttonStyles, selectClassNames),
2280
2255
  "data-testid": "year",
2281
2256
  children: [
2282
2257
  selectedValue.year,
@@ -2285,10 +2260,10 @@ var Calendar = ({
2285
2260
  }
2286
2261
  )
2287
2262
  ] }),
2288
- /* @__PURE__ */ jsxs21(
2263
+ /* @__PURE__ */ jsxs20(
2289
2264
  "div",
2290
2265
  {
2291
- className: cn27(
2266
+ className: cn28(
2292
2267
  "flex w-full flex-nowrap justify-end gap-[10px] [&_button:disabled]:cursor-not-allowed [&_button]:px-2 [&_button]:py-1",
2293
2268
  classNames2.calendarControllers
2294
2269
  ),
@@ -2306,12 +2281,12 @@ var Calendar = ({
2306
2281
  };
2307
2282
 
2308
2283
  // src/DatePicker/DatePicker.tsx
2309
- import { useRef as useRef15 } from "react";
2284
+ import { useRef as useRef13 } from "react";
2310
2285
  import { useDatePicker } from "@react-aria/datepicker";
2311
- import { mergeProps as mergeProps9 } from "@react-aria/utils";
2286
+ import { mergeProps as mergeProps8 } from "@react-aria/utils";
2312
2287
  import { useDatePickerState } from "@react-stately/datepicker";
2313
- import { useClassNames as useClassNames26, useStateProps as useStateProps8 } from "@marigold/system";
2314
- import { Fragment as Fragment7, 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";
2315
2290
  var DatePicker = ({
2316
2291
  disabled,
2317
2292
  required,
@@ -2335,7 +2310,7 @@ var DatePicker = ({
2335
2310
  shouldCloseOnSelect,
2336
2311
  ...props
2337
2312
  });
2338
- const ref = useRef15(null);
2313
+ const ref = useRef13(null);
2339
2314
  const stateProps = useStateProps8({
2340
2315
  focus: state.isOpen
2341
2316
  });
@@ -2345,12 +2320,12 @@ var DatePicker = ({
2345
2320
  ref
2346
2321
  );
2347
2322
  const { isDisabled, errorMessage, description, label } = props;
2348
- const classNames2 = useClassNames26({
2323
+ const classNames2 = useClassNames27({
2349
2324
  component: "DatePicker",
2350
2325
  size,
2351
2326
  variant
2352
2327
  });
2353
- return /* @__PURE__ */ jsxs22(Fragment7, { children: [
2328
+ return /* @__PURE__ */ jsxs21(Fragment7, { children: [
2354
2329
  /* @__PURE__ */ jsx51("div", { className: "flex w-full min-w-[300px]", ...groupProps, children: /* @__PURE__ */ jsx51(
2355
2330
  DateField,
2356
2331
  {
@@ -2367,7 +2342,7 @@ var DatePicker = ({
2367
2342
  action: /* @__PURE__ */ jsx51("div", { className: classNames2.container, children: /* @__PURE__ */ jsx51(
2368
2343
  _Button,
2369
2344
  {
2370
- ...mergeProps9(buttonProps, stateProps),
2345
+ ...mergeProps8(buttonProps, stateProps),
2371
2346
  disabled: isDisabled,
2372
2347
  children: /* @__PURE__ */ jsx51(
2373
2348
  "svg",
@@ -2389,7 +2364,7 @@ var DatePicker = ({
2389
2364
 
2390
2365
  // src/Inset/Inset.tsx
2391
2366
  import {
2392
- cn as cn28,
2367
+ cn as cn29,
2393
2368
  paddingSpace as paddingSpace2,
2394
2369
  paddingSpaceX as paddingSpaceX2,
2395
2370
  paddingSpaceY as paddingSpaceY2
@@ -2398,7 +2373,7 @@ import { jsx as jsx52 } from "react/jsx-runtime";
2398
2373
  var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx52(
2399
2374
  "div",
2400
2375
  {
2401
- className: cn28(
2376
+ className: cn29(
2402
2377
  space && paddingSpace2[space],
2403
2378
  !space && spaceX && paddingSpaceX2[spaceX],
2404
2379
  !space && spaceY && paddingSpaceY2[spaceY]
@@ -2410,11 +2385,11 @@ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx52(
2410
2385
  // src/Link/Link.tsx
2411
2386
  import { forwardRef as forwardRef11 } from "react";
2412
2387
  import { Link } from "react-aria-components";
2413
- import { useClassNames as useClassNames27 } from "@marigold/system";
2388
+ import { useClassNames as useClassNames28 } from "@marigold/system";
2414
2389
  import { jsx as jsx53 } from "react/jsx-runtime";
2415
2390
  var _Link = forwardRef11(
2416
2391
  ({ variant, size, disabled, children, ...props }, ref) => {
2417
- const classNames2 = useClassNames27({
2392
+ const classNames2 = useClassNames28({
2418
2393
  component: "Link",
2419
2394
  variant,
2420
2395
  size
@@ -2424,11 +2399,11 @@ var _Link = forwardRef11(
2424
2399
  );
2425
2400
 
2426
2401
  // src/List/List.tsx
2427
- import { useClassNames as useClassNames28 } from "@marigold/system";
2402
+ import { useClassNames as useClassNames29 } from "@marigold/system";
2428
2403
 
2429
2404
  // src/List/Context.ts
2430
- import { createContext as createContext4, useContext as useContext4 } from "react";
2431
- var ListContext = createContext4({});
2405
+ import { createContext as createContext3, useContext as useContext4 } from "react";
2406
+ var ListContext = createContext3({});
2432
2407
  var useListContext = () => useContext4(ListContext);
2433
2408
 
2434
2409
  // src/List/ListItem.tsx
@@ -2448,32 +2423,32 @@ var List = ({
2448
2423
  ...props
2449
2424
  }) => {
2450
2425
  const Component = as;
2451
- const classNames2 = useClassNames28({ component: "List", variant, size });
2426
+ const classNames2 = useClassNames29({ component: "List", variant, size });
2452
2427
  return /* @__PURE__ */ jsx55(Component, { ...props, className: classNames2[as], children: /* @__PURE__ */ jsx55(ListContext.Provider, { value: { classNames: classNames2.item }, children }) });
2453
2428
  };
2454
2429
  List.Item = ListItem;
2455
2430
 
2456
2431
  // src/Menu/Menu.tsx
2457
- import { useRef as useRef18 } from "react";
2432
+ import { useRef as useRef16 } from "react";
2458
2433
  import { useMenu } from "@react-aria/menu";
2459
2434
  import { useSyncRef } from "@react-aria/utils";
2460
2435
  import { Item as Item4, Section } from "@react-stately/collections";
2461
2436
  import { useTreeState as useTreeState2 } from "@react-stately/tree";
2462
- import { useClassNames as useClassNames30 } from "@marigold/system";
2437
+ import { useClassNames as useClassNames31 } from "@marigold/system";
2463
2438
 
2464
2439
  // src/Menu/Context.ts
2465
2440
  import {
2466
- createContext as createContext5,
2441
+ createContext as createContext4,
2467
2442
  useContext as useContext5
2468
2443
  } from "react";
2469
- var MenuContext = createContext5({});
2444
+ var MenuContext = createContext4({});
2470
2445
  var useMenuContext = () => useContext5(MenuContext);
2471
2446
 
2472
2447
  // src/Menu/MenuItem.tsx
2473
- import { useRef as useRef16 } from "react";
2448
+ import { useRef as useRef14 } from "react";
2474
2449
  import { useFocusRing as useFocusRing5 } from "@react-aria/focus";
2475
2450
  import { useMenuItem } from "@react-aria/menu";
2476
- import { mergeProps as mergeProps10 } from "@react-aria/utils";
2451
+ import { mergeProps as mergeProps9 } from "@react-aria/utils";
2477
2452
  import { useStateProps as useStateProps9 } from "@marigold/system";
2478
2453
  import { jsx as jsx56 } from "react/jsx-runtime";
2479
2454
  var MenuItem = ({
@@ -2482,7 +2457,7 @@ var MenuItem = ({
2482
2457
  onAction,
2483
2458
  className
2484
2459
  }) => {
2485
- const ref = useRef16(null);
2460
+ const ref = useRef14(null);
2486
2461
  const { onClose } = useMenuContext();
2487
2462
  const { menuItemProps } = useMenuItem(
2488
2463
  {
@@ -2503,7 +2478,7 @@ var MenuItem = ({
2503
2478
  {
2504
2479
  ref,
2505
2480
  className,
2506
- ...mergeProps10(
2481
+ ...mergeProps9(
2507
2482
  props,
2508
2483
  { onPointerDown: onPointerUp },
2509
2484
  stateProps,
@@ -2516,17 +2491,17 @@ var MenuItem = ({
2516
2491
 
2517
2492
  // src/Menu/MenuSection.tsx
2518
2493
  import { useMenuSection } from "@react-aria/menu";
2519
- import { useClassNames as useClassNames29 } from "@marigold/system";
2520
- import { Fragment as Fragment8, 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";
2521
2496
  var MenuSection = ({ onAction, item, state }) => {
2522
2497
  let { itemProps, headingProps, groupProps } = useMenuSection({
2523
2498
  heading: item.rendered,
2524
2499
  "aria-label": item["aria-label"]
2525
2500
  });
2526
- const className = useClassNames29({ component: "Menu" });
2527
- return /* @__PURE__ */ jsxs23(Fragment8, { children: [
2501
+ const className = useClassNames30({ component: "Menu" });
2502
+ return /* @__PURE__ */ jsxs22(Fragment8, { children: [
2528
2503
  item.key !== state.collection.getFirstKey() && /* @__PURE__ */ jsx57("li", { children: /* @__PURE__ */ jsx57(_Divider, { variant: "section" }) }),
2529
- /* @__PURE__ */ jsxs23("li", { ...itemProps, children: [
2504
+ /* @__PURE__ */ jsxs22("li", { ...itemProps, children: [
2530
2505
  item.rendered && /* @__PURE__ */ jsx57("span", { ...headingProps, className: className.section, children: item.rendered }),
2531
2506
  /* @__PURE__ */ jsx57("ul", { ...groupProps, className: "pb-1", children: [...item.props.children].map((node) => /* @__PURE__ */ jsx57(
2532
2507
  MenuItem,
@@ -2544,22 +2519,22 @@ var MenuSection = ({ onAction, item, state }) => {
2544
2519
  var MenuSection_default = MenuSection;
2545
2520
 
2546
2521
  // src/Menu/MenuTrigger.tsx
2547
- import { Children as Children6, useRef as useRef17 } from "react";
2548
- 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";
2549
2524
  import { useMenuTrigger } from "@react-aria/menu";
2550
- import { useObjectRef as useObjectRef4 } from "@react-aria/utils";
2525
+ import { useObjectRef as useObjectRef3 } from "@react-aria/utils";
2551
2526
  import { useMenuTriggerState } from "@react-stately/menu";
2552
2527
  import { useSmallScreen } from "@marigold/system";
2553
- import { jsx as jsx58, jsxs as jsxs24 } from "react/jsx-runtime";
2528
+ import { jsx as jsx58, jsxs as jsxs23 } from "react/jsx-runtime";
2554
2529
  var MenuTrigger = ({
2555
2530
  disabled,
2556
2531
  open,
2557
2532
  onOpenChange,
2558
2533
  children
2559
2534
  }) => {
2560
- const [menuTrigger, menu] = Children6.toArray(children);
2561
- const menuTriggerRef = useRef17(null);
2562
- const menuRef = useObjectRef4();
2535
+ const [menuTrigger, menu] = Children5.toArray(children);
2536
+ const menuTriggerRef = useRef15(null);
2537
+ const menuRef = useObjectRef3();
2563
2538
  const state = useMenuTriggerState({
2564
2539
  isOpen: open,
2565
2540
  onOpenChange
@@ -2577,9 +2552,9 @@ var MenuTrigger = ({
2577
2552
  autoFocus: state.focusStrategy
2578
2553
  };
2579
2554
  const isSmallScreen = useSmallScreen();
2580
- return /* @__PURE__ */ jsxs24(MenuContext.Provider, { value: menuContext, children: [
2555
+ return /* @__PURE__ */ jsxs23(MenuContext.Provider, { value: menuContext, children: [
2581
2556
  /* @__PURE__ */ jsx58(
2582
- PressResponder2,
2557
+ PressResponder,
2583
2558
  {
2584
2559
  ...menuTriggerProps,
2585
2560
  ref: menuTriggerRef,
@@ -2596,11 +2571,11 @@ import { jsx as jsx59 } from "react/jsx-runtime";
2596
2571
  var Menu = ({ variant, size, ...props }) => {
2597
2572
  const { ref: scrollRef, ...menuContext } = useMenuContext();
2598
2573
  const ownProps = { ...props, ...menuContext };
2599
- const ref = useRef18(null);
2574
+ const ref = useRef16(null);
2600
2575
  const state = useTreeState2({ ...ownProps, selectionMode: "none" });
2601
2576
  const { menuProps } = useMenu(ownProps, state, ref);
2602
2577
  useSyncRef({ ref: scrollRef }, ref);
2603
- const classNames2 = useClassNames30({ component: "Menu", variant, size });
2578
+ const classNames2 = useClassNames31({ component: "Menu", variant, size });
2604
2579
  return /* @__PURE__ */ jsx59("ul", { ref, className: classNames2.container, ...menuProps, children: [...state.collection].map((item) => {
2605
2580
  if (item.type === "section") {
2606
2581
  return /* @__PURE__ */ jsx59(
@@ -2631,18 +2606,34 @@ Menu.Section = Section;
2631
2606
 
2632
2607
  // src/Menu/ActionMenu.tsx
2633
2608
  import { SVG as SVG5 } from "@marigold/system";
2634
- import { jsx as jsx60, jsxs as jsxs25 } from "react/jsx-runtime";
2609
+ import { jsx as jsx60, jsxs as jsxs24 } from "react/jsx-runtime";
2635
2610
  var ActionMenu = (props) => {
2636
- return /* @__PURE__ */ jsxs25(Menu.Trigger, { children: [
2611
+ return /* @__PURE__ */ jsxs24(Menu.Trigger, { children: [
2637
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" }) }) }),
2638
2613
  /* @__PURE__ */ jsx60(Menu, { ...props })
2639
2614
  ] });
2640
2615
  };
2641
2616
 
2642
2617
  // src/Message/Message.tsx
2643
- import { cn as cn29, useClassNames as useClassNames31 } from "@marigold/system";
2644
- 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";
2645
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
+ ),
2646
2637
  info: () => /* @__PURE__ */ jsx61(
2647
2638
  "svg",
2648
2639
  {
@@ -2699,57 +2690,108 @@ var Message = ({
2699
2690
  children,
2700
2691
  ...props
2701
2692
  }) => {
2702
- const classNames2 = useClassNames31({ component: "Message", variant, size });
2693
+ const classNames2 = useClassNames32({ component: "Message", variant, size });
2703
2694
  const Icon3 = icons[variant];
2704
- return /* @__PURE__ */ jsxs26(
2695
+ return /* @__PURE__ */ jsxs25(
2705
2696
  "div",
2706
2697
  {
2707
- className: cn29(
2698
+ className: cn30(
2708
2699
  "grid auto-rows-min grid-cols-[min-content_auto] gap-1",
2709
2700
  classNames2.container
2710
2701
  ),
2711
2702
  ...props,
2712
2703
  children: [
2713
- /* @__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, {}) }),
2714
2705
  /* @__PURE__ */ jsx61(
2715
2706
  "div",
2716
2707
  {
2717
- 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),
2718
2709
  children: messageTitle
2719
2710
  }
2720
2711
  ),
2721
- /* @__PURE__ */ jsx61("div", { className: cn29("col-start-2", classNames2.content), children })
2712
+ /* @__PURE__ */ jsx61("div", { className: cn30("col-start-2", classNames2.content), children })
2722
2713
  ]
2723
2714
  }
2724
2715
  );
2725
2716
  };
2726
2717
 
2727
2718
  // src/NumberField/NumberField.tsx
2728
- import { forwardRef as forwardRef12 } from "react";
2729
- import { useFocusRing as useFocusRing6 } from "@react-aria/focus";
2730
- import { useLocale as useLocale4 } from "@react-aria/i18n";
2731
- import { useHover as useHover5 } from "@react-aria/interactions";
2732
- import { useNumberField } from "@react-aria/numberfield";
2733
- import { mergeProps as mergeProps12, useObjectRef as useObjectRef5 } from "@react-aria/utils";
2734
- import { useNumberFieldState } from "@react-stately/numberfield";
2735
- 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";
2736
2722
 
2737
- // src/NumberField/StepButton.tsx
2738
- import { useRef as useRef19 } from "react";
2739
- import { useButton as useButton4 } from "@react-aria/button";
2740
- import { useHover as useHover4 } from "@react-aria/interactions";
2741
- import { mergeProps as mergeProps11 } from "@react-aria/utils";
2742
- import { cn as cn30, useStateProps as useStateProps10 } from "@marigold/system";
2743
- import { jsx as jsx62 } from "react/jsx-runtime";
2744
- var Plus = () => /* @__PURE__ */ jsx62("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx62(
2745
- "path",
2746
- {
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
+ {
2747
2789
  fillRule: "evenodd",
2748
2790
  clipRule: "evenodd",
2749
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"
2750
2792
  }
2751
2793
  ) });
2752
- var Minus = () => /* @__PURE__ */ jsx62("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx62(
2794
+ var Minus = () => /* @__PURE__ */ jsx63("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx63(
2753
2795
  "path",
2754
2796
  {
2755
2797
  fillRule: "evenodd",
@@ -2757,47 +2799,30 @@ var Minus = () => /* @__PURE__ */ jsx62("svg", { width: 16, height: 16, viewBox:
2757
2799
  d: "M3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
2758
2800
  }
2759
2801
  ) });
2760
- var StepButton = ({
2761
- direction,
2762
- className,
2763
- ...props
2764
- }) => {
2765
- const ref = useRef19(null);
2766
- const { buttonProps, isPressed } = useButton4(
2767
- { ...props, elementType: "div" },
2768
- ref
2769
- );
2770
- const { hoverProps, isHovered } = useHover4(props);
2771
- const stateProps = useStateProps10({
2772
- active: isPressed,
2773
- hover: isHovered,
2774
- disabled: props.isDisabled
2775
- });
2802
+ var _StepButton = ({ direction, className, ...props }) => {
2776
2803
  const Icon3 = direction === "up" ? Plus : Minus;
2777
- return /* @__PURE__ */ jsx62(
2778
- "div",
2804
+ return /* @__PURE__ */ jsx63(
2805
+ Button2,
2779
2806
  {
2780
- className: cn30(
2807
+ className: cn32(
2781
2808
  [
2782
2809
  "flex items-center justify-center",
2783
2810
  "cursor-pointer data-[disabled]:cursor-not-allowed"
2784
2811
  ],
2785
2812
  className
2786
2813
  ),
2787
- ...mergeProps11(buttonProps, hoverProps),
2788
- ...stateProps,
2789
- children: /* @__PURE__ */ jsx62(Icon3, {})
2814
+ ...props,
2815
+ children: /* @__PURE__ */ jsx63(Icon3, {})
2790
2816
  }
2791
2817
  );
2792
2818
  };
2793
2819
 
2794
2820
  // src/NumberField/NumberField.tsx
2795
- import { jsx as jsx63, jsxs as jsxs27 } from "react/jsx-runtime";
2796
- var NumberField = forwardRef12(
2821
+ import { jsx as jsx64, jsxs as jsxs27 } from "react/jsx-runtime";
2822
+ var _NumberField = forwardRef13(
2797
2823
  ({
2798
2824
  variant,
2799
2825
  size,
2800
- width,
2801
2826
  disabled,
2802
2827
  required,
2803
2828
  readOnly,
@@ -2805,140 +2830,87 @@ var NumberField = forwardRef12(
2805
2830
  hideStepper,
2806
2831
  ...rest
2807
2832
  }, ref) => {
2833
+ const classNames2 = useClassNames34({
2834
+ component: "NumberField",
2835
+ size,
2836
+ variant
2837
+ });
2808
2838
  const props = {
2809
2839
  isDisabled: disabled,
2810
- isRequired: required,
2811
2840
  isReadOnly: readOnly,
2812
- validationState: error ? "invalid" : "valid",
2841
+ isInvalid: error,
2842
+ isRequired: required,
2813
2843
  ...rest
2814
2844
  };
2815
2845
  const showStepper = !hideStepper;
2816
- const { locale } = useLocale4();
2817
- const inputRef = useObjectRef5(ref);
2818
- const state = useNumberFieldState({ ...props, locale });
2819
- const {
2820
- labelProps,
2821
- groupProps,
2822
- inputProps,
2823
- descriptionProps,
2824
- errorMessageProps,
2825
- incrementButtonProps,
2826
- decrementButtonProps
2827
- } = useNumberField(props, state, inputRef);
2828
- const { hoverProps, isHovered } = useHover5({ isDisabled: disabled });
2829
- const { focusProps, isFocused } = useFocusRing6({
2830
- within: true,
2831
- isTextInput: true,
2832
- autoFocus: props.autoFocus
2833
- });
2834
- const stateProps = useStateProps11({
2835
- hover: isHovered,
2836
- focus: isFocused,
2837
- disabled,
2838
- error,
2839
- readOnly,
2840
- required
2841
- });
2842
- const classNames2 = useClassNames32({
2843
- component: "NumberField",
2844
- size,
2845
- variant
2846
- });
2847
- return /* @__PURE__ */ jsx63(
2848
- FieldBase,
2849
- {
2850
- label: props.label,
2851
- labelProps,
2852
- description: props.description,
2853
- descriptionProps,
2854
- error,
2855
- errorMessage: props.errorMessage,
2856
- errorMessageProps,
2857
- stateProps,
2858
- variant,
2859
- size,
2860
- width,
2861
- children: /* @__PURE__ */ jsxs27(
2862
- "div",
2863
- {
2864
- "data-group": true,
2865
- className: cn31("flex items-stretch", classNames2.group),
2866
- "data-testid": "number-field-container",
2867
- ...mergeProps12(groupProps, focusProps, hoverProps),
2868
- ...stateProps,
2869
- children: [
2870
- showStepper && /* @__PURE__ */ jsx63(
2871
- StepButton,
2872
- {
2873
- className: classNames2.stepper,
2874
- direction: "down",
2875
- ...decrementButtonProps
2876
- }
2877
- ),
2878
- /* @__PURE__ */ jsx63("div", { className: "flex-1", children: /* @__PURE__ */ jsx63(
2879
- Input,
2880
- {
2881
- ref: inputRef,
2882
- variant,
2883
- size,
2884
- ...inputProps,
2885
- ...stateProps
2886
- }
2887
- ) }),
2888
- showStepper && /* @__PURE__ */ jsx63(
2889
- StepButton,
2890
- {
2891
- className: classNames2.stepper,
2892
- direction: "up",
2893
- ...incrementButtonProps
2894
- }
2895
- )
2896
- ]
2897
- }
2898
- )
2899
- }
2900
- );
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
+ ] }) });
2901
2873
  }
2902
2874
  );
2903
2875
 
2904
2876
  // src/Provider/index.ts
2905
- import { useTheme as useTheme4, ThemeProvider as ThemeProvider2 } from "@marigold/system";
2877
+ import { useTheme as useTheme5, ThemeProvider as ThemeProvider2 } from "@marigold/system";
2906
2878
 
2907
2879
  // src/Provider/MarigoldProvider.tsx
2908
2880
  import { OverlayProvider } from "@react-aria/overlays";
2909
2881
  import {
2910
2882
  ThemeProvider,
2911
2883
  defaultTheme,
2912
- useTheme as useTheme3
2884
+ useTheme as useTheme4
2913
2885
  } from "@marigold/system";
2914
- import { jsx as jsx64 } from "react/jsx-runtime";
2886
+ import { jsx as jsx65 } from "react/jsx-runtime";
2915
2887
  function MarigoldProvider({
2916
2888
  children,
2917
2889
  theme
2918
2890
  }) {
2919
- const outerTheme = useTheme3();
2891
+ const outerTheme = useTheme4();
2920
2892
  const isTopLevel = outerTheme === defaultTheme;
2921
- 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 });
2922
2894
  }
2923
2895
 
2924
2896
  // src/Radio/Radio.tsx
2925
2897
  import {
2926
- forwardRef as forwardRef13
2898
+ forwardRef as forwardRef14
2927
2899
  } from "react";
2928
2900
  import { Radio } from "react-aria-components";
2929
- import { cn as cn33, useClassNames as useClassNames34 } from "@marigold/system";
2901
+ import { cn as cn35, useClassNames as useClassNames36 } from "@marigold/system";
2930
2902
 
2931
2903
  // src/Radio/Context.ts
2932
- import { createContext as createContext6, useContext as useContext6 } from "react";
2933
- var RadioGroupContext = createContext6(
2904
+ import { createContext as createContext5, useContext as useContext6 } from "react";
2905
+ var RadioGroupContext = createContext5(
2934
2906
  null
2935
2907
  );
2936
2908
  var useRadioGroupContext = () => useContext6(RadioGroupContext);
2937
2909
 
2938
2910
  // src/Radio/RadioGroup.tsx
2939
2911
  import { RadioGroup } from "react-aria-components";
2940
- import { cn as cn32, useClassNames as useClassNames33 } from "@marigold/system";
2941
- 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";
2942
2914
  var _RadioGroup = ({
2943
2915
  variant,
2944
2916
  size,
@@ -2954,7 +2926,7 @@ var _RadioGroup = ({
2954
2926
  width,
2955
2927
  ...rest
2956
2928
  }) => {
2957
- const classNames2 = useClassNames33({ component: "Radio", variant, size });
2929
+ const classNames2 = useClassNames35({ component: "Radio", variant, size });
2958
2930
  const props = {
2959
2931
  isDisabled: disabled,
2960
2932
  isReadOnly: readOnly,
@@ -2962,7 +2934,7 @@ var _RadioGroup = ({
2962
2934
  isInvalid: error,
2963
2935
  ...rest
2964
2936
  };
2965
- return /* @__PURE__ */ jsx65(
2937
+ return /* @__PURE__ */ jsx66(
2966
2938
  FieldBase2,
2967
2939
  {
2968
2940
  as: RadioGroup,
@@ -2973,18 +2945,18 @@ var _RadioGroup = ({
2973
2945
  variant,
2974
2946
  size,
2975
2947
  ...props,
2976
- children: /* @__PURE__ */ jsx65(
2948
+ children: /* @__PURE__ */ jsx66(
2977
2949
  "div",
2978
2950
  {
2979
2951
  role: "presentation",
2980
2952
  "data-testid": "group",
2981
2953
  "data-orientation": orientation,
2982
- className: cn32(
2954
+ className: cn34(
2983
2955
  classNames2.group,
2984
2956
  "flex items-start",
2985
2957
  orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
2986
2958
  ),
2987
- children: /* @__PURE__ */ jsx65(RadioGroupContext.Provider, { value: { width, variant, size }, children })
2959
+ children: /* @__PURE__ */ jsx66(RadioGroupContext.Provider, { value: { width, variant, size }, children })
2988
2960
  }
2989
2961
  )
2990
2962
  }
@@ -2992,33 +2964,33 @@ var _RadioGroup = ({
2992
2964
  };
2993
2965
 
2994
2966
  // src/Radio/Radio.tsx
2995
- import { Fragment as Fragment9, jsx as jsx66, jsxs as jsxs28 } from "react/jsx-runtime";
2996
- var Dot = () => /* @__PURE__ */ jsx66("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ jsx66("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
2997
- 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(
2998
2970
  "div",
2999
2971
  {
3000
- className: cn33(
2972
+ className: cn35(
3001
2973
  "bg-secondary-50 flex h-4 w-4 items-center justify-center rounded-[50%] border p-1",
3002
2974
  className
3003
2975
  ),
3004
2976
  "aria-hidden": "true",
3005
2977
  ...props,
3006
- children: checked ? /* @__PURE__ */ jsx66(Dot, {}) : null
2978
+ children: checked ? /* @__PURE__ */ jsx67(Dot, {}) : null
3007
2979
  }
3008
2980
  );
3009
- var _Radio = forwardRef13(
2981
+ var _Radio = forwardRef14(
3010
2982
  ({ value, disabled, width, children, ...props }, ref) => {
3011
2983
  const { variant, size, width: groupWidth } = useRadioGroupContext();
3012
- const classNames2 = useClassNames34({
2984
+ const classNames2 = useClassNames36({
3013
2985
  component: "Radio",
3014
2986
  variant: variant || props.variant,
3015
2987
  size: size || props.size
3016
2988
  });
3017
- return /* @__PURE__ */ jsx66(
2989
+ return /* @__PURE__ */ jsx67(
3018
2990
  Radio,
3019
2991
  {
3020
2992
  ref,
3021
- className: cn33(
2993
+ className: cn35(
3022
2994
  "group/radio",
3023
2995
  "relative flex items-center gap-[1ch]",
3024
2996
  width || groupWidth || "w-full",
@@ -3028,17 +3000,17 @@ var _Radio = forwardRef13(
3028
3000
  isDisabled: disabled,
3029
3001
  ...props,
3030
3002
  children: ({ isSelected }) => /* @__PURE__ */ jsxs28(Fragment9, { children: [
3031
- /* @__PURE__ */ jsx66(
3003
+ /* @__PURE__ */ jsx67(
3032
3004
  Icon2,
3033
3005
  {
3034
3006
  checked: isSelected,
3035
- className: cn33(
3007
+ className: cn35(
3036
3008
  disabled ? "cursor-not-allowed" : "cursor-pointer",
3037
3009
  classNames2.radio
3038
3010
  )
3039
3011
  }
3040
3012
  ),
3041
- /* @__PURE__ */ jsx66("div", { className: classNames2.label, children })
3013
+ /* @__PURE__ */ jsx67("div", { className: classNames2.label, children })
3042
3014
  ] })
3043
3015
  }
3044
3016
  );
@@ -3048,21 +3020,21 @@ _Radio.Group = _RadioGroup;
3048
3020
 
3049
3021
  // src/Select/Select.tsx
3050
3022
  import {
3051
- forwardRef as forwardRef14,
3052
- useRef as useRef20
3023
+ forwardRef as forwardRef15,
3024
+ useRef as useRef17
3053
3025
  } from "react";
3054
- import { useButton as useButton5 } from "@react-aria/button";
3055
- 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";
3056
3028
  import { useLocalizedStringFormatter } from "@react-aria/i18n";
3057
3029
  import { HiddenSelect, useSelect } from "@react-aria/select";
3058
- import { mergeProps as mergeProps13, useObjectRef as useObjectRef6 } from "@react-aria/utils";
3030
+ import { mergeProps as mergeProps10, useObjectRef as useObjectRef4 } from "@react-aria/utils";
3059
3031
  import { Item as Item5, Section as Section2 } from "@react-stately/collections";
3060
3032
  import { useSelectState } from "@react-stately/select";
3061
3033
  import {
3062
- cn as cn34,
3063
- useClassNames as useClassNames35,
3034
+ cn as cn36,
3035
+ useClassNames as useClassNames37,
3064
3036
  useSmallScreen as useSmallScreen2,
3065
- useStateProps as useStateProps12
3037
+ useStateProps as useStateProps10
3066
3038
  } from "@marigold/system";
3067
3039
 
3068
3040
  // src/Select/intl.ts
@@ -3076,8 +3048,8 @@ var messages = {
3076
3048
  };
3077
3049
 
3078
3050
  // src/Select/Select.tsx
3079
- import { jsx as jsx67, jsxs as jsxs29 } from "react/jsx-runtime";
3080
- var Select = forwardRef14(
3051
+ import { jsx as jsx68, jsxs as jsxs29 } from "react/jsx-runtime";
3052
+ var Select = forwardRef15(
3081
3053
  ({
3082
3054
  variant,
3083
3055
  size,
@@ -3099,8 +3071,8 @@ var Select = forwardRef14(
3099
3071
  onSelectionChange: onChange,
3100
3072
  ...rest
3101
3073
  };
3102
- const buttonRef = useObjectRef6(ref);
3103
- const listboxRef = useRef20(null);
3074
+ const buttonRef = useObjectRef4(ref);
3075
+ const listboxRef = useRef17(null);
3104
3076
  const state = useSelectState(props);
3105
3077
  const {
3106
3078
  labelProps,
@@ -3110,14 +3082,14 @@ var Select = forwardRef14(
3110
3082
  descriptionProps,
3111
3083
  errorMessageProps
3112
3084
  } = useSelect(props, state, buttonRef);
3113
- const { buttonProps } = useButton5(
3085
+ const { buttonProps } = useButton3(
3114
3086
  { isDisabled: disabled, ...triggerProps },
3115
3087
  buttonRef
3116
3088
  );
3117
- const { focusProps, isFocusVisible } = useFocusRing7();
3118
- const classNames2 = useClassNames35({ component: "Select", variant, size });
3089
+ const { focusProps, isFocusVisible } = useFocusRing6();
3090
+ const classNames2 = useClassNames37({ component: "Select", variant, size });
3119
3091
  const isSmallScreen = useSmallScreen2();
3120
- const stateProps = useStateProps12({
3092
+ const stateProps = useStateProps10({
3121
3093
  disabled,
3122
3094
  error,
3123
3095
  focusVisible: isFocusVisible,
@@ -3140,7 +3112,7 @@ var Select = forwardRef14(
3140
3112
  stateProps,
3141
3113
  disabled,
3142
3114
  children: [
3143
- /* @__PURE__ */ jsx67(
3115
+ /* @__PURE__ */ jsx68(
3144
3116
  HiddenSelect,
3145
3117
  {
3146
3118
  state,
@@ -3153,20 +3125,20 @@ var Select = forwardRef14(
3153
3125
  /* @__PURE__ */ jsxs29(
3154
3126
  "button",
3155
3127
  {
3156
- className: cn34(
3128
+ className: cn36(
3157
3129
  "flex w-full items-center justify-between gap-1 overflow-hidden",
3158
3130
  classNames2.select
3159
3131
  ),
3160
3132
  ref: buttonRef,
3161
- ...mergeProps13(buttonProps, focusProps),
3133
+ ...mergeProps10(buttonProps, focusProps),
3162
3134
  ...stateProps,
3163
3135
  children: [
3164
- /* @__PURE__ */ jsx67("div", { className: "overflow-hidden whitespace-nowrap", ...valueProps, children: state.selectedItem ? state.selectedItem.rendered : props.placeholder }),
3165
- /* @__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" })
3166
3138
  ]
3167
3139
  }
3168
3140
  ),
3169
- isSmallScreen ? /* @__PURE__ */ jsx67(Tray, { state, children: /* @__PURE__ */ jsx67(
3141
+ isSmallScreen ? /* @__PURE__ */ jsx68(Tray, { state, children: /* @__PURE__ */ jsx68(
3170
3142
  ListBox,
3171
3143
  {
3172
3144
  ref: listboxRef,
@@ -3175,7 +3147,7 @@ var Select = forwardRef14(
3175
3147
  size,
3176
3148
  ...menuProps
3177
3149
  }
3178
- ) }) : /* @__PURE__ */ jsx67(Popover, { state, triggerRef: buttonRef, scrollRef: listboxRef, children: /* @__PURE__ */ jsx67(
3150
+ ) }) : /* @__PURE__ */ jsx68(Popover, { state, triggerRef: buttonRef, scrollRef: listboxRef, children: /* @__PURE__ */ jsx68(
3179
3151
  ListBox,
3180
3152
  {
3181
3153
  ref: listboxRef,
@@ -3194,7 +3166,7 @@ Select.Option = Item5;
3194
3166
  Select.Section = Section2;
3195
3167
 
3196
3168
  // src/Slider/Slider.tsx
3197
- import { forwardRef as forwardRef15 } from "react";
3169
+ import { forwardRef as forwardRef16 } from "react";
3198
3170
  import {
3199
3171
  Slider,
3200
3172
  SliderOutput,
@@ -3202,12 +3174,12 @@ import {
3202
3174
  SliderTrack
3203
3175
  } from "react-aria-components";
3204
3176
  import {
3205
- cn as cn35,
3177
+ cn as cn37,
3206
3178
  width as twWidth3,
3207
- useClassNames as useClassNames36
3179
+ useClassNames as useClassNames38
3208
3180
  } from "@marigold/system";
3209
- import { jsx as jsx68, jsxs as jsxs30 } from "react/jsx-runtime";
3210
- var _Slider = forwardRef15(
3181
+ import { jsx as jsx69, jsxs as jsxs30 } from "react/jsx-runtime";
3182
+ var _Slider = forwardRef16(
3211
3183
  ({
3212
3184
  thumbLabels,
3213
3185
  variant,
@@ -3216,7 +3188,7 @@ var _Slider = forwardRef15(
3216
3188
  disabled,
3217
3189
  ...rest
3218
3190
  }, ref) => {
3219
- const classNames2 = useClassNames36({
3191
+ const classNames2 = useClassNames38({
3220
3192
  component: "Slider",
3221
3193
  variant,
3222
3194
  size
@@ -3228,7 +3200,7 @@ var _Slider = forwardRef15(
3228
3200
  return /* @__PURE__ */ jsxs30(
3229
3201
  Slider,
3230
3202
  {
3231
- className: cn35(
3203
+ className: cn37(
3232
3204
  "grid grid-cols-[auto_1fr] gap-y-1",
3233
3205
  classNames2.container,
3234
3206
  twWidth3[width]
@@ -3236,16 +3208,16 @@ var _Slider = forwardRef15(
3236
3208
  ref,
3237
3209
  ...props,
3238
3210
  children: [
3239
- /* @__PURE__ */ jsx68(_Label, { children: props.children }),
3240
- /* @__PURE__ */ jsx68(SliderOutput, { className: cn35("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
3241
- /* @__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(
3242
3214
  SliderTrack,
3243
3215
  {
3244
- className: cn35("relative col-span-2 h-2 w-full", classNames2.track),
3245
- 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(
3246
3218
  SliderThumb,
3247
3219
  {
3248
- className: cn35("top-1/2 cursor-pointer", classNames2.thumb),
3220
+ className: cn37("top-1/2 cursor-pointer", classNames2.thumb),
3249
3221
  index: i,
3250
3222
  "aria-label": thumbLabels == null ? void 0 : thumbLabels[i]
3251
3223
  },
@@ -3260,16 +3232,16 @@ var _Slider = forwardRef15(
3260
3232
  );
3261
3233
 
3262
3234
  // src/Split/Split.tsx
3263
- import { jsx as jsx69 } from "react/jsx-runtime";
3264
- 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" });
3265
3237
 
3266
3238
  // src/Stack/Stack.tsx
3267
3239
  import {
3268
3240
  alignment as alignment3,
3269
- cn as cn36,
3241
+ cn as cn38,
3270
3242
  gapSpace as gapSpace6
3271
3243
  } from "@marigold/system";
3272
- import { jsx as jsx70 } from "react/jsx-runtime";
3244
+ import { jsx as jsx71 } from "react/jsx-runtime";
3273
3245
  var Stack = ({
3274
3246
  children,
3275
3247
  space = 0,
@@ -3280,10 +3252,10 @@ var Stack = ({
3280
3252
  ...props
3281
3253
  }) => {
3282
3254
  var _a, _b, _c, _d;
3283
- return /* @__PURE__ */ jsx70(
3255
+ return /* @__PURE__ */ jsx71(
3284
3256
  "div",
3285
3257
  {
3286
- className: cn36(
3258
+ className: cn38(
3287
3259
  "flex flex-col",
3288
3260
  gapSpace6[space],
3289
3261
  alignX && ((_b = (_a = alignment3) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
@@ -3297,15 +3269,15 @@ var Stack = ({
3297
3269
  };
3298
3270
 
3299
3271
  // src/Switch/Switch.tsx
3300
- import { forwardRef as forwardRef16 } from "react";
3272
+ import { forwardRef as forwardRef17 } from "react";
3301
3273
  import { Switch } from "react-aria-components";
3302
3274
  import {
3303
- cn as cn37,
3275
+ cn as cn39,
3304
3276
  width as twWidth4,
3305
- useClassNames as useClassNames37
3277
+ useClassNames as useClassNames39
3306
3278
  } from "@marigold/system";
3307
- import { jsx as jsx71, jsxs as jsxs31 } from "react/jsx-runtime";
3308
- var _Switch = forwardRef16(
3279
+ import { jsx as jsx72, jsxs as jsxs31 } from "react/jsx-runtime";
3280
+ var _Switch = forwardRef17(
3309
3281
  ({
3310
3282
  variant,
3311
3283
  size,
@@ -3316,7 +3288,7 @@ var _Switch = forwardRef16(
3316
3288
  readOnly,
3317
3289
  ...rest
3318
3290
  }, ref) => {
3319
- const classNames2 = useClassNames37({ component: "Switch", size, variant });
3291
+ const classNames2 = useClassNames39({ component: "Switch", size, variant });
3320
3292
  const props = {
3321
3293
  isDisabled: disabled,
3322
3294
  isReadOnly: readOnly,
@@ -3328,25 +3300,25 @@ var _Switch = forwardRef16(
3328
3300
  {
3329
3301
  ...props,
3330
3302
  ref,
3331
- className: cn37(
3303
+ className: cn39(
3332
3304
  twWidth4[width],
3333
3305
  "group/switch",
3334
3306
  "flex items-center justify-between gap-[1ch]",
3335
3307
  classNames2.container
3336
3308
  ),
3337
3309
  children: [
3338
- /* @__PURE__ */ jsx71(_Label, { elementType: "span", children }),
3339
- /* @__PURE__ */ jsx71("div", { className: "relative", children: /* @__PURE__ */ jsx71(
3310
+ /* @__PURE__ */ jsx72(_Label, { elementType: "span", children }),
3311
+ /* @__PURE__ */ jsx72("div", { className: "relative", children: /* @__PURE__ */ jsx72(
3340
3312
  "div",
3341
3313
  {
3342
- className: cn37(
3314
+ className: cn39(
3343
3315
  "h-6 w-12 basis-12 rounded-3xl group-disabled/switch:cursor-not-allowed ",
3344
3316
  classNames2.track
3345
3317
  ),
3346
- children: /* @__PURE__ */ jsx71(
3318
+ children: /* @__PURE__ */ jsx72(
3347
3319
  "div",
3348
3320
  {
3349
- className: cn37(
3321
+ className: cn39(
3350
3322
  "h-[22px] w-[22px]",
3351
3323
  "cubic-bezier(.7,0,.3,1)",
3352
3324
  "absolute left-0 top-px",
@@ -3365,7 +3337,7 @@ var _Switch = forwardRef16(
3365
3337
  );
3366
3338
 
3367
3339
  // src/Table/Table.tsx
3368
- import { useRef as useRef27 } from "react";
3340
+ import { useRef as useRef24 } from "react";
3369
3341
  import { useTable } from "@react-aria/table";
3370
3342
  import {
3371
3343
  TableBody as Body2,
@@ -3375,30 +3347,30 @@ import {
3375
3347
  Row,
3376
3348
  useTableState
3377
3349
  } from "@react-stately/table";
3378
- import { cn as cn42, useClassNames as useClassNames39 } from "@marigold/system";
3350
+ import { cn as cn44, useClassNames as useClassNames41 } from "@marigold/system";
3379
3351
 
3380
3352
  // src/Table/Context.tsx
3381
- import { createContext as createContext7, useContext as useContext7 } from "react";
3382
- var TableContext = createContext7({});
3353
+ import { createContext as createContext6, useContext as useContext7 } from "react";
3354
+ var TableContext = createContext6({});
3383
3355
  var useTableContext = () => useContext7(TableContext);
3384
3356
 
3385
3357
  // src/Table/TableBody.tsx
3386
3358
  import { useTableRowGroup } from "@react-aria/table";
3387
- import { jsx as jsx72 } from "react/jsx-runtime";
3359
+ import { jsx as jsx73 } from "react/jsx-runtime";
3388
3360
  var TableBody = ({ children }) => {
3389
3361
  const { rowGroupProps } = useTableRowGroup();
3390
- return /* @__PURE__ */ jsx72("tbody", { ...rowGroupProps, children });
3362
+ return /* @__PURE__ */ jsx73("tbody", { ...rowGroupProps, children });
3391
3363
  };
3392
3364
 
3393
3365
  // src/Table/TableCell.tsx
3394
- import { useRef as useRef21 } from "react";
3395
- import { useFocusRing as useFocusRing8 } from "@react-aria/focus";
3366
+ import { useRef as useRef18 } from "react";
3367
+ import { useFocusRing as useFocusRing7 } from "@react-aria/focus";
3396
3368
  import { useTableCell } from "@react-aria/table";
3397
- import { mergeProps as mergeProps14 } from "@react-aria/utils";
3398
- import { useStateProps as useStateProps13 } from "@marigold/system";
3399
- 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";
3400
3372
  var TableCell = ({ cell }) => {
3401
- const ref = useRef21(null);
3373
+ const ref = useRef18(null);
3402
3374
  const { interactive, state, classNames: classNames2 } = useTableContext();
3403
3375
  const disabled = state.disabledKeys.has(cell.parentKey);
3404
3376
  const { gridCellProps } = useTableCell(
@@ -3417,14 +3389,14 @@ var TableCell = ({ cell }) => {
3417
3389
  onMouseDown: (e) => e.stopPropagation(),
3418
3390
  onPointerDown: (e) => e.stopPropagation()
3419
3391
  };
3420
- const { focusProps, isFocusVisible } = useFocusRing8();
3421
- const stateProps = useStateProps13({ disabled, focusVisible: isFocusVisible });
3422
- return /* @__PURE__ */ jsx73(
3392
+ const { focusProps, isFocusVisible } = useFocusRing7();
3393
+ const stateProps = useStateProps11({ disabled, focusVisible: isFocusVisible });
3394
+ return /* @__PURE__ */ jsx74(
3423
3395
  "td",
3424
3396
  {
3425
3397
  ref,
3426
3398
  className: classNames2 == null ? void 0 : classNames2.cell,
3427
- ...mergeProps14(cellProps, focusProps),
3399
+ ...mergeProps11(cellProps, focusProps),
3428
3400
  ...stateProps,
3429
3401
  children: cell.rendered
3430
3402
  }
@@ -3432,11 +3404,11 @@ var TableCell = ({ cell }) => {
3432
3404
  };
3433
3405
 
3434
3406
  // src/Table/TableCheckboxCell.tsx
3435
- import { useRef as useRef22 } from "react";
3436
- import { useFocusRing as useFocusRing9 } from "@react-aria/focus";
3407
+ import { useRef as useRef19 } from "react";
3408
+ import { useFocusRing as useFocusRing8 } from "@react-aria/focus";
3437
3409
  import { useTableCell as useTableCell2, useTableSelectionCheckbox } from "@react-aria/table";
3438
- import { mergeProps as mergeProps15 } from "@react-aria/utils";
3439
- 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";
3440
3412
 
3441
3413
  // src/Table/utils.ts
3442
3414
  var mapCheckboxProps = ({
@@ -3459,9 +3431,9 @@ var mapCheckboxProps = ({
3459
3431
  };
3460
3432
 
3461
3433
  // src/Table/TableCheckboxCell.tsx
3462
- import { jsx as jsx74 } from "react/jsx-runtime";
3434
+ import { jsx as jsx75 } from "react/jsx-runtime";
3463
3435
  var TableCheckboxCell = ({ cell }) => {
3464
- const ref = useRef22(null);
3436
+ const ref = useRef19(null);
3465
3437
  const { state, classNames: classNames2 } = useTableContext();
3466
3438
  const disabled = state.disabledKeys.has(cell.parentKey);
3467
3439
  const { gridCellProps } = useTableCell2(
@@ -3474,36 +3446,36 @@ var TableCheckboxCell = ({ cell }) => {
3474
3446
  const { checkboxProps } = mapCheckboxProps(
3475
3447
  useTableSelectionCheckbox({ key: cell.parentKey }, state)
3476
3448
  );
3477
- const { focusProps, isFocusVisible } = useFocusRing9();
3478
- const stateProps = useStateProps14({ disabled, focusVisible: isFocusVisible });
3479
- return /* @__PURE__ */ jsx74(
3449
+ const { focusProps, isFocusVisible } = useFocusRing8();
3450
+ const stateProps = useStateProps12({ disabled, focusVisible: isFocusVisible });
3451
+ return /* @__PURE__ */ jsx75(
3480
3452
  "td",
3481
3453
  {
3482
3454
  ref,
3483
- className: cn38("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
3484
- ...mergeProps15(gridCellProps, focusProps),
3455
+ className: cn40("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
3456
+ ...mergeProps12(gridCellProps, focusProps),
3485
3457
  ...stateProps,
3486
- children: /* @__PURE__ */ jsx74(_Checkbox, { ...checkboxProps })
3458
+ children: /* @__PURE__ */ jsx75(_Checkbox, { ...checkboxProps })
3487
3459
  }
3488
3460
  );
3489
3461
  };
3490
3462
 
3491
3463
  // src/Table/TableColumnHeader.tsx
3492
- import { useRef as useRef23 } from "react";
3493
- import { useFocusRing as useFocusRing10 } from "@react-aria/focus";
3494
- 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";
3495
3467
  import { useTableColumnHeader } from "@react-aria/table";
3496
- import { mergeProps as mergeProps16 } from "@react-aria/utils";
3468
+ import { mergeProps as mergeProps13 } from "@react-aria/utils";
3497
3469
  import { SortDown, SortUp } from "@marigold/icons";
3498
- import { cn as cn39, useStateProps as useStateProps15 } from "@marigold/system";
3470
+ import { cn as cn41, useStateProps as useStateProps13 } from "@marigold/system";
3499
3471
  import { width as twWidth5 } from "@marigold/system";
3500
- import { jsx as jsx75, jsxs as jsxs32 } from "react/jsx-runtime";
3472
+ import { jsx as jsx76, jsxs as jsxs32 } from "react/jsx-runtime";
3501
3473
  var TableColumnHeader = ({
3502
3474
  column,
3503
3475
  width = "auto"
3504
3476
  }) => {
3505
3477
  var _a, _b;
3506
- const ref = useRef23(null);
3478
+ const ref = useRef20(null);
3507
3479
  const { state, classNames: classNames2 } = useTableContext();
3508
3480
  const { columnHeaderProps } = useTableColumnHeader(
3509
3481
  {
@@ -3512,9 +3484,9 @@ var TableColumnHeader = ({
3512
3484
  state,
3513
3485
  ref
3514
3486
  );
3515
- const { hoverProps, isHovered } = useHover6({});
3516
- const { focusProps, isFocusVisible } = useFocusRing10();
3517
- const stateProps = useStateProps15({
3487
+ const { hoverProps, isHovered } = useHover4({});
3488
+ const { focusProps, isFocusVisible } = useFocusRing9();
3489
+ const stateProps = useStateProps13({
3518
3490
  hover: isHovered,
3519
3491
  focusVisible: isFocusVisible
3520
3492
  });
@@ -3523,12 +3495,12 @@ var TableColumnHeader = ({
3523
3495
  {
3524
3496
  colSpan: column.colspan,
3525
3497
  ref,
3526
- className: cn39("cursor-default", twWidth5[width], classNames2 == null ? void 0 : classNames2.header),
3527
- ...mergeProps16(columnHeaderProps, hoverProps, focusProps),
3498
+ className: cn41("cursor-default", twWidth5[width], classNames2 == null ? void 0 : classNames2.header),
3499
+ ...mergeProps13(columnHeaderProps, hoverProps, focusProps),
3528
3500
  ...stateProps,
3529
3501
  children: [
3530
3502
  column.rendered,
3531
- 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" }))
3532
3504
  ]
3533
3505
  }
3534
3506
  );
@@ -3536,36 +3508,36 @@ var TableColumnHeader = ({
3536
3508
 
3537
3509
  // src/Table/TableHeader.tsx
3538
3510
  import { useTableRowGroup as useTableRowGroup2 } from "@react-aria/table";
3539
- import { jsx as jsx76 } from "react/jsx-runtime";
3511
+ import { jsx as jsx77 } from "react/jsx-runtime";
3540
3512
  var TableHeader = ({ children }) => {
3541
3513
  const { rowGroupProps } = useTableRowGroup2();
3542
- return /* @__PURE__ */ jsx76("thead", { ...rowGroupProps, children });
3514
+ return /* @__PURE__ */ jsx77("thead", { ...rowGroupProps, children });
3543
3515
  };
3544
3516
 
3545
3517
  // src/Table/TableHeaderRow.tsx
3546
- import { useRef as useRef24 } from "react";
3518
+ import { useRef as useRef21 } from "react";
3547
3519
  import { useTableHeaderRow } from "@react-aria/table";
3548
- import { jsx as jsx77 } from "react/jsx-runtime";
3520
+ import { jsx as jsx78 } from "react/jsx-runtime";
3549
3521
  var TableHeaderRow = ({ item, children }) => {
3550
3522
  const { state } = useTableContext();
3551
- const ref = useRef24(null);
3523
+ const ref = useRef21(null);
3552
3524
  const { rowProps } = useTableHeaderRow({ node: item }, state, ref);
3553
- return /* @__PURE__ */ jsx77("tr", { ...rowProps, ref, children });
3525
+ return /* @__PURE__ */ jsx78("tr", { ...rowProps, ref, children });
3554
3526
  };
3555
3527
 
3556
3528
  // src/Table/TableRow.tsx
3557
- import { useRef as useRef25 } from "react";
3558
- import { useFocusRing as useFocusRing11 } from "@react-aria/focus";
3559
- 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";
3560
3532
  import { useTableRow } from "@react-aria/table";
3561
- import { mergeProps as mergeProps17 } from "@react-aria/utils";
3562
- import { cn as cn40, useClassNames as useClassNames38, useStateProps as useStateProps16 } from "@marigold/system";
3563
- 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";
3564
3536
  var TableRow = ({ children, row }) => {
3565
- const ref = useRef25(null);
3537
+ const ref = useRef22(null);
3566
3538
  const { interactive, state, ...ctx } = useTableContext();
3567
3539
  const { variant, size } = row.props;
3568
- const classNames2 = useClassNames38({
3540
+ const classNames2 = useClassNames40({
3569
3541
  component: "Table",
3570
3542
  variant: variant || ctx.variant,
3571
3543
  size: size || ctx.size
@@ -3579,28 +3551,28 @@ var TableRow = ({ children, row }) => {
3579
3551
  );
3580
3552
  const disabled = state.disabledKeys.has(row.key);
3581
3553
  const selected = state.selectionManager.isSelected(row.key);
3582
- const { focusProps, isFocusVisible } = useFocusRing11({ within: true });
3583
- const { hoverProps, isHovered } = useHover7({
3554
+ const { focusProps, isFocusVisible } = useFocusRing10({ within: true });
3555
+ const { hoverProps, isHovered } = useHover5({
3584
3556
  isDisabled: disabled || !interactive
3585
3557
  });
3586
- const stateProps = useStateProps16({
3558
+ const stateProps = useStateProps14({
3587
3559
  disabled,
3588
3560
  selected,
3589
3561
  hover: isHovered,
3590
3562
  focusVisible: isFocusVisible,
3591
3563
  active: isPressed
3592
3564
  });
3593
- return /* @__PURE__ */ jsx78(
3565
+ return /* @__PURE__ */ jsx79(
3594
3566
  "tr",
3595
3567
  {
3596
3568
  ref,
3597
- className: cn40(
3569
+ className: cn42(
3598
3570
  [
3599
3571
  !interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"
3600
3572
  ],
3601
3573
  classNames2 == null ? void 0 : classNames2.row
3602
3574
  ),
3603
- ...mergeProps17(rowProps, focusProps, hoverProps),
3575
+ ...mergeProps14(rowProps, focusProps, hoverProps),
3604
3576
  ...stateProps,
3605
3577
  children
3606
3578
  }
@@ -3608,25 +3580,25 @@ var TableRow = ({ children, row }) => {
3608
3580
  };
3609
3581
 
3610
3582
  // src/Table/TableSelectAllCell.tsx
3611
- import { useRef as useRef26 } from "react";
3612
- import { useFocusRing as useFocusRing12 } from "@react-aria/focus";
3613
- 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";
3614
3586
  import {
3615
3587
  useTableColumnHeader as useTableColumnHeader2,
3616
3588
  useTableSelectAllCheckbox
3617
3589
  } from "@react-aria/table";
3618
- import { mergeProps as mergeProps18 } from "@react-aria/utils";
3590
+ import { mergeProps as mergeProps15 } from "@react-aria/utils";
3619
3591
  import {
3620
- cn as cn41,
3592
+ cn as cn43,
3621
3593
  width as twWidth6,
3622
- useStateProps as useStateProps17
3594
+ useStateProps as useStateProps15
3623
3595
  } from "@marigold/system";
3624
- import { jsx as jsx79 } from "react/jsx-runtime";
3596
+ import { jsx as jsx80 } from "react/jsx-runtime";
3625
3597
  var TableSelectAllCell = ({
3626
3598
  column,
3627
3599
  width = "auto"
3628
3600
  }) => {
3629
- const ref = useRef26(null);
3601
+ const ref = useRef23(null);
3630
3602
  const { state, classNames: classNames2 } = useTableContext();
3631
3603
  const { columnHeaderProps } = useTableColumnHeader2(
3632
3604
  {
@@ -3636,30 +3608,30 @@ var TableSelectAllCell = ({
3636
3608
  ref
3637
3609
  );
3638
3610
  const { checkboxProps } = mapCheckboxProps(useTableSelectAllCheckbox(state));
3639
- const { hoverProps, isHovered } = useHover8({});
3640
- const { focusProps, isFocusVisible } = useFocusRing12();
3641
- const stateProps = useStateProps17({
3611
+ const { hoverProps, isHovered } = useHover6({});
3612
+ const { focusProps, isFocusVisible } = useFocusRing11();
3613
+ const stateProps = useStateProps15({
3642
3614
  hover: isHovered,
3643
3615
  focusVisible: isFocusVisible
3644
3616
  });
3645
- return /* @__PURE__ */ jsx79(
3617
+ return /* @__PURE__ */ jsx80(
3646
3618
  "th",
3647
3619
  {
3648
3620
  ref,
3649
- className: cn41(
3621
+ className: cn43(
3650
3622
  twWidth6[width],
3651
3623
  ["text-center align-middle leading-none"],
3652
3624
  classNames2 == null ? void 0 : classNames2.header
3653
3625
  ),
3654
- ...mergeProps18(columnHeaderProps, hoverProps, focusProps),
3626
+ ...mergeProps15(columnHeaderProps, hoverProps, focusProps),
3655
3627
  ...stateProps,
3656
- children: /* @__PURE__ */ jsx79(_Checkbox, { ...checkboxProps })
3628
+ children: /* @__PURE__ */ jsx80(_Checkbox, { ...checkboxProps })
3657
3629
  }
3658
3630
  );
3659
3631
  };
3660
3632
 
3661
3633
  // src/Table/Table.tsx
3662
- import { jsx as jsx80, jsxs as jsxs33 } from "react/jsx-runtime";
3634
+ import { jsx as jsx81, jsxs as jsxs33 } from "react/jsx-runtime";
3663
3635
  var Table = ({
3664
3636
  variant,
3665
3637
  size,
@@ -3668,7 +3640,7 @@ var Table = ({
3668
3640
  ...props
3669
3641
  }) => {
3670
3642
  const interactive = selectionMode !== "none";
3671
- const tableRef = useRef27(null);
3643
+ const tableRef = useRef24(null);
3672
3644
  const state = useTableState({
3673
3645
  ...props,
3674
3646
  selectionMode,
@@ -3676,13 +3648,13 @@ var Table = ({
3676
3648
  props.selectionBehavior !== "replace"
3677
3649
  });
3678
3650
  const { gridProps } = useTable(props, state, tableRef);
3679
- const classNames2 = useClassNames39({
3651
+ const classNames2 = useClassNames41({
3680
3652
  component: "Table",
3681
3653
  variant,
3682
3654
  size
3683
3655
  });
3684
3656
  const { collection } = state;
3685
- return /* @__PURE__ */ jsx80(
3657
+ return /* @__PURE__ */ jsx81(
3686
3658
  TableContext.Provider,
3687
3659
  {
3688
3660
  value: { state, interactive, classNames: classNames2, variant, size },
@@ -3690,7 +3662,7 @@ var Table = ({
3690
3662
  "table",
3691
3663
  {
3692
3664
  ref: tableRef,
3693
- className: cn42(
3665
+ className: cn44(
3694
3666
  "group/table",
3695
3667
  "border-collapse overflow-auto whitespace-nowrap",
3696
3668
  stretch ? "table w-full" : "block",
@@ -3698,17 +3670,17 @@ var Table = ({
3698
3670
  ),
3699
3671
  ...gridProps,
3700
3672
  children: [
3701
- /* @__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(
3702
3674
  (column) => {
3703
3675
  var _a, _b, _c;
3704
- return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx80(
3676
+ return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx81(
3705
3677
  TableSelectAllCell,
3706
3678
  {
3707
3679
  width: (_b = column.props) == null ? void 0 : _b.width,
3708
3680
  column
3709
3681
  },
3710
3682
  column.key
3711
- ) : /* @__PURE__ */ jsx80(
3683
+ ) : /* @__PURE__ */ jsx81(
3712
3684
  TableColumnHeader,
3713
3685
  {
3714
3686
  width: (_c = column.props) == null ? void 0 : _c.width,
@@ -3720,10 +3692,10 @@ var Table = ({
3720
3692
  ) }, headerRow.key)) }),
3721
3693
  /* @__PURE__ */ jsxs33(TableBody, { children: [
3722
3694
  ...collection.rows.map(
3723
- (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(
3724
3696
  (cell) => {
3725
3697
  var _a;
3726
- 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);
3727
3699
  }
3728
3700
  ) }, row.key)
3729
3701
  )
@@ -3742,7 +3714,7 @@ Table.Row = Row;
3742
3714
 
3743
3715
  // src/Text/Text.tsx
3744
3716
  import {
3745
- cn as cn43,
3717
+ cn as cn45,
3746
3718
  createVar as createVar9,
3747
3719
  cursorStyle,
3748
3720
  fontWeight,
@@ -3750,10 +3722,10 @@ import {
3750
3722
  textAlign as textAlign2,
3751
3723
  textSize,
3752
3724
  textStyle,
3753
- useClassNames as useClassNames40,
3754
- useTheme as useTheme5
3725
+ useClassNames as useClassNames42,
3726
+ useTheme as useTheme6
3755
3727
  } from "@marigold/system";
3756
- import { jsx as jsx81 } from "react/jsx-runtime";
3728
+ import { jsx as jsx82 } from "react/jsx-runtime";
3757
3729
  var Text2 = ({
3758
3730
  variant,
3759
3731
  size,
@@ -3766,17 +3738,17 @@ var Text2 = ({
3766
3738
  children,
3767
3739
  ...props
3768
3740
  }) => {
3769
- const theme = useTheme5();
3770
- const classNames2 = useClassNames40({
3741
+ const theme = useTheme6();
3742
+ const classNames2 = useClassNames42({
3771
3743
  component: "Text",
3772
3744
  variant,
3773
3745
  size
3774
3746
  });
3775
- return /* @__PURE__ */ jsx81(
3747
+ return /* @__PURE__ */ jsx82(
3776
3748
  "p",
3777
3749
  {
3778
3750
  ...props,
3779
- className: cn43(
3751
+ className: cn45(
3780
3752
  classNames2,
3781
3753
  "text-[--color] outline-[--outline]",
3782
3754
  fontStyle && textStyle[fontStyle],
@@ -3799,145 +3771,61 @@ var Text2 = ({
3799
3771
  };
3800
3772
 
3801
3773
  // src/TextArea/TextArea.tsx
3802
- import { forwardRef as forwardRef17 } from "react";
3803
- import { useFocusRing as useFocusRing13 } from "@react-aria/focus";
3804
- import { useHover as useHover9 } from "@react-aria/interactions";
3805
- import { useTextField } from "@react-aria/textfield";
3806
- import { useObjectRef as useObjectRef7 } from "@react-aria/utils";
3807
- import { useClassNames as useClassNames41, useStateProps as useStateProps18 } from "@marigold/system";
3808
- import { jsx as jsx82 } from "react/jsx-runtime";
3809
- 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(
3810
3779
  ({
3811
3780
  variant,
3812
3781
  size,
3813
- width,
3814
- disabled,
3815
3782
  required,
3783
+ disabled,
3816
3784
  readOnly,
3817
3785
  error,
3818
3786
  rows,
3819
- ...props
3787
+ ...rest
3820
3788
  }, ref) => {
3821
- const { label, description, errorMessage } = props;
3822
- const textAreaRef = useObjectRef7(ref);
3823
- const { labelProps, inputProps, descriptionProps, errorMessageProps } = useTextField(
3824
- {
3825
- inputElementType: "textarea",
3826
- isDisabled: disabled,
3827
- isRequired: required,
3828
- isReadOnly: readOnly,
3829
- validationState: error ? "invalid" : "valid",
3830
- ...props
3831
- },
3832
- textAreaRef
3833
- );
3834
- const { hoverProps, isHovered } = useHover9({});
3835
- const { focusProps, isFocusVisible } = useFocusRing13();
3836
- const stateProps = useStateProps18({
3837
- hover: isHovered,
3838
- focus: isFocusVisible,
3839
- disabled,
3840
- readOnly,
3841
- required,
3842
- error
3843
- });
3844
- const classNames2 = useClassNames41({ component: "TextArea", variant, size });
3845
- return /* @__PURE__ */ jsx82(
3846
- FieldBase,
3847
- {
3848
- label,
3849
- labelProps,
3850
- description,
3851
- descriptionProps,
3852
- error,
3853
- errorMessage,
3854
- errorMessageProps,
3855
- stateProps,
3856
- variant,
3857
- size,
3858
- width,
3859
- children: /* @__PURE__ */ jsx82(
3860
- "textarea",
3861
- {
3862
- className: classNames2,
3863
- ref: textAreaRef,
3864
- rows,
3865
- ...inputProps,
3866
- ...focusProps,
3867
- ...hoverProps
3868
- }
3869
- )
3870
- }
3871
- );
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 }) });
3872
3798
  }
3873
3799
  );
3874
3800
 
3875
3801
  // src/TextField/TextField.tsx
3876
- import { forwardRef as forwardRef18 } from "react";
3877
- import { useFocusRing as useFocusRing14 } from "@react-aria/focus";
3878
- import { useHover as useHover10 } from "@react-aria/interactions";
3879
- import { useTextField as useTextField2 } from "@react-aria/textfield";
3880
- import { mergeProps as mergeProps19, useObjectRef as useObjectRef8 } from "@react-aria/utils";
3881
- import { useStateProps as useStateProps19 } from "@marigold/system";
3882
- import { jsx as jsx83 } from "react/jsx-runtime";
3883
- var TextField = forwardRef18(
3884
- ({ variant, size, width, disabled, required, readOnly, error, ...props }, ref) => {
3885
- const { label, description, errorMessage, autoFocus } = props;
3886
- const inputRef = useObjectRef8(ref);
3887
- const { labelProps, inputProps, descriptionProps, errorMessageProps } = useTextField2(
3888
- {
3889
- isDisabled: disabled,
3890
- isRequired: required,
3891
- isReadOnly: readOnly,
3892
- validationState: error ? "invalid" : "valid",
3893
- ...props
3894
- },
3895
- inputRef
3896
- );
3897
- const { hoverProps, isHovered } = useHover10({});
3898
- const { focusProps, isFocused } = useFocusRing14({
3899
- isTextInput: true,
3900
- autoFocus
3901
- });
3902
- const stateProps = useStateProps19({
3903
- hover: isHovered,
3904
- focus: isFocused,
3905
- disabled,
3906
- error,
3907
- readOnly,
3908
- required
3909
- });
3910
- return /* @__PURE__ */ jsx83(
3911
- FieldBase,
3912
- {
3913
- label,
3914
- labelProps,
3915
- description,
3916
- descriptionProps,
3917
- error,
3918
- errorMessage,
3919
- errorMessageProps,
3920
- stateProps,
3921
- variant,
3922
- size,
3923
- width,
3924
- children: /* @__PURE__ */ jsx83(
3925
- Input,
3926
- {
3927
- ref: inputRef,
3928
- variant,
3929
- size,
3930
- ...mergeProps19(focusProps, inputProps, hoverProps)
3931
- }
3932
- )
3933
- }
3934
- );
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 }) });
3935
3823
  }
3936
3824
  );
3937
3825
 
3938
3826
  // src/Tiles/Tiles.tsx
3939
- import { cn as cn44, createVar as createVar10, gapSpace as gapSpace7 } from "@marigold/system";
3940
- 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";
3941
3829
  var Tiles = ({
3942
3830
  space = 0,
3943
3831
  stretch = false,
@@ -3950,11 +3838,11 @@ var Tiles = ({
3950
3838
  if (stretch) {
3951
3839
  column = `minmax(${column}, 1fr)`;
3952
3840
  }
3953
- return /* @__PURE__ */ jsx84(
3841
+ return /* @__PURE__ */ jsx85(
3954
3842
  "div",
3955
3843
  {
3956
3844
  ...props,
3957
- className: cn44(
3845
+ className: cn46(
3958
3846
  "grid",
3959
3847
  gapSpace7[space],
3960
3848
  "grid-cols-[repeat(auto-fit,var(--column))]",
@@ -3967,126 +3855,64 @@ var Tiles = ({
3967
3855
  };
3968
3856
 
3969
3857
  // src/Tooltip/Tooltip.tsx
3970
- import { useTooltip } from "@react-aria/tooltip";
3971
- import { cn as cn45, useClassNames as useClassNames42 } from "@marigold/system";
3972
-
3973
- // src/Tooltip/Context.ts
3974
- import { createContext as createContext8, useContext as useContext8 } from "react";
3975
- var TooltipContext = createContext8({});
3976
- var useTooltipContext = () => useContext8(TooltipContext);
3858
+ import { OverlayArrow, Tooltip } from "react-aria-components";
3859
+ import { cn as cn47, useClassNames as useClassNames44 } from "@marigold/system";
3977
3860
 
3978
3861
  // src/Tooltip/TooltipTrigger.tsx
3979
- import { Children as Children7, useRef as useRef28 } from "react";
3980
- import { FocusableProvider } from "@react-aria/focus";
3981
- import { useOverlayPosition } from "@react-aria/overlays";
3982
- import { useTooltipTrigger } from "@react-aria/tooltip";
3983
- import { useTooltipTriggerState } from "@react-stately/tooltip";
3984
- import { jsx as jsx85, jsxs as jsxs34 } from "react/jsx-runtime";
3985
- var TooltipTrigger = ({
3986
- disabled,
3987
- open,
3862
+ import { TooltipTrigger } from "react-aria-components";
3863
+ import { jsx as jsx86 } from "react/jsx-runtime";
3864
+ var _TooltipTrigger = ({
3988
3865
  delay = 1e3,
3989
- placement = "top",
3990
3866
  children,
3867
+ disabled,
3868
+ open,
3991
3869
  ...rest
3992
3870
  }) => {
3993
- const [tooltipTrigger, tooltip] = Children7.toArray(children);
3994
3871
  const props = {
3995
3872
  ...rest,
3996
3873
  isDisabled: disabled,
3997
3874
  isOpen: open,
3998
- delay,
3999
- placement
3875
+ delay
4000
3876
  };
4001
- const tooltipTriggerRef = useRef28(null);
4002
- const overlayRef = useRef28(null);
4003
- const state = useTooltipTriggerState(props);
4004
- const { triggerProps, tooltipProps } = useTooltipTrigger(
4005
- props,
4006
- state,
4007
- tooltipTriggerRef
4008
- );
4009
- const {
4010
- overlayProps: positionProps,
4011
- placement: overlayPlacement,
4012
- arrowProps
4013
- } = useOverlayPosition({
4014
- placement: props.placement,
4015
- targetRef: tooltipTriggerRef,
4016
- offset: props.offset,
4017
- crossOffset: props.crossOffset,
4018
- isOpen: state.isOpen,
4019
- overlayRef
4020
- });
4021
- return /* @__PURE__ */ jsxs34(FocusableProvider, { ref: tooltipTriggerRef, ...triggerProps, children: [
4022
- tooltipTrigger,
4023
- /* @__PURE__ */ jsx85(
4024
- TooltipContext.Provider,
4025
- {
4026
- value: {
4027
- state,
4028
- overlayRef,
4029
- arrowProps,
4030
- placement: overlayPlacement,
4031
- ...tooltipProps,
4032
- ...positionProps
4033
- },
4034
- children: /* @__PURE__ */ jsx85(Overlay, { open: state.isOpen, children: tooltip })
4035
- }
4036
- )
4037
- ] });
3877
+ return /* @__PURE__ */ jsx86(TooltipTrigger, { ...props, children });
4038
3878
  };
4039
3879
 
4040
3880
  // src/Tooltip/Tooltip.tsx
4041
- import { jsx as jsx86, jsxs as jsxs35 } from "react/jsx-runtime";
4042
- var Tooltip = ({ children, variant, size }) => {
4043
- const { arrowProps, state, overlayRef, placement, ...rest } = useTooltipContext();
4044
- const { tooltipProps } = useTooltip({}, state);
4045
- const classNames2 = useClassNames42({ component: "Tooltip", variant, size });
4046
- return /* @__PURE__ */ jsxs35(
4047
- "div",
4048
- {
4049
- ...tooltipProps,
4050
- ...rest,
4051
- ref: overlayRef,
4052
- className: cn45("group/tooltip", classNames2.container),
4053
- "data-placement": placement,
4054
- children: [
4055
- /* @__PURE__ */ jsx86("div", { children }),
4056
- /* @__PURE__ */ jsx86(
4057
- "div",
4058
- {
4059
- ...arrowProps,
4060
- className: cn45("absolute h-0 w-0", classNames2.arrow)
4061
- }
4062
- )
4063
- ]
4064
- }
4065
- );
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
+ ] });
4066
3892
  };
4067
- Tooltip.Trigger = TooltipTrigger;
3893
+ _Tooltip.Trigger = _TooltipTrigger;
4068
3894
 
4069
3895
  // src/TagGroup/index.ts
4070
3896
  import { Item as Item6 } from "@react-stately/collections";
4071
3897
 
4072
3898
  // src/TagGroup/TagGroup.tsx
4073
- import { useRef as useRef30 } from "react";
3899
+ import { useRef as useRef26 } from "react";
4074
3900
  import { useTagGroup } from "@react-aria/tag";
4075
3901
  import { useListState } from "@react-stately/list";
4076
- import { useStateProps as useStateProps20 } from "@marigold/system";
3902
+ import { useStateProps as useStateProps16 } from "@marigold/system";
4077
3903
 
4078
3904
  // src/TagGroup/Tag.tsx
4079
- import React3, { useRef as useRef29 } from "react";
4080
- import { useButton as useButton6 } from "@react-aria/button";
4081
- 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";
4082
3908
  import { useTag } from "@react-aria/tag";
4083
- import { mergeProps as mergeProps20 } from "@react-aria/utils";
4084
- import { cn as cn46, useClassNames as useClassNames43 } from "@marigold/system";
4085
- 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";
4086
3912
  var CloseButton2 = ({ className, ...props }) => {
4087
- const ref = useRef29(null);
4088
- const { buttonProps } = useButton6({ ...props }, ref);
4089
- 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" }) }) });
4090
3916
  };
4091
3917
  var Tag = ({ variant, size, item, state, ...rest }) => {
4092
3918
  const props = {
@@ -4094,7 +3920,7 @@ var Tag = ({ variant, size, item, state, ...rest }) => {
4094
3920
  ...rest
4095
3921
  };
4096
3922
  let ref = React3.useRef(null);
4097
- let { focusProps } = useFocusRing15({ within: true });
3923
+ let { focusProps } = useFocusRing12({ within: true });
4098
3924
  const { rowProps, gridCellProps, allowsRemoving, removeButtonProps } = useTag(
4099
3925
  {
4100
3926
  ...props,
@@ -4103,20 +3929,20 @@ var Tag = ({ variant, size, item, state, ...rest }) => {
4103
3929
  state,
4104
3930
  ref
4105
3931
  );
4106
- const classNames2 = useClassNames43({ component: "Tag", variant, size });
4107
- return /* @__PURE__ */ jsx87(
3932
+ const classNames2 = useClassNames45({ component: "Tag", variant, size });
3933
+ return /* @__PURE__ */ jsx88(
4108
3934
  "span",
4109
3935
  {
4110
3936
  ref,
4111
- ...mergeProps20(rowProps, focusProps),
3937
+ ...mergeProps16(rowProps, focusProps),
4112
3938
  className: classNames2.tag,
4113
- children: /* @__PURE__ */ jsxs36("div", { ...gridCellProps, className: classNames2.gridCell, children: [
4114
- /* @__PURE__ */ jsx87("span", { children: item.rendered }),
4115
- allowsRemoving && /* @__PURE__ */ jsx87(
3939
+ children: /* @__PURE__ */ jsxs35("div", { ...gridCellProps, className: classNames2.gridCell, children: [
3940
+ /* @__PURE__ */ jsx88("span", { children: item.rendered }),
3941
+ allowsRemoving && /* @__PURE__ */ jsx88(
4116
3942
  CloseButton2,
4117
3943
  {
4118
3944
  ...removeButtonProps,
4119
- className: cn46("flex items-center", classNames2.closeButton)
3945
+ className: cn48("flex items-center", classNames2.closeButton)
4120
3946
  }
4121
3947
  )
4122
3948
  ] })
@@ -4125,7 +3951,7 @@ var Tag = ({ variant, size, item, state, ...rest }) => {
4125
3951
  };
4126
3952
 
4127
3953
  // src/TagGroup/TagGroup.tsx
4128
- import { jsx as jsx88 } from "react/jsx-runtime";
3954
+ import { jsx as jsx89 } from "react/jsx-runtime";
4129
3955
  import { createElement } from "react";
4130
3956
  var TagGroup = ({
4131
3957
  width,
@@ -4139,14 +3965,14 @@ var TagGroup = ({
4139
3965
  validationState: error ? "invalid" : "valid",
4140
3966
  ...rest
4141
3967
  };
4142
- const inputRef = useRef30(null);
3968
+ const inputRef = useRef26(null);
4143
3969
  const state = useListState(props);
4144
3970
  const { gridProps, labelProps, descriptionProps, errorMessageProps } = useTagGroup(props, state, inputRef);
4145
- const stateProps = useStateProps20({
3971
+ const stateProps = useStateProps16({
4146
3972
  error,
4147
3973
  required
4148
3974
  });
4149
- return /* @__PURE__ */ jsx88(
3975
+ return /* @__PURE__ */ jsx89(
4150
3976
  FieldBase,
4151
3977
  {
4152
3978
  width,
@@ -4159,7 +3985,7 @@ var TagGroup = ({
4159
3985
  errorMessageProps,
4160
3986
  stateProps,
4161
3987
  ...gridProps,
4162
- children: /* @__PURE__ */ jsx88(
3988
+ children: /* @__PURE__ */ jsx89(
4163
3989
  "div",
4164
3990
  {
4165
3991
  role: "presentation",
@@ -4191,10 +4017,10 @@ Tag2.Group = TagGroup;
4191
4017
  import { VisuallyHidden } from "@react-aria/visually-hidden";
4192
4018
 
4193
4019
  // src/XLoader/XLoader.tsx
4194
- import { forwardRef as forwardRef19 } from "react";
4020
+ import { forwardRef as forwardRef20 } from "react";
4195
4021
  import { SVG as SVG6 } from "@marigold/system";
4196
- import { jsx as jsx89, jsxs as jsxs37 } from "react/jsx-runtime";
4197
- 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(
4198
4024
  SVG6,
4199
4025
  {
4200
4026
  id: "XLoader",
@@ -4204,13 +4030,13 @@ var XLoader = forwardRef19((props, ref) => /* @__PURE__ */ jsxs37(
4204
4030
  ...props,
4205
4031
  ...ref,
4206
4032
  children: [
4207
- /* @__PURE__ */ jsx89("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
4208
- /* @__PURE__ */ jsx89(
4033
+ /* @__PURE__ */ jsx90("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
4034
+ /* @__PURE__ */ jsx90(
4209
4035
  "path",
4210
4036
  {
4211
4037
  id: "XMLID_5_",
4212
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",
4213
- children: /* @__PURE__ */ jsx89(
4039
+ children: /* @__PURE__ */ jsx90(
4214
4040
  "animate",
4215
4041
  {
4216
4042
  attributeName: "opacity",
@@ -4223,12 +4049,12 @@ var XLoader = forwardRef19((props, ref) => /* @__PURE__ */ jsxs37(
4223
4049
  )
4224
4050
  }
4225
4051
  ),
4226
- /* @__PURE__ */ jsx89(
4052
+ /* @__PURE__ */ jsx90(
4227
4053
  "path",
4228
4054
  {
4229
4055
  id: "XMLID_18_",
4230
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",
4231
- children: /* @__PURE__ */ jsx89(
4057
+ children: /* @__PURE__ */ jsx90(
4232
4058
  "animate",
4233
4059
  {
4234
4060
  attributeName: "opacity",
@@ -4241,12 +4067,12 @@ var XLoader = forwardRef19((props, ref) => /* @__PURE__ */ jsxs37(
4241
4067
  )
4242
4068
  }
4243
4069
  ),
4244
- /* @__PURE__ */ jsx89(
4070
+ /* @__PURE__ */ jsx90(
4245
4071
  "path",
4246
4072
  {
4247
4073
  id: "XMLID_19_",
4248
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",
4249
- children: /* @__PURE__ */ jsx89(
4075
+ children: /* @__PURE__ */ jsx90(
4250
4076
  "animate",
4251
4077
  {
4252
4078
  attributeName: "opacity",
@@ -4259,12 +4085,12 @@ var XLoader = forwardRef19((props, ref) => /* @__PURE__ */ jsxs37(
4259
4085
  )
4260
4086
  }
4261
4087
  ),
4262
- /* @__PURE__ */ jsx89(
4088
+ /* @__PURE__ */ jsx90(
4263
4089
  "path",
4264
4090
  {
4265
4091
  id: "XMLID_20_",
4266
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",
4267
- children: /* @__PURE__ */ jsx89(
4093
+ children: /* @__PURE__ */ jsx90(
4268
4094
  "animate",
4269
4095
  {
4270
4096
  attributeName: "opacity",
@@ -4277,12 +4103,12 @@ var XLoader = forwardRef19((props, ref) => /* @__PURE__ */ jsxs37(
4277
4103
  )
4278
4104
  }
4279
4105
  ),
4280
- /* @__PURE__ */ jsx89(
4106
+ /* @__PURE__ */ jsx90(
4281
4107
  "path",
4282
4108
  {
4283
4109
  id: "XMLID_21_",
4284
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",
4285
- children: /* @__PURE__ */ jsx89(
4111
+ children: /* @__PURE__ */ jsx90(
4286
4112
  "animate",
4287
4113
  {
4288
4114
  attributeName: "opacity",
@@ -4295,12 +4121,12 @@ var XLoader = forwardRef19((props, ref) => /* @__PURE__ */ jsxs37(
4295
4121
  )
4296
4122
  }
4297
4123
  ),
4298
- /* @__PURE__ */ jsx89(
4124
+ /* @__PURE__ */ jsx90(
4299
4125
  "path",
4300
4126
  {
4301
4127
  id: "XMLID_22_",
4302
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",
4303
- children: /* @__PURE__ */ jsx89(
4129
+ children: /* @__PURE__ */ jsx90(
4304
4130
  "animate",
4305
4131
  {
4306
4132
  attributeName: "opacity",
@@ -4313,12 +4139,12 @@ var XLoader = forwardRef19((props, ref) => /* @__PURE__ */ jsxs37(
4313
4139
  )
4314
4140
  }
4315
4141
  ),
4316
- /* @__PURE__ */ jsx89(
4142
+ /* @__PURE__ */ jsx90(
4317
4143
  "path",
4318
4144
  {
4319
4145
  id: "XMLID_23_",
4320
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",
4321
- children: /* @__PURE__ */ jsx89(
4147
+ children: /* @__PURE__ */ jsx90(
4322
4148
  "animate",
4323
4149
  {
4324
4150
  attributeName: "opacity",
@@ -4331,12 +4157,12 @@ var XLoader = forwardRef19((props, ref) => /* @__PURE__ */ jsxs37(
4331
4157
  )
4332
4158
  }
4333
4159
  ),
4334
- /* @__PURE__ */ jsx89(
4160
+ /* @__PURE__ */ jsx90(
4335
4161
  "path",
4336
4162
  {
4337
4163
  id: "XMLID_24_",
4338
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",
4339
- children: /* @__PURE__ */ jsx89(
4165
+ children: /* @__PURE__ */ jsx90(
4340
4166
  "animate",
4341
4167
  {
4342
4168
  attributeName: "opacity",
@@ -4349,12 +4175,12 @@ var XLoader = forwardRef19((props, ref) => /* @__PURE__ */ jsxs37(
4349
4175
  )
4350
4176
  }
4351
4177
  ),
4352
- /* @__PURE__ */ jsx89(
4178
+ /* @__PURE__ */ jsx90(
4353
4179
  "path",
4354
4180
  {
4355
4181
  id: "XMLID_25_",
4356
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",
4357
- children: /* @__PURE__ */ jsx89(
4183
+ children: /* @__PURE__ */ jsx90(
4358
4184
  "animate",
4359
4185
  {
4360
4186
  attributeName: "opacity",
@@ -4367,12 +4193,12 @@ var XLoader = forwardRef19((props, ref) => /* @__PURE__ */ jsxs37(
4367
4193
  )
4368
4194
  }
4369
4195
  ),
4370
- /* @__PURE__ */ jsx89(
4196
+ /* @__PURE__ */ jsx90(
4371
4197
  "path",
4372
4198
  {
4373
4199
  id: "XMLID_26_",
4374
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",
4375
- children: /* @__PURE__ */ jsx89(
4201
+ children: /* @__PURE__ */ jsx90(
4376
4202
  "animate",
4377
4203
  {
4378
4204
  attributeName: "opacity",
@@ -4385,12 +4211,12 @@ var XLoader = forwardRef19((props, ref) => /* @__PURE__ */ jsxs37(
4385
4211
  )
4386
4212
  }
4387
4213
  ),
4388
- /* @__PURE__ */ jsx89(
4214
+ /* @__PURE__ */ jsx90(
4389
4215
  "path",
4390
4216
  {
4391
4217
  id: "XMLID_27_",
4392
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",
4393
- children: /* @__PURE__ */ jsx89(
4219
+ children: /* @__PURE__ */ jsx90(
4394
4220
  "animate",
4395
4221
  {
4396
4222
  attributeName: "opacity",
@@ -4408,43 +4234,43 @@ var XLoader = forwardRef19((props, ref) => /* @__PURE__ */ jsxs37(
4408
4234
  ));
4409
4235
 
4410
4236
  // src/Tabs/Tabs.tsx
4411
- import { useRef as useRef33 } from "react";
4237
+ import { useRef as useRef29 } from "react";
4412
4238
  import { useTabList } from "@react-aria/tabs";
4413
4239
  import { Item as Item7 } from "@react-stately/collections";
4414
4240
  import { useTabListState } from "@react-stately/tabs";
4415
- 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";
4416
4242
 
4417
4243
  // src/Tabs/Context.ts
4418
- import { createContext as createContext9, useContext as useContext9 } from "react";
4419
- var TabContext = createContext9({});
4420
- var useTabContext = () => useContext9(TabContext);
4244
+ import { createContext as createContext7, useContext as useContext8 } from "react";
4245
+ var TabContext = createContext7({});
4246
+ var useTabContext = () => useContext8(TabContext);
4421
4247
 
4422
4248
  // src/Tabs/Tab.tsx
4423
- import { useRef as useRef31 } from "react";
4424
- 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";
4425
4251
  import { useTab } from "@react-aria/tabs";
4426
- import { mergeProps as mergeProps21 } from "@react-aria/utils";
4427
- import { cn as cn47, useStateProps as useStateProps21 } from "@marigold/system";
4428
- 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";
4429
4255
  var Tab = ({ item, state }) => {
4430
4256
  const { key, rendered } = item;
4431
- const ref = useRef31(null);
4257
+ const ref = useRef27(null);
4432
4258
  const { tabProps, isSelected } = useTab({ key }, state, ref);
4433
4259
  const disabled = tabProps["aria-disabled"];
4434
- const { hoverProps, isHovered } = useHover11({
4260
+ const { hoverProps, isHovered } = useHover7({
4435
4261
  isDisabled: disabled || isSelected
4436
4262
  });
4437
4263
  const { focusProps } = useFocus({});
4438
- const stateProps = useStateProps21({ active: isSelected, hover: isHovered });
4264
+ const stateProps = useStateProps17({ active: isSelected, hover: isHovered });
4439
4265
  const { classNames: classNames2 } = useTabContext();
4440
- return /* @__PURE__ */ jsx90(
4266
+ return /* @__PURE__ */ jsx91(
4441
4267
  "div",
4442
4268
  {
4443
- className: cn47(
4269
+ className: cn49(
4444
4270
  "flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
4445
4271
  classNames2.tab
4446
4272
  ),
4447
- ...mergeProps21(tabProps, stateProps, focusProps, hoverProps),
4273
+ ...mergeProps17(tabProps, stateProps, focusProps, hoverProps),
4448
4274
  ref,
4449
4275
  children: rendered
4450
4276
  }
@@ -4452,21 +4278,21 @@ var Tab = ({ item, state }) => {
4452
4278
  };
4453
4279
 
4454
4280
  // src/Tabs/TabPanel.tsx
4455
- import { useRef as useRef32 } from "react";
4281
+ import { useRef as useRef28 } from "react";
4456
4282
  import { useTabPanel } from "@react-aria/tabs";
4457
- import { cn as cn48 } from "@marigold/system";
4458
- 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";
4459
4285
  var TabPanel = ({ state, ...props }) => {
4460
4286
  var _a;
4461
- const ref = useRef32(null);
4287
+ const ref = useRef28(null);
4462
4288
  const { tabPanelProps } = useTabPanel(props, state, ref);
4463
4289
  const selectedItemProps = (_a = state.selectedItem) == null ? void 0 : _a.props;
4464
4290
  const { classNames: classNames2 } = useTabContext();
4465
- 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 });
4466
4292
  };
4467
4293
 
4468
4294
  // src/Tabs/Tabs.tsx
4469
- import { jsx as jsx92, jsxs as jsxs38 } from "react/jsx-runtime";
4295
+ import { jsx as jsx93, jsxs as jsxs37 } from "react/jsx-runtime";
4470
4296
  var Tabs = ({
4471
4297
  space = 2,
4472
4298
  size = "medium",
@@ -4475,31 +4301,31 @@ var Tabs = ({
4475
4301
  ...rest
4476
4302
  }) => {
4477
4303
  var _a;
4478
- const ref = useRef33(null);
4304
+ const ref = useRef29(null);
4479
4305
  const props = {
4480
4306
  isDisabled: disabled,
4481
4307
  ...rest
4482
4308
  };
4483
4309
  const state = useTabListState(props);
4484
4310
  const { tabListProps } = useTabList(props, state, ref);
4485
- const classNames2 = useClassNames44({
4311
+ const classNames2 = useClassNames46({
4486
4312
  component: "Tabs",
4487
4313
  size,
4488
4314
  variant
4489
4315
  });
4490
- return /* @__PURE__ */ jsx92(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsxs38("div", { className: cn49(classNames2.container), children: [
4491
- /* @__PURE__ */ jsx92(
4316
+ return /* @__PURE__ */ jsx93(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsxs37("div", { className: cn51(classNames2.container), children: [
4317
+ /* @__PURE__ */ jsx93(
4492
4318
  "div",
4493
4319
  {
4494
- className: cn49("flex", gapSpace8[space], classNames2.tabs),
4320
+ className: cn51("flex", gapSpace8[space], classNames2.tabs),
4495
4321
  ...tabListProps,
4496
4322
  ref,
4497
4323
  children: [...state.collection].map((item) => {
4498
- return /* @__PURE__ */ jsx92(Tab, { item, state }, item.key);
4324
+ return /* @__PURE__ */ jsx93(Tab, { item, state }, item.key);
4499
4325
  })
4500
4326
  }
4501
4327
  ),
4502
- /* @__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)
4503
4329
  ] }) });
4504
4330
  };
4505
4331
  Tabs.Item = Item7;
@@ -4526,7 +4352,7 @@ export {
4526
4352
  Container,
4527
4353
  DateField,
4528
4354
  DatePicker,
4529
- Dialog,
4355
+ _Dialog as Dialog,
4530
4356
  _Divider as Divider,
4531
4357
  FieldBase,
4532
4358
  FieldGroup,
@@ -4544,8 +4370,8 @@ export {
4544
4370
  MarigoldProvider,
4545
4371
  Menu,
4546
4372
  Message,
4547
- Modal,
4548
- NumberField,
4373
+ _Modal as Modal,
4374
+ _NumberField as NumberField,
4549
4375
  Overlay,
4550
4376
  Popover,
4551
4377
  _Radio as Radio,
@@ -4559,19 +4385,20 @@ export {
4559
4385
  Tabs,
4560
4386
  Tag2 as Tag,
4561
4387
  Text2 as Text,
4562
- TextArea,
4563
- TextField,
4388
+ _TextArea as TextArea,
4389
+ _TextField as TextField,
4564
4390
  ThemeProvider2 as ThemeProvider,
4565
4391
  Tiles,
4566
- Tooltip,
4392
+ _Tooltip as Tooltip,
4567
4393
  Tray,
4568
4394
  TrayWrapper,
4569
4395
  Underlay,
4570
4396
  VisuallyHidden,
4571
4397
  XLoader,
4572
4398
  _Slider,
4399
+ _TextArea,
4573
4400
  useAsyncList,
4574
4401
  useFieldGroupContext,
4575
4402
  useListData,
4576
- useTheme4 as useTheme
4403
+ useTheme5 as useTheme
4577
4404
  };