@lumx/react 4.3.1 → 4.3.2-alpha.1

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/CONTRIBUTING.md CHANGED
@@ -41,18 +41,6 @@ Before opening a Pull Request, please see the Submission Guidelines below.
41
41
  You can request a new feature by submitting an issue to our [GitHub Repository](https://github.com/lumapps/design-system/issues).
42
42
  If you would like to implement a new feature then consider what kind of change it is, discuss it with us before hand in your issue, so that we can better coordinate our efforts, prevent duplication of work, and help you to craft the change so that it is successfully accepted into the project.
43
43
 
44
- ## <a name="create-a-new-react-component-"></a> Want to create a new React Component?
45
-
46
- The first step to create a new React component is to run:
47
-
48
- ```
49
- yarn scaffold
50
- ```
51
-
52
- This script will generate a TSX file for the component code, a TSX file for the component tests and an MDX file to demo this component.
53
-
54
- To export your component into the `@lumx/react` NPM package, you also have to make sure to update the `src/index.tsx` file.
55
-
56
44
  ## <a name="submission-guidelines"></a> Submission guidelines
57
45
 
58
46
  ### Submitting an issue
package/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { Kind as Kind$1, HorizontalAlignment as HorizontalAlignment$1, Size as Size$1, ColorPalette as ColorPalette$1, Theme as Theme$1, Orientation as Orientation$1, Alignment as Alignment$1, AspectRatio, 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, 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, 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, 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
7
  import React__default, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, AriaAttributes, RefObject, CSSProperties, ImgHTMLAttributes, SetStateAction, Key, ElementType, ComponentProps } from 'react';
@@ -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,6 +509,9 @@ 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
 
512
+ /** Get types of the values of a record. */
513
+ type ValueOf<T extends Record<any, any>> = T[keyof T];
514
+
517
515
  /** Transform a string literal into kebab case */
518
516
  type KebabCase<S> = S extends `${infer C}${infer T}` ? T extends Uncapitalize<T> ? `${Uncapitalize<C>}${KebabCase<T>}` : `${Uncapitalize<C>}-${KebabCase<T>}` : S;
519
517
 
@@ -529,14 +527,70 @@ interface HasAriaDisabled {
529
527
  'aria-disabled'?: Booleanish;
530
528
  }
531
529
 
532
- type BaseClickableProps = {
533
- children?: JSXElement;
530
+ interface HasChecked<C = boolean> {
531
+ /** Component checked state. */
532
+ isChecked?: C;
533
+ /** @alias isChecked */
534
+ checked?: boolean;
535
+ }
536
+
537
+ interface HasDisabled {
538
+ /** Whether the component is disabled or not. */
534
539
  isDisabled?: boolean;
540
+ /** @alias isDisabled */
535
541
  disabled?: boolean;
536
- 'aria-disabled'?: Booleanish;
542
+ }
543
+
544
+ /**
545
+ * Defines the props of the component.
546
+ */
547
+ interface BadgeProps$1 extends HasClassName {
548
+ /** Badge content. */
549
+ children?: JSXElement;
550
+ /** Color variant. */
551
+ color?: ColorPalette;
552
+ /** reference to the root element */
553
+ ref?: CommonRef;
554
+ }
555
+
556
+ /**
557
+ * Defines the props of the component.
558
+ */
559
+ interface BadgeProps extends Omit<BadgeProps$1, 'children'>, GenericProps {
560
+ /** Badge content. */
561
+ children?: ReactNode;
562
+ }
563
+ /**
564
+ * Badge component.
565
+ *
566
+ * @param props Component props.
567
+ * @param ref Component ref.
568
+ * @return React element.
569
+ */
570
+ declare const Badge: Comp<BadgeProps, HTMLDivElement>;
571
+
572
+ interface BadgeWrapperProps$1 extends HasClassName {
573
+ /** Badge element to display */
574
+ badge?: JSXElement;
575
+ /** Content to wrap with badge */
576
+ children?: JSXElement;
577
+ /** Ref forwarding */
578
+ ref?: CommonRef;
579
+ }
580
+
581
+ interface BadgeWrapperProps extends GenericProps, Omit<BadgeWrapperProps$1, 'children' | 'badge'> {
582
+ /** Badge element to display */
583
+ badge: ReactElement;
584
+ /** Content to wrap with badge */
585
+ children: ReactNode;
586
+ }
587
+ declare const BadgeWrapper: Comp<BadgeWrapperProps, HTMLDivElement>;
588
+
589
+ interface BaseClickableProps extends HasDisabled, HasAriaDisabled {
590
+ children?: JSXElement;
537
591
  onClick?: (event?: any) => void;
538
592
  ref?: CommonRef;
539
- };
593
+ }
540
594
 
541
595
  /**
542
596
  * Button size definition.
@@ -685,16 +739,11 @@ declare const ButtonGroup: Comp<ButtonGroupProps, HTMLDivElement>;
685
739
  /**
686
740
  * Defines the props of the component.
687
741
  */
688
- interface CheckboxProps$1 extends HasTheme, HasClassName, HasAriaDisabled {
742
+ interface CheckboxProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled, HasChecked<boolean | 'intermediate'> {
689
743
  /** Helper text. */
690
744
  helper?: string;
691
745
  /** Native input id property. */
692
746
  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
747
  /** Label text. */
699
748
  label?: JSXElement;
700
749
  /** Native input name property. */
@@ -856,7 +905,7 @@ declare const CommentBlockVariant: {
856
905
  readonly indented: "indented";
857
906
  readonly linear: "linear";
858
907
  };
859
- type CommentBlockVariant = ValueOf<typeof CommentBlockVariant>;
908
+ type CommentBlockVariant = ValueOf$1<typeof CommentBlockVariant>;
860
909
  /**
861
910
  * Defines the props of the component.
862
911
  */
@@ -1051,7 +1100,15 @@ declare const Dialog: Comp<DialogProps, HTMLDivElement>;
1051
1100
  /**
1052
1101
  * Defines the props of the component.
1053
1102
  */
1054
- interface DividerProps extends GenericProps, HasTheme$1 {
1103
+ interface DividerProps$1 extends HasTheme, HasClassName {
1104
+ /** reference to the root element */
1105
+ ref?: CommonRef;
1106
+ }
1107
+
1108
+ /**
1109
+ * Defines the props of the component.
1110
+ */
1111
+ interface DividerProps extends GenericProps, DividerProps$1 {
1055
1112
  }
1056
1113
  /**
1057
1114
  * Divider component.
@@ -1096,7 +1153,7 @@ declare const Placement: {
1096
1153
  readonly LEFT_END: "left-end";
1097
1154
  readonly LEFT_START: "left-start";
1098
1155
  };
1099
- type Placement = ValueOf<typeof Placement>;
1156
+ type Placement = ValueOf$1<typeof Placement>;
1100
1157
  /**
1101
1158
  * Offset of the popover.
1102
1159
  */
@@ -1118,7 +1175,7 @@ declare const FitAnchorWidth: {
1118
1175
  readonly MIN_WIDTH: "minWidth";
1119
1176
  readonly WIDTH: "width";
1120
1177
  };
1121
- type FitAnchorWidth = ValueOf<typeof FitAnchorWidth>;
1178
+ type FitAnchorWidth = ValueOf$1<typeof FitAnchorWidth>;
1122
1179
 
1123
1180
  /**
1124
1181
  * Defines the props of the component.
@@ -1432,7 +1489,7 @@ declare const GenericBlockGapSize: Pick<{
1432
1489
  readonly big: "big";
1433
1490
  readonly huge: "huge";
1434
1491
  }, "medium" | "tiny" | "regular" | "big" | "huge">;
1435
- type GenericBlockGapSize = ValueOf<typeof GenericBlockGapSize>;
1492
+ type GenericBlockGapSize = ValueOf$1<typeof GenericBlockGapSize>;
1436
1493
 
1437
1494
  interface GenericBlockProps extends FlexBoxProps {
1438
1495
  /**
@@ -1688,7 +1745,7 @@ declare module 'react' {
1688
1745
  * All available aspect ratios.
1689
1746
  * @deprecated
1690
1747
  */
1691
- declare const ThumbnailAspectRatio: Record<string, AspectRatio>;
1748
+ declare const ThumbnailAspectRatio: Record<string, AspectRatio$1>;
1692
1749
  /**
1693
1750
  * Thumbnail sizes.
1694
1751
  */
@@ -1700,7 +1757,7 @@ declare const ThumbnailVariant: {
1700
1757
  readonly squared: "squared";
1701
1758
  readonly rounded: "rounded";
1702
1759
  };
1703
- type ThumbnailVariant = ValueOf<typeof ThumbnailVariant>;
1760
+ type ThumbnailVariant = ValueOf$1<typeof ThumbnailVariant>;
1704
1761
  /**
1705
1762
  * Thumbnail object fit.
1706
1763
  */
@@ -1708,7 +1765,7 @@ declare const ThumbnailObjectFit: {
1708
1765
  readonly cover: "cover";
1709
1766
  readonly contain: "contain";
1710
1767
  };
1711
- type ThumbnailObjectFit = ValueOf<typeof ThumbnailObjectFit>;
1768
+ type ThumbnailObjectFit = ValueOf$1<typeof ThumbnailObjectFit>;
1712
1769
 
1713
1770
  type ImgHTMLProps = ImgHTMLAttributes<HTMLImageElement>;
1714
1771
  /**
@@ -1720,7 +1777,7 @@ interface ThumbnailProps extends GenericProps, HasTheme$1 {
1720
1777
  /** Image alternative text. */
1721
1778
  alt: string;
1722
1779
  /** Image aspect ratio. */
1723
- aspectRatio?: AspectRatio;
1780
+ aspectRatio?: AspectRatio$1;
1724
1781
  /** Badge. */
1725
1782
  badge?: ReactElement | Falsy;
1726
1783
  /** Image cross origin resource policy. */
@@ -1792,7 +1849,7 @@ declare const ImageBlockCaptionPosition: {
1792
1849
  readonly below: "below";
1793
1850
  readonly over: "over";
1794
1851
  };
1795
- type ImageBlockCaptionPosition = ValueOf<typeof ImageBlockCaptionPosition>;
1852
+ type ImageBlockCaptionPosition = ValueOf$1<typeof ImageBlockCaptionPosition>;
1796
1853
  /**
1797
1854
  * Image block sizes.
1798
1855
  */
@@ -2370,7 +2427,7 @@ declare const ProgressVariant: {
2370
2427
  readonly linear: "linear";
2371
2428
  readonly circular: "circular";
2372
2429
  };
2373
- type ProgressVariant = ValueOf<typeof ProgressVariant>;
2430
+ type ProgressVariant = ValueOf$1<typeof ProgressVariant>;
2374
2431
  /**
2375
2432
  * Defines the props of the component.
2376
2433
  */
@@ -2528,16 +2585,11 @@ declare const ProgressTrackerStepPanel: Comp<ProgressTrackerStepPanelProps, HTML
2528
2585
  /**
2529
2586
  * Defines the props of the component.
2530
2587
  */
2531
- interface RadioButtonProps$1 extends HasTheme, HasClassName, HasAriaDisabled {
2588
+ interface RadioButtonProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled, HasChecked {
2532
2589
  /** Helper text. */
2533
2590
  helper?: string;
2534
2591
  /** Native input id property. */
2535
2592
  id?: string;
2536
- /** Whether it is checked or not. */
2537
- isChecked?: boolean;
2538
- checked?: boolean;
2539
- /** Whether the component is disabled or not. */
2540
- isDisabled?: boolean;
2541
2593
  /** Label content. */
2542
2594
  label?: JSXElement;
2543
2595
  /** Native input name property. */
@@ -2593,7 +2645,7 @@ declare const SelectVariant: {
2593
2645
  readonly input: "input";
2594
2646
  readonly chip: "chip";
2595
2647
  };
2596
- type SelectVariant = ValueOf<typeof SelectVariant>;
2648
+ type SelectVariant = ValueOf$1<typeof SelectVariant>;
2597
2649
  interface CoreSelectProps extends GenericProps, HasTheme$1 {
2598
2650
  /** Props to pass to the clear button (minus those already set by the Select props). If not specified, the button won't be displayed. */
2599
2651
  clearButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
@@ -2726,20 +2778,14 @@ declare const SideNavigationItem: Comp<SideNavigationItemProps, HTMLLIElement>;
2726
2778
  /**
2727
2779
  * Defines the props of the component.
2728
2780
  */
2729
- interface SkeletonCircleProps extends GenericProps, HasTheme$1 {
2781
+ interface SkeletonCircleProps$1 extends HasTheme, HasClassName {
2730
2782
  /** Size variant. */
2731
2783
  size: GlobalSize;
2732
2784
  /** The color of the skeleton. */
2733
- color?: ColorPalette$1;
2785
+ color?: ColorPalette;
2786
+ /** Reference to the root element. */
2787
+ ref?: CommonRef;
2734
2788
  }
2735
- /**
2736
- * SkeletonCircle component.
2737
- *
2738
- * @param props Component props.
2739
- * @param ref Component ref.
2740
- * @return React element.
2741
- */
2742
- declare const SkeletonCircle: Comp<SkeletonCircleProps, HTMLDivElement>;
2743
2789
 
2744
2790
  /**
2745
2791
  * Skeleton variants.
@@ -2753,7 +2799,7 @@ type SkeletonRectangleVariant = ValueOf<typeof SkeletonRectangleVariant>;
2753
2799
  /**
2754
2800
  * Defines the props of the component.
2755
2801
  */
2756
- interface SkeletonRectangleProps extends GenericProps, HasTheme$1 {
2802
+ interface SkeletonRectangleProps$1 extends HasTheme, HasClassName {
2757
2803
  /** Aspect ratio (use with width and not height). */
2758
2804
  aspectRatio?: Extract<AspectRatio, 'square' | 'horizontal' | 'vertical' | 'wide'>;
2759
2805
  /** Height size. */
@@ -2763,7 +2809,45 @@ interface SkeletonRectangleProps extends GenericProps, HasTheme$1 {
2763
2809
  /** Width size. */
2764
2810
  width?: GlobalSize;
2765
2811
  /** The color of the skeleton. */
2766
- color?: ColorPalette$1;
2812
+ color?: ColorPalette;
2813
+ /** Reference to the root element. */
2814
+ ref?: CommonRef;
2815
+ }
2816
+
2817
+ /**
2818
+ * Defines the props of the component.
2819
+ */
2820
+ interface SkeletonTypographyProps$1 extends HasTheme, HasClassName {
2821
+ /** Typography variant. */
2822
+ typography: TypographyInterface;
2823
+ /** Width CSS property. */
2824
+ width?: CSSProperties['width'];
2825
+ /** The color of the skeleton. */
2826
+ color?: ColorPalette;
2827
+ /** Reference to the root element. */
2828
+ ref?: CommonRef;
2829
+ /** Style object. */
2830
+ style?: CSSProperties;
2831
+ }
2832
+
2833
+ /**
2834
+ * Defines the props of the component.
2835
+ */
2836
+ interface SkeletonCircleProps extends GenericProps, SkeletonCircleProps$1 {
2837
+ }
2838
+ /**
2839
+ * SkeletonCircle component.
2840
+ *
2841
+ * @param props Component props.
2842
+ * @param ref Component ref.
2843
+ * @return React element.
2844
+ */
2845
+ declare const SkeletonCircle: Comp<SkeletonCircleProps, HTMLDivElement>;
2846
+
2847
+ /**
2848
+ * Defines the props of the component.
2849
+ */
2850
+ interface SkeletonRectangleProps extends GenericProps, SkeletonRectangleProps$1 {
2767
2851
  }
2768
2852
  /**
2769
2853
  * SkeletonRectangle component.
@@ -2777,13 +2861,7 @@ declare const SkeletonRectangle: Comp<SkeletonRectangleProps, HTMLDivElement>;
2777
2861
  /**
2778
2862
  * Defines the props of the component.
2779
2863
  */
2780
- interface SkeletonTypographyProps extends GenericProps, HasTheme$1 {
2781
- /** Typography variant. */
2782
- typography: TypographyInterface$1;
2783
- /** Width CSS property. */
2784
- width?: CSSProperties['width'];
2785
- /** The color of the skeleton. */
2786
- color?: ColorPalette$1;
2864
+ interface SkeletonTypographyProps extends GenericProps, SkeletonTypographyProps$1 {
2787
2865
  }
2788
2866
  /**
2789
2867
  * SkeletonTypography component.
@@ -2851,7 +2929,7 @@ declare const SlideMode: {
2851
2929
  /** Move slides native scroll snap (available only on supported browsers) */
2852
2930
  readonly scrollSnap: "scroll-snap";
2853
2931
  };
2854
- type SlideMode = ValueOf<typeof SlideMode>;
2932
+ type SlideMode = ValueOf$1<typeof SlideMode>;
2855
2933
 
2856
2934
  /**
2857
2935
  * Defines the props of the component.
@@ -3050,16 +3128,11 @@ declare const Slides: Comp<SlidesProps, HTMLDivElement>;
3050
3128
  /**
3051
3129
  * Defines the props of the component.
3052
3130
  */
3053
- interface SwitchProps$1 extends HasTheme, HasClassName, HasAriaDisabled {
3131
+ interface SwitchProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled, HasChecked {
3054
3132
  /** Helper text. */
3055
3133
  helper?: string;
3056
3134
  /** Native input id property. */
3057
3135
  id?: string;
3058
- /** Whether it is checked or not. */
3059
- isChecked?: boolean;
3060
- checked?: boolean;
3061
- /** Whether the component is disabled or not. */
3062
- isDisabled?: boolean;
3063
3136
  /** Label text. */
3064
3137
  label?: JSXElement;
3065
3138
  /** Native input name property. */
@@ -3139,7 +3212,7 @@ declare const ThOrder: {
3139
3212
  readonly asc: "asc";
3140
3213
  readonly desc: "desc";
3141
3214
  };
3142
- type ThOrder = ValueOf<typeof ThOrder>;
3215
+ type ThOrder = ValueOf$1<typeof ThOrder>;
3143
3216
  /**
3144
3217
  * Table cell variants.
3145
3218
  */
@@ -3147,7 +3220,7 @@ declare const TableCellVariant: {
3147
3220
  readonly body: "body";
3148
3221
  readonly head: "head";
3149
3222
  };
3150
- type TableCellVariant = ValueOf<typeof TableCellVariant>;
3223
+ type TableCellVariant = ValueOf$1<typeof TableCellVariant>;
3151
3224
  /**
3152
3225
  * Defines the props of the component.
3153
3226
  */
@@ -3483,7 +3556,7 @@ declare const UploaderVariant: {
3483
3556
  readonly rounded: "rounded";
3484
3557
  readonly circle: "circle";
3485
3558
  };
3486
- type UploaderVariant = ValueOf<typeof UploaderVariant>;
3559
+ type UploaderVariant = ValueOf$1<typeof UploaderVariant>;
3487
3560
  /**
3488
3561
  * Uploader sizes.
3489
3562
  */
@@ -3499,7 +3572,7 @@ interface FileInputProps extends Omit<React__default.ComponentProps<'input'>, 'o
3499
3572
  */
3500
3573
  interface UploaderProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
3501
3574
  /** Image aspect ratio. */
3502
- aspectRatio?: AspectRatio;
3575
+ aspectRatio?: AspectRatio$1;
3503
3576
  /** Icon (SVG path). */
3504
3577
  icon?: string;
3505
3578
  /** Disabled state */