@lumx/react 3.19.0 → 3.19.1-alpha.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.
Files changed (141) hide show
  1. package/index.d.ts +201 -117
  2. package/index.js +452 -464
  3. package/index.js.map +1 -1
  4. package/package.json +3 -3
  5. package/src/components/alert-dialog/AlertDialog.tsx +1 -1
  6. package/src/components/autocomplete/Autocomplete.tsx +1 -1
  7. package/src/components/autocomplete/AutocompleteMultiple.tsx +1 -1
  8. package/src/components/avatar/Avatar.tsx +1 -1
  9. package/src/components/badge/Badge.tsx +1 -1
  10. package/src/components/badge/BadgeWrapper.tsx +1 -1
  11. package/src/components/button/Button.test.tsx +5 -5
  12. package/src/components/button/Button.tsx +1 -1
  13. package/src/components/button/ButtonGroup.tsx +1 -1
  14. package/src/components/button/ButtonRoot.tsx +7 -37
  15. package/src/components/button/IconButton.tsx +1 -1
  16. package/src/components/checkbox/Checkbox.tsx +1 -1
  17. package/src/components/chip/Chip.tsx +2 -2
  18. package/src/components/chip/ChipGroup.tsx +2 -2
  19. package/src/components/comment-block/CommentBlock.tsx +1 -1
  20. package/src/components/date-picker/DatePickerControlled.tsx +1 -1
  21. package/src/components/date-picker/constants.ts +1 -1
  22. package/src/components/dialog/Dialog.tsx +1 -1
  23. package/src/components/divider/Divider.tsx +1 -1
  24. package/src/components/drag-handle/DragHandle.tsx +1 -1
  25. package/src/components/dropdown/Dropdown.tsx +1 -1
  26. package/src/components/expansion-panel/ExpansionPanel.tsx +1 -1
  27. package/src/components/flag/Flag.tsx +1 -1
  28. package/src/components/flex-box/FlexBox.tsx +2 -3
  29. package/src/components/generic-block/GenericBlock.tsx +1 -1
  30. package/src/components/grid/Grid.tsx +1 -1
  31. package/src/components/grid/GridItem.tsx +1 -1
  32. package/src/components/grid-column/GridColumn.tsx +1 -1
  33. package/src/components/heading/Heading.tsx +1 -1
  34. package/src/components/heading/constants.ts +1 -1
  35. package/src/components/icon/Icon.tsx +1 -1
  36. package/src/components/image-block/ImageBlock.tsx +1 -1
  37. package/src/components/image-lightbox/constants.ts +1 -1
  38. package/src/components/inline-list/InlineList.tsx +1 -1
  39. package/src/components/input-helper/InputHelper.tsx +1 -1
  40. package/src/components/input-label/InputLabel.test.tsx +1 -1
  41. package/src/components/input-label/InputLabel.tsx +1 -1
  42. package/src/components/lightbox/Lightbox.tsx +1 -1
  43. package/src/components/link/Link.test.tsx +8 -6
  44. package/src/components/link/Link.tsx +10 -21
  45. package/src/components/link-preview/LinkPreview.stories.tsx +1 -1
  46. package/src/components/link-preview/LinkPreview.test.tsx +1 -1
  47. package/src/components/link-preview/LinkPreview.tsx +1 -1
  48. package/src/components/list/List.tsx +1 -1
  49. package/src/components/list/ListDivider.tsx +1 -1
  50. package/src/components/list/ListItem.test.tsx +1 -3
  51. package/src/components/list/ListItem.tsx +20 -33
  52. package/src/components/list/ListSubheader.tsx +1 -1
  53. package/src/components/message/Message.tsx +1 -1
  54. package/src/components/mosaic/Mosaic.tsx +1 -1
  55. package/src/components/navigation/Navigation.test.tsx +1 -1
  56. package/src/components/navigation/Navigation.tsx +1 -1
  57. package/src/components/navigation/NavigationItem.tsx +7 -11
  58. package/src/components/navigation/NavigationSection.test.tsx +2 -1
  59. package/src/components/navigation/NavigationSection.tsx +5 -4
  60. package/src/components/navigation/context.tsx +2 -1
  61. package/src/components/notification/Notification.tsx +1 -1
  62. package/src/components/popover/Popover.tsx +1 -1
  63. package/src/components/popover-dialog/PopoverDialog.tsx +1 -1
  64. package/src/components/post-block/PostBlock.tsx +1 -1
  65. package/src/components/progress/Progress.tsx +1 -1
  66. package/src/components/progress/ProgressCircular.tsx +1 -1
  67. package/src/components/progress/ProgressLinear.tsx +1 -1
  68. package/src/components/progress-tracker/ProgressTracker.tsx +1 -1
  69. package/src/components/progress-tracker/ProgressTrackerStep.tsx +1 -1
  70. package/src/components/progress-tracker/ProgressTrackerStepPanel.tsx +1 -1
  71. package/src/components/radio-button/RadioButton.tsx +1 -1
  72. package/src/components/radio-button/RadioGroup.tsx +1 -1
  73. package/src/components/select/Select.test.tsx +1 -1
  74. package/src/components/select/Select.tsx +2 -2
  75. package/src/components/select/SelectMultiple.test.tsx +1 -1
  76. package/src/components/select/SelectMultiple.tsx +2 -2
  77. package/src/components/select/WithSelectContext.tsx +2 -2
  78. package/src/components/side-navigation/SideNavigation.tsx +1 -1
  79. package/src/components/side-navigation/SideNavigationItem.tsx +23 -28
  80. package/src/components/skeleton/SkeletonCircle.tsx +1 -1
  81. package/src/components/skeleton/SkeletonRectangle.tsx +1 -1
  82. package/src/components/skeleton/SkeletonTypography.tsx +1 -1
  83. package/src/components/slider/Slider.tsx +1 -1
  84. package/src/components/slideshow/Slides.tsx +1 -1
  85. package/src/components/slideshow/SlideshowControls.tsx +1 -1
  86. package/src/components/slideshow/SlideshowItem.tsx +1 -1
  87. package/src/components/slideshow/SlideshowItemGroup.tsx +1 -1
  88. package/src/components/switch/Switch.tsx +1 -1
  89. package/src/components/table/Table.tsx +1 -1
  90. package/src/components/table/TableBody.tsx +1 -1
  91. package/src/components/table/TableCell.tsx +1 -1
  92. package/src/components/table/TableHeader.tsx +1 -1
  93. package/src/components/table/TableRow.tsx +1 -1
  94. package/src/components/tabs/Tab.tsx +1 -1
  95. package/src/components/tabs/TabList.tsx +1 -1
  96. package/src/components/tabs/TabPanel.tsx +1 -1
  97. package/src/components/text/Text.tsx +1 -1
  98. package/src/components/text-field/TextField.test.tsx +1 -1
  99. package/src/components/text-field/TextField.tsx +1 -1
  100. package/src/components/thumbnail/Thumbnail.tsx +7 -12
  101. package/src/components/thumbnail/useFocusPointStyle.tsx +1 -1
  102. package/src/components/toolbar/Toolbar.tsx +1 -1
  103. package/src/components/tooltip/Tooltip.tsx +1 -1
  104. package/src/components/uploader/Uploader.tsx +1 -1
  105. package/src/components/user-block/UserBlock.tsx +1 -1
  106. package/src/hooks/useCallbackOnEscape.ts +1 -1
  107. package/src/index.ts +3 -1
  108. package/src/utils/partitionMulti.ts +2 -1
  109. package/src/utils/react/RawClickable.test.tsx +153 -0
  110. package/src/utils/react/RawClickable.tsx +65 -0
  111. package/src/utils/type/HasRequiredLinkHref.ts +1 -0
  112. package/src/utils/type/index.ts +3 -13
  113. package/src/components/index.ts +0 -160
  114. package/src/utils/browser/event.ts +0 -1
  115. package/src/utils/className/fontColorClass.test.ts +0 -15
  116. package/src/utils/className/fontColorClass.ts +0 -12
  117. package/src/utils/className/getBasicClass.test.ts +0 -20
  118. package/src/utils/className/getRootClassName.test.ts +0 -11
  119. package/src/utils/className/getRootClassName.ts +0 -24
  120. package/src/utils/className/getTypographyClassName.test.ts +0 -7
  121. package/src/utils/className/getTypographyClassName.ts +0 -9
  122. package/src/utils/className/handleBasicClasses.test.ts +0 -28
  123. package/src/utils/className/index.ts +0 -5
  124. package/src/utils/className/resolveColorWithVariants.test.ts +0 -33
  125. package/src/utils/className/resolveColorWithVariants.ts +0 -11
  126. package/src/utils/react/renderButtonOrLink.tsx +0 -16
  127. package/src/utils/react/renderLink.tsx +0 -17
  128. package/src/utils/type/Callback.ts +0 -4
  129. package/src/utils/type/Falsy.ts +0 -5
  130. package/src/utils/type/GenericProps.ts +0 -11
  131. package/src/utils/type/HasAriaLabelOrLabelledBy.ts +0 -19
  132. package/src/utils/type/HasClassName.ts +0 -6
  133. package/src/utils/type/HasCloseMode.ts +0 -7
  134. package/src/utils/type/HasTheme.ts +0 -8
  135. package/src/utils/type/HeadingElement.ts +0 -2
  136. package/src/utils/type/Point.ts +0 -4
  137. package/src/utils/type/Predicate.ts +0 -2
  138. package/src/utils/type/RectSize.ts +0 -4
  139. package/src/utils/type/TextElement.ts +0 -4
  140. package/src/utils/type/ValueOf.ts +0 -2
  141. package/src/utils/type/color/index.ts +0 -43
