@marigold/components 11.4.0 → 11.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -2,13 +2,14 @@ import { Orientation, RefObject, AriaLabelingProps as AriaLabelingProps$1 } from
2
2
  export { Selection } from '@react-types/shared';
3
3
  export { useAsyncList, useListData } from '@react-stately/data';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
- import RAC, { ValidationResult, Key, DateValue, SlotProps, TagListProps, ProgressBarProps } from 'react-aria-components';
6
- export { Form, FormProps, RouterProvider } from 'react-aria-components';
5
+ import RAC, { ValidationResult, Key, DialogProps as DialogProps$1, DateValue, SlotProps, TagListProps, ProgressBarProps } from 'react-aria-components';
6
+ export { RouterProvider } from 'react-aria-components';
7
7
  import * as react from 'react';
8
8
  import react__default, { ReactNode, ReactElement, ElementType, ComponentPropsWithRef, ForwardRefExoticComponent, RefAttributes, Key as Key$1, CSSProperties, Dispatch, SetStateAction, JSX } from 'react';
9
- import { GapSpaceProp, AspectProp, WidthProp, PaddingSpaceProp, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp, PaddingSpacePropX, PaddingSpacePropY, PlaceItemsProp, TextAlignProp, HeightProp, ObjectFitProp, ObjectPositionProp, alignment, Theme, ThemeProviderProps, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp } from '@marigold/system';
9
+ import { GapSpaceProp, AspectProp, WidthProp, PaddingSpaceProp, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp, PaddingSpacePropX, PaddingSpacePropY, PlaceItemsProp, MaxWidthProp, HeightProp, TextAlignProp, ObjectFitProp, ObjectPositionProp, alignment, Theme, ThemeProviderProps, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp } from '@marigold/system';
10
10
  export { ThemeProvider, useTheme } from '@marigold/system';
11
11
  import { AriaRegionProps, NonZeroPercentage, DistributiveOmit, HtmlProps, AriaLabelingProps } from '@marigold/types';
12
+ import { AriaLandmarkRole } from '@react-aria/landmark';
12
13
  import { Props } from 'react-select';
13
14
  import { OverlayTriggerState, OverlayTriggerProps } from 'react-stately';
14
15
  export { I18nProvider } from '@react-aria/i18n';
@@ -16,8 +17,8 @@ import { AriaTableProps } from '@react-aria/table';
16
17
  import { TableStateProps, TableBody, Cell, TableHeader, ColumnProps as ColumnProps$1, RowProps as RowProps$1 } from '@react-stately/table';
17
18
  export { VisuallyHidden } from '@react-aria/visually-hidden';
18
19
 
