@lumx/react 4.3.2-alpha.0 → 4.3.2-alpha.10

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,10 +1,10 @@
1
- import { Kind as Kind$1, HorizontalAlignment as HorizontalAlignment$1, Size as Size$1, ColorPalette as ColorPalette$1, Theme as Theme$1, GenericProps as GenericProps$1, Orientation as Orientation$1, Alignment as Alignment$1, AspectRatio, ColorWithVariants as ColorWithVariants$1, ColorVariant as ColorVariant$1, Typography as Typography$1, Emphasis as Emphasis$1, GlobalSize, TypographyInterface as TypographyInterface$1 } from '@lumx/core/js/constants';
1
+ import { Kind as Kind$1, HorizontalAlignment as HorizontalAlignment$1, Size as Size$1, ColorPalette as ColorPalette$1, Theme as Theme$1, GenericProps as GenericProps$1, Orientation as Orientation$1, Alignment as Alignment$1, AspectRatio as AspectRatio$1, ColorWithVariants as ColorWithVariants$1, ColorVariant as ColorVariant$1, Typography as Typography$1, Emphasis as Emphasis$1 } from '@lumx/core/js/constants';
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, PartialBy, HasCloseMode, Falsy, HasClassName as HasClassName$1, HeadingElement as HeadingElement$1, HasRequiredLinkHref, HasAriaLabelOrLabelledBy } from '@lumx/core/js/types';
4
+ import { GenericProps, HasTheme as HasTheme$1, ValueOf as ValueOf$1, HasAriaDisabled as HasAriaDisabled$1, PartialBy, HasCloseMode, HasClassName as HasClassName$1, JSXElement as JSXElement$1, CommonRef as CommonRef$1, Falsy, HeadingElement as HeadingElement$1, HasRequiredLinkHref, HasAriaLabelOrLabelledBy } from '@lumx/core/js/types';
5
5
  export * from '@lumx/core/js/types';
6
6
  import * as React$1 from 'react';
7
- import React__default, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, AriaAttributes, ReactText, RefObject, CSSProperties, ImgHTMLAttributes, SetStateAction, Key, ElementType, InputHTMLAttributes, ComponentProps } from 'react';
7
+ import React__default, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, AriaAttributes, ReactText, RefObject, CSSProperties, ImgHTMLAttributes, SetStateAction, Key, ElementType, ComponentProps } from 'react';
8
8
  import * as react_jsx_runtime from 'react/jsx-runtime';
9
9
  import { Selector } from '@lumx/core/js/types/Selector';
10
10
 
