@marigold/components 6.3.1 → 6.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -39,13 +39,13 @@ __export(src_exports, {
39
39
  Badge: () => Badge,
40
40
  Body: () => Body,
41
41
  Breakout: () => Breakout,
42
- Button: () => Button,
42
+ Button: () => _Button,
43
43
  Calendar: () => Calendar,
44
44
  CalendarCell: () => CalendarCell,
45
45
  CalendarGrid: () => CalendarGrid,
46
46
  Card: () => Card,
47
47
  Center: () => Center,
48
- Checkbox: () => Checkbox,
48
+ Checkbox: () => _Checkbox,
49
49
  CheckboxGroup: () => CheckboxGroup,
50
50
  CheckboxGroupContext: () => CheckboxGroupContext,
51
51
  Columns: () => Columns,
@@ -54,19 +54,19 @@ __export(src_exports, {
54
54
  DateField: () => DateField,
55
55
  DatePicker: () => DatePicker,
56
56
  Dialog: () => Dialog,
57
- Divider: () => Divider,
57
+ Divider: () => _Divider,
58
58
  FieldBase: () => FieldBase,
59
59
  FieldGroup: () => FieldGroup,
60
60
  FieldGroupContext: () => FieldGroupContext,
61
61
  Footer: () => Footer,
62
62
  Header: () => Header,
63
- Headline: () => Headline,
63
+ Headline: () => _Headline,
64
64
  Image: () => Image,
65
65
  Inline: () => Inline,
66
66
  Input: () => Input,
67
67
  Inset: () => Inset,
68
- Label: () => Label,
69
- Link: () => Link,
68
+ Label: () => _Label,
69
+ Link: () => _Link,
70
70
  List: () => List,
71
71
  MarigoldProvider: () => MarigoldProvider,
72
72
  Menu: () => Menu,
@@ -75,20 +75,20 @@ __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
- Slider: () => Slider,
81
+ Slider: () => _Slider,
82
82
  Split: () => Split,
83
83
  Stack: () => Stack,
84
- Switch: () => Switch,
84
+ Switch: () => _Switch,
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
- ThemeProvider: () => import_system52.ThemeProvider,
91
+ ThemeProvider: () => import_system51.ThemeProvider,
92
92
  Tiles: () => Tiles,
93
93
  Tooltip: () => Tooltip,
94
94
  Tray: () => Tray,
@@ -96,11 +96,12 @@ __export(src_exports, {
96
96
  Underlay: () => Underlay,
97
97
  VisuallyHidden: () => import_visually_hidden.VisuallyHidden,
98
98
  XLoader: () => XLoader,
99
+ _Slider: () => _Slider,
99
100
  useAsyncList: () => import_data.useAsyncList,
100
101
  useCheckboxGroupContext: () => useCheckboxGroupContext,
101
102
  useFieldGroupContext: () => useFieldGroupContext,
102
103
  useListData: () => import_data.useListData,
103
- useTheme: () => import_system52.useTheme
104
+ useTheme: () => import_system51.useTheme
104
105
  });
105
106
  module.exports = __toCommonJS(src_exports);
106
107
 
@@ -108,121 +109,44 @@ module.exports = __toCommonJS(src_exports);
108
109
  var import_data = require("@react-stately/data");
109
110
 
110
111
  // src/Accordion/Accordion.tsx
111
- var import_react5 = require("react");
112
+ var import_react4 = require("react");
112
113
  var import_accordion = require("@react-aria/accordion");
113
114
  var import_collections = require("@react-stately/collections");
114
115
  var import_tree = require("@react-stately/tree");
115
116
 
116
117
  // src/Accordion/AccordionItem.tsx
117
- var import_react4 = require("react");
118
- var import_focus2 = require("@react-aria/focus");
119
- var import_utils5 = require("@react-aria/utils");
120
- var import_system4 = require("@marigold/system");
118
+ var import_react3 = require("react");
119
+ var import_focus = require("@react-aria/focus");
120
+ var import_utils4 = require("@react-aria/utils");
121
+ var import_system3 = require("@marigold/system");
121
122
 
122
- // src/Button/Button.tsx
123
+ // src/Chevron/ChevronUp.tsx
123
124
  var import_react = require("react");
124
- var import_button = require("@react-aria/button");
125
- var import_focus = require("@react-aria/focus");
126
- var import_interactions = require("@react-aria/interactions");
127
- var import_utils = require("@react-aria/utils");
128
125
  var import_system = require("@marigold/system");
129
126
  var import_jsx_runtime = require("react/jsx-runtime");
130
- var Button = (0, import_react.forwardRef)(
131
- ({
132
- as = "button",
133
- children,
134
- variant,
135
- size,
136
- disabled,
137
- onPress,
138
- onPressStart,
139
- onPressEnd,
140
- onPressChange,
141
- onPressUp,
142
- fullWidth,
143
- className,
144
- excludeFromTabOrder,
145
- ...props
146
- }, ref) => {
147
- const Component = as;
148
- const buttonRef = (0, import_utils.useObjectRef)(ref);
149
- const { hoverProps, isHovered } = (0, import_interactions.useHover)({ isDisabled: disabled });
150
- const { isFocusVisible, focusProps } = (0, import_focus.useFocusRing)({
151
- autoFocus: props.autoFocus
152
- });
153
- const { buttonProps, isPressed } = (0, import_button.useButton)(
154
- {
155
- /**
156
- * `react-aria` only expected `Element` but we casted
157
- * it to a `HTMLButtonElement` internally.
158
- */
159
- ...props,
160
- onPress,
161
- onPressStart,
162
- onPressEnd,
163
- onPressChange,
164
- onPressUp,
165
- elementType: typeof as === "string" ? as : "span",
166
- isDisabled: disabled,
167
- excludeFromTabOrder
168
- },
169
- buttonRef
170
- );
171
- const classNames2 = (0, import_system.useClassNames)({
172
- component: "Button",
173
- variant,
174
- size,
175
- className
176
- });
177
- const stateProps = (0, import_system.useStateProps)({
178
- active: isPressed,
179
- focusVisible: isFocusVisible,
180
- hover: isHovered
181
- });
182
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
183
- Component,
184
- {
185
- ...(0, import_utils.mergeProps)(buttonProps, focusProps, hoverProps, props),
186
- ...stateProps,
187
- ref: buttonRef,
188
- className: (0, import_system.cn)(
189
- "inline-flex items-center justify-center gap-[0.5ch]",
190
- classNames2,
191
- fullWidth ? "w-full" : void 0
192
- ),
193
- children
194
- }
195
- );
196
- }
127
+ var ChevronUp = (0, import_react.forwardRef)(
128
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_system.SVG, { className, ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M5.97563 16.8506L12 10.8394L18.0244 16.8506L19.875 15L12 7.125L4.125 15L5.97563 16.8506Z" }) })
197
129
  );
198
130
 
199
- // src/Chevron/ChevronUp.tsx
131
+ // src/Chevron/ChevronDown.tsx
200
132
  var import_react2 = require("react");
201
133
  var import_system2 = require("@marigold/system");
202
134
  var import_jsx_runtime2 = require("react/jsx-runtime");
203
- var ChevronUp = (0, import_react2.forwardRef)(
204
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_system2.SVG, { className, ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M5.97563 16.8506L12 10.8394L18.0244 16.8506L19.875 15L12 7.125L4.125 15L5.97563 16.8506Z" }) })
205
- );
206
-
207
- // src/Chevron/ChevronDown.tsx
208
- var import_react3 = require("react");
209
- var import_system3 = require("@marigold/system");
210
- var import_jsx_runtime3 = require("react/jsx-runtime");
211
- var ChevronDown = (0, import_react3.forwardRef)(
212
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_system3.SVG, { className, ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M5.97563 7.125L12 13.1363L18.0244 7.125L19.875 8.97563L12 16.8506L4.125 8.97563L5.97563 7.125Z" }) })
135
+ var ChevronDown = (0, import_react2.forwardRef)(
136
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_system2.SVG, { className, ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M5.97563 7.125L12 13.1363L18.0244 7.125L19.875 8.97563L12 16.8506L4.125 8.97563L5.97563 7.125Z" }) })
213
137
  );
214
138
 
215
139
  // src/Accordion/useAccordionItem.ts
216
- var import_button2 = require("@react-aria/button");
140
+ var import_button = require("@react-aria/button");
217
141
  var import_selection = require("@react-aria/selection");
142
+ var import_utils = require("@react-aria/utils");
218
143
  var import_utils2 = require("@react-aria/utils");
219
144
  var import_utils3 = require("@react-aria/utils");
220
- var import_utils4 = require("@react-aria/utils");
221
145
  function isNonContiguousSelectionModifier(e) {
222
- return (0, import_utils3.isAppleDevice)() ? e.altKey : e.ctrlKey;
146
+ return (0, import_utils2.isAppleDevice)() ? e.altKey : e.ctrlKey;
223
147
  }
224
148
  function isCtrlKeyPressed(e) {
225
- if ((0, import_utils4.isMac)()) {
149
+ if ((0, import_utils3.isMac)()) {
226
150
  return e.metaKey;
227
151
  }
228
152
  return e.ctrlKey;
@@ -231,8 +155,8 @@ function useAccordionItem(props, state, ref) {
231
155
  let { item } = props;
232
156
  let key = item.key;
233
157
  let manager = state.selectionManager;
234
- let buttonId = (0, import_utils2.useId)();
235
- let regionId = (0, import_utils2.useId)();
158
+ let buttonId = (0, import_utils.useId)();
159
+ let regionId = (0, import_utils.useId)();
236
160
  let isDisabled = state.disabledKeys.has(item.key);
237
161
  let { itemProps } = (0, import_selection.useSelectableItem)({
238
162
  selectionManager: manager,
@@ -283,8 +207,8 @@ function useAccordionItem(props, state, ref) {
283
207
  }
284
208
  }
285
209
  };
286
- let { buttonProps } = (0, import_button2.useButton)(
287
- (0, import_utils2.mergeProps)(itemProps, {
210
+ let { buttonProps } = (0, import_button.useButton)(
211
+ (0, import_utils.mergeProps)(itemProps, {
288
212
  id: buttonId,
289
213
  elementType: "button",
290
214
  isDisabled,
@@ -309,7 +233,7 @@ function useAccordionItem(props, state, ref) {
309
233
  }
310
234
 
311
235
  // src/Accordion/AccordionItem.tsx
312
- var import_jsx_runtime4 = require("react/jsx-runtime");
236
+ var import_jsx_runtime3 = require("react/jsx-runtime");
313
237
  var AccordionItem = ({
314
238
  item,
315
239
  state,
@@ -318,12 +242,12 @@ var AccordionItem = ({
318
242
  size,
319
243
  ...props
320
244
  }) => {
321
- const ref = (0, import_react4.useRef)(null);
245
+ const ref = (0, import_react3.useRef)(null);
322
246
  const defaultExpanded = state.expandedKeys.has(
323
247
  item.key.toString().replace(".$", "")
324
248
  );
325
249
  const expanded = state.selectionManager.isSelected(item.key);
326
- (0, import_react4.useEffect)(() => {
250
+ (0, import_react3.useEffect)(() => {
327
251
  if (defaultExpanded) {
328
252
  if (state.selectionManager.selectionMode === "multiple") {
329
253
  state.expandedKeys.forEach((key) => {
@@ -342,30 +266,33 @@ var AccordionItem = ({
342
266
  state,
343
267
  ref
344
268
  );
345
- const { isFocusVisible, focusProps } = (0, import_focus2.useFocusRing)();
346
- const stateProps = (0, import_system4.useStateProps)({
269
+ const { isFocusVisible, focusProps } = (0, import_focus.useFocusRing)();
270
+ const stateProps = (0, import_system3.useStateProps)({
347
271
  focus: isFocusVisible,
348
272
  expanded: defaultExpanded || expanded
349
273
  });
350
- const classNames2 = (0, import_system4.useClassNames)({ component: "Accordion", variant, size });
351
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex flex-col", ...props, children: [
352
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_focus2.FocusRing, { within: true, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
353
- Button,
274
+ const classNames2 = (0, import_system3.useClassNames)({ component: "Accordion", variant, size });
275
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "flex flex-col", ...props, children: [
276
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_focus.FocusRing, { within: true, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
277
+ "button",
354
278
  {
355
- className: classNames2.button,
356
- ...(0, import_utils5.mergeProps)(buttonProps, stateProps, props),
279
+ className: (0, import_system3.cn)(
280
+ "inline-flex items-center justify-center gap-[0.5ch]",
281
+ classNames2.button
282
+ ),
283
+ ...(0, import_utils4.mergeProps)(buttonProps, stateProps, props),
357
284
  ref,
358
285
  "aria-label": item.textValue,
359
286
  children: [
360
287
  title,
361
- !expanded ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ChevronUp, { className: "h3 w-6" }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ChevronDown, { className: "h3 w-6" })
288
+ expanded ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ChevronUp, { className: "h3 w-6" }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ChevronDown, { className: "h3 w-6" })
362
289
  ]
363
290
  }
364
291
  ) }),
365
- expanded || defaultExpanded ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
292
+ expanded || defaultExpanded ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
366
293
  "div",
367
294
  {
368
- ...(0, import_utils5.mergeProps)(regionProps, focusProps, stateProps),
295
+ ...(0, import_utils4.mergeProps)(regionProps, focusProps, stateProps),
369
296
  className: classNames2.item,
370
297
  children: item.props.children
371
298
  }
@@ -374,22 +301,22 @@ var AccordionItem = ({
374
301
  };
375
302
 
376
303
  // src/Accordion/Accordion.tsx
377
- var import_jsx_runtime5 = require("react/jsx-runtime");
304
+ var import_jsx_runtime4 = require("react/jsx-runtime");
378
305
  var Accordion = ({ children, ...props }) => {
379
306
  const ownProps = {
380
307
  ...props,
381
308
  // we have to do this because JSX childs are not supported
382
- children: import_react5.Children.toArray(children).map((child) => {
383
- if (!(0, import_react5.isValidElement)(child)) {
309
+ children: import_react4.Children.toArray(children).map((child) => {
310
+ if (!(0, import_react4.isValidElement)(child)) {
384
311
  return child;
385
312
  }
386
- return (0, import_react5.cloneElement)(child, {
313
+ return (0, import_react4.cloneElement)(child, {
387
314
  hasChildItems: false,
388
315
  ...child.props
389
316
  });
390
317
  })
391
318
  };
392
- const ref = (0, import_react5.useRef)(null);
319
+ const ref = (0, import_react4.useRef)(null);
393
320
  const state = (0, import_tree.useTreeState)({
394
321
  selectionMode: "single",
395
322
  ...ownProps
@@ -399,7 +326,8 @@ var Accordion = ({ children, ...props }) => {
399
326
  state,
400
327
  ref
401
328
  );
402
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { ...accordionProps, ref, children: [...state.collection].map((item) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
329
+ delete accordionProps.onKeyDownCapture;
330
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { ...accordionProps, ref, children: [...state.collection].map((item) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
403
331
  AccordionItem,
404
332
  {
405
333
  title: item.props.title,
@@ -414,9 +342,9 @@ var Accordion = ({ children, ...props }) => {
414
342
  Accordion.Item = import_collections.Item;
415
343
 
416
344
  // src/Aside/Aside.tsx
417
- var import_react6 = require("react");
418
- var import_system5 = require("@marigold/system");
419
- var import_jsx_runtime6 = require("react/jsx-runtime");
345
+ var import_react5 = require("react");
346
+ var import_system4 = require("@marigold/system");
347
+ var import_jsx_runtime5 = require("react/jsx-runtime");
420
348
  var classNames = {
421
349
  aside: "grow basis-[--sideWidth]",
422
350
  content: "basis-0 grow-[999] [min-inline-size:--wrap]"
@@ -429,21 +357,21 @@ var Aside = ({
429
357
  stretch = true,
430
358
  wrap = "50%"
431
359
  }) => {
432
- const [left, right] = import_react6.Children.toArray(children);
360
+ const [left, right] = import_react5.Children.toArray(children);
433
361
  const vars = {
434
- aside: (0, import_system5.createVar)({ sideWidth }),
435
- content: (0, import_system5.createVar)({ wrap })
362
+ aside: (0, import_system4.createVar)({ sideWidth }),
363
+ content: (0, import_system4.createVar)({ wrap })
436
364
  };
437
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
365
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
438
366
  "div",
439
367
  {
440
- className: (0, import_system5.cn)(
368
+ className: (0, import_system4.cn)(
441
369
  "flex flex-wrap",
442
- import_system5.gapSpace[space],
370
+ import_system4.gapSpace[space],
443
371
  !stretch && "items-start"
444
372
  ),
445
373
  children: [
446
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
374
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
447
375
  "div",
448
376
  {
449
377
  className: classNames[side === "left" ? "aside" : "content"],
@@ -451,7 +379,7 @@ var Aside = ({
451
379
  children: left
452
380
  }
453
381
  ),
454
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
382
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
455
383
  "div",
456
384
  {
457
385
  className: classNames[side === "right" ? "aside" : "content"],
@@ -465,40 +393,40 @@ var Aside = ({
465
393
  };
466
394
 
467
395
  // src/Aspect/Aspect.tsx
468
- var import_system6 = require("@marigold/system");
469
- var import_jsx_runtime7 = require("react/jsx-runtime");
396
+ var import_system5 = require("@marigold/system");
397
+ var import_jsx_runtime6 = require("react/jsx-runtime");
470
398
  var Aspect = ({
471
399
  ratio = "square",
472
400
  maxWidth,
473
401
  children
474
402
  }) => {
475
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
403
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
476
404
  "div",
477
405
  {
478
- className: (0, import_system6.cn)(
406
+ className: (0, import_system5.cn)(
479
407
  "overflow-hidden",
480
- import_system6.aspect[ratio],
408
+ import_system5.aspect[ratio],
481
409
  "max-w-[var(--maxWidth)]"
482
410
  ),
483
- style: (0, import_system6.createVar)({ maxWidth }),
411
+ style: (0, import_system5.createVar)({ maxWidth }),
484
412
  children
485
413
  }
486
414
  );
487
415
  };
488
416
 
489
417
  // src/Autocomplete/Autocomplete.tsx
490
- var import_react17 = require("react");
418
+ var import_react16 = require("react");
491
419
  var import_autocomplete = require("@react-aria/autocomplete");
492
420
  var import_i18n = require("@react-aria/i18n");
493
421
  var import_collections2 = require("@react-stately/collections");
494
422
  var import_combobox = require("@react-stately/combobox");
495
423
 
496
424
  // src/FieldBase/FieldBase.tsx
497
- var import_system9 = require("@marigold/system");
425
+ var import_system8 = require("@marigold/system");
498
426
 
499
427
  // src/HelpText/HelpText.tsx
500
- var import_system7 = require("@marigold/system");
501
- var import_jsx_runtime8 = require("react/jsx-runtime");
428
+ var import_system6 = require("@marigold/system");
429
+ var import_jsx_runtime7 = require("react/jsx-runtime");
502
430
  var HelpText = ({
503
431
  variant,
504
432
  size,
@@ -511,61 +439,66 @@ var HelpText = ({
511
439
  ...props
512
440
  }) => {
513
441
  const hasErrorMessage = errorMessage && error;
514
- const classNames2 = (0, import_system7.useClassNames)({
442
+ const classNames2 = (0, import_system6.useClassNames)({
515
443
  component: "HelpText",
516
444
  variant,
517
445
  size
518
446
  });
519
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
447
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
520
448
  "div",
521
449
  {
522
450
  ...props,
523
451
  ...hasErrorMessage ? errorMessageProps : descriptionProps,
524
- className: (0, import_system7.cn)("flex items-center gap-1", classNames2.container),
525
- children: hasErrorMessage ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
526
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
527
- import_system7.SVG,
452
+ className: (0, import_system6.cn)("flex items-center gap-1", classNames2.container),
453
+ children: hasErrorMessage ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
454
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
455
+ import_system6.SVG,
528
456
  {
529
- className: (0, import_system7.cn)("h-4 w-4", classNames2.icon),
457
+ className: (0, import_system6.cn)("h-4 w-4", classNames2.icon),
530
458
  viewBox: "0 0 24 24",
531
459
  role: "presentation",
532
- children: /* @__PURE__ */ (0, import_jsx_runtime8.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" })
460
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.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" })
533
461
  }
534
462
  ),
535
463
  errorMessage
536
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_jsx_runtime8.Fragment, { children: description })
464
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, { children: description })
537
465
  }
538
466
  );
539
467
  };
540
468
 
541
469
  // src/Label/Label.tsx
542
- var import_system8 = require("@marigold/system");
470
+ var import_react_aria_components = require("react-aria-components");
471
+ var import_system7 = require("@marigold/system");
472
+
473
+ // src/FieldBase/FieldGroup.tsx
474
+ var import_react6 = require("react");
475
+ var import_jsx_runtime8 = require("react/jsx-runtime");
476
+ var FieldGroupContext = (0, import_react6.createContext)({});
477
+ var useFieldGroupContext = () => (0, import_react6.useContext)(FieldGroupContext);
478
+ var FieldGroup = ({ labelWidth, children }) => {
479
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(FieldGroupContext.Provider, { value: { labelWidth }, children });
480
+ };
481
+
482
+ // src/Label/Label.tsx
543
483
  var import_jsx_runtime9 = require("react/jsx-runtime");
544
- var Label = ({
545
- as = "label",
546
- children,
547
- variant,
548
- size,
549
- labelWidth,
550
- ...props
551
- }) => {
552
- const Component = as;
553
- const classNames2 = (0, import_system8.useClassNames)({ component: "Label", size, variant });
484
+ var _Label = ({ size, variant, children, ...props }) => {
485
+ const classNames2 = (0, import_system7.useClassNames)({ component: "Label", size, variant });
486
+ const { labelWidth } = useFieldGroupContext();
554
487
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
555
- Component,
488
+ import_react_aria_components.Label,
556
489
  {
557
490
  ...props,
558
- className: (0, import_system8.cn)(classNames2.container, "flex w-[var(--labelWidth)]"),
559
- style: (0, import_system8.createVar)({ labelWidth }),
491
+ className: (0, import_system7.cn)(classNames2.container, "flex w-[var(--labelWidth)]"),
492
+ style: (0, import_system7.createVar)({ labelWidth }),
560
493
  children: [
561
494
  children,
562
495
  /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
563
- import_system8.SVG,
496
+ import_system7.SVG,
564
497
  {
565
498
  viewBox: "0 0 24 24",
566
499
  role: "presentation",
567
500
  size: 16,
568
- className: (0, import_system8.cn)("hidden", classNames2.indicator),
501
+ className: (0, import_system7.cn)("hidden", classNames2.indicator),
569
502
  children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", { d: "M10.8 3.84003H13.2V9.85259L18.1543 7.01815L19.3461 9.10132L14.3584 11.9549L19.3371 14.7999L18.1463 16.8836L13.2 14.0572V20.16H10.8V13.9907L5.76116 16.8735L4.56935 14.7903L9.5232 11.9561L4.56 9.12003L5.75073 7.03624L10.8 9.92154V3.84003Z" })
570
503
  }
571
504
  )
@@ -574,17 +507,8 @@ var Label = ({
574
507
  );
575
508
  };
576
509
 
577
- // src/FieldBase/FieldGroup.tsx
578
- var import_react7 = require("react");
579
- var import_jsx_runtime10 = require("react/jsx-runtime");
580
- var FieldGroupContext = (0, import_react7.createContext)({});
581
- var useFieldGroupContext = () => (0, import_react7.useContext)(FieldGroupContext);
582
- var FieldGroup = ({ labelWidth, children }) => {
583
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(FieldGroupContext.Provider, { value: { labelWidth }, children });
584
- };
585
-
586
510
  // src/FieldBase/FieldBase.tsx
587
- var import_jsx_runtime11 = require("react/jsx-runtime");
511
+ var import_jsx_runtime10 = require("react/jsx-runtime");
588
512
  var FieldBase = ({
589
513
  children,
590
514
  variant,
@@ -602,31 +526,21 @@ var FieldBase = ({
602
526
  ...props
603
527
  }) => {
604
528
  const hasHelpText = !!description || errorMessage && error;
605
- const { labelWidth } = useFieldGroupContext();
606
- const classNames2 = (0, import_system9.useClassNames)({
529
+ const classNames2 = (0, import_system8.useClassNames)({
607
530
  component: "Field",
608
531
  variant,
609
532
  size
610
533
  });
611
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
534
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
612
535
  "div",
613
536
  {
614
537
  ...props,
615
538
  ...stateProps,
616
- className: (0, import_system9.cn)("group/field", import_system9.width[width], classNames2),
539
+ className: (0, import_system8.cn)("group/field", import_system8.width[width], classNames2),
617
540
  children: [
618
- label && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
619
- Label,
620
- {
621
- variant,
622
- size,
623
- labelWidth,
624
- ...labelProps,
625
- children: label
626
- }
627
- ),
541
+ label && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(_Label, { variant, size, ...labelProps, children: label }),
628
542
  children,
629
- hasHelpText && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
543
+ hasHelpText && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
630
544
  HelpText,
631
545
  {
632
546
  variant,
@@ -645,33 +559,33 @@ var FieldBase = ({
645
559
  };
646
560
 
647
561
  // src/Input/Input.tsx
648
- var import_react8 = require("react");
649
- var import_system10 = require("@marigold/system");
650
- var import_jsx_runtime12 = require("react/jsx-runtime");
651
- var Input = (0, import_react8.forwardRef)(
562
+ var import_react7 = require("react");
563
+ var import_system9 = require("@marigold/system");
564
+ var import_jsx_runtime11 = require("react/jsx-runtime");
565
+ var Input = (0, import_react7.forwardRef)(
652
566
  ({ type = "text", icon, action, variant, size, ...props }, ref) => {
653
- const classNames2 = (0, import_system10.useClassNames)({
567
+ const classNames2 = (0, import_system9.useClassNames)({
654
568
  component: "Input",
655
569
  variant,
656
570
  size
657
571
  });
658
- const inputIcon = icon ? (0, import_react8.cloneElement)(icon, {
659
- className: (0, import_system10.cn)(
572
+ const inputIcon = icon ? (0, import_react7.cloneElement)(icon, {
573
+ className: (0, import_system9.cn)(
660
574
  "pointer-events-none absolute",
661
575
  classNames2.icon,
662
576
  icon.props.className
663
577
  ),
664
578
  ...icon.props
665
579
  }) : null;
666
- const inputAction = action && !props.readOnly ? (0, import_react8.cloneElement)(action, {
667
- className: (0, import_system10.cn)(
580
+ const inputAction = action && !props.readOnly ? (0, import_react7.cloneElement)(action, {
581
+ className: (0, import_system9.cn)(
668
582
  "absolute",
669
583
  classNames2.action,
670
584
  action.props.className
671
585
  ),
672
586
  ...action.props
673
587
  }) : null;
674
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
588
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
675
589
  "div",
676
590
  {
677
591
  className: "group/input relative flex items-center",
@@ -679,12 +593,12 @@ var Input = (0, import_react8.forwardRef)(
679
593
  "data-action": action && "",
680
594
  children: [
681
595
  inputIcon,
682
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
596
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
683
597
  "input",
684
598
  {
685
599
  ...props,
686
- className: (0, import_system10.cn)(
687
- "flex-1",
600
+ className: (0, import_system9.cn)(
601
+ "w-full flex-1",
688
602
  "disabled:cursor-not-allowed",
689
603
  "[&[type=file]]:border-none [&[type=file]]:p-0",
690
604
  "[&[type=color]]:ml-0 [&[type=color]]:border-none [&[type=color]]:bg-transparent [&[type=color]]:p-0",
@@ -702,24 +616,24 @@ var Input = (0, import_react8.forwardRef)(
702
616
  );
703
617
 
704
618
  // src/ListBox/ListBox.tsx
705
- var import_react11 = require("react");
619
+ var import_react10 = require("react");
706
620
  var import_listbox3 = require("@react-aria/listbox");
707
- var import_utils7 = require("@react-aria/utils");
708
- var import_system12 = require("@marigold/system");
621
+ var import_utils6 = require("@react-aria/utils");
622
+ var import_system11 = require("@marigold/system");
709
623
 
710
624
  // src/ListBox/Context.ts
711
- var import_react9 = require("react");
712
- var ListBoxContext = (0, import_react9.createContext)({});
713
- var useListBoxContext = () => (0, import_react9.useContext)(ListBoxContext);
625
+ var import_react8 = require("react");
626
+ var ListBoxContext = (0, import_react8.createContext)({});
627
+ var useListBoxContext = () => (0, import_react8.useContext)(ListBoxContext);
714
628
 
715
629
  // src/ListBox/ListBoxOption.tsx
716
- var import_react10 = require("react");
630
+ var import_react9 = require("react");
717
631
  var import_listbox = require("@react-aria/listbox");
718
- var import_utils6 = require("@react-aria/utils");
719
- var import_system11 = require("@marigold/system");
720
- var import_jsx_runtime13 = require("react/jsx-runtime");
632
+ var import_utils5 = require("@react-aria/utils");
633
+ var import_system10 = require("@marigold/system");
634
+ var import_jsx_runtime12 = require("react/jsx-runtime");
721
635
  var ListBoxOption = ({ item, state }) => {
722
- const ref = (0, import_react10.useRef)(null);
636
+ const ref = (0, import_react9.useRef)(null);
723
637
  const { optionProps, isSelected, isDisabled, isFocused } = (0, import_listbox.useOption)(
724
638
  {
725
639
  key: item.key
@@ -729,17 +643,17 @@ var ListBoxOption = ({ item, state }) => {
729
643
  );
730
644
  const { onPointerUp, ...props } = optionProps;
731
645
  const { classNames: classNames2 } = useListBoxContext();
732
- const stateProps = (0, import_system11.useStateProps)({
646
+ const stateProps = (0, import_system10.useStateProps)({
733
647
  selected: isSelected,
734
648
  disabled: isDisabled,
735
649
  focusVisible: isFocused
736
650
  });
737
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
651
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
738
652
  "li",
739
653
  {
740
654
  ref,
741
655
  className: classNames2.option,
742
- ...(0, import_utils6.mergeProps)(props, { onPointerDown: onPointerUp }, { ...stateProps }),
656
+ ...(0, import_utils5.mergeProps)(props, { onPointerDown: onPointerUp }, { ...stateProps }),
743
657
  children: item.props.children
744
658
  }
745
659
  );
@@ -747,37 +661,37 @@ var ListBoxOption = ({ item, state }) => {
747
661
 
748
662
  // src/ListBox/ListBoxSection.tsx
749
663
  var import_listbox2 = require("@react-aria/listbox");
750
- var import_jsx_runtime14 = require("react/jsx-runtime");
664
+ var import_jsx_runtime13 = require("react/jsx-runtime");
751
665
  var ListBoxSection = ({ section, state }) => {
752
666
  const { classNames: classNames2 } = useListBoxContext();
753
667
  const { itemProps, headingProps, groupProps } = (0, import_listbox2.useListBoxSection)({
754
668
  heading: section.rendered,
755
669
  "aria-label": section["aria-label"]
756
670
  });
757
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("li", { className: classNames2.section, ...itemProps, children: [
758
- section.rendered && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: classNames2.sectionTitle, ...headingProps, children: section.rendered }),
759
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("ul", { className: classNames2.list, ...groupProps, children: [...section.props.children].map((node) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ListBoxOption, { item: node, state }, node.key)) })
671
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("li", { className: classNames2.section, ...itemProps, children: [
672
+ section.rendered && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: classNames2.sectionTitle, ...headingProps, children: section.rendered }),
673
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("ul", { className: classNames2.list, ...groupProps, children: [...section.props.children].map((node) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ListBoxOption, { item: node, state }, node.key)) })
760
674
  ] });
761
675
  };
762
676
 
763
677
  // src/ListBox/ListBox.tsx
764
- var import_jsx_runtime15 = require("react/jsx-runtime");
765
- var ListBox = (0, import_react11.forwardRef)(
678
+ var import_jsx_runtime14 = require("react/jsx-runtime");
679
+ var ListBox = (0, import_react10.forwardRef)(
766
680
  ({ state, variant, size, ...props }, ref) => {
767
- const innerRef = (0, import_utils7.useObjectRef)(ref);
681
+ const innerRef = (0, import_utils6.useObjectRef)(ref);
768
682
  const { listBoxProps } = (0, import_listbox3.useListBox)(props, state, innerRef);
769
- const classNames2 = (0, import_system12.useClassNames)({ component: "ListBox", variant, size });
770
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ListBoxContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: classNames2.container, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
683
+ const classNames2 = (0, import_system11.useClassNames)({ component: "ListBox", variant, size });
684
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ListBoxContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: classNames2.container, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
771
685
  "ul",
772
686
  {
773
- className: (0, import_system12.cn)(
687
+ className: (0, import_system11.cn)(
774
688
  "overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh]",
775
689
  classNames2.list
776
690
  ),
777
691
  ref: innerRef,
778
692
  ...listBoxProps,
779
693
  children: [...state.collection].map(
780
- (item) => item.type === "section" ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ListBoxSection, { section: item, state }, item.key) : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ListBoxOption, { item, state }, item.key)
694
+ (item) => item.type === "section" ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ListBoxSection, { section: item, state }, item.key) : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ListBoxOption, { item, state }, item.key)
781
695
  )
782
696
  }
783
697
  ) }) });
@@ -785,24 +699,24 @@ var ListBox = (0, import_react11.forwardRef)(
785
699
  );
786
700
 
787
701
  // src/Overlay/Modal.tsx
788
- var import_react12 = require("react");
789
- var import_focus3 = require("@react-aria/focus");
702
+ var import_react11 = require("react");
703
+ var import_focus2 = require("@react-aria/focus");
790
704
  var import_overlays = require("@react-aria/overlays");
791
- var import_utils8 = require("@react-aria/utils");
705
+ var import_utils7 = require("@react-aria/utils");
792
706
 
793
707
  // src/Overlay/Underlay.tsx
794
- var import_system13 = require("@marigold/system");
795
- var import_jsx_runtime16 = require("react/jsx-runtime");
708
+ var import_system12 = require("@marigold/system");
709
+ var import_jsx_runtime15 = require("react/jsx-runtime");
796
710
  var Underlay = ({ size, variant, ...props }) => {
797
- const classNames2 = (0, import_system13.useClassNames)({ component: "Underlay", size, variant });
798
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: (0, import_system13.cn)("fixed inset-0 z-40", classNames2), ...props });
711
+ const classNames2 = (0, import_system12.useClassNames)({ component: "Underlay", size, variant });
712
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: (0, import_system12.cn)("fixed inset-0 z-40", classNames2), ...props });
799
713
  };
800
714
 
801
715
  // src/Overlay/Modal.tsx
802
- var import_jsx_runtime17 = require("react/jsx-runtime");
803
- var Modal = (0, import_react12.forwardRef)(
716
+ var import_jsx_runtime16 = require("react/jsx-runtime");
717
+ var Modal = (0, import_react11.forwardRef)(
804
718
  ({ children, open, dismissable, keyboardDismissable, onClose, ...props }, ref) => {
805
- const modalRef = (0, import_utils8.useObjectRef)(ref);
719
+ const modalRef = (0, import_utils7.useObjectRef)(ref);
806
720
  const { overlayProps, underlayProps } = (0, import_overlays.useOverlay)(
807
721
  {
808
722
  isOpen: open,
@@ -814,15 +728,15 @@ var Modal = (0, import_react12.forwardRef)(
814
728
  );
815
729
  (0, import_overlays.usePreventScroll)();
816
730
  const { modalProps } = (0, import_overlays.useModal)({});
817
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_focus3.FocusScope, { contain: true, restoreFocus: true, autoFocus: true, children: [
818
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Underlay, { ...underlayProps, variant: "modal" }),
819
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
731
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_focus2.FocusScope, { contain: true, restoreFocus: true, autoFocus: true, children: [
732
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Underlay, { ...underlayProps, variant: "modal" }),
733
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
820
734
  "div",
821
735
  {
822
736
  className: "pointer-none fixed inset-0 z-50 flex items-center justify-center",
823
737
  ref: modalRef,
824
- ...(0, import_utils8.mergeProps)(props, overlayProps, modalProps),
825
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { style: { pointerEvents: "auto" }, children })
738
+ ...(0, import_utils7.mergeProps)(props, overlayProps, modalProps),
739
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { style: { pointerEvents: "auto" }, children })
826
740
  }
827
741
  )
828
742
  ] });
@@ -830,18 +744,18 @@ var Modal = (0, import_react12.forwardRef)(
830
744
  );
831
745
 
832
746
  // src/Overlay/Overlay.tsx
833
- var import_react13 = require("react");
747
+ var import_react12 = require("react");
834
748
  var import_overlays2 = require("@react-aria/overlays");
835
- var import_system14 = require("@marigold/system");
836
- var import_jsx_runtime18 = require("react/jsx-runtime");
749
+ var import_system13 = require("@marigold/system");
750
+ var import_jsx_runtime17 = require("react/jsx-runtime");
837
751
  var Overlay = ({ children, container, open }) => {
838
- const nodeRef = (0, import_react13.useRef)(null);
839
- const theme = (0, import_system14.useTheme)();
752
+ const nodeRef = (0, import_react12.useRef)(null);
753
+ const theme = (0, import_system13.useTheme)();
840
754
  let mountOverlay = open;
841
755
  if (!mountOverlay) {
842
756
  return null;
843
757
  }
844
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_overlays2.Overlay, { portalContainer: container, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
758
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_overlays2.Overlay, { portalContainer: container, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
845
759
  "div",
846
760
  {
847
761
  ref: nodeRef,
@@ -854,20 +768,20 @@ var Overlay = ({ children, container, open }) => {
854
768
  };
855
769
 
856
770
  // src/Overlay/Popover.tsx
857
- var import_react14 = require("react");
858
- var import_focus4 = require("@react-aria/focus");
771
+ var import_react13 = require("react");
772
+ var import_focus3 = require("@react-aria/focus");
859
773
  var import_overlays3 = require("@react-aria/overlays");
860
- var import_system15 = require("@marigold/system");
861
- var import_jsx_runtime19 = require("react/jsx-runtime");
862
- var Popover = (0, import_react14.forwardRef)(
774
+ var import_system14 = require("@marigold/system");
775
+ var import_jsx_runtime18 = require("react/jsx-runtime");
776
+ var Popover = (0, import_react13.forwardRef)(
863
777
  (props, ref) => {
864
- const fallbackRef = (0, import_react14.useRef)(null);
778
+ const fallbackRef = (0, import_react13.useRef)(null);
865
779
  const popoverRef = ref || fallbackRef;
866
780
  let { children, state, ...otherProps } = props;
867
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Overlay, { open: state.isOpen, ...otherProps, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(PopoverWrapper, { ref: popoverRef, ...props, children }) });
781
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Overlay, { open: state.isOpen, ...otherProps, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(PopoverWrapper, { ref: popoverRef, ...props, children }) });
868
782
  }
869
783
  );
870
- var PopoverWrapper = (0, import_react14.forwardRef)(
784
+ var PopoverWrapper = (0, import_react13.forwardRef)(
871
785
  ({
872
786
  children,
873
787
  isNonModal,
@@ -885,13 +799,13 @@ var PopoverWrapper = (0, import_react14.forwardRef)(
885
799
  },
886
800
  state
887
801
  );
888
- const classNames2 = (0, import_system15.useClassNames)({
802
+ const classNames2 = (0, import_system14.useClassNames)({
889
803
  component: "Popover",
890
804
  variant: placement
891
805
  });
892
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_focus4.FocusScope, { restoreFocus: true, children: [
893
- !isNonModal && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Underlay, { ...underlayProps }),
894
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
806
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_focus3.FocusScope, { restoreFocus: true, children: [
807
+ !isNonModal && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Underlay, { ...underlayProps }),
808
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
895
809
  "div",
896
810
  {
897
811
  ...popoverProps,
@@ -903,9 +817,9 @@ var PopoverWrapper = (0, import_react14.forwardRef)(
903
817
  ref,
904
818
  role: "presentation",
905
819
  children: [
906
- !isNonModal && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_overlays3.DismissButton, { onDismiss: state.close }),
820
+ !isNonModal && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_overlays3.DismissButton, { onDismiss: state.close }),
907
821
  children,
908
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_overlays3.DismissButton, { onDismiss: state.close })
822
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_overlays3.DismissButton, { onDismiss: state.close })
909
823
  ]
910
824
  }
911
825
  )
@@ -914,18 +828,18 @@ var PopoverWrapper = (0, import_react14.forwardRef)(
914
828
  );
915
829
 
916
830
  // src/Overlay/Tray.tsx
917
- var import_react15 = require("react");
918
- var import_focus5 = require("@react-aria/focus");
831
+ var import_react14 = require("react");
832
+ var import_focus4 = require("@react-aria/focus");
919
833
  var import_overlays4 = require("@react-aria/overlays");
920
- var import_utils9 = require("@react-aria/utils");
921
- var import_jsx_runtime20 = require("react/jsx-runtime");
922
- var Tray = (0, import_react15.forwardRef)(
834
+ var import_utils8 = require("@react-aria/utils");
835
+ var import_jsx_runtime19 = require("react/jsx-runtime");
836
+ var Tray = (0, import_react14.forwardRef)(
923
837
  ({ state, children, ...props }, ref) => {
924
- const trayRef = (0, import_utils9.useObjectRef)(ref);
925
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Overlay, { open: state.isOpen, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(TrayWrapper, { state, ...props, ref: trayRef, children }) });
838
+ const trayRef = (0, import_utils8.useObjectRef)(ref);
839
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Overlay, { open: state.isOpen, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(TrayWrapper, { state, ...props, ref: trayRef, children }) });
926
840
  }
927
841
  );
928
- var TrayWrapper = (0, import_react15.forwardRef)(
842
+ var TrayWrapper = (0, import_react14.forwardRef)(
929
843
  ({ children, state, ...props }, ref) => {
930
844
  let { modalProps, underlayProps } = (0, import_overlays4.useModalOverlay)(
931
845
  {
@@ -935,7 +849,7 @@ var TrayWrapper = (0, import_react15.forwardRef)(
935
849
  state,
936
850
  ref
937
851
  );
938
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_focus5.FocusScope, { contain: true, restoreFocus: true, autoFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Underlay, { ...underlayProps, variant: "modal", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
852
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_focus4.FocusScope, { contain: true, restoreFocus: true, autoFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Underlay, { ...underlayProps, variant: "modal", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
939
853
  "div",
940
854
  {
941
855
  ...modalProps,
@@ -943,9 +857,9 @@ var TrayWrapper = (0, import_react15.forwardRef)(
943
857
  className: "absolute bottom-0 w-full",
944
858
  "data-testid": "tray",
945
859
  children: [
946
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_overlays4.DismissButton, { onDismiss: state.close }),
860
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_overlays4.DismissButton, { onDismiss: state.close }),
947
861
  children,
948
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_overlays4.DismissButton, { onDismiss: state.close })
862
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_overlays4.DismissButton, { onDismiss: state.close })
949
863
  ]
950
864
  }
951
865
  ) }) });
@@ -953,13 +867,13 @@ var TrayWrapper = (0, import_react15.forwardRef)(
953
867
  );
954
868
 
955
869
  // src/Autocomplete/ClearButton.tsx
956
- var import_react16 = require("react");
957
- var import_button3 = require("@react-aria/button");
958
- var import_focus6 = require("@react-aria/focus");
959
- var import_interactions2 = require("@react-aria/interactions");
960
- var import_utils10 = require("@react-aria/utils");
961
- var import_system16 = require("@marigold/system");
962
- var import_jsx_runtime21 = require("react/jsx-runtime");
870
+ var import_react15 = require("react");
871
+ var import_button2 = require("@react-aria/button");
872
+ var import_focus5 = require("@react-aria/focus");
873
+ var import_interactions = require("@react-aria/interactions");
874
+ var import_utils9 = require("@react-aria/utils");
875
+ var import_system15 = require("@marigold/system");
876
+ var import_jsx_runtime20 = require("react/jsx-runtime");
963
877
  var ClearButton = ({
964
878
  preventFocus,
965
879
  disabled,
@@ -974,12 +888,12 @@ var ClearButton = ({
974
888
  className,
975
889
  ...props
976
890
  }) => {
977
- const buttonRef = (0, import_react16.useRef)(null);
978
- const { hoverProps, isHovered } = (0, import_interactions2.useHover)({ isDisabled: disabled });
979
- const { isFocusVisible, focusProps } = (0, import_focus6.useFocusRing)({
891
+ const buttonRef = (0, import_react15.useRef)(null);
892
+ const { hoverProps, isHovered } = (0, import_interactions.useHover)({ isDisabled: disabled });
893
+ const { isFocusVisible, focusProps } = (0, import_focus5.useFocusRing)({
980
894
  autoFocus: props.autoFocus
981
895
  });
982
- const { buttonProps, isPressed } = (0, import_button3.useButton)(
896
+ const { buttonProps, isPressed } = (0, import_button2.useButton)(
983
897
  {
984
898
  ...props,
985
899
  onClick,
@@ -997,22 +911,22 @@ var ClearButton = ({
997
911
  if (preventFocus) {
998
912
  delete buttonProps.tabIndex;
999
913
  }
1000
- const stateProps = (0, import_system16.useStateProps)({
914
+ const stateProps = (0, import_system15.useStateProps)({
1001
915
  active: isPressed,
1002
916
  focusVisible: isFocusVisible,
1003
917
  hover: isHovered
1004
918
  });
1005
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
919
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1006
920
  "button",
1007
921
  {
1008
- ...(0, import_utils10.mergeProps)(buttonProps, focusProps, hoverProps, props),
922
+ ...(0, import_utils9.mergeProps)(buttonProps, focusProps, hoverProps, props),
1009
923
  ...stateProps,
1010
924
  ref: buttonRef,
1011
- className: (0, import_system16.cn)(
925
+ className: (0, import_system15.cn)(
1012
926
  "cursor-pointer appearance-none border-none p-0 pr-1",
1013
927
  className
1014
928
  ),
1015
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
929
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1016
930
  "svg",
1017
931
  {
1018
932
  xmlns: "http://www.w3.org/2000/svg",
@@ -1020,7 +934,7 @@ var ClearButton = ({
1020
934
  fill: "currentColor",
1021
935
  width: 20,
1022
936
  height: 20,
1023
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z" })
937
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("path", { d: "M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z" })
1024
938
  }
1025
939
  )
1026
940
  }
@@ -1028,8 +942,8 @@ var ClearButton = ({
1028
942
  };
1029
943
 
1030
944
  // src/Autocomplete/Autocomplete.tsx
1031
- var import_jsx_runtime22 = require("react/jsx-runtime");
1032
- var SearchIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
945
+ var import_jsx_runtime21 = require("react/jsx-runtime");
946
+ var SearchIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1033
947
  "svg",
1034
948
  {
1035
949
  xmlns: "http://www.w3.org/2000/svg",
@@ -1038,7 +952,7 @@ var SearchIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1038
952
  width: 24,
1039
953
  height: 24,
1040
954
  ...props,
1041
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M16.1865 14.5142H15.3057L14.9936 14.2131C16.0862 12.9421 16.744 11.292 16.744 9.497C16.744 5.49443 13.4996 2.25 9.497 2.25C5.49443 2.25 2.25 5.49443 2.25 9.497C2.25 13.4996 5.49443 16.744 9.497 16.744C11.292 16.744 12.9421 16.0862 14.2131 14.9936L14.5142 15.3057V16.1865L20.0888 21.75L21.75 20.0888L16.1865 14.5142ZM9.49701 14.5142C6.72085 14.5142 4.47986 12.2732 4.47986 9.49701C4.47986 6.72085 6.72085 4.47986 9.49701 4.47986C12.2732 4.47986 14.5142 6.72085 14.5142 9.49701C14.5142 12.2732 12.2732 14.5142 9.49701 14.5142Z" })
955
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M16.1865 14.5142H15.3057L14.9936 14.2131C16.0862 12.9421 16.744 11.292 16.744 9.497C16.744 5.49443 13.4996 2.25 9.497 2.25C5.49443 2.25 2.25 5.49443 2.25 9.497C2.25 13.4996 5.49443 16.744 9.497 16.744C11.292 16.744 12.9421 16.0862 14.2131 14.9936L14.5142 15.3057V16.1865L20.0888 21.75L21.75 20.0888L16.1865 14.5142ZM9.49701 14.5142C6.72085 14.5142 4.47986 12.2732 4.47986 9.49701C4.47986 6.72085 6.72085 4.47986 9.49701 4.47986C12.2732 4.47986 14.5142 6.72085 14.5142 9.49701C14.5142 12.2732 12.2732 14.5142 9.49701 14.5142Z" })
1042
956
  }
1043
957
  );
1044
958
  var Autocomplete = ({
@@ -1076,9 +990,9 @@ var Autocomplete = ({
1076
990
  selectedKey: void 0,
1077
991
  defaultSelectedKey: void 0
1078
992
  });
1079
- const inputRef = (0, import_react17.useRef)(null);
1080
- const listBoxRef = (0, import_react17.useRef)(null);
1081
- const popoverRef = (0, import_react17.useRef)(null);
993
+ const inputRef = (0, import_react16.useRef)(null);
994
+ const listBoxRef = (0, import_react16.useRef)(null);
995
+ const popoverRef = (0, import_react16.useRef)(null);
1082
996
  const { inputProps, listBoxProps, labelProps, clearButtonProps } = (0, import_autocomplete.useSearchAutocomplete)(
1083
997
  {
1084
998
  ...props,
@@ -1093,8 +1007,8 @@ var Autocomplete = ({
1093
1007
  state
1094
1008
  );
1095
1009
  const { isDisabled, ...restClearButtonProps } = clearButtonProps;
1096
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
1097
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1010
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, { children: [
1011
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1098
1012
  FieldBase,
1099
1013
  {
1100
1014
  label: props.label,
@@ -1104,13 +1018,13 @@ var Autocomplete = ({
1104
1018
  errorMessage: props.errorMessage,
1105
1019
  disabled,
1106
1020
  width,
1107
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1021
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1108
1022
  Input,
1109
1023
  {
1110
1024
  ...inputProps,
1111
1025
  ref: inputRef,
1112
- icon: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(SearchIcon, {}),
1113
- action: state.inputValue !== "" ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1026
+ icon: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SearchIcon, {}),
1027
+ action: state.inputValue !== "" ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1114
1028
  ClearButton,
1115
1029
  {
1116
1030
  preventFocus: true,
@@ -1122,7 +1036,7 @@ var Autocomplete = ({
1122
1036
  )
1123
1037
  }
1124
1038
  ),
1125
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1039
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1126
1040
  Popover,
1127
1041
  {
1128
1042
  state,
@@ -1130,7 +1044,7 @@ var Autocomplete = ({
1130
1044
  triggerRef: inputRef,
1131
1045
  scrollRef: listBoxRef,
1132
1046
  isNonModal: true,
1133
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ListBox, { ref: listBoxRef, state, ...listBoxProps })
1047
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ListBox, { ref: listBoxRef, state, ...listBoxProps })
1134
1048
  }
1135
1049
  )
1136
1050
  ] });
@@ -1139,11 +1053,41 @@ Autocomplete.Item = import_collections2.Item;
1139
1053
 
1140
1054
  // src/ComboBox/ComboBox.tsx
1141
1055
  var import_react18 = __toESM(require("react"));
1142
- var import_button4 = require("@react-aria/button");
1143
1056
  var import_combobox2 = require("@react-aria/combobox");
1144
1057
  var import_i18n2 = require("@react-aria/i18n");
1145
1058
  var import_collections3 = require("@react-stately/collections");
1146
1059
  var import_combobox3 = require("@react-stately/combobox");
1060
+
1061
+ // src/Button/Button.tsx
1062
+ var import_react17 = require("react");
1063
+ var import_react_aria_components2 = require("react-aria-components");
1064
+ var import_system16 = require("@marigold/system");
1065
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1066
+ var _Button = (0, import_react17.forwardRef)(
1067
+ ({ children, variant, size, disabled, fullWidth, ...props }, ref) => {
1068
+ const classNames2 = (0, import_system16.useClassNames)({
1069
+ component: "Button",
1070
+ variant,
1071
+ size
1072
+ });
1073
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1074
+ import_react_aria_components2.Button,
1075
+ {
1076
+ ...props,
1077
+ ref,
1078
+ className: (0, import_system16.cn)(
1079
+ "inline-flex items-center justify-center gap-[0.5ch]",
1080
+ classNames2,
1081
+ fullWidth ? "w-full" : void 0
1082
+ ),
1083
+ isDisabled: disabled,
1084
+ children
1085
+ }
1086
+ );
1087
+ }
1088
+ );
1089
+
1090
+ // src/ComboBox/ComboBox.tsx
1147
1091
  var import_jsx_runtime23 = require("react/jsx-runtime");
1148
1092
  var ComboBox = ({
1149
1093
  error,
@@ -1183,7 +1127,6 @@ var ComboBox = ({
1183
1127
  state
1184
1128
  );
1185
1129
  const errorMessageProps = { "aria-invalid": error };
1186
- const { buttonProps } = (0, import_button4.useButton)(triggerProps, buttonRef);
1187
1130
  const { label, description, errorMessage } = props;
1188
1131
  return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
1189
1132
  /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
@@ -1202,11 +1145,11 @@ var ComboBox = ({
1202
1145
  ...inputProps,
1203
1146
  ref: inputRef,
1204
1147
  action: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1205
- Button,
1148
+ _Button,
1206
1149
  {
1207
1150
  className: "absolute right-2 h-4 w-4 border-none bg-transparent p-0",
1208
1151
  ref: buttonRef,
1209
- ...buttonProps,
1152
+ ...triggerProps,
1210
1153
  children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ChevronDown, { className: "h-4 w-4" })
1211
1154
  }
1212
1155
  )
@@ -1338,80 +1281,11 @@ var Center = ({
1338
1281
  };
1339
1282
 
1340
1283
  // src/Checkbox/Checkbox.tsx
1341
- var import_react20 = require("react");
1342
- var import_checkbox3 = require("@react-aria/checkbox");
1343
- var import_focus7 = require("@react-aria/focus");
1344
- var import_interactions3 = require("@react-aria/interactions");
1345
- var import_utils11 = require("@react-aria/utils");
1346
- var import_toggle = require("@react-stately/toggle");
1347
- var import_system24 = require("@marigold/system");
1348
-
1349
- // src/Checkbox/CheckboxField.tsx
1284
+ var import_react19 = require("react");
1285
+ var import_react_aria_components3 = require("react-aria-components");
1350
1286
  var import_system22 = require("@marigold/system");
1351
1287
  var import_jsx_runtime29 = require("react/jsx-runtime");
1352
- var CheckboxField = ({ children, labelWidth }) => {
1353
- const classNames2 = (0, import_system22.useClassNames)({ component: "Field" });
1354
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: classNames2, children: [
1355
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "w-[--labelWidth]", style: (0, import_system22.createVar)({ labelWidth }) }),
1356
- children
1357
- ] });
1358
- };
1359
-
1360
- // src/Checkbox/CheckboxGroup.tsx
1361
- var import_react19 = require("react");
1362
- var import_checkbox = require("@react-aria/checkbox");
1363
- var import_checkbox2 = require("@react-stately/checkbox");
1364
- var import_system23 = require("@marigold/system");
1365
- var import_jsx_runtime30 = require("react/jsx-runtime");
1366
- var CheckboxGroupContext = (0, import_react19.createContext)(
1367
- null
1368
- );
1369
- var useCheckboxGroupContext = () => (0, import_react19.useContext)(CheckboxGroupContext);
1370
- var CheckboxGroup = ({
1371
- children,
1372
- required,
1373
- disabled,
1374
- readOnly,
1375
- error,
1376
- width,
1377
- ...rest
1378
- }) => {
1379
- const props = {
1380
- isRequired: required,
1381
- isDisabled: disabled,
1382
- isReadOnly: readOnly,
1383
- validationState: error ? "invalid" : "valid",
1384
- ...rest
1385
- };
1386
- const state = (0, import_checkbox2.useCheckboxGroupState)(props);
1387
- const { groupProps, labelProps, descriptionProps, errorMessageProps } = (0, import_checkbox.useCheckboxGroup)(props, state);
1388
- const stateProps = (0, import_system23.useStateProps)({
1389
- disabled,
1390
- readOnly,
1391
- error
1392
- });
1393
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1394
- FieldBase,
1395
- {
1396
- label: props.label,
1397
- labelProps: { as: "span", ...labelProps },
1398
- description: props.description,
1399
- descriptionProps,
1400
- error,
1401
- errorMessage: props.errorMessage,
1402
- errorMessageProps,
1403
- disabled,
1404
- stateProps,
1405
- width,
1406
- ...groupProps,
1407
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { role: "presentation", className: "flex flex-col items-start", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CheckboxGroupContext.Provider, { value: { error, ...state }, children }) })
1408
- }
1409
- );
1410
- };
1411
-
1412
- // src/Checkbox/Checkbox.tsx
1413
- var import_jsx_runtime31 = require("react/jsx-runtime");
1414
- var CheckMark = () => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("svg", { viewBox: "0 0 12 10", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1288
+ var CheckMark = () => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("svg", { viewBox: "0 0 12 10", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1415
1289
  "path",
1416
1290
  {
1417
1291
  fill: "currentColor",
@@ -1419,7 +1293,7 @@ var CheckMark = () => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("svg", { vie
1419
1293
  d: "M11.915 1.548 10.367 0 4.045 6.315 1.557 3.827 0 5.373l4.045 4.046 7.87-7.871Z"
1420
1294
  }
1421
1295
  ) });
1422
- var IndeterminateMark = () => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("svg", { width: "12", height: "3", viewBox: "0 0 12 3", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1296
+ var IndeterminateMark = () => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("svg", { width: "12", height: "3", viewBox: "0 0 12 3", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1423
1297
  "path",
1424
1298
  {
1425
1299
  fill: "currentColor",
@@ -1428,125 +1302,137 @@ var IndeterminateMark = () => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("svg
1428
1302
  }
1429
1303
  ) });
1430
1304
  var Icon = ({ className, checked, indeterminate, ...props }) => {
1431
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1305
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1432
1306
  "div",
1433
1307
  {
1434
1308
  "aria-hidden": "true",
1435
- className: (0, import_system24.cn)(
1309
+ className: (0, import_system22.cn)(
1436
1310
  "flex shrink-0 grow-0 basis-4 items-center justify-center",
1437
1311
  "h-4 w-4 p-px",
1438
1312
  "bg-white",
1439
- "rounded-[3px] border border-solid border-black",
1313
+ "rounded-[3px] border border-solid border-black ",
1440
1314
  className
1441
1315
  ),
1442
1316
  ...props,
1443
- children: indeterminate ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(IndeterminateMark, {}) : checked ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CheckMark, {}) : null
1317
+ children: indeterminate ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(IndeterminateMark, {}) : checked ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(CheckMark, {}) : null
1444
1318
  }
1445
1319
  );
1446
1320
  };
1447
- var Checkbox = (0, import_react20.forwardRef)(
1321
+ var _Checkbox = (0, import_react19.forwardRef)(
1448
1322
  ({
1449
- size,
1450
- variant,
1323
+ className,
1324
+ indeterminate,
1325
+ error,
1451
1326
  disabled,
1452
- checked,
1453
1327
  defaultChecked,
1454
- indeterminate,
1328
+ children,
1329
+ checked,
1455
1330
  readOnly,
1456
1331
  required,
1457
- error,
1458
- ...props
1332
+ variant,
1333
+ size,
1334
+ ...rest
1459
1335
  }, ref) => {
1460
- const inputRef = (0, import_utils11.useObjectRef)(ref);
1461
- const checkboxProps = {
1336
+ const props = {
1462
1337
  isIndeterminate: indeterminate,
1463
1338
  isDisabled: disabled,
1464
1339
  isReadOnly: readOnly,
1465
1340
  isRequired: required,
1466
- validationState: error ? "invalid" : "valid"
1341
+ isInvalid: error,
1342
+ defaultSelected: defaultChecked,
1343
+ ...rest
1467
1344
  };
1468
- const groupState = useCheckboxGroupContext();
1469
- const { inputProps } = groupState ? (0, import_checkbox3.useCheckboxGroupItem)(
1345
+ const classNames2 = (0, import_system22.useClassNames)({ component: "Checkbox", variant, size });
1346
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1347
+ import_react_aria_components3.Checkbox,
1470
1348
  {
1471
- ...props,
1472
- ...checkboxProps,
1473
- /**
1474
- * value is optional for standalone checkboxes, but required when
1475
- * used inside a group.
1476
- */
1477
- value: props.value
1478
- },
1479
- groupState,
1480
- inputRef
1481
- ) : (0, import_checkbox3.useCheckbox)(
1482
- {
1483
- isSelected: checked,
1484
- defaultSelected: defaultChecked,
1485
- ...checkboxProps,
1486
- ...props
1487
- },
1488
- (0, import_toggle.useToggleState)({
1489
- isSelected: checked,
1490
- defaultSelected: defaultChecked,
1491
- isReadOnly: readOnly,
1492
- ...props
1493
- }),
1494
- inputRef
1495
- );
1496
- const classNames2 = (0, import_system24.useClassNames)({ component: "Checkbox", variant, size });
1497
- const { hoverProps, isHovered } = (0, import_interactions3.useHover)({
1498
- isDisabled: inputProps.disabled
1499
- });
1500
- const { labelWidth } = useFieldGroupContext();
1501
- const { isFocusVisible, focusProps } = (0, import_focus7.useFocusRing)();
1502
- const stateProps = (0, import_system24.useStateProps)({
1503
- hover: isHovered,
1504
- focus: isFocusVisible,
1505
- checked: inputProps.checked,
1506
- disabled: inputProps.disabled,
1507
- error: (groupState == null ? void 0 : groupState.error) || error,
1508
- readOnly,
1509
- indeterminate
1510
- });
1511
- const component = /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
1512
- "label",
1513
- {
1514
- className: (0, import_system24.cn)(
1515
- "group/checkbox relative flex items-center gap-[1ch]",
1349
+ ref,
1350
+ className: (0, import_system22.cn)(
1351
+ "group/checkbox flex items-center gap-[0.5rem]",
1352
+ "cursor-pointer data-[disabled]:cursor-not-allowed",
1516
1353
  classNames2.container
1517
1354
  ),
1518
- ...hoverProps,
1519
- ...stateProps,
1520
- children: [
1521
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1522
- "input",
1523
- {
1524
- ref: inputRef,
1525
- className: "z-1 absolute left-0 top-0 h-full w-full cursor-pointer opacity-[0.0001] group-disabled/checkbox:cursor-not-allowed",
1526
- ...inputProps,
1527
- ...focusProps
1528
- }
1529
- ),
1530
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1355
+ ...props,
1356
+ children: ({ isSelected, isIndeterminate }) => /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_jsx_runtime29.Fragment, { children: [
1357
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1531
1358
  Icon,
1532
1359
  {
1533
- checked: inputProps.checked,
1534
- indeterminate,
1360
+ checked: isSelected,
1361
+ indeterminate: isIndeterminate,
1535
1362
  className: classNames2.checkbox
1536
1363
  }
1537
1364
  ),
1538
- props.children && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: classNames2.label, children: props.children })
1539
- ]
1365
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: classNames2.label, children })
1366
+ ] })
1540
1367
  }
1541
1368
  );
1542
- return !groupState && labelWidth ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CheckboxField, { labelWidth, children: component }) : component;
1543
1369
  }
1544
1370
  );
1545
1371
 
1372
+ // src/Checkbox/CheckboxGroup.tsx
1373
+ var import_react20 = require("react");
1374
+ var import_checkbox = require("@react-aria/checkbox");
1375
+ var import_checkbox2 = require("@react-stately/checkbox");
1376
+ var import_system23 = require("@marigold/system");
1377
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1378
+ var CheckboxGroupContext = (0, import_react20.createContext)(
1379
+ null
1380
+ );
1381
+ var useCheckboxGroupContext = () => (0, import_react20.useContext)(CheckboxGroupContext);
1382
+ var CheckboxGroup = ({
1383
+ variant,
1384
+ size,
1385
+ children,
1386
+ required,
1387
+ disabled,
1388
+ readOnly,
1389
+ error,
1390
+ width,
1391
+ ...rest
1392
+ }) => {
1393
+ const props = {
1394
+ isRequired: required,
1395
+ isDisabled: disabled,
1396
+ isReadOnly: readOnly,
1397
+ validationState: error ? "invalid" : "valid",
1398
+ ...rest
1399
+ };
1400
+ const state = (0, import_checkbox2.useCheckboxGroupState)(props);
1401
+ const { groupProps, labelProps, descriptionProps, errorMessageProps } = (0, import_checkbox.useCheckboxGroup)(props, state);
1402
+ const classNames2 = (0, import_system23.useClassNames)({
1403
+ component: "Checkbox",
1404
+ variant,
1405
+ size,
1406
+ className: { group: "flex flex-col items-start gap-[0.5ch]" }
1407
+ });
1408
+ const stateProps = (0, import_system23.useStateProps)({
1409
+ disabled,
1410
+ readOnly,
1411
+ error
1412
+ });
1413
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1414
+ FieldBase,
1415
+ {
1416
+ label: props.label,
1417
+ labelProps: { elementType: "span", ...labelProps },
1418
+ description: props.description,
1419
+ descriptionProps,
1420
+ error,
1421
+ errorMessage: props.errorMessage,
1422
+ errorMessageProps,
1423
+ disabled,
1424
+ stateProps,
1425
+ width,
1426
+ ...groupProps,
1427
+ children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { role: "presentation", className: classNames2.group, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CheckboxGroupContext.Provider, { value: { error, ...state }, children }) })
1428
+ }
1429
+ );
1430
+ };
1431
+
1546
1432
  // src/Columns/Columns.tsx
1547
1433
  var import_react21 = require("react");
1548
- var import_system25 = require("@marigold/system");
1549
- var import_jsx_runtime32 = require("react/jsx-runtime");
1434
+ var import_system24 = require("@marigold/system");
1435
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1550
1436
  var Columns = ({
1551
1437
  space = 0,
1552
1438
  columns,
@@ -1562,22 +1448,22 @@ var Columns = ({
1562
1448
  )}`
1563
1449
  );
1564
1450
  }
1565
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1451
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1566
1452
  "div",
1567
1453
  {
1568
- className: (0, import_system25.cn)(
1454
+ className: (0, import_system24.cn)(
1569
1455
  "flex flex-wrap items-stretch",
1570
1456
  stretch && "h-full",
1571
- import_system25.gapSpace[space]
1457
+ import_system24.gapSpace[space]
1572
1458
  ),
1573
1459
  ...props,
1574
- children: import_react21.Children.map(children, (child, idx) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1460
+ children: import_react21.Children.map(children, (child, idx) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1575
1461
  "div",
1576
1462
  {
1577
- className: (0, import_system25.cn)(
1463
+ className: (0, import_system24.cn)(
1578
1464
  "grow-[--columnSize] basis-[calc((var(--collapseAt)_-_100%)_*_999)]"
1579
1465
  ),
1580
- style: (0, import_system25.createVar)({ collapseAt, columnSize: columns[idx] }),
1466
+ style: (0, import_system24.createVar)({ collapseAt, columnSize: columns[idx] }),
1581
1467
  children: (0, import_react21.isValidElement)(child) ? (0, import_react21.cloneElement)(child) : child
1582
1468
  }
1583
1469
  ))
@@ -1586,8 +1472,8 @@ var Columns = ({
1586
1472
  };
1587
1473
 
1588
1474
  // src/Container/Container.tsx
1589
- var import_system26 = require("@marigold/system");
1590
- var import_jsx_runtime33 = require("react/jsx-runtime");
1475
+ var import_system25 = require("@marigold/system");
1476
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1591
1477
  var content = {
1592
1478
  small: "20ch",
1593
1479
  medium: "45ch",
@@ -1607,17 +1493,17 @@ var Container = ({
1607
1493
  ...props
1608
1494
  }) => {
1609
1495
  const maxWidth = contentType === "content" ? content[size] : header[size];
1610
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1496
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1611
1497
  "div",
1612
1498
  {
1613
1499
  ...props,
1614
- className: (0, import_system26.cn)(
1500
+ className: (0, import_system25.cn)(
1615
1501
  "grid",
1616
- import_system26.placeItems[alignItems],
1617
- import_system26.gridColsAlign[align],
1618
- import_system26.gridColumn[align]
1502
+ import_system25.placeItems[alignItems],
1503
+ import_system25.gridColsAlign[align],
1504
+ import_system25.gridColumn[align]
1619
1505
  ),
1620
- style: (0, import_system26.createVar)({ maxWidth }),
1506
+ style: (0, import_system25.createVar)({ maxWidth }),
1621
1507
  children
1622
1508
  }
1623
1509
  );
@@ -1625,49 +1511,49 @@ var Container = ({
1625
1511
 
1626
1512
  // src/Dialog/Dialog.tsx
1627
1513
  var import_react24 = require("react");
1628
- var import_button5 = require("@react-aria/button");
1514
+ var import_button3 = require("@react-aria/button");
1629
1515
  var import_dialog = require("@react-aria/dialog");
1630
- var import_system29 = require("@marigold/system");
1516
+ var import_system28 = require("@marigold/system");
1631
1517
 
1632
1518
  // src/Header/Header.tsx
1633
- var import_system27 = require("@marigold/system");
1634
- var import_jsx_runtime34 = require("react/jsx-runtime");
1519
+ var import_system26 = require("@marigold/system");
1520
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1635
1521
  var Header = ({ children, variant, size, ...props }) => {
1636
- const classNames2 = (0, import_system27.useClassNames)({
1522
+ const classNames2 = (0, import_system26.useClassNames)({
1637
1523
  component: "Header",
1638
1524
  variant,
1639
1525
  size
1640
1526
  });
1641
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("header", { ...props, className: (0, import_system27.cn)(classNames2), children });
1527
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("header", { ...props, className: (0, import_system26.cn)(classNames2), children });
1642
1528
  };
1643
1529
 
1644
1530
  // src/Headline/Headline.tsx
1645
- var import_system28 = require("@marigold/system");
1646
- var import_jsx_runtime35 = require("react/jsx-runtime");
1647
- var Headline = ({
1648
- children,
1531
+ var import_react_aria_components4 = require("react-aria-components");
1532
+ var import_system27 = require("@marigold/system");
1533
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1534
+ var _Headline = ({
1649
1535
  variant,
1650
1536
  size,
1537
+ children,
1651
1538
  align = "left",
1652
1539
  color,
1653
- level = "1",
1654
- as = `h${level}`,
1540
+ level = 1,
1655
1541
  ...props
1656
1542
  }) => {
1657
- const theme = (0, import_system28.useTheme)();
1658
- const classNames2 = (0, import_system28.useClassNames)({
1543
+ const theme = (0, import_system27.useTheme)();
1544
+ const classNames2 = (0, import_system27.useClassNames)({
1659
1545
  component: "Headline",
1660
1546
  variant,
1661
1547
  size: size != null ? size : `level-${level}`
1662
1548
  });
1663
- const Component = as;
1664
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1665
- Component,
1549
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1550
+ import_react_aria_components4.Heading,
1666
1551
  {
1552
+ level: Number(level),
1667
1553
  ...props,
1668
- className: (0, import_system28.cn)(classNames2, "text-[--color]", import_system28.textAlign[align]),
1669
- style: (0, import_system28.createVar)({
1670
- color: color && theme.colors && (0, import_system28.get)(
1554
+ className: (0, import_system27.cn)(classNames2, "text-[--color]", import_system27.textAlign[align]),
1555
+ style: (0, import_system27.createVar)({
1556
+ color: color && theme.colors && (0, import_system27.get)(
1671
1557
  theme.colors,
1672
1558
  color.replace("-", "."),
1673
1559
  color
@@ -1686,7 +1572,7 @@ var useDialogContext = () => (0, import_react22.useContext)(DialogContext);
1686
1572
 
1687
1573
  // src/Dialog/DialogController.tsx
1688
1574
  var import_overlays5 = require("@react-stately/overlays");
1689
- var import_jsx_runtime36 = require("react/jsx-runtime");
1575
+ var import_jsx_runtime35 = require("react/jsx-runtime");
1690
1576
  var DialogController = ({
1691
1577
  children,
1692
1578
  dismissable = true,
@@ -1699,7 +1585,7 @@ var DialogController = ({
1699
1585
  onOpenChange
1700
1586
  });
1701
1587
  const ctx = { open: state.isOpen, close: state.close };
1702
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DialogContext.Provider, { value: ctx, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Overlay, { open: state.isOpen, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1588
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(DialogContext.Provider, { value: ctx, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Overlay, { open: state.isOpen, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1703
1589
  Modal,
1704
1590
  {
1705
1591
  open: state.isOpen,
@@ -1713,9 +1599,9 @@ var DialogController = ({
1713
1599
 
1714
1600
  // src/Dialog/DialogTrigger.tsx
1715
1601
  var import_react23 = require("react");
1716
- var import_interactions4 = require("@react-aria/interactions");
1602
+ var import_interactions2 = require("@react-aria/interactions");
1717
1603
  var import_overlays6 = require("@react-stately/overlays");
1718
- var import_jsx_runtime37 = require("react/jsx-runtime");
1604
+ var import_jsx_runtime36 = require("react/jsx-runtime");
1719
1605
  var DialogTrigger = ({
1720
1606
  children,
1721
1607
  dismissable = true,
@@ -1725,9 +1611,9 @@ var DialogTrigger = ({
1725
1611
  const dialogTriggerRef = (0, import_react23.useRef)(null);
1726
1612
  const state = (0, import_overlays6.useOverlayTriggerState)({});
1727
1613
  const ctx = { open: state.isOpen, close: state.close };
1728
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(DialogContext.Provider, { value: ctx, children: [
1729
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1730
- import_interactions4.PressResponder,
1614
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(DialogContext.Provider, { value: ctx, children: [
1615
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1616
+ import_interactions2.PressResponder,
1731
1617
  {
1732
1618
  ref: dialogTriggerRef,
1733
1619
  isPressed: state.isOpen,
@@ -1735,7 +1621,7 @@ var DialogTrigger = ({
1735
1621
  children: dialogTrigger
1736
1622
  }
1737
1623
  ),
1738
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Overlay, { open: state.isOpen, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1624
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Overlay, { open: state.isOpen, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1739
1625
  Modal,
1740
1626
  {
1741
1627
  open: state.isOpen,
@@ -1749,26 +1635,26 @@ var DialogTrigger = ({
1749
1635
  };
1750
1636
 
1751
1637
  // src/Dialog/Dialog.tsx
1752
- var import_jsx_runtime38 = require("react/jsx-runtime");
1638
+ var import_jsx_runtime37 = require("react/jsx-runtime");
1753
1639
  var CloseButton = ({ className }) => {
1754
1640
  const ref = (0, import_react24.useRef)(null);
1755
1641
  const { close } = useDialogContext();
1756
- const { buttonProps } = (0, import_button5.useButton)(
1642
+ const { buttonProps } = (0, import_button3.useButton)(
1757
1643
  {
1758
1644
  onPress: () => close == null ? void 0 : close()
1759
1645
  },
1760
1646
  ref
1761
1647
  );
1762
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1648
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1763
1649
  "button",
1764
1650
  {
1765
- className: (0, import_system29.cn)(
1651
+ className: (0, import_system28.cn)(
1766
1652
  "h-4 w-4 cursor-pointer border-none p-0 leading-normal outline-0",
1767
1653
  className
1768
1654
  ),
1769
1655
  ref,
1770
1656
  ...buttonProps,
1771
- children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1657
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1772
1658
  "path",
1773
1659
  {
1774
1660
  fillRule: "evenodd",
@@ -1782,7 +1668,7 @@ var CloseButton = ({ className }) => {
1782
1668
  var addTitleProps = (children, titleProps) => {
1783
1669
  const childs = import_react24.Children.toArray(children);
1784
1670
  const titleIndex = childs.findIndex(
1785
- (child) => (0, import_react24.isValidElement)(child) && (child.type === Header || child.type === Headline)
1671
+ (child) => (0, import_react24.isValidElement)(child) && (child.type === Header || child.type === _Headline)
1786
1672
  );
1787
1673
  if (titleIndex < 0) {
1788
1674
  console.warn(
@@ -1807,9 +1693,9 @@ var Dialog = ({
1807
1693
  const ref = (0, import_react24.useRef)(null);
1808
1694
  const { close } = useDialogContext();
1809
1695
  const { dialogProps, titleProps } = (0, import_dialog.useDialog)(props, ref);
1810
- const classNames2 = (0, import_system29.useClassNames)({ component: "Dialog", variant, size });
1811
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: classNames2.container, ...dialogProps, children: [
1812
- closeButton && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(CloseButton, { className: classNames2.closeButton }),
1696
+ const classNames2 = (0, import_system28.useClassNames)({ component: "Dialog", variant, size });
1697
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: classNames2.container, ...dialogProps, children: [
1698
+ closeButton && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(CloseButton, { className: classNames2.closeButton }),
1813
1699
  typeof children === "function" ? children({ close, titleProps }) : props["aria-labelledby"] ? children : addTitleProps(children, titleProps)
1814
1700
  ] });
1815
1701
  };
@@ -1817,26 +1703,25 @@ Dialog.Trigger = DialogTrigger;
1817
1703
  Dialog.Controller = DialogController;
1818
1704
 
1819
1705
  // src/Divider/Divider.tsx
1820
- var import_separator = require("@react-aria/separator");
1821
- var import_system30 = require("@marigold/system");
1822
- var import_jsx_runtime39 = require("react/jsx-runtime");
1823
- var Divider = ({ variant, ...props }) => {
1824
- const { separatorProps } = (0, import_separator.useSeparator)(props);
1825
- const classNames2 = (0, import_system30.useClassNames)({ component: "Divider", variant });
1826
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: classNames2, ...props, ...separatorProps });
1706
+ var import_react_aria_components5 = require("react-aria-components");
1707
+ var import_system29 = require("@marigold/system");
1708
+ var import_jsx_runtime38 = require("react/jsx-runtime");
1709
+ var _Divider = ({ variant, ...props }) => {
1710
+ const classNames2 = (0, import_system29.useClassNames)({ component: "Divider", variant });
1711
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react_aria_components5.Separator, { className: classNames2, ...props });
1827
1712
  };
1828
1713
 
1829
1714
  // src/Footer/Footer.tsx
1830
- var import_system31 = require("@marigold/system");
1831
- var import_jsx_runtime40 = require("react/jsx-runtime");
1715
+ var import_system30 = require("@marigold/system");
1716
+ var import_jsx_runtime39 = require("react/jsx-runtime");
1832
1717
  var Footer = ({ children, variant, size, ...props }) => {
1833
- const classNames2 = (0, import_system31.useClassNames)({ component: "Footer", variant, size });
1834
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("footer", { ...props, className: classNames2, children });
1718
+ const classNames2 = (0, import_system30.useClassNames)({ component: "Footer", variant, size });
1719
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("footer", { ...props, className: classNames2, children });
1835
1720
  };
1836
1721
 
1837
1722
  // src/Image/Image.tsx
1838
- var import_system32 = require("@marigold/system");
1839
- var import_jsx_runtime41 = require("react/jsx-runtime");
1723
+ var import_system31 = require("@marigold/system");
1724
+ var import_jsx_runtime40 = require("react/jsx-runtime");
1840
1725
  var Image = ({
1841
1726
  variant,
1842
1727
  size,
@@ -1844,25 +1729,25 @@ var Image = ({
1844
1729
  position = "none",
1845
1730
  ...props
1846
1731
  }) => {
1847
- const classNames2 = (0, import_system32.useClassNames)({ component: "Image", variant, size });
1848
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
1732
+ const classNames2 = (0, import_system31.useClassNames)({ component: "Image", variant, size });
1733
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
1849
1734
  "img",
1850
1735
  {
1851
1736
  ...props,
1852
1737
  alt: props.alt,
1853
- className: (0, import_system32.cn)(
1738
+ className: (0, import_system31.cn)(
1854
1739
  fit !== "none" && "h-full w-full",
1855
1740
  classNames2,
1856
- import_system32.objectFit[fit],
1857
- import_system32.objectPosition[position]
1741
+ import_system31.objectFit[fit],
1742
+ import_system31.objectPosition[position]
1858
1743
  )
1859
1744
  }
1860
1745
  );
1861
1746
  };
1862
1747
 
1863
1748
  // src/Inline/Inline.tsx
1864
- var import_system33 = require("@marigold/system");
1865
- var import_jsx_runtime42 = require("react/jsx-runtime");
1749
+ var import_system32 = require("@marigold/system");
1750
+ var import_jsx_runtime41 = require("react/jsx-runtime");
1866
1751
  var Inline = ({
1867
1752
  space = 0,
1868
1753
  orientation,
@@ -1872,15 +1757,15 @@ var Inline = ({
1872
1757
  ...props
1873
1758
  }) => {
1874
1759
  var _a2, _b2, _c, _d;
1875
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
1760
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
1876
1761
  "div",
1877
1762
  {
1878
1763
  ...props,
1879
- className: (0, import_system33.cn)(
1764
+ className: (0, import_system32.cn)(
1880
1765
  "flex flex-wrap",
1881
- import_system33.gapSpace[space],
1882
- alignX && ((_b2 = (_a2 = import_system33.alignment) == null ? void 0 : _a2.horizontal) == null ? void 0 : _b2.alignmentX[alignX]),
1883
- alignY && ((_d = (_c = import_system33.alignment) == null ? void 0 : _c.horizontal) == null ? void 0 : _d.alignmentY[alignY])
1766
+ import_system32.gapSpace[space],
1767
+ alignX && ((_b2 = (_a2 = import_system32.alignment) == null ? void 0 : _a2.horizontal) == null ? void 0 : _b2.alignmentX[alignX]),
1768
+ alignY && ((_d = (_c = import_system32.alignment) == null ? void 0 : _c.horizontal) == null ? void 0 : _d.alignmentY[alignY])
1884
1769
  ),
1885
1770
  children
1886
1771
  }
@@ -1891,20 +1776,20 @@ var Inline = ({
1891
1776
  var import_date = require("@internationalized/date");
1892
1777
  var import_react26 = require("react");
1893
1778
  var import_datepicker2 = require("@react-aria/datepicker");
1894
- var import_focus9 = require("@react-aria/focus");
1779
+ var import_focus7 = require("@react-aria/focus");
1895
1780
  var import_i18n3 = require("@react-aria/i18n");
1896
- var import_interactions5 = require("@react-aria/interactions");
1897
- var import_utils13 = require("@react-aria/utils");
1781
+ var import_interactions3 = require("@react-aria/interactions");
1782
+ var import_utils11 = require("@react-aria/utils");
1898
1783
  var import_datepicker3 = require("@react-stately/datepicker");
1899
- var import_system35 = require("@marigold/system");
1784
+ var import_system34 = require("@marigold/system");
1900
1785
 
1901
1786
  // src/DateField/DateSegment.tsx
1902
1787
  var import_react25 = require("react");
1903
1788
  var import_datepicker = require("@react-aria/datepicker");
1904
- var import_focus8 = require("@react-aria/focus");
1905
- var import_utils12 = require("@react-aria/utils");
1906
- var import_system34 = require("@marigold/system");
1907
- var import_jsx_runtime43 = require("react/jsx-runtime");
1789
+ var import_focus6 = require("@react-aria/focus");
1790
+ var import_utils10 = require("@react-aria/utils");
1791
+ var import_system33 = require("@marigold/system");
1792
+ var import_jsx_runtime42 = require("react/jsx-runtime");
1908
1793
  var DateSegment = ({
1909
1794
  className,
1910
1795
  segment,
@@ -1913,21 +1798,21 @@ var DateSegment = ({
1913
1798
  }) => {
1914
1799
  const ref = (0, import_react25.useRef)(null);
1915
1800
  const { segmentProps } = (0, import_datepicker.useDateSegment)(segment, state, ref);
1916
- const { focusProps, isFocused } = (0, import_focus8.useFocusRing)({
1801
+ const { focusProps, isFocused } = (0, import_focus6.useFocusRing)({
1917
1802
  within: true,
1918
1803
  isTextInput: true
1919
1804
  });
1920
- const stateProps = (0, import_system34.useStateProps)({
1805
+ const stateProps = (0, import_system33.useStateProps)({
1921
1806
  disabled: state.isDisabled,
1922
1807
  focusVisible: isFocused
1923
1808
  });
1924
1809
  const { isPlaceholder, placeholder, text, type, maxValue } = segment;
1925
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
1810
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
1926
1811
  "div",
1927
1812
  {
1928
- ...(0, import_utils12.mergeProps)(segmentProps, stateProps, focusProps),
1813
+ ...(0, import_utils10.mergeProps)(segmentProps, stateProps, focusProps),
1929
1814
  ref,
1930
- className: (0, import_system34.cn)(
1815
+ className: (0, import_system33.cn)(
1931
1816
  "group/segment",
1932
1817
  "text-center leading-none outline-0",
1933
1818
  type !== "literal" && "p-0.5",
@@ -1938,25 +1823,25 @@ var DateSegment = ({
1938
1823
  minWidth: maxValue != null ? String(maxValue).length + "ch" : void 0
1939
1824
  },
1940
1825
  children: [
1941
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
1826
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
1942
1827
  "span",
1943
1828
  {
1944
1829
  "aria-hidden": "true",
1945
- className: (0, import_system34.cn)(
1830
+ className: (0, import_system33.cn)(
1946
1831
  isPlaceholder ? "visible block" : "invisible hidden",
1947
1832
  "pointer-events-none w-full text-center"
1948
1833
  ),
1949
1834
  children: isPlaceholder && (placeholder == null ? void 0 : placeholder.toUpperCase())
1950
1835
  }
1951
1836
  ),
1952
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { children: isPlaceholder ? "" : type === "month" || type === "day" ? Number(text) < 10 ? "0" + text : text : text })
1837
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { children: isPlaceholder ? "" : type === "month" || type === "day" ? Number(text) < 10 ? "0" + text : text : text })
1953
1838
  ]
1954
1839
  }
1955
1840
  );
1956
1841
  };
1957
1842
 
1958
1843
  // src/DateField/DateField.tsx
1959
- var import_jsx_runtime44 = require("react/jsx-runtime");
1844
+ var import_jsx_runtime43 = require("react/jsx-runtime");
1960
1845
  var DateField = ({
1961
1846
  disabled,
1962
1847
  readOnly,
@@ -1991,14 +1876,14 @@ var DateField = ({
1991
1876
  state,
1992
1877
  ref
1993
1878
  );
1994
- const classNames2 = (0, import_system35.useClassNames)({ component: "DateField", variant, size });
1995
- const { focusProps, isFocused } = (0, import_focus9.useFocusRing)({
1879
+ const classNames2 = (0, import_system34.useClassNames)({ component: "DateField", variant, size });
1880
+ const { focusProps, isFocused } = (0, import_focus7.useFocusRing)({
1996
1881
  within: true,
1997
1882
  isTextInput: true,
1998
1883
  autoFocus: props.autoFocus
1999
1884
  });
2000
- const { hoverProps, isHovered } = (0, import_interactions5.useHover)({ isDisabled: disabled });
2001
- const stateProps = (0, import_system35.useStateProps)({
1885
+ const { hoverProps, isHovered } = (0, import_interactions3.useHover)({ isDisabled: disabled });
1886
+ const stateProps = (0, import_system34.useStateProps)({
2002
1887
  hover: isHovered,
2003
1888
  error,
2004
1889
  readOnly,
@@ -2006,7 +1891,7 @@ var DateField = ({
2006
1891
  required,
2007
1892
  focus: isFocused || isPressed
2008
1893
  });
2009
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
1894
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2010
1895
  FieldBase,
2011
1896
  {
2012
1897
  error,
@@ -2021,11 +1906,11 @@ var DateField = ({
2021
1906
  variant,
2022
1907
  size,
2023
1908
  width,
2024
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
1909
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
2025
1910
  "div",
2026
1911
  {
2027
- ...(0, import_utils13.mergeProps)(fieldProps, focusProps, stateProps, hoverProps),
2028
- className: (0, import_system35.cn)(
1912
+ ...(0, import_utils11.mergeProps)(fieldProps, focusProps, stateProps, hoverProps),
1913
+ className: (0, import_system34.cn)(
2029
1914
  "relative flex flex-row flex-nowrap",
2030
1915
  "cursor-text aria-disabled:cursor-not-allowed",
2031
1916
  classNames2.field
@@ -2033,9 +1918,9 @@ var DateField = ({
2033
1918
  "data-testid": "date-field",
2034
1919
  ref: triggerRef,
2035
1920
  children: [
2036
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { ref, className: "flex basis-full items-center", children: state.segments.map((segment, i) => {
1921
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { ref, className: "flex basis-full items-center", children: state.segments.map((segment, i) => {
2037
1922
  var _a;
2038
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
1923
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2039
1924
  DateSegment,
2040
1925
  {
2041
1926
  className: classNames2.segment,
@@ -2046,15 +1931,15 @@ var DateField = ({
2046
1931
  i
2047
1932
  );
2048
1933
  }) }),
2049
- action ? action : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
1934
+ action ? action : /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2050
1935
  "svg",
2051
1936
  {
2052
1937
  "data-testid": "action",
2053
- className: (0, import_system35.cn)(classNames2.action),
1938
+ className: (0, import_system34.cn)(classNames2.action),
2054
1939
  viewBox: "0 0 24 24",
2055
1940
  width: 24,
2056
1941
  height: 24,
2057
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("path", { d: "M20.0906 19.2V6.6C20.0906 5.61 19.2806 4.8 18.2906 4.8H17.3906V3H15.5906V4.8H8.39062V3H6.59062V4.8H5.69063C4.69163 4.8 3.89962 5.61 3.89962 6.6L3.89062 19.2C3.89062 20.19 4.69163 21 5.69063 21H18.2906C19.2806 21 20.0906 20.19 20.0906 19.2ZM9.29062 11.1001H7.49061V12.9001H9.29062V11.1001ZM5.69062 8.40009H18.2906V6.60008H5.69062V8.40009ZM18.2906 10.2V19.2H5.69062V10.2H18.2906ZM14.6906 12.9001H16.4906V11.1001H14.6906V12.9001ZM12.8906 12.9001H11.0906V11.1001H12.8906V12.9001Z" })
1942
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("path", { d: "M20.0906 19.2V6.6C20.0906 5.61 19.2806 4.8 18.2906 4.8H17.3906V3H15.5906V4.8H8.39062V3H6.59062V4.8H5.69063C4.69163 4.8 3.89962 5.61 3.89962 6.6L3.89062 19.2C3.89062 20.19 4.69163 21 5.69063 21H18.2906C19.2806 21 20.0906 20.19 20.0906 19.2ZM9.29062 11.1001H7.49061V12.9001H9.29062V11.1001ZM5.69062 8.40009H18.2906V6.60008H5.69062V8.40009ZM18.2906 10.2V19.2H5.69062V10.2H18.2906ZM14.6906 12.9001H16.4906V11.1001H14.6906V12.9001ZM12.8906 12.9001H11.0906V11.1001H12.8906V12.9001Z" })
2058
1943
  }
2059
1944
  ) })
2060
1945
  ]
@@ -2071,7 +1956,7 @@ var import_calendar3 = require("@react-aria/calendar");
2071
1956
  var import_i18n9 = require("@react-aria/i18n");
2072
1957
  var import_calendar4 = require("@react-stately/calendar");
2073
1958
  var import_icons = require("@marigold/icons");
2074
- var import_system38 = require("@marigold/system");
1959
+ var import_system37 = require("@marigold/system");
2075
1960
 
2076
1961
  // src/Calendar/CalendarGrid.tsx
2077
1962
  var import_date2 = require("@internationalized/date");
@@ -2083,43 +1968,43 @@ var import_i18n5 = require("@react-aria/i18n");
2083
1968
  // src/Calendar/CalendarCell.tsx
2084
1969
  var import_react27 = require("react");
2085
1970
  var import_calendar = require("@react-aria/calendar");
2086
- var import_interactions6 = require("@react-aria/interactions");
2087
- var import_utils14 = require("@react-aria/utils");
2088
- var import_system36 = require("@marigold/system");
2089
- var import_jsx_runtime45 = require("react/jsx-runtime");
1971
+ var import_interactions4 = require("@react-aria/interactions");
1972
+ var import_utils12 = require("@react-aria/utils");
1973
+ var import_system35 = require("@marigold/system");
1974
+ var import_jsx_runtime44 = require("react/jsx-runtime");
2090
1975
  var CalendarCell = (props) => {
2091
1976
  const ref = (0, import_react27.useRef)(null);
2092
1977
  const { state } = props;
2093
1978
  let { cellProps, buttonProps, formattedDate, isOutsideVisibleRange } = (0, import_calendar.useCalendarCell)(props, state, ref);
2094
- const classNames2 = (0, import_system36.useClassNames)({
1979
+ const classNames2 = (0, import_system35.useClassNames)({
2095
1980
  component: "Calendar"
2096
1981
  });
2097
1982
  const isDisabled = cellProps["aria-disabled"];
2098
- const { hoverProps, isHovered } = (0, import_interactions6.useHover)({
1983
+ const { hoverProps, isHovered } = (0, import_interactions4.useHover)({
2099
1984
  isDisabled: isDisabled || cellProps["aria-selected"]
2100
1985
  });
2101
- const stateProps = (0, import_system36.useStateProps)({
1986
+ const stateProps = (0, import_system35.useStateProps)({
2102
1987
  disabled: isDisabled,
2103
1988
  hover: isHovered,
2104
1989
  selected: cellProps["aria-selected"]
2105
1990
  });
2106
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("td", { className: "group/cell", ...cellProps, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
1991
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("td", { className: "group/cell", ...cellProps, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2107
1992
  "div",
2108
1993
  {
2109
- className: (0, import_system36.cn)(
1994
+ className: (0, import_system35.cn)(
2110
1995
  "flex h-[30px] w-[30px] cursor-pointer items-center justify-center rounded-full p-[5.3px] text-sm font-normal aria-disabled:cursor-default",
2111
1996
  classNames2.calendarCell
2112
1997
  ),
2113
1998
  hidden: isOutsideVisibleRange,
2114
1999
  ref,
2115
- ...(0, import_utils14.mergeProps)(buttonProps, stateProps, hoverProps),
2000
+ ...(0, import_utils12.mergeProps)(buttonProps, stateProps, hoverProps),
2116
2001
  children: formattedDate
2117
2002
  }
2118
2003
  ) });
2119
2004
  };
2120
2005
 
2121
2006
  // src/Calendar/CalendarGrid.tsx
2122
- var import_jsx_runtime46 = require("react/jsx-runtime");
2007
+ var import_jsx_runtime45 = require("react/jsx-runtime");
2123
2008
  var CalendarGrid = ({ state, ...props }) => {
2124
2009
  const { locale } = (0, import_i18n4.useLocale)();
2125
2010
  const { gridProps, headerProps } = (0, import_calendar2.useCalendarGrid)(props, state);
@@ -2139,23 +2024,23 @@ var CalendarGrid = ({ state, ...props }) => {
2139
2024
  return dayFormatter.format(dateDay);
2140
2025
  });
2141
2026
  }, [locale, state.timeZone, dayFormatter]);
2142
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
2027
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
2143
2028
  "table",
2144
2029
  {
2145
2030
  className: "w-full border-spacing-[6px]",
2146
2031
  ...gridProps,
2147
2032
  cellPadding: "8",
2148
2033
  children: [
2149
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("thead", { ...headerProps, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("tr", { children: weekDays.map((day, index) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("th", { style: { fontWeight: "bolder" }, children: day.substring(0, 2) }, index)) }) }),
2150
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("tbody", { children: [...new Array(numberOfWeeksInMonth).keys()].map((weekIndex) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("tr", { children: state.getDatesInWeek(weekIndex).map(
2151
- (date, i) => date ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2034
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("thead", { ...headerProps, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("tr", { children: weekDays.map((day, index) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("th", { style: { fontWeight: "bolder" }, children: day.substring(0, 2) }, index)) }) }),
2035
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("tbody", { children: [...new Array(numberOfWeeksInMonth).keys()].map((weekIndex) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("tr", { children: state.getDatesInWeek(weekIndex).map(
2036
+ (date, i) => date ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2152
2037
  CalendarCell,
2153
2038
  {
2154
2039
  date,
2155
2040
  state
2156
2041
  },
2157
2042
  i
2158
- ) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("td", {}, i)
2043
+ ) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("td", {}, i)
2159
2044
  ) }, weekIndex)) })
2160
2045
  ]
2161
2046
  }
@@ -2167,14 +2052,14 @@ var import_i18n7 = require("@react-aria/i18n");
2167
2052
 
2168
2053
  // src/Select/Select.tsx
2169
2054
  var import_react29 = require("react");
2170
- var import_button6 = require("@react-aria/button");
2171
- var import_focus10 = require("@react-aria/focus");
2055
+ var import_button4 = require("@react-aria/button");
2056
+ var import_focus8 = require("@react-aria/focus");
2172
2057
  var import_i18n6 = require("@react-aria/i18n");
2173
2058
  var import_select = require("@react-aria/select");
2174
- var import_utils15 = require("@react-aria/utils");
2059
+ var import_utils13 = require("@react-aria/utils");
2175
2060
  var import_collections4 = require("@react-stately/collections");
2176
2061
  var import_select2 = require("@react-stately/select");
2177
- var import_system37 = require("@marigold/system");
2062
+ var import_system36 = require("@marigold/system");
2178
2063
 
2179
2064
  // src/Select/intl.ts
2180
2065
  var messages = {
@@ -2187,7 +2072,7 @@ var messages = {
2187
2072
  };
2188
2073
 
2189
2074
  // src/Select/Select.tsx
2190
- var import_jsx_runtime47 = require("react/jsx-runtime");
2075
+ var import_jsx_runtime46 = require("react/jsx-runtime");
2191
2076
  var Select = (0, import_react29.forwardRef)(
2192
2077
  ({
2193
2078
  variant,
@@ -2210,7 +2095,7 @@ var Select = (0, import_react29.forwardRef)(
2210
2095
  onSelectionChange: onChange,
2211
2096
  ...rest
2212
2097
  };
2213
- const buttonRef = (0, import_utils15.useObjectRef)(ref);
2098
+ const buttonRef = (0, import_utils13.useObjectRef)(ref);
2214
2099
  const listboxRef = (0, import_react29.useRef)(null);
2215
2100
  const state = (0, import_select2.useSelectState)(props);
2216
2101
  const {
@@ -2221,28 +2106,28 @@ var Select = (0, import_react29.forwardRef)(
2221
2106
  descriptionProps,
2222
2107
  errorMessageProps
2223
2108
  } = (0, import_select.useSelect)(props, state, buttonRef);
2224
- const { buttonProps } = (0, import_button6.useButton)(
2109
+ const { buttonProps } = (0, import_button4.useButton)(
2225
2110
  { isDisabled: disabled, ...triggerProps },
2226
2111
  buttonRef
2227
2112
  );
2228
- const { focusProps, isFocusVisible } = (0, import_focus10.useFocusRing)();
2229
- const classNames2 = (0, import_system37.useClassNames)({ component: "Select", variant, size });
2230
- const isSmallScreen = (0, import_system37.useSmallScreen)();
2231
- const stateProps = (0, import_system37.useStateProps)({
2113
+ const { focusProps, isFocusVisible } = (0, import_focus8.useFocusRing)();
2114
+ const classNames2 = (0, import_system36.useClassNames)({ component: "Select", variant, size });
2115
+ const isSmallScreen = (0, import_system36.useSmallScreen)();
2116
+ const stateProps = (0, import_system36.useStateProps)({
2232
2117
  disabled,
2233
2118
  error,
2234
2119
  focusVisible: isFocusVisible,
2235
2120
  expanded: state.isOpen,
2236
2121
  required
2237
2122
  });
2238
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
2123
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
2239
2124
  FieldBase,
2240
2125
  {
2241
2126
  variant,
2242
2127
  size,
2243
2128
  width,
2244
2129
  label: props.label,
2245
- labelProps: { as: "span", ...labelProps },
2130
+ labelProps: { elementType: "span", ...labelProps },
2246
2131
  description: props.description,
2247
2132
  descriptionProps,
2248
2133
  error,
@@ -2251,7 +2136,7 @@ var Select = (0, import_react29.forwardRef)(
2251
2136
  stateProps,
2252
2137
  disabled,
2253
2138
  children: [
2254
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2139
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2255
2140
  import_select.HiddenSelect,
2256
2141
  {
2257
2142
  state,
@@ -2261,23 +2146,23 @@ var Select = (0, import_react29.forwardRef)(
2261
2146
  isDisabled: disabled
2262
2147
  }
2263
2148
  ),
2264
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
2149
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
2265
2150
  "button",
2266
2151
  {
2267
- className: (0, import_system37.cn)(
2152
+ className: (0, import_system36.cn)(
2268
2153
  "flex w-full items-center justify-between gap-1 overflow-hidden",
2269
2154
  classNames2.select
2270
2155
  ),
2271
2156
  ref: buttonRef,
2272
- ...(0, import_utils15.mergeProps)(buttonProps, focusProps),
2157
+ ...(0, import_utils13.mergeProps)(buttonProps, focusProps),
2273
2158
  ...stateProps,
2274
2159
  children: [
2275
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "overflow-hidden whitespace-nowrap", ...valueProps, children: state.selectedItem ? state.selectedItem.rendered : props.placeholder }),
2276
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ChevronDown, { className: "h-4 w-4" })
2160
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "overflow-hidden whitespace-nowrap", ...valueProps, children: state.selectedItem ? state.selectedItem.rendered : props.placeholder }),
2161
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ChevronDown, { className: "h-4 w-4" })
2277
2162
  ]
2278
2163
  }
2279
2164
  ),
2280
- isSmallScreen ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Tray, { state, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2165
+ isSmallScreen ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Tray, { state, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2281
2166
  ListBox,
2282
2167
  {
2283
2168
  ref: listboxRef,
@@ -2286,7 +2171,7 @@ var Select = (0, import_react29.forwardRef)(
2286
2171
  size,
2287
2172
  ...menuProps
2288
2173
  }
2289
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Popover, { state, triggerRef: buttonRef, scrollRef: listboxRef, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2174
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Popover, { state, triggerRef: buttonRef, scrollRef: listboxRef, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2290
2175
  ListBox,
2291
2176
  {
2292
2177
  ref: listboxRef,
@@ -2305,7 +2190,7 @@ Select.Option = import_collections4.Item;
2305
2190
  Select.Section = import_collections4.Section;
2306
2191
 
2307
2192
  // src/Calendar/MonthDropdown.tsx
2308
- var import_jsx_runtime48 = require("react/jsx-runtime");
2193
+ var import_jsx_runtime47 = require("react/jsx-runtime");
2309
2194
  var MonthDropdown = ({ state }) => {
2310
2195
  let months = [];
2311
2196
  let formatter = (0, import_i18n7.useDateFormatter)({
@@ -2322,7 +2207,7 @@ var MonthDropdown = ({ state }) => {
2322
2207
  let date = state.focusedDate.set({ month: value });
2323
2208
  state.setFocusedDate(date);
2324
2209
  };
2325
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2210
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2326
2211
  Select,
2327
2212
  {
2328
2213
  "aria-label": "Month",
@@ -2330,7 +2215,7 @@ var MonthDropdown = ({ state }) => {
2330
2215
  selectedKey: String(state.focusedDate.month),
2331
2216
  "data-testid": "month",
2332
2217
  disabled: state.isDisabled,
2333
- children: months.map((month, i) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Select.Option, { children: month.substring(0, 3) }, i + 1))
2218
+ children: months.map((month, i) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Select.Option, { children: month.substring(0, 3) }, i + 1))
2334
2219
  }
2335
2220
  );
2336
2221
  };
@@ -2338,7 +2223,7 @@ var MonthDropdown_default = MonthDropdown;
2338
2223
 
2339
2224
  // src/Calendar/YearDropdown.tsx
2340
2225
  var import_i18n8 = require("@react-aria/i18n");
2341
- var import_jsx_runtime49 = require("react/jsx-runtime");
2226
+ var import_jsx_runtime48 = require("react/jsx-runtime");
2342
2227
  var YearDropdown = ({ state }) => {
2343
2228
  const years = [];
2344
2229
  let formatter = (0, import_i18n8.useDateFormatter)({
@@ -2357,7 +2242,7 @@ var YearDropdown = ({ state }) => {
2357
2242
  let date = years[index].value;
2358
2243
  state.setFocusedDate(date);
2359
2244
  };
2360
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2245
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2361
2246
  Select,
2362
2247
  {
2363
2248
  "aria-label": "Year",
@@ -2365,14 +2250,14 @@ var YearDropdown = ({ state }) => {
2365
2250
  onChange,
2366
2251
  "data-testid": "year",
2367
2252
  disabled: state.isDisabled,
2368
- children: years.map((year, i) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Select.Option, { children: year.formatted }, i))
2253
+ children: years.map((year, i) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Select.Option, { children: year.formatted }, i))
2369
2254
  }
2370
2255
  );
2371
2256
  };
2372
2257
  var YearDropdown_default = YearDropdown;
2373
2258
 
2374
2259
  // src/Calendar/Calendar.tsx
2375
- var import_jsx_runtime50 = require("react/jsx-runtime");
2260
+ var import_jsx_runtime49 = require("react/jsx-runtime");
2376
2261
  var Calendar = ({
2377
2262
  disabled,
2378
2263
  readOnly,
@@ -2406,16 +2291,16 @@ var Calendar = ({
2406
2291
  onFocusChange: nextFocusChange,
2407
2292
  ...nextPropsRest
2408
2293
  } = nextButtonProps;
2409
- const calendarState = (0, import_system38.useStateProps)({
2294
+ const calendarState = (0, import_system37.useStateProps)({
2410
2295
  disabled: state.isDisabled,
2411
2296
  focusVisible: state.isFocused
2412
2297
  });
2413
- const classNames2 = (0, import_system38.useClassNames)({ component: "Calendar" });
2414
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
2298
+ const classNames2 = (0, import_system37.useClassNames)({ component: "Calendar" });
2299
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
2415
2300
  "div",
2416
2301
  {
2417
2302
  tabIndex: -1,
2418
- className: (0, import_system38.cn)(
2303
+ className: (0, import_system37.cn)(
2419
2304
  "flex w-[360px] flex-col rounded-sm p-4 shadow-[0_4px_4px_rgba(165,165,165,0.25)]",
2420
2305
  classNames2.calendar
2421
2306
  ),
@@ -2423,33 +2308,33 @@ var Calendar = ({
2423
2308
  ...calendarState,
2424
2309
  ref,
2425
2310
  children: [
2426
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "mb-4 flex items-center gap-[60px]", children: [
2427
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex min-w-[170px] gap-[9px] [&_div]:flex", children: [
2428
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(MonthDropdown_default, { state }),
2429
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(YearDropdown_default, { state })
2311
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "mb-4 flex items-center gap-[60px]", children: [
2312
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex min-w-[170px] gap-[9px] [&_div]:flex", children: [
2313
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(MonthDropdown_default, { state }),
2314
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(YearDropdown_default, { state })
2430
2315
  ] }),
2431
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex w-full flex-nowrap justify-end gap-[10px] [&_button:disabled]:cursor-not-allowed [&_button]:px-2 [&_button]:py-1", children: [
2432
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2433
- Button,
2316
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex w-full flex-nowrap justify-end gap-[10px] [&_button:disabled]:cursor-not-allowed [&_button]:px-2 [&_button]:py-1", children: [
2317
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2318
+ _Button,
2434
2319
  {
2435
2320
  className: classNames2.calendarControllers,
2436
2321
  ...prevPropsRest,
2437
2322
  disabled: prevIsDisabled,
2438
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_icons.ChevronLeft, {})
2323
+ children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_icons.ChevronLeft, {})
2439
2324
  }
2440
2325
  ),
2441
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2442
- Button,
2326
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2327
+ _Button,
2443
2328
  {
2444
2329
  className: classNames2.calendarControllers,
2445
2330
  ...nextPropsRest,
2446
2331
  disabled: nextIsDisabled,
2447
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_icons.ChevronRight, {})
2332
+ children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_icons.ChevronRight, {})
2448
2333
  }
2449
2334
  )
2450
2335
  ] })
2451
2336
  ] }),
2452
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(CalendarGrid, { state })
2337
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(CalendarGrid, { state })
2453
2338
  ]
2454
2339
  }
2455
2340
  );
@@ -2458,10 +2343,10 @@ var Calendar = ({
2458
2343
  // src/DatePicker/DatePicker.tsx
2459
2344
  var import_react31 = require("react");
2460
2345
  var import_datepicker4 = require("@react-aria/datepicker");
2461
- var import_utils16 = require("@react-aria/utils");
2346
+ var import_utils14 = require("@react-aria/utils");
2462
2347
  var import_datepicker5 = require("@react-stately/datepicker");
2463
- var import_system39 = require("@marigold/system");
2464
- var import_jsx_runtime51 = require("react/jsx-runtime");
2348
+ var import_system38 = require("@marigold/system");
2349
+ var import_jsx_runtime50 = require("react/jsx-runtime");
2465
2350
  var DatePicker = ({
2466
2351
  disabled,
2467
2352
  required,
@@ -2486,7 +2371,7 @@ var DatePicker = ({
2486
2371
  ...props
2487
2372
  });
2488
2373
  const ref = (0, import_react31.useRef)(null);
2489
- const stateProps = (0, import_system39.useStateProps)({
2374
+ const stateProps = (0, import_system38.useStateProps)({
2490
2375
  focus: state.isOpen
2491
2376
  });
2492
2377
  const { groupProps, fieldProps, buttonProps, calendarProps } = (0, import_datepicker4.useDatePicker)(
@@ -2495,13 +2380,13 @@ var DatePicker = ({
2495
2380
  ref
2496
2381
  );
2497
2382
  const { isDisabled, errorMessage, description, label } = props;
2498
- const classNames2 = (0, import_system39.useClassNames)({
2383
+ const classNames2 = (0, import_system38.useClassNames)({
2499
2384
  component: "DatePicker",
2500
2385
  size,
2501
2386
  variant
2502
2387
  });
2503
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
2504
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "flex w-full min-w-[300px]", ...groupProps, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2388
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
2389
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "flex w-full min-w-[300px]", ...groupProps, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2505
2390
  DateField,
2506
2391
  {
2507
2392
  ...fieldProps,
@@ -2514,40 +2399,40 @@ var DatePicker = ({
2514
2399
  description: !state.isOpen && description,
2515
2400
  triggerRef: ref,
2516
2401
  width,
2517
- action: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: classNames2.container, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2518
- Button,
2402
+ action: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: classNames2.container, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2403
+ _Button,
2519
2404
  {
2520
- ...(0, import_utils16.mergeProps)(buttonProps, stateProps),
2521
- className: (0, import_system39.cn)("absolute right-0 top-0", classNames2.button),
2405
+ ...(0, import_utils14.mergeProps)(buttonProps, stateProps),
2406
+ className: (0, import_system38.cn)("absolute right-0 top-0", classNames2.button),
2522
2407
  disabled: isDisabled,
2523
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2408
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2524
2409
  "svg",
2525
2410
  {
2526
2411
  width: "24",
2527
2412
  height: "24",
2528
2413
  viewBox: "0 0 24 24",
2529
2414
  fill: "currentColor",
2530
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("path", { d: "M20.0906 19.2V6.6C20.0906 5.61 19.2806 4.8 18.2906 4.8H17.3906V3H15.5906V4.8H8.39062V3H6.59062V4.8H5.69063C4.69163 4.8 3.89962 5.61 3.89962 6.6L3.89062 19.2C3.89062 20.19 4.69163 21 5.69063 21H18.2906C19.2806 21 20.0906 20.19 20.0906 19.2ZM9.29062 11.1001H7.49061V12.9001H9.29062V11.1001ZM5.69062 8.40009H18.2906V6.60008H5.69062V8.40009ZM18.2906 10.2V19.2H5.69062V10.2H18.2906ZM14.6906 12.9001H16.4906V11.1001H14.6906V12.9001ZM12.8906 12.9001H11.0906V11.1001H12.8906V12.9001Z" })
2415
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { d: "M20.0906 19.2V6.6C20.0906 5.61 19.2806 4.8 18.2906 4.8H17.3906V3H15.5906V4.8H8.39062V3H6.59062V4.8H5.69063C4.69163 4.8 3.89962 5.61 3.89962 6.6L3.89062 19.2C3.89062 20.19 4.69163 21 5.69063 21H18.2906C19.2806 21 20.0906 20.19 20.0906 19.2ZM9.29062 11.1001H7.49061V12.9001H9.29062V11.1001ZM5.69062 8.40009H18.2906V6.60008H5.69062V8.40009ZM18.2906 10.2V19.2H5.69062V10.2H18.2906ZM14.6906 12.9001H16.4906V11.1001H14.6906V12.9001ZM12.8906 12.9001H11.0906V11.1001H12.8906V12.9001Z" })
2531
2416
  }
2532
2417
  )
2533
2418
  }
2534
2419
  ) })
2535
2420
  }
2536
2421
  ) }),
2537
- state.isOpen && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Popover, { triggerRef: ref, state, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Calendar, { disabled, ...calendarProps }) })
2422
+ state.isOpen && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Popover, { triggerRef: ref, state, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Calendar, { disabled, ...calendarProps }) })
2538
2423
  ] });
2539
2424
  };
2540
2425
 
2541
2426
  // src/Inset/Inset.tsx
2542
- var import_system40 = require("@marigold/system");
2543
- var import_jsx_runtime52 = require("react/jsx-runtime");
2544
- var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2427
+ var import_system39 = require("@marigold/system");
2428
+ var import_jsx_runtime51 = require("react/jsx-runtime");
2429
+ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2545
2430
  "div",
2546
2431
  {
2547
- className: (0, import_system40.cn)(
2548
- space && import_system40.paddingSpace[space],
2549
- !space && spaceX && import_system40.paddingSpaceX[spaceX],
2550
- !space && spaceY && import_system40.paddingSpaceY[spaceY]
2432
+ className: (0, import_system39.cn)(
2433
+ space && import_system39.paddingSpace[space],
2434
+ !space && spaceX && import_system39.paddingSpaceX[spaceX],
2435
+ !space && spaceY && import_system39.paddingSpaceY[spaceY]
2551
2436
  ),
2552
2437
  children
2553
2438
  }
@@ -2555,52 +2440,22 @@ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ (0, import_
2555
2440
 
2556
2441
  // src/Link/Link.tsx
2557
2442
  var import_react32 = require("react");
2558
- var import_link = require("@react-aria/link");
2559
- var import_utils17 = require("@react-aria/utils");
2560
- var import_system41 = require("@marigold/system");
2561
- var import_jsx_runtime53 = require("react/jsx-runtime");
2562
- var Link = (0, import_react32.forwardRef)(
2563
- ({
2564
- as = "a",
2565
- variant,
2566
- size,
2567
- children,
2568
- disabled,
2569
- onPress,
2570
- onPressStart,
2571
- ...props
2572
- }, ref) => {
2573
- const linkRef = (0, import_utils17.useObjectRef)(ref);
2574
- const { linkProps } = (0, import_link.useLink)(
2575
- {
2576
- ...props,
2577
- elementType: typeof as === "string" ? as : "span",
2578
- isDisabled: disabled
2579
- },
2580
- linkRef
2581
- );
2582
- const Component = as;
2583
- const classNames2 = (0, import_system41.useClassNames)({
2443
+ var import_react_aria_components6 = require("react-aria-components");
2444
+ var import_system40 = require("@marigold/system");
2445
+ var import_jsx_runtime52 = require("react/jsx-runtime");
2446
+ var _Link = (0, import_react32.forwardRef)(
2447
+ ({ variant, size, disabled, children, ...props }, ref) => {
2448
+ const classNames2 = (0, import_system40.useClassNames)({
2584
2449
  component: "Link",
2585
2450
  variant,
2586
2451
  size
2587
2452
  });
2588
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2589
- Component,
2590
- {
2591
- ...props,
2592
- role: "link",
2593
- className: classNames2,
2594
- ref: linkRef,
2595
- ...linkProps,
2596
- children
2597
- }
2598
- );
2453
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_aria_components6.Link, { ...props, ref, className: classNames2, isDisabled: disabled, children });
2599
2454
  }
2600
2455
  );
2601
2456
 
2602
2457
  // src/List/List.tsx
2603
- var import_system42 = require("@marigold/system");
2458
+ var import_system41 = require("@marigold/system");
2604
2459
 
2605
2460
  // src/List/Context.ts
2606
2461
  var import_react33 = require("react");
@@ -2608,14 +2463,14 @@ var ListContext = (0, import_react33.createContext)({});
2608
2463
  var useListContext = () => (0, import_react33.useContext)(ListContext);
2609
2464
 
2610
2465
  // src/List/ListItem.tsx
2611
- var import_jsx_runtime54 = require("react/jsx-runtime");
2466
+ var import_jsx_runtime53 = require("react/jsx-runtime");
2612
2467
  var ListItem = ({ children, ...props }) => {
2613
2468
  const { classNames: classNames2 } = useListContext();
2614
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("li", { ...props, className: classNames2, children });
2469
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("li", { ...props, className: classNames2, children });
2615
2470
  };
2616
2471
 
2617
2472
  // src/List/List.tsx
2618
- var import_jsx_runtime55 = require("react/jsx-runtime");
2473
+ var import_jsx_runtime54 = require("react/jsx-runtime");
2619
2474
  var List = ({
2620
2475
  as = "ul",
2621
2476
  children,
@@ -2624,18 +2479,18 @@ var List = ({
2624
2479
  ...props
2625
2480
  }) => {
2626
2481
  const Component = as;
2627
- const classNames2 = (0, import_system42.useClassNames)({ component: "List", variant, size });
2628
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Component, { ...props, className: classNames2[as], children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ListContext.Provider, { value: { classNames: classNames2.item }, children }) });
2482
+ const classNames2 = (0, import_system41.useClassNames)({ component: "List", variant, size });
2483
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Component, { ...props, className: classNames2[as], children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ListContext.Provider, { value: { classNames: classNames2.item }, children }) });
2629
2484
  };
2630
2485
  List.Item = ListItem;
2631
2486
 
2632
2487
  // src/Menu/Menu.tsx
2633
2488
  var import_react37 = require("react");
2634
2489
  var import_menu5 = require("@react-aria/menu");
2635
- var import_utils20 = require("@react-aria/utils");
2490
+ var import_utils17 = require("@react-aria/utils");
2636
2491
  var import_collections5 = require("@react-stately/collections");
2637
2492
  var import_tree2 = require("@react-stately/tree");
2638
- var import_system46 = require("@marigold/system");
2493
+ var import_system45 = require("@marigold/system");
2639
2494
 
2640
2495
  // src/Menu/Context.ts
2641
2496
  var import_react34 = require("react");
@@ -2644,11 +2499,11 @@ var useMenuContext = () => (0, import_react34.useContext)(MenuContext);
2644
2499
 
2645
2500
  // src/Menu/MenuItem.tsx
2646
2501
  var import_react35 = require("react");
2647
- var import_focus11 = require("@react-aria/focus");
2502
+ var import_focus9 = require("@react-aria/focus");
2648
2503
  var import_menu = require("@react-aria/menu");
2649
- var import_utils18 = require("@react-aria/utils");
2650
- var import_system43 = require("@marigold/system");
2651
- var import_jsx_runtime56 = require("react/jsx-runtime");
2504
+ var import_utils15 = require("@react-aria/utils");
2505
+ var import_system42 = require("@marigold/system");
2506
+ var import_jsx_runtime55 = require("react/jsx-runtime");
2652
2507
  var MenuItem = ({
2653
2508
  item,
2654
2509
  state,
@@ -2666,17 +2521,17 @@ var MenuItem = ({
2666
2521
  state,
2667
2522
  ref
2668
2523
  );
2669
- const { isFocusVisible, focusProps } = (0, import_focus11.useFocusRing)();
2670
- const stateProps = (0, import_system43.useStateProps)({
2524
+ const { isFocusVisible, focusProps } = (0, import_focus9.useFocusRing)();
2525
+ const stateProps = (0, import_system42.useStateProps)({
2671
2526
  focus: isFocusVisible
2672
2527
  });
2673
2528
  const { onPointerUp, ...props } = menuItemProps;
2674
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
2529
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
2675
2530
  "li",
2676
2531
  {
2677
2532
  ref,
2678
2533
  className,
2679
- ...(0, import_utils18.mergeProps)(
2534
+ ...(0, import_utils15.mergeProps)(
2680
2535
  props,
2681
2536
  { onPointerDown: onPointerUp },
2682
2537
  stateProps,
@@ -2689,19 +2544,19 @@ var MenuItem = ({
2689
2544
 
2690
2545
  // src/Menu/MenuSection.tsx
2691
2546
  var import_menu2 = require("@react-aria/menu");
2692
- var import_system44 = require("@marigold/system");
2693
- var import_jsx_runtime57 = require("react/jsx-runtime");
2547
+ var import_system43 = require("@marigold/system");
2548
+ var import_jsx_runtime56 = require("react/jsx-runtime");
2694
2549
  var MenuSection = ({ onAction, item, state }) => {
2695
2550
  let { itemProps, headingProps, groupProps } = (0, import_menu2.useMenuSection)({
2696
2551
  heading: item.rendered,
2697
2552
  "aria-label": item["aria-label"]
2698
2553
  });
2699
- const className = (0, import_system44.useClassNames)({ component: "Menu" });
2700
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
2701
- item.key !== state.collection.getFirstKey() && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Divider, { variant: "section" }) }),
2702
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("li", { ...itemProps, children: [
2703
- item.rendered && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { ...headingProps, className: className.section, children: item.rendered }),
2704
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("ul", { ...groupProps, className: "pb-1", children: [...item.props.children].map((node) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2554
+ const className = (0, import_system43.useClassNames)({ component: "Menu" });
2555
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
2556
+ item.key !== state.collection.getFirstKey() && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(_Divider, { variant: "section" }) }),
2557
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("li", { ...itemProps, children: [
2558
+ item.rendered && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { ...headingProps, className: className.section, children: item.rendered }),
2559
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("ul", { ...groupProps, className: "pb-1", children: [...item.props.children].map((node) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
2705
2560
  MenuItem,
2706
2561
  {
2707
2562
  item: node,
@@ -2718,12 +2573,12 @@ var MenuSection_default = MenuSection;
2718
2573
 
2719
2574
  // src/Menu/MenuTrigger.tsx
2720
2575
  var import_react36 = require("react");
2721
- var import_interactions7 = require("@react-aria/interactions");
2576
+ var import_interactions5 = require("@react-aria/interactions");
2722
2577
  var import_menu3 = require("@react-aria/menu");
2723
- var import_utils19 = require("@react-aria/utils");
2578
+ var import_utils16 = require("@react-aria/utils");
2724
2579
  var import_menu4 = require("@react-stately/menu");
2725
- var import_system45 = require("@marigold/system");
2726
- var import_jsx_runtime58 = require("react/jsx-runtime");
2580
+ var import_system44 = require("@marigold/system");
2581
+ var import_jsx_runtime57 = require("react/jsx-runtime");
2727
2582
  var MenuTrigger = ({
2728
2583
  disabled,
2729
2584
  open,
@@ -2732,7 +2587,7 @@ var MenuTrigger = ({
2732
2587
  }) => {
2733
2588
  const [menuTrigger, menu] = import_react36.Children.toArray(children);
2734
2589
  const menuTriggerRef = (0, import_react36.useRef)(null);
2735
- const menuRef = (0, import_utils19.useObjectRef)();
2590
+ const menuRef = (0, import_utils16.useObjectRef)();
2736
2591
  const state = (0, import_menu4.useMenuTriggerState)({
2737
2592
  isOpen: open,
2738
2593
  onOpenChange
@@ -2749,10 +2604,10 @@ var MenuTrigger = ({
2749
2604
  onClose: state.close,
2750
2605
  autoFocus: state.focusStrategy
2751
2606
  };
2752
- const isSmallScreen = (0, import_system45.useSmallScreen)();
2753
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(MenuContext.Provider, { value: menuContext, children: [
2754
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2755
- import_interactions7.PressResponder,
2607
+ const isSmallScreen = (0, import_system44.useSmallScreen)();
2608
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(MenuContext.Provider, { value: menuContext, children: [
2609
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2610
+ import_interactions5.PressResponder,
2756
2611
  {
2757
2612
  ...menuTriggerProps,
2758
2613
  ref: menuTriggerRef,
@@ -2760,23 +2615,23 @@ var MenuTrigger = ({
2760
2615
  children: menuTrigger
2761
2616
  }
2762
2617
  ),
2763
- isSmallScreen ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Tray, { state, children: menu }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Popover, { triggerRef: menuTriggerRef, scrollRef: menuRef, state, children: menu })
2618
+ isSmallScreen ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Tray, { state, children: menu }) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Popover, { triggerRef: menuTriggerRef, scrollRef: menuRef, state, children: menu })
2764
2619
  ] });
2765
2620
  };
2766
2621
 
2767
2622
  // src/Menu/Menu.tsx
2768
- var import_jsx_runtime59 = require("react/jsx-runtime");
2623
+ var import_jsx_runtime58 = require("react/jsx-runtime");
2769
2624
  var Menu = ({ variant, size, ...props }) => {
2770
2625
  const { ref: scrollRef, ...menuContext } = useMenuContext();
2771
2626
  const ownProps = { ...props, ...menuContext };
2772
2627
  const ref = (0, import_react37.useRef)(null);
2773
2628
  const state = (0, import_tree2.useTreeState)({ ...ownProps, selectionMode: "none" });
2774
2629
  const { menuProps } = (0, import_menu5.useMenu)(ownProps, state, ref);
2775
- (0, import_utils20.useSyncRef)({ ref: scrollRef }, ref);
2776
- const classNames2 = (0, import_system46.useClassNames)({ component: "Menu", variant, size });
2777
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("ul", { ref, className: classNames2.container, ...menuProps, children: [...state.collection].map((item) => {
2630
+ (0, import_utils17.useSyncRef)({ ref: scrollRef }, ref);
2631
+ const classNames2 = (0, import_system45.useClassNames)({ component: "Menu", variant, size });
2632
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("ul", { ref, className: classNames2.container, ...menuProps, children: [...state.collection].map((item) => {
2778
2633
  if (item.type === "section") {
2779
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2634
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2780
2635
  MenuSection_default,
2781
2636
  {
2782
2637
  item,
@@ -2786,7 +2641,7 @@ var Menu = ({ variant, size, ...props }) => {
2786
2641
  item.key
2787
2642
  );
2788
2643
  }
2789
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2644
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2790
2645
  MenuItem,
2791
2646
  {
2792
2647
  item,
@@ -2803,26 +2658,26 @@ Menu.Item = import_collections5.Item;
2803
2658
  Menu.Section = import_collections5.Section;
2804
2659
 
2805
2660
  // src/Menu/ActionMenu.tsx
2806
- var import_system47 = require("@marigold/system");
2807
- var import_jsx_runtime60 = require("react/jsx-runtime");
2661
+ var import_system46 = require("@marigold/system");
2662
+ var import_jsx_runtime59 = require("react/jsx-runtime");
2808
2663
  var ActionMenu = (props) => {
2809
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Menu.Trigger, { children: [
2810
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Button, { variant: "menu", size: "small", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_system47.SVG, { viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("path", { d: "M12.0117 7.47656C13.2557 7.47656 14.2734 6.45879 14.2734 5.21484C14.2734 3.9709 13.2557 2.95312 12.0117 2.95312C10.7678 2.95312 9.75 3.9709 9.75 5.21484C9.75 6.45879 10.7678 7.47656 12.0117 7.47656ZM12.0117 9.73828C10.7678 9.73828 9.75 10.7561 9.75 12C9.75 13.2439 10.7678 14.2617 12.0117 14.2617C13.2557 14.2617 14.2734 13.2439 14.2734 12C14.2734 10.7561 13.2557 9.73828 12.0117 9.73828ZM12.0117 16.5234C10.7678 16.5234 9.75 17.5412 9.75 18.7852C9.75 20.0291 10.7678 21.0469 12.0117 21.0469C13.2557 21.0469 14.2734 20.0291 14.2734 18.7852C14.2734 17.5412 13.2557 16.5234 12.0117 16.5234Z" }) }) }),
2811
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Menu, { ...props })
2664
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Menu.Trigger, { children: [
2665
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(_Button, { variant: "menu", size: "small", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_system46.SVG, { viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("path", { d: "M12.0117 7.47656C13.2557 7.47656 14.2734 6.45879 14.2734 5.21484C14.2734 3.9709 13.2557 2.95312 12.0117 2.95312C10.7678 2.95312 9.75 3.9709 9.75 5.21484C9.75 6.45879 10.7678 7.47656 12.0117 7.47656ZM12.0117 9.73828C10.7678 9.73828 9.75 10.7561 9.75 12C9.75 13.2439 10.7678 14.2617 12.0117 14.2617C13.2557 14.2617 14.2734 13.2439 14.2734 12C14.2734 10.7561 13.2557 9.73828 12.0117 9.73828ZM12.0117 16.5234C10.7678 16.5234 9.75 17.5412 9.75 18.7852C9.75 20.0291 10.7678 21.0469 12.0117 21.0469C13.2557 21.0469 14.2734 20.0291 14.2734 18.7852C14.2734 17.5412 13.2557 16.5234 12.0117 16.5234Z" }) }) }),
2666
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Menu, { ...props })
2812
2667
  ] });
2813
2668
  };
2814
2669
 
2815
2670
  // src/Message/Message.tsx
2816
- var import_system48 = require("@marigold/system");
2817
- var import_jsx_runtime61 = require("react/jsx-runtime");
2671
+ var import_system47 = require("@marigold/system");
2672
+ var import_jsx_runtime60 = require("react/jsx-runtime");
2818
2673
  var icons = {
2819
- info: () => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2674
+ info: () => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2820
2675
  "svg",
2821
2676
  {
2822
2677
  xmlns: "http://www.w3.org/2000/svg",
2823
2678
  viewBox: "0 0 24 24",
2824
2679
  fill: "currentColor",
2825
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2680
+ children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2826
2681
  "path",
2827
2682
  {
2828
2683
  fillRule: "evenodd",
@@ -2832,13 +2687,13 @@ var icons = {
2832
2687
  )
2833
2688
  }
2834
2689
  ),
2835
- warning: () => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2690
+ warning: () => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2836
2691
  "svg",
2837
2692
  {
2838
2693
  xmlns: "http://www.w3.org/2000/svg",
2839
2694
  viewBox: "0 0 24 24",
2840
2695
  fill: "currentColor",
2841
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2696
+ children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2842
2697
  "path",
2843
2698
  {
2844
2699
  fillRule: "evenodd",
@@ -2848,13 +2703,13 @@ var icons = {
2848
2703
  )
2849
2704
  }
2850
2705
  ),
2851
- error: () => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2706
+ error: () => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2852
2707
  "svg",
2853
2708
  {
2854
2709
  xmlns: "http://www.w3.org/2000/svg",
2855
2710
  viewBox: "0 0 24 24",
2856
2711
  fill: "currentColor",
2857
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2712
+ children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2858
2713
  "path",
2859
2714
  {
2860
2715
  fillRule: "evenodd",
@@ -2872,26 +2727,26 @@ var Message = ({
2872
2727
  children,
2873
2728
  ...props
2874
2729
  }) => {
2875
- const classNames2 = (0, import_system48.useClassNames)({ component: "Message", variant, size });
2730
+ const classNames2 = (0, import_system47.useClassNames)({ component: "Message", variant, size });
2876
2731
  const Icon3 = icons[variant];
2877
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
2732
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
2878
2733
  "div",
2879
2734
  {
2880
- className: (0, import_system48.cn)(
2735
+ className: (0, import_system47.cn)(
2881
2736
  "grid auto-rows-min grid-cols-[min-content_auto] gap-1",
2882
2737
  classNames2.container
2883
2738
  ),
2884
2739
  ...props,
2885
2740
  children: [
2886
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: (0, import_system48.cn)("col-span-1 h-5 w-5 self-center", classNames2.icon), children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon3, {}) }),
2887
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2741
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: (0, import_system47.cn)("col-span-1 h-5 w-5 self-center", classNames2.icon), children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Icon3, {}) }),
2742
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2888
2743
  "div",
2889
2744
  {
2890
- className: (0, import_system48.cn)("col-start-2 row-start-1 self-center", classNames2.title),
2745
+ className: (0, import_system47.cn)("col-start-2 row-start-1 self-center", classNames2.title),
2891
2746
  children: messageTitle
2892
2747
  }
2893
2748
  ),
2894
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: (0, import_system48.cn)("col-start-2", classNames2.content), children })
2749
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: (0, import_system47.cn)("col-start-2", classNames2.content), children })
2895
2750
  ]
2896
2751
  }
2897
2752
  );
@@ -2899,22 +2754,22 @@ var Message = ({
2899
2754
 
2900
2755
  // src/NumberField/NumberField.tsx
2901
2756
  var import_react39 = require("react");
2902
- var import_focus12 = require("@react-aria/focus");
2757
+ var import_focus10 = require("@react-aria/focus");
2903
2758
  var import_i18n10 = require("@react-aria/i18n");
2904
- var import_interactions9 = require("@react-aria/interactions");
2759
+ var import_interactions7 = require("@react-aria/interactions");
2905
2760
  var import_numberfield = require("@react-aria/numberfield");
2906
- var import_utils22 = require("@react-aria/utils");
2761
+ var import_utils19 = require("@react-aria/utils");
2907
2762
  var import_numberfield2 = require("@react-stately/numberfield");
2908
- var import_system50 = require("@marigold/system");
2763
+ var import_system49 = require("@marigold/system");
2909
2764
 
2910
2765
  // src/NumberField/StepButton.tsx
2911
2766
  var import_react38 = require("react");
2912
- var import_button7 = require("@react-aria/button");
2913
- var import_interactions8 = require("@react-aria/interactions");
2914
- var import_utils21 = require("@react-aria/utils");
2915
- var import_system49 = require("@marigold/system");
2916
- var import_jsx_runtime62 = require("react/jsx-runtime");
2917
- var Plus = () => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2767
+ var import_button5 = require("@react-aria/button");
2768
+ var import_interactions6 = require("@react-aria/interactions");
2769
+ var import_utils18 = require("@react-aria/utils");
2770
+ var import_system48 = require("@marigold/system");
2771
+ var import_jsx_runtime61 = require("react/jsx-runtime");
2772
+ var Plus = () => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2918
2773
  "path",
2919
2774
  {
2920
2775
  fillRule: "evenodd",
@@ -2922,7 +2777,7 @@ var Plus = () => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("svg", { width: 1
2922
2777
  d: "M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z"
2923
2778
  }
2924
2779
  ) });
2925
- var Minus = () => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2780
+ var Minus = () => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2926
2781
  "path",
2927
2782
  {
2928
2783
  fillRule: "evenodd",
@@ -2936,36 +2791,36 @@ var StepButton = ({
2936
2791
  ...props
2937
2792
  }) => {
2938
2793
  const ref = (0, import_react38.useRef)(null);
2939
- const { buttonProps, isPressed } = (0, import_button7.useButton)(
2794
+ const { buttonProps, isPressed } = (0, import_button5.useButton)(
2940
2795
  { ...props, elementType: "div" },
2941
2796
  ref
2942
2797
  );
2943
- const { hoverProps, isHovered } = (0, import_interactions8.useHover)(props);
2944
- const stateProps = (0, import_system49.useStateProps)({
2798
+ const { hoverProps, isHovered } = (0, import_interactions6.useHover)(props);
2799
+ const stateProps = (0, import_system48.useStateProps)({
2945
2800
  active: isPressed,
2946
2801
  hover: isHovered,
2947
2802
  disabled: props.isDisabled
2948
2803
  });
2949
2804
  const Icon3 = direction === "up" ? Plus : Minus;
2950
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2805
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2951
2806
  "div",
2952
2807
  {
2953
- className: (0, import_system49.cn)(
2808
+ className: (0, import_system48.cn)(
2954
2809
  [
2955
2810
  "flex items-center justify-center",
2956
2811
  "cursor-pointer data-[disabled]:cursor-not-allowed"
2957
2812
  ],
2958
2813
  className
2959
2814
  ),
2960
- ...(0, import_utils21.mergeProps)(buttonProps, hoverProps),
2815
+ ...(0, import_utils18.mergeProps)(buttonProps, hoverProps),
2961
2816
  ...stateProps,
2962
- children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Icon3, {})
2817
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon3, {})
2963
2818
  }
2964
2819
  );
2965
2820
  };
2966
2821
 
2967
2822
  // src/NumberField/NumberField.tsx
2968
- var import_jsx_runtime63 = require("react/jsx-runtime");
2823
+ var import_jsx_runtime62 = require("react/jsx-runtime");
2969
2824
  var NumberField = (0, import_react39.forwardRef)(
2970
2825
  ({
2971
2826
  variant,
@@ -2987,7 +2842,7 @@ var NumberField = (0, import_react39.forwardRef)(
2987
2842
  };
2988
2843
  const showStepper = !hideStepper;
2989
2844
  const { locale } = (0, import_i18n10.useLocale)();
2990
- const inputRef = (0, import_utils22.useObjectRef)(ref);
2845
+ const inputRef = (0, import_utils19.useObjectRef)(ref);
2991
2846
  const state = (0, import_numberfield2.useNumberFieldState)({ ...props, locale });
2992
2847
  const {
2993
2848
  labelProps,
@@ -2998,13 +2853,13 @@ var NumberField = (0, import_react39.forwardRef)(
2998
2853
  incrementButtonProps,
2999
2854
  decrementButtonProps
3000
2855
  } = (0, import_numberfield.useNumberField)(props, state, inputRef);
3001
- const { hoverProps, isHovered } = (0, import_interactions9.useHover)({ isDisabled: disabled });
3002
- const { focusProps, isFocused } = (0, import_focus12.useFocusRing)({
2856
+ const { hoverProps, isHovered } = (0, import_interactions7.useHover)({ isDisabled: disabled });
2857
+ const { focusProps, isFocused } = (0, import_focus10.useFocusRing)({
3003
2858
  within: true,
3004
2859
  isTextInput: true,
3005
2860
  autoFocus: props.autoFocus
3006
2861
  });
3007
- const stateProps = (0, import_system50.useStateProps)({
2862
+ const stateProps = (0, import_system49.useStateProps)({
3008
2863
  hover: isHovered,
3009
2864
  focus: isFocused,
3010
2865
  disabled,
@@ -3012,12 +2867,12 @@ var NumberField = (0, import_react39.forwardRef)(
3012
2867
  readOnly,
3013
2868
  required
3014
2869
  });
3015
- const classNames2 = (0, import_system50.useClassNames)({
2870
+ const classNames2 = (0, import_system49.useClassNames)({
3016
2871
  component: "NumberField",
3017
2872
  size,
3018
2873
  variant
3019
2874
  });
3020
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2875
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3021
2876
  FieldBase,
3022
2877
  {
3023
2878
  label: props.label,
@@ -3031,16 +2886,16 @@ var NumberField = (0, import_react39.forwardRef)(
3031
2886
  variant,
3032
2887
  size,
3033
2888
  width,
3034
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
2889
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
3035
2890
  "div",
3036
2891
  {
3037
2892
  "data-group": true,
3038
- className: (0, import_system50.cn)("flex items-stretch", classNames2.group),
2893
+ className: (0, import_system49.cn)("flex items-stretch", classNames2.group),
3039
2894
  "data-testid": "number-field-container",
3040
- ...(0, import_utils22.mergeProps)(groupProps, focusProps, hoverProps),
2895
+ ...(0, import_utils19.mergeProps)(groupProps, focusProps, hoverProps),
3041
2896
  ...stateProps,
3042
2897
  children: [
3043
- showStepper && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2898
+ showStepper && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3044
2899
  StepButton,
3045
2900
  {
3046
2901
  className: classNames2.stepper,
@@ -3048,20 +2903,17 @@ var NumberField = (0, import_react39.forwardRef)(
3048
2903
  ...decrementButtonProps
3049
2904
  }
3050
2905
  ),
3051
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2906
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3052
2907
  Input,
3053
2908
  {
3054
2909
  ref: inputRef,
3055
2910
  variant,
3056
2911
  size,
3057
- className: {
3058
- input: "min-w-0 items-stretch border-none"
3059
- },
3060
2912
  ...inputProps,
3061
2913
  ...stateProps
3062
2914
  }
3063
2915
  ) }),
3064
- showStepper && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2916
+ showStepper && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3065
2917
  StepButton,
3066
2918
  {
3067
2919
  className: classNames2.stepper,
@@ -3078,28 +2930,25 @@ var NumberField = (0, import_react39.forwardRef)(
3078
2930
  );
3079
2931
 
3080
2932
  // src/Provider/index.ts
3081
- var import_system52 = require("@marigold/system");
2933
+ var import_system51 = require("@marigold/system");
3082
2934
 
3083
2935
  // src/Provider/MarigoldProvider.tsx
3084
2936
  var import_overlays7 = require("@react-aria/overlays");
3085
- var import_system51 = require("@marigold/system");
3086
- var import_jsx_runtime64 = require("react/jsx-runtime");
2937
+ var import_system50 = require("@marigold/system");
2938
+ var import_jsx_runtime63 = require("react/jsx-runtime");
3087
2939
  function MarigoldProvider({
3088
2940
  children,
3089
2941
  theme
3090
2942
  }) {
3091
- const outerTheme = (0, import_system51.useTheme)();
3092
- const isTopLevel = outerTheme === import_system51.defaultTheme;
3093
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_system51.ThemeProvider, { theme, children: isTopLevel ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_overlays7.OverlayProvider, { children }) : children });
2943
+ const outerTheme = (0, import_system50.useTheme)();
2944
+ const isTopLevel = outerTheme === import_system50.defaultTheme;
2945
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_system50.ThemeProvider, { theme, children: isTopLevel ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_overlays7.OverlayProvider, { children }) : children });
3094
2946
  }
3095
2947
 
3096
2948
  // src/Radio/Radio.tsx
3097
- var import_react41 = require("react");
3098
- var import_focus13 = require("@react-aria/focus");
3099
- var import_interactions10 = require("@react-aria/interactions");
3100
- var import_radio3 = require("@react-aria/radio");
3101
- var import_utils23 = require("@react-aria/utils");
3102
- var import_system54 = 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");
3103
2952
 
3104
2953
  // src/Radio/Context.ts
3105
2954
  var import_react40 = require("react");
@@ -3109,59 +2958,149 @@ var RadioGroupContext = (0, import_react40.createContext)(
3109
2958
  var useRadioGroupContext = () => (0, import_react40.useContext)(RadioGroupContext);
3110
2959
 
3111
2960
  // src/Radio/RadioGroup.tsx
3112
- var import_radio = require("@react-aria/radio");
3113
- 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");
3114
2966
  var import_system53 = require("@marigold/system");
2967
+
2968
+ // src/HelpText/_HelpText.tsx
2969
+ var import_react_aria_components7 = require("react-aria-components");
2970
+ var import_system52 = require("@marigold/system");
2971
+ var import_jsx_runtime64 = require("react/jsx-runtime");
2972
+ var HelpText2 = ({
2973
+ variant,
2974
+ size,
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
3115
3012
  var import_jsx_runtime65 = require("react/jsx-runtime");
3116
- var RadioGroup = ({
3117
- children,
3118
- orientation = "vertical",
3119
- width,
3120
- required,
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
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(_Label, { variant, size, children: label }),
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,
3121
3063
  disabled,
3064
+ required,
3122
3065
  readOnly,
3123
- error,
3066
+ description,
3067
+ errorMessage,
3068
+ orientation = "vertical",
3069
+ children,
3070
+ width,
3124
3071
  ...rest
3125
3072
  }) => {
3073
+ const classNames2 = (0, import_system54.useClassNames)({ component: "Radio", variant, size });
3126
3074
  const props = {
3127
- isRequired: required,
3128
3075
  isDisabled: disabled,
3129
3076
  isReadOnly: readOnly,
3130
- validationState: error ? "invalid" : "valid",
3077
+ isRequired: required,
3078
+ isInvalid: error,
3131
3079
  ...rest
3132
3080
  };
3133
- const state = (0, import_radio2.useRadioGroupState)(props);
3134
- const { radioGroupProps, labelProps, errorMessageProps, descriptionProps } = (0, import_radio.useRadioGroup)(props, state);
3135
- const stateProps = (0, import_system53.useStateProps)({
3136
- disabled,
3137
- readOnly,
3138
- error,
3139
- required
3140
- });
3141
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3142
- FieldBase,
3081
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3082
+ FieldBase2,
3143
3083
  {
3084
+ as: import_react_aria_components8.RadioGroup,
3144
3085
  width,
3145
- label: props.label,
3146
- labelProps: { as: "span", ...labelProps },
3147
- description: props.description,
3148
- descriptionProps,
3149
- error,
3150
- errorMessage: props.errorMessage,
3151
- errorMessageProps,
3152
- disabled,
3153
- stateProps,
3154
- ...radioGroupProps,
3155
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3086
+ label,
3087
+ description,
3088
+ errorMessage,
3089
+ variant,
3090
+ size,
3091
+ ...props,
3092
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3156
3093
  "div",
3157
3094
  {
3158
3095
  role: "presentation",
3096
+ "data-testid": "group",
3159
3097
  "data-orientation": orientation,
3160
- className: (0, import_system53.cn)(
3098
+ className: (0, import_system54.cn)(
3099
+ classNames2.group,
3161
3100
  "flex items-start",
3162
3101
  orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
3163
3102
  ),
3164
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(RadioGroupContext.Provider, { value: { width, error, state }, children })
3103
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(RadioGroupContext.Provider, { value: { width, variant, size }, children })
3165
3104
  }
3166
3105
  )
3167
3106
  }
@@ -3169,203 +3108,109 @@ var RadioGroup = ({
3169
3108
  };
3170
3109
 
3171
3110
  // src/Radio/Radio.tsx
3172
- var import_jsx_runtime66 = require("react/jsx-runtime");
3173
- var Dot = () => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
3174
- var Icon2 = ({ checked, className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime66.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)(
3175
3114
  "div",
3176
3115
  {
3177
- className: (0, import_system54.cn)(
3116
+ className: (0, import_system55.cn)(
3178
3117
  "bg-secondary-50 flex h-4 w-4 items-center justify-center rounded-[50%] border p-1",
3179
3118
  className
3180
3119
  ),
3181
3120
  "aria-hidden": "true",
3182
3121
  ...props,
3183
- children: checked ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Dot, {}) : null
3122
+ children: checked ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Dot, {}) : null
3184
3123
  }
3185
3124
  );
3186
- var Radio = (0, import_react41.forwardRef)(
3187
- ({ width, disabled, ...props }, ref) => {
3188
- const {
3189
- variant,
3190
- size,
3191
- error,
3192
- width: groupWidth,
3193
- state
3194
- } = useRadioGroupContext();
3195
- const inputRef = (0, import_utils23.useObjectRef)(ref);
3196
- const { inputProps } = (0, import_radio3.useRadio)(
3197
- { isDisabled: disabled, ...props },
3198
- state,
3199
- inputRef
3200
- );
3201
- const classNames2 = (0, import_system54.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)({
3202
3129
  component: "Radio",
3203
3130
  variant: variant || props.variant,
3204
3131
  size: size || props.size
3205
3132
  });
3206
- const { hoverProps, isHovered } = (0, import_interactions10.useHover)({ isDisabled: disabled });
3207
- const { isFocusVisible, focusProps } = (0, import_focus13.useFocusRing)();
3208
- const stateProps = (0, import_system54.useStateProps)({
3209
- hover: isHovered,
3210
- focus: isFocusVisible,
3211
- checked: inputProps.checked,
3212
- disabled: inputProps.disabled,
3213
- readOnly: props.readOnly,
3214
- error
3215
- });
3216
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
3217
- "label",
3133
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3134
+ import_react_aria_components9.Radio,
3218
3135
  {
3219
- className: (0, import_system54.cn)(
3136
+ ref,
3137
+ className: (0, import_system55.cn)(
3220
3138
  "group/radio",
3221
3139
  "relative flex items-center gap-[1ch]",
3222
3140
  width || groupWidth || "w-full",
3223
3141
  classNames2.container
3224
3142
  ),
3225
- ...(0, import_utils23.mergeProps)(hoverProps, stateProps),
3226
- children: [
3227
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3228
- "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,
3229
3149
  {
3230
- ref: inputRef,
3231
- className: (0, import_system54.cn)(
3232
- "absolute left-0 top-0 z-[1] h-full w-full opacity-[0.0001]",
3233
- inputProps.disabled ? "cursor-not-allowed" : "cursor-pointer"
3234
- ),
3235
- ...(0, import_utils23.mergeProps)(inputProps, focusProps)
3150
+ checked: isSelected,
3151
+ className: (0, import_system55.cn)(
3152
+ disabled ? "cursor-not-allowed" : "cursor-pointer",
3153
+ classNames2.radio
3154
+ )
3236
3155
  }
3237
3156
  ),
3238
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon2, { checked: inputProps.checked, className: classNames2.radio }),
3239
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: classNames2.label, children: props.children })
3240
- ]
3157
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: classNames2.label, children })
3158
+ ] })
3241
3159
  }
3242
3160
  );
3243
3161
  }
3244
3162
  );
3245
- Radio.Group = RadioGroup;
3163
+ _Radio.Group = _RadioGroup;
3246
3164
 
3247
3165
  // src/Slider/Slider.tsx
3248
3166
  var import_react43 = require("react");
3249
- var import_i18n11 = require("@react-aria/i18n");
3250
- var import_slider2 = require("@react-aria/slider");
3251
- var import_utils25 = require("@react-aria/utils");
3252
- var import_slider3 = require("@react-stately/slider");
3167
+ var import_react_aria_components10 = require("react-aria-components");
3253
3168
  var import_system56 = require("@marigold/system");
3254
-
3255
- // src/Slider/Thumb.tsx
3256
- var import_react42 = require("react");
3257
- var import_focus14 = require("@react-aria/focus");
3258
- var import_slider = require("@react-aria/slider");
3259
- var import_utils24 = require("@react-aria/utils");
3260
- var import_system55 = require("@marigold/system");
3261
-
3262
- // src/VisuallyHidden/VisuallyHidden.tsx
3263
- var import_visually_hidden = require("@react-aria/visually-hidden");
3264
-
3265
- // src/Slider/Thumb.tsx
3266
- var import_jsx_runtime67 = require("react/jsx-runtime");
3267
- var Thumb = ({ state, trackRef, className, ...props }) => {
3268
- const { disabled } = props;
3269
- const inputRef = (0, import_react42.useRef)(null);
3270
- const { isFocusVisible, focusProps, isFocused } = (0, import_focus14.useFocusRing)();
3271
- const focused = isFocused || isFocusVisible || state.isThumbDragging(0);
3272
- const stateProps = (0, import_system55.useStateProps)({
3273
- focus: focused,
3274
- disabled
3275
- });
3276
- const { thumbProps, inputProps } = (0, import_slider.useSliderThumb)(
3277
- {
3278
- index: 0,
3279
- trackRef,
3280
- inputRef,
3281
- isDisabled: disabled
3282
- },
3283
- state
3284
- );
3285
- (0, import_react42.useEffect)(() => {
3286
- state.setThumbEditable(0, !disabled);
3287
- }, [disabled, state]);
3288
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: (0, import_system55.cn)("top-1/2", className), ...thumbProps, ...stateProps, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_visually_hidden.VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3289
- "input",
3290
- {
3291
- type: "range",
3292
- ref: inputRef,
3293
- ...(0, import_utils24.mergeProps)(inputProps, focusProps)
3294
- }
3295
- ) }) });
3296
- };
3297
-
3298
- // src/Slider/Slider.tsx
3299
3169
  var import_jsx_runtime68 = require("react/jsx-runtime");
3300
- var Slider = (0, import_react43.forwardRef)(
3301
- ({ variant, size, width = "full", ...props }, ref) => {
3302
- const { formatOptions } = props;
3303
- const trackRef = (0, import_utils25.useObjectRef)(ref);
3304
- const numberFormatter = (0, import_i18n11.useNumberFormatter)(formatOptions);
3305
- const state = (0, import_slider3.useSliderState)({ ...props, numberFormatter });
3306
- const { groupProps, trackProps, labelProps, outputProps } = (0, import_slider2.useSlider)(
3307
- {
3308
- label: props.children,
3309
- ...props
3310
- },
3311
- state,
3312
- trackRef
3313
- );
3170
+ var _Slider = (0, import_react43.forwardRef)(
3171
+ ({
3172
+ thumbLabels,
3173
+ variant,
3174
+ size,
3175
+ width = "full",
3176
+ disabled,
3177
+ ...rest
3178
+ }, ref) => {
3314
3179
  const classNames2 = (0, import_system56.useClassNames)({
3315
3180
  component: "Slider",
3316
3181
  variant,
3317
3182
  size
3318
3183
  });
3319
- const sliderState = (0, import_system56.useStateProps)({
3320
- disabled: props.disabled
3321
- });
3184
+ const props = {
3185
+ isDisabled: disabled,
3186
+ ...rest
3187
+ };
3322
3188
  return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
3323
- "div",
3189
+ import_react_aria_components10.Slider,
3324
3190
  {
3325
- className: (0, import_system56.cn)("flex touch-none flex-col", import_system56.width[width]),
3326
- ...groupProps,
3191
+ className: (0, import_system56.cn)(
3192
+ "grid grid-cols-[auto_1fr] gap-y-1",
3193
+ classNames2.container,
3194
+ import_system56.width[width]
3195
+ ),
3196
+ ref,
3197
+ ...props,
3327
3198
  children: [
3328
- /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex self-stretch", children: [
3329
- props.children && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("label", { className: classNames2.label, ...labelProps, children: props.children }),
3330
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3331
- "output",
3332
- {
3333
- className: (0, import_system56.cn)(
3334
- "flex flex-shrink-0 flex-grow basis-auto",
3335
- classNames2.output
3336
- ),
3337
- ...outputProps,
3338
- children: state.getThumbValueLabel(0)
3339
- }
3340
- )
3341
- ] }),
3342
- /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
3343
- "div",
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,
3344
3203
  {
3345
- className: "h-8 w-full cursor-pointer data-[disabled]:cursor-not-allowed",
3346
- ...trackProps,
3347
- ...sliderState,
3348
- ref: trackRef,
3349
- children: [
3350
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3351
- "div",
3352
- {
3353
- className: (0, import_system56.cn)(
3354
- "absolute top-2/4 h-2 w-full -translate-y-1/2",
3355
- classNames2.track
3356
- )
3357
- }
3358
- ),
3359
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3360
- Thumb,
3361
- {
3362
- state,
3363
- trackRef,
3364
- disabled: props.disabled,
3365
- className: classNames2.thumb
3366
- }
3367
- )
3368
- ]
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,
3207
+ {
3208
+ className: (0, import_system56.cn)("top-1/2 cursor-pointer", classNames2.thumb),
3209
+ index: i,
3210
+ "aria-label": thumbLabels == null ? void 0 : thumbLabels[i]
3211
+ },
3212
+ i
3213
+ ))
3369
3214
  }
3370
3215
  )
3371
3216
  ]
@@ -3409,66 +3254,41 @@ var Stack = ({
3409
3254
 
3410
3255
  // src/Switch/Switch.tsx
3411
3256
  var import_react44 = require("react");
3412
- var import_focus15 = require("@react-aria/focus");
3413
- var import_switch = require("@react-aria/switch");
3414
- var import_utils26 = require("@react-aria/utils");
3415
- var import_toggle2 = require("@react-stately/toggle");
3257
+ var import_react_aria_components11 = require("react-aria-components");
3416
3258
  var import_system58 = require("@marigold/system");
3417
3259
  var import_jsx_runtime71 = require("react/jsx-runtime");
3418
- var Switch = (0, import_react44.forwardRef)(
3260
+ var _Switch = (0, import_react44.forwardRef)(
3419
3261
  ({
3420
3262
  variant,
3421
3263
  size,
3422
3264
  width = "full",
3265
+ children,
3423
3266
  selected,
3424
3267
  disabled,
3425
3268
  readOnly,
3426
- defaultChecked,
3427
- ...rest
3269
+ ...props
3428
3270
  }, ref) => {
3429
- const inputRef = (0, import_utils26.useObjectRef)(ref);
3430
- const props = {
3431
- isSelected: selected,
3432
- isDisabled: disabled,
3433
- isReadOnly: readOnly,
3434
- defaultSelected: defaultChecked,
3435
- ...rest
3436
- };
3437
- const state = (0, import_toggle2.useToggleState)(props);
3438
- const { inputProps } = (0, import_switch.useSwitch)(props, state, inputRef);
3439
- const { isFocusVisible, focusProps } = (0, import_focus15.useFocusRing)();
3440
- const stateProps = (0, import_system58.useStateProps)({
3441
- selected: state.isSelected,
3442
- disabled,
3443
- readOnly,
3444
- focus: isFocusVisible
3445
- });
3446
3271
  const classNames2 = (0, import_system58.useClassNames)({ component: "Switch", size, variant });
3447
3272
  return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
3448
- "label",
3273
+ import_react_aria_components11.Switch,
3449
3274
  {
3275
+ ...props,
3276
+ ref,
3450
3277
  className: (0, import_system58.cn)(
3451
- "group/switch",
3452
3278
  import_system58.width[width],
3453
- "relative flex items-center justify-between gap-[1ch]"
3279
+ "group/switch",
3280
+ "flex items-center justify-between gap-[1ch]",
3281
+ classNames2.container
3454
3282
  ),
3455
- ...stateProps,
3283
+ isDisabled: disabled,
3284
+ isReadOnly: readOnly,
3456
3285
  children: [
3457
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3458
- "input",
3459
- {
3460
- ref: inputRef,
3461
- className: "absolute left-0 top-0 z-[1] h-full w-full cursor-pointer opacity-[0.0001] disabled:cursor-not-allowed",
3462
- ...inputProps,
3463
- ...focusProps
3464
- }
3465
- ),
3466
- props.children && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_jsx_runtime71.Fragment, { children: props.children }),
3467
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3286
+ children,
3287
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: " relative", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3468
3288
  "div",
3469
3289
  {
3470
3290
  className: (0, import_system58.cn)(
3471
- "relative h-6 flex-shrink-0 flex-grow-0 basis-12 rounded-3xl",
3291
+ "h-6 w-12 basis-12 rounded-3xl group-disabled/switch:cursor-not-allowed ",
3472
3292
  classNames2.track
3473
3293
  ),
3474
3294
  children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
@@ -3485,7 +3305,7 @@ var Switch = (0, import_react44.forwardRef)(
3485
3305
  }
3486
3306
  )
3487
3307
  }
3488
- )
3308
+ ) })
3489
3309
  ]
3490
3310
  }
3491
3311
  );
@@ -3513,9 +3333,9 @@ var TableBody = ({ children }) => {
3513
3333
 
3514
3334
  // src/Table/TableCell.tsx
3515
3335
  var import_react46 = require("react");
3516
- var import_focus16 = require("@react-aria/focus");
3336
+ var import_focus11 = require("@react-aria/focus");
3517
3337
  var import_table2 = require("@react-aria/table");
3518
- var import_utils27 = require("@react-aria/utils");
3338
+ var import_utils20 = require("@react-aria/utils");
3519
3339
  var import_system59 = require("@marigold/system");
3520
3340
  var import_jsx_runtime73 = require("react/jsx-runtime");
3521
3341
  var TableCell = ({ cell }) => {
@@ -3538,14 +3358,14 @@ var TableCell = ({ cell }) => {
3538
3358
  onMouseDown: (e) => e.stopPropagation(),
3539
3359
  onPointerDown: (e) => e.stopPropagation()
3540
3360
  };
3541
- const { focusProps, isFocusVisible } = (0, import_focus16.useFocusRing)();
3361
+ const { focusProps, isFocusVisible } = (0, import_focus11.useFocusRing)();
3542
3362
  const stateProps = (0, import_system59.useStateProps)({ disabled, focusVisible: isFocusVisible });
3543
3363
  return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
3544
3364
  "td",
3545
3365
  {
3546
3366
  ref,
3547
3367
  className: classNames2 == null ? void 0 : classNames2.cell,
3548
- ...(0, import_utils27.mergeProps)(cellProps, focusProps),
3368
+ ...(0, import_utils20.mergeProps)(cellProps, focusProps),
3549
3369
  ...stateProps,
3550
3370
  children: cell.rendered
3551
3371
  }
@@ -3554,9 +3374,9 @@ var TableCell = ({ cell }) => {
3554
3374
 
3555
3375
  // src/Table/TableCheckboxCell.tsx
3556
3376
  var import_react47 = require("react");
3557
- var import_focus17 = require("@react-aria/focus");
3377
+ var import_focus12 = require("@react-aria/focus");
3558
3378
  var import_table3 = require("@react-aria/table");
3559
- var import_utils28 = require("@react-aria/utils");
3379
+ var import_utils21 = require("@react-aria/utils");
3560
3380
  var import_system60 = require("@marigold/system");
3561
3381
 
3562
3382
  // src/Table/utils.ts
@@ -3595,26 +3415,26 @@ var TableCheckboxCell = ({ cell }) => {
3595
3415
  const { checkboxProps } = mapCheckboxProps(
3596
3416
  (0, import_table3.useTableSelectionCheckbox)({ key: cell.parentKey }, state)
3597
3417
  );
3598
- const { focusProps, isFocusVisible } = (0, import_focus17.useFocusRing)();
3418
+ const { focusProps, isFocusVisible } = (0, import_focus12.useFocusRing)();
3599
3419
  const stateProps = (0, import_system60.useStateProps)({ disabled, focusVisible: isFocusVisible });
3600
3420
  return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
3601
3421
  "td",
3602
3422
  {
3603
3423
  ref,
3604
3424
  className: (0, import_system60.cn)("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
3605
- ...(0, import_utils28.mergeProps)(gridCellProps, focusProps),
3425
+ ...(0, import_utils21.mergeProps)(gridCellProps, focusProps),
3606
3426
  ...stateProps,
3607
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Checkbox, { ...checkboxProps })
3427
+ children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(_Checkbox, { ...checkboxProps })
3608
3428
  }
3609
3429
  );
3610
3430
  };
3611
3431
 
3612
3432
  // src/Table/TableColumnHeader.tsx
3613
3433
  var import_react48 = require("react");
3614
- var import_focus18 = require("@react-aria/focus");
3615
- var import_interactions11 = require("@react-aria/interactions");
3434
+ var import_focus13 = require("@react-aria/focus");
3435
+ var import_interactions8 = require("@react-aria/interactions");
3616
3436
  var import_table4 = require("@react-aria/table");
3617
- var import_utils30 = require("@react-aria/utils");
3437
+ var import_utils23 = require("@react-aria/utils");
3618
3438
  var import_icons2 = require("@marigold/icons");
3619
3439
  var import_system61 = require("@marigold/system");
3620
3440
  var import_system62 = require("@marigold/system");
@@ -3633,8 +3453,8 @@ var TableColumnHeader = ({
3633
3453
  state,
3634
3454
  ref
3635
3455
  );
3636
- const { hoverProps, isHovered } = (0, import_interactions11.useHover)({});
3637
- const { focusProps, isFocusVisible } = (0, import_focus18.useFocusRing)();
3456
+ const { hoverProps, isHovered } = (0, import_interactions8.useHover)({});
3457
+ const { focusProps, isFocusVisible } = (0, import_focus13.useFocusRing)();
3638
3458
  const stateProps = (0, import_system61.useStateProps)({
3639
3459
  hover: isHovered,
3640
3460
  focusVisible: isFocusVisible
@@ -3645,7 +3465,7 @@ var TableColumnHeader = ({
3645
3465
  colSpan: column.colspan,
3646
3466
  ref,
3647
3467
  className: (0, import_system61.cn)("cursor-default", import_system62.width[width], classNames2 == null ? void 0 : classNames2.header),
3648
- ...(0, import_utils30.mergeProps)(columnHeaderProps, hoverProps, focusProps),
3468
+ ...(0, import_utils23.mergeProps)(columnHeaderProps, hoverProps, focusProps),
3649
3469
  ...stateProps,
3650
3470
  children: [
3651
3471
  column.rendered,
@@ -3676,10 +3496,10 @@ var TableHeaderRow = ({ item, children }) => {
3676
3496
 
3677
3497
  // src/Table/TableRow.tsx
3678
3498
  var import_react50 = require("react");
3679
- var import_focus19 = require("@react-aria/focus");
3680
- var import_interactions12 = require("@react-aria/interactions");
3499
+ var import_focus14 = require("@react-aria/focus");
3500
+ var import_interactions9 = require("@react-aria/interactions");
3681
3501
  var import_table7 = require("@react-aria/table");
3682
- var import_utils31 = require("@react-aria/utils");
3502
+ var import_utils24 = require("@react-aria/utils");
3683
3503
  var import_system63 = require("@marigold/system");
3684
3504
  var import_jsx_runtime78 = require("react/jsx-runtime");
3685
3505
  var TableRow = ({ children, row }) => {
@@ -3700,8 +3520,8 @@ var TableRow = ({ children, row }) => {
3700
3520
  );
3701
3521
  const disabled = state.disabledKeys.has(row.key);
3702
3522
  const selected = state.selectionManager.isSelected(row.key);
3703
- const { focusProps, isFocusVisible } = (0, import_focus19.useFocusRing)({ within: true });
3704
- const { hoverProps, isHovered } = (0, import_interactions12.useHover)({
3523
+ const { focusProps, isFocusVisible } = (0, import_focus14.useFocusRing)({ within: true });
3524
+ const { hoverProps, isHovered } = (0, import_interactions9.useHover)({
3705
3525
  isDisabled: disabled || !interactive
3706
3526
  });
3707
3527
  const stateProps = (0, import_system63.useStateProps)({
@@ -3721,7 +3541,7 @@ var TableRow = ({ children, row }) => {
3721
3541
  ],
3722
3542
  classNames2 == null ? void 0 : classNames2.row
3723
3543
  ),
3724
- ...(0, import_utils31.mergeProps)(rowProps, focusProps, hoverProps),
3544
+ ...(0, import_utils24.mergeProps)(rowProps, focusProps, hoverProps),
3725
3545
  ...stateProps,
3726
3546
  children
3727
3547
  }
@@ -3730,10 +3550,10 @@ var TableRow = ({ children, row }) => {
3730
3550
 
3731
3551
  // src/Table/TableSelectAllCell.tsx
3732
3552
  var import_react51 = require("react");
3733
- var import_focus20 = require("@react-aria/focus");
3734
- var import_interactions13 = require("@react-aria/interactions");
3553
+ var import_focus15 = require("@react-aria/focus");
3554
+ var import_interactions10 = require("@react-aria/interactions");
3735
3555
  var import_table8 = require("@react-aria/table");
3736
- var import_utils32 = require("@react-aria/utils");
3556
+ var import_utils25 = require("@react-aria/utils");
3737
3557
  var import_system64 = require("@marigold/system");
3738
3558
  var import_jsx_runtime79 = require("react/jsx-runtime");
3739
3559
  var TableSelectAllCell = ({
@@ -3750,8 +3570,8 @@ var TableSelectAllCell = ({
3750
3570
  ref
3751
3571
  );
3752
3572
  const { checkboxProps } = mapCheckboxProps((0, import_table8.useTableSelectAllCheckbox)(state));
3753
- const { hoverProps, isHovered } = (0, import_interactions13.useHover)({});
3754
- const { focusProps, isFocusVisible } = (0, import_focus20.useFocusRing)();
3573
+ const { hoverProps, isHovered } = (0, import_interactions10.useHover)({});
3574
+ const { focusProps, isFocusVisible } = (0, import_focus15.useFocusRing)();
3755
3575
  const stateProps = (0, import_system64.useStateProps)({
3756
3576
  hover: isHovered,
3757
3577
  focusVisible: isFocusVisible
@@ -3765,9 +3585,9 @@ var TableSelectAllCell = ({
3765
3585
  ["text-center align-middle leading-none"],
3766
3586
  classNames2 == null ? void 0 : classNames2.header
3767
3587
  ),
3768
- ...(0, import_utils32.mergeProps)(columnHeaderProps, hoverProps, focusProps),
3588
+ ...(0, import_utils25.mergeProps)(columnHeaderProps, hoverProps, focusProps),
3769
3589
  ...stateProps,
3770
- children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Checkbox, { ...checkboxProps })
3590
+ children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(_Checkbox, { ...checkboxProps })
3771
3591
  }
3772
3592
  );
3773
3593
  };
@@ -3857,7 +3677,7 @@ Table.Row = import_table10.Row;
3857
3677
  // src/Text/Text.tsx
3858
3678
  var import_system66 = require("@marigold/system");
3859
3679
  var import_jsx_runtime81 = require("react/jsx-runtime");
3860
- var Text = ({
3680
+ var Text2 = ({
3861
3681
  variant,
3862
3682
  size,
3863
3683
  color,
@@ -3903,10 +3723,10 @@ var Text = ({
3903
3723
 
3904
3724
  // src/TextArea/TextArea.tsx
3905
3725
  var import_react53 = require("react");
3906
- var import_focus21 = require("@react-aria/focus");
3907
- var import_interactions14 = require("@react-aria/interactions");
3726
+ var import_focus16 = require("@react-aria/focus");
3727
+ var import_interactions11 = require("@react-aria/interactions");
3908
3728
  var import_textfield = require("@react-aria/textfield");
3909
- var import_utils34 = require("@react-aria/utils");
3729
+ var import_utils27 = require("@react-aria/utils");
3910
3730
  var import_system67 = require("@marigold/system");
3911
3731
  var import_jsx_runtime82 = require("react/jsx-runtime");
3912
3732
  var TextArea = (0, import_react53.forwardRef)(
@@ -3922,7 +3742,7 @@ var TextArea = (0, import_react53.forwardRef)(
3922
3742
  ...props
3923
3743
  }, ref) => {
3924
3744
  const { label, description, errorMessage } = props;
3925
- const textAreaRef = (0, import_utils34.useObjectRef)(ref);
3745
+ const textAreaRef = (0, import_utils27.useObjectRef)(ref);
3926
3746
  const { labelProps, inputProps, descriptionProps, errorMessageProps } = (0, import_textfield.useTextField)(
3927
3747
  {
3928
3748
  inputElementType: "textarea",
@@ -3934,8 +3754,8 @@ var TextArea = (0, import_react53.forwardRef)(
3934
3754
  },
3935
3755
  textAreaRef
3936
3756
  );
3937
- const { hoverProps, isHovered } = (0, import_interactions14.useHover)({});
3938
- const { focusProps, isFocusVisible } = (0, import_focus21.useFocusRing)();
3757
+ const { hoverProps, isHovered } = (0, import_interactions11.useHover)({});
3758
+ const { focusProps, isFocusVisible } = (0, import_focus16.useFocusRing)();
3939
3759
  const stateProps = (0, import_system67.useStateProps)({
3940
3760
  hover: isHovered,
3941
3761
  focus: isFocusVisible,
@@ -3977,16 +3797,16 @@ var TextArea = (0, import_react53.forwardRef)(
3977
3797
 
3978
3798
  // src/TextField/TextField.tsx
3979
3799
  var import_react54 = require("react");
3980
- var import_focus22 = require("@react-aria/focus");
3981
- var import_interactions15 = require("@react-aria/interactions");
3800
+ var import_focus17 = require("@react-aria/focus");
3801
+ var import_interactions12 = require("@react-aria/interactions");
3982
3802
  var import_textfield2 = require("@react-aria/textfield");
3983
- var import_utils35 = require("@react-aria/utils");
3803
+ var import_utils28 = require("@react-aria/utils");
3984
3804
  var import_system68 = require("@marigold/system");
3985
3805
  var import_jsx_runtime83 = require("react/jsx-runtime");
3986
3806
  var TextField = (0, import_react54.forwardRef)(
3987
3807
  ({ variant, size, width, disabled, required, readOnly, error, ...props }, ref) => {
3988
3808
  const { label, description, errorMessage, autoFocus } = props;
3989
- const inputRef = (0, import_utils35.useObjectRef)(ref);
3809
+ const inputRef = (0, import_utils28.useObjectRef)(ref);
3990
3810
  const { labelProps, inputProps, descriptionProps, errorMessageProps } = (0, import_textfield2.useTextField)(
3991
3811
  {
3992
3812
  isDisabled: disabled,
@@ -3997,8 +3817,8 @@ var TextField = (0, import_react54.forwardRef)(
3997
3817
  },
3998
3818
  inputRef
3999
3819
  );
4000
- const { hoverProps, isHovered } = (0, import_interactions15.useHover)({});
4001
- const { focusProps, isFocused } = (0, import_focus22.useFocusRing)({
3820
+ const { hoverProps, isHovered } = (0, import_interactions12.useHover)({});
3821
+ const { focusProps, isFocused } = (0, import_focus17.useFocusRing)({
4002
3822
  isTextInput: true,
4003
3823
  autoFocus
4004
3824
  });
@@ -4030,7 +3850,7 @@ var TextField = (0, import_react54.forwardRef)(
4030
3850
  ref: inputRef,
4031
3851
  variant,
4032
3852
  size,
4033
- ...(0, import_utils35.mergeProps)(focusProps, inputProps, hoverProps)
3853
+ ...(0, import_utils28.mergeProps)(focusProps, inputProps, hoverProps)
4034
3854
  }
4035
3855
  )
4036
3856
  }
@@ -4080,7 +3900,7 @@ var useTooltipContext = () => (0, import_react55.useContext)(TooltipContext);
4080
3900
 
4081
3901
  // src/Tooltip/TooltipTrigger.tsx
4082
3902
  var import_react56 = require("react");
4083
- var import_focus23 = require("@react-aria/focus");
3903
+ var import_focus18 = require("@react-aria/focus");
4084
3904
  var import_overlays8 = require("@react-aria/overlays");
4085
3905
  var import_tooltip = require("@react-aria/tooltip");
4086
3906
  var import_tooltip2 = require("@react-stately/tooltip");
@@ -4121,7 +3941,7 @@ var TooltipTrigger = ({
4121
3941
  isOpen: state.isOpen,
4122
3942
  overlayRef
4123
3943
  });
4124
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_focus23.FocusableProvider, { ref: tooltipTriggerRef, ...triggerProps, children: [
3944
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_focus18.FocusableProvider, { ref: tooltipTriggerRef, ...triggerProps, children: [
4125
3945
  tooltipTrigger,
4126
3946
  /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
4127
3947
  TooltipContext.Provider,
@@ -4180,15 +4000,15 @@ var import_system72 = require("@marigold/system");
4180
4000
 
4181
4001
  // src/TagGroup/Tag.tsx
4182
4002
  var import_react57 = __toESM(require("react"));
4183
- var import_button8 = require("@react-aria/button");
4184
- var import_focus24 = require("@react-aria/focus");
4003
+ var import_button6 = require("@react-aria/button");
4004
+ var import_focus19 = require("@react-aria/focus");
4185
4005
  var import_tag = require("@react-aria/tag");
4186
- var import_utils36 = require("@react-aria/utils");
4006
+ var import_utils29 = require("@react-aria/utils");
4187
4007
  var import_system71 = require("@marigold/system");
4188
4008
  var import_jsx_runtime87 = require("react/jsx-runtime");
4189
4009
  var CloseButton2 = ({ className, ...props }) => {
4190
4010
  const ref = (0, import_react57.useRef)(null);
4191
- const { buttonProps } = (0, import_button8.useButton)({ ...props }, ref);
4011
+ const { buttonProps } = (0, import_button6.useButton)({ ...props }, ref);
4192
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" }) }) });
4193
4013
  };
4194
4014
  var Tag = ({ variant, size, item, state, ...rest }) => {
@@ -4197,7 +4017,7 @@ var Tag = ({ variant, size, item, state, ...rest }) => {
4197
4017
  ...rest
4198
4018
  };
4199
4019
  let ref = import_react57.default.useRef(null);
4200
- let { focusProps } = (0, import_focus24.useFocusRing)({ within: true });
4020
+ let { focusProps } = (0, import_focus19.useFocusRing)({ within: true });
4201
4021
  const { rowProps, gridCellProps, allowsRemoving, removeButtonProps } = (0, import_tag.useTag)(
4202
4022
  {
4203
4023
  ...props,
@@ -4211,7 +4031,7 @@ var Tag = ({ variant, size, item, state, ...rest }) => {
4211
4031
  "span",
4212
4032
  {
4213
4033
  ref,
4214
- ...(0, import_utils36.mergeProps)(rowProps, focusProps),
4034
+ ...(0, import_utils29.mergeProps)(rowProps, focusProps),
4215
4035
  className: classNames2.tag,
4216
4036
  children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { ...gridCellProps, className: classNames2.gridCell, children: [
4217
4037
  /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { children: item.rendered }),
@@ -4290,6 +4110,9 @@ var TagGroup = ({
4290
4110
  var Tag2 = import_collections6.Item;
4291
4111
  Tag2.Group = TagGroup;
4292
4112
 
4113
+ // src/VisuallyHidden/VisuallyHidden.tsx
4114
+ var import_visually_hidden = require("@react-aria/visually-hidden");
4115
+
4293
4116
  // src/XLoader/XLoader.tsx
4294
4117
  var import_react60 = require("react");
4295
4118
  var import_system73 = require("@marigold/system");
@@ -4521,9 +4344,9 @@ var useTabContext = () => (0, import_react61.useContext)(TabContext);
4521
4344
 
4522
4345
  // src/Tabs/Tab.tsx
4523
4346
  var import_react62 = require("react");
4524
- var import_interactions16 = require("@react-aria/interactions");
4347
+ var import_interactions13 = require("@react-aria/interactions");
4525
4348
  var import_tabs = require("@react-aria/tabs");
4526
- var import_utils37 = require("@react-aria/utils");
4349
+ var import_utils30 = require("@react-aria/utils");
4527
4350
  var import_system74 = require("@marigold/system");
4528
4351
  var import_jsx_runtime90 = require("react/jsx-runtime");
4529
4352
  var Tab = ({ item, state }) => {
@@ -4531,10 +4354,10 @@ var Tab = ({ item, state }) => {
4531
4354
  const ref = (0, import_react62.useRef)(null);
4532
4355
  const { tabProps, isSelected } = (0, import_tabs.useTab)({ key }, state, ref);
4533
4356
  const disabled = tabProps["aria-disabled"];
4534
- const { hoverProps, isHovered } = (0, import_interactions16.useHover)({
4357
+ const { hoverProps, isHovered } = (0, import_interactions13.useHover)({
4535
4358
  isDisabled: disabled || isSelected
4536
4359
  });
4537
- const { focusProps } = (0, import_interactions16.useFocus)({});
4360
+ const { focusProps } = (0, import_interactions13.useFocus)({});
4538
4361
  const stateProps = (0, import_system74.useStateProps)({ active: isSelected, hover: isHovered });
4539
4362
  const { classNames: classNames2 } = useTabContext();
4540
4363
  return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
@@ -4544,7 +4367,7 @@ var Tab = ({ item, state }) => {
4544
4367
  "flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
4545
4368
  classNames2.tab
4546
4369
  ),
4547
- ...(0, import_utils37.mergeProps)(tabProps, stateProps, focusProps, hoverProps),
4370
+ ...(0, import_utils30.mergeProps)(tabProps, stateProps, focusProps, hoverProps),
4548
4371
  ref,
4549
4372
  children: rendered
4550
4373
  }
@@ -4671,6 +4494,7 @@ Tabs.Item = import_collections7.Item;
4671
4494
  Underlay,
4672
4495
  VisuallyHidden,
4673
4496
  XLoader,
4497
+ _Slider,
4674
4498
  useAsyncList,
4675
4499
  useCheckboxGroupContext,
4676
4500
  useFieldGroupContext,