@marigold/components 7.5.3 → 7.6.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
@@ -78,10 +78,11 @@ __export(src_exports, {
78
78
  Popover: () => _Popover,
79
79
  Radio: () => _Radio,
80
80
  RadioGroup: () => _RadioGroup,
81
- RouterProvider: () => import_react_aria_components57.RouterProvider,
81
+ RouterProvider: () => import_react_aria_components59.RouterProvider,
82
82
  Scrollable: () => Scrollable,
83
83
  SearchField: () => _SearchField,
84
84
  Select: () => _Select,
85
+ SelectList: () => _SelectList,
85
86
  Slider: () => _Slider,
86
87
  Split: () => Split,
87
88
  Stack: () => Stack,
@@ -1514,7 +1515,7 @@ var import_system31 = require("@marigold/system");
1514
1515
  var import_jsx_runtime36 = require("react/jsx-runtime");
1515
1516
  var _Divider = ({ variant, ...props }) => {
1516
1517
  const classNames2 = (0, import_system31.useClassNames)({ component: "Divider", variant });
1517
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react_aria_components20.Separator, { className: classNames2, ...props });
1518
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react_aria_components20.Separator, { className: (0, import_system31.cn)("border-none", classNames2), ...props });
1518
1519
  };
1519
1520
 
1520
1521
  // src/Footer/Footer.tsx
@@ -2150,12 +2151,13 @@ var _Menu = ({
2150
2151
  size,
2151
2152
  disabled,
2152
2153
  open,
2154
+ placement,
2153
2155
  ...props
2154
2156
  }) => {
2155
2157
  const classNames2 = (0, import_system49.useClassNames)({ component: "Menu", variant, size });
2156
2158
  return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_react_aria_components37.MenuTrigger, { ...props, children: [
2157
2159
  /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(_Button, { variant: "menu", disabled, children: label }),
2158
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(_Popover, { open, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react_aria_components37.Menu, { ...props, className: classNames2.container, children }) })
2160
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(_Popover, { open, placement, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react_aria_components37.Menu, { ...props, className: classNames2.container, children }) })
2159
2161
  ] });
2160
2162
  };
2161
2163
  _Menu.Item = _MenuItem;
@@ -2700,30 +2702,92 @@ var _Select = (0, import_react38.forwardRef)(
2700
2702
  _Select.Option = _ListBox.Item;
2701
2703
  _Select.Section = _ListBox.Section;
2702
2704
 
2703
- // src/Scrollable/Scrollable.tsx
2705
+ // src/SelectList/SelectList.tsx
2706
+ var import_react41 = require("react");
2707
+ var import_react_aria_components48 = require("react-aria-components");
2708
+ var import_system60 = require("@marigold/system");
2709
+
2710
+ // src/SelectList/Context.ts
2711
+ var import_react39 = require("react");
2712
+ var SelectListContext = (0, import_react39.createContext)(
2713
+ {}
2714
+ );
2715
+ var useSelectListContext = () => (0, import_react39.useContext)(SelectListContext);
2716
+
2717
+ // src/SelectList/SelectListItem.tsx
2718
+ var import_react40 = require("react");
2719
+ var import_react_aria_components47 = require("react-aria-components");
2704
2720
  var import_system59 = require("@marigold/system");
2705
2721
  var import_jsx_runtime70 = require("react/jsx-runtime");
2722
+ var _SelectListItem = (0, import_react40.forwardRef)(
2723
+ ({ children, ...props }, ref) => {
2724
+ let textValue = typeof children === "string" ? children : void 0;
2725
+ const { classNames: classNames2 } = useSelectListContext();
2726
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
2727
+ import_react_aria_components47.GridListItem,
2728
+ {
2729
+ textValue,
2730
+ ...props,
2731
+ className: (0, import_system59.cn)("flex items-center", classNames2 == null ? void 0 : classNames2.option),
2732
+ ref,
2733
+ children: ({ selectionMode }) => /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_jsx_runtime70.Fragment, { children: [
2734
+ selectionMode === "multiple" && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(FieldGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(_Checkbox, { slot: "selection" }) }),
2735
+ children
2736
+ ] })
2737
+ }
2738
+ );
2739
+ }
2740
+ );
2741
+
2742
+ // src/SelectList/SelectList.tsx
2743
+ var import_jsx_runtime71 = require("react/jsx-runtime");
2744
+ var _SelectList = (0, import_react41.forwardRef)(
2745
+ ({ onChange, ...rest }, ref) => {
2746
+ const classNames2 = (0, import_system60.useClassNames)({ component: "ListBox" });
2747
+ const props = {
2748
+ onSelectionChange: onChange,
2749
+ ...rest
2750
+ };
2751
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(SelectListContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: classNames2.container, children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
2752
+ import_react_aria_components48.GridList,
2753
+ {
2754
+ ...props,
2755
+ ref,
2756
+ className: (0, import_system60.cn)(
2757
+ "overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh]",
2758
+ classNames2.list
2759
+ ),
2760
+ children: props.children
2761
+ }
2762
+ ) }) });
2763
+ }
2764
+ );
2765
+ _SelectList.Item = _SelectListItem;
2766
+
2767
+ // src/Scrollable/Scrollable.tsx
2768
+ var import_system61 = require("@marigold/system");
2769
+ var import_jsx_runtime72 = require("react/jsx-runtime");
2706
2770
  var Scrollable = ({
2707
2771
  children,
2708
2772
  width = "full",
2709
2773
  height,
2710
2774
  ...props
2711
- }) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
2775
+ }) => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
2712
2776
  "div",
2713
2777
  {
2714
2778
  ...props,
2715
- className: (0, import_system59.cn)(["sticky h-[--height] overflow-auto", import_system59.width[width]]),
2716
- style: (0, import_system59.createVar)({ height }),
2779
+ className: (0, import_system61.cn)(["sticky h-[--height] overflow-auto", import_system61.width[width]]),
2780
+ style: (0, import_system61.createVar)({ height }),
2717
2781
  children
2718
2782
  }
2719
2783
  );
2720
2784
 
2721
2785
  // src/Slider/Slider.tsx
