@lumx/react 4.2.1-alpha.5 → 4.2.1-alpha.7

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,17 +1,18 @@
1
- import { Kind as Kind$1, HorizontalAlignment as HorizontalAlignment$1, Size as Size$1, ColorPalette as ColorPalette$1, GenericProps as GenericProps$1, Orientation as Orientation$1, Alignment as Alignment$1, AspectRatio, ColorWithVariants as ColorWithVariants$1, ColorVariant as ColorVariant$1, Typography as Typography$1, Emphasis as Emphasis$1, GlobalSize, TypographyInterface as TypographyInterface$1, Theme as Theme$1 } from '@lumx/core/js/constants';
1
+ import { Kind as Kind$1, HorizontalAlignment as HorizontalAlignment$1, Size as Size$1, ColorPalette as ColorPalette$1, GenericProps as GenericProps$2, Orientation as Orientation$1, Alignment as Alignment$1, AspectRatio, ColorWithVariants as ColorWithVariants$1, ColorVariant as ColorVariant$1, Typography as Typography$1, Emphasis as Emphasis$1, GlobalSize, TypographyInterface as TypographyInterface$1, Theme as Theme$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, HasAriaDisabled as HasAriaDisabled$1, HasCloseMode, Falsy, HasClassName as HasClassName$1, HeadingElement as HeadingElement$1, HasRequiredLinkHref, HasAriaLabelOrLabelledBy } from '@lumx/core/js/types';
4
+ import { GenericProps as GenericProps$1, HasTheme as HasTheme$1, ValueOf, HasAriaDisabled as HasAriaDisabled$1, HasCloseMode, Falsy, HasClassName as HasClassName$1, 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, InputHTMLAttributes, RefObject, CSSProperties, ImgHTMLAttributes, SetStateAction, Key, ElementType, ComponentProps } from 'react';
8
- import { GenericProps as GenericProps$2 } from '@lumx/core/js/utils/disabledState';
7
+ import React__default, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, InputHTMLAttributes, RefObject, CSSProperties, ImgHTMLAttributes, AriaAttributes as AriaAttributes$1, SetStateAction, Key, ElementType, ComponentProps } from 'react';
8
+ import { GenericProps } from '@lumx/core/js/types/GenericProps';
9
+ import { GenericProps as GenericProps$3 } from '@lumx/core/js/utils/disabledState';
9
10
 
10
11
  /** LumX Component Type. */
11
12
  type Comp<P, T = HTMLElement> = {
12
13
  (props: P & {
13
14
  ref?: Ref<T>;
14
- }): ReactElement | null;
15
+ } & GenericProps): ReactElement | null;
15
16
  /** React component type. */
16
17
  readonly $$typeof: symbol;
17
18
  /** Component default props. */
@@ -69,7 +70,7 @@ declare const AlertDialog: Comp<AlertDialogProps, HTMLDivElement>;
69
70
  /**
70
71
  * Defines the props of the component.
71
72
  */
