@true-engineering/true-react-common-ui-kit 1.0.2 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/dist/components/AccountInfo/AccountInfo.d.ts +4 -4
  2. package/dist/components/AccountInfo/AccountInfo.styles.d.ts +60 -56
  3. package/dist/components/AddButton/AddButton.d.ts +6 -6
  4. package/dist/components/AddButton/AddButton.styles.d.ts +23 -23
  5. package/dist/components/Button/Button.d.ts +19 -33
  6. package/dist/components/Button/Button.styles.d.ts +144 -144
  7. package/dist/components/Checkbox/Checkbox.d.ts +16 -27
  8. package/dist/components/Checkbox/Checkbox.styles.d.ts +39 -42
  9. package/dist/components/CloseButton/CloseButton.d.ts +4 -4
  10. package/dist/components/CloseButton/CloseButton.styles.d.ts +22 -22
  11. package/dist/components/Colors/Colors.styles.d.ts +28 -28
  12. package/dist/components/CssBaseline/CssBaseline.d.ts +1 -1
  13. package/dist/components/CssBaseline/CssBaseline.styles.d.ts +7 -7
  14. package/dist/components/DateInput/DateInput.d.ts +8 -9
  15. package/dist/components/DateInput/DateInput.styles.d.ts +7 -7
  16. package/dist/components/DatePicker/DatePicker.d.ts +29 -36
  17. package/dist/components/DatePicker/DatePicker.styles.d.ts +38 -34
  18. package/dist/components/DatePicker/DatePickerHeader/DatePickerHeader.d.ts +9 -9
  19. package/dist/components/DatePicker/DatePickerHeader/DatePickerHeader.styles.d.ts +59 -59
  20. package/dist/components/DatePicker/DatePickerInput/DatePickerInput.d.ts +7 -9
  21. package/dist/components/DatePicker/DatePickerInput/DatePickerInput.styles.d.ts +16 -16
  22. package/dist/components/Description/Description.d.ts +6 -6
  23. package/dist/components/Description/Description.styles.d.ts +18 -18
  24. package/dist/components/FiltersPane/FilterInterval/FilterInterval.d.ts +19 -19
  25. package/dist/components/FiltersPane/FilterInterval/FilterInterval.styles.d.ts +44 -44
  26. package/dist/components/FiltersPane/FilterMultiSelect/FilterMultiSelect.d.ts +2 -8
  27. package/dist/components/FiltersPane/FilterSelect/FilterSelect.d.ts +17 -35
  28. package/dist/components/FiltersPane/FilterSelect/FilterSelect.styles.d.ts +111 -111
  29. package/dist/components/FiltersPane/FilterSelect/locales.d.ts +6 -10
  30. package/dist/components/FiltersPane/FilterValueView/FilterValueView.d.ts +1 -9
  31. package/dist/components/FiltersPane/FilterValueView/FilterValueView.styles.d.ts +8 -8
  32. package/dist/components/FiltersPane/FilterWithDates/FilterWithDates.d.ts +13 -21
  33. package/dist/components/FiltersPane/FilterWithDates/FilterWithDates.styles.d.ts +41 -41
  34. package/dist/components/FiltersPane/FilterWithPeriod/FilterWithPeriod.d.ts +8 -8
  35. package/dist/components/FiltersPane/FilterWithPeriod/FilterWithPeriod.styles.d.ts +7 -7
  36. package/dist/components/FiltersPane/FilterWrapper/FilterWrapper.d.ts +18 -41
  37. package/dist/components/FiltersPane/FilterWrapper/FilterWrapper.styles.d.ts +92 -92
  38. package/dist/components/FiltersPane/FiltersPane.d.ts +15 -34
  39. package/dist/components/FiltersPane/FiltersPane.styles.d.ts +50 -50
  40. package/dist/components/FiltersPane/FiltersPaneSearch/FiltersPaneSearch.d.ts +18 -37
  41. package/dist/components/FiltersPane/FiltersPaneSearch/FiltersPaneSearch.styles.d.ts +82 -82
  42. package/dist/components/FiltersPane/locales.d.ts +22 -28
  43. package/dist/components/FiltersPane/types.d.ts +38 -65
  44. package/dist/components/Flag/Flag.d.ts +2 -2
  45. package/dist/components/Flag/Flag.styles.d.ts +8 -8
  46. package/dist/components/FlexibleTable/FlexibleTable.d.ts +20 -45
  47. package/dist/components/FlexibleTable/FlexibleTable.styles.d.ts +93 -93
  48. package/dist/components/FlexibleTable/TableRow.d.ts +21 -38
  49. package/dist/components/FlexibleTable/TableValue.d.ts +16 -28
  50. package/dist/components/FlexibleTable/types.d.ts +31 -37
  51. package/dist/components/Icon/ComplexIconBoilerplate.d.ts +1 -1
  52. package/dist/components/Icon/Icon.d.ts +2 -2
  53. package/dist/components/Icon/Icon.styles.d.ts +4 -4
  54. package/dist/components/Icon/IconBoilerplate.d.ts +1 -1
  55. package/dist/components/Icon/complexIcons/icons.d.ts +1 -1
  56. package/dist/components/Icon/icons/icons.d.ts +5 -97
  57. package/dist/components/IncrementInput/ChangeButton.d.ts +5 -5
  58. package/dist/components/IncrementInput/IncrementInput.d.ts +3 -4
  59. package/dist/components/IncrementInput/IncrementInput.styles.d.ts +52 -52
  60. package/dist/components/Input/Input.d.ts +37 -48
  61. package/dist/components/Input/Input.styles.d.ts +242 -242
  62. package/dist/components/List/List.d.ts +12 -12
  63. package/dist/components/List/List.styles.d.ts +35 -35
  64. package/dist/components/Modal/Modal.d.ts +19 -19
  65. package/dist/components/Modal/Modal.styles.d.ts +235 -235
  66. package/dist/components/MoreMenu/MoreMenu.d.ts +7 -7
  67. package/dist/components/MoreMenu/MoreMenu.styles.d.ts +45 -45
  68. package/dist/components/MultiSelect/MultiSelect.d.ts +13 -28
  69. package/dist/components/MultiSelect/MultiSelect.styles.d.ts +38 -38
  70. package/dist/components/MultiSelect/MultiSelectInput/MultiSelectInput.d.ts +6 -12
  71. package/dist/components/MultiSelect/MultiSelectInput/MultiSelectInput.styles.d.ts +58 -58
  72. package/dist/components/MultiSelectList/MultiSelectList.d.ts +20 -43
  73. package/dist/components/MultiSelectList/MultiSelectList.styles.d.ts +90 -90
  74. package/dist/components/MultiSelectList/locales.d.ts +6 -10
  75. package/dist/components/Notification/Notification.d.ts +9 -14
  76. package/dist/components/Notification/Notification.styles.d.ts +30 -33
  77. package/dist/components/NumberInput/NumberInput.d.ts +10 -16
  78. package/dist/components/NumberInput/helpers.d.ts +2 -10
  79. package/dist/components/PhoneInput/PhoneInput.d.ts +7 -14
  80. package/dist/components/PhoneInput/PhoneInput.styles.d.ts +60 -60
  81. package/dist/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.d.ts +7 -7
  82. package/dist/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.styles.d.ts +74 -78
  83. package/dist/components/PhoneInput/types.d.ts +11 -11
  84. package/dist/components/RadioButton/RadioButton.d.ts +8 -18
  85. package/dist/components/RadioButton/RadioButton.styles.d.ts +25 -25
  86. package/dist/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.d.ts +374 -634
  87. package/dist/components/SearchInput/SearchInput.d.ts +2 -12
  88. package/dist/components/SearchInput/SearchInput.styles.d.ts +32 -32
  89. package/dist/components/Select/Select.d.ts +22 -50
  90. package/dist/components/Select/Select.styles.d.ts +53 -53
  91. package/dist/components/Select/SelectList/SelectList.d.ts +15 -30
  92. package/dist/components/Select/SelectList/SelectList.styles.d.ts +35 -37
  93. package/dist/components/Select/helpers.d.ts +2 -9
  94. package/dist/components/SmartInput/SmartInput.d.ts +16 -28
  95. package/dist/components/SmartInput/helpers.d.ts +4 -8
  96. package/dist/components/Switch/Switch.d.ts +13 -26
  97. package/dist/components/Switch/Switch.styles.d.ts +58 -58
  98. package/dist/components/TextArea/TextArea.d.ts +23 -26
  99. package/dist/components/TextArea/TextArea.styles.d.ts +124 -124
  100. package/dist/components/TextWithInfo/TextWithInfo.d.ts +9 -9
  101. package/dist/components/TextWithInfo/TextWithInfo.styles.d.ts +40 -40
  102. package/dist/components/TextWithTooltip/TextWithTooltip.d.ts +12 -12
  103. package/dist/components/TextWithTooltip/TextWithTooltip.styles.d.ts +10 -10
  104. package/dist/components/ThemedPreloader/ThemedPreloader.d.ts +4 -4
  105. package/dist/components/ThemedPreloader/ThemedPreloader.styles.d.ts +10 -10
  106. package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.d.ts +1 -1
  107. package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.d.ts +35 -35
  108. package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.d.ts +2 -2
  109. package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.d.ts +5 -5
  110. package/dist/components/Toaster/Toaster.d.ts +11 -16
  111. package/dist/components/Toaster/Toaster.styles.d.ts +41 -41
  112. package/dist/components/Tooltip/Tooltip.d.ts +4 -4
  113. package/dist/components/Tooltip/Tooltip.styles.d.ts +27 -25
  114. package/dist/helpers/data-attributes.d.ts +4 -11
  115. package/dist/helpers/phone.d.ts +8 -28
  116. package/dist/helpers/utils.d.ts +7 -28
  117. package/dist/hooks/use-did-mount-effect.d.ts +1 -4
  118. package/dist/hooks/use-dropdown.d.ts +7 -14
  119. package/dist/hooks/use-is-mounted.d.ts +1 -1
  120. package/dist/hooks/use-on-click-outside.d.ts +4 -25
  121. package/dist/hooks/use-theme.d.ts +5 -10
  122. package/dist/hooks/use-tweak-styles.d.ts +1 -5
  123. package/dist/style.css +90 -205
  124. package/dist/theme.d.ts +55 -51
  125. package/dist/true-react-common-ui-kit.js +16713 -24318
  126. package/dist/true-react-common-ui-kit.js.map +1 -1
  127. package/dist/true-react-common-ui-kit.umd.cjs +18 -16
  128. package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
  129. package/dist/types.d.ts +23 -77
  130. package/package.json +1 -1
  131. package/src/components/Select/Select.tsx +21 -13
  132. package/src/components/Select/SelectList/SelectList.tsx +8 -6
  133. package/src/components/Select/helpers.ts +9 -6
  134. package/src/components/SmartInput/SmartInput.tsx +130 -127
