@lumx/react 4.3.2-alpha.14 → 4.3.2-alpha.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -1,15 +1,28 @@
1
- import { Kind, HorizontalAlignment, Size, ColorPalette as ColorPalette$1, Theme, 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';
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, 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';
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, 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 PopoverProps, h as ComboboxListSkeletonProps, i as ComboboxProps, j as ComboboxOptionSkeletonProps, k as ComboboxListBoxProps, l as ColorWithVariants, m as ColorVariant, n as Typography, W as WhiteSpace, S as Size$1, V as VerticalAlignment, A as Alignment, o as HorizontalAlignment$1, p as Orientation, K as Kind$1, G as GlobalSize, q as AspectRatio$1, r as TypographyInterface } from './Tooltip-CCXZsfG-.js';
9
- export { s as BaseSelectProps, t as ButtonSize, u as ComboboxListBox, v as ComboboxOptionSkeleton, E as Elevation, w as IconButton, x as InputLabel, y as InputLabelProps, L as ListItem, z as ListItemProps, D as ListItemSize, M as MultipleSelection, F as OnComboboxInputChange, N as OnComboboxSelect, Q as Popover, R as SingleSelection, U as TextField, X as Tooltip, Y as TooltipPlacement, Z as TooltipProps, _ as isClickable } from './Tooltip-CCXZsfG-.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.
@@ -394,6 +675,44 @@ interface ButtonProps extends GenericProps, ButtonProps$1 {
394
675
  */
395
676
  declare const Button: Comp<ButtonProps, HTMLButtonElement | HTMLAnchorElement>;
396
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>;
715
+
397
716
  /**
398
717
  * Defines the props of the component
399
718
  */
@@ -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$1, HasClassName, HasAriaDisabled, HasDisabled, HasChecked<boolean | 'intermediate'> {
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,244 +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
- declare const COMBOBOX_OPTION_CLASSNAME = "lumx-combobox-option";
643
- declare const LUMX_CLASSNAME = "lumx-list-item";
644
- /**
645
- * Props for ComboboxOption with additional generic properties.
646
- */
647
- interface ComboboxOptionComponentProps<O extends object = any> extends GenericProps, Omit<ComboboxOptionProps<O>, 'as'> {
648
- /** Customize the root element. */
649
- as?: React__default.ElementType;
650
- }
651
- /**
652
- * Option to set within a combobox list.
653
- *
654
- * @family Combobox
655
- * @param ComboboxOptionProps
656
- * @returns ComboboxOption
657
- */
658
- declare const ComboboxOption: Comp<ComboboxOptionComponentProps<any>, HTMLElement>;
659
-
660
- interface ComboboxOptionActionProps extends GenericProps {
661
- /** Should the action be set as disabled */
662
- isDisabled?: boolean;
663
- /** Action to trigger when the action is selected */
664
- onClick: () => void;
665
- /** Customize the root element. */
666
- as?: React__default.ElementType;
667
- }
668
- /**
669
- * Action to set on a Combobox Option.
670
- * Allows to add an interactive element that
671
- * can be navigated to and triggered using the keyboard.
672
- *
673
- * Defaults as "button"
674
- *
675
- * @family Combobox
676
- * @param ComboboxOptionActionProps
677
- * @returns ComboboxOptionAction
678
- */
679
- declare const ComboboxOptionAction: (props: ComboboxOptionActionProps) => react_jsx_runtime.JSX.Element;
680
-
681
- interface ComboboxOptionMoreInfoProps {
682
- buttonProps?: Partial<IconButtonProps>;
683
- popoverProps?: PopoverProps;
684
- onToggle?: (isOpen: boolean) => void;
685
- children?: React__default.ReactNode;
686
- }
687
- /**
688
- * Display more info on the option as a popover opening on mouse hover or keyboard nav
689
- * Please consider using a simpler option description instead for better UX and a11y.
690
- *
691
- * @family Combobox
692
- */
693
- declare const ComboboxOptionMoreInfo: React__default.FC<ComboboxOptionMoreInfoProps>;
694
-
695
- interface ComboboxSectionProps {
696
- /** Forwarded class name */
697
- className?: string;
698
- /** The title of the section */
699
- title?: string;
700
- /** Whether the section should be displayed as loading */
701
- isLoading?: boolean;
702
- /** Custom skeletons to use for loading state */
703
- renderItemSkeleton?: ComboboxListSkeletonProps['children'];
704
- /** Options to display */
705
- children: ReactNode;
706
- }
707
- /**
708
- * Section for options of a Combobox.
709
- *
710
- * @family Combobox
711
- * @param ComboboxSectionProps
712
- * @returns ComboboxSection
713
- */
714
- declare const ComboboxSection: ({ children, ...props }: ComboboxSectionProps) => react_jsx_runtime.JSX.Element;
715
-
716
- declare const SUB_COMPONENTS: {
717
- /**
718
- * Option to set within a combobox list.
719
- *
720
- * @family Combobox
721
- * @param ComboboxOptionProps
722
- * @returns ComboboxOption
723
- */
724
- readonly Option: Comp<ComboboxOptionComponentProps<any>, HTMLElement>;
725
- /**
726
- * Skeleton for a combobox option.
727
- * A typography skeleton is rendered by default but can be overridden by passing children.
728
- */
729
- readonly OptionSkeleton: ({ className, index, before, after, size, children, }: ComboboxOptionSkeletonProps) => react_jsx_runtime.JSX.Element;
730
- /**
731
- * Section for options of a Combobox.
732
- *
733
- * @family Combobox
734
- * @param ComboboxSectionProps
735
- * @returns ComboboxSection
736
- */
737
- readonly Section: ({ children, ...props }: ComboboxSectionProps) => react_jsx_runtime.JSX.Element;
738
- /**
739
- * Combobox input trigger.
740
- *
741
- * @family Combobox
742
- */
743
- readonly Input: ({ hideToggle, inputRef, textFieldRef, afterElement, onFocus, onBlur, onKeyDown, clearButtonProps, hasClearButton, theme, ...textFieldProps }: ComboboxInputProps) => react_jsx_runtime.JSX.Element;
744
- /**
745
- * The listbox containing the combobox's options.
746
- *
747
- * @family Combobox
748
- * @param ComboboxListBoxProps
749
- * @returns ComboboxListBox
750
- */
751
- readonly List: ({ children, renderItemSkeleton, label, popoverProps, footer, listRef, ...forwardedProps }: ComboboxListBoxProps) => react_jsx_runtime.JSX.Element;
752
- /**
753
- * Combobox button trigger.
754
- *
755
- * @family Combobox
756
- */
757
- readonly Button: Comp<ComboboxButtonProps, HTMLElement>;
758
- };
759
- /**
760
- *
761
- * A Combobox is a combination of two components:
762
- * * An input to enter the user's value
763
- * * A popover with a list of suggestions to fill the value.
764
- *
765
- * These two components are included via the Combobox.Input and Combobox.ListBox components.
766
- *
767
- * In its simplest implementation the component will automatically filter the given options
768
- * from the value of the input and fill the input with the textValue of the selected option.
769
- *
770
- * Props are available for more complex implementations.
771
- *
772
- * @family Combobox
773
- * @param ComboboxProps
774
- * @returns Combobox
775
- */
776
- 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) & {
777
- /**
778
- * Option to set within a combobox list.
779
- *
780
- * @family Combobox
781
- * @param ComboboxOptionProps
782
- * @returns ComboboxOption
783
- */
784
- readonly Option: Comp<ComboboxOptionComponentProps<any>, HTMLElement>;
785
- /**
786
- * Skeleton for a combobox option.
787
- * A typography skeleton is rendered by default but can be overridden by passing children.
788
- */
789
- readonly OptionSkeleton: ({ className, index, before, after, size, children, }: ComboboxOptionSkeletonProps) => react_jsx_runtime.JSX.Element;
790
- /**
791
- * Section for options of a Combobox.
792
- *
793
- * @family Combobox
794
- * @param ComboboxSectionProps
795
- * @returns ComboboxSection
796
- */
797
- readonly Section: ({ children, ...props }: ComboboxSectionProps) => react_jsx_runtime.JSX.Element;
798
- /**
799
- * Combobox input trigger.
800
- *
801
- * @family Combobox
802
- */
803
- readonly Input: ({ hideToggle, inputRef, textFieldRef, afterElement, onFocus, onBlur, onKeyDown, clearButtonProps, hasClearButton, theme, ...textFieldProps }: ComboboxInputProps) => react_jsx_runtime.JSX.Element;
804
- /**
805
- * The listbox containing the combobox's options.
806
- *
807
- * @family Combobox
808
- * @param ComboboxListBoxProps
809
- * @returns ComboboxListBox
810
- */
811
- readonly List: ({ children, renderItemSkeleton, label, popoverProps, footer, listRef, ...forwardedProps }: ComboboxListBoxProps) => react_jsx_runtime.JSX.Element;
812
- /**
813
- * Combobox button trigger.
814
- *
815
- * @family Combobox
816
- */
817
- readonly Button: Comp<ComboboxButtonProps, HTMLElement>;
818
- };
819
-
820
901
  /**
821
902
  * Comment block variants.
822
903
  */
@@ -828,7 +909,7 @@ type CommentBlockVariant = ValueOf$1<typeof CommentBlockVariant>;
828
909
  /**
829
910
  * Defines the props of the component.
830
911
  */
831
- interface CommentBlockProps extends GenericProps, HasTheme {
912
+ interface CommentBlockProps extends GenericProps, HasTheme$1 {
832
913
  /** Action toolbar content. */
833
914
  actions?: ReactNode;
834
915
  /** Props to pass to the avatar. */
@@ -1006,7 +1087,7 @@ interface DialogProps extends GenericProps {
1006
1087
  /** Children */
1007
1088
  children?: React__default.ReactNode;
1008
1089
  }
1009
- type DialogSizes = Extract<Size, 'tiny' | 'regular' | 'big' | 'huge'>;
1090
+ type DialogSizes = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
1010
1091
  /**
1011
1092
  * Dialog component.
1012
1093
  *
@@ -1019,7 +1100,7 @@ declare const Dialog: Comp<DialogProps, HTMLDivElement>;
1019
1100
  /**
1020
1101
  * Defines the props of the component.
1021
1102
  */
1022
- interface DividerProps$1 extends HasTheme$1, HasClassName {
1103
+ interface DividerProps$1 extends HasTheme, HasClassName {
1023
1104
  /** reference to the root element */
1024
1105
  ref?: CommonRef;
1025
1106
  }
@@ -1041,7 +1122,7 @@ declare const Divider: Comp<DividerProps, HTMLHRElement>;
1041
1122
  /**
1042
1123
  * Defines the props of the component.
1043
1124
  */
1044
- interface DragHandleProps extends GenericProps, HasTheme {
1125
+ interface DragHandleProps extends GenericProps, HasTheme$1 {
1045
1126
  }
1046
1127
  /**
1047
1128
  * DragHandle component.
@@ -1052,6 +1133,111 @@ interface DragHandleProps extends GenericProps, HasTheme {
1052
1133
  */
1053
1134
  declare const DragHandle: Comp<DragHandleProps, HTMLDivElement>;
1054
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
+
1180
+ /**
1181
+ * Defines the props of the component.
1182
+ */
1183
+ interface PopoverProps extends GenericProps, HasTheme$1 {
1184
+ /** Reference to the DOM element used to set the position of the popover. */
1185
+ anchorRef: React.RefObject<HTMLElement>;
1186
+ /** Customize the root element. (Must accept ref forwarding and props forwarding!). */
1187
+ as?: React.ElementType;
1188
+ /** Element which will act as boundary when opening the popover. */
1189
+ boundaryRef?: RefObject<HTMLElement>;
1190
+ /** Content. */
1191
+ children: ReactNode;
1192
+ /** Whether a click anywhere out of the popover would close it. */
1193
+ closeOnClickAway?: boolean;
1194
+ /** Whether an escape key press would close the popover. */
1195
+ closeOnEscape?: boolean;
1196
+ /** Shadow elevation. */
1197
+ elevation?: Elevation;
1198
+ /**
1199
+ * Manage popover width:
1200
+ * - `maxWidth`: popover not bigger than anchor
1201
+ * - `minWidth` or `true`: popover not smaller than anchor
1202
+ * - `width`: popover equal to the anchor.
1203
+ */
1204
+ fitToAnchorWidth?: FitAnchorWidth | boolean;
1205
+ /** Shrink popover if even after flipping there is not enough space. */
1206
+ fitWithinViewportHeight?: boolean;
1207
+ /** Element to focus when opening the popover. */
1208
+ focusElement?: RefObject<HTMLElement>;
1209
+ /** Whether the focus should go back on the anchor when popover closes and focus is within. */
1210
+ focusAnchorOnClose?: boolean;
1211
+ /** Whether we put an arrow or not. */
1212
+ hasArrow?: boolean;
1213
+ /** Whether the popover is open or not. */
1214
+ isOpen: boolean;
1215
+ /** Offset placement relative to anchor. */
1216
+ offset?: Offset;
1217
+ /** Reference to the parent element that triggered the popover (will get back focus on close or else fallback on the anchor element). */
1218
+ parentElement?: RefObject<HTMLElement>;
1219
+ /** Placement relative to anchor. */
1220
+ placement?: Placement;
1221
+ /** Whether the popover should be rendered into a DOM node that exists outside the DOM hierarchy of the parent component. */
1222
+ usePortal?: boolean;
1223
+ /** The element in which the focus trap should be set. Default to popover. */
1224
+ focusTrapZoneElement?: RefObject<HTMLElement>;
1225
+ /** Z-axis position. */
1226
+ zIndex?: number;
1227
+ /** On close callback (on click away or Escape pressed). */
1228
+ onClose?(): void;
1229
+ /** Whether the popover should trap the focus within itself. Default to false. */
1230
+ withFocusTrap?: boolean;
1231
+ }
1232
+ /**
1233
+ * Popover component.
1234
+ *
1235
+ * @param props Component props.
1236
+ * @param ref Component ref.
1237
+ * @return React element.
1238
+ */
1239
+ declare const Popover: Comp<PopoverProps, HTMLDivElement>;
1240
+
1055
1241
  /**
1056
1242
  * Defines the props of the component.
1057
1243
  */
@@ -1136,7 +1322,7 @@ declare const Dropdown: Comp<DropdownProps, HTMLDivElement>;
1136
1322
  /**
1137
1323
  * Defines the props of the component.
1138
1324
  */
1139
- interface ExpansionPanelProps extends GenericProps, HasCloseMode, HasTheme {
1325
+ interface ExpansionPanelProps extends GenericProps, HasCloseMode, HasTheme$1 {
1140
1326
  /** Whether the expansion panel has a background. */
1141
1327
  hasBackground?: boolean;
1142
1328
  /** Whether the header has a divider. */
@@ -1212,7 +1398,7 @@ interface TextProps$1 extends HasClassName {
1212
1398
  style?: CSSProperties;
1213
1399
  }
1214
1400
 
1215
- interface FlagProps$1 extends HasClassName, HasTheme$1 {
1401
+ interface FlagProps$1 extends HasClassName, HasTheme {
1216
1402
  /** Color of the component. */
1217
1403
  color?: ColorPalette;
1218
1404
  /** Icon to use before the label. */
@@ -1241,10 +1427,10 @@ interface FlagProps extends GenericProps, Omit<FlagProps$1, 'children' | 'Text'>
1241
1427
  declare const Flag: Comp<FlagProps, HTMLDivElement>;
1242
1428
 
1243
1429
  type MarginAutoAlignment = Extract<Alignment, 'top' | 'bottom' | 'right' | 'left'>;
1244
- type GapSize = Extract<Size$1, 'tiny' | 'regular' | 'medium' | 'big' | 'huge'>;
1430
+ type GapSize = Extract<Size, 'tiny' | 'regular' | 'medium' | 'big' | 'huge'>;
1245
1431
  type SpaceAlignment = Extract<Alignment, 'space-between' | 'space-evenly' | 'space-around'>;
1246
1432
  type FlexVerticalAlignment = VerticalAlignment | SpaceAlignment;
1247
- type FlexHorizontalAlignment = HorizontalAlignment$1 | SpaceAlignment;
1433
+ type FlexHorizontalAlignment = HorizontalAlignment | SpaceAlignment;
1248
1434
 
1249
1435
  /**
1250
1436
  * Defines the props of the component.
@@ -1302,7 +1488,7 @@ declare const GenericBlockGapSize: Pick<{
1302
1488
  readonly medium: "medium";
1303
1489
  readonly big: "big";
1304
1490
  readonly huge: "huge";
1305
- }, "big" | "medium" | "tiny" | "regular" | "huge">;
1491
+ }, "medium" | "tiny" | "regular" | "big" | "huge">;
1306
1492
  type GenericBlockGapSize = ValueOf$1<typeof GenericBlockGapSize>;
1307
1493
 
1308
1494
  interface GenericBlockProps extends FlexBoxProps {
@@ -1422,7 +1608,7 @@ declare const useHeadingLevel: () => {
1422
1608
  headingElement: _lumx_core_js_types.HeadingElement;
1423
1609
  };
1424
1610
 
1425
- type GridGutterSize = Extract<Size, 'regular' | 'big' | 'huge'>;
1611
+ type GridGutterSize = Extract<Size$1, 'regular' | 'big' | 'huge'>;
1426
1612
  /**
1427
1613
  * Defines the props of the component.
1428
1614
  */
@@ -1476,33 +1662,18 @@ type GridColumnGapSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
1476
1662
  /**
1477
1663
  * Defines the props of the component.
1478
1664
  */
1479
- interface GridColumnProps$1 extends HasClassName {
1665
+ interface GridColumnProps extends GenericProps {
1480
1666
  /** Customize the root element. */
1481
- as?: any;
1667
+ as?: React.ElementType;
1482
1668
  /** Children elements. */
1483
- children?: JSXElement;
1669
+ children?: ReactNode;
1484
1670
  /** Space between columns and rows. */
1485
1671
  gap?: GridColumnGapSize;
1486
1672
  /** Ideal number of columns. */
1487
1673
  maxColumns?: number;
1488
1674
  /** Minimum width for each item, reduce the number of column if there is not enough space. */
1489
1675
  itemMinWidth?: number;
1490
- /** Custom styles. */
1491
- style?: any;
1492
- /** reference to the root element */
1493
- ref?: CommonRef;
1494
1676
  }
1495
-
1496
- /**
1497
- * Defines the props of the component.
1498
- */
1499
- interface GridColumnProps extends GenericProps, GridColumnProps$1 {
1500
- /** Customize the root element. */
1501
- as?: React.ElementType;
1502
- /** Children elements. */
1503
- children?: React.ReactNode;
1504
- }
1505
-
1506
1677
  /**
1507
1678
  * The GridColumn is a layout component that can display children in a grid
1508
1679
  * with custom display properties. It also comes with a responsive design,
@@ -1520,7 +1691,7 @@ type IconSizes = (typeof ICON_SIZES)[number];
1520
1691
  /**
1521
1692
  * Defines the props of the component.
1522
1693
  */
1523
- interface IconProps$1 extends HasClassName, HasTheme$1 {
1694
+ interface IconProps$1 extends HasClassName, HasTheme {
1524
1695
  /** Color variant. */
1525
1696
  color?: ColorWithVariants;
1526
1697
  /** Lightened or darkened variant of the selected icon color. */
@@ -1566,7 +1737,7 @@ declare module 'react' {
1566
1737
  /**
1567
1738
  * Thumbnail sizes.
1568
1739
  */
1569
- type ThumbnailSize$1 = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
1740
+ type ThumbnailSize$1 = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
1570
1741
  /**
1571
1742
  * Thumbnail variants.
1572
1743
  */
@@ -1588,13 +1759,13 @@ type ImgHTMLProps = ImgHTMLAttributes<HTMLImageElement>;
1588
1759
  /**
1589
1760
  * Defines the props of the component.
1590
1761
  */
1591
- interface ThumbnailProps$1 extends HasTheme, HasClassName$1 {
1762
+ interface ThumbnailProps$1 extends HasTheme$1, HasClassName$1 {
1592
1763
  /** Alignment of the thumbnail in it's parent (requires flex parent). */
1593
- align?: HorizontalAlignment;
1764
+ align?: HorizontalAlignment$1;
1594
1765
  /** Image alternative text. */
1595
1766
  alt: string;
1596
1767
  /** Image aspect ratio. */
1597
- aspectRatio?: AspectRatio;
1768
+ aspectRatio?: AspectRatio$1;
1598
1769
  /** Badge. */
1599
1770
  badge?: JSXElement$1;
1600
1771
  /** Image cross origin resource policy. */
@@ -1658,11 +1829,11 @@ declare module 'react' {
1658
1829
  * All available aspect ratios.
1659
1830
  * @deprecated
1660
1831
  */
1661
- declare const ThumbnailAspectRatio: Record<string, AspectRatio>;
1832
+ declare const ThumbnailAspectRatio: Record<string, AspectRatio$1>;
1662
1833
  /**
1663
1834
  * Thumbnail sizes.
1664
1835
  */
1665
- type ThumbnailSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
1836
+ type ThumbnailSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
1666
1837
  /**
1667
1838
  * Thumbnail variants.
1668
1839
  */
@@ -1727,15 +1898,15 @@ type ImageBlockCaptionPosition = ValueOf$1<typeof ImageBlockCaptionPosition>;
1727
1898
  /**
1728
1899
  * Image block sizes.
1729
1900
  */
1730
- type ImageBlockSize = Extract<Size, 'xl' | 'xxl'>;
1901
+ type ImageBlockSize = Extract<Size$1, 'xl' | 'xxl'>;
1731
1902
  /**
1732
1903
  * Defines the props of the component.
1733
1904
  */
1734
- interface ImageBlockProps extends GenericProps, HasTheme, ImageCaptionMetadata {
1905
+ interface ImageBlockProps extends GenericProps, HasTheme$1, ImageCaptionMetadata {
1735
1906
  /** Action toolbar content. */
1736
1907
  actions?: ReactNode;
1737
1908
  /** Alignment. */
1738
- align?: HorizontalAlignment;
1909
+ align?: HorizontalAlignment$1;
1739
1910
  /** Image alternative text. */
1740
1911
  alt: string;
1741
1912
  /** Caption position. */
@@ -1857,11 +2028,11 @@ declare const InlineList: Comp<InlineListProps, HTMLElement>;
1857
2028
  /**
1858
2029
  * Defines the props of the component.
1859
2030
  */
1860
- interface InputHelperProps$1 extends HasClassName, HasTheme$1 {
2031
+ interface InputHelperProps$1 extends HasClassName, HasTheme {
1861
2032
  /** Helper content. */
1862
2033
  children: JSXElement;
1863
2034
  /** Helper variant. */
1864
- kind?: Kind$1;
2035
+ kind?: Kind;
1865
2036
  /** ref to the root element `p` */
1866
2037
  ref?: CommonRef;
1867
2038
  /** id for the input helper */
@@ -1879,10 +2050,34 @@ interface InputHelperProps extends InputHelperProps$1, GenericProps {
1879
2050
  */
1880
2051
  declare const InputHelper: Comp<InputHelperProps, HTMLParagraphElement>;
1881
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
+
1882
2077
  /**
1883
2078
  * Defines the props of the component.
1884
2079
  */
1885
- interface LightboxProps extends GenericProps, HasTheme, Pick<AriaAttributes, 'aria-label' | 'aria-labelledby'> {
2080
+ interface LightboxProps extends GenericProps, HasTheme$1, Pick<AriaAttributes, 'aria-label' | 'aria-labelledby'> {
1886
2081
  /** Props to pass to the close button (minus those already set by the Lightbox props). */
1887
2082
  closeButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis' | 'color'>;
1888
2083
  /** Whether the component is open or not. */
@@ -1912,7 +2107,7 @@ declare const Lightbox: Comp<LightboxProps, HTMLDivElement>;
1912
2107
  /**
1913
2108
  * Defines the props of the component.
1914
2109
  */
1915
- interface LinkProps$1 extends HasTheme$1, HasClassName, HasAriaDisabled, HasDisabled {
2110
+ interface LinkProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled {
1916
2111
  /** Link label content. */
1917
2112
  label?: JSXElement;
1918
2113
  /** Color variant. */
@@ -1971,7 +2166,7 @@ declare const Link: Comp<LinkProps, HTMLButtonElement | HTMLAnchorElement>;
1971
2166
  /**
1972
2167
  * Defines the props of the component.
1973
2168
  */
1974
- interface LinkPreviewProps extends GenericProps, HasTheme {
2169
+ interface LinkPreviewProps extends GenericProps, HasTheme$1 {
1975
2170
  /** Description. */
1976
2171
  description?: string;
1977
2172
  /** Link URL. */
@@ -1981,7 +2176,7 @@ interface LinkPreviewProps extends GenericProps, HasTheme {
1981
2176
  /** Props to pass to the link (minus those already set by the LinkPreview props). */
1982
2177
  linkProps?: Omit<LinkProps, 'color' | 'colorVariant' | 'href' | 'target'>;
1983
2178
  /** Size variant. */
1984
- size?: Extract<Size, 'regular' | 'big'>;
2179
+ size?: Extract<Size$1, 'regular' | 'big'>;
1985
2180
  /** Thumbnail for the link preview. */
1986
2181
  thumbnailProps?: ThumbnailProps;
1987
2182
  /** Title. */
@@ -2023,7 +2218,7 @@ interface ListProps extends GenericProps {
2023
2218
  */
2024
2219
  isClickable?: boolean;
2025
2220
  /** Item padding size. */
2026
- itemPadding?: Extract<Size, 'big' | 'huge'>;
2221
+ itemPadding?: Extract<Size$1, 'big' | 'huge'>;
2027
2222
  /** Tab index of the list. Default to -1 */
2028
2223
  tabIndex?: number;
2029
2224
  /**
@@ -2039,6 +2234,50 @@ declare const List: Comp<ListProps, HTMLUListElement> & {
2039
2234
  useKeyboardListNavigation: useKeyboardListNavigationType;
2040
2235
  };
2041
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
+
2042
2281
  /**
2043
2282
  * Defines the props of the component.
2044
2283
  */
@@ -2077,7 +2316,7 @@ interface MessageProps$1 extends HasClassName {
2077
2316
  /** Whether the message has a background or not. */
2078
2317
  hasBackground?: boolean;
2079
2318
  /** Message variant. */
2080
- kind?: Kind$1;
2319
+ kind?: Kind;
2081
2320
  /** Message custom icon SVG path. */
2082
2321
  icon?: string;
2083
2322
  /** Reference to the message container element. */
@@ -2111,7 +2350,7 @@ declare const Message: Comp<MessageProps, HTMLDivElement>;
2111
2350
  /**
2112
2351
  * Defines the props of the component.
2113
2352
  */
2114
- interface MosaicProps extends GenericProps, HasTheme {
2353
+ interface MosaicProps extends GenericProps, HasTheme$1 {
2115
2354
  /** Thumbnails. */
2116
2355
  thumbnails: ThumbnailProps[];
2117
2356
  /** On image click callback. */
@@ -2146,14 +2385,14 @@ type BaseNavigationItemProps = {
2146
2385
  };
2147
2386
  declare const NavigationItem: (<E extends ElementType = "a">(props: React$1.PropsWithoutRef<React$1.ComponentProps<E>> & {
2148
2387
  as?: E | undefined;
2149
- } & HasTheme & HasClassName$1 & BaseNavigationItemProps & HasRequiredLinkHref<E> & React$1.ComponentProps<E> & {
2388
+ } & HasTheme$1 & HasClassName$1 & BaseNavigationItemProps & HasRequiredLinkHref<E> & React$1.ComponentProps<E> & {
2150
2389
  ref?: ComponentRef<E> | undefined;
2151
2390
  }) => React.JSX.Element) & {
2152
2391
  displayName: string;
2153
2392
  className: "lumx-navigation-item";
2154
2393
  };
2155
2394
 
2156
- type NavigationProps = React.ComponentProps<'nav'> & HasClassName$1 & HasTheme & {
2395
+ type NavigationProps = React.ComponentProps<'nav'> & HasClassName$1 & HasTheme$1 & {
2157
2396
  /** Content of the navigation. These components should be of type NavigationItem to be rendered */
2158
2397
  children?: React.ReactNode;
2159
2398
  orientation?: Orientation$1;
@@ -2167,7 +2406,7 @@ declare const Navigation: Comp<NavigationProps, HTMLElement> & SubComponents;
2167
2406
  /**
2168
2407
  * Defines the props of the component.
2169
2408
  */
2170
- interface NotificationProps extends GenericProps, HasTheme {
2409
+ interface NotificationProps extends GenericProps, HasTheme$1 {
2171
2410
  /** Action button label. */
2172
2411
  actionLabel?: string;
2173
2412
  /** Content. */
@@ -2175,7 +2414,7 @@ interface NotificationProps extends GenericProps, HasTheme {
2175
2414
  /** Whether the component is open or not. */
2176
2415
  isOpen?: boolean;
2177
2416
  /** Notification type. */
2178
- type?: Kind;
2417
+ type?: Kind$1;
2179
2418
  /** Z-axis position. */
2180
2419
  zIndex?: number;
2181
2420
  /** On action button click callback. */
@@ -2211,7 +2450,7 @@ declare const PopoverDialog: Comp<PopoverDialogProps, HTMLDivElement>;
2211
2450
  /**
2212
2451
  * Defines the props of the component.
2213
2452
  */
2214
- interface PostBlockProps extends GenericProps, HasTheme {
2453
+ interface PostBlockProps extends GenericProps, HasTheme$1 {
2215
2454
  /** Action toolbar content. */
2216
2455
  actions?: ReactNode;
2217
2456
  /** Attachment content. */
@@ -2255,7 +2494,7 @@ type ProgressVariant = ValueOf$1<typeof ProgressVariant>;
2255
2494
  /**
2256
2495
  * Defines the props of the component.
2257
2496
  */
2258
- interface ProgressProps extends GenericProps, HasTheme {
2497
+ interface ProgressProps extends GenericProps, HasTheme$1 {
2259
2498
  /** Progress variant. */
2260
2499
  variant?: ProgressVariant;
2261
2500
  }
@@ -2272,11 +2511,11 @@ declare const Progress: Comp<ProgressProps, HTMLDivElement>;
2272
2511
  /**
2273
2512
  * Progress sizes.
2274
2513
  */
2275
- type ProgressCircularSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm'>;
2514
+ type ProgressCircularSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm'>;
2276
2515
  /**
2277
2516
  * Defines the props of the component.
2278
2517
  */
2279
- interface ProgressCircularProps extends GenericProps, HasTheme {
2518
+ interface ProgressCircularProps extends GenericProps, HasTheme$1 {
2280
2519
  /**
2281
2520
  * Progress circular size.
2282
2521
  */
@@ -2296,7 +2535,7 @@ interface ProgressCircularProps extends GenericProps, HasTheme {
2296
2535
  */
2297
2536
  declare const ProgressCircular: Comp<ProgressCircularProps, HTMLDivElement>;
2298
2537
 
2299
- interface ProgressLinearProps extends GenericProps, HasTheme {
2538
+ interface ProgressLinearProps extends GenericProps, HasTheme$1 {
2300
2539
  }
2301
2540
  /**
2302
2541
  * ProgressLinear component.
@@ -2409,7 +2648,7 @@ declare const ProgressTrackerStepPanel: Comp<ProgressTrackerStepPanelProps, HTML
2409
2648
  /**
2410
2649
  * Defines the props of the component.
2411
2650
  */
2412
- interface RadioButtonProps$1 extends HasTheme$1, HasClassName, HasAriaDisabled, HasDisabled, HasChecked {
2651
+ interface RadioButtonProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled, HasChecked {
2413
2652
  /** Helper text. */
2414
2653
  helper?: string;
2415
2654
  /** Native input id property. */
@@ -2470,7 +2709,7 @@ declare const SelectVariant: {
2470
2709
  readonly chip: "chip";
2471
2710
  };
2472
2711
  type SelectVariant = ValueOf$1<typeof SelectVariant>;
2473
- interface CoreSelectProps extends GenericProps, HasTheme {
2712
+ interface CoreSelectProps extends GenericProps, HasTheme$1 {
2474
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. */
2475
2714
  clearButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
2476
2715
  /** Whether the select (input variant) is displayed with error style or not. */
@@ -2550,7 +2789,7 @@ declare const SelectMultiple: Comp<SelectMultipleProps, HTMLDivElement>;
2550
2789
  /**
2551
2790
  * Defines the props of the component.
2552
2791
  */
2553
- interface SideNavigationProps extends GenericProps, HasTheme {
2792
+ interface SideNavigationProps extends GenericProps, HasTheme$1 {
2554
2793
  /** SideNavigationItem elements. */
2555
2794
  children: ReactNode;
2556
2795
  }
@@ -2570,7 +2809,7 @@ interface SideNavigationItemProps extends GenericProps, HasCloseMode {
2570
2809
  /** SideNavigationItem elements. */
2571
2810
  children?: ReactNode;
2572
2811
  /** Emphasis variant. */
2573
- emphasis?: Emphasis;
2812
+ emphasis?: Emphasis$1;
2574
2813
  /** Label content. */
2575
2814
  label: string | ReactNode;
2576
2815
  /** Icon (SVG path). */
@@ -2602,7 +2841,7 @@ declare const SideNavigationItem: Comp<SideNavigationItemProps, HTMLLIElement>;
2602
2841
  /**
2603
2842
  * Defines the props of the component.
2604
2843
  */
2605
- interface SkeletonCircleProps$1 extends HasTheme$1, HasClassName {
2844
+ interface SkeletonCircleProps$1 extends HasTheme, HasClassName {
2606
2845
  /** Size variant. */
2607
2846
  size: GlobalSize;
2608
2847
  /** The color of the skeleton. */
@@ -2623,9 +2862,9 @@ type SkeletonRectangleVariant = ValueOf<typeof SkeletonRectangleVariant>;
2623
2862
  /**
2624
2863
  * Defines the props of the component.
2625
2864
  */
2626
- interface SkeletonRectangleProps$1 extends HasTheme$1, HasClassName {
2865
+ interface SkeletonRectangleProps$1 extends HasTheme, HasClassName {
2627
2866
  /** Aspect ratio (use with width and not height). */
2628
- aspectRatio?: Extract<AspectRatio$1, 'square' | 'horizontal' | 'vertical' | 'wide'>;
2867
+ aspectRatio?: Extract<AspectRatio, 'square' | 'horizontal' | 'vertical' | 'wide'>;
2629
2868
  /** Height size. */
2630
2869
  height?: GlobalSize;
2631
2870
  /** Border variant. */
@@ -2641,7 +2880,7 @@ interface SkeletonRectangleProps$1 extends HasTheme$1, HasClassName {
2641
2880
  /**
2642
2881
  * Defines the props of the component.
2643
2882
  */
2644
- interface SkeletonTypographyProps$1 extends HasTheme$1, HasClassName {
2883
+ interface SkeletonTypographyProps$1 extends HasTheme, HasClassName {
2645
2884
  /** Typography variant. */
2646
2885
  typography: TypographyInterface;
2647
2886
  /** Width CSS property. */
@@ -2699,7 +2938,7 @@ declare const SkeletonTypography: Comp<SkeletonTypographyProps, HTMLDivElement>;
2699
2938
  /**
2700
2939
  * Defines the props of the component.
2701
2940
  */
2702
- interface SliderProps extends GenericProps, HasTheme {
2941
+ interface SliderProps extends GenericProps, HasTheme$1 {
2703
2942
  /** Helper text. */
2704
2943
  helper?: string;
2705
2944
  /** Whether the min and max labels should be hidden or not. */
@@ -2863,7 +3102,7 @@ interface UseSlideshowControls {
2863
3102
  /**
2864
3103
  * Defines the props of the component.
2865
3104
  */
2866
- interface SlideshowControlsProps extends GenericProps, HasTheme {
3105
+ interface SlideshowControlsProps extends GenericProps, HasTheme$1 {
2867
3106
  /** Index of the current slide. */
2868
3107
  activeIndex?: number;
2869
3108
  /** Props to pass to the next button (minus those already set by the SlideshowControls props). */
@@ -2907,7 +3146,7 @@ declare const SlideshowControls: Comp<SlideshowControlsProps, HTMLDivElement> &
2907
3146
  };
2908
3147
  };
2909
3148
 
2910
- interface SlidesProps extends GenericProps, HasTheme {
3149
+ interface SlidesProps extends GenericProps, HasTheme$1 {
2911
3150
  /** current slide active */
2912
3151
  activeIndex: number;
2913
3152
  /** slides id to be added to the wrapper */
@@ -2952,7 +3191,7 @@ declare const Slides: Comp<SlidesProps, HTMLDivElement>;
2952
3191
  /**
2953
3192
  * Defines the props of the component.
2954
3193
  */
2955
- interface SwitchProps$1 extends HasTheme$1, HasClassName, HasAriaDisabled, HasDisabled, HasChecked {
3194
+ interface SwitchProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled, HasChecked {
2956
3195
  /** Helper text. */
2957
3196
  helper?: string;
2958
3197
  /** Native input id property. */
@@ -2996,7 +3235,7 @@ declare const Switch: Comp<SwitchProps, HTMLDivElement>;
2996
3235
  /**
2997
3236
  * Defines the props of the component.
2998
3237
  */
2999
- interface TableProps$1 extends HasTheme$1, HasClassName {
3238
+ interface TableProps$1 extends HasTheme, HasClassName {
3000
3239
  /** Whether the table has checkbox or thumbnail on first cell or not. */
3001
3240
  hasBefore?: boolean;
3002
3241
  /** Whether the table has dividers or not. */
@@ -3191,7 +3430,7 @@ declare enum TabListLayout {
3191
3430
  /**
3192
3431
  * Defines the props of the component.
3193
3432
  */
3194
- interface TabListProps extends GenericProps, HasTheme {
3433
+ interface TabListProps extends GenericProps, HasTheme$1 {
3195
3434
  /** ARIA label (purpose of the set of tabs). */
3196
3435
  ['aria-label']: string;
3197
3436
  /** Tab list. */
@@ -3275,11 +3514,79 @@ interface TextProps extends TextProps$1, GenericProps {
3275
3514
  */
3276
3515
  declare const Text: Comp<TextProps, HTMLElement>;
3277
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
+
3278
3585
  type NativeInputProps = Omit<ComponentProps<'input'>, 'value' | 'onChange'>;
3279
3586
  /**
3280
3587
  * Defines the props of the component.
3281
3588
  */
3282
- interface RawInputTextProps extends NativeInputProps, HasTheme, HasClassName$1 {
3589
+ interface RawInputTextProps extends NativeInputProps, HasTheme$1, HasClassName$1 {
3283
3590
  value?: string;
3284
3591
  onChange?: (value: string, name?: string, event?: SyntheticEvent) => void;
3285
3592
  }
@@ -3293,7 +3600,7 @@ type NativeTextareaProps = ComponentProps<'textarea'>;
3293
3600
  /**
3294
3601
  * Defines the props of the component.
3295
3602
  */
3296
- interface RawInputTextareaProps extends Omit<NativeTextareaProps, 'value' | 'onChange'>, HasTheme, HasClassName$1 {
3603
+ interface RawInputTextareaProps extends Omit<NativeTextareaProps, 'value' | 'onChange'>, HasTheme$1, HasClassName$1 {
3297
3604
  minimumRows?: number;
3298
3605
  value?: string;
3299
3606
  onChange?: (value: string, name?: string, event?: SyntheticEvent) => void;
@@ -3326,6 +3633,36 @@ interface ToolbarProps extends GenericProps {
3326
3633
  */
3327
3634
  declare const Toolbar: Comp<ToolbarProps, HTMLDivElement>;
3328
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
+
3329
3666
  /**
3330
3667
  * Uploader variants.
3331
3668
  */
@@ -3338,7 +3675,7 @@ type UploaderVariant = ValueOf$1<typeof UploaderVariant>;
3338
3675
  /**
3339
3676
  * Uploader sizes.
3340
3677
  */
3341
- type UploaderSize = Extract<Size, 'xl' | 'xxl'>;
3678
+ type UploaderSize = Extract<Size$1, 'xl' | 'xxl'>;
3342
3679
  /**
3343
3680
  * Extend native HTML input props with specialized `onChange` providing the a `File` array.
3344
3681
  */
@@ -3348,9 +3685,9 @@ interface FileInputProps extends Omit<React__default.ComponentProps<'input'>, 'o
3348
3685
  /**
3349
3686
  * Defines the props of the component.
3350
3687
  */
3351
- interface UploaderProps extends GenericProps, HasTheme, HasAriaDisabled$1 {
3688
+ interface UploaderProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
3352
3689
  /** Image aspect ratio. */
3353
- aspectRatio?: AspectRatio;
3690
+ aspectRatio?: AspectRatio$1;
3354
3691
  /** Icon (SVG path). */
3355
3692
  icon?: string;
3356
3693
  /** Disabled state */
@@ -3378,11 +3715,11 @@ declare const Uploader: Comp<UploaderProps, HTMLElement>;
3378
3715
  /**
3379
3716
  * User block sizes.
3380
3717
  */
3381
- type UserBlockSize = Extract<Size, 'xs' | 's' | 'm' | 'l'>;
3718
+ type UserBlockSize = Extract<Size$1, 'xs' | 's' | 'm' | 'l'>;
3382
3719
  /**
3383
3720
  * Defines the props of the component.
3384
3721
  */
3385
- interface UserBlockProps extends GenericProps, HasTheme {
3722
+ interface UserBlockProps extends GenericProps, HasTheme$1 {
3386
3723
  /** Props to pass to the avatar. */
3387
3724
  avatarProps?: Omit<AvatarProps, 'alt'>;
3388
3725
  /** Additional fields used to describe the user. */
@@ -3423,7 +3760,7 @@ interface UserBlockProps extends GenericProps, HasTheme {
3423
3760
  */
3424
3761
  declare const UserBlock: Comp<UserBlockProps, HTMLDivElement>;
3425
3762
 
3426
- type ThemeContextValue = Theme | undefined;
3763
+ type ThemeContextValue = Theme$1 | undefined;
3427
3764
  /** Provide a theme context to all children. */
3428
3765
  declare const ThemeProvider: React__default.FC<{
3429
3766
  value: ThemeContextValue;
@@ -3432,5 +3769,5 @@ declare const ThemeProvider: React__default.FC<{
3432
3769
  /** Get the theme in the current context. */
3433
3770
  declare function useTheme(): ThemeContextValue;
3434
3771
 
3435
- export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, BaseButtonProps, Button, ButtonEmphasis, ButtonGroup, CLASSNAME, COMBOBOX_OPTION_CLASSNAME, COMPONENT_NAME, Checkbox, Chip, ChipGroup, Combobox, ComboboxButton, ComboboxDivider, ComboboxInput, ComboboxListBoxProps, ComboboxOption, ComboboxOptionAction, ComboboxOptionMoreInfo, ComboboxOptionProps, ComboboxOptionSkeletonProps, ComboboxProps, ComboboxSection, CommentBlock, CommentBlockVariant, DEFAULT_PROPS, DatePicker, DatePickerControlled, DatePickerField, Dialog, Divider, DragHandle, Dropdown, 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, PopoverDialog, PopoverProps, 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 };
3436
- export type { AlertDialogProps, AutocompleteMultipleProps, AutocompleteProps, AvatarProps, AvatarSize, BadgeProps, BadgeWrapperProps, ButtonGroupProps, ButtonProps, CheckboxProps, ChipGroupProps, ChipProps, ComboboxButtonProps, ComboboxInputProps, ComboboxOptionComponentProps, ComboboxOptionMoreInfoProps, 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, 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 };
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 };