@lumx/react 4.3.2-alpha.24 → 4.3.2-alpha.26

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,14 +1,27 @@
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, LumxClassName as LumxClassName$1, 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, PropsToOverride, 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, S as Selector, f as ComboboxOptionProps, E as Elevation, F as FitAnchorWidth, g as ColorWithVariants, h as ColorVariant, i as Typography, W as WhiteSpace, j 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-2RZbmkfM.js';
9
- export { o as BaseSelectProps, p as ButtonSize, q as ComboboxAction, r as ComboboxProps, s as IconButton, t as InputLabel, u as InputLabelProps, L as ListItem, v as ListItemProps, w as ListItemSize, M as MultipleSelection, x as OnComboboxInputChange, y as OnComboboxSelect, z as SingleSelection, D as TextField, N as Tooltip, Q as TooltipPlacement, R as TooltipProps, U as isClickable } from './Tooltip-2RZbmkfM.js';
7
+ import React__default, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, RefObject, CSSProperties, ImgHTMLAttributes, AriaAttributes as AriaAttributes$1, SetStateAction, Key, ElementType, ComponentProps } from 'react';
10
8
  import * as react_jsx_runtime from 'react/jsx-runtime';
11
9
 
10
+ /** LumX Component Type. */
11
+ type Comp<P, T = HTMLElement> = {
12
+ (props: P & {
13
+ ref?: Ref<T>;
14
+ }): ReactElement | null;
15
+ /** React component type. */
16
+ readonly $$typeof: symbol;
17
+ /** Component default props. */
18
+ defaultProps?: Partial<P>;
19
+ /** Component name. */
20
+ displayName?: string;
21
+ /** Component base class name. */
22
+ className?: string;
23
+ };
24
+
12
25
  /**
13
26
  * Extract ref type for a component or JSX intrinsic element
14
27
  *
@@ -21,7 +34,7 @@ type ComponentRef<C> = C extends keyof JSX.IntrinsicElements ? JSX.IntrinsicElem
21
34
 
22
35
  interface AlertDialogProps extends Omit<DialogProps, 'header' | 'footer'> {
23
36
  /** Message variant. */
24
- kind?: Kind;
37
+ kind?: Kind$1;
25
38
  /** Dialog title. */
26
39
  title?: string;
27
40
  /** Props forwarded to the confirm button */
@@ -56,7 +69,7 @@ declare const AlertDialog: Comp<AlertDialogProps, HTMLDivElement>;
56
69
  /**
57
70
  * Defines the props of the component.
58
71
  */
