@marigold/components 6.3.1 → 6.4.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.mjs CHANGED
@@ -14,107 +14,30 @@ import { useTreeState } from "@react-stately/tree";
14
14
 
15
15
  // src/Accordion/AccordionItem.tsx
16
16
  import { useEffect, useRef } from "react";
17
- import { FocusRing, useFocusRing as useFocusRing2 } from "@react-aria/focus";
18
- import { mergeProps as mergeProps3 } from "@react-aria/utils";
19
- import { useClassNames as useClassNames2, useStateProps as useStateProps2 } from "@marigold/system";
20
-
21
- // src/Button/Button.tsx
22
- import { forwardRef } from "react";
23
- import { useButton } from "@react-aria/button";
24
- import { useFocusRing } from "@react-aria/focus";
25
- import { useHover } from "@react-aria/interactions";
26
- import { mergeProps, useObjectRef } from "@react-aria/utils";
17
+ import { FocusRing, useFocusRing } from "@react-aria/focus";
18
+ import { mergeProps as mergeProps2 } from "@react-aria/utils";
27
19
  import { cn, useClassNames, useStateProps } from "@marigold/system";
28
- import { jsx } from "react/jsx-runtime";
29
- var Button = forwardRef(
30
- ({
31
- as = "button",
32
- children,
33
- variant,
34
- size,
35
- disabled,
36
- onPress,
37
- onPressStart,
38
- onPressEnd,
39
- onPressChange,
40
- onPressUp,
41
- fullWidth,
42
- className,
43
- excludeFromTabOrder,
44
- ...props
45
- }, ref) => {
46
- const Component = as;
47
- const buttonRef = useObjectRef(ref);
48
- const { hoverProps, isHovered } = useHover({ isDisabled: disabled });
49
- const { isFocusVisible, focusProps } = useFocusRing({
50
- autoFocus: props.autoFocus
51
- });
52
- const { buttonProps, isPressed } = useButton(
53
- {
54
- /**
55
- * `react-aria` only expected `Element` but we casted
56
- * it to a `HTMLButtonElement` internally.
57
- */
58
- ...props,
59
- onPress,
60
- onPressStart,
61
- onPressEnd,
62
- onPressChange,
63
- onPressUp,
64
- elementType: typeof as === "string" ? as : "span",
65
- isDisabled: disabled,
66
- excludeFromTabOrder
67
- },
68
- buttonRef
69
- );
70
- const classNames2 = useClassNames({
71
- component: "Button",
72
- variant,
73
- size,
74
- className
75
- });
76
- const stateProps = useStateProps({
77
- active: isPressed,
78
- focusVisible: isFocusVisible,
79
- hover: isHovered
80
- });
81
- return /* @__PURE__ */ jsx(
82
- Component,
83
- {
84
- ...mergeProps(buttonProps, focusProps, hoverProps, props),
85
- ...stateProps,
86
- ref: buttonRef,
87
- className: cn(
88
- "inline-flex items-center justify-center gap-[0.5ch]",
89
- classNames2,
90
- fullWidth ? "w-full" : void 0
91
- ),
92
- children
93
- }
94
- );
95
- }
96
- );
97
20
 
98
21
  // src/Chevron/ChevronUp.tsx
99
- import { forwardRef as forwardRef2 } from "react";
22
+ import { forwardRef } from "react";
100
23
  import { SVG } from "@marigold/system";
