@marigold/components 13.0.0 → 14.1.1
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 +166 -85
- package/dist/index.d.ts +166 -85
- package/dist/index.js +1448 -1256
- package/dist/index.mjs +1039 -837
- package/package.json +30 -29
package/dist/index.d.mts
CHANGED
|
@@ -4,10 +4,10 @@ export { useAsyncList, useListData } from '@react-stately/data';
|
|
|
4
4
|
import { GapSpaceProp, AspectProp, WidthProp, PaddingSpaceProp, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp, PaddingSpacePropX, PaddingSpacePropY, PlaceItemsProp, MaxWidthProp, HeightProp, alignment, TextAlignProp, ObjectFitProp, ObjectPositionProp, Theme, ThemeProviderProps, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp } from '@marigold/system';
|
|
5
5
|
export { DateFormat, NumericFormat, ThemeProvider, useTheme } from '@marigold/system';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
|
-
import RAC, { ValidationResult, Key, DialogProps as DialogProps$1, DateValue, SlotProps, TagListProps, ProgressBarProps, TimeValue } from 'react-aria-components';
|
|
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
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, Dispatch, SetStateAction, JSX } from 'react';
|
|
10
|
+
import react__default, { ReactNode, ReactElement, ElementType, ComponentPropsWithRef, ForwardRefExoticComponent, RefAttributes, Key as Key$1, CSSProperties, PropsWithChildren, Dispatch, SetStateAction, JSX } from 'react';
|
|
11
11
|
import { AriaRegionProps, NonZeroPercentage, DistributiveOmit, HtmlProps, AriaLabelingProps } from '@marigold/types';
|
|
12
12
|
import { AriaLandmarkRole } from '@react-aria/landmark';
|
|
13
13
|
import { Props } from 'react-select';
|
|
@@ -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$
|
|
21
|
-
interface DisclosureProps extends Omit<RAC.DisclosureProps, RemovedProps$
|
|
20
|
+
type RemovedProps$y = 'isDisabled' | 'isExpanded';
|
|
21
|
+
interface DisclosureProps extends Omit<RAC.DisclosureProps, RemovedProps$y> {
|
|
22
22
|
/** Whether the item is disabled. */
|
|
23
23
|
disabled?: RAC.DisclosureProps['isDisabled'];
|
|
24
24
|
/** Whether the item is expanded (controlled). */
|
|
@@ -34,8 +34,8 @@ interface AccordionHeaderProps {
|
|
|
34
34
|
children?: ReactNode;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
type RemovedProps$
|
|
38
|
-
interface AccordionProps extends Omit<RAC.DisclosureGroupProps, RemovedProps$
|
|
37
|
+
type RemovedProps$x = 'isDisabled';
|
|
38
|
+
interface AccordionProps extends Omit<RAC.DisclosureGroupProps, RemovedProps$x> {
|
|
39
39
|
/** Whether all items are disabled. */
|
|
40
40
|
disabled?: RAC.DisclosureGroupProps['isDisabled'];
|
|
41
41
|
variant?: string;
|
|
@@ -143,8 +143,8 @@ interface ListBoxComponent extends ForwardRefExoticComponent<ListBoxProps & RefA
|
|
|
143
143
|
}
|
|
144
144
|
declare const _ListBox: ListBoxComponent;
|
|
145
145
|
|
|
146
|
-
type RemovedProps$
|
|
147
|
-
interface AutocompleteProps extends Omit<RAC.ComboBoxProps<object>, RemovedProps$
|
|
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
148
|
/**
|
|
149
149
|
* The value of the input (uncontrolled).
|
|
150
150
|
*/
|
|
@@ -211,8 +211,8 @@ interface AutocompleteComponent extends ForwardRefExoticComponent<AutocompletePr
|
|
|
211
211
|
}
|
|
212
212
|
declare const _Autocomplete: AutocompleteComponent;
|
|
213
213
|
|
|
214
|
-
type RemovedProps$
|
|
215
|
-
interface ComboBoxProps extends Omit<RAC.ComboBoxProps<any>, RemovedProps$
|
|
214
|
+
type RemovedProps$v = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'defaultInputValue' | 'inputValue' | 'onInputChange';
|
|
215
|
+
interface ComboBoxProps extends Omit<RAC.ComboBoxProps<any>, RemovedProps$v>, Pick<FieldBaseProps<'label'>, 'width' | 'label' | 'description' | 'errorMessage'> {
|
|
216
216
|
variant?: string;
|
|
217
217
|
size?: string;
|
|
218
218
|
/**
|
|
@@ -293,8 +293,8 @@ interface BodyProps extends Omit<HtmlProps<'section'>, 'className'> {
|
|
|
293
293
|
}
|
|
294
294
|
declare const Body: ({ children, variant, size, ...props }: BodyProps) => react_jsx_runtime.JSX.Element;
|
|
295
295
|
|
|
296
|
-
type RemovedProps$
|
|
297
|
-
interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$
|
|
296
|
+
type RemovedProps$u = 'isDisabled' | 'isPending' | 'className' | 'style';
|
|
297
|
+
interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$u> {
|
|
298
298
|
variant?: string;
|
|
299
299
|
size?: string;
|
|
300
300
|
/**
|
|
@@ -302,10 +302,6 @@ interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$r> {
|
|
|
302
302
|
* @default false
|
|
303
303
|
*/
|
|
304
304
|
fullWidth?: boolean;
|
|
305
|
-
/**
|
|
306
|
-
* Class of the component.
|
|
307
|
-
*/
|
|
308
|
-
className?: string;
|
|
309
305
|
/**
|
|
310
306
|
* Children of the component
|
|
311
307
|
*/
|
|
@@ -352,8 +348,8 @@ interface CenterProps extends GapSpaceProp, AriaRegionProps {
|
|
|
352
348
|
}
|
|
353
349
|
declare const Center: ({ maxWidth, space, children, ...props }: CenterProps) => react_jsx_runtime.JSX.Element;
|
|
354
350
|
|
|
355
|
-
type RemovedProps$
|
|
356
|
-
interface CheckboxGroupProps extends Omit<RAC.CheckboxGroupProps, RemovedProps$
|
|
351
|
+
type RemovedProps$t = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly';
|
|
352
|
+
interface CheckboxGroupProps extends Omit<RAC.CheckboxGroupProps, RemovedProps$t>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
357
353
|
/**
|
|
358
354
|
* The children of the component
|
|
359
355
|
*/
|
|
@@ -393,8 +389,8 @@ interface CheckboxGroupProps extends Omit<RAC.CheckboxGroupProps, RemovedProps$q
|
|
|
393
389
|
}
|
|
394
390
|
declare const _CheckboxGroup: ({ children, variant, size, required, disabled, readOnly, error, width, orientation, ...rest }: CheckboxGroupProps) => react_jsx_runtime.JSX.Element;
|
|
395
391
|
|
|
396
|
-
type RemovedProps$
|
|
397
|
-
interface CheckboxProps extends Omit<RAC.CheckboxProps, RemovedProps$
|
|
392
|
+
type RemovedProps$s = 'children' | 'className' | 'style' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'isSelected' | 'isIndeterminate' | 'defaultSelected';
|
|
393
|
+
interface CheckboxProps extends Omit<RAC.CheckboxProps, RemovedProps$s> {
|
|
398
394
|
variant?: string;
|
|
399
395
|
size?: string;
|
|
400
396
|
/**
|
|
@@ -432,6 +428,7 @@ interface CheckboxProps extends Omit<RAC.CheckboxProps, RemovedProps$p> {
|
|
|
432
428
|
error?: boolean;
|
|
433
429
|
/**
|
|
434
430
|
* Set the label of the checkbox.
|
|
431
|
+
* @default none
|
|
435
432
|
*
|
|
436
433
|
*/
|
|
437
434
|
label?: ReactNode;
|
|
@@ -581,14 +578,14 @@ interface DialogTitleProps {
|
|
|
581
578
|
}
|
|
582
579
|
declare const DialogTitle: ({ variant, size, children }: DialogTitleProps) => react_jsx_runtime.JSX.Element;
|
|
583
580
|
|
|
584
|
-
type RemovedProps$
|
|
581
|
+
type RemovedProps$r = 'children' | 'isOpen' | 'isDismissable' | 'isKeyboardDismissDisabled';
|
|
585
582
|
interface ModalProps$1 extends RAC.ModalOverlayProps {
|
|
586
583
|
open?: boolean;
|
|
587
584
|
dismissable?: boolean;
|
|
588
585
|
keyboardDismissable?: boolean;
|
|
589
586
|
size?: string;
|
|
590
587
|
}
|
|
591
|
-
interface DialogTriggerProps extends Omit<RAC.DialogTriggerProps, 'isOpen'>, Omit<ModalProps$1, RemovedProps$
|
|
588
|
+
interface DialogTriggerProps extends Omit<RAC.DialogTriggerProps, 'isOpen'>, Omit<ModalProps$1, RemovedProps$r> {
|
|
592
589
|
}
|
|
593
590
|
declare const _DialogTrigger: ({ open, dismissable, keyboardDismissable, ...rest }: DialogTriggerProps) => ReactNode;
|
|
594
591
|
|
|
@@ -624,8 +621,8 @@ interface DialogProps extends Omit<RAC.DialogProps, 'className' | 'style'> {
|
|
|
624
621
|
}
|
|
625
622
|
declare const _Dialog: DialogComponent;
|
|
626
623
|
|
|
627
|
-
type RemovedProps$
|
|
628
|
-
interface DividerProps extends Omit<RAC.SeparatorProps, RemovedProps$
|
|
624
|
+
type RemovedProps$q = 'className' | 'style';
|
|
625
|
+
interface DividerProps extends Omit<RAC.SeparatorProps, RemovedProps$q> {
|
|
629
626
|
variant?: string;
|
|
630
627
|
}
|
|
631
628
|
declare const _Divider: ({ variant, ...props }: DividerProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -826,8 +823,8 @@ interface InlineProps extends GapSpaceProp, AriaRegionProps {
|
|
|
826
823
|
}
|
|
827
824
|
declare const Inline: ({ space, alignX, alignY, children, ...props }: InlineProps) => react_jsx_runtime.JSX.Element;
|
|
828
825
|
|
|
829
|
-
type RemovedProps$
|
|
830
|
-
interface InputProps extends Omit<RAC.InputProps, RemovedProps$
|
|
826
|
+
type RemovedProps$p = 'className' | 'style' | 'size';
|
|
827
|
+
interface InputProps extends Omit<RAC.InputProps, RemovedProps$p> {
|
|
831
828
|
icon?: ReactElement<any>;
|
|
832
829
|
action?: ReactElement<any>;
|
|
833
830
|
variant?: string;
|
|
@@ -836,8 +833,8 @@ interface InputProps extends Omit<RAC.InputProps, RemovedProps$m> {
|
|
|
836
833
|
}
|
|
837
834
|
declare const _Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>;
|
|
838
835
|
|
|
839
|
-
type RemovedProps$
|
|
840
|
-
interface DateFieldProps extends Omit<RAC.DateFieldProps<DateValue>, RemovedProps$
|
|
836
|
+
type RemovedProps$o = 'className' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'isReadOnly' | 'label' | 'children' | 'style';
|
|
837
|
+
interface DateFieldProps extends Omit<RAC.DateFieldProps<DateValue>, RemovedProps$o>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
841
838
|
variant?: string;
|
|
842
839
|
size?: string;
|
|
843
840
|
/**
|
|
@@ -872,8 +869,8 @@ interface DateFieldProps extends Omit<RAC.DateFieldProps<DateValue>, RemovedProp
|
|
|
872
869
|
}
|
|
873
870
|
declare const _DateField: react.ForwardRefExoticComponent<DateFieldProps & react.RefAttributes<HTMLInputElement>>;
|
|
874
871
|
|
|
875
|
-
type RemovedProps$
|
|
876
|
-
interface CalendarProps extends Omit<RAC.CalendarProps<DateValue>, RemovedProps$
|
|
872
|
+
type RemovedProps$n = 'visibleDuration' | 'pageBehavior' | 'isDateUnavailable' | 'isDisabled' | 'isReadOnly' | 'isInvalid' | 'errorMessage' | 'className' | 'style';
|
|
873
|
+
interface CalendarProps extends Omit<RAC.CalendarProps<DateValue>, RemovedProps$n> {
|
|
877
874
|
/**
|
|
878
875
|
* Disables the Calendar.
|
|
879
876
|
* @default false
|
|
@@ -887,7 +884,8 @@ interface CalendarProps extends Omit<RAC.CalendarProps<DateValue>, RemovedProps$
|
|
|
887
884
|
variant?: string;
|
|
888
885
|
size?: string;
|
|
889
886
|
/**
|
|
890
|
-
*
|
|
887
|
+
* Sets the width of the calendar. You can see allowed tokens here: https://tailwindcss.com/docs/width
|
|
888
|
+
* @default fit
|
|
891
889
|
*/
|
|
892
890
|
width?: WidthProp['width'];
|
|
893
891
|
/**
|
|
@@ -895,10 +893,10 @@ interface CalendarProps extends Omit<RAC.CalendarProps<DateValue>, RemovedProps$
|
|
|
895
893
|
*/
|
|
896
894
|
dateUnavailable?: RAC.CalendarProps<DateValue>['isDateUnavailable'];
|
|
897
895
|
}
|
|
898
|
-
declare const _Calendar: ({ disabled, readOnly, size, variant, dateUnavailable, ...rest }: CalendarProps) => react_jsx_runtime.JSX.Element;
|
|
896
|
+
declare const _Calendar: ({ disabled, readOnly, size, variant, width, dateUnavailable, ...rest }: CalendarProps) => react_jsx_runtime.JSX.Element;
|
|
899
897
|
|
|
900
|
-
type RemovedProps$
|
|
901
|
-
interface DatePickerProps extends Omit<RAC.DatePickerProps<DateValue>, RemovedProps$
|
|
898
|
+
type RemovedProps$m = 'isDisabled' | 'isDateUnavailable' | 'isReadOnly' | 'isRequired' | 'isInvalid' | 'style' | 'className' | 'isOpen';
|
|
899
|
+
interface DatePickerProps extends Omit<RAC.DatePickerProps<DateValue>, RemovedProps$m>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
902
900
|
/**
|
|
903
901
|
* Callback that is called for each date of the calendar. If it returns true, then the date is unavailable.
|
|
904
902
|
*/
|
|
@@ -962,15 +960,15 @@ type InsetProps = (AriaRegionProps & {
|
|
|
962
960
|
});
|
|
963
961
|
declare const Inset: ({ space, spaceX, spaceY, children }: InsetProps) => react_jsx_runtime.JSX.Element;
|
|
964
962
|
|
|
965
|
-
type RemovedProps$
|
|
966
|
-
interface LabelProps extends Omit<RAC.LabelProps, RemovedProps$
|
|
963
|
+
type RemovedProps$l = 'className';
|
|
964
|
+
interface LabelProps extends Omit<RAC.LabelProps, RemovedProps$l> {
|
|
967
965
|
size?: string;
|
|
968
966
|
variant?: string;
|
|
969
967
|
}
|
|
970
968
|
declare const _Label: ({ size, variant, children, ...props }: LabelProps) => react_jsx_runtime.JSX.Element;
|
|
971
969
|
|
|
972
|
-
type RemovedProps$
|
|
973
|
-
interface LinkProps extends Omit<RAC.LinkProps, RemovedProps$
|
|
970
|
+
type RemovedProps$k = 'className' | 'isDisabled' | 'slot';
|
|
971
|
+
interface LinkProps extends Omit<RAC.LinkProps, RemovedProps$k> {
|
|
974
972
|
variant?: string;
|
|
975
973
|
size?: string;
|
|
976
974
|
/**
|
|
@@ -1006,25 +1004,24 @@ declare const List: {
|
|
|
1006
1004
|
Item: ({ children, ...props }: ListItemProps) => react_jsx_runtime.JSX.Element;
|
|
1007
1005
|
};
|
|
1008
1006
|
|
|
1009
|
-
type RemovedProps$
|
|
1010
|
-
interface MenuSectionProps extends Omit<RAC.SectionProps<object>, RemovedProps$
|
|
1007
|
+
type RemovedProps$j = 'className' | 'style' | 'children';
|
|
1008
|
+
interface MenuSectionProps extends Omit<RAC.SectionProps<object>, RemovedProps$j> {
|
|
1011
1009
|
title?: string;
|
|
1012
1010
|
children: ReactNode;
|
|
1013
1011
|
}
|
|
1014
1012
|
|
|
1015
|
-
type RemovedProps$
|
|
1016
|
-
type MenuItemProps = Omit<RAC.MenuItemProps, RemovedProps$
|
|
1013
|
+
type RemovedProps$i = 'style' | 'className';
|
|
1014
|
+
type MenuItemProps = Omit<RAC.MenuItemProps, RemovedProps$i>;
|
|
1017
1015
|
|
|
1018
1016
|
interface PopoverProps extends Omit<RAC.PopoverProps, 'isOpen' | 'isKeyboardDismissDisabled' | 'style' | 'className' | 'children'> {
|
|
1019
1017
|
keyboardDismissDisabled?: boolean;
|
|
1020
1018
|
open?: boolean;
|
|
1021
|
-
container?: Element;
|
|
1022
1019
|
children: ReactNode;
|
|
1023
1020
|
}
|
|
1024
1021
|
declare const _Popover: react.ForwardRefExoticComponent<PopoverProps & react.RefAttributes<HTMLDivElement>>;
|
|
1025
1022
|
|
|
1026
|
-
type RemovedProps$
|
|
1027
|
-
interface MenuProps extends Omit<RAC.MenuTriggerProps, RemovedProps$
|
|
1023
|
+
type RemovedProps$h = 'isOpen' | 'className' | 'style' | 'children';
|
|
1024
|
+
interface MenuProps extends Omit<RAC.MenuTriggerProps, RemovedProps$h>, Omit<RAC.MenuProps<object>, RemovedProps$h> {
|
|
1028
1025
|
/**
|
|
1029
1026
|
* Whether the menu is open.
|
|
1030
1027
|
* @default false
|
|
@@ -1060,12 +1057,12 @@ declare const _Menu: {
|
|
|
1060
1057
|
Section: ({ children, title, ...props }: MenuSectionProps) => react_jsx_runtime.JSX.Element;
|
|
1061
1058
|
};
|
|
1062
1059
|
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
}
|
|
1068
|
-
|
|
1060
|
+
type ActionMenuProps = Omit<MenuProps, 'label'>;
|
|
1061
|
+
declare const ActionMenu: {
|
|
1062
|
+
({ children, ...props }: ActionMenuProps): react_jsx_runtime.JSX.Element;
|
|
1063
|
+
Item: ({ children, ...props }: MenuItemProps) => react_jsx_runtime.JSX.Element;
|
|
1064
|
+
Section: ({ children, title, ...props }: MenuSectionProps) => react_jsx_runtime.JSX.Element;
|
|
1065
|
+
};
|
|
1069
1066
|
|
|
1070
1067
|
interface SectionMessageContentProps {
|
|
1071
1068
|
/**
|
|
@@ -1215,8 +1212,8 @@ interface MultipleSelectProps extends Pick<FieldBaseProps<'label'>, 'width' | 's
|
|
|
1215
1212
|
}
|
|
1216
1213
|
declare const Multiselect: ({ disabled, readOnly, items, selectedItems, defaultSelectedItems, defaultValue, error, errorMessage, size, variant, placeholder, description, onChange, onSelectionChange, width, ...rest }: MultipleSelectProps) => react_jsx_runtime.JSX.Element;
|
|
1217
1214
|
|
|
1218
|
-
type RemovedProps$
|
|
1219
|
-
interface NumberFieldProps extends Omit<RAC.NumberFieldProps, RemovedProps$
|
|
1215
|
+
type RemovedProps$g = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'size';
|
|
1216
|
+
interface NumberFieldProps extends Omit<RAC.NumberFieldProps, RemovedProps$g>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
1220
1217
|
variant?: string;
|
|
1221
1218
|
size?: string;
|
|
1222
1219
|
/**
|
|
@@ -1384,18 +1381,26 @@ declare const _Pagination: ({ defaultPage, page, totalItems, pageSize, ...props
|
|
|
1384
1381
|
type MarigoldProviderProps<T extends Theme> = ThemeProviderProps<T>;
|
|
1385
1382
|
declare function MarigoldProvider<T extends Theme>({ children, className, theme, }: MarigoldProviderProps<T>): react_jsx_runtime.JSX.Element;
|
|
1386
1383
|
|
|
1387
|
-
|
|
1388
|
-
|
|
1384
|
+
interface OverlayContainerProps extends PropsWithChildren {
|
|
1385
|
+
/**
|
|
1386
|
+
* The id of the container element where the overlay should be rendered.
|
|
1387
|
+
* If not provided, the overlay will be rendered in the body.
|
|
1388
|
+
*
|
|
1389
|
+
* Note that the container must be present in the DOM before the overlay is rendered.
|
|
1390
|
+
*/
|
|
1391
|
+
container?: string;
|
|
1392
|
+
}
|
|
1393
|
+
declare const OverlayContainerProvider: ({ container, children, }: OverlayContainerProps) => react_jsx_runtime.JSX.Element;
|
|
1389
1394
|
|
|
1390
|
-
type RemovedProps$
|
|
1391
|
-
interface RadioGroupProps extends Omit<RAC.RadioGroupProps, RemovedProps$
|
|
1395
|
+
type RemovedProps$f = 'className' | 'style' | 'isDisabled' | 'isInvalid' | 'isRequired' | 'isSelected';
|
|
1396
|
+
interface RadioGroupProps extends Omit<RAC.RadioGroupProps, RemovedProps$f> {
|
|
1392
1397
|
variant?: string;
|
|
1393
1398
|
size?: string;
|
|
1394
1399
|
/**
|
|
1395
1400
|
* Set the label of the radio group.
|
|
1396
1401
|
* @default none
|
|
1397
1402
|
*/
|
|
1398
|
-
label?:
|
|
1403
|
+
label?: ReactNode;
|
|
1399
1404
|
/**
|
|
1400
1405
|
* Set the radio group help text.
|
|
1401
1406
|
* @default none
|
|
@@ -1447,8 +1452,8 @@ interface RadioGroupProps extends Omit<RAC.RadioGroupProps, RemovedProps$c> {
|
|
|
1447
1452
|
}
|
|
1448
1453
|
declare const _RadioGroup: ({ variant, size, label, error, disabled, required, readOnly, description, errorMessage, orientation, children, width, ...rest }: RadioGroupProps) => react_jsx_runtime.JSX.Element;
|
|
1449
1454
|
|
|
1450
|
-
type RemovedProps$
|
|
1451
|
-
interface RadioProps extends Omit<RAC.RadioProps, RemovedProps$
|
|
1455
|
+
type RemovedProps$e = 'className' | 'style' | 'children' | 'isDisabled';
|
|
1456
|
+
interface RadioProps extends Omit<RAC.RadioProps, RemovedProps$e> {
|
|
1452
1457
|
variant?: string;
|
|
1453
1458
|
size?: string;
|
|
1454
1459
|
/**
|
|
@@ -1473,8 +1478,8 @@ interface RadioComponent extends ForwardRefExoticComponent<RadioProps & RefAttri
|
|
|
1473
1478
|
Group: typeof _RadioGroup;
|
|
1474
1479
|
}
|
|
1475
1480
|
|
|
1476
|
-
type RemovedProps$
|
|
1477
|
-
interface SearchFieldProps extends Omit<RAC.SearchFieldProps, RemovedProps$
|
|
1481
|
+
type RemovedProps$d = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'value' | 'defaultValue';
|
|
1482
|
+
interface SearchFieldProps extends Omit<RAC.SearchFieldProps, RemovedProps$d>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
1478
1483
|
/**
|
|
1479
1484
|
* Action element to display in the search field.
|
|
1480
1485
|
*/
|
|
@@ -1529,7 +1534,7 @@ interface SelectProps<T extends object> extends Omit<RAC.SelectProps<T>, RemoveP
|
|
|
1529
1534
|
/**
|
|
1530
1535
|
* Set a label for the select.
|
|
1531
1536
|
*/
|
|
1532
|
-
label?:
|
|
1537
|
+
label?: ReactNode;
|
|
1533
1538
|
/**
|
|
1534
1539
|
* Set a description for the select.
|
|
1535
1540
|
*/
|
|
@@ -1599,8 +1604,13 @@ interface SelectComponent extends ForwardRefExoticComponent<SelectProps<object>
|
|
|
1599
1604
|
}
|
|
1600
1605
|
declare const _Select: SelectComponent;
|
|
1601
1606
|
|
|
1602
|
-
|
|
1603
|
-
|
|
1607
|
+
interface SelectListAction {
|
|
1608
|
+
children: ReactNode;
|
|
1609
|
+
}
|
|
1610
|
+
declare const SelectListAction: ({ children }: SelectListAction) => react_jsx_runtime.JSX.Element;
|
|
1611
|
+
|
|
1612
|
+
type RemovedProps$c = 'className' | 'style' | 'isDisabled';
|
|
1613
|
+
interface SelectListItemProps extends Omit<RAC.GridListItemProps<object>, RemovedProps$c> {
|
|
1604
1614
|
children?: ReactNode;
|
|
1605
1615
|
/**
|
|
1606
1616
|
* Whether the item is disabled.
|
|
@@ -1622,6 +1632,7 @@ interface SelectListComponent extends ForwardRefExoticComponent<SelectListProps
|
|
|
1622
1632
|
* Items of the SelectList.
|
|
1623
1633
|
*/
|
|
1624
1634
|
Item: typeof _SelectListItem;
|
|
1635
|
+
Action: typeof SelectListAction;
|
|
1625
1636
|
}
|
|
1626
1637
|
declare const _SelectList: SelectListComponent;
|
|
1627
1638
|
|
|
@@ -1690,8 +1701,8 @@ interface StackProps extends GapSpaceProp, AriaRegionProps {
|
|
|
1690
1701
|
}
|
|
1691
1702
|
declare const Stack: ({ children, space, stretch, alignX, alignY, asList, ...props }: StackProps) => react_jsx_runtime.JSX.Element;
|
|
1692
1703
|
|
|
1693
|
-
type RemovedProps$
|
|
1694
|
-
interface SwitchProps extends Omit<RAC.SwitchProps, RemovedProps$
|
|
1704
|
+
type RemovedProps$b = 'children' | 'className' | 'isDisabled' | 'isReadOnly' | 'isSelected' | 'children' | 'slot';
|
|
1705
|
+
interface SwitchProps extends Omit<RAC.SwitchProps, RemovedProps$b> {
|
|
1695
1706
|
variant?: string;
|
|
1696
1707
|
size?: string;
|
|
1697
1708
|
/**
|
|
@@ -1774,8 +1785,8 @@ interface Table {
|
|
|
1774
1785
|
Row: (props: RowProps) => JSX.Element;
|
|
1775
1786
|
}
|
|
1776
1787
|
|
|
1777
|
-
type RemovedProps$
|
|
1778
|
-
interface TextProps extends AriaLabelingProps, Omit<RAC.TextProps, RemovedProps$
|
|
1788
|
+
type RemovedProps$a = 'elementType' | keyof JSX.IntrinsicElements['div'] | keyof JSX.IntrinsicElements['span'] | keyof JSX.IntrinsicElements['p'];
|
|
1789
|
+
interface TextProps extends AriaLabelingProps, Omit<RAC.TextProps, RemovedProps$a>, TextAlignProp, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp {
|
|
1779
1790
|
/**
|
|
1780
1791
|
* The children of the component
|
|
1781
1792
|
*/
|
|
@@ -1799,8 +1810,8 @@ interface TextProps extends AriaLabelingProps, Omit<RAC.TextProps, RemovedProps$
|
|
|
1799
1810
|
}
|
|
1800
1811
|
declare const _Text: ({ variant, size, color, align, cursor, weight, fontSize, fontStyle, children, as, ...props }: TextProps) => react_jsx_runtime.JSX.Element;
|
|
1801
1812
|
|
|
1802
|
-
type RemovedProps$
|
|
1803
|
-
interface TextAreaProps extends Omit<RAC.TextFieldProps, RemovedProps$
|
|
1813
|
+
type RemovedProps$9 = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'value' | 'defaultValue';
|
|
1814
|
+
interface TextAreaProps extends Omit<RAC.TextFieldProps, RemovedProps$9>, Pick<RAC.TextAreaProps, 'rows'>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
1804
1815
|
variant?: string;
|
|
1805
1816
|
size?: string;
|
|
1806
1817
|
/**
|
|
@@ -1851,8 +1862,8 @@ interface TextAreaProps extends Omit<RAC.TextFieldProps, RemovedProps$6>, Pick<R
|
|
|
1851
1862
|
}
|
|
1852
1863
|
declare const _TextArea: react.ForwardRefExoticComponent<TextAreaProps & react.RefAttributes<HTMLTextAreaElement>>;
|
|
1853
1864
|
|
|
1854
|
-
type RemovedProps$
|
|
1855
|
-
interface TextFieldProps extends Omit<RAC.TextFieldProps, RemovedProps$
|
|
1865
|
+
type RemovedProps$8 = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'value' | 'defaultValue' | 'slot';
|
|
1866
|
+
interface TextFieldProps extends Omit<RAC.TextFieldProps, RemovedProps$8>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
1856
1867
|
variant?: string;
|
|
1857
1868
|
size?: string;
|
|
1858
1869
|
/**
|
|
@@ -1931,8 +1942,8 @@ interface TilesProps extends GapSpaceProp, AriaRegionProps {
|
|
|
1931
1942
|
}
|
|
1932
1943
|
declare const Tiles: ({ space, stretch, equalHeight, tilesWidth, children, ...props }: TilesProps) => react_jsx_runtime.JSX.Element;
|
|
1933
1944
|
|
|
1934
|
-
type RemovedProps$
|
|
1935
|
-
interface TooltipTriggerProps extends Omit<RAC.TooltipTriggerComponentProps, RemovedProps$
|
|
1945
|
+
type RemovedProps$7 = 'isDisabled' | 'isOpen' | 'children';
|
|
1946
|
+
interface TooltipTriggerProps extends Omit<RAC.TooltipTriggerComponentProps, RemovedProps$7> {
|
|
1936
1947
|
/**
|
|
1937
1948
|
* The children of the component.
|
|
1938
1949
|
*/
|
|
@@ -1947,8 +1958,8 @@ interface TooltipTriggerProps extends Omit<RAC.TooltipTriggerComponentProps, Rem
|
|
|
1947
1958
|
open?: boolean;
|
|
1948
1959
|
}
|
|
1949
1960
|
|
|
1950
|
-
type RemovedProps$
|
|
1951
|
-
interface TooltipProps extends Omit<RAC.TooltipProps, RemovedProps$
|
|
1961
|
+
type RemovedProps$6 = 'className' | 'isOpen' | 'style';
|
|
1962
|
+
interface TooltipProps extends Omit<RAC.TooltipProps, RemovedProps$6> {
|
|
1952
1963
|
/**
|
|
1953
1964
|
* The children of the component.
|
|
1954
1965
|
*/
|
|
@@ -1965,8 +1976,40 @@ declare const _Tooltip: {
|
|
|
1965
1976
|
Trigger: ({ delay, children, disabled, open, ...rest }: TooltipTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
1966
1977
|
};
|
|
1967
1978
|
|
|
1968
|
-
type
|
|
1969
|
-
|
|
1979
|
+
type ToastContentProps = {
|
|
1980
|
+
title: string;
|
|
1981
|
+
description?: string;
|
|
1982
|
+
variant?: 'success' | 'info' | 'warning' | 'error';
|
|
1983
|
+
};
|
|
1984
|
+
interface ToastProps {
|
|
1985
|
+
toast: {
|
|
1986
|
+
content: ToastContentProps;
|
|
1987
|
+
key: string;
|
|
1988
|
+
};
|
|
1989
|
+
}
|
|
1990
|
+
declare const Toast: ({ toast }: ToastProps) => react_jsx_runtime.JSX.Element;
|
|
1991
|
+
|
|
1992
|
+
declare const queue: UNSTABLE_ToastQueue<ToastContentProps>;
|
|
1993
|
+
interface ToastProviderProps extends Omit<RAC.ToastRegionProps<object>, RemovedProps$5> {
|
|
1994
|
+
position?: ToastPosition;
|
|
1995
|
+
}
|
|
1996
|
+
type RemovedProps$5 = 'children' | 'className' | 'style' | 'queue';
|
|
1997
|
+
type ToastPosition = 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | 'top' | 'bottom';
|
|
1998
|
+
declare const ToastProvider: ({ position }: ToastProviderProps) => react_jsx_runtime.JSX.Element;
|
|
1999
|
+
|
|
2000
|
+
declare function useToast(): {
|
|
2001
|
+
addToast: (options: {
|
|
2002
|
+
title: string;
|
|
2003
|
+
description?: string;
|
|
2004
|
+
variant?: "info" | "success" | "error" | "warning";
|
|
2005
|
+
timeout?: number;
|
|
2006
|
+
}) => string;
|
|
2007
|
+
clearToasts: () => void;
|
|
2008
|
+
removeToast: (key: string) => void;
|
|
2009
|
+
};
|
|
2010
|
+
|
|
2011
|
+
type RemovedProps$4 = 'className' | 'style' | 'children' | 'isRequired';
|
|
2012
|
+
interface TagGroupProps extends Omit<RAC.TagGroupProps, RemovedProps$4>, Pick<TagListProps<object>, 'items' | 'children'>, Pick<FieldBaseProps<'label'>, 'label' | 'description'> {
|
|
1970
2013
|
variant?: string;
|
|
1971
2014
|
size?: string;
|
|
1972
2015
|
/**
|
|
@@ -1984,8 +2027,8 @@ interface TagGroupProps extends Omit<RAC.TagGroupProps, RemovedProps$2>, Pick<Ta
|
|
|
1984
2027
|
emptyState?: TagListProps<object>['renderEmptyState'];
|
|
1985
2028
|
}
|
|
1986
2029
|
|
|
1987
|
-
type RemovedProps$
|
|
1988
|
-
interface TagProps extends Omit<RAC.TagProps, RemovedProps$
|
|
2030
|
+
type RemovedProps$3 = 'className' | 'style' | 'isDisabled';
|
|
2031
|
+
interface TagProps extends Omit<RAC.TagProps, RemovedProps$3> {
|
|
1989
2032
|
variant?: string;
|
|
1990
2033
|
size?: string;
|
|
1991
2034
|
children?: ReactNode;
|
|
@@ -1993,7 +2036,7 @@ interface TagProps extends Omit<RAC.TagProps, RemovedProps$1> {
|
|
|
1993
2036
|
}
|
|
1994
2037
|
declare const _Tag: {
|
|
1995
2038
|
({ variant, size, children, disabled, ...rest }: TagProps): react_jsx_runtime.JSX.Element;
|
|
1996
|
-
Group: ({
|
|
2039
|
+
Group: ({ items, children, emptyState, variant, size, name, ...rest }: TagGroupProps) => react_jsx_runtime.JSX.Element;
|
|
1997
2040
|
};
|
|
1998
2041
|
|
|
1999
2042
|
interface LoaderProps extends Pick<ProgressBarProps, 'id' | 'aria-label' | 'aria-labelledby' | 'aria-describedby' | 'aria-details'> {
|
|
@@ -2037,8 +2080,8 @@ declare const _Tabs: {
|
|
|
2037
2080
|
Item: (props: TabProps) => react_jsx_runtime.JSX.Element;
|
|
2038
2081
|
};
|
|
2039
2082
|
|
|
2040
|
-
type RemovedProps = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'slot';
|
|
2041
|
-
interface TimeFieldProps extends Omit<RAC.TimeFieldProps<TimeValue>, RemovedProps>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
2083
|
+
type RemovedProps$2 = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'slot';
|
|
2084
|
+
interface TimeFieldProps extends Omit<RAC.TimeFieldProps<TimeValue>, RemovedProps$2>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
2042
2085
|
variant?: string;
|
|
2043
2086
|
size?: string;
|
|
2044
2087
|
/**
|
|
@@ -2084,4 +2127,42 @@ interface TimeFieldProps extends Omit<RAC.TimeFieldProps<TimeValue>, RemovedProp
|
|
|
2084
2127
|
}
|
|
2085
2128
|
declare const _TimeField: react.ForwardRefExoticComponent<TimeFieldProps & react.RefAttributes<HTMLInputElement>>;
|
|
2086
2129
|
|
|
2087
|
-
|
|
2130
|
+
type RemovedProps$1 = 'className' | 'style';
|
|
2131
|
+
interface BreadcrumbsItemProps extends Omit<RAC.BreadcrumbProps, RemovedProps$1> {
|
|
2132
|
+
variant?: string;
|
|
2133
|
+
size?: string;
|
|
2134
|
+
/**
|
|
2135
|
+
* The content inside the breadcrumb.
|
|
2136
|
+
*/
|
|
2137
|
+
children: ReactNode;
|
|
2138
|
+
/**
|
|
2139
|
+
* Link for the breadcrumb item.
|
|
2140
|
+
*/
|
|
2141
|
+
href: string;
|
|
2142
|
+
}
|
|
2143
|
+
declare const BreadcrumbsItem: (_: BreadcrumbsItemProps) => null;
|
|
2144
|
+
|
|
2145
|
+
type RemovedProps = 'className' | 'style' | 'children' | 'isDisabled';
|
|
2146
|
+
interface BreadcrumbsProps extends Omit<BreadcrumbsProps$1<object>, RemovedProps> {
|
|
2147
|
+
variant?: string;
|
|
2148
|
+
size?: string;
|
|
2149
|
+
/**
|
|
2150
|
+
* Disables the breadcrumbs.
|
|
2151
|
+
* @default false
|
|
2152
|
+
*/
|
|
2153
|
+
disabled?: BreadcrumbsProps$1<object>['isDisabled'];
|
|
2154
|
+
/**
|
|
2155
|
+
* Maximum number of visible items before the breadcrumbs collapse.
|
|
2156
|
+
*/
|
|
2157
|
+
maxVisibleItems?: number;
|
|
2158
|
+
/**
|
|
2159
|
+
* The breadcrumb items to be displayed.
|
|
2160
|
+
*/
|
|
2161
|
+
children: react__default.ReactNode | react__default.ReactNode[];
|
|
2162
|
+
}
|
|
2163
|
+
interface BreadcrumbsComponent extends ForwardRefExoticComponent<BreadcrumbsProps & RefAttributes<HTMLOListElement>> {
|
|
2164
|
+
Item: typeof BreadcrumbsItem;
|
|
2165
|
+
}
|
|
2166
|
+
declare const _Breadcrumbs: BreadcrumbsComponent;
|
|
2167
|
+
|
|
2168
|
+
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, Body, type BodyProps, _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, 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, 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, ToastProvider, type ToastProviderProps, _Tooltip as Tooltip, type TooltipProps, Underlay, type UnderlayProps, XLoader, type XLoaderProps, _ContextualHelp, gridColsAlign, gridColumn, queue, useToast };
|