package/index.d.ts CHANGED
@@ -1,129 +1,75 @@
1
- import React, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, AriaAttributes, DetailedHTMLProps, ButtonHTMLAttributes, InputHTMLAttributes, RefObject, ImgHTMLAttributes, CSSProperties, SetStateAction, Key } from 'react';
2
1
  import { F as Falsy } from './_internal/Falsy.js';
2
+ import React, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, AriaAttributes, DetailedHTMLProps, ButtonHTMLAttributes, InputHTMLAttributes, RefObject, ImgHTMLAttributes, CSSProperties, SetStateAction, Key } from 'react';
3
+
4
+ /** Get types of the values of a record. */
5
+ type ValueOf<T extends Record<any, any>> = T[keyof T];
3
6
 
4
7
  /**
5
- * Callback function type alias (use for readability)
8
+ * The down key code.
6
9
  */
7
- type Callback = () => void;
8
-
9
- /** LumX Component Type. */
10
- type Comp<P, T = HTMLElement> = {
11
- (props: P & {
12
- ref?: Ref<T>;
13
- }): ReactElement | null;
14
- /** React component type. */
15
- readonly $$typeof: symbol;
16
- /** Component default props. */
17
- defaultProps?: Partial<P>;
18
- /** Component name. */
19
- displayName?: string;
20
- /** Component base class name. */
21
- className?: string;
22
- };
23
-
10
+ declare const DOWN_KEY_CODE = 40;
24
11
  /**
25
- * Extract ref type for a component or JSX intrinsic element
26
- *
27
- * @example ComponentRef<'div'> => React.Ref<HTMLDivElement>
28
- * @example ComponentRef<Button> => React.Ref<HTMLButtonElement
12
+ * The enter/return key code.
29
13
  */
