@marigold/components 15.2.0 → 15.3.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.d.mts CHANGED
@@ -1,14 +1,14 @@
1
- import { Orientation, RefObject, AriaLabelingProps as AriaLabelingProps$1 } from '@react-types/shared';
1
+ import { Orientation, RefObject, AriaLabelingProps } from '@react-types/shared';
2
2
  export { Selection } from '@react-types/shared';
3
+ import RAC, { ValidationResult, Key, SlotProps, DialogProps as DialogProps$1, DateValue, UNSTABLE_ToastQueue, TagListProps, ProgressBarProps, TimeValue, BreadcrumbsProps as BreadcrumbsProps$1 } from 'react-aria-components';
4
+ export { RouterProvider, TimeValue } from 'react-aria-components';
3
5
  export { useAsyncList, useListData } from '@react-stately/data';
4
- import { GapSpaceProp, AspectProp, WidthProp, PaddingSpaceProp, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp, PaddingSpacePropX, PaddingSpacePropY, PlaceItemsProp, MaxWidthProp, HeightProp, alignment, TextAlignProp, Theme, ThemeProviderProps, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp, TextWrapProp } from '@marigold/system';
6
+ import { GapSpaceProp, AspectProp, WidthProp, PaddingSpaceProp, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp, PaddingSpacePropX, PaddingSpacePropY, PlaceItemsProp, MaxWidthProp, HeightProp, alignment, TextAlignProp, Theme, ThemeProviderProps, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp, TextWrapProp, WhiteSpaceProps } from '@marigold/system';
5
7
  export { DateFormat, NumericFormat, ThemeProvider, useTheme } from '@marigold/system';
6
8
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
- import RAC, { ValidationResult, Key, DialogProps as DialogProps$1, DateValue, SlotProps, UNSTABLE_ToastQueue, TagListProps, ProgressBarProps, TimeValue, BreadcrumbsProps as BreadcrumbsProps$1 } from 'react-aria-components';
8
- export { RouterProvider } from 'react-aria-components';
9
9
  import * as react from 'react';
10
- import react__default, { ReactNode, ReactElement, ElementType, ComponentPropsWithRef, ForwardRefExoticComponent, RefAttributes, Key as Key$1, CSSProperties, PropsWithChildren, Dispatch, SetStateAction, JSX } from 'react';
11
- import { AriaRegionProps, NonZeroPercentage, DistributiveOmit, AriaLabelingProps } from '@marigold/types';
10
+ import react__default, { ReactNode, ReactElement, ElementType, ComponentPropsWithRef, ForwardRefExoticComponent, RefAttributes, CSSProperties, PropsWithChildren, Key as Key$1, Dispatch, SetStateAction, JSX, FormEvent } from 'react';
11
+ import { AriaRegionProps, NonZeroPercentage, DistributiveOmit, AriaLabelingProps as AriaLabelingProps$1 } from '@marigold/types';
12
12
  import { AriaLandmarkRole } from '@react-aria/landmark';
13
13
  import { Props } from 'react-select';
14
14
  import { OverlayTriggerState, OverlayTriggerProps } from 'react-stately';
@@ -17,8 +17,8 @@ import { AriaTableProps } from '@react-aria/table';
17
17
  import { TableStateProps, TableBody, Cell, TableHeader, ColumnProps as ColumnProps$1, RowProps as RowProps$1 } from '@react-stately/table';
18
18
  export { VisuallyHidden } from '@react-aria/visually-hidden';
19
19
 
