@marigold/components 6.11.0 → 7.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -35,50 +35,48 @@ __export(src_exports, {
35
35
  ActionMenu: () => ActionMenu,
36
36
  Aside: () => Aside,
37
37
  Aspect: () => Aspect,
38
- Autocomplete: () => Autocomplete,
38
+ Autocomplete: () => _Autocomplete,
39
39
  Badge: () => Badge,
40
40
  Body: () => Body,
41
41
  Breakout: () => Breakout,
42
42
  Button: () => _Button,
43
- Calendar: () => Calendar,
44
- CalendarCell: () => CalendarCell,
45
- CalendarGrid: () => CalendarGrid,
43
+ Calendar: () => _Calendar,
46
44
  Card: () => Card,
47
45
  Center: () => Center,
48
46
  Checkbox: () => _Checkbox,
49
47
  CheckboxGroup: () => _CheckboxGroup,
50
48
  CloseButton: () => CloseButton2,
51
49
  Columns: () => Columns,
52
- ComboBox: () => ComboBox,
50
+ ComboBox: () => _ComboBox,
53
51
  Container: () => Container,
54
- DateField: () => DateField,
55
- DatePicker: () => DatePicker,
52
+ DateField: () => _DateField,
53
+ DatePicker: () => _DatePicker,
56
54
  Dialog: () => _Dialog,
57
55
  Divider: () => _Divider,
58
56
  FieldBase: () => FieldBase,
59
57
  FieldGroup: () => FieldGroup,
60
58
  FieldGroupContext: () => FieldGroupContext,
61
59
  Footer: () => Footer,
60
+ Form: () => import_react_aria_components20.Form,
62
61
  Header: () => _Header,
63
62
  Headline: () => _Headline,
64
63
  Image: () => Image,
65
64
  Inline: () => Inline,
66
- Input: () => Input,
65
+ Input: () => _Input,
67
66
  Inset: () => Inset,
68
67
  Label: () => _Label,
69
68
  Link: () => _Link,
70
69
  List: () => List,
71
70
  MarigoldProvider: () => MarigoldProvider,
72
- Menu: () => Menu,
71
+ Menu: () => _Menu,
73
72
  Message: () => Message,
74
73
  Modal: () => _Modal,
75
74
  NumberField: () => _NumberField,
76
- Overlay: () => Overlay,
77
- Popover: () => Popover,
75
+ Popover: () => _Popover,
78
76
  Radio: () => _Radio,
79
77
  RadioGroup: () => _RadioGroup,
80
78
  SearchField: () => _SearchField,
81
- Select: () => Select,
79
+ Select: () => _Select,
82
80
  Slider: () => _Slider,
83
81
  Split: () => Split,
84
82
  Stack: () => Stack,
@@ -89,18 +87,17 @@ __export(src_exports, {
89
87
  Text: () => Text2,
90
88
  TextArea: () => _TextArea,
91
89
  TextField: () => _TextField,
92
- ThemeProvider: () => import_system55.ThemeProvider,
90
+ ThemeProvider: () => import_system52.ThemeProvider,
93
91
  Tiles: () => Tiles,
94
92
  Tooltip: () => _Tooltip,
95
- Tray: () => Tray,
96
- TrayWrapper: () => TrayWrapper,
97
93
  Underlay: () => Underlay,
98
94
  VisuallyHidden: () => import_visually_hidden.VisuallyHidden,
99
95
  XLoader: () => XLoader,
96
+ _Calendar: () => _Calendar,
100
97
  useAsyncList: () => import_data.useAsyncList,
101
98
  useFieldGroupContext: () => useFieldGroupContext,
102
99
  useListData: () => import_data.useListData,
103
- useTheme: () => import_system55.useTheme
100
+ useTheme: () => import_system52.useTheme
104
101
  });
105
102
  module.exports = __toCommonJS(src_exports);
106
103
 
@@ -116,7 +113,7 @@ var import_tree = require("@react-stately/tree");
116
113
  // src/Accordion/AccordionItem.tsx
117
114
  var import_react3 = require("react");
118
115
  var import_focus = require("@react-aria/focus");
119
- var import_utils4 = require("@react-aria/utils");
116
+ var import_utils2 = require("@react-aria/utils");
120
117
  var import_system3 = require("@marigold/system");
121
118
 
122
119
  // src/Chevron/ChevronUp.tsx
@@ -139,13 +136,11 @@ var ChevronDown = (0, import_react2.forwardRef)(
139
136
  var import_button = require("@react-aria/button");
140
137
  var import_selection = require("@react-aria/selection");
141
138
  var import_utils = require("@react-aria/utils");
142
- var import_utils2 = require("@react-aria/utils");
143
- var import_utils3 = require("@react-aria/utils");
144
139
  function isNonContiguousSelectionModifier(e) {
145
- return (0, import_utils2.isAppleDevice)() ? e.altKey : e.ctrlKey;
140
+ return (0, import_utils.isAppleDevice)() ? e.altKey : e.ctrlKey;
146
141
  }
147
142
  function isCtrlKeyPressed(e) {
148
- if ((0, import_utils3.isMac)()) {
143
+ if ((0, import_utils.isMac)()) {
149
144
  return e.metaKey;
150
145
  }
151
146
  return e.ctrlKey;
@@ -162,9 +157,7 @@ function useAccordionItem(props, state, ref) {
162
157
  key,
163
158
  ref
164
159
  });
165
- const isDefaultExpanded = state.expandedKeys.has(
166
- item.key.toString().replace(".$", "")
167
- );
160
+ const isDefaultExpanded = state.expandedKeys.has(item.key);
168
161
  let onSelect = (e) => {
169
162
  if (e.pointerType === "keyboard" && isNonContiguousSelectionModifier(e)) {
170
163
  if (isDefaultExpanded) {
@@ -242,16 +235,17 @@ var AccordionItem = ({
242
235
  ...props
243
236
  }) => {
244
237
  const ref = (0, import_react3.useRef)(null);
245
- const defaultExpanded = state.expandedKeys.has(
246
- item.key.toString().replace(".$", "")
247
- );
238
+ const defaultExpanded = Array.from(state.expandedKeys).some((key) => {
239
+ return key.toString() === item.key.toString().replace(".$", "");
240
+ });
248
241
  const expanded = state.selectionManager.isSelected(item.key);
249
242
  (0, import_react3.useEffect)(() => {
250
243
  if (defaultExpanded) {
251
244
  if (state.selectionManager.selectionMode === "multiple") {
252
- state.expandedKeys.forEach((key) => {
253
- state.selectionManager.select(key);
254
- });
245
+ state.selectionManager.setSelectedKeys([
246
+ ...state.selectionManager.selectedKeys,
247
+ item.key
248
+ ]);
255
249
  } else {
256
250
  state.expandedKeys.clear();
257
251
  state.selectionManager.toggleSelection(item.key);
@@ -279,7 +273,7 @@ var AccordionItem = ({
279
273
  "inline-flex items-center justify-center gap-[0.5ch]",
280
274
  classNames2.button
281
275
  ),
282
- ...(0, import_utils4.mergeProps)(buttonProps, stateProps, props),
276
+ ...(0, import_utils2.mergeProps)(buttonProps, stateProps, props),
283
277
  ref,
284
278
  "aria-label": item.textValue,
285
279
  children: [
@@ -288,14 +282,14 @@ var AccordionItem = ({
288
282
  ]
289
283
  }
290
284
  ) }),
291
- expanded || defaultExpanded ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
285
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
292
286
  "div",
293
287
  {
294
- ...(0, import_utils4.mergeProps)(regionProps, focusProps, stateProps),
295
- className: classNames2.item,
288
+ ...(0, import_utils2.mergeProps)(regionProps, focusProps, stateProps),
289
+ className: expanded || defaultExpanded ? classNames2.item : (0, import_system3.cn)(classNames2.item, "hidden"),
296
290
  children: item.props.children
297
291
  }
298
- ) : null
292
+ )
299
293
  ] });
300
294
  };
301
295
 
@@ -305,26 +299,25 @@ var Accordion = ({ children, ...props }) => {
305
299
  const ownProps = {
306
300
  ...props,
307
301
  // we have to do this because JSX childs are not supported
308
- children: import_react4.Children.toArray(children).map((child) => {
309
- if (!(0, import_react4.isValidElement)(child)) {
310
- return child;
311
- }
312
- return (0, import_react4.cloneElement)(child, {
313
- hasChildItems: false,
314
- ...child.props
315
- });
316
- })
302
+ children: []
317
303
  };
304
+ import_react4.Children.forEach(children, (child) => {
305
+ var _a;
306
+ if ((0, import_react4.isValidElement)(child) && typeof ((_a = child.props) == null ? void 0 : _a.children) !== "string") {
307
+ const clone = (0, import_react4.cloneElement)(child, {
308
+ hasChildItems: false
309
+ });
310
+ ownProps.children.push(clone);
311
+ return;
312
+ }
313
+ ownProps.children.push(child);
314
+ });
318
315
  const ref = (0, import_react4.useRef)(null);
319
316
  const state = (0, import_tree.useTreeState)({
320
317
  selectionMode: "single",
321
318
  ...ownProps
322
319
  });
323
- const { accordionProps } = (0, import_accordion.useAccordion)(
324
- { ...ownProps, children },
325
- state,
326
- ref
327
- );
320
+ const { accordionProps } = (0, import_accordion.useAccordion)({ ...ownProps }, state, ref);
328
321
  delete accordionProps.onKeyDownCapture;
329
322
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { ...accordionProps, ref, children: [...state.collection].map((item) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
330
323
  AccordionItem,
@@ -403,27 +396,24 @@ var Aspect = ({
403
396
  };
404
397
 
405
398
  // src/Autocomplete/Autocomplete.tsx
406
- var import_react16 = require("react");
407
- var import_autocomplete = require("@react-aria/autocomplete");
408
- var import_i18n = require("@react-aria/i18n");
409
- var import_collections2 = require("@react-stately/collections");
410
- var import_combobox = require("@react-stately/combobox");
399
+ var import_react14 = require("react");
400
+ var import_react15 = __toESM(require("react"));
401
+ var import_react_aria_components11 = require("react-aria-components");
411
402
 
412
403
  // src/FieldBase/FieldBase.tsx
404
+ var import_react7 = require("react");
413
405
  var import_system8 = require("@marigold/system");
414
406
 
415
407
  // src/HelpText/HelpText.tsx
408
+ var import_react_aria_components = require("react-aria-components");
416
409
  var import_system6 = require("@marigold/system");
417
410
  var import_jsx_runtime7 = require("react/jsx-runtime");
418
411
  var HelpText = ({
419
412
  variant,
420
413
  size,
421
- disabled,
422
414
  description,
423
- descriptionProps,
424
415
  error,
425
416
  errorMessage,
426
- errorMessageProps,
427
417
  ...props
428
418
  }) => {
429
419
  const hasErrorMessage = errorMessage && error;
@@ -432,30 +422,36 @@ var HelpText = ({
432
422
  variant,
433
423
  size
434
424
  });
435
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
436
- "div",
437
- {
438
- ...props,
439
- ...hasErrorMessage ? errorMessageProps : descriptionProps,
440
- className: (0, import_system6.cn)("flex items-center gap-1", classNames2.container),
441
- children: hasErrorMessage ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
442
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
443
- import_system6.SVG,
444
- {
445
- className: (0, import_system6.cn)("h-4 w-4", classNames2.icon),
446
- viewBox: "0 0 24 24",
447
- role: "presentation",
448
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M2.25 20.3097H21.75L12 3.46875L2.25 20.3097ZM12.8864 17.2606H11.1136V15.4879H12.8864V17.2606ZM12.8864 13.7151H11.1136V10.1697H12.8864V13.7151Z" })
449
- }
450
- ),
451
- errorMessage
452
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, { children: description })
453
- }
454
- );
425
+ if (!description && !errorMessage) {
426
+ return null;
427
+ }
428
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: (0, import_system6.cn)(classNames2.container), children: [
429
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
430
+ import_react_aria_components.FieldError,
431
+ {
432
+ ...props,
433
+ className: "grid grid-flow-col items-center justify-start gap-1",
434
+ children: [
435
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
436
+ "svg",
437
+ {
438
+ className: (0, import_system6.cn)("h-4 w-4", classNames2.icon),
439
+ viewBox: "0 0 24 24",
440
+ role: "presentation",
441
+ fill: "currentColor",
442
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M2.25 20.3097H21.75L12 3.46875L2.25 20.3097ZM12.8864 17.2606H11.1136V15.4879H12.8864V17.2606ZM12.8864 13.7151H11.1136V10.1697H12.8864V13.7151Z" })
443
+ }
444
+ ),
445
+ errorMessage
446
+ ]
447
+ }
448
+ ),
449
+ !hasErrorMessage && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_aria_components.Text, { slot: "description", children: description })
450
+ ] });
455
451
  };
456
452
 
457
453
  // src/Label/Label.tsx
458
- var import_react_aria_components = require("react-aria-components");
454
+ var import_react_aria_components2 = require("react-aria-components");
459
455
  var import_system7 = require("@marigold/system");
460
456
 
461
457
  // src/FieldBase/FieldGroup.tsx
@@ -473,7 +469,7 @@ var _Label = ({ size, variant, children, ...props }) => {
473
469
  const classNames2 = (0, import_system7.useClassNames)({ component: "Label", size, variant });
474
470
  const { labelWidth } = useFieldGroupContext();
475
471
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
476
- import_react_aria_components.Label,
472
+ import_react_aria_components2.Label,
477
473
  {
478
474
  ...props,
479
475
  className: (0, import_system7.cn)(classNames2.container, "flex w-[var(--labelWidth)]"),
@@ -497,67 +493,66 @@ var _Label = ({ size, variant, children, ...props }) => {
497
493
 
498
494
  // src/FieldBase/FieldBase.tsx
499
495
  var import_jsx_runtime10 = require("react/jsx-runtime");
500
- var FieldBase = ({
501
- children,
502
- variant,
503
- size,
504
- width = "full",
505
- disabled,
506
- label,
507
- labelProps,
508
- description,
509
- descriptionProps,
510
- error,
511
- errorMessage,
512
- errorMessageProps,
513
- stateProps,
514
- ...props
515
- }) => {
516
- const hasHelpText = !!description || errorMessage && error;
496
+ var fixedForwardRef = import_react7.forwardRef;
497
+ var _FieldBase = (props, ref) => {
498
+ const {
499
+ as: Component = "div",
500
+ children,
501
+ label,
502
+ size,
503
+ variant,
504
+ width = "full",
505
+ description,
506
+ errorMessage,
507
+ className,
508
+ stateProps,
509
+ ...rest
510
+ } = props;
517
511
  const classNames2 = (0, import_system8.useClassNames)({
518
512
  component: "Field",
519
513
  variant,
520
514
  size
521
515
  });
522
516
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
523
- "div",
517
+ Component,
524
518
  {
525
- ...props,
526
- ...stateProps,
527
- className: (0, import_system8.cn)("group/field", import_system8.width[width], classNames2),
519
+ ref,
520
+ className: (0, import_system8.cn)("group/field", import_system8.width[width], classNames2, className),
521
+ "data-required": props.isRequired ? true : void 0,
522
+ "data-error": props.isInvalid ? true : void 0,
523
+ ...rest,
528
524
  children: [
529
- label ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(_Label, { variant, size, ...labelProps, children: label }) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { "aria-hidden": "true" }),
525
+ label ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(_Label, { variant, size, children: label }) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { "aria-hidden": "true" }),
530
526
  children,
531
- hasHelpText && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
527
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
532
528
  HelpText,
533
529
  {
534
530
  variant,
535
531
  size,
536
- disabled,
537
532
  description,
538
- descriptionProps,
539
- error,
540
533
  errorMessage,
541
- errorMessageProps
534
+ error: props.isInvalid
542
535
  }
543
536
  )
544
537
  ]
545
538
  }
546
539
  );
547
540
  };
541
+ var FieldBase = fixedForwardRef(_FieldBase);
548
542
 
549
543
  // src/Input/Input.tsx
550
- var import_react7 = require("react");
544
+ var import_react8 = require("react");
545
+ var import_react_aria_components3 = require("react-aria-components");
551
546
  var import_system9 = require("@marigold/system");
552
547
  var import_jsx_runtime11 = require("react/jsx-runtime");
553
- var Input = (0, import_react7.forwardRef)(
554
- ({ type = "text", icon, action, variant, size, ...props }, ref) => {
548
+ var _Input = (0, import_react8.forwardRef)(
549
+ ({ type, icon, action, variant, size, className, ...props }, ref) => {
555
550
  const classNames2 = (0, import_system9.useClassNames)({
556
551
  component: "Input",
557
552
  variant,
558
553
  size
559
554
  });
560
- const inputIcon = icon ? (0, import_react7.cloneElement)(icon, {
555
+ const inputIcon = icon ? (0, import_react8.cloneElement)(icon, {
561
556
  className: (0, import_system9.cn)(
562
557
  "pointer-events-none absolute",
563
558
  classNames2.icon,
@@ -565,7 +560,7 @@ var Input = (0, import_react7.forwardRef)(
565
560
  ),
566
561
  ...icon.props
567
562
  }) : null;
568
- const inputAction = action && !props.readOnly ? (0, import_react7.cloneElement)(action, {
563
+ const inputAction = action && !props.readOnly ? (0, import_react8.cloneElement)(action, {
569
564
  className: (0, import_system9.cn)(
570
565
  "absolute",
571
566
  classNames2.action,
@@ -582,7 +577,7 @@ var Input = (0, import_react7.forwardRef)(
582
577
  children: [
583
578
  inputIcon,
584
579
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
585
- "input",
580
+ import_react_aria_components3.Input,
586
581
  {
587
582
  ...props,
588
583
  className: (0, import_system9.cn)(
@@ -590,7 +585,8 @@ var Input = (0, import_react7.forwardRef)(
590
585
  "disabled:cursor-not-allowed",
591
586
  "[&[type=file]]:border-none [&[type=file]]:p-0",
592
587
  "[&[type=color]]:ml-0 [&[type=color]]:border-none [&[type=color]]:bg-transparent [&[type=color]]:p-0",
593
- classNames2.input
588
+ classNames2.input,
589
+ className
594
590
  ),
595
591
  ref,
596
592
  type
@@ -603,96 +599,68 @@ var Input = (0, import_react7.forwardRef)(
603
599
  }
604
600
  );
605
601
 
606
- // src/ListBox/_ListBox.tsx
602
+ // src/ListBox/ListBox.tsx
607
603
  var import_react10 = require("react");
608
- var import_listbox3 = require("@react-aria/listbox");
609
- var import_utils6 = require("@react-aria/utils");
604
+ var import_react_aria_components6 = require("react-aria-components");
610
605
  var import_system11 = require("@marigold/system");
611
606
 
612
607
  // src/ListBox/Context.ts
613
- var import_react8 = require("react");
614
- var ListBoxContext = (0, import_react8.createContext)({});
615
- var useListBoxContext = () => (0, import_react8.useContext)(ListBoxContext);
616
-
617
- // src/ListBox/_ListBoxOption.tsx
618
608
  var import_react9 = require("react");
619
- var import_listbox = require("@react-aria/listbox");
620
- var import_utils5 = require("@react-aria/utils");
621
- var import_system10 = require("@marigold/system");
609
+ var ListBoxContext = (0, import_react9.createContext)({});
610
+ var useListBoxContext = () => (0, import_react9.useContext)(ListBoxContext);
611
+
612
+ // src/ListBox/ListBoxOption.tsx
613
+ var import_react_aria_components4 = require("react-aria-components");
622
614
  var import_jsx_runtime12 = require("react/jsx-runtime");
623
- var ListBoxOption = ({ item, state }) => {
624
- const ref = (0, import_react9.useRef)(null);
625
- const { optionProps, isSelected, isDisabled, isFocused } = (0, import_listbox.useOption)(
626
- {
627
- key: item.key
628
- },
629
- state,
630
- ref
631
- );
632
- const { onPointerUp, ...props } = optionProps;
615
+ var _ListBoxItem = (props) => {
633
616
  const { classNames: classNames2 } = useListBoxContext();
634
- const stateProps = (0, import_system10.useStateProps)({
635
- selected: isSelected,
636
- disabled: isDisabled,
637
- focusVisible: isFocused
638
- });
639
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
640
- "li",
641
- {
642
- ref,
643
- className: classNames2.option,
644
- ...(0, import_utils5.mergeProps)(props, { onPointerDown: onPointerUp }, { ...stateProps }),
645
- children: item.props.children
646
- }
647
- );
617
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react_aria_components4.ListBoxItem, { ...props, className: classNames2.option });
648
618
  };
649
619
 
650
- // src/ListBox/_ListBoxSection.tsx
651
- var import_listbox2 = require("@react-aria/listbox");
620
+ // src/ListBox/ListBoxSection.tsx
621
+ var import_react_aria_components5 = require("react-aria-components");
622
+ var import_system10 = require("@marigold/system");
652
623
  var import_jsx_runtime13 = require("react/jsx-runtime");
653
- var ListBoxSection = ({ section, state }) => {
624
+ var _Section = (props) => {
654
625
  const { classNames: classNames2 } = useListBoxContext();
655
- const { itemProps, headingProps, groupProps } = (0, import_listbox2.useListBoxSection)({
656
- heading: section.rendered,
657
- "aria-label": section["aria-label"]
658
- });
659
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("li", { className: classNames2.section, ...itemProps, children: [
660
- section.rendered && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: classNames2.sectionTitle, ...headingProps, children: section.rendered }),
661
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("ul", { className: classNames2.list, ...groupProps, children: [...section.props.children].map((node) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ListBoxOption, { item: node, state }, node.key)) })
662
- ] });
626
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
627
+ import_react_aria_components5.Section,
628
+ {
629
+ ...props,
630
+ className: (0, import_system10.cn)(classNames2.section, classNames2.sectionTitle)
631
+ }
632
+ );
663
633
  };
664
634
 
665
- // src/ListBox/_ListBox.tsx
635
+ // src/ListBox/ListBox.tsx
666
636
  var import_jsx_runtime14 = require("react/jsx-runtime");
667
- var ListBox = (0, import_react10.forwardRef)(
668
- ({ state, variant, size, ...props }, ref) => {
669
- const innerRef = (0, import_utils6.useObjectRef)(ref);
670
- const { listBoxProps } = (0, import_listbox3.useListBox)(props, state, innerRef);
637
+ var _ListBox = (0, import_react10.forwardRef)(
638
+ ({ variant, size, ...props }, ref) => {
671
639
  const classNames2 = (0, import_system11.useClassNames)({ component: "ListBox", variant, size });
672
640
  return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ListBoxContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: classNames2.container, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
673
- "ul",
641
+ import_react_aria_components6.ListBox,
674
642
  {
643
+ ...props,
675
644
  className: (0, import_system11.cn)(
676
645
  "overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh]",
677
646
  classNames2.list
678
647
  ),
679
- ref: innerRef,
680
- ...listBoxProps,
681
- children: [...state.collection].map(
682
- (item) => item.type === "section" ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ListBoxSection, { section: item, state }, item.key) : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ListBoxOption, { item, state }, item.key)
683
- )
648
+ ref,
649
+ children: props.children
684
650
  }
685
651
  ) }) });
686
652
  }
687
653
  );
654
+ _ListBox.Item = _ListBoxItem;
655
+ _ListBox.Section = _Section;
688
656
 
689
- // src/Overlay/Modal.tsx
657
+ // src/Overlay/Popover.tsx
690
658
  var import_react11 = require("react");
691
- var import_react_aria_components3 = require("react-aria-components");
659
+ var import_react_aria_components8 = require("react-aria-components");
692
660
  var import_system13 = require("@marigold/system");
693
661
 
694
662
  // src/Overlay/Underlay.tsx
695
- var import_react_aria_components2 = require("react-aria-components");
663
+ var import_react_aria_components7 = require("react-aria-components");
696
664
  var import_system12 = require("@marigold/system");
697
665
  var import_jsx_runtime15 = require("react/jsx-runtime");
698
666
  var Underlay = ({
@@ -711,7 +679,7 @@ var Underlay = ({
711
679
  ...rest
712
680
  };
713
681
  return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
714
- import_react_aria_components2.ModalOverlay,
682
+ import_react_aria_components7.ModalOverlay,
715
683
  {
716
684
  className: ({ isEntering, isExiting }) => (0, import_system12.cn)(
717
685
  "fixed inset-0 z-10 flex min-h-full items-center justify-center overflow-y-auto backdrop-blur ",
@@ -720,227 +688,108 @@ var Underlay = ({
720
688
  classNames2
721
689
  ),
722
690
  ...props,
691
+ "data-testid": "underlay-id",
723
692
  children: props.children
724
693
  }
725
694
  );
726
695
  };
727
696
 
728
- // src/Overlay/Modal.tsx
697
+ // src/Overlay/Popover.tsx
729
698
  var import_jsx_runtime16 = require("react/jsx-runtime");
730
- var _Modal = (0, import_react11.forwardRef)(({ open, dismissable, keyboardDismissable, ...rest }, ref) => {
731
- const theme = (0, import_system13.useTheme)();
732
- const props = {
733
- isOpen: open,
734
- isDismissable: dismissable,
735
- isKeyboardDismissDisabled: keyboardDismissable,
736
- ...rest
737
- };
738
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
739
- Underlay,
740
- {
741
- dismissable,
742
- keyboardDismissable,
743
- open,
744
- variant: "modal",
745
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_aria_components3.Modal, { ref, "data-theme": theme.name, ...props, children: props.children })
746
- }
747
- );
748
- });
749
-
750
- // src/Overlay/Overlay.tsx
751
- var import_react12 = require("react");
752
- var import_overlays = require("@react-aria/overlays");
753
- var import_system14 = require("@marigold/system");
754
- var import_jsx_runtime17 = require("react/jsx-runtime");
755
- var Overlay = ({ children, container, open }) => {
756
- const nodeRef = (0, import_react12.useRef)(null);
757
- const theme = (0, import_system14.useTheme)();
758
- let mountOverlay = open;
759
- if (!mountOverlay) {
760
- return null;
761
- }
762
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_overlays.Overlay, { portalContainer: container, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
763
- "div",
764
- {
765
- ref: nodeRef,
766
- "data-testid": "overlay",
767
- "data-theme": theme.name,
768
- className: "opacity-100",
769
- children
770
- }
771
- ) });
772
- };
773
-
774
- // src/Overlay/_Popover.tsx
775
- var import_react13 = require("react");
776
- var import_focus2 = require("@react-aria/focus");
777
- var import_overlays2 = require("@react-aria/overlays");
778
- var import_system15 = require("@marigold/system");
779
- var import_jsx_runtime18 = require("react/jsx-runtime");
780
- var Popover = (0, import_react13.forwardRef)(
781
- (props, ref) => {
782
- const fallbackRef = (0, import_react13.useRef)(null);
783
- const popoverRef = ref || fallbackRef;
784
- let { children, state, ...otherProps } = props;
785
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Overlay, { open: state.isOpen, ...otherProps, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(PopoverWrapper, { ref: popoverRef, ...props, children }) });
786
- }
787
- );
788
- var PopoverWrapper = (0, import_react13.forwardRef)(
789
- ({
790
- children,
791
- isNonModal,
792
- state,
793
- keyboardDismissDisabled,
794
- ...props
795
- }, ref) => {
796
- const { popoverProps, underlayProps, placement } = (0, import_overlays2.usePopover)(
797
- {
798
- ...props,
799
- isNonModal,
800
- isKeyboardDismissDisabled: keyboardDismissDisabled,
801
- popoverRef: ref,
802
- placement: "bottom left"
803
- },
804
- state
805
- );
806
- const classNames2 = (0, import_system15.useClassNames)({
699
+ var _Popover = (0, import_react11.forwardRef)(
700
+ ({ keyboardDismissDisabled, placement, open, children, ...rest }, ref) => {
701
+ const props = {
702
+ isKeyboardDismissDisabled: keyboardDismissDisabled,
703
+ isOpen: open,
704
+ placement,
705
+ ...rest
706
+ };
707
+ const classNames2 = (0, import_system13.useClassNames)({
807
708
  component: "Popover",
808
- variant: placement
709
+ variant: placement,
710
+ // Make Popover as wide as trigger element
711
+ className: "w-[--trigger-width]"
809
712
  });
810
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_focus2.FocusScope, { restoreFocus: true, children: [
811
- !isNonModal && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Underlay, { ...underlayProps }),
812
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
813
- "div",
713
+ const isSmallScreen = (0, import_system13.useSmallScreen)();
714
+ const theme = (0, import_system13.useTheme)();
715
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_jsx_runtime16.Fragment, { children: isSmallScreen ? /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
716
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Underlay, { open, variant: "modal" }),
717
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
718
+ import_react_aria_components8.Popover,
814
719
  {
815
- ...popoverProps,
816
- className: classNames2,
817
- style: {
818
- ...popoverProps.style,
819
- minWidth: props.triggerRef.current ? props.triggerRef.current.offsetWidth : void 0
820
- },
821
720
  ref,
822
- role: "presentation",
823
- children: [
824
- !isNonModal && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_overlays2.DismissButton, { onDismiss: state.close }),
825
- children,
826
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_overlays2.DismissButton, { onDismiss: state.close })
827
- ]
721
+ ...props,
722
+ className: (0, import_system13.cn)(
723
+ "!left-0 bottom-0 !mt-auto flex !max-h-fit w-full flex-col"
724
+ ),
725
+ "data-theme": theme.name,
726
+ children
828
727
  }
829
728
  )
830
- ] });
729
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
730
+ import_react_aria_components8.Popover,
731
+ {
732
+ ref,
733
+ ...props,
734
+ className: classNames2,
735
+ offset: 0,
736
+ "data-theme": theme.name,
737
+ children
738
+ }
739
+ ) });
831
740
  }
832
741
  );
833
742
 
834
- // src/Overlay/Tray.tsx
835
- var import_react14 = require("react");
836
- var import_focus3 = require("@react-aria/focus");
837
- var import_overlays3 = require("@react-aria/overlays");
838
- var import_utils7 = require("@react-aria/utils");
839
-
840
- // src/Overlay/_Underlay.tsx
841
- var import_system16 = require("@marigold/system");
842
- var import_jsx_runtime19 = require("react/jsx-runtime");
843
- var Underlay2 = ({ size, variant, ...props }) => {
844
- const classNames2 = (0, import_system16.useClassNames)({ component: "Underlay", size, variant });
845
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: (0, import_system16.cn)("fixed inset-0 z-40", classNames2), ...props });
846
- };
743
+ // src/Autocomplete/ClearButton.tsx
744
+ var import_react13 = __toESM(require("react"));
745
+ var import_react_aria_components10 = require("react-aria-components");
746
+ var import_system15 = require("@marigold/system");
847
747
 
