@lumx/react 4.0.1-alpha.7 → 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 +275 -482
- package/index.js +321 -688
- package/index.js.map +1 -1
- package/package.json +9 -9
- package/utils/index.d.ts +3 -2
- package/Falsy-e4faCDKK.d.ts +0 -7
package/index.d.ts
CHANGED
|
@@ -1,369 +1,11 @@
|
|
|
1
|
-
import {
|
|
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
|
+
export * from '@lumx/core/js/constants';
|
|
3
|
+
import * as _lumx_core_js_types 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
|
+
export * from '@lumx/core/js/types';
|
|
2
6
|
import * as React$1 from 'react';
|
|
3
7
|
import React__default, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, AriaAttributes, DetailedHTMLProps, ButtonHTMLAttributes, InputHTMLAttributes, RefObject, ImgHTMLAttributes, CSSProperties, SetStateAction, Key, ElementType, ComponentProps } from 'react';
|
|
4
8
|
|
|
5
|
-
/**
|
|
6
|
-
* The down key code.
|
|
7
|
-
*/
|
|
8
|
-
declare const DOWN_KEY_CODE = 40;
|
|
9
|
-
/**
|
|
10
|
-
* The enter/return key code.
|
|
11
|
-
*/
|
|
12
|
-
declare const ENTER_KEY_CODE = 13;
|
|
13
|
-
/**
|
|
14
|
-
* The space key code.
|
|
15
|
-
*/
|
|
16
|
-
declare const SPACE_KEY_CODE = 32;
|
|
17
|
-
/**
|
|
18
|
-
* The escape key code.
|
|
19
|
-
*/
|
|
20
|
-
declare const ESCAPE_KEY_CODE = 27;
|
|
21
|
-
/**
|
|
22
|
-
* The left key code.
|
|
23
|
-
*/
|
|
24
|
-
declare const LEFT_KEY_CODE = 37;
|
|
25
|
-
/**
|
|
26
|
-
* The right key code.
|
|
27
|
-
*/
|
|
28
|
-
declare const RIGHT_KEY_CODE = 39;
|
|
29
|
-
/**
|
|
30
|
-
* The tab key code.
|
|
31
|
-
*/
|
|
32
|
-
declare const TAB_KEY_CODE = 9;
|
|
33
|
-
/**
|
|
34
|
-
* The up key code.
|
|
35
|
-
*/
|
|
36
|
-
declare const UP_KEY_CODE = 38;
|
|
37
|
-
/**
|
|
38
|
-
* The up key code.
|
|
39
|
-
*/
|
|
40
|
-
declare const BACKSPACE_KEY_CODE = 8;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Animation duration constants. Take into consideration that if you change one of these variables,
|
|
44
|
-
* you need to update their scss counterpart as well
|
|
45
|
-
*/
|
|
46
|
-
declare const DIALOG_TRANSITION_DURATION = 400;
|
|
47
|
-
declare const EXPANSION_PANEL_TRANSITION_DURATION = 400;
|
|
48
|
-
declare const NOTIFICATION_TRANSITION_DURATION = 200;
|
|
49
|
-
declare const SLIDESHOW_TRANSITION_DURATION = 5000;
|
|
50
|
-
/**
|
|
51
|
-
* Delay on hover after which we open or close the tooltip.
|
|
52
|
-
* Only applies to devices supporting pointer hover.
|
|
53
|
-
*/
|
|
54
|
-
declare const TOOLTIP_HOVER_DELAY: {
|
|
55
|
-
open: number;
|
|
56
|
-
close: number;
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* Delay on long press after which we open or close the tooltip.
|
|
60
|
-
* Only applies to devices not supporting pointer hover.
|
|
61
|
-
*/
|
|
62
|
-
declare const TOOLTIP_LONG_PRESS_DELAY: {
|
|
63
|
-
open: number;
|
|
64
|
-
close: number;
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Callback function type alias (use for readability)
|
|
69
|
-
*/
|
|
70
|
-
type Callback = () => void;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Require either `aria-label` or `arial-labelledby` prop.
|
|
74
|
-
* If none are set, the order will prioritize `aria-labelledby` over `aria-label` as it
|
|
75
|
-
* needs a visible element.
|
|
76
|
-
*/
|
|
77
|
-
type HasAriaLabelOrLabelledBy<T = string | undefined> = T extends string ? {
|
|
78
|
-
/**
|
|
79
|
-
* The id of the element to use as title of the dialog. Can be within or out of the dialog.
|
|
80
|
-
* Although it is not recommended, aria-label can be used instead if no visible element is available.
|
|
81
|
-
*/
|
|
82
|
-
'aria-labelledby': T;
|
|
83
|
-
/** The label of the dialog. */
|
|
84
|
-
'aria-label'?: undefined;
|
|
85
|
-
} : {
|
|
86
|
-
'aria-label': string;
|
|
87
|
-
'aria-labelledby'?: undefined;
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
interface HasClassName {
|
|
91
|
-
/**
|
|
92
|
-
* Class name forwarded to the root element of the component.
|
|
93
|
-
*/
|
|
94
|
-
className?: string;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
interface HasCloseMode {
|
|
98
|
-
/**
|
|
99
|
-
* Choose how the children are hidden when closed
|
|
100
|
-
* ('hide' keeps the children in DOM but hide them, 'unmount' remove the children from the DOM).
|
|
101
|
-
*/
|
|
102
|
-
closeMode?: 'hide' | 'unmount';
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
interface HasTheme {
|
|
106
|
-
/**
|
|
107
|
-
* Theme adapting the component to light or dark background.
|
|
108
|
-
*/
|
|
109
|
-
theme?: Theme;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Define a generic props types.
|
|
114
|
-
*/
|
|
115
|
-
interface GenericProps extends HasClassName {
|
|
116
|
-
/**
|
|
117
|
-
* Any prop (particularly any supported prop for a HTML element).
|
|
118
|
-
*/
|
|
119
|
-
[propName: string]: any;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
type JSXElement = boolean | number | string | JSX.Element | object | undefined | null;
|
|
123
|
-
|
|
124
|
-
/** Union type of all heading elements */
|
|
125
|
-
type HeadingElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* A point coordinate in 2D space
|
|
129
|
-
*/
|
|
130
|
-
type Point = {
|
|
131
|
-
x: number;
|
|
132
|
-
y: number;
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
/** Predicate function type */
|
|
136
|
-
type Predicate<T> = (t: T) => boolean;
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Rectangle size
|
|
140
|
-
*/
|
|
141
|
-
type RectSize = {
|
|
142
|
-
width: number;
|
|
143
|
-
height: number;
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
/** Union type of all text elements */
|
|
147
|
-
type TextElement = 'span' | 'p' | HeadingElement;
|
|
148
|
-
|
|
149
|
-
/** Get types of the values of a record. */
|
|
150
|
-
type ValueOf<T extends Record<any, any>> = T[keyof T];
|
|
151
|
-
|
|
152
|
-
/** Transform a string literal into kebab case */
|
|
153
|
-
type KebabCase<S> = S extends `${infer C}${infer T}` ? T extends Uncapitalize<T> ? `${Uncapitalize<C>}${KebabCase<T>}` : `${Uncapitalize<C>}-${KebabCase<T>}` : S;
|
|
154
|
-
|
|
155
|
-
/** Transform the component name into the lumx class name. */
|
|
156
|
-
type LumxClassName<TComponentName extends string> = `lumx-${KebabCase<TComponentName>}`;
|
|
157
|
-
|
|
158
|
-
type Direction = 'top' | 'right' | 'bottom' | 'left' | 'vertical' | 'horizontal' | 'all';
|
|
159
|
-
|
|
160
|
-
type Spacing = 'margin' | 'padding';
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Alignments.
|
|
164
|
-
*/
|
|
165
|
-
declare const Alignment: {
|
|
166
|
-
readonly bottom: "bottom";
|
|
167
|
-
readonly center: "center";
|
|
168
|
-
readonly end: "end";
|
|
169
|
-
readonly left: "left";
|
|
170
|
-
readonly right: "right";
|
|
171
|
-
readonly spaceAround: "space-around";
|
|
172
|
-
readonly spaceBetween: "space-between";
|
|
173
|
-
readonly spaceEvenly: "space-evenly";
|
|
174
|
-
readonly start: "start";
|
|
175
|
-
readonly top: "top";
|
|
176
|
-
};
|
|
177
|
-
type Alignment = ValueOf<typeof Alignment>;
|
|
178
|
-
type VerticalAlignment = Extract<Alignment, 'top' | 'center' | 'bottom'>;
|
|
179
|
-
type HorizontalAlignment = Extract<Alignment, 'right' | 'center' | 'left'>;
|
|
180
|
-
declare const Theme: {
|
|
181
|
-
readonly light: "light";
|
|
182
|
-
readonly dark: "dark";
|
|
183
|
-
};
|
|
184
|
-
type Theme = ValueOf<typeof Theme>;
|
|
185
|
-
declare const Size: {
|
|
186
|
-
readonly xxs: "xxs";
|
|
187
|
-
readonly xs: "xs";
|
|
188
|
-
readonly s: "s";
|
|
189
|
-
readonly m: "m";
|
|
190
|
-
readonly l: "l";
|
|
191
|
-
readonly xl: "xl";
|
|
192
|
-
readonly xxl: "xxl";
|
|
193
|
-
readonly tiny: "tiny";
|
|
194
|
-
readonly regular: "regular";
|
|
195
|
-
readonly medium: "medium";
|
|
196
|
-
readonly big: "big";
|
|
197
|
-
readonly huge: "huge";
|
|
198
|
-
};
|
|
199
|
-
type Size = ValueOf<typeof Size>;
|
|
200
|
-
type GlobalSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
201
|
-
declare const Orientation: {
|
|
202
|
-
readonly horizontal: "horizontal";
|
|
203
|
-
readonly vertical: "vertical";
|
|
204
|
-
};
|
|
205
|
-
type Orientation = ValueOf<typeof Orientation>;
|
|
206
|
-
declare const Emphasis: {
|
|
207
|
-
readonly low: "low";
|
|
208
|
-
readonly medium: "medium";
|
|
209
|
-
readonly high: "high";
|
|
210
|
-
};
|
|
211
|
-
type Emphasis = ValueOf<typeof Emphasis>;
|
|
212
|
-
/**
|
|
213
|
-
* List of typographies that can't be customized.
|
|
214
|
-
*/
|
|
215
|
-
declare const TypographyInterface: {
|
|
216
|
-
readonly overline: "overline";
|
|
217
|
-
readonly caption: "caption";
|
|
218
|
-
readonly body1: "body1";
|
|
219
|
-
readonly body2: "body2";
|
|
220
|
-
readonly subtitle1: "subtitle1";
|
|
221
|
-
readonly subtitle2: "subtitle2";
|
|
222
|
-
readonly title: "title";
|
|
223
|
-
readonly headline: "headline";
|
|
224
|
-
readonly display1: "display1";
|
|
225
|
-
};
|
|
226
|
-
type TypographyInterface = ValueOf<typeof TypographyInterface>;
|
|
227
|
-
/**
|
|
228
|
-
* List of title typographies that can be customized (via CSS variables).
|
|
229
|
-
*/
|
|
230
|
-
declare const TypographyTitleCustom: {
|
|
231
|
-
readonly title1: "custom-title1";
|
|
232
|
-
readonly title2: "custom-title2";
|
|
233
|
-
readonly title3: "custom-title3";
|
|
234
|
-
readonly title4: "custom-title4";
|
|
235
|
-
readonly title5: "custom-title5";
|
|
236
|
-
readonly title6: "custom-title6";
|
|
237
|
-
};
|
|
238
|
-
type TypographyTitleCustom = ValueOf<typeof TypographyTitleCustom>;
|
|
239
|
-
/**
|
|
240
|
-
* List of typographies that can be customized (via CSS variables).
|
|
241
|
-
*/
|
|
242
|
-
declare const TypographyCustom: {
|
|
243
|
-
readonly intro: "custom-intro";
|
|
244
|
-
readonly 'body-large': "custom-body-large";
|
|
245
|
-
readonly body: "custom-body";
|
|
246
|
-
readonly quote: "custom-quote";
|
|
247
|
-
readonly 'publish-info': "custom-publish-info";
|
|
248
|
-
readonly button: "custom-button";
|
|
249
|
-
readonly title1: "custom-title1";
|
|
250
|
-
readonly title2: "custom-title2";
|
|
251
|
-
readonly title3: "custom-title3";
|
|
252
|
-
readonly title4: "custom-title4";
|
|
253
|
-
readonly title5: "custom-title5";
|
|
254
|
-
readonly title6: "custom-title6";
|
|
255
|
-
};
|
|
256
|
-
type TypographyCustom = ValueOf<typeof TypographyCustom>;
|
|
257
|
-
/**
|
|
258
|
-
* List of all typographies.
|
|
259
|
-
*/
|
|
260
|
-
declare const Typography: {
|
|
261
|
-
readonly custom: {
|
|
262
|
-
readonly intro: "custom-intro";
|
|
263
|
-
readonly 'body-large': "custom-body-large";
|
|
264
|
-
readonly body: "custom-body";
|
|
265
|
-
readonly quote: "custom-quote";
|
|
266
|
-
readonly 'publish-info': "custom-publish-info";
|
|
267
|
-
readonly button: "custom-button";
|
|
268
|
-
readonly title1: "custom-title1";
|
|
269
|
-
readonly title2: "custom-title2";
|
|
270
|
-
readonly title3: "custom-title3";
|
|
271
|
-
readonly title4: "custom-title4";
|
|
272
|
-
readonly title5: "custom-title5";
|
|
273
|
-
readonly title6: "custom-title6";
|
|
274
|
-
};
|
|
275
|
-
readonly overline: "overline";
|
|
276
|
-
readonly caption: "caption";
|
|
277
|
-
readonly body1: "body1";
|
|
278
|
-
readonly body2: "body2";
|
|
279
|
-
readonly subtitle1: "subtitle1";
|
|
280
|
-
readonly subtitle2: "subtitle2";
|
|
281
|
-
readonly title: "title";
|
|
282
|
-
readonly headline: "headline";
|
|
283
|
-
readonly display1: "display1";
|
|
284
|
-
};
|
|
285
|
-
type Typography = TypographyInterface | TypographyCustom;
|
|
286
|
-
/**
|
|
287
|
-
* All available aspect ratios.
|
|
288
|
-
*/
|
|
289
|
-
declare const AspectRatio: {
|
|
290
|
-
/** Intrinsic content ratio. */
|
|
291
|
-
readonly original: "original";
|
|
292
|
-
/** Ratio 3:1 */
|
|
293
|
-
readonly panoramic: "panoramic";
|
|
294
|
-
/** Ratio 16:9 */
|
|
295
|
-
readonly wide: "wide";
|
|
296
|
-
/** Ratio 3:2 */
|
|
297
|
-
readonly horizontal: "horizontal";
|
|
298
|
-
/** Ratio 3:2 */
|
|
299
|
-
readonly vertical: "vertical";
|
|
300
|
-
/** Ratio 1:1 */
|
|
301
|
-
readonly square: "square";
|
|
302
|
-
/** Ratio constrained by the parent. */
|
|
303
|
-
readonly free: "free";
|
|
304
|
-
};
|
|
305
|
-
type AspectRatio = ValueOf<typeof AspectRatio>;
|
|
306
|
-
/**
|
|
307
|
-
* Semantic info about the purpose of the component
|
|
308
|
-
*/
|
|
309
|
-
declare const Kind: {
|
|
310
|
-
readonly info: "info";
|
|
311
|
-
readonly success: "success";
|
|
312
|
-
readonly warning: "warning";
|
|
313
|
-
readonly error: "error";
|
|
314
|
-
};
|
|
315
|
-
type Kind = ValueOf<typeof Kind>;
|
|
316
|
-
/**
|
|
317
|
-
* All available white-space values
|
|
318
|
-
* */
|
|
319
|
-
declare const WhiteSpace: {
|
|
320
|
-
normal: string;
|
|
321
|
-
nowrap: string;
|
|
322
|
-
pre: string;
|
|
323
|
-
'pre-wrap': string;
|
|
324
|
-
'pre-line': string;
|
|
325
|
-
'break-spaces': string;
|
|
326
|
-
};
|
|
327
|
-
type WhiteSpace = ValueOf<typeof WhiteSpace>;
|
|
328
|
-
/**
|
|
329
|
-
* See SCSS variable $lumx-color-palette
|
|
330
|
-
*/
|
|
331
|
-
declare const ColorPalette: {
|
|
332
|
-
readonly primary: "primary";
|
|
333
|
-
readonly secondary: "secondary";
|
|
334
|
-
readonly blue: "blue";
|
|
335
|
-
readonly dark: "dark";
|
|
336
|
-
readonly green: "green";
|
|
337
|
-
readonly yellow: "yellow";
|
|
338
|
-
readonly red: "red";
|
|
339
|
-
readonly light: "light";
|
|
340
|
-
readonly grey: "grey";
|
|
341
|
-
};
|
|
342
|
-
type ColorPalette = ValueOf<typeof ColorPalette>;
|
|
343
|
-
type Color = ColorPalette | string;
|
|
344
|
-
/**
|
|
345
|
-
* See SCSS variable $lumx-color-variants
|
|
346
|
-
*/
|
|
347
|
-
declare const ColorVariant: {
|
|
348
|
-
readonly D1: "D1";
|
|
349
|
-
readonly D2: "D2";
|
|
350
|
-
readonly L1: "L1";
|
|
351
|
-
readonly L2: "L2";
|
|
352
|
-
readonly L3: "L3";
|
|
353
|
-
readonly L4: "L4";
|
|
354
|
-
readonly L5: "L5";
|
|
355
|
-
readonly L6: "L6";
|
|
356
|
-
readonly N: "N";
|
|
357
|
-
};
|
|
358
|
-
type ColorVariant = ValueOf<typeof ColorVariant>;
|
|
359
|
-
/** ColorPalette with all possible color variant combination */
|
|
360
|
-
type ColorWithVariants = ColorPalette | Exclude<`${ColorPalette}-${ColorVariant}`, `light-D${number}` | `dark-D${number}`>;
|
|
361
|
-
|
|
362
|
-
/**
|
|
363
|
-
* Visually hidden a11y utility class name
|
|
364
|
-
*/
|
|
365
|
-
declare const VISUALLY_HIDDEN = "visually-hidden";
|
|
366
|
-
|
|
367
9
|
/** LumX Component Type. */
|
|
368
10
|
type Comp<P, T = HTMLElement> = {
|
|
369
11
|
(props: P & {
|
|
@@ -395,7 +37,7 @@ type HasRequiredLinkHref<E> = E extends 'a' ? {
|
|
|
395
37
|
|
|
396
38
|
interface AlertDialogProps extends Omit<DialogProps, 'header' | 'footer'> {
|
|
397
39
|
/** Message variant. */
|
|
398
|
-
kind?: Kind;
|
|
40
|
+
kind?: Kind$1;
|
|
399
41
|
/** Dialog title. */
|
|
400
42
|
title?: string;
|
|
401
43
|
/** Props forwarded to the confirm button */
|
|
@@ -430,7 +72,7 @@ declare const AlertDialog: Comp<AlertDialogProps, HTMLDivElement>;
|
|
|
430
72
|
/**
|
|
431
73
|
* Defines the props of the component.
|
|
432
74
|
*/
|
|
433
|
-
interface AutocompleteProps extends GenericProps, HasTheme {
|
|
75
|
+
interface AutocompleteProps extends GenericProps$1, HasTheme$1 {
|
|
434
76
|
/**
|
|
435
77
|
* Whether the suggestions list should display anchored to the input or to the wrapper.
|
|
436
78
|
* @see {@link DropdownProps#anchorToInput}
|
|
@@ -619,11 +261,11 @@ declare const AutocompleteMultiple: Comp<AutocompleteMultipleProps, HTMLDivEleme
|
|
|
619
261
|
/**
|
|
620
262
|
* Avatar sizes.
|
|
621
263
|
*/
|
|
622
|
-
type AvatarSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
264
|
+
type AvatarSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
623
265
|
/**
|
|
624
266
|
* Defines the props of the component.
|
|
625
267
|
*/
|
|
626
|
-
interface AvatarProps extends GenericProps, HasTheme {
|
|
268
|
+
interface AvatarProps extends GenericProps$1, HasTheme$1 {
|
|
627
269
|
/** Action toolbar content. */
|
|
628
270
|
actions?: ReactNode;
|
|
629
271
|
/** Image alternative text. */
|
|
@@ -657,11 +299,11 @@ declare const Avatar: Comp<AvatarProps, HTMLDivElement>;
|
|
|
657
299
|
/**
|
|
658
300
|
* Defines the props of the component.
|
|
659
301
|
*/
|
|
660
|
-
interface BadgeProps extends GenericProps {
|
|
302
|
+
interface BadgeProps extends GenericProps$1 {
|
|
661
303
|
/** Badge content. */
|
|
662
304
|
children?: ReactNode;
|
|
663
305
|
/** Color variant. */
|
|
664
|
-
color?: ColorPalette;
|
|
306
|
+
color?: ColorPalette$1;
|
|
665
307
|
}
|
|
666
308
|
/**
|
|
667
309
|
* Badge component.
|
|
@@ -672,7 +314,7 @@ interface BadgeProps extends GenericProps {
|
|
|
672
314
|
*/
|
|
673
315
|
declare const Badge: Comp<BadgeProps, HTMLDivElement>;
|
|
674
316
|
|
|
675
|
-
interface BadgeWrapperProps extends GenericProps {
|
|
317
|
+
interface BadgeWrapperProps extends GenericProps$1 {
|
|
676
318
|
/** Badge. */
|
|
677
319
|
badge: ReactElement;
|
|
678
320
|
/** Node to display the badge on */
|
|
@@ -689,10 +331,10 @@ type HTMLButtonProps = DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>
|
|
|
689
331
|
/**
|
|
690
332
|
* Button size definition.
|
|
691
333
|
*/
|
|
692
|
-
type ButtonSize = Extract<Size, 's' | 'm'>;
|
|
693
|
-
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 {
|
|
694
336
|
/** Color variant. */
|
|
695
|
-
color?: ColorPalette;
|
|
337
|
+
color?: ColorPalette$1;
|
|
696
338
|
/** Emphasis variant. */
|
|
697
339
|
emphasis?: Emphasis;
|
|
698
340
|
/** Whether or not the button has a background color in low emphasis. */
|
|
@@ -785,7 +427,7 @@ declare const IconButton: Comp<IconButtonProps, HTMLButtonElement>;
|
|
|
785
427
|
/**
|
|
786
428
|
* Defines the props of the component
|
|
787
429
|
*/
|
|
788
|
-
interface ButtonGroupProps extends GenericProps {
|
|
430
|
+
interface ButtonGroupProps extends GenericProps$1 {
|
|
789
431
|
/**
|
|
790
432
|
* Children
|
|
791
433
|
*/
|
|
@@ -803,7 +445,7 @@ declare const ButtonGroup: Comp<ButtonGroupProps, HTMLDivElement>;
|
|
|
803
445
|
/**
|
|
804
446
|
* Defines the props of the component.
|
|
805
447
|
*/
|
|
806
|
-
interface CheckboxProps extends GenericProps, HasTheme, HasAriaDisabled {
|
|
448
|
+
interface CheckboxProps extends GenericProps$1, HasTheme$1, HasAriaDisabled {
|
|
807
449
|
/** Helper text. */
|
|
808
450
|
helper?: string;
|
|
809
451
|
/** Native input id property. */
|
|
@@ -837,17 +479,17 @@ declare const Checkbox: Comp<CheckboxProps, HTMLDivElement>;
|
|
|
837
479
|
/**
|
|
838
480
|
* Chip sizes.
|
|
839
481
|
*/
|
|
840
|
-
type ChipSize = Extract<Size, 's' | 'm'>;
|
|
482
|
+
type ChipSize = Extract<Size$1, 's' | 'm'>;
|
|
841
483
|
/**
|
|
842
484
|
* Defines the props of the component.
|
|
843
485
|
*/
|
|
844
|
-
interface ChipProps extends GenericProps, HasTheme, HasAriaDisabled {
|
|
486
|
+
interface ChipProps extends GenericProps$1, HasTheme$1, HasAriaDisabled {
|
|
845
487
|
/** A component to be rendered after the content. */
|
|
846
488
|
after?: ReactNode;
|
|
847
489
|
/** A component to be rendered before the content. */
|
|
848
490
|
before?: ReactNode;
|
|
849
491
|
/** Color variant. */
|
|
850
|
-
color?: ColorPalette;
|
|
492
|
+
color?: ColorPalette$1;
|
|
851
493
|
/** Whether the component is clickable or not. */
|
|
852
494
|
isClickable?: boolean;
|
|
853
495
|
/** Whether the component is disabled or not. */
|
|
@@ -887,7 +529,7 @@ type useChipGroupNavigationType<C = any> = (chips: C[], onChipDeleted: (chip: C)
|
|
|
887
529
|
/**
|
|
888
530
|
* Defines the props of the component.
|
|
889
531
|
*/
|
|
890
|
-
interface ChipGroupProps extends GenericProps {
|
|
532
|
+
interface ChipGroupProps extends GenericProps$1 {
|
|
891
533
|
/**
|
|
892
534
|
* Chip horizontal alignment.
|
|
893
535
|
* @deprecated
|
|
@@ -911,7 +553,7 @@ type CommentBlockVariant = ValueOf<typeof CommentBlockVariant>;
|
|
|
911
553
|
/**
|
|
912
554
|
* Defines the props of the component.
|
|
913
555
|
*/
|
|
914
|
-
interface CommentBlockProps extends GenericProps, HasTheme {
|
|
556
|
+
interface CommentBlockProps extends GenericProps$1, HasTheme$1 {
|
|
915
557
|
/** Action toolbar content. */
|
|
916
558
|
actions?: ReactNode;
|
|
917
559
|
/** Props to pass to the avatar. */
|
|
@@ -964,7 +606,7 @@ declare const CommentBlock: Comp<CommentBlockProps, HTMLDivElement>;
|
|
|
964
606
|
/**
|
|
965
607
|
* Defines the props of the component.
|
|
966
608
|
*/
|
|
967
|
-
interface DatePickerProps extends GenericProps {
|
|
609
|
+
interface DatePickerProps extends GenericProps$1 {
|
|
968
610
|
/** Default month. */
|
|
969
611
|
defaultMonth?: Date;
|
|
970
612
|
/** Locale (language or region) to use. */
|
|
@@ -1019,7 +661,7 @@ declare const DatePickerControlled: Comp<DatePickerControlledProps, HTMLDivEleme
|
|
|
1019
661
|
/**
|
|
1020
662
|
* Defines the props of the component.
|
|
1021
663
|
*/
|
|
1022
|
-
interface DatePickerFieldProps extends Omit<TextFieldProps, 'value' | 'onChange'>, GenericProps {
|
|
664
|
+
interface DatePickerFieldProps extends Omit<TextFieldProps, 'value' | 'onChange'>, GenericProps$1 {
|
|
1023
665
|
/** Default month. */
|
|
1024
666
|
defaultMonth?: Date;
|
|
1025
667
|
/** Locale (language or region) to use. */
|
|
@@ -1049,7 +691,7 @@ declare const DatePickerField: Comp<DatePickerFieldProps, HTMLDivElement>;
|
|
|
1049
691
|
/**
|
|
1050
692
|
* Defines the props of the component.
|
|
1051
693
|
*/
|
|
1052
|
-
interface DialogProps extends GenericProps {
|
|
694
|
+
interface DialogProps extends GenericProps$1 {
|
|
1053
695
|
/** Footer content. */
|
|
1054
696
|
footer?: ReactNode;
|
|
1055
697
|
/** Whether the divider between the dialog content and the footer is always displayed (instead of showing it on scroll). */
|
|
@@ -1079,7 +721,7 @@ interface DialogProps extends GenericProps {
|
|
|
1079
721
|
/** Z-axis position. */
|
|
1080
722
|
zIndex?: number;
|
|
1081
723
|
/** Z-axis position. */
|
|
1082
|
-
dialogProps?: GenericProps;
|
|
724
|
+
dialogProps?: GenericProps$1;
|
|
1083
725
|
/** On close callback. */
|
|
1084
726
|
onClose?(): void;
|
|
1085
727
|
/** Callback called when the open animation starts and the close animation finishes. */
|
|
@@ -1089,7 +731,7 @@ interface DialogProps extends GenericProps {
|
|
|
1089
731
|
/** Children */
|
|
1090
732
|
children?: React__default.ReactNode;
|
|
1091
733
|
}
|
|
1092
|
-
type DialogSizes = Extract<Size, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
734
|
+
type DialogSizes = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
1093
735
|
/**
|
|
1094
736
|
* Dialog component.
|
|
1095
737
|
*
|
|
@@ -1102,7 +744,7 @@ declare const Dialog: Comp<DialogProps, HTMLDivElement>;
|
|
|
1102
744
|
/**
|
|
1103
745
|
* Defines the props of the component.
|
|
1104
746
|
*/
|
|
1105
|
-
interface DividerProps extends GenericProps, HasTheme {
|
|
747
|
+
interface DividerProps extends GenericProps$1, HasTheme$1 {
|
|
1106
748
|
}
|
|
1107
749
|
/**
|
|
1108
750
|
* Divider component.
|
|
@@ -1116,7 +758,7 @@ declare const Divider: Comp<DividerProps, HTMLHRElement>;
|
|
|
1116
758
|
/**
|
|
1117
759
|
* Defines the props of the component.
|
|
1118
760
|
*/
|
|
1119
|
-
interface DragHandleProps extends GenericProps, HasTheme {
|
|
761
|
+
interface DragHandleProps extends GenericProps$1, HasTheme$1 {
|
|
1120
762
|
}
|
|
1121
763
|
/**
|
|
1122
764
|
* DragHandle component.
|
|
@@ -1174,7 +816,7 @@ type FitAnchorWidth = ValueOf<typeof FitAnchorWidth>;
|
|
|
1174
816
|
/**
|
|
1175
817
|
* Defines the props of the component.
|
|
1176
818
|
*/
|
|
1177
|
-
interface PopoverProps extends GenericProps, HasTheme {
|
|
819
|
+
interface PopoverProps extends GenericProps$1, HasTheme$1 {
|
|
1178
820
|
/** Reference to the DOM element used to set the position of the popover. */
|
|
1179
821
|
anchorRef: React.RefObject<HTMLElement>;
|
|
1180
822
|
/** Customize the root element. (Must accept ref forwarding and props forwarding!). */
|
|
@@ -1235,7 +877,7 @@ declare const Popover: Comp<PopoverProps, HTMLDivElement>;
|
|
|
1235
877
|
/**
|
|
1236
878
|
* Defines the props of the component.
|
|
1237
879
|
*/
|
|
1238
|
-
interface DropdownProps extends GenericProps {
|
|
880
|
+
interface DropdownProps extends GenericProps$1 {
|
|
1239
881
|
/**
|
|
1240
882
|
* Reference to the element around which the dropdown is placed.
|
|
1241
883
|
* @see {@link PopoverProps#anchorRef}
|
|
@@ -1316,7 +958,7 @@ declare const Dropdown: Comp<DropdownProps, HTMLDivElement>;
|
|
|
1316
958
|
/**
|
|
1317
959
|
* Defines the props of the component.
|
|
1318
960
|
*/
|
|
1319
|
-
interface ExpansionPanelProps extends GenericProps, HasCloseMode, HasTheme {
|
|
961
|
+
interface ExpansionPanelProps extends GenericProps$1, HasCloseMode, HasTheme$1 {
|
|
1320
962
|
/** Whether the expansion panel has a background. */
|
|
1321
963
|
hasBackground?: boolean;
|
|
1322
964
|
/** Whether the header has a divider. */
|
|
@@ -1345,9 +987,9 @@ interface ExpansionPanelProps extends GenericProps, HasCloseMode, HasTheme {
|
|
|
1345
987
|
*/
|
|
1346
988
|
declare const ExpansionPanel: Comp<ExpansionPanelProps, HTMLDivElement>;
|
|
1347
989
|
|
|
1348
|
-
interface FlagProps extends GenericProps, HasTheme {
|
|
990
|
+
interface FlagProps extends GenericProps$1, HasTheme$1 {
|
|
1349
991
|
/** Color of the component. */
|
|
1350
|
-
color?: ColorPalette;
|
|
992
|
+
color?: ColorPalette$1;
|
|
1351
993
|
/** Icon to use before the label. */
|
|
1352
994
|
icon?: string;
|
|
1353
995
|
/** Text label of the flag. */
|
|
@@ -1365,14 +1007,14 @@ interface FlagProps extends GenericProps, HasTheme {
|
|
|
1365
1007
|
declare const Flag: Comp<FlagProps, HTMLDivElement>;
|
|
1366
1008
|
|
|
1367
1009
|
type MarginAutoAlignment = Extract<Alignment, 'top' | 'bottom' | 'right' | 'left'>;
|
|
1368
|
-
type GapSize = Extract<Size, 'tiny' | 'regular' | 'medium' | 'big' | 'huge'>;
|
|
1010
|
+
type GapSize = Extract<Size$1, 'tiny' | 'regular' | 'medium' | 'big' | 'huge'>;
|
|
1369
1011
|
type SpaceAlignment = Extract<Alignment, 'space-between' | 'space-evenly' | 'space-around'>;
|
|
1370
1012
|
type FlexVerticalAlignment = VerticalAlignment | SpaceAlignment;
|
|
1371
1013
|
type FlexHorizontalAlignment = HorizontalAlignment | SpaceAlignment;
|
|
1372
1014
|
/**
|
|
1373
1015
|
* Defines the props of the component.
|
|
1374
1016
|
*/
|
|
1375
|
-
interface FlexBoxProps extends GenericProps {
|
|
1017
|
+
interface FlexBoxProps extends GenericProps$1 {
|
|
1376
1018
|
/** Customize the root element. */
|
|
1377
1019
|
as?: React.ElementType;
|
|
1378
1020
|
/** Children elements. */
|
|
@@ -1507,19 +1149,19 @@ declare const GenericBlock: GenericBlock;
|
|
|
1507
1149
|
/**
|
|
1508
1150
|
* Defines the props of the component.
|
|
1509
1151
|
*/
|
|
1510
|
-
interface TextProps extends GenericProps {
|
|
1152
|
+
interface TextProps extends GenericProps$1 {
|
|
1511
1153
|
/**
|
|
1512
1154
|
* Color variant.
|
|
1513
1155
|
*/
|
|
1514
|
-
color?: ColorWithVariants;
|
|
1156
|
+
color?: ColorWithVariants$1;
|
|
1515
1157
|
/**
|
|
1516
1158
|
* Lightened or darkened variant of the selected color.
|
|
1517
1159
|
*/
|
|
1518
|
-
colorVariant?: ColorVariant;
|
|
1160
|
+
colorVariant?: ColorVariant$1;
|
|
1519
1161
|
/**
|
|
1520
1162
|
* Typography variant.
|
|
1521
1163
|
*/
|
|
1522
|
-
typography?: Typography;
|
|
1164
|
+
typography?: Typography$1;
|
|
1523
1165
|
/**
|
|
1524
1166
|
* Custom component to render the text.
|
|
1525
1167
|
*/
|
|
@@ -1590,14 +1232,14 @@ declare const HeadingLevelProvider: React.FC<HeadingLevelProviderProps>;
|
|
|
1590
1232
|
|
|
1591
1233
|
declare const useHeadingLevel: () => {
|
|
1592
1234
|
level: number;
|
|
1593
|
-
headingElement: HeadingElement;
|
|
1235
|
+
headingElement: _lumx_core_js_types.HeadingElement;
|
|
1594
1236
|
};
|
|
1595
1237
|
|
|
1596
|
-
type GridGutterSize = Extract<Size, 'regular' | 'big' | 'huge'>;
|
|
1238
|
+
type GridGutterSize = Extract<Size$1, 'regular' | 'big' | 'huge'>;
|
|
1597
1239
|
/**
|
|
1598
1240
|
* Defines the props of the component.
|
|
1599
1241
|
*/
|
|
1600
|
-
interface GridProps extends GenericProps {
|
|
1242
|
+
interface GridProps extends GenericProps$1 {
|
|
1601
1243
|
/** Orientation. */
|
|
1602
1244
|
orientation?: Orientation;
|
|
1603
1245
|
/** Whether the children are wrapped or not. */
|
|
@@ -1624,7 +1266,7 @@ type Columns = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11'
|
|
|
1624
1266
|
/**
|
|
1625
1267
|
* Defines the props of the component.
|
|
1626
1268
|
*/
|
|
1627
|
-
interface GridItemProps extends GenericProps {
|
|
1269
|
+
interface GridItemProps extends GenericProps$1 {
|
|
1628
1270
|
/** Alignment. */
|
|
1629
1271
|
align?: Alignment;
|
|
1630
1272
|
/** Order. */
|
|
@@ -1643,11 +1285,11 @@ interface GridItemProps extends GenericProps {
|
|
|
1643
1285
|
*/
|
|
1644
1286
|
declare const GridItem: Comp<GridItemProps, HTMLDivElement>;
|
|
1645
1287
|
|
|
1646
|
-
type GridColumnGapSize = Extract<Size, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
1288
|
+
type GridColumnGapSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
1647
1289
|
/**
|
|
1648
1290
|
* Defines the props of the component.
|
|
1649
1291
|
*/
|
|
1650
|
-
interface GridColumnProps extends GenericProps {
|
|
1292
|
+
interface GridColumnProps extends GenericProps$1 {
|
|
1651
1293
|
/** Customize the root element. */
|
|
1652
1294
|
as?: React.ElementType;
|
|
1653
1295
|
/** Children elements. */
|
|
@@ -1670,6 +1312,157 @@ interface GridColumnProps extends GenericProps {
|
|
|
1670
1312
|
*/
|
|
1671
1313
|
declare const GridColumn: Comp<GridColumnProps, HTMLElement>;
|
|
1672
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
|
+
|
|
1673
1466
|
type IconSizes = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
1674
1467
|
/**
|
|
1675
1468
|
* Defines the props of the component.
|
|
@@ -1726,7 +1519,7 @@ declare const ThumbnailAspectRatio: Record<string, AspectRatio>;
|
|
|
1726
1519
|
/**
|
|
1727
1520
|
* Thumbnail sizes.
|
|
1728
1521
|
*/
|
|
1729
|
-
type ThumbnailSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
1522
|
+
type ThumbnailSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
1730
1523
|
/**
|
|
1731
1524
|
* Thumbnail variants.
|
|
1732
1525
|
*/
|
|
@@ -1748,7 +1541,7 @@ type ImgHTMLProps = ImgHTMLAttributes<HTMLImageElement>;
|
|
|
1748
1541
|
/**
|
|
1749
1542
|
* Defines the props of the component.
|
|
1750
1543
|
*/
|
|
1751
|
-
interface ThumbnailProps extends GenericProps, HasTheme {
|
|
1544
|
+
interface ThumbnailProps extends GenericProps$1, HasTheme$1 {
|
|
1752
1545
|
/** Alignment of the thumbnail in it's parent (requires flex parent). */
|
|
1753
1546
|
align?: HorizontalAlignment;
|
|
1754
1547
|
/** Image alternative text. */
|
|
@@ -1830,11 +1623,11 @@ type ImageBlockCaptionPosition = ValueOf<typeof ImageBlockCaptionPosition>;
|
|
|
1830
1623
|
/**
|
|
1831
1624
|
* Image block sizes.
|
|
1832
1625
|
*/
|
|
1833
|
-
type ImageBlockSize = Extract<Size, 'xl' | 'xxl'>;
|
|
1626
|
+
type ImageBlockSize = Extract<Size$1, 'xl' | 'xxl'>;
|
|
1834
1627
|
/**
|
|
1835
1628
|
* Defines the props of the component.
|
|
1836
1629
|
*/
|
|
1837
|
-
interface ImageBlockProps extends GenericProps, HasTheme, ImageCaptionMetadata {
|
|
1630
|
+
interface ImageBlockProps extends GenericProps$1, HasTheme$1, ImageCaptionMetadata {
|
|
1838
1631
|
/** Action toolbar content. */
|
|
1839
1632
|
actions?: ReactNode;
|
|
1840
1633
|
/** Alignment. */
|
|
@@ -1884,7 +1677,7 @@ type ForwardedProps = React.ComponentPropsWithoutRef<'div'>;
|
|
|
1884
1677
|
/**
|
|
1885
1678
|
* ImageLightbox component props
|
|
1886
1679
|
*/
|
|
1887
|
-
interface ImageLightboxProps extends HasClassName, ZoomButtonProps, ImagesProps, InheritedSlideShowProps, InheritedLightboxProps, ForwardedProps {
|
|
1680
|
+
interface ImageLightboxProps extends HasClassName$1, ZoomButtonProps, ImagesProps, InheritedSlideShowProps, InheritedLightboxProps, ForwardedProps {
|
|
1888
1681
|
}
|
|
1889
1682
|
|
|
1890
1683
|
/** Subset of the ImageLightboxProps managed by the useImageLightbox hook */
|
|
@@ -1926,19 +1719,19 @@ declare const ImageLightbox: Comp<ImageLightboxProps, HTMLDivElement> & {
|
|
|
1926
1719
|
/**
|
|
1927
1720
|
* Defines the props of the component.
|
|
1928
1721
|
*/
|
|
1929
|
-
interface InlineListProps extends GenericProps {
|
|
1722
|
+
interface InlineListProps extends GenericProps$1 {
|
|
1930
1723
|
/**
|
|
1931
1724
|
* Text color.
|
|
1932
1725
|
*/
|
|
1933
|
-
color?: ColorWithVariants;
|
|
1726
|
+
color?: ColorWithVariants$1;
|
|
1934
1727
|
/**
|
|
1935
1728
|
* Lightened or darkened variant of the selected color.
|
|
1936
1729
|
*/
|
|
1937
|
-
colorVariant?: ColorVariant;
|
|
1730
|
+
colorVariant?: ColorVariant$1;
|
|
1938
1731
|
/**
|
|
1939
1732
|
* Typography variant.
|
|
1940
1733
|
*/
|
|
1941
|
-
typography?: Typography;
|
|
1734
|
+
typography?: Typography$1;
|
|
1942
1735
|
/**
|
|
1943
1736
|
* Activate line wrap on overflow.
|
|
1944
1737
|
*/
|
|
@@ -1999,7 +1792,7 @@ declare const InputLabel: Comp<InputLabelProps, HTMLLabelElement>;
|
|
|
1999
1792
|
/**
|
|
2000
1793
|
* Defines the props of the component.
|
|
2001
1794
|
*/
|
|
2002
|
-
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'> {
|
|
2003
1796
|
/** Props to pass to the close button (minus those already set by the Lightbox props). */
|
|
2004
1797
|
closeButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis' | 'color'>;
|
|
2005
1798
|
/** Whether the component is open or not. */
|
|
@@ -2030,11 +1823,11 @@ type HTMLAnchorProps = React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAn
|
|
|
2030
1823
|
/**
|
|
2031
1824
|
* Defines the props of the component.
|
|
2032
1825
|
*/
|
|
2033
|
-
interface LinkProps extends GenericProps, HasAriaDisabled {
|
|
1826
|
+
interface LinkProps extends GenericProps$1, HasAriaDisabled {
|
|
2034
1827
|
/** Color variant. */
|
|
2035
|
-
color?: ColorWithVariants;
|
|
1828
|
+
color?: ColorWithVariants$1;
|
|
2036
1829
|
/** Lightened or darkened variant of the selected icon color. */
|
|
2037
|
-
colorVariant?: ColorVariant;
|
|
1830
|
+
colorVariant?: ColorVariant$1;
|
|
2038
1831
|
/** Link href. */
|
|
2039
1832
|
href?: HTMLAnchorProps['href'];
|
|
2040
1833
|
/** Whether the component is disabled or not. */
|
|
@@ -2054,7 +1847,7 @@ interface LinkProps extends GenericProps, HasAriaDisabled {
|
|
|
2054
1847
|
/** Link target. */
|
|
2055
1848
|
target?: HTMLAnchorProps['target'];
|
|
2056
1849
|
/** Typography variant. */
|
|
2057
|
-
typography?: Typography;
|
|
1850
|
+
typography?: Typography$1;
|
|
2058
1851
|
/** Children */
|
|
2059
1852
|
children?: React.ReactNode;
|
|
2060
1853
|
}
|
|
@@ -2070,7 +1863,7 @@ declare const Link: Comp<LinkProps, HTMLAnchorElement | HTMLButtonElement>;
|
|
|
2070
1863
|
/**
|
|
2071
1864
|
* Defines the props of the component.
|
|
2072
1865
|
*/
|
|
2073
|
-
interface LinkPreviewProps extends GenericProps, HasTheme {
|
|
1866
|
+
interface LinkPreviewProps extends GenericProps$1, HasTheme$1 {
|
|
2074
1867
|
/** Description. */
|
|
2075
1868
|
description?: string;
|
|
2076
1869
|
/** Link URL. */
|
|
@@ -2080,7 +1873,7 @@ interface LinkPreviewProps extends GenericProps, HasTheme {
|
|
|
2080
1873
|
/** Props to pass to the link (minus those already set by the LinkPreview props). */
|
|
2081
1874
|
linkProps?: Omit<LinkProps, 'color' | 'colorVariant' | 'href' | 'target'>;
|
|
2082
1875
|
/** Size variant. */
|
|
2083
|
-
size?: Extract<Size, 'regular' | 'big'>;
|
|
1876
|
+
size?: Extract<Size$1, 'regular' | 'big'>;
|
|
2084
1877
|
/** Thumbnail for the link preview. */
|
|
2085
1878
|
thumbnailProps?: ThumbnailProps;
|
|
2086
1879
|
/** Title. */
|
|
@@ -2113,7 +1906,7 @@ type useKeyboardListNavigationType = <I>(items: I[], ref: RefObject<HTMLElement>
|
|
|
2113
1906
|
/**
|
|
2114
1907
|
* Defines the props of the component.
|
|
2115
1908
|
*/
|
|
2116
|
-
interface ListProps extends GenericProps {
|
|
1909
|
+
interface ListProps extends GenericProps$1 {
|
|
2117
1910
|
/** List content (should be ListItem, ListSubheader or ListDivider). */
|
|
2118
1911
|
children: ReactNode;
|
|
2119
1912
|
/**
|
|
@@ -2122,7 +1915,7 @@ interface ListProps extends GenericProps {
|
|
|
2122
1915
|
*/
|
|
2123
1916
|
isClickable?: boolean;
|
|
2124
1917
|
/** Item padding size. */
|
|
2125
|
-
itemPadding?: Extract<Size, 'big' | 'huge'>;
|
|
1918
|
+
itemPadding?: Extract<Size$1, 'big' | 'huge'>;
|
|
2126
1919
|
/** Tab index of the list. Default to -1 */
|
|
2127
1920
|
tabIndex?: number;
|
|
2128
1921
|
/**
|
|
@@ -2138,11 +1931,11 @@ declare const List: Comp<ListProps, HTMLUListElement> & {
|
|
|
2138
1931
|
useKeyboardListNavigation: useKeyboardListNavigationType;
|
|
2139
1932
|
};
|
|
2140
1933
|
|
|
2141
|
-
type ListItemSize = Extract<Size, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
1934
|
+
type ListItemSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
2142
1935
|
/**
|
|
2143
1936
|
* Defines the props of the component.
|
|
2144
1937
|
*/
|
|
2145
|
-
interface ListItemProps extends GenericProps, HasAriaDisabled {
|
|
1938
|
+
interface ListItemProps extends GenericProps$1, HasAriaDisabled {
|
|
2146
1939
|
/** A component to be rendered after the content. */
|
|
2147
1940
|
after?: ReactNode;
|
|
2148
1941
|
/** A component to be rendered before the content. */
|
|
@@ -2185,7 +1978,7 @@ declare const ListItem: Comp<ListItemProps, HTMLLIElement>;
|
|
|
2185
1978
|
/**
|
|
2186
1979
|
* Defines the props of the component.
|
|
2187
1980
|
*/
|
|
2188
|
-
type ListDividerProps = GenericProps;
|
|
1981
|
+
type ListDividerProps = GenericProps$1;
|
|
2189
1982
|
/**
|
|
2190
1983
|
* ListDivider component.
|
|
2191
1984
|
*
|
|
@@ -2193,12 +1986,12 @@ type ListDividerProps = GenericProps;
|
|
|
2193
1986
|
* @param ref Component ref.
|
|
2194
1987
|
* @return React element.
|
|
2195
1988
|
*/
|
|
2196
|
-
declare const ListDivider: Comp<GenericProps, HTMLLIElement>;
|
|
1989
|
+
declare const ListDivider: Comp<GenericProps$1, HTMLLIElement>;
|
|
2197
1990
|
|
|
2198
1991
|
/**
|
|
2199
1992
|
* Defines the props of the component.
|
|
2200
1993
|
*/
|
|
2201
|
-
interface ListSubheaderProps extends GenericProps {
|
|
1994
|
+
interface ListSubheaderProps extends GenericProps$1 {
|
|
2202
1995
|
/** Content. */
|
|
2203
1996
|
children: string | ReactNode;
|
|
2204
1997
|
}
|
|
@@ -2214,13 +2007,13 @@ declare const ListSubheader: Comp<ListSubheaderProps, HTMLLIElement>;
|
|
|
2214
2007
|
/**
|
|
2215
2008
|
* Defines the props of the component.
|
|
2216
2009
|
*/
|
|
2217
|
-
interface MessageProps extends GenericProps {
|
|
2010
|
+
interface MessageProps extends GenericProps$1 {
|
|
2218
2011
|
/** Content. */
|
|
2219
2012
|
children?: ReactNode;
|
|
2220
2013
|
/** Whether the message has a background or not. */
|
|
2221
2014
|
hasBackground?: boolean;
|
|
2222
2015
|
/** Message variant. */
|
|
2223
|
-
kind?: Kind;
|
|
2016
|
+
kind?: Kind$1;
|
|
2224
2017
|
/** Message custom icon SVG path. */
|
|
2225
2018
|
icon?: string;
|
|
2226
2019
|
/**
|
|
@@ -2247,7 +2040,7 @@ declare const Message: Comp<MessageProps, HTMLDivElement>;
|
|
|
2247
2040
|
/**
|
|
2248
2041
|
* Defines the props of the component.
|
|
2249
2042
|
*/
|
|
2250
|
-
interface MosaicProps extends GenericProps, HasTheme {
|
|
2043
|
+
interface MosaicProps extends GenericProps$1, HasTheme$1 {
|
|
2251
2044
|
/** Thumbnails. */
|
|
2252
2045
|
thumbnails: ThumbnailProps[];
|
|
2253
2046
|
/** On image click callback. */
|
|
@@ -2262,7 +2055,7 @@ interface MosaicProps extends GenericProps, HasTheme {
|
|
|
2262
2055
|
*/
|
|
2263
2056
|
declare const Mosaic: Comp<MosaicProps, HTMLDivElement>;
|
|
2264
2057
|
|
|
2265
|
-
interface NavigationSectionProps extends React.ComponentPropsWithoutRef<'button'>, HasClassName {
|
|
2058
|
+
interface NavigationSectionProps extends React.ComponentPropsWithoutRef<'button'>, HasClassName$1 {
|
|
2266
2059
|
/** Items inside the section */
|
|
2267
2060
|
children: React.ReactNode;
|
|
2268
2061
|
/** Icon (SVG path). */
|
|
@@ -2282,14 +2075,14 @@ type BaseNavigationItemProps = {
|
|
|
2282
2075
|
};
|
|
2283
2076
|
declare const NavigationItem: (<E extends ElementType = "a">(props: React$1.PropsWithoutRef<React$1.ComponentProps<E>> & {
|
|
2284
2077
|
as?: E | undefined;
|
|
2285
|
-
} & HasTheme & HasClassName & BaseNavigationItemProps & HasRequiredLinkHref<E> & React$1.ComponentProps<E> & {
|
|
2078
|
+
} & HasTheme$1 & HasClassName$1 & BaseNavigationItemProps & HasRequiredLinkHref<E> & React$1.ComponentProps<E> & {
|
|
2286
2079
|
ref?: ComponentRef<E> | undefined;
|
|
2287
2080
|
}) => React$1.JSX.Element) & {
|
|
2288
2081
|
displayName: string;
|
|
2289
2082
|
className: "lumx-navigation-item";
|
|
2290
2083
|
};
|
|
2291
2084
|
|
|
2292
|
-
type NavigationProps = React.ComponentProps<'nav'> & HasClassName & HasTheme & {
|
|
2085
|
+
type NavigationProps = React.ComponentProps<'nav'> & HasClassName$1 & HasTheme$1 & {
|
|
2293
2086
|
/** Content of the navigation. These components should be of type NavigationItem to be rendered */
|
|
2294
2087
|
children?: React.ReactNode;
|
|
2295
2088
|
orientation?: Orientation;
|
|
@@ -2303,7 +2096,7 @@ declare const Navigation: Comp<NavigationProps, HTMLElement> & SubComponents;
|
|
|
2303
2096
|
/**
|
|
2304
2097
|
* Defines the props of the component.
|
|
2305
2098
|
*/
|
|
2306
|
-
interface NotificationProps extends GenericProps, HasTheme {
|
|
2099
|
+
interface NotificationProps extends GenericProps$1, HasTheme$1 {
|
|
2307
2100
|
/** Action button label. */
|
|
2308
2101
|
actionLabel?: string;
|
|
2309
2102
|
/** Content. */
|
|
@@ -2311,7 +2104,7 @@ interface NotificationProps extends GenericProps, HasTheme {
|
|
|
2311
2104
|
/** Whether the component is open or not. */
|
|
2312
2105
|
isOpen?: boolean;
|
|
2313
2106
|
/** Notification type. */
|
|
2314
|
-
type?: Kind;
|
|
2107
|
+
type?: Kind$1;
|
|
2315
2108
|
/** Z-axis position. */
|
|
2316
2109
|
zIndex?: number;
|
|
2317
2110
|
/** On action button click callback. */
|
|
@@ -2347,7 +2140,7 @@ declare const PopoverDialog: Comp<PopoverDialogProps, HTMLDivElement>;
|
|
|
2347
2140
|
/**
|
|
2348
2141
|
* Defines the props of the component.
|
|
2349
2142
|
*/
|
|
2350
|
-
interface PostBlockProps extends GenericProps, HasTheme {
|
|
2143
|
+
interface PostBlockProps extends GenericProps$1, HasTheme$1 {
|
|
2351
2144
|
/** Action toolbar content. */
|
|
2352
2145
|
actions?: ReactNode;
|
|
2353
2146
|
/** Attachment content. */
|
|
@@ -2391,7 +2184,7 @@ type ProgressVariant = ValueOf<typeof ProgressVariant>;
|
|
|
2391
2184
|
/**
|
|
2392
2185
|
* Defines the props of the component.
|
|
2393
2186
|
*/
|
|
2394
|
-
interface ProgressProps extends GenericProps, HasTheme {
|
|
2187
|
+
interface ProgressProps extends GenericProps$1, HasTheme$1 {
|
|
2395
2188
|
/** Progress variant. */
|
|
2396
2189
|
variant?: ProgressVariant;
|
|
2397
2190
|
}
|
|
@@ -2408,11 +2201,11 @@ declare const Progress: Comp<ProgressProps, HTMLDivElement>;
|
|
|
2408
2201
|
/**
|
|
2409
2202
|
* Progress sizes.
|
|
2410
2203
|
*/
|
|
2411
|
-
type ProgressCircularSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm'>;
|
|
2204
|
+
type ProgressCircularSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm'>;
|
|
2412
2205
|
/**
|
|
2413
2206
|
* Defines the props of the component.
|
|
2414
2207
|
*/
|
|
2415
|
-
interface ProgressCircularProps extends GenericProps, HasTheme {
|
|
2208
|
+
interface ProgressCircularProps extends GenericProps$1, HasTheme$1 {
|
|
2416
2209
|
/**
|
|
2417
2210
|
* Progress circular size.
|
|
2418
2211
|
*/
|
|
@@ -2432,7 +2225,7 @@ interface ProgressCircularProps extends GenericProps, HasTheme {
|
|
|
2432
2225
|
*/
|
|
2433
2226
|
declare const ProgressCircular: Comp<ProgressCircularProps, HTMLDivElement>;
|
|
2434
2227
|
|
|
2435
|
-
interface ProgressLinearProps extends GenericProps, HasTheme {
|
|
2228
|
+
interface ProgressLinearProps extends GenericProps$1, HasTheme$1 {
|
|
2436
2229
|
}
|
|
2437
2230
|
/**
|
|
2438
2231
|
* ProgressLinear component.
|
|
@@ -2471,7 +2264,7 @@ declare const ProgressTrackerProvider: React.FC<ProgressTrackerProviderProps>;
|
|
|
2471
2264
|
/**
|
|
2472
2265
|
* Defines the props of the component.
|
|
2473
2266
|
*/
|
|
2474
|
-
interface ProgressTrackerProps extends GenericProps {
|
|
2267
|
+
interface ProgressTrackerProps extends GenericProps$1 {
|
|
2475
2268
|
/** ARIA label (purpose of the set of steps). */
|
|
2476
2269
|
['aria-label']: string;
|
|
2477
2270
|
/** Step list. */
|
|
@@ -2491,7 +2284,7 @@ declare const ProgressTracker: Comp<ProgressTrackerProps, HTMLDivElement>;
|
|
|
2491
2284
|
/**
|
|
2492
2285
|
* Defines the props of the component.
|
|
2493
2286
|
*/
|
|
2494
|
-
interface ProgressTrackerStepProps extends GenericProps {
|
|
2287
|
+
interface ProgressTrackerStepProps extends GenericProps$1 {
|
|
2495
2288
|
/** Children are not supported. */
|
|
2496
2289
|
children?: never;
|
|
2497
2290
|
/** Whether the step should be in error state or not. */
|
|
@@ -2523,7 +2316,7 @@ declare const ProgressTrackerStep: Comp<ProgressTrackerStepProps, HTMLButtonElem
|
|
|
2523
2316
|
/**
|
|
2524
2317
|
* Defines the props of the component.
|
|
2525
2318
|
*/
|
|
2526
|
-
interface ProgressTrackerStepPanelProps extends GenericProps {
|
|
2319
|
+
interface ProgressTrackerStepPanelProps extends GenericProps$1 {
|
|
2527
2320
|
/** Native id property. */
|
|
2528
2321
|
id?: string;
|
|
2529
2322
|
/** Whether the step is active or not. */
|
|
@@ -2545,7 +2338,7 @@ declare const ProgressTrackerStepPanel: Comp<ProgressTrackerStepPanelProps, HTML
|
|
|
2545
2338
|
/**
|
|
2546
2339
|
* Defines the props of the component.
|
|
2547
2340
|
*/
|
|
2548
|
-
interface RadioButtonProps extends GenericProps, HasTheme, HasAriaDisabled {
|
|
2341
|
+
interface RadioButtonProps extends GenericProps$1, HasTheme$1, HasAriaDisabled {
|
|
2549
2342
|
/** Helper text. */
|
|
2550
2343
|
helper?: string;
|
|
2551
2344
|
/** Native input id property. */
|
|
@@ -2579,7 +2372,7 @@ declare const RadioButton: Comp<RadioButtonProps, HTMLDivElement>;
|
|
|
2579
2372
|
/**
|
|
2580
2373
|
* Defines the props of the component.
|
|
2581
2374
|
*/
|
|
2582
|
-
interface RadioGroupProps extends GenericProps {
|
|
2375
|
+
interface RadioGroupProps extends GenericProps$1 {
|
|
2583
2376
|
/** RadioButton elements */
|
|
2584
2377
|
children: ReactNode;
|
|
2585
2378
|
}
|
|
@@ -2600,7 +2393,7 @@ declare const SelectVariant: {
|
|
|
2600
2393
|
readonly chip: "chip";
|
|
2601
2394
|
};
|
|
2602
2395
|
type SelectVariant = ValueOf<typeof SelectVariant>;
|
|
2603
|
-
interface CoreSelectProps extends GenericProps, HasTheme {
|
|
2396
|
+
interface CoreSelectProps extends GenericProps$1, HasTheme$1 {
|
|
2604
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. */
|
|
2605
2398
|
clearButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
|
|
2606
2399
|
/** Whether the select (input variant) is displayed with error style or not. */
|
|
@@ -2680,7 +2473,7 @@ declare const SelectMultiple: Comp<SelectMultipleProps, HTMLDivElement>;
|
|
|
2680
2473
|
/**
|
|
2681
2474
|
* Defines the props of the component.
|
|
2682
2475
|
*/
|
|
2683
|
-
interface SideNavigationProps extends GenericProps, HasTheme {
|
|
2476
|
+
interface SideNavigationProps extends GenericProps$1, HasTheme$1 {
|
|
2684
2477
|
/** SideNavigationItem elements. */
|
|
2685
2478
|
children: ReactNode;
|
|
2686
2479
|
}
|
|
@@ -2696,7 +2489,7 @@ declare const SideNavigation: Comp<SideNavigationProps, HTMLUListElement>;
|
|
|
2696
2489
|
/**
|
|
2697
2490
|
* Defines the props of the component.
|
|
2698
2491
|
*/
|
|
2699
|
-
interface SideNavigationItemProps extends GenericProps, HasCloseMode {
|
|
2492
|
+
interface SideNavigationItemProps extends GenericProps$1, HasCloseMode {
|
|
2700
2493
|
/** SideNavigationItem elements. */
|
|
2701
2494
|
children?: ReactNode;
|
|
2702
2495
|
/** Emphasis variant. */
|
|
@@ -2732,11 +2525,11 @@ declare const SideNavigationItem: Comp<SideNavigationItemProps, HTMLLIElement>;
|
|
|
2732
2525
|
/**
|
|
2733
2526
|
* Defines the props of the component.
|
|
2734
2527
|
*/
|
|
2735
|
-
interface SkeletonCircleProps extends GenericProps, HasTheme {
|
|
2528
|
+
interface SkeletonCircleProps extends GenericProps$1, HasTheme$1 {
|
|
2736
2529
|
/** Size variant. */
|
|
2737
2530
|
size: GlobalSize;
|
|
2738
2531
|
/** The color of the skeleton. */
|
|
2739
|
-
color?: ColorPalette;
|
|
2532
|
+
color?: ColorPalette$1;
|
|
2740
2533
|
}
|
|
2741
2534
|
/**
|
|
2742
2535
|
* SkeletonCircle component.
|
|
@@ -2759,7 +2552,7 @@ type SkeletonRectangleVariant = ValueOf<typeof SkeletonRectangleVariant>;
|
|
|
2759
2552
|
/**
|
|
2760
2553
|
* Defines the props of the component.
|
|
2761
2554
|
*/
|
|
2762
|
-
interface SkeletonRectangleProps extends GenericProps, HasTheme {
|
|
2555
|
+
interface SkeletonRectangleProps extends GenericProps$1, HasTheme$1 {
|
|
2763
2556
|
/** Aspect ratio (use with width and not height). */
|
|
2764
2557
|
aspectRatio?: Extract<AspectRatio, 'square' | 'horizontal' | 'vertical' | 'wide'>;
|
|
2765
2558
|
/** Height size. */
|
|
@@ -2769,7 +2562,7 @@ interface SkeletonRectangleProps extends GenericProps, HasTheme {
|
|
|
2769
2562
|
/** Width size. */
|
|
2770
2563
|
width?: GlobalSize;
|
|
2771
2564
|
/** The color of the skeleton. */
|
|
2772
|
-
color?: ColorPalette;
|
|
2565
|
+
color?: ColorPalette$1;
|
|
2773
2566
|
}
|
|
2774
2567
|
/**
|
|
2775
2568
|
* SkeletonRectangle component.
|
|
@@ -2783,13 +2576,13 @@ declare const SkeletonRectangle: Comp<SkeletonRectangleProps, HTMLDivElement>;
|
|
|
2783
2576
|
/**
|
|
2784
2577
|
* Defines the props of the component.
|
|
2785
2578
|
*/
|
|
2786
|
-
interface SkeletonTypographyProps extends GenericProps, HasTheme {
|
|
2579
|
+
interface SkeletonTypographyProps extends GenericProps$1, HasTheme$1 {
|
|
2787
2580
|
/** Typography variant. */
|
|
2788
|
-
typography: TypographyInterface;
|
|
2581
|
+
typography: TypographyInterface$1;
|
|
2789
2582
|
/** Width CSS property. */
|
|
2790
2583
|
width?: CSSProperties['width'];
|
|
2791
2584
|
/** The color of the skeleton. */
|
|
2792
|
-
color?: ColorPalette;
|
|
2585
|
+
color?: ColorPalette$1;
|
|
2793
2586
|
}
|
|
2794
2587
|
/**
|
|
2795
2588
|
* SkeletonTypography component.
|
|
@@ -2803,7 +2596,7 @@ declare const SkeletonTypography: Comp<SkeletonTypographyProps, HTMLDivElement>;
|
|
|
2803
2596
|
/**
|
|
2804
2597
|
* Defines the props of the component.
|
|
2805
2598
|
*/
|
|
2806
|
-
interface SliderProps extends GenericProps, HasTheme {
|
|
2599
|
+
interface SliderProps extends GenericProps$1, HasTheme$1 {
|
|
2807
2600
|
/** Helper text. */
|
|
2808
2601
|
helper?: string;
|
|
2809
2602
|
/** Whether the min and max labels should be hidden or not. */
|
|
@@ -2851,7 +2644,7 @@ declare const clamp: (value: number, min: number, max: number) => number;
|
|
|
2851
2644
|
/**
|
|
2852
2645
|
* Defines the props of the component.
|
|
2853
2646
|
*/
|
|
2854
|
-
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'> {
|
|
2855
2648
|
/** current slide active */
|
|
2856
2649
|
activeIndex?: SlidesProps['activeIndex'];
|
|
2857
2650
|
/** Interval between each slide when automatic rotation is enabled. */
|
|
@@ -2875,7 +2668,7 @@ declare const Slideshow: Comp<SlideshowProps, HTMLDivElement>;
|
|
|
2875
2668
|
/**
|
|
2876
2669
|
* Defines the props of the component.
|
|
2877
2670
|
*/
|
|
2878
|
-
interface SlideshowItemProps extends GenericProps {
|
|
2671
|
+
interface SlideshowItemProps extends GenericProps$1 {
|
|
2879
2672
|
/** interval in which slides are automatically shown */
|
|
2880
2673
|
interval?: number;
|
|
2881
2674
|
/** Children */
|
|
@@ -2954,7 +2747,7 @@ interface UseSlideshowControls {
|
|
|
2954
2747
|
/**
|
|
2955
2748
|
* Defines the props of the component.
|
|
2956
2749
|
*/
|
|
2957
|
-
interface SlideshowControlsProps extends GenericProps, HasTheme {
|
|
2750
|
+
interface SlideshowControlsProps extends GenericProps$1, HasTheme$1 {
|
|
2958
2751
|
/** Index of the current slide. */
|
|
2959
2752
|
activeIndex?: number;
|
|
2960
2753
|
/** Props to pass to the next button (minus those already set by the SlideshowControls props). */
|
|
@@ -2998,7 +2791,7 @@ declare const SlideshowControls: Comp<SlideshowControlsProps, HTMLDivElement> &
|
|
|
2998
2791
|
};
|
|
2999
2792
|
};
|
|
3000
2793
|
|
|
3001
|
-
interface SlidesProps extends GenericProps, HasTheme {
|
|
2794
|
+
interface SlidesProps extends GenericProps$1, HasTheme$1 {
|
|
3002
2795
|
/** current slide active */
|
|
3003
2796
|
activeIndex: number;
|
|
3004
2797
|
/** slides id to be added to the wrapper */
|
|
@@ -3039,7 +2832,7 @@ declare const Slides: Comp<SlidesProps, HTMLDivElement>;
|
|
|
3039
2832
|
/**
|
|
3040
2833
|
* Defines the props of the component.
|
|
3041
2834
|
*/
|
|
3042
|
-
interface SwitchProps extends GenericProps, HasTheme, HasAriaDisabled {
|
|
2835
|
+
interface SwitchProps extends GenericProps$1, HasTheme$1, HasAriaDisabled {
|
|
3043
2836
|
/** Helper text. */
|
|
3044
2837
|
helper?: string;
|
|
3045
2838
|
/** Whether it is checked or not. */
|
|
@@ -3071,7 +2864,7 @@ declare const Switch: Comp<SwitchProps, HTMLDivElement>;
|
|
|
3071
2864
|
/**
|
|
3072
2865
|
* Defines the props of the component.
|
|
3073
2866
|
*/
|
|
3074
|
-
interface TableProps extends GenericProps, HasTheme {
|
|
2867
|
+
interface TableProps extends GenericProps$1, HasTheme$1 {
|
|
3075
2868
|
/** Whether the table has checkbox or thumbnail on first cell or not. */
|
|
3076
2869
|
hasBefore?: boolean;
|
|
3077
2870
|
/** Whether the table has dividers or not. */
|
|
@@ -3091,7 +2884,7 @@ declare const Table: Comp<TableProps, HTMLTableElement>;
|
|
|
3091
2884
|
/**
|
|
3092
2885
|
* Defines the props of the component.
|
|
3093
2886
|
*/
|
|
3094
|
-
interface TableBodyProps extends GenericProps {
|
|
2887
|
+
interface TableBodyProps extends GenericProps$1 {
|
|
3095
2888
|
/** Children */
|
|
3096
2889
|
children?: React.ReactNode;
|
|
3097
2890
|
}
|
|
@@ -3123,7 +2916,7 @@ type TableCellVariant = ValueOf<typeof TableCellVariant>;
|
|
|
3123
2916
|
/**
|
|
3124
2917
|
* Defines the props of the component.
|
|
3125
2918
|
*/
|
|
3126
|
-
interface TableCellProps extends GenericProps {
|
|
2919
|
+
interface TableCellProps extends GenericProps$1 {
|
|
3127
2920
|
/** Icon (SVG path).(thead only). */
|
|
3128
2921
|
icon?: string;
|
|
3129
2922
|
/** Whether the column is sortable or not (thead only). */
|
|
@@ -3149,7 +2942,7 @@ declare const TableCell: Comp<TableCellProps, HTMLTableCellElement>;
|
|
|
3149
2942
|
/**
|
|
3150
2943
|
* Defines the props of the component.
|
|
3151
2944
|
*/
|
|
3152
|
-
interface TableHeaderProps extends GenericProps {
|
|
2945
|
+
interface TableHeaderProps extends GenericProps$1 {
|
|
3153
2946
|
/** Children */
|
|
3154
2947
|
children?: React.ReactNode;
|
|
3155
2948
|
}
|
|
@@ -3165,7 +2958,7 @@ declare const TableHeader: Comp<TableHeaderProps, HTMLTableSectionElement>;
|
|
|
3165
2958
|
/**
|
|
3166
2959
|
* Defines the props of the component.
|
|
3167
2960
|
*/
|
|
3168
|
-
interface TableRowProps extends GenericProps {
|
|
2961
|
+
interface TableRowProps extends GenericProps$1 {
|
|
3169
2962
|
/** Whether the component is clickable or not. */
|
|
3170
2963
|
isClickable?: boolean;
|
|
3171
2964
|
/** Whether the component is disabled or not. */
|
|
@@ -3214,7 +3007,7 @@ declare enum TabListLayout {
|
|
|
3214
3007
|
/**
|
|
3215
3008
|
* Defines the props of the component.
|
|
3216
3009
|
*/
|
|
3217
|
-
interface TabListProps extends GenericProps, HasTheme {
|
|
3010
|
+
interface TabListProps extends GenericProps$1, HasTheme$1 {
|
|
3218
3011
|
/** ARIA label (purpose of the set of tabs). */
|
|
3219
3012
|
['aria-label']: string;
|
|
3220
3013
|
/** Tab list. */
|
|
@@ -3238,7 +3031,7 @@ declare const TabList: Comp<TabListProps, HTMLDivElement>;
|
|
|
3238
3031
|
/**
|
|
3239
3032
|
* Defines the props of the component.
|
|
3240
3033
|
*/
|
|
3241
|
-
interface TabProps extends GenericProps {
|
|
3034
|
+
interface TabProps extends GenericProps$1 {
|
|
3242
3035
|
/** Children are not supported. */
|
|
3243
3036
|
children?: never;
|
|
3244
3037
|
/** Icon (SVG path). */
|
|
@@ -3268,7 +3061,7 @@ declare const Tab: Comp<TabProps, HTMLButtonElement>;
|
|
|
3268
3061
|
/**
|
|
3269
3062
|
* Defines the props of the component.
|
|
3270
3063
|
*/
|
|
3271
|
-
interface TabPanelProps extends GenericProps {
|
|
3064
|
+
interface TabPanelProps extends GenericProps$1 {
|
|
3272
3065
|
/** Native id property */
|
|
3273
3066
|
id?: string;
|
|
3274
3067
|
/** Whether the tab is active or not. */
|
|
@@ -3290,7 +3083,7 @@ declare const TabPanel: Comp<TabPanelProps, HTMLDivElement>;
|
|
|
3290
3083
|
/**
|
|
3291
3084
|
* Defines the props of the component.
|
|
3292
3085
|
*/
|
|
3293
|
-
interface TextFieldProps extends GenericProps, HasTheme, HasAriaDisabled {
|
|
3086
|
+
interface TextFieldProps extends GenericProps$1, HasTheme$1, HasAriaDisabled {
|
|
3294
3087
|
/** Chip Group to be rendered before the main text input. */
|
|
3295
3088
|
chips?: ReactNode;
|
|
3296
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. */
|
|
@@ -3359,7 +3152,7 @@ type NativeInputProps = Omit<ComponentProps<'input'>, 'value' | 'onChange'>;
|
|
|
3359
3152
|
/**
|
|
3360
3153
|
* Defines the props of the component.
|
|
3361
3154
|
*/
|
|
3362
|
-
interface RawInputTextProps extends NativeInputProps, HasTheme, HasClassName {
|
|
3155
|
+
interface RawInputTextProps extends NativeInputProps, HasTheme$1, HasClassName$1 {
|
|
3363
3156
|
value?: string;
|
|
3364
3157
|
onChange?: (value: string, name?: string, event?: SyntheticEvent) => void;
|
|
3365
3158
|
}
|
|
@@ -3373,7 +3166,7 @@ type NativeTextareaProps = ComponentProps<'textarea'>;
|
|
|
3373
3166
|
/**
|
|
3374
3167
|
* Defines the props of the component.
|
|
3375
3168
|
*/
|
|
3376
|
-
interface RawInputTextareaProps extends Omit<NativeTextareaProps, 'value' | 'onChange'>, HasTheme, HasClassName {
|
|
3169
|
+
interface RawInputTextareaProps extends Omit<NativeTextareaProps, 'value' | 'onChange'>, HasTheme$1, HasClassName$1 {
|
|
3377
3170
|
minimumRows?: number;
|
|
3378
3171
|
value?: string;
|
|
3379
3172
|
onChange?: (value: string, name?: string, event?: SyntheticEvent) => void;
|
|
@@ -3389,7 +3182,7 @@ declare const useFocusPointStyle: ({ image, aspectRatio, focusPoint, imgProps: {
|
|
|
3389
3182
|
/**
|
|
3390
3183
|
* Defines the props of the component.
|
|
3391
3184
|
*/
|
|
3392
|
-
interface ToolbarProps extends GenericProps {
|
|
3185
|
+
interface ToolbarProps extends GenericProps$1 {
|
|
3393
3186
|
/** After content (placed after the label). */
|
|
3394
3187
|
after?: ReactNode;
|
|
3395
3188
|
/** Before content (placed before the label). */
|
|
@@ -3413,7 +3206,7 @@ type TooltipPlacement = Extract<Placement, 'top' | 'right' | 'bottom' | 'left'>;
|
|
|
3413
3206
|
/**
|
|
3414
3207
|
* Defines the props of the component.
|
|
3415
3208
|
*/
|
|
3416
|
-
interface TooltipProps extends GenericProps, HasCloseMode {
|
|
3209
|
+
interface TooltipProps extends GenericProps$1, HasCloseMode {
|
|
3417
3210
|
/** Anchor (element on which we activate the tooltip). */
|
|
3418
3211
|
children: ReactNode;
|
|
3419
3212
|
/** Delay (in ms) before closing the tooltip. */
|
|
@@ -3448,7 +3241,7 @@ type UploaderVariant = ValueOf<typeof UploaderVariant>;
|
|
|
3448
3241
|
/**
|
|
3449
3242
|
* Uploader sizes.
|
|
3450
3243
|
*/
|
|
3451
|
-
type UploaderSize = Extract<Size, 'xl' | 'xxl'>;
|
|
3244
|
+
type UploaderSize = Extract<Size$1, 'xl' | 'xxl'>;
|
|
3452
3245
|
/**
|
|
3453
3246
|
* Extend native HTML input props with specialized `onChange` providing the a `File` array.
|
|
3454
3247
|
*/
|
|
@@ -3458,7 +3251,7 @@ interface FileInputProps extends Omit<React__default.ComponentProps<'input'>, 'o
|
|
|
3458
3251
|
/**
|
|
3459
3252
|
* Defines the props of the component.
|
|
3460
3253
|
*/
|
|
3461
|
-
interface UploaderProps extends GenericProps, HasTheme, HasAriaDisabled {
|
|
3254
|
+
interface UploaderProps extends GenericProps$1, HasTheme$1, HasAriaDisabled {
|
|
3462
3255
|
/** Image aspect ratio. */
|
|
3463
3256
|
aspectRatio?: AspectRatio;
|
|
3464
3257
|
/** Icon (SVG path). */
|
|
@@ -3488,11 +3281,11 @@ declare const Uploader: Comp<UploaderProps, HTMLElement>;
|
|
|
3488
3281
|
/**
|
|
3489
3282
|
* User block sizes.
|
|
3490
3283
|
*/
|
|
3491
|
-
type UserBlockSize = Extract<Size, 'xs' | 's' | 'm' | 'l'>;
|
|
3284
|
+
type UserBlockSize = Extract<Size$1, 'xs' | 's' | 'm' | 'l'>;
|
|
3492
3285
|
/**
|
|
3493
3286
|
* Defines the props of the component.
|
|
3494
3287
|
*/
|
|
3495
|
-
interface UserBlockProps extends GenericProps, HasTheme {
|
|
3288
|
+
interface UserBlockProps extends GenericProps$1, HasTheme$1 {
|
|
3496
3289
|
/** Props to pass to the avatar. */
|
|
3497
3290
|
avatarProps?: Omit<AvatarProps, 'alt'>;
|
|
3498
3291
|
/** Additional fields used to describe the user. */
|
|
@@ -3506,7 +3299,7 @@ interface UserBlockProps extends GenericProps, HasTheme {
|
|
|
3506
3299
|
/** User name. */
|
|
3507
3300
|
name?: React__default.ReactNode;
|
|
3508
3301
|
/** Props to pass to the name block. */
|
|
3509
|
-
nameProps?: GenericProps;
|
|
3302
|
+
nameProps?: GenericProps$1;
|
|
3510
3303
|
/** Orientation. */
|
|
3511
3304
|
orientation?: Orientation;
|
|
3512
3305
|
/** Simple action toolbar content. */
|
|
@@ -3533,7 +3326,7 @@ interface UserBlockProps extends GenericProps, HasTheme {
|
|
|
3533
3326
|
*/
|
|
3534
3327
|
declare const UserBlock: Comp<UserBlockProps, HTMLDivElement>;
|
|
3535
3328
|
|
|
3536
|
-
type ThemeContextValue = Theme | undefined;
|
|
3329
|
+
type ThemeContextValue = Theme$1 | undefined;
|
|
3537
3330
|
/** Provide a theme context to all children. */
|
|
3538
3331
|
declare const ThemeProvider: React__default.FC<{
|
|
3539
3332
|
value: ThemeContextValue;
|
|
@@ -3542,5 +3335,5 @@ declare const ThemeProvider: React__default.FC<{
|
|
|
3542
3335
|
/** Get the theme in the current context. */
|
|
3543
3336
|
declare function useTheme(): ThemeContextValue;
|
|
3544
3337
|
|
|
3545
|
-
export { AlertDialog,
|
|
3546
|
-
export type { AlertDialogProps, AutocompleteMultipleProps, AutocompleteProps, AvatarProps, AvatarSize, BadgeProps, BadgeWrapperProps, BaseButtonProps, ButtonGroupProps, ButtonProps, ButtonSize,
|
|
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 };
|
|
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 };
|