@marigold/components 6.11.0 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -302,31 +302,26 @@ var Aspect = ({
302
302
  };
303
303
 
304
304
  // src/Autocomplete/Autocomplete.tsx
305
- import { useRef as useRef7 } from "react";
306
- import { useSearchAutocomplete } from "@react-aria/autocomplete";
307
- import { useFilter } from "@react-aria/i18n";
308
- import { Item as Item2 } from "@react-stately/collections";
309
- import { useComboBoxState } from "@react-stately/combobox";
310
-
311
- // src/FieldBase/FieldBase.tsx
312
305
  import {
313
- cn as cn6,
314
- width as twWidth,
315
- useClassNames as useClassNames4
316
- } from "@marigold/system";
306
+ forwardRef as forwardRef8
307
+ } from "react";
308
+ import React2 from "react";
309
+ import { ComboBox, ComboBoxStateContext as ComboBoxStateContext2 } from "react-aria-components";
317
310
 
318
- // src/HelpText/HelpText.tsx
319
- import { SVG as SVG3, cn as cn4, useClassNames as useClassNames2 } from "@marigold/system";
320
- import { Fragment, jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
311
+ // src/FieldBase/_FieldBase.tsx
312
+ import { forwardRef as forwardRef3 } from "react";
313
+ import { cn as cn6, width as twWidth, useClassNames as useClassNames4 } from "@marigold/system";
314
+
315
+ // src/HelpText/_HelpText.tsx
316
+ import { FieldError, Text } from "react-aria-components";
317
+ import { cn as cn4, useClassNames as useClassNames2 } from "@marigold/system";
318
+ import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
321
319
  var HelpText = ({
322
320
  variant,
323
321
  size,
324
- disabled,
325
322
  description,
326
- descriptionProps,
327
323
  error,
328
324
  errorMessage,
329
- errorMessageProps,
330
325
  ...props
331
326
  }) => {
332
327
  const hasErrorMessage = errorMessage && error;
@@ -335,31 +330,37 @@ var HelpText = ({
335
330
  variant,
336
331
  size
337
332
  });
338
- return /* @__PURE__ */ jsx7(
339
- "div",
340
- {
341
- ...props,
342
- ...hasErrorMessage ? errorMessageProps : descriptionProps,
343
- className: cn4("flex items-center gap-1", classNames2.container),
344
- children: hasErrorMessage ? /* @__PURE__ */ jsxs3(Fragment, { children: [
345
- /* @__PURE__ */ jsx7(
346
- SVG3,
347
- {
348
- className: cn4("h-4 w-4", classNames2.icon),
349
- viewBox: "0 0 24 24",
350
- role: "presentation",
351
- children: /* @__PURE__ */ jsx7("path", { d: "M2.25 20.3097H21.75L12 3.46875L2.25 20.3097ZM12.8864 17.2606H11.1136V15.4879H12.8864V17.2606ZM12.8864 13.7151H11.1136V10.1697H12.8864V13.7151Z" })
352
- }
353
- ),
354
- errorMessage
355
- ] }) : /* @__PURE__ */ jsx7(Fragment, { children: description })
356
- }
357
- );
333
+ if (!description && !errorMessage) {
334
+ return null;
335
+ }
336
+ return /* @__PURE__ */ jsxs3("div", { className: cn4(classNames2.container), children: [
337
+ /* @__PURE__ */ jsxs3(
338
+ FieldError,
339
+ {
340
+ ...props,
341
+ className: "grid grid-flow-col items-center justify-start gap-1",
342
+ children: [
343
+ /* @__PURE__ */ jsx7(
344
+ "svg",
345
+ {
346
+ className: cn4("h-4 w-4", classNames2.icon),
347
+ viewBox: "0 0 24 24",
348
+ role: "presentation",
349
+ fill: "currentColor",
350
+ children: /* @__PURE__ */ jsx7("path", { d: "M2.25 20.3097H21.75L12 3.46875L2.25 20.3097ZM12.8864 17.2606H11.1136V15.4879H12.8864V17.2606ZM12.8864 13.7151H11.1136V10.1697H12.8864V13.7151Z" })
351
+ }
352
+ ),
353
+ errorMessage
354
+ ]
355
+ }
356
+ ),
357
+ !hasErrorMessage && /* @__PURE__ */ jsx7(Text, { slot: "description", children: description })
358
+ ] });
358
359
  };
359
360
 
360
361
  // src/Label/Label.tsx
361
362
  import { Label } from "react-aria-components";
362
- import { SVG as SVG4, cn as cn5, createVar as createVar3, useClassNames as useClassNames3 } from "@marigold/system";
363
+ import { SVG as SVG3, cn as cn5, createVar as createVar3, useClassNames as useClassNames3 } from "@marigold/system";
363
364
 
364
365
  // src/FieldBase/FieldGroup.tsx
365
366
  import { createContext, useContext } from "react";
@@ -384,7 +385,7 @@ var _Label = ({ size, variant, children, ...props }) => {
384
385
  children: [
385
386
  children,
386
387
  /* @__PURE__ */ jsx9(
387
- SVG4,
388
+ SVG3,
388
389
  {
389
390
  viewBox: "0 0 24 24",
390
391
  role: "presentation",
@@ -398,66 +399,62 @@ var _Label = ({ size, variant, children, ...props }) => {
398
399
  );
399
400
  };
400
401
 
401
- // src/FieldBase/FieldBase.tsx
402
+ // src/FieldBase/_FieldBase.tsx
402
403
  import { jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
403
- var FieldBase = ({
404
- children,
405
- variant,
406
- size,
407
- width = "full",
408
- disabled,
409
- label,
410
- labelProps,
411
- description,
412
- descriptionProps,
413
- error,
414
- errorMessage,
415
- errorMessageProps,
416
- stateProps,
417
- ...props
418
- }) => {
419
- const hasHelpText = !!description || errorMessage && error;
404
+ var fixedForwardRef = forwardRef3;
405
+ var _FieldBase = (props, ref) => {
406
+ const {
407
+ as: Component = "div",
408
+ children,
409
+ label,
410
+ size,
411
+ variant,
412
+ width = "full",
413
+ description,
414
+ errorMessage,
415
+ className,
416
+ stateProps,
417
+ ...rest
418
+ } = props;
420
419
  const classNames2 = useClassNames4({
421
420
  component: "Field",
422
421
  variant,
423
422
  size
424
423
  });
425
424
  return /* @__PURE__ */ jsxs5(
426
- "div",
425
+ Component,
427
426
  {
428
- ...props,
429
- ...stateProps,
430
- className: cn6("group/field", twWidth[width], classNames2),
427
+ ref,
428
+ className: cn6("group/field", twWidth[width], classNames2, className),
429
+ "data-required": props.isRequired ? true : void 0,
430
+ "data-error": props.isInvalid ? true : void 0,
431
+ ...rest,
431
432
  children: [
432
- label ? /* @__PURE__ */ jsx10(_Label, { variant, size, ...labelProps, children: label }) : /* @__PURE__ */ jsx10("span", { "aria-hidden": "true" }),
433
+ label ? /* @__PURE__ */ jsx10(_Label, { variant, size, children: label }) : /* @__PURE__ */ jsx10("span", { "aria-hidden": "true" }),
433
434
  children,
434
- hasHelpText && /* @__PURE__ */ jsx10(
435
+ /* @__PURE__ */ jsx10(
435
436
  HelpText,
436
437
  {
437
438
  variant,
438
439
  size,
439
- disabled,
440
440
  description,
441
- descriptionProps,
442
- error,
443
441
  errorMessage,
444
- errorMessageProps
442
+ error: props.isInvalid
445
443
  }
446
444
  )
447
445
  ]
448
446
  }
449
447
  );
450
448
  };
449
+ var FieldBase = fixedForwardRef(_FieldBase);
451
450
 
452
451
  // src/Input/Input.tsx
453
- import {
454
- cloneElement as cloneElement2,
455
- forwardRef as forwardRef3
456
- } from "react";
452
+ import { cloneElement as cloneElement2, forwardRef as forwardRef4 } from "react";
453
+ import { Input } from "react-aria-components";
457
454
  import { cn as cn7, useClassNames as useClassNames5 } from "@marigold/system";
458
455
  import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
459
- var Input = forwardRef3(
460
- ({ type = "text", icon, action, variant, size, ...props }, ref) => {
456
+ var _Input = forwardRef4(
457
+ ({ type, icon, action, variant, size, className, ...props }, ref) => {
461
458
  const classNames2 = useClassNames5({
462
459
  component: "Input",
463
460
  variant,
@@ -488,7 +485,7 @@ var Input = forwardRef3(
488
485
  children: [
489
486
  inputIcon,
490
487
  /* @__PURE__ */ jsx11(
491
- "input",
488
+ Input,
492
489
  {
493
490
  ...props,
494
491
  className: cn7(
@@ -496,7 +493,8 @@ var Input = forwardRef3(
496
493
  "disabled:cursor-not-allowed",
497
494
  "[&[type=file]]:border-none [&[type=file]]:p-0",
498
495
  "[&[type=color]]:ml-0 [&[type=color]]:border-none [&[type=color]]:bg-transparent [&[type=color]]:p-0",
499
- classNames2.input
496
+ classNames2.input,
497
+ className
500
498
  ),
501
499
  ref,
502
500
  type
@@ -509,97 +507,71 @@ var Input = forwardRef3(
509
507
  }
510
508
  );
511
509
 
512
- // src/ListBox/_ListBox.tsx
513
- import { forwardRef as forwardRef4 } from "react";
514
- import { useListBox } from "@react-aria/listbox";
515
- import { useObjectRef } from "@react-aria/utils";
516
- import { cn as cn8, useClassNames as useClassNames6 } from "@marigold/system";
510
+ // src/ListBox/ListBox.tsx
511
+ import {
512
+ forwardRef as forwardRef5
513
+ } from "react";
514
+ import { ListBox } from "react-aria-components";
515
+ import { cn as cn9, useClassNames as useClassNames6 } from "@marigold/system";
517
516
 
518
517
  // src/ListBox/Context.ts
519
518
  import { createContext as createContext2, useContext as useContext2 } from "react";
520
519
  var ListBoxContext = createContext2({});
521
520
  var useListBoxContext = () => useContext2(ListBoxContext);
522
521
 
523
- // src/ListBox/_ListBoxOption.tsx
524
- import { useRef as useRef3 } from "react";
525
- import { useOption } from "@react-aria/listbox";
526
- import { mergeProps as mergeProps3 } from "@react-aria/utils";
527
- import { useStateProps as useStateProps2 } from "@marigold/system";
522
+ // src/ListBox/ListBoxOption.tsx
523
+ import { ListBoxItem } from "react-aria-components";
528
524
  import { jsx as jsx12 } from "react/jsx-runtime";
529
- var ListBoxOption = ({ item, state }) => {
530
- const ref = useRef3(null);
531
- const { optionProps, isSelected, isDisabled, isFocused } = useOption(
532
- {
533
- key: item.key
534
- },
535
- state,
536
- ref
537
- );
538
- const { onPointerUp, ...props } = optionProps;
525
+ var _ListBoxItem = (props) => {
539
526
  const { classNames: classNames2 } = useListBoxContext();
540
- const stateProps = useStateProps2({
541
- selected: isSelected,
542
- disabled: isDisabled,
543
- focusVisible: isFocused
544
- });
545
- return /* @__PURE__ */ jsx12(
546
- "li",
547
- {
548
- ref,
549
- className: classNames2.option,
550
- ...mergeProps3(props, { onPointerDown: onPointerUp }, { ...stateProps }),
551
- children: item.props.children
552
- }
553
- );
527
+ return /* @__PURE__ */ jsx12(ListBoxItem, { ...props, className: classNames2.option });
554
528
  };
555
529
 
556
- // src/ListBox/_ListBoxSection.tsx
557
- import { useListBoxSection } from "@react-aria/listbox";
558
- import { jsx as jsx13, jsxs as jsxs7 } from "react/jsx-runtime";
559
- var ListBoxSection = ({ section, state }) => {
530
+ // src/ListBox/ListBoxSection.tsx
531
+ import { Section } from "react-aria-components";
532
+ import { cn as cn8 } from "@marigold/system";
533
+ import { jsx as jsx13 } from "react/jsx-runtime";
534
+ var _Section = (props) => {
560
535
  const { classNames: classNames2 } = useListBoxContext();
561
- const { itemProps, headingProps, groupProps } = useListBoxSection({
562
- heading: section.rendered,
563
- "aria-label": section["aria-label"]
564
- });
565
- return /* @__PURE__ */ jsxs7("li", { className: classNames2.section, ...itemProps, children: [
566
- section.rendered && /* @__PURE__ */ jsx13("div", { className: classNames2.sectionTitle, ...headingProps, children: section.rendered }),
567
- /* @__PURE__ */ jsx13("ul", { className: classNames2.list, ...groupProps, children: [...section.props.children].map((node) => /* @__PURE__ */ jsx13(ListBoxOption, { item: node, state }, node.key)) })
568
- ] });
536
+ return /* @__PURE__ */ jsx13(
537
+ Section,
538
+ {
539
+ ...props,
540
+ className: cn8(classNames2.section, classNames2.sectionTitle)
541
+ }
542
+ );
569
543
  };
570
544
 
571
- // src/ListBox/_ListBox.tsx
545
+ // src/ListBox/ListBox.tsx
572
546
  import { jsx as jsx14 } from "react/jsx-runtime";
573
- var ListBox = forwardRef4(
574
- ({ state, variant, size, ...props }, ref) => {
575
- const innerRef = useObjectRef(ref);
576
- const { listBoxProps } = useListBox(props, state, innerRef);
547
+ var _ListBox = forwardRef5(
548
+ ({ variant, size, ...props }, ref) => {
577
549
  const classNames2 = useClassNames6({ component: "ListBox", variant, size });
578
550
  return /* @__PURE__ */ jsx14(ListBoxContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx14("div", { className: classNames2.container, children: /* @__PURE__ */ jsx14(
579
- "ul",
551
+ ListBox,
580
552
  {
581
- className: cn8(
553
+ ...props,
554
+ className: cn9(
582
555
  "overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh]",
583
556
  classNames2.list
584
557
  ),
585
- ref: innerRef,
586
- ...listBoxProps,
587
- children: [...state.collection].map(
588
- (item) => item.type === "section" ? /* @__PURE__ */ jsx14(ListBoxSection, { section: item, state }, item.key) : /* @__PURE__ */ jsx14(ListBoxOption, { item, state }, item.key)
589
- )
558
+ ref,
559
+ children: props.children
590
560
  }
591
561
  ) }) });
592
562
  }
593
563
  );
564
+ _ListBox.Item = _ListBoxItem;
565
+ _ListBox.Section = _Section;
594
566
 
595
- // src/Overlay/Modal.tsx
596
- import { forwardRef as forwardRef5 } from "react";
597
- import { Modal } from "react-aria-components";
598
- import { useTheme } from "@marigold/system";
567
+ // src/Overlay/Popover.tsx
568
+ import { forwardRef as forwardRef6 } from "react";
569
+ import { Popover } from "react-aria-components";
570
+ import { cn as cn11, useClassNames as useClassNames8, useSmallScreen, useTheme } from "@marigold/system";
599
571
 
600
572
  // src/Overlay/Underlay.tsx
601
573
  import { ModalOverlay } from "react-aria-components";
602
- import { cn as cn9, useClassNames as useClassNames7 } from "@marigold/system";
574
+ import { cn as cn10, useClassNames as useClassNames7 } from "@marigold/system";
603
575
  import { jsx as jsx15 } from "react/jsx-runtime";
604
576
  var Underlay = ({
605
577
  size,
@@ -619,242 +591,115 @@ var Underlay = ({
619
591
  return /* @__PURE__ */ jsx15(
620
592
  ModalOverlay,
621
593
  {
622
- className: ({ isEntering, isExiting }) => cn9(
594
+ className: ({ isEntering, isExiting }) => cn10(
623
595
  "fixed inset-0 z-10 flex min-h-full items-center justify-center overflow-y-auto backdrop-blur ",
624
596
  isEntering ? "animate-in fade-in duration-300 ease-out" : "",
625
597
  isExiting ? "animate-out fade-out duration-200 ease-in" : "",
626
598
  classNames2
627
599
  ),
628
600
  ...props,
601
+ "data-testid": "underlay-id",
629
602
  children: props.children
630
603
  }
631
604
  );
632
605
  };
633
606
 
634
- // src/Overlay/Modal.tsx
635
- import { jsx as jsx16 } from "react/jsx-runtime";
636
- var _Modal = forwardRef5(({ open, dismissable, keyboardDismissable, ...rest }, ref) => {
637
- const theme = useTheme();
638
- const props = {
639
- isOpen: open,
640
- isDismissable: dismissable,
641
- isKeyboardDismissDisabled: keyboardDismissable,
642
- ...rest
643
- };
644
- return /* @__PURE__ */ jsx16(
645
- Underlay,
646
- {
647
- dismissable,
648
- keyboardDismissable,
649
- open,
650
- variant: "modal",
651
- children: /* @__PURE__ */ jsx16(Modal, { ref, "data-theme": theme.name, ...props, children: props.children })
652
- }
653
- );
654
- });
655
-
656
- // src/Overlay/Overlay.tsx
657
- import { useRef as useRef4 } from "react";
658
- import {
659
- Overlay as ReactAriaOverlay
660
- } from "@react-aria/overlays";
661
- import { useTheme as useTheme2 } from "@marigold/system";
662
- import { jsx as jsx17 } from "react/jsx-runtime";
663
- var Overlay = ({ children, container, open }) => {
664
- const nodeRef = useRef4(null);
665
- const theme = useTheme2();
666
- let mountOverlay = open;
667
- if (!mountOverlay) {
668
- return null;
669
- }
670
- return /* @__PURE__ */ jsx17(ReactAriaOverlay, { portalContainer: container, children: /* @__PURE__ */ jsx17(
671
- "div",
672
- {
673
- ref: nodeRef,
674
- "data-testid": "overlay",
675
- "data-theme": theme.name,
676
- className: "opacity-100",
677
- children
678
- }
679
- ) });
680
- };
681
-
682
- // src/Overlay/_Popover.tsx
683
- import { forwardRef as forwardRef6, useRef as useRef5 } from "react";
684
- import { FocusScope } from "@react-aria/focus";
685
- import {
686
- DismissButton,
687
- usePopover
688
- } from "@react-aria/overlays";
689
- import { useClassNames as useClassNames8 } from "@marigold/system";
690
- import { jsx as jsx18, jsxs as jsxs8 } from "react/jsx-runtime";
691
- var Popover = forwardRef6(
692
- (props, ref) => {
693
- const fallbackRef = useRef5(null);
694
- const popoverRef = ref || fallbackRef;
695
- let { children, state, ...otherProps } = props;
696
- return /* @__PURE__ */ jsx18(Overlay, { open: state.isOpen, ...otherProps, children: /* @__PURE__ */ jsx18(PopoverWrapper, { ref: popoverRef, ...props, children }) });
697
- }
698
- );
699
- var PopoverWrapper = forwardRef6(
700
- ({
701
- children,
702
- isNonModal,
703
- state,
704
- keyboardDismissDisabled,
705
- ...props
706
- }, ref) => {
707
- const { popoverProps, underlayProps, placement } = usePopover(
708
- {
709
- ...props,
710
- isNonModal,
711
- isKeyboardDismissDisabled: keyboardDismissDisabled,
712
- popoverRef: ref,
713
- placement: "bottom left"
714
- },
715
- state
716
- );
607
+ // src/Overlay/Popover.tsx
608
+ import { Fragment, jsx as jsx16, jsxs as jsxs7 } from "react/jsx-runtime";
609
+ var _Popover = forwardRef6(
610
+ ({ keyboardDismissDisabled, placement, open, children, ...rest }, ref) => {
611
+ const props = {
612
+ isKeyboardDismissDisabled: keyboardDismissDisabled,
613
+ isOpen: open,
614
+ placement,
615
+ ...rest
616
+ };
717
617
  const classNames2 = useClassNames8({
718
618
  component: "Popover",
719
- variant: placement
619
+ variant: placement,
620
+ // Make Popover as wide as trigger element
621
+ className: "w-[--trigger-width]"
720
622
  });
721
- return /* @__PURE__ */ jsxs8(FocusScope, { restoreFocus: true, children: [
722
- !isNonModal && /* @__PURE__ */ jsx18(Underlay, { ...underlayProps }),
723
- /* @__PURE__ */ jsxs8(
724
- "div",
623
+ const isSmallScreen = useSmallScreen();
624
+ const theme = useTheme();
625
+ return /* @__PURE__ */ jsx16(Fragment, { children: isSmallScreen ? /* @__PURE__ */ jsxs7(Fragment, { children: [
626
+ /* @__PURE__ */ jsx16(Underlay, { open, variant: "modal" }),
627
+ /* @__PURE__ */ jsx16(
628
+ Popover,
725
629
  {
726
- ...popoverProps,
727
- className: classNames2,
728
- style: {
729
- ...popoverProps.style,
730
- minWidth: props.triggerRef.current ? props.triggerRef.current.offsetWidth : void 0
731
- },
732
630
  ref,
733
- role: "presentation",
734
- children: [
735
- !isNonModal && /* @__PURE__ */ jsx18(DismissButton, { onDismiss: state.close }),
736
- children,
737
- /* @__PURE__ */ jsx18(DismissButton, { onDismiss: state.close })
738
- ]
631
+ ...props,
632
+ className: cn11(
633
+ "!left-0 bottom-0 !mt-auto flex !max-h-fit w-full flex-col"
634
+ ),
635
+ "data-theme": theme.name,
636
+ children
739
637
  }
740
638
  )
741
- ] });
639
+ ] }) : /* @__PURE__ */ jsx16(
640
+ Popover,
641
+ {
642
+ ref,
643
+ ...props,
644
+ className: classNames2,
645
+ offset: 0,
646
+ "data-theme": theme.name,
647
+ children
648
+ }
649
+ ) });
742
650
  }
743
651
  );
744
652
 
745
- // src/Overlay/Tray.tsx
746
- import { forwardRef as forwardRef7 } from "react";
747
- import { FocusScope as FocusScope2 } from "@react-aria/focus";
748
- import {
749
- DismissButton as DismissButton2,
750
- useModalOverlay
751
- } from "@react-aria/overlays";
752
- import { useObjectRef as useObjectRef2 } from "@react-aria/utils";
753
-
754
- // src/Overlay/_Underlay.tsx
755
- import { cn as cn10, useClassNames as useClassNames9 } from "@marigold/system";
756
- import { jsx as jsx19 } from "react/jsx-runtime";
757
- var Underlay2 = ({ size, variant, ...props }) => {
758
- const classNames2 = useClassNames9({ component: "Underlay", size, variant });
759
- return /* @__PURE__ */ jsx19("div", { className: cn10("fixed inset-0 z-40", classNames2), ...props });
760
- };
653
+ // src/Autocomplete/ClearButton.tsx
654
+ import React from "react";
655
+ import { ComboBoxStateContext } from "react-aria-components";
656
+ import { cn as cn13 } from "@marigold/system";
761
657
 
762
- // src/Overlay/Tray.tsx
763
- import { jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
764
- var Tray = forwardRef7(
765
- ({ state, children, ...props }, ref) => {
766
- const trayRef = useObjectRef2(ref);
767
- return /* @__PURE__ */ jsx20(Overlay, { open: state.isOpen, children: /* @__PURE__ */ jsx20(TrayWrapper, { state, ...props, ref: trayRef, children }) });
768
- }
769
- );
770
- var TrayWrapper = forwardRef7(
771
- ({ children, state, ...props }, ref) => {
772
- let { modalProps, underlayProps } = useModalOverlay(
658
+ // src/Button/Button.tsx
659
+ import { forwardRef as forwardRef7 } from "react";
660
+ import { Button } from "react-aria-components";
661
+ import { cn as cn12, useClassNames as useClassNames9 } from "@marigold/system";
662
+ import { jsx as jsx17 } from "react/jsx-runtime";
663
+ var _Button = forwardRef7(
664
+ ({ children, variant, size, className, disabled, fullWidth, ...props }, ref) => {
665
+ const classNames2 = useClassNames9({
666
+ component: "Button",
667
+ variant,
668
+ size,
669
+ className
670
+ });
671
+ return /* @__PURE__ */ jsx17(
672
+ Button,
773
673
  {
774
674
  ...props,
775
- isDismissable: true
776
- },
777
- state,
778
- ref
779
- );
780
- return /* @__PURE__ */ jsx20(FocusScope2, { contain: true, restoreFocus: true, autoFocus: true, children: /* @__PURE__ */ jsx20(Underlay2, { ...underlayProps, variant: "modal", children: /* @__PURE__ */ jsxs9(
781
- "div",
782
- {
783
- ...modalProps,
784
675
  ref,
785
- className: "absolute bottom-0 w-full",
786
- "data-testid": "tray",
787
- children: [
788
- /* @__PURE__ */ jsx20(DismissButton2, { onDismiss: state.close }),
789
- children,
790
- /* @__PURE__ */ jsx20(DismissButton2, { onDismiss: state.close })
791
- ]
676
+ className: cn12(
677
+ "inline-flex items-center justify-center gap-[0.5ch]",
678
+ classNames2,
679
+ fullWidth ? "w-full" : void 0
680
+ ),
681
+ isDisabled: disabled,
682
+ children
792
683
  }
793
- ) }) });
684
+ );
794
685
  }
795
686
  );
796
687
 
797
688
  // src/Autocomplete/ClearButton.tsx
798
- import { useRef as useRef6 } from "react";
799
- import { useButton as useButton2 } from "@react-aria/button";
800
- import { useFocusRing as useFocusRing2 } from "@react-aria/focus";
801
- import { useHover } from "@react-aria/interactions";
802
- import { mergeProps as mergeProps4 } from "@react-aria/utils";
803
- import { cn as cn11, useStateProps as useStateProps3 } from "@marigold/system";
804
- import { jsx as jsx21 } from "react/jsx-runtime";
805
- var ClearButton = ({
806
- preventFocus,
807
- disabled,
808
- onClick,
809
- onPress,
810
- onPressStart,
811
- onPressEnd,
812
- onPressChange,
813
- onPressUp,
814
- excludeFromTabOrder,
815
- preventFocusOnPress,
816
- className,
817
- ...props
818
- }) => {
819
- const buttonRef = useRef6(null);
820
- const { hoverProps, isHovered } = useHover({ isDisabled: disabled });
821
- const { isFocusVisible, focusProps } = useFocusRing2({
822
- autoFocus: props.autoFocus
823
- });
824
- const { buttonProps, isPressed } = useButton2(
825
- {
826
- ...props,
827
- onClick,
828
- onPress,
829
- onPressStart,
830
- onPressEnd,
831
- onPressChange,
832
- onPressUp,
833
- excludeFromTabOrder,
834
- preventFocusOnPress,
835
- isDisabled: disabled
836
- },
837
- buttonRef
838
- );
839
- if (preventFocus) {
840
- delete buttonProps.tabIndex;
841
- }
842
- const stateProps = useStateProps3({
843
- active: isPressed,
844
- focusVisible: isFocusVisible,
845
- hover: isHovered
846
- });
847
- return /* @__PURE__ */ jsx21(
848
- "button",
689
+ import { jsx as jsx18 } from "react/jsx-runtime";
690
+ var AutocompleteClearButton = ({ className }) => {
691
+ let state = React.useContext(ComboBoxStateContext);
692
+ return /* @__PURE__ */ jsx18(
693
+ _Button,
849
694
  {
850
- ...mergeProps4(buttonProps, focusProps, hoverProps, props),
851
- ...stateProps,
852
- ref: buttonRef,
853
- className: cn11(
695
+ "aria-label": "Clear",
696
+ onPress: () => state == null ? void 0 : state.setInputValue(""),
697
+ variant: "icon",
698
+ className: cn13(
854
699
  "cursor-pointer appearance-none border-none p-0 pr-1",
855
700
  className
856
701
  ),
857
- children: /* @__PURE__ */ jsx21(
702
+ children: /* @__PURE__ */ jsx18(
858
703
  "svg",
859
704
  {
860
705
  xmlns: "http://www.w3.org/2000/svg",
@@ -862,7 +707,7 @@ var ClearButton = ({
862
707
  fill: "currentColor",
863
708
  width: 20,
864
709
  height: 20,
865
- children: /* @__PURE__ */ jsx21("path", { d: "M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z" })
710
+ children: /* @__PURE__ */ jsx18("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" })
866
711
  }
867
712
  )
868
713
  }
@@ -870,8 +715,29 @@ var ClearButton = ({
870
715
  };
871
716
 
872
717
  // src/Autocomplete/Autocomplete.tsx
873
- import { Fragment as Fragment2, jsx as jsx22, jsxs as jsxs10 } from "react/jsx-runtime";
874
- var SearchIcon = (props) => /* @__PURE__ */ jsx22(
718
+ import { Fragment as Fragment2, jsx as jsx19, jsxs as jsxs8 } from "react/jsx-runtime";
719
+ var SearchInput = ({ onSubmit, ref }) => {
720
+ const state = React2.useContext(ComboBoxStateContext2);
721
+ return /* @__PURE__ */ jsx19(
722
+ _Input,
723
+ {
724
+ ref,
725
+ icon: /* @__PURE__ */ jsx19(SearchIcon, {}),
726
+ action: (state == null ? void 0 : state.inputValue) !== "" ? /* @__PURE__ */ jsx19(AutocompleteClearButton, {}) : void 0,
727
+ onKeyDown: (e) => {
728
+ if (e.key === "Enter" || e.key === "Escape") {
729
+ e.preventDefault();
730
+ }
731
+ if (e.key === "Enter") {
732
+ if (state.selectionManager.focusedKey === null) {
733
+ onSubmit == null ? void 0 : onSubmit(null, state.inputValue);
734
+ }
735
+ }
736
+ }
737
+ }
738
+ );
739
+ };
740
+ var SearchIcon = (props) => /* @__PURE__ */ jsx19(
875
741
  "svg",
876
742
  {
877
743
  xmlns: "http://www.w3.org/2000/svg",
@@ -880,238 +746,94 @@ var SearchIcon = (props) => /* @__PURE__ */ jsx22(
880
746
  width: 24,
881
747
  height: 24,
882
748
  ...props,
883
- children: /* @__PURE__ */ jsx22("path", { d: "M16.1865 14.5142H15.3057L14.9936 14.2131C16.0862 12.9421 16.744 11.292 16.744 9.497C16.744 5.49443 13.4996 2.25 9.497 2.25C5.49443 2.25 2.25 5.49443 2.25 9.497C2.25 13.4996 5.49443 16.744 9.497 16.744C11.292 16.744 12.9421 16.0862 14.2131 14.9936L14.5142 15.3057V16.1865L20.0888 21.75L21.75 20.0888L16.1865 14.5142ZM9.49701 14.5142C6.72085 14.5142 4.47986 12.2732 4.47986 9.49701C4.47986 6.72085 6.72085 4.47986 9.49701 4.47986C12.2732 4.47986 14.5142 6.72085 14.5142 9.49701C14.5142 12.2732 12.2732 14.5142 9.49701 14.5142Z" })
749
+ children: /* @__PURE__ */ jsx19("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" })
884
750
  }
885
751
  );
886
- var Autocomplete = ({
887
- disabled,
888
- required,
889
- readOnly,
890
- error,
891
- onChange,
892
- value,
893
- defaultValue,
894
- variant,
895
- size,
896
- width,
897
- ...rest
898
- }) => {
899
- const { contains } = useFilter({ sensitivity: "base" });
900
- const props = {
901
- ...rest,
902
- onInputChange: onChange,
903
- inputValue: value,
904
- defaultInputValue: defaultValue,
905
- isDisabled: disabled,
906
- isRequired: required,
907
- isReadOnly: readOnly,
908
- validationState: error ? "invalid" : "valid"
909
- };
910
- const state = useComboBoxState({
911
- ...props,
912
- defaultFilter: contains,
913
- allowsCustomValue: true,
914
- onSelectionChange: (key) => {
915
- var _a;
916
- return key !== null && ((_a = props.onSubmit) == null ? void 0 : _a.call(props, key, null));
917
- },
918
- selectedKey: void 0,
919
- defaultSelectedKey: void 0
920
- });
921
- const inputRef = useRef7(null);
922
- const listBoxRef = useRef7(null);
923
- const popoverRef = useRef7(null);
924
- const { inputProps, listBoxProps, labelProps, clearButtonProps } = useSearchAutocomplete(
925
- {
926
- ...props,
927
- onSubmit: (value2, key) => {
928
- var _a;
929
- return (_a = props.onSubmit) == null ? void 0 : _a.call(props, key, value2);
930
- },
931
- popoverRef,
932
- listBoxRef,
933
- inputRef
934
- },
935
- state
936
- );
937
- const { isDisabled, ...restClearButtonProps } = clearButtonProps;
938
- return /* @__PURE__ */ jsxs10(Fragment2, { children: [
939
- /* @__PURE__ */ jsx22(
940
- FieldBase,
941
- {
942
- label: props.label,
943
- labelProps,
944
- description: props.description,
945
- error,
946
- errorMessage: props.errorMessage,
947
- disabled,
948
- width,
949
- children: /* @__PURE__ */ jsx22(
950
- Input,
951
- {
952
- ...inputProps,
953
- ref: inputRef,
954
- icon: /* @__PURE__ */ jsx22(SearchIcon, {}),
955
- action: state.inputValue !== "" ? /* @__PURE__ */ jsx22(
956
- ClearButton,
957
- {
958
- preventFocus: true,
959
- disabled: isDisabled,
960
- ...restClearButtonProps
961
- }
962
- ) : null
963
- }
964
- )
965
- }
966
- ),
967
- /* @__PURE__ */ jsx22(
968
- Popover,
969
- {
970
- state,
971
- ref: popoverRef,
972
- triggerRef: inputRef,
973
- scrollRef: listBoxRef,
974
- isNonModal: true,
975
- children: /* @__PURE__ */ jsx22(ListBox, { ref: listBoxRef, state, ...listBoxProps })
976
- }
977
- )
978
- ] });
979
- };
980
- Autocomplete.Item = Item2;
981
-
982
- // src/ComboBox/ComboBox.tsx
983
- import React from "react";
984
- import { useComboBox } from "@react-aria/combobox";
985
- import { useFilter as useFilter2 } from "@react-aria/i18n";
986
- import { Item as Item3 } from "@react-stately/collections";
987
- import { useComboBoxState as useComboBoxState2 } from "@react-stately/combobox";
988
-
989
- // src/Button/Button.tsx
990
- import { forwardRef as forwardRef8 } from "react";
991
- import { Button } from "react-aria-components";
992
- import { cn as cn12, useClassNames as useClassNames10 } from "@marigold/system";
993
- import { jsx as jsx23 } from "react/jsx-runtime";
994
- var _Button = forwardRef8(
995
- ({ children, variant, size, className, disabled, fullWidth, ...props }, ref) => {
996
- const classNames2 = useClassNames10({
997
- component: "Button",
998
- variant,
999
- size,
1000
- className
1001
- });
1002
- return /* @__PURE__ */ jsx23(
1003
- Button,
1004
- {
1005
- ...props,
1006
- ref,
1007
- className: cn12(
1008
- "inline-flex items-center justify-center gap-[0.5ch]",
1009
- classNames2,
1010
- fullWidth ? "w-full" : void 0
1011
- ),
1012
- isDisabled: disabled,
1013
- children
1014
- }
1015
- );
752
+ var _Autocomplete = forwardRef8(
753
+ ({
754
+ children,
755
+ defaultValue,
756
+ value,
757
+ onChange,
758
+ onSubmit,
759
+ disabled,
760
+ error,
761
+ readOnly,
762
+ required,
763
+ ...rest
764
+ }, ref) => {
765
+ const props = {
766
+ onSelectionChange: (key) => key !== null && (onSubmit == null ? void 0 : onSubmit(key, null)),
767
+ defaultInputValue: defaultValue,
768
+ inputValue: value,
769
+ onInputChange: onChange,
770
+ allowsCustomValue: true,
771
+ isDisabled: disabled,
772
+ isInvalid: error,
773
+ isReadOnly: readOnly,
774
+ isRequired: required,
775
+ ...rest
776
+ };
777
+ return /* @__PURE__ */ jsx19(Fragment2, { children: /* @__PURE__ */ jsxs8(FieldBase, { as: ComboBox, ...props, children: [
778
+ /* @__PURE__ */ jsx19(SearchInput, { onSubmit, ref }),
779
+ /* @__PURE__ */ jsx19(_Popover, { children: /* @__PURE__ */ jsx19(_ListBox, { children }) })
780
+ ] }) });
1016
781
  }
1017
782
  );
783
+ _Autocomplete.Item = _ListBox.Item;
1018
784
 
1019
785
  // src/ComboBox/ComboBox.tsx
1020
- import { Fragment as Fragment3, jsx as jsx24, jsxs as jsxs11 } from "react/jsx-runtime";
1021
- var ComboBox = ({
1022
- error,
1023
- width,
1024
- disabled,
1025
- required,
1026
- readOnly,
1027
- defaultValue,
1028
- value,
1029
- onChange,
1030
- variant,
1031
- size,
1032
- ...rest
1033
- }) => {
1034
- const props = {
1035
- isDisabled: disabled,
1036
- isRequired: required,
1037
- isReadOnly: readOnly,
1038
- defaultInputValue: defaultValue,
1039
- inputValue: value,
1040
- onInputChange: onChange,
786
+ import { forwardRef as forwardRef9 } from "react";
787
+ import { ComboBox as ComboBox2 } from "react-aria-components";
788
+ import { jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
789
+ var _ComboBox = forwardRef9(
790
+ ({
791
+ variant,
792
+ size,
793
+ required,
794
+ disabled,
795
+ readOnly,
796
+ error,
797
+ defaultValue,
798
+ value,
799
+ onChange,
800
+ children,
1041
801
  ...rest
1042
- };
1043
- const { contains } = useFilter2({ sensitivity: "base" });
1044
- const state = useComboBoxState2({ ...props, defaultFilter: contains });
1045
- const buttonRef = React.useRef(null);
1046
- const inputRef = React.useRef(null);
1047
- const listBoxRef = React.useRef(null);
1048
- const popoverRef = React.useRef(null);
1049
- const {
1050
- buttonProps: triggerProps,
1051
- inputProps,
1052
- listBoxProps,
1053
- labelProps
1054
- } = useComboBox(
1055
- { ...props, inputRef, buttonRef, listBoxRef, popoverRef },
1056
- state
1057
- );
1058
- const errorMessageProps = { "aria-invalid": error };
1059
- const { label, description, errorMessage } = props;
1060
- return /* @__PURE__ */ jsxs11(Fragment3, { children: [
1061
- /* @__PURE__ */ jsx24(
1062
- FieldBase,
1063
- {
1064
- label,
1065
- labelProps,
1066
- description,
1067
- error,
1068
- errorMessage,
1069
- errorMessageProps,
1070
- width,
1071
- children: /* @__PURE__ */ jsx24(
1072
- Input,
1073
- {
1074
- ...inputProps,
1075
- ref: inputRef,
1076
- action: /* @__PURE__ */ jsx24(
1077
- _Button,
1078
- {
1079
- className: "absolute right-2 h-4 w-4 border-none bg-transparent p-0",
1080
- ref: buttonRef,
1081
- ...triggerProps,
1082
- children: /* @__PURE__ */ jsx24(ChevronDown, { className: "h-4 w-4" })
1083
- }
1084
- )
1085
- }
1086
- )
1087
- }
1088
- ),
1089
- /* @__PURE__ */ jsx24(
1090
- Popover,
1091
- {
1092
- state,
1093
- ref: popoverRef,
1094
- triggerRef: inputRef,
1095
- scrollRef: listBoxRef,
1096
- isNonModal: true,
1097
- children: /* @__PURE__ */ jsx24(ListBox, { ref: listBoxRef, state, ...listBoxProps })
1098
- }
1099
- )
1100
- ] });
1101
- };
1102
- ComboBox.Item = Item3;
802
+ }, ref) => {
803
+ const props = {
804
+ isDisabled: disabled,
805
+ isReadOnly: readOnly,
806
+ isRequired: required,
807
+ isInvalid: error,
808
+ defaultInputValue: defaultValue,
809
+ inputValue: value,
810
+ onInputChange: onChange,
811
+ ...rest
812
+ };
813
+ return /* @__PURE__ */ jsxs9(FieldBase, { as: ComboBox2, ref, ...props, children: [
814
+ /* @__PURE__ */ jsx20(
815
+ _Input,
816
+ {
817
+ action: /* @__PURE__ */ jsx20(_Button, { className: "absolute right-2 h-4 w-4 border-none bg-transparent p-0", children: /* @__PURE__ */ jsx20(ChevronDown, { className: "h-4 w-4" }) })
818
+ }
819
+ ),
820
+ /* @__PURE__ */ jsx20(_Popover, { children: /* @__PURE__ */ jsx20(_ListBox, { children }) })
821
+ ] });
822
+ }
823
+ );
824
+ _ComboBox.Item = _ListBox.Item;
1103
825
 
1104
826
  // src/Badge/Badge.tsx
1105
- import { useClassNames as useClassNames11 } from "@marigold/system";
1106
- import { jsx as jsx25 } from "react/jsx-runtime";
827
+ import { useClassNames as useClassNames10 } from "@marigold/system";
828
+ import { jsx as jsx21 } from "react/jsx-runtime";
1107
829
  var Badge = ({ variant, size, children, ...props }) => {
1108
- const classNames2 = useClassNames11({ component: "Badge", variant, size });
1109
- return /* @__PURE__ */ jsx25("div", { ...props, className: classNames2, children });
830
+ const classNames2 = useClassNames10({ component: "Badge", variant, size });
831
+ return /* @__PURE__ */ jsx21("div", { ...props, className: classNames2, children });
1110
832
  };
1111
833
 
1112
834
  // src/Breakout/Breakout.tsx
1113
- import { alignment, cn as cn13, createVar as createVar4 } from "@marigold/system";
1114
- import { jsx as jsx26 } from "react/jsx-runtime";
835
+ import { alignment, cn as cn14, createVar as createVar4 } from "@marigold/system";
836
+ import { jsx as jsx22 } from "react/jsx-runtime";
1115
837
  var Breakout = ({
1116
838
  height,
1117
839
  children,
@@ -1121,10 +843,10 @@ var Breakout = ({
1121
843
  ...props
1122
844
  }) => {
1123
845
  var _a, _b, _c, _d;
1124
- return /* @__PURE__ */ jsx26(
846
+ return /* @__PURE__ */ jsx22(
1125
847
  "div",
1126
848
  {
1127
- className: cn13(
849
+ className: cn14(
1128
850
  "col-start-[1_!important] col-end-[-1_!important] w-full",
1129
851
  alignX && ((_b = (_a = alignment) == null ? void 0 : _a.horizontal) == null ? void 0 : _b.alignmentX[alignX]),
1130
852
  alignY && ((_d = (_c = alignment) == null ? void 0 : _c.horizontal) == null ? void 0 : _d.alignmentY[alignY]),
@@ -1139,16 +861,16 @@ var Breakout = ({
1139
861
  };
1140
862
 
1141
863
  // src/Body/Body.tsx
1142
- import { useClassNames as useClassNames12 } from "@marigold/system";
1143
- import { jsx as jsx27 } from "react/jsx-runtime";
864
+ import { useClassNames as useClassNames11 } from "@marigold/system";
865
+ import { jsx as jsx23 } from "react/jsx-runtime";
1144
866
  var Body = ({ children, variant, size, ...props }) => {
1145
- const classNames2 = useClassNames12({ component: "Body", variant, size });
1146
- return /* @__PURE__ */ jsx27("section", { ...props, className: classNames2, children });
867
+ const classNames2 = useClassNames11({ component: "Body", variant, size });
868
+ return /* @__PURE__ */ jsx23("section", { ...props, className: classNames2, children });
1147
869
  };
1148
870
 
1149
871
  // src/Card/Card.tsx
1150
872
  import {
1151
- cn as cn14,
873
+ cn as cn15,
1152
874
  gapSpace as gapSpace2,
1153
875
  paddingBottom,
1154
876
  paddingLeft,
@@ -1157,9 +879,9 @@ import {
1157
879
  paddingSpaceX,
1158
880
  paddingSpaceY,
1159
881
  paddingTop,
1160
- useClassNames as useClassNames13
882
+ useClassNames as useClassNames12
1161
883
  } from "@marigold/system";
1162
- import { jsx as jsx28 } from "react/jsx-runtime";
884
+ import { jsx as jsx24 } from "react/jsx-runtime";
1163
885
  var Card = ({
1164
886
  children,
1165
887
  variant,
@@ -1174,12 +896,12 @@ var Card = ({
1174
896
  pr,
1175
897
  ...props
1176
898
  }) => {
1177
- const classNames2 = useClassNames13({ component: "Card", variant, size });
1178
- return /* @__PURE__ */ jsx28(
899
+ const classNames2 = useClassNames12({ component: "Card", variant, size });
900
+ return /* @__PURE__ */ jsx24(
1179
901
  "div",
1180
902
  {
1181
903
  ...props,
1182
- className: cn14(
904
+ className: cn15(
1183
905
  "flex flex-col",
1184
906
  classNames2,
1185
907
  gapSpace2[space],
@@ -1197,19 +919,19 @@ var Card = ({
1197
919
  };
1198
920
 
1199
921
  // src/Center/Center.tsx
1200
- import { cn as cn15, createVar as createVar5, gapSpace as gapSpace3 } from "@marigold/system";
1201
- import { jsx as jsx29 } from "react/jsx-runtime";
922
+ import { cn as cn16, createVar as createVar5, gapSpace as gapSpace3 } from "@marigold/system";
923
+ import { jsx as jsx25 } from "react/jsx-runtime";
1202
924
  var Center = ({
1203
925
  maxWidth = "100%",
1204
926
  space = 0,
1205
927
  children,
1206
928
  ...props
1207
929
  }) => {
1208
- return /* @__PURE__ */ jsx29(
930
+ return /* @__PURE__ */ jsx25(
1209
931
  "div",
1210
932
  {
1211
933
  ...props,
1212
- className: cn15(
934
+ className: cn16(
1213
935
  "me-[auto] ms-[auto] box-content flex flex-col items-center justify-center",
1214
936
  gapSpace3[space],
1215
937
  "max-w-[--maxWidth]"
@@ -1221,11 +943,11 @@ var Center = ({
1221
943
  };
1222
944
 
1223
945
  // src/Checkbox/Checkbox.tsx
1224
- import { forwardRef as forwardRef9 } from "react";
946
+ import { forwardRef as forwardRef10 } from "react";
1225
947
  import { Checkbox } from "react-aria-components";
1226
- import { cn as cn16, useClassNames as useClassNames14 } from "@marigold/system";
1227
- import { Fragment as Fragment4, jsx as jsx30, jsxs as jsxs12 } from "react/jsx-runtime";
1228
- var CheckMark = () => /* @__PURE__ */ jsx30("svg", { viewBox: "0 0 12 10", children: /* @__PURE__ */ jsx30(
948
+ import { cn as cn17, useClassNames as useClassNames13 } from "@marigold/system";
949
+ import { Fragment as Fragment3, jsx as jsx26, jsxs as jsxs10 } from "react/jsx-runtime";
950
+ var CheckMark = () => /* @__PURE__ */ jsx26("svg", { viewBox: "0 0 12 10", children: /* @__PURE__ */ jsx26(
1229
951
  "path",
1230
952
  {
1231
953
  fill: "currentColor",
@@ -1233,7 +955,7 @@ var CheckMark = () => /* @__PURE__ */ jsx30("svg", { viewBox: "0 0 12 10", child
1233
955
  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"
1234
956
  }
1235
957
  ) });
1236
- var IndeterminateMark = () => /* @__PURE__ */ jsx30("svg", { width: "12", height: "3", viewBox: "0 0 12 3", children: /* @__PURE__ */ jsx30(
958
+ var IndeterminateMark = () => /* @__PURE__ */ jsx26("svg", { width: "12", height: "3", viewBox: "0 0 12 3", children: /* @__PURE__ */ jsx26(
1237
959
  "path",
1238
960
  {
1239
961
  fill: "currentColor",
@@ -1242,11 +964,11 @@ var IndeterminateMark = () => /* @__PURE__ */ jsx30("svg", { width: "12", height
1242
964
  }
1243
965
  ) });
1244
966
  var Icon = ({ className, checked, indeterminate, ...props }) => {
1245
- return /* @__PURE__ */ jsx30(
967
+ return /* @__PURE__ */ jsx26(
1246
968
  "div",
1247
969
  {
1248
970
  "aria-hidden": "true",
1249
- className: cn16(
971
+ className: cn17(
1250
972
  "flex shrink-0 grow-0 basis-4 items-center justify-center",
1251
973
  "h-4 w-4 p-px",
1252
974
  "bg-white",
@@ -1254,11 +976,11 @@ var Icon = ({ className, checked, indeterminate, ...props }) => {
1254
976
  className
1255
977
  ),
1256
978
  ...props,
1257
- children: indeterminate ? /* @__PURE__ */ jsx30(IndeterminateMark, {}) : checked ? /* @__PURE__ */ jsx30(CheckMark, {}) : null
979
+ children: indeterminate ? /* @__PURE__ */ jsx26(IndeterminateMark, {}) : checked ? /* @__PURE__ */ jsx26(CheckMark, {}) : null
1258
980
  }
1259
981
  );
1260
982
  };
1261
- var _Checkbox = forwardRef9(
983
+ var _Checkbox = forwardRef10(
1262
984
  ({
1263
985
  className,
1264
986
  indeterminate,
@@ -1283,19 +1005,19 @@ var _Checkbox = forwardRef9(
1283
1005
  defaultSelected: defaultChecked,
1284
1006
  ...rest
1285
1007
  };
1286
- const classNames2 = useClassNames14({ component: "Checkbox", variant, size });
1287
- return /* @__PURE__ */ jsx30(
1008
+ const classNames2 = useClassNames13({ component: "Checkbox", variant, size });
1009
+ return /* @__PURE__ */ jsx26(
1288
1010
  Checkbox,
1289
1011
  {
1290
1012
  ref,
1291
- className: cn16(
1013
+ className: cn17(
1292
1014
  "group/checkbox flex items-center gap-[0.5rem]",
1293
1015
  "cursor-pointer data-[disabled]:cursor-not-allowed",
1294
1016
  classNames2.container
1295
1017
  ),
1296
1018
  ...props,
1297
- children: ({ isSelected, isIndeterminate }) => /* @__PURE__ */ jsxs12(Fragment4, { children: [
1298
- /* @__PURE__ */ jsx30(
1019
+ children: ({ isSelected, isIndeterminate }) => /* @__PURE__ */ jsxs10(Fragment3, { children: [
1020
+ /* @__PURE__ */ jsx26(
1299
1021
  Icon,
1300
1022
  {
1301
1023
  checked: isSelected,
@@ -1303,7 +1025,7 @@ var _Checkbox = forwardRef9(
1303
1025
  className: classNames2.checkbox
1304
1026
  }
1305
1027
  ),
1306
- /* @__PURE__ */ jsx30("div", { className: classNames2.label, children })
1028
+ /* @__PURE__ */ jsx26("div", { className: classNames2.label, children })
1307
1029
  ] })
1308
1030
  }
1309
1031
  );
@@ -1312,109 +1034,8 @@ var _Checkbox = forwardRef9(
1312
1034
 
1313
1035
  // src/Checkbox/CheckboxGroup.tsx
1314
1036
  import { CheckboxGroup } from "react-aria-components";
1315
- import { useClassNames as useClassNames17 } from "@marigold/system";
1316
-
1317
- // src/FieldBase/_FieldBase.tsx
1318
- import { forwardRef as forwardRef10 } from "react";
1319
- import { cn as cn18, width as twWidth2, useClassNames as useClassNames16 } from "@marigold/system";
1320
-
1321
- // src/HelpText/_HelpText.tsx
1322
- import { FieldError, Text } from "react-aria-components";
1323
- import { cn as cn17, useClassNames as useClassNames15 } from "@marigold/system";
1324
- import { jsx as jsx31, jsxs as jsxs13 } from "react/jsx-runtime";
1325
- var HelpText2 = ({
1326
- variant,
1327
- size,
1328
- description,
1329
- error,
1330
- errorMessage,
1331
- ...props
1332
- }) => {
1333
- const hasErrorMessage = errorMessage && error;
1334
- const classNames2 = useClassNames15({
1335
- component: "HelpText",
1336
- variant,
1337
- size
1338
- });
1339
- if (!description && !errorMessage) {
1340
- return null;
1341
- }
1342
- return /* @__PURE__ */ jsxs13("div", { className: cn17(classNames2.container), children: [
1343
- /* @__PURE__ */ jsxs13(
1344
- FieldError,
1345
- {
1346
- ...props,
1347
- className: "grid grid-flow-col items-center justify-start gap-1",
1348
- children: [
1349
- /* @__PURE__ */ jsx31(
1350
- "svg",
1351
- {
1352
- className: cn17("h-4 w-4", classNames2.icon),
1353
- viewBox: "0 0 24 24",
1354
- role: "presentation",
1355
- fill: "currentColor",
1356
- children: /* @__PURE__ */ jsx31("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" })
1357
- }
1358
- ),
1359
- errorMessage
1360
- ]
1361
- }
1362
- ),
1363
- !hasErrorMessage && /* @__PURE__ */ jsx31(Text, { slot: "description", children: description })
1364
- ] });
1365
- };
1366
-
1367
- // src/FieldBase/_FieldBase.tsx
1368
- import { jsx as jsx32, jsxs as jsxs14 } from "react/jsx-runtime";
1369
- var fixedForwardRef = forwardRef10;
1370
- var _FieldBase = (props, ref) => {
1371
- const {
1372
- as: Component = "div",
1373
- children,
1374
- label,
1375
- size,
1376
- variant,
1377
- width = "full",
1378
- description,
1379
- errorMessage,
1380
- className,
1381
- stateProps,
1382
- ...rest
1383
- } = props;
1384
- const classNames2 = useClassNames16({
1385
- component: "Field",
1386
- variant,
1387
- size
1388
- });
1389
- return /* @__PURE__ */ jsxs14(
1390
- Component,
1391
- {
1392
- ref,
1393
- className: cn18("group/field", twWidth2[width], classNames2, className),
1394
- "data-required": props.isRequired ? true : void 0,
1395
- "data-error": props.isInvalid ? true : void 0,
1396
- ...rest,
1397
- children: [
1398
- label ? /* @__PURE__ */ jsx32(_Label, { variant, size, children: label }) : /* @__PURE__ */ jsx32("span", { "aria-hidden": "true" }),
1399
- children,
1400
- /* @__PURE__ */ jsx32(
1401
- HelpText2,
1402
- {
1403
- variant,
1404
- size,
1405
- description,
1406
- errorMessage,
1407
- error: props.isInvalid
1408
- }
1409
- )
1410
- ]
1411
- }
1412
- );
1413
- };
1414
- var FieldBase2 = fixedForwardRef(_FieldBase);
1415
-
1416
- // src/Checkbox/CheckboxGroup.tsx
1417
- import { jsx as jsx33 } from "react/jsx-runtime";
1037
+ import { useClassNames as useClassNames14 } from "@marigold/system";
1038
+ import { jsx as jsx27 } from "react/jsx-runtime";
1418
1039
  var _CheckboxGroup = ({
1419
1040
  children,
1420
1041
  variant,
@@ -1425,7 +1046,7 @@ var _CheckboxGroup = ({
1425
1046
  error,
1426
1047
  ...rest
1427
1048
  }) => {
1428
- const classNames2 = useClassNames17({
1049
+ const classNames2 = useClassNames14({
1429
1050
  component: "Checkbox",
1430
1051
  variant,
1431
1052
  size,
@@ -1439,13 +1060,13 @@ var _CheckboxGroup = ({
1439
1060
  isInvalid: error,
1440
1061
  ...rest
1441
1062
  };
1442
- return /* @__PURE__ */ jsx33(FieldBase2, { as: CheckboxGroup, ...props, children });
1063
+ return /* @__PURE__ */ jsx27(FieldBase, { as: CheckboxGroup, ...props, children });
1443
1064
  };
1444
1065
 
1445
1066
  // src/Columns/Columns.tsx
1446
1067
  import { Children as Children3, cloneElement as cloneElement3, isValidElement as isValidElement2 } from "react";
1447
- import { cn as cn19, createVar as createVar6, gapSpace as gapSpace4 } from "@marigold/system";
1448
- import { jsx as jsx34 } from "react/jsx-runtime";
1068
+ import { cn as cn18, createVar as createVar6, gapSpace as gapSpace4 } from "@marigold/system";
1069
+ import { jsx as jsx28 } from "react/jsx-runtime";
1449
1070
  var Columns = ({
1450
1071
  space = 0,
1451
1072
  columns,
@@ -1461,19 +1082,19 @@ var Columns = ({
1461
1082
  )}`
1462
1083
  );
1463
1084
  }
1464
- return /* @__PURE__ */ jsx34(
1085
+ return /* @__PURE__ */ jsx28(
1465
1086
  "div",
1466
1087
  {
1467
- className: cn19(
1088
+ className: cn18(
1468
1089
  "flex flex-wrap items-stretch",
1469
1090
  stretch && "h-full",
1470
1091
  gapSpace4[space]
1471
1092
  ),
1472
1093
  ...props,
1473
- children: Children3.map(children, (child, idx) => /* @__PURE__ */ jsx34(
1094
+ children: Children3.map(children, (child, idx) => /* @__PURE__ */ jsx28(
1474
1095
  "div",
1475
1096
  {
1476
- className: cn19(
1097
+ className: cn18(
1477
1098
  "grow-[--columnSize] basis-[calc((var(--collapseAt)_-_100%)_*_999)]"
1478
1099
  ),
1479
1100
  style: createVar6({ collapseAt, columnSize: columns[idx] }),
@@ -1486,13 +1107,13 @@ var Columns = ({
1486
1107
 
1487
1108
  // src/Container/Container.tsx
1488
1109
  import {
1489
- cn as cn20,
1110
+ cn as cn19,
1490
1111
  createVar as createVar7,
1491
1112
  gridColsAlign,
1492
1113
  gridColumn,
1493
1114
  placeItems
1494
1115
  } from "@marigold/system";
1495
- import { jsx as jsx35 } from "react/jsx-runtime";
1116
+ import { jsx as jsx29 } from "react/jsx-runtime";
1496
1117
  var content = {
1497
1118
  small: "20ch",
1498
1119
  medium: "45ch",
@@ -1512,11 +1133,11 @@ var Container = ({
1512
1133
  ...props
1513
1134
  }) => {
1514
1135
  const maxWidth = contentType === "content" ? content[size] : header[size];
1515
- return /* @__PURE__ */ jsx35(
1136
+ return /* @__PURE__ */ jsx29(
1516
1137
  "div",
1517
1138
  {
1518
1139
  ...props,
1519
- className: cn20(
1140
+ className: cn19(
1520
1141
  "grid",
1521
1142
  placeItems[alignItems],
1522
1143
  gridColsAlign[align],
@@ -1531,19 +1152,19 @@ var Container = ({
1531
1152
  // src/Dialog/Dialog.tsx
1532
1153
  import { useContext as useContext3 } from "react";
1533
1154
  import { Dialog, OverlayTriggerStateContext } from "react-aria-components";
1534
- import { cn as cn22, useClassNames as useClassNames19 } from "@marigold/system";
1155
+ import { cn as cn21, useClassNames as useClassNames16 } from "@marigold/system";
1535
1156
 
1536
1157
  // src/Headline/Headline.tsx
1537
1158
  import { Heading } from "react-aria-components";
1538
1159
  import {
1539
- cn as cn21,
1160
+ cn as cn20,
1540
1161
  createVar as createVar8,
1541
1162
  get,
1542
1163
  textAlign,
1543
- useClassNames as useClassNames18,
1544
- useTheme as useTheme3
1164
+ useClassNames as useClassNames15,
1165
+ useTheme as useTheme2
1545
1166
  } from "@marigold/system";
1546
- import { jsx as jsx36 } from "react/jsx-runtime";
1167
+ import { jsx as jsx30 } from "react/jsx-runtime";
1547
1168
  var _Headline = ({
1548
1169
  variant,
1549
1170
  size,
@@ -1553,18 +1174,18 @@ var _Headline = ({
1553
1174
  level = 1,
1554
1175
  ...props
1555
1176
  }) => {
1556
- const theme = useTheme3();
1557
- const classNames2 = useClassNames18({
1177
+ const theme = useTheme2();
1178
+ const classNames2 = useClassNames15({
1558
1179
  component: "Headline",
1559
1180
  variant,
1560
1181
  size: size != null ? size : `level-${level}`
1561
1182
  });
1562
- return /* @__PURE__ */ jsx36(
1183
+ return /* @__PURE__ */ jsx30(
1563
1184
  Heading,
1564
1185
  {
1565
1186
  level: Number(level),
1566
1187
  ...props,
1567
- className: cn21(classNames2, "text-[--color]", textAlign[align]),
1188
+ className: cn20(classNames2, "text-[--color]", textAlign[align]),
1568
1189
  style: createVar8({
1569
1190
  color: color && theme.colors && get(
1570
1191
  theme.colors,
@@ -1581,7 +1202,34 @@ var _Headline = ({
1581
1202
  // src/Dialog/DialogTrigger.tsx
1582
1203
  import { Children as Children4 } from "react";
1583
1204
  import { DialogTrigger } from "react-aria-components";
1584
- import { jsx as jsx37, jsxs as jsxs15 } from "react/jsx-runtime";
1205
+
1206
+ // src/Overlay/Modal.tsx
1207
+ import { forwardRef as forwardRef11 } from "react";
1208
+ import { Modal } from "react-aria-components";
1209
+ import { useTheme as useTheme3 } from "@marigold/system";
1210
+ import { jsx as jsx31 } from "react/jsx-runtime";
1211
+ var _Modal = forwardRef11(({ open, dismissable, keyboardDismissable, ...rest }, ref) => {
1212
+ const theme = useTheme3();
1213
+ const props = {
1214
+ isOpen: open,
1215
+ isDismissable: dismissable,
1216
+ isKeyboardDismissDisabled: keyboardDismissable,
1217
+ ...rest
1218
+ };
1219
+ return /* @__PURE__ */ jsx31(
1220
+ Underlay,
1221
+ {
1222
+ dismissable,
1223
+ keyboardDismissable,
1224
+ open,
1225
+ variant: "modal",
1226
+ children: /* @__PURE__ */ jsx31(Modal, { ref, "data-theme": theme.name, ...props, children: props.children })
1227
+ }
1228
+ );
1229
+ });
1230
+
1231
+ // src/Dialog/DialogTrigger.tsx
1232
+ import { jsx as jsx32, jsxs as jsxs11 } from "react/jsx-runtime";
1585
1233
  var _DialogTrigger = ({
1586
1234
  open,
1587
1235
  dismissable,
@@ -1598,10 +1246,10 @@ var _DialogTrigger = ({
1598
1246
  const hasDialogTrigger = dialogTrigger.type !== _Dialog;
1599
1247
  const currentDialog = children.length < 2 ? !hasDialogTrigger && dialogTrigger : dialog;
1600
1248
  if (isNonModal)
1601
- return /* @__PURE__ */ jsx37(DialogTrigger, { ...props, children: props.children });
1602
- return /* @__PURE__ */ jsxs15(DialogTrigger, { ...props, children: [
1249
+ return /* @__PURE__ */ jsx32(DialogTrigger, { ...props, children: props.children });
1250
+ return /* @__PURE__ */ jsxs11(DialogTrigger, { ...props, children: [
1603
1251
  hasDialogTrigger && dialogTrigger,
1604
- /* @__PURE__ */ jsx37(
1252
+ /* @__PURE__ */ jsx32(
1605
1253
  _Modal,
1606
1254
  {
1607
1255
  dismissable,
@@ -1613,18 +1261,18 @@ var _DialogTrigger = ({
1613
1261
  };
1614
1262
 
1615
1263
  // src/Dialog/Dialog.tsx
1616
- import { Fragment as Fragment5, jsx as jsx38, jsxs as jsxs16 } from "react/jsx-runtime";
1264
+ import { Fragment as Fragment4, jsx as jsx33, jsxs as jsxs12 } from "react/jsx-runtime";
1617
1265
  var CloseButton = ({ className }) => {
1618
1266
  const { close } = useContext3(OverlayTriggerStateContext);
1619
- return /* @__PURE__ */ jsx38("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx38(
1267
+ return /* @__PURE__ */ jsx33("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx33(
1620
1268
  "button",
1621
1269
  {
1622
- className: cn22(
1270
+ className: cn21(
1623
1271
  "h-4 w-4 cursor-pointer border-none p-0 leading-normal outline-0",
1624
1272
  className
1625
1273
  ),
1626
1274
  onClick: close,
1627
- children: /* @__PURE__ */ jsx38("svg", { viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx38(
1275
+ children: /* @__PURE__ */ jsx33("svg", { viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx33(
1628
1276
  "path",
1629
1277
  {
1630
1278
  fillRule: "evenodd",
@@ -1635,7 +1283,7 @@ var CloseButton = ({ className }) => {
1635
1283
  }
1636
1284
  ) });
1637
1285
  };
1638
- var DialogHeadline = ({ children }) => /* @__PURE__ */ jsx38(_Headline, { slot: "title", children });
1286
+ var DialogHeadline = ({ children }) => /* @__PURE__ */ jsx33(_Headline, { slot: "title", children });
1639
1287
  var _Dialog = ({
1640
1288
  variant,
1641
1289
  size,
@@ -1643,7 +1291,7 @@ var _Dialog = ({
1643
1291
  isNonModal,
1644
1292
  ...props
1645
1293
  }) => {
1646
- const classNames2 = useClassNames19({ component: "Dialog", variant, size });
1294
+ const classNames2 = useClassNames16({ component: "Dialog", variant, size });
1647
1295
  let state = useContext3(OverlayTriggerStateContext);
1648
1296
  let children = props.children;
1649
1297
  if (typeof children === "function") {
@@ -1652,13 +1300,13 @@ var _Dialog = ({
1652
1300
  })
1653
1301
  });
1654
1302
  }
1655
- return /* @__PURE__ */ jsx38(
1303
+ return /* @__PURE__ */ jsx33(
1656
1304
  Dialog,
1657
1305
  {
1658
1306
  ...props,
1659
- className: cn22("relative outline-none", classNames2.container),
1660
- children: /* @__PURE__ */ jsxs16(Fragment5, { children: [
1661
- closeButton && /* @__PURE__ */ jsx38(CloseButton, { className: classNames2.closeButton }),
1307
+ className: cn21("relative outline-none", classNames2.container),
1308
+ children: /* @__PURE__ */ jsxs12(Fragment4, { children: [
1309
+ closeButton && /* @__PURE__ */ jsx33(CloseButton, { className: classNames2.closeButton }),
1662
1310
  children
1663
1311
  ] })
1664
1312
  }
@@ -1669,42 +1317,142 @@ _Dialog.Headline = DialogHeadline;
1669
1317
 
1670
1318
  // src/Divider/Divider.tsx
1671
1319
  import { Separator } from "react-aria-components";
1672
- import { useClassNames as useClassNames20 } from "@marigold/system";
1673
- import { jsx as jsx39 } from "react/jsx-runtime";
1320
+ import { useClassNames as useClassNames17 } from "@marigold/system";
1321
+ import { jsx as jsx34 } from "react/jsx-runtime";
1674
1322
  var _Divider = ({ variant, ...props }) => {
1675
- const classNames2 = useClassNames20({ component: "Divider", variant });
1676
- return /* @__PURE__ */ jsx39(Separator, { className: classNames2, ...props });
1323
+ const classNames2 = useClassNames17({ component: "Divider", variant });
1324
+ return /* @__PURE__ */ jsx34(Separator, { className: classNames2, ...props });
1325
+ };
1326
+
1327
+ // src/FieldBase/FieldBase.tsx
1328
+ import {
1329
+ cn as cn23,
1330
+ width as twWidth2,
1331
+ useClassNames as useClassNames19
1332
+ } from "@marigold/system";
1333
+
1334
+ // src/HelpText/HelpText.tsx
1335
+ import { SVG as SVG4, cn as cn22, useClassNames as useClassNames18 } from "@marigold/system";
1336
+ import { Fragment as Fragment5, jsx as jsx35, jsxs as jsxs13 } from "react/jsx-runtime";
1337
+ var HelpText2 = ({
1338
+ variant,
1339
+ size,
1340
+ disabled,
1341
+ description,
1342
+ descriptionProps,
1343
+ error,
1344
+ errorMessage,
1345
+ errorMessageProps,
1346
+ ...props
1347
+ }) => {
1348
+ const hasErrorMessage = errorMessage && error;
1349
+ const classNames2 = useClassNames18({
1350
+ component: "HelpText",
1351
+ variant,
1352
+ size
1353
+ });
1354
+ return /* @__PURE__ */ jsx35(
1355
+ "div",
1356
+ {
1357
+ ...props,
1358
+ ...hasErrorMessage ? errorMessageProps : descriptionProps,
1359
+ className: cn22("flex items-center gap-1", classNames2.container),
1360
+ children: hasErrorMessage ? /* @__PURE__ */ jsxs13(Fragment5, { children: [
1361
+ /* @__PURE__ */ jsx35(
1362
+ SVG4,
1363
+ {
1364
+ className: cn22("h-4 w-4", classNames2.icon),
1365
+ viewBox: "0 0 24 24",
1366
+ role: "presentation",
1367
+ children: /* @__PURE__ */ jsx35("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" })
1368
+ }
1369
+ ),
1370
+ errorMessage
1371
+ ] }) : /* @__PURE__ */ jsx35(Fragment5, { children: description })
1372
+ }
1373
+ );
1374
+ };
1375
+
1376
+ // src/FieldBase/FieldBase.tsx
1377
+ import { jsx as jsx36, jsxs as jsxs14 } from "react/jsx-runtime";
1378
+ var FieldBase2 = ({
1379
+ children,
1380
+ variant,
1381
+ size,
1382
+ width = "full",
1383
+ disabled,
1384
+ label,
1385
+ labelProps,
1386
+ description,
1387
+ descriptionProps,
1388
+ error,
1389
+ errorMessage,
1390
+ errorMessageProps,
1391
+ stateProps,
1392
+ ...props
1393
+ }) => {
1394
+ const hasHelpText = !!description || errorMessage && error;
1395
+ const classNames2 = useClassNames19({
1396
+ component: "Field",
1397
+ variant,
1398
+ size
1399
+ });
1400
+ return /* @__PURE__ */ jsxs14(
1401
+ "div",
1402
+ {
1403
+ ...props,
1404
+ ...stateProps,
1405
+ className: cn23("group/field", twWidth2[width], classNames2),
1406
+ children: [
1407
+ label ? /* @__PURE__ */ jsx36(_Label, { variant, size, ...labelProps, children: label }) : /* @__PURE__ */ jsx36("span", { "aria-hidden": "true" }),
1408
+ children,
1409
+ hasHelpText && /* @__PURE__ */ jsx36(
1410
+ HelpText2,
1411
+ {
1412
+ variant,
1413
+ size,
1414
+ disabled,
1415
+ description,
1416
+ descriptionProps,
1417
+ error,
1418
+ errorMessage,
1419
+ errorMessageProps
1420
+ }
1421
+ )
1422
+ ]
1423
+ }
1424
+ );
1677
1425
  };
1678
1426
 
1679
1427
  // src/Footer/Footer.tsx
1680
- import { useClassNames as useClassNames21 } from "@marigold/system";
1681
- import { jsx as jsx40 } from "react/jsx-runtime";
1428
+ import { useClassNames as useClassNames20 } from "@marigold/system";
1429
+ import { jsx as jsx37 } from "react/jsx-runtime";
1682
1430
  var Footer = ({ children, variant, size, ...props }) => {
1683
- const classNames2 = useClassNames21({ component: "Footer", variant, size });
1684
- return /* @__PURE__ */ jsx40("footer", { ...props, className: classNames2, children });
1431
+ const classNames2 = useClassNames20({ component: "Footer", variant, size });
1432
+ return /* @__PURE__ */ jsx37("footer", { ...props, className: classNames2, children });
1685
1433
  };
1686
1434
 
1687
1435
  // src/Header/Header.tsx
1688
1436
  import { Header } from "react-aria-components";
1689
- import { useClassNames as useClassNames22 } from "@marigold/system";
1690
- import { jsx as jsx41 } from "react/jsx-runtime";
1437
+ import { useClassNames as useClassNames21 } from "@marigold/system";
1438
+ import { jsx as jsx38 } from "react/jsx-runtime";
1691
1439
  var _Header = ({ variant, size, ...props }) => {
1692
- const classNames2 = useClassNames22({
1440
+ const classNames2 = useClassNames21({
1693
1441
  component: "Header",
1694
1442
  variant,
1695
1443
  size
1696
1444
  });
1697
- return /* @__PURE__ */ jsx41(Header, { className: classNames2, ...props, children: props.children });
1445
+ return /* @__PURE__ */ jsx38(Header, { className: classNames2, ...props, children: props.children });
1698
1446
  };
1699
1447
 
1700
1448
  // src/Image/Image.tsx
1701
1449
  import {
1702
- cn as cn23,
1450
+ cn as cn24,
1703
1451
  objectFit,
1704
1452
  objectPosition,
1705
- useClassNames as useClassNames23
1453
+ useClassNames as useClassNames22
1706
1454
  } from "@marigold/system";
1707
- import { jsx as jsx42 } from "react/jsx-runtime";
1455
+ import { jsx as jsx39 } from "react/jsx-runtime";
1708
1456
  var Image = ({
1709
1457
  variant,
1710
1458
  size,
@@ -1712,13 +1460,13 @@ var Image = ({
1712
1460
  position = "none",
1713
1461
  ...props
1714
1462
  }) => {
1715
- const classNames2 = useClassNames23({ component: "Image", variant, size });
1716
- return /* @__PURE__ */ jsx42(
1463
+ const classNames2 = useClassNames22({ component: "Image", variant, size });
1464
+ return /* @__PURE__ */ jsx39(
1717
1465
  "img",
1718
1466
  {
1719
1467
  ...props,
1720
1468
  alt: props.alt,
1721
- className: cn23(
1469
+ className: cn24(
1722
1470
  fit !== "none" && "h-full w-full",
1723
1471
  classNames2,
1724
1472
  objectFit[fit],
@@ -1731,10 +1479,10 @@ var Image = ({
1731
1479
  // src/Inline/Inline.tsx
1732
1480
  import {
1733
1481
  alignment as alignment2,
1734
- cn as cn24,
1482
+ cn as cn25,
1735
1483
  gapSpace as gapSpace5
1736
1484
  } from "@marigold/system";
1737
- import { jsx as jsx43 } from "react/jsx-runtime";
1485
+ import { jsx as jsx40 } from "react/jsx-runtime";
1738
1486
  var Inline = ({
1739
1487
  space = 0,
1740
1488
  orientation,
@@ -1744,11 +1492,11 @@ var Inline = ({
1744
1492
  ...props
1745
1493
  }) => {
1746
1494
  var _a2, _b2, _c, _d;
1747
- return /* @__PURE__ */ jsx43(
1495
+ return /* @__PURE__ */ jsx40(
1748
1496
  "div",
1749
1497
  {
1750
1498
  ...props,
1751
- className: cn24(
1499
+ className: cn25(
1752
1500
  "flex flex-wrap",
1753
1501
  gapSpace5[space],
1754
1502
  alignX && ((_b2 = (_a2 = alignment2) == null ? void 0 : _a2.horizontal) == null ? void 0 : _b2.alignmentX[alignX]),
@@ -1761,45 +1509,45 @@ var Inline = ({
1761
1509
 
1762
1510
  // src/DateField/DateField.tsx
1763
1511
  import { createCalendar } from "@internationalized/date";
1764
- import { useRef as useRef9 } from "react";
1512
+ import { useRef as useRef4 } from "react";
1765
1513
  import { useDateField } from "@react-aria/datepicker";
1766
- import { useFocusRing as useFocusRing4 } from "@react-aria/focus";
1514
+ import { useFocusRing as useFocusRing3 } from "@react-aria/focus";
1767
1515
  import { useLocale } from "@react-aria/i18n";
1768
- import { useHover as useHover2 } from "@react-aria/interactions";
1769
- import { mergeProps as mergeProps6 } from "@react-aria/utils";
1516
+ import { useHover } from "@react-aria/interactions";
1517
+ import { mergeProps as mergeProps4 } from "@react-aria/utils";
1770
1518
  import { useDateFieldState } from "@react-stately/datepicker";
1771
- import { cn as cn26, useClassNames as useClassNames24, useStateProps as useStateProps5 } from "@marigold/system";
1519
+ import { cn as cn27, useClassNames as useClassNames23, useStateProps as useStateProps3 } from "@marigold/system";
1772
1520
 
1773
1521
  // src/DateField/DateSegment.tsx
1774
- import { useRef as useRef8 } from "react";
1522
+ import { useRef as useRef3 } from "react";
1775
1523
  import { useDateSegment } from "@react-aria/datepicker";
1776
- import { useFocusRing as useFocusRing3 } from "@react-aria/focus";
1777
- import { mergeProps as mergeProps5 } from "@react-aria/utils";
1778
- import { cn as cn25, useStateProps as useStateProps4 } from "@marigold/system";
1779
- import { jsx as jsx44, jsxs as jsxs17 } from "react/jsx-runtime";
1524
+ import { useFocusRing as useFocusRing2 } from "@react-aria/focus";
1525
+ import { mergeProps as mergeProps3 } from "@react-aria/utils";
1526
+ import { cn as cn26, useStateProps as useStateProps2 } from "@marigold/system";
1527
+ import { jsx as jsx41, jsxs as jsxs15 } from "react/jsx-runtime";
1780
1528
  var DateSegment = ({
1781
1529
  className,
1782
1530
  segment,
1783
1531
  state,
1784
1532
  isPrevPlaceholder
1785
1533
  }) => {
1786
- const ref = useRef8(null);
1534
+ const ref = useRef3(null);
1787
1535
  const { segmentProps } = useDateSegment(segment, state, ref);
1788
- const { focusProps, isFocused } = useFocusRing3({
1536
+ const { focusProps, isFocused } = useFocusRing2({
1789
1537
  within: true,
1790
1538
  isTextInput: true
1791
1539
  });
1792
- const stateProps = useStateProps4({
1540
+ const stateProps = useStateProps2({
1793
1541
  disabled: state.isDisabled,
1794
1542
  focusVisible: isFocused
1795
1543
  });
1796
1544
  const { isPlaceholder, placeholder, text, type, maxValue } = segment;
1797
- return /* @__PURE__ */ jsxs17(
1545
+ return /* @__PURE__ */ jsxs15(
1798
1546
  "div",
1799
1547
  {
1800
- ...mergeProps5(segmentProps, stateProps, focusProps),
1548
+ ...mergeProps3(segmentProps, stateProps, focusProps),
1801
1549
  ref,
1802
- className: cn25(
1550
+ className: cn26(
1803
1551
  "group/segment",
1804
1552
  "text-center leading-none outline-0",
1805
1553
  type !== "literal" && "p-0.5",
@@ -1810,25 +1558,25 @@ var DateSegment = ({
1810
1558
  minWidth: maxValue != null ? String(maxValue).length + "ch" : void 0
1811
1559
  },
1812
1560
  children: [
1813
- /* @__PURE__ */ jsx44(
1561
+ /* @__PURE__ */ jsx41(
1814
1562
  "span",
1815
1563
  {
1816
1564
  "aria-hidden": "true",
1817
- className: cn25(
1565
+ className: cn26(
1818
1566
  isPlaceholder ? "visible block" : "invisible hidden",
1819
1567
  "pointer-events-none w-full text-center"
1820
1568
  ),
1821
1569
  children: isPlaceholder && (placeholder == null ? void 0 : placeholder.toUpperCase())
1822
1570
  }
1823
1571
  ),
1824
- /* @__PURE__ */ jsx44("span", { children: isPlaceholder ? "" : type === "month" || type === "day" ? Number(text) < 10 ? "0" + text : text : text })
1572
+ /* @__PURE__ */ jsx41("span", { children: isPlaceholder ? "" : type === "month" || type === "day" ? Number(text) < 10 ? "0" + text : text : text })
1825
1573
  ]
1826
1574
  }
1827
1575
  );
1828
1576
  };
1829
1577
 
1830
1578
  // src/DateField/DateField.tsx
1831
- import { jsx as jsx45, jsxs as jsxs18 } from "react/jsx-runtime";
1579
+ import { jsx as jsx42, jsxs as jsxs16 } from "react/jsx-runtime";
1832
1580
  var DateField = ({
1833
1581
  disabled,
1834
1582
  readOnly,
@@ -1857,20 +1605,20 @@ var DateField = ({
1857
1605
  locale,
1858
1606
  createCalendar
1859
1607
  });
1860
- const ref = useRef9(null);
1608
+ const ref = useRef4(null);
1861
1609
  const { fieldProps, labelProps, descriptionProps } = useDateField(
1862
1610
  props,
1863
1611
  state,
1864
1612
  ref
1865
1613
  );
1866
- const classNames2 = useClassNames24({ component: "DateField", variant, size });
1867
- const { focusProps, isFocused } = useFocusRing4({
1614
+ const classNames2 = useClassNames23({ component: "DateField", variant, size });
1615
+ const { focusProps, isFocused } = useFocusRing3({
1868
1616
  within: true,
1869
1617
  isTextInput: true,
1870
1618
  autoFocus: props.autoFocus
1871
1619
  });
1872
- const { hoverProps, isHovered } = useHover2({ isDisabled: disabled });
1873
- const stateProps = useStateProps5({
1620
+ const { hoverProps, isHovered } = useHover({ isDisabled: disabled });
1621
+ const stateProps = useStateProps3({
1874
1622
  hover: isHovered,
1875
1623
  error,
1876
1624
  readOnly,
@@ -1878,8 +1626,8 @@ var DateField = ({
1878
1626
  required,
1879
1627
  focus: isFocused || isPressed
1880
1628
  });
1881
- return /* @__PURE__ */ jsx45(
1882
- FieldBase,
1629
+ return /* @__PURE__ */ jsx42(
1630
+ FieldBase2,
1883
1631
  {
1884
1632
  error,
1885
1633
  errorMessage,
@@ -1893,11 +1641,11 @@ var DateField = ({
1893
1641
  variant,
1894
1642
  size,
1895
1643
  width,
1896
- children: /* @__PURE__ */ jsxs18(
1644
+ children: /* @__PURE__ */ jsxs16(
1897
1645
  "div",
1898
1646
  {
1899
- ...mergeProps6(fieldProps, focusProps, stateProps, hoverProps),
1900
- className: cn26(
1647
+ ...mergeProps4(fieldProps, focusProps, stateProps, hoverProps),
1648
+ className: cn27(
1901
1649
  "relative flex flex-row flex-nowrap",
1902
1650
  "cursor-text aria-disabled:cursor-not-allowed",
1903
1651
  classNames2.field
@@ -1905,9 +1653,9 @@ var DateField = ({
1905
1653
  "data-testid": "date-field",
1906
1654
  ref: triggerRef,
1907
1655
  children: [
1908
- /* @__PURE__ */ jsx45("div", { ref, className: "flex basis-full items-center", children: state.segments.map((segment, i) => {
1656
+ /* @__PURE__ */ jsx42("div", { ref, className: "flex basis-full items-center", children: state.segments.map((segment, i) => {
1909
1657
  var _a;
1910
- return /* @__PURE__ */ jsx45(
1658
+ return /* @__PURE__ */ jsx42(
1911
1659
  DateSegment,
1912
1660
  {
1913
1661
  className: classNames2.segment,
@@ -1918,15 +1666,15 @@ var DateField = ({
1918
1666
  i
1919
1667
  );
1920
1668
  }) }),
1921
- action ? action : /* @__PURE__ */ jsx45("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx45(
1669
+ action ? action : /* @__PURE__ */ jsx42("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx42(
1922
1670
  "svg",
1923
1671
  {
1924
1672
  "data-testid": "action",
1925
- className: cn26(classNames2.action),
1673
+ className: cn27(classNames2.action),
1926
1674
  viewBox: "0 0 24 24",
1927
1675
  width: 24,
1928
1676
  height: 24,
1929
- children: /* @__PURE__ */ jsx45("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" })
1677
+ children: /* @__PURE__ */ jsx42("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" })
1930
1678
  }
1931
1679
  ) })
1932
1680
  ]
@@ -1937,70 +1685,30 @@ var DateField = ({
1937
1685
  };
1938
1686
 
1939
1687
  // src/Calendar/Calendar.tsx
1940
- import { createCalendar as createCalendar2 } from "@internationalized/date";
1941
- import { useRef as useRef12, useState } from "react";
1942
- import {
1943
- useCalendar
1944
- } from "@react-aria/calendar";
1945
- import { useDateFormatter as useDateFormatter3, useLocale as useLocale3 } from "@react-aria/i18n";
1946
- import { useCalendarState } from "@react-stately/calendar";
1947
- import { ChevronDown as ChevronDown2, ChevronLeft, ChevronRight } from "@marigold/icons";
1948
- import { cn as cn28, useClassNames as useClassNames26, useStateProps as useStateProps7 } from "@marigold/system";
1688
+ import { useState } from "react";
1689
+ import { Calendar } from "react-aria-components";
1690
+ import { cn as cn31, useClassNames as useClassNames28 } from "@marigold/system";
1949
1691
 
1950
1692
  // src/Calendar/CalendarGrid.tsx
1951
- import { getWeeksInMonth, startOfWeek, today } from "@internationalized/date";
1952
- import { useMemo } from "react";
1953
- import { useCalendarGrid } from "@react-aria/calendar";
1954
- import { useLocale as useLocale2 } from "@react-aria/i18n";
1955
- import { useDateFormatter } from "@react-aria/i18n";
1956
-
1957
- // src/Calendar/CalendarCell.tsx
1958
- import { useRef as useRef10 } from "react";
1959
- import { useCalendarCell } from "@react-aria/calendar";
1960
- import { useHover as useHover3 } from "@react-aria/interactions";
1961
- import { mergeProps as mergeProps7 } from "@react-aria/utils";
1962
- import { cn as cn27, useClassNames as useClassNames25, useStateProps as useStateProps6 } from "@marigold/system";
1963
- import { jsx as jsx46 } from "react/jsx-runtime";
1964
- var CalendarCell = (props) => {
1965
- const ref = useRef10(null);
1966
- const { state } = props;
1967
- let { cellProps, buttonProps, formattedDate, isOutsideVisibleRange } = useCalendarCell(props, state, ref);
1968
- const classNames2 = useClassNames25({
1969
- component: "Calendar"
1970
- });
1971
- const isDisabled = cellProps["aria-disabled"];
1972
- const { hoverProps, isHovered } = useHover3({
1973
- isDisabled: isDisabled || cellProps["aria-selected"]
1974
- });
1975
- const stateProps = useStateProps6({
1976
- disabled: isDisabled,
1977
- hover: isHovered,
1978
- selected: cellProps["aria-selected"]
1979
- });
1980
- return /* @__PURE__ */ jsx46("td", { className: "group/cell", ...cellProps, children: /* @__PURE__ */ jsx46(
1981
- "div",
1982
- {
1983
- className: cn27(
1984
- "flex h-[30px] w-[30px] cursor-pointer items-center justify-center rounded-full p-[5.3px] text-sm font-normal aria-disabled:cursor-default",
1985
- classNames2.calendarCell
1986
- ),
1987
- hidden: isOutsideVisibleRange,
1988
- ref,
1989
- ...mergeProps7(buttonProps, stateProps, hoverProps),
1990
- children: formattedDate
1991
- }
1992
- ) });
1993
- };
1693
+ import {
1694
+ CalendarCell,
1695
+ CalendarGrid,
1696
+ CalendarGridBody
1697
+ } from "react-aria-components";
1698
+ import { cn as cn28, useClassNames as useClassNames25 } from "@marigold/system";
1994
1699
 
1995
- // src/Calendar/CalendarGrid.tsx
1996
- import { jsx as jsx47, jsxs as jsxs19 } from "react/jsx-runtime";
1997
- var CalendarGrid = ({ state, ...props }) => {
1700
+ // src/Calendar/CalendarGridHeader.tsx
1701
+ import { startOfWeek, today } from "@internationalized/date";
1702
+ import { useContext as useContext4, useMemo } from "react";
1703
+ import { CalendarStateContext } from "react-aria-components";
1704
+ import { useCalendarGrid } from "@react-aria/calendar";
1705
+ import { useDateFormatter, useLocale as useLocale2 } from "@react-aria/i18n";
1706
+ import { useClassNames as useClassNames24 } from "@marigold/system";
1707
+ import { jsx as jsx43 } from "react/jsx-runtime";
1708
+ function CalendarGridHeader(props) {
1709
+ const state = useContext4(CalendarStateContext);
1710
+ const { headerProps } = useCalendarGrid(props, state);
1998
1711
  const { locale } = useLocale2();
1999
- const { gridProps, headerProps } = useCalendarGrid(props, state);
2000
- const numberOfWeeksInMonth = getWeeksInMonth(
2001
- state.visibleRange.start,
2002
- locale
2003
- );
2004
1712
  const dayFormatter = useDateFormatter({
2005
1713
  weekday: "short",
2006
1714
  timeZone: state.timeZone
@@ -2013,50 +1721,144 @@ var CalendarGrid = ({ state, ...props }) => {
2013
1721
  return dayFormatter.format(dateDay);
2014
1722
  });
2015
1723
  }, [locale, state.timeZone, dayFormatter]);
2016
- return /* @__PURE__ */ jsxs19(
2017
- "table",
1724
+ const classNames2 = useClassNames24({ component: "Calendar" });
1725
+ return /* @__PURE__ */ jsx43("thead", { ...headerProps, children: /* @__PURE__ */ jsx43("tr", { children: weekDays.map((day, index) => /* @__PURE__ */ jsx43("th", { className: classNames2.calendarHeader, children: day.substring(0, 2) }, index)) }) });
1726
+ }
1727
+
1728
+ // src/Calendar/CalendarGrid.tsx
1729
+ import { jsx as jsx44, jsxs as jsxs17 } from "react/jsx-runtime";
1730
+ var _CalendarGrid = () => {
1731
+ const classNames2 = useClassNames25({ component: "Calendar" });
1732
+ return /* @__PURE__ */ jsxs17(CalendarGrid, { className: classNames2.calendarGrid, children: [
1733
+ /* @__PURE__ */ jsx44(CalendarGridHeader, {}),
1734
+ /* @__PURE__ */ jsx44(CalendarGridBody, { children: (date) => /* @__PURE__ */ jsx44(
1735
+ CalendarCell,
1736
+ {
1737
+ date,
1738
+ className: cn28(
1739
+ "flex h-[30px] w-[30px] cursor-pointer items-center justify-center rounded-full p-[5.3px] text-sm font-normal aria-disabled:cursor-default",
1740
+ classNames2.calendarCell
1741
+ )
1742
+ }
1743
+ ) })
1744
+ ] });
1745
+ };
1746
+
1747
+ // src/Calendar/CalendarListBox.tsx
1748
+ import { useContext as useContext5 } from "react";
1749
+ import { CalendarStateContext as CalendarStateContext2 } from "react-aria-components";
1750
+ import { ChevronDown as ChevronDown2 } from "@marigold/icons";
1751
+ import { cn as cn29, useClassNames as useClassNames26 } from "@marigold/system";
1752
+
1753
+ // src/Calendar/useFormattedMonths.tsx
1754
+ import { useDateFormatter as useDateFormatter2 } from "@react-aria/i18n";
1755
+ function useFormattedMonths(timeZone, focusedDate) {
1756
+ let months = [];
1757
+ let formatter = useDateFormatter2({
1758
+ month: "long",
1759
+ timeZone
1760
+ });
1761
+ let numMonths = focusedDate.calendar.getMonthsInYear(focusedDate);
1762
+ for (let i = 1; i <= numMonths; i++) {
1763
+ let date = focusedDate.set({ month: i });
1764
+ months.push(formatter.format(date.toDate(timeZone)));
1765
+ }
1766
+ return months;
1767
+ }
1768
+
1769
+ // src/Calendar/CalendarListBox.tsx
1770
+ import { jsx as jsx45, jsxs as jsxs18 } from "react/jsx-runtime";
1771
+ function CalendarListBox({
1772
+ type,
1773
+ isDisabled,
1774
+ setSelectedDropdown
1775
+ }) {
1776
+ const state = useContext5(CalendarStateContext2);
1777
+ const months = useFormattedMonths(state.timeZone, state.focusedDate);
1778
+ const buttonStyles = "flex items-center justify-between gap-1 overflow-hidden";
1779
+ const { select: selectClassNames } = useClassNames26({ component: "Select" });
1780
+ return /* @__PURE__ */ jsxs18(
1781
+ "button",
2018
1782
  {
2019
- className: "w-full border-spacing-[6px]",
2020
- ...gridProps,
2021
- cellPadding: "8",
1783
+ disabled: isDisabled,
1784
+ onClick: () => setSelectedDropdown(type),
1785
+ className: cn29(buttonStyles, selectClassNames),
1786
+ "data-testid": type,
2022
1787
  children: [
2023
- /* @__PURE__ */ jsx47("thead", { ...headerProps, children: /* @__PURE__ */ jsx47("tr", { children: weekDays.map((day, index) => /* @__PURE__ */ jsx47("th", { style: { fontWeight: "bolder" }, children: day.substring(0, 2) }, index)) }) }),
2024
- /* @__PURE__ */ jsx47("tbody", { children: [...new Array(numberOfWeeksInMonth).keys()].map((weekIndex) => /* @__PURE__ */ jsx47("tr", { children: state.getDatesInWeek(weekIndex).map(
2025
- (date, i) => date ? /* @__PURE__ */ jsx47(
2026
- CalendarCell,
2027
- {
2028
- date,
2029
- state
2030
- },
2031
- i
2032
- ) : /* @__PURE__ */ jsx47("td", {}, i)
2033
- ) }, weekIndex)) })
1788
+ type === "month" ? months[state.focusedDate.month - 1].substring(0, 3) : state.focusedDate.year,
1789
+ /* @__PURE__ */ jsx45(ChevronDown2, {})
2034
1790
  ]
2035
1791
  }
2036
1792
  );
2037
- };
1793
+ }
2038
1794
 
2039
- // src/Calendar/MonthDropdown.tsx
2040
- import { jsx as jsx48 } from "react/jsx-runtime";
2041
- var MonthDropdown = ({
2042
- state,
2043
- setSelectedDropdown,
2044
- months
2045
- }) => {
1795
+ // src/Calendar/MonthControls.tsx
1796
+ import React4 from "react";
1797
+ import { Button as Button2 } from "react-aria-components";
1798
+ import { ChevronLeft, ChevronRight } from "@marigold/icons";
1799
+ import { cn as cn30, useClassNames as useClassNames27 } from "@marigold/system";
1800
+ import { jsx as jsx46, jsxs as jsxs19 } from "react/jsx-runtime";
1801
+ function MonthControls() {
1802
+ const classNames2 = useClassNames27({ component: "Calendar" });
1803
+ const buttonClassNames = useClassNames27({ component: "Button" });
1804
+ return /* @__PURE__ */ jsxs19(
1805
+ "div",
1806
+ {
1807
+ className: cn30(
1808
+ "flex w-full flex-nowrap justify-end gap-[10px] [&_button:disabled]:cursor-not-allowed [&_button]:px-2 [&_button]:py-1",
1809
+ classNames2.calendarControllers
1810
+ ),
1811
+ children: [
1812
+ /* @__PURE__ */ jsx46(
1813
+ Button2,
1814
+ {
1815
+ className: cn30(
1816
+ "inline-flex items-center justify-center gap-[0.5ch]",
1817
+ buttonClassNames
1818
+ ),
1819
+ slot: "previous",
1820
+ children: /* @__PURE__ */ jsx46(ChevronLeft, {})
1821
+ }
1822
+ ),
1823
+ /* @__PURE__ */ jsx46(
1824
+ Button2,
1825
+ {
1826
+ className: cn30(
1827
+ "inline-flex items-center justify-center gap-[0.5ch]",
1828
+ buttonClassNames
1829
+ ),
1830
+ slot: "next",
1831
+ children: /* @__PURE__ */ jsx46(ChevronRight, {})
1832
+ }
1833
+ )
1834
+ ]
1835
+ }
1836
+ );
1837
+ }
1838
+ var MonthControls_default = React4.memo(MonthControls);
1839
+
1840
+ // src/Calendar/MonthListBox.tsx
1841
+ import { useContext as useContext6 } from "react";
1842
+ import { CalendarStateContext as CalendarStateContext3 } from "react-aria-components";
1843
+ import { jsx as jsx47 } from "react/jsx-runtime";
1844
+ var MonthListBox = ({ setSelectedDropdown }) => {
1845
+ const state = useContext6(CalendarStateContext3);
1846
+ const months = useFormattedMonths(state.timeZone, state.focusedDate);
2046
1847
  let onChange = (index) => {
2047
1848
  let value = Number(index) + 1;
2048
1849
  let date = state.focusedDate.set({ month: value });
2049
1850
  state.setFocusedDate(date);
2050
1851
  };
2051
- return /* @__PURE__ */ jsx48(
1852
+ return /* @__PURE__ */ jsx47(
2052
1853
  "ul",
2053
1854
  {
2054
1855
  "data-testid": "monthOptions",
2055
1856
  className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
2056
1857
  children: months.map((month, index) => {
2057
- return /* @__PURE__ */ jsx48("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx48(
1858
+ return /* @__PURE__ */ jsx47("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx47(
2058
1859
  _Button,
2059
1860
  {
1861
+ slot: "previous",
2060
1862
  variant: index === state.focusedDate.month - 1 ? "secondary" : "text",
2061
1863
  size: "small",
2062
1864
  onPress: () => {
@@ -2071,15 +1873,21 @@ var MonthDropdown = ({
2071
1873
  }
2072
1874
  );
2073
1875
  };
2074
- var MonthDropdown_default = MonthDropdown;
1876
+ var MonthListBox_default = MonthListBox;
2075
1877
 
2076
- // src/Calendar/YearDropdown.tsx
2077
- import { useEffect as useEffect2, useRef as useRef11 } from "react";
2078
- import { useDateFormatter as useDateFormatter2 } from "@react-aria/i18n";
2079
- import { jsx as jsx49 } from "react/jsx-runtime";
2080
- var YearDropdown = ({ state, setSelectedDropdown }) => {
1878
+ // src/Calendar/YearListBox.tsx
1879
+ import {
1880
+ useContext as useContext7,
1881
+ useEffect as useEffect2,
1882
+ useRef as useRef5
1883
+ } from "react";
1884
+ import { CalendarStateContext as CalendarStateContext4 } from "react-aria-components";
1885
+ import { useDateFormatter as useDateFormatter3 } from "@react-aria/i18n";
1886
+ import { jsx as jsx48 } from "react/jsx-runtime";
1887
+ var YearListBox = ({ setSelectedDropdown }) => {
1888
+ const state = useContext7(CalendarStateContext4);
2081
1889
  const years = [];
2082
- let formatter = useDateFormatter2({
1890
+ let formatter = useDateFormatter3({
2083
1891
  year: "numeric",
2084
1892
  timeZone: state.timeZone
2085
1893
  });
@@ -2090,7 +1898,7 @@ var YearDropdown = ({ state, setSelectedDropdown }) => {
2090
1898
  formatted: formatter.format(date.toDate(state.timeZone))
2091
1899
  });
2092
1900
  }
2093
- const activeButtonRef = useRef11(null);
1901
+ const activeButtonRef = useRef5(null);
2094
1902
  useEffect2(() => {
2095
1903
  if (activeButtonRef.current) {
2096
1904
  const activeButton = activeButtonRef.current;
@@ -2105,21 +1913,22 @@ var YearDropdown = ({ state, setSelectedDropdown }) => {
2105
1913
  let date = years[index].value;
2106
1914
  state.setFocusedDate(date);
2107
1915
  };
2108
- return /* @__PURE__ */ jsx49(
1916
+ return /* @__PURE__ */ jsx48(
2109
1917
  "ul",
2110
1918
  {
2111
1919
  "data-testid": "yearOptions",
2112
1920
  className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
2113
1921
  children: years.map((year, index) => {
2114
1922
  const isActive = +year.formatted === state.focusedDate.year;
2115
- return /* @__PURE__ */ jsx49("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx49(
1923
+ return /* @__PURE__ */ jsx48("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx48(
2116
1924
  "div",
2117
1925
  {
2118
1926
  ref: isActive ? activeButtonRef : null,
2119
1927
  style: { height: "100%", width: "100%" },
2120
- children: /* @__PURE__ */ jsx49(
1928
+ children: /* @__PURE__ */ jsx48(
2121
1929
  _Button,
2122
1930
  {
1931
+ slot: "previous",
2123
1932
  disabled: state.isDisabled,
2124
1933
  variant: isActive ? "secondary" : "text",
2125
1934
  size: "small",
@@ -2138,146 +1947,214 @@ var YearDropdown = ({ state, setSelectedDropdown }) => {
2138
1947
  }
2139
1948
  );
2140
1949
  };
2141
- var YearDropdown_default = YearDropdown;
1950
+ var YearListBox_default = YearListBox;
2142
1951
 
2143
1952
  // src/Calendar/Calendar.tsx
2144
- import { Fragment as Fragment6, jsx as jsx50, jsxs as jsxs20 } from "react/jsx-runtime";
2145
- var buttonStyles = "flex items-center justify-between gap-1 overflow-hidden";
2146
- var Calendar = ({
1953
+ import { Fragment as Fragment6, jsx as jsx49, jsxs as jsxs20 } from "react/jsx-runtime";
1954
+ var _Calendar = ({
2147
1955
  disabled,
2148
1956
  readOnly,
2149
1957
  size,
2150
1958
  variant,
2151
1959
  ...rest
2152
1960
  }) => {
2153
- const { locale } = useLocale3();
2154
1961
  const props = {
2155
1962
  isDisabled: disabled,
2156
1963
  isReadOnly: readOnly,
2157
1964
  ...rest
2158
1965
  };
2159
- const state = useCalendarState({
2160
- ...props,
2161
- locale,
2162
- createCalendar: createCalendar2
2163
- });
2164
- const ref = useRef12(null);
2165
- const { calendarProps, prevButtonProps, nextButtonProps } = useCalendar(
2166
- props,
2167
- state
2168
- );
2169
- const {
2170
- isDisabled: prevIsDisabled,
2171
- onFocusChange: prevFocusChange,
2172
- ...prevPropsRest
2173
- } = prevButtonProps;
2174
- const {
2175
- isDisabled: nextIsDisabled,
2176
- onFocusChange: nextFocusChange,
2177
- ...nextPropsRest
2178
- } = nextButtonProps;
2179
- const calendarState = useStateProps7({
2180
- disabled: state.isDisabled,
2181
- focusVisible: state.isFocused
2182
- });
2183
- const classNames2 = useClassNames26({ component: "Calendar" });
2184
- const { select: selectClassNames } = useClassNames26({ component: "Select" });
1966
+ const classNames2 = useClassNames28({ component: "Calendar" });
2185
1967
  const [selectedDropdown, setSelectedDropdown] = useState();
2186
- let months = [];
2187
- let formatter = useDateFormatter3({
2188
- month: "long",
2189
- timeZone: state.timeZone
2190
- });
2191
- let numMonths = state.focusedDate.calendar.getMonthsInYear(state.focusedDate);
2192
- for (let i = 1; i <= numMonths; i++) {
2193
- let date = state.focusedDate.set({ month: i });
2194
- months.push(formatter.format(date.toDate(state.timeZone)));
2195
- }
2196
- const selectedValue = {
2197
- month: months[state.focusedDate.month - 1].substring(0, 3),
2198
- year: state.focusedDate.year
1968
+ const ViewMap = {
1969
+ month: /* @__PURE__ */ jsx49(MonthListBox_default, { setSelectedDropdown }),
1970
+ year: /* @__PURE__ */ jsx49(YearListBox_default, { setSelectedDropdown })
2199
1971
  };
2200
- return /* @__PURE__ */ jsx50(
2201
- "div",
1972
+ return /* @__PURE__ */ jsx49(
1973
+ Calendar,
2202
1974
  {
2203
- tabIndex: -1,
2204
- className: cn28(
1975
+ className: cn31(
2205
1976
  "flex min-h-[350px] w-[360px] flex-col rounded-sm p-4 shadow-[0_4px_4px_rgba(165,165,165,0.25)]",
2206
1977
  classNames2.calendar
2207
1978
  ),
2208
- ...calendarProps,
2209
- ...calendarState,
2210
- ref,
2211
- children: selectedDropdown ? selectedDropdown === "month" ? /* @__PURE__ */ jsx50(
2212
- MonthDropdown_default,
2213
- {
2214
- setSelectedDropdown,
2215
- months,
2216
- state
2217
- }
2218
- ) : /* @__PURE__ */ jsx50(
2219
- YearDropdown_default,
2220
- {
2221
- setSelectedDropdown,
2222
- state
2223
- }
2224
- ) : /* @__PURE__ */ jsxs20(Fragment6, { children: [
1979
+ ...props,
1980
+ children: selectedDropdown ? ViewMap[selectedDropdown] : /* @__PURE__ */ jsxs20(Fragment6, { children: [
2225
1981
  /* @__PURE__ */ jsxs20("div", { className: "mb-4 flex items-center justify-between", children: [
2226
1982
  /* @__PURE__ */ jsxs20("div", { className: "flex w-full gap-4", children: [
2227
- /* @__PURE__ */ jsxs20(
2228
- "button",
1983
+ /* @__PURE__ */ jsx49(
1984
+ CalendarListBox,
2229
1985
  {
2230
- disabled: state.isDisabled,
2231
- onClick: () => setSelectedDropdown("month"),
2232
- className: cn28(buttonStyles, selectClassNames),
2233
- "data-testid": "month",
2234
- children: [
2235
- selectedValue.month,
2236
- /* @__PURE__ */ jsx50(ChevronDown2, {})
2237
- ]
1986
+ type: "month",
1987
+ isDisabled: props.isDisabled,
1988
+ setSelectedDropdown
2238
1989
  }
2239
1990
  ),
2240
- /* @__PURE__ */ jsxs20(
2241
- "button",
1991
+ /* @__PURE__ */ jsx49(
1992
+ CalendarListBox,
2242
1993
  {
2243
- disabled: state.isDisabled,
2244
- onClick: () => setSelectedDropdown("year"),
2245
- className: cn28(buttonStyles, selectClassNames),
2246
- "data-testid": "year",
2247
- children: [
2248
- selectedValue.year,
2249
- /* @__PURE__ */ jsx50(ChevronDown2, {})
2250
- ]
1994
+ type: "year",
1995
+ isDisabled: props.isDisabled,
1996
+ setSelectedDropdown
2251
1997
  }
2252
1998
  )
2253
1999
  ] }),
2254
- /* @__PURE__ */ jsxs20(
2255
- "div",
2256
- {
2257
- className: cn28(
2258
- "flex w-full flex-nowrap justify-end gap-[10px] [&_button:disabled]:cursor-not-allowed [&_button]:px-2 [&_button]:py-1",
2259
- classNames2.calendarControllers
2260
- ),
2261
- children: [
2262
- /* @__PURE__ */ jsx50(_Button, { ...prevPropsRest, disabled: prevIsDisabled, children: /* @__PURE__ */ jsx50(ChevronLeft, {}) }),
2263
- /* @__PURE__ */ jsx50(_Button, { ...nextPropsRest, disabled: nextIsDisabled, children: /* @__PURE__ */ jsx50(ChevronRight, {}) })
2264
- ]
2265
- }
2266
- )
2000
+ /* @__PURE__ */ jsx49(MonthControls_default, {})
2267
2001
  ] }),
2268
- /* @__PURE__ */ jsx50(CalendarGrid, { state })
2002
+ /* @__PURE__ */ jsx49(_CalendarGrid, {})
2269
2003
  ] })
2270
2004
  }
2271
2005
  );
2272
2006
  };
2273
2007
 
2274
2008
  // src/DatePicker/DatePicker.tsx
2275
- import { useRef as useRef13 } from "react";
2009
+ import { useRef as useRef8 } from "react";
2276
2010
  import { useDatePicker } from "@react-aria/datepicker";
2277
- import { mergeProps as mergeProps8 } from "@react-aria/utils";
2011
+ import { mergeProps as mergeProps5 } from "@react-aria/utils";
2278
2012
  import { useDatePickerState } from "@react-stately/datepicker";
2279
- import { useClassNames as useClassNames27, useStateProps as useStateProps8 } from "@marigold/system";
2280
- import { Fragment as Fragment7, jsx as jsx51, jsxs as jsxs21 } from "react/jsx-runtime";
2013
+ import { useClassNames as useClassNames31, useStateProps as useStateProps4 } from "@marigold/system";
2014
+
2015
+ // src/Overlay/Overlay.tsx
2016
+ import { useRef as useRef6 } from "react";
2017
+ import {
2018
+ Overlay as ReactAriaOverlay
2019
+ } from "@react-aria/overlays";
2020
+ import { useTheme as useTheme4 } from "@marigold/system";
2021
+ import { jsx as jsx50 } from "react/jsx-runtime";
2022
+ var Overlay = ({ children, container, open }) => {
2023
+ const nodeRef = useRef6(null);
2024
+ const theme = useTheme4();
2025
+ let mountOverlay = open;
2026
+ if (!mountOverlay) {
2027
+ return null;
2028
+ }
2029
+ return /* @__PURE__ */ jsx50(ReactAriaOverlay, { portalContainer: container, children: /* @__PURE__ */ jsx50(
2030
+ "div",
2031
+ {
2032
+ ref: nodeRef,
2033
+ "data-testid": "overlay",
2034
+ "data-theme": theme.name,
2035
+ className: "opacity-100",
2036
+ children
2037
+ }
2038
+ ) });
2039
+ };
2040
+
2041
+ // src/Overlay/_Popover.tsx
2042
+ import { forwardRef as forwardRef12, useRef as useRef7 } from "react";
2043
+ import { FocusScope } from "@react-aria/focus";
2044
+ import {
2045
+ DismissButton,
2046
+ usePopover
2047
+ } from "@react-aria/overlays";
2048
+ import { useClassNames as useClassNames29 } from "@marigold/system";
2049
+ import { jsx as jsx51, jsxs as jsxs21 } from "react/jsx-runtime";
2050
+ var Popover2 = forwardRef12(
2051
+ (props, ref) => {
2052
+ const fallbackRef = useRef7(null);
2053
+ const popoverRef = ref || fallbackRef;
2054
+ let { children, state, ...otherProps } = props;
2055
+ return /* @__PURE__ */ jsx51(Overlay, { open: state.isOpen, ...otherProps, children: /* @__PURE__ */ jsx51(PopoverWrapper, { ref: popoverRef, ...props, children }) });
2056
+ }
2057
+ );
2058
+ var PopoverWrapper = forwardRef12(
2059
+ ({
2060
+ children,
2061
+ isNonModal,
2062
+ state,
2063
+ keyboardDismissDisabled,
2064
+ ...props
2065
+ }, ref) => {
2066
+ const { popoverProps, underlayProps, placement } = usePopover(
2067
+ {
2068
+ ...props,
2069
+ isNonModal,
2070
+ isKeyboardDismissDisabled: keyboardDismissDisabled,
2071
+ popoverRef: ref,
2072
+ placement: "bottom left"
2073
+ },
2074
+ state
2075
+ );
2076
+ const classNames2 = useClassNames29({
2077
+ component: "Popover",
2078
+ variant: placement
2079
+ });
2080
+ return /* @__PURE__ */ jsxs21(FocusScope, { restoreFocus: true, children: [
2081
+ !isNonModal && /* @__PURE__ */ jsx51(Underlay, { ...underlayProps }),
2082
+ /* @__PURE__ */ jsxs21(
2083
+ "div",
2084
+ {
2085
+ ...popoverProps,
2086
+ className: classNames2,
2087
+ style: {
2088
+ ...popoverProps.style,
2089
+ minWidth: props.triggerRef.current ? props.triggerRef.current.offsetWidth : void 0
2090
+ },
2091
+ ref,
2092
+ role: "presentation",
2093
+ children: [
2094
+ !isNonModal && /* @__PURE__ */ jsx51(DismissButton, { onDismiss: state.close }),
2095
+ children,
2096
+ /* @__PURE__ */ jsx51(DismissButton, { onDismiss: state.close })
2097
+ ]
2098
+ }
2099
+ )
2100
+ ] });
2101
+ }
2102
+ );
2103
+
2104
+ // src/Overlay/Tray.tsx
2105
+ import { forwardRef as forwardRef13 } from "react";
2106
+ import { FocusScope as FocusScope2 } from "@react-aria/focus";
2107
+ import {
2108
+ DismissButton as DismissButton2,
2109
+ useModalOverlay
2110
+ } from "@react-aria/overlays";
2111
+ import { useObjectRef } from "@react-aria/utils";
2112
+
2113
+ // src/Overlay/_Underlay.tsx
2114
+ import { cn as cn32, useClassNames as useClassNames30 } from "@marigold/system";
2115
+ import { jsx as jsx52 } from "react/jsx-runtime";
2116
+ var Underlay2 = ({ size, variant, ...props }) => {
2117
+ const classNames2 = useClassNames30({ component: "Underlay", size, variant });
2118
+ return /* @__PURE__ */ jsx52("div", { className: cn32("fixed inset-0 z-40", classNames2), ...props });
2119
+ };
2120
+
2121
+ // src/Overlay/Tray.tsx
2122
+ import { jsx as jsx53, jsxs as jsxs22 } from "react/jsx-runtime";
2123
+ var Tray = forwardRef13(
2124
+ ({ state, children, ...props }, ref) => {
2125
+ const trayRef = useObjectRef(ref);
2126
+ return /* @__PURE__ */ jsx53(Overlay, { open: state.isOpen, children: /* @__PURE__ */ jsx53(TrayWrapper, { state, ...props, ref: trayRef, children }) });
2127
+ }
2128
+ );
2129
+ var TrayWrapper = forwardRef13(
2130
+ ({ children, state, ...props }, ref) => {
2131
+ let { modalProps, underlayProps } = useModalOverlay(
2132
+ {
2133
+ ...props,
2134
+ isDismissable: true
2135
+ },
2136
+ state,
2137
+ ref
2138
+ );
2139
+ return /* @__PURE__ */ jsx53(FocusScope2, { contain: true, restoreFocus: true, autoFocus: true, children: /* @__PURE__ */ jsx53(Underlay2, { ...underlayProps, variant: "modal", children: /* @__PURE__ */ jsxs22(
2140
+ "div",
2141
+ {
2142
+ ...modalProps,
2143
+ ref,
2144
+ className: "absolute bottom-0 w-full",
2145
+ "data-testid": "tray",
2146
+ children: [
2147
+ /* @__PURE__ */ jsx53(DismissButton2, { onDismiss: state.close }),
2148
+ children,
2149
+ /* @__PURE__ */ jsx53(DismissButton2, { onDismiss: state.close })
2150
+ ]
2151
+ }
2152
+ ) }) });
2153
+ }
2154
+ );
2155
+
2156
+ // src/DatePicker/DatePicker.tsx
2157
+ import { Fragment as Fragment7, jsx as jsx54, jsxs as jsxs23 } from "react/jsx-runtime";
2281
2158
  var DatePicker = ({
2282
2159
  disabled,
2283
2160
  required,
@@ -2301,8 +2178,8 @@ var DatePicker = ({
2301
2178
  shouldCloseOnSelect,
2302
2179
  ...props
2303
2180
  });
2304
- const ref = useRef13(null);
2305
- const stateProps = useStateProps8({
2181
+ const ref = useRef8(null);
2182
+ const stateProps = useStateProps4({
2306
2183
  focus: state.isOpen
2307
2184
  });
2308
2185
  const { groupProps, fieldProps, buttonProps, calendarProps } = useDatePicker(
@@ -2311,13 +2188,13 @@ var DatePicker = ({
2311
2188
  ref
2312
2189
  );
2313
2190
  const { isDisabled, errorMessage, description, label } = props;
2314
- const classNames2 = useClassNames27({
2191
+ const classNames2 = useClassNames31({
2315
2192
  component: "DatePicker",
2316
2193
  size,
2317
2194
  variant
2318
2195
  });
2319
- return /* @__PURE__ */ jsxs21(Fragment7, { children: [
2320
- /* @__PURE__ */ jsx51("div", { className: "flex w-full min-w-[300px]", ...groupProps, children: /* @__PURE__ */ jsx51(
2196
+ return /* @__PURE__ */ jsxs23(Fragment7, { children: [
2197
+ /* @__PURE__ */ jsx54("div", { className: "flex w-full min-w-[300px]", ...groupProps, children: /* @__PURE__ */ jsx54(
2321
2198
  DateField,
2322
2199
  {
2323
2200
  ...fieldProps,
@@ -2330,41 +2207,41 @@ var DatePicker = ({
2330
2207
  description: !state.isOpen && description,
2331
2208
  triggerRef: ref,
2332
2209
  width,
2333
- action: /* @__PURE__ */ jsx51("div", { className: classNames2.container, children: /* @__PURE__ */ jsx51(
2210
+ action: /* @__PURE__ */ jsx54("div", { className: classNames2.container, children: /* @__PURE__ */ jsx54(
2334
2211
  _Button,
2335
2212
  {
2336
- ...mergeProps8(buttonProps, stateProps),
2213
+ ...mergeProps5(buttonProps, stateProps),
2337
2214
  disabled: isDisabled,
2338
- children: /* @__PURE__ */ jsx51(
2215
+ children: /* @__PURE__ */ jsx54(
2339
2216
  "svg",
2340
2217
  {
2341
2218
  width: "24",
2342
2219
  height: "24",
2343
2220
  viewBox: "0 0 24 24",
2344
2221
  fill: "currentColor",
2345
- children: /* @__PURE__ */ jsx51("path", { d: "M20.0906 19.2V6.6C20.0906 5.61 19.2806 4.8 18.2906 4.8H17.3906V3H15.5906V4.8H8.39062V3H6.59062V4.8H5.69063C4.69163 4.8 3.89962 5.61 3.89962 6.6L3.89062 19.2C3.89062 20.19 4.69163 21 5.69063 21H18.2906C19.2806 21 20.0906 20.19 20.0906 19.2ZM9.29062 11.1001H7.49061V12.9001H9.29062V11.1001ZM5.69062 8.40009H18.2906V6.60008H5.69062V8.40009ZM18.2906 10.2V19.2H5.69062V10.2H18.2906ZM14.6906 12.9001H16.4906V11.1001H14.6906V12.9001ZM12.8906 12.9001H11.0906V11.1001H12.8906V12.9001Z" })
2222
+ children: /* @__PURE__ */ jsx54("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" })
2346
2223
  }
2347
2224
  )
2348
2225
  }
2349
2226
  ) })
2350
2227
  }
2351
2228
  ) }),
2352
- state.isOpen && /* @__PURE__ */ jsx51(Popover, { triggerRef: ref, state, children: /* @__PURE__ */ jsx51(Calendar, { disabled, ...calendarProps }) })
2229
+ state.isOpen && /* @__PURE__ */ jsx54(Popover2, { triggerRef: ref, state, children: /* @__PURE__ */ jsx54(_Calendar, { disabled, ...calendarProps }) })
2353
2230
  ] });
2354
2231
  };
2355
2232
 
2356
2233
  // src/Inset/Inset.tsx
2357
2234
  import {
2358
- cn as cn29,
2235
+ cn as cn33,
2359
2236
  paddingSpace as paddingSpace2,
2360
2237
  paddingSpaceX as paddingSpaceX2,
2361
2238
  paddingSpaceY as paddingSpaceY2
2362
2239
  } from "@marigold/system";
2363
- import { jsx as jsx52 } from "react/jsx-runtime";
2364
- var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx52(
2240
+ import { jsx as jsx55 } from "react/jsx-runtime";
2241
+ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx55(
2365
2242
  "div",
2366
2243
  {
2367
- className: cn29(
2244
+ className: cn33(
2368
2245
  space && paddingSpace2[space],
2369
2246
  !space && spaceX && paddingSpaceX2[spaceX],
2370
2247
  !space && spaceY && paddingSpaceY2[spaceY]
@@ -2374,38 +2251,38 @@ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx52(
2374
2251
  );
2375
2252
 
2376
2253
  // src/Link/Link.tsx
2377
- import { forwardRef as forwardRef11 } from "react";
2254
+ import { forwardRef as forwardRef14 } from "react";
2378
2255
  import { Link } from "react-aria-components";
2379
- import { useClassNames as useClassNames28 } from "@marigold/system";
2380
- import { jsx as jsx53 } from "react/jsx-runtime";
2381
- var _Link = forwardRef11(
2256
+ import { useClassNames as useClassNames32 } from "@marigold/system";
2257
+ import { jsx as jsx56 } from "react/jsx-runtime";
2258
+ var _Link = forwardRef14(
2382
2259
  ({ variant, size, disabled, children, ...props }, ref) => {
2383
- const classNames2 = useClassNames28({
2260
+ const classNames2 = useClassNames32({
2384
2261
  component: "Link",
2385
2262
  variant,
2386
2263
  size
2387
2264
  });
2388
- return /* @__PURE__ */ jsx53(Link, { ...props, ref, className: classNames2, isDisabled: disabled, children });
2265
+ return /* @__PURE__ */ jsx56(Link, { ...props, ref, className: classNames2, isDisabled: disabled, children });
2389
2266
  }
2390
2267
  );
2391
2268
 
2392
2269
  // src/List/List.tsx
2393
- import { useClassNames as useClassNames29 } from "@marigold/system";
2270
+ import { useClassNames as useClassNames33 } from "@marigold/system";
2394
2271
 
2395
2272
  // src/List/Context.ts
2396
- import { createContext as createContext3, useContext as useContext4 } from "react";
2273
+ import { createContext as createContext3, useContext as useContext8 } from "react";
2397
2274
  var ListContext = createContext3({});
2398
- var useListContext = () => useContext4(ListContext);
2275
+ var useListContext = () => useContext8(ListContext);
2399
2276
 
2400
2277
  // src/List/ListItem.tsx
2401
- import { jsx as jsx54 } from "react/jsx-runtime";
2278
+ import { jsx as jsx57 } from "react/jsx-runtime";
2402
2279
  var ListItem = ({ children, ...props }) => {
2403
2280
  const { classNames: classNames2 } = useListContext();
2404
- return /* @__PURE__ */ jsx54("li", { ...props, className: classNames2, children });
2281
+ return /* @__PURE__ */ jsx57("li", { ...props, className: classNames2, children });
2405
2282
  };
2406
2283
 
2407
2284
  // src/List/List.tsx
2408
- import { jsx as jsx55 } from "react/jsx-runtime";
2285
+ import { jsx as jsx58 } from "react/jsx-runtime";
2409
2286
  var List = ({
2410
2287
  as = "ul",
2411
2288
  children,
@@ -2414,208 +2291,78 @@ var List = ({
2414
2291
  ...props
2415
2292
  }) => {
2416
2293
  const Component = as;
2417
- const classNames2 = useClassNames29({ component: "List", variant, size });
2418
- return /* @__PURE__ */ jsx55(Component, { ...props, className: classNames2[as], children: /* @__PURE__ */ jsx55(ListContext.Provider, { value: { classNames: classNames2.item }, children }) });
2294
+ const classNames2 = useClassNames33({ component: "List", variant, size });
2295
+ return /* @__PURE__ */ jsx58(Component, { ...props, className: classNames2[as], children: /* @__PURE__ */ jsx58(ListContext.Provider, { value: { classNames: classNames2.item }, children }) });
2419
2296
  };
2420
2297
  List.Item = ListItem;
2421
2298
 
2422
- // src/Menu/Menu.tsx
2423
- import { useRef as useRef16 } from "react";
2424
- import { useMenu } from "@react-aria/menu";
2425
- import { useSyncRef } from "@react-aria/utils";
2426
- import { Item as Item4, Section } from "@react-stately/collections";
2427
- import { useTreeState as useTreeState2 } from "@react-stately/tree";
2428
- import { useClassNames as useClassNames31 } from "@marigold/system";
2429
-
2430
- // src/Menu/Context.ts
2431
- import {
2432
- createContext as createContext4,
2433
- useContext as useContext5
2434
- } from "react";
2435
- var MenuContext = createContext4({});
2436
- var useMenuContext = () => useContext5(MenuContext);
2299
+ // src/Menu/Menu.tsx
2300
+ import { Menu, MenuTrigger } from "react-aria-components";
2301
+ import { useClassNames as useClassNames36 } from "@marigold/system";
2437
2302
 
2438
2303
  // src/Menu/MenuItem.tsx
2439
- import { useRef as useRef14 } from "react";
2440
- import { useFocusRing as useFocusRing5 } from "@react-aria/focus";
2441
- import { useMenuItem } from "@react-aria/menu";
2442
- import { mergeProps as mergeProps9 } from "@react-aria/utils";
2443
- import { useStateProps as useStateProps9 } from "@marigold/system";
2444
- import { jsx as jsx56 } from "react/jsx-runtime";
2445
- var MenuItem = ({
2446
- item,
2447
- state,
2448
- onAction,
2449
- className
2450
- }) => {
2451
- const ref = useRef14(null);
2452
- const { onClose } = useMenuContext();
2453
- const { menuItemProps } = useMenuItem(
2454
- {
2455
- key: item.key,
2456
- onAction,
2457
- onClose
2458
- },
2459
- state,
2460
- ref
2461
- );
2462
- const { isFocusVisible, focusProps } = useFocusRing5();
2463
- const stateProps = useStateProps9({
2464
- focus: isFocusVisible
2465
- });
2466
- const { onPointerUp, ...props } = menuItemProps;
2467
- return /* @__PURE__ */ jsx56(
2468
- "li",
2469
- {
2470
- ref,
2471
- className,
2472
- ...mergeProps9(
2473
- props,
2474
- { onPointerDown: onPointerUp },
2475
- stateProps,
2476
- focusProps
2477
- ),
2478
- children: item.props.children
2479
- }
2480
- );
2304
+ import { MenuItem } from "react-aria-components";
2305
+ import { useClassNames as useClassNames34 } from "@marigold/system";
2306
+ import { jsx as jsx59 } from "react/jsx-runtime";
2307
+ var _MenuItem = ({ children, ...props }) => {
2308
+ const classNames2 = useClassNames34({ component: "Menu" });
2309
+ return /* @__PURE__ */ jsx59(MenuItem, { ...props, className: classNames2.item, children });
2481
2310
  };
2482
2311
 
2483
2312
  // src/Menu/MenuSection.tsx
2484
- import { useMenuSection } from "@react-aria/menu";
2485
- import { useClassNames as useClassNames30 } from "@marigold/system";
2486
- import { Fragment as Fragment8, jsx as jsx57, jsxs as jsxs22 } from "react/jsx-runtime";
2487
- var MenuSection = ({ onAction, item, state }) => {
2488
- let { itemProps, headingProps, groupProps } = useMenuSection({
2489
- heading: item.rendered,
2490
- "aria-label": item["aria-label"]
2491
- });
2492
- const className = useClassNames30({ component: "Menu" });
2493
- return /* @__PURE__ */ jsxs22(Fragment8, { children: [
2494
- item.key !== state.collection.getFirstKey() && /* @__PURE__ */ jsx57("li", { children: /* @__PURE__ */ jsx57(_Divider, { variant: "section" }) }),
2495
- /* @__PURE__ */ jsxs22("li", { ...itemProps, children: [
2496
- item.rendered && /* @__PURE__ */ jsx57("span", { ...headingProps, className: className.section, children: item.rendered }),
2497
- /* @__PURE__ */ jsx57("ul", { ...groupProps, className: "pb-1", children: [...item.props.children].map((node) => /* @__PURE__ */ jsx57(
2498
- MenuItem,
2499
- {
2500
- item: node,
2501
- state,
2502
- onAction,
2503
- className: className.item
2504
- },
2505
- node.key
2506
- )) })
2507
- ] })
2313
+ import { Section as Section2 } from "react-aria-components";
2314
+ import { useClassNames as useClassNames35 } from "@marigold/system";
2315
+ import { jsx as jsx60, jsxs as jsxs24 } from "react/jsx-runtime";
2316
+ var _MenuSection = ({ children, title, ...props }) => {
2317
+ const className = useClassNames35({ component: "Menu" });
2318
+ return /* @__PURE__ */ jsxs24(Section2, { ...props, children: [
2319
+ /* @__PURE__ */ jsx60(_Header, { className: className.section, children: title }),
2320
+ children
2508
2321
  ] });
2509
2322
  };
2510
- var MenuSection_default = MenuSection;
2511
-
2512
- // src/Menu/MenuTrigger.tsx
2513
- import { Children as Children5, useRef as useRef15 } from "react";
2514
- import { PressResponder } from "@react-aria/interactions";
2515
- import { useMenuTrigger } from "@react-aria/menu";
2516
- import { useObjectRef as useObjectRef3 } from "@react-aria/utils";
2517
- import { useMenuTriggerState } from "@react-stately/menu";
2518
- import { useSmallScreen } from "@marigold/system";
2519
- import { jsx as jsx58, jsxs as jsxs23 } from "react/jsx-runtime";
2520
- var MenuTrigger = ({
2521
- disabled,
2323
+
2324
+ // src/Menu/Menu.tsx
2325
+ import { jsx as jsx61, jsxs as jsxs25 } from "react/jsx-runtime";
2326
+ var _Menu = ({
2327
+ children,
2328
+ label,
2329
+ variant,
2330
+ size,
2522
2331
  open,
2523
- onOpenChange,
2524
- children
2332
+ ...props
2525
2333
  }) => {
2526
- const [menuTrigger, menu] = Children5.toArray(children);
2527
- const menuTriggerRef = useRef15(null);
2528
- const menuRef = useObjectRef3();
2529
- const state = useMenuTriggerState({
2530
- isOpen: open,
2531
- onOpenChange
2532
- });
2533
- const { menuTriggerProps, menuProps } = useMenuTrigger(
2534
- { trigger: "press", isDisabled: disabled },
2535
- state,
2536
- menuTriggerRef
2537
- );
2538
- const menuContext = {
2539
- ...menuProps,
2540
- ref: menuRef,
2541
- open: state.isOpen,
2542
- onClose: state.close,
2543
- autoFocus: state.focusStrategy
2544
- };
2545
- const isSmallScreen = useSmallScreen();
2546
- return /* @__PURE__ */ jsxs23(MenuContext.Provider, { value: menuContext, children: [
2547
- /* @__PURE__ */ jsx58(
2548
- PressResponder,
2549
- {
2550
- ...menuTriggerProps,
2551
- ref: menuTriggerRef,
2552
- isPressed: state.isOpen,
2553
- children: menuTrigger
2554
- }
2555
- ),
2556
- isSmallScreen ? /* @__PURE__ */ jsx58(Tray, { state, children: menu }) : /* @__PURE__ */ jsx58(Popover, { triggerRef: menuTriggerRef, scrollRef: menuRef, state, children: menu })
2334
+ const classNames2 = useClassNames36({ component: "Menu", variant, size });
2335
+ return /* @__PURE__ */ jsxs25(MenuTrigger, { ...props, children: [
2336
+ /* @__PURE__ */ jsx61(_Button, { variant: "menu", children: label }),
2337
+ /* @__PURE__ */ jsx61(_Popover, { open, children: /* @__PURE__ */ jsx61(Menu, { ...props, className: classNames2.container, children }) })
2557
2338
  ] });
2558
2339
  };
2559
-
2560
- // src/Menu/Menu.tsx
2561
- import { jsx as jsx59 } from "react/jsx-runtime";
2562
- var Menu = ({ variant, size, ...props }) => {
2563
- const { ref: scrollRef, ...menuContext } = useMenuContext();
2564
- const ownProps = { ...props, ...menuContext };
2565
- const ref = useRef16(null);
2566
- const state = useTreeState2({ ...ownProps, selectionMode: "none" });
2567
- const { menuProps } = useMenu(ownProps, state, ref);
2568
- useSyncRef({ ref: scrollRef }, ref);
2569
- const classNames2 = useClassNames31({ component: "Menu", variant, size });
2570
- return /* @__PURE__ */ jsx59("ul", { ref, className: classNames2.container, ...menuProps, children: [...state.collection].map((item) => {
2571
- if (item.type === "section") {
2572
- return /* @__PURE__ */ jsx59(
2573
- MenuSection_default,
2574
- {
2575
- item,
2576
- state,
2577
- onAction: props.onAction
2578
- },
2579
- item.key
2580
- );
2581
- }
2582
- return /* @__PURE__ */ jsx59(
2583
- MenuItem,
2584
- {
2585
- item,
2586
- state,
2587
- onAction: props.onAction,
2588
- className: classNames2.item
2589
- },
2590
- item.key
2591
- );
2592
- }) });
2593
- };
2594
- Menu.Trigger = MenuTrigger;
2595
- Menu.Item = Item4;
2596
- Menu.Section = Section;
2340
+ _Menu.Item = _MenuItem;
2341
+ _Menu.Section = _MenuSection;
2597
2342
 
2598
2343
  // src/Menu/ActionMenu.tsx
2599
- import { SVG as SVG5 } from "@marigold/system";
2600
- import { jsx as jsx60, jsxs as jsxs24 } from "react/jsx-runtime";
2601
- var ActionMenu = (props) => {
2602
- return /* @__PURE__ */ jsxs24(Menu.Trigger, { children: [
2603
- /* @__PURE__ */ jsx60(_Button, { variant: "menu", size: "small", children: /* @__PURE__ */ jsx60(SVG5, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx60("path", { d: "M12.0117 7.47656C13.2557 7.47656 14.2734 6.45879 14.2734 5.21484C14.2734 3.9709 13.2557 2.95312 12.0117 2.95312C10.7678 2.95312 9.75 3.9709 9.75 5.21484C9.75 6.45879 10.7678 7.47656 12.0117 7.47656ZM12.0117 9.73828C10.7678 9.73828 9.75 10.7561 9.75 12C9.75 13.2439 10.7678 14.2617 12.0117 14.2617C13.2557 14.2617 14.2734 13.2439 14.2734 12C14.2734 10.7561 13.2557 9.73828 12.0117 9.73828ZM12.0117 16.5234C10.7678 16.5234 9.75 17.5412 9.75 18.7852C9.75 20.0291 10.7678 21.0469 12.0117 21.0469C13.2557 21.0469 14.2734 20.0291 14.2734 18.7852C14.2734 17.5412 13.2557 16.5234 12.0117 16.5234Z" }) }) }),
2604
- /* @__PURE__ */ jsx60(Menu, { ...props })
2344
+ import { Menu as Menu2, MenuTrigger as MenuTrigger2 } from "react-aria-components";
2345
+ import { SVG as SVG5, useClassNames as useClassNames37 } from "@marigold/system";
2346
+ import { jsx as jsx62, jsxs as jsxs26 } from "react/jsx-runtime";
2347
+ var ActionMenu = ({ variant, size, ...props }) => {
2348
+ const classNames2 = useClassNames37({ component: "Menu", variant, size });
2349
+ return /* @__PURE__ */ jsxs26(MenuTrigger2, { children: [
2350
+ /* @__PURE__ */ jsx62(_Button, { variant: "menu", size: "small", children: /* @__PURE__ */ jsx62(SVG5, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx62("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" }) }) }),
2351
+ /* @__PURE__ */ jsx62(_Popover, { children: /* @__PURE__ */ jsx62(Menu2, { ...props, className: classNames2.container, children: props.children }) })
2605
2352
  ] });
2606
2353
  };
2607
2354
 
2608
2355
  // src/Message/Message.tsx
2609
- import { cn as cn30, useClassNames as useClassNames32 } from "@marigold/system";
2610
- import { jsx as jsx61, jsxs as jsxs25 } from "react/jsx-runtime";
2356
+ import { cn as cn34, useClassNames as useClassNames38 } from "@marigold/system";
2357
+ import { jsx as jsx63, jsxs as jsxs27 } from "react/jsx-runtime";
2611
2358
  var icons = {
2612
- success: () => /* @__PURE__ */ jsx61(
2359
+ success: () => /* @__PURE__ */ jsx63(
2613
2360
  "svg",
2614
2361
  {
2615
2362
  xmlns: "http://www.w3.org/2000/svg",
2616
2363
  viewBox: "0 0 24 24",
2617
2364
  fill: "currentColor",
2618
- children: /* @__PURE__ */ jsx61(
2365
+ children: /* @__PURE__ */ jsx63(
2619
2366
  "path",
2620
2367
  {
2621
2368
  fillRule: "evenodd",
@@ -2625,13 +2372,13 @@ var icons = {
2625
2372
  )
2626
2373
  }
2627
2374
  ),
2628
- info: () => /* @__PURE__ */ jsx61(
2375
+ info: () => /* @__PURE__ */ jsx63(
2629
2376
  "svg",
2630
2377
  {
2631
2378
  xmlns: "http://www.w3.org/2000/svg",
2632
2379
  viewBox: "0 0 24 24",
2633
2380
  fill: "currentColor",
2634
- children: /* @__PURE__ */ jsx61(
2381
+ children: /* @__PURE__ */ jsx63(
2635
2382
  "path",
2636
2383
  {
2637
2384
  fillRule: "evenodd",
@@ -2641,13 +2388,13 @@ var icons = {
2641
2388
  )
2642
2389
  }
2643
2390
  ),
2644
- warning: () => /* @__PURE__ */ jsx61(
2391
+ warning: () => /* @__PURE__ */ jsx63(
2645
2392
  "svg",
2646
2393
  {
2647
2394
  xmlns: "http://www.w3.org/2000/svg",
2648
2395
  viewBox: "0 0 24 24",
2649
2396
  fill: "currentColor",
2650
- children: /* @__PURE__ */ jsx61(
2397
+ children: /* @__PURE__ */ jsx63(
2651
2398
  "path",
2652
2399
  {
2653
2400
  fillRule: "evenodd",
@@ -2657,13 +2404,13 @@ var icons = {
2657
2404
  )
2658
2405
  }
2659
2406
  ),
2660
- error: () => /* @__PURE__ */ jsx61(
2407
+ error: () => /* @__PURE__ */ jsx63(
2661
2408
  "svg",
2662
2409
  {
2663
2410
  xmlns: "http://www.w3.org/2000/svg",
2664
2411
  viewBox: "0 0 24 24",
2665
2412
  fill: "currentColor",
2666
- children: /* @__PURE__ */ jsx61(
2413
+ children: /* @__PURE__ */ jsx63(
2667
2414
  "path",
2668
2415
  {
2669
2416
  fillRule: "evenodd",
@@ -2681,100 +2428,41 @@ var Message = ({
2681
2428
  children,
2682
2429
  ...props
2683
2430
  }) => {
2684
- const classNames2 = useClassNames32({ component: "Message", variant, size });
2431
+ const classNames2 = useClassNames38({ component: "Message", variant, size });
2685
2432
  const Icon3 = icons[variant];
2686
- return /* @__PURE__ */ jsxs25(
2433
+ return /* @__PURE__ */ jsxs27(
2687
2434
  "div",
2688
2435
  {
2689
- className: cn30(
2436
+ className: cn34(
2690
2437
  "grid auto-rows-min grid-cols-[min-content_auto] gap-1",
2691
2438
  classNames2.container
2692
2439
  ),
2693
2440
  ...props,
2694
2441
  children: [
2695
- /* @__PURE__ */ jsx61("div", { className: cn30("col-span-1 h-5 w-5 self-center", classNames2.icon), children: /* @__PURE__ */ jsx61(Icon3, {}) }),
2696
- /* @__PURE__ */ jsx61(
2442
+ /* @__PURE__ */ jsx63("div", { className: cn34("col-span-1 h-5 w-5 self-center", classNames2.icon), children: /* @__PURE__ */ jsx63(Icon3, {}) }),
2443
+ /* @__PURE__ */ jsx63(
2697
2444
  "div",
2698
2445
  {
2699
- className: cn30("col-start-2 row-start-1 self-center", classNames2.title),
2446
+ className: cn34("col-start-2 row-start-1 self-center", classNames2.title),
2700
2447
  children: messageTitle
2701
2448
  }
2702
2449
  ),
2703
- /* @__PURE__ */ jsx61("div", { className: cn30("col-start-2", classNames2.content), children })
2450
+ /* @__PURE__ */ jsx63("div", { className: cn34("col-start-2", classNames2.content), children })
2704
2451
  ]
2705
2452
  }
2706
2453
  );
2707
2454
  };
2708
2455
 
2709
2456
  // src/NumberField/NumberField.tsx
2710
- import { forwardRef as forwardRef13 } from "react";
2457
+ import { forwardRef as forwardRef15 } from "react";
2711
2458
  import { Group, NumberField } from "react-aria-components";
2712
- import { cn as cn33, useClassNames as useClassNames34 } from "@marigold/system";
2713
-
2714
- // src/Input/_Input.tsx
2715
- import { cloneElement as cloneElement4, forwardRef as forwardRef12 } from "react";
2716
- import { Input as Input2 } from "react-aria-components";
2717
- import { cn as cn31, useClassNames as useClassNames33 } from "@marigold/system";
2718
- import { jsx as jsx62, jsxs as jsxs26 } from "react/jsx-runtime";
2719
- var _Input = forwardRef12(
2720
- ({ type, icon, action, variant, size, className, ...props }, ref) => {
2721
- const classNames2 = useClassNames33({
2722
- component: "Input",
2723
- variant,
2724
- size
2725
- });
2726
- const inputIcon = icon ? cloneElement4(icon, {
2727
- className: cn31(
2728
- "pointer-events-none absolute",
2729
- classNames2.icon,
2730
- icon.props.className
2731
- ),
2732
- ...icon.props
2733
- }) : null;
2734
- const inputAction = action && !props.readOnly ? cloneElement4(action, {
2735
- className: cn31(
2736
- "absolute",
2737
- classNames2.action,
2738
- action.props.className
2739
- ),
2740
- ...action.props
2741
- }) : null;
2742
- return /* @__PURE__ */ jsxs26(
2743
- "div",
2744
- {
2745
- className: "group/input relative flex items-center",
2746
- "data-icon": icon && "",
2747
- "data-action": action && "",
2748
- children: [
2749
- inputIcon,
2750
- /* @__PURE__ */ jsx62(
2751
- Input2,
2752
- {
2753
- ...props,
2754
- className: cn31(
2755
- "w-full flex-1",
2756
- "disabled:cursor-not-allowed",
2757
- "[&[type=file]]:border-none [&[type=file]]:p-0",
2758
- "[&[type=color]]:ml-0 [&[type=color]]:border-none [&[type=color]]:bg-transparent [&[type=color]]:p-0",
2759
- classNames2.input,
2760
- className
2761
- ),
2762
- ref,
2763
- type
2764
- }
2765
- ),
2766
- inputAction
2767
- ]
2768
- }
2769
- );
2770
- }
2771
- );
2459
+ import { cn as cn36, useClassNames as useClassNames39 } from "@marigold/system";
2772
2460
 
2773
2461
  // src/NumberField/StepButton.tsx
2774
- import { Button as Button2 } from "react-aria-components";
2775
- import { cn as cn32 } from "@marigold/system";
2776
- import { jsx as jsx63 } from "react/jsx-runtime";
2777
- var Plus = () => /* @__PURE__ */ jsx63("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx63(
2462
+ import { Button as Button3 } from "react-aria-components";
2463
+ import { cn as cn35 } from "@marigold/system";
2464
+ import { jsx as jsx64 } from "react/jsx-runtime";
2465
+ var Plus = () => /* @__PURE__ */ jsx64("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx64(
2778
2466
  "path",
2779
2467
  {
2780
2468
  fillRule: "evenodd",
@@ -2782,7 +2470,7 @@ var Plus = () => /* @__PURE__ */ jsx63("svg", { width: 16, height: 16, viewBox:
2782
2470
  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"
2783
2471
  }
2784
2472
  ) });
2785
- var Minus = () => /* @__PURE__ */ jsx63("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx63(
2473
+ var Minus = () => /* @__PURE__ */ jsx64("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx64(
2786
2474
  "path",
2787
2475
  {
2788
2476
  fillRule: "evenodd",
@@ -2792,10 +2480,10 @@ var Minus = () => /* @__PURE__ */ jsx63("svg", { width: 16, height: 16, viewBox:
2792
2480
  ) });
2793
2481
  var _StepButton = ({ direction, className, ...props }) => {
2794
2482
  const Icon3 = direction === "up" ? Plus : Minus;
2795
- return /* @__PURE__ */ jsx63(
2796
- Button2,
2483
+ return /* @__PURE__ */ jsx64(
2484
+ Button3,
2797
2485
  {
2798
- className: cn32(
2486
+ className: cn35(
2799
2487
  [
2800
2488
  "flex items-center justify-center",
2801
2489
  "cursor-pointer data-[disabled]:cursor-not-allowed"
@@ -2803,14 +2491,14 @@ var _StepButton = ({ direction, className, ...props }) => {
2803
2491
  className
2804
2492
  ),
2805
2493
  ...props,
2806
- children: /* @__PURE__ */ jsx63(Icon3, {})
2494
+ children: /* @__PURE__ */ jsx64(Icon3, {})
2807
2495
  }
2808
2496
  );
2809
2497
  };
2810
2498
 
2811
2499
  // src/NumberField/NumberField.tsx
2812
- import { jsx as jsx64, jsxs as jsxs27 } from "react/jsx-runtime";
2813
- var _NumberField = forwardRef13(
2500
+ import { jsx as jsx65, jsxs as jsxs28 } from "react/jsx-runtime";
2501
+ var _NumberField = forwardRef15(
2814
2502
  ({
2815
2503
  variant,
2816
2504
  size,
@@ -2821,7 +2509,7 @@ var _NumberField = forwardRef13(
2821
2509
  hideStepper,
2822
2510
  ...rest
2823
2511
  }, ref) => {
2824
- const classNames2 = useClassNames34({
2512
+ const classNames2 = useClassNames39({
2825
2513
  component: "NumberField",
2826
2514
  size,
2827
2515
  variant
@@ -2834,8 +2522,8 @@ var _NumberField = forwardRef13(
2834
2522
  ...rest
2835
2523
  };
2836
2524
  const showStepper = !hideStepper;
2837
- return /* @__PURE__ */ jsx64(FieldBase2, { as: NumberField, ...props, children: /* @__PURE__ */ jsxs27(Group, { className: cn33("flex items-stretch", classNames2.group), children: [
2838
- showStepper && /* @__PURE__ */ jsx64(
2525
+ return /* @__PURE__ */ jsx65(FieldBase, { as: NumberField, ...props, children: /* @__PURE__ */ jsxs28(Group, { className: cn36("flex items-stretch", classNames2.group), children: [
2526
+ showStepper && /* @__PURE__ */ jsx65(
2839
2527
  _StepButton,
2840
2528
  {
2841
2529
  className: classNames2.stepper,
@@ -2843,7 +2531,7 @@ var _NumberField = forwardRef13(
2843
2531
  slot: "decrement"
2844
2532
  }
2845
2533
  ),
2846
- /* @__PURE__ */ jsx64("div", { className: "flex-1", children: /* @__PURE__ */ jsx64(
2534
+ /* @__PURE__ */ jsx65("div", { className: "flex-1", children: /* @__PURE__ */ jsx65(
2847
2535
  _Input,
2848
2536
  {
2849
2537
  ref,
@@ -2852,7 +2540,7 @@ var _NumberField = forwardRef13(
2852
2540
  className: classNames2.input
2853
2541
  }
2854
2542
  ) }),
2855
- showStepper && /* @__PURE__ */ jsx64(
2543
+ showStepper && /* @__PURE__ */ jsx65(
2856
2544
  _StepButton,
2857
2545
  {
2858
2546
  className: classNames2.stepper,
@@ -2865,43 +2553,43 @@ var _NumberField = forwardRef13(
2865
2553
  );
2866
2554
 
2867
2555
  // src/Provider/index.ts
2868
- import { useTheme as useTheme5, ThemeProvider as ThemeProvider2 } from "@marigold/system";
2556
+ import { useTheme as useTheme6, ThemeProvider as ThemeProvider2 } from "@marigold/system";
2869
2557
 
2870
2558
  // src/Provider/MarigoldProvider.tsx
2871
2559
  import { OverlayProvider } from "@react-aria/overlays";
2872
2560
  import {
2873
2561
  ThemeProvider,
2874
2562
  defaultTheme,
2875
- useTheme as useTheme4
2563
+ useTheme as useTheme5
2876
2564
  } from "@marigold/system";
2877
- import { jsx as jsx65 } from "react/jsx-runtime";
2565
+ import { jsx as jsx66 } from "react/jsx-runtime";
2878
2566
  function MarigoldProvider({
2879
2567
  children,
2880
2568
  theme
2881
2569
  }) {
2882
- const outerTheme = useTheme4();
2570
+ const outerTheme = useTheme5();
2883
2571
  const isTopLevel = outerTheme === defaultTheme;
2884
- return /* @__PURE__ */ jsx65(ThemeProvider, { theme, children: isTopLevel ? /* @__PURE__ */ jsx65(OverlayProvider, { children }) : children });
2572
+ return /* @__PURE__ */ jsx66(ThemeProvider, { theme, children: isTopLevel ? /* @__PURE__ */ jsx66(OverlayProvider, { children }) : children });
2885
2573
  }
2886
2574
 
2887
2575
  // src/Radio/Radio.tsx
2888
2576
  import {
2889
- forwardRef as forwardRef14
2577
+ forwardRef as forwardRef16
2890
2578
  } from "react";
2891
2579
  import { Radio } from "react-aria-components";
2892
- import { cn as cn35, useClassNames as useClassNames36 } from "@marigold/system";
2580
+ import { cn as cn38, useClassNames as useClassNames41 } from "@marigold/system";
2893
2581
 
2894
2582
  // src/Radio/Context.ts
2895
- import { createContext as createContext5, useContext as useContext6 } from "react";
2896
- var RadioGroupContext = createContext5(
2583
+ import { createContext as createContext4, useContext as useContext9 } from "react";
2584
+ var RadioGroupContext = createContext4(
2897
2585
  null
2898
2586
  );
2899
- var useRadioGroupContext = () => useContext6(RadioGroupContext);
2587
+ var useRadioGroupContext = () => useContext9(RadioGroupContext);
2900
2588
 
2901
2589
  // src/Radio/RadioGroup.tsx
2902
2590
  import { RadioGroup } from "react-aria-components";
2903
- import { cn as cn34, useClassNames as useClassNames35 } from "@marigold/system";
2904
- import { jsx as jsx66 } from "react/jsx-runtime";
2591
+ import { cn as cn37, useClassNames as useClassNames40 } from "@marigold/system";
2592
+ import { jsx as jsx67 } from "react/jsx-runtime";
2905
2593
  var _RadioGroup = ({
2906
2594
  variant,
2907
2595
  size,
@@ -2917,7 +2605,7 @@ var _RadioGroup = ({
2917
2605
  width,
2918
2606
  ...rest
2919
2607
  }) => {
2920
- const classNames2 = useClassNames35({ component: "Radio", variant, size });
2608
+ const classNames2 = useClassNames40({ component: "Radio", variant, size });
2921
2609
  const props = {
2922
2610
  isDisabled: disabled,
2923
2611
  isReadOnly: readOnly,
@@ -2925,8 +2613,8 @@ var _RadioGroup = ({
2925
2613
  isInvalid: error,
2926
2614
  ...rest
2927
2615
  };
2928
- return /* @__PURE__ */ jsx66(
2929
- FieldBase2,
2616
+ return /* @__PURE__ */ jsx67(
2617
+ FieldBase,
2930
2618
  {
2931
2619
  as: RadioGroup,
2932
2620
  width,
@@ -2936,18 +2624,18 @@ var _RadioGroup = ({
2936
2624
  variant,
2937
2625
  size,
2938
2626
  ...props,
2939
- children: /* @__PURE__ */ jsx66(
2627
+ children: /* @__PURE__ */ jsx67(
2940
2628
  "div",
2941
2629
  {
2942
2630
  role: "presentation",
2943
2631
  "data-testid": "group",
2944
2632
  "data-orientation": orientation,
2945
- className: cn34(
2633
+ className: cn37(
2946
2634
  classNames2.group,
2947
2635
  "flex items-start",
2948
2636
  orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
2949
2637
  ),
2950
- children: /* @__PURE__ */ jsx66(RadioGroupContext.Provider, { value: { width, variant, size }, children })
2638
+ children: /* @__PURE__ */ jsx67(RadioGroupContext.Provider, { value: { width, variant, size }, children })
2951
2639
  }
2952
2640
  )
2953
2641
  }
@@ -2955,33 +2643,33 @@ var _RadioGroup = ({
2955
2643
  };
2956
2644
 
2957
2645
  // src/Radio/Radio.tsx
2958
- import { Fragment as Fragment9, jsx as jsx67, jsxs as jsxs28 } from "react/jsx-runtime";
2959
- var Dot = () => /* @__PURE__ */ jsx67("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ jsx67("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
2960
- var Icon2 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx67(
2646
+ import { Fragment as Fragment8, jsx as jsx68, jsxs as jsxs29 } from "react/jsx-runtime";
2647
+ var Dot = () => /* @__PURE__ */ jsx68("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ jsx68("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
2648
+ var Icon2 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx68(
2961
2649
  "div",
2962
2650
  {
2963
- className: cn35(
2651
+ className: cn38(
2964
2652
  "bg-secondary-50 flex h-4 w-4 items-center justify-center rounded-[50%] border p-1",
2965
2653
  className
2966
2654
  ),
2967
2655
  "aria-hidden": "true",
2968
2656
  ...props,
2969
- children: checked ? /* @__PURE__ */ jsx67(Dot, {}) : null
2657
+ children: checked ? /* @__PURE__ */ jsx68(Dot, {}) : null
2970
2658
  }
2971
2659
  );
2972
- var _Radio = forwardRef14(
2660
+ var _Radio = forwardRef16(
2973
2661
  ({ value, disabled, width, children, ...props }, ref) => {
2974
2662
  const { variant, size, width: groupWidth } = useRadioGroupContext();
2975
- const classNames2 = useClassNames36({
2663
+ const classNames2 = useClassNames41({
2976
2664
  component: "Radio",
2977
2665
  variant: variant || props.variant,
2978
2666
  size: size || props.size
2979
2667
  });
2980
- return /* @__PURE__ */ jsx67(
2668
+ return /* @__PURE__ */ jsx68(
2981
2669
  Radio,
2982
2670
  {
2983
2671
  ref,
2984
- className: cn35(
2672
+ className: cn38(
2985
2673
  "group/radio",
2986
2674
  "relative flex items-center gap-[1ch]",
2987
2675
  width || groupWidth || "w-full",
@@ -2990,18 +2678,18 @@ var _Radio = forwardRef14(
2990
2678
  value,
2991
2679
  isDisabled: disabled,
2992
2680
  ...props,
2993
- children: ({ isSelected }) => /* @__PURE__ */ jsxs28(Fragment9, { children: [
2994
- /* @__PURE__ */ jsx67(
2681
+ children: ({ isSelected }) => /* @__PURE__ */ jsxs29(Fragment8, { children: [
2682
+ /* @__PURE__ */ jsx68(
2995
2683
  Icon2,
2996
2684
  {
2997
2685
  checked: isSelected,
2998
- className: cn35(
2686
+ className: cn38(
2999
2687
  disabled ? "cursor-not-allowed" : "cursor-pointer",
3000
2688
  classNames2.radio
3001
2689
  )
3002
2690
  }
3003
2691
  ),
3004
- /* @__PURE__ */ jsx67("div", { className: classNames2.label, children })
2692
+ /* @__PURE__ */ jsx68("div", { className: classNames2.label, children })
3005
2693
  ] })
3006
2694
  }
3007
2695
  );
@@ -3010,10 +2698,10 @@ var _Radio = forwardRef14(
3010
2698
  _Radio.Group = _RadioGroup;
3011
2699
 
3012
2700
  // src/SearchField/SearchField.tsx
3013
- import { forwardRef as forwardRef15 } from "react";
2701
+ import { forwardRef as forwardRef17 } from "react";
3014
2702
  import { SearchField } from "react-aria-components";
3015
- import { jsx as jsx68 } from "react/jsx-runtime";
3016
- var SearchIcon2 = (props) => /* @__PURE__ */ jsx68(
2703
+ import { jsx as jsx69 } from "react/jsx-runtime";
2704
+ var SearchIcon2 = (props) => /* @__PURE__ */ jsx69(
3017
2705
  "svg",
3018
2706
  {
3019
2707
  xmlns: "http://www.w3.org/2000/svg",
@@ -3022,10 +2710,10 @@ var SearchIcon2 = (props) => /* @__PURE__ */ jsx68(
3022
2710
  width: 24,
3023
2711
  height: 24,
3024
2712
  ...props,
3025
- children: /* @__PURE__ */ jsx68("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" })
2713
+ children: /* @__PURE__ */ jsx69("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" })
3026
2714
  }
3027
2715
  );
3028
- var _SearchField = forwardRef15(
2716
+ var _SearchField = forwardRef17(
3029
2717
  ({ disabled, required, readOnly, error, action, ...rest }, ref) => {
3030
2718
  const props = {
3031
2719
  ...rest,
@@ -3034,159 +2722,64 @@ var _SearchField = forwardRef15(
3034
2722
  isReadOnly: readOnly,
3035
2723
  isInvalid: error
3036
2724
  };
3037
- return /* @__PURE__ */ jsx68(FieldBase2, { as: SearchField, ...props, children: /* @__PURE__ */ jsx68(_Input, { ref, icon: /* @__PURE__ */ jsx68(SearchIcon2, {}) }) });
2725
+ return /* @__PURE__ */ jsx69(FieldBase, { as: SearchField, ...props, children: /* @__PURE__ */ jsx69(_Input, { ref, icon: /* @__PURE__ */ jsx69(SearchIcon2, {}) }) });
3038
2726
  }
3039
2727
  );
3040
2728
 
3041
2729
  // src/Select/Select.tsx
2730
+ import { forwardRef as forwardRef18 } from "react";
3042
2731
  import {
3043
- forwardRef as forwardRef16,
3044
- useRef as useRef17
3045
- } from "react";
3046
- import { useButton as useButton3 } from "@react-aria/button";
3047
- import { useFocusRing as useFocusRing6 } from "@react-aria/focus";
3048
- import { useLocalizedStringFormatter } from "@react-aria/i18n";
3049
- import { HiddenSelect, useSelect } from "@react-aria/select";
3050
- import { mergeProps as mergeProps10, useObjectRef as useObjectRef4 } from "@react-aria/utils";
3051
- import { Item as Item5, Section as Section2 } from "@react-stately/collections";
3052
- import { useSelectState } from "@react-stately/select";
3053
- import {
3054
- cn as cn36,
3055
- useClassNames as useClassNames37,
3056
- useSmallScreen as useSmallScreen2,
3057
- useStateProps as useStateProps10
3058
- } from "@marigold/system";
3059
-
3060
- // src/Select/intl.ts
3061
- var messages = {
3062
- "en-US": {
3063
- placeholder: "Select an option\u2026"
3064
- },
3065
- "de-DE": {
3066
- placeholder: "Option ausw\xE4hlen\u2026"
3067
- }
3068
- };
3069
-
3070
- // src/Select/Select.tsx
3071
- import { jsx as jsx69, jsxs as jsxs29 } from "react/jsx-runtime";
3072
- var Select = forwardRef16(
2732
+ Button as Button4,
2733
+ Select,
2734
+ SelectValue
2735
+ } from "react-aria-components";
2736
+ import { cn as cn39, useClassNames as useClassNames42 } from "@marigold/system";
2737
+ import { jsx as jsx70, jsxs as jsxs30 } from "react/jsx-runtime";
2738
+ var _Select = forwardRef18(
3073
2739
  ({
3074
- variant,
3075
- size,
3076
2740
  width,
3077
- open,
3078
2741
  disabled,
3079
2742
  required,
2743
+ items,
2744
+ variant,
2745
+ size,
3080
2746
  error,
2747
+ open,
3081
2748
  onChange,
3082
2749
  ...rest
3083
2750
  }, ref) => {
3084
- const formatMessage = useLocalizedStringFormatter(messages);
3085
2751
  const props = {
3086
- isOpen: open,
3087
2752
  isDisabled: disabled,
2753
+ isInvalid: error,
2754
+ isOpen: open,
3088
2755
  isRequired: required,
3089
- validationState: error ? "invalid" : "valid",
3090
- placeholder: rest.placeholder || formatMessage.format("placeholder"),
3091
2756
  onSelectionChange: onChange,
3092
2757
  ...rest
3093
2758
  };
3094
- const buttonRef = useObjectRef4(ref);
3095
- const listboxRef = useRef17(null);
3096
- const state = useSelectState(props);
3097
- const {
3098
- labelProps,
3099
- triggerProps,
3100
- valueProps,
3101
- menuProps,
3102
- descriptionProps,
3103
- errorMessageProps
3104
- } = useSelect(props, state, buttonRef);
3105
- const { buttonProps } = useButton3(
3106
- { isDisabled: disabled, ...triggerProps },
3107
- buttonRef
3108
- );
3109
- const { focusProps, isFocusVisible } = useFocusRing6();
3110
- const classNames2 = useClassNames37({ component: "Select", variant, size });
3111
- const isSmallScreen = useSmallScreen2();
3112
- const stateProps = useStateProps10({
3113
- disabled,
3114
- error,
3115
- focusVisible: isFocusVisible,
3116
- expanded: state.isOpen,
3117
- required
3118
- });
3119
- return /* @__PURE__ */ jsxs29(
3120
- FieldBase,
3121
- {
3122
- variant,
3123
- size,
3124
- width,
3125
- label: props.label,
3126
- labelProps: { elementType: "span", ...labelProps },
3127
- description: props.description,
3128
- descriptionProps,
3129
- error,
3130
- errorMessage: props.errorMessage,
3131
- errorMessageProps,
3132
- stateProps,
3133
- disabled,
3134
- children: [
3135
- /* @__PURE__ */ jsx69(
3136
- HiddenSelect,
3137
- {
3138
- state,
3139
- triggerRef: buttonRef,
3140
- label: props.label,
3141
- name: props.name,
3142
- isDisabled: disabled
3143
- }
3144
- ),
3145
- /* @__PURE__ */ jsxs29(
3146
- "button",
3147
- {
3148
- className: cn36(
3149
- "flex w-full items-center justify-between gap-1 overflow-hidden",
3150
- classNames2.select
3151
- ),
3152
- ref: buttonRef,
3153
- ...mergeProps10(buttonProps, focusProps),
3154
- ...stateProps,
3155
- children: [
3156
- /* @__PURE__ */ jsx69("div", { className: "overflow-hidden whitespace-nowrap", ...valueProps, children: state.selectedItem ? state.selectedItem.rendered : props.placeholder }),
3157
- /* @__PURE__ */ jsx69(ChevronDown, { className: "h-4 w-4" })
3158
- ]
3159
- }
2759
+ const classNames2 = useClassNames42({ component: "Select", variant, size });
2760
+ return /* @__PURE__ */ jsxs30(FieldBase, { isOpen: true, as: Select, ref, ...props, children: [
2761
+ /* @__PURE__ */ jsxs30(
2762
+ Button4,
2763
+ {
2764
+ className: cn39(
2765
+ "flex w-full items-center justify-between gap-1 overflow-hidden",
2766
+ classNames2.select
3160
2767
  ),
3161
- isSmallScreen ? /* @__PURE__ */ jsx69(Tray, { state, children: /* @__PURE__ */ jsx69(
3162
- ListBox,
3163
- {
3164
- ref: listboxRef,
3165
- state,
3166
- variant,
3167
- size,
3168
- ...menuProps
3169
- }
3170
- ) }) : /* @__PURE__ */ jsx69(Popover, { state, triggerRef: buttonRef, scrollRef: listboxRef, children: /* @__PURE__ */ jsx69(
3171
- ListBox,
3172
- {
3173
- ref: listboxRef,
3174
- state,
3175
- variant,
3176
- size,
3177
- ...menuProps
3178
- }
3179
- ) })
3180
- ]
3181
- }
3182
- );
2768
+ children: [
2769
+ /* @__PURE__ */ jsx70(SelectValue, {}),
2770
+ /* @__PURE__ */ jsx70(ChevronDown, { className: "h-4 w-4" })
2771
+ ]
2772
+ }
2773
+ ),
2774
+ /* @__PURE__ */ jsx70(_Popover, { children: /* @__PURE__ */ jsx70(_ListBox, { items, children: props.children }) })
2775
+ ] });
3183
2776
  }
3184
2777
  );
3185
- Select.Option = Item5;
3186
- Select.Section = Section2;
2778
+ _Select.Option = _ListBox.Item;
2779
+ _Select.Section = _ListBox.Section;
3187
2780
 
3188
2781
  // src/Slider/Slider.tsx
3189
- import { forwardRef as forwardRef17 } from "react";
2782
+ import { forwardRef as forwardRef19 } from "react";
3190
2783
  import {
3191
2784
  Slider,
3192
2785
  SliderOutput,
@@ -3194,12 +2787,12 @@ import {
3194
2787
  SliderTrack
3195
2788
  } from "react-aria-components";
3196
2789
  import {
3197
- cn as cn37,
2790
+ cn as cn40,
3198
2791
  width as twWidth3,
3199
- useClassNames as useClassNames38
2792
+ useClassNames as useClassNames43
3200
2793
  } from "@marigold/system";
3201
- import { jsx as jsx70, jsxs as jsxs30 } from "react/jsx-runtime";
3202
- var _Slider = forwardRef17(
2794
+ import { jsx as jsx71, jsxs as jsxs31 } from "react/jsx-runtime";
2795
+ var _Slider = forwardRef19(
3203
2796
  ({
3204
2797
  thumbLabels,
3205
2798
  variant,
@@ -3208,7 +2801,7 @@ var _Slider = forwardRef17(
3208
2801
  disabled,
3209
2802
  ...rest
3210
2803
  }, ref) => {
3211
- const classNames2 = useClassNames38({
2804
+ const classNames2 = useClassNames43({
3212
2805
  component: "Slider",
3213
2806
  variant,
3214
2807
  size
@@ -3217,10 +2810,10 @@ var _Slider = forwardRef17(
3217
2810
  isDisabled: disabled,
3218
2811
  ...rest
3219
2812
  };
3220
- return /* @__PURE__ */ jsxs30(
2813
+ return /* @__PURE__ */ jsxs31(
3221
2814
  Slider,
3222
2815
  {
3223
- className: cn37(
2816
+ className: cn40(
3224
2817
  "grid grid-cols-[auto_1fr] gap-y-1",
3225
2818
  classNames2.container,
3226
2819
  twWidth3[width]
@@ -3228,16 +2821,16 @@ var _Slider = forwardRef17(
3228
2821
  ref,
3229
2822
  ...props,
3230
2823
  children: [
3231
- /* @__PURE__ */ jsx70(_Label, { children: props.children }),
3232
- /* @__PURE__ */ jsx70(SliderOutput, { className: cn37("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
3233
- /* @__PURE__ */ jsx70(
2824
+ /* @__PURE__ */ jsx71(_Label, { children: props.children }),
2825
+ /* @__PURE__ */ jsx71(SliderOutput, { className: cn40("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
2826
+ /* @__PURE__ */ jsx71(
3234
2827
  SliderTrack,
3235
2828
  {
3236
- className: cn37("relative col-span-2 h-2 w-full", classNames2.track),
3237
- children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ jsx70(
2829
+ className: cn40("relative col-span-2 h-2 w-full", classNames2.track),
2830
+ children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ jsx71(
3238
2831
  SliderThumb,
3239
2832
  {
3240
- className: cn37("top-1/2 cursor-pointer", classNames2.thumb),
2833
+ className: cn40("top-1/2 cursor-pointer", classNames2.thumb),
3241
2834
  index: i,
3242
2835
  "aria-label": thumbLabels == null ? void 0 : thumbLabels[i]
3243
2836
  },
@@ -3252,16 +2845,16 @@ var _Slider = forwardRef17(
3252
2845
  );
3253
2846
 
3254
2847
  // src/Split/Split.tsx
3255
- import { jsx as jsx71 } from "react/jsx-runtime";
3256
- var Split = (props) => /* @__PURE__ */ jsx71("div", { ...props, role: "separator", className: "grow" });
2848
+ import { jsx as jsx72 } from "react/jsx-runtime";
2849
+ var Split = (props) => /* @__PURE__ */ jsx72("div", { ...props, role: "separator", className: "grow" });
3257
2850
 
3258
2851
  // src/Stack/Stack.tsx
3259
2852
  import {
3260
2853
  alignment as alignment3,
3261
- cn as cn38,
2854
+ cn as cn41,
3262
2855
  gapSpace as gapSpace6
3263
2856
  } from "@marigold/system";
3264
- import { jsx as jsx72 } from "react/jsx-runtime";
2857
+ import { jsx as jsx73 } from "react/jsx-runtime";
3265
2858
  var Stack = ({
3266
2859
  children,
3267
2860
  space = 0,
@@ -3272,10 +2865,10 @@ var Stack = ({
3272
2865
  ...props
3273
2866
  }) => {
3274
2867
  var _a, _b, _c, _d;
3275
- return /* @__PURE__ */ jsx72(
2868
+ return /* @__PURE__ */ jsx73(
3276
2869
  "div",
3277
2870
  {
3278
- className: cn38(
2871
+ className: cn41(
3279
2872
  "flex flex-col",
3280
2873
  gapSpace6[space],
3281
2874
  alignX && ((_b = (_a = alignment3) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
@@ -3289,15 +2882,15 @@ var Stack = ({
3289
2882
  };
3290
2883
 
3291
2884
  // src/Switch/Switch.tsx
3292
- import { forwardRef as forwardRef18 } from "react";
2885
+ import { forwardRef as forwardRef20 } from "react";
3293
2886
  import { Switch } from "react-aria-components";
3294
2887
  import {
3295
- cn as cn39,
2888
+ cn as cn42,
3296
2889
  width as twWidth4,
3297
- useClassNames as useClassNames39
2890
+ useClassNames as useClassNames44
3298
2891
  } from "@marigold/system";
3299
- import { jsx as jsx73, jsxs as jsxs31 } from "react/jsx-runtime";
3300
- var _Switch = forwardRef18(
2892
+ import { jsx as jsx74, jsxs as jsxs32 } from "react/jsx-runtime";
2893
+ var _Switch = forwardRef20(
3301
2894
  ({
3302
2895
  variant,
3303
2896
  size,
@@ -3308,37 +2901,37 @@ var _Switch = forwardRef18(
3308
2901
  readOnly,
3309
2902
  ...rest
3310
2903
  }, ref) => {
3311
- const classNames2 = useClassNames39({ component: "Switch", size, variant });
2904
+ const classNames2 = useClassNames44({ component: "Switch", size, variant });
3312
2905
  const props = {
3313
2906
  isDisabled: disabled,
3314
2907
  isReadOnly: readOnly,
3315
2908
  isSelected: selected,
3316
2909
  ...rest
3317
2910
  };
3318
- return /* @__PURE__ */ jsxs31(
2911
+ return /* @__PURE__ */ jsxs32(
3319
2912
  Switch,
3320
2913
  {
3321
2914
  ...props,
3322
2915
  ref,
3323
- className: cn39(
2916
+ className: cn42(
3324
2917
  twWidth4[width],
3325
2918
  "group/switch",
3326
2919
  "flex items-center justify-between gap-[1ch]",
3327
2920
  classNames2.container
3328
2921
  ),
3329
2922
  children: [
3330
- /* @__PURE__ */ jsx73(_Label, { elementType: "span", children }),
3331
- /* @__PURE__ */ jsx73("div", { className: "relative", children: /* @__PURE__ */ jsx73(
2923
+ /* @__PURE__ */ jsx74(_Label, { elementType: "span", children }),
2924
+ /* @__PURE__ */ jsx74("div", { className: "relative", children: /* @__PURE__ */ jsx74(
3332
2925
  "div",
3333
2926
  {
3334
- className: cn39(
2927
+ className: cn42(
3335
2928
  "h-6 w-12 basis-12 rounded-3xl group-disabled/switch:cursor-not-allowed ",
3336
2929
  classNames2.track
3337
2930
  ),
3338
- children: /* @__PURE__ */ jsx73(
2931
+ children: /* @__PURE__ */ jsx74(
3339
2932
  "div",
3340
2933
  {
3341
- className: cn39(
2934
+ className: cn42(
3342
2935
  "h-[22px] w-[22px]",
3343
2936
  "cubic-bezier(.7,0,.3,1)",
3344
2937
  "absolute left-0 top-px",
@@ -3357,7 +2950,7 @@ var _Switch = forwardRef18(
3357
2950
  );
3358
2951
 
3359
2952
  // src/Table/Table.tsx
3360
- import { useRef as useRef24 } from "react";
2953
+ import { useRef as useRef15 } from "react";
3361
2954
  import { useTable } from "@react-aria/table";
3362
2955
  import {
3363
2956
  TableBody as Body2,
@@ -3367,30 +2960,30 @@ import {
3367
2960
  Row,
3368
2961
  useTableState
3369
2962
  } from "@react-stately/table";
3370
- import { cn as cn44, useClassNames as useClassNames41 } from "@marigold/system";
2963
+ import { cn as cn47, useClassNames as useClassNames46 } from "@marigold/system";
3371
2964
 
3372
2965
  // src/Table/Context.tsx
3373
- import { createContext as createContext6, useContext as useContext7 } from "react";
3374
- var TableContext = createContext6({});
3375
- var useTableContext = () => useContext7(TableContext);
2966
+ import { createContext as createContext5, useContext as useContext10 } from "react";
2967
+ var TableContext = createContext5({});
2968
+ var useTableContext = () => useContext10(TableContext);
3376
2969
 
3377
2970
  // src/Table/TableBody.tsx
3378
2971
  import { useTableRowGroup } from "@react-aria/table";
3379
- import { jsx as jsx74 } from "react/jsx-runtime";
2972
+ import { jsx as jsx75 } from "react/jsx-runtime";
3380
2973
  var TableBody = ({ children }) => {
3381
2974
  const { rowGroupProps } = useTableRowGroup();
3382
- return /* @__PURE__ */ jsx74("tbody", { ...rowGroupProps, children });
2975
+ return /* @__PURE__ */ jsx75("tbody", { ...rowGroupProps, children });
3383
2976
  };
3384
2977
 
3385
2978
  // src/Table/TableCell.tsx
3386
- import { useRef as useRef18 } from "react";
3387
- import { useFocusRing as useFocusRing7 } from "@react-aria/focus";
2979
+ import { useRef as useRef9 } from "react";
2980
+ import { useFocusRing as useFocusRing4 } from "@react-aria/focus";
3388
2981
  import { useTableCell } from "@react-aria/table";
3389
- import { mergeProps as mergeProps11 } from "@react-aria/utils";
3390
- import { useStateProps as useStateProps11 } from "@marigold/system";
3391
- import { jsx as jsx75 } from "react/jsx-runtime";
2982
+ import { mergeProps as mergeProps6 } from "@react-aria/utils";
2983
+ import { useStateProps as useStateProps5 } from "@marigold/system";
2984
+ import { jsx as jsx76 } from "react/jsx-runtime";
3392
2985
  var TableCell = ({ cell }) => {
3393
- const ref = useRef18(null);
2986
+ const ref = useRef9(null);
3394
2987
  const { interactive, state, classNames: classNames2 } = useTableContext();
3395
2988
  const disabled = state.disabledKeys.has(cell.parentKey);
3396
2989
  const { gridCellProps } = useTableCell(
@@ -3409,14 +3002,14 @@ var TableCell = ({ cell }) => {
3409
3002
  onMouseDown: (e) => e.stopPropagation(),
3410
3003
  onPointerDown: (e) => e.stopPropagation()
3411
3004
  };
3412
- const { focusProps, isFocusVisible } = useFocusRing7();
3413
- const stateProps = useStateProps11({ disabled, focusVisible: isFocusVisible });
3414
- return /* @__PURE__ */ jsx75(
3005
+ const { focusProps, isFocusVisible } = useFocusRing4();
3006
+ const stateProps = useStateProps5({ disabled, focusVisible: isFocusVisible });
3007
+ return /* @__PURE__ */ jsx76(
3415
3008
  "td",
3416
3009
  {
3417
3010
  ref,
3418
3011
  className: classNames2 == null ? void 0 : classNames2.cell,
3419
- ...mergeProps11(cellProps, focusProps),
3012
+ ...mergeProps6(cellProps, focusProps),
3420
3013
  ...stateProps,
3421
3014
  children: cell.rendered
3422
3015
  }
@@ -3424,11 +3017,11 @@ var TableCell = ({ cell }) => {
3424
3017
  };
3425
3018
 
3426
3019
  // src/Table/TableCheckboxCell.tsx
3427
- import { useRef as useRef19 } from "react";
3428
- import { useFocusRing as useFocusRing8 } from "@react-aria/focus";
3020
+ import { useRef as useRef10 } from "react";
3021
+ import { useFocusRing as useFocusRing5 } from "@react-aria/focus";
3429
3022
  import { useTableCell as useTableCell2, useTableSelectionCheckbox } from "@react-aria/table";
3430
- import { mergeProps as mergeProps12 } from "@react-aria/utils";
3431
- import { cn as cn40, useStateProps as useStateProps12 } from "@marigold/system";
3023
+ import { mergeProps as mergeProps7 } from "@react-aria/utils";
3024
+ import { cn as cn43, useStateProps as useStateProps6 } from "@marigold/system";
3432
3025
 
3433
3026
  // src/Table/utils.ts
3434
3027
  var mapCheckboxProps = ({
@@ -3451,9 +3044,9 @@ var mapCheckboxProps = ({
3451
3044
  };
3452
3045
 
3453
3046
  // src/Table/TableCheckboxCell.tsx
3454
- import { jsx as jsx76 } from "react/jsx-runtime";
3047
+ import { jsx as jsx77 } from "react/jsx-runtime";
3455
3048
  var TableCheckboxCell = ({ cell }) => {
3456
- const ref = useRef19(null);
3049
+ const ref = useRef10(null);
3457
3050
  const { state, classNames: classNames2 } = useTableContext();
3458
3051
  const disabled = state.disabledKeys.has(cell.parentKey);
3459
3052
  const { gridCellProps } = useTableCell2(
@@ -3466,36 +3059,36 @@ var TableCheckboxCell = ({ cell }) => {
3466
3059
  const { checkboxProps } = mapCheckboxProps(
3467
3060
  useTableSelectionCheckbox({ key: cell.parentKey }, state)
3468
3061
  );
3469
- const { focusProps, isFocusVisible } = useFocusRing8();
3470
- const stateProps = useStateProps12({ disabled, focusVisible: isFocusVisible });
3471
- return /* @__PURE__ */ jsx76(
3062
+ const { focusProps, isFocusVisible } = useFocusRing5();
3063
+ const stateProps = useStateProps6({ disabled, focusVisible: isFocusVisible });
3064
+ return /* @__PURE__ */ jsx77(
3472
3065
  "td",
3473
3066
  {
3474
3067
  ref,
3475
- className: cn40("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
3476
- ...mergeProps12(gridCellProps, focusProps),
3068
+ className: cn43("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
3069
+ ...mergeProps7(gridCellProps, focusProps),
3477
3070
  ...stateProps,
3478
- children: /* @__PURE__ */ jsx76(_Checkbox, { ...checkboxProps })
3071
+ children: /* @__PURE__ */ jsx77(_Checkbox, { ...checkboxProps })
3479
3072
  }
3480
3073
  );
3481
3074
  };
3482
3075
 
3483
3076
  // src/Table/TableColumnHeader.tsx
3484
- import { useRef as useRef20 } from "react";
3485
- import { useFocusRing as useFocusRing9 } from "@react-aria/focus";
3486
- import { useHover as useHover4 } from "@react-aria/interactions";
3077
+ import { useRef as useRef11 } from "react";
3078
+ import { useFocusRing as useFocusRing6 } from "@react-aria/focus";
3079
+ import { useHover as useHover2 } from "@react-aria/interactions";
3487
3080
  import { useTableColumnHeader } from "@react-aria/table";
3488
- import { mergeProps as mergeProps13 } from "@react-aria/utils";
3081
+ import { mergeProps as mergeProps8 } from "@react-aria/utils";
3489
3082
  import { SortDown, SortUp } from "@marigold/icons";
3490
- import { cn as cn41, useStateProps as useStateProps13 } from "@marigold/system";
3083
+ import { cn as cn44, useStateProps as useStateProps7 } from "@marigold/system";
3491
3084
  import { width as twWidth5 } from "@marigold/system";
3492
- import { jsx as jsx77, jsxs as jsxs32 } from "react/jsx-runtime";
3085
+ import { jsx as jsx78, jsxs as jsxs33 } from "react/jsx-runtime";
3493
3086
  var TableColumnHeader = ({
3494
3087
  column,
3495
3088
  width = "auto"
3496
3089
  }) => {
3497
3090
  var _a, _b;
3498
- const ref = useRef20(null);
3091
+ const ref = useRef11(null);
3499
3092
  const { state, classNames: classNames2 } = useTableContext();
3500
3093
  const { columnHeaderProps } = useTableColumnHeader(
3501
3094
  {
@@ -3504,23 +3097,23 @@ var TableColumnHeader = ({
3504
3097
  state,
3505
3098
  ref
3506
3099
  );
3507
- const { hoverProps, isHovered } = useHover4({});
3508
- const { focusProps, isFocusVisible } = useFocusRing9();
3509
- const stateProps = useStateProps13({
3100
+ const { hoverProps, isHovered } = useHover2({});
3101
+ const { focusProps, isFocusVisible } = useFocusRing6();
3102
+ const stateProps = useStateProps7({
3510
3103
  hover: isHovered,
3511
3104
  focusVisible: isFocusVisible
3512
3105
  });
3513
- return /* @__PURE__ */ jsxs32(
3106
+ return /* @__PURE__ */ jsxs33(
3514
3107
  "th",
3515
3108
  {
3516
3109
  colSpan: column.colspan,
3517
3110
  ref,
3518
- className: cn41("cursor-default", twWidth5[width], classNames2 == null ? void 0 : classNames2.header),
3519
- ...mergeProps13(columnHeaderProps, hoverProps, focusProps),
3111
+ className: cn44("cursor-default", twWidth5[width], classNames2 == null ? void 0 : classNames2.header),
3112
+ ...mergeProps8(columnHeaderProps, hoverProps, focusProps),
3520
3113
  ...stateProps,
3521
3114
  children: [
3522
3115
  column.rendered,
3523
- column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ jsx77(SortUp, { className: "inline-block" }) : /* @__PURE__ */ jsx77(SortDown, { className: "inline-block" }) : /* @__PURE__ */ jsx77(SortDown, { className: "inline-block" }))
3116
+ column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ jsx78(SortUp, { className: "inline-block" }) : /* @__PURE__ */ jsx78(SortDown, { className: "inline-block" }) : /* @__PURE__ */ jsx78(SortDown, { className: "inline-block" }))
3524
3117
  ]
3525
3118
  }
3526
3119
  );
@@ -3528,36 +3121,36 @@ var TableColumnHeader = ({
3528
3121
 
3529
3122
  // src/Table/TableHeader.tsx
3530
3123
  import { useTableRowGroup as useTableRowGroup2 } from "@react-aria/table";
3531
- import { jsx as jsx78 } from "react/jsx-runtime";
3124
+ import { jsx as jsx79 } from "react/jsx-runtime";
3532
3125
  var TableHeader = ({ children }) => {
3533
3126
  const { rowGroupProps } = useTableRowGroup2();
3534
- return /* @__PURE__ */ jsx78("thead", { ...rowGroupProps, children });
3127
+ return /* @__PURE__ */ jsx79("thead", { ...rowGroupProps, children });
3535
3128
  };
3536
3129
 
3537
3130
  // src/Table/TableHeaderRow.tsx
3538
- import { useRef as useRef21 } from "react";
3131
+ import { useRef as useRef12 } from "react";
3539
3132
  import { useTableHeaderRow } from "@react-aria/table";
3540
- import { jsx as jsx79 } from "react/jsx-runtime";
3133
+ import { jsx as jsx80 } from "react/jsx-runtime";
3541
3134
  var TableHeaderRow = ({ item, children }) => {
3542
3135
  const { state } = useTableContext();
3543
- const ref = useRef21(null);
3136
+ const ref = useRef12(null);
3544
3137
  const { rowProps } = useTableHeaderRow({ node: item }, state, ref);
3545
- return /* @__PURE__ */ jsx79("tr", { ...rowProps, ref, children });
3138
+ return /* @__PURE__ */ jsx80("tr", { ...rowProps, ref, children });
3546
3139
  };
3547
3140
 
3548
3141
  // src/Table/TableRow.tsx
3549
- import { useRef as useRef22 } from "react";
3550
- import { useFocusRing as useFocusRing10 } from "@react-aria/focus";
3551
- import { useHover as useHover5 } from "@react-aria/interactions";
3142
+ import { useRef as useRef13 } from "react";
3143
+ import { useFocusRing as useFocusRing7 } from "@react-aria/focus";
3144
+ import { useHover as useHover3 } from "@react-aria/interactions";
3552
3145
  import { useTableRow } from "@react-aria/table";
3553
- import { mergeProps as mergeProps14 } from "@react-aria/utils";
3554
- import { cn as cn42, useClassNames as useClassNames40, useStateProps as useStateProps14 } from "@marigold/system";
3555
- import { jsx as jsx80 } from "react/jsx-runtime";
3146
+ import { mergeProps as mergeProps9 } from "@react-aria/utils";
3147
+ import { cn as cn45, useClassNames as useClassNames45, useStateProps as useStateProps8 } from "@marigold/system";
3148
+ import { jsx as jsx81 } from "react/jsx-runtime";
3556
3149
  var TableRow = ({ children, row }) => {
3557
- const ref = useRef22(null);
3150
+ const ref = useRef13(null);
3558
3151
  const { interactive, state, ...ctx } = useTableContext();
3559
3152
  const { variant, size } = row.props;
3560
- const classNames2 = useClassNames40({
3153
+ const classNames2 = useClassNames45({
3561
3154
  component: "Table",
3562
3155
  variant: variant || ctx.variant,
3563
3156
  size: size || ctx.size
@@ -3571,28 +3164,28 @@ var TableRow = ({ children, row }) => {
3571
3164
  );
3572
3165
  const disabled = state.disabledKeys.has(row.key);
3573
3166
  const selected = state.selectionManager.isSelected(row.key);
3574
- const { focusProps, isFocusVisible } = useFocusRing10({ within: true });
3575
- const { hoverProps, isHovered } = useHover5({
3167
+ const { focusProps, isFocusVisible } = useFocusRing7({ within: true });
3168
+ const { hoverProps, isHovered } = useHover3({
3576
3169
  isDisabled: disabled || !interactive
3577
3170
  });
3578
- const stateProps = useStateProps14({
3171
+ const stateProps = useStateProps8({
3579
3172
  disabled,
3580
3173
  selected,
3581
3174
  hover: isHovered,
3582
3175
  focusVisible: isFocusVisible,
3583
3176
  active: isPressed
3584
3177
  });
3585
- return /* @__PURE__ */ jsx80(
3178
+ return /* @__PURE__ */ jsx81(
3586
3179
  "tr",
3587
3180
  {
3588
3181
  ref,
3589
- className: cn42(
3182
+ className: cn45(
3590
3183
  [
3591
3184
  !interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"
3592
3185
  ],
3593
3186
  classNames2 == null ? void 0 : classNames2.row
3594
3187
  ),
3595
- ...mergeProps14(rowProps, focusProps, hoverProps),
3188
+ ...mergeProps9(rowProps, focusProps, hoverProps),
3596
3189
  ...stateProps,
3597
3190
  children
3598
3191
  }
@@ -3600,25 +3193,25 @@ var TableRow = ({ children, row }) => {
3600
3193
  };
3601
3194
 
3602
3195
  // src/Table/TableSelectAllCell.tsx
3603
- import { useRef as useRef23 } from "react";
3604
- import { useFocusRing as useFocusRing11 } from "@react-aria/focus";
3605
- import { useHover as useHover6 } from "@react-aria/interactions";
3196
+ import { useRef as useRef14 } from "react";
3197
+ import { useFocusRing as useFocusRing8 } from "@react-aria/focus";
3198
+ import { useHover as useHover4 } from "@react-aria/interactions";
3606
3199
  import {
3607
3200
  useTableColumnHeader as useTableColumnHeader2,
3608
3201
  useTableSelectAllCheckbox
3609
3202
  } from "@react-aria/table";
3610
- import { mergeProps as mergeProps15 } from "@react-aria/utils";
3203
+ import { mergeProps as mergeProps10 } from "@react-aria/utils";
3611
3204
  import {
3612
- cn as cn43,
3205
+ cn as cn46,
3613
3206
  width as twWidth6,
3614
- useStateProps as useStateProps15
3207
+ useStateProps as useStateProps9
3615
3208
  } from "@marigold/system";
3616
- import { jsx as jsx81 } from "react/jsx-runtime";
3209
+ import { jsx as jsx82 } from "react/jsx-runtime";
3617
3210
  var TableSelectAllCell = ({
3618
3211
  column,
3619
3212
  width = "auto"
3620
3213
  }) => {
3621
- const ref = useRef23(null);
3214
+ const ref = useRef14(null);
3622
3215
  const { state, classNames: classNames2 } = useTableContext();
3623
3216
  const { columnHeaderProps } = useTableColumnHeader2(
3624
3217
  {
@@ -3628,30 +3221,30 @@ var TableSelectAllCell = ({
3628
3221
  ref
3629
3222
  );
3630
3223
  const { checkboxProps } = mapCheckboxProps(useTableSelectAllCheckbox(state));
3631
- const { hoverProps, isHovered } = useHover6({});
3632
- const { focusProps, isFocusVisible } = useFocusRing11();
3633
- const stateProps = useStateProps15({
3224
+ const { hoverProps, isHovered } = useHover4({});
3225
+ const { focusProps, isFocusVisible } = useFocusRing8();
3226
+ const stateProps = useStateProps9({
3634
3227
  hover: isHovered,
3635
3228
  focusVisible: isFocusVisible
3636
3229
  });
3637
- return /* @__PURE__ */ jsx81(
3230
+ return /* @__PURE__ */ jsx82(
3638
3231
  "th",
3639
3232
  {
3640
3233
  ref,
3641
- className: cn43(
3234
+ className: cn46(
3642
3235
  twWidth6[width],
3643
3236
  ["text-center align-middle leading-none"],
3644
3237
  classNames2 == null ? void 0 : classNames2.header
3645
3238
  ),
3646
- ...mergeProps15(columnHeaderProps, hoverProps, focusProps),
3239
+ ...mergeProps10(columnHeaderProps, hoverProps, focusProps),
3647
3240
  ...stateProps,
3648
- children: /* @__PURE__ */ jsx81(_Checkbox, { ...checkboxProps })
3241
+ children: /* @__PURE__ */ jsx82(_Checkbox, { ...checkboxProps })
3649
3242
  }
3650
3243
  );
3651
3244
  };
3652
3245
 
3653
3246
  // src/Table/Table.tsx
3654
- import { jsx as jsx82, jsxs as jsxs33 } from "react/jsx-runtime";
3247
+ import { jsx as jsx83, jsxs as jsxs34 } from "react/jsx-runtime";
3655
3248
  var Table = ({
3656
3249
  variant,
3657
3250
  size,
@@ -3660,7 +3253,7 @@ var Table = ({
3660
3253
  ...props
3661
3254
  }) => {
3662
3255
  const interactive = selectionMode !== "none";
3663
- const tableRef = useRef24(null);
3256
+ const tableRef = useRef15(null);
3664
3257
  const state = useTableState({
3665
3258
  ...props,
3666
3259
  selectionMode,
@@ -3668,21 +3261,21 @@ var Table = ({
3668
3261
  props.selectionBehavior !== "replace"
3669
3262
  });
3670
3263
  const { gridProps } = useTable(props, state, tableRef);
3671
- const classNames2 = useClassNames41({
3264
+ const classNames2 = useClassNames46({
3672
3265
  component: "Table",
3673
3266
  variant,
3674
3267
  size
3675
3268
  });
3676
3269
  const { collection } = state;
3677
- return /* @__PURE__ */ jsx82(
3270
+ return /* @__PURE__ */ jsx83(
3678
3271
  TableContext.Provider,
3679
3272
  {
3680
3273
  value: { state, interactive, classNames: classNames2, variant, size },
3681
- children: /* @__PURE__ */ jsxs33(
3274
+ children: /* @__PURE__ */ jsxs34(
3682
3275
  "table",
3683
3276
  {
3684
3277
  ref: tableRef,
3685
- className: cn44(
3278
+ className: cn47(
3686
3279
  "group/table",
3687
3280
  "border-collapse overflow-auto whitespace-nowrap",
3688
3281
  stretch ? "table w-full" : "block",
@@ -3690,17 +3283,17 @@ var Table = ({
3690
3283
  ),
3691
3284
  ...gridProps,
3692
3285
  children: [
3693
- /* @__PURE__ */ jsx82(TableHeader, { children: collection.headerRows.map((headerRow) => /* @__PURE__ */ jsx82(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
3286
+ /* @__PURE__ */ jsx83(TableHeader, { children: collection.headerRows.map((headerRow) => /* @__PURE__ */ jsx83(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
3694
3287
  (column) => {
3695
3288
  var _a, _b, _c;
3696
- return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx82(
3289
+ return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx83(
3697
3290
  TableSelectAllCell,
3698
3291
  {
3699
3292
  width: (_b = column.props) == null ? void 0 : _b.width,
3700
3293
  column
3701
3294
  },
3702
3295
  column.key
3703
- ) : /* @__PURE__ */ jsx82(
3296
+ ) : /* @__PURE__ */ jsx83(
3704
3297
  TableColumnHeader,
3705
3298
  {
3706
3299
  width: (_c = column.props) == null ? void 0 : _c.width,
@@ -3710,12 +3303,12 @@ var Table = ({
3710
3303
  );
3711
3304
  }
3712
3305
  ) }, headerRow.key)) }),
3713
- /* @__PURE__ */ jsxs33(TableBody, { children: [
3306
+ /* @__PURE__ */ jsxs34(TableBody, { children: [
3714
3307
  ...collection.rows.map(
3715
- (row) => row.type === "item" && /* @__PURE__ */ jsx82(TableRow, { row, children: [...collection.getChildren(row.key)].map(
3308
+ (row) => row.type === "item" && /* @__PURE__ */ jsx83(TableRow, { row, children: [...collection.getChildren(row.key)].map(
3716
3309
  (cell) => {
3717
3310
  var _a;
3718
- return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx82(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ jsx82(TableCell, { cell }, cell.key);
3311
+ return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx83(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ jsx83(TableCell, { cell }, cell.key);
3719
3312
  }
3720
3313
  ) }, row.key)
3721
3314
  )
@@ -3734,7 +3327,7 @@ Table.Row = Row;
3734
3327
 
3735
3328
  // src/Text/Text.tsx
3736
3329
  import {
3737
- cn as cn45,
3330
+ cn as cn48,
3738
3331
  createVar as createVar9,
3739
3332
  cursorStyle,
3740
3333
  fontWeight,
@@ -3742,10 +3335,10 @@ import {
3742
3335
  textAlign as textAlign2,
3743
3336
  textSize,
3744
3337
  textStyle,
3745
- useClassNames as useClassNames42,
3746
- useTheme as useTheme6
3338
+ useClassNames as useClassNames47,
3339
+ useTheme as useTheme7
3747
3340
  } from "@marigold/system";
3748
- import { jsx as jsx83 } from "react/jsx-runtime";
3341
+ import { jsx as jsx84 } from "react/jsx-runtime";
3749
3342
  var Text2 = ({
3750
3343
  variant,
3751
3344
  size,
@@ -3758,17 +3351,17 @@ var Text2 = ({
3758
3351
  children,
3759
3352
  ...props
3760
3353
  }) => {
3761
- const theme = useTheme6();
3762
- const classNames2 = useClassNames42({
3354
+ const theme = useTheme7();
3355
+ const classNames2 = useClassNames47({
3763
3356
  component: "Text",
3764
3357
  variant,
3765
3358
  size
3766
3359
  });
3767
- return /* @__PURE__ */ jsx83(
3360
+ return /* @__PURE__ */ jsx84(
3768
3361
  "p",
3769
3362
  {
3770
3363
  ...props,
3771
- className: cn45(
3364
+ className: cn48(
3772
3365
  classNames2,
3773
3366
  "text-[--color] outline-[--outline]",
3774
3367
  fontStyle && textStyle[fontStyle],
@@ -3791,11 +3384,11 @@ var Text2 = ({
3791
3384
  };
3792
3385
 
3793
3386
  // src/TextArea/TextArea.tsx
3794
- import { forwardRef as forwardRef19 } from "react";
3387
+ import { forwardRef as forwardRef21 } from "react";
3795
3388
  import { TextArea, TextField } from "react-aria-components";
3796
- import { useClassNames as useClassNames43 } from "@marigold/system";
3797
- import { jsx as jsx84 } from "react/jsx-runtime";
3798
- var _TextArea = forwardRef19(
3389
+ import { useClassNames as useClassNames48 } from "@marigold/system";
3390
+ import { jsx as jsx85 } from "react/jsx-runtime";
3391
+ var _TextArea = forwardRef21(
3799
3392
  ({
3800
3393
  variant,
3801
3394
  size,
@@ -3806,7 +3399,7 @@ var _TextArea = forwardRef19(
3806
3399
  rows,
3807
3400
  ...rest
3808
3401
  }, ref) => {
3809
- const classNames2 = useClassNames43({ component: "TextArea", variant, size });
3402
+ const classNames2 = useClassNames48({ component: "TextArea", variant, size });
3810
3403
  const props = {
3811
3404
  isDisabled: disabled,
3812
3405
  isReadOnly: readOnly,
@@ -3814,15 +3407,15 @@ var _TextArea = forwardRef19(
3814
3407
  isRequired: required,
3815
3408
  ...rest
3816
3409
  };
3817
- return /* @__PURE__ */ jsx84(FieldBase2, { as: TextField, ...props, variant, size, children: /* @__PURE__ */ jsx84(TextArea, { className: classNames2, ref, rows }) });
3410
+ return /* @__PURE__ */ jsx85(FieldBase, { as: TextField, ...props, variant, size, children: /* @__PURE__ */ jsx85(TextArea, { className: classNames2, ref, rows }) });
3818
3411
  }
3819
3412
  );
3820
3413
 
3821
3414
  // src/TextField/TextField.tsx
3822
- import { forwardRef as forwardRef20 } from "react";
3415
+ import { forwardRef as forwardRef22 } from "react";
3823
3416
  import { TextField as TextField2 } from "react-aria-components";
3824
- import { jsx as jsx85 } from "react/jsx-runtime";
3825
- var _TextField = forwardRef20(
3417
+ import { jsx as jsx86 } from "react/jsx-runtime";
3418
+ var _TextField = forwardRef22(
3826
3419
  ({
3827
3420
  variant,
3828
3421
  size,
@@ -3839,13 +3432,13 @@ var _TextField = forwardRef20(
3839
3432
  isRequired: required,
3840
3433
  ...rest
3841
3434
  };
3842
- return /* @__PURE__ */ jsx85(FieldBase2, { as: TextField2, ...props, children: /* @__PURE__ */ jsx85(_Input, { ref }) });
3435
+ return /* @__PURE__ */ jsx86(FieldBase, { as: TextField2, ...props, children: /* @__PURE__ */ jsx86(_Input, { ref }) });
3843
3436
  }
3844
3437
  );
3845
3438
 
3846
3439
  // src/Tiles/Tiles.tsx
3847
- import { cn as cn46, createVar as createVar10, gapSpace as gapSpace7 } from "@marigold/system";
3848
- import { jsx as jsx86 } from "react/jsx-runtime";
3440
+ import { cn as cn49, createVar as createVar10, gapSpace as gapSpace7 } from "@marigold/system";
3441
+ import { jsx as jsx87 } from "react/jsx-runtime";
3849
3442
  var Tiles = ({
3850
3443
  space = 0,
3851
3444
  stretch = false,
@@ -3858,11 +3451,11 @@ var Tiles = ({
3858
3451
  if (stretch) {
3859
3452
  column = `minmax(${column}, 1fr)`;
3860
3453
  }
3861
- return /* @__PURE__ */ jsx86(
3454
+ return /* @__PURE__ */ jsx87(
3862
3455
  "div",
3863
3456
  {
3864
3457
  ...props,
3865
- className: cn46(
3458
+ className: cn49(
3866
3459
  "grid",
3867
3460
  gapSpace7[space],
3868
3461
  "grid-cols-[repeat(auto-fit,var(--column))]",
@@ -3876,11 +3469,11 @@ var Tiles = ({
3876
3469
 
3877
3470
  // src/Tooltip/Tooltip.tsx
3878
3471
  import { OverlayArrow, Tooltip } from "react-aria-components";
3879
- import { cn as cn47, useClassNames as useClassNames44 } from "@marigold/system";
3472
+ import { cn as cn50, useClassNames as useClassNames49 } from "@marigold/system";
3880
3473
 
3881
3474
  // src/Tooltip/TooltipTrigger.tsx
3882
3475
  import { TooltipTrigger } from "react-aria-components";
3883
- import { jsx as jsx87 } from "react/jsx-runtime";
3476
+ import { jsx as jsx88 } from "react/jsx-runtime";
3884
3477
  var _TooltipTrigger = ({
3885
3478
  delay = 1e3,
3886
3479
  children,
@@ -3894,32 +3487,32 @@ var _TooltipTrigger = ({
3894
3487
  isOpen: open,
3895
3488
  delay
3896
3489
  };
3897
- return /* @__PURE__ */ jsx87(TooltipTrigger, { ...props, children });
3490
+ return /* @__PURE__ */ jsx88(TooltipTrigger, { ...props, children });
3898
3491
  };
3899
3492
 
3900
3493
  // src/Tooltip/Tooltip.tsx
3901
- import { jsx as jsx88, jsxs as jsxs34 } from "react/jsx-runtime";
3494
+ import { jsx as jsx89, jsxs as jsxs35 } from "react/jsx-runtime";
3902
3495
  var _Tooltip = ({ children, variant, size, open, ...rest }) => {
3903
3496
  const props = {
3904
3497
  ...rest,
3905
3498
  isOpen: open
3906
3499
  };
3907
- const classNames2 = useClassNames44({ component: "Tooltip", variant, size });
3908
- return /* @__PURE__ */ jsxs34(Tooltip, { ...props, className: cn47("group/tooltip", classNames2.container), children: [
3909
- /* @__PURE__ */ jsx88(OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ jsx88("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx88("path", { d: "M0 0 L4 4 L8 0" }) }) }),
3500
+ const classNames2 = useClassNames49({ component: "Tooltip", variant, size });
3501
+ return /* @__PURE__ */ jsxs35(Tooltip, { ...props, className: cn50("group/tooltip", classNames2.container), children: [
3502
+ /* @__PURE__ */ jsx89(OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ jsx89("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx89("path", { d: "M0 0 L4 4 L8 0" }) }) }),
3910
3503
  children
3911
3504
  ] });
3912
3505
  };
3913
3506
  _Tooltip.Trigger = _TooltipTrigger;
3914
3507
 
3915
3508
  // src/TagGroup/Tag.tsx
3916
- import { Button as Button3, Tag } from "react-aria-components";
3917
- import { cn as cn48, useClassNames as useClassNames46 } from "@marigold/system";
3509
+ import { Button as Button5, Tag } from "react-aria-components";
3510
+ import { cn as cn51, useClassNames as useClassNames51 } from "@marigold/system";
3918
3511
 
3919
3512
  // src/TagGroup/TagGroup.tsx
3920
3513
  import { TagGroup, TagList } from "react-aria-components";
3921
- import { useClassNames as useClassNames45 } from "@marigold/system";
3922
- import { jsx as jsx89 } from "react/jsx-runtime";
3514
+ import { useClassNames as useClassNames50 } from "@marigold/system";
3515
+ import { jsx as jsx90 } from "react/jsx-runtime";
3923
3516
  var _TagGroup = ({
3924
3517
  width,
3925
3518
  items,
@@ -3928,24 +3521,24 @@ var _TagGroup = ({
3928
3521
  size,
3929
3522
  ...rest
3930
3523
  }) => {
3931
- const classNames2 = useClassNames45({ component: "Tag", variant, size });
3932
- return /* @__PURE__ */ jsx89(FieldBase2, { as: TagGroup, ...rest, children: /* @__PURE__ */ jsx89(TagList, { items, className: classNames2.listItems, children }) });
3524
+ const classNames2 = useClassNames50({ component: "Tag", variant, size });
3525
+ return /* @__PURE__ */ jsx90(FieldBase, { as: TagGroup, ...rest, children: /* @__PURE__ */ jsx90(TagList, { items, className: classNames2.listItems, children }) });
3933
3526
  };
3934
3527
 
3935
3528
  // src/TagGroup/Tag.tsx
3936
- import { Fragment as Fragment10, jsx as jsx90, jsxs as jsxs35 } from "react/jsx-runtime";
3529
+ import { Fragment as Fragment9, jsx as jsx91, jsxs as jsxs36 } from "react/jsx-runtime";
3937
3530
  var CloseButton2 = ({ className }) => {
3938
- return /* @__PURE__ */ jsx90(Button3, { slot: "remove", className, children: /* @__PURE__ */ jsx90("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx90("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" }) }) });
3531
+ return /* @__PURE__ */ jsx91(Button5, { slot: "remove", className, children: /* @__PURE__ */ jsx91("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx91("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" }) }) });
3939
3532
  };
3940
3533
  var _Tag = ({ variant, size, children, ...props }) => {
3941
3534
  let textValue = typeof children === "string" ? children : void 0;
3942
- const classNames2 = useClassNames46({ component: "Tag", variant, size });
3943
- return /* @__PURE__ */ jsx90(Tag, { textValue, ...props, className: classNames2.tag, children: ({ allowsRemoving }) => /* @__PURE__ */ jsxs35(Fragment10, { children: [
3535
+ const classNames2 = useClassNames51({ component: "Tag", variant, size });
3536
+ return /* @__PURE__ */ jsx91(Tag, { textValue, ...props, className: classNames2.tag, children: ({ allowsRemoving }) => /* @__PURE__ */ jsxs36(Fragment9, { children: [
3944
3537
  children,
3945
- allowsRemoving && /* @__PURE__ */ jsx90(
3538
+ allowsRemoving && /* @__PURE__ */ jsx91(
3946
3539
  CloseButton2,
3947
3540
  {
3948
- className: cn48("flex items-center", classNames2.closeButton)
3541
+ className: cn51("flex items-center", classNames2.closeButton)
3949
3542
  }
3950
3543
  )
3951
3544
  ] }) });
@@ -3956,10 +3549,10 @@ _Tag.Group = _TagGroup;
3956
3549
  import { VisuallyHidden } from "@react-aria/visually-hidden";
3957
3550
 
3958
3551
  // src/XLoader/XLoader.tsx
3959
- import { forwardRef as forwardRef21 } from "react";
3552
+ import { forwardRef as forwardRef23 } from "react";
3960
3553
  import { SVG as SVG6 } from "@marigold/system";
3961
- import { jsx as jsx91, jsxs as jsxs36 } from "react/jsx-runtime";
3962
- var XLoader = forwardRef21((props, ref) => /* @__PURE__ */ jsxs36(
3554
+ import { jsx as jsx92, jsxs as jsxs37 } from "react/jsx-runtime";
3555
+ var XLoader = forwardRef23((props, ref) => /* @__PURE__ */ jsxs37(
3963
3556
  SVG6,
3964
3557
  {
3965
3558
  id: "XLoader",
@@ -3969,13 +3562,13 @@ var XLoader = forwardRef21((props, ref) => /* @__PURE__ */ jsxs36(
3969
3562
  ...props,
3970
3563
  ...ref,
3971
3564
  children: [
3972
- /* @__PURE__ */ jsx91("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
3973
- /* @__PURE__ */ jsx91(
3565
+ /* @__PURE__ */ jsx92("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
3566
+ /* @__PURE__ */ jsx92(
3974
3567
  "path",
3975
3568
  {
3976
3569
  id: "XMLID_5_",
3977
3570
  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",
3978
- children: /* @__PURE__ */ jsx91(
3571
+ children: /* @__PURE__ */ jsx92(
3979
3572
  "animate",
3980
3573
  {
3981
3574
  attributeName: "opacity",
@@ -3988,12 +3581,12 @@ var XLoader = forwardRef21((props, ref) => /* @__PURE__ */ jsxs36(
3988
3581
  )
3989
3582
  }
3990
3583
  ),
3991
- /* @__PURE__ */ jsx91(
3584
+ /* @__PURE__ */ jsx92(
3992
3585
  "path",
3993
3586
  {
3994
3587
  id: "XMLID_18_",
3995
3588
  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",
3996
- children: /* @__PURE__ */ jsx91(
3589
+ children: /* @__PURE__ */ jsx92(
3997
3590
  "animate",
3998
3591
  {
3999
3592
  attributeName: "opacity",
@@ -4006,12 +3599,12 @@ var XLoader = forwardRef21((props, ref) => /* @__PURE__ */ jsxs36(
4006
3599
  )
4007
3600
  }
4008
3601
  ),
4009
- /* @__PURE__ */ jsx91(
3602
+ /* @__PURE__ */ jsx92(
4010
3603
  "path",
4011
3604
  {
4012
3605
  id: "XMLID_19_",
4013
3606
  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",
4014
- children: /* @__PURE__ */ jsx91(
3607
+ children: /* @__PURE__ */ jsx92(
4015
3608
  "animate",
4016
3609
  {
4017
3610
  attributeName: "opacity",
@@ -4024,12 +3617,12 @@ var XLoader = forwardRef21((props, ref) => /* @__PURE__ */ jsxs36(
4024
3617
  )
4025
3618
  }
4026
3619
  ),
4027
- /* @__PURE__ */ jsx91(
3620
+ /* @__PURE__ */ jsx92(
4028
3621
  "path",
4029
3622
  {
4030
3623
  id: "XMLID_20_",
4031
3624
  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",
4032
- children: /* @__PURE__ */ jsx91(
3625
+ children: /* @__PURE__ */ jsx92(
4033
3626
  "animate",
4034
3627
  {
4035
3628
  attributeName: "opacity",
@@ -4042,12 +3635,12 @@ var XLoader = forwardRef21((props, ref) => /* @__PURE__ */ jsxs36(
4042
3635
  )
4043
3636
  }
4044
3637
  ),
4045
- /* @__PURE__ */ jsx91(
3638
+ /* @__PURE__ */ jsx92(
4046
3639
  "path",
4047
3640
  {
4048
3641
  id: "XMLID_21_",
4049
3642
  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",
4050
- children: /* @__PURE__ */ jsx91(
3643
+ children: /* @__PURE__ */ jsx92(
4051
3644
  "animate",
4052
3645
  {
4053
3646
  attributeName: "opacity",
@@ -4060,12 +3653,12 @@ var XLoader = forwardRef21((props, ref) => /* @__PURE__ */ jsxs36(
4060
3653
  )
4061
3654
  }
4062
3655
  ),
4063
- /* @__PURE__ */ jsx91(
3656
+ /* @__PURE__ */ jsx92(
4064
3657
  "path",
4065
3658
  {
4066
3659
  id: "XMLID_22_",
4067
3660
  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",
4068
- children: /* @__PURE__ */ jsx91(
3661
+ children: /* @__PURE__ */ jsx92(
4069
3662
  "animate",
4070
3663
  {
4071
3664
  attributeName: "opacity",
@@ -4078,12 +3671,12 @@ var XLoader = forwardRef21((props, ref) => /* @__PURE__ */ jsxs36(
4078
3671
  )
4079
3672
  }
4080
3673
  ),
4081
- /* @__PURE__ */ jsx91(
3674
+ /* @__PURE__ */ jsx92(
4082
3675
  "path",
4083
3676
  {
4084
3677
  id: "XMLID_23_",
4085
3678
  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",
4086
- children: /* @__PURE__ */ jsx91(
3679
+ children: /* @__PURE__ */ jsx92(
4087
3680
  "animate",
4088
3681
  {
4089
3682
  attributeName: "opacity",
@@ -4096,12 +3689,12 @@ var XLoader = forwardRef21((props, ref) => /* @__PURE__ */ jsxs36(
4096
3689
  )
4097
3690
  }
4098
3691
  ),
4099
- /* @__PURE__ */ jsx91(
3692
+ /* @__PURE__ */ jsx92(
4100
3693
  "path",
4101
3694
  {
4102
3695
  id: "XMLID_24_",
4103
3696
  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",
4104
- children: /* @__PURE__ */ jsx91(
3697
+ children: /* @__PURE__ */ jsx92(
4105
3698
  "animate",
4106
3699
  {
4107
3700
  attributeName: "opacity",
@@ -4114,12 +3707,12 @@ var XLoader = forwardRef21((props, ref) => /* @__PURE__ */ jsxs36(
4114
3707
  )
4115
3708
  }
4116
3709
  ),
4117
- /* @__PURE__ */ jsx91(
3710
+ /* @__PURE__ */ jsx92(
4118
3711
  "path",
4119
3712
  {
4120
3713
  id: "XMLID_25_",
4121
3714
  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",
4122
- children: /* @__PURE__ */ jsx91(
3715
+ children: /* @__PURE__ */ jsx92(
4123
3716
  "animate",
4124
3717
  {
4125
3718
  attributeName: "opacity",
@@ -4132,12 +3725,12 @@ var XLoader = forwardRef21((props, ref) => /* @__PURE__ */ jsxs36(
4132
3725
  )
4133
3726
  }
4134
3727
  ),
4135
- /* @__PURE__ */ jsx91(
3728
+ /* @__PURE__ */ jsx92(
4136
3729
  "path",
4137
3730
  {
4138
3731
  id: "XMLID_26_",
4139
3732
  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",
4140
- children: /* @__PURE__ */ jsx91(
3733
+ children: /* @__PURE__ */ jsx92(
4141
3734
  "animate",
4142
3735
  {
4143
3736
  attributeName: "opacity",
@@ -4150,12 +3743,12 @@ var XLoader = forwardRef21((props, ref) => /* @__PURE__ */ jsxs36(
4150
3743
  )
4151
3744
  }
4152
3745
  ),
4153
- /* @__PURE__ */ jsx91(
3746
+ /* @__PURE__ */ jsx92(
4154
3747
  "path",
4155
3748
  {
4156
3749
  id: "XMLID_27_",
4157
3750
  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",
4158
- children: /* @__PURE__ */ jsx91(
3751
+ children: /* @__PURE__ */ jsx92(
4159
3752
  "animate",
4160
3753
  {
4161
3754
  attributeName: "opacity",
@@ -4174,24 +3767,24 @@ var XLoader = forwardRef21((props, ref) => /* @__PURE__ */ jsxs36(
4174
3767
 
4175
3768
  // src/Tabs/Tabs.tsx
4176
3769
  import { Tabs } from "react-aria-components";
4177
- import { useClassNames as useClassNames47 } from "@marigold/system";
3770
+ import { useClassNames as useClassNames52 } from "@marigold/system";
4178
3771
 
4179
3772
  // src/Tabs/Context.ts
4180
- import { createContext as createContext7, useContext as useContext8 } from "react";
4181
- var TabContext = createContext7({});
4182
- var useTabContext = () => useContext8(TabContext);
3773
+ import { createContext as createContext6, useContext as useContext11 } from "react";
3774
+ var TabContext = createContext6({});
3775
+ var useTabContext = () => useContext11(TabContext);
4183
3776
 
4184
3777
  // src/Tabs/Tab.tsx
4185
3778
  import { Tab } from "react-aria-components";
4186
- import { cn as cn49 } from "@marigold/system";
4187
- import { jsx as jsx92 } from "react/jsx-runtime";
3779
+ import { cn as cn52 } from "@marigold/system";
3780
+ import { jsx as jsx93 } from "react/jsx-runtime";
4188
3781
  var _Tab = (props) => {
4189
3782
  const { classNames: classNames2 } = useTabContext();
4190
- return /* @__PURE__ */ jsx92(
3783
+ return /* @__PURE__ */ jsx93(
4191
3784
  Tab,
4192
3785
  {
4193
3786
  ...props,
4194
- className: cn49(
3787
+ className: cn52(
4195
3788
  "flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
4196
3789
  classNames2.tab
4197
3790
  ),
@@ -4202,15 +3795,15 @@ var _Tab = (props) => {
4202
3795
 
4203
3796
  // src/Tabs/TabList.tsx
4204
3797
  import { TabList } from "react-aria-components";
4205
- import { cn as cn50, gapSpace as gapSpace8 } from "@marigold/system";
4206
- import { jsx as jsx93 } from "react/jsx-runtime";
3798
+ import { cn as cn53, gapSpace as gapSpace8 } from "@marigold/system";
3799
+ import { jsx as jsx94 } from "react/jsx-runtime";
4207
3800
  var _TabList = ({ space = 2, ...props }) => {
4208
3801
  const { classNames: classNames2 } = useTabContext();
4209
- return /* @__PURE__ */ jsx93(
3802
+ return /* @__PURE__ */ jsx94(
4210
3803
  TabList,
4211
3804
  {
4212
3805
  ...props,
4213
- className: cn50("flex", gapSpace8[space], classNames2.tabsList),
3806
+ className: cn53("flex", gapSpace8[space], classNames2.tabsList),
4214
3807
  children: props.children
4215
3808
  }
4216
3809
  );
@@ -4218,25 +3811,25 @@ var _TabList = ({ space = 2, ...props }) => {
4218
3811
 
4219
3812
  // src/Tabs/TabPanel.tsx
4220
3813
  import { TabPanel } from "react-aria-components";
4221
- import { jsx as jsx94 } from "react/jsx-runtime";
3814
+ import { jsx as jsx95 } from "react/jsx-runtime";
4222
3815
  var _TabPanel = (props) => {
4223
3816
  const { classNames: classNames2 } = useTabContext();
4224
- return /* @__PURE__ */ jsx94(TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
3817
+ return /* @__PURE__ */ jsx95(TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
4225
3818
  };
4226
3819
 
4227
3820
  // src/Tabs/Tabs.tsx
4228
- import { jsx as jsx95 } from "react/jsx-runtime";
3821
+ import { jsx as jsx96 } from "react/jsx-runtime";
4229
3822
  var _Tabs = ({ disabled, variant, size = "medium", ...rest }) => {
4230
3823
  const props = {
4231
3824
  isDisabled: disabled,
4232
3825
  ...rest
4233
3826
  };
4234
- const classNames2 = useClassNames47({
3827
+ const classNames2 = useClassNames52({
4235
3828
  component: "Tabs",
4236
3829
  size,
4237
3830
  variant
4238
3831
  });
4239
- return /* @__PURE__ */ jsx95(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx95(Tabs, { ...props, className: classNames2.container, children: props.children }) });
3832
+ return /* @__PURE__ */ jsx96(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx96(Tabs, { ...props, className: classNames2.container, children: props.children }) });
4240
3833
  };
4241
3834
  _Tabs.List = _TabList;
4242
3835
  _Tabs.TabPanel = _TabPanel;
@@ -4247,27 +3840,25 @@ export {
4247
3840
  ActionMenu,
4248
3841
  Aside,
4249
3842
  Aspect,
4250
- Autocomplete,
3843
+ _Autocomplete as Autocomplete,
4251
3844
  Badge,
4252
3845
  Body,
4253
3846
  Breakout,
4254
3847
  _Button as Button,
4255
- Calendar,
4256
- CalendarCell,
4257
- CalendarGrid,
3848
+ _Calendar as Calendar,
4258
3849
  Card,
4259
3850
  Center,
4260
3851
  _Checkbox as Checkbox,
4261
3852
  _CheckboxGroup as CheckboxGroup,
4262
3853
  CloseButton2 as CloseButton,
4263
3854
  Columns,
4264
- ComboBox,
3855
+ _ComboBox as ComboBox,
4265
3856
  Container,
4266
3857
  DateField,
4267
3858
  DatePicker,
4268
3859
  _Dialog as Dialog,
4269
3860
  _Divider as Divider,
4270
- FieldBase,
3861
+ FieldBase2 as FieldBase,
4271
3862
  FieldGroup,
4272
3863
  FieldGroupContext,
4273
3864
  Footer,
@@ -4275,22 +3866,22 @@ export {
4275
3866
  _Headline as Headline,
4276
3867
  Image,
4277
3868
  Inline,
4278
- Input,
3869
+ _Input as Input,
4279
3870
  Inset,
4280
3871
  _Label as Label,
4281
3872
  _Link as Link,
4282
3873
  List,
4283
3874
  MarigoldProvider,
4284
- Menu,
3875
+ _Menu as Menu,
4285
3876
  Message,
4286
3877
  _Modal as Modal,
4287
3878
  _NumberField as NumberField,
4288
3879
  Overlay,
4289
- Popover,
3880
+ Popover2 as Popover,
4290
3881
  _Radio as Radio,
4291
3882
  _RadioGroup as RadioGroup,
4292
3883
  _SearchField as SearchField,
4293
- Select,
3884
+ _Select as Select,
4294
3885
  _Slider as Slider,
4295
3886
  Split,
4296
3887
  Stack,
@@ -4309,8 +3900,9 @@ export {
4309
3900
  Underlay,
4310
3901
  VisuallyHidden,
4311
3902
  XLoader,
3903
+ _Calendar,
4312
3904
  useAsyncList,
4313
3905
  useFieldGroupContext,
4314
3906
  useListData,
4315
- useTheme5 as useTheme
3907
+ useTheme6 as useTheme
4316
3908
  };