@lumx/react 4.2.1-alpha.9 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +166 -115
- package/index.js +657 -430
- package/index.js.map +1 -1
- package/package.json +3 -4
package/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { Kind as Kind$1, HorizontalAlignment as HorizontalAlignment$1, Size as Size$1, ColorPalette as ColorPalette$1,
|
|
1
|
+
import { Kind as Kind$1, HorizontalAlignment as HorizontalAlignment$1, Size as Size$1, ColorPalette as ColorPalette$1, Theme as Theme$1, Orientation as Orientation$1, Alignment as Alignment$1, AspectRatio, ColorWithVariants as ColorWithVariants$1, ColorVariant as ColorVariant$1, Typography as Typography$1, Emphasis as Emphasis$1, GlobalSize, TypographyInterface as TypographyInterface$1 } from '@lumx/core/js/constants';
|
|
2
2
|
export * from '@lumx/core/js/constants';
|
|
3
3
|
import * as _lumx_core_js_types from '@lumx/core/js/types';
|
|
4
|
-
import { GenericProps
|
|
4
|
+
import { GenericProps, HasTheme as HasTheme$1, ValueOf, HasAriaDisabled as HasAriaDisabled$1, HasCloseMode, Falsy, HasClassName as HasClassName$1, HeadingElement as HeadingElement$1, HasRequiredLinkHref, HasAriaLabelOrLabelledBy } from '@lumx/core/js/types';
|
|
5
5
|
export * from '@lumx/core/js/types';
|
|
6
6
|
import * as React$1 from 'react';
|
|
7
|
-
import React__default, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler,
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
7
|
+
import React__default, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, AriaAttributes, RefObject, CSSProperties, ImgHTMLAttributes, SetStateAction, Key, ElementType, InputHTMLAttributes, ComponentProps } from 'react';
|
|
8
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
|
+
import { Selector } from '@lumx/core/js/types/Selector';
|
|
10
10
|
|
|
11
11
|
/** LumX Component Type. */
|
|
12
12
|
type Comp<P, T = HTMLElement> = {
|
|
13
13
|
(props: P & {
|
|
14
14
|
ref?: Ref<T>;
|
|
15
|
-
}
|
|
15
|
+
}): ReactElement | null;
|
|
16
16
|
/** React component type. */
|
|
17
17
|
readonly $$typeof: symbol;
|
|
18
18
|
/** Component default props. */
|
|
@@ -70,7 +70,7 @@ declare const AlertDialog: Comp<AlertDialogProps, HTMLDivElement>;
|
|
|
70
70
|
/**
|
|
71
71
|
* Defines the props of the component.
|
|
72
72
|
*/
|
|
73
|
-
interface AutocompleteProps extends GenericProps
|
|
73
|
+
interface AutocompleteProps extends GenericProps, HasTheme$1 {
|
|
74
74
|
/**
|
|
75
75
|
* Whether the suggestions list should display anchored to the input or to the wrapper.
|
|
76
76
|
* @see {@link DropdownProps#anchorToInput}
|
|
@@ -263,7 +263,7 @@ type AvatarSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>
|
|
|
263
263
|
/**
|
|
264
264
|
* Defines the props of the component.
|
|
265
265
|
*/
|
|
266
|
-
interface AvatarProps extends GenericProps
|
|
266
|
+
interface AvatarProps extends GenericProps, HasTheme$1 {
|
|
267
267
|
/** Action toolbar content. */
|
|
268
268
|
actions?: ReactNode;
|
|
269
269
|
/** Image alternative text. */
|
|
@@ -297,7 +297,7 @@ declare const Avatar: Comp<AvatarProps, HTMLDivElement>;
|
|
|
297
297
|
/**
|
|
298
298
|
* Defines the props of the component.
|
|
299
299
|
*/
|
|
300
|
-
interface BadgeProps extends GenericProps
|
|
300
|
+
interface BadgeProps extends GenericProps {
|
|
301
301
|
/** Badge content. */
|
|
302
302
|
children?: ReactNode;
|
|
303
303
|
/** Color variant. */
|
|
@@ -312,7 +312,7 @@ interface BadgeProps extends GenericProps$1 {
|
|
|
312
312
|
*/
|
|
313
313
|
declare const Badge: Comp<BadgeProps, HTMLDivElement>;
|
|
314
314
|
|
|
315
|
-
interface BadgeWrapperProps extends GenericProps
|
|
315
|
+
interface BadgeWrapperProps extends GenericProps {
|
|
316
316
|
/** Badge. */
|
|
317
317
|
badge: ReactElement;
|
|
318
318
|
/** Node to display the badge on */
|
|
@@ -529,37 +529,20 @@ interface HasAriaDisabled {
|
|
|
529
529
|
'aria-disabled'?: Booleanish;
|
|
530
530
|
}
|
|
531
531
|
|
|
532
|
-
|
|
533
|
-
/** Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. */
|
|
534
|
-
'aria-expanded'?: Booleanish | undefined;
|
|
535
|
-
/** Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. */
|
|
536
|
-
'aria-haspopup'?: boolean | 'false' | 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog' | undefined;
|
|
537
|
-
/**
|
|
538
|
-
* Defines a string value that labels the current element.
|
|
539
|
-
* @see aria-labelledby.
|
|
540
|
-
*/
|
|
541
|
-
'aria-label'?: string | undefined;
|
|
542
|
-
/**
|
|
543
|
-
* Indicates the current "pressed" state of toggle buttons.
|
|
544
|
-
* @see aria-checked @see aria-selected.
|
|
545
|
-
*/
|
|
546
|
-
'aria-pressed'?: boolean | 'false' | 'mixed' | 'true' | undefined;
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
interface BaseClickableProps {
|
|
532
|
+
type BaseClickableProps = {
|
|
550
533
|
children?: JSXElement;
|
|
551
534
|
isDisabled?: boolean;
|
|
552
535
|
disabled?: boolean;
|
|
553
536
|
'aria-disabled'?: Booleanish;
|
|
554
537
|
onClick?: (event?: any) => void;
|
|
555
538
|
ref?: CommonRef;
|
|
556
|
-
}
|
|
539
|
+
};
|
|
557
540
|
|
|
558
541
|
/**
|
|
559
542
|
* Button size definition.
|
|
560
543
|
*/
|
|
561
544
|
type ButtonSize = Extract<Size, 's' | 'm'>;
|
|
562
|
-
interface BaseButtonProps extends AriaAttributes, HasClassName, HasTheme, HasAriaDisabled, BaseClickableProps {
|
|
545
|
+
interface BaseButtonProps extends Pick<AriaAttributes, 'aria-expanded' | 'aria-haspopup' | 'aria-pressed' | 'aria-label'>, HasClassName, HasTheme, HasAriaDisabled, BaseClickableProps {
|
|
563
546
|
/** Color variant. */
|
|
564
547
|
color?: ColorPalette;
|
|
565
548
|
/** Emphasis variant. */
|
|
@@ -627,7 +610,7 @@ declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
|
|
|
627
610
|
*/
|
|
628
611
|
declare const DEFAULT_PROPS: Partial<ButtonProps$1>;
|
|
629
612
|
|
|
630
|
-
interface ButtonProps extends GenericProps
|
|
613
|
+
interface ButtonProps extends GenericProps, ButtonProps$1 {
|
|
631
614
|
}
|
|
632
615
|
/**
|
|
633
616
|
* Button component.
|
|
@@ -654,13 +637,11 @@ interface IconButtonProps$1 extends BaseButtonProps {
|
|
|
654
637
|
* If you really don't want an aria-label, you can set an empty label (this is not recommended).
|
|
655
638
|
*/
|
|
656
639
|
label: string;
|
|
657
|
-
/**
|
|
658
|
-
* optional text to be displayed as the title of the HTML element
|
|
659
|
-
*/
|
|
640
|
+
/** text to be displayed on hover */
|
|
660
641
|
title?: string;
|
|
661
642
|
}
|
|
662
643
|
|
|
663
|
-
interface IconButtonProps extends GenericProps
|
|
644
|
+
interface IconButtonProps extends GenericProps, Omit<IconButtonProps$1, 'title'> {
|
|
664
645
|
/**
|
|
665
646
|
* Props to pass to the tooltip.
|
|
666
647
|
* If undefined or if tooltipProps.label is undefined, the label prop will be used as tooltip label.
|
|
@@ -690,7 +671,7 @@ interface ButtonGroupProps$1 extends HasClassName {
|
|
|
690
671
|
ref?: CommonRef;
|
|
691
672
|
}
|
|
692
673
|
|
|
693
|
-
interface ButtonGroupProps extends
|
|
674
|
+
interface ButtonGroupProps extends GenericProps, ButtonGroupProps$1 {
|
|
694
675
|
}
|
|
695
676
|
/**
|
|
696
677
|
* ButtonGroup component.
|
|
@@ -704,27 +685,38 @@ declare const ButtonGroup: Comp<ButtonGroupProps, HTMLDivElement>;
|
|
|
704
685
|
/**
|
|
705
686
|
* Defines the props of the component.
|
|
706
687
|
*/
|
|
707
|
-
interface CheckboxProps extends
|
|
688
|
+
interface CheckboxProps$1 extends HasTheme, HasClassName, HasAriaDisabled {
|
|
708
689
|
/** Helper text. */
|
|
709
690
|
helper?: string;
|
|
710
691
|
/** Native input id property. */
|
|
711
692
|
id?: string;
|
|
712
|
-
/** Native input ref. */
|
|
713
|
-
inputRef?: React__default.Ref<HTMLInputElement>;
|
|
714
693
|
/** Whether it is checked or not or intermediate. */
|
|
715
694
|
isChecked?: boolean | 'intermediate';
|
|
695
|
+
checked?: boolean;
|
|
716
696
|
/** Whether the component is disabled or not. */
|
|
717
697
|
isDisabled?: boolean;
|
|
718
698
|
/** Label text. */
|
|
719
|
-
label?:
|
|
699
|
+
label?: JSXElement;
|
|
720
700
|
/** Native input name property. */
|
|
721
701
|
name?: string;
|
|
722
702
|
/** Native input value property. */
|
|
723
703
|
value?: string;
|
|
724
704
|
/** optional props for input */
|
|
725
|
-
inputProps?:
|
|
705
|
+
inputProps?: Record<string, any>;
|
|
706
|
+
/** Native input ref. */
|
|
707
|
+
inputRef?: CommonRef;
|
|
708
|
+
/** Native input id. */
|
|
709
|
+
inputId: string;
|
|
726
710
|
/** On change callback. */
|
|
727
|
-
onChange?(isChecked: boolean, value?: string, name?: string, event?:
|
|
711
|
+
onChange?(isChecked: boolean, value?: string, name?: string, event?: any): void;
|
|
712
|
+
/** reference to the root element */
|
|
713
|
+
ref?: CommonRef;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
/**
|
|
717
|
+
* Defines the props of the component.
|
|
718
|
+
*/
|
|
719
|
+
interface CheckboxProps extends GenericProps, Omit<CheckboxProps$1, 'inputId'> {
|
|
728
720
|
}
|
|
729
721
|
/**
|
|
730
722
|
* Checkbox component.
|
|
@@ -742,7 +734,7 @@ type ChipSize = Extract<Size$1, 's' | 'm'>;
|
|
|
742
734
|
/**
|
|
743
735
|
* Defines the props of the component.
|
|
744
736
|
*/
|
|
745
|
-
interface ChipProps extends GenericProps
|
|
737
|
+
interface ChipProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
746
738
|
/** A component to be rendered after the content. */
|
|
747
739
|
after?: ReactNode;
|
|
748
740
|
/** A component to be rendered before the content. */
|
|
@@ -788,7 +780,7 @@ type useChipGroupNavigationType<C = any> = (chips: C[], onChipDeleted: (chip: C)
|
|
|
788
780
|
/**
|
|
789
781
|
* Defines the props of the component.
|
|
790
782
|
*/
|
|
791
|
-
interface ChipGroupProps extends GenericProps
|
|
783
|
+
interface ChipGroupProps extends GenericProps {
|
|
792
784
|
/**
|
|
793
785
|
* Chip horizontal alignment.
|
|
794
786
|
* @deprecated
|
|
@@ -801,6 +793,62 @@ declare const ChipGroup: Comp<ChipGroupProps, HTMLDivElement> & {
|
|
|
801
793
|
useChipGroupNavigation: useChipGroupNavigationType<any>;
|
|
802
794
|
};
|
|
803
795
|
|
|
796
|
+
interface SelectionChipGroupProps<O> extends GenericProps {
|
|
797
|
+
/**
|
|
798
|
+
* Option object id selector (either the property name or a function to get the id)
|
|
799
|
+
*/
|
|
800
|
+
getOptionId: Selector<O>;
|
|
801
|
+
/**
|
|
802
|
+
* Option object name selector (either the property name or a function to get the name)
|
|
803
|
+
* Fallbacks on the ID if not defined
|
|
804
|
+
*/
|
|
805
|
+
getOptionName?: Selector<O, string | undefined | null>;
|
|
806
|
+
/**
|
|
807
|
+
* Selected options array
|
|
808
|
+
*/
|
|
809
|
+
value?: O[];
|
|
810
|
+
/**
|
|
811
|
+
* Callback on option array selected
|
|
812
|
+
*/
|
|
813
|
+
onChange?(newValue?: O[]): void;
|
|
814
|
+
/**
|
|
815
|
+
* Input ref to restore focus
|
|
816
|
+
*/
|
|
817
|
+
inputRef?: React__default.RefObject<HTMLInputElement>;
|
|
818
|
+
/**
|
|
819
|
+
* Input label, used to generate the chip group aria description
|
|
820
|
+
*/
|
|
821
|
+
inputLabel?: string;
|
|
822
|
+
/**
|
|
823
|
+
* Customize how chips should render
|
|
824
|
+
*/
|
|
825
|
+
renderChip?: (option: O) => React__default.ReactNode;
|
|
826
|
+
/**
|
|
827
|
+
* Scope for tracking purposes
|
|
828
|
+
*/
|
|
829
|
+
scope?: string;
|
|
830
|
+
/**
|
|
831
|
+
* LumX theme
|
|
832
|
+
*/
|
|
833
|
+
theme?: Theme$1;
|
|
834
|
+
/**
|
|
835
|
+
* Disabled state
|
|
836
|
+
*/
|
|
837
|
+
isDisabled?: boolean;
|
|
838
|
+
/** label to be used for accessibility purposes */
|
|
839
|
+
label: string;
|
|
840
|
+
/** callback for generating the tooltip for each individual chip */
|
|
841
|
+
chipTooltipLabel: (chip: string) => string;
|
|
842
|
+
}
|
|
843
|
+
/**
|
|
844
|
+
* SelectionChipGroup component.
|
|
845
|
+
*
|
|
846
|
+
* @param props Component props.
|
|
847
|
+
* @param ref Component ref.
|
|
848
|
+
* @return React element.
|
|
849
|
+
*/
|
|
850
|
+
declare const SelectionChipGroup: <O>({ onChange, value, getOptionId, getOptionName, inputRef, inputLabel, renderChip, theme, isDisabled, chipTooltipLabel, label, ...forwardedProps }: SelectionChipGroupProps<O>) => react_jsx_runtime.JSX.Element;
|
|
851
|
+
|
|
804
852
|
/**
|
|
805
853
|
* Comment block variants.
|
|
806
854
|
*/
|
|
@@ -812,7 +860,7 @@ type CommentBlockVariant = ValueOf<typeof CommentBlockVariant>;
|
|
|
812
860
|
/**
|
|
813
861
|
* Defines the props of the component.
|
|
814
862
|
*/
|
|
815
|
-
interface CommentBlockProps extends GenericProps
|
|
863
|
+
interface CommentBlockProps extends GenericProps, HasTheme$1 {
|
|
816
864
|
/** Action toolbar content. */
|
|
817
865
|
actions?: ReactNode;
|
|
818
866
|
/** Props to pass to the avatar. */
|
|
@@ -865,7 +913,7 @@ declare const CommentBlock: Comp<CommentBlockProps, HTMLDivElement>;
|
|
|
865
913
|
/**
|
|
866
914
|
* Defines the props of the component.
|
|
867
915
|
*/
|
|
868
|
-
interface DatePickerProps extends GenericProps
|
|
916
|
+
interface DatePickerProps extends GenericProps {
|
|
869
917
|
/** Default month. */
|
|
870
918
|
defaultMonth?: Date;
|
|
871
919
|
/** Locale (language or region) to use. */
|
|
@@ -920,7 +968,7 @@ declare const DatePickerControlled: Comp<DatePickerControlledProps, HTMLDivEleme
|
|
|
920
968
|
/**
|
|
921
969
|
* Defines the props of the component.
|
|
922
970
|
*/
|
|
923
|
-
interface DatePickerFieldProps extends Omit<TextFieldProps, 'value' | 'onChange'>, GenericProps
|
|
971
|
+
interface DatePickerFieldProps extends Omit<TextFieldProps, 'value' | 'onChange'>, GenericProps {
|
|
924
972
|
/** Default month. */
|
|
925
973
|
defaultMonth?: Date;
|
|
926
974
|
/** Locale (language or region) to use. */
|
|
@@ -950,7 +998,7 @@ declare const DatePickerField: Comp<DatePickerFieldProps, HTMLDivElement>;
|
|
|
950
998
|
/**
|
|
951
999
|
* Defines the props of the component.
|
|
952
1000
|
*/
|
|
953
|
-
interface DialogProps extends GenericProps
|
|
1001
|
+
interface DialogProps extends GenericProps {
|
|
954
1002
|
/** Footer content. */
|
|
955
1003
|
footer?: ReactNode;
|
|
956
1004
|
/** Whether the divider between the dialog content and the footer is always displayed (instead of showing it on scroll). */
|
|
@@ -980,7 +1028,7 @@ interface DialogProps extends GenericProps$1 {
|
|
|
980
1028
|
/** Z-axis position. */
|
|
981
1029
|
zIndex?: number;
|
|
982
1030
|
/** Z-axis position. */
|
|
983
|
-
dialogProps?: GenericProps
|
|
1031
|
+
dialogProps?: GenericProps;
|
|
984
1032
|
/** On close callback. */
|
|
985
1033
|
onClose?(): void;
|
|
986
1034
|
/** Callback called when the open animation starts and the close animation finishes. */
|
|
@@ -1003,7 +1051,7 @@ declare const Dialog: Comp<DialogProps, HTMLDivElement>;
|
|
|
1003
1051
|
/**
|
|
1004
1052
|
* Defines the props of the component.
|
|
1005
1053
|
*/
|
|
1006
|
-
interface DividerProps extends GenericProps
|
|
1054
|
+
interface DividerProps extends GenericProps, HasTheme$1 {
|
|
1007
1055
|
}
|
|
1008
1056
|
/**
|
|
1009
1057
|
* Divider component.
|
|
@@ -1017,7 +1065,7 @@ declare const Divider: Comp<DividerProps, HTMLHRElement>;
|
|
|
1017
1065
|
/**
|
|
1018
1066
|
* Defines the props of the component.
|
|
1019
1067
|
*/
|
|
1020
|
-
interface DragHandleProps extends GenericProps
|
|
1068
|
+
interface DragHandleProps extends GenericProps, HasTheme$1 {
|
|
1021
1069
|
}
|
|
1022
1070
|
/**
|
|
1023
1071
|
* DragHandle component.
|
|
@@ -1075,7 +1123,7 @@ type FitAnchorWidth = ValueOf<typeof FitAnchorWidth>;
|
|
|
1075
1123
|
/**
|
|
1076
1124
|
* Defines the props of the component.
|
|
1077
1125
|
*/
|
|
1078
|
-
interface PopoverProps extends GenericProps
|
|
1126
|
+
interface PopoverProps extends GenericProps, HasTheme$1 {
|
|
1079
1127
|
/** Reference to the DOM element used to set the position of the popover. */
|
|
1080
1128
|
anchorRef: React.RefObject<HTMLElement>;
|
|
1081
1129
|
/** Customize the root element. (Must accept ref forwarding and props forwarding!). */
|
|
@@ -1136,7 +1184,7 @@ declare const Popover: Comp<PopoverProps, HTMLDivElement>;
|
|
|
1136
1184
|
/**
|
|
1137
1185
|
* Defines the props of the component.
|
|
1138
1186
|
*/
|
|
1139
|
-
interface DropdownProps extends GenericProps
|
|
1187
|
+
interface DropdownProps extends GenericProps {
|
|
1140
1188
|
/**
|
|
1141
1189
|
* Reference to the element around which the dropdown is placed.
|
|
1142
1190
|
* @see {@link PopoverProps#anchorRef}
|
|
@@ -1217,7 +1265,7 @@ declare const Dropdown: Comp<DropdownProps, HTMLDivElement>;
|
|
|
1217
1265
|
/**
|
|
1218
1266
|
* Defines the props of the component.
|
|
1219
1267
|
*/
|
|
1220
|
-
interface ExpansionPanelProps extends GenericProps
|
|
1268
|
+
interface ExpansionPanelProps extends GenericProps, HasCloseMode, HasTheme$1 {
|
|
1221
1269
|
/** Whether the expansion panel has a background. */
|
|
1222
1270
|
hasBackground?: boolean;
|
|
1223
1271
|
/** Whether the header has a divider. */
|
|
@@ -1308,7 +1356,8 @@ interface FlagProps$1 extends HasClassName, HasTheme {
|
|
|
1308
1356
|
Text: (props: TextProps$1) => any;
|
|
1309
1357
|
}
|
|
1310
1358
|
|
|
1311
|
-
interface FlagProps extends GenericProps
|
|
1359
|
+
interface FlagProps extends GenericProps, Omit<FlagProps$1, 'children' | 'Text'> {
|
|
1360
|
+
/** Text label of the flag. */
|
|
1312
1361
|
label: React.ReactNode;
|
|
1313
1362
|
}
|
|
1314
1363
|
/**
|
|
@@ -1353,7 +1402,7 @@ interface FlexBoxProps$1 extends HasClassName {
|
|
|
1353
1402
|
/**
|
|
1354
1403
|
* Defines the props of the component.
|
|
1355
1404
|
*/
|
|
1356
|
-
interface FlexBoxProps extends
|
|
1405
|
+
interface FlexBoxProps extends GenericProps, FlexBoxProps$1 {
|
|
1357
1406
|
/** Customize the root element. */
|
|
1358
1407
|
as?: React__default.ElementType;
|
|
1359
1408
|
}
|
|
@@ -1477,7 +1526,7 @@ interface HeadingProps$1 extends Partial<TextProps$1> {
|
|
|
1477
1526
|
as?: HeadingElement;
|
|
1478
1527
|
}
|
|
1479
1528
|
|
|
1480
|
-
interface HeadingProps extends
|
|
1529
|
+
interface HeadingProps extends GenericProps, HeadingProps$1 {
|
|
1481
1530
|
}
|
|
1482
1531
|
/**
|
|
1483
1532
|
* Renders a heading component.
|
|
@@ -1506,7 +1555,7 @@ type GridGutterSize = Extract<Size$1, 'regular' | 'big' | 'huge'>;
|
|
|
1506
1555
|
/**
|
|
1507
1556
|
* Defines the props of the component.
|
|
1508
1557
|
*/
|
|
1509
|
-
interface GridProps extends GenericProps
|
|
1558
|
+
interface GridProps extends GenericProps {
|
|
1510
1559
|
/** Orientation. */
|
|
1511
1560
|
orientation?: Orientation$1;
|
|
1512
1561
|
/** Whether the children are wrapped or not. */
|
|
@@ -1533,7 +1582,7 @@ type Columns = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11'
|
|
|
1533
1582
|
/**
|
|
1534
1583
|
* Defines the props of the component.
|
|
1535
1584
|
*/
|
|
1536
|
-
interface GridItemProps extends GenericProps
|
|
1585
|
+
interface GridItemProps extends GenericProps {
|
|
1537
1586
|
/** Alignment. */
|
|
1538
1587
|
align?: Alignment$1;
|
|
1539
1588
|
/** Order. */
|
|
@@ -1556,7 +1605,7 @@ type GridColumnGapSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
|
1556
1605
|
/**
|
|
1557
1606
|
* Defines the props of the component.
|
|
1558
1607
|
*/
|
|
1559
|
-
interface GridColumnProps extends GenericProps
|
|
1608
|
+
interface GridColumnProps extends GenericProps {
|
|
1560
1609
|
/** Customize the root element. */
|
|
1561
1610
|
as?: React.ElementType;
|
|
1562
1611
|
/** Children elements. */
|
|
@@ -1607,7 +1656,7 @@ interface IconProps$1 extends HasClassName, HasTheme {
|
|
|
1607
1656
|
ref?: CommonRef;
|
|
1608
1657
|
}
|
|
1609
1658
|
|
|
1610
|
-
interface IconProps extends IconProps$1, GenericProps
|
|
1659
|
+
interface IconProps extends Omit<IconProps$1, 'children'>, GenericProps {
|
|
1611
1660
|
}
|
|
1612
1661
|
/**
|
|
1613
1662
|
* Icon component.
|
|
@@ -1665,7 +1714,7 @@ type ImgHTMLProps = ImgHTMLAttributes<HTMLImageElement>;
|
|
|
1665
1714
|
/**
|
|
1666
1715
|
* Defines the props of the component.
|
|
1667
1716
|
*/
|
|
1668
|
-
interface ThumbnailProps extends GenericProps
|
|
1717
|
+
interface ThumbnailProps extends GenericProps, HasTheme$1 {
|
|
1669
1718
|
/** Alignment of the thumbnail in it's parent (requires flex parent). */
|
|
1670
1719
|
align?: HorizontalAlignment$1;
|
|
1671
1720
|
/** Image alternative text. */
|
|
@@ -1751,7 +1800,7 @@ type ImageBlockSize = Extract<Size$1, 'xl' | 'xxl'>;
|
|
|
1751
1800
|
/**
|
|
1752
1801
|
* Defines the props of the component.
|
|
1753
1802
|
*/
|
|
1754
|
-
interface ImageBlockProps extends GenericProps
|
|
1803
|
+
interface ImageBlockProps extends GenericProps, HasTheme$1, ImageCaptionMetadata {
|
|
1755
1804
|
/** Action toolbar content. */
|
|
1756
1805
|
actions?: ReactNode;
|
|
1757
1806
|
/** Alignment. */
|
|
@@ -1843,7 +1892,7 @@ declare const ImageLightbox: Comp<ImageLightboxProps, HTMLDivElement> & {
|
|
|
1843
1892
|
/**
|
|
1844
1893
|
* Defines the props of the component.
|
|
1845
1894
|
*/
|
|
1846
|
-
interface InlineListProps extends GenericProps
|
|
1895
|
+
interface InlineListProps extends GenericProps {
|
|
1847
1896
|
/**
|
|
1848
1897
|
* Text color.
|
|
1849
1898
|
*/
|
|
@@ -1884,9 +1933,11 @@ interface InputHelperProps$1 extends HasClassName, HasTheme {
|
|
|
1884
1933
|
kind?: Kind;
|
|
1885
1934
|
/** ref to the root element `p` */
|
|
1886
1935
|
ref?: CommonRef;
|
|
1936
|
+
/** id for the input helper */
|
|
1937
|
+
id?: string;
|
|
1887
1938
|
}
|
|
1888
1939
|
|
|
1889
|
-
interface InputHelperProps extends InputHelperProps$1, GenericProps
|
|
1940
|
+
interface InputHelperProps extends InputHelperProps$1, GenericProps {
|
|
1890
1941
|
}
|
|
1891
1942
|
/**
|
|
1892
1943
|
* InputHelper component.
|
|
@@ -1910,7 +1961,7 @@ interface InputLabelProps$1 extends HasClassName, HasTheme {
|
|
|
1910
1961
|
ref?: CommonRef;
|
|
1911
1962
|
}
|
|
1912
1963
|
|
|
1913
|
-
interface InputLabelProps extends InputLabelProps$1, GenericProps
|
|
1964
|
+
interface InputLabelProps extends InputLabelProps$1, GenericProps {
|
|
1914
1965
|
}
|
|
1915
1966
|
/**
|
|
1916
1967
|
* InputLabel component.
|
|
@@ -1924,7 +1975,7 @@ declare const InputLabel: Comp<InputLabelProps, HTMLLabelElement>;
|
|
|
1924
1975
|
/**
|
|
1925
1976
|
* Defines the props of the component.
|
|
1926
1977
|
*/
|
|
1927
|
-
interface LightboxProps extends GenericProps
|
|
1978
|
+
interface LightboxProps extends GenericProps, HasTheme$1, Pick<AriaAttributes, 'aria-label' | 'aria-labelledby'> {
|
|
1928
1979
|
/** Props to pass to the close button (minus those already set by the Lightbox props). */
|
|
1929
1980
|
closeButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis' | 'color'>;
|
|
1930
1981
|
/** Whether the component is open or not. */
|
|
@@ -1955,7 +2006,7 @@ type HTMLAnchorProps = React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAn
|
|
|
1955
2006
|
/**
|
|
1956
2007
|
* Defines the props of the component.
|
|
1957
2008
|
*/
|
|
1958
|
-
interface LinkProps extends GenericProps
|
|
2009
|
+
interface LinkProps extends GenericProps, HasAriaDisabled$1 {
|
|
1959
2010
|
/** Color variant. */
|
|
1960
2011
|
color?: ColorWithVariants$1;
|
|
1961
2012
|
/** Lightened or darkened variant of the selected icon color. */
|
|
@@ -1995,7 +2046,7 @@ declare const Link: Comp<LinkProps, HTMLButtonElement | HTMLAnchorElement>;
|
|
|
1995
2046
|
/**
|
|
1996
2047
|
* Defines the props of the component.
|
|
1997
2048
|
*/
|
|
1998
|
-
interface LinkPreviewProps extends GenericProps
|
|
2049
|
+
interface LinkPreviewProps extends GenericProps, HasTheme$1 {
|
|
1999
2050
|
/** Description. */
|
|
2000
2051
|
description?: string;
|
|
2001
2052
|
/** Link URL. */
|
|
@@ -2038,7 +2089,7 @@ type useKeyboardListNavigationType = <I>(items: I[], ref: RefObject<HTMLElement>
|
|
|
2038
2089
|
/**
|
|
2039
2090
|
* Defines the props of the component.
|
|
2040
2091
|
*/
|
|
2041
|
-
interface ListProps extends GenericProps
|
|
2092
|
+
interface ListProps extends GenericProps {
|
|
2042
2093
|
/** List content (should be ListItem, ListSubheader or ListDivider). */
|
|
2043
2094
|
children: ReactNode;
|
|
2044
2095
|
/**
|
|
@@ -2067,7 +2118,7 @@ type ListItemSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
|
2067
2118
|
/**
|
|
2068
2119
|
* Defines the props of the component.
|
|
2069
2120
|
*/
|
|
2070
|
-
interface ListItemProps extends GenericProps
|
|
2121
|
+
interface ListItemProps extends GenericProps, HasAriaDisabled$1 {
|
|
2071
2122
|
/** A component to be rendered after the content. */
|
|
2072
2123
|
after?: ReactNode;
|
|
2073
2124
|
/** A component to be rendered before the content. */
|
|
@@ -2110,7 +2161,7 @@ declare const ListItem: Comp<ListItemProps, HTMLLIElement>;
|
|
|
2110
2161
|
/**
|
|
2111
2162
|
* Defines the props of the component.
|
|
2112
2163
|
*/
|
|
2113
|
-
type ListDividerProps = GenericProps
|
|
2164
|
+
type ListDividerProps = GenericProps;
|
|
2114
2165
|
/**
|
|
2115
2166
|
* ListDivider component.
|
|
2116
2167
|
*
|
|
@@ -2118,12 +2169,12 @@ type ListDividerProps = GenericProps$1;
|
|
|
2118
2169
|
* @param ref Component ref.
|
|
2119
2170
|
* @return React element.
|
|
2120
2171
|
*/
|
|
2121
|
-
declare const ListDivider: Comp<GenericProps
|
|
2172
|
+
declare const ListDivider: Comp<GenericProps, HTMLLIElement>;
|
|
2122
2173
|
|
|
2123
2174
|
/**
|
|
2124
2175
|
* Defines the props of the component.
|
|
2125
2176
|
*/
|
|
2126
|
-
interface ListSubheaderProps extends GenericProps
|
|
2177
|
+
interface ListSubheaderProps extends GenericProps {
|
|
2127
2178
|
/** Content. */
|
|
2128
2179
|
children: string | ReactNode;
|
|
2129
2180
|
}
|
|
@@ -2163,7 +2214,7 @@ interface MessageProps$1 extends HasClassName {
|
|
|
2163
2214
|
};
|
|
2164
2215
|
}
|
|
2165
2216
|
|
|
2166
|
-
interface MessageProps extends Omit<MessageProps$1, 'children' | 'ref'> {
|
|
2217
|
+
interface MessageProps extends GenericProps, Omit<MessageProps$1, 'children' | 'ref'> {
|
|
2167
2218
|
/** Content. */
|
|
2168
2219
|
children?: React.ReactNode;
|
|
2169
2220
|
}
|
|
@@ -2179,7 +2230,7 @@ declare const Message: Comp<MessageProps, HTMLDivElement>;
|
|
|
2179
2230
|
/**
|
|
2180
2231
|
* Defines the props of the component.
|
|
2181
2232
|
*/
|
|
2182
|
-
interface MosaicProps extends GenericProps
|
|
2233
|
+
interface MosaicProps extends GenericProps, HasTheme$1 {
|
|
2183
2234
|
/** Thumbnails. */
|
|
2184
2235
|
thumbnails: ThumbnailProps[];
|
|
2185
2236
|
/** On image click callback. */
|
|
@@ -2235,7 +2286,7 @@ declare const Navigation: Comp<NavigationProps, HTMLElement> & SubComponents;
|
|
|
2235
2286
|
/**
|
|
2236
2287
|
* Defines the props of the component.
|
|
2237
2288
|
*/
|
|
2238
|
-
interface NotificationProps extends GenericProps
|
|
2289
|
+
interface NotificationProps extends GenericProps, HasTheme$1 {
|
|
2239
2290
|
/** Action button label. */
|
|
2240
2291
|
actionLabel?: string;
|
|
2241
2292
|
/** Content. */
|
|
@@ -2279,7 +2330,7 @@ declare const PopoverDialog: Comp<PopoverDialogProps, HTMLDivElement>;
|
|
|
2279
2330
|
/**
|
|
2280
2331
|
* Defines the props of the component.
|
|
2281
2332
|
*/
|
|
2282
|
-
interface PostBlockProps extends GenericProps
|
|
2333
|
+
interface PostBlockProps extends GenericProps, HasTheme$1 {
|
|
2283
2334
|
/** Action toolbar content. */
|
|
2284
2335
|
actions?: ReactNode;
|
|
2285
2336
|
/** Attachment content. */
|
|
@@ -2323,7 +2374,7 @@ type ProgressVariant = ValueOf<typeof ProgressVariant>;
|
|
|
2323
2374
|
/**
|
|
2324
2375
|
* Defines the props of the component.
|
|
2325
2376
|
*/
|
|
2326
|
-
interface ProgressProps extends GenericProps
|
|
2377
|
+
interface ProgressProps extends GenericProps, HasTheme$1 {
|
|
2327
2378
|
/** Progress variant. */
|
|
2328
2379
|
variant?: ProgressVariant;
|
|
2329
2380
|
}
|
|
@@ -2344,7 +2395,7 @@ type ProgressCircularSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm'>;
|
|
|
2344
2395
|
/**
|
|
2345
2396
|
* Defines the props of the component.
|
|
2346
2397
|
*/
|
|
2347
|
-
interface ProgressCircularProps extends GenericProps
|
|
2398
|
+
interface ProgressCircularProps extends GenericProps, HasTheme$1 {
|
|
2348
2399
|
/**
|
|
2349
2400
|
* Progress circular size.
|
|
2350
2401
|
*/
|
|
@@ -2364,7 +2415,7 @@ interface ProgressCircularProps extends GenericProps$1, HasTheme$1 {
|
|
|
2364
2415
|
*/
|
|
2365
2416
|
declare const ProgressCircular: Comp<ProgressCircularProps, HTMLDivElement>;
|
|
2366
2417
|
|
|
2367
|
-
interface ProgressLinearProps extends GenericProps
|
|
2418
|
+
interface ProgressLinearProps extends GenericProps, HasTheme$1 {
|
|
2368
2419
|
}
|
|
2369
2420
|
/**
|
|
2370
2421
|
* ProgressLinear component.
|
|
@@ -2403,7 +2454,7 @@ declare const ProgressTrackerProvider: React.FC<ProgressTrackerProviderProps>;
|
|
|
2403
2454
|
/**
|
|
2404
2455
|
* Defines the props of the component.
|
|
2405
2456
|
*/
|
|
2406
|
-
interface ProgressTrackerProps extends GenericProps
|
|
2457
|
+
interface ProgressTrackerProps extends GenericProps {
|
|
2407
2458
|
/** ARIA label (purpose of the set of steps). */
|
|
2408
2459
|
['aria-label']: string;
|
|
2409
2460
|
/** Step list. */
|
|
@@ -2423,7 +2474,7 @@ declare const ProgressTracker: Comp<ProgressTrackerProps, HTMLDivElement>;
|
|
|
2423
2474
|
/**
|
|
2424
2475
|
* Defines the props of the component.
|
|
2425
2476
|
*/
|
|
2426
|
-
interface ProgressTrackerStepProps extends GenericProps
|
|
2477
|
+
interface ProgressTrackerStepProps extends GenericProps {
|
|
2427
2478
|
/** Children are not supported. */
|
|
2428
2479
|
children?: never;
|
|
2429
2480
|
/** Whether the step should be in error state or not. */
|
|
@@ -2455,7 +2506,7 @@ declare const ProgressTrackerStep: Comp<ProgressTrackerStepProps, HTMLButtonElem
|
|
|
2455
2506
|
/**
|
|
2456
2507
|
* Defines the props of the component.
|
|
2457
2508
|
*/
|
|
2458
|
-
interface ProgressTrackerStepPanelProps extends GenericProps
|
|
2509
|
+
interface ProgressTrackerStepPanelProps extends GenericProps {
|
|
2459
2510
|
/** Native id property. */
|
|
2460
2511
|
id?: string;
|
|
2461
2512
|
/** Whether the step is active or not. */
|
|
@@ -2477,7 +2528,7 @@ declare const ProgressTrackerStepPanel: Comp<ProgressTrackerStepPanelProps, HTML
|
|
|
2477
2528
|
/**
|
|
2478
2529
|
* Defines the props of the component.
|
|
2479
2530
|
*/
|
|
2480
|
-
interface RadioButtonProps extends GenericProps
|
|
2531
|
+
interface RadioButtonProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
2481
2532
|
/** Helper text. */
|
|
2482
2533
|
helper?: string;
|
|
2483
2534
|
/** Native input id property. */
|
|
@@ -2511,7 +2562,7 @@ declare const RadioButton: Comp<RadioButtonProps, HTMLDivElement>;
|
|
|
2511
2562
|
/**
|
|
2512
2563
|
* Defines the props of the component.
|
|
2513
2564
|
*/
|
|
2514
|
-
interface RadioGroupProps extends GenericProps
|
|
2565
|
+
interface RadioGroupProps extends GenericProps {
|
|
2515
2566
|
/** RadioButton elements */
|
|
2516
2567
|
children: ReactNode;
|
|
2517
2568
|
}
|
|
@@ -2532,7 +2583,7 @@ declare const SelectVariant: {
|
|
|
2532
2583
|
readonly chip: "chip";
|
|
2533
2584
|
};
|
|
2534
2585
|
type SelectVariant = ValueOf<typeof SelectVariant>;
|
|
2535
|
-
interface CoreSelectProps extends GenericProps
|
|
2586
|
+
interface CoreSelectProps extends GenericProps, HasTheme$1 {
|
|
2536
2587
|
/** Props to pass to the clear button (minus those already set by the Select props). If not specified, the button won't be displayed. */
|
|
2537
2588
|
clearButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
|
|
2538
2589
|
/** Whether the select (input variant) is displayed with error style or not. */
|
|
@@ -2612,7 +2663,7 @@ declare const SelectMultiple: Comp<SelectMultipleProps, HTMLDivElement>;
|
|
|
2612
2663
|
/**
|
|
2613
2664
|
* Defines the props of the component.
|
|
2614
2665
|
*/
|
|
2615
|
-
interface SideNavigationProps extends GenericProps
|
|
2666
|
+
interface SideNavigationProps extends GenericProps, HasTheme$1 {
|
|
2616
2667
|
/** SideNavigationItem elements. */
|
|
2617
2668
|
children: ReactNode;
|
|
2618
2669
|
}
|
|
@@ -2628,7 +2679,7 @@ declare const SideNavigation: Comp<SideNavigationProps, HTMLUListElement>;
|
|
|
2628
2679
|
/**
|
|
2629
2680
|
* Defines the props of the component.
|
|
2630
2681
|
*/
|
|
2631
|
-
interface SideNavigationItemProps extends GenericProps
|
|
2682
|
+
interface SideNavigationItemProps extends GenericProps, HasCloseMode {
|
|
2632
2683
|
/** SideNavigationItem elements. */
|
|
2633
2684
|
children?: ReactNode;
|
|
2634
2685
|
/** Emphasis variant. */
|
|
@@ -2664,7 +2715,7 @@ declare const SideNavigationItem: Comp<SideNavigationItemProps, HTMLLIElement>;
|
|
|
2664
2715
|
/**
|
|
2665
2716
|
* Defines the props of the component.
|
|
2666
2717
|
*/
|
|
2667
|
-
interface SkeletonCircleProps extends GenericProps
|
|
2718
|
+
interface SkeletonCircleProps extends GenericProps, HasTheme$1 {
|
|
2668
2719
|
/** Size variant. */
|
|
2669
2720
|
size: GlobalSize;
|
|
2670
2721
|
/** The color of the skeleton. */
|
|
@@ -2691,7 +2742,7 @@ type SkeletonRectangleVariant = ValueOf<typeof SkeletonRectangleVariant>;
|
|
|
2691
2742
|
/**
|
|
2692
2743
|
* Defines the props of the component.
|
|
2693
2744
|
*/
|
|
2694
|
-
interface SkeletonRectangleProps extends GenericProps
|
|
2745
|
+
interface SkeletonRectangleProps extends GenericProps, HasTheme$1 {
|
|
2695
2746
|
/** Aspect ratio (use with width and not height). */
|
|
2696
2747
|
aspectRatio?: Extract<AspectRatio, 'square' | 'horizontal' | 'vertical' | 'wide'>;
|
|
2697
2748
|
/** Height size. */
|
|
@@ -2715,7 +2766,7 @@ declare const SkeletonRectangle: Comp<SkeletonRectangleProps, HTMLDivElement>;
|
|
|
2715
2766
|
/**
|
|
2716
2767
|
* Defines the props of the component.
|
|
2717
2768
|
*/
|
|
2718
|
-
interface SkeletonTypographyProps extends GenericProps
|
|
2769
|
+
interface SkeletonTypographyProps extends GenericProps, HasTheme$1 {
|
|
2719
2770
|
/** Typography variant. */
|
|
2720
2771
|
typography: TypographyInterface$1;
|
|
2721
2772
|
/** Width CSS property. */
|
|
@@ -2735,7 +2786,7 @@ declare const SkeletonTypography: Comp<SkeletonTypographyProps, HTMLDivElement>;
|
|
|
2735
2786
|
/**
|
|
2736
2787
|
* Defines the props of the component.
|
|
2737
2788
|
*/
|
|
2738
|
-
interface SliderProps extends GenericProps
|
|
2789
|
+
interface SliderProps extends GenericProps, HasTheme$1 {
|
|
2739
2790
|
/** Helper text. */
|
|
2740
2791
|
helper?: string;
|
|
2741
2792
|
/** Whether the min and max labels should be hidden or not. */
|
|
@@ -2794,7 +2845,7 @@ type SlideMode = ValueOf<typeof SlideMode>;
|
|
|
2794
2845
|
/**
|
|
2795
2846
|
* Defines the props of the component.
|
|
2796
2847
|
*/
|
|
2797
|
-
interface SlideshowProps extends GenericProps
|
|
2848
|
+
interface SlideshowProps extends GenericProps, Pick<SlidesProps, 'autoPlay' | 'slidesId' | 'id' | 'theme' | 'fillHeight' | 'groupBy' | 'slideGroupLabel'> {
|
|
2798
2849
|
/** Whether to use CSS transform translate or native scroll snap. */
|
|
2799
2850
|
slideMode?: SlideMode;
|
|
2800
2851
|
/** current slide active */
|
|
@@ -2820,7 +2871,7 @@ declare const Slideshow: Comp<SlideshowProps, HTMLDivElement>;
|
|
|
2820
2871
|
/**
|
|
2821
2872
|
* Defines the props of the component.
|
|
2822
2873
|
*/
|
|
2823
|
-
interface SlideshowItemProps extends GenericProps
|
|
2874
|
+
interface SlideshowItemProps extends GenericProps {
|
|
2824
2875
|
/** interval in which slides are automatically shown */
|
|
2825
2876
|
interval?: number;
|
|
2826
2877
|
/** Children */
|
|
@@ -2899,7 +2950,7 @@ interface UseSlideshowControls {
|
|
|
2899
2950
|
/**
|
|
2900
2951
|
* Defines the props of the component.
|
|
2901
2952
|
*/
|
|
2902
|
-
interface SlideshowControlsProps extends GenericProps
|
|
2953
|
+
interface SlideshowControlsProps extends GenericProps, HasTheme$1 {
|
|
2903
2954
|
/** Index of the current slide. */
|
|
2904
2955
|
activeIndex?: number;
|
|
2905
2956
|
/** Props to pass to the next button (minus those already set by the SlideshowControls props). */
|
|
@@ -2943,7 +2994,7 @@ declare const SlideshowControls: Comp<SlideshowControlsProps, HTMLDivElement> &
|
|
|
2943
2994
|
};
|
|
2944
2995
|
};
|
|
2945
2996
|
|
|
2946
|
-
interface SlidesProps extends GenericProps
|
|
2997
|
+
interface SlidesProps extends GenericProps, HasTheme$1 {
|
|
2947
2998
|
/** current slide active */
|
|
2948
2999
|
activeIndex: number;
|
|
2949
3000
|
/** slides id to be added to the wrapper */
|
|
@@ -2988,7 +3039,7 @@ declare const Slides: Comp<SlidesProps, HTMLDivElement>;
|
|
|
2988
3039
|
/**
|
|
2989
3040
|
* Defines the props of the component.
|
|
2990
3041
|
*/
|
|
2991
|
-
interface SwitchProps extends GenericProps
|
|
3042
|
+
interface SwitchProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
2992
3043
|
/** Helper text. */
|
|
2993
3044
|
helper?: string;
|
|
2994
3045
|
/** Whether it is checked or not. */
|
|
@@ -3020,7 +3071,7 @@ declare const Switch: Comp<SwitchProps, HTMLDivElement>;
|
|
|
3020
3071
|
/**
|
|
3021
3072
|
* Defines the props of the component.
|
|
3022
3073
|
*/
|
|
3023
|
-
interface TableProps extends GenericProps
|
|
3074
|
+
interface TableProps extends GenericProps, HasTheme$1 {
|
|
3024
3075
|
/** Whether the table has checkbox or thumbnail on first cell or not. */
|
|
3025
3076
|
hasBefore?: boolean;
|
|
3026
3077
|
/** Whether the table has dividers or not. */
|
|
@@ -3040,7 +3091,7 @@ declare const Table: Comp<TableProps, HTMLTableElement>;
|
|
|
3040
3091
|
/**
|
|
3041
3092
|
* Defines the props of the component.
|
|
3042
3093
|
*/
|
|
3043
|
-
interface TableBodyProps extends GenericProps
|
|
3094
|
+
interface TableBodyProps extends GenericProps {
|
|
3044
3095
|
/** Children */
|
|
3045
3096
|
children?: React.ReactNode;
|
|
3046
3097
|
}
|
|
@@ -3072,7 +3123,7 @@ type TableCellVariant = ValueOf<typeof TableCellVariant>;
|
|
|
3072
3123
|
/**
|
|
3073
3124
|
* Defines the props of the component.
|
|
3074
3125
|
*/
|
|
3075
|
-
interface TableCellProps extends GenericProps
|
|
3126
|
+
interface TableCellProps extends GenericProps {
|
|
3076
3127
|
/** Icon (SVG path).(thead only). */
|
|
3077
3128
|
icon?: string;
|
|
3078
3129
|
/** Whether the column is sortable or not (thead only). */
|
|
@@ -3098,7 +3149,7 @@ declare const TableCell: Comp<TableCellProps, HTMLTableCellElement>;
|
|
|
3098
3149
|
/**
|
|
3099
3150
|
* Defines the props of the component.
|
|
3100
3151
|
*/
|
|
3101
|
-
interface TableHeaderProps extends GenericProps
|
|
3152
|
+
interface TableHeaderProps extends GenericProps {
|
|
3102
3153
|
/** Children */
|
|
3103
3154
|
children?: React.ReactNode;
|
|
3104
3155
|
}
|
|
@@ -3114,7 +3165,7 @@ declare const TableHeader: Comp<TableHeaderProps, HTMLTableSectionElement>;
|
|
|
3114
3165
|
/**
|
|
3115
3166
|
* Defines the props of the component.
|
|
3116
3167
|
*/
|
|
3117
|
-
interface TableRowProps extends GenericProps
|
|
3168
|
+
interface TableRowProps extends GenericProps {
|
|
3118
3169
|
/** Whether the component is clickable or not. */
|
|
3119
3170
|
isClickable?: boolean;
|
|
3120
3171
|
/** Whether the component is disabled or not. */
|
|
@@ -3163,7 +3214,7 @@ declare enum TabListLayout {
|
|
|
3163
3214
|
/**
|
|
3164
3215
|
* Defines the props of the component.
|
|
3165
3216
|
*/
|
|
3166
|
-
interface TabListProps extends GenericProps
|
|
3217
|
+
interface TabListProps extends GenericProps, HasTheme$1 {
|
|
3167
3218
|
/** ARIA label (purpose of the set of tabs). */
|
|
3168
3219
|
['aria-label']: string;
|
|
3169
3220
|
/** Tab list. */
|
|
@@ -3187,7 +3238,7 @@ declare const TabList: Comp<TabListProps, HTMLDivElement>;
|
|
|
3187
3238
|
/**
|
|
3188
3239
|
* Defines the props of the component.
|
|
3189
3240
|
*/
|
|
3190
|
-
interface TabProps extends GenericProps
|
|
3241
|
+
interface TabProps extends GenericProps {
|
|
3191
3242
|
/** Children are not supported. */
|
|
3192
3243
|
children?: never;
|
|
3193
3244
|
/** Icon (SVG path). */
|
|
@@ -3217,7 +3268,7 @@ declare const Tab: Comp<TabProps, HTMLButtonElement>;
|
|
|
3217
3268
|
/**
|
|
3218
3269
|
* Defines the props of the component.
|
|
3219
3270
|
*/
|
|
3220
|
-
interface TabPanelProps extends GenericProps
|
|
3271
|
+
interface TabPanelProps extends GenericProps {
|
|
3221
3272
|
/** Native id property */
|
|
3222
3273
|
id?: string;
|
|
3223
3274
|
/** Whether the tab is active or not. */
|
|
@@ -3236,7 +3287,7 @@ interface TabPanelProps extends GenericProps$1 {
|
|
|
3236
3287
|
*/
|
|
3237
3288
|
declare const TabPanel: Comp<TabPanelProps, HTMLDivElement>;
|
|
3238
3289
|
|
|
3239
|
-
interface TextProps extends TextProps$1, GenericProps
|
|
3290
|
+
interface TextProps extends TextProps$1, GenericProps {
|
|
3240
3291
|
}
|
|
3241
3292
|
/**
|
|
3242
3293
|
* Text component.
|
|
@@ -3250,7 +3301,7 @@ declare const Text: Comp<TextProps, HTMLElement>;
|
|
|
3250
3301
|
/**
|
|
3251
3302
|
* Defines the props of the component.
|
|
3252
3303
|
*/
|
|
3253
|
-
interface TextFieldProps extends GenericProps
|
|
3304
|
+
interface TextFieldProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
3254
3305
|
/** Chip Group to be rendered before the main text input. */
|
|
3255
3306
|
chips?: ReactNode;
|
|
3256
3307
|
/** Props to pass to the clear button (minus those already set by the TextField props). If not specified, the button won't be displayed. */
|
|
@@ -3349,7 +3400,7 @@ declare const useFocusPointStyle: ({ image, aspectRatio, focusPoint, imgProps: {
|
|
|
3349
3400
|
/**
|
|
3350
3401
|
* Defines the props of the component.
|
|
3351
3402
|
*/
|
|
3352
|
-
interface ToolbarProps extends GenericProps
|
|
3403
|
+
interface ToolbarProps extends GenericProps {
|
|
3353
3404
|
/** After content (placed after the label). */
|
|
3354
3405
|
after?: ReactNode;
|
|
3355
3406
|
/** Before content (placed before the label). */
|
|
@@ -3373,7 +3424,7 @@ type TooltipPlacement = Extract<Placement, 'top' | 'right' | 'bottom' | 'left'>;
|
|
|
3373
3424
|
/**
|
|
3374
3425
|
* Defines the props of the component.
|
|
3375
3426
|
*/
|
|
3376
|
-
interface TooltipProps extends GenericProps
|
|
3427
|
+
interface TooltipProps extends GenericProps, HasCloseMode {
|
|
3377
3428
|
/** Anchor (element on which we activate the tooltip). */
|
|
3378
3429
|
children: ReactNode;
|
|
3379
3430
|
/** Delay (in ms) before closing the tooltip. */
|
|
@@ -3418,7 +3469,7 @@ interface FileInputProps extends Omit<React__default.ComponentProps<'input'>, 'o
|
|
|
3418
3469
|
/**
|
|
3419
3470
|
* Defines the props of the component.
|
|
3420
3471
|
*/
|
|
3421
|
-
interface UploaderProps extends GenericProps
|
|
3472
|
+
interface UploaderProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
3422
3473
|
/** Image aspect ratio. */
|
|
3423
3474
|
aspectRatio?: AspectRatio;
|
|
3424
3475
|
/** Icon (SVG path). */
|
|
@@ -3452,7 +3503,7 @@ type UserBlockSize = Extract<Size$1, 'xs' | 's' | 'm' | 'l'>;
|
|
|
3452
3503
|
/**
|
|
3453
3504
|
* Defines the props of the component.
|
|
3454
3505
|
*/
|
|
3455
|
-
interface UserBlockProps extends GenericProps
|
|
3506
|
+
interface UserBlockProps extends GenericProps, HasTheme$1 {
|
|
3456
3507
|
/** Props to pass to the avatar. */
|
|
3457
3508
|
avatarProps?: Omit<AvatarProps, 'alt'>;
|
|
3458
3509
|
/** Additional fields used to describe the user. */
|
|
@@ -3466,7 +3517,7 @@ interface UserBlockProps extends GenericProps$1, HasTheme$1 {
|
|
|
3466
3517
|
/** User name. */
|
|
3467
3518
|
name?: React__default.ReactNode;
|
|
3468
3519
|
/** Props to pass to the name block. */
|
|
3469
|
-
nameProps?: GenericProps
|
|
3520
|
+
nameProps?: GenericProps;
|
|
3470
3521
|
/** Orientation. */
|
|
3471
3522
|
orientation?: Orientation$1;
|
|
3472
3523
|
/** Simple action toolbar content. */
|
|
@@ -3502,5 +3553,5 @@ declare const ThemeProvider: React__default.FC<{
|
|
|
3502
3553
|
/** Get the theme in the current context. */
|
|
3503
3554
|
declare function useTheme(): ThemeContextValue;
|
|
3504
3555
|
|
|
3505
|
-
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonEmphasis, ButtonGroup, CLASSNAME, COMPONENT_NAME, Checkbox, Chip, ChipGroup, CommentBlock, CommentBlockVariant, DEFAULT_PROPS, DatePicker, DatePickerControlled, DatePickerField, Dialog, Divider, DragHandle, Dropdown, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, ImageLightbox, InlineList, InputHelper, InputLabel, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, ListSubheader, Message, Mosaic, Navigation, Notification, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, RawInputText, RawInputTextarea, Select, SelectMultiple, SelectMultipleField, SelectVariant, SideNavigation, SideNavigationItem, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableHeader, TableRow, Text, TextField, ThOrder, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, Toolbar, Tooltip, Uploader, UploaderVariant, UserBlock, clamp, isClickable, useFocusPointStyle, useHeadingLevel, useTheme };
|
|
3506
|
-
export type { AlertDialogProps, AutocompleteMultipleProps, AutocompleteProps, AvatarProps, AvatarSize, BadgeProps, BadgeWrapperProps, BaseButtonProps, ButtonGroupProps, ButtonProps, ButtonSize, CheckboxProps, ChipGroupProps, ChipProps, CommentBlockProps, DatePickerControlledProps, DatePickerFieldProps, DatePickerProps, DialogProps, DialogSizes, DividerProps, DragHandleProps, DropdownProps, Elevation, ExpansionPanelProps, FlagProps, FlexBoxProps, FlexHorizontalAlignment, FlexVerticalAlignment, FocusPoint, GapSize, GenericBlockProps, GridColumnGapSize, GridColumnProps, GridItemProps, GridProps, HeadingLevelProviderProps, HeadingProps, IconButtonProps, IconProps, IconSizes, ImageBlockProps, ImageBlockSize, ImageLightboxProps, InlineListProps, InputHelperProps, InputLabelProps, LightboxProps, LinkPreviewProps, LinkProps, ListDividerProps, ListItemProps, ListItemSize, ListProps, ListSubheaderProps, MarginAutoAlignment, MessageProps, MosaicProps, NavigationProps, NotificationProps, Offset, PopoverDialogProps, PopoverProps, PostBlockProps, ProgressCircularProps, ProgressCircularSize, ProgressLinearProps, ProgressProps, ProgressTrackerProps, ProgressTrackerProviderProps, ProgressTrackerStepPanelProps, ProgressTrackerStepProps, RadioButtonProps, RadioGroupProps, RawInputTextProps, RawInputTextareaProps, SelectMultipleProps, SelectProps, SideNavigationItemProps, SideNavigationProps, SkeletonCircleProps, SkeletonRectangleProps, SkeletonTypographyProps, SliderProps, SlidesProps, SlideshowControlsProps, SlideshowItemProps, SlideshowProps, SwitchProps, TabListProps, TabPanelProps, TabProps, TabProviderProps, TableBodyProps, TableCellProps, TableHeaderProps, TableProps, TableRowProps, TextFieldProps, TextProps, ThumbnailProps, ThumbnailSize, ToolbarProps, TooltipPlacement, TooltipProps, UploaderProps, UploaderSize, UserBlockProps, UserBlockSize };
|
|
3556
|
+
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonEmphasis, ButtonGroup, CLASSNAME, COMPONENT_NAME, Checkbox, Chip, ChipGroup, CommentBlock, CommentBlockVariant, DEFAULT_PROPS, DatePicker, DatePickerControlled, DatePickerField, Dialog, Divider, DragHandle, Dropdown, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, ImageLightbox, InlineList, InputHelper, InputLabel, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, ListSubheader, Message, Mosaic, Navigation, Notification, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, RawInputText, RawInputTextarea, Select, SelectMultiple, SelectMultipleField, SelectVariant, SelectionChipGroup, SideNavigation, SideNavigationItem, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableHeader, TableRow, Text, TextField, ThOrder, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, Toolbar, Tooltip, Uploader, UploaderVariant, UserBlock, clamp, isClickable, useFocusPointStyle, useHeadingLevel, useTheme };
|
|
3557
|
+
export type { AlertDialogProps, AutocompleteMultipleProps, AutocompleteProps, AvatarProps, AvatarSize, BadgeProps, BadgeWrapperProps, BaseButtonProps, ButtonGroupProps, ButtonProps, ButtonSize, CheckboxProps, ChipGroupProps, ChipProps, CommentBlockProps, DatePickerControlledProps, DatePickerFieldProps, DatePickerProps, DialogProps, DialogSizes, DividerProps, DragHandleProps, DropdownProps, Elevation, ExpansionPanelProps, FlagProps, FlexBoxProps, FlexHorizontalAlignment, FlexVerticalAlignment, FocusPoint, GapSize, GenericBlockProps, GridColumnGapSize, GridColumnProps, GridItemProps, GridProps, HeadingLevelProviderProps, HeadingProps, IconButtonProps, IconProps, IconSizes, ImageBlockProps, ImageBlockSize, ImageLightboxProps, InlineListProps, InputHelperProps, InputLabelProps, LightboxProps, LinkPreviewProps, LinkProps, ListDividerProps, ListItemProps, ListItemSize, ListProps, ListSubheaderProps, MarginAutoAlignment, MessageProps, MosaicProps, NavigationProps, NotificationProps, Offset, PopoverDialogProps, PopoverProps, PostBlockProps, ProgressCircularProps, ProgressCircularSize, ProgressLinearProps, ProgressProps, ProgressTrackerProps, ProgressTrackerProviderProps, ProgressTrackerStepPanelProps, ProgressTrackerStepProps, RadioButtonProps, RadioGroupProps, RawInputTextProps, RawInputTextareaProps, SelectMultipleProps, SelectProps, SelectionChipGroupProps, SideNavigationItemProps, SideNavigationProps, SkeletonCircleProps, SkeletonRectangleProps, SkeletonTypographyProps, SliderProps, SlidesProps, SlideshowControlsProps, SlideshowItemProps, SlideshowProps, SwitchProps, TabListProps, TabPanelProps, TabProps, TabProviderProps, TableBodyProps, TableCellProps, TableHeaderProps, TableProps, TableRowProps, TextFieldProps, TextProps, ThumbnailProps, ThumbnailSize, ToolbarProps, TooltipPlacement, TooltipProps, UploaderProps, UploaderSize, UserBlockProps, UserBlockSize };
|