@lumx/react 4.0.1-alpha.6 → 4.0.1-alpha.8
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 +313 -125
- package/index.js +809 -588
- package/index.js.map +1 -1
- package/package.json +9 -9
- package/utils/index.d.ts +2 -1
package/index.d.ts
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
import { Kind, HorizontalAlignment, Size, ColorPalette, Emphasis, Alignment, VerticalAlignment, Orientation, ColorWithVariants, ColorVariant, Typography, WhiteSpace, AspectRatio, GlobalSize, TypographyInterface, Theme } from '@lumx/core/js/constants';
|
|
1
|
+
import { Kind as Kind$1, HorizontalAlignment, Size as Size$1, ColorPalette as ColorPalette$1, Emphasis, Alignment, VerticalAlignment, Orientation, ColorWithVariants as ColorWithVariants$1, ColorVariant as ColorVariant$1, Typography as Typography$1, WhiteSpace, AspectRatio, 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, HasTheme, ValueOf, HasCloseMode, TextElement, HeadingElement, Falsy, HasClassName, HasAriaLabelOrLabelledBy } from '@lumx/core/js/types';
|
|
4
|
+
import { GenericProps as GenericProps$1, HasTheme as HasTheme$1, ValueOf, HasCloseMode, TextElement, HeadingElement, Falsy, HasClassName as HasClassName$1, HasAriaLabelOrLabelledBy } from '@lumx/core/js/types';
|
|
5
5
|
export * from '@lumx/core/js/types';
|
|
6
6
|
import * as React$1 from 'react';
|
|
7
7
|
import React__default, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, AriaAttributes, DetailedHTMLProps, ButtonHTMLAttributes, InputHTMLAttributes, RefObject, ImgHTMLAttributes, CSSProperties, SetStateAction, Key, ElementType, ComponentProps } from 'react';
|
|
8
|
-
import { InputLabelProps } from '@lumx/core/js/components/InputLabel';
|
|
9
|
-
export { InputLabelProps } from '@lumx/core/js/components/InputLabel';
|
|
10
|
-
import { IconProps } from '@lumx/core/js/components/Icon';
|
|
11
|
-
export { IconProps, IconSizes } from '@lumx/core/js/components/Icon';
|
|
12
|
-
import { InputHelperProps } from '@lumx/core/js/components/InputHelper';
|
|
13
|
-
export { InputHelperProps } from '@lumx/core/js/components/InputHelper';
|
|
14
8
|
|
|
15
9
|
/** LumX Component Type. */
|
|
16
10
|
type Comp<P, T = HTMLElement> = {
|
|
@@ -43,7 +37,7 @@ type HasRequiredLinkHref<E> = E extends 'a' ? {
|
|
|
43
37
|
|
|
44
38
|
interface AlertDialogProps extends Omit<DialogProps, 'header' | 'footer'> {
|
|
45
39
|
/** Message variant. */
|
|
46
|
-
kind?: Kind;
|
|
40
|
+
kind?: Kind$1;
|
|
47
41
|
/** Dialog title. */
|
|
48
42
|
title?: string;
|
|
49
43
|
/** Props forwarded to the confirm button */
|
|
@@ -78,7 +72,7 @@ declare const AlertDialog: Comp<AlertDialogProps, HTMLDivElement>;
|
|
|
78
72
|
/**
|
|
79
73
|
* Defines the props of the component.
|
|
80
74
|
*/
|
|
81
|
-
interface AutocompleteProps extends GenericProps, HasTheme {
|
|
75
|
+
interface AutocompleteProps extends GenericProps$1, HasTheme$1 {
|
|
82
76
|
/**
|
|
83
77
|
* Whether the suggestions list should display anchored to the input or to the wrapper.
|
|
84
78
|
* @see {@link DropdownProps#anchorToInput}
|
|
@@ -267,11 +261,11 @@ declare const AutocompleteMultiple: Comp<AutocompleteMultipleProps, HTMLDivEleme
|
|
|
267
261
|
/**
|
|
268
262
|
* Avatar sizes.
|
|
269
263
|
*/
|
|
270
|
-
type AvatarSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
264
|
+
type AvatarSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
271
265
|
/**
|
|
272
266
|
* Defines the props of the component.
|
|
273
267
|
*/
|
|
274
|
-
interface AvatarProps extends GenericProps, HasTheme {
|
|
268
|
+
interface AvatarProps extends GenericProps$1, HasTheme$1 {
|
|
275
269
|
/** Action toolbar content. */
|
|
276
270
|
actions?: ReactNode;
|
|
277
271
|
/** Image alternative text. */
|
|
@@ -305,11 +299,11 @@ declare const Avatar: Comp<AvatarProps, HTMLDivElement>;
|
|
|
305
299
|
/**
|
|
306
300
|
* Defines the props of the component.
|
|
307
301
|
*/
|
|
308
|
-
interface BadgeProps extends GenericProps {
|
|
302
|
+
interface BadgeProps extends GenericProps$1 {
|
|
309
303
|
/** Badge content. */
|
|
310
304
|
children?: ReactNode;
|
|
311
305
|
/** Color variant. */
|
|
312
|
-
color?: ColorPalette;
|
|
306
|
+
color?: ColorPalette$1;
|
|
313
307
|
}
|
|
314
308
|
/**
|
|
315
309
|
* Badge component.
|
|
@@ -320,7 +314,7 @@ interface BadgeProps extends GenericProps {
|
|
|
320
314
|
*/
|
|
321
315
|
declare const Badge: Comp<BadgeProps, HTMLDivElement>;
|
|
322
316
|
|
|
323
|
-
interface BadgeWrapperProps extends GenericProps {
|
|
317
|
+
interface BadgeWrapperProps extends GenericProps$1 {
|
|
324
318
|
/** Badge. */
|
|
325
319
|
badge: ReactElement;
|
|
326
320
|
/** Node to display the badge on */
|
|
@@ -337,10 +331,10 @@ type HTMLButtonProps = DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>
|
|
|
337
331
|
/**
|
|
338
332
|
* Button size definition.
|
|
339
333
|
*/
|
|
340
|
-
type ButtonSize = Extract<Size, 's' | 'm'>;
|
|
341
|
-
interface BaseButtonProps extends GenericProps, Pick<AriaAttributes, 'aria-expanded' | 'aria-haspopup' | 'aria-pressed' | 'aria-label'>, HasTheme, HasAriaDisabled {
|
|
334
|
+
type ButtonSize = Extract<Size$1, 's' | 'm'>;
|
|
335
|
+
interface BaseButtonProps extends GenericProps$1, Pick<AriaAttributes, 'aria-expanded' | 'aria-haspopup' | 'aria-pressed' | 'aria-label'>, HasTheme$1, HasAriaDisabled {
|
|
342
336
|
/** Color variant. */
|
|
343
|
-
color?: ColorPalette;
|
|
337
|
+
color?: ColorPalette$1;
|
|
344
338
|
/** Emphasis variant. */
|
|
345
339
|
emphasis?: Emphasis;
|
|
346
340
|
/** Whether or not the button has a background color in low emphasis. */
|
|
@@ -433,7 +427,7 @@ declare const IconButton: Comp<IconButtonProps, HTMLButtonElement>;
|
|
|
433
427
|
/**
|
|
434
428
|
* Defines the props of the component
|
|
435
429
|
*/
|
|
436
|
-
interface ButtonGroupProps extends GenericProps {
|
|
430
|
+
interface ButtonGroupProps extends GenericProps$1 {
|
|
437
431
|
/**
|
|
438
432
|
* Children
|
|
439
433
|
*/
|
|
@@ -451,7 +445,7 @@ declare const ButtonGroup: Comp<ButtonGroupProps, HTMLDivElement>;
|
|
|
451
445
|
/**
|
|
452
446
|
* Defines the props of the component.
|
|
453
447
|
*/
|
|
454
|
-
interface CheckboxProps extends GenericProps, HasTheme, HasAriaDisabled {
|
|
448
|
+
interface CheckboxProps extends GenericProps$1, HasTheme$1, HasAriaDisabled {
|
|
455
449
|
/** Helper text. */
|
|
456
450
|
helper?: string;
|
|
457
451
|
/** Native input id property. */
|
|
@@ -485,17 +479,17 @@ declare const Checkbox: Comp<CheckboxProps, HTMLDivElement>;
|
|
|
485
479
|
/**
|
|
486
480
|
* Chip sizes.
|
|
487
481
|
*/
|
|
488
|
-
type ChipSize = Extract<Size, 's' | 'm'>;
|
|
482
|
+
type ChipSize = Extract<Size$1, 's' | 'm'>;
|
|
489
483
|
/**
|
|
490
484
|
* Defines the props of the component.
|
|
491
485
|
*/
|
|
492
|
-
interface ChipProps extends GenericProps, HasTheme, HasAriaDisabled {
|
|
486
|
+
interface ChipProps extends GenericProps$1, HasTheme$1, HasAriaDisabled {
|
|
493
487
|
/** A component to be rendered after the content. */
|
|
494
488
|
after?: ReactNode;
|
|
495
489
|
/** A component to be rendered before the content. */
|
|
496
490
|
before?: ReactNode;
|
|
497
491
|
/** Color variant. */
|
|
498
|
-
color?: ColorPalette;
|
|
492
|
+
color?: ColorPalette$1;
|
|
499
493
|
/** Whether the component is clickable or not. */
|
|
500
494
|
isClickable?: boolean;
|
|
501
495
|
/** Whether the component is disabled or not. */
|
|
@@ -535,7 +529,7 @@ type useChipGroupNavigationType<C = any> = (chips: C[], onChipDeleted: (chip: C)
|
|
|
535
529
|
/**
|
|
536
530
|
* Defines the props of the component.
|
|
537
531
|
*/
|
|
538
|
-
interface ChipGroupProps extends GenericProps {
|
|
532
|
+
interface ChipGroupProps extends GenericProps$1 {
|
|
539
533
|
/**
|
|
540
534
|
* Chip horizontal alignment.
|
|
541
535
|
* @deprecated
|
|
@@ -559,7 +553,7 @@ type CommentBlockVariant = ValueOf<typeof CommentBlockVariant>;
|
|
|
559
553
|
/**
|
|
560
554
|
* Defines the props of the component.
|
|
561
555
|
*/
|
|
562
|
-
interface CommentBlockProps extends GenericProps, HasTheme {
|
|
556
|
+
interface CommentBlockProps extends GenericProps$1, HasTheme$1 {
|
|
563
557
|
/** Action toolbar content. */
|
|
564
558
|
actions?: ReactNode;
|
|
565
559
|
/** Props to pass to the avatar. */
|
|
@@ -612,7 +606,7 @@ declare const CommentBlock: Comp<CommentBlockProps, HTMLDivElement>;
|
|
|
612
606
|
/**
|
|
613
607
|
* Defines the props of the component.
|
|
614
608
|
*/
|
|
615
|
-
interface DatePickerProps extends GenericProps {
|
|
609
|
+
interface DatePickerProps extends GenericProps$1 {
|
|
616
610
|
/** Default month. */
|
|
617
611
|
defaultMonth?: Date;
|
|
618
612
|
/** Locale (language or region) to use. */
|
|
@@ -667,7 +661,7 @@ declare const DatePickerControlled: Comp<DatePickerControlledProps, HTMLDivEleme
|
|
|
667
661
|
/**
|
|
668
662
|
* Defines the props of the component.
|
|
669
663
|
*/
|
|
670
|
-
interface DatePickerFieldProps extends Omit<TextFieldProps, 'value' | 'onChange'>, GenericProps {
|
|
664
|
+
interface DatePickerFieldProps extends Omit<TextFieldProps, 'value' | 'onChange'>, GenericProps$1 {
|
|
671
665
|
/** Default month. */
|
|
672
666
|
defaultMonth?: Date;
|
|
673
667
|
/** Locale (language or region) to use. */
|
|
@@ -697,7 +691,7 @@ declare const DatePickerField: Comp<DatePickerFieldProps, HTMLDivElement>;
|
|
|
697
691
|
/**
|
|
698
692
|
* Defines the props of the component.
|
|
699
693
|
*/
|
|
700
|
-
interface DialogProps extends GenericProps {
|
|
694
|
+
interface DialogProps extends GenericProps$1 {
|
|
701
695
|
/** Footer content. */
|
|
702
696
|
footer?: ReactNode;
|
|
703
697
|
/** Whether the divider between the dialog content and the footer is always displayed (instead of showing it on scroll). */
|
|
@@ -727,7 +721,7 @@ interface DialogProps extends GenericProps {
|
|
|
727
721
|
/** Z-axis position. */
|
|
728
722
|
zIndex?: number;
|
|
729
723
|
/** Z-axis position. */
|
|
730
|
-
dialogProps?: GenericProps;
|
|
724
|
+
dialogProps?: GenericProps$1;
|
|
731
725
|
/** On close callback. */
|
|
732
726
|
onClose?(): void;
|
|
733
727
|
/** Callback called when the open animation starts and the close animation finishes. */
|
|
@@ -737,7 +731,7 @@ interface DialogProps extends GenericProps {
|
|
|
737
731
|
/** Children */
|
|
738
732
|
children?: React__default.ReactNode;
|
|
739
733
|
}
|
|
740
|
-
type DialogSizes = Extract<Size, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
734
|
+
type DialogSizes = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
741
735
|
/**
|
|
742
736
|
* Dialog component.
|
|
743
737
|
*
|
|
@@ -750,7 +744,7 @@ declare const Dialog: Comp<DialogProps, HTMLDivElement>;
|
|
|
750
744
|
/**
|
|
751
745
|
* Defines the props of the component.
|
|
752
746
|
*/
|
|
753
|
-
interface DividerProps extends GenericProps, HasTheme {
|
|
747
|
+
interface DividerProps extends GenericProps$1, HasTheme$1 {
|
|
754
748
|
}
|
|
755
749
|
/**
|
|
756
750
|
* Divider component.
|
|
@@ -764,7 +758,7 @@ declare const Divider: Comp<DividerProps, HTMLHRElement>;
|
|
|
764
758
|
/**
|
|
765
759
|
* Defines the props of the component.
|
|
766
760
|
*/
|
|
767
|
-
interface DragHandleProps extends GenericProps, HasTheme {
|
|
761
|
+
interface DragHandleProps extends GenericProps$1, HasTheme$1 {
|
|
768
762
|
}
|
|
769
763
|
/**
|
|
770
764
|
* DragHandle component.
|
|
@@ -822,7 +816,7 @@ type FitAnchorWidth = ValueOf<typeof FitAnchorWidth>;
|
|
|
822
816
|
/**
|
|
823
817
|
* Defines the props of the component.
|
|
824
818
|
*/
|
|
825
|
-
interface PopoverProps extends GenericProps, HasTheme {
|
|
819
|
+
interface PopoverProps extends GenericProps$1, HasTheme$1 {
|
|
826
820
|
/** Reference to the DOM element used to set the position of the popover. */
|
|
827
821
|
anchorRef: React.RefObject<HTMLElement>;
|
|
828
822
|
/** Customize the root element. (Must accept ref forwarding and props forwarding!). */
|
|
@@ -883,7 +877,7 @@ declare const Popover: Comp<PopoverProps, HTMLDivElement>;
|
|
|
883
877
|
/**
|
|
884
878
|
* Defines the props of the component.
|
|
885
879
|
*/
|
|
886
|
-
interface DropdownProps extends GenericProps {
|
|
880
|
+
interface DropdownProps extends GenericProps$1 {
|
|
887
881
|
/**
|
|
888
882
|
* Reference to the element around which the dropdown is placed.
|
|
889
883
|
* @see {@link PopoverProps#anchorRef}
|
|
@@ -964,7 +958,7 @@ declare const Dropdown: Comp<DropdownProps, HTMLDivElement>;
|
|
|
964
958
|
/**
|
|
965
959
|
* Defines the props of the component.
|
|
966
960
|
*/
|
|
967
|
-
interface ExpansionPanelProps extends GenericProps, HasCloseMode, HasTheme {
|
|
961
|
+
interface ExpansionPanelProps extends GenericProps$1, HasCloseMode, HasTheme$1 {
|
|
968
962
|
/** Whether the expansion panel has a background. */
|
|
969
963
|
hasBackground?: boolean;
|
|
970
964
|
/** Whether the header has a divider. */
|
|
@@ -993,9 +987,9 @@ interface ExpansionPanelProps extends GenericProps, HasCloseMode, HasTheme {
|
|
|
993
987
|
*/
|
|
994
988
|
declare const ExpansionPanel: Comp<ExpansionPanelProps, HTMLDivElement>;
|
|
995
989
|
|
|
996
|
-
interface FlagProps extends GenericProps, HasTheme {
|
|
990
|
+
interface FlagProps extends GenericProps$1, HasTheme$1 {
|
|
997
991
|
/** Color of the component. */
|
|
998
|
-
color?: ColorPalette;
|
|
992
|
+
color?: ColorPalette$1;
|
|
999
993
|
/** Icon to use before the label. */
|
|
1000
994
|
icon?: string;
|
|
1001
995
|
/** Text label of the flag. */
|
|
@@ -1013,14 +1007,14 @@ interface FlagProps extends GenericProps, HasTheme {
|
|
|
1013
1007
|
declare const Flag: Comp<FlagProps, HTMLDivElement>;
|
|
1014
1008
|
|
|
1015
1009
|
type MarginAutoAlignment = Extract<Alignment, 'top' | 'bottom' | 'right' | 'left'>;
|
|
1016
|
-
type GapSize = Extract<Size, 'tiny' | 'regular' | 'medium' | 'big' | 'huge'>;
|
|
1010
|
+
type GapSize = Extract<Size$1, 'tiny' | 'regular' | 'medium' | 'big' | 'huge'>;
|
|
1017
1011
|
type SpaceAlignment = Extract<Alignment, 'space-between' | 'space-evenly' | 'space-around'>;
|
|
1018
1012
|
type FlexVerticalAlignment = VerticalAlignment | SpaceAlignment;
|
|
1019
1013
|
type FlexHorizontalAlignment = HorizontalAlignment | SpaceAlignment;
|
|
1020
1014
|
/**
|
|
1021
1015
|
* Defines the props of the component.
|
|
1022
1016
|
*/
|
|
1023
|
-
interface FlexBoxProps extends GenericProps {
|
|
1017
|
+
interface FlexBoxProps extends GenericProps$1 {
|
|
1024
1018
|
/** Customize the root element. */
|
|
1025
1019
|
as?: React.ElementType;
|
|
1026
1020
|
/** Children elements. */
|
|
@@ -1155,19 +1149,19 @@ declare const GenericBlock: GenericBlock;
|
|
|
1155
1149
|
/**
|
|
1156
1150
|
* Defines the props of the component.
|
|
1157
1151
|
*/
|
|
1158
|
-
interface TextProps extends GenericProps {
|
|
1152
|
+
interface TextProps extends GenericProps$1 {
|
|
1159
1153
|
/**
|
|
1160
1154
|
* Color variant.
|
|
1161
1155
|
*/
|
|
1162
|
-
color?: ColorWithVariants;
|
|
1156
|
+
color?: ColorWithVariants$1;
|
|
1163
1157
|
/**
|
|
1164
1158
|
* Lightened or darkened variant of the selected color.
|
|
1165
1159
|
*/
|
|
1166
|
-
colorVariant?: ColorVariant;
|
|
1160
|
+
colorVariant?: ColorVariant$1;
|
|
1167
1161
|
/**
|
|
1168
1162
|
* Typography variant.
|
|
1169
1163
|
*/
|
|
1170
|
-
typography?: Typography;
|
|
1164
|
+
typography?: Typography$1;
|
|
1171
1165
|
/**
|
|
1172
1166
|
* Custom component to render the text.
|
|
1173
1167
|
*/
|
|
@@ -1241,11 +1235,11 @@ declare const useHeadingLevel: () => {
|
|
|
1241
1235
|
headingElement: _lumx_core_js_types.HeadingElement;
|
|
1242
1236
|
};
|
|
1243
1237
|
|
|
1244
|
-
type GridGutterSize = Extract<Size, 'regular' | 'big' | 'huge'>;
|
|
1238
|
+
type GridGutterSize = Extract<Size$1, 'regular' | 'big' | 'huge'>;
|
|
1245
1239
|
/**
|
|
1246
1240
|
* Defines the props of the component.
|
|
1247
1241
|
*/
|
|
1248
|
-
interface GridProps extends GenericProps {
|
|
1242
|
+
interface GridProps extends GenericProps$1 {
|
|
1249
1243
|
/** Orientation. */
|
|
1250
1244
|
orientation?: Orientation;
|
|
1251
1245
|
/** Whether the children are wrapped or not. */
|
|
@@ -1272,7 +1266,7 @@ type Columns = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11'
|
|
|
1272
1266
|
/**
|
|
1273
1267
|
* Defines the props of the component.
|
|
1274
1268
|
*/
|
|
1275
|
-
interface GridItemProps extends GenericProps {
|
|
1269
|
+
interface GridItemProps extends GenericProps$1 {
|
|
1276
1270
|
/** Alignment. */
|
|
1277
1271
|
align?: Alignment;
|
|
1278
1272
|
/** Order. */
|
|
@@ -1291,11 +1285,11 @@ interface GridItemProps extends GenericProps {
|
|
|
1291
1285
|
*/
|
|
1292
1286
|
declare const GridItem: Comp<GridItemProps, HTMLDivElement>;
|
|
1293
1287
|
|
|
1294
|
-
type GridColumnGapSize = Extract<Size, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
1288
|
+
type GridColumnGapSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
1295
1289
|
/**
|
|
1296
1290
|
* Defines the props of the component.
|
|
1297
1291
|
*/
|
|
1298
|
-
interface GridColumnProps extends GenericProps {
|
|
1292
|
+
interface GridColumnProps extends GenericProps$1 {
|
|
1299
1293
|
/** Customize the root element. */
|
|
1300
1294
|
as?: React.ElementType;
|
|
1301
1295
|
/** Children elements. */
|
|
@@ -1318,6 +1312,179 @@ interface GridColumnProps extends GenericProps {
|
|
|
1318
1312
|
*/
|
|
1319
1313
|
declare const GridColumn: Comp<GridColumnProps, HTMLElement>;
|
|
1320
1314
|
|
|
1315
|
+
declare const Theme: {
|
|
1316
|
+
readonly light: "light";
|
|
1317
|
+
readonly dark: "dark";
|
|
1318
|
+
};
|
|
1319
|
+
type Theme = ValueOf<typeof Theme>;
|
|
1320
|
+
declare const Size: {
|
|
1321
|
+
readonly xxs: "xxs";
|
|
1322
|
+
readonly xs: "xs";
|
|
1323
|
+
readonly s: "s";
|
|
1324
|
+
readonly m: "m";
|
|
1325
|
+
readonly l: "l";
|
|
1326
|
+
readonly xl: "xl";
|
|
1327
|
+
readonly xxl: "xxl";
|
|
1328
|
+
readonly tiny: "tiny";
|
|
1329
|
+
readonly regular: "regular";
|
|
1330
|
+
readonly medium: "medium";
|
|
1331
|
+
readonly big: "big";
|
|
1332
|
+
readonly huge: "huge";
|
|
1333
|
+
};
|
|
1334
|
+
type Size = ValueOf<typeof Size>;
|
|
1335
|
+
/**
|
|
1336
|
+
* List of typographies that can't be customized.
|
|
1337
|
+
*/
|
|
1338
|
+
declare const TypographyInterface: {
|
|
1339
|
+
readonly overline: "overline";
|
|
1340
|
+
readonly caption: "caption";
|
|
1341
|
+
readonly body1: "body1";
|
|
1342
|
+
readonly body2: "body2";
|
|
1343
|
+
readonly subtitle1: "subtitle1";
|
|
1344
|
+
readonly subtitle2: "subtitle2";
|
|
1345
|
+
readonly title: "title";
|
|
1346
|
+
readonly headline: "headline";
|
|
1347
|
+
readonly display1: "display1";
|
|
1348
|
+
};
|
|
1349
|
+
type TypographyInterface = ValueOf<typeof TypographyInterface>;
|
|
1350
|
+
/**
|
|
1351
|
+
* List of typographies that can be customized (via CSS variables).
|
|
1352
|
+
*/
|
|
1353
|
+
declare const TypographyCustom: {
|
|
1354
|
+
readonly intro: "custom-intro";
|
|
1355
|
+
readonly 'body-large': "custom-body-large";
|
|
1356
|
+
readonly body: "custom-body";
|
|
1357
|
+
readonly quote: "custom-quote";
|
|
1358
|
+
readonly 'publish-info': "custom-publish-info";
|
|
1359
|
+
readonly button: "custom-button";
|
|
1360
|
+
readonly title1: "custom-title1";
|
|
1361
|
+
readonly title2: "custom-title2";
|
|
1362
|
+
readonly title3: "custom-title3";
|
|
1363
|
+
readonly title4: "custom-title4";
|
|
1364
|
+
readonly title5: "custom-title5";
|
|
1365
|
+
readonly title6: "custom-title6";
|
|
1366
|
+
};
|
|
1367
|
+
type TypographyCustom = ValueOf<typeof TypographyCustom>;
|
|
1368
|
+
/**
|
|
1369
|
+
* List of all typographies.
|
|
1370
|
+
*/
|
|
1371
|
+
declare const Typography: {
|
|
1372
|
+
readonly custom: {
|
|
1373
|
+
readonly intro: "custom-intro";
|
|
1374
|
+
readonly 'body-large': "custom-body-large";
|
|
1375
|
+
readonly body: "custom-body";
|
|
1376
|
+
readonly quote: "custom-quote";
|
|
1377
|
+
readonly 'publish-info': "custom-publish-info";
|
|
1378
|
+
readonly button: "custom-button";
|
|
1379
|
+
readonly title1: "custom-title1";
|
|
1380
|
+
readonly title2: "custom-title2";
|
|
1381
|
+
readonly title3: "custom-title3";
|
|
1382
|
+
readonly title4: "custom-title4";
|
|
1383
|
+
readonly title5: "custom-title5";
|
|
1384
|
+
readonly title6: "custom-title6";
|
|
1385
|
+
};
|
|
1386
|
+
readonly overline: "overline";
|
|
1387
|
+
readonly caption: "caption";
|
|
1388
|
+
readonly body1: "body1";
|
|
1389
|
+
readonly body2: "body2";
|
|
1390
|
+
readonly subtitle1: "subtitle1";
|
|
1391
|
+
readonly subtitle2: "subtitle2";
|
|
1392
|
+
readonly title: "title";
|
|
1393
|
+
readonly headline: "headline";
|
|
1394
|
+
readonly display1: "display1";
|
|
1395
|
+
};
|
|
1396
|
+
type Typography = TypographyInterface | TypographyCustom;
|
|
1397
|
+
/**
|
|
1398
|
+
* Semantic info about the purpose of the component
|
|
1399
|
+
*/
|
|
1400
|
+
declare const Kind: {
|
|
1401
|
+
readonly info: "info";
|
|
1402
|
+
readonly success: "success";
|
|
1403
|
+
readonly warning: "warning";
|
|
1404
|
+
readonly error: "error";
|
|
1405
|
+
};
|
|
1406
|
+
type Kind = ValueOf<typeof Kind>;
|
|
1407
|
+
/**
|
|
1408
|
+
* See SCSS variable $lumx-color-palette
|
|
1409
|
+
*/
|
|
1410
|
+
declare const ColorPalette: {
|
|
1411
|
+
readonly primary: "primary";
|
|
1412
|
+
readonly secondary: "secondary";
|
|
1413
|
+
readonly blue: "blue";
|
|
1414
|
+
readonly dark: "dark";
|
|
1415
|
+
readonly green: "green";
|
|
1416
|
+
readonly yellow: "yellow";
|
|
1417
|
+
readonly red: "red";
|
|
1418
|
+
readonly light: "light";
|
|
1419
|
+
readonly grey: "grey";
|
|
1420
|
+
};
|
|
1421
|
+
type ColorPalette = ValueOf<typeof ColorPalette>;
|
|
1422
|
+
/**
|
|
1423
|
+
* See SCSS variable $lumx-color-variants
|
|
1424
|
+
*/
|
|
1425
|
+
declare const ColorVariant: {
|
|
1426
|
+
readonly D1: "D1";
|
|
1427
|
+
readonly D2: "D2";
|
|
1428
|
+
readonly L1: "L1";
|
|
1429
|
+
readonly L2: "L2";
|
|
1430
|
+
readonly L3: "L3";
|
|
1431
|
+
readonly L4: "L4";
|
|
1432
|
+
readonly L5: "L5";
|
|
1433
|
+
readonly L6: "L6";
|
|
1434
|
+
readonly N: "N";
|
|
1435
|
+
};
|
|
1436
|
+
type ColorVariant = ValueOf<typeof ColorVariant>;
|
|
1437
|
+
/** ColorPalette with all possible color variant combination */
|
|
1438
|
+
type ColorWithVariants = ColorPalette | Exclude<`${ColorPalette}-${ColorVariant}`, `light-D${number}` | `dark-D${number}`>;
|
|
1439
|
+
|
|
1440
|
+
interface HasClassName {
|
|
1441
|
+
/**
|
|
1442
|
+
* Class name forwarded to the root element of the component.
|
|
1443
|
+
*/
|
|
1444
|
+
className?: string;
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
interface HasTheme {
|
|
1448
|
+
/**
|
|
1449
|
+
* Theme adapting the component to light or dark background.
|
|
1450
|
+
*/
|
|
1451
|
+
theme?: Theme;
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
/**
|
|
1455
|
+
* Define a generic props types.
|
|
1456
|
+
*/
|
|
1457
|
+
interface GenericProps extends HasClassName {
|
|
1458
|
+
/**
|
|
1459
|
+
* Any prop (particularly any supported prop for a HTML element).
|
|
1460
|
+
*/
|
|
1461
|
+
[propName: string]: any;
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
type JSXElement = boolean | number | string | React__default.JSX.Element | Iterable<JSXElement> | undefined | null;
|
|
1465
|
+
|
|
1466
|
+
type IconSizes = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
1467
|
+
/**
|
|
1468
|
+
* Defines the props of the component.
|
|
1469
|
+
*/
|
|
1470
|
+
interface IconProps extends GenericProps, HasTheme {
|
|
1471
|
+
/** Color variant. */
|
|
1472
|
+
color?: ColorWithVariants;
|
|
1473
|
+
/** Lightened or darkened variant of the selected icon color. */
|
|
1474
|
+
colorVariant?: ColorVariant;
|
|
1475
|
+
/** Whether the icon has a shape. */
|
|
1476
|
+
hasShape?: boolean;
|
|
1477
|
+
/**
|
|
1478
|
+
* Icon (SVG path) draw code (`d` property of the `<path>` SVG element).
|
|
1479
|
+
* See https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Paths
|
|
1480
|
+
*/
|
|
1481
|
+
icon: string;
|
|
1482
|
+
/** Size variant. */
|
|
1483
|
+
size?: IconSizes;
|
|
1484
|
+
/** Sets an alternative text on the svg. Will set an `img` role to the svg. */
|
|
1485
|
+
alt?: string;
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1321
1488
|
/**
|
|
1322
1489
|
* Icon component.
|
|
1323
1490
|
*
|
|
@@ -1352,7 +1519,7 @@ declare const ThumbnailAspectRatio: Record<string, AspectRatio>;
|
|
|
1352
1519
|
/**
|
|
1353
1520
|
* Thumbnail sizes.
|
|
1354
1521
|
*/
|
|
1355
|
-
type ThumbnailSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
1522
|
+
type ThumbnailSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
1356
1523
|
/**
|
|
1357
1524
|
* Thumbnail variants.
|
|
1358
1525
|
*/
|
|
@@ -1374,7 +1541,7 @@ type ImgHTMLProps = ImgHTMLAttributes<HTMLImageElement>;
|
|
|
1374
1541
|
/**
|
|
1375
1542
|
* Defines the props of the component.
|
|
1376
1543
|
*/
|
|
1377
|
-
interface ThumbnailProps extends GenericProps, HasTheme {
|
|
1544
|
+
interface ThumbnailProps extends GenericProps$1, HasTheme$1 {
|
|
1378
1545
|
/** Alignment of the thumbnail in it's parent (requires flex parent). */
|
|
1379
1546
|
align?: HorizontalAlignment;
|
|
1380
1547
|
/** Image alternative text. */
|
|
@@ -1456,11 +1623,11 @@ type ImageBlockCaptionPosition = ValueOf<typeof ImageBlockCaptionPosition>;
|
|
|
1456
1623
|
/**
|
|
1457
1624
|
* Image block sizes.
|
|
1458
1625
|
*/
|
|
1459
|
-
type ImageBlockSize = Extract<Size, 'xl' | 'xxl'>;
|
|
1626
|
+
type ImageBlockSize = Extract<Size$1, 'xl' | 'xxl'>;
|
|
1460
1627
|
/**
|
|
1461
1628
|
* Defines the props of the component.
|
|
1462
1629
|
*/
|
|
1463
|
-
interface ImageBlockProps extends GenericProps, HasTheme, ImageCaptionMetadata {
|
|
1630
|
+
interface ImageBlockProps extends GenericProps$1, HasTheme$1, ImageCaptionMetadata {
|
|
1464
1631
|
/** Action toolbar content. */
|
|
1465
1632
|
actions?: ReactNode;
|
|
1466
1633
|
/** Alignment. */
|
|
@@ -1510,7 +1677,7 @@ type ForwardedProps = React.ComponentPropsWithoutRef<'div'>;
|
|
|
1510
1677
|
/**
|
|
1511
1678
|
* ImageLightbox component props
|
|
1512
1679
|
*/
|
|
1513
|
-
interface ImageLightboxProps extends HasClassName, ZoomButtonProps, ImagesProps, InheritedSlideShowProps, InheritedLightboxProps, ForwardedProps {
|
|
1680
|
+
interface ImageLightboxProps extends HasClassName$1, ZoomButtonProps, ImagesProps, InheritedSlideShowProps, InheritedLightboxProps, ForwardedProps {
|
|
1514
1681
|
}
|
|
1515
1682
|
|
|
1516
1683
|
/** Subset of the ImageLightboxProps managed by the useImageLightbox hook */
|
|
@@ -1552,19 +1719,19 @@ declare const ImageLightbox: Comp<ImageLightboxProps, HTMLDivElement> & {
|
|
|
1552
1719
|
/**
|
|
1553
1720
|
* Defines the props of the component.
|
|
1554
1721
|
*/
|
|
1555
|
-
interface InlineListProps extends GenericProps {
|
|
1722
|
+
interface InlineListProps extends GenericProps$1 {
|
|
1556
1723
|
/**
|
|
1557
1724
|
* Text color.
|
|
1558
1725
|
*/
|
|
1559
|
-
color?: ColorWithVariants;
|
|
1726
|
+
color?: ColorWithVariants$1;
|
|
1560
1727
|
/**
|
|
1561
1728
|
* Lightened or darkened variant of the selected color.
|
|
1562
1729
|
*/
|
|
1563
|
-
colorVariant?: ColorVariant;
|
|
1730
|
+
colorVariant?: ColorVariant$1;
|
|
1564
1731
|
/**
|
|
1565
1732
|
* Typography variant.
|
|
1566
1733
|
*/
|
|
1567
|
-
typography?: Typography;
|
|
1734
|
+
typography?: Typography$1;
|
|
1568
1735
|
/**
|
|
1569
1736
|
* Activate line wrap on overflow.
|
|
1570
1737
|
*/
|
|
@@ -1583,6 +1750,16 @@ interface InlineListProps extends GenericProps {
|
|
|
1583
1750
|
*/
|
|
1584
1751
|
declare const InlineList: Comp<InlineListProps, HTMLElement>;
|
|
1585
1752
|
|
|
1753
|
+
/**
|
|
1754
|
+
* Defines the props of the component.
|
|
1755
|
+
*/
|
|
1756
|
+
interface InputHelperProps extends GenericProps, HasTheme {
|
|
1757
|
+
/** Helper content. */
|
|
1758
|
+
children: JSXElement;
|
|
1759
|
+
/** Helper variant. */
|
|
1760
|
+
kind?: Kind;
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1586
1763
|
/**
|
|
1587
1764
|
* InputHelper component.
|
|
1588
1765
|
*
|
|
@@ -1592,6 +1769,17 @@ declare const InlineList: Comp<InlineListProps, HTMLElement>;
|
|
|
1592
1769
|
*/
|
|
1593
1770
|
declare const InputHelper: Comp<InputHelperProps, HTMLParagraphElement>;
|
|
1594
1771
|
|
|
1772
|
+
interface InputLabelProps extends GenericProps, HasTheme {
|
|
1773
|
+
/** Typography variant. */
|
|
1774
|
+
typography?: Typography;
|
|
1775
|
+
/** Label content. */
|
|
1776
|
+
children: JSXElement;
|
|
1777
|
+
/** Native htmlFor property. */
|
|
1778
|
+
htmlFor: string;
|
|
1779
|
+
/** Whether the component is required or not. */
|
|
1780
|
+
isRequired?: boolean;
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1595
1783
|
/**
|
|
1596
1784
|
* InputLabel component.
|
|
1597
1785
|
*
|
|
@@ -1604,7 +1792,7 @@ declare const InputLabel: Comp<InputLabelProps, HTMLLabelElement>;
|
|
|
1604
1792
|
/**
|
|
1605
1793
|
* Defines the props of the component.
|
|
1606
1794
|
*/
|
|
1607
|
-
interface LightboxProps extends GenericProps, HasTheme, Pick<AriaAttributes, 'aria-label' | 'aria-labelledby'> {
|
|
1795
|
+
interface LightboxProps extends GenericProps$1, HasTheme$1, Pick<AriaAttributes, 'aria-label' | 'aria-labelledby'> {
|
|
1608
1796
|
/** Props to pass to the close button (minus those already set by the Lightbox props). */
|
|
1609
1797
|
closeButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis' | 'color'>;
|
|
1610
1798
|
/** Whether the component is open or not. */
|
|
@@ -1635,11 +1823,11 @@ type HTMLAnchorProps = React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAn
|
|
|
1635
1823
|
/**
|
|
1636
1824
|
* Defines the props of the component.
|
|
1637
1825
|
*/
|
|
1638
|
-
interface LinkProps extends GenericProps, HasAriaDisabled {
|
|
1826
|
+
interface LinkProps extends GenericProps$1, HasAriaDisabled {
|
|
1639
1827
|
/** Color variant. */
|
|
1640
|
-
color?: ColorWithVariants;
|
|
1828
|
+
color?: ColorWithVariants$1;
|
|
1641
1829
|
/** Lightened or darkened variant of the selected icon color. */
|
|
1642
|
-
colorVariant?: ColorVariant;
|
|
1830
|
+
colorVariant?: ColorVariant$1;
|
|
1643
1831
|
/** Link href. */
|
|
1644
1832
|
href?: HTMLAnchorProps['href'];
|
|
1645
1833
|
/** Whether the component is disabled or not. */
|
|
@@ -1659,7 +1847,7 @@ interface LinkProps extends GenericProps, HasAriaDisabled {
|
|
|
1659
1847
|
/** Link target. */
|
|
1660
1848
|
target?: HTMLAnchorProps['target'];
|
|
1661
1849
|
/** Typography variant. */
|
|
1662
|
-
typography?: Typography;
|
|
1850
|
+
typography?: Typography$1;
|
|
1663
1851
|
/** Children */
|
|
1664
1852
|
children?: React.ReactNode;
|
|
1665
1853
|
}
|
|
@@ -1675,7 +1863,7 @@ declare const Link: Comp<LinkProps, HTMLAnchorElement | HTMLButtonElement>;
|
|
|
1675
1863
|
/**
|
|
1676
1864
|
* Defines the props of the component.
|
|
1677
1865
|
*/
|
|
1678
|
-
interface LinkPreviewProps extends GenericProps, HasTheme {
|
|
1866
|
+
interface LinkPreviewProps extends GenericProps$1, HasTheme$1 {
|
|
1679
1867
|
/** Description. */
|
|
1680
1868
|
description?: string;
|
|
1681
1869
|
/** Link URL. */
|
|
@@ -1685,7 +1873,7 @@ interface LinkPreviewProps extends GenericProps, HasTheme {
|
|
|
1685
1873
|
/** Props to pass to the link (minus those already set by the LinkPreview props). */
|
|
1686
1874
|
linkProps?: Omit<LinkProps, 'color' | 'colorVariant' | 'href' | 'target'>;
|
|
1687
1875
|
/** Size variant. */
|
|
1688
|
-
size?: Extract<Size, 'regular' | 'big'>;
|
|
1876
|
+
size?: Extract<Size$1, 'regular' | 'big'>;
|
|
1689
1877
|
/** Thumbnail for the link preview. */
|
|
1690
1878
|
thumbnailProps?: ThumbnailProps;
|
|
1691
1879
|
/** Title. */
|
|
@@ -1718,7 +1906,7 @@ type useKeyboardListNavigationType = <I>(items: I[], ref: RefObject<HTMLElement>
|
|
|
1718
1906
|
/**
|
|
1719
1907
|
* Defines the props of the component.
|
|
1720
1908
|
*/
|
|
1721
|
-
interface ListProps extends GenericProps {
|
|
1909
|
+
interface ListProps extends GenericProps$1 {
|
|
1722
1910
|
/** List content (should be ListItem, ListSubheader or ListDivider). */
|
|
1723
1911
|
children: ReactNode;
|
|
1724
1912
|
/**
|
|
@@ -1727,7 +1915,7 @@ interface ListProps extends GenericProps {
|
|
|
1727
1915
|
*/
|
|
1728
1916
|
isClickable?: boolean;
|
|
1729
1917
|
/** Item padding size. */
|
|
1730
|
-
itemPadding?: Extract<Size, 'big' | 'huge'>;
|
|
1918
|
+
itemPadding?: Extract<Size$1, 'big' | 'huge'>;
|
|
1731
1919
|
/** Tab index of the list. Default to -1 */
|
|
1732
1920
|
tabIndex?: number;
|
|
1733
1921
|
/**
|
|
@@ -1743,11 +1931,11 @@ declare const List: Comp<ListProps, HTMLUListElement> & {
|
|
|
1743
1931
|
useKeyboardListNavigation: useKeyboardListNavigationType;
|
|
1744
1932
|
};
|
|
1745
1933
|
|
|
1746
|
-
type ListItemSize = Extract<Size, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
1934
|
+
type ListItemSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
1747
1935
|
/**
|
|
1748
1936
|
* Defines the props of the component.
|
|
1749
1937
|
*/
|
|
1750
|
-
interface ListItemProps extends GenericProps, HasAriaDisabled {
|
|
1938
|
+
interface ListItemProps extends GenericProps$1, HasAriaDisabled {
|
|
1751
1939
|
/** A component to be rendered after the content. */
|
|
1752
1940
|
after?: ReactNode;
|
|
1753
1941
|
/** A component to be rendered before the content. */
|
|
@@ -1790,7 +1978,7 @@ declare const ListItem: Comp<ListItemProps, HTMLLIElement>;
|
|
|
1790
1978
|
/**
|
|
1791
1979
|
* Defines the props of the component.
|
|
1792
1980
|
*/
|
|
1793
|
-
type ListDividerProps = GenericProps;
|
|
1981
|
+
type ListDividerProps = GenericProps$1;
|
|
1794
1982
|
/**
|
|
1795
1983
|
* ListDivider component.
|
|
1796
1984
|
*
|
|
@@ -1798,12 +1986,12 @@ type ListDividerProps = GenericProps;
|
|
|
1798
1986
|
* @param ref Component ref.
|
|
1799
1987
|
* @return React element.
|
|
1800
1988
|
*/
|
|
1801
|
-
declare const ListDivider: Comp<GenericProps, HTMLLIElement>;
|
|
1989
|
+
declare const ListDivider: Comp<GenericProps$1, HTMLLIElement>;
|
|
1802
1990
|
|
|
1803
1991
|
/**
|
|
1804
1992
|
* Defines the props of the component.
|
|
1805
1993
|
*/
|
|
1806
|
-
interface ListSubheaderProps extends GenericProps {
|
|
1994
|
+
interface ListSubheaderProps extends GenericProps$1 {
|
|
1807
1995
|
/** Content. */
|
|
1808
1996
|
children: string | ReactNode;
|
|
1809
1997
|
}
|
|
@@ -1819,13 +2007,13 @@ declare const ListSubheader: Comp<ListSubheaderProps, HTMLLIElement>;
|
|
|
1819
2007
|
/**
|
|
1820
2008
|
* Defines the props of the component.
|
|
1821
2009
|
*/
|
|
1822
|
-
interface MessageProps extends GenericProps {
|
|
2010
|
+
interface MessageProps extends GenericProps$1 {
|
|
1823
2011
|
/** Content. */
|
|
1824
2012
|
children?: ReactNode;
|
|
1825
2013
|
/** Whether the message has a background or not. */
|
|
1826
2014
|
hasBackground?: boolean;
|
|
1827
2015
|
/** Message variant. */
|
|
1828
|
-
kind?: Kind;
|
|
2016
|
+
kind?: Kind$1;
|
|
1829
2017
|
/** Message custom icon SVG path. */
|
|
1830
2018
|
icon?: string;
|
|
1831
2019
|
/**
|
|
@@ -1852,7 +2040,7 @@ declare const Message: Comp<MessageProps, HTMLDivElement>;
|
|
|
1852
2040
|
/**
|
|
1853
2041
|
* Defines the props of the component.
|
|
1854
2042
|
*/
|
|
1855
|
-
interface MosaicProps extends GenericProps, HasTheme {
|
|
2043
|
+
interface MosaicProps extends GenericProps$1, HasTheme$1 {
|
|
1856
2044
|
/** Thumbnails. */
|
|
1857
2045
|
thumbnails: ThumbnailProps[];
|
|
1858
2046
|
/** On image click callback. */
|
|
@@ -1867,7 +2055,7 @@ interface MosaicProps extends GenericProps, HasTheme {
|
|
|
1867
2055
|
*/
|
|
1868
2056
|
declare const Mosaic: Comp<MosaicProps, HTMLDivElement>;
|
|
1869
2057
|
|
|
1870
|
-
interface NavigationSectionProps extends React.ComponentPropsWithoutRef<'button'>, HasClassName {
|
|
2058
|
+
interface NavigationSectionProps extends React.ComponentPropsWithoutRef<'button'>, HasClassName$1 {
|
|
1871
2059
|
/** Items inside the section */
|
|
1872
2060
|
children: React.ReactNode;
|
|
1873
2061
|
/** Icon (SVG path). */
|
|
@@ -1887,14 +2075,14 @@ type BaseNavigationItemProps = {
|
|
|
1887
2075
|
};
|
|
1888
2076
|
declare const NavigationItem: (<E extends ElementType = "a">(props: React$1.PropsWithoutRef<React$1.ComponentProps<E>> & {
|
|
1889
2077
|
as?: E | undefined;
|
|
1890
|
-
} & HasTheme & HasClassName & BaseNavigationItemProps & HasRequiredLinkHref<E> & React$1.ComponentProps<E> & {
|
|
2078
|
+
} & HasTheme$1 & HasClassName$1 & BaseNavigationItemProps & HasRequiredLinkHref<E> & React$1.ComponentProps<E> & {
|
|
1891
2079
|
ref?: ComponentRef<E> | undefined;
|
|
1892
2080
|
}) => React$1.JSX.Element) & {
|
|
1893
2081
|
displayName: string;
|
|
1894
2082
|
className: "lumx-navigation-item";
|
|
1895
2083
|
};
|
|
1896
2084
|
|
|
1897
|
-
type NavigationProps = React.ComponentProps<'nav'> & HasClassName & HasTheme & {
|
|
2085
|
+
type NavigationProps = React.ComponentProps<'nav'> & HasClassName$1 & HasTheme$1 & {
|
|
1898
2086
|
/** Content of the navigation. These components should be of type NavigationItem to be rendered */
|
|
1899
2087
|
children?: React.ReactNode;
|
|
1900
2088
|
orientation?: Orientation;
|
|
@@ -1908,7 +2096,7 @@ declare const Navigation: Comp<NavigationProps, HTMLElement> & SubComponents;
|
|
|
1908
2096
|
/**
|
|
1909
2097
|
* Defines the props of the component.
|
|
1910
2098
|
*/
|
|
1911
|
-
interface NotificationProps extends GenericProps, HasTheme {
|
|
2099
|
+
interface NotificationProps extends GenericProps$1, HasTheme$1 {
|
|
1912
2100
|
/** Action button label. */
|
|
1913
2101
|
actionLabel?: string;
|
|
1914
2102
|
/** Content. */
|
|
@@ -1916,7 +2104,7 @@ interface NotificationProps extends GenericProps, HasTheme {
|
|
|
1916
2104
|
/** Whether the component is open or not. */
|
|
1917
2105
|
isOpen?: boolean;
|
|
1918
2106
|
/** Notification type. */
|
|
1919
|
-
type?: Kind;
|
|
2107
|
+
type?: Kind$1;
|
|
1920
2108
|
/** Z-axis position. */
|
|
1921
2109
|
zIndex?: number;
|
|
1922
2110
|
/** On action button click callback. */
|
|
@@ -1952,7 +2140,7 @@ declare const PopoverDialog: Comp<PopoverDialogProps, HTMLDivElement>;
|
|
|
1952
2140
|
/**
|
|
1953
2141
|
* Defines the props of the component.
|
|
1954
2142
|
*/
|
|
1955
|
-
interface PostBlockProps extends GenericProps, HasTheme {
|
|
2143
|
+
interface PostBlockProps extends GenericProps$1, HasTheme$1 {
|
|
1956
2144
|
/** Action toolbar content. */
|
|
1957
2145
|
actions?: ReactNode;
|
|
1958
2146
|
/** Attachment content. */
|
|
@@ -1996,7 +2184,7 @@ type ProgressVariant = ValueOf<typeof ProgressVariant>;
|
|
|
1996
2184
|
/**
|
|
1997
2185
|
* Defines the props of the component.
|
|
1998
2186
|
*/
|
|
1999
|
-
interface ProgressProps extends GenericProps, HasTheme {
|
|
2187
|
+
interface ProgressProps extends GenericProps$1, HasTheme$1 {
|
|
2000
2188
|
/** Progress variant. */
|
|
2001
2189
|
variant?: ProgressVariant;
|
|
2002
2190
|
}
|
|
@@ -2013,11 +2201,11 @@ declare const Progress: Comp<ProgressProps, HTMLDivElement>;
|
|
|
2013
2201
|
/**
|
|
2014
2202
|
* Progress sizes.
|
|
2015
2203
|
*/
|
|
2016
|
-
type ProgressCircularSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm'>;
|
|
2204
|
+
type ProgressCircularSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm'>;
|
|
2017
2205
|
/**
|
|
2018
2206
|
* Defines the props of the component.
|
|
2019
2207
|
*/
|
|
2020
|
-
interface ProgressCircularProps extends GenericProps, HasTheme {
|
|
2208
|
+
interface ProgressCircularProps extends GenericProps$1, HasTheme$1 {
|
|
2021
2209
|
/**
|
|
2022
2210
|
* Progress circular size.
|
|
2023
2211
|
*/
|
|
@@ -2037,7 +2225,7 @@ interface ProgressCircularProps extends GenericProps, HasTheme {
|
|
|
2037
2225
|
*/
|
|
2038
2226
|
declare const ProgressCircular: Comp<ProgressCircularProps, HTMLDivElement>;
|
|
2039
2227
|
|
|
2040
|
-
interface ProgressLinearProps extends GenericProps, HasTheme {
|
|
2228
|
+
interface ProgressLinearProps extends GenericProps$1, HasTheme$1 {
|
|
2041
2229
|
}
|
|
2042
2230
|
/**
|
|
2043
2231
|
* ProgressLinear component.
|
|
@@ -2076,7 +2264,7 @@ declare const ProgressTrackerProvider: React.FC<ProgressTrackerProviderProps>;
|
|
|
2076
2264
|
/**
|
|
2077
2265
|
* Defines the props of the component.
|
|
2078
2266
|
*/
|
|
2079
|
-
interface ProgressTrackerProps extends GenericProps {
|
|
2267
|
+
interface ProgressTrackerProps extends GenericProps$1 {
|
|
2080
2268
|
/** ARIA label (purpose of the set of steps). */
|
|
2081
2269
|
['aria-label']: string;
|
|
2082
2270
|
/** Step list. */
|
|
@@ -2096,7 +2284,7 @@ declare const ProgressTracker: Comp<ProgressTrackerProps, HTMLDivElement>;
|
|
|
2096
2284
|
/**
|
|
2097
2285
|
* Defines the props of the component.
|
|
2098
2286
|
*/
|
|
2099
|
-
interface ProgressTrackerStepProps extends GenericProps {
|
|
2287
|
+
interface ProgressTrackerStepProps extends GenericProps$1 {
|
|
2100
2288
|
/** Children are not supported. */
|
|
2101
2289
|
children?: never;
|
|
2102
2290
|
/** Whether the step should be in error state or not. */
|
|
@@ -2128,7 +2316,7 @@ declare const ProgressTrackerStep: Comp<ProgressTrackerStepProps, HTMLButtonElem
|
|
|
2128
2316
|
/**
|
|
2129
2317
|
* Defines the props of the component.
|
|
2130
2318
|
*/
|
|
2131
|
-
interface ProgressTrackerStepPanelProps extends GenericProps {
|
|
2319
|
+
interface ProgressTrackerStepPanelProps extends GenericProps$1 {
|
|
2132
2320
|
/** Native id property. */
|
|
2133
2321
|
id?: string;
|
|
2134
2322
|
/** Whether the step is active or not. */
|
|
@@ -2150,7 +2338,7 @@ declare const ProgressTrackerStepPanel: Comp<ProgressTrackerStepPanelProps, HTML
|
|
|
2150
2338
|
/**
|
|
2151
2339
|
* Defines the props of the component.
|
|
2152
2340
|
*/
|
|
2153
|
-
interface RadioButtonProps extends GenericProps, HasTheme, HasAriaDisabled {
|
|
2341
|
+
interface RadioButtonProps extends GenericProps$1, HasTheme$1, HasAriaDisabled {
|
|
2154
2342
|
/** Helper text. */
|
|
2155
2343
|
helper?: string;
|
|
2156
2344
|
/** Native input id property. */
|
|
@@ -2184,7 +2372,7 @@ declare const RadioButton: Comp<RadioButtonProps, HTMLDivElement>;
|
|
|
2184
2372
|
/**
|
|
2185
2373
|
* Defines the props of the component.
|
|
2186
2374
|
*/
|
|
2187
|
-
interface RadioGroupProps extends GenericProps {
|
|
2375
|
+
interface RadioGroupProps extends GenericProps$1 {
|
|
2188
2376
|
/** RadioButton elements */
|
|
2189
2377
|
children: ReactNode;
|
|
2190
2378
|
}
|
|
@@ -2205,7 +2393,7 @@ declare const SelectVariant: {
|
|
|
2205
2393
|
readonly chip: "chip";
|
|
2206
2394
|
};
|
|
2207
2395
|
type SelectVariant = ValueOf<typeof SelectVariant>;
|
|
2208
|
-
interface CoreSelectProps extends GenericProps, HasTheme {
|
|
2396
|
+
interface CoreSelectProps extends GenericProps$1, HasTheme$1 {
|
|
2209
2397
|
/** Props to pass to the clear button (minus those already set by the Select props). If not specified, the button won't be displayed. */
|
|
2210
2398
|
clearButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
|
|
2211
2399
|
/** Whether the select (input variant) is displayed with error style or not. */
|
|
@@ -2285,7 +2473,7 @@ declare const SelectMultiple: Comp<SelectMultipleProps, HTMLDivElement>;
|
|
|
2285
2473
|
/**
|
|
2286
2474
|
* Defines the props of the component.
|
|
2287
2475
|
*/
|
|
2288
|
-
interface SideNavigationProps extends GenericProps, HasTheme {
|
|
2476
|
+
interface SideNavigationProps extends GenericProps$1, HasTheme$1 {
|
|
2289
2477
|
/** SideNavigationItem elements. */
|
|
2290
2478
|
children: ReactNode;
|
|
2291
2479
|
}
|
|
@@ -2301,7 +2489,7 @@ declare const SideNavigation: Comp<SideNavigationProps, HTMLUListElement>;
|
|
|
2301
2489
|
/**
|
|
2302
2490
|
* Defines the props of the component.
|
|
2303
2491
|
*/
|
|
2304
|
-
interface SideNavigationItemProps extends GenericProps, HasCloseMode {
|
|
2492
|
+
interface SideNavigationItemProps extends GenericProps$1, HasCloseMode {
|
|
2305
2493
|
/** SideNavigationItem elements. */
|
|
2306
2494
|
children?: ReactNode;
|
|
2307
2495
|
/** Emphasis variant. */
|
|
@@ -2337,11 +2525,11 @@ declare const SideNavigationItem: Comp<SideNavigationItemProps, HTMLLIElement>;
|
|
|
2337
2525
|
/**
|
|
2338
2526
|
* Defines the props of the component.
|
|
2339
2527
|
*/
|
|
2340
|
-
interface SkeletonCircleProps extends GenericProps, HasTheme {
|
|
2528
|
+
interface SkeletonCircleProps extends GenericProps$1, HasTheme$1 {
|
|
2341
2529
|
/** Size variant. */
|
|
2342
2530
|
size: GlobalSize;
|
|
2343
2531
|
/** The color of the skeleton. */
|
|
2344
|
-
color?: ColorPalette;
|
|
2532
|
+
color?: ColorPalette$1;
|
|
2345
2533
|
}
|
|
2346
2534
|
/**
|
|
2347
2535
|
* SkeletonCircle component.
|
|
@@ -2364,7 +2552,7 @@ type SkeletonRectangleVariant = ValueOf<typeof SkeletonRectangleVariant>;
|
|
|
2364
2552
|
/**
|
|
2365
2553
|
* Defines the props of the component.
|
|
2366
2554
|
*/
|
|
2367
|
-
interface SkeletonRectangleProps extends GenericProps, HasTheme {
|
|
2555
|
+
interface SkeletonRectangleProps extends GenericProps$1, HasTheme$1 {
|
|
2368
2556
|
/** Aspect ratio (use with width and not height). */
|
|
2369
2557
|
aspectRatio?: Extract<AspectRatio, 'square' | 'horizontal' | 'vertical' | 'wide'>;
|
|
2370
2558
|
/** Height size. */
|
|
@@ -2374,7 +2562,7 @@ interface SkeletonRectangleProps extends GenericProps, HasTheme {
|
|
|
2374
2562
|
/** Width size. */
|
|
2375
2563
|
width?: GlobalSize;
|
|
2376
2564
|
/** The color of the skeleton. */
|
|
2377
|
-
color?: ColorPalette;
|
|
2565
|
+
color?: ColorPalette$1;
|
|
2378
2566
|
}
|
|
2379
2567
|
/**
|
|
2380
2568
|
* SkeletonRectangle component.
|
|
@@ -2388,13 +2576,13 @@ declare const SkeletonRectangle: Comp<SkeletonRectangleProps, HTMLDivElement>;
|
|
|
2388
2576
|
/**
|
|
2389
2577
|
* Defines the props of the component.
|
|
2390
2578
|
*/
|
|
2391
|
-
interface SkeletonTypographyProps extends GenericProps, HasTheme {
|
|
2579
|
+
interface SkeletonTypographyProps extends GenericProps$1, HasTheme$1 {
|
|
2392
2580
|
/** Typography variant. */
|
|
2393
|
-
typography: TypographyInterface;
|
|
2581
|
+
typography: TypographyInterface$1;
|
|
2394
2582
|
/** Width CSS property. */
|
|
2395
2583
|
width?: CSSProperties['width'];
|
|
2396
2584
|
/** The color of the skeleton. */
|
|
2397
|
-
color?: ColorPalette;
|
|
2585
|
+
color?: ColorPalette$1;
|
|
2398
2586
|
}
|
|
2399
2587
|
/**
|
|
2400
2588
|
* SkeletonTypography component.
|
|
@@ -2408,7 +2596,7 @@ declare const SkeletonTypography: Comp<SkeletonTypographyProps, HTMLDivElement>;
|
|
|
2408
2596
|
/**
|
|
2409
2597
|
* Defines the props of the component.
|
|
2410
2598
|
*/
|
|
2411
|
-
interface SliderProps extends GenericProps, HasTheme {
|
|
2599
|
+
interface SliderProps extends GenericProps$1, HasTheme$1 {
|
|
2412
2600
|
/** Helper text. */
|
|
2413
2601
|
helper?: string;
|
|
2414
2602
|
/** Whether the min and max labels should be hidden or not. */
|
|
@@ -2456,7 +2644,7 @@ declare const clamp: (value: number, min: number, max: number) => number;
|
|
|
2456
2644
|
/**
|
|
2457
2645
|
* Defines the props of the component.
|
|
2458
2646
|
*/
|
|
2459
|
-
interface SlideshowProps extends GenericProps, Pick<SlidesProps, 'autoPlay' | 'slidesId' | 'id' | 'theme' | 'fillHeight' | 'groupBy' | 'slideGroupLabel'> {
|
|
2647
|
+
interface SlideshowProps extends GenericProps$1, Pick<SlidesProps, 'autoPlay' | 'slidesId' | 'id' | 'theme' | 'fillHeight' | 'groupBy' | 'slideGroupLabel'> {
|
|
2460
2648
|
/** current slide active */
|
|
2461
2649
|
activeIndex?: SlidesProps['activeIndex'];
|
|
2462
2650
|
/** Interval between each slide when automatic rotation is enabled. */
|
|
@@ -2480,7 +2668,7 @@ declare const Slideshow: Comp<SlideshowProps, HTMLDivElement>;
|
|
|
2480
2668
|
/**
|
|
2481
2669
|
* Defines the props of the component.
|
|
2482
2670
|
*/
|
|
2483
|
-
interface SlideshowItemProps extends GenericProps {
|
|
2671
|
+
interface SlideshowItemProps extends GenericProps$1 {
|
|
2484
2672
|
/** interval in which slides are automatically shown */
|
|
2485
2673
|
interval?: number;
|
|
2486
2674
|
/** Children */
|
|
@@ -2559,7 +2747,7 @@ interface UseSlideshowControls {
|
|
|
2559
2747
|
/**
|
|
2560
2748
|
* Defines the props of the component.
|
|
2561
2749
|
*/
|
|
2562
|
-
interface SlideshowControlsProps extends GenericProps, HasTheme {
|
|
2750
|
+
interface SlideshowControlsProps extends GenericProps$1, HasTheme$1 {
|
|
2563
2751
|
/** Index of the current slide. */
|
|
2564
2752
|
activeIndex?: number;
|
|
2565
2753
|
/** Props to pass to the next button (minus those already set by the SlideshowControls props). */
|
|
@@ -2603,7 +2791,7 @@ declare const SlideshowControls: Comp<SlideshowControlsProps, HTMLDivElement> &
|
|
|
2603
2791
|
};
|
|
2604
2792
|
};
|
|
2605
2793
|
|
|
2606
|
-
interface SlidesProps extends GenericProps, HasTheme {
|
|
2794
|
+
interface SlidesProps extends GenericProps$1, HasTheme$1 {
|
|
2607
2795
|
/** current slide active */
|
|
2608
2796
|
activeIndex: number;
|
|
2609
2797
|
/** slides id to be added to the wrapper */
|
|
@@ -2644,7 +2832,7 @@ declare const Slides: Comp<SlidesProps, HTMLDivElement>;
|
|
|
2644
2832
|
/**
|
|
2645
2833
|
* Defines the props of the component.
|
|
2646
2834
|
*/
|
|
2647
|
-
interface SwitchProps extends GenericProps, HasTheme, HasAriaDisabled {
|
|
2835
|
+
interface SwitchProps extends GenericProps$1, HasTheme$1, HasAriaDisabled {
|
|
2648
2836
|
/** Helper text. */
|
|
2649
2837
|
helper?: string;
|
|
2650
2838
|
/** Whether it is checked or not. */
|
|
@@ -2676,7 +2864,7 @@ declare const Switch: Comp<SwitchProps, HTMLDivElement>;
|
|
|
2676
2864
|
/**
|
|
2677
2865
|
* Defines the props of the component.
|
|
2678
2866
|
*/
|
|
2679
|
-
interface TableProps extends GenericProps, HasTheme {
|
|
2867
|
+
interface TableProps extends GenericProps$1, HasTheme$1 {
|
|
2680
2868
|
/** Whether the table has checkbox or thumbnail on first cell or not. */
|
|
2681
2869
|
hasBefore?: boolean;
|
|
2682
2870
|
/** Whether the table has dividers or not. */
|
|
@@ -2696,7 +2884,7 @@ declare const Table: Comp<TableProps, HTMLTableElement>;
|
|
|
2696
2884
|
/**
|
|
2697
2885
|
* Defines the props of the component.
|
|
2698
2886
|
*/
|
|
2699
|
-
interface TableBodyProps extends GenericProps {
|
|
2887
|
+
interface TableBodyProps extends GenericProps$1 {
|
|
2700
2888
|
/** Children */
|
|
2701
2889
|
children?: React.ReactNode;
|
|
2702
2890
|
}
|
|
@@ -2728,7 +2916,7 @@ type TableCellVariant = ValueOf<typeof TableCellVariant>;
|
|
|
2728
2916
|
/**
|
|
2729
2917
|
* Defines the props of the component.
|
|
2730
2918
|
*/
|
|
2731
|
-
interface TableCellProps extends GenericProps {
|
|
2919
|
+
interface TableCellProps extends GenericProps$1 {
|
|
2732
2920
|
/** Icon (SVG path).(thead only). */
|
|
2733
2921
|
icon?: string;
|
|
2734
2922
|
/** Whether the column is sortable or not (thead only). */
|
|
@@ -2754,7 +2942,7 @@ declare const TableCell: Comp<TableCellProps, HTMLTableCellElement>;
|
|
|
2754
2942
|
/**
|
|
2755
2943
|
* Defines the props of the component.
|
|
2756
2944
|
*/
|
|
2757
|
-
interface TableHeaderProps extends GenericProps {
|
|
2945
|
+
interface TableHeaderProps extends GenericProps$1 {
|
|
2758
2946
|
/** Children */
|
|
2759
2947
|
children?: React.ReactNode;
|
|
2760
2948
|
}
|
|
@@ -2770,7 +2958,7 @@ declare const TableHeader: Comp<TableHeaderProps, HTMLTableSectionElement>;
|
|
|
2770
2958
|
/**
|
|
2771
2959
|
* Defines the props of the component.
|
|
2772
2960
|
*/
|
|
2773
|
-
interface TableRowProps extends GenericProps {
|
|
2961
|
+
interface TableRowProps extends GenericProps$1 {
|
|
2774
2962
|
/** Whether the component is clickable or not. */
|
|
2775
2963
|
isClickable?: boolean;
|
|
2776
2964
|
/** Whether the component is disabled or not. */
|
|
@@ -2819,7 +3007,7 @@ declare enum TabListLayout {
|
|
|
2819
3007
|
/**
|
|
2820
3008
|
* Defines the props of the component.
|
|
2821
3009
|
*/
|
|
2822
|
-
interface TabListProps extends GenericProps, HasTheme {
|
|
3010
|
+
interface TabListProps extends GenericProps$1, HasTheme$1 {
|
|
2823
3011
|
/** ARIA label (purpose of the set of tabs). */
|
|
2824
3012
|
['aria-label']: string;
|
|
2825
3013
|
/** Tab list. */
|
|
@@ -2843,7 +3031,7 @@ declare const TabList: Comp<TabListProps, HTMLDivElement>;
|
|
|
2843
3031
|
/**
|
|
2844
3032
|
* Defines the props of the component.
|
|
2845
3033
|
*/
|
|
2846
|
-
interface TabProps extends GenericProps {
|
|
3034
|
+
interface TabProps extends GenericProps$1 {
|
|
2847
3035
|
/** Children are not supported. */
|
|
2848
3036
|
children?: never;
|
|
2849
3037
|
/** Icon (SVG path). */
|
|
@@ -2873,7 +3061,7 @@ declare const Tab: Comp<TabProps, HTMLButtonElement>;
|
|
|
2873
3061
|
/**
|
|
2874
3062
|
* Defines the props of the component.
|
|
2875
3063
|
*/
|
|
2876
|
-
interface TabPanelProps extends GenericProps {
|
|
3064
|
+
interface TabPanelProps extends GenericProps$1 {
|
|
2877
3065
|
/** Native id property */
|
|
2878
3066
|
id?: string;
|
|
2879
3067
|
/** Whether the tab is active or not. */
|
|
@@ -2895,7 +3083,7 @@ declare const TabPanel: Comp<TabPanelProps, HTMLDivElement>;
|
|
|
2895
3083
|
/**
|
|
2896
3084
|
* Defines the props of the component.
|
|
2897
3085
|
*/
|
|
2898
|
-
interface TextFieldProps extends GenericProps, HasTheme, HasAriaDisabled {
|
|
3086
|
+
interface TextFieldProps extends GenericProps$1, HasTheme$1, HasAriaDisabled {
|
|
2899
3087
|
/** Chip Group to be rendered before the main text input. */
|
|
2900
3088
|
chips?: ReactNode;
|
|
2901
3089
|
/** Props to pass to the clear button (minus those already set by the TextField props). If not specified, the button won't be displayed. */
|
|
@@ -2964,7 +3152,7 @@ type NativeInputProps = Omit<ComponentProps<'input'>, 'value' | 'onChange'>;
|
|
|
2964
3152
|
/**
|
|
2965
3153
|
* Defines the props of the component.
|
|
2966
3154
|
*/
|
|
2967
|
-
interface RawInputTextProps extends NativeInputProps, HasTheme, HasClassName {
|
|
3155
|
+
interface RawInputTextProps extends NativeInputProps, HasTheme$1, HasClassName$1 {
|
|
2968
3156
|
value?: string;
|
|
2969
3157
|
onChange?: (value: string, name?: string, event?: SyntheticEvent) => void;
|
|
2970
3158
|
}
|
|
@@ -2978,7 +3166,7 @@ type NativeTextareaProps = ComponentProps<'textarea'>;
|
|
|
2978
3166
|
/**
|
|
2979
3167
|
* Defines the props of the component.
|
|
2980
3168
|
*/
|
|
2981
|
-
interface RawInputTextareaProps extends Omit<NativeTextareaProps, 'value' | 'onChange'>, HasTheme, HasClassName {
|
|
3169
|
+
interface RawInputTextareaProps extends Omit<NativeTextareaProps, 'value' | 'onChange'>, HasTheme$1, HasClassName$1 {
|
|
2982
3170
|
minimumRows?: number;
|
|
2983
3171
|
value?: string;
|
|
2984
3172
|
onChange?: (value: string, name?: string, event?: SyntheticEvent) => void;
|
|
@@ -2994,7 +3182,7 @@ declare const useFocusPointStyle: ({ image, aspectRatio, focusPoint, imgProps: {
|
|
|
2994
3182
|
/**
|
|
2995
3183
|
* Defines the props of the component.
|
|
2996
3184
|
*/
|
|
2997
|
-
interface ToolbarProps extends GenericProps {
|
|
3185
|
+
interface ToolbarProps extends GenericProps$1 {
|
|
2998
3186
|
/** After content (placed after the label). */
|
|
2999
3187
|
after?: ReactNode;
|
|
3000
3188
|
/** Before content (placed before the label). */
|
|
@@ -3018,7 +3206,7 @@ type TooltipPlacement = Extract<Placement, 'top' | 'right' | 'bottom' | 'left'>;
|
|
|
3018
3206
|
/**
|
|
3019
3207
|
* Defines the props of the component.
|
|
3020
3208
|
*/
|
|
3021
|
-
interface TooltipProps extends GenericProps, HasCloseMode {
|
|
3209
|
+
interface TooltipProps extends GenericProps$1, HasCloseMode {
|
|
3022
3210
|
/** Anchor (element on which we activate the tooltip). */
|
|
3023
3211
|
children: ReactNode;
|
|
3024
3212
|
/** Delay (in ms) before closing the tooltip. */
|
|
@@ -3053,7 +3241,7 @@ type UploaderVariant = ValueOf<typeof UploaderVariant>;
|
|
|
3053
3241
|
/**
|
|
3054
3242
|
* Uploader sizes.
|
|
3055
3243
|
*/
|
|
3056
|
-
type UploaderSize = Extract<Size, 'xl' | 'xxl'>;
|
|
3244
|
+
type UploaderSize = Extract<Size$1, 'xl' | 'xxl'>;
|
|
3057
3245
|
/**
|
|
3058
3246
|
* Extend native HTML input props with specialized `onChange` providing the a `File` array.
|
|
3059
3247
|
*/
|
|
@@ -3063,7 +3251,7 @@ interface FileInputProps extends Omit<React__default.ComponentProps<'input'>, 'o
|
|
|
3063
3251
|
/**
|
|
3064
3252
|
* Defines the props of the component.
|
|
3065
3253
|
*/
|
|
3066
|
-
interface UploaderProps extends GenericProps, HasTheme, HasAriaDisabled {
|
|
3254
|
+
interface UploaderProps extends GenericProps$1, HasTheme$1, HasAriaDisabled {
|
|
3067
3255
|
/** Image aspect ratio. */
|
|
3068
3256
|
aspectRatio?: AspectRatio;
|
|
3069
3257
|
/** Icon (SVG path). */
|
|
@@ -3093,11 +3281,11 @@ declare const Uploader: Comp<UploaderProps, HTMLElement>;
|
|
|
3093
3281
|
/**
|
|
3094
3282
|
* User block sizes.
|
|
3095
3283
|
*/
|
|
3096
|
-
type UserBlockSize = Extract<Size, 'xs' | 's' | 'm' | 'l'>;
|
|
3284
|
+
type UserBlockSize = Extract<Size$1, 'xs' | 's' | 'm' | 'l'>;
|
|
3097
3285
|
/**
|
|
3098
3286
|
* Defines the props of the component.
|
|
3099
3287
|
*/
|
|
3100
|
-
interface UserBlockProps extends GenericProps, HasTheme {
|
|
3288
|
+
interface UserBlockProps extends GenericProps$1, HasTheme$1 {
|
|
3101
3289
|
/** Props to pass to the avatar. */
|
|
3102
3290
|
avatarProps?: Omit<AvatarProps, 'alt'>;
|
|
3103
3291
|
/** Additional fields used to describe the user. */
|
|
@@ -3111,7 +3299,7 @@ interface UserBlockProps extends GenericProps, HasTheme {
|
|
|
3111
3299
|
/** User name. */
|
|
3112
3300
|
name?: React__default.ReactNode;
|
|
3113
3301
|
/** Props to pass to the name block. */
|
|
3114
|
-
nameProps?: GenericProps;
|
|
3302
|
+
nameProps?: GenericProps$1;
|
|
3115
3303
|
/** Orientation. */
|
|
3116
3304
|
orientation?: Orientation;
|
|
3117
3305
|
/** Simple action toolbar content. */
|
|
@@ -3138,7 +3326,7 @@ interface UserBlockProps extends GenericProps, HasTheme {
|
|
|
3138
3326
|
*/
|
|
3139
3327
|
declare const UserBlock: Comp<UserBlockProps, HTMLDivElement>;
|
|
3140
3328
|
|
|
3141
|
-
type ThemeContextValue = Theme | undefined;
|
|
3329
|
+
type ThemeContextValue = Theme$1 | undefined;
|
|
3142
3330
|
/** Provide a theme context to all children. */
|
|
3143
3331
|
declare const ThemeProvider: React__default.FC<{
|
|
3144
3332
|
value: ThemeContextValue;
|
|
@@ -3148,4 +3336,4 @@ declare const ThemeProvider: React__default.FC<{
|
|
|
3148
3336
|
declare function useTheme(): ThemeContextValue;
|
|
3149
3337
|
|
|
3150
3338
|
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonEmphasis, ButtonGroup, Checkbox, Chip, ChipGroup, CommentBlock, CommentBlockVariant, DatePicker, DatePickerControlled, DatePickerField, Dialog, Divider, DragHandle, Dropdown, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, ImageLightbox, InlineList, InputHelper, InputLabel, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, ListSubheader, Message, Mosaic, Navigation, Notification, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, RawInputText, RawInputTextarea, Select, SelectMultiple, SelectMultipleField, SelectVariant, SideNavigation, SideNavigationItem, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableHeader, TableRow, Text, TextField, ThOrder, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, Toolbar, Tooltip, Uploader, UploaderVariant, UserBlock, clamp, isClickable, useFocusPointStyle, useHeadingLevel, useTheme };
|
|
3151
|
-
export type { AlertDialogProps, AutocompleteMultipleProps, AutocompleteProps, AvatarProps, AvatarSize, BadgeProps, BadgeWrapperProps, BaseButtonProps, ButtonGroupProps, ButtonProps, ButtonSize, CheckboxProps, ChipGroupProps, ChipProps, CommentBlockProps, DatePickerControlledProps, DatePickerFieldProps, DatePickerProps, DialogProps, DialogSizes, DividerProps, DragHandleProps, DropdownProps, Elevation, ExpansionPanelProps, FlagProps, FlexBoxProps, FlexHorizontalAlignment, FlexVerticalAlignment, FocusPoint, GapSize, GenericBlockProps, GridColumnGapSize, GridColumnProps, GridItemProps, GridProps, HeadingLevelProviderProps, HeadingProps, IconButtonProps, ImageBlockProps, ImageBlockSize, ImageLightboxProps, InlineListProps, LightboxProps, LinkPreviewProps, LinkProps, ListDividerProps, ListItemProps, ListItemSize, ListProps, ListSubheaderProps, MarginAutoAlignment, MessageProps, MosaicProps, NavigationProps, NotificationProps, Offset, PopoverDialogProps, PopoverProps, PostBlockProps, ProgressCircularProps, ProgressCircularSize, ProgressLinearProps, ProgressProps, ProgressTrackerProps, ProgressTrackerProviderProps, ProgressTrackerStepPanelProps, ProgressTrackerStepProps, RadioButtonProps, RadioGroupProps, RawInputTextProps, RawInputTextareaProps, SelectMultipleProps, SelectProps, SideNavigationItemProps, SideNavigationProps, SkeletonCircleProps, SkeletonRectangleProps, SkeletonTypographyProps, SliderProps, SlidesProps, SlideshowControlsProps, SlideshowItemProps, SlideshowProps, SwitchProps, TabListProps, TabPanelProps, TabProps, TabProviderProps, TableBodyProps, TableCellProps, TableHeaderProps, TableProps, TableRowProps, TextFieldProps, TextProps, ThumbnailProps, ThumbnailSize, ToolbarProps, TooltipPlacement, TooltipProps, UploaderProps, UploaderSize, UserBlockProps, UserBlockSize };
|
|
3339
|
+
export type { AlertDialogProps, AutocompleteMultipleProps, AutocompleteProps, AvatarProps, AvatarSize, BadgeProps, BadgeWrapperProps, BaseButtonProps, ButtonGroupProps, ButtonProps, ButtonSize, CheckboxProps, ChipGroupProps, ChipProps, CommentBlockProps, DatePickerControlledProps, DatePickerFieldProps, DatePickerProps, DialogProps, DialogSizes, DividerProps, DragHandleProps, DropdownProps, Elevation, ExpansionPanelProps, FlagProps, FlexBoxProps, FlexHorizontalAlignment, FlexVerticalAlignment, FocusPoint, GapSize, GenericBlockProps, GridColumnGapSize, GridColumnProps, GridItemProps, GridProps, HeadingLevelProviderProps, HeadingProps, IconButtonProps, IconProps, IconSizes, ImageBlockProps, ImageBlockSize, ImageLightboxProps, InlineListProps, InputHelperProps, InputLabelProps, LightboxProps, LinkPreviewProps, LinkProps, ListDividerProps, ListItemProps, ListItemSize, ListProps, ListSubheaderProps, MarginAutoAlignment, MessageProps, MosaicProps, NavigationProps, NotificationProps, Offset, PopoverDialogProps, PopoverProps, PostBlockProps, ProgressCircularProps, ProgressCircularSize, ProgressLinearProps, ProgressProps, ProgressTrackerProps, ProgressTrackerProviderProps, ProgressTrackerStepPanelProps, ProgressTrackerStepProps, RadioButtonProps, RadioGroupProps, RawInputTextProps, RawInputTextareaProps, SelectMultipleProps, SelectProps, SideNavigationItemProps, SideNavigationProps, SkeletonCircleProps, SkeletonRectangleProps, SkeletonTypographyProps, SliderProps, SlidesProps, SlideshowControlsProps, SlideshowItemProps, SlideshowProps, SwitchProps, TabListProps, TabPanelProps, TabProps, TabProviderProps, TableBodyProps, TableCellProps, TableHeaderProps, TableProps, TableRowProps, TextFieldProps, TextProps, ThumbnailProps, ThumbnailSize, ToolbarProps, TooltipPlacement, TooltipProps, UploaderProps, UploaderSize, UserBlockProps, UserBlockSize };
|