@lumx/react 4.3.2-alpha.8 → 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
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,11 @@ 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;
728
+ /** callback for pressing a key on the button */
729
+ onKeyPress?: (event?: React.KeyboardEvent) => void;
668
730
  }
669
731
  /**
670
732
  * Button component.
@@ -695,7 +757,7 @@ interface IconButtonProps$1 extends BaseButtonProps {
695
757
  title?: string;
696
758
  }
697
759
 
698
- interface IconButtonProps extends GenericProps, Omit<IconButtonProps$1, 'title' | 'children'> {
760
+ interface IconButtonProps extends GenericProps$1, ReactToJSX<IconButtonProps$1, 'title' | 'children'> {
699
761
  /**
700
762
  * Props to pass to the tooltip.
701
763
  * If undefined or if tooltipProps.label is undefined, the label prop will be used as tooltip label.
@@ -703,6 +765,10 @@ interface IconButtonProps extends GenericProps, Omit<IconButtonProps$1, 'title'
703
765
  tooltipProps?: Partial<TooltipProps>;
704
766
  /** Whether the tooltip should be hidden or not. */
705
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;
706
772
  }
707
773
  /**
708
774
  * IconButton component.
@@ -725,7 +791,7 @@ interface ButtonGroupProps$1 extends HasClassName {
725
791
  ref?: CommonRef;
726
792
  }
727
793
 
728
- interface ButtonGroupProps extends GenericProps, ButtonGroupProps$1 {
794
+ interface ButtonGroupProps extends GenericProps$1, ReactToJSX<ButtonGroupProps$1> {
729
795
  }
730
796
  /**
731
797
  * ButtonGroup component.
@@ -757,7 +823,7 @@ interface CheckboxProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDi
757
823
  /** Native input id. */
758
824
  inputId: string;
759
825
  /** On change callback. */
760
- onChange?(isChecked: boolean, value?: string, name?: string, event?: any): void;
826
+ handleChange?(isChecked: boolean, value?: string, name?: string, event?: any): void;
761
827
  /** reference to the root element */
762
828
  ref?: CommonRef;
763
829
  }
@@ -765,7 +831,9 @@ interface CheckboxProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDi
765
831
  /**
766
832
  * Defines the props of the component.
767
833
  */
768
- 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;
769
837
  }
770
838
  /**
771
839
  * Checkbox component.
@@ -783,7 +851,7 @@ type ChipSize = Extract<Size$1, 's' | 'm'>;
783
851
  /**
784
852
  * Defines the props of the component.
785
853
  */
