@true-engineering/true-react-common-ui-kit 1.0.1 → 1.0.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 (136) hide show
  1. package/LICENSE +1 -1
  2. package/dist/components/AccountInfo/AccountInfo.d.ts +4 -4
  3. package/dist/components/AccountInfo/AccountInfo.styles.d.ts +56 -60
  4. package/dist/components/AddButton/AddButton.d.ts +6 -6
  5. package/dist/components/AddButton/AddButton.styles.d.ts +23 -23
  6. package/dist/components/Button/Button.d.ts +33 -19
  7. package/dist/components/Button/Button.styles.d.ts +144 -144
  8. package/dist/components/Checkbox/Checkbox.d.ts +27 -16
  9. package/dist/components/Checkbox/Checkbox.styles.d.ts +42 -39
  10. package/dist/components/CloseButton/CloseButton.d.ts +4 -4
  11. package/dist/components/CloseButton/CloseButton.styles.d.ts +22 -22
  12. package/dist/components/Colors/Colors.styles.d.ts +28 -28
  13. package/dist/components/CssBaseline/CssBaseline.d.ts +1 -1
  14. package/dist/components/CssBaseline/CssBaseline.styles.d.ts +7 -7
  15. package/dist/components/DateInput/DateInput.d.ts +9 -8
  16. package/dist/components/DateInput/DateInput.styles.d.ts +7 -7
  17. package/dist/components/DatePicker/DatePicker.d.ts +36 -29
  18. package/dist/components/DatePicker/DatePicker.styles.d.ts +34 -38
  19. package/dist/components/DatePicker/DatePickerHeader/DatePickerHeader.d.ts +9 -9
  20. package/dist/components/DatePicker/DatePickerHeader/DatePickerHeader.styles.d.ts +59 -59
  21. package/dist/components/DatePicker/DatePickerInput/DatePickerInput.d.ts +9 -7
  22. package/dist/components/DatePicker/DatePickerInput/DatePickerInput.styles.d.ts +16 -16
  23. package/dist/components/Description/Description.d.ts +6 -6
  24. package/dist/components/Description/Description.styles.d.ts +18 -18
  25. package/dist/components/FiltersPane/FilterInterval/FilterInterval.d.ts +19 -19
  26. package/dist/components/FiltersPane/FilterInterval/FilterInterval.styles.d.ts +44 -44
  27. package/dist/components/FiltersPane/FilterMultiSelect/FilterMultiSelect.d.ts +8 -2
  28. package/dist/components/FiltersPane/FilterSelect/FilterSelect.d.ts +35 -17
  29. package/dist/components/FiltersPane/FilterSelect/FilterSelect.styles.d.ts +111 -111
  30. package/dist/components/FiltersPane/FilterSelect/locales.d.ts +10 -6
  31. package/dist/components/FiltersPane/FilterValueView/FilterValueView.d.ts +9 -1
  32. package/dist/components/FiltersPane/FilterValueView/FilterValueView.styles.d.ts +8 -8
  33. package/dist/components/FiltersPane/FilterWithDates/FilterWithDates.d.ts +21 -13
  34. package/dist/components/FiltersPane/FilterWithDates/FilterWithDates.styles.d.ts +41 -41
  35. package/dist/components/FiltersPane/FilterWithPeriod/FilterWithPeriod.d.ts +8 -8
  36. package/dist/components/FiltersPane/FilterWithPeriod/FilterWithPeriod.styles.d.ts +7 -7
  37. package/dist/components/FiltersPane/FilterWrapper/FilterWrapper.d.ts +41 -18
  38. package/dist/components/FiltersPane/FilterWrapper/FilterWrapper.styles.d.ts +92 -92
  39. package/dist/components/FiltersPane/FiltersPane.d.ts +34 -15
  40. package/dist/components/FiltersPane/FiltersPane.styles.d.ts +50 -50
  41. package/dist/components/FiltersPane/FiltersPaneSearch/FiltersPaneSearch.d.ts +37 -18
  42. package/dist/components/FiltersPane/FiltersPaneSearch/FiltersPaneSearch.styles.d.ts +82 -82
  43. package/dist/components/FiltersPane/locales.d.ts +28 -22
  44. package/dist/components/FiltersPane/types.d.ts +65 -38
  45. package/dist/components/Flag/Flag.d.ts +2 -2
  46. package/dist/components/Flag/Flag.styles.d.ts +8 -8
  47. package/dist/components/FlexibleTable/FlexibleTable.d.ts +45 -20
  48. package/dist/components/FlexibleTable/FlexibleTable.styles.d.ts +93 -93
  49. package/dist/components/FlexibleTable/TableRow.d.ts +38 -21
  50. package/dist/components/FlexibleTable/TableValue.d.ts +28 -16
  51. package/dist/components/FlexibleTable/types.d.ts +37 -31
  52. package/dist/components/Icon/ComplexIconBoilerplate.d.ts +1 -1
  53. package/dist/components/Icon/Icon.d.ts +2 -2
  54. package/dist/components/Icon/Icon.styles.d.ts +4 -4
  55. package/dist/components/Icon/IconBoilerplate.d.ts +1 -1
  56. package/dist/components/Icon/complexIcons/icons.d.ts +1 -1
  57. package/dist/components/Icon/icons/icons.d.ts +97 -5
  58. package/dist/components/IncrementInput/ChangeButton.d.ts +5 -5
  59. package/dist/components/IncrementInput/IncrementInput.d.ts +4 -3
  60. package/dist/components/IncrementInput/IncrementInput.styles.d.ts +52 -52
  61. package/dist/components/Input/Input.d.ts +48 -37
  62. package/dist/components/Input/Input.styles.d.ts +242 -242
  63. package/dist/components/List/List.d.ts +12 -12
  64. package/dist/components/List/List.styles.d.ts +35 -35
  65. package/dist/components/Modal/Modal.d.ts +19 -19
  66. package/dist/components/Modal/Modal.styles.d.ts +235 -235
  67. package/dist/components/MoreMenu/MoreMenu.d.ts +7 -7
  68. package/dist/components/MoreMenu/MoreMenu.styles.d.ts +45 -44
  69. package/dist/components/MultiSelect/MultiSelect.d.ts +28 -13
  70. package/dist/components/MultiSelect/MultiSelect.styles.d.ts +38 -38
  71. package/dist/components/MultiSelect/MultiSelectInput/MultiSelectInput.d.ts +12 -6
  72. package/dist/components/MultiSelect/MultiSelectInput/MultiSelectInput.styles.d.ts +58 -58
  73. package/dist/components/MultiSelectList/MultiSelectList.d.ts +43 -20
  74. package/dist/components/MultiSelectList/MultiSelectList.styles.d.ts +90 -90
  75. package/dist/components/MultiSelectList/locales.d.ts +10 -6
  76. package/dist/components/Notification/Notification.d.ts +14 -9
  77. package/dist/components/Notification/Notification.styles.d.ts +33 -30
  78. package/dist/components/NumberInput/NumberInput.d.ts +16 -10
  79. package/dist/components/NumberInput/helpers.d.ts +10 -2
  80. package/dist/components/PhoneInput/PhoneInput.d.ts +14 -7
  81. package/dist/components/PhoneInput/PhoneInput.styles.d.ts +60 -60
  82. package/dist/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.d.ts +7 -7
  83. package/dist/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.styles.d.ts +78 -74
  84. package/dist/components/PhoneInput/types.d.ts +11 -11
  85. package/dist/components/RadioButton/RadioButton.d.ts +18 -8
  86. package/dist/components/RadioButton/RadioButton.styles.d.ts +25 -25
  87. package/dist/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.d.ts +634 -374
  88. package/dist/components/SearchInput/SearchInput.d.ts +12 -2
  89. package/dist/components/SearchInput/SearchInput.styles.d.ts +32 -32
  90. package/dist/components/Select/Select.d.ts +50 -21
  91. package/dist/components/Select/Select.styles.d.ts +53 -53
  92. package/dist/components/Select/SelectList/SelectList.d.ts +30 -15
  93. package/dist/components/Select/SelectList/SelectList.styles.d.ts +37 -35
  94. package/dist/components/Select/helpers.d.ts +9 -2
  95. package/dist/components/SmartInput/SmartInput.d.ts +28 -16
  96. package/dist/components/SmartInput/helpers.d.ts +8 -4
  97. package/dist/components/Switch/Switch.d.ts +26 -13
  98. package/dist/components/Switch/Switch.styles.d.ts +58 -58
  99. package/dist/components/TextArea/TextArea.d.ts +26 -23
  100. package/dist/components/TextArea/TextArea.styles.d.ts +124 -124
  101. package/dist/components/TextWithInfo/TextWithInfo.d.ts +9 -9
  102. package/dist/components/TextWithInfo/TextWithInfo.styles.d.ts +40 -40
  103. package/dist/components/TextWithTooltip/TextWithTooltip.d.ts +12 -12
  104. package/dist/components/TextWithTooltip/TextWithTooltip.styles.d.ts +10 -10
  105. package/dist/components/ThemedPreloader/ThemedPreloader.d.ts +4 -4
  106. package/dist/components/ThemedPreloader/ThemedPreloader.styles.d.ts +10 -10
  107. package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.d.ts +1 -1
  108. package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.d.ts +35 -35
  109. package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.d.ts +2 -2
  110. package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.d.ts +5 -5
  111. package/dist/components/Toaster/Toaster.d.ts +16 -11
  112. package/dist/components/Toaster/Toaster.styles.d.ts +41 -41
  113. package/dist/components/Tooltip/Tooltip.d.ts +4 -4
  114. package/dist/components/Tooltip/Tooltip.styles.d.ts +25 -27
  115. package/dist/helpers/data-attributes.d.ts +11 -4
  116. package/dist/helpers/phone.d.ts +28 -8
  117. package/dist/helpers/utils.d.ts +28 -7
  118. package/dist/hooks/use-did-mount-effect.d.ts +4 -1
  119. package/dist/hooks/use-dropdown.d.ts +14 -7
  120. package/dist/hooks/use-is-mounted.d.ts +1 -1
  121. package/dist/hooks/use-on-click-outside.d.ts +25 -4
  122. package/dist/hooks/use-theme.d.ts +10 -5
  123. package/dist/hooks/use-tweak-styles.d.ts +5 -1
  124. package/dist/style.css +205 -90
  125. package/dist/theme.d.ts +51 -55
  126. package/dist/true-react-common-ui-kit.js +24375 -16679
  127. package/dist/true-react-common-ui-kit.js.map +1 -1
  128. package/dist/true-react-common-ui-kit.umd.cjs +300 -211
  129. package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
  130. package/dist/types.d.ts +77 -23
  131. package/package.json +1 -1
  132. package/src/components/List/List.tsx +9 -2
  133. package/src/components/Modal/Modal.tsx +1 -1
  134. package/src/components/MoreMenu/MoreMenu.styles.ts +2 -0
  135. package/src/components/MoreMenu/MoreMenu.tsx +35 -24
  136. package/src/types.ts +1 -1