@@ -294,32 +294,6 @@ interface AvatarProps extends GenericProps, HasTheme$1 {
294
294
  */
295
295
  declare const Avatar: Comp<AvatarProps, HTMLDivElement>;
296
296
 
297
- /**
298
- * Defines the props of the component.
299
- */
300
- interface BadgeProps extends GenericProps {
301
- /** Badge content. */
302
- children?: ReactNode;
303
- /** Color variant. */
304
- color?: ColorPalette$1;
305
- }
306
- /**
307
- * Badge component.
308
- *
309
- * @param props Component props.
310
- * @param ref Component ref.
311
- * @return React element.
312
- */
313
- declare const Badge: Comp<BadgeProps, HTMLDivElement>;
314
-
315
- interface BadgeWrapperProps extends GenericProps {
316
- /** Badge. */
317
- badge: ReactElement;
318
- /** Node to display the badge on */
319
- children: ReactNode;
320
- }
321
- declare const BadgeWrapper: Comp<BadgeWrapperProps, HTMLDivElement>;
322
-
323
297
  /**
324
298
  * Alignments.
325
299
  */
@@ -335,14 +309,14 @@ declare const Alignment: {
335
309
  readonly start: "start";
336
310
  readonly top: "top";
337
311
  };
338
- type Alignment = ValueOf<typeof Alignment>;
312
+ type Alignment = ValueOf$1<typeof Alignment>;
339
313
  type VerticalAlignment = Extract<Alignment, 'top' | 'center' | 'bottom'>;
340
314
  type HorizontalAlignment = Extract<Alignment, 'right' | 'center' | 'left'>;
341
315
  declare const Theme: {
342
316
  readonly light: "light";
343
317
  readonly dark: "dark";
344
318
  };
345
- type Theme = ValueOf<typeof Theme>;
319
+ type Theme = ValueOf$1<typeof Theme>;
346
320
  declare const Size: {
347
321
  readonly xxs: "xxs";
348
322
  readonly xs: "xs";
@@ -357,18 +331,19 @@ declare const Size: {
357
331
  readonly big: "big";
358
332
  readonly huge: "huge";
359
333
  };
360
- type Size = ValueOf<typeof Size>;
334
+ type Size = ValueOf$1<typeof Size>;
335
+ type GlobalSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
361
336
  declare const Orientation: {
362
337
  readonly horizontal: "horizontal";
363
338
  readonly vertical: "vertical";
364
339
  };
365
- type Orientation = ValueOf<typeof Orientation>;
340
+ type Orientation = ValueOf$1<typeof Orientation>;
366
341
  declare const Emphasis: {
367
342
  readonly low: "low";
368
343
  readonly medium: "medium";
369
344
  readonly high: "high";
370
345
  };
371
- type Emphasis = ValueOf<typeof Emphasis>;
346
+ type Emphasis = ValueOf$1<typeof Emphasis>;
372
347
  /**
373
348
  * List of typographies that can't be customized.
374
349
  */
@@ -383,7 +358,7 @@ declare const TypographyInterface: {
383
358
  readonly headline: "headline";
384
359
  readonly display1: "display1";
385
360
  };
386
- type TypographyInterface = ValueOf<typeof TypographyInterface>;
361
+ type TypographyInterface = ValueOf$1<typeof TypographyInterface>;
387
362
  /**
388
363
  * List of typographies that can be customized (via CSS variables).
389
364
  */
@@ -401,7 +376,7 @@ declare const TypographyCustom: {
401
376
  readonly title5: "custom-title5";
402
377
  readonly title6: "custom-title6";
403
378
  };
404
- type TypographyCustom = ValueOf<typeof TypographyCustom>;
379
+ type TypographyCustom = ValueOf$1<typeof TypographyCustom>;
405
380
  /**
406
381
  * List of all typographies.
407
382
  */
@@ -431,6 +406,26 @@ declare const Typography: {
431
406
  readonly display1: "display1";
432
407
  };
433
408
  type Typography = TypographyInterface | TypographyCustom;
409
+ /**
410
+ * All available aspect ratios.
411
+ */
412
+ declare const AspectRatio: {
413
+ /** Intrinsic content ratio. */
414
+ readonly original: "original";
415
+ /** Ratio 3:1 */
416
+ readonly panoramic: "panoramic";
417
+ /** Ratio 16:9 */
418
+ readonly wide: "wide";
419
+ /** Ratio 3:2 */
420
+ readonly horizontal: "horizontal";
421
+ /** Ratio 3:2 */
422
+ readonly vertical: "vertical";
423
+ /** Ratio 1:1 */
424
+ readonly square: "square";
425
+ /** Ratio constrained by the parent. */
426
+ readonly free: "free";
427
+ };
428
+ type AspectRatio = ValueOf$1<typeof AspectRatio>;
434
429
  /**
435
430
  * Semantic info about the purpose of the component
436
431
  */
@@ -440,7 +435,7 @@ declare const Kind: {
440
435
  readonly warning: "warning";
441
436
  readonly error: "error";
442
437
  };
443
- type Kind = ValueOf<typeof Kind>;
438
+ type Kind = ValueOf$1<typeof Kind>;
444
439
  /**
445
440
  * All available white-space values
446
441
  * */
@@ -452,7 +447,7 @@ declare const WhiteSpace: {
452
447
  'pre-line': string;
453
448
  'break-spaces': string;
454
449
  };
455
- type WhiteSpace = ValueOf<typeof WhiteSpace>;
450
+ type WhiteSpace = ValueOf$1<typeof WhiteSpace>;
456
451
  /**
457
452
  * See SCSS variable $lumx-color-palette
458
453
  */
@@ -467,7 +462,7 @@ declare const ColorPalette: {
467
462
  readonly light: "light";
468
463
  readonly grey: "grey";
469
464
  };
470
- type ColorPalette = ValueOf<typeof ColorPalette>;
465
+ type ColorPalette = ValueOf$1<typeof ColorPalette>;
471
466
  /**
472
467
  * See SCSS variable $lumx-color-variants
473
468
  */
@@ -482,7 +477,7 @@ declare const ColorVariant: {
482
477
  readonly L6: "L6";
483
478
  readonly N: "N";
484
479
  };
485
- type ColorVariant = ValueOf<typeof ColorVariant>;
480
+ type ColorVariant = ValueOf$1<typeof ColorVariant>;
486
481
  /** ColorPalette with all possible color variant combination */
487
482
  type ColorWithVariants = ColorPalette | Exclude<`${ColorPalette}-${ColorVariant}`, `light-D${number}` | `dark-D${number}`>;
488
483
 
@@ -514,11 +509,8 @@ type HeadingElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
514
509
  /** Union type of all text elements */
515
510
  type TextElement = 'span' | 'p' | HeadingElement;
516
511
 
517
- /** Transform a string literal into kebab case */
518
- type KebabCase<S> = S extends `${infer C}${infer T}` ? T extends Uncapitalize<T> ? `${Uncapitalize<C>}${KebabCase<T>}` : `${Uncapitalize<C>}-${KebabCase<T>}` : S;
519
-
520
- /** Transform the component name into the lumx class name. */
521
- type LumxClassName<TComponentName extends string> = `lumx-${KebabCase<TComponentName>}`;
512
+ /** Get types of the values of a record. */
513
+ type ValueOf<T extends Record<any, any>> = T[keyof T];
522
514
 
523
515
  type CommonRef = any;
524
516
 
@@ -529,14 +521,70 @@ interface HasAriaDisabled {
529
521
  'aria-disabled'?: Booleanish;
530
522
  }
531
523
 
532
- type BaseClickableProps = {
533
- children?: JSXElement;
524
+ interface HasChecked<C = boolean> {
525
+ /** Component checked state. */
526
+ isChecked?: C;
527
+ /** @alias isChecked */
528
+ checked?: boolean;
529
+ }
530
+
531
+ interface HasDisabled {
532
+ /** Whether the component is disabled or not. */
534
533
  isDisabled?: boolean;
534
+ /** @alias isDisabled */
535
535
  disabled?: boolean;
536
- 'aria-disabled'?: Booleanish;
536
+ }
537
+
538
+ /**
539
+ * Defines the props of the component.
540
+ */
541
+ interface BadgeProps$1 extends HasClassName {
542
+ /** Badge content. */
543
+ children?: JSXElement;
544
+ /** Color variant. */
545
+ color?: ColorPalette;
546
+ /** reference to the root element */
547
+ ref?: CommonRef;
548
+ }
549
+
550
+ /**
551
+ * Defines the props of the component.
552
+ */
553
+ interface BadgeProps extends Omit<BadgeProps$1, 'children'>, GenericProps {
554
+ /** Badge content. */
555
+ children?: ReactNode;
556
+ }
557
+ /**
558
+ * Badge component.
559
+ *
560
+ * @param props Component props.
561
+ * @param ref Component ref.
562
+ * @return React element.
563
+ */
564
+ declare const Badge: Comp<BadgeProps, HTMLDivElement>;
565
+
566
+ interface BadgeWrapperProps$1 extends HasClassName {
567
+ /** Badge element to display */
568
+ badge?: JSXElement;
569
+ /** Content to wrap with badge */
570
+ children?: JSXElement;
571
+ /** Ref forwarding */
572
+ ref?: CommonRef;
573
+ }
574
+
575
+ interface BadgeWrapperProps extends GenericProps, Omit<BadgeWrapperProps$1, 'children' | 'badge'> {
576
+ /** Badge element to display */
577
+ badge: ReactElement;
578
+ /** Content to wrap with badge */
579
+ children: ReactNode;
580
+ }
581
+ declare const BadgeWrapper: Comp<BadgeWrapperProps, HTMLDivElement>;
582
+
583
+ interface BaseClickableProps extends HasDisabled, HasAriaDisabled {
584
+ children?: JSXElement;
537
585
  onClick?: (event?: any) => void;
538
586
  ref?: CommonRef;
539
- };
587
+ }
540
588
 
541
589
  /**
542
590
  * Button size definition.
@@ -601,10 +649,6 @@ interface ButtonProps$1 extends BaseButtonProps {
601
649
  * Component display name.
602
650
  */
603
651
  declare const COMPONENT_NAME = "Button";
604
- /**
605
- * Component default class name and class prefix.
606
- */
607
- declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
608
652
  /**
609
653
  * Component default props.
610
654
  */
@@ -641,7 +685,7 @@ interface IconButtonProps$1 extends BaseButtonProps {
641
685
  title?: string;
642
686
  }
643
687
 
644
- interface IconButtonProps extends GenericProps, Omit<IconButtonProps$1, 'title'> {
688
+ interface IconButtonProps extends GenericProps, Omit<IconButtonProps$1, 'title' | 'children'> {
645
689
  /**
646
690
  * Props to pass to the tooltip.
647
691
  * If undefined or if tooltipProps.label is undefined, the label prop will be used as tooltip label.
@@ -685,16 +729,11 @@ declare const ButtonGroup: Comp<ButtonGroupProps, HTMLDivElement>;
685
729
  /**
686
730
  * Defines the props of the component.
687
731
  */
688
- interface CheckboxProps$1 extends HasTheme, HasClassName, HasAriaDisabled {
732
+ interface CheckboxProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled, HasChecked<boolean | 'intermediate'> {
689
733
  /** Helper text. */
690
734
  helper?: string;
691
735
  /** Native input id property. */
692
736
  id?: string;
693
- /** Whether it is checked or not or intermediate. */
694
- isChecked?: boolean | 'intermediate';
695
- checked?: boolean;
696
- /** Whether the component is disabled or not. */
697
- isDisabled?: boolean;
698
737
  /** Label text. */
699
738
  label?: JSXElement;
700
739
  /** Native input name property. */
@@ -849,6 +888,66 @@ interface SelectionChipGroupProps<O> extends GenericProps {
849
888
  */
850
889
  declare const SelectionChipGroup: <O>({ onChange, value, getOptionId, getOptionName, inputRef, inputLabel, renderChip, theme, isDisabled, chipTooltipLabel, label, ...forwardedProps }: SelectionChipGroupProps<O>) => react_jsx_runtime.JSX.Element;
851
890
 
891
+ interface ComboboxButtonProps extends GenericProps {
892
+ /**
893
+ * Label of the combobox button trigger.
894
+ */
895
+ label: string;
896
+ /**
897
+ * Controls how the `label` is displayed:
898
+ * - `show-selection` (default): Displays the current selection as the label, or falls back to the provided `label`
899
+ * if there is no selection. The `label` will still appear as a tooltip in this mode.
900
+ * - `show-label`: Always displays the provided `label` as the visual label.
901
+ * - `show-tooltip`: Always displays the provided `label` as the visual a tooltip.
902
+ * (useful for IconButton combobox)
903
+ * In all cases, the given `label` is the ARIA label in use
904
+ */
905
+ labelDisplayMode?: 'show-selection' | 'show-label' | 'show-tooltip';
906
+ /**
907
+ * Focus event handler
908
+ */
909
+ onFocus?: React__default.FocusEventHandler;
910
+ /**
911
+ * Blur event handler
912
+ */
913
+ onBlur?: React__default.FocusEventHandler;
914
+ /** Customize the root element. */
915
+ as?: React__default.ElementType;
916
+ }
917
+ /**
918
+ * Combobox button trigger.
919
+ *
920
+ * @family Combobox
921
+ */
922
+ declare const ComboboxButton: Comp<ComboboxButtonProps, HTMLElement>;
923
+
924
+ /** Combobox option divider */
925
+ declare function ComboboxDivider(): react_jsx_runtime.JSX.Element;
926
+
927
+ /**
928
+ * All TextField props that are extended.
929
+ * We can't use "Omit" here as it is not compatible with the "GenericProps" type from the DS,
930
+ * meaning we would loose all props.
931
+ *
932
+ */
933
+ type ExtendedTextFieldProps = PartialBy<Pick<TextFieldProps, 'ariaLabel' | 'chips' | 'error' | 'forceFocusStyle' | 'hasError' | 'afterElement' | 'helper' | 'icon' | 'inputRef' | 'textFieldRef' | 'isDisabled' | 'className' | 'isRequired' | 'isValid' | 'label' | 'maxLength' | 'minimumRows' | 'multiline' | 'id' | 'name' | 'placeholder' | 'onBlur' | 'onClear' | 'onKeyDown' | 'onFocus' | 'theme'>, 'ariaLabel' | 'onKeyDown'>;
934
+ type ComboboxInputProps = ExtendedTextFieldProps & {
935
+ /** Whether the toggle button should be hidden */
936
+ hideToggle?: boolean;
937
+ /** Activate the clear button */
938
+ hasClearButton?: boolean;
939
+ /** Clear button forwarded props */
940
+ clearButtonProps?: Omit<TextFieldProps['clearButtonProps'], 'label'>;
941
+ /** Make input read only */
942
+ readOnly?: boolean;
943
+ };
944
+ /**
945
+ * Combobox input trigger.
946
+ *
947
+ * @family Combobox
948
+ */
949
+ declare const ComboboxInput: ({ hideToggle, inputRef, textFieldRef, afterElement, onFocus, onBlur, onKeyDown, clearButtonProps, hasClearButton, theme, ...textFieldProps }: ComboboxInputProps) => react_jsx_runtime.JSX.Element;
950
+
852
951
  /**
853
952
  * The source of the combobox option selection
854
953
  * It could either be on click / touch or keyboard selection
@@ -1059,33 +1158,6 @@ type ComboboxProps<O = any> = {
1059
1158
  translations: ComboboxTranslations;
1060
1159
  };
1061
1160
 
1062
- interface ComboboxButtonProps extends GenericProps {
1063
- /**
1064
- * Label of the combobox button trigger.
1065
- */
1066
- label: string;
1067
- /**
1068
- * Controls how the `label` is displayed:
1069
- * - `show-selection` (default): Displays the current selection as the label, or falls back to the provided `label`
1070
- * if there is no selection. The `label` will still appear as a tooltip in this mode.
1071
- * - `show-label`: Always displays the provided `label` as the visual label.
1072
- * - `show-tooltip`: Always displays the provided `label` as the visual a tooltip.
1073
- * (useful for IconButton combobox)
1074
- * In all cases, the given `label` is the ARIA label in use
1075
- */
1076
- labelDisplayMode?: 'show-selection' | 'show-label' | 'show-tooltip';
1077
- /**
1078
- * Focus event handler
1079
- */
1080
- onFocus?: React__default.FocusEventHandler;
1081
- /**
1082
- * Blur event handler
1083
- */
1084
- onBlur?: React__default.FocusEventHandler;
1085
- /** Customize the root element. */
1086
- as?: React__default.ElementType;
1087
- }
1088
-
1089
1161
  interface ComboboxOptionSkeletonProps {
1090
1162
  className?: string;
1091
1163
  index?: number;
@@ -1096,6 +1168,11 @@ interface ComboboxOptionSkeletonProps {
1096
1168
  after?: ComboboxOptionProps['after'];
1097
1169
  size?: ComboboxOptionProps['size'];
1098
1170
  }
1171
+ /**
1172
+ * Skeleton for a combobox option.
1173
+ * A typography skeleton is rendered by default but can be overridden by passing children.
1174
+ */
1175
+ declare const ComboboxOptionSkeleton: ({ className, index, before, after, size, children, }: ComboboxOptionSkeletonProps) => react_jsx_runtime.JSX.Element;
1099
1176
 
1100
1177
  interface ComboboxListSkeletonProps {
1101
1178
  isLoadingMore?: boolean;
@@ -1122,24 +1199,66 @@ interface ComboboxListBoxProps extends GenericProps$1, React__default.ComponentP
1122
1199
  /** List ref */
1123
1200
  listRef?: React__default.Ref<HTMLElement>;
1124
1201
  }
1202
+ /**
1203
+ * The listbox containing the combobox's options.
1204
+ *
1205
+ * @family Combobox
1206
+ * @param ComboboxListBoxProps
1207
+ * @returns ComboboxListBox
1208
+ */
1209
+ declare const ComboboxListBox: ({ children, renderItemSkeleton, label, popoverProps, footer, listRef, ...forwardedProps }: ComboboxListBoxProps) => react_jsx_runtime.JSX.Element;
1125
1210
 
1211
+ declare const LUMX_CLASSNAME = "lumx-list-item";
1126
1212
  /**
1127
- * All TextField props that are extended.
1128
- * We can't use "Omit" here as it is not compatible with the "GenericProps" type from the DS,
1129
- * meaning we would loose all props.
1213
+ * Props for ComboboxOption with additional generic properties.
1214
+ */
1215
+ interface ComboboxOptionComponentProps<O extends object = any> extends GenericProps, Omit<ComboboxOptionProps<O>, 'as'> {
1216
+ /** Customize the root element. */
1217
+ as?: React__default.ElementType;
1218
+ }
1219
+ /**
1220
+ * Option to set within a combobox list.
1130
1221
  *
1222
+ * @family Combobox
1223
+ * @param ComboboxOptionProps
1224
+ * @returns ComboboxOption
1131
1225
  */
1132
- type ExtendedTextFieldProps = PartialBy<Pick<TextFieldProps, 'ariaLabel' | 'chips' | 'error' | 'forceFocusStyle' | 'hasError' | 'afterElement' | 'helper' | 'icon' | 'inputRef' | 'textFieldRef' | 'isDisabled' | 'className' | 'isRequired' | 'isValid' | 'label' | 'maxLength' | 'minimumRows' | 'multiline' | 'id' | 'name' | 'placeholder' | 'onBlur' | 'onClear' | 'onKeyDown' | 'onFocus' | 'theme'>, 'ariaLabel' | 'onKeyDown'>;
1133
- type ComboboxInputProps = ExtendedTextFieldProps & {
1134
- /** Whether the toggle button should be hidden */
1135
- hideToggle?: boolean;
1136
- /** Activate the clear button */
1137
- hasClearButton?: boolean;
1138
- /** Clear button forwarded props */
1139
- clearButtonProps?: Omit<TextFieldProps['clearButtonProps'], 'label'>;
1140
- /** Make input read only */
1141
- readOnly?: boolean;
1142
- };
1226
+ declare const ComboboxOption: Comp<ComboboxOptionComponentProps<any>, HTMLElement>;
1227
+
1228
+ interface ComboboxOptionActionProps extends GenericProps {
1229
+ /** Should the action be set as disabled */
1230
+ isDisabled?: boolean;
1231
+ /** Action to trigger when the action is selected */
1232
+ onClick: () => void;
1233
+ /** Customize the root element. */
1234
+ as?: React__default.ElementType;
1235
+ }
1236
+ /**
1237
+ * Action to set on a Combobox Option.
1238
+ * Allows to add an interactive element that
1239
+ * can be navigated to and triggered using the keyboard.
1240
+ *
1241
+ * Defaults as "button"
1242
+ *
1243
+ * @family Combobox
1244
+ * @param ComboboxOptionActionProps
1245
+ * @returns ComboboxOptionAction
1246
+ */
1247
+ declare const ComboboxOptionAction: (props: ComboboxOptionActionProps) => react_jsx_runtime.JSX.Element;
1248
+
1249
+ interface ComboboxOptionMoreInfoProps {
1250
+ buttonProps?: Partial<IconButtonProps>;
1251
+ popoverProps?: PopoverProps;
1252
+ onToggle?: (isOpen: boolean) => void;
1253
+ children?: React__default.ReactNode;
1254
+ }
1255
+ /**
1256
+ * Display more info on the option as a popover opening on mouse hover or keyboard nav
1257
+ * Please consider using a simpler option description instead for better UX and a11y.
1258
+ *
1259
+ * @family Combobox
1260
+ */
1261
+ declare const ComboboxOptionMoreInfo: React__default.FC<ComboboxOptionMoreInfoProps>;
1143
1262
 
1144
1263
  interface ComboboxSectionProps {
1145
1264
  /** Forwarded class name */
@@ -1153,14 +1272,14 @@ interface ComboboxSectionProps {
1153
1272
  /** Options to display */
1154
1273
  children: ReactNode;
1155
1274
  }
1156
-
1157
1275
  /**
1158
- * Props for ComboboxOption with additional generic properties.
1276
+ * Section for options of a Combobox.
1277
+ *
1278
+ * @family Combobox
1279
+ * @param ComboboxSectionProps
1280
+ * @returns ComboboxSection
1159
1281
  */
1160
- interface ComboboxOptionComponentProps<O extends object = any> extends GenericProps, Omit<ComboboxOptionProps<O>, 'as'> {
1161
- /** Customize the root element. */
1162
- as?: React__default.ElementType;
1163
- }
1282
+ declare const ComboboxSection: ({ children, ...props }: ComboboxSectionProps) => react_jsx_runtime.JSX.Element;
1164
1283
 
1165
1284
  declare const SUB_COMPONENTS: {
1166
1285
  /**
@@ -1273,7 +1392,7 @@ declare const CommentBlockVariant: {
1273
1392
  readonly indented: "indented";
1274
1393
  readonly linear: "linear";
1275
1394
  };
1276
- type CommentBlockVariant = ValueOf<typeof CommentBlockVariant>;
1395
+ type CommentBlockVariant = ValueOf$1<typeof CommentBlockVariant>;
1277
1396
  /**
1278
1397
  * Defines the props of the component.
1279
1398
  */
@@ -1468,7 +1587,15 @@ declare const Dialog: Comp<DialogProps, HTMLDivElement>;
1468
1587
  /**
1469
1588
  * Defines the props of the component.
1470
1589
  */
1471
- interface DividerProps extends GenericProps, HasTheme$1 {
1590
+ interface DividerProps$1 extends HasTheme, HasClassName {
1591
+ /** reference to the root element */
1592
+ ref?: CommonRef;
1593
+ }
1594
+
1595
+ /**
1596
+ * Defines the props of the component.
1597
+ */
1598
+ interface DividerProps extends GenericProps, DividerProps$1 {
1472
1599
  }
1473
1600
  /**
1474
1601
  * Divider component.
@@ -1513,7 +1640,7 @@ declare const Placement: {
1513
1640
  readonly LEFT_END: "left-end";
1514
1641
  readonly LEFT_START: "left-start";
1515
1642
  };
1516
- type Placement = ValueOf<typeof Placement>;
1643
+ type Placement = ValueOf$1<typeof Placement>;
1517
1644
  /**
1518
1645
  * Offset of the popover.
1519
1646
  */
@@ -1535,7 +1662,7 @@ declare const FitAnchorWidth: {
1535
1662
  readonly MIN_WIDTH: "minWidth";
1536
1663
  readonly WIDTH: "width";
1537
1664
  };
1538
- type FitAnchorWidth = ValueOf<typeof FitAnchorWidth>;
1665
+ type FitAnchorWidth = ValueOf$1<typeof FitAnchorWidth>;
1539
1666
 
1540
1667
  /**
1541
1668
  * Defines the props of the component.
@@ -1849,7 +1976,7 @@ declare const GenericBlockGapSize: Pick<{
1849
1976
  readonly big: "big";
1850
1977
  readonly huge: "huge";
1851
1978
  }, "medium" | "tiny" | "regular" | "big" | "huge">;
1852
- type GenericBlockGapSize = ValueOf<typeof GenericBlockGapSize>;
1979
+ type GenericBlockGapSize = ValueOf$1<typeof GenericBlockGapSize>;
1853
1980
 
1854
1981
  interface GenericBlockProps extends FlexBoxProps {
1855
1982
  /**
@@ -2018,22 +2145,37 @@ interface GridItemProps extends GenericProps {
2018
2145
  */
2019
2146
  declare const GridItem: Comp<GridItemProps, HTMLDivElement>;
2020
2147
 
2021
- type GridColumnGapSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
2148
+ type GridColumnGapSize = Extract<Size, 'tiny' | 'regular' | 'big' | 'huge'>;
2022
2149
  /**
2023
2150
  * Defines the props of the component.
2024
2151
  */
2025
- interface GridColumnProps extends GenericProps {
2152
+ interface GridColumnProps$1 extends HasClassName {
2026
2153
  /** Customize the root element. */
2027
- as?: React.ElementType;
2154
+ as?: any;
2028
2155
  /** Children elements. */
2029
- children?: ReactNode;
2156
+ children?: JSXElement;
2030
2157
  /** Space between columns and rows. */
2031
2158
  gap?: GridColumnGapSize;
2032
2159
  /** Ideal number of columns. */
2033
2160
  maxColumns?: number;
2034
2161
  /** Minimum width for each item, reduce the number of column if there is not enough space. */
2035
2162
  itemMinWidth?: number;
2163
+ /** Custom styles. */
2164
+ style?: any;
2165
+ /** reference to the root element */
2166
+ ref?: CommonRef;
2036
2167
  }
2168
+
2169
+ /**
2170
+ * Defines the props of the component.
2171
+ */
2172
+ interface GridColumnProps extends GenericProps, GridColumnProps$1 {
2173
+ /** Customize the root element. */
2174
+ as?: React.ElementType;
2175
+ /** Children elements. */
2176
+ children?: React.ReactNode;
2177
+ }
2178
+
2037
2179
  /**
2038
2180
  * The GridColumn is a layout component that can display children in a grid
2039
2181
  * with custom display properties. It also comes with a responsive design,
@@ -2084,96 +2226,141 @@ interface IconProps extends Omit<IconProps$1, 'children'>, GenericProps {
2084
2226
  */
2085
2227
  declare const Icon: Comp<IconProps, HTMLElement>;
2086
2228
 
2087
- /**
2088
- * Focal point using vertical alignment, horizontal alignment or coordinates (from -1 to 1).
2089
- */
2090
- type FocusPoint = {
2091
- x?: number;
2092
- y?: number;
2093
- };
2094
2229
  /**
2095
2230
  * Loading attribute is not yet supported in typescript, so we need
2096
2231
  * to add it in order to avoid a ts error.
2097
2232
  * https://github.com/typescript-cheatsheets/react-typescript-cheatsheet/blob/master/ADVANCED.md#adding-non-standard-attributes
2098
2233
  */
2099
2234
  declare module 'react' {
2100
- interface ImgHTMLAttributes<T> extends React__default.HTMLAttributes<T> {
2235
+ interface ImgHTMLAttributes<T> extends React.HTMLAttributes<T> {
2101
2236
  loading?: 'eager' | 'lazy';
2102
2237
  }
2103
2238
  }
2104
- /**
2105
- * All available aspect ratios.
2106
- * @deprecated
2107
- */
2108
- declare const ThumbnailAspectRatio: Record<string, AspectRatio>;
2109
2239
  /**
2110
2240
  * Thumbnail sizes.
2111
2241
  */
2112
- type ThumbnailSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
2242
+ type ThumbnailSize$1 = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
2113
2243
  /**
2114
2244
  * Thumbnail variants.
2115
2245
  */
2116
- declare const ThumbnailVariant: {
2246
+ declare const ThumbnailVariant$1: {
2117
2247
  readonly squared: "squared";
2118
2248
  readonly rounded: "rounded";
2119
2249
  };
2120
- type ThumbnailVariant = ValueOf<typeof ThumbnailVariant>;
2250
+ type ThumbnailVariant$1 = ValueOf<typeof ThumbnailVariant$1>;
2121
2251
  /**
2122
2252
  * Thumbnail object fit.
2123
2253
  */
2124
- declare const ThumbnailObjectFit: {
2254
+ declare const ThumbnailObjectFit$1: {
2125
2255
  readonly cover: "cover";
2126
2256
  readonly contain: "contain";
2127
2257
  };
2128
- type ThumbnailObjectFit = ValueOf<typeof ThumbnailObjectFit>;
2258
+ type ThumbnailObjectFit$1 = ValueOf<typeof ThumbnailObjectFit$1>;
2129
2259
 
2130
2260
  type ImgHTMLProps = ImgHTMLAttributes<HTMLImageElement>;
2131
2261
  /**
2132
2262
  * Defines the props of the component.
2133
2263
  */
2134
- interface ThumbnailProps extends GenericProps, HasTheme$1 {
2264
+ interface ThumbnailProps$1 extends HasTheme$1, HasClassName$1 {
2135
2265
  /** Alignment of the thumbnail in it's parent (requires flex parent). */
2136
2266
  align?: HorizontalAlignment$1;
2137
2267
  /** Image alternative text. */
2138
2268
  alt: string;
2139
2269
  /** Image aspect ratio. */
2140
- aspectRatio?: AspectRatio;
2270
+ aspectRatio?: AspectRatio$1;
2141
2271
  /** Badge. */
2142
- badge?: ReactElement | Falsy;
2272
+ badge?: JSXElement$1;
2143
2273
  /** Image cross origin resource policy. */
2144
2274
  crossOrigin?: ImgHTMLProps['crossOrigin'];
2145
2275
  /** Fallback icon (SVG path) or react node when image fails to load. */
2146
- fallback?: string | ReactNode;
2276
+ fallback?: string | JSXElement$1;
2147
2277
  /** Whether the thumbnail should fill it's parent size (requires flex parent) or not. */
2148
2278
  fillHeight?: boolean;
2149
- /** Apply relative vertical and horizontal shift (from -1 to 1) on the image position inside the thumbnail. */
2150
- focusPoint?: FocusPoint;
2151
2279
  /** Image URL. */
2152
2280
  image: string;
2281
+ loadingState: string;
2153
2282
  /** Props to inject into the native <img> element. */
2154
2283
  imgProps?: ImgHTMLProps;
2155
2284
  /** Reference to the native <img> element. */
2156
- imgRef?: Ref<HTMLImageElement>;
2285
+ imgRef?: CommonRef$1;
2286
+ ref?: CommonRef$1;
2157
2287
  /** Set to true to force the display of the loading skeleton. */
2158
2288
  isLoading?: boolean;
2159
2289
  /** Set how the image should fit when its aspect ratio is constrained */
2160
- objectFit?: ThumbnailObjectFit;
2290
+ objectFit?: ThumbnailObjectFit$1;
2161
2291
  /** Size variant of the component. */
2162
- size?: ThumbnailSize;
2292
+ size?: ThumbnailSize$1;
2163
2293
  /** Image loading mode. */
2164
- loading?: ImgHTMLProps['loading'];
2294
+ loading?: 'eager' | 'lazy';
2165
2295
  /** Ref of an existing placeholder image to display while loading. */
2166
- loadingPlaceholderImageRef?: React__default.RefObject<HTMLImageElement>;
2296
+ loadingPlaceholderImageRef?: React.RefObject<HTMLImageElement>;
2167
2297
  /** On click callback. */
2168
- onClick?: MouseEventHandler<HTMLDivElement>;
2298
+ onClick?: (event: any) => void;
2169
2299
  /** On key press callback. */
2170
- onKeyPress?: KeyboardEventHandler<HTMLDivElement>;
2300
+ onKeyPress?: (event: any) => void;
2171
2301
  /** Variant of the component. */
2172
- variant?: ThumbnailVariant;
2302
+ variant?: ThumbnailVariant$1;
2173
2303
  /** Props to pass to the link wrapping the thumbnail. */
2174
- linkProps?: React__default.DetailedHTMLProps<React__default.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
2304
+ linkProps?: GenericProps;
2305
+ focusPointStyle?: GenericProps;
2306
+ disabledStateProps?: GenericProps;
2307
+ isAnyDisabled?: boolean;
2175
2308
  /** Custom react component for the link (can be used to inject react router Link). */
2176
2309
  linkAs?: 'a' | any;
2310
+ 'aria-label'?: string;
2311
+ }
2312
+
2313
+ /**
2314
+ * Focal point using vertical alignment, horizontal alignment or coordinates (from -1 to 1).
2315
+ */
2316
+ type FocusPoint = {
2317
+ x?: number;
2318
+ y?: number;
2319
+ };
2320
+ /**
2321
+ * Loading attribute is not yet supported in typescript, so we need
2322
+ * to add it in order to avoid a ts error.
2323
+ * https://github.com/typescript-cheatsheets/react-typescript-cheatsheet/blob/master/ADVANCED.md#adding-non-standard-attributes
2324
+ */
2325
+ declare module 'react' {
2326
+ interface ImgHTMLAttributes<T> extends React__default.HTMLAttributes<T> {
2327
+ loading?: 'eager' | 'lazy';
2328
+ }
2329
+ }
2330
+ /**
2331
+ * All available aspect ratios.
2332
+ * @deprecated
2333
+ */
2334
+ declare const ThumbnailAspectRatio: Record<string, AspectRatio$1>;
2335
+ /**
2336
+ * Thumbnail sizes.
2337
+ */
2338
+ type ThumbnailSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
2339
+ /**
2340
+ * Thumbnail variants.
2341
+ */
2342
+ declare const ThumbnailVariant: {
2343
+ readonly squared: "squared";
2344
+ readonly rounded: "rounded";
2345
+ };
2346
+ type ThumbnailVariant = ValueOf$1<typeof ThumbnailVariant>;
2347
+ /**
2348
+ * Thumbnail object fit.
2349
+ */
2350
+ declare const ThumbnailObjectFit: {
2351
+ readonly cover: "cover";
2352
+ readonly contain: "contain";
2353
+ };
2354
+ type ThumbnailObjectFit = ValueOf$1<typeof ThumbnailObjectFit>;
2355
+
2356
+ /**
2357
+ * Defines the props of the component.
2358
+ */
2359
+ interface ThumbnailProps extends GenericProps, Omit<ThumbnailProps$1, 'loadingState' | 'isAnyDisabled' | 'focusPointStyle' | 'disabledStateProps' | 'badge'> {
2360
+ /** Apply relative vertical and horizontal shift (from -1 to 1) on the image position inside the thumbnail. */
2361
+ focusPoint?: FocusPoint;
2362
+ /** Badge. */
2363
+ badge?: ReactElement | Falsy;
2177
2364
  }
2178
2365
  /**
2179
2366
  * Thumbnail component.
@@ -2209,7 +2396,7 @@ declare const ImageBlockCaptionPosition: {
2209
2396
  readonly below: "below";
2210
2397
  readonly over: "over";
2211
2398
  };
2212
- type ImageBlockCaptionPosition = ValueOf<typeof ImageBlockCaptionPosition>;
2399
+ type ImageBlockCaptionPosition = ValueOf$1<typeof ImageBlockCaptionPosition>;
2213
2400
  /**
2214
2401
  * Image block sizes.
2215
2402
  */
@@ -2419,37 +2606,55 @@ interface LightboxProps extends GenericProps, HasTheme$1, Pick<AriaAttributes, '
2419
2606
  */
2420
2607
  declare const Lightbox: Comp<LightboxProps, HTMLDivElement>;
2421
2608
 
2422
- type HTMLAnchorProps = React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
2423
2609
  /**
2424
2610
  * Defines the props of the component.
2425
2611
  */
2426
- interface LinkProps extends GenericProps, HasAriaDisabled$1 {
2612
+ interface LinkProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled {
2613
+ /** Link label content. */
2614
+ label?: JSXElement;
2427
2615
  /** Color variant. */
2428
2616
  color?: ColorWithVariants$1;
2429
2617
  /** Lightened or darkened variant of the selected icon color. */
2430
2618
  colorVariant?: ColorVariant$1;
2431
2619
  /** Link href. */
2432
- href?: HTMLAnchorProps['href'];
2433
- /** Whether the component is disabled or not. */
2434
- isDisabled?: boolean;
2620
+ href?: string;
2435
2621
  /**
2436
2622
  * Left icon (SVG path).
2437
- * @deprecated Instead, simply nest `<Icon />` in the children
2623
+ * @deprecated Instead, simply nest `<Icon />` in the label
2438
2624
  */
2439
2625
  leftIcon?: string;
2440
- /** Custom react component for the link (can be used to inject react router Link). */
2441
- linkAs?: 'a' | any;
2626
+ /** Element type or custom component for the link. */
2627
+ as?: string | any;
2442
2628
  /**
2443
2629
  * Right icon (SVG path).
2444
- * @deprecated Instead, simply nest `<Icon />` in the children
2630
+ * @deprecated Instead, simply nest `<Icon />` in the label
2445
2631
  */
2446
2632
  rightIcon?: string;
2447
2633
  /** Link target. */
2634
+ target?: string;
2635
+ /** Typography variant. */
2636
+ typography?: string;
2637
+ /** Click handler. */
2638
+ onClick?: (event: any) => void;
2639
+ /** Reference to the root element. */
2640
+ ref?: CommonRef;
2641
+ }
2642
+
2643
+ type HTMLAnchorProps = React__default.DetailedHTMLProps<React__default.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
2644
+ /**
2645
+ * Defines the props of the component.
2646
+ */
2647
+ interface LinkProps extends GenericProps, Omit<LinkProps$1, 'label'> {
2648
+ /** Link href. */
2649
+ href?: HTMLAnchorProps['href'];
2650
+ /** Custom react component for the link (can be used to inject react router Link). */
2651
+ linkAs?: 'a' | any;
2652
+ /** Link target. */
2448
2653
  target?: HTMLAnchorProps['target'];
2449
2654
  /** Typography variant. */
2450
2655
  typography?: Typography$1;
2451
2656
  /** Children */
2452
- children?: React.ReactNode;
2657
+ children?: React__default.ReactNode;
2453
2658
  }
2454
2659
  /**
2455
2660
  * Link component.
@@ -2787,7 +2992,7 @@ declare const ProgressVariant: {
2787
2992
  readonly linear: "linear";
2788
2993
  readonly circular: "circular";
2789
2994
  };
2790
- type ProgressVariant = ValueOf<typeof ProgressVariant>;
2995
+ type ProgressVariant = ValueOf$1<typeof ProgressVariant>;
2791
2996
  /**
2792
2997
  * Defines the props of the component.
2793
2998
  */
@@ -2945,27 +3150,33 @@ declare const ProgressTrackerStepPanel: Comp<ProgressTrackerStepPanelProps, HTML
2945
3150
  /**
2946
3151
  * Defines the props of the component.
2947
3152
  */
2948
- interface RadioButtonProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
3153
+ interface RadioButtonProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled, HasChecked {
2949
3154
  /** Helper text. */
2950
3155
  helper?: string;
2951
3156
  /** Native input id property. */
2952
3157
  id?: string;
2953
- /** Native input ref. */
2954
- inputRef?: React.Ref<HTMLInputElement>;
2955
- /** Whether it is checked or not. */
2956
- isChecked?: boolean;
2957
- /** Whether the component is disabled or not. */
2958
- isDisabled?: boolean;
2959
3158
  /** Label content. */
2960
- label?: ReactNode;
3159
+ label?: JSXElement;
2961
3160
  /** Native input name property. */
2962
3161
  name?: string;
2963
3162
  /** Native input value property. */
2964
3163
  value?: string;
2965
- /** On change callback. */
2966
- onChange?(value?: string, name?: string, event?: SyntheticEvent): void;
2967
3164
  /** optional props for input */
2968
- inputProps?: InputHTMLAttributes<HTMLInputElement>;
3165
+ inputProps?: Record<string, any>;
3166
+ /** Native input ref. */
3167
+ inputRef?: CommonRef;
3168
+ /** Native input id. */
3169
+ inputId: string;
3170
+ /** On change callback. */
3171
+ onChange?(value?: string, name?: string, event?: any): void;
3172
+ /** reference to the root element */
3173
+ ref?: CommonRef;
3174
+ }
3175
+
3176
+ /**
3177
+ * Defines the props of the component.
3178
+ */
3179
+ interface RadioButtonProps extends GenericProps, Omit<RadioButtonProps$1, 'inputId'> {
2969
3180
  }
2970
3181
  /**
2971
3182
  * RadioButton component.
@@ -2999,7 +3210,7 @@ declare const SelectVariant: {
2999
3210
  readonly input: "input";
3000
3211
  readonly chip: "chip";
3001
3212
  };
3002
- type SelectVariant = ValueOf<typeof SelectVariant>;
3213
+ type SelectVariant = ValueOf$1<typeof SelectVariant>;
3003
3214
  interface CoreSelectProps extends GenericProps, HasTheme$1 {
3004
3215
  /** Props to pass to the clear button (minus those already set by the Select props). If not specified, the button won't be displayed. */
3005
3216
  clearButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
@@ -3132,20 +3343,14 @@ declare const SideNavigationItem: Comp<SideNavigationItemProps, HTMLLIElement>;
3132
3343
  /**
3133
3344
  * Defines the props of the component.
3134
3345
  */
3135
- interface SkeletonCircleProps extends GenericProps, HasTheme$1 {
3346
+ interface SkeletonCircleProps$1 extends HasTheme, HasClassName {
3136
3347
  /** Size variant. */
3137
3348
  size: GlobalSize;
3138
3349
  /** The color of the skeleton. */
3139
- color?: ColorPalette$1;
3350
+ color?: ColorPalette;
3351
+ /** Reference to the root element. */
3352
+ ref?: CommonRef;
3140
3353
  }
3141
- /**
3142
- * SkeletonCircle component.
3143
- *
3144
- * @param props Component props.
3145
- * @param ref Component ref.
3146
- * @return React element.
3147
- */
3148
- declare const SkeletonCircle: Comp<SkeletonCircleProps, HTMLDivElement>;
3149
3354
 
3150
3355
  /**
3151
3356
  * Skeleton variants.
@@ -3159,7 +3364,7 @@ type SkeletonRectangleVariant = ValueOf<typeof SkeletonRectangleVariant>;
3159
3364
  /**
3160
3365
  * Defines the props of the component.
3161
3366
  */
3162
- interface SkeletonRectangleProps extends GenericProps, HasTheme$1 {
3367
+ interface SkeletonRectangleProps$1 extends HasTheme, HasClassName {
3163
3368
  /** Aspect ratio (use with width and not height). */
3164
3369
  aspectRatio?: Extract<AspectRatio, 'square' | 'horizontal' | 'vertical' | 'wide'>;
3165
3370
  /** Height size. */
@@ -3169,7 +3374,45 @@ interface SkeletonRectangleProps extends GenericProps, HasTheme$1 {
3169
3374
  /** Width size. */
3170
3375
  width?: GlobalSize;
3171
3376
  /** The color of the skeleton. */
3172
- color?: ColorPalette$1;
3377
+ color?: ColorPalette;
3378
+ /** Reference to the root element. */
3379
+ ref?: CommonRef;
3380
+ }
3381
+
3382
+ /**
3383
+ * Defines the props of the component.
3384
+ */
3385
+ interface SkeletonTypographyProps$1 extends HasTheme, HasClassName {
3386
+ /** Typography variant. */
3387
+ typography: TypographyInterface;
3388
+ /** Width CSS property. */
3389
+ width?: CSSProperties['width'];
3390
+ /** The color of the skeleton. */
3391
+ color?: ColorPalette;
3392
+ /** Reference to the root element. */
3393
+ ref?: CommonRef;
3394
+ /** Style object. */
3395
+ style?: CSSProperties;
3396
+ }
3397
+
3398
+ /**
3399
+ * Defines the props of the component.
3400
+ */
3401
+ interface SkeletonCircleProps extends GenericProps, SkeletonCircleProps$1 {
3402
+ }
3403
+ /**
3404
+ * SkeletonCircle component.
3405
+ *
3406
+ * @param props Component props.
3407
+ * @param ref Component ref.
3408
+ * @return React element.
3409
+ */
3410
+ declare const SkeletonCircle: Comp<SkeletonCircleProps, HTMLDivElement>;
3411
+
3412
+ /**
3413
+ * Defines the props of the component.
3414
+ */
3415
+ interface SkeletonRectangleProps extends GenericProps, SkeletonRectangleProps$1 {
3173
3416
  }
3174
3417
  /**
3175
3418
  * SkeletonRectangle component.
@@ -3183,13 +3426,7 @@ declare const SkeletonRectangle: Comp<SkeletonRectangleProps, HTMLDivElement>;
3183
3426
  /**
3184
3427
  * Defines the props of the component.
3185
3428
  */
3186
- interface SkeletonTypographyProps extends GenericProps, HasTheme$1 {
3187
- /** Typography variant. */
3188
- typography: TypographyInterface$1;
3189
- /** Width CSS property. */
3190
- width?: CSSProperties['width'];
3191
- /** The color of the skeleton. */
3192
- color?: ColorPalette$1;
3429
+ interface SkeletonTypographyProps extends GenericProps, SkeletonTypographyProps$1 {
3193
3430
  }
3194
3431
  /**
3195
3432
  * SkeletonTypography component.
@@ -3257,7 +3494,7 @@ declare const SlideMode: {
3257
3494
  /** Move slides native scroll snap (available only on supported browsers) */
3258
3495
  readonly scrollSnap: "scroll-snap";
3259
3496
  };
3260
- type SlideMode = ValueOf<typeof SlideMode>;
3497
+ type SlideMode = ValueOf$1<typeof SlideMode>;
3261
3498
 
3262
3499
  /**
3263
3500
  * Defines the props of the component.
@@ -3456,25 +3693,37 @@ declare const Slides: Comp<SlidesProps, HTMLDivElement>;
3456
3693
  /**
3457
3694
  * Defines the props of the component.
3458
3695
  */
3459
- interface SwitchProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
3696
+ interface SwitchProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled, HasChecked {
3460
3697
  /** Helper text. */
3461
3698
  helper?: string;
3462
- /** Whether it is checked or not. */
3463
- isChecked?: boolean;
3464
- /** Whether the component is disabled or not. */
3465
- isDisabled?: boolean;
3699
+ /** Native input id property. */
3700
+ id?: string;
3701
+ /** Label text. */
3702
+ label?: JSXElement;
3466
3703
  /** Native input name property. */
3467
3704
  name?: string;
3468
- /** Position of the switch relative to the label. */
3469
- position?: Extract<Alignment$1, 'right' | 'left'>;
3470
3705
  /** Native input value property. */
3471
3706
  value?: string;
3472
- /** On change callback. */
3473
- onChange?(isChecked: boolean, value?: string, name?: string, event?: SyntheticEvent): void;
3474
3707
  /** optional props for input */
3475
- inputProps?: InputHTMLAttributes<HTMLInputElement>;
3476
- /** Children */
3477
- children?: React.ReactNode;
3708
+ inputProps?: Record<string, any>;
3709
+ /** Native input ref. */
3710
+ inputRef?: CommonRef;
3711
+ /** Native input id. */
3712
+ inputId: string;
3713
+ /** On change callback. */
3714
+ onChange?(isChecked: boolean, value?: string, name?: string, event?: any): void;
3715
+ /** Position of the switch relative to the label. */
3716
+ position?: 'left' | 'right';
3717
+ /** reference to the root element */
3718
+ ref?: CommonRef;
3719
+ }
3720
+
3721
+ /**
3722
+ * Defines the props of the component.
3723
+ */
3724
+ interface SwitchProps extends GenericProps, Omit<SwitchProps$1, 'inputId' | 'label'> {
3725
+ /** Children (label content). */
3726
+ children?: React__default.ReactNode;
3478
3727
  }
3479
3728
  /**
3480
3729
  * Switch component.
@@ -3488,11 +3737,21 @@ declare const Switch: Comp<SwitchProps, HTMLDivElement>;
3488
3737
  /**
3489
3738
  * Defines the props of the component.
3490
3739
  */
3491
- interface TableProps extends GenericProps, HasTheme$1 {
3740
+ interface TableProps$1 extends HasTheme, HasClassName {
3492
3741
  /** Whether the table has checkbox or thumbnail on first cell or not. */
3493
3742
  hasBefore?: boolean;
3494
3743
  /** Whether the table has dividers or not. */
3495
3744
  hasDividers?: boolean;
3745
+ /** Children */
3746
+ children?: JSXElement;
3747
+ /** reference to the root element */
3748
+ ref?: CommonRef;
3749
+ }
3750
+
3751
+ /**
3752
+ * Defines the props of the component.
3753
+ */
3754
+ interface TableProps extends GenericProps, Omit<TableProps$1, 'ref'> {
3496
3755
  /** Children */
3497
3756
  children?: React.ReactNode;
3498
3757
  }
@@ -3508,7 +3767,17 @@ declare const Table: Comp<TableProps, HTMLTableElement>;
3508
3767
  /**
3509
3768
  * Defines the props of the component.
3510
3769
  */
3511
- interface TableBodyProps extends GenericProps {
3770
+ interface TableBodyProps$1 extends HasClassName {
3771
+ /** Children */
3772
+ children?: JSXElement;
3773
+ /** reference to the root element */
3774
+ ref?: CommonRef;
3775
+ }
3776
+
3777
+ /**
3778
+ * Defines the props of the component.
3779
+ */
3780
+ interface TableBodyProps extends GenericProps, Omit<TableBodyProps$1, 'ref'> {
3512
3781
  /** Children */
3513
3782
  children?: React.ReactNode;
3514
3783
  }
@@ -3540,7 +3809,7 @@ type TableCellVariant = ValueOf<typeof TableCellVariant>;
3540
3809
  /**
3541
3810
  * Defines the props of the component.
3542
3811
  */
3543
- interface TableCellProps extends GenericProps {
3812
+ interface TableCellProps$1 extends HasClassName {
3544
3813
  /** Icon (SVG path).(thead only). */
3545
3814
  icon?: string;
3546
3815
  /** Whether the column is sortable or not (thead only). */
@@ -3551,6 +3820,16 @@ interface TableCellProps extends GenericProps {
3551
3820
  variant?: TableCellVariant;
3552
3821
  /** On header cell click callback. */
3553
3822
  onHeaderClick?(): void;
3823
+ /** Children */
3824
+ children?: JSXElement;
3825
+ /** reference to the root element */
3826
+ ref?: CommonRef;
3827
+ }
3828
+
3829
+ /**
3830
+ * Defines the props of the component.
3831
+ */
3832
+ interface TableCellProps extends GenericProps, Omit<TableCellProps$1, 'ref'> {
3554
3833
  /** Children */
3555
3834
  children?: React.ReactNode;
3556
3835
  }
@@ -3566,7 +3845,17 @@ declare const TableCell: Comp<TableCellProps, HTMLTableCellElement>;
3566
3845
  /**
3567
3846
  * Defines the props of the component.
3568
3847
  */
3569
- interface TableHeaderProps extends GenericProps {
3848
+ interface TableHeaderProps$1 extends HasClassName {
3849
+ /** Children */
3850
+ children?: JSXElement;
3851
+ /** reference to the root element */
3852
+ ref?: CommonRef;
3853
+ }
3854
+
3855
+ /**
3856
+ * Defines the props of the component.
3857
+ */
3858
+ interface TableHeaderProps extends GenericProps, Omit<TableHeaderProps$1, 'ref'> {
3570
3859
  /** Children */
3571
3860
  children?: React.ReactNode;
3572
3861
  }
@@ -3582,13 +3871,25 @@ declare const TableHeader: Comp<TableHeaderProps, HTMLTableSectionElement>;
3582
3871
  /**
3583
3872
  * Defines the props of the component.
3584
3873
  */
3585
- interface TableRowProps extends GenericProps {
3874
+ interface TableRowProps$1 extends HasClassName, HasAriaDisabled {
3586
3875
  /** Whether the component is clickable or not. */
3587
3876
  isClickable?: boolean;
3588
- /** Whether the component is disabled or not. */
3589
- isDisabled?: boolean;
3590
3877
  /** Whether the component is selected or not. */
3591
3878
  isSelected?: boolean;
3879
+ /** Tab index */
3880
+ tabIndex?: number;
3881
+ /** Children */
3882
+ children?: JSXElement;
3883
+ /** reference to the root element */
3884
+ ref?: CommonRef;
3885
+ }
3886
+
3887
+ /**
3888
+ * Defines the props of the component.
3889
+ */
3890
+ interface TableRowProps extends GenericProps, Omit<TableRowProps$1, 'ref' | 'tabIndex' | 'aria-disabled'> {
3891
+ /** Whether the component is disabled or not. */
3892
+ isDisabled?: boolean;
3592
3893
  /** Children */
3593
3894
  children?: React.ReactNode;
3594
3895
  }
@@ -3872,7 +4173,7 @@ declare const UploaderVariant: {
3872
4173
  readonly rounded: "rounded";
3873
4174
  readonly circle: "circle";
3874
4175
  };
3875
- type UploaderVariant = ValueOf<typeof UploaderVariant>;
4176
+ type UploaderVariant = ValueOf$1<typeof UploaderVariant>;
3876
4177
  /**
3877
4178
  * Uploader sizes.
3878
4179
  */
@@ -3888,7 +4189,7 @@ interface FileInputProps extends Omit<React__default.ComponentProps<'input'>, 'o
3888
4189
  */
3889
4190
  interface UploaderProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
3890
4191
  /** Image aspect ratio. */
3891
- aspectRatio?: AspectRatio;
4192
+ aspectRatio?: AspectRatio$1;
3892
4193
  /** Icon (SVG path). */
3893
4194
  icon?: string;
3894
4195
  /** Disabled state */
@@ -3970,5 +4271,5 @@ declare const ThemeProvider: React__default.FC<{
3970
4271
  /** Get the theme in the current context. */
3971
4272
  declare function useTheme(): ThemeContextValue;
3972
4273
 
3973
- export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonEmphasis, ButtonGroup, CLASSNAME, COMPONENT_NAME, Checkbox, Chip, ChipGroup, Combobox, CommentBlock, CommentBlockVariant, DEFAULT_PROPS, DatePicker, DatePickerControlled, DatePickerField, Dialog, Divider, DragHandle, Dropdown, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, ImageLightbox, InlineList, InputHelper, InputLabel, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, ListSubheader, Message, Mosaic, Navigation, Notification, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, RawInputText, RawInputTextarea, SUB_COMPONENTS, Select, SelectMultiple, SelectMultipleField, SelectVariant, SelectionChipGroup, SideNavigation, SideNavigationItem, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableHeader, TableRow, Text, TextField, ThOrder, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, Toolbar, Tooltip, Uploader, UploaderVariant, UserBlock, clamp, isClickable, useFocusPointStyle, useHeadingLevel, useTheme };
3974
- export type { AlertDialogProps, AutocompleteMultipleProps, AutocompleteProps, AvatarProps, AvatarSize, BadgeProps, BadgeWrapperProps, BaseButtonProps, ButtonGroupProps, ButtonProps, ButtonSize, CheckboxProps, ChipGroupProps, ChipProps, CommentBlockProps, DatePickerControlledProps, DatePickerFieldProps, DatePickerProps, DialogProps, DialogSizes, DividerProps, DragHandleProps, DropdownProps, Elevation, ExpansionPanelProps, FlagProps, FlexBoxProps, FlexHorizontalAlignment, FlexVerticalAlignment, FocusPoint, GapSize, GenericBlockProps, GridColumnGapSize, GridColumnProps, GridItemProps, GridProps, HeadingLevelProviderProps, HeadingProps, IconButtonProps, IconProps, IconSizes, ImageBlockProps, ImageBlockSize, ImageLightboxProps, InlineListProps, InputHelperProps, InputLabelProps, LightboxProps, LinkPreviewProps, LinkProps, ListDividerProps, ListItemProps, ListItemSize, ListProps, ListSubheaderProps, MarginAutoAlignment, MessageProps, MosaicProps, NavigationProps, NotificationProps, Offset, PopoverDialogProps, PopoverProps, PostBlockProps, ProgressCircularProps, ProgressCircularSize, ProgressLinearProps, ProgressProps, ProgressTrackerProps, ProgressTrackerProviderProps, ProgressTrackerStepPanelProps, ProgressTrackerStepProps, RadioButtonProps, RadioGroupProps, RawInputTextProps, RawInputTextareaProps, SelectMultipleProps, SelectProps, SelectionChipGroupProps, SideNavigationItemProps, SideNavigationProps, SkeletonCircleProps, SkeletonRectangleProps, SkeletonTypographyProps, SliderProps, SlidesProps, SlideshowControlsProps, SlideshowItemProps, SlideshowProps, SwitchProps, TabListProps, TabPanelProps, TabProps, TabProviderProps, TableBodyProps, TableCellProps, TableHeaderProps, TableProps, TableRowProps, TextFieldProps, TextProps, ThumbnailProps, ThumbnailSize, ToolbarProps, TooltipPlacement, TooltipProps, UploaderProps, UploaderSize, UserBlockProps, UserBlockSize };
4274
+ export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonEmphasis, ButtonGroup, COMPONENT_NAME, Checkbox, Chip, ChipGroup, Combobox, ComboboxButton, ComboboxDivider, ComboboxInput, ComboboxListBox, ComboboxOption, ComboboxOptionAction, ComboboxOptionMoreInfo, ComboboxOptionSkeleton, ComboboxSection, CommentBlock, CommentBlockVariant, DEFAULT_PROPS, DatePicker, DatePickerControlled, DatePickerField, Dialog, Divider, DragHandle, Dropdown, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, ImageLightbox, InlineList, InputHelper, InputLabel, LUMX_CLASSNAME, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, ListSubheader, Message, Mosaic, Navigation, Notification, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, RawInputText, RawInputTextarea, SUB_COMPONENTS, Select, SelectMultiple, SelectMultipleField, SelectVariant, SelectionChipGroup, SideNavigation, SideNavigationItem, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableCellVariant as TableCellVariantType, TableHeader, TableRow, Text, TextField, ThOrder, ThOrder as ThOrderType, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, Toolbar, Tooltip, Uploader, UploaderVariant, UserBlock, clamp, isClickable, useFocusPointStyle, useHeadingLevel, useTheme };
4275
+ export type { AlertDialogProps, AutocompleteMultipleProps, AutocompleteProps, AvatarProps, AvatarSize, BadgeProps, BadgeWrapperProps, BaseButtonProps, ButtonGroupProps, ButtonProps, ButtonSize, CheckboxProps, ChipGroupProps, ChipProps, ComboboxButtonProps, ComboboxInputProps, ComboboxListBoxProps, ComboboxOptionComponentProps, ComboboxOptionMoreInfoProps, ComboboxOptionSkeletonProps, ComboboxSectionProps, CommentBlockProps, DatePickerControlledProps, DatePickerFieldProps, DatePickerProps, DialogProps, DialogSizes, DividerProps, DragHandleProps, DropdownProps, Elevation, ExpansionPanelProps, FlagProps, FlexBoxProps, FlexHorizontalAlignment, FlexVerticalAlignment, FocusPoint, GapSize, GenericBlockProps, GridColumnGapSize, GridColumnProps, GridItemProps, GridProps, HeadingLevelProviderProps, HeadingProps, IconButtonProps, IconProps, IconSizes, ImageBlockProps, ImageBlockSize, ImageLightboxProps, InlineListProps, InputHelperProps, InputLabelProps, LightboxProps, LinkPreviewProps, LinkProps, ListDividerProps, ListItemProps, ListItemSize, ListProps, ListSubheaderProps, MarginAutoAlignment, MessageProps, MosaicProps, NavigationProps, NotificationProps, Offset, PopoverDialogProps, PopoverProps, PostBlockProps, ProgressCircularProps, ProgressCircularSize, ProgressLinearProps, ProgressProps, ProgressTrackerProps, ProgressTrackerProviderProps, ProgressTrackerStepPanelProps, ProgressTrackerStepProps, RadioButtonProps, RadioGroupProps, RawInputTextProps, RawInputTextareaProps, SelectMultipleProps, SelectProps, SelectionChipGroupProps, SideNavigationItemProps, SideNavigationProps, SkeletonCircleProps, SkeletonRectangleProps, SkeletonTypographyProps, SliderProps, SlidesProps, SlideshowControlsProps, SlideshowItemProps, SlideshowProps, SwitchProps, TabListProps, TabPanelProps, TabProps, TabProviderProps, TableBodyProps, TableCellProps, TableHeaderProps, TableProps, TableRowProps, TextFieldProps, TextProps, ThumbnailProps, ThumbnailSize, ToolbarProps, TooltipPlacement, TooltipProps, UploaderProps, UploaderSize, UserBlockProps, UserBlockSize };