786
- interface ChipProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
854
+ interface ChipProps extends GenericProps$1, HasTheme$1, HasAriaDisabled$1 {
787
855
  /** A component to be rendered after the content. */
788
856
  after?: ReactNode;
789
857
  /** A component to be rendered before the content. */
@@ -829,7 +897,7 @@ type useChipGroupNavigationType<C = any> = (chips: C[], onChipDeleted: (chip: C)
829
897
  /**
830
898
  * Defines the props of the component.
831
899
  */
832
- interface ChipGroupProps extends GenericProps {
900
+ interface ChipGroupProps extends GenericProps$1 {
833
901
  /**
834
902
  * Chip horizontal alignment.
835
903
  * @deprecated
@@ -842,7 +910,7 @@ declare const ChipGroup: Comp<ChipGroupProps, HTMLDivElement> & {
842
910
  useChipGroupNavigation: useChipGroupNavigationType<any>;
843
911
  };
844
912
 
845
- interface SelectionChipGroupProps<O> extends GenericProps {
913
+ interface SelectionChipGroupProps<O> extends GenericProps$1 {
846
914
  /**
847
915
  * Option object id selector (either the property name or a function to get the id)
848
916
  */
@@ -909,7 +977,7 @@ type CommentBlockVariant = ValueOf$1<typeof CommentBlockVariant>;
909
977
  /**
910
978
  * Defines the props of the component.
911
979
  */
912
- interface CommentBlockProps extends GenericProps, HasTheme$1 {
980
+ interface CommentBlockProps extends GenericProps$1, HasTheme$1 {
913
981
  /** Action toolbar content. */
914
982
  actions?: ReactNode;
915
983
  /** Props to pass to the avatar. */
@@ -962,7 +1030,7 @@ declare const CommentBlock: Comp<CommentBlockProps, HTMLDivElement>;
962
1030
  /**
963
1031
  * Defines the props of the component.
964
1032
  */
965
- interface DatePickerProps extends GenericProps {
1033
+ interface DatePickerProps extends GenericProps$1 {
966
1034
  /** Default month. */
967
1035
  defaultMonth?: Date;
968
1036
  /** Locale (language or region) to use. */
@@ -1017,7 +1085,7 @@ declare const DatePickerControlled: Comp<DatePickerControlledProps, HTMLDivEleme
1017
1085
  /**
1018
1086
  * Defines the props of the component.
1019
1087
  */
1020
- interface DatePickerFieldProps extends Omit<TextFieldProps, 'value' | 'onChange'>, GenericProps {
1088
+ interface DatePickerFieldProps extends Omit<TextFieldProps, 'value' | 'onChange'>, GenericProps$1 {
1021
1089
  /** Default month. */
1022
1090
  defaultMonth?: Date;
1023
1091
  /** Locale (language or region) to use. */
@@ -1047,7 +1115,7 @@ declare const DatePickerField: Comp<DatePickerFieldProps, HTMLDivElement>;
1047
1115
  /**
1048
1116
  * Defines the props of the component.
1049
1117
  */
1050
- interface DialogProps extends GenericProps {
1118
+ interface DialogProps extends GenericProps$1 {
1051
1119
  /** Footer content. */
1052
1120
  footer?: ReactNode;
1053
1121
  /** Whether the divider between the dialog content and the footer is always displayed (instead of showing it on scroll). */
@@ -1077,7 +1145,7 @@ interface DialogProps extends GenericProps {
1077
1145
  /** Z-axis position. */
1078
1146
  zIndex?: number;
1079
1147
  /** Z-axis position. */
1080
- dialogProps?: GenericProps;
1148
+ dialogProps?: GenericProps$1;
1081
1149
  /** On close callback. */
1082
1150
  onClose?(): void;
1083
1151
  /** Callback called when the open animation starts and the close animation finishes. */
@@ -1108,7 +1176,7 @@ interface DividerProps$1 extends HasTheme, HasClassName {
1108
1176
  /**
1109
1177
  * Defines the props of the component.
1110
1178
  */
1111
- interface DividerProps extends GenericProps, DividerProps$1 {
1179
+ interface DividerProps extends GenericProps$1, ReactToJSX<DividerProps$1> {
1112
1180
  }
1113
1181
  /**
1114
1182
  * Divider component.
@@ -1122,7 +1190,7 @@ declare const Divider: Comp<DividerProps, HTMLHRElement>;
1122
1190
  /**
1123
1191
  * Defines the props of the component.
1124
1192
  */
1125
- interface DragHandleProps extends GenericProps, HasTheme$1 {
1193
+ interface DragHandleProps extends GenericProps$1, HasTheme$1 {
1126
1194
  }
1127
1195
  /**
1128
1196
  * DragHandle component.
@@ -1180,7 +1248,7 @@ type FitAnchorWidth = ValueOf$1<typeof FitAnchorWidth>;
1180
1248
  /**
1181
1249
  * Defines the props of the component.
1182
1250
  */
1183
- interface PopoverProps extends GenericProps, HasTheme$1 {
1251
+ interface PopoverProps extends GenericProps$1, HasTheme$1 {
1184
1252
  /** Reference to the DOM element used to set the position of the popover. */
1185
1253
  anchorRef: React.RefObject<HTMLElement>;
1186
1254
  /** Customize the root element. (Must accept ref forwarding and props forwarding!). */
@@ -1241,7 +1309,7 @@ declare const Popover: Comp<PopoverProps, HTMLDivElement>;
1241
1309
  /**
1242
1310
  * Defines the props of the component.
1243
1311
  */
1244
- interface DropdownProps extends GenericProps {
1312
+ interface DropdownProps extends GenericProps$1 {
1245
1313
  /**
1246
1314
  * Reference to the element around which the dropdown is placed.
1247
1315
  * @see {@link PopoverProps#anchorRef}
@@ -1322,7 +1390,7 @@ declare const Dropdown: Comp<DropdownProps, HTMLDivElement>;
1322
1390
  /**
1323
1391
  * Defines the props of the component.
1324
1392
  */
1325
- interface ExpansionPanelProps extends GenericProps, HasCloseMode, HasTheme$1 {
1393
+ interface ExpansionPanelProps extends GenericProps$1, HasCloseMode, HasTheme$1 {
1326
1394
  /** Whether the expansion panel has a background. */
1327
1395
  hasBackground?: boolean;
1328
1396
  /** Whether the header has a divider. */
@@ -1413,7 +1481,7 @@ interface FlagProps$1 extends HasClassName, HasTheme {
1413
1481
  Text: (props: TextProps$1) => any;
1414
1482
  }
1415
1483
 
1416
- interface FlagProps extends GenericProps, Omit<FlagProps$1, 'children' | 'Text'> {
1484
+ interface FlagProps extends GenericProps$1, ReactToJSX<FlagProps$1, 'children' | 'Text'> {
1417
1485
  /** Text label of the flag. */
1418
1486
  label: React.ReactNode;
1419
1487
  }
@@ -1459,7 +1527,7 @@ interface FlexBoxProps$1 extends HasClassName {
1459
1527
  /**
1460
1528
  * Defines the props of the component.
1461
1529
  */
1462
- interface FlexBoxProps extends GenericProps, FlexBoxProps$1 {
1530
+ interface FlexBoxProps extends GenericProps$1, ReactToJSX<FlexBoxProps$1> {
1463
1531
  /** Customize the root element. */
1464
1532
  as?: React__default.ElementType;
1465
1533
  }
@@ -1583,7 +1651,7 @@ interface HeadingProps$1 extends Partial<TextProps$1> {
1583
1651
  as?: HeadingElement;
1584
1652
  }
1585
1653
 
1586
- interface HeadingProps extends GenericProps, HeadingProps$1 {
1654
+ interface HeadingProps extends GenericProps$1, HeadingProps$1 {
1587
1655
  }
1588
1656
  /**
1589
1657
  * Renders a heading component.
@@ -1612,7 +1680,7 @@ type GridGutterSize = Extract<Size$1, 'regular' | 'big' | 'huge'>;
1612
1680
  /**
1613
1681
  * Defines the props of the component.
1614
1682
  */
1615
- interface GridProps extends GenericProps {
1683
+ interface GridProps extends GenericProps$1 {
1616
1684
  /** Orientation. */
1617
1685
  orientation?: Orientation$1;
1618
1686
  /** Whether the children are wrapped or not. */
@@ -1639,7 +1707,7 @@ type Columns = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11'
1639
1707
  /**
1640
1708
  * Defines the props of the component.
1641
1709
  */
1642
- interface GridItemProps extends GenericProps {
1710
+ interface GridItemProps extends GenericProps$1 {
1643
1711
  /** Alignment. */
1644
1712
  align?: Alignment$1;
1645
1713
  /** Order. */
@@ -1658,22 +1726,35 @@ interface GridItemProps extends GenericProps {
1658
1726
  */
1659
1727
  declare const GridItem: Comp<GridItemProps, HTMLDivElement>;
1660
1728
 
1661
- type GridColumnGapSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
1729
+ type GridColumnGapSize = Extract<Size, 'tiny' | 'regular' | 'big' | 'huge'>;
1662
1730
  /**
1663
1731
  * Defines the props of the component.
1664
1732
  */
1665
- interface GridColumnProps extends GenericProps {
1733
+ interface GridColumnProps$1 extends HasClassName {
1666
1734
  /** Customize the root element. */
1667
- as?: React.ElementType;
1735
+ as?: any;
1668
1736
  /** Children elements. */
1669
- children?: ReactNode;
1737
+ children?: JSXElement;
1670
1738
  /** Space between columns and rows. */
1671
1739
  gap?: GridColumnGapSize;
1672
1740
  /** Ideal number of columns. */
1673
1741
  maxColumns?: number;
1674
1742
  /** Minimum width for each item, reduce the number of column if there is not enough space. */
1675
1743
  itemMinWidth?: number;
1744
+ /** Custom styles. */
1745
+ style?: any;
1746
+ /** reference to the root element */
1747
+ ref?: CommonRef;
1676
1748
  }
1749
+
1750
+ /**
1751
+ * Defines the props of the component.
1752
+ */
1753
+ interface GridColumnProps extends GenericProps$1, ReactToJSX<GridColumnProps$1> {
1754
+ /** Customize the root element. */
1755
+ as?: React.ElementType;
1756
+ }
1757
+
1677
1758
  /**
1678
1759
  * The GridColumn is a layout component that can display children in a grid
1679
1760
  * with custom display properties. It also comes with a responsive design,
@@ -1713,7 +1794,7 @@ interface IconProps$1 extends HasClassName, HasTheme {
1713
1794
  ref?: CommonRef;
1714
1795
  }
1715
1796
 
1716
- interface IconProps extends Omit<IconProps$1, 'children'>, GenericProps {
1797
+ interface IconProps extends ReactToJSX<IconProps$1>, GenericProps$1 {
1717
1798
  }
1718
1799
  /**
1719
1800
  * Icon component.
@@ -1793,15 +1874,15 @@ interface ThumbnailProps$1 extends HasTheme$1, HasClassName$1 {
1793
1874
  /** Ref of an existing placeholder image to display while loading. */
1794
1875
  loadingPlaceholderImageRef?: React.RefObject<HTMLImageElement>;
1795
1876
  /** On click callback. */
1796
- onClick?: (event: any) => void;
1877
+ handleClick?: (event: any) => void;
1797
1878
  /** On key press callback. */
1798
- onKeyPress?: (event: any) => void;
1879
+ handleKeyPress?: (event: any) => void;
1799
1880
  /** Variant of the component. */
1800
1881
  variant?: ThumbnailVariant$1;
1801
1882
  /** Props to pass to the link wrapping the thumbnail. */
1802
- linkProps?: GenericProps;
1803
- focusPointStyle?: GenericProps;
1804
- disabledStateProps?: GenericProps;
1883
+ linkProps?: GenericProps$1;
1884
+ focusPointStyle?: GenericProps$1;
1885
+ disabledStateProps?: GenericProps$1;
1805
1886
  isAnyDisabled?: boolean;
1806
1887
  /** Custom react component for the link (can be used to inject react router Link). */
1807
1888
  linkAs?: 'a' | any;
@@ -1854,11 +1935,15 @@ type ThumbnailObjectFit = ValueOf$1<typeof ThumbnailObjectFit>;
1854
1935
  /**
1855
1936
  * Defines the props of the component.
1856
1937
  */
1857
- 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'> {
1858
1939
  /** Apply relative vertical and horizontal shift (from -1 to 1) on the image position inside the thumbnail. */
1859
1940
  focusPoint?: FocusPoint;
1860
1941
  /** Badge. */
1861
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>;
1862
1947
  }
1863
1948
  /**
1864
1949
  * Thumbnail component.
@@ -1902,7 +1987,7 @@ type ImageBlockSize = Extract<Size$1, 'xl' | 'xxl'>;
1902
1987
  /**
1903
1988
  * Defines the props of the component.
1904
1989
  */
1905
- interface ImageBlockProps extends GenericProps, HasTheme$1, ImageCaptionMetadata {
1990
+ interface ImageBlockProps extends GenericProps$1, HasTheme$1, ImageCaptionMetadata {
1906
1991
  /** Action toolbar content. */
1907
1992
  actions?: ReactNode;
1908
1993
  /** Alignment. */
@@ -1973,7 +2058,7 @@ declare function useImageLightbox<P extends Partial<ImageLightboxProps>>(props:
1973
2058
  * @param index Provide an index to choose which image to display when the image lightbox opens.
1974
2059
  * */
1975
2060
  getTriggerProps: (options?: TriggerOptions) => {
1976
- onClick: React__default.MouseEventHandler;
2061
+ onClick: (ev?: React__default.MouseEvent) => void;
1977
2062
  ref: React__default.Ref<any>;
1978
2063
  };
1979
2064
  /** Props to forward to the ImageLightbox */
@@ -1994,7 +2079,7 @@ declare const ImageLightbox: Comp<ImageLightboxProps, HTMLDivElement> & {
1994
2079
  /**
1995
2080
  * Defines the props of the component.
1996
2081
  */
1997
- interface InlineListProps extends GenericProps {
2082
+ interface InlineListProps extends GenericProps$1 {
1998
2083
  /**
1999
2084
  * Text color.
2000
2085
  */
@@ -2039,7 +2124,7 @@ interface InputHelperProps$1 extends HasClassName, HasTheme {
2039
2124
  id?: string;
2040
2125
  }
2041
2126
 
2042
- interface InputHelperProps extends InputHelperProps$1, GenericProps {
2127
+ interface InputHelperProps extends ReactToJSX<InputHelperProps$1>, GenericProps$1 {
2043
2128
  }
2044
2129
  /**
2045
2130
  * InputHelper component.
@@ -2063,7 +2148,7 @@ interface InputLabelProps$1 extends HasClassName, HasTheme {
2063
2148
  ref?: CommonRef;
2064
2149
  }
2065
2150
 
2066
- interface InputLabelProps extends InputLabelProps$1, GenericProps {
2151
+ interface InputLabelProps extends ReactToJSX<InputLabelProps$1>, GenericProps$1 {
2067
2152
  }
2068
2153
  /**
2069
2154
  * InputLabel component.
@@ -2077,7 +2162,7 @@ declare const InputLabel: Comp<InputLabelProps, HTMLLabelElement>;
2077
2162
  /**
2078
2163
  * Defines the props of the component.
2079
2164
  */
2080
- 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'> {
2081
2166
  /** Props to pass to the close button (minus those already set by the Lightbox props). */
2082
2167
  closeButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis' | 'color'>;
2083
2168
  /** Whether the component is open or not. */
@@ -2107,52 +2192,47 @@ declare const Lightbox: Comp<LightboxProps, HTMLDivElement>;
2107
2192
  /**
2108
2193
  * Defines the props of the component.
2109
2194
  */
2110
- interface LinkProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled {
2111
- /** Link label content. */
2112
- label?: JSXElement;
2195
+ interface LinkProps$1 extends HasClassName, HasAriaDisabled, HasDisabled {
2196
+ /** Children content */
2197
+ children?: JSXElement;
2113
2198
  /** Color variant. */
2114
- color?: ColorWithVariants$1;
2199
+ color?: ColorWithVariants;
2115
2200
  /** Lightened or darkened variant of the selected icon color. */
2116
- colorVariant?: ColorVariant$1;
2201
+ colorVariant?: ColorVariant;
2117
2202
  /** Link href. */
2118
2203
  href?: string;
2119
- /**
2120
- * Left icon (SVG path).
2121
- * @deprecated Instead, simply nest `<Icon />` in the label
2122
- */
2123
- leftIcon?: string;
2124
- /** Element type or custom component for the link. */
2125
- as?: string | any;
2126
- /**
2127
- * Right icon (SVG path).
2128
- * @deprecated Instead, simply nest `<Icon />` in the label
2129
- */
2130
- 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;
2131
2210
  /** Link target. */
2132
2211
  target?: string;
2133
2212
  /** Typography variant. */
2134
- typography?: string;
2135
- /** Click handler. */
2136
- onClick?: (event: any) => void;
2137
- /** Reference to the root element. */
2213
+ typography?: Typography;
2214
+ /** Element ref. */
2138
2215
  ref?: CommonRef;
2139
2216
  }
2140
2217
 
2141
- type HTMLAnchorProps = React__default.DetailedHTMLProps<React__default.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
2142
2218
  /**
2143
2219
  * Defines the props of the component.
2144
2220
  */
2145
- interface LinkProps extends GenericProps, Omit<LinkProps$1, 'label'> {
2146
- /** Link href. */
2147
- href?: HTMLAnchorProps['href'];
2148
- /** Custom react component for the link (can be used to inject react router Link). */
2149
- linkAs?: 'a' | any;
2150
- /** Link target. */
2151
- target?: HTMLAnchorProps['target'];
2152
- /** Typography variant. */
2153
- 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;
2154
2234
  /** Children */
2155
- children?: React__default.ReactNode;
2235
+ children?: React.ReactNode;
2156
2236
  }
2157
2237
  /**
2158
2238
  * Link component.
@@ -2166,7 +2246,7 @@ declare const Link: Comp<LinkProps, HTMLButtonElement | HTMLAnchorElement>;
2166
2246
  /**
2167
2247
  * Defines the props of the component.
2168
2248
  */
2169
- interface LinkPreviewProps extends GenericProps, HasTheme$1 {
2249
+ interface LinkPreviewProps extends GenericProps$1, HasTheme$1 {
2170
2250
  /** Description. */
2171
2251
  description?: string;
2172
2252
  /** Link URL. */
@@ -2209,7 +2289,7 @@ type useKeyboardListNavigationType = <I>(items: I[], ref: RefObject<HTMLElement>
2209
2289
  /**
2210
2290
  * Defines the props of the component.
2211
2291
  */
2212
- interface ListProps extends GenericProps {
2292
+ interface ListProps extends GenericProps$1 {
2213
2293
  /** List content (should be ListItem, ListSubheader or ListDivider). */
2214
2294
  children: ReactNode;
2215
2295
  /**
@@ -2238,7 +2318,7 @@ type ListItemSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
2238
2318
  /**
2239
2319
  * Defines the props of the component.
2240
2320
  */
2241
- interface ListItemProps extends GenericProps, HasAriaDisabled$1 {
2321
+ interface ListItemProps extends GenericProps$1, HasAriaDisabled$1 {
2242
2322
  /** A component to be rendered after the content. */
2243
2323
  after?: ReactNode;
2244
2324
  /** A component to be rendered before the content. */
@@ -2281,7 +2361,7 @@ declare const ListItem: Comp<ListItemProps, HTMLLIElement>;
2281
2361
  /**
2282
2362
  * Defines the props of the component.
2283
2363
  */
2284
- type ListDividerProps = GenericProps;
2364
+ type ListDividerProps = GenericProps$1;
2285
2365
  /**
2286
2366
  * ListDivider component.
2287
2367
  *
@@ -2289,12 +2369,12 @@ type ListDividerProps = GenericProps;
2289
2369
  * @param ref Component ref.
2290
2370
  * @return React element.
2291
2371
  */
2292
- declare const ListDivider: Comp<GenericProps, HTMLLIElement>;
2372
+ declare const ListDivider: Comp<GenericProps$1, HTMLLIElement>;
2293
2373
 
2294
2374
  /**
2295
2375
  * Defines the props of the component.
2296
2376
  */
2297
- interface ListSubheaderProps extends GenericProps {
2377
+ interface ListSubheaderProps extends GenericProps$1 {
2298
2378
  /** Content. */
2299
2379
  children: string | ReactNode;
2300
2380
  }
@@ -2334,9 +2414,7 @@ interface MessageProps$1 extends HasClassName {
2334
2414
  };
2335
2415
  }
2336
2416
 
2337
- interface MessageProps extends GenericProps, Omit<MessageProps$1, 'children' | 'ref'> {
2338
- /** Content. */
2339
- children?: React.ReactNode;
2417
+ interface MessageProps extends GenericProps$1, ReactToJSX<MessageProps$1> {
2340
2418
  }
2341
2419
  /**
2342
2420
  * Message component.
@@ -2350,7 +2428,7 @@ declare const Message: Comp<MessageProps, HTMLDivElement>;
2350
2428
  /**
2351
2429
  * Defines the props of the component.
2352
2430
  */
2353
- interface MosaicProps extends GenericProps, HasTheme$1 {
2431
+ interface MosaicProps extends GenericProps$1, HasTheme$1 {
2354
2432
  /** Thumbnails. */
2355
2433
  thumbnails: ThumbnailProps[];
2356
2434
  /** On image click callback. */
@@ -2406,7 +2484,7 @@ declare const Navigation: Comp<NavigationProps, HTMLElement> & SubComponents;
2406
2484
  /**
2407
2485
  * Defines the props of the component.
2408
2486
  */
2409
- interface NotificationProps extends GenericProps, HasTheme$1 {
2487
+ interface NotificationProps extends GenericProps$1, HasTheme$1 {
2410
2488
  /** Action button label. */
2411
2489
  actionLabel?: string;
2412
2490
  /** Content. */
@@ -2450,7 +2528,7 @@ declare const PopoverDialog: Comp<PopoverDialogProps, HTMLDivElement>;
2450
2528
  /**
2451
2529
  * Defines the props of the component.
2452
2530
  */
2453
- interface PostBlockProps extends GenericProps, HasTheme$1 {
2531
+ interface PostBlockProps extends GenericProps$1, HasTheme$1 {
2454
2532
  /** Action toolbar content. */
2455
2533
  actions?: ReactNode;
2456
2534
  /** Attachment content. */
@@ -2494,7 +2572,7 @@ type ProgressVariant = ValueOf$1<typeof ProgressVariant>;
2494
2572
  /**
2495
2573
  * Defines the props of the component.
2496
2574
  */
2497
- interface ProgressProps extends GenericProps, HasTheme$1 {
2575
+ interface ProgressProps extends GenericProps$1, HasTheme$1 {
2498
2576
  /** Progress variant. */
2499
2577
  variant?: ProgressVariant;
2500
2578
  }
@@ -2511,11 +2589,11 @@ declare const Progress: Comp<ProgressProps, HTMLDivElement>;
2511
2589
  /**
2512
2590
  * Progress sizes.
2513
2591
  */
2514
- type ProgressCircularSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm'>;
2592
+ type ProgressCircularSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm'>;
2515
2593
  /**
2516
2594
  * Defines the props of the component.
2517
2595
  */
2518
- interface ProgressCircularProps extends GenericProps, HasTheme$1 {
2596
+ interface ProgressCircularProps$1 extends HasTheme, HasClassName {
2519
2597
  /**
2520
2598
  * Progress circular size.
2521
2599
  */
@@ -2525,9 +2603,22 @@ interface ProgressCircularProps extends GenericProps, HasTheme$1 {
2525
2603
  * @default 'block'
2526
2604
  */
2527
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;
2612
+ }
2613
+
2614
+ /**
2615
+ * Defines the props of the component.
2616
+ */
2617
+ interface ProgressCircularProps extends GenericProps$1, ReactToJSX<ProgressCircularProps$1> {
2528
2618
  }
2619
+
2529
2620
  /**
2530
- * ProgressCircularProps component.
2621
+ * ProgressCircular component.
2531
2622
  *
2532
2623
  * @param props Component props.
2533
2624
  * @param ref Component ref.
@@ -2535,7 +2626,18 @@ interface ProgressCircularProps extends GenericProps, HasTheme$1 {
2535
2626
  */
2536
2627
  declare const ProgressCircular: Comp<ProgressCircularProps, HTMLDivElement>;
2537
2628
 
2538
- 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> {
2539
2641
  }
2540
2642
  /**
2541
2643
  * ProgressLinear component.
@@ -2574,7 +2676,7 @@ declare const ProgressTrackerProvider: React.FC<ProgressTrackerProviderProps>;
2574
2676
  /**
2575
2677
  * Defines the props of the component.
2576
2678
  */
2577
- interface ProgressTrackerProps extends GenericProps {
2679
+ interface ProgressTrackerProps extends GenericProps$1 {
2578
2680
  /** ARIA label (purpose of the set of steps). */
2579
2681
  ['aria-label']: string;
2580
2682
  /** Step list. */
@@ -2594,7 +2696,7 @@ declare const ProgressTracker: Comp<ProgressTrackerProps, HTMLDivElement>;
2594
2696
  /**
2595
2697
  * Defines the props of the component.
2596
2698
  */
2597
- interface ProgressTrackerStepProps extends GenericProps {
2699
+ interface ProgressTrackerStepProps extends GenericProps$1 {
2598
2700
  /** Children are not supported. */
2599
2701
  children?: never;
2600
2702
  /** Whether the step should be in error state or not. */
@@ -2626,7 +2728,7 @@ declare const ProgressTrackerStep: Comp<ProgressTrackerStepProps, HTMLButtonElem
2626
2728
  /**
2627
2729
  * Defines the props of the component.
2628
2730
  */
2629
- interface ProgressTrackerStepPanelProps extends GenericProps {
2731
+ interface ProgressTrackerStepPanelProps extends GenericProps$1 {
2630
2732
  /** Native id property. */
2631
2733
  id?: string;
2632
2734
  /** Whether the step is active or not. */
@@ -2666,7 +2768,7 @@ interface RadioButtonProps$1 extends HasTheme, HasClassName, HasAriaDisabled, Ha
2666
2768
  /** Native input id. */
2667
2769
  inputId: string;
2668
2770
  /** On change callback. */
2669
- onChange?(value?: string, name?: string, event?: any): void;
2771
+ handleChange?(value?: string, name?: string, event?: any): void;
2670
2772
  /** reference to the root element */
2671
2773
  ref?: CommonRef;
2672
2774
  }
@@ -2674,7 +2776,9 @@ interface RadioButtonProps$1 extends HasTheme, HasClassName, HasAriaDisabled, Ha
2674
2776
  /**
2675
2777
  * Defines the props of the component.
2676
2778
  */
2677
- 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;
2678
2782
  }
2679
2783
  /**
2680
2784
  * RadioButton component.
@@ -2688,9 +2792,17 @@ declare const RadioButton: Comp<RadioButtonProps, HTMLDivElement>;
2688
2792
  /**
2689
2793
  * Defines the props of the component.
2690
2794
  */
2691
- interface RadioGroupProps extends GenericProps {
2795
+ interface RadioGroupProps$1 extends HasClassName {
2692
2796
  /** RadioButton elements */
2693
- 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> {
2694
2806
  }
2695
2807
  /**
2696
2808
  * RadioGroup component.
@@ -2709,7 +2821,7 @@ declare const SelectVariant: {
2709
2821
  readonly chip: "chip";
2710
2822
  };
2711
2823
  type SelectVariant = ValueOf$1<typeof SelectVariant>;
2712
- interface CoreSelectProps extends GenericProps, HasTheme$1 {
2824
+ interface CoreSelectProps extends GenericProps$1, HasTheme$1 {
2713
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. */
2714
2826
  clearButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
2715
2827
  /** Whether the select (input variant) is displayed with error style or not. */
@@ -2737,7 +2849,7 @@ interface CoreSelectProps extends GenericProps, HasTheme$1 {
2737
2849
  /** Select variant. */
2738
2850
  variant?: SelectVariant;
2739
2851
  /** On clear callback. */
2740
- onClear?(event: SyntheticEvent, value?: string): void;
2852
+ onClear?(event?: SyntheticEvent, value?: string): void;
2741
2853
  /** On blur callback. */
2742
2854
  onBlur?(): void;
2743
2855
  /** On filter text change callback (with 500ms debounce). */
@@ -2789,7 +2901,7 @@ declare const SelectMultiple: Comp<SelectMultipleProps, HTMLDivElement>;
2789
2901
  /**
2790
2902
  * Defines the props of the component.
2791
2903
  */
2792
- interface SideNavigationProps extends GenericProps, HasTheme$1 {
2904
+ interface SideNavigationProps extends GenericProps$1, HasTheme$1 {
2793
2905
  /** SideNavigationItem elements. */
2794
2906
  children: ReactNode;
2795
2907
  }
@@ -2805,7 +2917,7 @@ declare const SideNavigation: Comp<SideNavigationProps, HTMLUListElement>;
2805
2917
  /**
2806
2918
  * Defines the props of the component.
2807
2919
  */
2808
- interface SideNavigationItemProps extends GenericProps, HasCloseMode {
2920
+ interface SideNavigationItemProps extends GenericProps$1, HasCloseMode {
2809
2921
  /** SideNavigationItem elements. */
2810
2922
  children?: ReactNode;
2811
2923
  /** Emphasis variant. */
@@ -2896,7 +3008,7 @@ interface SkeletonTypographyProps$1 extends HasTheme, HasClassName {
2896
3008
  /**
2897
3009
  * Defines the props of the component.
2898
3010
  */
2899
- interface SkeletonCircleProps extends GenericProps, SkeletonCircleProps$1 {
3011
+ interface SkeletonCircleProps extends GenericProps$1, ReactToJSX<SkeletonCircleProps$1> {
2900
3012
  }
2901
3013
  /**
2902
3014
  * SkeletonCircle component.
@@ -2910,7 +3022,7 @@ declare const SkeletonCircle: Comp<SkeletonCircleProps, HTMLDivElement>;
2910
3022
  /**
2911
3023
  * Defines the props of the component.
2912
3024
  */
2913
- interface SkeletonRectangleProps extends GenericProps, SkeletonRectangleProps$1 {
3025
+ interface SkeletonRectangleProps extends GenericProps$1, ReactToJSX<SkeletonRectangleProps$1> {
2914
3026
  }
2915
3027
  /**
2916
3028
  * SkeletonRectangle component.
@@ -2924,7 +3036,7 @@ declare const SkeletonRectangle: Comp<SkeletonRectangleProps, HTMLDivElement>;
2924
3036
  /**
2925
3037
  * Defines the props of the component.
2926
3038
  */
2927
- interface SkeletonTypographyProps extends GenericProps, SkeletonTypographyProps$1 {
3039
+ interface SkeletonTypographyProps extends GenericProps$1, ReactToJSX<SkeletonTypographyProps$1> {
2928
3040
  }
2929
3041
  /**
2930
3042
  * SkeletonTypography component.
@@ -2938,7 +3050,7 @@ declare const SkeletonTypography: Comp<SkeletonTypographyProps, HTMLDivElement>;
2938
3050
  /**
2939
3051
  * Defines the props of the component.
2940
3052
  */
2941
- interface SliderProps extends GenericProps, HasTheme$1 {
3053
+ interface SliderProps extends GenericProps$1, HasTheme$1 {
2942
3054
  /** Helper text. */
2943
3055
  helper?: string;
2944
3056
  /** Whether the min and max labels should be hidden or not. */
@@ -2997,7 +3109,7 @@ type SlideMode = ValueOf$1<typeof SlideMode>;
2997
3109
  /**
2998
3110
  * Defines the props of the component.
2999
3111
  */
3000
- 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'> {
3001
3113
  /** Whether to use CSS transform translate or native scroll snap. */
3002
3114
  slideMode?: SlideMode;
3003
3115
  /** current slide active */
@@ -3023,7 +3135,7 @@ declare const Slideshow: Comp<SlideshowProps, HTMLDivElement>;
3023
3135
  /**
3024
3136
  * Defines the props of the component.
3025
3137
  */
3026
- interface SlideshowItemProps extends GenericProps {
3138
+ interface SlideshowItemProps extends GenericProps$1 {
3027
3139
  /** interval in which slides are automatically shown */
3028
3140
  interval?: number;
3029
3141
  /** Children */
@@ -3102,7 +3214,7 @@ interface UseSlideshowControls {
3102
3214
  /**
3103
3215
  * Defines the props of the component.
3104
3216
  */
3105
- interface SlideshowControlsProps extends GenericProps, HasTheme$1 {
3217
+ interface SlideshowControlsProps extends GenericProps$1, HasTheme$1 {
3106
3218
  /** Index of the current slide. */
3107
3219
  activeIndex?: number;
3108
3220
  /** Props to pass to the next button (minus those already set by the SlideshowControls props). */
@@ -3146,7 +3258,7 @@ declare const SlideshowControls: Comp<SlideshowControlsProps, HTMLDivElement> &
3146
3258
  };
3147
3259
  };
3148
3260
 
3149
- interface SlidesProps extends GenericProps, HasTheme$1 {
3261
+ interface SlidesProps extends GenericProps$1, HasTheme$1 {
3150
3262
  /** current slide active */
3151
3263
  activeIndex: number;
3152
3264
  /** slides id to be added to the wrapper */
@@ -3209,7 +3321,7 @@ interface SwitchProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisa
3209
3321
  /** Native input id. */
3210
3322
  inputId: string;
3211
3323
  /** On change callback. */
3212
- onChange?(isChecked: boolean, value?: string, name?: string, event?: any): void;
3324
+ handleChange?(isChecked: boolean, value?: string, name?: string, event?: any): void;
3213
3325
  /** Position of the switch relative to the label. */
3214
3326
  position?: 'left' | 'right';
3215
3327
  /** reference to the root element */
@@ -3219,9 +3331,9 @@ interface SwitchProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisa
3219
3331
  /**
3220
3332
  * Defines the props of the component.
3221
3333
  */
3222
- interface SwitchProps extends GenericProps, Omit<SwitchProps$1, 'inputId' | 'label'> {
3223
- /** Children (label content). */
3224
- 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;
3225
3337
  }
3226
3338
  /**
3227
3339
  * Switch component.
@@ -3249,9 +3361,7 @@ interface TableProps$1 extends HasTheme, HasClassName {
3249
3361
  /**
3250
3362
  * Defines the props of the component.
3251
3363
  */
3252
- interface TableProps extends GenericProps, Omit<TableProps$1, 'ref'> {
3253
- /** Children */
3254
- children?: React.ReactNode;
3364
+ interface TableProps extends GenericProps$1, ReactToJSX<TableProps$1> {
3255
3365
  }
3256
3366
  /**
3257
3367
  * Table component.
@@ -3275,9 +3385,7 @@ interface TableBodyProps$1 extends HasClassName {
3275
3385
  /**
3276
3386
  * Defines the props of the component.
3277
3387
  */
3278
- interface TableBodyProps extends GenericProps, Omit<TableBodyProps$1, 'ref'> {
3279
- /** Children */
3280
- children?: React.ReactNode;
3388
+ interface TableBodyProps extends GenericProps$1, ReactToJSX<TableBodyProps$1> {
3281
3389
  }
3282
3390
  /**
3283
3391
  * TableBody component.
@@ -3317,7 +3425,7 @@ interface TableCellProps$1 extends HasClassName {
3317
3425
  /** Variant. */
3318
3426
  variant?: TableCellVariant;
3319
3427
  /** On header cell click callback. */
3320
- onHeaderClick?(): void;
3428
+ handleClick?(): void;
3321
3429
  /** Children */
3322
3430
  children?: JSXElement;
3323
3431
  /** reference to the root element */
@@ -3327,9 +3435,9 @@ interface TableCellProps$1 extends HasClassName {
3327
3435
  /**
3328
3436
  * Defines the props of the component.
3329
3437
  */
3330
- interface TableCellProps extends GenericProps, Omit<TableCellProps$1, 'ref'> {
3331
- /** Children */
3332
- children?: React.ReactNode;
3438
+ interface TableCellProps extends GenericProps$1, ReactToJSX<TableCellProps$1> {
3439
+ /** On header cell click callback. */
3440
+ onHeaderClick?: () => void;
3333
3441
  }
3334
3442
  /**
3335
3443
  * TableCell component.
@@ -3353,9 +3461,7 @@ interface TableHeaderProps$1 extends HasClassName {
3353
3461
  /**
3354
3462
  * Defines the props of the component.
3355
3463
  */
3356
- interface TableHeaderProps extends GenericProps, Omit<TableHeaderProps$1, 'ref'> {
3357
- /** Children */
3358
- children?: React.ReactNode;
3464
+ interface TableHeaderProps extends GenericProps$1, ReactToJSX<TableHeaderProps$1, 'ref'> {
3359
3465
  }
3360
3466
  /**
3361
3467
  * TableHeader component.
@@ -3385,11 +3491,9 @@ interface TableRowProps$1 extends HasClassName, HasAriaDisabled {
3385
3491
  /**
3386
3492
  * Defines the props of the component.
3387
3493
  */
3388
- interface TableRowProps extends GenericProps, Omit<TableRowProps$1, 'ref' | 'tabIndex' | 'aria-disabled'> {
3494
+ interface TableRowProps extends GenericProps$1, ReactToJSX<TableRowProps$1, 'tabIndex' | 'aria-disabled'> {
3389
3495
  /** Whether the component is disabled or not. */
3390
3496
  isDisabled?: boolean;
3391
- /** Children */
3392
- children?: React.ReactNode;
3393
3497
  }
3394
3498
  /**
3395
3499
  * TableRow component.
@@ -3430,7 +3534,7 @@ declare enum TabListLayout {
3430
3534
  /**
3431
3535
  * Defines the props of the component.
3432
3536
  */
3433
- interface TabListProps extends GenericProps, HasTheme$1 {
3537
+ interface TabListProps extends GenericProps$1, HasTheme$1 {
3434
3538
  /** ARIA label (purpose of the set of tabs). */
3435
3539
  ['aria-label']: string;
3436
3540
  /** Tab list. */
@@ -3454,7 +3558,7 @@ declare const TabList: Comp<TabListProps, HTMLDivElement>;
3454
3558
  /**
3455
3559
  * Defines the props of the component.
3456
3560
  */
3457
- interface TabProps extends GenericProps {
3561
+ interface TabProps extends GenericProps$1 {
3458
3562
  /** Children are not supported. */
3459
3563
  children?: never;
3460
3564
  /** Icon (SVG path). */
@@ -3484,7 +3588,7 @@ declare const Tab: Comp<TabProps, HTMLButtonElement>;
3484
3588
  /**
3485
3589
  * Defines the props of the component.
3486
3590
  */
3487
- interface TabPanelProps extends GenericProps {
3591
+ interface TabPanelProps extends GenericProps$1 {
3488
3592
  /** Native id property */
3489
3593
  id?: string;
3490
3594
  /** Whether the tab is active or not. */
@@ -3503,7 +3607,7 @@ interface TabPanelProps extends GenericProps {
3503
3607
  */
3504
3608
  declare const TabPanel: Comp<TabPanelProps, HTMLDivElement>;
3505
3609
 
3506
- interface TextProps extends TextProps$1, GenericProps {
3610
+ interface TextProps extends ReactToJSX<TextProps$1>, GenericProps$1 {
3507
3611
  }
3508
3612
  /**
3509
3613
  * Text component.
@@ -3517,7 +3621,7 @@ declare const Text: Comp<TextProps, HTMLElement>;
3517
3621
  /**
3518
3622
  * Defines the props of the component.
3519
3623
  */
3520
- interface TextFieldProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
3624
+ interface TextFieldProps extends GenericProps$1, HasTheme$1, HasAriaDisabled$1 {
3521
3625
  /** Chip Group to be rendered before the main text input. */
3522
3626
  chips?: ReactNode;
3523
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. */
@@ -3616,7 +3720,21 @@ declare const useFocusPointStyle: ({ image, aspectRatio, focusPoint, imgProps: {
3616
3720
  /**
3617
3721
  * Defines the props of the component.
3618
3722
  */
3619
- 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> {
3620
3738
  /** After content (placed after the label). */
3621
3739
  after?: ReactNode;
3622
3740
  /** Before content (placed before the label). */
@@ -3640,7 +3758,7 @@ type TooltipPlacement = Extract<Placement, 'top' | 'right' | 'bottom' | 'left'>;
3640
3758
  /**
3641
3759
  * Defines the props of the component.
3642
3760
  */
3643
- interface TooltipProps extends GenericProps, HasCloseMode {
3761
+ interface TooltipProps extends GenericProps$1, HasCloseMode {
3644
3762
  /** Anchor (element on which we activate the tooltip). */
3645
3763
  children: ReactNode;
3646
3764
  /** Delay (in ms) before closing the tooltip. */
@@ -3685,7 +3803,7 @@ interface FileInputProps extends Omit<React__default.ComponentProps<'input'>, 'o
3685
3803
  /**
3686
3804
  * Defines the props of the component.
3687
3805
  */
3688
- interface UploaderProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
3806
+ interface UploaderProps extends GenericProps$1, HasTheme$1, HasAriaDisabled$1 {
3689
3807
  /** Image aspect ratio. */
3690
3808
  aspectRatio?: AspectRatio$1;
3691
3809
  /** Icon (SVG path). */
@@ -3719,7 +3837,7 @@ type UserBlockSize = Extract<Size$1, 'xs' | 's' | 'm' | 'l'>;
3719
3837
  /**
3720
3838
  * Defines the props of the component.
3721
3839
  */
3722
- interface UserBlockProps extends GenericProps, HasTheme$1 {
3840
+ interface UserBlockProps extends GenericProps$1, HasTheme$1 {
3723
3841
  /** Props to pass to the avatar. */
3724
3842
  avatarProps?: Omit<AvatarProps, 'alt'>;
3725
3843
  /** Additional fields used to describe the user. */
@@ -3733,7 +3851,7 @@ interface UserBlockProps extends GenericProps, HasTheme$1 {
3733
3851
  /** User name. */
3734
3852
  name?: React__default.ReactNode;
3735
3853
  /** Props to pass to the name block. */
3736
- nameProps?: GenericProps;
3854
+ nameProps?: GenericProps$1;
3737
3855
  /** Orientation. */
3738
3856
  orientation?: Orientation$1;
3739
3857
  /** Simple action toolbar content. */