@lumx/react 4.3.2-alpha.11 → 4.3.2-alpha.12
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/_internal/DpdvhbTO.js +159 -0
- package/_internal/DpdvhbTO.js.map +1 -0
- package/index.d.ts +612 -386
- package/index.js +326 -1699
- package/index.js.map +1 -1
- package/package.json +7 -3
- package/utils/index.d.ts +1 -35
- package/utils/index.js +1322 -3
- package/utils/index.js.map +1 -1
- package/Tooltip-sXtC5rw3.d.ts +0 -873
- package/_internal/BCgo9dYV.js +0 -1805
- package/_internal/BCgo9dYV.js.map +0 -1
package/index.d.ts
CHANGED
|
@@ -1,15 +1,28 @@
|
|
|
1
|
-
import { Kind, HorizontalAlignment, Size, ColorPalette as ColorPalette$1, Theme
|
|
1
|
+
import { Kind as Kind$1, HorizontalAlignment as HorizontalAlignment$1, Size as Size$1, ColorPalette as ColorPalette$1, Theme as Theme$1, Orientation as Orientation$1, Alignment as Alignment$1, AspectRatio as AspectRatio$1, ColorWithVariants as ColorWithVariants$1, ColorVariant as ColorVariant$1, Typography as Typography$1, Emphasis as Emphasis$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
|
|
4
|
+
import { GenericProps, HasTheme as HasTheme$1, ValueOf as ValueOf$1, HasAriaDisabled as HasAriaDisabled$1, HasCloseMode, HasClassName as HasClassName$1, JSXElement as JSXElement$1, CommonRef as CommonRef$1, Falsy, HeadingElement as HeadingElement$1, HasRequiredLinkHref, HasAriaLabelOrLabelledBy } from '@lumx/core/js/types';
|
|
5
5
|
export * from '@lumx/core/js/types';
|
|
6
6
|
import * as React$1 from 'react';
|
|
7
|
-
import React__default, { ReactNode, SyntheticEvent,
|
|
8
|
-
import { C as Comp, I as IconButtonProps, T as TextFieldProps, O as Offset, P as Placement, H as HasClassName, J as JSXElement, a as ColorPalette, b as CommonRef, B as BaseButtonProps, c as HasTheme$1, d as HasAriaDisabled, e as HasDisabled, f as ComboboxOptionProps, g as ComboboxProps, E as Elevation, F as FitAnchorWidth, h as ColorWithVariants, i as ColorVariant, j as Typography, W as WhiteSpace, S as Size$1, V as VerticalAlignment, A as Alignment, k as HorizontalAlignment$1, l as Orientation, K as Kind$1, G as GlobalSize, m as AspectRatio$1, n as TypographyInterface } from './Tooltip-sXtC5rw3.js';
|
|
9
|
-
export { o as BaseSelectProps, p as ButtonSize, q as IconButton, r as InputLabel, s as InputLabelProps, L as ListItem, t as ListItemProps, u as ListItemSize, M as MultipleSelection, v as OnComboboxInputChange, w as OnComboboxSelect, x as SingleSelection, y as TextField, z as Tooltip, D as TooltipPlacement, N as TooltipProps, Q as isClickable } from './Tooltip-sXtC5rw3.js';
|
|
7
|
+
import React__default, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, AriaAttributes, RefObject, CSSProperties, ImgHTMLAttributes, SetStateAction, Key, ElementType, ComponentProps } from 'react';
|
|
10
8
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
11
9
|
import { Selector } from '@lumx/core/js/types/Selector';
|
|
12
10
|
|
|
11
|
+
/** LumX Component Type. */
|
|
12
|
+
type Comp<P, T = HTMLElement> = {
|
|
13
|
+
(props: P & {
|
|
14
|
+
ref?: Ref<T>;
|
|
15
|
+
}): ReactElement | null;
|
|
16
|
+
/** React component type. */
|
|
17
|
+
readonly $$typeof: symbol;
|
|
18
|
+
/** Component default props. */
|
|
19
|
+
defaultProps?: Partial<P>;
|
|
20
|
+
/** Component name. */
|
|
21
|
+
displayName?: string;
|
|
22
|
+
/** Component base class name. */
|
|
23
|
+
className?: string;
|
|
24
|
+
};
|
|
25
|
+
|
|
13
26
|
/**
|
|
14
27
|
* Extract ref type for a component or JSX intrinsic element
|
|
15
28
|
*
|
|
@@ -22,7 +35,7 @@ type ComponentRef<C> = C extends keyof JSX.IntrinsicElements ? JSX.IntrinsicElem
|
|
|
22
35
|
|
|
23
36
|
interface AlertDialogProps extends Omit<DialogProps, 'header' | 'footer'> {
|
|
24
37
|
/** Message variant. */
|
|
25
|
-
kind?: Kind;
|
|
38
|
+
kind?: Kind$1;
|
|
26
39
|
/** Dialog title. */
|
|
27
40
|
title?: string;
|
|
28
41
|
/** Props forwarded to the confirm button */
|
|
@@ -57,7 +70,7 @@ declare const AlertDialog: Comp<AlertDialogProps, HTMLDivElement>;
|
|
|
57
70
|
/**
|
|
58
71
|
* Defines the props of the component.
|
|
59
72
|
*/
|
|
60
|
-
interface AutocompleteProps extends GenericProps, HasTheme {
|
|
73
|
+
interface AutocompleteProps extends GenericProps, HasTheme$1 {
|
|
61
74
|
/**
|
|
62
75
|
* Whether the suggestions list should display anchored to the input or to the wrapper.
|
|
63
76
|
* @see {@link DropdownProps#anchorToInput}
|
|
@@ -230,7 +243,7 @@ interface AutocompleteMultipleProps extends AutocompleteProps {
|
|
|
230
243
|
/** Selected values. */
|
|
231
244
|
values: any[];
|
|
232
245
|
/** Alignment of the chips in the autocomplete. */
|
|
233
|
-
chipsAlignment?: HorizontalAlignment;
|
|
246
|
+
chipsAlignment?: HorizontalAlignment$1;
|
|
234
247
|
/** Selected value render function. Default: Renders the value inside of a Chip. */
|
|
235
248
|
selectedChipRender(choice: any, index: number, onClear?: (event: React.MouseEvent, val: any) => void, isDisabled?: boolean): ReactNode | string;
|
|
236
249
|
}
|
|
@@ -246,11 +259,11 @@ declare const AutocompleteMultiple: Comp<AutocompleteMultipleProps, HTMLDivEleme
|
|
|
246
259
|
/**
|
|
247
260
|
* Avatar sizes.
|
|
248
261
|
*/
|
|
249
|
-
type AvatarSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
262
|
+
type AvatarSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
250
263
|
/**
|
|
251
264
|
* Defines the props of the component.
|
|
252
265
|
*/
|
|
253
|
-
interface AvatarProps extends GenericProps, HasTheme {
|
|
266
|
+
interface AvatarProps extends GenericProps, HasTheme$1 {
|
|
254
267
|
/** Action toolbar content. */
|
|
255
268
|
actions?: ReactNode;
|
|
256
269
|
/** Image alternative text. */
|
|
@@ -281,6 +294,215 @@ interface AvatarProps extends GenericProps, HasTheme {
|
|
|
281
294
|
*/
|
|
282
295
|
declare const Avatar: Comp<AvatarProps, HTMLDivElement>;
|
|
283
296
|
|
|
297
|
+
/**
|
|
298
|
+
* Alignments.
|
|
299
|
+
*/
|
|
300
|
+
declare const Alignment: {
|
|
301
|
+
readonly bottom: "bottom";
|
|
302
|
+
readonly center: "center";
|
|
303
|
+
readonly end: "end";
|
|
304
|
+
readonly left: "left";
|
|
305
|
+
readonly right: "right";
|
|
306
|
+
readonly spaceAround: "space-around";
|
|
307
|
+
readonly spaceBetween: "space-between";
|
|
308
|
+
readonly spaceEvenly: "space-evenly";
|
|
309
|
+
readonly start: "start";
|
|
310
|
+
readonly top: "top";
|
|
311
|
+
};
|
|
312
|
+
type Alignment = ValueOf$1<typeof Alignment>;
|
|
313
|
+
type VerticalAlignment = Extract<Alignment, 'top' | 'center' | 'bottom'>;
|
|
314
|
+
type HorizontalAlignment = Extract<Alignment, 'right' | 'center' | 'left'>;
|
|
315
|
+
declare const Theme: {
|
|
316
|
+
readonly light: "light";
|
|
317
|
+
readonly dark: "dark";
|
|
318
|
+
};
|
|
319
|
+
type Theme = ValueOf$1<typeof Theme>;
|
|
320
|
+
declare const Size: {
|
|
321
|
+
readonly xxs: "xxs";
|
|
322
|
+
readonly xs: "xs";
|
|
323
|
+
readonly s: "s";
|
|
324
|
+
readonly m: "m";
|
|
325
|
+
readonly l: "l";
|
|
326
|
+
readonly xl: "xl";
|
|
327
|
+
readonly xxl: "xxl";
|
|
328
|
+
readonly tiny: "tiny";
|
|
329
|
+
readonly regular: "regular";
|
|
330
|
+
readonly medium: "medium";
|
|
331
|
+
readonly big: "big";
|
|
332
|
+
readonly huge: "huge";
|
|
333
|
+
};
|
|
334
|
+
type Size = ValueOf$1<typeof Size>;
|
|
335
|
+
type GlobalSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
336
|
+
declare const Orientation: {
|
|
337
|
+
readonly horizontal: "horizontal";
|
|
338
|
+
readonly vertical: "vertical";
|
|
339
|
+
};
|
|
340
|
+
type Orientation = ValueOf$1<typeof Orientation>;
|
|
341
|
+
declare const Emphasis: {
|
|
342
|
+
readonly low: "low";
|
|
343
|
+
readonly medium: "medium";
|
|
344
|
+
readonly high: "high";
|
|
345
|
+
};
|
|
346
|
+
type Emphasis = ValueOf$1<typeof Emphasis>;
|
|
347
|
+
/**
|
|
348
|
+
* List of typographies that can't be customized.
|
|
349
|
+
*/
|
|
350
|
+
declare const TypographyInterface: {
|
|
351
|
+
readonly overline: "overline";
|
|
352
|
+
readonly caption: "caption";
|
|
353
|
+
readonly body1: "body1";
|
|
354
|
+
readonly body2: "body2";
|
|
355
|
+
readonly subtitle1: "subtitle1";
|
|
356
|
+
readonly subtitle2: "subtitle2";
|
|
357
|
+
readonly title: "title";
|
|
358
|
+
readonly headline: "headline";
|
|
359
|
+
readonly display1: "display1";
|
|
360
|
+
};
|
|
361
|
+
type TypographyInterface = ValueOf$1<typeof TypographyInterface>;
|
|
362
|
+
/**
|
|
363
|
+
* List of typographies that can be customized (via CSS variables).
|
|
364
|
+
*/
|
|
365
|
+
declare const TypographyCustom: {
|
|
366
|
+
readonly intro: "custom-intro";
|
|
367
|
+
readonly 'body-large': "custom-body-large";
|
|
368
|
+
readonly body: "custom-body";
|
|
369
|
+
readonly quote: "custom-quote";
|
|
370
|
+
readonly 'publish-info': "custom-publish-info";
|
|
371
|
+
readonly button: "custom-button";
|
|
372
|
+
readonly title1: "custom-title1";
|
|
373
|
+
readonly title2: "custom-title2";
|
|
374
|
+
readonly title3: "custom-title3";
|
|
375
|
+
readonly title4: "custom-title4";
|
|
376
|
+
readonly title5: "custom-title5";
|
|
377
|
+
readonly title6: "custom-title6";
|
|
378
|
+
};
|
|
379
|
+
type TypographyCustom = ValueOf$1<typeof TypographyCustom>;
|
|
380
|
+
/**
|
|
381
|
+
* List of all typographies.
|
|
382
|
+
*/
|
|
383
|
+
declare const Typography: {
|
|
384
|
+
readonly custom: {
|
|
385
|
+
readonly intro: "custom-intro";
|
|
386
|
+
readonly 'body-large': "custom-body-large";
|
|
387
|
+
readonly body: "custom-body";
|
|
388
|
+
readonly quote: "custom-quote";
|
|
389
|
+
readonly 'publish-info': "custom-publish-info";
|
|
390
|
+
readonly button: "custom-button";
|
|
391
|
+
readonly title1: "custom-title1";
|
|
392
|
+
readonly title2: "custom-title2";
|
|
393
|
+
readonly title3: "custom-title3";
|
|
394
|
+
readonly title4: "custom-title4";
|
|
395
|
+
readonly title5: "custom-title5";
|
|
396
|
+
readonly title6: "custom-title6";
|
|
397
|
+
};
|
|
398
|
+
readonly overline: "overline";
|
|
399
|
+
readonly caption: "caption";
|
|
400
|
+
readonly body1: "body1";
|
|
401
|
+
readonly body2: "body2";
|
|
402
|
+
readonly subtitle1: "subtitle1";
|
|
403
|
+
readonly subtitle2: "subtitle2";
|
|
404
|
+
readonly title: "title";
|
|
405
|
+
readonly headline: "headline";
|
|
406
|
+
readonly display1: "display1";
|
|
407
|
+
};
|
|
408
|
+
type Typography = TypographyInterface | TypographyCustom;
|
|
409
|
+
/**
|
|
410
|
+
* All available aspect ratios.
|
|
411
|
+
*/
|
|
412
|
+
declare const AspectRatio: {
|
|
413
|
+
/** Intrinsic content ratio. */
|
|
414
|
+
readonly original: "original";
|
|
415
|
+
/** Ratio 3:1 */
|
|
416
|
+
readonly panoramic: "panoramic";
|
|
417
|
+
/** Ratio 16:9 */
|
|
418
|
+
readonly wide: "wide";
|
|
419
|
+
/** Ratio 3:2 */
|
|
420
|
+
readonly horizontal: "horizontal";
|
|
421
|
+
/** Ratio 3:2 */
|
|
422
|
+
readonly vertical: "vertical";
|
|
423
|
+
/** Ratio 1:1 */
|
|
424
|
+
readonly square: "square";
|
|
425
|
+
/** Ratio constrained by the parent. */
|
|
426
|
+
readonly free: "free";
|
|
427
|
+
};
|
|
428
|
+
type AspectRatio = ValueOf$1<typeof AspectRatio>;
|
|
429
|
+
/**
|
|
430
|
+
* Semantic info about the purpose of the component
|
|
431
|
+
*/
|
|
432
|
+
declare const Kind: {
|
|
433
|
+
readonly info: "info";
|
|
434
|
+
readonly success: "success";
|
|
435
|
+
readonly warning: "warning";
|
|
436
|
+
readonly error: "error";
|
|
437
|
+
};
|
|
438
|
+
type Kind = ValueOf$1<typeof Kind>;
|
|
439
|
+
/**
|
|
440
|
+
* All available white-space values
|
|
441
|
+
* */
|
|
442
|
+
declare const WhiteSpace: {
|
|
443
|
+
normal: string;
|
|
444
|
+
nowrap: string;
|
|
445
|
+
pre: string;
|
|
446
|
+
'pre-wrap': string;
|
|
447
|
+
'pre-line': string;
|
|
448
|
+
'break-spaces': string;
|
|
449
|
+
};
|
|
450
|
+
type WhiteSpace = ValueOf$1<typeof WhiteSpace>;
|
|
451
|
+
/**
|
|
452
|
+
* See SCSS variable $lumx-color-palette
|
|
453
|
+
*/
|
|
454
|
+
declare const ColorPalette: {
|
|
455
|
+
readonly primary: "primary";
|
|
456
|
+
readonly secondary: "secondary";
|
|
457
|
+
readonly blue: "blue";
|
|
458
|
+
readonly dark: "dark";
|
|
459
|
+
readonly green: "green";
|
|
460
|
+
readonly yellow: "yellow";
|
|
461
|
+
readonly red: "red";
|
|
462
|
+
readonly light: "light";
|
|
463
|
+
readonly grey: "grey";
|
|
464
|
+
};
|
|
465
|
+
type ColorPalette = ValueOf$1<typeof ColorPalette>;
|
|
466
|
+
/**
|
|
467
|
+
* See SCSS variable $lumx-color-variants
|
|
468
|
+
*/
|
|
469
|
+
declare const ColorVariant: {
|
|
470
|
+
readonly D1: "D1";
|
|
471
|
+
readonly D2: "D2";
|
|
472
|
+
readonly L1: "L1";
|
|
473
|
+
readonly L2: "L2";
|
|
474
|
+
readonly L3: "L3";
|
|
475
|
+
readonly L4: "L4";
|
|
476
|
+
readonly L5: "L5";
|
|
477
|
+
readonly L6: "L6";
|
|
478
|
+
readonly N: "N";
|
|
479
|
+
};
|
|
480
|
+
type ColorVariant = ValueOf$1<typeof ColorVariant>;
|
|
481
|
+
/** ColorPalette with all possible color variant combination */
|
|
482
|
+
type ColorWithVariants = ColorPalette | Exclude<`${ColorPalette}-${ColorVariant}`, `light-D${number}` | `dark-D${number}`>;
|
|
483
|
+
|
|
484
|
+
interface HasClassName {
|
|
485
|
+
/**
|
|
486
|
+
* Class name forwarded to the root element of the component.
|
|
487
|
+
*/
|
|
488
|
+
className?: string;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
interface HasTheme {
|
|
492
|
+
/**
|
|
493
|
+
* Theme adapting the component to light or dark background.
|
|
494
|
+
*/
|
|
495
|
+
theme?: Theme;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* Framework-agnostic type for renderable content.
|
|
500
|
+
* Vue components should cast VNode[] from slots to this type.
|
|
501
|
+
*
|
|
502
|
+
* Note: Uses type-only import to avoid runtime dependencies.
|
|
503
|
+
*/
|
|
504
|
+
type JSXElement = React__default.ReactNode;
|
|
505
|
+
|
|
284
506
|
/** Union type of all heading elements */
|
|
285
507
|
type HeadingElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
286
508
|
|
|
@@ -296,6 +518,15 @@ type KebabCase<S> = S extends `${infer C}${infer T}` ? T extends Uncapitalize<T>
|
|
|
296
518
|
/** Transform the component name into the lumx class name. */
|
|
297
519
|
type LumxClassName<TComponentName extends string> = `lumx-${KebabCase<TComponentName>}`;
|
|
298
520
|
|
|
521
|
+
type CommonRef = any;
|
|
522
|
+
|
|
523
|
+
type Booleanish = boolean | 'true' | 'false';
|
|
524
|
+
|
|
525
|
+
interface HasAriaDisabled {
|
|
526
|
+
/** Similar to `disabled` but does not block pointer events or focus */
|
|
527
|
+
'aria-disabled'?: Booleanish;
|
|
528
|
+
}
|
|
529
|
+
|
|
299
530
|
interface HasChecked<C = boolean> {
|
|
300
531
|
/** Component checked state. */
|
|
301
532
|
isChecked?: C;
|
|
@@ -303,6 +534,13 @@ interface HasChecked<C = boolean> {
|
|
|
303
534
|
checked?: boolean;
|
|
304
535
|
}
|
|
305
536
|
|
|
537
|
+
interface HasDisabled {
|
|
538
|
+
/** Whether the component is disabled or not. */
|
|
539
|
+
isDisabled?: boolean;
|
|
540
|
+
/** @alias isDisabled */
|
|
541
|
+
disabled?: boolean;
|
|
542
|
+
}
|
|
543
|
+
|
|
306
544
|
/**
|
|
307
545
|
* Defines the props of the component.
|
|
308
546
|
*/
|
|
@@ -348,6 +586,49 @@ interface BadgeWrapperProps extends GenericProps, Omit<BadgeWrapperProps$1, 'chi
|
|
|
348
586
|
}
|
|
349
587
|
declare const BadgeWrapper: Comp<BadgeWrapperProps, HTMLDivElement>;
|
|
350
588
|
|
|
589
|
+
interface BaseClickableProps extends HasDisabled, HasAriaDisabled {
|
|
590
|
+
children?: JSXElement;
|
|
591
|
+
onClick?: (event?: any) => void;
|
|
592
|
+
ref?: CommonRef;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* Button size definition.
|
|
597
|
+
*/
|
|
598
|
+
type ButtonSize = Extract<Size, 's' | 'm'>;
|
|
599
|
+
interface BaseButtonProps extends Pick<AriaAttributes, 'aria-expanded' | 'aria-haspopup' | 'aria-pressed' | 'aria-label'>, HasClassName, HasTheme, HasAriaDisabled, BaseClickableProps {
|
|
600
|
+
/** Color variant. */
|
|
601
|
+
color?: ColorPalette;
|
|
602
|
+
/** Emphasis variant. */
|
|
603
|
+
emphasis?: Emphasis;
|
|
604
|
+
/** Whether or not the button has a background color in low emphasis. */
|
|
605
|
+
hasBackground?: boolean;
|
|
606
|
+
/** Native anchor href property. It determines whether the Button will be a <button> or an <a>. */
|
|
607
|
+
href?: string;
|
|
608
|
+
/** Whether the component is disabled or not. */
|
|
609
|
+
isDisabled?: boolean;
|
|
610
|
+
/** Whether the component is selected or not (unsupported in `high` emphasis). */
|
|
611
|
+
isSelected?: boolean;
|
|
612
|
+
/** Native button name property. */
|
|
613
|
+
name?: string;
|
|
614
|
+
/** Size variant. */
|
|
615
|
+
size?: ButtonSize;
|
|
616
|
+
/** Native anchor target property. */
|
|
617
|
+
target?: '_self' | '_blank' | '_parent' | '_top';
|
|
618
|
+
/** Native button type. */
|
|
619
|
+
type?: 'submit' | 'reset' | 'button' | undefined;
|
|
620
|
+
/** Custom component for the link (can be used to inject router Link). */
|
|
621
|
+
linkAs?: 'a' | any;
|
|
622
|
+
/** whether the button is dispalyed in full width or not */
|
|
623
|
+
fullWidth?: boolean;
|
|
624
|
+
/** whether the button is currently active or not */
|
|
625
|
+
isActive?: boolean;
|
|
626
|
+
/** whether the button is currently focused or not */
|
|
627
|
+
isFocused?: boolean;
|
|
628
|
+
/** whether the button is currently focused or not */
|
|
629
|
+
isHovered?: boolean;
|
|
630
|
+
}
|
|
631
|
+
|
|
351
632
|
/**
|
|
352
633
|
* Button emphasis definition.
|
|
353
634
|
* @deprecated Use Emphasis instead.
|
|
@@ -392,7 +673,45 @@ interface ButtonProps extends GenericProps, ButtonProps$1 {
|
|
|
392
673
|
* @param ref Component ref.
|
|
393
674
|
* @return React element.
|
|
394
675
|
*/
|
|
395
|
-
declare const Button: Comp<ButtonProps,
|
|
676
|
+
declare const Button: Comp<ButtonProps, HTMLAnchorElement | HTMLButtonElement>;
|
|
677
|
+
|
|
678
|
+
interface IconButtonProps$1 extends BaseButtonProps {
|
|
679
|
+
/**
|
|
680
|
+
* Icon (SVG path).
|
|
681
|
+
* If `image` is also set, `image` will be used instead.
|
|
682
|
+
*/
|
|
683
|
+
icon?: string;
|
|
684
|
+
/**
|
|
685
|
+
* Image (image url).
|
|
686
|
+
* Has priority over `icon`.
|
|
687
|
+
*/
|
|
688
|
+
image?: string;
|
|
689
|
+
/**
|
|
690
|
+
* Label text (required for a11y purpose).
|
|
691
|
+
* If you really don't want an aria-label, you can set an empty label (this is not recommended).
|
|
692
|
+
*/
|
|
693
|
+
label: string;
|
|
694
|
+
/** text to be displayed on hover */
|
|
695
|
+
title?: string;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
interface IconButtonProps extends GenericProps, Omit<IconButtonProps$1, 'title' | 'children'> {
|
|
699
|
+
/**
|
|
700
|
+
* Props to pass to the tooltip.
|
|
701
|
+
* If undefined or if tooltipProps.label is undefined, the label prop will be used as tooltip label.
|
|
702
|
+
* */
|
|
703
|
+
tooltipProps?: Partial<TooltipProps>;
|
|
704
|
+
/** Whether the tooltip should be hidden or not. */
|
|
705
|
+
hideTooltip?: boolean;
|
|
706
|
+
}
|
|
707
|
+
/**
|
|
708
|
+
* IconButton component.
|
|
709
|
+
*
|
|
710
|
+
* @param props Component props.
|
|
711
|
+
* @param ref Component ref.
|
|
712
|
+
* @return React element.
|
|
713
|
+
*/
|
|
714
|
+
declare const IconButton: Comp<IconButtonProps, HTMLButtonElement>;
|
|
396
715
|
|
|
397
716
|
/**
|
|
398
717
|
* Defines the props of the component
|
|
@@ -420,7 +739,7 @@ declare const ButtonGroup: Comp<ButtonGroupProps, HTMLDivElement>;
|
|
|
420
739
|
/**
|
|
421
740
|
* Defines the props of the component.
|
|
422
741
|
*/
|
|
423
|
-
interface CheckboxProps$1 extends HasTheme
|
|
742
|
+
interface CheckboxProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled, HasChecked<boolean | 'intermediate'> {
|
|
424
743
|
/** Helper text. */
|
|
425
744
|
helper?: string;
|
|
426
745
|
/** Native input id property. */
|
|
@@ -460,11 +779,11 @@ declare const Checkbox: Comp<CheckboxProps, HTMLDivElement>;
|
|
|
460
779
|
/**
|
|
461
780
|
* Chip sizes.
|
|
462
781
|
*/
|
|
463
|
-
type ChipSize = Extract<Size, 's' | 'm'>;
|
|
782
|
+
type ChipSize = Extract<Size$1, 's' | 'm'>;
|
|
464
783
|
/**
|
|
465
784
|
* Defines the props of the component.
|
|
466
785
|
*/
|
|
467
|
-
interface ChipProps extends GenericProps, HasTheme, HasAriaDisabled$1 {
|
|
786
|
+
interface ChipProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
468
787
|
/** A component to be rendered after the content. */
|
|
469
788
|
after?: ReactNode;
|
|
470
789
|
/** A component to be rendered before the content. */
|
|
@@ -515,7 +834,7 @@ interface ChipGroupProps extends GenericProps {
|
|
|
515
834
|
* Chip horizontal alignment.
|
|
516
835
|
* @deprecated
|
|
517
836
|
*/
|
|
518
|
-
align?: HorizontalAlignment;
|
|
837
|
+
align?: HorizontalAlignment$1;
|
|
519
838
|
/** List of Chip. */
|
|
520
839
|
children: ReactNode;
|
|
521
840
|
}
|
|
@@ -560,7 +879,7 @@ interface SelectionChipGroupProps<O> extends GenericProps {
|
|
|
560
879
|
/**
|
|
561
880
|
* LumX theme
|
|
562
881
|
*/
|
|
563
|
-
theme?: Theme;
|
|
882
|
+
theme?: Theme$1;
|
|
564
883
|
/**
|
|
565
884
|
* Disabled state
|
|
566
885
|
*/
|
|
@@ -579,294 +898,6 @@ interface SelectionChipGroupProps<O> extends GenericProps {
|
|
|
579
898
|
*/
|
|
580
899
|
declare const SelectionChipGroup: <O>({ onChange, value, getOptionId, getOptionName, inputRef, inputLabel, renderChip, theme, isDisabled, chipTooltipLabel, label, ...forwardedProps }: SelectionChipGroupProps<O>) => react_jsx_runtime.JSX.Element;
|
|
581
900
|
|
|
582
|
-
interface ComboboxButtonProps extends GenericProps {
|
|
583
|
-
/**
|
|
584
|
-
* Label of the combobox button trigger.
|
|
585
|
-
*/
|
|
586
|
-
label: string;
|
|
587
|
-
/**
|
|
588
|
-
* Controls how the `label` is displayed:
|
|
589
|
-
* - `show-selection` (default): Displays the current selection as the label, or falls back to the provided `label`
|
|
590
|
-
* if there is no selection. The `label` will still appear as a tooltip in this mode.
|
|
591
|
-
* - `show-label`: Always displays the provided `label` as the visual label.
|
|
592
|
-
* - `show-tooltip`: Always displays the provided `label` as the visual a tooltip.
|
|
593
|
-
* (useful for IconButton combobox)
|
|
594
|
-
* In all cases, the given `label` is the ARIA label in use
|
|
595
|
-
*/
|
|
596
|
-
labelDisplayMode?: 'show-selection' | 'show-label' | 'show-tooltip';
|
|
597
|
-
/**
|
|
598
|
-
* Focus event handler
|
|
599
|
-
*/
|
|
600
|
-
onFocus?: React__default.FocusEventHandler;
|
|
601
|
-
/**
|
|
602
|
-
* Blur event handler
|
|
603
|
-
*/
|
|
604
|
-
onBlur?: React__default.FocusEventHandler;
|
|
605
|
-
/** Customize the root element. */
|
|
606
|
-
as?: React__default.ElementType;
|
|
607
|
-
}
|
|
608
|
-
/**
|
|
609
|
-
* Combobox button trigger.
|
|
610
|
-
*
|
|
611
|
-
* @family Combobox
|
|
612
|
-
*/
|
|
613
|
-
declare const ComboboxButton: Comp<ComboboxButtonProps, HTMLElement>;
|
|
614
|
-
|
|
615
|
-
/** Combobox option divider */
|
|
616
|
-
declare function ComboboxDivider(): react_jsx_runtime.JSX.Element;
|
|
617
|
-
|
|
618
|
-
/**
|
|
619
|
-
* All TextField props that are extended.
|
|
620
|
-
* We can't use "Omit" here as it is not compatible with the "GenericProps" type from the DS,
|
|
621
|
-
* meaning we would loose all props.
|
|
622
|
-
*
|
|
623
|
-
*/
|
|
624
|
-
type ExtendedTextFieldProps = PartialBy<Pick<TextFieldProps, 'ariaLabel' | 'chips' | 'error' | 'forceFocusStyle' | 'hasError' | 'afterElement' | 'helper' | 'icon' | 'inputRef' | 'textFieldRef' | 'isDisabled' | 'className' | 'isRequired' | 'isValid' | 'label' | 'maxLength' | 'minimumRows' | 'multiline' | 'id' | 'name' | 'placeholder' | 'onBlur' | 'onClear' | 'onKeyDown' | 'onFocus' | 'theme'>, 'ariaLabel' | 'onKeyDown'>;
|
|
625
|
-
type ComboboxInputProps = ExtendedTextFieldProps & {
|
|
626
|
-
/** Whether the toggle button should be hidden */
|
|
627
|
-
hideToggle?: boolean;
|
|
628
|
-
/** Activate the clear button */
|
|
629
|
-
hasClearButton?: boolean;
|
|
630
|
-
/** Clear button forwarded props */
|
|
631
|
-
clearButtonProps?: Omit<TextFieldProps['clearButtonProps'], 'label'>;
|
|
632
|
-
/** Make input read only */
|
|
633
|
-
readOnly?: boolean;
|
|
634
|
-
};
|
|
635
|
-
/**
|
|
636
|
-
* Combobox input trigger.
|
|
637
|
-
*
|
|
638
|
-
* @family Combobox
|
|
639
|
-
*/
|
|
640
|
-
declare const ComboboxInput: ({ hideToggle, inputRef, textFieldRef, afterElement, onFocus, onBlur, onKeyDown, clearButtonProps, hasClearButton, theme, ...textFieldProps }: ComboboxInputProps) => react_jsx_runtime.JSX.Element;
|
|
641
|
-
|
|
642
|
-
interface ComboboxOptionSkeletonProps {
|
|
643
|
-
className?: string;
|
|
644
|
-
index?: number;
|
|
645
|
-
children?: ReactNode | ((options: {
|
|
646
|
-
index?: number;
|
|
647
|
-
}) => ReactNode);
|
|
648
|
-
before?: ComboboxOptionProps['before'];
|
|
649
|
-
after?: ComboboxOptionProps['after'];
|
|
650
|
-
size?: ComboboxOptionProps['size'];
|
|
651
|
-
}
|
|
652
|
-
/**
|
|
653
|
-
* Skeleton for a combobox option.
|
|
654
|
-
* A typography skeleton is rendered by default but can be overridden by passing children.
|
|
655
|
-
*/
|
|
656
|
-
declare const ComboboxOptionSkeleton: ({ className, index, before, after, size, children, }: ComboboxOptionSkeletonProps) => react_jsx_runtime.JSX.Element;
|
|
657
|
-
|
|
658
|
-
interface ComboboxListSkeletonProps {
|
|
659
|
-
isLoadingMore?: boolean;
|
|
660
|
-
children?: ComboboxOptionSkeletonProps['children'];
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
interface ComboboxListBoxProps extends GenericProps$1, React__default.ComponentProps<'ul'> {
|
|
664
|
-
/** Options display in the combobox */
|
|
665
|
-
children?: ReactNode;
|
|
666
|
-
/**
|
|
667
|
-
* Component to use as skeleton for each option instead of the default one.
|
|
668
|
-
* Can either be a react node or a component that receives the index as prop
|
|
669
|
-
*/
|
|
670
|
-
renderItemSkeleton?: ComboboxListSkeletonProps['children'];
|
|
671
|
-
/** Label for the list */
|
|
672
|
-
label?: string;
|
|
673
|
-
/** Props of the popover element. */
|
|
674
|
-
popoverProps?: Partial<PopoverProps>;
|
|
675
|
-
/**
|
|
676
|
-
* An element to display at the bottom of the listbox.
|
|
677
|
-
* No interactive element must be set here as they will not be accessible.
|
|
678
|
-
*/
|
|
679
|
-
footer?: ReactNode;
|
|
680
|
-
/** List ref */
|
|
681
|
-
listRef?: React__default.Ref<HTMLElement>;
|
|
682
|
-
}
|
|
683
|
-
/**
|
|
684
|
-
* The listbox containing the combobox's options.
|
|
685
|
-
*
|
|
686
|
-
* @family Combobox
|
|
687
|
-
* @param ComboboxListBoxProps
|
|
688
|
-
* @returns ComboboxListBox
|
|
689
|
-
*/
|
|
690
|
-
declare const ComboboxListBox: ({ children, renderItemSkeleton, label, popoverProps, footer, listRef, ...forwardedProps }: ComboboxListBoxProps) => react_jsx_runtime.JSX.Element;
|
|
691
|
-
|
|
692
|
-
declare const COMBOBOX_OPTION_CLASSNAME = "lumx-combobox-option";
|
|
693
|
-
declare const LUMX_CLASSNAME = "lumx-list-item";
|
|
694
|
-
/**
|
|
695
|
-
* Props for ComboboxOption with additional generic properties.
|
|
696
|
-
*/
|
|
697
|
-
interface ComboboxOptionComponentProps<O extends object = any> extends GenericProps, Omit<ComboboxOptionProps<O>, 'as'> {
|
|
698
|
-
/** Customize the root element. */
|
|
699
|
-
as?: React__default.ElementType;
|
|
700
|
-
}
|
|
701
|
-
/**
|
|
702
|
-
* Option to set within a combobox list.
|
|
703
|
-
*
|
|
704
|
-
* @family Combobox
|
|
705
|
-
* @param ComboboxOptionProps
|
|
706
|
-
* @returns ComboboxOption
|
|
707
|
-
*/
|
|
708
|
-
declare const ComboboxOption: Comp<ComboboxOptionComponentProps<any>, HTMLElement>;
|
|
709
|
-
|
|
710
|
-
interface ComboboxOptionActionProps extends GenericProps {
|
|
711
|
-
/** Should the action be set as disabled */
|
|
712
|
-
isDisabled?: boolean;
|
|
713
|
-
/** Action to trigger when the action is selected */
|
|
714
|
-
onClick: () => void;
|
|
715
|
-
/** Customize the root element. */
|
|
716
|
-
as?: React__default.ElementType;
|
|
717
|
-
}
|
|
718
|
-
/**
|
|
719
|
-
* Action to set on a Combobox Option.
|
|
720
|
-
* Allows to add an interactive element that
|
|
721
|
-
* can be navigated to and triggered using the keyboard.
|
|
722
|
-
*
|
|
723
|
-
* Defaults as "button"
|
|
724
|
-
*
|
|
725
|
-
* @family Combobox
|
|
726
|
-
* @param ComboboxOptionActionProps
|
|
727
|
-
* @returns ComboboxOptionAction
|
|
728
|
-
*/
|
|
729
|
-
declare const ComboboxOptionAction: (props: ComboboxOptionActionProps) => react_jsx_runtime.JSX.Element;
|
|
730
|
-
|
|
731
|
-
interface ComboboxOptionMoreInfoProps {
|
|
732
|
-
buttonProps?: Partial<IconButtonProps>;
|
|
733
|
-
popoverProps?: PopoverProps;
|
|
734
|
-
onToggle?: (isOpen: boolean) => void;
|
|
735
|
-
children?: React__default.ReactNode;
|
|
736
|
-
}
|
|
737
|
-
/**
|
|
738
|
-
* Display more info on the option as a popover opening on mouse hover or keyboard nav
|
|
739
|
-
* Please consider using a simpler option description instead for better UX and a11y.
|
|
740
|
-
*
|
|
741
|
-
* @family Combobox
|
|
742
|
-
*/
|
|
743
|
-
declare const ComboboxOptionMoreInfo: React__default.FC<ComboboxOptionMoreInfoProps>;
|
|
744
|
-
|
|
745
|
-
interface ComboboxSectionProps {
|
|
746
|
-
/** Forwarded class name */
|
|
747
|
-
className?: string;
|
|
748
|
-
/** The title of the section */
|
|
749
|
-
title?: string;
|
|
750
|
-
/** Whether the section should be displayed as loading */
|
|
751
|
-
isLoading?: boolean;
|
|
752
|
-
/** Custom skeletons to use for loading state */
|
|
753
|
-
renderItemSkeleton?: ComboboxListSkeletonProps['children'];
|
|
754
|
-
/** Options to display */
|
|
755
|
-
children: ReactNode;
|
|
756
|
-
}
|
|
757
|
-
/**
|
|
758
|
-
* Section for options of a Combobox.
|
|
759
|
-
*
|
|
760
|
-
* @family Combobox
|
|
761
|
-
* @param ComboboxSectionProps
|
|
762
|
-
* @returns ComboboxSection
|
|
763
|
-
*/
|
|
764
|
-
declare const ComboboxSection: ({ children, ...props }: ComboboxSectionProps) => react_jsx_runtime.JSX.Element;
|
|
765
|
-
|
|
766
|
-
declare const SUB_COMPONENTS: {
|
|
767
|
-
/**
|
|
768
|
-
* Option to set within a combobox list.
|
|
769
|
-
*
|
|
770
|
-
* @family Combobox
|
|
771
|
-
* @param ComboboxOptionProps
|
|
772
|
-
* @returns ComboboxOption
|
|
773
|
-
*/
|
|
774
|
-
readonly Option: Comp<ComboboxOptionComponentProps<any>, HTMLElement>;
|
|
775
|
-
/**
|
|
776
|
-
* Skeleton for a combobox option.
|
|
777
|
-
* A typography skeleton is rendered by default but can be overridden by passing children.
|
|
778
|
-
*/
|
|
779
|
-
readonly OptionSkeleton: ({ className, index, before, after, size, children, }: ComboboxOptionSkeletonProps) => react_jsx_runtime.JSX.Element;
|
|
780
|
-
/**
|
|
781
|
-
* Section for options of a Combobox.
|
|
782
|
-
*
|
|
783
|
-
* @family Combobox
|
|
784
|
-
* @param ComboboxSectionProps
|
|
785
|
-
* @returns ComboboxSection
|
|
786
|
-
*/
|
|
787
|
-
readonly Section: ({ children, ...props }: ComboboxSectionProps) => react_jsx_runtime.JSX.Element;
|
|
788
|
-
/**
|
|
789
|
-
* Combobox input trigger.
|
|
790
|
-
*
|
|
791
|
-
* @family Combobox
|
|
792
|
-
*/
|
|
793
|
-
readonly Input: ({ hideToggle, inputRef, textFieldRef, afterElement, onFocus, onBlur, onKeyDown, clearButtonProps, hasClearButton, theme, ...textFieldProps }: ComboboxInputProps) => react_jsx_runtime.JSX.Element;
|
|
794
|
-
/**
|
|
795
|
-
* The listbox containing the combobox's options.
|
|
796
|
-
*
|
|
797
|
-
* @family Combobox
|
|
798
|
-
* @param ComboboxListBoxProps
|
|
799
|
-
* @returns ComboboxListBox
|
|
800
|
-
*/
|
|
801
|
-
readonly List: ({ children, renderItemSkeleton, label, popoverProps, footer, listRef, ...forwardedProps }: ComboboxListBoxProps) => react_jsx_runtime.JSX.Element;
|
|
802
|
-
/**
|
|
803
|
-
* Combobox button trigger.
|
|
804
|
-
*
|
|
805
|
-
* @family Combobox
|
|
806
|
-
*/
|
|
807
|
-
readonly Button: Comp<ComboboxButtonProps, HTMLElement>;
|
|
808
|
-
};
|
|
809
|
-
/**
|
|
810
|
-
*
|
|
811
|
-
* A Combobox is a combination of two components:
|
|
812
|
-
* * An input to enter the user's value
|
|
813
|
-
* * A popover with a list of suggestions to fill the value.
|
|
814
|
-
*
|
|
815
|
-
* These two components are included via the Combobox.Input and Combobox.ListBox components.
|
|
816
|
-
*
|
|
817
|
-
* In its simplest implementation the component will automatically filter the given options
|
|
818
|
-
* from the value of the input and fill the input with the textValue of the selected option.
|
|
819
|
-
*
|
|
820
|
-
* Props are available for more complex implementations.
|
|
821
|
-
*
|
|
822
|
-
* @family Combobox
|
|
823
|
-
* @param ComboboxProps
|
|
824
|
-
* @returns Combobox
|
|
825
|
-
*/
|
|
826
|
-
declare const Combobox: (<O>({ id: htmlId, inputValue, defaultInputValue, autoFilter, openOnClick, openOnFocus, status, showEmptyState, showErrorState, selectedIds, onInputChange, onSelect, onOpen, children, selectionType, translations, }: ComboboxProps<O>) => react_jsx_runtime.JSX.Element) & {
|
|
827
|
-
/**
|
|
828
|
-
* Option to set within a combobox list.
|
|
829
|
-
*
|
|
830
|
-
* @family Combobox
|
|
831
|
-
* @param ComboboxOptionProps
|
|
832
|
-
* @returns ComboboxOption
|
|
833
|
-
*/
|
|
834
|
-
readonly Option: Comp<ComboboxOptionComponentProps<any>, HTMLElement>;
|
|
835
|
-
/**
|
|
836
|
-
* Skeleton for a combobox option.
|
|
837
|
-
* A typography skeleton is rendered by default but can be overridden by passing children.
|
|
838
|
-
*/
|
|
839
|
-
readonly OptionSkeleton: ({ className, index, before, after, size, children, }: ComboboxOptionSkeletonProps) => react_jsx_runtime.JSX.Element;
|
|
840
|
-
/**
|
|
841
|
-
* Section for options of a Combobox.
|
|
842
|
-
*
|
|
843
|
-
* @family Combobox
|
|
844
|
-
* @param ComboboxSectionProps
|
|
845
|
-
* @returns ComboboxSection
|
|
846
|
-
*/
|
|
847
|
-
readonly Section: ({ children, ...props }: ComboboxSectionProps) => react_jsx_runtime.JSX.Element;
|
|
848
|
-
/**
|
|
849
|
-
* Combobox input trigger.
|
|
850
|
-
*
|
|
851
|
-
* @family Combobox
|
|
852
|
-
*/
|
|
853
|
-
readonly Input: ({ hideToggle, inputRef, textFieldRef, afterElement, onFocus, onBlur, onKeyDown, clearButtonProps, hasClearButton, theme, ...textFieldProps }: ComboboxInputProps) => react_jsx_runtime.JSX.Element;
|
|
854
|
-
/**
|
|
855
|
-
* The listbox containing the combobox's options.
|
|
856
|
-
*
|
|
857
|
-
* @family Combobox
|
|
858
|
-
* @param ComboboxListBoxProps
|
|
859
|
-
* @returns ComboboxListBox
|
|
860
|
-
*/
|
|
861
|
-
readonly List: ({ children, renderItemSkeleton, label, popoverProps, footer, listRef, ...forwardedProps }: ComboboxListBoxProps) => react_jsx_runtime.JSX.Element;
|
|
862
|
-
/**
|
|
863
|
-
* Combobox button trigger.
|
|
864
|
-
*
|
|
865
|
-
* @family Combobox
|
|
866
|
-
*/
|
|
867
|
-
readonly Button: Comp<ComboboxButtonProps, HTMLElement>;
|
|
868
|
-
};
|
|
869
|
-
|
|
870
901
|
/**
|
|
871
902
|
* Comment block variants.
|
|
872
903
|
*/
|
|
@@ -878,7 +909,7 @@ type CommentBlockVariant = ValueOf$1<typeof CommentBlockVariant>;
|
|
|
878
909
|
/**
|
|
879
910
|
* Defines the props of the component.
|
|
880
911
|
*/
|
|
881
|
-
interface CommentBlockProps extends GenericProps, HasTheme {
|
|
912
|
+
interface CommentBlockProps extends GenericProps, HasTheme$1 {
|
|
882
913
|
/** Action toolbar content. */
|
|
883
914
|
actions?: ReactNode;
|
|
884
915
|
/** Props to pass to the avatar. */
|
|
@@ -1056,7 +1087,7 @@ interface DialogProps extends GenericProps {
|
|
|
1056
1087
|
/** Children */
|
|
1057
1088
|
children?: React__default.ReactNode;
|
|
1058
1089
|
}
|
|
1059
|
-
type DialogSizes = Extract<Size, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
1090
|
+
type DialogSizes = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
1060
1091
|
/**
|
|
1061
1092
|
* Dialog component.
|
|
1062
1093
|
*
|
|
@@ -1069,7 +1100,7 @@ declare const Dialog: Comp<DialogProps, HTMLDivElement>;
|
|
|
1069
1100
|
/**
|
|
1070
1101
|
* Defines the props of the component.
|
|
1071
1102
|
*/
|
|
1072
|
-
interface DividerProps$1 extends HasTheme
|
|
1103
|
+
interface DividerProps$1 extends HasTheme, HasClassName {
|
|
1073
1104
|
/** reference to the root element */
|
|
1074
1105
|
ref?: CommonRef;
|
|
1075
1106
|
}
|
|
@@ -1091,7 +1122,7 @@ declare const Divider: Comp<DividerProps, HTMLHRElement>;
|
|
|
1091
1122
|
/**
|
|
1092
1123
|
* Defines the props of the component.
|
|
1093
1124
|
*/
|
|
1094
|
-
interface DragHandleProps extends GenericProps, HasTheme {
|
|
1125
|
+
interface DragHandleProps extends GenericProps, HasTheme$1 {
|
|
1095
1126
|
}
|
|
1096
1127
|
/**
|
|
1097
1128
|
* DragHandle component.
|
|
@@ -1102,10 +1133,54 @@ interface DragHandleProps extends GenericProps, HasTheme {
|
|
|
1102
1133
|
*/
|
|
1103
1134
|
declare const DragHandle: Comp<DragHandleProps, HTMLDivElement>;
|
|
1104
1135
|
|
|
1136
|
+
/**
|
|
1137
|
+
* Different possible placements for the popover.
|
|
1138
|
+
*/
|
|
1139
|
+
declare const Placement: {
|
|
1140
|
+
readonly AUTO: "auto";
|
|
1141
|
+
readonly AUTO_END: "auto-end";
|
|
1142
|
+
readonly AUTO_START: "auto-start";
|
|
1143
|
+
readonly TOP: "top";
|
|
1144
|
+
readonly TOP_END: "top-end";
|
|
1145
|
+
readonly TOP_START: "top-start";
|
|
1146
|
+
readonly RIGHT: "right";
|
|
1147
|
+
readonly RIGHT_END: "right-end";
|
|
1148
|
+
readonly RIGHT_START: "right-start";
|
|
1149
|
+
readonly BOTTOM: "bottom";
|
|
1150
|
+
readonly BOTTOM_END: "bottom-end";
|
|
1151
|
+
readonly BOTTOM_START: "bottom-start";
|
|
1152
|
+
readonly LEFT: "left";
|
|
1153
|
+
readonly LEFT_END: "left-end";
|
|
1154
|
+
readonly LEFT_START: "left-start";
|
|
1155
|
+
};
|
|
1156
|
+
type Placement = ValueOf$1<typeof Placement>;
|
|
1157
|
+
/**
|
|
1158
|
+
* Offset of the popover.
|
|
1159
|
+
*/
|
|
1160
|
+
interface Offset {
|
|
1161
|
+
/** Offset size along the reference. */
|
|
1162
|
+
along?: number;
|
|
1163
|
+
/** Offset size away from the reference. */
|
|
1164
|
+
away?: number;
|
|
1165
|
+
}
|
|
1166
|
+
/**
|
|
1167
|
+
* Popover elevation index.
|
|
1168
|
+
*/
|
|
1169
|
+
type Elevation = 1 | 2 | 3 | 4 | 5;
|
|
1170
|
+
/**
|
|
1171
|
+
* Popover fit anchor width options.
|
|
1172
|
+
*/
|
|
1173
|
+
declare const FitAnchorWidth: {
|
|
1174
|
+
readonly MAX_WIDTH: "maxWidth";
|
|
1175
|
+
readonly MIN_WIDTH: "minWidth";
|
|
1176
|
+
readonly WIDTH: "width";
|
|
1177
|
+
};
|
|
1178
|
+
type FitAnchorWidth = ValueOf$1<typeof FitAnchorWidth>;
|
|
1179
|
+
|
|
1105
1180
|
/**
|
|
1106
1181
|
* Defines the props of the component.
|
|
1107
1182
|
*/
|
|
1108
|
-
interface PopoverProps extends GenericProps, HasTheme {
|
|
1183
|
+
interface PopoverProps extends GenericProps, HasTheme$1 {
|
|
1109
1184
|
/** Reference to the DOM element used to set the position of the popover. */
|
|
1110
1185
|
anchorRef: React.RefObject<HTMLElement>;
|
|
1111
1186
|
/** Customize the root element. (Must accept ref forwarding and props forwarding!). */
|
|
@@ -1247,7 +1322,7 @@ declare const Dropdown: Comp<DropdownProps, HTMLDivElement>;
|
|
|
1247
1322
|
/**
|
|
1248
1323
|
* Defines the props of the component.
|
|
1249
1324
|
*/
|
|
1250
|
-
interface ExpansionPanelProps extends GenericProps, HasCloseMode, HasTheme {
|
|
1325
|
+
interface ExpansionPanelProps extends GenericProps, HasCloseMode, HasTheme$1 {
|
|
1251
1326
|
/** Whether the expansion panel has a background. */
|
|
1252
1327
|
hasBackground?: boolean;
|
|
1253
1328
|
/** Whether the header has a divider. */
|
|
@@ -1323,7 +1398,7 @@ interface TextProps$1 extends HasClassName {
|
|
|
1323
1398
|
style?: CSSProperties;
|
|
1324
1399
|
}
|
|
1325
1400
|
|
|
1326
|
-
interface FlagProps$1 extends HasClassName, HasTheme
|
|
1401
|
+
interface FlagProps$1 extends HasClassName, HasTheme {
|
|
1327
1402
|
/** Color of the component. */
|
|
1328
1403
|
color?: ColorPalette;
|
|
1329
1404
|
/** Icon to use before the label. */
|
|
@@ -1352,10 +1427,10 @@ interface FlagProps extends GenericProps, Omit<FlagProps$1, 'children' | 'Text'>
|
|
|
1352
1427
|
declare const Flag: Comp<FlagProps, HTMLDivElement>;
|
|
1353
1428
|
|
|
1354
1429
|
type MarginAutoAlignment = Extract<Alignment, 'top' | 'bottom' | 'right' | 'left'>;
|
|
1355
|
-
type GapSize = Extract<Size
|
|
1430
|
+
type GapSize = Extract<Size, 'tiny' | 'regular' | 'medium' | 'big' | 'huge'>;
|
|
1356
1431
|
type SpaceAlignment = Extract<Alignment, 'space-between' | 'space-evenly' | 'space-around'>;
|
|
1357
1432
|
type FlexVerticalAlignment = VerticalAlignment | SpaceAlignment;
|
|
1358
|
-
type FlexHorizontalAlignment = HorizontalAlignment
|
|
1433
|
+
type FlexHorizontalAlignment = HorizontalAlignment | SpaceAlignment;
|
|
1359
1434
|
|
|
1360
1435
|
/**
|
|
1361
1436
|
* Defines the props of the component.
|
|
@@ -1413,7 +1488,7 @@ declare const GenericBlockGapSize: Pick<{
|
|
|
1413
1488
|
readonly medium: "medium";
|
|
1414
1489
|
readonly big: "big";
|
|
1415
1490
|
readonly huge: "huge";
|
|
1416
|
-
}, "
|
|
1491
|
+
}, "medium" | "tiny" | "regular" | "big" | "huge">;
|
|
1417
1492
|
type GenericBlockGapSize = ValueOf$1<typeof GenericBlockGapSize>;
|
|
1418
1493
|
|
|
1419
1494
|
interface GenericBlockProps extends FlexBoxProps {
|
|
@@ -1533,7 +1608,7 @@ declare const useHeadingLevel: () => {
|
|
|
1533
1608
|
headingElement: _lumx_core_js_types.HeadingElement;
|
|
1534
1609
|
};
|
|
1535
1610
|
|
|
1536
|
-
type GridGutterSize = Extract<Size, 'regular' | 'big' | 'huge'>;
|
|
1611
|
+
type GridGutterSize = Extract<Size$1, 'regular' | 'big' | 'huge'>;
|
|
1537
1612
|
/**
|
|
1538
1613
|
* Defines the props of the component.
|
|
1539
1614
|
*/
|
|
@@ -1587,33 +1662,18 @@ type GridColumnGapSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
|
1587
1662
|
/**
|
|
1588
1663
|
* Defines the props of the component.
|
|
1589
1664
|
*/
|
|
1590
|
-
interface GridColumnProps
|
|
1665
|
+
interface GridColumnProps extends GenericProps {
|
|
1591
1666
|
/** Customize the root element. */
|
|
1592
|
-
as?:
|
|
1667
|
+
as?: React.ElementType;
|
|
1593
1668
|
/** Children elements. */
|
|
1594
|
-
children?:
|
|
1669
|
+
children?: ReactNode;
|
|
1595
1670
|
/** Space between columns and rows. */
|
|
1596
1671
|
gap?: GridColumnGapSize;
|
|
1597
1672
|
/** Ideal number of columns. */
|
|
1598
1673
|
maxColumns?: number;
|
|
1599
1674
|
/** Minimum width for each item, reduce the number of column if there is not enough space. */
|
|
1600
1675
|
itemMinWidth?: number;
|
|
1601
|
-
/** Custom styles. */
|
|
1602
|
-
style?: any;
|
|
1603
|
-
/** reference to the root element */
|
|
1604
|
-
ref?: CommonRef;
|
|
1605
1676
|
}
|
|
1606
|
-
|
|
1607
|
-
/**
|
|
1608
|
-
* Defines the props of the component.
|
|
1609
|
-
*/
|
|
1610
|
-
interface GridColumnProps extends GenericProps, GridColumnProps$1 {
|
|
1611
|
-
/** Customize the root element. */
|
|
1612
|
-
as?: React.ElementType;
|
|
1613
|
-
/** Children elements. */
|
|
1614
|
-
children?: React.ReactNode;
|
|
1615
|
-
}
|
|
1616
|
-
|
|
1617
1677
|
/**
|
|
1618
1678
|
* The GridColumn is a layout component that can display children in a grid
|
|
1619
1679
|
* with custom display properties. It also comes with a responsive design,
|
|
@@ -1631,7 +1691,7 @@ type IconSizes = (typeof ICON_SIZES)[number];
|
|
|
1631
1691
|
/**
|
|
1632
1692
|
* Defines the props of the component.
|
|
1633
1693
|
*/
|
|
1634
|
-
interface IconProps$1 extends HasClassName, HasTheme
|
|
1694
|
+
interface IconProps$1 extends HasClassName, HasTheme {
|
|
1635
1695
|
/** Color variant. */
|
|
1636
1696
|
color?: ColorWithVariants;
|
|
1637
1697
|
/** Lightened or darkened variant of the selected icon color. */
|
|
@@ -1677,7 +1737,7 @@ declare module 'react' {
|
|
|
1677
1737
|
/**
|
|
1678
1738
|
* Thumbnail sizes.
|
|
1679
1739
|
*/
|
|
1680
|
-
type ThumbnailSize$1 = Extract<Size
|
|
1740
|
+
type ThumbnailSize$1 = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
1681
1741
|
/**
|
|
1682
1742
|
* Thumbnail variants.
|
|
1683
1743
|
*/
|
|
@@ -1699,13 +1759,13 @@ type ImgHTMLProps = ImgHTMLAttributes<HTMLImageElement>;
|
|
|
1699
1759
|
/**
|
|
1700
1760
|
* Defines the props of the component.
|
|
1701
1761
|
*/
|
|
1702
|
-
interface ThumbnailProps$1 extends HasTheme, HasClassName$1 {
|
|
1762
|
+
interface ThumbnailProps$1 extends HasTheme$1, HasClassName$1 {
|
|
1703
1763
|
/** Alignment of the thumbnail in it's parent (requires flex parent). */
|
|
1704
|
-
align?: HorizontalAlignment;
|
|
1764
|
+
align?: HorizontalAlignment$1;
|
|
1705
1765
|
/** Image alternative text. */
|
|
1706
1766
|
alt: string;
|
|
1707
1767
|
/** Image aspect ratio. */
|
|
1708
|
-
aspectRatio?: AspectRatio;
|
|
1768
|
+
aspectRatio?: AspectRatio$1;
|
|
1709
1769
|
/** Badge. */
|
|
1710
1770
|
badge?: JSXElement$1;
|
|
1711
1771
|
/** Image cross origin resource policy. */
|
|
@@ -1769,11 +1829,11 @@ declare module 'react' {
|
|
|
1769
1829
|
* All available aspect ratios.
|
|
1770
1830
|
* @deprecated
|
|
1771
1831
|
*/
|
|
1772
|
-
declare const ThumbnailAspectRatio: Record<string, AspectRatio>;
|
|
1832
|
+
declare const ThumbnailAspectRatio: Record<string, AspectRatio$1>;
|
|
1773
1833
|
/**
|
|
1774
1834
|
* Thumbnail sizes.
|
|
1775
1835
|
*/
|
|
1776
|
-
type ThumbnailSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
1836
|
+
type ThumbnailSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
1777
1837
|
/**
|
|
1778
1838
|
* Thumbnail variants.
|
|
1779
1839
|
*/
|
|
@@ -1838,15 +1898,15 @@ type ImageBlockCaptionPosition = ValueOf$1<typeof ImageBlockCaptionPosition>;
|
|
|
1838
1898
|
/**
|
|
1839
1899
|
* Image block sizes.
|
|
1840
1900
|
*/
|
|
1841
|
-
type ImageBlockSize = Extract<Size, 'xl' | 'xxl'>;
|
|
1901
|
+
type ImageBlockSize = Extract<Size$1, 'xl' | 'xxl'>;
|
|
1842
1902
|
/**
|
|
1843
1903
|
* Defines the props of the component.
|
|
1844
1904
|
*/
|
|
1845
|
-
interface ImageBlockProps extends GenericProps, HasTheme, ImageCaptionMetadata {
|
|
1905
|
+
interface ImageBlockProps extends GenericProps, HasTheme$1, ImageCaptionMetadata {
|
|
1846
1906
|
/** Action toolbar content. */
|
|
1847
1907
|
actions?: ReactNode;
|
|
1848
1908
|
/** Alignment. */
|
|
1849
|
-
align?: HorizontalAlignment;
|
|
1909
|
+
align?: HorizontalAlignment$1;
|
|
1850
1910
|
/** Image alternative text. */
|
|
1851
1911
|
alt: string;
|
|
1852
1912
|
/** Caption position. */
|
|
@@ -1968,11 +2028,11 @@ declare const InlineList: Comp<InlineListProps, HTMLElement>;
|
|
|
1968
2028
|
/**
|
|
1969
2029
|
* Defines the props of the component.
|
|
1970
2030
|
*/
|
|
1971
|
-
interface InputHelperProps$1 extends HasClassName, HasTheme
|
|
2031
|
+
interface InputHelperProps$1 extends HasClassName, HasTheme {
|
|
1972
2032
|
/** Helper content. */
|
|
1973
2033
|
children: JSXElement;
|
|
1974
2034
|
/** Helper variant. */
|
|
1975
|
-
kind?: Kind
|
|
2035
|
+
kind?: Kind;
|
|
1976
2036
|
/** ref to the root element `p` */
|
|
1977
2037
|
ref?: CommonRef;
|
|
1978
2038
|
/** id for the input helper */
|
|
@@ -1990,10 +2050,34 @@ interface InputHelperProps extends InputHelperProps$1, GenericProps {
|
|
|
1990
2050
|
*/
|
|
1991
2051
|
declare const InputHelper: Comp<InputHelperProps, HTMLParagraphElement>;
|
|
1992
2052
|
|
|
2053
|
+
interface InputLabelProps$1 extends HasClassName, HasTheme {
|
|
2054
|
+
/** Typography variant. */
|
|
2055
|
+
typography?: Typography;
|
|
2056
|
+
/** Label content. */
|
|
2057
|
+
children: JSXElement;
|
|
2058
|
+
/** Native htmlFor property. */
|
|
2059
|
+
htmlFor: string;
|
|
2060
|
+
/** Whether the component is required or not. */
|
|
2061
|
+
isRequired?: boolean;
|
|
2062
|
+
/** ref to the root element */
|
|
2063
|
+
ref?: CommonRef;
|
|
2064
|
+
}
|
|
2065
|
+
|
|
2066
|
+
interface InputLabelProps extends InputLabelProps$1, GenericProps {
|
|
2067
|
+
}
|
|
2068
|
+
/**
|
|
2069
|
+
* InputLabel component.
|
|
2070
|
+
*
|
|
2071
|
+
* @param props Component props.
|
|
2072
|
+
* @param ref Component ref.
|
|
2073
|
+
* @return React element.
|
|
2074
|
+
*/
|
|
2075
|
+
declare const InputLabel: Comp<InputLabelProps, HTMLLabelElement>;
|
|
2076
|
+
|
|
1993
2077
|
/**
|
|
1994
2078
|
* Defines the props of the component.
|
|
1995
2079
|
*/
|
|
1996
|
-
interface LightboxProps extends GenericProps, HasTheme, Pick<AriaAttributes, 'aria-label' | 'aria-labelledby'> {
|
|
2080
|
+
interface LightboxProps extends GenericProps, HasTheme$1, Pick<AriaAttributes, 'aria-label' | 'aria-labelledby'> {
|
|
1997
2081
|
/** Props to pass to the close button (minus those already set by the Lightbox props). */
|
|
1998
2082
|
closeButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis' | 'color'>;
|
|
1999
2083
|
/** Whether the component is open or not. */
|
|
@@ -2023,7 +2107,7 @@ declare const Lightbox: Comp<LightboxProps, HTMLDivElement>;
|
|
|
2023
2107
|
/**
|
|
2024
2108
|
* Defines the props of the component.
|
|
2025
2109
|
*/
|
|
2026
|
-
interface LinkProps$1 extends HasTheme
|
|
2110
|
+
interface LinkProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled {
|
|
2027
2111
|
/** Link label content. */
|
|
2028
2112
|
label?: JSXElement;
|
|
2029
2113
|
/** Color variant. */
|
|
@@ -2077,12 +2161,12 @@ interface LinkProps extends GenericProps, Omit<LinkProps$1, 'label'> {
|
|
|
2077
2161
|
* @param ref Component ref.
|
|
2078
2162
|
* @return React element.
|
|
2079
2163
|
*/
|
|
2080
|
-
declare const Link: Comp<LinkProps,
|
|
2164
|
+
declare const Link: Comp<LinkProps, HTMLAnchorElement | HTMLButtonElement>;
|
|
2081
2165
|
|
|
2082
2166
|
/**
|
|
2083
2167
|
* Defines the props of the component.
|
|
2084
2168
|
*/
|
|
2085
|
-
interface LinkPreviewProps extends GenericProps, HasTheme {
|
|
2169
|
+
interface LinkPreviewProps extends GenericProps, HasTheme$1 {
|
|
2086
2170
|
/** Description. */
|
|
2087
2171
|
description?: string;
|
|
2088
2172
|
/** Link URL. */
|
|
@@ -2092,7 +2176,7 @@ interface LinkPreviewProps extends GenericProps, HasTheme {
|
|
|
2092
2176
|
/** Props to pass to the link (minus those already set by the LinkPreview props). */
|
|
2093
2177
|
linkProps?: Omit<LinkProps, 'color' | 'colorVariant' | 'href' | 'target'>;
|
|
2094
2178
|
/** Size variant. */
|
|
2095
|
-
size?: Extract<Size, 'regular' | 'big'>;
|
|
2179
|
+
size?: Extract<Size$1, 'regular' | 'big'>;
|
|
2096
2180
|
/** Thumbnail for the link preview. */
|
|
2097
2181
|
thumbnailProps?: ThumbnailProps;
|
|
2098
2182
|
/** Title. */
|
|
@@ -2134,7 +2218,7 @@ interface ListProps extends GenericProps {
|
|
|
2134
2218
|
*/
|
|
2135
2219
|
isClickable?: boolean;
|
|
2136
2220
|
/** Item padding size. */
|
|
2137
|
-
itemPadding?: Extract<Size, 'big' | 'huge'>;
|
|
2221
|
+
itemPadding?: Extract<Size$1, 'big' | 'huge'>;
|
|
2138
2222
|
/** Tab index of the list. Default to -1 */
|
|
2139
2223
|
tabIndex?: number;
|
|
2140
2224
|
/**
|
|
@@ -2150,6 +2234,50 @@ declare const List: Comp<ListProps, HTMLUListElement> & {
|
|
|
2150
2234
|
useKeyboardListNavigation: useKeyboardListNavigationType;
|
|
2151
2235
|
};
|
|
2152
2236
|
|
|
2237
|
+
type ListItemSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
2238
|
+
/**
|
|
2239
|
+
* Defines the props of the component.
|
|
2240
|
+
*/
|
|
2241
|
+
interface ListItemProps extends GenericProps, HasAriaDisabled$1 {
|
|
2242
|
+
/** A component to be rendered after the content. */
|
|
2243
|
+
after?: ReactNode;
|
|
2244
|
+
/** A component to be rendered before the content. */
|
|
2245
|
+
before?: ReactNode;
|
|
2246
|
+
/** Content. */
|
|
2247
|
+
children: string | ReactNode;
|
|
2248
|
+
/** Whether the list item should be highlighted or not. */
|
|
2249
|
+
isHighlighted?: boolean;
|
|
2250
|
+
/** Whether the component is selected or not. */
|
|
2251
|
+
isSelected?: boolean;
|
|
2252
|
+
/** Whether link/button is disabled or not. */
|
|
2253
|
+
isDisabled?: boolean;
|
|
2254
|
+
/** Reference to the <li> element. */
|
|
2255
|
+
listItemRef?: Ref<HTMLLIElement>;
|
|
2256
|
+
/** Custom react component for the link (can be used to inject react router Link). */
|
|
2257
|
+
linkAs?: 'a' | any;
|
|
2258
|
+
/** Props that will be passed on to the Link */
|
|
2259
|
+
linkProps?: React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
|
|
2260
|
+
/** Reference to the link element. */
|
|
2261
|
+
linkRef?: Ref<HTMLAnchorElement>;
|
|
2262
|
+
/** Size variant. */
|
|
2263
|
+
size?: ListItemSize;
|
|
2264
|
+
/** On selected callback. */
|
|
2265
|
+
onItemSelected?(evt: SyntheticEvent): void;
|
|
2266
|
+
}
|
|
2267
|
+
/**
|
|
2268
|
+
* Check if the list item is clickable.
|
|
2269
|
+
* @return `true` if the list item is clickable; `false` otherwise.
|
|
2270
|
+
*/
|
|
2271
|
+
declare function isClickable({ linkProps, onItemSelected }: Partial<ListItemProps>): boolean;
|
|
2272
|
+
/**
|
|
2273
|
+
* ListItem component.
|
|
2274
|
+
*
|
|
2275
|
+
* @param props Component props.
|
|
2276
|
+
* @param ref Component ref.
|
|
2277
|
+
* @return React element.
|
|
2278
|
+
*/
|
|
2279
|
+
declare const ListItem: Comp<ListItemProps, HTMLLIElement>;
|
|
2280
|
+
|
|
2153
2281
|
/**
|
|
2154
2282
|
* Defines the props of the component.
|
|
2155
2283
|
*/
|
|
@@ -2188,7 +2316,7 @@ interface MessageProps$1 extends HasClassName {
|
|
|
2188
2316
|
/** Whether the message has a background or not. */
|
|
2189
2317
|
hasBackground?: boolean;
|
|
2190
2318
|
/** Message variant. */
|
|
2191
|
-
kind?: Kind
|
|
2319
|
+
kind?: Kind;
|
|
2192
2320
|
/** Message custom icon SVG path. */
|
|
2193
2321
|
icon?: string;
|
|
2194
2322
|
/** Reference to the message container element. */
|
|
@@ -2222,7 +2350,7 @@ declare const Message: Comp<MessageProps, HTMLDivElement>;
|
|
|
2222
2350
|
/**
|
|
2223
2351
|
* Defines the props of the component.
|
|
2224
2352
|
*/
|
|
2225
|
-
interface MosaicProps extends GenericProps, HasTheme {
|
|
2353
|
+
interface MosaicProps extends GenericProps, HasTheme$1 {
|
|
2226
2354
|
/** Thumbnails. */
|
|
2227
2355
|
thumbnails: ThumbnailProps[];
|
|
2228
2356
|
/** On image click callback. */
|
|
@@ -2257,14 +2385,14 @@ type BaseNavigationItemProps = {
|
|
|
2257
2385
|
};
|
|
2258
2386
|
declare const NavigationItem: (<E extends ElementType = "a">(props: React$1.PropsWithoutRef<React$1.ComponentProps<E>> & {
|
|
2259
2387
|
as?: E | undefined;
|
|
2260
|
-
} & HasTheme & HasClassName$1 & BaseNavigationItemProps & HasRequiredLinkHref<E> & React$1.ComponentProps<E> & {
|
|
2388
|
+
} & HasTheme$1 & HasClassName$1 & BaseNavigationItemProps & HasRequiredLinkHref<E> & React$1.ComponentProps<E> & {
|
|
2261
2389
|
ref?: ComponentRef<E> | undefined;
|
|
2262
2390
|
}) => React.JSX.Element) & {
|
|
2263
2391
|
displayName: string;
|
|
2264
2392
|
className: "lumx-navigation-item";
|
|
2265
2393
|
};
|
|
2266
2394
|
|
|
2267
|
-
type NavigationProps = React.ComponentProps<'nav'> & HasClassName$1 & HasTheme & {
|
|
2395
|
+
type NavigationProps = React.ComponentProps<'nav'> & HasClassName$1 & HasTheme$1 & {
|
|
2268
2396
|
/** Content of the navigation. These components should be of type NavigationItem to be rendered */
|
|
2269
2397
|
children?: React.ReactNode;
|
|
2270
2398
|
orientation?: Orientation$1;
|
|
@@ -2278,7 +2406,7 @@ declare const Navigation: Comp<NavigationProps, HTMLElement> & SubComponents;
|
|
|
2278
2406
|
/**
|
|
2279
2407
|
* Defines the props of the component.
|
|
2280
2408
|
*/
|
|
2281
|
-
interface NotificationProps extends GenericProps, HasTheme {
|
|
2409
|
+
interface NotificationProps extends GenericProps, HasTheme$1 {
|
|
2282
2410
|
/** Action button label. */
|
|
2283
2411
|
actionLabel?: string;
|
|
2284
2412
|
/** Content. */
|
|
@@ -2286,7 +2414,7 @@ interface NotificationProps extends GenericProps, HasTheme {
|
|
|
2286
2414
|
/** Whether the component is open or not. */
|
|
2287
2415
|
isOpen?: boolean;
|
|
2288
2416
|
/** Notification type. */
|
|
2289
|
-
type?: Kind;
|
|
2417
|
+
type?: Kind$1;
|
|
2290
2418
|
/** Z-axis position. */
|
|
2291
2419
|
zIndex?: number;
|
|
2292
2420
|
/** On action button click callback. */
|
|
@@ -2322,7 +2450,7 @@ declare const PopoverDialog: Comp<PopoverDialogProps, HTMLDivElement>;
|
|
|
2322
2450
|
/**
|
|
2323
2451
|
* Defines the props of the component.
|
|
2324
2452
|
*/
|
|
2325
|
-
interface PostBlockProps extends GenericProps, HasTheme {
|
|
2453
|
+
interface PostBlockProps extends GenericProps, HasTheme$1 {
|
|
2326
2454
|
/** Action toolbar content. */
|
|
2327
2455
|
actions?: ReactNode;
|
|
2328
2456
|
/** Attachment content. */
|
|
@@ -2366,7 +2494,7 @@ type ProgressVariant = ValueOf$1<typeof ProgressVariant>;
|
|
|
2366
2494
|
/**
|
|
2367
2495
|
* Defines the props of the component.
|
|
2368
2496
|
*/
|
|
2369
|
-
interface ProgressProps extends GenericProps, HasTheme {
|
|
2497
|
+
interface ProgressProps extends GenericProps, HasTheme$1 {
|
|
2370
2498
|
/** Progress variant. */
|
|
2371
2499
|
variant?: ProgressVariant;
|
|
2372
2500
|
}
|
|
@@ -2383,11 +2511,11 @@ declare const Progress: Comp<ProgressProps, HTMLDivElement>;
|
|
|
2383
2511
|
/**
|
|
2384
2512
|
* Progress sizes.
|
|
2385
2513
|
*/
|
|
2386
|
-
type ProgressCircularSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm'>;
|
|
2514
|
+
type ProgressCircularSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm'>;
|
|
2387
2515
|
/**
|
|
2388
2516
|
* Defines the props of the component.
|
|
2389
2517
|
*/
|
|
2390
|
-
interface ProgressCircularProps extends GenericProps, HasTheme {
|
|
2518
|
+
interface ProgressCircularProps extends GenericProps, HasTheme$1 {
|
|
2391
2519
|
/**
|
|
2392
2520
|
* Progress circular size.
|
|
2393
2521
|
*/
|
|
@@ -2407,7 +2535,7 @@ interface ProgressCircularProps extends GenericProps, HasTheme {
|
|
|
2407
2535
|
*/
|
|
2408
2536
|
declare const ProgressCircular: Comp<ProgressCircularProps, HTMLDivElement>;
|
|
2409
2537
|
|
|
2410
|
-
interface ProgressLinearProps extends GenericProps, HasTheme {
|
|
2538
|
+
interface ProgressLinearProps extends GenericProps, HasTheme$1 {
|
|
2411
2539
|
}
|
|
2412
2540
|
/**
|
|
2413
2541
|
* ProgressLinear component.
|
|
@@ -2520,7 +2648,7 @@ declare const ProgressTrackerStepPanel: Comp<ProgressTrackerStepPanelProps, HTML
|
|
|
2520
2648
|
/**
|
|
2521
2649
|
* Defines the props of the component.
|
|
2522
2650
|
*/
|
|
2523
|
-
interface RadioButtonProps$1 extends HasTheme
|
|
2651
|
+
interface RadioButtonProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled, HasChecked {
|
|
2524
2652
|
/** Helper text. */
|
|
2525
2653
|
helper?: string;
|
|
2526
2654
|
/** Native input id property. */
|
|
@@ -2581,7 +2709,7 @@ declare const SelectVariant: {
|
|
|
2581
2709
|
readonly chip: "chip";
|
|
2582
2710
|
};
|
|
2583
2711
|
type SelectVariant = ValueOf$1<typeof SelectVariant>;
|
|
2584
|
-
interface CoreSelectProps extends GenericProps, HasTheme {
|
|
2712
|
+
interface CoreSelectProps extends GenericProps, HasTheme$1 {
|
|
2585
2713
|
/** Props to pass to the clear button (minus those already set by the Select props). If not specified, the button won't be displayed. */
|
|
2586
2714
|
clearButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
|
|
2587
2715
|
/** Whether the select (input variant) is displayed with error style or not. */
|
|
@@ -2661,7 +2789,7 @@ declare const SelectMultiple: Comp<SelectMultipleProps, HTMLDivElement>;
|
|
|
2661
2789
|
/**
|
|
2662
2790
|
* Defines the props of the component.
|
|
2663
2791
|
*/
|
|
2664
|
-
interface SideNavigationProps extends GenericProps, HasTheme {
|
|
2792
|
+
interface SideNavigationProps extends GenericProps, HasTheme$1 {
|
|
2665
2793
|
/** SideNavigationItem elements. */
|
|
2666
2794
|
children: ReactNode;
|
|
2667
2795
|
}
|
|
@@ -2681,7 +2809,7 @@ interface SideNavigationItemProps extends GenericProps, HasCloseMode {
|
|
|
2681
2809
|
/** SideNavigationItem elements. */
|
|
2682
2810
|
children?: ReactNode;
|
|
2683
2811
|
/** Emphasis variant. */
|
|
2684
|
-
emphasis?: Emphasis;
|
|
2812
|
+
emphasis?: Emphasis$1;
|
|
2685
2813
|
/** Label content. */
|
|
2686
2814
|
label: string | ReactNode;
|
|
2687
2815
|
/** Icon (SVG path). */
|
|
@@ -2713,7 +2841,7 @@ declare const SideNavigationItem: Comp<SideNavigationItemProps, HTMLLIElement>;
|
|
|
2713
2841
|
/**
|
|
2714
2842
|
* Defines the props of the component.
|
|
2715
2843
|
*/
|
|
2716
|
-
interface SkeletonCircleProps$1 extends HasTheme
|
|
2844
|
+
interface SkeletonCircleProps$1 extends HasTheme, HasClassName {
|
|
2717
2845
|
/** Size variant. */
|
|
2718
2846
|
size: GlobalSize;
|
|
2719
2847
|
/** The color of the skeleton. */
|
|
@@ -2734,9 +2862,9 @@ type SkeletonRectangleVariant = ValueOf<typeof SkeletonRectangleVariant>;
|
|
|
2734
2862
|
/**
|
|
2735
2863
|
* Defines the props of the component.
|
|
2736
2864
|
*/
|
|
2737
|
-
interface SkeletonRectangleProps$1 extends HasTheme
|
|
2865
|
+
interface SkeletonRectangleProps$1 extends HasTheme, HasClassName {
|
|
2738
2866
|
/** Aspect ratio (use with width and not height). */
|
|
2739
|
-
aspectRatio?: Extract<AspectRatio
|
|
2867
|
+
aspectRatio?: Extract<AspectRatio, 'square' | 'horizontal' | 'vertical' | 'wide'>;
|
|
2740
2868
|
/** Height size. */
|
|
2741
2869
|
height?: GlobalSize;
|
|
2742
2870
|
/** Border variant. */
|
|
@@ -2752,7 +2880,7 @@ interface SkeletonRectangleProps$1 extends HasTheme$1, HasClassName {
|
|
|
2752
2880
|
/**
|
|
2753
2881
|
* Defines the props of the component.
|
|
2754
2882
|
*/
|
|
2755
|
-
interface SkeletonTypographyProps$1 extends HasTheme
|
|
2883
|
+
interface SkeletonTypographyProps$1 extends HasTheme, HasClassName {
|
|
2756
2884
|
/** Typography variant. */
|
|
2757
2885
|
typography: TypographyInterface;
|
|
2758
2886
|
/** Width CSS property. */
|
|
@@ -2810,7 +2938,7 @@ declare const SkeletonTypography: Comp<SkeletonTypographyProps, HTMLDivElement>;
|
|
|
2810
2938
|
/**
|
|
2811
2939
|
* Defines the props of the component.
|
|
2812
2940
|
*/
|
|
2813
|
-
interface SliderProps extends GenericProps, HasTheme {
|
|
2941
|
+
interface SliderProps extends GenericProps, HasTheme$1 {
|
|
2814
2942
|
/** Helper text. */
|
|
2815
2943
|
helper?: string;
|
|
2816
2944
|
/** Whether the min and max labels should be hidden or not. */
|
|
@@ -2974,7 +3102,7 @@ interface UseSlideshowControls {
|
|
|
2974
3102
|
/**
|
|
2975
3103
|
* Defines the props of the component.
|
|
2976
3104
|
*/
|
|
2977
|
-
interface SlideshowControlsProps extends GenericProps, HasTheme {
|
|
3105
|
+
interface SlideshowControlsProps extends GenericProps, HasTheme$1 {
|
|
2978
3106
|
/** Index of the current slide. */
|
|
2979
3107
|
activeIndex?: number;
|
|
2980
3108
|
/** Props to pass to the next button (minus those already set by the SlideshowControls props). */
|
|
@@ -3018,7 +3146,7 @@ declare const SlideshowControls: Comp<SlideshowControlsProps, HTMLDivElement> &
|
|
|
3018
3146
|
};
|
|
3019
3147
|
};
|
|
3020
3148
|
|
|
3021
|
-
interface SlidesProps extends GenericProps, HasTheme {
|
|
3149
|
+
interface SlidesProps extends GenericProps, HasTheme$1 {
|
|
3022
3150
|
/** current slide active */
|
|
3023
3151
|
activeIndex: number;
|
|
3024
3152
|
/** slides id to be added to the wrapper */
|
|
@@ -3063,7 +3191,7 @@ declare const Slides: Comp<SlidesProps, HTMLDivElement>;
|
|
|
3063
3191
|
/**
|
|
3064
3192
|
* Defines the props of the component.
|
|
3065
3193
|
*/
|
|
3066
|
-
interface SwitchProps$1 extends HasTheme
|
|
3194
|
+
interface SwitchProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled, HasChecked {
|
|
3067
3195
|
/** Helper text. */
|
|
3068
3196
|
helper?: string;
|
|
3069
3197
|
/** Native input id property. */
|
|
@@ -3107,7 +3235,7 @@ declare const Switch: Comp<SwitchProps, HTMLDivElement>;
|
|
|
3107
3235
|
/**
|
|
3108
3236
|
* Defines the props of the component.
|
|
3109
3237
|
*/
|
|
3110
|
-
interface TableProps$1 extends HasTheme
|
|
3238
|
+
interface TableProps$1 extends HasTheme, HasClassName {
|
|
3111
3239
|
/** Whether the table has checkbox or thumbnail on first cell or not. */
|
|
3112
3240
|
hasBefore?: boolean;
|
|
3113
3241
|
/** Whether the table has dividers or not. */
|
|
@@ -3302,7 +3430,7 @@ declare enum TabListLayout {
|
|
|
3302
3430
|
/**
|
|
3303
3431
|
* Defines the props of the component.
|
|
3304
3432
|
*/
|
|
3305
|
-
interface TabListProps extends GenericProps, HasTheme {
|
|
3433
|
+
interface TabListProps extends GenericProps, HasTheme$1 {
|
|
3306
3434
|
/** ARIA label (purpose of the set of tabs). */
|
|
3307
3435
|
['aria-label']: string;
|
|
3308
3436
|
/** Tab list. */
|
|
@@ -3386,11 +3514,79 @@ interface TextProps extends TextProps$1, GenericProps {
|
|
|
3386
3514
|
*/
|
|
3387
3515
|
declare const Text: Comp<TextProps, HTMLElement>;
|
|
3388
3516
|
|
|
3517
|
+
/**
|
|
3518
|
+
* Defines the props of the component.
|
|
3519
|
+
*/
|
|
3520
|
+
interface TextFieldProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
3521
|
+
/** Chip Group to be rendered before the main text input. */
|
|
3522
|
+
chips?: ReactNode;
|
|
3523
|
+
/** Props to pass to the clear button (minus those already set by the TextField props). If not specified, the button won't be displayed. */
|
|
3524
|
+
clearButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
|
|
3525
|
+
/** Error message. */
|
|
3526
|
+
error?: string | ReactNode;
|
|
3527
|
+
/** Whether we force the focus style or not. */
|
|
3528
|
+
forceFocusStyle?: boolean;
|
|
3529
|
+
/** Whether the text field is displayed with error style or not. */
|
|
3530
|
+
hasError?: boolean;
|
|
3531
|
+
/** Additional element to put at the end of the text field. */
|
|
3532
|
+
afterElement?: ReactNode;
|
|
3533
|
+
/** Helper text. */
|
|
3534
|
+
helper?: string | ReactNode;
|
|
3535
|
+
/** Icon (SVG path). */
|
|
3536
|
+
icon?: string;
|
|
3537
|
+
/** Native input id property (generated if not provided to link the label element). */
|
|
3538
|
+
id?: string;
|
|
3539
|
+
/** Reference to the <input> or <textarea> element. */
|
|
3540
|
+
inputRef?: Ref<HTMLInputElement | HTMLTextAreaElement>;
|
|
3541
|
+
/** Whether the component is disabled or not. */
|
|
3542
|
+
isDisabled?: boolean;
|
|
3543
|
+
/** Whether the component is required or not. */
|
|
3544
|
+
isRequired?: boolean;
|
|
3545
|
+
/** Whether the text field is displayed with valid style or not. */
|
|
3546
|
+
isValid?: boolean;
|
|
3547
|
+
/** Label text. */
|
|
3548
|
+
label?: string;
|
|
3549
|
+
/** Additional label props. */
|
|
3550
|
+
labelProps?: InputLabelProps;
|
|
3551
|
+
/** Max string length the input accepts (constrains the input and displays a character counter). */
|
|
3552
|
+
maxLength?: number;
|
|
3553
|
+
/** Minimum number of rows displayed in multiline mode (requires `multiline` to be enabled). */
|
|
3554
|
+
minimumRows?: number;
|
|
3555
|
+
/** Whether the text field is a textarea or an input. */
|
|
3556
|
+
multiline?: boolean;
|
|
3557
|
+
/** Native input name property. */
|
|
3558
|
+
name?: string;
|
|
3559
|
+
/** Placeholder text. */
|
|
3560
|
+
placeholder?: string;
|
|
3561
|
+
/** Reference to the wrapper. */
|
|
3562
|
+
textFieldRef?: Ref<HTMLDivElement>;
|
|
3563
|
+
/** Native input type (only when `multiline` is disabled). */
|
|
3564
|
+
type?: React.ComponentProps<'input'>['type'];
|
|
3565
|
+
/** Value. */
|
|
3566
|
+
value?: string;
|
|
3567
|
+
/** On blur callback. */
|
|
3568
|
+
onBlur?(event: React.FocusEvent): void;
|
|
3569
|
+
/** On change callback. */
|
|
3570
|
+
onChange(value: string, name?: string, event?: SyntheticEvent): void;
|
|
3571
|
+
/** On clear callback. */
|
|
3572
|
+
onClear?(event?: SyntheticEvent): void;
|
|
3573
|
+
/** On focus callback. */
|
|
3574
|
+
onFocus?(event: React.FocusEvent): void;
|
|
3575
|
+
}
|
|
3576
|
+
/**
|
|
3577
|
+
* TextField component.
|
|
3578
|
+
*
|
|
3579
|
+
* @param props Component props.
|
|
3580
|
+
* @param ref Component ref.
|
|
3581
|
+
* @return React element.
|
|
3582
|
+
*/
|
|
3583
|
+
declare const TextField: Comp<TextFieldProps, HTMLDivElement>;
|
|
3584
|
+
|
|
3389
3585
|
type NativeInputProps = Omit<ComponentProps<'input'>, 'value' | 'onChange'>;
|
|
3390
3586
|
/**
|
|
3391
3587
|
* Defines the props of the component.
|
|
3392
3588
|
*/
|
|
3393
|
-
interface RawInputTextProps extends NativeInputProps, HasTheme, HasClassName$1 {
|
|
3589
|
+
interface RawInputTextProps extends NativeInputProps, HasTheme$1, HasClassName$1 {
|
|
3394
3590
|
value?: string;
|
|
3395
3591
|
onChange?: (value: string, name?: string, event?: SyntheticEvent) => void;
|
|
3396
3592
|
}
|
|
@@ -3404,7 +3600,7 @@ type NativeTextareaProps = ComponentProps<'textarea'>;
|
|
|
3404
3600
|
/**
|
|
3405
3601
|
* Defines the props of the component.
|
|
3406
3602
|
*/
|
|
3407
|
-
interface RawInputTextareaProps extends Omit<NativeTextareaProps, 'value' | 'onChange'>, HasTheme, HasClassName$1 {
|
|
3603
|
+
interface RawInputTextareaProps extends Omit<NativeTextareaProps, 'value' | 'onChange'>, HasTheme$1, HasClassName$1 {
|
|
3408
3604
|
minimumRows?: number;
|
|
3409
3605
|
value?: string;
|
|
3410
3606
|
onChange?: (value: string, name?: string, event?: SyntheticEvent) => void;
|
|
@@ -3437,6 +3633,36 @@ interface ToolbarProps extends GenericProps {
|
|
|
3437
3633
|
*/
|
|
3438
3634
|
declare const Toolbar: Comp<ToolbarProps, HTMLDivElement>;
|
|
3439
3635
|
|
|
3636
|
+
declare const ARIA_LINK_MODES: readonly ["aria-describedby", "aria-labelledby"];
|
|
3637
|
+
|
|
3638
|
+
/** Position of the tooltip relative to the anchor element. */
|
|
3639
|
+
type TooltipPlacement = Extract<Placement, 'top' | 'right' | 'bottom' | 'left'>;
|
|
3640
|
+
/**
|
|
3641
|
+
* Defines the props of the component.
|
|
3642
|
+
*/
|
|
3643
|
+
interface TooltipProps extends GenericProps, HasCloseMode {
|
|
3644
|
+
/** Anchor (element on which we activate the tooltip). */
|
|
3645
|
+
children: ReactNode;
|
|
3646
|
+
/** Delay (in ms) before closing the tooltip. */
|
|
3647
|
+
delay?: number;
|
|
3648
|
+
/** Whether the tooltip is displayed even without the mouse hovering the anchor. */
|
|
3649
|
+
forceOpen?: boolean;
|
|
3650
|
+
/** Label text. */
|
|
3651
|
+
label?: string | null | false;
|
|
3652
|
+
/** Placement of the tooltip relative to the anchor. */
|
|
3653
|
+
placement?: TooltipPlacement;
|
|
3654
|
+
/** Choose how the tooltip text should link to the anchor */
|
|
3655
|
+
ariaLinkMode?: (typeof ARIA_LINK_MODES)[number];
|
|
3656
|
+
}
|
|
3657
|
+
/**
|
|
3658
|
+
* Tooltip component.
|
|
3659
|
+
*
|
|
3660
|
+
* @param props Component props.
|
|
3661
|
+
* @param ref Component ref.
|
|
3662
|
+
* @return React element.
|
|
3663
|
+
*/
|
|
3664
|
+
declare const Tooltip: Comp<TooltipProps, HTMLDivElement>;
|
|
3665
|
+
|
|
3440
3666
|
/**
|
|
3441
3667
|
* Uploader variants.
|
|
3442
3668
|
*/
|
|
@@ -3449,7 +3675,7 @@ type UploaderVariant = ValueOf$1<typeof UploaderVariant>;
|
|
|
3449
3675
|
/**
|
|
3450
3676
|
* Uploader sizes.
|
|
3451
3677
|
*/
|
|
3452
|
-
type UploaderSize = Extract<Size, 'xl' | 'xxl'>;
|
|
3678
|
+
type UploaderSize = Extract<Size$1, 'xl' | 'xxl'>;
|
|
3453
3679
|
/**
|
|
3454
3680
|
* Extend native HTML input props with specialized `onChange` providing the a `File` array.
|
|
3455
3681
|
*/
|
|
@@ -3459,9 +3685,9 @@ interface FileInputProps extends Omit<React__default.ComponentProps<'input'>, 'o
|
|
|
3459
3685
|
/**
|
|
3460
3686
|
* Defines the props of the component.
|
|
3461
3687
|
*/
|
|
3462
|
-
interface UploaderProps extends GenericProps, HasTheme, HasAriaDisabled$1 {
|
|
3688
|
+
interface UploaderProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
3463
3689
|
/** Image aspect ratio. */
|
|
3464
|
-
aspectRatio?: AspectRatio;
|
|
3690
|
+
aspectRatio?: AspectRatio$1;
|
|
3465
3691
|
/** Icon (SVG path). */
|
|
3466
3692
|
icon?: string;
|
|
3467
3693
|
/** Disabled state */
|
|
@@ -3489,11 +3715,11 @@ declare const Uploader: Comp<UploaderProps, HTMLElement>;
|
|
|
3489
3715
|
/**
|
|
3490
3716
|
* User block sizes.
|
|
3491
3717
|
*/
|
|
3492
|
-
type UserBlockSize = Extract<Size, 'xs' | 's' | 'm' | 'l'>;
|
|
3718
|
+
type UserBlockSize = Extract<Size$1, 'xs' | 's' | 'm' | 'l'>;
|
|
3493
3719
|
/**
|
|
3494
3720
|
* Defines the props of the component.
|
|
3495
3721
|
*/
|
|
3496
|
-
interface UserBlockProps extends GenericProps, HasTheme {
|
|
3722
|
+
interface UserBlockProps extends GenericProps, HasTheme$1 {
|
|
3497
3723
|
/** Props to pass to the avatar. */
|
|
3498
3724
|
avatarProps?: Omit<AvatarProps, 'alt'>;
|
|
3499
3725
|
/** Additional fields used to describe the user. */
|
|
@@ -3534,7 +3760,7 @@ interface UserBlockProps extends GenericProps, HasTheme {
|
|
|
3534
3760
|
*/
|
|
3535
3761
|
declare const UserBlock: Comp<UserBlockProps, HTMLDivElement>;
|
|
3536
3762
|
|
|
3537
|
-
type ThemeContextValue = Theme | undefined;
|
|
3763
|
+
type ThemeContextValue = Theme$1 | undefined;
|
|
3538
3764
|
/** Provide a theme context to all children. */
|
|
3539
3765
|
declare const ThemeProvider: React__default.FC<{
|
|
3540
3766
|
value: ThemeContextValue;
|
|
@@ -3543,5 +3769,5 @@ declare const ThemeProvider: React__default.FC<{
|
|
|
3543
3769
|
/** Get the theme in the current context. */
|
|
3544
3770
|
declare function useTheme(): ThemeContextValue;
|
|
3545
3771
|
|
|
3546
|
-
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper,
|
|
3547
|
-
export type { AlertDialogProps, AutocompleteMultipleProps, AutocompleteProps, AvatarProps, AvatarSize, BadgeProps, BadgeWrapperProps, ButtonGroupProps, ButtonProps, CheckboxProps, ChipGroupProps, ChipProps,
|
|
3772
|
+
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonEmphasis, ButtonGroup, CLASSNAME, COMPONENT_NAME, Checkbox, Chip, ChipGroup, CommentBlock, CommentBlockVariant, DEFAULT_PROPS, 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, SelectionChipGroup, SideNavigation, SideNavigationItem, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableCellVariant as TableCellVariantType, TableHeader, TableRow, Text, TextField, ThOrder, ThOrder as ThOrderType, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, Toolbar, Tooltip, Uploader, UploaderVariant, UserBlock, clamp, isClickable, useFocusPointStyle, useHeadingLevel, useTheme };
|
|
3773
|
+
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, SelectionChipGroupProps, 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 };
|