@chassis-ui/react 0.1.0 → 0.1.2
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/README.md +11 -0
- package/dist/index.d.ts +682 -237
- package/dist/index.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +32 -25
- package/src/components/accordion/Accordion.tsx +2 -2
- package/src/components/accordion/AccordionItem.tsx +6 -6
- package/src/components/autocomplete/Autocomplete.tsx +4 -4
- package/src/components/avatar/Avatar.tsx +5 -2
- package/src/components/breadcrumb/Breadcrumb.tsx +11 -2
- package/src/components/button/Button.tsx +7 -4
- package/src/components/button-group/ButtonGroup.tsx +2 -2
- package/src/components/calendar/Calendar.tsx +56 -42
- package/src/components/calendar/CalendarMonthGrid.tsx +3 -1
- package/src/components/calendar/CalendarMonthYearPicker.tsx +4 -2
- package/src/components/calendar/CalendarYearGrid.tsx +5 -3
- package/src/components/calendar/RangeCalendar.scss +8 -8
- package/src/components/calendar/RangeCalendar.tsx +56 -44
- package/src/components/calendar/index.ts +1 -0
- package/src/components/calendar/labels.tsx +71 -0
- package/src/components/card/Card.tsx +4 -4
- package/src/components/card/CardGroup.tsx +1 -1
- package/src/components/card/CardImage.tsx +1 -1
- package/src/components/carousel/Carousel.tsx +20 -9
- package/src/components/carousel/CarouselControlButton.tsx +1 -1
- package/src/components/carousel/CarouselPlayPause.tsx +1 -1
- package/src/components/carousel/carouselEngine.ts +3 -3
- package/src/components/checkbox/Checkbox.tsx +12 -11
- package/src/components/checkbox/CheckboxGroup.tsx +1 -1
- package/src/components/chip/Chip.tsx +5 -4
- package/src/components/chip-input/ChipInput.tsx +12 -4
- package/src/components/chip-input/ChipList.tsx +2 -2
- package/src/components/close-button/CloseButton.tsx +2 -2
- package/src/components/color-input/ColorInput.tsx +2 -2
- package/src/components/combobox/Combobox.tsx +2 -2
- package/src/components/datagrid/DataGrid.scss +203 -0
- package/src/components/datagrid/DataGrid.tsx +259 -0
- package/src/components/datagrid/DataGridBody.tsx +162 -0
- package/src/components/datagrid/DataGridCell.tsx +47 -0
- package/src/components/datagrid/DataGridColumn.tsx +109 -0
- package/src/components/datagrid/DataGridHeader.tsx +47 -0
- package/src/components/datagrid/DataGridPinBehavior.tsx +225 -0
- package/src/components/datagrid/DataGridRow.tsx +48 -0
- package/src/components/datagrid/DataGridSelectionCell.tsx +74 -0
- package/src/components/datagrid/DataGridTableLayout.ts +30 -0
- package/src/components/datagrid/index.ts +14 -0
- package/src/components/datagrid/useColumnGeometry.ts +161 -0
- package/src/components/datepicker/ClearButton.tsx +4 -1
- package/src/components/datepicker/DatePicker.scss +2 -2
- package/src/components/datepicker/DatePicker.tsx +179 -147
- package/src/components/datepicker/DateRangePicker.tsx +107 -89
- package/src/components/datepicker/renderDatePickerShell.tsx +1 -1
- package/src/components/drawer/Drawer.tsx +3 -1
- package/src/components/file-input/FileInput.tsx +2 -2
- package/src/components/floating-input/FloatingInput.tsx +8 -8
- package/src/components/form/renderFormCheck.tsx +3 -3
- package/src/components/form-field/FormField.tsx +8 -8
- package/src/components/form-field/renderFormField.tsx +14 -3
- package/src/components/grid/Col.tsx +1 -1
- package/src/components/grid/GridItem.tsx +1 -1
- package/src/components/grid/Row.tsx +1 -1
- package/src/components/input-group/InputGroup.tsx +2 -2
- package/src/components/list/List.tsx +5 -5
- package/src/components/menu/Menu.tsx +10 -0
- package/src/components/menu/MenuSubmenu.tsx +3 -3
- package/src/components/menu/MenuSubmenuBack.tsx +1 -1
- package/src/components/menu/MenuToggle.tsx +2 -2
- package/src/components/modal/Modal.tsx +5 -3
- package/src/components/navbar/Navbar.tsx +1 -1
- package/src/components/navbar/NavbarBrand.tsx +5 -2
- package/src/components/notification/NotificationStack.tsx +1 -1
- package/src/components/otp-input/OtpBox.tsx +1 -1
- package/src/components/otp-input/OtpInput.tsx +12 -11
- package/src/components/pagination/Pagination.tsx +2 -2
- package/src/components/pagination/PaginationItem.tsx +23 -4
- package/src/components/popover/Popover.tsx +40 -14
- package/src/components/progress/Progress.tsx +1 -1
- package/src/components/progress/ProgressBar.tsx +1 -1
- package/src/components/radio/Radio.tsx +2 -2
- package/src/components/radio/RadioGroup.tsx +1 -1
- package/src/components/select/Select.tsx +8 -8
- package/src/components/skeleton/Skeleton.tsx +1 -1
- package/src/components/spinner/Spinner.tsx +2 -2
- package/src/components/stepper/Stepper.tsx +5 -5
- package/src/components/switch/Switch.tsx +3 -3
- package/src/components/table/Table.css +2 -2
- package/src/components/table/Table.tsx +30 -7
- package/src/components/text-input/TextInput.tsx +2 -2
- package/src/components/textarea/Textarea.tsx +2 -2
- package/src/components/toast/ToastBody.tsx +1 -1
- package/src/components/toast/ToastHeader.tsx +2 -2
- package/src/components/toast/Toaster.tsx +1 -1
- package/src/components/tooltip/Tooltip.tsx +23 -7
- package/src/hooks/useAutoDismiss.ts +4 -1
- package/src/hooks/useDialogElement.ts +10 -0
- package/src/hooks/useFloatingOverlay.ts +12 -2
- package/src/hooks/usePagination.ts +6 -2
- package/src/index.ts +226 -0
- package/src/types.ts +26 -26
- package/src/utils/breakpoints.ts +1 -1
- package/src/utils/devWarning.ts +58 -0
- package/src/utils/direction.ts +14 -0
- package/src/utils/focusRedirect.ts +10 -16
- package/src/utils/polymorphic.ts +18 -1
- package/src/utils/suppressFocusRingGlobally.ts +22 -7
- package/src/utils/triggerElement.ts +25 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
1
|
import React, { AriaAttributes, ButtonHTMLAttributes, ChangeEventHandler, ComponentPropsWithRef, ComponentPropsWithoutRef, DetailsHTMLAttributes, DialogHTMLAttributes, ElementType, FC, FormHTMLAttributes, Fragment, HTMLAttributes, ImgHTMLAttributes, InputHTMLAttributes, Key, LabelHTMLAttributes, MouseEvent, MouseEventHandler, ReactElement, ReactNode, Ref, RefObject, SVGAttributes, TextareaHTMLAttributes, useEffect } from "react";
|
|
3
2
|
import { DateValue, I18nProvider, Key as Key$1, RangeValue } from "react-aria";
|
|
4
|
-
import { DateValue as DateValue$1, Key as Key$2, Selection, SortDescriptor, TableBodyProps, TableHeaderProps, ToastQueue } from "react-stately";
|
|
3
|
+
import { ColumnSize, ColumnStaticSize, DateValue as DateValue$1, Key as Key$2, Selection, SortDescriptor, TableBodyProps as TableBodyProps$1, TableHeaderProps as TableHeaderProps$1, ToastQueue } from "react-stately";
|
|
4
|
+
import { Key as Key$3, Selection as Selection$1, SortDescriptor as SortDescriptor$1, TableBodyRenderProps } from "react-aria-components";
|
|
5
5
|
//#region src/components/accordion/Accordion.d.ts
|
|
6
6
|
interface AccordionItemDef {
|
|
7
7
|
/**
|
|
@@ -84,14 +84,28 @@ interface AccordionProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
84
84
|
*/
|
|
85
85
|
onExpandedChange?: (keys: Array<number | string>) => void;
|
|
86
86
|
/**
|
|
87
|
-
* Size the component
|
|
87
|
+
* Size the component sm or lg.
|
|
88
88
|
*/
|
|
89
|
-
size?: '
|
|
89
|
+
size?: 'sm' | 'lg';
|
|
90
90
|
}
|
|
91
|
-
declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<HTMLDivElement>>;
|
|
91
|
+
export declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<HTMLDivElement>>;
|
|
92
92
|
//#endregion
|
|
93
93
|
//#region src/utils/polymorphic.d.ts
|
|
94
94
|
type PolymorphicRef<C extends ElementType> = ComponentPropsWithRef<C>['ref'];
|
|
95
|
+
/**
|
|
96
|
+
* Ref type for a polymorphic component that can also pick its element from a prop *other* than
|
|
97
|
+
* `component` — `Button`, `Chip`, `Avatar`, `NavbarBrand` and `PaginationItem` all render an
|
|
98
|
+
* `<a>` when given `href`, and `PaginationItem` a `<span>` when `active`, none of which moves `C`
|
|
99
|
+
* off its default. A plain `PolymorphicRef<C>` describes only the `component` branch, so a caller
|
|
100
|
+
* holding a ref for the element that actually gets rendered (`<Button href="/x" ref={anchorRef}>`)
|
|
101
|
+
* got a spurious type error while the runtime happily populated it.
|
|
102
|
+
*
|
|
103
|
+
* `Ref` over the *union* rather than a union of `Ref`s is what makes a
|
|
104
|
+
* `createRef<HTMLButtonElement | HTMLAnchorElement>()` assignable here: `RefObject` is invariant
|
|
105
|
+
* in its type argument, so `RefObject<A | B>` satisfies `Ref<A | B>` but neither `Ref<A>` nor
|
|
106
|
+
* `Ref<B>` on its own.
|
|
107
|
+
*/
|
|
108
|
+
type PolymorphicRefWithFallback<C extends ElementType, Fallback extends HTMLElement> = PolymorphicRef<C> | Ref<Fallback>;
|
|
95
109
|
/**
|
|
96
110
|
* Props for a polymorphic component: `OwnProps` (which must declare `component?: C`) plus
|
|
97
111
|
* whatever props `C` itself accepts, minus any name already claimed by `OwnProps` so the two
|
|
@@ -117,7 +131,7 @@ type AccordionBodyComponent = (<C extends ElementType = 'div'>(props: AccordionB
|
|
|
117
131
|
}) => ReactElement | null) & {
|
|
118
132
|
displayName?: string;
|
|
119
133
|
};
|
|
120
|
-
declare const AccordionBody: AccordionBodyComponent;
|
|
134
|
+
export declare const AccordionBody: AccordionBodyComponent;
|
|
121
135
|
//#endregion
|
|
122
136
|
//#region src/components/accordion/AccordionHeader.d.ts
|
|
123
137
|
interface AccordionHeaderProps extends HTMLAttributes<HTMLElement> {
|
|
@@ -126,7 +140,7 @@ interface AccordionHeaderProps extends HTMLAttributes<HTMLElement> {
|
|
|
126
140
|
*/
|
|
127
141
|
className?: string;
|
|
128
142
|
}
|
|
129
|
-
declare const AccordionHeader: React.ForwardRefExoticComponent<AccordionHeaderProps & React.RefAttributes<HTMLElement>>;
|
|
143
|
+
export declare const AccordionHeader: React.ForwardRefExoticComponent<AccordionHeaderProps & React.RefAttributes<HTMLElement>>;
|
|
130
144
|
//#endregion
|
|
131
145
|
//#region src/components/accordion/AccordionItem.d.ts
|
|
132
146
|
interface AccordionItemProps extends DetailsHTMLAttributes<HTMLDetailsElement> {
|
|
@@ -152,7 +166,7 @@ interface AccordionItemProps extends DetailsHTMLAttributes<HTMLDetailsElement> {
|
|
|
152
166
|
*/
|
|
153
167
|
itemKey?: number | string;
|
|
154
168
|
}
|
|
155
|
-
declare const AccordionItem: React.ForwardRefExoticComponent<AccordionItemProps & React.RefAttributes<HTMLDetailsElement>>;
|
|
169
|
+
export declare const AccordionItem: React.ForwardRefExoticComponent<AccordionItemProps & React.RefAttributes<HTMLDetailsElement>>;
|
|
156
170
|
//#endregion
|
|
157
171
|
//#region src/components/menu/MenuItemDef.d.ts
|
|
158
172
|
interface MenuItemDef {
|
|
@@ -321,9 +335,9 @@ interface AutocompleteProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChan
|
|
|
321
335
|
*/
|
|
322
336
|
searchPlaceholder?: string;
|
|
323
337
|
/**
|
|
324
|
-
* Size the component
|
|
338
|
+
* Size the component sm or lg.
|
|
325
339
|
*/
|
|
326
|
-
size?: '
|
|
340
|
+
size?: 'sm' | 'lg';
|
|
327
341
|
/**
|
|
328
342
|
* Set component validation state to valid.
|
|
329
343
|
*/
|
|
@@ -337,7 +351,7 @@ interface AutocompleteProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChan
|
|
|
337
351
|
*/
|
|
338
352
|
value?: Key$2 | Key$2[] | null;
|
|
339
353
|
}
|
|
340
|
-
declare const Autocomplete: {
|
|
354
|
+
export declare const Autocomplete: {
|
|
341
355
|
({ children, className, defaultValue, disabled, help, id, invalid, invalidFeedback, items, label, multiple, name, noResultsText, onChange, placeholder, searchPlaceholder, size, valid, validFeedback, value, ...rest }: AutocompleteProps): ReactNode;
|
|
342
356
|
displayName: string;
|
|
343
357
|
};
|
|
@@ -353,14 +367,14 @@ interface ComboboxGroupProps {
|
|
|
353
367
|
*/
|
|
354
368
|
label: ReactNode;
|
|
355
369
|
}
|
|
356
|
-
declare const ComboboxGroup: {
|
|
370
|
+
export declare const ComboboxGroup: {
|
|
357
371
|
(_props: ComboboxGroupProps): null;
|
|
358
372
|
displayName: string;
|
|
359
373
|
};
|
|
360
374
|
//#endregion
|
|
361
375
|
//#region src/components/autocomplete/AutocompleteGroup.d.ts
|
|
362
376
|
type AutocompleteGroupProps = ComboboxGroupProps;
|
|
363
|
-
declare const AutocompleteGroup: {
|
|
377
|
+
export declare const AutocompleteGroup: {
|
|
364
378
|
(_props: AutocompleteGroupProps): null;
|
|
365
379
|
displayName: string;
|
|
366
380
|
};
|
|
@@ -395,14 +409,14 @@ interface ComboboxItemProps {
|
|
|
395
409
|
*/
|
|
396
410
|
textValue?: string;
|
|
397
411
|
}
|
|
398
|
-
declare const ComboboxItem: {
|
|
412
|
+
export declare const ComboboxItem: {
|
|
399
413
|
(_props: ComboboxItemProps): null;
|
|
400
414
|
displayName: string;
|
|
401
415
|
};
|
|
402
416
|
//#endregion
|
|
403
417
|
//#region src/components/autocomplete/AutocompleteItem.d.ts
|
|
404
418
|
type AutocompleteItemProps = ComboboxItemProps;
|
|
405
|
-
declare const AutocompleteItem: {
|
|
419
|
+
export declare const AutocompleteItem: {
|
|
406
420
|
(_props: AutocompleteItemProps): null;
|
|
407
421
|
displayName: string;
|
|
408
422
|
};
|
|
@@ -411,7 +425,7 @@ declare const AutocompleteItem: {
|
|
|
411
425
|
/**
|
|
412
426
|
* Breakpoints
|
|
413
427
|
*/
|
|
414
|
-
type Breakpoint = '
|
|
428
|
+
type Breakpoint = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
415
429
|
/**
|
|
416
430
|
* Context colors
|
|
417
431
|
*/
|
|
@@ -423,17 +437,17 @@ type ContextStyle = 'basic' | 'solid' | 'outline' | 'smooth';
|
|
|
423
437
|
/**
|
|
424
438
|
* Component sizes
|
|
425
439
|
*/
|
|
426
|
-
type Sizing = '
|
|
440
|
+
type Sizing = 'sm' | 'md' | 'lg';
|
|
427
441
|
/**
|
|
428
442
|
* Extended sizes
|
|
429
443
|
*/
|
|
430
|
-
type ExtendedSizing = '
|
|
444
|
+
type ExtendedSizing = '2xs' | 'xs' | Sizing | 'xl' | '2xl';
|
|
431
445
|
/**
|
|
432
446
|
* Spacing values. `SPACING` is the runtime source of truth — `Spacing` is derived from it so the
|
|
433
447
|
* two can't drift apart; anything needing the values at runtime (e.g. validating a string against
|
|
434
448
|
* the scale) should import `SPACING`, not hand-copy the list.
|
|
435
449
|
*/
|
|
436
|
-
declare const SPACING: readonly ["zero", "
|
|
450
|
+
declare const SPACING: readonly ["zero", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "4xl", "5xl", "6xl"];
|
|
437
451
|
type Spacing = (typeof SPACING)[number];
|
|
438
452
|
/**
|
|
439
453
|
* Component shapes
|
|
@@ -493,11 +507,11 @@ type AvatarOwnProps<C extends ElementType> = {
|
|
|
493
507
|
};
|
|
494
508
|
type AvatarProps<C extends ElementType = 'span'> = PolymorphicComponentProps<C, AvatarOwnProps<C>>;
|
|
495
509
|
type AvatarComponent = (<C extends ElementType = 'span'>(props: AvatarProps<C> & {
|
|
496
|
-
ref?:
|
|
510
|
+
ref?: PolymorphicRefWithFallback<C, HTMLSpanElement | HTMLAnchorElement>;
|
|
497
511
|
}) => ReactElement | null) & {
|
|
498
512
|
displayName?: string;
|
|
499
513
|
};
|
|
500
|
-
declare const Avatar: AvatarComponent;
|
|
514
|
+
export declare const Avatar: AvatarComponent;
|
|
501
515
|
//#endregion
|
|
502
516
|
//#region src/components/avatar/AvatarImage.d.ts
|
|
503
517
|
interface AvatarImageProps extends ImgHTMLAttributes<HTMLImageElement> {
|
|
@@ -506,7 +520,7 @@ interface AvatarImageProps extends ImgHTMLAttributes<HTMLImageElement> {
|
|
|
506
520
|
*/
|
|
507
521
|
className?: string;
|
|
508
522
|
}
|
|
509
|
-
declare const AvatarImage: React.ForwardRefExoticComponent<AvatarImageProps & React.RefAttributes<HTMLImageElement>>;
|
|
523
|
+
export declare const AvatarImage: React.ForwardRefExoticComponent<AvatarImageProps & React.RefAttributes<HTMLImageElement>>;
|
|
510
524
|
//#endregion
|
|
511
525
|
//#region src/components/avatar/AvatarStack.d.ts
|
|
512
526
|
interface AvatarStackItemDef {
|
|
@@ -568,7 +582,7 @@ type AvatarStackComponent = (<C extends ElementType = 'div'>(props: AvatarStackP
|
|
|
568
582
|
}) => ReactElement | null) & {
|
|
569
583
|
displayName?: string;
|
|
570
584
|
};
|
|
571
|
-
declare const AvatarStack: AvatarStackComponent;
|
|
585
|
+
export declare const AvatarStack: AvatarStackComponent;
|
|
572
586
|
//#endregion
|
|
573
587
|
//#region src/components/notification/Notification.d.ts
|
|
574
588
|
interface NotificationProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
@@ -646,7 +660,7 @@ interface NotificationProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'
|
|
|
646
660
|
*/
|
|
647
661
|
visible?: boolean;
|
|
648
662
|
}
|
|
649
|
-
declare const Notification: React.ForwardRefExoticComponent<NotificationProps & React.RefAttributes<HTMLDivElement>>;
|
|
663
|
+
export declare const Notification: React.ForwardRefExoticComponent<NotificationProps & React.RefAttributes<HTMLDivElement>>;
|
|
650
664
|
//#endregion
|
|
651
665
|
//#region src/components/notification/NotificationTitle.d.ts
|
|
652
666
|
type NotificationTitleOwnProps<C extends ElementType> = {
|
|
@@ -665,7 +679,7 @@ type NotificationTitleComponent = (<C extends ElementType = 'h4'>(props: Notific
|
|
|
665
679
|
}) => ReactElement | null) & {
|
|
666
680
|
displayName?: string;
|
|
667
681
|
};
|
|
668
|
-
declare const NotificationTitle: NotificationTitleComponent;
|
|
682
|
+
export declare const NotificationTitle: NotificationTitleComponent;
|
|
669
683
|
//#endregion
|
|
670
684
|
//#region src/components/icon/Icon.d.ts
|
|
671
685
|
interface IconOwnProps {
|
|
@@ -695,7 +709,7 @@ type IconProps = (IconOwnProps & {
|
|
|
695
709
|
} & Omit<HTMLAttributes<HTMLSpanElement>, keyof IconOwnProps>) | (IconOwnProps & {
|
|
696
710
|
font?: false;
|
|
697
711
|
} & Omit<SVGAttributes<SVGSVGElement>, keyof IconOwnProps>);
|
|
698
|
-
declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<HTMLSpanElement | SVGSVGElement>>;
|
|
712
|
+
export declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<HTMLSpanElement | SVGSVGElement>>;
|
|
699
713
|
//#endregion
|
|
700
714
|
//#region src/components/notification/NotificationIcon.d.ts
|
|
701
715
|
type NotificationIconProps = IconProps & {
|
|
@@ -704,7 +718,7 @@ type NotificationIconProps = IconProps & {
|
|
|
704
718
|
*/
|
|
705
719
|
className?: string;
|
|
706
720
|
};
|
|
707
|
-
declare const NotificationIcon: React.ForwardRefExoticComponent<NotificationIconProps & React.RefAttributes<HTMLSpanElement | SVGSVGElement>>;
|
|
721
|
+
export declare const NotificationIcon: React.ForwardRefExoticComponent<NotificationIconProps & React.RefAttributes<HTMLSpanElement | SVGSVGElement>>;
|
|
708
722
|
//#endregion
|
|
709
723
|
//#region src/components/notification/NotificationText.d.ts
|
|
710
724
|
type NotificationTextOwnProps<C extends ElementType> = {
|
|
@@ -723,7 +737,7 @@ type NotificationTextComponent = (<C extends ElementType = 'div'>(props: Notific
|
|
|
723
737
|
}) => ReactElement | null) & {
|
|
724
738
|
displayName?: string;
|
|
725
739
|
};
|
|
726
|
-
declare const NotificationText: NotificationTextComponent;
|
|
740
|
+
export declare const NotificationText: NotificationTextComponent;
|
|
727
741
|
//#endregion
|
|
728
742
|
//#region src/components/notification/NotificationStack.d.ts
|
|
729
743
|
interface NotificationStackProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -737,7 +751,7 @@ interface NotificationStackProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
737
751
|
*/
|
|
738
752
|
reverse?: boolean;
|
|
739
753
|
}
|
|
740
|
-
declare const NotificationStack: React.ForwardRefExoticComponent<NotificationStackProps & React.RefAttributes<HTMLDivElement>>;
|
|
754
|
+
export declare const NotificationStack: React.ForwardRefExoticComponent<NotificationStackProps & React.RefAttributes<HTMLDivElement>>;
|
|
741
755
|
//#endregion
|
|
742
756
|
//#region src/components/notification/notificationQueue.d.ts
|
|
743
757
|
interface NotificationContent extends Pick<NotificationProps, 'actions' | 'autohide' | 'closeLabel' | 'color' | 'delay' | 'dismissible' | 'icon' | 'role' | 'solid' | 'text' | 'title' | 'titleComponent'> {
|
|
@@ -748,9 +762,9 @@ interface NotificationContent extends Pick<NotificationProps, 'actions' | 'autoh
|
|
|
748
762
|
*/
|
|
749
763
|
children?: ReactNode;
|
|
750
764
|
}
|
|
751
|
-
declare const notificationQueue: ToastQueue<NotificationContent>;
|
|
752
|
-
declare function addNotification(children?: ReactNode, options?: Omit<NotificationContent, 'children'>): string;
|
|
753
|
-
declare function closeNotification(key: string): void;
|
|
765
|
+
export declare const notificationQueue: ToastQueue<NotificationContent>;
|
|
766
|
+
export declare function addNotification(children?: ReactNode, options?: Omit<NotificationContent, 'children'>): string;
|
|
767
|
+
export declare function closeNotification(key: string): void;
|
|
754
768
|
//#endregion
|
|
755
769
|
//#region src/components/badge/Badge.d.ts
|
|
756
770
|
type BadgeOwnProps<C extends ElementType> = {
|
|
@@ -789,7 +803,7 @@ type BadgeComponent = (<C extends ElementType = 'span'>(props: BadgeProps<C> & {
|
|
|
789
803
|
}) => ReactElement | null) & {
|
|
790
804
|
displayName?: string;
|
|
791
805
|
};
|
|
792
|
-
declare const Badge: BadgeComponent;
|
|
806
|
+
export declare const Badge: BadgeComponent;
|
|
793
807
|
//#endregion
|
|
794
808
|
//#region src/components/breadcrumb/Breadcrumb.d.ts
|
|
795
809
|
interface BreadcrumbItemDef {
|
|
@@ -803,6 +817,15 @@ interface BreadcrumbItemDef {
|
|
|
803
817
|
href?: string;
|
|
804
818
|
}
|
|
805
819
|
interface BreadcrumbProps extends HTMLAttributes<HTMLOListElement> {
|
|
820
|
+
/**
|
|
821
|
+
* Accessible name of the wrapping `<nav>` landmark. Defaults to the English `'breadcrumb'`;
|
|
822
|
+
* override it to translate the landmark, or to tell two breadcrumb trails on the same page
|
|
823
|
+
* apart (landmarks of the same role need distinct names to be distinguishable in a screen
|
|
824
|
+
* reader's landmark list).
|
|
825
|
+
*
|
|
826
|
+
* @default 'breadcrumb'
|
|
827
|
+
*/
|
|
828
|
+
'aria-label'?: string;
|
|
806
829
|
/**
|
|
807
830
|
* A string of all className you want applied to the component.
|
|
808
831
|
*/
|
|
@@ -813,7 +836,7 @@ interface BreadcrumbProps extends HTMLAttributes<HTMLOListElement> {
|
|
|
813
836
|
*/
|
|
814
837
|
items?: BreadcrumbItemDef[];
|
|
815
838
|
}
|
|
816
|
-
declare const Breadcrumb: React.ForwardRefExoticComponent<BreadcrumbProps & React.RefAttributes<HTMLOListElement>>;
|
|
839
|
+
export declare const Breadcrumb: React.ForwardRefExoticComponent<BreadcrumbProps & React.RefAttributes<HTMLOListElement>>;
|
|
817
840
|
//#endregion
|
|
818
841
|
//#region src/components/breadcrumb/BreadcrumbItem.d.ts
|
|
819
842
|
interface BreadcrumbItemProps extends HTMLAttributes<HTMLLIElement> {
|
|
@@ -830,7 +853,7 @@ interface BreadcrumbItemProps extends HTMLAttributes<HTMLLIElement> {
|
|
|
830
853
|
*/
|
|
831
854
|
href?: string;
|
|
832
855
|
}
|
|
833
|
-
declare const BreadcrumbItem: React.ForwardRefExoticComponent<BreadcrumbItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
856
|
+
export declare const BreadcrumbItem: React.ForwardRefExoticComponent<BreadcrumbItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
834
857
|
//#endregion
|
|
835
858
|
//#region src/components/button/Button.d.ts
|
|
836
859
|
type ButtonOwnProps<C extends ElementType> = {
|
|
@@ -870,9 +893,9 @@ type ButtonOwnProps<C extends ElementType> = {
|
|
|
870
893
|
*/
|
|
871
894
|
shape?: Shapes;
|
|
872
895
|
/**
|
|
873
|
-
* Size the component
|
|
896
|
+
* Size the component sm or lg.
|
|
874
897
|
*/
|
|
875
|
-
size?: '
|
|
898
|
+
size?: 'sm' | 'lg';
|
|
876
899
|
/**
|
|
877
900
|
* Specifies the type of button. Always specify the type attribute for the `<button>` element.
|
|
878
901
|
* Different browsers may use different default types for the `<button>` element.
|
|
@@ -887,11 +910,11 @@ type ButtonOwnProps<C extends ElementType> = {
|
|
|
887
910
|
};
|
|
888
911
|
type ButtonProps<C extends ElementType = 'button'> = PolymorphicComponentProps<C, ButtonOwnProps<C>>;
|
|
889
912
|
type ButtonComponent = (<C extends ElementType = 'button'>(props: ButtonProps<C> & {
|
|
890
|
-
ref?:
|
|
913
|
+
ref?: PolymorphicRefWithFallback<C, HTMLButtonElement | HTMLAnchorElement>;
|
|
891
914
|
}) => ReactElement | null) & {
|
|
892
915
|
displayName?: string;
|
|
893
916
|
};
|
|
894
|
-
declare const Button: ButtonComponent;
|
|
917
|
+
export declare const Button: ButtonComponent;
|
|
895
918
|
//#endregion
|
|
896
919
|
//#region src/components/button-group/ButtonGroup.d.ts
|
|
897
920
|
type ButtonGroupOwnProps<C extends ElementType> = {
|
|
@@ -904,9 +927,9 @@ type ButtonGroupOwnProps<C extends ElementType> = {
|
|
|
904
927
|
*/
|
|
905
928
|
component?: C;
|
|
906
929
|
/**
|
|
907
|
-
* Size the component
|
|
930
|
+
* Size the component sm or lg.
|
|
908
931
|
*/
|
|
909
|
-
size?: '
|
|
932
|
+
size?: 'sm' | 'lg';
|
|
910
933
|
/**
|
|
911
934
|
* Create a set of buttons that appear vertically stacked rather than horizontally. Split button dropdowns are not supported here.
|
|
912
935
|
*/
|
|
@@ -918,7 +941,7 @@ type ButtonGroupComponent = (<C extends ElementType = 'div'>(props: ButtonGroupP
|
|
|
918
941
|
}) => ReactElement | null) & {
|
|
919
942
|
displayName?: string;
|
|
920
943
|
};
|
|
921
|
-
declare const ButtonGroup: ButtonGroupComponent;
|
|
944
|
+
export declare const ButtonGroup: ButtonGroupComponent;
|
|
922
945
|
//#endregion
|
|
923
946
|
//#region src/components/button-group/ButtonToolbar.d.ts
|
|
924
947
|
type ButtonToolbarOwnProps<C extends ElementType> = {
|
|
@@ -937,7 +960,39 @@ type ButtonToolbarComponent = (<C extends ElementType = 'div'>(props: ButtonTool
|
|
|
937
960
|
}) => ReactElement | null) & {
|
|
938
961
|
displayName?: string;
|
|
939
962
|
};
|
|
940
|
-
declare const ButtonToolbar: ButtonToolbarComponent;
|
|
963
|
+
export declare const ButtonToolbar: ButtonToolbarComponent;
|
|
964
|
+
//#endregion
|
|
965
|
+
//#region src/components/calendar/labels.d.ts
|
|
966
|
+
/**
|
|
967
|
+
* The user-facing strings the calendar/datepicker family renders itself, rather than getting from
|
|
968
|
+
* the active locale.
|
|
969
|
+
*
|
|
970
|
+
* Everything else these components say — weekday names, month names, the calendar system, segment
|
|
971
|
+
* order — comes from `I18nProvider`'s locale via react-aria, which ships its own translations. The
|
|
972
|
+
* strings below have no equivalent in react-aria's dictionaries, so they were hardcoded English
|
|
973
|
+
* with no way to override them: under `<I18nProvider locale="ar-SA">` a user got Arabic month
|
|
974
|
+
* names interleaved with an English "Previous years". Pass `labels` to translate them, the same
|
|
975
|
+
* way `Pagination`'s `previousLabel`/`nextLabel` are translated (see the Internationalization
|
|
976
|
+
* docs page).
|
|
977
|
+
*/
|
|
978
|
+
interface CalendarLabels {
|
|
979
|
+
/** Accessible name of the year view's "page back" arrow. */
|
|
980
|
+
previousYears: string;
|
|
981
|
+
/** Accessible name of the year view's "page forward" arrow. */
|
|
982
|
+
nextYears: string;
|
|
983
|
+
/** Prefix of the year view's live-region announcement, rendered as `${selectYear}, 2020 – 2034`. */
|
|
984
|
+
selectYear: string;
|
|
985
|
+
/** Prefix of the month view's live-region announcement, rendered as `${selectMonth}, 2024`. */
|
|
986
|
+
selectMonth: string;
|
|
987
|
+
/** Prefix of the header month button's accessible name, rendered as `${month}: March`. */
|
|
988
|
+
month: string;
|
|
989
|
+
/** Prefix of the header year button's accessible name, rendered as `${year}: 2024`. */
|
|
990
|
+
year: string;
|
|
991
|
+
/** Accessible name of the trigger that opens the calendar overlay. */
|
|
992
|
+
calendar: string;
|
|
993
|
+
/** Accessible name of the adornment that resets the current selection. */
|
|
994
|
+
clear: string;
|
|
995
|
+
}
|
|
941
996
|
//#endregion
|
|
942
997
|
//#region src/components/calendar/Calendar.d.ts
|
|
943
998
|
interface CalendarBaseProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> {
|
|
@@ -973,6 +1028,14 @@ interface CalendarBaseProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChan
|
|
|
973
1028
|
* shown but cannot be selected.
|
|
974
1029
|
*/
|
|
975
1030
|
isDateUnavailable?: (date: DateValue$1) => boolean;
|
|
1031
|
+
/**
|
|
1032
|
+
* Overrides for the handful of strings this component renders itself rather than getting from
|
|
1033
|
+
* the active locale (the year view's paging arrows, its live-region announcements, and the
|
|
1034
|
+
* month/year header buttons). Everything else — month and weekday names, the calendar system —
|
|
1035
|
+
* follows `I18nProvider`'s locale via react-aria and needs no override. Merged over the English
|
|
1036
|
+
* defaults, so passing one key leaves the rest alone.
|
|
1037
|
+
*/
|
|
1038
|
+
labels?: Partial<CalendarLabels>;
|
|
976
1039
|
/**
|
|
977
1040
|
* The maximum allowed date that a user may select.
|
|
978
1041
|
*/
|
|
@@ -989,7 +1052,7 @@ interface CalendarBaseProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChan
|
|
|
989
1052
|
unavailableDates?: string[];
|
|
990
1053
|
/**
|
|
991
1054
|
* Number of months to display side by side, sharing one selection. Wraps to multiple rows in
|
|
992
|
-
* a narrow container (e.g. a popover on a
|
|
1055
|
+
* a narrow container (e.g. a popover on a sm screen) rather than overflowing — the wrap is
|
|
993
1056
|
* driven by the calendar's own width, not the viewport, so it adapts correctly regardless of
|
|
994
1057
|
* where the calendar is embedded.
|
|
995
1058
|
*
|
|
@@ -1039,7 +1102,7 @@ interface CalendarMultipleProps extends CalendarBaseProps {
|
|
|
1039
1102
|
value?: DateValue$1[] | null;
|
|
1040
1103
|
}
|
|
1041
1104
|
type CalendarProps = CalendarSingleProps | CalendarMultipleProps;
|
|
1042
|
-
declare const Calendar: React.ForwardRefExoticComponent<CalendarProps & React.RefAttributes<HTMLDivElement>>;
|
|
1105
|
+
export declare const Calendar: React.ForwardRefExoticComponent<CalendarProps & React.RefAttributes<HTMLDivElement>>;
|
|
1043
1106
|
//#endregion
|
|
1044
1107
|
//#region src/utils/dateRangePresets.d.ts
|
|
1045
1108
|
interface DateRangePreset {
|
|
@@ -1085,6 +1148,14 @@ interface RangeCalendarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onCha
|
|
|
1085
1148
|
* shown but cannot be selected.
|
|
1086
1149
|
*/
|
|
1087
1150
|
isDateUnavailable?: (date: DateValue$1) => boolean;
|
|
1151
|
+
/**
|
|
1152
|
+
* Overrides for the handful of strings this component renders itself rather than getting from
|
|
1153
|
+
* the active locale (the year view's paging arrows, its live-region announcements, and the
|
|
1154
|
+
* month/year header buttons). Everything else — month and weekday names, the calendar system —
|
|
1155
|
+
* follows `I18nProvider`'s locale via react-aria and needs no override. Merged over the English
|
|
1156
|
+
* defaults, so passing one key leaves the rest alone.
|
|
1157
|
+
*/
|
|
1158
|
+
labels?: Partial<CalendarLabels>;
|
|
1088
1159
|
/**
|
|
1089
1160
|
* The maximum allowed date that a user may select.
|
|
1090
1161
|
*/
|
|
@@ -1115,7 +1186,7 @@ interface RangeCalendarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onCha
|
|
|
1115
1186
|
value?: RangeValue<DateValue$1> | null;
|
|
1116
1187
|
/**
|
|
1117
1188
|
* Number of months to display side by side, sharing one selection. Wraps to multiple rows in
|
|
1118
|
-
* a narrow container (e.g. a popover on a
|
|
1189
|
+
* a narrow container (e.g. a popover on a sm screen) rather than overflowing — the wrap is
|
|
1119
1190
|
* driven by the calendar's own width, not the viewport, so it adapts correctly regardless of
|
|
1120
1191
|
* where the calendar is embedded.
|
|
1121
1192
|
*
|
|
@@ -1123,7 +1194,364 @@ interface RangeCalendarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onCha
|
|
|
1123
1194
|
*/
|
|
1124
1195
|
visibleMonths?: number;
|
|
1125
1196
|
}
|
|
1126
|
-
declare const RangeCalendar: React.ForwardRefExoticComponent<RangeCalendarProps & React.RefAttributes<HTMLDivElement>>;
|
|
1197
|
+
export declare const RangeCalendar: React.ForwardRefExoticComponent<RangeCalendarProps & React.RefAttributes<HTMLDivElement>>;
|
|
1198
|
+
//#endregion
|
|
1199
|
+
//#region src/components/datagrid/DataGridBody.d.ts
|
|
1200
|
+
interface DataGridBodyOwnProps {
|
|
1201
|
+
/**
|
|
1202
|
+
* A string of all className you want applied to the body row group.
|
|
1203
|
+
*/
|
|
1204
|
+
className?: string;
|
|
1205
|
+
/**
|
|
1206
|
+
* Values that should invalidate the row cache when using the `items`/render-function form of
|
|
1207
|
+
* `children` — e.g. a value from outside `items` that the render function reads. Without this,
|
|
1208
|
+
* changing that outside value won't re-render already-cached rows, since dynamic rows are only
|
|
1209
|
+
* rebuilt when `items` or `dependencies` change by reference, not on every parent re-render.
|
|
1210
|
+
*/
|
|
1211
|
+
dependencies?: ReadonlyArray<unknown>;
|
|
1212
|
+
/**
|
|
1213
|
+
* Content shown in place of rows when `items` is empty.
|
|
1214
|
+
*/
|
|
1215
|
+
renderEmptyState?: (props: TableBodyRenderProps) => React.ReactNode;
|
|
1216
|
+
}
|
|
1217
|
+
/**
|
|
1218
|
+
* The `items` + render-function form. `isLoading`/`loadingContent`/`onLoadMore` live here rather
|
|
1219
|
+
* than alongside the static form because the loader row is generated by appending to `items` and
|
|
1220
|
+
* rendering through that same function — there's no growing dataset to load more of, and nothing
|
|
1221
|
+
* to render the loader with, in a hand-written list of `DataGridRow` elements.
|
|
1222
|
+
*/
|
|
1223
|
+
interface DataGridBodyDynamicProps<T> {
|
|
1224
|
+
/**
|
|
1225
|
+
* A render function called once per item in `items`, returning that row's `DataGridRow`.
|
|
1226
|
+
*/
|
|
1227
|
+
children: (item: T) => ReactElement;
|
|
1228
|
+
/**
|
|
1229
|
+
* Whether more items are currently being fetched. Shows `loadingContent` in the loader row while
|
|
1230
|
+
* true, and — until this goes back to `false` — suppresses further `onLoadMore` calls, so one
|
|
1231
|
+
* scroll-into-view doesn't fire the callback again before the in-flight fetch resolves.
|
|
1232
|
+
*/
|
|
1233
|
+
isLoading?: boolean;
|
|
1234
|
+
/**
|
|
1235
|
+
* A list of row data objects, rendered via the function form of `children`.
|
|
1236
|
+
*/
|
|
1237
|
+
items: Iterable<T>;
|
|
1238
|
+
/**
|
|
1239
|
+
* Content rendered inside the loader row while `isLoading` is true, e.g. a spinner. Only takes
|
|
1240
|
+
* effect alongside `onLoadMore`.
|
|
1241
|
+
*/
|
|
1242
|
+
loadingContent?: ReactNode;
|
|
1243
|
+
/**
|
|
1244
|
+
* Called when the grid scrolls near its last row, so more data can be fetched and appended to
|
|
1245
|
+
* `items`. Pair with `isLoading` so a fetch already in flight isn't triggered again before it
|
|
1246
|
+
* resolves.
|
|
1247
|
+
*/
|
|
1248
|
+
onLoadMore?: () => void;
|
|
1249
|
+
}
|
|
1250
|
+
/** The static form: `DataGridRow` elements written out directly. */
|
|
1251
|
+
interface DataGridBodyStaticProps {
|
|
1252
|
+
/**
|
|
1253
|
+
* `DataGridRow` elements.
|
|
1254
|
+
*/
|
|
1255
|
+
children: ReactElement | ReactElement[];
|
|
1256
|
+
isLoading?: never;
|
|
1257
|
+
items?: never;
|
|
1258
|
+
loadingContent?: never;
|
|
1259
|
+
onLoadMore?: never;
|
|
1260
|
+
}
|
|
1261
|
+
/**
|
|
1262
|
+
* Split into a static and a dynamic form so the two can't be mixed: the loader row is appended to
|
|
1263
|
+
* `items` and rendered through `children`, so `onLoadMore` alongside a static list of elements used
|
|
1264
|
+
* to type-check and then throw at render ("children is not a function") the moment the loader row
|
|
1265
|
+
* came up.
|
|
1266
|
+
*/
|
|
1267
|
+
type DataGridBodyProps<T> = DataGridBodyOwnProps & (DataGridBodyDynamicProps<T> | DataGridBodyStaticProps);
|
|
1268
|
+
/**
|
|
1269
|
+
* Body row group for `DataGrid`, containing `DataGridRow`s. Unlike `Table`'s sub-parts, this
|
|
1270
|
+
* renders directly — it's a thin wrapper over react-aria-components' own `TableBody`.
|
|
1271
|
+
*
|
|
1272
|
+
* Always carries the `datagrid-body` class — see `DataGridHeader`'s equivalent note.
|
|
1273
|
+
*/
|
|
1274
|
+
export declare const DataGridBody: <T extends object>({ children, className, dependencies, isLoading, items, loadingContent, onLoadMore, renderEmptyState }: DataGridBodyProps<T>) => React.JSX.Element;
|
|
1275
|
+
//#endregion
|
|
1276
|
+
//#region src/components/datagrid/DataGridHeader.d.ts
|
|
1277
|
+
interface DataGridHeaderProps<T> {
|
|
1278
|
+
/**
|
|
1279
|
+
* `DataGridColumn` elements, or a render function paired with `columns` for dynamic column
|
|
1280
|
+
* generation.
|
|
1281
|
+
*/
|
|
1282
|
+
children: ReactNode | ((column: T) => ReactElement);
|
|
1283
|
+
/**
|
|
1284
|
+
* A string of all className you want applied to the header row group.
|
|
1285
|
+
*/
|
|
1286
|
+
className?: string;
|
|
1287
|
+
/**
|
|
1288
|
+
* A list of column data objects, rendered via the function form of `children`.
|
|
1289
|
+
*/
|
|
1290
|
+
columns?: Iterable<T>;
|
|
1291
|
+
/**
|
|
1292
|
+
* Values that should invalidate the column cache when using the `columns`/render-function form
|
|
1293
|
+
* of `children` — see `DataGridBody`'s `dependencies` for why this matters.
|
|
1294
|
+
*/
|
|
1295
|
+
dependencies?: ReadonlyArray<unknown>;
|
|
1296
|
+
}
|
|
1297
|
+
/**
|
|
1298
|
+
* Header row group for `DataGrid`, containing `DataGridColumn`s. Unlike `Table`'s sub-parts,
|
|
1299
|
+
* this renders directly — it's a thin wrapper over react-aria-components' own `TableHeader`.
|
|
1300
|
+
*
|
|
1301
|
+
* Always carries the `datagrid-header` class (not just the caller's `className`) — `DataGrid.scss`
|
|
1302
|
+
* uses it to tell header cells from body cells, since react-aria-components renders both as plain
|
|
1303
|
+
* `[role="rowgroup"]` divs with no structural difference to select on otherwise.
|
|
1304
|
+
*/
|
|
1305
|
+
export declare const DataGridHeader: <T extends object>({ children, className, columns, dependencies }: DataGridHeaderProps<T>) => React.JSX.Element;
|
|
1306
|
+
//#endregion
|
|
1307
|
+
//#region src/components/datagrid/DataGrid.d.ts
|
|
1308
|
+
interface DataGridOwnProps<T extends object> {
|
|
1309
|
+
/**
|
|
1310
|
+
* An accessible label for the grid, used when there's no visible heading.
|
|
1311
|
+
*/
|
|
1312
|
+
'aria-label'?: string;
|
|
1313
|
+
/**
|
|
1314
|
+
* Identifies a visible heading element for the grid.
|
|
1315
|
+
*/
|
|
1316
|
+
'aria-labelledby'?: string;
|
|
1317
|
+
/**
|
|
1318
|
+
* Set the vertical alignment of cell content. Mirrors `Table`'s prop of the same name for API
|
|
1319
|
+
* parity — same as `Table`, this awaits chassis-css adding the matching `.align-*` styles.
|
|
1320
|
+
*/
|
|
1321
|
+
align?: 'bottom' | 'middle' | 'top';
|
|
1322
|
+
/**
|
|
1323
|
+
* Add borders on all sides of the grid and cells.
|
|
1324
|
+
*/
|
|
1325
|
+
bordered?: boolean;
|
|
1326
|
+
/**
|
|
1327
|
+
* Remove borders on all sides of the grid and cells.
|
|
1328
|
+
*/
|
|
1329
|
+
borderless?: boolean;
|
|
1330
|
+
/**
|
|
1331
|
+
* A `DataGridHeader` and a `DataGridBody`, each built from `DataGridColumn`/`DataGridRow`/
|
|
1332
|
+
* `DataGridCell`.
|
|
1333
|
+
*/
|
|
1334
|
+
children: [ReactElement<DataGridHeaderProps<T>>, ReactElement<DataGridBodyProps<T>>];
|
|
1335
|
+
/**
|
|
1336
|
+
* A string of all className you want applied to the component.
|
|
1337
|
+
*/
|
|
1338
|
+
className?: string;
|
|
1339
|
+
/**
|
|
1340
|
+
* Sets the color of the component.
|
|
1341
|
+
*/
|
|
1342
|
+
color?: ContextColor;
|
|
1343
|
+
/**
|
|
1344
|
+
* A list of row keys to disable. Disabled rows cannot be selected, focused, or interacted with.
|
|
1345
|
+
*/
|
|
1346
|
+
disabledKeys?: Iterable<Key$3>;
|
|
1347
|
+
/**
|
|
1348
|
+
* Content shown below the grid, e.g. a totals row or a "load more" control. Rendered as plain
|
|
1349
|
+
* markup outside the grid's own scrollable/virtualized region — not part of the
|
|
1350
|
+
* keyboard-navigable grid, and never scrolls out of view along with the body rows. Mirrors
|
|
1351
|
+
* `Table`'s `footer` prop for API parity.
|
|
1352
|
+
*/
|
|
1353
|
+
footer?: ReactNode;
|
|
1354
|
+
/**
|
|
1355
|
+
* Enable a hover state on grid rows.
|
|
1356
|
+
*/
|
|
1357
|
+
hover?: boolean;
|
|
1358
|
+
/**
|
|
1359
|
+
* Handler that is called when the selection changes.
|
|
1360
|
+
*/
|
|
1361
|
+
onSelectionChange?: (keys: Selection$1) => void;
|
|
1362
|
+
/**
|
|
1363
|
+
* Handler that is called when a column is sorted.
|
|
1364
|
+
*/
|
|
1365
|
+
onSortChange?: (descriptor: SortDescriptor$1) => void;
|
|
1366
|
+
/**
|
|
1367
|
+
* The currently selected row keys (controlled).
|
|
1368
|
+
*/
|
|
1369
|
+
selectedKeys?: Selection$1;
|
|
1370
|
+
/**
|
|
1371
|
+
* The type of selection that is allowed.
|
|
1372
|
+
*/
|
|
1373
|
+
selectionMode?: 'none' | 'single' | 'multiple';
|
|
1374
|
+
/**
|
|
1375
|
+
* Make the grid more compact by cutting all cell padding.
|
|
1376
|
+
*/
|
|
1377
|
+
sm?: boolean;
|
|
1378
|
+
/**
|
|
1379
|
+
* The current sort column and direction.
|
|
1380
|
+
*/
|
|
1381
|
+
sortDescriptor?: SortDescriptor$1;
|
|
1382
|
+
}
|
|
1383
|
+
type DataGridRowHeightProps = {
|
|
1384
|
+
/**
|
|
1385
|
+
* Row height in pixels, or `"auto"` to measure each row from its own rendered content
|
|
1386
|
+
* instead of a single fixed height shared by every row (pair it with a required
|
|
1387
|
+
* `estimatedRowHeight`, and see the docs site's "Variable row height" section for the
|
|
1388
|
+
* tradeoffs). A fixed number renders every row, including the header, at that exact
|
|
1389
|
+
* height; content taller than it visually overflows rather than growing the row.
|
|
1390
|
+
*/
|
|
1391
|
+
rowHeight: number;
|
|
1392
|
+
estimatedRowHeight?: never;
|
|
1393
|
+
} | {
|
|
1394
|
+
rowHeight: 'auto';
|
|
1395
|
+
/**
|
|
1396
|
+
* Seeds the virtualizer's scroll-position math for rows that haven't been measured yet.
|
|
1397
|
+
* Required when `rowHeight="auto"` — pick a value close to the typical row's real height
|
|
1398
|
+
* to minimize scroll-jump on first measurement. A row's real height can still turn out far
|
|
1399
|
+
* from this estimate once it renders, which can cause a visible scroll-jump for rows the
|
|
1400
|
+
* viewport hasn't reached yet.
|
|
1401
|
+
*/
|
|
1402
|
+
estimatedRowHeight: number;
|
|
1403
|
+
};
|
|
1404
|
+
type DataGridProps<T extends object> = DataGridOwnProps<T> & DataGridRowHeightProps;
|
|
1405
|
+
export declare const DataGrid: <T extends object>(props: DataGridProps<T> & {
|
|
1406
|
+
ref?: Ref<HTMLDivElement>;
|
|
1407
|
+
}) => ReactElement;
|
|
1408
|
+
//#endregion
|
|
1409
|
+
//#region src/components/datagrid/DataGridCell.d.ts
|
|
1410
|
+
interface DataGridCellProps {
|
|
1411
|
+
/**
|
|
1412
|
+
* The contents of the cell.
|
|
1413
|
+
*/
|
|
1414
|
+
children: ReactNode;
|
|
1415
|
+
/**
|
|
1416
|
+
* A string of all className you want applied to the cell.
|
|
1417
|
+
*/
|
|
1418
|
+
className?: string;
|
|
1419
|
+
/**
|
|
1420
|
+
* Indicates how many columns the cell spans.
|
|
1421
|
+
*/
|
|
1422
|
+
colSpan?: number;
|
|
1423
|
+
/**
|
|
1424
|
+
* The unique id of the cell.
|
|
1425
|
+
*/
|
|
1426
|
+
id?: Key$3;
|
|
1427
|
+
/**
|
|
1428
|
+
* A string representation of the cell's contents, used for typeahead.
|
|
1429
|
+
*/
|
|
1430
|
+
textValue?: string;
|
|
1431
|
+
}
|
|
1432
|
+
/**
|
|
1433
|
+
* A cell within a `DataGrid` row. Unlike `Table`'s sub-parts, this renders directly — it's a
|
|
1434
|
+
* thin wrapper over react-aria-components' own `Cell`.
|
|
1435
|
+
*/
|
|
1436
|
+
export declare const DataGridCell: ({ children, className, colSpan, id, textValue }: DataGridCellProps) => React.JSX.Element;
|
|
1437
|
+
//#endregion
|
|
1438
|
+
//#region src/components/datagrid/DataGridColumn.d.ts
|
|
1439
|
+
interface DataGridColumnProps {
|
|
1440
|
+
/**
|
|
1441
|
+
* Whether the column allows sorting. Adds a sort indicator and makes the header
|
|
1442
|
+
* clickable/keyboard-activatable.
|
|
1443
|
+
*/
|
|
1444
|
+
allowsSorting?: boolean;
|
|
1445
|
+
/**
|
|
1446
|
+
* Rendered contents of the column header.
|
|
1447
|
+
*/
|
|
1448
|
+
children: ReactNode;
|
|
1449
|
+
/**
|
|
1450
|
+
* A string of all className you want applied to the column header.
|
|
1451
|
+
*/
|
|
1452
|
+
className?: string;
|
|
1453
|
+
/**
|
|
1454
|
+
* The initial width of the column, e.g. for a narrow selection/icon column — a plain number or
|
|
1455
|
+
* `'<n>%'` for a fixed size, or `'<n>fr'` to share remaining space with other fractional
|
|
1456
|
+
* columns in proportion (columns default to `'1fr'`, so they split space evenly unless given
|
|
1457
|
+
* one of these). Unlike `Table`, which sizes a narrow column via `width: 1%` relying on native
|
|
1458
|
+
* `<table>` auto-layout, `DataGrid`'s virtualized layout computes every column's width itself —
|
|
1459
|
+
* a CSS `width` rule on the cell has no effect, so this prop is the only way to size a column.
|
|
1460
|
+
*/
|
|
1461
|
+
defaultWidth?: ColumnSize | null;
|
|
1462
|
+
/**
|
|
1463
|
+
* The unique id of the column, referenced by `sortDescriptor.column`.
|
|
1464
|
+
*/
|
|
1465
|
+
id?: Key$3;
|
|
1466
|
+
/**
|
|
1467
|
+
* Whether this column is a row header, announced by assistive technology during row
|
|
1468
|
+
* navigation.
|
|
1469
|
+
*/
|
|
1470
|
+
isRowHeader?: boolean;
|
|
1471
|
+
/**
|
|
1472
|
+
* The maximum width of the column, as a fixed pixel number or `'<n>%'`.
|
|
1473
|
+
*/
|
|
1474
|
+
maxWidth?: ColumnStaticSize | null;
|
|
1475
|
+
/**
|
|
1476
|
+
* The minimum width of the column, as a fixed pixel number or `'<n>%'`.
|
|
1477
|
+
*/
|
|
1478
|
+
minWidth?: ColumnStaticSize | null;
|
|
1479
|
+
/**
|
|
1480
|
+
* Pin the column so it stays visible while the grid scrolls horizontally: `'start'` pins it to
|
|
1481
|
+
* the leading edge, `'end'` to the trailing edge. Stacks correctly with other pinned columns on
|
|
1482
|
+
* the same side, in declaration order.
|
|
1483
|
+
*/
|
|
1484
|
+
pin?: 'start' | 'end';
|
|
1485
|
+
/**
|
|
1486
|
+
* A string representation of the column header, used for accessibility announcements. Defaults
|
|
1487
|
+
* to `children` when it's a plain string — set this explicitly when the header contains
|
|
1488
|
+
* anything else (an icon, a `Tooltip`, etc.).
|
|
1489
|
+
*/
|
|
1490
|
+
textValue?: string;
|
|
1491
|
+
}
|
|
1492
|
+
/**
|
|
1493
|
+
* A column within `DataGrid`. Unlike `Table`'s sub-parts, this renders directly — it's a thin
|
|
1494
|
+
* wrapper over react-aria-components' own `Column`.
|
|
1495
|
+
*
|
|
1496
|
+
* When `allowsSorting` is set, renders a sort indicator after `children` — mirrors `Table`'s own
|
|
1497
|
+
* `TableColumnHeader`, but reads the active direction from react-aria-components' own
|
|
1498
|
+
* `ColumnRenderProps` (via the `children` render-prop form) instead of reaching into table state
|
|
1499
|
+
* directly, since this wrapper has no state of its own to read.
|
|
1500
|
+
*/
|
|
1501
|
+
export declare const DataGridColumn: ({ allowsSorting, children, className, defaultWidth, id, isRowHeader, maxWidth, minWidth, pin, textValue }: DataGridColumnProps) => React.JSX.Element;
|
|
1502
|
+
//#endregion
|
|
1503
|
+
//#region src/components/datagrid/DataGridRow.d.ts
|
|
1504
|
+
interface DataGridRowProps<T> {
|
|
1505
|
+
/**
|
|
1506
|
+
* `DataGridCell` elements, or a render function called once per column with that column's
|
|
1507
|
+
* data — required when the row's parent `DataGridBody` uses the `items`/render-function form.
|
|
1508
|
+
*/
|
|
1509
|
+
children: ReactNode | ((column: T) => ReactElement);
|
|
1510
|
+
/**
|
|
1511
|
+
* A string of all className you want applied to the row.
|
|
1512
|
+
*/
|
|
1513
|
+
className?: string;
|
|
1514
|
+
/**
|
|
1515
|
+
* A list of column data objects, rendered via the function form of `children`.
|
|
1516
|
+
*/
|
|
1517
|
+
columns?: Iterable<T>;
|
|
1518
|
+
/**
|
|
1519
|
+
* The unique id of the row, referenced by `selectedKeys`/`disabledKeys`.
|
|
1520
|
+
*/
|
|
1521
|
+
id?: Key$3;
|
|
1522
|
+
/**
|
|
1523
|
+
* A string representation of the row's contents, used for typeahead.
|
|
1524
|
+
*/
|
|
1525
|
+
textValue?: string;
|
|
1526
|
+
}
|
|
1527
|
+
/**
|
|
1528
|
+
* A row within `DataGrid`. Unlike `Table`'s sub-parts, this renders directly — it's a thin
|
|
1529
|
+
* wrapper over react-aria-components' own `Row`.
|
|
1530
|
+
*/
|
|
1531
|
+
export declare const DataGridRow: <T extends object>({ children, className, columns, id, textValue }: DataGridRowProps<T>) => React.JSX.Element;
|
|
1532
|
+
//#endregion
|
|
1533
|
+
//#region src/components/datagrid/DataGridSelectionCell.d.ts
|
|
1534
|
+
interface DataGridSelectionCellProps {
|
|
1535
|
+
/**
|
|
1536
|
+
* A string of all className you want applied to the checkbox, replacing the default
|
|
1537
|
+
* `check-input`.
|
|
1538
|
+
*/
|
|
1539
|
+
className?: string;
|
|
1540
|
+
}
|
|
1541
|
+
/**
|
|
1542
|
+
* Selection checkbox for one `DataGrid` row — place inside a `DataGridCell`.
|
|
1543
|
+
*
|
|
1544
|
+
* react-aria-components' own `Checkbox` always visually hides its native `<input>` behind a custom
|
|
1545
|
+
* indicator the caller must supply. This renders a plain native `<input className="check-input">`
|
|
1546
|
+
* instead, wired to the same state, so it picks up chassis-css's existing checkbox styling for
|
|
1547
|
+
* free with no new CSS of its own.
|
|
1548
|
+
*/
|
|
1549
|
+
export declare const DataGridSelectionCell: ({ className }: DataGridSelectionCellProps) => React.JSX.Element;
|
|
1550
|
+
/**
|
|
1551
|
+
* "Select all" checkbox for `DataGrid`'s header row — place inside a `DataGridColumn`. See
|
|
1552
|
+
* `DataGridSelectionCell` for why this bypasses react-aria-components' own `Checkbox`.
|
|
1553
|
+
*/
|
|
1554
|
+
export declare const DataGridSelectAllCell: ({ className }: DataGridSelectionCellProps) => React.JSX.Element;
|
|
1127
1555
|
//#endregion
|
|
1128
1556
|
//#region src/utils/breakpoints.d.ts
|
|
1129
1557
|
type Span = 'auto' | number | string | boolean;
|
|
@@ -1170,8 +1598,8 @@ type CardOwnProps<C extends ElementType> = {
|
|
|
1170
1598
|
*/
|
|
1171
1599
|
imageOrientation?: 'top' | 'bottom';
|
|
1172
1600
|
/**
|
|
1173
|
-
* Overrides `direction` at one or more breakpoints — e.g. `{
|
|
1174
|
-
* out horizontally from `
|
|
1601
|
+
* Overrides `direction` at one or more breakpoints — e.g. `{ lg: 'row' }` to lay the card
|
|
1602
|
+
* out horizontally from `lg` up while stacking below it.
|
|
1175
1603
|
*/
|
|
1176
1604
|
responsive?: Partial<Record<Breakpoint, FlexDirection>>;
|
|
1177
1605
|
/**
|
|
@@ -1207,7 +1635,7 @@ type CardComponent = (<C extends ElementType = 'div'>(props: CardProps<C> & {
|
|
|
1207
1635
|
}) => ReactElement | null) & {
|
|
1208
1636
|
displayName?: string;
|
|
1209
1637
|
};
|
|
1210
|
-
declare const Card: CardComponent;
|
|
1638
|
+
export declare const Card: CardComponent;
|
|
1211
1639
|
//#endregion
|
|
1212
1640
|
//#region src/components/card/CardBody.d.ts
|
|
1213
1641
|
type CardBodyOwnProps<C extends ElementType> = {
|
|
@@ -1242,7 +1670,7 @@ type CardBodyComponent = (<C extends ElementType = 'div'>(props: CardBodyProps<C
|
|
|
1242
1670
|
}) => ReactElement | null) & {
|
|
1243
1671
|
displayName?: string;
|
|
1244
1672
|
};
|
|
1245
|
-
declare const CardBody: CardBodyComponent;
|
|
1673
|
+
export declare const CardBody: CardBodyComponent;
|
|
1246
1674
|
//#endregion
|
|
1247
1675
|
//#region src/components/card/CardFooter.d.ts
|
|
1248
1676
|
type CardFooterOwnProps<C extends ElementType> = {
|
|
@@ -1261,7 +1689,7 @@ type CardFooterComponent = (<C extends ElementType = 'div'>(props: CardFooterPro
|
|
|
1261
1689
|
}) => ReactElement | null) & {
|
|
1262
1690
|
displayName?: string;
|
|
1263
1691
|
};
|
|
1264
|
-
declare const CardFooter: CardFooterComponent;
|
|
1692
|
+
export declare const CardFooter: CardFooterComponent;
|
|
1265
1693
|
//#endregion
|
|
1266
1694
|
//#region src/components/card/CardGroup.d.ts
|
|
1267
1695
|
type CardGroupOwnProps<C extends ElementType> = {
|
|
@@ -1280,7 +1708,7 @@ type CardGroupComponent = (<C extends ElementType = 'div'>(props: CardGroupProps
|
|
|
1280
1708
|
}) => ReactElement | null) & {
|
|
1281
1709
|
displayName?: string;
|
|
1282
1710
|
};
|
|
1283
|
-
declare const CardGroup: CardGroupComponent;
|
|
1711
|
+
export declare const CardGroup: CardGroupComponent;
|
|
1284
1712
|
//#endregion
|
|
1285
1713
|
//#region src/components/card/CardHeader.d.ts
|
|
1286
1714
|
type CardHeaderOwnProps<C extends ElementType> = {
|
|
@@ -1299,7 +1727,7 @@ type CardHeaderComponent = (<C extends ElementType = 'div'>(props: CardHeaderPro
|
|
|
1299
1727
|
}) => ReactElement | null) & {
|
|
1300
1728
|
displayName?: string;
|
|
1301
1729
|
};
|
|
1302
|
-
declare const CardHeader: CardHeaderComponent;
|
|
1730
|
+
export declare const CardHeader: CardHeaderComponent;
|
|
1303
1731
|
//#endregion
|
|
1304
1732
|
//#region src/components/card/CardImage.d.ts
|
|
1305
1733
|
type CardImageOrientation = 'top' | 'bottom' | 'start' | 'end';
|
|
@@ -1320,7 +1748,7 @@ type CardImageOwnProps<C extends ElementType> = {
|
|
|
1320
1748
|
*/
|
|
1321
1749
|
orientation?: CardImageOrientation;
|
|
1322
1750
|
/**
|
|
1323
|
-
* Overrides `orientation` at one or more breakpoints — e.g. `{
|
|
1751
|
+
* Overrides `orientation` at one or more breakpoints — e.g. `{ lg: 'start' }` to switch an
|
|
1324
1752
|
* image cap from `top` to `start` once the card lays out horizontally.
|
|
1325
1753
|
*/
|
|
1326
1754
|
responsive?: Partial<Record<Breakpoint, CardImageOrientation>>;
|
|
@@ -1331,7 +1759,7 @@ type CardImageComponent = (<C extends ElementType = 'img'>(props: CardImageProps
|
|
|
1331
1759
|
}) => ReactElement | null) & {
|
|
1332
1760
|
displayName?: string;
|
|
1333
1761
|
};
|
|
1334
|
-
declare const CardImage: CardImageComponent;
|
|
1762
|
+
export declare const CardImage: CardImageComponent;
|
|
1335
1763
|
//#endregion
|
|
1336
1764
|
//#region src/components/card/CardImageOverlay.d.ts
|
|
1337
1765
|
type CardImageOverlayOwnProps<C extends ElementType> = {
|
|
@@ -1350,7 +1778,7 @@ type CardImageOverlayComponent = (<C extends ElementType = 'div'>(props: CardIma
|
|
|
1350
1778
|
}) => ReactElement | null) & {
|
|
1351
1779
|
displayName?: string;
|
|
1352
1780
|
};
|
|
1353
|
-
declare const CardImageOverlay: CardImageOverlayComponent;
|
|
1781
|
+
export declare const CardImageOverlay: CardImageOverlayComponent;
|
|
1354
1782
|
//#endregion
|
|
1355
1783
|
//#region src/components/link/Link.d.ts
|
|
1356
1784
|
type LinkOwnProps<C extends ElementType> = {
|
|
@@ -1415,7 +1843,7 @@ type LinkComponent = (<C extends ElementType = 'a'>(props: LinkProps<C> & {
|
|
|
1415
1843
|
}) => ReactElement | null) & {
|
|
1416
1844
|
displayName?: string;
|
|
1417
1845
|
};
|
|
1418
|
-
declare const Link: LinkComponent;
|
|
1846
|
+
export declare const Link: LinkComponent;
|
|
1419
1847
|
//#endregion
|
|
1420
1848
|
//#region src/components/card/CardLink.d.ts
|
|
1421
1849
|
type CardLinkOwnProps = {
|
|
@@ -1430,7 +1858,7 @@ type CardLinkComponent = (<C extends ElementType = 'a'>(props: CardLinkProps<C>
|
|
|
1430
1858
|
}) => ReactElement | null) & {
|
|
1431
1859
|
displayName?: string;
|
|
1432
1860
|
};
|
|
1433
|
-
declare const CardLink: CardLinkComponent;
|
|
1861
|
+
export declare const CardLink: CardLinkComponent;
|
|
1434
1862
|
//#endregion
|
|
1435
1863
|
//#region src/components/card/CardSubtitle.d.ts
|
|
1436
1864
|
type CardSubtitleOwnProps<C extends ElementType> = {
|
|
@@ -1449,7 +1877,7 @@ type CardSubtitleComponent = (<C extends ElementType = 'h6'>(props: CardSubtitle
|
|
|
1449
1877
|
}) => ReactElement | null) & {
|
|
1450
1878
|
displayName?: string;
|
|
1451
1879
|
};
|
|
1452
|
-
declare const CardSubtitle: CardSubtitleComponent;
|
|
1880
|
+
export declare const CardSubtitle: CardSubtitleComponent;
|
|
1453
1881
|
//#endregion
|
|
1454
1882
|
//#region src/components/card/CardText.d.ts
|
|
1455
1883
|
type CardTextOwnProps<C extends ElementType> = {
|
|
@@ -1468,7 +1896,7 @@ type CardTextComponent = (<C extends ElementType = 'p'>(props: CardTextProps<C>
|
|
|
1468
1896
|
}) => ReactElement | null) & {
|
|
1469
1897
|
displayName?: string;
|
|
1470
1898
|
};
|
|
1471
|
-
declare const CardText: CardTextComponent;
|
|
1899
|
+
export declare const CardText: CardTextComponent;
|
|
1472
1900
|
//#endregion
|
|
1473
1901
|
//#region src/components/card/CardTitle.d.ts
|
|
1474
1902
|
type CardTitleOwnProps<C extends ElementType> = {
|
|
@@ -1487,7 +1915,7 @@ type CardTitleComponent = (<C extends ElementType = 'h5'>(props: CardTitleProps<
|
|
|
1487
1915
|
}) => ReactElement | null) & {
|
|
1488
1916
|
displayName?: string;
|
|
1489
1917
|
};
|
|
1490
|
-
declare const CardTitle: CardTitleComponent;
|
|
1918
|
+
export declare const CardTitle: CardTitleComponent;
|
|
1491
1919
|
//#endregion
|
|
1492
1920
|
//#region src/components/carousel/context.d.ts
|
|
1493
1921
|
type CarouselEnds = 'loop' | 'wrap' | 'stop';
|
|
@@ -1575,7 +2003,7 @@ interface CarouselProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1575
2003
|
*/
|
|
1576
2004
|
transition?: CarouselTransition;
|
|
1577
2005
|
}
|
|
1578
|
-
declare const Carousel: React.ForwardRefExoticComponent<CarouselProps & React.RefAttributes<HTMLDivElement>>;
|
|
2006
|
+
export declare const Carousel: React.ForwardRefExoticComponent<CarouselProps & React.RefAttributes<HTMLDivElement>>;
|
|
1579
2007
|
//#endregion
|
|
1580
2008
|
//#region src/components/carousel/CarouselControlNext.d.ts
|
|
1581
2009
|
interface CarouselControlNextProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -1588,7 +2016,7 @@ interface CarouselControlNextProps extends ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
1588
2016
|
*/
|
|
1589
2017
|
label?: string;
|
|
1590
2018
|
}
|
|
1591
|
-
declare const CarouselControlNext: React.ForwardRefExoticComponent<CarouselControlNextProps & React.RefAttributes<HTMLButtonElement>>;
|
|
2019
|
+
export declare const CarouselControlNext: React.ForwardRefExoticComponent<CarouselControlNextProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1592
2020
|
//#endregion
|
|
1593
2021
|
//#region src/components/carousel/CarouselControlPrev.d.ts
|
|
1594
2022
|
interface CarouselControlPrevProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -1601,7 +2029,7 @@ interface CarouselControlPrevProps extends ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
1601
2029
|
*/
|
|
1602
2030
|
label?: string;
|
|
1603
2031
|
}
|
|
1604
|
-
declare const CarouselControlPrev: React.ForwardRefExoticComponent<CarouselControlPrevProps & React.RefAttributes<HTMLButtonElement>>;
|
|
2032
|
+
export declare const CarouselControlPrev: React.ForwardRefExoticComponent<CarouselControlPrevProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1605
2033
|
//#endregion
|
|
1606
2034
|
//#region src/components/carousel/CarouselIndicators.d.ts
|
|
1607
2035
|
interface CarouselIndicatorsProps extends HTMLAttributes<HTMLOListElement> {
|
|
@@ -1614,7 +2042,7 @@ interface CarouselIndicatorsProps extends HTMLAttributes<HTMLOListElement> {
|
|
|
1614
2042
|
*/
|
|
1615
2043
|
label?: (position: number) => string;
|
|
1616
2044
|
}
|
|
1617
|
-
declare const CarouselIndicators: React.ForwardRefExoticComponent<CarouselIndicatorsProps & React.RefAttributes<HTMLOListElement>>;
|
|
2045
|
+
export declare const CarouselIndicators: React.ForwardRefExoticComponent<CarouselIndicatorsProps & React.RefAttributes<HTMLOListElement>>;
|
|
1618
2046
|
//#endregion
|
|
1619
2047
|
//#region src/components/carousel/CarouselInner.d.ts
|
|
1620
2048
|
type CarouselInnerOwnProps<C extends ElementType> = {
|
|
@@ -1633,7 +2061,7 @@ type CarouselInnerComponent = (<C extends ElementType = 'div'>(props: CarouselIn
|
|
|
1633
2061
|
}) => ReactElement | null) & {
|
|
1634
2062
|
displayName?: string;
|
|
1635
2063
|
};
|
|
1636
|
-
declare const CarouselInner: CarouselInnerComponent;
|
|
2064
|
+
export declare const CarouselInner: CarouselInnerComponent;
|
|
1637
2065
|
//#endregion
|
|
1638
2066
|
//#region src/components/carousel/CarouselItem.d.ts
|
|
1639
2067
|
type CarouselItemOwnProps<C extends ElementType> = {
|
|
@@ -1656,7 +2084,7 @@ type CarouselItemComponent = (<C extends ElementType = 'div'>(props: CarouselIte
|
|
|
1656
2084
|
}) => ReactElement | null) & {
|
|
1657
2085
|
displayName?: string;
|
|
1658
2086
|
};
|
|
1659
|
-
declare const CarouselItem: CarouselItemComponent;
|
|
2087
|
+
export declare const CarouselItem: CarouselItemComponent;
|
|
1660
2088
|
//#endregion
|
|
1661
2089
|
//#region src/components/carousel/CarouselOverlay.d.ts
|
|
1662
2090
|
type CarouselOverlayOwnProps<C extends ElementType> = {
|
|
@@ -1675,7 +2103,7 @@ type CarouselOverlayComponent = (<C extends ElementType = 'div'>(props: Carousel
|
|
|
1675
2103
|
}) => ReactElement | null) & {
|
|
1676
2104
|
displayName?: string;
|
|
1677
2105
|
};
|
|
1678
|
-
declare const CarouselOverlay: CarouselOverlayComponent;
|
|
2106
|
+
export declare const CarouselOverlay: CarouselOverlayComponent;
|
|
1679
2107
|
//#endregion
|
|
1680
2108
|
//#region src/components/carousel/CarouselPlayPause.d.ts
|
|
1681
2109
|
interface CarouselPlayPauseProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -1697,7 +2125,7 @@ interface CarouselPlayPauseProps extends ButtonHTMLAttributes<HTMLButtonElement>
|
|
|
1697
2125
|
* Success Criterion 2.2.2 (Pause, Stop, Hide). Reflects the current state automatically — a pause
|
|
1698
2126
|
* icon while playing, a play icon once stopped.
|
|
1699
2127
|
*/
|
|
1700
|
-
declare const CarouselPlayPause: React.ForwardRefExoticComponent<CarouselPlayPauseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
2128
|
+
export declare const CarouselPlayPause: React.ForwardRefExoticComponent<CarouselPlayPauseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1701
2129
|
//#endregion
|
|
1702
2130
|
//#region src/components/collapse/Collapse.d.ts
|
|
1703
2131
|
interface CollapseProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -1722,7 +2150,7 @@ interface CollapseProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1722
2150
|
*/
|
|
1723
2151
|
visible?: boolean;
|
|
1724
2152
|
}
|
|
1725
|
-
declare const Collapse: React.ForwardRefExoticComponent<CollapseProps & React.RefAttributes<HTMLDivElement>>;
|
|
2153
|
+
export declare const Collapse: React.ForwardRefExoticComponent<CollapseProps & React.RefAttributes<HTMLDivElement>>;
|
|
1726
2154
|
//#endregion
|
|
1727
2155
|
//#region src/components/chip-input/ChipInput.d.ts
|
|
1728
2156
|
interface ChipInputProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> {
|
|
@@ -1798,9 +2226,9 @@ interface ChipInputProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'
|
|
|
1798
2226
|
*/
|
|
1799
2227
|
separator?: string | null;
|
|
1800
2228
|
/**
|
|
1801
|
-
* Size the component
|
|
2229
|
+
* Size the component sm or lg.
|
|
1802
2230
|
*/
|
|
1803
|
-
size?: '
|
|
2231
|
+
size?: 'sm' | 'lg';
|
|
1804
2232
|
/**
|
|
1805
2233
|
* Set component validation state to valid.
|
|
1806
2234
|
*/
|
|
@@ -1814,7 +2242,7 @@ interface ChipInputProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'
|
|
|
1814
2242
|
*/
|
|
1815
2243
|
value?: string[];
|
|
1816
2244
|
}
|
|
1817
|
-
declare const ChipInput: React.ForwardRefExoticComponent<ChipInputProps & React.RefAttributes<HTMLDivElement>>;
|
|
2245
|
+
export declare const ChipInput: React.ForwardRefExoticComponent<ChipInputProps & React.RefAttributes<HTMLDivElement>>;
|
|
1818
2246
|
//#endregion
|
|
1819
2247
|
//#region src/components/close-button/CloseButton.d.ts
|
|
1820
2248
|
type CloseButtonOwnProps<C extends ElementType> = {
|
|
@@ -1856,9 +2284,9 @@ type CloseButtonOwnProps<C extends ElementType> = {
|
|
|
1856
2284
|
*/
|
|
1857
2285
|
onClick?: MouseEventHandler<HTMLButtonElement | HTMLAnchorElement>;
|
|
1858
2286
|
/**
|
|
1859
|
-
* Size the component
|
|
2287
|
+
* Size the component sm or lg.
|
|
1860
2288
|
*/
|
|
1861
|
-
size?: '
|
|
2289
|
+
size?: 'sm' | 'lg';
|
|
1862
2290
|
/**
|
|
1863
2291
|
* Specifies the type of button. Always specify the type attribute for the `<button>` element.
|
|
1864
2292
|
* Different browsers may use different default types for the `<button>` element.
|
|
@@ -1876,7 +2304,7 @@ type CloseButtonComponent = (<C extends ElementType = 'button'>(props: CloseButt
|
|
|
1876
2304
|
}) => ReactElement | null) & {
|
|
1877
2305
|
displayName?: string;
|
|
1878
2306
|
};
|
|
1879
|
-
declare const CloseButton: CloseButtonComponent;
|
|
2307
|
+
export declare const CloseButton: CloseButtonComponent;
|
|
1880
2308
|
//#endregion
|
|
1881
2309
|
//#region src/components/color-input/ColorInput.d.ts
|
|
1882
2310
|
interface ColorInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
@@ -1913,9 +2341,9 @@ interface ColorInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 's
|
|
|
1913
2341
|
*/
|
|
1914
2342
|
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
1915
2343
|
/**
|
|
1916
|
-
* Size the component
|
|
2344
|
+
* Size the component sm or lg.
|
|
1917
2345
|
*/
|
|
1918
|
-
size?: '
|
|
2346
|
+
size?: 'sm' | 'lg';
|
|
1919
2347
|
/**
|
|
1920
2348
|
* Set component validation state to valid.
|
|
1921
2349
|
*/
|
|
@@ -1931,7 +2359,7 @@ interface ColorInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 's
|
|
|
1931
2359
|
* */
|
|
1932
2360
|
value?: string;
|
|
1933
2361
|
}
|
|
1934
|
-
declare const ColorInput: React.ForwardRefExoticComponent<ColorInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
2362
|
+
export declare const ColorInput: React.ForwardRefExoticComponent<ColorInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
1935
2363
|
//#endregion
|
|
1936
2364
|
//#region src/components/file-input/FileInput.d.ts
|
|
1937
2365
|
interface FileInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
@@ -1968,9 +2396,9 @@ interface FileInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'si
|
|
|
1968
2396
|
*/
|
|
1969
2397
|
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
1970
2398
|
/**
|
|
1971
|
-
* Size the component
|
|
2399
|
+
* Size the component sm or lg.
|
|
1972
2400
|
*/
|
|
1973
|
-
size?: '
|
|
2401
|
+
size?: 'sm' | 'lg';
|
|
1974
2402
|
/**
|
|
1975
2403
|
* Set component validation state to valid.
|
|
1976
2404
|
*/
|
|
@@ -1980,7 +2408,7 @@ interface FileInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'si
|
|
|
1980
2408
|
*/
|
|
1981
2409
|
validFeedback?: ReactNode;
|
|
1982
2410
|
}
|
|
1983
|
-
declare const FileInput: React.ForwardRefExoticComponent<FileInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
2411
|
+
export declare const FileInput: React.ForwardRefExoticComponent<FileInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
1984
2412
|
//#endregion
|
|
1985
2413
|
//#region src/components/combobox/Combobox.d.ts
|
|
1986
2414
|
interface ComboboxProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> {
|
|
@@ -2056,9 +2484,9 @@ interface ComboboxProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'
|
|
|
2056
2484
|
*/
|
|
2057
2485
|
placeholder?: string;
|
|
2058
2486
|
/**
|
|
2059
|
-
* Size the component
|
|
2487
|
+
* Size the component sm or lg.
|
|
2060
2488
|
*/
|
|
2061
|
-
size?: '
|
|
2489
|
+
size?: 'sm' | 'lg';
|
|
2062
2490
|
/**
|
|
2063
2491
|
* Set component validation state to valid.
|
|
2064
2492
|
*/
|
|
@@ -2072,7 +2500,7 @@ interface ComboboxProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'
|
|
|
2072
2500
|
*/
|
|
2073
2501
|
value?: Key$2 | null;
|
|
2074
2502
|
}
|
|
2075
|
-
declare const Combobox: React.ForwardRefExoticComponent<ComboboxProps & React.RefAttributes<HTMLDivElement>>;
|
|
2503
|
+
export declare const Combobox: React.ForwardRefExoticComponent<ComboboxProps & React.RefAttributes<HTMLDivElement>>;
|
|
2076
2504
|
//#endregion
|
|
2077
2505
|
//#region src/components/datepicker/DatePicker.d.ts
|
|
2078
2506
|
interface DatePickerBaseProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> {
|
|
@@ -2126,6 +2554,14 @@ interface DatePickerBaseProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onCh
|
|
|
2126
2554
|
* shown but cannot be selected.
|
|
2127
2555
|
*/
|
|
2128
2556
|
isDateUnavailable?: (date: DateValue$1) => boolean;
|
|
2557
|
+
/**
|
|
2558
|
+
* Overrides for the strings this component and its calendar render themselves rather than
|
|
2559
|
+
* getting from the active locale — the calendar trigger, the clear adornment, and the calendar's
|
|
2560
|
+
* own year-view arrows/announcements. Date segment order, month and weekday names all follow
|
|
2561
|
+
* `I18nProvider`'s locale via react-aria and need no override. Merged over the English defaults,
|
|
2562
|
+
* so passing one key leaves the rest alone.
|
|
2563
|
+
*/
|
|
2564
|
+
labels?: Partial<CalendarLabels>;
|
|
2129
2565
|
/**
|
|
2130
2566
|
* Whether the calendar popover is open (controlled).
|
|
2131
2567
|
*/
|
|
@@ -2154,9 +2590,9 @@ interface DatePickerBaseProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onCh
|
|
|
2154
2590
|
*/
|
|
2155
2591
|
onOpenChange?: (isOpen: boolean) => void;
|
|
2156
2592
|
/**
|
|
2157
|
-
* Size the component
|
|
2593
|
+
* Size the component sm or lg.
|
|
2158
2594
|
*/
|
|
2159
|
-
size?: '
|
|
2595
|
+
size?: 'sm' | 'lg';
|
|
2160
2596
|
/**
|
|
2161
2597
|
* ISO 8601 dates (`YYYY-MM-DD`) to mark unselectable, as a convenience alternative to
|
|
2162
2598
|
* `isDateUnavailable` for data-driven cases (e.g. booked dates fetched from an API). Composed
|
|
@@ -2226,7 +2662,7 @@ interface DatePickerMultipleProps extends DatePickerBaseProps {
|
|
|
2226
2662
|
value?: DateValue$1[] | null;
|
|
2227
2663
|
}
|
|
2228
2664
|
type DatePickerProps = DatePickerSingleProps | DatePickerMultipleProps;
|
|
2229
|
-
declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<HTMLDivElement>>;
|
|
2665
|
+
export declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<HTMLDivElement>>;
|
|
2230
2666
|
//#endregion
|
|
2231
2667
|
//#region src/components/datepicker/DateRangePicker.d.ts
|
|
2232
2668
|
interface DateRangePickerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> {
|
|
@@ -2284,6 +2720,14 @@ interface DateRangePickerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onC
|
|
|
2284
2720
|
* shown but cannot be selected.
|
|
2285
2721
|
*/
|
|
2286
2722
|
isDateUnavailable?: (date: DateValue$1) => boolean;
|
|
2723
|
+
/**
|
|
2724
|
+
* Overrides for the strings this component and its calendar render themselves rather than
|
|
2725
|
+
* getting from the active locale — the clear adornment and the calendar's own year-view
|
|
2726
|
+
* arrows/announcements. Date segment order, month and weekday names all follow `I18nProvider`'s
|
|
2727
|
+
* locale via react-aria and need no override. Merged over the English defaults, so passing one
|
|
2728
|
+
* key leaves the rest alone.
|
|
2729
|
+
*/
|
|
2730
|
+
labels?: Partial<CalendarLabels>;
|
|
2287
2731
|
/**
|
|
2288
2732
|
* Whether the calendar popover is open (controlled).
|
|
2289
2733
|
*/
|
|
@@ -2322,9 +2766,9 @@ interface DateRangePickerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onC
|
|
|
2322
2766
|
*/
|
|
2323
2767
|
presets?: DateRangePreset[];
|
|
2324
2768
|
/**
|
|
2325
|
-
* Size the component
|
|
2769
|
+
* Size the component sm or lg.
|
|
2326
2770
|
*/
|
|
2327
|
-
size?: '
|
|
2771
|
+
size?: 'sm' | 'lg';
|
|
2328
2772
|
/**
|
|
2329
2773
|
* ISO 8601 dates (`YYYY-MM-DD`) to mark unselectable, as a convenience alternative to
|
|
2330
2774
|
* `isDateUnavailable` for data-driven cases (e.g. booked dates fetched from an API). Composed
|
|
@@ -2351,7 +2795,7 @@ interface DateRangePickerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onC
|
|
|
2351
2795
|
*/
|
|
2352
2796
|
visibleMonths?: number;
|
|
2353
2797
|
}
|
|
2354
|
-
declare const DateRangePicker: React.ForwardRefExoticComponent<DateRangePickerProps & React.RefAttributes<HTMLDivElement>>;
|
|
2798
|
+
export declare const DateRangePicker: React.ForwardRefExoticComponent<DateRangePickerProps & React.RefAttributes<HTMLDivElement>>;
|
|
2355
2799
|
//#endregion
|
|
2356
2800
|
//#region src/components/otp-input/OtpInput.d.ts
|
|
2357
2801
|
interface OtpInputProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> {
|
|
@@ -2437,9 +2881,9 @@ interface OtpInputProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'
|
|
|
2437
2881
|
*/
|
|
2438
2882
|
separator?: ReactNode;
|
|
2439
2883
|
/**
|
|
2440
|
-
* Size the boxes
|
|
2884
|
+
* Size the boxes sm or lg.
|
|
2441
2885
|
*/
|
|
2442
|
-
size?: '
|
|
2886
|
+
size?: 'sm' | 'lg';
|
|
2443
2887
|
/**
|
|
2444
2888
|
* Set component validation state to valid.
|
|
2445
2889
|
*/
|
|
@@ -2453,7 +2897,7 @@ interface OtpInputProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'
|
|
|
2453
2897
|
*/
|
|
2454
2898
|
value?: string;
|
|
2455
2899
|
}
|
|
2456
|
-
declare const OtpInput: React.ForwardRefExoticComponent<OtpInputProps & React.RefAttributes<HTMLDivElement>>;
|
|
2900
|
+
export declare const OtpInput: React.ForwardRefExoticComponent<OtpInputProps & React.RefAttributes<HTMLDivElement>>;
|
|
2457
2901
|
//#endregion
|
|
2458
2902
|
//#region src/components/password-strength/strengthScore.d.ts
|
|
2459
2903
|
type StrengthLevel = 'weak' | 'fair' | 'good' | 'strong';
|
|
@@ -2534,7 +2978,7 @@ interface PasswordStrengthProps extends Omit<HTMLAttributes<HTMLDivElement>, 'on
|
|
|
2534
2978
|
*/
|
|
2535
2979
|
weights?: Partial<StrengthWeights>;
|
|
2536
2980
|
}
|
|
2537
|
-
declare const PasswordStrength: {
|
|
2981
|
+
export declare const PasswordStrength: {
|
|
2538
2982
|
({ "aria-label": ariaLabel, className, id, maxScore, messages, minLength, onStrengthChange, scorer, showText, thresholds, value, variant, weights, ...rest }: PasswordStrengthProps): React.JSX.Element;
|
|
2539
2983
|
displayName: string;
|
|
2540
2984
|
};
|
|
@@ -2543,6 +2987,7 @@ declare const PasswordStrength: {
|
|
|
2543
2987
|
type Placement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
2544
2988
|
//#endregion
|
|
2545
2989
|
//#region src/components/menu/Menu.d.ts
|
|
2990
|
+
type MenuFocusStrategy = 'first' | 'last';
|
|
2546
2991
|
type MenuAutoClose = boolean | 'inside' | 'outside';
|
|
2547
2992
|
type MenuOwnProps<C extends ElementType> = {
|
|
2548
2993
|
/**
|
|
@@ -2615,7 +3060,7 @@ type MenuComponent = (<C extends ElementType = typeof Fragment>(props: MenuProps
|
|
|
2615
3060
|
}) => ReactElement | null) & {
|
|
2616
3061
|
displayName?: string;
|
|
2617
3062
|
};
|
|
2618
|
-
declare const Menu: MenuComponent;
|
|
3063
|
+
export declare const Menu: MenuComponent;
|
|
2619
3064
|
//#endregion
|
|
2620
3065
|
//#region src/components/menu/MenuDivider.d.ts
|
|
2621
3066
|
interface MenuDividerProps extends HTMLAttributes<HTMLHRElement> {
|
|
@@ -2624,7 +3069,7 @@ interface MenuDividerProps extends HTMLAttributes<HTMLHRElement> {
|
|
|
2624
3069
|
*/
|
|
2625
3070
|
className?: string;
|
|
2626
3071
|
}
|
|
2627
|
-
declare const MenuDivider: React.ForwardRefExoticComponent<MenuDividerProps & React.RefAttributes<HTMLHRElement>>;
|
|
3072
|
+
export declare const MenuDivider: React.ForwardRefExoticComponent<MenuDividerProps & React.RefAttributes<HTMLHRElement>>;
|
|
2628
3073
|
//#endregion
|
|
2629
3074
|
//#region src/components/menu/MenuHeader.d.ts
|
|
2630
3075
|
type MenuHeaderOwnProps<C extends ElementType> = {
|
|
@@ -2648,7 +3093,7 @@ type MenuHeaderComponent = (<C extends ElementType = 'h4'>(props: MenuHeaderProp
|
|
|
2648
3093
|
}) => ReactElement | null) & {
|
|
2649
3094
|
displayName?: string;
|
|
2650
3095
|
};
|
|
2651
|
-
declare const MenuHeader: MenuHeaderComponent;
|
|
3096
|
+
export declare const MenuHeader: MenuHeaderComponent;
|
|
2652
3097
|
//#endregion
|
|
2653
3098
|
//#region src/components/menu/MenuItem.d.ts
|
|
2654
3099
|
type MenuItemOwnProps = {
|
|
@@ -2678,7 +3123,7 @@ type MenuItemComponent = (<C extends ElementType = 'a'>(props: MenuItemProps<C>
|
|
|
2678
3123
|
}) => ReactElement | null) & {
|
|
2679
3124
|
displayName?: string;
|
|
2680
3125
|
};
|
|
2681
|
-
declare const MenuItem: MenuItemComponent;
|
|
3126
|
+
export declare const MenuItem: MenuItemComponent;
|
|
2682
3127
|
//#endregion
|
|
2683
3128
|
//#region src/components/menu/MenuList.d.ts
|
|
2684
3129
|
type MenuListOwnProps<C extends ElementType> = {
|
|
@@ -2703,7 +3148,7 @@ type MenuListComponent = (<C extends ElementType = 'div'>(props: MenuListProps<C
|
|
|
2703
3148
|
}) => ReactElement | null) & {
|
|
2704
3149
|
displayName?: string;
|
|
2705
3150
|
};
|
|
2706
|
-
declare const MenuList: MenuListComponent;
|
|
3151
|
+
export declare const MenuList: MenuListComponent;
|
|
2707
3152
|
//#endregion
|
|
2708
3153
|
//#region src/components/menu/MenuText.d.ts
|
|
2709
3154
|
type MenuTextOwnProps<C extends ElementType> = {
|
|
@@ -2722,7 +3167,7 @@ type MenuTextComponent = (<C extends ElementType = 'span'>(props: MenuTextProps<
|
|
|
2722
3167
|
}) => ReactElement | null) & {
|
|
2723
3168
|
displayName?: string;
|
|
2724
3169
|
};
|
|
2725
|
-
declare const MenuText: MenuTextComponent;
|
|
3170
|
+
export declare const MenuText: MenuTextComponent;
|
|
2726
3171
|
//#endregion
|
|
2727
3172
|
//#region src/components/menu/MenuToggle.d.ts
|
|
2728
3173
|
type MenuToggleOwnProps<C extends ElementType> = {
|
|
@@ -2759,9 +3204,9 @@ type MenuToggleOwnProps<C extends ElementType> = {
|
|
|
2759
3204
|
*/
|
|
2760
3205
|
shape?: Shapes;
|
|
2761
3206
|
/**
|
|
2762
|
-
* Size the component
|
|
3207
|
+
* Size the component sm or lg. Only applies to the default `Button` root.
|
|
2763
3208
|
*/
|
|
2764
|
-
size?: '
|
|
3209
|
+
size?: 'sm' | 'lg';
|
|
2765
3210
|
/**
|
|
2766
3211
|
* Sets the context style of the component. Only applies to the default `Button` root.
|
|
2767
3212
|
*/
|
|
@@ -2773,7 +3218,7 @@ type MenuToggleComponent = (<C extends ElementType = typeof Button>(props: MenuT
|
|
|
2773
3218
|
}) => ReactElement | null) & {
|
|
2774
3219
|
displayName?: string;
|
|
2775
3220
|
};
|
|
2776
|
-
declare const MenuToggle: MenuToggleComponent;
|
|
3221
|
+
export declare const MenuToggle: MenuToggleComponent;
|
|
2777
3222
|
//#endregion
|
|
2778
3223
|
//#region src/components/menu/MenuSubmenu.d.ts
|
|
2779
3224
|
interface MenuSubmenuProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onSelect'> {
|
|
@@ -2803,7 +3248,7 @@ interface MenuSubmenuProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onSelec
|
|
|
2803
3248
|
*/
|
|
2804
3249
|
placement?: Placement;
|
|
2805
3250
|
/**
|
|
2806
|
-
* Switches to a view-replacement pattern below the `
|
|
3251
|
+
* Switches to a view-replacement pattern below the `sm` breakpoint. Pair with a
|
|
2807
3252
|
* `MenuSubmenuBack` as the first item of the nested menu.
|
|
2808
3253
|
*/
|
|
2809
3254
|
stacked?: boolean;
|
|
@@ -2816,7 +3261,7 @@ interface MenuSubmenuProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onSelec
|
|
|
2816
3261
|
*/
|
|
2817
3262
|
trigger: ReactNode;
|
|
2818
3263
|
}
|
|
2819
|
-
declare const MenuSubmenu: React.ForwardRefExoticComponent<MenuSubmenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
3264
|
+
export declare const MenuSubmenu: React.ForwardRefExoticComponent<MenuSubmenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
2820
3265
|
//#endregion
|
|
2821
3266
|
//#region src/components/menu/MenuSubmenuBack.d.ts
|
|
2822
3267
|
interface MenuSubmenuBackProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -2825,7 +3270,7 @@ interface MenuSubmenuBackProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
2825
3270
|
*/
|
|
2826
3271
|
className?: string;
|
|
2827
3272
|
}
|
|
2828
|
-
declare const MenuSubmenuBack: React.ForwardRefExoticComponent<MenuSubmenuBackProps & React.RefAttributes<HTMLButtonElement>>;
|
|
3273
|
+
export declare const MenuSubmenuBack: React.ForwardRefExoticComponent<MenuSubmenuBackProps & React.RefAttributes<HTMLButtonElement>>;
|
|
2829
3274
|
//#endregion
|
|
2830
3275
|
//#region src/components/grid/Col.d.ts
|
|
2831
3276
|
interface ColLayout {
|
|
@@ -2854,11 +3299,11 @@ interface ColProps extends HTMLAttributes<HTMLDivElement>, ColLayout {
|
|
|
2854
3299
|
/**
|
|
2855
3300
|
* Overrides `span`/`offset`/`order` at a breakpoint and up.
|
|
2856
3301
|
*
|
|
2857
|
-
* @type { Partial<Record<'
|
|
3302
|
+
* @type { Partial<Record<'sm' | 'md' | 'lg' | 'xl' | '2xl', { span?: 'auto' | number | string | boolean, offset?: number | string, order?: 'first' | 'last' | number | string }>> }
|
|
2858
3303
|
*/
|
|
2859
3304
|
responsive?: Partial<Record<Breakpoint, ColLayout>>;
|
|
2860
3305
|
}
|
|
2861
|
-
declare const Col: React.ForwardRefExoticComponent<ColProps & React.RefAttributes<HTMLDivElement>>;
|
|
3306
|
+
export declare const Col: React.ForwardRefExoticComponent<ColProps & React.RefAttributes<HTMLDivElement>>;
|
|
2862
3307
|
//#endregion
|
|
2863
3308
|
//#region src/components/grid/Container.d.ts
|
|
2864
3309
|
type ContainerOwnProps<C extends ElementType> = {
|
|
@@ -2888,7 +3333,7 @@ type ContainerComponent = (<C extends ElementType = 'div'>(props: ContainerProps
|
|
|
2888
3333
|
}) => ReactElement | null) & {
|
|
2889
3334
|
displayName?: string;
|
|
2890
3335
|
};
|
|
2891
|
-
declare const Container: ContainerComponent;
|
|
3336
|
+
export declare const Container: ContainerComponent;
|
|
2892
3337
|
//#endregion
|
|
2893
3338
|
//#region src/components/grid/Grid.d.ts
|
|
2894
3339
|
type GridOwnProps<C extends ElementType> = {
|
|
@@ -2930,7 +3375,7 @@ type GridComponent = (<C extends ElementType = 'div'>(props: GridProps<C> & {
|
|
|
2930
3375
|
}) => ReactElement | null) & {
|
|
2931
3376
|
displayName?: string;
|
|
2932
3377
|
};
|
|
2933
|
-
declare const Grid: GridComponent;
|
|
3378
|
+
export declare const Grid: GridComponent;
|
|
2934
3379
|
//#endregion
|
|
2935
3380
|
//#region src/components/grid/GridItem.d.ts
|
|
2936
3381
|
interface GridItemLayout {
|
|
@@ -2956,7 +3401,7 @@ type GridItemOwnProps<C extends ElementType> = GridItemLayout & {
|
|
|
2956
3401
|
/**
|
|
2957
3402
|
* Overrides `span`/`start` at a breakpoint and up.
|
|
2958
3403
|
*
|
|
2959
|
-
* @type { Partial<Record<'
|
|
3404
|
+
* @type { Partial<Record<'sm' | 'md' | 'lg' | 'xl' | '2xl', { span?: number, start?: number }>> }
|
|
2960
3405
|
*/
|
|
2961
3406
|
responsive?: Partial<Record<Breakpoint, GridItemLayout>>;
|
|
2962
3407
|
/**
|
|
@@ -2988,7 +3433,7 @@ type GridItemComponent = (<C extends ElementType = 'div'>(props: GridItemProps<C
|
|
|
2988
3433
|
}) => ReactElement | null) & {
|
|
2989
3434
|
displayName?: string;
|
|
2990
3435
|
};
|
|
2991
|
-
declare const GridItem: GridItemComponent;
|
|
3436
|
+
export declare const GridItem: GridItemComponent;
|
|
2992
3437
|
//#endregion
|
|
2993
3438
|
//#region src/components/grid/Row.d.ts
|
|
2994
3439
|
interface RowLayout {
|
|
@@ -3025,11 +3470,11 @@ interface RowProps extends HTMLAttributes<HTMLDivElement>, RowLayout {
|
|
|
3025
3470
|
/**
|
|
3026
3471
|
* Overrides `cols`/`gutter`/`gutterX`/`gutterY` at a breakpoint and up.
|
|
3027
3472
|
*
|
|
3028
|
-
* @type { Partial<Record<'
|
|
3473
|
+
* @type { Partial<Record<'sm' | 'md' | 'lg' | 'xl' | '2xl', { cols?: 'auto' | number | string, gutter?: Spacing | 0, gutterX?: Spacing | 0, gutterY?: Spacing | 0 }>> }
|
|
3029
3474
|
*/
|
|
3030
3475
|
responsive?: Partial<Record<Breakpoint, RowLayout>>;
|
|
3031
3476
|
}
|
|
3032
|
-
declare const Row: React.ForwardRefExoticComponent<RowProps & React.RefAttributes<HTMLDivElement>>;
|
|
3477
|
+
export declare const Row: React.ForwardRefExoticComponent<RowProps & React.RefAttributes<HTMLDivElement>>;
|
|
3033
3478
|
//#endregion
|
|
3034
3479
|
//#region src/components/form/renderFormCheck.d.ts
|
|
3035
3480
|
type ButtonObject = {
|
|
@@ -3042,9 +3487,9 @@ type ButtonObject = {
|
|
|
3042
3487
|
*/
|
|
3043
3488
|
shape?: Shapes;
|
|
3044
3489
|
/**
|
|
3045
|
-
* Size the component
|
|
3490
|
+
* Size the component sm or lg.
|
|
3046
3491
|
*/
|
|
3047
|
-
size?: '
|
|
3492
|
+
size?: 'sm' | 'lg';
|
|
3048
3493
|
/**
|
|
3049
3494
|
* Set the button variant to an outlined button or a ghost button.
|
|
3050
3495
|
*/
|
|
@@ -3097,9 +3542,9 @@ interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'che
|
|
|
3097
3542
|
*/
|
|
3098
3543
|
onChange?: (isSelected: boolean) => void;
|
|
3099
3544
|
/**
|
|
3100
|
-
* Size the component
|
|
3545
|
+
* Size the component sm or lg.
|
|
3101
3546
|
*/
|
|
3102
|
-
size?: '
|
|
3547
|
+
size?: 'sm' | 'lg';
|
|
3103
3548
|
/**
|
|
3104
3549
|
* Set component validation state to valid.
|
|
3105
3550
|
*/
|
|
@@ -3110,7 +3555,7 @@ interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'che
|
|
|
3110
3555
|
*/
|
|
3111
3556
|
value?: string;
|
|
3112
3557
|
}
|
|
3113
|
-
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
3558
|
+
export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
3114
3559
|
//#endregion
|
|
3115
3560
|
//#region src/components/checkbox/CheckboxGroup.d.ts
|
|
3116
3561
|
interface CheckboxGroupProps extends Omit<HTMLAttributes<HTMLFieldSetElement>, 'defaultValue' | 'onChange'> {
|
|
@@ -3171,7 +3616,7 @@ interface CheckboxGroupProps extends Omit<HTMLAttributes<HTMLFieldSetElement>, '
|
|
|
3171
3616
|
*/
|
|
3172
3617
|
value?: string[];
|
|
3173
3618
|
}
|
|
3174
|
-
declare const CheckboxGroup: React.ForwardRefExoticComponent<CheckboxGroupProps & React.RefAttributes<HTMLFieldSetElement>>;
|
|
3619
|
+
export declare const CheckboxGroup: React.ForwardRefExoticComponent<CheckboxGroupProps & React.RefAttributes<HTMLFieldSetElement>>;
|
|
3175
3620
|
//#endregion
|
|
3176
3621
|
//#region src/components/form/Form.d.ts
|
|
3177
3622
|
interface FormProps extends FormHTMLAttributes<HTMLFormElement> {
|
|
@@ -3184,7 +3629,7 @@ interface FormProps extends FormHTMLAttributes<HTMLFormElement> {
|
|
|
3184
3629
|
*/
|
|
3185
3630
|
validated?: boolean;
|
|
3186
3631
|
}
|
|
3187
|
-
declare const Form: React.ForwardRefExoticComponent<FormProps & React.RefAttributes<HTMLFormElement>>;
|
|
3632
|
+
export declare const Form: React.ForwardRefExoticComponent<FormProps & React.RefAttributes<HTMLFormElement>>;
|
|
3188
3633
|
//#endregion
|
|
3189
3634
|
//#region src/components/form/FormLabel.d.ts
|
|
3190
3635
|
interface FormLabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
|
|
@@ -3197,7 +3642,7 @@ interface FormLabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
|
|
|
3197
3642
|
*/
|
|
3198
3643
|
customClassName?: string;
|
|
3199
3644
|
}
|
|
3200
|
-
declare const FormLabel: React.ForwardRefExoticComponent<FormLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
3645
|
+
export declare const FormLabel: React.ForwardRefExoticComponent<FormLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
3201
3646
|
//#endregion
|
|
3202
3647
|
//#region src/components/form/FormHelp.d.ts
|
|
3203
3648
|
type FormHelpOwnProps<C extends ElementType> = {
|
|
@@ -3216,7 +3661,7 @@ type FormHelpComponent = (<C extends ElementType = 'div'>(props: FormHelpProps<C
|
|
|
3216
3661
|
}) => ReactElement | null) & {
|
|
3217
3662
|
displayName?: string;
|
|
3218
3663
|
};
|
|
3219
|
-
declare const FormHelp: FormHelpComponent;
|
|
3664
|
+
export declare const FormHelp: FormHelpComponent;
|
|
3220
3665
|
//#endregion
|
|
3221
3666
|
//#region src/components/form/FormFeedback.d.ts
|
|
3222
3667
|
type FormFeedbackOwnProps<C extends ElementType> = {
|
|
@@ -3247,7 +3692,7 @@ type FormFeedbackComponent = (<C extends ElementType = 'div'>(props: FormFeedbac
|
|
|
3247
3692
|
}) => ReactElement | null) & {
|
|
3248
3693
|
displayName?: string;
|
|
3249
3694
|
};
|
|
3250
|
-
declare const FormFeedback: FormFeedbackComponent;
|
|
3695
|
+
export declare const FormFeedback: FormFeedbackComponent;
|
|
3251
3696
|
//#endregion
|
|
3252
3697
|
//#region src/components/form-field/renderFormField.d.ts
|
|
3253
3698
|
interface FormFieldIds {
|
|
@@ -3304,7 +3749,7 @@ interface FloatingInputProps extends Omit<HTMLAttributes<HTMLDivElement>, 'child
|
|
|
3304
3749
|
*/
|
|
3305
3750
|
validFeedback?: ReactNode;
|
|
3306
3751
|
}
|
|
3307
|
-
declare const FloatingInput: React.ForwardRefExoticComponent<FloatingInputProps & React.RefAttributes<HTMLDivElement>>;
|
|
3752
|
+
export declare const FloatingInput: React.ForwardRefExoticComponent<FloatingInputProps & React.RefAttributes<HTMLDivElement>>;
|
|
3308
3753
|
//#endregion
|
|
3309
3754
|
//#region src/components/form-field/FormField.d.ts
|
|
3310
3755
|
interface FormFieldProps {
|
|
@@ -3346,7 +3791,7 @@ interface FormFieldProps {
|
|
|
3346
3791
|
*/
|
|
3347
3792
|
validFeedback?: ReactNode;
|
|
3348
3793
|
}
|
|
3349
|
-
declare const FormField: {
|
|
3794
|
+
export declare const FormField: {
|
|
3350
3795
|
({ children, className, help, ids, invalid, invalidFeedback, label, valid, validFeedback }: FormFieldProps): ReactNode;
|
|
3351
3796
|
displayName: string;
|
|
3352
3797
|
};
|
|
@@ -3362,9 +3807,9 @@ type InputGroupOwnProps<C extends ElementType> = {
|
|
|
3362
3807
|
*/
|
|
3363
3808
|
component?: C;
|
|
3364
3809
|
/**
|
|
3365
|
-
* Size the component
|
|
3810
|
+
* Size the component sm or lg.
|
|
3366
3811
|
*/
|
|
3367
|
-
size?: '
|
|
3812
|
+
size?: 'sm' | 'lg';
|
|
3368
3813
|
};
|
|
3369
3814
|
type InputGroupProps<C extends ElementType = 'div'> = PolymorphicComponentProps<C, InputGroupOwnProps<C>>;
|
|
3370
3815
|
type InputGroupComponent = (<C extends ElementType = 'div'>(props: InputGroupProps<C> & {
|
|
@@ -3372,7 +3817,7 @@ type InputGroupComponent = (<C extends ElementType = 'div'>(props: InputGroupPro
|
|
|
3372
3817
|
}) => ReactElement | null) & {
|
|
3373
3818
|
displayName?: string;
|
|
3374
3819
|
};
|
|
3375
|
-
declare const InputGroup: InputGroupComponent;
|
|
3820
|
+
export declare const InputGroup: InputGroupComponent;
|
|
3376
3821
|
//#endregion
|
|
3377
3822
|
//#region src/components/input-group/InputGroupAddon.d.ts
|
|
3378
3823
|
type InputGroupAddonOwnProps<C extends ElementType> = {
|
|
@@ -3395,7 +3840,7 @@ type InputGroupAddonComponent = (<C extends ElementType = 'span'>(props: InputGr
|
|
|
3395
3840
|
}) => ReactElement | null) & {
|
|
3396
3841
|
displayName?: string;
|
|
3397
3842
|
};
|
|
3398
|
-
declare const InputGroupAddon: InputGroupAddonComponent;
|
|
3843
|
+
export declare const InputGroupAddon: InputGroupAddonComponent;
|
|
3399
3844
|
//#endregion
|
|
3400
3845
|
//#region src/components/input-adorn/InputAdorn.d.ts
|
|
3401
3846
|
type InputAdornOwnProps<C extends ElementType> = {
|
|
@@ -3415,7 +3860,7 @@ type InputAdornComponent = (<C extends ElementType = 'span'>(props: InputAdornPr
|
|
|
3415
3860
|
}) => ReactElement | null) & {
|
|
3416
3861
|
displayName?: string;
|
|
3417
3862
|
};
|
|
3418
|
-
declare const InputAdorn: InputAdornComponent;
|
|
3863
|
+
export declare const InputAdorn: InputAdornComponent;
|
|
3419
3864
|
//#endregion
|
|
3420
3865
|
//#region src/components/radio/Radio.d.ts
|
|
3421
3866
|
interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'checked' | 'defaultChecked' | 'onChange' | 'size'> {
|
|
@@ -3440,15 +3885,15 @@ interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'checke
|
|
|
3440
3885
|
*/
|
|
3441
3886
|
label?: ReactNode;
|
|
3442
3887
|
/**
|
|
3443
|
-
* Size the component
|
|
3888
|
+
* Size the component sm or lg.
|
|
3444
3889
|
*/
|
|
3445
|
-
size?: '
|
|
3890
|
+
size?: 'sm' | 'lg';
|
|
3446
3891
|
/**
|
|
3447
3892
|
* The value of the radio button, used to identify it within its `<RadioGroup>`.
|
|
3448
3893
|
*/
|
|
3449
3894
|
value: string;
|
|
3450
3895
|
}
|
|
3451
|
-
declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>;
|
|
3896
|
+
export declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>;
|
|
3452
3897
|
//#endregion
|
|
3453
3898
|
//#region src/components/radio/RadioGroup.d.ts
|
|
3454
3899
|
interface RadioGroupProps extends Omit<HTMLAttributes<HTMLFieldSetElement>, 'defaultValue' | 'onChange'> {
|
|
@@ -3509,7 +3954,7 @@ interface RadioGroupProps extends Omit<HTMLAttributes<HTMLFieldSetElement>, 'def
|
|
|
3509
3954
|
*/
|
|
3510
3955
|
value?: string;
|
|
3511
3956
|
}
|
|
3512
|
-
declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLFieldSetElement>>;
|
|
3957
|
+
export declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLFieldSetElement>>;
|
|
3513
3958
|
//#endregion
|
|
3514
3959
|
//#region src/components/range-input/RangeInput.d.ts
|
|
3515
3960
|
interface RangeInputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
@@ -3572,7 +4017,7 @@ interface RangeInputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
3572
4017
|
* */
|
|
3573
4018
|
value?: string | number;
|
|
3574
4019
|
}
|
|
3575
|
-
declare const RangeInput: React.ForwardRefExoticComponent<RangeInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
4020
|
+
export declare const RangeInput: React.ForwardRefExoticComponent<RangeInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
3576
4021
|
//#endregion
|
|
3577
4022
|
//#region src/components/select/Select.d.ts
|
|
3578
4023
|
interface SelectOptionDef {
|
|
@@ -3661,9 +4106,9 @@ interface SelectProps extends Omit<InputHTMLAttributes<HTMLSelectElement>, 'size
|
|
|
3661
4106
|
*/
|
|
3662
4107
|
placeholder?: string;
|
|
3663
4108
|
/**
|
|
3664
|
-
* Size the component
|
|
4109
|
+
* Size the component sm or lg.
|
|
3665
4110
|
*/
|
|
3666
|
-
size?: '
|
|
4111
|
+
size?: 'sm' | 'lg';
|
|
3667
4112
|
/**
|
|
3668
4113
|
* Set component validation state to valid.
|
|
3669
4114
|
*/
|
|
@@ -3679,7 +4124,7 @@ interface SelectProps extends Omit<InputHTMLAttributes<HTMLSelectElement>, 'size
|
|
|
3679
4124
|
* */
|
|
3680
4125
|
value?: string | string[] | number;
|
|
3681
4126
|
}
|
|
3682
|
-
declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLSelectElement>>;
|
|
4127
|
+
export declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLSelectElement>>;
|
|
3683
4128
|
//#endregion
|
|
3684
4129
|
//#region src/components/switch/Switch.d.ts
|
|
3685
4130
|
interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'checked' | 'defaultChecked' | 'onChange' | 'size'> {
|
|
@@ -3716,9 +4161,9 @@ interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'check
|
|
|
3716
4161
|
*/
|
|
3717
4162
|
onChange?: (isSelected: boolean) => void;
|
|
3718
4163
|
/**
|
|
3719
|
-
* Size the component
|
|
4164
|
+
* Size the component sm or lg.
|
|
3720
4165
|
*/
|
|
3721
|
-
size?: '
|
|
4166
|
+
size?: 'sm' | 'lg';
|
|
3722
4167
|
/**
|
|
3723
4168
|
* Specifies the type of component.
|
|
3724
4169
|
*/
|
|
@@ -3728,7 +4173,7 @@ interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'check
|
|
|
3728
4173
|
*/
|
|
3729
4174
|
valid?: boolean;
|
|
3730
4175
|
}
|
|
3731
|
-
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLInputElement>>;
|
|
4176
|
+
export declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLInputElement>>;
|
|
3732
4177
|
//#endregion
|
|
3733
4178
|
//#region src/components/text-input/TextInput.d.ts
|
|
3734
4179
|
interface TextInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'defaultValue' | 'onChange' | 'size' | 'value'> {
|
|
@@ -3785,9 +4230,9 @@ interface TextInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'de
|
|
|
3785
4230
|
*/
|
|
3786
4231
|
readOnly?: boolean;
|
|
3787
4232
|
/**
|
|
3788
|
-
* Size the component
|
|
4233
|
+
* Size the component sm or lg.
|
|
3789
4234
|
*/
|
|
3790
|
-
size?: '
|
|
4235
|
+
size?: 'sm' | 'lg';
|
|
3791
4236
|
/**
|
|
3792
4237
|
* Specifies the type of component. For `color` or `file` inputs, use the dedicated `ColorInput` or `FileInput` components instead.
|
|
3793
4238
|
*/
|
|
@@ -3805,7 +4250,7 @@ interface TextInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'de
|
|
|
3805
4250
|
*/
|
|
3806
4251
|
value?: string;
|
|
3807
4252
|
}
|
|
3808
|
-
declare const TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
4253
|
+
export declare const TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
3809
4254
|
//#endregion
|
|
3810
4255
|
//#region src/components/textarea/Textarea.d.ts
|
|
3811
4256
|
interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'defaultValue' | 'onChange' | 'value'> {
|
|
@@ -3854,9 +4299,9 @@ interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>
|
|
|
3854
4299
|
*/
|
|
3855
4300
|
rows?: number;
|
|
3856
4301
|
/**
|
|
3857
|
-
* Size the component
|
|
4302
|
+
* Size the component sm or lg.
|
|
3858
4303
|
*/
|
|
3859
|
-
size?: '
|
|
4304
|
+
size?: 'sm' | 'lg';
|
|
3860
4305
|
/**
|
|
3861
4306
|
* Set component validation state to valid.
|
|
3862
4307
|
*/
|
|
@@ -3870,7 +4315,7 @@ interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>
|
|
|
3870
4315
|
*/
|
|
3871
4316
|
value?: string;
|
|
3872
4317
|
}
|
|
3873
|
-
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
4318
|
+
export declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
3874
4319
|
//#endregion
|
|
3875
4320
|
//#region src/components/placeholder/Placeholder.d.ts
|
|
3876
4321
|
type PlaceholderAlign = 'start' | 'center' | 'end';
|
|
@@ -3945,7 +4390,7 @@ type PlaceholderComponent = (<C extends ElementType = 'img'>(props: PlaceholderP
|
|
|
3945
4390
|
}) => ReactElement | null) & {
|
|
3946
4391
|
displayName?: string;
|
|
3947
4392
|
};
|
|
3948
|
-
declare const Placeholder: PlaceholderComponent;
|
|
4393
|
+
export declare const Placeholder: PlaceholderComponent;
|
|
3949
4394
|
//#endregion
|
|
3950
4395
|
//#region src/components/list/List.d.ts
|
|
3951
4396
|
interface ListItemDef {
|
|
@@ -4002,7 +4447,7 @@ type ListOwnProps<C extends ElementType> = {
|
|
|
4002
4447
|
/**
|
|
4003
4448
|
* Specify a layout type.
|
|
4004
4449
|
*/
|
|
4005
|
-
layout?: 'horizontal' | '
|
|
4450
|
+
layout?: 'horizontal' | 'sm:horizontal' | 'md:horizontal' | 'lg:horizontal' | 'xl:horizontal' | '2xl:horizontal';
|
|
4006
4451
|
/**
|
|
4007
4452
|
* Number list items sequentially using CSS counters. Pair with `component="ol"` for semantic correctness.
|
|
4008
4453
|
*/
|
|
@@ -4022,7 +4467,7 @@ type ListComponent = (<C extends ElementType = 'ul'>(props: ListProps<C> & {
|
|
|
4022
4467
|
}) => ReactElement | null) & {
|
|
4023
4468
|
displayName?: string;
|
|
4024
4469
|
};
|
|
4025
|
-
declare const List: ListComponent;
|
|
4470
|
+
export declare const List: ListComponent;
|
|
4026
4471
|
//#endregion
|
|
4027
4472
|
//#region src/components/list/ListItem.d.ts
|
|
4028
4473
|
type ListItemOwnProps<C extends ElementType> = {
|
|
@@ -4058,7 +4503,7 @@ type ListItemComponent = (<C extends ElementType = 'li'>(props: ListItemProps<C>
|
|
|
4058
4503
|
}) => ReactElement | null) & {
|
|
4059
4504
|
displayName?: string;
|
|
4060
4505
|
};
|
|
4061
|
-
declare const ListItem: ListItemComponent;
|
|
4506
|
+
export declare const ListItem: ListItemComponent;
|
|
4062
4507
|
//#endregion
|
|
4063
4508
|
//#region src/components/modal/Modal.d.ts
|
|
4064
4509
|
interface ModalProps extends Omit<DialogHTMLAttributes<HTMLDialogElement>, 'onCancel' | 'onClose'> {
|
|
@@ -4079,7 +4524,7 @@ interface ModalProps extends Omit<DialogHTMLAttributes<HTMLDialogElement>, 'onCa
|
|
|
4079
4524
|
* Set modal to cover the entire user viewport. A breakpoint value goes fullscreen only
|
|
4080
4525
|
* below that breakpoint.
|
|
4081
4526
|
*/
|
|
4082
|
-
fullscreen?: boolean | '
|
|
4527
|
+
fullscreen?: boolean | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
4083
4528
|
/**
|
|
4084
4529
|
* Disable the open/close transition entirely.
|
|
4085
4530
|
*/
|
|
@@ -4118,9 +4563,9 @@ interface ModalProps extends Omit<DialogHTMLAttributes<HTMLDialogElement>, 'onCa
|
|
|
4118
4563
|
*/
|
|
4119
4564
|
scrollable?: boolean;
|
|
4120
4565
|
/**
|
|
4121
|
-
* Size the component
|
|
4566
|
+
* Size the component sm, lg, or extra lg.
|
|
4122
4567
|
*/
|
|
4123
|
-
size?: '
|
|
4568
|
+
size?: 'sm' | 'lg' | 'xl';
|
|
4124
4569
|
/**
|
|
4125
4570
|
* Toggle the visibility of modal component.
|
|
4126
4571
|
*/
|
|
@@ -4138,7 +4583,7 @@ interface ModalContextProps {
|
|
|
4138
4583
|
*/
|
|
4139
4584
|
titleId?: string;
|
|
4140
4585
|
}
|
|
4141
|
-
declare const Modal: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<HTMLDialogElement>>;
|
|
4586
|
+
export declare const Modal: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<HTMLDialogElement>>;
|
|
4142
4587
|
//#endregion
|
|
4143
4588
|
//#region src/components/modal/ModalBody.d.ts
|
|
4144
4589
|
type ModalBodyOwnProps<C extends ElementType> = {
|
|
@@ -4157,7 +4602,7 @@ type ModalBodyComponent = (<C extends ElementType = 'div'>(props: ModalBodyProps
|
|
|
4157
4602
|
}) => ReactElement | null) & {
|
|
4158
4603
|
displayName?: string;
|
|
4159
4604
|
};
|
|
4160
|
-
declare const ModalBody: ModalBodyComponent;
|
|
4605
|
+
export declare const ModalBody: ModalBodyComponent;
|
|
4161
4606
|
//#endregion
|
|
4162
4607
|
//#region src/components/modal/ModalFooter.d.ts
|
|
4163
4608
|
type ModalFooterOwnProps<C extends ElementType> = {
|
|
@@ -4180,7 +4625,7 @@ type ModalFooterComponent = (<C extends ElementType = 'div'>(props: ModalFooterP
|
|
|
4180
4625
|
}) => ReactElement | null) & {
|
|
4181
4626
|
displayName?: string;
|
|
4182
4627
|
};
|
|
4183
|
-
declare const ModalFooter: ModalFooterComponent;
|
|
4628
|
+
export declare const ModalFooter: ModalFooterComponent;
|
|
4184
4629
|
//#endregion
|
|
4185
4630
|
//#region src/components/modal/ModalHeader.d.ts
|
|
4186
4631
|
type ModalHeaderOwnProps<C extends ElementType> = {
|
|
@@ -4208,7 +4653,7 @@ type ModalHeaderComponent = (<C extends ElementType = 'div'>(props: ModalHeaderP
|
|
|
4208
4653
|
}) => ReactElement | null) & {
|
|
4209
4654
|
displayName?: string;
|
|
4210
4655
|
};
|
|
4211
|
-
declare const ModalHeader: ModalHeaderComponent;
|
|
4656
|
+
export declare const ModalHeader: ModalHeaderComponent;
|
|
4212
4657
|
//#endregion
|
|
4213
4658
|
//#region src/components/modal/ModalTitle.d.ts
|
|
4214
4659
|
type ModalTitleOwnProps<C extends ElementType> = {
|
|
@@ -4227,7 +4672,7 @@ type ModalTitleComponent = (<C extends ElementType = 'h2'>(props: ModalTitleProp
|
|
|
4227
4672
|
}) => ReactElement | null) & {
|
|
4228
4673
|
displayName?: string;
|
|
4229
4674
|
};
|
|
4230
|
-
declare const ModalTitle: ModalTitleComponent;
|
|
4675
|
+
export declare const ModalTitle: ModalTitleComponent;
|
|
4231
4676
|
//#endregion
|
|
4232
4677
|
//#region src/components/nav/Nav.d.ts
|
|
4233
4678
|
interface NavItemDef {
|
|
@@ -4276,7 +4721,7 @@ type NavComponent = (<C extends ElementType = 'ul'>(props: NavProps<C> & {
|
|
|
4276
4721
|
}) => ReactElement | null) & {
|
|
4277
4722
|
displayName?: string;
|
|
4278
4723
|
};
|
|
4279
|
-
declare const Nav: NavComponent;
|
|
4724
|
+
export declare const Nav: NavComponent;
|
|
4280
4725
|
//#endregion
|
|
4281
4726
|
//#region src/components/nav/NavLink.d.ts
|
|
4282
4727
|
type NavLinkOwnProps = {
|
|
@@ -4299,7 +4744,7 @@ type NavLinkComponent = (<C extends ElementType = 'a'>(props: NavLinkProps<C> &
|
|
|
4299
4744
|
}) => ReactElement | null) & {
|
|
4300
4745
|
displayName?: string;
|
|
4301
4746
|
};
|
|
4302
|
-
declare const NavLink: NavLinkComponent;
|
|
4747
|
+
export declare const NavLink: NavLinkComponent;
|
|
4303
4748
|
//#endregion
|
|
4304
4749
|
//#region src/components/nav/NavItem.d.ts
|
|
4305
4750
|
type NavItemComponent = (<C extends ElementType = 'a'>(props: NavLinkProps<C> & {
|
|
@@ -4307,7 +4752,7 @@ type NavItemComponent = (<C extends ElementType = 'a'>(props: NavLinkProps<C> &
|
|
|
4307
4752
|
}) => ReactElement | null) & {
|
|
4308
4753
|
displayName?: string;
|
|
4309
4754
|
};
|
|
4310
|
-
declare const NavItem: NavItemComponent;
|
|
4755
|
+
export declare const NavItem: NavItemComponent;
|
|
4311
4756
|
//#endregion
|
|
4312
4757
|
//#region src/components/nav/NavTitle.d.ts
|
|
4313
4758
|
interface NavTitleProps extends HTMLAttributes<HTMLLIElement> {
|
|
@@ -4316,7 +4761,7 @@ interface NavTitleProps extends HTMLAttributes<HTMLLIElement> {
|
|
|
4316
4761
|
*/
|
|
4317
4762
|
className?: string;
|
|
4318
4763
|
}
|
|
4319
|
-
declare const NavTitle: React.ForwardRefExoticComponent<NavTitleProps & React.RefAttributes<HTMLLIElement>>;
|
|
4764
|
+
export declare const NavTitle: React.ForwardRefExoticComponent<NavTitleProps & React.RefAttributes<HTMLLIElement>>;
|
|
4320
4765
|
//#endregion
|
|
4321
4766
|
//#region src/components/navbar/Navbar.d.ts
|
|
4322
4767
|
type NavbarOwnProps<C extends ElementType> = {
|
|
@@ -4335,7 +4780,7 @@ type NavbarOwnProps<C extends ElementType> = {
|
|
|
4335
4780
|
/**
|
|
4336
4781
|
* Defines optional container wrapping children elements.
|
|
4337
4782
|
*/
|
|
4338
|
-
container?: boolean | '
|
|
4783
|
+
container?: boolean | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'fluid';
|
|
4339
4784
|
/**
|
|
4340
4785
|
* Opts this navbar into the framework's dark or light theming, independent of the page's own
|
|
4341
4786
|
* theme.
|
|
@@ -4366,7 +4811,7 @@ type NavbarComponent = (<C extends ElementType = 'nav'>(props: NavbarProps<C> &
|
|
|
4366
4811
|
}) => ReactElement | null) & {
|
|
4367
4812
|
displayName?: string;
|
|
4368
4813
|
};
|
|
4369
|
-
declare const Navbar: NavbarComponent;
|
|
4814
|
+
export declare const Navbar: NavbarComponent;
|
|
4370
4815
|
//#endregion
|
|
4371
4816
|
//#region src/components/navbar/NavbarBrand.d.ts
|
|
4372
4817
|
type NavbarBrandOwnProps<C extends ElementType> = {
|
|
@@ -4387,11 +4832,11 @@ type NavbarBrandOwnProps<C extends ElementType> = {
|
|
|
4387
4832
|
};
|
|
4388
4833
|
type NavbarBrandProps<C extends ElementType = 'span'> = PolymorphicComponentProps<C, NavbarBrandOwnProps<C>>;
|
|
4389
4834
|
type NavbarBrandComponent = (<C extends ElementType = 'span'>(props: NavbarBrandProps<C> & {
|
|
4390
|
-
ref?:
|
|
4835
|
+
ref?: PolymorphicRefWithFallback<C, HTMLSpanElement | HTMLAnchorElement>;
|
|
4391
4836
|
}) => ReactElement | null) & {
|
|
4392
4837
|
displayName?: string;
|
|
4393
4838
|
};
|
|
4394
|
-
declare const NavbarBrand: NavbarBrandComponent;
|
|
4839
|
+
export declare const NavbarBrand: NavbarBrandComponent;
|
|
4395
4840
|
//#endregion
|
|
4396
4841
|
//#region src/components/navbar/NavbarNav.d.ts
|
|
4397
4842
|
type NavbarNavOwnProps<C extends ElementType> = {
|
|
@@ -4410,7 +4855,7 @@ type NavbarNavComponent = (<C extends ElementType = 'ul'>(props: NavbarNavProps<
|
|
|
4410
4855
|
}) => ReactElement | null) & {
|
|
4411
4856
|
displayName?: string;
|
|
4412
4857
|
};
|
|
4413
|
-
declare const NavbarNav: NavbarNavComponent;
|
|
4858
|
+
export declare const NavbarNav: NavbarNavComponent;
|
|
4414
4859
|
//#endregion
|
|
4415
4860
|
//#region src/components/navbar/NavbarText.d.ts
|
|
4416
4861
|
type NavbarTextOwnProps<C extends ElementType> = {
|
|
@@ -4429,7 +4874,7 @@ type NavbarTextComponent = (<C extends ElementType = 'span'>(props: NavbarTextPr
|
|
|
4429
4874
|
}) => ReactElement | null) & {
|
|
4430
4875
|
displayName?: string;
|
|
4431
4876
|
};
|
|
4432
|
-
declare const NavbarText: NavbarTextComponent;
|
|
4877
|
+
export declare const NavbarText: NavbarTextComponent;
|
|
4433
4878
|
//#endregion
|
|
4434
4879
|
//#region src/components/navbar/NavbarToggler.d.ts
|
|
4435
4880
|
interface NavbarTogglerProps extends HTMLAttributes<HTMLButtonElement> {
|
|
@@ -4442,7 +4887,7 @@ interface NavbarTogglerProps extends HTMLAttributes<HTMLButtonElement> {
|
|
|
4442
4887
|
*/
|
|
4443
4888
|
label?: string;
|
|
4444
4889
|
}
|
|
4445
|
-
declare const NavbarToggler: React.ForwardRefExoticComponent<NavbarTogglerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
4890
|
+
export declare const NavbarToggler: React.ForwardRefExoticComponent<NavbarTogglerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
4446
4891
|
//#endregion
|
|
4447
4892
|
//#region src/components/pagination/Pagination.d.ts
|
|
4448
4893
|
interface PaginationProps extends HTMLAttributes<HTMLElement> {
|
|
@@ -4507,11 +4952,11 @@ interface PaginationProps extends HTMLAttributes<HTMLElement> {
|
|
|
4507
4952
|
*/
|
|
4508
4953
|
showPrevNext?: boolean;
|
|
4509
4954
|
/**
|
|
4510
|
-
* Size the component
|
|
4955
|
+
* Size the component sm or lg.
|
|
4511
4956
|
*/
|
|
4512
|
-
size?: '
|
|
4957
|
+
size?: 'sm' | 'lg';
|
|
4513
4958
|
}
|
|
4514
|
-
declare const Pagination: React.ForwardRefExoticComponent<PaginationProps & React.RefAttributes<HTMLElement>>;
|
|
4959
|
+
export declare const Pagination: React.ForwardRefExoticComponent<PaginationProps & React.RefAttributes<HTMLElement>>;
|
|
4515
4960
|
//#endregion
|
|
4516
4961
|
//#region src/components/pagination/PaginationItem.d.ts
|
|
4517
4962
|
type PaginationItemOwnProps<C extends ElementType> = {
|
|
@@ -4534,11 +4979,11 @@ type PaginationItemOwnProps<C extends ElementType> = {
|
|
|
4534
4979
|
};
|
|
4535
4980
|
type PaginationItemProps<C extends ElementType = 'button'> = PolymorphicComponentProps<C, PaginationItemOwnProps<C>>;
|
|
4536
4981
|
type PaginationItemComponent = (<C extends ElementType = 'button'>(props: PaginationItemProps<C> & {
|
|
4537
|
-
ref?:
|
|
4982
|
+
ref?: PolymorphicRefWithFallback<C, HTMLButtonElement | HTMLAnchorElement | HTMLSpanElement>;
|
|
4538
4983
|
}) => ReactElement | null) & {
|
|
4539
4984
|
displayName?: string;
|
|
4540
4985
|
};
|
|
4541
|
-
declare const PaginationItem: PaginationItemComponent;
|
|
4986
|
+
export declare const PaginationItem: PaginationItemComponent;
|
|
4542
4987
|
//#endregion
|
|
4543
4988
|
//#region src/components/popover/Popover.d.ts
|
|
4544
4989
|
interface PopoverProps extends Pick<HTMLAttributes<HTMLDivElement>, 'aria-label' | 'aria-labelledby'> {
|
|
@@ -4573,7 +5018,7 @@ interface PopoverProps extends Pick<HTMLAttributes<HTMLDivElement>, 'aria-label'
|
|
|
4573
5018
|
*/
|
|
4574
5019
|
visible?: boolean;
|
|
4575
5020
|
}
|
|
4576
|
-
declare const Popover: FC<PopoverProps>;
|
|
5021
|
+
export declare const Popover: FC<PopoverProps>;
|
|
4577
5022
|
//#endregion
|
|
4578
5023
|
//#region src/components/progress/Progress.d.ts
|
|
4579
5024
|
type ProgressOwnProps<C extends ElementType> = {
|
|
@@ -4629,7 +5074,7 @@ type ProgressComponent = (<C extends ElementType = 'div'>(props: ProgressProps<C
|
|
|
4629
5074
|
}) => ReactElement | null) & {
|
|
4630
5075
|
displayName?: string;
|
|
4631
5076
|
};
|
|
4632
|
-
declare const Progress: ProgressComponent;
|
|
5077
|
+
export declare const Progress: ProgressComponent;
|
|
4633
5078
|
//#endregion
|
|
4634
5079
|
//#region src/components/progress/ProgressBar.d.ts
|
|
4635
5080
|
type ProgressBarOwnProps<C extends ElementType> = {
|
|
@@ -4664,7 +5109,7 @@ type ProgressBarComponent = (<C extends ElementType = 'div'>(props: ProgressBarP
|
|
|
4664
5109
|
}) => ReactElement | null) & {
|
|
4665
5110
|
displayName?: string;
|
|
4666
5111
|
};
|
|
4667
|
-
declare const ProgressBar: ProgressBarComponent;
|
|
5112
|
+
export declare const ProgressBar: ProgressBarComponent;
|
|
4668
5113
|
//#endregion
|
|
4669
5114
|
//#region src/components/drawer/Drawer.d.ts
|
|
4670
5115
|
interface DrawerProps extends Omit<DialogHTMLAttributes<HTMLDialogElement>, 'onCancel' | 'onClose'> {
|
|
@@ -4723,7 +5168,7 @@ interface DrawerProps extends Omit<DialogHTMLAttributes<HTMLDialogElement>, 'onC
|
|
|
4723
5168
|
/**
|
|
4724
5169
|
* Renders as a drawer only below this breakpoint — inline as a flex container above it.
|
|
4725
5170
|
*/
|
|
4726
|
-
responsive?: '
|
|
5171
|
+
responsive?: 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
4727
5172
|
/**
|
|
4728
5173
|
* Allow the page behind the drawer to scroll while it's open.
|
|
4729
5174
|
*/
|
|
@@ -4754,7 +5199,7 @@ interface DrawerContextProps {
|
|
|
4754
5199
|
*/
|
|
4755
5200
|
titleId?: string;
|
|
4756
5201
|
}
|
|
4757
|
-
declare const Drawer: React.ForwardRefExoticComponent<DrawerProps & React.RefAttributes<HTMLDialogElement>>;
|
|
5202
|
+
export declare const Drawer: React.ForwardRefExoticComponent<DrawerProps & React.RefAttributes<HTMLDialogElement>>;
|
|
4758
5203
|
//#endregion
|
|
4759
5204
|
//#region src/components/drawer/DrawerBody.d.ts
|
|
4760
5205
|
type DrawerBodyOwnProps<C extends ElementType> = {
|
|
@@ -4773,7 +5218,7 @@ type DrawerBodyComponent = (<C extends ElementType = 'div'>(props: DrawerBodyPro
|
|
|
4773
5218
|
}) => ReactElement | null) & {
|
|
4774
5219
|
displayName?: string;
|
|
4775
5220
|
};
|
|
4776
|
-
declare const DrawerBody: DrawerBodyComponent;
|
|
5221
|
+
export declare const DrawerBody: DrawerBodyComponent;
|
|
4777
5222
|
//#endregion
|
|
4778
5223
|
//#region src/components/drawer/DrawerFooter.d.ts
|
|
4779
5224
|
type DrawerFooterOwnProps<C extends ElementType> = {
|
|
@@ -4796,7 +5241,7 @@ type DrawerFooterComponent = (<C extends ElementType = 'div'>(props: DrawerFoote
|
|
|
4796
5241
|
}) => ReactElement | null) & {
|
|
4797
5242
|
displayName?: string;
|
|
4798
5243
|
};
|
|
4799
|
-
declare const DrawerFooter: DrawerFooterComponent;
|
|
5244
|
+
export declare const DrawerFooter: DrawerFooterComponent;
|
|
4800
5245
|
//#endregion
|
|
4801
5246
|
//#region src/components/drawer/DrawerHeader.d.ts
|
|
4802
5247
|
type DrawerHeaderOwnProps<C extends ElementType> = {
|
|
@@ -4824,7 +5269,7 @@ type DrawerHeaderComponent = (<C extends ElementType = 'div'>(props: DrawerHeade
|
|
|
4824
5269
|
}) => ReactElement | null) & {
|
|
4825
5270
|
displayName?: string;
|
|
4826
5271
|
};
|
|
4827
|
-
declare const DrawerHeader: DrawerHeaderComponent;
|
|
5272
|
+
export declare const DrawerHeader: DrawerHeaderComponent;
|
|
4828
5273
|
//#endregion
|
|
4829
5274
|
//#region src/components/drawer/DrawerTitle.d.ts
|
|
4830
5275
|
type DrawerTitleOwnProps<C extends ElementType> = {
|
|
@@ -4843,7 +5288,7 @@ type DrawerTitleComponent = (<C extends ElementType = 'h2'>(props: DrawerTitlePr
|
|
|
4843
5288
|
}) => ReactElement | null) & {
|
|
4844
5289
|
displayName?: string;
|
|
4845
5290
|
};
|
|
4846
|
-
declare const DrawerTitle: DrawerTitleComponent;
|
|
5291
|
+
export declare const DrawerTitle: DrawerTitleComponent;
|
|
4847
5292
|
//#endregion
|
|
4848
5293
|
//#region src/components/skeleton/Skeleton.d.ts
|
|
4849
5294
|
type SkeletonOwnProps<C extends ElementType> = {
|
|
@@ -4881,7 +5326,7 @@ type SkeletonOwnProps<C extends ElementType> = {
|
|
|
4881
5326
|
/**
|
|
4882
5327
|
* Overrides `span` at a breakpoint and up.
|
|
4883
5328
|
*
|
|
4884
|
-
* @type { Partial<Record<'
|
|
5329
|
+
* @type { Partial<Record<'sm' | 'md' | 'lg' | 'xl' | '2xl', 'auto' | number | string | boolean>> }
|
|
4885
5330
|
*/
|
|
4886
5331
|
responsive?: Partial<Record<Breakpoint, Span>>;
|
|
4887
5332
|
};
|
|
@@ -4891,7 +5336,7 @@ type SkeletonComponent = (<C extends ElementType = 'span'>(props: SkeletonProps<
|
|
|
4891
5336
|
}) => ReactElement | null) & {
|
|
4892
5337
|
displayName?: string;
|
|
4893
5338
|
};
|
|
4894
|
-
declare const Skeleton: SkeletonComponent;
|
|
5339
|
+
export declare const Skeleton: SkeletonComponent;
|
|
4895
5340
|
//#endregion
|
|
4896
5341
|
//#region src/components/skeleton/SkeletonLoader.d.ts
|
|
4897
5342
|
type SkeletonLoaderOwnProps<C extends ElementType> = {
|
|
@@ -4930,7 +5375,7 @@ type SkeletonLoaderProps<C extends ElementType = 'span'> = PolymorphicComponentP
|
|
|
4930
5375
|
type SkeletonLoaderComponent = (<C extends ElementType = 'span'>(props: SkeletonLoaderProps<C>) => ReactElement | null) & {
|
|
4931
5376
|
displayName?: string;
|
|
4932
5377
|
};
|
|
4933
|
-
declare const SkeletonLoader: SkeletonLoaderComponent;
|
|
5378
|
+
export declare const SkeletonLoader: SkeletonLoaderComponent;
|
|
4934
5379
|
//#endregion
|
|
4935
5380
|
//#region src/components/spinner/Spinner.d.ts
|
|
4936
5381
|
type SpinnerOwnProps<C extends ElementType> = {
|
|
@@ -4947,9 +5392,9 @@ type SpinnerOwnProps<C extends ElementType> = {
|
|
|
4947
5392
|
*/
|
|
4948
5393
|
component?: C;
|
|
4949
5394
|
/**
|
|
4950
|
-
* Size the component
|
|
5395
|
+
* Size the component sm.
|
|
4951
5396
|
*/
|
|
4952
|
-
size?: '
|
|
5397
|
+
size?: 'sm';
|
|
4953
5398
|
/**
|
|
4954
5399
|
* Set the button variant to an outlined button or a ghost button.
|
|
4955
5400
|
*/
|
|
@@ -4965,7 +5410,7 @@ type SpinnerComponent = (<C extends ElementType = 'div'>(props: SpinnerProps<C>
|
|
|
4965
5410
|
}) => ReactElement | null) & {
|
|
4966
5411
|
displayName?: string;
|
|
4967
5412
|
};
|
|
4968
|
-
declare const Spinner: SpinnerComponent;
|
|
5413
|
+
export declare const Spinner: SpinnerComponent;
|
|
4969
5414
|
//#endregion
|
|
4970
5415
|
//#region src/components/stepper/Stepper.d.ts
|
|
4971
5416
|
interface StepperItemDef {
|
|
@@ -5015,7 +5460,7 @@ type StepperOwnProps<C extends ElementType> = {
|
|
|
5015
5460
|
* Lays out steps side-by-side instead of stacking them vertically, either unconditionally or
|
|
5016
5461
|
* from a given breakpoint up.
|
|
5017
5462
|
*/
|
|
5018
|
-
layout?: 'horizontal' | '
|
|
5463
|
+
layout?: 'horizontal' | 'sm:horizontal' | 'md:horizontal' | 'lg:horizontal' | 'xl:horizontal' | '2xl:horizontal';
|
|
5019
5464
|
/**
|
|
5020
5465
|
* Wraps the stepper in a horizontally scrollable container so steps keep their natural width
|
|
5021
5466
|
* instead of shrinking to fit.
|
|
@@ -5028,7 +5473,7 @@ type StepperComponent = (<C extends ElementType = 'ol'>(props: StepperProps<C> &
|
|
|
5028
5473
|
}) => ReactElement | null) & {
|
|
5029
5474
|
displayName?: string;
|
|
5030
5475
|
};
|
|
5031
|
-
declare const Stepper: StepperComponent;
|
|
5476
|
+
export declare const Stepper: StepperComponent;
|
|
5032
5477
|
//#endregion
|
|
5033
5478
|
//#region src/components/stepper/StepperItem.d.ts
|
|
5034
5479
|
type StepperItemOwnProps<C extends ElementType> = {
|
|
@@ -5059,7 +5504,7 @@ type StepperItemComponent = (<C extends ElementType = 'li'>(props: StepperItemPr
|
|
|
5059
5504
|
}) => ReactElement | null) & {
|
|
5060
5505
|
displayName?: string;
|
|
5061
5506
|
};
|
|
5062
|
-
declare const StepperItem: StepperItemComponent;
|
|
5507
|
+
export declare const StepperItem: StepperItemComponent;
|
|
5063
5508
|
//#endregion
|
|
5064
5509
|
//#region src/components/table/Table.d.ts
|
|
5065
5510
|
interface TableProps<T extends object> {
|
|
@@ -5091,9 +5536,9 @@ interface TableProps<T extends object> {
|
|
|
5091
5536
|
* A `TableHeader` and a `TableBody`, each built from `TableColumn`/`TableRow`/
|
|
5092
5537
|
* `TableCell` — read as data to build the table's collection. Not rendered directly.
|
|
5093
5538
|
*/
|
|
5094
|
-
children: [ReactElement<TableHeaderProps<T> & {
|
|
5539
|
+
children: [ReactElement<TableHeaderProps$1<T> & {
|
|
5095
5540
|
className?: string;
|
|
5096
|
-
}>, ReactElement<TableBodyProps<T> & {
|
|
5541
|
+
}>, ReactElement<TableBodyProps$1<T> & {
|
|
5097
5542
|
className?: string;
|
|
5098
5543
|
}>];
|
|
5099
5544
|
/**
|
|
@@ -5132,7 +5577,7 @@ interface TableProps<T extends object> {
|
|
|
5132
5577
|
/**
|
|
5133
5578
|
* Make any table responsive across all viewports or pick a maximum breakpoint.
|
|
5134
5579
|
*/
|
|
5135
|
-
responsive?: boolean | '
|
|
5580
|
+
responsive?: boolean | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
5136
5581
|
/**
|
|
5137
5582
|
* The currently selected row keys (controlled).
|
|
5138
5583
|
*/
|
|
@@ -5144,7 +5589,7 @@ interface TableProps<T extends object> {
|
|
|
5144
5589
|
/**
|
|
5145
5590
|
* Make table more compact by cutting all cell padding.
|
|
5146
5591
|
*/
|
|
5147
|
-
|
|
5592
|
+
sm?: boolean;
|
|
5148
5593
|
/**
|
|
5149
5594
|
* The current sort column and direction.
|
|
5150
5595
|
*/
|
|
@@ -5156,18 +5601,18 @@ interface TableProps<T extends object> {
|
|
|
5156
5601
|
* separately, since stacking needs the same `.table-responsive` container-query ancestor.
|
|
5157
5602
|
* Labels come from each `TableColumn`'s text (or its `textValue`, for non-text headers).
|
|
5158
5603
|
*/
|
|
5159
|
-
stacked?: boolean | '
|
|
5604
|
+
stacked?: boolean | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
5160
5605
|
/**
|
|
5161
5606
|
* Add zebra-striping to table rows.
|
|
5162
5607
|
*/
|
|
5163
5608
|
striped?: boolean;
|
|
5164
5609
|
}
|
|
5165
|
-
declare const Table: <T extends object>(props: TableProps<T> & {
|
|
5610
|
+
export declare const Table: <T extends object>(props: TableProps<T> & {
|
|
5166
5611
|
ref?: Ref<HTMLTableElement>;
|
|
5167
5612
|
}) => ReactElement;
|
|
5168
5613
|
//#endregion
|
|
5169
5614
|
//#region src/components/table/TableBody.d.ts
|
|
5170
|
-
interface TableBodyProps
|
|
5615
|
+
interface TableBodyProps<T> {
|
|
5171
5616
|
/**
|
|
5172
5617
|
* `TableRow` elements, or a render function paired with `items` for dynamic row generation.
|
|
5173
5618
|
*/
|
|
@@ -5185,7 +5630,7 @@ interface TableBodyProps$1<T> {
|
|
|
5185
5630
|
* Collection node, data-only — read by `Table` to build the table's row collection. Never
|
|
5186
5631
|
* rendered directly.
|
|
5187
5632
|
*/
|
|
5188
|
-
declare const TableBody: <T>(props: TableBodyProps
|
|
5633
|
+
export declare const TableBody: <T>(props: TableBodyProps<T>) => ReactElement;
|
|
5189
5634
|
//#endregion
|
|
5190
5635
|
//#region src/components/table/TableCell.d.ts
|
|
5191
5636
|
interface TableCellProps {
|
|
@@ -5210,7 +5655,7 @@ interface TableCellProps {
|
|
|
5210
5655
|
* Collection node, data-only — see `TableHeader`. Read by `Table` to build a cell in the
|
|
5211
5656
|
* table's collection; never rendered directly.
|
|
5212
5657
|
*/
|
|
5213
|
-
declare const TableCell: (props: TableCellProps) => ReactElement;
|
|
5658
|
+
export declare const TableCell: (props: TableCellProps) => ReactElement;
|
|
5214
5659
|
//#endregion
|
|
5215
5660
|
//#region src/components/table/TableColumn.d.ts
|
|
5216
5661
|
interface TableColumnProps {
|
|
@@ -5239,10 +5684,10 @@ interface TableColumnProps {
|
|
|
5239
5684
|
* Collection node, data-only — see `TableHeader`. Read by `Table` to build a column in the
|
|
5240
5685
|
* table's collection; never rendered directly.
|
|
5241
5686
|
*/
|
|
5242
|
-
declare const TableColumn: (props: TableColumnProps) => ReactElement;
|
|
5687
|
+
export declare const TableColumn: (props: TableColumnProps) => ReactElement;
|
|
5243
5688
|
//#endregion
|
|
5244
5689
|
//#region src/components/table/TableHeader.d.ts
|
|
5245
|
-
interface TableHeaderProps
|
|
5690
|
+
interface TableHeaderProps<T> {
|
|
5246
5691
|
/**
|
|
5247
5692
|
* `TableColumn` elements, or a render function paired with `columns` for dynamic column
|
|
5248
5693
|
* generation.
|
|
@@ -5261,7 +5706,7 @@ interface TableHeaderProps$1<T> {
|
|
|
5261
5706
|
* Collection node, data-only — read by `Table` to build the table's column collection. Never
|
|
5262
5707
|
* rendered directly.
|
|
5263
5708
|
*/
|
|
5264
|
-
declare const TableHeader: <T>(props: TableHeaderProps
|
|
5709
|
+
export declare const TableHeader: <T>(props: TableHeaderProps<T>) => ReactElement;
|
|
5265
5710
|
//#endregion
|
|
5266
5711
|
//#region src/components/table/TableRow.d.ts
|
|
5267
5712
|
interface TableRowProps {
|
|
@@ -5283,7 +5728,7 @@ interface TableRowProps {
|
|
|
5283
5728
|
* Collection node, data-only — see `TableHeader`. Read by `Table` to build a row in the
|
|
5284
5729
|
* table's collection; never rendered directly.
|
|
5285
5730
|
*/
|
|
5286
|
-
declare const TableRow: (props: TableRowProps) => ReactElement;
|
|
5731
|
+
export declare const TableRow: (props: TableRowProps) => ReactElement;
|
|
5287
5732
|
//#endregion
|
|
5288
5733
|
//#region src/components/tabs/Tabs.d.ts
|
|
5289
5734
|
type TabsOwnProps<C extends ElementType> = {
|
|
@@ -5331,7 +5776,7 @@ type TabsComponent = (<C extends ElementType = 'div'>(props: TabsProps<C> & {
|
|
|
5331
5776
|
}) => ReactElement | null) & {
|
|
5332
5777
|
displayName?: string;
|
|
5333
5778
|
};
|
|
5334
|
-
declare const Tabs: TabsComponent;
|
|
5779
|
+
export declare const Tabs: TabsComponent;
|
|
5335
5780
|
//#endregion
|
|
5336
5781
|
//#region src/components/tabs/Tab.d.ts
|
|
5337
5782
|
interface TabProps {
|
|
@@ -5349,7 +5794,7 @@ interface TabProps {
|
|
|
5349
5794
|
*/
|
|
5350
5795
|
id: Key$2;
|
|
5351
5796
|
}
|
|
5352
|
-
declare const Tab: {
|
|
5797
|
+
export declare const Tab: {
|
|
5353
5798
|
(_props: TabProps): null;
|
|
5354
5799
|
displayName: string;
|
|
5355
5800
|
};
|
|
@@ -5370,7 +5815,7 @@ interface TabListProps extends AriaAttributes {
|
|
|
5370
5815
|
*/
|
|
5371
5816
|
variant?: 'tabs' | 'pills';
|
|
5372
5817
|
}
|
|
5373
|
-
declare const TabList: React.ForwardRefExoticComponent<TabListProps & React.RefAttributes<HTMLUListElement>>;
|
|
5818
|
+
export declare const TabList: React.ForwardRefExoticComponent<TabListProps & React.RefAttributes<HTMLUListElement>>;
|
|
5374
5819
|
//#endregion
|
|
5375
5820
|
//#region src/components/tabs/TabPanel.d.ts
|
|
5376
5821
|
interface TabPanelProps extends Omit<HTMLAttributes<HTMLDivElement>, 'id'> {
|
|
@@ -5387,7 +5832,7 @@ interface TabPanelProps extends Omit<HTMLAttributes<HTMLDivElement>, 'id'> {
|
|
|
5387
5832
|
*/
|
|
5388
5833
|
id: Key$2;
|
|
5389
5834
|
}
|
|
5390
|
-
declare const TabPanel: React.ForwardRefExoticComponent<TabPanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
5835
|
+
export declare const TabPanel: React.ForwardRefExoticComponent<TabPanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
5391
5836
|
//#endregion
|
|
5392
5837
|
//#region src/components/toast/Toast.d.ts
|
|
5393
5838
|
interface ToastProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
@@ -5479,7 +5924,7 @@ interface ToastProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
|
5479
5924
|
*/
|
|
5480
5925
|
visible?: boolean;
|
|
5481
5926
|
}
|
|
5482
|
-
declare const Toast: React.ForwardRefExoticComponent<ToastProps & React.RefAttributes<HTMLDivElement>>;
|
|
5927
|
+
export declare const Toast: React.ForwardRefExoticComponent<ToastProps & React.RefAttributes<HTMLDivElement>>;
|
|
5483
5928
|
//#endregion
|
|
5484
5929
|
//#region src/components/toast/ToastBody.d.ts
|
|
5485
5930
|
type ToastBodyOwnProps<C extends ElementType> = {
|
|
@@ -5508,7 +5953,7 @@ type ToastBodyComponent = (<C extends ElementType = 'div'>(props: ToastBodyProps
|
|
|
5508
5953
|
}) => ReactElement | null) & {
|
|
5509
5954
|
displayName?: string;
|
|
5510
5955
|
};
|
|
5511
|
-
declare const ToastBody: ToastBodyComponent;
|
|
5956
|
+
export declare const ToastBody: ToastBodyComponent;
|
|
5512
5957
|
//#endregion
|
|
5513
5958
|
//#region src/components/toast/ToastFooter.d.ts
|
|
5514
5959
|
type ToastFooterOwnProps<C extends ElementType> = {
|
|
@@ -5527,7 +5972,7 @@ type ToastFooterComponent = (<C extends ElementType = 'div'>(props: ToastFooterP
|
|
|
5527
5972
|
}) => ReactElement | null) & {
|
|
5528
5973
|
displayName?: string;
|
|
5529
5974
|
};
|
|
5530
|
-
declare const ToastFooter: ToastFooterComponent;
|
|
5975
|
+
export declare const ToastFooter: ToastFooterComponent;
|
|
5531
5976
|
//#endregion
|
|
5532
5977
|
//#region src/components/toast/ToastHeader.d.ts
|
|
5533
5978
|
type ToastHeaderOwnProps<C extends ElementType> = {
|
|
@@ -5576,7 +6021,7 @@ type ToastHeaderComponent = (<C extends ElementType = 'div'>(props: ToastHeaderP
|
|
|
5576
6021
|
}) => ReactElement | null) & {
|
|
5577
6022
|
displayName?: string;
|
|
5578
6023
|
};
|
|
5579
|
-
declare const ToastHeader: ToastHeaderComponent;
|
|
6024
|
+
export declare const ToastHeader: ToastHeaderComponent;
|
|
5580
6025
|
//#endregion
|
|
5581
6026
|
//#region src/components/toast/ToastIcon.d.ts
|
|
5582
6027
|
type ToastIconProps = IconProps & {
|
|
@@ -5585,7 +6030,7 @@ type ToastIconProps = IconProps & {
|
|
|
5585
6030
|
*/
|
|
5586
6031
|
className?: string;
|
|
5587
6032
|
};
|
|
5588
|
-
declare const ToastIcon: React.ForwardRefExoticComponent<ToastIconProps & React.RefAttributes<HTMLSpanElement | SVGSVGElement>>;
|
|
6033
|
+
export declare const ToastIcon: React.ForwardRefExoticComponent<ToastIconProps & React.RefAttributes<HTMLSpanElement | SVGSVGElement>>;
|
|
5589
6034
|
//#endregion
|
|
5590
6035
|
//#region src/components/toast/Toaster.d.ts
|
|
5591
6036
|
interface ToasterProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -5606,7 +6051,7 @@ interface ToasterProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
5606
6051
|
*/
|
|
5607
6052
|
placement?: 'top-start' | 'top-center' | 'top-end' | 'middle-start' | 'middle-center' | 'middle-end' | 'bottom-start' | 'bottom-center' | 'bottom-end' | string;
|
|
5608
6053
|
}
|
|
5609
|
-
declare const Toaster: React.ForwardRefExoticComponent<ToasterProps & React.RefAttributes<HTMLDivElement>>;
|
|
6054
|
+
export declare const Toaster: React.ForwardRefExoticComponent<ToasterProps & React.RefAttributes<HTMLDivElement>>;
|
|
5610
6055
|
//#endregion
|
|
5611
6056
|
//#region src/components/toast/toastQueue.d.ts
|
|
5612
6057
|
interface ToastContent {
|
|
@@ -5640,9 +6085,9 @@ interface ToastContent {
|
|
|
5640
6085
|
*/
|
|
5641
6086
|
translucent?: boolean;
|
|
5642
6087
|
}
|
|
5643
|
-
declare const toastQueue: ToastQueue<ToastContent>;
|
|
5644
|
-
declare function addToast(children: ReactNode, options?: Omit<ToastContent, 'children'>): string;
|
|
5645
|
-
declare function closeToast(key: string): void;
|
|
6088
|
+
export declare const toastQueue: ToastQueue<ToastContent>;
|
|
6089
|
+
export declare function addToast(children: ReactNode, options?: Omit<ToastContent, 'children'>): string;
|
|
6090
|
+
export declare function closeToast(key: string): void;
|
|
5646
6091
|
//#endregion
|
|
5647
6092
|
//#region src/components/tooltip/Tooltip.d.ts
|
|
5648
6093
|
interface TooltipProps {
|
|
@@ -5678,15 +6123,15 @@ interface TooltipProps {
|
|
|
5678
6123
|
*/
|
|
5679
6124
|
visible?: boolean;
|
|
5680
6125
|
}
|
|
5681
|
-
declare const Tooltip: FC<TooltipProps>;
|
|
6126
|
+
export declare const Tooltip: FC<TooltipProps>;
|
|
5682
6127
|
//#endregion
|
|
5683
6128
|
//#region src/hooks/useDrawer.d.ts
|
|
5684
6129
|
type UseDrawerResult = DrawerContextProps;
|
|
5685
|
-
declare const useDrawer: () => UseDrawerResult;
|
|
6130
|
+
export declare const useDrawer: () => UseDrawerResult;
|
|
5686
6131
|
//#endregion
|
|
5687
6132
|
//#region src/hooks/useModal.d.ts
|
|
5688
6133
|
type UseModalResult = ModalContextProps;
|
|
5689
|
-
declare const useModal: () => UseModalResult;
|
|
6134
|
+
export declare const useModal: () => UseModalResult;
|
|
5690
6135
|
//#endregion
|
|
5691
6136
|
//#region src/components/notification/context.d.ts
|
|
5692
6137
|
interface NotificationContextProps {
|
|
@@ -5702,7 +6147,7 @@ interface NotificationContextProps {
|
|
|
5702
6147
|
//#endregion
|
|
5703
6148
|
//#region src/hooks/useNotification.d.ts
|
|
5704
6149
|
type UseNotificationResult = NotificationContextProps;
|
|
5705
|
-
declare const useNotification: () => UseNotificationResult;
|
|
6150
|
+
export declare const useNotification: () => UseNotificationResult;
|
|
5706
6151
|
//#endregion
|
|
5707
6152
|
//#region src/hooks/usePagination.d.ts
|
|
5708
6153
|
interface UsePaginationOptions {
|
|
@@ -5724,12 +6169,12 @@ interface UsePaginationOptions {
|
|
|
5724
6169
|
onNext: () => void;
|
|
5725
6170
|
}
|
|
5726
6171
|
interface UsePaginationResult<T extends HTMLElement = HTMLButtonElement> {
|
|
5727
|
-
prevRef: RefObject<T>;
|
|
5728
|
-
nextRef: RefObject<T>;
|
|
6172
|
+
prevRef: RefObject<T | null>;
|
|
6173
|
+
nextRef: RefObject<T | null>;
|
|
5729
6174
|
handlePrevClick: (event: MouseEvent<T>) => void;
|
|
5730
6175
|
handleNextClick: (event: MouseEvent<T>) => void;
|
|
5731
6176
|
}
|
|
5732
|
-
declare function usePagination<T extends HTMLElement = HTMLButtonElement>({ prevDisabled, nextDisabled, onPrev, onNext }: UsePaginationOptions): UsePaginationResult<T>;
|
|
6177
|
+
export declare function usePagination<T extends HTMLElement = HTMLButtonElement>({ prevDisabled, nextDisabled, onPrev, onNext }: UsePaginationOptions): UsePaginationResult<T>;
|
|
5733
6178
|
//#endregion
|
|
5734
6179
|
//#region src/components/toast/context.d.ts
|
|
5735
6180
|
interface ToastContextProps {
|
|
@@ -5745,7 +6190,7 @@ interface ToastContextProps {
|
|
|
5745
6190
|
//#endregion
|
|
5746
6191
|
//#region src/hooks/useToast.d.ts
|
|
5747
6192
|
type UseToastResult = ToastContextProps;
|
|
5748
|
-
declare const useToast: () => UseToastResult;
|
|
6193
|
+
export declare const useToast: () => UseToastResult;
|
|
5749
6194
|
//#endregion
|
|
5750
6195
|
//#region src/components/chip/Chip.d.ts
|
|
5751
6196
|
type ChipOwnProps<C extends ElementType> = {
|
|
@@ -5783,9 +6228,9 @@ type ChipOwnProps<C extends ElementType> = {
|
|
|
5783
6228
|
*/
|
|
5784
6229
|
pressed?: boolean;
|
|
5785
6230
|
/**
|
|
5786
|
-
* Size the component
|
|
6231
|
+
* Size the component sm or lg.
|
|
5787
6232
|
*/
|
|
5788
|
-
size?: '
|
|
6233
|
+
size?: 'sm' | 'lg';
|
|
5789
6234
|
/**
|
|
5790
6235
|
* Specifies the type of button. Only applies when `component` is `button`. Different browsers
|
|
5791
6236
|
* may use different default types for the `<button>` element, so always specify it explicitly.
|
|
@@ -5798,11 +6243,11 @@ type ChipOwnProps<C extends ElementType> = {
|
|
|
5798
6243
|
};
|
|
5799
6244
|
type ChipProps<C extends ElementType = 'span'> = PolymorphicComponentProps<C, ChipOwnProps<C>>;
|
|
5800
6245
|
type ChipComponent = (<C extends ElementType = 'span'>(props: ChipProps<C> & {
|
|
5801
|
-
ref?:
|
|
6246
|
+
ref?: PolymorphicRefWithFallback<C, HTMLSpanElement | HTMLAnchorElement>;
|
|
5802
6247
|
}) => ReactElement | null) & {
|
|
5803
6248
|
displayName?: string;
|
|
5804
6249
|
};
|
|
5805
|
-
declare const Chip: ChipComponent;
|
|
6250
|
+
export declare const Chip: ChipComponent;
|
|
5806
6251
|
//#endregion
|
|
5807
6252
|
//#region src/components/flex/Flex.d.ts
|
|
5808
6253
|
interface FlexLayout {
|
|
@@ -5870,7 +6315,7 @@ type FlexComponent = (<C extends ElementType = 'div'>(props: FlexProps<C> & {
|
|
|
5870
6315
|
}) => ReactElement | null) & {
|
|
5871
6316
|
displayName?: string;
|
|
5872
6317
|
};
|
|
5873
|
-
declare const Flex: FlexComponent;
|
|
6318
|
+
export declare const Flex: FlexComponent;
|
|
5874
6319
|
//#endregion
|
|
5875
6320
|
//#region src/components/stack/Stack.d.ts
|
|
5876
6321
|
type StackOwnProps<C extends ElementType> = {
|
|
@@ -5904,6 +6349,6 @@ type StackComponent = (<C extends ElementType = 'div'>(props: StackProps<C> & {
|
|
|
5904
6349
|
}) => ReactElement | null) & {
|
|
5905
6350
|
displayName?: string;
|
|
5906
6351
|
};
|
|
5907
|
-
declare const Stack: StackComponent;
|
|
6352
|
+
export declare const Stack: StackComponent;
|
|
5908
6353
|
//#endregion
|
|
5909
|
-
export {
|
|
6354
|
+
export { type AccordionBodyProps, type AccordionHeaderProps, type AccordionItemDef, type AccordionItemProps, type AccordionProps, type AutocompleteGroupProps, type AutocompleteItemProps, type AutocompleteProps, type AvatarImageProps, type AvatarProps, type AvatarStackItemDef, type AvatarStackProps, type BadgeProps, type BreadcrumbItemDef, type BreadcrumbItemProps, type BreadcrumbProps, type Breakpoint, type ButtonGroupProps, type ButtonObject, type ButtonProps, type ButtonToolbarProps, type CalendarLabels, type CalendarMultipleProps, type CalendarProps, type CalendarSingleProps, type CardBodyProps, type CardFooterProps, type CardGroupProps, type CardHeaderProps, type CardImageOverlayProps, type CardImageProps, type CardLinkProps, type CardProps, type CardSubtitleProps, type CardTextProps, type CardTitleProps, type CarouselControlNextProps, type CarouselControlPrevProps, type CarouselEnds, type CarouselIndicatorsProps, type CarouselInnerProps, type CarouselItemProps, type CarouselOverlayProps, type CarouselPlayPauseProps, type CarouselProps, type CarouselSlideDetail, type CarouselTransition, type CheckboxGroupProps, type CheckboxProps, type ChipInputProps, type ChipProps, type CloseButtonProps, type ColProps, type CollapseProps, type ColorInputProps, type ComboboxGroupProps, type ComboboxItemProps, type ComboboxProps, type ContainerProps, type ContextColor, type ContextStyle, type DatePickerMultipleProps, type DatePickerProps, type DatePickerSingleProps, type DateRangePickerProps, type DateRangePreset, type DrawerBodyProps, type DrawerFooterProps, type DrawerHeaderProps, type DrawerProps, type DrawerTitleProps, type ExtendedSizing, type FileInputProps, type FlexProps, type FloatingInputProps, type FormFeedbackProps, type FormFieldProps, type FormHelpProps, type FormLabelProps, type FormProps, type GridItemLayout, type GridItemProps, type GridProps, I18nProvider, type IconProps, type InputAdornProps, type InputGroupAddonProps, type InputGroupProps, type LinkProps, type ListItemDef, type ListItemProps, type ListProps, type MenuAutoClose, type MenuDividerDef, type MenuDividerProps, type MenuFocusStrategy, type MenuHeaderDef, type MenuHeaderProps, type MenuItemDef, type MenuItemProps, type MenuItemsDef, type MenuListProps, type MenuProps, type MenuSubmenuBackProps, type MenuSubmenuProps, type MenuTextProps, type MenuToggleProps, type ModalBodyProps, type ModalFooterProps, type ModalHeaderProps, type ModalProps, type ModalTitleProps, type NavItemDef, type NavLinkProps, type NavProps, type NavTitleProps, type NavbarBrandProps, type NavbarNavProps, type NavbarProps, type NavbarTextProps, type NavbarTogglerProps, type NotificationContent, type NotificationIconProps, type NotificationProps, type NotificationStackProps, type NotificationTextProps, type NotificationTitleProps, type OtpInputProps, type PaginationItemProps, type PaginationProps, type PasswordStrengthProps, type PlaceholderProps, type Placement, type PopoverProps, type ProgressBarProps, type ProgressProps, type RadioGroupProps, type RadioProps, type RangeCalendarProps, type RangeInputProps, type RowProps, type SelectOptionDef, type SelectProps, type Shapes, type Sizing, type SkeletonLoaderProps, type SkeletonProps, type Spacing, type SpinnerProps, type StackProps, type StepperItemDef, type StepperItemProps, type StepperProps, type SwitchProps, type TabListProps, type TabPanelProps, type TabProps, type TableBodyProps, type TableCellProps, type TableColumnProps, type TableHeaderProps, type TableProps, type TableRowProps, type TabsProps, type TextInputProps, type TextareaProps, type ToastBodyProps, type ToastContent, type ToastFooterProps, type ToastHeaderProps, type ToastIconProps, type ToastProps, type ToasterProps, type TooltipProps, type UseDrawerResult, type UseModalResult, type UseNotificationResult, type UsePaginationResult, type UseToastResult };
|