@marigold/components 16.0.0 → 16.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index.js → index.cjs} +263 -904
- package/dist/{index.d.ts → index.d.cts} +147 -152
- package/dist/index.d.mts +57 -62
- package/dist/index.mjs +303 -923
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { useAsyncList, useListData } from "@react-stately/data";
|
|
2
|
-
import { AspectProp, CursorProp, DateFormat, FontSizeProp, FontStyleProp, FontWeightProp, GapSpaceProp, HeightProp, MaxWidthProp, NumericFormat, PaddingBottomProp, PaddingLeftProp, PaddingRightProp, PaddingSpaceProp, PaddingSpacePropX, PaddingSpacePropY, PaddingTopProp, PlaceItemsProp, TextAlignProp, TextWrapProp, Theme, ThemeProvider, ThemeProviderProps, WhiteSpaceProps, WidthProp, alignment, useTheme } from "@marigold/system";
|
|
2
|
+
import { AspectProp, CursorProp, DateFormat, FontSizeProp, FontStyleProp, FontWeightProp, GapSpaceProp, HeightProp, MaxWidthProp, NumericFormat, PaddingBottomProp, PaddingLeftProp, PaddingRightProp, PaddingSpaceProp, PaddingSpacePropX, PaddingSpacePropY, PaddingTopProp, PlaceItemsProp, SpaceProp, TextAlignProp, TextWrapProp, Theme, ThemeProvider, ThemeProviderProps, WhiteSpaceProps, WidthProp, alignment, useTheme } from "@marigold/system";
|
|
3
3
|
import RAC, { BreadcrumbsProps as BreadcrumbsProps$1, ButtonProps as ButtonProps$1, DateValue, DialogProps as DialogProps$1, DisclosurePanelProps, DisclosureProps as DisclosureProps$1, HeadingProps, Key, ProgressBarProps, RouterProvider, SlotProps, TagListProps, TimeValue, TimeValue as TimeValue$1, UNSTABLE_ToastQueue, ValidationResult } from "react-aria-components";
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
4
|
+
import * as react8 from "react";
|
|
5
|
+
import { CSSProperties, ComponentPropsWithRef, Dispatch, ElementType, FormEvent, ForwardRefExoticComponent, JSX, Key as Key$1, PropsWithChildren, ReactElement, ReactNode, RefAttributes, SVGProps, SetStateAction } from "react";
|
|
6
6
|
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
7
7
|
import { I18nProvider } from "@react-aria/i18n";
|
|
8
|
-
import { FieldBaseProps as FieldBaseProps$1, LoaderVisualType as LoaderVisualType$1 } from "@marigold/components";
|
|
9
8
|
import { AriaLandmarkRole } from "@react-aria/landmark";
|
|
10
9
|
import { OverlayTriggerProps, OverlayTriggerState } from "react-stately";
|
|
11
10
|
import { AriaTableProps } from "@react-aria/table";
|
|
@@ -77,11 +76,11 @@ declare const Accordion: {
|
|
|
77
76
|
};
|
|
78
77
|
//#endregion
|
|
79
78
|
//#region src/Aside/Aside.d.ts
|
|
80
|
-
interface AsideProps extends
|
|
79
|
+
interface AsideProps extends SpaceProp<'section' | 'fieldY' | 'container' | 'group'>, AriaRegionProps {
|
|
81
80
|
/**
|
|
82
81
|
* The children of the component.
|
|
83
82
|
*/
|
|
84
|
-
children: [ReactElement
|
|
83
|
+
children: [ReactElement, ReactElement];
|
|
85
84
|
/**
|
|
86
85
|
* The side of the aside content.
|
|
87
86
|
* @default left
|
|
@@ -145,8 +144,8 @@ declare const HelpText: ({
|
|
|
145
144
|
}: HelpTextProps) => react_jsx_runtime3.JSX.Element | null;
|
|
146
145
|
//#endregion
|
|
147
146
|
//#region src/FieldBase/FieldBase.d.ts
|
|
148
|
-
interface FieldBaseProps<T
|
|
149
|
-
as?: T
|
|
147
|
+
interface FieldBaseProps<T extends ElementType> extends WidthProp, Pick<HelpTextProps, 'description' | 'errorMessage'> {
|
|
148
|
+
as?: T;
|
|
150
149
|
/**
|
|
151
150
|
* Specifies the label of the field.
|
|
152
151
|
*/
|
|
@@ -160,14 +159,14 @@ interface FieldBaseProps<T$1 extends ElementType> extends WidthProp, Pick<HelpTe
|
|
|
160
159
|
isInvalid?: boolean;
|
|
161
160
|
isRequired?: boolean;
|
|
162
161
|
}
|
|
163
|
-
declare const FieldBase: <T extends ElementType>(props: FieldBaseProps<T> & DistributiveOmit<ComponentPropsWithRef<T>, "as"> &
|
|
162
|
+
declare const FieldBase: <T extends ElementType>(props: FieldBaseProps<T> & DistributiveOmit<ComponentPropsWithRef<T>, "as"> & react8.RefAttributes<any>) => React.ReactNode;
|
|
164
163
|
//#endregion
|
|
165
164
|
//#region src/ListBox/ListBoxItem.d.ts
|
|
166
165
|
type ListBoxItemProps = Omit<RAC.ListBoxItemProps, 'style' | 'className' | 'children'> & {
|
|
167
166
|
/**
|
|
168
167
|
* The children of the component
|
|
169
168
|
*/
|
|
170
|
-
children?:
|
|
169
|
+
children?: ReactNode;
|
|
171
170
|
};
|
|
172
171
|
declare const _ListBoxItem: ({
|
|
173
172
|
...props
|
|
@@ -284,7 +283,7 @@ interface BadgeProps {
|
|
|
284
283
|
/**
|
|
285
284
|
* Children of the component
|
|
286
285
|
*/
|
|
287
|
-
children?:
|
|
286
|
+
children?: ReactNode;
|
|
288
287
|
variant?: 'default' | 'primary' | 'success' | 'warning' | 'info' | 'error' | 'admin' | 'master' | (string & {});
|
|
289
288
|
size?: string;
|
|
290
289
|
}
|
|
@@ -328,7 +327,7 @@ interface BreadcrumbsProps extends Omit<BreadcrumbsProps$1<object>, RemovedProps
|
|
|
328
327
|
/**
|
|
329
328
|
* The breadcrumb items to be displayed.
|
|
330
329
|
*/
|
|
331
|
-
children:
|
|
330
|
+
children: ReactNode | ReactNode[];
|
|
332
331
|
}
|
|
333
332
|
interface BreadcrumbsComponent extends ForwardRefExoticComponent<BreadcrumbsProps & RefAttributes<HTMLOListElement>> {
|
|
334
333
|
Item: typeof BreadcrumbsItem;
|
|
@@ -368,7 +367,7 @@ interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$33> {
|
|
|
368
367
|
*/
|
|
369
368
|
loading?: RAC.ButtonProps['isPending'];
|
|
370
369
|
}
|
|
371
|
-
declare const _Button:
|
|
370
|
+
declare const _Button: react8.ForwardRefExoticComponent<ButtonProps & react8.RefAttributes<HTMLButtonElement>>;
|
|
372
371
|
//#endregion
|
|
373
372
|
//#region src/Calendar/Calendar.d.ts
|
|
374
373
|
type RemovedProps$32 = 'visibleDuration' | 'pageBehavior' | 'isDateUnavailable' | 'isDisabled' | 'isReadOnly' | 'isInvalid' | 'errorMessage' | 'className' | 'style';
|
|
@@ -590,7 +589,7 @@ interface CloseButtonProps extends Pick<ButtonProps, 'onPress' | 'size' | 'varia
|
|
|
590
589
|
className?: string;
|
|
591
590
|
style?: CSSProperties;
|
|
592
591
|
}
|
|
593
|
-
declare const CloseButton:
|
|
592
|
+
declare const CloseButton: react8.ForwardRefExoticComponent<CloseButtonProps & react8.RefAttributes<HTMLButtonElement>>;
|
|
594
593
|
//#endregion
|
|
595
594
|
//#region src/Collapsible/CollapsibleTrigger.d.ts
|
|
596
595
|
interface CollapsibleProps$1 extends Omit<ButtonProps$1, 'className' | 'style'>, Pick<HeadingProps, 'level'> {
|
|
@@ -777,7 +776,7 @@ interface IconProps extends Omit<SVGProps<SVGSVGElement>, 'width' | 'height'> {
|
|
|
777
776
|
//#endregion
|
|
778
777
|
//#region src/ContextualHelp/ContextualHelpContent.d.ts
|
|
779
778
|
interface ContextualHelpContentProps {
|
|
780
|
-
children:
|
|
779
|
+
children: ReactNode;
|
|
781
780
|
variant?: string;
|
|
782
781
|
size?: string;
|
|
783
782
|
}
|
|
@@ -789,7 +788,7 @@ declare const ContextualHelpContent: ({
|
|
|
789
788
|
//#endregion
|
|
790
789
|
//#region src/ContextualHelp/ContextualHelpTitle.d.ts
|
|
791
790
|
interface ContextualHelpTitleProps {
|
|
792
|
-
children:
|
|
791
|
+
children: ReactNode;
|
|
793
792
|
variant?: string;
|
|
794
793
|
size?: string;
|
|
795
794
|
}
|
|
@@ -886,7 +885,7 @@ interface DateFieldProps extends Omit<RAC.DateFieldProps<DateValue>, RemovedProp
|
|
|
886
885
|
*/
|
|
887
886
|
width?: WidthProp['width'];
|
|
888
887
|
}
|
|
889
|
-
declare const _DateField:
|
|
888
|
+
declare const _DateField: react8.ForwardRefExoticComponent<DateFieldProps & react8.RefAttributes<HTMLInputElement>>;
|
|
890
889
|
//#endregion
|
|
891
890
|
//#region src/DatePicker/DatePicker.d.ts
|
|
892
891
|
type RemovedProps$27 = 'isDisabled' | 'isDateUnavailable' | 'isReadOnly' | 'isRequired' | 'isInvalid' | 'style' | 'className' | 'isOpen';
|
|
@@ -927,7 +926,7 @@ interface DatePickerProps extends Omit<RAC.DatePickerProps<DateValue>, RemovedPr
|
|
|
927
926
|
*/
|
|
928
927
|
width?: WidthProp['width'];
|
|
929
928
|
}
|
|
930
|
-
declare const _DatePicker:
|
|
929
|
+
declare const _DatePicker: react8.ForwardRefExoticComponent<DatePickerProps & react8.RefAttributes<HTMLDivElement>>;
|
|
931
930
|
//#endregion
|
|
932
931
|
//#region src/Overlay/Modal.d.ts
|
|
933
932
|
interface ModalProps extends RAC.ModalOverlayProps {
|
|
@@ -945,7 +944,7 @@ interface ModalProps extends RAC.ModalOverlayProps {
|
|
|
945
944
|
keyboardDismissable?: boolean;
|
|
946
945
|
size?: string;
|
|
947
946
|
}
|
|
948
|
-
declare const _Modal:
|
|
947
|
+
declare const _Modal: react8.ForwardRefExoticComponent<Omit<ModalProps, "className" | "isOpen" | "isDismissable" | "isKeyboardDismissDisabled"> & react8.RefAttributes<HTMLDivElement>>;
|
|
949
948
|
//#endregion
|
|
950
949
|
//#region src/Dialog/DialogActions.d.ts
|
|
951
950
|
interface DialogActions {
|
|
@@ -980,7 +979,7 @@ declare const DialogContent: ({
|
|
|
980
979
|
//#region src/Dialog/DialogTitle.d.ts
|
|
981
980
|
interface DialogTitleProps {
|
|
982
981
|
/** Children of the component. */
|
|
983
|
-
children?:
|
|
982
|
+
children?: ReactNode;
|
|
984
983
|
variant?: string;
|
|
985
984
|
size?: string;
|
|
986
985
|
}
|
|
@@ -1081,10 +1080,10 @@ declare const ConfirmationDialog: {
|
|
|
1081
1080
|
//#region src/Dialog/useConfirmation.d.ts
|
|
1082
1081
|
type ConfirmationResult = 'confirmed' | 'cancelled';
|
|
1083
1082
|
interface ConfirmationConfig extends Pick<ConfirmationDialogProps, 'variant' | 'title' | 'confirmationLabel' | 'cancelLabel' | 'autoFocusButton'> {
|
|
1084
|
-
content?:
|
|
1083
|
+
content?: ReactNode;
|
|
1085
1084
|
}
|
|
1086
1085
|
type ConfirmationFn = (props: ConfirmationConfig) => Promise<ConfirmationResult>;
|
|
1087
|
-
declare const ConfirmationContext:
|
|
1086
|
+
declare const ConfirmationContext: react8.Context<ConfirmationFn | null>;
|
|
1088
1087
|
declare const ConfirmationProvider: ({
|
|
1089
1088
|
children
|
|
1090
1089
|
}: PropsWithChildren) => react_jsx_runtime3.JSX.Element;
|
|
@@ -1116,7 +1115,7 @@ interface DrawerTitleProps {
|
|
|
1116
1115
|
/**
|
|
1117
1116
|
* Children of the component.
|
|
1118
1117
|
*/
|
|
1119
|
-
children?:
|
|
1118
|
+
children?: ReactNode;
|
|
1120
1119
|
}
|
|
1121
1120
|
//#endregion
|
|
1122
1121
|
//#region src/Drawer/DrawerContent.d.ts
|
|
@@ -1237,7 +1236,7 @@ interface FileFieldItemProps {
|
|
|
1237
1236
|
//#endregion
|
|
1238
1237
|
//#region src/FileField/FileField.d.ts
|
|
1239
1238
|
type RemovedProps$23 = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired';
|
|
1240
|
-
interface FileFieldProps extends Omit<RAC.DropZoneProps, RemovedProps$23>, Pick<FieldBaseProps
|
|
1239
|
+
interface FileFieldProps extends Omit<RAC.DropZoneProps, RemovedProps$23>, Pick<FieldBaseProps<'input'>, 'label'> {
|
|
1241
1240
|
variant?: string;
|
|
1242
1241
|
size?: string;
|
|
1243
1242
|
/**
|
|
@@ -1392,13 +1391,8 @@ declare const IconButton: ({
|
|
|
1392
1391
|
}: IconButtonProps) => react_jsx_runtime3.JSX.Element;
|
|
1393
1392
|
//#endregion
|
|
1394
1393
|
//#region src/Inline/Inline.d.ts
|
|
1395
|
-
declare const inlineAlignmentY:
|
|
1396
|
-
|
|
1397
|
-
top: "items-start";
|
|
1398
|
-
center: "items-center";
|
|
1399
|
-
bottom: "items-end";
|
|
1400
|
-
};
|
|
1401
|
-
interface InlineProps extends GapSpaceProp, AriaRegionProps {
|
|
1394
|
+
declare const inlineAlignmentY: any;
|
|
1395
|
+
interface InlineProps extends SpaceProp<'section' | 'fieldX' | 'container' | 'group'>, AriaRegionProps {
|
|
1402
1396
|
/**
|
|
1403
1397
|
* The children of the component.
|
|
1404
1398
|
*/
|
|
@@ -1434,7 +1428,7 @@ interface InputProps extends Omit<RAC.InputProps, RemovedProps$22> {
|
|
|
1434
1428
|
size?: string;
|
|
1435
1429
|
className?: string;
|
|
1436
1430
|
}
|
|
1437
|
-
declare const _Input:
|
|
1431
|
+
declare const _Input: react8.ForwardRefExoticComponent<InputProps & react8.RefAttributes<HTMLInputElement>>;
|
|
1438
1432
|
//#endregion
|
|
1439
1433
|
//#region src/Input/SearchInput.d.ts
|
|
1440
1434
|
interface SearchInputProps extends Omit<InputProps, 'icon' | 'className'> {
|
|
@@ -1445,7 +1439,7 @@ interface SearchInputProps extends Omit<InputProps, 'icon' | 'className'> {
|
|
|
1445
1439
|
};
|
|
1446
1440
|
onClear?: () => void;
|
|
1447
1441
|
}
|
|
1448
|
-
declare const SearchInput:
|
|
1442
|
+
declare const SearchInput: react8.ForwardRefExoticComponent<SearchInputProps & react8.RefAttributes<HTMLInputElement>>;
|
|
1449
1443
|
//#endregion
|
|
1450
1444
|
//#region src/Inset/Inset.d.ts
|
|
1451
1445
|
type InsetProps = (AriaRegionProps & {
|
|
@@ -1502,7 +1496,7 @@ interface LinkProps extends Omit<RAC.LinkProps, RemovedProps$20> {
|
|
|
1502
1496
|
*/
|
|
1503
1497
|
disabled?: RAC.LinkProps['isDisabled'];
|
|
1504
1498
|
}
|
|
1505
|
-
declare const _Link:
|
|
1499
|
+
declare const _Link: react8.ForwardRefExoticComponent<LinkProps & react8.RefAttributes<HTMLAnchorElement>>;
|
|
1506
1500
|
//#endregion
|
|
1507
1501
|
//#region src/LinkButton/LinkButton.d.ts
|
|
1508
1502
|
type RemovedProps$19 = 'isDisabled' | 'isPending' | 'className' | 'style';
|
|
@@ -1524,7 +1518,7 @@ interface LinkButtonProps extends Omit<RAC.LinkProps, RemovedProps$19> {
|
|
|
1524
1518
|
*/
|
|
1525
1519
|
disabled?: RAC.LinkProps['isDisabled'];
|
|
1526
1520
|
}
|
|
1527
|
-
declare const _LinkButton:
|
|
1521
|
+
declare const _LinkButton: react8.ForwardRefExoticComponent<LinkButtonProps & react8.RefAttributes<HTMLAnchorElement>>;
|
|
1528
1522
|
//#endregion
|
|
1529
1523
|
//#region src/List/ListItem.d.ts
|
|
1530
1524
|
interface ListItemProps {
|
|
@@ -1582,7 +1576,7 @@ interface PopoverProps extends Omit<RAC.PopoverProps, 'isOpen' | 'isKeyboardDism
|
|
|
1582
1576
|
open?: boolean;
|
|
1583
1577
|
children: ReactNode;
|
|
1584
1578
|
}
|
|
1585
|
-
declare const _Popover:
|
|
1579
|
+
declare const _Popover: react8.ForwardRefExoticComponent<PopoverProps & react8.RefAttributes<HTMLDivElement>>;
|
|
1586
1580
|
//#endregion
|
|
1587
1581
|
//#region src/Menu/Menu.d.ts
|
|
1588
1582
|
type RemovedProps$16 = 'isOpen' | 'className' | 'style' | 'children';
|
|
@@ -1829,22 +1823,22 @@ interface NumberFieldProps extends Omit<RAC.NumberFieldProps, RemovedProps$15>,
|
|
|
1829
1823
|
*/
|
|
1830
1824
|
placeholder?: string;
|
|
1831
1825
|
}
|
|
1832
|
-
declare const _NumberField:
|
|
1826
|
+
declare const _NumberField: react8.ForwardRefExoticComponent<NumberFieldProps & react8.RefAttributes<HTMLInputElement>>;
|
|
1833
1827
|
//#endregion
|
|
1834
1828
|
//#region src/utils/useRenderProps.d.ts
|
|
1835
|
-
interface StyleRenderProps<T
|
|
1829
|
+
interface StyleRenderProps<T> {
|
|
1836
1830
|
/** 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. */
|
|
1837
|
-
className?: string | ((values: T
|
|
1831
|
+
className?: string | ((values: T & {
|
|
1838
1832
|
defaultClassName: string | undefined;
|
|
1839
1833
|
}) => string);
|
|
1840
1834
|
/** 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. */
|
|
1841
|
-
style?: CSSProperties | ((values: T
|
|
1835
|
+
style?: CSSProperties | ((values: T & {
|
|
1842
1836
|
defaultStyle: CSSProperties;
|
|
1843
1837
|
}) => CSSProperties | undefined);
|
|
1844
1838
|
}
|
|
1845
|
-
interface RenderProps<T
|
|
1839
|
+
interface RenderProps<T> extends StyleRenderProps<T> {
|
|
1846
1840
|
/** The children of the component. A function may be provided to alter the children based on component state. */
|
|
1847
|
-
children?: ReactNode | ((values: T
|
|
1841
|
+
children?: ReactNode | ((values: T & {
|
|
1848
1842
|
defaultChildren: ReactNode | undefined;
|
|
1849
1843
|
}) => ReactNode);
|
|
1850
1844
|
}
|
|
@@ -1911,7 +1905,7 @@ interface NonModalProps extends Omit<OverlayTriggerProps, 'isOpen'>, AriaLabelin
|
|
|
1911
1905
|
*/
|
|
1912
1906
|
ref?: RefObject<HTMLElement | null>;
|
|
1913
1907
|
}
|
|
1914
|
-
declare const NonModal:
|
|
1908
|
+
declare const NonModal: react8.ForwardRefExoticComponent<Omit<NonModalProps, "ref"> & react8.RefAttributes<HTMLElement>>;
|
|
1915
1909
|
//#endregion
|
|
1916
1910
|
//#region src/Overlay/Underlay.d.ts
|
|
1917
1911
|
interface UnderlayProps extends Omit<RAC.ModalOverlayProps, 'isOpen' | 'isDismissable' | 'isKeyboardDismissDisabled' | 'className'> {
|
|
@@ -1984,12 +1978,12 @@ declare const ProgressCircle: ({
|
|
|
1984
1978
|
}: ProgressCircleProps) => react_jsx_runtime3.JSX.Element;
|
|
1985
1979
|
//#endregion
|
|
1986
1980
|
//#region src/Provider/MarigoldProvider.d.ts
|
|
1987
|
-
type MarigoldProviderProps<T
|
|
1988
|
-
declare function MarigoldProvider<T
|
|
1981
|
+
type MarigoldProviderProps<T extends Theme> = ThemeProviderProps<T>;
|
|
1982
|
+
declare function MarigoldProvider<T extends Theme>({
|
|
1989
1983
|
children,
|
|
1990
1984
|
className,
|
|
1991
1985
|
theme
|
|
1992
|
-
}: MarigoldProviderProps<T
|
|
1986
|
+
}: MarigoldProviderProps<T>): react_jsx_runtime3.JSX.Element;
|
|
1993
1987
|
//#endregion
|
|
1994
1988
|
//#region src/Provider/OverlayContainerProvider.d.ts
|
|
1995
1989
|
interface OverlayContainerProps extends PropsWithChildren {
|
|
@@ -2184,7 +2178,7 @@ interface SearchFieldProps extends Omit<RAC.SearchFieldProps, RemovedProps$12>,
|
|
|
2184
2178
|
*/
|
|
2185
2179
|
placeholder?: string;
|
|
2186
2180
|
}
|
|
2187
|
-
declare const _SearchField:
|
|
2181
|
+
declare const _SearchField: react8.ForwardRefExoticComponent<SearchFieldProps & react8.RefAttributes<HTMLInputElement>>;
|
|
2188
2182
|
//#endregion
|
|
2189
2183
|
//#region src/SectionMessage/SectionMessageTitle.d.ts
|
|
2190
2184
|
interface SectionMessageTitleProps {
|
|
@@ -2266,13 +2260,13 @@ declare const SectionMessage: {
|
|
|
2266
2260
|
//#region src/Select/Select.d.ts
|
|
2267
2261
|
type SelectionMode = 'single' | 'multiple';
|
|
2268
2262
|
type RemovedProps$11 = 'children' | 'isInvalid' | 'isDisabled' | 'isOpen' | 'isRequired' | 'style' | 'className';
|
|
2269
|
-
interface SelectProps<T
|
|
2263
|
+
interface SelectProps<T extends object, M extends SelectionMode = 'single'> extends Omit<RAC.SelectProps<T, M>, RemovedProps$11>, WidthProp {
|
|
2270
2264
|
variant?: string;
|
|
2271
2265
|
size?: string;
|
|
2272
2266
|
/**
|
|
2273
2267
|
* Children of the select.
|
|
2274
2268
|
*/
|
|
2275
|
-
children?:
|
|
2269
|
+
children?: ReactNode | ((item: T) => ReactNode);
|
|
2276
2270
|
/**
|
|
2277
2271
|
* Set a label for the select.
|
|
2278
2272
|
*/
|
|
@@ -2288,7 +2282,7 @@ interface SelectProps<T$1 extends object, M$1 extends SelectionMode = 'single'>
|
|
|
2288
2282
|
/**
|
|
2289
2283
|
* Items of the select.
|
|
2290
2284
|
*/
|
|
2291
|
-
items?: Iterable<T
|
|
2285
|
+
items?: Iterable<T>;
|
|
2292
2286
|
/**
|
|
2293
2287
|
* If the select should be required.
|
|
2294
2288
|
*
|
|
@@ -2314,7 +2308,7 @@ interface SelectProps<T$1 extends object, M$1 extends SelectionMode = 'single'>
|
|
|
2314
2308
|
*/
|
|
2315
2309
|
error?: boolean;
|
|
2316
2310
|
}
|
|
2317
|
-
declare const Select: (<T extends object, M extends SelectionMode = "single">(props: SelectProps<T, M> &
|
|
2311
|
+
declare const Select: (<T extends object, M extends SelectionMode = "single">(props: SelectProps<T, M> & react8.RefAttributes<HTMLButtonElement>) => react8.ReactElement | null) & {
|
|
2318
2312
|
Option: ({
|
|
2319
2313
|
...props
|
|
2320
2314
|
}: ListBoxItemProps) => react_jsx_runtime3.JSX.Element;
|
|
@@ -2343,7 +2337,7 @@ interface SelectListItemProps extends Omit<RAC.GridListItemProps<object>, Remove
|
|
|
2343
2337
|
*/
|
|
2344
2338
|
disabled?: RAC.GridListItemProps<object>['isDisabled'];
|
|
2345
2339
|
}
|
|
2346
|
-
declare const _SelectListItem:
|
|
2340
|
+
declare const _SelectListItem: react8.ForwardRefExoticComponent<SelectListItemProps & react8.RefAttributes<HTMLDivElement>>;
|
|
2347
2341
|
//#endregion
|
|
2348
2342
|
//#region src/SelectList/SelectList.d.ts
|
|
2349
2343
|
type RemoveProps = 'style' | 'className' | 'onSelectionChange';
|
|
@@ -2363,7 +2357,7 @@ interface SelectListComponent extends ForwardRefExoticComponent<SelectListProps
|
|
|
2363
2357
|
declare const _SelectList: SelectListComponent;
|
|
2364
2358
|
//#endregion
|
|
2365
2359
|
//#region src/Slider/Slider.d.ts
|
|
2366
|
-
interface SliderProps<T
|
|
2360
|
+
interface SliderProps<T> extends Omit<RAC.SliderProps<T>, 'children' | 'isDisabled' | 'orientation'>, Pick<FieldBaseProps<'label'>, 'description'> {
|
|
2367
2361
|
variant?: string;
|
|
2368
2362
|
size?: string;
|
|
2369
2363
|
/**
|
|
@@ -2391,13 +2385,13 @@ interface SliderProps<T$1> extends Omit<RAC.SliderProps<T$1>, 'children' | 'isDi
|
|
|
2391
2385
|
*/
|
|
2392
2386
|
label?: ReactNode;
|
|
2393
2387
|
}
|
|
2394
|
-
declare const _Slider:
|
|
2388
|
+
declare const _Slider: react8.ForwardRefExoticComponent<SliderProps<number | number[]> & react8.RefAttributes<HTMLDivElement>>;
|
|
2395
2389
|
//#endregion
|
|
2396
2390
|
//#region src/Split/Split.d.ts
|
|
2397
2391
|
declare const Split: () => react_jsx_runtime3.JSX.Element;
|
|
2398
2392
|
//#endregion
|
|
2399
2393
|
//#region src/Stack/Stack.d.ts
|
|
2400
|
-
interface StackProps extends
|
|
2394
|
+
interface StackProps extends SpaceProp<'section' | 'fieldY' | 'container' | 'group'>, AriaRegionProps {
|
|
2401
2395
|
/**
|
|
2402
2396
|
* Children of the component.
|
|
2403
2397
|
*/
|
|
@@ -2409,6 +2403,7 @@ interface StackProps extends GapSpaceProp, AriaRegionProps {
|
|
|
2409
2403
|
stretch?: boolean;
|
|
2410
2404
|
/**
|
|
2411
2405
|
* Horizontal alignment for the children.
|
|
2406
|
+
* @default 'stretch'
|
|
2412
2407
|
*/
|
|
2413
2408
|
alignX?: keyof typeof alignment.vertical.alignmentX;
|
|
2414
2409
|
/**
|
|
@@ -2462,14 +2457,14 @@ interface SwitchProps extends Omit<RAC.SwitchProps, RemovedProps$9> {
|
|
|
2462
2457
|
*/
|
|
2463
2458
|
selected?: RAC.SwitchProps['isSelected'];
|
|
2464
2459
|
}
|
|
2465
|
-
declare const _Switch:
|
|
2460
|
+
declare const _Switch: react8.ForwardRefExoticComponent<SwitchProps & react8.RefAttributes<HTMLLabelElement>>;
|
|
2466
2461
|
//#endregion
|
|
2467
2462
|
//#region src/Table/Table.d.ts
|
|
2468
2463
|
interface TableProps extends Pick<AriaTableProps, 'focusMode' | 'onRowAction' | 'onCellAction'>, Omit<TableStateProps<object>, 'showSelectionCheckboxes' | 'showDragButtons' | 'allowDuplicateSelectionEvents'> {
|
|
2469
2464
|
variant?: 'grid' | 'default' | 'muted' | (string & {});
|
|
2470
2465
|
size?: string;
|
|
2471
2466
|
/**
|
|
2472
|
-
* Stretch table to fill the container.
|
|
2467
|
+
* Stretch the table to fill the container.
|
|
2473
2468
|
* @default false
|
|
2474
2469
|
*/
|
|
2475
2470
|
stretch?: boolean;
|
|
@@ -2621,7 +2616,7 @@ interface TextProps extends AriaLabelingProps$1, Omit<RAC.TextProps, RemovedProp
|
|
|
2621
2616
|
/**
|
|
2622
2617
|
* The children of the component
|
|
2623
2618
|
*/
|
|
2624
|
-
children?:
|
|
2619
|
+
children?: ReactNode;
|
|
2625
2620
|
/**
|
|
2626
2621
|
* Set the text color.
|
|
2627
2622
|
* @default currentColor
|
|
@@ -2706,7 +2701,7 @@ interface TextAreaProps extends Omit<RAC.TextFieldProps, RemovedProps$5>, Pick<R
|
|
|
2706
2701
|
*/
|
|
2707
2702
|
rows?: number;
|
|
2708
2703
|
}
|
|
2709
|
-
declare const _TextArea:
|
|
2704
|
+
declare const _TextArea: react8.ForwardRefExoticComponent<TextAreaProps & react8.RefAttributes<HTMLTextAreaElement>>;
|
|
2710
2705
|
//#endregion
|
|
2711
2706
|
//#region src/TextField/TextField.d.ts
|
|
2712
2707
|
type RemovedProps$4 = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'value' | 'defaultValue' | 'slot';
|
|
@@ -2764,7 +2759,7 @@ interface TextFieldProps extends Omit<RAC.TextFieldProps, RemovedProps$4>, Pick<
|
|
|
2764
2759
|
*/
|
|
2765
2760
|
placeholder?: string;
|
|
2766
2761
|
}
|
|
2767
|
-
declare const _TextField:
|
|
2762
|
+
declare const _TextField: react8.ForwardRefExoticComponent<TextFieldProps & react8.RefAttributes<HTMLInputElement>>;
|
|
2768
2763
|
//#endregion
|
|
2769
2764
|
//#region src/Tiles/Tiles.d.ts
|
|
2770
2765
|
interface TilesProps extends GapSpaceProp, AriaRegionProps {
|
|
@@ -2843,7 +2838,7 @@ interface TimeFieldProps extends Omit<RAC.TimeFieldProps<TimeValue$1>, RemovedPr
|
|
|
2843
2838
|
*/
|
|
2844
2839
|
shouldForceLeadingZeros?: boolean;
|
|
2845
2840
|
}
|
|
2846
|
-
declare const _TimeField:
|
|
2841
|
+
declare const _TimeField: react8.ForwardRefExoticComponent<TimeFieldProps & react8.RefAttributes<HTMLInputElement>>;
|
|
2847
2842
|
//#endregion
|
|
2848
2843
|
//#region src/Toast/Toast.d.ts
|
|
2849
2844
|
type ToastContentProps = {
|
|
@@ -2941,7 +2936,7 @@ interface BaseLoaderProps extends Pick<ProgressBarProps, 'id' | 'aria-label' | '
|
|
|
2941
2936
|
children?: ReactNode;
|
|
2942
2937
|
variant?: 'default' | 'inverted';
|
|
2943
2938
|
size?: 'default' | 'large' | 'fit';
|
|
2944
|
-
loaderType?: LoaderVisualType
|
|
2939
|
+
loaderType?: LoaderVisualType;
|
|
2945
2940
|
}
|
|
2946
2941
|
//#endregion
|
|
2947
2942
|
//#region src/Loader/Loader.d.ts
|