@lumx/react 4.2.1-alpha.11 → 4.2.1-alpha.13
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 +87 -96
- package/index.js +2 -2
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/utils/index.d.ts +1 -1
- package/utils/index.js +4 -4
- package/utils/index.js.map +1 -1
package/index.d.ts
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
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, 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, Theme as Theme$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
7
|
import React__default, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, InputHTMLAttributes, RefObject, CSSProperties, ImgHTMLAttributes, AriaAttributes as AriaAttributes$1, SetStateAction, Key, ElementType, ComponentProps } from 'react';
|
|
8
|
-
import { GenericProps } from '@lumx/core/js/types/GenericProps';
|
|
9
|
-
import { GenericProps as GenericProps$3 } from '@lumx/core/js/utils/disabledState';
|
|
10
8
|
|
|
11
9
|
/** LumX Component Type. */
|
|
12
10
|
type Comp<P, T = HTMLElement> = {
|
|
13
11
|
(props: P & {
|
|
14
12
|
ref?: Ref<T>;
|
|
15
|
-
}
|
|
13
|
+
}): ReactElement | null;
|
|
16
14
|
/** React component type. */
|
|
17
15
|
readonly $$typeof: symbol;
|
|
18
16
|
/** Component default props. */
|
|
@@ -70,7 +68,7 @@ declare const AlertDialog: Comp<AlertDialogProps, HTMLDivElement>;
|
|
|
70
68
|
/**
|
|
71
69
|
* Defines the props of the component.
|
|
72
70
|
*/
|
|
73
|
-
interface AutocompleteProps extends GenericProps
|
|
71
|
+
interface AutocompleteProps extends GenericProps, HasTheme$1 {
|
|
74
72
|
/**
|
|
75
73
|
* Whether the suggestions list should display anchored to the input or to the wrapper.
|
|
76
74
|
* @see {@link DropdownProps#anchorToInput}
|
|
@@ -263,7 +261,7 @@ type AvatarSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>
|
|
|
263
261
|
/**
|
|
264
262
|
* Defines the props of the component.
|
|
265
263
|
*/
|
|
266
|
-
interface AvatarProps extends GenericProps
|
|
264
|
+
interface AvatarProps extends GenericProps, HasTheme$1 {
|
|
267
265
|
/** Action toolbar content. */
|
|
268
266
|
actions?: ReactNode;
|
|
269
267
|
/** Image alternative text. */
|
|
@@ -297,7 +295,7 @@ declare const Avatar: Comp<AvatarProps, HTMLDivElement>;
|
|
|
297
295
|
/**
|
|
298
296
|
* Defines the props of the component.
|
|
299
297
|
*/
|
|
300
|
-
interface BadgeProps extends GenericProps
|
|
298
|
+
interface BadgeProps extends GenericProps {
|
|
301
299
|
/** Badge content. */
|
|
302
300
|
children?: ReactNode;
|
|
303
301
|
/** Color variant. */
|
|
@@ -312,7 +310,7 @@ interface BadgeProps extends GenericProps$1 {
|
|
|
312
310
|
*/
|
|
313
311
|
declare const Badge: Comp<BadgeProps, HTMLDivElement>;
|
|
314
312
|
|
|
315
|
-
interface BadgeWrapperProps extends GenericProps
|
|
313
|
+
interface BadgeWrapperProps extends GenericProps {
|
|
316
314
|
/** Badge. */
|
|
317
315
|
badge: ReactElement;
|
|
318
316
|
/** Node to display the badge on */
|
|
@@ -546,14 +544,14 @@ interface AriaAttributes {
|
|
|
546
544
|
'aria-pressed'?: boolean | 'false' | 'mixed' | 'true' | undefined;
|
|
547
545
|
}
|
|
548
546
|
|
|
549
|
-
|
|
547
|
+
type BaseClickableProps = {
|
|
550
548
|
children?: JSXElement;
|
|
551
549
|
isDisabled?: boolean;
|
|
552
550
|
disabled?: boolean;
|
|
553
551
|
'aria-disabled'?: Booleanish;
|
|
554
552
|
onClick?: (event?: any) => void;
|
|
555
553
|
ref?: CommonRef;
|
|
556
|
-
}
|
|
554
|
+
};
|
|
557
555
|
|
|
558
556
|
/**
|
|
559
557
|
* Button size definition.
|
|
@@ -627,11 +625,7 @@ declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
|
|
|
627
625
|
*/
|
|
628
626
|
declare const DEFAULT_PROPS: Partial<ButtonProps$1>;
|
|
629
627
|
|
|
630
|
-
interface ButtonProps extends ButtonProps$1 {
|
|
631
|
-
/**
|
|
632
|
-
* Any prop (particularly any supported prop for a HTML element).
|
|
633
|
-
*/
|
|
634
|
-
[propName: string]: any;
|
|
628
|
+
interface ButtonProps extends ButtonProps$1, GenericProps {
|
|
635
629
|
}
|
|
636
630
|
/**
|
|
637
631
|
* Button component.
|
|
@@ -664,11 +658,7 @@ interface IconButtonProps$1 extends BaseButtonProps {
|
|
|
664
658
|
title?: string;
|
|
665
659
|
}
|
|
666
660
|
|
|
667
|
-
interface IconButtonProps extends IconButtonProps$1 {
|
|
668
|
-
/**
|
|
669
|
-
* Any prop (particularly any supported prop for a HTML element).
|
|
670
|
-
*/
|
|
671
|
-
[propName: string]: any;
|
|
661
|
+
interface IconButtonProps extends GenericProps, Omit<IconButtonProps$1, 'children'> {
|
|
672
662
|
/**
|
|
673
663
|
* Props to pass to the tooltip.
|
|
674
664
|
* If undefined or if tooltipProps.label is undefined, the label prop will be used as tooltip label.
|
|
@@ -698,7 +688,7 @@ interface ButtonGroupProps$1 extends HasClassName {
|
|
|
698
688
|
ref?: CommonRef;
|
|
699
689
|
}
|
|
700
690
|
|
|
701
|
-
interface ButtonGroupProps extends ButtonGroupProps$1, GenericProps
|
|
691
|
+
interface ButtonGroupProps extends ButtonGroupProps$1, GenericProps {
|
|
702
692
|
}
|
|
703
693
|
/**
|
|
704
694
|
* ButtonGroup component.
|
|
@@ -712,7 +702,7 @@ declare const ButtonGroup: Comp<ButtonGroupProps, HTMLDivElement>;
|
|
|
712
702
|
/**
|
|
713
703
|
* Defines the props of the component.
|
|
714
704
|
*/
|
|
715
|
-
interface CheckboxProps extends GenericProps
|
|
705
|
+
interface CheckboxProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
716
706
|
/** Helper text. */
|
|
717
707
|
helper?: string;
|
|
718
708
|
/** Native input id property. */
|
|
@@ -750,7 +740,7 @@ type ChipSize = Extract<Size$1, 's' | 'm'>;
|
|
|
750
740
|
/**
|
|
751
741
|
* Defines the props of the component.
|
|
752
742
|
*/
|
|
753
|
-
interface ChipProps extends GenericProps
|
|
743
|
+
interface ChipProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
754
744
|
/** A component to be rendered after the content. */
|
|
755
745
|
after?: ReactNode;
|
|
756
746
|
/** A component to be rendered before the content. */
|
|
@@ -796,7 +786,7 @@ type useChipGroupNavigationType<C = any> = (chips: C[], onChipDeleted: (chip: C)
|
|
|
796
786
|
/**
|
|
797
787
|
* Defines the props of the component.
|
|
798
788
|
*/
|
|
799
|
-
interface ChipGroupProps extends GenericProps
|
|
789
|
+
interface ChipGroupProps extends GenericProps {
|
|
800
790
|
/**
|
|
801
791
|
* Chip horizontal alignment.
|
|
802
792
|
* @deprecated
|
|
@@ -820,7 +810,7 @@ type CommentBlockVariant = ValueOf<typeof CommentBlockVariant>;
|
|
|
820
810
|
/**
|
|
821
811
|
* Defines the props of the component.
|
|
822
812
|
*/
|
|
823
|
-
interface CommentBlockProps extends GenericProps
|
|
813
|
+
interface CommentBlockProps extends GenericProps, HasTheme$1 {
|
|
824
814
|
/** Action toolbar content. */
|
|
825
815
|
actions?: ReactNode;
|
|
826
816
|
/** Props to pass to the avatar. */
|
|
@@ -873,7 +863,7 @@ declare const CommentBlock: Comp<CommentBlockProps, HTMLDivElement>;
|
|
|
873
863
|
/**
|
|
874
864
|
* Defines the props of the component.
|
|
875
865
|
*/
|
|
876
|
-
interface DatePickerProps extends GenericProps
|
|
866
|
+
interface DatePickerProps extends GenericProps {
|
|
877
867
|
/** Default month. */
|
|
878
868
|
defaultMonth?: Date;
|
|
879
869
|
/** Locale (language or region) to use. */
|
|
@@ -928,7 +918,7 @@ declare const DatePickerControlled: Comp<DatePickerControlledProps, HTMLDivEleme
|
|
|
928
918
|
/**
|
|
929
919
|
* Defines the props of the component.
|
|
930
920
|
*/
|
|
931
|
-
interface DatePickerFieldProps extends Omit<TextFieldProps, 'value' | 'onChange'>, GenericProps
|
|
921
|
+
interface DatePickerFieldProps extends Omit<TextFieldProps, 'value' | 'onChange'>, GenericProps {
|
|
932
922
|
/** Default month. */
|
|
933
923
|
defaultMonth?: Date;
|
|
934
924
|
/** Locale (language or region) to use. */
|
|
@@ -958,7 +948,7 @@ declare const DatePickerField: Comp<DatePickerFieldProps, HTMLDivElement>;
|
|
|
958
948
|
/**
|
|
959
949
|
* Defines the props of the component.
|
|
960
950
|
*/
|
|
961
|
-
interface DialogProps extends GenericProps
|
|
951
|
+
interface DialogProps extends GenericProps {
|
|
962
952
|
/** Footer content. */
|
|
963
953
|
footer?: ReactNode;
|
|
964
954
|
/** Whether the divider between the dialog content and the footer is always displayed (instead of showing it on scroll). */
|
|
@@ -988,7 +978,7 @@ interface DialogProps extends GenericProps$1 {
|
|
|
988
978
|
/** Z-axis position. */
|
|
989
979
|
zIndex?: number;
|
|
990
980
|
/** Z-axis position. */
|
|
991
|
-
dialogProps?: GenericProps
|
|
981
|
+
dialogProps?: GenericProps;
|
|
992
982
|
/** On close callback. */
|
|
993
983
|
onClose?(): void;
|
|
994
984
|
/** Callback called when the open animation starts and the close animation finishes. */
|
|
@@ -1011,7 +1001,7 @@ declare const Dialog: Comp<DialogProps, HTMLDivElement>;
|
|
|
1011
1001
|
/**
|
|
1012
1002
|
* Defines the props of the component.
|
|
1013
1003
|
*/
|
|
1014
|
-
interface DividerProps extends GenericProps
|
|
1004
|
+
interface DividerProps extends GenericProps, HasTheme$1 {
|
|
1015
1005
|
}
|
|
1016
1006
|
/**
|
|
1017
1007
|
* Divider component.
|
|
@@ -1025,7 +1015,7 @@ declare const Divider: Comp<DividerProps, HTMLHRElement>;
|
|
|
1025
1015
|
/**
|
|
1026
1016
|
* Defines the props of the component.
|
|
1027
1017
|
*/
|
|
1028
|
-
interface DragHandleProps extends GenericProps
|
|
1018
|
+
interface DragHandleProps extends GenericProps, HasTheme$1 {
|
|
1029
1019
|
}
|
|
1030
1020
|
/**
|
|
1031
1021
|
* DragHandle component.
|
|
@@ -1083,7 +1073,7 @@ type FitAnchorWidth = ValueOf<typeof FitAnchorWidth>;
|
|
|
1083
1073
|
/**
|
|
1084
1074
|
* Defines the props of the component.
|
|
1085
1075
|
*/
|
|
1086
|
-
interface PopoverProps extends GenericProps
|
|
1076
|
+
interface PopoverProps extends GenericProps, HasTheme$1 {
|
|
1087
1077
|
/** Reference to the DOM element used to set the position of the popover. */
|
|
1088
1078
|
anchorRef: React.RefObject<HTMLElement>;
|
|
1089
1079
|
/** Customize the root element. (Must accept ref forwarding and props forwarding!). */
|
|
@@ -1144,7 +1134,7 @@ declare const Popover: Comp<PopoverProps, HTMLDivElement>;
|
|
|
1144
1134
|
/**
|
|
1145
1135
|
* Defines the props of the component.
|
|
1146
1136
|
*/
|
|
1147
|
-
interface DropdownProps extends GenericProps
|
|
1137
|
+
interface DropdownProps extends GenericProps {
|
|
1148
1138
|
/**
|
|
1149
1139
|
* Reference to the element around which the dropdown is placed.
|
|
1150
1140
|
* @see {@link PopoverProps#anchorRef}
|
|
@@ -1225,7 +1215,7 @@ declare const Dropdown: Comp<DropdownProps, HTMLDivElement>;
|
|
|
1225
1215
|
/**
|
|
1226
1216
|
* Defines the props of the component.
|
|
1227
1217
|
*/
|
|
1228
|
-
interface ExpansionPanelProps extends GenericProps
|
|
1218
|
+
interface ExpansionPanelProps extends GenericProps, HasCloseMode, HasTheme$1 {
|
|
1229
1219
|
/** Whether the expansion panel has a background. */
|
|
1230
1220
|
hasBackground?: boolean;
|
|
1231
1221
|
/** Whether the header has a divider. */
|
|
@@ -1316,7 +1306,8 @@ interface FlagProps$1 extends HasClassName, HasTheme {
|
|
|
1316
1306
|
Text: (props: TextProps$1) => any;
|
|
1317
1307
|
}
|
|
1318
1308
|
|
|
1319
|
-
interface FlagProps extends GenericProps
|
|
1309
|
+
interface FlagProps extends GenericProps, Omit<FlagProps$1, 'children' | 'Text'> {
|
|
1310
|
+
/** Text label of the flag. */
|
|
1320
1311
|
label: React.ReactNode;
|
|
1321
1312
|
}
|
|
1322
1313
|
/**
|
|
@@ -1361,7 +1352,7 @@ interface FlexBoxProps$1 extends HasClassName {
|
|
|
1361
1352
|
/**
|
|
1362
1353
|
* Defines the props of the component.
|
|
1363
1354
|
*/
|
|
1364
|
-
interface FlexBoxProps extends FlexBoxProps$1, GenericProps
|
|
1355
|
+
interface FlexBoxProps extends FlexBoxProps$1, GenericProps {
|
|
1365
1356
|
/** Customize the root element. */
|
|
1366
1357
|
as?: React__default.ElementType;
|
|
1367
1358
|
}
|
|
@@ -1485,7 +1476,7 @@ interface HeadingProps$1 extends Partial<TextProps$1> {
|
|
|
1485
1476
|
as?: HeadingElement;
|
|
1486
1477
|
}
|
|
1487
1478
|
|
|
1488
|
-
interface HeadingProps extends HeadingProps$1, GenericProps
|
|
1479
|
+
interface HeadingProps extends HeadingProps$1, GenericProps {
|
|
1489
1480
|
}
|
|
1490
1481
|
/**
|
|
1491
1482
|
* Renders a heading component.
|
|
@@ -1514,7 +1505,7 @@ type GridGutterSize = Extract<Size$1, 'regular' | 'big' | 'huge'>;
|
|
|
1514
1505
|
/**
|
|
1515
1506
|
* Defines the props of the component.
|
|
1516
1507
|
*/
|
|
1517
|
-
interface GridProps extends GenericProps
|
|
1508
|
+
interface GridProps extends GenericProps {
|
|
1518
1509
|
/** Orientation. */
|
|
1519
1510
|
orientation?: Orientation$1;
|
|
1520
1511
|
/** Whether the children are wrapped or not. */
|
|
@@ -1541,7 +1532,7 @@ type Columns = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11'
|
|
|
1541
1532
|
/**
|
|
1542
1533
|
* Defines the props of the component.
|
|
1543
1534
|
*/
|
|
1544
|
-
interface GridItemProps extends GenericProps
|
|
1535
|
+
interface GridItemProps extends GenericProps {
|
|
1545
1536
|
/** Alignment. */
|
|
1546
1537
|
align?: Alignment$1;
|
|
1547
1538
|
/** Order. */
|
|
@@ -1564,7 +1555,7 @@ type GridColumnGapSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
|
1564
1555
|
/**
|
|
1565
1556
|
* Defines the props of the component.
|
|
1566
1557
|
*/
|
|
1567
|
-
interface GridColumnProps extends GenericProps
|
|
1558
|
+
interface GridColumnProps extends GenericProps {
|
|
1568
1559
|
/** Customize the root element. */
|
|
1569
1560
|
as?: React.ElementType;
|
|
1570
1561
|
/** Children elements. */
|
|
@@ -1615,7 +1606,7 @@ interface IconProps$1 extends HasClassName, HasTheme {
|
|
|
1615
1606
|
ref?: CommonRef;
|
|
1616
1607
|
}
|
|
1617
1608
|
|
|
1618
|
-
interface IconProps extends IconProps$1, GenericProps
|
|
1609
|
+
interface IconProps extends IconProps$1, GenericProps {
|
|
1619
1610
|
}
|
|
1620
1611
|
/**
|
|
1621
1612
|
* Icon component.
|
|
@@ -1673,7 +1664,7 @@ type ImgHTMLProps = ImgHTMLAttributes<HTMLImageElement>;
|
|
|
1673
1664
|
/**
|
|
1674
1665
|
* Defines the props of the component.
|
|
1675
1666
|
*/
|
|
1676
|
-
interface ThumbnailProps extends GenericProps
|
|
1667
|
+
interface ThumbnailProps extends GenericProps, HasTheme$1 {
|
|
1677
1668
|
/** Alignment of the thumbnail in it's parent (requires flex parent). */
|
|
1678
1669
|
align?: HorizontalAlignment$1;
|
|
1679
1670
|
/** Image alternative text. */
|
|
@@ -1759,7 +1750,7 @@ type ImageBlockSize = Extract<Size$1, 'xl' | 'xxl'>;
|
|
|
1759
1750
|
/**
|
|
1760
1751
|
* Defines the props of the component.
|
|
1761
1752
|
*/
|
|
1762
|
-
interface ImageBlockProps extends GenericProps
|
|
1753
|
+
interface ImageBlockProps extends GenericProps, HasTheme$1, ImageCaptionMetadata {
|
|
1763
1754
|
/** Action toolbar content. */
|
|
1764
1755
|
actions?: ReactNode;
|
|
1765
1756
|
/** Alignment. */
|
|
@@ -1851,7 +1842,7 @@ declare const ImageLightbox: Comp<ImageLightboxProps, HTMLDivElement> & {
|
|
|
1851
1842
|
/**
|
|
1852
1843
|
* Defines the props of the component.
|
|
1853
1844
|
*/
|
|
1854
|
-
interface InlineListProps extends GenericProps
|
|
1845
|
+
interface InlineListProps extends GenericProps {
|
|
1855
1846
|
/**
|
|
1856
1847
|
* Text color.
|
|
1857
1848
|
*/
|
|
@@ -1894,7 +1885,7 @@ interface InputHelperProps$1 extends HasClassName, HasTheme {
|
|
|
1894
1885
|
ref?: CommonRef;
|
|
1895
1886
|
}
|
|
1896
1887
|
|
|
1897
|
-
interface InputHelperProps extends InputHelperProps$1, GenericProps
|
|
1888
|
+
interface InputHelperProps extends InputHelperProps$1, GenericProps {
|
|
1898
1889
|
}
|
|
1899
1890
|
/**
|
|
1900
1891
|
* InputHelper component.
|
|
@@ -1918,7 +1909,7 @@ interface InputLabelProps$1 extends HasClassName, HasTheme {
|
|
|
1918
1909
|
ref?: CommonRef;
|
|
1919
1910
|
}
|
|
1920
1911
|
|
|
1921
|
-
interface InputLabelProps extends InputLabelProps$1, GenericProps
|
|
1912
|
+
interface InputLabelProps extends InputLabelProps$1, GenericProps {
|
|
1922
1913
|
}
|
|
1923
1914
|
/**
|
|
1924
1915
|
* InputLabel component.
|
|
@@ -1932,7 +1923,7 @@ declare const InputLabel: Comp<InputLabelProps, HTMLLabelElement>;
|
|
|
1932
1923
|
/**
|
|
1933
1924
|
* Defines the props of the component.
|
|
1934
1925
|
*/
|
|
1935
|
-
interface LightboxProps extends GenericProps
|
|
1926
|
+
interface LightboxProps extends GenericProps, HasTheme$1, Pick<AriaAttributes$1, 'aria-label' | 'aria-labelledby'> {
|
|
1936
1927
|
/** Props to pass to the close button (minus those already set by the Lightbox props). */
|
|
1937
1928
|
closeButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis' | 'color'>;
|
|
1938
1929
|
/** Whether the component is open or not. */
|
|
@@ -1963,7 +1954,7 @@ type HTMLAnchorProps = React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAn
|
|
|
1963
1954
|
/**
|
|
1964
1955
|
* Defines the props of the component.
|
|
1965
1956
|
*/
|
|
1966
|
-
interface LinkProps extends GenericProps
|
|
1957
|
+
interface LinkProps extends GenericProps, HasAriaDisabled$1 {
|
|
1967
1958
|
/** Color variant. */
|
|
1968
1959
|
color?: ColorWithVariants$1;
|
|
1969
1960
|
/** Lightened or darkened variant of the selected icon color. */
|
|
@@ -2003,7 +1994,7 @@ declare const Link: Comp<LinkProps, HTMLButtonElement | HTMLAnchorElement>;
|
|
|
2003
1994
|
/**
|
|
2004
1995
|
* Defines the props of the component.
|
|
2005
1996
|
*/
|
|
2006
|
-
interface LinkPreviewProps extends GenericProps
|
|
1997
|
+
interface LinkPreviewProps extends GenericProps, HasTheme$1 {
|
|
2007
1998
|
/** Description. */
|
|
2008
1999
|
description?: string;
|
|
2009
2000
|
/** Link URL. */
|
|
@@ -2046,7 +2037,7 @@ type useKeyboardListNavigationType = <I>(items: I[], ref: RefObject<HTMLElement>
|
|
|
2046
2037
|
/**
|
|
2047
2038
|
* Defines the props of the component.
|
|
2048
2039
|
*/
|
|
2049
|
-
interface ListProps extends GenericProps
|
|
2040
|
+
interface ListProps extends GenericProps {
|
|
2050
2041
|
/** List content (should be ListItem, ListSubheader or ListDivider). */
|
|
2051
2042
|
children: ReactNode;
|
|
2052
2043
|
/**
|
|
@@ -2075,7 +2066,7 @@ type ListItemSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
|
2075
2066
|
/**
|
|
2076
2067
|
* Defines the props of the component.
|
|
2077
2068
|
*/
|
|
2078
|
-
interface ListItemProps extends GenericProps
|
|
2069
|
+
interface ListItemProps extends GenericProps, HasAriaDisabled$1 {
|
|
2079
2070
|
/** A component to be rendered after the content. */
|
|
2080
2071
|
after?: ReactNode;
|
|
2081
2072
|
/** A component to be rendered before the content. */
|
|
@@ -2118,7 +2109,7 @@ declare const ListItem: Comp<ListItemProps, HTMLLIElement>;
|
|
|
2118
2109
|
/**
|
|
2119
2110
|
* Defines the props of the component.
|
|
2120
2111
|
*/
|
|
2121
|
-
type ListDividerProps = GenericProps
|
|
2112
|
+
type ListDividerProps = GenericProps;
|
|
2122
2113
|
/**
|
|
2123
2114
|
* ListDivider component.
|
|
2124
2115
|
*
|
|
@@ -2126,12 +2117,12 @@ type ListDividerProps = GenericProps$1;
|
|
|
2126
2117
|
* @param ref Component ref.
|
|
2127
2118
|
* @return React element.
|
|
2128
2119
|
*/
|
|
2129
|
-
declare const ListDivider: Comp<GenericProps
|
|
2120
|
+
declare const ListDivider: Comp<GenericProps, HTMLLIElement>;
|
|
2130
2121
|
|
|
2131
2122
|
/**
|
|
2132
2123
|
* Defines the props of the component.
|
|
2133
2124
|
*/
|
|
2134
|
-
interface ListSubheaderProps extends GenericProps
|
|
2125
|
+
interface ListSubheaderProps extends GenericProps {
|
|
2135
2126
|
/** Content. */
|
|
2136
2127
|
children: string | ReactNode;
|
|
2137
2128
|
}
|
|
@@ -2165,7 +2156,7 @@ interface MessageProps$1 extends HasClassName {
|
|
|
2165
2156
|
*/
|
|
2166
2157
|
closeButtonProps?: {
|
|
2167
2158
|
/** The callback called when the button is clicked */
|
|
2168
|
-
onClick: () => void;
|
|
2159
|
+
onClick: (event: any) => void;
|
|
2169
2160
|
/** The label of the close button. */
|
|
2170
2161
|
label: string;
|
|
2171
2162
|
};
|
|
@@ -2187,7 +2178,7 @@ declare const Message: Comp<MessageProps, HTMLDivElement>;
|
|
|
2187
2178
|
/**
|
|
2188
2179
|
* Defines the props of the component.
|
|
2189
2180
|
*/
|
|
2190
|
-
interface MosaicProps extends GenericProps
|
|
2181
|
+
interface MosaicProps extends GenericProps, HasTheme$1 {
|
|
2191
2182
|
/** Thumbnails. */
|
|
2192
2183
|
thumbnails: ThumbnailProps[];
|
|
2193
2184
|
/** On image click callback. */
|
|
@@ -2243,7 +2234,7 @@ declare const Navigation: Comp<NavigationProps, HTMLElement> & SubComponents;
|
|
|
2243
2234
|
/**
|
|
2244
2235
|
* Defines the props of the component.
|
|
2245
2236
|
*/
|
|
2246
|
-
interface NotificationProps extends GenericProps
|
|
2237
|
+
interface NotificationProps extends GenericProps, HasTheme$1 {
|
|
2247
2238
|
/** Action button label. */
|
|
2248
2239
|
actionLabel?: string;
|
|
2249
2240
|
/** Content. */
|
|
@@ -2255,9 +2246,9 @@ interface NotificationProps extends GenericProps$1, HasTheme$1 {
|
|
|
2255
2246
|
/** Z-axis position. */
|
|
2256
2247
|
zIndex?: number;
|
|
2257
2248
|
/** On action button click callback. */
|
|
2258
|
-
onActionClick?(): void;
|
|
2249
|
+
onActionClick?(event: any): void | null;
|
|
2259
2250
|
/** On click callback. */
|
|
2260
|
-
onClick?(): void;
|
|
2251
|
+
onClick?(event: any): void | null;
|
|
2261
2252
|
/** Whether the notification should be rendered into a DOM node that exists outside the DOM hierarchy of the parent component. */
|
|
2262
2253
|
usePortal?: boolean;
|
|
2263
2254
|
}
|
|
@@ -2287,7 +2278,7 @@ declare const PopoverDialog: Comp<PopoverDialogProps, HTMLDivElement>;
|
|
|
2287
2278
|
/**
|
|
2288
2279
|
* Defines the props of the component.
|
|
2289
2280
|
*/
|
|
2290
|
-
interface PostBlockProps extends GenericProps
|
|
2281
|
+
interface PostBlockProps extends GenericProps, HasTheme$1 {
|
|
2291
2282
|
/** Action toolbar content. */
|
|
2292
2283
|
actions?: ReactNode;
|
|
2293
2284
|
/** Attachment content. */
|
|
@@ -2331,7 +2322,7 @@ type ProgressVariant = ValueOf<typeof ProgressVariant>;
|
|
|
2331
2322
|
/**
|
|
2332
2323
|
* Defines the props of the component.
|
|
2333
2324
|
*/
|
|
2334
|
-
interface ProgressProps extends GenericProps
|
|
2325
|
+
interface ProgressProps extends GenericProps, HasTheme$1 {
|
|
2335
2326
|
/** Progress variant. */
|
|
2336
2327
|
variant?: ProgressVariant;
|
|
2337
2328
|
}
|
|
@@ -2352,7 +2343,7 @@ type ProgressCircularSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm'>;
|
|
|
2352
2343
|
/**
|
|
2353
2344
|
* Defines the props of the component.
|
|
2354
2345
|
*/
|
|
2355
|
-
interface ProgressCircularProps extends GenericProps
|
|
2346
|
+
interface ProgressCircularProps extends GenericProps, HasTheme$1 {
|
|
2356
2347
|
/**
|
|
2357
2348
|
* Progress circular size.
|
|
2358
2349
|
*/
|
|
@@ -2372,7 +2363,7 @@ interface ProgressCircularProps extends GenericProps$1, HasTheme$1 {
|
|
|
2372
2363
|
*/
|
|
2373
2364
|
declare const ProgressCircular: Comp<ProgressCircularProps, HTMLDivElement>;
|
|
2374
2365
|
|
|
2375
|
-
interface ProgressLinearProps extends GenericProps
|
|
2366
|
+
interface ProgressLinearProps extends GenericProps, HasTheme$1 {
|
|
2376
2367
|
}
|
|
2377
2368
|
/**
|
|
2378
2369
|
* ProgressLinear component.
|
|
@@ -2411,7 +2402,7 @@ declare const ProgressTrackerProvider: React.FC<ProgressTrackerProviderProps>;
|
|
|
2411
2402
|
/**
|
|
2412
2403
|
* Defines the props of the component.
|
|
2413
2404
|
*/
|
|
2414
|
-
interface ProgressTrackerProps extends GenericProps
|
|
2405
|
+
interface ProgressTrackerProps extends GenericProps {
|
|
2415
2406
|
/** ARIA label (purpose of the set of steps). */
|
|
2416
2407
|
['aria-label']: string;
|
|
2417
2408
|
/** Step list. */
|
|
@@ -2431,7 +2422,7 @@ declare const ProgressTracker: Comp<ProgressTrackerProps, HTMLDivElement>;
|
|
|
2431
2422
|
/**
|
|
2432
2423
|
* Defines the props of the component.
|
|
2433
2424
|
*/
|
|
2434
|
-
interface ProgressTrackerStepProps extends GenericProps
|
|
2425
|
+
interface ProgressTrackerStepProps extends GenericProps {
|
|
2435
2426
|
/** Children are not supported. */
|
|
2436
2427
|
children?: never;
|
|
2437
2428
|
/** Whether the step should be in error state or not. */
|
|
@@ -2463,7 +2454,7 @@ declare const ProgressTrackerStep: Comp<ProgressTrackerStepProps, HTMLButtonElem
|
|
|
2463
2454
|
/**
|
|
2464
2455
|
* Defines the props of the component.
|
|
2465
2456
|
*/
|
|
2466
|
-
interface ProgressTrackerStepPanelProps extends GenericProps
|
|
2457
|
+
interface ProgressTrackerStepPanelProps extends GenericProps {
|
|
2467
2458
|
/** Native id property. */
|
|
2468
2459
|
id?: string;
|
|
2469
2460
|
/** Whether the step is active or not. */
|
|
@@ -2485,7 +2476,7 @@ declare const ProgressTrackerStepPanel: Comp<ProgressTrackerStepPanelProps, HTML
|
|
|
2485
2476
|
/**
|
|
2486
2477
|
* Defines the props of the component.
|
|
2487
2478
|
*/
|
|
2488
|
-
interface RadioButtonProps extends GenericProps
|
|
2479
|
+
interface RadioButtonProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
2489
2480
|
/** Helper text. */
|
|
2490
2481
|
helper?: string;
|
|
2491
2482
|
/** Native input id property. */
|
|
@@ -2519,7 +2510,7 @@ declare const RadioButton: Comp<RadioButtonProps, HTMLDivElement>;
|
|
|
2519
2510
|
/**
|
|
2520
2511
|
* Defines the props of the component.
|
|
2521
2512
|
*/
|
|
2522
|
-
interface RadioGroupProps extends GenericProps
|
|
2513
|
+
interface RadioGroupProps extends GenericProps {
|
|
2523
2514
|
/** RadioButton elements */
|
|
2524
2515
|
children: ReactNode;
|
|
2525
2516
|
}
|
|
@@ -2540,7 +2531,7 @@ declare const SelectVariant: {
|
|
|
2540
2531
|
readonly chip: "chip";
|
|
2541
2532
|
};
|
|
2542
2533
|
type SelectVariant = ValueOf<typeof SelectVariant>;
|
|
2543
|
-
interface CoreSelectProps extends GenericProps
|
|
2534
|
+
interface CoreSelectProps extends GenericProps, HasTheme$1 {
|
|
2544
2535
|
/** Props to pass to the clear button (minus those already set by the Select props). If not specified, the button won't be displayed. */
|
|
2545
2536
|
clearButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
|
|
2546
2537
|
/** Whether the select (input variant) is displayed with error style or not. */
|
|
@@ -2620,7 +2611,7 @@ declare const SelectMultiple: Comp<SelectMultipleProps, HTMLDivElement>;
|
|
|
2620
2611
|
/**
|
|
2621
2612
|
* Defines the props of the component.
|
|
2622
2613
|
*/
|
|
2623
|
-
interface SideNavigationProps extends GenericProps
|
|
2614
|
+
interface SideNavigationProps extends GenericProps, HasTheme$1 {
|
|
2624
2615
|
/** SideNavigationItem elements. */
|
|
2625
2616
|
children: ReactNode;
|
|
2626
2617
|
}
|
|
@@ -2636,7 +2627,7 @@ declare const SideNavigation: Comp<SideNavigationProps, HTMLUListElement>;
|
|
|
2636
2627
|
/**
|
|
2637
2628
|
* Defines the props of the component.
|
|
2638
2629
|
*/
|
|
2639
|
-
interface SideNavigationItemProps extends GenericProps
|
|
2630
|
+
interface SideNavigationItemProps extends GenericProps, HasCloseMode {
|
|
2640
2631
|
/** SideNavigationItem elements. */
|
|
2641
2632
|
children?: ReactNode;
|
|
2642
2633
|
/** Emphasis variant. */
|
|
@@ -2672,7 +2663,7 @@ declare const SideNavigationItem: Comp<SideNavigationItemProps, HTMLLIElement>;
|
|
|
2672
2663
|
/**
|
|
2673
2664
|
* Defines the props of the component.
|
|
2674
2665
|
*/
|
|
2675
|
-
interface SkeletonCircleProps extends GenericProps
|
|
2666
|
+
interface SkeletonCircleProps extends GenericProps, HasTheme$1 {
|
|
2676
2667
|
/** Size variant. */
|
|
2677
2668
|
size: GlobalSize;
|
|
2678
2669
|
/** The color of the skeleton. */
|
|
@@ -2699,7 +2690,7 @@ type SkeletonRectangleVariant = ValueOf<typeof SkeletonRectangleVariant>;
|
|
|
2699
2690
|
/**
|
|
2700
2691
|
* Defines the props of the component.
|
|
2701
2692
|
*/
|
|
2702
|
-
interface SkeletonRectangleProps extends GenericProps
|
|
2693
|
+
interface SkeletonRectangleProps extends GenericProps, HasTheme$1 {
|
|
2703
2694
|
/** Aspect ratio (use with width and not height). */
|
|
2704
2695
|
aspectRatio?: Extract<AspectRatio, 'square' | 'horizontal' | 'vertical' | 'wide'>;
|
|
2705
2696
|
/** Height size. */
|
|
@@ -2723,7 +2714,7 @@ declare const SkeletonRectangle: Comp<SkeletonRectangleProps, HTMLDivElement>;
|
|
|
2723
2714
|
/**
|
|
2724
2715
|
* Defines the props of the component.
|
|
2725
2716
|
*/
|
|
2726
|
-
interface SkeletonTypographyProps extends GenericProps
|
|
2717
|
+
interface SkeletonTypographyProps extends GenericProps, HasTheme$1 {
|
|
2727
2718
|
/** Typography variant. */
|
|
2728
2719
|
typography: TypographyInterface$1;
|
|
2729
2720
|
/** Width CSS property. */
|
|
@@ -2743,7 +2734,7 @@ declare const SkeletonTypography: Comp<SkeletonTypographyProps, HTMLDivElement>;
|
|
|
2743
2734
|
/**
|
|
2744
2735
|
* Defines the props of the component.
|
|
2745
2736
|
*/
|
|
2746
|
-
interface SliderProps extends GenericProps
|
|
2737
|
+
interface SliderProps extends GenericProps, HasTheme$1 {
|
|
2747
2738
|
/** Helper text. */
|
|
2748
2739
|
helper?: string;
|
|
2749
2740
|
/** Whether the min and max labels should be hidden or not. */
|
|
@@ -2802,7 +2793,7 @@ type SlideMode = ValueOf<typeof SlideMode>;
|
|
|
2802
2793
|
/**
|
|
2803
2794
|
* Defines the props of the component.
|
|
2804
2795
|
*/
|
|
2805
|
-
interface SlideshowProps extends GenericProps
|
|
2796
|
+
interface SlideshowProps extends GenericProps, Pick<SlidesProps, 'autoPlay' | 'slidesId' | 'id' | 'theme' | 'fillHeight' | 'groupBy' | 'slideGroupLabel'> {
|
|
2806
2797
|
/** Whether to use CSS transform translate or native scroll snap. */
|
|
2807
2798
|
slideMode?: SlideMode;
|
|
2808
2799
|
/** current slide active */
|
|
@@ -2828,7 +2819,7 @@ declare const Slideshow: Comp<SlideshowProps, HTMLDivElement>;
|
|
|
2828
2819
|
/**
|
|
2829
2820
|
* Defines the props of the component.
|
|
2830
2821
|
*/
|
|
2831
|
-
interface SlideshowItemProps extends GenericProps
|
|
2822
|
+
interface SlideshowItemProps extends GenericProps {
|
|
2832
2823
|
/** interval in which slides are automatically shown */
|
|
2833
2824
|
interval?: number;
|
|
2834
2825
|
/** Children */
|
|
@@ -2907,7 +2898,7 @@ interface UseSlideshowControls {
|
|
|
2907
2898
|
/**
|
|
2908
2899
|
* Defines the props of the component.
|
|
2909
2900
|
*/
|
|
2910
|
-
interface SlideshowControlsProps extends GenericProps
|
|
2901
|
+
interface SlideshowControlsProps extends GenericProps, HasTheme$1 {
|
|
2911
2902
|
/** Index of the current slide. */
|
|
2912
2903
|
activeIndex?: number;
|
|
2913
2904
|
/** Props to pass to the next button (minus those already set by the SlideshowControls props). */
|
|
@@ -2951,7 +2942,7 @@ declare const SlideshowControls: Comp<SlideshowControlsProps, HTMLDivElement> &
|
|
|
2951
2942
|
};
|
|
2952
2943
|
};
|
|
2953
2944
|
|
|
2954
|
-
interface SlidesProps extends GenericProps
|
|
2945
|
+
interface SlidesProps extends GenericProps, HasTheme$1 {
|
|
2955
2946
|
/** current slide active */
|
|
2956
2947
|
activeIndex: number;
|
|
2957
2948
|
/** slides id to be added to the wrapper */
|
|
@@ -2996,7 +2987,7 @@ declare const Slides: Comp<SlidesProps, HTMLDivElement>;
|
|
|
2996
2987
|
/**
|
|
2997
2988
|
* Defines the props of the component.
|
|
2998
2989
|
*/
|
|
2999
|
-
interface SwitchProps extends GenericProps
|
|
2990
|
+
interface SwitchProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
3000
2991
|
/** Helper text. */
|
|
3001
2992
|
helper?: string;
|
|
3002
2993
|
/** Whether it is checked or not. */
|
|
@@ -3028,7 +3019,7 @@ declare const Switch: Comp<SwitchProps, HTMLDivElement>;
|
|
|
3028
3019
|
/**
|
|
3029
3020
|
* Defines the props of the component.
|
|
3030
3021
|
*/
|
|
3031
|
-
interface TableProps extends GenericProps
|
|
3022
|
+
interface TableProps extends GenericProps, HasTheme$1 {
|
|
3032
3023
|
/** Whether the table has checkbox or thumbnail on first cell or not. */
|
|
3033
3024
|
hasBefore?: boolean;
|
|
3034
3025
|
/** Whether the table has dividers or not. */
|
|
@@ -3048,7 +3039,7 @@ declare const Table: Comp<TableProps, HTMLTableElement>;
|
|
|
3048
3039
|
/**
|
|
3049
3040
|
* Defines the props of the component.
|
|
3050
3041
|
*/
|
|
3051
|
-
interface TableBodyProps extends GenericProps
|
|
3042
|
+
interface TableBodyProps extends GenericProps {
|
|
3052
3043
|
/** Children */
|
|
3053
3044
|
children?: React.ReactNode;
|
|
3054
3045
|
}
|
|
@@ -3080,7 +3071,7 @@ type TableCellVariant = ValueOf<typeof TableCellVariant>;
|
|
|
3080
3071
|
/**
|
|
3081
3072
|
* Defines the props of the component.
|
|
3082
3073
|
*/
|
|
3083
|
-
interface TableCellProps extends GenericProps
|
|
3074
|
+
interface TableCellProps extends GenericProps {
|
|
3084
3075
|
/** Icon (SVG path).(thead only). */
|
|
3085
3076
|
icon?: string;
|
|
3086
3077
|
/** Whether the column is sortable or not (thead only). */
|
|
@@ -3106,7 +3097,7 @@ declare const TableCell: Comp<TableCellProps, HTMLTableCellElement>;
|
|
|
3106
3097
|
/**
|
|
3107
3098
|
* Defines the props of the component.
|
|
3108
3099
|
*/
|
|
3109
|
-
interface TableHeaderProps extends GenericProps
|
|
3100
|
+
interface TableHeaderProps extends GenericProps {
|
|
3110
3101
|
/** Children */
|
|
3111
3102
|
children?: React.ReactNode;
|
|
3112
3103
|
}
|
|
@@ -3122,7 +3113,7 @@ declare const TableHeader: Comp<TableHeaderProps, HTMLTableSectionElement>;
|
|
|
3122
3113
|
/**
|
|
3123
3114
|
* Defines the props of the component.
|
|
3124
3115
|
*/
|
|
3125
|
-
interface TableRowProps extends GenericProps
|
|
3116
|
+
interface TableRowProps extends GenericProps {
|
|
3126
3117
|
/** Whether the component is clickable or not. */
|
|
3127
3118
|
isClickable?: boolean;
|
|
3128
3119
|
/** Whether the component is disabled or not. */
|
|
@@ -3171,7 +3162,7 @@ declare enum TabListLayout {
|
|
|
3171
3162
|
/**
|
|
3172
3163
|
* Defines the props of the component.
|
|
3173
3164
|
*/
|
|
3174
|
-
interface TabListProps extends GenericProps
|
|
3165
|
+
interface TabListProps extends GenericProps, HasTheme$1 {
|
|
3175
3166
|
/** ARIA label (purpose of the set of tabs). */
|
|
3176
3167
|
['aria-label']: string;
|
|
3177
3168
|
/** Tab list. */
|
|
@@ -3195,7 +3186,7 @@ declare const TabList: Comp<TabListProps, HTMLDivElement>;
|
|
|
3195
3186
|
/**
|
|
3196
3187
|
* Defines the props of the component.
|
|
3197
3188
|
*/
|
|
3198
|
-
interface TabProps extends GenericProps
|
|
3189
|
+
interface TabProps extends GenericProps {
|
|
3199
3190
|
/** Children are not supported. */
|
|
3200
3191
|
children?: never;
|
|
3201
3192
|
/** Icon (SVG path). */
|
|
@@ -3225,7 +3216,7 @@ declare const Tab: Comp<TabProps, HTMLButtonElement>;
|
|
|
3225
3216
|
/**
|
|
3226
3217
|
* Defines the props of the component.
|
|
3227
3218
|
*/
|
|
3228
|
-
interface TabPanelProps extends GenericProps
|
|
3219
|
+
interface TabPanelProps extends GenericProps {
|
|
3229
3220
|
/** Native id property */
|
|
3230
3221
|
id?: string;
|
|
3231
3222
|
/** Whether the tab is active or not. */
|
|
@@ -3244,7 +3235,7 @@ interface TabPanelProps extends GenericProps$1 {
|
|
|
3244
3235
|
*/
|
|
3245
3236
|
declare const TabPanel: Comp<TabPanelProps, HTMLDivElement>;
|
|
3246
3237
|
|
|
3247
|
-
interface TextProps extends TextProps$1, GenericProps
|
|
3238
|
+
interface TextProps extends TextProps$1, GenericProps {
|
|
3248
3239
|
}
|
|
3249
3240
|
/**
|
|
3250
3241
|
* Text component.
|
|
@@ -3258,7 +3249,7 @@ declare const Text: Comp<TextProps, HTMLElement>;
|
|
|
3258
3249
|
/**
|
|
3259
3250
|
* Defines the props of the component.
|
|
3260
3251
|
*/
|
|
3261
|
-
interface TextFieldProps extends GenericProps
|
|
3252
|
+
interface TextFieldProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
3262
3253
|
/** Chip Group to be rendered before the main text input. */
|
|
3263
3254
|
chips?: ReactNode;
|
|
3264
3255
|
/** Props to pass to the clear button (minus those already set by the TextField props). If not specified, the button won't be displayed. */
|
|
@@ -3357,7 +3348,7 @@ declare const useFocusPointStyle: ({ image, aspectRatio, focusPoint, imgProps: {
|
|
|
3357
3348
|
/**
|
|
3358
3349
|
* Defines the props of the component.
|
|
3359
3350
|
*/
|
|
3360
|
-
interface ToolbarProps extends GenericProps
|
|
3351
|
+
interface ToolbarProps extends GenericProps {
|
|
3361
3352
|
/** After content (placed after the label). */
|
|
3362
3353
|
after?: ReactNode;
|
|
3363
3354
|
/** Before content (placed before the label). */
|
|
@@ -3381,7 +3372,7 @@ type TooltipPlacement = Extract<Placement, 'top' | 'right' | 'bottom' | 'left'>;
|
|
|
3381
3372
|
/**
|
|
3382
3373
|
* Defines the props of the component.
|
|
3383
3374
|
*/
|
|
3384
|
-
interface TooltipProps extends GenericProps
|
|
3375
|
+
interface TooltipProps extends GenericProps, HasCloseMode {
|
|
3385
3376
|
/** Anchor (element on which we activate the tooltip). */
|
|
3386
3377
|
children: ReactNode;
|
|
3387
3378
|
/** Delay (in ms) before closing the tooltip. */
|
|
@@ -3426,7 +3417,7 @@ interface FileInputProps extends Omit<React__default.ComponentProps<'input'>, 'o
|
|
|
3426
3417
|
/**
|
|
3427
3418
|
* Defines the props of the component.
|
|
3428
3419
|
*/
|
|
3429
|
-
interface UploaderProps extends GenericProps
|
|
3420
|
+
interface UploaderProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
3430
3421
|
/** Image aspect ratio. */
|
|
3431
3422
|
aspectRatio?: AspectRatio;
|
|
3432
3423
|
/** Icon (SVG path). */
|
|
@@ -3460,7 +3451,7 @@ type UserBlockSize = Extract<Size$1, 'xs' | 's' | 'm' | 'l'>;
|
|
|
3460
3451
|
/**
|
|
3461
3452
|
* Defines the props of the component.
|
|
3462
3453
|
*/
|
|
3463
|
-
interface UserBlockProps extends GenericProps
|
|
3454
|
+
interface UserBlockProps extends GenericProps, HasTheme$1 {
|
|
3464
3455
|
/** Props to pass to the avatar. */
|
|
3465
3456
|
avatarProps?: Omit<AvatarProps, 'alt'>;
|
|
3466
3457
|
/** Additional fields used to describe the user. */
|
|
@@ -3474,7 +3465,7 @@ interface UserBlockProps extends GenericProps$1, HasTheme$1 {
|
|
|
3474
3465
|
/** User name. */
|
|
3475
3466
|
name?: React__default.ReactNode;
|
|
3476
3467
|
/** Props to pass to the name block. */
|
|
3477
|
-
nameProps?: GenericProps
|
|
3468
|
+
nameProps?: GenericProps;
|
|
3478
3469
|
/** Orientation. */
|
|
3479
3470
|
orientation?: Orientation$1;
|
|
3480
3471
|
/** Simple action toolbar content. */
|