@lumx/react 4.2.1-alpha.12 → 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 +88 -102
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +3 -3
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, Orientation as Orientation$1, Alignment as Alignment$1, AspectRatio, ColorWithVariants as ColorWithVariants$1, ColorVariant as ColorVariant$1, Typography as Typography$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$2 } 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
|
-
disabled?: boolean
|
|
550
|
+
disabled?: boolean;
|
|
553
551
|
'aria-disabled'?: Booleanish;
|
|
554
|
-
onClick?: (
|
|
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.
|
|
@@ -640,7 +634,7 @@ interface ButtonProps extends ButtonProps$1 {
|
|
|
640
634
|
* @param ref Component ref.
|
|
641
635
|
* @return React element.
|
|
642
636
|
*/
|
|
643
|
-
declare const Button: Comp<ButtonProps,
|
|
637
|
+
declare const Button: Comp<ButtonProps, HTMLButtonElement | HTMLAnchorElement>;
|
|
644
638
|
|
|
645
639
|
interface IconButtonProps$1 extends BaseButtonProps {
|
|
646
640
|
/**
|
|
@@ -664,11 +658,7 @@ interface IconButtonProps$1 extends BaseButtonProps {
|
|
|
664
658
|
title?: string;
|
|
665
659
|
}
|
|
666
660
|
|
|
667
|
-
interface IconButtonProps extends Omit<IconButtonProps$1, 'children'> {
|
|
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,11 +1306,7 @@ interface FlagProps$1 extends HasClassName, HasTheme {
|
|
|
1316
1306
|
Text: (props: TextProps$1) => any;
|
|
1317
1307
|
}
|
|
1318
1308
|
|
|
1319
|
-
interface FlagProps extends Omit<FlagProps$1, 'children' | 'Text'> {
|
|
1320
|
-
/**
|
|
1321
|
-
* Any prop (particularly any supported prop for a HTML element).
|
|
1322
|
-
*/
|
|
1323
|
-
[propName: string]: any;
|
|
1309
|
+
interface FlagProps extends GenericProps, Omit<FlagProps$1, 'children' | 'Text'> {
|
|
1324
1310
|
/** Text label of the flag. */
|
|
1325
1311
|
label: React.ReactNode;
|
|
1326
1312
|
}
|
|
@@ -1366,7 +1352,7 @@ interface FlexBoxProps$1 extends HasClassName {
|
|
|
1366
1352
|
/**
|
|
1367
1353
|
* Defines the props of the component.
|
|
1368
1354
|
*/
|
|
1369
|
-
interface FlexBoxProps extends FlexBoxProps$1, GenericProps
|
|
1355
|
+
interface FlexBoxProps extends FlexBoxProps$1, GenericProps {
|
|
1370
1356
|
/** Customize the root element. */
|
|
1371
1357
|
as?: React__default.ElementType;
|
|
1372
1358
|
}
|
|
@@ -1490,7 +1476,7 @@ interface HeadingProps$1 extends Partial<TextProps$1> {
|
|
|
1490
1476
|
as?: HeadingElement;
|
|
1491
1477
|
}
|
|
1492
1478
|
|
|
1493
|
-
interface HeadingProps extends HeadingProps$1, GenericProps
|
|
1479
|
+
interface HeadingProps extends HeadingProps$1, GenericProps {
|
|
1494
1480
|
}
|
|
1495
1481
|
/**
|
|
1496
1482
|
* Renders a heading component.
|
|
@@ -1519,7 +1505,7 @@ type GridGutterSize = Extract<Size$1, 'regular' | 'big' | 'huge'>;
|
|
|
1519
1505
|
/**
|
|
1520
1506
|
* Defines the props of the component.
|
|
1521
1507
|
*/
|
|
1522
|
-
interface GridProps extends GenericProps
|
|
1508
|
+
interface GridProps extends GenericProps {
|
|
1523
1509
|
/** Orientation. */
|
|
1524
1510
|
orientation?: Orientation$1;
|
|
1525
1511
|
/** Whether the children are wrapped or not. */
|
|
@@ -1546,7 +1532,7 @@ type Columns = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11'
|
|
|
1546
1532
|
/**
|
|
1547
1533
|
* Defines the props of the component.
|
|
1548
1534
|
*/
|
|
1549
|
-
interface GridItemProps extends GenericProps
|
|
1535
|
+
interface GridItemProps extends GenericProps {
|
|
1550
1536
|
/** Alignment. */
|
|
1551
1537
|
align?: Alignment$1;
|
|
1552
1538
|
/** Order. */
|
|
@@ -1569,7 +1555,7 @@ type GridColumnGapSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
|
1569
1555
|
/**
|
|
1570
1556
|
* Defines the props of the component.
|
|
1571
1557
|
*/
|
|
1572
|
-
interface GridColumnProps extends GenericProps
|
|
1558
|
+
interface GridColumnProps extends GenericProps {
|
|
1573
1559
|
/** Customize the root element. */
|
|
1574
1560
|
as?: React.ElementType;
|
|
1575
1561
|
/** Children elements. */
|
|
@@ -1620,7 +1606,7 @@ interface IconProps$1 extends HasClassName, HasTheme {
|
|
|
1620
1606
|
ref?: CommonRef;
|
|
1621
1607
|
}
|
|
1622
1608
|
|
|
1623
|
-
interface IconProps extends IconProps$1, GenericProps
|
|
1609
|
+
interface IconProps extends IconProps$1, GenericProps {
|
|
1624
1610
|
}
|
|
1625
1611
|
/**
|
|
1626
1612
|
* Icon component.
|
|
@@ -1678,7 +1664,7 @@ type ImgHTMLProps = ImgHTMLAttributes<HTMLImageElement>;
|
|
|
1678
1664
|
/**
|
|
1679
1665
|
* Defines the props of the component.
|
|
1680
1666
|
*/
|
|
1681
|
-
interface ThumbnailProps extends GenericProps
|
|
1667
|
+
interface ThumbnailProps extends GenericProps, HasTheme$1 {
|
|
1682
1668
|
/** Alignment of the thumbnail in it's parent (requires flex parent). */
|
|
1683
1669
|
align?: HorizontalAlignment$1;
|
|
1684
1670
|
/** Image alternative text. */
|
|
@@ -1764,7 +1750,7 @@ type ImageBlockSize = Extract<Size$1, 'xl' | 'xxl'>;
|
|
|
1764
1750
|
/**
|
|
1765
1751
|
* Defines the props of the component.
|
|
1766
1752
|
*/
|
|
1767
|
-
interface ImageBlockProps extends GenericProps
|
|
1753
|
+
interface ImageBlockProps extends GenericProps, HasTheme$1, ImageCaptionMetadata {
|
|
1768
1754
|
/** Action toolbar content. */
|
|
1769
1755
|
actions?: ReactNode;
|
|
1770
1756
|
/** Alignment. */
|
|
@@ -1856,7 +1842,7 @@ declare const ImageLightbox: Comp<ImageLightboxProps, HTMLDivElement> & {
|
|
|
1856
1842
|
/**
|
|
1857
1843
|
* Defines the props of the component.
|
|
1858
1844
|
*/
|
|
1859
|
-
interface InlineListProps extends GenericProps
|
|
1845
|
+
interface InlineListProps extends GenericProps {
|
|
1860
1846
|
/**
|
|
1861
1847
|
* Text color.
|
|
1862
1848
|
*/
|
|
@@ -1899,7 +1885,7 @@ interface InputHelperProps$1 extends HasClassName, HasTheme {
|
|
|
1899
1885
|
ref?: CommonRef;
|
|
1900
1886
|
}
|
|
1901
1887
|
|
|
1902
|
-
interface InputHelperProps extends InputHelperProps$1, GenericProps
|
|
1888
|
+
interface InputHelperProps extends InputHelperProps$1, GenericProps {
|
|
1903
1889
|
}
|
|
1904
1890
|
/**
|
|
1905
1891
|
* InputHelper component.
|
|
@@ -1923,7 +1909,7 @@ interface InputLabelProps$1 extends HasClassName, HasTheme {
|
|
|
1923
1909
|
ref?: CommonRef;
|
|
1924
1910
|
}
|
|
1925
1911
|
|
|
1926
|
-
interface InputLabelProps extends InputLabelProps$1, GenericProps
|
|
1912
|
+
interface InputLabelProps extends InputLabelProps$1, GenericProps {
|
|
1927
1913
|
}
|
|
1928
1914
|
/**
|
|
1929
1915
|
* InputLabel component.
|
|
@@ -1937,7 +1923,7 @@ declare const InputLabel: Comp<InputLabelProps, HTMLLabelElement>;
|
|
|
1937
1923
|
/**
|
|
1938
1924
|
* Defines the props of the component.
|
|
1939
1925
|
*/
|
|
1940
|
-
interface LightboxProps extends GenericProps
|
|
1926
|
+
interface LightboxProps extends GenericProps, HasTheme$1, Pick<AriaAttributes$1, 'aria-label' | 'aria-labelledby'> {
|
|
1941
1927
|
/** Props to pass to the close button (minus those already set by the Lightbox props). */
|
|
1942
1928
|
closeButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis' | 'color'>;
|
|
1943
1929
|
/** Whether the component is open or not. */
|
|
@@ -1968,7 +1954,7 @@ type HTMLAnchorProps = React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAn
|
|
|
1968
1954
|
/**
|
|
1969
1955
|
* Defines the props of the component.
|
|
1970
1956
|
*/
|
|
1971
|
-
interface LinkProps extends GenericProps
|
|
1957
|
+
interface LinkProps extends GenericProps, HasAriaDisabled$1 {
|
|
1972
1958
|
/** Color variant. */
|
|
1973
1959
|
color?: ColorWithVariants$1;
|
|
1974
1960
|
/** Lightened or darkened variant of the selected icon color. */
|
|
@@ -2003,12 +1989,12 @@ interface LinkProps extends GenericProps$1, HasAriaDisabled$1 {
|
|
|
2003
1989
|
* @param ref Component ref.
|
|
2004
1990
|
* @return React element.
|
|
2005
1991
|
*/
|
|
2006
|
-
declare const Link: Comp<LinkProps,
|
|
1992
|
+
declare const Link: Comp<LinkProps, HTMLButtonElement | HTMLAnchorElement>;
|
|
2007
1993
|
|
|
2008
1994
|
/**
|
|
2009
1995
|
* Defines the props of the component.
|
|
2010
1996
|
*/
|
|
2011
|
-
interface LinkPreviewProps extends GenericProps
|
|
1997
|
+
interface LinkPreviewProps extends GenericProps, HasTheme$1 {
|
|
2012
1998
|
/** Description. */
|
|
2013
1999
|
description?: string;
|
|
2014
2000
|
/** Link URL. */
|
|
@@ -2051,7 +2037,7 @@ type useKeyboardListNavigationType = <I>(items: I[], ref: RefObject<HTMLElement>
|
|
|
2051
2037
|
/**
|
|
2052
2038
|
* Defines the props of the component.
|
|
2053
2039
|
*/
|
|
2054
|
-
interface ListProps extends GenericProps
|
|
2040
|
+
interface ListProps extends GenericProps {
|
|
2055
2041
|
/** List content (should be ListItem, ListSubheader or ListDivider). */
|
|
2056
2042
|
children: ReactNode;
|
|
2057
2043
|
/**
|
|
@@ -2080,7 +2066,7 @@ type ListItemSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
|
2080
2066
|
/**
|
|
2081
2067
|
* Defines the props of the component.
|
|
2082
2068
|
*/
|
|
2083
|
-
interface ListItemProps extends GenericProps
|
|
2069
|
+
interface ListItemProps extends GenericProps, HasAriaDisabled$1 {
|
|
2084
2070
|
/** A component to be rendered after the content. */
|
|
2085
2071
|
after?: ReactNode;
|
|
2086
2072
|
/** A component to be rendered before the content. */
|
|
@@ -2123,7 +2109,7 @@ declare const ListItem: Comp<ListItemProps, HTMLLIElement>;
|
|
|
2123
2109
|
/**
|
|
2124
2110
|
* Defines the props of the component.
|
|
2125
2111
|
*/
|
|
2126
|
-
type ListDividerProps = GenericProps
|
|
2112
|
+
type ListDividerProps = GenericProps;
|
|
2127
2113
|
/**
|
|
2128
2114
|
* ListDivider component.
|
|
2129
2115
|
*
|
|
@@ -2131,12 +2117,12 @@ type ListDividerProps = GenericProps$1;
|
|
|
2131
2117
|
* @param ref Component ref.
|
|
2132
2118
|
* @return React element.
|
|
2133
2119
|
*/
|
|
2134
|
-
declare const ListDivider: Comp<GenericProps
|
|
2120
|
+
declare const ListDivider: Comp<GenericProps, HTMLLIElement>;
|
|
2135
2121
|
|
|
2136
2122
|
/**
|
|
2137
2123
|
* Defines the props of the component.
|
|
2138
2124
|
*/
|
|
2139
|
-
interface ListSubheaderProps extends GenericProps
|
|
2125
|
+
interface ListSubheaderProps extends GenericProps {
|
|
2140
2126
|
/** Content. */
|
|
2141
2127
|
children: string | ReactNode;
|
|
2142
2128
|
}
|
|
@@ -2170,7 +2156,7 @@ interface MessageProps$1 extends HasClassName {
|
|
|
2170
2156
|
*/
|
|
2171
2157
|
closeButtonProps?: {
|
|
2172
2158
|
/** The callback called when the button is clicked */
|
|
2173
|
-
onClick: (
|
|
2159
|
+
onClick: (event: any) => void;
|
|
2174
2160
|
/** The label of the close button. */
|
|
2175
2161
|
label: string;
|
|
2176
2162
|
};
|
|
@@ -2192,7 +2178,7 @@ declare const Message: Comp<MessageProps, HTMLDivElement>;
|
|
|
2192
2178
|
/**
|
|
2193
2179
|
* Defines the props of the component.
|
|
2194
2180
|
*/
|
|
2195
|
-
interface MosaicProps extends GenericProps
|
|
2181
|
+
interface MosaicProps extends GenericProps, HasTheme$1 {
|
|
2196
2182
|
/** Thumbnails. */
|
|
2197
2183
|
thumbnails: ThumbnailProps[];
|
|
2198
2184
|
/** On image click callback. */
|
|
@@ -2248,7 +2234,7 @@ declare const Navigation: Comp<NavigationProps, HTMLElement> & SubComponents;
|
|
|
2248
2234
|
/**
|
|
2249
2235
|
* Defines the props of the component.
|
|
2250
2236
|
*/
|
|
2251
|
-
interface NotificationProps extends GenericProps
|
|
2237
|
+
interface NotificationProps extends GenericProps, HasTheme$1 {
|
|
2252
2238
|
/** Action button label. */
|
|
2253
2239
|
actionLabel?: string;
|
|
2254
2240
|
/** Content. */
|
|
@@ -2292,7 +2278,7 @@ declare const PopoverDialog: Comp<PopoverDialogProps, HTMLDivElement>;
|
|
|
2292
2278
|
/**
|
|
2293
2279
|
* Defines the props of the component.
|
|
2294
2280
|
*/
|
|
2295
|
-
interface PostBlockProps extends GenericProps
|
|
2281
|
+
interface PostBlockProps extends GenericProps, HasTheme$1 {
|
|
2296
2282
|
/** Action toolbar content. */
|
|
2297
2283
|
actions?: ReactNode;
|
|
2298
2284
|
/** Attachment content. */
|
|
@@ -2336,7 +2322,7 @@ type ProgressVariant = ValueOf<typeof ProgressVariant>;
|
|
|
2336
2322
|
/**
|
|
2337
2323
|
* Defines the props of the component.
|
|
2338
2324
|
*/
|
|
2339
|
-
interface ProgressProps extends GenericProps
|
|
2325
|
+
interface ProgressProps extends GenericProps, HasTheme$1 {
|
|
2340
2326
|
/** Progress variant. */
|
|
2341
2327
|
variant?: ProgressVariant;
|
|
2342
2328
|
}
|
|
@@ -2357,7 +2343,7 @@ type ProgressCircularSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm'>;
|
|
|
2357
2343
|
/**
|
|
2358
2344
|
* Defines the props of the component.
|
|
2359
2345
|
*/
|
|
2360
|
-
interface ProgressCircularProps extends GenericProps
|
|
2346
|
+
interface ProgressCircularProps extends GenericProps, HasTheme$1 {
|
|
2361
2347
|
/**
|
|
2362
2348
|
* Progress circular size.
|
|
2363
2349
|
*/
|
|
@@ -2377,7 +2363,7 @@ interface ProgressCircularProps extends GenericProps$1, HasTheme$1 {
|
|
|
2377
2363
|
*/
|
|
2378
2364
|
declare const ProgressCircular: Comp<ProgressCircularProps, HTMLDivElement>;
|
|
2379
2365
|
|
|
2380
|
-
interface ProgressLinearProps extends GenericProps
|
|
2366
|
+
interface ProgressLinearProps extends GenericProps, HasTheme$1 {
|
|
2381
2367
|
}
|
|
2382
2368
|
/**
|
|
2383
2369
|
* ProgressLinear component.
|
|
@@ -2416,7 +2402,7 @@ declare const ProgressTrackerProvider: React.FC<ProgressTrackerProviderProps>;
|
|
|
2416
2402
|
/**
|
|
2417
2403
|
* Defines the props of the component.
|
|
2418
2404
|
*/
|
|
2419
|
-
interface ProgressTrackerProps extends GenericProps
|
|
2405
|
+
interface ProgressTrackerProps extends GenericProps {
|
|
2420
2406
|
/** ARIA label (purpose of the set of steps). */
|
|
2421
2407
|
['aria-label']: string;
|
|
2422
2408
|
/** Step list. */
|
|
@@ -2436,7 +2422,7 @@ declare const ProgressTracker: Comp<ProgressTrackerProps, HTMLDivElement>;
|
|
|
2436
2422
|
/**
|
|
2437
2423
|
* Defines the props of the component.
|
|
2438
2424
|
*/
|
|
2439
|
-
interface ProgressTrackerStepProps extends GenericProps
|
|
2425
|
+
interface ProgressTrackerStepProps extends GenericProps {
|
|
2440
2426
|
/** Children are not supported. */
|
|
2441
2427
|
children?: never;
|
|
2442
2428
|
/** Whether the step should be in error state or not. */
|
|
@@ -2468,7 +2454,7 @@ declare const ProgressTrackerStep: Comp<ProgressTrackerStepProps, HTMLButtonElem
|
|
|
2468
2454
|
/**
|
|
2469
2455
|
* Defines the props of the component.
|
|
2470
2456
|
*/
|
|
2471
|
-
interface ProgressTrackerStepPanelProps extends GenericProps
|
|
2457
|
+
interface ProgressTrackerStepPanelProps extends GenericProps {
|
|
2472
2458
|
/** Native id property. */
|
|
2473
2459
|
id?: string;
|
|
2474
2460
|
/** Whether the step is active or not. */
|
|
@@ -2490,7 +2476,7 @@ declare const ProgressTrackerStepPanel: Comp<ProgressTrackerStepPanelProps, HTML
|
|
|
2490
2476
|
/**
|
|
2491
2477
|
* Defines the props of the component.
|
|
2492
2478
|
*/
|
|
2493
|
-
interface RadioButtonProps extends GenericProps
|
|
2479
|
+
interface RadioButtonProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
2494
2480
|
/** Helper text. */
|
|
2495
2481
|
helper?: string;
|
|
2496
2482
|
/** Native input id property. */
|
|
@@ -2524,7 +2510,7 @@ declare const RadioButton: Comp<RadioButtonProps, HTMLDivElement>;
|
|
|
2524
2510
|
/**
|
|
2525
2511
|
* Defines the props of the component.
|
|
2526
2512
|
*/
|
|
2527
|
-
interface RadioGroupProps extends GenericProps
|
|
2513
|
+
interface RadioGroupProps extends GenericProps {
|
|
2528
2514
|
/** RadioButton elements */
|
|
2529
2515
|
children: ReactNode;
|
|
2530
2516
|
}
|
|
@@ -2545,7 +2531,7 @@ declare const SelectVariant: {
|
|
|
2545
2531
|
readonly chip: "chip";
|
|
2546
2532
|
};
|
|
2547
2533
|
type SelectVariant = ValueOf<typeof SelectVariant>;
|
|
2548
|
-
interface CoreSelectProps extends GenericProps
|
|
2534
|
+
interface CoreSelectProps extends GenericProps, HasTheme$1 {
|
|
2549
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. */
|
|
2550
2536
|
clearButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
|
|
2551
2537
|
/** Whether the select (input variant) is displayed with error style or not. */
|
|
@@ -2625,7 +2611,7 @@ declare const SelectMultiple: Comp<SelectMultipleProps, HTMLDivElement>;
|
|
|
2625
2611
|
/**
|
|
2626
2612
|
* Defines the props of the component.
|
|
2627
2613
|
*/
|
|
2628
|
-
interface SideNavigationProps extends GenericProps
|
|
2614
|
+
interface SideNavigationProps extends GenericProps, HasTheme$1 {
|
|
2629
2615
|
/** SideNavigationItem elements. */
|
|
2630
2616
|
children: ReactNode;
|
|
2631
2617
|
}
|
|
@@ -2641,7 +2627,7 @@ declare const SideNavigation: Comp<SideNavigationProps, HTMLUListElement>;
|
|
|
2641
2627
|
/**
|
|
2642
2628
|
* Defines the props of the component.
|
|
2643
2629
|
*/
|
|
2644
|
-
interface SideNavigationItemProps extends GenericProps
|
|
2630
|
+
interface SideNavigationItemProps extends GenericProps, HasCloseMode {
|
|
2645
2631
|
/** SideNavigationItem elements. */
|
|
2646
2632
|
children?: ReactNode;
|
|
2647
2633
|
/** Emphasis variant. */
|
|
@@ -2677,7 +2663,7 @@ declare const SideNavigationItem: Comp<SideNavigationItemProps, HTMLLIElement>;
|
|
|
2677
2663
|
/**
|
|
2678
2664
|
* Defines the props of the component.
|
|
2679
2665
|
*/
|
|
2680
|
-
interface SkeletonCircleProps extends GenericProps
|
|
2666
|
+
interface SkeletonCircleProps extends GenericProps, HasTheme$1 {
|
|
2681
2667
|
/** Size variant. */
|
|
2682
2668
|
size: GlobalSize;
|
|
2683
2669
|
/** The color of the skeleton. */
|
|
@@ -2704,7 +2690,7 @@ type SkeletonRectangleVariant = ValueOf<typeof SkeletonRectangleVariant>;
|
|
|
2704
2690
|
/**
|
|
2705
2691
|
* Defines the props of the component.
|
|
2706
2692
|
*/
|
|
2707
|
-
interface SkeletonRectangleProps extends GenericProps
|
|
2693
|
+
interface SkeletonRectangleProps extends GenericProps, HasTheme$1 {
|
|
2708
2694
|
/** Aspect ratio (use with width and not height). */
|
|
2709
2695
|
aspectRatio?: Extract<AspectRatio, 'square' | 'horizontal' | 'vertical' | 'wide'>;
|
|
2710
2696
|
/** Height size. */
|
|
@@ -2728,7 +2714,7 @@ declare const SkeletonRectangle: Comp<SkeletonRectangleProps, HTMLDivElement>;
|
|
|
2728
2714
|
/**
|
|
2729
2715
|
* Defines the props of the component.
|
|
2730
2716
|
*/
|
|
2731
|
-
interface SkeletonTypographyProps extends GenericProps
|
|
2717
|
+
interface SkeletonTypographyProps extends GenericProps, HasTheme$1 {
|
|
2732
2718
|
/** Typography variant. */
|
|
2733
2719
|
typography: TypographyInterface$1;
|
|
2734
2720
|
/** Width CSS property. */
|
|
@@ -2748,7 +2734,7 @@ declare const SkeletonTypography: Comp<SkeletonTypographyProps, HTMLDivElement>;
|
|
|
2748
2734
|
/**
|
|
2749
2735
|
* Defines the props of the component.
|
|
2750
2736
|
*/
|
|
2751
|
-
interface SliderProps extends GenericProps
|
|
2737
|
+
interface SliderProps extends GenericProps, HasTheme$1 {
|
|
2752
2738
|
/** Helper text. */
|
|
2753
2739
|
helper?: string;
|
|
2754
2740
|
/** Whether the min and max labels should be hidden or not. */
|
|
@@ -2807,7 +2793,7 @@ type SlideMode = ValueOf<typeof SlideMode>;
|
|
|
2807
2793
|
/**
|
|
2808
2794
|
* Defines the props of the component.
|
|
2809
2795
|
*/
|
|
2810
|
-
interface SlideshowProps extends GenericProps
|
|
2796
|
+
interface SlideshowProps extends GenericProps, Pick<SlidesProps, 'autoPlay' | 'slidesId' | 'id' | 'theme' | 'fillHeight' | 'groupBy' | 'slideGroupLabel'> {
|
|
2811
2797
|
/** Whether to use CSS transform translate or native scroll snap. */
|
|
2812
2798
|
slideMode?: SlideMode;
|
|
2813
2799
|
/** current slide active */
|
|
@@ -2833,7 +2819,7 @@ declare const Slideshow: Comp<SlideshowProps, HTMLDivElement>;
|
|
|
2833
2819
|
/**
|
|
2834
2820
|
* Defines the props of the component.
|
|
2835
2821
|
*/
|
|
2836
|
-
interface SlideshowItemProps extends GenericProps
|
|
2822
|
+
interface SlideshowItemProps extends GenericProps {
|
|
2837
2823
|
/** interval in which slides are automatically shown */
|
|
2838
2824
|
interval?: number;
|
|
2839
2825
|
/** Children */
|
|
@@ -2912,7 +2898,7 @@ interface UseSlideshowControls {
|
|
|
2912
2898
|
/**
|
|
2913
2899
|
* Defines the props of the component.
|
|
2914
2900
|
*/
|
|
2915
|
-
interface SlideshowControlsProps extends GenericProps
|
|
2901
|
+
interface SlideshowControlsProps extends GenericProps, HasTheme$1 {
|
|
2916
2902
|
/** Index of the current slide. */
|
|
2917
2903
|
activeIndex?: number;
|
|
2918
2904
|
/** Props to pass to the next button (minus those already set by the SlideshowControls props). */
|
|
@@ -2956,7 +2942,7 @@ declare const SlideshowControls: Comp<SlideshowControlsProps, HTMLDivElement> &
|
|
|
2956
2942
|
};
|
|
2957
2943
|
};
|
|
2958
2944
|
|
|
2959
|
-
interface SlidesProps extends GenericProps
|
|
2945
|
+
interface SlidesProps extends GenericProps, HasTheme$1 {
|
|
2960
2946
|
/** current slide active */
|
|
2961
2947
|
activeIndex: number;
|
|
2962
2948
|
/** slides id to be added to the wrapper */
|
|
@@ -3001,7 +2987,7 @@ declare const Slides: Comp<SlidesProps, HTMLDivElement>;
|
|
|
3001
2987
|
/**
|
|
3002
2988
|
* Defines the props of the component.
|
|
3003
2989
|
*/
|
|
3004
|
-
interface SwitchProps extends GenericProps
|
|
2990
|
+
interface SwitchProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
3005
2991
|
/** Helper text. */
|
|
3006
2992
|
helper?: string;
|
|
3007
2993
|
/** Whether it is checked or not. */
|
|
@@ -3033,7 +3019,7 @@ declare const Switch: Comp<SwitchProps, HTMLDivElement>;
|
|
|
3033
3019
|
/**
|
|
3034
3020
|
* Defines the props of the component.
|
|
3035
3021
|
*/
|
|
3036
|
-
interface TableProps extends GenericProps
|
|
3022
|
+
interface TableProps extends GenericProps, HasTheme$1 {
|
|
3037
3023
|
/** Whether the table has checkbox or thumbnail on first cell or not. */
|
|
3038
3024
|
hasBefore?: boolean;
|
|
3039
3025
|
/** Whether the table has dividers or not. */
|
|
@@ -3053,7 +3039,7 @@ declare const Table: Comp<TableProps, HTMLTableElement>;
|
|
|
3053
3039
|
/**
|
|
3054
3040
|
* Defines the props of the component.
|
|
3055
3041
|
*/
|
|
3056
|
-
interface TableBodyProps extends GenericProps
|
|
3042
|
+
interface TableBodyProps extends GenericProps {
|
|
3057
3043
|
/** Children */
|
|
3058
3044
|
children?: React.ReactNode;
|
|
3059
3045
|
}
|
|
@@ -3085,7 +3071,7 @@ type TableCellVariant = ValueOf<typeof TableCellVariant>;
|
|
|
3085
3071
|
/**
|
|
3086
3072
|
* Defines the props of the component.
|
|
3087
3073
|
*/
|
|
3088
|
-
interface TableCellProps extends GenericProps
|
|
3074
|
+
interface TableCellProps extends GenericProps {
|
|
3089
3075
|
/** Icon (SVG path).(thead only). */
|
|
3090
3076
|
icon?: string;
|
|
3091
3077
|
/** Whether the column is sortable or not (thead only). */
|
|
@@ -3111,7 +3097,7 @@ declare const TableCell: Comp<TableCellProps, HTMLTableCellElement>;
|
|
|
3111
3097
|
/**
|
|
3112
3098
|
* Defines the props of the component.
|
|
3113
3099
|
*/
|
|
3114
|
-
interface TableHeaderProps extends GenericProps
|
|
3100
|
+
interface TableHeaderProps extends GenericProps {
|
|
3115
3101
|
/** Children */
|
|
3116
3102
|
children?: React.ReactNode;
|
|
3117
3103
|
}
|
|
@@ -3127,7 +3113,7 @@ declare const TableHeader: Comp<TableHeaderProps, HTMLTableSectionElement>;
|
|
|
3127
3113
|
/**
|
|
3128
3114
|
* Defines the props of the component.
|
|
3129
3115
|
*/
|
|
3130
|
-
interface TableRowProps extends GenericProps
|
|
3116
|
+
interface TableRowProps extends GenericProps {
|
|
3131
3117
|
/** Whether the component is clickable or not. */
|
|
3132
3118
|
isClickable?: boolean;
|
|
3133
3119
|
/** Whether the component is disabled or not. */
|
|
@@ -3176,7 +3162,7 @@ declare enum TabListLayout {
|
|
|
3176
3162
|
/**
|
|
3177
3163
|
* Defines the props of the component.
|
|
3178
3164
|
*/
|
|
3179
|
-
interface TabListProps extends GenericProps
|
|
3165
|
+
interface TabListProps extends GenericProps, HasTheme$1 {
|
|
3180
3166
|
/** ARIA label (purpose of the set of tabs). */
|
|
3181
3167
|
['aria-label']: string;
|
|
3182
3168
|
/** Tab list. */
|
|
@@ -3200,7 +3186,7 @@ declare const TabList: Comp<TabListProps, HTMLDivElement>;
|
|
|
3200
3186
|
/**
|
|
3201
3187
|
* Defines the props of the component.
|
|
3202
3188
|
*/
|
|
3203
|
-
interface TabProps extends GenericProps
|
|
3189
|
+
interface TabProps extends GenericProps {
|
|
3204
3190
|
/** Children are not supported. */
|
|
3205
3191
|
children?: never;
|
|
3206
3192
|
/** Icon (SVG path). */
|
|
@@ -3230,7 +3216,7 @@ declare const Tab: Comp<TabProps, HTMLButtonElement>;
|
|
|
3230
3216
|
/**
|
|
3231
3217
|
* Defines the props of the component.
|
|
3232
3218
|
*/
|
|
3233
|
-
interface TabPanelProps extends GenericProps
|
|
3219
|
+
interface TabPanelProps extends GenericProps {
|
|
3234
3220
|
/** Native id property */
|
|
3235
3221
|
id?: string;
|
|
3236
3222
|
/** Whether the tab is active or not. */
|
|
@@ -3249,7 +3235,7 @@ interface TabPanelProps extends GenericProps$1 {
|
|
|
3249
3235
|
*/
|
|
3250
3236
|
declare const TabPanel: Comp<TabPanelProps, HTMLDivElement>;
|
|
3251
3237
|
|
|
3252
|
-
interface TextProps extends TextProps$1, GenericProps
|
|
3238
|
+
interface TextProps extends TextProps$1, GenericProps {
|
|
3253
3239
|
}
|
|
3254
3240
|
/**
|
|
3255
3241
|
* Text component.
|
|
@@ -3263,7 +3249,7 @@ declare const Text: Comp<TextProps, HTMLElement>;
|
|
|
3263
3249
|
/**
|
|
3264
3250
|
* Defines the props of the component.
|
|
3265
3251
|
*/
|
|
3266
|
-
interface TextFieldProps extends GenericProps
|
|
3252
|
+
interface TextFieldProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
3267
3253
|
/** Chip Group to be rendered before the main text input. */
|
|
3268
3254
|
chips?: ReactNode;
|
|
3269
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. */
|
|
@@ -3362,7 +3348,7 @@ declare const useFocusPointStyle: ({ image, aspectRatio, focusPoint, imgProps: {
|
|
|
3362
3348
|
/**
|
|
3363
3349
|
* Defines the props of the component.
|
|
3364
3350
|
*/
|
|
3365
|
-
interface ToolbarProps extends GenericProps
|
|
3351
|
+
interface ToolbarProps extends GenericProps {
|
|
3366
3352
|
/** After content (placed after the label). */
|
|
3367
3353
|
after?: ReactNode;
|
|
3368
3354
|
/** Before content (placed before the label). */
|
|
@@ -3386,7 +3372,7 @@ type TooltipPlacement = Extract<Placement, 'top' | 'right' | 'bottom' | 'left'>;
|
|
|
3386
3372
|
/**
|
|
3387
3373
|
* Defines the props of the component.
|
|
3388
3374
|
*/
|
|
3389
|
-
interface TooltipProps extends GenericProps
|
|
3375
|
+
interface TooltipProps extends GenericProps, HasCloseMode {
|
|
3390
3376
|
/** Anchor (element on which we activate the tooltip). */
|
|
3391
3377
|
children: ReactNode;
|
|
3392
3378
|
/** Delay (in ms) before closing the tooltip. */
|
|
@@ -3431,7 +3417,7 @@ interface FileInputProps extends Omit<React__default.ComponentProps<'input'>, 'o
|
|
|
3431
3417
|
/**
|
|
3432
3418
|
* Defines the props of the component.
|
|
3433
3419
|
*/
|
|
3434
|
-
interface UploaderProps extends GenericProps
|
|
3420
|
+
interface UploaderProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
3435
3421
|
/** Image aspect ratio. */
|
|
3436
3422
|
aspectRatio?: AspectRatio;
|
|
3437
3423
|
/** Icon (SVG path). */
|
|
@@ -3465,7 +3451,7 @@ type UserBlockSize = Extract<Size$1, 'xs' | 's' | 'm' | 'l'>;
|
|
|
3465
3451
|
/**
|
|
3466
3452
|
* Defines the props of the component.
|
|
3467
3453
|
*/
|
|
3468
|
-
interface UserBlockProps extends GenericProps
|
|
3454
|
+
interface UserBlockProps extends GenericProps, HasTheme$1 {
|
|
3469
3455
|
/** Props to pass to the avatar. */
|
|
3470
3456
|
avatarProps?: Omit<AvatarProps, 'alt'>;
|
|
3471
3457
|
/** Additional fields used to describe the user. */
|
|
@@ -3479,7 +3465,7 @@ interface UserBlockProps extends GenericProps$1, HasTheme$1 {
|
|
|
3479
3465
|
/** User name. */
|
|
3480
3466
|
name?: React__default.ReactNode;
|
|
3481
3467
|
/** Props to pass to the name block. */
|
|
3482
|
-
nameProps?: GenericProps
|
|
3468
|
+
nameProps?: GenericProps;
|
|
3483
3469
|
/** Orientation. */
|
|
3484
3470
|
orientation?: Orientation$1;
|
|
3485
3471
|
/** Simple action toolbar content. */
|