19
- type RemovedProps$q = 'isDisabled' | 'isExpanded';
20
- interface DisclosureProps extends Omit<RAC.DisclosureProps, RemovedProps$q> {
20
+ type RemovedProps$r = 'isDisabled' | 'isExpanded';
21
+ interface DisclosureProps extends Omit<RAC.DisclosureProps, RemovedProps$r> {
21
22
  /** Whether the item is disabled. */
22
23
  disabled?: RAC.DisclosureProps['isDisabled'];
23
24
  /** Whether the item is expanded (controlled). */
@@ -33,8 +34,8 @@ interface AccordionHeaderProps {
33
34
  children?: ReactNode;
34
35
  }
35
36
 
36
- type RemovedProps$p = 'isDisabled';
37
- interface AccordionProps extends Omit<RAC.DisclosureGroupProps, RemovedProps$p> {
37
+ type RemovedProps$q = 'isDisabled';
38
+ interface AccordionProps extends Omit<RAC.DisclosureGroupProps, RemovedProps$q> {
38
39
  /** Whether all items are disabled. */
39
40
  disabled?: RAC.DisclosureGroupProps['isDisabled'];
40
41
  variant?: string;
@@ -152,8 +153,8 @@ interface ListBoxComponent extends ForwardRefExoticComponent<ListBoxProps & RefA
152
153
  }
153
154
  declare const _ListBox: ListBoxComponent;
154
155
 
155
- type RemovedProps$o = 'className' | 'style' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'inputValue' | 'onInputChange' | 'defaultValue' | 'validate' | 'validationState' | 'slot';
156
- interface AutocompleteProps extends Omit<RAC.ComboBoxProps<object>, RemovedProps$o>, Pick<FieldBaseProps<'label'>, 'width' | 'label' | 'description' | 'errorMessage'> {
156
+ type RemovedProps$p = 'className' | 'style' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'inputValue' | 'onInputChange' | 'defaultValue' | 'validate' | 'validationState' | 'slot';
157
+ interface AutocompleteProps extends Omit<RAC.ComboBoxProps<object>, RemovedProps$p>, Pick<FieldBaseProps<'label'>, 'width' | 'label' | 'description' | 'errorMessage'> {
157
158
  /**
158
159
  * The value of the input (uncontrolled).
159
160
  */
@@ -220,8 +221,8 @@ interface AutocompleteComponent extends ForwardRefExoticComponent<AutocompletePr
220
221
  }
221
222
  declare const _Autocomplete: AutocompleteComponent;
222
223
 
223
- type RemovedProps$n = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'defaultInputValue' | 'inputValue' | 'onInputChange';
224
- interface ComboBoxProps extends Omit<RAC.ComboBoxProps<any>, RemovedProps$n>, Pick<FieldBaseProps<'label'>, 'width' | 'label' | 'description' | 'errorMessage'> {
224
+ type RemovedProps$o = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'defaultInputValue' | 'inputValue' | 'onInputChange';
225
+ interface ComboBoxProps extends Omit<RAC.ComboBoxProps<any>, RemovedProps$o>, Pick<FieldBaseProps<'label'>, 'width' | 'label' | 'description' | 'errorMessage'> {
225
226
  variant?: string;
226
227
  size?: string;
227
228
  /**
@@ -302,8 +303,8 @@ interface BodyProps extends Omit<HtmlProps<'section'>, 'className'> {
302
303
  }
303
304
  declare const Body: ({ children, variant, size, ...props }: BodyProps) => react_jsx_runtime.JSX.Element;
304
305
 
305
- type RemovedProps$m = 'isDisabled' | 'isPending';
306
- interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$m> {
306
+ type RemovedProps$n = 'isDisabled' | 'isPending';
307
+ interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$n> {
307
308
  variant?: string;
308
309
  size?: string;
309
310
  /**
@@ -361,8 +362,8 @@ interface CenterProps extends GapSpaceProp, AriaRegionProps {
361
362
  }
362
363
  declare const Center: ({ maxWidth, space, children, ...props }: CenterProps) => react_jsx_runtime.JSX.Element;
363
364
 
364
- type RemovedProps$l = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly';
365
- interface CheckboxGroupProps extends Omit<RAC.CheckboxGroupProps, RemovedProps$l>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
365
+ type RemovedProps$m = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly';
366
+ interface CheckboxGroupProps extends Omit<RAC.CheckboxGroupProps, RemovedProps$m>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
366
367
  /**
367
368
  * The children of the component
368
369
  */
@@ -402,8 +403,8 @@ interface CheckboxGroupProps extends Omit<RAC.CheckboxGroupProps, RemovedProps$l
402
403
  }
403
404
  declare const _CheckboxGroup: ({ children, variant, size, required, disabled, readOnly, error, width, orientation, ...rest }: CheckboxGroupProps) => react_jsx_runtime.JSX.Element;
404
405
 
405
- type RemovedProps$k = 'className' | 'style' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'isSelected' | 'isIndeterminate' | 'defaultSelected';
406
- interface CheckboxProps extends Omit<RAC.CheckboxProps, RemovedProps$k> {
406
+ type RemovedProps$l = 'className' | 'style' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'isSelected' | 'isIndeterminate' | 'defaultSelected';
407
+ interface CheckboxProps extends Omit<RAC.CheckboxProps, RemovedProps$l> {
407
408
  /**
408
409
  * Whether the element should be checked (controlled).
409
410
  */
@@ -440,9 +441,15 @@ interface CheckboxProps extends Omit<RAC.CheckboxProps, RemovedProps$k> {
440
441
  variant?: string;
441
442
  size?: string;
442
443
  /**
443
- * Children of the component.
444
+ * Children of the checkbox.
445
+ * @deprecated Will be removed in the next major version. Use `label` prop instead.
444
446
  */
445
447
  children?: ReactNode;
448
+ /**
449
+ * Set the label of the checkbox.
450
+ *
451
+ */
452
+ label?: ReactNode;
446
453
  }
447
454
  interface CheckboxComponent extends ForwardRefExoticComponent<CheckboxProps & RefAttributes<HTMLLabelElement>> {
448
455
  /**
@@ -507,7 +514,7 @@ interface ContainerProps extends GapSpaceProp, AriaRegionProps {
507
514
  }
508
515
  declare const Container: ({ contentLength, align, alignItems, space, children, ...props }: ContainerProps) => react_jsx_runtime.JSX.Element;
509
516
 
510
- interface DialogContentProps {
517
+ interface DialogActions {
511
518
  /**
512
519
  * Children of the component.
513
520
  */
@@ -515,90 +522,144 @@ interface DialogContentProps {
515
522
  variant?: string;
516
523
  size?: string;
517
524
  }
525
+ declare const DialogActions: ({ variant, size, children }: DialogActions) => react_jsx_runtime.JSX.Element;
518
526
 
519
- interface HeadlineProps extends AriaLabelingProps, TextAlignProp {
520
- /**
521
- * Set the color of the headline.
522
- */
523
- color?: string;
524
- variant?: string;
525
- size?: string;
526
- /**
527
- * Set a different level.
528
- */
529
- level?: '1' | '2' | '3' | '4' | '5' | '6' | 1 | 2 | 3 | 4 | 5 | 6;
527
+ interface DialogContentProps {
530
528
  /**
531
529
  * Children of the component.
532
530
  */
533
531
  children?: ReactNode;
534
- /**
535
- * A slot to place the element in.
536
- */
537
- slot?: string;
532
+ variant?: string;
533
+ size?: string;
538
534
  }
539
- declare const _Headline: ({ variant, size, children, align, color, level, ...props }: HeadlineProps) => react_jsx_runtime.JSX.Element;
535
+ declare const DialogContent: ({ variant, size, children, }: DialogContentProps) => react_jsx_runtime.JSX.Element;
540
536
 
541
- interface DialogTitleProps extends Omit<HeadlineProps, 'slot'> {
537
+ interface DialogTitleProps {
538
+ children?: React.ReactNode;
542
539
  variant?: string;
543
540
  size?: string;
544
541
  }
542
+ declare const DialogTitle: ({ variant, size, children }: DialogTitleProps) => react_jsx_runtime.JSX.Element;
543
+
544
+ type RemovedProps$k = 'children' | 'isOpen' | 'isDismissable' | 'isKeyboardDismissDisabled';
545
+ interface ModalProps$1 extends RAC.ModalOverlayProps {
546
+ open?: boolean;
547
+ dismissable?: boolean;
548
+ keyboardDismissable?: boolean;
549
+ size?: string;
550
+ }
551
+ interface DialogTriggerProps extends Omit<RAC.DialogTriggerProps, 'isOpen'>, Omit<ModalProps$1, RemovedProps$k> {
552
+ }
553
+ declare const _DialogTrigger: ({ open, dismissable, keyboardDismissable, size, ...rest }: DialogTriggerProps) => ReactNode;
545
554
 
546
- interface DialogTriggerProps extends Omit<RAC.DialogTriggerProps, 'isOpen'> {
555
+ interface DialogComponent extends ForwardRefExoticComponent<DialogProps & RefAttributes<HTMLInputElement>> {
547
556
  /**
548
- * Whether the dialog is open by default (controlled).
549
- * @default false
557
+ * Options for the Combobox.
550
558
  */
551
- open?: boolean;
559
+ Trigger: typeof _DialogTrigger;
560
+ Title: typeof DialogTitle;
561
+ Content: typeof DialogContent;
562
+ Actions: typeof DialogActions;
563
+ }
564
+ interface DialogProps extends Omit<RAC.DialogProps, 'className' | 'style'> {
565
+ variant?: string;
566
+ size?: string;
552
567
  /**
553
- * Whether to close the overlay when the user interacts outside it.
554
- * @default false
568
+ * Show the close button.
555
569
  */
556
- dismissable?: boolean;
570
+ closeButton?: boolean;
571
+ }
572
+ interface DialogProps extends Omit<RAC.DialogProps, 'className' | 'style'> {
573
+ variant?: string;
574
+ size?: string;
557
575
  /**
558
- * Whether pressing the escape key to close the overlay should be disabled.
576
+ * Show the close button.
559
577
  */
560
- keyboardDismissable?: boolean;
578
+ closeButton?: boolean;
561
579
  /**
562
580
  * If `true`, the dialog will be non-modal, meaning it will not block interaction with the background content.
581
+ * @default false
563
582
  */
564
583
  isNonModal?: boolean;
565
584
  }
585
+ declare const _Dialog: DialogComponent;
566
586
 
567
- interface DialogActions {
587
+ interface DividerProps extends RAC.SeparatorProps {
588
+ variant?: string;
589
+ }
590
+ declare const _Divider: ({ variant, ...props }: DividerProps) => react_jsx_runtime.JSX.Element;
591
+
592
+ interface DrawerContentProps {
593
+ variant?: string;
594
+ size?: string;
568
595
  /**
569
596
  * Children of the component.
570
597
  */
571
598
  children?: ReactNode;
572
- variant?: string;
573
- size?: string;
574
599
  }
575
- declare const DialogActions: ({ variant, size, children }: DialogActions) => react_jsx_runtime.JSX.Element;
576
600
 
577
- interface DialogProps extends Omit<RAC.DialogProps, 'className' | 'style'> {
601
+ interface DrawerTitleProps {
578
602
  variant?: string;
579
603
  size?: string;
580
604
  /**
581
- * Show the close button.
605
+ * Children of the component.
582
606
  */
583
- closeButton?: boolean;
607
+ children?: React.ReactNode;
608
+ }
609
+
610
+ interface DrawerTriggerProps extends Omit<RAC.DialogTriggerProps, 'isOpen'> {
584
611
  /**
585
- * If `true`, the dialog will be non-modal, meaning it will not block interaction with the background content.
612
+ * Whether the overlay is open by default (controlled).
586
613
  * @default false
587
614
  */
588
- isNonModal?: boolean;
615
+ open?: boolean;
589
616
  }
590
- declare const _Dialog: {
591
- ({ variant, size, closeButton, isNonModal, ...props }: DialogProps): react_jsx_runtime.JSX.Element;
592
- Trigger: ({ open, dismissable, keyboardDismissable, isNonModal, ...rest }: DialogTriggerProps) => react_jsx_runtime.JSX.Element;
593
- Title: ({ level, variant, size, children, }: DialogTitleProps) => react_jsx_runtime.JSX.Element;
594
- Content: ({ variant, size, children, }: DialogContentProps) => react_jsx_runtime.JSX.Element;
595
- Actions: ({ variant, size, children }: DialogActions) => react_jsx_runtime.JSX.Element;
596
- };
597
617
 
598
- interface DividerProps extends RAC.SeparatorProps {
618
+ interface DrawerActions {
599
619
  variant?: string;
620
+ size?: string;
621
+ /**
622
+ * Children of the component.
623
+ */
624
+ children?: ReactNode;
600
625
  }
601
- declare const _Divider: ({ variant, ...props }: DividerProps) => react_jsx_runtime.JSX.Element;
626
+ declare const DrawerActions: ({ variant, size, children }: DrawerActions) => react_jsx_runtime.JSX.Element;
627
+
628
+ interface DrawerProps extends Omit<DialogProps$1, 'className' | 'style' | 'isOpen' | 'role'> {
629
+ variant?: string;
630
+ size?: string;
631
+ /**
632
+ * Whether the overlay is open by default (controlled).
633
+ * @default undefined
634
+ */
635
+ open?: boolean;
636
+ /**
637
+ * Whether pressing the escape key closes the modal.
638
+ * @default true
639
+ */
640
+ keyboardDismissable?: boolean;
641
+ /**
642
+ * Show the close button.
643
+ */
644
+ closeButton?: boolean;
645
+ /**
646
+ * The `role` property sets the ARIA landmark role for this component,
647
+ * enhancing accessibility by clarifying its purpose to assistive technologies.
648
+ *
649
+ * Only ARIA landmark roles (e.g., "complementary", "search", "banner", "navigation")
650
+ * can be used to ensure proper semantic context. Defaults to `"complementary"`
651
+ * for secondary content (e.g., filters, sidebar) that supports the main content.
652
+ * @default "complementary"
653
+ */
654
+ role?: Exclude<AriaLandmarkRole, 'main'>;
655
+ }
656
+ declare const Drawer: {
657
+ ({ children, variant, size, open, keyboardDismissable, closeButton, role, ...props }: DrawerProps): react_jsx_runtime.JSX.Element;
658
+ Trigger: ({ open, children, ...props }: DrawerTriggerProps) => react_jsx_runtime.JSX.Element;
659
+ Title: ({ variant, size, children }: DrawerTitleProps) => react_jsx_runtime.JSX.Element;
660
+ Content: ({ variant, size, children, }: DrawerContentProps) => react_jsx_runtime.JSX.Element;
661
+ Actions: ({ variant, size, children }: DrawerActions) => react_jsx_runtime.JSX.Element;
662
+ };
602
663
 
603
664
  interface FooterProps extends Omit<HtmlProps<'footer'>, 'className'> {
604
665
  /**
@@ -610,6 +671,15 @@ interface FooterProps extends Omit<HtmlProps<'footer'>, 'className'> {
610
671
  }
611
672
  declare const Footer: ({ children, variant, size, ...props }: FooterProps) => react_jsx_runtime.JSX.Element;
612
673
 
674
+ interface FormProps extends Omit<RAC.FormProps, 'className' | 'style'>, MaxWidthProp {
675
+ /**
676
+ * Removes the form's visual container so that it does not impact the layout,
677
+ * letting child elements render naturally.
678
+ */
679
+ unstyled?: boolean;
680
+ }
681
+ declare const _Form: ({ unstyled, maxWidth, ...props }: FormProps) => react_jsx_runtime.JSX.Element;
682
+
613
683
  interface GridAreaProps {
614
684
  /**
615
685
  * Name of the grid area slot.
@@ -655,6 +725,28 @@ interface HeaderProps extends Omit<RAC.HeadingProps, 'children'> {
655
725
  }
656
726
  declare const _Header: ({ variant, size, ...props }: HeaderProps) => react_jsx_runtime.JSX.Element;
657
727
 
728
+ interface HeadlineProps extends AriaLabelingProps, TextAlignProp {
729
+ /**
730
+ * Set the color of the headline.
731
+ */
732
+ color?: string;
733
+ variant?: string;
734
+ size?: string;
735
+ /**
736
+ * Set a different level.
737
+ */
738
+ level?: '1' | '2' | '3' | '4' | '5' | '6' | 1 | 2 | 3 | 4 | 5 | 6;
739
+ /**
740
+ * Children of the component.
741
+ */
742
+ children?: ReactNode;
743
+ /**
744
+ * A slot to place the element in.
745
+ */
746
+ slot?: string;
747
+ }
748
+ declare const _Headline: ({ variant, size, children, align, color, level, ...props }: HeadlineProps) => react_jsx_runtime.JSX.Element;
749
+
658
750
  interface ImageProps extends Pick<HtmlProps<'img'>, 'src' | 'srcSet' | 'sizes' | 'slot' | 'title' | 'height' | 'width' | 'role' | 'datatype'>, ObjectFitProp, ObjectPositionProp {
659
751
  variant?: string;
660
752
  size?: string;
@@ -973,20 +1065,105 @@ declare const SectionMessage: {
973
1065
  Content: ({ children, }: SectionMessageContentProps) => react_jsx_runtime.JSX.Element;
974
1066
  };
975
1067
 
976
- type PickedProps = 'autoFocus' | 'isOptionDisabled' | 'noOptionsMessage' | 'onBlur' | 'onFocus' | 'aria-errormessage' | 'aria-invalid' | 'aria-label' | 'aria-labelledby' | 'aria-live' | 'ariaLiveMessages';
977
- interface MultipleSelectProps extends Pick<FieldBaseProps<'label'>, 'width' | 'size' | 'variant' | 'label' | 'description' | 'errorMessage'>, Pick<Props, PickedProps> {
1068
+ interface MultipleSelectProps extends Pick<FieldBaseProps<'label'>, 'width' | 'size' | 'variant' | 'label' | 'description' | 'errorMessage'> {
1069
+ /**
1070
+ * If the select should be disabled.
1071
+ *
1072
+ * @default false
1073
+ */
978
1074
  disabled?: boolean;
1075
+ /**
1076
+ * If the select should be required.
1077
+ *
1078
+ * @default false
1079
+ */
979
1080
  required?: boolean;
1081
+ /**
1082
+ * If the select should be read only.
1083
+ *
1084
+ * @default false
1085
+ */
980
1086
  readOnly?: boolean;
1087
+ /**
1088
+ * If the select should throw an error.
1089
+ *
1090
+ * @default false
1091
+ */
981
1092
  error?: boolean;
1093
+ /**
1094
+ * The items of the select.
1095
+ */
982
1096
  items?: Props['options'];
1097
+ /**
1098
+ * Set a error message for the select.
1099
+ */
983
1100
  errorMessage?: string | ((validation: ValidationResult) => string);
1101
+ /**
1102
+ * The placdeholder of the select when it is empty.
1103
+ */
984
1104
  placeholder?: string;
1105
+ /**
1106
+ * Items that should be selected by default (uncontrolled).
1107
+ */
985
1108
  defaultSelectedItems?: Props['defaultValue'];
1109
+ /**
1110
+ * Selected items (controlled):
1111
+ */
986
1112
  selectedItems?: Props['value'];
1113
+ /**
1114
+ * Input text that should be set by default.
1115
+ */
987
1116
  defaultValue?: Props['defaultInputValue'];
1117
+ /**
1118
+ * Handler that is called when the input changes.
1119
+ */
988
1120
  onChange?: Props['onInputChange'];
1121
+ /**
1122
+ * Handler that is called when the selection changes.
1123
+ */
989
1124
  onSelectionChange?: Props['onChange'];
1125
+ /** Focus the control when it is mounted */
1126
+ autoFocus?: Props['autoFocus'];
1127
+ /**
1128
+ * Override the built-in logic to detect whether an option is disabled
1129
+ * */
1130
+ isOptionDisabled?: Props['isOptionDisabled'];
1131
+ /**
1132
+ * Text to display when there are no options
1133
+ * */
1134
+ noOptionsMessage?: Props['noOptionsMessage'];
1135
+ /**
1136
+ * Handle blur events on the control
1137
+ */
1138
+ onBlur?: Props['onBlur'];
1139
+ /**
1140
+ * Handle focus events on the control
1141
+ */
1142
+ onFocus?: Props['onFocus'];
1143
+ /**
1144
+ * HTML ID of an element containing an error message related to the input*
1145
+ */
1146
+ 'aria-errormessage'?: Props['aria-errormessage'];
1147
+ /**
1148
+ * Indicate if the value entered in the field is invalid *
1149
+ */
1150
+ 'aria-invalid'?: Props['aria-invalid'];
1151
+ /**
1152
+ * Aria label (for assistive tech)
1153
+ */
1154
+ 'aria-label'?: Props['aria-label'];
1155
+ /**
1156
+ * HTML ID of an element that should be used as the label (for assistive tech)
1157
+ */
1158
+ 'aria-labelledby'?: Props['aria-labelledby'];
1159
+ /**
1160
+ * Used to set the priority with which screen reader should treat updates to live regions. The possible settings are: off, polite (default) or assertive
1161
+ */
1162
+ 'aria-live'?: Props['aria-live'];
1163
+ /**
1164
+ * Customise the messages used by the aria-live component
1165
+ */
1166
+ ariaLiveMessages?: Props['ariaLiveMessages'];
990
1167
  }
991
1168
  declare const Multiselect: ({ disabled, readOnly, items, selectedItems, defaultSelectedItems, defaultValue, error, errorMessage, size, variant, placeholder, description, onChange, onSelectionChange, ...rest }: MultipleSelectProps) => react_jsx_runtime.JSX.Element;
992
1169
 
@@ -1150,11 +1327,11 @@ interface PaginationProps {
1150
1327
  */
1151
1328
  onChange?: (page: number) => void;
1152
1329
  /**
1153
- * Labels for the pagination controls.
1330
+ * Labels for the pagination controls (Previous and Next button).
1154
1331
  */
1155
1332
  controlLabels?: [string, string];
1156
1333
  }
1157
- declare const _Pagination: ({ defaultPage, page, totalItems, pageSize, onChange, controlLabels, }: PaginationProps) => react_jsx_runtime.JSX.Element;
1334
+ declare const _Pagination: ({ defaultPage, page, totalItems, pageSize, ...props }: PaginationProps) => react_jsx_runtime.JSX.Element;
1158
1335
 
1159
1336
  interface MarigoldProviderProps<T extends Theme> extends ThemeProviderProps<T> {
1160
1337
  }
@@ -1428,6 +1605,9 @@ interface SliderProps<T> extends Omit<RAC.SliderProps<T>, 'isDisabled' | 'orient
1428
1605
  * @deprecated Will be removed in the next major version. Use `label` prop instead.
1429
1606
  */
1430
1607
  children?: ReactNode;
1608
+ /**
1609
+ * Set the label of the slider.
1610
+ */
1431
1611
  label?: string;
1432
1612
  }
1433
1613
  declare const _Slider: react__default.ForwardRefExoticComponent<SliderProps<number | number[]> & react__default.RefAttributes<HTMLDivElement>>;
@@ -1461,7 +1641,15 @@ type RemovedProps$6 = 'className' | 'isDisabled' | 'isReadOnly' | 'isSelected' |
1461
1641
  interface SwitchProps extends Omit<RAC.SwitchProps, RemovedProps$6> {
1462
1642
  variant?: string;
1463
1643
  size?: string;
1644
+ /**
1645
+ * The children of the switch.
1646
+ * @deprecated Will be removed in the next major version. Use `label` prop instead.
1647
+ */
1464
1648
  children?: ReactNode;
1649
+ /**
1650
+ * Set the label of the switch.
1651
+ */
1652
+ label?: ReactNode;
1465
1653
  /**
1466
1654
  * Sets the width of the field. You can see allowed tokens here: https://tailwindcss.com/docs/width
1467
1655
  * @default full
@@ -1735,10 +1923,6 @@ interface TagGroupProps extends Omit<RAC.TagGroupProps, RemovedProps$1>, Pick<Ta
1735
1923
  allowsRemoving?: boolean;
1736
1924
  }
1737
1925
 
1738
- interface CloseButtonProps {
1739
- className: string;
1740
- }
1741
- declare const CloseButton: ({ className }: CloseButtonProps) => react_jsx_runtime.JSX.Element;
1742
1926
  type RemovedProps = 'className' | 'style' | 'isDisabled';
1743
1927
  interface TagProps extends Omit<RAC.TagProps, RemovedProps> {
1744
1928
  variant?: string;
@@ -1794,4 +1978,4 @@ declare const _Tabs: {
1794
1978
  Item: (props: TabProps) => react_jsx_runtime.JSX.Element;
1795
1979
  };
1796
1980
 
1797
- export { Accordion, AccordionItem, type AccordionProps, ActionMenu, type GridAreaProps as AreaProps, Aside, type AsideProps, Aspect, type AspectProps, _Autocomplete as Autocomplete, type AutocompleteProps, Badge, type BadgeProps, Body, type BodyProps, 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, CloseButton, type ColumnProps, Columns, type ColumnsProps, _ComboBox as ComboBox, type ComboBoxProps, Container, type ContainerProps, _DateField as DateField, type DateFieldProps, _DatePicker as DatePicker, type DatePickerProps, _Dialog as Dialog, type DialogProps, type DisclosureProps, _Divider as Divider, type DividerProps, FieldBase, type FieldBaseProps, FieldGroup, FieldGroupContext, type FieldGroupContextProps, type FieldGroupProps, Footer, type FooterProps, Grid, type GridProps, _Header as Header, type HeaderProps, _Headline as Headline, type HeadlineProps, Image, type ImageProps, 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, 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$k 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, type SplitProps, 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, _Tooltip as Tooltip, type TooltipProps, Underlay, type UnderlayProps, XLoader, type XLoaderProps, _Calendar, gridColsAlign, gridColumn, useFieldGroupContext, usePortalContainer };
1981
+ export { Accordion, AccordionItem, type AccordionProps, ActionMenu, type GridAreaProps as AreaProps, Aside, type AsideProps, Aspect, type AspectProps, _Autocomplete as Autocomplete, type AutocompleteProps, Badge, type BadgeProps, Body, type BodyProps, 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, _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, FieldGroup, FieldGroupContext, type FieldGroupContextProps, type FieldGroupProps, Footer, type FooterProps, _Form as Form, type FormProps, Grid, type GridProps, _Header as Header, type HeaderProps, _Headline as Headline, type HeadlineProps, Image, type ImageProps, 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, 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$l 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, type SplitProps, 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, _Tooltip as Tooltip, type TooltipProps, Underlay, type UnderlayProps, XLoader, type XLoaderProps, _Calendar, gridColsAlign, gridColumn, useFieldGroupContext, usePortalContainer };