848
- // src/Overlay/Tray.tsx
849
- var import_jsx_runtime20 = require("react/jsx-runtime");
850
- var Tray = (0, import_react14.forwardRef)(
851
- ({ state, children, ...props }, ref) => {
852
- const trayRef = (0, import_utils7.useObjectRef)(ref);
853
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Overlay, { open: state.isOpen, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(TrayWrapper, { state, ...props, ref: trayRef, children }) });
854
- }
855
- );
856
- var TrayWrapper = (0, import_react14.forwardRef)(
857
- ({ children, state, ...props }, ref) => {
858
- let { modalProps, underlayProps } = (0, import_overlays3.useModalOverlay)(
748
+ // src/Button/Button.tsx
749
+ var import_react12 = require("react");
750
+ var import_react_aria_components9 = require("react-aria-components");
751
+ var import_system14 = require("@marigold/system");
752
+ var import_jsx_runtime17 = require("react/jsx-runtime");
753
+ var _Button = (0, import_react12.forwardRef)(
754
+ ({ children, variant, size, className, disabled, fullWidth, ...props }, ref) => {
755
+ const classNames2 = (0, import_system14.useClassNames)({
756
+ component: "Button",
757
+ variant,
758
+ size,
759
+ className
760
+ });
761
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
762
+ import_react_aria_components9.Button,
859
763
  {
860
764
  ...props,
861
- isDismissable: true
862
- },
863
- state,
864
- ref
865
- );
866
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_focus3.FocusScope, { contain: true, restoreFocus: true, autoFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Underlay2, { ...underlayProps, variant: "modal", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
867
- "div",
868
- {
869
- ...modalProps,
870
765
  ref,
871
- className: "absolute bottom-0 w-full",
872
- "data-testid": "tray",
873
- children: [
874
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_overlays3.DismissButton, { onDismiss: state.close }),
875
- children,
876
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_overlays3.DismissButton, { onDismiss: state.close })
877
- ]
766
+ className: (0, import_system14.cn)(
767
+ "inline-flex items-center justify-center gap-[0.5ch]",
768
+ classNames2,
769
+ fullWidth ? "w-full" : void 0
770
+ ),
771
+ isDisabled: disabled,
772
+ children
878
773
  }
879
- ) }) });
774
+ );
880
775
  }
881
776
  );
882
777
 
883
778
  // src/Autocomplete/ClearButton.tsx
884
- var import_react15 = require("react");
885
- var import_button2 = require("@react-aria/button");
886
- var import_focus4 = require("@react-aria/focus");
887
- var import_interactions = require("@react-aria/interactions");
888
- var import_utils8 = require("@react-aria/utils");
889
- var import_system17 = require("@marigold/system");
890
- var import_jsx_runtime21 = require("react/jsx-runtime");
891
- var ClearButton = ({
892
- preventFocus,
893
- disabled,
894
- onClick,
895
- onPress,
896
- onPressStart,
897
- onPressEnd,
898
- onPressChange,
899
- onPressUp,
900
- excludeFromTabOrder,
901
- preventFocusOnPress,
902
- className,
903
- ...props
904
- }) => {
905
- const buttonRef = (0, import_react15.useRef)(null);
906
- const { hoverProps, isHovered } = (0, import_interactions.useHover)({ isDisabled: disabled });
907
- const { isFocusVisible, focusProps } = (0, import_focus4.useFocusRing)({
908
- autoFocus: props.autoFocus
909
- });
910
- const { buttonProps, isPressed } = (0, import_button2.useButton)(
911
- {
912
- ...props,
913
- onClick,
914
- onPress,
915
- onPressStart,
916
- onPressEnd,
917
- onPressChange,
918
- onPressUp,
919
- excludeFromTabOrder,
920
- preventFocusOnPress,
921
- isDisabled: disabled
922
- },
923
- buttonRef
924
- );
925
- if (preventFocus) {
926
- delete buttonProps.tabIndex;
927
- }
928
- const stateProps = (0, import_system17.useStateProps)({
929
- active: isPressed,
930
- focusVisible: isFocusVisible,
931
- hover: isHovered
932
- });
933
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
934
- "button",
779
+ var import_jsx_runtime18 = require("react/jsx-runtime");
780
+ var AutocompleteClearButton = ({ className }) => {
781
+ let state = import_react13.default.useContext(import_react_aria_components10.ComboBoxStateContext);
782
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
783
+ _Button,
935
784
  {
936
- ...(0, import_utils8.mergeProps)(buttonProps, focusProps, hoverProps, props),
937
- ...stateProps,
938
- ref: buttonRef,
939
- className: (0, import_system17.cn)(
785
+ "aria-label": "Clear",
786
+ onPress: () => state == null ? void 0 : state.setInputValue(""),
787
+ variant: "icon",
788
+ className: (0, import_system15.cn)(
940
789
  "cursor-pointer appearance-none border-none p-0 pr-1",
941
790
  className
942
791
  ),
943
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
792
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
944
793
  "svg",
945
794
  {
946
795
  xmlns: "http://www.w3.org/2000/svg",
@@ -948,7 +797,7 @@ var ClearButton = ({
948
797
  fill: "currentColor",
949
798
  width: 20,
950
799
  height: 20,
951
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z" })
800
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("path", { d: "M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z" })
952
801
  }
953
802
  )
954
803
  }
@@ -956,248 +805,125 @@ var ClearButton = ({
956
805
  };
957
806
 
958
807
  // src/Autocomplete/Autocomplete.tsx
959
- var import_jsx_runtime22 = require("react/jsx-runtime");
960
- var SearchIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
961
- "svg",
962
- {
963
- xmlns: "http://www.w3.org/2000/svg",
964
- viewBox: "0 0 24 24",
965
- fill: "currentColor",
966
- width: 24,
967
- height: 24,
968
- ...props,
969
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M16.1865 14.5142H15.3057L14.9936 14.2131C16.0862 12.9421 16.744 11.292 16.744 9.497C16.744 5.49443 13.4996 2.25 9.497 2.25C5.49443 2.25 2.25 5.49443 2.25 9.497C2.25 13.4996 5.49443 16.744 9.497 16.744C11.292 16.744 12.9421 16.0862 14.2131 14.9936L14.5142 15.3057V16.1865L20.0888 21.75L21.75 20.0888L16.1865 14.5142ZM9.49701 14.5142C6.72085 14.5142 4.47986 12.2732 4.47986 9.49701C4.47986 6.72085 6.72085 4.47986 9.49701 4.47986C12.2732 4.47986 14.5142 6.72085 14.5142 9.49701C14.5142 12.2732 12.2732 14.5142 9.49701 14.5142Z" })
970
- }
971
- );
972
- var Autocomplete = ({
973
- disabled,
974
- required,
975
- readOnly,
976
- error,
977
- onChange,
978
- value,
979
- defaultValue,
980
- variant,
981
- size,
982
- width,
983
- ...rest
984
- }) => {
985
- const { contains } = (0, import_i18n.useFilter)({ sensitivity: "base" });
986
- const props = {
987
- ...rest,
988
- onInputChange: onChange,
989
- inputValue: value,
990
- defaultInputValue: defaultValue,
991
- isDisabled: disabled,
992
- isRequired: required,
993
- isReadOnly: readOnly,
994
- validationState: error ? "invalid" : "valid"
995
- };
996
- const state = (0, import_combobox.useComboBoxState)({
997
- ...props,
998
- defaultFilter: contains,
999
- allowsCustomValue: true,
1000
- onSelectionChange: (key) => {
1001
- var _a;
1002
- return key !== null && ((_a = props.onSubmit) == null ? void 0 : _a.call(props, key, null));
1003
- },
1004
- selectedKey: void 0,
1005
- defaultSelectedKey: void 0
1006
- });
1007
- const inputRef = (0, import_react16.useRef)(null);
1008
- const listBoxRef = (0, import_react16.useRef)(null);
1009
- const popoverRef = (0, import_react16.useRef)(null);
1010
- const { inputProps, listBoxProps, labelProps, clearButtonProps } = (0, import_autocomplete.useSearchAutocomplete)(
808
+ var import_jsx_runtime19 = require("react/jsx-runtime");
809
+ var SearchInput = ({ onSubmit, ref }) => {
810
+ const state = import_react15.default.useContext(import_react_aria_components11.ComboBoxStateContext);
811
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
812
+ _Input,
1011
813
  {
1012
- ...props,
1013
- onSubmit: (value2, key) => {
1014
- var _a;
1015
- return (_a = props.onSubmit) == null ? void 0 : _a.call(props, key, value2);
1016
- },
1017
- popoverRef,
1018
- listBoxRef,
1019
- inputRef
1020
- },
1021
- state
1022
- );
1023
- const { isDisabled, ...restClearButtonProps } = clearButtonProps;
1024
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
1025
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1026
- FieldBase,
1027
- {
1028
- label: props.label,
1029
- labelProps,
1030
- description: props.description,
1031
- error,
1032
- errorMessage: props.errorMessage,
1033
- disabled,
1034
- width,
1035
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1036
- Input,
1037
- {
1038
- ...inputProps,
1039
- ref: inputRef,
1040
- icon: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(SearchIcon, {}),
1041
- action: state.inputValue !== "" ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1042
- ClearButton,
1043
- {
1044
- preventFocus: true,
1045
- disabled: isDisabled,
1046
- ...restClearButtonProps
1047
- }
1048
- ) : null
814
+ ref,
815
+ icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(SearchIcon, {}),
816
+ action: (state == null ? void 0 : state.inputValue) !== "" ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(AutocompleteClearButton, {}) : void 0,
817
+ onKeyDown: (e) => {
818
+ if (e.key === "Enter" || e.key === "Escape") {
819
+ e.preventDefault();
820
+ }
821
+ if (e.key === "Enter") {
822
+ if (state.selectionManager.focusedKey === null) {
823
+ onSubmit == null ? void 0 : onSubmit(null, state.inputValue);
1049
824
  }
1050
- )
1051
- }
1052
- ),
1053
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1054
- Popover,
1055
- {
1056
- state,
1057
- ref: popoverRef,
1058
- triggerRef: inputRef,
1059
- scrollRef: listBoxRef,
1060
- isNonModal: true,
1061
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ListBox, { ref: listBoxRef, state, ...listBoxProps })
825
+ }
1062
826
  }
1063
- )
1064
- ] });
827
+ }
828
+ );
1065
829
  };
1066
- Autocomplete.Item = import_collections2.Item;
1067
-
1068
- // src/ComboBox/ComboBox.tsx
1069
- var import_react18 = __toESM(require("react"));
1070
- var import_combobox2 = require("@react-aria/combobox");
1071
- var import_i18n2 = require("@react-aria/i18n");
1072
- var import_collections3 = require("@react-stately/collections");
1073
- var import_combobox3 = require("@react-stately/combobox");
1074
-
1075
- // src/Button/Button.tsx
1076
- var import_react17 = require("react");
1077
- var import_react_aria_components4 = require("react-aria-components");
1078
- var import_system18 = require("@marigold/system");
1079
- var import_jsx_runtime23 = require("react/jsx-runtime");
1080
- var _Button = (0, import_react17.forwardRef)(
1081
- ({ children, variant, size, className, disabled, fullWidth, ...props }, ref) => {
1082
- const classNames2 = (0, import_system18.useClassNames)({
1083
- component: "Button",
1084
- variant,
1085
- size,
1086
- className
1087
- });
1088
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1089
- import_react_aria_components4.Button,
1090
- {
1091
- ...props,
1092
- ref,
1093
- className: (0, import_system18.cn)(
1094
- "inline-flex items-center justify-center gap-[0.5ch]",
1095
- classNames2,
1096
- fullWidth ? "w-full" : void 0
1097
- ),
1098
- isDisabled: disabled,
1099
- children
1100
- }
1101
- );
830
+ var SearchIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
831
+ "svg",
832
+ {
833
+ xmlns: "http://www.w3.org/2000/svg",
834
+ viewBox: "0 0 24 24",
835
+ fill: "currentColor",
836
+ width: 24,
837
+ height: 24,
838
+ ...props,
839
+ children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("path", { d: "M16.1865 14.5142H15.3057L14.9936 14.2131C16.0862 12.9421 16.744 11.292 16.744 9.497C16.744 5.49443 13.4996 2.25 9.497 2.25C5.49443 2.25 2.25 5.49443 2.25 9.497C2.25 13.4996 5.49443 16.744 9.497 16.744C11.292 16.744 12.9421 16.0862 14.2131 14.9936L14.5142 15.3057V16.1865L20.0888 21.75L21.75 20.0888L16.1865 14.5142ZM9.49701 14.5142C6.72085 14.5142 4.47986 12.2732 4.47986 9.49701C4.47986 6.72085 6.72085 4.47986 9.49701 4.47986C12.2732 4.47986 14.5142 6.72085 14.5142 9.49701C14.5142 12.2732 12.2732 14.5142 9.49701 14.5142Z" })
840
+ }
841
+ );
842
+ var _Autocomplete = (0, import_react14.forwardRef)(
843
+ ({
844
+ children,
845
+ defaultValue,
846
+ value,
847
+ onChange,
848
+ onSubmit,
849
+ disabled,
850
+ error,
851
+ readOnly,
852
+ required,
853
+ ...rest
854
+ }, ref) => {
855
+ const props = {
856
+ onSelectionChange: (key) => key !== null && (onSubmit == null ? void 0 : onSubmit(key, null)),
857
+ defaultInputValue: defaultValue,
858
+ inputValue: value,
859
+ onInputChange: onChange,
860
+ allowsCustomValue: true,
861
+ isDisabled: disabled,
862
+ isInvalid: error,
863
+ isReadOnly: readOnly,
864
+ isRequired: required,
865
+ ...rest
866
+ };
867
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_jsx_runtime19.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(FieldBase, { as: import_react_aria_components11.ComboBox, ...props, children: [
868
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(SearchInput, { onSubmit, ref }),
869
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(_ListBox, { children }) })
870
+ ] }) });
1102
871
  }
1103
872
  );
873
+ _Autocomplete.Item = _ListBox.Item;
1104
874
 
1105
875
  // src/ComboBox/ComboBox.tsx
1106
- var import_jsx_runtime24 = require("react/jsx-runtime");
1107
- var ComboBox = ({
1108
- error,
1109
- width,
1110
- disabled,
1111
- required,
1112
- readOnly,
1113
- defaultValue,
1114
- value,
1115
- onChange,
1116
- variant,
1117
- size,
1118
- ...rest
1119
- }) => {
1120
- const props = {
1121
- isDisabled: disabled,
1122
- isRequired: required,
1123
- isReadOnly: readOnly,
1124
- defaultInputValue: defaultValue,
1125
- inputValue: value,
1126
- onInputChange: onChange,
876
+ var import_react16 = require("react");
877
+ var import_react_aria_components12 = require("react-aria-components");
878
+ var import_jsx_runtime20 = require("react/jsx-runtime");
879
+ var _ComboBox = (0, import_react16.forwardRef)(
880
+ ({
881
+ variant,
882
+ size,
883
+ required,
884
+ disabled,
885
+ readOnly,
886
+ error,
887
+ defaultValue,
888
+ value,
889
+ onChange,
890
+ children,
1127
891
  ...rest
1128
- };
1129
- const { contains } = (0, import_i18n2.useFilter)({ sensitivity: "base" });
1130
- const state = (0, import_combobox3.useComboBoxState)({ ...props, defaultFilter: contains });
1131
- const buttonRef = import_react18.default.useRef(null);
1132
- const inputRef = import_react18.default.useRef(null);
1133
- const listBoxRef = import_react18.default.useRef(null);
1134
- const popoverRef = import_react18.default.useRef(null);
1135
- const {
1136
- buttonProps: triggerProps,
1137
- inputProps,
1138
- listBoxProps,
1139
- labelProps
1140
- } = (0, import_combobox2.useComboBox)(
1141
- { ...props, inputRef, buttonRef, listBoxRef, popoverRef },
1142
- state
1143
- );
1144
- const errorMessageProps = { "aria-invalid": error };
1145
- const { label, description, errorMessage } = props;
1146
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
1147
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1148
- FieldBase,
1149
- {
1150
- label,
1151
- labelProps,
1152
- description,
1153
- error,
1154
- errorMessage,
1155
- errorMessageProps,
1156
- width,
1157
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1158
- Input,
1159
- {
1160
- ...inputProps,
1161
- ref: inputRef,
1162
- action: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1163
- _Button,
1164
- {
1165
- className: "absolute right-2 h-4 w-4 border-none bg-transparent p-0",
1166
- ref: buttonRef,
1167
- ...triggerProps,
1168
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ChevronDown, { className: "h-4 w-4" })
1169
- }
1170
- )
1171
- }
1172
- )
1173
- }
1174
- ),
1175
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1176
- Popover,
1177
- {
1178
- state,
1179
- ref: popoverRef,
1180
- triggerRef: inputRef,
1181
- scrollRef: listBoxRef,
1182
- isNonModal: true,
1183
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ListBox, { ref: listBoxRef, state, ...listBoxProps })
1184
- }
1185
- )
1186
- ] });
1187
- };
1188
- ComboBox.Item = import_collections3.Item;
892
+ }, ref) => {
893
+ const props = {
894
+ isDisabled: disabled,
895
+ isReadOnly: readOnly,
896
+ isRequired: required,
897
+ isInvalid: error,
898
+ defaultInputValue: defaultValue,
899
+ inputValue: value,
900
+ onInputChange: onChange,
901
+ ...rest
902
+ };
903
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(FieldBase, { as: import_react_aria_components12.ComboBox, ref, ...props, children: [
904
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
905
+ _Input,
906
+ {
907
+ action: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(_Button, { className: "absolute right-2 h-4 w-4 border-none bg-transparent p-0", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ChevronDown, { className: "h-4 w-4" }) })
908
+ }
909
+ ),
910
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(_ListBox, { children }) })
911
+ ] });
912
+ }
913
+ );
914
+ _ComboBox.Item = _ListBox.Item;
1189
915
 
1190
916
  // src/Badge/Badge.tsx
1191
- var import_system19 = require("@marigold/system");
1192
- var import_jsx_runtime25 = require("react/jsx-runtime");
917
+ var import_system16 = require("@marigold/system");
918
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1193
919
  var Badge = ({ variant, size, children, ...props }) => {
1194
- const classNames2 = (0, import_system19.useClassNames)({ component: "Badge", variant, size });
1195
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { ...props, className: classNames2, children });
920
+ const classNames2 = (0, import_system16.useClassNames)({ component: "Badge", variant, size });
921
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { ...props, className: classNames2, children });
1196
922
  };
1197
923
 
1198
924
  // src/Breakout/Breakout.tsx