@@ -3,9 +3,9 @@ import { ICommonProps } from '../../types';
3
3
  import { IListProps } from '../List';
4
4
  import { AccountInfoStyles } from './AccountInfo.styles';
5
5
  export interface IAccountInfoProps extends ICommonProps {
6
- tweakStyles?: AccountInfoStyles;
7
- avatar?: ReactNode;
8
- accountName: ReactNode;
9
- options: IListProps['items'];
6
+ tweakStyles?: AccountInfoStyles;
7
+ avatar?: ReactNode;
8
+ accountName: ReactNode;
9
+ options: IListProps['items'];
10
10
  }
11
11
  export declare const AccountInfo: FC<IAccountInfoProps>;
@@ -1,60 +1,64 @@
1
1
  import { ComponentStyles } from '../../types';
2
2
  export declare const styles: {
3
- tweakList: {};
4
- 'slide-up-enter': {
5
- opacity: number;
6
- transform: string;
7
- };
8
- 'slide-up-enter-active': {
9
- opacity: number;
10
- transform: string;
11
- transition: ({ timeout }: { timeout: number }) => string;
12
- transitionProperty: string;
13
- };
14
- 'slide-up-exit-active': {
15
- opacity: number;
16
- transform: string;
17
- };
18
- 'slide-up-exit': {
19
- opacity: number;
20
- transform: string;
21
- transition: ({ timeout }: { timeout: number }) => string;
22
- transitionProperty: string;
23
- };
24
- root: {
25
- display: string;
26
- };
27
- account: {
28
- display: string;
29
- position: string;
30
- alignItems: string;
31
- cursor: string;
32
- };
33
- accountName: {
34
- margin: number[];
35
- fontSize: number;
36
- transition: string;
37
- };
38
- accountNameOpened: {};
39
- accountChevron: {
40
- width: number;
41
- height: number;
42
- transition: string;
43
- transitionProperty: string;
44
- };
45
- accountChevronOpened: {
46
- transform: string;
47
- };
48
- accountMenu: {
49
- position: string;
50
- zIndex: number;
51
- top: string;
52
- right: number;
53
- marginTop: number;
54
- };
55
- avatarIcon: {
56
- width: number;
57
- height: number;
58
- };
3
+ tweakList: {};
4
+ 'slide-up-enter': {
5
+ opacity: number;
6
+ transform: string;
7
+ };
8
+ 'slide-up-enter-active': {
9
+ opacity: number;
10
+ transform: string;
11
+ transition: ({ timeout }: {
12
+ timeout: number;
13
+ }) => string;
14
+ transitionProperty: string;
15
+ };
16
+ 'slide-up-exit-active': {
17
+ opacity: number;
18
+ transform: string;
19
+ };
20
+ 'slide-up-exit': {
21
+ opacity: number;
22
+ transform: string;
23
+ transition: ({ timeout }: {
24
+ timeout: number;
25
+ }) => string;
26
+ transitionProperty: string;
27
+ };
28
+ root: {
29
+ display: string;
30
+ };
31
+ account: {
32
+ display: string;
33
+ position: string;
34
+ alignItems: string;
35
+ cursor: string;
36
+ };
37
+ accountName: {
38
+ margin: number[];
39
+ fontSize: number;
40
+ transition: string;
41
+ };
42
+ accountNameOpened: {};
43
+ accountChevron: {
44
+ width: number;
45
+ height: number;
46
+ transition: string;
47
+ transitionProperty: string;
48
+ };
49
+ accountChevronOpened: {
50
+ transform: string;
51
+ };
52
+ accountMenu: {
53
+ position: string;
54
+ zIndex: number;
55
+ top: string;
56
+ right: number;
57
+ marginTop: number;
58
+ };
59
+ avatarIcon: {
60
+ width: number;
61
+ height: number;
62
+ };
59
63
  };
