@lumx/react 4.2.1-alpha.12 → 4.2.1-alpha.14
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 +140 -177
- package/index.js +9 -6
- 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, 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
|
-
import React__default, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, InputHTMLAttributes, RefObject, CSSProperties, ImgHTMLAttributes,
|
|
8
|
-
import { GenericProps } from '@lumx/core/js/types/GenericProps';
|
|
9
|
-
import { GenericProps as GenericProps$2 } from '@lumx/core/js/utils/disabledState';
|
|
7
|
+
import React__default, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, AriaAttributes, InputHTMLAttributes, RefObject, CSSProperties, ImgHTMLAttributes, SetStateAction, Key, ElementType, ComponentProps } from 'react';
|
|
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 */
|
|
@@ -529,37 +527,20 @@ interface HasAriaDisabled {
|
|
|
529
527
|
'aria-disabled'?: Booleanish;
|
|
530
528
|
}
|
|
531
529
|
|
|
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 {
|
|
530
|
+
type BaseClickableProps = {
|
|
550
531
|
children?: JSXElement;
|
|
551
532
|
isDisabled?: boolean;
|
|
552
|
-
disabled?: boolean
|
|
533
|
+
disabled?: boolean;
|
|
553
534
|
'aria-disabled'?: Booleanish;
|
|
554
|
-
onClick?: (
|
|
535
|
+
onClick?: (event?: any) => void;
|
|
555
536
|
ref?: CommonRef;
|
|
556
|
-
}
|
|
537
|
+
};
|
|
557
538
|
|
|
558
539
|
/**
|
|
559
540
|
* Button size definition.
|
|
560
541
|
*/
|
|
561
542
|
type ButtonSize = Extract<Size, 's' | 'm'>;
|
|
562
|
-
interface BaseButtonProps extends AriaAttributes, HasClassName, HasTheme, HasAriaDisabled, BaseClickableProps {
|
|
543
|
+
interface BaseButtonProps extends Pick<AriaAttributes, 'aria-expanded' | 'aria-haspopup' | 'aria-pressed' | 'aria-label'>, HasClassName, HasTheme, HasAriaDisabled, BaseClickableProps {
|
|
563
544
|
/** Color variant. */
|
|
564
545
|
color?: ColorPalette;
|
|
565
546
|
/** Emphasis variant. */
|
|
@@ -604,7 +585,7 @@ declare const ButtonEmphasis: {
|
|
|
604
585
|
/**
|
|
605
586
|
* Defines the props of the component.
|
|
606
587
|
*/
|
|
607
|
-
interface ButtonProps$1 extends BaseButtonProps {
|
|
588
|
+
interface ButtonProps$1 extends /* @vue-ignore */ BaseButtonProps {
|
|
608
589
|
/** Left icon (SVG path). */
|
|
609
590
|
leftIcon?: string;
|
|
610
591
|
/** Right icon (SVG path). */
|
|
@@ -627,11 +608,7 @@ declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
|
|
|
627
608
|
*/
|
|
628
609
|
declare const DEFAULT_PROPS: Partial<ButtonProps$1>;
|
|
629
610
|
|
|
630
|
-
interface ButtonProps extends ButtonProps$1 {
|
|
631
|
-
/**
|
|
632
|
-
* Any prop (particularly any supported prop for a HTML element).
|
|
633
|
-
*/
|
|
634
|
-
[propName: string]: any;
|
|
611
|
+
interface ButtonProps extends GenericProps, ButtonProps$1 {
|
|
635
612
|
}
|
|
636
613
|
/**
|
|
637
614
|
* Button component.
|
|
@@ -642,7 +619,7 @@ interface ButtonProps extends ButtonProps$1 {
|
|
|
642
619
|
*/
|
|
643
620
|
declare const Button: Comp<ButtonProps, HTMLAnchorElement | HTMLButtonElement>;
|
|
644
621
|
|
|
645
|
-
interface IconButtonProps$1 extends BaseButtonProps {
|
|
622
|
+
interface IconButtonProps$1 extends /* @vue-ignore */ BaseButtonProps {
|
|
646
623
|
/**
|
|
647
624
|
* Icon (SVG path).
|
|
648
625
|
* If `image` is also set, `image` will be used instead.
|
|
@@ -658,17 +635,9 @@ interface IconButtonProps$1 extends BaseButtonProps {
|
|
|
658
635
|
* If you really don't want an aria-label, you can set an empty label (this is not recommended).
|
|
659
636
|
*/
|
|
660
637
|
label: string;
|
|
661
|
-
/**
|
|
662
|
-
* optional text to be displayed as the title of the HTML element
|
|
663
|
-
*/
|
|
664
|
-
title?: string;
|
|
665
638
|
}
|
|
666
639
|
|
|
667
|
-
interface IconButtonProps extends
|
|
668
|
-
/**
|
|
669
|
-
* Any prop (particularly any supported prop for a HTML element).
|
|
670
|
-
*/
|
|
671
|
-
[propName: string]: any;
|
|
640
|
+
interface IconButtonProps extends GenericProps, IconButtonProps$1 {
|
|
672
641
|
/**
|
|
673
642
|
* Props to pass to the tooltip.
|
|
674
643
|
* If undefined or if tooltipProps.label is undefined, the label prop will be used as tooltip label.
|
|
@@ -698,7 +667,7 @@ interface ButtonGroupProps$1 extends HasClassName {
|
|
|
698
667
|
ref?: CommonRef;
|
|
699
668
|
}
|
|
700
669
|
|
|
701
|
-
interface ButtonGroupProps extends
|
|
670
|
+
interface ButtonGroupProps extends GenericProps, ButtonGroupProps$1 {
|
|
702
671
|
}
|
|
703
672
|
/**
|
|
704
673
|
* ButtonGroup component.
|
|
@@ -712,7 +681,7 @@ declare const ButtonGroup: Comp<ButtonGroupProps, HTMLDivElement>;
|
|
|
712
681
|
/**
|
|
713
682
|
* Defines the props of the component.
|
|
714
683
|
*/
|
|
715
|
-
interface CheckboxProps extends GenericProps
|
|
684
|
+
interface CheckboxProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
716
685
|
/** Helper text. */
|
|
717
686
|
helper?: string;
|
|
718
687
|
/** Native input id property. */
|
|
@@ -750,7 +719,7 @@ type ChipSize = Extract<Size$1, 's' | 'm'>;
|
|
|
750
719
|
/**
|
|
751
720
|
* Defines the props of the component.
|
|
752
721
|
*/
|
|
753
|
-
interface ChipProps extends GenericProps
|
|
722
|
+
interface ChipProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
754
723
|
/** A component to be rendered after the content. */
|
|
755
724
|
after?: ReactNode;
|
|
756
725
|
/** A component to be rendered before the content. */
|
|
@@ -796,7 +765,7 @@ type useChipGroupNavigationType<C = any> = (chips: C[], onChipDeleted: (chip: C)
|
|
|
796
765
|
/**
|
|
797
766
|
* Defines the props of the component.
|
|
798
767
|
*/
|
|
799
|
-
interface ChipGroupProps extends GenericProps
|
|
768
|
+
interface ChipGroupProps extends GenericProps {
|
|
800
769
|
/**
|
|
801
770
|
* Chip horizontal alignment.
|
|
802
771
|
* @deprecated
|
|
@@ -820,7 +789,7 @@ type CommentBlockVariant = ValueOf<typeof CommentBlockVariant>;
|
|
|
820
789
|
/**
|
|
821
790
|
* Defines the props of the component.
|
|
822
791
|
*/
|
|
823
|
-
interface CommentBlockProps extends GenericProps
|
|
792
|
+
interface CommentBlockProps extends GenericProps, HasTheme$1 {
|
|
824
793
|
/** Action toolbar content. */
|
|
825
794
|
actions?: ReactNode;
|
|
826
795
|
/** Props to pass to the avatar. */
|
|
@@ -873,7 +842,7 @@ declare const CommentBlock: Comp<CommentBlockProps, HTMLDivElement>;
|
|
|
873
842
|
/**
|
|
874
843
|
* Defines the props of the component.
|
|
875
844
|
*/
|
|
876
|
-
interface DatePickerProps extends GenericProps
|
|
845
|
+
interface DatePickerProps extends GenericProps {
|
|
877
846
|
/** Default month. */
|
|
878
847
|
defaultMonth?: Date;
|
|
879
848
|
/** Locale (language or region) to use. */
|
|
@@ -928,7 +897,7 @@ declare const DatePickerControlled: Comp<DatePickerControlledProps, HTMLDivEleme
|
|
|
928
897
|
/**
|
|
929
898
|
* Defines the props of the component.
|
|
930
899
|
*/
|
|
931
|
-
interface DatePickerFieldProps extends Omit<TextFieldProps, 'value' | 'onChange'>, GenericProps
|
|
900
|
+
interface DatePickerFieldProps extends Omit<TextFieldProps, 'value' | 'onChange'>, GenericProps {
|
|
932
901
|
/** Default month. */
|
|
933
902
|
defaultMonth?: Date;
|
|
934
903
|
/** Locale (language or region) to use. */
|
|
@@ -958,7 +927,7 @@ declare const DatePickerField: Comp<DatePickerFieldProps, HTMLDivElement>;
|
|
|
958
927
|
/**
|
|
959
928
|
* Defines the props of the component.
|
|
960
929
|
*/
|
|
961
|
-
interface DialogProps extends GenericProps
|
|
930
|
+
interface DialogProps extends GenericProps {
|
|
962
931
|
/** Footer content. */
|
|
963
932
|
footer?: ReactNode;
|
|
964
933
|
/** Whether the divider between the dialog content and the footer is always displayed (instead of showing it on scroll). */
|
|
@@ -988,7 +957,7 @@ interface DialogProps extends GenericProps$1 {
|
|
|
988
957
|
/** Z-axis position. */
|
|
989
958
|
zIndex?: number;
|
|
990
959
|
/** Z-axis position. */
|
|
991
|
-
dialogProps?: GenericProps
|
|
960
|
+
dialogProps?: GenericProps;
|
|
992
961
|
/** On close callback. */
|
|
993
962
|
onClose?(): void;
|
|
994
963
|
/** Callback called when the open animation starts and the close animation finishes. */
|
|
@@ -1011,7 +980,7 @@ declare const Dialog: Comp<DialogProps, HTMLDivElement>;
|
|
|
1011
980
|
/**
|
|
1012
981
|
* Defines the props of the component.
|
|
1013
982
|
*/
|
|
1014
|
-
interface DividerProps extends GenericProps
|
|
983
|
+
interface DividerProps extends GenericProps, HasTheme$1 {
|
|
1015
984
|
}
|
|
1016
985
|
/**
|
|
1017
986
|
* Divider component.
|
|
@@ -1025,7 +994,7 @@ declare const Divider: Comp<DividerProps, HTMLHRElement>;
|
|
|
1025
994
|
/**
|
|
1026
995
|
* Defines the props of the component.
|
|
1027
996
|
*/
|
|
1028
|
-
interface DragHandleProps extends GenericProps
|
|
997
|
+
interface DragHandleProps extends GenericProps, HasTheme$1 {
|
|
1029
998
|
}
|
|
1030
999
|
/**
|
|
1031
1000
|
* DragHandle component.
|
|
@@ -1083,7 +1052,7 @@ type FitAnchorWidth = ValueOf<typeof FitAnchorWidth>;
|
|
|
1083
1052
|
/**
|
|
1084
1053
|
* Defines the props of the component.
|
|
1085
1054
|
*/
|
|
1086
|
-
interface PopoverProps extends GenericProps
|
|
1055
|
+
interface PopoverProps extends GenericProps, HasTheme$1 {
|
|
1087
1056
|
/** Reference to the DOM element used to set the position of the popover. */
|
|
1088
1057
|
anchorRef: React.RefObject<HTMLElement>;
|
|
1089
1058
|
/** Customize the root element. (Must accept ref forwarding and props forwarding!). */
|
|
@@ -1144,7 +1113,7 @@ declare const Popover: Comp<PopoverProps, HTMLDivElement>;
|
|
|
1144
1113
|
/**
|
|
1145
1114
|
* Defines the props of the component.
|
|
1146
1115
|
*/
|
|
1147
|
-
interface DropdownProps extends GenericProps
|
|
1116
|
+
interface DropdownProps extends GenericProps {
|
|
1148
1117
|
/**
|
|
1149
1118
|
* Reference to the element around which the dropdown is placed.
|
|
1150
1119
|
* @see {@link PopoverProps#anchorRef}
|
|
@@ -1225,7 +1194,7 @@ declare const Dropdown: Comp<DropdownProps, HTMLDivElement>;
|
|
|
1225
1194
|
/**
|
|
1226
1195
|
* Defines the props of the component.
|
|
1227
1196
|
*/
|
|
1228
|
-
interface ExpansionPanelProps extends GenericProps
|
|
1197
|
+
interface ExpansionPanelProps extends GenericProps, HasCloseMode, HasTheme$1 {
|
|
1229
1198
|
/** Whether the expansion panel has a background. */
|
|
1230
1199
|
hasBackground?: boolean;
|
|
1231
1200
|
/** Whether the header has a divider. */
|
|
@@ -1254,53 +1223,6 @@ interface ExpansionPanelProps extends GenericProps$1, HasCloseMode, HasTheme$1 {
|
|
|
1254
1223
|
*/
|
|
1255
1224
|
declare const ExpansionPanel: Comp<ExpansionPanelProps, HTMLDivElement>;
|
|
1256
1225
|
|
|
1257
|
-
/**
|
|
1258
|
-
* Defines the props of the component.
|
|
1259
|
-
*/
|
|
1260
|
-
interface TextProps$1 extends HasClassName {
|
|
1261
|
-
/**
|
|
1262
|
-
* Color variant.
|
|
1263
|
-
*/
|
|
1264
|
-
color?: ColorWithVariants;
|
|
1265
|
-
/**
|
|
1266
|
-
* Lightened or darkened variant of the selected color.
|
|
1267
|
-
*/
|
|
1268
|
-
colorVariant?: ColorVariant;
|
|
1269
|
-
/**
|
|
1270
|
-
* Typography variant.
|
|
1271
|
-
*/
|
|
1272
|
-
typography?: Typography;
|
|
1273
|
-
/**
|
|
1274
|
-
* Custom component to render the text.
|
|
1275
|
-
*/
|
|
1276
|
-
as: TextElement;
|
|
1277
|
-
/**
|
|
1278
|
-
* Control whether the text should truncate or not.
|
|
1279
|
-
* Setting as `true` will make the text truncate on a single line.
|
|
1280
|
-
* Setting as `{ lines: number }` will make the text truncate on a multiple lines.
|
|
1281
|
-
*/
|
|
1282
|
-
truncate?: boolean | {
|
|
1283
|
-
lines: number;
|
|
1284
|
-
};
|
|
1285
|
-
/**
|
|
1286
|
-
* Prevents text to wrap on multiple lines
|
|
1287
|
-
* (automatically activated when single line text truncate is activated).
|
|
1288
|
-
*/
|
|
1289
|
-
noWrap?: boolean;
|
|
1290
|
-
/**
|
|
1291
|
-
* WhiteSpace variant
|
|
1292
|
-
* Ignored when `noWrap` is set to true
|
|
1293
|
-
* Ignored when `truncate` is set to true or lines: 1
|
|
1294
|
-
* */
|
|
1295
|
-
whiteSpace?: WhiteSpace;
|
|
1296
|
-
/**
|
|
1297
|
-
* Children
|
|
1298
|
-
*/
|
|
1299
|
-
children?: JSXElement;
|
|
1300
|
-
/** list of styles to apply */
|
|
1301
|
-
style?: CSSProperties;
|
|
1302
|
-
}
|
|
1303
|
-
|
|
1304
1226
|
interface FlagProps$1 extends HasClassName, HasTheme {
|
|
1305
1227
|
/** Color of the component. */
|
|
1306
1228
|
color?: ColorPalette;
|
|
@@ -1312,15 +1234,9 @@ interface FlagProps$1 extends HasClassName, HasTheme {
|
|
|
1312
1234
|
truncate?: boolean;
|
|
1313
1235
|
/** ref to the root element */
|
|
1314
1236
|
ref?: CommonRef;
|
|
1315
|
-
/** Text component to use for rendering the label */
|
|
1316
|
-
Text: (props: TextProps$1) => any;
|
|
1317
1237
|
}
|
|
1318
1238
|
|
|
1319
|
-
interface FlagProps extends Omit<FlagProps$1, 'children'
|
|
1320
|
-
/**
|
|
1321
|
-
* Any prop (particularly any supported prop for a HTML element).
|
|
1322
|
-
*/
|
|
1323
|
-
[propName: string]: any;
|
|
1239
|
+
interface FlagProps extends GenericProps, Omit<FlagProps$1, 'children'> {
|
|
1324
1240
|
/** Text label of the flag. */
|
|
1325
1241
|
label: React.ReactNode;
|
|
1326
1242
|
}
|
|
@@ -1366,7 +1282,7 @@ interface FlexBoxProps$1 extends HasClassName {
|
|
|
1366
1282
|
/**
|
|
1367
1283
|
* Defines the props of the component.
|
|
1368
1284
|
*/
|
|
1369
|
-
interface FlexBoxProps extends
|
|
1285
|
+
interface FlexBoxProps extends GenericProps, FlexBoxProps$1 {
|
|
1370
1286
|
/** Customize the root element. */
|
|
1371
1287
|
as?: React__default.ElementType;
|
|
1372
1288
|
}
|
|
@@ -1480,6 +1396,53 @@ interface GenericBlock extends BaseGenericBlock {
|
|
|
1480
1396
|
}
|
|
1481
1397
|
declare const GenericBlock: GenericBlock;
|
|
1482
1398
|
|
|
1399
|
+
/**
|
|
1400
|
+
* Defines the props of the component.
|
|
1401
|
+
*/
|
|
1402
|
+
interface TextProps$1 extends HasClassName {
|
|
1403
|
+
/**
|
|
1404
|
+
* Color variant.
|
|
1405
|
+
*/
|
|
1406
|
+
color?: ColorWithVariants;
|
|
1407
|
+
/**
|
|
1408
|
+
* Lightened or darkened variant of the selected color.
|
|
1409
|
+
*/
|
|
1410
|
+
colorVariant?: ColorVariant;
|
|
1411
|
+
/**
|
|
1412
|
+
* Typography variant.
|
|
1413
|
+
*/
|
|
1414
|
+
typography?: Typography;
|
|
1415
|
+
/**
|
|
1416
|
+
* Custom component to render the text.
|
|
1417
|
+
*/
|
|
1418
|
+
as: TextElement;
|
|
1419
|
+
/**
|
|
1420
|
+
* Control whether the text should truncate or not.
|
|
1421
|
+
* Setting as `true` will make the text truncate on a single line.
|
|
1422
|
+
* Setting as `{ lines: number }` will make the text truncate on a multiple lines.
|
|
1423
|
+
*/
|
|
1424
|
+
truncate?: boolean | {
|
|
1425
|
+
lines: number;
|
|
1426
|
+
};
|
|
1427
|
+
/**
|
|
1428
|
+
* Prevents text to wrap on multiple lines
|
|
1429
|
+
* (automatically activated when single line text truncate is activated).
|
|
1430
|
+
*/
|
|
1431
|
+
noWrap?: boolean;
|
|
1432
|
+
/**
|
|
1433
|
+
* WhiteSpace variant
|
|
1434
|
+
* Ignored when `noWrap` is set to true
|
|
1435
|
+
* Ignored when `truncate` is set to true or lines: 1
|
|
1436
|
+
* */
|
|
1437
|
+
whiteSpace?: WhiteSpace;
|
|
1438
|
+
/**
|
|
1439
|
+
* Children
|
|
1440
|
+
*/
|
|
1441
|
+
children?: JSXElement;
|
|
1442
|
+
/** list of styles to apply */
|
|
1443
|
+
style?: CSSProperties;
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1483
1446
|
/**
|
|
1484
1447
|
* Defines the props of the component.
|
|
1485
1448
|
*/
|
|
@@ -1490,7 +1453,7 @@ interface HeadingProps$1 extends Partial<TextProps$1> {
|
|
|
1490
1453
|
as?: HeadingElement;
|
|
1491
1454
|
}
|
|
1492
1455
|
|
|
1493
|
-
interface HeadingProps extends
|
|
1456
|
+
interface HeadingProps extends GenericProps, HeadingProps$1 {
|
|
1494
1457
|
}
|
|
1495
1458
|
/**
|
|
1496
1459
|
* Renders a heading component.
|
|
@@ -1519,7 +1482,7 @@ type GridGutterSize = Extract<Size$1, 'regular' | 'big' | 'huge'>;
|
|
|
1519
1482
|
/**
|
|
1520
1483
|
* Defines the props of the component.
|
|
1521
1484
|
*/
|
|
1522
|
-
interface GridProps extends GenericProps
|
|
1485
|
+
interface GridProps extends GenericProps {
|
|
1523
1486
|
/** Orientation. */
|
|
1524
1487
|
orientation?: Orientation$1;
|
|
1525
1488
|
/** Whether the children are wrapped or not. */
|
|
@@ -1546,7 +1509,7 @@ type Columns = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11'
|
|
|
1546
1509
|
/**
|
|
1547
1510
|
* Defines the props of the component.
|
|
1548
1511
|
*/
|
|
1549
|
-
interface GridItemProps extends GenericProps
|
|
1512
|
+
interface GridItemProps extends GenericProps {
|
|
1550
1513
|
/** Alignment. */
|
|
1551
1514
|
align?: Alignment$1;
|
|
1552
1515
|
/** Order. */
|
|
@@ -1569,7 +1532,7 @@ type GridColumnGapSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
|
1569
1532
|
/**
|
|
1570
1533
|
* Defines the props of the component.
|
|
1571
1534
|
*/
|
|
1572
|
-
interface GridColumnProps extends GenericProps
|
|
1535
|
+
interface GridColumnProps extends GenericProps {
|
|
1573
1536
|
/** Customize the root element. */
|
|
1574
1537
|
as?: React.ElementType;
|
|
1575
1538
|
/** Children elements. */
|
|
@@ -1620,7 +1583,7 @@ interface IconProps$1 extends HasClassName, HasTheme {
|
|
|
1620
1583
|
ref?: CommonRef;
|
|
1621
1584
|
}
|
|
1622
1585
|
|
|
1623
|
-
interface IconProps extends IconProps$1, GenericProps
|
|
1586
|
+
interface IconProps extends IconProps$1, GenericProps {
|
|
1624
1587
|
}
|
|
1625
1588
|
/**
|
|
1626
1589
|
* Icon component.
|
|
@@ -1678,7 +1641,7 @@ type ImgHTMLProps = ImgHTMLAttributes<HTMLImageElement>;
|
|
|
1678
1641
|
/**
|
|
1679
1642
|
* Defines the props of the component.
|
|
1680
1643
|
*/
|
|
1681
|
-
interface ThumbnailProps extends GenericProps
|
|
1644
|
+
interface ThumbnailProps extends GenericProps, HasTheme$1 {
|
|
1682
1645
|
/** Alignment of the thumbnail in it's parent (requires flex parent). */
|
|
1683
1646
|
align?: HorizontalAlignment$1;
|
|
1684
1647
|
/** Image alternative text. */
|
|
@@ -1764,7 +1727,7 @@ type ImageBlockSize = Extract<Size$1, 'xl' | 'xxl'>;
|
|
|
1764
1727
|
/**
|
|
1765
1728
|
* Defines the props of the component.
|
|
1766
1729
|
*/
|
|
1767
|
-
interface ImageBlockProps extends GenericProps
|
|
1730
|
+
interface ImageBlockProps extends GenericProps, HasTheme$1, ImageCaptionMetadata {
|
|
1768
1731
|
/** Action toolbar content. */
|
|
1769
1732
|
actions?: ReactNode;
|
|
1770
1733
|
/** Alignment. */
|
|
@@ -1856,7 +1819,7 @@ declare const ImageLightbox: Comp<ImageLightboxProps, HTMLDivElement> & {
|
|
|
1856
1819
|
/**
|
|
1857
1820
|
* Defines the props of the component.
|
|
1858
1821
|
*/
|
|
1859
|
-
interface InlineListProps extends GenericProps
|
|
1822
|
+
interface InlineListProps extends GenericProps {
|
|
1860
1823
|
/**
|
|
1861
1824
|
* Text color.
|
|
1862
1825
|
*/
|
|
@@ -1899,7 +1862,7 @@ interface InputHelperProps$1 extends HasClassName, HasTheme {
|
|
|
1899
1862
|
ref?: CommonRef;
|
|
1900
1863
|
}
|
|
1901
1864
|
|
|
1902
|
-
interface InputHelperProps extends InputHelperProps$1, GenericProps
|
|
1865
|
+
interface InputHelperProps extends InputHelperProps$1, GenericProps {
|
|
1903
1866
|
}
|
|
1904
1867
|
/**
|
|
1905
1868
|
* InputHelper component.
|
|
@@ -1923,7 +1886,7 @@ interface InputLabelProps$1 extends HasClassName, HasTheme {
|
|
|
1923
1886
|
ref?: CommonRef;
|
|
1924
1887
|
}
|
|
1925
1888
|
|
|
1926
|
-
interface InputLabelProps extends InputLabelProps$1, GenericProps
|
|
1889
|
+
interface InputLabelProps extends InputLabelProps$1, GenericProps {
|
|
1927
1890
|
}
|
|
1928
1891
|
/**
|
|
1929
1892
|
* InputLabel component.
|
|
@@ -1937,7 +1900,7 @@ declare const InputLabel: Comp<InputLabelProps, HTMLLabelElement>;
|
|
|
1937
1900
|
/**
|
|
1938
1901
|
* Defines the props of the component.
|
|
1939
1902
|
*/
|
|
1940
|
-
interface LightboxProps extends GenericProps
|
|
1903
|
+
interface LightboxProps extends GenericProps, HasTheme$1, Pick<AriaAttributes, 'aria-label' | 'aria-labelledby'> {
|
|
1941
1904
|
/** Props to pass to the close button (minus those already set by the Lightbox props). */
|
|
1942
1905
|
closeButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis' | 'color'>;
|
|
1943
1906
|
/** Whether the component is open or not. */
|
|
@@ -1968,7 +1931,7 @@ type HTMLAnchorProps = React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAn
|
|
|
1968
1931
|
/**
|
|
1969
1932
|
* Defines the props of the component.
|
|
1970
1933
|
*/
|
|
1971
|
-
interface LinkProps extends GenericProps
|
|
1934
|
+
interface LinkProps extends GenericProps, HasAriaDisabled$1 {
|
|
1972
1935
|
/** Color variant. */
|
|
1973
1936
|
color?: ColorWithVariants$1;
|
|
1974
1937
|
/** Lightened or darkened variant of the selected icon color. */
|
|
@@ -2008,7 +1971,7 @@ declare const Link: Comp<LinkProps, HTMLAnchorElement | HTMLButtonElement>;
|
|
|
2008
1971
|
/**
|
|
2009
1972
|
* Defines the props of the component.
|
|
2010
1973
|
*/
|
|
2011
|
-
interface LinkPreviewProps extends GenericProps
|
|
1974
|
+
interface LinkPreviewProps extends GenericProps, HasTheme$1 {
|
|
2012
1975
|
/** Description. */
|
|
2013
1976
|
description?: string;
|
|
2014
1977
|
/** Link URL. */
|
|
@@ -2051,7 +2014,7 @@ type useKeyboardListNavigationType = <I>(items: I[], ref: RefObject<HTMLElement>
|
|
|
2051
2014
|
/**
|
|
2052
2015
|
* Defines the props of the component.
|
|
2053
2016
|
*/
|
|
2054
|
-
interface ListProps extends GenericProps
|
|
2017
|
+
interface ListProps extends GenericProps {
|
|
2055
2018
|
/** List content (should be ListItem, ListSubheader or ListDivider). */
|
|
2056
2019
|
children: ReactNode;
|
|
2057
2020
|
/**
|
|
@@ -2080,7 +2043,7 @@ type ListItemSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
|
2080
2043
|
/**
|
|
2081
2044
|
* Defines the props of the component.
|
|
2082
2045
|
*/
|
|
2083
|
-
interface ListItemProps extends GenericProps
|
|
2046
|
+
interface ListItemProps extends GenericProps, HasAriaDisabled$1 {
|
|
2084
2047
|
/** A component to be rendered after the content. */
|
|
2085
2048
|
after?: ReactNode;
|
|
2086
2049
|
/** A component to be rendered before the content. */
|
|
@@ -2123,7 +2086,7 @@ declare const ListItem: Comp<ListItemProps, HTMLLIElement>;
|
|
|
2123
2086
|
/**
|
|
2124
2087
|
* Defines the props of the component.
|
|
2125
2088
|
*/
|
|
2126
|
-
type ListDividerProps = GenericProps
|
|
2089
|
+
type ListDividerProps = GenericProps;
|
|
2127
2090
|
/**
|
|
2128
2091
|
* ListDivider component.
|
|
2129
2092
|
*
|
|
@@ -2131,12 +2094,12 @@ type ListDividerProps = GenericProps$1;
|
|
|
2131
2094
|
* @param ref Component ref.
|
|
2132
2095
|
* @return React element.
|
|
2133
2096
|
*/
|
|
2134
|
-
declare const ListDivider: Comp<GenericProps
|
|
2097
|
+
declare const ListDivider: Comp<GenericProps, HTMLLIElement>;
|
|
2135
2098
|
|
|
2136
2099
|
/**
|
|
2137
2100
|
* Defines the props of the component.
|
|
2138
2101
|
*/
|
|
2139
|
-
interface ListSubheaderProps extends GenericProps
|
|
2102
|
+
interface ListSubheaderProps extends GenericProps {
|
|
2140
2103
|
/** Content. */
|
|
2141
2104
|
children: string | ReactNode;
|
|
2142
2105
|
}
|
|
@@ -2170,13 +2133,13 @@ interface MessageProps$1 extends HasClassName {
|
|
|
2170
2133
|
*/
|
|
2171
2134
|
closeButtonProps?: {
|
|
2172
2135
|
/** The callback called when the button is clicked */
|
|
2173
|
-
onClick: (
|
|
2136
|
+
onClick: () => void;
|
|
2174
2137
|
/** The label of the close button. */
|
|
2175
2138
|
label: string;
|
|
2176
2139
|
};
|
|
2177
2140
|
}
|
|
2178
2141
|
|
|
2179
|
-
interface MessageProps extends Omit<MessageProps$1, 'children' | 'ref'> {
|
|
2142
|
+
interface MessageProps extends GenericProps, Omit<MessageProps$1, 'children' | 'ref'> {
|
|
2180
2143
|
/** Content. */
|
|
2181
2144
|
children?: React.ReactNode;
|
|
2182
2145
|
}
|
|
@@ -2192,7 +2155,7 @@ declare const Message: Comp<MessageProps, HTMLDivElement>;
|
|
|
2192
2155
|
/**
|
|
2193
2156
|
* Defines the props of the component.
|
|
2194
2157
|
*/
|
|
2195
|
-
interface MosaicProps extends GenericProps
|
|
2158
|
+
interface MosaicProps extends GenericProps, HasTheme$1 {
|
|
2196
2159
|
/** Thumbnails. */
|
|
2197
2160
|
thumbnails: ThumbnailProps[];
|
|
2198
2161
|
/** On image click callback. */
|
|
@@ -2248,7 +2211,7 @@ declare const Navigation: Comp<NavigationProps, HTMLElement> & SubComponents;
|
|
|
2248
2211
|
/**
|
|
2249
2212
|
* Defines the props of the component.
|
|
2250
2213
|
*/
|
|
2251
|
-
interface NotificationProps extends GenericProps
|
|
2214
|
+
interface NotificationProps extends GenericProps, HasTheme$1 {
|
|
2252
2215
|
/** Action button label. */
|
|
2253
2216
|
actionLabel?: string;
|
|
2254
2217
|
/** Content. */
|
|
@@ -2260,9 +2223,9 @@ interface NotificationProps extends GenericProps$1, HasTheme$1 {
|
|
|
2260
2223
|
/** Z-axis position. */
|
|
2261
2224
|
zIndex?: number;
|
|
2262
2225
|
/** On action button click callback. */
|
|
2263
|
-
onActionClick?(
|
|
2226
|
+
onActionClick?(): void;
|
|
2264
2227
|
/** On click callback. */
|
|
2265
|
-
onClick?(
|
|
2228
|
+
onClick?(): void;
|
|
2266
2229
|
/** Whether the notification should be rendered into a DOM node that exists outside the DOM hierarchy of the parent component. */
|
|
2267
2230
|
usePortal?: boolean;
|
|
2268
2231
|
}
|
|
@@ -2292,7 +2255,7 @@ declare const PopoverDialog: Comp<PopoverDialogProps, HTMLDivElement>;
|
|
|
2292
2255
|
/**
|
|
2293
2256
|
* Defines the props of the component.
|
|
2294
2257
|
*/
|
|
2295
|
-
interface PostBlockProps extends GenericProps
|
|
2258
|
+
interface PostBlockProps extends GenericProps, HasTheme$1 {
|
|
2296
2259
|
/** Action toolbar content. */
|
|
2297
2260
|
actions?: ReactNode;
|
|
2298
2261
|
/** Attachment content. */
|
|
@@ -2336,7 +2299,7 @@ type ProgressVariant = ValueOf<typeof ProgressVariant>;
|
|
|
2336
2299
|
/**
|
|
2337
2300
|
* Defines the props of the component.
|
|
2338
2301
|
*/
|
|
2339
|
-
interface ProgressProps extends GenericProps
|
|
2302
|
+
interface ProgressProps extends GenericProps, HasTheme$1 {
|
|
2340
2303
|
/** Progress variant. */
|
|
2341
2304
|
variant?: ProgressVariant;
|
|
2342
2305
|
}
|
|
@@ -2357,7 +2320,7 @@ type ProgressCircularSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm'>;
|
|
|
2357
2320
|
/**
|
|
2358
2321
|
* Defines the props of the component.
|
|
2359
2322
|
*/
|
|
2360
|
-
interface ProgressCircularProps extends GenericProps
|
|
2323
|
+
interface ProgressCircularProps extends GenericProps, HasTheme$1 {
|
|
2361
2324
|
/**
|
|
2362
2325
|
* Progress circular size.
|
|
2363
2326
|
*/
|
|
@@ -2377,7 +2340,7 @@ interface ProgressCircularProps extends GenericProps$1, HasTheme$1 {
|
|
|
2377
2340
|
*/
|
|
2378
2341
|
declare const ProgressCircular: Comp<ProgressCircularProps, HTMLDivElement>;
|
|
2379
2342
|
|
|
2380
|
-
interface ProgressLinearProps extends GenericProps
|
|
2343
|
+
interface ProgressLinearProps extends GenericProps, HasTheme$1 {
|
|
2381
2344
|
}
|
|
2382
2345
|
/**
|
|
2383
2346
|
* ProgressLinear component.
|
|
@@ -2416,7 +2379,7 @@ declare const ProgressTrackerProvider: React.FC<ProgressTrackerProviderProps>;
|
|
|
2416
2379
|
/**
|
|
2417
2380
|
* Defines the props of the component.
|
|
2418
2381
|
*/
|
|
2419
|
-
interface ProgressTrackerProps extends GenericProps
|
|
2382
|
+
interface ProgressTrackerProps extends GenericProps {
|
|
2420
2383
|
/** ARIA label (purpose of the set of steps). */
|
|
2421
2384
|
['aria-label']: string;
|
|
2422
2385
|
/** Step list. */
|
|
@@ -2436,7 +2399,7 @@ declare const ProgressTracker: Comp<ProgressTrackerProps, HTMLDivElement>;
|
|
|
2436
2399
|
/**
|
|
2437
2400
|
* Defines the props of the component.
|
|
2438
2401
|
*/
|
|
2439
|
-
interface ProgressTrackerStepProps extends GenericProps
|
|
2402
|
+
interface ProgressTrackerStepProps extends GenericProps {
|
|
2440
2403
|
/** Children are not supported. */
|
|
2441
2404
|
children?: never;
|
|
2442
2405
|
/** Whether the step should be in error state or not. */
|
|
@@ -2468,7 +2431,7 @@ declare const ProgressTrackerStep: Comp<ProgressTrackerStepProps, HTMLButtonElem
|
|
|
2468
2431
|
/**
|
|
2469
2432
|
* Defines the props of the component.
|
|
2470
2433
|
*/
|
|
2471
|
-
interface ProgressTrackerStepPanelProps extends GenericProps
|
|
2434
|
+
interface ProgressTrackerStepPanelProps extends GenericProps {
|
|
2472
2435
|
/** Native id property. */
|
|
2473
2436
|
id?: string;
|
|
2474
2437
|
/** Whether the step is active or not. */
|
|
@@ -2490,7 +2453,7 @@ declare const ProgressTrackerStepPanel: Comp<ProgressTrackerStepPanelProps, HTML
|
|
|
2490
2453
|
/**
|
|
2491
2454
|
* Defines the props of the component.
|
|
2492
2455
|
*/
|
|
2493
|
-
interface RadioButtonProps extends GenericProps
|
|
2456
|
+
interface RadioButtonProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
2494
2457
|
/** Helper text. */
|
|
2495
2458
|
helper?: string;
|
|
2496
2459
|
/** Native input id property. */
|
|
@@ -2524,7 +2487,7 @@ declare const RadioButton: Comp<RadioButtonProps, HTMLDivElement>;
|
|
|
2524
2487
|
/**
|
|
2525
2488
|
* Defines the props of the component.
|
|
2526
2489
|
*/
|
|
2527
|
-
interface RadioGroupProps extends GenericProps
|
|
2490
|
+
interface RadioGroupProps extends GenericProps {
|
|
2528
2491
|
/** RadioButton elements */
|
|
2529
2492
|
children: ReactNode;
|
|
2530
2493
|
}
|
|
@@ -2545,7 +2508,7 @@ declare const SelectVariant: {
|
|
|
2545
2508
|
readonly chip: "chip";
|
|
2546
2509
|
};
|
|
2547
2510
|
type SelectVariant = ValueOf<typeof SelectVariant>;
|
|
2548
|
-
interface CoreSelectProps extends GenericProps
|
|
2511
|
+
interface CoreSelectProps extends GenericProps, HasTheme$1 {
|
|
2549
2512
|
/** 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
2513
|
clearButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
|
|
2551
2514
|
/** Whether the select (input variant) is displayed with error style or not. */
|
|
@@ -2625,7 +2588,7 @@ declare const SelectMultiple: Comp<SelectMultipleProps, HTMLDivElement>;
|
|
|
2625
2588
|
/**
|
|
2626
2589
|
* Defines the props of the component.
|
|
2627
2590
|
*/
|
|
2628
|
-
interface SideNavigationProps extends GenericProps
|
|
2591
|
+
interface SideNavigationProps extends GenericProps, HasTheme$1 {
|
|
2629
2592
|
/** SideNavigationItem elements. */
|
|
2630
2593
|
children: ReactNode;
|
|
2631
2594
|
}
|
|
@@ -2641,7 +2604,7 @@ declare const SideNavigation: Comp<SideNavigationProps, HTMLUListElement>;
|
|
|
2641
2604
|
/**
|
|
2642
2605
|
* Defines the props of the component.
|
|
2643
2606
|
*/
|
|
2644
|
-
interface SideNavigationItemProps extends GenericProps
|
|
2607
|
+
interface SideNavigationItemProps extends GenericProps, HasCloseMode {
|
|
2645
2608
|
/** SideNavigationItem elements. */
|
|
2646
2609
|
children?: ReactNode;
|
|
2647
2610
|
/** Emphasis variant. */
|
|
@@ -2677,7 +2640,7 @@ declare const SideNavigationItem: Comp<SideNavigationItemProps, HTMLLIElement>;
|
|
|
2677
2640
|
/**
|
|
2678
2641
|
* Defines the props of the component.
|
|
2679
2642
|
*/
|
|
2680
|
-
interface SkeletonCircleProps extends GenericProps
|
|
2643
|
+
interface SkeletonCircleProps extends GenericProps, HasTheme$1 {
|
|
2681
2644
|
/** Size variant. */
|
|
2682
2645
|
size: GlobalSize;
|
|
2683
2646
|
/** The color of the skeleton. */
|
|
@@ -2704,7 +2667,7 @@ type SkeletonRectangleVariant = ValueOf<typeof SkeletonRectangleVariant>;
|
|
|
2704
2667
|
/**
|
|
2705
2668
|
* Defines the props of the component.
|
|
2706
2669
|
*/
|
|
2707
|
-
interface SkeletonRectangleProps extends GenericProps
|
|
2670
|
+
interface SkeletonRectangleProps extends GenericProps, HasTheme$1 {
|
|
2708
2671
|
/** Aspect ratio (use with width and not height). */
|
|
2709
2672
|
aspectRatio?: Extract<AspectRatio, 'square' | 'horizontal' | 'vertical' | 'wide'>;
|
|
2710
2673
|
/** Height size. */
|
|
@@ -2728,7 +2691,7 @@ declare const SkeletonRectangle: Comp<SkeletonRectangleProps, HTMLDivElement>;
|
|
|
2728
2691
|
/**
|
|
2729
2692
|
* Defines the props of the component.
|
|
2730
2693
|
*/
|
|
2731
|
-
interface SkeletonTypographyProps extends GenericProps
|
|
2694
|
+
interface SkeletonTypographyProps extends GenericProps, HasTheme$1 {
|
|
2732
2695
|
/** Typography variant. */
|
|
2733
2696
|
typography: TypographyInterface$1;
|
|
2734
2697
|
/** Width CSS property. */
|
|
@@ -2748,7 +2711,7 @@ declare const SkeletonTypography: Comp<SkeletonTypographyProps, HTMLDivElement>;
|
|
|
2748
2711
|
/**
|
|
2749
2712
|
* Defines the props of the component.
|
|
2750
2713
|
*/
|
|
2751
|
-
interface SliderProps extends GenericProps
|
|
2714
|
+
interface SliderProps extends GenericProps, HasTheme$1 {
|
|
2752
2715
|
/** Helper text. */
|
|
2753
2716
|
helper?: string;
|
|
2754
2717
|
/** Whether the min and max labels should be hidden or not. */
|
|
@@ -2807,7 +2770,7 @@ type SlideMode = ValueOf<typeof SlideMode>;
|
|
|
2807
2770
|
/**
|
|
2808
2771
|
* Defines the props of the component.
|
|
2809
2772
|
*/
|
|
2810
|
-
interface SlideshowProps extends GenericProps
|
|
2773
|
+
interface SlideshowProps extends GenericProps, Pick<SlidesProps, 'autoPlay' | 'slidesId' | 'id' | 'theme' | 'fillHeight' | 'groupBy' | 'slideGroupLabel'> {
|
|
2811
2774
|
/** Whether to use CSS transform translate or native scroll snap. */
|
|
2812
2775
|
slideMode?: SlideMode;
|
|
2813
2776
|
/** current slide active */
|
|
@@ -2833,7 +2796,7 @@ declare const Slideshow: Comp<SlideshowProps, HTMLDivElement>;
|
|
|
2833
2796
|
/**
|
|
2834
2797
|
* Defines the props of the component.
|
|
2835
2798
|
*/
|
|
2836
|
-
interface SlideshowItemProps extends GenericProps
|
|
2799
|
+
interface SlideshowItemProps extends GenericProps {
|
|
2837
2800
|
/** interval in which slides are automatically shown */
|
|
2838
2801
|
interval?: number;
|
|
2839
2802
|
/** Children */
|
|
@@ -2912,7 +2875,7 @@ interface UseSlideshowControls {
|
|
|
2912
2875
|
/**
|
|
2913
2876
|
* Defines the props of the component.
|
|
2914
2877
|
*/
|
|
2915
|
-
interface SlideshowControlsProps extends GenericProps
|
|
2878
|
+
interface SlideshowControlsProps extends GenericProps, HasTheme$1 {
|
|
2916
2879
|
/** Index of the current slide. */
|
|
2917
2880
|
activeIndex?: number;
|
|
2918
2881
|
/** Props to pass to the next button (minus those already set by the SlideshowControls props). */
|
|
@@ -2956,7 +2919,7 @@ declare const SlideshowControls: Comp<SlideshowControlsProps, HTMLDivElement> &
|
|
|
2956
2919
|
};
|
|
2957
2920
|
};
|
|
2958
2921
|
|
|
2959
|
-
interface SlidesProps extends GenericProps
|
|
2922
|
+
interface SlidesProps extends GenericProps, HasTheme$1 {
|
|
2960
2923
|
/** current slide active */
|
|
2961
2924
|
activeIndex: number;
|
|
2962
2925
|
/** slides id to be added to the wrapper */
|
|
@@ -3001,7 +2964,7 @@ declare const Slides: Comp<SlidesProps, HTMLDivElement>;
|
|
|
3001
2964
|
/**
|
|
3002
2965
|
* Defines the props of the component.
|
|
3003
2966
|
*/
|
|
3004
|
-
interface SwitchProps extends GenericProps
|
|
2967
|
+
interface SwitchProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
3005
2968
|
/** Helper text. */
|
|
3006
2969
|
helper?: string;
|
|
3007
2970
|
/** Whether it is checked or not. */
|
|
@@ -3033,7 +2996,7 @@ declare const Switch: Comp<SwitchProps, HTMLDivElement>;
|
|
|
3033
2996
|
/**
|
|
3034
2997
|
* Defines the props of the component.
|
|
3035
2998
|
*/
|
|
3036
|
-
interface TableProps extends GenericProps
|
|
2999
|
+
interface TableProps extends GenericProps, HasTheme$1 {
|
|
3037
3000
|
/** Whether the table has checkbox or thumbnail on first cell or not. */
|
|
3038
3001
|
hasBefore?: boolean;
|
|
3039
3002
|
/** Whether the table has dividers or not. */
|
|
@@ -3053,7 +3016,7 @@ declare const Table: Comp<TableProps, HTMLTableElement>;
|
|
|
3053
3016
|
/**
|
|
3054
3017
|
* Defines the props of the component.
|
|
3055
3018
|
*/
|
|
3056
|
-
interface TableBodyProps extends GenericProps
|
|
3019
|
+
interface TableBodyProps extends GenericProps {
|
|
3057
3020
|
/** Children */
|
|
3058
3021
|
children?: React.ReactNode;
|
|
3059
3022
|
}
|
|
@@ -3085,7 +3048,7 @@ type TableCellVariant = ValueOf<typeof TableCellVariant>;
|
|
|
3085
3048
|
/**
|
|
3086
3049
|
* Defines the props of the component.
|
|
3087
3050
|
*/
|
|
3088
|
-
interface TableCellProps extends GenericProps
|
|
3051
|
+
interface TableCellProps extends GenericProps {
|
|
3089
3052
|
/** Icon (SVG path).(thead only). */
|
|
3090
3053
|
icon?: string;
|
|
3091
3054
|
/** Whether the column is sortable or not (thead only). */
|
|
@@ -3111,7 +3074,7 @@ declare const TableCell: Comp<TableCellProps, HTMLTableCellElement>;
|
|
|
3111
3074
|
/**
|
|
3112
3075
|
* Defines the props of the component.
|
|
3113
3076
|
*/
|
|
3114
|
-
interface TableHeaderProps extends GenericProps
|
|
3077
|
+
interface TableHeaderProps extends GenericProps {
|
|
3115
3078
|
/** Children */
|
|
3116
3079
|
children?: React.ReactNode;
|
|
3117
3080
|
}
|
|
@@ -3127,7 +3090,7 @@ declare const TableHeader: Comp<TableHeaderProps, HTMLTableSectionElement>;
|
|
|
3127
3090
|
/**
|
|
3128
3091
|
* Defines the props of the component.
|
|
3129
3092
|
*/
|
|
3130
|
-
interface TableRowProps extends GenericProps
|
|
3093
|
+
interface TableRowProps extends GenericProps {
|
|
3131
3094
|
/** Whether the component is clickable or not. */
|
|
3132
3095
|
isClickable?: boolean;
|
|
3133
3096
|
/** Whether the component is disabled or not. */
|
|
@@ -3176,7 +3139,7 @@ declare enum TabListLayout {
|
|
|
3176
3139
|
/**
|
|
3177
3140
|
* Defines the props of the component.
|
|
3178
3141
|
*/
|
|
3179
|
-
interface TabListProps extends GenericProps
|
|
3142
|
+
interface TabListProps extends GenericProps, HasTheme$1 {
|
|
3180
3143
|
/** ARIA label (purpose of the set of tabs). */
|
|
3181
3144
|
['aria-label']: string;
|
|
3182
3145
|
/** Tab list. */
|
|
@@ -3200,7 +3163,7 @@ declare const TabList: Comp<TabListProps, HTMLDivElement>;
|
|
|
3200
3163
|
/**
|
|
3201
3164
|
* Defines the props of the component.
|
|
3202
3165
|
*/
|
|
3203
|
-
interface TabProps extends GenericProps
|
|
3166
|
+
interface TabProps extends GenericProps {
|
|
3204
3167
|
/** Children are not supported. */
|
|
3205
3168
|
children?: never;
|
|
3206
3169
|
/** Icon (SVG path). */
|
|
@@ -3230,7 +3193,7 @@ declare const Tab: Comp<TabProps, HTMLButtonElement>;
|
|
|
3230
3193
|
/**
|
|
3231
3194
|
* Defines the props of the component.
|
|
3232
3195
|
*/
|
|
3233
|
-
interface TabPanelProps extends GenericProps
|
|
3196
|
+
interface TabPanelProps extends GenericProps {
|
|
3234
3197
|
/** Native id property */
|
|
3235
3198
|
id?: string;
|
|
3236
3199
|
/** Whether the tab is active or not. */
|
|
@@ -3249,7 +3212,7 @@ interface TabPanelProps extends GenericProps$1 {
|
|
|
3249
3212
|
*/
|
|
3250
3213
|
declare const TabPanel: Comp<TabPanelProps, HTMLDivElement>;
|
|
3251
3214
|
|
|
3252
|
-
interface TextProps extends TextProps$1, GenericProps
|
|
3215
|
+
interface TextProps extends TextProps$1, GenericProps {
|
|
3253
3216
|
}
|
|
3254
3217
|
/**
|
|
3255
3218
|
* Text component.
|
|
@@ -3263,7 +3226,7 @@ declare const Text: Comp<TextProps, HTMLElement>;
|
|
|
3263
3226
|
/**
|
|
3264
3227
|
* Defines the props of the component.
|
|
3265
3228
|
*/
|
|
3266
|
-
interface TextFieldProps extends GenericProps
|
|
3229
|
+
interface TextFieldProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
3267
3230
|
/** Chip Group to be rendered before the main text input. */
|
|
3268
3231
|
chips?: ReactNode;
|
|
3269
3232
|
/** 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 +3325,7 @@ declare const useFocusPointStyle: ({ image, aspectRatio, focusPoint, imgProps: {
|
|
|
3362
3325
|
/**
|
|
3363
3326
|
* Defines the props of the component.
|
|
3364
3327
|
*/
|
|
3365
|
-
interface ToolbarProps extends GenericProps
|
|
3328
|
+
interface ToolbarProps extends GenericProps {
|
|
3366
3329
|
/** After content (placed after the label). */
|
|
3367
3330
|
after?: ReactNode;
|
|
3368
3331
|
/** Before content (placed before the label). */
|
|
@@ -3386,7 +3349,7 @@ type TooltipPlacement = Extract<Placement, 'top' | 'right' | 'bottom' | 'left'>;
|
|
|
3386
3349
|
/**
|
|
3387
3350
|
* Defines the props of the component.
|
|
3388
3351
|
*/
|
|
3389
|
-
interface TooltipProps extends GenericProps
|
|
3352
|
+
interface TooltipProps extends GenericProps, HasCloseMode {
|
|
3390
3353
|
/** Anchor (element on which we activate the tooltip). */
|
|
3391
3354
|
children: ReactNode;
|
|
3392
3355
|
/** Delay (in ms) before closing the tooltip. */
|
|
@@ -3431,7 +3394,7 @@ interface FileInputProps extends Omit<React__default.ComponentProps<'input'>, 'o
|
|
|
3431
3394
|
/**
|
|
3432
3395
|
* Defines the props of the component.
|
|
3433
3396
|
*/
|
|
3434
|
-
interface UploaderProps extends GenericProps
|
|
3397
|
+
interface UploaderProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
3435
3398
|
/** Image aspect ratio. */
|
|
3436
3399
|
aspectRatio?: AspectRatio;
|
|
3437
3400
|
/** Icon (SVG path). */
|
|
@@ -3465,7 +3428,7 @@ type UserBlockSize = Extract<Size$1, 'xs' | 's' | 'm' | 'l'>;
|
|
|
3465
3428
|
/**
|
|
3466
3429
|
* Defines the props of the component.
|
|
3467
3430
|
*/
|
|
3468
|
-
interface UserBlockProps extends GenericProps
|
|
3431
|
+
interface UserBlockProps extends GenericProps, HasTheme$1 {
|
|
3469
3432
|
/** Props to pass to the avatar. */
|
|
3470
3433
|
avatarProps?: Omit<AvatarProps, 'alt'>;
|
|
3471
3434
|
/** Additional fields used to describe the user. */
|
|
@@ -3479,7 +3442,7 @@ interface UserBlockProps extends GenericProps$1, HasTheme$1 {
|
|
|
3479
3442
|
/** User name. */
|
|
3480
3443
|
name?: React__default.ReactNode;
|
|
3481
3444
|
/** Props to pass to the name block. */
|
|
3482
|
-
nameProps?: GenericProps
|
|
3445
|
+
nameProps?: GenericProps;
|
|
3483
3446
|
/** Orientation. */
|
|
3484
3447
|
orientation?: Orientation$1;
|
|
3485
3448
|
/** Simple action toolbar content. */
|