59
- interface AutocompleteProps extends GenericProps, HasTheme {
72
+ interface AutocompleteProps extends GenericProps, HasTheme$1 {
60
73
  /**
61
74
  * Whether the suggestions list should display anchored to the input or to the wrapper.
62
75
  * @see {@link DropdownProps#anchorToInput}
@@ -229,7 +242,7 @@ interface AutocompleteMultipleProps extends AutocompleteProps {
229
242
  /** Selected values. */
230
243
  values: any[];
231
244
  /** Alignment of the chips in the autocomplete. */
232
- chipsAlignment?: HorizontalAlignment;
245
+ chipsAlignment?: HorizontalAlignment$1;
233
246
  /** Selected value render function. Default: Renders the value inside of a Chip. */
234
247
  selectedChipRender(choice: any, index: number, onClear?: (event: React.MouseEvent, val: any) => void, isDisabled?: boolean): ReactNode | string;
235
248
  }
@@ -245,11 +258,11 @@ declare const AutocompleteMultiple: Comp<AutocompleteMultipleProps, HTMLDivEleme
245
258
  /**
246
259
  * Avatar sizes.
247
260
  */
248
- type AvatarSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
261
+ type AvatarSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
249
262
  /**
250
263
  * Defines the props of the component.
251
264
  */
252
- interface AvatarProps extends GenericProps, HasTheme {
265
+ interface AvatarProps extends GenericProps, HasTheme$1 {
253
266
  /** Action toolbar content. */
254
267
  actions?: ReactNode;
255
268
  /** Image alternative text. */
@@ -280,6 +293,215 @@ interface AvatarProps extends GenericProps, HasTheme {
280
293
  */
281
294
  declare const Avatar: Comp<AvatarProps, HTMLDivElement>;
282
295
 
296
+ /**
297
+ * Alignments.
298
+ */
299
+ declare const Alignment: {
300
+ readonly bottom: "bottom";
301
+ readonly center: "center";
302
+ readonly end: "end";
303
+ readonly left: "left";
304
+ readonly right: "right";
305
+ readonly spaceAround: "space-around";
306
+ readonly spaceBetween: "space-between";
307
+ readonly spaceEvenly: "space-evenly";
308
+ readonly start: "start";
309
+ readonly top: "top";
310
+ };
311
+ type Alignment = ValueOf$1<typeof Alignment>;
312
+ type VerticalAlignment = Extract<Alignment, 'top' | 'center' | 'bottom'>;
313
+ type HorizontalAlignment = Extract<Alignment, 'right' | 'center' | 'left'>;
314
+ declare const Theme: {
315
+ readonly light: "light";
316
+ readonly dark: "dark";
317
+ };
318
+ type Theme = ValueOf$1<typeof Theme>;
319
+ declare const Size: {
320
+ readonly xxs: "xxs";
321
+ readonly xs: "xs";
322
+ readonly s: "s";
323
+ readonly m: "m";
324
+ readonly l: "l";
325
+ readonly xl: "xl";
326
+ readonly xxl: "xxl";
327
+ readonly tiny: "tiny";
328
+ readonly regular: "regular";
329
+ readonly medium: "medium";
330
+ readonly big: "big";
331
+ readonly huge: "huge";
332
+ };
333
+ type Size = ValueOf$1<typeof Size>;
334
+ type GlobalSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
335
+ declare const Orientation: {
336
+ readonly horizontal: "horizontal";
337
+ readonly vertical: "vertical";
338
+ };
339
+ type Orientation = ValueOf$1<typeof Orientation>;
340
+ declare const Emphasis: {
341
+ readonly low: "low";
342
+ readonly medium: "medium";
343
+ readonly high: "high";
344
+ };
345
+ type Emphasis = ValueOf$1<typeof Emphasis>;
346
+ /**
347
+ * List of typographies that can't be customized.
348
+ */
349
+ declare const TypographyInterface: {
350
+ readonly overline: "overline";
351
+ readonly caption: "caption";
352
+ readonly body1: "body1";
353
+ readonly body2: "body2";
354
+ readonly subtitle1: "subtitle1";
355
+ readonly subtitle2: "subtitle2";
356
+ readonly title: "title";
357
+ readonly headline: "headline";
358
+ readonly display1: "display1";
359
+ };
360
+ type TypographyInterface = ValueOf$1<typeof TypographyInterface>;
361
+ /**
362
+ * List of typographies that can be customized (via CSS variables).
363
+ */
364
+ declare const TypographyCustom: {
365
+ readonly intro: "custom-intro";
366
+ readonly 'body-large': "custom-body-large";
367
+ readonly body: "custom-body";
368
+ readonly quote: "custom-quote";
369
+ readonly 'publish-info': "custom-publish-info";
370
+ readonly button: "custom-button";
371
+ readonly title1: "custom-title1";
372
+ readonly title2: "custom-title2";
373
+ readonly title3: "custom-title3";
374
+ readonly title4: "custom-title4";
375
+ readonly title5: "custom-title5";
376
+ readonly title6: "custom-title6";
377
+ };
378
+ type TypographyCustom = ValueOf$1<typeof TypographyCustom>;
379
+ /**
380
+ * List of all typographies.
381
+ */
382
+ declare const Typography: {
383
+ readonly custom: {
384
+ readonly intro: "custom-intro";
385
+ readonly 'body-large': "custom-body-large";
386
+ readonly body: "custom-body";
387
+ readonly quote: "custom-quote";
388
+ readonly 'publish-info': "custom-publish-info";
389
+ readonly button: "custom-button";
390
+ readonly title1: "custom-title1";
391
+ readonly title2: "custom-title2";
392
+ readonly title3: "custom-title3";
393
+ readonly title4: "custom-title4";
394
+ readonly title5: "custom-title5";
395
+ readonly title6: "custom-title6";
396
+ };
397
+ readonly overline: "overline";
398
+ readonly caption: "caption";
399
+ readonly body1: "body1";
400
+ readonly body2: "body2";
401
+ readonly subtitle1: "subtitle1";
402
+ readonly subtitle2: "subtitle2";
403
+ readonly title: "title";
404
+ readonly headline: "headline";
405
+ readonly display1: "display1";
406
+ };
407
+ type Typography = TypographyInterface | TypographyCustom;
408
+ /**
409
+ * All available aspect ratios.
410
+ */
411
+ declare const AspectRatio: {
412
+ /** Intrinsic content ratio. */
413
+ readonly original: "original";
414
+ /** Ratio 3:1 */
415
+ readonly panoramic: "panoramic";
416
+ /** Ratio 16:9 */
417
+ readonly wide: "wide";
418
+ /** Ratio 3:2 */
419
+ readonly horizontal: "horizontal";
420
+ /** Ratio 3:2 */
421
+ readonly vertical: "vertical";
422
+ /** Ratio 1:1 */
423
+ readonly square: "square";
424
+ /** Ratio constrained by the parent. */
425
+ readonly free: "free";
426
+ };
427
+ type AspectRatio = ValueOf$1<typeof AspectRatio>;
428
+ /**
429
+ * Semantic info about the purpose of the component
430
+ */
431
+ declare const Kind: {
432
+ readonly info: "info";
433
+ readonly success: "success";
434
+ readonly warning: "warning";
435
+ readonly error: "error";
436
+ };
437
+ type Kind = ValueOf$1<typeof Kind>;
438
+ /**
439
+ * All available white-space values
440
+ * */
441
+ declare const WhiteSpace: {
442
+ normal: string;
443
+ nowrap: string;
444
+ pre: string;
445
+ 'pre-wrap': string;
446
+ 'pre-line': string;
447
+ 'break-spaces': string;
448
+ };
449
+ type WhiteSpace = ValueOf$1<typeof WhiteSpace>;
450
+ /**
451
+ * See SCSS variable $lumx-color-palette
452
+ */
453
+ declare const ColorPalette: {
454
+ readonly primary: "primary";
455
+ readonly secondary: "secondary";
456
+ readonly blue: "blue";
457
+ readonly dark: "dark";
458
+ readonly green: "green";
459
+ readonly yellow: "yellow";
460
+ readonly red: "red";
461
+ readonly light: "light";
462
+ readonly grey: "grey";
463
+ };
464
+ type ColorPalette = ValueOf$1<typeof ColorPalette>;
465
+ /**
466
+ * See SCSS variable $lumx-color-variants
467
+ */
468
+ declare const ColorVariant: {
469
+ readonly D1: "D1";
470
+ readonly D2: "D2";
471
+ readonly L1: "L1";
472
+ readonly L2: "L2";
473
+ readonly L3: "L3";
474
+ readonly L4: "L4";
475
+ readonly L5: "L5";
476
+ readonly L6: "L6";
477
+ readonly N: "N";
478
+ };
479
+ type ColorVariant = ValueOf$1<typeof ColorVariant>;
480
+ /** ColorPalette with all possible color variant combination */
481
+ type ColorWithVariants = ColorPalette | Exclude<`${ColorPalette}-${ColorVariant}`, `light-D${number}` | `dark-D${number}`>;
482
+
483
+ interface HasClassName {
484
+ /**
485
+ * Class name forwarded to the root element of the component.
486
+ */
487
+ className?: string;
488
+ }
489
+
490
+ interface HasTheme {
491
+ /**
492
+ * Theme adapting the component to light or dark background.
493
+ */
494
+ theme?: Theme;
495
+ }
496
+
497
+ /**
498
+ * Framework-agnostic type for renderable content.
499
+ * Vue components should cast VNode[] from slots to this type.
500
+ *
501
+ * Note: Uses type-only import to avoid runtime dependencies.
502
+ */
503
+ type JSXElement = React__default.ReactNode;
504
+
283
505
  /** Union type of all heading elements */
284
506
  type HeadingElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
285
507
 
@@ -295,6 +517,15 @@ type KebabCase<S> = S extends `${infer C}${infer T}` ? T extends Uncapitalize<T>
295
517
  /** Transform the component name into the lumx class name. */
296
518
  type LumxClassName<TComponentName extends string> = `lumx-${KebabCase<TComponentName>}`;
297
519
 
520
+ type CommonRef = any;
521
+
522
+ type Booleanish = boolean | 'true' | 'false';
523
+
524
+ interface HasAriaDisabled {
525
+ /** Similar to `disabled` but does not block pointer events or focus */
526
+ 'aria-disabled'?: Booleanish;
527
+ }
528
+
298
529
  interface HasChecked<C = boolean> {
299
530
  /** Component checked state. */
300
531
  isChecked?: C;
@@ -302,6 +533,54 @@ interface HasChecked<C = boolean> {
302
533
  checked?: boolean;
303
534
  }
304
535
 
536
+ interface HasDisabled {
537
+ /** Whether the component is disabled or not. */
538
+ isDisabled?: boolean;
539
+ /** @alias isDisabled */
540
+ disabled?: boolean;
541
+ }
542
+
543
+ /**
544
+ * ARIA attributes type for components.
545
+ * All attributes are optional.
546
+ *
547
+ * This is a custom interface containing only the ARIA attributes
548
+ * actually used in the @lumx/core components, avoiding dependency on React types.
549
+ */
550
+ interface AriaAttributes {
551
+ /** Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. */
552
+ 'aria-expanded'?: boolean | 'true' | 'false';
553
+ /** Indicates the availability and type of interactive popup element that can be triggered by the element. */
554
+ 'aria-haspopup'?: boolean | 'false' | 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
555
+ /** Indicates the current "pressed" state of toggle buttons. */
556
+ 'aria-pressed'?: boolean | 'false' | 'mixed' | 'true';
557
+ /** Defines a string value that labels the current element. */
558
+ 'aria-label'?: string;
559
+ /** Identifies the element (or elements) that labels the current element. */
560
+ 'aria-labelledby'?: string;
561
+ /** Identifies the element (or elements) that describes the object. */
562
+ 'aria-describedby'?: string;
563
+ /** Indicates whether the element is exposed to an accessibility API. */
564
+ 'aria-hidden'?: boolean | 'true' | 'false';
565
+ /** Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable. */
566
+ 'aria-disabled'?: boolean | 'true' | 'false';
567
+ /** Indicates the current "checked" state of checkboxes, radio buttons, and other widgets. */
568
+ 'aria-checked'?: boolean | 'false' | 'mixed' | 'true';
569
+ /** Indicates whether items in a table or grid are sorted in ascending or descending order. */
570
+ 'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other';
571
+ }
572
+
573
+ type FunctionSelector<TObject, TValue> = (o: TObject) => TValue;
574
+ type FieldSelector<TObject, TValue> = keyof {
575
+ [TKey in keyof TObject as TObject[TKey] extends TValue ? TKey : never]: TObject[TKey];
576
+ };
577
+ /**
578
+ * Value selector on an object
579
+ * - either via an object key
580
+ * - or a selector function
581
+ */
582
+ type Selector<TObject, TValue = string> = FieldSelector<TObject, TValue> | FunctionSelector<TObject, TValue>;
583
+
305
584
  /**
306
585
  * Defines the props of the component.
307
586
  */
@@ -314,10 +593,19 @@ interface BadgeProps$1 extends HasClassName {
314
593
  ref?: CommonRef;
315
594
  }
316
595
 
596
+ /**
597
+ * Props interface for components wrapped with ReactToJSX.
598
+ * It omits JSX-specific props like `children`
599
+ *
600
+ * @template Props - The base props type
601
+ * @template OmitProps - Additional props to omit beyond the defaults (children, className, ref)
602
+ */
603
+ type ReactToJSX<Props, OmitProps extends keyof Props = never> = Omit<Props, PropsToOverride | OmitProps>;
604
+
317
605
  /**
318
606
  * Defines the props of the component.
319
607
  */
320
- interface BadgeProps extends Omit<BadgeProps$1, 'children'>, GenericProps {
608
+ interface BadgeProps extends ReactToJSX<BadgeProps$1>, GenericProps {
321
609
  /** Badge content. */
322
610
  children?: ReactNode;
323
611
  }
@@ -339,7 +627,7 @@ interface BadgeWrapperProps$1 extends HasClassName {
339
627
  ref?: CommonRef;
340
628
  }
341
629
 
342
- interface BadgeWrapperProps extends GenericProps, Omit<BadgeWrapperProps$1, 'children' | 'badge'> {
630
+ interface BadgeWrapperProps extends GenericProps, ReactToJSX<BadgeWrapperProps$1, 'children' | 'badge'> {
343
631
  /** Badge element to display */
344
632
  badge: ReactElement;
345
633
  /** Content to wrap with badge */
@@ -347,6 +635,49 @@ interface BadgeWrapperProps extends GenericProps, Omit<BadgeWrapperProps$1, 'chi
347
635
  }
348
636
  declare const BadgeWrapper: Comp<BadgeWrapperProps, HTMLDivElement>;
349
637
 
638
+ interface BaseClickableProps extends HasDisabled, HasAriaDisabled {
639
+ children?: JSXElement;
640
+ onClick?: (event?: any) => void;
641
+ ref?: CommonRef;
642
+ }
643
+
644
+ /**
645
+ * Button size definition.
646
+ */
647
+ type ButtonSize = Extract<Size, 's' | 'm'>;
648
+ interface BaseButtonProps extends Pick<AriaAttributes, 'aria-expanded' | 'aria-haspopup' | 'aria-pressed' | 'aria-label'>, HasClassName, HasTheme, HasAriaDisabled, BaseClickableProps {
649
+ /** Color variant. */
650
+ color?: ColorPalette;
651
+ /** Emphasis variant. */
652
+ emphasis?: Emphasis;
653
+ /** Whether or not the button has a background color in low emphasis. */
654
+ hasBackground?: boolean;
655
+ /** Native anchor href property. It determines whether the Button will be a <button> or an <a>. */
656
+ href?: string;
657
+ /** Whether the component is disabled or not. */
658
+ isDisabled?: boolean;
659
+ /** Whether the component is selected or not (unsupported in `high` emphasis). */
660
+ isSelected?: boolean;
661
+ /** Native button name property. */
662
+ name?: string;
663
+ /** Size variant. */
664
+ size?: ButtonSize;
665
+ /** Native anchor target property. */
666
+ target?: '_self' | '_blank' | '_parent' | '_top';
667
+ /** Native button type. */
668
+ type?: 'submit' | 'reset' | 'button' | undefined;
669
+ /** Custom component for the link (can be used to inject router Link). */
670
+ linkAs?: 'a' | any;
671
+ /** whether the button is dispalyed in full width or not */
672
+ fullWidth?: boolean;
673
+ /** whether the button is currently active or not */
674
+ isActive?: boolean;
675
+ /** whether the button is currently focused or not */
676
+ isFocused?: boolean;
677
+ /** whether the button is currently focused or not */
678
+ isHovered?: boolean;
679
+ }
680
+
350
681
  /**
351
682
  * Button emphasis definition.
352
683
  * @deprecated Use Emphasis instead.
@@ -372,17 +703,19 @@ interface ButtonProps$1 extends BaseButtonProps {
372
703
  /**
373
704
  * Component display name.
374
705
  */
375
- declare const COMPONENT_NAME$1 = "Button";
706
+ declare const COMPONENT_NAME = "Button";
376
707
  /**
377
708
  * Component default class name and class prefix.
378
709
  */
379
- declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME$1>;
710
+ declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
380
711
  /**
381
712
  * Component default props.
382
713
  */
383
714
  declare const DEFAULT_PROPS: Partial<ButtonProps$1>;
384
715
 
385
- interface ButtonProps extends GenericProps, ButtonProps$1 {
716
+ interface ButtonProps extends GenericProps, ReactToJSX<ButtonProps$1> {
717
+ /** callback for clicking on the button */
718
+ onClick?: (event: React.MouseEvent) => void;
386
719
  }
387
720
  /**
388
721
  * Button component.
@@ -393,6 +726,46 @@ interface ButtonProps extends GenericProps, ButtonProps$1 {
393
726
  */
394
727
  declare const Button: Comp<ButtonProps, HTMLButtonElement | HTMLAnchorElement>;
395
728
 
729
+ interface IconButtonProps$1 extends BaseButtonProps {
730
+ /**
731
+ * Icon (SVG path).
732
+ * If `image` is also set, `image` will be used instead.
733
+ */
734
+ icon?: string;
735
+ /**
736
+ * Image (image url).
737
+ * Has priority over `icon`.
738
+ */
739
+ image?: string;
740
+ /**
741
+ * Label text (required for a11y purpose).
742
+ * If you really don't want an aria-label, you can set an empty label (this is not recommended).
743
+ */
744
+ label: string;
745
+ /** text to be displayed on hover */
746
+ title?: string;
747
+ }
748
+
749
+ interface IconButtonProps extends GenericProps, ReactToJSX<IconButtonProps$1, 'title' | 'children'> {
750
+ /**
751
+ * Props to pass to the tooltip.
752
+ * If undefined or if tooltipProps.label is undefined, the label prop will be used as tooltip label.
753
+ * */
754
+ tooltipProps?: Partial<TooltipProps>;
755
+ /** Whether the tooltip should be hidden or not. */
756
+ hideTooltip?: boolean;
757
+ /** callback for clicking on the button */
758
+ onClick?: (event: React.MouseEvent) => void;
759
+ }
760
+ /**
761
+ * IconButton component.
762
+ *
763
+ * @param props Component props.
764
+ * @param ref Component ref.
765
+ * @return React element.
766
+ */
767
+ declare const IconButton: Comp<IconButtonProps, HTMLButtonElement>;
768
+
396
769
  /**
397
770
  * Defines the props of the component
398
771
  */
@@ -405,7 +778,7 @@ interface ButtonGroupProps$1 extends HasClassName {
405
778
  ref?: CommonRef;
406
779
  }
407
780
 
408
- interface ButtonGroupProps extends GenericProps, ButtonGroupProps$1 {
781
+ interface ButtonGroupProps extends GenericProps, ReactToJSX<ButtonGroupProps$1> {
409
782
  }
410
783
  /**
411
784
  * ButtonGroup component.
@@ -419,7 +792,7 @@ declare const ButtonGroup: Comp<ButtonGroupProps, HTMLDivElement>;
419
792
  /**
420
793
  * Defines the props of the component.
421
794
  */
422
- interface CheckboxProps$1 extends HasTheme$1, HasClassName, HasAriaDisabled, HasDisabled, HasChecked<boolean | 'intermediate'> {
795
+ interface CheckboxProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled, HasChecked<boolean | 'intermediate'> {
423
796
  /** Helper text. */
424
797
  helper?: string;
425
798
  /** Native input id property. */
@@ -445,7 +818,9 @@ interface CheckboxProps$1 extends HasTheme$1, HasClassName, HasAriaDisabled, Has
445
818
  /**
446
819
  * Defines the props of the component.
447
820
  */
448
- interface CheckboxProps extends GenericProps, Omit<CheckboxProps$1, 'inputId'> {
821
+ interface CheckboxProps extends GenericProps, ReactToJSX<CheckboxProps$1, 'inputId'> {
822
+ /** On change callback. */
823
+ onChange?(isChecked: boolean, value?: string, name?: string, event?: React__default.ChangeEvent): void;
449
824
  }
450
825
  /**
451
826
  * Checkbox component.
@@ -459,11 +834,11 @@ declare const Checkbox: Comp<CheckboxProps, HTMLDivElement>;
459
834
  /**
460
835
  * Chip sizes.
461
836
  */
462
- type ChipSize = Extract<Size, 's' | 'm'>;
837
+ type ChipSize = Extract<Size$1, 's' | 'm'>;
463
838
  /**
464
839
  * Defines the props of the component.
465
840
  */
466
- interface ChipProps extends GenericProps, HasTheme, HasAriaDisabled$1 {
841
+ interface ChipProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
467
842
  /** A component to be rendered after the content. */
468
843
  after?: ReactNode;
469
844
  /** A component to be rendered before the content. */
@@ -514,7 +889,7 @@ interface ChipGroupProps extends GenericProps {
514
889
  * Chip horizontal alignment.
515
890
  * @deprecated
516
891
  */
517
- align?: HorizontalAlignment;
892
+ align?: HorizontalAlignment$1;
518
893
  /** List of Chip. */
519
894
  children: ReactNode;
520
895
  }
@@ -559,7 +934,7 @@ interface SelectionChipGroupProps<O> extends GenericProps {
559
934
  /**
560
935
  * LumX theme
561
936
  */
562
- theme?: Theme;
937
+ theme?: Theme$1;
563
938
  /**
564
939
  * Disabled state
565
940
  */
@@ -578,88 +953,6 @@ interface SelectionChipGroupProps<O> extends GenericProps {
578
953
  */
579
954
  declare const SelectionChipGroup: <O>({ onChange, value, getOptionId, getOptionName, inputRef, inputLabel, renderChip, theme, isDisabled, chipTooltipLabel, label, ...forwardedProps }: SelectionChipGroupProps<O>) => react_jsx_runtime.JSX.Element;
580
955
 
581
- declare const COMPONENT_NAME = "ComboboxOption";
582
- declare const COMBOBOX_OPTION_CLASSNAME: LumxClassName$1<typeof COMPONENT_NAME>;
583
- declare const LUMX_CLASSNAME = "lumx-list-item";
584
- interface OptionContentProps<O extends object = any> extends GenericProps, Omit<ComboboxOptionProps<O>, 'id' | 'textValue' | 'filterFromInput' | 'data'> {
585
- id: string;
586
- isSelected?: boolean;
587
- onSelect?(): void;
588
- description?: string;
589
- /** Whether the option should be focused by default. */
590
- autofocus?: boolean;
591
- /** Customize the root element. */
592
- as?: React__default.ElementType;
593
- /** Type of the combobox (listbox or grid). */
594
- comboboxType?: 'listbox' | 'grid';
595
- }
596
- /**
597
- * Props for ComboboxOption with additional generic properties.
598
- */
599
- interface ComboboxOptionComponentProps<O extends object = any> extends GenericProps, Omit<ComboboxOptionProps<O>, 'as'> {
600
- /** Customize the root element. */
601
- as?: React__default.ElementType;
602
- }
603
- /**
604
- * Option to set within a combobox list.
605
- *
606
- * @family Combobox
607
- * @param ComboboxOptionProps
608
- * @returns ComboboxOption
609
- */
610
- declare const ComboboxOption: Comp<ComboboxOptionComponentProps<any>, HTMLElement>;
611
-
612
- interface ComboboxOptionSkeletonProps {
613
- className?: string;
614
- index?: number;
615
- children?: ReactNode | ((options: {
616
- index?: number;
617
- }) => ReactNode);
618
- before?: ComboboxOptionProps['before'];
619
- after?: ComboboxOptionProps['after'];
620
- size?: ComboboxOptionProps['size'];
621
- }
622
- /**
623
- * Skeleton for a combobox option.
624
- * A typography skeleton is rendered by default but can be overridden by passing children.
625
- */
626
- declare const ComboboxOptionSkeleton: ({ className, index, before, after, size, children, }: ComboboxOptionSkeletonProps) => react_jsx_runtime.JSX.Element;
627
-
628
- interface ComboboxOptionActionProps extends GenericProps {
629
- /** Should the action be set as disabled */
630
- isDisabled?: boolean;
631
- /** Action to trigger when the action is selected */
632
- onClick: () => void;
633
- /** Customize the root element. */
634
- as?: React__default.ElementType;
635
- }
636
- /**
637
- * Action to set on a Combobox Option.
638
- * Allows to add an interactive element that
639
- * can be navigated to and triggered using the keyboard.
640
- *
641
- * Defaults as "button"
642
- *
643
- * @family Combobox
644
- * @param ComboboxOptionActionProps
645
- * @returns ComboboxOptionAction
646
- */
647
- declare const ComboboxOptionAction: (props: ComboboxOptionActionProps) => react_jsx_runtime.JSX.Element;
648
-
649
- interface ComboboxOptionMoreInfoProps {
650
- buttonProps?: Partial<IconButtonProps>;
651
- popoverProps?: PopoverProps;
652
- onToggle?: (isOpen: boolean) => void;
653
- children?: React__default.ReactNode;
654
- }
655
- /**
656
- * Display more info on the option as a popover opening on mouse hover or keyboard nav
657
- * Please consider using a simpler option description instead for better UX and a11y.
658
- *
659
- * @family Combobox
660
- */
661
- declare const ComboboxOptionMoreInfo: React__default.FC<ComboboxOptionMoreInfoProps>;
662
-
663
956
  /**
664
957
  * Comment block variants.
665
958
  */
@@ -671,7 +964,7 @@ type CommentBlockVariant = ValueOf$1<typeof CommentBlockVariant>;
671
964
  /**
672
965
  * Defines the props of the component.
673
966
  */
674
- interface CommentBlockProps extends GenericProps, HasTheme {
967
+ interface CommentBlockProps extends GenericProps, HasTheme$1 {
675
968
  /** Action toolbar content. */
676
969
  actions?: ReactNode;
677
970
  /** Props to pass to the avatar. */
@@ -849,7 +1142,7 @@ interface DialogProps extends GenericProps {
849
1142
  /** Children */
850
1143
  children?: React__default.ReactNode;
851
1144
  }
852
- type DialogSizes = Extract<Size, 'tiny' | 'regular' | 'big' | 'huge'>;
1145
+ type DialogSizes = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
853
1146
  /**
854
1147
  * Dialog component.
855
1148
  *
@@ -862,7 +1155,7 @@ declare const Dialog: Comp<DialogProps, HTMLDivElement>;
862
1155
  /**
863
1156
  * Defines the props of the component.
864
1157
  */
865
- interface DividerProps$1 extends HasTheme$1, HasClassName {
1158
+ interface DividerProps$1 extends HasTheme, HasClassName {
866
1159
  /** reference to the root element */
867
1160
  ref?: CommonRef;
868
1161
  }
@@ -870,7 +1163,7 @@ interface DividerProps$1 extends HasTheme$1, HasClassName {
870
1163
  /**
871
1164
  * Defines the props of the component.
872
1165
  */
873
- interface DividerProps extends GenericProps, DividerProps$1 {
1166
+ interface DividerProps extends GenericProps, ReactToJSX<DividerProps$1> {
874
1167
  }
875
1168
  /**
876
1169
  * Divider component.
@@ -884,7 +1177,7 @@ declare const Divider: Comp<DividerProps, HTMLHRElement>;
884
1177
  /**
885
1178
  * Defines the props of the component.
886
1179
  */
887
- interface DragHandleProps extends GenericProps, HasTheme {
1180
+ interface DragHandleProps extends GenericProps, HasTheme$1 {
888
1181
  }
889
1182
  /**
890
1183
  * DragHandle component.
@@ -895,10 +1188,54 @@ interface DragHandleProps extends GenericProps, HasTheme {
895
1188
  */
896
1189
  declare const DragHandle: Comp<DragHandleProps, HTMLDivElement>;
897
1190
 
1191
+ /**
1192
+ * Different possible placements for the popover.
1193
+ */
1194
+ declare const Placement: {
1195
+ readonly AUTO: "auto";
1196
+ readonly AUTO_END: "auto-end";
1197
+ readonly AUTO_START: "auto-start";
1198
+ readonly TOP: "top";
1199
+ readonly TOP_END: "top-end";
1200
+ readonly TOP_START: "top-start";
1201
+ readonly RIGHT: "right";
1202
+ readonly RIGHT_END: "right-end";
1203
+ readonly RIGHT_START: "right-start";
1204
+ readonly BOTTOM: "bottom";
1205
+ readonly BOTTOM_END: "bottom-end";
1206
+ readonly BOTTOM_START: "bottom-start";
1207
+ readonly LEFT: "left";
1208
+ readonly LEFT_END: "left-end";
1209
+ readonly LEFT_START: "left-start";
1210
+ };
1211
+ type Placement = ValueOf$1<typeof Placement>;
1212
+ /**
1213
+ * Offset of the popover.
1214
+ */
1215
+ interface Offset {
1216
+ /** Offset size along the reference. */
1217
+ along?: number;
1218
+ /** Offset size away from the reference. */
1219
+ away?: number;
1220
+ }
1221
+ /**
1222
+ * Popover elevation index.
1223
+ */
1224
+ type Elevation = 1 | 2 | 3 | 4 | 5;
1225
+ /**
1226
+ * Popover fit anchor width options.
1227
+ */
1228
+ declare const FitAnchorWidth: {
1229
+ readonly MAX_WIDTH: "maxWidth";
1230
+ readonly MIN_WIDTH: "minWidth";
1231
+ readonly WIDTH: "width";
1232
+ };
1233
+ type FitAnchorWidth = ValueOf$1<typeof FitAnchorWidth>;
1234
+
898
1235
  /**
899
1236
  * Defines the props of the component.
900
1237
  */
901
- interface PopoverProps extends GenericProps, HasTheme {
1238
+ interface PopoverProps extends GenericProps, HasTheme$1 {
902
1239
  /** Reference to the DOM element used to set the position of the popover. */
903
1240
  anchorRef: React.RefObject<HTMLElement>;
904
1241
  /** Customize the root element. (Must accept ref forwarding and props forwarding!). */
@@ -1040,7 +1377,7 @@ declare const Dropdown: Comp<DropdownProps, HTMLDivElement>;
1040
1377
  /**
1041
1378
  * Defines the props of the component.
1042
1379
  */
1043
- interface ExpansionPanelProps extends GenericProps, HasCloseMode, HasTheme {
1380
+ interface ExpansionPanelProps extends GenericProps, HasCloseMode, HasTheme$1 {
1044
1381
  /** Whether the expansion panel has a background. */
1045
1382
  hasBackground?: boolean;
1046
1383
  /** Whether the header has a divider. */
@@ -1116,7 +1453,7 @@ interface TextProps$1 extends HasClassName {
1116
1453
  style?: CSSProperties;
1117
1454
  }
1118
1455
 
1119
- interface FlagProps$1 extends HasClassName, HasTheme$1 {
1456
+ interface FlagProps$1 extends HasClassName, HasTheme {
1120
1457
  /** Color of the component. */
1121
1458
  color?: ColorPalette;
1122
1459
  /** Icon to use before the label. */
@@ -1131,7 +1468,7 @@ interface FlagProps$1 extends HasClassName, HasTheme$1 {
1131
1468
  Text: (props: TextProps$1) => any;
1132
1469
  }
1133
1470
 
1134
- interface FlagProps extends GenericProps, Omit<FlagProps$1, 'children' | 'Text'> {
1471
+ interface FlagProps extends GenericProps, ReactToJSX<FlagProps$1, 'children' | 'Text'> {
1135
1472
  /** Text label of the flag. */
1136
1473
  label: React.ReactNode;
1137
1474
  }
@@ -1145,10 +1482,10 @@ interface FlagProps extends GenericProps, Omit<FlagProps$1, 'children' | 'Text'>
1145
1482
  declare const Flag: Comp<FlagProps, HTMLDivElement>;
1146
1483
 
1147
1484
  type MarginAutoAlignment = Extract<Alignment, 'top' | 'bottom' | 'right' | 'left'>;
1148
- type GapSize = Extract<Size$1, 'tiny' | 'regular' | 'medium' | 'big' | 'huge'>;
1485
+ type GapSize = Extract<Size, 'tiny' | 'regular' | 'medium' | 'big' | 'huge'>;
1149
1486
  type SpaceAlignment = Extract<Alignment, 'space-between' | 'space-evenly' | 'space-around'>;
1150
1487
  type FlexVerticalAlignment = VerticalAlignment | SpaceAlignment;
1151
- type FlexHorizontalAlignment = HorizontalAlignment$1 | SpaceAlignment;
1488
+ type FlexHorizontalAlignment = HorizontalAlignment | SpaceAlignment;
1152
1489
 
1153
1490
  /**
1154
1491
  * Defines the props of the component.
@@ -1177,7 +1514,7 @@ interface FlexBoxProps$1 extends HasClassName {
1177
1514
  /**
1178
1515
  * Defines the props of the component.
1179
1516
  */
1180
- interface FlexBoxProps extends GenericProps, FlexBoxProps$1 {
1517
+ interface FlexBoxProps extends GenericProps, ReactToJSX<FlexBoxProps$1> {
1181
1518
  /** Customize the root element. */
1182
1519
  as?: React__default.ElementType;
1183
1520
  }
@@ -1326,7 +1663,7 @@ declare const useHeadingLevel: () => {
1326
1663
  headingElement: _lumx_core_js_types.HeadingElement;
1327
1664
  };
1328
1665
 
1329
- type GridGutterSize = Extract<Size, 'regular' | 'big' | 'huge'>;
1666
+ type GridGutterSize = Extract<Size$1, 'regular' | 'big' | 'huge'>;
1330
1667
  /**
1331
1668
  * Defines the props of the component.
1332
1669
  */
@@ -1376,7 +1713,7 @@ interface GridItemProps extends GenericProps {
1376
1713
  */
1377
1714
  declare const GridItem: Comp<GridItemProps, HTMLDivElement>;
1378
1715
 
1379
- type GridColumnGapSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
1716
+ type GridColumnGapSize = Extract<Size, 'tiny' | 'regular' | 'big' | 'huge'>;
1380
1717
  /**
1381
1718
  * Defines the props of the component.
1382
1719
  */
@@ -1400,11 +1737,9 @@ interface GridColumnProps$1 extends HasClassName {
1400
1737
  /**
1401
1738
  * Defines the props of the component.
1402
1739
  */
1403
- interface GridColumnProps extends GenericProps, GridColumnProps$1 {
1740
+ interface GridColumnProps extends GenericProps, ReactToJSX<GridColumnProps$1> {
1404
1741
  /** Customize the root element. */
1405
1742
  as?: React.ElementType;
1406
- /** Children elements. */
1407
- children?: React.ReactNode;
1408
1743
  }
1409
1744
 
1410
1745
  /**
@@ -1424,7 +1759,7 @@ type IconSizes = (typeof ICON_SIZES)[number];
1424
1759
  /**
1425
1760
  * Defines the props of the component.
1426
1761
  */
1427
- interface IconProps$1 extends HasClassName, HasTheme$1 {
1762
+ interface IconProps$1 extends HasClassName, HasTheme {
1428
1763
  /** Color variant. */
1429
1764
  color?: ColorWithVariants;
1430
1765
  /** Lightened or darkened variant of the selected icon color. */
@@ -1446,7 +1781,7 @@ interface IconProps$1 extends HasClassName, HasTheme$1 {
1446
1781
  ref?: CommonRef;
1447
1782
  }
1448
1783
 
1449
- interface IconProps extends Omit<IconProps$1, 'children'>, GenericProps {
1784
+ interface IconProps extends ReactToJSX<IconProps$1>, GenericProps {
1450
1785
  }
1451
1786
  /**
1452
1787
  * Icon component.
@@ -1470,7 +1805,7 @@ declare module 'react' {
1470
1805
  /**
1471
1806
  * Thumbnail sizes.
1472
1807
  */
1473
- type ThumbnailSize$1 = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
1808
+ type ThumbnailSize$1 = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
1474
1809
  /**
1475
1810
  * Thumbnail variants.
1476
1811
  */
@@ -1492,13 +1827,13 @@ type ImgHTMLProps = ImgHTMLAttributes<HTMLImageElement>;
1492
1827
  /**
1493
1828
  * Defines the props of the component.
1494
1829
  */
1495
- interface ThumbnailProps$1 extends HasTheme, HasClassName$1 {
1830
+ interface ThumbnailProps$1 extends HasTheme$1, HasClassName$1 {
1496
1831
  /** Alignment of the thumbnail in it's parent (requires flex parent). */
1497
- align?: HorizontalAlignment;
1832
+ align?: HorizontalAlignment$1;
1498
1833
  /** Image alternative text. */
1499
1834
  alt: string;
1500
1835
  /** Image aspect ratio. */
1501
- aspectRatio?: AspectRatio;
1836
+ aspectRatio?: AspectRatio$1;
1502
1837
  /** Badge. */
1503
1838
  badge?: JSXElement$1;
1504
1839
  /** Image cross origin resource policy. */
@@ -1562,11 +1897,11 @@ declare module 'react' {
1562
1897
  * All available aspect ratios.
1563
1898
  * @deprecated
1564
1899
  */
1565
- declare const ThumbnailAspectRatio: Record<string, AspectRatio>;
1900
+ declare const ThumbnailAspectRatio: Record<string, AspectRatio$1>;
1566
1901
  /**
1567
1902
  * Thumbnail sizes.
1568
1903
  */
1569
- type ThumbnailSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
1904
+ type ThumbnailSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
1570
1905
  /**
1571
1906
  * Thumbnail variants.
1572
1907
  */
@@ -1587,11 +1922,15 @@ type ThumbnailObjectFit = ValueOf$1<typeof ThumbnailObjectFit>;
1587
1922
  /**
1588
1923
  * Defines the props of the component.
1589
1924
  */
1590
- interface ThumbnailProps extends GenericProps, Omit<ThumbnailProps$1, 'loadingState' | 'isAnyDisabled' | 'focusPointStyle' | 'disabledStateProps' | 'badge'> {
1925
+ interface ThumbnailProps extends GenericProps, ReactToJSX<ThumbnailProps$1, 'loadingState' | 'isAnyDisabled' | 'focusPointStyle' | 'disabledStateProps' | 'badge'> {
1591
1926
  /** Apply relative vertical and horizontal shift (from -1 to 1) on the image position inside the thumbnail. */
1592
1927
  focusPoint?: FocusPoint;
1593
1928
  /** Badge. */
1594
1929
  badge?: ReactElement | Falsy;
1930
+ /** On click callback. */
1931
+ onClick?: React__default.MouseEventHandler<HTMLDivElement>;
1932
+ /** On key press callback. */
1933
+ onKeyPress?: React__default.KeyboardEventHandler<HTMLDivElement>;
1595
1934
  }
1596
1935
  /**
1597
1936
  * Thumbnail component.
@@ -1631,15 +1970,15 @@ type ImageBlockCaptionPosition = ValueOf$1<typeof ImageBlockCaptionPosition>;
1631
1970
  /**
1632
1971
  * Image block sizes.
1633
1972
  */
1634
- type ImageBlockSize = Extract<Size, 'xl' | 'xxl'>;
1973
+ type ImageBlockSize = Extract<Size$1, 'xl' | 'xxl'>;
1635
1974
  /**
1636
1975
  * Defines the props of the component.
1637
1976
  */
1638
- interface ImageBlockProps extends GenericProps, HasTheme, ImageCaptionMetadata {
1977
+ interface ImageBlockProps extends GenericProps, HasTheme$1, ImageCaptionMetadata {
1639
1978
  /** Action toolbar content. */
1640
1979
  actions?: ReactNode;
1641
1980
  /** Alignment. */
1642
- align?: HorizontalAlignment;
1981
+ align?: HorizontalAlignment$1;
1643
1982
  /** Image alternative text. */
1644
1983
  alt: string;
1645
1984
  /** Caption position. */
@@ -1761,18 +2100,18 @@ declare const InlineList: Comp<InlineListProps, HTMLElement>;
1761
2100
  /**
1762
2101
  * Defines the props of the component.
1763
2102
  */
1764
- interface InputHelperProps$1 extends HasClassName, HasTheme$1 {
2103
+ interface InputHelperProps$1 extends HasClassName, HasTheme {
1765
2104
  /** Helper content. */
1766
2105
  children: JSXElement;
1767
2106
  /** Helper variant. */
1768
- kind?: Kind$1;
2107
+ kind?: Kind;
1769
2108
  /** ref to the root element `p` */
1770
2109
  ref?: CommonRef;
1771
2110
  /** id for the input helper */
1772
2111
  id?: string;
1773
2112
  }
1774
2113
 
1775
- interface InputHelperProps extends InputHelperProps$1, GenericProps {
2114
+ interface InputHelperProps extends ReactToJSX<InputHelperProps$1>, GenericProps {
1776
2115
  }
1777
2116
  /**
1778
2117
  * InputHelper component.
@@ -1783,10 +2122,34 @@ interface InputHelperProps extends InputHelperProps$1, GenericProps {
1783
2122
  */
1784
2123
  declare const InputHelper: Comp<InputHelperProps, HTMLParagraphElement>;
1785
2124
 
2125
+ interface InputLabelProps$1 extends HasClassName, HasTheme {
2126
+ /** Typography variant. */
2127
+ typography?: Typography;
2128
+ /** Label content. */
2129
+ children: JSXElement;
2130
+ /** Native htmlFor property. */
2131
+ htmlFor: string;
2132
+ /** Whether the component is required or not. */
2133
+ isRequired?: boolean;
2134
+ /** ref to the root element */
2135
+ ref?: CommonRef;
2136
+ }
2137
+
2138
+ interface InputLabelProps extends ReactToJSX<InputLabelProps$1>, GenericProps {
2139
+ }
2140
+ /**
2141
+ * InputLabel component.
2142
+ *
2143
+ * @param props Component props.
2144
+ * @param ref Component ref.
2145
+ * @return React element.
2146
+ */
2147
+ declare const InputLabel: Comp<InputLabelProps, HTMLLabelElement>;
2148
+
1786
2149
  /**
1787
2150
  * Defines the props of the component.
1788
2151
  */
1789
- interface LightboxProps extends GenericProps, HasTheme, Pick<AriaAttributes, 'aria-label' | 'aria-labelledby'> {
2152
+ interface LightboxProps extends GenericProps, HasTheme$1, Pick<AriaAttributes$1, 'aria-label' | 'aria-labelledby'> {
1790
2153
  /** Props to pass to the close button (minus those already set by the Lightbox props). */
1791
2154
  closeButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis' | 'color'>;
1792
2155
  /** Whether the component is open or not. */
@@ -1816,7 +2179,7 @@ declare const Lightbox: Comp<LightboxProps, HTMLDivElement>;
1816
2179
  /**
1817
2180
  * Defines the props of the component.
1818
2181
  */
1819
- interface LinkProps$1 extends HasTheme$1, HasClassName, HasAriaDisabled, HasDisabled {
2182
+ interface LinkProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled {
1820
2183
  /** Link label content. */
1821
2184
  label?: JSXElement;
1822
2185
  /** Color variant. */
@@ -1851,7 +2214,7 @@ type HTMLAnchorProps = React__default.DetailedHTMLProps<React__default.AnchorHTM
1851
2214
  /**
1852
2215
  * Defines the props of the component.
1853
2216
  */
1854
- interface LinkProps extends GenericProps, Omit<LinkProps$1, 'label'> {
2217
+ interface LinkProps extends GenericProps, ReactToJSX<LinkProps$1, 'label'> {
1855
2218
  /** Link href. */
1856
2219
  href?: HTMLAnchorProps['href'];
1857
2220
  /** Custom react component for the link (can be used to inject react router Link). */
@@ -1860,8 +2223,8 @@ interface LinkProps extends GenericProps, Omit<LinkProps$1, 'label'> {
1860
2223
  target?: HTMLAnchorProps['target'];
1861
2224
  /** Typography variant. */
1862
2225
  typography?: Typography$1;
1863
- /** Children */
1864
- children?: React__default.ReactNode;
2226
+ /** Click handler. */
2227
+ onClick?: (event: React__default.MouseEvent) => void;
1865
2228
  }
1866
2229
  /**
1867
2230
  * Link component.
@@ -1875,7 +2238,7 @@ declare const Link: Comp<LinkProps, HTMLButtonElement | HTMLAnchorElement>;
1875
2238
  /**
1876
2239
  * Defines the props of the component.
1877
2240
  */
1878
- interface LinkPreviewProps extends GenericProps, HasTheme {
2241
+ interface LinkPreviewProps extends GenericProps, HasTheme$1 {
1879
2242
  /** Description. */
1880
2243
  description?: string;
1881
2244
  /** Link URL. */
@@ -1885,7 +2248,7 @@ interface LinkPreviewProps extends GenericProps, HasTheme {
1885
2248
  /** Props to pass to the link (minus those already set by the LinkPreview props). */
1886
2249
  linkProps?: Omit<LinkProps, 'color' | 'colorVariant' | 'href' | 'target'>;
1887
2250
  /** Size variant. */
1888
- size?: Extract<Size, 'regular' | 'big'>;
2251
+ size?: Extract<Size$1, 'regular' | 'big'>;
1889
2252
  /** Thumbnail for the link preview. */
1890
2253
  thumbnailProps?: ThumbnailProps;
1891
2254
  /** Title. */
@@ -1927,7 +2290,7 @@ interface ListProps extends GenericProps {
1927
2290
  */
1928
2291
  isClickable?: boolean;
1929
2292
  /** Item padding size. */
1930
- itemPadding?: Extract<Size, 'big' | 'huge'>;
2293
+ itemPadding?: Extract<Size$1, 'big' | 'huge'>;
1931
2294
  /** Tab index of the list. Default to -1 */
1932
2295
  tabIndex?: number;
1933
2296
  /**
@@ -1943,6 +2306,50 @@ declare const List: Comp<ListProps, HTMLUListElement> & {
1943
2306
  useKeyboardListNavigation: useKeyboardListNavigationType;
1944
2307
  };
1945
2308
 
2309
+ type ListItemSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
2310
+ /**
2311
+ * Defines the props of the component.
2312
+ */
2313
+ interface ListItemProps extends GenericProps, HasAriaDisabled$1 {
2314
+ /** A component to be rendered after the content. */
2315
+ after?: ReactNode;
2316
+ /** A component to be rendered before the content. */
2317
+ before?: ReactNode;
2318
+ /** Content. */
2319
+ children: string | ReactNode;
2320
+ /** Whether the list item should be highlighted or not. */
2321
+ isHighlighted?: boolean;
2322
+ /** Whether the component is selected or not. */
2323
+ isSelected?: boolean;
2324
+ /** Whether link/button is disabled or not. */
2325
+ isDisabled?: boolean;
2326
+ /** Reference to the <li> element. */
2327
+ listItemRef?: Ref<HTMLLIElement>;
2328
+ /** Custom react component for the link (can be used to inject react router Link). */
2329
+ linkAs?: 'a' | any;
2330
+ /** Props that will be passed on to the Link */
2331
+ linkProps?: React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
2332
+ /** Reference to the link element. */
2333
+ linkRef?: Ref<HTMLAnchorElement>;
2334
+ /** Size variant. */
2335
+ size?: ListItemSize;
2336
+ /** On selected callback. */
2337
+ onItemSelected?(evt: SyntheticEvent): void;
2338
+ }
2339
+ /**
2340
+ * Check if the list item is clickable.
2341
+ * @return `true` if the list item is clickable; `false` otherwise.
2342
+ */
2343
+ declare function isClickable({ linkProps, onItemSelected }: Partial<ListItemProps>): boolean;
2344
+ /**
2345
+ * ListItem component.
2346
+ *
2347
+ * @param props Component props.
2348
+ * @param ref Component ref.
2349
+ * @return React element.
2350
+ */
2351
+ declare const ListItem: Comp<ListItemProps, HTMLLIElement>;
2352
+
1946
2353
  /**
1947
2354
  * Defines the props of the component.
1948
2355
  */
@@ -1981,7 +2388,7 @@ interface MessageProps$1 extends HasClassName {
1981
2388
  /** Whether the message has a background or not. */
1982
2389
  hasBackground?: boolean;
1983
2390
  /** Message variant. */
1984
- kind?: Kind$1;
2391
+ kind?: Kind;
1985
2392
  /** Message custom icon SVG path. */
1986
2393
  icon?: string;
1987
2394
  /** Reference to the message container element. */
@@ -1999,9 +2406,7 @@ interface MessageProps$1 extends HasClassName {
1999
2406
  };
2000
2407
  }
2001
2408
 
2002
- interface MessageProps extends GenericProps, Omit<MessageProps$1, 'children' | 'ref'> {
2003
- /** Content. */
2004
- children?: React.ReactNode;
2409
+ interface MessageProps extends GenericProps, ReactToJSX<MessageProps$1> {
2005
2410
  }
2006
2411
  /**
2007
2412
  * Message component.
@@ -2015,7 +2420,7 @@ declare const Message: Comp<MessageProps, HTMLDivElement>;
2015
2420
  /**
2016
2421
  * Defines the props of the component.
2017
2422
  */
2018
- interface MosaicProps extends GenericProps, HasTheme {
2423
+ interface MosaicProps extends GenericProps, HasTheme$1 {
2019
2424
  /** Thumbnails. */
2020
2425
  thumbnails: ThumbnailProps[];
2021
2426
  /** On image click callback. */
@@ -2050,14 +2455,14 @@ type BaseNavigationItemProps = {
2050
2455
  };
2051
2456
  declare const NavigationItem: (<E extends ElementType = "a">(props: React$1.PropsWithoutRef<React$1.ComponentProps<E>> & {
2052
2457
  as?: E | undefined;
2053
- } & HasTheme & HasClassName$1 & BaseNavigationItemProps & HasRequiredLinkHref<E> & React$1.ComponentProps<E> & {
2458
+ } & HasTheme$1 & HasClassName$1 & BaseNavigationItemProps & HasRequiredLinkHref<E> & React$1.ComponentProps<E> & {
2054
2459
  ref?: ComponentRef<E> | undefined;
2055
2460
  }) => React.JSX.Element) & {
2056
2461
  displayName: string;
2057
2462
  className: "lumx-navigation-item";
2058
2463
  };
2059
2464
 
2060
- type NavigationProps = React.ComponentProps<'nav'> & HasClassName$1 & HasTheme & {
2465
+ type NavigationProps = React.ComponentProps<'nav'> & HasClassName$1 & HasTheme$1 & {
2061
2466
  /** Content of the navigation. These components should be of type NavigationItem to be rendered */
2062
2467
  children?: React.ReactNode;
2063
2468
  orientation?: Orientation$1;
@@ -2071,7 +2476,7 @@ declare const Navigation: Comp<NavigationProps, HTMLElement> & SubComponents;
2071
2476
  /**
2072
2477
  * Defines the props of the component.
2073
2478
  */
2074
- interface NotificationProps extends GenericProps, HasTheme {
2479
+ interface NotificationProps extends GenericProps, HasTheme$1 {
2075
2480
  /** Action button label. */
2076
2481
  actionLabel?: string;
2077
2482
  /** Content. */
@@ -2079,7 +2484,7 @@ interface NotificationProps extends GenericProps, HasTheme {
2079
2484
  /** Whether the component is open or not. */
2080
2485
  isOpen?: boolean;
2081
2486
  /** Notification type. */
2082
- type?: Kind;
2487
+ type?: Kind$1;
2083
2488
  /** Z-axis position. */
2084
2489
  zIndex?: number;
2085
2490
  /** On action button click callback. */
@@ -2115,7 +2520,7 @@ declare const PopoverDialog: Comp<PopoverDialogProps, HTMLDivElement>;
2115
2520
  /**
2116
2521
  * Defines the props of the component.
2117
2522
  */
2118
- interface PostBlockProps extends GenericProps, HasTheme {
2523
+ interface PostBlockProps extends GenericProps, HasTheme$1 {
2119
2524
  /** Action toolbar content. */
2120
2525
  actions?: ReactNode;
2121
2526
  /** Attachment content. */
@@ -2159,7 +2564,7 @@ type ProgressVariant = ValueOf$1<typeof ProgressVariant>;
2159
2564
  /**
2160
2565
  * Defines the props of the component.
2161
2566
  */
2162
- interface ProgressProps extends GenericProps, HasTheme {
2567
+ interface ProgressProps extends GenericProps, HasTheme$1 {
2163
2568
  /** Progress variant. */
2164
2569
  variant?: ProgressVariant;
2165
2570
  }
@@ -2176,11 +2581,11 @@ declare const Progress: Comp<ProgressProps, HTMLDivElement>;
2176
2581
  /**
2177
2582
  * Progress sizes.
2178
2583
  */
2179
- type ProgressCircularSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm'>;
2584
+ type ProgressCircularSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm'>;
2180
2585
  /**
2181
2586
  * Defines the props of the component.
2182
2587
  */
2183
- interface ProgressCircularProps extends GenericProps, HasTheme {
2588
+ interface ProgressCircularProps extends GenericProps, HasTheme$1 {
2184
2589
  /**
2185
2590
  * Progress circular size.
2186
2591
  */
@@ -2200,7 +2605,7 @@ interface ProgressCircularProps extends GenericProps, HasTheme {
2200
2605
  */
2201
2606
  declare const ProgressCircular: Comp<ProgressCircularProps, HTMLDivElement>;
2202
2607
 
2203
- interface ProgressLinearProps extends GenericProps, HasTheme {
2608
+ interface ProgressLinearProps extends GenericProps, HasTheme$1 {
2204
2609
  }
2205
2610
  /**
2206
2611
  * ProgressLinear component.
@@ -2313,7 +2718,7 @@ declare const ProgressTrackerStepPanel: Comp<ProgressTrackerStepPanelProps, HTML
2313
2718
  /**
2314
2719
  * Defines the props of the component.
2315
2720
  */
2316
- interface RadioButtonProps$1 extends HasTheme$1, HasClassName, HasAriaDisabled, HasDisabled, HasChecked {
2721
+ interface RadioButtonProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled, HasChecked {
2317
2722
  /** Helper text. */
2318
2723
  helper?: string;
2319
2724
  /** Native input id property. */
@@ -2339,7 +2744,9 @@ interface RadioButtonProps$1 extends HasTheme$1, HasClassName, HasAriaDisabled,
2339
2744
  /**
2340
2745
  * Defines the props of the component.
2341
2746
  */
2342
- interface RadioButtonProps extends GenericProps, Omit<RadioButtonProps$1, 'inputId'> {
2747
+ interface RadioButtonProps extends GenericProps, ReactToJSX<RadioButtonProps$1, 'inputId'> {
2748
+ /** On change callback. */
2749
+ onChange?(value?: string, name?: string, event?: React.ChangeEvent): void;
2343
2750
  }
2344
2751
  /**
2345
2752
  * RadioButton component.
@@ -2353,9 +2760,17 @@ declare const RadioButton: Comp<RadioButtonProps, HTMLDivElement>;
2353
2760
  /**
2354
2761
  * Defines the props of the component.
2355
2762
  */
2356
- interface RadioGroupProps extends GenericProps {
2763
+ interface RadioGroupProps$1 extends HasClassName {
2357
2764
  /** RadioButton elements */
2358
- children: ReactNode;
2765
+ children?: JSXElement;
2766
+ /** reference to the root element */
2767
+ ref?: CommonRef;
2768
+ }
2769
+
2770
+ /**
2771
+ * Defines the props of the component.
2772
+ */
2773
+ interface RadioGroupProps extends GenericProps, ReactToJSX<RadioGroupProps$1> {
2359
2774
  }
2360
2775
  /**
2361
2776
  * RadioGroup component.
@@ -2374,7 +2789,7 @@ declare const SelectVariant: {
2374
2789
  readonly chip: "chip";
2375
2790
  };
2376
2791
  type SelectVariant = ValueOf$1<typeof SelectVariant>;
2377
- interface CoreSelectProps extends GenericProps, HasTheme {
2792
+ interface CoreSelectProps extends GenericProps, HasTheme$1 {
2378
2793
  /** Props to pass to the clear button (minus those already set by the Select props). If not specified, the button won't be displayed. */
2379
2794
  clearButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
2380
2795
  /** Whether the select (input variant) is displayed with error style or not. */
@@ -2454,7 +2869,7 @@ declare const SelectMultiple: Comp<SelectMultipleProps, HTMLDivElement>;
2454
2869
  /**
2455
2870
  * Defines the props of the component.
2456
2871
  */
2457
- interface SideNavigationProps extends GenericProps, HasTheme {
2872
+ interface SideNavigationProps extends GenericProps, HasTheme$1 {
2458
2873
  /** SideNavigationItem elements. */
2459
2874
  children: ReactNode;
2460
2875
  }
@@ -2474,7 +2889,7 @@ interface SideNavigationItemProps extends GenericProps, HasCloseMode {
2474
2889
  /** SideNavigationItem elements. */
2475
2890
  children?: ReactNode;
2476
2891
  /** Emphasis variant. */
2477
- emphasis?: Emphasis;
2892
+ emphasis?: Emphasis$1;
2478
2893
  /** Label content. */
2479
2894
  label: string | ReactNode;
2480
2895
  /** Icon (SVG path). */
@@ -2506,7 +2921,7 @@ declare const SideNavigationItem: Comp<SideNavigationItemProps, HTMLLIElement>;
2506
2921
  /**
2507
2922
  * Defines the props of the component.
2508
2923
  */
2509
- interface SkeletonCircleProps$1 extends HasTheme$1, HasClassName {
2924
+ interface SkeletonCircleProps$1 extends HasTheme, HasClassName {
2510
2925
  /** Size variant. */
2511
2926
  size: GlobalSize;
2512
2927
  /** The color of the skeleton. */
@@ -2527,9 +2942,9 @@ type SkeletonRectangleVariant = ValueOf<typeof SkeletonRectangleVariant>;
2527
2942
  /**
2528
2943
  * Defines the props of the component.
2529
2944
  */
2530
- interface SkeletonRectangleProps$1 extends HasTheme$1, HasClassName {
2945
+ interface SkeletonRectangleProps$1 extends HasTheme, HasClassName {
2531
2946
  /** Aspect ratio (use with width and not height). */
2532
- aspectRatio?: Extract<AspectRatio$1, 'square' | 'horizontal' | 'vertical' | 'wide'>;
2947
+ aspectRatio?: Extract<AspectRatio, 'square' | 'horizontal' | 'vertical' | 'wide'>;
2533
2948
  /** Height size. */
2534
2949
  height?: GlobalSize;
2535
2950
  /** Border variant. */
@@ -2545,7 +2960,7 @@ interface SkeletonRectangleProps$1 extends HasTheme$1, HasClassName {
2545
2960
  /**
2546
2961
  * Defines the props of the component.
2547
2962
  */
2548
- interface SkeletonTypographyProps$1 extends HasTheme$1, HasClassName {
2963
+ interface SkeletonTypographyProps$1 extends HasTheme, HasClassName {
2549
2964
  /** Typography variant. */
2550
2965
  typography: TypographyInterface;
2551
2966
  /** Width CSS property. */
@@ -2561,7 +2976,7 @@ interface SkeletonTypographyProps$1 extends HasTheme$1, HasClassName {
2561
2976
  /**
2562
2977
  * Defines the props of the component.
2563
2978
  */
2564
- interface SkeletonCircleProps extends GenericProps, SkeletonCircleProps$1 {
2979
+ interface SkeletonCircleProps extends GenericProps, ReactToJSX<SkeletonCircleProps$1> {
2565
2980
  }
2566
2981
  /**
2567
2982
  * SkeletonCircle component.
@@ -2575,7 +2990,7 @@ declare const SkeletonCircle: Comp<SkeletonCircleProps, HTMLDivElement>;
2575
2990
  /**
2576
2991
  * Defines the props of the component.
2577
2992
  */
2578
- interface SkeletonRectangleProps extends GenericProps, SkeletonRectangleProps$1 {
2993
+ interface SkeletonRectangleProps extends GenericProps, ReactToJSX<SkeletonRectangleProps$1> {
2579
2994
  }
2580
2995
  /**
2581
2996
  * SkeletonRectangle component.
@@ -2589,7 +3004,7 @@ declare const SkeletonRectangle: Comp<SkeletonRectangleProps, HTMLDivElement>;
2589
3004
  /**
2590
3005
  * Defines the props of the component.
2591
3006
  */
2592
- interface SkeletonTypographyProps extends GenericProps, SkeletonTypographyProps$1 {
3007
+ interface SkeletonTypographyProps extends GenericProps, ReactToJSX<SkeletonTypographyProps$1> {
2593
3008
  }
2594
3009
  /**
2595
3010
  * SkeletonTypography component.
@@ -2603,7 +3018,7 @@ declare const SkeletonTypography: Comp<SkeletonTypographyProps, HTMLDivElement>;
2603
3018
  /**
2604
3019
  * Defines the props of the component.
2605
3020
  */
2606
- interface SliderProps extends GenericProps, HasTheme {
3021
+ interface SliderProps extends GenericProps, HasTheme$1 {
2607
3022
  /** Helper text. */
2608
3023
  helper?: string;
2609
3024
  /** Whether the min and max labels should be hidden or not. */
@@ -2767,7 +3182,7 @@ interface UseSlideshowControls {
2767
3182
  /**
2768
3183
  * Defines the props of the component.
2769
3184
  */
2770
- interface SlideshowControlsProps extends GenericProps, HasTheme {
3185
+ interface SlideshowControlsProps extends GenericProps, HasTheme$1 {
2771
3186
  /** Index of the current slide. */
2772
3187
  activeIndex?: number;
2773
3188
  /** Props to pass to the next button (minus those already set by the SlideshowControls props). */
@@ -2811,7 +3226,7 @@ declare const SlideshowControls: Comp<SlideshowControlsProps, HTMLDivElement> &
2811
3226
  };
2812
3227
  };
2813
3228
 
2814
- interface SlidesProps extends GenericProps, HasTheme {
3229
+ interface SlidesProps extends GenericProps, HasTheme$1 {
2815
3230
  /** current slide active */
2816
3231
  activeIndex: number;
2817
3232
  /** slides id to be added to the wrapper */
@@ -2856,7 +3271,7 @@ declare const Slides: Comp<SlidesProps, HTMLDivElement>;
2856
3271
  /**
2857
3272
  * Defines the props of the component.
2858
3273
  */
2859
- interface SwitchProps$1 extends HasTheme$1, HasClassName, HasAriaDisabled, HasDisabled, HasChecked {
3274
+ interface SwitchProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled, HasChecked {
2860
3275
  /** Helper text. */
2861
3276
  helper?: string;
2862
3277
  /** Native input id property. */
@@ -2884,9 +3299,9 @@ interface SwitchProps$1 extends HasTheme$1, HasClassName, HasAriaDisabled, HasDi
2884
3299
  /**
2885
3300
  * Defines the props of the component.
2886
3301
  */
2887
- interface SwitchProps extends GenericProps, Omit<SwitchProps$1, 'inputId' | 'label'> {
2888
- /** Children (label content). */
2889
- children?: React__default.ReactNode;
3302
+ interface SwitchProps extends GenericProps, ReactToJSX<SwitchProps$1, 'inputId' | 'label'> {
3303
+ /** On change callback. */
3304
+ onChange?(isChecked: boolean, value?: string, name?: string, event?: React__default.ChangeEvent): void;
2890
3305
  }
2891
3306
  /**
2892
3307
  * Switch component.
@@ -2900,7 +3315,7 @@ declare const Switch: Comp<SwitchProps, HTMLDivElement>;
2900
3315
  /**
2901
3316
  * Defines the props of the component.
2902
3317
  */
2903
- interface TableProps$1 extends HasTheme$1, HasClassName {
3318
+ interface TableProps$1 extends HasTheme, HasClassName {
2904
3319
  /** Whether the table has checkbox or thumbnail on first cell or not. */
2905
3320
  hasBefore?: boolean;
2906
3321
  /** Whether the table has dividers or not. */
@@ -3095,7 +3510,7 @@ declare enum TabListLayout {
3095
3510
  /**
3096
3511
  * Defines the props of the component.
3097
3512
  */
3098
- interface TabListProps extends GenericProps, HasTheme {
3513
+ interface TabListProps extends GenericProps, HasTheme$1 {
3099
3514
  /** ARIA label (purpose of the set of tabs). */
3100
3515
  ['aria-label']: string;
3101
3516
  /** Tab list. */
@@ -3168,7 +3583,7 @@ interface TabPanelProps extends GenericProps {
3168
3583
  */
3169
3584
  declare const TabPanel: Comp<TabPanelProps, HTMLDivElement>;
3170
3585
 
3171
- interface TextProps extends TextProps$1, GenericProps {
3586
+ interface TextProps extends ReactToJSX<TextProps$1>, GenericProps {
3172
3587
  }
3173
3588
  /**
3174
3589
  * Text component.
@@ -3179,11 +3594,79 @@ interface TextProps extends TextProps$1, GenericProps {
3179
3594
  */
3180
3595
  declare const Text: Comp<TextProps, HTMLElement>;
3181
3596
 
3597
+ /**
3598
+ * Defines the props of the component.
3599
+ */
3600
+ interface TextFieldProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
3601
+ /** Chip Group to be rendered before the main text input. */
3602
+ chips?: ReactNode;
3603
+ /** Props to pass to the clear button (minus those already set by the TextField props). If not specified, the button won't be displayed. */
3604
+ clearButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
3605
+ /** Error message. */
3606
+ error?: string | ReactNode;
3607
+ /** Whether we force the focus style or not. */
3608
+ forceFocusStyle?: boolean;
3609
+ /** Whether the text field is displayed with error style or not. */
3610
+ hasError?: boolean;
3611
+ /** Additional element to put at the end of the text field. */
3612
+ afterElement?: ReactNode;
3613
+ /** Helper text. */
3614
+ helper?: string | ReactNode;
3615
+ /** Icon (SVG path). */
3616
+ icon?: string;
3617
+ /** Native input id property (generated if not provided to link the label element). */
3618
+ id?: string;
3619
+ /** Reference to the <input> or <textarea> element. */
3620
+ inputRef?: Ref<HTMLInputElement | HTMLTextAreaElement>;
3621
+ /** Whether the component is disabled or not. */
3622
+ isDisabled?: boolean;
3623
+ /** Whether the component is required or not. */
3624
+ isRequired?: boolean;
3625
+ /** Whether the text field is displayed with valid style or not. */
3626
+ isValid?: boolean;
3627
+ /** Label text. */
3628
+ label?: string;
3629
+ /** Additional label props. */
3630
+ labelProps?: InputLabelProps;
3631
+ /** Max string length the input accepts (constrains the input and displays a character counter). */
3632
+ maxLength?: number;
3633
+ /** Minimum number of rows displayed in multiline mode (requires `multiline` to be enabled). */
3634
+ minimumRows?: number;
3635
+ /** Whether the text field is a textarea or an input. */
3636
+ multiline?: boolean;
3637
+ /** Native input name property. */
3638
+ name?: string;
3639
+ /** Placeholder text. */
3640
+ placeholder?: string;
3641
+ /** Reference to the wrapper. */
3642
+ textFieldRef?: Ref<HTMLDivElement>;
3643
+ /** Native input type (only when `multiline` is disabled). */
3644
+ type?: React.ComponentProps<'input'>['type'];
3645
+ /** Value. */
3646
+ value?: string;
3647
+ /** On blur callback. */
3648
+ onBlur?(event: React.FocusEvent): void;
3649
+ /** On change callback. */
3650
+ onChange(value: string, name?: string, event?: SyntheticEvent): void;
3651
+ /** On clear callback. */
3652
+ onClear?(event?: SyntheticEvent): void;
3653
+ /** On focus callback. */
3654
+ onFocus?(event: React.FocusEvent): void;
3655
+ }
3656
+ /**
3657
+ * TextField component.
3658
+ *
3659
+ * @param props Component props.
3660
+ * @param ref Component ref.
3661
+ * @return React element.
3662
+ */
3663
+ declare const TextField: Comp<TextFieldProps, HTMLDivElement>;
3664
+
3182
3665
  type NativeInputProps = Omit<ComponentProps<'input'>, 'value' | 'onChange'>;
3183
3666
  /**
3184
3667
  * Defines the props of the component.
3185
3668
  */
3186
- interface RawInputTextProps extends NativeInputProps, HasTheme, HasClassName$1 {
3669
+ interface RawInputTextProps extends NativeInputProps, HasTheme$1, HasClassName$1 {
3187
3670
  value?: string;
3188
3671
  onChange?: (value: string, name?: string, event?: SyntheticEvent) => void;
3189
3672
  }
@@ -3197,7 +3680,7 @@ type NativeTextareaProps = ComponentProps<'textarea'>;
3197
3680
  /**
3198
3681
  * Defines the props of the component.
3199
3682
  */
3200
- interface RawInputTextareaProps extends Omit<NativeTextareaProps, 'value' | 'onChange'>, HasTheme, HasClassName$1 {
3683
+ interface RawInputTextareaProps extends Omit<NativeTextareaProps, 'value' | 'onChange'>, HasTheme$1, HasClassName$1 {
3201
3684
  minimumRows?: number;
3202
3685
  value?: string;
3203
3686
  onChange?: (value: string, name?: string, event?: SyntheticEvent) => void;
@@ -3227,7 +3710,7 @@ interface ToolbarProps$1 extends HasClassName {
3227
3710
  /**
3228
3711
  * Defines the props of the component.
3229
3712
  */
3230
- interface ToolbarProps extends GenericProps, ToolbarProps$1 {
3713
+ interface ToolbarProps extends GenericProps, ReactToJSX<ToolbarProps$1> {
3231
3714
  /** After content (placed after the label). */
3232
3715
  after?: ReactNode;
3233
3716
  /** Before content (placed before the label). */
@@ -3244,6 +3727,36 @@ interface ToolbarProps extends GenericProps, ToolbarProps$1 {
3244
3727
  */
3245
3728
  declare const Toolbar: Comp<ToolbarProps, HTMLDivElement>;
3246
3729
 
3730
+ declare const ARIA_LINK_MODES: readonly ["aria-describedby", "aria-labelledby"];
3731
+
3732
+ /** Position of the tooltip relative to the anchor element. */
3733
+ type TooltipPlacement = Extract<Placement, 'top' | 'right' | 'bottom' | 'left'>;
3734
+ /**
3735
+ * Defines the props of the component.
3736
+ */
3737
+ interface TooltipProps extends GenericProps, HasCloseMode {
3738
+ /** Anchor (element on which we activate the tooltip). */
3739
+ children: ReactNode;
3740
+ /** Delay (in ms) before closing the tooltip. */
3741
+ delay?: number;
3742
+ /** Whether the tooltip is displayed even without the mouse hovering the anchor. */
3743
+ forceOpen?: boolean;
3744
+ /** Label text. */
3745
+ label?: string | null | false;
3746
+ /** Placement of the tooltip relative to the anchor. */
3747
+ placement?: TooltipPlacement;
3748
+ /** Choose how the tooltip text should link to the anchor */
3749
+ ariaLinkMode?: (typeof ARIA_LINK_MODES)[number];
3750
+ }
3751
+ /**
3752
+ * Tooltip component.
3753
+ *
3754
+ * @param props Component props.
3755
+ * @param ref Component ref.
3756
+ * @return React element.
3757
+ */
3758
+ declare const Tooltip: Comp<TooltipProps, HTMLDivElement>;
3759
+
3247
3760
  /**
3248
3761
  * Uploader variants.
3249
3762
  */
@@ -3256,7 +3769,7 @@ type UploaderVariant = ValueOf$1<typeof UploaderVariant>;
3256
3769
  /**
3257
3770
  * Uploader sizes.
3258
3771
  */
3259
- type UploaderSize = Extract<Size, 'xl' | 'xxl'>;
3772
+ type UploaderSize = Extract<Size$1, 'xl' | 'xxl'>;
3260
3773
  /**
3261
3774
  * Extend native HTML input props with specialized `onChange` providing the a `File` array.
3262
3775
  */
@@ -3266,9 +3779,9 @@ interface FileInputProps extends Omit<React__default.ComponentProps<'input'>, 'o
3266
3779
  /**
3267
3780
  * Defines the props of the component.
3268
3781
  */
3269
- interface UploaderProps extends GenericProps, HasTheme, HasAriaDisabled$1 {
3782
+ interface UploaderProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
3270
3783
  /** Image aspect ratio. */
3271
- aspectRatio?: AspectRatio;
3784
+ aspectRatio?: AspectRatio$1;
3272
3785
  /** Icon (SVG path). */
3273
3786
  icon?: string;
3274
3787
  /** Disabled state */
@@ -3296,11 +3809,11 @@ declare const Uploader: Comp<UploaderProps, HTMLElement>;
3296
3809
  /**
3297
3810
  * User block sizes.
3298
3811
  */
3299
- type UserBlockSize = Extract<Size, 'xs' | 's' | 'm' | 'l'>;
3812
+ type UserBlockSize = Extract<Size$1, 'xs' | 's' | 'm' | 'l'>;
3300
3813
  /**
3301
3814
  * Defines the props of the component.
3302
3815
  */
3303
- interface UserBlockProps extends GenericProps, HasTheme {
3816
+ interface UserBlockProps extends GenericProps, HasTheme$1 {
3304
3817
  /** Props to pass to the avatar. */
3305
3818
  avatarProps?: Omit<AvatarProps, 'alt'>;
3306
3819
  /** Additional fields used to describe the user. */
@@ -3341,7 +3854,7 @@ interface UserBlockProps extends GenericProps, HasTheme {
3341
3854
  */
3342
3855
  declare const UserBlock: Comp<UserBlockProps, HTMLDivElement>;
3343
3856
 
3344
- type ThemeContextValue = Theme | undefined;
3857
+ type ThemeContextValue = Theme$1 | undefined;
3345
3858
  /** Provide a theme context to all children. */
3346
3859
  declare const ThemeProvider: React__default.FC<{
3347
3860
  value: ThemeContextValue;
@@ -3350,5 +3863,5 @@ declare const ThemeProvider: React__default.FC<{
3350
3863
  /** Get the theme in the current context. */
3351
3864
  declare function useTheme(): ThemeContextValue;
3352
3865
 
3353
- export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, BaseButtonProps, Button, ButtonEmphasis, ButtonGroup, CLASSNAME, COMBOBOX_OPTION_CLASSNAME, COMPONENT_NAME$1 as COMPONENT_NAME, Checkbox, Chip, ChipGroup, ComboboxOption, ComboboxOptionAction, ComboboxOptionMoreInfo, ComboboxOptionProps, ComboboxOptionSkeleton, 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, 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 };
3354
- export type { AlertDialogProps, AutocompleteMultipleProps, AutocompleteProps, AvatarProps, AvatarSize, BadgeProps, BadgeWrapperProps, ButtonGroupProps, ButtonProps, CheckboxProps, ChipGroupProps, ChipProps, ComboboxOptionActionProps, ComboboxOptionComponentProps, ComboboxOptionMoreInfoProps, ComboboxOptionSkeletonProps, 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, OptionContentProps, 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 };
3866
+ 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 };
3867
+ 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 };