@marigold/components 6.4.0 → 6.5.1

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
@@ -75,8 +75,8 @@ __export(src_exports, {
75
75
  NumberField: () => NumberField,
76
76
  Overlay: () => Overlay,
77
77
  Popover: () => Popover,
78
- Radio: () => Radio,
79
- RadioGroup: () => RadioGroup,
78
+ Radio: () => _Radio,
79
+ RadioGroup: () => _RadioGroup,
80
80
  Select: () => Select,
81
81
  Slider: () => _Slider,
82
82
  Split: () => Split,
@@ -85,7 +85,7 @@ __export(src_exports, {
85
85
  Table: () => Table,
86
86
  Tabs: () => Tabs,
87
87
  Tag: () => Tag2,
88
- Text: () => Text,
88
+ Text: () => Text2,
89
89
  TextArea: () => TextArea,
90
90
  TextField: () => TextField,
91
91
  ThemeProvider: () => import_system51.ThemeProvider,
@@ -326,6 +326,7 @@ var Accordion = ({ children, ...props }) => {
326
326
  state,
327
327
  ref
328
328
  );
329
+ delete accordionProps.onKeyDownCapture;
329
330
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { ...accordionProps, ref, children: [...state.collection].map((item) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
330
331
  AccordionItem,
331
332
  {
@@ -537,7 +538,7 @@ var FieldBase = ({
537
538
  ...stateProps,
538
539
  className: (0, import_system8.cn)("group/field", import_system8.width[width], classNames2),
539
540
  children: [
540
- label && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(_Label, { variant, size, ...labelProps, children: label }),
541
+ label ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(_Label, { variant, size, ...labelProps, children: label }) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { "aria-hidden": "true" }),
541
542
  children,
542
543
  hasHelpText && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
543
544
  HelpText,
@@ -2945,12 +2946,9 @@ function MarigoldProvider({
2945
2946
  }
2946
2947
 
2947
2948
  // src/Radio/Radio.tsx
2948
- var import_react41 = require("react");
2949
- var import_focus11 = require("@react-aria/focus");
2950
- var import_interactions8 = require("@react-aria/interactions");
2951
- var import_radio3 = require("@react-aria/radio");
2952
- var import_utils20 = require("@react-aria/utils");
2953
- var import_system53 = require("@marigold/system");
2949
+ var import_react42 = require("react");
2950
+ var import_react_aria_components9 = require("react-aria-components");
2951
+ var import_system55 = require("@marigold/system");
2954
2952
 
2955
2953
  // src/Radio/Context.ts
2956
2954
  var import_react40 = require("react");
@@ -2960,63 +2958,149 @@ var RadioGroupContext = (0, import_react40.createContext)(
2960
2958
  var useRadioGroupContext = () => (0, import_react40.useContext)(RadioGroupContext);
2961
2959
 
2962
2960
  // src/Radio/RadioGroup.tsx
2963
- var import_radio = require("@react-aria/radio");
2964
- var import_radio2 = require("@react-stately/radio");
2961
+ var import_react_aria_components8 = require("react-aria-components");
2962
+ var import_system54 = require("@marigold/system");
2963
+
2964
+ // src/FieldBase/_FieldBase.tsx
2965
+ var import_react41 = require("react");
2966
+ var import_system53 = require("@marigold/system");
2967
+
2968
+ // src/HelpText/_HelpText.tsx
2969
+ var import_react_aria_components7 = require("react-aria-components");
2965
2970
  var import_system52 = require("@marigold/system");
2966
2971
  var import_jsx_runtime64 = require("react/jsx-runtime");
2967
- var RadioGroup = ({
2972
+ var HelpText2 = ({
2968
2973
  variant,
2969
2974
  size,
2970
- children,
2971
- orientation = "vertical",
2972
- width,
2973
- required,
2975
+ description,
2976
+ error,
2977
+ errorMessage,
2978
+ ...props
2979
+ }) => {
2980
+ const hasErrorMessage = errorMessage && error;
2981
+ const classNames2 = (0, import_system52.useClassNames)({
2982
+ component: "HelpText",
2983
+ variant,
2984
+ size
2985
+ });
2986
+ if (!description && !errorMessage) {
2987
+ return null;
2988
+ }
2989
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
2990
+ import_react_aria_components7.Text,
2991
+ {
2992
+ ...props,
2993
+ slot: hasErrorMessage ? "errorMessage" : "description",
2994
+ className: (0, import_system52.cn)("flex items-center gap-1", classNames2.container),
2995
+ children: hasErrorMessage ? /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
2996
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
2997
+ "svg",
2998
+ {
2999
+ className: (0, import_system52.cn)("h-4 w-4", classNames2.icon),
3000
+ viewBox: "0 0 24 24",
3001
+ role: "presentation",
3002
+ children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("path", { d: "M2.25 20.3097H21.75L12 3.46875L2.25 20.3097ZM12.8864 17.2606H11.1136V15.4879H12.8864V17.2606ZM12.8864 13.7151H11.1136V10.1697H12.8864V13.7151Z" })
3003
+ }
3004
+ ),
3005
+ errorMessage
3006
+ ] }) : description
3007
+ }
3008
+ );
3009
+ };
3010
+
3011
+ // src/FieldBase/_FieldBase.tsx
3012
+ var import_jsx_runtime65 = require("react/jsx-runtime");
3013
+ var fixedForwardRef = import_react41.forwardRef;
3014
+ var _FieldBase = (props, ref) => {
3015
+ const {
3016
+ as: Component = "div",
3017
+ children,
3018
+ label,
3019
+ size,
3020
+ variant,
3021
+ width = "full",
3022
+ description,
3023
+ errorMessage,
3024
+ ...rest
3025
+ } = props;
3026
+ const classNames2 = (0, import_system53.useClassNames)({
3027
+ component: "Field",
3028
+ variant,
3029
+ size
3030
+ });
3031
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
3032
+ Component,
3033
+ {
3034
+ ref,
3035
+ className: (0, import_system53.cn)("group/field", import_system53.width[width], classNames2),
3036
+ ...rest,
3037
+ children: [
3038
+ label ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(_Label, { variant, size, children: label }) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { "aria-hidden": "true" }),
3039
+ children,
3040
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3041
+ HelpText2,
3042
+ {
3043
+ variant,
3044
+ size,
3045
+ description,
3046
+ errorMessage,
3047
+ error: props.isInvalid
3048
+ }
3049
+ )
3050
+ ]
3051
+ }
3052
+ );
3053
+ };
3054
+ var FieldBase2 = fixedForwardRef(_FieldBase);
3055
+
3056
+ // src/Radio/RadioGroup.tsx
3057
+ var import_jsx_runtime66 = require("react/jsx-runtime");
3058
+ var _RadioGroup = ({
3059
+ variant,
3060
+ size,
3061
+ label,
3062
+ error,
2974
3063
  disabled,
3064
+ required,
2975
3065
  readOnly,
2976
- error,
3066
+ description,
3067
+ errorMessage,
3068
+ orientation = "vertical",
3069
+ children,
3070
+ width,
2977
3071
  ...rest
2978
3072
  }) => {
3073
+ const classNames2 = (0, import_system54.useClassNames)({ component: "Radio", variant, size });
2979
3074
  const props = {
2980
- isRequired: required,
2981
3075
  isDisabled: disabled,
2982
3076
  isReadOnly: readOnly,
2983
- validationState: error ? "invalid" : "valid",
3077
+ isRequired: required,
3078
+ isInvalid: error,
2984
3079
  ...rest
2985
3080
  };
2986
- const state = (0, import_radio2.useRadioGroupState)(props);
2987
- const { radioGroupProps, labelProps, errorMessageProps, descriptionProps } = (0, import_radio.useRadioGroup)(props, state);
2988
- const classNames2 = (0, import_system52.useClassNames)({ component: "Radio", variant, size });
2989
- const stateProps = (0, import_system52.useStateProps)({
2990
- disabled,
2991
- readOnly,
2992
- error,
2993
- required
2994
- });
2995
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
2996
- FieldBase,
3081
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3082
+ FieldBase2,
2997
3083
  {
3084
+ as: import_react_aria_components8.RadioGroup,
2998
3085
  width,
2999
- label: props.label,
3000
- labelProps: { elementType: "span", ...labelProps },
3001
- description: props.description,
3002
- descriptionProps,
3003
- error,
3004
- errorMessage: props.errorMessage,
3005
- errorMessageProps,
3006
- disabled,
3007
- stateProps,
3008
- ...radioGroupProps,
3009
- children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3086
+ label,
3087
+ description,
3088
+ errorMessage,
3089
+ variant,
3090
+ size,
3091
+ ...props,
3092
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3010
3093
  "div",
3011
3094
  {
3012
3095
  role: "presentation",
3096
+ "data-testid": "group",
3013
3097
  "data-orientation": orientation,
3014
- className: (0, import_system52.cn)(
3098
+ className: (0, import_system54.cn)(
3015
3099
  classNames2.group,
3016
3100
  "flex items-start",
3017
3101
  orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
3018
3102
  ),
3019
- children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(RadioGroupContext.Provider, { value: { width, error, state }, children })
3103
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(RadioGroupContext.Provider, { value: { width, variant, size }, children })
3020
3104
  }
3021
3105
  )
3022
3106
  }
@@ -3024,87 +3108,66 @@ var RadioGroup = ({
3024
3108
  };
3025
3109
 
3026
3110
  // src/Radio/Radio.tsx
3027
- var import_jsx_runtime65 = require("react/jsx-runtime");
3028
- var Dot = () => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
3029
- var Icon2 = ({ checked, className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3111
+ var import_jsx_runtime67 = require("react/jsx-runtime");
3112
+ var Dot = () => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
3113
+ var Icon2 = ({ checked, className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3030
3114
  "div",
3031
3115
  {
3032
- className: (0, import_system53.cn)(
3116
+ className: (0, import_system55.cn)(
3033
3117
  "bg-secondary-50 flex h-4 w-4 items-center justify-center rounded-[50%] border p-1",
3034
3118
  className
3035
3119
  ),
3036
3120
  "aria-hidden": "true",
3037
3121
  ...props,
3038
- children: checked ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Dot, {}) : null
3122
+ children: checked ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Dot, {}) : null
3039
3123
  }
3040
3124
  );
3041
- var Radio = (0, import_react41.forwardRef)(
3042
- ({ width, disabled, ...props }, ref) => {
3043
- const {
3044
- variant,
3045
- size,
3046
- error,
3047
- width: groupWidth,
3048
- state
3049
- } = useRadioGroupContext();
3050
- const inputRef = (0, import_utils20.useObjectRef)(ref);
3051
- const { inputProps } = (0, import_radio3.useRadio)(
3052
- { isDisabled: disabled, ...props },
3053
- state,
3054
- inputRef
3055
- );
3056
- const classNames2 = (0, import_system53.useClassNames)({
3125
+ var _Radio = (0, import_react42.forwardRef)(
3126
+ ({ value, disabled, width, children, ...props }, ref) => {
3127
+ const { variant, size, width: groupWidth } = useRadioGroupContext();
3128
+ const classNames2 = (0, import_system55.useClassNames)({
3057
3129
  component: "Radio",
3058
3130
  variant: variant || props.variant,
3059
3131
  size: size || props.size
3060
3132
  });
3061
- const { hoverProps, isHovered } = (0, import_interactions8.useHover)({ isDisabled: disabled });
3062
- const { isFocusVisible, focusProps } = (0, import_focus11.useFocusRing)();
3063
- const stateProps = (0, import_system53.useStateProps)({
3064
- hover: isHovered,
3065
- focus: isFocusVisible,
3066
- checked: inputProps.checked,
3067
- disabled: inputProps.disabled,
3068
- readOnly: props.readOnly,
3069
- error
3070
- });
3071
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
3072
- "label",
3133
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3134
+ import_react_aria_components9.Radio,
3073
3135
  {
3074
- className: (0, import_system53.cn)(
3136
+ ref,
3137
+ className: (0, import_system55.cn)(
3075
3138
  "group/radio",
3076
3139
  "relative flex items-center gap-[1ch]",
3077
3140
  width || groupWidth || "w-full",
3078
3141
  classNames2.container
3079
3142
  ),
3080
- ...(0, import_utils20.mergeProps)(hoverProps, stateProps),
3081
- children: [
3082
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3083
- "input",
3143
+ value,
3144
+ isDisabled: disabled,
3145
+ ...props,
3146
+ children: ({ isSelected }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_jsx_runtime67.Fragment, { children: [
3147
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3148
+ Icon2,
3084
3149
  {
3085
- ref: inputRef,
3086
- className: (0, import_system53.cn)(
3087
- "absolute left-0 top-0 z-[1] h-full w-full opacity-[0.0001]",
3088
- inputProps.disabled ? "cursor-not-allowed" : "cursor-pointer"
3089
- ),
3090
- ...(0, import_utils20.mergeProps)(inputProps, focusProps)
3150
+ checked: isSelected,
3151
+ className: (0, import_system55.cn)(
3152
+ disabled ? "cursor-not-allowed" : "cursor-pointer",
3153
+ classNames2.radio
3154
+ )
3091
3155
  }
3092
3156
  ),
3093
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Icon2, { checked: inputProps.checked, className: classNames2.radio }),
3094
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: classNames2.label, children: props.children })
3095
- ]
3157
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: classNames2.label, children })
3158
+ ] })
3096
3159
  }
3097
3160
  );
3098
3161
  }
3099
3162
  );
3100
- Radio.Group = RadioGroup;
3163
+ _Radio.Group = _RadioGroup;
3101
3164
 
3102
3165
  // src/Slider/Slider.tsx
3103
- var import_react42 = require("react");
3104
- var import_react_aria_components7 = require("react-aria-components");
3105
- var import_system54 = require("@marigold/system");
3106
- var import_jsx_runtime66 = require("react/jsx-runtime");
3107
- var _Slider = (0, import_react42.forwardRef)(
3166
+ var import_react43 = require("react");
3167
+ var import_react_aria_components10 = require("react-aria-components");
3168
+ var import_system56 = require("@marigold/system");
3169
+ var import_jsx_runtime68 = require("react/jsx-runtime");
3170
+ var _Slider = (0, import_react43.forwardRef)(
3108
3171
  ({
3109
3172
  thumbLabels,
3110
3173
  variant,
@@ -3113,7 +3176,7 @@ var _Slider = (0, import_react42.forwardRef)(
3113
3176
  disabled,
3114
3177
  ...rest
3115
3178
  }, ref) => {
3116
- const classNames2 = (0, import_system54.useClassNames)({
3179
+ const classNames2 = (0, import_system56.useClassNames)({
3117
3180
  component: "Slider",
3118
3181
  variant,
3119
3182
  size
@@ -3122,27 +3185,27 @@ var _Slider = (0, import_react42.forwardRef)(
3122
3185
  isDisabled: disabled,
3123
3186
  ...rest
3124
3187
  };
3125
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
3126
- import_react_aria_components7.Slider,
3188
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
3189
+ import_react_aria_components10.Slider,
3127
3190
  {
3128
- className: (0, import_system54.cn)(
3191
+ className: (0, import_system56.cn)(
3129
3192
  "grid grid-cols-[auto_1fr] gap-y-1",
3130
3193
  classNames2.container,
3131
- import_system54.width[width]
3194
+ import_system56.width[width]
3132
3195
  ),
3133
3196
  ref,
3134
3197
  ...props,
3135
3198
  children: [
3136
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(_Label, { children: props.children }),
3137
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react_aria_components7.SliderOutput, { className: (0, import_system54.cn)("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
3138
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3139
- import_react_aria_components7.SliderTrack,
3199
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(_Label, { children: props.children }),
3200
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react_aria_components10.SliderOutput, { className: (0, import_system56.cn)("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
3201
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3202
+ import_react_aria_components10.SliderTrack,
3140
3203
  {
3141
- className: (0, import_system54.cn)("relative col-span-2 h-2 w-full", classNames2.track),
3142
- children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3143
- import_react_aria_components7.SliderThumb,
3204
+ className: (0, import_system56.cn)("relative col-span-2 h-2 w-full", classNames2.track),
3205
+ children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3206
+ import_react_aria_components10.SliderThumb,
3144
3207
  {
3145
- className: (0, import_system54.cn)("top-1/2 cursor-pointer", classNames2.thumb),
3208
+ className: (0, import_system56.cn)("top-1/2 cursor-pointer", classNames2.thumb),
3146
3209
  index: i,
3147
3210
  "aria-label": thumbLabels == null ? void 0 : thumbLabels[i]
3148
3211
  },
@@ -3157,12 +3220,12 @@ var _Slider = (0, import_react42.forwardRef)(
3157
3220
  );
3158
3221
 
3159
3222
  // src/Split/Split.tsx
3160
- var import_jsx_runtime67 = require("react/jsx-runtime");
3161
- var Split = (props) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { ...props, role: "separator", className: "grow" });
3223
+ var import_jsx_runtime69 = require("react/jsx-runtime");
3224
+ var Split = (props) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { ...props, role: "separator", className: "grow" });
3162
3225
 
3163
3226
  // src/Stack/Stack.tsx
3164
- var import_system55 = require("@marigold/system");
3165
- var import_jsx_runtime68 = require("react/jsx-runtime");
3227
+ var import_system57 = require("@marigold/system");
3228
+ var import_jsx_runtime70 = require("react/jsx-runtime");
3166
3229
  var Stack = ({
3167
3230
  children,
3168
3231
  space = 0,
@@ -3173,14 +3236,14 @@ var Stack = ({
3173
3236
  ...props
3174
3237
  }) => {
3175
3238
  var _a, _b, _c, _d;
3176
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3239
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3177
3240
  "div",
3178
3241
  {
3179
- className: (0, import_system55.cn)(
3242
+ className: (0, import_system57.cn)(
3180
3243
  "flex flex-col",
3181
- import_system55.gapSpace[space],
3182
- alignX && ((_b = (_a = import_system55.alignment) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
3183
- alignY && ((_d = (_c = import_system55.alignment) == null ? void 0 : _c.vertical) == null ? void 0 : _d.alignmentY[alignY]),
3244
+ import_system57.gapSpace[space],
3245
+ alignX && ((_b = (_a = import_system57.alignment) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
3246
+ alignY && ((_d = (_c = import_system57.alignment) == null ? void 0 : _c.vertical) == null ? void 0 : _d.alignmentY[alignY]),
3184
3247
  stretch && "h-full w-full"
3185
3248
  ),
3186
3249
  ...props,
@@ -3190,11 +3253,11 @@ var Stack = ({
3190
3253
  };
3191
3254
 
3192
3255
  // src/Switch/Switch.tsx
3193
- var import_react43 = require("react");
3194
- var import_react_aria_components8 = require("react-aria-components");
3195
- var import_system56 = require("@marigold/system");
3196
- var import_jsx_runtime69 = require("react/jsx-runtime");
3197
- var _Switch = (0, import_react43.forwardRef)(
3256
+ var import_react44 = require("react");
3257
+ var import_react_aria_components11 = require("react-aria-components");
3258
+ var import_system58 = require("@marigold/system");
3259
+ var import_jsx_runtime71 = require("react/jsx-runtime");
3260
+ var _Switch = (0, import_react44.forwardRef)(
3198
3261
  ({
3199
3262
  variant,
3200
3263
  size,
@@ -3205,14 +3268,14 @@ var _Switch = (0, import_react43.forwardRef)(
3205
3268
  readOnly,
3206
3269
  ...props
3207
3270
  }, ref) => {
3208
- const classNames2 = (0, import_system56.useClassNames)({ component: "Switch", size, variant });
3209
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
3210
- import_react_aria_components8.Switch,
3271
+ const classNames2 = (0, import_system58.useClassNames)({ component: "Switch", size, variant });
3272
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
3273
+ import_react_aria_components11.Switch,
3211
3274
  {
3212
3275
  ...props,
3213
3276
  ref,
3214
- className: (0, import_system56.cn)(
3215
- import_system56.width[width],
3277
+ className: (0, import_system58.cn)(
3278
+ import_system58.width[width],
3216
3279
  "group/switch",
3217
3280
  "flex items-center justify-between gap-[1ch]",
3218
3281
  classNames2.container
@@ -3221,17 +3284,17 @@ var _Switch = (0, import_react43.forwardRef)(
3221
3284
  isReadOnly: readOnly,
3222
3285
  children: [
3223
3286
  children,
3224
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: " relative", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3287
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: " relative", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3225
3288
  "div",
3226
3289
  {
3227
- className: (0, import_system56.cn)(
3290
+ className: (0, import_system58.cn)(
3228
3291
  "h-6 w-12 basis-12 rounded-3xl group-disabled/switch:cursor-not-allowed ",
3229
3292
  classNames2.track
3230
3293
  ),
3231
- children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3294
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3232
3295
  "div",
3233
3296
  {
3234
- className: (0, import_system56.cn)(
3297
+ className: (0, import_system58.cn)(
3235
3298
  "h-[22px] w-[22px]",
3236
3299
  "cubic-bezier(.7,0,.3,1)",
3237
3300
  "absolute left-0 top-px",
@@ -3250,33 +3313,33 @@ var _Switch = (0, import_react43.forwardRef)(
3250
3313
  );
3251
3314
 
3252
3315
  // src/Table/Table.tsx
3253
- var import_react51 = require("react");
3316
+ var import_react52 = require("react");
3254
3317
  var import_table9 = require("@react-aria/table");
3255
3318
  var import_table10 = require("@react-stately/table");
3256
- var import_system63 = require("@marigold/system");
3319
+ var import_system65 = require("@marigold/system");
3257
3320
 
3258
3321
  // src/Table/Context.tsx
3259
- var import_react44 = require("react");
3260
- var TableContext = (0, import_react44.createContext)({});
3261
- var useTableContext = () => (0, import_react44.useContext)(TableContext);
3322
+ var import_react45 = require("react");
3323
+ var TableContext = (0, import_react45.createContext)({});
3324
+ var useTableContext = () => (0, import_react45.useContext)(TableContext);
3262
3325
 
3263
3326
  // src/Table/TableBody.tsx
3264
3327
  var import_table = require("@react-aria/table");
3265
- var import_jsx_runtime70 = require("react/jsx-runtime");
3328
+ var import_jsx_runtime72 = require("react/jsx-runtime");
3266
3329
  var TableBody = ({ children }) => {
3267
3330
  const { rowGroupProps } = (0, import_table.useTableRowGroup)();
3268
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("tbody", { ...rowGroupProps, children });
3331
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("tbody", { ...rowGroupProps, children });
3269
3332
  };
3270
3333
 
3271
3334
  // src/Table/TableCell.tsx
3272
- var import_react45 = require("react");
3273
- var import_focus12 = require("@react-aria/focus");
3335
+ var import_react46 = require("react");
3336
+ var import_focus11 = require("@react-aria/focus");
3274
3337
  var import_table2 = require("@react-aria/table");
3275
- var import_utils21 = require("@react-aria/utils");
3276
- var import_system57 = require("@marigold/system");
3277
- var import_jsx_runtime71 = require("react/jsx-runtime");
3338
+ var import_utils20 = require("@react-aria/utils");
3339
+ var import_system59 = require("@marigold/system");
3340
+ var import_jsx_runtime73 = require("react/jsx-runtime");
3278
3341
  var TableCell = ({ cell }) => {
3279
- const ref = (0, import_react45.useRef)(null);
3342
+ const ref = (0, import_react46.useRef)(null);
3280
3343
  const { interactive, state, classNames: classNames2 } = useTableContext();
3281
3344
  const disabled = state.disabledKeys.has(cell.parentKey);
3282
3345
  const { gridCellProps } = (0, import_table2.useTableCell)(
@@ -3295,14 +3358,14 @@ var TableCell = ({ cell }) => {
3295
3358
  onMouseDown: (e) => e.stopPropagation(),
3296
3359
  onPointerDown: (e) => e.stopPropagation()
3297
3360
  };
3298
- const { focusProps, isFocusVisible } = (0, import_focus12.useFocusRing)();
3299
- const stateProps = (0, import_system57.useStateProps)({ disabled, focusVisible: isFocusVisible });
3300
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3361
+ const { focusProps, isFocusVisible } = (0, import_focus11.useFocusRing)();
3362
+ const stateProps = (0, import_system59.useStateProps)({ disabled, focusVisible: isFocusVisible });
3363
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
3301
3364
  "td",
3302
3365
  {
3303
3366
  ref,
3304
3367
  className: classNames2 == null ? void 0 : classNames2.cell,
3305
- ...(0, import_utils21.mergeProps)(cellProps, focusProps),
3368
+ ...(0, import_utils20.mergeProps)(cellProps, focusProps),
3306
3369
  ...stateProps,
3307
3370
  children: cell.rendered
3308
3371
  }
@@ -3310,11 +3373,11 @@ var TableCell = ({ cell }) => {
3310
3373
  };
3311
3374
 
3312
3375
  // src/Table/TableCheckboxCell.tsx
3313
- var import_react46 = require("react");
3314
- var import_focus13 = require("@react-aria/focus");
3376
+ var import_react47 = require("react");
3377
+ var import_focus12 = require("@react-aria/focus");
3315
3378
  var import_table3 = require("@react-aria/table");
3316
- var import_utils22 = require("@react-aria/utils");
3317
- var import_system58 = require("@marigold/system");
3379
+ var import_utils21 = require("@react-aria/utils");
3380
+ var import_system60 = require("@marigold/system");
3318
3381
 
3319
3382
  // src/Table/utils.ts
3320
3383
  var mapCheckboxProps = ({
@@ -3337,9 +3400,9 @@ var mapCheckboxProps = ({
3337
3400
  };
3338
3401
 
3339
3402
  // src/Table/TableCheckboxCell.tsx
3340
- var import_jsx_runtime72 = require("react/jsx-runtime");
3403
+ var import_jsx_runtime74 = require("react/jsx-runtime");
3341
3404
  var TableCheckboxCell = ({ cell }) => {
3342
- const ref = (0, import_react46.useRef)(null);
3405
+ const ref = (0, import_react47.useRef)(null);
3343
3406
  const { state, classNames: classNames2 } = useTableContext();
3344
3407
  const disabled = state.disabledKeys.has(cell.parentKey);
3345
3408
  const { gridCellProps } = (0, import_table3.useTableCell)(
@@ -3352,36 +3415,36 @@ var TableCheckboxCell = ({ cell }) => {
3352
3415
  const { checkboxProps } = mapCheckboxProps(
3353
3416
  (0, import_table3.useTableSelectionCheckbox)({ key: cell.parentKey }, state)
3354
3417
  );
3355
- const { focusProps, isFocusVisible } = (0, import_focus13.useFocusRing)();
3356
- const stateProps = (0, import_system58.useStateProps)({ disabled, focusVisible: isFocusVisible });
3357
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3418
+ const { focusProps, isFocusVisible } = (0, import_focus12.useFocusRing)();
3419
+ const stateProps = (0, import_system60.useStateProps)({ disabled, focusVisible: isFocusVisible });
3420
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
3358
3421
  "td",
3359
3422
  {
3360
3423
  ref,
3361
- className: (0, import_system58.cn)("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
3362
- ...(0, import_utils22.mergeProps)(gridCellProps, focusProps),
3424
+ className: (0, import_system60.cn)("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
3425
+ ...(0, import_utils21.mergeProps)(gridCellProps, focusProps),
3363
3426
  ...stateProps,
3364
- children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(_Checkbox, { ...checkboxProps })
3427
+ children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(_Checkbox, { ...checkboxProps })
3365
3428
  }
3366
3429
  );
3367
3430
  };
3368
3431
 
3369
3432
  // src/Table/TableColumnHeader.tsx
3370
- var import_react47 = require("react");
3371
- var import_focus14 = require("@react-aria/focus");
3372
- var import_interactions9 = require("@react-aria/interactions");
3433
+ var import_react48 = require("react");
3434
+ var import_focus13 = require("@react-aria/focus");
3435
+ var import_interactions8 = require("@react-aria/interactions");
3373
3436
  var import_table4 = require("@react-aria/table");
3374
- var import_utils24 = require("@react-aria/utils");
3437
+ var import_utils23 = require("@react-aria/utils");
3375
3438
  var import_icons2 = require("@marigold/icons");
3376
- var import_system59 = require("@marigold/system");
3377
- var import_system60 = require("@marigold/system");
3378
- var import_jsx_runtime73 = require("react/jsx-runtime");
3439
+ var import_system61 = require("@marigold/system");
3440
+ var import_system62 = require("@marigold/system");
3441
+ var import_jsx_runtime75 = require("react/jsx-runtime");
3379
3442
  var TableColumnHeader = ({
3380
3443
  column,
3381
3444
  width = "auto"
3382
3445
  }) => {
3383
3446
  var _a, _b;
3384
- const ref = (0, import_react47.useRef)(null);
3447
+ const ref = (0, import_react48.useRef)(null);
3385
3448
  const { state, classNames: classNames2 } = useTableContext();
3386
3449
  const { columnHeaderProps } = (0, import_table4.useTableColumnHeader)(
3387
3450
  {
@@ -3390,23 +3453,23 @@ var TableColumnHeader = ({
3390
3453
  state,
3391
3454
  ref
3392
3455
  );
3393
- const { hoverProps, isHovered } = (0, import_interactions9.useHover)({});
3394
- const { focusProps, isFocusVisible } = (0, import_focus14.useFocusRing)();
3395
- const stateProps = (0, import_system59.useStateProps)({
3456
+ const { hoverProps, isHovered } = (0, import_interactions8.useHover)({});
3457
+ const { focusProps, isFocusVisible } = (0, import_focus13.useFocusRing)();
3458
+ const stateProps = (0, import_system61.useStateProps)({
3396
3459
  hover: isHovered,
3397
3460
  focusVisible: isFocusVisible
3398
3461
  });
3399
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
3462
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
3400
3463
  "th",
3401
3464
  {
3402
3465
  colSpan: column.colspan,
3403
3466
  ref,
3404
- className: (0, import_system59.cn)("cursor-default", import_system60.width[width], classNames2 == null ? void 0 : classNames2.header),
3405
- ...(0, import_utils24.mergeProps)(columnHeaderProps, hoverProps, focusProps),
3467
+ className: (0, import_system61.cn)("cursor-default", import_system62.width[width], classNames2 == null ? void 0 : classNames2.header),
3468
+ ...(0, import_utils23.mergeProps)(columnHeaderProps, hoverProps, focusProps),
3406
3469
  ...stateProps,
3407
3470
  children: [
3408
3471
  column.rendered,
3409
- 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_runtime73.jsx)(import_icons2.SortUp, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_icons2.SortDown, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_icons2.SortDown, { className: "inline-block" }))
3472
+ 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_runtime75.jsx)(import_icons2.SortUp, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons2.SortDown, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons2.SortDown, { className: "inline-block" }))
3410
3473
  ]
3411
3474
  }
3412
3475
  );
@@ -3414,36 +3477,36 @@ var TableColumnHeader = ({
3414
3477
 
3415
3478
  // src/Table/TableHeader.tsx
3416
3479
  var import_table5 = require("@react-aria/table");
3417
- var import_jsx_runtime74 = require("react/jsx-runtime");
3480
+ var import_jsx_runtime76 = require("react/jsx-runtime");
3418
3481
  var TableHeader = ({ children }) => {
3419
3482
  const { rowGroupProps } = (0, import_table5.useTableRowGroup)();
3420
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("thead", { ...rowGroupProps, children });
3483
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("thead", { ...rowGroupProps, children });
3421
3484
  };
3422
3485
 
3423
3486
  // src/Table/TableHeaderRow.tsx
3424
- var import_react48 = require("react");
3487
+ var import_react49 = require("react");
3425
3488
  var import_table6 = require("@react-aria/table");
3426
- var import_jsx_runtime75 = require("react/jsx-runtime");
3489
+ var import_jsx_runtime77 = require("react/jsx-runtime");
3427
3490
  var TableHeaderRow = ({ item, children }) => {
3428
3491
  const { state } = useTableContext();
3429
- const ref = (0, import_react48.useRef)(null);
3492
+ const ref = (0, import_react49.useRef)(null);
3430
3493
  const { rowProps } = (0, import_table6.useTableHeaderRow)({ node: item }, state, ref);
3431
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("tr", { ...rowProps, ref, children });
3494
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("tr", { ...rowProps, ref, children });
3432
3495
  };
3433
3496
 
3434
3497
  // src/Table/TableRow.tsx
3435
- var import_react49 = require("react");
3436
- var import_focus15 = require("@react-aria/focus");
3437
- var import_interactions10 = require("@react-aria/interactions");
3498
+ var import_react50 = require("react");
3499
+ var import_focus14 = require("@react-aria/focus");
3500
+ var import_interactions9 = require("@react-aria/interactions");
3438
3501
  var import_table7 = require("@react-aria/table");
3439
- var import_utils25 = require("@react-aria/utils");
3440
- var import_system61 = require("@marigold/system");
3441
- var import_jsx_runtime76 = require("react/jsx-runtime");
3502
+ var import_utils24 = require("@react-aria/utils");
3503
+ var import_system63 = require("@marigold/system");
3504
+ var import_jsx_runtime78 = require("react/jsx-runtime");
3442
3505
  var TableRow = ({ children, row }) => {
3443
- const ref = (0, import_react49.useRef)(null);
3506
+ const ref = (0, import_react50.useRef)(null);
3444
3507
  const { interactive, state, ...ctx } = useTableContext();
3445
3508
  const { variant, size } = row.props;
3446
- const classNames2 = (0, import_system61.useClassNames)({
3509
+ const classNames2 = (0, import_system63.useClassNames)({
3447
3510
  component: "Table",
3448
3511
  variant: variant || ctx.variant,
3449
3512
  size: size || ctx.size
@@ -3457,28 +3520,28 @@ var TableRow = ({ children, row }) => {
3457
3520
  );
3458
3521
  const disabled = state.disabledKeys.has(row.key);
3459
3522
  const selected = state.selectionManager.isSelected(row.key);
3460
- const { focusProps, isFocusVisible } = (0, import_focus15.useFocusRing)({ within: true });
3461
- const { hoverProps, isHovered } = (0, import_interactions10.useHover)({
3523
+ const { focusProps, isFocusVisible } = (0, import_focus14.useFocusRing)({ within: true });
3524
+ const { hoverProps, isHovered } = (0, import_interactions9.useHover)({
3462
3525
  isDisabled: disabled || !interactive
3463
3526
  });
3464
- const stateProps = (0, import_system61.useStateProps)({
3527
+ const stateProps = (0, import_system63.useStateProps)({
3465
3528
  disabled,
3466
3529
  selected,
3467
3530
  hover: isHovered,
3468
3531
  focusVisible: isFocusVisible,
3469
3532
  active: isPressed
3470
3533
  });
3471
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
3534
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
3472
3535
  "tr",
3473
3536
  {
3474
3537
  ref,
3475
- className: (0, import_system61.cn)(
3538
+ className: (0, import_system63.cn)(
3476
3539
  [
3477
3540
  !interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"
3478
3541
  ],
3479
3542
  classNames2 == null ? void 0 : classNames2.row
3480
3543
  ),
3481
- ...(0, import_utils25.mergeProps)(rowProps, focusProps, hoverProps),
3544
+ ...(0, import_utils24.mergeProps)(rowProps, focusProps, hoverProps),
3482
3545
  ...stateProps,
3483
3546
  children
3484
3547
  }
@@ -3486,18 +3549,18 @@ var TableRow = ({ children, row }) => {
3486
3549
  };
3487
3550
 
3488
3551
  // src/Table/TableSelectAllCell.tsx
3489
- var import_react50 = require("react");
3490
- var import_focus16 = require("@react-aria/focus");
3491
- var import_interactions11 = require("@react-aria/interactions");
3552
+ var import_react51 = require("react");
3553
+ var import_focus15 = require("@react-aria/focus");
3554
+ var import_interactions10 = require("@react-aria/interactions");
3492
3555
  var import_table8 = require("@react-aria/table");
3493
- var import_utils26 = require("@react-aria/utils");
3494
- var import_system62 = require("@marigold/system");
3495
- var import_jsx_runtime77 = require("react/jsx-runtime");
3556
+ var import_utils25 = require("@react-aria/utils");
3557
+ var import_system64 = require("@marigold/system");
3558
+ var import_jsx_runtime79 = require("react/jsx-runtime");
3496
3559
  var TableSelectAllCell = ({
3497
3560
  column,
3498
3561
  width = "auto"
3499
3562
  }) => {
3500
- const ref = (0, import_react50.useRef)(null);
3563
+ const ref = (0, import_react51.useRef)(null);
3501
3564
  const { state, classNames: classNames2 } = useTableContext();
3502
3565
  const { columnHeaderProps } = (0, import_table8.useTableColumnHeader)(
3503
3566
  {
@@ -3507,30 +3570,30 @@ var TableSelectAllCell = ({
3507
3570
  ref
3508
3571
  );
3509
3572
  const { checkboxProps } = mapCheckboxProps((0, import_table8.useTableSelectAllCheckbox)(state));
3510
- const { hoverProps, isHovered } = (0, import_interactions11.useHover)({});
3511
- const { focusProps, isFocusVisible } = (0, import_focus16.useFocusRing)();
3512
- const stateProps = (0, import_system62.useStateProps)({
3573
+ const { hoverProps, isHovered } = (0, import_interactions10.useHover)({});
3574
+ const { focusProps, isFocusVisible } = (0, import_focus15.useFocusRing)();
3575
+ const stateProps = (0, import_system64.useStateProps)({
3513
3576
  hover: isHovered,
3514
3577
  focusVisible: isFocusVisible
3515
3578
  });
3516
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
3579
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
3517
3580
  "th",
3518
3581
  {
3519
3582
  ref,
3520
- className: (0, import_system62.cn)(
3521
- import_system62.width[width],
3583
+ className: (0, import_system64.cn)(
3584
+ import_system64.width[width],
3522
3585
  ["text-center align-middle leading-none"],
3523
3586
  classNames2 == null ? void 0 : classNames2.header
3524
3587
  ),
3525
- ...(0, import_utils26.mergeProps)(columnHeaderProps, hoverProps, focusProps),
3588
+ ...(0, import_utils25.mergeProps)(columnHeaderProps, hoverProps, focusProps),
3526
3589
  ...stateProps,
3527
- children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(_Checkbox, { ...checkboxProps })
3590
+ children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(_Checkbox, { ...checkboxProps })
3528
3591
  }
3529
3592
  );
3530
3593
  };
3531
3594
 
3532
3595
  // src/Table/Table.tsx
3533
- var import_jsx_runtime78 = require("react/jsx-runtime");
3596
+ var import_jsx_runtime80 = require("react/jsx-runtime");
3534
3597
  var Table = ({
3535
3598
  variant,
3536
3599
  size,
@@ -3539,7 +3602,7 @@ var Table = ({
3539
3602
  ...props
3540
3603
  }) => {
3541
3604
  const interactive = selectionMode !== "none";
3542
- const tableRef = (0, import_react51.useRef)(null);
3605
+ const tableRef = (0, import_react52.useRef)(null);
3543
3606
  const state = (0, import_table10.useTableState)({
3544
3607
  ...props,
3545
3608
  selectionMode,
@@ -3547,21 +3610,21 @@ var Table = ({
3547
3610
  props.selectionBehavior !== "replace"
3548
3611
  });
3549
3612
  const { gridProps } = (0, import_table9.useTable)(props, state, tableRef);
3550
- const classNames2 = (0, import_system63.useClassNames)({
3613
+ const classNames2 = (0, import_system65.useClassNames)({
3551
3614
  component: "Table",
3552
3615
  variant,
3553
3616
  size
3554
3617
  });
3555
3618
  const { collection } = state;
3556
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
3619
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
3557
3620
  TableContext.Provider,
3558
3621
  {
3559
3622
  value: { state, interactive, classNames: classNames2, variant, size },
3560
- children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
3623
+ children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
3561
3624
  "table",
3562
3625
  {
3563
3626
  ref: tableRef,
3564
- className: (0, import_system63.cn)(
3627
+ className: (0, import_system65.cn)(
3565
3628
  "group/table",
3566
3629
  "border-collapse overflow-auto whitespace-nowrap",
3567
3630
  stretch ? "table w-full" : "block",
@@ -3569,17 +3632,17 @@ var Table = ({
3569
3632
  ),
3570
3633
  ...gridProps,
3571
3634
  children: [
3572
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(TableHeader, { children: collection.headerRows.map((headerRow) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
3635
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(TableHeader, { children: collection.headerRows.map((headerRow) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
3573
3636
  (column) => {
3574
3637
  var _a, _b, _c;
3575
- return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
3638
+ return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
3576
3639
  TableSelectAllCell,
3577
3640
  {
3578
3641
  width: (_b = column.props) == null ? void 0 : _b.width,
3579
3642
  column
3580
3643
  },
3581
3644
  column.key
3582
- ) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
3645
+ ) : /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
3583
3646
  TableColumnHeader,
3584
3647
  {
3585
3648
  width: (_c = column.props) == null ? void 0 : _c.width,
@@ -3589,12 +3652,12 @@ var Table = ({
3589
3652
  );
3590
3653
  }
3591
3654
  ) }, headerRow.key)) }),
3592
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(TableBody, { children: [
3655
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(TableBody, { children: [
3593
3656
  ...collection.rows.map(
3594
- (row) => row.type === "item" && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(TableRow, { row, children: [...collection.getChildren(row.key)].map(
3657
+ (row) => row.type === "item" && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(TableRow, { row, children: [...collection.getChildren(row.key)].map(
3595
3658
  (cell) => {
3596
3659
  var _a;
3597
- return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(TableCell, { cell }, cell.key);
3660
+ return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(TableCell, { cell }, cell.key);
3598
3661
  }
3599
3662
  ) }, row.key)
3600
3663
  )
@@ -3612,9 +3675,9 @@ Table.Header = import_table10.TableHeader;
3612
3675
  Table.Row = import_table10.Row;
3613
3676
 
3614
3677
  // src/Text/Text.tsx
3615
- var import_system64 = require("@marigold/system");
3616
- var import_jsx_runtime79 = require("react/jsx-runtime");
3617
- var Text = ({
3678
+ var import_system66 = require("@marigold/system");
3679
+ var import_jsx_runtime81 = require("react/jsx-runtime");
3680
+ var Text2 = ({
3618
3681
  variant,
3619
3682
  size,
3620
3683
  color,
@@ -3626,27 +3689,27 @@ var Text = ({
3626
3689
  children,
3627
3690
  ...props
3628
3691
  }) => {
3629
- const theme = (0, import_system64.useTheme)();
3630
- const classNames2 = (0, import_system64.useClassNames)({
3692
+ const theme = (0, import_system66.useTheme)();
3693
+ const classNames2 = (0, import_system66.useClassNames)({
3631
3694
  component: "Text",
3632
3695
  variant,
3633
3696
  size
3634
3697
  });
3635
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
3698
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
3636
3699
  "p",
3637
3700
  {
3638
3701
  ...props,
3639
- className: (0, import_system64.cn)(
3702
+ className: (0, import_system66.cn)(
3640
3703
  classNames2,
3641
3704
  "text-[--color] outline-[--outline]",
3642
- fontStyle && import_system64.textStyle[fontStyle],
3643
- align && import_system64.textAlign[align],
3644
- cursor && import_system64.cursorStyle[cursor],
3645
- weight && import_system64.fontWeight[weight],
3646
- fontSize && import_system64.textSize[fontSize]
3705
+ fontStyle && import_system66.textStyle[fontStyle],
3706
+ align && import_system66.textAlign[align],
3707
+ cursor && import_system66.cursorStyle[cursor],
3708
+ weight && import_system66.fontWeight[weight],
3709
+ fontSize && import_system66.textSize[fontSize]
3647
3710
  ),
3648
- style: (0, import_system64.createVar)({
3649
- color: color && theme.colors && (0, import_system64.get)(
3711
+ style: (0, import_system66.createVar)({
3712
+ color: color && theme.colors && (0, import_system66.get)(
3650
3713
  theme.colors,
3651
3714
  color.replace("-", "."),
3652
3715
  color
@@ -3659,14 +3722,14 @@ var Text = ({
3659
3722
  };
3660
3723
 
3661
3724
  // src/TextArea/TextArea.tsx
3662
- var import_react52 = require("react");
3663
- var import_focus17 = require("@react-aria/focus");
3664
- var import_interactions12 = require("@react-aria/interactions");
3725
+ var import_react53 = require("react");
3726
+ var import_focus16 = require("@react-aria/focus");
3727
+ var import_interactions11 = require("@react-aria/interactions");
3665
3728
  var import_textfield = require("@react-aria/textfield");
3666
- var import_utils28 = require("@react-aria/utils");
3667
- var import_system65 = require("@marigold/system");
3668
- var import_jsx_runtime80 = require("react/jsx-runtime");
3669
- var TextArea = (0, import_react52.forwardRef)(
3729
+ var import_utils27 = require("@react-aria/utils");
3730
+ var import_system67 = require("@marigold/system");
3731
+ var import_jsx_runtime82 = require("react/jsx-runtime");
3732
+ var TextArea = (0, import_react53.forwardRef)(
3670
3733
  ({
3671
3734
  variant,
3672
3735
  size,
@@ -3679,7 +3742,7 @@ var TextArea = (0, import_react52.forwardRef)(
3679
3742
  ...props
3680
3743
  }, ref) => {
3681
3744
  const { label, description, errorMessage } = props;
3682
- const textAreaRef = (0, import_utils28.useObjectRef)(ref);
3745
+ const textAreaRef = (0, import_utils27.useObjectRef)(ref);
3683
3746
  const { labelProps, inputProps, descriptionProps, errorMessageProps } = (0, import_textfield.useTextField)(
3684
3747
  {
3685
3748
  inputElementType: "textarea",
@@ -3691,9 +3754,9 @@ var TextArea = (0, import_react52.forwardRef)(
3691
3754
  },
3692
3755
  textAreaRef
3693
3756
  );
3694
- const { hoverProps, isHovered } = (0, import_interactions12.useHover)({});
3695
- const { focusProps, isFocusVisible } = (0, import_focus17.useFocusRing)();
3696
- const stateProps = (0, import_system65.useStateProps)({
3757
+ const { hoverProps, isHovered } = (0, import_interactions11.useHover)({});
3758
+ const { focusProps, isFocusVisible } = (0, import_focus16.useFocusRing)();
3759
+ const stateProps = (0, import_system67.useStateProps)({
3697
3760
  hover: isHovered,
3698
3761
  focus: isFocusVisible,
3699
3762
  disabled,
@@ -3701,8 +3764,8 @@ var TextArea = (0, import_react52.forwardRef)(
3701
3764
  required,
3702
3765
  error
3703
3766
  });
3704
- const classNames2 = (0, import_system65.useClassNames)({ component: "TextArea", variant, size });
3705
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
3767
+ const classNames2 = (0, import_system67.useClassNames)({ component: "TextArea", variant, size });
3768
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
3706
3769
  FieldBase,
3707
3770
  {
3708
3771
  label,
@@ -3716,7 +3779,7 @@ var TextArea = (0, import_react52.forwardRef)(
3716
3779
  variant,
3717
3780
  size,
3718
3781
  width,
3719
- children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
3782
+ children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
3720
3783
  "textarea",
3721
3784
  {
3722
3785
  className: classNames2,
@@ -3733,17 +3796,17 @@ var TextArea = (0, import_react52.forwardRef)(
3733
3796
  );
3734
3797
 
3735
3798
  // src/TextField/TextField.tsx
3736
- var import_react53 = require("react");
3737
- var import_focus18 = require("@react-aria/focus");
3738
- var import_interactions13 = require("@react-aria/interactions");
3799
+ var import_react54 = require("react");
3800
+ var import_focus17 = require("@react-aria/focus");
3801
+ var import_interactions12 = require("@react-aria/interactions");
3739
3802
  var import_textfield2 = require("@react-aria/textfield");
3740
- var import_utils29 = require("@react-aria/utils");
3741
- var import_system66 = require("@marigold/system");
3742
- var import_jsx_runtime81 = require("react/jsx-runtime");
3743
- var TextField = (0, import_react53.forwardRef)(
3803
+ var import_utils28 = require("@react-aria/utils");
3804
+ var import_system68 = require("@marigold/system");
3805
+ var import_jsx_runtime83 = require("react/jsx-runtime");
3806
+ var TextField = (0, import_react54.forwardRef)(
3744
3807
  ({ variant, size, width, disabled, required, readOnly, error, ...props }, ref) => {
3745
3808
  const { label, description, errorMessage, autoFocus } = props;
3746
- const inputRef = (0, import_utils29.useObjectRef)(ref);
3809
+ const inputRef = (0, import_utils28.useObjectRef)(ref);
3747
3810
  const { labelProps, inputProps, descriptionProps, errorMessageProps } = (0, import_textfield2.useTextField)(
3748
3811
  {
3749
3812
  isDisabled: disabled,
@@ -3754,12 +3817,12 @@ var TextField = (0, import_react53.forwardRef)(
3754
3817
  },
3755
3818
  inputRef
3756
3819
  );
3757
- const { hoverProps, isHovered } = (0, import_interactions13.useHover)({});
3758
- const { focusProps, isFocused } = (0, import_focus18.useFocusRing)({
3820
+ const { hoverProps, isHovered } = (0, import_interactions12.useHover)({});
3821
+ const { focusProps, isFocused } = (0, import_focus17.useFocusRing)({
3759
3822
  isTextInput: true,
3760
3823
  autoFocus
3761
3824
  });
3762
- const stateProps = (0, import_system66.useStateProps)({
3825
+ const stateProps = (0, import_system68.useStateProps)({
3763
3826
  hover: isHovered,
3764
3827
  focus: isFocused,
3765
3828
  disabled,
@@ -3767,7 +3830,7 @@ var TextField = (0, import_react53.forwardRef)(
3767
3830
  readOnly,
3768
3831
  required
3769
3832
  });
3770
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
3833
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3771
3834
  FieldBase,
3772
3835
  {
3773
3836
  label,
@@ -3781,13 +3844,13 @@ var TextField = (0, import_react53.forwardRef)(
3781
3844
  variant,
3782
3845
  size,
3783
3846
  width,
3784
- children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
3847
+ children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3785
3848
  Input,
3786
3849
  {
3787
3850
  ref: inputRef,
3788
3851
  variant,
3789
3852
  size,
3790
- ...(0, import_utils29.mergeProps)(focusProps, inputProps, hoverProps)
3853
+ ...(0, import_utils28.mergeProps)(focusProps, inputProps, hoverProps)
3791
3854
  }
3792
3855
  )
3793
3856
  }
@@ -3796,8 +3859,8 @@ var TextField = (0, import_react53.forwardRef)(
3796
3859
  );
3797
3860
 
3798
3861
  // src/Tiles/Tiles.tsx
3799
- var import_system67 = require("@marigold/system");
3800
- var import_jsx_runtime82 = require("react/jsx-runtime");
3862
+ var import_system69 = require("@marigold/system");
3863
+ var import_jsx_runtime84 = require("react/jsx-runtime");
3801
3864
  var Tiles = ({
3802
3865
  space = 0,
3803
3866
  stretch = false,
@@ -3810,17 +3873,17 @@ var Tiles = ({
3810
3873
  if (stretch) {
3811
3874
  column = `minmax(${column}, 1fr)`;
3812
3875
  }
3813
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
3876
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
3814
3877
  "div",
3815
3878
  {
3816
3879
  ...props,
3817
- className: (0, import_system67.cn)(
3880
+ className: (0, import_system69.cn)(
3818
3881
  "grid",
3819
- import_system67.gapSpace[space],
3882
+ import_system69.gapSpace[space],
3820
3883
  "grid-cols-[repeat(auto-fit,var(--column))]",
3821
3884
  equalHeight && "auto-rows-[1fr]"
3822
3885
  ),
3823
- style: (0, import_system67.createVar)({ column, tilesWidth }),
3886
+ style: (0, import_system69.createVar)({ column, tilesWidth }),
3824
3887
  children
3825
3888
  }
3826
3889
  );
@@ -3828,20 +3891,20 @@ var Tiles = ({
3828
3891
 
3829
3892
  // src/Tooltip/Tooltip.tsx
3830
3893
  var import_tooltip3 = require("@react-aria/tooltip");
3831
- var import_system68 = require("@marigold/system");
3894
+ var import_system70 = require("@marigold/system");
3832
3895
 
3833
3896
  // src/Tooltip/Context.ts
3834
- var import_react54 = require("react");
3835
- var TooltipContext = (0, import_react54.createContext)({});
3836
- var useTooltipContext = () => (0, import_react54.useContext)(TooltipContext);
3897
+ var import_react55 = require("react");
3898
+ var TooltipContext = (0, import_react55.createContext)({});
3899
+ var useTooltipContext = () => (0, import_react55.useContext)(TooltipContext);
3837
3900
 
3838
3901
  // src/Tooltip/TooltipTrigger.tsx
3839
- var import_react55 = require("react");
3840
- var import_focus19 = require("@react-aria/focus");
3902
+ var import_react56 = require("react");
3903
+ var import_focus18 = require("@react-aria/focus");
3841
3904
  var import_overlays8 = require("@react-aria/overlays");
3842
3905
  var import_tooltip = require("@react-aria/tooltip");
3843
3906
  var import_tooltip2 = require("@react-stately/tooltip");
3844
- var import_jsx_runtime83 = require("react/jsx-runtime");
3907
+ var import_jsx_runtime85 = require("react/jsx-runtime");
3845
3908
  var TooltipTrigger = ({
3846
3909
  disabled,
3847
3910
  open,
@@ -3850,7 +3913,7 @@ var TooltipTrigger = ({
3850
3913
  children,
3851
3914
  ...rest
3852
3915
  }) => {
3853
- const [tooltipTrigger, tooltip] = import_react55.Children.toArray(children);
3916
+ const [tooltipTrigger, tooltip] = import_react56.Children.toArray(children);
3854
3917
  const props = {
3855
3918
  ...rest,
3856
3919
  isDisabled: disabled,
@@ -3858,8 +3921,8 @@ var TooltipTrigger = ({
3858
3921
  delay,
3859
3922
  placement
3860
3923
  };
3861
- const tooltipTriggerRef = (0, import_react55.useRef)(null);
3862
- const overlayRef = (0, import_react55.useRef)(null);
3924
+ const tooltipTriggerRef = (0, import_react56.useRef)(null);
3925
+ const overlayRef = (0, import_react56.useRef)(null);
3863
3926
  const state = (0, import_tooltip2.useTooltipTriggerState)(props);
3864
3927
  const { triggerProps, tooltipProps } = (0, import_tooltip.useTooltipTrigger)(
3865
3928
  props,
@@ -3878,9 +3941,9 @@ var TooltipTrigger = ({
3878
3941
  isOpen: state.isOpen,
3879
3942
  overlayRef
3880
3943
  });
3881
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_focus19.FocusableProvider, { ref: tooltipTriggerRef, ...triggerProps, children: [
3944
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_focus18.FocusableProvider, { ref: tooltipTriggerRef, ...triggerProps, children: [
3882
3945
  tooltipTrigger,
3883
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3946
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
3884
3947
  TooltipContext.Provider,
3885
3948
  {
3886
3949
  value: {
@@ -3891,33 +3954,33 @@ var TooltipTrigger = ({
3891
3954
  ...tooltipProps,
3892
3955
  ...positionProps
3893
3956
  },
3894
- children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Overlay, { open: state.isOpen, children: tooltip })
3957
+ children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Overlay, { open: state.isOpen, children: tooltip })
3895
3958
  }
3896
3959
  )
3897
3960
  ] });
3898
3961
  };
3899
3962
 
3900
3963
  // src/Tooltip/Tooltip.tsx
3901
- var import_jsx_runtime84 = require("react/jsx-runtime");
3964
+ var import_jsx_runtime86 = require("react/jsx-runtime");
3902
3965
  var Tooltip = ({ children, variant, size }) => {
3903
3966
  const { arrowProps, state, overlayRef, placement, ...rest } = useTooltipContext();
3904
3967
  const { tooltipProps } = (0, import_tooltip3.useTooltip)({}, state);
3905
- const classNames2 = (0, import_system68.useClassNames)({ component: "Tooltip", variant, size });
3906
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
3968
+ const classNames2 = (0, import_system70.useClassNames)({ component: "Tooltip", variant, size });
3969
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
3907
3970
  "div",
3908
3971
  {
3909
3972
  ...tooltipProps,
3910
3973
  ...rest,
3911
3974
  ref: overlayRef,
3912
- className: (0, import_system68.cn)("group/tooltip", classNames2.container),
3975
+ className: (0, import_system70.cn)("group/tooltip", classNames2.container),
3913
3976
  "data-placement": placement,
3914
3977
  children: [
3915
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { children }),
3916
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
3978
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { children }),
3979
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
3917
3980
  "div",
3918
3981
  {
3919
3982
  ...arrowProps,
3920
- className: (0, import_system68.cn)("absolute h-0 w-0", classNames2.arrow)
3983
+ className: (0, import_system70.cn)("absolute h-0 w-0", classNames2.arrow)
3921
3984
  }
3922
3985
  )
3923
3986
  ]
@@ -3930,31 +3993,31 @@ Tooltip.Trigger = TooltipTrigger;
3930
3993
  var import_collections6 = require("@react-stately/collections");
3931
3994
 
3932
3995
  // src/TagGroup/TagGroup.tsx
3933
- var import_react57 = require("react");
3996
+ var import_react58 = require("react");
3934
3997
  var import_tag2 = require("@react-aria/tag");
3935
3998
  var import_list = require("@react-stately/list");
3936
- var import_system70 = require("@marigold/system");
3999
+ var import_system72 = require("@marigold/system");
3937
4000
 
3938
4001
  // src/TagGroup/Tag.tsx
3939
- var import_react56 = __toESM(require("react"));
4002
+ var import_react57 = __toESM(require("react"));
3940
4003
  var import_button6 = require("@react-aria/button");
3941
- var import_focus20 = require("@react-aria/focus");
4004
+ var import_focus19 = require("@react-aria/focus");
3942
4005
  var import_tag = require("@react-aria/tag");
3943
- var import_utils30 = require("@react-aria/utils");
3944
- var import_system69 = require("@marigold/system");
3945
- var import_jsx_runtime85 = require("react/jsx-runtime");
4006
+ var import_utils29 = require("@react-aria/utils");
4007
+ var import_system71 = require("@marigold/system");
4008
+ var import_jsx_runtime87 = require("react/jsx-runtime");
3946
4009
  var CloseButton2 = ({ className, ...props }) => {
3947
- const ref = (0, import_react56.useRef)(null);
4010
+ const ref = (0, import_react57.useRef)(null);
3948
4011
  const { buttonProps } = (0, import_button6.useButton)({ ...props }, ref);
3949
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("button", { className, ...buttonProps, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("path", { d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" }) }) });
4012
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("button", { className, ...buttonProps, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("path", { d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" }) }) });
3950
4013
  };
3951
4014
  var Tag = ({ variant, size, item, state, ...rest }) => {
3952
4015
  const props = {
3953
4016
  item,
3954
4017
  ...rest
3955
4018
  };
3956
- let ref = import_react56.default.useRef(null);
3957
- let { focusProps } = (0, import_focus20.useFocusRing)({ within: true });
4019
+ let ref = import_react57.default.useRef(null);
4020
+ let { focusProps } = (0, import_focus19.useFocusRing)({ within: true });
3958
4021
  const { rowProps, gridCellProps, allowsRemoving, removeButtonProps } = (0, import_tag.useTag)(
3959
4022
  {
3960
4023
  ...props,
@@ -3963,20 +4026,20 @@ var Tag = ({ variant, size, item, state, ...rest }) => {
3963
4026
  state,
3964
4027
  ref
3965
4028
  );
3966
- const classNames2 = (0, import_system69.useClassNames)({ component: "Tag", variant, size });
3967
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
4029
+ const classNames2 = (0, import_system71.useClassNames)({ component: "Tag", variant, size });
4030
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3968
4031
  "span",
3969
4032
  {
3970
4033
  ref,
3971
- ...(0, import_utils30.mergeProps)(rowProps, focusProps),
4034
+ ...(0, import_utils29.mergeProps)(rowProps, focusProps),
3972
4035
  className: classNames2.tag,
3973
- children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { ...gridCellProps, className: classNames2.gridCell, children: [
3974
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { children: item.rendered }),
3975
- allowsRemoving && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
4036
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { ...gridCellProps, className: classNames2.gridCell, children: [
4037
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { children: item.rendered }),
4038
+ allowsRemoving && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3976
4039
  CloseButton2,
3977
4040
  {
3978
4041
  ...removeButtonProps,
3979
- className: (0, import_system69.cn)("flex items-center", classNames2.closeButton)
4042
+ className: (0, import_system71.cn)("flex items-center", classNames2.closeButton)
3980
4043
  }
3981
4044
  )
3982
4045
  ] })
@@ -3985,8 +4048,8 @@ var Tag = ({ variant, size, item, state, ...rest }) => {
3985
4048
  };
3986
4049
 
3987
4050
  // src/TagGroup/TagGroup.tsx
3988
- var import_jsx_runtime86 = require("react/jsx-runtime");
3989
- var import_react58 = require("react");
4051
+ var import_jsx_runtime88 = require("react/jsx-runtime");
4052
+ var import_react59 = require("react");
3990
4053
  var TagGroup = ({
3991
4054
  width,
3992
4055
  required,
@@ -3999,14 +4062,14 @@ var TagGroup = ({
3999
4062
  validationState: error ? "invalid" : "valid",
4000
4063
  ...rest
4001
4064
  };
4002
- const inputRef = (0, import_react57.useRef)(null);
4065
+ const inputRef = (0, import_react58.useRef)(null);
4003
4066
  const state = (0, import_list.useListState)(props);
4004
4067
  const { gridProps, labelProps, descriptionProps, errorMessageProps } = (0, import_tag2.useTagGroup)(props, state, inputRef);
4005
- const stateProps = (0, import_system70.useStateProps)({
4068
+ const stateProps = (0, import_system72.useStateProps)({
4006
4069
  error,
4007
4070
  required
4008
4071
  });
4009
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
4072
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
4010
4073
  FieldBase,
4011
4074
  {
4012
4075
  width,
@@ -4019,13 +4082,13 @@ var TagGroup = ({
4019
4082
  errorMessageProps,
4020
4083
  stateProps,
4021
4084
  ...gridProps,
4022
- children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
4085
+ children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
4023
4086
  "div",
4024
4087
  {
4025
4088
  role: "presentation",
4026
4089
  ref: inputRef,
4027
4090
  className: "flex flex-wrap items-start gap-1",
4028
- children: [...state.collection].map((item) => /* @__PURE__ */ (0, import_react58.createElement)(
4091
+ children: [...state.collection].map((item) => /* @__PURE__ */ (0, import_react59.createElement)(
4029
4092
  Tag,
4030
4093
  {
4031
4094
  ...item.props,
@@ -4051,11 +4114,11 @@ Tag2.Group = TagGroup;
4051
4114
  var import_visually_hidden = require("@react-aria/visually-hidden");
4052
4115
 
4053
4116
  // src/XLoader/XLoader.tsx
4054
- var import_react59 = require("react");
4055
- var import_system71 = require("@marigold/system");
4056
- var import_jsx_runtime87 = require("react/jsx-runtime");
4057
- var XLoader = (0, import_react59.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
4058
- import_system71.SVG,
4117
+ var import_react60 = require("react");
4118
+ var import_system73 = require("@marigold/system");
4119
+ var import_jsx_runtime89 = require("react/jsx-runtime");
4120
+ var XLoader = (0, import_react60.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
4121
+ import_system73.SVG,
4059
4122
  {
4060
4123
  id: "XLoader",
4061
4124
  xmlns: "http://www.w3.org/2000/svg",
@@ -4064,13 +4127,13 @@ var XLoader = (0, import_react59.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4064
4127
  ...props,
4065
4128
  ...ref,
4066
4129
  children: [
4067
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
4068
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4130
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
4131
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4069
4132
  "path",
4070
4133
  {
4071
4134
  id: "XMLID_5_",
4072
4135
  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",
4073
- children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4136
+ children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4074
4137
  "animate",
4075
4138
  {
4076
4139
  attributeName: "opacity",
@@ -4083,12 +4146,12 @@ var XLoader = (0, import_react59.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4083
4146
  )
4084
4147
  }
4085
4148
  ),
4086
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4149
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4087
4150
  "path",
4088
4151
  {
4089
4152
  id: "XMLID_18_",
4090
4153
  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",
4091
- children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4154
+ children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4092
4155
  "animate",
4093
4156
  {
4094
4157
  attributeName: "opacity",
@@ -4101,12 +4164,12 @@ var XLoader = (0, import_react59.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4101
4164
  )
4102
4165
  }
4103
4166
  ),
4104
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4167
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4105
4168
  "path",
4106
4169
  {
4107
4170
  id: "XMLID_19_",
4108
4171
  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",
4109
- children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4172
+ children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4110
4173
  "animate",
4111
4174
  {
4112
4175
  attributeName: "opacity",
@@ -4119,12 +4182,12 @@ var XLoader = (0, import_react59.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4119
4182
  )
4120
4183
  }
4121
4184
  ),
4122
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4185
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4123
4186
  "path",
4124
4187
  {
4125
4188
  id: "XMLID_20_",
4126
4189
  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",
4127
- children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4190
+ children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4128
4191
  "animate",
4129
4192
  {
4130
4193
  attributeName: "opacity",
@@ -4137,12 +4200,12 @@ var XLoader = (0, import_react59.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4137
4200
  )
4138
4201
  }
4139
4202
  ),
4140
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4203
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4141
4204
  "path",
4142
4205
  {
4143
4206
  id: "XMLID_21_",
4144
4207
  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",
4145
- children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4208
+ children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4146
4209
  "animate",
4147
4210
  {
4148
4211
  attributeName: "opacity",
@@ -4155,12 +4218,12 @@ var XLoader = (0, import_react59.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4155
4218
  )
4156
4219
  }
4157
4220
  ),
4158
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4221
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4159
4222
  "path",
4160
4223
  {
4161
4224
  id: "XMLID_22_",
4162
4225
  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",
4163
- children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4226
+ children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4164
4227
  "animate",
4165
4228
  {
4166
4229
  attributeName: "opacity",
@@ -4173,12 +4236,12 @@ var XLoader = (0, import_react59.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4173
4236
  )
4174
4237
  }
4175
4238
  ),
4176
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4239
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4177
4240
  "path",
4178
4241
  {
4179
4242
  id: "XMLID_23_",
4180
4243
  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",
4181
- children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4244
+ children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4182
4245
  "animate",
4183
4246
  {
4184
4247
  attributeName: "opacity",
@@ -4191,12 +4254,12 @@ var XLoader = (0, import_react59.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4191
4254
  )
4192
4255
  }
4193
4256
  ),
4194
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4257
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4195
4258
  "path",
4196
4259
  {
4197
4260
  id: "XMLID_24_",
4198
4261
  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",
4199
- children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4262
+ children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4200
4263
  "animate",
4201
4264
  {
4202
4265
  attributeName: "opacity",
@@ -4209,12 +4272,12 @@ var XLoader = (0, import_react59.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4209
4272
  )
4210
4273
  }
4211
4274
  ),
4212
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4275
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4213
4276
  "path",
4214
4277
  {
4215
4278
  id: "XMLID_25_",
4216
4279
  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",
4217
- children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4280
+ children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4218
4281
  "animate",
4219
4282
  {
4220
4283
  attributeName: "opacity",
@@ -4227,12 +4290,12 @@ var XLoader = (0, import_react59.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4227
4290
  )
4228
4291
  }
4229
4292
  ),
4230
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4293
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4231
4294
  "path",
4232
4295
  {
4233
4296
  id: "XMLID_26_",
4234
4297
  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",
4235
- children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4298
+ children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4236
4299
  "animate",
4237
4300
  {
4238
4301
  attributeName: "opacity",
@@ -4245,12 +4308,12 @@ var XLoader = (0, import_react59.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4245
4308
  )
4246
4309
  }
4247
4310
  ),
4248
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4311
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4249
4312
  "path",
4250
4313
  {
4251
4314
  id: "XMLID_27_",
4252
4315
  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",
4253
- children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4316
+ children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4254
4317
  "animate",
4255
4318
  {
4256
4319
  attributeName: "opacity",
@@ -4268,43 +4331,43 @@ var XLoader = (0, import_react59.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4268
4331
  ));
4269
4332
 
4270
4333
  // src/Tabs/Tabs.tsx
4271
- var import_react63 = require("react");
4334
+ var import_react64 = require("react");
4272
4335
  var import_tabs3 = require("@react-aria/tabs");
4273
4336
  var import_collections7 = require("@react-stately/collections");
4274
4337
  var import_tabs4 = require("@react-stately/tabs");
4275
- var import_system74 = require("@marigold/system");
4338
+ var import_system76 = require("@marigold/system");
4276
4339
 
4277
4340
  // src/Tabs/Context.ts
4278
- var import_react60 = require("react");
4279
- var TabContext = (0, import_react60.createContext)({});
4280
- var useTabContext = () => (0, import_react60.useContext)(TabContext);
4341
+ var import_react61 = require("react");
4342
+ var TabContext = (0, import_react61.createContext)({});
4343
+ var useTabContext = () => (0, import_react61.useContext)(TabContext);
4281
4344
 
4282
4345
  // src/Tabs/Tab.tsx
4283
- var import_react61 = require("react");
4284
- var import_interactions14 = require("@react-aria/interactions");
4346
+ var import_react62 = require("react");
4347
+ var import_interactions13 = require("@react-aria/interactions");
4285
4348
  var import_tabs = require("@react-aria/tabs");
4286
- var import_utils31 = require("@react-aria/utils");
4287
- var import_system72 = require("@marigold/system");
4288
- var import_jsx_runtime88 = require("react/jsx-runtime");
4349
+ var import_utils30 = require("@react-aria/utils");
4350
+ var import_system74 = require("@marigold/system");
4351
+ var import_jsx_runtime90 = require("react/jsx-runtime");
4289
4352
  var Tab = ({ item, state }) => {
4290
4353
  const { key, rendered } = item;
4291
- const ref = (0, import_react61.useRef)(null);
4354
+ const ref = (0, import_react62.useRef)(null);
4292
4355
  const { tabProps, isSelected } = (0, import_tabs.useTab)({ key }, state, ref);
4293
4356
  const disabled = tabProps["aria-disabled"];
4294
- const { hoverProps, isHovered } = (0, import_interactions14.useHover)({
4357
+ const { hoverProps, isHovered } = (0, import_interactions13.useHover)({
4295
4358
  isDisabled: disabled || isSelected
4296
4359
  });
4297
- const { focusProps } = (0, import_interactions14.useFocus)({});
4298
- const stateProps = (0, import_system72.useStateProps)({ active: isSelected, hover: isHovered });
4360
+ const { focusProps } = (0, import_interactions13.useFocus)({});
4361
+ const stateProps = (0, import_system74.useStateProps)({ active: isSelected, hover: isHovered });
4299
4362
  const { classNames: classNames2 } = useTabContext();
4300
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
4363
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
4301
4364
  "div",
4302
4365
  {
4303
- className: (0, import_system72.cn)(
4366
+ className: (0, import_system74.cn)(
4304
4367
  "flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
4305
4368
  classNames2.tab
4306
4369
  ),
4307
- ...(0, import_utils31.mergeProps)(tabProps, stateProps, focusProps, hoverProps),
4370
+ ...(0, import_utils30.mergeProps)(tabProps, stateProps, focusProps, hoverProps),
4308
4371
  ref,
4309
4372
  children: rendered
4310
4373
  }
@@ -4312,21 +4375,21 @@ var Tab = ({ item, state }) => {
4312
4375
  };
4313
4376
 
4314
4377
  // src/Tabs/TabPanel.tsx
4315
- var import_react62 = require("react");
4378
+ var import_react63 = require("react");
4316
4379
  var import_tabs2 = require("@react-aria/tabs");
4317
- var import_system73 = require("@marigold/system");
4318
- var import_jsx_runtime89 = require("react/jsx-runtime");
4380
+ var import_system75 = require("@marigold/system");
4381
+ var import_jsx_runtime91 = require("react/jsx-runtime");
4319
4382
  var TabPanel = ({ state, ...props }) => {
4320
4383
  var _a;
4321
- const ref = (0, import_react62.useRef)(null);
4384
+ const ref = (0, import_react63.useRef)(null);
4322
4385
  const { tabPanelProps } = (0, import_tabs2.useTabPanel)(props, state, ref);
4323
4386
  const selectedItemProps = (_a = state.selectedItem) == null ? void 0 : _a.props;
4324
4387
  const { classNames: classNames2 } = useTabContext();
4325
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: (0, import_system73.cn)(classNames2.tabpanel), ref, ...tabPanelProps, children: selectedItemProps == null ? void 0 : selectedItemProps.children });
4388
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: (0, import_system75.cn)(classNames2.tabpanel), ref, ...tabPanelProps, children: selectedItemProps == null ? void 0 : selectedItemProps.children });
4326
4389
  };
4327
4390
 
4328
4391
  // src/Tabs/Tabs.tsx
4329
- var import_jsx_runtime90 = require("react/jsx-runtime");
4392
+ var import_jsx_runtime92 = require("react/jsx-runtime");
4330
4393
  var Tabs = ({
4331
4394
  space = 2,
4332
4395
  size = "medium",
@@ -4335,31 +4398,31 @@ var Tabs = ({
4335
4398
  ...rest
4336
4399
  }) => {
4337
4400
  var _a;
4338
- const ref = (0, import_react63.useRef)(null);
4401
+ const ref = (0, import_react64.useRef)(null);
4339
4402
  const props = {
4340
4403
  isDisabled: disabled,
4341
4404
  ...rest
4342
4405
  };
4343
4406
  const state = (0, import_tabs4.useTabListState)(props);
4344
4407
  const { tabListProps } = (0, import_tabs3.useTabList)(props, state, ref);
4345
- const classNames2 = (0, import_system74.useClassNames)({
4408
+ const classNames2 = (0, import_system76.useClassNames)({
4346
4409
  component: "Tabs",
4347
4410
  size,
4348
4411
  variant
4349
4412
  });
4350
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: (0, import_system74.cn)(classNames2.container), children: [
4351
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
4413
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: (0, import_system76.cn)(classNames2.container), children: [
4414
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
4352
4415
  "div",
4353
4416
  {
4354
- className: (0, import_system74.cn)("flex", import_system74.gapSpace[space], classNames2.tabs),
4417
+ className: (0, import_system76.cn)("flex", import_system76.gapSpace[space], classNames2.tabs),
4355
4418
  ...tabListProps,
4356
4419
  ref,
4357
4420
  children: [...state.collection].map((item) => {
4358
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Tab, { item, state }, item.key);
4421
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Tab, { item, state }, item.key);
4359
4422
  })
4360
4423
  }
4361
4424
  ),
4362
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(TabPanel, { state }, (_a = state.selectedItem) == null ? void 0 : _a.key)
4425
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(TabPanel, { state }, (_a = state.selectedItem) == null ? void 0 : _a.key)
4363
4426
  ] }) });
4364
4427
  };
4365
4428
  Tabs.Item = import_collections7.Item;