1199
- var import_system20 = require("@marigold/system");
1200
- var import_jsx_runtime26 = require("react/jsx-runtime");
925
+ var import_system17 = require("@marigold/system");
926
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1201
927
  var Breakout = ({
1202
928
  height,
1203
929
  children,
@@ -1207,17 +933,17 @@ var Breakout = ({
1207
933
  ...props
1208
934
  }) => {
1209
935
  var _a, _b, _c, _d;
1210
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
936
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1211
937
  "div",
1212
938
  {
1213
- className: (0, import_system20.cn)(
939
+ className: (0, import_system17.cn)(
1214
940
  "col-start-[1_!important] col-end-[-1_!important] w-full",
1215
- alignX && ((_b = (_a = import_system20.alignment) == null ? void 0 : _a.horizontal) == null ? void 0 : _b.alignmentX[alignX]),
1216
- alignY && ((_d = (_c = import_system20.alignment) == null ? void 0 : _c.horizontal) == null ? void 0 : _d.alignmentY[alignY]),
941
+ alignX && ((_b = (_a = import_system17.alignment) == null ? void 0 : _a.horizontal) == null ? void 0 : _b.alignmentX[alignX]),
942
+ alignY && ((_d = (_c = import_system17.alignment) == null ? void 0 : _c.horizontal) == null ? void 0 : _d.alignmentY[alignY]),
1217
943
  alignX || alignY ? "flex" : "block",
1218
944
  "h-[--height]"
1219
945
  ),
1220
- style: (0, import_system20.createVar)({ height }),
946
+ style: (0, import_system17.createVar)({ height }),
1221
947
  ...props,
1222
948
  children
1223
949
  }
@@ -1225,16 +951,16 @@ var Breakout = ({
1225
951
  };
1226
952
 
1227
953
  // src/Body/Body.tsx
1228
- var import_system21 = require("@marigold/system");
1229
- var import_jsx_runtime27 = require("react/jsx-runtime");
954
+ var import_system18 = require("@marigold/system");
955
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1230
956
  var Body = ({ children, variant, size, ...props }) => {
1231
- const classNames2 = (0, import_system21.useClassNames)({ component: "Body", variant, size });
1232
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("section", { ...props, className: classNames2, children });
957
+ const classNames2 = (0, import_system18.useClassNames)({ component: "Body", variant, size });
958
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("section", { ...props, className: classNames2, children });
1233
959
  };
1234
960
 
1235
961
  // src/Card/Card.tsx
1236
- var import_system22 = require("@marigold/system");
1237
- var import_jsx_runtime28 = require("react/jsx-runtime");
962
+ var import_system19 = require("@marigold/system");
963
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1238
964
  var Card = ({
1239
965
  children,
1240
966
  variant,
@@ -1249,22 +975,22 @@ var Card = ({
1249
975
  pr,
1250
976
  ...props
1251
977
  }) => {
1252
- const classNames2 = (0, import_system22.useClassNames)({ component: "Card", variant, size });
1253
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
978
+ const classNames2 = (0, import_system19.useClassNames)({ component: "Card", variant, size });
979
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1254
980
  "div",
1255
981
  {
1256
982
  ...props,
1257
- className: (0, import_system22.cn)(
983
+ className: (0, import_system19.cn)(
1258
984
  "flex flex-col",
1259
985
  classNames2,
1260
- import_system22.gapSpace[space],
1261
- import_system22.paddingSpace !== void 0 && import_system22.paddingSpace[p],
1262
- import_system22.paddingSpaceX !== void 0 && import_system22.paddingSpaceX[px],
1263
- import_system22.paddingSpaceY !== void 0 && import_system22.paddingSpaceY[py],
1264
- import_system22.paddingRight !== void 0 && import_system22.paddingRight[pr],
1265
- import_system22.paddingLeft !== void 0 && import_system22.paddingLeft[pl],
1266
- import_system22.paddingBottom !== void 0 && import_system22.paddingBottom[pb],
1267
- import_system22.paddingTop !== void 0 && import_system22.paddingTop[pt]
986
+ import_system19.gapSpace[space],
987
+ import_system19.paddingSpace !== void 0 && import_system19.paddingSpace[p],
988
+ import_system19.paddingSpaceX !== void 0 && import_system19.paddingSpaceX[px],
989
+ import_system19.paddingSpaceY !== void 0 && import_system19.paddingSpaceY[py],
990
+ import_system19.paddingRight !== void 0 && import_system19.paddingRight[pr],
991
+ import_system19.paddingLeft !== void 0 && import_system19.paddingLeft[pl],
992
+ import_system19.paddingBottom !== void 0 && import_system19.paddingBottom[pb],
993
+ import_system19.paddingTop !== void 0 && import_system19.paddingTop[pt]
1268
994
  ),
1269
995
  children
1270
996
  }
@@ -1272,35 +998,35 @@ var Card = ({
1272
998
  };
1273
999
 
1274
1000
  // src/Center/Center.tsx
1275
- var import_system23 = require("@marigold/system");
1276
- var import_jsx_runtime29 = require("react/jsx-runtime");
1001
+ var import_system20 = require("@marigold/system");
1002
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1277
1003
  var Center = ({
1278
1004
  maxWidth = "100%",
1279
1005
  space = 0,
1280
1006
  children,
1281
1007
  ...props
1282
1008
  }) => {
1283
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1009
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1284
1010
  "div",
1285
1011
  {
1286
1012
  ...props,
1287
- className: (0, import_system23.cn)(
1013
+ className: (0, import_system20.cn)(
1288
1014
  "me-[auto] ms-[auto] box-content flex flex-col items-center justify-center",
1289
- import_system23.gapSpace[space],
1015
+ import_system20.gapSpace[space],
1290
1016
  "max-w-[--maxWidth]"
1291
1017
  ),
1292
- style: (0, import_system23.createVar)({ maxWidth }),
1018
+ style: (0, import_system20.createVar)({ maxWidth }),
1293
1019
  children
1294
1020
  }
1295
1021
  );
1296
1022
  };
1297
1023
 
1298
1024
  // src/Checkbox/Checkbox.tsx
1299
- var import_react19 = require("react");
1300
- var import_react_aria_components5 = require("react-aria-components");
1301
- var import_system24 = require("@marigold/system");
1302
- var import_jsx_runtime30 = require("react/jsx-runtime");
1303
- var CheckMark = () => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("svg", { viewBox: "0 0 12 10", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1025
+ var import_react17 = require("react");
1026
+ var import_react_aria_components13 = require("react-aria-components");
1027
+ var import_system21 = require("@marigold/system");
1028
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1029
+ var CheckMark = () => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("svg", { viewBox: "0 0 12 10", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1304
1030
  "path",
1305
1031
  {
1306
1032
  fill: "currentColor",
@@ -1308,7 +1034,7 @@ var CheckMark = () => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("svg", { vie
1308
1034
  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"
1309
1035
  }
1310
1036
  ) });
1311
- var IndeterminateMark = () => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("svg", { width: "12", height: "3", viewBox: "0 0 12 3", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1037
+ var IndeterminateMark = () => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("svg", { width: "12", height: "3", viewBox: "0 0 12 3", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1312
1038
  "path",
1313
1039
  {
1314
1040
  fill: "currentColor",
@@ -1317,11 +1043,11 @@ var IndeterminateMark = () => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("svg
1317
1043
  }
1318
1044
  ) });
1319
1045
  var Icon = ({ className, checked, indeterminate, ...props }) => {
1320
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1046
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1321
1047
  "div",
1322
1048
  {
1323
1049
  "aria-hidden": "true",
1324
- className: (0, import_system24.cn)(
1050
+ className: (0, import_system21.cn)(
1325
1051
  "flex shrink-0 grow-0 basis-4 items-center justify-center",
1326
1052
  "h-4 w-4 p-px",
1327
1053
  "bg-white",
@@ -1329,11 +1055,11 @@ var Icon = ({ className, checked, indeterminate, ...props }) => {
1329
1055
  className
1330
1056
  ),
1331
1057
  ...props,
1332
- children: indeterminate ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(IndeterminateMark, {}) : checked ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CheckMark, {}) : null
1058
+ children: indeterminate ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(IndeterminateMark, {}) : checked ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(CheckMark, {}) : null
1333
1059
  }
1334
1060
  );
1335
1061
  };
1336
- var _Checkbox = (0, import_react19.forwardRef)(
1062
+ var _Checkbox = (0, import_react17.forwardRef)(
1337
1063
  ({
1338
1064
  className,
1339
1065
  indeterminate,
@@ -1358,19 +1084,19 @@ var _Checkbox = (0, import_react19.forwardRef)(
1358
1084
  defaultSelected: defaultChecked,
1359
1085
  ...rest
1360
1086
  };
1361
- const classNames2 = (0, import_system24.useClassNames)({ component: "Checkbox", variant, size });
1362
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1363
- import_react_aria_components5.Checkbox,
1087
+ const classNames2 = (0, import_system21.useClassNames)({ component: "Checkbox", variant, size });
1088
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1089
+ import_react_aria_components13.Checkbox,
1364
1090
  {
1365
1091
  ref,
1366
- className: (0, import_system24.cn)(
1092
+ className: (0, import_system21.cn)(
1367
1093
  "group/checkbox flex items-center gap-[0.5rem]",
1368
1094
  "cursor-pointer data-[disabled]:cursor-not-allowed",
1369
1095
  classNames2.container
1370
1096
  ),
1371
1097
  ...props,
1372
- children: ({ isSelected, isIndeterminate }) => /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
1373
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1098
+ children: ({ isSelected, isIndeterminate }) => /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
1099
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1374
1100
  Icon,
1375
1101
  {
1376
1102
  checked: isSelected,
@@ -1378,7 +1104,7 @@ var _Checkbox = (0, import_react19.forwardRef)(
1378
1104
  className: classNames2.checkbox
1379
1105
  }
1380
1106
  ),
1381
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: classNames2.label, children })
1107
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: classNames2.label, children })
1382
1108
  ] })
1383
1109
  }
1384
1110
  );
@@ -1386,110 +1112,9 @@ var _Checkbox = (0, import_react19.forwardRef)(
1386
1112
  );
1387
1113
 
1388
1114
  // src/Checkbox/CheckboxGroup.tsx
1389
- var import_react_aria_components7 = require("react-aria-components");
1390
- var import_system27 = require("@marigold/system");
1391
-
1392
- // src/FieldBase/_FieldBase.tsx
1393
- var import_react20 = require("react");
1394
- var import_system26 = require("@marigold/system");
1395
-
1396
- // src/HelpText/_HelpText.tsx
1397
- var import_react_aria_components6 = require("react-aria-components");
1398
- var import_system25 = require("@marigold/system");
1399
- var import_jsx_runtime31 = require("react/jsx-runtime");
1400
- var HelpText2 = ({
1401
- variant,
1402
- size,
1403
- description,
1404
- error,
1405
- errorMessage,
1406
- ...props
1407
- }) => {
1408
- const hasErrorMessage = errorMessage && error;
1409
- const classNames2 = (0, import_system25.useClassNames)({
1410
- component: "HelpText",
1411
- variant,
1412
- size
1413
- });
1414
- if (!description && !errorMessage) {
1415
- return null;
1416
- }
1417
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: (0, import_system25.cn)(classNames2.container), children: [
1418
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
1419
- import_react_aria_components6.FieldError,
1420
- {
1421
- ...props,
1422
- className: "grid grid-flow-col items-center justify-start gap-1",
1423
- children: [
1424
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1425
- "svg",
1426
- {
1427
- className: (0, import_system25.cn)("h-4 w-4", classNames2.icon),
1428
- viewBox: "0 0 24 24",
1429
- role: "presentation",
1430
- fill: "currentColor",
1431
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("path", { d: "M2.25 20.3097H21.75L12 3.46875L2.25 20.3097ZM12.8864 17.2606H11.1136V15.4879H12.8864V17.2606ZM12.8864 13.7151H11.1136V10.1697H12.8864V13.7151Z" })
1432
- }
1433
- ),
1434
- errorMessage
1435
- ]
1436
- }
1437
- ),
1438
- !hasErrorMessage && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react_aria_components6.Text, { slot: "description", children: description })
1439
- ] });
1440
- };
1441
-
1442
- // src/FieldBase/_FieldBase.tsx
1443
- var import_jsx_runtime32 = require("react/jsx-runtime");
1444
- var fixedForwardRef = import_react20.forwardRef;
1445
- var _FieldBase = (props, ref) => {
1446
- const {
1447
- as: Component = "div",
1448
- children,
1449
- label,
1450
- size,
1451
- variant,
1452
- width = "full",
1453
- description,
1454
- errorMessage,
1455
- className,
1456
- stateProps,
1457
- ...rest
1458
- } = props;
1459
- const classNames2 = (0, import_system26.useClassNames)({
1460
- component: "Field",
1461
- variant,
1462
- size
1463
- });
1464
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
1465
- Component,
1466
- {
1467
- ref,
1468
- className: (0, import_system26.cn)("group/field", import_system26.width[width], classNames2, className),
1469
- "data-required": props.isRequired ? true : void 0,
1470
- "data-error": props.isInvalid ? true : void 0,
1471
- ...rest,
1472
- children: [
1473
- label ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(_Label, { variant, size, children: label }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { "aria-hidden": "true" }),
1474
- children,
1475
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1476
- HelpText2,
1477
- {
1478
- variant,
1479
- size,
1480
- description,
1481
- errorMessage,
1482
- error: props.isInvalid
1483
- }
1484
- )
1485
- ]
1486
- }
1487
- );
1488
- };
1489
- var FieldBase2 = fixedForwardRef(_FieldBase);
1490
-
1491
- // src/Checkbox/CheckboxGroup.tsx
1492
- var import_jsx_runtime33 = require("react/jsx-runtime");
1115
+ var import_react_aria_components14 = require("react-aria-components");
1116
+ var import_system22 = require("@marigold/system");
1117
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1493
1118
  var _CheckboxGroup = ({
1494
1119
  children,
1495
1120
  variant,
@@ -1500,7 +1125,7 @@ var _CheckboxGroup = ({
1500
1125
  error,
1501
1126
  ...rest
1502
1127
  }) => {
1503
- const classNames2 = (0, import_system27.useClassNames)({
1128
+ const classNames2 = (0, import_system22.useClassNames)({
1504
1129
  component: "Checkbox",
1505
1130
  variant,
1506
1131
  size,
@@ -1514,13 +1139,13 @@ var _CheckboxGroup = ({
1514
1139
  isInvalid: error,
1515
1140
  ...rest
1516
1141
  };
1517
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(FieldBase2, { as: import_react_aria_components7.CheckboxGroup, ...props, children });
1142
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(FieldBase, { as: import_react_aria_components14.CheckboxGroup, ...props, children });
1518
1143
  };
1519
1144
 
1520
1145
  // src/Columns/Columns.tsx
1521
- var import_react21 = require("react");
1522
- var import_system28 = require("@marigold/system");
1523
- var import_jsx_runtime34 = require("react/jsx-runtime");
1146
+ var import_react18 = require("react");
1147
+ var import_system23 = require("@marigold/system");
1148
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1524
1149
  var Columns = ({
1525
1150
  space = 0,
1526
1151
  columns,
@@ -1529,30 +1154,30 @@ var Columns = ({
1529
1154
  children,
1530
1155
  ...props
1531
1156
  }) => {
1532
- if (import_react21.Children.count(children) !== columns.length) {
1157
+ if (import_react18.Children.count(children) !== columns.length) {
1533
1158
  throw new Error(
1534
- `Columns: expected ${columns.length} children, got ${import_react21.Children.count(
1159
+ `Columns: expected ${columns.length} children, got ${import_react18.Children.count(
1535
1160
  children
1536
1161
  )}`
1537
1162
  );
1538
1163
  }
1539
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1164
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1540
1165
  "div",
1541
1166
  {
1542
- className: (0, import_system28.cn)(
1167
+ className: (0, import_system23.cn)(
1543
1168
  "flex flex-wrap items-stretch",
1544
1169
  stretch && "h-full",
1545
- import_system28.gapSpace[space]
1170
+ import_system23.gapSpace[space]
1546
1171
  ),
1547
1172
  ...props,
1548
- children: import_react21.Children.map(children, (child, idx) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1173
+ children: import_react18.Children.map(children, (child, idx) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1549
1174
  "div",
1550
1175
  {
1551
- className: (0, import_system28.cn)(
1176
+ className: (0, import_system23.cn)(
1552
1177
  "grow-[--columnSize] basis-[calc((var(--collapseAt)_-_100%)_*_999)]"
1553
1178
  ),
1554
- style: (0, import_system28.createVar)({ collapseAt, columnSize: columns[idx] }),
1555
- children: (0, import_react21.isValidElement)(child) ? (0, import_react21.cloneElement)(child) : child
1179
+ style: (0, import_system23.createVar)({ collapseAt, columnSize: columns[idx] }),
1180
+ children: child
1556
1181
  }
1557
1182
  ))
1558
1183
  }
@@ -1560,8 +1185,8 @@ var Columns = ({
1560
1185
  };
1561
1186
 
1562
1187
  // src/Container/Container.tsx
1563
- var import_system29 = require("@marigold/system");
1564
- var import_jsx_runtime35 = require("react/jsx-runtime");
1188
+ var import_system24 = require("@marigold/system");
1189
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1565
1190
  var content = {
1566
1191
  small: "20ch",
1567
1192
  medium: "45ch",
@@ -1581,31 +1206,31 @@ var Container = ({
1581
1206
  ...props
1582
1207
  }) => {
1583
1208
  const maxWidth = contentType === "content" ? content[size] : header[size];
1584
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1209
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1585
1210
  "div",
1586
1211
  {
1587
1212
  ...props,
1588
- className: (0, import_system29.cn)(
1213
+ className: (0, import_system24.cn)(
1589
1214
  "grid",
1590
- import_system29.placeItems[alignItems],
1591
- import_system29.gridColsAlign[align],
1592
- import_system29.gridColumn[align]
1215
+ import_system24.placeItems[alignItems],
1216
+ import_system24.gridColsAlign[align],
1217
+ import_system24.gridColumn[align]
1593
1218
  ),
1594
- style: (0, import_system29.createVar)({ maxWidth }),
1219
+ style: (0, import_system24.createVar)({ maxWidth }),
1595
1220
  children
1596
1221
  }
1597
1222
  );
1598
1223
  };
1599
1224
 
1600
1225
  // src/Dialog/Dialog.tsx
1601
- var import_react23 = require("react");
1602
- var import_react_aria_components10 = require("react-aria-components");
1603
- var import_system31 = require("@marigold/system");
1226
+ var import_react21 = require("react");
1227
+ var import_react_aria_components18 = require("react-aria-components");
1228
+ var import_system27 = require("@marigold/system");
1604
1229
 
1605
1230
  // src/Headline/Headline.tsx
1606
- var import_react_aria_components8 = require("react-aria-components");
1607
- var import_system30 = require("@marigold/system");
1608
- var import_jsx_runtime36 = require("react/jsx-runtime");
1231
+ var import_react_aria_components15 = require("react-aria-components");
1232
+ var import_system25 = require("@marigold/system");
1233
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1609
1234
  var _Headline = ({
1610
1235
  variant,
1611
1236
  size,
@@ -1615,20 +1240,20 @@ var _Headline = ({
1615
1240
  level = 1,
1616
1241
  ...props
1617
1242
  }) => {
1618
- const theme = (0, import_system30.useTheme)();
1619
- const classNames2 = (0, import_system30.useClassNames)({
1243
+ const theme = (0, import_system25.useTheme)();
1244
+ const classNames2 = (0, import_system25.useClassNames)({
1620
1245
  component: "Headline",
1621
1246
  variant,
1622
1247
  size: size != null ? size : `level-${level}`
1623
1248
  });
1624
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1625
- import_react_aria_components8.Heading,
1249
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1250
+ import_react_aria_components15.Heading,
1626
1251
  {
1627
1252
  level: Number(level),
1628
1253
  ...props,
1629
- className: (0, import_system30.cn)(classNames2, "text-[--color]", import_system30.textAlign[align]),
1630
- style: (0, import_system30.createVar)({
1631
- color: color && theme.colors && (0, import_system30.get)(
1254
+ className: (0, import_system25.cn)(classNames2, "text-[--color]", import_system25.textAlign[align]),
1255
+ style: (0, import_system25.createVar)({
1256
+ color: color && theme.colors && (0, import_system25.get)(
1632
1257
  theme.colors,
1633
1258
  color.replace("-", "."),
1634
1259
  color
@@ -1641,9 +1266,36 @@ var _Headline = ({
1641
1266
  };
1642
1267
 
1643
1268
  // src/Dialog/DialogTrigger.tsx
1644
- var import_react22 = require("react");
1645
- var import_react_aria_components9 = require("react-aria-components");
1646
- var import_jsx_runtime37 = require("react/jsx-runtime");
1269
+ var import_react20 = require("react");
1270
+ var import_react_aria_components17 = require("react-aria-components");
1271
+
1272
+ // src/Overlay/Modal.tsx
1273
+ var import_react19 = require("react");
1274
+ var import_react_aria_components16 = require("react-aria-components");
1275
+ var import_system26 = require("@marigold/system");
1276
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1277
+ var _Modal = (0, import_react19.forwardRef)(({ open, dismissable, keyboardDismissable, ...rest }, ref) => {
1278
+ const theme = (0, import_system26.useTheme)();
1279
+ const props = {
1280
+ isOpen: open,
1281
+ isDismissable: dismissable,
1282
+ isKeyboardDismissDisabled: keyboardDismissable,
1283
+ ...rest
1284
+ };
1285
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1286
+ Underlay,
1287
+ {
1288
+ dismissable,
1289
+ keyboardDismissable,
1290
+ open,
1291
+ variant: "modal",
1292
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react_aria_components16.Modal, { ref, "data-theme": theme.name, ...props, children: props.children })
1293
+ }
1294
+ );
1295
+ });
1296
+
1297
+ // src/Dialog/DialogTrigger.tsx
1298
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1647
1299
  var _DialogTrigger = ({
1648
1300
  open,
1649
1301
  dismissable,
@@ -1655,15 +1307,15 @@ var _DialogTrigger = ({
1655
1307
  isOpen: open,
1656
1308
  ...rest
1657
1309
  };
1658
- const children = import_react22.Children.toArray(props.children);
1310
+ const children = import_react20.Children.toArray(props.children);
1659
1311
  const [dialogTrigger, dialog] = children;
1660
1312
  const hasDialogTrigger = dialogTrigger.type !== _Dialog;
1661
1313
  const currentDialog = children.length < 2 ? !hasDialogTrigger && dialogTrigger : dialog;
1662
1314
  if (isNonModal)
1663
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react_aria_components9.DialogTrigger, { ...props, children: props.children });
1664
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_react_aria_components9.DialogTrigger, { ...props, children: [
1315
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react_aria_components17.DialogTrigger, { ...props, children: props.children });
1316
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react_aria_components17.DialogTrigger, { ...props, children: [
1665
1317
  hasDialogTrigger && dialogTrigger,
1666
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1318
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1667
1319
  _Modal,
1668
1320
  {
1669
1321
  dismissable,
@@ -1675,18 +1327,18 @@ var _DialogTrigger = ({
1675
1327
  };
1676
1328
 
1677
1329
  // src/Dialog/Dialog.tsx
1678
- var import_jsx_runtime38 = require("react/jsx-runtime");
1330
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1679
1331
  var CloseButton = ({ className }) => {
1680
- const { close } = (0, import_react23.useContext)(import_react_aria_components10.OverlayTriggerStateContext);
1681
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1332
+ const { close } = (0, import_react21.useContext)(import_react_aria_components18.OverlayTriggerStateContext);
1333
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1682
1334
  "button",
1683
1335
  {
1684
- className: (0, import_system31.cn)(
1336
+ className: (0, import_system27.cn)(
1685
1337
  "h-4 w-4 cursor-pointer border-none p-0 leading-normal outline-0",
1686
1338
  className
1687
1339
  ),
1688
1340
  onClick: close,
1689
- children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1341
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1690
1342
  "path",
1691
1343
  {
1692
1344
  fillRule: "evenodd",
@@ -1697,7 +1349,7 @@ var CloseButton = ({ className }) => {
1697
1349
  }
1698
1350
  ) });
1699
1351
  };
1700
- var DialogHeadline = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(_Headline, { slot: "title", children });
1352
+ var DialogHeadline = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(_Headline, { slot: "title", children });
1701
1353
  var _Dialog = ({
1702
1354
  variant,
1703
1355
  size,
@@ -1705,8 +1357,8 @@ var _Dialog = ({
1705
1357
  isNonModal,
1706
1358
  ...props
1707
1359
  }) => {
1708
- const classNames2 = (0, import_system31.useClassNames)({ component: "Dialog", variant, size });
1709
- let state = (0, import_react23.useContext)(import_react_aria_components10.OverlayTriggerStateContext);
1360
+ const classNames2 = (0, import_system27.useClassNames)({ component: "Dialog", variant, size });
1361
+ let state = (0, import_react21.useContext)(import_react_aria_components18.OverlayTriggerStateContext);
1710
1362
  let children = props.children;
1711
1363
  if (typeof children === "function") {
1712
1364
  children = children({
@@ -1714,13 +1366,13 @@ var _Dialog = ({
1714
1366
  })
1715
1367
  });
1716
1368
  }
1717
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1718
- import_react_aria_components10.Dialog,
1369
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1370
+ import_react_aria_components18.Dialog,
1719
1371
  {
1720
1372
  ...props,
1721
- className: (0, import_system31.cn)("relative outline-none", classNames2.container),
1722
- children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
1723
- closeButton && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(CloseButton, { className: classNames2.closeButton }),
1373
+ className: (0, import_system27.cn)("relative outline-none", classNames2.container),
1374
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
1375
+ closeButton && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CloseButton, { className: classNames2.closeButton }),
1724
1376
  children
1725
1377
  ] })
1726
1378
  }
@@ -1730,38 +1382,41 @@ _Dialog.Trigger = _DialogTrigger;
1730
1382
  _Dialog.Headline = DialogHeadline;
1731
1383
 
1732
1384
  // src/Divider/Divider.tsx
1733
- var import_react_aria_components11 = require("react-aria-components");
1734
- var import_system32 = require("@marigold/system");
1735
- var import_jsx_runtime39 = require("react/jsx-runtime");
1385
+ var import_react_aria_components19 = require("react-aria-components");
1386
+ var import_system28 = require("@marigold/system");
1387
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1736
1388
  var _Divider = ({ variant, ...props }) => {
1737
- const classNames2 = (0, import_system32.useClassNames)({ component: "Divider", variant });
1738
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react_aria_components11.Separator, { className: classNames2, ...props });
1389
+ const classNames2 = (0, import_system28.useClassNames)({ component: "Divider", variant });
1390
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react_aria_components19.Separator, { className: classNames2, ...props });
1739
1391
  };
1740
1392
 
1741
1393
  // src/Footer/Footer.tsx
1742
- var import_system33 = require("@marigold/system");
1743
- var import_jsx_runtime40 = require("react/jsx-runtime");
1394
+ var import_system29 = require("@marigold/system");
1395
+ var import_jsx_runtime35 = require("react/jsx-runtime");
1744
1396
  var Footer = ({ children, variant, size, ...props }) => {
1745
- const classNames2 = (0, import_system33.useClassNames)({ component: "Footer", variant, size });
1746
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("footer", { ...props, className: classNames2, children });
1397
+ const classNames2 = (0, import_system29.useClassNames)({ component: "Footer", variant, size });
1398
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("footer", { ...props, className: classNames2, children });
1747
1399
  };
1748
1400
 
1401
+ // src/Form/Form.tsx
1402
+ var import_react_aria_components20 = require("react-aria-components");
1403
+
1749
1404
  // src/Header/Header.tsx
1750
- var import_react_aria_components12 = require("react-aria-components");
1751
- var import_system34 = require("@marigold/system");
1752
- var import_jsx_runtime41 = require("react/jsx-runtime");
1405
+ var import_react_aria_components21 = require("react-aria-components");
1406
+ var import_system30 = require("@marigold/system");
1407
+ var import_jsx_runtime36 = require("react/jsx-runtime");
1753
1408
  var _Header = ({ variant, size, ...props }) => {
1754
- const classNames2 = (0, import_system34.useClassNames)({
1409
+ const classNames2 = (0, import_system30.useClassNames)({
1755
1410
  component: "Header",
1756
1411
  variant,
1757
1412
  size
1758
1413
  });
1759
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react_aria_components12.Header, { className: classNames2, ...props, children: props.children });
1414
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react_aria_components21.Header, { className: classNames2, ...props, children: props.children });
1760
1415
  };
1761
1416
 
1762
1417
  // src/Image/Image.tsx
1763
- var import_system35 = require("@marigold/system");
1764
- var import_jsx_runtime42 = require("react/jsx-runtime");
1418
+ var import_system31 = require("@marigold/system");
1419
+ var import_jsx_runtime37 = require("react/jsx-runtime");
1765
1420
  var Image = ({
1766
1421
  variant,
1767
1422
  size,
@@ -1769,25 +1424,25 @@ var Image = ({
1769
1424
  position = "none",
1770
1425
  ...props
1771
1426
  }) => {
1772
- const classNames2 = (0, import_system35.useClassNames)({ component: "Image", variant, size });
1773
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
1427
+ const classNames2 = (0, import_system31.useClassNames)({ component: "Image", variant, size });
1428
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1774
1429
  "img",
1775
1430
  {
1776
1431
  ...props,
1777
1432
  alt: props.alt,
1778
- className: (0, import_system35.cn)(
1433
+ className: (0, import_system31.cn)(
1779
1434
  fit !== "none" && "h-full w-full",
1780
1435
  classNames2,
1781
- import_system35.objectFit[fit],
1782
- import_system35.objectPosition[position]
1436
+ import_system31.objectFit[fit],
1437
+ import_system31.objectPosition[position]
1783
1438
  )
1784
1439
  }
1785
1440
  );
1786
1441
  };
1787
1442
 
1788
1443
  // src/Inline/Inline.tsx
1789
- var import_system36 = require("@marigold/system");
1790
- var import_jsx_runtime43 = require("react/jsx-runtime");
1444
+ var import_system32 = require("@marigold/system");
1445
+ var import_jsx_runtime38 = require("react/jsx-runtime");
1791
1446
  var Inline = ({
1792
1447
  space = 0,
1793
1448
  orientation,
@@ -1797,15 +1452,15 @@ var Inline = ({
1797
1452
  ...props
1798
1453
  }) => {
1799
1454
  var _a2, _b2, _c, _d;
1800
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
1455
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1801
1456
  "div",
1802
1457
  {
1803
1458
  ...props,
1804
- className: (0, import_system36.cn)(
1459
+ className: (0, import_system32.cn)(
1805
1460
  "flex flex-wrap",
1806
- import_system36.gapSpace[space],
1807
- alignX && ((_b2 = (_a2 = import_system36.alignment) == null ? void 0 : _a2.horizontal) == null ? void 0 : _b2.alignmentX[alignX]),
1808
- alignY && ((_d = (_c = import_system36.alignment) == null ? void 0 : _c.horizontal) == null ? void 0 : _d.alignmentY[alignY])
1461
+ import_system32.gapSpace[space],
1462
+ alignX && ((_b2 = (_a2 = import_system32.alignment) == null ? void 0 : _a2.horizontal) == null ? void 0 : _b2.alignmentX[alignX]),
1463
+ alignY && ((_d = (_c = import_system32.alignment) == null ? void 0 : _c.horizontal) == null ? void 0 : _d.alignmentY[alignY])
1809
1464
  ),
1810
1465
  children
1811
1466
  }
@@ -1813,301 +1468,268 @@ var Inline = ({
1813
1468
  };
1814
1469
 
1815
1470
  // src/DateField/DateField.tsx
1816
- var import_date = require("@internationalized/date");
1817
- var import_react25 = require("react");
1818
- var import_datepicker2 = require("@react-aria/datepicker");
1819
- var import_focus6 = require("@react-aria/focus");
1820
- var import_i18n3 = require("@react-aria/i18n");
1821
- var import_interactions2 = require("@react-aria/interactions");
1822
- var import_utils10 = require("@react-aria/utils");
1823
- var import_datepicker3 = require("@react-stately/datepicker");
1824
- var import_system38 = require("@marigold/system");
1471
+ var import_react22 = require("react");
1472
+ var import_react_aria_components24 = require("react-aria-components");
1473
+
1474
+ // src/DateField/DateInput.tsx
1475
+ var import_react_aria_components23 = require("react-aria-components");
1476
+ var import_system34 = require("@marigold/system");
1825
1477
 
1826
1478
  // src/DateField/DateSegment.tsx
1827
- var import_react24 = require("react");
1828
- var import_datepicker = require("@react-aria/datepicker");
1829
- var import_focus5 = require("@react-aria/focus");
1830
- var import_utils9 = require("@react-aria/utils");
1831
- var import_system37 = require("@marigold/system");
1832
- var import_jsx_runtime44 = require("react/jsx-runtime");
1833
- var DateSegment = ({
1834
- className,
1835
- segment,
1836
- state,
1837
- isPrevPlaceholder
1838
- }) => {
1839
- const ref = (0, import_react24.useRef)(null);
1840
- const { segmentProps } = (0, import_datepicker.useDateSegment)(segment, state, ref);
1841
- const { focusProps, isFocused } = (0, import_focus5.useFocusRing)({
1842
- within: true,
1843
- isTextInput: true
1844
- });
1845
- const stateProps = (0, import_system37.useStateProps)({
1846
- disabled: state.isDisabled,
1847
- focusVisible: isFocused
1848
- });
1849
- const { isPlaceholder, placeholder, text, type, maxValue } = segment;
1850
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
1851
- "div",
1479
+ var import_react_aria_components22 = require("react-aria-components");
1480
+ var import_system33 = require("@marigold/system");
1481
+ var import_jsx_runtime39 = require("react/jsx-runtime");
1482
+ var _DateSegment = ({ segment, ...props }) => {
1483
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1484
+ import_react_aria_components22.DateSegment,
1852
1485
  {
1853
- ...(0, import_utils9.mergeProps)(segmentProps, stateProps, focusProps),
1854
- ref,
1855
- className: (0, import_system37.cn)(
1856
- "group/segment",
1857
- "text-center leading-none outline-0",
1858
- type !== "literal" && "p-0.5",
1859
- className
1860
- ),
1486
+ ...props,
1487
+ segment,
1861
1488
  style: {
1862
- ...segmentProps.style,
1863
- minWidth: maxValue != null ? String(maxValue).length + "ch" : void 0
1489
+ minWidth: segment.maxValue != null ? `${String(segment.maxValue).length}ch` : void 0
1864
1490
  },
1865
- children: [
1866
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
1491
+ children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
1492
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1867
1493
  "span",
1868
1494
  {
1869
1495
  "aria-hidden": "true",
1870
- className: (0, import_system37.cn)(
1496
+ className: (0, import_system33.cn)(
1871
1497
  isPlaceholder ? "visible block" : "invisible hidden",
1872
1498
  "pointer-events-none w-full text-center"
1873
1499
  ),
1874
1500
  children: isPlaceholder && (placeholder == null ? void 0 : placeholder.toUpperCase())
1875
1501
  }
1876
1502
  ),
1877
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { children: isPlaceholder ? "" : type === "month" || type === "day" ? Number(text) < 10 ? "0" + text : text : text })
1878
- ]
1503
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { children: isPlaceholder ? "" : (segment.type === "month" || segment.type === "day") && Number(segment.text) < 10 ? "0" + segment.text : text })
1504
+ ] })
1879
1505
  }
1880
1506
  );
1881
1507
  };
1882
1508
 
1509
+ // src/DateField/DateInput.tsx
1510
+ var import_jsx_runtime40 = require("react/jsx-runtime");
1511
+ var _DateInput = ({ variant, size, action, ...props }) => {
1512
+ const classNames2 = (0, import_system34.useClassNames)({ component: "DateField", variant, size });
1513
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_react_aria_components23.Group, { className: classNames2.field, children: [
1514
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react_aria_components23.DateInput, { className: "flex flex-1 items-center", ...props, children: (segment) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(_DateSegment, { className: classNames2.segment, segment }) }),
1515
+ action ? action : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
1516
+ "svg",
1517
+ {
1518
+ "data-testid": "action",
1519
+ className: classNames2.action,
1520
+ viewBox: "0 0 24 24",
1521
+ width: 24,
1522
+ height: 24,
1523
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { d: "M20.0906 19.2V6.6C20.0906 5.61 19.2806 4.8 18.2906 4.8H17.3906V3H15.5906V4.8H8.39062V3H6.59062V4.8H5.69063C4.69163 4.8 3.89962 5.61 3.89962 6.6L3.89062 19.2C3.89062 20.19 4.69163 21 5.69063 21H18.2906C19.2806 21 20.0906 20.19 20.0906 19.2ZM9.29062 11.1001H7.49061V12.9001H9.29062V11.1001ZM5.69062 8.40009H18.2906V6.60008H5.69062V8.40009ZM18.2906 10.2V19.2H5.69062V10.2H18.2906ZM14.6906 12.9001H16.4906V11.1001H14.6906V12.9001ZM12.8906 12.9001H11.0906V11.1001H12.8906V12.9001Z" })
1524
+ }
1525
+ ) })
1526
+ ] });
1527
+ };
1528
+
1883
1529
  // src/DateField/DateField.tsx
1884
- var import_jsx_runtime45 = require("react/jsx-runtime");
1885
- var DateField = ({
1886
- disabled,
1887
- readOnly,
1888
- required,
1889
- error,
1890
- errorMessage,
1891
- errorMessageProps,
1892
- variant,
1893
- size,
1894
- action,
1895
- isPressed,
1896
- triggerRef,
1897
- width,
1898
- ...res
1899
- }) => {
1900
- const { locale } = (0, import_i18n3.useLocale)();
1901
- const props = {
1902
- isDisabled: disabled,
1903
- isReadOnly: readOnly,
1904
- isRequired: required,
1905
- ...res
1906
- };
1907
- const { label, description } = props;
1908
- const state = (0, import_datepicker3.useDateFieldState)({
1909
- ...props,
1910
- locale,
1911
- createCalendar: import_date.createCalendar
1912
- });
1913
- const ref = (0, import_react25.useRef)(null);
1914
- const { fieldProps, labelProps, descriptionProps } = (0, import_datepicker2.useDateField)(
1915
- props,
1916
- state,
1917
- ref
1918
- );
1919
- const classNames2 = (0, import_system38.useClassNames)({ component: "DateField", variant, size });
1920
- const { focusProps, isFocused } = (0, import_focus6.useFocusRing)({
1921
- within: true,
1922
- isTextInput: true,
1923
- autoFocus: props.autoFocus
1924
- });
1925
- const { hoverProps, isHovered } = (0, import_interactions2.useHover)({ isDisabled: disabled });
1926
- const stateProps = (0, import_system38.useStateProps)({
1927
- hover: isHovered,
1928
- error,
1929
- readOnly,
1530
+ var import_jsx_runtime41 = require("react/jsx-runtime");
1531
+ var _DateField = (0, import_react22.forwardRef)(
1532
+ ({
1533
+ variant,
1534
+ size,
1535
+ action,
1930
1536
  disabled,
1931
1537
  required,
1932
- focus: isFocused || isPressed
1933
- });
1934
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
1935
- FieldBase,
1936
- {
1937
- error,
1938
- errorMessage,
1939
- errorMessageProps,
1940
- label,
1941
- labelProps,
1942
- description,
1943
- descriptionProps,
1944
- disabled,
1945
- stateProps,
1946
- variant,
1947
- size,
1948
- width,
1949
- children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
1950
- "div",
1951
- {
1952
- ...(0, import_utils10.mergeProps)(fieldProps, focusProps, stateProps, hoverProps),
1953
- className: (0, import_system38.cn)(
1954
- "relative flex flex-row flex-nowrap",
1955
- "cursor-text aria-disabled:cursor-not-allowed",
1956
- classNames2.field
1957
- ),
1958
- "data-testid": "date-field",
1959
- ref: triggerRef,
1960
- children: [
1961
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { ref, className: "flex basis-full items-center", children: state.segments.map((segment, i) => {
1962
- var _a;
1963
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
1964
- DateSegment,
1965
- {
1966
- className: classNames2.segment,
1967
- isPrevPlaceholder: (_a = state.segments[i - 1]) == null ? void 0 : _a.isPlaceholder,
1968
- segment,
1969
- state
1970
- },
1971
- i
1972
- );
1973
- }) }),
1974
- action ? action : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
1975
- "svg",
1976
- {
1977
- "data-testid": "action",
1978
- className: (0, import_system38.cn)(classNames2.action),
1979
- viewBox: "0 0 24 24",
1980
- width: 24,
1981
- height: 24,
1982
- children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("path", { d: "M20.0906 19.2V6.6C20.0906 5.61 19.2806 4.8 18.2906 4.8H17.3906V3H15.5906V4.8H8.39062V3H6.59062V4.8H5.69063C4.69163 4.8 3.89962 5.61 3.89962 6.6L3.89062 19.2C3.89062 20.19 4.69163 21 5.69063 21H18.2906C19.2806 21 20.0906 20.19 20.0906 19.2ZM9.29062 11.1001H7.49061V12.9001H9.29062V11.1001ZM5.69062 8.40009H18.2906V6.60008H5.69062V8.40009ZM18.2906 10.2V19.2H5.69062V10.2H18.2906ZM14.6906 12.9001H16.4906V11.1001H14.6906V12.9001ZM12.8906 12.9001H11.0906V11.1001H12.8906V12.9001Z" })
1983
- }
1984
- ) })
1985
- ]
1986
- }
1987
- )
1988
- }
1989
- );
1990
- };
1538
+ error,
1539
+ readOnly,
1540
+ ...rest
1541
+ }, ref) => {
1542
+ const props = {
1543
+ isDisabled: disabled,
1544
+ isReadOnly: readOnly,
1545
+ isInvalid: error,
1546
+ isRequired: required,
1547
+ ...rest
1548
+ };
1549
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
1550
+ FieldBase,
1551
+ {
1552
+ as: import_react_aria_components24.DateField,
1553
+ variant,
1554
+ size,
1555
+ ref,
1556
+ ...props,
1557
+ children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(_DateInput, { action })
1558
+ }
1559
+ );
1560
+ }
1561
+ );
1991
1562
 
1992
1563
  // src/Calendar/Calendar.tsx
1993
- var import_date3 = require("@internationalized/date");
1994
- var import_react29 = require("react");
1995
- var import_calendar3 = require("@react-aria/calendar");
1996
- var import_i18n7 = require("@react-aria/i18n");
1997
- var import_calendar4 = require("@react-stately/calendar");
1998
- var import_icons = require("@marigold/icons");
1999
- var import_system40 = require("@marigold/system");
2000
-
2001
- // src/Calendar/CalendarGrid.tsx
2002
- var import_date2 = require("@internationalized/date");
2003
1564
  var import_react27 = require("react");
2004
- var import_calendar2 = require("@react-aria/calendar");
2005
- var import_i18n4 = require("@react-aria/i18n");
2006
- var import_i18n5 = require("@react-aria/i18n");
2007
-
2008
- // src/Calendar/CalendarCell.tsx
2009
- var import_react26 = require("react");
2010
- var import_calendar = require("@react-aria/calendar");
2011
- var import_interactions3 = require("@react-aria/interactions");
2012
- var import_utils11 = require("@react-aria/utils");
1565
+ var import_react_aria_components31 = require("react-aria-components");
2013
1566
  var import_system39 = require("@marigold/system");
2014
- var import_jsx_runtime46 = require("react/jsx-runtime");
2015
- var CalendarCell = (props) => {
2016
- const ref = (0, import_react26.useRef)(null);
2017
- const { state } = props;
2018
- let { cellProps, buttonProps, formattedDate, isOutsideVisibleRange } = (0, import_calendar.useCalendarCell)(props, state, ref);
2019
- const classNames2 = (0, import_system39.useClassNames)({
2020
- component: "Calendar"
2021
- });
2022
- const isDisabled = cellProps["aria-disabled"];
2023
- const { hoverProps, isHovered } = (0, import_interactions3.useHover)({
2024
- isDisabled: isDisabled || cellProps["aria-selected"]
2025
- });
2026
- const stateProps = (0, import_system39.useStateProps)({
2027
- disabled: isDisabled,
2028
- hover: isHovered,
2029
- selected: cellProps["aria-selected"]
2030
- });
2031
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("td", { className: "group/cell", ...cellProps, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2032
- "div",
2033
- {
2034
- className: (0, import_system39.cn)(
2035
- "flex h-[30px] w-[30px] cursor-pointer items-center justify-center rounded-full p-[5.3px] text-sm font-normal aria-disabled:cursor-default",
2036
- classNames2.calendarCell
2037
- ),
2038
- hidden: isOutsideVisibleRange,
2039
- ref,
2040
- ...(0, import_utils11.mergeProps)(buttonProps, stateProps, hoverProps),
2041
- children: formattedDate
2042
- }
2043
- ) });
2044
- };
2045
1567
 
2046
1568
  // src/Calendar/CalendarGrid.tsx
2047
- var import_jsx_runtime47 = require("react/jsx-runtime");
2048
- var CalendarGrid = ({ state, ...props }) => {
2049
- const { locale } = (0, import_i18n4.useLocale)();
2050
- const { gridProps, headerProps } = (0, import_calendar2.useCalendarGrid)(props, state);
2051
- const numberOfWeeksInMonth = (0, import_date2.getWeeksInMonth)(
2052
- state.visibleRange.start,
2053
- locale
2054
- );
2055
- const dayFormatter = (0, import_i18n5.useDateFormatter)({
1569
+ var import_react_aria_components26 = require("react-aria-components");
1570
+ var import_system36 = require("@marigold/system");
1571
+
1572
+ // src/Calendar/CalendarGridHeader.tsx
1573
+ var import_date = require("@internationalized/date");
1574
+ var import_react23 = require("react");
1575
+ var import_react_aria_components25 = require("react-aria-components");
1576
+ var import_calendar = require("@react-aria/calendar");
1577
+ var import_i18n = require("@react-aria/i18n");
1578
+ var import_system35 = require("@marigold/system");
1579
+ var import_jsx_runtime42 = require("react/jsx-runtime");
1580
+ function CalendarGridHeader(props) {
1581
+ const state = (0, import_react23.useContext)(import_react_aria_components25.CalendarStateContext);
1582
+ const { headerProps } = (0, import_calendar.useCalendarGrid)(props, state);
1583
+ const { locale } = (0, import_i18n.useLocale)();
1584
+ const dayFormatter = (0, import_i18n.useDateFormatter)({
2056
1585
  weekday: "short",
2057
1586
  timeZone: state.timeZone
2058
1587
  });
2059
- const weekDays = (0, import_react27.useMemo)(() => {
2060
- const weekStart = (0, import_date2.startOfWeek)((0, import_date2.today)(state.timeZone), locale);
1588
+ const weekDays = (0, import_react23.useMemo)(() => {
1589
+ const weekStart = (0, import_date.startOfWeek)((0, import_date.today)(state.timeZone), locale);
2061
1590
  return [...new Array(7).keys()].map((index) => {
2062
1591
  const date = weekStart.add({ days: index });
2063
1592
  const dateDay = date.toDate(state.timeZone);
2064
1593
  return dayFormatter.format(dateDay);
2065
1594
  });
2066
1595
  }, [locale, state.timeZone, dayFormatter]);
2067
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
2068
- "table",
1596
+ const classNames2 = (0, import_system35.useClassNames)({ component: "Calendar" });
1597
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("thead", { ...headerProps, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("tr", { children: weekDays.map((day, index) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("th", { className: classNames2.calendarHeader, children: day.substring(0, 2) }, index)) }) });
1598
+ }
1599
+
1600
+ // src/Calendar/CalendarGrid.tsx
1601
+ var import_jsx_runtime43 = require("react/jsx-runtime");
1602
+ var _CalendarGrid = () => {
1603
+ const classNames2 = (0, import_system36.useClassNames)({ component: "Calendar" });
1604
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_react_aria_components26.CalendarGrid, { className: classNames2.calendarGrid, children: [
1605
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(CalendarGridHeader, {}),
1606
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react_aria_components26.CalendarGridBody, { children: (date) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
1607
+ import_react_aria_components26.CalendarCell,
1608
+ {
1609
+ date,
1610
+ className: (0, import_system36.cn)(
1611
+ "flex h-[30px] w-[30px] cursor-pointer items-center justify-center rounded-full p-[5.3px] text-sm font-normal aria-disabled:cursor-default",
1612
+ classNames2.calendarCell
1613
+ )
1614
+ }
1615
+ ) })
1616
+ ] });
1617
+ };
1618
+
1619
+ // src/Calendar/CalendarListBox.tsx
1620
+ var import_react24 = require("react");
1621
+ var import_react_aria_components27 = require("react-aria-components");
1622
+ var import_icons = require("@marigold/icons");
1623
+ var import_system37 = require("@marigold/system");
1624
+
1625
+ // src/Calendar/useFormattedMonths.tsx
1626
+ var import_i18n2 = require("@react-aria/i18n");
1627
+ function useFormattedMonths(timeZone, focusedDate) {
1628
+ let months = [];
1629
+ let formatter = (0, import_i18n2.useDateFormatter)({
1630
+ month: "long",
1631
+ timeZone
1632
+ });
1633
+ let numMonths = focusedDate.calendar.getMonthsInYear(focusedDate);
1634
+ for (let i = 1; i <= numMonths; i++) {
1635
+ let date = focusedDate.set({ month: i });
1636
+ months.push(formatter.format(date.toDate(timeZone)));
1637
+ }
1638
+ return months;
1639
+ }
1640
+
1641
+ // src/Calendar/CalendarListBox.tsx
1642
+ var import_jsx_runtime44 = require("react/jsx-runtime");
1643
+ function CalendarListBox({
1644
+ type,
1645
+ isDisabled,
1646
+ setSelectedDropdown
1647
+ }) {
1648
+ const state = (0, import_react24.useContext)(import_react_aria_components27.CalendarStateContext);
1649
+ const months = useFormattedMonths(state.timeZone, state.focusedDate);
1650
+ const buttonStyles = "flex items-center justify-between gap-1 overflow-hidden";
1651
+ const { select: selectClassNames } = (0, import_system37.useClassNames)({ component: "Select" });
1652
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
1653
+ "button",
2069
1654
  {
2070
- className: "w-full border-spacing-[6px]",
2071
- ...gridProps,
2072
- cellPadding: "8",
1655
+ disabled: isDisabled,
1656
+ onClick: () => setSelectedDropdown(type),
1657
+ className: (0, import_system37.cn)(buttonStyles, selectClassNames),
1658
+ "data-testid": type,
2073
1659
  children: [
2074
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("thead", { ...headerProps, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("tr", { children: weekDays.map((day, index) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("th", { style: { fontWeight: "bolder" }, children: day.substring(0, 2) }, index)) }) }),
2075
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("tbody", { children: [...new Array(numberOfWeeksInMonth).keys()].map((weekIndex) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("tr", { children: state.getDatesInWeek(weekIndex).map(
2076
- (date, i) => date ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2077
- CalendarCell,
2078
- {
2079
- date,
2080
- state
2081
- },
2082
- i
2083
- ) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("td", {}, i)
2084
- ) }, weekIndex)) })
1660
+ type === "month" ? months[state.focusedDate.month - 1].substring(0, 3) : state.focusedDate.year,
1661
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_icons.ChevronDown, {})
2085
1662
  ]
2086
1663
  }
2087
1664
  );
2088
- };
1665
+ }
2089
1666
 
2090
- // src/Calendar/MonthDropdown.tsx
2091
- var import_jsx_runtime48 = require("react/jsx-runtime");
2092
- var MonthDropdown = ({
2093
- state,
2094
- setSelectedDropdown,
2095
- months
2096
- }) => {
1667
+ // src/Calendar/MonthControls.tsx
1668
+ var import_react_aria_components28 = require("react-aria-components");
1669
+ var import_icons2 = require("@marigold/icons");
1670
+ var import_system38 = require("@marigold/system");
1671
+ var import_jsx_runtime45 = require("react/jsx-runtime");
1672
+ function MonthControls() {
1673
+ const classNames2 = (0, import_system38.useClassNames)({ component: "Calendar" });
1674
+ const buttonClassNames = (0, import_system38.useClassNames)({ component: "Button" });
1675
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
1676
+ "div",
1677
+ {
1678
+ className: (0, import_system38.cn)(
1679
+ "flex w-full flex-nowrap justify-end gap-[10px] [&_button:disabled]:cursor-not-allowed [&_button]:px-2 [&_button]:py-1",
1680
+ classNames2.calendarControllers
1681
+ ),
1682
+ children: [
1683
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
1684
+ import_react_aria_components28.Button,
1685
+ {
1686
+ className: (0, import_system38.cn)(
1687
+ "inline-flex items-center justify-center gap-[0.5ch]",
1688
+ buttonClassNames
1689
+ ),
1690
+ slot: "previous",
1691
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_icons2.ChevronLeft, {})
1692
+ }
1693
+ ),
1694
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
1695
+ import_react_aria_components28.Button,
1696
+ {
1697
+ className: (0, import_system38.cn)(
1698
+ "inline-flex items-center justify-center gap-[0.5ch]",
1699
+ buttonClassNames
1700
+ ),
1701
+ slot: "next",
1702
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_icons2.ChevronRight, {})
1703
+ }
1704
+ )
1705
+ ]
1706
+ }
1707
+ );
1708
+ }
1709
+ var MonthControls_default = MonthControls;
1710
+
1711
+ // src/Calendar/MonthListBox.tsx
1712
+ var import_react25 = require("react");
1713
+ var import_react_aria_components29 = require("react-aria-components");
1714
+ var import_jsx_runtime46 = require("react/jsx-runtime");
1715
+ var MonthListBox = ({ setSelectedDropdown }) => {
1716
+ const state = (0, import_react25.useContext)(import_react_aria_components29.CalendarStateContext);
1717
+ const months = useFormattedMonths(state.timeZone, state.focusedDate);
2097
1718
  let onChange = (index) => {
2098
1719
  let value = Number(index) + 1;
2099
1720
  let date = state.focusedDate.set({ month: value });
2100
1721
  state.setFocusedDate(date);
2101
1722
  };
2102
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
1723
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2103
1724
  "ul",
2104
1725
  {
2105
1726
  "data-testid": "monthOptions",
2106
1727
  className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
2107
1728
  children: months.map((month, index) => {
2108
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("li", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
1729
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("li", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2109
1730
  _Button,
2110
1731
  {
1732
+ slot: "previous",
2111
1733
  variant: index === state.focusedDate.month - 1 ? "secondary" : "text",
2112
1734
  size: "small",
2113
1735
  onPress: () => {
@@ -2122,15 +1744,17 @@ var MonthDropdown = ({
2122
1744
  }
2123
1745
  );
2124
1746
  };
2125
- var MonthDropdown_default = MonthDropdown;
1747
+ var MonthListBox_default = MonthListBox;
2126
1748
 
2127
- // src/Calendar/YearDropdown.tsx
2128
- var import_react28 = require("react");
2129
- var import_i18n6 = require("@react-aria/i18n");
2130
- var import_jsx_runtime49 = require("react/jsx-runtime");
2131
- var YearDropdown = ({ state, setSelectedDropdown }) => {
1749
+ // src/Calendar/YearListBox.tsx
1750
+ var import_react26 = require("react");
1751
+ var import_react_aria_components30 = require("react-aria-components");
1752
+ var import_i18n3 = require("@react-aria/i18n");
1753
+ var import_jsx_runtime47 = require("react/jsx-runtime");
1754
+ var YearListBox = ({ setSelectedDropdown }) => {
1755
+ const state = (0, import_react26.useContext)(import_react_aria_components30.CalendarStateContext);
2132
1756
  const years = [];
2133
- let formatter = (0, import_i18n6.useDateFormatter)({
1757
+ let formatter = (0, import_i18n3.useDateFormatter)({
2134
1758
  year: "numeric",
2135
1759
  timeZone: state.timeZone
2136
1760
  });
@@ -2141,8 +1765,8 @@ var YearDropdown = ({ state, setSelectedDropdown }) => {
2141
1765
  formatted: formatter.format(date.toDate(state.timeZone))
2142
1766
  });
2143
1767
  }
2144
- const activeButtonRef = (0, import_react28.useRef)(null);
2145
- (0, import_react28.useEffect)(() => {
1768
+ const activeButtonRef = (0, import_react26.useRef)(null);
1769
+ (0, import_react26.useEffect)(() => {
2146
1770
  if (activeButtonRef.current) {
2147
1771
  const activeButton = activeButtonRef.current;
2148
1772
  activeButton == null ? void 0 : activeButton.scrollIntoView({
@@ -2156,21 +1780,22 @@ var YearDropdown = ({ state, setSelectedDropdown }) => {
2156
1780
  let date = years[index].value;
2157
1781
  state.setFocusedDate(date);
2158
1782
  };
2159
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
1783
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2160
1784
  "ul",
2161
1785
  {
2162
1786
  "data-testid": "yearOptions",
2163
1787
  className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
2164
1788
  children: years.map((year, index) => {
2165
1789
  const isActive = +year.formatted === state.focusedDate.year;
2166
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("li", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
1790
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("li", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2167
1791
  "div",
2168
1792
  {
2169
1793
  ref: isActive ? activeButtonRef : null,
2170
1794
  style: { height: "100%", width: "100%" },
2171
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
1795
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2172
1796
  _Button,
2173
1797
  {
1798
+ slot: "previous",
2174
1799
  disabled: state.isDisabled,
2175
1800
  variant: isActive ? "secondary" : "text",
2176
1801
  size: "small",
@@ -2189,269 +1814,168 @@ var YearDropdown = ({ state, setSelectedDropdown }) => {
2189
1814
  }
2190
1815
  );
2191
1816
  };
2192
- var YearDropdown_default = YearDropdown;
1817
+ var YearListBox_default = YearListBox;
2193
1818
 
2194
1819
  // src/Calendar/Calendar.tsx
2195
- var import_jsx_runtime50 = require("react/jsx-runtime");
2196
- var buttonStyles = "flex items-center justify-between gap-1 overflow-hidden";
2197
- var Calendar = ({
1820
+ var import_jsx_runtime48 = require("react/jsx-runtime");
1821
+ var _Calendar = ({
2198
1822
  disabled,
2199
1823
  readOnly,
2200
1824
  size,
2201
1825
  variant,
2202
1826
  ...rest
2203
1827
  }) => {
2204
- const { locale } = (0, import_i18n7.useLocale)();
2205
1828
  const props = {
2206
1829
  isDisabled: disabled,
2207
1830
  isReadOnly: readOnly,
2208
1831
  ...rest
2209
1832
  };
2210
- const state = (0, import_calendar4.useCalendarState)({
2211
- ...props,
2212
- locale,
2213
- createCalendar: import_date3.createCalendar
2214
- });
2215
- const ref = (0, import_react29.useRef)(null);
2216
- const { calendarProps, prevButtonProps, nextButtonProps } = (0, import_calendar3.useCalendar)(
2217
- props,
2218
- state
2219
- );
2220
- const {
2221
- isDisabled: prevIsDisabled,
2222
- onFocusChange: prevFocusChange,
2223
- ...prevPropsRest
2224
- } = prevButtonProps;
2225
- const {
2226
- isDisabled: nextIsDisabled,
2227
- onFocusChange: nextFocusChange,
2228
- ...nextPropsRest
2229
- } = nextButtonProps;
2230
- const calendarState = (0, import_system40.useStateProps)({
2231
- disabled: state.isDisabled,
2232
- focusVisible: state.isFocused
2233
- });
2234
- const classNames2 = (0, import_system40.useClassNames)({ component: "Calendar" });
2235
- const { select: selectClassNames } = (0, import_system40.useClassNames)({ component: "Select" });
2236
- const [selectedDropdown, setSelectedDropdown] = (0, import_react29.useState)();
2237
- let months = [];
2238
- let formatter = (0, import_i18n7.useDateFormatter)({
2239
- month: "long",
2240
- timeZone: state.timeZone
2241
- });
2242
- let numMonths = state.focusedDate.calendar.getMonthsInYear(state.focusedDate);
2243
- for (let i = 1; i <= numMonths; i++) {
2244
- let date = state.focusedDate.set({ month: i });
2245
- months.push(formatter.format(date.toDate(state.timeZone)));
2246
- }
2247
- const selectedValue = {
2248
- month: months[state.focusedDate.month - 1].substring(0, 3),
2249
- year: state.focusedDate.year
1833
+ const classNames2 = (0, import_system39.useClassNames)({ component: "Calendar" });
1834
+ const [selectedDropdown, setSelectedDropdown] = (0, import_react27.useState)();
1835
+ const ViewMap = {
1836
+ month: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(MonthListBox_default, { setSelectedDropdown }),
1837
+ year: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(YearListBox_default, { setSelectedDropdown })
2250
1838
  };
2251
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2252
- "div",
1839
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
1840
+ import_react_aria_components31.Calendar,
2253
1841
  {
2254
- tabIndex: -1,
2255
- className: (0, import_system40.cn)(
1842
+ className: (0, import_system39.cn)(
2256
1843
  "flex min-h-[350px] w-[360px] flex-col rounded-sm p-4 shadow-[0_4px_4px_rgba(165,165,165,0.25)]",
2257
1844
  classNames2.calendar
2258
1845
  ),
2259
- ...calendarProps,
2260
- ...calendarState,
2261
- ref,
2262
- children: selectedDropdown ? selectedDropdown === "month" ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2263
- MonthDropdown_default,
2264
- {
2265
- setSelectedDropdown,
2266
- months,
2267
- state
2268
- }
2269
- ) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2270
- YearDropdown_default,
2271
- {
2272
- setSelectedDropdown,
2273
- state
2274
- }
2275
- ) : /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
2276
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "mb-4 flex items-center justify-between", children: [
2277
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex w-full gap-4", children: [
2278
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
2279
- "button",
1846
+ ...props,
1847
+ children: selectedDropdown ? ViewMap[selectedDropdown] : /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
1848
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "mb-4 flex items-center justify-between", children: [
1849
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex w-full gap-4", children: [
1850
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
1851
+ CalendarListBox,
2280
1852
  {
2281
- disabled: state.isDisabled,
2282
- onClick: () => setSelectedDropdown("month"),
2283
- className: (0, import_system40.cn)(buttonStyles, selectClassNames),
2284
- "data-testid": "month",
2285
- children: [
2286
- selectedValue.month,
2287
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_icons.ChevronDown, {})
2288
- ]
1853
+ type: "month",
1854
+ isDisabled: props.isDisabled,
1855
+ setSelectedDropdown
2289
1856
  }
2290
1857
  ),
2291
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
2292
- "button",
1858
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
1859
+ CalendarListBox,
2293
1860
  {
2294
- disabled: state.isDisabled,
2295
- onClick: () => setSelectedDropdown("year"),
2296
- className: (0, import_system40.cn)(buttonStyles, selectClassNames),
2297
- "data-testid": "year",
2298
- children: [
2299
- selectedValue.year,
2300
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_icons.ChevronDown, {})
2301
- ]
1861
+ type: "year",
1862
+ isDisabled: props.isDisabled,
1863
+ setSelectedDropdown
2302
1864
  }
2303
1865
  )
2304
1866
  ] }),
2305
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
2306
- "div",
2307
- {
2308
- className: (0, import_system40.cn)(
2309
- "flex w-full flex-nowrap justify-end gap-[10px] [&_button:disabled]:cursor-not-allowed [&_button]:px-2 [&_button]:py-1",
2310
- classNames2.calendarControllers
2311
- ),
2312
- children: [
2313
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(_Button, { ...prevPropsRest, disabled: prevIsDisabled, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_icons.ChevronLeft, {}) }),
2314
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(_Button, { ...nextPropsRest, disabled: nextIsDisabled, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_icons.ChevronRight, {}) })
2315
- ]
2316
- }
2317
- )
1867
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(MonthControls_default, {})
2318
1868
  ] }),
2319
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(CalendarGrid, { state })
1869
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(_CalendarGrid, {})
2320
1870
  ] })
2321
1871
  }
2322
1872
  );
2323
1873
  };
2324
1874
 
2325
1875
  // src/DatePicker/DatePicker.tsx
2326
- var import_react30 = require("react");
2327
- var import_datepicker4 = require("@react-aria/datepicker");
2328
- var import_utils12 = require("@react-aria/utils");
2329
- var import_datepicker5 = require("@react-stately/datepicker");
2330
- var import_system41 = require("@marigold/system");
2331
- var import_jsx_runtime51 = require("react/jsx-runtime");
2332
- var DatePicker = ({
1876
+ var import_react_aria_components32 = require("react-aria-components");
1877
+ var import_system40 = require("@marigold/system");
1878
+ var import_jsx_runtime49 = require("react/jsx-runtime");
1879
+ var _DatePicker = ({
2333
1880
  disabled,
2334
1881
  required,
2335
- readonly,
2336
- open,
1882
+ readOnly,
2337
1883
  error,
2338
- shouldCloseOnSelect,
2339
1884
  variant,
2340
1885
  size,
2341
- width,
1886
+ open,
2342
1887
  ...rest
2343
1888
  }) => {
2344
1889
  const props = {
2345
1890
  isDisabled: disabled,
2346
- isReadOnly: readonly,
1891
+ isReadOnly: readOnly,
2347
1892
  isRequired: required,
1893
+ isInvalid: error,
2348
1894
  isOpen: open,
2349
1895
  ...rest
2350
1896
  };
2351
- const state = (0, import_datepicker5.useDatePickerState)({
2352
- shouldCloseOnSelect,
2353
- ...props
2354
- });
2355
- const ref = (0, import_react30.useRef)(null);
2356
- const stateProps = (0, import_system41.useStateProps)({
2357
- focus: state.isOpen
2358
- });
2359
- const { groupProps, fieldProps, buttonProps, calendarProps } = (0, import_datepicker4.useDatePicker)(
2360
- props,
2361
- state,
2362
- ref
2363
- );
2364
- const { isDisabled, errorMessage, description, label } = props;
2365
- const classNames2 = (0, import_system41.useClassNames)({
1897
+ const classNames2 = (0, import_system40.useClassNames)({
2366
1898
  component: "DatePicker",
2367
1899
  size,
2368
1900
  variant
2369
1901
  });
2370
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
2371
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "flex w-full min-w-[300px]", ...groupProps, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2372
- DateField,
1902
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(FieldBase, { as: import_react_aria_components32.DatePicker, variant, size, ...props, children: [
1903
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
1904
+ _DateInput,
2373
1905
  {
2374
- ...fieldProps,
2375
- label,
2376
- isPressed: state.isOpen,
2377
- disabled,
2378
- required,
2379
- errorMessage,
2380
- error,
2381
- description: !state.isOpen && description,
2382
- triggerRef: ref,
2383
- width,
2384
- action: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: classNames2.container, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
1906
+ action: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: classNames2.container, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2385
1907
  _Button,
2386
1908
  {
2387
- ...(0, import_utils12.mergeProps)(buttonProps, stateProps),
2388
- disabled: isDisabled,
2389
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
1909
+ size: "small",
1910
+ disabled,
1911
+ className: classNames2.button,
1912
+ children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2390
1913
  "svg",
2391
1914
  {
2392
- width: "24",
2393
- height: "24",
1915
+ "data-testid": "action",
2394
1916
  viewBox: "0 0 24 24",
1917
+ width: 24,
1918
+ height: 24,
2395
1919
  fill: "currentColor",
2396
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("path", { d: "M20.0906 19.2V6.6C20.0906 5.61 19.2806 4.8 18.2906 4.8H17.3906V3H15.5906V4.8H8.39062V3H6.59062V4.8H5.69063C4.69163 4.8 3.89962 5.61 3.89962 6.6L3.89062 19.2C3.89062 20.19 4.69163 21 5.69063 21H18.2906C19.2806 21 20.0906 20.19 20.0906 19.2ZM9.29062 11.1001H7.49061V12.9001H9.29062V11.1001ZM5.69062 8.40009H18.2906V6.60008H5.69062V8.40009ZM18.2906 10.2V19.2H5.69062V10.2H18.2906ZM14.6906 12.9001H16.4906V11.1001H14.6906V12.9001ZM12.8906 12.9001H11.0906V11.1001H12.8906V12.9001Z" })
1920
+ children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("path", { d: "M20.0906 19.2V6.6C20.0906 5.61 19.2806 4.8 18.2906 4.8H17.3906V3H15.5906V4.8H8.39062V3H6.59062V4.8H5.69063C4.69163 4.8 3.89962 5.61 3.89962 6.6L3.89062 19.2C3.89062 20.19 4.69163 21 5.69063 21H18.2906C19.2806 21 20.0906 20.19 20.0906 19.2ZM9.29062 11.1001H7.49061V12.9001H9.29062V11.1001ZM5.69062 8.40009H18.2906V6.60008H5.69062V8.40009ZM18.2906 10.2V19.2H5.69062V10.2H18.2906ZM14.6906 12.9001H16.4906V11.1001H14.6906V12.9001ZM12.8906 12.9001H11.0906V11.1001H12.8906V12.9001Z" })
2397
1921
  }
2398
1922
  )
2399
1923
  }
2400
1924
  ) })
2401
1925
  }
2402
- ) }),
2403
- state.isOpen && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Popover, { triggerRef: ref, state, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Calendar, { disabled, ...calendarProps }) })
1926
+ ),
1927
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(_Calendar, { disabled }) })
2404
1928
  ] });
2405
1929
  };
2406
1930
 
2407
1931
  // src/Inset/Inset.tsx
2408
- var import_system42 = require("@marigold/system");
2409
- var import_jsx_runtime52 = require("react/jsx-runtime");
2410
- var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
1932
+ var import_system41 = require("@marigold/system");
1933
+ var import_jsx_runtime50 = require("react/jsx-runtime");
1934
+ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2411
1935
  "div",
2412
1936
  {
2413
- className: (0, import_system42.cn)(
2414
- space && import_system42.paddingSpace[space],
2415
- !space && spaceX && import_system42.paddingSpaceX[spaceX],
2416
- !space && spaceY && import_system42.paddingSpaceY[spaceY]
1937
+ className: (0, import_system41.cn)(
1938
+ space && import_system41.paddingSpace[space],
1939
+ !space && spaceX && import_system41.paddingSpaceX[spaceX],
1940
+ !space && spaceY && import_system41.paddingSpaceY[spaceY]
2417
1941
  ),
2418
1942
  children
2419
1943
  }
2420
1944
  );
2421
1945
 
2422
1946
  // src/Link/Link.tsx
2423
- var import_react31 = require("react");
2424
- var import_react_aria_components13 = require("react-aria-components");
2425
- var import_system43 = require("@marigold/system");
2426
- var import_jsx_runtime53 = require("react/jsx-runtime");
2427
- var _Link = (0, import_react31.forwardRef)(
1947
+ var import_react28 = require("react");
1948
+ var import_react_aria_components33 = require("react-aria-components");
1949
+ var import_system42 = require("@marigold/system");
1950
+ var import_jsx_runtime51 = require("react/jsx-runtime");
1951
+ var _Link = (0, import_react28.forwardRef)(
2428
1952
  ({ variant, size, disabled, children, ...props }, ref) => {
2429
- const classNames2 = (0, import_system43.useClassNames)({
1953
+ const classNames2 = (0, import_system42.useClassNames)({
2430
1954
  component: "Link",
2431
1955
  variant,
2432
1956
  size
2433
1957
  });
2434
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_aria_components13.Link, { ...props, ref, className: classNames2, isDisabled: disabled, children });
1958
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react_aria_components33.Link, { ...props, ref, className: classNames2, isDisabled: disabled, children });
2435
1959
  }
2436
1960
  );
2437
1961
 
2438
1962
  // src/List/List.tsx
2439
- var import_system44 = require("@marigold/system");
1963
+ var import_system43 = require("@marigold/system");
2440
1964
 
2441
1965
  // src/List/Context.ts
2442
- var import_react32 = require("react");
2443
- var ListContext = (0, import_react32.createContext)({});
2444
- var useListContext = () => (0, import_react32.useContext)(ListContext);
1966
+ var import_react29 = require("react");
1967
+ var ListContext = (0, import_react29.createContext)({});
1968
+ var useListContext = () => (0, import_react29.useContext)(ListContext);
2445
1969
 
2446
1970
  // src/List/ListItem.tsx
2447
- var import_jsx_runtime54 = require("react/jsx-runtime");
1971
+ var import_jsx_runtime52 = require("react/jsx-runtime");
2448
1972
  var ListItem = ({ children, ...props }) => {
2449
1973
  const { classNames: classNames2 } = useListContext();
2450
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("li", { ...props, className: classNames2, children });
1974
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("li", { ...props, className: classNames2, children });
2451
1975
  };
2452
1976
 
2453
1977
  // src/List/List.tsx
2454
- var import_jsx_runtime55 = require("react/jsx-runtime");
1978
+ var import_jsx_runtime53 = require("react/jsx-runtime");
2455
1979
  var List = ({
2456
1980
  as = "ul",
2457
1981
  children,
@@ -2460,205 +1984,79 @@ var List = ({
2460
1984
  ...props
2461
1985
  }) => {
2462
1986
  const Component = as;
2463
- const classNames2 = (0, import_system44.useClassNames)({ component: "List", variant, size });
2464
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Component, { ...props, className: classNames2[as], children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ListContext.Provider, { value: { classNames: classNames2.item }, children }) });
1987
+ const classNames2 = (0, import_system43.useClassNames)({ component: "List", variant, size });
1988
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Component, { ...props, className: classNames2[as], children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ListContext.Provider, { value: { classNames: classNames2.item }, children }) });
2465
1989
  };
2466
1990
  List.Item = ListItem;
2467
1991
 
2468
1992
  // src/Menu/Menu.tsx
2469
- var import_react36 = require("react");
2470
- var import_menu5 = require("@react-aria/menu");
2471
- var import_utils15 = require("@react-aria/utils");
2472
- var import_collections4 = require("@react-stately/collections");
2473
- var import_tree2 = require("@react-stately/tree");
2474
- var import_system48 = require("@marigold/system");
2475
-
2476
- // src/Menu/Context.ts
2477
- var import_react33 = require("react");
2478
- var MenuContext = (0, import_react33.createContext)({});
2479
- var useMenuContext = () => (0, import_react33.useContext)(MenuContext);
1993
+ var import_react_aria_components36 = require("react-aria-components");
1994
+ var import_system46 = require("@marigold/system");
2480
1995
 
2481
1996
  // src/Menu/MenuItem.tsx
2482
- var import_react34 = require("react");
2483
- var import_focus7 = require("@react-aria/focus");
2484
- var import_menu = require("@react-aria/menu");
2485
- var import_utils13 = require("@react-aria/utils");
2486
- var import_system45 = require("@marigold/system");
2487
- var import_jsx_runtime56 = require("react/jsx-runtime");
2488
- var MenuItem = ({
2489
- item,
2490
- state,
2491
- onAction,
2492
- className
2493
- }) => {
2494
- const ref = (0, import_react34.useRef)(null);
2495
- const { onClose } = useMenuContext();
2496
- const { menuItemProps } = (0, import_menu.useMenuItem)(
2497
- {
2498
- key: item.key,
2499
- onAction,
2500
- onClose
2501
- },
2502
- state,
2503
- ref
2504
- );
2505
- const { isFocusVisible, focusProps } = (0, import_focus7.useFocusRing)();
2506
- const stateProps = (0, import_system45.useStateProps)({
2507
- focus: isFocusVisible
2508
- });
2509
- const { onPointerUp, ...props } = menuItemProps;
2510
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
2511
- "li",
2512
- {
2513
- ref,
2514
- className,
2515
- ...(0, import_utils13.mergeProps)(
2516
- props,
2517
- { onPointerDown: onPointerUp },
2518
- stateProps,
2519
- focusProps
2520
- ),
2521
- children: item.props.children
2522
- }
2523
- );
1997
+ var import_react_aria_components34 = require("react-aria-components");
1998
+ var import_system44 = require("@marigold/system");
1999
+ var import_jsx_runtime54 = require("react/jsx-runtime");
2000
+ var _MenuItem = ({ children, ...props }) => {
2001
+ const classNames2 = (0, import_system44.useClassNames)({ component: "Menu" });
2002
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react_aria_components34.MenuItem, { ...props, className: classNames2.item, children });
2524
2003
  };
2525
2004
 
2526
2005
  // src/Menu/MenuSection.tsx
2527
- var import_menu2 = require("@react-aria/menu");
2528
- var import_system46 = require("@marigold/system");
2529
- var import_jsx_runtime57 = require("react/jsx-runtime");
2530
- var MenuSection = ({ onAction, item, state }) => {
2531
- let { itemProps, headingProps, groupProps } = (0, import_menu2.useMenuSection)({
2532
- heading: item.rendered,
2533
- "aria-label": item["aria-label"]
2534
- });
2535
- const className = (0, import_system46.useClassNames)({ component: "Menu" });
2536
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
2537
- item.key !== state.collection.getFirstKey() && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(_Divider, { variant: "section" }) }),
2538
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("li", { ...itemProps, children: [
2539
- item.rendered && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { ...headingProps, className: className.section, children: item.rendered }),
2540
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("ul", { ...groupProps, className: "pb-1", children: [...item.props.children].map((node) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2541
- MenuItem,
2542
- {
2543
- item: node,
2544
- state,
2545
- onAction,
2546
- className: className.item
2547
- },
2548
- node.key
2549
- )) })
2550
- ] })
2006
+ var import_react_aria_components35 = require("react-aria-components");
2007
+ var import_system45 = require("@marigold/system");
2008
+ var import_jsx_runtime55 = require("react/jsx-runtime");
2009
+ var _MenuSection = ({ children, title, ...props }) => {
2010
+ const className = (0, import_system45.useClassNames)({ component: "Menu" });
2011
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_react_aria_components35.Section, { ...props, children: [
2012
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(_Header, { className: className.section, children: title }),
2013
+ children
2551
2014
  ] });
2552
2015
  };
2553
- var MenuSection_default = MenuSection;
2554
2016
 
2555
- // src/Menu/MenuTrigger.tsx
2556
- var import_react35 = require("react");
2557
- var import_interactions4 = require("@react-aria/interactions");
2558
- var import_menu3 = require("@react-aria/menu");
2559
- var import_utils14 = require("@react-aria/utils");
2560
- var import_menu4 = require("@react-stately/menu");
2561
- var import_system47 = require("@marigold/system");
2562
- var import_jsx_runtime58 = require("react/jsx-runtime");
2563
- var MenuTrigger = ({
2017
+ // src/Menu/Menu.tsx
2018
+ var import_jsx_runtime56 = require("react/jsx-runtime");
2019
+ var _Menu = ({
2020
+ children,
2021
+ label,
2022
+ variant,
2023
+ size,
2564
2024
  disabled,
2565
2025
  open,
2566
- onOpenChange,
2567
- children
2026
+ ...props
2568
2027
  }) => {
2569
- const [menuTrigger, menu] = import_react35.Children.toArray(children);
2570
- const menuTriggerRef = (0, import_react35.useRef)(null);
2571
- const menuRef = (0, import_utils14.useObjectRef)();
2572
- const state = (0, import_menu4.useMenuTriggerState)({
2573
- isOpen: open,
2574
- onOpenChange
2575
- });
2576
- const { menuTriggerProps, menuProps } = (0, import_menu3.useMenuTrigger)(
2577
- { trigger: "press", isDisabled: disabled },
2578
- state,
2579
- menuTriggerRef
2580
- );
2581
- const menuContext = {
2582
- ...menuProps,
2583
- ref: menuRef,
2584
- open: state.isOpen,
2585
- onClose: state.close,
2586
- autoFocus: state.focusStrategy
2587
- };
2588
- const isSmallScreen = (0, import_system47.useSmallScreen)();
2589
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(MenuContext.Provider, { value: menuContext, children: [
2590
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2591
- import_interactions4.PressResponder,
2592
- {
2593
- ...menuTriggerProps,
2594
- ref: menuTriggerRef,
2595
- isPressed: state.isOpen,
2596
- children: menuTrigger
2597
- }
2598
- ),
2599
- isSmallScreen ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Tray, { state, children: menu }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Popover, { triggerRef: menuTriggerRef, scrollRef: menuRef, state, children: menu })
2028
+ const classNames2 = (0, import_system46.useClassNames)({ component: "Menu", variant, size });
2029
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_react_aria_components36.MenuTrigger, { ...props, children: [
2030
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(_Button, { variant: "menu", disabled, children: label }),
2031
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(_Popover, { open, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react_aria_components36.Menu, { ...props, className: classNames2.container, children }) })
2600
2032
  ] });
2601
2033
  };
2602
-
2603
- // src/Menu/Menu.tsx
2604
- var import_jsx_runtime59 = require("react/jsx-runtime");
2605
- var Menu = ({ variant, size, ...props }) => {
2606
- const { ref: scrollRef, ...menuContext } = useMenuContext();
2607
- const ownProps = { ...props, ...menuContext };
2608
- const ref = (0, import_react36.useRef)(null);
2609
- const state = (0, import_tree2.useTreeState)({ ...ownProps, selectionMode: "none" });
2610
- const { menuProps } = (0, import_menu5.useMenu)(ownProps, state, ref);
2611
- (0, import_utils15.useSyncRef)({ ref: scrollRef }, ref);
2612
- const classNames2 = (0, import_system48.useClassNames)({ component: "Menu", variant, size });
2613
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("ul", { ref, className: classNames2.container, ...menuProps, children: [...state.collection].map((item) => {
2614
- if (item.type === "section") {
2615
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2616
- MenuSection_default,
2617
- {
2618
- item,
2619
- state,
2620
- onAction: props.onAction
2621
- },
2622
- item.key
2623
- );
2624
- }
2625
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2626
- MenuItem,
2627
- {
2628
- item,
2629
- state,
2630
- onAction: props.onAction,
2631
- className: classNames2.item
2632
- },
2633
- item.key
2634
- );
2635
- }) });
2636
- };
2637
- Menu.Trigger = MenuTrigger;
2638
- Menu.Item = import_collections4.Item;
2639
- Menu.Section = import_collections4.Section;
2034
+ _Menu.Item = _MenuItem;
2035
+ _Menu.Section = _MenuSection;
2640
2036
 
2641
2037
  // src/Menu/ActionMenu.tsx
2642
- var import_system49 = require("@marigold/system");
2643
- var import_jsx_runtime60 = require("react/jsx-runtime");
2644
- var ActionMenu = (props) => {
2645
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Menu.Trigger, { children: [
2646
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(_Button, { variant: "menu", size: "small", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_system49.SVG, { viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("path", { d: "M12.0117 7.47656C13.2557 7.47656 14.2734 6.45879 14.2734 5.21484C14.2734 3.9709 13.2557 2.95312 12.0117 2.95312C10.7678 2.95312 9.75 3.9709 9.75 5.21484C9.75 6.45879 10.7678 7.47656 12.0117 7.47656ZM12.0117 9.73828C10.7678 9.73828 9.75 10.7561 9.75 12C9.75 13.2439 10.7678 14.2617 12.0117 14.2617C13.2557 14.2617 14.2734 13.2439 14.2734 12C14.2734 10.7561 13.2557 9.73828 12.0117 9.73828ZM12.0117 16.5234C10.7678 16.5234 9.75 17.5412 9.75 18.7852C9.75 20.0291 10.7678 21.0469 12.0117 21.0469C13.2557 21.0469 14.2734 20.0291 14.2734 18.7852C14.2734 17.5412 13.2557 16.5234 12.0117 16.5234Z" }) }) }),
2647
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Menu, { ...props })
2038
+ var import_react_aria_components37 = require("react-aria-components");
2039
+ var import_system47 = require("@marigold/system");
2040
+ var import_jsx_runtime57 = require("react/jsx-runtime");
2041
+ var ActionMenu = ({ variant, size, ...props }) => {
2042
+ const classNames2 = (0, import_system47.useClassNames)({ component: "Menu", variant, size });
2043
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_react_aria_components37.MenuTrigger, { children: [
2044
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(_Button, { variant: "menu", size: "small", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_system47.SVG, { viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("path", { d: "M12.0117 7.47656C13.2557 7.47656 14.2734 6.45879 14.2734 5.21484C14.2734 3.9709 13.2557 2.95312 12.0117 2.95312C10.7678 2.95312 9.75 3.9709 9.75 5.21484C9.75 6.45879 10.7678 7.47656 12.0117 7.47656ZM12.0117 9.73828C10.7678 9.73828 9.75 10.7561 9.75 12C9.75 13.2439 10.7678 14.2617 12.0117 14.2617C13.2557 14.2617 14.2734 13.2439 14.2734 12C14.2734 10.7561 13.2557 9.73828 12.0117 9.73828ZM12.0117 16.5234C10.7678 16.5234 9.75 17.5412 9.75 18.7852C9.75 20.0291 10.7678 21.0469 12.0117 21.0469C13.2557 21.0469 14.2734 20.0291 14.2734 18.7852C14.2734 17.5412 13.2557 16.5234 12.0117 16.5234Z" }) }) }),
2045
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react_aria_components37.Menu, { ...props, className: classNames2.container, children: props.children }) })
2648
2046
  ] });
2649
2047
  };
2650
2048
 
2651
2049
  // src/Message/Message.tsx
2652
- var import_system50 = require("@marigold/system");
2653
- var import_jsx_runtime61 = require("react/jsx-runtime");
2050
+ var import_system48 = require("@marigold/system");
2051
+ var import_jsx_runtime58 = require("react/jsx-runtime");
2654
2052
  var icons = {
2655
- success: () => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2053
+ success: () => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2656
2054
  "svg",
2657
2055
  {
2658
2056
  xmlns: "http://www.w3.org/2000/svg",
2659
2057
  viewBox: "0 0 24 24",
2660
2058
  fill: "currentColor",
2661
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2059
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2662
2060
  "path",
2663
2061
  {
2664
2062
  fillRule: "evenodd",
@@ -2668,13 +2066,13 @@ var icons = {
2668
2066
  )
2669
2067
  }
2670
2068
  ),
2671
- info: () => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2069
+ info: () => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2672
2070
  "svg",
2673
2071
  {
2674
2072
  xmlns: "http://www.w3.org/2000/svg",
2675
2073
  viewBox: "0 0 24 24",
2676
2074
  fill: "currentColor",
2677
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2075
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2678
2076
  "path",
2679
2077
  {
2680
2078
  fillRule: "evenodd",
@@ -2684,13 +2082,13 @@ var icons = {
2684
2082
  )
2685
2083
  }
2686
2084
  ),
2687
- warning: () => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2085
+ warning: () => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2688
2086
  "svg",
2689
2087
  {
2690
2088
  xmlns: "http://www.w3.org/2000/svg",
2691
2089
  viewBox: "0 0 24 24",
2692
2090
  fill: "currentColor",
2693
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2091
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2694
2092
  "path",
2695
2093
  {
2696
2094
  fillRule: "evenodd",
@@ -2700,13 +2098,13 @@ var icons = {
2700
2098
  )
2701
2099
  }
2702
2100
  ),
2703
- error: () => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2101
+ error: () => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2704
2102
  "svg",
2705
2103
  {
2706
2104
  xmlns: "http://www.w3.org/2000/svg",
2707
2105
  viewBox: "0 0 24 24",
2708
2106
  fill: "currentColor",
2709
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2107
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2710
2108
  "path",
2711
2109
  {
2712
2110
  fillRule: "evenodd",
@@ -2718,106 +2116,47 @@ var icons = {
2718
2116
  )
2719
2117
  };
2720
2118
  var Message = ({
2721
- messageTitle,
2722
- variant = "info",
2723
- size,
2724
- children,
2725
- ...props
2726
- }) => {
2727
- const classNames2 = (0, import_system50.useClassNames)({ component: "Message", variant, size });
2728
- const Icon3 = icons[variant];
2729
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
2730
- "div",
2731
- {
2732
- className: (0, import_system50.cn)(
2733
- "grid auto-rows-min grid-cols-[min-content_auto] gap-1",
2734
- classNames2.container
2735
- ),
2736
- ...props,
2737
- children: [
2738
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: (0, import_system50.cn)("col-span-1 h-5 w-5 self-center", classNames2.icon), children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon3, {}) }),
2739
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2740
- "div",
2741
- {
2742
- className: (0, import_system50.cn)("col-start-2 row-start-1 self-center", classNames2.title),
2743
- children: messageTitle
2744
- }
2745
- ),
2746
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: (0, import_system50.cn)("col-start-2", classNames2.content), children })
2747
- ]
2748
- }
2749
- );
2750
- };
2751
-
2752
- // src/NumberField/NumberField.tsx
2753
- var import_react38 = require("react");
2754
- var import_react_aria_components16 = require("react-aria-components");
2755
- var import_system53 = require("@marigold/system");
2756
-
2757
- // src/Input/_Input.tsx
2758
- var import_react37 = require("react");
2759
- var import_react_aria_components14 = require("react-aria-components");
2760
- var import_system51 = require("@marigold/system");
2761
- var import_jsx_runtime62 = require("react/jsx-runtime");
2762
- var _Input = (0, import_react37.forwardRef)(
2763
- ({ type, icon, action, variant, size, className, ...props }, ref) => {
2764
- const classNames2 = (0, import_system51.useClassNames)({
2765
- component: "Input",
2766
- variant,
2767
- size
2768
- });
2769
- const inputIcon = icon ? (0, import_react37.cloneElement)(icon, {
2770
- className: (0, import_system51.cn)(
2771
- "pointer-events-none absolute",
2772
- classNames2.icon,
2773
- icon.props.className
2774
- ),
2775
- ...icon.props
2776
- }) : null;
2777
- const inputAction = action && !props.readOnly ? (0, import_react37.cloneElement)(action, {
2778
- className: (0, import_system51.cn)(
2779
- "absolute",
2780
- classNames2.action,
2781
- action.props.className
2782
- ),
2783
- ...action.props
2784
- }) : null;
2785
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
2786
- "div",
2787
- {
2788
- className: "group/input relative flex items-center",
2789
- "data-icon": icon && "",
2790
- "data-action": action && "",
2791
- children: [
2792
- inputIcon,
2793
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2794
- import_react_aria_components14.Input,
2795
- {
2796
- ...props,
2797
- className: (0, import_system51.cn)(
2798
- "w-full flex-1",
2799
- "disabled:cursor-not-allowed",
2800
- "[&[type=file]]:border-none [&[type=file]]:p-0",
2801
- "[&[type=color]]:ml-0 [&[type=color]]:border-none [&[type=color]]:bg-transparent [&[type=color]]:p-0",
2802
- classNames2.input,
2803
- className
2804
- ),
2805
- ref,
2806
- type
2807
- }
2808
- ),
2809
- inputAction
2810
- ]
2811
- }
2812
- );
2813
- }
2814
- );
2119
+ messageTitle,
2120
+ variant = "info",
2121
+ size,
2122
+ children,
2123
+ ...props
2124
+ }) => {
2125
+ const classNames2 = (0, import_system48.useClassNames)({ component: "Message", variant, size });
2126
+ const Icon3 = icons[variant];
2127
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
2128
+ "div",
2129
+ {
2130
+ className: (0, import_system48.cn)(
2131
+ "grid auto-rows-min grid-cols-[min-content_auto] gap-1",
2132
+ classNames2.container
2133
+ ),
2134
+ ...props,
2135
+ children: [
2136
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: (0, import_system48.cn)("col-span-1 h-5 w-5 self-center", classNames2.icon), children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon3, {}) }),
2137
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2138
+ "div",
2139
+ {
2140
+ className: (0, import_system48.cn)("col-start-2 row-start-1 self-center", classNames2.title),
2141
+ children: messageTitle
2142
+ }
2143
+ ),
2144
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: (0, import_system48.cn)("col-start-2", classNames2.content), children })
2145
+ ]
2146
+ }
2147
+ );
2148
+ };
2149
+
2150
+ // src/NumberField/NumberField.tsx
2151
+ var import_react30 = require("react");
2152
+ var import_react_aria_components39 = require("react-aria-components");
2153
+ var import_system50 = require("@marigold/system");
2815
2154
 
2816
2155
  // src/NumberField/StepButton.tsx
2817
- var import_react_aria_components15 = require("react-aria-components");
2818
- var import_system52 = require("@marigold/system");
2819
- var import_jsx_runtime63 = require("react/jsx-runtime");
2820
- var Plus = () => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2156
+ var import_react_aria_components38 = require("react-aria-components");
2157
+ var import_system49 = require("@marigold/system");
2158
+ var import_jsx_runtime59 = require("react/jsx-runtime");
2159
+ var Plus = () => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2821
2160
  "path",
2822
2161
  {
2823
2162
  fillRule: "evenodd",
@@ -2825,7 +2164,7 @@ var Plus = () => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("svg", { width: 1
2825
2164
  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"
2826
2165
  }
2827
2166
  ) });
2828
- var Minus = () => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2167
+ var Minus = () => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2829
2168
  "path",
2830
2169
  {
2831
2170
  fillRule: "evenodd",
@@ -2835,10 +2174,10 @@ var Minus = () => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("svg", { width:
2835
2174
  ) });
2836
2175
  var _StepButton = ({ direction, className, ...props }) => {
2837
2176
  const Icon3 = direction === "up" ? Plus : Minus;
2838
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2839
- import_react_aria_components15.Button,
2177
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2178
+ import_react_aria_components38.Button,
2840
2179
  {
2841
- className: (0, import_system52.cn)(
2180
+ className: (0, import_system49.cn)(
2842
2181
  [
2843
2182
  "flex items-center justify-center",
2844
2183
  "cursor-pointer data-[disabled]:cursor-not-allowed"
@@ -2846,14 +2185,14 @@ var _StepButton = ({ direction, className, ...props }) => {
2846
2185
  className
2847
2186
  ),
2848
2187
  ...props,
2849
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Icon3, {})
2188
+ children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon3, {})
2850
2189
  }
2851
2190
  );
2852
2191
  };
2853
2192
 
2854
2193
  // src/NumberField/NumberField.tsx
2855
- var import_jsx_runtime64 = require("react/jsx-runtime");
2856
- var _NumberField = (0, import_react38.forwardRef)(
2194
+ var import_jsx_runtime60 = require("react/jsx-runtime");
2195
+ var _NumberField = (0, import_react30.forwardRef)(
2857
2196
  ({
2858
2197
  variant,
2859
2198
  size,
@@ -2864,7 +2203,7 @@ var _NumberField = (0, import_react38.forwardRef)(
2864
2203
  hideStepper,
2865
2204
  ...rest
2866
2205
  }, ref) => {
2867
- const classNames2 = (0, import_system53.useClassNames)({
2206
+ const classNames2 = (0, import_system50.useClassNames)({
2868
2207
  component: "NumberField",
2869
2208
  size,
2870
2209
  variant
@@ -2877,8 +2216,8 @@ var _NumberField = (0, import_react38.forwardRef)(
2877
2216
  ...rest
2878
2217
  };
2879
2218
  const showStepper = !hideStepper;
2880
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(FieldBase2, { as: import_react_aria_components16.NumberField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_react_aria_components16.Group, { className: (0, import_system53.cn)("flex items-stretch", classNames2.group), children: [
2881
- showStepper && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
2219
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(FieldBase, { as: import_react_aria_components39.NumberField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_react_aria_components39.Group, { className: (0, import_system50.cn)("flex items-stretch", classNames2.group), children: [
2220
+ showStepper && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2882
2221
  _StepButton,
2883
2222
  {
2884
2223
  className: classNames2.stepper,
@@ -2886,7 +2225,7 @@ var _NumberField = (0, import_react38.forwardRef)(
2886
2225
  slot: "decrement"
2887
2226
  }
2888
2227
  ),
2889
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
2228
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2890
2229
  _Input,
2891
2230
  {
2892
2231
  ref,
@@ -2895,7 +2234,7 @@ var _NumberField = (0, import_react38.forwardRef)(
2895
2234
  className: classNames2.input
2896
2235
  }
2897
2236
  ) }),
2898
- showStepper && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
2237
+ showStepper && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2899
2238
  _StepButton,
2900
2239
  {
2901
2240
  className: classNames2.stepper,
@@ -2908,37 +2247,37 @@ var _NumberField = (0, import_react38.forwardRef)(
2908
2247
  );
2909
2248
 
2910
2249
  // src/Provider/index.ts
2911
- var import_system55 = require("@marigold/system");
2250
+ var import_system52 = require("@marigold/system");
2912
2251
 
2913
2252
  // src/Provider/MarigoldProvider.tsx
2914
- var import_overlays4 = require("@react-aria/overlays");
2915
- var import_system54 = require("@marigold/system");
2916
- var import_jsx_runtime65 = require("react/jsx-runtime");
2253
+ var import_overlays = require("@react-aria/overlays");
2254
+ var import_system51 = require("@marigold/system");
2255
+ var import_jsx_runtime61 = require("react/jsx-runtime");
2917
2256
  function MarigoldProvider({
2918
2257
  children,
2919
2258
  theme
2920
2259
  }) {
2921
- const outerTheme = (0, import_system54.useTheme)();
2922
- const isTopLevel = outerTheme === import_system54.defaultTheme;
2923
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_system54.ThemeProvider, { theme, children: isTopLevel ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_overlays4.OverlayProvider, { children }) : children });
2260
+ const outerTheme = (0, import_system51.useTheme)();
2261
+ const isTopLevel = outerTheme === import_system51.defaultTheme;
2262
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_system51.ThemeProvider, { theme, children: isTopLevel ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_overlays.OverlayProvider, { children }) : children });
2924
2263
  }
2925
2264
 
2926
2265
  // src/Radio/Radio.tsx
2927
- var import_react40 = require("react");
2928
- var import_react_aria_components18 = require("react-aria-components");
2929
- var import_system57 = require("@marigold/system");
2266
+ var import_react32 = require("react");
2267
+ var import_react_aria_components41 = require("react-aria-components");
2268
+ var import_system54 = require("@marigold/system");
2930
2269
 
2931
2270
  // src/Radio/Context.ts
2932
- var import_react39 = require("react");
2933
- var RadioGroupContext = (0, import_react39.createContext)(
2271
+ var import_react31 = require("react");
2272
+ var RadioGroupContext = (0, import_react31.createContext)(
2934
2273
  null
2935
2274
  );
2936
- var useRadioGroupContext = () => (0, import_react39.useContext)(RadioGroupContext);
2275
+ var useRadioGroupContext = () => (0, import_react31.useContext)(RadioGroupContext);
2937
2276
 
2938
2277
  // src/Radio/RadioGroup.tsx
2939
- var import_react_aria_components17 = require("react-aria-components");
2940
- var import_system56 = require("@marigold/system");
2941
- var import_jsx_runtime66 = require("react/jsx-runtime");
2278
+ var import_react_aria_components40 = require("react-aria-components");
2279
+ var import_system53 = require("@marigold/system");
2280
+ var import_jsx_runtime62 = require("react/jsx-runtime");
2942
2281
  var _RadioGroup = ({
2943
2282
  variant,
2944
2283
  size,
@@ -2954,7 +2293,7 @@ var _RadioGroup = ({
2954
2293
  width,
2955
2294
  ...rest
2956
2295
  }) => {
2957
- const classNames2 = (0, import_system56.useClassNames)({ component: "Radio", variant, size });
2296
+ const classNames2 = (0, import_system53.useClassNames)({ component: "Radio", variant, size });
2958
2297
  const props = {
2959
2298
  isDisabled: disabled,
2960
2299
  isReadOnly: readOnly,
@@ -2962,10 +2301,10 @@ var _RadioGroup = ({
2962
2301
  isInvalid: error,
2963
2302
  ...rest
2964
2303
  };
2965
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
2966
- FieldBase2,
2304
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2305
+ FieldBase,
2967
2306
  {
2968
- as: import_react_aria_components17.RadioGroup,
2307
+ as: import_react_aria_components40.RadioGroup,
2969
2308
  width,
2970
2309
  label,
2971
2310
  description,
@@ -2973,18 +2312,18 @@ var _RadioGroup = ({
2973
2312
  variant,
2974
2313
  size,
2975
2314
  ...props,
2976
- children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
2315
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2977
2316
  "div",
2978
2317
  {
2979
2318
  role: "presentation",
2980
2319
  "data-testid": "group",
2981
2320
  "data-orientation": orientation,
2982
- className: (0, import_system56.cn)(
2321
+ className: (0, import_system53.cn)(
2983
2322
  classNames2.group,
2984
2323
  "flex items-start",
2985
2324
  orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
2986
2325
  ),
2987
- children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(RadioGroupContext.Provider, { value: { width, variant, size }, children })
2326
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(RadioGroupContext.Provider, { value: { width, variant, size }, children })
2988
2327
  }
2989
2328
  )
2990
2329
  }
@@ -2992,33 +2331,33 @@ var _RadioGroup = ({
2992
2331
  };
2993
2332
 
2994
2333
  // src/Radio/Radio.tsx
2995
- var import_jsx_runtime67 = require("react/jsx-runtime");
2996
- var Dot = () => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
2997
- var Icon2 = ({ checked, className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
2334
+ var import_jsx_runtime63 = require("react/jsx-runtime");
2335
+ var Dot = () => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
2336
+ var Icon2 = ({ checked, className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2998
2337
  "div",
2999
2338
  {
3000
- className: (0, import_system57.cn)(
2339
+ className: (0, import_system54.cn)(
3001
2340
  "bg-secondary-50 flex h-4 w-4 items-center justify-center rounded-[50%] border p-1",
3002
2341
  className
3003
2342
  ),
3004
2343
  "aria-hidden": "true",
3005
2344
  ...props,
3006
- children: checked ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Dot, {}) : null
2345
+ children: checked ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Dot, {}) : null
3007
2346
  }
3008
2347
  );
3009
- var _Radio = (0, import_react40.forwardRef)(
2348
+ var _Radio = (0, import_react32.forwardRef)(
3010
2349
  ({ value, disabled, width, children, ...props }, ref) => {
3011
2350
  const { variant, size, width: groupWidth } = useRadioGroupContext();
3012
- const classNames2 = (0, import_system57.useClassNames)({
2351
+ const classNames2 = (0, import_system54.useClassNames)({
3013
2352
  component: "Radio",
3014
2353
  variant: variant || props.variant,
3015
2354
  size: size || props.size
3016
2355
  });
3017
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3018
- import_react_aria_components18.Radio,
2356
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2357
+ import_react_aria_components41.Radio,
3019
2358
  {
3020
2359
  ref,
3021
- className: (0, import_system57.cn)(
2360
+ className: (0, import_system54.cn)(
3022
2361
  "group/radio",
3023
2362
  "relative flex items-center gap-[1ch]",
3024
2363
  width || groupWidth || "w-full",
@@ -3027,18 +2366,18 @@ var _Radio = (0, import_react40.forwardRef)(
3027
2366
  value,
3028
2367
  isDisabled: disabled,
3029
2368
  ...props,
3030
- children: ({ isSelected }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_jsx_runtime67.Fragment, { children: [
3031
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
2369
+ children: ({ isSelected }) => /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
2370
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3032
2371
  Icon2,
3033
2372
  {
3034
2373
  checked: isSelected,
3035
- className: (0, import_system57.cn)(
2374
+ className: (0, import_system54.cn)(
3036
2375
  disabled ? "cursor-not-allowed" : "cursor-pointer",
3037
2376
  classNames2.radio
3038
2377
  )
3039
2378
  }
3040
2379
  ),
3041
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: classNames2.label, children })
2380
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: classNames2.label, children })
3042
2381
  ] })
3043
2382
  }
3044
2383
  );
@@ -3047,10 +2386,10 @@ var _Radio = (0, import_react40.forwardRef)(
3047
2386
  _Radio.Group = _RadioGroup;
3048
2387
 
3049
2388
  // src/SearchField/SearchField.tsx
3050
- var import_react41 = require("react");
3051
- var import_react_aria_components19 = require("react-aria-components");
3052
- var import_jsx_runtime68 = require("react/jsx-runtime");
3053
- var SearchIcon2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
2389
+ var import_react33 = require("react");
2390
+ var import_react_aria_components42 = require("react-aria-components");
2391
+ var import_jsx_runtime64 = require("react/jsx-runtime");
2392
+ var SearchIcon2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3054
2393
  "svg",
3055
2394
  {
3056
2395
  xmlns: "http://www.w3.org/2000/svg",
@@ -3059,10 +2398,10 @@ var SearchIcon2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3059
2398
  width: 24,
3060
2399
  height: 24,
3061
2400
  ...props,
3062
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("path", { d: "M16.1865 14.5142H15.3057L14.9936 14.2131C16.0862 12.9421 16.744 11.292 16.744 9.497C16.744 5.49443 13.4996 2.25 9.497 2.25C5.49443 2.25 2.25 5.49443 2.25 9.497C2.25 13.4996 5.49443 16.744 9.497 16.744C11.292 16.744 12.9421 16.0862 14.2131 14.9936L14.5142 15.3057V16.1865L20.0888 21.75L21.75 20.0888L16.1865 14.5142ZM9.49701 14.5142C6.72085 14.5142 4.47986 12.2732 4.47986 9.49701C4.47986 6.72085 6.72085 4.47986 9.49701 4.47986C12.2732 4.47986 14.5142 6.72085 14.5142 9.49701C14.5142 12.2732 12.2732 14.5142 9.49701 14.5142Z" })
2401
+ children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("path", { d: "M16.1865 14.5142H15.3057L14.9936 14.2131C16.0862 12.9421 16.744 11.292 16.744 9.497C16.744 5.49443 13.4996 2.25 9.497 2.25C5.49443 2.25 2.25 5.49443 2.25 9.497C2.25 13.4996 5.49443 16.744 9.497 16.744C11.292 16.744 12.9421 16.0862 14.2131 14.9936L14.5142 15.3057V16.1865L20.0888 21.75L21.75 20.0888L16.1865 14.5142ZM9.49701 14.5142C6.72085 14.5142 4.47986 12.2732 4.47986 9.49701C4.47986 6.72085 6.72085 4.47986 9.49701 4.47986C12.2732 4.47986 14.5142 6.72085 14.5142 9.49701C14.5142 12.2732 12.2732 14.5142 9.49701 14.5142Z" })
3063
2402
  }
3064
2403
  );
3065
- var _SearchField = (0, import_react41.forwardRef)(
2404
+ var _SearchField = (0, import_react33.forwardRef)(
3066
2405
  ({ disabled, required, readOnly, error, action, ...rest }, ref) => {
3067
2406
  const props = {
3068
2407
  ...rest,
@@ -3071,155 +2410,64 @@ var _SearchField = (0, import_react41.forwardRef)(
3071
2410
  isReadOnly: readOnly,
3072
2411
  isInvalid: error
3073
2412
  };
3074
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(FieldBase2, { as: import_react_aria_components19.SearchField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(_Input, { ref, icon: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(SearchIcon2, {}) }) });
2413
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(FieldBase, { as: import_react_aria_components42.SearchField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(_Input, { ref, icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(SearchIcon2, {}) }) });
3075
2414
  }
3076
2415
  );
3077
2416
 
3078
2417
  // src/Select/Select.tsx
3079
- var import_react42 = require("react");
3080
- var import_button3 = require("@react-aria/button");
3081
- var import_focus8 = require("@react-aria/focus");
3082
- var import_i18n8 = require("@react-aria/i18n");
3083
- var import_select = require("@react-aria/select");
3084
- var import_utils16 = require("@react-aria/utils");
3085
- var import_collections5 = require("@react-stately/collections");
3086
- var import_select2 = require("@react-stately/select");
3087
- var import_system58 = require("@marigold/system");
3088
-
3089
- // src/Select/intl.ts
3090
- var messages = {
3091
- "en-US": {
3092
- placeholder: "Select an option\u2026"
3093
- },
3094
- "de-DE": {
3095
- placeholder: "Option ausw\xE4hlen\u2026"
3096
- }
3097
- };
3098
-
3099
- // src/Select/Select.tsx
3100
- var import_jsx_runtime69 = require("react/jsx-runtime");
3101
- var Select = (0, import_react42.forwardRef)(
2418
+ var import_react34 = require("react");
2419
+ var import_react_aria_components43 = require("react-aria-components");
2420
+ var import_system55 = require("@marigold/system");
2421
+ var import_jsx_runtime65 = require("react/jsx-runtime");
2422
+ var _Select = (0, import_react34.forwardRef)(
3102
2423
  ({
3103
- variant,
3104
- size,
3105
2424
  width,
3106
- open,
3107
2425
  disabled,
3108
2426
  required,
2427
+ items,
2428
+ variant,
2429
+ size,
3109
2430
  error,
2431
+ open,
3110
2432
  onChange,
3111
2433
  ...rest
3112
2434
  }, ref) => {
3113
- const formatMessage = (0, import_i18n8.useLocalizedStringFormatter)(messages);
3114
2435
  const props = {
3115
- isOpen: open,
3116
2436
  isDisabled: disabled,
2437
+ isInvalid: error,
2438
+ isOpen: open,
3117
2439
  isRequired: required,
3118
- validationState: error ? "invalid" : "valid",
3119
- placeholder: rest.placeholder || formatMessage.format("placeholder"),
3120
2440
  onSelectionChange: onChange,
3121
2441
  ...rest
3122
2442
  };
3123
- const buttonRef = (0, import_utils16.useObjectRef)(ref);
3124
- const listboxRef = (0, import_react42.useRef)(null);
3125
- const state = (0, import_select2.useSelectState)(props);
3126
- const {
3127
- labelProps,
3128
- triggerProps,
3129
- valueProps,
3130
- menuProps,
3131
- descriptionProps,
3132
- errorMessageProps
3133
- } = (0, import_select.useSelect)(props, state, buttonRef);
3134
- const { buttonProps } = (0, import_button3.useButton)(
3135
- { isDisabled: disabled, ...triggerProps },
3136
- buttonRef
3137
- );
3138
- const { focusProps, isFocusVisible } = (0, import_focus8.useFocusRing)();
3139
- const classNames2 = (0, import_system58.useClassNames)({ component: "Select", variant, size });
3140
- const isSmallScreen = (0, import_system58.useSmallScreen)();
3141
- const stateProps = (0, import_system58.useStateProps)({
3142
- disabled,
3143
- error,
3144
- focusVisible: isFocusVisible,
3145
- expanded: state.isOpen,
3146
- required
3147
- });
3148
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
3149
- FieldBase,
3150
- {
3151
- variant,
3152
- size,
3153
- width,
3154
- label: props.label,
3155
- labelProps: { elementType: "span", ...labelProps },
3156
- description: props.description,
3157
- descriptionProps,
3158
- error,
3159
- errorMessage: props.errorMessage,
3160
- errorMessageProps,
3161
- stateProps,
3162
- disabled,
3163
- children: [
3164
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3165
- import_select.HiddenSelect,
3166
- {
3167
- state,
3168
- triggerRef: buttonRef,
3169
- label: props.label,
3170
- name: props.name,
3171
- isDisabled: disabled
3172
- }
3173
- ),
3174
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
3175
- "button",
3176
- {
3177
- className: (0, import_system58.cn)(
3178
- "flex w-full items-center justify-between gap-1 overflow-hidden",
3179
- classNames2.select
3180
- ),
3181
- ref: buttonRef,
3182
- ...(0, import_utils16.mergeProps)(buttonProps, focusProps),
3183
- ...stateProps,
3184
- children: [
3185
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "overflow-hidden whitespace-nowrap", ...valueProps, children: state.selectedItem ? state.selectedItem.rendered : props.placeholder }),
3186
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ChevronDown, { className: "h-4 w-4" })
3187
- ]
3188
- }
2443
+ const classNames2 = (0, import_system55.useClassNames)({ component: "Select", variant, size });
2444
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(FieldBase, { isOpen: true, as: import_react_aria_components43.Select, ref, ...props, children: [
2445
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
2446
+ import_react_aria_components43.Button,
2447
+ {
2448
+ className: (0, import_system55.cn)(
2449
+ "flex w-full items-center justify-between gap-1 overflow-hidden",
2450
+ classNames2.select
3189
2451
  ),
3190
- isSmallScreen ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Tray, { state, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3191
- ListBox,
3192
- {
3193
- ref: listboxRef,
3194
- state,
3195
- variant,
3196
- size,
3197
- ...menuProps
3198
- }
3199
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Popover, { state, triggerRef: buttonRef, scrollRef: listboxRef, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3200
- ListBox,
3201
- {
3202
- ref: listboxRef,
3203
- state,
3204
- variant,
3205
- size,
3206
- ...menuProps
3207
- }
3208
- ) })
3209
- ]
3210
- }
3211
- );
2452
+ children: [
2453
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react_aria_components43.SelectValue, {}),
2454
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ChevronDown, { className: "h-4 w-4" })
2455
+ ]
2456
+ }
2457
+ ),
2458
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(_ListBox, { items, children: props.children }) })
2459
+ ] });
3212
2460
  }
3213
2461
  );
3214
- Select.Option = import_collections5.Item;
3215
- Select.Section = import_collections5.Section;
2462
+ _Select.Option = _ListBox.Item;
2463
+ _Select.Section = _ListBox.Section;
3216
2464
 
3217
2465
  // src/Slider/Slider.tsx
3218
- var import_react43 = require("react");
3219
- var import_react_aria_components20 = require("react-aria-components");
3220
- var import_system59 = require("@marigold/system");
3221
- var import_jsx_runtime70 = require("react/jsx-runtime");
3222
- var _Slider = (0, import_react43.forwardRef)(
2466
+ var import_react35 = require("react");
2467
+ var import_react_aria_components44 = require("react-aria-components");
2468
+ var import_system56 = require("@marigold/system");
2469
+ var import_jsx_runtime66 = require("react/jsx-runtime");
2470
+ var _Slider = (0, import_react35.forwardRef)(
3223
2471
  ({
3224
2472
  thumbLabels,
3225
2473
  variant,
@@ -3228,7 +2476,7 @@ var _Slider = (0, import_react43.forwardRef)(
3228
2476
  disabled,
3229
2477
  ...rest
3230
2478
  }, ref) => {
3231
- const classNames2 = (0, import_system59.useClassNames)({
2479
+ const classNames2 = (0, import_system56.useClassNames)({
3232
2480
  component: "Slider",
3233
2481
  variant,
3234
2482
  size
@@ -3237,27 +2485,27 @@ var _Slider = (0, import_react43.forwardRef)(
3237
2485
  isDisabled: disabled,
3238
2486
  ...rest
3239
2487
  };
3240
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
3241
- import_react_aria_components20.Slider,
2488
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
2489
+ import_react_aria_components44.Slider,
3242
2490
  {
3243
- className: (0, import_system59.cn)(
2491
+ className: (0, import_system56.cn)(
3244
2492
  "grid grid-cols-[auto_1fr] gap-y-1",
3245
2493
  classNames2.container,
3246
- import_system59.width[width]
2494
+ import_system56.width[width]
3247
2495
  ),
3248
2496
  ref,
3249
2497
  ...props,
3250
2498
  children: [
3251
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(_Label, { children: props.children }),
3252
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react_aria_components20.SliderOutput, { className: (0, import_system59.cn)("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
3253
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3254
- import_react_aria_components20.SliderTrack,
2499
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(_Label, { children: props.children }),
2500
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react_aria_components44.SliderOutput, { className: (0, import_system56.cn)("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
2501
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
2502
+ import_react_aria_components44.SliderTrack,
3255
2503
  {
3256
- className: (0, import_system59.cn)("relative col-span-2 h-2 w-full", classNames2.track),
3257
- children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3258
- import_react_aria_components20.SliderThumb,
2504
+ className: (0, import_system56.cn)("relative col-span-2 h-2 w-full", classNames2.track),
2505
+ children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
2506
+ import_react_aria_components44.SliderThumb,
3259
2507
  {
3260
- className: (0, import_system59.cn)("top-1/2 cursor-pointer", classNames2.thumb),
2508
+ className: (0, import_system56.cn)("top-1/2 cursor-pointer", classNames2.thumb),
3261
2509
  index: i,
3262
2510
  "aria-label": thumbLabels == null ? void 0 : thumbLabels[i]
3263
2511
  },
@@ -3272,12 +2520,12 @@ var _Slider = (0, import_react43.forwardRef)(
3272
2520
  );
3273
2521
 
3274
2522
  // src/Split/Split.tsx
3275
- var import_jsx_runtime71 = require("react/jsx-runtime");
3276
- var Split = (props) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { ...props, role: "separator", className: "grow" });
2523
+ var import_jsx_runtime67 = require("react/jsx-runtime");
2524
+ var Split = (props) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { ...props, role: "separator", className: "grow" });
3277
2525
 
3278
2526
  // src/Stack/Stack.tsx
3279
- var import_system60 = require("@marigold/system");
3280
- var import_jsx_runtime72 = require("react/jsx-runtime");
2527
+ var import_system57 = require("@marigold/system");
2528
+ var import_jsx_runtime68 = require("react/jsx-runtime");
3281
2529
  var Stack = ({
3282
2530
  children,
3283
2531
  space = 0,
@@ -3288,14 +2536,14 @@ var Stack = ({
3288
2536
  ...props
3289
2537
  }) => {
3290
2538
  var _a, _b, _c, _d;
3291
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
2539
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3292
2540
  "div",
3293
2541
  {
3294
- className: (0, import_system60.cn)(
2542
+ className: (0, import_system57.cn)(
3295
2543
  "flex flex-col",
3296
- import_system60.gapSpace[space],
3297
- alignX && ((_b = (_a = import_system60.alignment) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
3298
- alignY && ((_d = (_c = import_system60.alignment) == null ? void 0 : _c.vertical) == null ? void 0 : _d.alignmentY[alignY]),
2544
+ import_system57.gapSpace[space],
2545
+ alignX && ((_b = (_a = import_system57.alignment) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
2546
+ alignY && ((_d = (_c = import_system57.alignment) == null ? void 0 : _c.vertical) == null ? void 0 : _d.alignmentY[alignY]),
3299
2547
  stretch && "h-full w-full"
3300
2548
  ),
3301
2549
  ...props,
@@ -3305,11 +2553,11 @@ var Stack = ({
3305
2553
  };
3306
2554
 
3307
2555
  // src/Switch/Switch.tsx
3308
- var import_react44 = require("react");
3309
- var import_react_aria_components21 = require("react-aria-components");
3310
- var import_system61 = require("@marigold/system");
3311
- var import_jsx_runtime73 = require("react/jsx-runtime");
3312
- var _Switch = (0, import_react44.forwardRef)(
2556
+ var import_react36 = require("react");
2557
+ var import_react_aria_components45 = require("react-aria-components");
2558
+ var import_system58 = require("@marigold/system");
2559
+ var import_jsx_runtime69 = require("react/jsx-runtime");
2560
+ var _Switch = (0, import_react36.forwardRef)(
3313
2561
  ({
3314
2562
  variant,
3315
2563
  size,
@@ -3320,37 +2568,37 @@ var _Switch = (0, import_react44.forwardRef)(
3320
2568
  readOnly,
3321
2569
  ...rest
3322
2570
  }, ref) => {
3323
- const classNames2 = (0, import_system61.useClassNames)({ component: "Switch", size, variant });
2571
+ const classNames2 = (0, import_system58.useClassNames)({ component: "Switch", size, variant });
3324
2572
  const props = {
3325
2573
  isDisabled: disabled,
3326
2574
  isReadOnly: readOnly,
3327
2575
  isSelected: selected,
3328
2576
  ...rest
3329
2577
  };
3330
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
3331
- import_react_aria_components21.Switch,
2578
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
2579
+ import_react_aria_components45.Switch,
3332
2580
  {
3333
2581
  ...props,
3334
2582
  ref,
3335
- className: (0, import_system61.cn)(
3336
- import_system61.width[width],
2583
+ className: (0, import_system58.cn)(
2584
+ import_system58.width[width],
3337
2585
  "group/switch",
3338
2586
  "flex items-center justify-between gap-[1ch]",
3339
2587
  classNames2.container
3340
2588
  ),
3341
2589
  children: [
3342
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(_Label, { elementType: "span", children }),
3343
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
2590
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(_Label, { elementType: "span", children }),
2591
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3344
2592
  "div",
3345
2593
  {
3346
- className: (0, import_system61.cn)(
2594
+ className: (0, import_system58.cn)(
3347
2595
  "h-6 w-12 basis-12 rounded-3xl group-disabled/switch:cursor-not-allowed ",
3348
2596
  classNames2.track
3349
2597
  ),
3350
- children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
2598
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3351
2599
  "div",
3352
2600
  {
3353
- className: (0, import_system61.cn)(
2601
+ className: (0, import_system58.cn)(
3354
2602
  "h-[22px] w-[22px]",
3355
2603
  "cubic-bezier(.7,0,.3,1)",
3356
2604
  "absolute left-0 top-px",
@@ -3369,33 +2617,33 @@ var _Switch = (0, import_react44.forwardRef)(
3369
2617
  );
3370
2618
 
3371
2619
  // src/Table/Table.tsx
3372
- var import_react52 = require("react");
2620
+ var import_react44 = require("react");
3373
2621
  var import_table9 = require("@react-aria/table");
3374
2622
  var import_table10 = require("@react-stately/table");
3375
- var import_system68 = require("@marigold/system");
2623
+ var import_system65 = require("@marigold/system");
3376
2624
 
3377
2625
  // src/Table/Context.tsx
3378
- var import_react45 = require("react");
3379
- var TableContext = (0, import_react45.createContext)({});
3380
- var useTableContext = () => (0, import_react45.useContext)(TableContext);
2626
+ var import_react37 = require("react");
2627
+ var TableContext = (0, import_react37.createContext)({});
2628
+ var useTableContext = () => (0, import_react37.useContext)(TableContext);
3381
2629
 
3382
2630
  // src/Table/TableBody.tsx
3383
2631
  var import_table = require("@react-aria/table");
3384
- var import_jsx_runtime74 = require("react/jsx-runtime");
2632
+ var import_jsx_runtime70 = require("react/jsx-runtime");
3385
2633
  var TableBody = ({ children }) => {
3386
2634
  const { rowGroupProps } = (0, import_table.useTableRowGroup)();
3387
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("tbody", { ...rowGroupProps, children });
2635
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("tbody", { ...rowGroupProps, children });
3388
2636
  };
3389
2637
 
3390
2638
  // src/Table/TableCell.tsx
3391
- var import_react46 = require("react");
3392
- var import_focus9 = require("@react-aria/focus");
2639
+ var import_react38 = require("react");
2640
+ var import_focus2 = require("@react-aria/focus");
3393
2641
  var import_table2 = require("@react-aria/table");
3394
- var import_utils17 = require("@react-aria/utils");
3395
- var import_system62 = require("@marigold/system");
3396
- var import_jsx_runtime75 = require("react/jsx-runtime");
3397
- var TableCell = ({ cell }) => {
3398
- const ref = (0, import_react46.useRef)(null);
2642
+ var import_utils3 = require("@react-aria/utils");
2643
+ var import_system59 = require("@marigold/system");
2644
+ var import_jsx_runtime71 = require("react/jsx-runtime");
2645
+ var TableCell = ({ cell, align }) => {
2646
+ const ref = (0, import_react38.useRef)(null);
3399
2647
  const { interactive, state, classNames: classNames2 } = useTableContext();
3400
2648
  const disabled = state.disabledKeys.has(cell.parentKey);
3401
2649
  const { gridCellProps } = (0, import_table2.useTableCell)(
@@ -3414,26 +2662,27 @@ var TableCell = ({ cell }) => {
3414
2662
  onMouseDown: (e) => e.stopPropagation(),
3415
2663
  onPointerDown: (e) => e.stopPropagation()
3416
2664
  };
3417
- const { focusProps, isFocusVisible } = (0, import_focus9.useFocusRing)();
3418
- const stateProps = (0, import_system62.useStateProps)({ disabled, focusVisible: isFocusVisible });
3419
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
2665
+ const { focusProps, isFocusVisible } = (0, import_focus2.useFocusRing)();
2666
+ const stateProps = (0, import_system59.useStateProps)({ disabled, focusVisible: isFocusVisible });
2667
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3420
2668
  "td",
3421
2669
  {
3422
2670
  ref,
3423
2671
  className: classNames2 == null ? void 0 : classNames2.cell,
3424
- ...(0, import_utils17.mergeProps)(cellProps, focusProps),
2672
+ ...(0, import_utils3.mergeProps)(cellProps, focusProps),
3425
2673
  ...stateProps,
2674
+ align,
3426
2675
  children: cell.rendered
3427
2676
  }
3428
2677
  );
3429
2678
  };
3430
2679
 
3431
2680
  // src/Table/TableCheckboxCell.tsx
3432
- var import_react47 = require("react");
3433
- var import_focus10 = require("@react-aria/focus");
2681
+ var import_react39 = require("react");
2682
+ var import_focus3 = require("@react-aria/focus");
3434
2683
  var import_table3 = require("@react-aria/table");
3435
- var import_utils18 = require("@react-aria/utils");
3436
- var import_system63 = require("@marigold/system");
2684
+ var import_utils4 = require("@react-aria/utils");
2685
+ var import_system60 = require("@marigold/system");
3437
2686
 
3438
2687
  // src/Table/utils.ts
3439
2688
  var mapCheckboxProps = ({
@@ -3456,9 +2705,9 @@ var mapCheckboxProps = ({
3456
2705
  };
3457
2706
 
3458
2707
  // src/Table/TableCheckboxCell.tsx
3459
- var import_jsx_runtime76 = require("react/jsx-runtime");
3460
- var TableCheckboxCell = ({ cell }) => {
3461
- const ref = (0, import_react47.useRef)(null);
2708
+ var import_jsx_runtime72 = require("react/jsx-runtime");
2709
+ var TableCheckboxCell = ({ cell, align }) => {
2710
+ const ref = (0, import_react39.useRef)(null);
3462
2711
  const { state, classNames: classNames2 } = useTableContext();
3463
2712
  const disabled = state.disabledKeys.has(cell.parentKey);
3464
2713
  const { gridCellProps } = (0, import_table3.useTableCell)(
@@ -3471,36 +2720,38 @@ var TableCheckboxCell = ({ cell }) => {
3471
2720
  const { checkboxProps } = mapCheckboxProps(
3472
2721
  (0, import_table3.useTableSelectionCheckbox)({ key: cell.parentKey }, state)
3473
2722
  );
3474
- const { focusProps, isFocusVisible } = (0, import_focus10.useFocusRing)();
3475
- const stateProps = (0, import_system63.useStateProps)({ disabled, focusVisible: isFocusVisible });
3476
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
2723
+ const { focusProps, isFocusVisible } = (0, import_focus3.useFocusRing)();
2724
+ const stateProps = (0, import_system60.useStateProps)({ disabled, focusVisible: isFocusVisible });
2725
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3477
2726
  "td",
3478
2727
  {
3479
2728
  ref,
3480
- className: (0, import_system63.cn)("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
3481
- ...(0, import_utils18.mergeProps)(gridCellProps, focusProps),
2729
+ className: (0, import_system60.cn)("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
2730
+ align,
2731
+ ...(0, import_utils4.mergeProps)(gridCellProps, focusProps),
3482
2732
  ...stateProps,
3483
- children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(_Checkbox, { ...checkboxProps })
2733
+ children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(_Checkbox, { ...checkboxProps })
3484
2734
  }
3485
2735
  );
3486
2736
  };
3487
2737
 
3488
2738
  // src/Table/TableColumnHeader.tsx
3489
- var import_react48 = require("react");
3490
- var import_focus11 = require("@react-aria/focus");
3491
- var import_interactions5 = require("@react-aria/interactions");
2739
+ var import_react40 = require("react");
2740
+ var import_focus4 = require("@react-aria/focus");
2741
+ var import_interactions = require("@react-aria/interactions");
3492
2742
  var import_table4 = require("@react-aria/table");
3493
- var import_utils20 = require("@react-aria/utils");
3494
- var import_icons2 = require("@marigold/icons");
3495
- var import_system64 = require("@marigold/system");
3496
- var import_system65 = require("@marigold/system");
3497
- var import_jsx_runtime77 = require("react/jsx-runtime");
2743
+ var import_utils6 = require("@react-aria/utils");
2744
+ var import_icons3 = require("@marigold/icons");
2745
+ var import_system61 = require("@marigold/system");
2746
+ var import_system62 = require("@marigold/system");
2747
+ var import_jsx_runtime73 = require("react/jsx-runtime");
3498
2748
  var TableColumnHeader = ({
3499
2749
  column,
3500
- width = "auto"
2750
+ width = "auto",
2751
+ align
3501
2752
  }) => {
3502
2753
  var _a, _b;
3503
- const ref = (0, import_react48.useRef)(null);
2754
+ const ref = (0, import_react40.useRef)(null);
3504
2755
  const { state, classNames: classNames2 } = useTableContext();
3505
2756
  const { columnHeaderProps } = (0, import_table4.useTableColumnHeader)(
3506
2757
  {
@@ -3509,23 +2760,24 @@ var TableColumnHeader = ({
3509
2760
  state,
3510
2761
  ref
3511
2762
  );
3512
- const { hoverProps, isHovered } = (0, import_interactions5.useHover)({});
3513
- const { focusProps, isFocusVisible } = (0, import_focus11.useFocusRing)();
3514
- const stateProps = (0, import_system64.useStateProps)({
2763
+ const { hoverProps, isHovered } = (0, import_interactions.useHover)({});
2764
+ const { focusProps, isFocusVisible } = (0, import_focus4.useFocusRing)();
2765
+ const stateProps = (0, import_system61.useStateProps)({
3515
2766
  hover: isHovered,
3516
2767
  focusVisible: isFocusVisible
3517
2768
  });
3518
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
2769
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
3519
2770
  "th",
3520
2771
  {
3521
2772
  colSpan: column.colspan,
3522
2773
  ref,
3523
- className: (0, import_system64.cn)("cursor-default", import_system65.width[width], classNames2 == null ? void 0 : classNames2.header),
3524
- ...(0, import_utils20.mergeProps)(columnHeaderProps, hoverProps, focusProps),
2774
+ className: (0, import_system61.cn)("cursor-default", import_system62.width[width], classNames2 == null ? void 0 : classNames2.header),
2775
+ ...(0, import_utils6.mergeProps)(columnHeaderProps, hoverProps, focusProps),
3525
2776
  ...stateProps,
2777
+ align,
3526
2778
  children: [
3527
2779
  column.rendered,
3528
- column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_icons2.SortUp, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_icons2.SortDown, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_icons2.SortDown, { className: "inline-block" }))
2780
+ column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_icons3.SortUp, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_icons3.SortDown, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_icons3.SortDown, { className: "inline-block" }))
3529
2781
  ]
3530
2782
  }
3531
2783
  );
@@ -3533,36 +2785,36 @@ var TableColumnHeader = ({
3533
2785
 
3534
2786
  // src/Table/TableHeader.tsx
3535
2787
  var import_table5 = require("@react-aria/table");
3536
- var import_jsx_runtime78 = require("react/jsx-runtime");
2788
+ var import_jsx_runtime74 = require("react/jsx-runtime");
3537
2789
  var TableHeader = ({ children }) => {
3538
2790
  const { rowGroupProps } = (0, import_table5.useTableRowGroup)();
3539
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("thead", { ...rowGroupProps, children });
2791
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("thead", { ...rowGroupProps, children });
3540
2792
  };
3541
2793
 
3542
2794
  // src/Table/TableHeaderRow.tsx
3543
- var import_react49 = require("react");
2795
+ var import_react41 = require("react");
3544
2796
  var import_table6 = require("@react-aria/table");
3545
- var import_jsx_runtime79 = require("react/jsx-runtime");
2797
+ var import_jsx_runtime75 = require("react/jsx-runtime");
3546
2798
  var TableHeaderRow = ({ item, children }) => {
3547
2799
  const { state } = useTableContext();
3548
- const ref = (0, import_react49.useRef)(null);
2800
+ const ref = (0, import_react41.useRef)(null);
3549
2801
  const { rowProps } = (0, import_table6.useTableHeaderRow)({ node: item }, state, ref);
3550
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("tr", { ...rowProps, ref, children });
2802
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("tr", { ...rowProps, ref, children });
3551
2803
  };
3552
2804
 
3553
2805
  // src/Table/TableRow.tsx
3554
- var import_react50 = require("react");
3555
- var import_focus12 = require("@react-aria/focus");
3556
- var import_interactions6 = require("@react-aria/interactions");
2806
+ var import_react42 = require("react");
2807
+ var import_focus5 = require("@react-aria/focus");
2808
+ var import_interactions2 = require("@react-aria/interactions");
3557
2809
  var import_table7 = require("@react-aria/table");
3558
- var import_utils21 = require("@react-aria/utils");
3559
- var import_system66 = require("@marigold/system");
3560
- var import_jsx_runtime80 = require("react/jsx-runtime");
2810
+ var import_utils7 = require("@react-aria/utils");
2811
+ var import_system63 = require("@marigold/system");
2812
+ var import_jsx_runtime76 = require("react/jsx-runtime");
3561
2813
  var TableRow = ({ children, row }) => {
3562
- const ref = (0, import_react50.useRef)(null);
2814
+ const ref = (0, import_react42.useRef)(null);
3563
2815
  const { interactive, state, ...ctx } = useTableContext();
3564
2816
  const { variant, size } = row.props;
3565
- const classNames2 = (0, import_system66.useClassNames)({
2817
+ const classNames2 = (0, import_system63.useClassNames)({
3566
2818
  component: "Table",
3567
2819
  variant: variant || ctx.variant,
3568
2820
  size: size || ctx.size
@@ -3576,28 +2828,28 @@ var TableRow = ({ children, row }) => {
3576
2828
  );
3577
2829
  const disabled = state.disabledKeys.has(row.key);
3578
2830
  const selected = state.selectionManager.isSelected(row.key);
3579
- const { focusProps, isFocusVisible } = (0, import_focus12.useFocusRing)({ within: true });
3580
- const { hoverProps, isHovered } = (0, import_interactions6.useHover)({
2831
+ const { focusProps, isFocusVisible } = (0, import_focus5.useFocusRing)({ within: true });
2832
+ const { hoverProps, isHovered } = (0, import_interactions2.useHover)({
3581
2833
  isDisabled: disabled || !interactive
3582
2834
  });
3583
- const stateProps = (0, import_system66.useStateProps)({
2835
+ const stateProps = (0, import_system63.useStateProps)({
3584
2836
  disabled,
3585
2837
  selected,
3586
2838
  hover: isHovered,
3587
2839
  focusVisible: isFocusVisible,
3588
2840
  active: isPressed
3589
2841
  });
3590
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
2842
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
3591
2843
  "tr",
3592
2844
  {
3593
2845
  ref,
3594
- className: (0, import_system66.cn)(
2846
+ className: (0, import_system63.cn)(
3595
2847
  [
3596
2848
  !interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"
3597
2849
  ],
3598
2850
  classNames2 == null ? void 0 : classNames2.row
3599
2851
  ),
3600
- ...(0, import_utils21.mergeProps)(rowProps, focusProps, hoverProps),
2852
+ ...(0, import_utils7.mergeProps)(rowProps, focusProps, hoverProps),
3601
2853
  ...stateProps,
3602
2854
  children
3603
2855
  }
@@ -3605,18 +2857,19 @@ var TableRow = ({ children, row }) => {
3605
2857
  };
3606
2858
 
3607
2859
  // src/Table/TableSelectAllCell.tsx
3608
- var import_react51 = require("react");
3609
- var import_focus13 = require("@react-aria/focus");
3610
- var import_interactions7 = require("@react-aria/interactions");
2860
+ var import_react43 = require("react");
2861
+ var import_focus6 = require("@react-aria/focus");
2862
+ var import_interactions3 = require("@react-aria/interactions");
3611
2863
  var import_table8 = require("@react-aria/table");
3612
- var import_utils22 = require("@react-aria/utils");
3613
- var import_system67 = require("@marigold/system");
3614
- var import_jsx_runtime81 = require("react/jsx-runtime");
2864
+ var import_utils8 = require("@react-aria/utils");
2865
+ var import_system64 = require("@marigold/system");
2866
+ var import_jsx_runtime77 = require("react/jsx-runtime");
3615
2867
  var TableSelectAllCell = ({
3616
2868
  column,
3617
- width = "auto"
2869
+ width = "auto",
2870
+ align
3618
2871
  }) => {
3619
- const ref = (0, import_react51.useRef)(null);
2872
+ const ref = (0, import_react43.useRef)(null);
3620
2873
  const { state, classNames: classNames2 } = useTableContext();
3621
2874
  const { columnHeaderProps } = (0, import_table8.useTableColumnHeader)(
3622
2875
  {
@@ -3626,30 +2879,31 @@ var TableSelectAllCell = ({
3626
2879
  ref
3627
2880
  );
3628
2881
  const { checkboxProps } = mapCheckboxProps((0, import_table8.useTableSelectAllCheckbox)(state));
3629
- const { hoverProps, isHovered } = (0, import_interactions7.useHover)({});
3630
- const { focusProps, isFocusVisible } = (0, import_focus13.useFocusRing)();
3631
- const stateProps = (0, import_system67.useStateProps)({
2882
+ const { hoverProps, isHovered } = (0, import_interactions3.useHover)({});
2883
+ const { focusProps, isFocusVisible } = (0, import_focus6.useFocusRing)();
2884
+ const stateProps = (0, import_system64.useStateProps)({
3632
2885
  hover: isHovered,
3633
2886
  focusVisible: isFocusVisible
3634
2887
  });
3635
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
2888
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
3636
2889
  "th",
3637
2890
  {
3638
2891
  ref,
3639
- className: (0, import_system67.cn)(
3640
- import_system67.width[width],
2892
+ className: (0, import_system64.cn)(
2893
+ import_system64.width[width],
3641
2894
  ["text-center align-middle leading-none"],
3642
2895
  classNames2 == null ? void 0 : classNames2.header
3643
2896
  ),
3644
- ...(0, import_utils22.mergeProps)(columnHeaderProps, hoverProps, focusProps),
2897
+ align,
2898
+ ...(0, import_utils8.mergeProps)(columnHeaderProps, hoverProps, focusProps),
3645
2899
  ...stateProps,
3646
- children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(_Checkbox, { ...checkboxProps })
2900
+ children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(_Checkbox, { ...checkboxProps })
3647
2901
  }
3648
2902
  );
3649
2903
  };
3650
2904
 
3651
2905
  // src/Table/Table.tsx
3652
- var import_jsx_runtime82 = require("react/jsx-runtime");
2906
+ var import_jsx_runtime78 = require("react/jsx-runtime");
3653
2907
  var Table = ({
3654
2908
  variant,
3655
2909
  size,
@@ -3658,7 +2912,7 @@ var Table = ({
3658
2912
  ...props
3659
2913
  }) => {
3660
2914
  const interactive = selectionMode !== "none";
3661
- const tableRef = (0, import_react52.useRef)(null);
2915
+ const tableRef = (0, import_react44.useRef)(null);
3662
2916
  const state = (0, import_table10.useTableState)({
3663
2917
  ...props,
3664
2918
  selectionMode,
@@ -3666,21 +2920,21 @@ var Table = ({
3666
2920
  props.selectionBehavior !== "replace"
3667
2921
  });
3668
2922
  const { gridProps } = (0, import_table9.useTable)(props, state, tableRef);
3669
- const classNames2 = (0, import_system68.useClassNames)({
2923
+ const classNames2 = (0, import_system65.useClassNames)({
3670
2924
  component: "Table",
3671
2925
  variant,
3672
2926
  size
3673
2927
  });
3674
2928
  const { collection } = state;
3675
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
2929
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
3676
2930
  TableContext.Provider,
3677
2931
  {
3678
2932
  value: { state, interactive, classNames: classNames2, variant, size },
3679
- children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
2933
+ children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
3680
2934
  "table",
3681
2935
  {
3682
2936
  ref: tableRef,
3683
- className: (0, import_system68.cn)(
2937
+ className: (0, import_system65.cn)(
3684
2938
  "group/table",
3685
2939
  "border-collapse overflow-auto whitespace-nowrap",
3686
2940
  stretch ? "table w-full" : "block",
@@ -3688,34 +2942,48 @@ var Table = ({
3688
2942
  ),
3689
2943
  ...gridProps,
3690
2944
  children: [
3691
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(TableHeader, { children: collection.headerRows.map((headerRow) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
2945
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(TableHeader, { children: collection.headerRows.map((headerRow) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
3692
2946
  (column) => {
3693
- var _a, _b, _c;
3694
- return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
2947
+ var _a, _b, _c, _d;
2948
+ return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
3695
2949
  TableSelectAllCell,
3696
2950
  {
3697
2951
  width: (_b = column.props) == null ? void 0 : _b.width,
3698
2952
  column
3699
2953
  },
3700
2954
  column.key
3701
- ) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
2955
+ ) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
3702
2956
  TableColumnHeader,
3703
2957
  {
3704
2958
  width: (_c = column.props) == null ? void 0 : _c.width,
3705
- column
2959
+ column,
2960
+ align: (_d = column.props) == null ? void 0 : _d.align
3706
2961
  },
3707
2962
  column.key
3708
2963
  );
3709
2964
  }
3710
2965
  ) }, headerRow.key)) }),
3711
- /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(TableBody, { children: [
2966
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(TableBody, { children: [
3712
2967
  ...collection.rows.map(
3713
- (row) => row.type === "item" && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(TableRow, { row, children: [...collection.getChildren(row.key)].map(
3714
- (cell) => {
3715
- var _a;
3716
- return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(TableCell, { cell }, cell.key);
3717
- }
3718
- ) }, row.key)
2968
+ (row) => row.type === "item" && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index) => {
2969
+ var _a, _b, _c;
2970
+ const currentColumn = collection.columns[index];
2971
+ return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
2972
+ TableCheckboxCell,
2973
+ {
2974
+ align: (_b = currentColumn.props) == null ? void 0 : _b.align,
2975
+ cell
2976
+ },
2977
+ cell.key
2978
+ ) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
2979
+ TableCell,
2980
+ {
2981
+ align: (_c = currentColumn.props) == null ? void 0 : _c.align,
2982
+ cell
2983
+ },
2984
+ cell.key
2985
+ );
2986
+ }) }, row.key)
3719
2987
  )
3720
2988
  ] })
3721
2989
  ]
@@ -3731,8 +2999,8 @@ Table.Header = import_table10.TableHeader;
3731
2999
  Table.Row = import_table10.Row;
3732
3000
 
3733
3001
  // src/Text/Text.tsx
3734
- var import_system69 = require("@marigold/system");
3735
- var import_jsx_runtime83 = require("react/jsx-runtime");
3002
+ var import_system66 = require("@marigold/system");
3003
+ var import_jsx_runtime79 = require("react/jsx-runtime");
3736
3004
  var Text2 = ({
3737
3005
  variant,
3738
3006
  size,
@@ -3745,27 +3013,27 @@ var Text2 = ({
3745
3013
  children,
3746
3014
  ...props
3747
3015
  }) => {
3748
- const theme = (0, import_system69.useTheme)();
3749
- const classNames2 = (0, import_system69.useClassNames)({
3016
+ const theme = (0, import_system66.useTheme)();
3017
+ const classNames2 = (0, import_system66.useClassNames)({
3750
3018
  component: "Text",
3751
3019
  variant,
3752
3020
  size
3753
3021
  });
3754
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3022
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
3755
3023
  "p",
3756
3024
  {
3757
3025
  ...props,
3758
- className: (0, import_system69.cn)(
3026
+ className: (0, import_system66.cn)(
3759
3027
  classNames2,
3760
3028
  "text-[--color] outline-[--outline]",
3761
- fontStyle && import_system69.textStyle[fontStyle],
3762
- align && import_system69.textAlign[align],
3763
- cursor && import_system69.cursorStyle[cursor],
3764
- weight && import_system69.fontWeight[weight],
3765
- fontSize && import_system69.textSize[fontSize]
3029
+ fontStyle && import_system66.textStyle[fontStyle],
3030
+ align && import_system66.textAlign[align],
3031
+ cursor && import_system66.cursorStyle[cursor],
3032
+ weight && import_system66.fontWeight[weight],
3033
+ fontSize && import_system66.textSize[fontSize]
3766
3034
  ),
3767
- style: (0, import_system69.createVar)({
3768
- color: color && theme.colors && (0, import_system69.get)(
3035
+ style: (0, import_system66.createVar)({
3036
+ color: color && theme.colors && (0, import_system66.get)(
3769
3037
  theme.colors,
3770
3038
  color.replace("-", "."),
3771
3039
  color
@@ -3778,11 +3046,11 @@ var Text2 = ({
3778
3046
  };
3779
3047
 
3780
3048
  // src/TextArea/TextArea.tsx
3781
- var import_react53 = require("react");
3782
- var import_react_aria_components22 = require("react-aria-components");
3783
- var import_system70 = require("@marigold/system");
3784
- var import_jsx_runtime84 = require("react/jsx-runtime");
3785
- var _TextArea = (0, import_react53.forwardRef)(
3049
+ var import_react45 = require("react");
3050
+ var import_react_aria_components46 = require("react-aria-components");
3051
+ var import_system67 = require("@marigold/system");
3052
+ var import_jsx_runtime80 = require("react/jsx-runtime");
3053
+ var _TextArea = (0, import_react45.forwardRef)(
3786
3054
  ({
3787
3055
  variant,
3788
3056
  size,
@@ -3793,7 +3061,7 @@ var _TextArea = (0, import_react53.forwardRef)(
3793
3061
  rows,
3794
3062
  ...rest
3795
3063
  }, ref) => {
3796
- const classNames2 = (0, import_system70.useClassNames)({ component: "TextArea", variant, size });
3064
+ const classNames2 = (0, import_system67.useClassNames)({ component: "TextArea", variant, size });
3797
3065
  const props = {
3798
3066
  isDisabled: disabled,
3799
3067
  isReadOnly: readOnly,
@@ -3801,15 +3069,15 @@ var _TextArea = (0, import_react53.forwardRef)(
3801
3069
  isRequired: required,
3802
3070
  ...rest
3803
3071
  };
3804
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(FieldBase2, { as: import_react_aria_components22.TextField, ...props, variant, size, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react_aria_components22.TextArea, { className: classNames2, ref, rows }) });
3072
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(FieldBase, { as: import_react_aria_components46.TextField, ...props, variant, size, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react_aria_components46.TextArea, { className: classNames2, ref, rows }) });
3805
3073
  }
3806
3074
  );
3807
3075
 
3808
3076
  // src/TextField/TextField.tsx
3809
- var import_react54 = require("react");
3810
- var import_react_aria_components23 = require("react-aria-components");
3811
- var import_jsx_runtime85 = require("react/jsx-runtime");
3812
- var _TextField = (0, import_react54.forwardRef)(
3077
+ var import_react46 = require("react");
3078
+ var import_react_aria_components47 = require("react-aria-components");
3079
+ var import_jsx_runtime81 = require("react/jsx-runtime");
3080
+ var _TextField = (0, import_react46.forwardRef)(
3813
3081
  ({
3814
3082
  variant,
3815
3083
  size,
@@ -3826,13 +3094,13 @@ var _TextField = (0, import_react54.forwardRef)(
3826
3094
  isRequired: required,
3827
3095
  ...rest
3828
3096
  };
3829
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(FieldBase2, { as: import_react_aria_components23.TextField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(_Input, { ref }) });
3097
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(FieldBase, { as: import_react_aria_components47.TextField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(_Input, { ref }) });
3830
3098
  }
3831
3099
  );
3832
3100
 
3833
3101
  // src/Tiles/Tiles.tsx
3834
- var import_system71 = require("@marigold/system");
3835
- var import_jsx_runtime86 = require("react/jsx-runtime");
3102
+ var import_system68 = require("@marigold/system");
3103
+ var import_jsx_runtime82 = require("react/jsx-runtime");
3836
3104
  var Tiles = ({
3837
3105
  space = 0,
3838
3106
  stretch = false,
@@ -3845,29 +3113,29 @@ var Tiles = ({
3845
3113
  if (stretch) {
3846
3114
  column = `minmax(${column}, 1fr)`;
3847
3115
  }
3848
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
3116
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
3849
3117
  "div",
3850
3118
  {
3851
3119
  ...props,
3852
- className: (0, import_system71.cn)(
3120
+ className: (0, import_system68.cn)(
3853
3121
  "grid",
3854
- import_system71.gapSpace[space],
3122
+ import_system68.gapSpace[space],
3855
3123
  "grid-cols-[repeat(auto-fit,var(--column))]",
3856
3124
  equalHeight && "auto-rows-[1fr]"
3857
3125
  ),
3858
- style: (0, import_system71.createVar)({ column, tilesWidth }),
3126
+ style: (0, import_system68.createVar)({ column, tilesWidth }),
3859
3127
  children
3860
3128
  }
3861
3129
  );
3862
3130
  };
3863
3131
 
3864
3132
  // src/Tooltip/Tooltip.tsx
3865
- var import_react_aria_components25 = require("react-aria-components");
3866
- var import_system72 = require("@marigold/system");
3133
+ var import_react_aria_components49 = require("react-aria-components");
3134
+ var import_system69 = require("@marigold/system");
3867
3135
 
3868
3136
  // src/Tooltip/TooltipTrigger.tsx
3869
- var import_react_aria_components24 = require("react-aria-components");
3870
- var import_jsx_runtime87 = require("react/jsx-runtime");
3137
+ var import_react_aria_components48 = require("react-aria-components");
3138
+ var import_jsx_runtime83 = require("react/jsx-runtime");
3871
3139
  var _TooltipTrigger = ({
3872
3140
  delay = 1e3,
3873
3141
  children,
@@ -3881,32 +3149,32 @@ var _TooltipTrigger = ({
3881
3149
  isOpen: open,
3882
3150
  delay
3883
3151
  };
3884
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_react_aria_components24.TooltipTrigger, { ...props, children });
3152
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_react_aria_components48.TooltipTrigger, { ...props, children });
3885
3153
  };
3886
3154
 
3887
3155
  // src/Tooltip/Tooltip.tsx
3888
- var import_jsx_runtime88 = require("react/jsx-runtime");
3156
+ var import_jsx_runtime84 = require("react/jsx-runtime");
3889
3157
  var _Tooltip = ({ children, variant, size, open, ...rest }) => {
3890
3158
  const props = {
3891
3159
  ...rest,
3892
3160
  isOpen: open
3893
3161
  };
3894
- const classNames2 = (0, import_system72.useClassNames)({ component: "Tooltip", variant, size });
3895
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_react_aria_components25.Tooltip, { ...props, className: (0, import_system72.cn)("group/tooltip", classNames2.container), children: [
3896
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_aria_components25.OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
3162
+ const classNames2 = (0, import_system69.useClassNames)({ component: "Tooltip", variant, size });
3163
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_react_aria_components49.Tooltip, { ...props, className: (0, import_system69.cn)("group/tooltip", classNames2.container), children: [
3164
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react_aria_components49.OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
3897
3165
  children
3898
3166
  ] });
3899
3167
  };
3900
3168
  _Tooltip.Trigger = _TooltipTrigger;
3901
3169
 
3902
3170
  // src/TagGroup/Tag.tsx
3903
- var import_react_aria_components27 = require("react-aria-components");
3904
- var import_system74 = require("@marigold/system");
3171
+ var import_react_aria_components51 = require("react-aria-components");
3172
+ var import_system71 = require("@marigold/system");
3905
3173
 
3906
3174
  // src/TagGroup/TagGroup.tsx
3907
- var import_react_aria_components26 = require("react-aria-components");
3908
- var import_system73 = require("@marigold/system");
3909
- var import_jsx_runtime89 = require("react/jsx-runtime");
3175
+ var import_react_aria_components50 = require("react-aria-components");
3176
+ var import_system70 = require("@marigold/system");
3177
+ var import_jsx_runtime85 = require("react/jsx-runtime");
3910
3178
  var _TagGroup = ({
3911
3179
  width,
3912
3180
  items,
@@ -3915,24 +3183,24 @@ var _TagGroup = ({
3915
3183
  size,
3916
3184
  ...rest
3917
3185
  }) => {
3918
- const classNames2 = (0, import_system73.useClassNames)({ component: "Tag", variant, size });
3919
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(FieldBase2, { as: import_react_aria_components26.TagGroup, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_aria_components26.TagList, { items, className: classNames2.listItems, children }) });
3186
+ const classNames2 = (0, import_system70.useClassNames)({ component: "Tag", variant, size });
3187
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(FieldBase, { as: import_react_aria_components50.TagGroup, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_aria_components50.TagList, { items, className: classNames2.listItems, children }) });
3920
3188
  };
3921
3189
 
3922
3190
  // src/TagGroup/Tag.tsx
3923
- var import_jsx_runtime90 = require("react/jsx-runtime");
3191
+ var import_jsx_runtime86 = require("react/jsx-runtime");
3924
3192
  var CloseButton2 = ({ className }) => {
3925
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_react_aria_components27.Button, { slot: "remove", className, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("path", { d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" }) }) });
3193
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react_aria_components51.Button, { slot: "remove", className, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("path", { d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" }) }) });
3926
3194
  };
3927
3195
  var _Tag = ({ variant, size, children, ...props }) => {
3928
3196
  let textValue = typeof children === "string" ? children : void 0;
3929
- const classNames2 = (0, import_system74.useClassNames)({ component: "Tag", variant, size });
3930
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_react_aria_components27.Tag, { textValue, ...props, className: classNames2.tag, children: ({ allowsRemoving }) => /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_jsx_runtime90.Fragment, { children: [
3197
+ const classNames2 = (0, import_system71.useClassNames)({ component: "Tag", variant, size });
3198
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react_aria_components51.Tag, { textValue, ...props, className: classNames2.tag, children: ({ allowsRemoving }) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_jsx_runtime86.Fragment, { children: [
3931
3199
  children,
3932
- allowsRemoving && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3200
+ allowsRemoving && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
3933
3201
  CloseButton2,
3934
3202
  {
3935
- className: (0, import_system74.cn)("flex items-center", classNames2.closeButton)
3203
+ className: (0, import_system71.cn)("flex items-center", classNames2.closeButton)
3936
3204
  }
3937
3205
  )
3938
3206
  ] }) });
@@ -3943,11 +3211,11 @@ _Tag.Group = _TagGroup;
3943
3211
  var import_visually_hidden = require("@react-aria/visually-hidden");
3944
3212
 
3945
3213
  // src/XLoader/XLoader.tsx
3946
- var import_react55 = require("react");
3947
- var import_system75 = require("@marigold/system");
3948
- var import_jsx_runtime91 = require("react/jsx-runtime");
3949
- var XLoader = (0, import_react55.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
3950
- import_system75.SVG,
3214
+ var import_react47 = require("react");
3215
+ var import_system72 = require("@marigold/system");
3216
+ var import_jsx_runtime87 = require("react/jsx-runtime");
3217
+ var XLoader = (0, import_react47.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
3218
+ import_system72.SVG,
3951
3219
  {
3952
3220
  id: "XLoader",
3953
3221
  xmlns: "http://www.w3.org/2000/svg",
@@ -3956,13 +3224,13 @@ var XLoader = (0, import_react55.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3956
3224
  ...props,
3957
3225
  ...ref,
3958
3226
  children: [
3959
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
3960
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3227
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
3228
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3961
3229
  "path",
3962
3230
  {
3963
3231
  id: "XMLID_5_",
3964
3232
  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",
3965
- children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3233
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3966
3234
  "animate",
3967
3235
  {
3968
3236
  attributeName: "opacity",
@@ -3975,12 +3243,12 @@ var XLoader = (0, import_react55.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3975
3243
  )
3976
3244
  }
3977
3245
  ),
3978
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3246
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3979
3247
  "path",
3980
3248
  {
3981
3249
  id: "XMLID_18_",
3982
3250
  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",
3983
- children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3251
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3984
3252
  "animate",
3985
3253
  {
3986
3254
  attributeName: "opacity",
@@ -3993,12 +3261,12 @@ var XLoader = (0, import_react55.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3993
3261
  )
3994
3262
  }
3995
3263
  ),
3996
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3264
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3997
3265
  "path",
3998
3266
  {
3999
3267
  id: "XMLID_19_",
4000
3268
  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",
4001
- children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3269
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4002
3270
  "animate",
4003
3271
  {
4004
3272
  attributeName: "opacity",
@@ -4011,12 +3279,12 @@ var XLoader = (0, import_react55.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4011
3279
  )
4012
3280
  }
4013
3281
  ),
4014
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3282
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4015
3283
  "path",
4016
3284
  {
4017
3285
  id: "XMLID_20_",
4018
3286
  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",
4019
- children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3287
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4020
3288
  "animate",
4021
3289
  {
4022
3290
  attributeName: "opacity",
@@ -4029,12 +3297,12 @@ var XLoader = (0, import_react55.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4029
3297
  )
4030
3298
  }
4031
3299
  ),
4032
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3300
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4033
3301
  "path",
4034
3302
  {
4035
3303
  id: "XMLID_21_",
4036
3304
  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",
4037
- children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3305
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4038
3306
  "animate",
4039
3307
  {
4040
3308
  attributeName: "opacity",
@@ -4047,12 +3315,12 @@ var XLoader = (0, import_react55.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4047
3315
  )
4048
3316
  }
4049
3317
  ),
4050
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3318
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4051
3319
  "path",
4052
3320
  {
4053
3321
  id: "XMLID_22_",
4054
3322
  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",
4055
- children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3323
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4056
3324
  "animate",
4057
3325
  {
4058
3326
  attributeName: "opacity",
@@ -4065,12 +3333,12 @@ var XLoader = (0, import_react55.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4065
3333
  )
4066
3334
  }
4067
3335
  ),
4068
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3336
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4069
3337
  "path",
4070
3338
  {
4071
3339
  id: "XMLID_23_",
4072
3340
  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",
4073
- children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3341
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4074
3342
  "animate",
4075
3343
  {
4076
3344
  attributeName: "opacity",
@@ -4083,12 +3351,12 @@ var XLoader = (0, import_react55.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4083
3351
  )
4084
3352
  }
4085
3353
  ),
4086
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3354
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4087
3355
  "path",
4088
3356
  {
4089
3357
  id: "XMLID_24_",
4090
3358
  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",
4091
- children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3359
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4092
3360
  "animate",
4093
3361
  {
4094
3362
  attributeName: "opacity",
@@ -4101,12 +3369,12 @@ var XLoader = (0, import_react55.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4101
3369
  )
4102
3370
  }
4103
3371
  ),
4104
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3372
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4105
3373
  "path",
4106
3374
  {
4107
3375
  id: "XMLID_25_",
4108
3376
  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",
4109
- children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3377
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4110
3378
  "animate",
4111
3379
  {
4112
3380
  attributeName: "opacity",
@@ -4119,12 +3387,12 @@ var XLoader = (0, import_react55.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4119
3387
  )
4120
3388
  }
4121
3389
  ),
4122
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3390
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4123
3391
  "path",
4124
3392
  {
4125
3393
  id: "XMLID_26_",
4126
3394
  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",
4127
- children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3395
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4128
3396
  "animate",
4129
3397
  {
4130
3398
  attributeName: "opacity",
@@ -4137,12 +3405,12 @@ var XLoader = (0, import_react55.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4137
3405
  )
4138
3406
  }
4139
3407
  ),
4140
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3408
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4141
3409
  "path",
4142
3410
  {
4143
3411
  id: "XMLID_27_",
4144
3412
  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",
4145
- children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3413
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4146
3414
  "animate",
4147
3415
  {
4148
3416
  attributeName: "opacity",
@@ -4160,25 +3428,25 @@ var XLoader = (0, import_react55.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4160
3428
  ));
4161
3429
 
4162
3430
  // src/Tabs/Tabs.tsx
4163
- var import_react_aria_components31 = require("react-aria-components");
4164
- var import_system78 = require("@marigold/system");
3431
+ var import_react_aria_components55 = require("react-aria-components");
3432
+ var import_system75 = require("@marigold/system");
4165
3433
 
4166
3434
  // src/Tabs/Context.ts
4167
- var import_react56 = require("react");
4168
- var TabContext = (0, import_react56.createContext)({});
4169
- var useTabContext = () => (0, import_react56.useContext)(TabContext);
3435
+ var import_react48 = require("react");
3436
+ var TabContext = (0, import_react48.createContext)({});
3437
+ var useTabContext = () => (0, import_react48.useContext)(TabContext);
4170
3438
 
4171
3439
  // src/Tabs/Tab.tsx
4172
- var import_react_aria_components28 = require("react-aria-components");
4173
- var import_system76 = require("@marigold/system");
4174
- var import_jsx_runtime92 = require("react/jsx-runtime");
3440
+ var import_react_aria_components52 = require("react-aria-components");
3441
+ var import_system73 = require("@marigold/system");
3442
+ var import_jsx_runtime88 = require("react/jsx-runtime");
4175
3443
  var _Tab = (props) => {
4176
3444
  const { classNames: classNames2 } = useTabContext();
4177
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
4178
- import_react_aria_components28.Tab,
3445
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
3446
+ import_react_aria_components52.Tab,
4179
3447
  {
4180
3448
  ...props,
4181
- className: (0, import_system76.cn)(
3449
+ className: (0, import_system73.cn)(
4182
3450
  "flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
4183
3451
  classNames2.tab
4184
3452
  ),
@@ -4188,42 +3456,42 @@ var _Tab = (props) => {
4188
3456
  };
4189
3457
 
4190
3458
  // src/Tabs/TabList.tsx
4191
- var import_react_aria_components29 = require("react-aria-components");
4192
- var import_system77 = require("@marigold/system");
4193
- var import_jsx_runtime93 = require("react/jsx-runtime");
3459
+ var import_react_aria_components53 = require("react-aria-components");
3460
+ var import_system74 = require("@marigold/system");
3461
+ var import_jsx_runtime89 = require("react/jsx-runtime");
4194
3462
  var _TabList = ({ space = 2, ...props }) => {
4195
3463
  const { classNames: classNames2 } = useTabContext();
4196
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
4197
- import_react_aria_components29.TabList,
3464
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3465
+ import_react_aria_components53.TabList,
4198
3466
  {
4199
3467
  ...props,
4200
- className: (0, import_system77.cn)("flex", import_system77.gapSpace[space], classNames2.tabsList),
3468
+ className: (0, import_system74.cn)("flex", import_system74.gapSpace[space], classNames2.tabsList),
4201
3469
  children: props.children
4202
3470
  }
4203
3471
  );
4204
3472
  };
4205
3473
 
4206
3474
  // src/Tabs/TabPanel.tsx
4207
- var import_react_aria_components30 = require("react-aria-components");
4208
- var import_jsx_runtime94 = require("react/jsx-runtime");
3475
+ var import_react_aria_components54 = require("react-aria-components");
3476
+ var import_jsx_runtime90 = require("react/jsx-runtime");
4209
3477
  var _TabPanel = (props) => {
4210
3478
  const { classNames: classNames2 } = useTabContext();
4211
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_aria_components30.TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
3479
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_react_aria_components54.TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
4212
3480
  };
4213
3481
 
4214
3482
  // src/Tabs/Tabs.tsx
4215
- var import_jsx_runtime95 = require("react/jsx-runtime");
3483
+ var import_jsx_runtime91 = require("react/jsx-runtime");
4216
3484
  var _Tabs = ({ disabled, variant, size = "medium", ...rest }) => {
4217
3485
  const props = {
4218
3486
  isDisabled: disabled,
4219
3487
  ...rest
4220
3488
  };
4221
- const classNames2 = (0, import_system78.useClassNames)({
3489
+ const classNames2 = (0, import_system75.useClassNames)({
4222
3490
  component: "Tabs",
4223
3491
  size,
4224
3492
  variant
4225
3493
  });
4226
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_aria_components31.Tabs, { ...props, className: classNames2.container, children: props.children }) });
3494
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_react_aria_components55.Tabs, { ...props, className: classNames2.container, children: props.children }) });
4227
3495
  };
4228
3496
  _Tabs.List = _TabList;
4229
3497
  _Tabs.TabPanel = _TabPanel;
@@ -4241,8 +3509,6 @@ _Tabs.Item = _Tab;
4241
3509
  Breakout,
4242
3510
  Button,
4243
3511
  Calendar,
4244
- CalendarCell,
4245
- CalendarGrid,
4246
3512
  Card,
4247
3513
  Center,
4248
3514
  Checkbox,
@@ -4259,6 +3525,7 @@ _Tabs.Item = _Tab;
4259
3525
  FieldGroup,
4260
3526
  FieldGroupContext,
4261
3527
  Footer,
3528
+ Form,
4262
3529
  Header,
4263
3530
  Headline,
4264
3531
  Image,
@@ -4273,7 +3540,6 @@ _Tabs.Item = _Tab;
4273
3540
  Message,
4274
3541
  Modal,
4275
3542
  NumberField,
4276
- Overlay,
4277
3543
  Popover,
4278
3544
  Radio,
4279
3545
  RadioGroup,
@@ -4292,11 +3558,10 @@ _Tabs.Item = _Tab;
4292
3558
  ThemeProvider,
4293
3559
  Tiles,
4294
3560
  Tooltip,
4295
- Tray,
4296
- TrayWrapper,
4297
3561
  Underlay,
4298
3562
  VisuallyHidden,
4299
3563
  XLoader,
3564
+ _Calendar,
4300
3565
  useAsyncList,
4301
3566
  useFieldGroupContext,
4302
3567
  useListData,