@lumx/react 4.3.2-alpha.10 → 4.3.2-alpha.11
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/Tooltip-sXtC5rw3.d.ts +873 -0
- package/_internal/{BcRzrT9Y.js → BCgo9dYV.js} +332 -7
- package/_internal/BCgo9dYV.js.map +1 -0
- package/index.d.ts +88 -816
- package/index.js +58 -383
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/utils/index.d.ts +35 -1
- package/utils/index.js +2 -2
- package/_internal/BcRzrT9Y.js.map +0 -1
package/index.d.ts
CHANGED
|
@@ -1,28 +1,15 @@
|
|
|
1
|
-
import { Kind
|
|
1
|
+
import { Kind, HorizontalAlignment, Size, ColorPalette as ColorPalette$1, Theme, GenericProps as GenericProps$1, Orientation as Orientation$1, Alignment as Alignment$1, AspectRatio, ColorWithVariants as ColorWithVariants$1, ColorVariant as ColorVariant$1, Typography as Typography$1, Emphasis } 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 as
|
|
4
|
+
import { GenericProps, HasTheme, HasAriaDisabled as HasAriaDisabled$1, PartialBy, ValueOf as ValueOf$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, {
|
|
7
|
+
import React__default, { ReactNode, SyntheticEvent, ReactElement, MouseEventHandler, KeyboardEventHandler, Ref, RefObject, CSSProperties, ImgHTMLAttributes, AriaAttributes, SetStateAction, Key, ElementType, ComponentProps } from 'react';
|
|
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';
|
|
8
10
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
11
|
import { Selector } from '@lumx/core/js/types/Selector';
|
|
10
12
|
|
|
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
|
-
|
|
26
13
|
/**
|
|
27
14
|
* Extract ref type for a component or JSX intrinsic element
|
|
28
15
|
*
|
|
@@ -35,7 +22,7 @@ type ComponentRef<C> = C extends keyof JSX.IntrinsicElements ? JSX.IntrinsicElem
|
|
|
35
22
|
|
|
36
23
|
interface AlertDialogProps extends Omit<DialogProps, 'header' | 'footer'> {
|
|
37
24
|
/** Message variant. */
|
|
38
|
-
kind?: Kind
|
|
25
|
+
kind?: Kind;
|
|
39
26
|
/** Dialog title. */
|
|
40
27
|
title?: string;
|
|
41
28
|
/** Props forwarded to the confirm button */
|
|
@@ -70,7 +57,7 @@ declare const AlertDialog: Comp<AlertDialogProps, HTMLDivElement>;
|
|
|
70
57
|
/**
|
|
71
58
|
* Defines the props of the component.
|
|
72
59
|
*/
|
|
73
|
-
interface AutocompleteProps extends GenericProps, HasTheme
|
|
60
|
+
interface AutocompleteProps extends GenericProps, HasTheme {
|
|
74
61
|
/**
|
|
75
62
|
* Whether the suggestions list should display anchored to the input or to the wrapper.
|
|
76
63
|
* @see {@link DropdownProps#anchorToInput}
|
|
@@ -243,7 +230,7 @@ interface AutocompleteMultipleProps extends AutocompleteProps {
|
|
|
243
230
|
/** Selected values. */
|
|
244
231
|
values: any[];
|
|
245
232
|
/** Alignment of the chips in the autocomplete. */
|
|
246
|
-
chipsAlignment?: HorizontalAlignment
|
|
233
|
+
chipsAlignment?: HorizontalAlignment;
|
|
247
234
|
/** Selected value render function. Default: Renders the value inside of a Chip. */
|
|
248
235
|
selectedChipRender(choice: any, index: number, onClear?: (event: React.MouseEvent, val: any) => void, isDisabled?: boolean): ReactNode | string;
|
|
249
236
|
}
|
|
@@ -259,11 +246,11 @@ declare const AutocompleteMultiple: Comp<AutocompleteMultipleProps, HTMLDivEleme
|
|
|
259
246
|
/**
|
|
260
247
|
* Avatar sizes.
|
|
261
248
|
*/
|
|
262
|
-
type AvatarSize = Extract<Size
|
|
249
|
+
type AvatarSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
263
250
|
/**
|
|
264
251
|
* Defines the props of the component.
|
|
265
252
|
*/
|
|
266
|
-
interface AvatarProps extends GenericProps, HasTheme
|
|
253
|
+
interface AvatarProps extends GenericProps, HasTheme {
|
|
267
254
|
/** Action toolbar content. */
|
|
268
255
|
actions?: ReactNode;
|
|
269
256
|
/** Image alternative text. */
|
|
@@ -294,215 +281,6 @@ interface AvatarProps extends GenericProps, HasTheme$1 {
|
|
|
294
281
|
*/
|
|
295
282
|
declare const Avatar: Comp<AvatarProps, HTMLDivElement>;
|
|
296
283
|
|
|
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
|
-
|
|
506
284
|
/** Union type of all heading elements */
|
|
507
285
|
type HeadingElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
508
286
|
|
|
@@ -512,14 +290,11 @@ type TextElement = 'span' | 'p' | HeadingElement;
|
|
|
512
290
|
/** Get types of the values of a record. */
|
|
513
291
|
type ValueOf<T extends Record<any, any>> = T[keyof T];
|
|
514
292
|
|
|
515
|
-
|
|
293
|
+
/** Transform a string literal into kebab case */
|
|
294
|
+
type KebabCase<S> = S extends `${infer C}${infer T}` ? T extends Uncapitalize<T> ? `${Uncapitalize<C>}${KebabCase<T>}` : `${Uncapitalize<C>}-${KebabCase<T>}` : S;
|
|
516
295
|
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
interface HasAriaDisabled {
|
|
520
|
-
/** Similar to `disabled` but does not block pointer events or focus */
|
|
521
|
-
'aria-disabled'?: Booleanish;
|
|
522
|
-
}
|
|
296
|
+
/** Transform the component name into the lumx class name. */
|
|
297
|
+
type LumxClassName<TComponentName extends string> = `lumx-${KebabCase<TComponentName>}`;
|
|
523
298
|
|
|
524
299
|
interface HasChecked<C = boolean> {
|
|
525
300
|
/** Component checked state. */
|
|
@@ -528,13 +303,6 @@ interface HasChecked<C = boolean> {
|
|
|
528
303
|
checked?: boolean;
|
|
529
304
|
}
|
|
530
305
|
|
|
531
|
-
interface HasDisabled {
|
|
532
|
-
/** Whether the component is disabled or not. */
|
|
533
|
-
isDisabled?: boolean;
|
|
534
|
-
/** @alias isDisabled */
|
|
535
|
-
disabled?: boolean;
|
|
536
|
-
}
|
|
537
|
-
|
|
538
306
|
/**
|
|
539
307
|
* Defines the props of the component.
|
|
540
308
|
*/
|
|
@@ -580,49 +348,6 @@ interface BadgeWrapperProps extends GenericProps, Omit<BadgeWrapperProps$1, 'chi
|
|
|
580
348
|
}
|
|
581
349
|
declare const BadgeWrapper: Comp<BadgeWrapperProps, HTMLDivElement>;
|
|
582
350
|
|
|
583
|
-
interface BaseClickableProps extends HasDisabled, HasAriaDisabled {
|
|
584
|
-
children?: JSXElement;
|
|
585
|
-
onClick?: (event?: any) => void;
|
|
586
|
-
ref?: CommonRef;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
/**
|
|
590
|
-
* Button size definition.
|
|
591
|
-
*/
|
|
592
|
-
type ButtonSize = Extract<Size, 's' | 'm'>;
|
|
593
|
-
interface BaseButtonProps extends Pick<AriaAttributes, 'aria-expanded' | 'aria-haspopup' | 'aria-pressed' | 'aria-label'>, HasClassName, HasTheme, HasAriaDisabled, BaseClickableProps {
|
|
594
|
-
/** Color variant. */
|
|
595
|
-
color?: ColorPalette;
|
|
596
|
-
/** Emphasis variant. */
|
|
597
|
-
emphasis?: Emphasis;
|
|
598
|
-
/** Whether or not the button has a background color in low emphasis. */
|
|
599
|
-
hasBackground?: boolean;
|
|
600
|
-
/** Native anchor href property. It determines whether the Button will be a <button> or an <a>. */
|
|
601
|
-
href?: string;
|
|
602
|
-
/** Whether the component is disabled or not. */
|
|
603
|
-
isDisabled?: boolean;
|
|
604
|
-
/** Whether the component is selected or not (unsupported in `high` emphasis). */
|
|
605
|
-
isSelected?: boolean;
|
|
606
|
-
/** Native button name property. */
|
|
607
|
-
name?: string;
|
|
608
|
-
/** Size variant. */
|
|
609
|
-
size?: ButtonSize;
|
|
610
|
-
/** Native anchor target property. */
|
|
611
|
-
target?: '_self' | '_blank' | '_parent' | '_top';
|
|
612
|
-
/** Native button type. */
|
|
613
|
-
type?: 'submit' | 'reset' | 'button' | undefined;
|
|
614
|
-
/** Custom component for the link (can be used to inject router Link). */
|
|
615
|
-
linkAs?: 'a' | any;
|
|
616
|
-
/** whether the button is dispalyed in full width or not */
|
|
617
|
-
fullWidth?: boolean;
|
|
618
|
-
/** whether the button is currently active or not */
|
|
619
|
-
isActive?: boolean;
|
|
620
|
-
/** whether the button is currently focused or not */
|
|
621
|
-
isFocused?: boolean;
|
|
622
|
-
/** whether the button is currently focused or not */
|
|
623
|
-
isHovered?: boolean;
|
|
624
|
-
}
|
|
625
|
-
|
|
626
351
|
/**
|
|
627
352
|
* Button emphasis definition.
|
|
628
353
|
* @deprecated Use Emphasis instead.
|
|
@@ -649,6 +374,10 @@ interface ButtonProps$1 extends BaseButtonProps {
|
|
|
649
374
|
* Component display name.
|
|
650
375
|
*/
|
|
651
376
|
declare const COMPONENT_NAME = "Button";
|
|
377
|
+
/**
|
|
378
|
+
* Component default class name and class prefix.
|
|
379
|
+
*/
|
|
380
|
+
declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
|
|
652
381
|
/**
|
|
653
382
|
* Component default props.
|
|
654
383
|
*/
|
|
@@ -665,44 +394,6 @@ interface ButtonProps extends GenericProps, ButtonProps$1 {
|
|
|
665
394
|
*/
|
|
666
395
|
declare const Button: Comp<ButtonProps, HTMLButtonElement | HTMLAnchorElement>;
|
|
667
396
|
|
|
668
|
-
interface IconButtonProps$1 extends BaseButtonProps {
|
|
669
|
-
/**
|
|
670
|
-
* Icon (SVG path).
|
|
671
|
-
* If `image` is also set, `image` will be used instead.
|
|
672
|
-
*/
|
|
673
|
-
icon?: string;
|
|
674
|
-
/**
|
|
675
|
-
* Image (image url).
|
|
676
|
-
* Has priority over `icon`.
|
|
677
|
-
*/
|
|
678
|
-
image?: string;
|
|
679
|
-
/**
|
|
680
|
-
* Label text (required for a11y purpose).
|
|
681
|
-
* If you really don't want an aria-label, you can set an empty label (this is not recommended).
|
|
682
|
-
*/
|
|
683
|
-
label: string;
|
|
684
|
-
/** text to be displayed on hover */
|
|
685
|
-
title?: string;
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
interface IconButtonProps extends GenericProps, Omit<IconButtonProps$1, 'title' | 'children'> {
|
|
689
|
-
/**
|
|
690
|
-
* Props to pass to the tooltip.
|
|
691
|
-
* If undefined or if tooltipProps.label is undefined, the label prop will be used as tooltip label.
|
|
692
|
-
* */
|
|
693
|
-
tooltipProps?: Partial<TooltipProps>;
|
|
694
|
-
/** Whether the tooltip should be hidden or not. */
|
|
695
|
-
hideTooltip?: boolean;
|
|
696
|
-
}
|
|
697
|
-
/**
|
|
698
|
-
* IconButton component.
|
|
699
|
-
*
|
|
700
|
-
* @param props Component props.
|
|
701
|
-
* @param ref Component ref.
|
|
702
|
-
* @return React element.
|
|
703
|
-
*/
|
|
704
|
-
declare const IconButton: Comp<IconButtonProps, HTMLButtonElement>;
|
|
705
|
-
|
|
706
397
|
/**
|
|
707
398
|
* Defines the props of the component
|
|
708
399
|
*/
|
|
@@ -729,7 +420,7 @@ declare const ButtonGroup: Comp<ButtonGroupProps, HTMLDivElement>;
|
|
|
729
420
|
/**
|
|
730
421
|
* Defines the props of the component.
|
|
731
422
|
*/
|
|
732
|
-
interface CheckboxProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled, HasChecked<boolean | 'intermediate'> {
|
|
423
|
+
interface CheckboxProps$1 extends HasTheme$1, HasClassName, HasAriaDisabled, HasDisabled, HasChecked<boolean | 'intermediate'> {
|
|
733
424
|
/** Helper text. */
|
|
734
425
|
helper?: string;
|
|
735
426
|
/** Native input id property. */
|
|
@@ -769,11 +460,11 @@ declare const Checkbox: Comp<CheckboxProps, HTMLDivElement>;
|
|
|
769
460
|
/**
|
|
770
461
|
* Chip sizes.
|
|
771
462
|
*/
|
|
772
|
-
type ChipSize = Extract<Size
|
|
463
|
+
type ChipSize = Extract<Size, 's' | 'm'>;
|
|
773
464
|
/**
|
|
774
465
|
* Defines the props of the component.
|
|
775
466
|
*/
|
|
776
|
-
interface ChipProps extends GenericProps, HasTheme
|
|
467
|
+
interface ChipProps extends GenericProps, HasTheme, HasAriaDisabled$1 {
|
|
777
468
|
/** A component to be rendered after the content. */
|
|
778
469
|
after?: ReactNode;
|
|
779
470
|
/** A component to be rendered before the content. */
|
|
@@ -824,7 +515,7 @@ interface ChipGroupProps extends GenericProps {
|
|
|
824
515
|
* Chip horizontal alignment.
|
|
825
516
|
* @deprecated
|
|
826
517
|
*/
|
|
827
|
-
align?: HorizontalAlignment
|
|
518
|
+
align?: HorizontalAlignment;
|
|
828
519
|
/** List of Chip. */
|
|
829
520
|
children: ReactNode;
|
|
830
521
|
}
|
|
@@ -869,7 +560,7 @@ interface SelectionChipGroupProps<O> extends GenericProps {
|
|
|
869
560
|
/**
|
|
870
561
|
* LumX theme
|
|
871
562
|
*/
|
|
872
|
-
theme?: Theme
|
|
563
|
+
theme?: Theme;
|
|
873
564
|
/**
|
|
874
565
|
* Disabled state
|
|
875
566
|
*/
|
|
@@ -948,216 +639,6 @@ type ComboboxInputProps = ExtendedTextFieldProps & {
|
|
|
948
639
|
*/
|
|
949
640
|
declare const ComboboxInput: ({ hideToggle, inputRef, textFieldRef, afterElement, onFocus, onBlur, onKeyDown, clearButtonProps, hasClearButton, theme, ...textFieldProps }: ComboboxInputProps) => react_jsx_runtime.JSX.Element;
|
|
950
641
|
|
|
951
|
-
/**
|
|
952
|
-
* The source of the combobox option selection
|
|
953
|
-
* It could either be on click / touch or keyboard selection
|
|
954
|
-
*/
|
|
955
|
-
type ComboboxOptionSelectEventSource = 'keyboard' | 'click';
|
|
956
|
-
type ComboboxSelectionType = 'single' | 'multiple';
|
|
957
|
-
type BaseLoadingStatus = 'loading' | 'loadingMore' | 'idle' | 'error' | 'debouncing' | 'filtering' | 'empty';
|
|
958
|
-
/**
|
|
959
|
-
* Options related types
|
|
960
|
-
*/
|
|
961
|
-
/** All possible values a combobox option can have */
|
|
962
|
-
type BaseComboboxOptionProps<O = any> = {
|
|
963
|
-
/**
|
|
964
|
-
* A unique id to track the option
|
|
965
|
-
*/
|
|
966
|
-
id: string;
|
|
967
|
-
/**
|
|
968
|
-
* Whether the current input value should filter this option.
|
|
969
|
-
*/
|
|
970
|
-
filterFromInput?: boolean;
|
|
971
|
-
/**
|
|
972
|
-
* Callback to call when the option is selected.
|
|
973
|
-
* This should only be used to add custom actions on options.
|
|
974
|
-
* For most cases, the "onSelect" on the Combobox root component should be enough.
|
|
975
|
-
*/
|
|
976
|
-
onSelect?: (option: O, eventSource?: ComboboxOptionSelectEventSource) => void;
|
|
977
|
-
/**
|
|
978
|
-
* Additional data to link to the option. This can be useful to retrieve with `onSelect`.
|
|
979
|
-
*/
|
|
980
|
-
data?: O;
|
|
981
|
-
/**
|
|
982
|
-
* Whether the option is disabled
|
|
983
|
-
*/
|
|
984
|
-
isDisabled?: boolean;
|
|
985
|
-
/**
|
|
986
|
-
* The components to use to visually customize options.
|
|
987
|
-
* ! Options must not have interactive elements.
|
|
988
|
-
* ! If you need additional actions, you might need to create custom options and search how to
|
|
989
|
-
* ! make them accessible.
|
|
990
|
-
*/
|
|
991
|
-
children?: ReactNode;
|
|
992
|
-
/**
|
|
993
|
-
* The text value the option has.
|
|
994
|
-
* This is the value used to filter the options by when manual filtering is disabled
|
|
995
|
-
* and that will be used as input value when an option is selected
|
|
996
|
-
*/
|
|
997
|
-
textValue?: string;
|
|
998
|
-
/**
|
|
999
|
-
* Element to display before the content of the option.
|
|
1000
|
-
* ! Options must not have interactive elements.
|
|
1001
|
-
* ! If you need additional actions, you might need to create custom options and search how to
|
|
1002
|
-
* ! make them accessible.
|
|
1003
|
-
*/
|
|
1004
|
-
before?: ReactNode;
|
|
1005
|
-
/**
|
|
1006
|
-
* Element to display after the content of the option.
|
|
1007
|
-
* ! Options must not have interactive elements.
|
|
1008
|
-
* ! If you need additional actions, you might need to create custom options and search how to
|
|
1009
|
-
* ! make them accessible.
|
|
1010
|
-
*/
|
|
1011
|
-
after?: ReactNode;
|
|
1012
|
-
/**
|
|
1013
|
-
* Size of the list item.
|
|
1014
|
-
* Default to tiny
|
|
1015
|
-
*/
|
|
1016
|
-
size?: ListItemSize;
|
|
1017
|
-
/**
|
|
1018
|
-
* Fill to activate a tooltip on mouse over
|
|
1019
|
-
*/
|
|
1020
|
-
tooltipProps?: Partial<TooltipProps>;
|
|
1021
|
-
};
|
|
1022
|
-
/**
|
|
1023
|
-
* Props for when an option has no children.
|
|
1024
|
-
* In these case, we need at least the text value to know what to display
|
|
1025
|
-
* */
|
|
1026
|
-
type TextValueOnly<O = any> = BaseComboboxOptionProps<O> & {
|
|
1027
|
-
children?: never;
|
|
1028
|
-
textValue: string;
|
|
1029
|
-
};
|
|
1030
|
-
/**
|
|
1031
|
-
* Props for when an option has a react element as string
|
|
1032
|
-
* In that case, we can use the children as the textValue without having
|
|
1033
|
-
* to set a manual props.
|
|
1034
|
-
* The props is still available to have a text value different than the displayed value.
|
|
1035
|
-
*/
|
|
1036
|
-
type StringOption<O = any> = BaseComboboxOptionProps<O> & {
|
|
1037
|
-
children: ReactText;
|
|
1038
|
-
textValue?: string;
|
|
1039
|
-
};
|
|
1040
|
-
/**
|
|
1041
|
-
* Props for when an option has a react element as children
|
|
1042
|
-
* In that case, we cannot know what the actual value of the
|
|
1043
|
-
* option is, so the `textValue` prop has to be set.
|
|
1044
|
-
*/
|
|
1045
|
-
type NodeOption<O = any> = BaseComboboxOptionProps<O> & {
|
|
1046
|
-
children: Exclude<ReactNode, ReactText>;
|
|
1047
|
-
textValue: string;
|
|
1048
|
-
};
|
|
1049
|
-
/** Props for the ComboboxOption component */
|
|
1050
|
-
type ComboboxOptionProps<O = any> = TextValueOnly<O> | StringOption<O> | NodeOption<O>;
|
|
1051
|
-
/** Shared data between all combobox option types. */
|
|
1052
|
-
interface BaseRegisteredComboboxOption {
|
|
1053
|
-
id: string;
|
|
1054
|
-
/** The id that was generated for this option */
|
|
1055
|
-
generatedId: string;
|
|
1056
|
-
/** Whether the "option" is an action */
|
|
1057
|
-
isAction?: boolean;
|
|
1058
|
-
/** Whether the "option" is disabled */
|
|
1059
|
-
isDisabled?: boolean;
|
|
1060
|
-
}
|
|
1061
|
-
/** Combobox value */
|
|
1062
|
-
interface RegisteredComboboxOptionValue<O = any> extends BaseRegisteredComboboxOption, Pick<ComboboxOptionProps<O>, 'data' | 'filterFromInput' | 'textValue' | 'onSelect'> {
|
|
1063
|
-
/** The section the option is a child of. */
|
|
1064
|
-
sectionId?: string;
|
|
1065
|
-
/** Whether the "option" is an action */
|
|
1066
|
-
isAction?: never;
|
|
1067
|
-
}
|
|
1068
|
-
type OnComboboxSelect<O = any> = (option: RegisteredComboboxOptionValue<O>) => void;
|
|
1069
|
-
type OnComboboxInputChange = TextFieldProps['onChange'];
|
|
1070
|
-
type ComboboxTranslations = {
|
|
1071
|
-
clearLabel: string;
|
|
1072
|
-
showSuggestionsLabel: string;
|
|
1073
|
-
loadingLabel: string;
|
|
1074
|
-
noResultsForInputLabel: (input?: string) => string;
|
|
1075
|
-
serviceUnavailableLabel: string;
|
|
1076
|
-
tryReloadLabel: string;
|
|
1077
|
-
nbOptionsLabel: (options: number) => string;
|
|
1078
|
-
};
|
|
1079
|
-
/** Props for the main combobox component. */
|
|
1080
|
-
type ComboboxProps<O = any> = {
|
|
1081
|
-
/**
|
|
1082
|
-
* HTML id
|
|
1083
|
-
*/
|
|
1084
|
-
id?: string;
|
|
1085
|
-
/**
|
|
1086
|
-
* The current option id to set as selected.
|
|
1087
|
-
* If omitted, the local state will be used instead;
|
|
1088
|
-
*/
|
|
1089
|
-
selectedIds?: Array<string | number>;
|
|
1090
|
-
/**
|
|
1091
|
-
* The current value for the combobox input.
|
|
1092
|
-
* If omitted, the input is controlled locally */
|
|
1093
|
-
inputValue?: string;
|
|
1094
|
-
/**
|
|
1095
|
-
* The default value to set on the input.
|
|
1096
|
-
* Use this if you want to initialize the input with a value and not control it
|
|
1097
|
-
*/
|
|
1098
|
-
defaultInputValue?: string;
|
|
1099
|
-
/**
|
|
1100
|
-
* Whether the options should be automatically filtered or not.
|
|
1101
|
-
* By default, the combobox will try to filter the options from the current input value
|
|
1102
|
-
* using a "contains" strategy.
|
|
1103
|
-
* If this is `false`, the option will not be automatically filtered and must be manually filtered by the parent.
|
|
1104
|
-
* Useful for asynchronous comboboxes.
|
|
1105
|
-
*/
|
|
1106
|
-
autoFilter: boolean;
|
|
1107
|
-
/**
|
|
1108
|
-
* Whether the combobox should open on focus
|
|
1109
|
-
*/
|
|
1110
|
-
openOnFocus?: boolean;
|
|
1111
|
-
/**
|
|
1112
|
-
* Whether the combobox should open on click
|
|
1113
|
-
*/
|
|
1114
|
-
openOnClick?: boolean;
|
|
1115
|
-
/**
|
|
1116
|
-
* Status of the combobox
|
|
1117
|
-
*/
|
|
1118
|
-
status?: BaseLoadingStatus;
|
|
1119
|
-
/**
|
|
1120
|
-
* Callback when the input changes.
|
|
1121
|
-
*/
|
|
1122
|
-
onInputChange?: OnComboboxInputChange;
|
|
1123
|
-
/**
|
|
1124
|
-
* Callback for when an option is selected
|
|
1125
|
-
*/
|
|
1126
|
-
onSelect?: OnComboboxSelect<O>;
|
|
1127
|
-
/**
|
|
1128
|
-
* Callback called when the combobox opens
|
|
1129
|
-
*/
|
|
1130
|
-
onOpen?: (options: {
|
|
1131
|
-
currentValue?: string;
|
|
1132
|
-
manual: boolean;
|
|
1133
|
-
}) => void;
|
|
1134
|
-
/**
|
|
1135
|
-
* The combobox components to render.
|
|
1136
|
-
* Must be one of the exposed components (Combobox.Input, Combobox.ListBox etc...)
|
|
1137
|
-
*/
|
|
1138
|
-
children: ReactNode;
|
|
1139
|
-
/**
|
|
1140
|
-
* The combobox can have a specific selection type:
|
|
1141
|
-
* - Single: only one item is selected
|
|
1142
|
-
* - Multiple: several items can be selected (this impacts the combobox list, which will now not close when selectiong an option)
|
|
1143
|
-
*/
|
|
1144
|
-
selectionType?: ComboboxSelectionType;
|
|
1145
|
-
/**
|
|
1146
|
-
* Whether the error state should be displayed when the status is in error.
|
|
1147
|
-
* @default `true` if `status` is defined
|
|
1148
|
-
*/
|
|
1149
|
-
showErrorState?: boolean;
|
|
1150
|
-
/**
|
|
1151
|
-
* Whether the empty state should be displayed when there is no results.
|
|
1152
|
-
* @default `true` if `autoFilter=false`
|
|
1153
|
-
*/
|
|
1154
|
-
showEmptyState?: boolean;
|
|
1155
|
-
/** custom className */
|
|
1156
|
-
className?: string;
|
|
1157
|
-
/** translations to be used across the combobox */
|
|
1158
|
-
translations: ComboboxTranslations;
|
|
1159
|
-
};
|
|
1160
|
-
|
|
1161
642
|
interface ComboboxOptionSkeletonProps {
|
|
1162
643
|
className?: string;
|
|
1163
644
|
index?: number;
|
|
@@ -1208,6 +689,7 @@ interface ComboboxListBoxProps extends GenericProps$1, React__default.ComponentP
|
|
|
1208
689
|
*/
|
|
1209
690
|
declare const ComboboxListBox: ({ children, renderItemSkeleton, label, popoverProps, footer, listRef, ...forwardedProps }: ComboboxListBoxProps) => react_jsx_runtime.JSX.Element;
|
|
1210
691
|
|
|
692
|
+
declare const COMBOBOX_OPTION_CLASSNAME = "lumx-combobox-option";
|
|
1211
693
|
declare const LUMX_CLASSNAME = "lumx-list-item";
|
|
1212
694
|
/**
|
|
1213
695
|
* Props for ComboboxOption with additional generic properties.
|
|
@@ -1396,7 +878,7 @@ type CommentBlockVariant = ValueOf$1<typeof CommentBlockVariant>;
|
|
|
1396
878
|
/**
|
|
1397
879
|
* Defines the props of the component.
|
|
1398
880
|
*/
|
|
1399
|
-
interface CommentBlockProps extends GenericProps, HasTheme
|
|
881
|
+
interface CommentBlockProps extends GenericProps, HasTheme {
|
|
1400
882
|
/** Action toolbar content. */
|
|
1401
883
|
actions?: ReactNode;
|
|
1402
884
|
/** Props to pass to the avatar. */
|
|
@@ -1574,7 +1056,7 @@ interface DialogProps extends GenericProps {
|
|
|
1574
1056
|
/** Children */
|
|
1575
1057
|
children?: React__default.ReactNode;
|
|
1576
1058
|
}
|
|
1577
|
-
type DialogSizes = Extract<Size
|
|
1059
|
+
type DialogSizes = Extract<Size, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
1578
1060
|
/**
|
|
1579
1061
|
* Dialog component.
|
|
1580
1062
|
*
|
|
@@ -1587,7 +1069,7 @@ declare const Dialog: Comp<DialogProps, HTMLDivElement>;
|
|
|
1587
1069
|
/**
|
|
1588
1070
|
* Defines the props of the component.
|
|
1589
1071
|
*/
|
|
1590
|
-
interface DividerProps$1 extends HasTheme, HasClassName {
|
|
1072
|
+
interface DividerProps$1 extends HasTheme$1, HasClassName {
|
|
1591
1073
|
/** reference to the root element */
|
|
1592
1074
|
ref?: CommonRef;
|
|
1593
1075
|
}
|
|
@@ -1609,7 +1091,7 @@ declare const Divider: Comp<DividerProps, HTMLHRElement>;
|
|
|
1609
1091
|
/**
|
|
1610
1092
|
* Defines the props of the component.
|
|
1611
1093
|
*/
|
|
1612
|
-
interface DragHandleProps extends GenericProps, HasTheme
|
|
1094
|
+
interface DragHandleProps extends GenericProps, HasTheme {
|
|
1613
1095
|
}
|
|
1614
1096
|
/**
|
|
1615
1097
|
* DragHandle component.
|
|
@@ -1620,54 +1102,10 @@ interface DragHandleProps extends GenericProps, HasTheme$1 {
|
|
|
1620
1102
|
*/
|
|
1621
1103
|
declare const DragHandle: Comp<DragHandleProps, HTMLDivElement>;
|
|
1622
1104
|
|
|
1623
|
-
/**
|
|
1624
|
-
* Different possible placements for the popover.
|
|
1625
|
-
*/
|
|
1626
|
-
declare const Placement: {
|
|
1627
|
-
readonly AUTO: "auto";
|
|
1628
|
-
readonly AUTO_END: "auto-end";
|
|
1629
|
-
readonly AUTO_START: "auto-start";
|
|
1630
|
-
readonly TOP: "top";
|
|
1631
|
-
readonly TOP_END: "top-end";
|
|
1632
|
-
readonly TOP_START: "top-start";
|
|
1633
|
-
readonly RIGHT: "right";
|
|
1634
|
-
readonly RIGHT_END: "right-end";
|
|
1635
|
-
readonly RIGHT_START: "right-start";
|
|
1636
|
-
readonly BOTTOM: "bottom";
|
|
1637
|
-
readonly BOTTOM_END: "bottom-end";
|
|
1638
|
-
readonly BOTTOM_START: "bottom-start";
|
|
1639
|
-
readonly LEFT: "left";
|
|
1640
|
-
readonly LEFT_END: "left-end";
|
|
1641
|
-
readonly LEFT_START: "left-start";
|
|
1642
|
-
};
|
|
1643
|
-
type Placement = ValueOf$1<typeof Placement>;
|
|
1644
|
-
/**
|
|
1645
|
-
* Offset of the popover.
|
|
1646
|
-
*/
|
|
1647
|
-
interface Offset {
|
|
1648
|
-
/** Offset size along the reference. */
|
|
1649
|
-
along?: number;
|
|
1650
|
-
/** Offset size away from the reference. */
|
|
1651
|
-
away?: number;
|
|
1652
|
-
}
|
|
1653
|
-
/**
|
|
1654
|
-
* Popover elevation index.
|
|
1655
|
-
*/
|
|
1656
|
-
type Elevation = 1 | 2 | 3 | 4 | 5;
|
|
1657
|
-
/**
|
|
1658
|
-
* Popover fit anchor width options.
|
|
1659
|
-
*/
|
|
1660
|
-
declare const FitAnchorWidth: {
|
|
1661
|
-
readonly MAX_WIDTH: "maxWidth";
|
|
1662
|
-
readonly MIN_WIDTH: "minWidth";
|
|
1663
|
-
readonly WIDTH: "width";
|
|
1664
|
-
};
|
|
1665
|
-
type FitAnchorWidth = ValueOf$1<typeof FitAnchorWidth>;
|
|
1666
|
-
|
|
1667
1105
|
/**
|
|
1668
1106
|
* Defines the props of the component.
|
|
1669
1107
|
*/
|
|
1670
|
-
interface PopoverProps extends GenericProps, HasTheme
|
|
1108
|
+
interface PopoverProps extends GenericProps, HasTheme {
|
|
1671
1109
|
/** Reference to the DOM element used to set the position of the popover. */
|
|
1672
1110
|
anchorRef: React.RefObject<HTMLElement>;
|
|
1673
1111
|
/** Customize the root element. (Must accept ref forwarding and props forwarding!). */
|
|
@@ -1809,7 +1247,7 @@ declare const Dropdown: Comp<DropdownProps, HTMLDivElement>;
|
|
|
1809
1247
|
/**
|
|
1810
1248
|
* Defines the props of the component.
|
|
1811
1249
|
*/
|
|
1812
|
-
interface ExpansionPanelProps extends GenericProps, HasCloseMode, HasTheme
|
|
1250
|
+
interface ExpansionPanelProps extends GenericProps, HasCloseMode, HasTheme {
|
|
1813
1251
|
/** Whether the expansion panel has a background. */
|
|
1814
1252
|
hasBackground?: boolean;
|
|
1815
1253
|
/** Whether the header has a divider. */
|
|
@@ -1885,7 +1323,7 @@ interface TextProps$1 extends HasClassName {
|
|
|
1885
1323
|
style?: CSSProperties;
|
|
1886
1324
|
}
|
|
1887
1325
|
|
|
1888
|
-
interface FlagProps$1 extends HasClassName, HasTheme {
|
|
1326
|
+
interface FlagProps$1 extends HasClassName, HasTheme$1 {
|
|
1889
1327
|
/** Color of the component. */
|
|
1890
1328
|
color?: ColorPalette;
|
|
1891
1329
|
/** Icon to use before the label. */
|
|
@@ -1914,10 +1352,10 @@ interface FlagProps extends GenericProps, Omit<FlagProps$1, 'children' | 'Text'>
|
|
|
1914
1352
|
declare const Flag: Comp<FlagProps, HTMLDivElement>;
|
|
1915
1353
|
|
|
1916
1354
|
type MarginAutoAlignment = Extract<Alignment, 'top' | 'bottom' | 'right' | 'left'>;
|
|
1917
|
-
type GapSize = Extract<Size, 'tiny' | 'regular' | 'medium' | 'big' | 'huge'>;
|
|
1355
|
+
type GapSize = Extract<Size$1, 'tiny' | 'regular' | 'medium' | 'big' | 'huge'>;
|
|
1918
1356
|
type SpaceAlignment = Extract<Alignment, 'space-between' | 'space-evenly' | 'space-around'>;
|
|
1919
1357
|
type FlexVerticalAlignment = VerticalAlignment | SpaceAlignment;
|
|
1920
|
-
type FlexHorizontalAlignment = HorizontalAlignment | SpaceAlignment;
|
|
1358
|
+
type FlexHorizontalAlignment = HorizontalAlignment$1 | SpaceAlignment;
|
|
1921
1359
|
|
|
1922
1360
|
/**
|
|
1923
1361
|
* Defines the props of the component.
|
|
@@ -1975,7 +1413,7 @@ declare const GenericBlockGapSize: Pick<{
|
|
|
1975
1413
|
readonly medium: "medium";
|
|
1976
1414
|
readonly big: "big";
|
|
1977
1415
|
readonly huge: "huge";
|
|
1978
|
-
}, "
|
|
1416
|
+
}, "big" | "medium" | "tiny" | "regular" | "huge">;
|
|
1979
1417
|
type GenericBlockGapSize = ValueOf$1<typeof GenericBlockGapSize>;
|
|
1980
1418
|
|
|
1981
1419
|
interface GenericBlockProps extends FlexBoxProps {
|
|
@@ -2095,7 +1533,7 @@ declare const useHeadingLevel: () => {
|
|
|
2095
1533
|
headingElement: _lumx_core_js_types.HeadingElement;
|
|
2096
1534
|
};
|
|
2097
1535
|
|
|
2098
|
-
type GridGutterSize = Extract<Size
|
|
1536
|
+
type GridGutterSize = Extract<Size, 'regular' | 'big' | 'huge'>;
|
|
2099
1537
|
/**
|
|
2100
1538
|
* Defines the props of the component.
|
|
2101
1539
|
*/
|
|
@@ -2145,7 +1583,7 @@ interface GridItemProps extends GenericProps {
|
|
|
2145
1583
|
*/
|
|
2146
1584
|
declare const GridItem: Comp<GridItemProps, HTMLDivElement>;
|
|
2147
1585
|
|
|
2148
|
-
type GridColumnGapSize = Extract<Size, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
1586
|
+
type GridColumnGapSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
2149
1587
|
/**
|
|
2150
1588
|
* Defines the props of the component.
|
|
2151
1589
|
*/
|
|
@@ -2193,7 +1631,7 @@ type IconSizes = (typeof ICON_SIZES)[number];
|
|
|
2193
1631
|
/**
|
|
2194
1632
|
* Defines the props of the component.
|
|
2195
1633
|
*/
|
|
2196
|
-
interface IconProps$1 extends HasClassName, HasTheme {
|
|
1634
|
+
interface IconProps$1 extends HasClassName, HasTheme$1 {
|
|
2197
1635
|
/** Color variant. */
|
|
2198
1636
|
color?: ColorWithVariants;
|
|
2199
1637
|
/** Lightened or darkened variant of the selected icon color. */
|
|
@@ -2239,7 +1677,7 @@ declare module 'react' {
|
|
|
2239
1677
|
/**
|
|
2240
1678
|
* Thumbnail sizes.
|
|
2241
1679
|
*/
|
|
2242
|
-
type ThumbnailSize$1 = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
1680
|
+
type ThumbnailSize$1 = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
2243
1681
|
/**
|
|
2244
1682
|
* Thumbnail variants.
|
|
2245
1683
|
*/
|
|
@@ -2261,13 +1699,13 @@ type ImgHTMLProps = ImgHTMLAttributes<HTMLImageElement>;
|
|
|
2261
1699
|
/**
|
|
2262
1700
|
* Defines the props of the component.
|
|
2263
1701
|
*/
|
|
2264
|
-
interface ThumbnailProps$1 extends HasTheme
|
|
1702
|
+
interface ThumbnailProps$1 extends HasTheme, HasClassName$1 {
|
|
2265
1703
|
/** Alignment of the thumbnail in it's parent (requires flex parent). */
|
|
2266
|
-
align?: HorizontalAlignment
|
|
1704
|
+
align?: HorizontalAlignment;
|
|
2267
1705
|
/** Image alternative text. */
|
|
2268
1706
|
alt: string;
|
|
2269
1707
|
/** Image aspect ratio. */
|
|
2270
|
-
aspectRatio?: AspectRatio
|
|
1708
|
+
aspectRatio?: AspectRatio;
|
|
2271
1709
|
/** Badge. */
|
|
2272
1710
|
badge?: JSXElement$1;
|
|
2273
1711
|
/** Image cross origin resource policy. */
|
|
@@ -2331,11 +1769,11 @@ declare module 'react' {
|
|
|
2331
1769
|
* All available aspect ratios.
|
|
2332
1770
|
* @deprecated
|
|
2333
1771
|
*/
|
|
2334
|
-
declare const ThumbnailAspectRatio: Record<string, AspectRatio
|
|
1772
|
+
declare const ThumbnailAspectRatio: Record<string, AspectRatio>;
|
|
2335
1773
|
/**
|
|
2336
1774
|
* Thumbnail sizes.
|
|
2337
1775
|
*/
|
|
2338
|
-
type ThumbnailSize = Extract<Size
|
|
1776
|
+
type ThumbnailSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
2339
1777
|
/**
|
|
2340
1778
|
* Thumbnail variants.
|
|
2341
1779
|
*/
|
|
@@ -2400,15 +1838,15 @@ type ImageBlockCaptionPosition = ValueOf$1<typeof ImageBlockCaptionPosition>;
|
|
|
2400
1838
|
/**
|
|
2401
1839
|
* Image block sizes.
|
|
2402
1840
|
*/
|
|
2403
|
-
type ImageBlockSize = Extract<Size
|
|
1841
|
+
type ImageBlockSize = Extract<Size, 'xl' | 'xxl'>;
|
|
2404
1842
|
/**
|
|
2405
1843
|
* Defines the props of the component.
|
|
2406
1844
|
*/
|
|
2407
|
-
interface ImageBlockProps extends GenericProps, HasTheme
|
|
1845
|
+
interface ImageBlockProps extends GenericProps, HasTheme, ImageCaptionMetadata {
|
|
2408
1846
|
/** Action toolbar content. */
|
|
2409
1847
|
actions?: ReactNode;
|
|
2410
1848
|
/** Alignment. */
|
|
2411
|
-
align?: HorizontalAlignment
|
|
1849
|
+
align?: HorizontalAlignment;
|
|
2412
1850
|
/** Image alternative text. */
|
|
2413
1851
|
alt: string;
|
|
2414
1852
|
/** Caption position. */
|
|
@@ -2530,11 +1968,11 @@ declare const InlineList: Comp<InlineListProps, HTMLElement>;
|
|
|
2530
1968
|
/**
|
|
2531
1969
|
* Defines the props of the component.
|
|
2532
1970
|
*/
|
|
2533
|
-
interface InputHelperProps$1 extends HasClassName, HasTheme {
|
|
1971
|
+
interface InputHelperProps$1 extends HasClassName, HasTheme$1 {
|
|
2534
1972
|
/** Helper content. */
|
|
2535
1973
|
children: JSXElement;
|
|
2536
1974
|
/** Helper variant. */
|
|
2537
|
-
kind?: Kind;
|
|
1975
|
+
kind?: Kind$1;
|
|
2538
1976
|
/** ref to the root element `p` */
|
|
2539
1977
|
ref?: CommonRef;
|
|
2540
1978
|
/** id for the input helper */
|
|
@@ -2552,34 +1990,10 @@ interface InputHelperProps extends InputHelperProps$1, GenericProps {
|
|
|
2552
1990
|
*/
|
|
2553
1991
|
declare const InputHelper: Comp<InputHelperProps, HTMLParagraphElement>;
|
|
2554
1992
|
|
|
2555
|
-
interface InputLabelProps$1 extends HasClassName, HasTheme {
|
|
2556
|
-
/** Typography variant. */
|
|
2557
|
-
typography?: Typography;
|
|
2558
|
-
/** Label content. */
|
|
2559
|
-
children: JSXElement;
|
|
2560
|
-
/** Native htmlFor property. */
|
|
2561
|
-
htmlFor: string;
|
|
2562
|
-
/** Whether the component is required or not. */
|
|
2563
|
-
isRequired?: boolean;
|
|
2564
|
-
/** ref to the root element */
|
|
2565
|
-
ref?: CommonRef;
|
|
2566
|
-
}
|
|
2567
|
-
|
|
2568
|
-
interface InputLabelProps extends InputLabelProps$1, GenericProps {
|
|
2569
|
-
}
|
|
2570
|
-
/**
|
|
2571
|
-
* InputLabel component.
|
|
2572
|
-
*
|
|
2573
|
-
* @param props Component props.
|
|
2574
|
-
* @param ref Component ref.
|
|
2575
|
-
* @return React element.
|
|
2576
|
-
*/
|
|
2577
|
-
declare const InputLabel: Comp<InputLabelProps, HTMLLabelElement>;
|
|
2578
|
-
|
|
2579
1993
|
/**
|
|
2580
1994
|
* Defines the props of the component.
|
|
2581
1995
|
*/
|
|
2582
|
-
interface LightboxProps extends GenericProps, HasTheme
|
|
1996
|
+
interface LightboxProps extends GenericProps, HasTheme, Pick<AriaAttributes, 'aria-label' | 'aria-labelledby'> {
|
|
2583
1997
|
/** Props to pass to the close button (minus those already set by the Lightbox props). */
|
|
2584
1998
|
closeButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis' | 'color'>;
|
|
2585
1999
|
/** Whether the component is open or not. */
|
|
@@ -2609,7 +2023,7 @@ declare const Lightbox: Comp<LightboxProps, HTMLDivElement>;
|
|
|
2609
2023
|
/**
|
|
2610
2024
|
* Defines the props of the component.
|
|
2611
2025
|
*/
|
|
2612
|
-
interface LinkProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled {
|
|
2026
|
+
interface LinkProps$1 extends HasTheme$1, HasClassName, HasAriaDisabled, HasDisabled {
|
|
2613
2027
|
/** Link label content. */
|
|
2614
2028
|
label?: JSXElement;
|
|
2615
2029
|
/** Color variant. */
|
|
@@ -2668,7 +2082,7 @@ declare const Link: Comp<LinkProps, HTMLButtonElement | HTMLAnchorElement>;
|
|
|
2668
2082
|
/**
|
|
2669
2083
|
* Defines the props of the component.
|
|
2670
2084
|
*/
|
|
2671
|
-
interface LinkPreviewProps extends GenericProps, HasTheme
|
|
2085
|
+
interface LinkPreviewProps extends GenericProps, HasTheme {
|
|
2672
2086
|
/** Description. */
|
|
2673
2087
|
description?: string;
|
|
2674
2088
|
/** Link URL. */
|
|
@@ -2678,7 +2092,7 @@ interface LinkPreviewProps extends GenericProps, HasTheme$1 {
|
|
|
2678
2092
|
/** Props to pass to the link (minus those already set by the LinkPreview props). */
|
|
2679
2093
|
linkProps?: Omit<LinkProps, 'color' | 'colorVariant' | 'href' | 'target'>;
|
|
2680
2094
|
/** Size variant. */
|
|
2681
|
-
size?: Extract<Size
|
|
2095
|
+
size?: Extract<Size, 'regular' | 'big'>;
|
|
2682
2096
|
/** Thumbnail for the link preview. */
|
|
2683
2097
|
thumbnailProps?: ThumbnailProps;
|
|
2684
2098
|
/** Title. */
|
|
@@ -2720,7 +2134,7 @@ interface ListProps extends GenericProps {
|
|
|
2720
2134
|
*/
|
|
2721
2135
|
isClickable?: boolean;
|
|
2722
2136
|
/** Item padding size. */
|
|
2723
|
-
itemPadding?: Extract<Size
|
|
2137
|
+
itemPadding?: Extract<Size, 'big' | 'huge'>;
|
|
2724
2138
|
/** Tab index of the list. Default to -1 */
|
|
2725
2139
|
tabIndex?: number;
|
|
2726
2140
|
/**
|
|
@@ -2736,50 +2150,6 @@ declare const List: Comp<ListProps, HTMLUListElement> & {
|
|
|
2736
2150
|
useKeyboardListNavigation: useKeyboardListNavigationType;
|
|
2737
2151
|
};
|
|
2738
2152
|
|
|
2739
|
-
type ListItemSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
2740
|
-
/**
|
|
2741
|
-
* Defines the props of the component.
|
|
2742
|
-
*/
|
|
2743
|
-
interface ListItemProps extends GenericProps, HasAriaDisabled$1 {
|
|
2744
|
-
/** A component to be rendered after the content. */
|
|
2745
|
-
after?: ReactNode;
|
|
2746
|
-
/** A component to be rendered before the content. */
|
|
2747
|
-
before?: ReactNode;
|
|
2748
|
-
/** Content. */
|
|
2749
|
-
children: string | ReactNode;
|
|
2750
|
-
/** Whether the list item should be highlighted or not. */
|
|
2751
|
-
isHighlighted?: boolean;
|
|
2752
|
-
/** Whether the component is selected or not. */
|
|
2753
|
-
isSelected?: boolean;
|
|
2754
|
-
/** Whether link/button is disabled or not. */
|
|
2755
|
-
isDisabled?: boolean;
|
|
2756
|
-
/** Reference to the <li> element. */
|
|
2757
|
-
listItemRef?: Ref<HTMLLIElement>;
|
|
2758
|
-
/** Custom react component for the link (can be used to inject react router Link). */
|
|
2759
|
-
linkAs?: 'a' | any;
|
|
2760
|
-
/** Props that will be passed on to the Link */
|
|
2761
|
-
linkProps?: React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
|
|
2762
|
-
/** Reference to the link element. */
|
|
2763
|
-
linkRef?: Ref<HTMLAnchorElement>;
|
|
2764
|
-
/** Size variant. */
|
|
2765
|
-
size?: ListItemSize;
|
|
2766
|
-
/** On selected callback. */
|
|
2767
|
-
onItemSelected?(evt: SyntheticEvent): void;
|
|
2768
|
-
}
|
|
2769
|
-
/**
|
|
2770
|
-
* Check if the list item is clickable.
|
|
2771
|
-
* @return `true` if the list item is clickable; `false` otherwise.
|
|
2772
|
-
*/
|
|
2773
|
-
declare function isClickable({ linkProps, onItemSelected }: Partial<ListItemProps>): boolean;
|
|
2774
|
-
/**
|
|
2775
|
-
* ListItem component.
|
|
2776
|
-
*
|
|
2777
|
-
* @param props Component props.
|
|
2778
|
-
* @param ref Component ref.
|
|
2779
|
-
* @return React element.
|
|
2780
|
-
*/
|
|
2781
|
-
declare const ListItem: Comp<ListItemProps, HTMLLIElement>;
|
|
2782
|
-
|
|
2783
2153
|
/**
|
|
2784
2154
|
* Defines the props of the component.
|
|
2785
2155
|
*/
|
|
@@ -2818,7 +2188,7 @@ interface MessageProps$1 extends HasClassName {
|
|
|
2818
2188
|
/** Whether the message has a background or not. */
|
|
2819
2189
|
hasBackground?: boolean;
|
|
2820
2190
|
/** Message variant. */
|
|
2821
|
-
kind?: Kind;
|
|
2191
|
+
kind?: Kind$1;
|
|
2822
2192
|
/** Message custom icon SVG path. */
|
|
2823
2193
|
icon?: string;
|
|
2824
2194
|
/** Reference to the message container element. */
|
|
@@ -2852,7 +2222,7 @@ declare const Message: Comp<MessageProps, HTMLDivElement>;
|
|
|
2852
2222
|
/**
|
|
2853
2223
|
* Defines the props of the component.
|
|
2854
2224
|
*/
|
|
2855
|
-
interface MosaicProps extends GenericProps, HasTheme
|
|
2225
|
+
interface MosaicProps extends GenericProps, HasTheme {
|
|
2856
2226
|
/** Thumbnails. */
|
|
2857
2227
|
thumbnails: ThumbnailProps[];
|
|
2858
2228
|
/** On image click callback. */
|
|
@@ -2887,14 +2257,14 @@ type BaseNavigationItemProps = {
|
|
|
2887
2257
|
};
|
|
2888
2258
|
declare const NavigationItem: (<E extends ElementType = "a">(props: React$1.PropsWithoutRef<React$1.ComponentProps<E>> & {
|
|
2889
2259
|
as?: E | undefined;
|
|
2890
|
-
} & HasTheme
|
|
2260
|
+
} & HasTheme & HasClassName$1 & BaseNavigationItemProps & HasRequiredLinkHref<E> & React$1.ComponentProps<E> & {
|
|
2891
2261
|
ref?: ComponentRef<E> | undefined;
|
|
2892
2262
|
}) => React.JSX.Element) & {
|
|
2893
2263
|
displayName: string;
|
|
2894
2264
|
className: "lumx-navigation-item";
|
|
2895
2265
|
};
|
|
2896
2266
|
|
|
2897
|
-
type NavigationProps = React.ComponentProps<'nav'> & HasClassName$1 & HasTheme
|
|
2267
|
+
type NavigationProps = React.ComponentProps<'nav'> & HasClassName$1 & HasTheme & {
|
|
2898
2268
|
/** Content of the navigation. These components should be of type NavigationItem to be rendered */
|
|
2899
2269
|
children?: React.ReactNode;
|
|
2900
2270
|
orientation?: Orientation$1;
|
|
@@ -2908,7 +2278,7 @@ declare const Navigation: Comp<NavigationProps, HTMLElement> & SubComponents;
|
|
|
2908
2278
|
/**
|
|
2909
2279
|
* Defines the props of the component.
|
|
2910
2280
|
*/
|
|
2911
|
-
interface NotificationProps extends GenericProps, HasTheme
|
|
2281
|
+
interface NotificationProps extends GenericProps, HasTheme {
|
|
2912
2282
|
/** Action button label. */
|
|
2913
2283
|
actionLabel?: string;
|
|
2914
2284
|
/** Content. */
|
|
@@ -2916,7 +2286,7 @@ interface NotificationProps extends GenericProps, HasTheme$1 {
|
|
|
2916
2286
|
/** Whether the component is open or not. */
|
|
2917
2287
|
isOpen?: boolean;
|
|
2918
2288
|
/** Notification type. */
|
|
2919
|
-
type?: Kind
|
|
2289
|
+
type?: Kind;
|
|
2920
2290
|
/** Z-axis position. */
|
|
2921
2291
|
zIndex?: number;
|
|
2922
2292
|
/** On action button click callback. */
|
|
@@ -2952,7 +2322,7 @@ declare const PopoverDialog: Comp<PopoverDialogProps, HTMLDivElement>;
|
|
|
2952
2322
|
/**
|
|
2953
2323
|
* Defines the props of the component.
|
|
2954
2324
|
*/
|
|
2955
|
-
interface PostBlockProps extends GenericProps, HasTheme
|
|
2325
|
+
interface PostBlockProps extends GenericProps, HasTheme {
|
|
2956
2326
|
/** Action toolbar content. */
|
|
2957
2327
|
actions?: ReactNode;
|
|
2958
2328
|
/** Attachment content. */
|
|
@@ -2996,7 +2366,7 @@ type ProgressVariant = ValueOf$1<typeof ProgressVariant>;
|
|
|
2996
2366
|
/**
|
|
2997
2367
|
* Defines the props of the component.
|
|
2998
2368
|
*/
|
|
2999
|
-
interface ProgressProps extends GenericProps, HasTheme
|
|
2369
|
+
interface ProgressProps extends GenericProps, HasTheme {
|
|
3000
2370
|
/** Progress variant. */
|
|
3001
2371
|
variant?: ProgressVariant;
|
|
3002
2372
|
}
|
|
@@ -3013,11 +2383,11 @@ declare const Progress: Comp<ProgressProps, HTMLDivElement>;
|
|
|
3013
2383
|
/**
|
|
3014
2384
|
* Progress sizes.
|
|
3015
2385
|
*/
|
|
3016
|
-
type ProgressCircularSize = Extract<Size
|
|
2386
|
+
type ProgressCircularSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm'>;
|
|
3017
2387
|
/**
|
|
3018
2388
|
* Defines the props of the component.
|
|
3019
2389
|
*/
|
|
3020
|
-
interface ProgressCircularProps extends GenericProps, HasTheme
|
|
2390
|
+
interface ProgressCircularProps extends GenericProps, HasTheme {
|
|
3021
2391
|
/**
|
|
3022
2392
|
* Progress circular size.
|
|
3023
2393
|
*/
|
|
@@ -3037,7 +2407,7 @@ interface ProgressCircularProps extends GenericProps, HasTheme$1 {
|
|
|
3037
2407
|
*/
|
|
3038
2408
|
declare const ProgressCircular: Comp<ProgressCircularProps, HTMLDivElement>;
|
|
3039
2409
|
|
|
3040
|
-
interface ProgressLinearProps extends GenericProps, HasTheme
|
|
2410
|
+
interface ProgressLinearProps extends GenericProps, HasTheme {
|
|
3041
2411
|
}
|
|
3042
2412
|
/**
|
|
3043
2413
|
* ProgressLinear component.
|
|
@@ -3150,7 +2520,7 @@ declare const ProgressTrackerStepPanel: Comp<ProgressTrackerStepPanelProps, HTML
|
|
|
3150
2520
|
/**
|
|
3151
2521
|
* Defines the props of the component.
|
|
3152
2522
|
*/
|
|
3153
|
-
interface RadioButtonProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled, HasChecked {
|
|
2523
|
+
interface RadioButtonProps$1 extends HasTheme$1, HasClassName, HasAriaDisabled, HasDisabled, HasChecked {
|
|
3154
2524
|
/** Helper text. */
|
|
3155
2525
|
helper?: string;
|
|
3156
2526
|
/** Native input id property. */
|
|
@@ -3211,7 +2581,7 @@ declare const SelectVariant: {
|
|
|
3211
2581
|
readonly chip: "chip";
|
|
3212
2582
|
};
|
|
3213
2583
|
type SelectVariant = ValueOf$1<typeof SelectVariant>;
|
|
3214
|
-
interface CoreSelectProps extends GenericProps, HasTheme
|
|
2584
|
+
interface CoreSelectProps extends GenericProps, HasTheme {
|
|
3215
2585
|
/** Props to pass to the clear button (minus those already set by the Select props). If not specified, the button won't be displayed. */
|
|
3216
2586
|
clearButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
|
|
3217
2587
|
/** Whether the select (input variant) is displayed with error style or not. */
|
|
@@ -3291,7 +2661,7 @@ declare const SelectMultiple: Comp<SelectMultipleProps, HTMLDivElement>;
|
|
|
3291
2661
|
/**
|
|
3292
2662
|
* Defines the props of the component.
|
|
3293
2663
|
*/
|
|
3294
|
-
interface SideNavigationProps extends GenericProps, HasTheme
|
|
2664
|
+
interface SideNavigationProps extends GenericProps, HasTheme {
|
|
3295
2665
|
/** SideNavigationItem elements. */
|
|
3296
2666
|
children: ReactNode;
|
|
3297
2667
|
}
|
|
@@ -3311,7 +2681,7 @@ interface SideNavigationItemProps extends GenericProps, HasCloseMode {
|
|
|
3311
2681
|
/** SideNavigationItem elements. */
|
|
3312
2682
|
children?: ReactNode;
|
|
3313
2683
|
/** Emphasis variant. */
|
|
3314
|
-
emphasis?: Emphasis
|
|
2684
|
+
emphasis?: Emphasis;
|
|
3315
2685
|
/** Label content. */
|
|
3316
2686
|
label: string | ReactNode;
|
|
3317
2687
|
/** Icon (SVG path). */
|
|
@@ -3343,7 +2713,7 @@ declare const SideNavigationItem: Comp<SideNavigationItemProps, HTMLLIElement>;
|
|
|
3343
2713
|
/**
|
|
3344
2714
|
* Defines the props of the component.
|
|
3345
2715
|
*/
|
|
3346
|
-
interface SkeletonCircleProps$1 extends HasTheme, HasClassName {
|
|
2716
|
+
interface SkeletonCircleProps$1 extends HasTheme$1, HasClassName {
|
|
3347
2717
|
/** Size variant. */
|
|
3348
2718
|
size: GlobalSize;
|
|
3349
2719
|
/** The color of the skeleton. */
|
|
@@ -3364,9 +2734,9 @@ type SkeletonRectangleVariant = ValueOf<typeof SkeletonRectangleVariant>;
|
|
|
3364
2734
|
/**
|
|
3365
2735
|
* Defines the props of the component.
|
|
3366
2736
|
*/
|
|
3367
|
-
interface SkeletonRectangleProps$1 extends HasTheme, HasClassName {
|
|
2737
|
+
interface SkeletonRectangleProps$1 extends HasTheme$1, HasClassName {
|
|
3368
2738
|
/** Aspect ratio (use with width and not height). */
|
|
3369
|
-
aspectRatio?: Extract<AspectRatio, 'square' | 'horizontal' | 'vertical' | 'wide'>;
|
|
2739
|
+
aspectRatio?: Extract<AspectRatio$1, 'square' | 'horizontal' | 'vertical' | 'wide'>;
|
|
3370
2740
|
/** Height size. */
|
|
3371
2741
|
height?: GlobalSize;
|
|
3372
2742
|
/** Border variant. */
|
|
@@ -3382,7 +2752,7 @@ interface SkeletonRectangleProps$1 extends HasTheme, HasClassName {
|
|
|
3382
2752
|
/**
|
|
3383
2753
|
* Defines the props of the component.
|
|
3384
2754
|
*/
|
|
3385
|
-
interface SkeletonTypographyProps$1 extends HasTheme, HasClassName {
|
|
2755
|
+
interface SkeletonTypographyProps$1 extends HasTheme$1, HasClassName {
|
|
3386
2756
|
/** Typography variant. */
|
|
3387
2757
|
typography: TypographyInterface;
|
|
3388
2758
|
/** Width CSS property. */
|
|
@@ -3440,7 +2810,7 @@ declare const SkeletonTypography: Comp<SkeletonTypographyProps, HTMLDivElement>;
|
|
|
3440
2810
|
/**
|
|
3441
2811
|
* Defines the props of the component.
|
|
3442
2812
|
*/
|
|
3443
|
-
interface SliderProps extends GenericProps, HasTheme
|
|
2813
|
+
interface SliderProps extends GenericProps, HasTheme {
|
|
3444
2814
|
/** Helper text. */
|
|
3445
2815
|
helper?: string;
|
|
3446
2816
|
/** Whether the min and max labels should be hidden or not. */
|
|
@@ -3604,7 +2974,7 @@ interface UseSlideshowControls {
|
|
|
3604
2974
|
/**
|
|
3605
2975
|
* Defines the props of the component.
|
|
3606
2976
|
*/
|
|
3607
|
-
interface SlideshowControlsProps extends GenericProps, HasTheme
|
|
2977
|
+
interface SlideshowControlsProps extends GenericProps, HasTheme {
|
|
3608
2978
|
/** Index of the current slide. */
|
|
3609
2979
|
activeIndex?: number;
|
|
3610
2980
|
/** Props to pass to the next button (minus those already set by the SlideshowControls props). */
|
|
@@ -3648,7 +3018,7 @@ declare const SlideshowControls: Comp<SlideshowControlsProps, HTMLDivElement> &
|
|
|
3648
3018
|
};
|
|
3649
3019
|
};
|
|
3650
3020
|
|
|
3651
|
-
interface SlidesProps extends GenericProps, HasTheme
|
|
3021
|
+
interface SlidesProps extends GenericProps, HasTheme {
|
|
3652
3022
|
/** current slide active */
|
|
3653
3023
|
activeIndex: number;
|
|
3654
3024
|
/** slides id to be added to the wrapper */
|
|
@@ -3693,7 +3063,7 @@ declare const Slides: Comp<SlidesProps, HTMLDivElement>;
|
|
|
3693
3063
|
/**
|
|
3694
3064
|
* Defines the props of the component.
|
|
3695
3065
|
*/
|
|
3696
|
-
interface SwitchProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled, HasChecked {
|
|
3066
|
+
interface SwitchProps$1 extends HasTheme$1, HasClassName, HasAriaDisabled, HasDisabled, HasChecked {
|
|
3697
3067
|
/** Helper text. */
|
|
3698
3068
|
helper?: string;
|
|
3699
3069
|
/** Native input id property. */
|
|
@@ -3737,7 +3107,7 @@ declare const Switch: Comp<SwitchProps, HTMLDivElement>;
|
|
|
3737
3107
|
/**
|
|
3738
3108
|
* Defines the props of the component.
|
|
3739
3109
|
*/
|
|
3740
|
-
interface TableProps$1 extends HasTheme, HasClassName {
|
|
3110
|
+
interface TableProps$1 extends HasTheme$1, HasClassName {
|
|
3741
3111
|
/** Whether the table has checkbox or thumbnail on first cell or not. */
|
|
3742
3112
|
hasBefore?: boolean;
|
|
3743
3113
|
/** Whether the table has dividers or not. */
|
|
@@ -3932,7 +3302,7 @@ declare enum TabListLayout {
|
|
|
3932
3302
|
/**
|
|
3933
3303
|
* Defines the props of the component.
|
|
3934
3304
|
*/
|
|
3935
|
-
interface TabListProps extends GenericProps, HasTheme
|
|
3305
|
+
interface TabListProps extends GenericProps, HasTheme {
|
|
3936
3306
|
/** ARIA label (purpose of the set of tabs). */
|
|
3937
3307
|
['aria-label']: string;
|
|
3938
3308
|
/** Tab list. */
|
|
@@ -4016,79 +3386,11 @@ interface TextProps extends TextProps$1, GenericProps {
|
|
|
4016
3386
|
*/
|
|
4017
3387
|
declare const Text: Comp<TextProps, HTMLElement>;
|
|
4018
3388
|
|
|
4019
|
-
/**
|
|
4020
|
-
* Defines the props of the component.
|
|
4021
|
-
*/
|
|
4022
|
-
interface TextFieldProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
|
|
4023
|
-
/** Chip Group to be rendered before the main text input. */
|
|
4024
|
-
chips?: ReactNode;
|
|
4025
|
-
/** Props to pass to the clear button (minus those already set by the TextField props). If not specified, the button won't be displayed. */
|
|
4026
|
-
clearButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
|
|
4027
|
-
/** Error message. */
|
|
4028
|
-
error?: string | ReactNode;
|
|
4029
|
-
/** Whether we force the focus style or not. */
|
|
4030
|
-
forceFocusStyle?: boolean;
|
|
4031
|
-
/** Whether the text field is displayed with error style or not. */
|
|
4032
|
-
hasError?: boolean;
|
|
4033
|
-
/** Additional element to put at the end of the text field. */
|
|
4034
|
-
afterElement?: ReactNode;
|
|
4035
|
-
/** Helper text. */
|
|
4036
|
-
helper?: string | ReactNode;
|
|
4037
|
-
/** Icon (SVG path). */
|
|
4038
|
-
icon?: string;
|
|
4039
|
-
/** Native input id property (generated if not provided to link the label element). */
|
|
4040
|
-
id?: string;
|
|
4041
|
-
/** Reference to the <input> or <textarea> element. */
|
|
4042
|
-
inputRef?: Ref<HTMLInputElement | HTMLTextAreaElement>;
|
|
4043
|
-
/** Whether the component is disabled or not. */
|
|
4044
|
-
isDisabled?: boolean;
|
|
4045
|
-
/** Whether the component is required or not. */
|
|
4046
|
-
isRequired?: boolean;
|
|
4047
|
-
/** Whether the text field is displayed with valid style or not. */
|
|
4048
|
-
isValid?: boolean;
|
|
4049
|
-
/** Label text. */
|
|
4050
|
-
label?: string;
|
|
4051
|
-
/** Additional label props. */
|
|
4052
|
-
labelProps?: InputLabelProps;
|
|
4053
|
-
/** Max string length the input accepts (constrains the input and displays a character counter). */
|
|
4054
|
-
maxLength?: number;
|
|
4055
|
-
/** Minimum number of rows displayed in multiline mode (requires `multiline` to be enabled). */
|
|
4056
|
-
minimumRows?: number;
|
|
4057
|
-
/** Whether the text field is a textarea or an input. */
|
|
4058
|
-
multiline?: boolean;
|
|
4059
|
-
/** Native input name property. */
|
|
4060
|
-
name?: string;
|
|
4061
|
-
/** Placeholder text. */
|
|
4062
|
-
placeholder?: string;
|
|
4063
|
-
/** Reference to the wrapper. */
|
|
4064
|
-
textFieldRef?: Ref<HTMLDivElement>;
|
|
4065
|
-
/** Native input type (only when `multiline` is disabled). */
|
|
4066
|
-
type?: React.ComponentProps<'input'>['type'];
|
|
4067
|
-
/** Value. */
|
|
4068
|
-
value?: string;
|
|
4069
|
-
/** On blur callback. */
|
|
4070
|
-
onBlur?(event: React.FocusEvent): void;
|
|
4071
|
-
/** On change callback. */
|
|
4072
|
-
onChange(value: string, name?: string, event?: SyntheticEvent): void;
|
|
4073
|
-
/** On clear callback. */
|
|
4074
|
-
onClear?(event?: SyntheticEvent): void;
|
|
4075
|
-
/** On focus callback. */
|
|
4076
|
-
onFocus?(event: React.FocusEvent): void;
|
|
4077
|
-
}
|
|
4078
|
-
/**
|
|
4079
|
-
* TextField component.
|
|
4080
|
-
*
|
|
4081
|
-
* @param props Component props.
|
|
4082
|
-
* @param ref Component ref.
|
|
4083
|
-
* @return React element.
|
|
4084
|
-
*/
|
|
4085
|
-
declare const TextField: Comp<TextFieldProps, HTMLDivElement>;
|
|
4086
|
-
|
|
4087
3389
|
type NativeInputProps = Omit<ComponentProps<'input'>, 'value' | 'onChange'>;
|
|
4088
3390
|
/**
|
|
4089
3391
|
* Defines the props of the component.
|
|
4090
3392
|
*/
|
|
4091
|
-
interface RawInputTextProps extends NativeInputProps, HasTheme
|
|
3393
|
+
interface RawInputTextProps extends NativeInputProps, HasTheme, HasClassName$1 {
|
|
4092
3394
|
value?: string;
|
|
4093
3395
|
onChange?: (value: string, name?: string, event?: SyntheticEvent) => void;
|
|
4094
3396
|
}
|
|
@@ -4102,7 +3404,7 @@ type NativeTextareaProps = ComponentProps<'textarea'>;
|
|
|
4102
3404
|
/**
|
|
4103
3405
|
* Defines the props of the component.
|
|
4104
3406
|
*/
|
|
4105
|
-
interface RawInputTextareaProps extends Omit<NativeTextareaProps, 'value' | 'onChange'>, HasTheme
|
|
3407
|
+
interface RawInputTextareaProps extends Omit<NativeTextareaProps, 'value' | 'onChange'>, HasTheme, HasClassName$1 {
|
|
4106
3408
|
minimumRows?: number;
|
|
4107
3409
|
value?: string;
|
|
4108
3410
|
onChange?: (value: string, name?: string, event?: SyntheticEvent) => void;
|
|
@@ -4135,36 +3437,6 @@ interface ToolbarProps extends GenericProps {
|
|
|
4135
3437
|
*/
|
|
4136
3438
|
declare const Toolbar: Comp<ToolbarProps, HTMLDivElement>;
|
|
4137
3439
|
|
|
4138
|
-
declare const ARIA_LINK_MODES: readonly ["aria-describedby", "aria-labelledby"];
|
|
4139
|
-
|
|
4140
|
-
/** Position of the tooltip relative to the anchor element. */
|
|
4141
|
-
type TooltipPlacement = Extract<Placement, 'top' | 'right' | 'bottom' | 'left'>;
|
|
4142
|
-
/**
|
|
4143
|
-
* Defines the props of the component.
|
|
4144
|
-
*/
|
|
4145
|
-
interface TooltipProps extends GenericProps, HasCloseMode {
|
|
4146
|
-
/** Anchor (element on which we activate the tooltip). */
|
|
4147
|
-
children: ReactNode;
|
|
4148
|
-
/** Delay (in ms) before closing the tooltip. */
|
|
4149
|
-
delay?: number;
|
|
4150
|
-
/** Whether the tooltip is displayed even without the mouse hovering the anchor. */
|
|
4151
|
-
forceOpen?: boolean;
|
|
4152
|
-
/** Label text. */
|
|
4153
|
-
label?: string | null | false;
|
|
4154
|
-
/** Placement of the tooltip relative to the anchor. */
|
|
4155
|
-
placement?: TooltipPlacement;
|
|
4156
|
-
/** Choose how the tooltip text should link to the anchor */
|
|
4157
|
-
ariaLinkMode?: (typeof ARIA_LINK_MODES)[number];
|
|
4158
|
-
}
|
|
4159
|
-
/**
|
|
4160
|
-
* Tooltip component.
|
|
4161
|
-
*
|
|
4162
|
-
* @param props Component props.
|
|
4163
|
-
* @param ref Component ref.
|
|
4164
|
-
* @return React element.
|
|
4165
|
-
*/
|
|
4166
|
-
declare const Tooltip: Comp<TooltipProps, HTMLDivElement>;
|
|
4167
|
-
|
|
4168
3440
|
/**
|
|
4169
3441
|
* Uploader variants.
|
|
4170
3442
|
*/
|
|
@@ -4177,7 +3449,7 @@ type UploaderVariant = ValueOf$1<typeof UploaderVariant>;
|
|
|
4177
3449
|
/**
|
|
4178
3450
|
* Uploader sizes.
|
|
4179
3451
|
*/
|
|
4180
|
-
type UploaderSize = Extract<Size
|
|
3452
|
+
type UploaderSize = Extract<Size, 'xl' | 'xxl'>;
|
|
4181
3453
|
/**
|
|
4182
3454
|
* Extend native HTML input props with specialized `onChange` providing the a `File` array.
|
|
4183
3455
|
*/
|
|
@@ -4187,9 +3459,9 @@ interface FileInputProps extends Omit<React__default.ComponentProps<'input'>, 'o
|
|
|
4187
3459
|
/**
|
|
4188
3460
|
* Defines the props of the component.
|
|
4189
3461
|
*/
|
|
4190
|
-
interface UploaderProps extends GenericProps, HasTheme
|
|
3462
|
+
interface UploaderProps extends GenericProps, HasTheme, HasAriaDisabled$1 {
|
|
4191
3463
|
/** Image aspect ratio. */
|
|
4192
|
-
aspectRatio?: AspectRatio
|
|
3464
|
+
aspectRatio?: AspectRatio;
|
|
4193
3465
|
/** Icon (SVG path). */
|
|
4194
3466
|
icon?: string;
|
|
4195
3467
|
/** Disabled state */
|
|
@@ -4217,11 +3489,11 @@ declare const Uploader: Comp<UploaderProps, HTMLElement>;
|
|
|
4217
3489
|
/**
|
|
4218
3490
|
* User block sizes.
|
|
4219
3491
|
*/
|
|
4220
|
-
type UserBlockSize = Extract<Size
|
|
3492
|
+
type UserBlockSize = Extract<Size, 'xs' | 's' | 'm' | 'l'>;
|
|
4221
3493
|
/**
|
|
4222
3494
|
* Defines the props of the component.
|
|
4223
3495
|
*/
|
|
4224
|
-
interface UserBlockProps extends GenericProps, HasTheme
|
|
3496
|
+
interface UserBlockProps extends GenericProps, HasTheme {
|
|
4225
3497
|
/** Props to pass to the avatar. */
|
|
4226
3498
|
avatarProps?: Omit<AvatarProps, 'alt'>;
|
|
4227
3499
|
/** Additional fields used to describe the user. */
|
|
@@ -4262,7 +3534,7 @@ interface UserBlockProps extends GenericProps, HasTheme$1 {
|
|
|
4262
3534
|
*/
|
|
4263
3535
|
declare const UserBlock: Comp<UserBlockProps, HTMLDivElement>;
|
|
4264
3536
|
|
|
4265
|
-
type ThemeContextValue = Theme
|
|
3537
|
+
type ThemeContextValue = Theme | undefined;
|
|
4266
3538
|
/** Provide a theme context to all children. */
|
|
4267
3539
|
declare const ThemeProvider: React__default.FC<{
|
|
4268
3540
|
value: ThemeContextValue;
|
|
@@ -4271,5 +3543,5 @@ declare const ThemeProvider: React__default.FC<{
|
|
|
4271
3543
|
/** Get the theme in the current context. */
|
|
4272
3544
|
declare function useTheme(): ThemeContextValue;
|
|
4273
3545
|
|
|
4274
|
-
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonEmphasis, ButtonGroup, COMPONENT_NAME, Checkbox, Chip, ChipGroup, Combobox, ComboboxButton, ComboboxDivider, ComboboxInput, ComboboxListBox, ComboboxOption, ComboboxOptionAction, ComboboxOptionMoreInfo, ComboboxOptionSkeleton, ComboboxSection, CommentBlock, CommentBlockVariant, DEFAULT_PROPS, DatePicker, DatePickerControlled, DatePickerField, Dialog, Divider, DragHandle, Dropdown, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon,
|
|
4275
|
-
export type { AlertDialogProps, AutocompleteMultipleProps, AutocompleteProps, AvatarProps, AvatarSize, BadgeProps, BadgeWrapperProps,
|
|
3546
|
+
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, BaseButtonProps, Button, ButtonEmphasis, ButtonGroup, CLASSNAME, COMBOBOX_OPTION_CLASSNAME, COMPONENT_NAME, Checkbox, Chip, ChipGroup, Combobox, ComboboxButton, ComboboxDivider, ComboboxInput, ComboboxListBox, ComboboxOption, ComboboxOptionAction, ComboboxOptionMoreInfo, ComboboxOptionProps, ComboboxOptionSkeleton, ComboboxProps, ComboboxSection, CommentBlock, CommentBlockVariant, DEFAULT_PROPS, DatePicker, DatePickerControlled, DatePickerField, Dialog, Divider, DragHandle, Dropdown, Elevation, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButtonProps, ImageBlock, ImageBlockCaptionPosition, ImageLightbox, InlineList, InputHelper, LUMX_CLASSNAME, Lightbox, Link, LinkPreview, List, ListDivider, ListSubheader, Message, Mosaic, Navigation, Notification, Offset, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, RawInputText, RawInputTextarea, SUB_COMPONENTS, 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, TextFieldProps, ThOrder, ThOrder as ThOrderType, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, Toolbar, Uploader, UploaderVariant, UserBlock, clamp, useFocusPointStyle, useHeadingLevel, useTheme };
|
|
3547
|
+
export type { AlertDialogProps, AutocompleteMultipleProps, AutocompleteProps, AvatarProps, AvatarSize, BadgeProps, BadgeWrapperProps, ButtonGroupProps, ButtonProps, CheckboxProps, ChipGroupProps, ChipProps, ComboboxButtonProps, ComboboxInputProps, ComboboxListBoxProps, ComboboxOptionComponentProps, ComboboxOptionMoreInfoProps, ComboboxOptionSkeletonProps, ComboboxSectionProps, CommentBlockProps, DatePickerControlledProps, DatePickerFieldProps, DatePickerProps, DialogProps, DialogSizes, DividerProps, DragHandleProps, DropdownProps, ExpansionPanelProps, FlagProps, FlexBoxProps, FlexHorizontalAlignment, FlexVerticalAlignment, FocusPoint, GapSize, GenericBlockProps, GridColumnGapSize, GridColumnProps, GridItemProps, GridProps, HeadingLevelProviderProps, HeadingProps, IconProps, IconSizes, ImageBlockProps, ImageBlockSize, ImageLightboxProps, InlineListProps, InputHelperProps, LightboxProps, LinkPreviewProps, LinkProps, ListDividerProps, ListProps, ListSubheaderProps, MarginAutoAlignment, MessageProps, MosaicProps, NavigationProps, NotificationProps, 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, TextProps, ThumbnailProps, ThumbnailSize, ToolbarProps, UploaderProps, UploaderSize, UserBlockProps, UserBlockSize };
|