20
- type RemovedProps$y = 'isDisabled' | 'isExpanded';
21
- interface DisclosureProps extends Omit<RAC.DisclosureProps, RemovedProps$y> {
20
+ type RemovedProps$z = 'isDisabled' | 'isExpanded';
21
+ interface DisclosureProps extends Omit<RAC.DisclosureProps, RemovedProps$z> {
22
22
  /** Whether the item is disabled. */
23
23
  disabled?: RAC.DisclosureProps['isDisabled'];
24
24
  /** Whether the item is expanded (controlled). */
@@ -34,15 +34,17 @@ interface AccordionHeaderProps {
34
34
  children?: ReactNode;
35
35
  }
36
36
 
37
- type RemovedProps$x = 'isDisabled';
38
- interface AccordionProps extends Omit<RAC.DisclosureGroupProps, RemovedProps$x> {
37
+ type RemovedProps$y = 'isDisabled';
38
+ interface AccordionProps extends Omit<RAC.DisclosureGroupProps, RemovedProps$y> {
39
39
  /** Whether all items are disabled. */
40
40
  disabled?: RAC.DisclosureGroupProps['isDisabled'];
41
41
  variant?: 'default' | 'card' | (string & {});
42
42
  size?: string;
43
+ stickyHeader?: boolean;
44
+ iconPosition?: 'right' | 'left';
43
45
  }
44
46
  declare const Accordion: {
45
- ({ children, disabled, variant, size, ...props }: AccordionProps): react_jsx_runtime.JSX.Element;
47
+ ({ children, disabled, variant, size, stickyHeader, iconPosition, ...props }: AccordionProps): react_jsx_runtime.JSX.Element;
46
48
  Header: ({ children }: AccordionHeaderProps) => react_jsx_runtime.JSX.Element;
47
49
  Content: ({ children }: AccordionPanelProps) => react_jsx_runtime.JSX.Element;
48
50
  Item: ({ children, disabled, expanded, ...props }: DisclosureProps) => react_jsx_runtime.JSX.Element;
@@ -143,8 +145,8 @@ interface ListBoxComponent extends ForwardRefExoticComponent<ListBoxProps & RefA
143
145
  }
144
146
  declare const _ListBox: ListBoxComponent;
145
147
 
146
- type RemovedProps$w = 'className' | 'style' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'inputValue' | 'onInputChange' | 'defaultValue' | 'validate' | 'validationState' | 'slot';
147
- interface AutocompleteProps extends Omit<RAC.ComboBoxProps<object>, RemovedProps$w>, Pick<FieldBaseProps<'label'>, 'width' | 'label' | 'description' | 'errorMessage'> {
148
+ type RemovedProps$x = 'className' | 'style' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'inputValue' | 'onInputChange' | 'defaultValue' | 'validate' | 'validationState' | 'slot';
149
+ interface AutocompleteProps extends Omit<RAC.ComboBoxProps<object>, RemovedProps$x>, Pick<FieldBaseProps<'label'>, 'width' | 'label' | 'description' | 'errorMessage'> {
148
150
  /**
149
151
  * The value of the input (uncontrolled).
150
152
  */
@@ -220,8 +222,8 @@ interface AutocompleteComponent extends ForwardRefExoticComponent<AutocompletePr
220
222
  }
221
223
  declare const _Autocomplete: AutocompleteComponent;
222
224
 
223
- type RemovedProps$v = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'defaultInputValue' | 'inputValue' | 'onInputChange';
224
- interface ComboBoxProps extends Omit<RAC.ComboBoxProps<any>, RemovedProps$v>, Pick<FieldBaseProps<'label'>, 'width' | 'label' | 'description' | 'errorMessage'> {
225
+ type RemovedProps$w = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'defaultInputValue' | 'inputValue' | 'onInputChange';
226
+ interface ComboBoxProps extends Omit<RAC.ComboBoxProps<any>, RemovedProps$w>, Pick<FieldBaseProps<'label'>, 'width' | 'label' | 'description' | 'errorMessage'> {
225
227
  variant?: string;
226
228
  size?: string;
227
229
  /**
@@ -301,12 +303,12 @@ interface BreakoutProps extends AriaRegionProps {
301
303
  }
302
304
  declare const Breakout: ({ children }: BreakoutProps) => react_jsx_runtime.JSX.Element;
303
305
 
304
- type RemovedProps$u = 'isDisabled' | 'isPending' | 'className' | 'style';
305
- interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$u> {
306
+ type RemovedProps$v = 'isDisabled' | 'isPending' | 'className' | 'style';
307
+ interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$v> {
306
308
  variant?: 'primary' | 'secondary' | 'destructive' | 'ghost' | 'link' | (string & {});
307
309
  size?: 'default' | 'small' | 'large' | 'icon' | (string & {});
308
310
  /**
309
- * Stretches the button width with full available space.
311
+ * If true, the element stretches to fill the available width.
310
312
  * @default false
311
313
  */
312
314
  fullWidth?: boolean;
@@ -356,8 +358,8 @@ interface CenterProps extends GapSpaceProp, AriaRegionProps {
356
358
  }
357
359
  declare const Center: ({ maxWidth, space, children, ...props }: CenterProps) => react_jsx_runtime.JSX.Element;
358
360
 
359
- type RemovedProps$t = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly';
360
- interface CheckboxGroupProps extends Omit<RAC.CheckboxGroupProps, RemovedProps$t>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
361
+ type RemovedProps$u = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly';
362
+ interface CheckboxGroupProps extends Omit<RAC.CheckboxGroupProps, RemovedProps$u>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
361
363
  /**
362
364
  * The children of the component
363
365
  */
@@ -411,8 +413,8 @@ interface CheckboxGroupProps extends Omit<RAC.CheckboxGroupProps, RemovedProps$t
411
413
  }
412
414
  declare const _CheckboxGroup: ({ children, variant, size, required, disabled, readOnly, error, width, orientation, collapseAt, ...rest }: CheckboxGroupProps) => react_jsx_runtime.JSX.Element;
413
415
 
414
- type RemovedProps$s = 'children' | 'className' | 'style' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'isSelected' | 'isIndeterminate' | 'defaultSelected';
415
- interface CheckboxProps extends Omit<RAC.CheckboxProps, RemovedProps$s> {
416
+ type RemovedProps$t = 'children' | 'className' | 'style' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'isSelected' | 'isIndeterminate' | 'defaultSelected';
417
+ interface CheckboxProps extends Omit<RAC.CheckboxProps, RemovedProps$t> {
416
418
  variant?: string;
417
419
  size?: string;
418
420
  /**
@@ -577,6 +579,130 @@ interface ContextualHelpProps {
577
579
  }
578
580
  declare const _ContextualHelp: ContextualHelpComponent;
579
581
 
582
+ interface DialogContextProps extends RAC.ModalOverlayProps {
583
+ dismissable?: boolean;
584
+ keyboardDismissable?: boolean;
585
+ }
586
+
587
+ type RemovedProps$s = 'children' | 'isOpen' | 'isDismissable' | 'isKeyboardDismissDisabled';
588
+ interface DialogTriggerProps extends Omit<RAC.DialogTriggerProps, 'isOpen'>, Omit<DialogContextProps, RemovedProps$s> {
589
+ /** Whether the overlay is open by default (controlled). */
590
+ open?: boolean;
591
+ }
592
+ declare const _DialogTrigger: ({ open, dismissable, keyboardDismissable, ...rest }: DialogTriggerProps) => ReactNode;
593
+
594
+ interface ModalProps extends RAC.ModalOverlayProps {
595
+ /** Whether the overlay is open by default (controlled). */
596
+ open?: boolean;
597
+ /**
598
+ * Whether to close the modal when the user interacts outside it.
599
+ * @default false
600
+ */
601
+ dismissable?: boolean;
602
+ /**
603
+ * Whether pressing the escape key to close the modal should be disabled.
604
+ * @default true
605
+ */
606
+ keyboardDismissable?: boolean;
607
+ size?: string;
608
+ }
609
+ declare const _Modal: react.ForwardRefExoticComponent<Omit<ModalProps, "className" | "isOpen" | "isDismissable" | "isKeyboardDismissDisabled"> & react.RefAttributes<HTMLDivElement>>;
610
+
611
+ interface StyleRenderProps<T> {
612
+ /** The CSS [className](https://developer.mozilla.org/en-US/docs/Web/API/Element/className) for the element. A function may be provided to compute the class based on component state. */
613
+ className?: string | ((values: T & {
614
+ defaultClassName: string | undefined;
615
+ }) => string);
616
+ /** The inline [style](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style) for the element. A function may be provided to compute the style based on component state. */
617
+ style?: CSSProperties | ((values: T & {
618
+ defaultStyle: CSSProperties;
619
+ }) => CSSProperties | undefined);
620
+ }
621
+ interface RenderProps<T> extends StyleRenderProps<T> {
622
+ /** The children of the component. A function may be provided to alter the children based on component state. */
623
+ children?: ReactNode | ((values: T & {
624
+ defaultChildren: ReactNode | undefined;
625
+ }) => ReactNode);
626
+ }
627
+
628
+ interface AriaNonModalProps {
629
+ /**
630
+ * The ref for the non-modal element.
631
+ */
632
+ nonModalRef: RefObject<Element | null>;
633
+ /**
634
+ * Whether pressing the escape key closes the modal.
635
+ * @default true
636
+ */
637
+ keyboardDismissable?: boolean;
638
+ }
639
+
640
+ interface NonModalRenderProps {
641
+ /**
642
+ * Whether the popover is currently entering. Use this to apply animations.
643
+ * @selector [data-entering]
644
+ */
645
+ isEntering: boolean;
646
+ /**
647
+ * Whether the popover is currently exiting. Use this to apply animations.
648
+ * @selector [data-exiting]
649
+ */
650
+ isExiting: boolean;
651
+ /**
652
+ * State of the non-modal.
653
+ */
654
+ state: OverlayTriggerState;
655
+ }
656
+ interface NonModalInnerProps extends AriaNonModalProps, AriaLabelingProps, SlotProps, RenderProps<NonModalRenderProps> {
657
+ state: OverlayTriggerState;
658
+ isEntering?: boolean;
659
+ isExiting: boolean;
660
+ }
661
+ interface NonModalProps extends Omit<OverlayTriggerProps, 'isOpen'>, AriaLabelingProps, SlotProps, Pick<NonModalInnerProps, 'style' | 'className' | 'children'> {
662
+ /**
663
+ * Whether the overlay is open by default (controlled).
664
+ * @default undefined
665
+ */
666
+ open?: boolean;
667
+ /**
668
+ * Whether pressing the escape key closes the modal.
669
+ * @default true
670
+ */
671
+ keyboardDismissable?: boolean;
672
+ /**
673
+ * Whether the popover is currently performing an entry animation.
674
+ * @default undefined
675
+ */
676
+ isEntering?: boolean;
677
+ /**
678
+ * Whether the popover is currently performing an exit animation.
679
+ * @default undefined
680
+ */
681
+ isExiting?: boolean;
682
+ /**
683
+ * Ref to the overlay element.
684
+ * @default undefined
685
+ */
686
+ ref?: RefObject<HTMLElement | null>;
687
+ }
688
+ declare const NonModal: react.ForwardRefExoticComponent<Omit<NonModalProps, "ref"> & react.RefAttributes<HTMLElement>>;
689
+
690
+ interface PopoverProps extends Omit<RAC.PopoverProps, 'isOpen' | 'isKeyboardDismissDisabled' | 'style' | 'className' | 'children'> {
691
+ keyboardDismissDisabled?: boolean;
692
+ open?: boolean;
693
+ children: ReactNode;
694
+ }
695
+ declare const _Popover: react.ForwardRefExoticComponent<PopoverProps & react.RefAttributes<HTMLDivElement>>;
696
+
697
+ interface UnderlayProps extends Omit<RAC.ModalOverlayProps, 'isOpen' | 'isDismissable' | 'isKeyboardDismissDisabled' | 'className'> {
698
+ variant?: string;
699
+ size?: string;
700
+ open?: boolean;
701
+ dismissable?: boolean;
702
+ keyboardDismissable?: boolean;
703
+ }
704
+ declare const Underlay: ({ size, variant, open, dismissable, keyboardDismissable, ...rest }: UnderlayProps) => react_jsx_runtime.JSX.Element;
705
+
580
706
  interface DialogActions {
581
707
  /**
582
708
  * Children of the component.
@@ -598,57 +724,75 @@ interface DialogContentProps {
598
724
  declare const DialogContent: ({ variant, size, children, }: DialogContentProps) => react_jsx_runtime.JSX.Element;
599
725
 
600
726
  interface DialogTitleProps {
727
+ /** Children of the component. */
601
728
  children?: React.ReactNode;
602
729
  variant?: string;
603
730
  size?: string;
604
731
  }
605
732
  declare const DialogTitle: ({ variant, size, children }: DialogTitleProps) => react_jsx_runtime.JSX.Element;
606
733
 
607
- type RemovedProps$r = 'children' | 'isOpen' | 'isDismissable' | 'isKeyboardDismissDisabled';
608
- interface ModalProps$1 extends RAC.ModalOverlayProps {
609
- open?: boolean;
610
- dismissable?: boolean;
611
- keyboardDismissable?: boolean;
612
- size?: string;
613
- }
614
- interface DialogTriggerProps extends Omit<RAC.DialogTriggerProps, 'isOpen'>, Omit<ModalProps$1, RemovedProps$r> {
615
- }
616
- declare const _DialogTrigger: ({ open, dismissable, keyboardDismissable, ...rest }: DialogTriggerProps) => ReactNode;
617
-
618
- interface DialogComponent extends ForwardRefExoticComponent<DialogProps & RefAttributes<HTMLInputElement>> {
734
+ interface DialogProps extends Omit<RAC.DialogProps, 'className' | 'style'>, Pick<ModalProps, 'open' | 'onOpenChange'> {
735
+ variant?: string;
736
+ size?: 'xsmall' | 'small' | 'medium' | (string & {});
619
737
  /**
620
- * Options for the Combobox.
738
+ * Show the close button.
621
739
  */
740
+ closeButton?: boolean;
741
+ }
742
+ interface DialogComponent extends ForwardRefExoticComponent<DialogProps & RefAttributes<HTMLInputElement>> {
622
743
  Trigger: typeof _DialogTrigger;
623
744
  Title: typeof DialogTitle;
624
745
  Content: typeof DialogContent;
625
746
  Actions: typeof DialogActions;
626
747
  }
627
- interface DialogProps extends Omit<RAC.DialogProps, 'className' | 'style'> {
628
- variant?: string;
629
- size?: string;
748
+ declare const _Dialog: DialogComponent;
749
+
750
+ interface ConfirmationDialogProps extends Pick<DialogProps, 'variant' | 'size' | 'closeButton' | 'open' | 'onOpenChange'> {
630
751
  /**
631
- * Show the close button.
752
+ * The dialog's title.
632
753
  */
633
- closeButton?: boolean;
634
- }
635
- interface DialogProps extends Omit<RAC.DialogProps, 'className' | 'style'> {
636
- variant?: string;
637
- size?: string;
754
+ title: string;
638
755
  /**
639
- * Show the close button.
756
+ * Label for the primary action button.
640
757
  */
641
- closeButton?: boolean;
758
+ confirmationLabel: string;
642
759
  /**
643
- * If `true`, the dialog will be non-modal, meaning it will not block interaction with the background content.
644
- * @default false
760
+ * Optional label for the cancel button, default label is "cancel".
761
+ */
762
+ cancelLabel?: string;
763
+ /**
764
+ * Handler that is called when the confirm button is pressed.
765
+ */
766
+ onConfirm?: () => void;
767
+ /**
768
+ * Handler that is called when the cancel button is pressed.
769
+ */
770
+ onCancel?: () => void;
771
+ /**
772
+ * Button to focus by default when the dialog opens.
773
+ */
774
+ autoFocusButton?: 'cancel' | 'action';
775
+ /**
776
+ * The dialog's content.
645
777
  */
646
- isNonModal?: boolean;
778
+ children?: ReactNode;
647
779
  }
648
- declare const _Dialog: DialogComponent;
780
+ declare const ConfirmationDialog: {
781
+ ({ title, confirmationLabel, cancelLabel, onCancel, onConfirm, autoFocusButton, children, variant, size, ...props }: ConfirmationDialogProps): react_jsx_runtime.JSX.Element;
782
+ Trigger: ({ open, dismissable, keyboardDismissable, ...rest }: DialogTriggerProps) => ReactNode;
783
+ };
784
+
785
+ type ConfirmationResult = 'confirmed' | 'cancelled';
786
+ interface ConfirmationConfig extends Pick<ConfirmationDialogProps, 'variant' | 'title' | 'confirmationLabel' | 'cancelLabel' | 'autoFocusButton'> {
787
+ content?: React.ReactNode;
788
+ }
789
+ type ConfirmationFn = (props: ConfirmationConfig) => Promise<ConfirmationResult>;
790
+ declare const ConfirmationContext: react.Context<ConfirmationFn | null>;
791
+ declare const ConfirmationProvider: ({ children }: PropsWithChildren) => react_jsx_runtime.JSX.Element;
792
+ declare const useConfirmation: () => ConfirmationFn;
649
793
 
650
- type RemovedProps$q = 'className' | 'style';
651
- interface DividerProps extends Omit<RAC.SeparatorProps, RemovedProps$q> {
794
+ type RemovedProps$r = 'className' | 'style';
795
+ interface DividerProps extends Omit<RAC.SeparatorProps, RemovedProps$r> {
652
796
  variant?: 'default' | 'bold' | (string & {});
653
797
  }
654
798
  declare const _Divider: ({ variant, ...props }: DividerProps) => react_jsx_runtime.JSX.Element;
@@ -782,7 +926,7 @@ declare const Grid: {
782
926
  Area: ({ name, children }: GridAreaProps) => react_jsx_runtime.JSX.Element;
783
927
  };
784
928
 
785
- interface HeadlineProps extends AriaLabelingProps, TextAlignProp {
929
+ interface HeadlineProps extends AriaLabelingProps$1, TextAlignProp {
786
930
  /**
787
931
  * Set the color of the headline.
788
932
  */
@@ -804,11 +948,21 @@ interface HeadlineProps extends AriaLabelingProps, TextAlignProp {
804
948
  }
805
949
  declare const _Headline: ({ variant, size, children, align, color, level, ...props }: HeadlineProps) => react_jsx_runtime.JSX.Element;
806
950
 
951
+ declare const inlineAlignmentY: {
952
+ input: string;
953
+ top: "items-start";
954
+ center: "items-center";
955
+ bottom: "items-end";
956
+ };
807
957
  interface InlineProps extends GapSpaceProp, AriaRegionProps {
808
958
  /**
809
959
  * The children of the component.
810
960
  */
811
961
  children?: ReactNode;
962
+ /**
963
+ * Prevent the items from wrapping to the next line.
964
+ */
965
+ noWrap?: boolean;
812
966
  /**
813
967
  * Horizontal alignment of the items inside the element.
814
968
  */
@@ -816,12 +970,12 @@ interface InlineProps extends GapSpaceProp, AriaRegionProps {
816
970
  /**
817
971
  * Vertical alignment of the items inside the element.
818
972
  */
819
- alignY?: keyof typeof alignment.horizontal.alignmentY | 'input';
973
+ alignY?: keyof typeof inlineAlignmentY;
820
974
  }
821
- declare const Inline: ({ space, alignX, alignY, children, ...props }: InlineProps) => react_jsx_runtime.JSX.Element;
975
+ declare const Inline: ({ space, noWrap, alignX, alignY, children, ...props }: InlineProps) => react_jsx_runtime.JSX.Element;
822
976
 
823
- type RemovedProps$p = 'className' | 'style' | 'size';
824
- interface InputProps extends Omit<RAC.InputProps, RemovedProps$p> {
977
+ type RemovedProps$q = 'className' | 'style' | 'size';
978
+ interface InputProps extends Omit<RAC.InputProps, RemovedProps$q> {
825
979
  icon?: ReactElement<any>;
826
980
  action?: ReactElement<any>;
827
981
  variant?: string;
@@ -830,8 +984,8 @@ interface InputProps extends Omit<RAC.InputProps, RemovedProps$p> {
830
984
  }
831
985
  declare const _Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>;
832
986
 
833
- type RemovedProps$o = 'className' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'isReadOnly' | 'label' | 'children' | 'style';
834
- interface DateFieldProps extends Omit<RAC.DateFieldProps<DateValue>, RemovedProps$o>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
987
+ type RemovedProps$p = 'className' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'isReadOnly' | 'label' | 'children' | 'style';
988
+ interface DateFieldProps extends Omit<RAC.DateFieldProps<DateValue>, RemovedProps$p>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
835
989
  variant?: string;
836
990
  size?: string;
837
991
  /**
@@ -866,8 +1020,8 @@ interface DateFieldProps extends Omit<RAC.DateFieldProps<DateValue>, RemovedProp
866
1020
  }
867
1021
  declare const _DateField: react.ForwardRefExoticComponent<DateFieldProps & react.RefAttributes<HTMLInputElement>>;
868
1022
 
869
- type RemovedProps$n = 'visibleDuration' | 'pageBehavior' | 'isDateUnavailable' | 'isDisabled' | 'isReadOnly' | 'isInvalid' | 'errorMessage' | 'className' | 'style';
870
- interface CalendarProps extends Omit<RAC.CalendarProps<DateValue>, RemovedProps$n> {
1023
+ type RemovedProps$o = 'visibleDuration' | 'pageBehavior' | 'isDateUnavailable' | 'isDisabled' | 'isReadOnly' | 'isInvalid' | 'errorMessage' | 'className' | 'style';
1024
+ interface CalendarProps extends Omit<RAC.CalendarProps<DateValue>, RemovedProps$o> {
871
1025
  /**
872
1026
  * Disables the Calendar.
873
1027
  * @default false
@@ -892,8 +1046,8 @@ interface CalendarProps extends Omit<RAC.CalendarProps<DateValue>, RemovedProps$
892
1046
  }
893
1047
  declare const _Calendar: ({ disabled, readOnly, size, variant, width, dateUnavailable, minValue: _minValue, maxValue: _maxValue, ...rest }: CalendarProps) => react_jsx_runtime.JSX.Element;
894
1048
 
895
- type RemovedProps$m = 'isDisabled' | 'isDateUnavailable' | 'isReadOnly' | 'isRequired' | 'isInvalid' | 'style' | 'className' | 'isOpen';
896
- interface DatePickerProps extends Omit<RAC.DatePickerProps<DateValue>, RemovedProps$m>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
1049
+ type RemovedProps$n = 'isDisabled' | 'isDateUnavailable' | 'isReadOnly' | 'isRequired' | 'isInvalid' | 'style' | 'className' | 'isOpen';
1050
+ interface DatePickerProps extends Omit<RAC.DatePickerProps<DateValue>, RemovedProps$n>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
897
1051
  /**
898
1052
  * Callback that is called for each date of the calendar. If it returns true, then the date is unavailable.
899
1053
  */
@@ -957,15 +1111,15 @@ type InsetProps = (AriaRegionProps & {
957
1111
  });
958
1112
  declare const Inset: ({ space, spaceX, spaceY, children }: InsetProps) => react_jsx_runtime.JSX.Element;
959
1113
 
960
- type RemovedProps$l = 'className';
961
- interface LabelProps extends Omit<RAC.LabelProps, RemovedProps$l> {
1114
+ type RemovedProps$m = 'className';
1115
+ interface LabelProps extends Omit<RAC.LabelProps, RemovedProps$m> {
962
1116
  size?: string;
963
1117
  variant?: string;
964
1118
  }
965
1119
  declare const _Label: ({ size, variant, children, ...props }: LabelProps) => react_jsx_runtime.JSX.Element;
966
1120
 
967
- type RemovedProps$k = 'className' | 'isDisabled' | 'slot';
968
- interface LinkProps extends Omit<RAC.LinkProps, RemovedProps$k> {
1121
+ type RemovedProps$l = 'className' | 'isDisabled' | 'slot';
1122
+ interface LinkProps extends Omit<RAC.LinkProps, RemovedProps$l> {
969
1123
  variant?: 'default' | 'secondary' | (string & {});
970
1124
  size?: string;
971
1125
  /**
@@ -976,6 +1130,27 @@ interface LinkProps extends Omit<RAC.LinkProps, RemovedProps$k> {
976
1130
  }
977
1131
  declare const _Link: react.ForwardRefExoticComponent<LinkProps & react.RefAttributes<HTMLAnchorElement>>;
978
1132
 
1133
+ type RemovedProps$k = 'isDisabled' | 'isPending' | 'className' | 'style';
1134
+ interface LinkButtonProps extends Omit<RAC.LinkProps, RemovedProps$k> {
1135
+ variant?: 'primary' | 'secondary' | 'destructive' | 'ghost' | 'link' | (string & {});
1136
+ size?: 'default' | 'small' | 'large' | 'icon' | (string & {});
1137
+ /**
1138
+ * If true, the element stretches to fill the available width.
1139
+ * @default false
1140
+ */
1141
+ fullWidth?: boolean;
1142
+ /**
1143
+ * Children of the component
1144
+ */
1145
+ children?: ReactNode;
1146
+ /**
1147
+ * Disables the button.
1148
+ * @default false
1149
+ */
1150
+ disabled?: RAC.LinkProps['isDisabled'];
1151
+ }
1152
+ declare const _LinkButton: react.ForwardRefExoticComponent<LinkButtonProps & react.RefAttributes<HTMLAnchorElement>>;
1153
+
979
1154
  interface ListItemProps {
980
1155
  /**
981
1156
  * Children of the component.
@@ -1008,14 +1183,10 @@ interface MenuSectionProps extends Omit<RAC.SectionProps<object>, RemovedProps$j
1008
1183
  }
1009
1184
 
1010
1185
  type RemovedProps$i = 'style' | 'className';
1011
- type MenuItemProps = Omit<RAC.MenuItemProps, RemovedProps$i>;
1012
-
1013
- interface PopoverProps extends Omit<RAC.PopoverProps, 'isOpen' | 'isKeyboardDismissDisabled' | 'style' | 'className' | 'children'> {
1014
- keyboardDismissDisabled?: boolean;
1015
- open?: boolean;
1016
- children: ReactNode;
1186
+ interface MenuItemProps extends Omit<RAC.MenuItemProps, RemovedProps$i> {
1187
+ variant?: 'destructive' | 'default' | (string & {});
1188
+ size?: string;
1017
1189
  }
1018
- declare const _Popover: react.ForwardRefExoticComponent<PopoverProps & react.RefAttributes<HTMLDivElement>>;
1019
1190
 
1020
1191
  type RemovedProps$h = 'isOpen' | 'className' | 'style' | 'children';
1021
1192
  interface MenuProps extends Omit<RAC.MenuTriggerProps, RemovedProps$h>, Omit<RAC.MenuProps<object>, RemovedProps$h> {
@@ -1050,14 +1221,14 @@ interface MenuProps extends Omit<RAC.MenuTriggerProps, RemovedProps$h>, Omit<RAC
1050
1221
  }
1051
1222
  declare const _Menu: {
1052
1223
  ({ children, label, variant, size, disabled, open, placement, "aria-label": ariaLabel, ...props }: MenuProps): react_jsx_runtime.JSX.Element;
1053
- Item: ({ children, ...props }: MenuItemProps) => react_jsx_runtime.JSX.Element;
1224
+ Item: ({ children, variant, size, ...props }: MenuItemProps) => react_jsx_runtime.JSX.Element;
1054
1225
  Section: ({ children, title, ...props }: MenuSectionProps) => react_jsx_runtime.JSX.Element;
1055
1226
  };
1056
1227
 
1057
1228
  type ActionMenuProps = Omit<MenuProps, 'label'>;
1058
1229
  declare const ActionMenu: {
1059
1230
  ({ children, ...props }: ActionMenuProps): react_jsx_runtime.JSX.Element;
1060
- Item: ({ children, ...props }: MenuItemProps) => react_jsx_runtime.JSX.Element;
1231
+ Item: ({ children, variant, size, ...props }: MenuItemProps) => react_jsx_runtime.JSX.Element;
1061
1232
  Section: ({ children, title, ...props }: MenuSectionProps) => react_jsx_runtime.JSX.Element;
1062
1233
  };
1063
1234
 
@@ -1257,102 +1428,6 @@ interface NumberFieldProps extends Omit<RAC.NumberFieldProps, RemovedProps$g>, P
1257
1428
  }
1258
1429
  declare const _NumberField: react.ForwardRefExoticComponent<NumberFieldProps & react.RefAttributes<HTMLInputElement>>;
1259
1430
 
1260
- interface ModalProps extends RAC.ModalOverlayProps {
1261
- open?: boolean;
1262
- dismissable?: boolean;
1263
- keyboardDismissable?: boolean;
1264
- size?: string;
1265
- }
1266
- declare const _Modal: react.ForwardRefExoticComponent<Omit<ModalProps, "className" | "isOpen" | "isDismissable" | "isKeyboardDismissDisabled"> & react.RefAttributes<HTMLDivElement>>;
1267
-
1268
- interface StyleRenderProps<T> {
1269
- /** The CSS [className](https://developer.mozilla.org/en-US/docs/Web/API/Element/className) for the element. A function may be provided to compute the class based on component state. */
1270
- className?: string | ((values: T & {
1271
- defaultClassName: string | undefined;
1272
- }) => string);
1273
- /** The inline [style](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style) for the element. A function may be provided to compute the style based on component state. */
1274
- style?: CSSProperties | ((values: T & {
1275
- defaultStyle: CSSProperties;
1276
- }) => CSSProperties | undefined);
1277
- }
1278
- interface RenderProps<T> extends StyleRenderProps<T> {
1279
- /** The children of the component. A function may be provided to alter the children based on component state. */
1280
- children?: ReactNode | ((values: T & {
1281
- defaultChildren: ReactNode | undefined;
1282
- }) => ReactNode);
1283
- }
1284
-
1285
- interface AriaNonModalProps {
1286
- /**
1287
- * The ref for the non-modal element.
1288
- */
1289
- nonModalRef: RefObject<Element | null>;
1290
- /**
1291
- * Whether pressing the escape key closes the modal.
1292
- * @default true
1293
- */
1294
- keyboardDismissable?: boolean;
1295
- }
1296
-
1297
- interface NonModalRenderProps {
1298
- /**
1299
- * Whether the popover is currently entering. Use this to apply animations.
1300
- * @selector [data-entering]
1301
- */
1302
- isEntering: boolean;
1303
- /**
1304
- * Whether the popover is currently exiting. Use this to apply animations.
1305
- * @selector [data-exiting]
1306
- */
1307
- isExiting: boolean;
1308
- /**
1309
- * State of the non-modal.
1310
- */
1311
- state: OverlayTriggerState;
1312
- }
1313
- interface NonModalInnerProps extends AriaNonModalProps, AriaLabelingProps$1, SlotProps, RenderProps<NonModalRenderProps> {
1314
- state: OverlayTriggerState;
1315
- isEntering?: boolean;
1316
- isExiting: boolean;
1317
- }
1318
- interface NonModalProps extends Omit<OverlayTriggerProps, 'isOpen'>, AriaLabelingProps$1, SlotProps, Pick<NonModalInnerProps, 'style' | 'className' | 'children'> {
1319
- /**
1320
- * Whether the overlay is open by default (controlled).
1321
- * @default undefined
1322
- */
1323
- open?: boolean;
1324
- /**
1325
- * Whether pressing the escape key closes the modal.
1326
- * @default true
1327
- */
1328
- keyboardDismissable?: boolean;
1329
- /**
1330
- * Whether the popover is currently performing an entry animation.
1331
- * @default undefined
1332
- */
1333
- isEntering?: boolean;
1334
- /**
1335
- * Whether the popover is currently performing an exit animation.
1336
- * @default undefined
1337
- */
1338
- isExiting?: boolean;
1339
- /**
1340
- * Ref to the overlay element.
1341
- * @default undefined
1342
- */
1343
- ref?: RefObject<HTMLElement | null>;
1344
- }
1345
- declare const NonModal: react.ForwardRefExoticComponent<Omit<NonModalProps, "ref"> & react.RefAttributes<HTMLElement>>;
1346
-
1347
- interface UnderlayProps extends Omit<RAC.ModalOverlayProps, 'isOpen' | 'isDismissable' | 'isKeyboardDismissDisabled' | 'className'> {
1348
- variant?: string;
1349
- size?: string;
1350
- open?: boolean;
1351
- dismissable?: boolean;
1352
- keyboardDismissable?: boolean;
1353
- }
1354
- declare const Underlay: ({ size, variant, open, dismissable, keyboardDismissable, ...rest }: UnderlayProps) => react_jsx_runtime.JSX.Element;
1355
-
1356
1431
  interface PaginationProps {
1357
1432
  /**
1358
1433
  * The initial page. (uncontrolled)
@@ -1803,7 +1878,7 @@ interface Table {
1803
1878
  }
1804
1879
 
1805
1880
  type RemovedProps$a = 'elementType' | keyof JSX.IntrinsicElements['div'] | keyof JSX.IntrinsicElements['span'] | keyof JSX.IntrinsicElements['p'];
1806
- interface TextProps extends AriaLabelingProps, Omit<RAC.TextProps, RemovedProps$a>, TextAlignProp, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp, TextWrapProp {
1881
+ interface TextProps extends AriaLabelingProps$1, Omit<RAC.TextProps, RemovedProps$a>, TextAlignProp, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp, TextWrapProp, WhiteSpaceProps {
1807
1882
  /**
1808
1883
  * The children of the component
1809
1884
  */
@@ -1825,7 +1900,7 @@ interface TextProps extends AriaLabelingProps, Omit<RAC.TextProps, RemovedProps$
1825
1900
  variant?: 'default' | 'muted' | (string & {});
1826
1901
  size?: 'default' | 'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | '8xl' | '9xl' | (string & {});
1827
1902
  }
1828
- declare const _Text: ({ variant, size, color, align, cursor, weight, fontSize, fontStyle, wrap, children, as, ...props }: TextProps) => react_jsx_runtime.JSX.Element;
1903
+ declare const _Text: ({ variant, size, color, align, cursor, weight, fontSize, fontStyle, wrap, whiteSpace, children, as, ...props }: TextProps) => react_jsx_runtime.JSX.Element;
1829
1904
 
1830
1905
  type RemovedProps$9 = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'value' | 'defaultValue';
1831
1906
  interface TextAreaProps extends Omit<RAC.TextFieldProps, RemovedProps$9>, Pick<RAC.TextAreaProps, 'rows'>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
@@ -2187,4 +2262,12 @@ interface BreadcrumbsComponent extends ForwardRefExoticComponent<BreadcrumbsProp
2187
2262
  }
2188
2263
  declare const _Breadcrumbs: BreadcrumbsComponent;
2189
2264
 
2190
- export { Accordion, AccordionItem, type AccordionProps, ActionMenu, type ActionMenuProps, type GridAreaProps as AreaProps, Aside, type AsideProps, Aspect, type AspectProps, _Autocomplete as Autocomplete, type AutocompleteProps, Badge, type BadgeProps, _Breadcrumbs as Breadcrumbs, type BreadcrumbsComponent, type BreadcrumbsProps, Breakout, type BreakoutProps, _Button as Button, type ButtonProps, _Calendar as Calendar, type CalendarProps, Card, type CardProps, Center, type CenterProps, _Checkbox as Checkbox, type CheckboxComponent, _CheckboxGroup as CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type ColumnProps, Columns, type ColumnsProps, _ComboBox as ComboBox, type ComboBoxProps, Container, type ContainerProps, _ContextualHelp as ContextualHelp, type ContextualHelpProps, _DateField as DateField, type DateFieldProps, _DatePicker as DatePicker, type DatePickerProps, _Dialog as Dialog, type DialogProps, type DisclosureProps, _Divider as Divider, type DividerProps, Drawer, FieldBase, type FieldBaseProps, _Form as Form, type FormProps, Grid, type GridProps, _Headline as Headline, type HeadlineProps, Inline, type InlineProps, _Input as Input, type InputProps, Inset, type InsetProps, _Label as Label, type LabelProps, _Link as Link, type LinkProps, List, type ListProps, MarigoldProvider, type MarigoldProviderProps, _Menu as Menu, type MenuProps, _Modal as Modal, type ModalProps, Multiselect, NonModal, type NonModalProps, type NonModalRenderProps, _NumberField as NumberField, type NumberFieldProps, type OverlayContainerProps, OverlayContainerProvider, _Pagination as Pagination, type PaginationProps, _Popover as Popover, type PopoverProps, _Radio as Radio, type RadioComponent, _RadioGroup as RadioGroup, type RadioGroupProps, type RadioProps, type RemovedProps$s as RemovedProps, type RowProps, Scrollable, type ScrollableProps, _SearchField as SearchField, type SearchFieldProps, SectionMessage, type SectionMessageProps, _Select as Select, type SelectComponent, _SelectList as SelectList, type SelectListProps, type SelectProps, _Slider as Slider, type SliderProps, Split, Stack, type StackProps, _Switch as Switch, type SwitchProps, Table, type TableProps, _Tabs as Tabs, type TabsProps, _Tag as Tag, type TagProps, type TemplateValue, _Text as Text, _TextArea as TextArea, type TextAreaProps, _TextField as TextField, type TextFieldProps, type TextProps, Tiles, type TilesProps, _TimeField as TimeField, type TimeFieldProps, Toast, type ToastContentProps, ToastProvider, type ToastProviderProps, _Tooltip as Tooltip, type TooltipProps, Underlay, type UnderlayProps, XLoader, type XLoaderProps, _ContextualHelp, gridColsAlign, gridColumn, queue, useToast };
2265
+ /**
2266
+ * Parses the data from a submitted HTML form and returns an object mapping form field names to their values.
2267
+ *
2268
+ * If a field appears multiple times (e.g., checkboxes with the same name), its value will be an array of values.
2269
+ * Otherwise, the value will be a single FormDataEntryValue (string or File).
2270
+ */
2271
+ declare const parseFormData: <T extends Record<string, FormDataEntryValue | FormDataEntryValue[]> = Record<string, FormDataEntryValue | FormDataEntryValue[]>>(e: FormEvent<HTMLFormElement>) => T;
2272
+
2273
+ export { Accordion, AccordionItem, type AccordionProps, ActionMenu, type ActionMenuProps, type GridAreaProps as AreaProps, Aside, type AsideProps, Aspect, type AspectProps, _Autocomplete as Autocomplete, type AutocompleteProps, Badge, type BadgeProps, _Breadcrumbs as Breadcrumbs, type BreadcrumbsComponent, type BreadcrumbsProps, Breakout, type BreakoutProps, _Button as Button, type ButtonProps, _Calendar as Calendar, type CalendarProps, Card, type CardProps, Center, type CenterProps, _Checkbox as Checkbox, type CheckboxComponent, _CheckboxGroup as CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type ColumnProps, Columns, type ColumnsProps, _ComboBox as ComboBox, type ComboBoxProps, type ConfirmationConfig, ConfirmationContext, ConfirmationDialog, type ConfirmationDialogProps, type ConfirmationFn, ConfirmationProvider, type ConfirmationResult, Container, type ContainerProps, _ContextualHelp as ContextualHelp, type ContextualHelpProps, _DateField as DateField, type DateFieldProps, _DatePicker as DatePicker, type DatePickerProps, _Dialog as Dialog, type DialogProps, type DisclosureProps, _Divider as Divider, type DividerProps, Drawer, type DrawerProps, FieldBase, type FieldBaseProps, _Form as Form, type FormProps, Grid, type GridProps, _Headline as Headline, type HeadlineProps, Inline, type InlineProps, _Input as Input, type InputProps, Inset, type InsetProps, _Label as Label, type LabelProps, _Link as Link, _LinkButton as LinkButton, type LinkButtonProps, type LinkProps, List, type ListProps, MarigoldProvider, type MarigoldProviderProps, _Menu as Menu, type MenuProps, _Modal as Modal, type ModalProps, Multiselect, NonModal, type NonModalProps, type NonModalRenderProps, _NumberField as NumberField, type NumberFieldProps, type OverlayContainerProps, OverlayContainerProvider, _Pagination as Pagination, type PaginationProps, _Popover as Popover, type PopoverProps, _Radio as Radio, type RadioComponent, _RadioGroup as RadioGroup, type RadioGroupProps, type RadioProps, type RemovedProps$t as RemovedProps, type RowProps, Scrollable, type ScrollableProps, _SearchField as SearchField, type SearchFieldProps, SectionMessage, type SectionMessageProps, _Select as Select, type SelectComponent, _SelectList as SelectList, type SelectListProps, type SelectProps, _Slider as Slider, type SliderProps, Split, Stack, type StackProps, _Switch as Switch, type SwitchProps, Table, type TableProps, _Tabs as Tabs, type TabsProps, _Tag as Tag, type TagProps, type TemplateValue, _Text as Text, _TextArea as TextArea, type TextAreaProps, _TextField as TextField, type TextFieldProps, type TextProps, Tiles, type TilesProps, _TimeField as TimeField, type TimeFieldProps, Toast, type ToastContentProps, ToastProvider, type ToastProviderProps, _Tooltip as Tooltip, type TooltipProps, Underlay, type UnderlayProps, XLoader, type XLoaderProps, _ContextualHelp, gridColsAlign, gridColumn, parseFormData, queue, useConfirmation, useToast };