@lumx/react 4.3.2-alpha.9 → 4.4.0

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,12 +1,11 @@
1
- import { Kind as Kind$1, HorizontalAlignment as HorizontalAlignment$1, Size as Size$1, ColorPalette as ColorPalette$1, Theme as Theme$1, GenericProps as GenericProps$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';
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 as HasTheme$1, ValueOf as ValueOf$1, HasAriaDisabled as HasAriaDisabled$1, PartialBy, 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 as GenericProps$1, 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, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, AriaAttributes, ReactText, RefObject, CSSProperties, ImgHTMLAttributes, SetStateAction, Key, ElementType, ComponentProps } from 'react';
7
+ import React__default, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, RefObject, CSSProperties, ImgHTMLAttributes, AriaAttributes as AriaAttributes$1, SetStateAction, Key, ElementType, ComponentProps } from 'react';
8
8
  import * as react_jsx_runtime from 'react/jsx-runtime';
9
- import { Selector } from '@lumx/core/js/types/Selector';
10
9
 
11
10
  /** LumX Component Type. */
12
11
  type Comp<P, T = HTMLElement> = {
@@ -40,7 +39,6 @@ interface AlertDialogProps extends Omit<DialogProps, 'header' | 'footer'> {
40
39
  title?: string;
41
40
  /** Props forwarded to the confirm button */
42
41
  confirmProps: ButtonProps & {
43
- onClick(): void;
44
42
  label: string;
45
43
  };
46
44
  /**
@@ -48,7 +46,6 @@ interface AlertDialogProps extends Omit<DialogProps, 'header' | 'footer'> {
48
46
  * Will not render a cancel button if undefined.
49
47
  */
50
48
  cancelProps?: ButtonProps & {
51
- onClick(): void;
52
49
  label: string;
53
50
  };
54
51
  /**
@@ -70,7 +67,7 @@ declare const AlertDialog: Comp<AlertDialogProps, HTMLDivElement>;
70
67
  /**
71
68
  * Defines the props of the component.
72
69
  */
73
- interface AutocompleteProps extends GenericProps, HasTheme$1 {
70
+ interface AutocompleteProps extends GenericProps$1, HasTheme$1 {
74
71
  /**
75
72
  * Whether the suggestions list should display anchored to the input or to the wrapper.
76
73
  * @see {@link DropdownProps#anchorToInput}
@@ -263,7 +260,7 @@ type AvatarSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>
263
260
  /**
264
261
  * Defines the props of the component.
265
262
  */
266
- interface AvatarProps extends GenericProps, HasTheme$1 {
263
+ interface AvatarProps extends GenericProps$1, HasTheme$1 {
267
264
  /** Action toolbar content. */
268
265
  actions?: ReactNode;
269
266
  /** Image alternative text. */
@@ -495,6 +492,16 @@ interface HasTheme {
495
492
  theme?: Theme;
496
493
  }
497
494
 
495
+ /**
496
+ * Define a generic props types.
497
+ */
498
+ interface GenericProps extends HasClassName {
499
+ /**
500
+ * Any prop (particularly any supported prop for a HTML element).
501
+ */
502
+ [propName: string]: any;
503
+ }
504
+
498
505
  /**
499
506
  * Framework-agnostic type for renderable content.
500
507
  * Vue components should cast VNode[] from slots to this type.
@@ -512,6 +519,12 @@ type TextElement = 'span' | 'p' | HeadingElement;
512
519
  /** Get types of the values of a record. */
513
520
  type ValueOf<T extends Record<any, any>> = T[keyof T];
514
521
 
522
+ /** Transform a string literal into kebab case */
523
+ type KebabCase<S> = S extends `${infer C}${infer T}` ? T extends Uncapitalize<T> ? `${Uncapitalize<C>}${KebabCase<T>}` : `${Uncapitalize<C>}-${KebabCase<T>}` : S;
524
+
525
+ /** Transform the component name into the lumx class name. */
526
+ type LumxClassName<TComponentName extends string> = `lumx-${KebabCase<TComponentName>}`;
527
+
515
528
  type CommonRef = any;
516
529
 
517
530
  type Booleanish = boolean | 'true' | 'false';
@@ -535,6 +548,47 @@ interface HasDisabled {
535
548
  disabled?: boolean;
536
549
  }
537
550
 
551
+ /**
552
+ * ARIA attributes type for components.
553
+ * All attributes are optional.
554
+ *
555
+ * This is a custom interface containing only the ARIA attributes
556
+ * actually used in the @lumx/core components, avoiding dependency on React types.
557
+ */
558
+ interface AriaAttributes {
559
+ /** Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. */
560
+ 'aria-expanded'?: boolean | 'true' | 'false';
561
+ /** Indicates the availability and type of interactive popup element that can be triggered by the element. */
562
+ 'aria-haspopup'?: boolean | 'false' | 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
563
+ /** Indicates the current "pressed" state of toggle buttons. */
564
+ 'aria-pressed'?: boolean | 'false' | 'mixed' | 'true';
565
+ /** Defines a string value that labels the current element. */
566
+ 'aria-label'?: string;
567
+ /** Identifies the element (or elements) that labels the current element. */
568
+ 'aria-labelledby'?: string;
569
+ /** Identifies the element (or elements) that describes the object. */
570
+ 'aria-describedby'?: string;
571
+ /** Indicates whether the element is exposed to an accessibility API. */
572
+ 'aria-hidden'?: boolean | 'true' | 'false';
573
+ /** Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable. */
574
+ 'aria-disabled'?: boolean | 'true' | 'false';
575
+ /** Indicates the current "checked" state of checkboxes, radio buttons, and other widgets. */
576
+ 'aria-checked'?: boolean | 'false' | 'mixed' | 'true';
577
+ /** Indicates whether items in a table or grid are sorted in ascending or descending order. */
578
+ 'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other';
579
+ }
580
+
581
+ type FunctionSelector<TObject, TValue> = (o: TObject) => TValue;
582
+ type FieldSelector<TObject, TValue> = keyof {
583
+ [TKey in keyof TObject as TObject[TKey] extends TValue ? TKey : never]: TObject[TKey];
584
+ };
585
+ /**
586
+ * Value selector on an object
587
+ * - either via an object key
588
+ * - or a selector function
589
+ */
590
+ type Selector<TObject, TValue = string> = FieldSelector<TObject, TValue> | FunctionSelector<TObject, TValue>;
591
+
538
592
  /**
539
593
  * Defines the props of the component.
540
594
  */
@@ -547,10 +601,19 @@ interface BadgeProps$1 extends HasClassName {
547
601
  ref?: CommonRef;
548
602
  }
549
603
 
604
+ /**
605
+ * Props interface for components wrapped with ReactToJSX.
606
+ * It omits JSX-specific props like `children`
607
+ *
608
+ * @template Props - The base props type
609
+ * @template OmitProps - Additional props to omit beyond the defaults (children, className, ref)
610
+ */
611
+ type ReactToJSX<Props, OmitProps extends keyof Props = never> = Omit<Props, PropsToOverride | OmitProps>;
612
+
550
613
  /**
551
614
  * Defines the props of the component.
552
615
  */
553
- interface BadgeProps extends Omit<BadgeProps$1, 'children'>, GenericProps {
616
+ interface BadgeProps extends ReactToJSX<BadgeProps$1>, GenericProps$1 {
554
617
  /** Badge content. */
555
618
  children?: ReactNode;
556
619
  }
@@ -572,7 +635,7 @@ interface BadgeWrapperProps$1 extends HasClassName {
572
635
  ref?: CommonRef;
573
636
  }
574
637
 
575
- interface BadgeWrapperProps extends GenericProps, Omit<BadgeWrapperProps$1, 'children' | 'badge'> {
638
+ interface BadgeWrapperProps extends GenericProps$1, ReactToJSX<BadgeWrapperProps$1, 'children' | 'badge'> {
576
639
  /** Badge element to display */
577
640
  badge: ReactElement;
578
641
  /** Content to wrap with badge */
@@ -582,7 +645,8 @@ declare const BadgeWrapper: Comp<BadgeWrapperProps, HTMLDivElement>;
582
645
 
583
646
  interface BaseClickableProps extends HasDisabled, HasAriaDisabled {
584
647
  children?: JSXElement;
585
- onClick?: (event?: any) => void;
648
+ handleClick?: (event?: any) => void;
649
+ handleKeyPress?: (event?: any) => void;
586
650
  ref?: CommonRef;
587
651
  }
588
652
 
@@ -649,12 +713,20 @@ interface ButtonProps$1 extends BaseButtonProps {
649
713
  * Component display name.
650
714
  */
651
715
  declare const COMPONENT_NAME = "Button";
716
+ /**
717
+ * Component default class name and class prefix.
718
+ */
719
+ declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
652
720
  /**
653
721
  * Component default props.
654
722
  */
655
723
  declare const DEFAULT_PROPS: Partial<ButtonProps$1>;
656
724
 
657
- interface ButtonProps extends GenericProps, ButtonProps$1 {
725
+ interface ButtonProps extends GenericProps$1, ReactToJSX<ButtonProps$1> {
726
+ /** callback for clicking on the button */
727
+ onClick?: (event?: React.MouseEvent) => void;
728
+ /** callback for pressing a key on the button */
729
+ onKeyPress?: (event?: React.KeyboardEvent) => void;
658
730
  }
659
731
  /**
660
732
  * Button component.
@@ -685,7 +757,7 @@ interface IconButtonProps$1 extends BaseButtonProps {
685
757
  title?: string;
686
758
  }
687
759
 
688
- interface IconButtonProps extends GenericProps, Omit<IconButtonProps$1, 'title' | 'children'> {
760
+ interface IconButtonProps extends GenericProps$1, ReactToJSX<IconButtonProps$1, 'title' | 'children'> {
689
761
  /**
690
762
  * Props to pass to the tooltip.
691
763
  * If undefined or if tooltipProps.label is undefined, the label prop will be used as tooltip label.
@@ -693,6 +765,10 @@ interface IconButtonProps extends GenericProps, Omit<IconButtonProps$1, 'title'
693
765
  tooltipProps?: Partial<TooltipProps>;
694
766
  /** Whether the tooltip should be hidden or not. */
695
767
  hideTooltip?: boolean;
768
+ /** callback for clicking on the button */
769
+ onClick?: (event?: React.MouseEvent) => void;
770
+ /** callback for pressing a key on the button */
771
+ onKeyPress?: (event?: React.KeyboardEvent) => void;
696
772
  }
697
773
  /**
698
774
  * IconButton component.
@@ -715,7 +791,7 @@ interface ButtonGroupProps$1 extends HasClassName {
715
791
  ref?: CommonRef;
716
792
  }
717
793
 
718
- interface ButtonGroupProps extends GenericProps, ButtonGroupProps$1 {
794
+ interface ButtonGroupProps extends GenericProps$1, ReactToJSX<ButtonGroupProps$1> {
719
795
  }
720
796
  /**
721
797
  * ButtonGroup component.
@@ -747,7 +823,7 @@ interface CheckboxProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDi
747
823
  /** Native input id. */
748
824
  inputId: string;
749
825
  /** On change callback. */
750
- onChange?(isChecked: boolean, value?: string, name?: string, event?: any): void;
826
+ handleChange?(isChecked: boolean, value?: string, name?: string, event?: any): void;
751
827
  /** reference to the root element */
752
828
  ref?: CommonRef;
753
829
  }
@@ -755,7 +831,9 @@ interface CheckboxProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDi
755
831
  /**
756
832
  * Defines the props of the component.
757
833
  */
758
- interface CheckboxProps extends GenericProps, Omit<CheckboxProps$1, 'inputId'> {
834
+ interface CheckboxProps extends GenericProps$1, ReactToJSX<CheckboxProps$1, 'inputId'> {
835
+ /** On change callback. */
836
+ onChange?(isChecked: boolean, value?: string, name?: string, event?: React__default.ChangeEvent): void;
759
837
  }
760
838
  /**
761
839
  * Checkbox component.
@@ -773,7 +851,7 @@ type ChipSize = Extract<Size$1, 's' | 'm'>;
773
851
  /**
774
852
  * Defines the props of the component.
775
853
  */
776
- interface ChipProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
854
+ interface ChipProps extends GenericProps$1, HasTheme$1, HasAriaDisabled$1 {
777
855
  /** A component to be rendered after the content. */
778
856
  after?: ReactNode;
779
857
  /** A component to be rendered before the content. */
@@ -819,7 +897,7 @@ type useChipGroupNavigationType<C = any> = (chips: C[], onChipDeleted: (chip: C)
819
897
  /**
820
898
  * Defines the props of the component.
821
899
  */
822
- interface ChipGroupProps extends GenericProps {
900
+ interface ChipGroupProps extends GenericProps$1 {
823
901
  /**
824
902
  * Chip horizontal alignment.
825
903
  * @deprecated
@@ -832,7 +910,7 @@ declare const ChipGroup: Comp<ChipGroupProps, HTMLDivElement> & {
832
910
  useChipGroupNavigation: useChipGroupNavigationType<any>;
833
911
  };
834
912
 
835
- interface SelectionChipGroupProps<O> extends GenericProps {
913
+ interface SelectionChipGroupProps<O> extends GenericProps$1 {
836
914
  /**
837
915
  * Option object id selector (either the property name or a function to get the id)
838
916
  */
@@ -888,503 +966,6 @@ interface SelectionChipGroupProps<O> extends GenericProps {
888
966
  */
889
967
  declare const SelectionChipGroup: <O>({ onChange, value, getOptionId, getOptionName, inputRef, inputLabel, renderChip, theme, isDisabled, chipTooltipLabel, label, ...forwardedProps }: SelectionChipGroupProps<O>) => react_jsx_runtime.JSX.Element;
890
968
 
891
- interface ComboboxButtonProps extends GenericProps {
892
- /**
893
- * Label of the combobox button trigger.
894
- */
895
- label: string;
896
- /**
897
- * Controls how the `label` is displayed:
898
- * - `show-selection` (default): Displays the current selection as the label, or falls back to the provided `label`
899
- * if there is no selection. The `label` will still appear as a tooltip in this mode.
900
- * - `show-label`: Always displays the provided `label` as the visual label.
901
- * - `show-tooltip`: Always displays the provided `label` as the visual a tooltip.
902
- * (useful for IconButton combobox)
903
- * In all cases, the given `label` is the ARIA label in use
904
- */
905
- labelDisplayMode?: 'show-selection' | 'show-label' | 'show-tooltip';
906
- /**
907
- * Focus event handler
908
- */
909
- onFocus?: React__default.FocusEventHandler;
910
- /**
911
- * Blur event handler
912
- */
913
- onBlur?: React__default.FocusEventHandler;
914
- /** Customize the root element. */
915
- as?: React__default.ElementType;
916
- }
917
- /**
918
- * Combobox button trigger.
919
- *
920
- * @family Combobox
921
- */
922
- declare const ComboboxButton: Comp<ComboboxButtonProps, HTMLElement>;
923
-
924
- /** Combobox option divider */
925
- declare function ComboboxDivider(): react_jsx_runtime.JSX.Element;
926
-
927
- /**
928
- * All TextField props that are extended.
929
- * We can't use "Omit" here as it is not compatible with the "GenericProps" type from the DS,
930
- * meaning we would loose all props.
931
- *
932
- */
933
- type ExtendedTextFieldProps = PartialBy<Pick<TextFieldProps, 'ariaLabel' | 'chips' | 'error' | 'forceFocusStyle' | 'hasError' | 'afterElement' | 'helper' | 'icon' | 'inputRef' | 'textFieldRef' | 'isDisabled' | 'className' | 'isRequired' | 'isValid' | 'label' | 'maxLength' | 'minimumRows' | 'multiline' | 'id' | 'name' | 'placeholder' | 'onBlur' | 'onClear' | 'onKeyDown' | 'onFocus' | 'theme'>, 'ariaLabel' | 'onKeyDown'>;
934
- type ComboboxInputProps = ExtendedTextFieldProps & {
935
- /** Whether the toggle button should be hidden */
936
- hideToggle?: boolean;
937
- /** Activate the clear button */
938
- hasClearButton?: boolean;
939
- /** Clear button forwarded props */
940
- clearButtonProps?: Omit<TextFieldProps['clearButtonProps'], 'label'>;
941
- /** Make input read only */
942
- readOnly?: boolean;
943
- };
944
- /**
945
- * Combobox input trigger.
946
- *
947
- * @family Combobox
948
- */
949
- declare const ComboboxInput: ({ hideToggle, inputRef, textFieldRef, afterElement, onFocus, onBlur, onKeyDown, clearButtonProps, hasClearButton, theme, ...textFieldProps }: ComboboxInputProps) => react_jsx_runtime.JSX.Element;
950
-
951
- /**
952
- * The source of the combobox option selection
953
- * It could either be on click / touch or keyboard selection
954
- */
955
- type ComboboxOptionSelectEventSource = 'keyboard' | 'click';
956
- type ComboboxSelectionType = 'single' | 'multiple';
957
- type BaseLoadingStatus = 'loading' | 'loadingMore' | 'idle' | 'error' | 'debouncing' | 'filtering' | 'empty';
958
- /**
959
- * Options related types
960
- */
961
- /** All possible values a combobox option can have */
962
- type BaseComboboxOptionProps<O = any> = {
963
- /**
964
- * A unique id to track the option
965
- */
966
- id: string;
967
- /**
968
- * Whether the current input value should filter this option.
969
- */
970
- filterFromInput?: boolean;
971
- /**
972
- * Callback to call when the option is selected.
973
- * This should only be used to add custom actions on options.
974
- * For most cases, the "onSelect" on the Combobox root component should be enough.
975
- */
976
- onSelect?: (option: O, eventSource?: ComboboxOptionSelectEventSource) => void;
977
- /**
978
- * Additional data to link to the option. This can be useful to retrieve with `onSelect`.
979
- */
980
- data?: O;
981
- /**
982
- * Whether the option is disabled
983
- */
984
- isDisabled?: boolean;
985
- /**
986
- * The components to use to visually customize options.
987
- * ! Options must not have interactive elements.
988
- * ! If you need additional actions, you might need to create custom options and search how to
989
- * ! make them accessible.
990
- */
991
- children?: ReactNode;
992
- /**
993
- * The text value the option has.
994
- * This is the value used to filter the options by when manual filtering is disabled
995
- * and that will be used as input value when an option is selected
996
- */
997
- textValue?: string;
998
- /**
999
- * Element to display before the content of the option.
1000
- * ! Options must not have interactive elements.
1001
- * ! If you need additional actions, you might need to create custom options and search how to
1002
- * ! make them accessible.
1003
- */
1004
- before?: ReactNode;
1005
- /**
1006
- * Element to display after the content of the option.
1007
- * ! Options must not have interactive elements.
1008
- * ! If you need additional actions, you might need to create custom options and search how to
1009
- * ! make them accessible.
1010
- */
1011
- after?: ReactNode;
1012
- /**
1013
- * Size of the list item.
1014
- * Default to tiny
1015
- */
1016
- size?: ListItemSize;
1017
- /**
1018
- * Fill to activate a tooltip on mouse over
1019
- */
1020
- tooltipProps?: Partial<TooltipProps>;
1021
- };
1022
- /**
1023
- * Props for when an option has no children.
1024
- * In these case, we need at least the text value to know what to display
1025
- * */
1026
- type TextValueOnly<O = any> = BaseComboboxOptionProps<O> & {
1027
- children?: never;
1028
- textValue: string;
1029
- };
1030
- /**
1031
- * Props for when an option has a react element as string
1032
- * In that case, we can use the children as the textValue without having
1033
- * to set a manual props.
1034
- * The props is still available to have a text value different than the displayed value.
1035
- */
1036
- type StringOption<O = any> = BaseComboboxOptionProps<O> & {
1037
- children: ReactText;
1038
- textValue?: string;
1039
- };
1040
- /**
1041
- * Props for when an option has a react element as children
1042
- * In that case, we cannot know what the actual value of the
1043
- * option is, so the `textValue` prop has to be set.
1044
- */
1045
- type NodeOption<O = any> = BaseComboboxOptionProps<O> & {
1046
- children: Exclude<ReactNode, ReactText>;
1047
- textValue: string;
1048
- };
1049
- /** Props for the ComboboxOption component */
1050
- type ComboboxOptionProps<O = any> = TextValueOnly<O> | StringOption<O> | NodeOption<O>;
1051
- /** Shared data between all combobox option types. */
1052
- interface BaseRegisteredComboboxOption {
1053
- id: string;
1054
- /** The id that was generated for this option */
1055
- generatedId: string;
1056
- /** Whether the "option" is an action */
1057
- isAction?: boolean;
1058
- /** Whether the "option" is disabled */
1059
- isDisabled?: boolean;
1060
- }
1061
- /** Combobox value */
1062
- interface RegisteredComboboxOptionValue<O = any> extends BaseRegisteredComboboxOption, Pick<ComboboxOptionProps<O>, 'data' | 'filterFromInput' | 'textValue' | 'onSelect'> {
1063
- /** The section the option is a child of. */
1064
- sectionId?: string;
1065
- /** Whether the "option" is an action */
1066
- isAction?: never;
1067
- }
1068
- type OnComboboxSelect<O = any> = (option: RegisteredComboboxOptionValue<O>) => void;
1069
- type OnComboboxInputChange = TextFieldProps['onChange'];
1070
- type ComboboxTranslations = {
1071
- clearLabel: string;
1072
- showSuggestionsLabel: string;
1073
- loadingLabel: string;
1074
- noResultsForInputLabel: (input?: string) => string;
1075
- serviceUnavailableLabel: string;
1076
- tryReloadLabel: string;
1077
- nbOptionsLabel: (options: number) => string;
1078
- };
1079
- /** Props for the main combobox component. */
1080
- type ComboboxProps<O = any> = {
1081
- /**
1082
- * HTML id
1083
- */
1084
- id?: string;
1085
- /**
1086
- * The current option id to set as selected.
1087
- * If omitted, the local state will be used instead;
1088
- */
1089
- selectedIds?: Array<string | number>;
1090
- /**
1091
- * The current value for the combobox input.
1092
- * If omitted, the input is controlled locally */
1093
- inputValue?: string;
1094
- /**
1095
- * The default value to set on the input.
1096
- * Use this if you want to initialize the input with a value and not control it
1097
- */
1098
- defaultInputValue?: string;
1099
- /**
1100
- * Whether the options should be automatically filtered or not.
1101
- * By default, the combobox will try to filter the options from the current input value
1102
- * using a "contains" strategy.
1103
- * If this is `false`, the option will not be automatically filtered and must be manually filtered by the parent.
1104
- * Useful for asynchronous comboboxes.
1105
- */
1106
- autoFilter: boolean;
1107
- /**
1108
- * Whether the combobox should open on focus
1109
- */
1110
- openOnFocus?: boolean;
1111
- /**
1112
- * Whether the combobox should open on click
1113
- */
1114
- openOnClick?: boolean;
1115
- /**
1116
- * Status of the combobox
1117
- */
1118
- status?: BaseLoadingStatus;
1119
- /**
1120
- * Callback when the input changes.
1121
- */
1122
- onInputChange?: OnComboboxInputChange;
1123
- /**
1124
- * Callback for when an option is selected
1125
- */
1126
- onSelect?: OnComboboxSelect<O>;
1127
- /**
1128
- * Callback called when the combobox opens
1129
- */
1130
- onOpen?: (options: {
1131
- currentValue?: string;
1132
- manual: boolean;
1133
- }) => void;
1134
- /**
1135
- * The combobox components to render.
1136
- * Must be one of the exposed components (Combobox.Input, Combobox.ListBox etc...)
1137
- */
1138
- children: ReactNode;
1139
- /**
1140
- * The combobox can have a specific selection type:
1141
- * - Single: only one item is selected
1142
- * - Multiple: several items can be selected (this impacts the combobox list, which will now not close when selectiong an option)
1143
- */
1144
- selectionType?: ComboboxSelectionType;
1145
- /**
1146
- * Whether the error state should be displayed when the status is in error.
1147
- * @default `true` if `status` is defined
1148
- */
1149
- showErrorState?: boolean;
1150
- /**
1151
- * Whether the empty state should be displayed when there is no results.
1152
- * @default `true` if `autoFilter=false`
1153
- */
1154
- showEmptyState?: boolean;
1155
- /** custom className */
1156
- className?: string;
1157
- /** translations to be used across the combobox */
1158
- translations: ComboboxTranslations;
1159
- };
1160
-
1161
- interface ComboboxOptionSkeletonProps {
1162
- className?: string;
1163
- index?: number;
1164
- children?: ReactNode | ((options: {
1165
- index?: number;
1166
- }) => ReactNode);
1167
- before?: ComboboxOptionProps['before'];
1168
- after?: ComboboxOptionProps['after'];
1169
- size?: ComboboxOptionProps['size'];
1170
- }
1171
- /**
1172
- * Skeleton for a combobox option.
1173
- * A typography skeleton is rendered by default but can be overridden by passing children.
1174
- */
1175
- declare const ComboboxOptionSkeleton: ({ className, index, before, after, size, children, }: ComboboxOptionSkeletonProps) => react_jsx_runtime.JSX.Element;
1176
-
1177
- interface ComboboxListSkeletonProps {
1178
- isLoadingMore?: boolean;
1179
- children?: ComboboxOptionSkeletonProps['children'];
1180
- }
1181
-
1182
- interface ComboboxListBoxProps extends GenericProps$1, React__default.ComponentProps<'ul'> {
1183
- /** Options display in the combobox */
1184
- children?: ReactNode;
1185
- /**
1186
- * Component to use as skeleton for each option instead of the default one.
1187
- * Can either be a react node or a component that receives the index as prop
1188
- */
1189
- renderItemSkeleton?: ComboboxListSkeletonProps['children'];
1190
- /** Label for the list */
1191
- label?: string;
1192
- /** Props of the popover element. */
1193
- popoverProps?: Partial<PopoverProps>;
1194
- /**
1195
- * An element to display at the bottom of the listbox.
1196
- * No interactive element must be set here as they will not be accessible.
1197
- */
1198
- footer?: ReactNode;
1199
- /** List ref */
1200
- listRef?: React__default.Ref<HTMLElement>;
1201
- }
1202
- /**
1203
- * The listbox containing the combobox's options.
1204
- *
1205
- * @family Combobox
1206
- * @param ComboboxListBoxProps
1207
- * @returns ComboboxListBox
1208
- */
1209
- declare const ComboboxListBox: ({ children, renderItemSkeleton, label, popoverProps, footer, listRef, ...forwardedProps }: ComboboxListBoxProps) => react_jsx_runtime.JSX.Element;
1210
-
1211
- declare const LUMX_CLASSNAME = "lumx-list-item";
1212
- /**
1213
- * Props for ComboboxOption with additional generic properties.
1214
- */
1215
- interface ComboboxOptionComponentProps<O extends object = any> extends GenericProps, Omit<ComboboxOptionProps<O>, 'as'> {
1216
- /** Customize the root element. */
1217
- as?: React__default.ElementType;
1218
- }
1219
- /**
1220
- * Option to set within a combobox list.
1221
- *
1222
- * @family Combobox
1223
- * @param ComboboxOptionProps
1224
- * @returns ComboboxOption
1225
- */
1226
- declare const ComboboxOption: Comp<ComboboxOptionComponentProps<any>, HTMLElement>;
1227
-
1228
- interface ComboboxOptionActionProps extends GenericProps {
1229
- /** Should the action be set as disabled */
1230
- isDisabled?: boolean;
1231
- /** Action to trigger when the action is selected */
1232
- onClick: () => void;
1233
- /** Customize the root element. */
1234
- as?: React__default.ElementType;
1235
- }
1236
- /**
1237
- * Action to set on a Combobox Option.
1238
- * Allows to add an interactive element that
1239
- * can be navigated to and triggered using the keyboard.
1240
- *
1241
- * Defaults as "button"
1242
- *
1243
- * @family Combobox
1244
- * @param ComboboxOptionActionProps
1245
- * @returns ComboboxOptionAction
1246
- */
1247
- declare const ComboboxOptionAction: (props: ComboboxOptionActionProps) => react_jsx_runtime.JSX.Element;
1248
-
1249
- interface ComboboxOptionMoreInfoProps {
1250
- buttonProps?: Partial<IconButtonProps>;
1251
- popoverProps?: PopoverProps;
1252
- onToggle?: (isOpen: boolean) => void;
1253
- children?: React__default.ReactNode;
1254
- }
1255
- /**
1256
- * Display more info on the option as a popover opening on mouse hover or keyboard nav
1257
- * Please consider using a simpler option description instead for better UX and a11y.
1258
- *
1259
- * @family Combobox
1260
- */
1261
- declare const ComboboxOptionMoreInfo: React__default.FC<ComboboxOptionMoreInfoProps>;
1262
-
1263
- interface ComboboxSectionProps {
1264
- /** Forwarded class name */
1265
- className?: string;
1266
- /** The title of the section */
1267
- title?: string;
1268
- /** Whether the section should be displayed as loading */
1269
- isLoading?: boolean;
1270
- /** Custom skeletons to use for loading state */
1271
- renderItemSkeleton?: ComboboxListSkeletonProps['children'];
1272
- /** Options to display */
1273
- children: ReactNode;
1274
- }
1275
- /**
1276
- * Section for options of a Combobox.
1277
- *
1278
- * @family Combobox
1279
- * @param ComboboxSectionProps
1280
- * @returns ComboboxSection
1281
- */
1282
- declare const ComboboxSection: ({ children, ...props }: ComboboxSectionProps) => react_jsx_runtime.JSX.Element;
1283
-
1284
- declare const SUB_COMPONENTS: {
1285
- /**
1286
- * Option to set within a combobox list.
1287
- *
1288
- * @family Combobox
1289
- * @param ComboboxOptionProps
1290
- * @returns ComboboxOption
1291
- */
1292
- readonly Option: Comp<ComboboxOptionComponentProps<any>, HTMLElement>;
1293
- /**
1294
- * Skeleton for a combobox option.
1295
- * A typography skeleton is rendered by default but can be overridden by passing children.
1296
- */
1297
- readonly OptionSkeleton: ({ className, index, before, after, size, children, }: ComboboxOptionSkeletonProps) => react_jsx_runtime.JSX.Element;
1298
- /**
1299
- * Section for options of a Combobox.
1300
- *
1301
- * @family Combobox
1302
- * @param ComboboxSectionProps
1303
- * @returns ComboboxSection
1304
- */
1305
- readonly Section: ({ children, ...props }: ComboboxSectionProps) => react_jsx_runtime.JSX.Element;
1306
- /**
1307
- * Combobox input trigger.
1308
- *
1309
- * @family Combobox
1310
- */
1311
- readonly Input: ({ hideToggle, inputRef, textFieldRef, afterElement, onFocus, onBlur, onKeyDown, clearButtonProps, hasClearButton, theme, ...textFieldProps }: ComboboxInputProps) => react_jsx_runtime.JSX.Element;
1312
- /**
1313
- * The listbox containing the combobox's options.
1314
- *
1315
- * @family Combobox
1316
- * @param ComboboxListBoxProps
1317
- * @returns ComboboxListBox
1318
- */
1319
- readonly List: ({ children, renderItemSkeleton, label, popoverProps, footer, listRef, ...forwardedProps }: ComboboxListBoxProps) => react_jsx_runtime.JSX.Element;
1320
- /**
1321
- * Combobox button trigger.
1322
- *
1323
- * @family Combobox
1324
- */
1325
- readonly Button: Comp<ComboboxButtonProps, HTMLElement>;
1326
- };
1327
- /**
1328
- *
1329
- * A Combobox is a combination of two components:
1330
- * * An input to enter the user's value
1331
- * * A popover with a list of suggestions to fill the value.
1332
- *
1333
- * These two components are included via the Combobox.Input and Combobox.ListBox components.
1334
- *
1335
- * In its simplest implementation the component will automatically filter the given options
1336
- * from the value of the input and fill the input with the textValue of the selected option.
1337
- *
1338
- * Props are available for more complex implementations.
1339
- *
1340
- * @family Combobox
1341
- * @param ComboboxProps
1342
- * @returns Combobox
1343
- */
1344
- declare const Combobox: (<O>({ id: htmlId, inputValue, defaultInputValue, autoFilter, openOnClick, openOnFocus, status, showEmptyState, showErrorState, selectedIds, onInputChange, onSelect, onOpen, children, selectionType, translations, }: ComboboxProps<O>) => react_jsx_runtime.JSX.Element) & {
1345
- /**
1346
- * Option to set within a combobox list.
1347
- *
1348
- * @family Combobox
1349
- * @param ComboboxOptionProps
1350
- * @returns ComboboxOption
1351
- */
1352
- readonly Option: Comp<ComboboxOptionComponentProps<any>, HTMLElement>;
1353
- /**
1354
- * Skeleton for a combobox option.
1355
- * A typography skeleton is rendered by default but can be overridden by passing children.
1356
- */
1357
- readonly OptionSkeleton: ({ className, index, before, after, size, children, }: ComboboxOptionSkeletonProps) => react_jsx_runtime.JSX.Element;
1358
- /**
1359
- * Section for options of a Combobox.
1360
- *
1361
- * @family Combobox
1362
- * @param ComboboxSectionProps
1363
- * @returns ComboboxSection
1364
- */
1365
- readonly Section: ({ children, ...props }: ComboboxSectionProps) => react_jsx_runtime.JSX.Element;
1366
- /**
1367
- * Combobox input trigger.
1368
- *
1369
- * @family Combobox
1370
- */
1371
- readonly Input: ({ hideToggle, inputRef, textFieldRef, afterElement, onFocus, onBlur, onKeyDown, clearButtonProps, hasClearButton, theme, ...textFieldProps }: ComboboxInputProps) => react_jsx_runtime.JSX.Element;
1372
- /**
1373
- * The listbox containing the combobox's options.
1374
- *
1375
- * @family Combobox
1376
- * @param ComboboxListBoxProps
1377
- * @returns ComboboxListBox
1378
- */
1379
- readonly List: ({ children, renderItemSkeleton, label, popoverProps, footer, listRef, ...forwardedProps }: ComboboxListBoxProps) => react_jsx_runtime.JSX.Element;
1380
- /**
1381
- * Combobox button trigger.
1382
- *
1383
- * @family Combobox
1384
- */
1385
- readonly Button: Comp<ComboboxButtonProps, HTMLElement>;
1386
- };
1387
-
1388
969
  /**
1389
970
  * Comment block variants.
1390
971
  */
@@ -1396,7 +977,7 @@ type CommentBlockVariant = ValueOf$1<typeof CommentBlockVariant>;
1396
977
  /**
1397
978
  * Defines the props of the component.
1398
979
  */
1399
- interface CommentBlockProps extends GenericProps, HasTheme$1 {
980
+ interface CommentBlockProps extends GenericProps$1, HasTheme$1 {
1400
981
  /** Action toolbar content. */
1401
982
  actions?: ReactNode;
1402
983
  /** Props to pass to the avatar. */
@@ -1449,7 +1030,7 @@ declare const CommentBlock: Comp<CommentBlockProps, HTMLDivElement>;
1449
1030
  /**
1450
1031
  * Defines the props of the component.
1451
1032
  */
1452
- interface DatePickerProps extends GenericProps {
1033
+ interface DatePickerProps extends GenericProps$1 {
1453
1034
  /** Default month. */
1454
1035
  defaultMonth?: Date;
1455
1036
  /** Locale (language or region) to use. */
@@ -1504,7 +1085,7 @@ declare const DatePickerControlled: Comp<DatePickerControlledProps, HTMLDivEleme
1504
1085
  /**
1505
1086
  * Defines the props of the component.
1506
1087
  */
1507
- interface DatePickerFieldProps extends Omit<TextFieldProps, 'value' | 'onChange'>, GenericProps {
1088
+ interface DatePickerFieldProps extends Omit<TextFieldProps, 'value' | 'onChange'>, GenericProps$1 {
1508
1089
  /** Default month. */
1509
1090
  defaultMonth?: Date;
1510
1091
  /** Locale (language or region) to use. */
@@ -1534,7 +1115,7 @@ declare const DatePickerField: Comp<DatePickerFieldProps, HTMLDivElement>;
1534
1115
  /**
1535
1116
  * Defines the props of the component.
1536
1117
  */
1537
- interface DialogProps extends GenericProps {
1118
+ interface DialogProps extends GenericProps$1 {
1538
1119
  /** Footer content. */
1539
1120
  footer?: ReactNode;
1540
1121
  /** Whether the divider between the dialog content and the footer is always displayed (instead of showing it on scroll). */
@@ -1564,7 +1145,7 @@ interface DialogProps extends GenericProps {
1564
1145
  /** Z-axis position. */
1565
1146
  zIndex?: number;
1566
1147
  /** Z-axis position. */
1567
- dialogProps?: GenericProps;
1148
+ dialogProps?: GenericProps$1;
1568
1149
  /** On close callback. */
1569
1150
  onClose?(): void;
1570
1151
  /** Callback called when the open animation starts and the close animation finishes. */
@@ -1595,7 +1176,7 @@ interface DividerProps$1 extends HasTheme, HasClassName {
1595
1176
  /**
1596
1177
  * Defines the props of the component.
1597
1178
  */
1598
- interface DividerProps extends GenericProps, DividerProps$1 {
1179
+ interface DividerProps extends GenericProps$1, ReactToJSX<DividerProps$1> {
1599
1180
  }
1600
1181
  /**
1601
1182
  * Divider component.
@@ -1609,7 +1190,7 @@ declare const Divider: Comp<DividerProps, HTMLHRElement>;
1609
1190
  /**
1610
1191
  * Defines the props of the component.
1611
1192
  */
1612
- interface DragHandleProps extends GenericProps, HasTheme$1 {
1193
+ interface DragHandleProps extends GenericProps$1, HasTheme$1 {
1613
1194
  }
1614
1195
  /**
1615
1196
  * DragHandle component.
@@ -1667,7 +1248,7 @@ type FitAnchorWidth = ValueOf$1<typeof FitAnchorWidth>;
1667
1248
  /**
1668
1249
  * Defines the props of the component.
1669
1250
  */
1670
- interface PopoverProps extends GenericProps, HasTheme$1 {
1251
+ interface PopoverProps extends GenericProps$1, HasTheme$1 {
1671
1252
  /** Reference to the DOM element used to set the position of the popover. */
1672
1253
  anchorRef: React.RefObject<HTMLElement>;
1673
1254
  /** Customize the root element. (Must accept ref forwarding and props forwarding!). */
@@ -1728,7 +1309,7 @@ declare const Popover: Comp<PopoverProps, HTMLDivElement>;
1728
1309
  /**
1729
1310
  * Defines the props of the component.
1730
1311
  */
1731
- interface DropdownProps extends GenericProps {
1312
+ interface DropdownProps extends GenericProps$1 {
1732
1313
  /**
1733
1314
  * Reference to the element around which the dropdown is placed.
1734
1315
  * @see {@link PopoverProps#anchorRef}
@@ -1809,7 +1390,7 @@ declare const Dropdown: Comp<DropdownProps, HTMLDivElement>;
1809
1390
  /**
1810
1391
  * Defines the props of the component.
1811
1392
  */
1812
- interface ExpansionPanelProps extends GenericProps, HasCloseMode, HasTheme$1 {
1393
+ interface ExpansionPanelProps extends GenericProps$1, HasCloseMode, HasTheme$1 {
1813
1394
  /** Whether the expansion panel has a background. */
1814
1395
  hasBackground?: boolean;
1815
1396
  /** Whether the header has a divider. */
@@ -1900,7 +1481,7 @@ interface FlagProps$1 extends HasClassName, HasTheme {
1900
1481
  Text: (props: TextProps$1) => any;
1901
1482
  }
1902
1483
 
1903
- interface FlagProps extends GenericProps, Omit<FlagProps$1, 'children' | 'Text'> {
1484
+ interface FlagProps extends GenericProps$1, ReactToJSX<FlagProps$1, 'children' | 'Text'> {
1904
1485
  /** Text label of the flag. */
1905
1486
  label: React.ReactNode;
1906
1487
  }
@@ -1946,7 +1527,7 @@ interface FlexBoxProps$1 extends HasClassName {
1946
1527
  /**
1947
1528
  * Defines the props of the component.
1948
1529
  */
1949
- interface FlexBoxProps extends GenericProps, FlexBoxProps$1 {
1530
+ interface FlexBoxProps extends GenericProps$1, ReactToJSX<FlexBoxProps$1> {
1950
1531
  /** Customize the root element. */
1951
1532
  as?: React__default.ElementType;
1952
1533
  }
@@ -2070,7 +1651,7 @@ interface HeadingProps$1 extends Partial<TextProps$1> {
2070
1651
  as?: HeadingElement;
2071
1652
  }
2072
1653
 
2073
- interface HeadingProps extends GenericProps, HeadingProps$1 {
1654
+ interface HeadingProps extends GenericProps$1, HeadingProps$1 {
2074
1655
  }
2075
1656
  /**
2076
1657
  * Renders a heading component.
@@ -2099,7 +1680,7 @@ type GridGutterSize = Extract<Size$1, 'regular' | 'big' | 'huge'>;
2099
1680
  /**
2100
1681
  * Defines the props of the component.
2101
1682
  */
2102
- interface GridProps extends GenericProps {
1683
+ interface GridProps extends GenericProps$1 {
2103
1684
  /** Orientation. */
2104
1685
  orientation?: Orientation$1;
2105
1686
  /** Whether the children are wrapped or not. */
@@ -2126,7 +1707,7 @@ type Columns = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11'
2126
1707
  /**
2127
1708
  * Defines the props of the component.
2128
1709
  */
2129
- interface GridItemProps extends GenericProps {
1710
+ interface GridItemProps extends GenericProps$1 {
2130
1711
  /** Alignment. */
2131
1712
  align?: Alignment$1;
2132
1713
  /** Order. */
@@ -2169,11 +1750,9 @@ interface GridColumnProps$1 extends HasClassName {
2169
1750
  /**
2170
1751
  * Defines the props of the component.
2171
1752
  */
2172
- interface GridColumnProps extends GenericProps, GridColumnProps$1 {
1753
+ interface GridColumnProps extends GenericProps$1, ReactToJSX<GridColumnProps$1> {
2173
1754
  /** Customize the root element. */
2174
1755
  as?: React.ElementType;
2175
- /** Children elements. */
2176
- children?: React.ReactNode;
2177
1756
  }
2178
1757
 
2179
1758
  /**
@@ -2215,7 +1794,7 @@ interface IconProps$1 extends HasClassName, HasTheme {
2215
1794
  ref?: CommonRef;
2216
1795
  }
2217
1796
 
2218
- interface IconProps extends Omit<IconProps$1, 'children'>, GenericProps {
1797
+ interface IconProps extends ReactToJSX<IconProps$1>, GenericProps$1 {
2219
1798
  }
2220
1799
  /**
2221
1800
  * Icon component.
@@ -2295,15 +1874,15 @@ interface ThumbnailProps$1 extends HasTheme$1, HasClassName$1 {
2295
1874
  /** Ref of an existing placeholder image to display while loading. */
2296
1875
  loadingPlaceholderImageRef?: React.RefObject<HTMLImageElement>;
2297
1876
  /** On click callback. */
2298
- onClick?: (event: any) => void;
1877
+ handleClick?: (event: any) => void;
2299
1878
  /** On key press callback. */
2300
- onKeyPress?: (event: any) => void;
1879
+ handleKeyPress?: (event: any) => void;
2301
1880
  /** Variant of the component. */
2302
1881
  variant?: ThumbnailVariant$1;
2303
1882
  /** Props to pass to the link wrapping the thumbnail. */
2304
- linkProps?: GenericProps;
2305
- focusPointStyle?: GenericProps;
2306
- disabledStateProps?: GenericProps;
1883
+ linkProps?: GenericProps$1;
1884
+ focusPointStyle?: GenericProps$1;
1885
+ disabledStateProps?: GenericProps$1;
2307
1886
  isAnyDisabled?: boolean;
2308
1887
  /** Custom react component for the link (can be used to inject react router Link). */
2309
1888
  linkAs?: 'a' | any;
@@ -2356,11 +1935,15 @@ type ThumbnailObjectFit = ValueOf$1<typeof ThumbnailObjectFit>;
2356
1935
  /**
2357
1936
  * Defines the props of the component.
2358
1937
  */
2359
- interface ThumbnailProps extends GenericProps, Omit<ThumbnailProps$1, 'loadingState' | 'isAnyDisabled' | 'focusPointStyle' | 'disabledStateProps' | 'badge'> {
1938
+ interface ThumbnailProps extends GenericProps$1, ReactToJSX<ThumbnailProps$1, 'loadingState' | 'isAnyDisabled' | 'focusPointStyle' | 'disabledStateProps' | 'badge'> {
2360
1939
  /** Apply relative vertical and horizontal shift (from -1 to 1) on the image position inside the thumbnail. */
2361
1940
  focusPoint?: FocusPoint;
2362
1941
  /** Badge. */
2363
1942
  badge?: ReactElement | Falsy;
1943
+ /** On click callback. */
1944
+ onClick?: React__default.MouseEventHandler<HTMLDivElement>;
1945
+ /** On key press callback. */
1946
+ onKeyPress?: React__default.KeyboardEventHandler<HTMLDivElement>;
2364
1947
  }
2365
1948
  /**
2366
1949
  * Thumbnail component.
@@ -2404,7 +1987,7 @@ type ImageBlockSize = Extract<Size$1, 'xl' | 'xxl'>;
2404
1987
  /**
2405
1988
  * Defines the props of the component.
2406
1989
  */
2407
- interface ImageBlockProps extends GenericProps, HasTheme$1, ImageCaptionMetadata {
1990
+ interface ImageBlockProps extends GenericProps$1, HasTheme$1, ImageCaptionMetadata {
2408
1991
  /** Action toolbar content. */
2409
1992
  actions?: ReactNode;
2410
1993
  /** Alignment. */
@@ -2475,7 +2058,7 @@ declare function useImageLightbox<P extends Partial<ImageLightboxProps>>(props:
2475
2058
  * @param index Provide an index to choose which image to display when the image lightbox opens.
2476
2059
  * */
2477
2060
  getTriggerProps: (options?: TriggerOptions) => {
2478
- onClick: React__default.MouseEventHandler;
2061
+ onClick: (ev?: React__default.MouseEvent) => void;
2479
2062
  ref: React__default.Ref<any>;
2480
2063
  };
2481
2064
  /** Props to forward to the ImageLightbox */
@@ -2496,7 +2079,7 @@ declare const ImageLightbox: Comp<ImageLightboxProps, HTMLDivElement> & {
2496
2079
  /**
2497
2080
  * Defines the props of the component.
2498
2081
  */
2499
- interface InlineListProps extends GenericProps {
2082
+ interface InlineListProps extends GenericProps$1 {
2500
2083
  /**
2501
2084
  * Text color.
2502
2085
  */
@@ -2541,7 +2124,7 @@ interface InputHelperProps$1 extends HasClassName, HasTheme {
2541
2124
  id?: string;
2542
2125
  }
2543
2126
 
2544
- interface InputHelperProps extends InputHelperProps$1, GenericProps {
2127
+ interface InputHelperProps extends ReactToJSX<InputHelperProps$1>, GenericProps$1 {
2545
2128
  }
2546
2129
  /**
2547
2130
  * InputHelper component.
@@ -2565,7 +2148,7 @@ interface InputLabelProps$1 extends HasClassName, HasTheme {
2565
2148
  ref?: CommonRef;
2566
2149
  }
2567
2150
 
2568
- interface InputLabelProps extends InputLabelProps$1, GenericProps {
2151
+ interface InputLabelProps extends ReactToJSX<InputLabelProps$1>, GenericProps$1 {
2569
2152
  }
2570
2153
  /**
2571
2154
  * InputLabel component.
@@ -2579,7 +2162,7 @@ declare const InputLabel: Comp<InputLabelProps, HTMLLabelElement>;
2579
2162
  /**
2580
2163
  * Defines the props of the component.
2581
2164
  */
2582
- interface LightboxProps extends GenericProps, HasTheme$1, Pick<AriaAttributes, 'aria-label' | 'aria-labelledby'> {
2165
+ interface LightboxProps extends GenericProps$1, HasTheme$1, Pick<AriaAttributes$1, 'aria-label' | 'aria-labelledby'> {
2583
2166
  /** Props to pass to the close button (minus those already set by the Lightbox props). */
2584
2167
  closeButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis' | 'color'>;
2585
2168
  /** Whether the component is open or not. */
@@ -2609,52 +2192,47 @@ declare const Lightbox: Comp<LightboxProps, HTMLDivElement>;
2609
2192
  /**
2610
2193
  * Defines the props of the component.
2611
2194
  */
2612
- interface LinkProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled {
2613
- /** Link label content. */
2614
- label?: JSXElement;
2195
+ interface LinkProps$1 extends HasClassName, HasAriaDisabled, HasDisabled {
2196
+ /** Children content */
2197
+ children?: JSXElement;
2615
2198
  /** Color variant. */
2616
- color?: ColorWithVariants$1;
2199
+ color?: ColorWithVariants;
2617
2200
  /** Lightened or darkened variant of the selected icon color. */
2618
- colorVariant?: ColorVariant$1;
2201
+ colorVariant?: ColorVariant;
2619
2202
  /** Link href. */
2620
2203
  href?: string;
2621
- /**
2622
- * Left icon (SVG path).
2623
- * @deprecated Instead, simply nest `<Icon />` in the label
2624
- */
2625
- leftIcon?: string;
2626
- /** Element type or custom component for the link. */
2627
- as?: string | any;
2628
- /**
2629
- * Right icon (SVG path).
2630
- * @deprecated Instead, simply nest `<Icon />` in the label
2631
- */
2632
- rightIcon?: string;
2204
+ /** Whether the component is disabled or not. */
2205
+ isDisabled?: boolean;
2206
+ /** Custom element/component for the link. */
2207
+ linkAs?: string | any;
2208
+ /** Click handler (framework wrappers convert onClick to handleClick). */
2209
+ handleClick?: (event: any) => void;
2633
2210
  /** Link target. */
2634
2211
  target?: string;
2635
2212
  /** Typography variant. */
2636
- typography?: string;
2637
- /** Click handler. */
2638
- onClick?: (event: any) => void;
2639
- /** Reference to the root element. */
2213
+ typography?: Typography;
2214
+ /** Element ref. */
2640
2215
  ref?: CommonRef;
2641
2216
  }
2642
2217
 
2643
- type HTMLAnchorProps = React__default.DetailedHTMLProps<React__default.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
2644
2218
  /**
2645
2219
  * Defines the props of the component.
2646
2220
  */
2647
- interface LinkProps extends GenericProps, Omit<LinkProps$1, 'label'> {
2648
- /** Link href. */
2649
- href?: HTMLAnchorProps['href'];
2650
- /** Custom react component for the link (can be used to inject react router Link). */
2651
- linkAs?: 'a' | any;
2652
- /** Link target. */
2653
- target?: HTMLAnchorProps['target'];
2654
- /** Typography variant. */
2655
- typography?: Typography$1;
2221
+ interface LinkProps extends GenericProps$1, ReactToJSX<LinkProps$1> {
2222
+ /**
2223
+ * Left icon (SVG path).
2224
+ * @deprecated Instead, simply nest `<Icon />` in the children
2225
+ */
2226
+ leftIcon?: string;
2227
+ /** Click handler. */
2228
+ onClick?: (event?: React.MouseEvent) => void;
2229
+ /**
2230
+ * Right icon (SVG path).
2231
+ * @deprecated Instead, simply nest `<Icon />` in the children
2232
+ */
2233
+ rightIcon?: string;
2656
2234
  /** Children */
2657
- children?: React__default.ReactNode;
2235
+ children?: React.ReactNode;
2658
2236
  }
2659
2237
  /**
2660
2238
  * Link component.
@@ -2668,7 +2246,7 @@ declare const Link: Comp<LinkProps, HTMLButtonElement | HTMLAnchorElement>;
2668
2246
  /**
2669
2247
  * Defines the props of the component.
2670
2248
  */
2671
- interface LinkPreviewProps extends GenericProps, HasTheme$1 {
2249
+ interface LinkPreviewProps extends GenericProps$1, HasTheme$1 {
2672
2250
  /** Description. */
2673
2251
  description?: string;
2674
2252
  /** Link URL. */
@@ -2711,7 +2289,7 @@ type useKeyboardListNavigationType = <I>(items: I[], ref: RefObject<HTMLElement>
2711
2289
  /**
2712
2290
  * Defines the props of the component.
2713
2291
  */
2714
- interface ListProps extends GenericProps {
2292
+ interface ListProps extends GenericProps$1 {
2715
2293
  /** List content (should be ListItem, ListSubheader or ListDivider). */
2716
2294
  children: ReactNode;
2717
2295
  /**
@@ -2740,7 +2318,7 @@ type ListItemSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
2740
2318
  /**
2741
2319
  * Defines the props of the component.
2742
2320
  */
2743
- interface ListItemProps extends GenericProps, HasAriaDisabled$1 {
2321
+ interface ListItemProps extends GenericProps$1, HasAriaDisabled$1 {
2744
2322
  /** A component to be rendered after the content. */
2745
2323
  after?: ReactNode;
2746
2324
  /** A component to be rendered before the content. */
@@ -2783,7 +2361,7 @@ declare const ListItem: Comp<ListItemProps, HTMLLIElement>;
2783
2361
  /**
2784
2362
  * Defines the props of the component.
2785
2363
  */
2786
- type ListDividerProps = GenericProps;
2364
+ type ListDividerProps = GenericProps$1;
2787
2365
  /**
2788
2366
  * ListDivider component.
2789
2367
  *
@@ -2791,12 +2369,12 @@ type ListDividerProps = GenericProps;
2791
2369
  * @param ref Component ref.
2792
2370
  * @return React element.
2793
2371
  */
2794
- declare const ListDivider: Comp<GenericProps, HTMLLIElement>;
2372
+ declare const ListDivider: Comp<GenericProps$1, HTMLLIElement>;
2795
2373
 
2796
2374
  /**
2797
2375
  * Defines the props of the component.
2798
2376
  */
2799
- interface ListSubheaderProps extends GenericProps {
2377
+ interface ListSubheaderProps extends GenericProps$1 {
2800
2378
  /** Content. */
2801
2379
  children: string | ReactNode;
2802
2380
  }
@@ -2836,9 +2414,7 @@ interface MessageProps$1 extends HasClassName {
2836
2414
  };
2837
2415
  }
2838
2416
 
2839
- interface MessageProps extends GenericProps, Omit<MessageProps$1, 'children' | 'ref'> {
2840
- /** Content. */
2841
- children?: React.ReactNode;
2417
+ interface MessageProps extends GenericProps$1, ReactToJSX<MessageProps$1> {
2842
2418
  }
2843
2419
  /**
2844
2420
  * Message component.
@@ -2852,7 +2428,7 @@ declare const Message: Comp<MessageProps, HTMLDivElement>;
2852
2428
  /**
2853
2429
  * Defines the props of the component.
2854
2430
  */
2855
- interface MosaicProps extends GenericProps, HasTheme$1 {
2431
+ interface MosaicProps extends GenericProps$1, HasTheme$1 {
2856
2432
  /** Thumbnails. */
2857
2433
  thumbnails: ThumbnailProps[];
2858
2434
  /** On image click callback. */
@@ -2908,7 +2484,7 @@ declare const Navigation: Comp<NavigationProps, HTMLElement> & SubComponents;
2908
2484
  /**
2909
2485
  * Defines the props of the component.
2910
2486
  */
2911
- interface NotificationProps extends GenericProps, HasTheme$1 {
2487
+ interface NotificationProps extends GenericProps$1, HasTheme$1 {
2912
2488
  /** Action button label. */
2913
2489
  actionLabel?: string;
2914
2490
  /** Content. */
@@ -2952,7 +2528,7 @@ declare const PopoverDialog: Comp<PopoverDialogProps, HTMLDivElement>;
2952
2528
  /**
2953
2529
  * Defines the props of the component.
2954
2530
  */
2955
- interface PostBlockProps extends GenericProps, HasTheme$1 {
2531
+ interface PostBlockProps extends GenericProps$1, HasTheme$1 {
2956
2532
  /** Action toolbar content. */
2957
2533
  actions?: ReactNode;
2958
2534
  /** Attachment content. */
@@ -2996,7 +2572,7 @@ type ProgressVariant = ValueOf$1<typeof ProgressVariant>;
2996
2572
  /**
2997
2573
  * Defines the props of the component.
2998
2574
  */
2999
- interface ProgressProps extends GenericProps, HasTheme$1 {
2575
+ interface ProgressProps extends GenericProps$1, HasTheme$1 {
3000
2576
  /** Progress variant. */
3001
2577
  variant?: ProgressVariant;
3002
2578
  }
@@ -3013,11 +2589,11 @@ declare const Progress: Comp<ProgressProps, HTMLDivElement>;
3013
2589
  /**
3014
2590
  * Progress sizes.
3015
2591
  */
3016
- type ProgressCircularSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm'>;
2592
+ type ProgressCircularSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm'>;
3017
2593
  /**
3018
2594
  * Defines the props of the component.
3019
2595
  */
3020
- interface ProgressCircularProps extends GenericProps, HasTheme$1 {
2596
+ interface ProgressCircularProps$1 extends HasTheme, HasClassName {
3021
2597
  /**
3022
2598
  * Progress circular size.
3023
2599
  */
@@ -3027,9 +2603,22 @@ interface ProgressCircularProps extends GenericProps, HasTheme$1 {
3027
2603
  * @default 'block'
3028
2604
  */
3029
2605
  display?: 'inline' | 'block';
2606
+ /** Component ref */
2607
+ ref?: CommonRef;
2608
+ /** additional props for the svg */
2609
+ svgProps?: GenericProps;
2610
+ /** additional props for the circle */
2611
+ circleProps?: GenericProps;
3030
2612
  }
2613
+
3031
2614
  /**
3032
- * ProgressCircularProps component.
2615
+ * Defines the props of the component.
2616
+ */
2617
+ interface ProgressCircularProps extends GenericProps$1, ReactToJSX<ProgressCircularProps$1> {
2618
+ }
2619
+
2620
+ /**
2621
+ * ProgressCircular component.
3033
2622
  *
3034
2623
  * @param props Component props.
3035
2624
  * @param ref Component ref.
@@ -3037,7 +2626,18 @@ interface ProgressCircularProps extends GenericProps, HasTheme$1 {
3037
2626
  */
3038
2627
  declare const ProgressCircular: Comp<ProgressCircularProps, HTMLDivElement>;
3039
2628
 
3040
- interface ProgressLinearProps extends GenericProps, HasTheme$1 {
2629
+ /**
2630
+ * Defines the props of the component.
2631
+ */
2632
+ interface ProgressLinearProps$1 extends HasTheme, HasClassName {
2633
+ /** Component ref */
2634
+ ref?: CommonRef;
2635
+ }
2636
+
2637
+ /**
2638
+ * Defines the props of the component.
2639
+ */
2640
+ interface ProgressLinearProps extends GenericProps$1, ReactToJSX<ProgressLinearProps$1> {
3041
2641
  }
3042
2642
  /**
3043
2643
  * ProgressLinear component.
@@ -3076,7 +2676,7 @@ declare const ProgressTrackerProvider: React.FC<ProgressTrackerProviderProps>;
3076
2676
  /**
3077
2677
  * Defines the props of the component.
3078
2678
  */
3079
- interface ProgressTrackerProps extends GenericProps {
2679
+ interface ProgressTrackerProps extends GenericProps$1 {
3080
2680
  /** ARIA label (purpose of the set of steps). */
3081
2681
  ['aria-label']: string;
3082
2682
  /** Step list. */
@@ -3096,7 +2696,7 @@ declare const ProgressTracker: Comp<ProgressTrackerProps, HTMLDivElement>;
3096
2696
  /**
3097
2697
  * Defines the props of the component.
3098
2698
  */
3099
- interface ProgressTrackerStepProps extends GenericProps {
2699
+ interface ProgressTrackerStepProps extends GenericProps$1 {
3100
2700
  /** Children are not supported. */
3101
2701
  children?: never;
3102
2702
  /** Whether the step should be in error state or not. */
@@ -3128,7 +2728,7 @@ declare const ProgressTrackerStep: Comp<ProgressTrackerStepProps, HTMLButtonElem
3128
2728
  /**
3129
2729
  * Defines the props of the component.
3130
2730
  */
3131
- interface ProgressTrackerStepPanelProps extends GenericProps {
2731
+ interface ProgressTrackerStepPanelProps extends GenericProps$1 {
3132
2732
  /** Native id property. */
3133
2733
  id?: string;
3134
2734
  /** Whether the step is active or not. */
@@ -3168,7 +2768,7 @@ interface RadioButtonProps$1 extends HasTheme, HasClassName, HasAriaDisabled, Ha
3168
2768
  /** Native input id. */
3169
2769
  inputId: string;
3170
2770
  /** On change callback. */
3171
- onChange?(value?: string, name?: string, event?: any): void;
2771
+ handleChange?(value?: string, name?: string, event?: any): void;
3172
2772
  /** reference to the root element */
3173
2773
  ref?: CommonRef;
3174
2774
  }
@@ -3176,7 +2776,9 @@ interface RadioButtonProps$1 extends HasTheme, HasClassName, HasAriaDisabled, Ha
3176
2776
  /**
3177
2777
  * Defines the props of the component.
3178
2778
  */
3179
- interface RadioButtonProps extends GenericProps, Omit<RadioButtonProps$1, 'inputId'> {
2779
+ interface RadioButtonProps extends GenericProps$1, ReactToJSX<RadioButtonProps$1, 'inputId'> {
2780
+ /** On change callback. */
2781
+ onChange?(value?: string, name?: string, event?: React.ChangeEvent): void;
3180
2782
  }
3181
2783
  /**
3182
2784
  * RadioButton component.
@@ -3190,9 +2792,17 @@ declare const RadioButton: Comp<RadioButtonProps, HTMLDivElement>;
3190
2792
  /**
3191
2793
  * Defines the props of the component.
3192
2794
  */
3193
- interface RadioGroupProps extends GenericProps {
2795
+ interface RadioGroupProps$1 extends HasClassName {
3194
2796
  /** RadioButton elements */
3195
- children: ReactNode;
2797
+ children?: JSXElement;
2798
+ /** reference to the root element */
2799
+ ref?: CommonRef;
2800
+ }
2801
+
2802
+ /**
2803
+ * Defines the props of the component.
2804
+ */
2805
+ interface RadioGroupProps extends GenericProps$1, ReactToJSX<RadioGroupProps$1> {
3196
2806
  }
3197
2807
  /**
3198
2808
  * RadioGroup component.
@@ -3211,7 +2821,7 @@ declare const SelectVariant: {
3211
2821
  readonly chip: "chip";
3212
2822
  };
3213
2823
  type SelectVariant = ValueOf$1<typeof SelectVariant>;
3214
- interface CoreSelectProps extends GenericProps, HasTheme$1 {
2824
+ interface CoreSelectProps extends GenericProps$1, HasTheme$1 {
3215
2825
  /** Props to pass to the clear button (minus those already set by the Select props). If not specified, the button won't be displayed. */
3216
2826
  clearButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
3217
2827
  /** Whether the select (input variant) is displayed with error style or not. */
@@ -3239,7 +2849,7 @@ interface CoreSelectProps extends GenericProps, HasTheme$1 {
3239
2849
  /** Select variant. */
3240
2850
  variant?: SelectVariant;
3241
2851
  /** On clear callback. */
3242
- onClear?(event: SyntheticEvent, value?: string): void;
2852
+ onClear?(event?: SyntheticEvent, value?: string): void;
3243
2853
  /** On blur callback. */
3244
2854
  onBlur?(): void;
3245
2855
  /** On filter text change callback (with 500ms debounce). */
@@ -3291,7 +2901,7 @@ declare const SelectMultiple: Comp<SelectMultipleProps, HTMLDivElement>;
3291
2901
  /**
3292
2902
  * Defines the props of the component.
3293
2903
  */
3294
- interface SideNavigationProps extends GenericProps, HasTheme$1 {
2904
+ interface SideNavigationProps extends GenericProps$1, HasTheme$1 {
3295
2905
  /** SideNavigationItem elements. */
3296
2906
  children: ReactNode;
3297
2907
  }
@@ -3307,7 +2917,7 @@ declare const SideNavigation: Comp<SideNavigationProps, HTMLUListElement>;
3307
2917
  /**
3308
2918
  * Defines the props of the component.
3309
2919
  */
3310
- interface SideNavigationItemProps extends GenericProps, HasCloseMode {
2920
+ interface SideNavigationItemProps extends GenericProps$1, HasCloseMode {
3311
2921
  /** SideNavigationItem elements. */
3312
2922
  children?: ReactNode;
3313
2923
  /** Emphasis variant. */
@@ -3398,7 +3008,7 @@ interface SkeletonTypographyProps$1 extends HasTheme, HasClassName {
3398
3008
  /**
3399
3009
  * Defines the props of the component.
3400
3010
  */
3401
- interface SkeletonCircleProps extends GenericProps, SkeletonCircleProps$1 {
3011
+ interface SkeletonCircleProps extends GenericProps$1, ReactToJSX<SkeletonCircleProps$1> {
3402
3012
  }
3403
3013
  /**
3404
3014
  * SkeletonCircle component.
@@ -3412,7 +3022,7 @@ declare const SkeletonCircle: Comp<SkeletonCircleProps, HTMLDivElement>;
3412
3022
  /**
3413
3023
  * Defines the props of the component.
3414
3024
  */
3415
- interface SkeletonRectangleProps extends GenericProps, SkeletonRectangleProps$1 {
3025
+ interface SkeletonRectangleProps extends GenericProps$1, ReactToJSX<SkeletonRectangleProps$1> {
3416
3026
  }
3417
3027
  /**
3418
3028
  * SkeletonRectangle component.
@@ -3426,7 +3036,7 @@ declare const SkeletonRectangle: Comp<SkeletonRectangleProps, HTMLDivElement>;
3426
3036
  /**
3427
3037
  * Defines the props of the component.
3428
3038
  */
3429
- interface SkeletonTypographyProps extends GenericProps, SkeletonTypographyProps$1 {
3039
+ interface SkeletonTypographyProps extends GenericProps$1, ReactToJSX<SkeletonTypographyProps$1> {
3430
3040
  }
3431
3041
  /**
3432
3042
  * SkeletonTypography component.
@@ -3440,7 +3050,7 @@ declare const SkeletonTypography: Comp<SkeletonTypographyProps, HTMLDivElement>;
3440
3050
  /**
3441
3051
  * Defines the props of the component.
3442
3052
  */
3443
- interface SliderProps extends GenericProps, HasTheme$1 {
3053
+ interface SliderProps extends GenericProps$1, HasTheme$1 {
3444
3054
  /** Helper text. */
3445
3055
  helper?: string;
3446
3056
  /** Whether the min and max labels should be hidden or not. */
@@ -3499,7 +3109,7 @@ type SlideMode = ValueOf$1<typeof SlideMode>;
3499
3109
  /**
3500
3110
  * Defines the props of the component.
3501
3111
  */
3502
- interface SlideshowProps extends GenericProps, Pick<SlidesProps, 'autoPlay' | 'slidesId' | 'id' | 'theme' | 'fillHeight' | 'groupBy' | 'slideGroupLabel'> {
3112
+ interface SlideshowProps extends GenericProps$1, Pick<SlidesProps, 'autoPlay' | 'slidesId' | 'id' | 'theme' | 'fillHeight' | 'groupBy' | 'slideGroupLabel'> {
3503
3113
  /** Whether to use CSS transform translate or native scroll snap. */
3504
3114
  slideMode?: SlideMode;
3505
3115
  /** current slide active */
@@ -3525,7 +3135,7 @@ declare const Slideshow: Comp<SlideshowProps, HTMLDivElement>;
3525
3135
  /**
3526
3136
  * Defines the props of the component.
3527
3137
  */
3528
- interface SlideshowItemProps extends GenericProps {
3138
+ interface SlideshowItemProps extends GenericProps$1 {
3529
3139
  /** interval in which slides are automatically shown */
3530
3140
  interval?: number;
3531
3141
  /** Children */
@@ -3604,7 +3214,7 @@ interface UseSlideshowControls {
3604
3214
  /**
3605
3215
  * Defines the props of the component.
3606
3216
  */
3607
- interface SlideshowControlsProps extends GenericProps, HasTheme$1 {
3217
+ interface SlideshowControlsProps extends GenericProps$1, HasTheme$1 {
3608
3218
  /** Index of the current slide. */
3609
3219
  activeIndex?: number;
3610
3220
  /** Props to pass to the next button (minus those already set by the SlideshowControls props). */
@@ -3648,7 +3258,7 @@ declare const SlideshowControls: Comp<SlideshowControlsProps, HTMLDivElement> &
3648
3258
  };
3649
3259
  };
3650
3260
 
3651
- interface SlidesProps extends GenericProps, HasTheme$1 {
3261
+ interface SlidesProps extends GenericProps$1, HasTheme$1 {
3652
3262
  /** current slide active */
3653
3263
  activeIndex: number;
3654
3264
  /** slides id to be added to the wrapper */
@@ -3711,7 +3321,7 @@ interface SwitchProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisa
3711
3321
  /** Native input id. */
3712
3322
  inputId: string;
3713
3323
  /** On change callback. */
3714
- onChange?(isChecked: boolean, value?: string, name?: string, event?: any): void;
3324
+ handleChange?(isChecked: boolean, value?: string, name?: string, event?: any): void;
3715
3325
  /** Position of the switch relative to the label. */
3716
3326
  position?: 'left' | 'right';
3717
3327
  /** reference to the root element */
@@ -3721,9 +3331,9 @@ interface SwitchProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisa
3721
3331
  /**
3722
3332
  * Defines the props of the component.
3723
3333
  */
3724
- interface SwitchProps extends GenericProps, Omit<SwitchProps$1, 'inputId' | 'label'> {
3725
- /** Children (label content). */
3726
- children?: React__default.ReactNode;
3334
+ interface SwitchProps extends GenericProps$1, ReactToJSX<SwitchProps$1, 'inputId' | 'label'> {
3335
+ /** On change callback. */
3336
+ onChange?(isChecked: boolean, value?: string, name?: string, event?: React__default.ChangeEvent): void;
3727
3337
  }
3728
3338
  /**
3729
3339
  * Switch component.
@@ -3751,9 +3361,7 @@ interface TableProps$1 extends HasTheme, HasClassName {
3751
3361
  /**
3752
3362
  * Defines the props of the component.
3753
3363
  */
3754
- interface TableProps extends GenericProps, Omit<TableProps$1, 'ref'> {
3755
- /** Children */
3756
- children?: React.ReactNode;
3364
+ interface TableProps extends GenericProps$1, ReactToJSX<TableProps$1> {
3757
3365
  }
3758
3366
  /**
3759
3367
  * Table component.
@@ -3777,9 +3385,7 @@ interface TableBodyProps$1 extends HasClassName {
3777
3385
  /**
3778
3386
  * Defines the props of the component.
3779
3387
  */
3780
- interface TableBodyProps extends GenericProps, Omit<TableBodyProps$1, 'ref'> {
3781
- /** Children */
3782
- children?: React.ReactNode;
3388
+ interface TableBodyProps extends GenericProps$1, ReactToJSX<TableBodyProps$1> {
3783
3389
  }
3784
3390
  /**
3785
3391
  * TableBody component.
@@ -3819,7 +3425,7 @@ interface TableCellProps$1 extends HasClassName {
3819
3425
  /** Variant. */
3820
3426
  variant?: TableCellVariant;
3821
3427
  /** On header cell click callback. */
3822
- onHeaderClick?(): void;
3428
+ handleClick?(): void;
3823
3429
  /** Children */
3824
3430
  children?: JSXElement;
3825
3431
  /** reference to the root element */
@@ -3829,9 +3435,9 @@ interface TableCellProps$1 extends HasClassName {
3829
3435
  /**
3830
3436
  * Defines the props of the component.
3831
3437
  */
3832
- interface TableCellProps extends GenericProps, Omit<TableCellProps$1, 'ref'> {
3833
- /** Children */
3834
- children?: React.ReactNode;
3438
+ interface TableCellProps extends GenericProps$1, ReactToJSX<TableCellProps$1> {
3439
+ /** On header cell click callback. */
3440
+ onHeaderClick?: () => void;
3835
3441
  }
3836
3442
  /**
3837
3443
  * TableCell component.
@@ -3855,9 +3461,7 @@ interface TableHeaderProps$1 extends HasClassName {
3855
3461
  /**
3856
3462
  * Defines the props of the component.
3857
3463
  */
3858
- interface TableHeaderProps extends GenericProps, Omit<TableHeaderProps$1, 'ref'> {
3859
- /** Children */
3860
- children?: React.ReactNode;
3464
+ interface TableHeaderProps extends GenericProps$1, ReactToJSX<TableHeaderProps$1, 'ref'> {
3861
3465
  }
3862
3466
  /**
3863
3467
  * TableHeader component.
@@ -3887,11 +3491,9 @@ interface TableRowProps$1 extends HasClassName, HasAriaDisabled {
3887
3491
  /**
3888
3492
  * Defines the props of the component.
3889
3493
  */
3890
- interface TableRowProps extends GenericProps, Omit<TableRowProps$1, 'ref' | 'tabIndex' | 'aria-disabled'> {
3494
+ interface TableRowProps extends GenericProps$1, ReactToJSX<TableRowProps$1, 'tabIndex' | 'aria-disabled'> {
3891
3495
  /** Whether the component is disabled or not. */
3892
3496
  isDisabled?: boolean;
3893
- /** Children */
3894
- children?: React.ReactNode;
3895
3497
  }
3896
3498
  /**
3897
3499
  * TableRow component.
@@ -3932,7 +3534,7 @@ declare enum TabListLayout {
3932
3534
  /**
3933
3535
  * Defines the props of the component.
3934
3536
  */
3935
- interface TabListProps extends GenericProps, HasTheme$1 {
3537
+ interface TabListProps extends GenericProps$1, HasTheme$1 {
3936
3538
  /** ARIA label (purpose of the set of tabs). */
3937
3539
  ['aria-label']: string;
3938
3540
  /** Tab list. */
@@ -3956,7 +3558,7 @@ declare const TabList: Comp<TabListProps, HTMLDivElement>;
3956
3558
  /**
3957
3559
  * Defines the props of the component.
3958
3560
  */
3959
- interface TabProps extends GenericProps {
3561
+ interface TabProps extends GenericProps$1 {
3960
3562
  /** Children are not supported. */
3961
3563
  children?: never;
3962
3564
  /** Icon (SVG path). */
@@ -3986,7 +3588,7 @@ declare const Tab: Comp<TabProps, HTMLButtonElement>;
3986
3588
  /**
3987
3589
  * Defines the props of the component.
3988
3590
  */
3989
- interface TabPanelProps extends GenericProps {
3591
+ interface TabPanelProps extends GenericProps$1 {
3990
3592
  /** Native id property */
3991
3593
  id?: string;
3992
3594
  /** Whether the tab is active or not. */
@@ -4005,7 +3607,7 @@ interface TabPanelProps extends GenericProps {
4005
3607
  */
4006
3608
  declare const TabPanel: Comp<TabPanelProps, HTMLDivElement>;
4007
3609
 
4008
- interface TextProps extends TextProps$1, GenericProps {
3610
+ interface TextProps extends ReactToJSX<TextProps$1>, GenericProps$1 {
4009
3611
  }
4010
3612
  /**
4011
3613
  * Text component.
@@ -4019,7 +3621,7 @@ declare const Text: Comp<TextProps, HTMLElement>;
4019
3621
  /**
4020
3622
  * Defines the props of the component.
4021
3623
  */
4022
- interface TextFieldProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
3624
+ interface TextFieldProps extends GenericProps$1, HasTheme$1, HasAriaDisabled$1 {
4023
3625
  /** Chip Group to be rendered before the main text input. */
4024
3626
  chips?: ReactNode;
4025
3627
  /** Props to pass to the clear button (minus those already set by the TextField props). If not specified, the button won't be displayed. */
@@ -4118,7 +3720,21 @@ declare const useFocusPointStyle: ({ image, aspectRatio, focusPoint, imgProps: {
4118
3720
  /**
4119
3721
  * Defines the props of the component.
4120
3722
  */
4121
- interface ToolbarProps extends GenericProps {
3723
+ interface ToolbarProps$1 extends HasClassName {
3724
+ /** After content (placed after the label). */
3725
+ after?: JSXElement;
3726
+ /** Before content (placed before the label). */
3727
+ before?: JSXElement;
3728
+ /** Label content. */
3729
+ label?: JSXElement;
3730
+ /** Component ref. */
3731
+ ref?: CommonRef;
3732
+ }
3733
+
3734
+ /**
3735
+ * Defines the props of the component.
3736
+ */
3737
+ interface ToolbarProps extends GenericProps$1, ReactToJSX<ToolbarProps$1> {
4122
3738
  /** After content (placed after the label). */
4123
3739
  after?: ReactNode;
4124
3740
  /** Before content (placed before the label). */
@@ -4142,7 +3758,7 @@ type TooltipPlacement = Extract<Placement, 'top' | 'right' | 'bottom' | 'left'>;
4142
3758
  /**
4143
3759
  * Defines the props of the component.
4144
3760
  */
4145
- interface TooltipProps extends GenericProps, HasCloseMode {
3761
+ interface TooltipProps extends GenericProps$1, HasCloseMode {
4146
3762
  /** Anchor (element on which we activate the tooltip). */
4147
3763
  children: ReactNode;
4148
3764
  /** Delay (in ms) before closing the tooltip. */
@@ -4187,7 +3803,7 @@ interface FileInputProps extends Omit<React__default.ComponentProps<'input'>, 'o
4187
3803
  /**
4188
3804
  * Defines the props of the component.
4189
3805
  */
4190
- interface UploaderProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
3806
+ interface UploaderProps extends GenericProps$1, HasTheme$1, HasAriaDisabled$1 {
4191
3807
  /** Image aspect ratio. */
4192
3808
  aspectRatio?: AspectRatio$1;
4193
3809
  /** Icon (SVG path). */
@@ -4221,7 +3837,7 @@ type UserBlockSize = Extract<Size$1, 'xs' | 's' | 'm' | 'l'>;
4221
3837
  /**
4222
3838
  * Defines the props of the component.
4223
3839
  */
4224
- interface UserBlockProps extends GenericProps, HasTheme$1 {
3840
+ interface UserBlockProps extends GenericProps$1, HasTheme$1 {
4225
3841
  /** Props to pass to the avatar. */
4226
3842
  avatarProps?: Omit<AvatarProps, 'alt'>;
4227
3843
  /** Additional fields used to describe the user. */
@@ -4235,7 +3851,7 @@ interface UserBlockProps extends GenericProps, HasTheme$1 {
4235
3851
  /** User name. */
4236
3852
  name?: React__default.ReactNode;
4237
3853
  /** Props to pass to the name block. */
4238
- nameProps?: GenericProps;
3854
+ nameProps?: GenericProps$1;
4239
3855
  /** Orientation. */
4240
3856
  orientation?: Orientation$1;
4241
3857
  /** Simple action toolbar content. */
@@ -4271,5 +3887,5 @@ declare const ThemeProvider: React__default.FC<{
4271
3887
  /** Get the theme in the current context. */
4272
3888
  declare function useTheme(): ThemeContextValue;
4273
3889
 
4274
- export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonEmphasis, ButtonGroup, COMPONENT_NAME, Checkbox, Chip, ChipGroup, Combobox, ComboboxButton, ComboboxDivider, ComboboxInput, ComboboxListBox, ComboboxOption, ComboboxOptionAction, ComboboxOptionMoreInfo, ComboboxOptionSkeleton, ComboboxSection, CommentBlock, CommentBlockVariant, DEFAULT_PROPS, DatePicker, DatePickerControlled, DatePickerField, Dialog, Divider, DragHandle, Dropdown, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, ImageLightbox, InlineList, InputHelper, InputLabel, LUMX_CLASSNAME, 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, SUB_COMPONENTS, Select, SelectMultiple, SelectMultipleField, SelectVariant, SelectionChipGroup, SideNavigation, SideNavigationItem, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableCellVariant as TableCellVariantType, TableHeader, TableRow, Text, TextField, ThOrder, ThOrder as ThOrderType, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, Toolbar, Tooltip, Uploader, UploaderVariant, UserBlock, clamp, isClickable, useFocusPointStyle, useHeadingLevel, useTheme };
4275
- export type { AlertDialogProps, AutocompleteMultipleProps, AutocompleteProps, AvatarProps, AvatarSize, BadgeProps, BadgeWrapperProps, BaseButtonProps, ButtonGroupProps, ButtonProps, ButtonSize, CheckboxProps, ChipGroupProps, ChipProps, ComboboxButtonProps, ComboboxInputProps, ComboboxListBoxProps, ComboboxOptionComponentProps, ComboboxOptionMoreInfoProps, ComboboxOptionSkeletonProps, ComboboxSectionProps, 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 };
3890
+ 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 };
3891
+ 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 };