@marigold/components 10.1.0 → 10.1.2

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
@@ -28,8 +28,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
 
30
30
  // src/index.ts
31
- var src_exports = {};
32
- __export(src_exports, {
31
+ var index_exports = {};
32
+ __export(index_exports, {
33
33
  Accordion: () => Accordion,
34
34
  AccordionItem: () => AccordionItem,
35
35
  ActionMenu: () => ActionMenu,
@@ -75,10 +75,11 @@ __export(src_exports, {
75
75
  Multiselect: () => Multiselect,
76
76
  NumberField: () => _NumberField,
77
77
  OverlayContainerProvider: () => OverlayContainerProvider,
78
+ Pagination: () => _Pagination,
78
79
  Popover: () => _Popover,
79
80
  Radio: () => _Radio,
80
81
  RadioGroup: () => _RadioGroup,
81
- RouterProvider: () => import_react_aria_components61.RouterProvider,
82
+ RouterProvider: () => import_react_aria_components62.RouterProvider,
82
83
  Scrollable: () => Scrollable,
83
84
  SearchField: () => _SearchField,
84
85
  SectionMessage: () => SectionMessage,
@@ -107,7 +108,7 @@ __export(src_exports, {
107
108
  usePortalContainer: () => usePortalContainer,
108
109
  useTheme: () => import_system18.useTheme
109
110
  });
110
- module.exports = __toCommonJS(src_exports);
111
+ module.exports = __toCommonJS(index_exports);
111
112
 
112
113
  // src/hooks.ts
113
114
  var import_data = require("@react-stately/data");
@@ -743,10 +744,17 @@ var import_system15 = require("@marigold/system");
743
744
  var import_jsx_runtime18 = require("react/jsx-runtime");
744
745
  var _Section = ({ header: header2, children, ...props }) => {
745
746
  const { classNames: classNames2 } = useListBoxContext();
746
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_react_aria_components6.Section, { ...props, className: (0, import_system15.cn)(classNames2.section, classNames2.header), children: [
747
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react_aria_components6.Header, { children: header2 }),
748
- children
749
- ] });
747
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
748
+ import_react_aria_components6.ListBoxSection,
749
+ {
750
+ ...props,
751
+ className: (0, import_system15.cn)(classNames2.section, classNames2.header),
752
+ children: [
753
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react_aria_components6.Header, { children: header2 }),
754
+ children
755
+ ]
756
+ }
757
+ );
750
758
  };
751
759
 
752
760
  // src/ListBox/ListBox.tsx
@@ -2137,11 +2145,13 @@ var _Calendar = ({
2137
2145
  readOnly,
2138
2146
  size,
2139
2147
  variant,
2148
+ dateUnavailable,
2140
2149
  ...rest
2141
2150
  }) => {
2142
2151
  const props = {
2143
2152
  isDisabled: disabled,
2144
2153
  isReadOnly: readOnly,
2154
+ isDateUnavailable: dateUnavailable,
2145
2155
  ...rest
2146
2156
  };
2147
2157
  const classNames2 = (0, import_system52.useClassNames)({ component: "Calendar" });
@@ -2339,7 +2349,7 @@ var import_system58 = require("@marigold/system");
2339
2349
  var import_jsx_runtime67 = require("react/jsx-runtime");
2340
2350
  var _MenuSection = ({ children, title, ...props }) => {
2341
2351
  const className = (0, import_system58.useClassNames)({ component: "Menu" });
2342
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_react_aria_components36.Section, { ...props, children: [
2352
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_react_aria_components36.MenuSection, { ...props, children: [
2343
2353
  /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(_Header, { className: className.section, children: title }),
2344
2354
  children
2345
2355
  ] });
@@ -2386,6 +2396,7 @@ var ActionMenu = ({
2386
2396
 
2387
2397
  // src/SectionMessage/SectionMessage.tsx
2388
2398
  var import_react38 = require("react");
2399
+ var import_button2 = require("@react-aria/button");
2389
2400
  var import_system63 = require("@marigold/system");
2390
2401
 
2391
2402
  // src/SectionMessage/Context.tsx
@@ -2484,19 +2495,27 @@ var SectionMessage = ({
2484
2495
  size,
2485
2496
  children,
2486
2497
  closeButton,
2498
+ close,
2499
+ onCloseChange,
2487
2500
  ...props
2488
2501
  }) => {
2502
+ const buttonRef = (0, import_react38.useRef)(null);
2489
2503
  const classNames2 = (0, import_system63.useClassNames)({
2490
2504
  component: "SectionMessage",
2491
2505
  variant,
2492
2506
  size
2493
2507
  });
2494
2508
  const Icon4 = icons[variant];
2495
- const [isVisible, setIsVisible] = (0, import_react38.useState)(true);
2509
+ const [internalVisible, setInternalVisible] = (0, import_react38.useState)(true);
2510
+ const isCurrentlyVisible = close != null ? close : internalVisible;
2511
+ const { buttonProps } = (0, import_button2.useButton)(props, buttonRef);
2496
2512
  const handleClose = () => {
2497
- setIsVisible(false);
2513
+ onCloseChange && close && onCloseChange(close);
2514
+ if (close === void 0) {
2515
+ setInternalVisible(false);
2516
+ }
2498
2517
  };
2499
- if (!isVisible) return null;
2518
+ if (!isCurrentlyVisible) return null;
2500
2519
  return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(SectionMessageContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
2501
2520
  "div",
2502
2521
  {
@@ -2517,6 +2536,8 @@ var SectionMessage = ({
2517
2536
  closeButton && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
2518
2537
  "button",
2519
2538
  {
2539
+ ...buttonProps,
2540
+ ref: buttonRef,
2520
2541
  "aria-label": "close",
2521
2542
  className: "h-5 w-5 cursor-pointer border-none p-0 leading-normal outline-0 [grid-area:close]",
2522
2543
  onClick: handleClose,
@@ -2765,22 +2786,349 @@ var _NumberField = (0, import_react40.forwardRef)(
2765
2786
  }
2766
2787
  );
2767
2788
 
2768
- // src/Radio/Radio.tsx
2789
+ // src/Pagination/Pagination.tsx
2790
+ var import_react44 = require("react");
2791
+
2792
+ // src/Pagination/Ellipsis.tsx
2793
+ var import_jsx_runtime78 = require("react/jsx-runtime");
2794
+ var Ellipsis = () => {
2795
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
2796
+ "span",
2797
+ {
2798
+ className: "text-text-base flex h-8 w-8 items-center justify-center",
2799
+ "aria-label": "These pages are hidden",
2800
+ children: "\u2026"
2801
+ }
2802
+ );
2803
+ };
2804
+
2805
+ // src/Pagination/NavigationButton.tsx
2806
+ var import_react41 = __toESM(require("react"));
2807
+ var import_button3 = require("@react-aria/button");
2808
+ var import_system68 = require("@marigold/system");
2809
+ var import_jsx_runtime79 = require("react/jsx-runtime");
2810
+ var NavigationButton = (props) => {
2811
+ const ref = import_react41.default.useRef(null);
2812
+ const classNames2 = (0, import_system68.useClassNames)({
2813
+ component: "Pagination"
2814
+ });
2815
+ let { buttonProps } = (0, import_button3.useButton)(props, ref);
2816
+ let {
2817
+ children,
2818
+ isSelected,
2819
+ isDisabled,
2820
+ registerRef,
2821
+ controlLabel,
2822
+ position,
2823
+ ...rest
2824
+ } = props;
2825
+ (0, import_react41.useEffect)(() => {
2826
+ if (registerRef) {
2827
+ registerRef(ref.current);
2828
+ return () => registerRef(null);
2829
+ }
2830
+ }, [registerRef]);
2831
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
2832
+ "button",
2833
+ {
2834
+ ref,
2835
+ ...buttonProps,
2836
+ ...rest,
2837
+ disabled: isDisabled,
2838
+ className: (0, import_system68.cn)(classNames2, controlLabel && "w-24 px-2"),
2839
+ "data-selected": isSelected,
2840
+ children: [
2841
+ position === "left" && children,
2842
+ controlLabel,
2843
+ position === "right" && children
2844
+ ]
2845
+ }
2846
+ );
2847
+ };
2848
+
2849
+ // src/Pagination/PageButton.tsx
2769
2850
  var import_react42 = require("react");
2770
- var import_react_aria_components44 = require("react-aria-components");
2851
+ var import_button4 = require("@react-aria/button");
2771
2852
  var import_system69 = require("@marigold/system");
2853
+ var import_jsx_runtime80 = require("react/jsx-runtime");
2854
+ var PageButton = (props) => {
2855
+ const ref = (0, import_react42.useRef)(null);
2856
+ const classNames2 = (0, import_system69.useClassNames)({
2857
+ component: "Pagination"
2858
+ });
2859
+ let { buttonProps } = (0, import_button4.useButton)(props, ref);
2860
+ let { page, selected, registerRef, isDisabled } = props;
2861
+ (0, import_react42.useEffect)(() => {
2862
+ if (registerRef) {
2863
+ registerRef(ref.current);
2864
+ return () => registerRef(null);
2865
+ }
2866
+ }, [registerRef]);
2867
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
2868
+ "button",
2869
+ {
2870
+ ref,
2871
+ ...buttonProps,
2872
+ "aria-label": `Page ${page}`,
2873
+ "aria-current": selected ? "page" : void 0,
2874
+ className: classNames2,
2875
+ "data-selected": selected,
2876
+ disabled: isDisabled,
2877
+ tabIndex: selected === true ? 0 : -1,
2878
+ children: page
2879
+ }
2880
+ );
2881
+ };
2882
+
2883
+ // src/Pagination/useKeyboardNavigation.tsx
2884
+ var import_react43 = require("react");
2885
+ var import_interactions = require("@react-aria/interactions");
2886
+ var NavigationTypes = {
2887
+ Prev: "prev",
2888
+ Next: "next",
2889
+ Page: "page",
2890
+ Ellipsis: "ellipsis"
2891
+ };
2892
+ var useKeyboardNavigation = ({
2893
+ page,
2894
+ totalPages,
2895
+ onChange = () => {
2896
+ }
2897
+ }) => {
2898
+ const containerRef = (0, import_react43.useRef)(null);
2899
+ const [focusedItem, setFocusedItem] = (0, import_react43.useState)({
2900
+ type: "page",
2901
+ value: page
2902
+ });
2903
+ const navigationItems = (0, import_react43.useRef)([]);
2904
+ const buttonRefs = (0, import_react43.useRef)(/* @__PURE__ */ new Map());
2905
+ const isItemDisabled = (0, import_react43.useCallback)(
2906
+ (item) => {
2907
+ if (item.type === NavigationTypes.Prev) return page <= 1;
2908
+ if (item.type === NavigationTypes.Next) return page >= totalPages;
2909
+ return item.type === NavigationTypes.Ellipsis;
2910
+ },
2911
+ [page, totalPages]
2912
+ );
2913
+ const findNextFocusableItem = (0, import_react43.useCallback)(
2914
+ (current, direction) => {
2915
+ const items = navigationItems.current.filter(
2916
+ (item) => !isItemDisabled(item)
2917
+ );
2918
+ const currentIndex = items.findIndex(
2919
+ (item) => item.type === current.type && item.value === current.value
2920
+ );
2921
+ if (currentIndex === -1) {
2922
+ return items[0] || { type: NavigationTypes.Page, value: page };
2923
+ }
2924
+ const nextIndex = direction === "next" ? (currentIndex + 1) % items.length : (currentIndex - 1 + items.length) % items.length;
2925
+ return items[nextIndex];
2926
+ },
2927
+ [isItemDisabled, page]
2928
+ );
2929
+ const focusItem = (0, import_react43.useCallback)(
2930
+ (item) => {
2931
+ if (isItemDisabled(item)) return;
2932
+ const key = `${item.type}-${item.value}`;
2933
+ const element = buttonRefs.current.get(key);
2934
+ if (element && typeof element.focus === "function") {
2935
+ element.focus();
2936
+ setFocusedItem(item);
2937
+ }
2938
+ },
2939
+ [isItemDisabled]
2940
+ );
2941
+ const { keyboardProps } = (0, import_interactions.useKeyboard)({
2942
+ onKeyDown: (e) => {
2943
+ let newFocusedItem = focusedItem;
2944
+ switch (e.key) {
2945
+ case "ArrowLeft":
2946
+ newFocusedItem = findNextFocusableItem(focusedItem, "prev");
2947
+ break;
2948
+ case "ArrowRight":
2949
+ newFocusedItem = findNextFocusableItem(focusedItem, "next");
2950
+ break;
2951
+ case "Home":
2952
+ newFocusedItem = navigationItems.current.find((item) => !isItemDisabled(item)) || focusedItem;
2953
+ break;
2954
+ case "End":
2955
+ newFocusedItem = [...navigationItems.current].reverse().find((item) => !isItemDisabled(item)) || focusedItem;
2956
+ break;
2957
+ case "Enter":
2958
+ case " ":
2959
+ if (isItemDisabled(focusedItem)) return;
2960
+ if (focusedItem.type === NavigationTypes.Page && typeof focusedItem.value === "number") {
2961
+ onChange(focusedItem.value);
2962
+ } else if (focusedItem.type === NavigationTypes.Prev && page > 1) {
2963
+ onChange(page - 1);
2964
+ } else if (focusedItem.type === NavigationTypes.Next && page < totalPages) {
2965
+ onChange(page + 1);
2966
+ }
2967
+ break;
2968
+ default:
2969
+ return;
2970
+ }
2971
+ if (newFocusedItem !== focusedItem) {
2972
+ focusItem(newFocusedItem);
2973
+ }
2974
+ }
2975
+ });
2976
+ const registerRef = (0, import_react43.useCallback)(
2977
+ (type, value, ref) => {
2978
+ const key = `${type}-${value}`;
2979
+ if (ref) {
2980
+ buttonRefs.current.set(key, ref);
2981
+ } else {
2982
+ buttonRefs.current.delete(key);
2983
+ }
2984
+ },
2985
+ []
2986
+ );
2987
+ const setNavigationItems = (0, import_react43.useCallback)((items) => {
2988
+ navigationItems.current = items;
2989
+ }, []);
2990
+ return {
2991
+ containerRef,
2992
+ keyboardProps,
2993
+ registerRef,
2994
+ setNavigationItems,
2995
+ setFocusedItem
2996
+ };
2997
+ };
2998
+
2999
+ // src/Pagination/usePageRange.tsx
3000
+ var usePageRange = ({ currentPage, totalPages }) => {
3001
+ const getPageRange = () => {
3002
+ if (totalPages <= 7) {
3003
+ return Array.from({ length: totalPages }, (_, i) => i + 1);
3004
+ }
3005
+ const pages = [1];
3006
+ if (currentPage <= 4) {
3007
+ for (let i = 2; i <= 5; i++) {
3008
+ pages.push(i);
3009
+ }
3010
+ pages.push("ellipsis");
3011
+ } else if (currentPage >= totalPages - 3) {
3012
+ pages.push("ellipsis");
3013
+ for (let i = totalPages - 4; i < totalPages; i++) {
3014
+ pages.push(i);
3015
+ }
3016
+ } else {
3017
+ pages.push("ellipsis");
3018
+ for (let i = currentPage - 1; i <= currentPage + 1; i++) {
3019
+ pages.push(i);
3020
+ }
3021
+ pages.push("ellipsis");
3022
+ }
3023
+ pages.push(totalPages);
3024
+ return pages;
3025
+ };
3026
+ return getPageRange();
3027
+ };
3028
+
3029
+ // src/Pagination/Pagination.tsx
3030
+ var import_jsx_runtime81 = require("react/jsx-runtime");
3031
+ var _Pagination = ({
3032
+ defaultPage = 1,
3033
+ page,
3034
+ totalItems,
3035
+ pageSize,
3036
+ onChange = () => {
3037
+ },
3038
+ controlLabels
3039
+ }) => {
3040
+ const [currentPage, setCurrentPage] = (0, import_react44.useState)(page != null ? page : defaultPage);
3041
+ const totalPages = Math.ceil(totalItems / pageSize);
3042
+ const handlePageChange = (newPage) => {
3043
+ setCurrentPage(newPage);
3044
+ onChange(newPage);
3045
+ };
3046
+ const { registerRef, keyboardProps, setNavigationItems, setFocusedItem } = useKeyboardNavigation({
3047
+ page: currentPage,
3048
+ totalPages,
3049
+ onChange: handlePageChange
3050
+ });
3051
+ const pageRange = usePageRange({ currentPage, totalPages });
3052
+ (0, import_react44.useEffect)(() => {
3053
+ const items = [
3054
+ { type: NavigationTypes.Prev, value: currentPage - 1 },
3055
+ ...pageRange.map((value) => ({
3056
+ type: typeof value === "number" ? NavigationTypes.Page : NavigationTypes.Ellipsis,
3057
+ value
3058
+ })),
3059
+ { type: NavigationTypes.Next, value: currentPage + 1 }
3060
+ ];
3061
+ setNavigationItems(items);
3062
+ }, [pageRange, currentPage, setNavigationItems]);
3063
+ (0, import_react44.useEffect)(() => {
3064
+ setFocusedItem({ type: NavigationTypes.Page, value: currentPage });
3065
+ }, [currentPage, setFocusedItem]);
3066
+ const isFirstPage = currentPage === 1;
3067
+ const isLastPage = currentPage === totalPages || totalPages === 0;
3068
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
3069
+ "nav",
3070
+ {
3071
+ className: "flex items-center justify-center space-x-2",
3072
+ "aria-label": `Page ${currentPage} of ${totalPages}`,
3073
+ ...keyboardProps,
3074
+ children: [
3075
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
3076
+ NavigationButton,
3077
+ {
3078
+ onPress: () => handlePageChange(Math.max(1, currentPage - 1)),
3079
+ "aria-label": "Page previous",
3080
+ isDisabled: isFirstPage,
3081
+ registerRef: (ref) => registerRef(NavigationTypes.Prev, currentPage - 1, ref),
3082
+ controlLabel: controlLabels == null ? void 0 : controlLabels[0],
3083
+ position: "left",
3084
+ children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ChevronLeft, { className: "h-5 w-5" })
3085
+ }
3086
+ ),
3087
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "flex items-center space-x-2", children: totalPages > 0 ? pageRange.map(
3088
+ (pageNumber, index) => pageNumber === "ellipsis" ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Ellipsis, {}, `ellipsis-${index}`) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
3089
+ PageButton,
3090
+ {
3091
+ page: pageNumber,
3092
+ selected: pageNumber === currentPage,
3093
+ onPress: () => handlePageChange(pageNumber),
3094
+ registerRef: (ref) => registerRef(NavigationTypes.Page, pageNumber, ref)
3095
+ },
3096
+ pageNumber
3097
+ )
3098
+ ) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(PageButton, { page: 1, isDisabled: true }, 1) }),
3099
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
3100
+ NavigationButton,
3101
+ {
3102
+ onPress: () => handlePageChange(Math.min(totalPages, currentPage + 1)),
3103
+ "aria-label": "Page next",
3104
+ isDisabled: isLastPage,
3105
+ registerRef: (ref) => registerRef(NavigationTypes.Next, currentPage + 1, ref),
3106
+ controlLabel: controlLabels == null ? void 0 : controlLabels[1],
3107
+ position: "right",
3108
+ children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ChevronRight, { className: "h-5 w-5" })
3109
+ }
3110
+ )
3111
+ ]
3112
+ }
3113
+ );
3114
+ };
3115
+
3116
+ // src/Radio/Radio.tsx
3117
+ var import_react46 = require("react");
3118
+ var import_react_aria_components44 = require("react-aria-components");
3119
+ var import_system71 = require("@marigold/system");
2772
3120
 
