@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
@@ -1,239 +1,239 @@
1
1
  import { ComponentStyles } from '../../types';
2
2
  export declare const styles: {
3
- root: {};
4
- fixedPosition: {
5
- position: string;
6
- top: number;
7
- right: number;
8
- bottom: number;
9
- left: number;
10
- zIndex: number;
11
- overflowX: string;
12
- '-webkit-overflow-scrolling': string;
13
- '& $innerOverlay': {
14
- display: string;
15
- width: string;
16
- minHeight: string;
17
- boxSizing: string;
18
- };
19
- };
20
- innerOverlay: {};
21
- sideBar: {
22
- '& $modal': {
23
- borderRadius: number;
24
- margin: number;
25
- minHeight: string;
26
- };
27
- };
28
- 'position-static': {};
29
- 'position-left': {};
30
- 'position-right': {
31
- justifyContent: string;
32
- };
33
- 'position-center': {
34
- padding: number[];
35
- };
36
- overlay: {
37
- backgroundColor: string;
38
- };
39
- modal: {
40
- backgroundColor: '#ffffff';
41
- borderRadius: 16;
42
- boxShadow: string;
43
- margin: string;
44
- position: string;
45
- maxWidth: string;
46
- };
47
- title: {
48
- fontSize: number;
49
- lineHeight: number;
50
- marginTop: number;
51
- };
52
- titleWithCloseButton: {
53
- paddingRight: number;
54
- };
55
- close: {
56
- position: string;
57
- };
58
- content: {};
59
- footer: {
60
- display: string;
61
- gap: number;
62
- };
63
- stickyFooterWrapper: {
64
- position: string;
65
- bottom: number;
66
- marginTop: string;
67
- zIndex: number;
68
- };
69
- stickyFooter: {
70
- borderTop: (string | number)[];
71
- padding: number[];
72
- borderBottomLeftRadius: 16;
73
- borderBottomRightRadius: 16;
74
- backgroundColor: '#ffffff';
75
- };
76
- 'buttons-left': {
77
- justifyContent: string;
78
- };
79
- 'buttons-center': {
80
- justifyContent: string;
81
- };
82
- 'buttons-right': {
83
- justifyContent: string;
84
- };
85
- withoutFooter: {};
86
- withStickyFooter: {
87
- display: string;
88
- flexDirection: string;
89
- '& $content': {
90
- position: string;
91
- zIndex: number;
92
- };
93
- };
94
- footerWrapper: {};
95
- l: {
96
- '& $modal': {
97
- padding: number[];
98
- fontSize: number;
99
- width: number;
100
- '&$withStickyFooter': {
101
- paddingBottom: number;
102
- };
103
- };
104
- '& $withoutFooter': {
105
- paddingBottom: number;
106
- };
107
- '& $title': {
108
- fontSize: number;
109
- marginBottom: number;
110
- };
111
- '& $close': {
112
- right: number;
113
- top: number;
114
- };
115
- '& $footerWrapper': {
116
- paddingTop: number;
117
- };
118
- '& $stickyFooter': {
119
- paddingLeft: number;
120
- paddingRight: number;
121
- marginLeft: number;
122
- marginRight: number;
123
- };
124
- };
125
- m: {
126
- '& $modal': {
127
- padding: number[];
128
- width: number;
129
- '&$withStickyFooter': {
130
- paddingBottom: number;
131
- };
132
- };
133
- '& $withoutFooter': {
134
- paddingBottom: number;
135
- };
136
- '& $title': {
137
- fontSize: number;
138
- marginBottom: number;
139
- };
140
- '& $close': {
141
- right: number;
142
- top: number;
143
- };
144
- '& $footerWrapper': {
145
- paddingTop: number;
146
- };
147
- '& $stickyFooter': {
148
- paddingLeft: number;
149
- paddingRight: number;
150
- marginLeft: number;
151
- marginRight: number;
152
- };
153
- };
154
- s: {
155
- '& $modal': {
156
- padding: number[];
157
- fontSize: number;
158
- width: number;
159
- '&$withStickyFooter': {
160
- paddingBottom: number;
161
- };
162
- };
163
- '& $withoutFooter': {
164
- paddingBottom: number;
165
- };
166
- '& $title': {
167
- fontSize: number;
168
- marginBottom: number;
169
- };
170
- '& $close': {
171
- right: number;
172
- top: number;
173
- };
174
- '& $footerWrapper': {
175
- paddingTop: number;
176
- };
177
- '& $stickyFooter': {
178
- paddingLeft: number;
179
- paddingRight: number;
180
- marginLeft: number;
181
- marginRight: number;
182
- };
183
- };
184
- modalWrapper: {
185
- display: string;
186
- width: string;
187
- };
188
- animationEnd: {
189
- '& $modal': {
190
- opacity: number;
191
- };
192
- '& $position-center $modal': {
193
- transform: string;
194
- };
195
- '& $position-right $modal': {
196
- transform: string;
197
- };
198
- '& $position-left $modal': {
199
- transform: string;
200
- };
201
- '& $overlay': {
202
- opacity: number;
203
- };
204
- };
205
- animationStart: {
206
- '& $modal': {
207
- opacity: number;
208
- transition: string;
209
- transitionProperty: string;
210
- };
211
- '& $position-center $modal': {
212
- transform: string;
213
- };
214
- '& $position-right $modal': {
215
- transform: string;
216
- };
217
- '& $position-left $modal': {
218
- transform: string;
219
- };
220
- '& $overlay': {
221
- opacity: number;
222
- transition: string;
223
- };
224
- };
225
- 'modal-enter': {
226
- extend: string;
227
- };
228
- 'modal-enter-active': {
229
- extend: string;
230
- };
231
- 'modal-exit': {
232
- extend: string;
233
- };
234
- 'modal-exit-active': {
235
- extend: string;
236
- };
237
- tweakCloseButton: {};
3
+ root: {};
4
+ fixedPosition: {
5
+ position: string;
6
+ top: number;
7
+ right: number;
8
+ bottom: number;
9
+ left: number;
10
+ zIndex: number;
11
+ overflowX: string;
12
+ '-webkit-overflow-scrolling': string;
13
+ '& $innerOverlay': {
14
+ display: string;
15
+ width: string;
16
+ minHeight: string;
17
+ boxSizing: string;
18
+ };
19
+ };
20
+ innerOverlay: {};
21
+ sideBar: {
22
+ '& $modal': {
23
+ borderRadius: number;
24
+ margin: number;
25
+ minHeight: string;
26
+ };
27
+ };
28
+ 'position-static': {};
29
+ 'position-left': {};
30
+ 'position-right': {
31
+ justifyContent: string;
32
+ };
33
+ 'position-center': {
34
+ padding: number[];
35
+ };
36
+ overlay: {
37
+ backgroundColor: string;
38
+ };
39
+ modal: {
40
+ backgroundColor: "#ffffff";
41
+ borderRadius: 16;
42
+ boxShadow: string;
43
+ margin: string;
44
+ position: string;
45
+ maxWidth: string;
46
+ };
47
+ title: {
48
+ fontSize: number;
49
+ lineHeight: number;
50
+ marginTop: number;
51
+ };
52
+ titleWithCloseButton: {
53
+ paddingRight: number;
54
+ };
55
+ close: {
56
+ position: string;
57
+ };
58
+ content: {};
59
+ footer: {
60
+ display: string;
61
+ gap: number;
62
+ };
63
+ stickyFooterWrapper: {
64
+ position: string;
65
+ bottom: number;
66
+ marginTop: string;
67
+ zIndex: number;
68
+ };
69
+ stickyFooter: {
70
+ borderTop: (string | number)[];
71
+ padding: number[];
72
+ borderBottomLeftRadius: 16;
73
+ borderBottomRightRadius: 16;
74
+ backgroundColor: "#ffffff";
75
+ };
76
+ 'buttons-left': {
77
+ justifyContent: string;
78
+ };
79
+ 'buttons-center': {
80
+ justifyContent: string;
81
+ };
82
+ 'buttons-right': {
83
+ justifyContent: string;
84
+ };
85
+ withoutFooter: {};
86
+ withStickyFooter: {
87
+ display: string;
88
+ flexDirection: string;
89
+ '& $content': {
90
+ position: string;
91
+ zIndex: number;
92
+ };
93
+ };
94
+ footerWrapper: {};
95
+ l: {
96
+ '& $modal': {
97
+ padding: number[];
98
+ fontSize: number;
99
+ width: number;
100
+ '&$withStickyFooter': {
101
+ paddingBottom: number;
102
+ };
103
+ };
104
+ '& $withoutFooter': {
105
+ paddingBottom: number;
106
+ };
107
+ '& $title': {
108
+ fontSize: number;
109
+ marginBottom: number;
110
+ };
111
+ '& $close': {
112
+ right: number;
113
+ top: number;
114
+ };
115
+ '& $footerWrapper': {
116
+ paddingTop: number;
117
+ };
118
+ '& $stickyFooter': {
119
+ paddingLeft: number;
120
+ paddingRight: number;
121
+ marginLeft: number;
122
+ marginRight: number;
123
+ };
124
+ };
125
+ m: {
126
+ '& $modal': {
127
+ padding: number[];
128
+ width: number;
129
+ '&$withStickyFooter': {
130
+ paddingBottom: number;
131
+ };
132
+ };
133
+ '& $withoutFooter': {
134
+ paddingBottom: number;
135
+ };
136
+ '& $title': {
137
+ fontSize: number;
138
+ marginBottom: number;
139
+ };
140
+ '& $close': {
141
+ right: number;
142
+ top: number;
143
+ };
144
+ '& $footerWrapper': {
145
+ paddingTop: number;
146
+ };
147
+ '& $stickyFooter': {
148
+ paddingLeft: number;
149
+ paddingRight: number;
150
+ marginLeft: number;
151
+ marginRight: number;
152
+ };
153
+ };
154
+ s: {
155
+ '& $modal': {
156
+ padding: number[];
157
+ fontSize: number;
158
+ width: number;
159
+ '&$withStickyFooter': {
160
+ paddingBottom: number;
161
+ };
162
+ };
163
+ '& $withoutFooter': {
164
+ paddingBottom: number;
165
+ };
166
+ '& $title': {
167
+ fontSize: number;
168
+ marginBottom: number;
169
+ };
170
+ '& $close': {
171
+ right: number;
172
+ top: number;
173
+ };
174
+ '& $footerWrapper': {
175
+ paddingTop: number;
176
+ };
177
+ '& $stickyFooter': {
178
+ paddingLeft: number;
179
+ paddingRight: number;
180
+ marginLeft: number;
181
+ marginRight: number;
182
+ };
183
+ };
184
+ modalWrapper: {
185
+ display: string;
186
+ width: string;
187
+ };
188
+ animationEnd: {
189
+ '& $modal': {
190
+ opacity: number;
191
+ };
192
+ '& $position-center $modal': {
193
+ transform: string;
194
+ };
195
+ '& $position-right $modal': {
196
+ transform: string;
197
+ };
198
+ '& $position-left $modal': {
199
+ transform: string;
200
+ };
201
+ '& $overlay': {
202
+ opacity: number;
203
+ };
204
+ };
205
+ animationStart: {
206
+ '& $modal': {
207
+ opacity: number;
208
+ transition: string;
209
+ transitionProperty: string;
210
+ };
211
+ '& $position-center $modal': {
212
+ transform: string;
213
+ };
214
+ '& $position-right $modal': {
215
+ transform: string;
216
+ };
217
+ '& $position-left $modal': {
218
+ transform: string;
219
+ };
220
+ '& $overlay': {
221
+ opacity: number;
222
+ transition: string;
223
+ };
224
+ };
225
+ 'modal-enter': {
226
+ extend: string;
227
+ };
228
+ 'modal-enter-active': {
229
+ extend: string;
230
+ };
231
+ 'modal-exit': {
232
+ extend: string;
233
+ };
234
+ 'modal-exit-active': {
235
+ extend: string;
236
+ };
237
+ tweakCloseButton: {};
238
238
  };
