@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.
- package/LICENSE +1 -1
- package/dist/components/AccountInfo/AccountInfo.d.ts +4 -4
- package/dist/components/AccountInfo/AccountInfo.styles.d.ts +56 -60
- package/dist/components/AddButton/AddButton.d.ts +6 -6
- package/dist/components/AddButton/AddButton.styles.d.ts +23 -23
- package/dist/components/Button/Button.d.ts +33 -19
- package/dist/components/Button/Button.styles.d.ts +144 -144
- package/dist/components/Checkbox/Checkbox.d.ts +27 -16
- package/dist/components/Checkbox/Checkbox.styles.d.ts +42 -39
- package/dist/components/CloseButton/CloseButton.d.ts +4 -4
- package/dist/components/CloseButton/CloseButton.styles.d.ts +22 -22
- package/dist/components/Colors/Colors.styles.d.ts +28 -28
- package/dist/components/CssBaseline/CssBaseline.d.ts +1 -1
- package/dist/components/CssBaseline/CssBaseline.styles.d.ts +7 -7
- package/dist/components/DateInput/DateInput.d.ts +9 -8
- package/dist/components/DateInput/DateInput.styles.d.ts +7 -7
- package/dist/components/DatePicker/DatePicker.d.ts +36 -29
- package/dist/components/DatePicker/DatePicker.styles.d.ts +34 -38
- package/dist/components/DatePicker/DatePickerHeader/DatePickerHeader.d.ts +9 -9
- package/dist/components/DatePicker/DatePickerHeader/DatePickerHeader.styles.d.ts +59 -59
- package/dist/components/DatePicker/DatePickerInput/DatePickerInput.d.ts +9 -7
- package/dist/components/DatePicker/DatePickerInput/DatePickerInput.styles.d.ts +16 -16
- package/dist/components/Description/Description.d.ts +6 -6
- package/dist/components/Description/Description.styles.d.ts +18 -18
- package/dist/components/FiltersPane/FilterInterval/FilterInterval.d.ts +19 -19
- package/dist/components/FiltersPane/FilterInterval/FilterInterval.styles.d.ts +44 -44
- package/dist/components/FiltersPane/FilterMultiSelect/FilterMultiSelect.d.ts +8 -2
- package/dist/components/FiltersPane/FilterSelect/FilterSelect.d.ts +35 -17
- package/dist/components/FiltersPane/FilterSelect/FilterSelect.styles.d.ts +111 -111
- package/dist/components/FiltersPane/FilterSelect/locales.d.ts +10 -6
- package/dist/components/FiltersPane/FilterValueView/FilterValueView.d.ts +9 -1
- package/dist/components/FiltersPane/FilterValueView/FilterValueView.styles.d.ts +8 -8
- package/dist/components/FiltersPane/FilterWithDates/FilterWithDates.d.ts +21 -13
- package/dist/components/FiltersPane/FilterWithDates/FilterWithDates.styles.d.ts +41 -41
- package/dist/components/FiltersPane/FilterWithPeriod/FilterWithPeriod.d.ts +8 -8
- package/dist/components/FiltersPane/FilterWithPeriod/FilterWithPeriod.styles.d.ts +7 -7
- package/dist/components/FiltersPane/FilterWrapper/FilterWrapper.d.ts +41 -18
- package/dist/components/FiltersPane/FilterWrapper/FilterWrapper.styles.d.ts +92 -92
- package/dist/components/FiltersPane/FiltersPane.d.ts +34 -15
- package/dist/components/FiltersPane/FiltersPane.styles.d.ts +50 -50
- package/dist/components/FiltersPane/FiltersPaneSearch/FiltersPaneSearch.d.ts +37 -18
- package/dist/components/FiltersPane/FiltersPaneSearch/FiltersPaneSearch.styles.d.ts +82 -82
- package/dist/components/FiltersPane/locales.d.ts +28 -22
- package/dist/components/FiltersPane/types.d.ts +65 -38
- package/dist/components/Flag/Flag.d.ts +2 -2
- package/dist/components/Flag/Flag.styles.d.ts +8 -8
- package/dist/components/FlexibleTable/FlexibleTable.d.ts +45 -20
- package/dist/components/FlexibleTable/FlexibleTable.styles.d.ts +93 -93
- package/dist/components/FlexibleTable/TableRow.d.ts +38 -21
- package/dist/components/FlexibleTable/TableValue.d.ts +28 -16
- package/dist/components/FlexibleTable/types.d.ts +37 -31
- package/dist/components/Icon/ComplexIconBoilerplate.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts +2 -2
- package/dist/components/Icon/Icon.styles.d.ts +4 -4
- package/dist/components/Icon/IconBoilerplate.d.ts +1 -1
- package/dist/components/Icon/complexIcons/icons.d.ts +1 -1
- package/dist/components/Icon/icons/icons.d.ts +97 -5
- package/dist/components/IncrementInput/ChangeButton.d.ts +5 -5
- package/dist/components/IncrementInput/IncrementInput.d.ts +4 -3
- package/dist/components/IncrementInput/IncrementInput.styles.d.ts +52 -52
- package/dist/components/Input/Input.d.ts +48 -37
- package/dist/components/Input/Input.styles.d.ts +242 -242
- package/dist/components/List/List.d.ts +12 -12
- package/dist/components/List/List.styles.d.ts +35 -35
- package/dist/components/Modal/Modal.d.ts +19 -19
- package/dist/components/Modal/Modal.styles.d.ts +235 -235
- package/dist/components/MoreMenu/MoreMenu.d.ts +7 -7
- package/dist/components/MoreMenu/MoreMenu.styles.d.ts +45 -44
- package/dist/components/MultiSelect/MultiSelect.d.ts +28 -13
- package/dist/components/MultiSelect/MultiSelect.styles.d.ts +38 -38
- package/dist/components/MultiSelect/MultiSelectInput/MultiSelectInput.d.ts +12 -6
- package/dist/components/MultiSelect/MultiSelectInput/MultiSelectInput.styles.d.ts +58 -58
- package/dist/components/MultiSelectList/MultiSelectList.d.ts +43 -20
- package/dist/components/MultiSelectList/MultiSelectList.styles.d.ts +90 -90
- package/dist/components/MultiSelectList/locales.d.ts +10 -6
- package/dist/components/Notification/Notification.d.ts +14 -9
- package/dist/components/Notification/Notification.styles.d.ts +33 -30
- package/dist/components/NumberInput/NumberInput.d.ts +16 -10
- package/dist/components/NumberInput/helpers.d.ts +10 -2
- package/dist/components/PhoneInput/PhoneInput.d.ts +14 -7
- package/dist/components/PhoneInput/PhoneInput.styles.d.ts +60 -60
- package/dist/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.d.ts +7 -7
- package/dist/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.styles.d.ts +78 -74
- package/dist/components/PhoneInput/types.d.ts +11 -11
- package/dist/components/RadioButton/RadioButton.d.ts +18 -8
- package/dist/components/RadioButton/RadioButton.styles.d.ts +25 -25
- package/dist/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.d.ts +634 -374
- package/dist/components/SearchInput/SearchInput.d.ts +12 -2
- package/dist/components/SearchInput/SearchInput.styles.d.ts +32 -32
- package/dist/components/Select/Select.d.ts +50 -21
- package/dist/components/Select/Select.styles.d.ts +53 -53
- package/dist/components/Select/SelectList/SelectList.d.ts +30 -15
- package/dist/components/Select/SelectList/SelectList.styles.d.ts +37 -35
- package/dist/components/Select/helpers.d.ts +9 -2
- package/dist/components/SmartInput/SmartInput.d.ts +28 -16
- package/dist/components/SmartInput/helpers.d.ts +8 -4
- package/dist/components/Switch/Switch.d.ts +26 -13
- package/dist/components/Switch/Switch.styles.d.ts +58 -58
- package/dist/components/TextArea/TextArea.d.ts +26 -23
- package/dist/components/TextArea/TextArea.styles.d.ts +124 -124
- package/dist/components/TextWithInfo/TextWithInfo.d.ts +9 -9
- package/dist/components/TextWithInfo/TextWithInfo.styles.d.ts +40 -40
- package/dist/components/TextWithTooltip/TextWithTooltip.d.ts +12 -12
- package/dist/components/TextWithTooltip/TextWithTooltip.styles.d.ts +10 -10
- package/dist/components/ThemedPreloader/ThemedPreloader.d.ts +4 -4
- package/dist/components/ThemedPreloader/ThemedPreloader.styles.d.ts +10 -10
- package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.d.ts +1 -1
- package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.d.ts +35 -35
- package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.d.ts +2 -2
- package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.d.ts +5 -5
- package/dist/components/Toaster/Toaster.d.ts +16 -11
- package/dist/components/Toaster/Toaster.styles.d.ts +41 -41
- package/dist/components/Tooltip/Tooltip.d.ts +4 -4
- package/dist/components/Tooltip/Tooltip.styles.d.ts +25 -27
- package/dist/helpers/data-attributes.d.ts +11 -4
- package/dist/helpers/phone.d.ts +28 -8
- package/dist/helpers/utils.d.ts +28 -7
- package/dist/hooks/use-did-mount-effect.d.ts +4 -1
- package/dist/hooks/use-dropdown.d.ts +14 -7
- package/dist/hooks/use-is-mounted.d.ts +1 -1
- package/dist/hooks/use-on-click-outside.d.ts +25 -4
- package/dist/hooks/use-theme.d.ts +10 -5
- package/dist/hooks/use-tweak-styles.d.ts +5 -1
- package/dist/style.css +205 -90
- package/dist/theme.d.ts +51 -55
- package/dist/true-react-common-ui-kit.js +24375 -16679
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +300 -211
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/dist/types.d.ts +77 -23
- package/package.json +1 -1
- package/src/components/List/List.tsx +9 -2
- package/src/components/Modal/Modal.tsx +1 -1
- package/src/components/MoreMenu/MoreMenu.styles.ts +2 -0
- package/src/components/MoreMenu/MoreMenu.tsx +35 -24
- package/src/types.ts +1 -1
|
@@ -1,239 +1,239 @@
|
|
|
1
1
|
import { ComponentStyles } from '../../types';
|
|
2
2
|
export declare const styles: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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,53 +1,54 @@
|
|
|
1
1
|
import { ComponentStyles } from '../../types';
|
|
2
2
|
export declare const styles: {
|
|
3
|
-
|
|
4
|
-
|
|
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;
|
|
5
22
|
};
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
};
|
|
23
|
+
'&:hover': {
|
|
24
|
+
backgroundColor: string;
|
|
36
25
|
};
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
height: number;
|
|
26
|
+
'&:focus': {
|
|
27
|
+
backgroundColor: string;
|
|
40
28
|
};
|
|
41
|
-
active: {
|
|
42
|
-
|
|
43
|
-
cursor: string;
|
|
29
|
+
'&:active, &$active': {
|
|
30
|
+
backgroundColor: string;
|
|
44
31
|
};
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
top: string;
|
|
49
|
-
right: number;
|
|
50
|
-
marginTop: number;
|
|
32
|
+
'&$disabled': {
|
|
33
|
+
backgroundColor: string;
|
|
34
|
+
color: '#d0d6e1';
|
|
51
35
|
};
|
|
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
53
|
};
|
|
53
54
|
export declare type MoreMenuStyles = ComponentStyles<typeof styles>;
|
|
@@ -1,19 +1,34 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IMultiSelectListValues } from '../MultiSelectList';
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
IMultiSelectLocale,
|
|
5
|
+
IMultiSelectLocaleKey,
|
|
6
|
+
} from '../MultiSelectList/locales';
|
|
4
7
|
import { MultiSelectStyles } from './MultiSelect.styles';
|
|
5
8
|
export declare type THorizontalCornerConnection = 'full' | 'left' | 'right';
|
|
6
9
|
export interface IMultiSelectProps<Value = string> {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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[]>;
|
|
18
21
|
}
|
|
19
|
-
export declare function MultiSelect<Value = string>({
|
|
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;
|