2773
3121
  // src/Radio/Context.ts
2774
- var import_react41 = require("react");
2775
- var RadioGroupContext = (0, import_react41.createContext)(
3122
+ var import_react45 = require("react");
3123
+ var RadioGroupContext = (0, import_react45.createContext)(
2776
3124
  null
2777
3125
  );
2778
- var useRadioGroupContext = () => (0, import_react41.useContext)(RadioGroupContext);
3126
+ var useRadioGroupContext = () => (0, import_react45.useContext)(RadioGroupContext);
2779
3127
 
2780
3128
  // src/Radio/RadioGroup.tsx
2781
3129
  var import_react_aria_components43 = require("react-aria-components");
2782
- var import_system68 = require("@marigold/system");
2783
- var import_jsx_runtime78 = require("react/jsx-runtime");
3130
+ var import_system70 = require("@marigold/system");
3131
+ var import_jsx_runtime82 = require("react/jsx-runtime");
2784
3132
  var _RadioGroup = ({
2785
3133
  variant,
2786
3134
  size,
@@ -2796,7 +3144,7 @@ var _RadioGroup = ({
2796
3144
  width,
2797
3145
  ...rest
2798
3146
  }) => {
2799
- const classNames2 = (0, import_system68.useClassNames)({ component: "Radio", variant, size });
3147
+ const classNames2 = (0, import_system70.useClassNames)({ component: "Radio", variant, size });
2800
3148
  const props = {
2801
3149
  isDisabled: disabled,
2802
3150
  isReadOnly: readOnly,
@@ -2804,7 +3152,7 @@ var _RadioGroup = ({
2804
3152
  isInvalid: error,
2805
3153
  ...rest
2806
3154
  };
2807
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
3155
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
2808
3156
  FieldBase,
2809
3157
  {
2810
3158
  as: import_react_aria_components43.RadioGroup,
@@ -2815,18 +3163,18 @@ var _RadioGroup = ({
2815
3163
  variant,
2816
3164
  size,
2817
3165
  ...props,
2818
- children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
3166
+ children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
2819
3167
  "div",
2820
3168
  {
2821
3169
  role: "presentation",
2822
3170
  "data-testid": "group",
2823
3171
  "data-orientation": orientation,
2824
- className: (0, import_system68.cn)(
3172
+ className: (0, import_system70.cn)(
2825
3173
  classNames2.group,
2826
3174
  "flex items-start",
2827
3175
  orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
2828
3176
  ),
2829
- children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(RadioGroupContext.Provider, { value: { width, variant, size }, children })
3177
+ children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(RadioGroupContext.Provider, { value: { width, variant, size }, children })
2830
3178
  }
2831
3179
  )
2832
3180
  }
@@ -2834,33 +3182,33 @@ var _RadioGroup = ({
2834
3182
  };
2835
3183
 
2836
3184
  // src/Radio/Radio.tsx
2837
- var import_jsx_runtime79 = require("react/jsx-runtime");
2838
- var Dot = () => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
2839
- var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
3185
+ var import_jsx_runtime83 = require("react/jsx-runtime");
3186
+ var Dot = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
3187
+ var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
2840
3188
  "div",
2841
3189
  {
2842
- className: (0, import_system69.cn)(
3190
+ className: (0, import_system71.cn)(
2843
3191
  "bg-secondary-50 flex h-4 w-4 items-center justify-center rounded-[50%] border p-1",
2844
3192
  className
2845
3193
  ),
2846
3194
  "aria-hidden": "true",
2847
3195
  ...props,
2848
- children: checked ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Dot, {}) : null
3196
+ children: checked ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Dot, {}) : null
2849
3197
  }
2850
3198
  );
2851
- var _Radio = (0, import_react42.forwardRef)(
3199
+ var _Radio = (0, import_react46.forwardRef)(
2852
3200
  ({ value, disabled, width, children, ...props }, ref) => {
2853
3201
  const { variant, size, width: groupWidth } = useRadioGroupContext();
2854
- const classNames2 = (0, import_system69.useClassNames)({
3202
+ const classNames2 = (0, import_system71.useClassNames)({
2855
3203
  component: "Radio",
2856
3204
  variant: variant || props.variant,
2857
3205
  size: size || props.size
2858
3206
  });
2859
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
3207
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
2860
3208
  import_react_aria_components44.Radio,
2861
3209
  {
2862
3210
  ref,
2863
- className: (0, import_system69.cn)(
3211
+ className: (0, import_system71.cn)(
2864
3212
  "group/radio",
2865
3213
  "relative flex items-center gap-[1ch]",
2866
3214
  width || groupWidth || "w-full",
@@ -2869,18 +3217,18 @@ var _Radio = (0, import_react42.forwardRef)(
2869
3217
  value,
2870
3218
  isDisabled: disabled,
2871
3219
  ...props,
2872
- children: ({ isSelected }) => /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
2873
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
3220
+ children: ({ isSelected }) => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_jsx_runtime83.Fragment, { children: [
3221
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
2874
3222
  Icon3,
2875
3223
  {
2876
3224
  checked: isSelected,
2877
- className: (0, import_system69.cn)(
3225
+ className: (0, import_system71.cn)(
2878
3226
  disabled ? "cursor-not-allowed" : "cursor-pointer",
2879
3227
  classNames2.radio
2880
3228
  )
2881
3229
  }
2882
3230
  ),
2883
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: classNames2.label, children })
3231
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: classNames2.label, children })
2884
3232
  ] })
2885
3233
  }
2886
3234
  );
@@ -2889,10 +3237,10 @@ var _Radio = (0, import_react42.forwardRef)(
2889
3237
  _Radio.Group = _RadioGroup;
2890
3238
 
2891
3239
  // src/SearchField/SearchField.tsx
2892
- var import_react43 = require("react");
3240
+ var import_react47 = require("react");
2893
3241
  var import_react_aria_components45 = require("react-aria-components");
2894
- var import_jsx_runtime80 = require("react/jsx-runtime");
2895
- var _SearchField = (0, import_react43.forwardRef)(
3242
+ var import_jsx_runtime84 = require("react/jsx-runtime");
3243
+ var _SearchField = (0, import_react47.forwardRef)(
2896
3244
  ({ disabled, required, readOnly, error, action, ...rest }, ref) => {
2897
3245
  const props = {
2898
3246
  ...rest,
@@ -2901,7 +3249,7 @@ var _SearchField = (0, import_react43.forwardRef)(
2901
3249
  isReadOnly: readOnly,
2902
3250
  isInvalid: error
2903
3251
  };
2904
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(FieldBase, { as: import_react_aria_components45.SearchField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
3252
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(FieldBase, { as: import_react_aria_components45.SearchField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
2905
3253
  SearchInput,
2906
3254
  {
2907
3255
  ref,
@@ -2912,11 +3260,11 @@ var _SearchField = (0, import_react43.forwardRef)(
2912
3260
  );
2913
3261
 
2914
3262
  // src/Select/Select.tsx
2915
- var import_react44 = require("react");
3263
+ var import_react48 = require("react");
2916
3264
  var import_react_aria_components46 = require("react-aria-components");
2917
- var import_system70 = require("@marigold/system");
2918
- var import_jsx_runtime81 = require("react/jsx-runtime");
2919
- var _Select = (0, import_react44.forwardRef)(
3265
+ var import_system72 = require("@marigold/system");
3266
+ var import_jsx_runtime85 = require("react/jsx-runtime");
3267
+ var _Select = (0, import_react48.forwardRef)(
2920
3268
  ({
2921
3269
  disabled,
2922
3270
  required,
@@ -2936,22 +3284,22 @@ var _Select = (0, import_react44.forwardRef)(
2936
3284
  onSelectionChange: onChange,
2937
3285
  ...rest
2938
3286
  };
2939
- const classNames2 = (0, import_system70.useClassNames)({ component: "Select", variant, size });
2940
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(FieldBase, { as: import_react_aria_components46.Select, ref, variant, size, ...props, children: [
2941
- /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
3287
+ const classNames2 = (0, import_system72.useClassNames)({ component: "Select", variant, size });
3288
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(FieldBase, { as: import_react_aria_components46.Select, ref, variant, size, ...props, children: [
3289
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
2942
3290
  import_react_aria_components46.Button,
2943
3291
  {
2944
- className: (0, import_system70.cn)(
3292
+ className: (0, import_system72.cn)(
2945
3293
  "flex w-full items-center justify-between gap-1 overflow-hidden",
2946
3294
  classNames2.select
2947
3295
  ),
2948
3296
  children: [
2949
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react_aria_components46.SelectValue, { className: "[&>[slot=description]]:hidden" }),
2950
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ChevronDown, { className: (0, import_system70.cn)("size-4", classNames2.icon) })
3297
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_aria_components46.SelectValue, { className: "[&>[slot=description]]:hidden" }),
3298
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ChevronDown, { className: (0, import_system72.cn)("size-4", classNames2.icon) })
2951
3299
  ]
2952
3300
  }
2953
3301
  ),
2954
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(_ListBox, { items, children: props.children }) })
3302
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(_ListBox, { items, children: props.children }) })
2955
3303
  ] });
2956
3304
  }
2957
3305
  );
@@ -2959,38 +3307,38 @@ _Select.Option = _ListBox.Item;
2959
3307
  _Select.Section = _ListBox.Section;
2960
3308
 
2961
3309
  // src/SelectList/SelectList.tsx
2962
- var import_react47 = require("react");
3310
+ var import_react51 = require("react");
2963
3311
  var import_react_aria_components48 = require("react-aria-components");
2964
- var import_system72 = require("@marigold/system");
3312
+ var import_system74 = require("@marigold/system");
2965
3313
 
2966
3314
  // src/SelectList/Context.ts
2967
- var import_react45 = require("react");
2968
- var SelectListContext = (0, import_react45.createContext)(
3315
+ var import_react49 = require("react");
3316
+ var SelectListContext = (0, import_react49.createContext)(
2969
3317
  {}
2970
3318
  );
2971
- var useSelectListContext = () => (0, import_react45.useContext)(SelectListContext);
3319
+ var useSelectListContext = () => (0, import_react49.useContext)(SelectListContext);
2972
3320
 
2973
3321
  // src/SelectList/SelectListItem.tsx
2974
- var import_react46 = require("react");
3322
+ var import_react50 = require("react");
2975
3323
  var import_react_aria_components47 = require("react-aria-components");
2976
- var import_system71 = require("@marigold/system");
2977
- var import_jsx_runtime82 = require("react/jsx-runtime");
2978
- var _SelectListItem = (0, import_react46.forwardRef)(
3324
+ var import_system73 = require("@marigold/system");
3325
+ var import_jsx_runtime86 = require("react/jsx-runtime");
3326
+ var _SelectListItem = (0, import_react50.forwardRef)(
2979
3327
  ({ children, ...props }, ref) => {
2980
3328
  let textValue = typeof children === "string" ? children : void 0;
2981
3329
  const { classNames: classNames2 } = useSelectListContext();
2982
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
3330
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
2983
3331
  import_react_aria_components47.GridListItem,
2984
3332
  {
2985
3333
  textValue,
2986
3334
  ...props,
2987
- className: (0, import_system71.cn)(
3335
+ className: (0, import_system73.cn)(
2988
3336
  "items-center group-data-[layout=grid]/list:flex-row",
2989
3337
  classNames2 == null ? void 0 : classNames2.option
2990
3338
  ),
2991
3339
  ref,
2992
- children: ({ selectionMode }) => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_jsx_runtime82.Fragment, { children: [
2993
- selectionMode === "multiple" && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(_Checkbox, { slot: "selection" }),
3340
+ children: ({ selectionMode }) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_jsx_runtime86.Fragment, { children: [
3341
+ selectionMode === "multiple" && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(_Checkbox, { slot: "selection" }),
2994
3342
  children
2995
3343
  ] })
2996
3344
  }
@@ -2999,21 +3347,21 @@ var _SelectListItem = (0, import_react46.forwardRef)(
2999
3347
  );
3000
3348
 
3001
3349
  // src/SelectList/SelectList.tsx
3002
- var import_jsx_runtime83 = require("react/jsx-runtime");
3003
- var _SelectList = (0, import_react47.forwardRef)(
3350
+ var import_jsx_runtime87 = require("react/jsx-runtime");
3351
+ var _SelectList = (0, import_react51.forwardRef)(
3004
3352
  ({ onChange, ...rest }, ref) => {
3005
- const classNames2 = (0, import_system72.useClassNames)({ component: "ListBox" });
3353
+ const classNames2 = (0, import_system74.useClassNames)({ component: "ListBox" });
3006
3354
  const props = {
3007
3355
  onSelectionChange: onChange,
3008
3356
  ...rest
3009
3357
  };
3010
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(SelectListContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: classNames2.container, children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3358
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(SelectListContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: classNames2.container, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3011
3359
  import_react_aria_components48.GridList,
3012
3360
  {
3013
3361
  ...props,
3014
3362
  layout: "grid",
3015
3363
  ref,
3016
- className: (0, import_system72.cn)(
3364
+ className: (0, import_system74.cn)(
3017
3365
  "group/list overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh]",
3018
3366
  classNames2.list
3019
3367
  ),
@@ -3025,29 +3373,29 @@ var _SelectList = (0, import_react47.forwardRef)(
3025
3373
  _SelectList.Item = _SelectListItem;
3026
3374
 
3027
3375
  // src/Scrollable/Scrollable.tsx
3028
- var import_system73 = require("@marigold/system");
3029
- var import_jsx_runtime84 = require("react/jsx-runtime");
3376
+ var import_system75 = require("@marigold/system");
3377
+ var import_jsx_runtime88 = require("react/jsx-runtime");
3030
3378
  var Scrollable = ({
3031
3379
  children,
3032
3380
  width = "full",
3033
3381
  height,
3034
3382
  ...props
3035
- }) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
3383
+ }) => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
3036
3384
  "div",
3037
3385
  {
3038
3386
  ...props,
3039
- className: (0, import_system73.cn)(["sticky h-[--height] overflow-auto", import_system73.width[width]]),
3040
- style: (0, import_system73.createVar)({ height }),
3387
+ className: (0, import_system75.cn)(["sticky h-[--height] overflow-auto", import_system75.width[width]]),
3388
+ style: (0, import_system75.createVar)({ height }),
3041
3389
  children
3042
3390
  }
3043
3391
  );
3044
3392
 
3045
3393
  // src/Slider/Slider.tsx
3046
- var import_react48 = require("react");
3394
+ var import_react52 = require("react");
3047
3395
  var import_react_aria_components49 = require("react-aria-components");
3048
- var import_system74 = require("@marigold/system");
3049
- var import_jsx_runtime85 = require("react/jsx-runtime");
3050
- var _Slider = (0, import_react48.forwardRef)(
3396
+ var import_system76 = require("@marigold/system");
3397
+ var import_jsx_runtime89 = require("react/jsx-runtime");
3398
+ var _Slider = (0, import_react52.forwardRef)(
3051
3399
  ({
3052
3400
  thumbLabels,
3053
3401
  variant,
@@ -3057,7 +3405,7 @@ var _Slider = (0, import_react48.forwardRef)(
3057
3405
  label,
3058
3406
  ...rest
3059
3407
  }, ref) => {
3060
- const classNames2 = (0, import_system74.useClassNames)({
3408
+ const classNames2 = (0, import_system76.useClassNames)({
3061
3409
  component: "Slider",
3062
3410
  variant,
3063
3411
  size
@@ -3066,38 +3414,38 @@ var _Slider = (0, import_react48.forwardRef)(
3066
3414
  isDisabled: disabled,
3067
3415
  ...rest
3068
3416
  };
3069
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
3417
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
3070
3418
  FieldBase,
3071
3419
  {
3072
3420
  as: import_react_aria_components49.Slider,
3073
- className: (0, import_system74.cn)(
3421
+ className: (0, import_system76.cn)(
3074
3422
  "grid grid-cols-[auto_1fr] gap-y-1",
3075
3423
  classNames2.container,
3076
- import_system74.width[width]
3424
+ import_system76.width[width]
3077
3425
  ),
3078
3426
  ref,
3079
3427
  ...props,
3080
3428
  children: [
3081
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(_Label, { children: props.children && props.children || label && label }),
3082
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_aria_components49.SliderOutput, { className: (0, import_system74.cn)("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
3083
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
3429
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(_Label, { children: props.children && props.children || label && label }),
3430
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_aria_components49.SliderOutput, { className: (0, import_system76.cn)("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
3431
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3084
3432
  import_react_aria_components49.SliderTrack,
3085
3433
  {
3086
- className: (0, import_system74.cn)("relative col-span-2 h-2 w-full", classNames2.track),
3087
- children: ({ state }) => /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_jsx_runtime85.Fragment, { children: [
3088
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
3434
+ className: (0, import_system76.cn)("relative col-span-2 h-2 w-full", classNames2.track),
3435
+ children: ({ state }) => /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_jsx_runtime89.Fragment, { children: [
3436
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3089
3437
  "div",
3090
3438
  {
3091
- className: (0, import_system74.cn)(
3439
+ className: (0, import_system76.cn)(
3092
3440
  "absolute top-[50%] h-2 w-full translate-y-[-50%]",
3093
3441
  classNames2.track
3094
3442
  )
3095
3443
  }
3096
3444
  ),
3097
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
3445
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3098
3446
  "div",
3099
3447
  {
3100
- className: (0, import_system74.cn)(
3448
+ className: (0, import_system76.cn)(
3101
3449
  "absolute top-[50%] h-2 translate-y-[-50%]",
3102
3450
  classNames2.selectedTrack
3103
3451
  ),
@@ -3107,10 +3455,10 @@ var _Slider = (0, import_react48.forwardRef)(
3107
3455
  }
3108
3456
  }
3109
3457
  ),
3110
- state.values.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
3458
+ state.values.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3111
3459
  import_react_aria_components49.SliderThumb,
3112
3460
  {
3113
- className: (0, import_system74.cn)("top-1/2 cursor-pointer", classNames2.thumb),
3461
+ className: (0, import_system76.cn)("top-1/2 cursor-pointer", classNames2.thumb),
3114
3462
  index: i,
3115
3463
  "aria-label": thumbLabels == null ? void 0 : thumbLabels[i],
3116
3464
  name: thumbLabels == null ? void 0 : thumbLabels[i]
@@ -3127,12 +3475,12 @@ var _Slider = (0, import_react48.forwardRef)(
3127
3475
  );
3128
3476
 
3129
3477
  // src/Split/Split.tsx
3130
- var import_jsx_runtime86 = require("react/jsx-runtime");
3131
- var Split = () => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { role: "separator", className: "grow" });
3478
+ var import_jsx_runtime90 = require("react/jsx-runtime");
3479
+ var Split = () => /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { role: "separator", className: "grow" });
3132
3480
 
3133
3481
  // src/Stack/Stack.tsx
3134
- var import_system75 = require("@marigold/system");
3135
- var import_jsx_runtime87 = require("react/jsx-runtime");
3482
+ var import_system77 = require("@marigold/system");
3483
+ var import_jsx_runtime91 = require("react/jsx-runtime");
3136
3484
  var Stack = ({
3137
3485
  children,
3138
3486
  space = 0,
@@ -3142,14 +3490,14 @@ var Stack = ({
3142
3490
  ...props
3143
3491
  }) => {
3144
3492
  var _a, _b, _c, _d;
3145
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3493
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3146
3494
  "div",
3147
3495
  {
3148
- className: (0, import_system75.cn)(
3496
+ className: (0, import_system77.cn)(
3149
3497
  "flex flex-col",
3150
- import_system75.gapSpace[space],
3151
- alignX && ((_b = (_a = import_system75.alignment) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
3152
- alignY && ((_d = (_c = import_system75.alignment) == null ? void 0 : _c.vertical) == null ? void 0 : _d.alignmentY[alignY]),
3498
+ import_system77.gapSpace[space],
3499
+ alignX && ((_b = (_a = import_system77.alignment) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
3500
+ alignY && ((_d = (_c = import_system77.alignment) == null ? void 0 : _c.vertical) == null ? void 0 : _d.alignmentY[alignY]),
3153
3501
  stretch && "h-full w-full"
3154
3502
  ),
3155
3503
  ...props,
@@ -3159,11 +3507,11 @@ var Stack = ({
3159
3507
  };
3160
3508
 
3161
3509
  // src/Switch/Switch.tsx
3162
- var import_react49 = require("react");
3510
+ var import_react53 = require("react");
3163
3511
  var import_react_aria_components50 = require("react-aria-components");
3164
- var import_system76 = require("@marigold/system");
3165
- var import_jsx_runtime88 = require("react/jsx-runtime");
3166
- var _Switch = (0, import_react49.forwardRef)(
3512
+ var import_system78 = require("@marigold/system");
3513
+ var import_jsx_runtime92 = require("react/jsx-runtime");
3514
+ var _Switch = (0, import_react53.forwardRef)(
3167
3515
  ({
3168
3516
  variant,
3169
3517
  size,
@@ -3174,37 +3522,37 @@ var _Switch = (0, import_react49.forwardRef)(
3174
3522
  readOnly,
3175
3523
  ...rest
3176
3524
  }, ref) => {
3177
- const classNames2 = (0, import_system76.useClassNames)({ component: "Switch", size, variant });
3525
+ const classNames2 = (0, import_system78.useClassNames)({ component: "Switch", size, variant });
3178
3526
  const props = {
3179
3527
  isDisabled: disabled,
3180
3528
  isReadOnly: readOnly,
3181
3529
  isSelected: selected,
3182
3530
  ...rest
3183
3531
  };
3184
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
3532
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
3185
3533
  import_react_aria_components50.Switch,
3186
3534
  {
3187
3535
  ...props,
3188
3536
  ref,
3189
- className: (0, import_system76.cn)(
3190
- import_system76.width[width],
3537
+ className: (0, import_system78.cn)(
3538
+ import_system78.width[width],
3191
3539
  "group/switch",
3192
3540
  "flex items-center gap-[1ch]",
3193
3541
  classNames2.container
3194
3542
  ),
3195
3543
  children: [
3196
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(_Label, { elementType: "span", children }),
3197
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
3544
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(_Label, { elementType: "span", children }),
3545
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3198
3546
  "div",
3199
3547
  {
3200
- className: (0, import_system76.cn)(
3548
+ className: (0, import_system78.cn)(
3201
3549
  "h-6 w-12 basis-12 rounded-3xl group-disabled/switch:cursor-not-allowed",
3202
3550
  classNames2.track
3203
3551
  ),
3204
- children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
3552
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3205
3553
  "div",
3206
3554
  {
3207
- className: (0, import_system76.cn)(
3555
+ className: (0, import_system78.cn)(
3208
3556
  "h-[22px] w-[22px]",
3209
3557
  "cubic-bezier(.7,0,.3,1)",
3210
3558
  "absolute left-0 top-px",
@@ -3223,24 +3571,24 @@ var _Switch = (0, import_react49.forwardRef)(
3223
3571
  );
3224
3572
 
3225
3573
  // src/Table/Table.tsx
3226
- var import_react57 = require("react");
3574
+ var import_react61 = require("react");
3227
3575
  var import_table9 = require("@react-aria/table");
3228
3576
  var import_table10 = require("@react-stately/table");
3229
- var import_system82 = require("@marigold/system");
3577
+ var import_system84 = require("@marigold/system");
3230
3578
 
3231
3579
  // src/Table/Context.tsx
3232
- var import_react50 = require("react");
3233
- var TableContext = (0, import_react50.createContext)({});
3234
- var useTableContext = () => (0, import_react50.useContext)(TableContext);
3580
+ var import_react54 = require("react");
3581
+ var TableContext = (0, import_react54.createContext)({});
3582
+ var useTableContext = () => (0, import_react54.useContext)(TableContext);
3235
3583
 
3236
3584
  // src/Table/TableBody.tsx
3237
3585
  var import_table = require("@react-aria/table");
3238
- var import_jsx_runtime89 = require("react/jsx-runtime");
3586
+ var import_jsx_runtime93 = require("react/jsx-runtime");
3239
3587
  var TableBody = ({ children, emptyState }) => {
3240
3588
  const { rowGroupProps } = (0, import_table.useTableRowGroup)();
3241
3589
  const { state, classNames: classNames2 } = useTableContext();
3242
3590
  if (state.collection.size === 0 && emptyState) {
3243
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("tbody", { children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("tr", { className: classNames2 == null ? void 0 : classNames2.row, role: "row", children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3591
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("tbody", { children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("tr", { className: classNames2 == null ? void 0 : classNames2.row, role: "row", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
3244
3592
  "td",
3245
3593
  {
3246
3594
  className: classNames2 == null ? void 0 : classNames2.cell,
@@ -3250,18 +3598,18 @@ var TableBody = ({ children, emptyState }) => {
3250
3598
  }
3251
3599
  ) }) });
3252
3600
  }
3253
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("tbody", { ...rowGroupProps, children });
3601
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("tbody", { ...rowGroupProps, children });
3254
3602
  };
3255
3603
 
3256
3604
  // src/Table/TableCell.tsx
3257
- var import_react51 = require("react");
3605
+ var import_react55 = require("react");
3258
3606
  var import_focus2 = require("@react-aria/focus");
3259
3607
  var import_table2 = require("@react-aria/table");
3260
3608
  var import_utils3 = require("@react-aria/utils");
3261
- var import_system77 = require("@marigold/system");
3262
- var import_jsx_runtime90 = require("react/jsx-runtime");
3609
+ var import_system79 = require("@marigold/system");
3610
+ var import_jsx_runtime94 = require("react/jsx-runtime");
3263
3611
  var TableCell = ({ cell, align = "left" }) => {
3264
- const ref = (0, import_react51.useRef)(null);
3612
+ const ref = (0, import_react55.useRef)(null);
3265
3613
  const { interactive, state, classNames: classNames2 } = useTableContext();
3266
3614
  const disabled = state.disabledKeys.has(cell.parentKey);
3267
3615
  const { gridCellProps } = (0, import_table2.useTableCell)(
@@ -3281,12 +3629,12 @@ var TableCell = ({ cell, align = "left" }) => {
3281
3629
  onPointerDown: (e) => e.stopPropagation()
3282
3630
  };
3283
3631
  const { focusProps, isFocusVisible } = (0, import_focus2.useFocusRing)();
3284
- const stateProps = (0, import_system77.useStateProps)({ disabled, focusVisible: isFocusVisible });
3285
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3632
+ const stateProps = (0, import_system79.useStateProps)({ disabled, focusVisible: isFocusVisible });
3633
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
3286
3634
  "td",
3287
3635
  {
3288
3636
  ref,
3289
- className: (0, import_system77.cn)(classNames2 == null ? void 0 : classNames2.cell),
3637
+ className: (0, import_system79.cn)(classNames2 == null ? void 0 : classNames2.cell),
3290
3638
  ...(0, import_utils3.mergeProps)(cellProps, focusProps),
3291
3639
  ...stateProps,
3292
3640
  align,
@@ -3296,11 +3644,11 @@ var TableCell = ({ cell, align = "left" }) => {
3296
3644
  };
3297
3645
 
3298
3646
  // src/Table/TableCheckboxCell.tsx
3299
- var import_react52 = require("react");
3647
+ var import_react56 = require("react");
3300
3648
  var import_focus3 = require("@react-aria/focus");
3301
3649
  var import_table3 = require("@react-aria/table");
3302
3650
  var import_utils4 = require("@react-aria/utils");
3303
- var import_system78 = require("@marigold/system");
3651
+ var import_system80 = require("@marigold/system");
3304
3652
 
3305
3653
  // src/Table/utils.ts
3306
3654
  var mapCheckboxProps = ({
@@ -3323,9 +3671,9 @@ var mapCheckboxProps = ({
3323
3671
  };
3324
3672
 
3325
3673
  // src/Table/TableCheckboxCell.tsx
3326
- var import_jsx_runtime91 = require("react/jsx-runtime");
3674
+ var import_jsx_runtime95 = require("react/jsx-runtime");
3327
3675
  var TableCheckboxCell = ({ cell }) => {
3328
- const ref = (0, import_react52.useRef)(null);
3676
+ const ref = (0, import_react56.useRef)(null);
3329
3677
  const { state, classNames: classNames2 } = useTableContext();
3330
3678
  const disabled = state.disabledKeys.has(cell.parentKey);
3331
3679
  const { gridCellProps } = (0, import_table3.useTableCell)(
@@ -3339,34 +3687,34 @@ var TableCheckboxCell = ({ cell }) => {
3339
3687
  (0, import_table3.useTableSelectionCheckbox)({ key: cell.parentKey }, state)
3340
3688
  );
3341
3689
  const { focusProps, isFocusVisible } = (0, import_focus3.useFocusRing)();
3342
- const stateProps = (0, import_system78.useStateProps)({ disabled, focusVisible: isFocusVisible });
3343
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3690
+ const stateProps = (0, import_system80.useStateProps)({ disabled, focusVisible: isFocusVisible });
3691
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
3344
3692
  "td",
3345
3693
  {
3346
3694
  ref,
3347
- className: (0, import_system78.cn)("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
3695
+ className: (0, import_system80.cn)("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
3348
3696
  ...(0, import_utils4.mergeProps)(gridCellProps, focusProps),
3349
3697
  ...stateProps,
3350
- children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(_Checkbox, { ...checkboxProps })
3698
+ children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(_Checkbox, { ...checkboxProps })
3351
3699
  }
3352
3700
  );
3353
3701
  };
3354
3702
 
3355
3703
  // src/Table/TableColumnHeader.tsx
3356
- var import_react53 = require("react");
3704
+ var import_react57 = require("react");
3357
3705
  var import_focus4 = require("@react-aria/focus");
3358
- var import_interactions = require("@react-aria/interactions");
3706
+ var import_interactions2 = require("@react-aria/interactions");
3359
3707
  var import_table4 = require("@react-aria/table");
3360
3708
  var import_utils6 = require("@react-aria/utils");
3361
- var import_system79 = require("@marigold/system");
3362
- var import_jsx_runtime92 = require("react/jsx-runtime");
3709
+ var import_system81 = require("@marigold/system");
3710
+ var import_jsx_runtime96 = require("react/jsx-runtime");
3363
3711
  var TableColumnHeader = ({
3364
3712
  column,
3365
3713
  width = "auto",
3366
3714
  align = "left"
3367
3715
  }) => {
3368
3716
  var _a, _b;
3369
- const ref = (0, import_react53.useRef)(null);
3717
+ const ref = (0, import_react57.useRef)(null);
3370
3718
  const { state, classNames: classNames2 } = useTableContext();
3371
3719
  const { columnHeaderProps } = (0, import_table4.useTableColumnHeader)(
3372
3720
  {
@@ -3375,24 +3723,24 @@ var TableColumnHeader = ({
3375
3723
  state,
3376
3724
  ref
3377
3725
  );
3378
- const { hoverProps, isHovered } = (0, import_interactions.useHover)({});
3726
+ const { hoverProps, isHovered } = (0, import_interactions2.useHover)({});
3379
3727
  const { focusProps, isFocusVisible } = (0, import_focus4.useFocusRing)();
3380
- const stateProps = (0, import_system79.useStateProps)({
3728
+ const stateProps = (0, import_system81.useStateProps)({
3381
3729
  hover: isHovered,
3382
3730
  focusVisible: isFocusVisible
3383
3731
  });
3384
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
3732
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
3385
3733
  "th",
3386
3734
  {
3387
3735
  colSpan: column.colspan,
3388
3736
  ref,
3389
- className: (0, import_system79.cn)("cursor-default", import_system79.width[width], classNames2 == null ? void 0 : classNames2.header),
3737
+ className: (0, import_system81.cn)("cursor-default", import_system81.width[width], classNames2 == null ? void 0 : classNames2.header),
3390
3738
  ...(0, import_utils6.mergeProps)(columnHeaderProps, hoverProps, focusProps),
3391
3739
  ...stateProps,
3392
3740
  align,
3393
3741
  children: [
3394
3742
  column.rendered,
3395
- 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_runtime92.jsx)(SortUp, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(SortDown, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: "invisible", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(SortDown, { className: "inline-block" }) }))
3743
+ 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_runtime96.jsx)(SortUp, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(SortDown, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { className: "invisible", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(SortDown, { className: "inline-block" }) }))
3396
3744
  ]
3397
3745
  }
3398
3746
  );
@@ -3400,10 +3748,10 @@ var TableColumnHeader = ({
3400
3748
 
3401
3749
  // src/Table/TableHeader.tsx
3402
3750
  var import_table5 = require("@react-aria/table");
3403
- var import_jsx_runtime93 = require("react/jsx-runtime");
3751
+ var import_jsx_runtime97 = require("react/jsx-runtime");
3404
3752
  var TableHeader = ({ stickyHeader, children }) => {
3405
3753
  const { rowGroupProps } = (0, import_table5.useTableRowGroup)();
3406
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
3754
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
3407
3755
  "thead",
3408
3756
  {
3409
3757
  ...rowGroupProps,
@@ -3414,29 +3762,29 @@ var TableHeader = ({ stickyHeader, children }) => {
3414
3762
  };
3415
3763
 
3416
3764
  // src/Table/TableHeaderRow.tsx
3417
- var import_react54 = require("react");
3765
+ var import_react58 = require("react");
3418
3766
  var import_table6 = require("@react-aria/table");
3419
- var import_jsx_runtime94 = require("react/jsx-runtime");
3767
+ var import_jsx_runtime98 = require("react/jsx-runtime");
3420
3768
  var TableHeaderRow = ({ item, children }) => {
3421
3769
  const { state } = useTableContext();
3422
- const ref = (0, import_react54.useRef)(null);
3770
+ const ref = (0, import_react58.useRef)(null);
3423
3771
  const { rowProps } = (0, import_table6.useTableHeaderRow)({ node: item }, state, ref);
3424
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("tr", { ...rowProps, ref, children });
3772
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("tr", { ...rowProps, ref, children });
3425
3773
  };
3426
3774
 
3427
3775
  // src/Table/TableRow.tsx
3428
- var import_react55 = require("react");
3776
+ var import_react59 = require("react");
3429
3777
  var import_focus5 = require("@react-aria/focus");
3430
- var import_interactions2 = require("@react-aria/interactions");
3778
+ var import_interactions3 = require("@react-aria/interactions");
3431
3779
  var import_table7 = require("@react-aria/table");
3432
3780
  var import_utils7 = require("@react-aria/utils");
3433
- var import_system80 = require("@marigold/system");
3434
- var import_jsx_runtime95 = require("react/jsx-runtime");
3781
+ var import_system82 = require("@marigold/system");
3782
+ var import_jsx_runtime99 = require("react/jsx-runtime");
3435
3783
  var TableRow = ({ children, row }) => {
3436
- const ref = (0, import_react55.useRef)(null);
3784
+ const ref = (0, import_react59.useRef)(null);
3437
3785
  const { interactive, state, ...ctx } = useTableContext();
3438
3786
  const { variant, size } = row.props;
3439
- const classNames2 = (0, import_system80.useClassNames)({
3787
+ const classNames2 = (0, import_system82.useClassNames)({
3440
3788
  component: "Table",
3441
3789
  variant: variant || ctx.variant,
3442
3790
  size: size || ctx.size
@@ -3451,21 +3799,21 @@ var TableRow = ({ children, row }) => {
3451
3799
  const disabled = state.disabledKeys.has(row.key);
3452
3800
  const selected = state.selectionManager.isSelected(row.key);
3453
3801
  const { focusProps, isFocusVisible } = (0, import_focus5.useFocusRing)();
3454
- const { hoverProps, isHovered } = (0, import_interactions2.useHover)({
3802
+ const { hoverProps, isHovered } = (0, import_interactions3.useHover)({
3455
3803
  isDisabled: disabled || !interactive
3456
3804
  });
3457
- const stateProps = (0, import_system80.useStateProps)({
3805
+ const stateProps = (0, import_system82.useStateProps)({
3458
3806
  disabled,
3459
3807
  selected,
3460
3808
  hover: isHovered,
3461
3809
  focusVisible: isFocusVisible,
3462
3810
  active: isPressed
3463
3811
  });
3464
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
3812
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
3465
3813
  "tr",
3466
3814
  {
3467
3815
  ref,
3468
- className: (0, import_system80.cn)(
3816
+ className: (0, import_system82.cn)(
3469
3817
  [
3470
3818
  !interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"
3471
3819
  ],
@@ -3479,19 +3827,19 @@ var TableRow = ({ children, row }) => {
3479
3827
  };
3480
3828
 
3481
3829
  // src/Table/TableSelectAllCell.tsx
3482
- var import_react56 = require("react");
3830
+ var import_react60 = require("react");
3483
3831
  var import_focus6 = require("@react-aria/focus");
3484
- var import_interactions3 = require("@react-aria/interactions");
3832
+ var import_interactions4 = require("@react-aria/interactions");
3485
3833
  var import_table8 = require("@react-aria/table");
3486
3834
  var import_utils8 = require("@react-aria/utils");
3487
- var import_system81 = require("@marigold/system");
3488
- var import_jsx_runtime96 = require("react/jsx-runtime");
3835
+ var import_system83 = require("@marigold/system");
3836
+ var import_jsx_runtime100 = require("react/jsx-runtime");
3489
3837
  var TableSelectAllCell = ({
3490
3838
  column,
3491
3839
  width = "auto",
3492
3840
  align = "left"
3493
3841
  }) => {
3494
- const ref = (0, import_react56.useRef)(null);
3842
+ const ref = (0, import_react60.useRef)(null);
3495
3843
  const { state, classNames: classNames2 } = useTableContext();
3496
3844
  const { columnHeaderProps } = (0, import_table8.useTableColumnHeader)(
3497
3845
  {
@@ -3501,27 +3849,27 @@ var TableSelectAllCell = ({
3501
3849
  ref
3502
3850
  );
3503
3851
  const { checkboxProps } = mapCheckboxProps((0, import_table8.useTableSelectAllCheckbox)(state));
3504
- const { hoverProps, isHovered } = (0, import_interactions3.useHover)({});
3852
+ const { hoverProps, isHovered } = (0, import_interactions4.useHover)({});
3505
3853
  const { focusProps, isFocusVisible } = (0, import_focus6.useFocusRing)();
3506
- const stateProps = (0, import_system81.useStateProps)({
3854
+ const stateProps = (0, import_system83.useStateProps)({
3507
3855
  hover: isHovered,
3508
3856
  focusVisible: isFocusVisible
3509
3857
  });
3510
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
3858
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
3511
3859
  "th",
3512
3860
  {
3513
3861
  ref,
3514
- className: (0, import_system81.cn)(import_system81.width[width], ["leading-none"], classNames2 == null ? void 0 : classNames2.header),
3862
+ className: (0, import_system83.cn)(import_system83.width[width], ["leading-none"], classNames2 == null ? void 0 : classNames2.header),
3515
3863
  ...(0, import_utils8.mergeProps)(columnHeaderProps, hoverProps, focusProps),
3516
3864
  ...stateProps,
3517
3865
  align,
3518
- children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(_Checkbox, { ...checkboxProps })
3866
+ children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(_Checkbox, { ...checkboxProps })
3519
3867
  }
3520
3868
  );
3521
3869
  };
3522
3870
 
3523
3871
  // src/Table/Table.tsx
3524
- var import_jsx_runtime97 = require("react/jsx-runtime");
3872
+ var import_jsx_runtime101 = require("react/jsx-runtime");
3525
3873
  var Table = ({
3526
3874
  variant,
3527
3875
  size,
@@ -3533,7 +3881,7 @@ var Table = ({
3533
3881
  ...props
3534
3882
  }) => {
3535
3883
  const interactive = selectionMode !== "none";
3536
- const tableRef = (0, import_react57.useRef)(null);
3884
+ const tableRef = (0, import_react61.useRef)(null);
3537
3885
  const state = (0, import_table10.useTableState)({
3538
3886
  ...props,
3539
3887
  selectionMode,
@@ -3544,21 +3892,21 @@ var Table = ({
3544
3892
  state.isKeyboardNavigationDisabled = disableKeyboardNavigation;
3545
3893
  }
3546
3894
  const { gridProps } = (0, import_table9.useTable)(props, state, tableRef);
3547
- const classNames2 = (0, import_system82.useClassNames)({
3895
+ const classNames2 = (0, import_system84.useClassNames)({
3548
3896
  component: "Table",
3549
3897
  variant,
3550
3898
  size
3551
3899
  });
3552
3900
  const { collection } = state;
3553
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
3901
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
3554
3902
  TableContext.Provider,
3555
3903
  {
3556
3904
  value: { state, interactive, classNames: classNames2, variant, size },
3557
- children: /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
3905
+ children: /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(
3558
3906
  "table",
3559
3907
  {
3560
3908
  ref: tableRef,
3561
- className: (0, import_system82.cn)(
3909
+ className: (0, import_system84.cn)(
3562
3910
  "group/table",
3563
3911
  "border-collapse",
3564
3912
  stretch ? "table w-full" : "block",
@@ -3566,10 +3914,10 @@ var Table = ({
3566
3914
  ),
3567
3915
  ...gridProps,
3568
3916
  children: [
3569
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
3917
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
3570
3918
  (column) => {
3571
3919
  var _a, _b, _c, _d, _e;
3572
- return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
3920
+ return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
3573
3921
  TableSelectAllCell,
3574
3922
  {
3575
3923
  width: (_b = column.props) == null ? void 0 : _b.width,
@@ -3577,7 +3925,7 @@ var Table = ({
3577
3925
  align: (_c = column.props) == null ? void 0 : _c.align
3578
3926
  },
3579
3927
  column.key
3580
- ) : /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
3928
+ ) : /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
3581
3929
  TableColumnHeader,
3582
3930
  {
3583
3931
  width: (_d = column.props) == null ? void 0 : _d.width,
@@ -3588,12 +3936,12 @@ var Table = ({
3588
3936
  );
3589
3937
  }
3590
3938
  ) }, headerRow.key)) }),
3591
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(TableBody, { emptyState, children: [
3939
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(TableBody, { emptyState, children: [
3592
3940
  ...collection.rows.map(
3593
- (row) => row.type === "item" && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index) => {
3941
+ (row) => row.type === "item" && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index) => {
3594
3942
  var _a, _b;
3595
3943
  const currentColumn = collection.columns[index];
3596
- return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
3944
+ return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
3597
3945
  TableCell,
3598
3946
  {
3599
3947
  align: (_b = currentColumn.props) == null ? void 0 : _b.align,
@@ -3618,8 +3966,8 @@ Table.Row = import_table10.Row;
3618
3966
 
3619
3967
  // src/Text/Text.tsx
3620
3968
  var import_react_aria_components51 = require("react-aria-components");
3621
- var import_system83 = require("@marigold/system");
3622
- var import_jsx_runtime98 = require("react/jsx-runtime");
3969
+ var import_system85 = require("@marigold/system");
3970
+ var import_jsx_runtime102 = require("react/jsx-runtime");
3623
3971
  var _Text = ({
3624
3972
  variant,
3625
3973
  size,
@@ -3633,29 +3981,30 @@ var _Text = ({
3633
3981
  as = "div",
3634
3982
  ...props
3635
3983
  }) => {
3636
- const theme = (0, import_system83.useTheme)();
3637
- const classNames2 = (0, import_system83.useClassNames)({
3984
+ const theme = (0, import_system85.useTheme)();
3985
+ const classNames2 = (0, import_system85.useClassNames)({
3638
3986
  component: "Text",
3639
3987
  variant,
3640
3988
  size
3641
3989
  });
3642
3990
  const Component = props.slot ? import_react_aria_components51.Text : as;
3643
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
3991
+ const elementType = props.slot ? { elementType: as } : {};
3992
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
3644
3993
  Component,
3645
3994
  {
3646
3995
  ...props,
3647
- elementType: props.slot ? as : void 0,
3648
- className: (0, import_system83.cn)(
3996
+ ...elementType,
3997
+ className: (0, import_system85.cn)(
3649
3998
  "text-[--color] outline-[--outline]",
3650
3999
  classNames2,
3651
- fontStyle && import_system83.textStyle[fontStyle],
3652
- align && import_system83.textAlign[align],
3653
- cursor && import_system83.cursorStyle[cursor],
3654
- weight && import_system83.fontWeight[weight],
3655
- fontSize && import_system83.textSize[fontSize]
4000
+ fontStyle && import_system85.textStyle[fontStyle],
4001
+ align && import_system85.textAlign[align],
4002
+ cursor && import_system85.cursorStyle[cursor],
4003
+ weight && import_system85.fontWeight[weight],
4004
+ fontSize && import_system85.textSize[fontSize]
3656
4005
  ),
3657
- style: (0, import_system83.createVar)({
3658
- color: color && (0, import_system83.getColor)(
4006
+ style: (0, import_system85.createVar)({
4007
+ color: color && (0, import_system85.getColor)(
3659
4008
  theme,
3660
4009
  color,
3661
4010
  color
@@ -3668,11 +4017,11 @@ var _Text = ({
3668
4017
  };
3669
4018
 
3670
4019
  // src/TextArea/TextArea.tsx
3671
- var import_react58 = require("react");
4020
+ var import_react62 = require("react");
3672
4021
  var import_react_aria_components52 = require("react-aria-components");
3673
- var import_system84 = require("@marigold/system");
3674
- var import_jsx_runtime99 = require("react/jsx-runtime");
3675
- var _TextArea = (0, import_react58.forwardRef)(
4022
+ var import_system86 = require("@marigold/system");
4023
+ var import_jsx_runtime103 = require("react/jsx-runtime");
4024
+ var _TextArea = (0, import_react62.forwardRef)(
3676
4025
  ({
3677
4026
  variant,
3678
4027
  size,
@@ -3683,7 +4032,7 @@ var _TextArea = (0, import_react58.forwardRef)(
3683
4032
  rows,
3684
4033
  ...rest
3685
4034
  }, ref) => {
3686
- const classNames2 = (0, import_system84.useClassNames)({ component: "TextArea", variant, size });
4035
+ const classNames2 = (0, import_system86.useClassNames)({ component: "TextArea", variant, size });
3687
4036
  const props = {
3688
4037
  isDisabled: disabled,
3689
4038
  isReadOnly: readOnly,
@@ -3691,15 +4040,15 @@ var _TextArea = (0, import_react58.forwardRef)(
3691
4040
  isRequired: required,
3692
4041
  ...rest
3693
4042
  };
3694
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(FieldBase, { as: import_react_aria_components52.TextField, ...props, variant, size, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_aria_components52.TextArea, { className: classNames2, ref, rows }) });
4043
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(FieldBase, { as: import_react_aria_components52.TextField, ...props, variant, size, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_react_aria_components52.TextArea, { className: classNames2, ref, rows }) });
3695
4044
  }
3696
4045
  );
3697
4046
 
3698
4047
  // src/TextField/TextField.tsx
3699
- var import_react59 = require("react");
4048
+ var import_react63 = require("react");
3700
4049
  var import_react_aria_components53 = require("react-aria-components");
3701
- var import_jsx_runtime100 = require("react/jsx-runtime");
3702
- var _TextField = (0, import_react59.forwardRef)(
4050
+ var import_jsx_runtime104 = require("react/jsx-runtime");
4051
+ var _TextField = (0, import_react63.forwardRef)(
3703
4052
  ({ required, disabled, readOnly, error, ...rest }, ref) => {
3704
4053
  const props = {
3705
4054
  isDisabled: disabled,
@@ -3708,13 +4057,13 @@ var _TextField = (0, import_react59.forwardRef)(
3708
4057
  isRequired: required,
3709
4058
  ...rest
3710
4059
  };
3711
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(FieldBase, { as: import_react_aria_components53.TextField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(_Input, { ref }) });
4060
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(FieldBase, { as: import_react_aria_components53.TextField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(_Input, { ref }) });
3712
4061
  }
3713
4062
  );
3714
4063
 
3715
4064
  // src/Tiles/Tiles.tsx
3716
- var import_system85 = require("@marigold/system");
3717
- var import_jsx_runtime101 = require("react/jsx-runtime");
4065
+ var import_system87 = require("@marigold/system");
4066
+ var import_jsx_runtime105 = require("react/jsx-runtime");
3718
4067
  var Tiles = ({
3719
4068
  space = 0,
3720
4069
  stretch = false,
@@ -3727,17 +4076,17 @@ var Tiles = ({
3727
4076
  if (stretch) {
3728
4077
  column = `minmax(${column}, 1fr)`;
3729
4078
  }
3730
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
4079
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
3731
4080
  "div",
3732
4081
  {
3733
4082
  ...props,
3734
- className: (0, import_system85.cn)(
4083
+ className: (0, import_system87.cn)(
3735
4084
  "grid",
3736
- import_system85.gapSpace[space],
4085
+ import_system87.gapSpace[space],
3737
4086
  "grid-cols-[repeat(auto-fit,var(--column))]",
3738
4087
  equalHeight && "auto-rows-[1fr]"
3739
4088
  ),
3740
- style: (0, import_system85.createVar)({ column, tilesWidth }),
4089
+ style: (0, import_system87.createVar)({ column, tilesWidth }),
3741
4090
  children
3742
4091
  }
3743
4092
  );
@@ -3745,11 +4094,11 @@ var Tiles = ({
3745
4094
 
3746
4095
  // src/Tooltip/Tooltip.tsx
3747
4096
  var import_react_aria_components55 = require("react-aria-components");
3748
- var import_system86 = require("@marigold/system");
4097
+ var import_system88 = require("@marigold/system");
3749
4098
 
3750
4099
  // src/Tooltip/TooltipTrigger.tsx
3751
4100
  var import_react_aria_components54 = require("react-aria-components");
3752
- var import_jsx_runtime102 = require("react/jsx-runtime");
4101
+ var import_jsx_runtime106 = require("react/jsx-runtime");
3753
4102
  var _TooltipTrigger = ({
3754
4103
  delay = 1e3,
3755
4104
  children,
@@ -3763,26 +4112,26 @@ var _TooltipTrigger = ({
3763
4112
  isOpen: open,
3764
4113
  delay
3765
4114
  };
3766
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_react_aria_components54.TooltipTrigger, { ...props, children });
4115
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_react_aria_components54.TooltipTrigger, { ...props, children });
3767
4116
  };
3768
4117
 
3769
4118
  // src/Tooltip/Tooltip.tsx
3770
- var import_jsx_runtime103 = require("react/jsx-runtime");
4119
+ var import_jsx_runtime107 = require("react/jsx-runtime");
3771
4120
  var _Tooltip = ({ children, variant, size, open, ...rest }) => {
3772
4121
  const props = {
3773
4122
  ...rest,
3774
4123
  isOpen: open
3775
4124
  };
3776
- const classNames2 = (0, import_system86.useClassNames)({ component: "Tooltip", variant, size });
4125
+ const classNames2 = (0, import_system88.useClassNames)({ component: "Tooltip", variant, size });
3777
4126
  const portal = usePortalContainer();
3778
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
4127
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
3779
4128
  import_react_aria_components55.Tooltip,
3780
4129
  {
3781
4130
  ...props,
3782
- className: (0, import_system86.cn)("group/tooltip", classNames2.container),
4131
+ className: (0, import_system88.cn)("group/tooltip", classNames2.container),
3783
4132
  UNSTABLE_portalContainer: portal,
3784
4133
  children: [
3785
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_react_aria_components55.OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
4134
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_react_aria_components55.OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
3786
4135
  children
3787
4136
  ]
3788
4137
  }
@@ -3794,273 +4143,285 @@ _Tooltip.Trigger = _TooltipTrigger;
3794
4143
  var import_visually_hidden = require("@react-aria/visually-hidden");
3795
4144
 
3796
4145
  // src/XLoader/XLoader.tsx
3797
- var import_react60 = require("react");
4146
+ var import_react_aria_components57 = require("react-aria-components");
4147
+ var import_system90 = require("@marigold/system");
4148
+
4149
+ // src/XLoader/BaseLoader.tsx
3798
4150
  var import_react_aria_components56 = require("react-aria-components");
3799
- var import_system87 = require("@marigold/system");
3800
- var import_jsx_runtime104 = require("react/jsx-runtime");
3801
- var LoadingModes = {
3802
- FullSize: "fullsize",
3803
- Inline: "inline"
4151
+ var import_system89 = require("@marigold/system");
4152
+ var import_jsx_runtime108 = require("react/jsx-runtime");
4153
+ var BaseLoader = ({
4154
+ variant,
4155
+ size,
4156
+ children,
4157
+ "aria-label": ariaLabel,
4158
+ ...props
4159
+ }) => {
4160
+ const className = (0, import_system89.useClassNames)({ component: "XLoader", variant, size });
4161
+ return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
4162
+ import_react_aria_components56.ProgressBar,
4163
+ {
4164
+ className: className.container,
4165
+ isIndeterminate: true,
4166
+ "aria-label": ariaLabel || children ? ariaLabel : "Loading...",
4167
+ ...props,
4168
+ children: [
4169
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
4170
+ "svg",
4171
+ {
4172
+ xmlns: "http://www.w3.org/2000/svg",
4173
+ viewBox: "0 0 150 150",
4174
+ fill: "currentColor",
4175
+ className: className.loader,
4176
+ children: [
4177
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
4178
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4179
+ "path",
4180
+ {
4181
+ id: "XMLID_5_",
4182
+ 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",
4183
+ children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4184
+ "animate",
4185
+ {
4186
+ attributeName: "opacity",
4187
+ attributeType: "XML",
4188
+ values: "1; .01; 1; 1; 1;",
4189
+ begin: "1.0s",
4190
+ dur: "2.5s",
4191
+ repeatCount: "indefinite"
4192
+ }
4193
+ )
4194
+ }
4195
+ ),
4196
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4197
+ "path",
4198
+ {
4199
+ id: "XMLID_18_",
4200
+ 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",
4201
+ children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4202
+ "animate",
4203
+ {
4204
+ attributeName: "opacity",
4205
+ attributeType: "XML",
4206
+ values: "1; .01; 1; 1; 1;",
4207
+ begin: "0.9s",
4208
+ dur: "2.5s",
4209
+ repeatCount: "indefinite"
4210
+ }
4211
+ )
4212
+ }
4213
+ ),
4214
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4215
+ "path",
4216
+ {
4217
+ id: "XMLID_19_",
4218
+ 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",
4219
+ children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4220
+ "animate",
4221
+ {
4222
+ attributeName: "opacity",
4223
+ attributeType: "XML",
4224
+ values: "1; .01; 1; 1; 1;",
4225
+ begin: "0.8s",
4226
+ dur: "2.5s",
4227
+ repeatCount: "indefinite"
4228
+ }
4229
+ )
4230
+ }
4231
+ ),
4232
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4233
+ "path",
4234
+ {
4235
+ id: "XMLID_20_",
4236
+ 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",
4237
+ children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4238
+ "animate",
4239
+ {
4240
+ attributeName: "opacity",
4241
+ attributeType: "XML",
4242
+ values: "1; .01; 1; 1; 1;",
4243
+ begin: "0.7s",
4244
+ dur: "2.5s",
4245
+ repeatCount: "indefinite"
4246
+ }
4247
+ )
4248
+ }
4249
+ ),
4250
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4251
+ "path",
4252
+ {
4253
+ id: "XMLID_21_",
4254
+ 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",
4255
+ children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4256
+ "animate",
4257
+ {
4258
+ attributeName: "opacity",
4259
+ attributeType: "XML",
4260
+ values: "1; .01; 1; 1; 1;",
4261
+ begin: "0.6s",
4262
+ dur: "2.5s",
4263
+ repeatCount: "indefinite"
4264
+ }
4265
+ )
4266
+ }
4267
+ ),
4268
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4269
+ "path",
4270
+ {
4271
+ id: "XMLID_22_",
4272
+ 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",
4273
+ children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4274
+ "animate",
4275
+ {
4276
+ attributeName: "opacity",
4277
+ attributeType: "XML",
4278
+ values: "1; .01; 1; 1; 1;",
4279
+ begin: "0.5s",
4280
+ dur: "2.5s",
4281
+ repeatCount: "indefinite"
4282
+ }
4283
+ )
4284
+ }
4285
+ ),
4286
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4287
+ "path",
4288
+ {
4289
+ id: "XMLID_23_",
4290
+ 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",
4291
+ children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4292
+ "animate",
4293
+ {
4294
+ attributeName: "opacity",
4295
+ attributeType: "XML",
4296
+ values: "1; .01; 1; 1; 1;",
4297
+ begin: "0.4s",
4298
+ dur: "2.5s",
4299
+ repeatCount: "indefinite"
4300
+ }
4301
+ )
4302
+ }
4303
+ ),
4304
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4305
+ "path",
4306
+ {
4307
+ id: "XMLID_24_",
4308
+ 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",
4309
+ children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4310
+ "animate",
4311
+ {
4312
+ attributeName: "opacity",
4313
+ attributeType: "XML",
4314
+ values: "1; .01; 1; 1; 1;",
4315
+ begin: "0.3s",
4316
+ dur: "2.5s",
4317
+ repeatCount: "indefinite"
4318
+ }
4319
+ )
4320
+ }
4321
+ ),
4322
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4323
+ "path",
4324
+ {
4325
+ id: "XMLID_25_",
4326
+ 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",
4327
+ children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4328
+ "animate",
4329
+ {
4330
+ attributeName: "opacity",
4331
+ attributeType: "XML",
4332
+ values: "1; .01; 1; 1; 1;",
4333
+ begin: "0.2s",
4334
+ dur: "2.5s",
4335
+ repeatCount: "indefinite"
4336
+ }
4337
+ )
4338
+ }
4339
+ ),
4340
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4341
+ "path",
4342
+ {
4343
+ id: "XMLID_26_",
4344
+ 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",
4345
+ children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4346
+ "animate",
4347
+ {
4348
+ attributeName: "opacity",
4349
+ attributeType: "XML",
4350
+ values: "1; .01; 1; 1; 1;",
4351
+ begin: "0.1s",
4352
+ dur: "2.5s",
4353
+ repeatCount: "indefinite"
4354
+ }
4355
+ )
4356
+ }
4357
+ ),
4358
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4359
+ "path",
4360
+ {
4361
+ id: "XMLID_27_",
4362
+ 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",
4363
+ children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4364
+ "animate",
4365
+ {
4366
+ attributeName: "opacity",
4367
+ attributeType: "XML",
4368
+ values: "1; .01; 1; 1; 1;",
4369
+ begin: "0.0s",
4370
+ dur: "2.5s",
4371
+ repeatCount: "indefinite"
4372
+ }
4373
+ )
4374
+ }
4375
+ )
4376
+ ]
4377
+ }
4378
+ ),
4379
+ children ? /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_react_aria_components56.Label, { className: className.label, children }) : null
4380
+ ]
4381
+ }
4382
+ );
3804
4383
  };
3805
- var Loader = (0, import_react60.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
3806
- import_system87.SVG,
3807
- {
3808
- id: "XLoader",
3809
- xmlns: "http://www.w3.org/2000/svg",
3810
- size: 150,
3811
- viewBox: "0 0 150 150",
3812
- ...props,
3813
- ...ref,
3814
- children: [
3815
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
3816
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
3817
- "path",
3818
- {
3819
- id: "XMLID_5_",
3820
- 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",
3821
- children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
3822
- "animate",
3823
- {
3824
- attributeName: "opacity",
3825
- attributeType: "XML",
3826
- values: "1; .01; 1; 1; 1;",
3827
- begin: "1.0s",
3828
- dur: "2.5s",
3829
- repeatCount: "indefinite"
3830
- }
3831
- )
3832
- }
3833
- ),
3834
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
3835
- "path",
3836
- {
3837
- id: "XMLID_18_",
3838
- 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",
3839
- children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
3840
- "animate",
3841
- {
3842
- attributeName: "opacity",
3843
- attributeType: "XML",
3844
- values: "1; .01; 1; 1; 1;",
3845
- begin: "0.9s",
3846
- dur: "2.5s",
3847
- repeatCount: "indefinite"
3848
- }
3849
- )
3850
- }
3851
- ),
3852
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
3853
- "path",
3854
- {
3855
- id: "XMLID_19_",
3856
- 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",
3857
- children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
3858
- "animate",
3859
- {
3860
- attributeName: "opacity",
3861
- attributeType: "XML",
3862
- values: "1; .01; 1; 1; 1;",
3863
- begin: "0.8s",
3864
- dur: "2.5s",
3865
- repeatCount: "indefinite"
3866
- }
3867
- )
3868
- }
3869
- ),
3870
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
3871
- "path",
3872
- {
3873
- id: "XMLID_20_",
3874
- 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",
3875
- children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
3876
- "animate",
3877
- {
3878
- attributeName: "opacity",
3879
- attributeType: "XML",
3880
- values: "1; .01; 1; 1; 1;",
3881
- begin: "0.7s",
3882
- dur: "2.5s",
3883
- repeatCount: "indefinite"
3884
- }
3885
- )
3886
- }
3887
- ),
3888
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
3889
- "path",
3890
- {
3891
- id: "XMLID_21_",
3892
- 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",
3893
- children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
3894
- "animate",
3895
- {
3896
- attributeName: "opacity",
3897
- attributeType: "XML",
3898
- values: "1; .01; 1; 1; 1;",
3899
- begin: "0.6s",
3900
- dur: "2.5s",
3901
- repeatCount: "indefinite"
3902
- }
3903
- )
3904
- }
3905
- ),
3906
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
3907
- "path",
3908
- {
3909
- id: "XMLID_22_",
3910
- 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",
3911
- children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
3912
- "animate",
3913
- {
3914
- attributeName: "opacity",
3915
- attributeType: "XML",
3916
- values: "1; .01; 1; 1; 1;",
3917
- begin: "0.5s",
3918
- dur: "2.5s",
3919
- repeatCount: "indefinite"
3920
- }
3921
- )
3922
- }
3923
- ),
3924
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
3925
- "path",
3926
- {
3927
- id: "XMLID_23_",
3928
- 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",
3929
- children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
3930
- "animate",
3931
- {
3932
- attributeName: "opacity",
3933
- attributeType: "XML",
3934
- values: "1; .01; 1; 1; 1;",
3935
- begin: "0.4s",
3936
- dur: "2.5s",
3937
- repeatCount: "indefinite"
3938
- }
3939
- )
3940
- }
3941
- ),
3942
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
3943
- "path",
3944
- {
3945
- id: "XMLID_24_",
3946
- 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",
3947
- children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
3948
- "animate",
3949
- {
3950
- attributeName: "opacity",
3951
- attributeType: "XML",
3952
- values: "1; .01; 1; 1; 1;",
3953
- begin: "0.3s",
3954
- dur: "2.5s",
3955
- repeatCount: "indefinite"
3956
- }
3957
- )
3958
- }
3959
- ),
3960
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
3961
- "path",
3962
- {
3963
- id: "XMLID_25_",
3964
- 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",
3965
- children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
3966
- "animate",
3967
- {
3968
- attributeName: "opacity",
3969
- attributeType: "XML",
3970
- values: "1; .01; 1; 1; 1;",
3971
- begin: "0.2s",
3972
- dur: "2.5s",
3973
- repeatCount: "indefinite"
3974
- }
3975
- )
3976
- }
3977
- ),
3978
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
3979
- "path",
3980
- {
3981
- id: "XMLID_26_",
3982
- 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",
3983
- children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
3984
- "animate",
3985
- {
3986
- attributeName: "opacity",
3987
- attributeType: "XML",
3988
- values: "1; .01; 1; 1; 1;",
3989
- begin: "0.1s",
3990
- dur: "2.5s",
3991
- repeatCount: "indefinite"
3992
- }
3993
- )
3994
- }
3995
- ),
3996
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
3997
- "path",
3998
- {
3999
- id: "XMLID_27_",
4000
- 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",
4001
- children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
4002
- "animate",
4003
- {
4004
- attributeName: "opacity",
4005
- attributeType: "XML",
4006
- values: "1; .01; 1; 1; 1;",
4007
- begin: "0.0s",
4008
- dur: "2.5s",
4009
- repeatCount: "indefinite"
4010
- }
4011
- )
4012
- }
4013
- )
4014
- ]
4015
- }
4016
- ));
4017
- var LoaderFullSize = (0, import_react60.forwardRef)(
4018
- ({ children, ...rest }, ref) => {
4019
- const className = (0, import_system87.useClassNames)({
4020
- component: "Underlay",
4021
- variant: "modal",
4022
- className: "fixed left-0 top-0 z-10 flex h-[--visual-viewport-height] w-screen items-center justify-center bg-gray-950/30 cursor-progress"
4023
- });
4024
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_aria_components56.ModalOverlay, { defaultOpen: true, className, isKeyboardDismissDisabled: true, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_aria_components56.Modal, { children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_aria_components56.Dialog, { className: "text-text-inverted outline-0", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(Stack, { space: 2, alignX: "center", children: [
4025
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Loader, { ...rest, ...ref, color: "text-inverted", size: 80 }),
4026
- children
4027
- ] }) }) }) });
4028
- }
4029
- );
4030
- var LoaderInline = (0, import_react60.forwardRef)(
4031
- ({ children, ...rest }, ref) => {
4032
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "text-text-inverted flex h-full w-full items-center justify-center bg-gray-950/30", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(Stack, { space: 2, alignX: "center", children: [
4033
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Loader, { ...rest, ...ref, color: "text-inverted", size: 80 }),
4034
- children
4035
- ] }) });
4036
- }
4037
- );
4038
- var XLoader = (0, import_react60.forwardRef)(
4039
- ({ mode, ...rest }, ref) => {
4040
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_jsx_runtime104.Fragment, { children: mode === LoadingModes.FullSize ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(LoaderFullSize, { ...rest, ...ref }) : mode === LoadingModes.Inline ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(LoaderInline, { ...rest, ...ref }) : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Loader, { ...rest, ...ref }) });
4041
- }
4042
- );
4384
+
4385
+ // src/XLoader/XLoader.tsx
4386
+ var import_jsx_runtime109 = require("react/jsx-runtime");
4387
+ var LoaderFullSize = (props) => {
4388
+ const className = (0, import_system90.useClassNames)({
4389
+ component: "Underlay",
4390
+ variant: "modal",
4391
+ className: "fixed left-0 top-0 z-10 h-[--visual-viewport-height] w-screen"
4392
+ });
4393
+ return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_react_aria_components57.ModalOverlay, { defaultOpen: true, className, isKeyboardDismissDisabled: true, children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_react_aria_components57.Modal, { className: "grid h-[--visual-viewport-height] cursor-progress place-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_react_aria_components57.Dialog, { className: "outline-0", "aria-label": "Fullscreen Loader", children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(BaseLoader, { ...props }) }) }) });
4394
+ };
4395
+ var LoaderInline = (props) => {
4396
+ const className = (0, import_system90.useClassNames)({
4397
+ component: "Underlay",
4398
+ variant: "modal",
4399
+ className: "flex size-full items-center justify-center"
4400
+ });
4401
+ return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(BaseLoader, { ...props }) });
4402
+ };
4403
+ var XLoader = ({ mode, variant, ...props }) => mode === "fullsize" ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(LoaderFullSize, { variant: variant != null ? variant : "inverted", ...props }) : mode === "inline" ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(LoaderInline, { variant: variant != null ? variant : "inverted", ...props }) : /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(BaseLoader, { variant, ...props });
4043
4404
 
4044
4405
  // src/Tabs/Tabs.tsx
4045
- var import_react_aria_components60 = require("react-aria-components");
4046
- var import_system90 = require("@marigold/system");
4406
+ var import_react_aria_components61 = require("react-aria-components");
4407
+ var import_system93 = require("@marigold/system");
4047
4408
 
4048
4409
  // src/Tabs/Context.ts
4049
- var import_react61 = require("react");
4050
- var TabContext = (0, import_react61.createContext)({});
4051
- var useTabContext = () => (0, import_react61.useContext)(TabContext);
4410
+ var import_react64 = require("react");
4411
+ var TabContext = (0, import_react64.createContext)({});
4412
+ var useTabContext = () => (0, import_react64.useContext)(TabContext);
4052
4413
 
4053
4414
  // src/Tabs/Tab.tsx
4054
- var import_react_aria_components57 = require("react-aria-components");
4055
- var import_system88 = require("@marigold/system");
4056
- var import_jsx_runtime105 = require("react/jsx-runtime");
4415
+ var import_react_aria_components58 = require("react-aria-components");
4416
+ var import_system91 = require("@marigold/system");
4417
+ var import_jsx_runtime110 = require("react/jsx-runtime");
4057
4418
  var _Tab = (props) => {
4058
4419
  const { classNames: classNames2 } = useTabContext();
4059
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
4060
- import_react_aria_components57.Tab,
4420
+ return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
4421
+ import_react_aria_components58.Tab,
4061
4422
  {
4062
4423
  ...props,
4063
- className: (0, import_system88.cn)(
4424
+ className: (0, import_system91.cn)(
4064
4425
  "flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
4065
4426
  classNames2.tab
4066
4427
  ),
@@ -4070,49 +4431,49 @@ var _Tab = (props) => {
4070
4431
  };
4071
4432
 
4072
4433
  // src/Tabs/TabList.tsx
4073
- var import_react_aria_components58 = require("react-aria-components");
4074
- var import_system89 = require("@marigold/system");
4075
- var import_jsx_runtime106 = require("react/jsx-runtime");
4434
+ var import_react_aria_components59 = require("react-aria-components");
4435
+ var import_system92 = require("@marigold/system");
4436
+ var import_jsx_runtime111 = require("react/jsx-runtime");
4076
4437
  var _TabList = ({ space = 2, ...props }) => {
4077
4438
  const { classNames: classNames2 } = useTabContext();
4078
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
4079
- import_react_aria_components58.TabList,
4439
+ return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
4440
+ import_react_aria_components59.TabList,
4080
4441
  {
4081
4442
  ...props,
4082
- className: (0, import_system89.cn)("flex", import_system89.gapSpace[space], classNames2.tabsList),
4443
+ className: (0, import_system92.cn)("flex", import_system92.gapSpace[space], classNames2.tabsList),
4083
4444
  children: props.children
4084
4445
  }
4085
4446
  );
4086
4447
  };
4087
4448
 
4088
4449
  // src/Tabs/TabPanel.tsx
4089
- var import_react_aria_components59 = require("react-aria-components");
4090
- var import_jsx_runtime107 = require("react/jsx-runtime");
4450
+ var import_react_aria_components60 = require("react-aria-components");
4451
+ var import_jsx_runtime112 = require("react/jsx-runtime");
4091
4452
  var _TabPanel = (props) => {
4092
4453
  const { classNames: classNames2 } = useTabContext();
4093
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_react_aria_components59.TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
4454
+ return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_react_aria_components60.TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
4094
4455
  };
4095
4456
 
4096
4457
  // src/Tabs/Tabs.tsx
4097
- var import_jsx_runtime108 = require("react/jsx-runtime");
4458
+ var import_jsx_runtime113 = require("react/jsx-runtime");
4098
4459
  var _Tabs = ({ disabled, variant, size = "medium", ...rest }) => {
4099
4460
  const props = {
4100
4461
  isDisabled: disabled,
4101
4462
  ...rest
4102
4463
  };
4103
- const classNames2 = (0, import_system90.useClassNames)({
4464
+ const classNames2 = (0, import_system93.useClassNames)({
4104
4465
  component: "Tabs",
4105
4466
  size,
4106
4467
  variant
4107
4468
  });
4108
- return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_react_aria_components60.Tabs, { ...props, className: classNames2.container, children: props.children }) });
4469
+ return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_react_aria_components61.Tabs, { ...props, className: classNames2.container, children: props.children }) });
4109
4470
  };
4110
4471
  _Tabs.List = _TabList;
4111
4472
  _Tabs.TabPanel = _TabPanel;
4112
4473
  _Tabs.Item = _Tab;
4113
4474
 
4114
4475
  // src/RouterProvider/RouterProvider.tsx
4115
- var import_react_aria_components61 = require("react-aria-components");
4476
+ var import_react_aria_components62 = require("react-aria-components");
4116
4477
  // Annotate the CommonJS export names for ESM import in node:
4117
4478
  0 && (module.exports = {
4118
4479
  Accordion,
@@ -4160,6 +4521,7 @@ var import_react_aria_components61 = require("react-aria-components");
4160
4521
  Multiselect,
4161
4522
  NumberField,
4162
4523
  OverlayContainerProvider,
4524
+ Pagination,
4163
4525
  Popover,
4164
4526
  Radio,
4165
4527
  RadioGroup,