2722
- var import_react39 = require("react");
2723
- var import_react_aria_components47 = require("react-aria-components");
2724
- var import_system60 = require("@marigold/system");
2725
- var import_jsx_runtime71 = require("react/jsx-runtime");
2726
- var _Slider = (0, import_react39.forwardRef)(
2786
+ var import_react42 = require("react");
2787
+ var import_react_aria_components49 = require("react-aria-components");
2788
+ var import_system62 = require("@marigold/system");
2789
+ var import_jsx_runtime73 = require("react/jsx-runtime");
2790
+ var _Slider = (0, import_react42.forwardRef)(
2727
2791
  ({
2728
2792
  thumbLabels,
2729
2793
  variant,
@@ -2732,7 +2796,7 @@ var _Slider = (0, import_react39.forwardRef)(
2732
2796
  disabled,
2733
2797
  ...rest
2734
2798
  }, ref) => {
2735
- const classNames2 = (0, import_system60.useClassNames)({
2799
+ const classNames2 = (0, import_system62.useClassNames)({
2736
2800
  component: "Slider",
2737
2801
  variant,
2738
2802
  size
@@ -2741,27 +2805,27 @@ var _Slider = (0, import_react39.forwardRef)(
2741
2805
  isDisabled: disabled,
2742
2806
  ...rest
2743
2807
  };
2744
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
2745
- import_react_aria_components47.Slider,
2808
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
2809
+ import_react_aria_components49.Slider,
2746
2810
  {
2747
- className: (0, import_system60.cn)(
2811
+ className: (0, import_system62.cn)(
2748
2812
  "grid grid-cols-[auto_1fr] gap-y-1",
2749
2813
  classNames2.container,
2750
- import_system60.width[width]
2814
+ import_system62.width[width]
2751
2815
  ),
2752
2816
  ref,
2753
2817
  ...props,
2754
2818
  children: [
2755
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(_Label, { children: props.children }),
2756
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react_aria_components47.SliderOutput, { className: (0, import_system60.cn)("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
2757
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
2758
- import_react_aria_components47.SliderTrack,
2819
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(_Label, { children: props.children }),
2820
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react_aria_components49.SliderOutput, { className: (0, import_system62.cn)("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
2821
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
2822
+ import_react_aria_components49.SliderTrack,
2759
2823
  {
2760
- className: (0, import_system60.cn)("relative col-span-2 h-2 w-full", classNames2.track),
2761
- children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
2762
- import_react_aria_components47.SliderThumb,
2824
+ className: (0, import_system62.cn)("relative col-span-2 h-2 w-full", classNames2.track),
2825
+ children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
2826
+ import_react_aria_components49.SliderThumb,
2763
2827
  {
2764
- className: (0, import_system60.cn)("top-1/2 cursor-pointer", classNames2.thumb),
2828
+ className: (0, import_system62.cn)("top-1/2 cursor-pointer", classNames2.thumb),
2765
2829
  index: i,
2766
2830
  "aria-label": thumbLabels == null ? void 0 : thumbLabels[i]
2767
2831
  },
@@ -2776,12 +2840,12 @@ var _Slider = (0, import_react39.forwardRef)(
2776
2840
  );
2777
2841
 
2778
2842
  // src/Split/Split.tsx
2779
- var import_jsx_runtime72 = require("react/jsx-runtime");
2780
- var Split = (props) => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { ...props, role: "separator", className: "grow" });
2843
+ var import_jsx_runtime74 = require("react/jsx-runtime");
2844
+ var Split = (props) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { ...props, role: "separator", className: "grow" });
2781
2845
 
2782
2846
  // src/Stack/Stack.tsx
2783
- var import_system61 = require("@marigold/system");
2784
- var import_jsx_runtime73 = require("react/jsx-runtime");
2847
+ var import_system63 = require("@marigold/system");
2848
+ var import_jsx_runtime75 = require("react/jsx-runtime");
2785
2849
  var Stack = ({
2786
2850
  children,
2787
2851
  space = 0,
@@ -2792,14 +2856,14 @@ var Stack = ({
2792
2856
  ...props
2793
2857
  }) => {
2794
2858
  var _a, _b, _c, _d;
2795
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
2859
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
2796
2860
  "div",
2797
2861
  {
2798
- className: (0, import_system61.cn)(
2862
+ className: (0, import_system63.cn)(
2799
2863
  "flex flex-col",
2800
- import_system61.gapSpace[space],
2801
- alignX && ((_b = (_a = import_system61.alignment) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
2802
- alignY && ((_d = (_c = import_system61.alignment) == null ? void 0 : _c.vertical) == null ? void 0 : _d.alignmentY[alignY]),
2864
+ import_system63.gapSpace[space],
2865
+ alignX && ((_b = (_a = import_system63.alignment) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
2866
+ alignY && ((_d = (_c = import_system63.alignment) == null ? void 0 : _c.vertical) == null ? void 0 : _d.alignmentY[alignY]),
2803
2867
  stretch && "h-full w-full"
2804
2868
  ),
2805
2869
  ...props,
@@ -2809,11 +2873,11 @@ var Stack = ({
2809
2873
  };
2810
2874
 
2811
2875
  // src/Switch/Switch.tsx
2812
- var import_react40 = require("react");
2813
- var import_react_aria_components48 = require("react-aria-components");
2814
- var import_system62 = require("@marigold/system");
2815
- var import_jsx_runtime74 = require("react/jsx-runtime");
2816
- var _Switch = (0, import_react40.forwardRef)(
2876
+ var import_react43 = require("react");
2877
+ var import_react_aria_components50 = require("react-aria-components");
2878
+ var import_system64 = require("@marigold/system");
2879
+ var import_jsx_runtime76 = require("react/jsx-runtime");
2880
+ var _Switch = (0, import_react43.forwardRef)(
2817
2881
  ({
2818
2882
  variant,
2819
2883
  size,
@@ -2824,37 +2888,37 @@ var _Switch = (0, import_react40.forwardRef)(
2824
2888
  readOnly,
2825
2889
  ...rest
2826
2890
  }, ref) => {
2827
- const classNames2 = (0, import_system62.useClassNames)({ component: "Switch", size, variant });
2891
+ const classNames2 = (0, import_system64.useClassNames)({ component: "Switch", size, variant });
2828
2892
  const props = {
2829
2893
  isDisabled: disabled,
2830
2894
  isReadOnly: readOnly,
2831
2895
  isSelected: selected,
2832
2896
  ...rest
2833
2897
  };
2834
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
2835
- import_react_aria_components48.Switch,
2898
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
2899
+ import_react_aria_components50.Switch,
2836
2900
  {
2837
2901
  ...props,
2838
2902
  ref,
2839
- className: (0, import_system62.cn)(
2840
- import_system62.width[width],
2903
+ className: (0, import_system64.cn)(
2904
+ import_system64.width[width],
2841
2905
  "group/switch",
2842
2906
  "flex items-center gap-[1ch]",
2843
2907
  classNames2.container
2844
2908
  ),
2845
2909
  children: [
2846
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(_Label, { elementType: "span", children }),
2847
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
2910
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(_Label, { elementType: "span", children }),
2911
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
2848
2912
  "div",
2849
2913
  {
2850
- className: (0, import_system62.cn)(
2914
+ className: (0, import_system64.cn)(
2851
2915
  "h-6 w-12 basis-12 rounded-3xl group-disabled/switch:cursor-not-allowed ",
2852
2916
  classNames2.track
2853
2917
  ),
2854
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
2918
+ children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
2855
2919
  "div",
2856
2920
  {
2857
- className: (0, import_system62.cn)(
2921
+ className: (0, import_system64.cn)(
2858
2922
  "h-[22px] w-[22px]",
2859
2923
  "cubic-bezier(.7,0,.3,1)",
2860
2924
  "absolute left-0 top-px",
@@ -2873,33 +2937,33 @@ var _Switch = (0, import_react40.forwardRef)(
2873
2937
  );
2874
2938
 
2875
2939
  // src/Table/Table.tsx
2876
- var import_react48 = require("react");
2940
+ var import_react51 = require("react");
2877
2941
  var import_table9 = require("@react-aria/table");
2878
2942
  var import_table10 = require("@react-stately/table");
2879
- var import_system69 = require("@marigold/system");
2943
+ var import_system71 = require("@marigold/system");
2880
2944
 
2881
2945
  // src/Table/Context.tsx
2882
- var import_react41 = require("react");
2883
- var TableContext = (0, import_react41.createContext)({});
2884
- var useTableContext = () => (0, import_react41.useContext)(TableContext);
2946
+ var import_react44 = require("react");
2947
+ var TableContext = (0, import_react44.createContext)({});
2948
+ var useTableContext = () => (0, import_react44.useContext)(TableContext);
2885
2949
 
2886
2950
  // src/Table/TableBody.tsx
2887
2951
  var import_table = require("@react-aria/table");
2888
- var import_jsx_runtime75 = require("react/jsx-runtime");
2952
+ var import_jsx_runtime77 = require("react/jsx-runtime");
2889
2953
  var TableBody = ({ children }) => {
2890
2954
  const { rowGroupProps } = (0, import_table.useTableRowGroup)();
2891
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("tbody", { ...rowGroupProps, children });
2955
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("tbody", { ...rowGroupProps, children });
2892
2956
  };
2893
2957
 
2894
2958
  // src/Table/TableCell.tsx
2895
- var import_react42 = require("react");
2959
+ var import_react45 = require("react");
2896
2960
  var import_focus2 = require("@react-aria/focus");
2897
2961
  var import_table2 = require("@react-aria/table");
2898
2962
  var import_utils3 = require("@react-aria/utils");
2899
- var import_system63 = require("@marigold/system");
2900
- var import_jsx_runtime76 = require("react/jsx-runtime");
2963
+ var import_system65 = require("@marigold/system");
2964
+ var import_jsx_runtime78 = require("react/jsx-runtime");
2901
2965
  var TableCell = ({ cell, align = "left" }) => {
2902
- const ref = (0, import_react42.useRef)(null);
2966
+ const ref = (0, import_react45.useRef)(null);
2903
2967
  const { interactive, state, classNames: classNames2 } = useTableContext();
2904
2968
  const disabled = state.disabledKeys.has(cell.parentKey);
2905
2969
  const { gridCellProps } = (0, import_table2.useTableCell)(
@@ -2919,12 +2983,12 @@ var TableCell = ({ cell, align = "left" }) => {
2919
2983
  onPointerDown: (e) => e.stopPropagation()
2920
2984
  };
2921
2985
  const { focusProps, isFocusVisible } = (0, import_focus2.useFocusRing)();
2922
- const stateProps = (0, import_system63.useStateProps)({ disabled, focusVisible: isFocusVisible });
2923
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
2986
+ const stateProps = (0, import_system65.useStateProps)({ disabled, focusVisible: isFocusVisible });
2987
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
2924
2988
  "td",
2925
2989
  {
2926
2990
  ref,
2927
- className: (0, import_system63.cn)(classNames2 == null ? void 0 : classNames2.cell),
2991
+ className: (0, import_system65.cn)(classNames2 == null ? void 0 : classNames2.cell),
2928
2992
  ...(0, import_utils3.mergeProps)(cellProps, focusProps),
2929
2993
  ...stateProps,
2930
2994
  align,
@@ -2934,11 +2998,11 @@ var TableCell = ({ cell, align = "left" }) => {
2934
2998
  };
2935
2999
 
2936
3000
  // src/Table/TableCheckboxCell.tsx
2937
- var import_react43 = require("react");
3001
+ var import_react46 = require("react");
2938
3002
  var import_focus3 = require("@react-aria/focus");
2939
3003
  var import_table3 = require("@react-aria/table");
2940
3004
  var import_utils4 = require("@react-aria/utils");
2941
- var import_system64 = require("@marigold/system");
3005
+ var import_system66 = require("@marigold/system");
2942
3006
 
2943
3007
  // src/Table/utils.ts
2944
3008
  var mapCheckboxProps = ({
@@ -2961,9 +3025,9 @@ var mapCheckboxProps = ({
2961
3025
  };
2962
3026
 
2963
3027
  // src/Table/TableCheckboxCell.tsx
2964
- var import_jsx_runtime77 = require("react/jsx-runtime");
3028
+ var import_jsx_runtime79 = require("react/jsx-runtime");
2965
3029
  var TableCheckboxCell = ({ cell }) => {
2966
- const ref = (0, import_react43.useRef)(null);
3030
+ const ref = (0, import_react46.useRef)(null);
2967
3031
  const { state, classNames: classNames2 } = useTableContext();
2968
3032
  const disabled = state.disabledKeys.has(cell.parentKey);
2969
3033
  const { gridCellProps } = (0, import_table3.useTableCell)(
@@ -2977,36 +3041,36 @@ var TableCheckboxCell = ({ cell }) => {
2977
3041
  (0, import_table3.useTableSelectionCheckbox)({ key: cell.parentKey }, state)
2978
3042
  );
2979
3043
  const { focusProps, isFocusVisible } = (0, import_focus3.useFocusRing)();
2980
- const stateProps = (0, import_system64.useStateProps)({ disabled, focusVisible: isFocusVisible });
2981
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
3044
+ const stateProps = (0, import_system66.useStateProps)({ disabled, focusVisible: isFocusVisible });
3045
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
2982
3046
  "td",
2983
3047
  {
2984
3048
  ref,
2985
- className: (0, import_system64.cn)("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
3049
+ className: (0, import_system66.cn)("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
2986
3050
  ...(0, import_utils4.mergeProps)(gridCellProps, focusProps),
2987
3051
  ...stateProps,
2988
- children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(_Checkbox, { ...checkboxProps })
3052
+ children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(_Checkbox, { ...checkboxProps })
2989
3053
  }
2990
3054
  );
2991
3055
  };
2992
3056
 
2993
3057
  // src/Table/TableColumnHeader.tsx
2994
- var import_react44 = require("react");
3058
+ var import_react47 = require("react");
2995
3059
  var import_focus4 = require("@react-aria/focus");
2996
3060
  var import_interactions = require("@react-aria/interactions");
2997
3061
  var import_table4 = require("@react-aria/table");
2998
3062
  var import_utils6 = require("@react-aria/utils");
2999
3063
  var import_icons3 = require("@marigold/icons");
3000
- var import_system65 = require("@marigold/system");
3001
- var import_system66 = require("@marigold/system");
3002
- var import_jsx_runtime78 = require("react/jsx-runtime");
3064
+ var import_system67 = require("@marigold/system");
3065
+ var import_system68 = require("@marigold/system");
3066
+ var import_jsx_runtime80 = require("react/jsx-runtime");
3003
3067
  var TableColumnHeader = ({
3004
3068
  column,
3005
3069
  width = "auto",
3006
3070
  align = "left"
3007
3071
  }) => {
3008
3072
  var _a, _b;
3009
- const ref = (0, import_react44.useRef)(null);
3073
+ const ref = (0, import_react47.useRef)(null);
3010
3074
  const { state, classNames: classNames2 } = useTableContext();
3011
3075
  const { columnHeaderProps } = (0, import_table4.useTableColumnHeader)(
3012
3076
  {
@@ -3017,22 +3081,22 @@ var TableColumnHeader = ({
3017
3081
  );
3018
3082
  const { hoverProps, isHovered } = (0, import_interactions.useHover)({});
3019
3083
  const { focusProps, isFocusVisible } = (0, import_focus4.useFocusRing)();
3020
- const stateProps = (0, import_system65.useStateProps)({
3084
+ const stateProps = (0, import_system67.useStateProps)({
3021
3085
  hover: isHovered,
3022
3086
  focusVisible: isFocusVisible
3023
3087
  });
3024
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
3088
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
3025
3089
  "th",
3026
3090
  {
3027
3091
  colSpan: column.colspan,
3028
3092
  ref,
3029
- className: (0, import_system65.cn)("cursor-default", import_system66.width[width], classNames2 == null ? void 0 : classNames2.header),
3093
+ className: (0, import_system67.cn)("cursor-default", import_system68.width[width], classNames2 == null ? void 0 : classNames2.header),
3030
3094
  ...(0, import_utils6.mergeProps)(columnHeaderProps, hoverProps, focusProps),
3031
3095
  ...stateProps,
3032
3096
  align,
3033
3097
  children: [
3034
3098
  column.rendered,
3035
- column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_icons3.SortUp, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_icons3.SortDown, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_icons3.SortDown, { className: "inline-block" }))
3099
+ column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_icons3.SortUp, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_icons3.SortDown, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_icons3.SortDown, { className: "inline-block" }))
3036
3100
  ]
3037
3101
  }
3038
3102
  );
@@ -3040,10 +3104,10 @@ var TableColumnHeader = ({
3040
3104
 
3041
3105
  // src/Table/TableHeader.tsx
3042
3106
  var import_table5 = require("@react-aria/table");
3043
- var import_jsx_runtime79 = require("react/jsx-runtime");
3107
+ var import_jsx_runtime81 = require("react/jsx-runtime");
3044
3108
  var TableHeader = ({ stickyHeader, children }) => {
3045
3109
  const { rowGroupProps } = (0, import_table5.useTableRowGroup)();
3046
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
3110
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
3047
3111
  "thead",
3048
3112
  {
3049
3113
  ...rowGroupProps,
@@ -3054,29 +3118,29 @@ var TableHeader = ({ stickyHeader, children }) => {
3054
3118
  };
3055
3119
 
3056
3120
  // src/Table/TableHeaderRow.tsx
3057
- var import_react45 = require("react");
3121
+ var import_react48 = require("react");
3058
3122
  var import_table6 = require("@react-aria/table");
3059
- var import_jsx_runtime80 = require("react/jsx-runtime");
3123
+ var import_jsx_runtime82 = require("react/jsx-runtime");
3060
3124
  var TableHeaderRow = ({ item, children }) => {
3061
3125
  const { state } = useTableContext();
3062
- const ref = (0, import_react45.useRef)(null);
3126
+ const ref = (0, import_react48.useRef)(null);
3063
3127
  const { rowProps } = (0, import_table6.useTableHeaderRow)({ node: item }, state, ref);
3064
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("tr", { ...rowProps, ref, children });
3128
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("tr", { ...rowProps, ref, children });
3065
3129
  };
3066
3130
 
3067
3131
  // src/Table/TableRow.tsx
3068
- var import_react46 = require("react");
3132
+ var import_react49 = require("react");
3069
3133
  var import_focus5 = require("@react-aria/focus");
3070
3134
  var import_interactions2 = require("@react-aria/interactions");
3071
3135
  var import_table7 = require("@react-aria/table");
3072
3136
  var import_utils7 = require("@react-aria/utils");
3073
- var import_system67 = require("@marigold/system");
3074
- var import_jsx_runtime81 = require("react/jsx-runtime");
3137
+ var import_system69 = require("@marigold/system");
3138
+ var import_jsx_runtime83 = require("react/jsx-runtime");
3075
3139
  var TableRow = ({ children, row }) => {
3076
- const ref = (0, import_react46.useRef)(null);
3140
+ const ref = (0, import_react49.useRef)(null);
3077
3141
  const { interactive, state, ...ctx } = useTableContext();
3078
3142
  const { variant, size } = row.props;
3079
- const classNames2 = (0, import_system67.useClassNames)({
3143
+ const classNames2 = (0, import_system69.useClassNames)({
3080
3144
  component: "Table",
3081
3145
  variant: variant || ctx.variant,
3082
3146
  size: size || ctx.size
@@ -3094,18 +3158,18 @@ var TableRow = ({ children, row }) => {
3094
3158
  const { hoverProps, isHovered } = (0, import_interactions2.useHover)({
3095
3159
  isDisabled: disabled || !interactive
3096
3160
  });
3097
- const stateProps = (0, import_system67.useStateProps)({
3161
+ const stateProps = (0, import_system69.useStateProps)({
3098
3162
  disabled,
3099
3163
  selected,
3100
3164
  hover: isHovered,
3101
3165
  focusVisible: isFocusVisible,
3102
3166
  active: isPressed
3103
3167
  });
3104
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
3168
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3105
3169
  "tr",
3106
3170
  {
3107
3171
  ref,
3108
- className: (0, import_system67.cn)(
3172
+ className: (0, import_system69.cn)(
3109
3173
  [
3110
3174
  !interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"
3111
3175
  ],
@@ -3119,19 +3183,19 @@ var TableRow = ({ children, row }) => {
3119
3183
  };
3120
3184
 
3121
3185
  // src/Table/TableSelectAllCell.tsx
3122
- var import_react47 = require("react");
3186
+ var import_react50 = require("react");
3123
3187
  var import_focus6 = require("@react-aria/focus");
3124
3188
  var import_interactions3 = require("@react-aria/interactions");
3125
3189
  var import_table8 = require("@react-aria/table");
3126
3190
  var import_utils8 = require("@react-aria/utils");
3127
- var import_system68 = require("@marigold/system");
3128
- var import_jsx_runtime82 = require("react/jsx-runtime");
3191
+ var import_system70 = require("@marigold/system");
3192
+ var import_jsx_runtime84 = require("react/jsx-runtime");
3129
3193
  var TableSelectAllCell = ({
3130
3194
  column,
3131
3195
  width = "auto",
3132
3196
  align = "left"
3133
3197
  }) => {
3134
- const ref = (0, import_react47.useRef)(null);
3198
+ const ref = (0, import_react50.useRef)(null);
3135
3199
  const { state, classNames: classNames2 } = useTableContext();
3136
3200
  const { columnHeaderProps } = (0, import_table8.useTableColumnHeader)(
3137
3201
  {
@@ -3143,25 +3207,25 @@ var TableSelectAllCell = ({
3143
3207
  const { checkboxProps } = mapCheckboxProps((0, import_table8.useTableSelectAllCheckbox)(state));
3144
3208
  const { hoverProps, isHovered } = (0, import_interactions3.useHover)({});
3145
3209
  const { focusProps, isFocusVisible } = (0, import_focus6.useFocusRing)();
3146
- const stateProps = (0, import_system68.useStateProps)({
3210
+ const stateProps = (0, import_system70.useStateProps)({
3147
3211
  hover: isHovered,
3148
3212
  focusVisible: isFocusVisible
3149
3213
  });
3150
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
3214
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
3151
3215
  "th",
3152
3216
  {
3153
3217
  ref,
3154
- className: (0, import_system68.cn)(import_system68.width[width], [" leading-none"], classNames2 == null ? void 0 : classNames2.header),
3218
+ className: (0, import_system70.cn)(import_system70.width[width], [" leading-none"], classNames2 == null ? void 0 : classNames2.header),
3155
3219
  ...(0, import_utils8.mergeProps)(columnHeaderProps, hoverProps, focusProps),
3156
3220
  ...stateProps,
3157
3221
  align,
3158
- children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(_Checkbox, { ...checkboxProps })
3222
+ children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(_Checkbox, { ...checkboxProps })
3159
3223
  }
3160
3224
  );
3161
3225
  };
3162
3226
 
3163
3227
  // src/Table/Table.tsx
3164
- var import_jsx_runtime83 = require("react/jsx-runtime");
3228
+ var import_jsx_runtime85 = require("react/jsx-runtime");
3165
3229
  var Table = ({
3166
3230
  variant,
3167
3231
  size,
@@ -3171,7 +3235,7 @@ var Table = ({
3171
3235
  ...props
3172
3236
  }) => {
3173
3237
  const interactive = selectionMode !== "none";
3174
- const tableRef = (0, import_react48.useRef)(null);
3238
+ const tableRef = (0, import_react51.useRef)(null);
3175
3239
  const state = (0, import_table10.useTableState)({
3176
3240
  ...props,
3177
3241
  selectionMode,
@@ -3179,21 +3243,21 @@ var Table = ({
3179
3243
  props.selectionBehavior !== "replace"
3180
3244
  });
3181
3245
  const { gridProps } = (0, import_table9.useTable)(props, state, tableRef);
3182
- const classNames2 = (0, import_system69.useClassNames)({
3246
+ const classNames2 = (0, import_system71.useClassNames)({
3183
3247
  component: "Table",
3184
3248
  variant,
3185
3249
  size
3186
3250
  });
3187
3251
  const { collection } = state;
3188
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3252
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
3189
3253
  TableContext.Provider,
3190
3254
  {
3191
3255
  value: { state, interactive, classNames: classNames2, variant, size },
3192
- children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
3256
+ children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
3193
3257
  "table",
3194
3258
  {
3195
3259
  ref: tableRef,
3196
- className: (0, import_system69.cn)(
3260
+ className: (0, import_system71.cn)(
3197
3261
  "group/table",
3198
3262
  "border-collapse whitespace-nowrap",
3199
3263
  stretch ? "table w-full" : "block",
@@ -3201,10 +3265,10 @@ var Table = ({
3201
3265
  ),
3202
3266
  ...gridProps,
3203
3267
  children: [
3204
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
3268
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
3205
3269
  (column) => {
3206
3270
  var _a, _b, _c, _d, _e;
3207
- return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3271
+ return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
3208
3272
  TableSelectAllCell,
3209
3273
  {
3210
3274
  width: (_b = column.props) == null ? void 0 : _b.width,
@@ -3212,7 +3276,7 @@ var Table = ({
3212
3276
  align: (_c = column.props) == null ? void 0 : _c.align
3213
3277
  },
3214
3278
  column.key
3215
- ) : /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3279
+ ) : /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
3216
3280
  TableColumnHeader,
3217
3281
  {
3218
3282
  width: (_d = column.props) == null ? void 0 : _d.width,
@@ -3223,12 +3287,12 @@ var Table = ({
3223
3287
  );
3224
3288
  }
3225
3289
  ) }, headerRow.key)) }),
3226
- /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(TableBody, { children: [
3290
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(TableBody, { children: [
3227
3291
  ...collection.rows.map(
3228
- (row) => row.type === "item" && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index) => {
3292
+ (row) => row.type === "item" && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index) => {
3229
3293
  var _a, _b;
3230
3294
  const currentColumn = collection.columns[index];
3231
- return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3295
+ return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
3232
3296
  TableCell,
3233
3297
  {
3234
3298
  align: (_b = currentColumn.props) == null ? void 0 : _b.align,
@@ -3252,8 +3316,8 @@ Table.Header = import_table10.TableHeader;
3252
3316
  Table.Row = import_table10.Row;
3253
3317
 
3254
3318
  // src/Text/Text.tsx
3255
- var import_system70 = require("@marigold/system");
3256
- var import_jsx_runtime84 = require("react/jsx-runtime");
3319
+ var import_system72 = require("@marigold/system");
3320
+ var import_jsx_runtime86 = require("react/jsx-runtime");
3257
3321
  var Text2 = ({
3258
3322
  variant,
3259
3323
  size,
@@ -3266,27 +3330,27 @@ var Text2 = ({
3266
3330
  children,
3267
3331
  ...props
3268
3332
  }) => {
3269
- const theme = (0, import_system70.useTheme)();
3270
- const classNames2 = (0, import_system70.useClassNames)({
3333
+ const theme = (0, import_system72.useTheme)();
3334
+ const classNames2 = (0, import_system72.useClassNames)({
3271
3335
  component: "Text",
3272
3336
  variant,
3273
3337
  size
3274
3338
  });
3275
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
3339
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
3276
3340
  "p",
3277
3341
  {
3278
3342
  ...props,
3279
- className: (0, import_system70.cn)(
3343
+ className: (0, import_system72.cn)(
3280
3344
  "text-[--color] outline-[--outline]",
3281
3345
  classNames2,
3282
- fontStyle && import_system70.textStyle[fontStyle],
3283
- align && import_system70.textAlign[align],
3284
- cursor && import_system70.cursorStyle[cursor],
3285
- weight && import_system70.fontWeight[weight],
3286
- fontSize && import_system70.textSize[fontSize]
3346
+ fontStyle && import_system72.textStyle[fontStyle],
3347
+ align && import_system72.textAlign[align],
3348
+ cursor && import_system72.cursorStyle[cursor],
3349
+ weight && import_system72.fontWeight[weight],
3350
+ fontSize && import_system72.textSize[fontSize]
3287
3351
  ),
3288
- style: (0, import_system70.createVar)({
3289
- color: color && (0, import_system70.getColor)(
3352
+ style: (0, import_system72.createVar)({
3353
+ color: color && (0, import_system72.getColor)(
3290
3354
  theme,
3291
3355
  color,
3292
3356
  color
@@ -3299,11 +3363,11 @@ var Text2 = ({
3299
3363
  };
3300
3364
 
3301
3365
  // src/TextArea/TextArea.tsx
3302
- var import_react49 = require("react");
3303
- var import_react_aria_components49 = require("react-aria-components");
3304
- var import_system71 = require("@marigold/system");
3305
- var import_jsx_runtime85 = require("react/jsx-runtime");
3306
- var _TextArea = (0, import_react49.forwardRef)(
3366
+ var import_react52 = require("react");
3367
+ var import_react_aria_components51 = require("react-aria-components");
3368
+ var import_system73 = require("@marigold/system");
3369
+ var import_jsx_runtime87 = require("react/jsx-runtime");
3370
+ var _TextArea = (0, import_react52.forwardRef)(
3307
3371
  ({
3308
3372
  variant,
3309
3373
  size,
@@ -3314,7 +3378,7 @@ var _TextArea = (0, import_react49.forwardRef)(
3314
3378
  rows,
3315
3379
  ...rest
3316
3380
  }, ref) => {
3317
- const classNames2 = (0, import_system71.useClassNames)({ component: "TextArea", variant, size });
3381
+ const classNames2 = (0, import_system73.useClassNames)({ component: "TextArea", variant, size });
3318
3382
  const props = {
3319
3383
  isDisabled: disabled,
3320
3384
  isReadOnly: readOnly,
@@ -3322,15 +3386,15 @@ var _TextArea = (0, import_react49.forwardRef)(
3322
3386
  isRequired: required,
3323
3387
  ...rest
3324
3388
  };
3325
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(FieldBase, { as: import_react_aria_components49.TextField, ...props, variant, size, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_aria_components49.TextArea, { className: classNames2, ref, rows }) });
3389
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(FieldBase, { as: import_react_aria_components51.TextField, ...props, variant, size, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_react_aria_components51.TextArea, { className: classNames2, ref, rows }) });
3326
3390
  }
3327
3391
  );
3328
3392
 
3329
3393
  // src/TextField/TextField.tsx
3330
- var import_react50 = require("react");
3331
- var import_react_aria_components50 = require("react-aria-components");
3332
- var import_jsx_runtime86 = require("react/jsx-runtime");
3333
- var _TextField = (0, import_react50.forwardRef)(
3394
+ var import_react53 = require("react");
3395
+ var import_react_aria_components52 = require("react-aria-components");
3396
+ var import_jsx_runtime88 = require("react/jsx-runtime");
3397
+ var _TextField = (0, import_react53.forwardRef)(
3334
3398
  ({
3335
3399
  variant,
3336
3400
  size,
@@ -3347,13 +3411,13 @@ var _TextField = (0, import_react50.forwardRef)(
3347
3411
  isRequired: required,
3348
3412
  ...rest
3349
3413
  };
3350
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(FieldBase, { as: import_react_aria_components50.TextField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(_Input, { ref }) });
3414
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(FieldBase, { as: import_react_aria_components52.TextField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(_Input, { ref }) });
3351
3415
  }
3352
3416
  );
3353
3417
 
3354
3418
  // src/Tiles/Tiles.tsx
3355
- var import_system72 = require("@marigold/system");
3356
- var import_jsx_runtime87 = require("react/jsx-runtime");
3419
+ var import_system74 = require("@marigold/system");
3420
+ var import_jsx_runtime89 = require("react/jsx-runtime");
3357
3421
  var Tiles = ({
3358
3422
  space = 0,
3359
3423
  stretch = false,
@@ -3366,29 +3430,29 @@ var Tiles = ({
3366
3430
  if (stretch) {
3367
3431
  column = `minmax(${column}, 1fr)`;
3368
3432
  }
3369
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3433
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3370
3434
  "div",
3371
3435
  {
3372
3436
  ...props,
3373
- className: (0, import_system72.cn)(
3437
+ className: (0, import_system74.cn)(
3374
3438
  "grid",
3375
- import_system72.gapSpace[space],
3439
+ import_system74.gapSpace[space],
3376
3440
  "grid-cols-[repeat(auto-fit,var(--column))]",
3377
3441
  equalHeight && "auto-rows-[1fr]"
3378
3442
  ),
3379
- style: (0, import_system72.createVar)({ column, tilesWidth }),
3443
+ style: (0, import_system74.createVar)({ column, tilesWidth }),
3380
3444
  children
3381
3445
  }
3382
3446
  );
3383
3447
  };
3384
3448
 
3385
3449
  // src/Tooltip/Tooltip.tsx
3386
- var import_react_aria_components52 = require("react-aria-components");
3387
- var import_system73 = require("@marigold/system");
3450
+ var import_react_aria_components54 = require("react-aria-components");
3451
+ var import_system75 = require("@marigold/system");
3388
3452
 
3389
3453
  // src/Tooltip/TooltipTrigger.tsx
3390
- var import_react_aria_components51 = require("react-aria-components");
3391
- var import_jsx_runtime88 = require("react/jsx-runtime");
3454
+ var import_react_aria_components53 = require("react-aria-components");
3455
+ var import_jsx_runtime90 = require("react/jsx-runtime");
3392
3456
  var _TooltipTrigger = ({
3393
3457
  delay = 1e3,
3394
3458
  children,
@@ -3402,26 +3466,26 @@ var _TooltipTrigger = ({
3402
3466
  isOpen: open,
3403
3467
  delay
3404
3468
  };
3405
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_aria_components51.TooltipTrigger, { ...props, children });
3469
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_react_aria_components53.TooltipTrigger, { ...props, children });
3406
3470
  };
3407
3471
 
3408
3472
  // src/Tooltip/Tooltip.tsx
3409
- var import_jsx_runtime89 = require("react/jsx-runtime");
3473
+ var import_jsx_runtime91 = require("react/jsx-runtime");
3410
3474
  var _Tooltip = ({ children, variant, size, open, ...rest }) => {
3411
3475
  const props = {
3412
3476
  ...rest,
3413
3477
  isOpen: open
3414
3478
  };
3415
- const classNames2 = (0, import_system73.useClassNames)({ component: "Tooltip", variant, size });
3479
+ const classNames2 = (0, import_system75.useClassNames)({ component: "Tooltip", variant, size });
3416
3480
  const portal = usePortalContainer();
3417
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
3418
- import_react_aria_components52.Tooltip,
3481
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
3482
+ import_react_aria_components54.Tooltip,
3419
3483
  {
3420
3484
  ...props,
3421
- className: (0, import_system73.cn)("group/tooltip", classNames2.container),
3485
+ className: (0, import_system75.cn)("group/tooltip", classNames2.container),
3422
3486
  UNSTABLE_portalContainer: portal,
3423
3487
  children: [
3424
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_aria_components52.OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
3488
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_react_aria_components54.OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
3425
3489
  children
3426
3490
  ]
3427
3491
  }
@@ -3433,11 +3497,11 @@ _Tooltip.Trigger = _TooltipTrigger;
3433
3497
  var import_visually_hidden = require("@react-aria/visually-hidden");
3434
3498
 
3435
3499
  // src/XLoader/XLoader.tsx
3436
- var import_react51 = require("react");
3437
- var import_system74 = require("@marigold/system");
3438
- var import_jsx_runtime90 = require("react/jsx-runtime");
3439
- var XLoader = (0, import_react51.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
3440
- import_system74.SVG,
3500
+ var import_react54 = require("react");
3501
+ var import_system76 = require("@marigold/system");
3502
+ var import_jsx_runtime92 = require("react/jsx-runtime");
3503
+ var XLoader = (0, import_react54.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
3504
+ import_system76.SVG,
3441
3505
  {
3442
3506
  id: "XLoader",
3443
3507
  xmlns: "http://www.w3.org/2000/svg",
@@ -3446,13 +3510,13 @@ var XLoader = (0, import_react51.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3446
3510
  ...props,
3447
3511
  ...ref,
3448
3512
  children: [
3449
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
3450
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3513
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
3514
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3451
3515
  "path",
3452
3516
  {
3453
3517
  id: "XMLID_5_",
3454
3518
  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",
3455
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3519
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3456
3520
  "animate",
3457
3521
  {
3458
3522
  attributeName: "opacity",
@@ -3465,12 +3529,12 @@ var XLoader = (0, import_react51.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3465
3529
  )
3466
3530
  }
3467
3531
  ),
3468
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3532
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3469
3533
  "path",
3470
3534
  {
3471
3535
  id: "XMLID_18_",
3472
3536
  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",
3473
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3537
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3474
3538
  "animate",
3475
3539
  {
3476
3540
  attributeName: "opacity",
@@ -3483,12 +3547,12 @@ var XLoader = (0, import_react51.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3483
3547
  )
3484
3548
  }
3485
3549
  ),
3486
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3550
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3487
3551
  "path",
3488
3552
  {
3489
3553
  id: "XMLID_19_",
3490
3554
  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",
3491
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3555
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3492
3556
  "animate",
3493
3557
  {
3494
3558
  attributeName: "opacity",
@@ -3501,12 +3565,12 @@ var XLoader = (0, import_react51.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3501
3565
  )
3502
3566
  }
3503
3567
  ),
3504
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3568
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3505
3569
  "path",
3506
3570
  {
3507
3571
  id: "XMLID_20_",
3508
3572
  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",
3509
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3573
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3510
3574
  "animate",
3511
3575
  {
3512
3576
  attributeName: "opacity",
@@ -3519,12 +3583,12 @@ var XLoader = (0, import_react51.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3519
3583
  )
3520
3584
  }
3521
3585
  ),
3522
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3586
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3523
3587
  "path",
3524
3588
  {
3525
3589
  id: "XMLID_21_",
3526
3590
  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",
3527
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3591
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3528
3592
  "animate",
3529
3593
  {
3530
3594
  attributeName: "opacity",
@@ -3537,12 +3601,12 @@ var XLoader = (0, import_react51.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3537
3601
  )
3538
3602
  }
3539
3603
  ),
3540
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3604
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3541
3605
  "path",
3542
3606
  {
3543
3607
  id: "XMLID_22_",
3544
3608
  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",
3545
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3609
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3546
3610
  "animate",
3547
3611
  {
3548
3612
  attributeName: "opacity",
@@ -3555,12 +3619,12 @@ var XLoader = (0, import_react51.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3555
3619
  )
3556
3620
  }
3557
3621
  ),
3558
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3622
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3559
3623
  "path",
3560
3624
  {
3561
3625
  id: "XMLID_23_",
3562
3626
  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",
3563
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3627
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3564
3628
  "animate",
3565
3629
  {
3566
3630
  attributeName: "opacity",
@@ -3573,12 +3637,12 @@ var XLoader = (0, import_react51.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3573
3637
  )
3574
3638
  }
3575
3639
  ),
3576
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3640
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3577
3641
  "path",
3578
3642
  {
3579
3643
  id: "XMLID_24_",
3580
3644
  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",
3581
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3645
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3582
3646
  "animate",
3583
3647
  {
3584
3648
  attributeName: "opacity",
@@ -3591,12 +3655,12 @@ var XLoader = (0, import_react51.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3591
3655
  )
3592
3656
  }
3593
3657
  ),
3594
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3658
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3595
3659
  "path",
3596
3660
  {
3597
3661
  id: "XMLID_25_",
3598
3662
  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",
3599
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3663
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3600
3664
  "animate",
3601
3665
  {
3602
3666
  attributeName: "opacity",
@@ -3609,12 +3673,12 @@ var XLoader = (0, import_react51.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3609
3673
  )
3610
3674
  }
3611
3675
  ),
3612
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3676
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3613
3677
  "path",
3614
3678
  {
3615
3679
  id: "XMLID_26_",
3616
3680
  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",
3617
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3681
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3618
3682
  "animate",
3619
3683
  {
3620
3684
  attributeName: "opacity",
@@ -3627,12 +3691,12 @@ var XLoader = (0, import_react51.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3627
3691
  )
3628
3692
  }
3629
3693
  ),
3630
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3694
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3631
3695
  "path",
3632
3696
  {
3633
3697
  id: "XMLID_27_",
3634
3698
  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",
3635
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3699
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3636
3700
  "animate",
3637
3701
  {
3638
3702
  attributeName: "opacity",
@@ -3650,25 +3714,25 @@ var XLoader = (0, import_react51.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3650
3714
  ));
3651
3715
 
3652
3716
  // src/Tabs/Tabs.tsx
3653
- var import_react_aria_components56 = require("react-aria-components");
3654
- var import_system77 = require("@marigold/system");
3717
+ var import_react_aria_components58 = require("react-aria-components");
3718
+ var import_system79 = require("@marigold/system");
3655
3719
 
3656
3720
  // src/Tabs/Context.ts
3657
- var import_react52 = require("react");
3658
- var TabContext = (0, import_react52.createContext)({});
3659
- var useTabContext = () => (0, import_react52.useContext)(TabContext);
3721
+ var import_react55 = require("react");
3722
+ var TabContext = (0, import_react55.createContext)({});
3723
+ var useTabContext = () => (0, import_react55.useContext)(TabContext);
3660
3724
 
3661
3725
  // src/Tabs/Tab.tsx
3662
- var import_react_aria_components53 = require("react-aria-components");
3663
- var import_system75 = require("@marigold/system");
3664
- var import_jsx_runtime91 = require("react/jsx-runtime");
3726
+ var import_react_aria_components55 = require("react-aria-components");
3727
+ var import_system77 = require("@marigold/system");
3728
+ var import_jsx_runtime93 = require("react/jsx-runtime");
3665
3729
  var _Tab = (props) => {
3666
3730
  const { classNames: classNames2 } = useTabContext();
3667
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3668
- import_react_aria_components53.Tab,
3731
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
3732
+ import_react_aria_components55.Tab,
3669
3733
  {
3670
3734
  ...props,
3671
- className: (0, import_system75.cn)(
3735
+ className: (0, import_system77.cn)(
3672
3736
  "flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
3673
3737
  classNames2.tab
3674
3738
  ),
@@ -3678,49 +3742,49 @@ var _Tab = (props) => {
3678
3742
  };
3679
3743
 
3680
3744
  // src/Tabs/TabList.tsx
3681
- var import_react_aria_components54 = require("react-aria-components");
3682
- var import_system76 = require("@marigold/system");
3683
- var import_jsx_runtime92 = require("react/jsx-runtime");
3745
+ var import_react_aria_components56 = require("react-aria-components");
3746
+ var import_system78 = require("@marigold/system");
3747
+ var import_jsx_runtime94 = require("react/jsx-runtime");
3684
3748
  var _TabList = ({ space = 2, ...props }) => {
3685
3749
  const { classNames: classNames2 } = useTabContext();
3686
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3687
- import_react_aria_components54.TabList,
3750
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
3751
+ import_react_aria_components56.TabList,
3688
3752
  {
3689
3753
  ...props,
3690
- className: (0, import_system76.cn)("flex", import_system76.gapSpace[space], classNames2.tabsList),
3754
+ className: (0, import_system78.cn)("flex", import_system78.gapSpace[space], classNames2.tabsList),
3691
3755
  children: props.children
3692
3756
  }
3693
3757
  );
3694
3758
  };
3695
3759
 
3696
3760
  // src/Tabs/TabPanel.tsx
3697
- var import_react_aria_components55 = require("react-aria-components");
3698
- var import_jsx_runtime93 = require("react/jsx-runtime");
3761
+ var import_react_aria_components57 = require("react-aria-components");
3762
+ var import_jsx_runtime95 = require("react/jsx-runtime");
3699
3763
  var _TabPanel = (props) => {
3700
3764
  const { classNames: classNames2 } = useTabContext();
3701
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react_aria_components55.TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
3765
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_aria_components57.TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
3702
3766
  };
3703
3767
 
3704
3768
  // src/Tabs/Tabs.tsx
3705
- var import_jsx_runtime94 = require("react/jsx-runtime");
3769
+ var import_jsx_runtime96 = require("react/jsx-runtime");
3706
3770
  var _Tabs = ({ disabled, variant, size = "medium", ...rest }) => {
3707
3771
  const props = {
3708
3772
  isDisabled: disabled,
3709
3773
  ...rest
3710
3774
  };
3711
- const classNames2 = (0, import_system77.useClassNames)({
3775
+ const classNames2 = (0, import_system79.useClassNames)({
3712
3776
  component: "Tabs",
3713
3777
  size,
3714
3778
  variant
3715
3779
  });
3716
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_aria_components56.Tabs, { ...props, className: classNames2.container, children: props.children }) });
3780
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_react_aria_components58.Tabs, { ...props, className: classNames2.container, children: props.children }) });
3717
3781
  };
3718
3782
  _Tabs.List = _TabList;
3719
3783
  _Tabs.TabPanel = _TabPanel;
3720
3784
  _Tabs.Item = _Tab;
3721
3785
 
3722
3786
  // src/RouterProvider/RouterProvider.tsx
3723
- var import_react_aria_components57 = require("react-aria-components");
3787
+ var import_react_aria_components59 = require("react-aria-components");
3724
3788
  // Annotate the CommonJS export names for ESM import in node:
3725
3789
  0 && (module.exports = {
3726
3790
  Accordion,
@@ -3775,6 +3839,7 @@ var import_react_aria_components57 = require("react-aria-components");
3775
3839
  Scrollable,
3776
3840
  SearchField,
3777
3841
  Select,
3842
+ SelectList,
3778
3843
  Slider,
3779
3844
  Split,
3780
3845
  Stack,