@lumx/react 4.2.1-alpha.1 → 4.2.1-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -2
- package/index.d.ts +194 -140
- package/index.js +11 -12
- package/index.js.map +1 -1
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
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';
|
|
1
|
+
import { Kind as Kind$1, HorizontalAlignment as HorizontalAlignment$1, Size as Size$1, ColorPalette as ColorPalette$1, GenericProps as GenericProps$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, AriaAttributes, InputHTMLAttributes, RefObject,
|
|
7
|
+
import React__default, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, AriaAttributes, InputHTMLAttributes, RefObject, CSSProperties, ImgHTMLAttributes, SetStateAction, Key, ElementType, ComponentProps } from 'react';
|
|
8
|
+
import { GenericProps as GenericProps$2 } from '@lumx/core/js/utils/disabledState';
|
|
8
9
|
|
|
9
10
|
/** LumX Component Type. */
|
|
10
11
|
type Comp<P, T = HTMLElement> = {
|
|
@@ -68,7 +69,7 @@ declare const AlertDialog: Comp<AlertDialogProps, HTMLDivElement>;
|
|
|
68
69
|
/**
|
|
69
70
|
* Defines the props of the component.
|
|
70
71
|
*/
|
|
71
|
-
interface AutocompleteProps extends GenericProps
|
|
72
|
+
interface AutocompleteProps extends GenericProps, HasTheme$1 {
|
|
72
73
|
/**
|
|
73
74
|
* Whether the suggestions list should display anchored to the input or to the wrapper.
|
|
74
75
|
* @see {@link DropdownProps#anchorToInput}
|
|
@@ -261,7 +262,7 @@ type AvatarSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>
|
|
|
261
262
|
/**
|
|
262
263
|
* Defines the props of the component.
|
|
263
264
|
*/
|
|
264
|
-
interface AvatarProps extends GenericProps
|
|
265
|
+
interface AvatarProps extends GenericProps, HasTheme$1 {
|
|
265
266
|
/** Action toolbar content. */
|
|
266
267
|
actions?: ReactNode;
|
|
267
268
|
/** Image alternative text. */
|
|
@@ -295,7 +296,7 @@ declare const Avatar: Comp<AvatarProps, HTMLDivElement>;
|
|
|
295
296
|
/**
|
|
296
297
|
* Defines the props of the component.
|
|
297
298
|
*/
|
|
298
|
-
interface BadgeProps extends GenericProps
|
|
299
|
+
interface BadgeProps extends GenericProps {
|
|
299
300
|
/** Badge content. */
|
|
300
301
|
children?: ReactNode;
|
|
301
302
|
/** Color variant. */
|
|
@@ -310,7 +311,7 @@ interface BadgeProps extends GenericProps$1 {
|
|
|
310
311
|
*/
|
|
311
312
|
declare const Badge: Comp<BadgeProps, HTMLDivElement>;
|
|
312
313
|
|
|
313
|
-
interface BadgeWrapperProps extends GenericProps
|
|
314
|
+
interface BadgeWrapperProps extends GenericProps {
|
|
314
315
|
/** Badge. */
|
|
315
316
|
badge: ReactElement;
|
|
316
317
|
/** Node to display the badge on */
|
|
@@ -499,16 +500,12 @@ interface HasTheme {
|
|
|
499
500
|
}
|
|
500
501
|
|
|
501
502
|
/**
|
|
502
|
-
*
|
|
503
|
+
* Framework-agnostic type for renderable content.
|
|
504
|
+
* Vue components should cast VNode[] from slots to this type.
|
|
505
|
+
*
|
|
506
|
+
* Note: Uses type-only import to avoid runtime dependencies.
|
|
503
507
|
*/
|
|
504
|
-
|
|
505
|
-
/**
|
|
506
|
-
* Any prop (particularly any supported prop for a HTML element).
|
|
507
|
-
*/
|
|
508
|
-
[propName: string]: any;
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
type JSXElement = boolean | number | string | React__default.JSX.Element | React__default.ReactNode | Iterable<JSXElement> | undefined | null;
|
|
508
|
+
type JSXElement = React__default.ReactNode;
|
|
512
509
|
|
|
513
510
|
/** Union type of all heading elements */
|
|
514
511
|
type HeadingElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
@@ -522,6 +519,8 @@ type KebabCase<S> = S extends `${infer C}${infer T}` ? T extends Uncapitalize<T>
|
|
|
522
519
|
/** Transform the component name into the lumx class name. */
|
|
523
520
|
type LumxClassName<TComponentName extends string> = `lumx-${KebabCase<TComponentName>}`;
|
|
524
521
|
|
|
522
|
+
type CommonRef = any;
|
|
523
|
+
|
|
525
524
|
type Booleanish = boolean | 'true' | 'false';
|
|
526
525
|
|
|
527
526
|
interface HasAriaDisabled {
|
|
@@ -529,11 +528,20 @@ interface HasAriaDisabled {
|
|
|
529
528
|
'aria-disabled'?: Booleanish;
|
|
530
529
|
}
|
|
531
530
|
|
|
531
|
+
type BaseClickableProps = {
|
|
532
|
+
children?: JSXElement;
|
|
533
|
+
isDisabled?: boolean;
|
|
534
|
+
disabled?: boolean;
|
|
535
|
+
'aria-disabled'?: Booleanish;
|
|
536
|
+
onClick?: (event?: any) => void;
|
|
537
|
+
ref?: CommonRef;
|
|
538
|
+
};
|
|
539
|
+
|
|
532
540
|
/**
|
|
533
541
|
* Button size definition.
|
|
534
542
|
*/
|
|
535
543
|
type ButtonSize = Extract<Size, 's' | 'm'>;
|
|
536
|
-
interface BaseButtonProps extends
|
|
544
|
+
interface BaseButtonProps extends Pick<AriaAttributes, 'aria-expanded' | 'aria-haspopup' | 'aria-pressed' | 'aria-label'>, HasClassName, HasTheme, HasAriaDisabled, BaseClickableProps {
|
|
537
545
|
/** Color variant. */
|
|
538
546
|
color?: ColorPalette;
|
|
539
547
|
/** Emphasis variant. */
|
|
@@ -556,6 +564,14 @@ interface BaseButtonProps extends GenericProps, Pick<AriaAttributes, 'aria-expan
|
|
|
556
564
|
type?: 'submit' | 'reset' | 'button' | undefined;
|
|
557
565
|
/** Custom component for the link (can be used to inject router Link). */
|
|
558
566
|
linkAs?: 'a' | any;
|
|
567
|
+
/** whether the button is dispalyed in full width or not */
|
|
568
|
+
fullWidth?: boolean;
|
|
569
|
+
/** whether the button is currently active or not */
|
|
570
|
+
isActive?: boolean;
|
|
571
|
+
/** whether the button is currently focused or not */
|
|
572
|
+
isFocused?: boolean;
|
|
573
|
+
/** whether the button is currently focused or not */
|
|
574
|
+
isHovered?: boolean;
|
|
559
575
|
}
|
|
560
576
|
|
|
561
577
|
/**
|
|
@@ -570,7 +586,7 @@ declare const ButtonEmphasis: {
|
|
|
570
586
|
/**
|
|
571
587
|
* Defines the props of the component.
|
|
572
588
|
*/
|
|
573
|
-
interface ButtonProps extends /* @vue-ignore */ BaseButtonProps {
|
|
589
|
+
interface ButtonProps$1 extends /* @vue-ignore */ BaseButtonProps {
|
|
574
590
|
/** Left icon (SVG path). */
|
|
575
591
|
leftIcon?: string;
|
|
576
592
|
/** Right icon (SVG path). */
|
|
@@ -591,8 +607,10 @@ declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
|
|
|
591
607
|
/**
|
|
592
608
|
* Component default props.
|
|
593
609
|
*/
|
|
594
|
-
declare const DEFAULT_PROPS: Partial<ButtonProps>;
|
|
610
|
+
declare const DEFAULT_PROPS: Partial<ButtonProps$1>;
|
|
595
611
|
|
|
612
|
+
interface ButtonProps extends ButtonProps$1, GenericProps$1 {
|
|
613
|
+
}
|
|
596
614
|
/**
|
|
597
615
|
* Button component.
|
|
598
616
|
*
|
|
@@ -602,7 +620,7 @@ declare const DEFAULT_PROPS: Partial<ButtonProps>;
|
|
|
602
620
|
*/
|
|
603
621
|
declare const Button: Comp<ButtonProps, HTMLButtonElement | HTMLAnchorElement>;
|
|
604
622
|
|
|
605
|
-
interface IconButtonProps$1 extends
|
|
623
|
+
interface IconButtonProps$1 extends BaseButtonProps {
|
|
606
624
|
/**
|
|
607
625
|
* Icon (SVG path).
|
|
608
626
|
* If `image` is also set, `image` will be used instead.
|
|
@@ -618,9 +636,13 @@ interface IconButtonProps$1 extends /* @vue-ignore */ BaseButtonProps {
|
|
|
618
636
|
* If you really don't want an aria-label, you can set an empty label (this is not recommended).
|
|
619
637
|
*/
|
|
620
638
|
label: string;
|
|
639
|
+
/**
|
|
640
|
+
* optional text to be displayed as the title of the HTML element
|
|
641
|
+
*/
|
|
642
|
+
title?: string;
|
|
621
643
|
}
|
|
622
644
|
|
|
623
|
-
interface IconButtonProps extends IconButtonProps$1 {
|
|
645
|
+
interface IconButtonProps extends IconButtonProps$1, GenericProps$1 {
|
|
624
646
|
/**
|
|
625
647
|
* Props to pass to the tooltip.
|
|
626
648
|
* If undefined or if tooltipProps.label is undefined, the label prop will be used as tooltip label.
|
|
@@ -641,13 +663,17 @@ declare const IconButton: Comp<IconButtonProps, HTMLButtonElement>;
|
|
|
641
663
|
/**
|
|
642
664
|
* Defines the props of the component
|
|
643
665
|
*/
|
|
644
|
-
interface ButtonGroupProps extends
|
|
666
|
+
interface ButtonGroupProps$1 extends HasClassName {
|
|
645
667
|
/**
|
|
646
668
|
* Children
|
|
647
669
|
*/
|
|
648
670
|
children?: JSXElement;
|
|
671
|
+
/** reference to the root element */
|
|
672
|
+
ref?: CommonRef;
|
|
649
673
|
}
|
|
650
674
|
|
|
675
|
+
interface ButtonGroupProps extends ButtonGroupProps$1, GenericProps {
|
|
676
|
+
}
|
|
651
677
|
/**
|
|
652
678
|
* ButtonGroup component.
|
|
653
679
|
*
|
|
@@ -660,7 +686,7 @@ declare const ButtonGroup: Comp<ButtonGroupProps, HTMLDivElement>;
|
|
|
660
686
|
/**
|
|
661
687
|
* Defines the props of the component.
|
|
662
688
|
*/
|
|
663
|
-
interface CheckboxProps extends GenericProps
|
|
689
|
+
interface CheckboxProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
664
690
|
/** Helper text. */
|
|
665
691
|
helper?: string;
|
|
666
692
|
/** Native input id property. */
|
|
@@ -698,7 +724,7 @@ type ChipSize = Extract<Size$1, 's' | 'm'>;
|
|
|
698
724
|
/**
|
|
699
725
|
* Defines the props of the component.
|
|
700
726
|
*/
|
|
701
|
-
interface ChipProps extends GenericProps
|
|
727
|
+
interface ChipProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
702
728
|
/** A component to be rendered after the content. */
|
|
703
729
|
after?: ReactNode;
|
|
704
730
|
/** A component to be rendered before the content. */
|
|
@@ -744,7 +770,7 @@ type useChipGroupNavigationType<C = any> = (chips: C[], onChipDeleted: (chip: C)
|
|
|
744
770
|
/**
|
|
745
771
|
* Defines the props of the component.
|
|
746
772
|
*/
|
|
747
|
-
interface ChipGroupProps extends GenericProps
|
|
773
|
+
interface ChipGroupProps extends GenericProps {
|
|
748
774
|
/**
|
|
749
775
|
* Chip horizontal alignment.
|
|
750
776
|
* @deprecated
|
|
@@ -768,7 +794,7 @@ type CommentBlockVariant = ValueOf<typeof CommentBlockVariant>;
|
|
|
768
794
|
/**
|
|
769
795
|
* Defines the props of the component.
|
|
770
796
|
*/
|
|
771
|
-
interface CommentBlockProps extends GenericProps
|
|
797
|
+
interface CommentBlockProps extends GenericProps, HasTheme$1 {
|
|
772
798
|
/** Action toolbar content. */
|
|
773
799
|
actions?: ReactNode;
|
|
774
800
|
/** Props to pass to the avatar. */
|
|
@@ -821,7 +847,7 @@ declare const CommentBlock: Comp<CommentBlockProps, HTMLDivElement>;
|
|
|
821
847
|
/**
|
|
822
848
|
* Defines the props of the component.
|
|
823
849
|
*/
|
|
824
|
-
interface DatePickerProps extends GenericProps
|
|
850
|
+
interface DatePickerProps extends GenericProps {
|
|
825
851
|
/** Default month. */
|
|
826
852
|
defaultMonth?: Date;
|
|
827
853
|
/** Locale (language or region) to use. */
|
|
@@ -876,7 +902,7 @@ declare const DatePickerControlled: Comp<DatePickerControlledProps, HTMLDivEleme
|
|
|
876
902
|
/**
|
|
877
903
|
* Defines the props of the component.
|
|
878
904
|
*/
|
|
879
|
-
interface DatePickerFieldProps extends Omit<TextFieldProps, 'value' | 'onChange'>, GenericProps
|
|
905
|
+
interface DatePickerFieldProps extends Omit<TextFieldProps, 'value' | 'onChange'>, GenericProps {
|
|
880
906
|
/** Default month. */
|
|
881
907
|
defaultMonth?: Date;
|
|
882
908
|
/** Locale (language or region) to use. */
|
|
@@ -906,7 +932,7 @@ declare const DatePickerField: Comp<DatePickerFieldProps, HTMLDivElement>;
|
|
|
906
932
|
/**
|
|
907
933
|
* Defines the props of the component.
|
|
908
934
|
*/
|
|
909
|
-
interface DialogProps extends GenericProps
|
|
935
|
+
interface DialogProps extends GenericProps {
|
|
910
936
|
/** Footer content. */
|
|
911
937
|
footer?: ReactNode;
|
|
912
938
|
/** Whether the divider between the dialog content and the footer is always displayed (instead of showing it on scroll). */
|
|
@@ -936,7 +962,7 @@ interface DialogProps extends GenericProps$1 {
|
|
|
936
962
|
/** Z-axis position. */
|
|
937
963
|
zIndex?: number;
|
|
938
964
|
/** Z-axis position. */
|
|
939
|
-
dialogProps?: GenericProps
|
|
965
|
+
dialogProps?: GenericProps;
|
|
940
966
|
/** On close callback. */
|
|
941
967
|
onClose?(): void;
|
|
942
968
|
/** Callback called when the open animation starts and the close animation finishes. */
|
|
@@ -959,7 +985,7 @@ declare const Dialog: Comp<DialogProps, HTMLDivElement>;
|
|
|
959
985
|
/**
|
|
960
986
|
* Defines the props of the component.
|
|
961
987
|
*/
|
|
962
|
-
interface DividerProps extends GenericProps
|
|
988
|
+
interface DividerProps extends GenericProps, HasTheme$1 {
|
|
963
989
|
}
|
|
964
990
|
/**
|
|
965
991
|
* Divider component.
|
|
@@ -973,7 +999,7 @@ declare const Divider: Comp<DividerProps, HTMLHRElement>;
|
|
|
973
999
|
/**
|
|
974
1000
|
* Defines the props of the component.
|
|
975
1001
|
*/
|
|
976
|
-
interface DragHandleProps extends GenericProps
|
|
1002
|
+
interface DragHandleProps extends GenericProps, HasTheme$1 {
|
|
977
1003
|
}
|
|
978
1004
|
/**
|
|
979
1005
|
* DragHandle component.
|
|
@@ -1031,7 +1057,7 @@ type FitAnchorWidth = ValueOf<typeof FitAnchorWidth>;
|
|
|
1031
1057
|
/**
|
|
1032
1058
|
* Defines the props of the component.
|
|
1033
1059
|
*/
|
|
1034
|
-
interface PopoverProps extends GenericProps
|
|
1060
|
+
interface PopoverProps extends GenericProps, HasTheme$1 {
|
|
1035
1061
|
/** Reference to the DOM element used to set the position of the popover. */
|
|
1036
1062
|
anchorRef: React.RefObject<HTMLElement>;
|
|
1037
1063
|
/** Customize the root element. (Must accept ref forwarding and props forwarding!). */
|
|
@@ -1092,7 +1118,7 @@ declare const Popover: Comp<PopoverProps, HTMLDivElement>;
|
|
|
1092
1118
|
/**
|
|
1093
1119
|
* Defines the props of the component.
|
|
1094
1120
|
*/
|
|
1095
|
-
interface DropdownProps extends GenericProps
|
|
1121
|
+
interface DropdownProps extends GenericProps {
|
|
1096
1122
|
/**
|
|
1097
1123
|
* Reference to the element around which the dropdown is placed.
|
|
1098
1124
|
* @see {@link PopoverProps#anchorRef}
|
|
@@ -1173,7 +1199,7 @@ declare const Dropdown: Comp<DropdownProps, HTMLDivElement>;
|
|
|
1173
1199
|
/**
|
|
1174
1200
|
* Defines the props of the component.
|
|
1175
1201
|
*/
|
|
1176
|
-
interface ExpansionPanelProps extends GenericProps
|
|
1202
|
+
interface ExpansionPanelProps extends GenericProps, HasCloseMode, HasTheme$1 {
|
|
1177
1203
|
/** Whether the expansion panel has a background. */
|
|
1178
1204
|
hasBackground?: boolean;
|
|
1179
1205
|
/** Whether the header has a divider. */
|
|
@@ -1202,7 +1228,54 @@ interface ExpansionPanelProps extends GenericProps$1, HasCloseMode, HasTheme$1 {
|
|
|
1202
1228
|
*/
|
|
1203
1229
|
declare const ExpansionPanel: Comp<ExpansionPanelProps, HTMLDivElement>;
|
|
1204
1230
|
|
|
1205
|
-
|
|
1231
|
+
/**
|
|
1232
|
+
* Defines the props of the component.
|
|
1233
|
+
*/
|
|
1234
|
+
interface TextProps$1 extends HasClassName {
|
|
1235
|
+
/**
|
|
1236
|
+
* Color variant.
|
|
1237
|
+
*/
|
|
1238
|
+
color?: ColorWithVariants;
|
|
1239
|
+
/**
|
|
1240
|
+
* Lightened or darkened variant of the selected color.
|
|
1241
|
+
*/
|
|
1242
|
+
colorVariant?: ColorVariant;
|
|
1243
|
+
/**
|
|
1244
|
+
* Typography variant.
|
|
1245
|
+
*/
|
|
1246
|
+
typography?: Typography;
|
|
1247
|
+
/**
|
|
1248
|
+
* Custom component to render the text.
|
|
1249
|
+
*/
|
|
1250
|
+
as: TextElement;
|
|
1251
|
+
/**
|
|
1252
|
+
* Control whether the text should truncate or not.
|
|
1253
|
+
* Setting as `true` will make the text truncate on a single line.
|
|
1254
|
+
* Setting as `{ lines: number }` will make the text truncate on a multiple lines.
|
|
1255
|
+
*/
|
|
1256
|
+
truncate?: boolean | {
|
|
1257
|
+
lines: number;
|
|
1258
|
+
};
|
|
1259
|
+
/**
|
|
1260
|
+
* Prevents text to wrap on multiple lines
|
|
1261
|
+
* (automatically activated when single line text truncate is activated).
|
|
1262
|
+
*/
|
|
1263
|
+
noWrap?: boolean;
|
|
1264
|
+
/**
|
|
1265
|
+
* WhiteSpace variant
|
|
1266
|
+
* Ignored when `noWrap` is set to true
|
|
1267
|
+
* Ignored when `truncate` is set to true or lines: 1
|
|
1268
|
+
* */
|
|
1269
|
+
whiteSpace?: WhiteSpace;
|
|
1270
|
+
/**
|
|
1271
|
+
* Children
|
|
1272
|
+
*/
|
|
1273
|
+
children?: JSXElement;
|
|
1274
|
+
/** list of styles to apply */
|
|
1275
|
+
style?: CSSProperties;
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
interface FlagProps$1 extends HasClassName, HasTheme {
|
|
1206
1279
|
/** Color of the component. */
|
|
1207
1280
|
color?: ColorPalette;
|
|
1208
1281
|
/** Icon to use before the label. */
|
|
@@ -1211,9 +1284,13 @@ interface FlagProps$1 extends GenericProps, HasTheme {
|
|
|
1211
1284
|
children: JSXElement;
|
|
1212
1285
|
/** Enable text truncate on overflow */
|
|
1213
1286
|
truncate?: boolean;
|
|
1287
|
+
/** ref to the root element */
|
|
1288
|
+
ref?: CommonRef;
|
|
1289
|
+
/** Text component to use for rendering the label */
|
|
1290
|
+
Text: (props: TextProps$1) => any;
|
|
1214
1291
|
}
|
|
1215
1292
|
|
|
1216
|
-
interface FlagProps extends Omit<FlagProps$1, 'children'> {
|
|
1293
|
+
interface FlagProps extends GenericProps$1, Omit<FlagProps$1, 'children' | 'Text'> {
|
|
1217
1294
|
label: React.ReactNode;
|
|
1218
1295
|
}
|
|
1219
1296
|
/**
|
|
@@ -1234,7 +1311,7 @@ type FlexHorizontalAlignment = HorizontalAlignment | SpaceAlignment;
|
|
|
1234
1311
|
/**
|
|
1235
1312
|
* Defines the props of the component.
|
|
1236
1313
|
*/
|
|
1237
|
-
interface FlexBoxProps$1 extends
|
|
1314
|
+
interface FlexBoxProps$1 extends HasClassName {
|
|
1238
1315
|
/** Children elements. */
|
|
1239
1316
|
children?: JSXElement;
|
|
1240
1317
|
/** Whether the "content filling space" is enabled or not. */
|
|
@@ -1258,7 +1335,7 @@ interface FlexBoxProps$1 extends GenericProps {
|
|
|
1258
1335
|
/**
|
|
1259
1336
|
* Defines the props of the component.
|
|
1260
1337
|
*/
|
|
1261
|
-
interface FlexBoxProps extends FlexBoxProps$1 {
|
|
1338
|
+
interface FlexBoxProps extends FlexBoxProps$1, GenericProps {
|
|
1262
1339
|
/** Customize the root element. */
|
|
1263
1340
|
as?: React__default.ElementType;
|
|
1264
1341
|
}
|
|
@@ -1375,58 +1452,15 @@ declare const GenericBlock: GenericBlock;
|
|
|
1375
1452
|
/**
|
|
1376
1453
|
* Defines the props of the component.
|
|
1377
1454
|
*/
|
|
1378
|
-
interface
|
|
1379
|
-
/**
|
|
1380
|
-
* Color variant.
|
|
1381
|
-
*/
|
|
1382
|
-
color?: ColorWithVariants;
|
|
1383
|
-
/**
|
|
1384
|
-
* Lightened or darkened variant of the selected color.
|
|
1385
|
-
*/
|
|
1386
|
-
colorVariant?: ColorVariant;
|
|
1387
|
-
/**
|
|
1388
|
-
* Typography variant.
|
|
1389
|
-
*/
|
|
1390
|
-
typography?: Typography;
|
|
1391
|
-
/**
|
|
1392
|
-
* Custom component to render the text.
|
|
1393
|
-
*/
|
|
1394
|
-
as: TextElement;
|
|
1395
|
-
/**
|
|
1396
|
-
* Control whether the text should truncate or not.
|
|
1397
|
-
* Setting as `true` will make the text truncate on a single line.
|
|
1398
|
-
* Setting as `{ lines: number }` will make the text truncate on a multiple lines.
|
|
1399
|
-
*/
|
|
1400
|
-
truncate?: boolean | {
|
|
1401
|
-
lines: number;
|
|
1402
|
-
};
|
|
1403
|
-
/**
|
|
1404
|
-
* Prevents text to wrap on multiple lines
|
|
1405
|
-
* (automatically activated when single line text truncate is activated).
|
|
1406
|
-
*/
|
|
1407
|
-
noWrap?: boolean;
|
|
1408
|
-
/**
|
|
1409
|
-
* WhiteSpace variant
|
|
1410
|
-
* Ignored when `noWrap` is set to true
|
|
1411
|
-
* Ignored when `truncate` is set to true or lines: 1
|
|
1412
|
-
* */
|
|
1413
|
-
whiteSpace?: WhiteSpace;
|
|
1414
|
-
/**
|
|
1415
|
-
* Children
|
|
1416
|
-
*/
|
|
1417
|
-
children?: JSXElement;
|
|
1418
|
-
}
|
|
1419
|
-
|
|
1420
|
-
/**
|
|
1421
|
-
* Defines the props of the component.
|
|
1422
|
-
*/
|
|
1423
|
-
interface HeadingProps extends Partial<TextProps> {
|
|
1455
|
+
interface HeadingProps$1 extends Partial<TextProps$1> {
|
|
1424
1456
|
/**
|
|
1425
1457
|
* Display a specific heading level instead of the one provided by parent context provider.
|
|
1426
1458
|
*/
|
|
1427
1459
|
as?: HeadingElement;
|
|
1428
1460
|
}
|
|
1429
1461
|
|
|
1462
|
+
interface HeadingProps extends HeadingProps$1, GenericProps {
|
|
1463
|
+
}
|
|
1430
1464
|
/**
|
|
1431
1465
|
* Renders a heading component.
|
|
1432
1466
|
* Extends the `Text` Component with the heading level automatically computed based on
|
|
@@ -1454,7 +1488,7 @@ type GridGutterSize = Extract<Size$1, 'regular' | 'big' | 'huge'>;
|
|
|
1454
1488
|
/**
|
|
1455
1489
|
* Defines the props of the component.
|
|
1456
1490
|
*/
|
|
1457
|
-
interface GridProps extends GenericProps
|
|
1491
|
+
interface GridProps extends GenericProps {
|
|
1458
1492
|
/** Orientation. */
|
|
1459
1493
|
orientation?: Orientation$1;
|
|
1460
1494
|
/** Whether the children are wrapped or not. */
|
|
@@ -1481,7 +1515,7 @@ type Columns = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11'
|
|
|
1481
1515
|
/**
|
|
1482
1516
|
* Defines the props of the component.
|
|
1483
1517
|
*/
|
|
1484
|
-
interface GridItemProps extends GenericProps
|
|
1518
|
+
interface GridItemProps extends GenericProps {
|
|
1485
1519
|
/** Alignment. */
|
|
1486
1520
|
align?: Alignment$1;
|
|
1487
1521
|
/** Order. */
|
|
@@ -1504,7 +1538,7 @@ type GridColumnGapSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
|
1504
1538
|
/**
|
|
1505
1539
|
* Defines the props of the component.
|
|
1506
1540
|
*/
|
|
1507
|
-
interface GridColumnProps extends GenericProps
|
|
1541
|
+
interface GridColumnProps extends GenericProps {
|
|
1508
1542
|
/** Customize the root element. */
|
|
1509
1543
|
as?: React.ElementType;
|
|
1510
1544
|
/** Children elements. */
|
|
@@ -1533,7 +1567,7 @@ type IconSizes = (typeof ICON_SIZES)[number];
|
|
|
1533
1567
|
/**
|
|
1534
1568
|
* Defines the props of the component.
|
|
1535
1569
|
*/
|
|
1536
|
-
interface IconProps extends
|
|
1570
|
+
interface IconProps$1 extends HasClassName, HasTheme {
|
|
1537
1571
|
/** Color variant. */
|
|
1538
1572
|
color?: ColorWithVariants;
|
|
1539
1573
|
/** Lightened or darkened variant of the selected icon color. */
|
|
@@ -1551,8 +1585,12 @@ interface IconProps extends GenericProps, HasTheme {
|
|
|
1551
1585
|
alt?: string;
|
|
1552
1586
|
/** Vertical alignment of the icon (only applies for icons nested in Text/Heading). */
|
|
1553
1587
|
verticalAlign?: null | 'middle';
|
|
1588
|
+
/** reference to the root element */
|
|
1589
|
+
ref?: CommonRef;
|
|
1554
1590
|
}
|
|
1555
1591
|
|
|
1592
|
+
interface IconProps extends IconProps$1, GenericProps {
|
|
1593
|
+
}
|
|
1556
1594
|
/**
|
|
1557
1595
|
* Icon component.
|
|
1558
1596
|
*
|
|
@@ -1609,7 +1647,7 @@ type ImgHTMLProps = ImgHTMLAttributes<HTMLImageElement>;
|
|
|
1609
1647
|
/**
|
|
1610
1648
|
* Defines the props of the component.
|
|
1611
1649
|
*/
|
|
1612
|
-
interface ThumbnailProps extends GenericProps
|
|
1650
|
+
interface ThumbnailProps extends GenericProps, HasTheme$1 {
|
|
1613
1651
|
/** Alignment of the thumbnail in it's parent (requires flex parent). */
|
|
1614
1652
|
align?: HorizontalAlignment$1;
|
|
1615
1653
|
/** Image alternative text. */
|
|
@@ -1695,7 +1733,7 @@ type ImageBlockSize = Extract<Size$1, 'xl' | 'xxl'>;
|
|
|
1695
1733
|
/**
|
|
1696
1734
|
* Defines the props of the component.
|
|
1697
1735
|
*/
|
|
1698
|
-
interface ImageBlockProps extends GenericProps
|
|
1736
|
+
interface ImageBlockProps extends GenericProps, HasTheme$1, ImageCaptionMetadata {
|
|
1699
1737
|
/** Action toolbar content. */
|
|
1700
1738
|
actions?: ReactNode;
|
|
1701
1739
|
/** Alignment. */
|
|
@@ -1787,7 +1825,7 @@ declare const ImageLightbox: Comp<ImageLightboxProps, HTMLDivElement> & {
|
|
|
1787
1825
|
/**
|
|
1788
1826
|
* Defines the props of the component.
|
|
1789
1827
|
*/
|
|
1790
|
-
interface InlineListProps extends GenericProps
|
|
1828
|
+
interface InlineListProps extends GenericProps {
|
|
1791
1829
|
/**
|
|
1792
1830
|
* Text color.
|
|
1793
1831
|
*/
|
|
@@ -1821,13 +1859,17 @@ declare const InlineList: Comp<InlineListProps, HTMLElement>;
|
|
|
1821
1859
|
/**
|
|
1822
1860
|
* Defines the props of the component.
|
|
1823
1861
|
*/
|
|
1824
|
-
interface InputHelperProps extends
|
|
1862
|
+
interface InputHelperProps$1 extends HasClassName, HasTheme {
|
|
1825
1863
|
/** Helper content. */
|
|
1826
1864
|
children: JSXElement;
|
|
1827
1865
|
/** Helper variant. */
|
|
1828
1866
|
kind?: Kind;
|
|
1867
|
+
/** ref to the root element `p` */
|
|
1868
|
+
ref?: CommonRef;
|
|
1829
1869
|
}
|
|
1830
1870
|
|
|
1871
|
+
interface InputHelperProps extends InputHelperProps$1, GenericProps$2 {
|
|
1872
|
+
}
|
|
1831
1873
|
/**
|
|
1832
1874
|
* InputHelper component.
|
|
1833
1875
|
*
|
|
@@ -1837,7 +1879,7 @@ interface InputHelperProps extends GenericProps, HasTheme {
|
|
|
1837
1879
|
*/
|
|
1838
1880
|
declare const InputHelper: Comp<InputHelperProps, HTMLParagraphElement>;
|
|
1839
1881
|
|
|
1840
|
-
interface InputLabelProps extends
|
|
1882
|
+
interface InputLabelProps$1 extends HasClassName, HasTheme {
|
|
1841
1883
|
/** Typography variant. */
|
|
1842
1884
|
typography?: Typography;
|
|
1843
1885
|
/** Label content. */
|
|
@@ -1846,8 +1888,12 @@ interface InputLabelProps extends GenericProps, HasTheme {
|
|
|
1846
1888
|
htmlFor: string;
|
|
1847
1889
|
/** Whether the component is required or not. */
|
|
1848
1890
|
isRequired?: boolean;
|
|
1891
|
+
/** ref to the root element */
|
|
1892
|
+
ref?: CommonRef;
|
|
1849
1893
|
}
|
|
1850
1894
|
|
|
1895
|
+
interface InputLabelProps extends InputLabelProps$1, GenericProps$1 {
|
|
1896
|
+
}
|
|
1851
1897
|
/**
|
|
1852
1898
|
* InputLabel component.
|
|
1853
1899
|
*
|
|
@@ -1860,7 +1906,7 @@ declare const InputLabel: Comp<InputLabelProps, HTMLLabelElement>;
|
|
|
1860
1906
|
/**
|
|
1861
1907
|
* Defines the props of the component.
|
|
1862
1908
|
*/
|
|
1863
|
-
interface LightboxProps extends GenericProps
|
|
1909
|
+
interface LightboxProps extends GenericProps, HasTheme$1, Pick<AriaAttributes, 'aria-label' | 'aria-labelledby'> {
|
|
1864
1910
|
/** Props to pass to the close button (minus those already set by the Lightbox props). */
|
|
1865
1911
|
closeButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis' | 'color'>;
|
|
1866
1912
|
/** Whether the component is open or not. */
|
|
@@ -1891,7 +1937,7 @@ type HTMLAnchorProps = React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAn
|
|
|
1891
1937
|
/**
|
|
1892
1938
|
* Defines the props of the component.
|
|
1893
1939
|
*/
|
|
1894
|
-
interface LinkProps extends GenericProps
|
|
1940
|
+
interface LinkProps extends GenericProps, HasAriaDisabled$1 {
|
|
1895
1941
|
/** Color variant. */
|
|
1896
1942
|
color?: ColorWithVariants$1;
|
|
1897
1943
|
/** Lightened or darkened variant of the selected icon color. */
|
|
@@ -1931,7 +1977,7 @@ declare const Link: Comp<LinkProps, HTMLButtonElement | HTMLAnchorElement>;
|
|
|
1931
1977
|
/**
|
|
1932
1978
|
* Defines the props of the component.
|
|
1933
1979
|
*/
|
|
1934
|
-
interface LinkPreviewProps extends GenericProps
|
|
1980
|
+
interface LinkPreviewProps extends GenericProps, HasTheme$1 {
|
|
1935
1981
|
/** Description. */
|
|
1936
1982
|
description?: string;
|
|
1937
1983
|
/** Link URL. */
|
|
@@ -1974,7 +2020,7 @@ type useKeyboardListNavigationType = <I>(items: I[], ref: RefObject<HTMLElement>
|
|
|
1974
2020
|
/**
|
|
1975
2021
|
* Defines the props of the component.
|
|
1976
2022
|
*/
|
|
1977
|
-
interface ListProps extends GenericProps
|
|
2023
|
+
interface ListProps extends GenericProps {
|
|
1978
2024
|
/** List content (should be ListItem, ListSubheader or ListDivider). */
|
|
1979
2025
|
children: ReactNode;
|
|
1980
2026
|
/**
|
|
@@ -2003,7 +2049,7 @@ type ListItemSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
|
2003
2049
|
/**
|
|
2004
2050
|
* Defines the props of the component.
|
|
2005
2051
|
*/
|
|
2006
|
-
interface ListItemProps extends GenericProps
|
|
2052
|
+
interface ListItemProps extends GenericProps, HasAriaDisabled$1 {
|
|
2007
2053
|
/** A component to be rendered after the content. */
|
|
2008
2054
|
after?: ReactNode;
|
|
2009
2055
|
/** A component to be rendered before the content. */
|
|
@@ -2046,7 +2092,7 @@ declare const ListItem: Comp<ListItemProps, HTMLLIElement>;
|
|
|
2046
2092
|
/**
|
|
2047
2093
|
* Defines the props of the component.
|
|
2048
2094
|
*/
|
|
2049
|
-
type ListDividerProps = GenericProps
|
|
2095
|
+
type ListDividerProps = GenericProps;
|
|
2050
2096
|
/**
|
|
2051
2097
|
* ListDivider component.
|
|
2052
2098
|
*
|
|
@@ -2054,12 +2100,12 @@ type ListDividerProps = GenericProps$1;
|
|
|
2054
2100
|
* @param ref Component ref.
|
|
2055
2101
|
* @return React element.
|
|
2056
2102
|
*/
|
|
2057
|
-
declare const ListDivider: Comp<GenericProps
|
|
2103
|
+
declare const ListDivider: Comp<GenericProps, HTMLLIElement>;
|
|
2058
2104
|
|
|
2059
2105
|
/**
|
|
2060
2106
|
* Defines the props of the component.
|
|
2061
2107
|
*/
|
|
2062
|
-
interface ListSubheaderProps extends GenericProps
|
|
2108
|
+
interface ListSubheaderProps extends GenericProps {
|
|
2063
2109
|
/** Content. */
|
|
2064
2110
|
children: string | ReactNode;
|
|
2065
2111
|
}
|
|
@@ -2075,7 +2121,7 @@ declare const ListSubheader: Comp<ListSubheaderProps, HTMLLIElement>;
|
|
|
2075
2121
|
/**
|
|
2076
2122
|
* Defines the props of the component.
|
|
2077
2123
|
*/
|
|
2078
|
-
interface MessageProps extends
|
|
2124
|
+
interface MessageProps$1 extends HasClassName {
|
|
2079
2125
|
/** Content. */
|
|
2080
2126
|
children?: JSXElement;
|
|
2081
2127
|
/** Whether the message has a background or not. */
|
|
@@ -2084,6 +2130,8 @@ interface MessageProps extends GenericProps {
|
|
|
2084
2130
|
kind?: Kind;
|
|
2085
2131
|
/** Message custom icon SVG path. */
|
|
2086
2132
|
icon?: string;
|
|
2133
|
+
/** Reference to the message container element. */
|
|
2134
|
+
ref?: CommonRef;
|
|
2087
2135
|
/**
|
|
2088
2136
|
* Displays a close button.
|
|
2089
2137
|
*
|
|
@@ -2097,6 +2145,10 @@ interface MessageProps extends GenericProps {
|
|
|
2097
2145
|
};
|
|
2098
2146
|
}
|
|
2099
2147
|
|
|
2148
|
+
interface MessageProps extends Omit<MessageProps$1, 'children' | 'ref'> {
|
|
2149
|
+
/** Content. */
|
|
2150
|
+
children?: React.ReactNode;
|
|
2151
|
+
}
|
|
2100
2152
|
/**
|
|
2101
2153
|
* Message component.
|
|
2102
2154
|
*
|
|
@@ -2109,7 +2161,7 @@ declare const Message: Comp<MessageProps, HTMLDivElement>;
|
|
|
2109
2161
|
/**
|
|
2110
2162
|
* Defines the props of the component.
|
|
2111
2163
|
*/
|
|
2112
|
-
interface MosaicProps extends GenericProps
|
|
2164
|
+
interface MosaicProps extends GenericProps, HasTheme$1 {
|
|
2113
2165
|
/** Thumbnails. */
|
|
2114
2166
|
thumbnails: ThumbnailProps[];
|
|
2115
2167
|
/** On image click callback. */
|
|
@@ -2165,7 +2217,7 @@ declare const Navigation: Comp<NavigationProps, HTMLElement> & SubComponents;
|
|
|
2165
2217
|
/**
|
|
2166
2218
|
* Defines the props of the component.
|
|
2167
2219
|
*/
|
|
2168
|
-
interface NotificationProps extends GenericProps
|
|
2220
|
+
interface NotificationProps extends GenericProps, HasTheme$1 {
|
|
2169
2221
|
/** Action button label. */
|
|
2170
2222
|
actionLabel?: string;
|
|
2171
2223
|
/** Content. */
|
|
@@ -2209,7 +2261,7 @@ declare const PopoverDialog: Comp<PopoverDialogProps, HTMLDivElement>;
|
|
|
2209
2261
|
/**
|
|
2210
2262
|
* Defines the props of the component.
|
|
2211
2263
|
*/
|
|
2212
|
-
interface PostBlockProps extends GenericProps
|
|
2264
|
+
interface PostBlockProps extends GenericProps, HasTheme$1 {
|
|
2213
2265
|
/** Action toolbar content. */
|
|
2214
2266
|
actions?: ReactNode;
|
|
2215
2267
|
/** Attachment content. */
|
|
@@ -2253,7 +2305,7 @@ type ProgressVariant = ValueOf<typeof ProgressVariant>;
|
|
|
2253
2305
|
/**
|
|
2254
2306
|
* Defines the props of the component.
|
|
2255
2307
|
*/
|
|
2256
|
-
interface ProgressProps extends GenericProps
|
|
2308
|
+
interface ProgressProps extends GenericProps, HasTheme$1 {
|
|
2257
2309
|
/** Progress variant. */
|
|
2258
2310
|
variant?: ProgressVariant;
|
|
2259
2311
|
}
|
|
@@ -2274,7 +2326,7 @@ type ProgressCircularSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm'>;
|
|
|
2274
2326
|
/**
|
|
2275
2327
|
* Defines the props of the component.
|
|
2276
2328
|
*/
|
|
2277
|
-
interface ProgressCircularProps extends GenericProps
|
|
2329
|
+
interface ProgressCircularProps extends GenericProps, HasTheme$1 {
|
|
2278
2330
|
/**
|
|
2279
2331
|
* Progress circular size.
|
|
2280
2332
|
*/
|
|
@@ -2294,7 +2346,7 @@ interface ProgressCircularProps extends GenericProps$1, HasTheme$1 {
|
|
|
2294
2346
|
*/
|
|
2295
2347
|
declare const ProgressCircular: Comp<ProgressCircularProps, HTMLDivElement>;
|
|
2296
2348
|
|
|
2297
|
-
interface ProgressLinearProps extends GenericProps
|
|
2349
|
+
interface ProgressLinearProps extends GenericProps, HasTheme$1 {
|
|
2298
2350
|
}
|
|
2299
2351
|
/**
|
|
2300
2352
|
* ProgressLinear component.
|
|
@@ -2333,7 +2385,7 @@ declare const ProgressTrackerProvider: React.FC<ProgressTrackerProviderProps>;
|
|
|
2333
2385
|
/**
|
|
2334
2386
|
* Defines the props of the component.
|
|
2335
2387
|
*/
|
|
2336
|
-
interface ProgressTrackerProps extends GenericProps
|
|
2388
|
+
interface ProgressTrackerProps extends GenericProps {
|
|
2337
2389
|
/** ARIA label (purpose of the set of steps). */
|
|
2338
2390
|
['aria-label']: string;
|
|
2339
2391
|
/** Step list. */
|
|
@@ -2353,7 +2405,7 @@ declare const ProgressTracker: Comp<ProgressTrackerProps, HTMLDivElement>;
|
|
|
2353
2405
|
/**
|
|
2354
2406
|
* Defines the props of the component.
|
|
2355
2407
|
*/
|
|
2356
|
-
interface ProgressTrackerStepProps extends GenericProps
|
|
2408
|
+
interface ProgressTrackerStepProps extends GenericProps {
|
|
2357
2409
|
/** Children are not supported. */
|
|
2358
2410
|
children?: never;
|
|
2359
2411
|
/** Whether the step should be in error state or not. */
|
|
@@ -2385,7 +2437,7 @@ declare const ProgressTrackerStep: Comp<ProgressTrackerStepProps, HTMLButtonElem
|
|
|
2385
2437
|
/**
|
|
2386
2438
|
* Defines the props of the component.
|
|
2387
2439
|
*/
|
|
2388
|
-
interface ProgressTrackerStepPanelProps extends GenericProps
|
|
2440
|
+
interface ProgressTrackerStepPanelProps extends GenericProps {
|
|
2389
2441
|
/** Native id property. */
|
|
2390
2442
|
id?: string;
|
|
2391
2443
|
/** Whether the step is active or not. */
|
|
@@ -2407,7 +2459,7 @@ declare const ProgressTrackerStepPanel: Comp<ProgressTrackerStepPanelProps, HTML
|
|
|
2407
2459
|
/**
|
|
2408
2460
|
* Defines the props of the component.
|
|
2409
2461
|
*/
|
|
2410
|
-
interface RadioButtonProps extends GenericProps
|
|
2462
|
+
interface RadioButtonProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
2411
2463
|
/** Helper text. */
|
|
2412
2464
|
helper?: string;
|
|
2413
2465
|
/** Native input id property. */
|
|
@@ -2441,7 +2493,7 @@ declare const RadioButton: Comp<RadioButtonProps, HTMLDivElement>;
|
|
|
2441
2493
|
/**
|
|
2442
2494
|
* Defines the props of the component.
|
|
2443
2495
|
*/
|
|
2444
|
-
interface RadioGroupProps extends GenericProps
|
|
2496
|
+
interface RadioGroupProps extends GenericProps {
|
|
2445
2497
|
/** RadioButton elements */
|
|
2446
2498
|
children: ReactNode;
|
|
2447
2499
|
}
|
|
@@ -2462,7 +2514,7 @@ declare const SelectVariant: {
|
|
|
2462
2514
|
readonly chip: "chip";
|
|
2463
2515
|
};
|
|
2464
2516
|
type SelectVariant = ValueOf<typeof SelectVariant>;
|
|
2465
|
-
interface CoreSelectProps extends GenericProps
|
|
2517
|
+
interface CoreSelectProps extends GenericProps, HasTheme$1 {
|
|
2466
2518
|
/** Props to pass to the clear button (minus those already set by the Select props). If not specified, the button won't be displayed. */
|
|
2467
2519
|
clearButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
|
|
2468
2520
|
/** Whether the select (input variant) is displayed with error style or not. */
|
|
@@ -2542,7 +2594,7 @@ declare const SelectMultiple: Comp<SelectMultipleProps, HTMLDivElement>;
|
|
|
2542
2594
|
/**
|
|
2543
2595
|
* Defines the props of the component.
|
|
2544
2596
|
*/
|
|
2545
|
-
interface SideNavigationProps extends GenericProps
|
|
2597
|
+
interface SideNavigationProps extends GenericProps, HasTheme$1 {
|
|
2546
2598
|
/** SideNavigationItem elements. */
|
|
2547
2599
|
children: ReactNode;
|
|
2548
2600
|
}
|
|
@@ -2558,7 +2610,7 @@ declare const SideNavigation: Comp<SideNavigationProps, HTMLUListElement>;
|
|
|
2558
2610
|
/**
|
|
2559
2611
|
* Defines the props of the component.
|
|
2560
2612
|
*/
|
|
2561
|
-
interface SideNavigationItemProps extends GenericProps
|
|
2613
|
+
interface SideNavigationItemProps extends GenericProps, HasCloseMode {
|
|
2562
2614
|
/** SideNavigationItem elements. */
|
|
2563
2615
|
children?: ReactNode;
|
|
2564
2616
|
/** Emphasis variant. */
|
|
@@ -2594,7 +2646,7 @@ declare const SideNavigationItem: Comp<SideNavigationItemProps, HTMLLIElement>;
|
|
|
2594
2646
|
/**
|
|
2595
2647
|
* Defines the props of the component.
|
|
2596
2648
|
*/
|
|
2597
|
-
interface SkeletonCircleProps extends GenericProps
|
|
2649
|
+
interface SkeletonCircleProps extends GenericProps, HasTheme$1 {
|
|
2598
2650
|
/** Size variant. */
|
|
2599
2651
|
size: GlobalSize;
|
|
2600
2652
|
/** The color of the skeleton. */
|
|
@@ -2621,7 +2673,7 @@ type SkeletonRectangleVariant = ValueOf<typeof SkeletonRectangleVariant>;
|
|
|
2621
2673
|
/**
|
|
2622
2674
|
* Defines the props of the component.
|
|
2623
2675
|
*/
|
|
2624
|
-
interface SkeletonRectangleProps extends GenericProps
|
|
2676
|
+
interface SkeletonRectangleProps extends GenericProps, HasTheme$1 {
|
|
2625
2677
|
/** Aspect ratio (use with width and not height). */
|
|
2626
2678
|
aspectRatio?: Extract<AspectRatio, 'square' | 'horizontal' | 'vertical' | 'wide'>;
|
|
2627
2679
|
/** Height size. */
|
|
@@ -2645,7 +2697,7 @@ declare const SkeletonRectangle: Comp<SkeletonRectangleProps, HTMLDivElement>;
|
|
|
2645
2697
|
/**
|
|
2646
2698
|
* Defines the props of the component.
|
|
2647
2699
|
*/
|
|
2648
|
-
interface SkeletonTypographyProps extends GenericProps
|
|
2700
|
+
interface SkeletonTypographyProps extends GenericProps, HasTheme$1 {
|
|
2649
2701
|
/** Typography variant. */
|
|
2650
2702
|
typography: TypographyInterface$1;
|
|
2651
2703
|
/** Width CSS property. */
|
|
@@ -2665,7 +2717,7 @@ declare const SkeletonTypography: Comp<SkeletonTypographyProps, HTMLDivElement>;
|
|
|
2665
2717
|
/**
|
|
2666
2718
|
* Defines the props of the component.
|
|
2667
2719
|
*/
|
|
2668
|
-
interface SliderProps extends GenericProps
|
|
2720
|
+
interface SliderProps extends GenericProps, HasTheme$1 {
|
|
2669
2721
|
/** Helper text. */
|
|
2670
2722
|
helper?: string;
|
|
2671
2723
|
/** Whether the min and max labels should be hidden or not. */
|
|
@@ -2724,7 +2776,7 @@ type SlideMode = ValueOf<typeof SlideMode>;
|
|
|
2724
2776
|
/**
|
|
2725
2777
|
* Defines the props of the component.
|
|
2726
2778
|
*/
|
|
2727
|
-
interface SlideshowProps extends GenericProps
|
|
2779
|
+
interface SlideshowProps extends GenericProps, Pick<SlidesProps, 'autoPlay' | 'slidesId' | 'id' | 'theme' | 'fillHeight' | 'groupBy' | 'slideGroupLabel'> {
|
|
2728
2780
|
/** Whether to use CSS transform translate or native scroll snap. */
|
|
2729
2781
|
slideMode?: SlideMode;
|
|
2730
2782
|
/** current slide active */
|
|
@@ -2750,7 +2802,7 @@ declare const Slideshow: Comp<SlideshowProps, HTMLDivElement>;
|
|
|
2750
2802
|
/**
|
|
2751
2803
|
* Defines the props of the component.
|
|
2752
2804
|
*/
|
|
2753
|
-
interface SlideshowItemProps extends GenericProps
|
|
2805
|
+
interface SlideshowItemProps extends GenericProps {
|
|
2754
2806
|
/** interval in which slides are automatically shown */
|
|
2755
2807
|
interval?: number;
|
|
2756
2808
|
/** Children */
|
|
@@ -2829,7 +2881,7 @@ interface UseSlideshowControls {
|
|
|
2829
2881
|
/**
|
|
2830
2882
|
* Defines the props of the component.
|
|
2831
2883
|
*/
|
|
2832
|
-
interface SlideshowControlsProps extends GenericProps
|
|
2884
|
+
interface SlideshowControlsProps extends GenericProps, HasTheme$1 {
|
|
2833
2885
|
/** Index of the current slide. */
|
|
2834
2886
|
activeIndex?: number;
|
|
2835
2887
|
/** Props to pass to the next button (minus those already set by the SlideshowControls props). */
|
|
@@ -2873,7 +2925,7 @@ declare const SlideshowControls: Comp<SlideshowControlsProps, HTMLDivElement> &
|
|
|
2873
2925
|
};
|
|
2874
2926
|
};
|
|
2875
2927
|
|
|
2876
|
-
interface SlidesProps extends GenericProps
|
|
2928
|
+
interface SlidesProps extends GenericProps, HasTheme$1 {
|
|
2877
2929
|
/** current slide active */
|
|
2878
2930
|
activeIndex: number;
|
|
2879
2931
|
/** slides id to be added to the wrapper */
|
|
@@ -2918,7 +2970,7 @@ declare const Slides: Comp<SlidesProps, HTMLDivElement>;
|
|
|
2918
2970
|
/**
|
|
2919
2971
|
* Defines the props of the component.
|
|
2920
2972
|
*/
|
|
2921
|
-
interface SwitchProps extends GenericProps
|
|
2973
|
+
interface SwitchProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
2922
2974
|
/** Helper text. */
|
|
2923
2975
|
helper?: string;
|
|
2924
2976
|
/** Whether it is checked or not. */
|
|
@@ -2950,7 +3002,7 @@ declare const Switch: Comp<SwitchProps, HTMLDivElement>;
|
|
|
2950
3002
|
/**
|
|
2951
3003
|
* Defines the props of the component.
|
|
2952
3004
|
*/
|
|
2953
|
-
interface TableProps extends GenericProps
|
|
3005
|
+
interface TableProps extends GenericProps, HasTheme$1 {
|
|
2954
3006
|
/** Whether the table has checkbox or thumbnail on first cell or not. */
|
|
2955
3007
|
hasBefore?: boolean;
|
|
2956
3008
|
/** Whether the table has dividers or not. */
|
|
@@ -2970,7 +3022,7 @@ declare const Table: Comp<TableProps, HTMLTableElement>;
|
|
|
2970
3022
|
/**
|
|
2971
3023
|
* Defines the props of the component.
|
|
2972
3024
|
*/
|
|
2973
|
-
interface TableBodyProps extends GenericProps
|
|
3025
|
+
interface TableBodyProps extends GenericProps {
|
|
2974
3026
|
/** Children */
|
|
2975
3027
|
children?: React.ReactNode;
|
|
2976
3028
|
}
|
|
@@ -3002,7 +3054,7 @@ type TableCellVariant = ValueOf<typeof TableCellVariant>;
|
|
|
3002
3054
|
/**
|
|
3003
3055
|
* Defines the props of the component.
|
|
3004
3056
|
*/
|
|
3005
|
-
interface TableCellProps extends GenericProps
|
|
3057
|
+
interface TableCellProps extends GenericProps {
|
|
3006
3058
|
/** Icon (SVG path).(thead only). */
|
|
3007
3059
|
icon?: string;
|
|
3008
3060
|
/** Whether the column is sortable or not (thead only). */
|
|
@@ -3028,7 +3080,7 @@ declare const TableCell: Comp<TableCellProps, HTMLTableCellElement>;
|
|
|
3028
3080
|
/**
|
|
3029
3081
|
* Defines the props of the component.
|
|
3030
3082
|
*/
|
|
3031
|
-
interface TableHeaderProps extends GenericProps
|
|
3083
|
+
interface TableHeaderProps extends GenericProps {
|
|
3032
3084
|
/** Children */
|
|
3033
3085
|
children?: React.ReactNode;
|
|
3034
3086
|
}
|
|
@@ -3044,7 +3096,7 @@ declare const TableHeader: Comp<TableHeaderProps, HTMLTableSectionElement>;
|
|
|
3044
3096
|
/**
|
|
3045
3097
|
* Defines the props of the component.
|
|
3046
3098
|
*/
|
|
3047
|
-
interface TableRowProps extends GenericProps
|
|
3099
|
+
interface TableRowProps extends GenericProps {
|
|
3048
3100
|
/** Whether the component is clickable or not. */
|
|
3049
3101
|
isClickable?: boolean;
|
|
3050
3102
|
/** Whether the component is disabled or not. */
|
|
@@ -3093,7 +3145,7 @@ declare enum TabListLayout {
|
|
|
3093
3145
|
/**
|
|
3094
3146
|
* Defines the props of the component.
|
|
3095
3147
|
*/
|
|
3096
|
-
interface TabListProps extends GenericProps
|
|
3148
|
+
interface TabListProps extends GenericProps, HasTheme$1 {
|
|
3097
3149
|
/** ARIA label (purpose of the set of tabs). */
|
|
3098
3150
|
['aria-label']: string;
|
|
3099
3151
|
/** Tab list. */
|
|
@@ -3117,7 +3169,7 @@ declare const TabList: Comp<TabListProps, HTMLDivElement>;
|
|
|
3117
3169
|
/**
|
|
3118
3170
|
* Defines the props of the component.
|
|
3119
3171
|
*/
|
|
3120
|
-
interface TabProps extends GenericProps
|
|
3172
|
+
interface TabProps extends GenericProps {
|
|
3121
3173
|
/** Children are not supported. */
|
|
3122
3174
|
children?: never;
|
|
3123
3175
|
/** Icon (SVG path). */
|
|
@@ -3147,7 +3199,7 @@ declare const Tab: Comp<TabProps, HTMLButtonElement>;
|
|
|
3147
3199
|
/**
|
|
3148
3200
|
* Defines the props of the component.
|
|
3149
3201
|
*/
|
|
3150
|
-
interface TabPanelProps extends GenericProps
|
|
3202
|
+
interface TabPanelProps extends GenericProps {
|
|
3151
3203
|
/** Native id property */
|
|
3152
3204
|
id?: string;
|
|
3153
3205
|
/** Whether the tab is active or not. */
|
|
@@ -3166,6 +3218,8 @@ interface TabPanelProps extends GenericProps$1 {
|
|
|
3166
3218
|
*/
|
|
3167
3219
|
declare const TabPanel: Comp<TabPanelProps, HTMLDivElement>;
|
|
3168
3220
|
|
|
3221
|
+
interface TextProps extends TextProps$1, GenericProps {
|
|
3222
|
+
}
|
|
3169
3223
|
/**
|
|
3170
3224
|
* Text component.
|
|
3171
3225
|
*
|
|
@@ -3178,7 +3232,7 @@ declare const Text: Comp<TextProps, HTMLElement>;
|
|
|
3178
3232
|
/**
|
|
3179
3233
|
* Defines the props of the component.
|
|
3180
3234
|
*/
|
|
3181
|
-
interface TextFieldProps extends GenericProps
|
|
3235
|
+
interface TextFieldProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
3182
3236
|
/** Chip Group to be rendered before the main text input. */
|
|
3183
3237
|
chips?: ReactNode;
|
|
3184
3238
|
/** Props to pass to the clear button (minus those already set by the TextField props). If not specified, the button won't be displayed. */
|
|
@@ -3277,7 +3331,7 @@ declare const useFocusPointStyle: ({ image, aspectRatio, focusPoint, imgProps: {
|
|
|
3277
3331
|
/**
|
|
3278
3332
|
* Defines the props of the component.
|
|
3279
3333
|
*/
|
|
3280
|
-
interface ToolbarProps extends GenericProps
|
|
3334
|
+
interface ToolbarProps extends GenericProps {
|
|
3281
3335
|
/** After content (placed after the label). */
|
|
3282
3336
|
after?: ReactNode;
|
|
3283
3337
|
/** Before content (placed before the label). */
|
|
@@ -3301,7 +3355,7 @@ type TooltipPlacement = Extract<Placement, 'top' | 'right' | 'bottom' | 'left'>;
|
|
|
3301
3355
|
/**
|
|
3302
3356
|
* Defines the props of the component.
|
|
3303
3357
|
*/
|
|
3304
|
-
interface TooltipProps extends GenericProps
|
|
3358
|
+
interface TooltipProps extends GenericProps, HasCloseMode {
|
|
3305
3359
|
/** Anchor (element on which we activate the tooltip). */
|
|
3306
3360
|
children: ReactNode;
|
|
3307
3361
|
/** Delay (in ms) before closing the tooltip. */
|
|
@@ -3346,7 +3400,7 @@ interface FileInputProps extends Omit<React__default.ComponentProps<'input'>, 'o
|
|
|
3346
3400
|
/**
|
|
3347
3401
|
* Defines the props of the component.
|
|
3348
3402
|
*/
|
|
3349
|
-
interface UploaderProps extends GenericProps
|
|
3403
|
+
interface UploaderProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
3350
3404
|
/** Image aspect ratio. */
|
|
3351
3405
|
aspectRatio?: AspectRatio;
|
|
3352
3406
|
/** Icon (SVG path). */
|
|
@@ -3380,7 +3434,7 @@ type UserBlockSize = Extract<Size$1, 'xs' | 's' | 'm' | 'l'>;
|
|
|
3380
3434
|
/**
|
|
3381
3435
|
* Defines the props of the component.
|
|
3382
3436
|
*/
|
|
3383
|
-
interface UserBlockProps extends GenericProps
|
|
3437
|
+
interface UserBlockProps extends GenericProps, HasTheme$1 {
|
|
3384
3438
|
/** Props to pass to the avatar. */
|
|
3385
3439
|
avatarProps?: Omit<AvatarProps, 'alt'>;
|
|
3386
3440
|
/** Additional fields used to describe the user. */
|
|
@@ -3394,7 +3448,7 @@ interface UserBlockProps extends GenericProps$1, HasTheme$1 {
|
|
|
3394
3448
|
/** User name. */
|
|
3395
3449
|
name?: React__default.ReactNode;
|
|
3396
3450
|
/** Props to pass to the name block. */
|
|
3397
|
-
nameProps?: GenericProps
|
|
3451
|
+
nameProps?: GenericProps;
|
|
3398
3452
|
/** Orientation. */
|
|
3399
3453
|
orientation?: Orientation$1;
|
|
3400
3454
|
/** Simple action toolbar content. */
|