72
- interface AutocompleteProps extends GenericProps, HasTheme$1 {
73
+ interface AutocompleteProps extends GenericProps$1, HasTheme$1 {
73
74
  /**
74
75
  * Whether the suggestions list should display anchored to the input or to the wrapper.
75
76
  * @see {@link DropdownProps#anchorToInput}
@@ -262,7 +263,7 @@ type AvatarSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>
262
263
  /**
263
264
  * Defines the props of the component.
264
265
  */
265
- interface AvatarProps extends GenericProps, HasTheme$1 {
266
+ interface AvatarProps extends GenericProps$1, HasTheme$1 {
266
267
  /** Action toolbar content. */
267
268
  actions?: ReactNode;
268
269
  /** Image alternative text. */
@@ -296,7 +297,7 @@ declare const Avatar: Comp<AvatarProps, HTMLDivElement>;
296
297
  /**
297
298
  * Defines the props of the component.
298
299
  */
299
- interface BadgeProps extends GenericProps {
300
+ interface BadgeProps extends GenericProps$1 {
300
301
  /** Badge content. */
301
302
  children?: ReactNode;
302
303
  /** Color variant. */
@@ -311,7 +312,7 @@ interface BadgeProps extends GenericProps {
311
312
  */
312
313
  declare const Badge: Comp<BadgeProps, HTMLDivElement>;
313
314
 
314
- interface BadgeWrapperProps extends GenericProps {
315
+ interface BadgeWrapperProps extends GenericProps$1 {
315
316
  /** Badge. */
316
317
  badge: ReactElement;
317
318
  /** Node to display the badge on */
@@ -528,6 +529,23 @@ interface HasAriaDisabled {
528
529
  'aria-disabled'?: Booleanish;
529
530
  }
530
531
 
532
+ interface AriaAttributes {
533
+ /** Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. */
534
+ 'aria-expanded'?: Booleanish | undefined;
535
+ /** Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. */
536
+ 'aria-haspopup'?: boolean | 'false' | 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog' | undefined;
537
+ /**
538
+ * Defines a string value that labels the current element.
539
+ * @see aria-labelledby.
540
+ */
541
+ 'aria-label'?: string | undefined;
542
+ /**
543
+ * Indicates the current "pressed" state of toggle buttons.
544
+ * @see aria-checked @see aria-selected.
545
+ */
546
+ 'aria-pressed'?: boolean | 'false' | 'mixed' | 'true' | undefined;
547
+ }
548
+
531
549
  interface BaseClickableProps {
532
550
  children?: JSXElement;
533
551
  isDisabled?: boolean;
@@ -541,7 +559,7 @@ interface BaseClickableProps {
541
559
  * Button size definition.
542
560
  */
543
561
  type ButtonSize = Extract<Size, 's' | 'm'>;
544
- interface BaseButtonProps extends Pick<AriaAttributes, 'aria-expanded' | 'aria-haspopup' | 'aria-pressed' | 'aria-label'>, HasClassName, HasTheme, HasAriaDisabled, BaseClickableProps {
562
+ interface BaseButtonProps extends AriaAttributes, HasClassName, HasTheme, HasAriaDisabled, BaseClickableProps {
545
563
  /** Color variant. */
546
564
  color?: ColorPalette;
547
565
  /** Emphasis variant. */
@@ -609,7 +627,7 @@ declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
609
627
  */
610
628
  declare const DEFAULT_PROPS: Partial<ButtonProps$1>;
611
629
 
612
- interface ButtonProps extends GenericProps$1, ButtonProps$1 {
630
+ interface ButtonProps extends GenericProps$2, ButtonProps$1 {
613
631
  }
614
632
  /**
615
633
  * Button component.
@@ -642,7 +660,7 @@ interface IconButtonProps$1 extends BaseButtonProps {
642
660
  title?: string;
643
661
  }
644
662
 
645
- interface IconButtonProps extends GenericProps$1, IconButtonProps$1 {
663
+ interface IconButtonProps extends GenericProps$2, IconButtonProps$1 {
646
664
  /**
647
665
  * Props to pass to the tooltip.
648
666
  * If undefined or if tooltipProps.label is undefined, the label prop will be used as tooltip label.
@@ -672,7 +690,7 @@ interface ButtonGroupProps$1 extends HasClassName {
672
690
  ref?: CommonRef;
673
691
  }
674
692
 
675
- interface ButtonGroupProps extends ButtonGroupProps$1, GenericProps {
693
+ interface ButtonGroupProps extends ButtonGroupProps$1, GenericProps$1 {
676
694
  }
677
695
  /**
678
696
  * ButtonGroup component.
@@ -686,7 +704,7 @@ declare const ButtonGroup: Comp<ButtonGroupProps, HTMLDivElement>;
686
704
  /**
687
705
  * Defines the props of the component.
688
706
  */
689
- interface CheckboxProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
707
+ interface CheckboxProps extends GenericProps$1, HasTheme$1, HasAriaDisabled$1 {
690
708
  /** Helper text. */
691
709
  helper?: string;
692
710
  /** Native input id property. */
@@ -724,7 +742,7 @@ type ChipSize = Extract<Size$1, 's' | 'm'>;
724
742
  /**
725
743
  * Defines the props of the component.
726
744
  */
727
- interface ChipProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
745
+ interface ChipProps extends GenericProps$1, HasTheme$1, HasAriaDisabled$1 {
728
746
  /** A component to be rendered after the content. */
729
747
  after?: ReactNode;
730
748
  /** A component to be rendered before the content. */
@@ -770,7 +788,7 @@ type useChipGroupNavigationType<C = any> = (chips: C[], onChipDeleted: (chip: C)
770
788
  /**
771
789
  * Defines the props of the component.
772
790
  */
773
- interface ChipGroupProps extends GenericProps {
791
+ interface ChipGroupProps extends GenericProps$1 {
774
792
  /**
775
793
  * Chip horizontal alignment.
776
794
  * @deprecated
@@ -794,7 +812,7 @@ type CommentBlockVariant = ValueOf<typeof CommentBlockVariant>;
794
812
  /**
795
813
  * Defines the props of the component.
796
814
  */
797
- interface CommentBlockProps extends GenericProps, HasTheme$1 {
815
+ interface CommentBlockProps extends GenericProps$1, HasTheme$1 {
798
816
  /** Action toolbar content. */
799
817
  actions?: ReactNode;
800
818
  /** Props to pass to the avatar. */
@@ -847,7 +865,7 @@ declare const CommentBlock: Comp<CommentBlockProps, HTMLDivElement>;
847
865
  /**
848
866
  * Defines the props of the component.
849
867
  */
850
- interface DatePickerProps extends GenericProps {
868
+ interface DatePickerProps extends GenericProps$1 {
851
869
  /** Default month. */
852
870
  defaultMonth?: Date;
853
871
  /** Locale (language or region) to use. */
@@ -902,7 +920,7 @@ declare const DatePickerControlled: Comp<DatePickerControlledProps, HTMLDivEleme
902
920
  /**
903
921
  * Defines the props of the component.
904
922
  */
905
- interface DatePickerFieldProps extends Omit<TextFieldProps, 'value' | 'onChange'>, GenericProps {
923
+ interface DatePickerFieldProps extends Omit<TextFieldProps, 'value' | 'onChange'>, GenericProps$1 {
906
924
  /** Default month. */
907
925
  defaultMonth?: Date;
908
926
  /** Locale (language or region) to use. */
@@ -932,7 +950,7 @@ declare const DatePickerField: Comp<DatePickerFieldProps, HTMLDivElement>;
932
950
  /**
933
951
  * Defines the props of the component.
934
952
  */
935
- interface DialogProps extends GenericProps {
953
+ interface DialogProps extends GenericProps$1 {
936
954
  /** Footer content. */
937
955
  footer?: ReactNode;
938
956
  /** Whether the divider between the dialog content and the footer is always displayed (instead of showing it on scroll). */
@@ -962,7 +980,7 @@ interface DialogProps extends GenericProps {
962
980
  /** Z-axis position. */
963
981
  zIndex?: number;
964
982
  /** Z-axis position. */
965
- dialogProps?: GenericProps;
983
+ dialogProps?: GenericProps$1;
966
984
  /** On close callback. */
967
985
  onClose?(): void;
968
986
  /** Callback called when the open animation starts and the close animation finishes. */
@@ -985,7 +1003,7 @@ declare const Dialog: Comp<DialogProps, HTMLDivElement>;
985
1003
  /**
986
1004
  * Defines the props of the component.
987
1005
  */
988
- interface DividerProps extends GenericProps, HasTheme$1 {
1006
+ interface DividerProps extends GenericProps$1, HasTheme$1 {
989
1007
  }
990
1008
  /**
991
1009
  * Divider component.
@@ -999,7 +1017,7 @@ declare const Divider: Comp<DividerProps, HTMLHRElement>;
999
1017
  /**
1000
1018
  * Defines the props of the component.
1001
1019
  */
1002
- interface DragHandleProps extends GenericProps, HasTheme$1 {
1020
+ interface DragHandleProps extends GenericProps$1, HasTheme$1 {
1003
1021
  }
1004
1022
  /**
1005
1023
  * DragHandle component.
@@ -1057,7 +1075,7 @@ type FitAnchorWidth = ValueOf<typeof FitAnchorWidth>;
1057
1075
  /**
1058
1076
  * Defines the props of the component.
1059
1077
  */
1060
- interface PopoverProps extends GenericProps, HasTheme$1 {
1078
+ interface PopoverProps extends GenericProps$1, HasTheme$1 {
1061
1079
  /** Reference to the DOM element used to set the position of the popover. */
1062
1080
  anchorRef: React.RefObject<HTMLElement>;
1063
1081
  /** Customize the root element. (Must accept ref forwarding and props forwarding!). */
@@ -1118,7 +1136,7 @@ declare const Popover: Comp<PopoverProps, HTMLDivElement>;
1118
1136
  /**
1119
1137
  * Defines the props of the component.
1120
1138
  */
1121
- interface DropdownProps extends GenericProps {
1139
+ interface DropdownProps extends GenericProps$1 {
1122
1140
  /**
1123
1141
  * Reference to the element around which the dropdown is placed.
1124
1142
  * @see {@link PopoverProps#anchorRef}
@@ -1199,7 +1217,7 @@ declare const Dropdown: Comp<DropdownProps, HTMLDivElement>;
1199
1217
  /**
1200
1218
  * Defines the props of the component.
1201
1219
  */
1202
- interface ExpansionPanelProps extends GenericProps, HasCloseMode, HasTheme$1 {
1220
+ interface ExpansionPanelProps extends GenericProps$1, HasCloseMode, HasTheme$1 {
1203
1221
  /** Whether the expansion panel has a background. */
1204
1222
  hasBackground?: boolean;
1205
1223
  /** Whether the header has a divider. */
@@ -1290,7 +1308,7 @@ interface FlagProps$1 extends HasClassName, HasTheme {
1290
1308
  Text: (props: TextProps$1) => any;
1291
1309
  }
1292
1310
 
1293
- interface FlagProps extends GenericProps$1, Omit<FlagProps$1, 'children' | 'Text'> {
1311
+ interface FlagProps extends GenericProps$2, Omit<FlagProps$1, 'children' | 'Text'> {
1294
1312
  label: React.ReactNode;
1295
1313
  }
1296
1314
  /**
@@ -1335,7 +1353,7 @@ interface FlexBoxProps$1 extends HasClassName {
1335
1353
  /**
1336
1354
  * Defines the props of the component.
1337
1355
  */
1338
- interface FlexBoxProps extends FlexBoxProps$1, GenericProps {
1356
+ interface FlexBoxProps extends FlexBoxProps$1, GenericProps$1 {
1339
1357
  /** Customize the root element. */
1340
1358
  as?: React__default.ElementType;
1341
1359
  }
@@ -1459,7 +1477,7 @@ interface HeadingProps$1 extends Partial<TextProps$1> {
1459
1477
  as?: HeadingElement;
1460
1478
  }
1461
1479
 
1462
- interface HeadingProps extends HeadingProps$1, GenericProps {
1480
+ interface HeadingProps extends HeadingProps$1, GenericProps$1 {
1463
1481
  }
1464
1482
  /**
1465
1483
  * Renders a heading component.
@@ -1488,7 +1506,7 @@ type GridGutterSize = Extract<Size$1, 'regular' | 'big' | 'huge'>;
1488
1506
  /**
1489
1507
  * Defines the props of the component.
1490
1508
  */
1491
- interface GridProps extends GenericProps {
1509
+ interface GridProps extends GenericProps$1 {
1492
1510
  /** Orientation. */
1493
1511
  orientation?: Orientation$1;
1494
1512
  /** Whether the children are wrapped or not. */
@@ -1515,7 +1533,7 @@ type Columns = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11'
1515
1533
  /**
1516
1534
  * Defines the props of the component.
1517
1535
  */
1518
- interface GridItemProps extends GenericProps {
1536
+ interface GridItemProps extends GenericProps$1 {
1519
1537
  /** Alignment. */
1520
1538
  align?: Alignment$1;
1521
1539
  /** Order. */
@@ -1538,7 +1556,7 @@ type GridColumnGapSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
1538
1556
  /**
1539
1557
  * Defines the props of the component.
1540
1558
  */
1541
- interface GridColumnProps extends GenericProps {
1559
+ interface GridColumnProps extends GenericProps$1 {
1542
1560
  /** Customize the root element. */
1543
1561
  as?: React.ElementType;
1544
1562
  /** Children elements. */
@@ -1589,7 +1607,7 @@ interface IconProps$1 extends HasClassName, HasTheme {
1589
1607
  ref?: CommonRef;
1590
1608
  }
1591
1609
 
1592
- interface IconProps extends IconProps$1, GenericProps {
1610
+ interface IconProps extends IconProps$1, GenericProps$1 {
1593
1611
  }
1594
1612
  /**
1595
1613
  * Icon component.
@@ -1647,7 +1665,7 @@ type ImgHTMLProps = ImgHTMLAttributes<HTMLImageElement>;
1647
1665
  /**
1648
1666
  * Defines the props of the component.
1649
1667
  */
1650
- interface ThumbnailProps extends GenericProps, HasTheme$1 {
1668
+ interface ThumbnailProps extends GenericProps$1, HasTheme$1 {
1651
1669
  /** Alignment of the thumbnail in it's parent (requires flex parent). */
1652
1670
  align?: HorizontalAlignment$1;
1653
1671
  /** Image alternative text. */
@@ -1733,7 +1751,7 @@ type ImageBlockSize = Extract<Size$1, 'xl' | 'xxl'>;
1733
1751
  /**
1734
1752
  * Defines the props of the component.
1735
1753
  */
1736
- interface ImageBlockProps extends GenericProps, HasTheme$1, ImageCaptionMetadata {
1754
+ interface ImageBlockProps extends GenericProps$1, HasTheme$1, ImageCaptionMetadata {
1737
1755
  /** Action toolbar content. */
1738
1756
  actions?: ReactNode;
1739
1757
  /** Alignment. */
@@ -1825,7 +1843,7 @@ declare const ImageLightbox: Comp<ImageLightboxProps, HTMLDivElement> & {
1825
1843
  /**
1826
1844
  * Defines the props of the component.
1827
1845
  */
1828
- interface InlineListProps extends GenericProps {
1846
+ interface InlineListProps extends GenericProps$1 {
1829
1847
  /**
1830
1848
  * Text color.
1831
1849
  */
@@ -1868,7 +1886,7 @@ interface InputHelperProps$1 extends HasClassName, HasTheme {
1868
1886
  ref?: CommonRef;
1869
1887
  }
1870
1888
 
1871
- interface InputHelperProps extends InputHelperProps$1, GenericProps$2 {
1889
+ interface InputHelperProps extends InputHelperProps$1, GenericProps$3 {
1872
1890
  }
1873
1891
  /**
1874
1892
  * InputHelper component.
@@ -1892,7 +1910,7 @@ interface InputLabelProps$1 extends HasClassName, HasTheme {
1892
1910
  ref?: CommonRef;
1893
1911
  }
1894
1912
 
1895
- interface InputLabelProps extends InputLabelProps$1, GenericProps$1 {
1913
+ interface InputLabelProps extends InputLabelProps$1, GenericProps$2 {
1896
1914
  }
1897
1915
  /**
1898
1916
  * InputLabel component.
@@ -1906,7 +1924,7 @@ declare const InputLabel: Comp<InputLabelProps, HTMLLabelElement>;
1906
1924
  /**
1907
1925
  * Defines the props of the component.
1908
1926
  */
1909
- interface LightboxProps extends GenericProps, HasTheme$1, Pick<AriaAttributes, 'aria-label' | 'aria-labelledby'> {
1927
+ interface LightboxProps extends GenericProps$1, HasTheme$1, Pick<AriaAttributes$1, 'aria-label' | 'aria-labelledby'> {
1910
1928
  /** Props to pass to the close button (minus those already set by the Lightbox props). */
1911
1929
  closeButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis' | 'color'>;
1912
1930
  /** Whether the component is open or not. */
@@ -1937,7 +1955,7 @@ type HTMLAnchorProps = React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAn
1937
1955
  /**
1938
1956
  * Defines the props of the component.
1939
1957
  */
1940
- interface LinkProps extends GenericProps, HasAriaDisabled$1 {
1958
+ interface LinkProps extends GenericProps$1, HasAriaDisabled$1 {
1941
1959
  /** Color variant. */
1942
1960
  color?: ColorWithVariants$1;
1943
1961
  /** Lightened or darkened variant of the selected icon color. */
@@ -1977,7 +1995,7 @@ declare const Link: Comp<LinkProps, HTMLButtonElement | HTMLAnchorElement>;
1977
1995
  /**
1978
1996
  * Defines the props of the component.
1979
1997
  */
1980
- interface LinkPreviewProps extends GenericProps, HasTheme$1 {
1998
+ interface LinkPreviewProps extends GenericProps$1, HasTheme$1 {
1981
1999
  /** Description. */
1982
2000
  description?: string;
1983
2001
  /** Link URL. */
@@ -2020,7 +2038,7 @@ type useKeyboardListNavigationType = <I>(items: I[], ref: RefObject<HTMLElement>
2020
2038
  /**
2021
2039
  * Defines the props of the component.
2022
2040
  */
2023
- interface ListProps extends GenericProps {
2041
+ interface ListProps extends GenericProps$1 {
2024
2042
  /** List content (should be ListItem, ListSubheader or ListDivider). */
2025
2043
  children: ReactNode;
2026
2044
  /**
@@ -2049,7 +2067,7 @@ type ListItemSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
2049
2067
  /**
2050
2068
  * Defines the props of the component.
2051
2069
  */
2052
- interface ListItemProps extends GenericProps, HasAriaDisabled$1 {
2070
+ interface ListItemProps extends GenericProps$1, HasAriaDisabled$1 {
2053
2071
  /** A component to be rendered after the content. */
2054
2072
  after?: ReactNode;
2055
2073
  /** A component to be rendered before the content. */
@@ -2092,7 +2110,7 @@ declare const ListItem: Comp<ListItemProps, HTMLLIElement>;
2092
2110
  /**
2093
2111
  * Defines the props of the component.
2094
2112
  */
2095
- type ListDividerProps = GenericProps;
2113
+ type ListDividerProps = GenericProps$1;
2096
2114
  /**
2097
2115
  * ListDivider component.
2098
2116
  *
@@ -2100,12 +2118,12 @@ type ListDividerProps = GenericProps;
2100
2118
  * @param ref Component ref.
2101
2119
  * @return React element.
2102
2120
  */
2103
- declare const ListDivider: Comp<GenericProps, HTMLLIElement>;
2121
+ declare const ListDivider: Comp<GenericProps$1, HTMLLIElement>;
2104
2122
 
2105
2123
  /**
2106
2124
  * Defines the props of the component.
2107
2125
  */
2108
- interface ListSubheaderProps extends GenericProps {
2126
+ interface ListSubheaderProps extends GenericProps$1 {
2109
2127
  /** Content. */
2110
2128
  children: string | ReactNode;
2111
2129
  }
@@ -2161,7 +2179,7 @@ declare const Message: Comp<MessageProps, HTMLDivElement>;
2161
2179
  /**
2162
2180
  * Defines the props of the component.
2163
2181
  */
2164
- interface MosaicProps extends GenericProps, HasTheme$1 {
2182
+ interface MosaicProps extends GenericProps$1, HasTheme$1 {
2165
2183
  /** Thumbnails. */
2166
2184
  thumbnails: ThumbnailProps[];
2167
2185
  /** On image click callback. */
@@ -2217,7 +2235,7 @@ declare const Navigation: Comp<NavigationProps, HTMLElement> & SubComponents;
2217
2235
  /**
2218
2236
  * Defines the props of the component.
2219
2237
  */
2220
- interface NotificationProps extends GenericProps, HasTheme$1 {
2238
+ interface NotificationProps extends GenericProps$1, HasTheme$1 {
2221
2239
  /** Action button label. */
2222
2240
  actionLabel?: string;
2223
2241
  /** Content. */
@@ -2261,7 +2279,7 @@ declare const PopoverDialog: Comp<PopoverDialogProps, HTMLDivElement>;
2261
2279
  /**
2262
2280
  * Defines the props of the component.
2263
2281
  */
2264
- interface PostBlockProps extends GenericProps, HasTheme$1 {
2282
+ interface PostBlockProps extends GenericProps$1, HasTheme$1 {
2265
2283
  /** Action toolbar content. */
2266
2284
  actions?: ReactNode;
2267
2285
  /** Attachment content. */
@@ -2305,7 +2323,7 @@ type ProgressVariant = ValueOf<typeof ProgressVariant>;
2305
2323
  /**
2306
2324
  * Defines the props of the component.
2307
2325
  */
2308
- interface ProgressProps extends GenericProps, HasTheme$1 {
2326
+ interface ProgressProps extends GenericProps$1, HasTheme$1 {
2309
2327
  /** Progress variant. */
2310
2328
  variant?: ProgressVariant;
2311
2329
  }
@@ -2326,7 +2344,7 @@ type ProgressCircularSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm'>;
2326
2344
  /**
2327
2345
  * Defines the props of the component.
2328
2346
  */
2329
- interface ProgressCircularProps extends GenericProps, HasTheme$1 {
2347
+ interface ProgressCircularProps extends GenericProps$1, HasTheme$1 {
2330
2348
  /**
2331
2349
  * Progress circular size.
2332
2350
  */
@@ -2346,7 +2364,7 @@ interface ProgressCircularProps extends GenericProps, HasTheme$1 {
2346
2364
  */
2347
2365
  declare const ProgressCircular: Comp<ProgressCircularProps, HTMLDivElement>;
2348
2366
 
2349
- interface ProgressLinearProps extends GenericProps, HasTheme$1 {
2367
+ interface ProgressLinearProps extends GenericProps$1, HasTheme$1 {
2350
2368
  }
2351
2369
  /**
2352
2370
  * ProgressLinear component.
@@ -2385,7 +2403,7 @@ declare const ProgressTrackerProvider: React.FC<ProgressTrackerProviderProps>;
2385
2403
  /**
2386
2404
  * Defines the props of the component.
2387
2405
  */
2388
- interface ProgressTrackerProps extends GenericProps {
2406
+ interface ProgressTrackerProps extends GenericProps$1 {
2389
2407
  /** ARIA label (purpose of the set of steps). */
2390
2408
  ['aria-label']: string;
2391
2409
  /** Step list. */
@@ -2405,7 +2423,7 @@ declare const ProgressTracker: Comp<ProgressTrackerProps, HTMLDivElement>;
2405
2423
  /**
2406
2424
  * Defines the props of the component.
2407
2425
  */
2408
- interface ProgressTrackerStepProps extends GenericProps {
2426
+ interface ProgressTrackerStepProps extends GenericProps$1 {
2409
2427
  /** Children are not supported. */
2410
2428
  children?: never;
2411
2429
  /** Whether the step should be in error state or not. */
@@ -2437,7 +2455,7 @@ declare const ProgressTrackerStep: Comp<ProgressTrackerStepProps, HTMLButtonElem
2437
2455
  /**
2438
2456
  * Defines the props of the component.
2439
2457
  */
2440
- interface ProgressTrackerStepPanelProps extends GenericProps {
2458
+ interface ProgressTrackerStepPanelProps extends GenericProps$1 {
2441
2459
  /** Native id property. */
2442
2460
  id?: string;
2443
2461
  /** Whether the step is active or not. */
@@ -2459,7 +2477,7 @@ declare const ProgressTrackerStepPanel: Comp<ProgressTrackerStepPanelProps, HTML
2459
2477
  /**
2460
2478
  * Defines the props of the component.
2461
2479
  */
2462
- interface RadioButtonProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
2480
+ interface RadioButtonProps extends GenericProps$1, HasTheme$1, HasAriaDisabled$1 {
2463
2481
  /** Helper text. */
2464
2482
  helper?: string;
2465
2483
  /** Native input id property. */
@@ -2493,7 +2511,7 @@ declare const RadioButton: Comp<RadioButtonProps, HTMLDivElement>;
2493
2511
  /**
2494
2512
  * Defines the props of the component.
2495
2513
  */
2496
- interface RadioGroupProps extends GenericProps {
2514
+ interface RadioGroupProps extends GenericProps$1 {
2497
2515
  /** RadioButton elements */
2498
2516
  children: ReactNode;
2499
2517
  }
@@ -2514,7 +2532,7 @@ declare const SelectVariant: {
2514
2532
  readonly chip: "chip";
2515
2533
  };
2516
2534
  type SelectVariant = ValueOf<typeof SelectVariant>;
2517
- interface CoreSelectProps extends GenericProps, HasTheme$1 {
2535
+ interface CoreSelectProps extends GenericProps$1, HasTheme$1 {
2518
2536
  /** Props to pass to the clear button (minus those already set by the Select props). If not specified, the button won't be displayed. */
2519
2537
  clearButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
2520
2538
  /** Whether the select (input variant) is displayed with error style or not. */
@@ -2594,7 +2612,7 @@ declare const SelectMultiple: Comp<SelectMultipleProps, HTMLDivElement>;
2594
2612
  /**
2595
2613
  * Defines the props of the component.
2596
2614
  */
2597
- interface SideNavigationProps extends GenericProps, HasTheme$1 {
2615
+ interface SideNavigationProps extends GenericProps$1, HasTheme$1 {
2598
2616
  /** SideNavigationItem elements. */
2599
2617
  children: ReactNode;
2600
2618
  }
@@ -2610,7 +2628,7 @@ declare const SideNavigation: Comp<SideNavigationProps, HTMLUListElement>;
2610
2628
  /**
2611
2629
  * Defines the props of the component.
2612
2630
  */
2613
- interface SideNavigationItemProps extends GenericProps, HasCloseMode {
2631
+ interface SideNavigationItemProps extends GenericProps$1, HasCloseMode {
2614
2632
  /** SideNavigationItem elements. */
2615
2633
  children?: ReactNode;
2616
2634
  /** Emphasis variant. */
@@ -2646,7 +2664,7 @@ declare const SideNavigationItem: Comp<SideNavigationItemProps, HTMLLIElement>;
2646
2664
  /**
2647
2665
  * Defines the props of the component.
2648
2666
  */
2649
- interface SkeletonCircleProps extends GenericProps, HasTheme$1 {
2667
+ interface SkeletonCircleProps extends GenericProps$1, HasTheme$1 {
2650
2668
  /** Size variant. */
2651
2669
  size: GlobalSize;
2652
2670
  /** The color of the skeleton. */
@@ -2673,7 +2691,7 @@ type SkeletonRectangleVariant = ValueOf<typeof SkeletonRectangleVariant>;
2673
2691
  /**
2674
2692
  * Defines the props of the component.
2675
2693
  */
2676
- interface SkeletonRectangleProps extends GenericProps, HasTheme$1 {
2694
+ interface SkeletonRectangleProps extends GenericProps$1, HasTheme$1 {
2677
2695
  /** Aspect ratio (use with width and not height). */
2678
2696
  aspectRatio?: Extract<AspectRatio, 'square' | 'horizontal' | 'vertical' | 'wide'>;
2679
2697
  /** Height size. */
@@ -2697,7 +2715,7 @@ declare const SkeletonRectangle: Comp<SkeletonRectangleProps, HTMLDivElement>;
2697
2715
  /**
2698
2716
  * Defines the props of the component.
2699
2717
  */
2700
- interface SkeletonTypographyProps extends GenericProps, HasTheme$1 {
2718
+ interface SkeletonTypographyProps extends GenericProps$1, HasTheme$1 {
2701
2719
  /** Typography variant. */
2702
2720
  typography: TypographyInterface$1;
2703
2721
  /** Width CSS property. */
@@ -2717,7 +2735,7 @@ declare const SkeletonTypography: Comp<SkeletonTypographyProps, HTMLDivElement>;
2717
2735
  /**
2718
2736
  * Defines the props of the component.
2719
2737
  */
2720
- interface SliderProps extends GenericProps, HasTheme$1 {
2738
+ interface SliderProps extends GenericProps$1, HasTheme$1 {
2721
2739
  /** Helper text. */
2722
2740
  helper?: string;
2723
2741
  /** Whether the min and max labels should be hidden or not. */
@@ -2776,7 +2794,7 @@ type SlideMode = ValueOf<typeof SlideMode>;
2776
2794
  /**
2777
2795
  * Defines the props of the component.
2778
2796
  */
2779
- interface SlideshowProps extends GenericProps, Pick<SlidesProps, 'autoPlay' | 'slidesId' | 'id' | 'theme' | 'fillHeight' | 'groupBy' | 'slideGroupLabel'> {
2797
+ interface SlideshowProps extends GenericProps$1, Pick<SlidesProps, 'autoPlay' | 'slidesId' | 'id' | 'theme' | 'fillHeight' | 'groupBy' | 'slideGroupLabel'> {
2780
2798
  /** Whether to use CSS transform translate or native scroll snap. */
2781
2799
  slideMode?: SlideMode;
2782
2800
  /** current slide active */
@@ -2802,7 +2820,7 @@ declare const Slideshow: Comp<SlideshowProps, HTMLDivElement>;
2802
2820
  /**
2803
2821
  * Defines the props of the component.
2804
2822
  */
2805
- interface SlideshowItemProps extends GenericProps {
2823
+ interface SlideshowItemProps extends GenericProps$1 {
2806
2824
  /** interval in which slides are automatically shown */
2807
2825
  interval?: number;
2808
2826
  /** Children */
@@ -2881,7 +2899,7 @@ interface UseSlideshowControls {
2881
2899
  /**
2882
2900
  * Defines the props of the component.
2883
2901
  */
2884
- interface SlideshowControlsProps extends GenericProps, HasTheme$1 {
2902
+ interface SlideshowControlsProps extends GenericProps$1, HasTheme$1 {
2885
2903
  /** Index of the current slide. */
2886
2904
  activeIndex?: number;
2887
2905
  /** Props to pass to the next button (minus those already set by the SlideshowControls props). */
@@ -2925,7 +2943,7 @@ declare const SlideshowControls: Comp<SlideshowControlsProps, HTMLDivElement> &
2925
2943
  };
2926
2944
  };
2927
2945
 
2928
- interface SlidesProps extends GenericProps, HasTheme$1 {
2946
+ interface SlidesProps extends GenericProps$1, HasTheme$1 {
2929
2947
  /** current slide active */
2930
2948
  activeIndex: number;
2931
2949
  /** slides id to be added to the wrapper */
@@ -2970,7 +2988,7 @@ declare const Slides: Comp<SlidesProps, HTMLDivElement>;
2970
2988
  /**
2971
2989
  * Defines the props of the component.
2972
2990
  */
2973
- interface SwitchProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
2991
+ interface SwitchProps extends GenericProps$1, HasTheme$1, HasAriaDisabled$1 {
2974
2992
  /** Helper text. */
2975
2993
  helper?: string;
2976
2994
  /** Whether it is checked or not. */
@@ -3002,7 +3020,7 @@ declare const Switch: Comp<SwitchProps, HTMLDivElement>;
3002
3020
  /**
3003
3021
  * Defines the props of the component.
3004
3022
  */
3005
- interface TableProps extends GenericProps, HasTheme$1 {
3023
+ interface TableProps extends GenericProps$1, HasTheme$1 {
3006
3024
  /** Whether the table has checkbox or thumbnail on first cell or not. */
3007
3025
  hasBefore?: boolean;
3008
3026
  /** Whether the table has dividers or not. */
@@ -3022,7 +3040,7 @@ declare const Table: Comp<TableProps, HTMLTableElement>;
3022
3040
  /**
3023
3041
  * Defines the props of the component.
3024
3042
  */
3025
- interface TableBodyProps extends GenericProps {
3043
+ interface TableBodyProps extends GenericProps$1 {
3026
3044
  /** Children */
3027
3045
  children?: React.ReactNode;
3028
3046
  }
@@ -3054,7 +3072,7 @@ type TableCellVariant = ValueOf<typeof TableCellVariant>;
3054
3072
  /**
3055
3073
  * Defines the props of the component.
3056
3074
  */
3057
- interface TableCellProps extends GenericProps {
3075
+ interface TableCellProps extends GenericProps$1 {
3058
3076
  /** Icon (SVG path).(thead only). */
3059
3077
  icon?: string;
3060
3078
  /** Whether the column is sortable or not (thead only). */
@@ -3080,7 +3098,7 @@ declare const TableCell: Comp<TableCellProps, HTMLTableCellElement>;
3080
3098
  /**
3081
3099
  * Defines the props of the component.
3082
3100
  */
3083
- interface TableHeaderProps extends GenericProps {
3101
+ interface TableHeaderProps extends GenericProps$1 {
3084
3102
  /** Children */
3085
3103
  children?: React.ReactNode;
3086
3104
  }
@@ -3096,7 +3114,7 @@ declare const TableHeader: Comp<TableHeaderProps, HTMLTableSectionElement>;
3096
3114
  /**
3097
3115
  * Defines the props of the component.
3098
3116
  */
3099
- interface TableRowProps extends GenericProps {
3117
+ interface TableRowProps extends GenericProps$1 {
3100
3118
  /** Whether the component is clickable or not. */
3101
3119
  isClickable?: boolean;
3102
3120
  /** Whether the component is disabled or not. */
@@ -3145,7 +3163,7 @@ declare enum TabListLayout {
3145
3163
  /**
3146
3164
  * Defines the props of the component.
3147
3165
  */
3148
- interface TabListProps extends GenericProps, HasTheme$1 {
3166
+ interface TabListProps extends GenericProps$1, HasTheme$1 {
3149
3167
  /** ARIA label (purpose of the set of tabs). */
3150
3168
  ['aria-label']: string;
3151
3169
  /** Tab list. */
@@ -3169,7 +3187,7 @@ declare const TabList: Comp<TabListProps, HTMLDivElement>;
3169
3187
  /**
3170
3188
  * Defines the props of the component.
3171
3189
  */
3172
- interface TabProps extends GenericProps {
3190
+ interface TabProps extends GenericProps$1 {
3173
3191
  /** Children are not supported. */
3174
3192
  children?: never;
3175
3193
  /** Icon (SVG path). */
@@ -3199,7 +3217,7 @@ declare const Tab: Comp<TabProps, HTMLButtonElement>;
3199
3217
  /**
3200
3218
  * Defines the props of the component.
3201
3219
  */
3202
- interface TabPanelProps extends GenericProps {
3220
+ interface TabPanelProps extends GenericProps$1 {
3203
3221
  /** Native id property */
3204
3222
  id?: string;
3205
3223
  /** Whether the tab is active or not. */
@@ -3218,7 +3236,7 @@ interface TabPanelProps extends GenericProps {
3218
3236
  */
3219
3237
  declare const TabPanel: Comp<TabPanelProps, HTMLDivElement>;
3220
3238
 
3221
- interface TextProps extends TextProps$1, GenericProps {
3239
+ interface TextProps extends TextProps$1, GenericProps$1 {
3222
3240
  }
3223
3241
  /**
3224
3242
  * Text component.
@@ -3232,7 +3250,7 @@ declare const Text: Comp<TextProps, HTMLElement>;
3232
3250
  /**
3233
3251
  * Defines the props of the component.
3234
3252
  */
3235
- interface TextFieldProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
3253
+ interface TextFieldProps extends GenericProps$1, HasTheme$1, HasAriaDisabled$1 {
3236
3254
  /** Chip Group to be rendered before the main text input. */
3237
3255
  chips?: ReactNode;
3238
3256
  /** Props to pass to the clear button (minus those already set by the TextField props). If not specified, the button won't be displayed. */
@@ -3331,7 +3349,7 @@ declare const useFocusPointStyle: ({ image, aspectRatio, focusPoint, imgProps: {
3331
3349
  /**
3332
3350
  * Defines the props of the component.
3333
3351
  */
3334
- interface ToolbarProps extends GenericProps {
3352
+ interface ToolbarProps extends GenericProps$1 {
3335
3353
  /** After content (placed after the label). */
3336
3354
  after?: ReactNode;
3337
3355
  /** Before content (placed before the label). */
@@ -3355,7 +3373,7 @@ type TooltipPlacement = Extract<Placement, 'top' | 'right' | 'bottom' | 'left'>;
3355
3373
  /**
3356
3374
  * Defines the props of the component.
3357
3375
  */
3358
- interface TooltipProps extends GenericProps, HasCloseMode {
3376
+ interface TooltipProps extends GenericProps$1, HasCloseMode {
3359
3377
  /** Anchor (element on which we activate the tooltip). */
3360
3378
  children: ReactNode;
3361
3379
  /** Delay (in ms) before closing the tooltip. */
@@ -3400,7 +3418,7 @@ interface FileInputProps extends Omit<React__default.ComponentProps<'input'>, 'o
3400
3418
  /**
3401
3419
  * Defines the props of the component.
3402
3420
  */
3403
- interface UploaderProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
3421
+ interface UploaderProps extends GenericProps$1, HasTheme$1, HasAriaDisabled$1 {
3404
3422
  /** Image aspect ratio. */
3405
3423
  aspectRatio?: AspectRatio;
3406
3424
  /** Icon (SVG path). */
@@ -3434,7 +3452,7 @@ type UserBlockSize = Extract<Size$1, 'xs' | 's' | 'm' | 'l'>;
3434
3452
  /**
3435
3453
  * Defines the props of the component.
3436
3454
  */
3437
- interface UserBlockProps extends GenericProps, HasTheme$1 {
3455
+ interface UserBlockProps extends GenericProps$1, HasTheme$1 {
3438
3456
  /** Props to pass to the avatar. */
3439
3457
  avatarProps?: Omit<AvatarProps, 'alt'>;
3440
3458
  /** Additional fields used to describe the user. */
@@ -3448,7 +3466,7 @@ interface UserBlockProps extends GenericProps, HasTheme$1 {
3448
3466
  /** User name. */
3449
3467
  name?: React__default.ReactNode;
3450
3468
  /** Props to pass to the name block. */
3451
- nameProps?: GenericProps;
3469
+ nameProps?: GenericProps$1;
3452
3470
  /** Orientation. */
3453
3471
  orientation?: Orientation$1;
3454
3472
  /** Simple action toolbar content. */