101
- import { jsx as jsx2 } from "react/jsx-runtime";
102
- var ChevronUp = forwardRef2(
103
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx2(SVG, { className, ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ jsx2("path", { d: "M5.97563 16.8506L12 10.8394L18.0244 16.8506L19.875 15L12 7.125L4.125 15L5.97563 16.8506Z" }) })
24
+ import { jsx } from "react/jsx-runtime";
25
+ var ChevronUp = forwardRef(
26
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx(SVG, { className, ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ jsx("path", { d: "M5.97563 16.8506L12 10.8394L18.0244 16.8506L19.875 15L12 7.125L4.125 15L5.97563 16.8506Z" }) })
104
27
  );
105
28
 
106
29
  // src/Chevron/ChevronDown.tsx
107
- import { forwardRef as forwardRef3 } from "react";
30
+ import { forwardRef as forwardRef2 } from "react";
108
31
  import { SVG as SVG2 } from "@marigold/system";
109
- import { jsx as jsx3 } from "react/jsx-runtime";
110
- var ChevronDown = forwardRef3(
111
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx3(SVG2, { className, ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ jsx3("path", { d: "M5.97563 7.125L12 13.1363L18.0244 7.125L19.875 8.97563L12 16.8506L4.125 8.97563L5.97563 7.125Z" }) })
32
+ import { jsx as jsx2 } from "react/jsx-runtime";
33
+ var ChevronDown = forwardRef2(
34
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx2(SVG2, { className, ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ jsx2("path", { d: "M5.97563 7.125L12 13.1363L18.0244 7.125L19.875 8.97563L12 16.8506L4.125 8.97563L5.97563 7.125Z" }) })
112
35
  );
113
36
 
114
37
  // src/Accordion/useAccordionItem.ts
115
- import { useButton as useButton2 } from "@react-aria/button";
38
+ import { useButton } from "@react-aria/button";
116
39
  import { useSelectableItem } from "@react-aria/selection";
117
- import { mergeProps as mergeProps2, useId } from "@react-aria/utils";
40
+ import { mergeProps, useId } from "@react-aria/utils";
118
41
  import { isAppleDevice } from "@react-aria/utils";
119
42
  import { isMac } from "@react-aria/utils";
120
43
  function isNonContiguousSelectionModifier(e) {
@@ -182,8 +105,8 @@ function useAccordionItem(props, state, ref) {
182
105
  }
183
106
  }
184
107
  };
185
- let { buttonProps } = useButton2(
186
- mergeProps2(itemProps, {
108
+ let { buttonProps } = useButton(
109
+ mergeProps(itemProps, {
187
110
  id: buttonId,
188
111
  elementType: "button",
189
112
  isDisabled,
@@ -208,7 +131,7 @@ function useAccordionItem(props, state, ref) {
208
131
  }
209
132
 
210
133
  // src/Accordion/AccordionItem.tsx
211
- import { jsx as jsx4, jsxs } from "react/jsx-runtime";
134
+ import { jsx as jsx3, jsxs } from "react/jsx-runtime";
212
135
  var AccordionItem = ({
213
136
  item,
214
137
  state,
@@ -241,30 +164,33 @@ var AccordionItem = ({
241
164
  state,
242
165
  ref
243
166
  );
244
- const { isFocusVisible, focusProps } = useFocusRing2();
245
- const stateProps = useStateProps2({
167
+ const { isFocusVisible, focusProps } = useFocusRing();
168
+ const stateProps = useStateProps({
246
169
  focus: isFocusVisible,
247
170
  expanded: defaultExpanded || expanded
248
171
  });
249
- const classNames2 = useClassNames2({ component: "Accordion", variant, size });
172
+ const classNames2 = useClassNames({ component: "Accordion", variant, size });
250
173
  return /* @__PURE__ */ jsxs("div", { className: "flex flex-col", ...props, children: [
251
- /* @__PURE__ */ jsx4(FocusRing, { within: true, children: /* @__PURE__ */ jsxs(
252
- Button,
174
+ /* @__PURE__ */ jsx3(FocusRing, { within: true, children: /* @__PURE__ */ jsxs(
175
+ "button",
253
176
  {
254
- className: classNames2.button,
255
- ...mergeProps3(buttonProps, stateProps, props),
177
+ className: cn(
178
+ "inline-flex items-center justify-center gap-[0.5ch]",
179
+ classNames2.button
180
+ ),
181
+ ...mergeProps2(buttonProps, stateProps, props),
256
182
  ref,
257
183
  "aria-label": item.textValue,
258
184
  children: [
259
185
  title,
260
- !expanded ? /* @__PURE__ */ jsx4(ChevronUp, { className: "h3 w-6" }) : /* @__PURE__ */ jsx4(ChevronDown, { className: "h3 w-6" })
186
+ expanded ? /* @__PURE__ */ jsx3(ChevronUp, { className: "h3 w-6" }) : /* @__PURE__ */ jsx3(ChevronDown, { className: "h3 w-6" })
261
187
  ]
262
188
  }
263
189
  ) }),
264
- expanded || defaultExpanded ? /* @__PURE__ */ jsx4(
190
+ expanded || defaultExpanded ? /* @__PURE__ */ jsx3(
265
191
  "div",
266
192
  {
267
- ...mergeProps3(regionProps, focusProps, stateProps),
193
+ ...mergeProps2(regionProps, focusProps, stateProps),
268
194
  className: classNames2.item,
269
195
  children: item.props.children
270
196
  }
@@ -273,7 +199,7 @@ var AccordionItem = ({
273
199
  };
274
200
 
275
201
  // src/Accordion/Accordion.tsx
276
- import { jsx as jsx5 } from "react/jsx-runtime";
202
+ import { jsx as jsx4 } from "react/jsx-runtime";
277
203
  var Accordion = ({ children, ...props }) => {
278
204
  const ownProps = {
279
205
  ...props,
@@ -298,7 +224,7 @@ var Accordion = ({ children, ...props }) => {
298
224
  state,
299
225
  ref
300
226
  );
301
- return /* @__PURE__ */ jsx5("div", { ...accordionProps, ref, children: [...state.collection].map((item) => /* @__PURE__ */ jsx5(
227
+ return /* @__PURE__ */ jsx4("div", { ...accordionProps, ref, children: [...state.collection].map((item) => /* @__PURE__ */ jsx4(
302
228
  AccordionItem,
303
229
  {
304
230
  title: item.props.title,
@@ -315,7 +241,7 @@ Accordion.Item = Item;
315
241
  // src/Aside/Aside.tsx
316
242
  import { Children as Children2 } from "react";
317
243
  import { cn as cn2, createVar, gapSpace } from "@marigold/system";
318
- import { jsx as jsx6, jsxs as jsxs2 } from "react/jsx-runtime";
244
+ import { jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
319
245
  var classNames = {
320
246
  aside: "grow basis-[--sideWidth]",
321
247
  content: "basis-0 grow-[999] [min-inline-size:--wrap]"
@@ -342,7 +268,7 @@ var Aside = ({
342
268
  !stretch && "items-start"
343
269
  ),
344
270
  children: [
345
- /* @__PURE__ */ jsx6(
271
+ /* @__PURE__ */ jsx5(
346
272
  "div",
347
273
  {
348
274
  className: classNames[side === "left" ? "aside" : "content"],
@@ -350,7 +276,7 @@ var Aside = ({
350
276
  children: left
351
277
  }
352
278
  ),
353
- /* @__PURE__ */ jsx6(
279
+ /* @__PURE__ */ jsx5(
354
280
  "div",
355
281
  {
356
282
  className: classNames[side === "right" ? "aside" : "content"],
@@ -365,13 +291,13 @@ var Aside = ({
365
291
 
366
292
  // src/Aspect/Aspect.tsx
367
293
  import { aspect, cn as cn3, createVar as createVar2 } from "@marigold/system";
368
- import { jsx as jsx7 } from "react/jsx-runtime";
294
+ import { jsx as jsx6 } from "react/jsx-runtime";
369
295
  var Aspect = ({
370
296
  ratio = "square",
371
297
  maxWidth,
372
298
  children
373
299
  }) => {
374
- return /* @__PURE__ */ jsx7(
300
+ return /* @__PURE__ */ jsx6(
375
301
  "div",
376
302
  {
377
303
  className: cn3(
@@ -396,12 +322,12 @@ import { useComboBoxState } from "@react-stately/combobox";
396
322
  import {
397
323
  cn as cn6,
398
324
  width as twWidth,
399
- useClassNames as useClassNames5
325
+ useClassNames as useClassNames4
400
326
  } from "@marigold/system";
401
327
 
402
328
  // src/HelpText/HelpText.tsx
403
- import { SVG as SVG3, cn as cn4, useClassNames as useClassNames3 } from "@marigold/system";
404
- import { Fragment, jsx as jsx8, jsxs as jsxs3 } from "react/jsx-runtime";
329
+ import { SVG as SVG3, cn as cn4, useClassNames as useClassNames2 } from "@marigold/system";
330
+ import { Fragment, jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
405
331
  var HelpText = ({
406
332
  variant,
407
333
  size,
@@ -414,48 +340,53 @@ var HelpText = ({
414
340
  ...props
415
341
  }) => {
416
342
  const hasErrorMessage = errorMessage && error;
417
- const classNames2 = useClassNames3({
343
+ const classNames2 = useClassNames2({
418
344
  component: "HelpText",
419
345
  variant,
420
346
  size
421
347
  });
422
- return /* @__PURE__ */ jsx8(
348
+ return /* @__PURE__ */ jsx7(
423
349
  "div",
424
350
  {
425
351
  ...props,
426
352
  ...hasErrorMessage ? errorMessageProps : descriptionProps,
427
353
  className: cn4("flex items-center gap-1", classNames2.container),
428
354
  children: hasErrorMessage ? /* @__PURE__ */ jsxs3(Fragment, { children: [
429
- /* @__PURE__ */ jsx8(
355
+ /* @__PURE__ */ jsx7(
430
356
  SVG3,
431
357
  {
432
358
  className: cn4("h-4 w-4", classNames2.icon),
433
359
  viewBox: "0 0 24 24",
434
360
  role: "presentation",
435
- children: /* @__PURE__ */ jsx8("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" })
361
+ children: /* @__PURE__ */ jsx7("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" })
436
362
  }
437
363
  ),
438
364
  errorMessage
439
- ] }) : /* @__PURE__ */ jsx8(Fragment, { children: description })
365
+ ] }) : /* @__PURE__ */ jsx7(Fragment, { children: description })
440
366
  }
441
367
  );
442
368
  };
443
369
 
444
370
  // src/Label/Label.tsx
445
- import { SVG as SVG4, cn as cn5, createVar as createVar3, useClassNames as useClassNames4 } from "@marigold/system";
371
+ import { Label } from "react-aria-components";
372
+ import { SVG as SVG4, cn as cn5, createVar as createVar3, useClassNames as useClassNames3 } from "@marigold/system";
373
+
374
+ // src/FieldBase/FieldGroup.tsx
375
+ import { createContext, useContext } from "react";
376
+ import { jsx as jsx8 } from "react/jsx-runtime";
377
+ var FieldGroupContext = createContext({});
378
+ var useFieldGroupContext = () => useContext(FieldGroupContext);
379
+ var FieldGroup = ({ labelWidth, children }) => {
380
+ return /* @__PURE__ */ jsx8(FieldGroupContext.Provider, { value: { labelWidth }, children });
381
+ };
382
+
383
+ // src/Label/Label.tsx
446
384
  import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
447
- var Label = ({
448
- as = "label",
449
- children,
450
- variant,
451
- size,
452
- labelWidth,
453
- ...props
454
- }) => {
455
- const Component = as;
456
- const classNames2 = useClassNames4({ component: "Label", size, variant });
385
+ var _Label = ({ size, variant, children, ...props }) => {
386
+ const classNames2 = useClassNames3({ component: "Label", size, variant });
387
+ const { labelWidth } = useFieldGroupContext();
457
388
  return /* @__PURE__ */ jsxs4(
458
- Component,
389
+ Label,
459
390
  {
460
391
  ...props,
461
392
  className: cn5(classNames2.container, "flex w-[var(--labelWidth)]"),
@@ -477,17 +408,8 @@ var Label = ({
477
408
  );
478
409
  };
479
410
 
480
- // src/FieldBase/FieldGroup.tsx
481
- import { createContext, useContext } from "react";
482
- import { jsx as jsx10 } from "react/jsx-runtime";
483
- var FieldGroupContext = createContext({});
484
- var useFieldGroupContext = () => useContext(FieldGroupContext);
485
- var FieldGroup = ({ labelWidth, children }) => {
486
- return /* @__PURE__ */ jsx10(FieldGroupContext.Provider, { value: { labelWidth }, children });
487
- };
488
-
489
411
  // src/FieldBase/FieldBase.tsx
490
- import { jsx as jsx11, jsxs as jsxs5 } from "react/jsx-runtime";
412
+ import { jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
491
413
  var FieldBase = ({
492
414
  children,
493
415
  variant,
@@ -505,8 +427,7 @@ var FieldBase = ({
505
427
  ...props
506
428
  }) => {
507
429
  const hasHelpText = !!description || errorMessage && error;
508
- const { labelWidth } = useFieldGroupContext();
509
- const classNames2 = useClassNames5({
430
+ const classNames2 = useClassNames4({
510
431
  component: "Field",
511
432
  variant,
512
433
  size
@@ -518,18 +439,9 @@ var FieldBase = ({
518
439
  ...stateProps,
519
440
  className: cn6("group/field", twWidth[width], classNames2),
520
441
  children: [
521
- label && /* @__PURE__ */ jsx11(
522
- Label,
523
- {
524
- variant,
525
- size,
526
- labelWidth,
527
- ...labelProps,
528
- children: label
529
- }
530
- ),
442
+ label && /* @__PURE__ */ jsx10(_Label, { variant, size, ...labelProps, children: label }),
531
443
  children,
532
- hasHelpText && /* @__PURE__ */ jsx11(
444
+ hasHelpText && /* @__PURE__ */ jsx10(
533
445
  HelpText,
534
446
  {
535
447
  variant,
@@ -550,13 +462,13 @@ var FieldBase = ({
550
462
  // src/Input/Input.tsx
551
463
  import {
552
464
  cloneElement as cloneElement2,
553
- forwardRef as forwardRef4
465
+ forwardRef as forwardRef3
554
466
  } from "react";
555
- import { cn as cn7, useClassNames as useClassNames6 } from "@marigold/system";
556
- import { jsx as jsx12, jsxs as jsxs6 } from "react/jsx-runtime";
557
- var Input = forwardRef4(
467
+ import { cn as cn7, useClassNames as useClassNames5 } from "@marigold/system";
468
+ import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
469
+ var Input = forwardRef3(
558
470
  ({ type = "text", icon, action, variant, size, ...props }, ref) => {
559
- const classNames2 = useClassNames6({
471
+ const classNames2 = useClassNames5({
560
472
  component: "Input",
561
473
  variant,
562
474
  size
@@ -585,12 +497,12 @@ var Input = forwardRef4(
585
497
  "data-action": action && "",
586
498
  children: [
587
499
  inputIcon,
588
- /* @__PURE__ */ jsx12(
500
+ /* @__PURE__ */ jsx11(
589
501
  "input",
590
502
  {
591
503
  ...props,
592
504
  className: cn7(
593
- "flex-1",
505
+ "w-full flex-1",
594
506
  "disabled:cursor-not-allowed",
595
507
  "[&[type=file]]:border-none [&[type=file]]:p-0",
596
508
  "[&[type=color]]:ml-0 [&[type=color]]:border-none [&[type=color]]:bg-transparent [&[type=color]]:p-0",
@@ -608,10 +520,10 @@ var Input = forwardRef4(
608
520
  );
609
521
 
610
522
  // src/ListBox/ListBox.tsx
611
- import { forwardRef as forwardRef5 } from "react";
523
+ import { forwardRef as forwardRef4 } from "react";
612
524
  import { useListBox } from "@react-aria/listbox";
613
- import { useObjectRef as useObjectRef2 } from "@react-aria/utils";
614
- import { cn as cn8, useClassNames as useClassNames7 } from "@marigold/system";
525
+ import { useObjectRef } from "@react-aria/utils";
526
+ import { cn as cn8, useClassNames as useClassNames6 } from "@marigold/system";
615
527
 
616
528
  // src/ListBox/Context.ts
617
529
  import { createContext as createContext2, useContext as useContext2 } from "react";
@@ -621,9 +533,9 @@ var useListBoxContext = () => useContext2(ListBoxContext);
621
533
  // src/ListBox/ListBoxOption.tsx
622
534
  import { useRef as useRef3 } from "react";
623
535
  import { useOption } from "@react-aria/listbox";
624
- import { mergeProps as mergeProps4 } from "@react-aria/utils";
625
- import { useStateProps as useStateProps3 } from "@marigold/system";
626
- import { jsx as jsx13 } from "react/jsx-runtime";
536
+ import { mergeProps as mergeProps3 } from "@react-aria/utils";
537
+ import { useStateProps as useStateProps2 } from "@marigold/system";
538
+ import { jsx as jsx12 } from "react/jsx-runtime";
627
539
  var ListBoxOption = ({ item, state }) => {
628
540
  const ref = useRef3(null);
629
541
  const { optionProps, isSelected, isDisabled, isFocused } = useOption(
@@ -635,17 +547,17 @@ var ListBoxOption = ({ item, state }) => {
635
547
  );
636
548
  const { onPointerUp, ...props } = optionProps;
637
549
  const { classNames: classNames2 } = useListBoxContext();
638
- const stateProps = useStateProps3({
550
+ const stateProps = useStateProps2({
639
551
  selected: isSelected,
640
552
  disabled: isDisabled,
641
553
  focusVisible: isFocused
642
554
  });
643
- return /* @__PURE__ */ jsx13(
555
+ return /* @__PURE__ */ jsx12(
644
556
  "li",
645
557
  {
646
558
  ref,
647
559
  className: classNames2.option,
648
- ...mergeProps4(props, { onPointerDown: onPointerUp }, { ...stateProps }),
560
+ ...mergeProps3(props, { onPointerDown: onPointerUp }, { ...stateProps }),
649
561
  children: item.props.children
650
562
  }
651
563
  );
@@ -653,7 +565,7 @@ var ListBoxOption = ({ item, state }) => {
653
565
 
654
566
  // src/ListBox/ListBoxSection.tsx
655
567
  import { useListBoxSection } from "@react-aria/listbox";
656
- import { jsx as jsx14, jsxs as jsxs7 } from "react/jsx-runtime";
568
+ import { jsx as jsx13, jsxs as jsxs7 } from "react/jsx-runtime";
657
569
  var ListBoxSection = ({ section, state }) => {
658
570
  const { classNames: classNames2 } = useListBoxContext();
659
571
  const { itemProps, headingProps, groupProps } = useListBoxSection({
@@ -661,19 +573,19 @@ var ListBoxSection = ({ section, state }) => {
661
573
  "aria-label": section["aria-label"]
662
574
  });
663
575
  return /* @__PURE__ */ jsxs7("li", { className: classNames2.section, ...itemProps, children: [
664
- section.rendered && /* @__PURE__ */ jsx14("div", { className: classNames2.sectionTitle, ...headingProps, children: section.rendered }),
665
- /* @__PURE__ */ jsx14("ul", { className: classNames2.list, ...groupProps, children: [...section.props.children].map((node) => /* @__PURE__ */ jsx14(ListBoxOption, { item: node, state }, node.key)) })
576
+ section.rendered && /* @__PURE__ */ jsx13("div", { className: classNames2.sectionTitle, ...headingProps, children: section.rendered }),
577
+ /* @__PURE__ */ jsx13("ul", { className: classNames2.list, ...groupProps, children: [...section.props.children].map((node) => /* @__PURE__ */ jsx13(ListBoxOption, { item: node, state }, node.key)) })
666
578
  ] });
667
579
  };
668
580
 
669
581
  // src/ListBox/ListBox.tsx
670
- import { jsx as jsx15 } from "react/jsx-runtime";
671
- var ListBox = forwardRef5(
582
+ import { jsx as jsx14 } from "react/jsx-runtime";
583
+ var ListBox = forwardRef4(
672
584
  ({ state, variant, size, ...props }, ref) => {
673
- const innerRef = useObjectRef2(ref);
585
+ const innerRef = useObjectRef(ref);
674
586
  const { listBoxProps } = useListBox(props, state, innerRef);
675
- const classNames2 = useClassNames7({ component: "ListBox", variant, size });
676
- return /* @__PURE__ */ jsx15(ListBoxContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx15("div", { className: classNames2.container, children: /* @__PURE__ */ jsx15(
587
+ const classNames2 = useClassNames6({ component: "ListBox", variant, size });
588
+ return /* @__PURE__ */ jsx14(ListBoxContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx14("div", { className: classNames2.container, children: /* @__PURE__ */ jsx14(
677
589
  "ul",
678
590
  {
679
591
  className: cn8(
@@ -683,7 +595,7 @@ var ListBox = forwardRef5(
683
595
  ref: innerRef,
684
596
  ...listBoxProps,
685
597
  children: [...state.collection].map(
686
- (item) => item.type === "section" ? /* @__PURE__ */ jsx15(ListBoxSection, { section: item, state }, item.key) : /* @__PURE__ */ jsx15(ListBoxOption, { item, state }, item.key)
598
+ (item) => item.type === "section" ? /* @__PURE__ */ jsx14(ListBoxSection, { section: item, state }, item.key) : /* @__PURE__ */ jsx14(ListBoxOption, { item, state }, item.key)
687
599
  )
688
600
  }
689
601
  ) }) });
@@ -691,24 +603,24 @@ var ListBox = forwardRef5(
691
603
  );
692
604
 
693
605
  // src/Overlay/Modal.tsx
694
- import { forwardRef as forwardRef6 } from "react";
606
+ import { forwardRef as forwardRef5 } from "react";
695
607
  import { FocusScope } from "@react-aria/focus";
696
608
  import { useModal, useOverlay, usePreventScroll } from "@react-aria/overlays";
697
- import { mergeProps as mergeProps5, useObjectRef as useObjectRef3 } from "@react-aria/utils";
609
+ import { mergeProps as mergeProps4, useObjectRef as useObjectRef2 } from "@react-aria/utils";
698
610
 
699
611
  // src/Overlay/Underlay.tsx
700
- import { cn as cn9, useClassNames as useClassNames8 } from "@marigold/system";
701
- import { jsx as jsx16 } from "react/jsx-runtime";
612
+ import { cn as cn9, useClassNames as useClassNames7 } from "@marigold/system";
613
+ import { jsx as jsx15 } from "react/jsx-runtime";
702
614
  var Underlay = ({ size, variant, ...props }) => {
703
- const classNames2 = useClassNames8({ component: "Underlay", size, variant });
704
- return /* @__PURE__ */ jsx16("div", { className: cn9("fixed inset-0 z-40", classNames2), ...props });
615
+ const classNames2 = useClassNames7({ component: "Underlay", size, variant });
616
+ return /* @__PURE__ */ jsx15("div", { className: cn9("fixed inset-0 z-40", classNames2), ...props });
705
617
  };
706
618
 
707
619
  // src/Overlay/Modal.tsx
708
- import { jsx as jsx17, jsxs as jsxs8 } from "react/jsx-runtime";
709
- var Modal = forwardRef6(
620
+ import { jsx as jsx16, jsxs as jsxs8 } from "react/jsx-runtime";
621
+ var Modal = forwardRef5(
710
622
  ({ children, open, dismissable, keyboardDismissable, onClose, ...props }, ref) => {
711
- const modalRef = useObjectRef3(ref);
623
+ const modalRef = useObjectRef2(ref);
712
624
  const { overlayProps, underlayProps } = useOverlay(
713
625
  {
714
626
  isOpen: open,
@@ -721,14 +633,14 @@ var Modal = forwardRef6(
721
633
  usePreventScroll();
722
634
  const { modalProps } = useModal({});
723
635
  return /* @__PURE__ */ jsxs8(FocusScope, { contain: true, restoreFocus: true, autoFocus: true, children: [
724
- /* @__PURE__ */ jsx17(Underlay, { ...underlayProps, variant: "modal" }),
725
- /* @__PURE__ */ jsx17(
636
+ /* @__PURE__ */ jsx16(Underlay, { ...underlayProps, variant: "modal" }),
637
+ /* @__PURE__ */ jsx16(
726
638
  "div",
727
639
  {
728
640
  className: "pointer-none fixed inset-0 z-50 flex items-center justify-center",
729
641
  ref: modalRef,
730
- ...mergeProps5(props, overlayProps, modalProps),
731
- children: /* @__PURE__ */ jsx17("div", { style: { pointerEvents: "auto" }, children })
642
+ ...mergeProps4(props, overlayProps, modalProps),
643
+ children: /* @__PURE__ */ jsx16("div", { style: { pointerEvents: "auto" }, children })
732
644
  }
733
645
  )
734
646
  ] });
@@ -741,7 +653,7 @@ import {
741
653
  Overlay as ReactAriaOverlay
742
654
  } from "@react-aria/overlays";
743
655
  import { useTheme } from "@marigold/system";
744
- import { jsx as jsx18 } from "react/jsx-runtime";
656
+ import { jsx as jsx17 } from "react/jsx-runtime";
745
657
  var Overlay = ({ children, container, open }) => {
746
658
  const nodeRef = useRef4(null);
747
659
  const theme = useTheme();
@@ -749,7 +661,7 @@ var Overlay = ({ children, container, open }) => {
749
661
  if (!mountOverlay) {
750
662
  return null;
751
663
  }
752
- return /* @__PURE__ */ jsx18(ReactAriaOverlay, { portalContainer: container, children: /* @__PURE__ */ jsx18(
664
+ return /* @__PURE__ */ jsx17(ReactAriaOverlay, { portalContainer: container, children: /* @__PURE__ */ jsx17(
753
665
  "div",
754
666
  {
755
667
  ref: nodeRef,
@@ -762,23 +674,23 @@ var Overlay = ({ children, container, open }) => {
762
674
  };
763
675
 
764
676
  // src/Overlay/Popover.tsx
765
- import { forwardRef as forwardRef7, useRef as useRef5 } from "react";
677
+ import { forwardRef as forwardRef6, useRef as useRef5 } from "react";
766
678
  import { FocusScope as FocusScope2 } from "@react-aria/focus";
767
679
  import {
768
680
  DismissButton,
769
681
  usePopover
770
682
  } from "@react-aria/overlays";
771
- import { useClassNames as useClassNames9 } from "@marigold/system";
772
- import { jsx as jsx19, jsxs as jsxs9 } from "react/jsx-runtime";
773
- var Popover = forwardRef7(
683
+ import { useClassNames as useClassNames8 } from "@marigold/system";
684
+ import { jsx as jsx18, jsxs as jsxs9 } from "react/jsx-runtime";
685
+ var Popover = forwardRef6(
774
686
  (props, ref) => {
775
687
  const fallbackRef = useRef5(null);
776
688
  const popoverRef = ref || fallbackRef;
777
689
  let { children, state, ...otherProps } = props;
778
- return /* @__PURE__ */ jsx19(Overlay, { open: state.isOpen, ...otherProps, children: /* @__PURE__ */ jsx19(PopoverWrapper, { ref: popoverRef, ...props, children }) });
690
+ return /* @__PURE__ */ jsx18(Overlay, { open: state.isOpen, ...otherProps, children: /* @__PURE__ */ jsx18(PopoverWrapper, { ref: popoverRef, ...props, children }) });
779
691
  }
780
692
  );
781
- var PopoverWrapper = forwardRef7(
693
+ var PopoverWrapper = forwardRef6(
782
694
  ({
783
695
  children,
784
696
  isNonModal,
@@ -796,12 +708,12 @@ var PopoverWrapper = forwardRef7(
796
708
  },
797
709
  state
798
710
  );
799
- const classNames2 = useClassNames9({
711
+ const classNames2 = useClassNames8({
800
712
  component: "Popover",
801
713
  variant: placement
802
714
  });
803
715
  return /* @__PURE__ */ jsxs9(FocusScope2, { restoreFocus: true, children: [
804
- !isNonModal && /* @__PURE__ */ jsx19(Underlay, { ...underlayProps }),
716
+ !isNonModal && /* @__PURE__ */ jsx18(Underlay, { ...underlayProps }),
805
717
  /* @__PURE__ */ jsxs9(
806
718
  "div",
807
719
  {
@@ -814,9 +726,9 @@ var PopoverWrapper = forwardRef7(
814
726
  ref,
815
727
  role: "presentation",
816
728
  children: [
817
- !isNonModal && /* @__PURE__ */ jsx19(DismissButton, { onDismiss: state.close }),
729
+ !isNonModal && /* @__PURE__ */ jsx18(DismissButton, { onDismiss: state.close }),
818
730
  children,
819
- /* @__PURE__ */ jsx19(DismissButton, { onDismiss: state.close })
731
+ /* @__PURE__ */ jsx18(DismissButton, { onDismiss: state.close })
820
732
  ]
821
733
  }
822
734
  )
@@ -825,21 +737,21 @@ var PopoverWrapper = forwardRef7(
825
737
  );
826
738
 
827
739
  // src/Overlay/Tray.tsx
828
- import { forwardRef as forwardRef8 } from "react";
740
+ import { forwardRef as forwardRef7 } from "react";
829
741
  import { FocusScope as FocusScope3 } from "@react-aria/focus";
830
742
  import {
831
743
  DismissButton as DismissButton2,
832
744
  useModalOverlay
833
745
  } from "@react-aria/overlays";
834
- import { useObjectRef as useObjectRef4 } from "@react-aria/utils";
835
- import { jsx as jsx20, jsxs as jsxs10 } from "react/jsx-runtime";
836
- var Tray = forwardRef8(
746
+ import { useObjectRef as useObjectRef3 } from "@react-aria/utils";
747
+ import { jsx as jsx19, jsxs as jsxs10 } from "react/jsx-runtime";
748
+ var Tray = forwardRef7(
837
749
  ({ state, children, ...props }, ref) => {
838
- const trayRef = useObjectRef4(ref);
839
- return /* @__PURE__ */ jsx20(Overlay, { open: state.isOpen, children: /* @__PURE__ */ jsx20(TrayWrapper, { state, ...props, ref: trayRef, children }) });
750
+ const trayRef = useObjectRef3(ref);
751
+ return /* @__PURE__ */ jsx19(Overlay, { open: state.isOpen, children: /* @__PURE__ */ jsx19(TrayWrapper, { state, ...props, ref: trayRef, children }) });
840
752
  }
841
753
  );
842
- var TrayWrapper = forwardRef8(
754
+ var TrayWrapper = forwardRef7(
843
755
  ({ children, state, ...props }, ref) => {
844
756
  let { modalProps, underlayProps } = useModalOverlay(
845
757
  {
@@ -849,7 +761,7 @@ var TrayWrapper = forwardRef8(
849
761
  state,
850
762
  ref
851
763
  );
852
- return /* @__PURE__ */ jsx20(FocusScope3, { contain: true, restoreFocus: true, autoFocus: true, children: /* @__PURE__ */ jsx20(Underlay, { ...underlayProps, variant: "modal", children: /* @__PURE__ */ jsxs10(
764
+ return /* @__PURE__ */ jsx19(FocusScope3, { contain: true, restoreFocus: true, autoFocus: true, children: /* @__PURE__ */ jsx19(Underlay, { ...underlayProps, variant: "modal", children: /* @__PURE__ */ jsxs10(
853
765
  "div",
854
766
  {
855
767
  ...modalProps,
@@ -857,9 +769,9 @@ var TrayWrapper = forwardRef8(
857
769
  className: "absolute bottom-0 w-full",
858
770
  "data-testid": "tray",
859
771
  children: [
860
- /* @__PURE__ */ jsx20(DismissButton2, { onDismiss: state.close }),
772
+ /* @__PURE__ */ jsx19(DismissButton2, { onDismiss: state.close }),
861
773
  children,
862
- /* @__PURE__ */ jsx20(DismissButton2, { onDismiss: state.close })
774
+ /* @__PURE__ */ jsx19(DismissButton2, { onDismiss: state.close })
863
775
  ]
864
776
  }
865
777
  ) }) });
@@ -868,12 +780,12 @@ var TrayWrapper = forwardRef8(
868
780
 
869
781
  // src/Autocomplete/ClearButton.tsx
870
782
  import { useRef as useRef6 } from "react";
871
- import { useButton as useButton3 } from "@react-aria/button";
872
- import { useFocusRing as useFocusRing3 } from "@react-aria/focus";
873
- import { useHover as useHover2 } from "@react-aria/interactions";
874
- import { mergeProps as mergeProps6 } from "@react-aria/utils";
875
- import { cn as cn10, useStateProps as useStateProps4 } from "@marigold/system";
876
- import { jsx as jsx21 } from "react/jsx-runtime";
783
+ import { useButton as useButton2 } from "@react-aria/button";
784
+ import { useFocusRing as useFocusRing2 } from "@react-aria/focus";
785
+ import { useHover } from "@react-aria/interactions";
786
+ import { mergeProps as mergeProps5 } from "@react-aria/utils";
787
+ import { cn as cn10, useStateProps as useStateProps3 } from "@marigold/system";
788
+ import { jsx as jsx20 } from "react/jsx-runtime";
877
789
  var ClearButton = ({
878
790
  preventFocus,
879
791
  disabled,
@@ -889,11 +801,11 @@ var ClearButton = ({
889
801
  ...props
890
802
  }) => {
891
803
  const buttonRef = useRef6(null);
892
- const { hoverProps, isHovered } = useHover2({ isDisabled: disabled });
893
- const { isFocusVisible, focusProps } = useFocusRing3({
804
+ const { hoverProps, isHovered } = useHover({ isDisabled: disabled });
805
+ const { isFocusVisible, focusProps } = useFocusRing2({
894
806
  autoFocus: props.autoFocus
895
807
  });
896
- const { buttonProps, isPressed } = useButton3(
808
+ const { buttonProps, isPressed } = useButton2(
897
809
  {
898
810
  ...props,
899
811
  onClick,
@@ -911,22 +823,22 @@ var ClearButton = ({
911
823
  if (preventFocus) {
912
824
  delete buttonProps.tabIndex;
913
825
  }
914
- const stateProps = useStateProps4({
826
+ const stateProps = useStateProps3({
915
827
  active: isPressed,
916
828
  focusVisible: isFocusVisible,
917
829
  hover: isHovered
918
830
  });
919
- return /* @__PURE__ */ jsx21(
831
+ return /* @__PURE__ */ jsx20(
920
832
  "button",
921
833
  {
922
- ...mergeProps6(buttonProps, focusProps, hoverProps, props),
834
+ ...mergeProps5(buttonProps, focusProps, hoverProps, props),
923
835
  ...stateProps,
924
836
  ref: buttonRef,
925
837
  className: cn10(
926
838
  "cursor-pointer appearance-none border-none p-0 pr-1",
927
839
  className
928
840
  ),
929
- children: /* @__PURE__ */ jsx21(
841
+ children: /* @__PURE__ */ jsx20(
930
842
  "svg",
931
843
  {
932
844
  xmlns: "http://www.w3.org/2000/svg",
@@ -934,7 +846,7 @@ var ClearButton = ({
934
846
  fill: "currentColor",
935
847
  width: 20,
936
848
  height: 20,
937
- children: /* @__PURE__ */ jsx21("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" })
849
+ children: /* @__PURE__ */ jsx20("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" })
938
850
  }
939
851
  )
940
852
  }
@@ -942,8 +854,8 @@ var ClearButton = ({
942
854
  };
943
855
 
944
856
  // src/Autocomplete/Autocomplete.tsx
945
- import { Fragment as Fragment2, jsx as jsx22, jsxs as jsxs11 } from "react/jsx-runtime";
946
- var SearchIcon = (props) => /* @__PURE__ */ jsx22(
857
+ import { Fragment as Fragment2, jsx as jsx21, jsxs as jsxs11 } from "react/jsx-runtime";
858
+ var SearchIcon = (props) => /* @__PURE__ */ jsx21(
947
859
  "svg",
948
860
  {
949
861
  xmlns: "http://www.w3.org/2000/svg",
@@ -952,7 +864,7 @@ var SearchIcon = (props) => /* @__PURE__ */ jsx22(
952
864
  width: 24,
953
865
  height: 24,
954
866
  ...props,
955
- children: /* @__PURE__ */ jsx22("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" })
867
+ children: /* @__PURE__ */ jsx21("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" })
956
868
  }
957
869
  );
958
870
  var Autocomplete = ({
@@ -1008,7 +920,7 @@ var Autocomplete = ({
1008
920
  );
1009
921
  const { isDisabled, ...restClearButtonProps } = clearButtonProps;
1010
922
  return /* @__PURE__ */ jsxs11(Fragment2, { children: [
1011
- /* @__PURE__ */ jsx22(
923
+ /* @__PURE__ */ jsx21(
1012
924
  FieldBase,
1013
925
  {
1014
926
  label: props.label,
@@ -1018,13 +930,13 @@ var Autocomplete = ({
1018
930
  errorMessage: props.errorMessage,
1019
931
  disabled,
1020
932
  width,
1021
- children: /* @__PURE__ */ jsx22(
933
+ children: /* @__PURE__ */ jsx21(
1022
934
  Input,
1023
935
  {
1024
936
  ...inputProps,
1025
937
  ref: inputRef,
1026
- icon: /* @__PURE__ */ jsx22(SearchIcon, {}),
1027
- action: state.inputValue !== "" ? /* @__PURE__ */ jsx22(
938
+ icon: /* @__PURE__ */ jsx21(SearchIcon, {}),
939
+ action: state.inputValue !== "" ? /* @__PURE__ */ jsx21(
1028
940
  ClearButton,
1029
941
  {
1030
942
  preventFocus: true,
@@ -1036,7 +948,7 @@ var Autocomplete = ({
1036
948
  )
1037
949
  }
1038
950
  ),
1039
- /* @__PURE__ */ jsx22(
951
+ /* @__PURE__ */ jsx21(
1040
952
  Popover,
1041
953
  {
1042
954
  state,
@@ -1044,7 +956,7 @@ var Autocomplete = ({
1044
956
  triggerRef: inputRef,
1045
957
  scrollRef: listBoxRef,
1046
958
  isNonModal: true,
1047
- children: /* @__PURE__ */ jsx22(ListBox, { ref: listBoxRef, state, ...listBoxProps })
959
+ children: /* @__PURE__ */ jsx21(ListBox, { ref: listBoxRef, state, ...listBoxProps })
1048
960
  }
1049
961
  )
1050
962
  ] });
@@ -1053,11 +965,41 @@ Autocomplete.Item = Item2;
1053
965
 
1054
966
  // src/ComboBox/ComboBox.tsx
1055
967
  import React from "react";
1056
- import { useButton as useButton4 } from "@react-aria/button";
1057
968
  import { useComboBox } from "@react-aria/combobox";
1058
969
  import { useFilter as useFilter2 } from "@react-aria/i18n";
1059
970
  import { Item as Item3 } from "@react-stately/collections";
1060
971
  import { useComboBoxState as useComboBoxState2 } from "@react-stately/combobox";
972
+
973
+ // src/Button/Button.tsx
974
+ import { forwardRef as forwardRef8 } from "react";
975
+ import { Button } from "react-aria-components";
976
+ import { cn as cn11, useClassNames as useClassNames9 } from "@marigold/system";
977
+ import { jsx as jsx22 } from "react/jsx-runtime";
978
+ var _Button = forwardRef8(
979
+ ({ children, variant, size, disabled, fullWidth, ...props }, ref) => {
980
+ const classNames2 = useClassNames9({
981
+ component: "Button",
982
+ variant,
983
+ size
984
+ });
985
+ return /* @__PURE__ */ jsx22(
986
+ Button,
987
+ {
988
+ ...props,
989
+ ref,
990
+ className: cn11(
991
+ "inline-flex items-center justify-center gap-[0.5ch]",
992
+ classNames2,
993
+ fullWidth ? "w-full" : void 0
994
+ ),
995
+ isDisabled: disabled,
996
+ children
997
+ }
998
+ );
999
+ }
1000
+ );
1001
+
1002
+ // src/ComboBox/ComboBox.tsx
1061
1003
  import { Fragment as Fragment3, jsx as jsx23, jsxs as jsxs12 } from "react/jsx-runtime";
1062
1004
  var ComboBox = ({
1063
1005
  error,
@@ -1097,7 +1039,6 @@ var ComboBox = ({
1097
1039
  state
1098
1040
  );
1099
1041
  const errorMessageProps = { "aria-invalid": error };
1100
- const { buttonProps } = useButton4(triggerProps, buttonRef);
1101
1042
  const { label, description, errorMessage } = props;
1102
1043
  return /* @__PURE__ */ jsxs12(Fragment3, { children: [
1103
1044
  /* @__PURE__ */ jsx23(
@@ -1116,11 +1057,11 @@ var ComboBox = ({
1116
1057
  ...inputProps,
1117
1058
  ref: inputRef,
1118
1059
  action: /* @__PURE__ */ jsx23(
1119
- Button,
1060
+ _Button,
1120
1061
  {
1121
1062
  className: "absolute right-2 h-4 w-4 border-none bg-transparent p-0",
1122
1063
  ref: buttonRef,
1123
- ...buttonProps,
1064
+ ...triggerProps,
1124
1065
  children: /* @__PURE__ */ jsx23(ChevronDown, { className: "h-4 w-4" })
1125
1066
  }
1126
1067
  )
@@ -1152,7 +1093,7 @@ var Badge = ({ variant, size, children, ...props }) => {
1152
1093
  };
1153
1094
 
1154
1095
  // src/Breakout/Breakout.tsx
1155
- import { alignment, cn as cn11, createVar as createVar4 } from "@marigold/system";
1096
+ import { alignment, cn as cn12, createVar as createVar4 } from "@marigold/system";
1156
1097
  import { jsx as jsx25 } from "react/jsx-runtime";
1157
1098
  var Breakout = ({
1158
1099
  height,
@@ -1166,7 +1107,7 @@ var Breakout = ({
1166
1107
  return /* @__PURE__ */ jsx25(
1167
1108
  "div",
1168
1109
  {
1169
- className: cn11(
1110
+ className: cn12(
1170
1111
  "col-start-[1_!important] col-end-[-1_!important] w-full",
1171
1112
  alignX && ((_b = (_a = alignment) == null ? void 0 : _a.horizontal) == null ? void 0 : _b.alignmentX[alignX]),
1172
1113
  alignY && ((_d = (_c = alignment) == null ? void 0 : _c.horizontal) == null ? void 0 : _d.alignmentY[alignY]),
@@ -1190,7 +1131,7 @@ var Body = ({ children, variant, size, ...props }) => {
1190
1131
 
1191
1132
  // src/Card/Card.tsx
1192
1133
  import {
1193
- cn as cn12,
1134
+ cn as cn13,
1194
1135
  gapSpace as gapSpace2,
1195
1136
  paddingBottom,
1196
1137
  paddingLeft,
@@ -1221,7 +1162,7 @@ var Card = ({
1221
1162
  "div",
1222
1163
  {
1223
1164
  ...props,
1224
- className: cn12(
1165
+ className: cn13(
1225
1166
  "flex flex-col",
1226
1167
  classNames2,
1227
1168
  gapSpace2[space],
@@ -1239,7 +1180,7 @@ var Card = ({
1239
1180
  };
1240
1181
 
1241
1182
  // src/Center/Center.tsx
1242
- import { cn as cn13, createVar as createVar5, gapSpace as gapSpace3 } from "@marigold/system";
1183
+ import { cn as cn14, createVar as createVar5, gapSpace as gapSpace3 } from "@marigold/system";
1243
1184
  import { jsx as jsx28 } from "react/jsx-runtime";
1244
1185
  var Center = ({
1245
1186
  maxWidth = "100%",
@@ -1251,7 +1192,7 @@ var Center = ({
1251
1192
  "div",
1252
1193
  {
1253
1194
  ...props,
1254
- className: cn13(
1195
+ className: cn14(
1255
1196
  "me-[auto] ms-[auto] box-content flex flex-col items-center justify-center",
1256
1197
  gapSpace3[space],
1257
1198
  "max-w-[--maxWidth]"
@@ -1264,27 +1205,92 @@ var Center = ({
1264
1205
 
1265
1206
  // src/Checkbox/Checkbox.tsx
1266
1207
  import { forwardRef as forwardRef9 } from "react";
1267
- import { useCheckbox, useCheckboxGroupItem } from "@react-aria/checkbox";
1268
- import { useFocusRing as useFocusRing4 } from "@react-aria/focus";
1269
- import { useHover as useHover3 } from "@react-aria/interactions";
1270
- import { useObjectRef as useObjectRef5 } from "@react-aria/utils";
1271
- import { useToggleState } from "@react-stately/toggle";
1272
- import {
1273
- cn as cn14,
1274
- useClassNames as useClassNames14,
1275
- useStateProps as useStateProps6
1276
- } from "@marigold/system";
1277
-
1278
- // src/Checkbox/CheckboxField.tsx
1279
- import { createVar as createVar6, useClassNames as useClassNames13 } from "@marigold/system";
1280
- import { jsx as jsx29, jsxs as jsxs13 } from "react/jsx-runtime";
1281
- var CheckboxField = ({ children, labelWidth }) => {
1282
- const classNames2 = useClassNames13({ component: "Field" });
1283
- return /* @__PURE__ */ jsxs13("div", { className: classNames2, children: [
1284
- /* @__PURE__ */ jsx29("div", { className: "w-[--labelWidth]", style: createVar6({ labelWidth }) }),
1285
- children
1286
- ] });
1208
+ import { Checkbox } from "react-aria-components";
1209
+ import { cn as cn15, useClassNames as useClassNames13 } from "@marigold/system";
1210
+ import { Fragment as Fragment4, jsx as jsx29, jsxs as jsxs13 } from "react/jsx-runtime";
1211
+ var CheckMark = () => /* @__PURE__ */ jsx29("svg", { viewBox: "0 0 12 10", children: /* @__PURE__ */ jsx29(
1212
+ "path",
1213
+ {
1214
+ fill: "currentColor",
1215
+ stroke: "none",
1216
+ 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"
1217
+ }
1218
+ ) });
1219
+ var IndeterminateMark = () => /* @__PURE__ */ jsx29("svg", { width: "12", height: "3", viewBox: "0 0 12 3", children: /* @__PURE__ */ jsx29(
1220
+ "path",
1221
+ {
1222
+ fill: "currentColor",
1223
+ stroke: "none",
1224
+ d: "M11.5 2.04018H0.5V0.46875H11.5V2.04018Z"
1225
+ }
1226
+ ) });
1227
+ var Icon = ({ className, checked, indeterminate, ...props }) => {
1228
+ return /* @__PURE__ */ jsx29(
1229
+ "div",
1230
+ {
1231
+ "aria-hidden": "true",
1232
+ className: cn15(
1233
+ "flex shrink-0 grow-0 basis-4 items-center justify-center",
1234
+ "h-4 w-4 p-px",
1235
+ "bg-white",
1236
+ "rounded-[3px] border border-solid border-black ",
1237
+ className
1238
+ ),
1239
+ ...props,
1240
+ children: indeterminate ? /* @__PURE__ */ jsx29(IndeterminateMark, {}) : checked ? /* @__PURE__ */ jsx29(CheckMark, {}) : null
1241
+ }
1242
+ );
1287
1243
  };
1244
+ var _Checkbox = forwardRef9(
1245
+ ({
1246
+ className,
1247
+ indeterminate,
1248
+ error,
1249
+ disabled,
1250
+ defaultChecked,
1251
+ children,
1252
+ checked,
1253
+ readOnly,
1254
+ required,
1255
+ variant,
1256
+ size,
1257
+ ...rest
1258
+ }, ref) => {
1259
+ const props = {
1260
+ isIndeterminate: indeterminate,
1261
+ isDisabled: disabled,
1262
+ isReadOnly: readOnly,
1263
+ isRequired: required,
1264
+ isInvalid: error,
1265
+ defaultSelected: defaultChecked,
1266
+ ...rest
1267
+ };
1268
+ const classNames2 = useClassNames13({ component: "Checkbox", variant, size });
1269
+ return /* @__PURE__ */ jsx29(
1270
+ Checkbox,
1271
+ {
1272
+ ref,
1273
+ className: cn15(
1274
+ "group/checkbox flex items-center gap-[0.5rem]",
1275
+ "cursor-pointer data-[disabled]:cursor-not-allowed",
1276
+ classNames2.container
1277
+ ),
1278
+ ...props,
1279
+ children: ({ isSelected, isIndeterminate }) => /* @__PURE__ */ jsxs13(Fragment4, { children: [
1280
+ /* @__PURE__ */ jsx29(
1281
+ Icon,
1282
+ {
1283
+ checked: isSelected,
1284
+ indeterminate: isIndeterminate,
1285
+ className: classNames2.checkbox
1286
+ }
1287
+ ),
1288
+ /* @__PURE__ */ jsx29("div", { className: classNames2.label, children })
1289
+ ] })
1290
+ }
1291
+ );
1292
+ }
1293
+ );
1288
1294
 
1289
1295
  // src/Checkbox/CheckboxGroup.tsx
1290
1296
  import { createContext as createContext3, useContext as useContext3 } from "react";
@@ -1292,13 +1298,15 @@ import { useCheckboxGroup } from "@react-aria/checkbox";
1292
1298
  import {
1293
1299
  useCheckboxGroupState
1294
1300
  } from "@react-stately/checkbox";
1295
- import { useStateProps as useStateProps5 } from "@marigold/system";
1301
+ import { useClassNames as useClassNames14, useStateProps as useStateProps4 } from "@marigold/system";
1296
1302
  import { jsx as jsx30 } from "react/jsx-runtime";
1297
1303
  var CheckboxGroupContext = createContext3(
1298
1304
  null
1299
1305
  );
1300
1306
  var useCheckboxGroupContext = () => useContext3(CheckboxGroupContext);
1301
1307
  var CheckboxGroup = ({
1308
+ variant,
1309
+ size,
1302
1310
  children,
1303
1311
  required,
1304
1312
  disabled,
@@ -1316,7 +1324,13 @@ var CheckboxGroup = ({
1316
1324
  };
1317
1325
  const state = useCheckboxGroupState(props);
1318
1326
  const { groupProps, labelProps, descriptionProps, errorMessageProps } = useCheckboxGroup(props, state);
1319
- const stateProps = useStateProps5({
1327
+ const classNames2 = useClassNames14({
1328
+ component: "Checkbox",
1329
+ variant,
1330
+ size,
1331
+ className: { group: "flex flex-col items-start gap-[0.5ch]" }
1332
+ });
1333
+ const stateProps = useStateProps4({
1320
1334
  disabled,
1321
1335
  readOnly,
1322
1336
  error
@@ -1325,7 +1339,7 @@ var CheckboxGroup = ({
1325
1339
  FieldBase,
1326
1340
  {
1327
1341
  label: props.label,
1328
- labelProps: { as: "span", ...labelProps },
1342
+ labelProps: { elementType: "span", ...labelProps },
1329
1343
  description: props.description,
1330
1344
  descriptionProps,
1331
1345
  error,
@@ -1335,149 +1349,15 @@ var CheckboxGroup = ({
1335
1349
  stateProps,
1336
1350
  width,
1337
1351
  ...groupProps,
1338
- children: /* @__PURE__ */ jsx30("div", { role: "presentation", className: "flex flex-col items-start", children: /* @__PURE__ */ jsx30(CheckboxGroupContext.Provider, { value: { error, ...state }, children }) })
1352
+ children: /* @__PURE__ */ jsx30("div", { role: "presentation", className: classNames2.group, children: /* @__PURE__ */ jsx30(CheckboxGroupContext.Provider, { value: { error, ...state }, children }) })
1339
1353
  }
1340
1354
  );
1341
1355
  };
1342
1356
 
1343
- // src/Checkbox/Checkbox.tsx
1344
- import { jsx as jsx31, jsxs as jsxs14 } from "react/jsx-runtime";
1345
- var CheckMark = () => /* @__PURE__ */ jsx31("svg", { viewBox: "0 0 12 10", children: /* @__PURE__ */ jsx31(
1346
- "path",
1347
- {
1348
- fill: "currentColor",
1349
- stroke: "none",
1350
- 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"
1351
- }
1352
- ) });
1353
- var IndeterminateMark = () => /* @__PURE__ */ jsx31("svg", { width: "12", height: "3", viewBox: "0 0 12 3", children: /* @__PURE__ */ jsx31(
1354
- "path",
1355
- {
1356
- fill: "currentColor",
1357
- stroke: "none",
1358
- d: "M11.5 2.04018H0.5V0.46875H11.5V2.04018Z"
1359
- }
1360
- ) });
1361
- var Icon = ({ className, checked, indeterminate, ...props }) => {
1362
- return /* @__PURE__ */ jsx31(
1363
- "div",
1364
- {
1365
- "aria-hidden": "true",
1366
- className: cn14(
1367
- "flex shrink-0 grow-0 basis-4 items-center justify-center",
1368
- "h-4 w-4 p-px",
1369
- "bg-white",
1370
- "rounded-[3px] border border-solid border-black",
1371
- className
1372
- ),
1373
- ...props,
1374
- children: indeterminate ? /* @__PURE__ */ jsx31(IndeterminateMark, {}) : checked ? /* @__PURE__ */ jsx31(CheckMark, {}) : null
1375
- }
1376
- );
1377
- };
1378
- var Checkbox = forwardRef9(
1379
- ({
1380
- size,
1381
- variant,
1382
- disabled,
1383
- checked,
1384
- defaultChecked,
1385
- indeterminate,
1386
- readOnly,
1387
- required,
1388
- error,
1389
- ...props
1390
- }, ref) => {
1391
- const inputRef = useObjectRef5(ref);
1392
- const checkboxProps = {
1393
- isIndeterminate: indeterminate,
1394
- isDisabled: disabled,
1395
- isReadOnly: readOnly,
1396
- isRequired: required,
1397
- validationState: error ? "invalid" : "valid"
1398
- };
1399
- const groupState = useCheckboxGroupContext();
1400
- const { inputProps } = groupState ? useCheckboxGroupItem(
1401
- {
1402
- ...props,
1403
- ...checkboxProps,
1404
- /**
1405
- * value is optional for standalone checkboxes, but required when
1406
- * used inside a group.
1407
- */
1408
- value: props.value
1409
- },
1410
- groupState,
1411
- inputRef
1412
- ) : useCheckbox(
1413
- {
1414
- isSelected: checked,
1415
- defaultSelected: defaultChecked,
1416
- ...checkboxProps,
1417
- ...props
1418
- },
1419
- useToggleState({
1420
- isSelected: checked,
1421
- defaultSelected: defaultChecked,
1422
- isReadOnly: readOnly,
1423
- ...props
1424
- }),
1425
- inputRef
1426
- );
1427
- const classNames2 = useClassNames14({ component: "Checkbox", variant, size });
1428
- const { hoverProps, isHovered } = useHover3({
1429
- isDisabled: inputProps.disabled
1430
- });
1431
- const { labelWidth } = useFieldGroupContext();
1432
- const { isFocusVisible, focusProps } = useFocusRing4();
1433
- const stateProps = useStateProps6({
1434
- hover: isHovered,
1435
- focus: isFocusVisible,
1436
- checked: inputProps.checked,
1437
- disabled: inputProps.disabled,
1438
- error: (groupState == null ? void 0 : groupState.error) || error,
1439
- readOnly,
1440
- indeterminate
1441
- });
1442
- const component = /* @__PURE__ */ jsxs14(
1443
- "label",
1444
- {
1445
- className: cn14(
1446
- "group/checkbox relative flex items-center gap-[1ch]",
1447
- classNames2.container
1448
- ),
1449
- ...hoverProps,
1450
- ...stateProps,
1451
- children: [
1452
- /* @__PURE__ */ jsx31(
1453
- "input",
1454
- {
1455
- ref: inputRef,
1456
- className: "z-1 absolute left-0 top-0 h-full w-full cursor-pointer opacity-[0.0001] group-disabled/checkbox:cursor-not-allowed",
1457
- ...inputProps,
1458
- ...focusProps
1459
- }
1460
- ),
1461
- /* @__PURE__ */ jsx31(
1462
- Icon,
1463
- {
1464
- checked: inputProps.checked,
1465
- indeterminate,
1466
- className: classNames2.checkbox
1467
- }
1468
- ),
1469
- props.children && /* @__PURE__ */ jsx31("div", { className: classNames2.label, children: props.children })
1470
- ]
1471
- }
1472
- );
1473
- return !groupState && labelWidth ? /* @__PURE__ */ jsx31(CheckboxField, { labelWidth, children: component }) : component;
1474
- }
1475
- );
1476
-
1477
1357
  // src/Columns/Columns.tsx
1478
1358
  import { Children as Children3, cloneElement as cloneElement3, isValidElement as isValidElement2 } from "react";
1479
- import { cn as cn15, createVar as createVar7, gapSpace as gapSpace4 } from "@marigold/system";
1480
- import { jsx as jsx32 } from "react/jsx-runtime";
1359
+ import { cn as cn16, createVar as createVar6, gapSpace as gapSpace4 } from "@marigold/system";
1360
+ import { jsx as jsx31 } from "react/jsx-runtime";
1481
1361
  var Columns = ({
1482
1362
  space = 0,
1483
1363
  columns,
@@ -1493,22 +1373,22 @@ var Columns = ({
1493
1373
  )}`
1494
1374
  );
1495
1375
  }
1496
- return /* @__PURE__ */ jsx32(
1376
+ return /* @__PURE__ */ jsx31(
1497
1377
  "div",
1498
1378
  {
1499
- className: cn15(
1379
+ className: cn16(
1500
1380
  "flex flex-wrap items-stretch",
1501
1381
  stretch && "h-full",
1502
1382
  gapSpace4[space]
1503
1383
  ),
1504
1384
  ...props,
1505
- children: Children3.map(children, (child, idx) => /* @__PURE__ */ jsx32(
1385
+ children: Children3.map(children, (child, idx) => /* @__PURE__ */ jsx31(
1506
1386
  "div",
1507
1387
  {
1508
- className: cn15(
1388
+ className: cn16(
1509
1389
  "grow-[--columnSize] basis-[calc((var(--collapseAt)_-_100%)_*_999)]"
1510
1390
  ),
1511
- style: createVar7({ collapseAt, columnSize: columns[idx] }),
1391
+ style: createVar6({ collapseAt, columnSize: columns[idx] }),
1512
1392
  children: isValidElement2(child) ? cloneElement3(child) : child
1513
1393
  }
1514
1394
  ))
@@ -1518,13 +1398,13 @@ var Columns = ({
1518
1398
 
1519
1399
  // src/Container/Container.tsx
1520
1400
  import {
1521
- cn as cn16,
1522
- createVar as createVar8,
1401
+ cn as cn17,
1402
+ createVar as createVar7,
1523
1403
  gridColsAlign,
1524
1404
  gridColumn,
1525
1405
  placeItems
1526
1406
  } from "@marigold/system";
1527
- import { jsx as jsx33 } from "react/jsx-runtime";
1407
+ import { jsx as jsx32 } from "react/jsx-runtime";
1528
1408
  var content = {
1529
1409
  small: "20ch",
1530
1410
  medium: "45ch",
@@ -1544,17 +1424,17 @@ var Container = ({
1544
1424
  ...props
1545
1425
  }) => {
1546
1426
  const maxWidth = contentType === "content" ? content[size] : header[size];
1547
- return /* @__PURE__ */ jsx33(
1427
+ return /* @__PURE__ */ jsx32(
1548
1428
  "div",
1549
1429
  {
1550
1430
  ...props,
1551
- className: cn16(
1431
+ className: cn17(
1552
1432
  "grid",
1553
1433
  placeItems[alignItems],
1554
1434
  gridColsAlign[align],
1555
1435
  gridColumn[align]
1556
1436
  ),
1557
- style: createVar8({ maxWidth }),
1437
+ style: createVar7({ maxWidth }),
1558
1438
  children
1559
1439
  }
1560
1440
  );
@@ -1567,40 +1447,40 @@ import {
1567
1447
  isValidElement as isValidElement3,
1568
1448
  useRef as useRef9
1569
1449
  } from "react";
1570
- import { useButton as useButton5 } from "@react-aria/button";
1450
+ import { useButton as useButton3 } from "@react-aria/button";
1571
1451
  import { useDialog } from "@react-aria/dialog";
1572
- import { cn as cn19, useClassNames as useClassNames17 } from "@marigold/system";
1452
+ import { cn as cn20, useClassNames as useClassNames17 } from "@marigold/system";
1573
1453
 
1574
1454
  // src/Header/Header.tsx
1575
- import { cn as cn17, useClassNames as useClassNames15 } from "@marigold/system";
1576
- import { jsx as jsx34 } from "react/jsx-runtime";
1455
+ import { cn as cn18, useClassNames as useClassNames15 } from "@marigold/system";
1456
+ import { jsx as jsx33 } from "react/jsx-runtime";
1577
1457
  var Header = ({ children, variant, size, ...props }) => {
1578
1458
  const classNames2 = useClassNames15({
1579
1459
  component: "Header",
1580
1460
  variant,
1581
1461
  size
1582
1462
  });
1583
- return /* @__PURE__ */ jsx34("header", { ...props, className: cn17(classNames2), children });
1463
+ return /* @__PURE__ */ jsx33("header", { ...props, className: cn18(classNames2), children });
1584
1464
  };
1585
1465
 
1586
1466
  // src/Headline/Headline.tsx
1467
+ import { Heading } from "react-aria-components";
1587
1468
  import {
1588
- cn as cn18,
1589
- createVar as createVar9,
1469
+ cn as cn19,
1470
+ createVar as createVar8,
1590
1471
  get,
1591
1472
  textAlign,
1592
1473
  useClassNames as useClassNames16,
1593
1474
  useTheme as useTheme2
1594
1475
  } from "@marigold/system";
1595
- import { jsx as jsx35 } from "react/jsx-runtime";
1596
- var Headline = ({
1597
- children,
1476
+ import { jsx as jsx34 } from "react/jsx-runtime";
1477
+ var _Headline = ({
1598
1478
  variant,
1599
1479
  size,
1480
+ children,
1600
1481
  align = "left",
1601
1482
  color,
1602
- level = "1",
1603
- as = `h${level}`,
1483
+ level = 1,
1604
1484
  ...props
1605
1485
  }) => {
1606
1486
  const theme = useTheme2();
@@ -1609,13 +1489,13 @@ var Headline = ({
1609
1489
  variant,
1610
1490
  size: size != null ? size : `level-${level}`
1611
1491
  });
1612
- const Component = as;
1613
- return /* @__PURE__ */ jsx35(
1614
- Component,
1492
+ return /* @__PURE__ */ jsx34(
1493
+ Heading,
1615
1494
  {
1495
+ level: Number(level),
1616
1496
  ...props,
1617
- className: cn18(classNames2, "text-[--color]", textAlign[align]),
1618
- style: createVar9({
1497
+ className: cn19(classNames2, "text-[--color]", textAlign[align]),
1498
+ style: createVar8({
1619
1499
  color: color && theme.colors && get(
1620
1500
  theme.colors,
1621
1501
  color.replace("-", "."),
@@ -1635,7 +1515,7 @@ var useDialogContext = () => useContext4(DialogContext);
1635
1515
 
1636
1516
  // src/Dialog/DialogController.tsx
1637
1517
  import { useOverlayTriggerState } from "@react-stately/overlays";
1638
- import { jsx as jsx36 } from "react/jsx-runtime";
1518
+ import { jsx as jsx35 } from "react/jsx-runtime";
1639
1519
  var DialogController = ({
1640
1520
  children,
1641
1521
  dismissable = true,
@@ -1648,7 +1528,7 @@ var DialogController = ({
1648
1528
  onOpenChange
1649
1529
  });
1650
1530
  const ctx = { open: state.isOpen, close: state.close };
1651
- return /* @__PURE__ */ jsx36(DialogContext.Provider, { value: ctx, children: /* @__PURE__ */ jsx36(Overlay, { open: state.isOpen, children: /* @__PURE__ */ jsx36(
1531
+ return /* @__PURE__ */ jsx35(DialogContext.Provider, { value: ctx, children: /* @__PURE__ */ jsx35(Overlay, { open: state.isOpen, children: /* @__PURE__ */ jsx35(
1652
1532
  Modal,
1653
1533
  {
1654
1534
  open: state.isOpen,
@@ -1664,7 +1544,7 @@ var DialogController = ({
1664
1544
  import { Children as Children4, useRef as useRef8 } from "react";
1665
1545
  import { PressResponder } from "@react-aria/interactions";
1666
1546
  import { useOverlayTriggerState as useOverlayTriggerState2 } from "@react-stately/overlays";
1667
- import { jsx as jsx37, jsxs as jsxs15 } from "react/jsx-runtime";
1547
+ import { jsx as jsx36, jsxs as jsxs14 } from "react/jsx-runtime";
1668
1548
  var DialogTrigger = ({
1669
1549
  children,
1670
1550
  dismissable = true,
@@ -1674,8 +1554,8 @@ var DialogTrigger = ({
1674
1554
  const dialogTriggerRef = useRef8(null);
1675
1555
  const state = useOverlayTriggerState2({});
1676
1556
  const ctx = { open: state.isOpen, close: state.close };
1677
- return /* @__PURE__ */ jsxs15(DialogContext.Provider, { value: ctx, children: [
1678
- /* @__PURE__ */ jsx37(
1557
+ return /* @__PURE__ */ jsxs14(DialogContext.Provider, { value: ctx, children: [
1558
+ /* @__PURE__ */ jsx36(
1679
1559
  PressResponder,
1680
1560
  {
1681
1561
  ref: dialogTriggerRef,
@@ -1684,7 +1564,7 @@ var DialogTrigger = ({
1684
1564
  children: dialogTrigger
1685
1565
  }
1686
1566
  ),
1687
- /* @__PURE__ */ jsx37(Overlay, { open: state.isOpen, children: /* @__PURE__ */ jsx37(
1567
+ /* @__PURE__ */ jsx36(Overlay, { open: state.isOpen, children: /* @__PURE__ */ jsx36(
1688
1568
  Modal,
1689
1569
  {
1690
1570
  open: state.isOpen,
@@ -1698,26 +1578,26 @@ var DialogTrigger = ({
1698
1578
  };
1699
1579
 
1700
1580
  // src/Dialog/Dialog.tsx
1701
- import { jsx as jsx38, jsxs as jsxs16 } from "react/jsx-runtime";
1581
+ import { jsx as jsx37, jsxs as jsxs15 } from "react/jsx-runtime";
1702
1582
  var CloseButton = ({ className }) => {
1703
1583
  const ref = useRef9(null);
1704
1584
  const { close } = useDialogContext();
1705
- const { buttonProps } = useButton5(
1585
+ const { buttonProps } = useButton3(
1706
1586
  {
1707
1587
  onPress: () => close == null ? void 0 : close()
1708
1588
  },
1709
1589
  ref
1710
1590
  );
1711
- return /* @__PURE__ */ jsx38("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx38(
1591
+ return /* @__PURE__ */ jsx37("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx37(
1712
1592
  "button",
1713
1593
  {
1714
- className: cn19(
1594
+ className: cn20(
1715
1595
  "h-4 w-4 cursor-pointer border-none p-0 leading-normal outline-0",
1716
1596
  className
1717
1597
  ),
1718
1598
  ref,
1719
1599
  ...buttonProps,
1720
- children: /* @__PURE__ */ jsx38("svg", { viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx38(
1600
+ children: /* @__PURE__ */ jsx37("svg", { viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx37(
1721
1601
  "path",
1722
1602
  {
1723
1603
  fillRule: "evenodd",
@@ -1731,7 +1611,7 @@ var CloseButton = ({ className }) => {
1731
1611
  var addTitleProps = (children, titleProps) => {
1732
1612
  const childs = Children5.toArray(children);
1733
1613
  const titleIndex = childs.findIndex(
1734
- (child) => isValidElement3(child) && (child.type === Header || child.type === Headline)
1614
+ (child) => isValidElement3(child) && (child.type === Header || child.type === _Headline)
1735
1615
  );
1736
1616
  if (titleIndex < 0) {
1737
1617
  console.warn(
@@ -1757,8 +1637,8 @@ var Dialog = ({
1757
1637
  const { close } = useDialogContext();
1758
1638
  const { dialogProps, titleProps } = useDialog(props, ref);
1759
1639
  const classNames2 = useClassNames17({ component: "Dialog", variant, size });
1760
- return /* @__PURE__ */ jsxs16("div", { className: classNames2.container, ...dialogProps, children: [
1761
- closeButton && /* @__PURE__ */ jsx38(CloseButton, { className: classNames2.closeButton }),
1640
+ return /* @__PURE__ */ jsxs15("div", { className: classNames2.container, ...dialogProps, children: [
1641
+ closeButton && /* @__PURE__ */ jsx37(CloseButton, { className: classNames2.closeButton }),
1762
1642
  typeof children === "function" ? children({ close, titleProps }) : props["aria-labelledby"] ? children : addTitleProps(children, titleProps)
1763
1643
  ] });
1764
1644
  };
@@ -1766,31 +1646,30 @@ Dialog.Trigger = DialogTrigger;
1766
1646
  Dialog.Controller = DialogController;
1767
1647
 
1768
1648
  // src/Divider/Divider.tsx
1769
- import { useSeparator } from "@react-aria/separator";
1649
+ import { Separator } from "react-aria-components";
1770
1650
  import { useClassNames as useClassNames18 } from "@marigold/system";
1771
- import { jsx as jsx39 } from "react/jsx-runtime";
1772
- var Divider = ({ variant, ...props }) => {
1773
- const { separatorProps } = useSeparator(props);
1651
+ import { jsx as jsx38 } from "react/jsx-runtime";
1652
+ var _Divider = ({ variant, ...props }) => {
1774
1653
  const classNames2 = useClassNames18({ component: "Divider", variant });
1775
- return /* @__PURE__ */ jsx39("div", { className: classNames2, ...props, ...separatorProps });
1654
+ return /* @__PURE__ */ jsx38(Separator, { className: classNames2, ...props });
1776
1655
  };
1777
1656
 
1778
1657
  // src/Footer/Footer.tsx
1779
1658
  import { useClassNames as useClassNames19 } from "@marigold/system";
1780
- import { jsx as jsx40 } from "react/jsx-runtime";
1659
+ import { jsx as jsx39 } from "react/jsx-runtime";
1781
1660
  var Footer = ({ children, variant, size, ...props }) => {
1782
1661
  const classNames2 = useClassNames19({ component: "Footer", variant, size });
1783
- return /* @__PURE__ */ jsx40("footer", { ...props, className: classNames2, children });
1662
+ return /* @__PURE__ */ jsx39("footer", { ...props, className: classNames2, children });
1784
1663
  };
1785
1664
 
1786
1665
  // src/Image/Image.tsx
1787
1666
  import {
1788
- cn as cn20,
1667
+ cn as cn21,
1789
1668
  objectFit,
1790
1669
  objectPosition,
1791
1670
  useClassNames as useClassNames20
1792
1671
  } from "@marigold/system";
1793
- import { jsx as jsx41 } from "react/jsx-runtime";
1672
+ import { jsx as jsx40 } from "react/jsx-runtime";
1794
1673
  var Image = ({
1795
1674
  variant,
1796
1675
  size,
@@ -1799,12 +1678,12 @@ var Image = ({
1799
1678
  ...props
1800
1679
  }) => {
1801
1680
  const classNames2 = useClassNames20({ component: "Image", variant, size });
1802
- return /* @__PURE__ */ jsx41(
1681
+ return /* @__PURE__ */ jsx40(
1803
1682
  "img",
1804
1683
  {
1805
1684
  ...props,
1806
1685
  alt: props.alt,
1807
- className: cn20(
1686
+ className: cn21(
1808
1687
  fit !== "none" && "h-full w-full",
1809
1688
  classNames2,
1810
1689
  objectFit[fit],
@@ -1817,10 +1696,10 @@ var Image = ({
1817
1696
  // src/Inline/Inline.tsx
1818
1697
  import {
1819
1698
  alignment as alignment2,
1820
- cn as cn21,
1699
+ cn as cn22,
1821
1700
  gapSpace as gapSpace5
1822
1701
  } from "@marigold/system";
1823
- import { jsx as jsx42 } from "react/jsx-runtime";
1702
+ import { jsx as jsx41 } from "react/jsx-runtime";
1824
1703
  var Inline = ({
1825
1704
  space = 0,
1826
1705
  orientation,
@@ -1830,11 +1709,11 @@ var Inline = ({
1830
1709
  ...props
1831
1710
  }) => {
1832
1711
  var _a2, _b2, _c, _d;
1833
- return /* @__PURE__ */ jsx42(
1712
+ return /* @__PURE__ */ jsx41(
1834
1713
  "div",
1835
1714
  {
1836
1715
  ...props,
1837
- className: cn21(
1716
+ className: cn22(
1838
1717
  "flex flex-wrap",
1839
1718
  gapSpace5[space],
1840
1719
  alignX && ((_b2 = (_a2 = alignment2) == null ? void 0 : _a2.horizontal) == null ? void 0 : _b2.alignmentX[alignX]),
@@ -1849,20 +1728,20 @@ var Inline = ({
1849
1728
  import { createCalendar } from "@internationalized/date";
1850
1729
  import { useRef as useRef11 } from "react";
1851
1730
  import { useDateField } from "@react-aria/datepicker";
1852
- import { useFocusRing as useFocusRing6 } from "@react-aria/focus";
1731
+ import { useFocusRing as useFocusRing4 } from "@react-aria/focus";
1853
1732
  import { useLocale } from "@react-aria/i18n";
1854
- import { useHover as useHover4 } from "@react-aria/interactions";
1855
- import { mergeProps as mergeProps8 } from "@react-aria/utils";
1733
+ import { useHover as useHover2 } from "@react-aria/interactions";
1734
+ import { mergeProps as mergeProps7 } from "@react-aria/utils";
1856
1735
  import { useDateFieldState } from "@react-stately/datepicker";
1857
- import { cn as cn23, useClassNames as useClassNames21, useStateProps as useStateProps8 } from "@marigold/system";
1736
+ import { cn as cn24, useClassNames as useClassNames21, useStateProps as useStateProps6 } from "@marigold/system";
1858
1737
 
1859
1738
  // src/DateField/DateSegment.tsx
1860
1739
  import { useRef as useRef10 } from "react";
1861
1740
  import { useDateSegment } from "@react-aria/datepicker";
1862
- import { useFocusRing as useFocusRing5 } from "@react-aria/focus";
1863
- import { mergeProps as mergeProps7 } from "@react-aria/utils";
1864
- import { cn as cn22, useStateProps as useStateProps7 } from "@marigold/system";
1865
- import { jsx as jsx43, jsxs as jsxs17 } from "react/jsx-runtime";
1741
+ import { useFocusRing as useFocusRing3 } from "@react-aria/focus";
1742
+ import { mergeProps as mergeProps6 } from "@react-aria/utils";
1743
+ import { cn as cn23, useStateProps as useStateProps5 } from "@marigold/system";
1744
+ import { jsx as jsx42, jsxs as jsxs16 } from "react/jsx-runtime";
1866
1745
  var DateSegment = ({
1867
1746
  className,
1868
1747
  segment,
@@ -1871,21 +1750,21 @@ var DateSegment = ({
1871
1750
  }) => {
1872
1751
  const ref = useRef10(null);
1873
1752
  const { segmentProps } = useDateSegment(segment, state, ref);
1874
- const { focusProps, isFocused } = useFocusRing5({
1753
+ const { focusProps, isFocused } = useFocusRing3({
1875
1754
  within: true,
1876
1755
  isTextInput: true
1877
1756
  });
1878
- const stateProps = useStateProps7({
1757
+ const stateProps = useStateProps5({
1879
1758
  disabled: state.isDisabled,
1880
1759
  focusVisible: isFocused
1881
1760
  });
1882
1761
  const { isPlaceholder, placeholder, text, type, maxValue } = segment;
1883
- return /* @__PURE__ */ jsxs17(
1762
+ return /* @__PURE__ */ jsxs16(
1884
1763
  "div",
1885
1764
  {
1886
- ...mergeProps7(segmentProps, stateProps, focusProps),
1765
+ ...mergeProps6(segmentProps, stateProps, focusProps),
1887
1766
  ref,
1888
- className: cn22(
1767
+ className: cn23(
1889
1768
  "group/segment",
1890
1769
  "text-center leading-none outline-0",
1891
1770
  type !== "literal" && "p-0.5",
@@ -1896,25 +1775,25 @@ var DateSegment = ({
1896
1775
  minWidth: maxValue != null ? String(maxValue).length + "ch" : void 0
1897
1776
  },
1898
1777
  children: [
1899
- /* @__PURE__ */ jsx43(
1778
+ /* @__PURE__ */ jsx42(
1900
1779
  "span",
1901
1780
  {
1902
1781
  "aria-hidden": "true",
1903
- className: cn22(
1782
+ className: cn23(
1904
1783
  isPlaceholder ? "visible block" : "invisible hidden",
1905
1784
  "pointer-events-none w-full text-center"
1906
1785
  ),
1907
1786
  children: isPlaceholder && (placeholder == null ? void 0 : placeholder.toUpperCase())
1908
1787
  }
1909
1788
  ),
1910
- /* @__PURE__ */ jsx43("span", { children: isPlaceholder ? "" : type === "month" || type === "day" ? Number(text) < 10 ? "0" + text : text : text })
1789
+ /* @__PURE__ */ jsx42("span", { children: isPlaceholder ? "" : type === "month" || type === "day" ? Number(text) < 10 ? "0" + text : text : text })
1911
1790
  ]
1912
1791
  }
1913
1792
  );
1914
1793
  };
1915
1794
 
1916
1795
  // src/DateField/DateField.tsx
1917
- import { jsx as jsx44, jsxs as jsxs18 } from "react/jsx-runtime";
1796
+ import { jsx as jsx43, jsxs as jsxs17 } from "react/jsx-runtime";
1918
1797
  var DateField = ({
1919
1798
  disabled,
1920
1799
  readOnly,
@@ -1950,13 +1829,13 @@ var DateField = ({
1950
1829
  ref
1951
1830
  );
1952
1831
  const classNames2 = useClassNames21({ component: "DateField", variant, size });
1953
- const { focusProps, isFocused } = useFocusRing6({
1832
+ const { focusProps, isFocused } = useFocusRing4({
1954
1833
  within: true,
1955
1834
  isTextInput: true,
1956
1835
  autoFocus: props.autoFocus
1957
1836
  });
1958
- const { hoverProps, isHovered } = useHover4({ isDisabled: disabled });
1959
- const stateProps = useStateProps8({
1837
+ const { hoverProps, isHovered } = useHover2({ isDisabled: disabled });
1838
+ const stateProps = useStateProps6({
1960
1839
  hover: isHovered,
1961
1840
  error,
1962
1841
  readOnly,
@@ -1964,7 +1843,7 @@ var DateField = ({
1964
1843
  required,
1965
1844
  focus: isFocused || isPressed
1966
1845
  });
1967
- return /* @__PURE__ */ jsx44(
1846
+ return /* @__PURE__ */ jsx43(
1968
1847
  FieldBase,
1969
1848
  {
1970
1849
  error,
@@ -1979,11 +1858,11 @@ var DateField = ({
1979
1858
  variant,
1980
1859
  size,
1981
1860
  width,
1982
- children: /* @__PURE__ */ jsxs18(
1861
+ children: /* @__PURE__ */ jsxs17(
1983
1862
  "div",
1984
1863
  {
1985
- ...mergeProps8(fieldProps, focusProps, stateProps, hoverProps),
1986
- className: cn23(
1864
+ ...mergeProps7(fieldProps, focusProps, stateProps, hoverProps),
1865
+ className: cn24(
1987
1866
  "relative flex flex-row flex-nowrap",
1988
1867
  "cursor-text aria-disabled:cursor-not-allowed",
1989
1868
  classNames2.field
@@ -1991,9 +1870,9 @@ var DateField = ({
1991
1870
  "data-testid": "date-field",
1992
1871
  ref: triggerRef,
1993
1872
  children: [
1994
- /* @__PURE__ */ jsx44("div", { ref, className: "flex basis-full items-center", children: state.segments.map((segment, i) => {
1873
+ /* @__PURE__ */ jsx43("div", { ref, className: "flex basis-full items-center", children: state.segments.map((segment, i) => {
1995
1874
  var _a;
1996
- return /* @__PURE__ */ jsx44(
1875
+ return /* @__PURE__ */ jsx43(
1997
1876
  DateSegment,
1998
1877
  {
1999
1878
  className: classNames2.segment,
@@ -2004,15 +1883,15 @@ var DateField = ({
2004
1883
  i
2005
1884
  );
2006
1885
  }) }),
2007
- action ? action : /* @__PURE__ */ jsx44("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx44(
1886
+ action ? action : /* @__PURE__ */ jsx43("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx43(
2008
1887
  "svg",
2009
1888
  {
2010
1889
  "data-testid": "action",
2011
- className: cn23(classNames2.action),
1890
+ className: cn24(classNames2.action),
2012
1891
  viewBox: "0 0 24 24",
2013
1892
  width: 24,
2014
1893
  height: 24,
2015
- children: /* @__PURE__ */ jsx44("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" })
1894
+ children: /* @__PURE__ */ jsx43("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" })
2016
1895
  }
2017
1896
  ) })
2018
1897
  ]
@@ -2031,7 +1910,7 @@ import {
2031
1910
  import { useLocale as useLocale3 } from "@react-aria/i18n";
2032
1911
  import { useCalendarState } from "@react-stately/calendar";
2033
1912
  import { ChevronLeft, ChevronRight } from "@marigold/icons";
2034
- import { cn as cn26, useClassNames as useClassNames24, useStateProps as useStateProps11 } from "@marigold/system";
1913
+ import { cn as cn27, useClassNames as useClassNames24, useStateProps as useStateProps9 } from "@marigold/system";
2035
1914
 
2036
1915
  // src/Calendar/CalendarGrid.tsx
2037
1916
  import { getWeeksInMonth, startOfWeek, today } from "@internationalized/date";
@@ -2043,10 +1922,10 @@ import { useDateFormatter } from "@react-aria/i18n";
2043
1922
  // src/Calendar/CalendarCell.tsx
2044
1923
  import { useRef as useRef12 } from "react";
2045
1924
  import { useCalendarCell } from "@react-aria/calendar";
2046
- import { useHover as useHover5 } from "@react-aria/interactions";
2047
- import { mergeProps as mergeProps9 } from "@react-aria/utils";
2048
- import { cn as cn24, useClassNames as useClassNames22, useStateProps as useStateProps9 } from "@marigold/system";
2049
- import { jsx as jsx45 } from "react/jsx-runtime";
1925
+ import { useHover as useHover3 } from "@react-aria/interactions";
1926
+ import { mergeProps as mergeProps8 } from "@react-aria/utils";
1927
+ import { cn as cn25, useClassNames as useClassNames22, useStateProps as useStateProps7 } from "@marigold/system";
1928
+ import { jsx as jsx44 } from "react/jsx-runtime";
2050
1929
  var CalendarCell = (props) => {
2051
1930
  const ref = useRef12(null);
2052
1931
  const { state } = props;
@@ -2055,31 +1934,31 @@ var CalendarCell = (props) => {
2055
1934
  component: "Calendar"
2056
1935
  });
2057
1936
  const isDisabled = cellProps["aria-disabled"];
2058
- const { hoverProps, isHovered } = useHover5({
1937
+ const { hoverProps, isHovered } = useHover3({
2059
1938
  isDisabled: isDisabled || cellProps["aria-selected"]
2060
1939
  });
2061
- const stateProps = useStateProps9({
1940
+ const stateProps = useStateProps7({
2062
1941
  disabled: isDisabled,
2063
1942
  hover: isHovered,
2064
1943
  selected: cellProps["aria-selected"]
2065
1944
  });
2066
- return /* @__PURE__ */ jsx45("td", { className: "group/cell", ...cellProps, children: /* @__PURE__ */ jsx45(
1945
+ return /* @__PURE__ */ jsx44("td", { className: "group/cell", ...cellProps, children: /* @__PURE__ */ jsx44(
2067
1946
  "div",
2068
1947
  {
2069
- className: cn24(
1948
+ className: cn25(
2070
1949
  "flex h-[30px] w-[30px] cursor-pointer items-center justify-center rounded-full p-[5.3px] text-sm font-normal aria-disabled:cursor-default",
2071
1950
  classNames2.calendarCell
2072
1951
  ),
2073
1952
  hidden: isOutsideVisibleRange,
2074
1953
  ref,
2075
- ...mergeProps9(buttonProps, stateProps, hoverProps),
1954
+ ...mergeProps8(buttonProps, stateProps, hoverProps),
2076
1955
  children: formattedDate
2077
1956
  }
2078
1957
  ) });
2079
1958
  };
2080
1959
 
2081
1960
  // src/Calendar/CalendarGrid.tsx
2082
- import { jsx as jsx46, jsxs as jsxs19 } from "react/jsx-runtime";
1961
+ import { jsx as jsx45, jsxs as jsxs18 } from "react/jsx-runtime";
2083
1962
  var CalendarGrid = ({ state, ...props }) => {
2084
1963
  const { locale } = useLocale2();
2085
1964
  const { gridProps, headerProps } = useCalendarGrid(props, state);
@@ -2099,23 +1978,23 @@ var CalendarGrid = ({ state, ...props }) => {
2099
1978
  return dayFormatter.format(dateDay);
2100
1979
  });
2101
1980
  }, [locale, state.timeZone, dayFormatter]);
2102
- return /* @__PURE__ */ jsxs19(
1981
+ return /* @__PURE__ */ jsxs18(
2103
1982
  "table",
2104
1983
  {
2105
1984
  className: "w-full border-spacing-[6px]",
2106
1985
  ...gridProps,
2107
1986
  cellPadding: "8",
2108
1987
  children: [
2109
- /* @__PURE__ */ jsx46("thead", { ...headerProps, children: /* @__PURE__ */ jsx46("tr", { children: weekDays.map((day, index) => /* @__PURE__ */ jsx46("th", { style: { fontWeight: "bolder" }, children: day.substring(0, 2) }, index)) }) }),
2110
- /* @__PURE__ */ jsx46("tbody", { children: [...new Array(numberOfWeeksInMonth).keys()].map((weekIndex) => /* @__PURE__ */ jsx46("tr", { children: state.getDatesInWeek(weekIndex).map(
2111
- (date, i) => date ? /* @__PURE__ */ jsx46(
1988
+ /* @__PURE__ */ jsx45("thead", { ...headerProps, children: /* @__PURE__ */ jsx45("tr", { children: weekDays.map((day, index) => /* @__PURE__ */ jsx45("th", { style: { fontWeight: "bolder" }, children: day.substring(0, 2) }, index)) }) }),
1989
+ /* @__PURE__ */ jsx45("tbody", { children: [...new Array(numberOfWeeksInMonth).keys()].map((weekIndex) => /* @__PURE__ */ jsx45("tr", { children: state.getDatesInWeek(weekIndex).map(
1990
+ (date, i) => date ? /* @__PURE__ */ jsx45(
2112
1991
  CalendarCell,
2113
1992
  {
2114
1993
  date,
2115
1994
  state
2116
1995
  },
2117
1996
  i
2118
- ) : /* @__PURE__ */ jsx46("td", {}, i)
1997
+ ) : /* @__PURE__ */ jsx45("td", {}, i)
2119
1998
  ) }, weekIndex)) })
2120
1999
  ]
2121
2000
  }
@@ -2130,18 +2009,18 @@ import {
2130
2009
  forwardRef as forwardRef10,
2131
2010
  useRef as useRef13
2132
2011
  } from "react";
2133
- import { useButton as useButton6 } from "@react-aria/button";
2134
- import { useFocusRing as useFocusRing7 } from "@react-aria/focus";
2012
+ import { useButton as useButton4 } from "@react-aria/button";
2013
+ import { useFocusRing as useFocusRing5 } from "@react-aria/focus";
2135
2014
  import { useLocalizedStringFormatter } from "@react-aria/i18n";
2136
2015
  import { HiddenSelect, useSelect } from "@react-aria/select";
2137
- import { mergeProps as mergeProps10, useObjectRef as useObjectRef6 } from "@react-aria/utils";
2016
+ import { mergeProps as mergeProps9, useObjectRef as useObjectRef4 } from "@react-aria/utils";
2138
2017
  import { Item as Item4, Section } from "@react-stately/collections";
2139
2018
  import { useSelectState } from "@react-stately/select";
2140
2019
  import {
2141
- cn as cn25,
2020
+ cn as cn26,
2142
2021
  useClassNames as useClassNames23,
2143
2022
  useSmallScreen,
2144
- useStateProps as useStateProps10
2023
+ useStateProps as useStateProps8
2145
2024
  } from "@marigold/system";
2146
2025
 
2147
2026
  // src/Select/intl.ts
@@ -2155,7 +2034,7 @@ var messages = {
2155
2034
  };
2156
2035
 
2157
2036
  // src/Select/Select.tsx
2158
- import { jsx as jsx47, jsxs as jsxs20 } from "react/jsx-runtime";
2037
+ import { jsx as jsx46, jsxs as jsxs19 } from "react/jsx-runtime";
2159
2038
  var Select = forwardRef10(
2160
2039
  ({
2161
2040
  variant,
@@ -2178,7 +2057,7 @@ var Select = forwardRef10(
2178
2057
  onSelectionChange: onChange,
2179
2058
  ...rest
2180
2059
  };
2181
- const buttonRef = useObjectRef6(ref);
2060
+ const buttonRef = useObjectRef4(ref);
2182
2061
  const listboxRef = useRef13(null);
2183
2062
  const state = useSelectState(props);
2184
2063
  const {
@@ -2189,28 +2068,28 @@ var Select = forwardRef10(
2189
2068
  descriptionProps,
2190
2069
  errorMessageProps
2191
2070
  } = useSelect(props, state, buttonRef);
2192
- const { buttonProps } = useButton6(
2071
+ const { buttonProps } = useButton4(
2193
2072
  { isDisabled: disabled, ...triggerProps },
2194
2073
  buttonRef
2195
2074
  );
2196
- const { focusProps, isFocusVisible } = useFocusRing7();
2075
+ const { focusProps, isFocusVisible } = useFocusRing5();
2197
2076
  const classNames2 = useClassNames23({ component: "Select", variant, size });
2198
2077
  const isSmallScreen = useSmallScreen();
2199
- const stateProps = useStateProps10({
2078
+ const stateProps = useStateProps8({
2200
2079
  disabled,
2201
2080
  error,
2202
2081
  focusVisible: isFocusVisible,
2203
2082
  expanded: state.isOpen,
2204
2083
  required
2205
2084
  });
2206
- return /* @__PURE__ */ jsxs20(
2085
+ return /* @__PURE__ */ jsxs19(
2207
2086
  FieldBase,
2208
2087
  {
2209
2088
  variant,
2210
2089
  size,
2211
2090
  width,
2212
2091
  label: props.label,
2213
- labelProps: { as: "span", ...labelProps },
2092
+ labelProps: { elementType: "span", ...labelProps },
2214
2093
  description: props.description,
2215
2094
  descriptionProps,
2216
2095
  error,
@@ -2219,7 +2098,7 @@ var Select = forwardRef10(
2219
2098
  stateProps,
2220
2099
  disabled,
2221
2100
  children: [
2222
- /* @__PURE__ */ jsx47(
2101
+ /* @__PURE__ */ jsx46(
2223
2102
  HiddenSelect,
2224
2103
  {
2225
2104
  state,
@@ -2229,23 +2108,23 @@ var Select = forwardRef10(
2229
2108
  isDisabled: disabled
2230
2109
  }
2231
2110
  ),
2232
- /* @__PURE__ */ jsxs20(
2111
+ /* @__PURE__ */ jsxs19(
2233
2112
  "button",
2234
2113
  {
2235
- className: cn25(
2114
+ className: cn26(
2236
2115
  "flex w-full items-center justify-between gap-1 overflow-hidden",
2237
2116
  classNames2.select
2238
2117
  ),
2239
2118
  ref: buttonRef,
2240
- ...mergeProps10(buttonProps, focusProps),
2119
+ ...mergeProps9(buttonProps, focusProps),
2241
2120
  ...stateProps,
2242
2121
  children: [
2243
- /* @__PURE__ */ jsx47("div", { className: "overflow-hidden whitespace-nowrap", ...valueProps, children: state.selectedItem ? state.selectedItem.rendered : props.placeholder }),
2244
- /* @__PURE__ */ jsx47(ChevronDown, { className: "h-4 w-4" })
2122
+ /* @__PURE__ */ jsx46("div", { className: "overflow-hidden whitespace-nowrap", ...valueProps, children: state.selectedItem ? state.selectedItem.rendered : props.placeholder }),
2123
+ /* @__PURE__ */ jsx46(ChevronDown, { className: "h-4 w-4" })
2245
2124
  ]
2246
2125
  }
2247
2126
  ),
2248
- isSmallScreen ? /* @__PURE__ */ jsx47(Tray, { state, children: /* @__PURE__ */ jsx47(
2127
+ isSmallScreen ? /* @__PURE__ */ jsx46(Tray, { state, children: /* @__PURE__ */ jsx46(
2249
2128
  ListBox,
2250
2129
  {
2251
2130
  ref: listboxRef,
@@ -2254,7 +2133,7 @@ var Select = forwardRef10(
2254
2133
  size,
2255
2134
  ...menuProps
2256
2135
  }
2257
- ) }) : /* @__PURE__ */ jsx47(Popover, { state, triggerRef: buttonRef, scrollRef: listboxRef, children: /* @__PURE__ */ jsx47(
2136
+ ) }) : /* @__PURE__ */ jsx46(Popover, { state, triggerRef: buttonRef, scrollRef: listboxRef, children: /* @__PURE__ */ jsx46(
2258
2137
  ListBox,
2259
2138
  {
2260
2139
  ref: listboxRef,
@@ -2273,7 +2152,7 @@ Select.Option = Item4;
2273
2152
  Select.Section = Section;
2274
2153
 
2275
2154
  // src/Calendar/MonthDropdown.tsx
2276
- import { jsx as jsx48 } from "react/jsx-runtime";
2155
+ import { jsx as jsx47 } from "react/jsx-runtime";
2277
2156
  var MonthDropdown = ({ state }) => {
2278
2157
  let months = [];
2279
2158
  let formatter = useDateFormatter2({
@@ -2290,7 +2169,7 @@ var MonthDropdown = ({ state }) => {
2290
2169
  let date = state.focusedDate.set({ month: value });
2291
2170
  state.setFocusedDate(date);
2292
2171
  };
2293
- return /* @__PURE__ */ jsx48(
2172
+ return /* @__PURE__ */ jsx47(
2294
2173
  Select,
2295
2174
  {
2296
2175
  "aria-label": "Month",
@@ -2298,7 +2177,7 @@ var MonthDropdown = ({ state }) => {
2298
2177
  selectedKey: String(state.focusedDate.month),
2299
2178
  "data-testid": "month",
2300
2179
  disabled: state.isDisabled,
2301
- children: months.map((month, i) => /* @__PURE__ */ jsx48(Select.Option, { children: month.substring(0, 3) }, i + 1))
2180
+ children: months.map((month, i) => /* @__PURE__ */ jsx47(Select.Option, { children: month.substring(0, 3) }, i + 1))
2302
2181
  }
2303
2182
  );
2304
2183
  };
@@ -2306,7 +2185,7 @@ var MonthDropdown_default = MonthDropdown;
2306
2185
 
2307
2186
  // src/Calendar/YearDropdown.tsx
2308
2187
  import { useDateFormatter as useDateFormatter3 } from "@react-aria/i18n";
2309
- import { jsx as jsx49 } from "react/jsx-runtime";
2188
+ import { jsx as jsx48 } from "react/jsx-runtime";
2310
2189
  var YearDropdown = ({ state }) => {
2311
2190
  const years = [];
2312
2191
  let formatter = useDateFormatter3({
@@ -2325,7 +2204,7 @@ var YearDropdown = ({ state }) => {
2325
2204
  let date = years[index].value;
2326
2205
  state.setFocusedDate(date);
2327
2206
  };
2328
- return /* @__PURE__ */ jsx49(
2207
+ return /* @__PURE__ */ jsx48(
2329
2208
  Select,
2330
2209
  {
2331
2210
  "aria-label": "Year",
@@ -2333,14 +2212,14 @@ var YearDropdown = ({ state }) => {
2333
2212
  onChange,
2334
2213
  "data-testid": "year",
2335
2214
  disabled: state.isDisabled,
2336
- children: years.map((year, i) => /* @__PURE__ */ jsx49(Select.Option, { children: year.formatted }, i))
2215
+ children: years.map((year, i) => /* @__PURE__ */ jsx48(Select.Option, { children: year.formatted }, i))
2337
2216
  }
2338
2217
  );
2339
2218
  };
2340
2219
  var YearDropdown_default = YearDropdown;
2341
2220
 
2342
2221
  // src/Calendar/Calendar.tsx
2343
- import { jsx as jsx50, jsxs as jsxs21 } from "react/jsx-runtime";
2222
+ import { jsx as jsx49, jsxs as jsxs20 } from "react/jsx-runtime";
2344
2223
  var Calendar = ({
2345
2224
  disabled,
2346
2225
  readOnly,
@@ -2374,16 +2253,16 @@ var Calendar = ({
2374
2253
  onFocusChange: nextFocusChange,
2375
2254
  ...nextPropsRest
2376
2255
  } = nextButtonProps;
2377
- const calendarState = useStateProps11({
2256
+ const calendarState = useStateProps9({
2378
2257
  disabled: state.isDisabled,
2379
2258
  focusVisible: state.isFocused
2380
2259
  });
2381
2260
  const classNames2 = useClassNames24({ component: "Calendar" });
2382
- return /* @__PURE__ */ jsxs21(
2261
+ return /* @__PURE__ */ jsxs20(
2383
2262
  "div",
2384
2263
  {
2385
2264
  tabIndex: -1,
2386
- className: cn26(
2265
+ className: cn27(
2387
2266
  "flex w-[360px] flex-col rounded-sm p-4 shadow-[0_4px_4px_rgba(165,165,165,0.25)]",
2388
2267
  classNames2.calendar
2389
2268
  ),
@@ -2391,33 +2270,33 @@ var Calendar = ({
2391
2270
  ...calendarState,
2392
2271
  ref,
2393
2272
  children: [
2394
- /* @__PURE__ */ jsxs21("div", { className: "mb-4 flex items-center gap-[60px]", children: [
2395
- /* @__PURE__ */ jsxs21("div", { className: "flex min-w-[170px] gap-[9px] [&_div]:flex", children: [
2396
- /* @__PURE__ */ jsx50(MonthDropdown_default, { state }),
2397
- /* @__PURE__ */ jsx50(YearDropdown_default, { state })
2273
+ /* @__PURE__ */ jsxs20("div", { className: "mb-4 flex items-center gap-[60px]", children: [
2274
+ /* @__PURE__ */ jsxs20("div", { className: "flex min-w-[170px] gap-[9px] [&_div]:flex", children: [
2275
+ /* @__PURE__ */ jsx49(MonthDropdown_default, { state }),
2276
+ /* @__PURE__ */ jsx49(YearDropdown_default, { state })
2398
2277
  ] }),
2399
- /* @__PURE__ */ jsxs21("div", { className: "flex w-full flex-nowrap justify-end gap-[10px] [&_button:disabled]:cursor-not-allowed [&_button]:px-2 [&_button]:py-1", children: [
2400
- /* @__PURE__ */ jsx50(
2401
- Button,
2278
+ /* @__PURE__ */ jsxs20("div", { className: "flex w-full flex-nowrap justify-end gap-[10px] [&_button:disabled]:cursor-not-allowed [&_button]:px-2 [&_button]:py-1", children: [
2279
+ /* @__PURE__ */ jsx49(
2280
+ _Button,
2402
2281
  {
2403
2282
  className: classNames2.calendarControllers,
2404
2283
  ...prevPropsRest,
2405
2284
  disabled: prevIsDisabled,
2406
- children: /* @__PURE__ */ jsx50(ChevronLeft, {})
2285
+ children: /* @__PURE__ */ jsx49(ChevronLeft, {})
2407
2286
  }
2408
2287
  ),
2409
- /* @__PURE__ */ jsx50(
2410
- Button,
2288
+ /* @__PURE__ */ jsx49(
2289
+ _Button,
2411
2290
  {
2412
2291
  className: classNames2.calendarControllers,
2413
2292
  ...nextPropsRest,
2414
2293
  disabled: nextIsDisabled,
2415
- children: /* @__PURE__ */ jsx50(ChevronRight, {})
2294
+ children: /* @__PURE__ */ jsx49(ChevronRight, {})
2416
2295
  }
2417
2296
  )
2418
2297
  ] })
2419
2298
  ] }),
2420
- /* @__PURE__ */ jsx50(CalendarGrid, { state })
2299
+ /* @__PURE__ */ jsx49(CalendarGrid, { state })
2421
2300
  ]
2422
2301
  }
2423
2302
  );
@@ -2426,10 +2305,10 @@ var Calendar = ({
2426
2305
  // src/DatePicker/DatePicker.tsx
2427
2306
  import { useRef as useRef15 } from "react";
2428
2307
  import { useDatePicker } from "@react-aria/datepicker";
2429
- import { mergeProps as mergeProps11 } from "@react-aria/utils";
2308
+ import { mergeProps as mergeProps10 } from "@react-aria/utils";
2430
2309
  import { useDatePickerState } from "@react-stately/datepicker";
2431
- import { cn as cn27, useClassNames as useClassNames25, useStateProps as useStateProps12 } from "@marigold/system";
2432
- import { Fragment as Fragment4, jsx as jsx51, jsxs as jsxs22 } from "react/jsx-runtime";
2310
+ import { cn as cn28, useClassNames as useClassNames25, useStateProps as useStateProps10 } from "@marigold/system";
2311
+ import { Fragment as Fragment5, jsx as jsx50, jsxs as jsxs21 } from "react/jsx-runtime";
2433
2312
  var DatePicker = ({
2434
2313
  disabled,
2435
2314
  required,
@@ -2454,7 +2333,7 @@ var DatePicker = ({
2454
2333
  ...props
2455
2334
  });
2456
2335
  const ref = useRef15(null);
2457
- const stateProps = useStateProps12({
2336
+ const stateProps = useStateProps10({
2458
2337
  focus: state.isOpen
2459
2338
  });
2460
2339
  const { groupProps, fieldProps, buttonProps, calendarProps } = useDatePicker(
@@ -2468,8 +2347,8 @@ var DatePicker = ({
2468
2347
  size,
2469
2348
  variant
2470
2349
  });
2471
- return /* @__PURE__ */ jsxs22(Fragment4, { children: [
2472
- /* @__PURE__ */ jsx51("div", { className: "flex w-full min-w-[300px]", ...groupProps, children: /* @__PURE__ */ jsx51(
2350
+ return /* @__PURE__ */ jsxs21(Fragment5, { children: [
2351
+ /* @__PURE__ */ jsx50("div", { className: "flex w-full min-w-[300px]", ...groupProps, children: /* @__PURE__ */ jsx50(
2473
2352
  DateField,
2474
2353
  {
2475
2354
  ...fieldProps,
@@ -2482,42 +2361,42 @@ var DatePicker = ({
2482
2361
  description: !state.isOpen && description,
2483
2362
  triggerRef: ref,
2484
2363
  width,
2485
- action: /* @__PURE__ */ jsx51("div", { className: classNames2.container, children: /* @__PURE__ */ jsx51(
2486
- Button,
2364
+ action: /* @__PURE__ */ jsx50("div", { className: classNames2.container, children: /* @__PURE__ */ jsx50(
2365
+ _Button,
2487
2366
  {
2488
- ...mergeProps11(buttonProps, stateProps),
2489
- className: cn27("absolute right-0 top-0", classNames2.button),
2367
+ ...mergeProps10(buttonProps, stateProps),
2368
+ className: cn28("absolute right-0 top-0", classNames2.button),
2490
2369
  disabled: isDisabled,
2491
- children: /* @__PURE__ */ jsx51(
2370
+ children: /* @__PURE__ */ jsx50(
2492
2371
  "svg",
2493
2372
  {
2494
2373
  width: "24",
2495
2374
  height: "24",
2496
2375
  viewBox: "0 0 24 24",
2497
2376
  fill: "currentColor",
2498
- children: /* @__PURE__ */ jsx51("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" })
2377
+ children: /* @__PURE__ */ jsx50("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" })
2499
2378
  }
2500
2379
  )
2501
2380
  }
2502
2381
  ) })
2503
2382
  }
2504
2383
  ) }),
2505
- state.isOpen && /* @__PURE__ */ jsx51(Popover, { triggerRef: ref, state, children: /* @__PURE__ */ jsx51(Calendar, { disabled, ...calendarProps }) })
2384
+ state.isOpen && /* @__PURE__ */ jsx50(Popover, { triggerRef: ref, state, children: /* @__PURE__ */ jsx50(Calendar, { disabled, ...calendarProps }) })
2506
2385
  ] });
2507
2386
  };
2508
2387
 
2509
2388
  // src/Inset/Inset.tsx
2510
2389
  import {
2511
- cn as cn28,
2390
+ cn as cn29,
2512
2391
  paddingSpace as paddingSpace2,
2513
2392
  paddingSpaceX as paddingSpaceX2,
2514
2393
  paddingSpaceY as paddingSpaceY2
2515
2394
  } from "@marigold/system";
2516
- import { jsx as jsx52 } from "react/jsx-runtime";
2517
- var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx52(
2395
+ import { jsx as jsx51 } from "react/jsx-runtime";
2396
+ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx51(
2518
2397
  "div",
2519
2398
  {
2520
- className: cn28(
2399
+ className: cn29(
2521
2400
  space && paddingSpace2[space],
2522
2401
  !space && spaceX && paddingSpaceX2[spaceX],
2523
2402
  !space && spaceY && paddingSpaceY2[spaceY]
@@ -2528,47 +2407,17 @@ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx52(
2528
2407
 
2529
2408
  // src/Link/Link.tsx
2530
2409
  import { forwardRef as forwardRef11 } from "react";
2531
- import { useLink } from "@react-aria/link";
2532
- import { useObjectRef as useObjectRef7 } from "@react-aria/utils";
2410
+ import { Link } from "react-aria-components";
2533
2411
  import { useClassNames as useClassNames26 } from "@marigold/system";
2534
- import { jsx as jsx53 } from "react/jsx-runtime";
2535
- var Link = forwardRef11(
2536
- ({
2537
- as = "a",
2538
- variant,
2539
- size,
2540
- children,
2541
- disabled,
2542
- onPress,
2543
- onPressStart,
2544
- ...props
2545
- }, ref) => {
2546
- const linkRef = useObjectRef7(ref);
2547
- const { linkProps } = useLink(
2548
- {
2549
- ...props,
2550
- elementType: typeof as === "string" ? as : "span",
2551
- isDisabled: disabled
2552
- },
2553
- linkRef
2554
- );
2555
- const Component = as;
2412
+ import { jsx as jsx52 } from "react/jsx-runtime";
2413
+ var _Link = forwardRef11(
2414
+ ({ variant, size, disabled, children, ...props }, ref) => {
2556
2415
  const classNames2 = useClassNames26({
2557
2416
  component: "Link",
2558
2417
  variant,
2559
2418
  size
2560
2419
  });
2561
- return /* @__PURE__ */ jsx53(
2562
- Component,
2563
- {
2564
- ...props,
2565
- role: "link",
2566
- className: classNames2,
2567
- ref: linkRef,
2568
- ...linkProps,
2569
- children
2570
- }
2571
- );
2420
+ return /* @__PURE__ */ jsx52(Link, { ...props, ref, className: classNames2, isDisabled: disabled, children });
2572
2421
  }
2573
2422
  );
2574
2423
 
@@ -2581,14 +2430,14 @@ var ListContext = createContext5({});
2581
2430
  var useListContext = () => useContext5(ListContext);
2582
2431
 
2583
2432
  // src/List/ListItem.tsx
2584
- import { jsx as jsx54 } from "react/jsx-runtime";
2433
+ import { jsx as jsx53 } from "react/jsx-runtime";
2585
2434
  var ListItem = ({ children, ...props }) => {
2586
2435
  const { classNames: classNames2 } = useListContext();
2587
- return /* @__PURE__ */ jsx54("li", { ...props, className: classNames2, children });
2436
+ return /* @__PURE__ */ jsx53("li", { ...props, className: classNames2, children });
2588
2437
  };
2589
2438
 
2590
2439
  // src/List/List.tsx
2591
- import { jsx as jsx55 } from "react/jsx-runtime";
2440
+ import { jsx as jsx54 } from "react/jsx-runtime";
2592
2441
  var List = ({
2593
2442
  as = "ul",
2594
2443
  children,
@@ -2598,7 +2447,7 @@ var List = ({
2598
2447
  }) => {
2599
2448
  const Component = as;
2600
2449
  const classNames2 = useClassNames27({ component: "List", variant, size });
2601
- return /* @__PURE__ */ jsx55(Component, { ...props, className: classNames2[as], children: /* @__PURE__ */ jsx55(ListContext.Provider, { value: { classNames: classNames2.item }, children }) });
2450
+ return /* @__PURE__ */ jsx54(Component, { ...props, className: classNames2[as], children: /* @__PURE__ */ jsx54(ListContext.Provider, { value: { classNames: classNames2.item }, children }) });
2602
2451
  };
2603
2452
  List.Item = ListItem;
2604
2453
 
@@ -2620,11 +2469,11 @@ var useMenuContext = () => useContext6(MenuContext);
2620
2469
 
2621
2470
  // src/Menu/MenuItem.tsx
2622
2471
  import { useRef as useRef16 } from "react";
2623
- import { useFocusRing as useFocusRing8 } from "@react-aria/focus";
2472
+ import { useFocusRing as useFocusRing6 } from "@react-aria/focus";
2624
2473
  import { useMenuItem } from "@react-aria/menu";
2625
- import { mergeProps as mergeProps12 } from "@react-aria/utils";
2626
- import { useStateProps as useStateProps13 } from "@marigold/system";
2627
- import { jsx as jsx56 } from "react/jsx-runtime";
2474
+ import { mergeProps as mergeProps11 } from "@react-aria/utils";
2475
+ import { useStateProps as useStateProps11 } from "@marigold/system";
2476
+ import { jsx as jsx55 } from "react/jsx-runtime";
2628
2477
  var MenuItem = ({
2629
2478
  item,
2630
2479
  state,
@@ -2642,17 +2491,17 @@ var MenuItem = ({
2642
2491
  state,
2643
2492
  ref
2644
2493
  );
2645
- const { isFocusVisible, focusProps } = useFocusRing8();
2646
- const stateProps = useStateProps13({
2494
+ const { isFocusVisible, focusProps } = useFocusRing6();
2495
+ const stateProps = useStateProps11({
2647
2496
  focus: isFocusVisible
2648
2497
  });
2649
2498
  const { onPointerUp, ...props } = menuItemProps;
2650
- return /* @__PURE__ */ jsx56(
2499
+ return /* @__PURE__ */ jsx55(
2651
2500
  "li",
2652
2501
  {
2653
2502
  ref,
2654
2503
  className,
2655
- ...mergeProps12(
2504
+ ...mergeProps11(
2656
2505
  props,
2657
2506
  { onPointerDown: onPointerUp },
2658
2507
  stateProps,
@@ -2666,18 +2515,18 @@ var MenuItem = ({
2666
2515
  // src/Menu/MenuSection.tsx
2667
2516
  import { useMenuSection } from "@react-aria/menu";
2668
2517
  import { useClassNames as useClassNames28 } from "@marigold/system";
2669
- import { Fragment as Fragment5, jsx as jsx57, jsxs as jsxs23 } from "react/jsx-runtime";
2518
+ import { Fragment as Fragment6, jsx as jsx56, jsxs as jsxs22 } from "react/jsx-runtime";
2670
2519
  var MenuSection = ({ onAction, item, state }) => {
2671
2520
  let { itemProps, headingProps, groupProps } = useMenuSection({
2672
2521
  heading: item.rendered,
2673
2522
  "aria-label": item["aria-label"]
2674
2523
  });
2675
2524
  const className = useClassNames28({ component: "Menu" });
2676
- return /* @__PURE__ */ jsxs23(Fragment5, { children: [
2677
- item.key !== state.collection.getFirstKey() && /* @__PURE__ */ jsx57("li", { children: /* @__PURE__ */ jsx57(Divider, { variant: "section" }) }),
2678
- /* @__PURE__ */ jsxs23("li", { ...itemProps, children: [
2679
- item.rendered && /* @__PURE__ */ jsx57("span", { ...headingProps, className: className.section, children: item.rendered }),
2680
- /* @__PURE__ */ jsx57("ul", { ...groupProps, className: "pb-1", children: [...item.props.children].map((node) => /* @__PURE__ */ jsx57(
2525
+ return /* @__PURE__ */ jsxs22(Fragment6, { children: [
2526
+ item.key !== state.collection.getFirstKey() && /* @__PURE__ */ jsx56("li", { children: /* @__PURE__ */ jsx56(_Divider, { variant: "section" }) }),
2527
+ /* @__PURE__ */ jsxs22("li", { ...itemProps, children: [
2528
+ item.rendered && /* @__PURE__ */ jsx56("span", { ...headingProps, className: className.section, children: item.rendered }),
2529
+ /* @__PURE__ */ jsx56("ul", { ...groupProps, className: "pb-1", children: [...item.props.children].map((node) => /* @__PURE__ */ jsx56(
2681
2530
  MenuItem,
2682
2531
  {
2683
2532
  item: node,
@@ -2696,10 +2545,10 @@ var MenuSection_default = MenuSection;
2696
2545
  import { Children as Children6, useRef as useRef17 } from "react";
2697
2546
  import { PressResponder as PressResponder2 } from "@react-aria/interactions";
2698
2547
  import { useMenuTrigger } from "@react-aria/menu";
2699
- import { useObjectRef as useObjectRef8 } from "@react-aria/utils";
2548
+ import { useObjectRef as useObjectRef5 } from "@react-aria/utils";
2700
2549
  import { useMenuTriggerState } from "@react-stately/menu";
2701
2550
  import { useSmallScreen as useSmallScreen2 } from "@marigold/system";
2702
- import { jsx as jsx58, jsxs as jsxs24 } from "react/jsx-runtime";
2551
+ import { jsx as jsx57, jsxs as jsxs23 } from "react/jsx-runtime";
2703
2552
  var MenuTrigger = ({
2704
2553
  disabled,
2705
2554
  open,
@@ -2708,7 +2557,7 @@ var MenuTrigger = ({
2708
2557
  }) => {
2709
2558
  const [menuTrigger, menu] = Children6.toArray(children);
2710
2559
  const menuTriggerRef = useRef17(null);
2711
- const menuRef = useObjectRef8();
2560
+ const menuRef = useObjectRef5();
2712
2561
  const state = useMenuTriggerState({
2713
2562
  isOpen: open,
2714
2563
  onOpenChange
@@ -2726,8 +2575,8 @@ var MenuTrigger = ({
2726
2575
  autoFocus: state.focusStrategy
2727
2576
  };
2728
2577
  const isSmallScreen = useSmallScreen2();
2729
- return /* @__PURE__ */ jsxs24(MenuContext.Provider, { value: menuContext, children: [
2730
- /* @__PURE__ */ jsx58(
2578
+ return /* @__PURE__ */ jsxs23(MenuContext.Provider, { value: menuContext, children: [
2579
+ /* @__PURE__ */ jsx57(
2731
2580
  PressResponder2,
2732
2581
  {
2733
2582
  ...menuTriggerProps,
@@ -2736,12 +2585,12 @@ var MenuTrigger = ({
2736
2585
  children: menuTrigger
2737
2586
  }
2738
2587
  ),
2739
- isSmallScreen ? /* @__PURE__ */ jsx58(Tray, { state, children: menu }) : /* @__PURE__ */ jsx58(Popover, { triggerRef: menuTriggerRef, scrollRef: menuRef, state, children: menu })
2588
+ isSmallScreen ? /* @__PURE__ */ jsx57(Tray, { state, children: menu }) : /* @__PURE__ */ jsx57(Popover, { triggerRef: menuTriggerRef, scrollRef: menuRef, state, children: menu })
2740
2589
  ] });
2741
2590
  };
2742
2591
 
2743
2592
  // src/Menu/Menu.tsx
2744
- import { jsx as jsx59 } from "react/jsx-runtime";
2593
+ import { jsx as jsx58 } from "react/jsx-runtime";
2745
2594
  var Menu = ({ variant, size, ...props }) => {
2746
2595
  const { ref: scrollRef, ...menuContext } = useMenuContext();
2747
2596
  const ownProps = { ...props, ...menuContext };
@@ -2750,9 +2599,9 @@ var Menu = ({ variant, size, ...props }) => {
2750
2599
  const { menuProps } = useMenu(ownProps, state, ref);
2751
2600
  useSyncRef({ ref: scrollRef }, ref);
2752
2601
  const classNames2 = useClassNames29({ component: "Menu", variant, size });
2753
- return /* @__PURE__ */ jsx59("ul", { ref, className: classNames2.container, ...menuProps, children: [...state.collection].map((item) => {
2602
+ return /* @__PURE__ */ jsx58("ul", { ref, className: classNames2.container, ...menuProps, children: [...state.collection].map((item) => {
2754
2603
  if (item.type === "section") {
2755
- return /* @__PURE__ */ jsx59(
2604
+ return /* @__PURE__ */ jsx58(
2756
2605
  MenuSection_default,
2757
2606
  {
2758
2607
  item,
@@ -2762,7 +2611,7 @@ var Menu = ({ variant, size, ...props }) => {
2762
2611
  item.key
2763
2612
  );
2764
2613
  }
2765
- return /* @__PURE__ */ jsx59(
2614
+ return /* @__PURE__ */ jsx58(
2766
2615
  MenuItem,
2767
2616
  {
2768
2617
  item,
@@ -2780,25 +2629,25 @@ Menu.Section = Section2;
2780
2629
 
2781
2630
  // src/Menu/ActionMenu.tsx
2782
2631
  import { SVG as SVG5 } from "@marigold/system";
2783
- import { jsx as jsx60, jsxs as jsxs25 } from "react/jsx-runtime";
2632
+ import { jsx as jsx59, jsxs as jsxs24 } from "react/jsx-runtime";
2784
2633
  var ActionMenu = (props) => {
2785
- return /* @__PURE__ */ jsxs25(Menu.Trigger, { children: [
2786
- /* @__PURE__ */ jsx60(Button, { variant: "menu", size: "small", children: /* @__PURE__ */ jsx60(SVG5, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx60("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" }) }) }),
2787
- /* @__PURE__ */ jsx60(Menu, { ...props })
2634
+ return /* @__PURE__ */ jsxs24(Menu.Trigger, { children: [
2635
+ /* @__PURE__ */ jsx59(_Button, { variant: "menu", size: "small", children: /* @__PURE__ */ jsx59(SVG5, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx59("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" }) }) }),
2636
+ /* @__PURE__ */ jsx59(Menu, { ...props })
2788
2637
  ] });
2789
2638
  };
2790
2639
 
2791
2640
  // src/Message/Message.tsx
2792
- import { cn as cn29, useClassNames as useClassNames30 } from "@marigold/system";
2793
- import { jsx as jsx61, jsxs as jsxs26 } from "react/jsx-runtime";
2641
+ import { cn as cn30, useClassNames as useClassNames30 } from "@marigold/system";
2642
+ import { jsx as jsx60, jsxs as jsxs25 } from "react/jsx-runtime";
2794
2643
  var icons = {
2795
- info: () => /* @__PURE__ */ jsx61(
2644
+ info: () => /* @__PURE__ */ jsx60(
2796
2645
  "svg",
2797
2646
  {
2798
2647
  xmlns: "http://www.w3.org/2000/svg",
2799
2648
  viewBox: "0 0 24 24",
2800
2649
  fill: "currentColor",
2801
- children: /* @__PURE__ */ jsx61(
2650
+ children: /* @__PURE__ */ jsx60(
2802
2651
  "path",
2803
2652
  {
2804
2653
  fillRule: "evenodd",
@@ -2808,13 +2657,13 @@ var icons = {
2808
2657
  )
2809
2658
  }
2810
2659
  ),
2811
- warning: () => /* @__PURE__ */ jsx61(
2660
+ warning: () => /* @__PURE__ */ jsx60(
2812
2661
  "svg",
2813
2662
  {
2814
2663
  xmlns: "http://www.w3.org/2000/svg",
2815
2664
  viewBox: "0 0 24 24",
2816
2665
  fill: "currentColor",
2817
- children: /* @__PURE__ */ jsx61(
2666
+ children: /* @__PURE__ */ jsx60(
2818
2667
  "path",
2819
2668
  {
2820
2669
  fillRule: "evenodd",
@@ -2824,13 +2673,13 @@ var icons = {
2824
2673
  )
2825
2674
  }
2826
2675
  ),
2827
- error: () => /* @__PURE__ */ jsx61(
2676
+ error: () => /* @__PURE__ */ jsx60(
2828
2677
  "svg",
2829
2678
  {
2830
2679
  xmlns: "http://www.w3.org/2000/svg",
2831
2680
  viewBox: "0 0 24 24",
2832
2681
  fill: "currentColor",
2833
- children: /* @__PURE__ */ jsx61(
2682
+ children: /* @__PURE__ */ jsx60(
2834
2683
  "path",
2835
2684
  {
2836
2685
  fillRule: "evenodd",
@@ -2850,24 +2699,24 @@ var Message = ({
2850
2699
  }) => {
2851
2700
  const classNames2 = useClassNames30({ component: "Message", variant, size });
2852
2701
  const Icon3 = icons[variant];
2853
- return /* @__PURE__ */ jsxs26(
2702
+ return /* @__PURE__ */ jsxs25(
2854
2703
  "div",
2855
2704
  {
2856
- className: cn29(
2705
+ className: cn30(
2857
2706
  "grid auto-rows-min grid-cols-[min-content_auto] gap-1",
2858
2707
  classNames2.container
2859
2708
  ),
2860
2709
  ...props,
2861
2710
  children: [
2862
- /* @__PURE__ */ jsx61("div", { className: cn29("col-span-1 h-5 w-5 self-center", classNames2.icon), children: /* @__PURE__ */ jsx61(Icon3, {}) }),
2863
- /* @__PURE__ */ jsx61(
2711
+ /* @__PURE__ */ jsx60("div", { className: cn30("col-span-1 h-5 w-5 self-center", classNames2.icon), children: /* @__PURE__ */ jsx60(Icon3, {}) }),
2712
+ /* @__PURE__ */ jsx60(
2864
2713
  "div",
2865
2714
  {
2866
- className: cn29("col-start-2 row-start-1 self-center", classNames2.title),
2715
+ className: cn30("col-start-2 row-start-1 self-center", classNames2.title),
2867
2716
  children: messageTitle
2868
2717
  }
2869
2718
  ),
2870
- /* @__PURE__ */ jsx61("div", { className: cn29("col-start-2", classNames2.content), children })
2719
+ /* @__PURE__ */ jsx60("div", { className: cn30("col-start-2", classNames2.content), children })
2871
2720
  ]
2872
2721
  }
2873
2722
  );
@@ -2875,22 +2724,22 @@ var Message = ({
2875
2724
 
2876
2725
  // src/NumberField/NumberField.tsx
2877
2726
  import { forwardRef as forwardRef12 } from "react";
2878
- import { useFocusRing as useFocusRing9 } from "@react-aria/focus";
2727
+ import { useFocusRing as useFocusRing7 } from "@react-aria/focus";
2879
2728
  import { useLocale as useLocale4 } from "@react-aria/i18n";
2880
- import { useHover as useHover7 } from "@react-aria/interactions";
2729
+ import { useHover as useHover5 } from "@react-aria/interactions";
2881
2730
  import { useNumberField } from "@react-aria/numberfield";
2882
- import { mergeProps as mergeProps14, useObjectRef as useObjectRef9 } from "@react-aria/utils";
2731
+ import { mergeProps as mergeProps13, useObjectRef as useObjectRef6 } from "@react-aria/utils";
2883
2732
  import { useNumberFieldState } from "@react-stately/numberfield";
2884
- import { cn as cn31, useClassNames as useClassNames31, useStateProps as useStateProps15 } from "@marigold/system";
2733
+ import { cn as cn32, useClassNames as useClassNames31, useStateProps as useStateProps13 } from "@marigold/system";
2885
2734
 
2886
2735
  // src/NumberField/StepButton.tsx
2887
2736
  import { useRef as useRef19 } from "react";
2888
- import { useButton as useButton7 } from "@react-aria/button";
2889
- import { useHover as useHover6 } from "@react-aria/interactions";
2890
- import { mergeProps as mergeProps13 } from "@react-aria/utils";
2891
- import { cn as cn30, useStateProps as useStateProps14 } from "@marigold/system";
2892
- import { jsx as jsx62 } from "react/jsx-runtime";
2893
- var Plus = () => /* @__PURE__ */ jsx62("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx62(
2737
+ import { useButton as useButton5 } from "@react-aria/button";
2738
+ import { useHover as useHover4 } from "@react-aria/interactions";
2739
+ import { mergeProps as mergeProps12 } from "@react-aria/utils";
2740
+ import { cn as cn31, useStateProps as useStateProps12 } from "@marigold/system";
2741
+ import { jsx as jsx61 } from "react/jsx-runtime";
2742
+ var Plus = () => /* @__PURE__ */ jsx61("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx61(
2894
2743
  "path",
2895
2744
  {
2896
2745
  fillRule: "evenodd",
@@ -2898,7 +2747,7 @@ var Plus = () => /* @__PURE__ */ jsx62("svg", { width: 16, height: 16, viewBox:
2898
2747
  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"
2899
2748
  }
2900
2749
  ) });
2901
- var Minus = () => /* @__PURE__ */ jsx62("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx62(
2750
+ var Minus = () => /* @__PURE__ */ jsx61("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx61(
2902
2751
  "path",
2903
2752
  {
2904
2753
  fillRule: "evenodd",
@@ -2912,36 +2761,36 @@ var StepButton = ({
2912
2761
  ...props
2913
2762
  }) => {
2914
2763
  const ref = useRef19(null);
2915
- const { buttonProps, isPressed } = useButton7(
2764
+ const { buttonProps, isPressed } = useButton5(
2916
2765
  { ...props, elementType: "div" },
2917
2766
  ref
2918
2767
  );
2919
- const { hoverProps, isHovered } = useHover6(props);
2920
- const stateProps = useStateProps14({
2768
+ const { hoverProps, isHovered } = useHover4(props);
2769
+ const stateProps = useStateProps12({
2921
2770
  active: isPressed,
2922
2771
  hover: isHovered,
2923
2772
  disabled: props.isDisabled
2924
2773
  });
2925
2774
  const Icon3 = direction === "up" ? Plus : Minus;
2926
- return /* @__PURE__ */ jsx62(
2775
+ return /* @__PURE__ */ jsx61(
2927
2776
  "div",
2928
2777
  {
2929
- className: cn30(
2778
+ className: cn31(
2930
2779
  [
2931
2780
  "flex items-center justify-center",
2932
2781
  "cursor-pointer data-[disabled]:cursor-not-allowed"
2933
2782
  ],
2934
2783
  className
2935
2784
  ),
2936
- ...mergeProps13(buttonProps, hoverProps),
2785
+ ...mergeProps12(buttonProps, hoverProps),
2937
2786
  ...stateProps,
2938
- children: /* @__PURE__ */ jsx62(Icon3, {})
2787
+ children: /* @__PURE__ */ jsx61(Icon3, {})
2939
2788
  }
2940
2789
  );
2941
2790
  };
2942
2791
 
2943
2792
  // src/NumberField/NumberField.tsx
2944
- import { jsx as jsx63, jsxs as jsxs27 } from "react/jsx-runtime";
2793
+ import { jsx as jsx62, jsxs as jsxs26 } from "react/jsx-runtime";
2945
2794
  var NumberField = forwardRef12(
2946
2795
  ({
2947
2796
  variant,
@@ -2963,7 +2812,7 @@ var NumberField = forwardRef12(
2963
2812
  };
2964
2813
  const showStepper = !hideStepper;
2965
2814
  const { locale } = useLocale4();
2966
- const inputRef = useObjectRef9(ref);
2815
+ const inputRef = useObjectRef6(ref);
2967
2816
  const state = useNumberFieldState({ ...props, locale });
2968
2817
  const {
2969
2818
  labelProps,
@@ -2974,13 +2823,13 @@ var NumberField = forwardRef12(
2974
2823
  incrementButtonProps,
2975
2824
  decrementButtonProps
2976
2825
  } = useNumberField(props, state, inputRef);
2977
- const { hoverProps, isHovered } = useHover7({ isDisabled: disabled });
2978
- const { focusProps, isFocused } = useFocusRing9({
2826
+ const { hoverProps, isHovered } = useHover5({ isDisabled: disabled });
2827
+ const { focusProps, isFocused } = useFocusRing7({
2979
2828
  within: true,
2980
2829
  isTextInput: true,
2981
2830
  autoFocus: props.autoFocus
2982
2831
  });
2983
- const stateProps = useStateProps15({
2832
+ const stateProps = useStateProps13({
2984
2833
  hover: isHovered,
2985
2834
  focus: isFocused,
2986
2835
  disabled,
@@ -2993,7 +2842,7 @@ var NumberField = forwardRef12(
2993
2842
  size,
2994
2843
  variant
2995
2844
  });
2996
- return /* @__PURE__ */ jsx63(
2845
+ return /* @__PURE__ */ jsx62(
2997
2846
  FieldBase,
2998
2847
  {
2999
2848
  label: props.label,
@@ -3007,16 +2856,16 @@ var NumberField = forwardRef12(
3007
2856
  variant,
3008
2857
  size,
3009
2858
  width,
3010
- children: /* @__PURE__ */ jsxs27(
2859
+ children: /* @__PURE__ */ jsxs26(
3011
2860
  "div",
3012
2861
  {
3013
2862
  "data-group": true,
3014
- className: cn31("flex items-stretch", classNames2.group),
2863
+ className: cn32("flex items-stretch", classNames2.group),
3015
2864
  "data-testid": "number-field-container",
3016
- ...mergeProps14(groupProps, focusProps, hoverProps),
2865
+ ...mergeProps13(groupProps, focusProps, hoverProps),
3017
2866
  ...stateProps,
3018
2867
  children: [
3019
- showStepper && /* @__PURE__ */ jsx63(
2868
+ showStepper && /* @__PURE__ */ jsx62(
3020
2869
  StepButton,
3021
2870
  {
3022
2871
  className: classNames2.stepper,
@@ -3024,20 +2873,17 @@ var NumberField = forwardRef12(
3024
2873
  ...decrementButtonProps
3025
2874
  }
3026
2875
  ),
3027
- /* @__PURE__ */ jsx63("div", { className: "flex-1", children: /* @__PURE__ */ jsx63(
2876
+ /* @__PURE__ */ jsx62("div", { className: "flex-1", children: /* @__PURE__ */ jsx62(
3028
2877
  Input,
3029
2878
  {
3030
2879
  ref: inputRef,
3031
2880
  variant,
3032
2881
  size,
3033
- className: {
3034
- input: "min-w-0 items-stretch border-none"
3035
- },
3036
2882
  ...inputProps,
3037
2883
  ...stateProps
3038
2884
  }
3039
2885
  ) }),
3040
- showStepper && /* @__PURE__ */ jsx63(
2886
+ showStepper && /* @__PURE__ */ jsx62(
3041
2887
  StepButton,
3042
2888
  {
3043
2889
  className: classNames2.stepper,
@@ -3063,28 +2909,28 @@ import {
3063
2909
  defaultTheme,
3064
2910
  useTheme as useTheme3
3065
2911
  } from "@marigold/system";
3066
- import { jsx as jsx64 } from "react/jsx-runtime";
2912
+ import { jsx as jsx63 } from "react/jsx-runtime";
3067
2913
  function MarigoldProvider({
3068
2914
  children,
3069
2915
  theme
3070
2916
  }) {
3071
2917
  const outerTheme = useTheme3();
3072
2918
  const isTopLevel = outerTheme === defaultTheme;
3073
- return /* @__PURE__ */ jsx64(ThemeProvider, { theme, children: isTopLevel ? /* @__PURE__ */ jsx64(OverlayProvider, { children }) : children });
2919
+ return /* @__PURE__ */ jsx63(ThemeProvider, { theme, children: isTopLevel ? /* @__PURE__ */ jsx63(OverlayProvider, { children }) : children });
3074
2920
  }
3075
2921
 
3076
2922
  // src/Radio/Radio.tsx
3077
2923
  import {
3078
2924
  forwardRef as forwardRef13
3079
2925
  } from "react";
3080
- import { useFocusRing as useFocusRing10 } from "@react-aria/focus";
3081
- import { useHover as useHover8 } from "@react-aria/interactions";
2926
+ import { useFocusRing as useFocusRing8 } from "@react-aria/focus";
2927
+ import { useHover as useHover6 } from "@react-aria/interactions";
3082
2928
  import { useRadio } from "@react-aria/radio";
3083
- import { mergeProps as mergeProps15, useObjectRef as useObjectRef10 } from "@react-aria/utils";
2929
+ import { mergeProps as mergeProps14, useObjectRef as useObjectRef7 } from "@react-aria/utils";
3084
2930
  import {
3085
- cn as cn33,
3086
- useClassNames as useClassNames32,
3087
- useStateProps as useStateProps17
2931
+ cn as cn34,
2932
+ useClassNames as useClassNames33,
2933
+ useStateProps as useStateProps15
3088
2934
  } from "@marigold/system";
3089
2935
 
3090
2936
  // src/Radio/Context.ts
@@ -3097,9 +2943,11 @@ var useRadioGroupContext = () => useContext7(RadioGroupContext);
3097
2943
  // src/Radio/RadioGroup.tsx
3098
2944
  import { useRadioGroup } from "@react-aria/radio";
3099
2945
  import { useRadioGroupState } from "@react-stately/radio";
3100
- import { cn as cn32, useStateProps as useStateProps16 } from "@marigold/system";
3101
- import { jsx as jsx65 } from "react/jsx-runtime";
2946
+ import { cn as cn33, useClassNames as useClassNames32, useStateProps as useStateProps14 } from "@marigold/system";
2947
+ import { jsx as jsx64 } from "react/jsx-runtime";
3102
2948
  var RadioGroup = ({
2949
+ variant,
2950
+ size,
3103
2951
  children,
3104
2952
  orientation = "vertical",
3105
2953
  width,
@@ -3118,18 +2966,19 @@ var RadioGroup = ({
3118
2966
  };
3119
2967
  const state = useRadioGroupState(props);
3120
2968
  const { radioGroupProps, labelProps, errorMessageProps, descriptionProps } = useRadioGroup(props, state);
3121
- const stateProps = useStateProps16({
2969
+ const classNames2 = useClassNames32({ component: "Radio", variant, size });
2970
+ const stateProps = useStateProps14({
3122
2971
  disabled,
3123
2972
  readOnly,
3124
2973
  error,
3125
2974
  required
3126
2975
  });
3127
- return /* @__PURE__ */ jsx65(
2976
+ return /* @__PURE__ */ jsx64(
3128
2977
  FieldBase,
3129
2978
  {
3130
2979
  width,
3131
2980
  label: props.label,
3132
- labelProps: { as: "span", ...labelProps },
2981
+ labelProps: { elementType: "span", ...labelProps },
3133
2982
  description: props.description,
3134
2983
  descriptionProps,
3135
2984
  error,
@@ -3138,16 +2987,17 @@ var RadioGroup = ({
3138
2987
  disabled,
3139
2988
  stateProps,
3140
2989
  ...radioGroupProps,
3141
- children: /* @__PURE__ */ jsx65(
2990
+ children: /* @__PURE__ */ jsx64(
3142
2991
  "div",
3143
2992
  {
3144
2993
  role: "presentation",
3145
2994
  "data-orientation": orientation,
3146
- className: cn32(
2995
+ className: cn33(
2996
+ classNames2.group,
3147
2997
  "flex items-start",
3148
2998
  orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
3149
2999
  ),
3150
- children: /* @__PURE__ */ jsx65(RadioGroupContext.Provider, { value: { width, error, state }, children })
3000
+ children: /* @__PURE__ */ jsx64(RadioGroupContext.Provider, { value: { width, error, state }, children })
3151
3001
  }
3152
3002
  )
3153
3003
  }
@@ -3155,18 +3005,18 @@ var RadioGroup = ({
3155
3005
  };
3156
3006
 
3157
3007
  // src/Radio/Radio.tsx
3158
- import { jsx as jsx66, jsxs as jsxs28 } from "react/jsx-runtime";
3159
- var Dot = () => /* @__PURE__ */ jsx66("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ jsx66("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
3160
- var Icon2 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx66(
3008
+ import { jsx as jsx65, jsxs as jsxs27 } from "react/jsx-runtime";
3009
+ var Dot = () => /* @__PURE__ */ jsx65("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ jsx65("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
3010
+ var Icon2 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx65(
3161
3011
  "div",
3162
3012
  {
3163
- className: cn33(
3013
+ className: cn34(
3164
3014
  "bg-secondary-50 flex h-4 w-4 items-center justify-center rounded-[50%] border p-1",
3165
3015
  className
3166
3016
  ),
3167
3017
  "aria-hidden": "true",
3168
3018
  ...props,
3169
- children: checked ? /* @__PURE__ */ jsx66(Dot, {}) : null
3019
+ children: checked ? /* @__PURE__ */ jsx65(Dot, {}) : null
3170
3020
  }
3171
3021
  );
3172
3022
  var Radio = forwardRef13(
@@ -3178,20 +3028,20 @@ var Radio = forwardRef13(
3178
3028
  width: groupWidth,
3179
3029
  state
3180
3030
  } = useRadioGroupContext();
3181
- const inputRef = useObjectRef10(ref);
3031
+ const inputRef = useObjectRef7(ref);
3182
3032
  const { inputProps } = useRadio(
3183
3033
  { isDisabled: disabled, ...props },
3184
3034
  state,
3185
3035
  inputRef
3186
3036
  );
3187
- const classNames2 = useClassNames32({
3037
+ const classNames2 = useClassNames33({
3188
3038
  component: "Radio",
3189
3039
  variant: variant || props.variant,
3190
3040
  size: size || props.size
3191
3041
  });
3192
- const { hoverProps, isHovered } = useHover8({ isDisabled: disabled });
3193
- const { isFocusVisible, focusProps } = useFocusRing10();
3194
- const stateProps = useStateProps17({
3042
+ const { hoverProps, isHovered } = useHover6({ isDisabled: disabled });
3043
+ const { isFocusVisible, focusProps } = useFocusRing8();
3044
+ const stateProps = useStateProps15({
3195
3045
  hover: isHovered,
3196
3046
  focus: isFocusVisible,
3197
3047
  checked: inputProps.checked,
@@ -3199,30 +3049,30 @@ var Radio = forwardRef13(
3199
3049
  readOnly: props.readOnly,
3200
3050
  error
3201
3051
  });
3202
- return /* @__PURE__ */ jsxs28(
3052
+ return /* @__PURE__ */ jsxs27(
3203
3053
  "label",
3204
3054
  {
3205
- className: cn33(
3055
+ className: cn34(
3206
3056
  "group/radio",
3207
3057
  "relative flex items-center gap-[1ch]",
3208
3058
  width || groupWidth || "w-full",
3209
3059
  classNames2.container
3210
3060
  ),
3211
- ...mergeProps15(hoverProps, stateProps),
3061
+ ...mergeProps14(hoverProps, stateProps),
3212
3062
  children: [
3213
- /* @__PURE__ */ jsx66(
3063
+ /* @__PURE__ */ jsx65(
3214
3064
  "input",
3215
3065
  {
3216
3066
  ref: inputRef,
3217
- className: cn33(
3067
+ className: cn34(
3218
3068
  "absolute left-0 top-0 z-[1] h-full w-full opacity-[0.0001]",
3219
3069
  inputProps.disabled ? "cursor-not-allowed" : "cursor-pointer"
3220
3070
  ),
3221
- ...mergeProps15(inputProps, focusProps)
3071
+ ...mergeProps14(inputProps, focusProps)
3222
3072
  }
3223
3073
  ),
3224
- /* @__PURE__ */ jsx66(Icon2, { checked: inputProps.checked, className: classNames2.radio }),
3225
- /* @__PURE__ */ jsx66("div", { className: classNames2.label, children: props.children })
3074
+ /* @__PURE__ */ jsx65(Icon2, { checked: inputProps.checked, className: classNames2.radio }),
3075
+ /* @__PURE__ */ jsx65("div", { className: classNames2.label, children: props.children })
3226
3076
  ]
3227
3077
  }
3228
3078
  );
@@ -3232,131 +3082,62 @@ Radio.Group = RadioGroup;
3232
3082
 
3233
3083
  // src/Slider/Slider.tsx
3234
3084
  import { forwardRef as forwardRef14 } from "react";
3235
- import { useNumberFormatter } from "@react-aria/i18n";
3236
- import { useSlider } from "@react-aria/slider";
3237
- import { useObjectRef as useObjectRef11 } from "@react-aria/utils";
3238
- import { useSliderState } from "@react-stately/slider";
3085
+ import {
3086
+ Slider,
3087
+ SliderOutput,
3088
+ SliderThumb,
3089
+ SliderTrack
3090
+ } from "react-aria-components";
3239
3091
  import {
3240
3092
  cn as cn35,
3241
3093
  width as twWidth2,
3242
- useClassNames as useClassNames33,
3243
- useStateProps as useStateProps19
3094
+ useClassNames as useClassNames34
3244
3095
  } from "@marigold/system";
3245
-
3246
- // src/Slider/Thumb.tsx
3247
- import { useEffect as useEffect2, useRef as useRef20 } from "react";
3248
- import { useFocusRing as useFocusRing11 } from "@react-aria/focus";
3249
- import { useSliderThumb } from "@react-aria/slider";
3250
- import { mergeProps as mergeProps16 } from "@react-aria/utils";
3251
- import { cn as cn34, useStateProps as useStateProps18 } from "@marigold/system";
3252
-
3253
- // src/VisuallyHidden/VisuallyHidden.tsx
3254
- import { VisuallyHidden } from "@react-aria/visually-hidden";
3255
-
3256
- // src/Slider/Thumb.tsx
3257
- import { jsx as jsx67 } from "react/jsx-runtime";
3258
- var Thumb = ({ state, trackRef, className, ...props }) => {
3259
- const { disabled } = props;
3260
- const inputRef = useRef20(null);
3261
- const { isFocusVisible, focusProps, isFocused } = useFocusRing11();
3262
- const focused = isFocused || isFocusVisible || state.isThumbDragging(0);
3263
- const stateProps = useStateProps18({
3264
- focus: focused,
3265
- disabled
3266
- });
3267
- const { thumbProps, inputProps } = useSliderThumb(
3268
- {
3269
- index: 0,
3270
- trackRef,
3271
- inputRef,
3272
- isDisabled: disabled
3273
- },
3274
- state
3275
- );
3276
- useEffect2(() => {
3277
- state.setThumbEditable(0, !disabled);
3278
- }, [disabled, state]);
3279
- return /* @__PURE__ */ jsx67("div", { className: cn34("top-1/2", className), ...thumbProps, ...stateProps, children: /* @__PURE__ */ jsx67(VisuallyHidden, { children: /* @__PURE__ */ jsx67(
3280
- "input",
3281
- {
3282
- type: "range",
3283
- ref: inputRef,
3284
- ...mergeProps16(inputProps, focusProps)
3285
- }
3286
- ) }) });
3287
- };
3288
-
3289
- // src/Slider/Slider.tsx
3290
- import { jsx as jsx68, jsxs as jsxs29 } from "react/jsx-runtime";
3291
- var Slider = forwardRef14(
3292
- ({ variant, size, width = "full", ...props }, ref) => {
3293
- const { formatOptions } = props;
3294
- const trackRef = useObjectRef11(ref);
3295
- const numberFormatter = useNumberFormatter(formatOptions);
3296
- const state = useSliderState({ ...props, numberFormatter });
3297
- const { groupProps, trackProps, labelProps, outputProps } = useSlider(
3298
- {
3299
- label: props.children,
3300
- ...props
3301
- },
3302
- state,
3303
- trackRef
3304
- );
3305
- const classNames2 = useClassNames33({
3096
+ import { jsx as jsx66, jsxs as jsxs28 } from "react/jsx-runtime";
3097
+ var _Slider = forwardRef14(
3098
+ ({
3099
+ thumbLabels,
3100
+ variant,
3101
+ size,
3102
+ width = "full",
3103
+ disabled,
3104
+ ...rest
3105
+ }, ref) => {
3106
+ const classNames2 = useClassNames34({
3306
3107
  component: "Slider",
3307
3108
  variant,
3308
3109
  size
3309
3110
  });
3310
- const sliderState = useStateProps19({
3311
- disabled: props.disabled
3312
- });
3313
- return /* @__PURE__ */ jsxs29(
3314
- "div",
3111
+ const props = {
3112
+ isDisabled: disabled,
3113
+ ...rest
3114
+ };
3115
+ return /* @__PURE__ */ jsxs28(
3116
+ Slider,
3315
3117
  {
3316
- className: cn35("flex touch-none flex-col", twWidth2[width]),
3317
- ...groupProps,
3118
+ className: cn35(
3119
+ "grid grid-cols-[auto_1fr] gap-y-1",
3120
+ classNames2.container,
3121
+ twWidth2[width]
3122
+ ),
3123
+ ref,
3124
+ ...props,
3318
3125
  children: [
3319
- /* @__PURE__ */ jsxs29("div", { className: "flex self-stretch", children: [
3320
- props.children && /* @__PURE__ */ jsx68("label", { className: classNames2.label, ...labelProps, children: props.children }),
3321
- /* @__PURE__ */ jsx68(
3322
- "output",
3323
- {
3324
- className: cn35(
3325
- "flex flex-shrink-0 flex-grow basis-auto",
3326
- classNames2.output
3327
- ),
3328
- ...outputProps,
3329
- children: state.getThumbValueLabel(0)
3330
- }
3331
- )
3332
- ] }),
3333
- /* @__PURE__ */ jsxs29(
3334
- "div",
3126
+ /* @__PURE__ */ jsx66(_Label, { children: props.children }),
3127
+ /* @__PURE__ */ jsx66(SliderOutput, { className: cn35("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
3128
+ /* @__PURE__ */ jsx66(
3129
+ SliderTrack,
3335
3130
  {
3336
- className: "h-8 w-full cursor-pointer data-[disabled]:cursor-not-allowed",
3337
- ...trackProps,
3338
- ...sliderState,
3339
- ref: trackRef,
3340
- children: [
3341
- /* @__PURE__ */ jsx68(
3342
- "div",
3343
- {
3344
- className: cn35(
3345
- "absolute top-2/4 h-2 w-full -translate-y-1/2",
3346
- classNames2.track
3347
- )
3348
- }
3349
- ),
3350
- /* @__PURE__ */ jsx68(
3351
- Thumb,
3352
- {
3353
- state,
3354
- trackRef,
3355
- disabled: props.disabled,
3356
- className: classNames2.thumb
3357
- }
3358
- )
3359
- ]
3131
+ className: cn35("relative col-span-2 h-2 w-full", classNames2.track),
3132
+ children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ jsx66(
3133
+ SliderThumb,
3134
+ {
3135
+ className: cn35("top-1/2 cursor-pointer", classNames2.thumb),
3136
+ index: i,
3137
+ "aria-label": thumbLabels == null ? void 0 : thumbLabels[i]
3138
+ },
3139
+ i
3140
+ ))
3360
3141
  }
3361
3142
  )
3362
3143
  ]
@@ -3366,8 +3147,8 @@ var Slider = forwardRef14(
3366
3147
  );
3367
3148
 
3368
3149
  // src/Split/Split.tsx
3369
- import { jsx as jsx69 } from "react/jsx-runtime";
3370
- var Split = (props) => /* @__PURE__ */ jsx69("div", { ...props, role: "separator", className: "grow" });
3150
+ import { jsx as jsx67 } from "react/jsx-runtime";
3151
+ var Split = (props) => /* @__PURE__ */ jsx67("div", { ...props, role: "separator", className: "grow" });
3371
3152
 
3372
3153
  // src/Stack/Stack.tsx
3373
3154
  import {
@@ -3375,7 +3156,7 @@ import {
3375
3156
  cn as cn36,
3376
3157
  gapSpace as gapSpace6
3377
3158
  } from "@marigold/system";
3378
- import { jsx as jsx70 } from "react/jsx-runtime";
3159
+ import { jsx as jsx68 } from "react/jsx-runtime";
3379
3160
  var Stack = ({
3380
3161
  children,
3381
3162
  space = 0,
@@ -3386,7 +3167,7 @@ var Stack = ({
3386
3167
  ...props
3387
3168
  }) => {
3388
3169
  var _a, _b, _c, _d;
3389
- return /* @__PURE__ */ jsx70(
3170
+ return /* @__PURE__ */ jsx68(
3390
3171
  "div",
3391
3172
  {
3392
3173
  className: cn36(
@@ -3404,74 +3185,48 @@ var Stack = ({
3404
3185
 
3405
3186
  // src/Switch/Switch.tsx
3406
3187
  import { forwardRef as forwardRef15 } from "react";
3407
- import { useFocusRing as useFocusRing12 } from "@react-aria/focus";
3408
- import { useSwitch } from "@react-aria/switch";
3409
- import { useObjectRef as useObjectRef12 } from "@react-aria/utils";
3410
- import { useToggleState as useToggleState2 } from "@react-stately/toggle";
3188
+ import { Switch } from "react-aria-components";
3411
3189
  import {
3412
3190
  cn as cn37,
3413
3191
  width as twWidth3,
3414
- useClassNames as useClassNames34,
3415
- useStateProps as useStateProps20
3192
+ useClassNames as useClassNames35
3416
3193
  } from "@marigold/system";
3417
- import { Fragment as Fragment6, jsx as jsx71, jsxs as jsxs30 } from "react/jsx-runtime";
3418
- var Switch = forwardRef15(
3194
+ import { jsx as jsx69, jsxs as jsxs29 } from "react/jsx-runtime";
3195
+ var _Switch = forwardRef15(
3419
3196
  ({
3420
3197
  variant,
3421
3198
  size,
3422
3199
  width = "full",
3200
+ children,
3423
3201
  selected,
3424
3202
  disabled,
3425
3203
  readOnly,
3426
- defaultChecked,
3427
- ...rest
3204
+ ...props
3428
3205
  }, ref) => {
3429
- const inputRef = useObjectRef12(ref);
3430
- const props = {
3431
- isSelected: selected,
3432
- isDisabled: disabled,
3433
- isReadOnly: readOnly,
3434
- defaultSelected: defaultChecked,
3435
- ...rest
3436
- };
3437
- const state = useToggleState2(props);
3438
- const { inputProps } = useSwitch(props, state, inputRef);
3439
- const { isFocusVisible, focusProps } = useFocusRing12();
3440
- const stateProps = useStateProps20({
3441
- selected: state.isSelected,
3442
- disabled,
3443
- readOnly,
3444
- focus: isFocusVisible
3445
- });
3446
- const classNames2 = useClassNames34({ component: "Switch", size, variant });
3447
- return /* @__PURE__ */ jsxs30(
3448
- "label",
3206
+ const classNames2 = useClassNames35({ component: "Switch", size, variant });
3207
+ return /* @__PURE__ */ jsxs29(
3208
+ Switch,
3449
3209
  {
3210
+ ...props,
3211
+ ref,
3450
3212
  className: cn37(
3451
- "group/switch",
3452
3213
  twWidth3[width],
3453
- "relative flex items-center justify-between gap-[1ch]"
3214
+ "group/switch",
3215
+ "flex items-center justify-between gap-[1ch]",
3216
+ classNames2.container
3454
3217
  ),
3455
- ...stateProps,
3218
+ isDisabled: disabled,
3219
+ isReadOnly: readOnly,
3456
3220
  children: [
3457
- /* @__PURE__ */ jsx71(
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__ */ jsx71(Fragment6, { children: props.children }),
3467
- /* @__PURE__ */ jsx71(
3221
+ children,
3222
+ /* @__PURE__ */ jsx69("div", { className: " relative", children: /* @__PURE__ */ jsx69(
3468
3223
  "div",
3469
3224
  {
3470
3225
  className: cn37(
3471
- "relative h-6 flex-shrink-0 flex-grow-0 basis-12 rounded-3xl",
3226
+ "h-6 w-12 basis-12 rounded-3xl group-disabled/switch:cursor-not-allowed ",
3472
3227
  classNames2.track
3473
3228
  ),
3474
- children: /* @__PURE__ */ jsx71(
3229
+ children: /* @__PURE__ */ jsx69(
3475
3230
  "div",
3476
3231
  {
3477
3232
  className: cn37(
@@ -3485,7 +3240,7 @@ var Switch = forwardRef15(
3485
3240
  }
3486
3241
  )
3487
3242
  }
3488
- )
3243
+ ) })
3489
3244
  ]
3490
3245
  }
3491
3246
  );
@@ -3493,7 +3248,7 @@ var Switch = forwardRef15(
3493
3248
  );
3494
3249
 
3495
3250
  // src/Table/Table.tsx
3496
- import { useRef as useRef27 } from "react";
3251
+ import { useRef as useRef26 } from "react";
3497
3252
  import { useTable } from "@react-aria/table";
3498
3253
  import {
3499
3254
  TableBody as Body2,
@@ -3503,7 +3258,7 @@ import {
3503
3258
  Row,
3504
3259
  useTableState
3505
3260
  } from "@react-stately/table";
3506
- import { cn as cn42, useClassNames as useClassNames36 } from "@marigold/system";
3261
+ import { cn as cn42, useClassNames as useClassNames37 } from "@marigold/system";
3507
3262
 
3508
3263
  // src/Table/Context.tsx
3509
3264
  import { createContext as createContext8, useContext as useContext8 } from "react";
@@ -3512,21 +3267,21 @@ var useTableContext = () => useContext8(TableContext);
3512
3267
 
3513
3268
  // src/Table/TableBody.tsx
3514
3269
  import { useTableRowGroup } from "@react-aria/table";
3515
- import { jsx as jsx72 } from "react/jsx-runtime";
3270
+ import { jsx as jsx70 } from "react/jsx-runtime";
3516
3271
  var TableBody = ({ children }) => {
3517
3272
  const { rowGroupProps } = useTableRowGroup();
3518
- return /* @__PURE__ */ jsx72("tbody", { ...rowGroupProps, children });
3273
+ return /* @__PURE__ */ jsx70("tbody", { ...rowGroupProps, children });
3519
3274
  };
3520
3275
 
3521
3276
  // src/Table/TableCell.tsx
3522
- import { useRef as useRef21 } from "react";
3523
- import { useFocusRing as useFocusRing13 } from "@react-aria/focus";
3277
+ import { useRef as useRef20 } from "react";
3278
+ import { useFocusRing as useFocusRing9 } from "@react-aria/focus";
3524
3279
  import { useTableCell } from "@react-aria/table";
3525
- import { mergeProps as mergeProps17 } from "@react-aria/utils";
3526
- import { useStateProps as useStateProps21 } from "@marigold/system";
3527
- import { jsx as jsx73 } from "react/jsx-runtime";
3280
+ import { mergeProps as mergeProps15 } from "@react-aria/utils";
3281
+ import { useStateProps as useStateProps16 } from "@marigold/system";
3282
+ import { jsx as jsx71 } from "react/jsx-runtime";
3528
3283
  var TableCell = ({ cell }) => {
3529
- const ref = useRef21(null);
3284
+ const ref = useRef20(null);
3530
3285
  const { interactive, state, classNames: classNames2 } = useTableContext();
3531
3286
  const disabled = state.disabledKeys.has(cell.parentKey);
3532
3287
  const { gridCellProps } = useTableCell(
@@ -3545,14 +3300,14 @@ var TableCell = ({ cell }) => {
3545
3300
  onMouseDown: (e) => e.stopPropagation(),
3546
3301
  onPointerDown: (e) => e.stopPropagation()
3547
3302
  };
3548
- const { focusProps, isFocusVisible } = useFocusRing13();
3549
- const stateProps = useStateProps21({ disabled, focusVisible: isFocusVisible });
3550
- return /* @__PURE__ */ jsx73(
3303
+ const { focusProps, isFocusVisible } = useFocusRing9();
3304
+ const stateProps = useStateProps16({ disabled, focusVisible: isFocusVisible });
3305
+ return /* @__PURE__ */ jsx71(
3551
3306
  "td",
3552
3307
  {
3553
3308
  ref,
3554
3309
  className: classNames2 == null ? void 0 : classNames2.cell,
3555
- ...mergeProps17(cellProps, focusProps),
3310
+ ...mergeProps15(cellProps, focusProps),
3556
3311
  ...stateProps,
3557
3312
  children: cell.rendered
3558
3313
  }
@@ -3560,11 +3315,11 @@ var TableCell = ({ cell }) => {
3560
3315
  };
3561
3316
 
3562
3317
  // src/Table/TableCheckboxCell.tsx
3563
- import { useRef as useRef22 } from "react";
3564
- import { useFocusRing as useFocusRing14 } from "@react-aria/focus";
3318
+ import { useRef as useRef21 } from "react";
3319
+ import { useFocusRing as useFocusRing10 } from "@react-aria/focus";
3565
3320
  import { useTableCell as useTableCell2, useTableSelectionCheckbox } from "@react-aria/table";
3566
- import { mergeProps as mergeProps18 } from "@react-aria/utils";
3567
- import { cn as cn38, useStateProps as useStateProps22 } from "@marigold/system";
3321
+ import { mergeProps as mergeProps16 } from "@react-aria/utils";
3322
+ import { cn as cn38, useStateProps as useStateProps17 } from "@marigold/system";
3568
3323
 
3569
3324
  // src/Table/utils.ts
3570
3325
  var mapCheckboxProps = ({
@@ -3587,9 +3342,9 @@ var mapCheckboxProps = ({
3587
3342
  };
3588
3343
 
3589
3344
  // src/Table/TableCheckboxCell.tsx
3590
- import { jsx as jsx74 } from "react/jsx-runtime";
3345
+ import { jsx as jsx72 } from "react/jsx-runtime";
3591
3346
  var TableCheckboxCell = ({ cell }) => {
3592
- const ref = useRef22(null);
3347
+ const ref = useRef21(null);
3593
3348
  const { state, classNames: classNames2 } = useTableContext();
3594
3349
  const disabled = state.disabledKeys.has(cell.parentKey);
3595
3350
  const { gridCellProps } = useTableCell2(
@@ -3602,36 +3357,36 @@ var TableCheckboxCell = ({ cell }) => {
3602
3357
  const { checkboxProps } = mapCheckboxProps(
3603
3358
  useTableSelectionCheckbox({ key: cell.parentKey }, state)
3604
3359
  );
3605
- const { focusProps, isFocusVisible } = useFocusRing14();
3606
- const stateProps = useStateProps22({ disabled, focusVisible: isFocusVisible });
3607
- return /* @__PURE__ */ jsx74(
3360
+ const { focusProps, isFocusVisible } = useFocusRing10();
3361
+ const stateProps = useStateProps17({ disabled, focusVisible: isFocusVisible });
3362
+ return /* @__PURE__ */ jsx72(
3608
3363
  "td",
3609
3364
  {
3610
3365
  ref,
3611
3366
  className: cn38("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
3612
- ...mergeProps18(gridCellProps, focusProps),
3367
+ ...mergeProps16(gridCellProps, focusProps),
3613
3368
  ...stateProps,
3614
- children: /* @__PURE__ */ jsx74(Checkbox, { ...checkboxProps })
3369
+ children: /* @__PURE__ */ jsx72(_Checkbox, { ...checkboxProps })
3615
3370
  }
3616
3371
  );
3617
3372
  };
3618
3373
 
3619
3374
  // src/Table/TableColumnHeader.tsx
3620
- import { useRef as useRef23 } from "react";
3621
- import { useFocusRing as useFocusRing15 } from "@react-aria/focus";
3622
- import { useHover as useHover9 } from "@react-aria/interactions";
3375
+ import { useRef as useRef22 } from "react";
3376
+ import { useFocusRing as useFocusRing11 } from "@react-aria/focus";
3377
+ import { useHover as useHover7 } from "@react-aria/interactions";
3623
3378
  import { useTableColumnHeader } from "@react-aria/table";
3624
- import { mergeProps as mergeProps19 } from "@react-aria/utils";
3379
+ import { mergeProps as mergeProps17 } from "@react-aria/utils";
3625
3380
  import { SortDown, SortUp } from "@marigold/icons";
3626
- import { cn as cn39, useStateProps as useStateProps23 } from "@marigold/system";
3381
+ import { cn as cn39, useStateProps as useStateProps18 } from "@marigold/system";
3627
3382
  import { width as twWidth4 } from "@marigold/system";
3628
- import { jsx as jsx75, jsxs as jsxs31 } from "react/jsx-runtime";
3383
+ import { jsx as jsx73, jsxs as jsxs30 } from "react/jsx-runtime";
3629
3384
  var TableColumnHeader = ({
3630
3385
  column,
3631
3386
  width = "auto"
3632
3387
  }) => {
3633
3388
  var _a, _b;
3634
- const ref = useRef23(null);
3389
+ const ref = useRef22(null);
3635
3390
  const { state, classNames: classNames2 } = useTableContext();
3636
3391
  const { columnHeaderProps } = useTableColumnHeader(
3637
3392
  {
@@ -3640,23 +3395,23 @@ var TableColumnHeader = ({
3640
3395
  state,
3641
3396
  ref
3642
3397
  );
3643
- const { hoverProps, isHovered } = useHover9({});
3644
- const { focusProps, isFocusVisible } = useFocusRing15();
3645
- const stateProps = useStateProps23({
3398
+ const { hoverProps, isHovered } = useHover7({});
3399
+ const { focusProps, isFocusVisible } = useFocusRing11();
3400
+ const stateProps = useStateProps18({
3646
3401
  hover: isHovered,
3647
3402
  focusVisible: isFocusVisible
3648
3403
  });
3649
- return /* @__PURE__ */ jsxs31(
3404
+ return /* @__PURE__ */ jsxs30(
3650
3405
  "th",
3651
3406
  {
3652
3407
  colSpan: column.colspan,
3653
3408
  ref,
3654
3409
  className: cn39("cursor-default", twWidth4[width], classNames2 == null ? void 0 : classNames2.header),
3655
- ...mergeProps19(columnHeaderProps, hoverProps, focusProps),
3410
+ ...mergeProps17(columnHeaderProps, hoverProps, focusProps),
3656
3411
  ...stateProps,
3657
3412
  children: [
3658
3413
  column.rendered,
3659
- column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ jsx75(SortUp, { className: "inline-block" }) : /* @__PURE__ */ jsx75(SortDown, { className: "inline-block" }) : /* @__PURE__ */ jsx75(SortDown, { className: "inline-block" }))
3414
+ column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ jsx73(SortUp, { className: "inline-block" }) : /* @__PURE__ */ jsx73(SortDown, { className: "inline-block" }) : /* @__PURE__ */ jsx73(SortDown, { className: "inline-block" }))
3660
3415
  ]
3661
3416
  }
3662
3417
  );
@@ -3664,36 +3419,36 @@ var TableColumnHeader = ({
3664
3419
 
3665
3420
  // src/Table/TableHeader.tsx
3666
3421
  import { useTableRowGroup as useTableRowGroup2 } from "@react-aria/table";
3667
- import { jsx as jsx76 } from "react/jsx-runtime";
3422
+ import { jsx as jsx74 } from "react/jsx-runtime";
3668
3423
  var TableHeader = ({ children }) => {
3669
3424
  const { rowGroupProps } = useTableRowGroup2();
3670
- return /* @__PURE__ */ jsx76("thead", { ...rowGroupProps, children });
3425
+ return /* @__PURE__ */ jsx74("thead", { ...rowGroupProps, children });
3671
3426
  };
3672
3427
 
3673
3428
  // src/Table/TableHeaderRow.tsx
3674
- import { useRef as useRef24 } from "react";
3429
+ import { useRef as useRef23 } from "react";
3675
3430
  import { useTableHeaderRow } from "@react-aria/table";
3676
- import { jsx as jsx77 } from "react/jsx-runtime";
3431
+ import { jsx as jsx75 } from "react/jsx-runtime";
3677
3432
  var TableHeaderRow = ({ item, children }) => {
3678
3433
  const { state } = useTableContext();
3679
- const ref = useRef24(null);
3434
+ const ref = useRef23(null);
3680
3435
  const { rowProps } = useTableHeaderRow({ node: item }, state, ref);
3681
- return /* @__PURE__ */ jsx77("tr", { ...rowProps, ref, children });
3436
+ return /* @__PURE__ */ jsx75("tr", { ...rowProps, ref, children });
3682
3437
  };
3683
3438
 
3684
3439
  // src/Table/TableRow.tsx
3685
- import { useRef as useRef25 } from "react";
3686
- import { useFocusRing as useFocusRing16 } from "@react-aria/focus";
3687
- import { useHover as useHover10 } from "@react-aria/interactions";
3440
+ import { useRef as useRef24 } from "react";
3441
+ import { useFocusRing as useFocusRing12 } from "@react-aria/focus";
3442
+ import { useHover as useHover8 } from "@react-aria/interactions";
3688
3443
  import { useTableRow } from "@react-aria/table";
3689
- import { mergeProps as mergeProps20 } from "@react-aria/utils";
3690
- import { cn as cn40, useClassNames as useClassNames35, useStateProps as useStateProps24 } from "@marigold/system";
3691
- import { jsx as jsx78 } from "react/jsx-runtime";
3444
+ import { mergeProps as mergeProps18 } from "@react-aria/utils";
3445
+ import { cn as cn40, useClassNames as useClassNames36, useStateProps as useStateProps19 } from "@marigold/system";
3446
+ import { jsx as jsx76 } from "react/jsx-runtime";
3692
3447
  var TableRow = ({ children, row }) => {
3693
- const ref = useRef25(null);
3448
+ const ref = useRef24(null);
3694
3449
  const { interactive, state, ...ctx } = useTableContext();
3695
3450
  const { variant, size } = row.props;
3696
- const classNames2 = useClassNames35({
3451
+ const classNames2 = useClassNames36({
3697
3452
  component: "Table",
3698
3453
  variant: variant || ctx.variant,
3699
3454
  size: size || ctx.size
@@ -3707,18 +3462,18 @@ var TableRow = ({ children, row }) => {
3707
3462
  );
3708
3463
  const disabled = state.disabledKeys.has(row.key);
3709
3464
  const selected = state.selectionManager.isSelected(row.key);
3710
- const { focusProps, isFocusVisible } = useFocusRing16({ within: true });
3711
- const { hoverProps, isHovered } = useHover10({
3465
+ const { focusProps, isFocusVisible } = useFocusRing12({ within: true });
3466
+ const { hoverProps, isHovered } = useHover8({
3712
3467
  isDisabled: disabled || !interactive
3713
3468
  });
3714
- const stateProps = useStateProps24({
3469
+ const stateProps = useStateProps19({
3715
3470
  disabled,
3716
3471
  selected,
3717
3472
  hover: isHovered,
3718
3473
  focusVisible: isFocusVisible,
3719
3474
  active: isPressed
3720
3475
  });
3721
- return /* @__PURE__ */ jsx78(
3476
+ return /* @__PURE__ */ jsx76(
3722
3477
  "tr",
3723
3478
  {
3724
3479
  ref,
@@ -3728,7 +3483,7 @@ var TableRow = ({ children, row }) => {
3728
3483
  ],
3729
3484
  classNames2 == null ? void 0 : classNames2.row
3730
3485
  ),
3731
- ...mergeProps20(rowProps, focusProps, hoverProps),
3486
+ ...mergeProps18(rowProps, focusProps, hoverProps),
3732
3487
  ...stateProps,
3733
3488
  children
3734
3489
  }
@@ -3736,25 +3491,25 @@ var TableRow = ({ children, row }) => {
3736
3491
  };
3737
3492
 
3738
3493
  // src/Table/TableSelectAllCell.tsx
3739
- import { useRef as useRef26 } from "react";
3740
- import { useFocusRing as useFocusRing17 } from "@react-aria/focus";
3741
- import { useHover as useHover11 } from "@react-aria/interactions";
3494
+ import { useRef as useRef25 } from "react";
3495
+ import { useFocusRing as useFocusRing13 } from "@react-aria/focus";
3496
+ import { useHover as useHover9 } from "@react-aria/interactions";
3742
3497
  import {
3743
3498
  useTableColumnHeader as useTableColumnHeader2,
3744
3499
  useTableSelectAllCheckbox
3745
3500
  } from "@react-aria/table";
3746
- import { mergeProps as mergeProps21 } from "@react-aria/utils";
3501
+ import { mergeProps as mergeProps19 } from "@react-aria/utils";
3747
3502
  import {
3748
3503
  cn as cn41,
3749
3504
  width as twWidth5,
3750
- useStateProps as useStateProps25
3505
+ useStateProps as useStateProps20
3751
3506
  } from "@marigold/system";
3752
- import { jsx as jsx79 } from "react/jsx-runtime";
3507
+ import { jsx as jsx77 } from "react/jsx-runtime";
3753
3508
  var TableSelectAllCell = ({
3754
3509
  column,
3755
3510
  width = "auto"
3756
3511
  }) => {
3757
- const ref = useRef26(null);
3512
+ const ref = useRef25(null);
3758
3513
  const { state, classNames: classNames2 } = useTableContext();
3759
3514
  const { columnHeaderProps } = useTableColumnHeader2(
3760
3515
  {
@@ -3764,13 +3519,13 @@ var TableSelectAllCell = ({
3764
3519
  ref
3765
3520
  );
3766
3521
  const { checkboxProps } = mapCheckboxProps(useTableSelectAllCheckbox(state));
3767
- const { hoverProps, isHovered } = useHover11({});
3768
- const { focusProps, isFocusVisible } = useFocusRing17();
3769
- const stateProps = useStateProps25({
3522
+ const { hoverProps, isHovered } = useHover9({});
3523
+ const { focusProps, isFocusVisible } = useFocusRing13();
3524
+ const stateProps = useStateProps20({
3770
3525
  hover: isHovered,
3771
3526
  focusVisible: isFocusVisible
3772
3527
  });
3773
- return /* @__PURE__ */ jsx79(
3528
+ return /* @__PURE__ */ jsx77(
3774
3529
  "th",
3775
3530
  {
3776
3531
  ref,
@@ -3779,15 +3534,15 @@ var TableSelectAllCell = ({
3779
3534
  ["text-center align-middle leading-none"],
3780
3535
  classNames2 == null ? void 0 : classNames2.header
3781
3536
  ),
3782
- ...mergeProps21(columnHeaderProps, hoverProps, focusProps),
3537
+ ...mergeProps19(columnHeaderProps, hoverProps, focusProps),
3783
3538
  ...stateProps,
3784
- children: /* @__PURE__ */ jsx79(Checkbox, { ...checkboxProps })
3539
+ children: /* @__PURE__ */ jsx77(_Checkbox, { ...checkboxProps })
3785
3540
  }
3786
3541
  );
3787
3542
  };
3788
3543
 
3789
3544
  // src/Table/Table.tsx
3790
- import { jsx as jsx80, jsxs as jsxs32 } from "react/jsx-runtime";
3545
+ import { jsx as jsx78, jsxs as jsxs31 } from "react/jsx-runtime";
3791
3546
  var Table = ({
3792
3547
  variant,
3793
3548
  size,
@@ -3796,7 +3551,7 @@ var Table = ({
3796
3551
  ...props
3797
3552
  }) => {
3798
3553
  const interactive = selectionMode !== "none";
3799
- const tableRef = useRef27(null);
3554
+ const tableRef = useRef26(null);
3800
3555
  const state = useTableState({
3801
3556
  ...props,
3802
3557
  selectionMode,
@@ -3804,17 +3559,17 @@ var Table = ({
3804
3559
  props.selectionBehavior !== "replace"
3805
3560
  });
3806
3561
  const { gridProps } = useTable(props, state, tableRef);
3807
- const classNames2 = useClassNames36({
3562
+ const classNames2 = useClassNames37({
3808
3563
  component: "Table",
3809
3564
  variant,
3810
3565
  size
3811
3566
  });
3812
3567
  const { collection } = state;
3813
- return /* @__PURE__ */ jsx80(
3568
+ return /* @__PURE__ */ jsx78(
3814
3569
  TableContext.Provider,
3815
3570
  {
3816
3571
  value: { state, interactive, classNames: classNames2, variant, size },
3817
- children: /* @__PURE__ */ jsxs32(
3572
+ children: /* @__PURE__ */ jsxs31(
3818
3573
  "table",
3819
3574
  {
3820
3575
  ref: tableRef,
@@ -3826,17 +3581,17 @@ var Table = ({
3826
3581
  ),
3827
3582
  ...gridProps,
3828
3583
  children: [
3829
- /* @__PURE__ */ jsx80(TableHeader, { children: collection.headerRows.map((headerRow) => /* @__PURE__ */ jsx80(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
3584
+ /* @__PURE__ */ jsx78(TableHeader, { children: collection.headerRows.map((headerRow) => /* @__PURE__ */ jsx78(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
3830
3585
  (column) => {
3831
3586
  var _a, _b, _c;
3832
- return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx80(
3587
+ return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx78(
3833
3588
  TableSelectAllCell,
3834
3589
  {
3835
3590
  width: (_b = column.props) == null ? void 0 : _b.width,
3836
3591
  column
3837
3592
  },
3838
3593
  column.key
3839
- ) : /* @__PURE__ */ jsx80(
3594
+ ) : /* @__PURE__ */ jsx78(
3840
3595
  TableColumnHeader,
3841
3596
  {
3842
3597
  width: (_c = column.props) == null ? void 0 : _c.width,
@@ -3846,12 +3601,12 @@ var Table = ({
3846
3601
  );
3847
3602
  }
3848
3603
  ) }, headerRow.key)) }),
3849
- /* @__PURE__ */ jsxs32(TableBody, { children: [
3604
+ /* @__PURE__ */ jsxs31(TableBody, { children: [
3850
3605
  ...collection.rows.map(
3851
- (row) => row.type === "item" && /* @__PURE__ */ jsx80(TableRow, { row, children: [...collection.getChildren(row.key)].map(
3606
+ (row) => row.type === "item" && /* @__PURE__ */ jsx78(TableRow, { row, children: [...collection.getChildren(row.key)].map(
3852
3607
  (cell) => {
3853
3608
  var _a;
3854
- return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx80(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ jsx80(TableCell, { cell }, cell.key);
3609
+ return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx78(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ jsx78(TableCell, { cell }, cell.key);
3855
3610
  }
3856
3611
  ) }, row.key)
3857
3612
  )
@@ -3871,17 +3626,17 @@ Table.Row = Row;
3871
3626
  // src/Text/Text.tsx
3872
3627
  import {
3873
3628
  cn as cn43,
3874
- createVar as createVar10,
3629
+ createVar as createVar9,
3875
3630
  cursorStyle,
3876
3631
  fontWeight,
3877
3632
  get as get2,
3878
3633
  textAlign as textAlign2,
3879
3634
  textSize,
3880
3635
  textStyle,
3881
- useClassNames as useClassNames37,
3636
+ useClassNames as useClassNames38,
3882
3637
  useTheme as useTheme5
3883
3638
  } from "@marigold/system";
3884
- import { jsx as jsx81 } from "react/jsx-runtime";
3639
+ import { jsx as jsx79 } from "react/jsx-runtime";
3885
3640
  var Text = ({
3886
3641
  variant,
3887
3642
  size,
@@ -3895,12 +3650,12 @@ var Text = ({
3895
3650
  ...props
3896
3651
  }) => {
3897
3652
  const theme = useTheme5();
3898
- const classNames2 = useClassNames37({
3653
+ const classNames2 = useClassNames38({
3899
3654
  component: "Text",
3900
3655
  variant,
3901
3656
  size
3902
3657
  });
3903
- return /* @__PURE__ */ jsx81(
3658
+ return /* @__PURE__ */ jsx79(
3904
3659
  "p",
3905
3660
  {
3906
3661
  ...props,
@@ -3913,7 +3668,7 @@ var Text = ({
3913
3668
  weight && fontWeight[weight],
3914
3669
  fontSize && textSize[fontSize]
3915
3670
  ),
3916
- style: createVar10({
3671
+ style: createVar9({
3917
3672
  color: color && theme.colors && get2(
3918
3673
  theme.colors,
3919
3674
  color.replace("-", "."),
@@ -3928,12 +3683,12 @@ var Text = ({
3928
3683
 
3929
3684
  // src/TextArea/TextArea.tsx
3930
3685
  import { forwardRef as forwardRef16 } from "react";
3931
- import { useFocusRing as useFocusRing18 } from "@react-aria/focus";
3932
- import { useHover as useHover12 } from "@react-aria/interactions";
3686
+ import { useFocusRing as useFocusRing14 } from "@react-aria/focus";
3687
+ import { useHover as useHover10 } from "@react-aria/interactions";
3933
3688
  import { useTextField } from "@react-aria/textfield";
3934
- import { useObjectRef as useObjectRef13 } from "@react-aria/utils";
3935
- import { useClassNames as useClassNames38, useStateProps as useStateProps26 } from "@marigold/system";
3936
- import { jsx as jsx82 } from "react/jsx-runtime";
3689
+ import { useObjectRef as useObjectRef8 } from "@react-aria/utils";
3690
+ import { useClassNames as useClassNames39, useStateProps as useStateProps21 } from "@marigold/system";
3691
+ import { jsx as jsx80 } from "react/jsx-runtime";
3937
3692
  var TextArea = forwardRef16(
3938
3693
  ({
3939
3694
  variant,
@@ -3947,7 +3702,7 @@ var TextArea = forwardRef16(
3947
3702
  ...props
3948
3703
  }, ref) => {
3949
3704
  const { label, description, errorMessage } = props;
3950
- const textAreaRef = useObjectRef13(ref);
3705
+ const textAreaRef = useObjectRef8(ref);
3951
3706
  const { labelProps, inputProps, descriptionProps, errorMessageProps } = useTextField(
3952
3707
  {
3953
3708
  inputElementType: "textarea",
@@ -3959,9 +3714,9 @@ var TextArea = forwardRef16(
3959
3714
  },
3960
3715
  textAreaRef
3961
3716
  );
3962
- const { hoverProps, isHovered } = useHover12({});
3963
- const { focusProps, isFocusVisible } = useFocusRing18();
3964
- const stateProps = useStateProps26({
3717
+ const { hoverProps, isHovered } = useHover10({});
3718
+ const { focusProps, isFocusVisible } = useFocusRing14();
3719
+ const stateProps = useStateProps21({
3965
3720
  hover: isHovered,
3966
3721
  focus: isFocusVisible,
3967
3722
  disabled,
@@ -3969,8 +3724,8 @@ var TextArea = forwardRef16(
3969
3724
  required,
3970
3725
  error
3971
3726
  });
3972
- const classNames2 = useClassNames38({ component: "TextArea", variant, size });
3973
- return /* @__PURE__ */ jsx82(
3727
+ const classNames2 = useClassNames39({ component: "TextArea", variant, size });
3728
+ return /* @__PURE__ */ jsx80(
3974
3729
  FieldBase,
3975
3730
  {
3976
3731
  label,
@@ -3984,7 +3739,7 @@ var TextArea = forwardRef16(
3984
3739
  variant,
3985
3740
  size,
3986
3741
  width,
3987
- children: /* @__PURE__ */ jsx82(
3742
+ children: /* @__PURE__ */ jsx80(
3988
3743
  "textarea",
3989
3744
  {
3990
3745
  className: classNames2,
@@ -4002,16 +3757,16 @@ var TextArea = forwardRef16(
4002
3757
 
4003
3758
  // src/TextField/TextField.tsx
4004
3759
  import { forwardRef as forwardRef17 } from "react";
4005
- import { useFocusRing as useFocusRing19 } from "@react-aria/focus";
4006
- import { useHover as useHover13 } from "@react-aria/interactions";
3760
+ import { useFocusRing as useFocusRing15 } from "@react-aria/focus";
3761
+ import { useHover as useHover11 } from "@react-aria/interactions";
4007
3762
  import { useTextField as useTextField2 } from "@react-aria/textfield";
4008
- import { mergeProps as mergeProps22, useObjectRef as useObjectRef14 } from "@react-aria/utils";
4009
- import { useStateProps as useStateProps27 } from "@marigold/system";
4010
- import { jsx as jsx83 } from "react/jsx-runtime";
3763
+ import { mergeProps as mergeProps20, useObjectRef as useObjectRef9 } from "@react-aria/utils";
3764
+ import { useStateProps as useStateProps22 } from "@marigold/system";
3765
+ import { jsx as jsx81 } from "react/jsx-runtime";
4011
3766
  var TextField = forwardRef17(
4012
3767
  ({ variant, size, width, disabled, required, readOnly, error, ...props }, ref) => {
4013
3768
  const { label, description, errorMessage, autoFocus } = props;
4014
- const inputRef = useObjectRef14(ref);
3769
+ const inputRef = useObjectRef9(ref);
4015
3770
  const { labelProps, inputProps, descriptionProps, errorMessageProps } = useTextField2(
4016
3771
  {
4017
3772
  isDisabled: disabled,
@@ -4022,12 +3777,12 @@ var TextField = forwardRef17(
4022
3777
  },
4023
3778
  inputRef
4024
3779
  );
4025
- const { hoverProps, isHovered } = useHover13({});
4026
- const { focusProps, isFocused } = useFocusRing19({
3780
+ const { hoverProps, isHovered } = useHover11({});
3781
+ const { focusProps, isFocused } = useFocusRing15({
4027
3782
  isTextInput: true,
4028
3783
  autoFocus
4029
3784
  });
4030
- const stateProps = useStateProps27({
3785
+ const stateProps = useStateProps22({
4031
3786
  hover: isHovered,
4032
3787
  focus: isFocused,
4033
3788
  disabled,
@@ -4035,7 +3790,7 @@ var TextField = forwardRef17(
4035
3790
  readOnly,
4036
3791
  required
4037
3792
  });
4038
- return /* @__PURE__ */ jsx83(
3793
+ return /* @__PURE__ */ jsx81(
4039
3794
  FieldBase,
4040
3795
  {
4041
3796
  label,
@@ -4049,13 +3804,13 @@ var TextField = forwardRef17(
4049
3804
  variant,
4050
3805
  size,
4051
3806
  width,
4052
- children: /* @__PURE__ */ jsx83(
3807
+ children: /* @__PURE__ */ jsx81(
4053
3808
  Input,
4054
3809
  {
4055
3810
  ref: inputRef,
4056
3811
  variant,
4057
3812
  size,
4058
- ...mergeProps22(focusProps, inputProps, hoverProps)
3813
+ ...mergeProps20(focusProps, inputProps, hoverProps)
4059
3814
  }
4060
3815
  )
4061
3816
  }
@@ -4064,8 +3819,8 @@ var TextField = forwardRef17(
4064
3819
  );
4065
3820
 
4066
3821
  // src/Tiles/Tiles.tsx
4067
- import { cn as cn44, createVar as createVar11, gapSpace as gapSpace7 } from "@marigold/system";
4068
- import { jsx as jsx84 } from "react/jsx-runtime";
3822
+ import { cn as cn44, createVar as createVar10, gapSpace as gapSpace7 } from "@marigold/system";
3823
+ import { jsx as jsx82 } from "react/jsx-runtime";
4069
3824
  var Tiles = ({
4070
3825
  space = 0,
4071
3826
  stretch = false,
@@ -4078,7 +3833,7 @@ var Tiles = ({
4078
3833
  if (stretch) {
4079
3834
  column = `minmax(${column}, 1fr)`;
4080
3835
  }
4081
- return /* @__PURE__ */ jsx84(
3836
+ return /* @__PURE__ */ jsx82(
4082
3837
  "div",
4083
3838
  {
4084
3839
  ...props,
@@ -4088,7 +3843,7 @@ var Tiles = ({
4088
3843
  "grid-cols-[repeat(auto-fit,var(--column))]",
4089
3844
  equalHeight && "auto-rows-[1fr]"
4090
3845
  ),
4091
- style: createVar11({ column, tilesWidth }),
3846
+ style: createVar10({ column, tilesWidth }),
4092
3847
  children
4093
3848
  }
4094
3849
  );
@@ -4096,7 +3851,7 @@ var Tiles = ({
4096
3851
 
4097
3852
  // src/Tooltip/Tooltip.tsx
4098
3853
  import { useTooltip } from "@react-aria/tooltip";
4099
- import { cn as cn45, useClassNames as useClassNames39 } from "@marigold/system";
3854
+ import { cn as cn45, useClassNames as useClassNames40 } from "@marigold/system";
4100
3855
 
4101
3856
  // src/Tooltip/Context.ts
4102
3857
  import { createContext as createContext9, useContext as useContext9 } from "react";
@@ -4104,12 +3859,12 @@ var TooltipContext = createContext9({});
4104
3859
  var useTooltipContext = () => useContext9(TooltipContext);
4105
3860
 
4106
3861
  // src/Tooltip/TooltipTrigger.tsx
4107
- import { Children as Children7, useRef as useRef28 } from "react";
3862
+ import { Children as Children7, useRef as useRef27 } from "react";
4108
3863
  import { FocusableProvider } from "@react-aria/focus";
4109
3864
  import { useOverlayPosition } from "@react-aria/overlays";
4110
3865
  import { useTooltipTrigger } from "@react-aria/tooltip";
4111
3866
  import { useTooltipTriggerState } from "@react-stately/tooltip";
4112
- import { jsx as jsx85, jsxs as jsxs33 } from "react/jsx-runtime";
3867
+ import { jsx as jsx83, jsxs as jsxs32 } from "react/jsx-runtime";
4113
3868
  var TooltipTrigger = ({
4114
3869
  disabled,
4115
3870
  open,
@@ -4126,8 +3881,8 @@ var TooltipTrigger = ({
4126
3881
  delay,
4127
3882
  placement
4128
3883
  };
4129
- const tooltipTriggerRef = useRef28(null);
4130
- const overlayRef = useRef28(null);
3884
+ const tooltipTriggerRef = useRef27(null);
3885
+ const overlayRef = useRef27(null);
4131
3886
  const state = useTooltipTriggerState(props);
4132
3887
  const { triggerProps, tooltipProps } = useTooltipTrigger(
4133
3888
  props,
@@ -4146,9 +3901,9 @@ var TooltipTrigger = ({
4146
3901
  isOpen: state.isOpen,
4147
3902
  overlayRef
4148
3903
  });
4149
- return /* @__PURE__ */ jsxs33(FocusableProvider, { ref: tooltipTriggerRef, ...triggerProps, children: [
3904
+ return /* @__PURE__ */ jsxs32(FocusableProvider, { ref: tooltipTriggerRef, ...triggerProps, children: [
4150
3905
  tooltipTrigger,
4151
- /* @__PURE__ */ jsx85(
3906
+ /* @__PURE__ */ jsx83(
4152
3907
  TooltipContext.Provider,
4153
3908
  {
4154
3909
  value: {
@@ -4159,19 +3914,19 @@ var TooltipTrigger = ({
4159
3914
  ...tooltipProps,
4160
3915
  ...positionProps
4161
3916
  },
4162
- children: /* @__PURE__ */ jsx85(Overlay, { open: state.isOpen, children: tooltip })
3917
+ children: /* @__PURE__ */ jsx83(Overlay, { open: state.isOpen, children: tooltip })
4163
3918
  }
4164
3919
  )
4165
3920
  ] });
4166
3921
  };
4167
3922
 
4168
3923
  // src/Tooltip/Tooltip.tsx
4169
- import { jsx as jsx86, jsxs as jsxs34 } from "react/jsx-runtime";
3924
+ import { jsx as jsx84, jsxs as jsxs33 } from "react/jsx-runtime";
4170
3925
  var Tooltip = ({ children, variant, size }) => {
4171
3926
  const { arrowProps, state, overlayRef, placement, ...rest } = useTooltipContext();
4172
3927
  const { tooltipProps } = useTooltip({}, state);
4173
- const classNames2 = useClassNames39({ component: "Tooltip", variant, size });
4174
- return /* @__PURE__ */ jsxs34(
3928
+ const classNames2 = useClassNames40({ component: "Tooltip", variant, size });
3929
+ return /* @__PURE__ */ jsxs33(
4175
3930
  "div",
4176
3931
  {
4177
3932
  ...tooltipProps,
@@ -4180,8 +3935,8 @@ var Tooltip = ({ children, variant, size }) => {
4180
3935
  className: cn45("group/tooltip", classNames2.container),
4181
3936
  "data-placement": placement,
4182
3937
  children: [
4183
- /* @__PURE__ */ jsx86("div", { children }),
4184
- /* @__PURE__ */ jsx86(
3938
+ /* @__PURE__ */ jsx84("div", { children }),
3939
+ /* @__PURE__ */ jsx84(
4185
3940
  "div",
4186
3941
  {
4187
3942
  ...arrowProps,
@@ -4198,31 +3953,31 @@ Tooltip.Trigger = TooltipTrigger;
4198
3953
  import { Item as Item6 } from "@react-stately/collections";
4199
3954
 
4200
3955
  // src/TagGroup/TagGroup.tsx
4201
- import { useRef as useRef30 } from "react";
3956
+ import { useRef as useRef29 } from "react";
4202
3957
  import { useTagGroup } from "@react-aria/tag";
4203
3958
  import { useListState } from "@react-stately/list";
4204
- import { useStateProps as useStateProps28 } from "@marigold/system";
3959
+ import { useStateProps as useStateProps23 } from "@marigold/system";
4205
3960
 
4206
3961
  // src/TagGroup/Tag.tsx
4207
- import React2, { useRef as useRef29 } from "react";
4208
- import { useButton as useButton8 } from "@react-aria/button";
4209
- import { useFocusRing as useFocusRing20 } from "@react-aria/focus";
3962
+ import React3, { useRef as useRef28 } from "react";
3963
+ import { useButton as useButton6 } from "@react-aria/button";
3964
+ import { useFocusRing as useFocusRing16 } from "@react-aria/focus";
4210
3965
  import { useTag } from "@react-aria/tag";
4211
- import { mergeProps as mergeProps23 } from "@react-aria/utils";
4212
- import { cn as cn46, useClassNames as useClassNames40 } from "@marigold/system";
4213
- import { jsx as jsx87, jsxs as jsxs35 } from "react/jsx-runtime";
3966
+ import { mergeProps as mergeProps21 } from "@react-aria/utils";
3967
+ import { cn as cn46, useClassNames as useClassNames41 } from "@marigold/system";
3968
+ import { jsx as jsx85, jsxs as jsxs34 } from "react/jsx-runtime";
4214
3969
  var CloseButton2 = ({ className, ...props }) => {
4215
- const ref = useRef29(null);
4216
- const { buttonProps } = useButton8({ ...props }, ref);
4217
- return /* @__PURE__ */ jsx87("button", { className, ...buttonProps, children: /* @__PURE__ */ jsx87("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx87("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" }) }) });
3970
+ const ref = useRef28(null);
3971
+ const { buttonProps } = useButton6({ ...props }, ref);
3972
+ return /* @__PURE__ */ jsx85("button", { className, ...buttonProps, children: /* @__PURE__ */ jsx85("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx85("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" }) }) });
4218
3973
  };
4219
3974
  var Tag = ({ variant, size, item, state, ...rest }) => {
4220
3975
  const props = {
4221
3976
  item,
4222
3977
  ...rest
4223
3978
  };
4224
- let ref = React2.useRef(null);
4225
- let { focusProps } = useFocusRing20({ within: true });
3979
+ let ref = React3.useRef(null);
3980
+ let { focusProps } = useFocusRing16({ within: true });
4226
3981
  const { rowProps, gridCellProps, allowsRemoving, removeButtonProps } = useTag(
4227
3982
  {
4228
3983
  ...props,
@@ -4231,16 +3986,16 @@ var Tag = ({ variant, size, item, state, ...rest }) => {
4231
3986
  state,
4232
3987
  ref
4233
3988
  );
4234
- const classNames2 = useClassNames40({ component: "Tag", variant, size });
4235
- return /* @__PURE__ */ jsx87(
3989
+ const classNames2 = useClassNames41({ component: "Tag", variant, size });
3990
+ return /* @__PURE__ */ jsx85(
4236
3991
  "span",
4237
3992
  {
4238
3993
  ref,
4239
- ...mergeProps23(rowProps, focusProps),
3994
+ ...mergeProps21(rowProps, focusProps),
4240
3995
  className: classNames2.tag,
4241
- children: /* @__PURE__ */ jsxs35("div", { ...gridCellProps, className: classNames2.gridCell, children: [
4242
- /* @__PURE__ */ jsx87("span", { children: item.rendered }),
4243
- allowsRemoving && /* @__PURE__ */ jsx87(
3996
+ children: /* @__PURE__ */ jsxs34("div", { ...gridCellProps, className: classNames2.gridCell, children: [
3997
+ /* @__PURE__ */ jsx85("span", { children: item.rendered }),
3998
+ allowsRemoving && /* @__PURE__ */ jsx85(
4244
3999
  CloseButton2,
4245
4000
  {
4246
4001
  ...removeButtonProps,
@@ -4253,7 +4008,7 @@ var Tag = ({ variant, size, item, state, ...rest }) => {
4253
4008
  };
4254
4009
 
4255
4010
  // src/TagGroup/TagGroup.tsx
4256
- import { jsx as jsx88 } from "react/jsx-runtime";
4011
+ import { jsx as jsx86 } from "react/jsx-runtime";
4257
4012
  import { createElement } from "react";
4258
4013
  var TagGroup = ({
4259
4014
  width,
@@ -4267,14 +4022,14 @@ var TagGroup = ({
4267
4022
  validationState: error ? "invalid" : "valid",
4268
4023
  ...rest
4269
4024
  };
4270
- const inputRef = useRef30(null);
4025
+ const inputRef = useRef29(null);
4271
4026
  const state = useListState(props);
4272
4027
  const { gridProps, labelProps, descriptionProps, errorMessageProps } = useTagGroup(props, state, inputRef);
4273
- const stateProps = useStateProps28({
4028
+ const stateProps = useStateProps23({
4274
4029
  error,
4275
4030
  required
4276
4031
  });
4277
- return /* @__PURE__ */ jsx88(
4032
+ return /* @__PURE__ */ jsx86(
4278
4033
  FieldBase,
4279
4034
  {
4280
4035
  width,
@@ -4287,7 +4042,7 @@ var TagGroup = ({
4287
4042
  errorMessageProps,
4288
4043
  stateProps,
4289
4044
  ...gridProps,
4290
- children: /* @__PURE__ */ jsx88(
4045
+ children: /* @__PURE__ */ jsx86(
4291
4046
  "div",
4292
4047
  {
4293
4048
  role: "presentation",
@@ -4315,11 +4070,14 @@ var TagGroup = ({
4315
4070
  var Tag2 = Item6;
4316
4071
  Tag2.Group = TagGroup;
4317
4072
 
4073
+ // src/VisuallyHidden/VisuallyHidden.tsx
4074
+ import { VisuallyHidden } from "@react-aria/visually-hidden";
4075
+
4318
4076
  // src/XLoader/XLoader.tsx
4319
4077
  import { forwardRef as forwardRef18 } from "react";
4320
4078
  import { SVG as SVG6 } from "@marigold/system";
4321
- import { jsx as jsx89, jsxs as jsxs36 } from "react/jsx-runtime";
4322
- var XLoader = forwardRef18((props, ref) => /* @__PURE__ */ jsxs36(
4079
+ import { jsx as jsx87, jsxs as jsxs35 } from "react/jsx-runtime";
4080
+ var XLoader = forwardRef18((props, ref) => /* @__PURE__ */ jsxs35(
4323
4081
  SVG6,
4324
4082
  {
4325
4083
  id: "XLoader",
@@ -4329,13 +4087,13 @@ var XLoader = forwardRef18((props, ref) => /* @__PURE__ */ jsxs36(
4329
4087
  ...props,
4330
4088
  ...ref,
4331
4089
  children: [
4332
- /* @__PURE__ */ jsx89("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
4333
- /* @__PURE__ */ jsx89(
4090
+ /* @__PURE__ */ jsx87("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
4091
+ /* @__PURE__ */ jsx87(
4334
4092
  "path",
4335
4093
  {
4336
4094
  id: "XMLID_5_",
4337
4095
  d: "M124.3 12.8h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
4338
- children: /* @__PURE__ */ jsx89(
4096
+ children: /* @__PURE__ */ jsx87(
4339
4097
  "animate",
4340
4098
  {
4341
4099
  attributeName: "opacity",
@@ -4348,12 +4106,12 @@ var XLoader = forwardRef18((props, ref) => /* @__PURE__ */ jsxs36(
4348
4106
  )
4349
4107
  }
4350
4108
  ),
4351
- /* @__PURE__ */ jsx89(
4109
+ /* @__PURE__ */ jsx87(
4352
4110
  "path",
4353
4111
  {
4354
4112
  id: "XMLID_18_",
4355
4113
  d: "M115.9 24.4h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
4356
- children: /* @__PURE__ */ jsx89(
4114
+ children: /* @__PURE__ */ jsx87(
4357
4115
  "animate",
4358
4116
  {
4359
4117
  attributeName: "opacity",
@@ -4366,12 +4124,12 @@ var XLoader = forwardRef18((props, ref) => /* @__PURE__ */ jsxs36(
4366
4124
  )
4367
4125
  }
4368
4126
  ),
4369
- /* @__PURE__ */ jsx89(
4127
+ /* @__PURE__ */ jsx87(
4370
4128
  "path",
4371
4129
  {
4372
4130
  id: "XMLID_19_",
4373
4131
  d: "M107.5 35.9h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
4374
- children: /* @__PURE__ */ jsx89(
4132
+ children: /* @__PURE__ */ jsx87(
4375
4133
  "animate",
4376
4134
  {
4377
4135
  attributeName: "opacity",
@@ -4384,12 +4142,12 @@ var XLoader = forwardRef18((props, ref) => /* @__PURE__ */ jsxs36(
4384
4142
  )
4385
4143
  }
4386
4144
  ),
4387
- /* @__PURE__ */ jsx89(
4145
+ /* @__PURE__ */ jsx87(
4388
4146
  "path",
4389
4147
  {
4390
4148
  id: "XMLID_20_",
4391
4149
  d: "M99.1 47.5h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
4392
- children: /* @__PURE__ */ jsx89(
4150
+ children: /* @__PURE__ */ jsx87(
4393
4151
  "animate",
4394
4152
  {
4395
4153
  attributeName: "opacity",
@@ -4402,12 +4160,12 @@ var XLoader = forwardRef18((props, ref) => /* @__PURE__ */ jsxs36(
4402
4160
  )
4403
4161
  }
4404
4162
  ),
4405
- /* @__PURE__ */ jsx89(
4163
+ /* @__PURE__ */ jsx87(
4406
4164
  "path",
4407
4165
  {
4408
4166
  id: "XMLID_21_",
4409
4167
  d: "M90.7 59H90c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.8-2.2 4.9-4.9 4.9z",
4410
- children: /* @__PURE__ */ jsx89(
4168
+ children: /* @__PURE__ */ jsx87(
4411
4169
  "animate",
4412
4170
  {
4413
4171
  attributeName: "opacity",
@@ -4420,12 +4178,12 @@ var XLoader = forwardRef18((props, ref) => /* @__PURE__ */ jsxs36(
4420
4178
  )
4421
4179
  }
4422
4180
  ),
4423
- /* @__PURE__ */ jsx89(
4181
+ /* @__PURE__ */ jsx87(
4424
4182
  "path",
4425
4183
  {
4426
4184
  id: "XMLID_22_",
4427
4185
  d: "M68 89.8h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.8c0 2.6-2.2 4.8-4.9 4.8z",
4428
- children: /* @__PURE__ */ jsx89(
4186
+ children: /* @__PURE__ */ jsx87(
4429
4187
  "animate",
4430
4188
  {
4431
4189
  attributeName: "opacity",
@@ -4438,12 +4196,12 @@ var XLoader = forwardRef18((props, ref) => /* @__PURE__ */ jsxs36(
4438
4196
  )
4439
4197
  }
4440
4198
  ),
4441
- /* @__PURE__ */ jsx89(
4199
+ /* @__PURE__ */ jsx87(
4442
4200
  "path",
4443
4201
  {
4444
4202
  id: "XMLID_23_",
4445
4203
  d: "M59.6 101.4h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
4446
- children: /* @__PURE__ */ jsx89(
4204
+ children: /* @__PURE__ */ jsx87(
4447
4205
  "animate",
4448
4206
  {
4449
4207
  attributeName: "opacity",
@@ -4456,12 +4214,12 @@ var XLoader = forwardRef18((props, ref) => /* @__PURE__ */ jsxs36(
4456
4214
  )
4457
4215
  }
4458
4216
  ),
4459
- /* @__PURE__ */ jsx89(
4217
+ /* @__PURE__ */ jsx87(
4460
4218
  "path",
4461
4219
  {
4462
4220
  id: "XMLID_24_",
4463
4221
  d: "M51.2 112.9h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.8-2.2 4.9-4.9 4.9z",
4464
- children: /* @__PURE__ */ jsx89(
4222
+ children: /* @__PURE__ */ jsx87(
4465
4223
  "animate",
4466
4224
  {
4467
4225
  attributeName: "opacity",
@@ -4474,12 +4232,12 @@ var XLoader = forwardRef18((props, ref) => /* @__PURE__ */ jsxs36(
4474
4232
  )
4475
4233
  }
4476
4234
  ),
4477
- /* @__PURE__ */ jsx89(
4235
+ /* @__PURE__ */ jsx87(
4478
4236
  "path",
4479
4237
  {
4480
4238
  id: "XMLID_25_",
4481
4239
  d: "M42.8 124.5h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.7-2.2 4.9-4.9 4.9z",
4482
- children: /* @__PURE__ */ jsx89(
4240
+ children: /* @__PURE__ */ jsx87(
4483
4241
  "animate",
4484
4242
  {
4485
4243
  attributeName: "opacity",
@@ -4492,12 +4250,12 @@ var XLoader = forwardRef18((props, ref) => /* @__PURE__ */ jsxs36(
4492
4250
  )
4493
4251
  }
4494
4252
  ),
4495
- /* @__PURE__ */ jsx89(
4253
+ /* @__PURE__ */ jsx87(
4496
4254
  "path",
4497
4255
  {
4498
4256
  id: "XMLID_26_",
4499
4257
  d: "M34.4 136h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.7-2.2 4.9-4.9 4.9z",
4500
- children: /* @__PURE__ */ jsx89(
4258
+ children: /* @__PURE__ */ jsx87(
4501
4259
  "animate",
4502
4260
  {
4503
4261
  attributeName: "opacity",
@@ -4510,12 +4268,12 @@ var XLoader = forwardRef18((props, ref) => /* @__PURE__ */ jsxs36(
4510
4268
  )
4511
4269
  }
4512
4270
  ),
4513
- /* @__PURE__ */ jsx89(
4271
+ /* @__PURE__ */ jsx87(
4514
4272
  "path",
4515
4273
  {
4516
4274
  id: "XMLID_27_",
4517
4275
  d: "M26 147.6h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.8-2.2 4.9-4.9 4.9z",
4518
- children: /* @__PURE__ */ jsx89(
4276
+ children: /* @__PURE__ */ jsx87(
4519
4277
  "animate",
4520
4278
  {
4521
4279
  attributeName: "opacity",
@@ -4533,11 +4291,11 @@ var XLoader = forwardRef18((props, ref) => /* @__PURE__ */ jsxs36(
4533
4291
  ));
4534
4292
 
4535
4293
  // src/Tabs/Tabs.tsx
4536
- import { useRef as useRef33 } from "react";
4294
+ import { useRef as useRef32 } from "react";
4537
4295
  import { useTabList } from "@react-aria/tabs";
4538
4296
  import { Item as Item7 } from "@react-stately/collections";
4539
4297
  import { useTabListState } from "@react-stately/tabs";
4540
- import { cn as cn49, gapSpace as gapSpace8, useClassNames as useClassNames41 } from "@marigold/system";
4298
+ import { cn as cn49, gapSpace as gapSpace8, useClassNames as useClassNames42 } from "@marigold/system";
4541
4299
 
4542
4300
  // src/Tabs/Context.ts
4543
4301
  import { createContext as createContext10, useContext as useContext10 } from "react";
@@ -4545,31 +4303,31 @@ var TabContext = createContext10({});
4545
4303
  var useTabContext = () => useContext10(TabContext);
4546
4304
 
4547
4305
  // src/Tabs/Tab.tsx
4548
- import { useRef as useRef31 } from "react";
4549
- import { useFocus, useHover as useHover14 } from "@react-aria/interactions";
4306
+ import { useRef as useRef30 } from "react";
4307
+ import { useFocus, useHover as useHover12 } from "@react-aria/interactions";
4550
4308
  import { useTab } from "@react-aria/tabs";
4551
- import { mergeProps as mergeProps24 } from "@react-aria/utils";
4552
- import { cn as cn47, useStateProps as useStateProps29 } from "@marigold/system";
4553
- import { jsx as jsx90 } from "react/jsx-runtime";
4309
+ import { mergeProps as mergeProps22 } from "@react-aria/utils";
4310
+ import { cn as cn47, useStateProps as useStateProps24 } from "@marigold/system";
4311
+ import { jsx as jsx88 } from "react/jsx-runtime";
4554
4312
  var Tab = ({ item, state }) => {
4555
4313
  const { key, rendered } = item;
4556
- const ref = useRef31(null);
4314
+ const ref = useRef30(null);
4557
4315
  const { tabProps, isSelected } = useTab({ key }, state, ref);
4558
4316
  const disabled = tabProps["aria-disabled"];
4559
- const { hoverProps, isHovered } = useHover14({
4317
+ const { hoverProps, isHovered } = useHover12({
4560
4318
  isDisabled: disabled || isSelected
4561
4319
  });
4562
4320
  const { focusProps } = useFocus({});
4563
- const stateProps = useStateProps29({ active: isSelected, hover: isHovered });
4321
+ const stateProps = useStateProps24({ active: isSelected, hover: isHovered });
4564
4322
  const { classNames: classNames2 } = useTabContext();
4565
- return /* @__PURE__ */ jsx90(
4323
+ return /* @__PURE__ */ jsx88(
4566
4324
  "div",
4567
4325
  {
4568
4326
  className: cn47(
4569
4327
  "flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
4570
4328
  classNames2.tab
4571
4329
  ),
4572
- ...mergeProps24(tabProps, stateProps, focusProps, hoverProps),
4330
+ ...mergeProps22(tabProps, stateProps, focusProps, hoverProps),
4573
4331
  ref,
4574
4332
  children: rendered
4575
4333
  }
@@ -4577,21 +4335,21 @@ var Tab = ({ item, state }) => {
4577
4335
  };
4578
4336
 
4579
4337
  // src/Tabs/TabPanel.tsx
4580
- import { useRef as useRef32 } from "react";
4338
+ import { useRef as useRef31 } from "react";
4581
4339
  import { useTabPanel } from "@react-aria/tabs";
4582
4340
  import { cn as cn48 } from "@marigold/system";
4583
- import { jsx as jsx91 } from "react/jsx-runtime";
4341
+ import { jsx as jsx89 } from "react/jsx-runtime";
4584
4342
  var TabPanel = ({ state, ...props }) => {
4585
4343
  var _a;
4586
- const ref = useRef32(null);
4344
+ const ref = useRef31(null);
4587
4345
  const { tabPanelProps } = useTabPanel(props, state, ref);
4588
4346
  const selectedItemProps = (_a = state.selectedItem) == null ? void 0 : _a.props;
4589
4347
  const { classNames: classNames2 } = useTabContext();
4590
- return /* @__PURE__ */ jsx91("div", { className: cn48(classNames2.tabpanel), ref, ...tabPanelProps, children: selectedItemProps == null ? void 0 : selectedItemProps.children });
4348
+ return /* @__PURE__ */ jsx89("div", { className: cn48(classNames2.tabpanel), ref, ...tabPanelProps, children: selectedItemProps == null ? void 0 : selectedItemProps.children });
4591
4349
  };
4592
4350
 
4593
4351
  // src/Tabs/Tabs.tsx
4594
- import { jsx as jsx92, jsxs as jsxs37 } from "react/jsx-runtime";
4352
+ import { jsx as jsx90, jsxs as jsxs36 } from "react/jsx-runtime";
4595
4353
  var Tabs = ({
4596
4354
  space = 2,
4597
4355
  size = "medium",
@@ -4600,31 +4358,31 @@ var Tabs = ({
4600
4358
  ...rest
4601
4359
  }) => {
4602
4360
  var _a;
4603
- const ref = useRef33(null);
4361
+ const ref = useRef32(null);
4604
4362
  const props = {
4605
4363
  isDisabled: disabled,
4606
4364
  ...rest
4607
4365
  };
4608
4366
  const state = useTabListState(props);
4609
4367
  const { tabListProps } = useTabList(props, state, ref);
4610
- const classNames2 = useClassNames41({
4368
+ const classNames2 = useClassNames42({
4611
4369
  component: "Tabs",
4612
4370
  size,
4613
4371
  variant
4614
4372
  });
4615
- return /* @__PURE__ */ jsx92(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsxs37("div", { className: cn49(classNames2.container), children: [
4616
- /* @__PURE__ */ jsx92(
4373
+ return /* @__PURE__ */ jsx90(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsxs36("div", { className: cn49(classNames2.container), children: [
4374
+ /* @__PURE__ */ jsx90(
4617
4375
  "div",
4618
4376
  {
4619
4377
  className: cn49("flex", gapSpace8[space], classNames2.tabs),
4620
4378
  ...tabListProps,
4621
4379
  ref,
4622
4380
  children: [...state.collection].map((item) => {
4623
- return /* @__PURE__ */ jsx92(Tab, { item, state }, item.key);
4381
+ return /* @__PURE__ */ jsx90(Tab, { item, state }, item.key);
4624
4382
  })
4625
4383
  }
4626
4384
  ),
4627
- /* @__PURE__ */ jsx92(TabPanel, { state }, (_a = state.selectedItem) == null ? void 0 : _a.key)
4385
+ /* @__PURE__ */ jsx90(TabPanel, { state }, (_a = state.selectedItem) == null ? void 0 : _a.key)
4628
4386
  ] }) });
4629
4387
  };
4630
4388
  Tabs.Item = Item7;
@@ -4638,13 +4396,13 @@ export {
4638
4396
  Badge,
4639
4397
  Body,
4640
4398
  Breakout,
4641
- Button,
4399
+ _Button as Button,
4642
4400
  Calendar,
4643
4401
  CalendarCell,
4644
4402
  CalendarGrid,
4645
4403
  Card,
4646
4404
  Center,
4647
- Checkbox,
4405
+ _Checkbox as Checkbox,
4648
4406
  CheckboxGroup,
4649
4407
  CheckboxGroupContext,
4650
4408
  Columns,
@@ -4653,19 +4411,19 @@ export {
4653
4411
  DateField,
4654
4412
  DatePicker,
4655
4413
  Dialog,
4656
- Divider,
4414
+ _Divider as Divider,
4657
4415
  FieldBase,
4658
4416
  FieldGroup,
4659
4417
  FieldGroupContext,
4660
4418
  Footer,
4661
4419
  Header,
4662
- Headline,
4420
+ _Headline as Headline,
4663
4421
  Image,
4664
4422
  Inline,
4665
4423
  Input,
4666
4424
  Inset,
4667
- Label,
4668
- Link,
4425
+ _Label as Label,
4426
+ _Link as Link,
4669
4427
  List,
4670
4428
  MarigoldProvider,
4671
4429
  Menu,
@@ -4677,10 +4435,10 @@ export {
4677
4435
  Radio,
4678
4436
  RadioGroup,
4679
4437
  Select,
4680
- Slider,
4438
+ _Slider as Slider,
4681
4439
  Split,
4682
4440
  Stack,
4683
- Switch,
4441
+ _Switch as Switch,
4684
4442
  Table,
4685
4443
  Tabs,
4686
4444
  Tag2 as Tag,
@@ -4695,6 +4453,7 @@ export {
4695
4453
  Underlay,
4696
4454
  VisuallyHidden,
4697
4455
  XLoader,
4456
+ _Slider,
4698
4457
  useAsyncList,
4699
4458
  useCheckboxGroupContext,
4700
4459
  useFieldGroupContext,