30
- type ComponentRef<C> = C extends keyof JSX.IntrinsicElements ? JSX.IntrinsicElements[C]['ref'] : C extends Comp<any, infer T> ? React.Ref<T> : C extends React.JSXElementConstructor<{
31
- ref?: infer R;
32
- }> ? R : never;
33
-
34
- interface HasClassName {
35
- /**
36
- * Class name forwarded to the root element of the component.
37
- */
38
- className?: string;
39
- }
40
-
14
+ declare const ENTER_KEY_CODE = 13;
41
15
  /**
42
- * Define a generic props types.
16
+ * The space key code.
43
17
  */
44
- interface GenericProps extends HasClassName {
45
- /**
46
- * Any prop (particularly any supported prop for a HTML element).
47
- */
48
- [propName: string]: any;
49
- }
50
-
18
+ declare const SPACE_KEY_CODE = 32;
51
19
  /**
52
- * Require either `aria-label` or `arial-labelledby` prop.
53
- * If none are set, the order will prioritize `aria-labelledby` over `aria-label` as it
54
- * needs a visible element.
20
+ * The escape key code.
55
21
  */
56
- type HasAriaLabelOrLabelledBy<T = string | undefined> = T extends string ? {
57
- /**
58
- * The id of the element to use as title of the dialog. Can be within or out of the dialog.
59
- * Although it is not recommended, aria-label can be used instead if no visible element is available.
60
- */
61
- 'aria-labelledby': T;
62
- /** The label of the dialog. */
63
- 'aria-label'?: undefined;
64
- } : {
65
- 'aria-label': string;
66
- 'aria-labelledby'?: undefined;
67
- };
68
-
69
- interface HasCloseMode {
70
- /**
71
- * Choose how the children are hidden when closed
72
- * ('hide' keeps the children in DOM but hide them, 'unmount' remove the children from the DOM).
73
- */
74
- closeMode?: 'hide' | 'unmount';
75
- }
76
-
77
- interface HasTheme {
78
- /**
79
- * Theme adapting the component to light or dark background.
80
- */
81
- theme?: Theme;
82
- }
83
-
84
- /** Union type of all heading elements */
85
- type HeadingElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
86
-
87
- /** Union type of all text elements */
88
- type TextElement = 'span' | 'p' | HeadingElement;
22
+ declare const ESCAPE_KEY_CODE = 27;
23
+ /**
24
+ * The left key code.
25
+ */
26
+ declare const LEFT_KEY_CODE = 37;
27
+ /**
28
+ * The right key code.
29
+ */
30
+ declare const RIGHT_KEY_CODE = 39;
31
+ /**
32
+ * The tab key code.
33
+ */
34
+ declare const TAB_KEY_CODE = 9;
35
+ /**
36
+ * The up key code.
37
+ */
38
+ declare const UP_KEY_CODE = 38;
39
+ /**
40
+ * The up key code.
41
+ */
42
+ declare const BACKSPACE_KEY_CODE = 8;
89
43
 
