@lumx/react 4.0.1-alpha.0 → 4.0.1-alpha.10
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 +276 -135
- package/index.js +557 -554
- package/index.js.map +1 -1
- package/package.json +12 -9
- package/utils/index.d.ts +2 -1
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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';
|
|
@@ -37,7 +37,7 @@ type HasRequiredLinkHref<E> = E extends 'a' ? {
|
|
|
37
37
|
|
|
38
38
|
interface AlertDialogProps extends Omit<DialogProps, 'header' | 'footer'> {
|
|
39
39
|
/** Message variant. */
|
|
40
|
-
kind?: Kind;
|
|
40
|
+
kind?: Kind$1;
|
|
41
41
|
/** Dialog title. */
|
|
42
42
|
title?: string;
|
|
43
43
|
/** Props forwarded to the confirm button */
|
|
@@ -72,7 +72,7 @@ declare const AlertDialog: Comp<AlertDialogProps, HTMLDivElement>;
|
|
|
72
72
|
/**
|
|
73
73
|
* Defines the props of the component.
|
|
74
74
|
*/
|
|
75
|
-
interface AutocompleteProps extends GenericProps, HasTheme {
|
|
75
|
+
interface AutocompleteProps extends GenericProps$1, HasTheme$1 {
|
|
76
76
|
/**
|
|
77
77
|
* Whether the suggestions list should display anchored to the input or to the wrapper.
|
|
78
78
|
* @see {@link DropdownProps#anchorToInput}
|
|
@@ -247,7 +247,7 @@ interface AutocompleteMultipleProps extends AutocompleteProps {
|
|
|
247
247
|
/** Alignment of the chips in the autocomplete. */
|
|
248
248
|
chipsAlignment?: HorizontalAlignment;
|
|
249
249
|
/** Selected value render function. Default: Renders the value inside of a Chip. */
|
|
250
|
-
selectedChipRender(choice: any, index: number, onClear?: (event: React.MouseEvent,
|
|
250
|
+
selectedChipRender(choice: any, index: number, onClear?: (event: React.MouseEvent, val: any) => void, isDisabled?: boolean): ReactNode | string;
|
|
251
251
|
}
|
|
252
252
|
/**
|
|
253
253
|
* AutocompleteMultiple component.
|
|
@@ -261,11 +261,11 @@ declare const AutocompleteMultiple: Comp<AutocompleteMultipleProps, HTMLDivEleme
|
|
|
261
261
|
/**
|
|
262
262
|
* Avatar sizes.
|
|
263
263
|
*/
|
|
264
|
-
type AvatarSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
264
|
+
type AvatarSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
265
265
|
/**
|
|
266
266
|
* Defines the props of the component.
|
|
267
267
|
*/
|
|
268
|
-
interface AvatarProps extends GenericProps, HasTheme {
|
|
268
|
+
interface AvatarProps extends GenericProps$1, HasTheme$1 {
|
|
269
269
|
/** Action toolbar content. */
|
|
270
270
|
actions?: ReactNode;
|
|
271
271
|
/** Image alternative text. */
|
|
@@ -299,11 +299,11 @@ declare const Avatar: Comp<AvatarProps, HTMLDivElement>;
|
|
|
299
299
|
/**
|
|
300
300
|
* Defines the props of the component.
|
|
301
301
|
*/
|
|
302
|
-
interface BadgeProps extends GenericProps {
|
|
302
|
+
interface BadgeProps extends GenericProps$1 {
|
|
303
303
|
/** Badge content. */
|
|
304
304
|
children?: ReactNode;
|
|
305
305
|
/** Color variant. */
|
|
306
|
-
color?: ColorPalette;
|
|
306
|
+
color?: ColorPalette$1;
|
|
307
307
|
}
|
|
308
308
|
/**
|
|
309
309
|
* Badge component.
|
|
@@ -314,7 +314,7 @@ interface BadgeProps extends GenericProps {
|
|
|
314
314
|
*/
|
|
315
315
|
declare const Badge: Comp<BadgeProps, HTMLDivElement>;
|
|
316
316
|
|
|
317
|
-
interface BadgeWrapperProps extends GenericProps {
|
|
317
|
+
interface BadgeWrapperProps extends GenericProps$1 {
|
|
318
318
|
/** Badge. */
|
|
319
319
|
badge: ReactElement;
|
|
320
320
|
/** Node to display the badge on */
|
|
@@ -331,10 +331,10 @@ type HTMLButtonProps = DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>
|
|
|
331
331
|
/**
|
|
332
332
|
* Button size definition.
|
|
333
333
|
*/
|
|
334
|
-
type ButtonSize = Extract<Size, 's' | 'm'>;
|
|
335
|
-
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 {
|
|
336
336
|
/** Color variant. */
|
|
337
|
-
color?: ColorPalette;
|
|
337
|
+
color?: ColorPalette$1;
|
|
338
338
|
/** Emphasis variant. */
|
|
339
339
|
emphasis?: Emphasis;
|
|
340
340
|
/** Whether or not the button has a background color in low emphasis. */
|
|
@@ -427,7 +427,7 @@ declare const IconButton: Comp<IconButtonProps, HTMLButtonElement>;
|
|
|
427
427
|
/**
|
|
428
428
|
* Defines the props of the component
|
|
429
429
|
*/
|
|
430
|
-
interface ButtonGroupProps extends GenericProps {
|
|
430
|
+
interface ButtonGroupProps extends GenericProps$1 {
|
|
431
431
|
/**
|
|
432
432
|
* Children
|
|
433
433
|
*/
|
|
@@ -445,7 +445,7 @@ declare const ButtonGroup: Comp<ButtonGroupProps, HTMLDivElement>;
|
|
|
445
445
|
/**
|
|
446
446
|
* Defines the props of the component.
|
|
447
447
|
*/
|
|
448
|
-
interface CheckboxProps extends GenericProps, HasTheme, HasAriaDisabled {
|
|
448
|
+
interface CheckboxProps extends GenericProps$1, HasTheme$1, HasAriaDisabled {
|
|
449
449
|
/** Helper text. */
|
|
450
450
|
helper?: string;
|
|
451
451
|
/** Native input id property. */
|
|
@@ -479,17 +479,17 @@ declare const Checkbox: Comp<CheckboxProps, HTMLDivElement>;
|
|
|
479
479
|
/**
|
|
480
480
|
* Chip sizes.
|
|
481
481
|
*/
|
|
482
|
-
type ChipSize = Extract<Size, 's' | 'm'>;
|
|
482
|
+
type ChipSize = Extract<Size$1, 's' | 'm'>;
|
|
483
483
|
/**
|
|
484
484
|
* Defines the props of the component.
|
|
485
485
|
*/
|
|
486
|
-
interface ChipProps extends GenericProps, HasTheme, HasAriaDisabled {
|
|
486
|
+
interface ChipProps extends GenericProps$1, HasTheme$1, HasAriaDisabled {
|
|
487
487
|
/** A component to be rendered after the content. */
|
|
488
488
|
after?: ReactNode;
|
|
489
489
|
/** A component to be rendered before the content. */
|
|
490
490
|
before?: ReactNode;
|
|
491
491
|
/** Color variant. */
|
|
492
|
-
color?: ColorPalette;
|
|
492
|
+
color?: ColorPalette$1;
|
|
493
493
|
/** Whether the component is clickable or not. */
|
|
494
494
|
isClickable?: boolean;
|
|
495
495
|
/** Whether the component is disabled or not. */
|
|
@@ -529,7 +529,7 @@ type useChipGroupNavigationType<C = any> = (chips: C[], onChipDeleted: (chip: C)
|
|
|
529
529
|
/**
|
|
530
530
|
* Defines the props of the component.
|
|
531
531
|
*/
|
|
532
|
-
interface ChipGroupProps extends GenericProps {
|
|
532
|
+
interface ChipGroupProps extends GenericProps$1 {
|
|
533
533
|
/**
|
|
534
534
|
* Chip horizontal alignment.
|
|
535
535
|
* @deprecated
|
|
@@ -553,7 +553,7 @@ type CommentBlockVariant = ValueOf<typeof CommentBlockVariant>;
|
|
|
553
553
|
/**
|
|
554
554
|
* Defines the props of the component.
|
|
555
555
|
*/
|
|
556
|
-
interface CommentBlockProps extends GenericProps, HasTheme {
|
|
556
|
+
interface CommentBlockProps extends GenericProps$1, HasTheme$1 {
|
|
557
557
|
/** Action toolbar content. */
|
|
558
558
|
actions?: ReactNode;
|
|
559
559
|
/** Props to pass to the avatar. */
|
|
@@ -606,7 +606,7 @@ declare const CommentBlock: Comp<CommentBlockProps, HTMLDivElement>;
|
|
|
606
606
|
/**
|
|
607
607
|
* Defines the props of the component.
|
|
608
608
|
*/
|
|
609
|
-
interface DatePickerProps extends GenericProps {
|
|
609
|
+
interface DatePickerProps extends GenericProps$1 {
|
|
610
610
|
/** Default month. */
|
|
611
611
|
defaultMonth?: Date;
|
|
612
612
|
/** Locale (language or region) to use. */
|
|
@@ -661,7 +661,7 @@ declare const DatePickerControlled: Comp<DatePickerControlledProps, HTMLDivEleme
|
|
|
661
661
|
/**
|
|
662
662
|
* Defines the props of the component.
|
|
663
663
|
*/
|
|
664
|
-
interface DatePickerFieldProps extends Omit<TextFieldProps, 'value' | 'onChange'>, GenericProps {
|
|
664
|
+
interface DatePickerFieldProps extends Omit<TextFieldProps, 'value' | 'onChange'>, GenericProps$1 {
|
|
665
665
|
/** Default month. */
|
|
666
666
|
defaultMonth?: Date;
|
|
667
667
|
/** Locale (language or region) to use. */
|
|
@@ -691,7 +691,7 @@ declare const DatePickerField: Comp<DatePickerFieldProps, HTMLDivElement>;
|
|
|
691
691
|
/**
|
|
692
692
|
* Defines the props of the component.
|
|
693
693
|
*/
|
|
694
|
-
interface DialogProps extends GenericProps {
|
|
694
|
+
interface DialogProps extends GenericProps$1 {
|
|
695
695
|
/** Footer content. */
|
|
696
696
|
footer?: ReactNode;
|
|
697
697
|
/** Whether the divider between the dialog content and the footer is always displayed (instead of showing it on scroll). */
|
|
@@ -721,7 +721,7 @@ interface DialogProps extends GenericProps {
|
|
|
721
721
|
/** Z-axis position. */
|
|
722
722
|
zIndex?: number;
|
|
723
723
|
/** Z-axis position. */
|
|
724
|
-
dialogProps?: GenericProps;
|
|
724
|
+
dialogProps?: GenericProps$1;
|
|
725
725
|
/** On close callback. */
|
|
726
726
|
onClose?(): void;
|
|
727
727
|
/** Callback called when the open animation starts and the close animation finishes. */
|
|
@@ -731,7 +731,7 @@ interface DialogProps extends GenericProps {
|
|
|
731
731
|
/** Children */
|
|
732
732
|
children?: React__default.ReactNode;
|
|
733
733
|
}
|
|
734
|
-
type DialogSizes = Extract<Size, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
734
|
+
type DialogSizes = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
735
735
|
/**
|
|
736
736
|
* Dialog component.
|
|
737
737
|
*
|
|
@@ -744,7 +744,7 @@ declare const Dialog: Comp<DialogProps, HTMLDivElement>;
|
|
|
744
744
|
/**
|
|
745
745
|
* Defines the props of the component.
|
|
746
746
|
*/
|
|
747
|
-
interface DividerProps extends GenericProps, HasTheme {
|
|
747
|
+
interface DividerProps extends GenericProps$1, HasTheme$1 {
|
|
748
748
|
}
|
|
749
749
|
/**
|
|
750
750
|
* Divider component.
|
|
@@ -758,7 +758,7 @@ declare const Divider: Comp<DividerProps, HTMLHRElement>;
|
|
|
758
758
|
/**
|
|
759
759
|
* Defines the props of the component.
|
|
760
760
|
*/
|
|
761
|
-
interface DragHandleProps extends GenericProps, HasTheme {
|
|
761
|
+
interface DragHandleProps extends GenericProps$1, HasTheme$1 {
|
|
762
762
|
}
|
|
763
763
|
/**
|
|
764
764
|
* DragHandle component.
|
|
@@ -816,7 +816,7 @@ type FitAnchorWidth = ValueOf<typeof FitAnchorWidth>;
|
|
|
816
816
|
/**
|
|
817
817
|
* Defines the props of the component.
|
|
818
818
|
*/
|
|
819
|
-
interface PopoverProps extends GenericProps, HasTheme {
|
|
819
|
+
interface PopoverProps extends GenericProps$1, HasTheme$1 {
|
|
820
820
|
/** Reference to the DOM element used to set the position of the popover. */
|
|
821
821
|
anchorRef: React.RefObject<HTMLElement>;
|
|
822
822
|
/** Customize the root element. (Must accept ref forwarding and props forwarding!). */
|
|
@@ -877,7 +877,7 @@ declare const Popover: Comp<PopoverProps, HTMLDivElement>;
|
|
|
877
877
|
/**
|
|
878
878
|
* Defines the props of the component.
|
|
879
879
|
*/
|
|
880
|
-
interface DropdownProps extends GenericProps {
|
|
880
|
+
interface DropdownProps extends GenericProps$1 {
|
|
881
881
|
/**
|
|
882
882
|
* Reference to the element around which the dropdown is placed.
|
|
883
883
|
* @see {@link PopoverProps#anchorRef}
|
|
@@ -958,7 +958,7 @@ declare const Dropdown: Comp<DropdownProps, HTMLDivElement>;
|
|
|
958
958
|
/**
|
|
959
959
|
* Defines the props of the component.
|
|
960
960
|
*/
|
|
961
|
-
interface ExpansionPanelProps extends GenericProps, HasCloseMode, HasTheme {
|
|
961
|
+
interface ExpansionPanelProps extends GenericProps$1, HasCloseMode, HasTheme$1 {
|
|
962
962
|
/** Whether the expansion panel has a background. */
|
|
963
963
|
hasBackground?: boolean;
|
|
964
964
|
/** Whether the header has a divider. */
|
|
@@ -987,9 +987,9 @@ interface ExpansionPanelProps extends GenericProps, HasCloseMode, HasTheme {
|
|
|
987
987
|
*/
|
|
988
988
|
declare const ExpansionPanel: Comp<ExpansionPanelProps, HTMLDivElement>;
|
|
989
989
|
|
|
990
|
-
interface FlagProps extends GenericProps, HasTheme {
|
|
990
|
+
interface FlagProps extends GenericProps$1, HasTheme$1 {
|
|
991
991
|
/** Color of the component. */
|
|
992
|
-
color?: ColorPalette;
|
|
992
|
+
color?: ColorPalette$1;
|
|
993
993
|
/** Icon to use before the label. */
|
|
994
994
|
icon?: string;
|
|
995
995
|
/** Text label of the flag. */
|
|
@@ -1007,14 +1007,14 @@ interface FlagProps extends GenericProps, HasTheme {
|
|
|
1007
1007
|
declare const Flag: Comp<FlagProps, HTMLDivElement>;
|
|
1008
1008
|
|
|
1009
1009
|
type MarginAutoAlignment = Extract<Alignment, 'top' | 'bottom' | 'right' | 'left'>;
|
|
1010
|
-
type GapSize = Extract<Size, 'tiny' | 'regular' | 'medium' | 'big' | 'huge'>;
|
|
1010
|
+
type GapSize = Extract<Size$1, 'tiny' | 'regular' | 'medium' | 'big' | 'huge'>;
|
|
1011
1011
|
type SpaceAlignment = Extract<Alignment, 'space-between' | 'space-evenly' | 'space-around'>;
|
|
1012
1012
|
type FlexVerticalAlignment = VerticalAlignment | SpaceAlignment;
|
|
1013
1013
|
type FlexHorizontalAlignment = HorizontalAlignment | SpaceAlignment;
|
|
1014
1014
|
/**
|
|
1015
1015
|
* Defines the props of the component.
|
|
1016
1016
|
*/
|
|
1017
|
-
interface FlexBoxProps extends GenericProps {
|
|
1017
|
+
interface FlexBoxProps extends GenericProps$1 {
|
|
1018
1018
|
/** Customize the root element. */
|
|
1019
1019
|
as?: React.ElementType;
|
|
1020
1020
|
/** Children elements. */
|
|
@@ -1149,19 +1149,19 @@ declare const GenericBlock: GenericBlock;
|
|
|
1149
1149
|
/**
|
|
1150
1150
|
* Defines the props of the component.
|
|
1151
1151
|
*/
|
|
1152
|
-
interface TextProps extends GenericProps {
|
|
1152
|
+
interface TextProps extends GenericProps$1 {
|
|
1153
1153
|
/**
|
|
1154
1154
|
* Color variant.
|
|
1155
1155
|
*/
|
|
1156
|
-
color?: ColorWithVariants;
|
|
1156
|
+
color?: ColorWithVariants$1;
|
|
1157
1157
|
/**
|
|
1158
1158
|
* Lightened or darkened variant of the selected color.
|
|
1159
1159
|
*/
|
|
1160
|
-
colorVariant?: ColorVariant;
|
|
1160
|
+
colorVariant?: ColorVariant$1;
|
|
1161
1161
|
/**
|
|
1162
1162
|
* Typography variant.
|
|
1163
1163
|
*/
|
|
1164
|
-
typography?: Typography;
|
|
1164
|
+
typography?: Typography$1;
|
|
1165
1165
|
/**
|
|
1166
1166
|
* Custom component to render the text.
|
|
1167
1167
|
*/
|
|
@@ -1235,11 +1235,11 @@ declare const useHeadingLevel: () => {
|
|
|
1235
1235
|
headingElement: _lumx_core_js_types.HeadingElement;
|
|
1236
1236
|
};
|
|
1237
1237
|
|
|
1238
|
-
type GridGutterSize = Extract<Size, 'regular' | 'big' | 'huge'>;
|
|
1238
|
+
type GridGutterSize = Extract<Size$1, 'regular' | 'big' | 'huge'>;
|
|
1239
1239
|
/**
|
|
1240
1240
|
* Defines the props of the component.
|
|
1241
1241
|
*/
|
|
1242
|
-
interface GridProps extends GenericProps {
|
|
1242
|
+
interface GridProps extends GenericProps$1 {
|
|
1243
1243
|
/** Orientation. */
|
|
1244
1244
|
orientation?: Orientation;
|
|
1245
1245
|
/** Whether the children are wrapped or not. */
|
|
@@ -1266,7 +1266,7 @@ type Columns = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11'
|
|
|
1266
1266
|
/**
|
|
1267
1267
|
* Defines the props of the component.
|
|
1268
1268
|
*/
|
|
1269
|
-
interface GridItemProps extends GenericProps {
|
|
1269
|
+
interface GridItemProps extends GenericProps$1 {
|
|
1270
1270
|
/** Alignment. */
|
|
1271
1271
|
align?: Alignment;
|
|
1272
1272
|
/** Order. */
|
|
@@ -1285,11 +1285,11 @@ interface GridItemProps extends GenericProps {
|
|
|
1285
1285
|
*/
|
|
1286
1286
|
declare const GridItem: Comp<GridItemProps, HTMLDivElement>;
|
|
1287
1287
|
|
|
1288
|
-
type GridColumnGapSize = Extract<Size, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
1288
|
+
type GridColumnGapSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
1289
1289
|
/**
|
|
1290
1290
|
* Defines the props of the component.
|
|
1291
1291
|
*/
|
|
1292
|
-
interface GridColumnProps extends GenericProps {
|
|
1292
|
+
interface GridColumnProps extends GenericProps$1 {
|
|
1293
1293
|
/** Customize the root element. */
|
|
1294
1294
|
as?: React.ElementType;
|
|
1295
1295
|
/** Children elements. */
|
|
@@ -1312,6 +1312,157 @@ interface GridColumnProps extends GenericProps {
|
|
|
1312
1312
|
*/
|
|
1313
1313
|
declare const GridColumn: Comp<GridColumnProps, HTMLElement>;
|
|
1314
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
|
+
|
|
1315
1466
|
type IconSizes = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
1316
1467
|
/**
|
|
1317
1468
|
* Defines the props of the component.
|
|
@@ -1333,6 +1484,7 @@ interface IconProps extends GenericProps, HasTheme {
|
|
|
1333
1484
|
/** Sets an alternative text on the svg. Will set an `img` role to the svg. */
|
|
1334
1485
|
alt?: string;
|
|
1335
1486
|
}
|
|
1487
|
+
|
|
1336
1488
|
/**
|
|
1337
1489
|
* Icon component.
|
|
1338
1490
|
*
|
|
@@ -1367,7 +1519,7 @@ declare const ThumbnailAspectRatio: Record<string, AspectRatio>;
|
|
|
1367
1519
|
/**
|
|
1368
1520
|
* Thumbnail sizes.
|
|
1369
1521
|
*/
|
|
1370
|
-
type ThumbnailSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
1522
|
+
type ThumbnailSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
1371
1523
|
/**
|
|
1372
1524
|
* Thumbnail variants.
|
|
1373
1525
|
*/
|
|
@@ -1389,7 +1541,7 @@ type ImgHTMLProps = ImgHTMLAttributes<HTMLImageElement>;
|
|
|
1389
1541
|
/**
|
|
1390
1542
|
* Defines the props of the component.
|
|
1391
1543
|
*/
|
|
1392
|
-
interface ThumbnailProps extends GenericProps, HasTheme {
|
|
1544
|
+
interface ThumbnailProps extends GenericProps$1, HasTheme$1 {
|
|
1393
1545
|
/** Alignment of the thumbnail in it's parent (requires flex parent). */
|
|
1394
1546
|
align?: HorizontalAlignment;
|
|
1395
1547
|
/** Image alternative text. */
|
|
@@ -1471,11 +1623,11 @@ type ImageBlockCaptionPosition = ValueOf<typeof ImageBlockCaptionPosition>;
|
|
|
1471
1623
|
/**
|
|
1472
1624
|
* Image block sizes.
|
|
1473
1625
|
*/
|
|
1474
|
-
type ImageBlockSize = Extract<Size, 'xl' | 'xxl'>;
|
|
1626
|
+
type ImageBlockSize = Extract<Size$1, 'xl' | 'xxl'>;
|
|
1475
1627
|
/**
|
|
1476
1628
|
* Defines the props of the component.
|
|
1477
1629
|
*/
|
|
1478
|
-
interface ImageBlockProps extends GenericProps, HasTheme, ImageCaptionMetadata {
|
|
1630
|
+
interface ImageBlockProps extends GenericProps$1, HasTheme$1, ImageCaptionMetadata {
|
|
1479
1631
|
/** Action toolbar content. */
|
|
1480
1632
|
actions?: ReactNode;
|
|
1481
1633
|
/** Alignment. */
|
|
@@ -1525,7 +1677,7 @@ type ForwardedProps = React.ComponentPropsWithoutRef<'div'>;
|
|
|
1525
1677
|
/**
|
|
1526
1678
|
* ImageLightbox component props
|
|
1527
1679
|
*/
|
|
1528
|
-
interface ImageLightboxProps extends HasClassName, ZoomButtonProps, ImagesProps, InheritedSlideShowProps, InheritedLightboxProps, ForwardedProps {
|
|
1680
|
+
interface ImageLightboxProps extends HasClassName$1, ZoomButtonProps, ImagesProps, InheritedSlideShowProps, InheritedLightboxProps, ForwardedProps {
|
|
1529
1681
|
}
|
|
1530
1682
|
|
|
1531
1683
|
/** Subset of the ImageLightboxProps managed by the useImageLightbox hook */
|
|
@@ -1567,19 +1719,19 @@ declare const ImageLightbox: Comp<ImageLightboxProps, HTMLDivElement> & {
|
|
|
1567
1719
|
/**
|
|
1568
1720
|
* Defines the props of the component.
|
|
1569
1721
|
*/
|
|
1570
|
-
interface InlineListProps extends GenericProps {
|
|
1722
|
+
interface InlineListProps extends GenericProps$1 {
|
|
1571
1723
|
/**
|
|
1572
1724
|
* Text color.
|
|
1573
1725
|
*/
|
|
1574
|
-
color?: ColorWithVariants;
|
|
1726
|
+
color?: ColorWithVariants$1;
|
|
1575
1727
|
/**
|
|
1576
1728
|
* Lightened or darkened variant of the selected color.
|
|
1577
1729
|
*/
|
|
1578
|
-
colorVariant?: ColorVariant;
|
|
1730
|
+
colorVariant?: ColorVariant$1;
|
|
1579
1731
|
/**
|
|
1580
1732
|
* Typography variant.
|
|
1581
1733
|
*/
|
|
1582
|
-
typography?: Typography;
|
|
1734
|
+
typography?: Typography$1;
|
|
1583
1735
|
/**
|
|
1584
1736
|
* Activate line wrap on overflow.
|
|
1585
1737
|
*/
|
|
@@ -1603,10 +1755,11 @@ declare const InlineList: Comp<InlineListProps, HTMLElement>;
|
|
|
1603
1755
|
*/
|
|
1604
1756
|
interface InputHelperProps extends GenericProps, HasTheme {
|
|
1605
1757
|
/** Helper content. */
|
|
1606
|
-
children:
|
|
1758
|
+
children: JSXElement;
|
|
1607
1759
|
/** Helper variant. */
|
|
1608
1760
|
kind?: Kind;
|
|
1609
1761
|
}
|
|
1762
|
+
|
|
1610
1763
|
/**
|
|
1611
1764
|
* InputHelper component.
|
|
1612
1765
|
*
|
|
@@ -1616,19 +1769,17 @@ interface InputHelperProps extends GenericProps, HasTheme {
|
|
|
1616
1769
|
*/
|
|
1617
1770
|
declare const InputHelper: Comp<InputHelperProps, HTMLParagraphElement>;
|
|
1618
1771
|
|
|
1619
|
-
/**
|
|
1620
|
-
* Defines the props of the component.
|
|
1621
|
-
*/
|
|
1622
1772
|
interface InputLabelProps extends GenericProps, HasTheme {
|
|
1623
1773
|
/** Typography variant. */
|
|
1624
1774
|
typography?: Typography;
|
|
1625
1775
|
/** Label content. */
|
|
1626
|
-
children:
|
|
1776
|
+
children: JSXElement;
|
|
1627
1777
|
/** Native htmlFor property. */
|
|
1628
1778
|
htmlFor: string;
|
|
1629
1779
|
/** Whether the component is required or not. */
|
|
1630
1780
|
isRequired?: boolean;
|
|
1631
1781
|
}
|
|
1782
|
+
|
|
1632
1783
|
/**
|
|
1633
1784
|
* InputLabel component.
|
|
1634
1785
|
*
|
|
@@ -1641,7 +1792,7 @@ declare const InputLabel: Comp<InputLabelProps, HTMLLabelElement>;
|
|
|
1641
1792
|
/**
|
|
1642
1793
|
* Defines the props of the component.
|
|
1643
1794
|
*/
|
|
1644
|
-
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'> {
|
|
1645
1796
|
/** Props to pass to the close button (minus those already set by the Lightbox props). */
|
|
1646
1797
|
closeButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis' | 'color'>;
|
|
1647
1798
|
/** Whether the component is open or not. */
|
|
@@ -1672,11 +1823,11 @@ type HTMLAnchorProps = React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAn
|
|
|
1672
1823
|
/**
|
|
1673
1824
|
* Defines the props of the component.
|
|
1674
1825
|
*/
|
|
1675
|
-
interface LinkProps extends GenericProps, HasAriaDisabled {
|
|
1826
|
+
interface LinkProps extends GenericProps$1, HasAriaDisabled {
|
|
1676
1827
|
/** Color variant. */
|
|
1677
|
-
color?: ColorWithVariants;
|
|
1828
|
+
color?: ColorWithVariants$1;
|
|
1678
1829
|
/** Lightened or darkened variant of the selected icon color. */
|
|
1679
|
-
colorVariant?: ColorVariant;
|
|
1830
|
+
colorVariant?: ColorVariant$1;
|
|
1680
1831
|
/** Link href. */
|
|
1681
1832
|
href?: HTMLAnchorProps['href'];
|
|
1682
1833
|
/** Whether the component is disabled or not. */
|
|
@@ -1696,7 +1847,7 @@ interface LinkProps extends GenericProps, HasAriaDisabled {
|
|
|
1696
1847
|
/** Link target. */
|
|
1697
1848
|
target?: HTMLAnchorProps['target'];
|
|
1698
1849
|
/** Typography variant. */
|
|
1699
|
-
typography?: Typography;
|
|
1850
|
+
typography?: Typography$1;
|
|
1700
1851
|
/** Children */
|
|
1701
1852
|
children?: React.ReactNode;
|
|
1702
1853
|
}
|
|
@@ -1712,7 +1863,7 @@ declare const Link: Comp<LinkProps, HTMLAnchorElement | HTMLButtonElement>;
|
|
|
1712
1863
|
/**
|
|
1713
1864
|
* Defines the props of the component.
|
|
1714
1865
|
*/
|
|
1715
|
-
interface LinkPreviewProps extends GenericProps, HasTheme {
|
|
1866
|
+
interface LinkPreviewProps extends GenericProps$1, HasTheme$1 {
|
|
1716
1867
|
/** Description. */
|
|
1717
1868
|
description?: string;
|
|
1718
1869
|
/** Link URL. */
|
|
@@ -1722,7 +1873,7 @@ interface LinkPreviewProps extends GenericProps, HasTheme {
|
|
|
1722
1873
|
/** Props to pass to the link (minus those already set by the LinkPreview props). */
|
|
1723
1874
|
linkProps?: Omit<LinkProps, 'color' | 'colorVariant' | 'href' | 'target'>;
|
|
1724
1875
|
/** Size variant. */
|
|
1725
|
-
size?: Extract<Size, 'regular' | 'big'>;
|
|
1876
|
+
size?: Extract<Size$1, 'regular' | 'big'>;
|
|
1726
1877
|
/** Thumbnail for the link preview. */
|
|
1727
1878
|
thumbnailProps?: ThumbnailProps;
|
|
1728
1879
|
/** Title. */
|
|
@@ -1755,7 +1906,7 @@ type useKeyboardListNavigationType = <I>(items: I[], ref: RefObject<HTMLElement>
|
|
|
1755
1906
|
/**
|
|
1756
1907
|
* Defines the props of the component.
|
|
1757
1908
|
*/
|
|
1758
|
-
interface ListProps extends GenericProps {
|
|
1909
|
+
interface ListProps extends GenericProps$1 {
|
|
1759
1910
|
/** List content (should be ListItem, ListSubheader or ListDivider). */
|
|
1760
1911
|
children: ReactNode;
|
|
1761
1912
|
/**
|
|
@@ -1764,7 +1915,7 @@ interface ListProps extends GenericProps {
|
|
|
1764
1915
|
*/
|
|
1765
1916
|
isClickable?: boolean;
|
|
1766
1917
|
/** Item padding size. */
|
|
1767
|
-
itemPadding?: Extract<Size, 'big' | 'huge'>;
|
|
1918
|
+
itemPadding?: Extract<Size$1, 'big' | 'huge'>;
|
|
1768
1919
|
/** Tab index of the list. Default to -1 */
|
|
1769
1920
|
tabIndex?: number;
|
|
1770
1921
|
/**
|
|
@@ -1780,11 +1931,11 @@ declare const List: Comp<ListProps, HTMLUListElement> & {
|
|
|
1780
1931
|
useKeyboardListNavigation: useKeyboardListNavigationType;
|
|
1781
1932
|
};
|
|
1782
1933
|
|
|
1783
|
-
type ListItemSize = Extract<Size, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
1934
|
+
type ListItemSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
1784
1935
|
/**
|
|
1785
1936
|
* Defines the props of the component.
|
|
1786
1937
|
*/
|
|
1787
|
-
interface ListItemProps extends GenericProps, HasAriaDisabled {
|
|
1938
|
+
interface ListItemProps extends GenericProps$1, HasAriaDisabled {
|
|
1788
1939
|
/** A component to be rendered after the content. */
|
|
1789
1940
|
after?: ReactNode;
|
|
1790
1941
|
/** A component to be rendered before the content. */
|
|
@@ -1827,7 +1978,7 @@ declare const ListItem: Comp<ListItemProps, HTMLLIElement>;
|
|
|
1827
1978
|
/**
|
|
1828
1979
|
* Defines the props of the component.
|
|
1829
1980
|
*/
|
|
1830
|
-
type ListDividerProps = GenericProps;
|
|
1981
|
+
type ListDividerProps = GenericProps$1;
|
|
1831
1982
|
/**
|
|
1832
1983
|
* ListDivider component.
|
|
1833
1984
|
*
|
|
@@ -1835,12 +1986,12 @@ type ListDividerProps = GenericProps;
|
|
|
1835
1986
|
* @param ref Component ref.
|
|
1836
1987
|
* @return React element.
|
|
1837
1988
|
*/
|
|
1838
|
-
declare const ListDivider: Comp<GenericProps, HTMLLIElement>;
|
|
1989
|
+
declare const ListDivider: Comp<GenericProps$1, HTMLLIElement>;
|
|
1839
1990
|
|
|
1840
1991
|
/**
|
|
1841
1992
|
* Defines the props of the component.
|
|
1842
1993
|
*/
|
|
1843
|
-
interface ListSubheaderProps extends GenericProps {
|
|
1994
|
+
interface ListSubheaderProps extends GenericProps$1 {
|
|
1844
1995
|
/** Content. */
|
|
1845
1996
|
children: string | ReactNode;
|
|
1846
1997
|
}
|
|
@@ -1856,13 +2007,13 @@ declare const ListSubheader: Comp<ListSubheaderProps, HTMLLIElement>;
|
|
|
1856
2007
|
/**
|
|
1857
2008
|
* Defines the props of the component.
|
|
1858
2009
|
*/
|
|
1859
|
-
interface MessageProps extends GenericProps {
|
|
2010
|
+
interface MessageProps extends GenericProps$1 {
|
|
1860
2011
|
/** Content. */
|
|
1861
2012
|
children?: ReactNode;
|
|
1862
2013
|
/** Whether the message has a background or not. */
|
|
1863
2014
|
hasBackground?: boolean;
|
|
1864
2015
|
/** Message variant. */
|
|
1865
|
-
kind?: Kind;
|
|
2016
|
+
kind?: Kind$1;
|
|
1866
2017
|
/** Message custom icon SVG path. */
|
|
1867
2018
|
icon?: string;
|
|
1868
2019
|
/**
|
|
@@ -1889,7 +2040,7 @@ declare const Message: Comp<MessageProps, HTMLDivElement>;
|
|
|
1889
2040
|
/**
|
|
1890
2041
|
* Defines the props of the component.
|
|
1891
2042
|
*/
|
|
1892
|
-
interface MosaicProps extends GenericProps, HasTheme {
|
|
2043
|
+
interface MosaicProps extends GenericProps$1, HasTheme$1 {
|
|
1893
2044
|
/** Thumbnails. */
|
|
1894
2045
|
thumbnails: ThumbnailProps[];
|
|
1895
2046
|
/** On image click callback. */
|
|
@@ -1904,7 +2055,7 @@ interface MosaicProps extends GenericProps, HasTheme {
|
|
|
1904
2055
|
*/
|
|
1905
2056
|
declare const Mosaic: Comp<MosaicProps, HTMLDivElement>;
|
|
1906
2057
|
|
|
1907
|
-
interface NavigationSectionProps extends React.ComponentPropsWithoutRef<'button'>, HasClassName {
|
|
2058
|
+
interface NavigationSectionProps extends React.ComponentPropsWithoutRef<'button'>, HasClassName$1 {
|
|
1908
2059
|
/** Items inside the section */
|
|
1909
2060
|
children: React.ReactNode;
|
|
1910
2061
|
/** Icon (SVG path). */
|
|
@@ -1924,14 +2075,14 @@ type BaseNavigationItemProps = {
|
|
|
1924
2075
|
};
|
|
1925
2076
|
declare const NavigationItem: (<E extends ElementType = "a">(props: React$1.PropsWithoutRef<React$1.ComponentProps<E>> & {
|
|
1926
2077
|
as?: E | undefined;
|
|
1927
|
-
} & HasTheme & HasClassName & BaseNavigationItemProps & HasRequiredLinkHref<E> & React$1.ComponentProps<E> & {
|
|
2078
|
+
} & HasTheme$1 & HasClassName$1 & BaseNavigationItemProps & HasRequiredLinkHref<E> & React$1.ComponentProps<E> & {
|
|
1928
2079
|
ref?: ComponentRef<E> | undefined;
|
|
1929
2080
|
}) => React$1.JSX.Element) & {
|
|
1930
2081
|
displayName: string;
|
|
1931
2082
|
className: "lumx-navigation-item";
|
|
1932
2083
|
};
|
|
1933
2084
|
|
|
1934
|
-
type NavigationProps = React.ComponentProps<'nav'> & HasClassName & HasTheme & {
|
|
2085
|
+
type NavigationProps = React.ComponentProps<'nav'> & HasClassName$1 & HasTheme$1 & {
|
|
1935
2086
|
/** Content of the navigation. These components should be of type NavigationItem to be rendered */
|
|
1936
2087
|
children?: React.ReactNode;
|
|
1937
2088
|
orientation?: Orientation;
|
|
@@ -1945,7 +2096,7 @@ declare const Navigation: Comp<NavigationProps, HTMLElement> & SubComponents;
|
|
|
1945
2096
|
/**
|
|
1946
2097
|
* Defines the props of the component.
|
|
1947
2098
|
*/
|
|
1948
|
-
interface NotificationProps extends GenericProps, HasTheme {
|
|
2099
|
+
interface NotificationProps extends GenericProps$1, HasTheme$1 {
|
|
1949
2100
|
/** Action button label. */
|
|
1950
2101
|
actionLabel?: string;
|
|
1951
2102
|
/** Content. */
|
|
@@ -1953,7 +2104,7 @@ interface NotificationProps extends GenericProps, HasTheme {
|
|
|
1953
2104
|
/** Whether the component is open or not. */
|
|
1954
2105
|
isOpen?: boolean;
|
|
1955
2106
|
/** Notification type. */
|
|
1956
|
-
type?: Kind;
|
|
2107
|
+
type?: Kind$1;
|
|
1957
2108
|
/** Z-axis position. */
|
|
1958
2109
|
zIndex?: number;
|
|
1959
2110
|
/** On action button click callback. */
|
|
@@ -1989,7 +2140,7 @@ declare const PopoverDialog: Comp<PopoverDialogProps, HTMLDivElement>;
|
|
|
1989
2140
|
/**
|
|
1990
2141
|
* Defines the props of the component.
|
|
1991
2142
|
*/
|
|
1992
|
-
interface PostBlockProps extends GenericProps, HasTheme {
|
|
2143
|
+
interface PostBlockProps extends GenericProps$1, HasTheme$1 {
|
|
1993
2144
|
/** Action toolbar content. */
|
|
1994
2145
|
actions?: ReactNode;
|
|
1995
2146
|
/** Attachment content. */
|
|
@@ -2033,7 +2184,7 @@ type ProgressVariant = ValueOf<typeof ProgressVariant>;
|
|
|
2033
2184
|
/**
|
|
2034
2185
|
* Defines the props of the component.
|
|
2035
2186
|
*/
|
|
2036
|
-
interface ProgressProps extends GenericProps, HasTheme {
|
|
2187
|
+
interface ProgressProps extends GenericProps$1, HasTheme$1 {
|
|
2037
2188
|
/** Progress variant. */
|
|
2038
2189
|
variant?: ProgressVariant;
|
|
2039
2190
|
}
|
|
@@ -2050,11 +2201,11 @@ declare const Progress: Comp<ProgressProps, HTMLDivElement>;
|
|
|
2050
2201
|
/**
|
|
2051
2202
|
* Progress sizes.
|
|
2052
2203
|
*/
|
|
2053
|
-
type ProgressCircularSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm'>;
|
|
2204
|
+
type ProgressCircularSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm'>;
|
|
2054
2205
|
/**
|
|
2055
2206
|
* Defines the props of the component.
|
|
2056
2207
|
*/
|
|
2057
|
-
interface ProgressCircularProps extends GenericProps, HasTheme {
|
|
2208
|
+
interface ProgressCircularProps extends GenericProps$1, HasTheme$1 {
|
|
2058
2209
|
/**
|
|
2059
2210
|
* Progress circular size.
|
|
2060
2211
|
*/
|
|
@@ -2074,7 +2225,7 @@ interface ProgressCircularProps extends GenericProps, HasTheme {
|
|
|
2074
2225
|
*/
|
|
2075
2226
|
declare const ProgressCircular: Comp<ProgressCircularProps, HTMLDivElement>;
|
|
2076
2227
|
|
|
2077
|
-
interface ProgressLinearProps extends GenericProps, HasTheme {
|
|
2228
|
+
interface ProgressLinearProps extends GenericProps$1, HasTheme$1 {
|
|
2078
2229
|
}
|
|
2079
2230
|
/**
|
|
2080
2231
|
* ProgressLinear component.
|
|
@@ -2113,7 +2264,7 @@ declare const ProgressTrackerProvider: React.FC<ProgressTrackerProviderProps>;
|
|
|
2113
2264
|
/**
|
|
2114
2265
|
* Defines the props of the component.
|
|
2115
2266
|
*/
|
|
2116
|
-
interface ProgressTrackerProps extends GenericProps {
|
|
2267
|
+
interface ProgressTrackerProps extends GenericProps$1 {
|
|
2117
2268
|
/** ARIA label (purpose of the set of steps). */
|
|
2118
2269
|
['aria-label']: string;
|
|
2119
2270
|
/** Step list. */
|
|
@@ -2133,7 +2284,7 @@ declare const ProgressTracker: Comp<ProgressTrackerProps, HTMLDivElement>;
|
|
|
2133
2284
|
/**
|
|
2134
2285
|
* Defines the props of the component.
|
|
2135
2286
|
*/
|
|
2136
|
-
interface ProgressTrackerStepProps extends GenericProps {
|
|
2287
|
+
interface ProgressTrackerStepProps extends GenericProps$1 {
|
|
2137
2288
|
/** Children are not supported. */
|
|
2138
2289
|
children?: never;
|
|
2139
2290
|
/** Whether the step should be in error state or not. */
|
|
@@ -2165,7 +2316,7 @@ declare const ProgressTrackerStep: Comp<ProgressTrackerStepProps, HTMLButtonElem
|
|
|
2165
2316
|
/**
|
|
2166
2317
|
* Defines the props of the component.
|
|
2167
2318
|
*/
|
|
2168
|
-
interface ProgressTrackerStepPanelProps extends GenericProps {
|
|
2319
|
+
interface ProgressTrackerStepPanelProps extends GenericProps$1 {
|
|
2169
2320
|
/** Native id property. */
|
|
2170
2321
|
id?: string;
|
|
2171
2322
|
/** Whether the step is active or not. */
|
|
@@ -2187,7 +2338,7 @@ declare const ProgressTrackerStepPanel: Comp<ProgressTrackerStepPanelProps, HTML
|
|
|
2187
2338
|
/**
|
|
2188
2339
|
* Defines the props of the component.
|
|
2189
2340
|
*/
|
|
2190
|
-
interface RadioButtonProps extends GenericProps, HasTheme, HasAriaDisabled {
|
|
2341
|
+
interface RadioButtonProps extends GenericProps$1, HasTheme$1, HasAriaDisabled {
|
|
2191
2342
|
/** Helper text. */
|
|
2192
2343
|
helper?: string;
|
|
2193
2344
|
/** Native input id property. */
|
|
@@ -2221,7 +2372,7 @@ declare const RadioButton: Comp<RadioButtonProps, HTMLDivElement>;
|
|
|
2221
2372
|
/**
|
|
2222
2373
|
* Defines the props of the component.
|
|
2223
2374
|
*/
|
|
2224
|
-
interface RadioGroupProps extends GenericProps {
|
|
2375
|
+
interface RadioGroupProps extends GenericProps$1 {
|
|
2225
2376
|
/** RadioButton elements */
|
|
2226
2377
|
children: ReactNode;
|
|
2227
2378
|
}
|
|
@@ -2242,7 +2393,7 @@ declare const SelectVariant: {
|
|
|
2242
2393
|
readonly chip: "chip";
|
|
2243
2394
|
};
|
|
2244
2395
|
type SelectVariant = ValueOf<typeof SelectVariant>;
|
|
2245
|
-
interface CoreSelectProps extends GenericProps, HasTheme {
|
|
2396
|
+
interface CoreSelectProps extends GenericProps$1, HasTheme$1 {
|
|
2246
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. */
|
|
2247
2398
|
clearButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
|
|
2248
2399
|
/** Whether the select (input variant) is displayed with error style or not. */
|
|
@@ -2322,7 +2473,7 @@ declare const SelectMultiple: Comp<SelectMultipleProps, HTMLDivElement>;
|
|
|
2322
2473
|
/**
|
|
2323
2474
|
* Defines the props of the component.
|
|
2324
2475
|
*/
|
|
2325
|
-
interface SideNavigationProps extends GenericProps, HasTheme {
|
|
2476
|
+
interface SideNavigationProps extends GenericProps$1, HasTheme$1 {
|
|
2326
2477
|
/** SideNavigationItem elements. */
|
|
2327
2478
|
children: ReactNode;
|
|
2328
2479
|
}
|
|
@@ -2338,7 +2489,7 @@ declare const SideNavigation: Comp<SideNavigationProps, HTMLUListElement>;
|
|
|
2338
2489
|
/**
|
|
2339
2490
|
* Defines the props of the component.
|
|
2340
2491
|
*/
|
|
2341
|
-
interface SideNavigationItemProps extends GenericProps, HasCloseMode {
|
|
2492
|
+
interface SideNavigationItemProps extends GenericProps$1, HasCloseMode {
|
|
2342
2493
|
/** SideNavigationItem elements. */
|
|
2343
2494
|
children?: ReactNode;
|
|
2344
2495
|
/** Emphasis variant. */
|
|
@@ -2374,11 +2525,11 @@ declare const SideNavigationItem: Comp<SideNavigationItemProps, HTMLLIElement>;
|
|
|
2374
2525
|
/**
|
|
2375
2526
|
* Defines the props of the component.
|
|
2376
2527
|
*/
|
|
2377
|
-
interface SkeletonCircleProps extends GenericProps, HasTheme {
|
|
2528
|
+
interface SkeletonCircleProps extends GenericProps$1, HasTheme$1 {
|
|
2378
2529
|
/** Size variant. */
|
|
2379
2530
|
size: GlobalSize;
|
|
2380
2531
|
/** The color of the skeleton. */
|
|
2381
|
-
color?: ColorPalette;
|
|
2532
|
+
color?: ColorPalette$1;
|
|
2382
2533
|
}
|
|
2383
2534
|
/**
|
|
2384
2535
|
* SkeletonCircle component.
|
|
@@ -2401,7 +2552,7 @@ type SkeletonRectangleVariant = ValueOf<typeof SkeletonRectangleVariant>;
|
|
|
2401
2552
|
/**
|
|
2402
2553
|
* Defines the props of the component.
|
|
2403
2554
|
*/
|
|
2404
|
-
interface SkeletonRectangleProps extends GenericProps, HasTheme {
|
|
2555
|
+
interface SkeletonRectangleProps extends GenericProps$1, HasTheme$1 {
|
|
2405
2556
|
/** Aspect ratio (use with width and not height). */
|
|
2406
2557
|
aspectRatio?: Extract<AspectRatio, 'square' | 'horizontal' | 'vertical' | 'wide'>;
|
|
2407
2558
|
/** Height size. */
|
|
@@ -2411,7 +2562,7 @@ interface SkeletonRectangleProps extends GenericProps, HasTheme {
|
|
|
2411
2562
|
/** Width size. */
|
|
2412
2563
|
width?: GlobalSize;
|
|
2413
2564
|
/** The color of the skeleton. */
|
|
2414
|
-
color?: ColorPalette;
|
|
2565
|
+
color?: ColorPalette$1;
|
|
2415
2566
|
}
|
|
2416
2567
|
/**
|
|
2417
2568
|
* SkeletonRectangle component.
|
|
@@ -2425,13 +2576,13 @@ declare const SkeletonRectangle: Comp<SkeletonRectangleProps, HTMLDivElement>;
|
|
|
2425
2576
|
/**
|
|
2426
2577
|
* Defines the props of the component.
|
|
2427
2578
|
*/
|
|
2428
|
-
interface SkeletonTypographyProps extends GenericProps, HasTheme {
|
|
2579
|
+
interface SkeletonTypographyProps extends GenericProps$1, HasTheme$1 {
|
|
2429
2580
|
/** Typography variant. */
|
|
2430
|
-
typography: TypographyInterface;
|
|
2581
|
+
typography: TypographyInterface$1;
|
|
2431
2582
|
/** Width CSS property. */
|
|
2432
2583
|
width?: CSSProperties['width'];
|
|
2433
2584
|
/** The color of the skeleton. */
|
|
2434
|
-
color?: ColorPalette;
|
|
2585
|
+
color?: ColorPalette$1;
|
|
2435
2586
|
}
|
|
2436
2587
|
/**
|
|
2437
2588
|
* SkeletonTypography component.
|
|
@@ -2445,7 +2596,7 @@ declare const SkeletonTypography: Comp<SkeletonTypographyProps, HTMLDivElement>;
|
|
|
2445
2596
|
/**
|
|
2446
2597
|
* Defines the props of the component.
|
|
2447
2598
|
*/
|
|
2448
|
-
interface SliderProps extends GenericProps, HasTheme {
|
|
2599
|
+
interface SliderProps extends GenericProps$1, HasTheme$1 {
|
|
2449
2600
|
/** Helper text. */
|
|
2450
2601
|
helper?: string;
|
|
2451
2602
|
/** Whether the min and max labels should be hidden or not. */
|
|
@@ -2493,9 +2644,7 @@ declare const clamp: (value: number, min: number, max: number) => number;
|
|
|
2493
2644
|
/**
|
|
2494
2645
|
* Defines the props of the component.
|
|
2495
2646
|
*/
|
|
2496
|
-
interface SlideshowProps extends GenericProps, Pick<SlidesProps, 'autoPlay' | 'slidesId' | 'id' | 'theme' | 'fillHeight' | 'groupBy' | 'slideGroupLabel'> {
|
|
2497
|
-
/** Whether to use CSS transform or native scroll snap. */
|
|
2498
|
-
mode?: 'transform' | 'scroll-snap';
|
|
2647
|
+
interface SlideshowProps extends GenericProps$1, Pick<SlidesProps, 'autoPlay' | 'slidesId' | 'id' | 'theme' | 'fillHeight' | 'groupBy' | 'slideGroupLabel'> {
|
|
2499
2648
|
/** current slide active */
|
|
2500
2649
|
activeIndex?: SlidesProps['activeIndex'];
|
|
2501
2650
|
/** Interval between each slide when automatic rotation is enabled. */
|
|
@@ -2519,7 +2668,7 @@ declare const Slideshow: Comp<SlideshowProps, HTMLDivElement>;
|
|
|
2519
2668
|
/**
|
|
2520
2669
|
* Defines the props of the component.
|
|
2521
2670
|
*/
|
|
2522
|
-
interface SlideshowItemProps extends GenericProps {
|
|
2671
|
+
interface SlideshowItemProps extends GenericProps$1 {
|
|
2523
2672
|
/** interval in which slides are automatically shown */
|
|
2524
2673
|
interval?: number;
|
|
2525
2674
|
/** Children */
|
|
@@ -2598,7 +2747,7 @@ interface UseSlideshowControls {
|
|
|
2598
2747
|
/**
|
|
2599
2748
|
* Defines the props of the component.
|
|
2600
2749
|
*/
|
|
2601
|
-
interface SlideshowControlsProps extends GenericProps, HasTheme {
|
|
2750
|
+
interface SlideshowControlsProps extends GenericProps$1, HasTheme$1 {
|
|
2602
2751
|
/** Index of the current slide. */
|
|
2603
2752
|
activeIndex?: number;
|
|
2604
2753
|
/** Props to pass to the next button (minus those already set by the SlideshowControls props). */
|
|
@@ -2642,7 +2791,7 @@ declare const SlideshowControls: Comp<SlideshowControlsProps, HTMLDivElement> &
|
|
|
2642
2791
|
};
|
|
2643
2792
|
};
|
|
2644
2793
|
|
|
2645
|
-
interface
|
|
2794
|
+
interface SlidesProps extends GenericProps$1, HasTheme$1 {
|
|
2646
2795
|
/** current slide active */
|
|
2647
2796
|
activeIndex: number;
|
|
2648
2797
|
/** slides id to be added to the wrapper */
|
|
@@ -2671,14 +2820,6 @@ interface SlidesCommonProps extends GenericProps, HasTheme {
|
|
|
2671
2820
|
/** Children */
|
|
2672
2821
|
children?: React__default.ReactNode;
|
|
2673
2822
|
}
|
|
2674
|
-
interface SlidesTransformProps extends SlidesCommonProps {
|
|
2675
|
-
mode?: 'transform';
|
|
2676
|
-
}
|
|
2677
|
-
interface SlidesScrollSnapProps extends SlidesCommonProps {
|
|
2678
|
-
mode: 'scroll-snap';
|
|
2679
|
-
onChange: (index: number) => void;
|
|
2680
|
-
}
|
|
2681
|
-
type SlidesProps = SlidesTransformProps | SlidesScrollSnapProps;
|
|
2682
2823
|
/**
|
|
2683
2824
|
* Slides component.
|
|
2684
2825
|
*
|
|
@@ -2691,7 +2832,7 @@ declare const Slides: Comp<SlidesProps, HTMLDivElement>;
|
|
|
2691
2832
|
/**
|
|
2692
2833
|
* Defines the props of the component.
|
|
2693
2834
|
*/
|
|
2694
|
-
interface SwitchProps extends GenericProps, HasTheme, HasAriaDisabled {
|
|
2835
|
+
interface SwitchProps extends GenericProps$1, HasTheme$1, HasAriaDisabled {
|
|
2695
2836
|
/** Helper text. */
|
|
2696
2837
|
helper?: string;
|
|
2697
2838
|
/** Whether it is checked or not. */
|
|
@@ -2723,7 +2864,7 @@ declare const Switch: Comp<SwitchProps, HTMLDivElement>;
|
|
|
2723
2864
|
/**
|
|
2724
2865
|
* Defines the props of the component.
|
|
2725
2866
|
*/
|
|
2726
|
-
interface TableProps extends GenericProps, HasTheme {
|
|
2867
|
+
interface TableProps extends GenericProps$1, HasTheme$1 {
|
|
2727
2868
|
/** Whether the table has checkbox or thumbnail on first cell or not. */
|
|
2728
2869
|
hasBefore?: boolean;
|
|
2729
2870
|
/** Whether the table has dividers or not. */
|
|
@@ -2743,7 +2884,7 @@ declare const Table: Comp<TableProps, HTMLTableElement>;
|
|
|
2743
2884
|
/**
|
|
2744
2885
|
* Defines the props of the component.
|
|
2745
2886
|
*/
|
|
2746
|
-
interface TableBodyProps extends GenericProps {
|
|
2887
|
+
interface TableBodyProps extends GenericProps$1 {
|
|
2747
2888
|
/** Children */
|
|
2748
2889
|
children?: React.ReactNode;
|
|
2749
2890
|
}
|
|
@@ -2775,7 +2916,7 @@ type TableCellVariant = ValueOf<typeof TableCellVariant>;
|
|
|
2775
2916
|
/**
|
|
2776
2917
|
* Defines the props of the component.
|
|
2777
2918
|
*/
|
|
2778
|
-
interface TableCellProps extends GenericProps {
|
|
2919
|
+
interface TableCellProps extends GenericProps$1 {
|
|
2779
2920
|
/** Icon (SVG path).(thead only). */
|
|
2780
2921
|
icon?: string;
|
|
2781
2922
|
/** Whether the column is sortable or not (thead only). */
|
|
@@ -2801,7 +2942,7 @@ declare const TableCell: Comp<TableCellProps, HTMLTableCellElement>;
|
|
|
2801
2942
|
/**
|
|
2802
2943
|
* Defines the props of the component.
|
|
2803
2944
|
*/
|
|
2804
|
-
interface TableHeaderProps extends GenericProps {
|
|
2945
|
+
interface TableHeaderProps extends GenericProps$1 {
|
|
2805
2946
|
/** Children */
|
|
2806
2947
|
children?: React.ReactNode;
|
|
2807
2948
|
}
|
|
@@ -2817,7 +2958,7 @@ declare const TableHeader: Comp<TableHeaderProps, HTMLTableSectionElement>;
|
|
|
2817
2958
|
/**
|
|
2818
2959
|
* Defines the props of the component.
|
|
2819
2960
|
*/
|
|
2820
|
-
interface TableRowProps extends GenericProps {
|
|
2961
|
+
interface TableRowProps extends GenericProps$1 {
|
|
2821
2962
|
/** Whether the component is clickable or not. */
|
|
2822
2963
|
isClickable?: boolean;
|
|
2823
2964
|
/** Whether the component is disabled or not. */
|
|
@@ -2866,7 +3007,7 @@ declare enum TabListLayout {
|
|
|
2866
3007
|
/**
|
|
2867
3008
|
* Defines the props of the component.
|
|
2868
3009
|
*/
|
|
2869
|
-
interface TabListProps extends GenericProps, HasTheme {
|
|
3010
|
+
interface TabListProps extends GenericProps$1, HasTheme$1 {
|
|
2870
3011
|
/** ARIA label (purpose of the set of tabs). */
|
|
2871
3012
|
['aria-label']: string;
|
|
2872
3013
|
/** Tab list. */
|
|
@@ -2890,7 +3031,7 @@ declare const TabList: Comp<TabListProps, HTMLDivElement>;
|
|
|
2890
3031
|
/**
|
|
2891
3032
|
* Defines the props of the component.
|
|
2892
3033
|
*/
|
|
2893
|
-
interface TabProps extends GenericProps {
|
|
3034
|
+
interface TabProps extends GenericProps$1 {
|
|
2894
3035
|
/** Children are not supported. */
|
|
2895
3036
|
children?: never;
|
|
2896
3037
|
/** Icon (SVG path). */
|
|
@@ -2920,7 +3061,7 @@ declare const Tab: Comp<TabProps, HTMLButtonElement>;
|
|
|
2920
3061
|
/**
|
|
2921
3062
|
* Defines the props of the component.
|
|
2922
3063
|
*/
|
|
2923
|
-
interface TabPanelProps extends GenericProps {
|
|
3064
|
+
interface TabPanelProps extends GenericProps$1 {
|
|
2924
3065
|
/** Native id property */
|
|
2925
3066
|
id?: string;
|
|
2926
3067
|
/** Whether the tab is active or not. */
|
|
@@ -2942,7 +3083,7 @@ declare const TabPanel: Comp<TabPanelProps, HTMLDivElement>;
|
|
|
2942
3083
|
/**
|
|
2943
3084
|
* Defines the props of the component.
|
|
2944
3085
|
*/
|
|
2945
|
-
interface TextFieldProps extends GenericProps, HasTheme, HasAriaDisabled {
|
|
3086
|
+
interface TextFieldProps extends GenericProps$1, HasTheme$1, HasAriaDisabled {
|
|
2946
3087
|
/** Chip Group to be rendered before the main text input. */
|
|
2947
3088
|
chips?: ReactNode;
|
|
2948
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. */
|
|
@@ -3011,7 +3152,7 @@ type NativeInputProps = Omit<ComponentProps<'input'>, 'value' | 'onChange'>;
|
|
|
3011
3152
|
/**
|
|
3012
3153
|
* Defines the props of the component.
|
|
3013
3154
|
*/
|
|
3014
|
-
interface RawInputTextProps extends NativeInputProps, HasTheme, HasClassName {
|
|
3155
|
+
interface RawInputTextProps extends NativeInputProps, HasTheme$1, HasClassName$1 {
|
|
3015
3156
|
value?: string;
|
|
3016
3157
|
onChange?: (value: string, name?: string, event?: SyntheticEvent) => void;
|
|
3017
3158
|
}
|
|
@@ -3025,7 +3166,7 @@ type NativeTextareaProps = ComponentProps<'textarea'>;
|
|
|
3025
3166
|
/**
|
|
3026
3167
|
* Defines the props of the component.
|
|
3027
3168
|
*/
|
|
3028
|
-
interface RawInputTextareaProps extends Omit<NativeTextareaProps, 'value' | 'onChange'>, HasTheme, HasClassName {
|
|
3169
|
+
interface RawInputTextareaProps extends Omit<NativeTextareaProps, 'value' | 'onChange'>, HasTheme$1, HasClassName$1 {
|
|
3029
3170
|
minimumRows?: number;
|
|
3030
3171
|
value?: string;
|
|
3031
3172
|
onChange?: (value: string, name?: string, event?: SyntheticEvent) => void;
|
|
@@ -3041,7 +3182,7 @@ declare const useFocusPointStyle: ({ image, aspectRatio, focusPoint, imgProps: {
|
|
|
3041
3182
|
/**
|
|
3042
3183
|
* Defines the props of the component.
|
|
3043
3184
|
*/
|
|
3044
|
-
interface ToolbarProps extends GenericProps {
|
|
3185
|
+
interface ToolbarProps extends GenericProps$1 {
|
|
3045
3186
|
/** After content (placed after the label). */
|
|
3046
3187
|
after?: ReactNode;
|
|
3047
3188
|
/** Before content (placed before the label). */
|
|
@@ -3065,7 +3206,7 @@ type TooltipPlacement = Extract<Placement, 'top' | 'right' | 'bottom' | 'left'>;
|
|
|
3065
3206
|
/**
|
|
3066
3207
|
* Defines the props of the component.
|
|
3067
3208
|
*/
|
|
3068
|
-
interface TooltipProps extends GenericProps, HasCloseMode {
|
|
3209
|
+
interface TooltipProps extends GenericProps$1, HasCloseMode {
|
|
3069
3210
|
/** Anchor (element on which we activate the tooltip). */
|
|
3070
3211
|
children: ReactNode;
|
|
3071
3212
|
/** Delay (in ms) before closing the tooltip. */
|
|
@@ -3100,7 +3241,7 @@ type UploaderVariant = ValueOf<typeof UploaderVariant>;
|
|
|
3100
3241
|
/**
|
|
3101
3242
|
* Uploader sizes.
|
|
3102
3243
|
*/
|
|
3103
|
-
type UploaderSize = Extract<Size, 'xl' | 'xxl'>;
|
|
3244
|
+
type UploaderSize = Extract<Size$1, 'xl' | 'xxl'>;
|
|
3104
3245
|
/**
|
|
3105
3246
|
* Extend native HTML input props with specialized `onChange` providing the a `File` array.
|
|
3106
3247
|
*/
|
|
@@ -3110,7 +3251,7 @@ interface FileInputProps extends Omit<React__default.ComponentProps<'input'>, 'o
|
|
|
3110
3251
|
/**
|
|
3111
3252
|
* Defines the props of the component.
|
|
3112
3253
|
*/
|
|
3113
|
-
interface UploaderProps extends GenericProps, HasTheme, HasAriaDisabled {
|
|
3254
|
+
interface UploaderProps extends GenericProps$1, HasTheme$1, HasAriaDisabled {
|
|
3114
3255
|
/** Image aspect ratio. */
|
|
3115
3256
|
aspectRatio?: AspectRatio;
|
|
3116
3257
|
/** Icon (SVG path). */
|
|
@@ -3140,11 +3281,11 @@ declare const Uploader: Comp<UploaderProps, HTMLElement>;
|
|
|
3140
3281
|
/**
|
|
3141
3282
|
* User block sizes.
|
|
3142
3283
|
*/
|
|
3143
|
-
type UserBlockSize = Extract<Size, 'xs' | 's' | 'm' | 'l'>;
|
|
3284
|
+
type UserBlockSize = Extract<Size$1, 'xs' | 's' | 'm' | 'l'>;
|
|
3144
3285
|
/**
|
|
3145
3286
|
* Defines the props of the component.
|
|
3146
3287
|
*/
|
|
3147
|
-
interface UserBlockProps extends GenericProps, HasTheme {
|
|
3288
|
+
interface UserBlockProps extends GenericProps$1, HasTheme$1 {
|
|
3148
3289
|
/** Props to pass to the avatar. */
|
|
3149
3290
|
avatarProps?: Omit<AvatarProps, 'alt'>;
|
|
3150
3291
|
/** Additional fields used to describe the user. */
|
|
@@ -3158,7 +3299,7 @@ interface UserBlockProps extends GenericProps, HasTheme {
|
|
|
3158
3299
|
/** User name. */
|
|
3159
3300
|
name?: React__default.ReactNode;
|
|
3160
3301
|
/** Props to pass to the name block. */
|
|
3161
|
-
nameProps?: GenericProps;
|
|
3302
|
+
nameProps?: GenericProps$1;
|
|
3162
3303
|
/** Orientation. */
|
|
3163
3304
|
orientation?: Orientation;
|
|
3164
3305
|
/** Simple action toolbar content. */
|
|
@@ -3185,7 +3326,7 @@ interface UserBlockProps extends GenericProps, HasTheme {
|
|
|
3185
3326
|
*/
|
|
3186
3327
|
declare const UserBlock: Comp<UserBlockProps, HTMLDivElement>;
|
|
3187
3328
|
|
|
3188
|
-
type ThemeContextValue = Theme | undefined;
|
|
3329
|
+
type ThemeContextValue = Theme$1 | undefined;
|
|
3189
3330
|
/** Provide a theme context to all children. */
|
|
3190
3331
|
declare const ThemeProvider: React__default.FC<{
|
|
3191
3332
|
value: ThemeContextValue;
|
|
@@ -3195,4 +3336,4 @@ declare const ThemeProvider: React__default.FC<{
|
|
|
3195
3336
|
declare function useTheme(): ThemeContextValue;
|
|
3196
3337
|
|
|
3197
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 };
|
|
3198
|
-
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,
|
|
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 };
|