@peculiar/react-components 1.1.1 → 1.1.2

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 (102) hide show
  1. package/dist/cjs/Autocomplete/autocomplete.js +3 -15
  2. package/dist/cjs/Autocomplete/autocomplete.js.map +1 -1
  3. package/dist/cjs/NativeSelect/native_select.js +3 -14
  4. package/dist/cjs/NativeSelect/native_select.js.map +1 -1
  5. package/dist/cjs/Select/select.js +3 -14
  6. package/dist/cjs/Select/select.js.map +1 -1
  7. package/dist/cjs/TextField/text_field.js +3 -14
  8. package/dist/cjs/TextField/text_field.js.map +1 -1
  9. package/dist/cjs/TextareaField/textarea_field.js +3 -14
  10. package/dist/cjs/TextareaField/textarea_field.js.map +1 -1
  11. package/dist/cjs/hooks/use_clipboard.js +1 -1
  12. package/dist/esm/Autocomplete/autocomplete.js +3 -15
  13. package/dist/esm/Autocomplete/autocomplete.js.map +1 -1
  14. package/dist/esm/NativeSelect/native_select.js +3 -14
  15. package/dist/esm/NativeSelect/native_select.js.map +1 -1
  16. package/dist/esm/Select/select.js +3 -14
  17. package/dist/esm/Select/select.js.map +1 -1
  18. package/dist/esm/TextField/text_field.js +3 -14
  19. package/dist/esm/TextField/text_field.js.map +1 -1
  20. package/dist/esm/TextareaField/textarea_field.js +3 -14
  21. package/dist/esm/TextareaField/textarea_field.js.map +1 -1
  22. package/dist/esm/hooks/use_clipboard.js +1 -1
  23. package/dist/esnext/Autocomplete/autocomplete.js +3 -15
  24. package/dist/esnext/Autocomplete/autocomplete.js.map +1 -1
  25. package/dist/esnext/NativeSelect/native_select.js +3 -14
  26. package/dist/esnext/NativeSelect/native_select.js.map +1 -1
  27. package/dist/esnext/Select/select.js +3 -14
  28. package/dist/esnext/Select/select.js.map +1 -1
  29. package/dist/esnext/TextField/text_field.js +3 -14
  30. package/dist/esnext/TextField/text_field.js.map +1 -1
  31. package/dist/esnext/TextareaField/textarea_field.js +3 -14
  32. package/dist/esnext/TextareaField/textarea_field.js.map +1 -1
  33. package/dist/types/Alert/alert.d.ts +2 -2
  34. package/dist/types/Autocomplete/autocomplete.d.ts +2 -2
  35. package/dist/types/Avatar/avatar.d.ts +2 -2
  36. package/dist/types/Backdrop/backdrop.d.ts +2 -2
  37. package/dist/types/Box/box.d.ts +1 -1
  38. package/dist/types/Button/button.d.ts +1 -1
  39. package/dist/types/ButtonBase/button_base.d.ts +1 -1
  40. package/dist/types/Checkbox/checkbox.d.ts +2 -2
  41. package/dist/types/Chip/chip.d.ts +1 -1
  42. package/dist/types/CircularProgress/circular_progress.d.ts +2 -2
  43. package/dist/types/Collapse/collapse.d.ts +3 -3
  44. package/dist/types/Dialog/dialog.d.ts +1 -1
  45. package/dist/types/Dialog/dialog_actions.d.ts +1 -1
  46. package/dist/types/Dialog/dialog_content.d.ts +1 -1
  47. package/dist/types/Dialog/dialog_title.d.ts +1 -1
  48. package/dist/types/Drawer/drawer.d.ts +1 -1
  49. package/dist/types/Fab/fab.d.ts +1 -1
  50. package/dist/types/Fade/fade.d.ts +2 -2
  51. package/dist/types/Flex/flex.d.ts +1 -1
  52. package/dist/types/Flex/flex_container.d.ts +1 -1
  53. package/dist/types/FocusTrap/focus_trap.d.ts +1 -1
  54. package/dist/types/IconButton/icon_button.d.ts +1 -1
  55. package/dist/types/Image/image.d.ts +1 -1
  56. package/dist/types/LinearProgress/linear_progress.d.ts +1 -1
  57. package/dist/types/Menu/menu.d.ts +5 -5
  58. package/dist/types/MenuList/menu_item.d.ts +2 -2
  59. package/dist/types/MenuList/menu_list.d.ts +2 -2
  60. package/dist/types/Modal/modal.d.ts +2 -2
  61. package/dist/types/NativeSelect/native_select.d.ts +1 -1
  62. package/dist/types/OverridableComponent.d.ts +4 -4
  63. package/dist/types/Popover/popover.d.ts +2 -2
  64. package/dist/types/Popper/popper.d.ts +2 -2
  65. package/dist/types/Portal/portal.d.ts +1 -1
  66. package/dist/types/Radio/radio.d.ts +2 -2
  67. package/dist/types/Select/select.d.ts +2 -2
  68. package/dist/types/Skeleton/skeleton.d.ts +1 -1
  69. package/dist/types/Slide/slide.d.ts +2 -2
  70. package/dist/types/Slider/slider.d.ts +2 -2
  71. package/dist/types/Switch/switch.d.ts +2 -2
  72. package/dist/types/Tabs/tab.d.ts +1 -1
  73. package/dist/types/Tabs/tabs.d.ts +1 -1
  74. package/dist/types/TextField/text_field.d.ts +1 -1
  75. package/dist/types/TextareaField/textarea_field.d.ts +1 -1
  76. package/dist/types/Toast/toast.d.ts +1 -1
  77. package/dist/types/Toast/toast_container.d.ts +2 -2
  78. package/dist/types/Toast/toast_context.d.ts +3 -3
  79. package/dist/types/Toast/toast_provider.d.ts +1 -1
  80. package/dist/types/Tooltip/tooltip.d.ts +2 -2
  81. package/dist/types/Typography/typography.d.ts +1 -1
  82. package/dist/types/hooks/use_autocomplete.d.ts +9 -9
  83. package/dist/types/hooks/use_controllable.d.ts +1 -1
  84. package/dist/types/hooks/use_image.d.ts +3 -3
  85. package/dist/types/hooks/use_intersection_observer.d.ts +3 -3
  86. package/dist/types/icons/arrow_drop_down_icon.d.ts +1 -1
  87. package/dist/types/icons/arrow_rigth.d.ts +1 -1
  88. package/dist/types/icons/check_circle_icon.d.ts +1 -1
  89. package/dist/types/icons/check_icon.d.ts +1 -1
  90. package/dist/types/icons/close_circle_icon.d.ts +1 -1
  91. package/dist/types/icons/close_icon.d.ts +1 -1
  92. package/dist/types/icons/close_small_icon.d.ts +1 -1
  93. package/dist/types/icons/dot_icon.d.ts +1 -1
  94. package/dist/types/icons/minus_icon.d.ts +1 -1
  95. package/dist/types/icons/plus_icon.d.ts +1 -1
  96. package/dist/types/icons/warning_icon.d.ts +1 -1
  97. package/dist/types/styles/foundations/colors.d.ts +2 -2
  98. package/dist/types/styles/styled_engine_provider.d.ts +1 -1
  99. package/dist/types/styles/theme_provider.d.ts +1 -1
  100. package/dist/types/styles/types.d.ts +7 -7
  101. package/dist/types/utils/copy_to_clipboard.d.ts +1 -1
  102. package/package.json +10 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O,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EACvC,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,YAAY,EAC1B,EAAE,EAAE,EAAE,EACN,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,IAAI,EACV,GAAG,EAAE,QAAQ,EACb,SAAS,EAAE,SAAS,kBACN,KAAK,IAAI,SAAS,EAChC,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,GAClB;QACD,KAAK,IAAI,SAAS,IAAI,CACrB,oBAAC,cAAc,IACb,OAAO,EAAC,IAAI,EACZ,KAAK,EAAC,OAAO,IAEZ,SAAS,CACK,CAClB,CACG,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AAEpC,SAAS,CAAC,YAAY,GAAG;IACvB,QAAQ,EAAE,KAAK;IACf,IAAI,EAAE,QAAQ;CACf,CAAC"}
