@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.js CHANGED
@@ -212,7 +212,7 @@ var require_react_is_development = __commonJS({
212
212
  var ContextProvider = REACT_PROVIDER_TYPE;
213
213
  var Element2 = REACT_ELEMENT_TYPE;
214
214
  var ForwardRef = REACT_FORWARD_REF_TYPE;
215
- var Fragment12 = REACT_FRAGMENT_TYPE;
215
+ var Fragment13 = REACT_FRAGMENT_TYPE;
216
216
  var Lazy = REACT_LAZY_TYPE;
217
217
  var Memo = REACT_MEMO_TYPE;
218
218
  var Portal = REACT_PORTAL_TYPE;
@@ -271,7 +271,7 @@ var require_react_is_development = __commonJS({
271
271
  exports2.ContextProvider = ContextProvider;
272
272
  exports2.Element = Element2;
273
273
  exports2.ForwardRef = ForwardRef;
274
- exports2.Fragment = Fragment12;
274
+ exports2.Fragment = Fragment13;
275
275
  exports2.Lazy = Lazy;
276
276
  exports2.Memo = Memo;
277
277
  exports2.Portal = Portal;
@@ -870,6 +870,9 @@ __export(index_exports, {
870
870
  CheckboxGroup: () => _CheckboxGroup,
871
871
  Columns: () => Columns,
872
872
  ComboBox: () => _ComboBox,
873
+ ConfirmationContext: () => ConfirmationContext,
874
+ ConfirmationDialog: () => ConfirmationDialog,
875
+ ConfirmationProvider: () => ConfirmationProvider,
873
876
  Container: () => Container,
874
877
  ContextualHelp: () => _ContextualHelp,
875
878
  DateField: () => _DateField,
@@ -882,12 +885,13 @@ __export(index_exports, {
882
885
  Form: () => _Form,
883
886
  Grid: () => Grid,
884
887
  Headline: () => _Headline,
885
- I18nProvider: () => import_i18n8.I18nProvider,
888
+ I18nProvider: () => import_i18n9.I18nProvider,
886
889
  Inline: () => Inline,
887
890
  Input: () => _Input,
888
891
  Inset: () => Inset,
889
892
  Label: () => _Label,
890
893
  Link: () => _Link,
894
+ LinkButton: () => _LinkButton,
891
895
  List: () => List,
892
896
  MarigoldProvider: () => MarigoldProvider,
893
897
  Menu: () => _Menu,
@@ -901,7 +905,7 @@ __export(index_exports, {
901
905
  Popover: () => _Popover,
902
906
  Radio: () => _Radio,
903
907
  RadioGroup: () => _RadioGroup,
904
- RouterProvider: () => import_react_aria_components83.RouterProvider,
908
+ RouterProvider: () => import_react_aria_components84.RouterProvider,
905
909
  Scrollable: () => Scrollable,
906
910
  SearchField: () => _SearchField,
907
911
  SectionMessage: () => SectionMessage,
@@ -917,7 +921,7 @@ __export(index_exports, {
917
921
  Text: () => _Text,
918
922
  TextArea: () => _TextArea,
919
923
  TextField: () => _TextField,
920
- ThemeProvider: () => import_system80.ThemeProvider,
924
+ ThemeProvider: () => import_system81.ThemeProvider,
921
925
  Tiles: () => Tiles,
922
926
  TimeField: () => _TimeField,
923
927
  Toast: () => Toast,
@@ -929,10 +933,12 @@ __export(index_exports, {
929
933
  _ContextualHelp: () => _ContextualHelp,
930
934
  gridColsAlign: () => gridColsAlign,
931
935
  gridColumn: () => gridColumn,
936
+ parseFormData: () => parseFormData,
932
937
  queue: () => queue,
933
938
  useAsyncList: () => import_data.useAsyncList,
939
+ useConfirmation: () => useConfirmation,
934
940
  useListData: () => import_data.useListData,
935
- useTheme: () => import_system80.useTheme,
941
+ useTheme: () => import_system81.useTheme,
936
942
  useToast: () => useToast
937
943
  });
938
944
  module.exports = __toCommonJS(index_exports);
@@ -975,17 +981,20 @@ var ChevronDown = (0, import_react2.forwardRef)(
975
981
  // src/Accordion/AccordionHeader.tsx
976
982
  var import_jsx_runtime2 = require("react/jsx-runtime");
977
983
  var AccordionHeader = ({ children }) => {
978
- const { classNames: classNames3 } = useAccordionContext();
984
+ const { classNames: classNames3, stickyHeader, iconPosition } = useAccordionContext();
979
985
  const { isExpanded } = (0, import_react3.useContext)(import_react_aria_components.DisclosureStateContext);
980
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_aria_components.Heading, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_react_aria_components.Button, { slot: "trigger", className: classNames3.header, children: [
981
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "flex-1", children }),
982
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
983
- ChevronDown,
984
- {
985
- className: (0, import_system3.cn)(classNames3.icon, isExpanded && "rotate-180")
986
- }
987
- )
988
- ] }) });
986
+ const chevronStyles = (0, import_system3.cn)(classNames3.icon, isExpanded && "rotate-180");
987
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
988
+ "div",
989
+ {
990
+ className: stickyHeader ? "bg-background/90 sticky top-0 z-1 backdrop-blur-xs" : void 0,
991
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_aria_components.Heading, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_react_aria_components.Button, { slot: "trigger", className: classNames3.header, children: [
992
+ iconPosition === "left" && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ChevronDown, { className: chevronStyles }),
993
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "flex-1", children }),
994
+ iconPosition === "right" && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ChevronDown, { className: chevronStyles })
995
+ ] }) })
996
+ }
997
+ );
989
998
  };
990
999
 
991
1000
  // src/Accordion/AccordionItem.tsx
@@ -1025,18 +1034,26 @@ var Accordion = ({
1025
1034
  disabled,
1026
1035
  variant,
1027
1036
  size: size2,
1037
+ stickyHeader = false,
1038
+ iconPosition = "right",
1028
1039
  ...props
1029
1040
  }) => {
1030
1041
  const classNames3 = (0, import_system4.useClassNames)({ component: "Accordion", variant, size: size2 });
1031
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(AccordionProvider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1032
- import_react_aria_components4.DisclosureGroup,
1042
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1043
+ AccordionProvider,
1033
1044
  {
1034
- ...props,
1035
- isDisabled: disabled,
1036
- className: classNames3.container,
1037
- children
1045
+ value: { classNames: classNames3, stickyHeader, iconPosition },
1046
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1047
+ import_react_aria_components4.DisclosureGroup,
1048
+ {
1049
+ ...props,
1050
+ isDisabled: disabled,
1051
+ className: classNames3.container,
1052
+ children
1053
+ }
1054
+ )
1038
1055
  }
1039
- ) });
1056
+ );
1040
1057
  };
1041
1058
  Accordion.Header = AccordionHeader;
1042
1059
  Accordion.Content = AccordionPanel;
@@ -1613,6 +1630,7 @@ var _Popover = (0, import_react11.forwardRef)(
1613
1630
  // src/intl/messages.ts
1614
1631
  var intlMessages2 = {
1615
1632
  "de-DE": {
1633
+ cancel: "Abbrechen",
1616
1634
  loadingMessage: "Lade...",
1617
1635
  noResultsFound: "Kein Ergebnis gefunden",
1618
1636
  removeAll: "Alle entfernen",
@@ -1622,6 +1640,7 @@ var intlMessages2 = {
1622
1640
  showLessCount: "{count} weniger anzeigen"
1623
1641
  },
1624
1642
  "en-US": {
1643
+ cancel: "Cancel",
1625
1644
  loadingMessage: "Loading...",
1626
1645
  noResultsFound: "No result found",
1627
1646
  removeAll: "Remove all",
@@ -1865,7 +1884,6 @@ var _Button = (0, import_react18.forwardRef)(
1865
1884
  ...props,
1866
1885
  ref,
1867
1886
  className: (0, import_system26.cn)(
1868
- "inline-flex items-center justify-center gap-[0.5ch]",
1869
1887
  classNames3,
1870
1888
  fullWidth ? "w-full" : void 0,
1871
1889
  loading && "cursor-progress!"
@@ -2467,6 +2485,10 @@ var _ContextualHelp = (0, import_react26.forwardRef)(
2467
2485
  _ContextualHelp.Title = ContextualHelpTitle;
2468
2486
  _ContextualHelp.Content = ContextualHelpContent;
2469
2487
 
2488
+ // src/Dialog/ConfirmationDialog.tsx
2489
+ var import_i18n5 = require("@react-aria/i18n");
2490
+ var import_utils3 = require("@react-aria/utils");
2491
+
2470
2492
  // src/Dialog/Dialog.tsx
2471
2493
  var import_react32 = require("react");
2472
2494
  var import_react_aria_components31 = require("react-aria-components");
@@ -2495,13 +2517,15 @@ var import_react_aria_components27 = require("react-aria-components");
2495
2517
  var import_system39 = require("@marigold/system");
2496
2518
  var import_jsx_runtime44 = require("react/jsx-runtime");
2497
2519
  var _Modal = (0, import_react28.forwardRef)(
2498
- ({ size: size2, open, dismissable, keyboardDismissable, onOpenChange, ...rest }, ref) => {
2499
- const props = {
2500
- isOpen: open,
2501
- isDismissable: dismissable,
2502
- isKeyboardDismissDisabled: keyboardDismissable,
2503
- ...rest
2504
- };
2520
+ ({
2521
+ size: size2,
2522
+ open,
2523
+ dismissable,
2524
+ keyboardDismissable,
2525
+ onOpenChange,
2526
+ children,
2527
+ ...props
2528
+ }, ref) => {
2505
2529
  const className = (0, import_system39.useClassNames)({ component: "Modal", size: size2 });
2506
2530
  return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2507
2531
  Underlay,
@@ -2510,7 +2534,7 @@ var _Modal = (0, import_react28.forwardRef)(
2510
2534
  keyboardDismissable,
2511
2535
  open,
2512
2536
  onOpenChange,
2513
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_aria_components27.Modal, { ...props, className, ref, children: props.children })
2537
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_aria_components27.Modal, { ...props, className, ref, children })
2514
2538
  }
2515
2539
  );
2516
2540
  }
@@ -2661,6 +2685,10 @@ var NonModal = (0, import_react30.forwardRef)(
2661
2685
  }
2662
2686
  );
2663
2687
 
2688
+ // src/Dialog/Context.tsx
2689
+ var import_react31 = require("react");
2690
+ var DialogContext = (0, import_react31.createContext)({});
2691
+
2664
2692
  // src/Dialog/DialogActions.tsx
2665
2693
  var import_system40 = require("@marigold/system");
2666
2694
  var import_jsx_runtime46 = require("react/jsx-runtime");
@@ -2695,72 +2723,77 @@ var DialogTitle = ({ variant, size: size2, children }) => {
2695
2723
  };
2696
2724
 
2697
2725
  // src/Dialog/DialogTrigger.tsx
2698
- var import_react31 = require("react");
2699
2726
  var import_react_aria_components30 = require("react-aria-components");
2700
2727
  var import_interactions = require("@react-aria/interactions");
2701
2728
  var import_jsx_runtime49 = require("react/jsx-runtime");
2702
- var DialogContext = (0, import_react31.createContext)({});
2703
2729
  var _DialogTrigger = ({
2704
2730
  open,
2705
2731
  dismissable,
2706
2732
  keyboardDismissable,
2707
2733
  ...rest
2708
2734
  }) => {
2735
+ const ctx = {
2736
+ isDismissable: dismissable,
2737
+ isKeyboardDismissDisabled: !keyboardDismissable
2738
+ };
2709
2739
  const props = {
2710
2740
  isOpen: open,
2711
- isDismissable: dismissable,
2712
- isKeyboardDismissDisabled: !keyboardDismissable,
2713
2741
  ...rest
2714
2742
  };
2715
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(DialogContext.Provider, { value: props, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react_aria_components30.DialogTrigger, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_interactions.PressResponder, { isPressed: false, children: props.children }) }) });
2743
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(DialogContext.Provider, { value: ctx, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react_aria_components30.DialogTrigger, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_interactions.PressResponder, { isPressed: false, children: props.children }) }) });
2716
2744
  };
2717
2745
 
2718
2746
  // src/Dialog/Dialog.tsx
2719
2747
  var import_jsx_runtime50 = require("react/jsx-runtime");
2720
- var _Dialog = (0, import_react32.forwardRef)(
2721
- ({ variant, size: size2, ...props }, ref) => {
2748
+ var InnerDialog = (0, import_react32.forwardRef)(
2749
+ ({ variant, size: size2, closeButton, ...props }, ref) => {
2722
2750
  var _a;
2751
+ const state = (0, import_react32.useContext)(import_react_aria_components31.OverlayTriggerStateContext);
2723
2752
  const classNames3 = (0, import_system43.useClassNames)({
2724
2753
  component: "Dialog",
2725
2754
  variant,
2726
2755
  size: size2
2727
2756
  });
2728
- const { isDismissable, isKeyboardDismissDisabled, isOpen, onOpenChange } = (0, import_react32.useContext)(DialogContext);
2729
- const state = (0, import_react32.useContext)(import_react_aria_components31.OverlayTriggerStateContext);
2730
2757
  const children = typeof props.children === "function" ? props.children({
2731
2758
  close: (_a = state == null ? void 0 : state.close) != null ? _a : (() => {
2732
2759
  })
2733
2760
  }) : props.children;
2761
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
2762
+ import_react_aria_components31.Dialog,
2763
+ {
2764
+ ...props,
2765
+ ref,
2766
+ className: (0, import_system43.cn)(
2767
+ "relative mx-auto outline-hidden",
2768
+ "grid [grid-template-areas:'title'_'content'_'actions']",
2769
+ classNames3.container
2770
+ ),
2771
+ children: [
2772
+ closeButton && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2773
+ CloseButton,
2774
+ {
2775
+ className: classNames3.closeButton,
2776
+ onPress: state == null ? void 0 : state.close
2777
+ }
2778
+ ),
2779
+ children
2780
+ ]
2781
+ }
2782
+ );
2783
+ }
2784
+ );
2785
+ var _Dialog = (0, import_react32.forwardRef)(
2786
+ ({ open, onOpenChange, children, ...props }, ref) => {
2787
+ const ctx = (0, import_react32.useContext)(DialogContext);
2734
2788
  return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2735
2789
  _Modal,
2736
2790
  {
2737
- dismissable: isDismissable,
2738
- keyboardDismissable: isKeyboardDismissDisabled,
2739
- open: isOpen,
2740
- size: size2,
2791
+ size: props.size,
2792
+ dismissable: ctx.isDismissable,
2793
+ keyboardDismissable: ctx.isKeyboardDismissDisabled,
2794
+ open: typeof open === "boolean" ? open : void 0,
2741
2795
  onOpenChange,
2742
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
2743
- import_react_aria_components31.Dialog,
2744
- {
2745
- ...props,
2746
- ref,
2747
- className: (0, import_system43.cn)(
2748
- "relative mx-auto outline-hidden [&>*:not(:last-child)]:mb-4",
2749
- "grid [grid-template-areas:'title'_'content'_'actions']",
2750
- classNames3.container
2751
- ),
2752
- children: [
2753
- props.closeButton && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2754
- CloseButton,
2755
- {
2756
- className: classNames3.closeButton,
2757
- onPress: state == null ? void 0 : state.close
2758
- }
2759
- ),
2760
- children
2761
- ]
2762
- }
2763
- )
2796
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(InnerDialog, { ref, ...props, children })
2764
2797
  }
2765
2798
  );
2766
2799
  }
@@ -2770,32 +2803,128 @@ _Dialog.Title = DialogTitle;
2770
2803
  _Dialog.Content = DialogContent;
2771
2804
  _Dialog.Actions = DialogActions;
2772
2805
 
2806
+ // src/Dialog/ConfirmationDialog.tsx
2807
+ var import_jsx_runtime51 = require("react/jsx-runtime");
2808
+ var ConfirmationDialog = ({
2809
+ title,
2810
+ confirmationLabel,
2811
+ cancelLabel,
2812
+ onCancel,
2813
+ onConfirm,
2814
+ autoFocusButton,
2815
+ children,
2816
+ variant,
2817
+ size: size2 = "xsmall",
2818
+ ...props
2819
+ }) => {
2820
+ const stringFormatter = (0, import_i18n5.useLocalizedStringFormatter)(intlMessages2, "marigold");
2821
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(_Dialog, { role: "alertdialog", variant, size: size2, ...props, children: ({ close }) => /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
2822
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(_Dialog.Title, { children: title }),
2823
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(_Dialog.Content, { children }),
2824
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(_Dialog.Actions, { children: [
2825
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2826
+ _Button,
2827
+ {
2828
+ onPress: () => (0, import_utils3.chain)(close(), onCancel == null ? void 0 : onCancel()),
2829
+ autoFocus: autoFocusButton === "cancel",
2830
+ children: cancelLabel != null ? cancelLabel : stringFormatter.format("cancel")
2831
+ }
2832
+ ),
2833
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2834
+ _Button,
2835
+ {
2836
+ variant: variant === "destructive" ? "destructive" : "primary",
2837
+ onPress: () => (0, import_utils3.chain)(close(), onConfirm == null ? void 0 : onConfirm()),
2838
+ autoFocus: autoFocusButton === "action",
2839
+ children: confirmationLabel
2840
+ }
2841
+ )
2842
+ ] })
2843
+ ] }) });
2844
+ };
2845
+ ConfirmationDialog.Trigger = _Dialog.Trigger;
2846
+
2847
+ // src/Dialog/useConfirmation.tsx
2848
+ var import_react33 = require("react");
2849
+ var import_react34 = require("react");
2850
+ var import_jsx_runtime52 = require("react/jsx-runtime");
2851
+ var ConfirmationContext = (0, import_react34.createContext)(null);
2852
+ var ConfirmationProvider = ({ children }) => {
2853
+ const [confirmation, setConfirmation] = (0, import_react34.useState)(
2854
+ null
2855
+ );
2856
+ const [open, setOpen] = (0, import_react34.useState)(false);
2857
+ const confirm = (config) => {
2858
+ if (open) {
2859
+ console.warn(
2860
+ "A confirmation dialog is already open. Rejecting new request."
2861
+ );
2862
+ return Promise.resolve("cancelled");
2863
+ }
2864
+ return new Promise((resolve) => {
2865
+ setConfirmation({ ...config, resolve });
2866
+ setOpen(true);
2867
+ });
2868
+ };
2869
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(ConfirmationContext.Provider, { value: confirm, children: [
2870
+ children,
2871
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2872
+ ConfirmationDialog,
2873
+ {
2874
+ open,
2875
+ onOpenChange: setOpen,
2876
+ variant: confirmation == null ? void 0 : confirmation.variant,
2877
+ size: "xsmall",
2878
+ title: (confirmation == null ? void 0 : confirmation.title) || "",
2879
+ confirmationLabel: (confirmation == null ? void 0 : confirmation.confirmationLabel) || "Confirm",
2880
+ cancelLabel: confirmation == null ? void 0 : confirmation.cancelLabel,
2881
+ onConfirm: () => {
2882
+ confirmation == null ? void 0 : confirmation.resolve("confirmed");
2883
+ },
2884
+ onCancel: () => {
2885
+ confirmation == null ? void 0 : confirmation.resolve("cancelled");
2886
+ },
2887
+ children: confirmation == null ? void 0 : confirmation.content
2888
+ }
2889
+ )
2890
+ ] });
2891
+ };
2892
+ var useConfirmation = () => {
2893
+ const confirm = (0, import_react33.useContext)(ConfirmationContext);
2894
+ if (confirm === null) {
2895
+ throw new Error(
2896
+ "`useConfirmation` must be used within a `ConfirmationProvider`"
2897
+ );
2898
+ }
2899
+ return confirm;
2900
+ };
2901
+
2773
2902
  // src/Divider/Divider.tsx
2774
2903
  var import_react_aria_components32 = require("react-aria-components");
2775
2904
  var import_system44 = require("@marigold/system");
2776
- var import_jsx_runtime51 = require("react/jsx-runtime");
2905
+ var import_jsx_runtime53 = require("react/jsx-runtime");
2777
2906
  var _Divider = ({ variant, ...props }) => {
2778
2907
  const classNames3 = (0, import_system44.useClassNames)({ component: "Divider", variant });
2779
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react_aria_components32.Separator, { className: (0, import_system44.cn)("border-none", classNames3), ...props });
2908
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_aria_components32.Separator, { className: (0, import_system44.cn)("border-none", classNames3), ...props });
2780
2909
  };
2781
2910
 
2782
2911
  // src/Drawer/Drawer.tsx
2783
- var import_react34 = require("react");
2912
+ var import_react36 = require("react");
2784
2913
  var import_react_aria_components36 = require("react-aria-components");
2785
2914
  var import_landmark = require("@react-aria/landmark");
2786
2915
  var import_system49 = require("@marigold/system");
2787
2916
 
2788
2917
  // src/Drawer/Context.tsx
