@marigold/components 15.2.0 → 15.3.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
@@ -206,7 +206,7 @@ var require_react_is_development = __commonJS({
206
206
  var ContextProvider = REACT_PROVIDER_TYPE;
207
207
  var Element2 = REACT_ELEMENT_TYPE;
208
208
  var ForwardRef = REACT_FORWARD_REF_TYPE;
209
- var Fragment12 = REACT_FRAGMENT_TYPE;
209
+ var Fragment13 = REACT_FRAGMENT_TYPE;
210
210
  var Lazy = REACT_LAZY_TYPE;
211
211
  var Memo = REACT_MEMO_TYPE;
212
212
  var Portal = REACT_PORTAL_TYPE;
@@ -265,7 +265,7 @@ var require_react_is_development = __commonJS({
265
265
  exports.ContextProvider = ContextProvider;
266
266
  exports.Element = Element2;
267
267
  exports.ForwardRef = ForwardRef;
268
- exports.Fragment = Fragment12;
268
+ exports.Fragment = Fragment13;
269
269
  exports.Lazy = Lazy;
270
270
  exports.Memo = Memo;
271
271
  exports.Portal = Portal;
@@ -882,17 +882,20 @@ var ChevronDown = forwardRef(
882
882
  // src/Accordion/AccordionHeader.tsx
883
883
  import { jsx as jsx2, jsxs } from "react/jsx-runtime";
884
884
  var AccordionHeader = ({ children }) => {
885
- const { classNames: classNames3 } = useAccordionContext();
885
+ const { classNames: classNames3, stickyHeader, iconPosition } = useAccordionContext();
886
886
  const { isExpanded } = useContext2(DisclosureStateContext);
887
- return /* @__PURE__ */ jsx2(Heading, { children: /* @__PURE__ */ jsxs(Button, { slot: "trigger", className: classNames3.header, children: [
888
- /* @__PURE__ */ jsx2("div", { className: "flex-1", children }),
889
- /* @__PURE__ */ jsx2(
890
- ChevronDown,
891
- {
892
- className: cn(classNames3.icon, isExpanded && "rotate-180")
893
- }
894
- )
895
- ] }) });
887
+ const chevronStyles = cn(classNames3.icon, isExpanded && "rotate-180");
888
+ return /* @__PURE__ */ jsx2(
889
+ "div",
890
+ {
891
+ className: stickyHeader ? "bg-background/90 sticky top-0 z-1 backdrop-blur-xs" : void 0,
892
+ children: /* @__PURE__ */ jsx2(Heading, { children: /* @__PURE__ */ jsxs(Button, { slot: "trigger", className: classNames3.header, children: [
893
+ iconPosition === "left" && /* @__PURE__ */ jsx2(ChevronDown, { className: chevronStyles }),
894
+ /* @__PURE__ */ jsx2("div", { className: "flex-1", children }),
895
+ iconPosition === "right" && /* @__PURE__ */ jsx2(ChevronDown, { className: chevronStyles })
896
+ ] }) })
897
+ }
898
+ );
896
899
  };
897
900
 
898
901
  // src/Accordion/AccordionItem.tsx
@@ -932,18 +935,26 @@ var Accordion = ({
932
935
  disabled,
933
936
  variant,
934
937
  size: size2,
938
+ stickyHeader = false,
939
+ iconPosition = "right",
935
940
  ...props
936
941
  }) => {
937
942
  const classNames3 = useClassNames({ component: "Accordion", variant, size: size2 });
938
- return /* @__PURE__ */ jsx5(AccordionProvider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ jsx5(
939
- DisclosureGroup,
943
+ return /* @__PURE__ */ jsx5(
944
+ AccordionProvider,
940
945
  {
941
- ...props,
942
- isDisabled: disabled,
943
- className: classNames3.container,
944
- children
946
+ value: { classNames: classNames3, stickyHeader, iconPosition },
947
+ children: /* @__PURE__ */ jsx5(
948
+ DisclosureGroup,
949
+ {
950
+ ...props,
951
+ isDisabled: disabled,
952
+ className: classNames3.container,
953
+ children
954
+ }
955
+ )
945
956
  }
946
- ) });
957
+ );
947
958
  };
948
959
  Accordion.Header = AccordionHeader;
949
960
  Accordion.Content = AccordionPanel;
@@ -1524,6 +1535,7 @@ var _Popover = forwardRef6(
1524
1535
  // src/intl/messages.ts
1525
1536
  var intlMessages2 = {
1526
1537
  "de-DE": {
1538
+ cancel: "Abbrechen",
1527
1539
  loadingMessage: "Lade...",
1528
1540
  noResultsFound: "Kein Ergebnis gefunden",
1529
1541
  removeAll: "Alle entfernen",
@@ -1533,6 +1545,7 @@ var intlMessages2 = {
1533
1545
  showLessCount: "{count} weniger anzeigen"
1534
1546
  },
1535
1547
  "en-US": {
1548
+ cancel: "Cancel",
1536
1549
  loadingMessage: "Loading...",
1537
1550
  noResultsFound: "No result found",
1538
1551
  removeAll: "Remove all",
@@ -1776,7 +1789,6 @@ var _Button = forwardRef13(
1776
1789
  ...props,
1777
1790
  ref,
1778
1791
  className: cn17(
1779
- "inline-flex items-center justify-center gap-[0.5ch]",
1780
1792
  classNames3,
1781
1793
  fullWidth ? "w-full" : void 0,
1782
1794
  loading && "cursor-progress!"
@@ -2404,6 +2416,10 @@ var _ContextualHelp = forwardRef15(
2404
2416
  _ContextualHelp.Title = ContextualHelpTitle;
2405
2417
  _ContextualHelp.Content = ContextualHelpContent;
2406
2418
 
2419
+ // src/Dialog/ConfirmationDialog.tsx
2420
+ import { useLocalizedStringFormatter as useLocalizedStringFormatter5 } from "@react-aria/i18n";
2421
+ import { chain } from "@react-aria/utils";
2422
+
2407
2423
  // src/Dialog/Dialog.tsx
2408
2424
  import {
2409
2425
  forwardRef as forwardRef19,
@@ -2435,13 +2451,15 @@ import { Modal } from "react-aria-components";
2435
2451
  import { useClassNames as useClassNames25 } from "@marigold/system";
2436
2452
  import { jsx as jsx44 } from "react/jsx-runtime";
2437
2453
  var _Modal = forwardRef17(
2438
- ({ size: size2, open, dismissable, keyboardDismissable, onOpenChange, ...rest }, ref) => {
2439
- const props = {
2440
- isOpen: open,
2441
- isDismissable: dismissable,
2442
- isKeyboardDismissDisabled: keyboardDismissable,
2443
- ...rest
2444
- };
2454
+ ({
2455
+ size: size2,
2456
+ open,
2457
+ dismissable,
2458
+ keyboardDismissable,
2459
+ onOpenChange,
2460
+ children,
2461
+ ...props
2462
+ }, ref) => {
2445
2463
  const className = useClassNames25({ component: "Modal", size: size2 });
2446
2464
  return /* @__PURE__ */ jsx44(
2447
2465
  Underlay,
@@ -2450,7 +2468,7 @@ var _Modal = forwardRef17(
2450
2468
  keyboardDismissable,
2451
2469
  open,
2452
2470
  onOpenChange,
2453
- children: /* @__PURE__ */ jsx44(Modal, { ...props, className, ref, children: props.children })
2471
+ children: /* @__PURE__ */ jsx44(Modal, { ...props, className, ref, children })
2454
2472
  }
2455
2473
  );
2456
2474
  }
@@ -2613,6 +2631,10 @@ var NonModal = forwardRef18(
2613
2631
  }
2614
2632
  );
2615
2633
 
2634
+ // src/Dialog/Context.tsx
2635
+ import { createContext as createContext5 } from "react";
2636
+ var DialogContext = createContext5({});
2637
+
2616
2638
  // src/Dialog/DialogActions.tsx
2617
2639
  import { cn as cn24, useClassNames as useClassNames26 } from "@marigold/system";
2618
2640
  import { jsx as jsx46 } from "react/jsx-runtime";
@@ -2647,72 +2669,77 @@ var DialogTitle = ({ variant, size: size2, children }) => {
2647
2669
  };
2648
2670
 
2649
2671
  // src/Dialog/DialogTrigger.tsx
2650
- import { createContext as createContext5 } from "react";
2651
2672
  import { DialogTrigger as DialogTrigger2 } from "react-aria-components";
2652
2673
  import { PressResponder } from "@react-aria/interactions";
2653
2674
  import { jsx as jsx49 } from "react/jsx-runtime";
2654
- var DialogContext = createContext5({});
2655
2675
  var _DialogTrigger = ({
2656
2676
  open,
2657
2677
  dismissable,
2658
2678
  keyboardDismissable,
2659
2679
  ...rest
2660
2680
  }) => {
2681
+ const ctx = {
2682
+ isDismissable: dismissable,
2683
+ isKeyboardDismissDisabled: !keyboardDismissable
2684
+ };
2661
2685
  const props = {
2662
2686
  isOpen: open,
2663
- isDismissable: dismissable,
2664
- isKeyboardDismissDisabled: !keyboardDismissable,
2665
2687
  ...rest
2666
2688
  };
2667
- return /* @__PURE__ */ jsx49(DialogContext.Provider, { value: props, children: /* @__PURE__ */ jsx49(DialogTrigger2, { ...props, children: /* @__PURE__ */ jsx49(PressResponder, { isPressed: false, children: props.children }) }) });
2689
+ return /* @__PURE__ */ jsx49(DialogContext.Provider, { value: ctx, children: /* @__PURE__ */ jsx49(DialogTrigger2, { ...props, children: /* @__PURE__ */ jsx49(PressResponder, { isPressed: false, children: props.children }) }) });
2668
2690
  };
2669
2691
 
2670
2692
  // src/Dialog/Dialog.tsx
2671
2693
  import { jsx as jsx50, jsxs as jsxs19 } from "react/jsx-runtime";
2672
- var _Dialog = forwardRef19(
2673
- ({ variant, size: size2, ...props }, ref) => {
2694
+ var InnerDialog = forwardRef19(
2695
+ ({ variant, size: size2, closeButton, ...props }, ref) => {
2674
2696
  var _a;
2697
+ const state = useContext9(OverlayTriggerStateContext2);
2675
2698
  const classNames3 = useClassNames29({
2676
2699
  component: "Dialog",
2677
2700
  variant,
2678
2701
  size: size2
2679
2702
  });
2680
- const { isDismissable, isKeyboardDismissDisabled, isOpen, onOpenChange } = useContext9(DialogContext);
2681
- const state = useContext9(OverlayTriggerStateContext2);
2682
2703
  const children = typeof props.children === "function" ? props.children({
2683
2704
  close: (_a = state == null ? void 0 : state.close) != null ? _a : (() => {
2684
2705
  })
2685
2706
  }) : props.children;
2707
+ return /* @__PURE__ */ jsxs19(
2708
+ Dialog2,
2709
+ {
2710
+ ...props,
2711
+ ref,
2712
+ className: cn27(
2713
+ "relative mx-auto outline-hidden",
2714
+ "grid [grid-template-areas:'title'_'content'_'actions']",
2715
+ classNames3.container
2716
+ ),
2717
+ children: [
2718
+ closeButton && /* @__PURE__ */ jsx50(
2719
+ CloseButton,
2720
+ {
2721
+ className: classNames3.closeButton,
2722
+ onPress: state == null ? void 0 : state.close
2723
+ }
2724
+ ),
2725
+ children
2726
+ ]
2727
+ }
2728
+ );
2729
+ }
2730
+ );
2731
+ var _Dialog = forwardRef19(
2732
+ ({ open, onOpenChange, children, ...props }, ref) => {
2733
+ const ctx = useContext9(DialogContext);
2686
2734
  return /* @__PURE__ */ jsx50(
2687
2735
  _Modal,
2688
2736
  {
2689
- dismissable: isDismissable,
2690
- keyboardDismissable: isKeyboardDismissDisabled,
2691
- open: isOpen,
2692
- size: size2,
2737
+ size: props.size,
2738
+ dismissable: ctx.isDismissable,
2739
+ keyboardDismissable: ctx.isKeyboardDismissDisabled,
2740
+ open: typeof open === "boolean" ? open : void 0,
2693
2741
  onOpenChange,
2694
- children: /* @__PURE__ */ jsxs19(
2695
- Dialog2,
2696
- {
2697
- ...props,
2698
- ref,
2699
- className: cn27(
2700
- "relative mx-auto outline-hidden [&>*:not(:last-child)]:mb-4",
2701
- "grid [grid-template-areas:'title'_'content'_'actions']",
2702
- classNames3.container
2703
- ),
2704
- children: [
2705
- props.closeButton && /* @__PURE__ */ jsx50(
2706
- CloseButton,
2707
- {
2708
- className: classNames3.closeButton,
2709
- onPress: state == null ? void 0 : state.close
2710
- }
2711
- ),
2712
- children
2713
- ]
2714
- }
2715
- )
2742
+ children: /* @__PURE__ */ jsx50(InnerDialog, { ref, ...props, children })
2716
2743
  }
2717
2744
  );
2718
2745
  }
@@ -2722,32 +2749,128 @@ _Dialog.Title = DialogTitle;
2722
2749
  _Dialog.Content = DialogContent;
2723
2750
  _Dialog.Actions = DialogActions;
2724
2751
 
2752
+ // src/Dialog/ConfirmationDialog.tsx
2753
+ import { Fragment as Fragment4, jsx as jsx51, jsxs as jsxs20 } from "react/jsx-runtime";
2754
+ var ConfirmationDialog = ({
2755
+ title,
2756
+ confirmationLabel,
2757
+ cancelLabel,
2758
+ onCancel,
2759
+ onConfirm,
2760
+ autoFocusButton,
2761
+ children,
2762
+ variant,
2763
+ size: size2 = "xsmall",
2764
+ ...props
2765
+ }) => {
2766
+ const stringFormatter = useLocalizedStringFormatter5(intlMessages2, "marigold");
2767
+ return /* @__PURE__ */ jsx51(_Dialog, { role: "alertdialog", variant, size: size2, ...props, children: ({ close }) => /* @__PURE__ */ jsxs20(Fragment4, { children: [
2768
+ /* @__PURE__ */ jsx51(_Dialog.Title, { children: title }),
2769
+ /* @__PURE__ */ jsx51(_Dialog.Content, { children }),
2770
+ /* @__PURE__ */ jsxs20(_Dialog.Actions, { children: [
2771
+ /* @__PURE__ */ jsx51(
2772
+ _Button,
2773
+ {
2774
+ onPress: () => chain(close(), onCancel == null ? void 0 : onCancel()),
2775
+ autoFocus: autoFocusButton === "cancel",
2776
+ children: cancelLabel != null ? cancelLabel : stringFormatter.format("cancel")
2777
+ }
2778
+ ),
2779
+ /* @__PURE__ */ jsx51(
2780
+ _Button,
2781
+ {
2782
+ variant: variant === "destructive" ? "destructive" : "primary",
2783
+ onPress: () => chain(close(), onConfirm == null ? void 0 : onConfirm()),
2784
+ autoFocus: autoFocusButton === "action",
2785
+ children: confirmationLabel
2786
+ }
2787
+ )
2788
+ ] })
2789
+ ] }) });
2790
+ };
2791
+ ConfirmationDialog.Trigger = _Dialog.Trigger;
2792
+
2793
+ // src/Dialog/useConfirmation.tsx
2794
+ import { useContext as useContext10 } from "react";
2795
+ import { createContext as createContext6, useState as useState2 } from "react";
2796
+ import { jsx as jsx52, jsxs as jsxs21 } from "react/jsx-runtime";
2797
+ var ConfirmationContext = createContext6(null);
2798
+ var ConfirmationProvider = ({ children }) => {
2799
+ const [confirmation, setConfirmation] = useState2(
2800
+ null
2801
+ );
2802
+ const [open, setOpen] = useState2(false);
2803
+ const confirm = (config) => {
2804
+ if (open) {
2805
+ console.warn(
2806
+ "A confirmation dialog is already open. Rejecting new request."
2807
+ );
2808
+ return Promise.resolve("cancelled");
2809
+ }
2810
+ return new Promise((resolve) => {
2811
+ setConfirmation({ ...config, resolve });
2812
+ setOpen(true);
2813
+ });
2814
+ };
2815
+ return /* @__PURE__ */ jsxs21(ConfirmationContext.Provider, { value: confirm, children: [
2816
+ children,
2817
+ /* @__PURE__ */ jsx52(
2818
+ ConfirmationDialog,
2819
+ {
2820
+ open,
2821
+ onOpenChange: setOpen,
2822
+ variant: confirmation == null ? void 0 : confirmation.variant,
2823
+ size: "xsmall",
2824
+ title: (confirmation == null ? void 0 : confirmation.title) || "",
2825
+ confirmationLabel: (confirmation == null ? void 0 : confirmation.confirmationLabel) || "Confirm",
2826
+ cancelLabel: confirmation == null ? void 0 : confirmation.cancelLabel,
2827
+ onConfirm: () => {
2828
+ confirmation == null ? void 0 : confirmation.resolve("confirmed");
2829
+ },
2830
+ onCancel: () => {
2831
+ confirmation == null ? void 0 : confirmation.resolve("cancelled");
2832
+ },
2833
+ children: confirmation == null ? void 0 : confirmation.content
2834
+ }
2835
+ )
2836
+ ] });
2837
+ };
2838
+ var useConfirmation = () => {
2839
+ const confirm = useContext10(ConfirmationContext);
2840
+ if (confirm === null) {
2841
+ throw new Error(
2842
+ "`useConfirmation` must be used within a `ConfirmationProvider`"
2843
+ );
2844
+ }
2845
+ return confirm;
2846
+ };
2847
+
2725
2848
  // src/Divider/Divider.tsx
2726
2849
  import { Separator } from "react-aria-components";
2727
2850
  import { cn as cn28, useClassNames as useClassNames30 } from "@marigold/system";
2728
- import { jsx as jsx51 } from "react/jsx-runtime";
2851
+ import { jsx as jsx53 } from "react/jsx-runtime";
2729
2852
  var _Divider = ({ variant, ...props }) => {
2730
2853
  const classNames3 = useClassNames30({ component: "Divider", variant });
2731
- return /* @__PURE__ */ jsx51(Separator, { className: cn28("border-none", classNames3), ...props });
2854
+ return /* @__PURE__ */ jsx53(Separator, { className: cn28("border-none", classNames3), ...props });
2732
2855
  };
2733
2856
 
2734
2857
  // src/Drawer/Drawer.tsx
2735
- import { useContext as useContext11, useRef } from "react";
2858
+ import { useContext as useContext12, useRef } from "react";
2736
2859
  import { Dialog as Dialog3, OverlayTriggerStateContext as OverlayTriggerStateContext3 } from "react-aria-components";
2737
2860
  import { useLandmark } from "@react-aria/landmark";
2738
2861
  import { cn as cn33, useClassNames as useClassNames34, useSmallScreen as useSmallScreen3 } from "@marigold/system";
2739
2862
 
2740
2863
  // src/Drawer/Context.tsx
2741
- import { createContext as createContext6, useContext as useContext10 } from "react";
2742
- var DrawerContext = createContext6({
2864
+ import { createContext as createContext7, useContext as useContext11 } from "react";
2865
+ var DrawerContext = createContext7({
2743
2866
  variant: void 0,
2744
2867
  size: void 0
2745
2868
  });
2746
- var useDrawerContext = () => useContext10(DrawerContext);
2869
+ var useDrawerContext = () => useContext11(DrawerContext);
2747
2870
 
2748
2871
  // src/Drawer/DrawerActions.tsx
2749
2872
  import { cn as cn29, useClassNames as useClassNames31 } from "@marigold/system";
2750
- import { jsx as jsx52 } from "react/jsx-runtime";
2873
+ import { jsx as jsx54 } from "react/jsx-runtime";
2751
2874
  var DrawerActions = ({ variant, size: size2, children }) => {
2752
2875
  const ctx = useDrawerContext();
2753
2876
  const classNames3 = useClassNames31({
@@ -2755,7 +2878,7 @@ var DrawerActions = ({ variant, size: size2, children }) => {
2755
2878
  variant: variant != null ? variant : ctx.variant,
2756
2879
  size: size2 != null ? size2 : ctx.size
2757
2880
  });
2758
- return /* @__PURE__ */ jsx52(
2881
+ return /* @__PURE__ */ jsx54(
2759
2882
  "div",
2760
2883
  {
2761
2884
  className: cn29("[grid-area:actions]", classNames3.actions),
@@ -2767,7 +2890,7 @@ var DrawerActions = ({ variant, size: size2, children }) => {
2767
2890
 
2768
2891
  // src/Drawer/DrawerContent.tsx
2769
2892
  import { cn as cn30, useClassNames as useClassNames32 } from "@marigold/system";
2770
- import { jsx as jsx53 } from "react/jsx-runtime";
2893
+ import { jsx as jsx55 } from "react/jsx-runtime";
2771
2894
  var DrawerContent = ({
2772
2895
  variant,
2773
2896
  size: size2,
@@ -2779,7 +2902,7 @@ var DrawerContent = ({
2779
2902
  variant: variant != null ? variant : ctx.variant,
2780
2903
  size: size2 != null ? size2 : ctx.size
2781
2904
  });
2782
- return /* @__PURE__ */ jsx53(
2905
+ return /* @__PURE__ */ jsx55(
2783
2906
  "div",
2784
2907
  {
2785
2908
  className: cn30("[grid-area:content]", classNames3.content),
@@ -2792,13 +2915,13 @@ var DrawerContent = ({
2792
2915
  // src/Drawer/DrawerModal.tsx
2793
2916
  import { Modal as Modal2, ModalOverlay as ModalOverlay2 } from "react-aria-components";
2794
2917
  import { cn as cn31, useSmallScreen as useSmallScreen2 } from "@marigold/system";
2795
- import { jsx as jsx54 } from "react/jsx-runtime";
2796
- var MobileModal = ({ children, ...props }) => /* @__PURE__ */ jsx54(
2918
+ import { jsx as jsx56 } from "react/jsx-runtime";
2919
+ var MobileModal = ({ children, ...props }) => /* @__PURE__ */ jsx56(
2797
2920
  ModalOverlay2,
2798
2921
  {
2799
2922
  ...props,
2800
2923
  className: "fixed inset-0 z-40 h-(--visual-viewport-height)",
2801
- children: /* @__PURE__ */ jsx54(Modal2, { className: "flex *:flex-1", children })
2924
+ children: /* @__PURE__ */ jsx56(Modal2, { className: "flex *:flex-1", children })
2802
2925
  }
2803
2926
  );
2804
2927
  var DrawerModal = ({
@@ -2807,13 +2930,13 @@ var DrawerModal = ({
2807
2930
  ...props
2808
2931
  }) => {
2809
2932
  const isSmallScreen = useSmallScreen2();
2810
- return isSmallScreen ? /* @__PURE__ */ jsx54(MobileModal, { children }) : /* @__PURE__ */ jsx54(NonModal, { ...props, className: cn31("fixed", className), children });
2933
+ return isSmallScreen ? /* @__PURE__ */ jsx56(MobileModal, { children }) : /* @__PURE__ */ jsx56(NonModal, { ...props, className: cn31("fixed", className), children });
2811
2934
  };
2812
2935
 
2813
2936
  // src/Drawer/DrawerTitle.tsx
2814
2937
  import { Header as Header3, Heading as Heading5 } from "react-aria-components";
2815
2938
  import { cn as cn32, useClassNames as useClassNames33 } from "@marigold/system";
2816
- import { jsx as jsx55 } from "react/jsx-runtime";
2939
+ import { jsx as jsx57 } from "react/jsx-runtime";
2817
2940
  var DrawerTitle = ({ variant, size: size2, children }) => {
2818
2941
  const classNames3 = useClassNames33({
2819
2942
  component: "Drawer",
@@ -2821,27 +2944,27 @@ var DrawerTitle = ({ variant, size: size2, children }) => {
2821
2944
  variant,
2822
2945
  context: DrawerContext
2823
2946
  });
2824
- return /* @__PURE__ */ jsx55(
2947
+ return /* @__PURE__ */ jsx57(
2825
2948
  Header3,
2826
2949
  {
2827
2950
  className: cn32("[grid-area:title]", classNames3.header),
2828
2951
  style: { "--i": 0 },
2829
- children: /* @__PURE__ */ jsx55(Heading5, { slot: "title", level: 2, className: classNames3.title, children })
2952
+ children: /* @__PURE__ */ jsx57(Heading5, { slot: "title", level: 2, className: classNames3.title, children })
2830
2953
  }
2831
2954
  );
2832
2955
  };
2833
2956
 
2834
2957
  // src/Drawer/DrawerTrigger.tsx
2835
2958
  import { DialogTrigger as DialogTrigger3 } from "react-aria-components";
2836
- import { jsx as jsx56 } from "react/jsx-runtime";
2959
+ import { jsx as jsx58 } from "react/jsx-runtime";
2837
2960
  var DrawerTrigger = ({
2838
2961
  open,
2839
2962
  children,
2840
2963
  ...props
2841
- }) => /* @__PURE__ */ jsx56(DialogTrigger3, { isOpen: open, ...props, children });
2964
+ }) => /* @__PURE__ */ jsx58(DialogTrigger3, { isOpen: open, ...props, children });
2842
2965
 
2843
2966
  // src/Drawer/Drawer.tsx
2844
- import { jsx as jsx57, jsxs as jsxs20 } from "react/jsx-runtime";
2967
+ import { jsx as jsx59, jsxs as jsxs22 } from "react/jsx-runtime";
2845
2968
  var Drawer = ({
2846
2969
  children,
2847
2970
  size: size2 = "medium",
@@ -2859,11 +2982,11 @@ var Drawer = ({
2859
2982
  variant,
2860
2983
  size: size2
2861
2984
  });
2862
- const ctx = useContext11(OverlayTriggerStateContext3);
2985
+ const ctx = useContext12(OverlayTriggerStateContext3);
2863
2986
  const isSmallScreen = useSmallScreen3();
2864
2987
  const landmarkAria = useLandmark({ ...props, role }, ref);
2865
2988
  const landmarkProps = isSmallScreen ? {} : landmarkAria.landmarkProps;
2866
- return /* @__PURE__ */ jsx57(
2989
+ return /* @__PURE__ */ jsx59(
2867
2990
  DrawerModal,
2868
2991
  {
2869
2992
  className: classNames3.overlay,
@@ -2871,7 +2994,7 @@ var Drawer = ({
2871
2994
  keyboardDismissable,
2872
2995
  "data-testid": "drawer-modal",
2873
2996
  "data-placement": placement,
2874
- children: /* @__PURE__ */ jsx57(DrawerContext.Provider, { value: { variant, size: size2 }, children: /* @__PURE__ */ jsxs20(
2997
+ children: /* @__PURE__ */ jsx59(DrawerContext.Provider, { value: { variant, size: size2 }, children: /* @__PURE__ */ jsxs22(
2875
2998
  Dialog3,
2876
2999
  {
2877
3000
  ...props,
@@ -2883,7 +3006,7 @@ var Drawer = ({
2883
3006
  ),
2884
3007
  "data-placement": placement,
2885
3008
  children: [
2886
- closeButton && /* @__PURE__ */ jsx57(
3009
+ closeButton && /* @__PURE__ */ jsx59(
2887
3010
  CloseButton,
2888
3011
  {
2889
3012
  "aria-label": "dismiss drawer",
@@ -2907,8 +3030,8 @@ Drawer.Actions = DrawerActions;
2907
3030
  // src/Form/Form.tsx
2908
3031
  import { Form } from "react-aria-components";
2909
3032
  import { cn as cn34, maxWidth as twMaxWidth } from "@marigold/system";
2910
- import { jsx as jsx58 } from "react/jsx-runtime";
2911
- var _Form = ({ unstyled, maxWidth = "full", ...props }) => /* @__PURE__ */ jsx58(
3033
+ import { jsx as jsx60 } from "react/jsx-runtime";
3034
+ var _Form = ({ unstyled, maxWidth = "full", ...props }) => /* @__PURE__ */ jsx60(
2912
3035
  Form,
2913
3036
  {
2914
3037
  ...props,
@@ -2920,11 +3043,11 @@ var _Form = ({ unstyled, maxWidth = "full", ...props }) => /* @__PURE__ */ jsx58
2920
3043
  import { alignment, cn as cn35, gapSpace as gapSpace6, height as twHeight } from "@marigold/system";
2921
3044
 
2922
3045
  // src/Grid/GridArea.tsx
2923
- import { jsx as jsx59 } from "react/jsx-runtime";
2924
- var GridArea = ({ name, children }) => /* @__PURE__ */ jsx59("div", { style: { gridArea: name }, children });
3046
+ import { jsx as jsx61 } from "react/jsx-runtime";
3047
+ var GridArea = ({ name, children }) => /* @__PURE__ */ jsx61("div", { style: { gridArea: name }, children });
2925
3048
 
2926
3049
  // src/Grid/Grid.tsx
2927
- import { jsx as jsx60 } from "react/jsx-runtime";
3050
+ import { jsx as jsx62 } from "react/jsx-runtime";
2928
3051
  var parseGridAreas = (areas) => areas.map((area) => `"${area}"`).join("\n");
2929
3052
  var parseTemplateValue = (values) => values.map((val) => typeof val === "number" ? `${val}fr` : val).join(" ");
2930
3053
  var Grid = ({
@@ -2939,7 +3062,7 @@ var Grid = ({
2939
3062
  ...props
2940
3063
  }) => {
2941
3064
  var _a, _b, _c, _d;
2942
- return /* @__PURE__ */ jsx60(
3065
+ return /* @__PURE__ */ jsx62(
2943
3066
  "div",
2944
3067
  {
2945
3068
  className: cn35(
@@ -2969,7 +3092,7 @@ import {
2969
3092
  textAlign,
2970
3093
  useClassNames as useClassNames35
2971
3094
  } from "@marigold/system";
2972
- import { jsx as jsx61 } from "react/jsx-runtime";
3095
+ import { jsx as jsx63 } from "react/jsx-runtime";
2973
3096
  var _Headline = ({
2974
3097
  variant,
2975
3098
  size: size2,
@@ -2984,7 +3107,7 @@ var _Headline = ({
2984
3107
  variant,
2985
3108
  size: size2 != null ? size2 : `level-${level}`
2986
3109
  });
2987
- return /* @__PURE__ */ jsx61(
3110
+ return /* @__PURE__ */ jsx63(
2988
3111
  Heading6,
2989
3112
  {
2990
3113
  level: Number(level),
@@ -3003,25 +3126,31 @@ var _Headline = ({
3003
3126
 
3004
3127
  // src/Inline/Inline.tsx
3005
3128
  import { alignment as alignment2, cn as cn37, gapSpace as gapSpace7 } from "@marigold/system";
3006
- import { jsx as jsx62 } from "react/jsx-runtime";
3129
+ import { jsx as jsx64 } from "react/jsx-runtime";
3130
+ var inlineAlignmentY = {
3131
+ ...alignment2.horizontal.alignmentY,
3132
+ input: "items-end [&:has([slot=description])]:items-end [&:has([slot=description])_button]:mb-6 [&:has([slot=errorMessage])]:mb-6"
3133
+ };
3007
3134
  var Inline = ({
3008
3135
  space = 0,
3136
+ noWrap,
3009
3137
  alignX,
3010
3138
  alignY,
3011
3139
  children,
3012
3140
  ...props
3013
3141
  }) => {
3014
- var _a, _b, _c, _d;
3015
- return /* @__PURE__ */ jsx62(
3142
+ var _a, _b;
3143
+ return /* @__PURE__ */ jsx64(
3016
3144
  "div",
3017
3145
  {
3018
3146
  ...props,
3019
3147
  className: cn37(
3020
- "flex flex-wrap",
3148
+ "flex",
3149
+ !noWrap && "flex-wrap",
3150
+ // flexbox defaults to no-wrap
3021
3151
  gapSpace7[space],
3022
3152
  alignX && ((_b = (_a = alignment2) == null ? void 0 : _a.horizontal) == null ? void 0 : _b.alignmentX[alignX]),
3023
- alignY === "input" && "items-end [&:has([slot=description])]:items-end [&:has([slot=description])_button]:mb-6 [&:has([slot=errorMessage])]:mb-6",
3024
- alignY && alignY !== "input" && ((_d = (_c = alignment2) == null ? void 0 : _c.horizontal) == null ? void 0 : _d.alignmentY[alignY])
3153
+ alignY && inlineAlignmentY[alignY]
3025
3154
  ),
3026
3155
  children
3027
3156
  }
@@ -3039,9 +3168,9 @@ import { useClassNames as useClassNames36 } from "@marigold/system";
3039
3168
  // src/DateField/DateSegment.tsx
3040
3169
  import { DateSegment } from "react-aria-components";
3041
3170
  import { cn as cn38 } from "@marigold/system";
3042
- import { Fragment as Fragment4, jsx as jsx63, jsxs as jsxs21 } from "react/jsx-runtime";
3171
+ import { Fragment as Fragment5, jsx as jsx65, jsxs as jsxs23 } from "react/jsx-runtime";
3043
3172
  var _DateSegment = ({ segment, ...props }) => {
3044
- return /* @__PURE__ */ jsx63(
3173
+ return /* @__PURE__ */ jsx65(
3045
3174
  DateSegment,
3046
3175
  {
3047
3176
  ...props,
@@ -3049,8 +3178,8 @@ var _DateSegment = ({ segment, ...props }) => {
3049
3178
  style: {
3050
3179
  minWidth: segment.maxValue != null ? `${String(segment.maxValue).length}ch` : void 0
3051
3180
  },
3052
- children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */ jsxs21(Fragment4, { children: [
3053
- /* @__PURE__ */ jsx63(
3181
+ children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */ jsxs23(Fragment5, { children: [
3182
+ /* @__PURE__ */ jsx65(
3054
3183
  "span",
3055
3184
  {
3056
3185
  "aria-hidden": "true",
@@ -3061,24 +3190,24 @@ var _DateSegment = ({ segment, ...props }) => {
3061
3190
  children: isPlaceholder && (placeholder == null ? void 0 : placeholder.toUpperCase())
3062
3191
  }
3063
3192
  ),
3064
- /* @__PURE__ */ jsx63("span", { children: isPlaceholder ? "" : segment.type === "month" || segment.type === "day" ? segment.text.padStart(2, "0") : text })
3193
+ /* @__PURE__ */ jsx65("span", { children: isPlaceholder ? "" : segment.type === "month" || segment.type === "day" ? segment.text.padStart(2, "0") : text })
3065
3194
  ] })
3066
3195
  }
3067
3196
  );
3068
3197
  };
3069
3198
 
3070
3199
  // src/DateField/DateInput.tsx
3071
- import { jsx as jsx64, jsxs as jsxs22 } from "react/jsx-runtime";
3200
+ import { jsx as jsx66, jsxs as jsxs24 } from "react/jsx-runtime";
3072
3201
  var _DateInput = ({ variant, size: size2, action, ...props }) => {
3073
3202
  const classNames3 = useClassNames36({ component: "DateField", variant, size: size2 });
3074
- return /* @__PURE__ */ jsxs22(Group, { className: classNames3.field, children: [
3075
- /* @__PURE__ */ jsx64(DateInput, { className: "flex flex-1 items-center", ...props, children: (segment) => /* @__PURE__ */ jsx64(_DateSegment, { className: classNames3.segment, segment }) }),
3203
+ return /* @__PURE__ */ jsxs24(Group, { className: classNames3.field, children: [
3204
+ /* @__PURE__ */ jsx66(DateInput, { className: "flex flex-1 items-center", ...props, children: (segment) => /* @__PURE__ */ jsx66(_DateSegment, { className: classNames3.segment, segment }) }),
3076
3205
  action ? action : null
3077
3206
  ] });
3078
3207
  };
3079
3208
 
3080
3209
  // src/DateField/DateField.tsx
3081
- import { jsx as jsx65 } from "react/jsx-runtime";
3210
+ import { jsx as jsx67 } from "react/jsx-runtime";
3082
3211
  var _DateField = forwardRef20(
3083
3212
  ({
3084
3213
  variant,
@@ -3097,7 +3226,7 @@ var _DateField = forwardRef20(
3097
3226
  isRequired: required,
3098
3227
  ...rest
3099
3228
  };
3100
- return /* @__PURE__ */ jsx65(
3229
+ return /* @__PURE__ */ jsx67(
3101
3230
  FieldBase,
3102
3231
  {
3103
3232
  as: DateField,
@@ -3105,14 +3234,14 @@ var _DateField = forwardRef20(
3105
3234
  size: size2,
3106
3235
  ref,
3107
3236
  ...props,
3108
- children: /* @__PURE__ */ jsx65(_DateInput, { action })
3237
+ children: /* @__PURE__ */ jsx67(_DateInput, { action })
3109
3238
  }
3110
3239
  );
3111
3240
  }
3112
3241
  );
3113
3242
 
3114
3243
  // src/Calendar/Calendar.tsx
3115
- import { useState as useState2 } from "react";
3244
+ import { useState as useState3 } from "react";
3116
3245
  import { Calendar } from "react-aria-components";
3117
3246
  import {
3118
3247
  cn as cn43,
@@ -3130,14 +3259,14 @@ import { cn as cn39, useClassNames as useClassNames38 } from "@marigold/system";
3130
3259
 
3131
3260
  // src/Calendar/CalendarGridHeader.tsx
3132
3261
  import { startOfWeek, today } from "@internationalized/date";
3133
- import { useContext as useContext12, useMemo as useMemo2 } from "react";
3262
+ import { useContext as useContext13, useMemo as useMemo2 } from "react";
3134
3263
  import { CalendarStateContext } from "react-aria-components";
3135
3264
  import { useCalendarGrid } from "@react-aria/calendar";
3136
3265
  import { useDateFormatter, useLocale } from "@react-aria/i18n";
3137
3266
  import { useClassNames as useClassNames37 } from "@marigold/system";
3138
- import { jsx as jsx66 } from "react/jsx-runtime";
3267
+ import { jsx as jsx68 } from "react/jsx-runtime";
3139
3268
  function CalendarGridHeader(props) {
3140
- const state = useContext12(CalendarStateContext);
3269
+ const state = useContext13(CalendarStateContext);
3141
3270
  const { headerProps } = useCalendarGrid(props, state);
3142
3271
  const { locale } = useLocale();
3143
3272
  const dayFormatter = useDateFormatter({
@@ -3153,16 +3282,16 @@ function CalendarGridHeader(props) {
3153
3282
  });
3154
3283
  }, [locale, state.timeZone, dayFormatter]);
3155
3284
  const classNames3 = useClassNames37({ component: "Calendar" });
3156
- return /* @__PURE__ */ jsx66("thead", { ...headerProps, children: /* @__PURE__ */ jsx66("tr", { children: weekDays.map((day, index2) => /* @__PURE__ */ jsx66("th", { className: classNames3.calendarHeader, children: day.substring(0, 2) }, index2)) }) });
3285
+ return /* @__PURE__ */ jsx68("thead", { ...headerProps, children: /* @__PURE__ */ jsx68("tr", { children: weekDays.map((day, index2) => /* @__PURE__ */ jsx68("th", { className: classNames3.calendarHeader, children: day.substring(0, 2) }, index2)) }) });
3157
3286
  }
3158
3287
 
3159
3288
  // src/Calendar/CalendarGrid.tsx
3160
- import { jsx as jsx67, jsxs as jsxs23 } from "react/jsx-runtime";
3289
+ import { jsx as jsx69, jsxs as jsxs25 } from "react/jsx-runtime";
3161
3290
  var _CalendarGrid = () => {
3162
3291
  const classNames3 = useClassNames38({ component: "Calendar" });
3163
- return /* @__PURE__ */ jsxs23(CalendarGrid, { className: classNames3.calendarGrid, children: [
3164
- /* @__PURE__ */ jsx67(CalendarGridHeader, {}),
3165
- /* @__PURE__ */ jsx67(CalendarGridBody, { children: (date) => /* @__PURE__ */ jsx67(
3292
+ return /* @__PURE__ */ jsxs25(CalendarGrid, { className: classNames3.calendarGrid, children: [
3293
+ /* @__PURE__ */ jsx69(CalendarGridHeader, {}),
3294
+ /* @__PURE__ */ jsx69(CalendarGridBody, { children: (date) => /* @__PURE__ */ jsx69(
3166
3295
  CalendarCell,
3167
3296
  {
3168
3297
  date,
@@ -3176,14 +3305,14 @@ var _CalendarGrid = () => {
3176
3305
  };
3177
3306
 
3178
3307
  // src/Calendar/CalendarListBox.tsx
3179
- import { useContext as useContext14 } from "react";
3308
+ import { useContext as useContext15 } from "react";
3180
3309
  import { CalendarStateContext as CalendarStateContext2 } from "react-aria-components";
3181
3310
  import { cn as cn40 } from "@marigold/system";
3182
3311
 
3183
3312
  // src/Calendar/Context.tsx
3184
- import { createContext as createContext7, useContext as useContext13 } from "react";
3185
- var CalendarContext = createContext7({});
3186
- var useCalendarContext = () => useContext13(CalendarContext);
3313
+ import { createContext as createContext8, useContext as useContext14 } from "react";
3314
+ var CalendarContext = createContext8({});
3315
+ var useCalendarContext = () => useContext14(CalendarContext);
3187
3316
 
3188
3317
  // src/Calendar/useFormattedMonths.tsx
3189
3318
  import { useDateFormatter as useDateFormatter2 } from "@react-aria/i18n";
@@ -3202,17 +3331,17 @@ function useFormattedMonths(timeZone, focusedDate) {
3202
3331
  }
3203
3332
 
3204
3333
  // src/Calendar/CalendarListBox.tsx
3205
- import { jsx as jsx68, jsxs as jsxs24 } from "react/jsx-runtime";
3334
+ import { jsx as jsx70, jsxs as jsxs26 } from "react/jsx-runtime";
3206
3335
  function CalendarListBox({
3207
3336
  type,
3208
3337
  isDisabled,
3209
3338
  setSelectedDropdown
3210
3339
  }) {
3211
- const state = useContext14(CalendarStateContext2);
3340
+ const state = useContext15(CalendarStateContext2);
3212
3341
  const months = useFormattedMonths(state.timeZone, state.focusedDate);
3213
3342
  const buttonStyles = "flex items-center justify-between gap-1 overflow-hidden";
3214
3343
  const { classNames: classNames3 } = useCalendarContext();
3215
- return /* @__PURE__ */ jsxs24(
3344
+ return /* @__PURE__ */ jsxs26(
3216
3345
  "button",
3217
3346
  {
3218
3347
  onClick: () => !isDisabled && setSelectedDropdown(type),
@@ -3226,7 +3355,7 @@ function CalendarListBox({
3226
3355
  "aria-label": type === "month" ? `${months[state.focusedDate.month - 1].substring(0, 3)}${isDisabled ? " not selectable" : ""}` : `${state.focusedDate.year}${isDisabled ? " not selectable" : ""}`,
3227
3356
  children: [
3228
3357
  type === "month" ? months[state.focusedDate.month - 1].substring(0, 3) : state.focusedDate.year,
3229
- /* @__PURE__ */ jsx68(ChevronDown, {})
3358
+ /* @__PURE__ */ jsx70(ChevronDown, {})
3230
3359
  ]
3231
3360
  }
3232
3361
  );
@@ -3234,10 +3363,10 @@ function CalendarListBox({
3234
3363
 
3235
3364
  // src/Calendar/MonthControls.tsx
3236
3365
  import { cn as cn41, useClassNames as useClassNames39 } from "@marigold/system";
3237
- import { jsx as jsx69, jsxs as jsxs25 } from "react/jsx-runtime";
3366
+ import { jsx as jsx71, jsxs as jsxs27 } from "react/jsx-runtime";
3238
3367
  function MonthControls() {
3239
3368
  const classNames3 = useClassNames39({ component: "Calendar" });
3240
- return /* @__PURE__ */ jsxs25(
3369
+ return /* @__PURE__ */ jsxs27(
3241
3370
  "div",
3242
3371
  {
3243
3372
  className: cn41(
@@ -3245,22 +3374,22 @@ function MonthControls() {
3245
3374
  classNames3.calendarControllers
3246
3375
  ),
3247
3376
  children: [
3248
- /* @__PURE__ */ jsx69(
3377
+ /* @__PURE__ */ jsx71(
3249
3378
  IconButton,
3250
3379
  {
3251
3380
  className: cn41("inline-flex items-center justify-center gap-[0.5ch]"),
3252
3381
  variant: "navigation",
3253
3382
  slot: "previous",
3254
- children: /* @__PURE__ */ jsx69(ChevronLeft, {})
3383
+ children: /* @__PURE__ */ jsx71(ChevronLeft, {})
3255
3384
  }
3256
3385
  ),
3257
- /* @__PURE__ */ jsx69(
3386
+ /* @__PURE__ */ jsx71(
3258
3387
  IconButton,
3259
3388
  {
3260
3389
  className: cn41("inline-flex items-center justify-center gap-[0.5ch]"),
3261
3390
  variant: "navigation",
3262
3391
  slot: "next",
3263
- children: /* @__PURE__ */ jsx69(ChevronRight, {})
3392
+ children: /* @__PURE__ */ jsx71(ChevronRight, {})
3264
3393
  }
3265
3394
  )
3266
3395
  ]
@@ -3270,7 +3399,7 @@ function MonthControls() {
3270
3399
  var MonthControls_default = MonthControls;
3271
3400
 
3272
3401
  // src/Calendar/MonthListBox.tsx
3273
- import { useContext as useContext15 } from "react";
3402
+ import { useContext as useContext16 } from "react";
3274
3403
  import { CalendarStateContext as CalendarStateContext3 } from "react-aria-components";
3275
3404
 
3276
3405
  // src/Calendar/ListBox.tsx
@@ -3279,7 +3408,7 @@ import {
3279
3408
  ListBoxItem as RACListBoxItem
3280
3409
  } from "react-aria-components";
3281
3410
  import { cn as cn42 } from "@marigold/system";
3282
- import { jsx as jsx70 } from "react/jsx-runtime";
3411
+ import { jsx as jsx72 } from "react/jsx-runtime";
3283
3412
  function ListBox2({
3284
3413
  dataTestid,
3285
3414
  items,
@@ -3290,7 +3419,7 @@ function ListBox2({
3290
3419
  }) {
3291
3420
  const { classNames: classNames3 } = useCalendarContext();
3292
3421
  const selectedItemKeys = items.map((item, index2) => isSelected(item, index2) ? String(index2) : void 0).filter((key) => typeof key === "string");
3293
- return /* @__PURE__ */ jsx70(
3422
+ return /* @__PURE__ */ jsx72(
3294
3423
  RACAriaListBox,
3295
3424
  {
3296
3425
  className: cn42(
@@ -3304,7 +3433,7 @@ function ListBox2({
3304
3433
  children: items.map((item, index2) => {
3305
3434
  const disabled = isDisabled(item, index2);
3306
3435
  const selected = isSelected(item, index2);
3307
- return /* @__PURE__ */ jsx70(
3436
+ return /* @__PURE__ */ jsx72(
3308
3437
  RACListBoxItem,
3309
3438
  {
3310
3439
  id: String(index2),
@@ -3328,18 +3457,18 @@ function ListBox2({
3328
3457
  }
3329
3458
 
3330
3459
  // src/Calendar/MonthListBox.tsx
3331
- import { jsx as jsx71 } from "react/jsx-runtime";
3460
+ import { jsx as jsx73 } from "react/jsx-runtime";
3332
3461
  var MonthListBox = ({
3333
3462
  setSelectedDropdown,
3334
3463
  minValue,
3335
3464
  maxValue
3336
3465
  }) => {
3337
- const state = useContext15(CalendarStateContext3);
3466
+ const state = useContext16(CalendarStateContext3);
3338
3467
  const months = useFormattedMonths(state.timeZone, state.focusedDate);
3339
3468
  const currentYear = state.focusedDate.year;
3340
3469
  const minMonth = minValue && minValue.year === currentYear ? minValue.month : 1;
3341
3470
  const maxMonth = maxValue && maxValue.year === currentYear ? maxValue.month : 12;
3342
- return /* @__PURE__ */ jsx71(
3471
+ return /* @__PURE__ */ jsx73(
3343
3472
  ListBox2,
3344
3473
  {
3345
3474
  dataTestid: "monthOptions",
@@ -3357,16 +3486,16 @@ var MonthListBox = ({
3357
3486
  var MonthListBox_default = MonthListBox;
3358
3487
 
3359
3488
  // src/Calendar/YearListBox.tsx
3360
- import { useContext as useContext16 } from "react";
3489
+ import { useContext as useContext17 } from "react";
3361
3490
  import { CalendarStateContext as CalendarStateContext4 } from "react-aria-components";
3362
3491
  import { useDateFormatter as useDateFormatter3 } from "@react-aria/i18n";
3363
- import { jsx as jsx72 } from "react/jsx-runtime";
3492
+ import { jsx as jsx74 } from "react/jsx-runtime";
3364
3493
  var YearListBox = ({
3365
3494
  setSelectedDropdown,
3366
3495
  minValue,
3367
3496
  maxValue
3368
3497
  }) => {
3369
- const state = useContext16(CalendarStateContext4);
3498
+ const state = useContext17(CalendarStateContext4);
3370
3499
  const years = [];
3371
3500
  for (let i = -20; i <= 20; i++) {
3372
3501
  years.push(state.focusedDate.add({ years: i }));
@@ -3377,7 +3506,7 @@ var YearListBox = ({
3377
3506
  });
3378
3507
  const minYear = minValue ? minValue.year : -Infinity;
3379
3508
  const maxYear = maxValue ? maxValue.year : Infinity;
3380
- return /* @__PURE__ */ jsx72(
3509
+ return /* @__PURE__ */ jsx74(
3381
3510
  ListBox2,
3382
3511
  {
3383
3512
  dataTestid: "yearOptions",
@@ -3409,7 +3538,7 @@ function hasOnlyOneSelectableYear(minValue, maxValue) {
3409
3538
  }
3410
3539
 
3411
3540
  // src/Calendar/Calendar.tsx
3412
- import { jsx as jsx73, jsxs as jsxs26 } from "react/jsx-runtime";
3541
+ import { jsx as jsx75, jsxs as jsxs28 } from "react/jsx-runtime";
3413
3542
  var _Calendar = ({
3414
3543
  disabled,
3415
3544
  readOnly,
@@ -3432,9 +3561,9 @@ var _Calendar = ({
3432
3561
  ...rest
3433
3562
  };
3434
3563
  const classNames3 = useClassNames40({ component: "Calendar", size: size2, variant });
3435
- const [selectedDropdown, setSelectedDropdown] = useState2();
3564
+ const [selectedDropdown, setSelectedDropdown] = useState3();
3436
3565
  const ViewMap = {
3437
- month: /* @__PURE__ */ jsx73(
3566
+ month: /* @__PURE__ */ jsx75(
3438
3567
  MonthListBox_default,
3439
3568
  {
3440
3569
  setSelectedDropdown,
@@ -3442,7 +3571,7 @@ var _Calendar = ({
3442
3571
  maxValue
3443
3572
  }
3444
3573
  ),
3445
- year: /* @__PURE__ */ jsx73(
3574
+ year: /* @__PURE__ */ jsx75(
3446
3575
  YearListBox_default,
3447
3576
  {
3448
3577
  setSelectedDropdown,
@@ -3451,7 +3580,7 @@ var _Calendar = ({
3451
3580
  }
3452
3581
  )
3453
3582
  };
3454
- return /* @__PURE__ */ jsx73(CalendarContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ jsxs26(
3583
+ return /* @__PURE__ */ jsx75(CalendarContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ jsxs28(
3455
3584
  Calendar,
3456
3585
  {
3457
3586
  className: cn43(
@@ -3461,7 +3590,7 @@ var _Calendar = ({
3461
3590
  ),
3462
3591
  ...props,
3463
3592
  children: [
3464
- /* @__PURE__ */ jsx73(
3593
+ /* @__PURE__ */ jsx75(
3465
3594
  "div",
3466
3595
  {
3467
3596
  className: cn43(
@@ -3471,7 +3600,7 @@ var _Calendar = ({
3471
3600
  children: ViewMap[selectedDropdown]
3472
3601
  }
3473
3602
  ),
3474
- /* @__PURE__ */ jsxs26(
3603
+ /* @__PURE__ */ jsxs28(
3475
3604
  "div",
3476
3605
  {
3477
3606
  className: cn43(
@@ -3479,9 +3608,9 @@ var _Calendar = ({
3479
3608
  selectedDropdown && "pointer-events-none opacity-0"
3480
3609
  ),
3481
3610
  children: [
3482
- /* @__PURE__ */ jsxs26("div", { className: "mb-4 flex items-center justify-between", children: [
3483
- /* @__PURE__ */ jsxs26("div", { className: "flex w-fit gap-4", children: [
3484
- /* @__PURE__ */ jsx73(
3611
+ /* @__PURE__ */ jsxs28("div", { className: "mb-4 flex items-center justify-between", children: [
3612
+ /* @__PURE__ */ jsxs28("div", { className: "flex w-fit gap-4", children: [
3613
+ /* @__PURE__ */ jsx75(
3485
3614
  CalendarListBox,
3486
3615
  {
3487
3616
  type: "month",
@@ -3490,7 +3619,7 @@ var _Calendar = ({
3490
3619
  },
3491
3620
  "month"
3492
3621
  ),
3493
- /* @__PURE__ */ jsx73(
3622
+ /* @__PURE__ */ jsx75(
3494
3623
  CalendarListBox,
3495
3624
  {
3496
3625
  type: "year",
@@ -3500,9 +3629,9 @@ var _Calendar = ({
3500
3629
  "year"
3501
3630
  )
3502
3631
  ] }),
3503
- /* @__PURE__ */ jsx73(MonthControls_default, {})
3632
+ /* @__PURE__ */ jsx75(MonthControls_default, {})
3504
3633
  ] }),
3505
- /* @__PURE__ */ jsx73(_CalendarGrid, {})
3634
+ /* @__PURE__ */ jsx75(_CalendarGrid, {})
3506
3635
  ]
3507
3636
  }
3508
3637
  )
@@ -3515,7 +3644,7 @@ var _Calendar = ({
3515
3644
  import React6 from "react";
3516
3645
  import { DatePicker, Dialog as Dialog4 } from "react-aria-components";
3517
3646
  import { useClassNames as useClassNames41 } from "@marigold/system";
3518
- import { jsx as jsx74, jsxs as jsxs27 } from "react/jsx-runtime";
3647
+ import { jsx as jsx76, jsxs as jsxs29 } from "react/jsx-runtime";
3519
3648
  var _DatePicker = React6.forwardRef(
3520
3649
  ({
3521
3650
  dateUnavailable,
@@ -3544,7 +3673,7 @@ var _DatePicker = React6.forwardRef(
3544
3673
  size: size2,
3545
3674
  variant
3546
3675
  });
3547
- return /* @__PURE__ */ jsxs27(
3676
+ return /* @__PURE__ */ jsxs29(
3548
3677
  FieldBase,
3549
3678
  {
3550
3679
  as: DatePicker,
@@ -3553,10 +3682,10 @@ var _DatePicker = React6.forwardRef(
3553
3682
  ...props,
3554
3683
  ref,
3555
3684
  children: [
3556
- /* @__PURE__ */ jsx74(
3685
+ /* @__PURE__ */ jsx76(
3557
3686
  _DateInput,
3558
3687
  {
3559
- action: /* @__PURE__ */ jsx74(IconButton, { className: classNames3, children: /* @__PURE__ */ jsx74(
3688
+ action: /* @__PURE__ */ jsx76(IconButton, { className: classNames3, children: /* @__PURE__ */ jsx76(
3560
3689
  "svg",
3561
3690
  {
3562
3691
  "data-testid": "action",
@@ -3564,12 +3693,12 @@ var _DatePicker = React6.forwardRef(
3564
3693
  width: 24,
3565
3694
  height: 24,
3566
3695
  fill: "currentColor",
3567
- children: /* @__PURE__ */ jsx74("path", { d: "M20.0906 19.2V6.6C20.0906 5.61 19.2806 4.8 18.2906 4.8H17.3906V3H15.5906V4.8H8.39062V3H6.59062V4.8H5.69063C4.69163 4.8 3.89962 5.61 3.89962 6.6L3.89062 19.2C3.89062 20.19 4.69163 21 5.69063 21H18.2906C19.2806 21 20.0906 20.19 20.0906 19.2ZM9.29062 11.1001H7.49061V12.9001H9.29062V11.1001ZM5.69062 8.40009H18.2906V6.60008H5.69062V8.40009ZM18.2906 10.2V19.2H5.69062V10.2H18.2906ZM14.6906 12.9001H16.4906V11.1001H14.6906V12.9001ZM12.8906 12.9001H11.0906V11.1001H12.8906V12.9001Z" })
3696
+ children: /* @__PURE__ */ jsx76("path", { d: "M20.0906 19.2V6.6C20.0906 5.61 19.2806 4.8 18.2906 4.8H17.3906V3H15.5906V4.8H8.39062V3H6.59062V4.8H5.69063C4.69163 4.8 3.89962 5.61 3.89962 6.6L3.89062 19.2C3.89062 20.19 4.69163 21 5.69063 21H18.2906C19.2806 21 20.0906 20.19 20.0906 19.2ZM9.29062 11.1001H7.49061V12.9001H9.29062V11.1001ZM5.69062 8.40009H18.2906V6.60008H5.69062V8.40009ZM18.2906 10.2V19.2H5.69062V10.2H18.2906ZM14.6906 12.9001H16.4906V11.1001H14.6906V12.9001ZM12.8906 12.9001H11.0906V11.1001H12.8906V12.9001Z" })
3568
3697
  }
3569
3698
  ) })
3570
3699
  }
3571
3700
  ),
3572
- /* @__PURE__ */ jsx74(_Popover, { children: /* @__PURE__ */ jsx74(Dialog4, { children: /* @__PURE__ */ jsx74(_Calendar, { disabled }) }) })
3701
+ /* @__PURE__ */ jsx76(_Popover, { children: /* @__PURE__ */ jsx76(Dialog4, { children: /* @__PURE__ */ jsx76(_Calendar, { disabled }) }) })
3573
3702
  ]
3574
3703
  }
3575
3704
  );
@@ -3583,8 +3712,8 @@ import {
3583
3712
  paddingSpaceX as paddingSpaceX2,
3584
3713
  paddingSpaceY as paddingSpaceY2
3585
3714
  } from "@marigold/system";
3586
- import { jsx as jsx75 } from "react/jsx-runtime";
3587
- var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx75(
3715
+ import { jsx as jsx77 } from "react/jsx-runtime";
3716
+ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx77(
3588
3717
  "div",
3589
3718
  {
3590
3719
  className: cn44(
@@ -3600,7 +3729,7 @@ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx75(
3600
3729
  import { forwardRef as forwardRef21 } from "react";
3601
3730
  import { Link } from "react-aria-components";
3602
3731
  import { useClassNames as useClassNames42 } from "@marigold/system";
3603
- import { jsx as jsx76 } from "react/jsx-runtime";
3732
+ import { jsx as jsx78 } from "react/jsx-runtime";
3604
3733
  var _Link = forwardRef21(
3605
3734
  ({ variant, size: size2, disabled, children, ...props }, ref) => {
3606
3735
  const classNames3 = useClassNames42({
@@ -3608,27 +3737,52 @@ var _Link = forwardRef21(
3608
3737
  variant,
3609
3738
  size: size2
3610
3739
  });
3611
- return /* @__PURE__ */ jsx76(Link, { ...props, ref, className: classNames3, isDisabled: disabled, children });
3740
+ return /* @__PURE__ */ jsx78(Link, { ...props, ref, className: classNames3, isDisabled: disabled, children });
3741
+ }
3742
+ );
3743
+
3744
+ // src/LinkButton/LinkButton.tsx
3745
+ import { forwardRef as forwardRef22 } from "react";
3746
+ import { Link as Link2 } from "react-aria-components";
3747
+ import { cn as cn45, useClassNames as useClassNames43 } from "@marigold/system";
3748
+ import { jsx as jsx79 } from "react/jsx-runtime";
3749
+ var _LinkButton = forwardRef22(
3750
+ ({ children, variant, size: size2, disabled, fullWidth, ...props }, ref) => {
3751
+ const classNames3 = useClassNames43({
3752
+ component: "Button",
3753
+ variant,
3754
+ size: size2
3755
+ });
3756
+ return /* @__PURE__ */ jsx79(
3757
+ Link2,
3758
+ {
3759
+ ...props,
3760
+ ref,
3761
+ className: cn45(classNames3, fullWidth ? "w-full" : void 0),
3762
+ isDisabled: disabled,
3763
+ children
3764
+ }
3765
+ );
3612
3766
  }
3613
3767
  );
3614
3768
 
3615
3769
  // src/List/List.tsx
3616
- import { useClassNames as useClassNames43 } from "@marigold/system";
3770
+ import { useClassNames as useClassNames44 } from "@marigold/system";
3617
3771
 
3618
3772
  // src/List/Context.ts
3619
- import { createContext as createContext8, useContext as useContext17 } from "react";
3620
- var ListContext = createContext8({});
3621
- var useListContext = () => useContext17(ListContext);
3773
+ import { createContext as createContext9, useContext as useContext18 } from "react";
3774
+ var ListContext = createContext9({});
3775
+ var useListContext = () => useContext18(ListContext);
3622
3776
 
3623
3777
  // src/List/ListItem.tsx
3624
- import { jsx as jsx77 } from "react/jsx-runtime";
3778
+ import { jsx as jsx80 } from "react/jsx-runtime";
3625
3779
  var ListItem = ({ children, ...props }) => {
3626
3780
  const { classNames: classNames3 } = useListContext();
3627
- return /* @__PURE__ */ jsx77("li", { ...props, className: classNames3, children });
3781
+ return /* @__PURE__ */ jsx80("li", { ...props, className: classNames3, children });
3628
3782
  };
3629
3783
 
3630
3784
  // src/List/List.tsx
3631
- import { jsx as jsx78 } from "react/jsx-runtime";
3785
+ import { jsx as jsx81 } from "react/jsx-runtime";
3632
3786
  var List = ({
3633
3787
  as = "ul",
3634
3788
  children,
@@ -3637,38 +3791,38 @@ var List = ({
3637
3791
  ...props
3638
3792
  }) => {
3639
3793
  const Component2 = as;
3640
- const classNames3 = useClassNames43({ component: "List", variant, size: size2 });
3641
- return /* @__PURE__ */ jsx78(Component2, { ...props, className: classNames3[as], children: /* @__PURE__ */ jsx78(ListContext.Provider, { value: { classNames: classNames3.item }, children }) });
3794
+ const classNames3 = useClassNames44({ component: "List", variant, size: size2 });
3795
+ return /* @__PURE__ */ jsx81(Component2, { ...props, className: classNames3[as], children: /* @__PURE__ */ jsx81(ListContext.Provider, { value: { classNames: classNames3.item }, children }) });
3642
3796
  };
3643
3797
  List.Item = ListItem;
3644
3798
 
3645
3799
  // src/Menu/Menu.tsx
3646
3800
  import { Button as Button8, Menu, MenuTrigger } from "react-aria-components";
3647
- import { useClassNames as useClassNames46 } from "@marigold/system";
3801
+ import { useClassNames as useClassNames47 } from "@marigold/system";
3648
3802
 
3649
3803
  // src/Menu/MenuItem.tsx
3650
3804
  import { MenuItem } from "react-aria-components";
3651
- import { useClassNames as useClassNames44 } from "@marigold/system";
3652
- import { jsx as jsx79 } from "react/jsx-runtime";
3653
- var _MenuItem = ({ children, ...props }) => {
3654
- const classNames3 = useClassNames44({ component: "Menu" });
3655
- return /* @__PURE__ */ jsx79(MenuItem, { ...props, className: classNames3.item, children });
3805
+ import { useClassNames as useClassNames45 } from "@marigold/system";
3806
+ import { jsx as jsx82 } from "react/jsx-runtime";
3807
+ var _MenuItem = ({ children, variant, size: size2, ...props }) => {
3808
+ const classNames3 = useClassNames45({ component: "Menu", variant, size: size2 });
3809
+ return /* @__PURE__ */ jsx82(MenuItem, { ...props, className: classNames3.item, children });
3656
3810
  };
3657
3811
 
3658
3812
  // src/Menu/MenuSection.tsx
3659
3813
  import { Header as Header4, MenuSection } from "react-aria-components";
3660
- import { useClassNames as useClassNames45 } from "@marigold/system";
3661
- import { jsx as jsx80, jsxs as jsxs28 } from "react/jsx-runtime";
3814
+ import { useClassNames as useClassNames46 } from "@marigold/system";
3815
+ import { jsx as jsx83, jsxs as jsxs30 } from "react/jsx-runtime";
3662
3816
  var _MenuSection = ({ children, title, ...props }) => {
3663
- const className = useClassNames45({ component: "Menu" });
3664
- return /* @__PURE__ */ jsxs28(MenuSection, { ...props, children: [
3665
- /* @__PURE__ */ jsx80(Header4, { className: className.section, children: title }),
3817
+ const className = useClassNames46({ component: "Menu" });
3818
+ return /* @__PURE__ */ jsxs30(MenuSection, { ...props, children: [
3819
+ /* @__PURE__ */ jsx83(Header4, { className: className.section, children: title }),
3666
3820
  children
3667
3821
  ] });
3668
3822
  };
3669
3823
 
3670
3824
  // src/Menu/Menu.tsx
3671
- import { jsx as jsx81, jsxs as jsxs29 } from "react/jsx-runtime";
3825
+ import { jsx as jsx84, jsxs as jsxs31 } from "react/jsx-runtime";
3672
3826
  var _Menu = ({
3673
3827
  children,
3674
3828
  label,
@@ -3680,9 +3834,9 @@ var _Menu = ({
3680
3834
  "aria-label": ariaLabel,
3681
3835
  ...props
3682
3836
  }) => {
3683
- const classNames3 = useClassNames46({ component: "Menu", variant, size: size2 });
3684
- return /* @__PURE__ */ jsxs29(MenuTrigger, { ...props, children: [
3685
- /* @__PURE__ */ jsx81(
3837
+ const classNames3 = useClassNames47({ component: "Menu", variant, size: size2 });
3838
+ return /* @__PURE__ */ jsxs31(MenuTrigger, { ...props, children: [
3839
+ /* @__PURE__ */ jsx84(
3686
3840
  Button8,
3687
3841
  {
3688
3842
  className: classNames3.button,
@@ -3691,19 +3845,19 @@ var _Menu = ({
3691
3845
  children: label
3692
3846
  }
3693
3847
  ),
3694
- /* @__PURE__ */ jsx81(_Popover, { open, placement, children: /* @__PURE__ */ jsx81(Menu, { ...props, className: classNames3.container, children }) })
3848
+ /* @__PURE__ */ jsx84(_Popover, { open, placement, children: /* @__PURE__ */ jsx84(Menu, { ...props, className: classNames3.container, children }) })
3695
3849
  ] });
3696
3850
  };
3697
3851
  _Menu.Item = _MenuItem;
3698
3852
  _Menu.Section = _MenuSection;
3699
3853
 
3700
3854
  // src/Menu/ActionMenu.tsx
3701
- import { jsx as jsx82, jsxs as jsxs30 } from "react/jsx-runtime";
3702
- var ActionMenu = ({ children, ...props }) => /* @__PURE__ */ jsx82(
3855
+ import { jsx as jsx85, jsxs as jsxs32 } from "react/jsx-runtime";
3856
+ var ActionMenu = ({ children, ...props }) => /* @__PURE__ */ jsx85(
3703
3857
  _Menu,
3704
3858
  {
3705
3859
  ...props,
3706
- label: /* @__PURE__ */ jsxs30(
3860
+ label: /* @__PURE__ */ jsxs32(
3707
3861
  "svg",
3708
3862
  {
3709
3863
  xmlns: "http://www.w3.org/2000/svg",
@@ -3714,9 +3868,9 @@ var ActionMenu = ({ children, ...props }) => /* @__PURE__ */ jsx82(
3714
3868
  strokeLinecap: "round",
3715
3869
  strokeLinejoin: "round",
3716
3870
  children: [
3717
- /* @__PURE__ */ jsx82("circle", { cx: 12, cy: 12, r: 1 }),
3718
- /* @__PURE__ */ jsx82("circle", { cx: 12, cy: 5, r: 1 }),
3719
- /* @__PURE__ */ jsx82("circle", { cx: 12, cy: 19, r: 1 })
3871
+ /* @__PURE__ */ jsx85("circle", { cx: 12, cy: 12, r: 1 }),
3872
+ /* @__PURE__ */ jsx85("circle", { cx: 12, cy: 5, r: 1 }),
3873
+ /* @__PURE__ */ jsx85("circle", { cx: 12, cy: 19, r: 1 })
3720
3874
  ]
3721
3875
  }
3722
3876
  ),
@@ -3727,43 +3881,43 @@ ActionMenu.Item = _Menu.Item;
3727
3881
  ActionMenu.Section = _Menu.Section;
3728
3882
 
3729
3883
  // src/SectionMessage/SectionMessage.tsx
3730
- import { useRef as useRef2, useState as useState3 } from "react";
3884
+ import { useRef as useRef2, useState as useState4 } from "react";
3731
3885
  import { useButton } from "@react-aria/button";
3732
- import { cn as cn47, useClassNames as useClassNames47 } from "@marigold/system";
3886
+ import { cn as cn48, useClassNames as useClassNames48 } from "@marigold/system";
3733
3887
 
3734
3888
  // src/SectionMessage/Context.tsx
3735
- import { createContext as createContext9, useContext as useContext18 } from "react";
3736
- var SectionMessageContext = createContext9({});
3737
- var useSectionMessageContext = () => useContext18(SectionMessageContext);
3889
+ import { createContext as createContext10, useContext as useContext19 } from "react";
3890
+ var SectionMessageContext = createContext10({});
3891
+ var useSectionMessageContext = () => useContext19(SectionMessageContext);
3738
3892
 
3739
3893
  // src/SectionMessage/SectionMessageContent.tsx
3740
- import { cn as cn45 } from "@marigold/system";
3741
- import { jsx as jsx83 } from "react/jsx-runtime";
3894
+ import { cn as cn46 } from "@marigold/system";
3895
+ import { jsx as jsx86 } from "react/jsx-runtime";
3742
3896
  var SectionMessageContent = ({
3743
3897
  children
3744
3898
  }) => {
3745
3899
  const { classNames: classNames3 } = useSectionMessageContext();
3746
- return /* @__PURE__ */ jsx83("div", { className: cn45("[grid-area:content]", classNames3.content), children });
3900
+ return /* @__PURE__ */ jsx86("div", { className: cn46("[grid-area:content]", classNames3.content), children });
3747
3901
  };
3748
3902
 
3749
3903
  // src/SectionMessage/SectionMessageTitle.tsx
3750
- import { cn as cn46 } from "@marigold/system";
3751
- import { jsx as jsx84 } from "react/jsx-runtime";
3904
+ import { cn as cn47 } from "@marigold/system";
3905
+ import { jsx as jsx87 } from "react/jsx-runtime";
3752
3906
  var SectionMessageTitle = ({ children }) => {
3753
3907
  const { classNames: classNames3 } = useSectionMessageContext();
3754
- return /* @__PURE__ */ jsx84("div", { className: cn46("[grid-area:title]", classNames3.title), children });
3908
+ return /* @__PURE__ */ jsx87("div", { className: cn47("[grid-area:title]", classNames3.title), children });
3755
3909
  };
3756
3910
 
3757
3911
  // src/SectionMessage/SectionMessage.tsx
3758
- import { jsx as jsx85, jsxs as jsxs31 } from "react/jsx-runtime";
3912
+ import { jsx as jsx88, jsxs as jsxs33 } from "react/jsx-runtime";
3759
3913
  var icons2 = {
3760
- success: () => /* @__PURE__ */ jsx85(
3914
+ success: () => /* @__PURE__ */ jsx88(
3761
3915
  "svg",
3762
3916
  {
3763
3917
  xmlns: "http://www.w3.org/2000/svg",
3764
3918
  viewBox: "0 0 24 24",
3765
3919
  fill: "currentColor",
3766
- children: /* @__PURE__ */ jsx85(
3920
+ children: /* @__PURE__ */ jsx88(
3767
3921
  "path",
3768
3922
  {
3769
3923
  fillRule: "evenodd",
@@ -3773,13 +3927,13 @@ var icons2 = {
3773
3927
  )
3774
3928
  }
3775
3929
  ),
3776
- info: () => /* @__PURE__ */ jsx85(
3930
+ info: () => /* @__PURE__ */ jsx88(
3777
3931
  "svg",
3778
3932
  {
3779
3933
  xmlns: "http://www.w3.org/2000/svg",
3780
3934
  viewBox: "0 0 24 24",
3781
3935
  fill: "currentColor",
3782
- children: /* @__PURE__ */ jsx85(
3936
+ children: /* @__PURE__ */ jsx88(
3783
3937
  "path",
3784
3938
  {
3785
3939
  fillRule: "evenodd",
@@ -3789,13 +3943,13 @@ var icons2 = {
3789
3943
  )
3790
3944
  }
3791
3945
  ),
3792
- warning: () => /* @__PURE__ */ jsx85(
3946
+ warning: () => /* @__PURE__ */ jsx88(
3793
3947
  "svg",
3794
3948
  {
3795
3949
  xmlns: "http://www.w3.org/2000/svg",
3796
3950
  viewBox: "0 0 24 24",
3797
3951
  fill: "currentColor",
3798
- children: /* @__PURE__ */ jsx85(
3952
+ children: /* @__PURE__ */ jsx88(
3799
3953
  "path",
3800
3954
  {
3801
3955
  fillRule: "evenodd",
@@ -3805,13 +3959,13 @@ var icons2 = {
3805
3959
  )
3806
3960
  }
3807
3961
  ),
3808
- error: () => /* @__PURE__ */ jsx85(
3962
+ error: () => /* @__PURE__ */ jsx88(
3809
3963
  "svg",
3810
3964
  {
3811
3965
  xmlns: "http://www.w3.org/2000/svg",
3812
3966
  viewBox: "0 0 24 24",
3813
3967
  fill: "currentColor",
3814
- children: /* @__PURE__ */ jsx85(
3968
+ children: /* @__PURE__ */ jsx88(
3815
3969
  "path",
3816
3970
  {
3817
3971
  fillRule: "evenodd",
@@ -3832,13 +3986,13 @@ var SectionMessage = ({
3832
3986
  ...props
3833
3987
  }) => {
3834
3988
  const buttonRef = useRef2(null);
3835
- const classNames3 = useClassNames47({
3989
+ const classNames3 = useClassNames48({
3836
3990
  component: "SectionMessage",
3837
3991
  variant,
3838
3992
  size: size2
3839
3993
  });
3840
3994
  const Icon4 = icons2[variant];
3841
- const [internalVisible, setInternalVisible] = useState3(true);
3995
+ const [internalVisible, setInternalVisible] = useState4(true);
3842
3996
  const isCurrentlyVisible = close != null ? close : internalVisible;
3843
3997
  const { buttonProps } = useButton(props, buttonRef);
3844
3998
  const handleClose = () => {
@@ -3848,21 +4002,21 @@ var SectionMessage = ({
3848
4002
  }
3849
4003
  };
3850
4004
  if (!isCurrentlyVisible) return null;
3851
- return /* @__PURE__ */ jsx85(SectionMessageContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ jsxs31(
4005
+ return /* @__PURE__ */ jsx88(SectionMessageContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ jsxs33(
3852
4006
  "div",
3853
4007
  {
3854
4008
  role: variant === "error" ? "alert" : void 0,
3855
4009
  ...props,
3856
- className: cn47("grid auto-rows-min", classNames3.container),
4010
+ className: cn48("grid auto-rows-min", classNames3.container),
3857
4011
  children: [
3858
- /* @__PURE__ */ jsx85("div", { className: cn47("[grid-area:icon]", classNames3.icon), children: Icon4 && /* @__PURE__ */ jsx85(Icon4, {}) }),
3859
- closeButton && /* @__PURE__ */ jsx85(
4012
+ /* @__PURE__ */ jsx88("div", { className: cn48("[grid-area:icon]", classNames3.icon), children: Icon4 && /* @__PURE__ */ jsx88(Icon4, {}) }),
4013
+ closeButton && /* @__PURE__ */ jsx88(
3860
4014
  CloseButton,
3861
4015
  {
3862
4016
  ...buttonProps,
3863
4017
  ref: buttonRef,
3864
4018
  "aria-label": "close",
3865
- className: cn47("[grid-area:close]", classNames3.close),
4019
+ className: cn48("[grid-area:close]", classNames3.close),
3866
4020
  onPress: handleClose
3867
4021
  }
3868
4022
  ),
@@ -4022,13 +4176,13 @@ function _objectWithoutProperties(e, t) {
4022
4176
  }
4023
4177
 
4024
4178
  // ../../node_modules/.pnpm/react-select@5.10.2_@types+react@19.1.12_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js
4025
- import { useState as useState4, useCallback } from "react";
4179
+ import { useState as useState5, useCallback } from "react";
4026
4180
  var _excluded = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
4027
4181
  function useStateManager(_ref3) {
4028
4182
  var _ref$defaultInputValu = _ref3.defaultInputValue, defaultInputValue = _ref$defaultInputValu === void 0 ? "" : _ref$defaultInputValu, _ref$defaultMenuIsOpe = _ref3.defaultMenuIsOpen, defaultMenuIsOpen = _ref$defaultMenuIsOpe === void 0 ? false : _ref$defaultMenuIsOpe, _ref$defaultValue = _ref3.defaultValue, defaultValue = _ref$defaultValue === void 0 ? null : _ref$defaultValue, propsInputValue = _ref3.inputValue, propsMenuIsOpen = _ref3.menuIsOpen, propsOnChange = _ref3.onChange, propsOnInputChange = _ref3.onInputChange, propsOnMenuClose = _ref3.onMenuClose, propsOnMenuOpen = _ref3.onMenuOpen, propsValue = _ref3.value, restSelectProps = _objectWithoutProperties(_ref3, _excluded);
4029
- var _useState = useState4(propsInputValue !== void 0 ? propsInputValue : defaultInputValue), _useState2 = _slicedToArray(_useState, 2), stateInputValue = _useState2[0], setStateInputValue = _useState2[1];
4030
- var _useState3 = useState4(propsMenuIsOpen !== void 0 ? propsMenuIsOpen : defaultMenuIsOpen), _useState4 = _slicedToArray(_useState3, 2), stateMenuIsOpen = _useState4[0], setStateMenuIsOpen = _useState4[1];
4031
- var _useState5 = useState4(propsValue !== void 0 ? propsValue : defaultValue), _useState6 = _slicedToArray(_useState5, 2), stateValue = _useState6[0], setStateValue = _useState6[1];
4183
+ var _useState = useState5(propsInputValue !== void 0 ? propsInputValue : defaultInputValue), _useState2 = _slicedToArray(_useState, 2), stateInputValue = _useState2[0], setStateInputValue = _useState2[1];
4184
+ var _useState3 = useState5(propsMenuIsOpen !== void 0 ? propsMenuIsOpen : defaultMenuIsOpen), _useState4 = _slicedToArray(_useState3, 2), stateMenuIsOpen = _useState4[0], setStateMenuIsOpen = _useState4[1];
4185
+ var _useState5 = useState5(propsValue !== void 0 ? propsValue : defaultValue), _useState6 = _slicedToArray(_useState5, 2), stateValue = _useState6[0], setStateValue = _useState6[1];
4032
4186
  var onChange2 = useCallback(function(value2, actionMeta) {
4033
4187
  if (typeof propsOnChange === "function") {
4034
4188
  propsOnChange(value2, actionMeta);
@@ -4081,7 +4235,7 @@ function _extends() {
4081
4235
 
4082
4236
  // ../../node_modules/.pnpm/react-select@5.10.2_@types+react@19.1.12_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/react-select/dist/react-select.esm.js
4083
4237
  import * as React11 from "react";
4084
- import { forwardRef as forwardRef24, useMemo as useMemo5 } from "react";
4238
+ import { forwardRef as forwardRef25, useMemo as useMemo5 } from "react";
4085
4239
 
4086
4240
  // ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
4087
4241
  function _classCallCheck(a, n) {
@@ -4189,11 +4343,11 @@ function _toConsumableArray(r) {
4189
4343
 
4190
4344
  // ../../node_modules/.pnpm/react-select@5.10.2_@types+react@19.1.12_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/react-select/dist/Select-ef7c0426.esm.js
4191
4345
  import * as React10 from "react";
4192
- import { useMemo as useMemo4, Fragment as Fragment7, useRef as useRef5, useCallback as useCallback3, useEffect, Component } from "react";
4346
+ import { useMemo as useMemo4, Fragment as Fragment8, useRef as useRef5, useCallback as useCallback3, useEffect, Component } from "react";
4193
4347
 
4194
4348
  // ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.12_react@19.1.1/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
4195
4349
  import * as React8 from "react";
4196
- import { useContext as useContext20, forwardRef as forwardRef23 } from "react";
4350
+ import { useContext as useContext21, forwardRef as forwardRef24 } from "react";
4197
4351
 
4198
4352
  // ../../node_modules/.pnpm/@emotion+sheet@1.4.0/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js
4199
4353
  var isDevelopment = false;
@@ -5381,15 +5535,15 @@ var EmotionCacheContext = /* @__PURE__ */ React8.createContext(
5381
5535
  );
5382
5536
  var CacheProvider = EmotionCacheContext.Provider;
5383
5537
  var withEmotionCache = function withEmotionCache2(func) {
5384
- return /* @__PURE__ */ forwardRef23(function(props, ref) {
5385
- var cache = useContext20(EmotionCacheContext);
5538
+ return /* @__PURE__ */ forwardRef24(function(props, ref) {
5539
+ var cache = useContext21(EmotionCacheContext);
5386
5540
  return func(props, cache, ref);
5387
5541
  });
5388
5542
  };
5389
5543
  if (!isBrowser4) {
5390
5544
  withEmotionCache = function withEmotionCache3(func) {
5391
5545
  return function(props) {
5392
- var cache = useContext20(EmotionCacheContext);
5546
+ var cache = useContext21(EmotionCacheContext);
5393
5547
  if (cache === null) {
5394
5548
  cache = createCache({
5395
5549
  key: "css"
@@ -5473,7 +5627,7 @@ var Emotion$1 = Emotion;
5473
5627
  import * as React9 from "react";
5474
5628
  var import_extends2 = __toESM(require_extends());
5475
5629
  var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
5476
- var jsx86 = function jsx87(type, props) {
5630
+ var jsx89 = function jsx90(type, props) {
5477
5631
  var args = arguments;
5478
5632
  if (props == null || !hasOwn.call(props, "css")) {
5479
5633
  return React9.createElement.apply(void 0, args);
@@ -5491,7 +5645,7 @@ var jsx86 = function jsx87(type, props) {
5491
5645
  var JSX2;
5492
5646
  /* @__PURE__ */ (function(_JSX) {
5493
5647
  })(JSX2 || (JSX2 = _jsx.JSX || (_jsx.JSX = {})));
5494
- })(jsx86 || (jsx86 = {}));
5648
+ })(jsx89 || (jsx89 = {}));
5495
5649
  function css() {
5496
5650
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
5497
5651
  args[_key] = arguments[_key];
@@ -5521,7 +5675,7 @@ function _taggedTemplateLiteral(e, t) {
5521
5675
  }
5522
5676
 
5523
5677
  // ../../node_modules/.pnpm/react-select@5.10.2_@types+react@19.1.12_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/react-select/dist/index-641ee5b8.esm.js
5524
- import { useContext as useContext22, useRef as useRef4, useState as useState5, useMemo as useMemo3, useCallback as useCallback2, createContext as createContext11 } from "react";
5678
+ import { useContext as useContext23, useRef as useRef4, useState as useState6, useMemo as useMemo3, useCallback as useCallback2, createContext as createContext12 } from "react";
5525
5679
  import { createPortal } from "react-dom";
5526
5680
 
5527
5681
  // ../../node_modules/.pnpm/@floating-ui+utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
@@ -6262,13 +6416,13 @@ var menuCSS = function menuCSS2(_ref23, unstyled) {
6262
6416
  marginTop: spacing2.menuGutter
6263
6417
  });
6264
6418
  };
6265
- var PortalPlacementContext = /* @__PURE__ */ createContext11(null);
6419
+ var PortalPlacementContext = /* @__PURE__ */ createContext12(null);
6266
6420
  var MenuPlacer = function MenuPlacer2(props) {
6267
6421
  var children = props.children, minMenuHeight = props.minMenuHeight, maxMenuHeight = props.maxMenuHeight, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition, menuShouldScrollIntoView = props.menuShouldScrollIntoView, theme = props.theme;
6268
- var _ref3 = useContext22(PortalPlacementContext) || {}, setPortalPlacement = _ref3.setPortalPlacement;
6422
+ var _ref3 = useContext23(PortalPlacementContext) || {}, setPortalPlacement = _ref3.setPortalPlacement;
6269
6423
  var ref = useRef4(null);
6270
- var _useState = useState5(maxMenuHeight), _useState2 = _slicedToArray(_useState, 2), maxHeight = _useState2[0], setMaxHeight = _useState2[1];
6271
- var _useState3 = useState5(null), _useState4 = _slicedToArray(_useState3, 2), placement = _useState4[0], setPlacement = _useState4[1];
6424
+ var _useState = useState6(maxMenuHeight), _useState2 = _slicedToArray(_useState, 2), maxHeight = _useState2[0], setMaxHeight = _useState2[1];
6425
+ var _useState3 = useState6(null), _useState4 = _slicedToArray(_useState3, 2), placement = _useState4[0], setPlacement = _useState4[1];
6272
6426
  var controlHeight2 = theme.spacing.controlHeight;
6273
6427
  index(function() {
6274
6428
  var menuEl = ref.current;
@@ -6298,7 +6452,7 @@ var MenuPlacer = function MenuPlacer2(props) {
6298
6452
  };
6299
6453
  var Menu2 = function Menu3(props) {
6300
6454
  var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
6301
- return jsx86("div", _extends({}, getStyleProps(props, "menu", {
6455
+ return jsx89("div", _extends({}, getStyleProps(props, "menu", {
6302
6456
  menu: true
6303
6457
  }), {
6304
6458
  ref: innerRef
@@ -6320,7 +6474,7 @@ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
6320
6474
  };
6321
6475
  var MenuList = function MenuList2(props) {
6322
6476
  var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
6323
- return jsx86("div", _extends({}, getStyleProps(props, "menuList", {
6477
+ return jsx89("div", _extends({}, getStyleProps(props, "menuList", {
6324
6478
  "menu-list": true,
6325
6479
  "menu-list--is-multi": isMulti
6326
6480
  }), {
@@ -6340,7 +6494,7 @@ var noOptionsMessageCSS = noticeCSS;
6340
6494
  var loadingMessageCSS = noticeCSS;
6341
6495
  var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
6342
6496
  var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
6343
- return jsx86("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
6497
+ return jsx89("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
6344
6498
  children,
6345
6499
  innerProps
6346
6500
  }), "noOptionsMessage", {
@@ -6350,7 +6504,7 @@ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
6350
6504
  };
6351
6505
  var LoadingMessage = function LoadingMessage2(_ref7) {
6352
6506
  var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
6353
- return jsx86("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
6507
+ return jsx89("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
6354
6508
  children,
6355
6509
  innerProps
6356
6510
  }), "loadingMessage", {
@@ -6372,13 +6526,13 @@ var MenuPortal = function MenuPortal2(props) {
6372
6526
  var appendTo = props.appendTo, children = props.children, controlElement = props.controlElement, innerProps = props.innerProps, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition;
6373
6527
  var menuPortalRef = useRef4(null);
6374
6528
  var cleanupRef = useRef4(null);
6375
- var _useState5 = useState5(coercePlacement(menuPlacement)), _useState6 = _slicedToArray(_useState5, 2), placement = _useState6[0], setPortalPlacement = _useState6[1];
6529
+ var _useState5 = useState6(coercePlacement(menuPlacement)), _useState6 = _slicedToArray(_useState5, 2), placement = _useState6[0], setPortalPlacement = _useState6[1];
6376
6530
  var portalPlacementContext = useMemo3(function() {
6377
6531
  return {
6378
6532
  setPortalPlacement
6379
6533
  };
6380
6534
  }, []);
6381
- var _useState7 = useState5(null), _useState8 = _slicedToArray(_useState7, 2), computedPosition = _useState8[0], setComputedPosition = _useState8[1];
6535
+ var _useState7 = useState6(null), _useState8 = _slicedToArray(_useState7, 2), computedPosition = _useState8[0], setComputedPosition = _useState8[1];
6382
6536
  var updateComputedPosition = useCallback2(function() {
6383
6537
  if (!controlElement) return;
6384
6538
  var rect = getBoundingClientObj(controlElement);
@@ -6413,7 +6567,7 @@ var MenuPortal = function MenuPortal2(props) {
6413
6567
  runAutoUpdate();
6414
6568
  }, [runAutoUpdate]);
6415
6569
  if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
6416
- var menuWrapper = jsx86("div", _extends({
6570
+ var menuWrapper = jsx89("div", _extends({
6417
6571
  ref: setMenuPortalElement
6418
6572
  }, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
6419
6573
  offset: computedPosition.offset,
@@ -6422,7 +6576,7 @@ var MenuPortal = function MenuPortal2(props) {
6422
6576
  }), "menuPortal", {
6423
6577
  "menu-portal": true
6424
6578
  }), innerProps), children);
6425
- return jsx86(PortalPlacementContext.Provider, {
6579
+ return jsx89(PortalPlacementContext.Provider, {
6426
6580
  value: portalPlacementContext
6427
6581
  }, appendTo ? /* @__PURE__ */ createPortal(menuWrapper, appendTo) : menuWrapper);
6428
6582
  };
@@ -6438,7 +6592,7 @@ var containerCSS = function containerCSS2(_ref3) {
6438
6592
  };
6439
6593
  var SelectContainer = function SelectContainer2(props) {
6440
6594
  var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
6441
- return jsx86("div", _extends({}, getStyleProps(props, "container", {
6595
+ return jsx89("div", _extends({}, getStyleProps(props, "container", {
6442
6596
  "--is-disabled": isDisabled,
6443
6597
  "--is-rtl": isRtl
6444
6598
  }), innerProps), children);
@@ -6459,7 +6613,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) {
6459
6613
  };
6460
6614
  var ValueContainer = function ValueContainer2(props) {
6461
6615
  var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
6462
- return jsx86("div", _extends({}, getStyleProps(props, "valueContainer", {
6616
+ return jsx89("div", _extends({}, getStyleProps(props, "valueContainer", {
6463
6617
  "value-container": true,
6464
6618
  "value-container--is-multi": isMulti,
6465
6619
  "value-container--has-value": hasValue
@@ -6475,7 +6629,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
6475
6629
  };
6476
6630
  var IndicatorsContainer = function IndicatorsContainer2(props) {
6477
6631
  var children = props.children, innerProps = props.innerProps;
6478
- return jsx86("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
6632
+ return jsx89("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
6479
6633
  indicators: true
6480
6634
  }), innerProps), children);
6481
6635
  };
@@ -6496,7 +6650,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
6496
6650
  };
6497
6651
  var Svg = function Svg2(_ref3) {
6498
6652
  var size2 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2);
6499
- return jsx86("svg", _extends({
6653
+ return jsx89("svg", _extends({
6500
6654
  height: size2,
6501
6655
  width: size2,
6502
6656
  viewBox: "0 0 20 20",
@@ -6506,16 +6660,16 @@ var Svg = function Svg2(_ref3) {
6506
6660
  }, props));
6507
6661
  };
6508
6662
  var CrossIcon = function CrossIcon2(props) {
6509
- return jsx86(Svg, _extends({
6663
+ return jsx89(Svg, _extends({
6510
6664
  size: 20
6511
- }, props), jsx86("path", {
6665
+ }, props), jsx89("path", {
6512
6666
  d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
6513
6667
  }));
6514
6668
  };
6515
6669
  var DownChevron = function DownChevron2(props) {
6516
- return jsx86(Svg, _extends({
6670
+ return jsx89(Svg, _extends({
6517
6671
  size: 20
6518
- }, props), jsx86("path", {
6672
+ }, props), jsx89("path", {
6519
6673
  d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
6520
6674
  }));
6521
6675
  };
@@ -6536,18 +6690,18 @@ var baseCSS = function baseCSS2(_ref3, unstyled) {
6536
6690
  var dropdownIndicatorCSS = baseCSS;
6537
6691
  var DropdownIndicator = function DropdownIndicator2(props) {
6538
6692
  var children = props.children, innerProps = props.innerProps;
6539
- return jsx86("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
6693
+ return jsx89("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
6540
6694
  indicator: true,
6541
6695
  "dropdown-indicator": true
6542
- }), innerProps), children || jsx86(DownChevron, null));
6696
+ }), innerProps), children || jsx89(DownChevron, null));
6543
6697
  };
6544
6698
  var clearIndicatorCSS = baseCSS;
6545
6699
  var ClearIndicator = function ClearIndicator2(props) {
6546
6700
  var children = props.children, innerProps = props.innerProps;
6547
- return jsx86("div", _extends({}, getStyleProps(props, "clearIndicator", {
6701
+ return jsx89("div", _extends({}, getStyleProps(props, "clearIndicator", {
6548
6702
  indicator: true,
6549
6703
  "clear-indicator": true
6550
- }), innerProps), children || jsx86(CrossIcon, null));
6704
+ }), innerProps), children || jsx89(CrossIcon, null));
6551
6705
  };
6552
6706
  var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
6553
6707
  var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors;
@@ -6563,7 +6717,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
6563
6717
  };
6564
6718
  var IndicatorSeparator = function IndicatorSeparator2(props) {
6565
6719
  var innerProps = props.innerProps;
6566
- return jsx86("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
6720
+ return jsx89("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
6567
6721
  "indicator-separator": true
6568
6722
  })));
6569
6723
  };
@@ -6587,7 +6741,7 @@ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
6587
6741
  };
6588
6742
  var LoadingDot = function LoadingDot2(_ref6) {
6589
6743
  var delay = _ref6.delay, offset2 = _ref6.offset;
6590
- return jsx86("span", {
6744
+ return jsx89("span", {
6591
6745
  css: /* @__PURE__ */ css({
6592
6746
  animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
6593
6747
  backgroundColor: "currentColor",
@@ -6602,20 +6756,20 @@ var LoadingDot = function LoadingDot2(_ref6) {
6602
6756
  };
6603
6757
  var LoadingIndicator = function LoadingIndicator2(_ref7) {
6604
6758
  var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size2 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
6605
- return jsx86("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
6759
+ return jsx89("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
6606
6760
  innerProps,
6607
6761
  isRtl,
6608
6762
  size: size2
6609
6763
  }), "loadingIndicator", {
6610
6764
  indicator: true,
6611
6765
  "loading-indicator": true
6612
- }), innerProps), jsx86(LoadingDot, {
6766
+ }), innerProps), jsx89(LoadingDot, {
6613
6767
  delay: 0,
6614
6768
  offset: isRtl
6615
- }), jsx86(LoadingDot, {
6769
+ }), jsx89(LoadingDot, {
6616
6770
  delay: 160,
6617
6771
  offset: true
6618
- }), jsx86(LoadingDot, {
6772
+ }), jsx89(LoadingDot, {
6619
6773
  delay: 320,
6620
6774
  offset: !isRtl
6621
6775
  }));
@@ -6647,7 +6801,7 @@ var css$1 = function css2(_ref3, unstyled) {
6647
6801
  };
6648
6802
  var Control = function Control2(props) {
6649
6803
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
6650
- return jsx86("div", _extends({
6804
+ return jsx89("div", _extends({
6651
6805
  ref: innerRef
6652
6806
  }, getStyleProps(props, "control", {
6653
6807
  control: true,
@@ -6669,15 +6823,15 @@ var groupCSS = function groupCSS2(_ref3, unstyled) {
6669
6823
  };
6670
6824
  var Group2 = function Group3(props) {
6671
6825
  var children = props.children, cx = props.cx, getStyles = props.getStyles, getClassNames2 = props.getClassNames, Heading7 = props.Heading, headingProps = props.headingProps, innerProps = props.innerProps, label = props.label, theme = props.theme, selectProps = props.selectProps;
6672
- return jsx86("div", _extends({}, getStyleProps(props, "group", {
6826
+ return jsx89("div", _extends({}, getStyleProps(props, "group", {
6673
6827
  group: true
6674
- }), innerProps), jsx86(Heading7, _extends({}, headingProps, {
6828
+ }), innerProps), jsx89(Heading7, _extends({}, headingProps, {
6675
6829
  selectProps,
6676
6830
  theme,
6677
6831
  getStyles,
6678
6832
  getClassNames: getClassNames2,
6679
6833
  cx
6680
- }), label), jsx86("div", null, children));
6834
+ }), label), jsx89("div", null, children));
6681
6835
  };
6682
6836
  var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) {
6683
6837
  var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing;
@@ -6699,7 +6853,7 @@ var GroupHeading = function GroupHeading2(props) {
6699
6853
  var _cleanCommonProps = cleanCommonProps(props);
6700
6854
  _cleanCommonProps.data;
6701
6855
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
6702
- return jsx86("div", _extends({}, getStyleProps(props, "groupHeading", {
6856
+ return jsx89("div", _extends({}, getStyleProps(props, "groupHeading", {
6703
6857
  "group-heading": true
6704
6858
  }), innerProps));
6705
6859
  };
@@ -6751,11 +6905,11 @@ var inputStyle = function inputStyle2(isHidden) {
6751
6905
  var Input2 = function Input3(props) {
6752
6906
  var cx = props.cx, value = props.value;
6753
6907
  var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3);
6754
- return jsx86("div", _extends({}, getStyleProps(props, "input", {
6908
+ return jsx89("div", _extends({}, getStyleProps(props, "input", {
6755
6909
  "input-container": true
6756
6910
  }), {
6757
6911
  "data-value": value || ""
6758
- }), jsx86("input", _extends({
6912
+ }), jsx89("input", _extends({
6759
6913
  className: cx({
6760
6914
  input: true
6761
6915
  }, inputClassName),
@@ -6809,35 +6963,35 @@ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
6809
6963
  };
6810
6964
  var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
6811
6965
  var children = _ref4.children, innerProps = _ref4.innerProps;
6812
- return jsx86("div", innerProps, children);
6966
+ return jsx89("div", innerProps, children);
6813
6967
  };
6814
6968
  var MultiValueContainer = MultiValueGeneric;
6815
6969
  var MultiValueLabel = MultiValueGeneric;
6816
6970
  function MultiValueRemove(_ref5) {
6817
6971
  var children = _ref5.children, innerProps = _ref5.innerProps;
6818
- return jsx86("div", _extends({
6972
+ return jsx89("div", _extends({
6819
6973
  role: "button"
6820
- }, innerProps), children || jsx86(CrossIcon, {
6974
+ }, innerProps), children || jsx89(CrossIcon, {
6821
6975
  size: 14
6822
6976
  }));
6823
6977
  }
6824
6978
  var MultiValue = function MultiValue2(props) {
6825
6979
  var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
6826
6980
  var Container2 = components2.Container, Label3 = components2.Label, Remove = components2.Remove;
6827
- return jsx86(Container2, {
6981
+ return jsx89(Container2, {
6828
6982
  data,
6829
6983
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
6830
6984
  "multi-value": true,
6831
6985
  "multi-value--is-disabled": isDisabled
6832
6986
  })), innerProps),
6833
6987
  selectProps
6834
- }, jsx86(Label3, {
6988
+ }, jsx89(Label3, {
6835
6989
  data,
6836
6990
  innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
6837
6991
  "multi-value__label": true
6838
6992
  })),
6839
6993
  selectProps
6840
- }, children), jsx86(Remove, {
6994
+ }, children), jsx89(Remove, {
6841
6995
  data,
6842
6996
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
6843
6997
  "multi-value__remove": true
@@ -6870,7 +7024,7 @@ var optionCSS = function optionCSS2(_ref3, unstyled) {
6870
7024
  };
6871
7025
  var Option = function Option2(props) {
6872
7026
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
6873
- return jsx86("div", _extends({}, getStyleProps(props, "option", {
7027
+ return jsx89("div", _extends({}, getStyleProps(props, "option", {
6874
7028
  option: true,
6875
7029
  "option--is-disabled": isDisabled,
6876
7030
  "option--is-focused": isFocused,
@@ -6894,7 +7048,7 @@ var placeholderCSS = function placeholderCSS2(_ref3, unstyled) {
6894
7048
  };
6895
7049
  var Placeholder = function Placeholder2(props) {
6896
7050
  var children = props.children, innerProps = props.innerProps;
6897
- return jsx86("div", _extends({}, getStyleProps(props, "placeholder", {
7051
+ return jsx89("div", _extends({}, getStyleProps(props, "placeholder", {
6898
7052
  placeholder: true
6899
7053
  }), innerProps), children);
6900
7054
  };
@@ -6916,7 +7070,7 @@ var css3 = function css4(_ref3, unstyled) {
6916
7070
  };
6917
7071
  var SingleValue = function SingleValue2(props) {
6918
7072
  var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
6919
- return jsx86("div", _extends({}, getStyleProps(props, "singleValue", {
7073
+ return jsx89("div", _extends({}, getStyleProps(props, "singleValue", {
6920
7074
  "single-value": true,
6921
7075
  "single-value--is-disabled": isDisabled
6922
7076
  }), innerProps), children);
@@ -7018,7 +7172,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
7018
7172
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
7019
7173
  };
7020
7174
  var A11yText = function A11yText2(props) {
7021
- return jsx86("span", _extends({
7175
+ return jsx89("span", _extends({
7022
7176
  css: _ref
7023
7177
  }, props));
7024
7178
  };
@@ -7153,18 +7307,18 @@ var LiveRegion = function LiveRegion2(props) {
7153
7307
  }
7154
7308
  return guidanceMsg;
7155
7309
  }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
7156
- var ScreenReaderText = jsx86(Fragment7, null, jsx86("span", {
7310
+ var ScreenReaderText = jsx89(Fragment8, null, jsx89("span", {
7157
7311
  id: "aria-selection"
7158
- }, ariaSelected), jsx86("span", {
7312
+ }, ariaSelected), jsx89("span", {
7159
7313
  id: "aria-focused"
7160
- }, ariaFocused), jsx86("span", {
7314
+ }, ariaFocused), jsx89("span", {
7161
7315
  id: "aria-results"
7162
- }, ariaResults), jsx86("span", {
7316
+ }, ariaResults), jsx89("span", {
7163
7317
  id: "aria-guidance"
7164
7318
  }, ariaGuidance));
7165
- return jsx86(Fragment7, null, jsx86(A11yText$1, {
7319
+ return jsx89(Fragment8, null, jsx89(A11yText$1, {
7166
7320
  id
7167
- }, isInitialFocus && ScreenReaderText), jsx86(A11yText$1, {
7321
+ }, isInitialFocus && ScreenReaderText), jsx89(A11yText$1, {
7168
7322
  "aria-live": ariaLive,
7169
7323
  "aria-atomic": "false",
7170
7324
  "aria-relevant": "additions text",
@@ -7477,7 +7631,7 @@ var _excluded4 = ["innerRef"];
7477
7631
  function DummyInput(_ref3) {
7478
7632
  var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4);
7479
7633
  var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
7480
- return jsx86("input", _extends({
7634
+ return jsx89("input", _extends({
7481
7635
  ref: innerRef
7482
7636
  }, filteredProps, {
7483
7637
  css: /* @__PURE__ */ css({
@@ -7719,7 +7873,7 @@ function ScrollManager(_ref3) {
7719
7873
  setScrollCaptureTarget(element);
7720
7874
  setScrollLockTarget(element);
7721
7875
  };
7722
- return jsx86(Fragment7, null, lockEnabled && jsx86("div", {
7876
+ return jsx89(Fragment8, null, lockEnabled && jsx89("div", {
7723
7877
  onClick: blurSelectInput,
7724
7878
  css: _ref2$1
7725
7879
  }), children(targetRef));
@@ -7738,7 +7892,7 @@ var _ref22 = process.env.NODE_ENV === "production" ? {
7738
7892
  };
7739
7893
  var RequiredInput = function RequiredInput2(_ref3) {
7740
7894
  var name = _ref3.name, onFocus2 = _ref3.onFocus;
7741
- return jsx86("input", {
7895
+ return jsx89("input", {
7742
7896
  required: true,
7743
7897
  name,
7744
7898
  tabIndex: -1,
@@ -9318,7 +9472,7 @@ var import_typeof5 = __toESM(require_typeof());
9318
9472
  var import_taggedTemplateLiteral2 = __toESM(require_taggedTemplateLiteral());
9319
9473
  var import_defineProperty3 = __toESM(require_defineProperty());
9320
9474
  import "react-dom";
9321
- var StateManagedSelect = /* @__PURE__ */ forwardRef24(function(props, ref) {
9475
+ var StateManagedSelect = /* @__PURE__ */ forwardRef25(function(props, ref) {
9322
9476
  var baseSelectProps = useStateManager(props);
9323
9477
  return /* @__PURE__ */ React11.createElement(Select, _extends({
9324
9478
  ref
@@ -9329,8 +9483,8 @@ var StateManagedSelect$1 = StateManagedSelect;
9329
9483
  // src/Multiselect/Multiselect.tsx
9330
9484
  import { useField } from "@react-aria/label";
9331
9485
  import { useId as useId2 } from "@react-aria/utils";
9332
- import { cn as cn48, useClassNames as useClassNames48 } from "@marigold/system";
9333
- import { jsx as jsx88, jsxs as jsxs32 } from "react/jsx-runtime";
9486
+ import { cn as cn49, useClassNames as useClassNames49 } from "@marigold/system";
9487
+ import { jsx as jsx91, jsxs as jsxs34 } from "react/jsx-runtime";
9334
9488
  var propsToBeRemoved = [
9335
9489
  "clearValue",
9336
9490
  "getStyles",
@@ -9356,7 +9510,7 @@ var Input4 = ({ innerRef, placeholder, hasValue, ...props }) => {
9356
9510
  },
9357
9511
  {}
9358
9512
  );
9359
- return /* @__PURE__ */ jsx88(
9513
+ return /* @__PURE__ */ jsx91(
9360
9514
  _Input2,
9361
9515
  {
9362
9516
  disabled: props.isDisabled,
@@ -9367,20 +9521,20 @@ var Input4 = ({ innerRef, placeholder, hasValue, ...props }) => {
9367
9521
  );
9368
9522
  };
9369
9523
  var MultiValueRemove2 = ({ innerProps }) => {
9370
- return /* @__PURE__ */ jsx88(Button9, { slot: "remove", ...innerProps, 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" }) }) });
9524
+ return /* @__PURE__ */ jsx91(Button9, { slot: "remove", ...innerProps, children: /* @__PURE__ */ jsx91("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx91("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" }) }) });
9371
9525
  };
9372
9526
  var getClassNames = (classNames3) => ({
9373
- control: () => cn48(
9527
+ control: () => cn49(
9374
9528
  "relative flex items-center box-border flex-wrap justify-between",
9375
9529
  classNames3.container
9376
9530
  ),
9377
9531
  container: () => "pointer-events-auto",
9378
9532
  indicatorSeparator: () => "hidden",
9379
- menu: () => cn48("b", classNames3.listContainer),
9380
- menuList: () => cn48("overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh] p-0", classNames3.list),
9381
- multiValue: () => cn48(classNames3.tag, "m-0 "),
9533
+ menu: () => cn49("b", classNames3.listContainer),
9534
+ menuList: () => cn49("overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh] p-0", classNames3.list),
9535
+ multiValue: () => cn49(classNames3.tag, "m-0 "),
9382
9536
  multiValueLabel: () => "p-0",
9383
- option: ({ isFocused }) => cn48(classNames3.option, { isFocused }),
9537
+ option: ({ isFocused }) => cn49(classNames3.option, { isFocused }),
9384
9538
  placeholder: () => "hidden",
9385
9539
  valueContainer: () => classNames3.valueContainer
9386
9540
  });
@@ -9403,7 +9557,7 @@ var Multiselect = ({
9403
9557
  width,
9404
9558
  ...rest
9405
9559
  }) => {
9406
- const classNames3 = useClassNames48({
9560
+ const classNames3 = useClassNames49({
9407
9561
  component: "MultiSelect",
9408
9562
  size: size2,
9409
9563
  variant
@@ -9422,7 +9576,7 @@ var Multiselect = ({
9422
9576
  label: props.label,
9423
9577
  errorMessage
9424
9578
  });
9425
- return /* @__PURE__ */ jsx88(
9579
+ return /* @__PURE__ */ jsx91(
9426
9580
  Provider3,
9427
9581
  {
9428
9582
  values: [
@@ -9448,20 +9602,20 @@ var Multiselect = ({
9448
9602
  // react-select doesn't handle readonly so we had to do it manually here
9449
9603
  // keep to the button disabled in read only to prevent menu from opening
9450
9604
  isDisabled: disabled || readOnly,
9451
- className: cn48("flex items-center", classNames3.closeButton)
9605
+ className: cn49("flex items-center", classNames3.closeButton)
9452
9606
  }
9453
9607
  ]
9454
9608
  ],
9455
- children: /* @__PURE__ */ jsxs32(
9609
+ children: /* @__PURE__ */ jsxs34(
9456
9610
  "div",
9457
9611
  {
9458
- className: cn48(classNames3.field, "group/field", `w-${width}`),
9612
+ className: cn49(classNames3.field, "group/field", `w-${width}`),
9459
9613
  "data-required": props.required,
9460
9614
  "data-invalid": error,
9461
9615
  "data-readonly": readOnly,
9462
9616
  children: [
9463
- props.label && /* @__PURE__ */ jsx88(_Label, { ...labelProps, children: props.label }),
9464
- /* @__PURE__ */ jsx88(
9617
+ props.label && /* @__PURE__ */ jsx91(_Label, { ...labelProps, children: props.label }),
9618
+ /* @__PURE__ */ jsx91(
9465
9619
  StateManagedSelect$1,
9466
9620
  {
9467
9621
  ...props,
@@ -9497,19 +9651,19 @@ var Multiselect = ({
9497
9651
  Input: Input4,
9498
9652
  MultiValueRemove: MultiValueRemove2,
9499
9653
  // eslint-disable-next-line react/prop-types
9500
- DropdownIndicator: ({ innerProps, isDisabled }) => /* @__PURE__ */ jsx88(
9654
+ DropdownIndicator: ({ innerProps, isDisabled }) => /* @__PURE__ */ jsx91(
9501
9655
  "button",
9502
9656
  {
9503
9657
  ...innerProps,
9504
9658
  disabled: isDisabled,
9505
9659
  className: classNames3.icon,
9506
- children: /* @__PURE__ */ jsx88(ChevronDown, { className: "size-4" })
9660
+ children: /* @__PURE__ */ jsx91(ChevronDown, { className: "size-4" })
9507
9661
  }
9508
9662
  )
9509
9663
  }
9510
9664
  }
9511
9665
  ),
9512
- /* @__PURE__ */ jsx88(HelpText, { description, errorMessage })
9666
+ /* @__PURE__ */ jsx91(HelpText, { description, errorMessage })
9513
9667
  ]
9514
9668
  }
9515
9669
  )
@@ -9518,15 +9672,15 @@ var Multiselect = ({
9518
9672
  };
9519
9673
 
9520
9674
  // src/NumberField/NumberField.tsx
9521
- import { forwardRef as forwardRef25 } from "react";
9675
+ import { forwardRef as forwardRef26 } from "react";
9522
9676
  import { Group as Group4, Input as Input5, NumberField } from "react-aria-components";
9523
- import { cn as cn50, useClassNames as useClassNames49 } from "@marigold/system";
9677
+ import { cn as cn51, useClassNames as useClassNames50 } from "@marigold/system";
9524
9678
 
9525
9679
  // src/NumberField/StepButton.tsx
9526
9680
  import { Button as Button10 } from "react-aria-components";
9527
- import { cn as cn49 } from "@marigold/system";
9528
- import { jsx as jsx89 } from "react/jsx-runtime";
9529
- var Plus = () => /* @__PURE__ */ jsx89("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx89(
9681
+ import { cn as cn50 } from "@marigold/system";
9682
+ import { jsx as jsx92 } from "react/jsx-runtime";
9683
+ var Plus = () => /* @__PURE__ */ jsx92("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx92(
9530
9684
  "path",
9531
9685
  {
9532
9686
  fillRule: "evenodd",
@@ -9534,7 +9688,7 @@ var Plus = () => /* @__PURE__ */ jsx89("svg", { width: 16, height: 16, viewBox:
9534
9688
  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"
9535
9689
  }
9536
9690
  ) });
9537
- var Minus = () => /* @__PURE__ */ jsx89("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx89(
9691
+ var Minus = () => /* @__PURE__ */ jsx92("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx92(
9538
9692
  "path",
9539
9693
  {
9540
9694
  fillRule: "evenodd",
@@ -9544,10 +9698,10 @@ var Minus = () => /* @__PURE__ */ jsx89("svg", { width: 16, height: 16, viewBox:
9544
9698
  ) });
9545
9699
  var _StepButton = ({ direction, className, ...props }) => {
9546
9700
  const Icon4 = direction === "up" ? Plus : Minus;
9547
- return /* @__PURE__ */ jsx89(
9701
+ return /* @__PURE__ */ jsx92(
9548
9702
  Button10,
9549
9703
  {
9550
- className: cn49(
9704
+ className: cn50(
9551
9705
  [
9552
9706
  "flex items-center justify-center",
9553
9707
  "cursor-pointer data-disabled:cursor-not-allowed"
@@ -9555,14 +9709,14 @@ var _StepButton = ({ direction, className, ...props }) => {
9555
9709
  className
9556
9710
  ),
9557
9711
  ...props,
9558
- children: /* @__PURE__ */ jsx89(Icon4, {})
9712
+ children: /* @__PURE__ */ jsx92(Icon4, {})
9559
9713
  }
9560
9714
  );
9561
9715
  };
9562
9716
 
9563
9717
  // src/NumberField/NumberField.tsx
9564
- import { jsx as jsx90, jsxs as jsxs33 } from "react/jsx-runtime";
9565
- var _NumberField = forwardRef25(
9718
+ import { jsx as jsx93, jsxs as jsxs35 } from "react/jsx-runtime";
9719
+ var _NumberField = forwardRef26(
9566
9720
  ({
9567
9721
  variant,
9568
9722
  size: size2,
@@ -9573,7 +9727,7 @@ var _NumberField = forwardRef25(
9573
9727
  hideStepper,
9574
9728
  ...rest
9575
9729
  }, ref) => {
9576
- const classNames3 = useClassNames49({
9730
+ const classNames3 = useClassNames50({
9577
9731
  component: "NumberField",
9578
9732
  size: size2,
9579
9733
  variant
@@ -9586,15 +9740,15 @@ var _NumberField = forwardRef25(
9586
9740
  ...rest
9587
9741
  };
9588
9742
  const showStepper = !hideStepper && !readOnly;
9589
- return /* @__PURE__ */ jsx90(
9743
+ return /* @__PURE__ */ jsx93(
9590
9744
  FieldBase,
9591
9745
  {
9592
9746
  as: NumberField,
9593
9747
  ...props,
9594
9748
  "data-readonly": readOnly ? "true" : void 0,
9595
9749
  "data-stepper": showStepper ? "true" : void 0,
9596
- children: /* @__PURE__ */ jsxs33(Group4, { className: cn50("flex items-stretch", classNames3.group), children: [
9597
- showStepper && /* @__PURE__ */ jsx90(
9750
+ children: /* @__PURE__ */ jsxs35(Group4, { className: cn51("flex items-stretch", classNames3.group), children: [
9751
+ showStepper && /* @__PURE__ */ jsx93(
9598
9752
  _StepButton,
9599
9753
  {
9600
9754
  className: classNames3.stepper,
@@ -9602,14 +9756,14 @@ var _NumberField = forwardRef25(
9602
9756
  slot: "decrement"
9603
9757
  }
9604
9758
  ),
9605
- /* @__PURE__ */ jsx90(
9759
+ /* @__PURE__ */ jsx93(
9606
9760
  Input5,
9607
9761
  {
9608
9762
  ref,
9609
- className: cn50("h-full flex-1 outline-none", classNames3.input)
9763
+ className: cn51("h-full flex-1 outline-none", classNames3.input)
9610
9764
  }
9611
9765
  ),
9612
- showStepper && /* @__PURE__ */ jsx90(
9766
+ showStepper && /* @__PURE__ */ jsx93(
9613
9767
  _StepButton,
9614
9768
  {
9615
9769
  className: classNames3.stepper,
@@ -9624,28 +9778,28 @@ var _NumberField = forwardRef25(
9624
9778
  );
9625
9779
 
9626
9780
  // src/Pagination/Pagination.tsx
9627
- import { useEffect as useEffect2, useRef as useRef8, useState as useState6 } from "react";
9781
+ import { useEffect as useEffect2, useRef as useRef8, useState as useState7 } from "react";
9628
9782
  import { FocusScope as FocusScope2, useFocusManager } from "@react-aria/focus";
9629
- import { useClassNames as useClassNames53 } from "@marigold/system";
9783
+ import { useClassNames as useClassNames54 } from "@marigold/system";
9630
9784
 
9631
9785
  // src/Pagination/Ellipsis.tsx
9632
- import { useClassNames as useClassNames50 } from "@marigold/system";
9633
- import { jsx as jsx91 } from "react/jsx-runtime";
9786
+ import { useClassNames as useClassNames51 } from "@marigold/system";
9787
+ import { jsx as jsx94 } from "react/jsx-runtime";
9634
9788
  var Ellipsis = () => {
9635
- const { ellipsis } = useClassNames50({
9789
+ const { ellipsis } = useClassNames51({
9636
9790
  component: "Pagination"
9637
9791
  });
9638
- return /* @__PURE__ */ jsx91("span", { className: ellipsis, "aria-label": "These pages are hidden", children: "\u2026" });
9792
+ return /* @__PURE__ */ jsx94("span", { className: ellipsis, "aria-label": "These pages are hidden", children: "\u2026" });
9639
9793
  };
9640
9794
 
9641
9795
  // src/Pagination/NavigationButton.tsx
9642
9796
  import { useRef as useRef6 } from "react";
9643
9797
  import { useButton as useButton2 } from "@react-aria/button";
9644
- import { cn as cn51, useClassNames as useClassNames51 } from "@marigold/system";
9645
- import { jsxs as jsxs34 } from "react/jsx-runtime";
9798
+ import { cn as cn52, useClassNames as useClassNames52 } from "@marigold/system";
9799
+ import { jsxs as jsxs36 } from "react/jsx-runtime";
9646
9800
  var NavigationButton = (props) => {
9647
9801
  const ref = useRef6(null);
9648
- const { navigationButton } = useClassNames51({
9802
+ const { navigationButton } = useClassNames52({
9649
9803
  component: "Pagination"
9650
9804
  });
9651
9805
  let { buttonProps } = useButton2(props, ref);
@@ -9658,14 +9812,14 @@ var NavigationButton = (props) => {
9658
9812
  position: position2,
9659
9813
  ...rest
9660
9814
  } = props;
9661
- return /* @__PURE__ */ jsxs34(
9815
+ return /* @__PURE__ */ jsxs36(
9662
9816
  "button",
9663
9817
  {
9664
9818
  ref,
9665
9819
  ...buttonProps,
9666
9820
  ...rest,
9667
9821
  disabled: isDisabled,
9668
- className: cn51(navigationButton, controlLabel && "w-24 px-2"),
9822
+ className: cn52(navigationButton, controlLabel && "w-24 px-2"),
9669
9823
  "data-selected": isSelected,
9670
9824
  children: [
9671
9825
  position2 === "left" && children,
@@ -9679,16 +9833,16 @@ var NavigationButton = (props) => {
9679
9833
  // src/Pagination/PageButton.tsx
9680
9834
  import { useRef as useRef7 } from "react";
9681
9835
  import { useButton as useButton3 } from "@react-aria/button";
9682
- import { useClassNames as useClassNames52 } from "@marigold/system";
9683
- import { jsx as jsx92 } from "react/jsx-runtime";
9836
+ import { useClassNames as useClassNames53 } from "@marigold/system";
9837
+ import { jsx as jsx95 } from "react/jsx-runtime";
9684
9838
  var PageButton = (props) => {
9685
9839
  const ref = useRef7(null);
9686
- const { pageButton } = useClassNames52({
9840
+ const { pageButton } = useClassNames53({
9687
9841
  component: "Pagination"
9688
9842
  });
9689
9843
  let { buttonProps } = useButton3(props, ref);
9690
9844
  let { page, selected, isDisabled } = props;
9691
- return /* @__PURE__ */ jsx92(
9845
+ return /* @__PURE__ */ jsx95(
9692
9846
  "button",
9693
9847
  {
9694
9848
  ref,
@@ -9735,7 +9889,7 @@ var usePageRange = ({ currentPage, totalPages }) => {
9735
9889
  };
9736
9890
 
9737
9891
  // src/Pagination/Pagination.tsx
9738
- import { Fragment as Fragment8, jsx as jsx93, jsxs as jsxs35 } from "react/jsx-runtime";
9892
+ import { Fragment as Fragment9, jsx as jsx96, jsxs as jsxs37 } from "react/jsx-runtime";
9739
9893
  var InnerPagination = ({
9740
9894
  currentPage,
9741
9895
  pageSize,
@@ -9762,7 +9916,7 @@ var InnerPagination = ({
9762
9916
  onChange2(newPage);
9763
9917
  }
9764
9918
  };
9765
- const { icon, container } = useClassNames53({
9919
+ const { icon, container } = useClassNames54({
9766
9920
  component: "Pagination"
9767
9921
  });
9768
9922
  const handleKeyDown = (onEnter) => (e) => {
@@ -9777,8 +9931,8 @@ var InnerPagination = ({
9777
9931
  onEnter();
9778
9932
  }
9779
9933
  };
9780
- return /* @__PURE__ */ jsxs35(Fragment8, { children: [
9781
- /* @__PURE__ */ jsx93(
9934
+ return /* @__PURE__ */ jsxs37(Fragment9, { children: [
9935
+ /* @__PURE__ */ jsx96(
9782
9936
  NavigationButton,
9783
9937
  {
9784
9938
  onClick: () => handlePageChange(Math.max(1, currentPage - 1)),
@@ -9787,11 +9941,11 @@ var InnerPagination = ({
9787
9941
  controlLabel: controlLabels == null ? void 0 : controlLabels[0],
9788
9942
  position: "left",
9789
9943
  onKeyDown: handleKeyDown(() => handlePageChange(currentPage - 1)),
9790
- children: /* @__PURE__ */ jsx93(ChevronLeft, { className: icon })
9944
+ children: /* @__PURE__ */ jsx96(ChevronLeft, { className: icon })
9791
9945
  }
9792
9946
  ),
9793
- /* @__PURE__ */ jsx93("div", { className: container, children: totalPages > 0 ? pageRange.map(
9794
- (pageNumber, index2) => pageNumber === "ellipsis" ? /* @__PURE__ */ jsx93(Ellipsis, {}, `ellipsis-${index2}`) : /* @__PURE__ */ jsx93(
9947
+ /* @__PURE__ */ jsx96("div", { className: container, children: totalPages > 0 ? pageRange.map(
9948
+ (pageNumber, index2) => pageNumber === "ellipsis" ? /* @__PURE__ */ jsx96(Ellipsis, {}, `ellipsis-${index2}`) : /* @__PURE__ */ jsx96(
9795
9949
  PageButton,
9796
9950
  {
9797
9951
  page: pageNumber,
@@ -9801,8 +9955,8 @@ var InnerPagination = ({
9801
9955
  },
9802
9956
  pageNumber
9803
9957
  )
9804
- ) : /* @__PURE__ */ jsx93(PageButton, { page: 1, isDisabled: true }, 1) }),
9805
- /* @__PURE__ */ jsx93(
9958
+ ) : /* @__PURE__ */ jsx96(PageButton, { page: 1, isDisabled: true }, 1) }),
9959
+ /* @__PURE__ */ jsx96(
9806
9960
  NavigationButton,
9807
9961
  {
9808
9962
  onClick: () => handlePageChange(Math.min(totalPages, currentPage + 1)),
@@ -9811,7 +9965,7 @@ var InnerPagination = ({
9811
9965
  controlLabel: controlLabels == null ? void 0 : controlLabels[1],
9812
9966
  position: "right",
9813
9967
  onKeyDown: handleKeyDown(() => handlePageChange(currentPage + 1)),
9814
- children: /* @__PURE__ */ jsx93(ChevronRight, { className: icon })
9968
+ children: /* @__PURE__ */ jsx96(ChevronRight, { className: icon })
9815
9969
  }
9816
9970
  )
9817
9971
  ] });
@@ -9823,16 +9977,16 @@ var _Pagination = ({
9823
9977
  pageSize,
9824
9978
  ...props
9825
9979
  }) => {
9826
- const [currentPage, setCurrentPage] = useState6(page != null ? page : defaultPage);
9980
+ const [currentPage, setCurrentPage] = useState7(page != null ? page : defaultPage);
9827
9981
  const totalPages = Math.ceil(totalItems / pageSize);
9828
9982
  const pageRange = usePageRange({ currentPage, totalPages });
9829
- const { container } = useClassNames53({ component: "Pagination" });
9830
- return /* @__PURE__ */ jsx93(
9983
+ const { container } = useClassNames54({ component: "Pagination" });
9984
+ return /* @__PURE__ */ jsx96(
9831
9985
  "nav",
9832
9986
  {
9833
9987
  className: container,
9834
9988
  "aria-label": `Page ${currentPage} of ${totalPages}`,
9835
- children: /* @__PURE__ */ jsx93(FocusScope2, { restoreFocus: true, children: /* @__PURE__ */ jsx93(
9989
+ children: /* @__PURE__ */ jsx96(FocusScope2, { restoreFocus: true, children: /* @__PURE__ */ jsx96(
9836
9990
  InnerPagination,
9837
9991
  {
9838
9992
  pageSize,
@@ -9853,18 +10007,18 @@ import { I18nProvider } from "@react-aria/i18n";
9853
10007
 
9854
10008
  // src/Provider/MarigoldProvider.tsx
9855
10009
  import { ThemeProvider } from "@marigold/system";
9856
- import { jsx as jsx94 } from "react/jsx-runtime";
10010
+ import { jsx as jsx97 } from "react/jsx-runtime";
9857
10011
  function MarigoldProvider({
9858
10012
  children,
9859
10013
  className,
9860
10014
  theme
9861
10015
  }) {
9862
- return /* @__PURE__ */ jsx94(ThemeProvider, { theme, className, children });
10016
+ return /* @__PURE__ */ jsx97(ThemeProvider, { theme, className, children: /* @__PURE__ */ jsx97(ConfirmationProvider, { children }) });
9863
10017
  }
9864
10018
 
9865
10019
  // src/Provider/OverlayContainerProvider.tsx
9866
10020
  import { UNSAFE_PortalProvider as PortalProvider } from "@react-aria/overlays";
9867
- import { jsx as jsx95 } from "react/jsx-runtime";
10021
+ import { jsx as jsx98 } from "react/jsx-runtime";
9868
10022
  var getContainer = (container) => () => {
9869
10023
  if (container) {
9870
10024
  const element = document.getElementById(container);
@@ -9880,36 +10034,36 @@ var getContainer = (container) => () => {
9880
10034
  var OverlayContainerProvider = ({
9881
10035
  container,
9882
10036
  children
9883
- }) => /* @__PURE__ */ jsx95(PortalProvider, { getContainer: getContainer(container), children });
10037
+ }) => /* @__PURE__ */ jsx98(PortalProvider, { getContainer: getContainer(container), children });
9884
10038
 
9885
10039
  // src/Radio/Radio.tsx
9886
10040
  import {
9887
- forwardRef as forwardRef26
10041
+ forwardRef as forwardRef27
9888
10042
  } from "react";
9889
10043
  import { Radio } from "react-aria-components";
9890
- import { cn as cn53, useClassNames as useClassNames55 } from "@marigold/system";
10044
+ import { cn as cn54, useClassNames as useClassNames56 } from "@marigold/system";
9891
10045
 
9892
10046
  // src/Radio/Context.ts
9893
- import { createContext as createContext12, useContext as useContext23 } from "react";
9894
- var RadioGroupContext = createContext12(
10047
+ import { createContext as createContext13, useContext as useContext24 } from "react";
10048
+ var RadioGroupContext = createContext13(
9895
10049
  null
9896
10050
  );
9897
- var useRadioGroupContext = () => useContext23(RadioGroupContext);
10051
+ var useRadioGroupContext = () => useContext24(RadioGroupContext);
9898
10052
 
9899
10053
  // src/Radio/RadioGroup.tsx
9900
- import { isValidElement as isValidElement2, useContext as useContext24 } from "react";
10054
+ import { isValidElement as isValidElement2, useContext as useContext25 } from "react";
9901
10055
  import { RadioGroup, RadioGroupStateContext } from "react-aria-components";
9902
- import { cn as cn52, useClassNames as useClassNames54 } from "@marigold/system";
9903
- import { jsx as jsx96, jsxs as jsxs36 } from "react/jsx-runtime";
10056
+ import { cn as cn53, useClassNames as useClassNames55 } from "@marigold/system";
10057
+ import { jsx as jsx99, jsxs as jsxs38 } from "react/jsx-runtime";
9904
10058
  var CollapsibleGroup2 = ({ children }) => {
9905
- const state = useContext24(RadioGroupStateContext);
10059
+ const state = useContext25(RadioGroupStateContext);
9906
10060
  if (!children || children.length === 0) {
9907
10061
  return null;
9908
10062
  }
9909
10063
  const defaultExpanded = children.some(
9910
10064
  (child) => isValidElement2(child) && state.selectedValue === child.props.value
9911
10065
  );
9912
- return /* @__PURE__ */ jsx96(More, { defaultExpanded, showCount: true, children });
10066
+ return /* @__PURE__ */ jsx99(More, { defaultExpanded, showCount: true, children });
9913
10067
  };
9914
10068
  var _RadioGroup = ({
9915
10069
  variant,
@@ -9927,7 +10081,7 @@ var _RadioGroup = ({
9927
10081
  collapseAt,
9928
10082
  ...rest
9929
10083
  }) => {
9930
- const classNames3 = useClassNames54({ component: "Radio", variant, size: size2 });
10084
+ const classNames3 = useClassNames55({ component: "Radio", variant, size: size2 });
9931
10085
  const props = {
9932
10086
  isDisabled: disabled,
9933
10087
  isReadOnly: readOnly,
@@ -9939,7 +10093,7 @@ var _RadioGroup = ({
9939
10093
  children,
9940
10094
  collapseAt
9941
10095
  );
9942
- return /* @__PURE__ */ jsx96(
10096
+ return /* @__PURE__ */ jsx99(
9943
10097
  FieldBase,
9944
10098
  {
9945
10099
  as: RadioGroup,
@@ -9950,20 +10104,20 @@ var _RadioGroup = ({
9950
10104
  variant,
9951
10105
  size: size2,
9952
10106
  ...props,
9953
- children: /* @__PURE__ */ jsx96(
10107
+ children: /* @__PURE__ */ jsx99(
9954
10108
  "div",
9955
10109
  {
9956
10110
  role: "presentation",
9957
10111
  "data-testid": "group",
9958
10112
  "data-orientation": orientation,
9959
- className: cn52(
10113
+ className: cn53(
9960
10114
  classNames3.group,
9961
10115
  "flex items-start",
9962
10116
  orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
9963
10117
  ),
9964
- children: /* @__PURE__ */ jsxs36(RadioGroupContext.Provider, { value: { width, variant, size: size2 }, children: [
10118
+ children: /* @__PURE__ */ jsxs38(RadioGroupContext.Provider, { value: { width, variant, size: size2 }, children: [
9965
10119
  visibleChildren,
9966
- /* @__PURE__ */ jsx96(CollapsibleGroup2, { children: collapsedChildren })
10120
+ /* @__PURE__ */ jsx99(CollapsibleGroup2, { children: collapsedChildren })
9967
10121
  ] })
9968
10122
  }
9969
10123
  )
@@ -9972,33 +10126,33 @@ var _RadioGroup = ({
9972
10126
  };
9973
10127
 
9974
10128
  // src/Radio/Radio.tsx
9975
- import { Fragment as Fragment9, jsx as jsx97, jsxs as jsxs37 } from "react/jsx-runtime";
9976
- var Dot = () => /* @__PURE__ */ jsx97("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ jsx97("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
9977
- var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx97(
10129
+ import { Fragment as Fragment10, jsx as jsx100, jsxs as jsxs39 } from "react/jsx-runtime";
10130
+ var Dot = () => /* @__PURE__ */ jsx100("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ jsx100("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
10131
+ var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx100(
9978
10132
  "div",
9979
10133
  {
9980
- className: cn53(
10134
+ className: cn54(
9981
10135
  "bg-secondary-50 flex h-4 w-4 items-center justify-center rounded-[50%] border p-1",
9982
10136
  className
9983
10137
  ),
9984
10138
  "aria-hidden": "true",
9985
10139
  ...props,
9986
- children: checked ? /* @__PURE__ */ jsx97(Dot, {}) : null
10140
+ children: checked ? /* @__PURE__ */ jsx100(Dot, {}) : null
9987
10141
  }
9988
10142
  );
9989
- var _Radio = forwardRef26(
10143
+ var _Radio = forwardRef27(
9990
10144
  ({ value, disabled, width, children, ...props }, ref) => {
9991
10145
  const { variant, size: size2, width: groupWidth } = useRadioGroupContext();
9992
- const classNames3 = useClassNames55({
10146
+ const classNames3 = useClassNames56({
9993
10147
  component: "Radio",
9994
10148
  variant: variant || props.variant,
9995
10149
  size: size2 || props.size
9996
10150
  });
9997
- return /* @__PURE__ */ jsx97(
10151
+ return /* @__PURE__ */ jsx100(
9998
10152
  Radio,
9999
10153
  {
10000
10154
  ref,
10001
- className: cn53(
10155
+ className: cn54(
10002
10156
  "group/radio",
10003
10157
  "relative flex items-center gap-[1ch]",
10004
10158
  width || groupWidth || "w-full",
@@ -10007,18 +10161,18 @@ var _Radio = forwardRef26(
10007
10161
  value,
10008
10162
  isDisabled: disabled,
10009
10163
  ...props,
10010
- children: ({ isSelected }) => /* @__PURE__ */ jsxs37(Fragment9, { children: [
10011
- /* @__PURE__ */ jsx97(
10164
+ children: ({ isSelected }) => /* @__PURE__ */ jsxs39(Fragment10, { children: [
10165
+ /* @__PURE__ */ jsx100(
10012
10166
  Icon3,
10013
10167
  {
10014
10168
  checked: isSelected,
10015
- className: cn53(
10169
+ className: cn54(
10016
10170
  disabled ? "cursor-not-allowed" : "cursor-pointer",
10017
10171
  classNames3.radio
10018
10172
  )
10019
10173
  }
10020
10174
  ),
10021
- /* @__PURE__ */ jsx97("div", { className: classNames3.label, children })
10175
+ /* @__PURE__ */ jsx100("div", { className: classNames3.label, children })
10022
10176
  ] })
10023
10177
  }
10024
10178
  );
@@ -10027,10 +10181,10 @@ var _Radio = forwardRef26(
10027
10181
  _Radio.Group = _RadioGroup;
10028
10182
 
10029
10183
  // src/SearchField/SearchField.tsx
10030
- import { forwardRef as forwardRef27 } from "react";
10184
+ import { forwardRef as forwardRef28 } from "react";
10031
10185
  import { SearchField } from "react-aria-components";
10032
- import { jsx as jsx98 } from "react/jsx-runtime";
10033
- var _SearchField = forwardRef27(
10186
+ import { jsx as jsx101 } from "react/jsx-runtime";
10187
+ var _SearchField = forwardRef28(
10034
10188
  ({ disabled, required, readOnly, error, action, ...rest }, ref) => {
10035
10189
  const props = {
10036
10190
  ...rest,
@@ -10039,7 +10193,7 @@ var _SearchField = forwardRef27(
10039
10193
  isReadOnly: readOnly,
10040
10194
  isInvalid: error
10041
10195
  };
10042
- return /* @__PURE__ */ jsx98(FieldBase, { as: SearchField, ...props, children: /* @__PURE__ */ jsx98(
10196
+ return /* @__PURE__ */ jsx101(FieldBase, { as: SearchField, ...props, children: /* @__PURE__ */ jsx101(
10043
10197
  SearchInput,
10044
10198
  {
10045
10199
  ref,
@@ -10051,12 +10205,12 @@ var _SearchField = forwardRef27(
10051
10205
 
10052
10206
  // src/Select/Select.tsx
10053
10207
  import {
10054
- forwardRef as forwardRef28
10208
+ forwardRef as forwardRef29
10055
10209
  } from "react";
10056
10210
  import { Select as Select2, SelectValue } from "react-aria-components";
10057
- import { cn as cn54, useClassNames as useClassNames56 } from "@marigold/system";
10058
- import { jsx as jsx99, jsxs as jsxs38 } from "react/jsx-runtime";
10059
- var _Select = forwardRef28(
10211
+ import { cn as cn55, useClassNames as useClassNames57 } from "@marigold/system";
10212
+ import { jsx as jsx102, jsxs as jsxs40 } from "react/jsx-runtime";
10213
+ var _Select = forwardRef29(
10060
10214
  ({
10061
10215
  disabled,
10062
10216
  required,
@@ -10076,22 +10230,22 @@ var _Select = forwardRef28(
10076
10230
  onSelectionChange: onChange2,
10077
10231
  ...rest
10078
10232
  };
10079
- const classNames3 = useClassNames56({ component: "Select", variant, size: size2 });
10080
- return /* @__PURE__ */ jsxs38(FieldBase, { as: Select2, ref, variant, size: size2, ...props, children: [
10081
- /* @__PURE__ */ jsxs38(
10233
+ const classNames3 = useClassNames57({ component: "Select", variant, size: size2 });
10234
+ return /* @__PURE__ */ jsxs40(FieldBase, { as: Select2, ref, variant, size: size2, ...props, children: [
10235
+ /* @__PURE__ */ jsxs40(
10082
10236
  IconButton,
10083
10237
  {
10084
- className: cn54(
10238
+ className: cn55(
10085
10239
  "flex w-full items-center justify-between gap-1 overflow-hidden",
10086
10240
  classNames3.select
10087
10241
  ),
10088
10242
  children: [
10089
- /* @__PURE__ */ jsx99(SelectValue, { className: "[&>[slot=description]]:hidden" }),
10090
- /* @__PURE__ */ jsx99(ChevronDown, { className: cn54("size-4", classNames3.icon) })
10243
+ /* @__PURE__ */ jsx102(SelectValue, { className: "[&>[slot=description]]:hidden" }),
10244
+ /* @__PURE__ */ jsx102(ChevronDown, { className: cn55("size-4", classNames3.icon) })
10091
10245
  ]
10092
10246
  }
10093
10247
  ),
10094
- /* @__PURE__ */ jsx99(_Popover, { children: /* @__PURE__ */ jsx99(_ListBox, { items, children: props.children }) })
10248
+ /* @__PURE__ */ jsx102(_Popover, { children: /* @__PURE__ */ jsx102(_ListBox, { items, children: props.children }) })
10095
10249
  ] });
10096
10250
  }
10097
10251
  );
@@ -10100,28 +10254,28 @@ _Select.Section = _ListBox.Section;
10100
10254
 
10101
10255
  // src/SelectList/SelectList.tsx
10102
10256
  import {
10103
- forwardRef as forwardRef30
10257
+ forwardRef as forwardRef31
10104
10258
  } from "react";
10105
10259
  import { GridList as SelectList } from "react-aria-components";
10106
- import { cn as cn56, useClassNames as useClassNames57 } from "@marigold/system";
10260
+ import { cn as cn57, useClassNames as useClassNames58 } from "@marigold/system";
10107
10261
 
10108
10262
  // src/SelectList/Context.ts
10109
- import { createContext as createContext13, useContext as useContext25 } from "react";
10110
- var SelectListContext = createContext13(
10263
+ import { createContext as createContext14, useContext as useContext26 } from "react";
10264
+ var SelectListContext = createContext14(
10111
10265
  {}
10112
10266
  );
10113
- var useSelectListContext = () => useContext25(SelectListContext);
10267
+ var useSelectListContext = () => useContext26(SelectListContext);
10114
10268
 
10115
10269
  // src/SelectList/SelectListAction.tsx
10116
- import { jsx as jsx100 } from "react/jsx-runtime";
10117
- var SelectListAction = ({ children }) => /* @__PURE__ */ jsx100("div", { className: "order-last", children });
10270
+ import { jsx as jsx103 } from "react/jsx-runtime";
10271
+ var SelectListAction = ({ children }) => /* @__PURE__ */ jsx103("div", { className: "order-last", children });
10118
10272
 
10119
10273
  // src/SelectList/SelectListItem.tsx
10120
- import { forwardRef as forwardRef29 } from "react";
10274
+ import { forwardRef as forwardRef30 } from "react";
10121
10275
  import { GridListItem as SelectListItem } from "react-aria-components";
10122
- import { cn as cn55 } from "@marigold/system";
10123
- import { jsx as jsx101, jsxs as jsxs39 } from "react/jsx-runtime";
10124
- var CheckMark3 = ({ className }) => /* @__PURE__ */ jsx101("svg", { width: "12px", height: "10px", viewBox: "0 0 12 10", className, children: /* @__PURE__ */ jsx101(
10276
+ import { cn as cn56 } from "@marigold/system";
10277
+ import { jsx as jsx104, jsxs as jsxs41 } from "react/jsx-runtime";
10278
+ var CheckMark3 = ({ className }) => /* @__PURE__ */ jsx104("svg", { width: "12px", height: "10px", viewBox: "0 0 12 10", className, children: /* @__PURE__ */ jsx104(
10125
10279
  "path",
10126
10280
  {
10127
10281
  fill: "currentColor",
@@ -10132,30 +10286,30 @@ var CheckMark3 = ({ className }) => /* @__PURE__ */ jsx101("svg", { width: "12px
10132
10286
  var SelectionIndicator = ({ selectionMode }) => {
10133
10287
  switch (selectionMode) {
10134
10288
  case "multiple": {
10135
- return /* @__PURE__ */ jsx101(_Checkbox, { slot: "selection" });
10289
+ return /* @__PURE__ */ jsx104(_Checkbox, { slot: "selection" });
10136
10290
  }
10137
10291
  case "single": {
10138
- return /* @__PURE__ */ jsx101(CheckMark3, { className: "invisible hidden" });
10292
+ return /* @__PURE__ */ jsx104(CheckMark3, { className: "invisible hidden" });
10139
10293
  }
10140
10294
  }
10141
10295
  };
10142
- var _SelectListItem = forwardRef29(
10296
+ var _SelectListItem = forwardRef30(
10143
10297
  ({ children, disabled, ...props }, ref) => {
10144
10298
  let textValue = typeof children === "string" ? children : void 0;
10145
10299
  const { classNames: classNames3 } = useSelectListContext();
10146
- return /* @__PURE__ */ jsx101(
10300
+ return /* @__PURE__ */ jsx104(
10147
10301
  SelectListItem,
10148
10302
  {
10149
10303
  isDisabled: disabled,
10150
10304
  textValue,
10151
10305
  ...props,
10152
- className: cn55(
10306
+ className: cn56(
10153
10307
  classNames3 == null ? void 0 : classNames3.item,
10154
10308
  "grid grid-flow-col [grid-template-columns:min-content_1fr]"
10155
10309
  ),
10156
10310
  ref,
10157
- children: ({ selectionMode }) => /* @__PURE__ */ jsxs39("div", { className: "selection-indicator contents", children: [
10158
- /* @__PURE__ */ jsx101(SelectionIndicator, { selectionMode }),
10311
+ children: ({ selectionMode }) => /* @__PURE__ */ jsxs41("div", { className: "selection-indicator contents", children: [
10312
+ /* @__PURE__ */ jsx104(SelectionIndicator, { selectionMode }),
10159
10313
  children
10160
10314
  ] })
10161
10315
  }
@@ -10164,21 +10318,21 @@ var _SelectListItem = forwardRef29(
10164
10318
  );
10165
10319
 
10166
10320
  // src/SelectList/SelectList.tsx
10167
- import { jsx as jsx102 } from "react/jsx-runtime";
10168
- var _SelectList = forwardRef30(
10321
+ import { jsx as jsx105 } from "react/jsx-runtime";
10322
+ var _SelectList = forwardRef31(
10169
10323
  ({ onChange: onChange2, ...rest }, ref) => {
10170
- const classNames3 = useClassNames57({ component: "ListBox" });
10324
+ const classNames3 = useClassNames58({ component: "ListBox" });
10171
10325
  const props = {
10172
10326
  onSelectionChange: onChange2,
10173
10327
  ...rest
10174
10328
  };
10175
- return /* @__PURE__ */ jsx102(SelectListContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ jsx102("div", { className: classNames3.container, children: /* @__PURE__ */ jsx102(
10329
+ return /* @__PURE__ */ jsx105(SelectListContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ jsx105("div", { className: classNames3.container, children: /* @__PURE__ */ jsx105(
10176
10330
  SelectList,
10177
10331
  {
10178
10332
  ...props,
10179
10333
  layout: "grid",
10180
10334
  ref,
10181
- className: cn56(
10335
+ className: cn57(
10182
10336
  "group/list overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh]",
10183
10337
  classNames3.list
10184
10338
  ),
@@ -10191,18 +10345,18 @@ _SelectList.Item = _SelectListItem;
10191
10345
  _SelectList.Action = SelectListAction;
10192
10346
 
10193
10347
  // src/Scrollable/Scrollable.tsx
10194
- import { cn as cn57, createVar as createVar6, width as twWidth3 } from "@marigold/system";
10195
- import { jsx as jsx103 } from "react/jsx-runtime";
10348
+ import { cn as cn58, createVar as createVar6, width as twWidth3 } from "@marigold/system";
10349
+ import { jsx as jsx106 } from "react/jsx-runtime";
10196
10350
  var Scrollable = ({
10197
10351
  children,
10198
10352
  width = "full",
10199
10353
  height,
10200
10354
  ...props
10201
- }) => /* @__PURE__ */ jsx103(
10355
+ }) => /* @__PURE__ */ jsx106(
10202
10356
  "div",
10203
10357
  {
10204
10358
  ...props,
10205
- className: cn57([
10359
+ className: cn58([
10206
10360
  "sticky h-(--height) overflow-auto overscroll-none",
10207
10361
  twWidth3[width]
10208
10362
  ]),
@@ -10212,7 +10366,7 @@ var Scrollable = ({
10212
10366
  );
10213
10367
 
10214
10368
  // src/Slider/Slider.tsx
10215
- import { forwardRef as forwardRef31 } from "react";
10369
+ import { forwardRef as forwardRef32 } from "react";
10216
10370
  import {
10217
10371
  Slider,
10218
10372
  SliderOutput,
@@ -10220,12 +10374,12 @@ import {
10220
10374
  SliderTrack
10221
10375
  } from "react-aria-components";
10222
10376
  import {
10223
- cn as cn58,
10377
+ cn as cn59,
10224
10378
  width as twWidth4,
10225
- useClassNames as useClassNames58
10379
+ useClassNames as useClassNames59
10226
10380
  } from "@marigold/system";
10227
- import { Fragment as Fragment10, jsx as jsx104, jsxs as jsxs40 } from "react/jsx-runtime";
10228
- var _Slider = forwardRef31(
10381
+ import { Fragment as Fragment11, jsx as jsx107, jsxs as jsxs42 } from "react/jsx-runtime";
10382
+ var _Slider = forwardRef32(
10229
10383
  ({
10230
10384
  variant,
10231
10385
  size: size2,
@@ -10236,7 +10390,7 @@ var _Slider = forwardRef31(
10236
10390
  thumbLabels,
10237
10391
  ...rest
10238
10392
  }, ref) => {
10239
- const classNames3 = useClassNames58({
10393
+ const classNames3 = useClassNames59({
10240
10394
  component: "Slider",
10241
10395
  variant,
10242
10396
  size: size2
@@ -10246,11 +10400,11 @@ var _Slider = forwardRef31(
10246
10400
  isDisabled: disabled,
10247
10401
  ...rest
10248
10402
  };
10249
- return /* @__PURE__ */ jsxs40(
10403
+ return /* @__PURE__ */ jsxs42(
10250
10404
  FieldBase,
10251
10405
  {
10252
10406
  as: Slider,
10253
- className: cn58(
10407
+ className: cn59(
10254
10408
  "grid grid-cols-[auto_1fr] gap-y-1",
10255
10409
  classNames3.container,
10256
10410
  twWidth4[width]
@@ -10258,26 +10412,26 @@ var _Slider = forwardRef31(
10258
10412
  ref,
10259
10413
  ...props,
10260
10414
  children: [
10261
- label && /* @__PURE__ */ jsx104(_Label, { children: label }),
10262
- /* @__PURE__ */ jsx104(SliderOutput, { className: cn58("flex justify-end", classNames3.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" - ") }),
10263
- /* @__PURE__ */ jsx104(
10415
+ label && /* @__PURE__ */ jsx107(_Label, { children: label }),
10416
+ /* @__PURE__ */ jsx107(SliderOutput, { className: cn59("flex justify-end", classNames3.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" - ") }),
10417
+ /* @__PURE__ */ jsx107(
10264
10418
  SliderTrack,
10265
10419
  {
10266
- className: cn58("relative col-span-2 h-2 w-full", classNames3.track),
10267
- children: ({ state }) => /* @__PURE__ */ jsxs40(Fragment10, { children: [
10268
- /* @__PURE__ */ jsx104(
10420
+ className: cn59("relative col-span-2 h-2 w-full", classNames3.track),
10421
+ children: ({ state }) => /* @__PURE__ */ jsxs42(Fragment11, { children: [
10422
+ /* @__PURE__ */ jsx107(
10269
10423
  "div",
10270
10424
  {
10271
- className: cn58(
10425
+ className: cn59(
10272
10426
  "absolute top-[50%] h-2 w-full translate-y-[-50%]",
10273
10427
  classNames3.track
10274
10428
  )
10275
10429
  }
10276
10430
  ),
10277
- /* @__PURE__ */ jsx104(
10431
+ /* @__PURE__ */ jsx107(
10278
10432
  "div",
10279
10433
  {
10280
- className: cn58(
10434
+ className: cn59(
10281
10435
  "absolute top-[50%] h-2 translate-y-[-50%]",
10282
10436
  classNames3.selectedTrack
10283
10437
  ),
@@ -10287,10 +10441,10 @@ var _Slider = forwardRef31(
10287
10441
  }
10288
10442
  }
10289
10443
  ),
10290
- state.values.map((_, i) => /* @__PURE__ */ jsx104(
10444
+ state.values.map((_, i) => /* @__PURE__ */ jsx107(
10291
10445
  SliderThumb,
10292
10446
  {
10293
- className: cn58("top-1/2 cursor-pointer", classNames3.thumb),
10447
+ className: cn59("top-1/2 cursor-pointer", classNames3.thumb),
10294
10448
  index: i,
10295
10449
  "aria-label": thumbLabels == null ? void 0 : thumbLabels[i],
10296
10450
  name: names == null ? void 0 : names[i]
@@ -10307,13 +10461,13 @@ var _Slider = forwardRef31(
10307
10461
  );
10308
10462
 
10309
10463
  // src/Split/Split.tsx
10310
- import { jsx as jsx105 } from "react/jsx-runtime";
10311
- var Split = () => /* @__PURE__ */ jsx105("div", { role: "separator", className: "grow" });
10464
+ import { jsx as jsx108 } from "react/jsx-runtime";
10465
+ var Split = () => /* @__PURE__ */ jsx108("div", { role: "separator", className: "grow" });
10312
10466
 
10313
10467
  // src/Stack/Stack.tsx
10314
10468
  import { Children as Children5 } from "react";
10315
- import { alignment as alignment3, cn as cn59, gapSpace as gapSpace8 } from "@marigold/system";
10316
- import { jsx as jsx106 } from "react/jsx-runtime";
10469
+ import { alignment as alignment3, cn as cn60, gapSpace as gapSpace8 } from "@marigold/system";
10470
+ import { jsx as jsx109 } from "react/jsx-runtime";
10317
10471
  var Stack = ({
10318
10472
  children,
10319
10473
  space = 0,
@@ -10325,11 +10479,11 @@ var Stack = ({
10325
10479
  }) => {
10326
10480
  var _a, _b, _c, _d;
10327
10481
  const Component2 = asList ? "ul" : "div";
10328
- const stackChildren = asList ? Children5.map(children, (child) => child != null ? /* @__PURE__ */ jsx106("li", { children: child }) : null) : children;
10329
- return /* @__PURE__ */ jsx106(
10482
+ const stackChildren = asList ? Children5.map(children, (child) => child != null ? /* @__PURE__ */ jsx109("li", { children: child }) : null) : children;
10483
+ return /* @__PURE__ */ jsx109(
10330
10484
  Component2,
10331
10485
  {
10332
- className: cn59(
10486
+ className: cn60(
10333
10487
  "flex flex-col",
10334
10488
  gapSpace8[space],
10335
10489
  alignX && ((_b = (_a = alignment3) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
@@ -10343,15 +10497,15 @@ var Stack = ({
10343
10497
  };
10344
10498
 
10345
10499
  // src/Switch/Switch.tsx
10346
- import { forwardRef as forwardRef32 } from "react";
10500
+ import { forwardRef as forwardRef33 } from "react";
10347
10501
  import { Switch } from "react-aria-components";
10348
10502
  import {
10349
- cn as cn60,
10503
+ cn as cn61,
10350
10504
  width as twWidth5,
10351
- useClassNames as useClassNames59
10505
+ useClassNames as useClassNames60
10352
10506
  } from "@marigold/system";
10353
- import { jsx as jsx107, jsxs as jsxs41 } from "react/jsx-runtime";
10354
- var _Switch = forwardRef32(
10507
+ import { jsx as jsx110, jsxs as jsxs43 } from "react/jsx-runtime";
10508
+ var _Switch = forwardRef33(
10355
10509
  ({
10356
10510
  variant,
10357
10511
  size: size2,
@@ -10362,27 +10516,27 @@ var _Switch = forwardRef32(
10362
10516
  readOnly,
10363
10517
  ...rest
10364
10518
  }, ref) => {
10365
- const classNames3 = useClassNames59({ component: "Switch", size: size2, variant });
10519
+ const classNames3 = useClassNames60({ component: "Switch", size: size2, variant });
10366
10520
  const props = {
10367
10521
  isDisabled: disabled,
10368
10522
  isReadOnly: readOnly,
10369
10523
  isSelected: selected,
10370
10524
  ...rest
10371
10525
  };
10372
- return /* @__PURE__ */ jsxs41(
10526
+ return /* @__PURE__ */ jsxs43(
10373
10527
  Switch,
10374
10528
  {
10375
10529
  ...props,
10376
10530
  ref,
10377
- className: cn60(
10531
+ className: cn61(
10378
10532
  twWidth5[width],
10379
10533
  "group/switch",
10380
10534
  "flex items-center gap-[1ch]",
10381
10535
  classNames3.container
10382
10536
  ),
10383
10537
  children: [
10384
- label && /* @__PURE__ */ jsx107(_Label, { elementType: "span", children: label }),
10385
- /* @__PURE__ */ jsx107("div", { className: "relative", children: /* @__PURE__ */ jsx107("div", { className: classNames3.track, children: /* @__PURE__ */ jsx107("div", { className: classNames3.thumb }) }) })
10538
+ label && /* @__PURE__ */ jsx110(_Label, { elementType: "span", children: label }),
10539
+ /* @__PURE__ */ jsx110("div", { className: "relative", children: /* @__PURE__ */ jsx110("div", { className: classNames3.track, children: /* @__PURE__ */ jsx110("div", { className: classNames3.thumb }) }) })
10386
10540
  ]
10387
10541
  }
10388
10542
  );
@@ -10400,16 +10554,16 @@ import {
10400
10554
  Row,
10401
10555
  useTableState
10402
10556
  } from "@react-stately/table";
10403
- import { cn as cn66, useClassNames as useClassNames61 } from "@marigold/system";
10557
+ import { cn as cn67, useClassNames as useClassNames62 } from "@marigold/system";
10404
10558
 
10405
10559
  // src/Table/Context.tsx
10406
- import { createContext as createContext14, useContext as useContext26 } from "react";
10407
- var TableContext = createContext14({});
10408
- var useTableContext = () => useContext26(TableContext);
10560
+ import { createContext as createContext15, useContext as useContext27 } from "react";
10561
+ var TableContext = createContext15({});
10562
+ var useTableContext = () => useContext27(TableContext);
10409
10563
 
10410
10564
  // src/Table/TableBody.tsx
10411
10565
  import { useTableRowGroup } from "@react-aria/table";
10412
- import { jsx as jsx108 } from "react/jsx-runtime";
10566
+ import { jsx as jsx111 } from "react/jsx-runtime";
10413
10567
  var TableBody = ({
10414
10568
  children,
10415
10569
  className,
@@ -10418,7 +10572,7 @@ var TableBody = ({
10418
10572
  const { rowGroupProps } = useTableRowGroup();
10419
10573
  const { state, classNames: classNames3 } = useTableContext();
10420
10574
  if (state.collection.size === 0 && emptyState) {
10421
- return /* @__PURE__ */ jsx108("tbody", { className, "data-rac": true, children: /* @__PURE__ */ jsx108("tr", { className: classNames3 == null ? void 0 : classNames3.row, role: "row", "data-rac": true, children: /* @__PURE__ */ jsx108(
10575
+ return /* @__PURE__ */ jsx111("tbody", { className, "data-rac": true, children: /* @__PURE__ */ jsx111("tr", { className: classNames3 == null ? void 0 : classNames3.row, role: "row", "data-rac": true, children: /* @__PURE__ */ jsx111(
10422
10576
  "td",
10423
10577
  {
10424
10578
  className: classNames3 == null ? void 0 : classNames3.cell,
@@ -10429,7 +10583,7 @@ var TableBody = ({
10429
10583
  }
10430
10584
  ) }) });
10431
10585
  }
10432
- return /* @__PURE__ */ jsx108("tbody", { ...rowGroupProps, className, "data-rac": true, children });
10586
+ return /* @__PURE__ */ jsx111("tbody", { ...rowGroupProps, className, "data-rac": true, children });
10433
10587
  };
10434
10588
 
10435
10589
  // src/Table/TableCell.tsx
@@ -10438,7 +10592,7 @@ import { useFocusRing } from "@react-aria/focus";
10438
10592
  import { useTableCell } from "@react-aria/table";
10439
10593
  import { mergeProps as mergeProps2 } from "@react-aria/utils";
10440
10594
  import { useStateProps } from "@marigold/system";
10441
- import { jsx as jsx109 } from "react/jsx-runtime";
10595
+ import { jsx as jsx112 } from "react/jsx-runtime";
10442
10596
  var TableCell = ({
10443
10597
  cell,
10444
10598
  align = "left",
@@ -10465,7 +10619,7 @@ var TableCell = ({
10465
10619
  };
10466
10620
  const { focusProps, isFocusVisible } = useFocusRing();
10467
10621
  const stateProps = useStateProps({ disabled, focusVisible: isFocusVisible });
10468
- return /* @__PURE__ */ jsx109(
10622
+ return /* @__PURE__ */ jsx112(
10469
10623
  "td",
10470
10624
  {
10471
10625
  ref,
@@ -10485,7 +10639,7 @@ import { useRef as useRef10 } from "react";
10485
10639
  import { useFocusRing as useFocusRing2 } from "@react-aria/focus";
10486
10640
  import { useTableCell as useTableCell2, useTableSelectionCheckbox } from "@react-aria/table";
10487
10641
  import { mergeProps as mergeProps3 } from "@react-aria/utils";
10488
- import { cn as cn61, useStateProps as useStateProps2 } from "@marigold/system";
10642
+ import { cn as cn62, useStateProps as useStateProps2 } from "@marigold/system";
10489
10643
 
10490
10644
  // src/Table/utils.ts
10491
10645
  var mapCheckboxProps = ({
@@ -10508,7 +10662,7 @@ var mapCheckboxProps = ({
10508
10662
  };
10509
10663
 
10510
10664
  // src/Table/TableCheckboxCell.tsx
10511
- import { jsx as jsx110 } from "react/jsx-runtime";
10665
+ import { jsx as jsx113 } from "react/jsx-runtime";
10512
10666
  var TableCheckboxCell = ({
10513
10667
  cell,
10514
10668
  alignY = "middle"
@@ -10528,16 +10682,16 @@ var TableCheckboxCell = ({
10528
10682
  );
10529
10683
  const { focusProps, isFocusVisible } = useFocusRing2();
10530
10684
  const stateProps = useStateProps2({ disabled, focusVisible: isFocusVisible });
10531
- return /* @__PURE__ */ jsx110(
10685
+ return /* @__PURE__ */ jsx113(
10532
10686
  "td",
10533
10687
  {
10534
10688
  ref,
10535
- className: cn61("leading-none", classNames3 == null ? void 0 : classNames3.cell),
10689
+ className: cn62("leading-none", classNames3 == null ? void 0 : classNames3.cell),
10536
10690
  ...mergeProps3(gridCellProps, focusProps),
10537
10691
  ...stateProps,
10538
10692
  valign: alignY,
10539
10693
  "data-rac": true,
10540
- children: /* @__PURE__ */ jsx110(_Checkbox, { ...checkboxProps })
10694
+ children: /* @__PURE__ */ jsx113(_Checkbox, { ...checkboxProps })
10541
10695
  }
10542
10696
  );
10543
10697
  };
@@ -10548,8 +10702,8 @@ import { useFocusRing as useFocusRing3 } from "@react-aria/focus";
10548
10702
  import { useHover } from "@react-aria/interactions";
10549
10703
  import { useTableColumnHeader } from "@react-aria/table";
10550
10704
  import { mergeProps as mergeProps4 } from "@react-aria/utils";
10551
- import { cn as cn62, width as twWidth6, useStateProps as useStateProps3 } from "@marigold/system";
10552
- import { jsx as jsx111, jsxs as jsxs42 } from "react/jsx-runtime";
10705
+ import { cn as cn63, width as twWidth6, useStateProps as useStateProps3 } from "@marigold/system";
10706
+ import { jsx as jsx114, jsxs as jsxs44 } from "react/jsx-runtime";
10553
10707
  var TableColumnHeader = ({
10554
10708
  column: column2,
10555
10709
  width = "auto",
@@ -10571,19 +10725,19 @@ var TableColumnHeader = ({
10571
10725
  hover: isHovered,
10572
10726
  focusVisible: isFocusVisible
10573
10727
  });
10574
- return /* @__PURE__ */ jsxs42(
10728
+ return /* @__PURE__ */ jsxs44(
10575
10729
  "th",
10576
10730
  {
10577
10731
  colSpan: column2.colspan,
10578
10732
  ref,
10579
- className: cn62("cursor-default", twWidth6[width], classNames3 == null ? void 0 : classNames3.header),
10733
+ className: cn63("cursor-default", twWidth6[width], classNames3 == null ? void 0 : classNames3.header),
10580
10734
  ...mergeProps4(columnHeaderProps, hoverProps, focusProps),
10581
10735
  ...stateProps,
10582
10736
  align,
10583
10737
  "data-rac": true,
10584
10738
  children: [
10585
10739
  column2.rendered,
10586
- column2.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column2.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ jsx111(SortUp, { className: "inline-block" }) : /* @__PURE__ */ jsx111(SortDown, { className: "inline-block" }) : /* @__PURE__ */ jsx111("span", { className: "hidden", children: /* @__PURE__ */ jsx111(SortDown, { className: "inline-block" }) }))
10740
+ column2.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column2.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ jsx114(SortUp, { className: "inline-block" }) : /* @__PURE__ */ jsx114(SortDown, { className: "inline-block" }) : /* @__PURE__ */ jsx114("span", { className: "hidden", children: /* @__PURE__ */ jsx114(SortDown, { className: "inline-block" }) }))
10587
10741
  ]
10588
10742
  }
10589
10743
  );
@@ -10591,16 +10745,16 @@ var TableColumnHeader = ({
10591
10745
 
10592
10746
  // src/Table/TableHeader.tsx
10593
10747
  import { useTableRowGroup as useTableRowGroup2 } from "@react-aria/table";
10594
- import { cn as cn63 } from "@marigold/system";
10595
- import { jsx as jsx112 } from "react/jsx-runtime";
10748
+ import { cn as cn64 } from "@marigold/system";
10749
+ import { jsx as jsx115 } from "react/jsx-runtime";
10596
10750
  var TableHeader = ({ stickyHeader, children }) => {
10597
10751
  const { rowGroupProps } = useTableRowGroup2();
10598
10752
  const { classNames: classNames3 } = useTableContext();
10599
- return /* @__PURE__ */ jsx112(
10753
+ return /* @__PURE__ */ jsx115(
10600
10754
  "thead",
10601
10755
  {
10602
10756
  ...rowGroupProps,
10603
- className: cn63(
10757
+ className: cn64(
10604
10758
  classNames3 == null ? void 0 : classNames3.thead,
10605
10759
  // for rui sticky is applied to thead
10606
10760
  stickyHeader ? "sticky [&_th]:sticky [&_th]:top-0" : ""
@@ -10614,7 +10768,7 @@ var TableHeader = ({ stickyHeader, children }) => {
10614
10768
  // src/Table/TableHeaderRow.tsx
10615
10769
  import { useRef as useRef12 } from "react";
10616
10770
  import { useTableHeaderRow } from "@react-aria/table";
10617
- import { jsx as jsx113 } from "react/jsx-runtime";
10771
+ import { jsx as jsx116 } from "react/jsx-runtime";
10618
10772
  var TableHeaderRow = ({
10619
10773
  item,
10620
10774
  className,
@@ -10623,7 +10777,7 @@ var TableHeaderRow = ({
10623
10777
  const { state } = useTableContext();
10624
10778
  const ref = useRef12(null);
10625
10779
  const { rowProps } = useTableHeaderRow({ node: item }, state, ref);
10626
- return /* @__PURE__ */ jsx113("tr", { ...rowProps, className, ref, "data-rac": true, children });
10780
+ return /* @__PURE__ */ jsx116("tr", { ...rowProps, className, ref, "data-rac": true, children });
10627
10781
  };
10628
10782
 
10629
10783
  // src/Table/TableRow.tsx
@@ -10632,13 +10786,13 @@ import { useFocusRing as useFocusRing4 } from "@react-aria/focus";
10632
10786
  import { useHover as useHover2 } from "@react-aria/interactions";
10633
10787
  import { useTableRow } from "@react-aria/table";
10634
10788
  import { mergeProps as mergeProps5 } from "@react-aria/utils";
10635
- import { cn as cn64, useClassNames as useClassNames60, useStateProps as useStateProps4 } from "@marigold/system";
10636
- import { jsx as jsx114 } from "react/jsx-runtime";
10789
+ import { cn as cn65, useClassNames as useClassNames61, useStateProps as useStateProps4 } from "@marigold/system";
10790
+ import { jsx as jsx117 } from "react/jsx-runtime";
10637
10791
  var TableRow = ({ children, row }) => {
10638
10792
  const ref = useRef13(null);
10639
10793
  const { interactive, state, ...ctx } = useTableContext();
10640
10794
  const { variant, size: size2 } = row.props;
10641
- const classNames3 = useClassNames60({
10795
+ const classNames3 = useClassNames61({
10642
10796
  component: "Table",
10643
10797
  variant: variant || ctx.variant,
10644
10798
  size: size2 || ctx.size
@@ -10663,11 +10817,11 @@ var TableRow = ({ children, row }) => {
10663
10817
  focusVisible: isFocusVisible,
10664
10818
  active: isPressed
10665
10819
  });
10666
- return /* @__PURE__ */ jsx114(
10820
+ return /* @__PURE__ */ jsx117(
10667
10821
  "tr",
10668
10822
  {
10669
10823
  ref,
10670
- className: cn64(
10824
+ className: cn65(
10671
10825
  [
10672
10826
  !interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"
10673
10827
  ],
@@ -10691,11 +10845,11 @@ import {
10691
10845
  } from "@react-aria/table";
10692
10846
  import { mergeProps as mergeProps6 } from "@react-aria/utils";
10693
10847
  import {
10694
- cn as cn65,
10848
+ cn as cn66,
10695
10849
  width as twWidth7,
10696
10850
  useStateProps as useStateProps5
10697
10851
  } from "@marigold/system";
10698
- import { jsx as jsx115 } from "react/jsx-runtime";
10852
+ import { jsx as jsx118 } from "react/jsx-runtime";
10699
10853
  var TableSelectAllCell = ({
10700
10854
  column: column2,
10701
10855
  width = "auto",
@@ -10717,22 +10871,22 @@ var TableSelectAllCell = ({
10717
10871
  hover: isHovered,
10718
10872
  focusVisible: isFocusVisible
10719
10873
  });
10720
- return /* @__PURE__ */ jsx115(
10874
+ return /* @__PURE__ */ jsx118(
10721
10875
  "th",
10722
10876
  {
10723
10877
  ref,
10724
- className: cn65(twWidth7[width], ["leading-none"], classNames3 == null ? void 0 : classNames3.header),
10878
+ className: cn66(twWidth7[width], ["leading-none"], classNames3 == null ? void 0 : classNames3.header),
10725
10879
  ...mergeProps6(columnHeaderProps, hoverProps, focusProps),
10726
10880
  ...stateProps,
10727
10881
  align,
10728
10882
  "data-rac": true,
10729
- children: /* @__PURE__ */ jsx115(_Checkbox, { ...checkboxProps })
10883
+ children: /* @__PURE__ */ jsx118(_Checkbox, { ...checkboxProps })
10730
10884
  }
10731
10885
  );
10732
10886
  };
10733
10887
 
10734
10888
  // src/Table/Table.tsx
10735
- import { jsx as jsx116, jsxs as jsxs43 } from "react/jsx-runtime";
10889
+ import { jsx as jsx119, jsxs as jsxs45 } from "react/jsx-runtime";
10736
10890
  var Table = ({
10737
10891
  variant,
10738
10892
  size: size2,
@@ -10756,22 +10910,22 @@ var Table = ({
10756
10910
  state.isKeyboardNavigationDisabled = disableKeyboardNavigation;
10757
10911
  }
10758
10912
  const { gridProps } = useTable(props, state, tableRef);
10759
- const classNames3 = useClassNames61({
10913
+ const classNames3 = useClassNames62({
10760
10914
  component: "Table",
10761
10915
  variant,
10762
10916
  size: size2
10763
10917
  });
10764
10918
  const { collection } = state;
10765
- return /* @__PURE__ */ jsx116(
10919
+ return /* @__PURE__ */ jsx119(
10766
10920
  TableContext.Provider,
10767
10921
  {
10768
10922
  value: { state, interactive, classNames: classNames3, variant, size: size2 },
10769
- children: /* @__PURE__ */ jsxs43(
10923
+ children: /* @__PURE__ */ jsxs45(
10770
10924
  "table",
10771
10925
  {
10772
10926
  ref: tableRef,
10773
10927
  "data-rac": true,
10774
- className: cn66(
10928
+ className: cn67(
10775
10929
  "group/table border-collapse",
10776
10930
  /**
10777
10931
  * Prevents wide tables from causing overlays to become scrollable on
@@ -10783,7 +10937,7 @@ var Table = ({
10783
10937
  ),
10784
10938
  ...gridProps,
10785
10939
  children: [
10786
- /* @__PURE__ */ jsx116(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ jsx116(
10940
+ /* @__PURE__ */ jsx119(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ jsx119(
10787
10941
  TableHeaderRow,
10788
10942
  {
10789
10943
  item: headerRow,
@@ -10791,7 +10945,7 @@ var Table = ({
10791
10945
  children: [...collection.getChildren(headerRow.key)].map(
10792
10946
  (column2) => {
10793
10947
  var _a, _b, _c, _d, _e;
10794
- return ((_a = column2.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx116(
10948
+ return ((_a = column2.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx119(
10795
10949
  TableSelectAllCell,
10796
10950
  {
10797
10951
  width: (_b = column2.props) == null ? void 0 : _b.width,
@@ -10799,7 +10953,7 @@ var Table = ({
10799
10953
  align: (_c = column2.props) == null ? void 0 : _c.align
10800
10954
  },
10801
10955
  column2.key
10802
- ) : /* @__PURE__ */ jsx116(
10956
+ ) : /* @__PURE__ */ jsx119(
10803
10957
  TableColumnHeader,
10804
10958
  {
10805
10959
  width: (_d = column2.props) == null ? void 0 : _d.width,
@@ -10813,19 +10967,19 @@ var Table = ({
10813
10967
  },
10814
10968
  headerRow.key
10815
10969
  )) }),
10816
- /* @__PURE__ */ jsxs43(TableBody, { className: classNames3.body, emptyState, children: [
10970
+ /* @__PURE__ */ jsxs45(TableBody, { className: classNames3.body, emptyState, children: [
10817
10971
  ...collection.rows.map(
10818
- (row) => row.type === "item" && /* @__PURE__ */ jsx116(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index2) => {
10972
+ (row) => row.type === "item" && /* @__PURE__ */ jsx119(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index2) => {
10819
10973
  var _a, _b;
10820
10974
  const currentColumn = collection.columns[index2];
10821
- return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx116(
10975
+ return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx119(
10822
10976
  TableCheckboxCell,
10823
10977
  {
10824
10978
  cell,
10825
10979
  alignY
10826
10980
  },
10827
10981
  cell.key
10828
- ) : /* @__PURE__ */ jsx116(
10982
+ ) : /* @__PURE__ */ jsx119(
10829
10983
  TableCell,
10830
10984
  {
10831
10985
  align: (_b = currentColumn.props) == null ? void 0 : _b.align,
@@ -10852,7 +11006,7 @@ Table.Row = Row;
10852
11006
  // src/Text/Text.tsx
10853
11007
  import { Text as Text2 } from "react-aria-components";
10854
11008
  import {
10855
- cn as cn67,
11009
+ cn as cn68,
10856
11010
  cursorStyle,
10857
11011
  ensureCssVar as ensureCssVar2,
10858
11012
  fontWeight,
@@ -10860,9 +11014,10 @@ import {
10860
11014
  textSize,
10861
11015
  textStyle,
10862
11016
  textWrap,
10863
- useClassNames as useClassNames62
11017
+ whiteSpace as twWhiteSpace,
11018
+ useClassNames as useClassNames63
10864
11019
  } from "@marigold/system";
10865
- import { jsx as jsx117 } from "react/jsx-runtime";
11020
+ import { jsx as jsx120 } from "react/jsx-runtime";
10866
11021
  var _Text = ({
10867
11022
  variant,
10868
11023
  size: size2,
@@ -10873,23 +11028,24 @@ var _Text = ({
10873
11028
  fontSize,
10874
11029
  fontStyle,
10875
11030
  wrap,
11031
+ whiteSpace,
10876
11032
  children,
10877
11033
  as = "div",
10878
11034
  ...props
10879
11035
  }) => {
10880
- const classNames3 = useClassNames62({
11036
+ const classNames3 = useClassNames63({
10881
11037
  component: "Text",
10882
11038
  variant,
10883
11039
  size: size2
10884
11040
  });
10885
11041
  const Component2 = props.slot ? Text2 : as;
10886
11042
  const elementType = props.slot ? { elementType: as } : {};
10887
- return /* @__PURE__ */ jsx117(
11043
+ return /* @__PURE__ */ jsx120(
10888
11044
  Component2,
10889
11045
  {
10890
11046
  ...props,
10891
11047
  ...elementType,
10892
- className: cn67(
11048
+ className: cn68(
10893
11049
  "max-w-(--maxTextWidth)",
10894
11050
  // possibly set by a <Container>
10895
11051
  classNames3,
@@ -10898,7 +11054,8 @@ var _Text = ({
10898
11054
  cursor2 && cursorStyle[cursor2],
10899
11055
  weight && fontWeight[weight],
10900
11056
  fontSize && textSize[fontSize],
10901
- wrap && textWrap[wrap]
11057
+ wrap && textWrap[wrap],
11058
+ whiteSpace && twWhiteSpace[whiteSpace]
10902
11059
  ),
10903
11060
  style: { color: color && ensureCssVar2(color, "color") },
10904
11061
  children
@@ -10907,11 +11064,11 @@ var _Text = ({
10907
11064
  };
10908
11065
 
10909
11066
  // src/TextArea/TextArea.tsx
10910
- import { forwardRef as forwardRef33 } from "react";
11067
+ import { forwardRef as forwardRef34 } from "react";
10911
11068
  import { TextArea, TextField } from "react-aria-components";
10912
- import { useClassNames as useClassNames63 } from "@marigold/system";
10913
- import { jsx as jsx118 } from "react/jsx-runtime";
10914
- var _TextArea = forwardRef33(
11069
+ import { useClassNames as useClassNames64 } from "@marigold/system";
11070
+ import { jsx as jsx121 } from "react/jsx-runtime";
11071
+ var _TextArea = forwardRef34(
10915
11072
  ({
10916
11073
  variant,
10917
11074
  size: size2,
@@ -10922,7 +11079,7 @@ var _TextArea = forwardRef33(
10922
11079
  rows,
10923
11080
  ...rest
10924
11081
  }, ref) => {
10925
- const classNames3 = useClassNames63({ component: "TextArea", variant, size: size2 });
11082
+ const classNames3 = useClassNames64({ component: "TextArea", variant, size: size2 });
10926
11083
  const props = {
10927
11084
  isDisabled: disabled,
10928
11085
  isReadOnly: readOnly,
@@ -10930,15 +11087,15 @@ var _TextArea = forwardRef33(
10930
11087
  isRequired: required,
10931
11088
  ...rest
10932
11089
  };
10933
- return /* @__PURE__ */ jsx118(FieldBase, { as: TextField, ...props, variant, size: size2, children: /* @__PURE__ */ jsx118(TextArea, { className: classNames3, ref, rows }) });
11090
+ return /* @__PURE__ */ jsx121(FieldBase, { as: TextField, ...props, variant, size: size2, children: /* @__PURE__ */ jsx121(TextArea, { className: classNames3, ref, rows }) });
10934
11091
  }
10935
11092
  );
10936
11093
 
10937
11094
  // src/TextField/TextField.tsx
10938
- import { forwardRef as forwardRef34 } from "react";
11095
+ import { forwardRef as forwardRef35 } from "react";
10939
11096
  import { TextField as TextField2 } from "react-aria-components";
10940
- import { jsx as jsx119 } from "react/jsx-runtime";
10941
- var _TextField = forwardRef34(
11097
+ import { jsx as jsx122 } from "react/jsx-runtime";
11098
+ var _TextField = forwardRef35(
10942
11099
  ({ required, disabled, readOnly, error, ...rest }, ref) => {
10943
11100
  const props = {
10944
11101
  isDisabled: disabled,
@@ -10947,13 +11104,13 @@ var _TextField = forwardRef34(
10947
11104
  isRequired: required,
10948
11105
  ...rest
10949
11106
  };
10950
- return /* @__PURE__ */ jsx119(FieldBase, { as: TextField2, ...props, children: /* @__PURE__ */ jsx119(_Input, { ref }) });
11107
+ return /* @__PURE__ */ jsx122(FieldBase, { as: TextField2, ...props, children: /* @__PURE__ */ jsx122(_Input, { ref }) });
10951
11108
  }
10952
11109
  );
10953
11110
 
10954
11111
  // src/Tiles/Tiles.tsx
10955
- import { cn as cn68, createVar as createVar7, gapSpace as gapSpace9 } from "@marigold/system";
10956
- import { jsx as jsx120 } from "react/jsx-runtime";
11112
+ import { cn as cn69, createVar as createVar7, gapSpace as gapSpace9 } from "@marigold/system";
11113
+ import { jsx as jsx123 } from "react/jsx-runtime";
10957
11114
  var Tiles = ({
10958
11115
  space = 0,
10959
11116
  stretch = false,
@@ -10966,11 +11123,11 @@ var Tiles = ({
10966
11123
  if (stretch) {
10967
11124
  column2 = `minmax(${column2}, 1fr)`;
10968
11125
  }
10969
- return /* @__PURE__ */ jsx120(
11126
+ return /* @__PURE__ */ jsx123(
10970
11127
  "div",
10971
11128
  {
10972
11129
  ...props,
10973
- className: cn68(
11130
+ className: cn69(
10974
11131
  "grid",
10975
11132
  gapSpace9[space],
10976
11133
  "grid-cols-[repeat(auto-fit,var(--column))]",
@@ -10984,11 +11141,11 @@ var Tiles = ({
10984
11141
 
10985
11142
  // src/Tooltip/Tooltip.tsx
10986
11143
  import { OverlayArrow, Tooltip } from "react-aria-components";
10987
- import { cn as cn69, useClassNames as useClassNames64 } from "@marigold/system";
11144
+ import { cn as cn70, useClassNames as useClassNames65 } from "@marigold/system";
10988
11145
 
10989
11146
  // src/Tooltip/TooltipTrigger.tsx
10990
11147
  import { TooltipTrigger } from "react-aria-components";
10991
- import { jsx as jsx121 } from "react/jsx-runtime";
11148
+ import { jsx as jsx124 } from "react/jsx-runtime";
10992
11149
  var _TooltipTrigger = ({
10993
11150
  delay = 1e3,
10994
11151
  children,
@@ -11002,19 +11159,19 @@ var _TooltipTrigger = ({
11002
11159
  isOpen: open,
11003
11160
  delay
11004
11161
  };
11005
- return /* @__PURE__ */ jsx121(TooltipTrigger, { ...props, children });
11162
+ return /* @__PURE__ */ jsx124(TooltipTrigger, { ...props, children });
11006
11163
  };
11007
11164
 
11008
11165
  // src/Tooltip/Tooltip.tsx
11009
- import { jsx as jsx122, jsxs as jsxs44 } from "react/jsx-runtime";
11166
+ import { jsx as jsx125, jsxs as jsxs46 } from "react/jsx-runtime";
11010
11167
  var _Tooltip = ({ children, variant, size: size2, open, ...rest }) => {
11011
11168
  const props = {
11012
11169
  ...rest,
11013
11170
  isOpen: open
11014
11171
  };
11015
- const classNames3 = useClassNames64({ component: "Tooltip", variant, size: size2 });
11016
- return /* @__PURE__ */ jsxs44(Tooltip, { ...props, className: cn69("group/tooltip", classNames3.container), children: [
11017
- /* @__PURE__ */ jsx122(OverlayArrow, { className: classNames3.arrow, children: /* @__PURE__ */ jsx122("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx122("path", { d: "M0 0 L4 4 L8 0" }) }) }),
11172
+ const classNames3 = useClassNames65({ component: "Tooltip", variant, size: size2 });
11173
+ return /* @__PURE__ */ jsxs46(Tooltip, { ...props, className: cn70("group/tooltip", classNames3.container), children: [
11174
+ /* @__PURE__ */ jsx125(OverlayArrow, { className: classNames3.arrow, children: /* @__PURE__ */ jsx125("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx125("path", { d: "M0 0 L4 4 L8 0" }) }) }),
11018
11175
  children
11019
11176
  ] });
11020
11177
  };
@@ -11026,21 +11183,21 @@ import {
11026
11183
  UNSTABLE_ToastRegion as ToastRegion
11027
11184
  } from "react-aria-components";
11028
11185
  import { flushSync } from "react-dom";
11029
- import { useClassNames as useClassNames66 } from "@marigold/system";
11186
+ import { useClassNames as useClassNames67 } from "@marigold/system";
11030
11187
 
11031
11188
  // src/Toast/Toast.tsx
11032
11189
  import { UNSTABLE_ToastContent as RAC_ToastContent } from "react-aria-components";
11033
11190
  import { UNSTABLE_Toast as RAC_Toast, Text as Text3 } from "react-aria-components";
11034
- import { useClassNames as useClassNames65 } from "@marigold/system";
11035
- import { jsx as jsx123, jsxs as jsxs45 } from "react/jsx-runtime";
11191
+ import { useClassNames as useClassNames66 } from "@marigold/system";
11192
+ import { jsx as jsx126, jsxs as jsxs47 } from "react/jsx-runtime";
11036
11193
  var icons3 = {
11037
- success: () => /* @__PURE__ */ jsx123(
11194
+ success: () => /* @__PURE__ */ jsx126(
11038
11195
  "svg",
11039
11196
  {
11040
11197
  xmlns: "http://www.w3.org/2000/svg",
11041
11198
  viewBox: "0 0 24 24",
11042
11199
  fill: "currentColor",
11043
- children: /* @__PURE__ */ jsx123(
11200
+ children: /* @__PURE__ */ jsx126(
11044
11201
  "path",
11045
11202
  {
11046
11203
  fillRule: "evenodd",
@@ -11050,13 +11207,13 @@ var icons3 = {
11050
11207
  )
11051
11208
  }
11052
11209
  ),
11053
- info: () => /* @__PURE__ */ jsx123(
11210
+ info: () => /* @__PURE__ */ jsx126(
11054
11211
  "svg",
11055
11212
  {
11056
11213
  xmlns: "http://www.w3.org/2000/svg",
11057
11214
  viewBox: "0 0 24 24",
11058
11215
  fill: "currentColor",
11059
- children: /* @__PURE__ */ jsx123(
11216
+ children: /* @__PURE__ */ jsx126(
11060
11217
  "path",
11061
11218
  {
11062
11219
  fillRule: "evenodd",
@@ -11066,13 +11223,13 @@ var icons3 = {
11066
11223
  )
11067
11224
  }
11068
11225
  ),
11069
- warning: () => /* @__PURE__ */ jsx123(
11226
+ warning: () => /* @__PURE__ */ jsx126(
11070
11227
  "svg",
11071
11228
  {
11072
11229
  xmlns: "http://www.w3.org/2000/svg",
11073
11230
  viewBox: "0 0 24 24",
11074
11231
  fill: "currentColor",
11075
- children: /* @__PURE__ */ jsx123(
11232
+ children: /* @__PURE__ */ jsx126(
11076
11233
  "path",
11077
11234
  {
11078
11235
  fillRule: "evenodd",
@@ -11082,13 +11239,13 @@ var icons3 = {
11082
11239
  )
11083
11240
  }
11084
11241
  ),
11085
- error: () => /* @__PURE__ */ jsx123(
11242
+ error: () => /* @__PURE__ */ jsx126(
11086
11243
  "svg",
11087
11244
  {
11088
11245
  xmlns: "http://www.w3.org/2000/svg",
11089
11246
  viewBox: "0 0 24 24",
11090
11247
  fill: "currentColor",
11091
- children: /* @__PURE__ */ jsx123(
11248
+ children: /* @__PURE__ */ jsx126(
11092
11249
  "path",
11093
11250
  {
11094
11251
  fillRule: "evenodd",
@@ -11100,25 +11257,25 @@ var icons3 = {
11100
11257
  )
11101
11258
  };
11102
11259
  var Toast = ({ toast }) => {
11103
- const classNames3 = useClassNames65({
11260
+ const classNames3 = useClassNames66({
11104
11261
  component: "Toast",
11105
11262
  variant: toast.content.variant
11106
11263
  });
11107
11264
  const Icon4 = toast.content.variant ? icons3[toast.content.variant] : null;
11108
- return /* @__PURE__ */ jsxs45(
11265
+ return /* @__PURE__ */ jsxs47(
11109
11266
  RAC_Toast,
11110
11267
  {
11111
11268
  toast,
11112
11269
  className: classNames3.toast,
11113
11270
  style: { viewTransitionName: toast.key },
11114
11271
  children: [
11115
- /* @__PURE__ */ jsxs45(RAC_ToastContent, { className: classNames3.content, children: [
11116
- Icon4 && /* @__PURE__ */ jsx123("div", { className: classNames3.icon, slot: "icon", "data-testid": "toast-icon", children: /* @__PURE__ */ jsx123(Icon4, {}) }),
11117
- /* @__PURE__ */ jsx123(Text3, { slot: "title", className: classNames3.title, children: toast.content.title }),
11118
- /* @__PURE__ */ jsx123(Stack, { space: 2 }),
11119
- /* @__PURE__ */ jsx123(Text3, { slot: "description", className: classNames3.description, children: toast.content.description })
11272
+ /* @__PURE__ */ jsxs47(RAC_ToastContent, { className: classNames3.content, children: [
11273
+ Icon4 && /* @__PURE__ */ jsx126("div", { className: classNames3.icon, slot: "icon", "data-testid": "toast-icon", children: /* @__PURE__ */ jsx126(Icon4, {}) }),
11274
+ /* @__PURE__ */ jsx126(Text3, { slot: "title", className: classNames3.title, children: toast.content.title }),
11275
+ /* @__PURE__ */ jsx126(Stack, { space: 2 }),
11276
+ /* @__PURE__ */ jsx126(Text3, { slot: "description", className: classNames3.description, children: toast.content.description })
11120
11277
  ] }),
11121
- /* @__PURE__ */ jsx123(
11278
+ /* @__PURE__ */ jsx126(
11122
11279
  CloseButton,
11123
11280
  {
11124
11281
  className: classNames3.closeButton,
@@ -11132,7 +11289,7 @@ var Toast = ({ toast }) => {
11132
11289
  };
11133
11290
 
11134
11291
  // src/Toast/ToastProvider.tsx
11135
- import { jsx as jsx124 } from "react/jsx-runtime";
11292
+ import { jsx as jsx127 } from "react/jsx-runtime";
11136
11293
  var queue = new ToastQueue({
11137
11294
  // Wrap state updates in a CSS view transition.
11138
11295
  wrapUpdate(fn) {
@@ -11146,10 +11303,10 @@ var queue = new ToastQueue({
11146
11303
  }
11147
11304
  });
11148
11305
  var ToastProvider = ({ position: position2 = "bottom-right" }) => {
11149
- const classNames3 = useClassNames66({
11306
+ const classNames3 = useClassNames67({
11150
11307
  component: "Toast"
11151
11308
  });
11152
- return /* @__PURE__ */ jsx124(ToastRegion, { queue, className: `${classNames3[position2]} z-50 gap-2`, children: ({ toast }) => /* @__PURE__ */ jsx124(Toast, { toast }) });
11309
+ return /* @__PURE__ */ jsx127(ToastRegion, { queue, className: `${classNames3[position2]} z-50 gap-2`, children: ({ toast }) => /* @__PURE__ */ jsx127(Toast, { toast }) });
11153
11310
  };
11154
11311
 
11155
11312
  // src/Toast/ToastQueue.ts
@@ -11176,22 +11333,22 @@ function useToast() {
11176
11333
 
11177
11334
  // src/TagGroup/Tag.tsx
11178
11335
  import { Tag } from "react-aria-components";
11179
- import { cn as cn70, useClassNames as useClassNames68 } from "@marigold/system";
11336
+ import { cn as cn71, useClassNames as useClassNames69 } from "@marigold/system";
11180
11337
 
11181
11338
  // src/TagGroup/TagGroup.tsx
11182
11339
  import { TagGroup, TagList } from "react-aria-components";
11183
- import { useClassNames as useClassNames67 } from "@marigold/system";
11340
+ import { useClassNames as useClassNames68 } from "@marigold/system";
11184
11341
 
11185
11342
  // src/TagGroup/TagGroupHiddenInput.tsx
11186
- import { useContext as useContext27 } from "react";
11343
+ import { useContext as useContext28 } from "react";
11187
11344
  import { ListStateContext } from "react-aria-components";
11188
- import { jsx as jsx125 } from "react/jsx-runtime";
11345
+ import { jsx as jsx128 } from "react/jsx-runtime";
11189
11346
  var TagGroupHiddenInput = ({ name }) => {
11190
11347
  var _a;
11191
- const state = useContext27(ListStateContext);
11348
+ const state = useContext28(ListStateContext);
11192
11349
  const selectedKeys = Array.from((_a = state == null ? void 0 : state.selectionManager.selectedKeys) != null ? _a : []);
11193
11350
  if (!selectedKeys.length) return null;
11194
- return /* @__PURE__ */ jsx125("div", { hidden: true, "aria-hidden": "true", children: selectedKeys.map((key) => /* @__PURE__ */ jsx125(
11351
+ return /* @__PURE__ */ jsx128("div", { hidden: true, "aria-hidden": "true", children: selectedKeys.map((key) => /* @__PURE__ */ jsx128(
11195
11352
  "input",
11196
11353
  {
11197
11354
  type: "checkbox",
@@ -11205,20 +11362,20 @@ var TagGroupHiddenInput = ({ name }) => {
11205
11362
  };
11206
11363
 
11207
11364
  // src/TagGroup/TagGroupRemoveAll.tsx
11208
- import { useContext as useContext28 } from "react";
11365
+ import { useContext as useContext29 } from "react";
11209
11366
  import { Button as Button11, ListStateContext as ListStateContext2 } from "react-aria-components";
11210
- import { useLocalizedStringFormatter as useLocalizedStringFormatter5 } from "@react-aria/i18n";
11211
- import { jsx as jsx126 } from "react/jsx-runtime";
11367
+ import { useLocalizedStringFormatter as useLocalizedStringFormatter6 } from "@react-aria/i18n";
11368
+ import { jsx as jsx129 } from "react/jsx-runtime";
11212
11369
  var TagGroupRemoveAll = ({
11213
11370
  className,
11214
11371
  onRemove
11215
11372
  }) => {
11216
- const state = useContext28(ListStateContext2);
11217
- const stringFormatter = useLocalizedStringFormatter5(intlMessages2, "marigold");
11373
+ const state = useContext29(ListStateContext2);
11374
+ const stringFormatter = useLocalizedStringFormatter6(intlMessages2, "marigold");
11218
11375
  if (state && state.collection.size < 2) {
11219
11376
  return null;
11220
11377
  }
11221
- return /* @__PURE__ */ jsx126(
11378
+ return /* @__PURE__ */ jsx129(
11222
11379
  Button11,
11223
11380
  {
11224
11381
  onPress: () => onRemove == null ? void 0 : onRemove(new Set(state == null ? void 0 : state.collection.getKeys())),
@@ -11229,7 +11386,7 @@ var TagGroupRemoveAll = ({
11229
11386
  };
11230
11387
 
11231
11388
  // src/TagGroup/TagGroup.tsx
11232
- import { jsx as jsx127, jsxs as jsxs46 } from "react/jsx-runtime";
11389
+ import { jsx as jsx130, jsxs as jsxs48 } from "react/jsx-runtime";
11233
11390
  var _TagGroup = ({
11234
11391
  items,
11235
11392
  children,
@@ -11240,10 +11397,10 @@ var _TagGroup = ({
11240
11397
  removeAll,
11241
11398
  ...rest
11242
11399
  }) => {
11243
- const classNames3 = useClassNames67({ component: "Tag", variant, size: size2 });
11244
- return /* @__PURE__ */ jsxs46(FieldBase, { as: TagGroup, ...rest, children: [
11245
- /* @__PURE__ */ jsxs46("div", { className: classNames3.container, children: [
11246
- /* @__PURE__ */ jsx127(
11400
+ const classNames3 = useClassNames68({ component: "Tag", variant, size: size2 });
11401
+ return /* @__PURE__ */ jsxs48(FieldBase, { as: TagGroup, ...rest, children: [
11402
+ /* @__PURE__ */ jsxs48("div", { className: classNames3.container, children: [
11403
+ /* @__PURE__ */ jsx130(
11247
11404
  TagList,
11248
11405
  {
11249
11406
  items,
@@ -11252,7 +11409,7 @@ var _TagGroup = ({
11252
11409
  children
11253
11410
  }
11254
11411
  ),
11255
- rest.onRemove && removeAll ? /* @__PURE__ */ jsx127(
11412
+ rest.onRemove && removeAll ? /* @__PURE__ */ jsx130(
11256
11413
  TagGroupRemoveAll,
11257
11414
  {
11258
11415
  className: classNames3.removeAll,
@@ -11260,28 +11417,28 @@ var _TagGroup = ({
11260
11417
  }
11261
11418
  ) : null
11262
11419
  ] }),
11263
- name ? /* @__PURE__ */ jsx127(TagGroupHiddenInput, { name }) : null
11420
+ name ? /* @__PURE__ */ jsx130(TagGroupHiddenInput, { name }) : null
11264
11421
  ] });
11265
11422
  };
11266
11423
 
11267
11424
  // src/TagGroup/Tag.tsx
11268
- import { Fragment as Fragment11, jsx as jsx128, jsxs as jsxs47 } from "react/jsx-runtime";
11425
+ import { Fragment as Fragment12, jsx as jsx131, jsxs as jsxs49 } from "react/jsx-runtime";
11269
11426
  var _Tag = ({ variant, size: size2, children, disabled, ...rest }) => {
11270
11427
  let textValue = typeof children === "string" ? children : void 0;
11271
- const classNames3 = useClassNames68({ component: "Tag", variant, size: size2 });
11428
+ const classNames3 = useClassNames69({ component: "Tag", variant, size: size2 });
11272
11429
  const props = {
11273
11430
  isDisabled: disabled,
11274
11431
  ...rest
11275
11432
  };
11276
- return /* @__PURE__ */ jsx128(
11433
+ return /* @__PURE__ */ jsx131(
11277
11434
  Tag,
11278
11435
  {
11279
11436
  textValue,
11280
11437
  ...props,
11281
- className: cn70("data-selection-mode:cursor-pointer", classNames3.tag),
11282
- children: ({ allowsRemoving }) => /* @__PURE__ */ jsxs47(Fragment11, { children: [
11438
+ className: cn71("data-selection-mode:cursor-pointer", classNames3.tag),
11439
+ children: ({ allowsRemoving }) => /* @__PURE__ */ jsxs49(Fragment12, { children: [
11283
11440
  children,
11284
- allowsRemoving && /* @__PURE__ */ jsx128(CloseButton, { className: classNames3.closeButton, slot: "remove" })
11441
+ allowsRemoving && /* @__PURE__ */ jsx131(CloseButton, { className: classNames3.closeButton, slot: "remove" })
11285
11442
  ] })
11286
11443
  }
11287
11444
  );
@@ -11294,13 +11451,13 @@ import { VisuallyHidden } from "@react-aria/visually-hidden";
11294
11451
  // src/XLoader/XLoader.tsx
11295
11452
  import { Dialog as Dialog5, Modal as Modal3 } from "react-aria-components";
11296
11453
  import { useId as useId3 } from "@react-aria/utils";
11297
- import { useClassNames as useClassNames70 } from "@marigold/system";
11454
+ import { useClassNames as useClassNames71 } from "@marigold/system";
11298
11455
 
11299
11456
  // src/XLoader/BaseLoader.tsx
11300
11457
  import { Label as Label2, ProgressBar as ProgressBar2 } from "react-aria-components";
11301
- import { useLocalizedStringFormatter as useLocalizedStringFormatter6 } from "@react-aria/i18n";
11302
- import { useClassNames as useClassNames69 } from "@marigold/system";
11303
- import { jsx as jsx129, jsxs as jsxs48 } from "react/jsx-runtime";
11458
+ import { useLocalizedStringFormatter as useLocalizedStringFormatter7 } from "@react-aria/i18n";
11459
+ import { useClassNames as useClassNames70 } from "@marigold/system";
11460
+ import { jsx as jsx132, jsxs as jsxs50 } from "react/jsx-runtime";
11304
11461
  var BaseLoader = ({
11305
11462
  variant,
11306
11463
  size: size2,
@@ -11308,9 +11465,9 @@ var BaseLoader = ({
11308
11465
  "aria-label": ariaLabel,
11309
11466
  ...props
11310
11467
  }) => {
11311
- const stringFormatter = useLocalizedStringFormatter6(intlMessages2, "marigold");
11312
- const className = useClassNames69({ component: "XLoader", variant, size: size2 });
11313
- return /* @__PURE__ */ jsxs48(
11468
+ const stringFormatter = useLocalizedStringFormatter7(intlMessages2, "marigold");
11469
+ const className = useClassNames70({ component: "XLoader", variant, size: size2 });
11470
+ return /* @__PURE__ */ jsxs50(
11314
11471
  ProgressBar2,
11315
11472
  {
11316
11473
  className: className.container,
@@ -11318,7 +11475,7 @@ var BaseLoader = ({
11318
11475
  "aria-label": ariaLabel || children ? ariaLabel : stringFormatter.format("loadingMessage"),
11319
11476
  ...props,
11320
11477
  children: [
11321
- /* @__PURE__ */ jsxs48(
11478
+ /* @__PURE__ */ jsxs50(
11322
11479
  "svg",
11323
11480
  {
11324
11481
  xmlns: "http://www.w3.org/2000/svg",
@@ -11326,13 +11483,13 @@ var BaseLoader = ({
11326
11483
  fill: "currentColor",
11327
11484
  className: className.loader,
11328
11485
  children: [
11329
- /* @__PURE__ */ jsx129("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
11330
- /* @__PURE__ */ jsx129(
11486
+ /* @__PURE__ */ jsx132("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
11487
+ /* @__PURE__ */ jsx132(
11331
11488
  "path",
11332
11489
  {
11333
11490
  id: "XMLID_5_",
11334
11491
  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",
11335
- children: /* @__PURE__ */ jsx129(
11492
+ children: /* @__PURE__ */ jsx132(
11336
11493
  "animate",
11337
11494
  {
11338
11495
  attributeName: "opacity",
@@ -11345,12 +11502,12 @@ var BaseLoader = ({
11345
11502
  )
11346
11503
  }
11347
11504
  ),
11348
- /* @__PURE__ */ jsx129(
11505
+ /* @__PURE__ */ jsx132(
11349
11506
  "path",
11350
11507
  {
11351
11508
  id: "XMLID_18_",
11352
11509
  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",
11353
- children: /* @__PURE__ */ jsx129(
11510
+ children: /* @__PURE__ */ jsx132(
11354
11511
  "animate",
11355
11512
  {
11356
11513
  attributeName: "opacity",
@@ -11363,12 +11520,12 @@ var BaseLoader = ({
11363
11520
  )
11364
11521
  }
11365
11522
  ),
11366
- /* @__PURE__ */ jsx129(
11523
+ /* @__PURE__ */ jsx132(
11367
11524
  "path",
11368
11525
  {
11369
11526
  id: "XMLID_19_",
11370
11527
  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",
11371
- children: /* @__PURE__ */ jsx129(
11528
+ children: /* @__PURE__ */ jsx132(
11372
11529
  "animate",
11373
11530
  {
11374
11531
  attributeName: "opacity",
@@ -11381,12 +11538,12 @@ var BaseLoader = ({
11381
11538
  )
11382
11539
  }
11383
11540
  ),
11384
- /* @__PURE__ */ jsx129(
11541
+ /* @__PURE__ */ jsx132(
11385
11542
  "path",
11386
11543
  {
11387
11544
  id: "XMLID_20_",
11388
11545
  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",
11389
- children: /* @__PURE__ */ jsx129(
11546
+ children: /* @__PURE__ */ jsx132(
11390
11547
  "animate",
11391
11548
  {
11392
11549
  attributeName: "opacity",
@@ -11399,12 +11556,12 @@ var BaseLoader = ({
11399
11556
  )
11400
11557
  }
11401
11558
  ),
11402
- /* @__PURE__ */ jsx129(
11559
+ /* @__PURE__ */ jsx132(
11403
11560
  "path",
11404
11561
  {
11405
11562
  id: "XMLID_21_",
11406
11563
  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",
11407
- children: /* @__PURE__ */ jsx129(
11564
+ children: /* @__PURE__ */ jsx132(
11408
11565
  "animate",
11409
11566
  {
11410
11567
  attributeName: "opacity",
@@ -11417,12 +11574,12 @@ var BaseLoader = ({
11417
11574
  )
11418
11575
  }
11419
11576
  ),
11420
- /* @__PURE__ */ jsx129(
11577
+ /* @__PURE__ */ jsx132(
11421
11578
  "path",
11422
11579
  {
11423
11580
  id: "XMLID_22_",
11424
11581
  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",
11425
- children: /* @__PURE__ */ jsx129(
11582
+ children: /* @__PURE__ */ jsx132(
11426
11583
  "animate",
11427
11584
  {
11428
11585
  attributeName: "opacity",
@@ -11435,12 +11592,12 @@ var BaseLoader = ({
11435
11592
  )
11436
11593
  }
11437
11594
  ),
11438
- /* @__PURE__ */ jsx129(
11595
+ /* @__PURE__ */ jsx132(
11439
11596
  "path",
11440
11597
  {
11441
11598
  id: "XMLID_23_",
11442
11599
  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",
11443
- children: /* @__PURE__ */ jsx129(
11600
+ children: /* @__PURE__ */ jsx132(
11444
11601
  "animate",
11445
11602
  {
11446
11603
  attributeName: "opacity",
@@ -11453,12 +11610,12 @@ var BaseLoader = ({
11453
11610
  )
11454
11611
  }
11455
11612
  ),
11456
- /* @__PURE__ */ jsx129(
11613
+ /* @__PURE__ */ jsx132(
11457
11614
  "path",
11458
11615
  {
11459
11616
  id: "XMLID_24_",
11460
11617
  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",
11461
- children: /* @__PURE__ */ jsx129(
11618
+ children: /* @__PURE__ */ jsx132(
11462
11619
  "animate",
11463
11620
  {
11464
11621
  attributeName: "opacity",
@@ -11471,12 +11628,12 @@ var BaseLoader = ({
11471
11628
  )
11472
11629
  }
11473
11630
  ),
11474
- /* @__PURE__ */ jsx129(
11631
+ /* @__PURE__ */ jsx132(
11475
11632
  "path",
11476
11633
  {
11477
11634
  id: "XMLID_25_",
11478
11635
  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",
11479
- children: /* @__PURE__ */ jsx129(
11636
+ children: /* @__PURE__ */ jsx132(
11480
11637
  "animate",
11481
11638
  {
11482
11639
  attributeName: "opacity",
@@ -11489,12 +11646,12 @@ var BaseLoader = ({
11489
11646
  )
11490
11647
  }
11491
11648
  ),
11492
- /* @__PURE__ */ jsx129(
11649
+ /* @__PURE__ */ jsx132(
11493
11650
  "path",
11494
11651
  {
11495
11652
  id: "XMLID_26_",
11496
11653
  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",
11497
- children: /* @__PURE__ */ jsx129(
11654
+ children: /* @__PURE__ */ jsx132(
11498
11655
  "animate",
11499
11656
  {
11500
11657
  attributeName: "opacity",
@@ -11507,12 +11664,12 @@ var BaseLoader = ({
11507
11664
  )
11508
11665
  }
11509
11666
  ),
11510
- /* @__PURE__ */ jsx129(
11667
+ /* @__PURE__ */ jsx132(
11511
11668
  "path",
11512
11669
  {
11513
11670
  id: "XMLID_27_",
11514
11671
  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",
11515
- children: /* @__PURE__ */ jsx129(
11672
+ children: /* @__PURE__ */ jsx132(
11516
11673
  "animate",
11517
11674
  {
11518
11675
  attributeName: "opacity",
@@ -11528,48 +11685,48 @@ var BaseLoader = ({
11528
11685
  ]
11529
11686
  }
11530
11687
  ),
11531
- children ? /* @__PURE__ */ jsx129(Label2, { className: className.label, children }) : null
11688
+ children ? /* @__PURE__ */ jsx132(Label2, { className: className.label, children }) : null
11532
11689
  ]
11533
11690
  }
11534
11691
  );
11535
11692
  };
11536
11693
 
11537
11694
  // src/XLoader/XLoader.tsx
11538
- import { jsx as jsx130 } from "react/jsx-runtime";
11695
+ import { jsx as jsx133 } from "react/jsx-runtime";
11539
11696
  var LoaderFullScreen = (props) => {
11540
11697
  const id = useId3();
11541
- return /* @__PURE__ */ jsx130(Underlay, { defaultOpen: true, keyboardDismissable: true, variant: "modal", children: /* @__PURE__ */ jsx130(Modal3, { className: "grid h-(--visual-viewport-height) cursor-progress place-items-center", children: /* @__PURE__ */ jsx130(Dialog5, { className: "outline-0", "aria-labelledby": id, children: /* @__PURE__ */ jsx130(BaseLoader, { id, ...props }) }) }) });
11698
+ return /* @__PURE__ */ jsx133(Underlay, { defaultOpen: true, keyboardDismissable: true, variant: "modal", children: /* @__PURE__ */ jsx133(Modal3, { className: "grid h-(--visual-viewport-height) cursor-progress place-items-center", children: /* @__PURE__ */ jsx133(Dialog5, { className: "outline-0", "aria-labelledby": id, children: /* @__PURE__ */ jsx133(BaseLoader, { id, ...props }) }) }) });
11542
11699
  };
11543
11700
  var LoaderSection = (props) => {
11544
- const className = useClassNames70({
11701
+ const className = useClassNames71({
11545
11702
  component: "Underlay",
11546
11703
  variant: "modal",
11547
11704
  className: "flex size-full items-center justify-center"
11548
11705
  });
11549
- return /* @__PURE__ */ jsx130("div", { className, children: /* @__PURE__ */ jsx130(BaseLoader, { ...props }) });
11706
+ return /* @__PURE__ */ jsx133("div", { className, children: /* @__PURE__ */ jsx133(BaseLoader, { ...props }) });
11550
11707
  };
11551
- var XLoader = ({ mode, variant, ...props }) => mode === "fullscreen" ? /* @__PURE__ */ jsx130(LoaderFullScreen, { variant: variant != null ? variant : "inverted", ...props }) : mode === "section" ? /* @__PURE__ */ jsx130(LoaderSection, { variant: variant != null ? variant : "inverted", ...props }) : /* @__PURE__ */ jsx130(BaseLoader, { variant, ...props });
11708
+ var XLoader = ({ mode, variant, ...props }) => mode === "fullscreen" ? /* @__PURE__ */ jsx133(LoaderFullScreen, { variant: variant != null ? variant : "inverted", ...props }) : mode === "section" ? /* @__PURE__ */ jsx133(LoaderSection, { variant: variant != null ? variant : "inverted", ...props }) : /* @__PURE__ */ jsx133(BaseLoader, { variant, ...props });
11552
11709
 
11553
11710
  // src/Tabs/Tabs.tsx
11554
11711
  import { Tabs } from "react-aria-components";
11555
- import { useClassNames as useClassNames71 } from "@marigold/system";
11712
+ import { useClassNames as useClassNames72 } from "@marigold/system";
11556
11713
 
11557
11714
  // src/Tabs/Context.ts
11558
- import { createContext as createContext15, useContext as useContext29 } from "react";
11559
- var TabContext = createContext15({});
11560
- var useTabContext = () => useContext29(TabContext);
11715
+ import { createContext as createContext16, useContext as useContext30 } from "react";
11716
+ var TabContext = createContext16({});
11717
+ var useTabContext = () => useContext30(TabContext);
11561
11718
 
11562
11719
  // src/Tabs/Tab.tsx
11563
11720
  import { Tab } from "react-aria-components";
11564
- import { cn as cn71 } from "@marigold/system";
11565
- import { jsx as jsx131 } from "react/jsx-runtime";
11721
+ import { cn as cn72 } from "@marigold/system";
11722
+ import { jsx as jsx134 } from "react/jsx-runtime";
11566
11723
  var _Tab = (props) => {
11567
11724
  const { classNames: classNames3 } = useTabContext();
11568
- return /* @__PURE__ */ jsx131(
11725
+ return /* @__PURE__ */ jsx134(
11569
11726
  Tab,
11570
11727
  {
11571
11728
  ...props,
11572
- className: cn71(
11729
+ className: cn72(
11573
11730
  "flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
11574
11731
  classNames3.tab
11575
11732
  ),
@@ -11580,15 +11737,15 @@ var _Tab = (props) => {
11580
11737
 
11581
11738
  // src/Tabs/TabList.tsx
11582
11739
  import { TabList } from "react-aria-components";
11583
- import { cn as cn72, gapSpace as gapSpace10 } from "@marigold/system";
11584
- import { jsx as jsx132 } from "react/jsx-runtime";
11740
+ import { cn as cn73, gapSpace as gapSpace10 } from "@marigold/system";
11741
+ import { jsx as jsx135 } from "react/jsx-runtime";
11585
11742
  var _TabList = ({ space = 2, ...props }) => {
11586
11743
  const { classNames: classNames3 } = useTabContext();
11587
- return /* @__PURE__ */ jsx132(
11744
+ return /* @__PURE__ */ jsx135(
11588
11745
  TabList,
11589
11746
  {
11590
11747
  ...props,
11591
- className: cn72("flex", gapSpace10[space], classNames3.tabsList),
11748
+ className: cn73("flex", gapSpace10[space], classNames3.tabsList),
11592
11749
  children: props.children
11593
11750
  }
11594
11751
  );
@@ -11596,25 +11753,25 @@ var _TabList = ({ space = 2, ...props }) => {
11596
11753
 
11597
11754
  // src/Tabs/TabPanel.tsx
11598
11755
  import { TabPanel } from "react-aria-components";
11599
- import { jsx as jsx133 } from "react/jsx-runtime";
11756
+ import { jsx as jsx136 } from "react/jsx-runtime";
11600
11757
  var _TabPanel = (props) => {
11601
11758
  const { classNames: classNames3 } = useTabContext();
11602
- return /* @__PURE__ */ jsx133(TabPanel, { ...props, className: classNames3.tabpanel, children: props.children });
11759
+ return /* @__PURE__ */ jsx136(TabPanel, { ...props, className: classNames3.tabpanel, children: props.children });
11603
11760
  };
11604
11761
 
11605
11762
  // src/Tabs/Tabs.tsx
11606
- import { jsx as jsx134 } from "react/jsx-runtime";
11763
+ import { jsx as jsx137 } from "react/jsx-runtime";
11607
11764
  var _Tabs = ({ disabled, variant, size: size2 = "medium", ...rest }) => {
11608
11765
  const props = {
11609
11766
  isDisabled: disabled,
11610
11767
  ...rest
11611
11768
  };
11612
- const classNames3 = useClassNames71({
11769
+ const classNames3 = useClassNames72({
11613
11770
  component: "Tabs",
11614
11771
  size: size2,
11615
11772
  variant
11616
11773
  });
11617
- return /* @__PURE__ */ jsx134(TabContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ jsx134(Tabs, { ...props, className: classNames3.container, children: props.children }) });
11774
+ return /* @__PURE__ */ jsx137(TabContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ jsx137(Tabs, { ...props, className: classNames3.container, children: props.children }) });
11618
11775
  };
11619
11776
  _Tabs.List = _TabList;
11620
11777
  _Tabs.TabPanel = _TabPanel;
@@ -11624,11 +11781,11 @@ _Tabs.Item = _Tab;
11624
11781
  import { RouterProvider } from "react-aria-components";
11625
11782
 
11626
11783
  // src/TimeField/TimeField.tsx
11627
- import { forwardRef as forwardRef35 } from "react";
11784
+ import { forwardRef as forwardRef36 } from "react";
11628
11785
  import { DateInput as DateInput2, DateSegment as DateSegment2, TimeField } from "react-aria-components";
11629
- import { useClassNames as useClassNames72 } from "@marigold/system";
11630
- import { jsx as jsx135 } from "react/jsx-runtime";
11631
- var _TimeField = forwardRef35(
11786
+ import { useClassNames as useClassNames73 } from "@marigold/system";
11787
+ import { jsx as jsx138 } from "react/jsx-runtime";
11788
+ var _TimeField = forwardRef36(
11632
11789
  ({
11633
11790
  required,
11634
11791
  disabled,
@@ -11639,7 +11796,7 @@ var _TimeField = forwardRef35(
11639
11796
  width = "full",
11640
11797
  ...rest
11641
11798
  }, ref) => {
11642
- const classNames3 = useClassNames72({ component: "DateField", variant, size: size2 });
11799
+ const classNames3 = useClassNames73({ component: "DateField", variant, size: size2 });
11643
11800
  const props = {
11644
11801
  isDisabled: disabled,
11645
11802
  isReadOnly: readOnly,
@@ -11647,7 +11804,7 @@ var _TimeField = forwardRef35(
11647
11804
  isRequired: required,
11648
11805
  ...rest
11649
11806
  };
11650
- return /* @__PURE__ */ jsx135(
11807
+ return /* @__PURE__ */ jsx138(
11651
11808
  FieldBase,
11652
11809
  {
11653
11810
  as: TimeField,
@@ -11656,7 +11813,7 @@ var _TimeField = forwardRef35(
11656
11813
  width,
11657
11814
  ...props,
11658
11815
  ref,
11659
- children: /* @__PURE__ */ jsx135(DateInput2, { className: classNames3.field, children: (segment) => /* @__PURE__ */ jsx135(DateSegment2, { className: classNames3.segment, segment }) })
11816
+ children: /* @__PURE__ */ jsx138(DateInput2, { className: classNames3.field, children: (segment) => /* @__PURE__ */ jsx138(DateSegment2, { className: classNames3.segment, segment }) })
11660
11817
  }
11661
11818
  );
11662
11819
  }
@@ -11664,35 +11821,35 @@ var _TimeField = forwardRef35(
11664
11821
 
11665
11822
  // src/Breadcrumbs/Breadcrumbs.tsx
11666
11823
  import React13, {
11667
- forwardRef as forwardRef36
11824
+ forwardRef as forwardRef37
11668
11825
  } from "react";
11669
11826
  import {
11670
11827
  Breadcrumb as RACBreadcrumb,
11671
11828
  Breadcrumbs as RACBreadcrumbs
11672
11829
  } from "react-aria-components";
11673
- import { cn as cn73, useClassNames as useClassNames74 } from "@marigold/system";
11830
+ import { cn as cn74, useClassNames as useClassNames75 } from "@marigold/system";
11674
11831
 
11675
11832
  // src/Breadcrumbs/BreadcrumbEllipsis.tsx
11676
11833
  import React12 from "react";
11677
11834
  import { Button as Button12, Menu as Menu4, MenuItem as MenuItem2, MenuTrigger as MenuTrigger2 } from "react-aria-components";
11678
- import { useClassNames as useClassNames73 } from "@marigold/system";
11679
- import { jsx as jsx136, jsxs as jsxs49 } from "react/jsx-runtime";
11835
+ import { useClassNames as useClassNames74 } from "@marigold/system";
11836
+ import { jsx as jsx139, jsxs as jsxs51 } from "react/jsx-runtime";
11680
11837
  var BreadcrumbEllipsis = ({
11681
11838
  hiddenItems = [],
11682
11839
  disabled = false
11683
11840
  }) => {
11684
- const { container, item: menuItem } = useClassNames73({
11841
+ const { container, item: menuItem } = useClassNames74({
11685
11842
  component: "Menu"
11686
11843
  });
11687
- const { item: breadcrumbsItem, link } = useClassNames73({
11844
+ const { item: breadcrumbsItem, link } = useClassNames74({
11688
11845
  component: "Breadcrumbs"
11689
11846
  });
11690
- return /* @__PURE__ */ jsxs49(MenuTrigger2, { children: [
11691
- /* @__PURE__ */ jsx136(Button12, { type: "button", className: `${breadcrumbsItem} ${link}`, children: "..." }),
11692
- /* @__PURE__ */ jsx136(_Popover, { children: /* @__PURE__ */ jsx136(Menu4, { className: container, children: hiddenItems.map((item, index2) => {
11847
+ return /* @__PURE__ */ jsxs51(MenuTrigger2, { children: [
11848
+ /* @__PURE__ */ jsx139(Button12, { type: "button", className: `${breadcrumbsItem} ${link}`, children: "..." }),
11849
+ /* @__PURE__ */ jsx139(_Popover, { children: /* @__PURE__ */ jsx139(Menu4, { className: container, children: hiddenItems.map((item, index2) => {
11693
11850
  if (!React12.isValidElement(item)) return null;
11694
11851
  const { href, children: itemChildren } = item.props;
11695
- return /* @__PURE__ */ jsx136(
11852
+ return /* @__PURE__ */ jsx139(
11696
11853
  MenuItem2,
11697
11854
  {
11698
11855
  className: menuItem,
@@ -11710,15 +11867,15 @@ var BreadcrumbEllipsis = ({
11710
11867
  var BreadcrumbsItem = (_) => null;
11711
11868
 
11712
11869
  // src/Breadcrumbs/Breadcrumbs.tsx
11713
- import { jsx as jsx137, jsxs as jsxs50 } from "react/jsx-runtime";
11714
- var _Breadcrumbs = forwardRef36(
11870
+ import { jsx as jsx140, jsxs as jsxs52 } from "react/jsx-runtime";
11871
+ var _Breadcrumbs = forwardRef37(
11715
11872
  ({ children, variant, size: size2, disabled, maxVisibleItems, ...props }, ref) => {
11716
11873
  const {
11717
11874
  container,
11718
11875
  item: breadcrumbsItem,
11719
11876
  link,
11720
11877
  current
11721
- } = useClassNames74({
11878
+ } = useClassNames75({
11722
11879
  component: "Breadcrumbs",
11723
11880
  variant,
11724
11881
  size: size2
@@ -11727,9 +11884,9 @@ var _Breadcrumbs = forwardRef36(
11727
11884
  const total = items.length;
11728
11885
  const shouldCollapse = typeof maxVisibleItems === "number" && maxVisibleItems >= 2 && total > maxVisibleItems;
11729
11886
  const hiddenItems = shouldCollapse ? items.slice(1, -1) : [];
11730
- const ellipsis = /* @__PURE__ */ jsx137(BreadcrumbsItem, { href: "", children: /* @__PURE__ */ jsx137(BreadcrumbEllipsis, { hiddenItems }) }, "ellipsis");
11887
+ const ellipsis = /* @__PURE__ */ jsx140(BreadcrumbsItem, { href: "", children: /* @__PURE__ */ jsx140(BreadcrumbEllipsis, { hiddenItems }) }, "ellipsis");
11731
11888
  const displayedItems = shouldCollapse ? maxVisibleItems === 2 ? [items[0], ellipsis] : [items[0], ellipsis, items[total - 1]] : items;
11732
- return /* @__PURE__ */ jsx137(
11889
+ return /* @__PURE__ */ jsx140(
11733
11890
  RACBreadcrumbs,
11734
11891
  {
11735
11892
  ...props,
@@ -11740,22 +11897,22 @@ var _Breadcrumbs = forwardRef36(
11740
11897
  if (!React13.isValidElement(item)) return null;
11741
11898
  const isLast = index2 === displayedItems.length - 1;
11742
11899
  const { href, children: itemChildren, ...ariaProps } = item.props;
11743
- return /* @__PURE__ */ jsxs50(
11900
+ return /* @__PURE__ */ jsxs52(
11744
11901
  RACBreadcrumb,
11745
11902
  {
11746
11903
  ...ariaProps,
11747
11904
  className: breadcrumbsItem,
11748
11905
  children: [
11749
- /* @__PURE__ */ jsx137(
11906
+ /* @__PURE__ */ jsx140(
11750
11907
  "a",
11751
11908
  {
11752
11909
  href,
11753
- className: cn73(link, isLast && current),
11910
+ className: cn74(link, isLast && current),
11754
11911
  "aria-current": isLast ? "page" : void 0,
11755
11912
  children: itemChildren
11756
11913
  }
11757
11914
  ),
11758
- !isLast && /* @__PURE__ */ jsx137(
11915
+ !isLast && /* @__PURE__ */ jsx140(
11759
11916
  ChevronRight,
11760
11917
  {
11761
11918
  "aria-hidden": "true",
@@ -11773,6 +11930,20 @@ var _Breadcrumbs = forwardRef36(
11773
11930
  }
11774
11931
  );
11775
11932
  _Breadcrumbs.Item = BreadcrumbsItem;
11933
+
11934
+ // src/utils/form.utils.ts
11935
+ var parseFormData = (e) => {
11936
+ const data = new FormData(e.currentTarget);
11937
+ const result = {};
11938
+ for (const [key, value] of data.entries()) {
11939
+ if (result[key]) {
11940
+ result[key] = Array.isArray(result[key]) ? [...result[key], value] : [result[key], value];
11941
+ } else {
11942
+ result[key] = value;
11943
+ }
11944
+ }
11945
+ return result;
11946
+ };
11776
11947
  export {
11777
11948
  Accordion,
11778
11949
  AccordionItem,
@@ -11791,6 +11962,9 @@ export {
11791
11962
  _CheckboxGroup as CheckboxGroup,
11792
11963
  Columns,
11793
11964
  _ComboBox as ComboBox,
11965
+ ConfirmationContext,
11966
+ ConfirmationDialog,
11967
+ ConfirmationProvider,
11794
11968
  Container,
11795
11969
  _ContextualHelp as ContextualHelp,
11796
11970
  _DateField as DateField,
@@ -11809,6 +11983,7 @@ export {
11809
11983
  Inset,
11810
11984
  _Label as Label,
11811
11985
  _Link as Link,
11986
+ _LinkButton as LinkButton,
11812
11987
  List,
11813
11988
  MarigoldProvider,
11814
11989
  _Menu as Menu,
@@ -11850,8 +12025,10 @@ export {
11850
12025
  _ContextualHelp,
11851
12026
  gridColsAlign,
11852
12027
  gridColumn,
12028
+ parseFormData,
11853
12029
  queue,
11854
12030
  useAsyncList,
12031
+ useConfirmation,
11855
12032
  useListData,
11856
12033
  useTheme,
11857
12034
  useToast