@@ -38,23 +38,16 @@ const TextareaFieldInput = styled(Typography)((props) => ({
38
38
  : 'var(--pv-color-black)';
39
39
  let borderColor = 'var(--pv-color-gray-8)';
40
40
  let colorPlaceholder = 'var(--pv-color-gray-9)';
41
- let borderColorHover = 'var(--pv-color-gray-7)';
41
+ const borderColorHover = 'var(--pv-color-gray-10)';
42
42
  let borderColorDisabled = 'var(--pv-color-gray-5)';
43
43
  let colorDisabled = 'var(--pv-color-gray-7)';
44
- let invalidBackgroundColor = 'var(--pv-color-wrong-tint-5)';
45
- let invalidBorderColor = 'var(--pv-color-wrong-tint-3)';
46
- let backgroundColorFocus = 'var(--pv-color-secondary-tint-5)';
47
- let borderColorFocus = 'var(--pv-color-secondary-tint-3)';
44
+ const invalidBorderColor = 'var(--pv-color-wrong)';
45
+ const borderColorFocus = 'var(--pv-color-secondary)';
48
46
  if (isDark) {
49
47
  borderColor = 'var(--pv-color-gray-5)';
50
48
  colorPlaceholder = 'var(--pv-color-gray-6)';
51
- borderColorHover = 'var(--pv-color-gray-4)';
52
49
  borderColorDisabled = 'var(--pv-color-gray-4)';
53
50
  colorDisabled = 'var(--pv-color-gray-4)';
54
- invalidBackgroundColor = 'var(--pv-color-wrong-shade-4)';
55
- invalidBorderColor = 'var(--pv-color-wrong-shade-1)';
56
- backgroundColorFocus = 'var(--pv-color-secondary-shade-4)';
57
- borderColorFocus = 'var(--pv-color-secondary-shade-1)';
58
51
  }
59
52
  return ({
60
53
  color,
@@ -63,22 +56,18 @@ const TextareaFieldInput = styled(Typography)((props) => ({
63
56
  color: colorPlaceholder,
64
57
  },
65
58
  '&:hover': {
66
- backgroundColor: 'var(--pv-color-gray-3)',
67
59
  borderColor: borderColorHover,
68
60
  },
69
61
  '&:disabled': {
70
62
  cursor: 'not-allowed',
71
- backgroundColor: 'var(--pv-color-gray-1)',
72
63
  borderColor: borderColorDisabled,
73
64
  color: colorDisabled,
74
65
  },
75
66
  '&:not(:disabled)': {
76
67
  '&[aria-invalid]': {
77
- backgroundColor: invalidBackgroundColor,
78
68
  borderColor: invalidBorderColor,
79
69
  },
80
70
  '&:focus-visible': {
81
- backgroundColor: backgroundColorFocus,
82
71
  borderColor: borderColorFocus,
83
72
  },
84
73
  },
@@ -1 +1 @@
1
- {"version":3,"file":"textarea_field.js","sourceRoot":"","sources":["../../../src/TextareaField/textarea_field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AA+ExC;;GAEG;AAEH;;GAEG;AACH,MAAM,kBAAkB,GAAG,MAAM,CAAC,UAAU,CAAC,CAC3C,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;I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,CACrB,oBAAC,kBAAkB,IACjB,OAAO,EAAC,IAAI,EACZ,KAAK,EAAC,OAAO,IAEZ,SAAS,CACS,CACtB,CACG,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,aAAa,CAAC,WAAW,GAAG,eAAe,CAAC;AAE5C,aAAa,CAAC,YAAY,GAAG;IAC3B,QAAQ,EAAE,KAAK;IACf,IAAI,EAAE,QAAQ;CACf,CAAC"}
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  /**
3
3
  * Types.
4
4
  */
5
- declare type AlertOwnProps = {
5
+ type AlertOwnProps = {
6
6
  /**
7
7
  * The content of the component.
8
8
  */
@@ -24,7 +24,7 @@ declare type AlertOwnProps = {
24
24
  */
25
25
  onClose?: () => void;
26
26
  };
27
- export declare type AlertProps = AlertOwnProps & Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>;
27
+ export type AlertProps = AlertOwnProps & Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>;
28
28
  /**
29
29
  *
30
30
  */
@@ -3,12 +3,12 @@ import { UseAutocompleteProps, UseAutocompleteReturnType, AutocompleteValue } fr
3
3
  /**
4
4
  * Types.
5
5
  */
6
- export declare type AutocompleteRenderGroupParams = {
6
+ export type AutocompleteRenderGroupParams = {
7
7
  key: string | number;
8
8
  group: string;
9
9
  children?: React.ReactNode;
10
10
  };
11
- export declare type AutocompleteOwnProps<T, Multiple extends boolean | undefined = undefined> = UseAutocompleteProps<T, Multiple> & {
11
+ export type AutocompleteOwnProps<T, Multiple extends boolean | undefined = undefined> = UseAutocompleteProps<T, Multiple> & {
12
12
  /**
13
13
  * The className of the component.
14
14
  */
@@ -3,11 +3,11 @@ import { ColorType } from '../styles';
3
3
  /**
4
4
  * Types.
5
5
  */
6
- declare type AvatarInitialsProps = Pick<AvatarOwnProps, 'children' | 'color'> & {
6
+ type AvatarInitialsProps = Pick<AvatarOwnProps, 'children' | 'color'> & {
7
7
  role: string;
8
8
  'aria-label': string;
9
9
  };
10
- declare type AvatarOwnProps = {
10
+ type AvatarOwnProps = {
11
11
  /**
12
12
  * Used to render badge inside the avatar.
13
13
  */
@@ -3,7 +3,7 @@ import { BaseTransitionProps } from '../Fade';
3
3
  /**
4
4
  * Types.
5
5
  */
6
- declare type BackdropOwnProps = {
6
+ type BackdropOwnProps = {
7
7
  /**
8
8
  * If `true`, the backdrop is open.
9
9
  */
@@ -22,6 +22,6 @@ declare type BackdropOwnProps = {
22
22
  transitionDuration?: number;
23
23
  variant?: ('light' | 'medium' | 'heavy');
24
24
  };
25
- export declare type BackdropProps = BackdropOwnProps & BaseTransitionProps & React.HTMLAttributes<HTMLDivElement>;
25
+ export type BackdropProps = BackdropOwnProps & BaseTransitionProps & React.HTMLAttributes<HTMLDivElement>;
26
26
  export declare const Backdrop: React.ForwardRefExoticComponent<BackdropOwnProps & BaseTransitionProps & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
27
27
  export {};
@@ -21,7 +21,7 @@ export interface BoxTypeMap<P = {}, D extends React.ElementType = 'div'> {
21
21
  props: P & BoxOwnProps;
22
22
  defaultComponent: D;
23
23
  }
24
- export declare type BoxProps<D extends React.ElementType = BoxTypeMap['defaultComponent']> = OverrideProps<BoxTypeMap<{}, D>, D> & {
24
+ export type BoxProps<D extends React.ElementType = BoxTypeMap['defaultComponent']> = OverrideProps<BoxTypeMap<{}, D>, D> & {
25
25
  component?: D;
26
26
  };
27
27
  /**
@@ -23,7 +23,7 @@ export interface ButtonTypeMap<P = {}, D extends React.ElementType = 'button'> {
23
23
  props: P & ButtonOwnProps;
24
24
  defaultComponent: D;
25
25
  }
26
- export declare type ButtonProps<D extends React.ElementType = ButtonTypeMap['defaultComponent']> = OverrideProps<ButtonTypeMap<{}, D>, D> & {
26
+ export type ButtonProps<D extends React.ElementType = ButtonTypeMap['defaultComponent']> = OverrideProps<ButtonTypeMap<{}, D>, D> & {
27
27
  component?: D;
28
28
  };
29
29
  /**
@@ -34,7 +34,7 @@ export interface ButtonBaseTypeMap<P = {}, D extends React.ElementType = 'button
34
34
  props: P & ButtonBaseOwnProps;
35
35
  defaultComponent: D;
36
36
  }
37
- export declare type ButtonBaseProps<D extends React.ElementType = ButtonBaseTypeMap['defaultComponent']> = OverrideProps<ButtonBaseTypeMap<{}, D>, D> & {
37
+ export type ButtonBaseProps<D extends React.ElementType = ButtonBaseTypeMap['defaultComponent']> = OverrideProps<ButtonBaseTypeMap<{}, D>, D> & {
38
38
  component?: D;
39
39
  };
40
40
  /**
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  /**
3
3
  * Types.
4
4
  */
5
- declare type CheckboxOwnProps = {
5
+ type CheckboxOwnProps = {
6
6
  /**
7
7
  * If `true`, the component is checked.
8
8
  */
@@ -53,7 +53,7 @@ declare type CheckboxOwnProps = {
53
53
  */
54
54
  onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
55
55
  };
56
- export declare type CheckboxProps = CheckboxOwnProps & Omit<React.LabelHTMLAttributes<HTMLLabelElement>, 'children' | 'htmlFor' | 'onChange'>;
56
+ export type CheckboxProps = CheckboxOwnProps & Omit<React.LabelHTMLAttributes<HTMLLabelElement>, 'children' | 'htmlFor' | 'onChange'>;
57
57
  /**
58
58
  *
59
59
  */
@@ -41,7 +41,7 @@ export interface ChipTypeMap<P = {}, D extends React.ElementType = 'div'> {
41
41
  props: P & ChipOwnProps;
42
42
  defaultComponent: D;
43
43
  }
44
- export declare type ChipProps<D extends React.ElementType = ChipTypeMap['defaultComponent']> = OverrideProps<ChipTypeMap<{}, D>, D> & {
44
+ export type ChipProps<D extends React.ElementType = ChipTypeMap['defaultComponent']> = OverrideProps<ChipTypeMap<{}, D>, D> & {
45
45
  component?: D;
46
46
  };
47
47
  /**
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  /**
3
3
  * Types.
4
4
  */
5
- declare type CircularProgressOwnProps = {
5
+ type CircularProgressOwnProps = {
6
6
  /**
7
7
  * The color of the component. It supports those theme colors that make sense for this component.
8
8
  */
@@ -26,6 +26,6 @@ declare type CircularProgressOwnProps = {
26
26
  */
27
27
  value?: number;
28
28
  };
29
- export declare type CircularProgressProps = CircularProgressOwnProps & Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>;
29
+ export type CircularProgressProps = CircularProgressOwnProps & Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>;
30
30
  export declare const CircularProgress: React.ForwardRefExoticComponent<CircularProgressOwnProps & Omit<React.HTMLAttributes<HTMLDivElement>, "children"> & React.RefAttributes<HTMLDivElement>>;
31
31
  export {};
@@ -3,8 +3,8 @@ import type { TransitionProps } from 'react-transition-group/Transition';
3
3
  /**
4
4
  * Types.
5
5
  */
6
- declare type CollapseTransitionProps = Pick<TransitionProps<HTMLElement>, ('onEnter' | 'onEntered' | 'onEntering' | 'onExit' | 'onExited' | 'onExiting')>;
7
- declare type CollapseOwnProps = {
6
+ type CollapseTransitionProps = Pick<TransitionProps<HTMLElement>, ('onEnter' | 'onEntered' | 'onEntering' | 'onExit' | 'onExited' | 'onExiting')>;
7
+ type CollapseOwnProps = {
8
8
  /**
9
9
  * If `true`, the component will transition in.
10
10
  */
@@ -22,7 +22,7 @@ declare type CollapseOwnProps = {
22
22
  */
23
23
  children: React.ReactNode;
24
24
  };
25
- declare type CollapseProps = CollapseOwnProps & CollapseTransitionProps & React.HTMLAttributes<HTMLDivElement>;
25
+ type CollapseProps = CollapseOwnProps & CollapseTransitionProps & React.HTMLAttributes<HTMLDivElement>;
26
26
  /**
27
27
  *
28
28
  */
@@ -3,7 +3,7 @@ import type { CircularProgressProps } from '../CircularProgress';
3
3
  /**
4
4
  * Types.
5
5
  */
6
- declare type DialogOwnProps = {
6
+ type DialogOwnProps = {
7
7
  /**
8
8
  * If `true`, the Dialog is open.
9
9
  */
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  /**
3
3
  * Types.
4
4
  */
5
- declare type DialogActionsOwnProps = {
5
+ type DialogActionsOwnProps = {
6
6
  /**
7
7
  * The content of the component.
8
8
  */
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  /**
3
3
  * Types.
4
4
  */
5
- declare type DialogContentOwnProps = {
5
+ type DialogContentOwnProps = {
6
6
  /**
7
7
  * The content of the component.
8
8
  */
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  /**
3
3
  * Types.
4
4
  */
5
- declare type DialogTitleOwnProps = {
5
+ type DialogTitleOwnProps = {
6
6
  /**
7
7
  * The content of the component.
8
8
  */
@@ -3,7 +3,7 @@ import { ModalProps } from '../Modal';
3
3
  /**
4
4
  * Types.
5
5
  */
6
- declare type DrawerOwnProps = {
6
+ type DrawerOwnProps = {
7
7
  /**
8
8
  * If `true`, the component is shown.
9
9
  */
@@ -14,7 +14,7 @@ export interface FabTypeMap<P = {}, D extends React.ElementType = 'button'> {
14
14
  props: P & FabOwnProps;
15
15
  defaultComponent: D;
16
16
  }
17
- export declare type FabProps<D extends React.ElementType = FabTypeMap['defaultComponent']> = OverrideProps<FabTypeMap<{}, D>, D> & {
17
+ export type FabProps<D extends React.ElementType = FabTypeMap['defaultComponent']> = OverrideProps<FabTypeMap<{}, D>, D> & {
18
18
  component?: D;
19
19
  };
20
20
  /**
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import type { TransitionProps } from 'react-transition-group/Transition';
3
- export declare type BaseTransitionProps = Pick<TransitionProps<HTMLElement>, ('onEnter' | 'onEntered' | 'onEntering' | 'onExit' | 'onExited' | 'onExiting')>;
4
- declare type BaseProps = {
3
+ export type BaseTransitionProps = Pick<TransitionProps<HTMLElement>, ('onEnter' | 'onEntered' | 'onEntering' | 'onExit' | 'onExited' | 'onExiting')>;
4
+ type BaseProps = {
5
5
  /**
6
6
  * If `true`, the component will transition in.
7
7
  */
@@ -14,7 +14,7 @@ export interface FlexTypeMap<P = {}, D extends React.ElementType = 'div'> {
14
14
  props: P & FlexOwnProps;
15
15
  defaultComponent: D;
16
16
  }
17
- export declare type FlexProps<D extends React.ElementType = FlexTypeMap['defaultComponent']> = OverrideProps<FlexTypeMap<{}, D>, D> & {
17
+ export type FlexProps<D extends React.ElementType = FlexTypeMap['defaultComponent']> = OverrideProps<FlexTypeMap<{}, D>, D> & {
18
18
  component?: D;
19
19
  };
20
20
  /**
@@ -34,7 +34,7 @@ export interface FlexContainerTypeMap<P = {}, D extends React.ElementType = 'div
34
34
  props: P & FlexContainerOwnProps;
35
35
  defaultComponent: D;
36
36
  }
37
- export declare type FlexContainerProps<D extends React.ElementType = FlexContainerTypeMap['defaultComponent']> = OverrideProps<FlexContainerTypeMap<{}, D>, D> & {
37
+ export type FlexContainerProps<D extends React.ElementType = FlexContainerTypeMap['defaultComponent']> = OverrideProps<FlexContainerTypeMap<{}, D>, D> & {
38
38
  component?: D;
39
39
  };
40
40
  /**
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type BaseProps = {
2
+ type BaseProps = {
3
3
  /**
4
4
  * A single child content element.
5
5
  */
@@ -19,7 +19,7 @@ export interface IconButtonTypeMap<P = {}, D extends React.ElementType = 'button
19
19
  props: P & IconButtonOwnProps;
20
20
  defaultComponent: D;
21
21
  }
22
- export declare type IconButtonProps<D extends React.ElementType = IconButtonTypeMap['defaultComponent']> = OverrideProps<IconButtonTypeMap<{}, D>, D> & {
22
+ export type IconButtonProps<D extends React.ElementType = IconButtonTypeMap['defaultComponent']> = OverrideProps<IconButtonTypeMap<{}, D>, D> & {
23
23
  component?: D;
24
24
  };
25
25
  /**
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  /**
3
3
  * Types.
4
4
  */
5
- declare type ImageOwnProps = {
5
+ type ImageOwnProps = {
6
6
  /**
7
7
  * The `src` attribute for the `img` element.
8
8
  */
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  /**
3
3
  * Types.
4
4
  */
5
- declare type LinearProgressOwnProps = {
5
+ type LinearProgressOwnProps = {
6
6
  /**
7
7
  * The color of the component. It supports those theme colors that make sense for this component.
8
8
  */
@@ -4,7 +4,7 @@ import { TypographyType } from '../styles';
4
4
  /**
5
5
  * Types.
6
6
  */
7
- declare type OptionOwnProps = {
7
+ type OptionOwnProps = {
8
8
  label: string;
9
9
  disabled?: boolean;
10
10
  onClick?: (event: React.MouseEvent<HTMLElement>) => void;
@@ -22,11 +22,11 @@ declare type OptionOwnProps = {
22
22
  */
23
23
  endIcon?: React.ReactNode;
24
24
  };
25
- declare type OptionProps = OptionOwnProps & Omit<React.AllHTMLAttributes<HTMLElement>, 'children'>;
26
- declare type MenuOptionProps = OptionProps & {
25
+ type OptionProps = OptionOwnProps & Omit<React.AllHTMLAttributes<HTMLElement>, 'children'>;
26
+ type MenuOptionProps = OptionProps & {
27
27
  subOptions?: OptionProps[];
28
28
  };
29
- declare type MenuOwnProps = {
29
+ type MenuOwnProps = {
30
30
  /**
31
31
  * Menu reference element.
32
32
  */
@@ -44,7 +44,7 @@ declare type MenuOwnProps = {
44
44
  */
45
45
  popoverProps?: Partial<PopoverProps>;
46
46
  };
47
- export declare type MenuProps = MenuOwnProps;
47
+ export type MenuProps = MenuOwnProps;
48
48
  /**
49
49
  *
50
50
  */
@@ -4,7 +4,7 @@ import { TypographyType } from '../styles';
4
4
  /**
5
5
  * Types.
6
6
  */
7
- declare type MenuItemOwnProps = {
7
+ type MenuItemOwnProps = {
8
8
  children: React.ReactNode;
9
9
  /**
10
10
  * If `true`, the component is disabled.
@@ -27,7 +27,7 @@ export interface MenuItemTypeMap<P = {}, D extends React.ElementType = 'li'> {
27
27
  props: P & MenuItemOwnProps;
28
28
  defaultComponent: D;
29
29
  }
30
- export declare type MenuItemProps<D extends React.ElementType = MenuItemTypeMap['defaultComponent']> = OverrideProps<MenuItemTypeMap<{}, D>, D> & {
30
+ export type MenuItemProps<D extends React.ElementType = MenuItemTypeMap['defaultComponent']> = OverrideProps<MenuItemTypeMap<{}, D>, D> & {
31
31
  component?: D;
32
32
  };
33
33
  /**
@@ -3,14 +3,14 @@ import { OverridableComponent, OverrideProps } from '../OverridableComponent';
3
3
  /**
4
4
  * Types.
5
5
  */
6
- declare type MenuListOwnProps = {
6
+ type MenuListOwnProps = {
7
7
  children: React.ReactElement[];
8
8
  };
9
9
  export interface MenuListTypeMap<P = {}, D extends React.ElementType = 'ul'> {
10
10
  props: P & MenuListOwnProps;
11
11
  defaultComponent: D;
12
12
  }
13
- export declare type MenuListProps<D extends React.ElementType = MenuListTypeMap['defaultComponent']> = OverrideProps<MenuListTypeMap<{}, D>, D> & {
13
+ export type MenuListProps<D extends React.ElementType = MenuListTypeMap['defaultComponent']> = OverrideProps<MenuListTypeMap<{}, D>, D> & {
14
14
  component?: D;
15
15
  };
16
16
  /**
@@ -3,7 +3,7 @@ import { BackdropProps } from '../Backdrop';
3
3
  /**
4
4
  * Types.
5
5
  */
6
- declare type ModalOwnProps = {
6
+ type ModalOwnProps = {
7
7
  /**
8
8
  * A single child content element.
9
9
  */
@@ -51,7 +51,7 @@ declare type ModalOwnProps = {
51
51
  */
52
52
  disableAutoFocus?: boolean;
53
53
  };
54
- export declare type ModalProps = ModalOwnProps & React.HTMLAttributes<HTMLDivElement>;
54
+ export type ModalProps = ModalOwnProps & React.HTMLAttributes<HTMLDivElement>;
55
55
  /**
56
56
  *
57
57
  */
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  /**
3
3
  * Types.
4
4
  */
5
- declare type NativeSelectOwnProps = {
5
+ type NativeSelectOwnProps = {
6
6
  options: {
7
7
  value: string;
8
8
  label: string;
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  * Remove properties `K` from `T`.
4
4
  * Distributive for union types.
5
5
  */
6
- export declare type DistributiveOmit<T, K extends keyof any> = T extends any ? Omit<T, K> : never;
6
+ export type DistributiveOmit<T, K extends keyof any> = T extends any ? Omit<T, K> : never;
7
7
  /**
8
8
  * A component whose root component can be controlled via a `component` prop.
9
9
  *
@@ -25,15 +25,15 @@ export interface OverridableComponent<M extends OverridableTypeMap> {
25
25
  /**
26
26
  * Props of the component if `component={Component}` is used.
27
27
  */
28
- export declare type OverrideProps<M extends OverridableTypeMap, C extends React.ElementType> = (BaseProps<M> & DistributiveOmit<React.ComponentPropsWithRef<C>, keyof BaseProps<M>>);
28
+ export type OverrideProps<M extends OverridableTypeMap, C extends React.ElementType> = (BaseProps<M> & DistributiveOmit<React.ComponentPropsWithRef<C>, keyof BaseProps<M>>);
29
29
  /**
30
30
  * Props if `component={Component}` is NOT used.
31
31
  */
32
- export declare type DefaultComponentProps<M extends OverridableTypeMap> = BaseProps<M> & DistributiveOmit<React.ComponentPropsWithRef<M['defaultComponent']>, keyof BaseProps<M>>;
32
+ export type DefaultComponentProps<M extends OverridableTypeMap> = BaseProps<M> & DistributiveOmit<React.ComponentPropsWithRef<M['defaultComponent']>, keyof BaseProps<M>>;
33
33
  /**
34
34
  * Props defined on the component.
35
35
  */
36
- export declare type BaseProps<M extends OverridableTypeMap> = M['props'] & CommonProps;
36
+ export type BaseProps<M extends OverridableTypeMap> = M['props'] & CommonProps;
37
37
  /**
38
38
  * Props that are valid for components.
39
39
  */
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { PopperProps } from 'react-popper';
3
3
  import { ModalProps } from '../Modal';
4
- declare type BaseProps = {
4
+ type BaseProps = {
5
5
  /**
6
6
  * If `true`, the popover is visible.
7
7
  */
@@ -31,7 +31,7 @@ declare type BaseProps = {
31
31
  */
32
32
  allowUseSameWidth?: boolean;
33
33
  };
34
- export declare type PopoverProps = BaseProps & Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>;
34
+ export type PopoverProps = BaseProps & Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>;
35
35
  /**
36
36
  *
37
37
  */
@@ -3,7 +3,7 @@ import { PopperProps as PopperReactProps, Modifier } from 'react-popper';
3
3
  /**
4
4
  * Types.
5
5
  */
6
- declare type BaseProps = {
6
+ type BaseProps = {
7
7
  /**
8
8
  * If `true`, the popper is visible.
9
9
  */
@@ -34,7 +34,7 @@ declare type BaseProps = {
34
34
  */
35
35
  modifiers?: Modifier<any>[];
36
36
  };
37
- declare type PopperProps = BaseProps & Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>;
37
+ type PopperProps = BaseProps & Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>;
38
38
  /**
39
39
  *
40
40
  */
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- declare type BaseProps = {
2
+ type BaseProps = {
3
3
  /**
4
4
  * The content of the component.
5
5
  */
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  /**
3
3
  * Types.
4
4
  */
5
- declare type RadioOwnProps = {
5
+ type RadioOwnProps = {
6
6
  /**
7
7
  * If `true`, the component is checked.
8
8
  */
@@ -48,7 +48,7 @@ declare type RadioOwnProps = {
48
48
  */
49
49
  onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
50
50
  };
51
- export declare type RadioProps = RadioOwnProps & Omit<React.LabelHTMLAttributes<HTMLLabelElement>, 'children' | 'htmlFor' | 'onChange'>;
51
+ export type RadioProps = RadioOwnProps & Omit<React.LabelHTMLAttributes<HTMLLabelElement>, 'children' | 'htmlFor' | 'onChange'>;
52
52
  /**
53
53
  *
54
54
  */
@@ -3,12 +3,12 @@ import { UseAutocompleteProps, UseAutocompleteReturnType, AutocompleteValue } fr
3
3
  /**
4
4
  * Types.
5
5
  */
6
- export declare type SelectRenderGroupParams = {
6
+ export type SelectRenderGroupParams = {
7
7
  key: string | number;
8
8
  group: string;
9
9
  children?: React.ReactNode;
10
10
  };
11
- export declare type SelectOwnProps<T, Multiple extends boolean | undefined = undefined> = UseAutocompleteProps<T, Multiple> & {
11
+ export type SelectOwnProps<T, Multiple extends boolean | undefined = undefined> = UseAutocompleteProps<T, Multiple> & {
12
12
  /**
13
13
  * The className of the component.
14
14
  */
@@ -27,7 +27,7 @@ export interface SkeletonTypeMap<P = {}, D extends React.ElementType = 'span'> {
27
27
  props: P & SkeletonOwnProps;
28
28
  defaultComponent: D;
29
29
  }
30
- export declare type SkeletonProps<D extends React.ElementType = SkeletonTypeMap['defaultComponent']> = OverrideProps<SkeletonTypeMap<{}, D>, D> & {
30
+ export type SkeletonProps<D extends React.ElementType = SkeletonTypeMap['defaultComponent']> = OverrideProps<SkeletonTypeMap<{}, D>, D> & {
31
31
  component?: D;
32
32
  };
33
33
  /**
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import type { TransitionProps } from 'react-transition-group/Transition';
3
- declare type BaseTransitionProps = Pick<TransitionProps<HTMLElement>, ('onEnter' | 'onEntered' | 'onEntering' | 'onExit' | 'onExited' | 'onExiting')>;
4
- declare type BaseProps = {
3
+ type BaseTransitionProps = Pick<TransitionProps<HTMLElement>, ('onEnter' | 'onEntered' | 'onEntering' | 'onExit' | 'onExited' | 'onExiting')>;
4
+ type BaseProps = {
5
5
  /**
6
6
  * If `true`, the component will transition in.
7
7
  */
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  /**
3
3
  * Types.
4
4
  */
5
- declare type SliderOwnProps = {
5
+ type SliderOwnProps = {
6
6
  className?: string;
7
7
  /**
8
8
  * The default element value. Use when the component is not controlled.
@@ -37,7 +37,7 @@ declare type SliderOwnProps = {
37
37
  */
38
38
  onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
39
39
  };
40
- export declare type SliderProps = SliderOwnProps & Omit<React.HTMLAttributes<HTMLDivElement>, 'children' | 'defaultValue'>;
40
+ export type SliderProps = SliderOwnProps & Omit<React.HTMLAttributes<HTMLDivElement>, 'children' | 'defaultValue'>;
41
41
  /**
42
42
  *
43
43
  */