@lumx/react 4.3.2-alpha.4 → 4.3.2-alpha.41

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
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, 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, 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.
@@ -541,6 +548,47 @@ interface HasDisabled {
541
548
  disabled?: boolean;
542
549
  }
543
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
+
544
592
  /**
545
593
  * Defines the props of the component.
546
594
  */
@@ -553,10 +601,19 @@ interface BadgeProps$1 extends HasClassName {
553
601
  ref?: CommonRef;
554
602
  }
555
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
+
556
613
  /**
557
614
  * Defines the props of the component.
558
615
  */
559
- interface BadgeProps extends Omit<BadgeProps$1, 'children'>, GenericProps {
616
+ interface BadgeProps extends ReactToJSX<BadgeProps$1>, GenericProps$1 {
560
617
  /** Badge content. */
561
618
  children?: ReactNode;
562
619
  }
@@ -578,7 +635,7 @@ interface BadgeWrapperProps$1 extends HasClassName {
578
635
  ref?: CommonRef;
579
636
  }
580
637
 
581
- interface BadgeWrapperProps extends GenericProps, Omit<BadgeWrapperProps$1, 'children' | 'badge'> {
638
+ interface BadgeWrapperProps extends GenericProps$1, ReactToJSX<BadgeWrapperProps$1, 'children' | 'badge'> {
582
639
  /** Badge element to display */
583
640
  badge: ReactElement;
584
641
  /** Content to wrap with badge */
@@ -588,7 +645,8 @@ declare const BadgeWrapper: Comp<BadgeWrapperProps, HTMLDivElement>;
588
645
 
589
646
  interface BaseClickableProps extends HasDisabled, HasAriaDisabled {
590
647
  children?: JSXElement;
591
- onClick?: (event?: any) => void;
648
+ handleClick?: (event?: any) => void;
649
+ handleKeyPress?: (event?: any) => void;
592
650
  ref?: CommonRef;
593
651
  }
594
652
 
@@ -664,7 +722,9 @@ declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
664
722
  */
665
723
  declare const DEFAULT_PROPS: Partial<ButtonProps$1>;
666
724
 
667
- 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;
668
728
  }
669
729
  /**
670
730
  * Button component.
@@ -695,7 +755,7 @@ interface IconButtonProps$1 extends BaseButtonProps {
695
755
  title?: string;
696
756
  }
697
757
 
698
- interface IconButtonProps extends GenericProps, Omit<IconButtonProps$1, 'title' | 'children'> {
758
+ interface IconButtonProps extends GenericProps$1, ReactToJSX<IconButtonProps$1, 'title' | 'children'> {
699
759
  /**
700
760
  * Props to pass to the tooltip.
701
761
  * If undefined or if tooltipProps.label is undefined, the label prop will be used as tooltip label.
@@ -703,6 +763,8 @@ interface IconButtonProps extends GenericProps, Omit<IconButtonProps$1, 'title'
703
763
  tooltipProps?: Partial<TooltipProps>;
704
764
  /** Whether the tooltip should be hidden or not. */
705
765
  hideTooltip?: boolean;
766
+ /** callback for clicking on the button */
767
+ onClick?: (event?: React.MouseEvent) => void;
706
768
  }
707
769
  /**
708
770
  * IconButton component.
@@ -725,7 +787,7 @@ interface ButtonGroupProps$1 extends HasClassName {
725
787
  ref?: CommonRef;
726
788
  }
727
789
 
728
- interface ButtonGroupProps extends GenericProps, ButtonGroupProps$1 {
790
+ interface ButtonGroupProps extends GenericProps$1, ReactToJSX<ButtonGroupProps$1> {
729
791
  }
730
792
  /**
731
793
  * ButtonGroup component.
@@ -757,7 +819,7 @@ interface CheckboxProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDi
757
819
  /** Native input id. */
758
820
  inputId: string;
759
821
  /** On change callback. */
760
- onChange?(isChecked: boolean, value?: string, name?: string, event?: any): void;
822
+ handleChange?(isChecked: boolean, value?: string, name?: string, event?: any): void;
761
823
  /** reference to the root element */
762
824
  ref?: CommonRef;
763
825
  }
@@ -765,7 +827,9 @@ interface CheckboxProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDi
765
827
  /**
766
828
  * Defines the props of the component.
767
829
  */
