@marigold/components 14.0.0 → 15.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 +239 -149
- package/dist/index.d.ts +239 -149
- package/dist/index.js +1986 -1562
- package/dist/index.mjs +1800 -1371
- package/package.json +30 -29
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Orientation, RefObject, AriaLabelingProps as AriaLabelingProps$1 } from '@react-types/shared';
|
|
2
2
|
export { Selection } from '@react-types/shared';
|
|
3
3
|
export { useAsyncList, useListData } from '@react-stately/data';
|
|
4
|
-
import { GapSpaceProp, AspectProp, WidthProp, PaddingSpaceProp, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp, PaddingSpacePropX, PaddingSpacePropY, PlaceItemsProp, MaxWidthProp, HeightProp, alignment, TextAlignProp,
|
|
4
|
+
import { GapSpaceProp, AspectProp, WidthProp, PaddingSpaceProp, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp, PaddingSpacePropX, PaddingSpacePropY, PlaceItemsProp, MaxWidthProp, HeightProp, alignment, TextAlignProp, 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';
|
|
11
|
-
import { AriaRegionProps, NonZeroPercentage, DistributiveOmit,
|
|
10
|
+
import react__default, { ReactNode, ReactElement, ElementType, ComponentPropsWithRef, ForwardRefExoticComponent, RefAttributes, Key as Key$1, CSSProperties, PropsWithChildren, Dispatch, SetStateAction, JSX } from 'react';
|
|
11
|
+
import { AriaRegionProps, NonZeroPercentage, DistributiveOmit, AriaLabelingProps } from '@marigold/types';
|
|
12
12
|
import { AriaLandmarkRole } from '@react-aria/landmark';
|
|
13
13
|
import { Props } from 'react-select';
|
|
14
14
|
import { OverlayTriggerState, OverlayTriggerProps } from 'react-stately';
|
|
@@ -17,8 +17,8 @@ import { AriaTableProps } from '@react-aria/table';
|
|
|
17
17
|
import { TableStateProps, TableBody, Cell, TableHeader, ColumnProps as ColumnProps$1, RowProps as RowProps$1 } from '@react-stately/table';
|
|
18
18
|
export { VisuallyHidden } from '@react-aria/visually-hidden';
|
|
19
19
|
|
|
20
|
-
type RemovedProps$
|
|
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,11 +34,11 @@ 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
|
-
variant?: string;
|
|
41
|
+
variant?: 'default' | 'card' | (string & {});
|
|
42
42
|
size?: string;
|
|
43
43
|
}
|
|
44
44
|
declare const Accordion: {
|
|
@@ -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
|
*/
|
|
@@ -185,6 +185,15 @@ interface AutocompleteProps extends Omit<RAC.ComboBoxProps<object>, RemovedProps
|
|
|
185
185
|
* @default false
|
|
186
186
|
*/
|
|
187
187
|
readOnly?: RAC.ComboBoxProps<object>['isReadOnly'];
|
|
188
|
+
/**
|
|
189
|
+
* Provides content to display when there are no items in the list.
|
|
190
|
+
*/
|
|
191
|
+
emptyState?: ReactNode;
|
|
192
|
+
/**
|
|
193
|
+
* If `true`, a loading spinner will show up.
|
|
194
|
+
* @default false
|
|
195
|
+
*/
|
|
196
|
+
loading?: boolean;
|
|
188
197
|
variant?: string;
|
|
189
198
|
size?: string;
|
|
190
199
|
placeholder?: string;
|
|
@@ -211,8 +220,8 @@ interface AutocompleteComponent extends ForwardRefExoticComponent<AutocompletePr
|
|
|
211
220
|
}
|
|
212
221
|
declare const _Autocomplete: AutocompleteComponent;
|
|
213
222
|
|
|
214
|
-
type RemovedProps$
|
|
215
|
-
interface ComboBoxProps extends Omit<RAC.ComboBoxProps<any>, RemovedProps$
|
|
223
|
+
type RemovedProps$v = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'defaultInputValue' | 'inputValue' | 'onInputChange';
|
|
224
|
+
interface ComboBoxProps extends Omit<RAC.ComboBoxProps<any>, RemovedProps$v>, Pick<FieldBaseProps<'label'>, 'width' | 'label' | 'description' | 'errorMessage'> {
|
|
216
225
|
variant?: string;
|
|
217
226
|
size?: string;
|
|
218
227
|
/**
|
|
@@ -255,6 +264,15 @@ interface ComboBoxProps extends Omit<RAC.ComboBoxProps<any>, RemovedProps$s>, Pi
|
|
|
255
264
|
* Set the placeholder for the select.
|
|
256
265
|
*/
|
|
257
266
|
placeholder?: string;
|
|
267
|
+
/**
|
|
268
|
+
* Provides content to display when there are no items in the list.
|
|
269
|
+
*/
|
|
270
|
+
emptyState?: ReactNode;
|
|
271
|
+
/**
|
|
272
|
+
* If `true`, a loading spinner will show up.
|
|
273
|
+
* @default false
|
|
274
|
+
*/
|
|
275
|
+
loading?: boolean;
|
|
258
276
|
}
|
|
259
277
|
interface ComboBoxComponent extends ForwardRefExoticComponent<ComboBoxProps & RefAttributes<HTMLInputElement>> {
|
|
260
278
|
/**
|
|
@@ -273,7 +291,7 @@ interface BadgeProps {
|
|
|
273
291
|
* Children of the component
|
|
274
292
|
*/
|
|
275
293
|
children?: React.ReactNode;
|
|
276
|
-
variant?: string;
|
|
294
|
+
variant?: 'default' | 'primary' | 'success' | 'warning' | 'info' | 'error' | 'admin' | 'master' | (string & {});
|
|
277
295
|
size?: string;
|
|
278
296
|
}
|
|
279
297
|
declare const Badge: ({ variant, size, children, ...props }: BadgeProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -283,20 +301,10 @@ interface BreakoutProps extends AriaRegionProps {
|
|
|
283
301
|
}
|
|
284
302
|
declare const Breakout: ({ children }: BreakoutProps) => react_jsx_runtime.JSX.Element;
|
|
285
303
|
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
children?: ReactNode;
|
|
291
|
-
variant?: string;
|
|
292
|
-
size?: string;
|
|
293
|
-
}
|
|
294
|
-
declare const Body: ({ children, variant, size, ...props }: BodyProps) => react_jsx_runtime.JSX.Element;
|
|
295
|
-
|
|
296
|
-
type RemovedProps$r = 'isDisabled' | 'isPending' | 'className' | 'style';
|
|
297
|
-
interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$r> {
|
|
298
|
-
variant?: string;
|
|
299
|
-
size?: string;
|
|
304
|
+
type RemovedProps$u = 'isDisabled' | 'isPending' | 'className' | 'style';
|
|
305
|
+
interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$u> {
|
|
306
|
+
variant?: 'primary' | 'secondary' | 'destructive' | 'ghost' | 'link' | (string & {});
|
|
307
|
+
size?: 'default' | 'small' | 'large' | 'icon' | (string & {});
|
|
300
308
|
/**
|
|
301
309
|
* Stretches the button width with full available space.
|
|
302
310
|
* @default false
|
|
@@ -322,7 +330,7 @@ declare const _Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAt
|
|
|
322
330
|
interface CardProps extends GapSpaceProp, PaddingSpaceProp, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp {
|
|
323
331
|
children?: ReactNode;
|
|
324
332
|
variant?: string;
|
|
325
|
-
size?: string;
|
|
333
|
+
size?: 'default' | 'full' | (string & {});
|
|
326
334
|
/**
|
|
327
335
|
* Padding of the component. You can see allowed tokens [here](../../foundations/design-token#spacing).
|
|
328
336
|
*/
|
|
@@ -348,8 +356,8 @@ interface CenterProps extends GapSpaceProp, AriaRegionProps {
|
|
|
348
356
|
}
|
|
349
357
|
declare const Center: ({ maxWidth, space, children, ...props }: CenterProps) => react_jsx_runtime.JSX.Element;
|
|
350
358
|
|
|
351
|
-
type RemovedProps$
|
|
352
|
-
interface CheckboxGroupProps extends Omit<RAC.CheckboxGroupProps, RemovedProps$
|
|
359
|
+
type RemovedProps$t = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly';
|
|
360
|
+
interface CheckboxGroupProps extends Omit<RAC.CheckboxGroupProps, RemovedProps$t>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
353
361
|
/**
|
|
354
362
|
* The children of the component
|
|
355
363
|
*/
|
|
@@ -358,39 +366,53 @@ interface CheckboxGroupProps extends Omit<RAC.CheckboxGroupProps, RemovedProps$q
|
|
|
358
366
|
size?: string;
|
|
359
367
|
/**
|
|
360
368
|
* Sets the width of the field. You can see allowed tokens here: https://tailwindcss.com/docs/width
|
|
369
|
+
*
|
|
361
370
|
* @default full
|
|
362
371
|
*/
|
|
363
372
|
width?: WidthProp['width'];
|
|
364
373
|
/**
|
|
365
374
|
* Sets all checkboxes to disabled
|
|
375
|
+
*
|
|
366
376
|
* @default false
|
|
367
377
|
*/
|
|
368
378
|
disabled?: RAC.CheckboxGroupProps['isDisabled'];
|
|
369
379
|
/**
|
|
370
380
|
* Sets the checkbox as required.
|
|
381
|
+
*
|
|
371
382
|
* @default false
|
|
372
383
|
*/
|
|
373
384
|
required?: RAC.CheckboxGroupProps['isRequired'];
|
|
374
385
|
/**
|
|
375
386
|
* If `true`, the checkbox is considered invalid and if set the `errorMessage` is shown instead of the `description`.
|
|
387
|
+
*
|
|
376
388
|
* @default false
|
|
377
389
|
*/
|
|
378
390
|
error?: RAC.CheckboxGroupProps['isInvalid'];
|
|
379
391
|
/**
|
|
380
392
|
* Sets the checkbox on read only.
|
|
393
|
+
*
|
|
381
394
|
* @default false
|
|
382
395
|
*/
|
|
383
396
|
readOnly?: RAC.CheckboxGroupProps['isReadOnly'];
|
|
384
397
|
/**
|
|
385
398
|
* Wheather the component is displayed vertically or horizontally.
|
|
399
|
+
*
|
|
386
400
|
* @default vertical
|
|
387
401
|
*/
|
|
388
402
|
orientation?: Orientation;
|
|
403
|
+
/**
|
|
404
|
+
* The number of items to display before collapsing the rest.
|
|
405
|
+
* Items beyond this number will be hidden until the user clicks
|
|
406
|
+
* the "Show more" control.
|
|
407
|
+
*
|
|
408
|
+
* @default undefined
|
|
409
|
+
*/
|
|
410
|
+
collapseAt?: number;
|
|
389
411
|
}
|
|
390
|
-
declare const _CheckboxGroup: ({ children, variant, size, required, disabled, readOnly, error, width, orientation, ...rest }: CheckboxGroupProps) => react_jsx_runtime.JSX.Element;
|
|
412
|
+
declare const _CheckboxGroup: ({ children, variant, size, required, disabled, readOnly, error, width, orientation, collapseAt, ...rest }: CheckboxGroupProps) => react_jsx_runtime.JSX.Element;
|
|
391
413
|
|
|
392
|
-
type RemovedProps$
|
|
393
|
-
interface CheckboxProps extends Omit<RAC.CheckboxProps, RemovedProps$
|
|
414
|
+
type RemovedProps$s = 'children' | 'className' | 'style' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'isSelected' | 'isIndeterminate' | 'defaultSelected';
|
|
415
|
+
interface CheckboxProps extends Omit<RAC.CheckboxProps, RemovedProps$s> {
|
|
394
416
|
variant?: string;
|
|
395
417
|
size?: string;
|
|
396
418
|
/**
|
|
@@ -578,14 +600,14 @@ interface DialogTitleProps {
|
|
|
578
600
|
}
|
|
579
601
|
declare const DialogTitle: ({ variant, size, children }: DialogTitleProps) => react_jsx_runtime.JSX.Element;
|
|
580
602
|
|
|
581
|
-
type RemovedProps$
|
|
603
|
+
type RemovedProps$r = 'children' | 'isOpen' | 'isDismissable' | 'isKeyboardDismissDisabled';
|
|
582
604
|
interface ModalProps$1 extends RAC.ModalOverlayProps {
|
|
583
605
|
open?: boolean;
|
|
584
606
|
dismissable?: boolean;
|
|
585
607
|
keyboardDismissable?: boolean;
|
|
586
608
|
size?: string;
|
|
587
609
|
}
|
|
588
|
-
interface DialogTriggerProps extends Omit<RAC.DialogTriggerProps, 'isOpen'>, Omit<ModalProps$1, RemovedProps$
|
|
610
|
+
interface DialogTriggerProps extends Omit<RAC.DialogTriggerProps, 'isOpen'>, Omit<ModalProps$1, RemovedProps$r> {
|
|
589
611
|
}
|
|
590
612
|
declare const _DialogTrigger: ({ open, dismissable, keyboardDismissable, ...rest }: DialogTriggerProps) => ReactNode;
|
|
591
613
|
|
|
@@ -621,9 +643,9 @@ interface DialogProps extends Omit<RAC.DialogProps, 'className' | 'style'> {
|
|
|
621
643
|
}
|
|
622
644
|
declare const _Dialog: DialogComponent;
|
|
623
645
|
|
|
624
|
-
type RemovedProps$
|
|
625
|
-
interface DividerProps extends Omit<RAC.SeparatorProps, RemovedProps$
|
|
626
|
-
variant?: string;
|
|
646
|
+
type RemovedProps$q = 'className' | 'style';
|
|
647
|
+
interface DividerProps extends Omit<RAC.SeparatorProps, RemovedProps$q> {
|
|
648
|
+
variant?: 'default' | 'bold' | (string & {});
|
|
627
649
|
}
|
|
628
650
|
declare const _Divider: ({ variant, ...props }: DividerProps) => react_jsx_runtime.JSX.Element;
|
|
629
651
|
|
|
@@ -699,16 +721,6 @@ declare const Drawer: {
|
|
|
699
721
|
Actions: ({ variant, size, children }: DrawerActions) => react_jsx_runtime.JSX.Element;
|
|
700
722
|
};
|
|
701
723
|
|
|
702
|
-
interface FooterProps extends Omit<HtmlProps<'footer'>, 'className'> {
|
|
703
|
-
/**
|
|
704
|
-
* The children of the component.
|
|
705
|
-
*/
|
|
706
|
-
children?: ReactNode;
|
|
707
|
-
variant?: string;
|
|
708
|
-
size?: string;
|
|
709
|
-
}
|
|
710
|
-
declare const Footer: ({ children, variant, size, ...props }: FooterProps) => react_jsx_runtime.JSX.Element;
|
|
711
|
-
|
|
712
724
|
interface FormProps extends Omit<RAC.FormProps, 'className' | 'style'>, MaxWidthProp {
|
|
713
725
|
/**
|
|
714
726
|
* Removes the form's visual container so that it does not impact the layout,
|
|
@@ -761,23 +773,13 @@ declare const Grid: {
|
|
|
761
773
|
Area: ({ name, children }: GridAreaProps) => react_jsx_runtime.JSX.Element;
|
|
762
774
|
};
|
|
763
775
|
|
|
764
|
-
interface HeaderProps extends Omit<RAC.HeadingProps, 'children'> {
|
|
765
|
-
/**
|
|
766
|
-
* The children of the component.
|
|
767
|
-
*/
|
|
768
|
-
children?: ReactNode;
|
|
769
|
-
variant?: string;
|
|
770
|
-
size?: string;
|
|
771
|
-
}
|
|
772
|
-
declare const _Header: ({ variant, size, ...props }: HeaderProps) => react_jsx_runtime.JSX.Element;
|
|
773
|
-
|
|
774
776
|
interface HeadlineProps extends AriaLabelingProps, TextAlignProp {
|
|
775
777
|
/**
|
|
776
778
|
* Set the color of the headline.
|
|
777
779
|
*/
|
|
778
780
|
color?: string;
|
|
779
781
|
variant?: string;
|
|
780
|
-
size?: string;
|
|
782
|
+
size?: 'level-1' | 'level-2' | 'level-3' | 'level-4' | 'level-5' | 'level-6' | (string & {});
|
|
781
783
|
/**
|
|
782
784
|
* Set a different level.
|
|
783
785
|
*/
|
|
@@ -793,20 +795,6 @@ interface HeadlineProps extends AriaLabelingProps, TextAlignProp {
|
|
|
793
795
|
}
|
|
794
796
|
declare const _Headline: ({ variant, size, children, align, color, level, ...props }: HeadlineProps) => react_jsx_runtime.JSX.Element;
|
|
795
797
|
|
|
796
|
-
interface ImageProps extends Pick<HtmlProps<'img'>, 'src' | 'srcSet' | 'sizes' | 'slot' | 'title' | 'height' | 'width' | 'role' | 'datatype'>, ObjectFitProp, ObjectPositionProp {
|
|
797
|
-
variant?: string;
|
|
798
|
-
size?: string;
|
|
799
|
-
/**
|
|
800
|
-
* The children of the component.
|
|
801
|
-
*/
|
|
802
|
-
children?: never;
|
|
803
|
-
/**
|
|
804
|
-
* specifies an alternate text for an image, if the image cannot be displayed.
|
|
805
|
-
*/
|
|
806
|
-
alt: string;
|
|
807
|
-
}
|
|
808
|
-
declare const Image: ({ variant, size, fit, position, ...props }: ImageProps) => react_jsx_runtime.JSX.Element;
|
|
809
|
-
|
|
810
798
|
interface InlineProps extends GapSpaceProp, AriaRegionProps {
|
|
811
799
|
/**
|
|
812
800
|
* The children of the component.
|
|
@@ -819,12 +807,12 @@ interface InlineProps extends GapSpaceProp, AriaRegionProps {
|
|
|
819
807
|
/**
|
|
820
808
|
* Vertical alignment of the items inside the element.
|
|
821
809
|
*/
|
|
822
|
-
alignY?: keyof typeof alignment.horizontal.alignmentY;
|
|
810
|
+
alignY?: keyof typeof alignment.horizontal.alignmentY | 'input';
|
|
823
811
|
}
|
|
824
812
|
declare const Inline: ({ space, alignX, alignY, children, ...props }: InlineProps) => react_jsx_runtime.JSX.Element;
|
|
825
813
|
|
|
826
|
-
type RemovedProps$
|
|
827
|
-
interface InputProps extends Omit<RAC.InputProps, RemovedProps$
|
|
814
|
+
type RemovedProps$p = 'className' | 'style' | 'size';
|
|
815
|
+
interface InputProps extends Omit<RAC.InputProps, RemovedProps$p> {
|
|
828
816
|
icon?: ReactElement<any>;
|
|
829
817
|
action?: ReactElement<any>;
|
|
830
818
|
variant?: string;
|
|
@@ -833,8 +821,8 @@ interface InputProps extends Omit<RAC.InputProps, RemovedProps$m> {
|
|
|
833
821
|
}
|
|
834
822
|
declare const _Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>;
|
|
835
823
|
|
|
836
|
-
type RemovedProps$
|
|
837
|
-
interface DateFieldProps extends Omit<RAC.DateFieldProps<DateValue>, RemovedProps$
|
|
824
|
+
type RemovedProps$o = 'className' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'isReadOnly' | 'label' | 'children' | 'style';
|
|
825
|
+
interface DateFieldProps extends Omit<RAC.DateFieldProps<DateValue>, RemovedProps$o>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
838
826
|
variant?: string;
|
|
839
827
|
size?: string;
|
|
840
828
|
/**
|
|
@@ -869,8 +857,8 @@ interface DateFieldProps extends Omit<RAC.DateFieldProps<DateValue>, RemovedProp
|
|
|
869
857
|
}
|
|
870
858
|
declare const _DateField: react.ForwardRefExoticComponent<DateFieldProps & react.RefAttributes<HTMLInputElement>>;
|
|
871
859
|
|
|
872
|
-
type RemovedProps$
|
|
873
|
-
interface CalendarProps extends Omit<RAC.CalendarProps<DateValue>, RemovedProps$
|
|
860
|
+
type RemovedProps$n = 'visibleDuration' | 'pageBehavior' | 'isDateUnavailable' | 'isDisabled' | 'isReadOnly' | 'isInvalid' | 'errorMessage' | 'className' | 'style';
|
|
861
|
+
interface CalendarProps extends Omit<RAC.CalendarProps<DateValue>, RemovedProps$n> {
|
|
874
862
|
/**
|
|
875
863
|
* Disables the Calendar.
|
|
876
864
|
* @default false
|
|
@@ -893,10 +881,10 @@ interface CalendarProps extends Omit<RAC.CalendarProps<DateValue>, RemovedProps$
|
|
|
893
881
|
*/
|
|
894
882
|
dateUnavailable?: RAC.CalendarProps<DateValue>['isDateUnavailable'];
|
|
895
883
|
}
|
|
896
|
-
declare const _Calendar: ({ disabled, readOnly, size, variant, width, dateUnavailable, ...rest }: CalendarProps) => react_jsx_runtime.JSX.Element;
|
|
884
|
+
declare const _Calendar: ({ disabled, readOnly, size, variant, width, dateUnavailable, minValue: _minValue, maxValue: _maxValue, ...rest }: CalendarProps) => react_jsx_runtime.JSX.Element;
|
|
897
885
|
|
|
898
|
-
type RemovedProps$
|
|
899
|
-
interface DatePickerProps extends Omit<RAC.DatePickerProps<DateValue>, RemovedProps$
|
|
886
|
+
type RemovedProps$m = 'isDisabled' | 'isDateUnavailable' | 'isReadOnly' | 'isRequired' | 'isInvalid' | 'style' | 'className' | 'isOpen';
|
|
887
|
+
interface DatePickerProps extends Omit<RAC.DatePickerProps<DateValue>, RemovedProps$m>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
900
888
|
/**
|
|
901
889
|
* Callback that is called for each date of the calendar. If it returns true, then the date is unavailable.
|
|
902
890
|
*/
|
|
@@ -960,16 +948,16 @@ type InsetProps = (AriaRegionProps & {
|
|
|
960
948
|
});
|
|
961
949
|
declare const Inset: ({ space, spaceX, spaceY, children }: InsetProps) => react_jsx_runtime.JSX.Element;
|
|
962
950
|
|
|
963
|
-
type RemovedProps$
|
|
964
|
-
interface LabelProps extends Omit<RAC.LabelProps, RemovedProps$
|
|
951
|
+
type RemovedProps$l = 'className';
|
|
952
|
+
interface LabelProps extends Omit<RAC.LabelProps, RemovedProps$l> {
|
|
965
953
|
size?: string;
|
|
966
954
|
variant?: string;
|
|
967
955
|
}
|
|
968
956
|
declare const _Label: ({ size, variant, children, ...props }: LabelProps) => react_jsx_runtime.JSX.Element;
|
|
969
957
|
|
|
970
|
-
type RemovedProps$
|
|
971
|
-
interface LinkProps extends Omit<RAC.LinkProps, RemovedProps$
|
|
972
|
-
variant?: string;
|
|
958
|
+
type RemovedProps$k = 'className' | 'isDisabled' | 'slot';
|
|
959
|
+
interface LinkProps extends Omit<RAC.LinkProps, RemovedProps$k> {
|
|
960
|
+
variant?: 'default' | 'secondary' | (string & {});
|
|
973
961
|
size?: string;
|
|
974
962
|
/**
|
|
975
963
|
* The link can't be clicked
|
|
@@ -1004,25 +992,24 @@ declare const List: {
|
|
|
1004
992
|
Item: ({ children, ...props }: ListItemProps) => react_jsx_runtime.JSX.Element;
|
|
1005
993
|
};
|
|
1006
994
|
|
|
1007
|
-
type RemovedProps$
|
|
1008
|
-
interface MenuSectionProps extends Omit<RAC.SectionProps<object>, RemovedProps$
|
|
995
|
+
type RemovedProps$j = 'className' | 'style' | 'children';
|
|
996
|
+
interface MenuSectionProps extends Omit<RAC.SectionProps<object>, RemovedProps$j> {
|
|
1009
997
|
title?: string;
|
|
1010
998
|
children: ReactNode;
|
|
1011
999
|
}
|
|
1012
1000
|
|
|
1013
|
-
type RemovedProps$
|
|
1014
|
-
type MenuItemProps = Omit<RAC.MenuItemProps, RemovedProps$
|
|
1001
|
+
type RemovedProps$i = 'style' | 'className';
|
|
1002
|
+
type MenuItemProps = Omit<RAC.MenuItemProps, RemovedProps$i>;
|
|
1015
1003
|
|
|
1016
1004
|
interface PopoverProps extends Omit<RAC.PopoverProps, 'isOpen' | 'isKeyboardDismissDisabled' | 'style' | 'className' | 'children'> {
|
|
1017
1005
|
keyboardDismissDisabled?: boolean;
|
|
1018
1006
|
open?: boolean;
|
|
1019
|
-
container?: Element;
|
|
1020
1007
|
children: ReactNode;
|
|
1021
1008
|
}
|
|
1022
1009
|
declare const _Popover: react.ForwardRefExoticComponent<PopoverProps & react.RefAttributes<HTMLDivElement>>;
|
|
1023
1010
|
|
|
1024
|
-
type RemovedProps$
|
|
1025
|
-
interface MenuProps extends Omit<RAC.MenuTriggerProps, RemovedProps$
|
|
1011
|
+
type RemovedProps$h = 'isOpen' | 'className' | 'style' | 'children';
|
|
1012
|
+
interface MenuProps extends Omit<RAC.MenuTriggerProps, RemovedProps$h>, Omit<RAC.MenuProps<object>, RemovedProps$h> {
|
|
1026
1013
|
/**
|
|
1027
1014
|
* Whether the menu is open.
|
|
1028
1015
|
* @default false
|
|
@@ -1037,8 +1024,8 @@ interface MenuProps extends Omit<RAC.MenuTriggerProps, RemovedProps$e>, Omit<RAC
|
|
|
1037
1024
|
* The label for the menu trigger button.
|
|
1038
1025
|
*/
|
|
1039
1026
|
label?: ReactNode;
|
|
1040
|
-
variant?: string;
|
|
1041
|
-
size?: string;
|
|
1027
|
+
variant?: 'default' | 'ghost' | (string & {});
|
|
1028
|
+
size?: 'default' | 'small' | 'large' | 'icon' | (string & {});
|
|
1042
1029
|
/**
|
|
1043
1030
|
* Handler that is called when an action is performed on an item.
|
|
1044
1031
|
*/
|
|
@@ -1058,12 +1045,12 @@ declare const _Menu: {
|
|
|
1058
1045
|
Section: ({ children, title, ...props }: MenuSectionProps) => react_jsx_runtime.JSX.Element;
|
|
1059
1046
|
};
|
|
1060
1047
|
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1048
|
+
type ActionMenuProps = Omit<MenuProps, 'label'>;
|
|
1049
|
+
declare const ActionMenu: {
|
|
1050
|
+
({ children, ...props }: ActionMenuProps): react_jsx_runtime.JSX.Element;
|
|
1051
|
+
Item: ({ children, ...props }: MenuItemProps) => react_jsx_runtime.JSX.Element;
|
|
1052
|
+
Section: ({ children, title, ...props }: MenuSectionProps) => react_jsx_runtime.JSX.Element;
|
|
1053
|
+
};
|
|
1067
1054
|
|
|
1068
1055
|
interface SectionMessageContentProps {
|
|
1069
1056
|
/**
|
|
@@ -1164,6 +1151,12 @@ interface MultipleSelectProps extends Pick<FieldBaseProps<'label'>, 'width' | 's
|
|
|
1164
1151
|
* Handler that is called when the input changes.
|
|
1165
1152
|
*/
|
|
1166
1153
|
onChange?: Props['onInputChange'];
|
|
1154
|
+
/**
|
|
1155
|
+
* Provides content to display when there are no items in the list.
|
|
1156
|
+
*/
|
|
1157
|
+
emptyState?: (obj: {
|
|
1158
|
+
inputValue: string;
|
|
1159
|
+
}) => ReactNode;
|
|
1167
1160
|
/**
|
|
1168
1161
|
* Handler that is called when the selection changes.
|
|
1169
1162
|
*/
|
|
@@ -1211,10 +1204,10 @@ interface MultipleSelectProps extends Pick<FieldBaseProps<'label'>, 'width' | 's
|
|
|
1211
1204
|
*/
|
|
1212
1205
|
ariaLiveMessages?: Props['ariaLiveMessages'];
|
|
1213
1206
|
}
|
|
1214
|
-
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;
|
|
1207
|
+
declare const Multiselect: ({ disabled, readOnly, items, selectedItems, defaultSelectedItems, defaultValue, error, errorMessage, size, variant, placeholder, description, emptyState, onChange, onSelectionChange, width, ...rest }: MultipleSelectProps) => react_jsx_runtime.JSX.Element;
|
|
1215
1208
|
|
|
1216
|
-
type RemovedProps$
|
|
1217
|
-
interface NumberFieldProps extends Omit<RAC.NumberFieldProps, RemovedProps$
|
|
1209
|
+
type RemovedProps$g = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'size';
|
|
1210
|
+
interface NumberFieldProps extends Omit<RAC.NumberFieldProps, RemovedProps$g>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
1218
1211
|
variant?: string;
|
|
1219
1212
|
size?: string;
|
|
1220
1213
|
/**
|
|
@@ -1382,11 +1375,19 @@ declare const _Pagination: ({ defaultPage, page, totalItems, pageSize, ...props
|
|
|
1382
1375
|
type MarigoldProviderProps<T extends Theme> = ThemeProviderProps<T>;
|
|
1383
1376
|
declare function MarigoldProvider<T extends Theme>({ children, className, theme, }: MarigoldProviderProps<T>): react_jsx_runtime.JSX.Element;
|
|
1384
1377
|
|
|
1385
|
-
|
|
1386
|
-
|
|
1378
|
+
interface OverlayContainerProps extends PropsWithChildren {
|
|
1379
|
+
/**
|
|
1380
|
+
* The id of the container element where the overlay should be rendered.
|
|
1381
|
+
* If not provided, the overlay will be rendered in the body.
|
|
1382
|
+
*
|
|
1383
|
+
* Note that the container must be present in the DOM before the overlay is rendered.
|
|
1384
|
+
*/
|
|
1385
|
+
container?: string;
|
|
1386
|
+
}
|
|
1387
|
+
declare const OverlayContainerProvider: ({ container, children, }: OverlayContainerProps) => react_jsx_runtime.JSX.Element;
|
|
1387
1388
|
|
|
1388
|
-
type RemovedProps$
|
|
1389
|
-
interface RadioGroupProps extends Omit<RAC.RadioGroupProps, RemovedProps$
|
|
1389
|
+
type RemovedProps$f = 'className' | 'style' | 'isDisabled' | 'isInvalid' | 'isRequired' | 'isSelected';
|
|
1390
|
+
interface RadioGroupProps extends Omit<RAC.RadioGroupProps, RemovedProps$f> {
|
|
1390
1391
|
variant?: string;
|
|
1391
1392
|
size?: string;
|
|
1392
1393
|
/**
|
|
@@ -1407,7 +1408,7 @@ interface RadioGroupProps extends Omit<RAC.RadioGroupProps, RemovedProps$c> {
|
|
|
1407
1408
|
/**
|
|
1408
1409
|
* The children elements of the radio group.
|
|
1409
1410
|
*/
|
|
1410
|
-
children
|
|
1411
|
+
children?: ReactNode[];
|
|
1411
1412
|
/**
|
|
1412
1413
|
* Control the width of the field.
|
|
1413
1414
|
* @default 100%
|
|
@@ -1442,11 +1443,19 @@ interface RadioGroupProps extends Omit<RAC.RadioGroupProps, RemovedProps$c> {
|
|
|
1442
1443
|
* @default vertical
|
|
1443
1444
|
*/
|
|
1444
1445
|
orientation?: 'horizontal' | 'vertical';
|
|
1446
|
+
/**
|
|
1447
|
+
* The number of items to display before collapsing the rest.
|
|
1448
|
+
* Items beyond this number will be hidden until the user clicks
|
|
1449
|
+
* the "Show more" control.
|
|
1450
|
+
*
|
|
1451
|
+
* @default undefined
|
|
1452
|
+
*/
|
|
1453
|
+
collapseAt?: number;
|
|
1445
1454
|
}
|
|
1446
|
-
declare const _RadioGroup: ({ variant, size, label, error, disabled, required, readOnly, description, errorMessage, orientation, children, width, ...rest }: RadioGroupProps) => react_jsx_runtime.JSX.Element;
|
|
1455
|
+
declare const _RadioGroup: ({ variant, size, label, error, disabled, required, readOnly, description, errorMessage, orientation, children, width, collapseAt, ...rest }: RadioGroupProps) => react_jsx_runtime.JSX.Element;
|
|
1447
1456
|
|
|
1448
|
-
type RemovedProps$
|
|
1449
|
-
interface RadioProps extends Omit<RAC.RadioProps, RemovedProps$
|
|
1457
|
+
type RemovedProps$e = 'className' | 'style' | 'children' | 'isDisabled';
|
|
1458
|
+
interface RadioProps extends Omit<RAC.RadioProps, RemovedProps$e> {
|
|
1450
1459
|
variant?: string;
|
|
1451
1460
|
size?: string;
|
|
1452
1461
|
/**
|
|
@@ -1471,8 +1480,8 @@ interface RadioComponent extends ForwardRefExoticComponent<RadioProps & RefAttri
|
|
|
1471
1480
|
Group: typeof _RadioGroup;
|
|
1472
1481
|
}
|
|
1473
1482
|
|
|
1474
|
-
type RemovedProps$
|
|
1475
|
-
interface SearchFieldProps extends Omit<RAC.SearchFieldProps, RemovedProps$
|
|
1483
|
+
type RemovedProps$d = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'value' | 'defaultValue';
|
|
1484
|
+
interface SearchFieldProps extends Omit<RAC.SearchFieldProps, RemovedProps$d>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
1476
1485
|
/**
|
|
1477
1486
|
* Action element to display in the search field.
|
|
1478
1487
|
*/
|
|
@@ -1602,8 +1611,8 @@ interface SelectListAction {
|
|
|
1602
1611
|
}
|
|
1603
1612
|
declare const SelectListAction: ({ children }: SelectListAction) => react_jsx_runtime.JSX.Element;
|
|
1604
1613
|
|
|
1605
|
-
type RemovedProps$
|
|
1606
|
-
interface SelectListItemProps extends Omit<RAC.GridListItemProps<object>, RemovedProps$
|
|
1614
|
+
type RemovedProps$c = 'className' | 'style' | 'isDisabled';
|
|
1615
|
+
interface SelectListItemProps extends Omit<RAC.GridListItemProps<object>, RemovedProps$c> {
|
|
1607
1616
|
children?: ReactNode;
|
|
1608
1617
|
/**
|
|
1609
1618
|
* Whether the item is disabled.
|
|
@@ -1645,9 +1654,15 @@ interface SliderProps<T> extends Omit<RAC.SliderProps<T>, 'children' | 'isDisabl
|
|
|
1645
1654
|
variant?: string;
|
|
1646
1655
|
size?: string;
|
|
1647
1656
|
/**
|
|
1648
|
-
*
|
|
1657
|
+
* The `name` attribute for the slider input(s), used for form submission.
|
|
1658
|
+
* - For single-thumb sliders, provide a string.
|
|
1659
|
+
* - For range sliders (two thumbs), provide a tuple of two strings, one for each thumb.
|
|
1660
|
+
*/
|
|
1661
|
+
name?: string | [string, string];
|
|
1662
|
+
/**
|
|
1663
|
+
* Aria labels for the thumbs in the slider.
|
|
1649
1664
|
*/
|
|
1650
|
-
thumbLabels?: string[];
|
|
1665
|
+
thumbLabels?: string | [string, string];
|
|
1651
1666
|
/**
|
|
1652
1667
|
* Sets the width of the field. You can see allowed tokens here: https://tailwindcss.com/docs/width
|
|
1653
1668
|
* @default full
|
|
@@ -1661,7 +1676,7 @@ interface SliderProps<T> extends Omit<RAC.SliderProps<T>, 'children' | 'isDisabl
|
|
|
1661
1676
|
/**
|
|
1662
1677
|
* Set the label of the slider.
|
|
1663
1678
|
*/
|
|
1664
|
-
label?:
|
|
1679
|
+
label?: ReactNode;
|
|
1665
1680
|
}
|
|
1666
1681
|
declare const _Slider: react.ForwardRefExoticComponent<SliderProps<number | number[]> & react.RefAttributes<HTMLDivElement>>;
|
|
1667
1682
|
|
|
@@ -1694,8 +1709,8 @@ interface StackProps extends GapSpaceProp, AriaRegionProps {
|
|
|
1694
1709
|
}
|
|
1695
1710
|
declare const Stack: ({ children, space, stretch, alignX, alignY, asList, ...props }: StackProps) => react_jsx_runtime.JSX.Element;
|
|
1696
1711
|
|
|
1697
|
-
type RemovedProps$
|
|
1698
|
-
interface SwitchProps extends Omit<RAC.SwitchProps, RemovedProps$
|
|
1712
|
+
type RemovedProps$b = 'children' | 'className' | 'isDisabled' | 'isReadOnly' | 'isSelected' | 'children' | 'slot';
|
|
1713
|
+
interface SwitchProps extends Omit<RAC.SwitchProps, RemovedProps$b> {
|
|
1699
1714
|
variant?: string;
|
|
1700
1715
|
size?: string;
|
|
1701
1716
|
/**
|
|
@@ -1726,7 +1741,7 @@ interface SwitchProps extends Omit<RAC.SwitchProps, RemovedProps$8> {
|
|
|
1726
1741
|
declare const _Switch: react.ForwardRefExoticComponent<SwitchProps & react.RefAttributes<HTMLLabelElement>>;
|
|
1727
1742
|
|
|
1728
1743
|
interface TableProps extends Pick<AriaTableProps, 'focusMode' | 'onRowAction' | 'onCellAction'>, Omit<TableStateProps<object>, 'showSelectionCheckboxes' | 'showDragButtons' | 'allowDuplicateSelectionEvents'> {
|
|
1729
|
-
variant?: string;
|
|
1744
|
+
variant?: 'grid' | 'default' | 'muted' | (string & {});
|
|
1730
1745
|
size?: string;
|
|
1731
1746
|
/**
|
|
1732
1747
|
* Stretch table to fill the container.
|
|
@@ -1754,7 +1769,7 @@ interface TableProps extends Pick<AriaTableProps, 'focusMode' | 'onRowAction' |
|
|
|
1754
1769
|
alignY?: Exclude<JSX.IntrinsicElements['td']['valign'], 'baseline' | 'sub' | 'super' | 'bottom'>;
|
|
1755
1770
|
}
|
|
1756
1771
|
interface RowProps extends RowProps$1<any> {
|
|
1757
|
-
variant?: string;
|
|
1772
|
+
variant?: 'default' | 'grid' | 'admin' | 'master' | (string & {});
|
|
1758
1773
|
size?: string;
|
|
1759
1774
|
}
|
|
1760
1775
|
interface ColumnProps extends Omit<ColumnProps$1<any>, 'width'>, WidthProp {
|
|
@@ -1778,8 +1793,8 @@ interface Table {
|
|
|
1778
1793
|
Row: (props: RowProps) => JSX.Element;
|
|
1779
1794
|
}
|
|
1780
1795
|
|
|
1781
|
-
type RemovedProps$
|
|
1782
|
-
interface TextProps extends AriaLabelingProps, Omit<RAC.TextProps, RemovedProps$
|
|
1796
|
+
type RemovedProps$a = 'elementType' | keyof JSX.IntrinsicElements['div'] | keyof JSX.IntrinsicElements['span'] | keyof JSX.IntrinsicElements['p'];
|
|
1797
|
+
interface TextProps extends AriaLabelingProps, Omit<RAC.TextProps, RemovedProps$a>, TextAlignProp, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp {
|
|
1783
1798
|
/**
|
|
1784
1799
|
* The children of the component
|
|
1785
1800
|
*/
|
|
@@ -1798,13 +1813,13 @@ interface TextProps extends AriaLabelingProps, Omit<RAC.TextProps, RemovedProps$
|
|
|
1798
1813
|
* A slot name for the component. Slots allow the component to receive props from a parent component.
|
|
1799
1814
|
*/
|
|
1800
1815
|
slot?: string;
|
|
1801
|
-
variant?: string;
|
|
1802
|
-
size?: string;
|
|
1816
|
+
variant?: 'default' | 'muted' | (string & {});
|
|
1817
|
+
size?: 'default' | 'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | '8xl' | '9xl' | (string & {});
|
|
1803
1818
|
}
|
|
1804
1819
|
declare const _Text: ({ variant, size, color, align, cursor, weight, fontSize, fontStyle, children, as, ...props }: TextProps) => react_jsx_runtime.JSX.Element;
|
|
1805
1820
|
|
|
1806
|
-
type RemovedProps$
|
|
1807
|
-
interface TextAreaProps extends Omit<RAC.TextFieldProps, RemovedProps$
|
|
1821
|
+
type RemovedProps$9 = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'value' | 'defaultValue';
|
|
1822
|
+
interface TextAreaProps extends Omit<RAC.TextFieldProps, RemovedProps$9>, Pick<RAC.TextAreaProps, 'rows'>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
1808
1823
|
variant?: string;
|
|
1809
1824
|
size?: string;
|
|
1810
1825
|
/**
|
|
@@ -1855,8 +1870,8 @@ interface TextAreaProps extends Omit<RAC.TextFieldProps, RemovedProps$6>, Pick<R
|
|
|
1855
1870
|
}
|
|
1856
1871
|
declare const _TextArea: react.ForwardRefExoticComponent<TextAreaProps & react.RefAttributes<HTMLTextAreaElement>>;
|
|
1857
1872
|
|
|
1858
|
-
type RemovedProps$
|
|
1859
|
-
interface TextFieldProps extends Omit<RAC.TextFieldProps, RemovedProps$
|
|
1873
|
+
type RemovedProps$8 = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'value' | 'defaultValue' | 'slot';
|
|
1874
|
+
interface TextFieldProps extends Omit<RAC.TextFieldProps, RemovedProps$8>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
1860
1875
|
variant?: string;
|
|
1861
1876
|
size?: string;
|
|
1862
1877
|
/**
|
|
@@ -1935,8 +1950,8 @@ interface TilesProps extends GapSpaceProp, AriaRegionProps {
|
|
|
1935
1950
|
}
|
|
1936
1951
|
declare const Tiles: ({ space, stretch, equalHeight, tilesWidth, children, ...props }: TilesProps) => react_jsx_runtime.JSX.Element;
|
|
1937
1952
|
|
|
1938
|
-
type RemovedProps$
|
|
1939
|
-
interface TooltipTriggerProps extends Omit<RAC.TooltipTriggerComponentProps, RemovedProps$
|
|
1953
|
+
type RemovedProps$7 = 'isDisabled' | 'isOpen' | 'children';
|
|
1954
|
+
interface TooltipTriggerProps extends Omit<RAC.TooltipTriggerComponentProps, RemovedProps$7> {
|
|
1940
1955
|
/**
|
|
1941
1956
|
* The children of the component.
|
|
1942
1957
|
*/
|
|
@@ -1951,13 +1966,13 @@ interface TooltipTriggerProps extends Omit<RAC.TooltipTriggerComponentProps, Rem
|
|
|
1951
1966
|
open?: boolean;
|
|
1952
1967
|
}
|
|
1953
1968
|
|
|
1954
|
-
type RemovedProps$
|
|
1955
|
-
interface TooltipProps extends Omit<RAC.TooltipProps, RemovedProps$
|
|
1969
|
+
type RemovedProps$6 = 'className' | 'isOpen' | 'style';
|
|
1970
|
+
interface TooltipProps extends Omit<RAC.TooltipProps, RemovedProps$6> {
|
|
1956
1971
|
/**
|
|
1957
1972
|
* The children of the component.
|
|
1958
1973
|
*/
|
|
1959
1974
|
children?: ReactNode;
|
|
1960
|
-
variant?: string;
|
|
1975
|
+
variant?: 'default' | 'white' | (string & {});
|
|
1961
1976
|
size?: string;
|
|
1962
1977
|
/**
|
|
1963
1978
|
* Whether the element is rendered.
|
|
@@ -1969,8 +1984,40 @@ declare const _Tooltip: {
|
|
|
1969
1984
|
Trigger: ({ delay, children, disabled, open, ...rest }: TooltipTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
1970
1985
|
};
|
|
1971
1986
|
|
|
1972
|
-
type
|
|
1973
|
-
|
|
1987
|
+
type ToastContentProps = {
|
|
1988
|
+
title: string;
|
|
1989
|
+
description?: string;
|
|
1990
|
+
variant?: 'success' | 'info' | 'warning' | 'error';
|
|
1991
|
+
};
|
|
1992
|
+
interface ToastProps {
|
|
1993
|
+
toast: {
|
|
1994
|
+
content: ToastContentProps;
|
|
1995
|
+
key: string;
|
|
1996
|
+
};
|
|
1997
|
+
}
|
|
1998
|
+
declare const Toast: ({ toast }: ToastProps) => react_jsx_runtime.JSX.Element;
|
|
1999
|
+
|
|
2000
|
+
declare const queue: UNSTABLE_ToastQueue<ToastContentProps>;
|
|
2001
|
+
interface ToastProviderProps extends Omit<RAC.ToastRegionProps<object>, RemovedProps$5> {
|
|
2002
|
+
position?: ToastPosition;
|
|
2003
|
+
}
|
|
2004
|
+
type RemovedProps$5 = 'children' | 'className' | 'style' | 'queue';
|
|
2005
|
+
type ToastPosition = 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | 'top' | 'bottom';
|
|
2006
|
+
declare const ToastProvider: ({ position }: ToastProviderProps) => react_jsx_runtime.JSX.Element;
|
|
2007
|
+
|
|
2008
|
+
declare function useToast(): {
|
|
2009
|
+
addToast: (options: {
|
|
2010
|
+
title: string;
|
|
2011
|
+
description?: string;
|
|
2012
|
+
variant?: "info" | "success" | "error" | "warning";
|
|
2013
|
+
timeout?: number;
|
|
2014
|
+
}) => string;
|
|
2015
|
+
clearToasts: () => void;
|
|
2016
|
+
removeToast: (key: string) => void;
|
|
2017
|
+
};
|
|
2018
|
+
|
|
2019
|
+
type RemovedProps$4 = 'className' | 'style' | 'children' | 'isRequired';
|
|
2020
|
+
interface TagGroupProps extends Omit<RAC.TagGroupProps, RemovedProps$4>, Pick<TagListProps<object>, 'items' | 'children'>, Pick<FieldBaseProps<'label'>, 'label' | 'description'> {
|
|
1974
2021
|
variant?: string;
|
|
1975
2022
|
size?: string;
|
|
1976
2023
|
/**
|
|
@@ -1986,10 +2033,15 @@ interface TagGroupProps extends Omit<RAC.TagGroupProps, RemovedProps$2>, Pick<Ta
|
|
|
1986
2033
|
* Provides content to display when there are no items in the tag list.
|
|
1987
2034
|
*/
|
|
1988
2035
|
emptyState?: TagListProps<object>['renderEmptyState'];
|
|
2036
|
+
/**
|
|
2037
|
+
* Renders a "remove all" option, when a the `onRemove` prop is also set.
|
|
2038
|
+
* @default false
|
|
2039
|
+
*/
|
|
2040
|
+
removeAll?: boolean;
|
|
1989
2041
|
}
|
|
1990
2042
|
|
|
1991
|
-
type RemovedProps$
|
|
1992
|
-
interface TagProps extends Omit<RAC.TagProps, RemovedProps$
|
|
2043
|
+
type RemovedProps$3 = 'className' | 'style' | 'isDisabled';
|
|
2044
|
+
interface TagProps extends Omit<RAC.TagProps, RemovedProps$3> {
|
|
1993
2045
|
variant?: string;
|
|
1994
2046
|
size?: string;
|
|
1995
2047
|
children?: ReactNode;
|
|
@@ -1997,7 +2049,7 @@ interface TagProps extends Omit<RAC.TagProps, RemovedProps$1> {
|
|
|
1997
2049
|
}
|
|
1998
2050
|
declare const _Tag: {
|
|
1999
2051
|
({ variant, size, children, disabled, ...rest }: TagProps): react_jsx_runtime.JSX.Element;
|
|
2000
|
-
Group: ({
|
|
2052
|
+
Group: ({ items, children, emptyState, variant, size, name, removeAll, ...rest }: TagGroupProps) => react_jsx_runtime.JSX.Element;
|
|
2001
2053
|
};
|
|
2002
2054
|
|
|
2003
2055
|
interface LoaderProps extends Pick<ProgressBarProps, 'id' | 'aria-label' | 'aria-labelledby' | 'aria-describedby' | 'aria-details'> {
|
|
@@ -2005,8 +2057,8 @@ interface LoaderProps extends Pick<ProgressBarProps, 'id' | 'aria-label' | 'aria
|
|
|
2005
2057
|
* Children of the component that will make up the label.
|
|
2006
2058
|
*/
|
|
2007
2059
|
children?: ReactNode;
|
|
2008
|
-
|
|
2009
|
-
|
|
2060
|
+
variant?: 'default' | 'inverted';
|
|
2061
|
+
size?: 'default' | 'large' | 'fit';
|
|
2010
2062
|
}
|
|
2011
2063
|
|
|
2012
2064
|
interface XLoaderProps extends LoaderProps {
|
|
@@ -2041,8 +2093,8 @@ declare const _Tabs: {
|
|
|
2041
2093
|
Item: (props: TabProps) => react_jsx_runtime.JSX.Element;
|
|
2042
2094
|
};
|
|
2043
2095
|
|
|
2044
|
-
type RemovedProps = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'slot';
|
|
2045
|
-
interface TimeFieldProps extends Omit<RAC.TimeFieldProps<TimeValue>, RemovedProps>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
2096
|
+
type RemovedProps$2 = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'slot';
|
|
2097
|
+
interface TimeFieldProps extends Omit<RAC.TimeFieldProps<TimeValue>, RemovedProps$2>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
2046
2098
|
variant?: string;
|
|
2047
2099
|
size?: string;
|
|
2048
2100
|
/**
|
|
@@ -2088,4 +2140,42 @@ interface TimeFieldProps extends Omit<RAC.TimeFieldProps<TimeValue>, RemovedProp
|
|
|
2088
2140
|
}
|
|
2089
2141
|
declare const _TimeField: react.ForwardRefExoticComponent<TimeFieldProps & react.RefAttributes<HTMLInputElement>>;
|
|
2090
2142
|
|
|
2091
|
-
|
|
2143
|
+
type RemovedProps$1 = 'className' | 'style';
|
|
2144
|
+
interface BreadcrumbsItemProps extends Omit<RAC.BreadcrumbProps, RemovedProps$1> {
|
|
2145
|
+
variant?: 'default' | (string & {});
|
|
2146
|
+
size?: 'small' | 'default' | 'large' | (string & {});
|
|
2147
|
+
/**
|
|
2148
|
+
* The content inside the breadcrumb.
|
|
2149
|
+
*/
|
|
2150
|
+
children: ReactNode;
|
|
2151
|
+
/**
|
|
2152
|
+
* Link for the breadcrumb item.
|
|
2153
|
+
*/
|
|
2154
|
+
href: string;
|
|
2155
|
+
}
|
|
2156
|
+
declare const BreadcrumbsItem: (_: BreadcrumbsItemProps) => null;
|
|
2157
|
+
|
|
2158
|
+
type RemovedProps = 'className' | 'style' | 'children' | 'isDisabled';
|
|
2159
|
+
interface BreadcrumbsProps extends Omit<BreadcrumbsProps$1<object>, RemovedProps> {
|
|
2160
|
+
variant?: 'default' | (string & {});
|
|
2161
|
+
size?: 'small' | 'default' | 'large' | (string & {});
|
|
2162
|
+
/**
|
|
2163
|
+
* Disables the breadcrumbs.
|
|
2164
|
+
* @default false
|
|
2165
|
+
*/
|
|
2166
|
+
disabled?: BreadcrumbsProps$1<object>['isDisabled'];
|
|
2167
|
+
/**
|
|
2168
|
+
* Maximum number of visible items before the breadcrumbs collapse.
|
|
2169
|
+
*/
|
|
2170
|
+
maxVisibleItems?: number;
|
|
2171
|
+
/**
|
|
2172
|
+
* The breadcrumb items to be displayed.
|
|
2173
|
+
*/
|
|
2174
|
+
children: react__default.ReactNode | react__default.ReactNode[];
|
|
2175
|
+
}
|
|
2176
|
+
interface BreadcrumbsComponent extends ForwardRefExoticComponent<BreadcrumbsProps & RefAttributes<HTMLOListElement>> {
|
|
2177
|
+
Item: typeof BreadcrumbsItem;
|
|
2178
|
+
}
|
|
2179
|
+
declare const _Breadcrumbs: BreadcrumbsComponent;
|
|
2180
|
+
|
|
2181
|
+
export { Accordion, AccordionItem, type AccordionProps, ActionMenu, type ActionMenuProps, type GridAreaProps as AreaProps, Aside, type AsideProps, Aspect, type AspectProps, _Autocomplete as Autocomplete, type AutocompleteProps, Badge, type BadgeProps, _Breadcrumbs as Breadcrumbs, type BreadcrumbsComponent, type BreadcrumbsProps, Breakout, type BreakoutProps, _Button as Button, type ButtonProps, _Calendar as Calendar, type CalendarProps, Card, type CardProps, Center, type CenterProps, _Checkbox as Checkbox, type CheckboxComponent, _CheckboxGroup as CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type ColumnProps, Columns, type ColumnsProps, _ComboBox as ComboBox, type ComboBoxProps, Container, type ContainerProps, _ContextualHelp as ContextualHelp, type ContextualHelpProps, _DateField as DateField, type DateFieldProps, _DatePicker as DatePicker, type DatePickerProps, _Dialog as Dialog, type DialogProps, type DisclosureProps, _Divider as Divider, type DividerProps, Drawer, FieldBase, type FieldBaseProps, _Form as Form, type FormProps, Grid, type GridProps, _Headline as Headline, type HeadlineProps, Inline, type InlineProps, _Input as Input, type InputProps, Inset, type InsetProps, _Label as Label, type LabelProps, _Link as Link, type LinkProps, List, type ListProps, MarigoldProvider, type MarigoldProviderProps, _Menu as Menu, type MenuProps, _Modal as Modal, type ModalProps, Multiselect, NonModal, type NonModalProps, type NonModalRenderProps, _NumberField as NumberField, type NumberFieldProps, type OverlayContainerProps, OverlayContainerProvider, _Pagination as Pagination, type PaginationProps, _Popover as Popover, type PopoverProps, _Radio as Radio, type RadioComponent, _RadioGroup as RadioGroup, type RadioGroupProps, type RadioProps, type RemovedProps$s as RemovedProps, type RowProps, Scrollable, type ScrollableProps, _SearchField as SearchField, type SearchFieldProps, SectionMessage, type SectionMessageProps, _Select as Select, type SelectComponent, _SelectList as SelectList, type SelectListProps, type SelectProps, _Slider as Slider, type SliderProps, Split, Stack, type StackProps, _Switch as Switch, type SwitchProps, Table, type TableProps, _Tabs as Tabs, type TabsProps, _Tag as Tag, type TagProps, type TemplateValue, _Text as Text, _TextArea as TextArea, type TextAreaProps, _TextField as TextField, type TextFieldProps, type TextProps, Tiles, type TilesProps, _TimeField as TimeField, type TimeFieldProps, Toast, ToastProvider, type ToastProviderProps, _Tooltip as Tooltip, type TooltipProps, Underlay, type UnderlayProps, XLoader, type XLoaderProps, _ContextualHelp, gridColsAlign, gridColumn, queue, useToast };
|