@marigold/components 15.4.3 → 16.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +136 -57
- package/dist/index.d.ts +158 -79
- package/dist/index.js +1159 -247
- package/dist/index.mjs +1200 -291
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -5,6 +5,7 @@ import * as react6 from "react";
|
|
|
5
5
|
import React$1, { 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";
|
|
8
9
|
import { AriaLandmarkRole } from "@react-aria/landmark";
|
|
9
10
|
import { OverlayTriggerProps, OverlayTriggerState } from "react-stately";
|
|
10
11
|
import { AriaTableProps } from "@react-aria/table";
|
|
@@ -25,8 +26,8 @@ interface AccordionPanelProps {
|
|
|
25
26
|
}
|
|
26
27
|
//#endregion
|
|
27
28
|
//#region src/Accordion/AccordionItem.d.ts
|
|
28
|
-
type RemovedProps$
|
|
29
|
-
interface DisclosureProps extends Omit<RAC.DisclosureProps, RemovedProps$
|
|
29
|
+
type RemovedProps$38 = 'isDisabled' | 'isExpanded';
|
|
30
|
+
interface DisclosureProps extends Omit<RAC.DisclosureProps, RemovedProps$38> {
|
|
30
31
|
/** Whether the item is disabled. */
|
|
31
32
|
disabled?: RAC.DisclosureProps['isDisabled'];
|
|
32
33
|
/** Whether the item is expanded (controlled). */
|
|
@@ -40,13 +41,15 @@ declare const AccordionItem: ({
|
|
|
40
41
|
}: DisclosureProps) => react_jsx_runtime3.JSX.Element;
|
|
41
42
|
//#endregion
|
|
42
43
|
//#region src/Accordion/Accordion.d.ts
|
|
43
|
-
type RemovedProps$
|
|
44
|
-
interface AccordionProps extends Omit<RAC.DisclosureGroupProps, RemovedProps$
|
|
45
|
-
/** Whether all items are disabled. */
|
|
46
|
-
disabled?: RAC.DisclosureGroupProps['isDisabled'];
|
|
44
|
+
type RemovedProps$37 = 'isDisabled';
|
|
45
|
+
interface AccordionProps extends Omit<RAC.DisclosureGroupProps, RemovedProps$37> {
|
|
47
46
|
variant?: 'default' | 'card' | (string & {});
|
|
48
47
|
size?: string;
|
|
48
|
+
/** Whether all items are disabled. */
|
|
49
|
+
disabled?: RAC.DisclosureGroupProps['isDisabled'];
|
|
50
|
+
/** Whether the header should stick to the top when scrolling. */
|
|
49
51
|
stickyHeader?: boolean;
|
|
52
|
+
/** Position of the icon in the header. */
|
|
50
53
|
iconPosition?: 'right' | 'left';
|
|
51
54
|
}
|
|
52
55
|
declare const Accordion: {
|
|
@@ -142,8 +145,8 @@ declare const HelpText: ({
|
|
|
142
145
|
}: HelpTextProps) => react_jsx_runtime3.JSX.Element | null;
|
|
143
146
|
//#endregion
|
|
144
147
|
//#region src/FieldBase/FieldBase.d.ts
|
|
145
|
-
interface FieldBaseProps<T extends ElementType> extends WidthProp, Pick<HelpTextProps, 'description' | 'errorMessage'> {
|
|
146
|
-
as?: T;
|
|
148
|
+
interface FieldBaseProps<T$1 extends ElementType> extends WidthProp, Pick<HelpTextProps, 'description' | 'errorMessage'> {
|
|
149
|
+
as?: T$1;
|
|
147
150
|
/**
|
|
148
151
|
* Specifies the label of the field.
|
|
149
152
|
*/
|
|
@@ -199,8 +202,8 @@ interface ListBoxComponent extends ForwardRefExoticComponent<ListBoxProps & RefA
|
|
|
199
202
|
declare const _ListBox: ListBoxComponent;
|
|
200
203
|
//#endregion
|
|
201
204
|
//#region src/Autocomplete/Autocomplete.d.ts
|
|
202
|
-
type RemovedProps$
|
|
203
|
-
interface AutocompleteProps extends Omit<RAC.ComboBoxProps<object>, RemovedProps$
|
|
205
|
+
type RemovedProps$36 = 'className' | 'style' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'inputValue' | 'onInputChange' | 'defaultValue' | 'validate' | 'validationState' | 'slot';
|
|
206
|
+
interface AutocompleteProps extends Omit<RAC.ComboBoxProps<object>, RemovedProps$36>, Pick<FieldBaseProps<'label'>, 'width' | 'label' | 'description' | 'errorMessage'> {
|
|
204
207
|
/**
|
|
205
208
|
* The value of the input (uncontrolled).
|
|
206
209
|
*/
|
|
@@ -293,8 +296,8 @@ declare const Badge: ({
|
|
|
293
296
|
}: BadgeProps) => react_jsx_runtime3.JSX.Element;
|
|
294
297
|
//#endregion
|
|
295
298
|
//#region src/Breadcrumbs/BreadcrumbsItem.d.ts
|
|
296
|
-
type RemovedProps$
|
|
297
|
-
interface BreadcrumbsItemProps extends Omit<RAC.BreadcrumbProps, RemovedProps$
|
|
299
|
+
type RemovedProps$35 = 'className' | 'style';
|
|
300
|
+
interface BreadcrumbsItemProps extends Omit<RAC.BreadcrumbProps, RemovedProps$35> {
|
|
298
301
|
variant?: 'default' | (string & {});
|
|
299
302
|
size?: 'small' | 'default' | 'large' | (string & {});
|
|
300
303
|
/**
|
|
@@ -309,8 +312,8 @@ interface BreadcrumbsItemProps extends Omit<RAC.BreadcrumbProps, RemovedProps$33
|
|
|
309
312
|
declare const BreadcrumbsItem: (_: BreadcrumbsItemProps) => null;
|
|
310
313
|
//#endregion
|
|
311
314
|
//#region src/Breadcrumbs/Breadcrumbs.d.ts
|
|
312
|
-
type RemovedProps$
|
|
313
|
-
interface BreadcrumbsProps extends Omit<BreadcrumbsProps$1<object>, RemovedProps$
|
|
315
|
+
type RemovedProps$34 = 'className' | 'style' | 'children' | 'isDisabled';
|
|
316
|
+
interface BreadcrumbsProps extends Omit<BreadcrumbsProps$1<object>, RemovedProps$34> {
|
|
314
317
|
variant?: 'default' | (string & {});
|
|
315
318
|
size?: 'small' | 'default' | 'large' | (string & {});
|
|
316
319
|
/**
|
|
@@ -341,9 +344,9 @@ declare const Breakout: ({
|
|
|
341
344
|
}: BreakoutProps) => react_jsx_runtime3.JSX.Element;
|
|
342
345
|
//#endregion
|
|
343
346
|
//#region src/Button/Button.d.ts
|
|
344
|
-
type RemovedProps$
|
|
345
|
-
interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$
|
|
346
|
-
variant?: 'primary' | 'secondary' | 'destructive' | 'ghost' | 'link' | (string & {});
|
|
347
|
+
type RemovedProps$33 = 'isDisabled' | 'isPending' | 'className' | 'style';
|
|
348
|
+
interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$33> {
|
|
349
|
+
variant?: 'primary' | 'secondary' | 'destructive' | 'destructive-ghost' | 'ghost' | 'link' | (string & {});
|
|
347
350
|
size?: 'default' | 'small' | 'large' | 'icon' | (string & {});
|
|
348
351
|
/**
|
|
349
352
|
* If true, the element stretches to fill the available width.
|
|
@@ -368,8 +371,8 @@ interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$31> {
|
|
|
368
371
|
declare const _Button: react6.ForwardRefExoticComponent<ButtonProps & react6.RefAttributes<HTMLButtonElement>>;
|
|
369
372
|
//#endregion
|
|
370
373
|
//#region src/Calendar/Calendar.d.ts
|
|
371
|
-
type RemovedProps$
|
|
372
|
-
interface CalendarProps extends Omit<RAC.CalendarProps<DateValue>, RemovedProps$
|
|
374
|
+
type RemovedProps$32 = 'visibleDuration' | 'pageBehavior' | 'isDateUnavailable' | 'isDisabled' | 'isReadOnly' | 'isInvalid' | 'errorMessage' | 'className' | 'style';
|
|
375
|
+
interface CalendarProps extends Omit<RAC.CalendarProps<DateValue>, RemovedProps$32> {
|
|
373
376
|
/**
|
|
374
377
|
* Disables the Calendar.
|
|
375
378
|
* @default false
|
|
@@ -458,8 +461,8 @@ declare const Center: ({
|
|
|
458
461
|
}: CenterProps) => react_jsx_runtime3.JSX.Element;
|
|
459
462
|
//#endregion
|
|
460
463
|
//#region src/Checkbox/CheckboxGroup.d.ts
|
|
461
|
-
type RemovedProps$
|
|
462
|
-
interface CheckboxGroupProps extends Omit<RAC.CheckboxGroupProps, RemovedProps$
|
|
464
|
+
type RemovedProps$31 = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly';
|
|
465
|
+
interface CheckboxGroupProps extends Omit<RAC.CheckboxGroupProps, RemovedProps$31>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
463
466
|
/**
|
|
464
467
|
* The children of the component
|
|
465
468
|
*/
|
|
@@ -526,8 +529,8 @@ declare const _CheckboxGroup: ({
|
|
|
526
529
|
}: CheckboxGroupProps) => react_jsx_runtime3.JSX.Element;
|
|
527
530
|
//#endregion
|
|
528
531
|
//#region src/Checkbox/Checkbox.d.ts
|
|
529
|
-
type RemovedProps$
|
|
530
|
-
interface CheckboxProps extends Omit<RAC.CheckboxProps, RemovedProps$
|
|
532
|
+
type RemovedProps$30 = 'children' | 'className' | 'style' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'isSelected' | 'isIndeterminate' | 'defaultSelected';
|
|
533
|
+
interface CheckboxProps extends Omit<RAC.CheckboxProps, RemovedProps$30> {
|
|
531
534
|
variant?: string;
|
|
532
535
|
size?: string;
|
|
533
536
|
/**
|
|
@@ -664,8 +667,8 @@ declare const Columns: ({
|
|
|
664
667
|
}: ColumnsProps) => react_jsx_runtime3.JSX.Element;
|
|
665
668
|
//#endregion
|
|
666
669
|
//#region src/ComboBox/ComboBox.d.ts
|
|
667
|
-
type RemovedProps$
|
|
668
|
-
interface ComboBoxProps extends Omit<RAC.ComboBoxProps<any>, RemovedProps$
|
|
670
|
+
type RemovedProps$29 = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'defaultInputValue' | 'inputValue' | 'onInputChange';
|
|
671
|
+
interface ComboBoxProps extends Omit<RAC.ComboBoxProps<any>, RemovedProps$29>, Pick<FieldBaseProps<'label'>, 'width' | 'label' | 'description' | 'errorMessage'> {
|
|
669
672
|
variant?: string;
|
|
670
673
|
size?: string;
|
|
671
674
|
/**
|
|
@@ -843,12 +846,14 @@ interface ContextualHelpProps {
|
|
|
843
846
|
open?: boolean;
|
|
844
847
|
/** Handler that is called when the open state changes. */
|
|
845
848
|
onOpenChange?: (isOpen: boolean) => void;
|
|
849
|
+
/** Accessible label for the button. */
|
|
850
|
+
ariaLabel?: string;
|
|
846
851
|
}
|
|
847
852
|
declare const _ContextualHelp: ContextualHelpComponent;
|
|
848
853
|
//#endregion
|
|
849
854
|
//#region src/DateField/DateField.d.ts
|
|
850
|
-
type RemovedProps$
|
|
851
|
-
interface DateFieldProps extends Omit<RAC.DateFieldProps<DateValue>, RemovedProps$
|
|
855
|
+
type RemovedProps$28 = 'className' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'isReadOnly' | 'label' | 'children' | 'style';
|
|
856
|
+
interface DateFieldProps extends Omit<RAC.DateFieldProps<DateValue>, RemovedProps$28>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
852
857
|
variant?: string;
|
|
853
858
|
size?: string;
|
|
854
859
|
/**
|
|
@@ -884,8 +889,8 @@ interface DateFieldProps extends Omit<RAC.DateFieldProps<DateValue>, RemovedProp
|
|
|
884
889
|
declare const _DateField: react6.ForwardRefExoticComponent<DateFieldProps & react6.RefAttributes<HTMLInputElement>>;
|
|
885
890
|
//#endregion
|
|
886
891
|
//#region src/DatePicker/DatePicker.d.ts
|
|
887
|
-
type RemovedProps$
|
|
888
|
-
interface DatePickerProps extends Omit<RAC.DatePickerProps<DateValue>, RemovedProps$
|
|
892
|
+
type RemovedProps$27 = 'isDisabled' | 'isDateUnavailable' | 'isReadOnly' | 'isRequired' | 'isInvalid' | 'style' | 'className' | 'isOpen';
|
|
893
|
+
interface DatePickerProps extends Omit<RAC.DatePickerProps<DateValue>, RemovedProps$27>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
889
894
|
/**
|
|
890
895
|
* Callback that is called for each date of the calendar. If it returns true, then the date is unavailable.
|
|
891
896
|
*/
|
|
@@ -992,8 +997,8 @@ interface DialogContextProps extends RAC.ModalOverlayProps {
|
|
|
992
997
|
}
|
|
993
998
|
//#endregion
|
|
994
999
|
//#region src/Dialog/DialogTrigger.d.ts
|
|
995
|
-
type RemovedProps$
|
|
996
|
-
interface DialogTriggerProps extends Omit<RAC.DialogTriggerProps, 'isOpen'>, Omit<DialogContextProps, RemovedProps$
|
|
1000
|
+
type RemovedProps$26 = 'children' | 'isOpen' | 'isDismissable' | 'isKeyboardDismissDisabled';
|
|
1001
|
+
interface DialogTriggerProps extends Omit<RAC.DialogTriggerProps, 'isOpen'>, Omit<DialogContextProps, RemovedProps$26> {
|
|
997
1002
|
/** Whether the overlay is open by default (controlled). */
|
|
998
1003
|
open?: boolean;
|
|
999
1004
|
}
|
|
@@ -1086,8 +1091,8 @@ declare const ConfirmationProvider: ({
|
|
|
1086
1091
|
declare const useConfirmation: () => ConfirmationFn;
|
|
1087
1092
|
//#endregion
|
|
1088
1093
|
//#region src/Divider/Divider.d.ts
|
|
1089
|
-
type RemovedProps$
|
|
1090
|
-
interface DividerProps extends Omit<RAC.SeparatorProps, RemovedProps$
|
|
1094
|
+
type RemovedProps$25 = 'className' | 'style';
|
|
1095
|
+
interface DividerProps extends Omit<RAC.SeparatorProps, RemovedProps$25> {
|
|
1091
1096
|
variant?: 'default' | 'bold' | (string & {});
|
|
1092
1097
|
}
|
|
1093
1098
|
declare const _Divider: ({
|
|
@@ -1207,6 +1212,68 @@ declare const Drawer: {
|
|
|
1207
1212
|
}: DrawerActions) => react_jsx_runtime3.JSX.Element;
|
|
1208
1213
|
};
|
|
1209
1214
|
//#endregion
|
|
1215
|
+
//#region src/FileField/FileTrigger.d.ts
|
|
1216
|
+
type RemovedProps$24 = 'className' | 'style';
|
|
1217
|
+
interface FileTriggerProps extends Omit<RAC.FileTriggerProps, RemovedProps$24> {
|
|
1218
|
+
allowsMultiple?: RAC.FileTriggerProps['allowsMultiple'];
|
|
1219
|
+
acceptedFileType?: RAC.FileTriggerProps['acceptedFileTypes'];
|
|
1220
|
+
acceptDirectory?: RAC.FileTriggerProps['acceptDirectory'];
|
|
1221
|
+
onSelect?: RAC.FileTriggerProps['onSelect'];
|
|
1222
|
+
/**
|
|
1223
|
+
* Label for the upload button
|
|
1224
|
+
*/
|
|
1225
|
+
label: string;
|
|
1226
|
+
disabled?: boolean;
|
|
1227
|
+
}
|
|
1228
|
+
//#endregion
|
|
1229
|
+
//#region src/FileField/FileFieldItem.d.ts
|
|
1230
|
+
interface FileFieldItemProps {
|
|
1231
|
+
children?: ReactNode;
|
|
1232
|
+
/**
|
|
1233
|
+
* Called when the close button is pressed to remove this item.
|
|
1234
|
+
*/
|
|
1235
|
+
onRemove?: () => void;
|
|
1236
|
+
}
|
|
1237
|
+
//#endregion
|
|
1238
|
+
//#region src/FileField/FileField.d.ts
|
|
1239
|
+
type RemovedProps$23 = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired';
|
|
1240
|
+
interface FileFieldProps extends Omit<RAC.DropZoneProps, RemovedProps$23>, Pick<FieldBaseProps$1<'input'>, 'label'> {
|
|
1241
|
+
variant?: string;
|
|
1242
|
+
size?: string;
|
|
1243
|
+
/**
|
|
1244
|
+
* Sets the width of the field. You can see allowed tokens here: https://tailwindcss.com/docs/width
|
|
1245
|
+
* @default full
|
|
1246
|
+
*/
|
|
1247
|
+
width?: WidthProp['width'];
|
|
1248
|
+
/**
|
|
1249
|
+
* Disables the trigger.
|
|
1250
|
+
* @default false
|
|
1251
|
+
*/
|
|
1252
|
+
disabled?: RAC.DropZoneProps['isDisabled'];
|
|
1253
|
+
/**
|
|
1254
|
+
* Accepted file types for selection.
|
|
1255
|
+
*/
|
|
1256
|
+
accept?: RAC.FileTriggerProps['acceptedFileTypes'];
|
|
1257
|
+
/**
|
|
1258
|
+
* Whether multiple files can be selected.
|
|
1259
|
+
*/
|
|
1260
|
+
multiple?: RAC.FileTriggerProps['allowsMultiple'];
|
|
1261
|
+
}
|
|
1262
|
+
declare const FileField: {
|
|
1263
|
+
({
|
|
1264
|
+
disabled,
|
|
1265
|
+
accept,
|
|
1266
|
+
multiple,
|
|
1267
|
+
width,
|
|
1268
|
+
label,
|
|
1269
|
+
...props
|
|
1270
|
+
}: FileFieldProps): react_jsx_runtime3.JSX.Element;
|
|
1271
|
+
Item: ({
|
|
1272
|
+
children,
|
|
1273
|
+
onRemove
|
|
1274
|
+
}: FileFieldItemProps) => react_jsx_runtime3.JSX.Element;
|
|
1275
|
+
};
|
|
1276
|
+
//#endregion
|
|
1210
1277
|
//#region src/Form/Form.d.ts
|
|
1211
1278
|
interface FormProps extends Omit<RAC.FormProps, 'className' | 'style'>, MaxWidthProp {
|
|
1212
1279
|
/**
|
|
@@ -1765,19 +1832,19 @@ interface NumberFieldProps extends Omit<RAC.NumberFieldProps, RemovedProps$15>,
|
|
|
1765
1832
|
declare const _NumberField: react6.ForwardRefExoticComponent<NumberFieldProps & react6.RefAttributes<HTMLInputElement>>;
|
|
1766
1833
|
//#endregion
|
|
1767
1834
|
//#region src/utils/useRenderProps.d.ts
|
|
1768
|
-
interface StyleRenderProps<T> {
|
|
1835
|
+
interface StyleRenderProps<T$1> {
|
|
1769
1836
|
/** 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. */
|
|
1770
|
-
className?: string | ((values: T & {
|
|
1837
|
+
className?: string | ((values: T$1 & {
|
|
1771
1838
|
defaultClassName: string | undefined;
|
|
1772
1839
|
}) => string);
|
|
1773
1840
|
/** 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. */
|
|
1774
|
-
style?: CSSProperties | ((values: T & {
|
|
1841
|
+
style?: CSSProperties | ((values: T$1 & {
|
|
1775
1842
|
defaultStyle: CSSProperties;
|
|
1776
1843
|
}) => CSSProperties | undefined);
|
|
1777
1844
|
}
|
|
1778
|
-
interface RenderProps<T> extends StyleRenderProps<T> {
|
|
1845
|
+
interface RenderProps<T$1> extends StyleRenderProps<T$1> {
|
|
1779
1846
|
/** The children of the component. A function may be provided to alter the children based on component state. */
|
|
1780
|
-
children?: ReactNode | ((values: T & {
|
|
1847
|
+
children?: ReactNode | ((values: T$1 & {
|
|
1781
1848
|
defaultChildren: ReactNode | undefined;
|
|
1782
1849
|
}) => ReactNode);
|
|
1783
1850
|
}
|
|
@@ -1898,26 +1965,31 @@ declare const _Pagination: ({
|
|
|
1898
1965
|
...props
|
|
1899
1966
|
}: PaginationProps) => react_jsx_runtime3.JSX.Element;
|
|
1900
1967
|
//#endregion
|
|
1901
|
-
//#region src/
|
|
1902
|
-
interface
|
|
1968
|
+
//#region src/ProgressCircle/ProgressCircle.d.ts
|
|
1969
|
+
interface ProgressCircleProps extends RAC.ProgressBarProps {
|
|
1903
1970
|
/**
|
|
1904
1971
|
* Defines the height and width of the component
|
|
1905
1972
|
* @default 16
|
|
1906
1973
|
*/
|
|
1907
|
-
size?: string;
|
|
1974
|
+
size?: string | 'default' | 'large' | 'fit';
|
|
1975
|
+
variant?: 'default' | 'inverted';
|
|
1908
1976
|
}
|
|
1909
|
-
declare const
|
|
1977
|
+
declare const ProgressCircleSvg: ({
|
|
1978
|
+
size,
|
|
1979
|
+
variant
|
|
1980
|
+
}: ProgressCircleProps) => react_jsx_runtime3.JSX.Element;
|
|
1981
|
+
declare const ProgressCircle: ({
|
|
1910
1982
|
size,
|
|
1911
1983
|
...props
|
|
1912
|
-
}:
|
|
1984
|
+
}: ProgressCircleProps) => react_jsx_runtime3.JSX.Element;
|
|
1913
1985
|
//#endregion
|
|
1914
1986
|
//#region src/Provider/MarigoldProvider.d.ts
|
|
1915
|
-
type MarigoldProviderProps<T extends Theme> = ThemeProviderProps<T>;
|
|
1916
|
-
declare function MarigoldProvider<T extends Theme>({
|
|
1987
|
+
type MarigoldProviderProps<T$1 extends Theme> = ThemeProviderProps<T$1>;
|
|
1988
|
+
declare function MarigoldProvider<T$1 extends Theme>({
|
|
1917
1989
|
children,
|
|
1918
1990
|
className,
|
|
1919
1991
|
theme
|
|
1920
|
-
}: MarigoldProviderProps<T>): react_jsx_runtime3.JSX.Element;
|
|
1992
|
+
}: MarigoldProviderProps<T$1>): react_jsx_runtime3.JSX.Element;
|
|
1921
1993
|
//#endregion
|
|
1922
1994
|
//#region src/Provider/OverlayContainerProvider.d.ts
|
|
1923
1995
|
interface OverlayContainerProps extends PropsWithChildren {
|
|
@@ -2194,13 +2266,13 @@ declare const SectionMessage: {
|
|
|
2194
2266
|
//#region src/Select/Select.d.ts
|
|
2195
2267
|
type SelectionMode = 'single' | 'multiple';
|
|
2196
2268
|
type RemovedProps$11 = 'children' | 'isInvalid' | 'isDisabled' | 'isOpen' | 'isRequired' | 'style' | 'className';
|
|
2197
|
-
interface SelectProps<T extends object, M extends SelectionMode = 'single'> extends Omit<RAC.SelectProps<T, M>, RemovedProps$11>, WidthProp {
|
|
2269
|
+
interface SelectProps<T$1 extends object, M$1 extends SelectionMode = 'single'> extends Omit<RAC.SelectProps<T$1, M$1>, RemovedProps$11>, WidthProp {
|
|
2198
2270
|
variant?: string;
|
|
2199
2271
|
size?: string;
|
|
2200
2272
|
/**
|
|
2201
2273
|
* Children of the select.
|
|
2202
2274
|
*/
|
|
2203
|
-
children?: React.ReactNode | ((item: T) => React.ReactNode);
|
|
2275
|
+
children?: React.ReactNode | ((item: T$1) => React.ReactNode);
|
|
2204
2276
|
/**
|
|
2205
2277
|
* Set a label for the select.
|
|
2206
2278
|
*/
|
|
@@ -2216,7 +2288,7 @@ interface SelectProps<T extends object, M extends SelectionMode = 'single'> exte
|
|
|
2216
2288
|
/**
|
|
2217
2289
|
* Items of the select.
|
|
2218
2290
|
*/
|
|
2219
|
-
items?: Iterable<T>;
|
|
2291
|
+
items?: Iterable<T$1>;
|
|
2220
2292
|
/**
|
|
2221
2293
|
* If the select should be required.
|
|
2222
2294
|
*
|
|
@@ -2291,7 +2363,7 @@ interface SelectListComponent extends ForwardRefExoticComponent<SelectListProps
|
|
|
2291
2363
|
declare const _SelectList: SelectListComponent;
|
|
2292
2364
|
//#endregion
|
|
2293
2365
|
//#region src/Slider/Slider.d.ts
|
|
2294
|
-
interface SliderProps<T> extends Omit<RAC.SliderProps<T>, 'children' | 'isDisabled' | 'orientation'>, Pick<FieldBaseProps<'label'>, 'description'> {
|
|
2366
|
+
interface SliderProps<T$1> extends Omit<RAC.SliderProps<T$1>, 'children' | 'isDisabled' | 'orientation'>, Pick<FieldBaseProps<'label'>, 'description'> {
|
|
2295
2367
|
variant?: string;
|
|
2296
2368
|
size?: string;
|
|
2297
2369
|
/**
|
|
@@ -2861,29 +2933,36 @@ declare const _Tooltip: {
|
|
|
2861
2933
|
}: TooltipTriggerProps) => react_jsx_runtime3.JSX.Element;
|
|
2862
2934
|
};
|
|
2863
2935
|
//#endregion
|
|
2864
|
-
//#region src/
|
|
2865
|
-
interface
|
|
2936
|
+
//#region src/Loader/BaseLoader.d.ts
|
|
2937
|
+
interface BaseLoaderProps extends Pick<ProgressBarProps, 'id' | 'aria-label' | 'aria-labelledby' | 'aria-describedby' | 'aria-details'> {
|
|
2866
2938
|
/**
|
|
2867
2939
|
* Children of the component that will make up the label.
|
|
2868
2940
|
*/
|
|
2869
2941
|
children?: ReactNode;
|
|
2870
2942
|
variant?: 'default' | 'inverted';
|
|
2871
2943
|
size?: 'default' | 'large' | 'fit';
|
|
2944
|
+
loaderType?: LoaderVisualType$1;
|
|
2872
2945
|
}
|
|
2873
2946
|
//#endregion
|
|
2874
|
-
//#region src/
|
|
2875
|
-
|
|
2947
|
+
//#region src/Loader/Loader.d.ts
|
|
2948
|
+
type LoaderVisualType = 'xloader' | 'circle';
|
|
2949
|
+
interface LoaderProps extends BaseLoaderProps {
|
|
2876
2950
|
/**
|
|
2877
2951
|
* Show the loader in `fullscreen` to overlay and block interaction with the site or `section` to show loading for a certain area.
|
|
2878
2952
|
* @default undefined
|
|
2879
2953
|
*/
|
|
2880
2954
|
mode?: 'fullscreen' | 'section';
|
|
2955
|
+
/**
|
|
2956
|
+
* Selects the visual style of the loading indicator shown when loading is true. Accepts `xloader` or `cycle`.
|
|
2957
|
+
* @default cycle
|
|
2958
|
+
*/
|
|
2959
|
+
loaderType?: LoaderVisualType;
|
|
2881
2960
|
}
|
|
2882
|
-
declare const
|
|
2961
|
+
declare const Loader: ({
|
|
2883
2962
|
mode,
|
|
2884
2963
|
variant,
|
|
2885
2964
|
...props
|
|
2886
|
-
}:
|
|
2965
|
+
}: LoaderProps) => react_jsx_runtime3.JSX.Element;
|
|
2887
2966
|
//#endregion
|
|
2888
2967
|
//#region src/utils/form.utils.d.ts
|
|
2889
2968
|
/**
|
|
@@ -2894,4 +2973,4 @@ declare const XLoader: ({
|
|
|
2894
2973
|
*/
|
|
2895
2974
|
declare const parseFormData: <T extends Record<string, FormDataEntryValue | FormDataEntryValue[]> = Record<string, FormDataEntryValue | FormDataEntryValue[]>>(e: FormEvent<HTMLFormElement>) => T;
|
|
2896
2975
|
//#endregion
|
|
2897
|
-
export { Accordion, AccordionItem, type AccordionProps, ActionMenu, type ActionMenuProps, Aside, type AsideProps, Aspect, type AspectProps, _Autocomplete as Autocomplete, type AutocompleteProps, Badge, type BadgeProps, _Breadcrumbs as Breadcrumbs, type BreadcrumbsProps, Breakout, type BreakoutProps, _Button as Button, type ButtonProps, _Calendar as Calendar, type CalendarProps, Card, type CardProps, Center, type CenterProps, _Checkbox as Checkbox, _CheckboxGroup as CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, CloseButton, Collapsible, type CollapsibleProps, 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, DateFormat, _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, HelpText, type HelpTextProps, I18nProvider, IconButton, 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, _ListBox as ListBox, _ListBoxItem as ListBoxItem, type ListBoxItemProps, type ListBoxProps, type ListProps, MarigoldProvider, type MarigoldProviderProps, _Menu as Menu, type MenuProps, _Modal as Modal, type ModalProps, Multiselect, NonModal, type NonModalProps, _NumberField as NumberField, type NumberFieldProps, NumericFormat, type OverlayContainerProps, OverlayContainerProvider, _Pagination as Pagination, type PaginationProps, _Popover as Popover, type PopoverProps,
|
|
2976
|
+
export { Accordion, AccordionItem, type AccordionProps, ActionMenu, type ActionMenuProps, Aside, type AsideProps, Aspect, type AspectProps, _Autocomplete as Autocomplete, type AutocompleteProps, Badge, type BadgeProps, _Breadcrumbs as Breadcrumbs, type BreadcrumbsProps, Breakout, type BreakoutProps, _Button as Button, type ButtonProps, _Calendar as Calendar, type CalendarProps, Card, type CardProps, Center, type CenterProps, _Checkbox as Checkbox, _CheckboxGroup as CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, CloseButton, Collapsible, type CollapsibleProps, 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, DateFormat, _DatePicker as DatePicker, type DatePickerProps, _Dialog as Dialog, type DialogProps, type DisclosureProps, _Divider as Divider, type DividerProps, Drawer, type DrawerProps, FieldBase, type FieldBaseProps, FileField, type FileFieldProps, type FileTriggerProps, _Form as Form, type FormProps, Grid, type GridProps, _Headline as Headline, type HeadlineProps, HelpText, type HelpTextProps, I18nProvider, IconButton, 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, _ListBox as ListBox, _ListBoxItem as ListBoxItem, type ListBoxItemProps, type ListBoxProps, type ListProps, Loader, type LoaderProps, type LoaderVisualType, MarigoldProvider, type MarigoldProviderProps, _Menu as Menu, type MenuProps, _Modal as Modal, type ModalProps, Multiselect, NonModal, type NonModalProps, _NumberField as NumberField, type NumberFieldProps, NumericFormat, type OverlayContainerProps, OverlayContainerProvider, _Pagination as Pagination, type PaginationProps, _Popover as Popover, type PopoverProps, ProgressCircle, type ProgressCircleProps, ProgressCircleSvg, _Radio as Radio, _RadioGroup as RadioGroup, type RadioGroupProps, type RadioProps, RouterProvider, Scrollable, type ScrollableProps, _SearchField as SearchField, type SearchFieldProps, SearchInput, type SearchInputProps, SectionMessage, type SectionMessageProps, Select, _SelectList as SelectList, _SelectListItem as SelectListItem, type SelectListItemProps, type SelectListProps, type SelectProps, type Selection, _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, _TagGroup as TagGroup, type TagGroupProps, type TagProps, _Text as Text, _TextArea as TextArea, type TextAreaProps, _TextField as TextField, type TextFieldProps, type TextProps, ThemeProvider, Tiles, type TilesProps, _TimeField as TimeField, type TimeFieldProps, type TimeValue, Toast, type ToastContentProps, type ToastProps, ToastProvider, type ToastProviderProps, _Tooltip as Tooltip, type TooltipProps, Underlay, type UnderlayProps, VisuallyHidden, parseFormData, useAsyncList, useConfirmation, useListData, useTheme, useToast };
|