60
64
  export declare type AccountInfoStyles = ComponentStyles<typeof styles>;
@@ -2,11 +2,11 @@ import { FC } from 'react';
2
2
  import { ICommonProps } from '../../types';
3
3
  import { AddButtonStyles } from './AddButton.styles';
4
4
  export interface IAddButtonProps extends ICommonProps {
5
- tweakStyles?: AddButtonStyles;
6
- text: string;
7
- type?: 'submit' | 'button';
8
- isDisabled?: boolean;
9
- isFullWidth?: boolean;
10
- onClick?(): void | Promise<void>;
5
+ tweakStyles?: AddButtonStyles;
6
+ text: string;
7
+ type?: 'submit' | 'button';
8
+ isDisabled?: boolean;
9
+ isFullWidth?: boolean;
10
+ onClick?(): void | Promise<void>;
11
11
  }
12
12
  export declare const AddButton: FC<IAddButtonProps>;
@@ -1,28 +1,28 @@
1
1
  import { ComponentStyles } from '../../types';
2
2
  export declare const styles: {
3
- root: {
4
- display: string;
5
- alignItems: string;
6
- padding: string;
7
- height: number;
8
- cursor: string;
9
- outline: string;
10
- transition: string;
11
- fontSize: number;
12
- '&:hover': {
13
- transition: string;
3
+ root: {
4
+ display: string;
5
+ alignItems: string;
6
+ padding: string;
7
+ height: number;
8
+ cursor: string;
9
+ outline: string;
10
+ transition: string;
11
+ fontSize: number;
12
+ '&:hover': {
13
+ transition: string;
14
+ };
15
+ };
16
+ disabled: {
17
+ cursor: string;
18
+ };
19
+ icon: {
20
+ width: number;
21
+ display: string;
22
+ marginRight: number;
23
+ };
24
+ fullWidth: {
25
+ width: string;
14
26
  };
15
- };
16
- disabled: {
17
- cursor: string;
18
- };
19
- icon: {
20
- width: number;
21
- display: string;
22
- marginRight: number;
23
- };
24
- fullWidth: {
25
- width: string;
26
- };
27
27
  };
28
28
  export declare type AddButtonStyles = ComponentStyles<typeof styles>;
@@ -1,42 +1,28 @@
1
- import {
2
- FC,
3
- ReactElement,
4
- ReactNode,
5
- ButtonHTMLAttributes,
6
- MouseEvent,
7
- } from 'react';
1
+ import { FC, ReactElement, ReactNode, ButtonHTMLAttributes, MouseEvent } from 'react';
8
2
  import { ICommonProps } from '../../types';
9
3
  import { IThemedPreloaderProps } from '../ThemedPreloader';
10
4
  import { IIconType } from '../Icon';
11
5
  import { ButtonStyles } from './Button.styles';
12
6
  export declare type IButtonSize = 's' | 'm' | 'l' | 'xl';
13
- export declare const BUTTON_VIEWS: readonly [
14
- 'primary',
15
- 'secondary',
16
- 'outline',
17
- 'warning',
18
- 'destructive',
19
- 'text',
20
- 'custom',
21
- ];
7
+ export declare const BUTTON_VIEWS: readonly ["primary", "secondary", "outline", "warning", "destructive", "text", "custom"];
22
8
  export declare type IButtonView = (typeof BUTTON_VIEWS)[number];
23
9
  export interface IButtonProps extends ICommonProps {
24
- tweakStyles?: ButtonStyles;
25
- children?: ReactNode;
26
- type?: ButtonHTMLAttributes<unknown>['type'];
27
- size?: IButtonSize;
28
- view?: IButtonView;
29
- shouldSkipTabNavigation?: boolean;
30
- isDisabled?: boolean;
31
- isFullWidth?: boolean;
32
- isInline?: boolean;
33
- isLoading?: boolean;
34
- isActive?: boolean;
35
- icon?: IIconType | ReactElement;
36
- iconPosition?: 'left' | 'right';
37
- preloaderType?: IThemedPreloaderProps['type'];
38
- testId?: string;
39
- onClick?(event: MouseEvent<HTMLButtonElement>): void | Promise<void>;
40
- onMouseDown?(event: MouseEvent<HTMLButtonElement>): void | Promise<void>;
10
+ tweakStyles?: ButtonStyles;
11
+ children?: ReactNode;
12
+ type?: ButtonHTMLAttributes<unknown>['type'];
13
+ size?: IButtonSize;
14
+ view?: IButtonView;
15
+ shouldSkipTabNavigation?: boolean;
16
+ isDisabled?: boolean;
17
+ isFullWidth?: boolean;
18
+ isInline?: boolean;
19
+ isLoading?: boolean;
20
+ isActive?: boolean;
21
+ icon?: IIconType | ReactElement;
22
+ iconPosition?: 'left' | 'right';
23
+ preloaderType?: IThemedPreloaderProps['type'];
24
+ testId?: string;
25
+ onClick?(event: MouseEvent<HTMLButtonElement>): void | Promise<void>;
26
+ onMouseDown?(event: MouseEvent<HTMLButtonElement>): void | Promise<void>;
41
27
  }
42
28
  export declare const Button: FC<IButtonProps>;
@@ -1,150 +1,150 @@
1
1
  import { ComponentStyles } from '../../types';
2
2
  import { ThemedPreloaderStyles } from '../ThemedPreloader';
3
3
  export declare const styles: {
4
- root: {
5
- display: string;
6
- justifyContent: string;
7
- alignItems: string;
8
- cursor: string;
9
- outline: string;
10
- boxSizing: string;
11
- transition: string;
12
- transitionProperty: string;
13
- maxWidth: string;
14
- border: (string | number)[];
15
- position: string;
16
- boxShadow: string;
17
- '&[disabled]': {
18
- cursor: string;
19
- pointerEvents: string;
20
- };
21
- };
22
- primary: {};
23
- secondary: {};
24
- outline: {};
25
- warning: {};
26
- destructive: {};
27
- text: {};
28
- custom: {};
29
- children: {};
30
- icon: {
31
- width: number;
32
- height: number;
33
- flexShrink: number;
34
- transition: string;
35
- };
36
- iconFromLeft: {
37
- flexDirection: string;
38
- gap: number;
39
- '& $icon': {
40
- marginLeft: number;
41
- };
42
- };
43
- iconFromRight: {
44
- flexDirection: string;
45
- gap: number;
46
- '& $icon': {
47
- marginRight: number;
48
- };
49
- };
50
- onlyIcon: {};
51
- withIcon: {};
52
- s: {
53
- padding: number[];
54
- height: number;
55
- fontSize: number;
56
- letterSpacing: number;
57
- '&$onlyIcon': {
58
- padding: number;
59
- width: number;
60
- };
61
- '& $icon': {
62
- width: number;
63
- height: number;
64
- };
65
- '& $iconFromLeft': {
66
- gap: number;
67
- };
68
- '& $iconFromRight': {
69
- gap: number;
70
- };
71
- };
72
- m: {
73
- padding: number[];
74
- height: number;
75
- fontSize: number;
76
- '& $iconFromLeft': {
77
- gap: number;
78
- };
79
- '& $iconFromRight': {
80
- gap: number;
81
- };
82
- '&$onlyIcon': {
83
- padding: number;
84
- width: number;
85
- };
86
- };
87
- l: {
88
- padding: number[];
89
- height: number;
90
- fontSize: number;
91
- '& $iconFromLeft': {
92
- gap: number;
93
- };
94
- '& $iconFromRight': {
95
- gap: number;
96
- };
97
- '&$onlyIcon': {
98
- padding: number;
99
- width: number;
100
- };
101
- };
102
- xl: {
103
- padding: number[];
104
- height: number;
105
- fontSize: number;
106
- '&$onlyIcon': {
107
- padding: number;
108
- width: number;
109
- };
110
- '& $iconFromLeft': {
111
- gap: number;
112
- };
113
- '& $iconFromRight': {
114
- gap: number;
115
- };
116
- };
117
- fullWidth: {
118
- minWidth: string;
119
- width: string;
120
- };
121
- inline: {
122
- borderTopLeftRadius: number;
123
- borderBottomLeftRadius: number;
124
- };
125
- active: {};
126
- content: {
127
- display: string;
128
- alignItems: string;
129
- height: string;
130
- };
131
- loader: {
132
- display: string;
133
- position: string;
134
- left: string;
135
- top: string;
136
- transform: string;
137
- };
138
- loading: {
139
- '& $content': {
140
- visibility: string;
141
- };
142
- '& $loader': {
143
- display: string;
144
- };
145
- };
146
- disabled: {};
147
- tweakPreloader: {};
4
+ root: {
5
+ display: string;
6
+ justifyContent: string;
7
+ alignItems: string;
8
+ cursor: string;
9
+ outline: string;
10
+ boxSizing: string;
11
+ transition: string;
12
+ transitionProperty: string;
13
+ maxWidth: string;
14
+ border: (string | number)[];
15
+ position: string;
16
+ boxShadow: string;
17
+ '&[disabled]': {
18
+ cursor: string;
19
+ pointerEvents: string;
20
+ };
21
+ };
22
+ primary: {};
23
+ secondary: {};
24
+ outline: {};
25
+ warning: {};
26
+ destructive: {};
27
+ text: {};
28
+ custom: {};
29
+ children: {};
30
+ icon: {
31
+ width: number;
32
+ height: number;
33
+ flexShrink: number;
34
+ transition: string;
35
+ };
36
+ iconFromLeft: {
37
+ flexDirection: string;
38
+ gap: number;
39
+ '& $icon': {
40
+ marginLeft: number;
41
+ };
42
+ };
43
+ iconFromRight: {
44
+ flexDirection: string;
45
+ gap: number;
46
+ '& $icon': {
47
+ marginRight: number;
48
+ };
49
+ };
50
+ onlyIcon: {};
51
+ withIcon: {};
52
+ s: {
53
+ padding: number[];
54
+ height: number;
55
+ fontSize: number;
56
+ letterSpacing: number;
57
+ '&$onlyIcon': {
58
+ padding: number;
59
+ width: number;
60
+ };
61
+ '& $icon': {
62
+ width: number;
63
+ height: number;
64
+ };
65
+ '& $iconFromLeft': {
66
+ gap: number;
67
+ };
68
+ '& $iconFromRight': {
69
+ gap: number;
70
+ };
71
+ };
72
+ m: {
73
+ padding: number[];
74
+ height: number;
75
+ fontSize: number;
76
+ '& $iconFromLeft': {
77
+ gap: number;
78
+ };
79
+ '& $iconFromRight': {
80
+ gap: number;
81
+ };
82
+ '&$onlyIcon': {
83
+ padding: number;
84
+ width: number;
85
+ };
86
+ };
87
+ l: {
88
+ padding: number[];
89
+ height: number;
90
+ fontSize: number;
91
+ '& $iconFromLeft': {
92
+ gap: number;
93
+ };
94
+ '& $iconFromRight': {
95
+ gap: number;
96
+ };
97
+ '&$onlyIcon': {
98
+ padding: number;
99
+ width: number;
100
+ };
101
+ };
102
+ xl: {
103
+ padding: number[];
104
+ height: number;
105
+ fontSize: number;
106
+ '&$onlyIcon': {
107
+ padding: number;
108
+ width: number;
109
+ };
110
+ '& $iconFromLeft': {
111
+ gap: number;
112
+ };
113
+ '& $iconFromRight': {
114
+ gap: number;
115
+ };
116
+ };
117
+ fullWidth: {
118
+ minWidth: string;
119
+ width: string;
120
+ };
121
+ inline: {
122
+ borderTopLeftRadius: number;
123
+ borderBottomLeftRadius: number;
124
+ };
125
+ active: {};
126
+ content: {
127
+ display: string;
128
+ alignItems: string;
129
+ height: string;
130
+ };
131
+ loader: {
132
+ display: string;
133
+ position: string;
134
+ left: string;
135
+ top: string;
136
+ transform: string;
137
+ };
138
+ loading: {
139
+ '& $content': {
140
+ visibility: string;
141
+ };
142
+ '& $loader': {
143
+ display: string;
144
+ };
145
+ };
146
+ disabled: {};
147
+ tweakPreloader: {};
148
148
  };
149
149
  export declare const dotsPreloaderStyles: ThemedPreloaderStyles;
150
150
  export declare type ButtonStyles = ComponentStyles<typeof styles>;
@@ -2,31 +2,20 @@ import { PropsWithChildren } from 'react';
2
2
  import { ICommonProps } from '../../types';
3
3
  import { CheckboxStyles } from './Checkbox.styles';
4
4
  export interface ICheckboxProps<V> extends ICommonProps {
5
- tweakStyles?: CheckboxStyles;
6
- isChecked?: boolean;
7
- isSemiChecked?: boolean;
8
- isDisabled?: boolean;
9
- isInvalid?: boolean;
10
- value: V;
11
- size?: number;
12
- alignItems?: 'top' | 'center';
13
- textMargin?: number;
14
- labelPosition?: 'right' | 'left';
15
- testId?: string;
16
- onSelect(value: { value: V; isSelected: boolean }): void;
5
+ tweakStyles?: CheckboxStyles;
6
+ isChecked?: boolean;
7
+ isSemiChecked?: boolean;
8
+ isDisabled?: boolean;
9
+ isInvalid?: boolean;
10
+ value: V;
11
+ size?: number;
12
+ alignItems?: 'top' | 'center';
13
+ textMargin?: number;
14
+ labelPosition?: 'right' | 'left';
15
+ testId?: string;
16
+ onSelect(value: {
17
+ value: V;
18
+ isSelected: boolean;
19
+ }): void;
17
20
  }
18
- export declare function Checkbox<V>({
19
- children,
20
- isDisabled,
21
- isChecked,
22
- value,
23
- size,
24
- alignItems,
25
- textMargin,
26
- data,
27
- testId,
28
- isSemiChecked,
29
- labelPosition,
30
- tweakStyles,
31
- onSelect,
32
- }: PropsWithChildren<ICheckboxProps<V>>): JSX.Element;
21
+ export declare function Checkbox<V>({ children, isDisabled, isChecked, value, size, alignItems, textMargin, data, testId, isSemiChecked, labelPosition, tweakStyles, onSelect, }: PropsWithChildren<ICheckboxProps<V>>): JSX.Element;