2789
- var import_react33 = require("react");
2790
- var DrawerContext = (0, import_react33.createContext)({
2918
+ var import_react35 = require("react");
2919
+ var DrawerContext = (0, import_react35.createContext)({
2791
2920
  variant: void 0,
2792
2921
  size: void 0
2793
2922
  });
2794
- var useDrawerContext = () => (0, import_react33.useContext)(DrawerContext);
2923
+ var useDrawerContext = () => (0, import_react35.useContext)(DrawerContext);
2795
2924
 
2796
2925
  // src/Drawer/DrawerActions.tsx
2797
2926
  var import_system45 = require("@marigold/system");
2798
- var import_jsx_runtime52 = require("react/jsx-runtime");
2927
+ var import_jsx_runtime54 = require("react/jsx-runtime");
2799
2928
  var DrawerActions = ({ variant, size: size2, children }) => {
2800
2929
  const ctx = useDrawerContext();
2801
2930
  const classNames3 = (0, import_system45.useClassNames)({
@@ -2803,7 +2932,7 @@ var DrawerActions = ({ variant, size: size2, children }) => {
2803
2932
  variant: variant != null ? variant : ctx.variant,
2804
2933
  size: size2 != null ? size2 : ctx.size
2805
2934
  });
2806
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2935
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2807
2936
  "div",
2808
2937
  {
2809
2938
  className: (0, import_system45.cn)("[grid-area:actions]", classNames3.actions),
@@ -2815,7 +2944,7 @@ var DrawerActions = ({ variant, size: size2, children }) => {
2815
2944
 
2816
2945
  // src/Drawer/DrawerContent.tsx
2817
2946
  var import_system46 = require("@marigold/system");
2818
- var import_jsx_runtime53 = require("react/jsx-runtime");
2947
+ var import_jsx_runtime55 = require("react/jsx-runtime");
2819
2948
  var DrawerContent = ({
2820
2949
  variant,
2821
2950
  size: size2,
@@ -2827,7 +2956,7 @@ var DrawerContent = ({
2827
2956
  variant: variant != null ? variant : ctx.variant,
2828
2957
  size: size2 != null ? size2 : ctx.size
2829
2958
  });
2830
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2959
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
2831
2960
  "div",
2832
2961
  {
2833
2962
  className: (0, import_system46.cn)("[grid-area:content]", classNames3.content),
@@ -2840,13 +2969,13 @@ var DrawerContent = ({
2840
2969
  // src/Drawer/DrawerModal.tsx
2841
2970
  var import_react_aria_components33 = require("react-aria-components");
2842
2971
  var import_system47 = require("@marigold/system");
2843
- var import_jsx_runtime54 = require("react/jsx-runtime");
2844
- var MobileModal = ({ children, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2972
+ var import_jsx_runtime56 = require("react/jsx-runtime");
2973
+ var MobileModal = ({ children, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
2845
2974
  import_react_aria_components33.ModalOverlay,
2846
2975
  {
2847
2976
  ...props,
2848
2977
  className: "fixed inset-0 z-40 h-(--visual-viewport-height)",
2849
- children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react_aria_components33.Modal, { className: "flex *:flex-1", children })
2978
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react_aria_components33.Modal, { className: "flex *:flex-1", children })
2850
2979
  }
2851
2980
  );
2852
2981
  var DrawerModal = ({
@@ -2855,13 +2984,13 @@ var DrawerModal = ({
2855
2984
  ...props
2856
2985
  }) => {
2857
2986
  const isSmallScreen = (0, import_system47.useSmallScreen)();
2858
- return isSmallScreen ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(MobileModal, { children }) : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(NonModal, { ...props, className: (0, import_system47.cn)("fixed", className), children });
2987
+ return isSmallScreen ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(MobileModal, { children }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(NonModal, { ...props, className: (0, import_system47.cn)("fixed", className), children });
2859
2988
  };
2860
2989
 
2861
2990
  // src/Drawer/DrawerTitle.tsx
2862
2991
  var import_react_aria_components34 = require("react-aria-components");
2863
2992
  var import_system48 = require("@marigold/system");
2864
- var import_jsx_runtime55 = require("react/jsx-runtime");
2993
+ var import_jsx_runtime57 = require("react/jsx-runtime");
2865
2994
  var DrawerTitle = ({ variant, size: size2, children }) => {
2866
2995
  const classNames3 = (0, import_system48.useClassNames)({
2867
2996
  component: "Drawer",
@@ -2869,27 +2998,27 @@ var DrawerTitle = ({ variant, size: size2, children }) => {
2869
2998
  variant,
2870
2999
  context: DrawerContext
2871
3000
  });
2872
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
3001
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2873
3002
  import_react_aria_components34.Header,
2874
3003
  {
2875
3004
  className: (0, import_system48.cn)("[grid-area:title]", classNames3.header),
2876
3005
  style: { "--i": 0 },
2877
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react_aria_components34.Heading, { slot: "title", level: 2, className: classNames3.title, children })
3006
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react_aria_components34.Heading, { slot: "title", level: 2, className: classNames3.title, children })
2878
3007
  }
2879
3008
  );
2880
3009
  };
2881
3010
 
2882
3011
  // src/Drawer/DrawerTrigger.tsx
2883
3012
  var import_react_aria_components35 = require("react-aria-components");
2884
- var import_jsx_runtime56 = require("react/jsx-runtime");
3013
+ var import_jsx_runtime58 = require("react/jsx-runtime");
2885
3014
  var DrawerTrigger = ({
2886
3015
  open,
2887
3016
  children,
2888
3017
  ...props
2889
- }) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react_aria_components35.DialogTrigger, { isOpen: open, ...props, children });
3018
+ }) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react_aria_components35.DialogTrigger, { isOpen: open, ...props, children });
2890
3019
 
2891
3020
  // src/Drawer/Drawer.tsx
2892
- var import_jsx_runtime57 = require("react/jsx-runtime");
3021
+ var import_jsx_runtime59 = require("react/jsx-runtime");
2893
3022
  var Drawer = ({
2894
3023
  children,
2895
3024
  size: size2 = "medium",
@@ -2901,17 +3030,17 @@ var Drawer = ({
2901
3030
  placement = "right",
2902
3031
  ...props
2903
3032
  }) => {
2904
- const ref = (0, import_react34.useRef)(null);
3033
+ const ref = (0, import_react36.useRef)(null);
2905
3034
  const classNames3 = (0, import_system49.useClassNames)({
2906
3035
  component: "Drawer",
2907
3036
  variant,
2908
3037
  size: size2
2909
3038
  });
2910
- const ctx = (0, import_react34.useContext)(import_react_aria_components36.OverlayTriggerStateContext);
3039
+ const ctx = (0, import_react36.useContext)(import_react_aria_components36.OverlayTriggerStateContext);
2911
3040
  const isSmallScreen = (0, import_system49.useSmallScreen)();
2912
3041
  const landmarkAria = (0, import_landmark.useLandmark)({ ...props, role }, ref);
2913
3042
  const landmarkProps = isSmallScreen ? {} : landmarkAria.landmarkProps;
2914
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
3043
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2915
3044
  DrawerModal,
2916
3045
  {
2917
3046
  className: classNames3.overlay,
@@ -2919,7 +3048,7 @@ var Drawer = ({
2919
3048
  keyboardDismissable,
2920
3049
  "data-testid": "drawer-modal",
2921
3050
  "data-placement": placement,
2922
- children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(DrawerContext.Provider, { value: { variant, size: size2 }, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
3051
+ children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(DrawerContext.Provider, { value: { variant, size: size2 }, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
2923
3052
  import_react_aria_components36.Dialog,
2924
3053
  {
2925
3054
  ...props,
@@ -2931,7 +3060,7 @@ var Drawer = ({
2931
3060
  ),
2932
3061
  "data-placement": placement,
2933
3062
  children: [
2934
- closeButton && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
3063
+ closeButton && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2935
3064
  CloseButton,
2936
3065
  {
2937
3066
  "aria-label": "dismiss drawer",
@@ -2955,8 +3084,8 @@ Drawer.Actions = DrawerActions;
2955
3084
  // src/Form/Form.tsx
2956
3085
  var import_react_aria_components37 = require("react-aria-components");
2957
3086
  var import_system50 = require("@marigold/system");
2958
- var import_jsx_runtime58 = require("react/jsx-runtime");
2959
- var _Form = ({ unstyled, maxWidth = "full", ...props }) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
3087
+ var import_jsx_runtime60 = require("react/jsx-runtime");
3088
+ var _Form = ({ unstyled, maxWidth = "full", ...props }) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2960
3089
  import_react_aria_components37.Form,
2961
3090
  {
2962
3091
  ...props,
@@ -2968,11 +3097,11 @@ var _Form = ({ unstyled, maxWidth = "full", ...props }) => /* @__PURE__ */ (0, i
2968
3097
  var import_system51 = require("@marigold/system");
2969
3098
 
2970
3099
  // src/Grid/GridArea.tsx
2971
- var import_jsx_runtime59 = require("react/jsx-runtime");
2972
- var GridArea = ({ name, children }) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { style: { gridArea: name }, children });
3100
+ var import_jsx_runtime61 = require("react/jsx-runtime");
3101
+ var GridArea = ({ name, children }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { style: { gridArea: name }, children });
2973
3102
 
2974
3103
  // src/Grid/Grid.tsx
2975
- var import_jsx_runtime60 = require("react/jsx-runtime");
3104
+ var import_jsx_runtime62 = require("react/jsx-runtime");
2976
3105
  var parseGridAreas = (areas) => areas.map((area) => `"${area}"`).join("\n");
2977
3106
  var parseTemplateValue = (values) => values.map((val) => typeof val === "number" ? `${val}fr` : val).join(" ");
2978
3107
  var Grid = ({
@@ -2987,7 +3116,7 @@ var Grid = ({
2987
3116
  ...props
2988
3117
  }) => {
2989
3118
  var _a, _b, _c, _d;
2990
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3119
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2991
3120
  "div",
2992
3121
  {
2993
3122
  className: (0, import_system51.cn)(
@@ -3012,7 +3141,7 @@ Grid.Area = GridArea;
3012
3141
  // src/Headline/Headline.tsx
3013
3142
  var import_react_aria_components38 = require("react-aria-components");
3014
3143
  var import_system52 = require("@marigold/system");
3015
- var import_jsx_runtime61 = require("react/jsx-runtime");
3144
+ var import_jsx_runtime63 = require("react/jsx-runtime");
3016
3145
  var _Headline = ({
3017
3146
  variant,
3018
3147
  size: size2,
@@ -3027,7 +3156,7 @@ var _Headline = ({
3027
3156
  variant,
3028
3157
  size: size2 != null ? size2 : `level-${level}`
3029
3158
  });
3030
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3159
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3031
3160
  import_react_aria_components38.Heading,
3032
3161
  {
3033
3162
  level: Number(level),
@@ -3046,25 +3175,31 @@ var _Headline = ({
3046
3175
 
3047
3176
  // src/Inline/Inline.tsx
3048
3177
  var import_system53 = require("@marigold/system");
3049
- var import_jsx_runtime62 = require("react/jsx-runtime");
3178
+ var import_jsx_runtime64 = require("react/jsx-runtime");
3179
+ var inlineAlignmentY = {
3180
+ ...import_system53.alignment.horizontal.alignmentY,
3181
+ input: "items-end [&:has([slot=description])]:items-end [&:has([slot=description])_button]:mb-6 [&:has([slot=errorMessage])]:mb-6"
3182
+ };
3050
3183
  var Inline = ({
3051
3184
  space = 0,
3185
+ noWrap,
3052
3186
  alignX,
3053
3187
  alignY,
3054
3188
  children,
3055
3189
  ...props
3056
3190
  }) => {
3057
- var _a, _b, _c, _d;
3058
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3191
+ var _a, _b;
3192
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3059
3193
  "div",
3060
3194
  {
3061
3195
  ...props,
3062
3196
  className: (0, import_system53.cn)(
3063
- "flex flex-wrap",
3197
+ "flex",
3198
+ !noWrap && "flex-wrap",
3199
+ // flexbox defaults to no-wrap
3064
3200
  import_system53.gapSpace[space],
3065
3201
  alignX && ((_b = (_a = import_system53.alignment) == null ? void 0 : _a.horizontal) == null ? void 0 : _b.alignmentX[alignX]),
3066
- alignY === "input" && "items-end [&:has([slot=description])]:items-end [&:has([slot=description])_button]:mb-6 [&:has([slot=errorMessage])]:mb-6",
3067
- alignY && alignY !== "input" && ((_d = (_c = import_system53.alignment) == null ? void 0 : _c.horizontal) == null ? void 0 : _d.alignmentY[alignY])
3202
+ alignY && inlineAlignmentY[alignY]
3068
3203
  ),
3069
3204
  children
3070
3205
  }
@@ -3072,7 +3207,7 @@ var Inline = ({
3072
3207
  };
3073
3208
 
3074
3209
  // src/DateField/DateField.tsx
3075
- var import_react35 = require("react");
3210
+ var import_react37 = require("react");
3076
3211
  var import_react_aria_components41 = require("react-aria-components");
3077
3212
 
3078
3213
  // src/DateField/DateInput.tsx
@@ -3082,9 +3217,9 @@ var import_system55 = require("@marigold/system");
3082
3217
  // src/DateField/DateSegment.tsx
3083
3218
  var import_react_aria_components39 = require("react-aria-components");
3084
3219
  var import_system54 = require("@marigold/system");
3085
- var import_jsx_runtime63 = require("react/jsx-runtime");
3220
+ var import_jsx_runtime65 = require("react/jsx-runtime");
3086
3221
  var _DateSegment = ({ segment, ...props }) => {
3087
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3222
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3088
3223
  import_react_aria_components39.DateSegment,
3089
3224
  {
3090
3225
  ...props,
@@ -3092,8 +3227,8 @@ var _DateSegment = ({ segment, ...props }) => {
3092
3227
  style: {
3093
3228
  minWidth: segment.maxValue != null ? `${String(segment.maxValue).length}ch` : void 0
3094
3229
  },
3095
- children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
3096
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3230
+ children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
3231
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3097
3232
  "span",
3098
3233
  {
3099
3234
  "aria-hidden": "true",
@@ -3104,25 +3239,25 @@ var _DateSegment = ({ segment, ...props }) => {
3104
3239
  children: isPlaceholder && (placeholder == null ? void 0 : placeholder.toUpperCase())
3105
3240
  }
3106
3241
  ),
3107
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { children: isPlaceholder ? "" : segment.type === "month" || segment.type === "day" ? segment.text.padStart(2, "0") : text })
3242
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { children: isPlaceholder ? "" : segment.type === "month" || segment.type === "day" ? segment.text.padStart(2, "0") : text })
3108
3243
  ] })
3109
3244
  }
3110
3245
  );
3111
3246
  };
3112
3247
 
3113
3248
  // src/DateField/DateInput.tsx
3114
- var import_jsx_runtime64 = require("react/jsx-runtime");
3249
+ var import_jsx_runtime66 = require("react/jsx-runtime");
3115
3250
  var _DateInput = ({ variant, size: size2, action, ...props }) => {
3116
3251
  const classNames3 = (0, import_system55.useClassNames)({ component: "DateField", variant, size: size2 });
3117
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_react_aria_components40.Group, { className: classNames3.field, children: [
3118
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react_aria_components40.DateInput, { className: "flex flex-1 items-center", ...props, children: (segment) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(_DateSegment, { className: classNames3.segment, segment }) }),
3252
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_react_aria_components40.Group, { className: classNames3.field, children: [
3253
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react_aria_components40.DateInput, { className: "flex flex-1 items-center", ...props, children: (segment) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(_DateSegment, { className: classNames3.segment, segment }) }),
3119
3254
  action ? action : null
3120
3255
  ] });
3121
3256
  };
3122
3257
 
3123
3258
  // src/DateField/DateField.tsx
3124
- var import_jsx_runtime65 = require("react/jsx-runtime");
3125
- var _DateField = (0, import_react35.forwardRef)(
3259
+ var import_jsx_runtime67 = require("react/jsx-runtime");
3260
+ var _DateField = (0, import_react37.forwardRef)(
3126
3261
  ({
3127
3262
  variant,
3128
3263
  size: size2,
@@ -3140,7 +3275,7 @@ var _DateField = (0, import_react35.forwardRef)(
3140
3275
  isRequired: required,
3141
3276
  ...rest
3142
3277
  };
3143
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3278
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3144
3279
  FieldBase,
3145
3280
  {
3146
3281
  as: import_react_aria_components41.DateField,
@@ -3148,14 +3283,14 @@ var _DateField = (0, import_react35.forwardRef)(
3148
3283
  size: size2,
3149
3284
  ref,
3150
3285
  ...props,
3151
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(_DateInput, { action })
3286
+ children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(_DateInput, { action })
3152
3287
  }
3153
3288
  );
3154
3289
  }
3155
3290
  );
3156
3291
 
3157
3292
  // src/Calendar/Calendar.tsx
3158
- var import_react41 = require("react");
3293
+ var import_react43 = require("react");
3159
3294
  var import_react_aria_components48 = require("react-aria-components");
3160
3295
  var import_system61 = require("@marigold/system");
3161
3296
 
@@ -3165,21 +3300,21 @@ var import_system57 = require("@marigold/system");
3165
3300
 
3166
3301
  // src/Calendar/CalendarGridHeader.tsx
3167
3302
  var import_date = require("@internationalized/date");
3168
- var import_react36 = require("react");
3303
+ var import_react38 = require("react");
3169
3304
  var import_react_aria_components42 = require("react-aria-components");
3170
3305
  var import_calendar = require("@react-aria/calendar");
3171
- var import_i18n5 = require("@react-aria/i18n");
3306
+ var import_i18n6 = require("@react-aria/i18n");
3172
3307
  var import_system56 = require("@marigold/system");
3173
- var import_jsx_runtime66 = require("react/jsx-runtime");
3308
+ var import_jsx_runtime68 = require("react/jsx-runtime");
3174
3309
  function CalendarGridHeader(props) {
3175
- const state = (0, import_react36.useContext)(import_react_aria_components42.CalendarStateContext);
3310
+ const state = (0, import_react38.useContext)(import_react_aria_components42.CalendarStateContext);
3176
3311
  const { headerProps } = (0, import_calendar.useCalendarGrid)(props, state);
3177
- const { locale } = (0, import_i18n5.useLocale)();
3178
- const dayFormatter = (0, import_i18n5.useDateFormatter)({
3312
+ const { locale } = (0, import_i18n6.useLocale)();
3313
+ const dayFormatter = (0, import_i18n6.useDateFormatter)({
3179
3314
  weekday: "short",
3180
3315
  timeZone: state.timeZone
3181
3316
  });
3182
- const weekDays = (0, import_react36.useMemo)(() => {
3317
+ const weekDays = (0, import_react38.useMemo)(() => {
3183
3318
  const weekStart = (0, import_date.startOfWeek)((0, import_date.today)(state.timeZone), locale);
3184
3319
  return [...new Array(7).keys()].map((index2) => {
3185
3320
  const date = weekStart.add({ days: index2 });
@@ -3188,16 +3323,16 @@ function CalendarGridHeader(props) {
3188
3323
  });
3189
3324
  }, [locale, state.timeZone, dayFormatter]);
3190
3325
  const classNames3 = (0, import_system56.useClassNames)({ component: "Calendar" });
3191
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("thead", { ...headerProps, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("tr", { children: weekDays.map((day, index2) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("th", { className: classNames3.calendarHeader, children: day.substring(0, 2) }, index2)) }) });
3326
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("thead", { ...headerProps, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("tr", { children: weekDays.map((day, index2) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("th", { className: classNames3.calendarHeader, children: day.substring(0, 2) }, index2)) }) });
3192
3327
  }
3193
3328
 
3194
3329
  // src/Calendar/CalendarGrid.tsx
3195
- var import_jsx_runtime67 = require("react/jsx-runtime");
3330
+ var import_jsx_runtime69 = require("react/jsx-runtime");
3196
3331
  var _CalendarGrid = () => {
3197
3332
  const classNames3 = (0, import_system57.useClassNames)({ component: "Calendar" });
3198
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_react_aria_components43.CalendarGrid, { className: classNames3.calendarGrid, children: [
3199
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(CalendarGridHeader, {}),
3200
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react_aria_components43.CalendarGridBody, { children: (date) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3333
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_react_aria_components43.CalendarGrid, { className: classNames3.calendarGrid, children: [
3334
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(CalendarGridHeader, {}),
3335
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react_aria_components43.CalendarGridBody, { children: (date) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3201
3336
  import_react_aria_components43.CalendarCell,
3202
3337
  {
3203
3338
  date,
@@ -3211,20 +3346,20 @@ var _CalendarGrid = () => {
3211
3346
  };
3212
3347
 
3213
3348
  // src/Calendar/CalendarListBox.tsx
3214
- var import_react38 = require("react");
3349
+ var import_react40 = require("react");
3215
3350
  var import_react_aria_components44 = require("react-aria-components");
3216
3351
  var import_system58 = require("@marigold/system");
3217
3352
 
3218
3353
  // src/Calendar/Context.tsx
3219
- var import_react37 = require("react");
3220
- var CalendarContext = (0, import_react37.createContext)({});
3221
- var useCalendarContext = () => (0, import_react37.useContext)(CalendarContext);
3354
+ var import_react39 = require("react");
3355
+ var CalendarContext = (0, import_react39.createContext)({});
3356
+ var useCalendarContext = () => (0, import_react39.useContext)(CalendarContext);
3222
3357
 
3223
3358
  // src/Calendar/useFormattedMonths.tsx
3224
- var import_i18n6 = require("@react-aria/i18n");
3359
+ var import_i18n7 = require("@react-aria/i18n");
3225
3360
  function useFormattedMonths(timeZone, focusedDate) {
3226
3361
  let months = [];
3227
- let formatter = (0, import_i18n6.useDateFormatter)({
3362
+ let formatter = (0, import_i18n7.useDateFormatter)({
3228
3363
  month: "long",
3229
3364
  timeZone
3230
3365
  });
@@ -3237,17 +3372,17 @@ function useFormattedMonths(timeZone, focusedDate) {
3237
3372
  }
3238
3373
 
3239
3374
  // src/Calendar/CalendarListBox.tsx
3240
- var import_jsx_runtime68 = require("react/jsx-runtime");
3375
+ var import_jsx_runtime70 = require("react/jsx-runtime");
3241
3376
  function CalendarListBox({
3242
3377
  type,
3243
3378
  isDisabled,
3244
3379
  setSelectedDropdown
3245
3380
  }) {
3246
- const state = (0, import_react38.useContext)(import_react_aria_components44.CalendarStateContext);
3381
+ const state = (0, import_react40.useContext)(import_react_aria_components44.CalendarStateContext);
3247
3382
  const months = useFormattedMonths(state.timeZone, state.focusedDate);
3248
3383
  const buttonStyles = "flex items-center justify-between gap-1 overflow-hidden";
3249
3384
  const { classNames: classNames3 } = useCalendarContext();
3250
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
3385
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
3251
3386
  "button",
3252
3387
  {
3253
3388
  onClick: () => !isDisabled && setSelectedDropdown(type),
@@ -3261,7 +3396,7 @@ function CalendarListBox({
3261
3396
  "aria-label": type === "month" ? `${months[state.focusedDate.month - 1].substring(0, 3)}${isDisabled ? " not selectable" : ""}` : `${state.focusedDate.year}${isDisabled ? " not selectable" : ""}`,
3262
3397
  children: [
3263
3398
  type === "month" ? months[state.focusedDate.month - 1].substring(0, 3) : state.focusedDate.year,
3264
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ChevronDown, {})
3399
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(ChevronDown, {})
3265
3400
  ]
3266
3401
  }
3267
3402
  );
@@ -3269,10 +3404,10 @@ function CalendarListBox({
3269
3404
 
3270
3405
  // src/Calendar/MonthControls.tsx
3271
3406
  var import_system59 = require("@marigold/system");
3272
- var import_jsx_runtime69 = require("react/jsx-runtime");
3407
+ var import_jsx_runtime71 = require("react/jsx-runtime");
3273
3408
  function MonthControls() {
3274
3409
  const classNames3 = (0, import_system59.useClassNames)({ component: "Calendar" });
3275
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
3410
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
3276
3411
  "div",
3277
3412
  {
3278
3413
  className: (0, import_system59.cn)(
@@ -3280,22 +3415,22 @@ function MonthControls() {
3280
3415
  classNames3.calendarControllers
3281
3416
  ),
3282
3417
  children: [
3283
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3418
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3284
3419
  IconButton,
3285
3420
  {
3286
3421
  className: (0, import_system59.cn)("inline-flex items-center justify-center gap-[0.5ch]"),
3287
3422
  variant: "navigation",
3288
3423
  slot: "previous",
3289
- children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ChevronLeft, {})
3424
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(ChevronLeft, {})
3290
3425
  }
3291
3426
  ),
3292
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3427
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3293
3428
  IconButton,
3294
3429
  {
3295
3430
  className: (0, import_system59.cn)("inline-flex items-center justify-center gap-[0.5ch]"),
3296
3431
  variant: "navigation",
3297
3432
  slot: "next",
3298
- children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ChevronRight, {})
3433
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(ChevronRight, {})
3299
3434
  }
3300
3435
  )
3301
3436
  ]
@@ -3305,13 +3440,13 @@ function MonthControls() {
3305
3440
  var MonthControls_default = MonthControls;
3306
3441
 
3307
3442
  // src/Calendar/MonthListBox.tsx
3308
- var import_react39 = require("react");
3443
+ var import_react41 = require("react");
3309
3444
  var import_react_aria_components46 = require("react-aria-components");
3310
3445
 
3311
3446
  // src/Calendar/ListBox.tsx
3312
3447
  var import_react_aria_components45 = require("react-aria-components");
3313
3448
  var import_system60 = require("@marigold/system");
3314
- var import_jsx_runtime70 = require("react/jsx-runtime");
3449
+ var import_jsx_runtime72 = require("react/jsx-runtime");
3315
3450
  function ListBox2({
3316
3451
  dataTestid,
3317
3452
  items,
@@ -3322,7 +3457,7 @@ function ListBox2({
3322
3457
  }) {
3323
3458
  const { classNames: classNames3 } = useCalendarContext();
3324
3459
  const selectedItemKeys = items.map((item, index2) => isSelected(item, index2) ? String(index2) : void 0).filter((key) => typeof key === "string");
3325
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3460
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3326
3461
  import_react_aria_components45.ListBox,
3327
3462
  {
3328
3463
  className: (0, import_system60.cn)(
@@ -3336,7 +3471,7 @@ function ListBox2({
3336
3471
  children: items.map((item, index2) => {
3337
3472
  const disabled = isDisabled(item, index2);
3338
3473
  const selected = isSelected(item, index2);
3339
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3474
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3340
3475
  import_react_aria_components45.ListBoxItem,
3341
3476
  {
3342
3477
  id: String(index2),
@@ -3360,18 +3495,18 @@ function ListBox2({
3360
3495
  }
3361
3496
 
3362
3497
  // src/Calendar/MonthListBox.tsx
3363
- var import_jsx_runtime71 = require("react/jsx-runtime");
3498
+ var import_jsx_runtime73 = require("react/jsx-runtime");
3364
3499
  var MonthListBox = ({
3365
3500
  setSelectedDropdown,
3366
3501
  minValue,
3367
3502
  maxValue
3368
3503
  }) => {
3369
- const state = (0, import_react39.useContext)(import_react_aria_components46.CalendarStateContext);
3504
+ const state = (0, import_react41.useContext)(import_react_aria_components46.CalendarStateContext);
3370
3505
  const months = useFormattedMonths(state.timeZone, state.focusedDate);
3371
3506
  const currentYear = state.focusedDate.year;
3372
3507
  const minMonth = minValue && minValue.year === currentYear ? minValue.month : 1;
3373
3508
  const maxMonth = maxValue && maxValue.year === currentYear ? maxValue.month : 12;
3374
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3509
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
3375
3510
  ListBox2,
3376
3511
  {
3377
3512
  dataTestid: "monthOptions",
@@ -3389,27 +3524,27 @@ var MonthListBox = ({
3389
3524
  var MonthListBox_default = MonthListBox;
3390
3525
 
3391
3526
  // src/Calendar/YearListBox.tsx
3392
- var import_react40 = require("react");
3527
+ var import_react42 = require("react");
3393
3528
  var import_react_aria_components47 = require("react-aria-components");
3394
- var import_i18n7 = require("@react-aria/i18n");
3395
- var import_jsx_runtime72 = require("react/jsx-runtime");
3529
+ var import_i18n8 = require("@react-aria/i18n");
3530
+ var import_jsx_runtime74 = require("react/jsx-runtime");
3396
3531
  var YearListBox = ({
3397
3532
  setSelectedDropdown,
3398
3533
  minValue,
3399
3534
  maxValue
3400
3535
  }) => {
3401
- const state = (0, import_react40.useContext)(import_react_aria_components47.CalendarStateContext);
3536
+ const state = (0, import_react42.useContext)(import_react_aria_components47.CalendarStateContext);
3402
3537
  const years = [];
3403
3538
  for (let i = -20; i <= 20; i++) {
3404
3539
  years.push(state.focusedDate.add({ years: i }));
3405
3540
  }
3406
- const formatter = (0, import_i18n7.useDateFormatter)({
3541
+ const formatter = (0, import_i18n8.useDateFormatter)({
3407
3542
  year: "numeric",
3408
3543
  timeZone: state.timeZone
3409
3544
  });
3410
3545
  const minYear = minValue ? minValue.year : -Infinity;
3411
3546
  const maxYear = maxValue ? maxValue.year : Infinity;
3412
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3547
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
3413
3548
  ListBox2,
3414
3549
  {
3415
3550
  dataTestid: "yearOptions",
@@ -3441,7 +3576,7 @@ function hasOnlyOneSelectableYear(minValue, maxValue) {
3441
3576
  }
3442
3577
 
3443
3578
  // src/Calendar/Calendar.tsx
3444
- var import_jsx_runtime73 = require("react/jsx-runtime");
3579
+ var import_jsx_runtime75 = require("react/jsx-runtime");
3445
3580
  var _Calendar = ({
3446
3581
  disabled,
3447
3582
  readOnly,
@@ -3464,9 +3599,9 @@ var _Calendar = ({
3464
3599
  ...rest
3465
3600
  };
3466
3601
  const classNames3 = (0, import_system61.useClassNames)({ component: "Calendar", size: size2, variant });
3467
- const [selectedDropdown, setSelectedDropdown] = (0, import_react41.useState)();
3602
+ const [selectedDropdown, setSelectedDropdown] = (0, import_react43.useState)();
3468
3603
  const ViewMap = {
3469
- month: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
3604
+ month: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
3470
3605
  MonthListBox_default,
3471
3606
  {
3472
3607
  setSelectedDropdown,
@@ -3474,7 +3609,7 @@ var _Calendar = ({
3474
3609
  maxValue
3475
3610
  }
3476
3611
  ),
3477
- year: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
3612
+ year: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
3478
3613
  YearListBox_default,
3479
3614
  {
3480
3615
  setSelectedDropdown,
@@ -3483,7 +3618,7 @@ var _Calendar = ({
3483
3618
  }
3484
3619
  )
3485
3620
  };
3486
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(CalendarContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
3621
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(CalendarContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
3487
3622
  import_react_aria_components48.Calendar,
3488
3623
  {
3489
3624
  className: (0, import_system61.cn)(
@@ -3493,7 +3628,7 @@ var _Calendar = ({
3493
3628
  ),
3494
3629
  ...props,
3495
3630
  children: [
3496
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
3631
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
3497
3632
  "div",
3498
3633
  {
3499
3634
  className: (0, import_system61.cn)(
@@ -3503,7 +3638,7 @@ var _Calendar = ({
3503
3638
  children: ViewMap[selectedDropdown]
3504
3639
  }
3505
3640
  ),
3506
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
3641
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
3507
3642
  "div",
3508
3643
  {
3509
3644
  className: (0, import_system61.cn)(
@@ -3511,9 +3646,9 @@ var _Calendar = ({
3511
3646
  selectedDropdown && "pointer-events-none opacity-0"
3512
3647
  ),
3513
3648
  children: [
3514
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "mb-4 flex items-center justify-between", children: [
3515
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex w-fit gap-4", children: [
3516
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
3649
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "mb-4 flex items-center justify-between", children: [
3650
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex w-fit gap-4", children: [
3651
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
3517
3652
  CalendarListBox,
3518
3653
  {
3519
3654
  type: "month",
@@ -3522,7 +3657,7 @@ var _Calendar = ({
3522
3657
  },
3523
3658
  "month"
3524
3659
  ),
3525
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
3660
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
3526
3661
  CalendarListBox,
3527
3662
  {
3528
3663
  type: "year",
@@ -3532,9 +3667,9 @@ var _Calendar = ({
3532
3667
  "year"
3533
3668
  )
3534
3669
  ] }),
3535
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(MonthControls_default, {})
3670
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(MonthControls_default, {})
3536
3671
  ] }),
3537
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(_CalendarGrid, {})
3672
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(_CalendarGrid, {})
3538
3673
  ]
3539
3674
  }
3540
3675
  )
@@ -3544,11 +3679,11 @@ var _Calendar = ({
3544
3679
  };
3545
3680
 
3546
3681
  // src/DatePicker/DatePicker.tsx
3547
- var import_react42 = __toESM(require("react"));
3682
+ var import_react44 = __toESM(require("react"));
3548
3683
  var import_react_aria_components49 = require("react-aria-components");
3549
3684
  var import_system62 = require("@marigold/system");
3550
- var import_jsx_runtime74 = require("react/jsx-runtime");
3551
- var _DatePicker = import_react42.default.forwardRef(
3685
+ var import_jsx_runtime76 = require("react/jsx-runtime");
3686
+ var _DatePicker = import_react44.default.forwardRef(
3552
3687
  ({
3553
3688
  dateUnavailable,
3554
3689
  disabled,
@@ -3576,7 +3711,7 @@ var _DatePicker = import_react42.default.forwardRef(
3576
3711
  size: size2,
3577
3712
  variant
3578
3713
  });
3579
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
3714
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
3580
3715
  FieldBase,
3581
3716
  {
3582
3717
  as: import_react_aria_components49.DatePicker,
@@ -3585,10 +3720,10 @@ var _DatePicker = import_react42.default.forwardRef(
3585
3720
  ...props,
3586
3721
  ref,
3587
3722
  children: [
3588
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
3723
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
3589
3724
  _DateInput,
3590
3725
  {
3591
- action: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(IconButton, { className: classNames3, children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
3726
+ action: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(IconButton, { className: classNames3, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
3592
3727
  "svg",
3593
3728
  {
3594
3729
  "data-testid": "action",
@@ -3596,12 +3731,12 @@ var _DatePicker = import_react42.default.forwardRef(
3596
3731
  width: 24,
3597
3732
  height: 24,
3598
3733
  fill: "currentColor",
3599
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("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" })
3734
+ children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("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" })
3600
3735
  }
3601
3736
  ) })
3602
3737
  }
3603
3738
  ),
3604
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react_aria_components49.Dialog, { children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(_Calendar, { disabled }) }) })
3739
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react_aria_components49.Dialog, { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(_Calendar, { disabled }) }) })
3605
3740
  ]
3606
3741
  }
3607
3742
  );
@@ -3610,8 +3745,8 @@ var _DatePicker = import_react42.default.forwardRef(
3610
3745
 
3611
3746
  // src/Inset/Inset.tsx
3612
3747
  var import_system63 = require("@marigold/system");
3613
- var import_jsx_runtime75 = require("react/jsx-runtime");
3614
- var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
3748
+ var import_jsx_runtime77 = require("react/jsx-runtime");
3749
+ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
3615
3750
  "div",
3616
3751
  {
3617
3752
  className: (0, import_system63.cn)(
@@ -3624,38 +3759,63 @@ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ (0, import_
3624
3759
  );
3625
3760
 
3626
3761
  // src/Link/Link.tsx
3627
- var import_react43 = require("react");
3762
+ var import_react45 = require("react");
3628
3763
  var import_react_aria_components50 = require("react-aria-components");
3629
3764
  var import_system64 = require("@marigold/system");
3630
- var import_jsx_runtime76 = require("react/jsx-runtime");
3631
- var _Link = (0, import_react43.forwardRef)(
3765
+ var import_jsx_runtime78 = require("react/jsx-runtime");
3766
+ var _Link = (0, import_react45.forwardRef)(
3632
3767
  ({ variant, size: size2, disabled, children, ...props }, ref) => {
3633
3768
  const classNames3 = (0, import_system64.useClassNames)({
3634
3769
  component: "Link",
3635
3770
  variant,
3636
3771
  size: size2
3637
3772
  });
3638
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react_aria_components50.Link, { ...props, ref, className: classNames3, isDisabled: disabled, children });
3773
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react_aria_components50.Link, { ...props, ref, className: classNames3, isDisabled: disabled, children });
3639
3774
  }
3640
3775
  );
3641
3776
 
3642
- // src/List/List.tsx
3777
+ // src/LinkButton/LinkButton.tsx
3778
+ var import_react46 = require("react");
3779
+ var import_react_aria_components51 = require("react-aria-components");
3643
3780
  var import_system65 = require("@marigold/system");
3781
+ var import_jsx_runtime79 = require("react/jsx-runtime");
3782
+ var _LinkButton = (0, import_react46.forwardRef)(
3783
+ ({ children, variant, size: size2, disabled, fullWidth, ...props }, ref) => {
3784
+ const classNames3 = (0, import_system65.useClassNames)({
3785
+ component: "Button",
3786
+ variant,
3787
+ size: size2
3788
+ });
3789
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
3790
+ import_react_aria_components51.Link,
3791
+ {
3792
+ ...props,
3793
+ ref,
3794
+ className: (0, import_system65.cn)(classNames3, fullWidth ? "w-full" : void 0),
3795
+ isDisabled: disabled,
3796
+ children
3797
+ }
3798
+ );
3799
+ }
3800
+ );
3801
+
3802
+ // src/List/List.tsx
3803
+ var import_system66 = require("@marigold/system");
3644
3804
 
3645
3805
  // src/List/Context.ts
3646
- var import_react44 = require("react");
3647
- var ListContext = (0, import_react44.createContext)({});
3648
- var useListContext = () => (0, import_react44.useContext)(ListContext);
3806
+ var import_react47 = require("react");
3807
+ var ListContext = (0, import_react47.createContext)({});
3808
+ var useListContext = () => (0, import_react47.useContext)(ListContext);
3649
3809
 
3650
3810
  // src/List/ListItem.tsx
3651
- var import_jsx_runtime77 = require("react/jsx-runtime");
3811
+ var import_jsx_runtime80 = require("react/jsx-runtime");
3652
3812
  var ListItem = ({ children, ...props }) => {
3653
3813
  const { classNames: classNames3 } = useListContext();
3654
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("li", { ...props, className: classNames3, children });
3814
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("li", { ...props, className: classNames3, children });
3655
3815
  };
3656
3816
 
3657
3817
  // src/List/List.tsx
3658
- var import_jsx_runtime78 = require("react/jsx-runtime");
3818
+ var import_jsx_runtime81 = require("react/jsx-runtime");
3659
3819
  var List = ({
3660
3820
  as = "ul",
3661
3821
  children,
@@ -3664,38 +3824,38 @@ var List = ({
3664
3824
  ...props
3665
3825
  }) => {
3666
3826
  const Component2 = as;
3667
- const classNames3 = (0, import_system65.useClassNames)({ component: "List", variant, size: size2 });
3668
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Component2, { ...props, className: classNames3[as], children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ListContext.Provider, { value: { classNames: classNames3.item }, children }) });
3827
+ const classNames3 = (0, import_system66.useClassNames)({ component: "List", variant, size: size2 });
3828
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Component2, { ...props, className: classNames3[as], children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ListContext.Provider, { value: { classNames: classNames3.item }, children }) });
3669
3829
  };
3670
3830
  List.Item = ListItem;
3671
3831
 
3672
3832
  // src/Menu/Menu.tsx
3673
- var import_react_aria_components53 = require("react-aria-components");
3674
- var import_system68 = require("@marigold/system");
3833
+ var import_react_aria_components54 = require("react-aria-components");
3834
+ var import_system69 = require("@marigold/system");
3675
3835
 
3676
3836
  // src/Menu/MenuItem.tsx
3677
- var import_react_aria_components51 = require("react-aria-components");
3678
- var import_system66 = require("@marigold/system");
3679
- var import_jsx_runtime79 = require("react/jsx-runtime");
3680
- var _MenuItem = ({ children, ...props }) => {
3681
- const classNames3 = (0, import_system66.useClassNames)({ component: "Menu" });
3682
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react_aria_components51.MenuItem, { ...props, className: classNames3.item, children });
3837
+ var import_react_aria_components52 = require("react-aria-components");
3838
+ var import_system67 = require("@marigold/system");
3839
+ var import_jsx_runtime82 = require("react/jsx-runtime");
3840
+ var _MenuItem = ({ children, variant, size: size2, ...props }) => {
3841
+ const classNames3 = (0, import_system67.useClassNames)({ component: "Menu", variant, size: size2 });
3842
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_react_aria_components52.MenuItem, { ...props, className: classNames3.item, children });
3683
3843
  };
3684
3844
 
3685
3845
  // src/Menu/MenuSection.tsx
3686
- var import_react_aria_components52 = require("react-aria-components");
3687
- var import_system67 = require("@marigold/system");
3688
- var import_jsx_runtime80 = require("react/jsx-runtime");
3846
+ var import_react_aria_components53 = require("react-aria-components");
3847
+ var import_system68 = require("@marigold/system");
3848
+ var import_jsx_runtime83 = require("react/jsx-runtime");
3689
3849
  var _MenuSection = ({ children, title, ...props }) => {
3690
- const className = (0, import_system67.useClassNames)({ component: "Menu" });
3691
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_react_aria_components52.MenuSection, { ...props, children: [
3692
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react_aria_components52.Header, { className: className.section, children: title }),
3850
+ const className = (0, import_system68.useClassNames)({ component: "Menu" });
3851
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_react_aria_components53.MenuSection, { ...props, children: [
3852
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_react_aria_components53.Header, { className: className.section, children: title }),
3693
3853
  children
3694
3854
  ] });
3695
3855
  };
3696
3856
 
3697
3857
  // src/Menu/Menu.tsx
3698
- var import_jsx_runtime81 = require("react/jsx-runtime");
3858
+ var import_jsx_runtime84 = require("react/jsx-runtime");
3699
3859
  var _Menu = ({
3700
3860
  children,
3701
3861
  label,
@@ -3707,10 +3867,10 @@ var _Menu = ({
3707
3867
  "aria-label": ariaLabel,
3708
3868
  ...props
3709
3869
  }) => {
3710
- const classNames3 = (0, import_system68.useClassNames)({ component: "Menu", variant, size: size2 });
3711
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_react_aria_components53.MenuTrigger, { ...props, children: [
3712
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
3713
- import_react_aria_components53.Button,
3870
+ const classNames3 = (0, import_system69.useClassNames)({ component: "Menu", variant, size: size2 });
3871
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_react_aria_components54.MenuTrigger, { ...props, children: [
3872
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
3873
+ import_react_aria_components54.Button,
3714
3874
  {
3715
3875
  className: classNames3.button,
3716
3876
  "aria-label": ariaLabel,
@@ -3718,19 +3878,19 @@ var _Menu = ({
3718
3878
  children: label
3719
3879
  }
3720
3880
  ),
3721
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(_Popover, { open, placement, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react_aria_components53.Menu, { ...props, className: classNames3.container, children }) })
3881
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(_Popover, { open, placement, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react_aria_components54.Menu, { ...props, className: classNames3.container, children }) })
3722
3882
  ] });
3723
3883
  };
3724
3884
  _Menu.Item = _MenuItem;
3725
3885
  _Menu.Section = _MenuSection;
3726
3886
 
3727
3887
  // src/Menu/ActionMenu.tsx
3728
- var import_jsx_runtime82 = require("react/jsx-runtime");
3729
- var ActionMenu = ({ children, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
3888
+ var import_jsx_runtime85 = require("react/jsx-runtime");
3889
+ var ActionMenu = ({ children, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
3730
3890
  _Menu,
3731
3891
  {
3732
3892
  ...props,
3733
- label: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
3893
+ label: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
3734
3894
  "svg",
3735
3895
  {
3736
3896
  xmlns: "http://www.w3.org/2000/svg",
@@ -3741,9 +3901,9 @@ var ActionMenu = ({ children, ...props }) => /* @__PURE__ */ (0, import_jsx_runt
3741
3901
  strokeLinecap: "round",
3742
3902
  strokeLinejoin: "round",
3743
3903
  children: [
3744
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("circle", { cx: 12, cy: 12, r: 1 }),
3745
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("circle", { cx: 12, cy: 5, r: 1 }),
3746
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("circle", { cx: 12, cy: 19, r: 1 })
3904
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("circle", { cx: 12, cy: 12, r: 1 }),
3905
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("circle", { cx: 12, cy: 5, r: 1 }),
3906
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("circle", { cx: 12, cy: 19, r: 1 })
3747
3907
  ]
3748
3908
  }
3749
3909
  ),
@@ -3754,43 +3914,43 @@ ActionMenu.Item = _Menu.Item;
3754
3914
  ActionMenu.Section = _Menu.Section;
3755
3915
 
3756
3916
  // src/SectionMessage/SectionMessage.tsx
3757
- var import_react46 = require("react");
3917
+ var import_react49 = require("react");
3758
3918
  var import_button = require("@react-aria/button");
3759
- var import_system71 = require("@marigold/system");
3919
+ var import_system72 = require("@marigold/system");
3760
3920
 
3761
3921
  // src/SectionMessage/Context.tsx
3762
- var import_react45 = require("react");
3763
- var SectionMessageContext = (0, import_react45.createContext)({});
3764
- var useSectionMessageContext = () => (0, import_react45.useContext)(SectionMessageContext);
3922
+ var import_react48 = require("react");
3923
+ var SectionMessageContext = (0, import_react48.createContext)({});
3924
+ var useSectionMessageContext = () => (0, import_react48.useContext)(SectionMessageContext);
3765
3925
 
3766
3926
  // src/SectionMessage/SectionMessageContent.tsx
3767
- var import_system69 = require("@marigold/system");
3768
- var import_jsx_runtime83 = require("react/jsx-runtime");
3927
+ var import_system70 = require("@marigold/system");
3928
+ var import_jsx_runtime86 = require("react/jsx-runtime");
3769
3929
  var SectionMessageContent = ({
3770
3930
  children
3771
3931
  }) => {
3772
3932
  const { classNames: classNames3 } = useSectionMessageContext();
3773
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: (0, import_system69.cn)("[grid-area:content]", classNames3.content), children });
3933
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: (0, import_system70.cn)("[grid-area:content]", classNames3.content), children });
3774
3934
  };
3775
3935
 
3776
3936
  // src/SectionMessage/SectionMessageTitle.tsx
3777
- var import_system70 = require("@marigold/system");
3778
- var import_jsx_runtime84 = require("react/jsx-runtime");
3937
+ var import_system71 = require("@marigold/system");
3938
+ var import_jsx_runtime87 = require("react/jsx-runtime");
3779
3939
  var SectionMessageTitle = ({ children }) => {
3780
3940
  const { classNames: classNames3 } = useSectionMessageContext();
3781
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: (0, import_system70.cn)("[grid-area:title]", classNames3.title), children });
3941
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: (0, import_system71.cn)("[grid-area:title]", classNames3.title), children });
3782
3942
  };
3783
3943
 
3784
3944
  // src/SectionMessage/SectionMessage.tsx
3785
- var import_jsx_runtime85 = require("react/jsx-runtime");
3945
+ var import_jsx_runtime88 = require("react/jsx-runtime");
3786
3946
  var icons2 = {
3787
- success: () => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
3947
+ success: () => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
3788
3948
  "svg",
3789
3949
  {
3790
3950
  xmlns: "http://www.w3.org/2000/svg",
3791
3951
  viewBox: "0 0 24 24",
3792
3952
  fill: "currentColor",
3793
- children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
3953
+ children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
3794
3954
  "path",
3795
3955
  {
3796
3956
  fillRule: "evenodd",
@@ -3800,13 +3960,13 @@ var icons2 = {
3800
3960
  )
3801
3961
  }
3802
3962
  ),
3803
- info: () => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
3963
+ info: () => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
3804
3964
  "svg",
3805
3965
  {
3806
3966
  xmlns: "http://www.w3.org/2000/svg",
3807
3967
  viewBox: "0 0 24 24",
3808
3968
  fill: "currentColor",
3809
- children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
3969
+ children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
3810
3970
  "path",
3811
3971
  {
3812
3972
  fillRule: "evenodd",
@@ -3816,13 +3976,13 @@ var icons2 = {
3816
3976
  )
3817
3977
  }
3818
3978
  ),
3819
- warning: () => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
3979
+ warning: () => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
3820
3980
  "svg",
3821
3981
  {
3822
3982
  xmlns: "http://www.w3.org/2000/svg",
3823
3983
  viewBox: "0 0 24 24",
3824
3984
  fill: "currentColor",
3825
- children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
3985
+ children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
3826
3986
  "path",
3827
3987
  {
3828
3988
  fillRule: "evenodd",
@@ -3832,13 +3992,13 @@ var icons2 = {
3832
3992
  )
3833
3993
  }
3834
3994
  ),
3835
- error: () => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
3995
+ error: () => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
3836
3996
  "svg",
3837
3997
  {
3838
3998
  xmlns: "http://www.w3.org/2000/svg",
3839
3999
  viewBox: "0 0 24 24",
3840
4000
  fill: "currentColor",
3841
- children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
4001
+ children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
3842
4002
  "path",
3843
4003
  {
3844
4004
  fillRule: "evenodd",
@@ -3858,14 +4018,14 @@ var SectionMessage = ({
3858
4018
  onCloseChange,
3859
4019
  ...props
3860
4020
  }) => {
3861
- const buttonRef = (0, import_react46.useRef)(null);
3862
- const classNames3 = (0, import_system71.useClassNames)({
4021
+ const buttonRef = (0, import_react49.useRef)(null);
4022
+ const classNames3 = (0, import_system72.useClassNames)({
3863
4023
  component: "SectionMessage",
3864
4024
  variant,
3865
4025
  size: size2
3866
4026
  });
3867
4027
  const Icon4 = icons2[variant];
3868
- const [internalVisible, setInternalVisible] = (0, import_react46.useState)(true);
4028
+ const [internalVisible, setInternalVisible] = (0, import_react49.useState)(true);
3869
4029
  const isCurrentlyVisible = close != null ? close : internalVisible;
3870
4030
  const { buttonProps } = (0, import_button.useButton)(props, buttonRef);
3871
4031
  const handleClose = () => {
@@ -3875,21 +4035,21 @@ var SectionMessage = ({
3875
4035
  }
3876
4036
  };
3877
4037
  if (!isCurrentlyVisible) return null;
3878
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(SectionMessageContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
4038
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(SectionMessageContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
3879
4039
  "div",
3880
4040
  {
3881
4041
  role: variant === "error" ? "alert" : void 0,
3882
4042
  ...props,
3883
- className: (0, import_system71.cn)("grid auto-rows-min", classNames3.container),
4043
+ className: (0, import_system72.cn)("grid auto-rows-min", classNames3.container),
3884
4044
  children: [
3885
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: (0, import_system71.cn)("[grid-area:icon]", classNames3.icon), children: Icon4 && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Icon4, {}) }),
3886
- closeButton && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
4045
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: (0, import_system72.cn)("[grid-area:icon]", classNames3.icon), children: Icon4 && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Icon4, {}) }),
4046
+ closeButton && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
3887
4047
  CloseButton,
3888
4048
  {
3889
4049
  ...buttonProps,
3890
4050
  ref: buttonRef,
3891
4051
  "aria-label": "close",
3892
- className: (0, import_system71.cn)("[grid-area:close]", classNames3.close),
4052
+ className: (0, import_system72.cn)("[grid-area:close]", classNames3.close),
3893
4053
  onPress: handleClose
3894
4054
  }
3895
4055
  ),
@@ -3902,7 +4062,7 @@ SectionMessage.Title = SectionMessageTitle;
3902
4062
  SectionMessage.Content = SectionMessageContent;
3903
4063
 
3904
4064
  // src/Multiselect/Multiselect.tsx
3905
- var import_react_aria_components54 = require("react-aria-components");
4065
+ var import_react_aria_components55 = require("react-aria-components");
3906
4066
 
3907
4067
  // ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/typeof.js
3908
4068
  function _typeof(o) {
@@ -4042,33 +4202,33 @@ function _objectWithoutProperties(e, t) {
4042
4202
  }
4043
4203
 
4044
4204
  // ../../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
4045
- var import_react47 = require("react");
4205
+ var import_react50 = require("react");
4046
4206
  var _excluded = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
4047
4207
  function useStateManager(_ref3) {
4048
4208
  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);
4049
- var _useState = (0, import_react47.useState)(propsInputValue !== void 0 ? propsInputValue : defaultInputValue), _useState2 = _slicedToArray(_useState, 2), stateInputValue = _useState2[0], setStateInputValue = _useState2[1];
4050
- var _useState3 = (0, import_react47.useState)(propsMenuIsOpen !== void 0 ? propsMenuIsOpen : defaultMenuIsOpen), _useState4 = _slicedToArray(_useState3, 2), stateMenuIsOpen = _useState4[0], setStateMenuIsOpen = _useState4[1];
4051
- var _useState5 = (0, import_react47.useState)(propsValue !== void 0 ? propsValue : defaultValue), _useState6 = _slicedToArray(_useState5, 2), stateValue = _useState6[0], setStateValue = _useState6[1];
4052
- var onChange2 = (0, import_react47.useCallback)(function(value2, actionMeta) {
4209
+ var _useState = (0, import_react50.useState)(propsInputValue !== void 0 ? propsInputValue : defaultInputValue), _useState2 = _slicedToArray(_useState, 2), stateInputValue = _useState2[0], setStateInputValue = _useState2[1];
4210
+ var _useState3 = (0, import_react50.useState)(propsMenuIsOpen !== void 0 ? propsMenuIsOpen : defaultMenuIsOpen), _useState4 = _slicedToArray(_useState3, 2), stateMenuIsOpen = _useState4[0], setStateMenuIsOpen = _useState4[1];
4211
+ var _useState5 = (0, import_react50.useState)(propsValue !== void 0 ? propsValue : defaultValue), _useState6 = _slicedToArray(_useState5, 2), stateValue = _useState6[0], setStateValue = _useState6[1];
4212
+ var onChange2 = (0, import_react50.useCallback)(function(value2, actionMeta) {
4053
4213
  if (typeof propsOnChange === "function") {
4054
4214
  propsOnChange(value2, actionMeta);
4055
4215
  }
4056
4216
  setStateValue(value2);
4057
4217
  }, [propsOnChange]);
4058
- var onInputChange = (0, import_react47.useCallback)(function(value2, actionMeta) {
4218
+ var onInputChange = (0, import_react50.useCallback)(function(value2, actionMeta) {
4059
4219
  var newValue;
4060
4220
  if (typeof propsOnInputChange === "function") {
4061
4221
  newValue = propsOnInputChange(value2, actionMeta);
4062
4222
  }
4063
4223
  setStateInputValue(newValue !== void 0 ? newValue : value2);
4064
4224
  }, [propsOnInputChange]);
4065
- var onMenuOpen = (0, import_react47.useCallback)(function() {
4225
+ var onMenuOpen = (0, import_react50.useCallback)(function() {
4066
4226
  if (typeof propsOnMenuOpen === "function") {
4067
4227
  propsOnMenuOpen();
4068
4228
  }
4069
4229
  setStateMenuIsOpen(true);
4070
4230
  }, [propsOnMenuOpen]);
4071
- var onMenuClose = (0, import_react47.useCallback)(function() {
4231
+ var onMenuClose = (0, import_react50.useCallback)(function() {
4072
4232
  if (typeof propsOnMenuClose === "function") {
4073
4233
  propsOnMenuClose();
4074
4234
  }
@@ -4101,7 +4261,7 @@ function _extends() {
4101
4261
 
4102
4262
  // ../../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
4103
4263
  var React11 = __toESM(require("react"));
4104
- var import_react54 = require("react");
4264
+ var import_react57 = require("react");
4105
4265
 
4106
4266
  // ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
4107
4267
  function _classCallCheck(a, n) {
@@ -4209,11 +4369,11 @@ function _toConsumableArray(r) {
4209
4369
 
4210
4370
  // ../../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
4211
4371
  var React10 = __toESM(require("react"));
4212
- var import_react52 = require("react");
4372
+ var import_react55 = require("react");
4213
4373
 
4214
4374
  // ../../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
4215
4375
  var React8 = __toESM(require("react"));
4216
- var import_react48 = require("react");
4376
+ var import_react51 = require("react");
4217
4377
 
4218
4378
  // ../../node_modules/.pnpm/@emotion+sheet@1.4.0/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js
4219
4379
  var isDevelopment = false;
@@ -5401,15 +5561,15 @@ var EmotionCacheContext = /* @__PURE__ */ React8.createContext(
5401
5561
  );
5402
5562
  var CacheProvider = EmotionCacheContext.Provider;
5403
5563
  var withEmotionCache = function withEmotionCache2(func) {
5404
- return /* @__PURE__ */ (0, import_react48.forwardRef)(function(props, ref) {
5405
- var cache = (0, import_react48.useContext)(EmotionCacheContext);
5564
+ return /* @__PURE__ */ (0, import_react51.forwardRef)(function(props, ref) {
5565
+ var cache = (0, import_react51.useContext)(EmotionCacheContext);
5406
5566
  return func(props, cache, ref);
5407
5567
  });
5408
5568
  };
5409
5569
  if (!isBrowser4) {
5410
5570
  withEmotionCache = function withEmotionCache3(func) {
5411
5571
  return function(props) {
5412
- var cache = (0, import_react48.useContext)(EmotionCacheContext);
5572
+ var cache = (0, import_react51.useContext)(EmotionCacheContext);
5413
5573
  if (cache === null) {
5414
5574
  cache = createCache({
5415
5575
  key: "css"
@@ -5493,7 +5653,7 @@ var Emotion$1 = Emotion;
5493
5653
  var React9 = __toESM(require("react"));
5494
5654
  var import_extends2 = __toESM(require_extends());
5495
5655
  var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
5496
- var jsx86 = function jsx87(type, props) {
5656
+ var jsx89 = function jsx90(type, props) {
5497
5657
  var args = arguments;
5498
5658
  if (props == null || !hasOwn.call(props, "css")) {
5499
5659
  return React9.createElement.apply(void 0, args);
@@ -5511,7 +5671,7 @@ var jsx86 = function jsx87(type, props) {
5511
5671
  var JSX2;
5512
5672
  /* @__PURE__ */ (function(_JSX) {
5513
5673
  })(JSX2 || (JSX2 = _jsx.JSX || (_jsx.JSX = {})));
5514
- })(jsx86 || (jsx86 = {}));
5674
+ })(jsx89 || (jsx89 = {}));
5515
5675
  function css() {
5516
5676
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
5517
5677
  args[_key] = arguments[_key];
@@ -5541,7 +5701,7 @@ function _taggedTemplateLiteral(e, t) {
5541
5701
  }
5542
5702
 
5543
5703
  // ../../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
5544
- var import_react51 = require("react");
5704
+ var import_react54 = require("react");
5545
5705
  var import_react_dom = require("react-dom");
5546
5706
 
5547
5707
  // ../../node_modules/.pnpm/@floating-ui+utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
@@ -5944,11 +6104,11 @@ function autoUpdate(reference, floating, update, options2) {
5944
6104
  }
5945
6105
 
5946
6106
  // ../../node_modules/.pnpm/use-isomorphic-layout-effect@1.2.1_@types+react@19.1.12_react@19.1.1/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
5947
- var import_react49 = require("react");
6107
+ var import_react52 = require("react");
5948
6108
  var isClient = typeof document !== "undefined";
5949
6109
  var noop = function noop2() {
5950
6110
  };
5951
- var index = isClient ? import_react49.useLayoutEffect : noop;
6111
+ var index = isClient ? import_react52.useLayoutEffect : noop;
5952
6112
 
5953
6113
  // ../../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
5954
6114
  var _excluded$4 = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"];
@@ -6282,13 +6442,13 @@ var menuCSS = function menuCSS2(_ref23, unstyled) {
6282
6442
  marginTop: spacing2.menuGutter
6283
6443
  });
6284
6444
  };
6285
- var PortalPlacementContext = /* @__PURE__ */ (0, import_react51.createContext)(null);
6445
+ var PortalPlacementContext = /* @__PURE__ */ (0, import_react54.createContext)(null);
6286
6446
  var MenuPlacer = function MenuPlacer2(props) {
6287
6447
  var children = props.children, minMenuHeight = props.minMenuHeight, maxMenuHeight = props.maxMenuHeight, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition, menuShouldScrollIntoView = props.menuShouldScrollIntoView, theme = props.theme;
6288
- var _ref3 = (0, import_react51.useContext)(PortalPlacementContext) || {}, setPortalPlacement = _ref3.setPortalPlacement;
6289
- var ref = (0, import_react51.useRef)(null);
6290
- var _useState = (0, import_react51.useState)(maxMenuHeight), _useState2 = _slicedToArray(_useState, 2), maxHeight = _useState2[0], setMaxHeight = _useState2[1];
6291
- var _useState3 = (0, import_react51.useState)(null), _useState4 = _slicedToArray(_useState3, 2), placement = _useState4[0], setPlacement = _useState4[1];
6448
+ var _ref3 = (0, import_react54.useContext)(PortalPlacementContext) || {}, setPortalPlacement = _ref3.setPortalPlacement;
6449
+ var ref = (0, import_react54.useRef)(null);
6450
+ var _useState = (0, import_react54.useState)(maxMenuHeight), _useState2 = _slicedToArray(_useState, 2), maxHeight = _useState2[0], setMaxHeight = _useState2[1];
6451
+ var _useState3 = (0, import_react54.useState)(null), _useState4 = _slicedToArray(_useState3, 2), placement = _useState4[0], setPlacement = _useState4[1];
6292
6452
  var controlHeight2 = theme.spacing.controlHeight;
6293
6453
  index(function() {
6294
6454
  var menuEl = ref.current;
@@ -6318,7 +6478,7 @@ var MenuPlacer = function MenuPlacer2(props) {
6318
6478
  };
6319
6479
  var Menu2 = function Menu3(props) {
6320
6480
  var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
6321
- return jsx86("div", _extends({}, getStyleProps(props, "menu", {
6481
+ return jsx89("div", _extends({}, getStyleProps(props, "menu", {
6322
6482
  menu: true
6323
6483
  }), {
6324
6484
  ref: innerRef
@@ -6340,7 +6500,7 @@ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
6340
6500
  };
6341
6501
  var MenuList = function MenuList2(props) {
6342
6502
  var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
6343
- return jsx86("div", _extends({}, getStyleProps(props, "menuList", {
6503
+ return jsx89("div", _extends({}, getStyleProps(props, "menuList", {
6344
6504
  "menu-list": true,
6345
6505
  "menu-list--is-multi": isMulti
6346
6506
  }), {
@@ -6360,7 +6520,7 @@ var noOptionsMessageCSS = noticeCSS;
6360
6520
  var loadingMessageCSS = noticeCSS;
6361
6521
  var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
6362
6522
  var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
6363
- return jsx86("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
6523
+ return jsx89("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
6364
6524
  children,
6365
6525
  innerProps
6366
6526
  }), "noOptionsMessage", {
@@ -6370,7 +6530,7 @@ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
6370
6530
  };
6371
6531
  var LoadingMessage = function LoadingMessage2(_ref7) {
6372
6532
  var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
6373
- return jsx86("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
6533
+ return jsx89("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
6374
6534
  children,
6375
6535
  innerProps
6376
6536
  }), "loadingMessage", {
@@ -6390,16 +6550,16 @@ var menuPortalCSS = function menuPortalCSS2(_ref8) {
6390
6550
  };
6391
6551
  var MenuPortal = function MenuPortal2(props) {
6392
6552
  var appendTo = props.appendTo, children = props.children, controlElement = props.controlElement, innerProps = props.innerProps, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition;
6393
- var menuPortalRef = (0, import_react51.useRef)(null);
6394
- var cleanupRef = (0, import_react51.useRef)(null);
6395
- var _useState5 = (0, import_react51.useState)(coercePlacement(menuPlacement)), _useState6 = _slicedToArray(_useState5, 2), placement = _useState6[0], setPortalPlacement = _useState6[1];
6396
- var portalPlacementContext = (0, import_react51.useMemo)(function() {
6553
+ var menuPortalRef = (0, import_react54.useRef)(null);
6554
+ var cleanupRef = (0, import_react54.useRef)(null);
6555
+ var _useState5 = (0, import_react54.useState)(coercePlacement(menuPlacement)), _useState6 = _slicedToArray(_useState5, 2), placement = _useState6[0], setPortalPlacement = _useState6[1];
6556
+ var portalPlacementContext = (0, import_react54.useMemo)(function() {
6397
6557
  return {
6398
6558
  setPortalPlacement
6399
6559
  };
6400
6560
  }, []);
6401
- var _useState7 = (0, import_react51.useState)(null), _useState8 = _slicedToArray(_useState7, 2), computedPosition = _useState8[0], setComputedPosition = _useState8[1];
6402
- var updateComputedPosition = (0, import_react51.useCallback)(function() {
6561
+ var _useState7 = (0, import_react54.useState)(null), _useState8 = _slicedToArray(_useState7, 2), computedPosition = _useState8[0], setComputedPosition = _useState8[1];
6562
+ var updateComputedPosition = (0, import_react54.useCallback)(function() {
6403
6563
  if (!controlElement) return;
6404
6564
  var rect = getBoundingClientObj(controlElement);
6405
6565
  var scrollDistance = menuPosition === "fixed" ? 0 : window.pageYOffset;
@@ -6414,7 +6574,7 @@ var MenuPortal = function MenuPortal2(props) {
6414
6574
  index(function() {
6415
6575
  updateComputedPosition();
6416
6576
  }, [updateComputedPosition]);
6417
- var runAutoUpdate = (0, import_react51.useCallback)(function() {
6577
+ var runAutoUpdate = (0, import_react54.useCallback)(function() {
6418
6578
  if (typeof cleanupRef.current === "function") {
6419
6579
  cleanupRef.current();
6420
6580
  cleanupRef.current = null;
@@ -6428,12 +6588,12 @@ var MenuPortal = function MenuPortal2(props) {
6428
6588
  index(function() {
6429
6589
  runAutoUpdate();
6430
6590
  }, [runAutoUpdate]);
6431
- var setMenuPortalElement = (0, import_react51.useCallback)(function(menuPortalElement) {
6591
+ var setMenuPortalElement = (0, import_react54.useCallback)(function(menuPortalElement) {
6432
6592
  menuPortalRef.current = menuPortalElement;
6433
6593
  runAutoUpdate();
6434
6594
  }, [runAutoUpdate]);
6435
6595
  if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
6436
- var menuWrapper = jsx86("div", _extends({
6596
+ var menuWrapper = jsx89("div", _extends({
6437
6597
  ref: setMenuPortalElement
6438
6598
  }, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
6439
6599
  offset: computedPosition.offset,
@@ -6442,7 +6602,7 @@ var MenuPortal = function MenuPortal2(props) {
6442
6602
  }), "menuPortal", {
6443
6603
  "menu-portal": true
6444
6604
  }), innerProps), children);
6445
- return jsx86(PortalPlacementContext.Provider, {
6605
+ return jsx89(PortalPlacementContext.Provider, {
6446
6606
  value: portalPlacementContext
6447
6607
  }, appendTo ? /* @__PURE__ */ (0, import_react_dom.createPortal)(menuWrapper, appendTo) : menuWrapper);
6448
6608
  };
@@ -6458,7 +6618,7 @@ var containerCSS = function containerCSS2(_ref3) {
6458
6618
  };
6459
6619
  var SelectContainer = function SelectContainer2(props) {
6460
6620
  var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
6461
- return jsx86("div", _extends({}, getStyleProps(props, "container", {
6621
+ return jsx89("div", _extends({}, getStyleProps(props, "container", {
6462
6622
  "--is-disabled": isDisabled,
6463
6623
  "--is-rtl": isRtl
6464
6624
  }), innerProps), children);
@@ -6479,7 +6639,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) {
6479
6639
  };
6480
6640
  var ValueContainer = function ValueContainer2(props) {
6481
6641
  var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
6482
- return jsx86("div", _extends({}, getStyleProps(props, "valueContainer", {
6642
+ return jsx89("div", _extends({}, getStyleProps(props, "valueContainer", {
6483
6643
  "value-container": true,
6484
6644
  "value-container--is-multi": isMulti,
6485
6645
  "value-container--has-value": hasValue
@@ -6495,7 +6655,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
6495
6655
  };
6496
6656
  var IndicatorsContainer = function IndicatorsContainer2(props) {
6497
6657
  var children = props.children, innerProps = props.innerProps;
6498
- return jsx86("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
6658
+ return jsx89("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
6499
6659
  indicators: true
6500
6660
  }), innerProps), children);
6501
6661
  };
@@ -6516,7 +6676,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
6516
6676
  };
6517
6677
  var Svg = function Svg2(_ref3) {
6518
6678
  var size2 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2);
6519
- return jsx86("svg", _extends({
6679
+ return jsx89("svg", _extends({
6520
6680
  height: size2,
6521
6681
  width: size2,
6522
6682
  viewBox: "0 0 20 20",
@@ -6526,16 +6686,16 @@ var Svg = function Svg2(_ref3) {
6526
6686
  }, props));
6527
6687
  };
6528
6688
  var CrossIcon = function CrossIcon2(props) {
6529
- return jsx86(Svg, _extends({
6689
+ return jsx89(Svg, _extends({
6530
6690
  size: 20
6531
- }, props), jsx86("path", {
6691
+ }, props), jsx89("path", {
6532
6692
  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"
6533
6693
  }));
6534
6694
  };
6535
6695
  var DownChevron = function DownChevron2(props) {
6536
- return jsx86(Svg, _extends({
6696
+ return jsx89(Svg, _extends({
6537
6697
  size: 20
6538
- }, props), jsx86("path", {
6698
+ }, props), jsx89("path", {
6539
6699
  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"
6540
6700
  }));
6541
6701
  };
@@ -6556,18 +6716,18 @@ var baseCSS = function baseCSS2(_ref3, unstyled) {
6556
6716
  var dropdownIndicatorCSS = baseCSS;
6557
6717
  var DropdownIndicator = function DropdownIndicator2(props) {
6558
6718
  var children = props.children, innerProps = props.innerProps;
6559
- return jsx86("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
6719
+ return jsx89("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
6560
6720
  indicator: true,
6561
6721
  "dropdown-indicator": true
6562
- }), innerProps), children || jsx86(DownChevron, null));
6722
+ }), innerProps), children || jsx89(DownChevron, null));
6563
6723
  };
6564
6724
  var clearIndicatorCSS = baseCSS;
6565
6725
  var ClearIndicator = function ClearIndicator2(props) {
6566
6726
  var children = props.children, innerProps = props.innerProps;
6567
- return jsx86("div", _extends({}, getStyleProps(props, "clearIndicator", {
6727
+ return jsx89("div", _extends({}, getStyleProps(props, "clearIndicator", {
6568
6728
  indicator: true,
6569
6729
  "clear-indicator": true
6570
- }), innerProps), children || jsx86(CrossIcon, null));
6730
+ }), innerProps), children || jsx89(CrossIcon, null));
6571
6731
  };
6572
6732
  var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
6573
6733
  var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors;
@@ -6583,7 +6743,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
6583
6743
  };
6584
6744
  var IndicatorSeparator = function IndicatorSeparator2(props) {
6585
6745
  var innerProps = props.innerProps;
6586
- return jsx86("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
6746
+ return jsx89("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
6587
6747
  "indicator-separator": true
6588
6748
  })));
6589
6749
  };
@@ -6607,7 +6767,7 @@ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
6607
6767
  };
6608
6768
  var LoadingDot = function LoadingDot2(_ref6) {
6609
6769
  var delay = _ref6.delay, offset2 = _ref6.offset;
6610
- return jsx86("span", {
6770
+ return jsx89("span", {
6611
6771
  css: /* @__PURE__ */ css({
6612
6772
  animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
6613
6773
  backgroundColor: "currentColor",
@@ -6622,20 +6782,20 @@ var LoadingDot = function LoadingDot2(_ref6) {
6622
6782
  };
6623
6783
  var LoadingIndicator = function LoadingIndicator2(_ref7) {
6624
6784
  var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size2 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
6625
- return jsx86("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
6785
+ return jsx89("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
6626
6786
  innerProps,
6627
6787
  isRtl,
6628
6788
  size: size2
6629
6789
  }), "loadingIndicator", {
6630
6790
  indicator: true,
6631
6791
  "loading-indicator": true
6632
- }), innerProps), jsx86(LoadingDot, {
6792
+ }), innerProps), jsx89(LoadingDot, {
6633
6793
  delay: 0,
6634
6794
  offset: isRtl
6635
- }), jsx86(LoadingDot, {
6795
+ }), jsx89(LoadingDot, {
6636
6796
  delay: 160,
6637
6797
  offset: true
6638
- }), jsx86(LoadingDot, {
6798
+ }), jsx89(LoadingDot, {
6639
6799
  delay: 320,
6640
6800
  offset: !isRtl
6641
6801
  }));
@@ -6667,7 +6827,7 @@ var css$1 = function css2(_ref3, unstyled) {
6667
6827
  };
6668
6828
  var Control = function Control2(props) {
6669
6829
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
6670
- return jsx86("div", _extends({
6830
+ return jsx89("div", _extends({
6671
6831
  ref: innerRef
6672
6832
  }, getStyleProps(props, "control", {
6673
6833
  control: true,
@@ -6689,15 +6849,15 @@ var groupCSS = function groupCSS2(_ref3, unstyled) {
6689
6849
  };
6690
6850
  var Group2 = function Group3(props) {
6691
6851
  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;
6692
- return jsx86("div", _extends({}, getStyleProps(props, "group", {
6852
+ return jsx89("div", _extends({}, getStyleProps(props, "group", {
6693
6853
  group: true
6694
- }), innerProps), jsx86(Heading7, _extends({}, headingProps, {
6854
+ }), innerProps), jsx89(Heading7, _extends({}, headingProps, {
6695
6855
  selectProps,
6696
6856
  theme,
6697
6857
  getStyles,
6698
6858
  getClassNames: getClassNames2,
6699
6859
  cx
6700
- }), label), jsx86("div", null, children));
6860
+ }), label), jsx89("div", null, children));
6701
6861
  };
6702
6862
  var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) {
6703
6863
  var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing;
@@ -6719,7 +6879,7 @@ var GroupHeading = function GroupHeading2(props) {
6719
6879
  var _cleanCommonProps = cleanCommonProps(props);
6720
6880
  _cleanCommonProps.data;
6721
6881
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
6722
- return jsx86("div", _extends({}, getStyleProps(props, "groupHeading", {
6882
+ return jsx89("div", _extends({}, getStyleProps(props, "groupHeading", {
6723
6883
  "group-heading": true
6724
6884
  }), innerProps));
6725
6885
  };
@@ -6771,11 +6931,11 @@ var inputStyle = function inputStyle2(isHidden) {
6771
6931
  var Input2 = function Input3(props) {
6772
6932
  var cx = props.cx, value = props.value;
6773
6933
  var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3);
6774
- return jsx86("div", _extends({}, getStyleProps(props, "input", {
6934
+ return jsx89("div", _extends({}, getStyleProps(props, "input", {
6775
6935
  "input-container": true
6776
6936
  }), {
6777
6937
  "data-value": value || ""
6778
- }), jsx86("input", _extends({
6938
+ }), jsx89("input", _extends({
6779
6939
  className: cx({
6780
6940
  input: true
6781
6941
  }, inputClassName),
@@ -6829,35 +6989,35 @@ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
6829
6989
  };
6830
6990
  var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
6831
6991
  var children = _ref4.children, innerProps = _ref4.innerProps;
6832
- return jsx86("div", innerProps, children);
6992
+ return jsx89("div", innerProps, children);
6833
6993
  };
6834
6994
  var MultiValueContainer = MultiValueGeneric;
6835
6995
  var MultiValueLabel = MultiValueGeneric;
6836
6996
  function MultiValueRemove(_ref5) {
6837
6997
  var children = _ref5.children, innerProps = _ref5.innerProps;
6838
- return jsx86("div", _extends({
6998
+ return jsx89("div", _extends({
6839
6999
  role: "button"
6840
- }, innerProps), children || jsx86(CrossIcon, {
7000
+ }, innerProps), children || jsx89(CrossIcon, {
6841
7001
  size: 14
6842
7002
  }));
6843
7003
  }
6844
7004
  var MultiValue = function MultiValue2(props) {
6845
7005
  var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
6846
7006
  var Container2 = components2.Container, Label3 = components2.Label, Remove = components2.Remove;
6847
- return jsx86(Container2, {
7007
+ return jsx89(Container2, {
6848
7008
  data,
6849
7009
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
6850
7010
  "multi-value": true,
6851
7011
  "multi-value--is-disabled": isDisabled
6852
7012
  })), innerProps),
6853
7013
  selectProps
6854
- }, jsx86(Label3, {
7014
+ }, jsx89(Label3, {
6855
7015
  data,
6856
7016
  innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
6857
7017
  "multi-value__label": true
6858
7018
  })),
6859
7019
  selectProps
6860
- }, children), jsx86(Remove, {
7020
+ }, children), jsx89(Remove, {
6861
7021
  data,
6862
7022
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
6863
7023
  "multi-value__remove": true
@@ -6890,7 +7050,7 @@ var optionCSS = function optionCSS2(_ref3, unstyled) {
6890
7050
  };
6891
7051
  var Option = function Option2(props) {
6892
7052
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
6893
- return jsx86("div", _extends({}, getStyleProps(props, "option", {
7053
+ return jsx89("div", _extends({}, getStyleProps(props, "option", {
6894
7054
  option: true,
6895
7055
  "option--is-disabled": isDisabled,
6896
7056
  "option--is-focused": isFocused,
@@ -6914,7 +7074,7 @@ var placeholderCSS = function placeholderCSS2(_ref3, unstyled) {
6914
7074
  };
6915
7075
  var Placeholder = function Placeholder2(props) {
6916
7076
  var children = props.children, innerProps = props.innerProps;
6917
- return jsx86("div", _extends({}, getStyleProps(props, "placeholder", {
7077
+ return jsx89("div", _extends({}, getStyleProps(props, "placeholder", {
6918
7078
  placeholder: true
6919
7079
  }), innerProps), children);
6920
7080
  };
@@ -6936,7 +7096,7 @@ var css3 = function css4(_ref3, unstyled) {
6936
7096
  };
6937
7097
  var SingleValue = function SingleValue2(props) {
6938
7098
  var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
6939
- return jsx86("div", _extends({}, getStyleProps(props, "singleValue", {
7099
+ return jsx89("div", _extends({}, getStyleProps(props, "singleValue", {
6940
7100
  "single-value": true,
6941
7101
  "single-value--is-disabled": isDisabled
6942
7102
  }), innerProps), children);
@@ -7038,7 +7198,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
7038
7198
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
7039
7199
  };
7040
7200
  var A11yText = function A11yText2(props) {
7041
- return jsx86("span", _extends({
7201
+ return jsx89("span", _extends({
7042
7202
  css: _ref
7043
7203
  }, props));
7044
7204
  };
@@ -7099,10 +7259,10 @@ var LiveRegion = function LiveRegion2(props) {
7099
7259
  var ariaLiveMessages = selectProps.ariaLiveMessages, getOptionLabel4 = selectProps.getOptionLabel, inputValue = selectProps.inputValue, isMulti = selectProps.isMulti, isOptionDisabled3 = selectProps.isOptionDisabled, isSearchable = selectProps.isSearchable, menuIsOpen = selectProps.menuIsOpen, options2 = selectProps.options, screenReaderStatus2 = selectProps.screenReaderStatus, tabSelectsValue = selectProps.tabSelectsValue, isLoading = selectProps.isLoading;
7100
7260
  var ariaLabel = selectProps["aria-label"];
7101
7261
  var ariaLive = selectProps["aria-live"];
7102
- var messages = (0, import_react52.useMemo)(function() {
7262
+ var messages = (0, import_react55.useMemo)(function() {
7103
7263
  return _objectSpread2(_objectSpread2({}, defaultAriaLiveMessages), ariaLiveMessages || {});
7104
7264
  }, [ariaLiveMessages]);
7105
- var ariaSelected = (0, import_react52.useMemo)(function() {
7265
+ var ariaSelected = (0, import_react55.useMemo)(function() {
7106
7266
  var message = "";
7107
7267
  if (ariaSelection && messages.onChange) {
7108
7268
  var option = ariaSelection.option, selectedOptions = ariaSelection.options, removedValue = ariaSelection.removedValue, removedValues = ariaSelection.removedValues, value = ariaSelection.value;
@@ -7124,7 +7284,7 @@ var LiveRegion = function LiveRegion2(props) {
7124
7284
  }
7125
7285
  return message;
7126
7286
  }, [ariaSelection, messages, isOptionDisabled3, selectValue, getOptionLabel4]);
7127
- var ariaFocused = (0, import_react52.useMemo)(function() {
7287
+ var ariaFocused = (0, import_react55.useMemo)(function() {
7128
7288
  var focusMsg = "";
7129
7289
  var focused = focusedOption || focusedValue;
7130
7290
  var isSelected = !!(focusedOption && selectValue && selectValue.includes(focusedOption));
@@ -7143,7 +7303,7 @@ var LiveRegion = function LiveRegion2(props) {
7143
7303
  }
7144
7304
  return focusMsg;
7145
7305
  }, [focusedOption, focusedValue, getOptionLabel4, isOptionDisabled3, messages, focusableOptions, selectValue, isAppleDevice2]);
7146
- var ariaResults = (0, import_react52.useMemo)(function() {
7306
+ var ariaResults = (0, import_react55.useMemo)(function() {
7147
7307
  var resultsMsg = "";
7148
7308
  if (menuIsOpen && options2.length && !isLoading && messages.onFilter) {
7149
7309
  var resultsMessage = screenReaderStatus2({
@@ -7157,7 +7317,7 @@ var LiveRegion = function LiveRegion2(props) {
7157
7317
  return resultsMsg;
7158
7318
  }, [focusableOptions, inputValue, menuIsOpen, messages, options2, screenReaderStatus2, isLoading]);
7159
7319
  var isInitialFocus = (ariaSelection === null || ariaSelection === void 0 ? void 0 : ariaSelection.action) === "initial-input-focus";
7160
- var ariaGuidance = (0, import_react52.useMemo)(function() {
7320
+ var ariaGuidance = (0, import_react55.useMemo)(function() {
7161
7321
  var guidanceMsg = "";
7162
7322
  if (messages.guidance) {
7163
7323
  var context = focusedValue ? "value" : menuIsOpen ? "menu" : "input";
@@ -7173,18 +7333,18 @@ var LiveRegion = function LiveRegion2(props) {
7173
7333
  }
7174
7334
  return guidanceMsg;
7175
7335
  }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
7176
- var ScreenReaderText = jsx86(import_react52.Fragment, null, jsx86("span", {
7336
+ var ScreenReaderText = jsx89(import_react55.Fragment, null, jsx89("span", {
7177
7337
  id: "aria-selection"
7178
- }, ariaSelected), jsx86("span", {
7338
+ }, ariaSelected), jsx89("span", {
7179
7339
  id: "aria-focused"
7180
- }, ariaFocused), jsx86("span", {
7340
+ }, ariaFocused), jsx89("span", {
7181
7341
  id: "aria-results"
7182
- }, ariaResults), jsx86("span", {
7342
+ }, ariaResults), jsx89("span", {
7183
7343
  id: "aria-guidance"
7184
7344
  }, ariaGuidance));
7185
- return jsx86(import_react52.Fragment, null, jsx86(A11yText$1, {
7345
+ return jsx89(import_react55.Fragment, null, jsx89(A11yText$1, {
7186
7346
  id
7187
- }, isInitialFocus && ScreenReaderText), jsx86(A11yText$1, {
7347
+ }, isInitialFocus && ScreenReaderText), jsx89(A11yText$1, {
7188
7348
  "aria-live": ariaLive,
7189
7349
  "aria-atomic": "false",
7190
7350
  "aria-relevant": "additions text",
@@ -7497,7 +7657,7 @@ var _excluded4 = ["innerRef"];
7497
7657
  function DummyInput(_ref3) {
7498
7658
  var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4);
7499
7659
  var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
7500
- return jsx86("input", _extends({
7660
+ return jsx89("input", _extends({
7501
7661
  ref: innerRef
7502
7662
  }, filteredProps, {
7503
7663
  css: /* @__PURE__ */ css({
@@ -7529,11 +7689,11 @@ var cancelScroll = function cancelScroll2(event) {
7529
7689
  };
7530
7690
  function useScrollCapture(_ref3) {
7531
7691
  var isEnabled = _ref3.isEnabled, onBottomArrive = _ref3.onBottomArrive, onBottomLeave = _ref3.onBottomLeave, onTopArrive = _ref3.onTopArrive, onTopLeave = _ref3.onTopLeave;
7532
- var isBottom = (0, import_react52.useRef)(false);
7533
- var isTop = (0, import_react52.useRef)(false);
7534
- var touchStart = (0, import_react52.useRef)(0);
7535
- var scrollTarget = (0, import_react52.useRef)(null);
7536
- var handleEventDelta = (0, import_react52.useCallback)(function(event, delta) {
7692
+ var isBottom = (0, import_react55.useRef)(false);
7693
+ var isTop = (0, import_react55.useRef)(false);
7694
+ var touchStart = (0, import_react55.useRef)(0);
7695
+ var scrollTarget = (0, import_react55.useRef)(null);
7696
+ var handleEventDelta = (0, import_react55.useCallback)(function(event, delta) {
7537
7697
  if (scrollTarget.current === null) return;
7538
7698
  var _scrollTarget$current = scrollTarget.current, scrollTop = _scrollTarget$current.scrollTop, scrollHeight = _scrollTarget$current.scrollHeight, clientHeight = _scrollTarget$current.clientHeight;
7539
7699
  var target = scrollTarget.current;
@@ -7567,17 +7727,17 @@ function useScrollCapture(_ref3) {
7567
7727
  cancelScroll(event);
7568
7728
  }
7569
7729
  }, [onBottomArrive, onBottomLeave, onTopArrive, onTopLeave]);
7570
- var onWheel = (0, import_react52.useCallback)(function(event) {
7730
+ var onWheel = (0, import_react55.useCallback)(function(event) {
7571
7731
  handleEventDelta(event, event.deltaY);
7572
7732
  }, [handleEventDelta]);
7573
- var onTouchStart = (0, import_react52.useCallback)(function(event) {
7733
+ var onTouchStart = (0, import_react55.useCallback)(function(event) {
7574
7734
  touchStart.current = event.changedTouches[0].clientY;
7575
7735
  }, []);
7576
- var onTouchMove = (0, import_react52.useCallback)(function(event) {
7736
+ var onTouchMove = (0, import_react55.useCallback)(function(event) {
7577
7737
  var deltaY = touchStart.current - event.changedTouches[0].clientY;
7578
7738
  handleEventDelta(event, deltaY);
7579
7739
  }, [handleEventDelta]);
7580
- var startListening = (0, import_react52.useCallback)(function(el) {
7740
+ var startListening = (0, import_react55.useCallback)(function(el) {
7581
7741
  if (!el) return;
7582
7742
  var notPassive = supportsPassiveEvents ? {
7583
7743
  passive: false
@@ -7586,13 +7746,13 @@ function useScrollCapture(_ref3) {
7586
7746
  el.addEventListener("touchstart", onTouchStart, notPassive);
7587
7747
  el.addEventListener("touchmove", onTouchMove, notPassive);
7588
7748
  }, [onTouchMove, onTouchStart, onWheel]);
7589
- var stopListening = (0, import_react52.useCallback)(function(el) {
7749
+ var stopListening = (0, import_react55.useCallback)(function(el) {
7590
7750
  if (!el) return;
7591
7751
  el.removeEventListener("wheel", onWheel, false);
7592
7752
  el.removeEventListener("touchstart", onTouchStart, false);
7593
7753
  el.removeEventListener("touchmove", onTouchMove, false);
7594
7754
  }, [onTouchMove, onTouchStart, onWheel]);
7595
- (0, import_react52.useEffect)(function() {
7755
+ (0, import_react55.useEffect)(function() {
7596
7756
  if (!isEnabled) return;
7597
7757
  var element = scrollTarget.current;
7598
7758
  startListening(element);
@@ -7639,9 +7799,9 @@ var listenerOptions = {
7639
7799
  };
7640
7800
  function useScrollLock(_ref3) {
7641
7801
  var isEnabled = _ref3.isEnabled, _ref$accountForScroll = _ref3.accountForScrollbars, accountForScrollbars = _ref$accountForScroll === void 0 ? true : _ref$accountForScroll;
7642
- var originalStyles = (0, import_react52.useRef)({});
7643
- var scrollTarget = (0, import_react52.useRef)(null);
7644
- var addScrollLock = (0, import_react52.useCallback)(function(touchScrollTarget) {
7802
+ var originalStyles = (0, import_react55.useRef)({});
7803
+ var scrollTarget = (0, import_react55.useRef)(null);
7804
+ var addScrollLock = (0, import_react55.useCallback)(function(touchScrollTarget) {
7645
7805
  if (!canUseDOM) return;
7646
7806
  var target = document.body;
7647
7807
  var targetStyle = target && target.style;
@@ -7674,7 +7834,7 @@ function useScrollLock(_ref3) {
7674
7834
  }
7675
7835
  activeScrollLocks += 1;
7676
7836
  }, [accountForScrollbars]);
7677
- var removeScrollLock = (0, import_react52.useCallback)(function(touchScrollTarget) {
7837
+ var removeScrollLock = (0, import_react55.useCallback)(function(touchScrollTarget) {
7678
7838
  if (!canUseDOM) return;
7679
7839
  var target = document.body;
7680
7840
  var targetStyle = target && target.style;
@@ -7695,7 +7855,7 @@ function useScrollLock(_ref3) {
7695
7855
  }
7696
7856
  }
7697
7857
  }, [accountForScrollbars]);
7698
- (0, import_react52.useEffect)(function() {
7858
+ (0, import_react55.useEffect)(function() {
7699
7859
  if (!isEnabled) return;
7700
7860
  var element = scrollTarget.current;
7701
7861
  addScrollLock(element);
@@ -7739,7 +7899,7 @@ function ScrollManager(_ref3) {
7739
7899
  setScrollCaptureTarget(element);
7740
7900
  setScrollLockTarget(element);
7741
7901
  };
7742
- return jsx86(import_react52.Fragment, null, lockEnabled && jsx86("div", {
7902
+ return jsx89(import_react55.Fragment, null, lockEnabled && jsx89("div", {
7743
7903
  onClick: blurSelectInput,
7744
7904
  css: _ref2$1
7745
7905
  }), children(targetRef));
@@ -7758,7 +7918,7 @@ var _ref22 = process.env.NODE_ENV === "production" ? {
7758
7918
  };
7759
7919
  var RequiredInput = function RequiredInput2(_ref3) {
7760
7920
  var name = _ref3.name, onFocus2 = _ref3.onFocus;
7761
- return jsx86("input", {
7921
+ return jsx89("input", {
7762
7922
  required: true,
7763
7923
  name,
7764
7924
  tabIndex: -1,
@@ -9322,7 +9482,7 @@ var Select = /* @__PURE__ */ (function(_Component) {
9322
9482
  }
9323
9483
  }]);
9324
9484
  return Select3;
9325
- })(import_react52.Component);
9485
+ })(import_react55.Component);
9326
9486
  Select.defaultProps = defaultProps;
9327
9487
 
9328
9488
  // ../../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
@@ -9338,7 +9498,7 @@ var import_typeof5 = __toESM(require_typeof());
9338
9498
  var import_taggedTemplateLiteral2 = __toESM(require_taggedTemplateLiteral());
9339
9499
  var import_defineProperty3 = __toESM(require_defineProperty());
9340
9500
  var import_react_dom2 = require("react-dom");
9341
- var StateManagedSelect = /* @__PURE__ */ (0, import_react54.forwardRef)(function(props, ref) {
9501
+ var StateManagedSelect = /* @__PURE__ */ (0, import_react57.forwardRef)(function(props, ref) {
9342
9502
  var baseSelectProps = useStateManager(props);
9343
9503
  return /* @__PURE__ */ React11.createElement(Select, _extends({
9344
9504
  ref
@@ -9348,9 +9508,9 @@ var StateManagedSelect$1 = StateManagedSelect;
9348
9508
 
9349
9509
  // src/Multiselect/Multiselect.tsx
9350
9510
  var import_label = require("@react-aria/label");
9351
- var import_utils7 = require("@react-aria/utils");
9352
- var import_system72 = require("@marigold/system");
9353
- var import_jsx_runtime86 = require("react/jsx-runtime");
9511
+ var import_utils8 = require("@react-aria/utils");
9512
+ var import_system73 = require("@marigold/system");
9513
+ var import_jsx_runtime89 = require("react/jsx-runtime");
9354
9514
  var propsToBeRemoved = [
9355
9515
  "clearValue",
9356
9516
  "getStyles",
@@ -9376,8 +9536,8 @@ var Input4 = ({ innerRef, placeholder, hasValue, ...props }) => {
9376
9536
  },
9377
9537
  {}
9378
9538
  );
9379
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
9380
- import_react_aria_components54.Input,
9539
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
9540
+ import_react_aria_components55.Input,
9381
9541
  {
9382
9542
  disabled: props.isDisabled,
9383
9543
  ref: innerRef,
@@ -9387,20 +9547,20 @@ var Input4 = ({ innerRef, placeholder, hasValue, ...props }) => {
9387
9547
  );
9388
9548
  };
9389
9549
  var MultiValueRemove2 = ({ innerProps }) => {
9390
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react_aria_components54.Button, { slot: "remove", ...innerProps, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("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" }) }) });
9550
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_aria_components55.Button, { slot: "remove", ...innerProps, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("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" }) }) });
9391
9551
  };
9392
9552
  var getClassNames = (classNames3) => ({
9393
- control: () => (0, import_system72.cn)(
9553
+ control: () => (0, import_system73.cn)(
9394
9554
  "relative flex items-center box-border flex-wrap justify-between",
9395
9555
  classNames3.container
9396
9556
  ),
9397
9557
  container: () => "pointer-events-auto",
9398
9558
  indicatorSeparator: () => "hidden",
9399
- menu: () => (0, import_system72.cn)("b", classNames3.listContainer),
9400
- menuList: () => (0, import_system72.cn)("overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh] p-0", classNames3.list),
9401
- multiValue: () => (0, import_system72.cn)(classNames3.tag, "m-0 "),
9559
+ menu: () => (0, import_system73.cn)("b", classNames3.listContainer),
9560
+ menuList: () => (0, import_system73.cn)("overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh] p-0", classNames3.list),
9561
+ multiValue: () => (0, import_system73.cn)(classNames3.tag, "m-0 "),
9402
9562
  multiValueLabel: () => "p-0",
9403
- option: ({ isFocused }) => (0, import_system72.cn)(classNames3.option, { isFocused }),
9563
+ option: ({ isFocused }) => (0, import_system73.cn)(classNames3.option, { isFocused }),
9404
9564
  placeholder: () => "hidden",
9405
9565
  valueContainer: () => classNames3.valueContainer
9406
9566
  });
@@ -9423,7 +9583,7 @@ var Multiselect = ({
9423
9583
  width,
9424
9584
  ...rest
9425
9585
  }) => {
9426
- const classNames3 = (0, import_system72.useClassNames)({
9586
+ const classNames3 = (0, import_system73.useClassNames)({
9427
9587
  component: "MultiSelect",
9428
9588
  size: size2,
9429
9589
  variant
@@ -9442,12 +9602,12 @@ var Multiselect = ({
9442
9602
  label: props.label,
9443
9603
  errorMessage
9444
9604
  });
9445
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
9446
- import_react_aria_components54.Provider,
9605
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
9606
+ import_react_aria_components55.Provider,
9447
9607
  {
9448
9608
  values: [
9449
9609
  [
9450
- import_react_aria_components54.FieldErrorContext,
9610
+ import_react_aria_components55.FieldErrorContext,
9451
9611
  {
9452
9612
  isInvalid: !!error,
9453
9613
  validationDetails: {},
@@ -9455,7 +9615,7 @@ var Multiselect = ({
9455
9615
  }
9456
9616
  ],
9457
9617
  [
9458
- import_react_aria_components54.InputContext,
9618
+ import_react_aria_components55.InputContext,
9459
9619
  {
9460
9620
  ...fieldProps,
9461
9621
  placeholder,
@@ -9463,25 +9623,25 @@ var Multiselect = ({
9463
9623
  }
9464
9624
  ],
9465
9625
  [
9466
- import_react_aria_components54.ButtonContext,
9626
+ import_react_aria_components55.ButtonContext,
9467
9627
  {
9468
9628
  // react-select doesn't handle readonly so we had to do it manually here
9469
9629
  // keep to the button disabled in read only to prevent menu from opening
9470
9630
  isDisabled: disabled || readOnly,
9471
- className: (0, import_system72.cn)("flex items-center", classNames3.closeButton)
9631
+ className: (0, import_system73.cn)("flex items-center", classNames3.closeButton)
9472
9632
  }
9473
9633
  ]
9474
9634
  ],
9475
- children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
9635
+ children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
9476
9636
  "div",
9477
9637
  {
9478
- className: (0, import_system72.cn)(classNames3.field, "group/field", `w-${width}`),
9638
+ className: (0, import_system73.cn)(classNames3.field, "group/field", `w-${width}`),
9479
9639
  "data-required": props.required,
9480
9640
  "data-invalid": error,
9481
9641
  "data-readonly": readOnly,
9482
9642
  children: [
9483
- props.label && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(_Label, { ...labelProps, children: props.label }),
9484
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
9643
+ props.label && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(_Label, { ...labelProps, children: props.label }),
9644
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
9485
9645
  StateManagedSelect$1,
9486
9646
  {
9487
9647
  ...props,
@@ -9506,7 +9666,7 @@ var Multiselect = ({
9506
9666
  inputId: fieldProps.id,
9507
9667
  "aria-invalid": error,
9508
9668
  isClearable: false,
9509
- instanceId: (0, import_utils7.useId)(),
9669
+ instanceId: (0, import_utils8.useId)(),
9510
9670
  isSearchable: !readOnly,
9511
9671
  isMulti: true,
9512
9672
  closeMenuOnSelect: false,
@@ -9517,19 +9677,19 @@ var Multiselect = ({
9517
9677
  Input: Input4,
9518
9678
  MultiValueRemove: MultiValueRemove2,
9519
9679
  // eslint-disable-next-line react/prop-types
9520
- DropdownIndicator: ({ innerProps, isDisabled }) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
9680
+ DropdownIndicator: ({ innerProps, isDisabled }) => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
9521
9681
  "button",
9522
9682
  {
9523
9683
  ...innerProps,
9524
9684
  disabled: isDisabled,
9525
9685
  className: classNames3.icon,
9526
- children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ChevronDown, { className: "size-4" })
9686
+ children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(ChevronDown, { className: "size-4" })
9527
9687
  }
9528
9688
  )
9529
9689
  }
9530
9690
  }
9531
9691
  ),
9532
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(HelpText, { description, errorMessage })
9692
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(HelpText, { description, errorMessage })
9533
9693
  ]
9534
9694
  }
9535
9695
  )
@@ -9538,15 +9698,15 @@ var Multiselect = ({
9538
9698
  };
9539
9699
 
9540
9700
  // src/NumberField/NumberField.tsx
9541
- var import_react55 = require("react");
9542
- var import_react_aria_components56 = require("react-aria-components");
9543
- var import_system74 = require("@marigold/system");
9701
+ var import_react58 = require("react");
9702
+ var import_react_aria_components57 = require("react-aria-components");
9703
+ var import_system75 = require("@marigold/system");
9544
9704
 
9545
9705
  // src/NumberField/StepButton.tsx
9546
- var import_react_aria_components55 = require("react-aria-components");
9547
- var import_system73 = require("@marigold/system");
9548
- var import_jsx_runtime87 = require("react/jsx-runtime");
9549
- var Plus = () => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
9706
+ var import_react_aria_components56 = require("react-aria-components");
9707
+ var import_system74 = require("@marigold/system");
9708
+ var import_jsx_runtime90 = require("react/jsx-runtime");
9709
+ var Plus = () => /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
9550
9710
  "path",
9551
9711
  {
9552
9712
  fillRule: "evenodd",
@@ -9554,7 +9714,7 @@ var Plus = () => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("svg", { width: 1
9554
9714
  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"
9555
9715
  }
9556
9716
  ) });
9557
- var Minus = () => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
9717
+ var Minus = () => /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
9558
9718
  "path",
9559
9719
  {
9560
9720
  fillRule: "evenodd",
@@ -9564,10 +9724,10 @@ var Minus = () => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("svg", { width:
9564
9724
  ) });
9565
9725
  var _StepButton = ({ direction, className, ...props }) => {
9566
9726
  const Icon4 = direction === "up" ? Plus : Minus;
9567
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
9568
- import_react_aria_components55.Button,
9727
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
9728
+ import_react_aria_components56.Button,
9569
9729
  {
9570
- className: (0, import_system73.cn)(
9730
+ className: (0, import_system74.cn)(
9571
9731
  [
9572
9732
  "flex items-center justify-center",
9573
9733
  "cursor-pointer data-disabled:cursor-not-allowed"
@@ -9575,14 +9735,14 @@ var _StepButton = ({ direction, className, ...props }) => {
9575
9735
  className
9576
9736
  ),
9577
9737
  ...props,
9578
- children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Icon4, {})
9738
+ children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Icon4, {})
9579
9739
  }
9580
9740
  );
9581
9741
  };
9582
9742
 
9583
9743
  // src/NumberField/NumberField.tsx
9584
- var import_jsx_runtime88 = require("react/jsx-runtime");
9585
- var _NumberField = (0, import_react55.forwardRef)(
9744
+ var import_jsx_runtime91 = require("react/jsx-runtime");
9745
+ var _NumberField = (0, import_react58.forwardRef)(
9586
9746
  ({
9587
9747
  variant,
9588
9748
  size: size2,
@@ -9593,7 +9753,7 @@ var _NumberField = (0, import_react55.forwardRef)(
9593
9753
  hideStepper,
9594
9754
  ...rest
9595
9755
  }, ref) => {
9596
- const classNames3 = (0, import_system74.useClassNames)({
9756
+ const classNames3 = (0, import_system75.useClassNames)({
9597
9757
  component: "NumberField",
9598
9758
  size: size2,
9599
9759
  variant
@@ -9606,15 +9766,15 @@ var _NumberField = (0, import_react55.forwardRef)(
9606
9766
  ...rest
9607
9767
  };
9608
9768
  const showStepper = !hideStepper && !readOnly;
9609
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
9769
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
9610
9770
  FieldBase,
9611
9771
  {
9612
- as: import_react_aria_components56.NumberField,
9772
+ as: import_react_aria_components57.NumberField,
9613
9773
  ...props,
9614
9774
  "data-readonly": readOnly ? "true" : void 0,
9615
9775
  "data-stepper": showStepper ? "true" : void 0,
9616
- children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_react_aria_components56.Group, { className: (0, import_system74.cn)("flex items-stretch", classNames3.group), children: [
9617
- showStepper && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
9776
+ children: /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(import_react_aria_components57.Group, { className: (0, import_system75.cn)("flex items-stretch", classNames3.group), children: [
9777
+ showStepper && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
9618
9778
  _StepButton,
9619
9779
  {
9620
9780
  className: classNames3.stepper,
@@ -9622,14 +9782,14 @@ var _NumberField = (0, import_react55.forwardRef)(
9622
9782
  slot: "decrement"
9623
9783
  }
9624
9784
  ),
9625
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
9626
- import_react_aria_components56.Input,
9785
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
9786
+ import_react_aria_components57.Input,
9627
9787
  {
9628
9788
  ref,
9629
- className: (0, import_system74.cn)("h-full flex-1 outline-none", classNames3.input)
9789
+ className: (0, import_system75.cn)("h-full flex-1 outline-none", classNames3.input)
9630
9790
  }
9631
9791
  ),
9632
- showStepper && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
9792
+ showStepper && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
9633
9793
  _StepButton,
9634
9794
  {
9635
9795
  className: classNames3.stepper,
@@ -9644,28 +9804,28 @@ var _NumberField = (0, import_react55.forwardRef)(
9644
9804
  );
9645
9805
 
9646
9806
  // src/Pagination/Pagination.tsx
9647
- var import_react58 = require("react");
9807
+ var import_react61 = require("react");
9648
9808
  var import_focus2 = require("@react-aria/focus");
9649
- var import_system78 = require("@marigold/system");
9809
+ var import_system79 = require("@marigold/system");
9650
9810
 
9651
9811
  // src/Pagination/Ellipsis.tsx
9652
- var import_system75 = require("@marigold/system");
9653
- var import_jsx_runtime89 = require("react/jsx-runtime");
9812
+ var import_system76 = require("@marigold/system");
9813
+ var import_jsx_runtime92 = require("react/jsx-runtime");
9654
9814
  var Ellipsis = () => {
9655
- const { ellipsis } = (0, import_system75.useClassNames)({
9815
+ const { ellipsis } = (0, import_system76.useClassNames)({
9656
9816
  component: "Pagination"
9657
9817
  });
9658
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("span", { className: ellipsis, "aria-label": "These pages are hidden", children: "\u2026" });
9818
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: ellipsis, "aria-label": "These pages are hidden", children: "\u2026" });
9659
9819
  };
9660
9820
 
9661
9821
  // src/Pagination/NavigationButton.tsx
9662
- var import_react56 = require("react");
9822
+ var import_react59 = require("react");
9663
9823
  var import_button2 = require("@react-aria/button");
9664
- var import_system76 = require("@marigold/system");
9665
- var import_jsx_runtime90 = require("react/jsx-runtime");
9824
+ var import_system77 = require("@marigold/system");
9825
+ var import_jsx_runtime93 = require("react/jsx-runtime");
9666
9826
  var NavigationButton = (props) => {
9667
- const ref = (0, import_react56.useRef)(null);
9668
- const { navigationButton } = (0, import_system76.useClassNames)({
9827
+ const ref = (0, import_react59.useRef)(null);
9828
+ const { navigationButton } = (0, import_system77.useClassNames)({
9669
9829
  component: "Pagination"
9670
9830
  });
9671
9831
  let { buttonProps } = (0, import_button2.useButton)(props, ref);
@@ -9678,14 +9838,14 @@ var NavigationButton = (props) => {
9678
9838
  position: position2,
9679
9839
  ...rest
9680
9840
  } = props;
9681
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
9841
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
9682
9842
  "button",
9683
9843
  {
9684
9844
  ref,
9685
9845
  ...buttonProps,
9686
9846
  ...rest,
9687
9847
  disabled: isDisabled,
9688
- className: (0, import_system76.cn)(navigationButton, controlLabel && "w-24 px-2"),
9848
+ className: (0, import_system77.cn)(navigationButton, controlLabel && "w-24 px-2"),
9689
9849
  "data-selected": isSelected,
9690
9850
  children: [
9691
9851
  position2 === "left" && children,
@@ -9697,18 +9857,18 @@ var NavigationButton = (props) => {
9697
9857
  };
9698
9858
 
9699
9859
  // src/Pagination/PageButton.tsx
9700
- var import_react57 = require("react");
9860
+ var import_react60 = require("react");
9701
9861
  var import_button3 = require("@react-aria/button");
9702
- var import_system77 = require("@marigold/system");
9703
- var import_jsx_runtime91 = require("react/jsx-runtime");
9862
+ var import_system78 = require("@marigold/system");
9863
+ var import_jsx_runtime94 = require("react/jsx-runtime");
9704
9864
  var PageButton = (props) => {
9705
- const ref = (0, import_react57.useRef)(null);
9706
- const { pageButton } = (0, import_system77.useClassNames)({
9865
+ const ref = (0, import_react60.useRef)(null);
9866
+ const { pageButton } = (0, import_system78.useClassNames)({
9707
9867
  component: "Pagination"
9708
9868
  });
9709
9869
  let { buttonProps } = (0, import_button3.useButton)(props, ref);
9710
9870
  let { page, selected, isDisabled } = props;
9711
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
9871
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9712
9872
  "button",
9713
9873
  {
9714
9874
  ref,
@@ -9755,7 +9915,7 @@ var usePageRange = ({ currentPage, totalPages }) => {
9755
9915
  };
9756
9916
 
9757
9917
  // src/Pagination/Pagination.tsx
9758
- var import_jsx_runtime92 = require("react/jsx-runtime");
9918
+ var import_jsx_runtime95 = require("react/jsx-runtime");
9759
9919
  var InnerPagination = ({
9760
9920
  currentPage,
9761
9921
  pageSize,
@@ -9768,8 +9928,8 @@ var InnerPagination = ({
9768
9928
  const focusManager = (0, import_focus2.useFocusManager)();
9769
9929
  const isFirstPage = currentPage === 1;
9770
9930
  const isLastPage = currentPage === totalPages || totalPages === 0;
9771
- const isFirstRender = (0, import_react58.useRef)(true);
9772
- (0, import_react58.useEffect)(() => {
9931
+ const isFirstRender = (0, import_react61.useRef)(true);
9932
+ (0, import_react61.useEffect)(() => {
9773
9933
  if (isFirstRender.current) {
9774
9934
  isFirstRender.current = false;
9775
9935
  return;
@@ -9782,7 +9942,7 @@ var InnerPagination = ({
9782
9942
  onChange2(newPage);
9783
9943
  }
9784
9944
  };
9785
- const { icon, container } = (0, import_system78.useClassNames)({
9945
+ const { icon, container } = (0, import_system79.useClassNames)({
9786
9946
  component: "Pagination"
9787
9947
  });
9788
9948
  const handleKeyDown = (onEnter) => (e) => {
@@ -9797,8 +9957,8 @@ var InnerPagination = ({
9797
9957
  onEnter();
9798
9958
  }
9799
9959
  };
9800
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_jsx_runtime92.Fragment, { children: [
9801
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
9960
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_jsx_runtime95.Fragment, { children: [
9961
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
9802
9962
  NavigationButton,
9803
9963
  {
9804
9964
  onClick: () => handlePageChange(Math.max(1, currentPage - 1)),
@@ -9807,11 +9967,11 @@ var InnerPagination = ({
9807
9967
  controlLabel: controlLabels == null ? void 0 : controlLabels[0],
9808
9968
  position: "left",
9809
9969
  onKeyDown: handleKeyDown(() => handlePageChange(currentPage - 1)),
9810
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(ChevronLeft, { className: icon })
9970
+ children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(ChevronLeft, { className: icon })
9811
9971
  }
9812
9972
  ),
9813
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: container, children: totalPages > 0 ? pageRange.map(
9814
- (pageNumber, index2) => pageNumber === "ellipsis" ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Ellipsis, {}, `ellipsis-${index2}`) : /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
9973
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: container, children: totalPages > 0 ? pageRange.map(
9974
+ (pageNumber, index2) => pageNumber === "ellipsis" ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Ellipsis, {}, `ellipsis-${index2}`) : /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
9815
9975
  PageButton,
9816
9976
  {
9817
9977
  page: pageNumber,
@@ -9821,8 +9981,8 @@ var InnerPagination = ({
9821
9981
  },
9822
9982
  pageNumber
9823
9983
  )
9824
- ) : /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(PageButton, { page: 1, isDisabled: true }, 1) }),
9825
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
9984
+ ) : /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(PageButton, { page: 1, isDisabled: true }, 1) }),
9985
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
9826
9986
  NavigationButton,
9827
9987
  {
9828
9988
  onClick: () => handlePageChange(Math.min(totalPages, currentPage + 1)),
@@ -9831,7 +9991,7 @@ var InnerPagination = ({
9831
9991
  controlLabel: controlLabels == null ? void 0 : controlLabels[1],
9832
9992
  position: "right",
9833
9993
  onKeyDown: handleKeyDown(() => handlePageChange(currentPage + 1)),
9834
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(ChevronRight, { className: icon })
9994
+ children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(ChevronRight, { className: icon })
9835
9995
  }
9836
9996
  )
9837
9997
  ] });
@@ -9843,16 +10003,16 @@ var _Pagination = ({
9843
10003
  pageSize,
9844
10004
  ...props
9845
10005
  }) => {
9846
- const [currentPage, setCurrentPage] = (0, import_react58.useState)(page != null ? page : defaultPage);
10006
+ const [currentPage, setCurrentPage] = (0, import_react61.useState)(page != null ? page : defaultPage);
9847
10007
  const totalPages = Math.ceil(totalItems / pageSize);
9848
10008
  const pageRange = usePageRange({ currentPage, totalPages });
9849
- const { container } = (0, import_system78.useClassNames)({ component: "Pagination" });
9850
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
10009
+ const { container } = (0, import_system79.useClassNames)({ component: "Pagination" });
10010
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
9851
10011
  "nav",
9852
10012
  {
9853
10013
  className: container,
9854
10014
  "aria-label": `Page ${currentPage} of ${totalPages}`,
9855
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_focus2.FocusScope, { restoreFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
10015
+ children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_focus2.FocusScope, { restoreFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
9856
10016
  InnerPagination,
9857
10017
  {
9858
10018
  pageSize,
@@ -9868,23 +10028,23 @@ var _Pagination = ({
9868
10028
  };
9869
10029
 
9870
10030
  // src/Provider/index.ts
9871
- var import_system80 = require("@marigold/system");
9872
- var import_i18n8 = require("@react-aria/i18n");
10031
+ var import_system81 = require("@marigold/system");
10032
+ var import_i18n9 = require("@react-aria/i18n");
9873
10033
 
9874
10034
  // src/Provider/MarigoldProvider.tsx
9875
- var import_system79 = require("@marigold/system");
9876
- var import_jsx_runtime93 = require("react/jsx-runtime");
10035
+ var import_system80 = require("@marigold/system");
10036
+ var import_jsx_runtime96 = require("react/jsx-runtime");
9877
10037
  function MarigoldProvider({
9878
10038
  children,
9879
10039
  className,
9880
10040
  theme
9881
10041
  }) {
9882
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_system79.ThemeProvider, { theme, className, children });
10042
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_system80.ThemeProvider, { theme, className, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(ConfirmationProvider, { children }) });
9883
10043
  }
9884
10044
 
9885
10045
  // src/Provider/OverlayContainerProvider.tsx
9886
10046
  var import_overlays3 = require("@react-aria/overlays");
9887
- var import_jsx_runtime94 = require("react/jsx-runtime");
10047
+ var import_jsx_runtime97 = require("react/jsx-runtime");
9888
10048
  var getContainer = (container) => () => {
9889
10049
  if (container) {
9890
10050
  const element = document.getElementById(container);
@@ -9900,34 +10060,34 @@ var getContainer = (container) => () => {
9900
10060
  var OverlayContainerProvider = ({
9901
10061
  container,
9902
10062
  children
9903
- }) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_overlays3.UNSAFE_PortalProvider, { getContainer: getContainer(container), children });
10063
+ }) => /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_overlays3.UNSAFE_PortalProvider, { getContainer: getContainer(container), children });
9904
10064
 
9905
10065
  // src/Radio/Radio.tsx
9906
- var import_react61 = require("react");
9907
- var import_react_aria_components58 = require("react-aria-components");
9908
- var import_system82 = require("@marigold/system");
10066
+ var import_react64 = require("react");
10067
+ var import_react_aria_components59 = require("react-aria-components");
10068
+ var import_system83 = require("@marigold/system");
9909
10069
 
9910
10070
  // src/Radio/Context.ts
9911
- var import_react59 = require("react");
9912
- var RadioGroupContext = (0, import_react59.createContext)(
10071
+ var import_react62 = require("react");
10072
+ var RadioGroupContext = (0, import_react62.createContext)(
9913
10073
  null
9914
10074
  );
9915
- var useRadioGroupContext = () => (0, import_react59.useContext)(RadioGroupContext);
10075
+ var useRadioGroupContext = () => (0, import_react62.useContext)(RadioGroupContext);
9916
10076
 
9917
10077
  // src/Radio/RadioGroup.tsx
9918
- var import_react60 = require("react");
9919
- var import_react_aria_components57 = require("react-aria-components");
9920
- var import_system81 = require("@marigold/system");
9921
- var import_jsx_runtime95 = require("react/jsx-runtime");
10078
+ var import_react63 = require("react");
10079
+ var import_react_aria_components58 = require("react-aria-components");
10080
+ var import_system82 = require("@marigold/system");
10081
+ var import_jsx_runtime98 = require("react/jsx-runtime");
9922
10082
  var CollapsibleGroup2 = ({ children }) => {
9923
- const state = (0, import_react60.useContext)(import_react_aria_components57.RadioGroupStateContext);
10083
+ const state = (0, import_react63.useContext)(import_react_aria_components58.RadioGroupStateContext);
9924
10084
  if (!children || children.length === 0) {
9925
10085
  return null;
9926
10086
  }
9927
10087
  const defaultExpanded = children.some(
9928
- (child) => (0, import_react60.isValidElement)(child) && state.selectedValue === child.props.value
10088
+ (child) => (0, import_react63.isValidElement)(child) && state.selectedValue === child.props.value
9929
10089
  );
9930
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(More, { defaultExpanded, showCount: true, children });
10090
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(More, { defaultExpanded, showCount: true, children });
9931
10091
  };
9932
10092
  var _RadioGroup = ({
9933
10093
  variant,
@@ -9945,7 +10105,7 @@ var _RadioGroup = ({
9945
10105
  collapseAt,
9946
10106
  ...rest
9947
10107
  }) => {
9948
- const classNames3 = (0, import_system81.useClassNames)({ component: "Radio", variant, size: size2 });
10108
+ const classNames3 = (0, import_system82.useClassNames)({ component: "Radio", variant, size: size2 });
9949
10109
  const props = {
9950
10110
  isDisabled: disabled,
9951
10111
  isReadOnly: readOnly,
@@ -9957,10 +10117,10 @@ var _RadioGroup = ({
9957
10117
  children,
9958
10118
  collapseAt
9959
10119
  );
9960
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
10120
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
9961
10121
  FieldBase,
9962
10122
  {
9963
- as: import_react_aria_components57.RadioGroup,
10123
+ as: import_react_aria_components58.RadioGroup,
9964
10124
  width,
9965
10125
  label,
9966
10126
  description,
@@ -9968,20 +10128,20 @@ var _RadioGroup = ({
9968
10128
  variant,
9969
10129
  size: size2,
9970
10130
  ...props,
9971
- children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
10131
+ children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
9972
10132
  "div",
9973
10133
  {
9974
10134
  role: "presentation",
9975
10135
  "data-testid": "group",
9976
10136
  "data-orientation": orientation,
9977
- className: (0, import_system81.cn)(
10137
+ className: (0, import_system82.cn)(
9978
10138
  classNames3.group,
9979
10139
  "flex items-start",
9980
10140
  orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
9981
10141
  ),
9982
- children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(RadioGroupContext.Provider, { value: { width, variant, size: size2 }, children: [
10142
+ children: /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(RadioGroupContext.Provider, { value: { width, variant, size: size2 }, children: [
9983
10143
  visibleChildren,
9984
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(CollapsibleGroup2, { children: collapsedChildren })
10144
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(CollapsibleGroup2, { children: collapsedChildren })
9985
10145
  ] })
9986
10146
  }
9987
10147
  )
@@ -9990,33 +10150,33 @@ var _RadioGroup = ({
9990
10150
  };
9991
10151
 
9992
10152
  // src/Radio/Radio.tsx
9993
- var import_jsx_runtime96 = require("react/jsx-runtime");
9994
- var Dot = () => /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
9995
- var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
10153
+ var import_jsx_runtime99 = require("react/jsx-runtime");
10154
+ var Dot = () => /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
10155
+ var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
9996
10156
  "div",
9997
10157
  {
9998
- className: (0, import_system82.cn)(
10158
+ className: (0, import_system83.cn)(
9999
10159
  "bg-secondary-50 flex h-4 w-4 items-center justify-center rounded-[50%] border p-1",
10000
10160
  className
10001
10161
  ),
10002
10162
  "aria-hidden": "true",
10003
10163
  ...props,
10004
- children: checked ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Dot, {}) : null
10164
+ children: checked ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Dot, {}) : null
10005
10165
  }
10006
10166
  );
10007
- var _Radio = (0, import_react61.forwardRef)(
10167
+ var _Radio = (0, import_react64.forwardRef)(
10008
10168
  ({ value, disabled, width, children, ...props }, ref) => {
10009
10169
  const { variant, size: size2, width: groupWidth } = useRadioGroupContext();
10010
- const classNames3 = (0, import_system82.useClassNames)({
10170
+ const classNames3 = (0, import_system83.useClassNames)({
10011
10171
  component: "Radio",
10012
10172
  variant: variant || props.variant,
10013
10173
  size: size2 || props.size
10014
10174
  });
10015
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
10016
- import_react_aria_components58.Radio,
10175
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
10176
+ import_react_aria_components59.Radio,
10017
10177
  {
10018
10178
  ref,
10019
- className: (0, import_system82.cn)(
10179
+ className: (0, import_system83.cn)(
10020
10180
  "group/radio",
10021
10181
  "relative flex items-center gap-[1ch]",
10022
10182
  width || groupWidth || "w-full",
@@ -10025,18 +10185,18 @@ var _Radio = (0, import_react61.forwardRef)(
10025
10185
  value,
10026
10186
  isDisabled: disabled,
10027
10187
  ...props,
10028
- children: ({ isSelected }) => /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_jsx_runtime96.Fragment, { children: [
10029
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
10188
+ children: ({ isSelected }) => /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_jsx_runtime99.Fragment, { children: [
10189
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
10030
10190
  Icon3,
10031
10191
  {
10032
10192
  checked: isSelected,
10033
- className: (0, import_system82.cn)(
10193
+ className: (0, import_system83.cn)(
10034
10194
  disabled ? "cursor-not-allowed" : "cursor-pointer",
10035
10195
  classNames3.radio
10036
10196
  )
10037
10197
  }
10038
10198
  ),
10039
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: classNames3.label, children })
10199
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: classNames3.label, children })
10040
10200
  ] })
10041
10201
  }
10042
10202
  );
@@ -10045,10 +10205,10 @@ var _Radio = (0, import_react61.forwardRef)(
10045
10205
  _Radio.Group = _RadioGroup;
10046
10206
 
10047
10207
  // src/SearchField/SearchField.tsx
10048
- var import_react62 = require("react");
10049
- var import_react_aria_components59 = require("react-aria-components");
10050
- var import_jsx_runtime97 = require("react/jsx-runtime");
10051
- var _SearchField = (0, import_react62.forwardRef)(
10208
+ var import_react65 = require("react");
10209
+ var import_react_aria_components60 = require("react-aria-components");
10210
+ var import_jsx_runtime100 = require("react/jsx-runtime");
10211
+ var _SearchField = (0, import_react65.forwardRef)(
10052
10212
  ({ disabled, required, readOnly, error, action, ...rest }, ref) => {
10053
10213
  const props = {
10054
10214
  ...rest,
@@ -10057,7 +10217,7 @@ var _SearchField = (0, import_react62.forwardRef)(
10057
10217
  isReadOnly: readOnly,
10058
10218
  isInvalid: error
10059
10219
  };
10060
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(FieldBase, { as: import_react_aria_components59.SearchField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
10220
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(FieldBase, { as: import_react_aria_components60.SearchField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
10061
10221
  SearchInput,
10062
10222
  {
10063
10223
  ref,
@@ -10068,11 +10228,11 @@ var _SearchField = (0, import_react62.forwardRef)(
10068
10228
  );
10069
10229
 
10070
10230
  // src/Select/Select.tsx
10071
- var import_react63 = require("react");
10072
- var import_react_aria_components60 = require("react-aria-components");
10073
- var import_system83 = require("@marigold/system");
10074
- var import_jsx_runtime98 = require("react/jsx-runtime");
10075
- var _Select = (0, import_react63.forwardRef)(
10231
+ var import_react66 = require("react");
10232
+ var import_react_aria_components61 = require("react-aria-components");
10233
+ var import_system84 = require("@marigold/system");
10234
+ var import_jsx_runtime101 = require("react/jsx-runtime");
10235
+ var _Select = (0, import_react66.forwardRef)(
10076
10236
  ({
10077
10237
  disabled,
10078
10238
  required,
@@ -10092,22 +10252,22 @@ var _Select = (0, import_react63.forwardRef)(
10092
10252
  onSelectionChange: onChange2,
10093
10253
  ...rest
10094
10254
  };
10095
- const classNames3 = (0, import_system83.useClassNames)({ component: "Select", variant, size: size2 });
10096
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(FieldBase, { as: import_react_aria_components60.Select, ref, variant, size: size2, ...props, children: [
10097
- /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
10255
+ const classNames3 = (0, import_system84.useClassNames)({ component: "Select", variant, size: size2 });
10256
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(FieldBase, { as: import_react_aria_components61.Select, ref, variant, size: size2, ...props, children: [
10257
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(
10098
10258
  IconButton,
10099
10259
  {
10100
- className: (0, import_system83.cn)(
10260
+ className: (0, import_system84.cn)(
10101
10261
  "flex w-full items-center justify-between gap-1 overflow-hidden",
10102
10262
  classNames3.select
10103
10263
  ),
10104
10264
  children: [
10105
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_react_aria_components60.SelectValue, { className: "[&>[slot=description]]:hidden" }),
10106
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(ChevronDown, { className: (0, import_system83.cn)("size-4", classNames3.icon) })
10265
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_react_aria_components61.SelectValue, { className: "[&>[slot=description]]:hidden" }),
10266
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(ChevronDown, { className: (0, import_system84.cn)("size-4", classNames3.icon) })
10107
10267
  ]
10108
10268
  }
10109
10269
  ),
10110
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(_ListBox, { items, children: props.children }) })
10270
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(_ListBox, { items, children: props.children }) })
10111
10271
  ] });
10112
10272
  }
10113
10273
  );
@@ -10115,27 +10275,27 @@ _Select.Option = _ListBox.Item;
10115
10275
  _Select.Section = _ListBox.Section;
10116
10276
 
10117
10277
  // src/SelectList/SelectList.tsx
10118
- var import_react66 = require("react");
10119
- var import_react_aria_components62 = require("react-aria-components");
10120
- var import_system85 = require("@marigold/system");
10278
+ var import_react69 = require("react");
10279
+ var import_react_aria_components63 = require("react-aria-components");
10280
+ var import_system86 = require("@marigold/system");
10121
10281
 
10122
10282
  // src/SelectList/Context.ts
10123
- var import_react64 = require("react");
10124
- var SelectListContext = (0, import_react64.createContext)(
10283
+ var import_react67 = require("react");
10284
+ var SelectListContext = (0, import_react67.createContext)(
10125
10285
  {}
10126
10286
  );
10127
- var useSelectListContext = () => (0, import_react64.useContext)(SelectListContext);
10287
+ var useSelectListContext = () => (0, import_react67.useContext)(SelectListContext);
10128
10288
 
10129
10289
  // src/SelectList/SelectListAction.tsx
10130
- var import_jsx_runtime99 = require("react/jsx-runtime");
10131
- var SelectListAction = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "order-last", children });
10290
+ var import_jsx_runtime102 = require("react/jsx-runtime");
10291
+ var SelectListAction = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: "order-last", children });
10132
10292
 
10133
10293
  // src/SelectList/SelectListItem.tsx
10134
- var import_react65 = require("react");
10135
- var import_react_aria_components61 = require("react-aria-components");
10136
- var import_system84 = require("@marigold/system");
10137
- var import_jsx_runtime100 = require("react/jsx-runtime");
10138
- var CheckMark3 = ({ className }) => /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("svg", { width: "12px", height: "10px", viewBox: "0 0 12 10", className, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
10294
+ var import_react68 = require("react");
10295
+ var import_react_aria_components62 = require("react-aria-components");
10296
+ var import_system85 = require("@marigold/system");
10297
+ var import_jsx_runtime103 = require("react/jsx-runtime");
10298
+ var CheckMark3 = ({ className }) => /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("svg", { width: "12px", height: "10px", viewBox: "0 0 12 10", className, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
10139
10299
  "path",
10140
10300
  {
10141
10301
  fill: "currentColor",
@@ -10146,30 +10306,30 @@ var CheckMark3 = ({ className }) => /* @__PURE__ */ (0, import_jsx_runtime100.js
10146
10306
  var SelectionIndicator = ({ selectionMode }) => {
10147
10307
  switch (selectionMode) {
10148
10308
  case "multiple": {
10149
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(_Checkbox, { slot: "selection" });
10309
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(_Checkbox, { slot: "selection" });
10150
10310
  }
10151
10311
  case "single": {
10152
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(CheckMark3, { className: "invisible hidden" });
10312
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(CheckMark3, { className: "invisible hidden" });
10153
10313
  }
10154
10314
  }
10155
10315
  };
10156
- var _SelectListItem = (0, import_react65.forwardRef)(
10316
+ var _SelectListItem = (0, import_react68.forwardRef)(
10157
10317
  ({ children, disabled, ...props }, ref) => {
10158
10318
  let textValue = typeof children === "string" ? children : void 0;
10159
10319
  const { classNames: classNames3 } = useSelectListContext();
10160
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
10161
- import_react_aria_components61.GridListItem,
10320
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
10321
+ import_react_aria_components62.GridListItem,
10162
10322
  {
10163
10323
  isDisabled: disabled,
10164
10324
  textValue,
10165
10325
  ...props,
10166
- className: (0, import_system84.cn)(
10326
+ className: (0, import_system85.cn)(
10167
10327
  classNames3 == null ? void 0 : classNames3.item,
10168
10328
  "grid grid-flow-col [grid-template-columns:min-content_1fr]"
10169
10329
  ),
10170
10330
  ref,
10171
- children: ({ selectionMode }) => /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: "selection-indicator contents", children: [
10172
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(SelectionIndicator, { selectionMode }),
10331
+ children: ({ selectionMode }) => /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "selection-indicator contents", children: [
10332
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(SelectionIndicator, { selectionMode }),
10173
10333
  children
10174
10334
  ] })
10175
10335
  }
@@ -10178,21 +10338,21 @@ var _SelectListItem = (0, import_react65.forwardRef)(
10178
10338
  );
10179
10339
 
10180
10340
  // src/SelectList/SelectList.tsx
10181
- var import_jsx_runtime101 = require("react/jsx-runtime");
10182
- var _SelectList = (0, import_react66.forwardRef)(
10341
+ var import_jsx_runtime104 = require("react/jsx-runtime");
10342
+ var _SelectList = (0, import_react69.forwardRef)(
10183
10343
  ({ onChange: onChange2, ...rest }, ref) => {
10184
- const classNames3 = (0, import_system85.useClassNames)({ component: "ListBox" });
10344
+ const classNames3 = (0, import_system86.useClassNames)({ component: "ListBox" });
10185
10345
  const props = {
10186
10346
  onSelectionChange: onChange2,
10187
10347
  ...rest
10188
10348
  };
10189
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(SelectListContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: classNames3.container, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
10190
- import_react_aria_components62.GridList,
10349
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(SelectListContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: classNames3.container, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
10350
+ import_react_aria_components63.GridList,
10191
10351
  {
10192
10352
  ...props,
10193
10353
  layout: "grid",
10194
10354
  ref,
10195
- className: (0, import_system85.cn)(
10355
+ className: (0, import_system86.cn)(
10196
10356
  "group/list overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh]",
10197
10357
  classNames3.list
10198
10358
  ),
@@ -10205,32 +10365,32 @@ _SelectList.Item = _SelectListItem;
10205
10365
  _SelectList.Action = SelectListAction;
10206
10366
 
10207
10367
  // src/Scrollable/Scrollable.tsx
10208
- var import_system86 = require("@marigold/system");
10209
- var import_jsx_runtime102 = require("react/jsx-runtime");
10368
+ var import_system87 = require("@marigold/system");
10369
+ var import_jsx_runtime105 = require("react/jsx-runtime");
10210
10370
  var Scrollable = ({
10211
10371
  children,
10212
10372
  width = "full",
10213
10373
  height,
10214
10374
  ...props
10215
- }) => /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
10375
+ }) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
10216
10376
  "div",
10217
10377
  {
10218
10378
  ...props,
10219
- className: (0, import_system86.cn)([
10379
+ className: (0, import_system87.cn)([
10220
10380
  "sticky h-(--height) overflow-auto overscroll-none",
10221
- import_system86.width[width]
10381
+ import_system87.width[width]
10222
10382
  ]),
10223
- style: (0, import_system86.createVar)({ height }),
10383
+ style: (0, import_system87.createVar)({ height }),
10224
10384
  children
10225
10385
  }
10226
10386
  );
10227
10387
 
10228
10388
  // src/Slider/Slider.tsx
10229
- var import_react67 = require("react");
10230
- var import_react_aria_components63 = require("react-aria-components");
10231
- var import_system87 = require("@marigold/system");
10232
- var import_jsx_runtime103 = require("react/jsx-runtime");
10233
- var _Slider = (0, import_react67.forwardRef)(
10389
+ var import_react70 = require("react");
10390
+ var import_react_aria_components64 = require("react-aria-components");
10391
+ var import_system88 = require("@marigold/system");
10392
+ var import_jsx_runtime106 = require("react/jsx-runtime");
10393
+ var _Slider = (0, import_react70.forwardRef)(
10234
10394
  ({
10235
10395
  variant,
10236
10396
  size: size2,
@@ -10241,7 +10401,7 @@ var _Slider = (0, import_react67.forwardRef)(
10241
10401
  thumbLabels,
10242
10402
  ...rest
10243
10403
  }, ref) => {
10244
- const classNames3 = (0, import_system87.useClassNames)({
10404
+ const classNames3 = (0, import_system88.useClassNames)({
10245
10405
  component: "Slider",
10246
10406
  variant,
10247
10407
  size: size2
@@ -10251,38 +10411,38 @@ var _Slider = (0, import_react67.forwardRef)(
10251
10411
  isDisabled: disabled,
10252
10412
  ...rest
10253
10413
  };
10254
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
10414
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
10255
10415
  FieldBase,
10256
10416
  {
10257
- as: import_react_aria_components63.Slider,
10258
- className: (0, import_system87.cn)(
10417
+ as: import_react_aria_components64.Slider,
10418
+ className: (0, import_system88.cn)(
10259
10419
  "grid grid-cols-[auto_1fr] gap-y-1",
10260
10420
  classNames3.container,
10261
- import_system87.width[width]
10421
+ import_system88.width[width]
10262
10422
  ),
10263
10423
  ref,
10264
10424
  ...props,
10265
10425
  children: [
10266
- label && /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(_Label, { children: label }),
10267
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_react_aria_components63.SliderOutput, { className: (0, import_system87.cn)("flex justify-end", classNames3.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" - ") }),
10268
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
10269
- import_react_aria_components63.SliderTrack,
10426
+ label && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(_Label, { children: label }),
10427
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_react_aria_components64.SliderOutput, { className: (0, import_system88.cn)("flex justify-end", classNames3.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" - ") }),
10428
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
10429
+ import_react_aria_components64.SliderTrack,
10270
10430
  {
10271
- className: (0, import_system87.cn)("relative col-span-2 h-2 w-full", classNames3.track),
10272
- children: ({ state }) => /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_jsx_runtime103.Fragment, { children: [
10273
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
10431
+ className: (0, import_system88.cn)("relative col-span-2 h-2 w-full", classNames3.track),
10432
+ children: ({ state }) => /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_jsx_runtime106.Fragment, { children: [
10433
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
10274
10434
  "div",
10275
10435
  {
10276
- className: (0, import_system87.cn)(
10436
+ className: (0, import_system88.cn)(
10277
10437
  "absolute top-[50%] h-2 w-full translate-y-[-50%]",
10278
10438
  classNames3.track
10279
10439
  )
10280
10440
  }
10281
10441
  ),
10282
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
10442
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
10283
10443
  "div",
10284
10444
  {
10285
- className: (0, import_system87.cn)(
10445
+ className: (0, import_system88.cn)(
10286
10446
  "absolute top-[50%] h-2 translate-y-[-50%]",
10287
10447
  classNames3.selectedTrack
10288
10448
  ),
@@ -10292,10 +10452,10 @@ var _Slider = (0, import_react67.forwardRef)(
10292
10452
  }
10293
10453
  }
10294
10454
  ),
10295
- state.values.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
10296
- import_react_aria_components63.SliderThumb,
10455
+ state.values.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
10456
+ import_react_aria_components64.SliderThumb,
10297
10457
  {
10298
- className: (0, import_system87.cn)("top-1/2 cursor-pointer", classNames3.thumb),
10458
+ className: (0, import_system88.cn)("top-1/2 cursor-pointer", classNames3.thumb),
10299
10459
  index: i,
10300
10460
  "aria-label": thumbLabels == null ? void 0 : thumbLabels[i],
10301
10461
  name: names == null ? void 0 : names[i]
@@ -10312,13 +10472,13 @@ var _Slider = (0, import_react67.forwardRef)(
10312
10472
  );
10313
10473
 
10314
10474
  // src/Split/Split.tsx
10315
- var import_jsx_runtime104 = require("react/jsx-runtime");
10316
- var Split = () => /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { role: "separator", className: "grow" });
10475
+ var import_jsx_runtime107 = require("react/jsx-runtime");
10476
+ var Split = () => /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { role: "separator", className: "grow" });
10317
10477
 
10318
10478
  // src/Stack/Stack.tsx
10319
- var import_react68 = require("react");
10320
- var import_system88 = require("@marigold/system");
10321
- var import_jsx_runtime105 = require("react/jsx-runtime");
10479
+ var import_react71 = require("react");
10480
+ var import_system89 = require("@marigold/system");
10481
+ var import_jsx_runtime108 = require("react/jsx-runtime");
10322
10482
  var Stack = ({
10323
10483
  children,
10324
10484
  space = 0,
@@ -10330,15 +10490,15 @@ var Stack = ({
10330
10490
  }) => {
10331
10491
  var _a, _b, _c, _d;
10332
10492
  const Component2 = asList ? "ul" : "div";
10333
- const stackChildren = asList ? import_react68.Children.map(children, (child) => child != null ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("li", { children: child }) : null) : children;
10334
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
10493
+ const stackChildren = asList ? import_react71.Children.map(children, (child) => child != null ? /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("li", { children: child }) : null) : children;
10494
+ return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
10335
10495
  Component2,
10336
10496
  {
10337
- className: (0, import_system88.cn)(
10497
+ className: (0, import_system89.cn)(
10338
10498
  "flex flex-col",
10339
- import_system88.gapSpace[space],
10340
- alignX && ((_b = (_a = import_system88.alignment) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
10341
- alignY && ((_d = (_c = import_system88.alignment) == null ? void 0 : _c.vertical) == null ? void 0 : _d.alignmentY[alignY]),
10499
+ import_system89.gapSpace[space],
10500
+ alignX && ((_b = (_a = import_system89.alignment) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
10501
+ alignY && ((_d = (_c = import_system89.alignment) == null ? void 0 : _c.vertical) == null ? void 0 : _d.alignmentY[alignY]),
10342
10502
  stretch && "h-full w-full"
10343
10503
  ),
10344
10504
  ...props,
@@ -10348,11 +10508,11 @@ var Stack = ({
10348
10508
  };
10349
10509
 
10350
10510
  // src/Switch/Switch.tsx
10351
- var import_react69 = require("react");
10352
- var import_react_aria_components64 = require("react-aria-components");
10353
- var import_system89 = require("@marigold/system");
10354
- var import_jsx_runtime106 = require("react/jsx-runtime");
10355
- var _Switch = (0, import_react69.forwardRef)(
10511
+ var import_react72 = require("react");
10512
+ var import_react_aria_components65 = require("react-aria-components");
10513
+ var import_system90 = require("@marigold/system");
10514
+ var import_jsx_runtime109 = require("react/jsx-runtime");
10515
+ var _Switch = (0, import_react72.forwardRef)(
10356
10516
  ({
10357
10517
  variant,
10358
10518
  size: size2,
@@ -10363,27 +10523,27 @@ var _Switch = (0, import_react69.forwardRef)(
10363
10523
  readOnly,
10364
10524
  ...rest
10365
10525
  }, ref) => {
10366
- const classNames3 = (0, import_system89.useClassNames)({ component: "Switch", size: size2, variant });
10526
+ const classNames3 = (0, import_system90.useClassNames)({ component: "Switch", size: size2, variant });
10367
10527
  const props = {
10368
10528
  isDisabled: disabled,
10369
10529
  isReadOnly: readOnly,
10370
10530
  isSelected: selected,
10371
10531
  ...rest
10372
10532
  };
10373
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
10374
- import_react_aria_components64.Switch,
10533
+ return /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(
10534
+ import_react_aria_components65.Switch,
10375
10535
  {
10376
10536
  ...props,
10377
10537
  ref,
10378
- className: (0, import_system89.cn)(
10379
- import_system89.width[width],
10538
+ className: (0, import_system90.cn)(
10539
+ import_system90.width[width],
10380
10540
  "group/switch",
10381
10541
  "flex items-center gap-[1ch]",
10382
10542
  classNames3.container
10383
10543
  ),
10384
10544
  children: [
10385
- label && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(_Label, { elementType: "span", children: label }),
10386
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: classNames3.track, children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: classNames3.thumb }) }) })
10545
+ label && /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(_Label, { elementType: "span", children: label }),
10546
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("div", { className: classNames3.track, children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("div", { className: classNames3.thumb }) }) })
10387
10547
  ]
10388
10548
  }
10389
10549
  );
@@ -10391,19 +10551,19 @@ var _Switch = (0, import_react69.forwardRef)(
10391
10551
  );
10392
10552
 
10393
10553
  // src/Table/Table.tsx
10394
- var import_react77 = require("react");
10554
+ var import_react80 = require("react");
10395
10555
  var import_table9 = require("@react-aria/table");
10396
10556
  var import_table10 = require("@react-stately/table");
10397
- var import_system96 = require("@marigold/system");
10557
+ var import_system97 = require("@marigold/system");
10398
10558
 
10399
10559
  // src/Table/Context.tsx
10400
- var import_react70 = require("react");
10401
- var TableContext = (0, import_react70.createContext)({});
10402
- var useTableContext = () => (0, import_react70.useContext)(TableContext);
10560
+ var import_react73 = require("react");
10561
+ var TableContext = (0, import_react73.createContext)({});
10562
+ var useTableContext = () => (0, import_react73.useContext)(TableContext);
10403
10563
 
10404
10564
  // src/Table/TableBody.tsx
10405
10565
  var import_table = require("@react-aria/table");
10406
- var import_jsx_runtime107 = require("react/jsx-runtime");
10566
+ var import_jsx_runtime110 = require("react/jsx-runtime");
10407
10567
  var TableBody = ({
10408
10568
  children,
10409
10569
  className,
@@ -10412,7 +10572,7 @@ var TableBody = ({
10412
10572
  const { rowGroupProps } = (0, import_table.useTableRowGroup)();
10413
10573
  const { state, classNames: classNames3 } = useTableContext();
10414
10574
  if (state.collection.size === 0 && emptyState) {
10415
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("tbody", { className, "data-rac": true, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("tr", { className: classNames3 == null ? void 0 : classNames3.row, role: "row", "data-rac": true, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
10575
+ return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("tbody", { className, "data-rac": true, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("tr", { className: classNames3 == null ? void 0 : classNames3.row, role: "row", "data-rac": true, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
10416
10576
  "td",
10417
10577
  {
10418
10578
  className: classNames3 == null ? void 0 : classNames3.cell,
@@ -10423,22 +10583,22 @@ var TableBody = ({
10423
10583
  }
10424
10584
  ) }) });
10425
10585
  }
10426
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("tbody", { ...rowGroupProps, className, "data-rac": true, children });
10586
+ return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("tbody", { ...rowGroupProps, className, "data-rac": true, children });
10427
10587
  };
10428
10588
 
10429
10589
  // src/Table/TableCell.tsx
10430
- var import_react71 = require("react");
10590
+ var import_react74 = require("react");
10431
10591
  var import_focus3 = require("@react-aria/focus");
10432
10592
  var import_table2 = require("@react-aria/table");
10433
- var import_utils8 = require("@react-aria/utils");
10434
- var import_system90 = require("@marigold/system");
10435
- var import_jsx_runtime108 = require("react/jsx-runtime");
10593
+ var import_utils9 = require("@react-aria/utils");
10594
+ var import_system91 = require("@marigold/system");
10595
+ var import_jsx_runtime111 = require("react/jsx-runtime");
10436
10596
  var TableCell = ({
10437
10597
  cell,
10438
10598
  align = "left",
10439
10599
  alignY = "middle"
10440
10600
  }) => {
10441
- const ref = (0, import_react71.useRef)(null);
10601
+ const ref = (0, import_react74.useRef)(null);
10442
10602
  const { interactive, state, classNames: classNames3 } = useTableContext();
10443
10603
  const disabled = state.disabledKeys.has(cell.parentKey);
10444
10604
  const { gridCellProps } = (0, import_table2.useTableCell)(
@@ -10458,13 +10618,13 @@ var TableCell = ({
10458
10618
  onPointerDown: (e) => e.stopPropagation()
10459
10619
  };
10460
10620
  const { focusProps, isFocusVisible } = (0, import_focus3.useFocusRing)();
10461
- const stateProps = (0, import_system90.useStateProps)({ disabled, focusVisible: isFocusVisible });
10462
- return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
10621
+ const stateProps = (0, import_system91.useStateProps)({ disabled, focusVisible: isFocusVisible });
10622
+ return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10463
10623
  "td",
10464
10624
  {
10465
10625
  ref,
10466
10626
  className: classNames3 == null ? void 0 : classNames3.cell,
10467
- ...(0, import_utils8.mergeProps)(cellProps, focusProps),
10627
+ ...(0, import_utils9.mergeProps)(cellProps, focusProps),
10468
10628
  ...stateProps,
10469
10629
  align,
10470
10630
  valign: alignY,
@@ -10475,11 +10635,11 @@ var TableCell = ({
10475
10635
  };
10476
10636
 
10477
10637
  // src/Table/TableCheckboxCell.tsx
10478
- var import_react72 = require("react");
10638
+ var import_react75 = require("react");
10479
10639
  var import_focus4 = require("@react-aria/focus");
10480
10640
  var import_table3 = require("@react-aria/table");
10481
- var import_utils9 = require("@react-aria/utils");
10482
- var import_system91 = require("@marigold/system");
10641
+ var import_utils10 = require("@react-aria/utils");
10642
+ var import_system92 = require("@marigold/system");
10483
10643
 
10484
10644
  // src/Table/utils.ts
10485
10645
  var mapCheckboxProps = ({
@@ -10502,12 +10662,12 @@ var mapCheckboxProps = ({
10502
10662
  };
10503
10663
 
10504
10664
  // src/Table/TableCheckboxCell.tsx
10505
- var import_jsx_runtime109 = require("react/jsx-runtime");
10665
+ var import_jsx_runtime112 = require("react/jsx-runtime");
10506
10666
  var TableCheckboxCell = ({
10507
10667
  cell,
10508
10668
  alignY = "middle"
10509
10669
  }) => {
10510
- const ref = (0, import_react72.useRef)(null);
10670
+ const ref = (0, import_react75.useRef)(null);
10511
10671
  const { state, classNames: classNames3 } = useTableContext();
10512
10672
  const disabled = state.disabledKeys.has(cell.parentKey);
10513
10673
  const { gridCellProps } = (0, import_table3.useTableCell)(
@@ -10521,36 +10681,36 @@ var TableCheckboxCell = ({
10521
10681
  (0, import_table3.useTableSelectionCheckbox)({ key: cell.parentKey }, state)
10522
10682
  );
10523
10683
  const { focusProps, isFocusVisible } = (0, import_focus4.useFocusRing)();
10524
- const stateProps = (0, import_system91.useStateProps)({ disabled, focusVisible: isFocusVisible });
10525
- return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
10684
+ const stateProps = (0, import_system92.useStateProps)({ disabled, focusVisible: isFocusVisible });
10685
+ return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
10526
10686
  "td",
10527
10687
  {
10528
10688
  ref,
10529
- className: (0, import_system91.cn)("leading-none", classNames3 == null ? void 0 : classNames3.cell),
10530
- ...(0, import_utils9.mergeProps)(gridCellProps, focusProps),
10689
+ className: (0, import_system92.cn)("leading-none", classNames3 == null ? void 0 : classNames3.cell),
10690
+ ...(0, import_utils10.mergeProps)(gridCellProps, focusProps),
10531
10691
  ...stateProps,
10532
10692
  valign: alignY,
10533
10693
  "data-rac": true,
10534
- children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(_Checkbox, { ...checkboxProps })
10694
+ children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(_Checkbox, { ...checkboxProps })
10535
10695
  }
10536
10696
  );
10537
10697
  };
10538
10698
 
10539
10699
  // src/Table/TableColumnHeader.tsx
10540
- var import_react73 = require("react");
10700
+ var import_react76 = require("react");
10541
10701
  var import_focus5 = require("@react-aria/focus");
10542
10702
  var import_interactions2 = require("@react-aria/interactions");
10543
10703
  var import_table4 = require("@react-aria/table");
10544
- var import_utils11 = require("@react-aria/utils");
10545
- var import_system92 = require("@marigold/system");
10546
- var import_jsx_runtime110 = require("react/jsx-runtime");
10704
+ var import_utils12 = require("@react-aria/utils");
10705
+ var import_system93 = require("@marigold/system");
10706
+ var import_jsx_runtime113 = require("react/jsx-runtime");
10547
10707
  var TableColumnHeader = ({
10548
10708
  column: column2,
10549
10709
  width = "auto",
10550
10710
  align = "left"
10551
10711
  }) => {
10552
10712
  var _a, _b;
10553
- const ref = (0, import_react73.useRef)(null);
10713
+ const ref = (0, import_react76.useRef)(null);
10554
10714
  const { state, classNames: classNames3 } = useTableContext();
10555
10715
  const { columnHeaderProps } = (0, import_table4.useTableColumnHeader)(
10556
10716
  {
@@ -10561,23 +10721,23 @@ var TableColumnHeader = ({
10561
10721
  );
10562
10722
  const { hoverProps, isHovered } = (0, import_interactions2.useHover)({});
10563
10723
  const { focusProps, isFocusVisible } = (0, import_focus5.useFocusRing)();
10564
- const stateProps = (0, import_system92.useStateProps)({
10724
+ const stateProps = (0, import_system93.useStateProps)({
10565
10725
  hover: isHovered,
10566
10726
  focusVisible: isFocusVisible
10567
10727
  });
10568
- return /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(
10728
+ return /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(
10569
10729
  "th",
10570
10730
  {
10571
10731
  colSpan: column2.colspan,
10572
10732
  ref,
10573
- className: (0, import_system92.cn)("cursor-default", import_system92.width[width], classNames3 == null ? void 0 : classNames3.header),
10574
- ...(0, import_utils11.mergeProps)(columnHeaderProps, hoverProps, focusProps),
10733
+ className: (0, import_system93.cn)("cursor-default", import_system93.width[width], classNames3 == null ? void 0 : classNames3.header),
10734
+ ...(0, import_utils12.mergeProps)(columnHeaderProps, hoverProps, focusProps),
10575
10735
  ...stateProps,
10576
10736
  align,
10577
10737
  "data-rac": true,
10578
10738
  children: [
10579
10739
  column2.rendered,
10580
- column2.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column2.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(SortUp, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(SortDown, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { className: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(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__ */ (0, import_jsx_runtime113.jsx)(SortUp, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(SortDown, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(SortDown, { className: "inline-block" }) }))
10581
10741
  ]
10582
10742
  }
10583
10743
  );
@@ -10585,16 +10745,16 @@ var TableColumnHeader = ({
10585
10745
 
10586
10746
  // src/Table/TableHeader.tsx
10587
10747
  var import_table5 = require("@react-aria/table");
10588
- var import_system93 = require("@marigold/system");
10589
- var import_jsx_runtime111 = require("react/jsx-runtime");
10748
+ var import_system94 = require("@marigold/system");
10749
+ var import_jsx_runtime114 = require("react/jsx-runtime");
10590
10750
  var TableHeader = ({ stickyHeader, children }) => {
10591
10751
  const { rowGroupProps } = (0, import_table5.useTableRowGroup)();
10592
10752
  const { classNames: classNames3 } = useTableContext();
10593
- return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10753
+ return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
10594
10754
  "thead",
10595
10755
  {
10596
10756
  ...rowGroupProps,
10597
- className: (0, import_system93.cn)(
10757
+ className: (0, import_system94.cn)(
10598
10758
  classNames3 == null ? void 0 : classNames3.thead,
10599
10759
  // for rui sticky is applied to thead
10600
10760
  stickyHeader ? "sticky [&_th]:sticky [&_th]:top-0" : ""
@@ -10606,33 +10766,33 @@ var TableHeader = ({ stickyHeader, children }) => {
10606
10766
  };
10607
10767
 
10608
10768
  // src/Table/TableHeaderRow.tsx
10609
- var import_react74 = require("react");
10769
+ var import_react77 = require("react");
10610
10770
  var import_table6 = require("@react-aria/table");
10611
- var import_jsx_runtime112 = require("react/jsx-runtime");
10771
+ var import_jsx_runtime115 = require("react/jsx-runtime");
10612
10772
  var TableHeaderRow = ({
10613
10773
  item,
10614
10774
  className,
10615
10775
  children
10616
10776
  }) => {
10617
10777
  const { state } = useTableContext();
10618
- const ref = (0, import_react74.useRef)(null);
10778
+ const ref = (0, import_react77.useRef)(null);
10619
10779
  const { rowProps } = (0, import_table6.useTableHeaderRow)({ node: item }, state, ref);
10620
- return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("tr", { ...rowProps, className, ref, "data-rac": true, children });
10780
+ return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("tr", { ...rowProps, className, ref, "data-rac": true, children });
10621
10781
  };
10622
10782
 
10623
10783
  // src/Table/TableRow.tsx
10624
- var import_react75 = require("react");
10784
+ var import_react78 = require("react");
10625
10785
  var import_focus6 = require("@react-aria/focus");
10626
10786
  var import_interactions3 = require("@react-aria/interactions");
10627
10787
  var import_table7 = require("@react-aria/table");
10628
- var import_utils12 = require("@react-aria/utils");
10629
- var import_system94 = require("@marigold/system");
10630
- var import_jsx_runtime113 = require("react/jsx-runtime");
10788
+ var import_utils13 = require("@react-aria/utils");
10789
+ var import_system95 = require("@marigold/system");
10790
+ var import_jsx_runtime116 = require("react/jsx-runtime");
10631
10791
  var TableRow = ({ children, row }) => {
10632
- const ref = (0, import_react75.useRef)(null);
10792
+ const ref = (0, import_react78.useRef)(null);
10633
10793
  const { interactive, state, ...ctx } = useTableContext();
10634
10794
  const { variant, size: size2 } = row.props;
10635
- const classNames3 = (0, import_system94.useClassNames)({
10795
+ const classNames3 = (0, import_system95.useClassNames)({
10636
10796
  component: "Table",
10637
10797
  variant: variant || ctx.variant,
10638
10798
  size: size2 || ctx.size
@@ -10650,24 +10810,24 @@ var TableRow = ({ children, row }) => {
10650
10810
  const { hoverProps, isHovered } = (0, import_interactions3.useHover)({
10651
10811
  isDisabled: disabled || !interactive
10652
10812
  });
10653
- const stateProps = (0, import_system94.useStateProps)({
10813
+ const stateProps = (0, import_system95.useStateProps)({
10654
10814
  disabled,
10655
10815
  selected,
10656
10816
  hover: isHovered,
10657
10817
  focusVisible: isFocusVisible,
10658
10818
  active: isPressed
10659
10819
  });
10660
- return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
10820
+ return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
10661
10821
  "tr",
10662
10822
  {
10663
10823
  ref,
10664
- className: (0, import_system94.cn)(
10824
+ className: (0, import_system95.cn)(
10665
10825
  [
10666
10826
  !interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"
10667
10827
  ],
10668
10828
  classNames3 == null ? void 0 : classNames3.row
10669
10829
  ),
10670
- ...(0, import_utils12.mergeProps)(rowProps, focusProps, hoverProps),
10830
+ ...(0, import_utils13.mergeProps)(rowProps, focusProps, hoverProps),
10671
10831
  ...stateProps,
10672
10832
  "data-rac": true,
10673
10833
  children
@@ -10676,19 +10836,19 @@ var TableRow = ({ children, row }) => {
10676
10836
  };
10677
10837
 
10678
10838
  // src/Table/TableSelectAllCell.tsx
10679
- var import_react76 = require("react");
10839
+ var import_react79 = require("react");
10680
10840
  var import_focus7 = require("@react-aria/focus");
10681
10841
  var import_interactions4 = require("@react-aria/interactions");
10682
10842
  var import_table8 = require("@react-aria/table");
10683
- var import_utils13 = require("@react-aria/utils");
10684
- var import_system95 = require("@marigold/system");
10685
- var import_jsx_runtime114 = require("react/jsx-runtime");
10843
+ var import_utils14 = require("@react-aria/utils");
10844
+ var import_system96 = require("@marigold/system");
10845
+ var import_jsx_runtime117 = require("react/jsx-runtime");
10686
10846
  var TableSelectAllCell = ({
10687
10847
  column: column2,
10688
10848
  width = "auto",
10689
10849
  align = "left"
10690
10850
  }) => {
10691
- const ref = (0, import_react76.useRef)(null);
10851
+ const ref = (0, import_react79.useRef)(null);
10692
10852
  const { state, classNames: classNames3 } = useTableContext();
10693
10853
  const { columnHeaderProps } = (0, import_table8.useTableColumnHeader)(
10694
10854
  {
@@ -10700,26 +10860,26 @@ var TableSelectAllCell = ({
10700
10860
  const { checkboxProps } = mapCheckboxProps((0, import_table8.useTableSelectAllCheckbox)(state));
10701
10861
  const { hoverProps, isHovered } = (0, import_interactions4.useHover)({});
10702
10862
  const { focusProps, isFocusVisible } = (0, import_focus7.useFocusRing)();
10703
- const stateProps = (0, import_system95.useStateProps)({
10863
+ const stateProps = (0, import_system96.useStateProps)({
10704
10864
  hover: isHovered,
10705
10865
  focusVisible: isFocusVisible
10706
10866
  });
10707
- return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
10867
+ return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
10708
10868
  "th",
10709
10869
  {
10710
10870
  ref,
10711
- className: (0, import_system95.cn)(import_system95.width[width], ["leading-none"], classNames3 == null ? void 0 : classNames3.header),
10712
- ...(0, import_utils13.mergeProps)(columnHeaderProps, hoverProps, focusProps),
10871
+ className: (0, import_system96.cn)(import_system96.width[width], ["leading-none"], classNames3 == null ? void 0 : classNames3.header),
10872
+ ...(0, import_utils14.mergeProps)(columnHeaderProps, hoverProps, focusProps),
10713
10873
  ...stateProps,
10714
10874
  align,
10715
10875
  "data-rac": true,
10716
- children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(_Checkbox, { ...checkboxProps })
10876
+ children: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(_Checkbox, { ...checkboxProps })
10717
10877
  }
10718
10878
  );
10719
10879
  };
10720
10880
 
10721
10881
  // src/Table/Table.tsx
10722
- var import_jsx_runtime115 = require("react/jsx-runtime");
10882
+ var import_jsx_runtime118 = require("react/jsx-runtime");
10723
10883
  var Table = ({
10724
10884
  variant,
10725
10885
  size: size2,
@@ -10732,7 +10892,7 @@ var Table = ({
10732
10892
  ...props
10733
10893
  }) => {
10734
10894
  const interactive = selectionMode !== "none";
10735
- const tableRef = (0, import_react77.useRef)(null);
10895
+ const tableRef = (0, import_react80.useRef)(null);
10736
10896
  const state = (0, import_table10.useTableState)({
10737
10897
  ...props,
10738
10898
  selectionMode,
@@ -10743,22 +10903,22 @@ var Table = ({
10743
10903
  state.isKeyboardNavigationDisabled = disableKeyboardNavigation;
10744
10904
  }
10745
10905
  const { gridProps } = (0, import_table9.useTable)(props, state, tableRef);
10746
- const classNames3 = (0, import_system96.useClassNames)({
10906
+ const classNames3 = (0, import_system97.useClassNames)({
10747
10907
  component: "Table",
10748
10908
  variant,
10749
10909
  size: size2
10750
10910
  });
10751
10911
  const { collection } = state;
10752
- return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
10912
+ return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
10753
10913
  TableContext.Provider,
10754
10914
  {
10755
10915
  value: { state, interactive, classNames: classNames3, variant, size: size2 },
10756
- children: /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(
10916
+ children: /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(
10757
10917
  "table",
10758
10918
  {
10759
10919
  ref: tableRef,
10760
10920
  "data-rac": true,
10761
- className: (0, import_system96.cn)(
10921
+ className: (0, import_system97.cn)(
10762
10922
  "group/table border-collapse",
10763
10923
  /**
10764
10924
  * Prevents wide tables from causing overlays to become scrollable on
@@ -10770,7 +10930,7 @@ var Table = ({
10770
10930
  ),
10771
10931
  ...gridProps,
10772
10932
  children: [
10773
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
10933
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
10774
10934
  TableHeaderRow,
10775
10935
  {
10776
10936
  item: headerRow,
@@ -10778,7 +10938,7 @@ var Table = ({
10778
10938
  children: [...collection.getChildren(headerRow.key)].map(
10779
10939
  (column2) => {
10780
10940
  var _a, _b, _c, _d, _e;
10781
- return ((_a = column2.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
10941
+ return ((_a = column2.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
10782
10942
  TableSelectAllCell,
10783
10943
  {
10784
10944
  width: (_b = column2.props) == null ? void 0 : _b.width,
@@ -10786,7 +10946,7 @@ var Table = ({
10786
10946
  align: (_c = column2.props) == null ? void 0 : _c.align
10787
10947
  },
10788
10948
  column2.key
10789
- ) : /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
10949
+ ) : /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
10790
10950
  TableColumnHeader,
10791
10951
  {
10792
10952
  width: (_d = column2.props) == null ? void 0 : _d.width,
@@ -10800,19 +10960,19 @@ var Table = ({
10800
10960
  },
10801
10961
  headerRow.key
10802
10962
  )) }),
10803
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(TableBody, { className: classNames3.body, emptyState, children: [
10963
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(TableBody, { className: classNames3.body, emptyState, children: [
10804
10964
  ...collection.rows.map(
10805
- (row) => row.type === "item" && /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index2) => {
10965
+ (row) => row.type === "item" && /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index2) => {
10806
10966
  var _a, _b;
10807
10967
  const currentColumn = collection.columns[index2];
10808
- return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
10968
+ return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
10809
10969
  TableCheckboxCell,
10810
10970
  {
10811
10971
  cell,
10812
10972
  alignY
10813
10973
  },
10814
10974
  cell.key
10815
- ) : /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
10975
+ ) : /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
10816
10976
  TableCell,
10817
10977
  {
10818
10978
  align: (_b = currentColumn.props) == null ? void 0 : _b.align,
@@ -10837,9 +10997,9 @@ Table.Header = import_table10.TableHeader;
10837
10997
  Table.Row = import_table10.Row;
10838
10998
 
10839
10999
  // src/Text/Text.tsx
10840
- var import_react_aria_components65 = require("react-aria-components");
10841
- var import_system97 = require("@marigold/system");
10842
- var import_jsx_runtime116 = require("react/jsx-runtime");
11000
+ var import_react_aria_components66 = require("react-aria-components");
11001
+ var import_system98 = require("@marigold/system");
11002
+ var import_jsx_runtime119 = require("react/jsx-runtime");
10843
11003
  var _Text = ({
10844
11004
  variant,
10845
11005
  size: size2,
@@ -10850,45 +11010,47 @@ var _Text = ({
10850
11010
  fontSize,
10851
11011
  fontStyle,
10852
11012
  wrap,
11013
+ whiteSpace,
10853
11014
  children,
10854
11015
  as = "div",
10855
11016
  ...props
10856
11017
  }) => {
10857
- const classNames3 = (0, import_system97.useClassNames)({
11018
+ const classNames3 = (0, import_system98.useClassNames)({
10858
11019
  component: "Text",
10859
11020
  variant,
10860
11021
  size: size2
10861
11022
  });
10862
- const Component2 = props.slot ? import_react_aria_components65.Text : as;
11023
+ const Component2 = props.slot ? import_react_aria_components66.Text : as;
10863
11024
  const elementType = props.slot ? { elementType: as } : {};
10864
- return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
11025
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10865
11026
  Component2,
10866
11027
  {
10867
11028
  ...props,
10868
11029
  ...elementType,
10869
- className: (0, import_system97.cn)(
11030
+ className: (0, import_system98.cn)(
10870
11031
  "max-w-(--maxTextWidth)",
10871
11032
  // possibly set by a <Container>
10872
11033
  classNames3,
10873
- fontStyle && import_system97.textStyle[fontStyle],
10874
- align && import_system97.textAlign[align],
10875
- cursor2 && import_system97.cursorStyle[cursor2],
10876
- weight && import_system97.fontWeight[weight],
10877
- fontSize && import_system97.textSize[fontSize],
10878
- wrap && import_system97.textWrap[wrap]
11034
+ fontStyle && import_system98.textStyle[fontStyle],
11035
+ align && import_system98.textAlign[align],
11036
+ cursor2 && import_system98.cursorStyle[cursor2],
11037
+ weight && import_system98.fontWeight[weight],
11038
+ fontSize && import_system98.textSize[fontSize],
11039
+ wrap && import_system98.textWrap[wrap],
11040
+ whiteSpace && import_system98.whiteSpace[whiteSpace]
10879
11041
  ),
10880
- style: { color: color && (0, import_system97.ensureCssVar)(color, "color") },
11042
+ style: { color: color && (0, import_system98.ensureCssVar)(color, "color") },
10881
11043
  children
10882
11044
  }
10883
11045
  );
10884
11046
  };
10885
11047
 
10886
11048
  // src/TextArea/TextArea.tsx
10887
- var import_react78 = require("react");
10888
- var import_react_aria_components66 = require("react-aria-components");
10889
- var import_system98 = require("@marigold/system");
10890
- var import_jsx_runtime117 = require("react/jsx-runtime");
10891
- var _TextArea = (0, import_react78.forwardRef)(
11049
+ var import_react81 = require("react");
11050
+ var import_react_aria_components67 = require("react-aria-components");
11051
+ var import_system99 = require("@marigold/system");
11052
+ var import_jsx_runtime120 = require("react/jsx-runtime");
11053
+ var _TextArea = (0, import_react81.forwardRef)(
10892
11054
  ({
10893
11055
  variant,
10894
11056
  size: size2,
@@ -10899,7 +11061,7 @@ var _TextArea = (0, import_react78.forwardRef)(
10899
11061
  rows,
10900
11062
  ...rest
10901
11063
  }, ref) => {
10902
- const classNames3 = (0, import_system98.useClassNames)({ component: "TextArea", variant, size: size2 });
11064
+ const classNames3 = (0, import_system99.useClassNames)({ component: "TextArea", variant, size: size2 });
10903
11065
  const props = {
10904
11066
  isDisabled: disabled,
10905
11067
  isReadOnly: readOnly,
@@ -10907,15 +11069,15 @@ var _TextArea = (0, import_react78.forwardRef)(
10907
11069
  isRequired: required,
10908
11070
  ...rest
10909
11071
  };
10910
- return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(FieldBase, { as: import_react_aria_components66.TextField, ...props, variant, size: size2, children: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_react_aria_components66.TextArea, { className: classNames3, ref, rows }) });
11072
+ return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(FieldBase, { as: import_react_aria_components67.TextField, ...props, variant, size: size2, children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_react_aria_components67.TextArea, { className: classNames3, ref, rows }) });
10911
11073
  }
10912
11074
  );
10913
11075
 
10914
11076
  // src/TextField/TextField.tsx
10915
- var import_react79 = require("react");
10916
- var import_react_aria_components67 = require("react-aria-components");
10917
- var import_jsx_runtime118 = require("react/jsx-runtime");
10918
- var _TextField = (0, import_react79.forwardRef)(
11077
+ var import_react82 = require("react");
11078
+ var import_react_aria_components68 = require("react-aria-components");
11079
+ var import_jsx_runtime121 = require("react/jsx-runtime");
11080
+ var _TextField = (0, import_react82.forwardRef)(
10919
11081
  ({ required, disabled, readOnly, error, ...rest }, ref) => {
10920
11082
  const props = {
10921
11083
  isDisabled: disabled,
@@ -10924,13 +11086,13 @@ var _TextField = (0, import_react79.forwardRef)(
10924
11086
  isRequired: required,
10925
11087
  ...rest
10926
11088
  };
10927
- return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(FieldBase, { as: import_react_aria_components67.TextField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(_Input, { ref }) });
11089
+ return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(FieldBase, { as: import_react_aria_components68.TextField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(_Input, { ref }) });
10928
11090
  }
10929
11091
  );
10930
11092
 
10931
11093
  // src/Tiles/Tiles.tsx
10932
- var import_system99 = require("@marigold/system");
10933
- var import_jsx_runtime119 = require("react/jsx-runtime");
11094
+ var import_system100 = require("@marigold/system");
11095
+ var import_jsx_runtime122 = require("react/jsx-runtime");
10934
11096
  var Tiles = ({
10935
11097
  space = 0,
10936
11098
  stretch = false,
@@ -10943,29 +11105,29 @@ var Tiles = ({
10943
11105
  if (stretch) {
10944
11106
  column2 = `minmax(${column2}, 1fr)`;
10945
11107
  }
10946
- return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
11108
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
10947
11109
  "div",
10948
11110
  {
10949
11111
  ...props,
10950
- className: (0, import_system99.cn)(
11112
+ className: (0, import_system100.cn)(
10951
11113
  "grid",
10952
- import_system99.gapSpace[space],
11114
+ import_system100.gapSpace[space],
10953
11115
  "grid-cols-[repeat(auto-fit,var(--column))]",
10954
11116
  equalHeight && "auto-rows-[1fr]"
10955
11117
  ),
10956
- style: (0, import_system99.createVar)({ column: column2, tilesWidth }),
11118
+ style: (0, import_system100.createVar)({ column: column2, tilesWidth }),
10957
11119
  children
10958
11120
  }
10959
11121
  );
10960
11122
  };
10961
11123
 
10962
11124
  // src/Tooltip/Tooltip.tsx
10963
- var import_react_aria_components69 = require("react-aria-components");
10964
- var import_system100 = require("@marigold/system");
11125
+ var import_react_aria_components70 = require("react-aria-components");
11126
+ var import_system101 = require("@marigold/system");
10965
11127
 
10966
11128
  // src/Tooltip/TooltipTrigger.tsx
10967
- var import_react_aria_components68 = require("react-aria-components");
10968
- var import_jsx_runtime120 = require("react/jsx-runtime");
11129
+ var import_react_aria_components69 = require("react-aria-components");
11130
+ var import_jsx_runtime123 = require("react/jsx-runtime");
10969
11131
  var _TooltipTrigger = ({
10970
11132
  delay = 1e3,
10971
11133
  children,
@@ -10979,42 +11141,42 @@ var _TooltipTrigger = ({
10979
11141
  isOpen: open,
10980
11142
  delay
10981
11143
  };
10982
- return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_react_aria_components68.TooltipTrigger, { ...props, children });
11144
+ return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_react_aria_components69.TooltipTrigger, { ...props, children });
10983
11145
  };
10984
11146
 
10985
11147
  // src/Tooltip/Tooltip.tsx
10986
- var import_jsx_runtime121 = require("react/jsx-runtime");
11148
+ var import_jsx_runtime124 = require("react/jsx-runtime");
10987
11149
  var _Tooltip = ({ children, variant, size: size2, open, ...rest }) => {
10988
11150
  const props = {
10989
11151
  ...rest,
10990
11152
  isOpen: open
10991
11153
  };
10992
- const classNames3 = (0, import_system100.useClassNames)({ component: "Tooltip", variant, size: size2 });
10993
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(import_react_aria_components69.Tooltip, { ...props, className: (0, import_system100.cn)("group/tooltip", classNames3.container), children: [
10994
- /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_react_aria_components69.OverlayArrow, { className: classNames3.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
11154
+ const classNames3 = (0, import_system101.useClassNames)({ component: "Tooltip", variant, size: size2 });
11155
+ return /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(import_react_aria_components70.Tooltip, { ...props, className: (0, import_system101.cn)("group/tooltip", classNames3.container), children: [
11156
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_react_aria_components70.OverlayArrow, { className: classNames3.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
10995
11157
  children
10996
11158
  ] });
10997
11159
  };
10998
11160
  _Tooltip.Trigger = _TooltipTrigger;
10999
11161
 
11000
11162
  // src/Toast/ToastProvider.tsx
11001
- var import_react_aria_components72 = require("react-aria-components");
11163
+ var import_react_aria_components73 = require("react-aria-components");
11002
11164
  var import_react_dom3 = require("react-dom");
11003
- var import_system102 = require("@marigold/system");
11165
+ var import_system103 = require("@marigold/system");
11004
11166
 
11005
11167
  // src/Toast/Toast.tsx
11006
- var import_react_aria_components70 = require("react-aria-components");
11007
11168
  var import_react_aria_components71 = require("react-aria-components");
11008
- var import_system101 = require("@marigold/system");
11009
- var import_jsx_runtime122 = require("react/jsx-runtime");
11169
+ var import_react_aria_components72 = require("react-aria-components");
11170
+ var import_system102 = require("@marigold/system");
11171
+ var import_jsx_runtime125 = require("react/jsx-runtime");
11010
11172
  var icons3 = {
11011
- success: () => /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
11173
+ success: () => /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
11012
11174
  "svg",
11013
11175
  {
11014
11176
  xmlns: "http://www.w3.org/2000/svg",
11015
11177
  viewBox: "0 0 24 24",
11016
11178
  fill: "currentColor",
11017
- children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
11179
+ children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
11018
11180
  "path",
11019
11181
  {
11020
11182
  fillRule: "evenodd",
@@ -11024,13 +11186,13 @@ var icons3 = {
11024
11186
  )
11025
11187
  }
11026
11188
  ),
11027
- info: () => /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
11189
+ info: () => /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
11028
11190
  "svg",
11029
11191
  {
11030
11192
  xmlns: "http://www.w3.org/2000/svg",
11031
11193
  viewBox: "0 0 24 24",
11032
11194
  fill: "currentColor",
11033
- children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
11195
+ children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
11034
11196
  "path",
11035
11197
  {
11036
11198
  fillRule: "evenodd",
@@ -11040,13 +11202,13 @@ var icons3 = {
11040
11202
  )
11041
11203
  }
11042
11204
  ),
11043
- warning: () => /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
11205
+ warning: () => /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
11044
11206
  "svg",
11045
11207
  {
11046
11208
  xmlns: "http://www.w3.org/2000/svg",
11047
11209
  viewBox: "0 0 24 24",
11048
11210
  fill: "currentColor",
11049
- children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
11211
+ children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
11050
11212
  "path",
11051
11213
  {
11052
11214
  fillRule: "evenodd",
@@ -11056,13 +11218,13 @@ var icons3 = {
11056
11218
  )
11057
11219
  }
11058
11220
  ),
11059
- error: () => /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
11221
+ error: () => /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
11060
11222
  "svg",
11061
11223
  {
11062
11224
  xmlns: "http://www.w3.org/2000/svg",
11063
11225
  viewBox: "0 0 24 24",
11064
11226
  fill: "currentColor",
11065
- children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
11227
+ children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
11066
11228
  "path",
11067
11229
  {
11068
11230
  fillRule: "evenodd",
@@ -11074,25 +11236,25 @@ var icons3 = {
11074
11236
  )
11075
11237
  };
11076
11238
  var Toast = ({ toast }) => {
11077
- const classNames3 = (0, import_system101.useClassNames)({
11239
+ const classNames3 = (0, import_system102.useClassNames)({
11078
11240
  component: "Toast",
11079
11241
  variant: toast.content.variant
11080
11242
  });
11081
11243
  const Icon4 = toast.content.variant ? icons3[toast.content.variant] : null;
11082
- return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(
11083
- import_react_aria_components71.UNSTABLE_Toast,
11244
+ return /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(
11245
+ import_react_aria_components72.UNSTABLE_Toast,
11084
11246
  {
11085
11247
  toast,
11086
11248
  className: classNames3.toast,
11087
11249
  style: { viewTransitionName: toast.key },
11088
11250
  children: [
11089
- /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(import_react_aria_components70.UNSTABLE_ToastContent, { className: classNames3.content, children: [
11090
- Icon4 && /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { className: classNames3.icon, slot: "icon", "data-testid": "toast-icon", children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Icon4, {}) }),
11091
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_react_aria_components71.Text, { slot: "title", className: classNames3.title, children: toast.content.title }),
11092
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Stack, { space: 2 }),
11093
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_react_aria_components71.Text, { slot: "description", className: classNames3.description, children: toast.content.description })
11251
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_react_aria_components71.UNSTABLE_ToastContent, { className: classNames3.content, children: [
11252
+ Icon4 && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)("div", { className: classNames3.icon, slot: "icon", "data-testid": "toast-icon", children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(Icon4, {}) }),
11253
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_react_aria_components72.Text, { slot: "title", className: classNames3.title, children: toast.content.title }),
11254
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(Stack, { space: 2 }),
11255
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_react_aria_components72.Text, { slot: "description", className: classNames3.description, children: toast.content.description })
11094
11256
  ] }),
11095
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
11257
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
11096
11258
  CloseButton,
11097
11259
  {
11098
11260
  className: classNames3.closeButton,
@@ -11106,8 +11268,8 @@ var Toast = ({ toast }) => {
11106
11268
  };
11107
11269
 
11108
11270
  // src/Toast/ToastProvider.tsx
11109
- var import_jsx_runtime123 = require("react/jsx-runtime");
11110
- var queue = new import_react_aria_components72.UNSTABLE_ToastQueue({
11271
+ var import_jsx_runtime126 = require("react/jsx-runtime");
11272
+ var queue = new import_react_aria_components73.UNSTABLE_ToastQueue({
11111
11273
  // Wrap state updates in a CSS view transition.
11112
11274
  wrapUpdate(fn) {
11113
11275
  if ("startViewTransition" in document) {
@@ -11120,10 +11282,10 @@ var queue = new import_react_aria_components72.UNSTABLE_ToastQueue({
11120
11282
  }
11121
11283
  });
11122
11284
  var ToastProvider = ({ position: position2 = "bottom-right" }) => {
11123
- const classNames3 = (0, import_system102.useClassNames)({
11285
+ const classNames3 = (0, import_system103.useClassNames)({
11124
11286
  component: "Toast"
11125
11287
  });
11126
- return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_react_aria_components72.UNSTABLE_ToastRegion, { queue, className: `${classNames3[position2]} z-50 gap-2`, children: ({ toast }) => /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(Toast, { toast }) });
11288
+ return /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_react_aria_components73.UNSTABLE_ToastRegion, { queue, className: `${classNames3[position2]} z-50 gap-2`, children: ({ toast }) => /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(Toast, { toast }) });
11127
11289
  };
11128
11290
 
11129
11291
  // src/Toast/ToastQueue.ts
@@ -11149,23 +11311,23 @@ function useToast() {
11149
11311
  }
11150
11312
 
11151
11313
  // src/TagGroup/Tag.tsx
11152
- var import_react_aria_components76 = require("react-aria-components");
11153
- var import_system104 = require("@marigold/system");
11314
+ var import_react_aria_components77 = require("react-aria-components");
11315
+ var import_system105 = require("@marigold/system");
11154
11316
 
11155
11317
  // src/TagGroup/TagGroup.tsx
11156
- var import_react_aria_components75 = require("react-aria-components");
11157
- var import_system103 = require("@marigold/system");
11318
+ var import_react_aria_components76 = require("react-aria-components");
11319
+ var import_system104 = require("@marigold/system");
11158
11320
 
11159
11321
  // src/TagGroup/TagGroupHiddenInput.tsx
11160
- var import_react80 = require("react");
11161
- var import_react_aria_components73 = require("react-aria-components");
11162
- var import_jsx_runtime124 = require("react/jsx-runtime");
11322
+ var import_react83 = require("react");
11323
+ var import_react_aria_components74 = require("react-aria-components");
11324
+ var import_jsx_runtime127 = require("react/jsx-runtime");
11163
11325
  var TagGroupHiddenInput = ({ name }) => {
11164
11326
  var _a;
11165
- const state = (0, import_react80.useContext)(import_react_aria_components73.ListStateContext);
11327
+ const state = (0, import_react83.useContext)(import_react_aria_components74.ListStateContext);
11166
11328
  const selectedKeys = Array.from((_a = state == null ? void 0 : state.selectionManager.selectedKeys) != null ? _a : []);
11167
11329
  if (!selectedKeys.length) return null;
11168
- return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("div", { hidden: true, "aria-hidden": "true", children: selectedKeys.map((key) => /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
11330
+ return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("div", { hidden: true, "aria-hidden": "true", children: selectedKeys.map((key) => /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
11169
11331
  "input",
11170
11332
  {
11171
11333
  type: "checkbox",
@@ -11179,21 +11341,21 @@ var TagGroupHiddenInput = ({ name }) => {
11179
11341
  };
11180
11342
 
11181
11343
  // src/TagGroup/TagGroupRemoveAll.tsx
11182
- var import_react81 = require("react");
11183
- var import_react_aria_components74 = require("react-aria-components");
11184
- var import_i18n9 = require("@react-aria/i18n");
11185
- var import_jsx_runtime125 = require("react/jsx-runtime");
11344
+ var import_react84 = require("react");
11345
+ var import_react_aria_components75 = require("react-aria-components");
11346
+ var import_i18n10 = require("@react-aria/i18n");
11347
+ var import_jsx_runtime128 = require("react/jsx-runtime");
11186
11348
  var TagGroupRemoveAll = ({
11187
11349
  className,
11188
11350
  onRemove
11189
11351
  }) => {
11190
- const state = (0, import_react81.useContext)(import_react_aria_components74.ListStateContext);
11191
- const stringFormatter = (0, import_i18n9.useLocalizedStringFormatter)(intlMessages2, "marigold");
11352
+ const state = (0, import_react84.useContext)(import_react_aria_components75.ListStateContext);
11353
+ const stringFormatter = (0, import_i18n10.useLocalizedStringFormatter)(intlMessages2, "marigold");
11192
11354
  if (state && state.collection.size < 2) {
11193
11355
  return null;
11194
11356
  }
11195
- return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
11196
- import_react_aria_components74.Button,
11357
+ return /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
11358
+ import_react_aria_components75.Button,
11197
11359
  {
11198
11360
  onPress: () => onRemove == null ? void 0 : onRemove(new Set(state == null ? void 0 : state.collection.getKeys())),
11199
11361
  className,
@@ -11203,7 +11365,7 @@ var TagGroupRemoveAll = ({
11203
11365
  };
11204
11366
 
11205
11367
  // src/TagGroup/TagGroup.tsx
11206
- var import_jsx_runtime126 = require("react/jsx-runtime");
11368
+ var import_jsx_runtime129 = require("react/jsx-runtime");
11207
11369
  var _TagGroup = ({
11208
11370
  items,
11209
11371
  children,
@@ -11214,11 +11376,11 @@ var _TagGroup = ({
11214
11376
  removeAll,
11215
11377
  ...rest
11216
11378
  }) => {
11217
- const classNames3 = (0, import_system103.useClassNames)({ component: "Tag", variant, size: size2 });
11218
- return /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(FieldBase, { as: import_react_aria_components75.TagGroup, ...rest, children: [
11219
- /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)("div", { className: classNames3.container, children: [
11220
- /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
11221
- import_react_aria_components75.TagList,
11379
+ const classNames3 = (0, import_system104.useClassNames)({ component: "Tag", variant, size: size2 });
11380
+ return /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)(FieldBase, { as: import_react_aria_components76.TagGroup, ...rest, children: [
11381
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)("div", { className: classNames3.container, children: [
11382
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
11383
+ import_react_aria_components76.TagList,
11222
11384
  {
11223
11385
  items,
11224
11386
  className: classNames3.listItems,
@@ -11226,7 +11388,7 @@ var _TagGroup = ({
11226
11388
  children
11227
11389
  }
11228
11390
  ),
11229
- rest.onRemove && removeAll ? /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
11391
+ rest.onRemove && removeAll ? /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
11230
11392
  TagGroupRemoveAll,
11231
11393
  {
11232
11394
  className: classNames3.removeAll,
@@ -11234,28 +11396,28 @@ var _TagGroup = ({
11234
11396
  }
11235
11397
  ) : null
11236
11398
  ] }),
11237
- name ? /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(TagGroupHiddenInput, { name }) : null
11399
+ name ? /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(TagGroupHiddenInput, { name }) : null
11238
11400
  ] });
11239
11401
  };
11240
11402
 
11241
11403
  // src/TagGroup/Tag.tsx
11242
- var import_jsx_runtime127 = require("react/jsx-runtime");
11404
+ var import_jsx_runtime130 = require("react/jsx-runtime");
11243
11405
  var _Tag = ({ variant, size: size2, children, disabled, ...rest }) => {
11244
11406
  let textValue = typeof children === "string" ? children : void 0;
11245
- const classNames3 = (0, import_system104.useClassNames)({ component: "Tag", variant, size: size2 });
11407
+ const classNames3 = (0, import_system105.useClassNames)({ component: "Tag", variant, size: size2 });
11246
11408
  const props = {
11247
11409
  isDisabled: disabled,
11248
11410
  ...rest
11249
11411
  };
11250
- return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
11251
- import_react_aria_components76.Tag,
11412
+ return /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
11413
+ import_react_aria_components77.Tag,
11252
11414
  {
11253
11415
  textValue,
11254
11416
  ...props,
11255
- className: (0, import_system104.cn)("data-selection-mode:cursor-pointer", classNames3.tag),
11256
- children: ({ allowsRemoving }) => /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_jsx_runtime127.Fragment, { children: [
11417
+ className: (0, import_system105.cn)("data-selection-mode:cursor-pointer", classNames3.tag),
11418
+ children: ({ allowsRemoving }) => /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(import_jsx_runtime130.Fragment, { children: [
11257
11419
  children,
11258
- allowsRemoving && /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(CloseButton, { className: classNames3.closeButton, slot: "remove" })
11420
+ allowsRemoving && /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(CloseButton, { className: classNames3.closeButton, slot: "remove" })
11259
11421
  ] })
11260
11422
  }
11261
11423
  );
@@ -11266,15 +11428,15 @@ _Tag.Group = _TagGroup;
11266
11428
  var import_visually_hidden = require("@react-aria/visually-hidden");
11267
11429
 
11268
11430
  // src/XLoader/XLoader.tsx
11269
- var import_react_aria_components78 = require("react-aria-components");
11270
- var import_utils15 = require("@react-aria/utils");
11271
- var import_system106 = require("@marigold/system");
11431
+ var import_react_aria_components79 = require("react-aria-components");
11432
+ var import_utils16 = require("@react-aria/utils");
11433
+ var import_system107 = require("@marigold/system");
11272
11434
 
11273
11435
  // src/XLoader/BaseLoader.tsx
11274
- var import_react_aria_components77 = require("react-aria-components");
11275
- var import_i18n10 = require("@react-aria/i18n");
11276
- var import_system105 = require("@marigold/system");
11277
- var import_jsx_runtime128 = require("react/jsx-runtime");
11436
+ var import_react_aria_components78 = require("react-aria-components");
11437
+ var import_i18n11 = require("@react-aria/i18n");
11438
+ var import_system106 = require("@marigold/system");
11439
+ var import_jsx_runtime131 = require("react/jsx-runtime");
11278
11440
  var BaseLoader = ({
11279
11441
  variant,
11280
11442
  size: size2,
@@ -11282,17 +11444,17 @@ var BaseLoader = ({
11282
11444
  "aria-label": ariaLabel,
11283
11445
  ...props
11284
11446
  }) => {
11285
- const stringFormatter = (0, import_i18n10.useLocalizedStringFormatter)(intlMessages2, "marigold");
11286
- const className = (0, import_system105.useClassNames)({ component: "XLoader", variant, size: size2 });
11287
- return /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(
11288
- import_react_aria_components77.ProgressBar,
11447
+ const stringFormatter = (0, import_i18n11.useLocalizedStringFormatter)(intlMessages2, "marigold");
11448
+ const className = (0, import_system106.useClassNames)({ component: "XLoader", variant, size: size2 });
11449
+ return /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(
11450
+ import_react_aria_components78.ProgressBar,
11289
11451
  {
11290
11452
  className: className.container,
11291
11453
  isIndeterminate: true,
11292
11454
  "aria-label": ariaLabel || children ? ariaLabel : stringFormatter.format("loadingMessage"),
11293
11455
  ...props,
11294
11456
  children: [
11295
- /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(
11457
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(
11296
11458
  "svg",
11297
11459
  {
11298
11460
  xmlns: "http://www.w3.org/2000/svg",
@@ -11300,13 +11462,13 @@ var BaseLoader = ({
11300
11462
  fill: "currentColor",
11301
11463
  className: className.loader,
11302
11464
  children: [
11303
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
11304
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
11465
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
11466
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
11305
11467
  "path",
11306
11468
  {
11307
11469
  id: "XMLID_5_",
11308
11470
  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",
11309
- children: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
11471
+ children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
11310
11472
  "animate",
11311
11473
  {
11312
11474
  attributeName: "opacity",
@@ -11319,12 +11481,12 @@ var BaseLoader = ({
11319
11481
  )
11320
11482
  }
11321
11483
  ),
11322
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
11484
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
11323
11485
  "path",
11324
11486
  {
11325
11487
  id: "XMLID_18_",
11326
11488
  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",
11327
- children: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
11489
+ children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
11328
11490
  "animate",
11329
11491
  {
11330
11492
  attributeName: "opacity",
@@ -11337,12 +11499,12 @@ var BaseLoader = ({
11337
11499
  )
11338
11500
  }
11339
11501
  ),
11340
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
11502
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
11341
11503
  "path",
11342
11504
  {
11343
11505
  id: "XMLID_19_",
11344
11506
  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",
11345
- children: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
11507
+ children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
11346
11508
  "animate",
11347
11509
  {
11348
11510
  attributeName: "opacity",
@@ -11355,12 +11517,12 @@ var BaseLoader = ({
11355
11517
  )
11356
11518
  }
11357
11519
  ),
11358
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
11520
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
11359
11521
  "path",
11360
11522
  {
11361
11523
  id: "XMLID_20_",
11362
11524
  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",
11363
- children: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
11525
+ children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
11364
11526
  "animate",
11365
11527
  {
11366
11528
  attributeName: "opacity",
@@ -11373,12 +11535,12 @@ var BaseLoader = ({
11373
11535
  )
11374
11536
  }
11375
11537
  ),
11376
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
11538
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
11377
11539
  "path",
11378
11540
  {
11379
11541
  id: "XMLID_21_",
11380
11542
  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",
11381
- children: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
11543
+ children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
11382
11544
  "animate",
11383
11545
  {
11384
11546
  attributeName: "opacity",
@@ -11391,12 +11553,12 @@ var BaseLoader = ({
11391
11553
  )
11392
11554
  }
11393
11555
  ),
11394
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
11556
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
11395
11557
  "path",
11396
11558
  {
11397
11559
  id: "XMLID_22_",
11398
11560
  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",
11399
- children: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
11561
+ children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
11400
11562
  "animate",
11401
11563
  {
11402
11564
  attributeName: "opacity",
@@ -11409,12 +11571,12 @@ var BaseLoader = ({
11409
11571
  )
11410
11572
  }
11411
11573
  ),
11412
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
11574
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
11413
11575
  "path",
11414
11576
  {
11415
11577
  id: "XMLID_23_",
11416
11578
  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",
11417
- children: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
11579
+ children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
11418
11580
  "animate",
11419
11581
  {
11420
11582
  attributeName: "opacity",
@@ -11427,12 +11589,12 @@ var BaseLoader = ({
11427
11589
  )
11428
11590
  }
11429
11591
  ),
11430
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
11592
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
11431
11593
  "path",
11432
11594
  {
11433
11595
  id: "XMLID_24_",
11434
11596
  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",
11435
- children: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
11597
+ children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
11436
11598
  "animate",
11437
11599
  {
11438
11600
  attributeName: "opacity",
@@ -11445,12 +11607,12 @@ var BaseLoader = ({
11445
11607
  )
11446
11608
  }
11447
11609
  ),
11448
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
11610
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
11449
11611
  "path",
11450
11612
  {
11451
11613
  id: "XMLID_25_",
11452
11614
  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",
11453
- children: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
11615
+ children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
11454
11616
  "animate",
11455
11617
  {
11456
11618
  attributeName: "opacity",
@@ -11463,12 +11625,12 @@ var BaseLoader = ({
11463
11625
  )
11464
11626
  }
11465
11627
  ),
11466
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
11628
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
11467
11629
  "path",
11468
11630
  {
11469
11631
  id: "XMLID_26_",
11470
11632
  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",
11471
- children: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
11633
+ children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
11472
11634
  "animate",
11473
11635
  {
11474
11636
  attributeName: "opacity",
@@ -11481,12 +11643,12 @@ var BaseLoader = ({
11481
11643
  )
11482
11644
  }
11483
11645
  ),
11484
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
11646
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
11485
11647
  "path",
11486
11648
  {
11487
11649
  id: "XMLID_27_",
11488
11650
  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",
11489
- children: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
11651
+ children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
11490
11652
  "animate",
11491
11653
  {
11492
11654
  attributeName: "opacity",
@@ -11502,48 +11664,48 @@ var BaseLoader = ({
11502
11664
  ]
11503
11665
  }
11504
11666
  ),
11505
- children ? /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_react_aria_components77.Label, { className: className.label, children }) : null
11667
+ children ? /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(import_react_aria_components78.Label, { className: className.label, children }) : null
11506
11668
  ]
11507
11669
  }
11508
11670
  );
11509
11671
  };
11510
11672
 
11511
11673
  // src/XLoader/XLoader.tsx
11512
- var import_jsx_runtime129 = require("react/jsx-runtime");
11674
+ var import_jsx_runtime132 = require("react/jsx-runtime");
11513
11675
  var LoaderFullScreen = (props) => {
11514
- const id = (0, import_utils15.useId)();
11515
- return /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(Underlay, { defaultOpen: true, keyboardDismissable: true, variant: "modal", children: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(import_react_aria_components78.Modal, { className: "grid h-(--visual-viewport-height) cursor-progress place-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(import_react_aria_components78.Dialog, { className: "outline-0", "aria-labelledby": id, children: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(BaseLoader, { id, ...props }) }) }) });
11676
+ const id = (0, import_utils16.useId)();
11677
+ return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Underlay, { defaultOpen: true, keyboardDismissable: true, variant: "modal", children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_react_aria_components79.Modal, { className: "grid h-(--visual-viewport-height) cursor-progress place-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_react_aria_components79.Dialog, { className: "outline-0", "aria-labelledby": id, children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(BaseLoader, { id, ...props }) }) }) });
11516
11678
  };
11517
11679
  var LoaderSection = (props) => {
11518
- const className = (0, import_system106.useClassNames)({
11680
+ const className = (0, import_system107.useClassNames)({
11519
11681
  component: "Underlay",
11520
11682
  variant: "modal",
11521
11683
  className: "flex size-full items-center justify-center"
11522
11684
  });
11523
- return /* @__PURE__ */ (0, import_jsx_runtime129.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(BaseLoader, { ...props }) });
11685
+ return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(BaseLoader, { ...props }) });
11524
11686
  };
11525
- var XLoader = ({ mode, variant, ...props }) => mode === "fullscreen" ? /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(LoaderFullScreen, { variant: variant != null ? variant : "inverted", ...props }) : mode === "section" ? /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(LoaderSection, { variant: variant != null ? variant : "inverted", ...props }) : /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(BaseLoader, { variant, ...props });
11687
+ var XLoader = ({ mode, variant, ...props }) => mode === "fullscreen" ? /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(LoaderFullScreen, { variant: variant != null ? variant : "inverted", ...props }) : mode === "section" ? /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(LoaderSection, { variant: variant != null ? variant : "inverted", ...props }) : /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(BaseLoader, { variant, ...props });
11526
11688
 
11527
11689
  // src/Tabs/Tabs.tsx
11528
- var import_react_aria_components82 = require("react-aria-components");
11529
- var import_system109 = require("@marigold/system");
11690
+ var import_react_aria_components83 = require("react-aria-components");
11691
+ var import_system110 = require("@marigold/system");
11530
11692
 
11531
11693
  // src/Tabs/Context.ts
11532
- var import_react82 = require("react");
11533
- var TabContext = (0, import_react82.createContext)({});
11534
- var useTabContext = () => (0, import_react82.useContext)(TabContext);
11694
+ var import_react85 = require("react");
11695
+ var TabContext = (0, import_react85.createContext)({});
11696
+ var useTabContext = () => (0, import_react85.useContext)(TabContext);
11535
11697
 
11536
11698
  // src/Tabs/Tab.tsx
11537
- var import_react_aria_components79 = require("react-aria-components");
11538
- var import_system107 = require("@marigold/system");
11539
- var import_jsx_runtime130 = require("react/jsx-runtime");
11699
+ var import_react_aria_components80 = require("react-aria-components");
11700
+ var import_system108 = require("@marigold/system");
11701
+ var import_jsx_runtime133 = require("react/jsx-runtime");
11540
11702
  var _Tab = (props) => {
11541
11703
  const { classNames: classNames3 } = useTabContext();
11542
- return /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
11543
- import_react_aria_components79.Tab,
11704
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
11705
+ import_react_aria_components80.Tab,
11544
11706
  {
11545
11707
  ...props,
11546
- className: (0, import_system107.cn)(
11708
+ className: (0, import_system108.cn)(
11547
11709
  "flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
11548
11710
  classNames3.tab
11549
11711
  ),
@@ -11553,56 +11715,56 @@ var _Tab = (props) => {
11553
11715
  };
11554
11716
 
11555
11717
  // src/Tabs/TabList.tsx
11556
- var import_react_aria_components80 = require("react-aria-components");
11557
- var import_system108 = require("@marigold/system");
11558
- var import_jsx_runtime131 = require("react/jsx-runtime");
11718
+ var import_react_aria_components81 = require("react-aria-components");
11719
+ var import_system109 = require("@marigold/system");
11720
+ var import_jsx_runtime134 = require("react/jsx-runtime");
11559
11721
  var _TabList = ({ space = 2, ...props }) => {
11560
11722
  const { classNames: classNames3 } = useTabContext();
11561
- return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
11562
- import_react_aria_components80.TabList,
11723
+ return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
11724
+ import_react_aria_components81.TabList,
11563
11725
  {
11564
11726
  ...props,
11565
- className: (0, import_system108.cn)("flex", import_system108.gapSpace[space], classNames3.tabsList),
11727
+ className: (0, import_system109.cn)("flex", import_system109.gapSpace[space], classNames3.tabsList),
11566
11728
  children: props.children
11567
11729
  }
11568
11730
  );
11569
11731
  };
11570
11732
 
11571
11733
  // src/Tabs/TabPanel.tsx
11572
- var import_react_aria_components81 = require("react-aria-components");
11573
- var import_jsx_runtime132 = require("react/jsx-runtime");
11734
+ var import_react_aria_components82 = require("react-aria-components");
11735
+ var import_jsx_runtime135 = require("react/jsx-runtime");
11574
11736
  var _TabPanel = (props) => {
11575
11737
  const { classNames: classNames3 } = useTabContext();
11576
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_react_aria_components81.TabPanel, { ...props, className: classNames3.tabpanel, children: props.children });
11738
+ return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(import_react_aria_components82.TabPanel, { ...props, className: classNames3.tabpanel, children: props.children });
11577
11739
  };
11578
11740
 
11579
11741
  // src/Tabs/Tabs.tsx
11580
- var import_jsx_runtime133 = require("react/jsx-runtime");
11742
+ var import_jsx_runtime136 = require("react/jsx-runtime");
11581
11743
  var _Tabs = ({ disabled, variant, size: size2 = "medium", ...rest }) => {
11582
11744
  const props = {
11583
11745
  isDisabled: disabled,
11584
11746
  ...rest
11585
11747
  };
11586
- const classNames3 = (0, import_system109.useClassNames)({
11748
+ const classNames3 = (0, import_system110.useClassNames)({
11587
11749
  component: "Tabs",
11588
11750
  size: size2,
11589
11751
  variant
11590
11752
  });
11591
- return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(TabContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_react_aria_components82.Tabs, { ...props, className: classNames3.container, children: props.children }) });
11753
+ return /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(TabContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(import_react_aria_components83.Tabs, { ...props, className: classNames3.container, children: props.children }) });
11592
11754
  };
11593
11755
  _Tabs.List = _TabList;
11594
11756
  _Tabs.TabPanel = _TabPanel;
11595
11757
  _Tabs.Item = _Tab;
11596
11758
 
11597
11759
  // src/RouterProvider/RouterProvider.tsx
11598
- var import_react_aria_components83 = require("react-aria-components");
11760
+ var import_react_aria_components84 = require("react-aria-components");
11599
11761
 
11600
11762
  // src/TimeField/TimeField.tsx
11601
- var import_react83 = require("react");
11602
- var import_react_aria_components84 = require("react-aria-components");
11603
- var import_system110 = require("@marigold/system");
11604
- var import_jsx_runtime134 = require("react/jsx-runtime");
11605
- var _TimeField = (0, import_react83.forwardRef)(
11763
+ var import_react86 = require("react");
11764
+ var import_react_aria_components85 = require("react-aria-components");
11765
+ var import_system111 = require("@marigold/system");
11766
+ var import_jsx_runtime137 = require("react/jsx-runtime");
11767
+ var _TimeField = (0, import_react86.forwardRef)(
11606
11768
  ({
11607
11769
  required,
11608
11770
  disabled,
@@ -11613,7 +11775,7 @@ var _TimeField = (0, import_react83.forwardRef)(
11613
11775
  width = "full",
11614
11776
  ...rest
11615
11777
  }, ref) => {
11616
- const classNames3 = (0, import_system110.useClassNames)({ component: "DateField", variant, size: size2 });
11778
+ const classNames3 = (0, import_system111.useClassNames)({ component: "DateField", variant, size: size2 });
11617
11779
  const props = {
11618
11780
  isDisabled: disabled,
11619
11781
  isReadOnly: readOnly,
@@ -11621,48 +11783,48 @@ var _TimeField = (0, import_react83.forwardRef)(
11621
11783
  isRequired: required,
11622
11784
  ...rest
11623
11785
  };
11624
- return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
11786
+ return /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
11625
11787
  FieldBase,
11626
11788
  {
11627
- as: import_react_aria_components84.TimeField,
11789
+ as: import_react_aria_components85.TimeField,
11628
11790
  variant,
11629
11791
  size: size2,
11630
11792
  width,
11631
11793
  ...props,
11632
11794
  ref,
11633
- children: /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_react_aria_components84.DateInput, { className: classNames3.field, children: (segment) => /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_react_aria_components84.DateSegment, { className: classNames3.segment, segment }) })
11795
+ children: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(import_react_aria_components85.DateInput, { className: classNames3.field, children: (segment) => /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(import_react_aria_components85.DateSegment, { className: classNames3.segment, segment }) })
11634
11796
  }
11635
11797
  );
11636
11798
  }
11637
11799
  );
11638
11800
 
11639
11801
  // src/Breadcrumbs/Breadcrumbs.tsx
11640
- var import_react85 = __toESM(require("react"));
11641
- var import_react_aria_components86 = require("react-aria-components");
11642
- var import_system112 = require("@marigold/system");
11802
+ var import_react88 = __toESM(require("react"));
11803
+ var import_react_aria_components87 = require("react-aria-components");
11804
+ var import_system113 = require("@marigold/system");
11643
11805
 
11644
11806
  // src/Breadcrumbs/BreadcrumbEllipsis.tsx
11645
- var import_react84 = __toESM(require("react"));
11646
- var import_react_aria_components85 = require("react-aria-components");
11647
- var import_system111 = require("@marigold/system");
11648
- var import_jsx_runtime135 = require("react/jsx-runtime");
11807
+ var import_react87 = __toESM(require("react"));
11808
+ var import_react_aria_components86 = require("react-aria-components");
11809
+ var import_system112 = require("@marigold/system");
11810
+ var import_jsx_runtime138 = require("react/jsx-runtime");
11649
11811
  var BreadcrumbEllipsis = ({
11650
11812
  hiddenItems = [],
11651
11813
  disabled = false
11652
11814
  }) => {
11653
- const { container, item: menuItem } = (0, import_system111.useClassNames)({
11815
+ const { container, item: menuItem } = (0, import_system112.useClassNames)({
11654
11816
  component: "Menu"
11655
11817
  });
11656
- const { item: breadcrumbsItem, link } = (0, import_system111.useClassNames)({
11818
+ const { item: breadcrumbsItem, link } = (0, import_system112.useClassNames)({
11657
11819
  component: "Breadcrumbs"
11658
11820
  });
11659
- return /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)(import_react_aria_components85.MenuTrigger, { children: [
11660
- /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(import_react_aria_components85.Button, { type: "button", className: `${breadcrumbsItem} ${link}`, children: "..." }),
11661
- /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(import_react_aria_components85.Menu, { className: container, children: hiddenItems.map((item, index2) => {
11662
- if (!import_react84.default.isValidElement(item)) return null;
11821
+ return /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)(import_react_aria_components86.MenuTrigger, { children: [
11822
+ /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(import_react_aria_components86.Button, { type: "button", className: `${breadcrumbsItem} ${link}`, children: "..." }),
11823
+ /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(import_react_aria_components86.Menu, { className: container, children: hiddenItems.map((item, index2) => {
11824
+ if (!import_react87.default.isValidElement(item)) return null;
11663
11825
  const { href, children: itemChildren } = item.props;
11664
- return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
11665
- import_react_aria_components85.MenuItem,
11826
+ return /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
11827
+ import_react_aria_components86.MenuItem,
11666
11828
  {
11667
11829
  className: menuItem,
11668
11830
  href,
@@ -11679,52 +11841,52 @@ var BreadcrumbEllipsis = ({
11679
11841
  var BreadcrumbsItem = (_) => null;
11680
11842
 
11681
11843
  // src/Breadcrumbs/Breadcrumbs.tsx
11682
- var import_jsx_runtime136 = require("react/jsx-runtime");
11683
- var _Breadcrumbs = (0, import_react85.forwardRef)(
11844
+ var import_jsx_runtime139 = require("react/jsx-runtime");
11845
+ var _Breadcrumbs = (0, import_react88.forwardRef)(
11684
11846
  ({ children, variant, size: size2, disabled, maxVisibleItems, ...props }, ref) => {
11685
11847
  const {
11686
11848
  container,
11687
11849
  item: breadcrumbsItem,
11688
11850
  link,
11689
11851
  current
11690
- } = (0, import_system112.useClassNames)({
11852
+ } = (0, import_system113.useClassNames)({
11691
11853
  component: "Breadcrumbs",
11692
11854
  variant,
11693
11855
  size: size2
11694
11856
  });
11695
- const items = import_react85.default.Children.toArray(children);
11857
+ const items = import_react88.default.Children.toArray(children);
11696
11858
  const total = items.length;
11697
11859
  const shouldCollapse = typeof maxVisibleItems === "number" && maxVisibleItems >= 2 && total > maxVisibleItems;
11698
11860
  const hiddenItems = shouldCollapse ? items.slice(1, -1) : [];
11699
- const ellipsis = /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(BreadcrumbsItem, { href: "", children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(BreadcrumbEllipsis, { hiddenItems }) }, "ellipsis");
11861
+ const ellipsis = /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(BreadcrumbsItem, { href: "", children: /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(BreadcrumbEllipsis, { hiddenItems }) }, "ellipsis");
11700
11862
  const displayedItems = shouldCollapse ? maxVisibleItems === 2 ? [items[0], ellipsis] : [items[0], ellipsis, items[total - 1]] : items;
11701
- return /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
11702
- import_react_aria_components86.Breadcrumbs,
11863
+ return /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(
11864
+ import_react_aria_components87.Breadcrumbs,
11703
11865
  {
11704
11866
  ...props,
11705
11867
  ref,
11706
11868
  isDisabled: disabled,
11707
11869
  className: container,
11708
11870
  children: displayedItems.map((item, index2) => {
11709
- if (!import_react85.default.isValidElement(item)) return null;
11871
+ if (!import_react88.default.isValidElement(item)) return null;
11710
11872
  const isLast = index2 === displayedItems.length - 1;
11711
11873
  const { href, children: itemChildren, ...ariaProps } = item.props;
11712
- return /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(
11713
- import_react_aria_components86.Breadcrumb,
11874
+ return /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)(
11875
+ import_react_aria_components87.Breadcrumb,
11714
11876
  {
11715
11877
  ...ariaProps,
11716
11878
  className: breadcrumbsItem,
11717
11879
  children: [
11718
- /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
11880
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(
11719
11881
  "a",
11720
11882
  {
11721
11883
  href,
11722
- className: (0, import_system112.cn)(link, isLast && current),
11884
+ className: (0, import_system113.cn)(link, isLast && current),
11723
11885
  "aria-current": isLast ? "page" : void 0,
11724
11886
  children: itemChildren
11725
11887
  }
11726
11888
  ),
11727
- !isLast && /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
11889
+ !isLast && /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(
11728
11890
  ChevronRight,
11729
11891
  {
11730
11892
  "aria-hidden": "true",
@@ -11742,6 +11904,20 @@ var _Breadcrumbs = (0, import_react85.forwardRef)(
11742
11904
  }
11743
11905
  );
11744
11906
  _Breadcrumbs.Item = BreadcrumbsItem;
11907
+
11908
+ // src/utils/form.utils.ts
11909
+ var parseFormData = (e) => {
11910
+ const data = new FormData(e.currentTarget);
11911
+ const result = {};
11912
+ for (const [key, value] of data.entries()) {
11913
+ if (result[key]) {
11914
+ result[key] = Array.isArray(result[key]) ? [...result[key], value] : [result[key], value];
11915
+ } else {
11916
+ result[key] = value;
11917
+ }
11918
+ }
11919
+ return result;
11920
+ };
11745
11921
  // Annotate the CommonJS export names for ESM import in node:
11746
11922
  0 && (module.exports = {
11747
11923
  Accordion,
@@ -11761,6 +11937,9 @@ _Breadcrumbs.Item = BreadcrumbsItem;
11761
11937
  CheckboxGroup,
11762
11938
  Columns,
11763
11939
  ComboBox,
11940
+ ConfirmationContext,
11941
+ ConfirmationDialog,
11942
+ ConfirmationProvider,
11764
11943
  Container,
11765
11944
  ContextualHelp,
11766
11945
  DateField,
@@ -11779,6 +11958,7 @@ _Breadcrumbs.Item = BreadcrumbsItem;
11779
11958
  Inset,
11780
11959
  Label,
11781
11960
  Link,
11961
+ LinkButton,
11782
11962
  List,
11783
11963
  MarigoldProvider,
11784
11964
  Menu,
@@ -11820,8 +12000,10 @@ _Breadcrumbs.Item = BreadcrumbsItem;
11820
12000
  _ContextualHelp,
11821
12001
  gridColsAlign,
11822
12002
  gridColumn,
12003
+ parseFormData,
11823
12004
  queue,
11824
12005
  useAsyncList,
12006
+ useConfirmation,
11825
12007
  useListData,
11826
12008
  useTheme,
11827
12009
  useToast