package/LICENSE CHANGED
@@ -186,7 +186,7 @@ APPENDIX: How to apply the Apache License to your work.
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright [yyyy] [name of copyright owner]
189
+ Copyright 2023 ООО «Тру Инжиниринг»
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.
@@ -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,64 +1,60 @@
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 }: {
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
- };
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
+ };
63
59
  };
64
60
  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;
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;
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;
26
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;
26
+ };
27
27
  };
28
28
  export declare type AddButtonStyles = ComponentStyles<typeof styles>;
@@ -1,28 +1,42 @@
1
- import { FC, ReactElement, ReactNode, ButtonHTMLAttributes, MouseEvent } from 'react';
1
+ import {
2
+ FC,
3
+ ReactElement,
4
+ ReactNode,
5
+ ButtonHTMLAttributes,
6
+ MouseEvent,
7
+ } from 'react';
2
8
  import { ICommonProps } from '../../types';
3
9
  import { IThemedPreloaderProps } from '../ThemedPreloader';
4
10
  import { IIconType } from '../Icon';
5
11
  import { ButtonStyles } from './Button.styles';
6
12
  export declare type IButtonSize = 's' | 'm' | 'l' | 'xl';
7
- export declare const BUTTON_VIEWS: readonly ["primary", "secondary", "outline", "warning", "destructive", "text", "custom"];
13
+ export declare const BUTTON_VIEWS: readonly [
14
+ 'primary',
15
+ 'secondary',
16
+ 'outline',
17
+ 'warning',
18
+ 'destructive',
19
+ 'text',
20
+ 'custom',
21
+ ];
8
22
  export declare type IButtonView = (typeof BUTTON_VIEWS)[number];
9
23
  export interface IButtonProps extends ICommonProps {
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>;
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>;
27
41
  }
28
42
  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,20 +2,31 @@ 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: {
17
- value: V;
18
- isSelected: boolean;
19
- }): 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: { value: V; isSelected: boolean }): void;
20
17
  }
21
- export declare function Checkbox<V>({ children, isDisabled, isChecked, value, size, alignItems, textMargin, data, testId, isSemiChecked, labelPosition, tweakStyles, onSelect, }: PropsWithChildren<ICheckboxProps<V>>): JSX.Element;
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;