768
- interface CheckboxProps extends GenericProps, Omit<CheckboxProps$1, 'inputId'> {
830
+ interface CheckboxProps extends GenericProps$1, ReactToJSX<CheckboxProps$1, 'inputId'> {
831
+ /** On change callback. */
832
+ onChange?(isChecked: boolean, value?: string, name?: string, event?: React__default.ChangeEvent): void;
769
833
  }
770
834
  /**
771
835
  * Checkbox component.
@@ -783,7 +847,7 @@ type ChipSize = Extract<Size$1, 's' | 'm'>;
783
847
  /**
784
848
  * Defines the props of the component.
785
849
  */
786
- interface ChipProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
850
+ interface ChipProps extends GenericProps$1, HasTheme$1, HasAriaDisabled$1 {
787
851
  /** A component to be rendered after the content. */
788
852
  after?: ReactNode;
789
853
  /** A component to be rendered before the content. */
@@ -829,7 +893,7 @@ type useChipGroupNavigationType<C = any> = (chips: C[], onChipDeleted: (chip: C)
829
893
  /**
830
894
  * Defines the props of the component.
831
895
  */
832
- interface ChipGroupProps extends GenericProps {
896
+ interface ChipGroupProps extends GenericProps$1 {
833
897
  /**
834
898
  * Chip horizontal alignment.
835
899
  * @deprecated
@@ -842,7 +906,7 @@ declare const ChipGroup: Comp<ChipGroupProps, HTMLDivElement> & {
842
906
  useChipGroupNavigation: useChipGroupNavigationType<any>;
843
907
  };
844
908
 
845
- interface SelectionChipGroupProps<O> extends GenericProps {
909
+ interface SelectionChipGroupProps<O> extends GenericProps$1 {
846
910
  /**
847
911
  * Option object id selector (either the property name or a function to get the id)
848
912
  */
@@ -909,7 +973,7 @@ type CommentBlockVariant = ValueOf$1<typeof CommentBlockVariant>;
909
973
  /**
910
974
  * Defines the props of the component.
911
975
  */
912
- interface CommentBlockProps extends GenericProps, HasTheme$1 {
976
+ interface CommentBlockProps extends GenericProps$1, HasTheme$1 {
913
977
  /** Action toolbar content. */
914
978
  actions?: ReactNode;
915
979
  /** Props to pass to the avatar. */
@@ -962,7 +1026,7 @@ declare const CommentBlock: Comp<CommentBlockProps, HTMLDivElement>;
962
1026
  /**
963
1027
  * Defines the props of the component.
964
1028
  */
965
- interface DatePickerProps extends GenericProps {
1029
+ interface DatePickerProps extends GenericProps$1 {
966
1030
  /** Default month. */
967
1031
  defaultMonth?: Date;
968
1032
  /** Locale (language or region) to use. */
@@ -1017,7 +1081,7 @@ declare const DatePickerControlled: Comp<DatePickerControlledProps, HTMLDivEleme
1017
1081
  /**
1018
1082
  * Defines the props of the component.
1019
1083
  */
1020
- interface DatePickerFieldProps extends Omit<TextFieldProps, 'value' | 'onChange'>, GenericProps {
1084
+ interface DatePickerFieldProps extends Omit<TextFieldProps, 'value' | 'onChange'>, GenericProps$1 {
1021
1085
  /** Default month. */
1022
1086
  defaultMonth?: Date;
1023
1087
  /** Locale (language or region) to use. */
@@ -1047,7 +1111,7 @@ declare const DatePickerField: Comp<DatePickerFieldProps, HTMLDivElement>;
1047
1111
  /**
1048
1112
  * Defines the props of the component.
1049
1113
  */
1050
- interface DialogProps extends GenericProps {
1114
+ interface DialogProps extends GenericProps$1 {
1051
1115
  /** Footer content. */
1052
1116
  footer?: ReactNode;
1053
1117
  /** Whether the divider between the dialog content and the footer is always displayed (instead of showing it on scroll). */
@@ -1077,7 +1141,7 @@ interface DialogProps extends GenericProps {
1077
1141
  /** Z-axis position. */
1078
1142
  zIndex?: number;
1079
1143
  /** Z-axis position. */
1080
- dialogProps?: GenericProps;
1144
+ dialogProps?: GenericProps$1;
1081
1145
  /** On close callback. */
1082
1146
  onClose?(): void;
1083
1147
  /** Callback called when the open animation starts and the close animation finishes. */
@@ -1108,7 +1172,7 @@ interface DividerProps$1 extends HasTheme, HasClassName {
1108
1172
  /**
1109
1173
  * Defines the props of the component.
1110
1174
  */
1111
- interface DividerProps extends GenericProps, DividerProps$1 {
1175
+ interface DividerProps extends GenericProps$1, ReactToJSX<DividerProps$1> {
1112
1176
  }
1113
1177
  /**
1114
1178
  * Divider component.
@@ -1122,7 +1186,7 @@ declare const Divider: Comp<DividerProps, HTMLHRElement>;
1122
1186
  /**
1123
1187
  * Defines the props of the component.
1124
1188
  */
1125
- interface DragHandleProps extends GenericProps, HasTheme$1 {
1189
+ interface DragHandleProps extends GenericProps$1, HasTheme$1 {
1126
1190
  }
1127
1191
  /**
1128
1192
  * DragHandle component.
@@ -1180,7 +1244,7 @@ type FitAnchorWidth = ValueOf$1<typeof FitAnchorWidth>;
1180
1244
  /**
1181
1245
  * Defines the props of the component.
1182
1246
  */
1183
- interface PopoverProps extends GenericProps, HasTheme$1 {
1247
+ interface PopoverProps extends GenericProps$1, HasTheme$1 {
1184
1248
  /** Reference to the DOM element used to set the position of the popover. */
1185
1249
  anchorRef: React.RefObject<HTMLElement>;
1186
1250
  /** Customize the root element. (Must accept ref forwarding and props forwarding!). */
@@ -1241,7 +1305,7 @@ declare const Popover: Comp<PopoverProps, HTMLDivElement>;
1241
1305
  /**
1242
1306
  * Defines the props of the component.
1243
1307
  */
1244
- interface DropdownProps extends GenericProps {
1308
+ interface DropdownProps extends GenericProps$1 {
1245
1309
  /**
1246
1310
  * Reference to the element around which the dropdown is placed.
1247
1311
  * @see {@link PopoverProps#anchorRef}
@@ -1322,7 +1386,7 @@ declare const Dropdown: Comp<DropdownProps, HTMLDivElement>;
1322
1386
  /**
1323
1387
  * Defines the props of the component.
1324
1388
  */
1325
- interface ExpansionPanelProps extends GenericProps, HasCloseMode, HasTheme$1 {
1389
+ interface ExpansionPanelProps extends GenericProps$1, HasCloseMode, HasTheme$1 {
1326
1390
  /** Whether the expansion panel has a background. */
1327
1391
  hasBackground?: boolean;
1328
1392
  /** Whether the header has a divider. */
@@ -1413,7 +1477,7 @@ interface FlagProps$1 extends HasClassName, HasTheme {
1413
1477
  Text: (props: TextProps$1) => any;
1414
1478
  }
1415
1479
 
1416
- interface FlagProps extends GenericProps, Omit<FlagProps$1, 'children' | 'Text'> {
1480
+ interface FlagProps extends GenericProps$1, ReactToJSX<FlagProps$1, 'children' | 'Text'> {
1417
1481
  /** Text label of the flag. */
1418
1482
  label: React.ReactNode;
1419
1483
  }
@@ -1459,7 +1523,7 @@ interface FlexBoxProps$1 extends HasClassName {
1459
1523
  /**
1460
1524
  * Defines the props of the component.
1461
1525
  */
1462
- interface FlexBoxProps extends GenericProps, FlexBoxProps$1 {
1526
+ interface FlexBoxProps extends GenericProps$1, ReactToJSX<FlexBoxProps$1> {
1463
1527
  /** Customize the root element. */
1464
1528
  as?: React__default.ElementType;
1465
1529
  }
@@ -1583,7 +1647,7 @@ interface HeadingProps$1 extends Partial<TextProps$1> {
1583
1647
  as?: HeadingElement;
1584
1648
  }
1585
1649
 
1586
- interface HeadingProps extends GenericProps, HeadingProps$1 {
1650
+ interface HeadingProps extends GenericProps$1, HeadingProps$1 {
1587
1651
  }
1588
1652
  /**
1589
1653
  * Renders a heading component.
@@ -1612,7 +1676,7 @@ type GridGutterSize = Extract<Size$1, 'regular' | 'big' | 'huge'>;
1612
1676
  /**
1613
1677
  * Defines the props of the component.
1614
1678
  */
1615
- interface GridProps extends GenericProps {
1679
+ interface GridProps extends GenericProps$1 {
1616
1680
  /** Orientation. */
1617
1681
  orientation?: Orientation$1;
1618
1682
  /** Whether the children are wrapped or not. */
@@ -1639,7 +1703,7 @@ type Columns = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11'
1639
1703
  /**
1640
1704
  * Defines the props of the component.
1641
1705
  */
1642
- interface GridItemProps extends GenericProps {
1706
+ interface GridItemProps extends GenericProps$1 {
1643
1707
  /** Alignment. */
1644
1708
  align?: Alignment$1;
1645
1709
  /** Order. */
@@ -1658,22 +1722,35 @@ interface GridItemProps extends GenericProps {
1658
1722
  */
1659
1723
  declare const GridItem: Comp<GridItemProps, HTMLDivElement>;
1660
1724
 
1661
- type GridColumnGapSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
1725
+ type GridColumnGapSize = Extract<Size, 'tiny' | 'regular' | 'big' | 'huge'>;
1662
1726
  /**
1663
1727
  * Defines the props of the component.
1664
1728
  */
1665
- interface GridColumnProps extends GenericProps {
1729
+ interface GridColumnProps$1 extends HasClassName {
1666
1730
  /** Customize the root element. */
1667
- as?: React.ElementType;
1731
+ as?: any;
1668
1732
  /** Children elements. */
1669
- children?: ReactNode;
1733
+ children?: JSXElement;
1670
1734
  /** Space between columns and rows. */
1671
1735
  gap?: GridColumnGapSize;
1672
1736
  /** Ideal number of columns. */
1673
1737
  maxColumns?: number;
1674
1738
  /** Minimum width for each item, reduce the number of column if there is not enough space. */
1675
1739
  itemMinWidth?: number;
1740
+ /** Custom styles. */
1741
+ style?: any;
1742
+ /** reference to the root element */
1743
+ ref?: CommonRef;
1676
1744
  }
1745
+
1746
+ /**
1747
+ * Defines the props of the component.
1748
+ */
1749
+ interface GridColumnProps extends GenericProps$1, ReactToJSX<GridColumnProps$1> {
1750
+ /** Customize the root element. */
1751
+ as?: React.ElementType;
1752
+ }
1753
+
1677
1754
  /**
1678
1755
  * The GridColumn is a layout component that can display children in a grid
1679
1756
  * with custom display properties. It also comes with a responsive design,
@@ -1713,7 +1790,7 @@ interface IconProps$1 extends HasClassName, HasTheme {
1713
1790
  ref?: CommonRef;
1714
1791
  }
1715
1792
 
1716
- interface IconProps extends Omit<IconProps$1, 'children'>, GenericProps {
1793
+ interface IconProps extends ReactToJSX<IconProps$1>, GenericProps$1 {
1717
1794
  }
1718
1795
  /**
1719
1796
  * Icon component.
@@ -1793,15 +1870,15 @@ interface ThumbnailProps$1 extends HasTheme$1, HasClassName$1 {
1793
1870
  /** Ref of an existing placeholder image to display while loading. */
1794
1871
  loadingPlaceholderImageRef?: React.RefObject<HTMLImageElement>;
1795
1872
  /** On click callback. */
1796
- onClick?: (event: any) => void;
1873
+ handleClick?: (event: any) => void;
1797
1874
  /** On key press callback. */
1798
- onKeyPress?: (event: any) => void;
1875
+ handleKeyPress?: (event: any) => void;
1799
1876
  /** Variant of the component. */
1800
1877
  variant?: ThumbnailVariant$1;
1801
1878
  /** Props to pass to the link wrapping the thumbnail. */
1802
- linkProps?: GenericProps;
1803
- focusPointStyle?: GenericProps;
1804
- disabledStateProps?: GenericProps;
1879
+ linkProps?: GenericProps$1;
1880
+ focusPointStyle?: GenericProps$1;
1881
+ disabledStateProps?: GenericProps$1;
1805
1882
  isAnyDisabled?: boolean;
1806
1883
  /** Custom react component for the link (can be used to inject react router Link). */
1807
1884
  linkAs?: 'a' | any;
@@ -1854,11 +1931,15 @@ type ThumbnailObjectFit = ValueOf$1<typeof ThumbnailObjectFit>;
1854
1931
  /**
1855
1932
  * Defines the props of the component.
1856
1933
  */
1857
- interface ThumbnailProps extends GenericProps, Omit<ThumbnailProps$1, 'loadingState' | 'isAnyDisabled' | 'focusPointStyle' | 'disabledStateProps' | 'badge'> {
1934
+ interface ThumbnailProps extends GenericProps$1, ReactToJSX<ThumbnailProps$1, 'loadingState' | 'isAnyDisabled' | 'focusPointStyle' | 'disabledStateProps' | 'badge'> {
1858
1935
  /** Apply relative vertical and horizontal shift (from -1 to 1) on the image position inside the thumbnail. */
1859
1936
  focusPoint?: FocusPoint;
1860
1937
  /** Badge. */
1861
1938
  badge?: ReactElement | Falsy;
1939
+ /** On click callback. */
1940
+ onClick?: React__default.MouseEventHandler<HTMLDivElement>;
1941
+ /** On key press callback. */
1942
+ onKeyPress?: React__default.KeyboardEventHandler<HTMLDivElement>;
1862
1943
  }
1863
1944
  /**
1864
1945
  * Thumbnail component.
@@ -1902,7 +1983,7 @@ type ImageBlockSize = Extract<Size$1, 'xl' | 'xxl'>;
1902
1983
  /**
1903
1984
  * Defines the props of the component.
1904
1985
  */
1905
- interface ImageBlockProps extends GenericProps, HasTheme$1, ImageCaptionMetadata {
1986
+ interface ImageBlockProps extends GenericProps$1, HasTheme$1, ImageCaptionMetadata {
1906
1987
  /** Action toolbar content. */
1907
1988
  actions?: ReactNode;
1908
1989
  /** Alignment. */
@@ -1973,7 +2054,7 @@ declare function useImageLightbox<P extends Partial<ImageLightboxProps>>(props:
1973
2054
  * @param index Provide an index to choose which image to display when the image lightbox opens.
1974
2055
  * */
1975
2056
  getTriggerProps: (options?: TriggerOptions) => {
1976
- onClick: React__default.MouseEventHandler;
2057
+ onClick: (ev?: React__default.MouseEvent) => void;
1977
2058
  ref: React__default.Ref<any>;
1978
2059
  };
1979
2060
  /** Props to forward to the ImageLightbox */
@@ -1994,7 +2075,7 @@ declare const ImageLightbox: Comp<ImageLightboxProps, HTMLDivElement> & {
1994
2075
  /**
1995
2076
  * Defines the props of the component.
1996
2077
  */
1997
- interface InlineListProps extends GenericProps {
2078
+ interface InlineListProps extends GenericProps$1 {
1998
2079
  /**
1999
2080
  * Text color.
2000
2081
  */
@@ -2039,7 +2120,7 @@ interface InputHelperProps$1 extends HasClassName, HasTheme {
2039
2120
  id?: string;
2040
2121
  }
2041
2122
 
2042
- interface InputHelperProps extends InputHelperProps$1, GenericProps {
2123
+ interface InputHelperProps extends ReactToJSX<InputHelperProps$1>, GenericProps$1 {
2043
2124
  }
2044
2125
  /**
2045
2126
  * InputHelper component.
@@ -2063,7 +2144,7 @@ interface InputLabelProps$1 extends HasClassName, HasTheme {
2063
2144
  ref?: CommonRef;
2064
2145
  }
2065
2146
 
2066
- interface InputLabelProps extends InputLabelProps$1, GenericProps {
2147
+ interface InputLabelProps extends ReactToJSX<InputLabelProps$1>, GenericProps$1 {
2067
2148
  }
2068
2149
  /**
2069
2150
  * InputLabel component.
@@ -2077,7 +2158,7 @@ declare const InputLabel: Comp<InputLabelProps, HTMLLabelElement>;
2077
2158
  /**
2078
2159
  * Defines the props of the component.
2079
2160
  */
2080
- interface LightboxProps extends GenericProps, HasTheme$1, Pick<AriaAttributes, 'aria-label' | 'aria-labelledby'> {
2161
+ interface LightboxProps extends GenericProps$1, HasTheme$1, Pick<AriaAttributes$1, 'aria-label' | 'aria-labelledby'> {
2081
2162
  /** Props to pass to the close button (minus those already set by the Lightbox props). */
2082
2163
  closeButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis' | 'color'>;
2083
2164
  /** Whether the component is open or not. */
@@ -2133,7 +2214,7 @@ interface LinkProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisabl
2133
2214
  /** Typography variant. */
2134
2215
  typography?: string;
2135
2216
  /** Click handler. */
2136
- onClick?: (event: any) => void;
2217
+ handleClick?: (event: any) => void;
2137
2218
  /** Reference to the root element. */
2138
2219
  ref?: CommonRef;
2139
2220
  }
@@ -2142,7 +2223,7 @@ type HTMLAnchorProps = React__default.DetailedHTMLProps<React__default.AnchorHTM
2142
2223
  /**
2143
2224
  * Defines the props of the component.
2144
2225
  */
2145
- interface LinkProps extends GenericProps, Omit<LinkProps$1, 'label'> {
2226
+ interface LinkProps extends GenericProps$1, ReactToJSX<LinkProps$1, 'label'> {
2146
2227
  /** Link href. */
2147
2228
  href?: HTMLAnchorProps['href'];
2148
2229
  /** Custom react component for the link (can be used to inject react router Link). */
@@ -2151,8 +2232,8 @@ interface LinkProps extends GenericProps, Omit<LinkProps$1, 'label'> {
2151
2232
  target?: HTMLAnchorProps['target'];
2152
2233
  /** Typography variant. */
2153
2234
  typography?: Typography$1;
2154
- /** Children */
2155
- children?: React__default.ReactNode;
2235
+ /** Click handler. */
2236
+ onClick?: (event: React__default.MouseEvent) => void;
2156
2237
  }
2157
2238
  /**
2158
2239
  * Link component.
@@ -2166,7 +2247,7 @@ declare const Link: Comp<LinkProps, HTMLButtonElement | HTMLAnchorElement>;
2166
2247
  /**
2167
2248
  * Defines the props of the component.
2168
2249
  */
2169
- interface LinkPreviewProps extends GenericProps, HasTheme$1 {
2250
+ interface LinkPreviewProps extends GenericProps$1, HasTheme$1 {
2170
2251
  /** Description. */
2171
2252
  description?: string;
2172
2253
  /** Link URL. */
@@ -2209,7 +2290,7 @@ type useKeyboardListNavigationType = <I>(items: I[], ref: RefObject<HTMLElement>
2209
2290
  /**
2210
2291
  * Defines the props of the component.
2211
2292
  */
2212
- interface ListProps extends GenericProps {
2293
+ interface ListProps extends GenericProps$1 {
2213
2294
  /** List content (should be ListItem, ListSubheader or ListDivider). */
2214
2295
  children: ReactNode;
2215
2296
  /**
@@ -2238,7 +2319,7 @@ type ListItemSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
2238
2319
  /**
2239
2320
  * Defines the props of the component.
2240
2321
  */
2241
- interface ListItemProps extends GenericProps, HasAriaDisabled$1 {
2322
+ interface ListItemProps extends GenericProps$1, HasAriaDisabled$1 {
2242
2323
  /** A component to be rendered after the content. */
2243
2324
  after?: ReactNode;
2244
2325
  /** A component to be rendered before the content. */
@@ -2281,7 +2362,7 @@ declare const ListItem: Comp<ListItemProps, HTMLLIElement>;
2281
2362
  /**
2282
2363
  * Defines the props of the component.
2283
2364
  */
2284
- type ListDividerProps = GenericProps;
2365
+ type ListDividerProps = GenericProps$1;
2285
2366
  /**
2286
2367
  * ListDivider component.
2287
2368
  *
@@ -2289,12 +2370,12 @@ type ListDividerProps = GenericProps;
2289
2370
  * @param ref Component ref.
2290
2371
  * @return React element.
2291
2372
  */
2292
- declare const ListDivider: Comp<GenericProps, HTMLLIElement>;
2373
+ declare const ListDivider: Comp<GenericProps$1, HTMLLIElement>;
2293
2374
 
2294
2375
  /**
2295
2376
  * Defines the props of the component.
2296
2377
  */
2297
- interface ListSubheaderProps extends GenericProps {
2378
+ interface ListSubheaderProps extends GenericProps$1 {
2298
2379
  /** Content. */
2299
2380
  children: string | ReactNode;
2300
2381
  }
@@ -2334,9 +2415,7 @@ interface MessageProps$1 extends HasClassName {
2334
2415
  };
2335
2416
  }
2336
2417
 
2337
- interface MessageProps extends GenericProps, Omit<MessageProps$1, 'children' | 'ref'> {
2338
- /** Content. */
2339
- children?: React.ReactNode;
2418
+ interface MessageProps extends GenericProps$1, ReactToJSX<MessageProps$1> {
2340
2419
  }
2341
2420
  /**
2342
2421
  * Message component.
@@ -2350,7 +2429,7 @@ declare const Message: Comp<MessageProps, HTMLDivElement>;
2350
2429
  /**
2351
2430
  * Defines the props of the component.
2352
2431
  */
2353
- interface MosaicProps extends GenericProps, HasTheme$1 {
2432
+ interface MosaicProps extends GenericProps$1, HasTheme$1 {
2354
2433
  /** Thumbnails. */
2355
2434
  thumbnails: ThumbnailProps[];
2356
2435
  /** On image click callback. */
@@ -2406,7 +2485,7 @@ declare const Navigation: Comp<NavigationProps, HTMLElement> & SubComponents;
2406
2485
  /**
2407
2486
  * Defines the props of the component.
2408
2487
  */
2409
- interface NotificationProps extends GenericProps, HasTheme$1 {
2488
+ interface NotificationProps extends GenericProps$1, HasTheme$1 {
2410
2489
  /** Action button label. */
2411
2490
  actionLabel?: string;
2412
2491
  /** Content. */
@@ -2450,7 +2529,7 @@ declare const PopoverDialog: Comp<PopoverDialogProps, HTMLDivElement>;
2450
2529
  /**
2451
2530
  * Defines the props of the component.
2452
2531
  */
2453
- interface PostBlockProps extends GenericProps, HasTheme$1 {
2532
+ interface PostBlockProps extends GenericProps$1, HasTheme$1 {
2454
2533
  /** Action toolbar content. */
2455
2534
  actions?: ReactNode;
2456
2535
  /** Attachment content. */
@@ -2494,7 +2573,7 @@ type ProgressVariant = ValueOf$1<typeof ProgressVariant>;
2494
2573
  /**
2495
2574
  * Defines the props of the component.
2496
2575
  */
2497
- interface ProgressProps extends GenericProps, HasTheme$1 {
2576
+ interface ProgressProps extends GenericProps$1, HasTheme$1 {
2498
2577
  /** Progress variant. */
2499
2578
  variant?: ProgressVariant;
2500
2579
  }
@@ -2511,11 +2590,11 @@ declare const Progress: Comp<ProgressProps, HTMLDivElement>;
2511
2590
  /**
2512
2591
  * Progress sizes.
2513
2592
  */
2514
- type ProgressCircularSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm'>;
2593
+ type ProgressCircularSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm'>;
2515
2594
  /**
2516
2595
  * Defines the props of the component.
2517
2596
  */
2518
- interface ProgressCircularProps extends GenericProps, HasTheme$1 {
2597
+ interface ProgressCircularProps$1 extends HasTheme, HasClassName {
2519
2598
  /**
2520
2599
  * Progress circular size.
2521
2600
  */
@@ -2525,9 +2604,22 @@ interface ProgressCircularProps extends GenericProps, HasTheme$1 {
2525
2604
  * @default 'block'
2526
2605
  */
2527
2606
  display?: 'inline' | 'block';
2607
+ /** Component ref */
2608
+ ref?: CommonRef;
2609
+ /** additional props for the svg */
2610
+ svgProps?: GenericProps;
2611
+ /** additional props for the circle */
2612
+ circleProps?: GenericProps;
2613
+ }
2614
+
2615
+ /**
2616
+ * Defines the props of the component.
2617
+ */
2618
+ interface ProgressCircularProps extends GenericProps$1, ReactToJSX<ProgressCircularProps$1> {
2528
2619
  }
2620
+
2529
2621
  /**
2530
- * ProgressCircularProps component.
2622
+ * ProgressCircular component.
2531
2623
  *
2532
2624
  * @param props Component props.
2533
2625
  * @param ref Component ref.
@@ -2535,7 +2627,18 @@ interface ProgressCircularProps extends GenericProps, HasTheme$1 {
2535
2627
  */
2536
2628
  declare const ProgressCircular: Comp<ProgressCircularProps, HTMLDivElement>;
2537
2629
 
2538
- interface ProgressLinearProps extends GenericProps, HasTheme$1 {
2630
+ /**
2631
+ * Defines the props of the component.
2632
+ */
2633
+ interface ProgressLinearProps$1 extends HasTheme, HasClassName {
2634
+ /** Component ref */
2635
+ ref?: CommonRef;
2636
+ }
2637
+
2638
+ /**
2639
+ * Defines the props of the component.
2640
+ */
2641
+ interface ProgressLinearProps extends GenericProps$1, ReactToJSX<ProgressLinearProps$1> {
2539
2642
  }
2540
2643
  /**
2541
2644
  * ProgressLinear component.
@@ -2574,7 +2677,7 @@ declare const ProgressTrackerProvider: React.FC<ProgressTrackerProviderProps>;
2574
2677
  /**
2575
2678
  * Defines the props of the component.
2576
2679
  */
2577
- interface ProgressTrackerProps extends GenericProps {
2680
+ interface ProgressTrackerProps extends GenericProps$1 {
2578
2681
  /** ARIA label (purpose of the set of steps). */
2579
2682
  ['aria-label']: string;
2580
2683
  /** Step list. */
@@ -2594,7 +2697,7 @@ declare const ProgressTracker: Comp<ProgressTrackerProps, HTMLDivElement>;
2594
2697
  /**
2595
2698
  * Defines the props of the component.
2596
2699
  */
2597
- interface ProgressTrackerStepProps extends GenericProps {
2700
+ interface ProgressTrackerStepProps extends GenericProps$1 {
2598
2701
  /** Children are not supported. */
2599
2702
  children?: never;
2600
2703
  /** Whether the step should be in error state or not. */
@@ -2626,7 +2729,7 @@ declare const ProgressTrackerStep: Comp<ProgressTrackerStepProps, HTMLButtonElem
2626
2729
  /**
2627
2730
  * Defines the props of the component.
2628
2731
  */
2629
- interface ProgressTrackerStepPanelProps extends GenericProps {
2732
+ interface ProgressTrackerStepPanelProps extends GenericProps$1 {
2630
2733
  /** Native id property. */
2631
2734
  id?: string;
2632
2735
  /** Whether the step is active or not. */
@@ -2666,7 +2769,7 @@ interface RadioButtonProps$1 extends HasTheme, HasClassName, HasAriaDisabled, Ha
2666
2769
  /** Native input id. */
2667
2770
  inputId: string;
2668
2771
  /** On change callback. */
2669
- onChange?(value?: string, name?: string, event?: any): void;
2772
+ handleChange?(value?: string, name?: string, event?: any): void;
2670
2773
  /** reference to the root element */
2671
2774
  ref?: CommonRef;
2672
2775
  }
@@ -2674,7 +2777,9 @@ interface RadioButtonProps$1 extends HasTheme, HasClassName, HasAriaDisabled, Ha
2674
2777
  /**
2675
2778
  * Defines the props of the component.
2676
2779
  */
2677
- interface RadioButtonProps extends GenericProps, Omit<RadioButtonProps$1, 'inputId'> {
2780
+ interface RadioButtonProps extends GenericProps$1, ReactToJSX<RadioButtonProps$1, 'inputId'> {
2781
+ /** On change callback. */
2782
+ onChange?(value?: string, name?: string, event?: React.ChangeEvent): void;
2678
2783
  }
2679
2784
  /**
2680
2785
  * RadioButton component.
@@ -2688,9 +2793,17 @@ declare const RadioButton: Comp<RadioButtonProps, HTMLDivElement>;
2688
2793
  /**
2689
2794
  * Defines the props of the component.
2690
2795
  */
2691
- interface RadioGroupProps extends GenericProps {
2796
+ interface RadioGroupProps$1 extends HasClassName {
2692
2797
  /** RadioButton elements */
2693
- children: ReactNode;
2798
+ children?: JSXElement;
2799
+ /** reference to the root element */
2800
+ ref?: CommonRef;
2801
+ }
2802
+
2803
+ /**
2804
+ * Defines the props of the component.
2805
+ */
2806
+ interface RadioGroupProps extends GenericProps$1, ReactToJSX<RadioGroupProps$1> {
2694
2807
  }
2695
2808
  /**
2696
2809
  * RadioGroup component.
@@ -2709,7 +2822,7 @@ declare const SelectVariant: {
2709
2822
  readonly chip: "chip";
2710
2823
  };
2711
2824
  type SelectVariant = ValueOf$1<typeof SelectVariant>;
2712
- interface CoreSelectProps extends GenericProps, HasTheme$1 {
2825
+ interface CoreSelectProps extends GenericProps$1, HasTheme$1 {
2713
2826
  /** Props to pass to the clear button (minus those already set by the Select props). If not specified, the button won't be displayed. */
2714
2827
  clearButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
2715
2828
  /** Whether the select (input variant) is displayed with error style or not. */
@@ -2737,7 +2850,7 @@ interface CoreSelectProps extends GenericProps, HasTheme$1 {
2737
2850
  /** Select variant. */
2738
2851
  variant?: SelectVariant;
2739
2852
  /** On clear callback. */
2740
- onClear?(event: SyntheticEvent, value?: string): void;
2853
+ onClear?(event?: SyntheticEvent, value?: string): void;
2741
2854
  /** On blur callback. */
2742
2855
  onBlur?(): void;
2743
2856
  /** On filter text change callback (with 500ms debounce). */
@@ -2789,7 +2902,7 @@ declare const SelectMultiple: Comp<SelectMultipleProps, HTMLDivElement>;
2789
2902
  /**
2790
2903
  * Defines the props of the component.
2791
2904
  */
2792
- interface SideNavigationProps extends GenericProps, HasTheme$1 {
2905
+ interface SideNavigationProps extends GenericProps$1, HasTheme$1 {
2793
2906
  /** SideNavigationItem elements. */
2794
2907
  children: ReactNode;
2795
2908
  }
@@ -2805,7 +2918,7 @@ declare const SideNavigation: Comp<SideNavigationProps, HTMLUListElement>;
2805
2918
  /**
2806
2919
  * Defines the props of the component.
2807
2920
  */
2808
- interface SideNavigationItemProps extends GenericProps, HasCloseMode {
2921
+ interface SideNavigationItemProps extends GenericProps$1, HasCloseMode {
2809
2922
  /** SideNavigationItem elements. */
2810
2923
  children?: ReactNode;
2811
2924
  /** Emphasis variant. */
@@ -2896,7 +3009,7 @@ interface SkeletonTypographyProps$1 extends HasTheme, HasClassName {
2896
3009
  /**
2897
3010
  * Defines the props of the component.
2898
3011
  */
2899
- interface SkeletonCircleProps extends GenericProps, SkeletonCircleProps$1 {
3012
+ interface SkeletonCircleProps extends GenericProps$1, ReactToJSX<SkeletonCircleProps$1> {
2900
3013
  }
2901
3014
  /**
2902
3015
  * SkeletonCircle component.
@@ -2910,7 +3023,7 @@ declare const SkeletonCircle: Comp<SkeletonCircleProps, HTMLDivElement>;
2910
3023
  /**
2911
3024
  * Defines the props of the component.
2912
3025
  */
2913
- interface SkeletonRectangleProps extends GenericProps, SkeletonRectangleProps$1 {
3026
+ interface SkeletonRectangleProps extends GenericProps$1, ReactToJSX<SkeletonRectangleProps$1> {
2914
3027
  }
2915
3028
  /**
2916
3029
  * SkeletonRectangle component.
@@ -2924,7 +3037,7 @@ declare const SkeletonRectangle: Comp<SkeletonRectangleProps, HTMLDivElement>;
2924
3037
  /**
2925
3038
  * Defines the props of the component.
2926
3039
  */
2927
- interface SkeletonTypographyProps extends GenericProps, SkeletonTypographyProps$1 {
3040
+ interface SkeletonTypographyProps extends GenericProps$1, ReactToJSX<SkeletonTypographyProps$1> {
2928
3041
  }
2929
3042
  /**
2930
3043
  * SkeletonTypography component.
@@ -2938,7 +3051,7 @@ declare const SkeletonTypography: Comp<SkeletonTypographyProps, HTMLDivElement>;
2938
3051
  /**
2939
3052
  * Defines the props of the component.
2940
3053
  */
2941
- interface SliderProps extends GenericProps, HasTheme$1 {
3054
+ interface SliderProps extends GenericProps$1, HasTheme$1 {
2942
3055
  /** Helper text. */
2943
3056
  helper?: string;
2944
3057
  /** Whether the min and max labels should be hidden or not. */
@@ -2997,7 +3110,7 @@ type SlideMode = ValueOf$1<typeof SlideMode>;
2997
3110
  /**
2998
3111
  * Defines the props of the component.
2999
3112
  */
3000
- interface SlideshowProps extends GenericProps, Pick<SlidesProps, 'autoPlay' | 'slidesId' | 'id' | 'theme' | 'fillHeight' | 'groupBy' | 'slideGroupLabel'> {
3113
+ interface SlideshowProps extends GenericProps$1, Pick<SlidesProps, 'autoPlay' | 'slidesId' | 'id' | 'theme' | 'fillHeight' | 'groupBy' | 'slideGroupLabel'> {
3001
3114
  /** Whether to use CSS transform translate or native scroll snap. */
3002
3115
  slideMode?: SlideMode;
3003
3116
  /** current slide active */
@@ -3023,7 +3136,7 @@ declare const Slideshow: Comp<SlideshowProps, HTMLDivElement>;
3023
3136
  /**
3024
3137
  * Defines the props of the component.
3025
3138
  */
3026
- interface SlideshowItemProps extends GenericProps {
3139
+ interface SlideshowItemProps extends GenericProps$1 {
3027
3140
  /** interval in which slides are automatically shown */
3028
3141
  interval?: number;
3029
3142
  /** Children */
@@ -3102,7 +3215,7 @@ interface UseSlideshowControls {
3102
3215
  /**
3103
3216
  * Defines the props of the component.
3104
3217
  */
3105
- interface SlideshowControlsProps extends GenericProps, HasTheme$1 {
3218
+ interface SlideshowControlsProps extends GenericProps$1, HasTheme$1 {
3106
3219
  /** Index of the current slide. */
3107
3220
  activeIndex?: number;
3108
3221
  /** Props to pass to the next button (minus those already set by the SlideshowControls props). */
@@ -3146,7 +3259,7 @@ declare const SlideshowControls: Comp<SlideshowControlsProps, HTMLDivElement> &
3146
3259
  };
3147
3260
  };
3148
3261
 
3149
- interface SlidesProps extends GenericProps, HasTheme$1 {
3262
+ interface SlidesProps extends GenericProps$1, HasTheme$1 {
3150
3263
  /** current slide active */
3151
3264
  activeIndex: number;
3152
3265
  /** slides id to be added to the wrapper */
@@ -3209,7 +3322,7 @@ interface SwitchProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisa
3209
3322
  /** Native input id. */
3210
3323
  inputId: string;
3211
3324
  /** On change callback. */
3212
- onChange?(isChecked: boolean, value?: string, name?: string, event?: any): void;
3325
+ handleChange?(isChecked: boolean, value?: string, name?: string, event?: any): void;
3213
3326
  /** Position of the switch relative to the label. */
3214
3327
  position?: 'left' | 'right';
3215
3328
  /** reference to the root element */
@@ -3219,9 +3332,9 @@ interface SwitchProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisa
3219
3332
  /**
3220
3333
  * Defines the props of the component.
3221
3334
  */
3222
- interface SwitchProps extends GenericProps, Omit<SwitchProps$1, 'inputId' | 'label'> {
3223
- /** Children (label content). */
3224
- children?: React__default.ReactNode;
3335
+ interface SwitchProps extends GenericProps$1, ReactToJSX<SwitchProps$1, 'inputId' | 'label'> {
3336
+ /** On change callback. */
3337
+ onChange?(isChecked: boolean, value?: string, name?: string, event?: React__default.ChangeEvent): void;
3225
3338
  }
3226
3339
  /**
3227
3340
  * Switch component.
@@ -3249,9 +3362,7 @@ interface TableProps$1 extends HasTheme, HasClassName {
3249
3362
  /**
3250
3363
  * Defines the props of the component.
3251
3364
  */
3252
- interface TableProps extends GenericProps, Omit<TableProps$1, 'ref'> {
3253
- /** Children */
3254
- children?: React.ReactNode;
3365
+ interface TableProps extends GenericProps$1, ReactToJSX<TableProps$1> {
3255
3366
  }
3256
3367
  /**
3257
3368
  * Table component.
@@ -3275,9 +3386,7 @@ interface TableBodyProps$1 extends HasClassName {
3275
3386
  /**
3276
3387
  * Defines the props of the component.
3277
3388
  */
3278
- interface TableBodyProps extends GenericProps, Omit<TableBodyProps$1, 'ref'> {
3279
- /** Children */
3280
- children?: React.ReactNode;
3389
+ interface TableBodyProps extends GenericProps$1, ReactToJSX<TableBodyProps$1> {
3281
3390
  }
3282
3391
  /**
3283
3392
  * TableBody component.
@@ -3317,7 +3426,7 @@ interface TableCellProps$1 extends HasClassName {
3317
3426
  /** Variant. */
3318
3427
  variant?: TableCellVariant;
3319
3428
  /** On header cell click callback. */
3320
- onHeaderClick?(): void;
3429
+ handleClick?(): void;
3321
3430
  /** Children */
3322
3431
  children?: JSXElement;
3323
3432
  /** reference to the root element */
@@ -3327,9 +3436,9 @@ interface TableCellProps$1 extends HasClassName {
3327
3436
  /**
3328
3437
  * Defines the props of the component.
3329
3438
  */
3330
- interface TableCellProps extends GenericProps, Omit<TableCellProps$1, 'ref'> {
3331
- /** Children */
3332
- children?: React.ReactNode;
3439
+ interface TableCellProps extends GenericProps$1, ReactToJSX<TableCellProps$1> {
3440
+ /** On header cell click callback. */
3441
+ onHeaderClick?: () => void;
3333
3442
  }
3334
3443
  /**
3335
3444
  * TableCell component.
@@ -3353,9 +3462,7 @@ interface TableHeaderProps$1 extends HasClassName {
3353
3462
  /**
3354
3463
  * Defines the props of the component.
3355
3464
  */
3356
- interface TableHeaderProps extends GenericProps, Omit<TableHeaderProps$1, 'ref'> {
3357
- /** Children */
3358
- children?: React.ReactNode;
3465
+ interface TableHeaderProps extends GenericProps$1, ReactToJSX<TableHeaderProps$1, 'ref'> {
3359
3466
  }
3360
3467
  /**
3361
3468
  * TableHeader component.
@@ -3385,11 +3492,9 @@ interface TableRowProps$1 extends HasClassName, HasAriaDisabled {
3385
3492
  /**
3386
3493
  * Defines the props of the component.
3387
3494
  */
3388
- interface TableRowProps extends GenericProps, Omit<TableRowProps$1, 'ref' | 'tabIndex' | 'aria-disabled'> {
3495
+ interface TableRowProps extends GenericProps$1, ReactToJSX<TableRowProps$1, 'tabIndex' | 'aria-disabled'> {
3389
3496
  /** Whether the component is disabled or not. */
3390
3497
  isDisabled?: boolean;
3391
- /** Children */
3392
- children?: React.ReactNode;
3393
3498
  }
3394
3499
  /**
3395
3500
  * TableRow component.
@@ -3430,7 +3535,7 @@ declare enum TabListLayout {
3430
3535
  /**
3431
3536
  * Defines the props of the component.
3432
3537
  */
3433
- interface TabListProps extends GenericProps, HasTheme$1 {
3538
+ interface TabListProps extends GenericProps$1, HasTheme$1 {
3434
3539
  /** ARIA label (purpose of the set of tabs). */
3435
3540
  ['aria-label']: string;
3436
3541
  /** Tab list. */
@@ -3454,7 +3559,7 @@ declare const TabList: Comp<TabListProps, HTMLDivElement>;
3454
3559
  /**
3455
3560
  * Defines the props of the component.
3456
3561
  */
3457
- interface TabProps extends GenericProps {
3562
+ interface TabProps extends GenericProps$1 {
3458
3563
  /** Children are not supported. */
3459
3564
  children?: never;
3460
3565
  /** Icon (SVG path). */
@@ -3484,7 +3589,7 @@ declare const Tab: Comp<TabProps, HTMLButtonElement>;
3484
3589
  /**
3485
3590
  * Defines the props of the component.
3486
3591
  */
3487
- interface TabPanelProps extends GenericProps {
3592
+ interface TabPanelProps extends GenericProps$1 {
3488
3593
  /** Native id property */
3489
3594
  id?: string;
3490
3595
  /** Whether the tab is active or not. */
@@ -3503,7 +3608,7 @@ interface TabPanelProps extends GenericProps {
3503
3608
  */
3504
3609
  declare const TabPanel: Comp<TabPanelProps, HTMLDivElement>;
3505
3610
 
3506
- interface TextProps extends TextProps$1, GenericProps {
3611
+ interface TextProps extends ReactToJSX<TextProps$1>, GenericProps$1 {
3507
3612
  }
3508
3613
  /**
3509
3614
  * Text component.
@@ -3517,7 +3622,7 @@ declare const Text: Comp<TextProps, HTMLElement>;
3517
3622
  /**
3518
3623
  * Defines the props of the component.
3519
3624
  */
3520
- interface TextFieldProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
3625
+ interface TextFieldProps extends GenericProps$1, HasTheme$1, HasAriaDisabled$1 {
3521
3626
  /** Chip Group to be rendered before the main text input. */
3522
3627
  chips?: ReactNode;
3523
3628
  /** Props to pass to the clear button (minus those already set by the TextField props). If not specified, the button won't be displayed. */
@@ -3616,7 +3721,21 @@ declare const useFocusPointStyle: ({ image, aspectRatio, focusPoint, imgProps: {
3616
3721
  /**
3617
3722
  * Defines the props of the component.
3618
3723
  */
3619
- interface ToolbarProps extends GenericProps {
3724
+ interface ToolbarProps$1 extends HasClassName {
3725
+ /** After content (placed after the label). */
3726
+ after?: JSXElement;
3727
+ /** Before content (placed before the label). */
3728
+ before?: JSXElement;
3729
+ /** Label content. */
3730
+ label?: JSXElement;
3731
+ /** Component ref. */
3732
+ ref?: CommonRef;
3733
+ }
3734
+
3735
+ /**
3736
+ * Defines the props of the component.
3737
+ */
3738
+ interface ToolbarProps extends GenericProps$1, ReactToJSX<ToolbarProps$1> {
3620
3739
  /** After content (placed after the label). */
3621
3740
  after?: ReactNode;
3622
3741
  /** Before content (placed before the label). */
@@ -3640,7 +3759,7 @@ type TooltipPlacement = Extract<Placement, 'top' | 'right' | 'bottom' | 'left'>;
3640
3759
  /**
3641
3760
  * Defines the props of the component.
3642
3761
  */
3643
- interface TooltipProps extends GenericProps, HasCloseMode {
3762
+ interface TooltipProps extends GenericProps$1, HasCloseMode {
3644
3763
  /** Anchor (element on which we activate the tooltip). */
3645
3764
  children: ReactNode;
3646
3765
  /** Delay (in ms) before closing the tooltip. */
@@ -3685,7 +3804,7 @@ interface FileInputProps extends Omit<React__default.ComponentProps<'input'>, 'o
3685
3804
  /**
3686
3805
  * Defines the props of the component.
3687
3806
  */
3688
- interface UploaderProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
3807
+ interface UploaderProps extends GenericProps$1, HasTheme$1, HasAriaDisabled$1 {
3689
3808
  /** Image aspect ratio. */
3690
3809
  aspectRatio?: AspectRatio$1;
3691
3810
  /** Icon (SVG path). */
@@ -3719,7 +3838,7 @@ type UserBlockSize = Extract<Size$1, 'xs' | 's' | 'm' | 'l'>;
3719
3838
  /**
3720
3839
  * Defines the props of the component.
3721
3840
  */
3722
- interface UserBlockProps extends GenericProps, HasTheme$1 {
3841
+ interface UserBlockProps extends GenericProps$1, HasTheme$1 {
3723
3842
  /** Props to pass to the avatar. */
3724
3843
  avatarProps?: Omit<AvatarProps, 'alt'>;
3725
3844
  /** Additional fields used to describe the user. */
@@ -3733,7 +3852,7 @@ interface UserBlockProps extends GenericProps, HasTheme$1 {
3733
3852
  /** User name. */
3734
3853
  name?: React__default.ReactNode;
3735
3854
  /** Props to pass to the name block. */
3736
- nameProps?: GenericProps;
3855
+ nameProps?: GenericProps$1;
3737
3856
  /** Orientation. */
3738
3857
  orientation?: Orientation$1;
3739
3858
  /** Simple action toolbar content. */