@lumx/react 4.3.2-alpha.23 → 4.3.2-alpha.25

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-D7GkxJsY.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-D7GkxJsY.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
 
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,24 @@ 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
+ type FunctionSelector<TObject, TValue> = (o: TObject) => TValue;
544
+ type FieldSelector<TObject, TValue> = keyof {
545
+ [TKey in keyof TObject as TObject[TKey] extends TValue ? TKey : never]: TObject[TKey];
546
+ };
547
+ /**
548
+ * Value selector on an object
549
+ * - either via an object key
550
+ * - or a selector function
551
+ */
552
+ type Selector<TObject, TValue = string> = FieldSelector<TObject, TValue> | FunctionSelector<TObject, TValue>;
553
+
305
554
  /**
306
555
  * Defines the props of the component.
307
556
  */
@@ -314,10 +563,19 @@ interface BadgeProps$1 extends HasClassName {
314
563
  ref?: CommonRef;
315
564
  }
316
565
 
566
+ /**
567
+ * Props interface for components wrapped with ReactToJSX.
568
+ * It omits JSX-specific props like `children`
569
+ *
570
+ * @template Props - The base props type
571
+ * @template OmitProps - Additional props to omit beyond the defaults (children, className, ref)
572
+ */
573
+ type ReactToJSX<Props, OmitProps extends keyof Props = never> = Omit<Props, PropsToOverride | OmitProps>;
574
+
317
575
  /**
318
576
  * Defines the props of the component.
319
577
  */