239
239
  export declare type ModalStyles = ComponentStyles<typeof styles>;
@@ -3,12 +3,12 @@ import { ICommonProps } from '../../types';
3
3
  import { IListItem } from '../List';
4
4
  import { MoreMenuStyles } from './MoreMenu.styles';
5
5
  export interface IMoreMenuProps extends ICommonProps {
6
- tweakStyles?: MoreMenuStyles;
7
- items: IListItem[];
8
- isDisabled?: boolean;
9
- hasDefaultStateBackground?: boolean;
10
- testId?: string;
11
- onMenuOpen?(): void;
12
- onMenuClose?(): void;
6
+ tweakStyles?: MoreMenuStyles;
7
+ items: IListItem[];
8
+ isDisabled?: boolean;
9
+ hasDefaultStateBackground?: boolean;
10
+ testId?: string;
11
+ onMenuOpen?(): void;
12
+ onMenuClose?(): void;
13
13
  }
14
14
  export declare const MoreMenu: FC<IMoreMenuProps>;
@@ -1,54 +1,54 @@
1
1
  import { ComponentStyles } from '../../types';
2
2
  export declare const styles: {
3
- root: {
4
- position: string;
5
- };
6
- hasCircle: {};
7
- button: {
8
- display: string;
9
- alignItems: string;
10
- justifyContent: string;
11
- width: number;
12
- height: number;
13
- backgroundColor: string;
14
- color: '#505f79';
15
- padding: number;
16
- borderRadius: string;
17
- border: string;
18
- cursor: string;
19
- transition: string;
20
- '&$hasCircle': {
21
- backgroundColor: string;
3
+ root: {
4
+ position: string;
22
5
  };
23
- '&:hover': {
24
- backgroundColor: string;
6
+ hasCircle: {};
7
+ button: {
8
+ display: string;
9
+ alignItems: string;
10
+ justifyContent: string;
11
+ width: number;
12
+ height: number;
13
+ backgroundColor: string;
14
+ color: "#505f79";
15
+ padding: number;
16
+ borderRadius: string;
17
+ border: string;
18
+ cursor: string;
19
+ transition: string;
20
+ '&$hasCircle': {
21
+ backgroundColor: string;
22
+ };
23
+ '&:hover': {
24
+ backgroundColor: string;
25
+ };
26
+ '&:focus': {
27
+ backgroundColor: string;
28
+ };
29
+ '&:active, &$active': {
30
+ backgroundColor: string;
31
+ };
32
+ '&$disabled': {
33
+ backgroundColor: string;
34
+ color: "#d0d6e1";
35
+ };
25
36
  };
26
- '&:focus': {
27
- backgroundColor: string;
37
+ icon: {
38
+ width: number;
39
+ height: number;
28
40
  };
29
- '&:active, &$active': {
30
- backgroundColor: string;
41
+ active: {};
42
+ disabled: {
43
+ cursor: string;
31
44
  };
32
- '&$disabled': {
33
- backgroundColor: string;
34
- color: '#d0d6e1';
45
+ menu: {
46
+ position: string;
47
+ zIndex: number;
48
+ top: string;
49
+ right: number;
50
+ marginTop: number;
35
51
  };
36
- };
37
- icon: {
38
- width: number;
39
- height: number;
40
- };
41
- active: {};
42
- disabled: {
43
- cursor: string;
44
- };
45
- menu: {
46
- position: string;
47
- zIndex: number;
48
- top: string;
49
- right: number;
50
- marginTop: number;
51
- };
52
- tweakList: {};
52
+ tweakList: {};
53
53
  };
54
54
  export declare type MoreMenuStyles = ComponentStyles<typeof styles>;
@@ -1,34 +1,19 @@
1
1
  /// <reference types="react" />
2
2
  import { IMultiSelectListValues } from '../MultiSelectList';
3
- import {
4
- IMultiSelectLocale,
5
- IMultiSelectLocaleKey,
6
- } from '../MultiSelectList/locales';
3
+ import { IMultiSelectLocale, IMultiSelectLocaleKey } from '../MultiSelectList/locales';
7
4
  import { MultiSelectStyles } from './MultiSelect.styles';
8
5
  export declare type THorizontalCornerConnection = 'full' | 'left' | 'right';
9
6
  export interface IMultiSelectProps<Value = string> {
10
- tweakStyles?: MultiSelectStyles;
11
- value?: IMultiSelectListValues<Value>;
12
- corners?: THorizontalCornerConnection;
13
- isInvalid?: boolean;
14
- isRequired?: boolean;
15
- isDisabled?: boolean;
16
- placeholder?: string;
17
- localeKey?: IMultiSelectLocaleKey;
18
- locale?: IMultiSelectLocale;
19
- onChange: (value?: IMultiSelectListValues<Value>) => void;
20
- fetchOptions: (value?: string, page?: number) => Promise<Value[]>;
7
+ tweakStyles?: MultiSelectStyles;
8
+ value?: IMultiSelectListValues<Value>;
9
+ corners?: THorizontalCornerConnection;
10
+ isInvalid?: boolean;
11
+ isRequired?: boolean;
12
+ isDisabled?: boolean;
13
+ placeholder?: string;
14
+ localeKey?: IMultiSelectLocaleKey;
15
+ locale?: IMultiSelectLocale;
16
+ onChange: (value?: IMultiSelectListValues<Value>) => void;
17
+ fetchOptions: (value?: string, page?: number) => Promise<Value[]>;
21
18
  }
22
- export declare function MultiSelect<Value = string>({
23
- value,
24
- corners,
25
- isInvalid,
26
- isRequired,
27
- isDisabled,
28
- placeholder,
29
- localeKey,
30
- locale,
31
- onChange,
32
- fetchOptions,
33
- tweakStyles,
34
- }: IMultiSelectProps<Value>): JSX.Element;
19
+ export declare function MultiSelect<Value = string>({ value, corners, isInvalid, isRequired, isDisabled, placeholder, localeKey, locale, onChange, fetchOptions, tweakStyles, }: IMultiSelectProps<Value>): JSX.Element;