90
- /** Get types of the values of a record. */
91
- type ValueOf<T extends Record<any, any>> = T[keyof T];
44
+ /**
45
+ * The prefix to use for the CSS classes.
46
+ */
47
+ declare const CSS_PREFIX = "lumx";
92
48
 
93
49
  /**
94
- * See SCSS variable $lumx-color-palette
50
+ * Animation duration constants. Take into consideration that if you change one of these variables,
51
+ * you need to update their scss counterpart as well
95
52
  */
96
- declare const ColorPalette: {
97
- readonly primary: "primary";
98
- readonly secondary: "secondary";
99
- readonly blue: "blue";
100
- readonly dark: "dark";
101
- readonly green: "green";
102
- readonly yellow: "yellow";
103
- readonly red: "red";
104
- readonly light: "light";
105
- readonly grey: "grey";
53
+ declare const DIALOG_TRANSITION_DURATION = 400;
54
+ declare const EXPANSION_PANEL_TRANSITION_DURATION = 400;
55
+ declare const NOTIFICATION_TRANSITION_DURATION = 200;
56
+ declare const SLIDESHOW_TRANSITION_DURATION = 5000;
57
+ /**
58
+ * Delay on hover after which we open or close the tooltip.
59
+ * Only applies to devices supporting pointer hover.
60
+ */
61
+ declare const TOOLTIP_HOVER_DELAY: {
62
+ open: number;
63
+ close: number;
106
64
  };
107
- type ColorPalette = ValueOf<typeof ColorPalette>;
108
- type Color = ColorPalette | string;
109
65
  /**
110
- * See SCSS variable $lumx-color-variants
66
+ * Delay on long press after which we open or close the tooltip.
67
+ * Only applies to devices not supporting pointer hover.
111
68
  */
112
- declare const ColorVariant: {
113
- readonly D1: "D1";
114
- readonly D2: "D2";
115
- readonly L1: "L1";
116
- readonly L2: "L2";
117
- readonly L3: "L3";
118
- readonly L4: "L4";
119
- readonly L5: "L5";
120
- readonly L6: "L6";
121
- readonly N: "N";
69
+ declare const TOOLTIP_LONG_PRESS_DELAY: {
70
+ open: number;
71
+ close: number;
122
72
  };
123
- type ColorVariant = ValueOf<typeof ColorVariant>;
124
- /** ColorPalette with all possible color variant combination */
125
- type ColorWithVariants = ColorPalette | Exclude<`${ColorPalette}-${ColorVariant}`, `light-D${number}` | `dark-D${number}`>;
126
-
127
73
  /**
128
74
  * Alignments.
129
75
  */
@@ -290,6 +236,148 @@ declare const WhiteSpace: {
290
236
  'break-spaces': string;
291
237
  };
292
238
  type WhiteSpace = ValueOf<typeof WhiteSpace>;
239
+ /**
240
+ * See SCSS variable $lumx-color-palette
241
+ */
242
+ declare const ColorPalette: {
243
+ readonly primary: "primary";
244
+ readonly secondary: "secondary";
245
+ readonly blue: "blue";
246
+ readonly dark: "dark";
247
+ readonly green: "green";
248
+ readonly yellow: "yellow";
249
+ readonly red: "red";
250
+ readonly light: "light";
251
+ readonly grey: "grey";
252
+ };
253
+ type ColorPalette = ValueOf<typeof ColorPalette>;
254
+ type Color = ColorPalette | string;
255
+ /**
256
+ * See SCSS variable $lumx-color-variants
257
+ */
258
+ declare const ColorVariant: {
259
+ readonly D1: "D1";
260
+ readonly D2: "D2";
261
+ readonly L1: "L1";
262
+ readonly L2: "L2";
263
+ readonly L3: "L3";
264
+ readonly L4: "L4";
265
+ readonly L5: "L5";
266
+ readonly L6: "L6";
267
+ readonly N: "N";
268
+ };
269
+ type ColorVariant = ValueOf<typeof ColorVariant>;
270
+ /** ColorPalette with all possible color variant combination */
271
+ type ColorWithVariants = ColorPalette | Exclude<`${ColorPalette}-${ColorVariant}`, `light-D${number}` | `dark-D${number}`>;
272
+
273
+ /**
274
+ * Callback function type alias (use for readability)
275
+ */
276
+ type Callback = () => void;
277
+
278
+ /**
279
+ * Require either `aria-label` or `arial-labelledby` prop.
280
+ * If none are set, the order will prioritize `aria-labelledby` over `aria-label` as it
281
+ * needs a visible element.
282
+ */
283
+ type HasAriaLabelOrLabelledBy<T = string | undefined> = T extends string ? {
284
+ /**
285
+ * The id of the element to use as title of the dialog. Can be within or out of the dialog.
286
+ * Although it is not recommended, aria-label can be used instead if no visible element is available.
287
+ */
288
+ 'aria-labelledby': T;
289
+ /** The label of the dialog. */
290
+ 'aria-label'?: undefined;
291
+ } : {
292
+ 'aria-label': string;
293
+ 'aria-labelledby'?: undefined;
294
+ };
295
+
296
+ interface HasClassName {
297
+ /**
298
+ * Class name forwarded to the root element of the component.
299
+ */
300
+ className?: string;
301
+ }
302
+
303
+ interface HasCloseMode {
304
+ /**
305
+ * Choose how the children are hidden when closed
306
+ * ('hide' keeps the children in DOM but hide them, 'unmount' remove the children from the DOM).
307
+ */
308
+ closeMode?: 'hide' | 'unmount';
309
+ }
310
+
311
+ interface HasTheme {
312
+ /**
313
+ * Theme adapting the component to light or dark background.
314
+ */
315
+ theme?: Theme;
316
+ }
317
+
318
+ /**
319
+ * Define a generic props types.
320
+ */
321
+ interface GenericProps extends HasClassName {
322
+ /**
323
+ * Any prop (particularly any supported prop for a HTML element).
324
+ */
325
+ [propName: string]: any;
326
+ }
327
+
328
+ /** Union type of all heading elements */
329
+ type HeadingElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
330
+
331
+ /**
332
+ * A point coordinate in 2D space
333
+ */
334
+ type Point = {
335
+ x: number;
336
+ y: number;
337
+ };
338
+
339
+ /** Predicate function type */
340
+ type Predicate<T> = (t: T) => boolean;
341
+
342
+ /**
343
+ * Rectangle size
344
+ */
345
+ type RectSize = {
346
+ width: number;
347
+ height: number;
348
+ };
349
+
350
+ /** Union type of all text elements */
351
+ type TextElement = 'span' | 'p' | HeadingElement;
352
+
353
+ /** LumX Component Type. */
354
+ type Comp<P, T = HTMLElement> = {
355
+ (props: P & {
356
+ ref?: Ref<T>;
357
+ }): ReactElement | null;
358
+ /** React component type. */
359
+ readonly $$typeof: symbol;
360
+ /** Component default props. */
361
+ defaultProps?: Partial<P>;
362
+ /** Component name. */
363
+ displayName?: string;
364
+ /** Component base class name. */
365
+ className?: string;
366
+ };
367
+
368
+ /**
369
+ * Extract ref type for a component or JSX intrinsic element
370
+ *
371
+ * @example ComponentRef<'div'> => React.Ref<HTMLDivElement>
372
+ * @example ComponentRef<Button> => React.Ref<HTMLButtonElement
373
+ */
374
+ type ComponentRef<C> = C extends keyof JSX.IntrinsicElements ? JSX.IntrinsicElements[C]['ref'] : C extends Comp<any, infer T> ? React.Ref<T> : C extends React.JSXElementConstructor<{
375
+ ref?: infer R;
376
+ }> ? R : never;
377
+
378
+ type HasRequiredLinkHref<E> = E extends 'a' ? {
379
+ href: string;
380
+ } : Record<string, unknown>;
293
381
 
294
382
  interface AlertDialogProps extends Omit<DialogProps, 'header' | 'footer'> {
295
383
  /** Message variant. */
@@ -642,7 +730,7 @@ interface ButtonProps extends BaseButtonProps {
642
730
  * @param ref Component ref.
643
731
  * @return React element.
644
732
  */
645
- declare const Button: Comp<ButtonProps, HTMLAnchorElement | HTMLButtonElement>;
733
+ declare const Button: Comp<ButtonProps, HTMLButtonElement | HTMLAnchorElement>;
646
734
 
647
735
  interface IconButtonProps extends BaseButtonProps {
648
736
  /**
@@ -1314,7 +1402,7 @@ declare const GenericBlockGapSize: Pick<{
1314
1402
  readonly medium: "medium";
1315
1403
  readonly big: "big";
1316
1404
  readonly huge: "huge";
1317
- }, "big" | "tiny" | "regular" | "medium" | "huge">;
1405
+ }, "tiny" | "regular" | "medium" | "big" | "huge">;
1318
1406
  type GenericBlockGapSize = ValueOf<typeof GenericBlockGapSize>;
1319
1407
 
1320
1408
  interface GenericBlockProps extends FlexBoxProps {
@@ -1960,7 +2048,7 @@ interface LinkProps extends GenericProps, HasAriaDisabled {
1960
2048
  * @param ref Component ref.
1961
2049
  * @return React element.
1962
2050
  */
1963
- declare const Link: Comp<LinkProps, HTMLAnchorElement | HTMLButtonElement>;
2051
+ declare const Link: Comp<LinkProps, HTMLButtonElement | HTMLAnchorElement>;
1964
2052
 
1965
2053
  /**
1966
2054
  * Defines the props of the component.
@@ -2175,13 +2263,9 @@ type BaseNavigationItemProps = {
2175
2263
  /** Mark as the current page link */
2176
2264
  isCurrentPage?: boolean;
2177
2265
  };
2178
- /** Make `href` required when `as` is `a` */
2179
- type RequiredLinkHref<E> = E extends 'a' ? {
2180
- href: string;
2181
- } : Record<string, unknown>;
2182
2266
  declare const NavigationItem: (<E extends React.ElementType = "a">(props: React.PropsWithoutRef<React.ComponentProps<E>> & {
2183
2267
  as?: E | undefined;
2184
- } & HasTheme & HasClassName & BaseNavigationItemProps & RequiredLinkHref<E> & React.ComponentProps<E> & {
2268
+ } & HasTheme & HasClassName & BaseNavigationItemProps & HasRequiredLinkHref<E> & React.ComponentProps<E> & {
2185
2269
  ref?: ComponentRef<E> | undefined;
2186
2270
  }) => React.JSX.Element) & {
2187
2271
  displayName: string;
@@ -3412,4 +3496,4 @@ declare const ThemeProvider: React.FC<{
3412
3496
  /** Get the theme in the current context. */
3413
3497
  declare function useTheme(): ThemeContextValue;
3414
3498
 
3415
- export { AlertDialog, type AlertDialogProps, Alignment, AspectRatio, Autocomplete, AutocompleteMultiple, type AutocompleteMultipleProps, type AutocompleteProps, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, BadgeWrapper, type BadgeWrapperProps, type BaseButtonProps, Button, ButtonEmphasis, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonSize, type Callback, Checkbox, type CheckboxProps, Chip, ChipGroup, type ChipGroupProps, type ChipProps, type Color, ColorPalette, ColorVariant, type ColorWithVariants, CommentBlock, type CommentBlockProps, CommentBlockVariant, DatePicker, DatePickerControlled, type DatePickerControlledProps, DatePickerField, type DatePickerFieldProps, type DatePickerProps, Dialog, type DialogProps, type DialogSizes, Divider, type DividerProps, DragHandle, type DragHandleProps, Dropdown, type DropdownProps, type Elevation, Emphasis, ExpansionPanel, type ExpansionPanelProps, Flag, type FlagProps, FlexBox, type FlexBoxProps, type FlexHorizontalAlignment, type FlexVerticalAlignment, type FocusPoint, type GapSize, GenericBlock, GenericBlockGapSize, type GenericBlockProps, type GenericProps, type GlobalSize, Grid, GridColumn, type GridColumnGapSize, type GridColumnProps, GridItem, type GridItemProps, type GridProps, Heading, type HeadingElement, HeadingLevelProvider, type HeadingLevelProviderProps, type HeadingProps, type HorizontalAlignment, Icon, IconButton, type IconButtonProps, type IconProps, type IconSizes, ImageBlock, ImageBlockCaptionPosition, type ImageBlockProps, type ImageBlockSize, ImageLightbox, type ImageLightboxProps, InlineList, type InlineListProps, InputHelper, type InputHelperProps, InputLabel, type InputLabelProps, Kind, Lightbox, type LightboxProps, Link, LinkPreview, type LinkPreviewProps, type LinkProps, List, ListDivider, type ListDividerProps, ListItem, type ListItemProps, type ListItemSize, type ListProps, ListSubheader, type ListSubheaderProps, type MarginAutoAlignment, Message, type MessageProps, Mosaic, type MosaicProps, Navigation, type NavigationProps, Notification, type NotificationProps, type Offset, Orientation, Placement, Popover, PopoverDialog, type PopoverDialogProps, type PopoverProps, PostBlock, type PostBlockProps, Progress, ProgressCircular, type ProgressCircularProps, type ProgressCircularSize, ProgressLinear, type ProgressLinearProps, type ProgressProps, ProgressTracker, type ProgressTrackerProps, ProgressTrackerProvider, type ProgressTrackerProviderProps, ProgressTrackerStep, ProgressTrackerStepPanel, type ProgressTrackerStepPanelProps, type ProgressTrackerStepProps, ProgressVariant, RadioButton, type RadioButtonProps, RadioGroup, type RadioGroupProps, Select, SelectMultiple, SelectMultipleField, type SelectMultipleProps, type SelectProps, SelectVariant, SideNavigation, SideNavigationItem, type SideNavigationItemProps, type SideNavigationProps, Size, SkeletonCircle, type SkeletonCircleProps, SkeletonRectangle, type SkeletonRectangleProps, SkeletonRectangleVariant, SkeletonTypography, type SkeletonTypographyProps, Slider, type SliderProps, Slides, type SlidesProps, Slideshow, SlideshowControls, type SlideshowControlsProps, SlideshowItem, type SlideshowItemProps, type SlideshowProps, Switch, type SwitchProps, Tab, TabList, TabListLayout, type TabListProps, TabPanel, type TabPanelProps, type TabProps, TabProvider, type TabProviderProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableCellVariant, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Text, type TextElement, TextField, type TextFieldProps, type TextProps, ThOrder, Theme, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, type ThumbnailProps, type ThumbnailSize, ThumbnailVariant, Toolbar, type ToolbarProps, Tooltip, type TooltipPlacement, type TooltipProps, Typography, TypographyCustom, TypographyInterface, TypographyTitleCustom, Uploader, type UploaderProps, type UploaderSize, UploaderVariant, UserBlock, type UserBlockProps, type UserBlockSize, type VerticalAlignment, WhiteSpace, clamp, isClickable, useFocusPointStyle, useHeadingLevel, useTheme };
3499
+ export { AlertDialog, type AlertDialogProps, Alignment, AspectRatio, Autocomplete, AutocompleteMultiple, type AutocompleteMultipleProps, type AutocompleteProps, Avatar, type AvatarProps, type AvatarSize, BACKSPACE_KEY_CODE, Badge, type BadgeProps, BadgeWrapper, type BadgeWrapperProps, type BaseButtonProps, Button, ButtonEmphasis, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonSize, CSS_PREFIX, type Callback, Checkbox, type CheckboxProps, Chip, ChipGroup, type ChipGroupProps, type ChipProps, type Color, ColorPalette, ColorVariant, type ColorWithVariants, CommentBlock, type CommentBlockProps, CommentBlockVariant, DIALOG_TRANSITION_DURATION, DOWN_KEY_CODE, DatePicker, DatePickerControlled, type DatePickerControlledProps, DatePickerField, type DatePickerFieldProps, type DatePickerProps, Dialog, type DialogProps, type DialogSizes, Divider, type DividerProps, DragHandle, type DragHandleProps, Dropdown, type DropdownProps, ENTER_KEY_CODE, ESCAPE_KEY_CODE, EXPANSION_PANEL_TRANSITION_DURATION, type Elevation, Emphasis, ExpansionPanel, type ExpansionPanelProps, Falsy, Flag, type FlagProps, FlexBox, type FlexBoxProps, type FlexHorizontalAlignment, type FlexVerticalAlignment, type FocusPoint, type GapSize, GenericBlock, GenericBlockGapSize, type GenericBlockProps, type GenericProps, type GlobalSize, Grid, GridColumn, type GridColumnGapSize, type GridColumnProps, GridItem, type GridItemProps, type GridProps, type HasAriaLabelOrLabelledBy, type HasClassName, type HasCloseMode, type HasTheme, Heading, type HeadingElement, HeadingLevelProvider, type HeadingLevelProviderProps, type HeadingProps, type HorizontalAlignment, Icon, IconButton, type IconButtonProps, type IconProps, type IconSizes, ImageBlock, ImageBlockCaptionPosition, type ImageBlockProps, type ImageBlockSize, ImageLightbox, type ImageLightboxProps, InlineList, type InlineListProps, InputHelper, type InputHelperProps, InputLabel, type InputLabelProps, Kind, LEFT_KEY_CODE, Lightbox, type LightboxProps, Link, LinkPreview, type LinkPreviewProps, type LinkProps, List, ListDivider, type ListDividerProps, ListItem, type ListItemProps, type ListItemSize, type ListProps, ListSubheader, type ListSubheaderProps, type MarginAutoAlignment, Message, type MessageProps, Mosaic, type MosaicProps, NOTIFICATION_TRANSITION_DURATION, Navigation, type NavigationProps, Notification, type NotificationProps, type Offset, Orientation, Placement, type Point, Popover, PopoverDialog, type PopoverDialogProps, type PopoverProps, PostBlock, type PostBlockProps, type Predicate, Progress, ProgressCircular, type ProgressCircularProps, type ProgressCircularSize, ProgressLinear, type ProgressLinearProps, type ProgressProps, ProgressTracker, type ProgressTrackerProps, ProgressTrackerProvider, type ProgressTrackerProviderProps, ProgressTrackerStep, ProgressTrackerStepPanel, type ProgressTrackerStepPanelProps, type ProgressTrackerStepProps, ProgressVariant, RIGHT_KEY_CODE, RadioButton, type RadioButtonProps, RadioGroup, type RadioGroupProps, type RectSize, SLIDESHOW_TRANSITION_DURATION, SPACE_KEY_CODE, Select, SelectMultiple, SelectMultipleField, type SelectMultipleProps, type SelectProps, SelectVariant, SideNavigation, SideNavigationItem, type SideNavigationItemProps, type SideNavigationProps, Size, SkeletonCircle, type SkeletonCircleProps, SkeletonRectangle, type SkeletonRectangleProps, SkeletonRectangleVariant, SkeletonTypography, type SkeletonTypographyProps, Slider, type SliderProps, Slides, type SlidesProps, Slideshow, SlideshowControls, type SlideshowControlsProps, SlideshowItem, type SlideshowItemProps, type SlideshowProps, Switch, type SwitchProps, TAB_KEY_CODE, TOOLTIP_HOVER_DELAY, TOOLTIP_LONG_PRESS_DELAY, Tab, TabList, TabListLayout, type TabListProps, TabPanel, type TabPanelProps, type TabProps, TabProvider, type TabProviderProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableCellVariant, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Text, type TextElement, TextField, type TextFieldProps, type TextProps, ThOrder, Theme, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, type ThumbnailProps, type ThumbnailSize, ThumbnailVariant, Toolbar, type ToolbarProps, Tooltip, type TooltipPlacement, type TooltipProps, Typography, TypographyCustom, TypographyInterface, TypographyTitleCustom, UP_KEY_CODE, Uploader, type UploaderProps, type UploaderSize, UploaderVariant, UserBlock, type UserBlockProps, type UserBlockSize, type ValueOf, type VerticalAlignment, WhiteSpace, clamp, isClickable, useFocusPointStyle, useHeadingLevel, useTheme };