320
- interface BadgeProps extends Omit<BadgeProps$1, 'children'>, GenericProps {
578
+ interface BadgeProps extends ReactToJSX<BadgeProps$1>, GenericProps {
321
579
  /** Badge content. */
322
580
  children?: ReactNode;
323
581
  }
@@ -339,7 +597,7 @@ interface BadgeWrapperProps$1 extends HasClassName {
339
597
  ref?: CommonRef;
340
598
  }
341
599
 
342
- interface BadgeWrapperProps extends GenericProps, Omit<BadgeWrapperProps$1, 'children' | 'badge'> {
600
+ interface BadgeWrapperProps extends GenericProps, ReactToJSX<BadgeWrapperProps$1, 'children' | 'badge'> {
343
601
  /** Badge element to display */
344
602
  badge: ReactElement;
345
603
  /** Content to wrap with badge */
@@ -347,6 +605,49 @@ interface BadgeWrapperProps extends GenericProps, Omit<BadgeWrapperProps$1, 'chi
347
605
  }
348
606
  declare const BadgeWrapper: Comp<BadgeWrapperProps, HTMLDivElement>;
349
607
 
608
+ interface BaseClickableProps extends HasDisabled, HasAriaDisabled {
609
+ children?: JSXElement;
610
+ onClick?: (event?: any) => void;
611
+ ref?: CommonRef;
612
+ }
613
+
614
+ /**
615
+ * Button size definition.
616
+ */
617
+ type ButtonSize = Extract<Size, 's' | 'm'>;
618
+ interface BaseButtonProps extends Pick<AriaAttributes, 'aria-expanded' | 'aria-haspopup' | 'aria-pressed' | 'aria-label'>, HasClassName, HasTheme, HasAriaDisabled, BaseClickableProps {
619
+ /** Color variant. */
620
+ color?: ColorPalette;
621
+ /** Emphasis variant. */
622
+ emphasis?: Emphasis;
623
+ /** Whether or not the button has a background color in low emphasis. */
624
+ hasBackground?: boolean;
625
+ /** Native anchor href property. It determines whether the Button will be a <button> or an <a>. */
626
+ href?: string;
627
+ /** Whether the component is disabled or not. */
628
+ isDisabled?: boolean;
629
+ /** Whether the component is selected or not (unsupported in `high` emphasis). */
630
+ isSelected?: boolean;
631
+ /** Native button name property. */
632
+ name?: string;
633
+ /** Size variant. */
634
+ size?: ButtonSize;
635
+ /** Native anchor target property. */
636
+ target?: '_self' | '_blank' | '_parent' | '_top';
637
+ /** Native button type. */
638
+ type?: 'submit' | 'reset' | 'button' | undefined;
639
+ /** Custom component for the link (can be used to inject router Link). */
640
+ linkAs?: 'a' | any;
641
+ /** whether the button is dispalyed in full width or not */
642
+ fullWidth?: boolean;
643
+ /** whether the button is currently active or not */
644
+ isActive?: boolean;
645
+ /** whether the button is currently focused or not */
646
+ isFocused?: boolean;
647
+ /** whether the button is currently focused or not */
648
+ isHovered?: boolean;
649
+ }
650
+
350
651
  /**
351
652
  * Button emphasis definition.
352
653
  * @deprecated Use Emphasis instead.
@@ -372,17 +673,19 @@ interface ButtonProps$1 extends BaseButtonProps {
372
673
  /**
373
674
  * Component display name.
374
675
  */
375
- declare const COMPONENT_NAME$1 = "Button";
676
+ declare const COMPONENT_NAME = "Button";
376
677
  /**
377
678
  * Component default class name and class prefix.
378
679
  */
379
- declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME$1>;
680
+ declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
380
681
  /**
381
682
  * Component default props.
382
683
  */
383
684
  declare const DEFAULT_PROPS: Partial<ButtonProps$1>;
384
685
 
385
- interface ButtonProps extends GenericProps, ButtonProps$1 {
686
+ interface ButtonProps extends GenericProps, ReactToJSX<ButtonProps$1> {
687
+ /** callback for clicking on the button */
688
+ onClick?: (event: React.MouseEvent) => void;
386
689
  }
387
690
  /**
388
691
  * Button component.
@@ -393,6 +696,46 @@ interface ButtonProps extends GenericProps, ButtonProps$1 {
393
696
  */
394
697
  declare const Button: Comp<ButtonProps, HTMLButtonElement | HTMLAnchorElement>;
395
698
 
699
+ interface IconButtonProps$1 extends BaseButtonProps {
700
+ /**
701
+ * Icon (SVG path).
702
+ * If `image` is also set, `image` will be used instead.
703
+ */
704
+ icon?: string;
705
+ /**
706
+ * Image (image url).
707
+ * Has priority over `icon`.
708
+ */
709
+ image?: string;
710
+ /**
711
+ * Label text (required for a11y purpose).
712
+ * If you really don't want an aria-label, you can set an empty label (this is not recommended).
713
+ */
714
+ label: string;
715
+ /** text to be displayed on hover */
716
+ title?: string;
717
+ }
718
+
719
+ interface IconButtonProps extends GenericProps, ReactToJSX<IconButtonProps$1, 'title' | 'children'> {
720
+ /**
721
+ * Props to pass to the tooltip.
722
+ * If undefined or if tooltipProps.label is undefined, the label prop will be used as tooltip label.
723
+ * */
724
+ tooltipProps?: Partial<TooltipProps>;
725
+ /** Whether the tooltip should be hidden or not. */
726
+ hideTooltip?: boolean;
727
+ /** callback for clicking on the button */
728
+ onClick?: (event: React.MouseEvent) => void;
729
+ }
730
+ /**
731
+ * IconButton component.
732
+ *
733
+ * @param props Component props.
734
+ * @param ref Component ref.
735
+ * @return React element.
736
+ */
737
+ declare const IconButton: Comp<IconButtonProps, HTMLButtonElement>;
738
+
396
739
  /**
397
740
  * Defines the props of the component
398
741
  */
@@ -405,7 +748,7 @@ interface ButtonGroupProps$1 extends HasClassName {
405
748
  ref?: CommonRef;
406
749
  }
407
750
 
408
- interface ButtonGroupProps extends GenericProps, ButtonGroupProps$1 {
751
+ interface ButtonGroupProps extends GenericProps, ReactToJSX<ButtonGroupProps$1> {
409
752
  }
410
753
  /**
411
754
  * ButtonGroup component.
@@ -419,7 +762,7 @@ declare const ButtonGroup: Comp<ButtonGroupProps, HTMLDivElement>;
419
762
  /**
420
763
  * Defines the props of the component.
421
764
  */
422
- interface CheckboxProps$1 extends HasTheme$1, HasClassName, HasAriaDisabled, HasDisabled, HasChecked<boolean | 'intermediate'> {
765
+ interface CheckboxProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled, HasChecked<boolean | 'intermediate'> {
423
766
  /** Helper text. */
424
767
  helper?: string;
425
768
  /** Native input id property. */
@@ -445,7 +788,9 @@ interface CheckboxProps$1 extends HasTheme$1, HasClassName, HasAriaDisabled, Has
445
788
  /**
446
789
  * Defines the props of the component.
447
790
  */
448
- interface CheckboxProps extends GenericProps, Omit<CheckboxProps$1, 'inputId'> {
791
+ interface CheckboxProps extends GenericProps, ReactToJSX<CheckboxProps$1, 'inputId'> {
792
+ /** On change callback. */
793
+ onChange?(isChecked: boolean, value?: string, name?: string, event?: React__default.ChangeEvent): void;
449
794
  }
450
795
  /**
451
796
  * Checkbox component.
@@ -459,11 +804,11 @@ declare const Checkbox: Comp<CheckboxProps, HTMLDivElement>;
459
804
  /**
460
805
  * Chip sizes.
461
806
  */
462
- type ChipSize = Extract<Size, 's' | 'm'>;
807
+ type ChipSize = Extract<Size$1, 's' | 'm'>;
463
808
  /**
464
809
  * Defines the props of the component.
465
810
  */
466
- interface ChipProps extends GenericProps, HasTheme, HasAriaDisabled$1 {
811
+ interface ChipProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
467
812
  /** A component to be rendered after the content. */
468
813
  after?: ReactNode;
469
814
  /** A component to be rendered before the content. */
@@ -514,7 +859,7 @@ interface ChipGroupProps extends GenericProps {
514
859
  * Chip horizontal alignment.
515
860
  * @deprecated
516
861
  */
517
- align?: HorizontalAlignment;
862
+ align?: HorizontalAlignment$1;
518
863
  /** List of Chip. */
519
864
  children: ReactNode;
520
865
  }
@@ -559,7 +904,7 @@ interface SelectionChipGroupProps<O> extends GenericProps {
559
904
  /**
560
905
  * LumX theme
561
906
  */
562
- theme?: Theme;
907
+ theme?: Theme$1;
563
908
  /**
564
909
  * Disabled state
565
910
  */
@@ -578,88 +923,6 @@ interface SelectionChipGroupProps<O> extends GenericProps {
578
923
  */
579
924
  declare const SelectionChipGroup: <O>({ onChange, value, getOptionId, getOptionName, inputRef, inputLabel, renderChip, theme, isDisabled, chipTooltipLabel, label, ...forwardedProps }: SelectionChipGroupProps<O>) => react_jsx_runtime.JSX.Element;
580
925
 
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
926
  /**
664
927
  * Comment block variants.
665
928
  */
@@ -671,7 +934,7 @@ type CommentBlockVariant = ValueOf$1<typeof CommentBlockVariant>;
671
934
  /**
672
935
  * Defines the props of the component.
673
936
  */
674
- interface CommentBlockProps extends GenericProps, HasTheme {
937
+ interface CommentBlockProps extends GenericProps, HasTheme$1 {
675
938
  /** Action toolbar content. */
676
939
  actions?: ReactNode;
677
940
  /** Props to pass to the avatar. */
@@ -849,7 +1112,7 @@ interface DialogProps extends GenericProps {
849
1112
  /** Children */
850
1113
  children?: React__default.ReactNode;
851
1114
  }
852
- type DialogSizes = Extract<Size, 'tiny' | 'regular' | 'big' | 'huge'>;
1115
+ type DialogSizes = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
853
1116
  /**
854
1117
  * Dialog component.
855
1118
  *
@@ -862,7 +1125,7 @@ declare const Dialog: Comp<DialogProps, HTMLDivElement>;
862
1125
  /**
863
1126
  * Defines the props of the component.
864
1127
  */
865
- interface DividerProps$1 extends HasTheme$1, HasClassName {
1128
+ interface DividerProps$1 extends HasTheme, HasClassName {
866
1129
  /** reference to the root element */
867
1130
  ref?: CommonRef;
868
1131
  }
@@ -870,7 +1133,7 @@ interface DividerProps$1 extends HasTheme$1, HasClassName {
870
1133
  /**
871
1134
  * Defines the props of the component.
872
1135
  */
873
- interface DividerProps extends GenericProps, DividerProps$1 {
1136
+ interface DividerProps extends GenericProps, ReactToJSX<DividerProps$1> {
874
1137
  }
875
1138
  /**
876
1139
  * Divider component.
@@ -884,7 +1147,7 @@ declare const Divider: Comp<DividerProps, HTMLHRElement>;
884
1147
  /**
885
1148
  * Defines the props of the component.
886
1149
  */
887
- interface DragHandleProps extends GenericProps, HasTheme {
1150
+ interface DragHandleProps extends GenericProps, HasTheme$1 {
888
1151
  }
889
1152
  /**
890
1153
  * DragHandle component.
@@ -895,10 +1158,54 @@ interface DragHandleProps extends GenericProps, HasTheme {
895
1158
  */
896
1159
  declare const DragHandle: Comp<DragHandleProps, HTMLDivElement>;
897
1160
 
1161
+ /**
1162
+ * Different possible placements for the popover.
1163
+ */
1164
+ declare const Placement: {
1165
+ readonly AUTO: "auto";
1166
+ readonly AUTO_END: "auto-end";
1167
+ readonly AUTO_START: "auto-start";
1168
+ readonly TOP: "top";
1169
+ readonly TOP_END: "top-end";
1170
+ readonly TOP_START: "top-start";
1171
+ readonly RIGHT: "right";
1172
+ readonly RIGHT_END: "right-end";
1173
+ readonly RIGHT_START: "right-start";
1174
+ readonly BOTTOM: "bottom";
1175
+ readonly BOTTOM_END: "bottom-end";
1176
+ readonly BOTTOM_START: "bottom-start";
1177
+ readonly LEFT: "left";
1178
+ readonly LEFT_END: "left-end";
1179
+ readonly LEFT_START: "left-start";
1180
+ };
1181
+ type Placement = ValueOf$1<typeof Placement>;
1182
+ /**
1183
+ * Offset of the popover.
1184
+ */
1185
+ interface Offset {
1186
+ /** Offset size along the reference. */
1187
+ along?: number;
1188
+ /** Offset size away from the reference. */
1189
+ away?: number;
1190
+ }
1191
+ /**
1192
+ * Popover elevation index.
1193
+ */
1194
+ type Elevation = 1 | 2 | 3 | 4 | 5;
1195
+ /**
1196
+ * Popover fit anchor width options.
1197
+ */
1198
+ declare const FitAnchorWidth: {
1199
+ readonly MAX_WIDTH: "maxWidth";
1200
+ readonly MIN_WIDTH: "minWidth";
1201
+ readonly WIDTH: "width";
1202
+ };
1203
+ type FitAnchorWidth = ValueOf$1<typeof FitAnchorWidth>;
1204
+
898
1205
  /**
899
1206
  * Defines the props of the component.
900
1207
  */
901
- interface PopoverProps extends GenericProps, HasTheme {
1208
+ interface PopoverProps extends GenericProps, HasTheme$1 {
902
1209
  /** Reference to the DOM element used to set the position of the popover. */
903
1210
  anchorRef: React.RefObject<HTMLElement>;
904
1211
  /** Customize the root element. (Must accept ref forwarding and props forwarding!). */
@@ -1040,7 +1347,7 @@ declare const Dropdown: Comp<DropdownProps, HTMLDivElement>;
1040
1347
  /**
1041
1348
  * Defines the props of the component.
1042
1349
  */
1043
- interface ExpansionPanelProps extends GenericProps, HasCloseMode, HasTheme {
1350
+ interface ExpansionPanelProps extends GenericProps, HasCloseMode, HasTheme$1 {
1044
1351
  /** Whether the expansion panel has a background. */
1045
1352
  hasBackground?: boolean;
1046
1353
  /** Whether the header has a divider. */
@@ -1116,7 +1423,7 @@ interface TextProps$1 extends HasClassName {
1116
1423
  style?: CSSProperties;
1117
1424
  }
1118
1425
 
1119
- interface FlagProps$1 extends HasClassName, HasTheme$1 {
1426
+ interface FlagProps$1 extends HasClassName, HasTheme {
1120
1427
  /** Color of the component. */
1121
1428
  color?: ColorPalette;
1122
1429
  /** Icon to use before the label. */
@@ -1131,7 +1438,7 @@ interface FlagProps$1 extends HasClassName, HasTheme$1 {
1131
1438
  Text: (props: TextProps$1) => any;
1132
1439
  }
1133
1440
 
1134
- interface FlagProps extends GenericProps, Omit<FlagProps$1, 'children' | 'Text'> {
1441
+ interface FlagProps extends GenericProps, ReactToJSX<FlagProps$1, 'children' | 'Text'> {
1135
1442
  /** Text label of the flag. */
1136
1443
  label: React.ReactNode;
1137
1444
  }
@@ -1145,10 +1452,10 @@ interface FlagProps extends GenericProps, Omit<FlagProps$1, 'children' | 'Text'>
1145
1452
  declare const Flag: Comp<FlagProps, HTMLDivElement>;
1146
1453
 
1147
1454
  type MarginAutoAlignment = Extract<Alignment, 'top' | 'bottom' | 'right' | 'left'>;
1148
- type GapSize = Extract<Size$1, 'tiny' | 'regular' | 'medium' | 'big' | 'huge'>;
1455
+ type GapSize = Extract<Size, 'tiny' | 'regular' | 'medium' | 'big' | 'huge'>;
1149
1456
  type SpaceAlignment = Extract<Alignment, 'space-between' | 'space-evenly' | 'space-around'>;
1150
1457
  type FlexVerticalAlignment = VerticalAlignment | SpaceAlignment;
1151
- type FlexHorizontalAlignment = HorizontalAlignment$1 | SpaceAlignment;
1458
+ type FlexHorizontalAlignment = HorizontalAlignment | SpaceAlignment;
1152
1459
 
1153
1460
  /**
1154
1461
  * Defines the props of the component.
@@ -1177,7 +1484,7 @@ interface FlexBoxProps$1 extends HasClassName {
1177
1484
  /**
1178
1485
  * Defines the props of the component.
1179
1486
  */
1180
- interface FlexBoxProps extends GenericProps, FlexBoxProps$1 {
1487
+ interface FlexBoxProps extends GenericProps, ReactToJSX<FlexBoxProps$1> {
1181
1488
  /** Customize the root element. */
1182
1489
  as?: React__default.ElementType;
1183
1490
  }
@@ -1326,7 +1633,7 @@ declare const useHeadingLevel: () => {
1326
1633
  headingElement: _lumx_core_js_types.HeadingElement;
1327
1634
  };
1328
1635
 
1329
- type GridGutterSize = Extract<Size, 'regular' | 'big' | 'huge'>;
1636
+ type GridGutterSize = Extract<Size$1, 'regular' | 'big' | 'huge'>;
1330
1637
  /**
1331
1638
  * Defines the props of the component.
1332
1639
  */
@@ -1376,7 +1683,7 @@ interface GridItemProps extends GenericProps {
1376
1683
  */
1377
1684
  declare const GridItem: Comp<GridItemProps, HTMLDivElement>;
1378
1685
 
1379
- type GridColumnGapSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
1686
+ type GridColumnGapSize = Extract<Size, 'tiny' | 'regular' | 'big' | 'huge'>;
1380
1687
  /**
1381
1688
  * Defines the props of the component.
1382
1689
  */
@@ -1400,11 +1707,9 @@ interface GridColumnProps$1 extends HasClassName {
1400
1707
  /**
1401
1708
  * Defines the props of the component.
1402
1709
  */
1403
- interface GridColumnProps extends GenericProps, GridColumnProps$1 {
1710
+ interface GridColumnProps extends GenericProps, ReactToJSX<GridColumnProps$1> {
1404
1711
  /** Customize the root element. */
1405
1712
  as?: React.ElementType;
1406
- /** Children elements. */
1407
- children?: React.ReactNode;
1408
1713
  }
1409
1714
 
1410
1715
  /**
@@ -1424,7 +1729,7 @@ type IconSizes = (typeof ICON_SIZES)[number];
1424
1729
  /**
1425
1730
  * Defines the props of the component.
1426
1731
  */
1427
- interface IconProps$1 extends HasClassName, HasTheme$1 {
1732
+ interface IconProps$1 extends HasClassName, HasTheme {
1428
1733
  /** Color variant. */
1429
1734
  color?: ColorWithVariants;
1430
1735
  /** Lightened or darkened variant of the selected icon color. */
@@ -1446,7 +1751,7 @@ interface IconProps$1 extends HasClassName, HasTheme$1 {
1446
1751
  ref?: CommonRef;
1447
1752
  }
1448
1753
 
1449
- interface IconProps extends Omit<IconProps$1, 'children'>, GenericProps {
1754
+ interface IconProps extends ReactToJSX<IconProps$1>, GenericProps {
1450
1755
  }
1451
1756
  /**
1452
1757
  * Icon component.
@@ -1470,7 +1775,7 @@ declare module 'react' {
1470
1775
  /**
1471
1776
  * Thumbnail sizes.
1472
1777
  */
1473
- type ThumbnailSize$1 = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
1778
+ type ThumbnailSize$1 = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
1474
1779
  /**
1475
1780
  * Thumbnail variants.
1476
1781
  */
@@ -1492,13 +1797,13 @@ type ImgHTMLProps = ImgHTMLAttributes<HTMLImageElement>;
1492
1797
  /**
1493
1798
  * Defines the props of the component.
1494
1799
  */
1495
- interface ThumbnailProps$1 extends HasTheme, HasClassName$1 {
1800
+ interface ThumbnailProps$1 extends HasTheme$1, HasClassName$1 {
1496
1801
  /** Alignment of the thumbnail in it's parent (requires flex parent). */
1497
- align?: HorizontalAlignment;
1802
+ align?: HorizontalAlignment$1;
1498
1803
  /** Image alternative text. */
1499
1804
  alt: string;
1500
1805
  /** Image aspect ratio. */
1501
- aspectRatio?: AspectRatio;
1806
+ aspectRatio?: AspectRatio$1;
1502
1807
  /** Badge. */
1503
1808
  badge?: JSXElement$1;
1504
1809
  /** Image cross origin resource policy. */
@@ -1562,11 +1867,11 @@ declare module 'react' {
1562
1867
  * All available aspect ratios.
1563
1868
  * @deprecated
1564
1869
  */
1565
- declare const ThumbnailAspectRatio: Record<string, AspectRatio>;
1870
+ declare const ThumbnailAspectRatio: Record<string, AspectRatio$1>;
1566
1871
  /**
1567
1872
  * Thumbnail sizes.
1568
1873
  */
1569
- type ThumbnailSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
1874
+ type ThumbnailSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
1570
1875
  /**
1571
1876
  * Thumbnail variants.
1572
1877
  */
@@ -1587,11 +1892,15 @@ type ThumbnailObjectFit = ValueOf$1<typeof ThumbnailObjectFit>;
1587
1892
  /**
1588
1893
  * Defines the props of the component.
1589
1894
  */
1590
- interface ThumbnailProps extends GenericProps, Omit<ThumbnailProps$1, 'loadingState' | 'isAnyDisabled' | 'focusPointStyle' | 'disabledStateProps' | 'badge'> {
1895
+ interface ThumbnailProps extends GenericProps, ReactToJSX<ThumbnailProps$1, 'loadingState' | 'isAnyDisabled' | 'focusPointStyle' | 'disabledStateProps' | 'badge'> {
1591
1896
  /** Apply relative vertical and horizontal shift (from -1 to 1) on the image position inside the thumbnail. */
1592
1897
  focusPoint?: FocusPoint;
1593
1898
  /** Badge. */
1594
1899
  badge?: ReactElement | Falsy;
1900
+ /** On click callback. */
1901
+ onClick?: React__default.MouseEventHandler<HTMLDivElement>;
1902
+ /** On key press callback. */
1903
+ onKeyPress?: React__default.KeyboardEventHandler<HTMLDivElement>;
1595
1904
  }
1596
1905
  /**
1597
1906
  * Thumbnail component.
@@ -1631,15 +1940,15 @@ type ImageBlockCaptionPosition = ValueOf$1<typeof ImageBlockCaptionPosition>;
1631
1940
  /**
1632
1941
  * Image block sizes.
1633
1942
  */
1634
- type ImageBlockSize = Extract<Size, 'xl' | 'xxl'>;
1943
+ type ImageBlockSize = Extract<Size$1, 'xl' | 'xxl'>;
1635
1944
  /**
1636
1945
  * Defines the props of the component.
1637
1946
  */
1638
- interface ImageBlockProps extends GenericProps, HasTheme, ImageCaptionMetadata {
1947
+ interface ImageBlockProps extends GenericProps, HasTheme$1, ImageCaptionMetadata {
1639
1948
  /** Action toolbar content. */
1640
1949
  actions?: ReactNode;
1641
1950
  /** Alignment. */
1642
- align?: HorizontalAlignment;
1951
+ align?: HorizontalAlignment$1;
1643
1952
  /** Image alternative text. */
1644
1953
  alt: string;
1645
1954
  /** Caption position. */
@@ -1761,18 +2070,18 @@ declare const InlineList: Comp<InlineListProps, HTMLElement>;
1761
2070
  /**
1762
2071
  * Defines the props of the component.
1763
2072
  */
1764
- interface InputHelperProps$1 extends HasClassName, HasTheme$1 {
2073
+ interface InputHelperProps$1 extends HasClassName, HasTheme {
1765
2074
  /** Helper content. */
1766
2075
  children: JSXElement;
1767
2076
  /** Helper variant. */
1768
- kind?: Kind$1;
2077
+ kind?: Kind;
1769
2078
  /** ref to the root element `p` */
1770
2079
  ref?: CommonRef;
1771
2080
  /** id for the input helper */
1772
2081
  id?: string;
1773
2082
  }
1774
2083
 
1775
- interface InputHelperProps extends InputHelperProps$1, GenericProps {
2084
+ interface InputHelperProps extends ReactToJSX<InputHelperProps$1>, GenericProps {
1776
2085
  }
1777
2086
  /**
1778
2087
  * InputHelper component.
@@ -1783,10 +2092,34 @@ interface InputHelperProps extends InputHelperProps$1, GenericProps {
1783
2092
  */
1784
2093
  declare const InputHelper: Comp<InputHelperProps, HTMLParagraphElement>;
1785
2094
 
2095
+ interface InputLabelProps$1 extends HasClassName, HasTheme {
2096
+ /** Typography variant. */
2097
+ typography?: Typography;
2098
+ /** Label content. */
2099
+ children: JSXElement;
2100
+ /** Native htmlFor property. */
2101
+ htmlFor: string;
2102
+ /** Whether the component is required or not. */
2103
+ isRequired?: boolean;
2104
+ /** ref to the root element */
2105
+ ref?: CommonRef;
2106
+ }
2107
+
2108
+ interface InputLabelProps extends ReactToJSX<InputLabelProps$1>, GenericProps {
2109
+ }
2110
+ /**
2111
+ * InputLabel component.
2112
+ *
2113
+ * @param props Component props.
2114
+ * @param ref Component ref.
2115
+ * @return React element.
2116
+ */
2117
+ declare const InputLabel: Comp<InputLabelProps, HTMLLabelElement>;
2118
+
1786
2119
  /**
1787
2120
  * Defines the props of the component.
1788
2121
  */
1789
- interface LightboxProps extends GenericProps, HasTheme, Pick<AriaAttributes, 'aria-label' | 'aria-labelledby'> {
2122
+ interface LightboxProps extends GenericProps, HasTheme$1, Pick<AriaAttributes, 'aria-label' | 'aria-labelledby'> {
1790
2123
  /** Props to pass to the close button (minus those already set by the Lightbox props). */
1791
2124
  closeButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis' | 'color'>;
1792
2125
  /** Whether the component is open or not. */
@@ -1816,7 +2149,7 @@ declare const Lightbox: Comp<LightboxProps, HTMLDivElement>;
1816
2149
  /**
1817
2150
  * Defines the props of the component.
1818
2151
  */
1819
- interface LinkProps$1 extends HasTheme$1, HasClassName, HasAriaDisabled, HasDisabled {
2152
+ interface LinkProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled {
1820
2153
  /** Link label content. */
1821
2154
  label?: JSXElement;
1822
2155
  /** Color variant. */
@@ -1851,7 +2184,7 @@ type HTMLAnchorProps = React__default.DetailedHTMLProps<React__default.AnchorHTM
1851
2184
  /**
1852
2185
  * Defines the props of the component.
1853
2186
  */
1854
- interface LinkProps extends GenericProps, Omit<LinkProps$1, 'label'> {
2187
+ interface LinkProps extends GenericProps, ReactToJSX<LinkProps$1, 'label'> {
1855
2188
  /** Link href. */
1856
2189
  href?: HTMLAnchorProps['href'];
1857
2190
  /** Custom react component for the link (can be used to inject react router Link). */
@@ -1860,8 +2193,8 @@ interface LinkProps extends GenericProps, Omit<LinkProps$1, 'label'> {
1860
2193
  target?: HTMLAnchorProps['target'];
1861
2194
  /** Typography variant. */
1862
2195
  typography?: Typography$1;
1863
- /** Children */
1864
- children?: React__default.ReactNode;
2196
+ /** Click handler. */
2197
+ onClick?: (event: React__default.MouseEvent) => void;
1865
2198
  }
1866
2199
  /**
1867
2200
  * Link component.
@@ -1875,7 +2208,7 @@ declare const Link: Comp<LinkProps, HTMLButtonElement | HTMLAnchorElement>;
1875
2208
  /**
1876
2209
  * Defines the props of the component.
1877
2210
  */
1878
- interface LinkPreviewProps extends GenericProps, HasTheme {
2211
+ interface LinkPreviewProps extends GenericProps, HasTheme$1 {
1879
2212
  /** Description. */
1880
2213
  description?: string;
1881
2214
  /** Link URL. */
@@ -1885,7 +2218,7 @@ interface LinkPreviewProps extends GenericProps, HasTheme {
1885
2218
  /** Props to pass to the link (minus those already set by the LinkPreview props). */
1886
2219
  linkProps?: Omit<LinkProps, 'color' | 'colorVariant' | 'href' | 'target'>;
1887
2220
  /** Size variant. */
1888
- size?: Extract<Size, 'regular' | 'big'>;
2221
+ size?: Extract<Size$1, 'regular' | 'big'>;
1889
2222
  /** Thumbnail for the link preview. */
1890
2223
  thumbnailProps?: ThumbnailProps;
1891
2224
  /** Title. */
@@ -1927,7 +2260,7 @@ interface ListProps extends GenericProps {
1927
2260
  */
1928
2261
  isClickable?: boolean;
1929
2262
  /** Item padding size. */
1930
- itemPadding?: Extract<Size, 'big' | 'huge'>;
2263
+ itemPadding?: Extract<Size$1, 'big' | 'huge'>;
1931
2264
  /** Tab index of the list. Default to -1 */
1932
2265
  tabIndex?: number;
1933
2266
  /**
@@ -1943,6 +2276,50 @@ declare const List: Comp<ListProps, HTMLUListElement> & {
1943
2276
  useKeyboardListNavigation: useKeyboardListNavigationType;
1944
2277
  };
1945
2278
 
2279
+ type ListItemSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
2280
+ /**
2281
+ * Defines the props of the component.
2282
+ */
2283
+ interface ListItemProps extends GenericProps, HasAriaDisabled$1 {
2284
+ /** A component to be rendered after the content. */
2285
+ after?: ReactNode;
2286
+ /** A component to be rendered before the content. */
2287
+ before?: ReactNode;
2288
+ /** Content. */
2289
+ children: string | ReactNode;
2290
+ /** Whether the list item should be highlighted or not. */
2291
+ isHighlighted?: boolean;
2292
+ /** Whether the component is selected or not. */
2293
+ isSelected?: boolean;
2294
+ /** Whether link/button is disabled or not. */
2295
+ isDisabled?: boolean;
2296
+ /** Reference to the <li> element. */
2297
+ listItemRef?: Ref<HTMLLIElement>;
2298
+ /** Custom react component for the link (can be used to inject react router Link). */
2299
+ linkAs?: 'a' | any;
2300
+ /** Props that will be passed on to the Link */
2301
+ linkProps?: React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
2302
+ /** Reference to the link element. */
2303
+ linkRef?: Ref<HTMLAnchorElement>;
2304
+ /** Size variant. */
2305
+ size?: ListItemSize;
2306
+ /** On selected callback. */
2307
+ onItemSelected?(evt: SyntheticEvent): void;
2308
+ }
2309
+ /**
2310
+ * Check if the list item is clickable.
2311
+ * @return `true` if the list item is clickable; `false` otherwise.
2312
+ */
2313
+ declare function isClickable({ linkProps, onItemSelected }: Partial<ListItemProps>): boolean;
2314
+ /**
2315
+ * ListItem component.
2316
+ *
2317
+ * @param props Component props.
2318
+ * @param ref Component ref.
2319
+ * @return React element.
2320
+ */
2321
+ declare const ListItem: Comp<ListItemProps, HTMLLIElement>;
2322
+
1946
2323
  /**
1947
2324
  * Defines the props of the component.
1948
2325
  */
@@ -1981,7 +2358,7 @@ interface MessageProps$1 extends HasClassName {
1981
2358
  /** Whether the message has a background or not. */
1982
2359
  hasBackground?: boolean;
1983
2360
  /** Message variant. */
1984
- kind?: Kind$1;
2361
+ kind?: Kind;
1985
2362
  /** Message custom icon SVG path. */
1986
2363
  icon?: string;
1987
2364
  /** Reference to the message container element. */
@@ -1999,9 +2376,7 @@ interface MessageProps$1 extends HasClassName {
1999
2376
  };
2000
2377
  }
2001
2378
 
2002
- interface MessageProps extends GenericProps, Omit<MessageProps$1, 'children' | 'ref'> {
2003
- /** Content. */
2004
- children?: React.ReactNode;
2379
+ interface MessageProps extends GenericProps, ReactToJSX<MessageProps$1> {
2005
2380
  }
2006
2381
  /**
2007
2382
  * Message component.
@@ -2015,7 +2390,7 @@ declare const Message: Comp<MessageProps, HTMLDivElement>;
2015
2390
  /**
2016
2391
  * Defines the props of the component.
2017
2392
  */
2018
- interface MosaicProps extends GenericProps, HasTheme {
2393
+ interface MosaicProps extends GenericProps, HasTheme$1 {
2019
2394
  /** Thumbnails. */
2020
2395
  thumbnails: ThumbnailProps[];
2021
2396
  /** On image click callback. */
@@ -2050,14 +2425,14 @@ type BaseNavigationItemProps = {
2050
2425
  };
2051
2426
  declare const NavigationItem: (<E extends ElementType = "a">(props: React$1.PropsWithoutRef<React$1.ComponentProps<E>> & {
2052
2427
  as?: E | undefined;
2053
- } & HasTheme & HasClassName$1 & BaseNavigationItemProps & HasRequiredLinkHref<E> & React$1.ComponentProps<E> & {
2428
+ } & HasTheme$1 & HasClassName$1 & BaseNavigationItemProps & HasRequiredLinkHref<E> & React$1.ComponentProps<E> & {
2054
2429
  ref?: ComponentRef<E> | undefined;
2055
2430
  }) => React.JSX.Element) & {
2056
2431
  displayName: string;
2057
2432
  className: "lumx-navigation-item";
2058
2433
  };
2059
2434
 
2060
- type NavigationProps = React.ComponentProps<'nav'> & HasClassName$1 & HasTheme & {
2435
+ type NavigationProps = React.ComponentProps<'nav'> & HasClassName$1 & HasTheme$1 & {
2061
2436
  /** Content of the navigation. These components should be of type NavigationItem to be rendered */
2062
2437
  children?: React.ReactNode;
2063
2438
  orientation?: Orientation$1;
@@ -2071,7 +2446,7 @@ declare const Navigation: Comp<NavigationProps, HTMLElement> & SubComponents;
2071
2446
  /**
2072
2447
  * Defines the props of the component.
2073
2448
  */
2074
- interface NotificationProps extends GenericProps, HasTheme {
2449
+ interface NotificationProps extends GenericProps, HasTheme$1 {
2075
2450
  /** Action button label. */
2076
2451
  actionLabel?: string;
2077
2452
  /** Content. */
@@ -2079,7 +2454,7 @@ interface NotificationProps extends GenericProps, HasTheme {
2079
2454
  /** Whether the component is open or not. */
2080
2455
  isOpen?: boolean;
2081
2456
  /** Notification type. */
2082
- type?: Kind;
2457
+ type?: Kind$1;
2083
2458
  /** Z-axis position. */
2084
2459
  zIndex?: number;
2085
2460
  /** On action button click callback. */
@@ -2115,7 +2490,7 @@ declare const PopoverDialog: Comp<PopoverDialogProps, HTMLDivElement>;
2115
2490
  /**
2116
2491
  * Defines the props of the component.
2117
2492
  */
2118
- interface PostBlockProps extends GenericProps, HasTheme {
2493
+ interface PostBlockProps extends GenericProps, HasTheme$1 {
2119
2494
  /** Action toolbar content. */
2120
2495
  actions?: ReactNode;
2121
2496
  /** Attachment content. */
@@ -2159,7 +2534,7 @@ type ProgressVariant = ValueOf$1<typeof ProgressVariant>;
2159
2534
  /**
2160
2535
  * Defines the props of the component.
2161
2536
  */
2162
- interface ProgressProps extends GenericProps, HasTheme {
2537
+ interface ProgressProps extends GenericProps, HasTheme$1 {
2163
2538
  /** Progress variant. */
2164
2539
  variant?: ProgressVariant;
2165
2540
  }
@@ -2176,11 +2551,11 @@ declare const Progress: Comp<ProgressProps, HTMLDivElement>;
2176
2551
  /**
2177
2552
  * Progress sizes.
2178
2553
  */
2179
- type ProgressCircularSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm'>;
2554
+ type ProgressCircularSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm'>;
2180
2555
  /**
2181
2556
  * Defines the props of the component.
2182
2557
  */
2183
- interface ProgressCircularProps extends GenericProps, HasTheme {
2558
+ interface ProgressCircularProps extends GenericProps, HasTheme$1 {
2184
2559
  /**
2185
2560
  * Progress circular size.
2186
2561
  */
@@ -2200,7 +2575,7 @@ interface ProgressCircularProps extends GenericProps, HasTheme {
2200
2575
  */
2201
2576
  declare const ProgressCircular: Comp<ProgressCircularProps, HTMLDivElement>;
2202
2577
 
2203
- interface ProgressLinearProps extends GenericProps, HasTheme {
2578
+ interface ProgressLinearProps extends GenericProps, HasTheme$1 {
2204
2579
  }
2205
2580
  /**
2206
2581
  * ProgressLinear component.
@@ -2313,7 +2688,7 @@ declare const ProgressTrackerStepPanel: Comp<ProgressTrackerStepPanelProps, HTML
2313
2688
  /**
2314
2689
  * Defines the props of the component.
2315
2690
  */
2316
- interface RadioButtonProps$1 extends HasTheme$1, HasClassName, HasAriaDisabled, HasDisabled, HasChecked {
2691
+ interface RadioButtonProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled, HasChecked {
2317
2692
  /** Helper text. */
2318
2693
  helper?: string;
2319
2694
  /** Native input id property. */
@@ -2339,7 +2714,9 @@ interface RadioButtonProps$1 extends HasTheme$1, HasClassName, HasAriaDisabled,
2339
2714
  /**
2340
2715
  * Defines the props of the component.
2341
2716
  */
2342
- interface RadioButtonProps extends GenericProps, Omit<RadioButtonProps$1, 'inputId'> {
2717
+ interface RadioButtonProps extends GenericProps, ReactToJSX<RadioButtonProps$1, 'inputId'> {
2718
+ /** On change callback. */
2719
+ onChange?(value?: string, name?: string, event?: React.ChangeEvent): void;
2343
2720
  }
2344
2721
  /**
2345
2722
  * RadioButton component.
@@ -2353,9 +2730,17 @@ declare const RadioButton: Comp<RadioButtonProps, HTMLDivElement>;
2353
2730
  /**
2354
2731
  * Defines the props of the component.
2355
2732
  */
2356
- interface RadioGroupProps extends GenericProps {
2733
+ interface RadioGroupProps$1 extends HasClassName {
2357
2734
  /** RadioButton elements */
2358
- children: ReactNode;
2735
+ children?: JSXElement;
2736
+ /** reference to the root element */
2737
+ ref?: CommonRef;
2738
+ }
2739
+
2740
+ /**
2741
+ * Defines the props of the component.
2742
+ */
2743
+ interface RadioGroupProps extends GenericProps, ReactToJSX<RadioGroupProps$1> {
2359
2744
  }
2360
2745
  /**
2361
2746
  * RadioGroup component.
@@ -2374,7 +2759,7 @@ declare const SelectVariant: {
2374
2759
  readonly chip: "chip";
2375
2760
  };
2376
2761
  type SelectVariant = ValueOf$1<typeof SelectVariant>;
2377
- interface CoreSelectProps extends GenericProps, HasTheme {
2762
+ interface CoreSelectProps extends GenericProps, HasTheme$1 {
2378
2763
  /** 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
2764
  clearButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
2380
2765
  /** Whether the select (input variant) is displayed with error style or not. */
@@ -2454,7 +2839,7 @@ declare const SelectMultiple: Comp<SelectMultipleProps, HTMLDivElement>;
2454
2839
  /**
2455
2840
  * Defines the props of the component.
2456
2841
  */
2457
- interface SideNavigationProps extends GenericProps, HasTheme {
2842
+ interface SideNavigationProps extends GenericProps, HasTheme$1 {
2458
2843
  /** SideNavigationItem elements. */
2459
2844
  children: ReactNode;
2460
2845
  }
@@ -2474,7 +2859,7 @@ interface SideNavigationItemProps extends GenericProps, HasCloseMode {
2474
2859
  /** SideNavigationItem elements. */
2475
2860
  children?: ReactNode;
2476
2861
  /** Emphasis variant. */
2477
- emphasis?: Emphasis;
2862
+ emphasis?: Emphasis$1;
2478
2863
  /** Label content. */
2479
2864
  label: string | ReactNode;
2480
2865
  /** Icon (SVG path). */
@@ -2506,7 +2891,7 @@ declare const SideNavigationItem: Comp<SideNavigationItemProps, HTMLLIElement>;
2506
2891
  /**
2507
2892
  * Defines the props of the component.
2508
2893
  */
2509
- interface SkeletonCircleProps$1 extends HasTheme$1, HasClassName {
2894
+ interface SkeletonCircleProps$1 extends HasTheme, HasClassName {
2510
2895
  /** Size variant. */
2511
2896
  size: GlobalSize;
2512
2897
  /** The color of the skeleton. */
@@ -2527,9 +2912,9 @@ type SkeletonRectangleVariant = ValueOf<typeof SkeletonRectangleVariant>;
2527
2912
  /**
2528
2913
  * Defines the props of the component.
2529
2914
  */
2530
- interface SkeletonRectangleProps$1 extends HasTheme$1, HasClassName {
2915
+ interface SkeletonRectangleProps$1 extends HasTheme, HasClassName {
2531
2916
  /** Aspect ratio (use with width and not height). */
2532
- aspectRatio?: Extract<AspectRatio$1, 'square' | 'horizontal' | 'vertical' | 'wide'>;
2917
+ aspectRatio?: Extract<AspectRatio, 'square' | 'horizontal' | 'vertical' | 'wide'>;
2533
2918
  /** Height size. */
2534
2919
  height?: GlobalSize;
2535
2920
  /** Border variant. */
@@ -2545,7 +2930,7 @@ interface SkeletonRectangleProps$1 extends HasTheme$1, HasClassName {
2545
2930
  /**
2546
2931
  * Defines the props of the component.
2547
2932
  */
2548
- interface SkeletonTypographyProps$1 extends HasTheme$1, HasClassName {
2933
+ interface SkeletonTypographyProps$1 extends HasTheme, HasClassName {
2549
2934
  /** Typography variant. */
2550
2935
  typography: TypographyInterface;
2551
2936
  /** Width CSS property. */
@@ -2561,7 +2946,7 @@ interface SkeletonTypographyProps$1 extends HasTheme$1, HasClassName {
2561
2946
  /**
2562
2947
  * Defines the props of the component.
2563
2948
  */
2564
- interface SkeletonCircleProps extends GenericProps, SkeletonCircleProps$1 {
2949
+ interface SkeletonCircleProps extends GenericProps, ReactToJSX<SkeletonCircleProps$1> {
2565
2950
  }
2566
2951
  /**
2567
2952
  * SkeletonCircle component.
@@ -2575,7 +2960,7 @@ declare const SkeletonCircle: Comp<SkeletonCircleProps, HTMLDivElement>;
2575
2960
  /**
2576
2961
  * Defines the props of the component.
2577
2962
  */
2578
- interface SkeletonRectangleProps extends GenericProps, SkeletonRectangleProps$1 {
2963
+ interface SkeletonRectangleProps extends GenericProps, ReactToJSX<SkeletonRectangleProps$1> {
2579
2964
  }
2580
2965
  /**
2581
2966
  * SkeletonRectangle component.
@@ -2589,7 +2974,7 @@ declare const SkeletonRectangle: Comp<SkeletonRectangleProps, HTMLDivElement>;
2589
2974
  /**
2590
2975
  * Defines the props of the component.
2591
2976
  */
2592
- interface SkeletonTypographyProps extends GenericProps, SkeletonTypographyProps$1 {
2977
+ interface SkeletonTypographyProps extends GenericProps, ReactToJSX<SkeletonTypographyProps$1> {
2593
2978
  }
2594
2979
  /**
2595
2980
  * SkeletonTypography component.
@@ -2603,7 +2988,7 @@ declare const SkeletonTypography: Comp<SkeletonTypographyProps, HTMLDivElement>;
2603
2988
  /**
2604
2989
  * Defines the props of the component.
2605
2990
  */
2606
- interface SliderProps extends GenericProps, HasTheme {
2991
+ interface SliderProps extends GenericProps, HasTheme$1 {
2607
2992
  /** Helper text. */
2608
2993
  helper?: string;
2609
2994
  /** Whether the min and max labels should be hidden or not. */
@@ -2767,7 +3152,7 @@ interface UseSlideshowControls {
2767
3152
  /**
2768
3153
  * Defines the props of the component.
2769
3154
  */
2770
- interface SlideshowControlsProps extends GenericProps, HasTheme {
3155
+ interface SlideshowControlsProps extends GenericProps, HasTheme$1 {
2771
3156
  /** Index of the current slide. */
2772
3157
  activeIndex?: number;
2773
3158
  /** Props to pass to the next button (minus those already set by the SlideshowControls props). */
@@ -2811,7 +3196,7 @@ declare const SlideshowControls: Comp<SlideshowControlsProps, HTMLDivElement> &
2811
3196
  };
2812
3197
  };
2813
3198
 
2814
- interface SlidesProps extends GenericProps, HasTheme {
3199
+ interface SlidesProps extends GenericProps, HasTheme$1 {
2815
3200
  /** current slide active */
2816
3201
  activeIndex: number;
2817
3202
  /** slides id to be added to the wrapper */
@@ -2856,7 +3241,7 @@ declare const Slides: Comp<SlidesProps, HTMLDivElement>;
2856
3241
  /**
2857
3242
  * Defines the props of the component.
2858
3243
  */
2859
- interface SwitchProps$1 extends HasTheme$1, HasClassName, HasAriaDisabled, HasDisabled, HasChecked {
3244
+ interface SwitchProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled, HasChecked {
2860
3245
  /** Helper text. */
2861
3246
  helper?: string;
2862
3247
  /** Native input id property. */
@@ -2884,9 +3269,9 @@ interface SwitchProps$1 extends HasTheme$1, HasClassName, HasAriaDisabled, HasDi
2884
3269
  /**
2885
3270
  * Defines the props of the component.
2886
3271
  */
2887
- interface SwitchProps extends GenericProps, Omit<SwitchProps$1, 'inputId' | 'label'> {
2888
- /** Children (label content). */
2889
- children?: React__default.ReactNode;
3272
+ interface SwitchProps extends GenericProps, ReactToJSX<SwitchProps$1, 'inputId' | 'label'> {
3273
+ /** On change callback. */
3274
+ onChange?(isChecked: boolean, value?: string, name?: string, event?: React__default.ChangeEvent): void;
2890
3275
  }
2891
3276
  /**
2892
3277
  * Switch component.
@@ -2900,7 +3285,7 @@ declare const Switch: Comp<SwitchProps, HTMLDivElement>;
2900
3285
  /**
2901
3286
  * Defines the props of the component.
2902
3287
  */
2903
- interface TableProps$1 extends HasTheme$1, HasClassName {
3288
+ interface TableProps$1 extends HasTheme, HasClassName {
2904
3289
  /** Whether the table has checkbox or thumbnail on first cell or not. */
2905
3290
  hasBefore?: boolean;
2906
3291
  /** Whether the table has dividers or not. */
@@ -3095,7 +3480,7 @@ declare enum TabListLayout {
3095
3480
  /**
3096
3481
  * Defines the props of the component.
3097
3482
  */
3098
- interface TabListProps extends GenericProps, HasTheme {
3483
+ interface TabListProps extends GenericProps, HasTheme$1 {
3099
3484
  /** ARIA label (purpose of the set of tabs). */
3100
3485
  ['aria-label']: string;
3101
3486
  /** Tab list. */
@@ -3168,7 +3553,7 @@ interface TabPanelProps extends GenericProps {
3168
3553
  */
3169
3554
  declare const TabPanel: Comp<TabPanelProps, HTMLDivElement>;
3170
3555
 
3171
- interface TextProps extends TextProps$1, GenericProps {
3556
+ interface TextProps extends ReactToJSX<TextProps$1>, GenericProps {
3172
3557
  }
3173
3558
  /**
3174
3559
  * Text component.
@@ -3179,11 +3564,79 @@ interface TextProps extends TextProps$1, GenericProps {
3179
3564
  */
3180
3565
  declare const Text: Comp<TextProps, HTMLElement>;
3181
3566
 
3567
+ /**
3568
+ * Defines the props of the component.
3569
+ */
3570
+ interface TextFieldProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
3571
+ /** Chip Group to be rendered before the main text input. */
3572
+ chips?: ReactNode;
3573
+ /** Props to pass to the clear button (minus those already set by the TextField props). If not specified, the button won't be displayed. */
3574
+ clearButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
3575
+ /** Error message. */
3576
+ error?: string | ReactNode;
3577
+ /** Whether we force the focus style or not. */
3578
+ forceFocusStyle?: boolean;
3579
+ /** Whether the text field is displayed with error style or not. */
3580
+ hasError?: boolean;
3581
+ /** Additional element to put at the end of the text field. */
3582
+ afterElement?: ReactNode;
3583
+ /** Helper text. */
3584
+ helper?: string | ReactNode;
3585
+ /** Icon (SVG path). */
3586
+ icon?: string;
3587
+ /** Native input id property (generated if not provided to link the label element). */
3588
+ id?: string;
3589
+ /** Reference to the <input> or <textarea> element. */
3590
+ inputRef?: Ref<HTMLInputElement | HTMLTextAreaElement>;
3591
+ /** Whether the component is disabled or not. */
3592
+ isDisabled?: boolean;
3593
+ /** Whether the component is required or not. */
3594
+ isRequired?: boolean;
3595
+ /** Whether the text field is displayed with valid style or not. */
3596
+ isValid?: boolean;
3597
+ /** Label text. */
3598
+ label?: string;
3599
+ /** Additional label props. */
3600
+ labelProps?: InputLabelProps;
3601
+ /** Max string length the input accepts (constrains the input and displays a character counter). */
3602
+ maxLength?: number;
3603
+ /** Minimum number of rows displayed in multiline mode (requires `multiline` to be enabled). */
3604
+ minimumRows?: number;
3605
+ /** Whether the text field is a textarea or an input. */
3606
+ multiline?: boolean;
3607
+ /** Native input name property. */
3608
+ name?: string;
3609
+ /** Placeholder text. */
3610
+ placeholder?: string;
3611
+ /** Reference to the wrapper. */
3612
+ textFieldRef?: Ref<HTMLDivElement>;
3613
+ /** Native input type (only when `multiline` is disabled). */
3614
+ type?: React.ComponentProps<'input'>['type'];
3615
+ /** Value. */
3616
+ value?: string;
3617
+ /** On blur callback. */
3618
+ onBlur?(event: React.FocusEvent): void;
3619
+ /** On change callback. */
3620
+ onChange(value: string, name?: string, event?: SyntheticEvent): void;
3621
+ /** On clear callback. */
3622
+ onClear?(event?: SyntheticEvent): void;
3623
+ /** On focus callback. */
3624
+ onFocus?(event: React.FocusEvent): void;
3625
+ }
3626
+ /**
3627
+ * TextField component.
3628
+ *
3629
+ * @param props Component props.
3630
+ * @param ref Component ref.
3631
+ * @return React element.
3632
+ */
3633
+ declare const TextField: Comp<TextFieldProps, HTMLDivElement>;
3634
+
3182
3635
  type NativeInputProps = Omit<ComponentProps<'input'>, 'value' | 'onChange'>;
3183
3636
  /**
3184
3637
  * Defines the props of the component.
3185
3638
  */
3186
- interface RawInputTextProps extends NativeInputProps, HasTheme, HasClassName$1 {
3639
+ interface RawInputTextProps extends NativeInputProps, HasTheme$1, HasClassName$1 {
3187
3640
  value?: string;
3188
3641
  onChange?: (value: string, name?: string, event?: SyntheticEvent) => void;
3189
3642
  }
@@ -3197,7 +3650,7 @@ type NativeTextareaProps = ComponentProps<'textarea'>;
3197
3650
  /**
3198
3651
  * Defines the props of the component.
3199
3652
  */
3200
- interface RawInputTextareaProps extends Omit<NativeTextareaProps, 'value' | 'onChange'>, HasTheme, HasClassName$1 {
3653
+ interface RawInputTextareaProps extends Omit<NativeTextareaProps, 'value' | 'onChange'>, HasTheme$1, HasClassName$1 {
3201
3654
  minimumRows?: number;
3202
3655
  value?: string;
3203
3656
  onChange?: (value: string, name?: string, event?: SyntheticEvent) => void;
@@ -3227,7 +3680,7 @@ interface ToolbarProps$1 extends HasClassName {
3227
3680
  /**
3228
3681
  * Defines the props of the component.
3229
3682
  */
3230
- interface ToolbarProps extends GenericProps, ToolbarProps$1 {
3683
+ interface ToolbarProps extends GenericProps, ReactToJSX<ToolbarProps$1> {
3231
3684
  /** After content (placed after the label). */
3232
3685
  after?: ReactNode;
3233
3686
  /** Before content (placed before the label). */
@@ -3244,6 +3697,36 @@ interface ToolbarProps extends GenericProps, ToolbarProps$1 {
3244
3697
  */
3245
3698
  declare const Toolbar: Comp<ToolbarProps, HTMLDivElement>;
3246
3699
 
3700
+ declare const ARIA_LINK_MODES: readonly ["aria-describedby", "aria-labelledby"];
3701
+
3702
+ /** Position of the tooltip relative to the anchor element. */
3703
+ type TooltipPlacement = Extract<Placement, 'top' | 'right' | 'bottom' | 'left'>;
3704
+ /**
3705
+ * Defines the props of the component.
3706
+ */
3707
+ interface TooltipProps extends GenericProps, HasCloseMode {
3708
+ /** Anchor (element on which we activate the tooltip). */
3709
+ children: ReactNode;
3710
+ /** Delay (in ms) before closing the tooltip. */
3711
+ delay?: number;
3712
+ /** Whether the tooltip is displayed even without the mouse hovering the anchor. */
3713
+ forceOpen?: boolean;
3714
+ /** Label text. */
3715
+ label?: string | null | false;
3716
+ /** Placement of the tooltip relative to the anchor. */
3717
+ placement?: TooltipPlacement;
3718
+ /** Choose how the tooltip text should link to the anchor */
3719
+ ariaLinkMode?: (typeof ARIA_LINK_MODES)[number];
3720
+ }
3721
+ /**
3722
+ * Tooltip component.
3723
+ *
3724
+ * @param props Component props.
3725
+ * @param ref Component ref.
3726
+ * @return React element.
3727
+ */
3728
+ declare const Tooltip: Comp<TooltipProps, HTMLDivElement>;
3729
+
3247
3730
  /**
3248
3731
  * Uploader variants.
3249
3732
  */
@@ -3256,7 +3739,7 @@ type UploaderVariant = ValueOf$1<typeof UploaderVariant>;
3256
3739
  /**
3257
3740
  * Uploader sizes.
3258
3741
  */
3259
- type UploaderSize = Extract<Size, 'xl' | 'xxl'>;
3742
+ type UploaderSize = Extract<Size$1, 'xl' | 'xxl'>;
3260
3743
  /**
3261
3744
  * Extend native HTML input props with specialized `onChange` providing the a `File` array.
3262
3745
  */
@@ -3266,9 +3749,9 @@ interface FileInputProps extends Omit<React__default.ComponentProps<'input'>, 'o
3266
3749
  /**
3267
3750
  * Defines the props of the component.
3268
3751
  */
3269
- interface UploaderProps extends GenericProps, HasTheme, HasAriaDisabled$1 {
3752
+ interface UploaderProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
3270
3753
  /** Image aspect ratio. */
3271
- aspectRatio?: AspectRatio;
3754
+ aspectRatio?: AspectRatio$1;
3272
3755
  /** Icon (SVG path). */
3273
3756
  icon?: string;
3274
3757
  /** Disabled state */
@@ -3296,11 +3779,11 @@ declare const Uploader: Comp<UploaderProps, HTMLElement>;
3296
3779
  /**
3297
3780
  * User block sizes.
3298
3781
  */
3299
- type UserBlockSize = Extract<Size, 'xs' | 's' | 'm' | 'l'>;
3782
+ type UserBlockSize = Extract<Size$1, 'xs' | 's' | 'm' | 'l'>;
3300
3783
  /**
3301
3784
  * Defines the props of the component.
3302
3785
  */
3303
- interface UserBlockProps extends GenericProps, HasTheme {
3786
+ interface UserBlockProps extends GenericProps, HasTheme$1 {
3304
3787
  /** Props to pass to the avatar. */
3305
3788
  avatarProps?: Omit<AvatarProps, 'alt'>;
3306
3789
  /** Additional fields used to describe the user. */
@@ -3341,7 +3824,7 @@ interface UserBlockProps extends GenericProps, HasTheme {
3341
3824
  */
3342
3825
  declare const UserBlock: Comp<UserBlockProps, HTMLDivElement>;
3343
3826
 
3344
- type ThemeContextValue = Theme | undefined;
3827
+ type ThemeContextValue = Theme$1 | undefined;
3345
3828
  /** Provide a theme context to all children. */
3346
3829
  declare const ThemeProvider: React__default.FC<{
3347
3830
  value: ThemeContextValue;
@@ -3350,5 +3833,5 @@ declare const ThemeProvider: React__default.FC<{
3350
3833
  /** Get the theme in the current context. */
3351
3834
  declare function useTheme(): ThemeContextValue;
3352
3835
 
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 };
3836
+ 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 };
3837
+ 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 };