@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,247 +1,247 @@
1
1
  import { ComponentStyles } from '../../types';
2
2
  export declare const AUTOSIZE_MAX_WIDTH = 480;
3
3
  export declare const styles: {
4
- root: {
5
- width: string;
6
- boxSizing: string;
7
- position: string;
8
- };
9
- inputWrapper: {
10
- display: string;
11
- width: string;
12
- height: 48;
13
- boxSizing: string;
14
- transition: string;
15
- transitionProperty: string;
16
- backgroundColor: string;
17
- position: string;
18
- };
19
- inputContent: {
20
- fontSize: number;
21
- fontFamily: string;
22
- padding: number[];
23
- };
24
- input: {
25
- extend: string;
26
- width: string;
27
- height: string;
28
- outline: string;
29
- boxSizing: string;
30
- outlineStyle: string;
31
- transition: string;
32
- transitionProperty: string;
33
- border: string;
34
- background: string;
35
- '&::placeholder': {
36
- opacity: number;
37
- };
38
- MozAppearance: string;
39
- '&::-webkit-inner-spin-button,&::-webkit-outer-spin-button': {
40
- WebkitAppearance: string;
41
- margin: number;
42
- };
43
- };
44
- autosize: {
45
- display: string;
46
- verticalAlign: string;
47
- alignItems: string;
48
- justifyContent: string;
49
- '&::after, input': {
50
- width: string;
51
- minWidth: string;
52
- gridArea: string;
53
- font: string;
54
- justifySelf: string;
55
- };
56
- '&::after': {
57
- maxWidth: number;
58
- content: string;
59
- visibility: string;
60
- whiteSpace: string;
61
- };
62
- };
63
- focused: {
64
- position: string;
65
- zIndex: number;
66
- };
67
- unitsWrapper: {
68
- extend: string;
69
- position: string;
70
- left: number;
71
- height: string;
72
- boxSizing: string;
73
- display: string;
74
- alignItems: string;
75
- pointerEvents: string;
76
- };
77
- fakeValue: {
78
- visibility: string;
79
- };
80
- units: {
81
- paddingLeft: number;
82
- };
83
- withFloatingLabel: {
84
- paddingTop: number;
85
- };
86
- floatingLabelWithoutPadding: {
87
- paddingTop: number;
88
- paddingLeft: number;
89
- };
90
- floating: {};
91
- activeLabel: {
92
- display: string;
93
- '&$floating': {
94
- display: string;
95
- transform: string;
96
- };
97
- };
98
- required: {
99
- '&:before': {
100
- content: string;
101
- position: string;
102
- left: number;
103
- top: string;
104
- transform: string;
105
- width: number;
106
- height: number;
107
- borderRadius: string;
108
- };
109
- };
110
- label: {
111
- position: string;
112
- pointerEvents: string;
113
- left: number;
114
- top: string;
115
- transformOrigin: string;
116
- transform: string;
117
- transition: string;
118
- transitionProperty: string;
119
- fontSize: number;
120
- };
121
- floatingWithoutPadding: {
122
- left: number;
123
- };
124
- requiredLabel: {
125
- '&:after': {
126
- content: string;
127
- position: string;
128
- right: number;
129
- top: number;
130
- transform: string;
131
- width: number;
132
- height: number;
133
- borderRadius: string;
134
- };
135
- };
136
- activeIcon: {
137
- cursor: string;
138
- };
139
- 'border-top': {
140
- borderRadius: number;
141
- borderWidth: number[];
142
- };
143
- 'border-bottom': {
144
- borderRadius: number;
145
- borderWidth: number[];
146
- };
147
- 'border-left': {
148
- borderRadius: number;
149
- borderWidth: number[];
150
- };
151
- 'border-right': {
152
- borderRadius: number;
153
- borderWidth: number[];
154
- };
155
- top: {
156
- borderBottomLeftRadius: number;
157
- borderBottomRightRadius: number;
158
- };
159
- bottom: {
160
- borderTopLeftRadius: number;
161
- borderTopRightRadius: number;
162
- };
163
- 'top-left': {
164
- borderTopRightRadius: number;
165
- borderBottomLeftRadius: number;
166
- borderBottomRightRadius: number;
167
- };
168
- 'top-right': {
169
- borderTopLeftRadius: number;
170
- borderBottomLeftRadius: number;
171
- borderBottomRightRadius: number;
172
- };
173
- 'bottom-left': {
174
- borderTopLeftRadius: number;
175
- borderTopRightRadius: number;
176
- borderBottomRightRadius: number;
177
- };
178
- 'bottom-right': {
179
- borderTopLeftRadius: number;
180
- borderTopRightRadius: number;
181
- borderBottomLeftRadius: number;
182
- };
183
- left: {
184
- borderTopRightRadius: number;
185
- borderBottomRightRadius: number;
186
- };
187
- right: {
188
- borderTopLeftRadius: number;
189
- borderBottomLeftRadius: number;
190
- };
191
- middle: {
192
- borderRadius: number;
193
- };
194
- controls: {
195
- display: string;
196
- gridArea: string;
197
- };
198
- icon: {
199
- display: string;
200
- alignItems: string;
201
- padding: number[];
202
- width: number;
203
- transition: string;
204
- boxSizing: string;
205
- '&:last-child': {
206
- paddingRight: number;
207
- };
208
- '& + $units': {
209
- marginLeft: number;
210
- };
211
- };
212
- clearIcon: {
213
- extend: string;
214
- };
215
- inputIcon: {
216
- extend: string;
217
- };
218
- withIcons: {
219
- paddingRight: number;
220
- };
221
- withControls: {};
222
- invalid: {};
223
- disabled: {};
224
- invalidLabel: {};
225
- error: {
226
- fontSize: number;
227
- };
228
- info: {
229
- fontSize: number;
230
- paddingTop: number;
231
- paddingLeft: number;
232
- };
233
- 'error-top': {
234
- position: string;
235
- top: number;
236
- left: number;
237
- padding: number[];
238
- zIndex: number;
239
- };
240
- 'error-bottom': {
241
- paddingTop: number;
242
- paddingLeft: number;
243
- };
244
- loading: {};
245
- tweakPreloader: {};
4
+ root: {
5
+ width: string;
6
+ boxSizing: string;
7
+ position: string;
8
+ };
9
+ inputWrapper: {
10
+ display: string;
11
+ width: string;
12
+ height: 48;
13
+ boxSizing: string;
14
+ transition: string;
15
+ transitionProperty: string;
16
+ backgroundColor: string;
17
+ position: string;
18
+ };
19
+ inputContent: {
20
+ fontSize: number;
21
+ fontFamily: string;
22
+ padding: number[];
23
+ };
24
+ input: {
25
+ extend: string;
26
+ width: string;
27
+ height: string;
28
+ outline: string;
29
+ boxSizing: string;
30
+ outlineStyle: string;
31
+ transition: string;
32
+ transitionProperty: string;
33
+ border: string;
34
+ background: string;
35
+ '&::placeholder': {
36
+ opacity: number;
37
+ };
38
+ MozAppearance: string;
39
+ '&::-webkit-inner-spin-button,&::-webkit-outer-spin-button': {
40
+ WebkitAppearance: string;
41
+ margin: number;
42
+ };
43
+ };
44
+ autosize: {
45
+ display: string;
46
+ verticalAlign: string;
47
+ alignItems: string;
48
+ justifyContent: string;
49
+ '&::after, input': {
50
+ width: string;
51
+ minWidth: string;
52
+ gridArea: string;
53
+ font: string;
54
+ justifySelf: string;
55
+ };
56
+ '&::after': {
57
+ maxWidth: number;
58
+ content: string;
59
+ visibility: string;
60
+ whiteSpace: string;
61
+ };
62
+ };
63
+ focused: {
64
+ position: string;
65
+ zIndex: number;
66
+ };
67
+ unitsWrapper: {
68
+ extend: string;
69
+ position: string;
70
+ left: number;
71
+ height: string;
72
+ boxSizing: string;
73
+ display: string;
74
+ alignItems: string;
75
+ pointerEvents: string;
76
+ };
77
+ fakeValue: {
78
+ visibility: string;
79
+ };
80
+ units: {
81
+ paddingLeft: number;
82
+ };
83
+ withFloatingLabel: {
84
+ paddingTop: number;
85
+ };
86
+ floatingLabelWithoutPadding: {
87
+ paddingTop: number;
88
+ paddingLeft: number;
89
+ };
90
+ floating: {};
91
+ activeLabel: {
92
+ display: string;
93
+ '&$floating': {
94
+ display: string;
95
+ transform: string;
96
+ };
97
+ };
98
+ required: {
99
+ '&:before': {
100
+ content: string;
101
+ position: string;
102
+ left: number;
103
+ top: string;
104
+ transform: string;
105
+ width: number;
106
+ height: number;
107
+ borderRadius: string;
108
+ };
109
+ };
110
+ label: {
111
+ position: string;
112
+ pointerEvents: string;
113
+ left: number;
114
+ top: string;
115
+ transformOrigin: string;
116
+ transform: string;
117
+ transition: string;
118
+ transitionProperty: string;
119
+ fontSize: number;
120
+ };
121
+ floatingWithoutPadding: {
122
+ left: number;
123
+ };
124
+ requiredLabel: {
125
+ '&:after': {
126
+ content: string;
127
+ position: string;
128
+ right: number;
129
+ top: number;
130
+ transform: string;
131
+ width: number;
132
+ height: number;
133
+ borderRadius: string;
134
+ };
135
+ };
136
+ activeIcon: {
137
+ cursor: string;
138
+ };
139
+ 'border-top': {
140
+ borderRadius: number;
141
+ borderWidth: number[];
142
+ };
143
+ 'border-bottom': {
144
+ borderRadius: number;
145
+ borderWidth: number[];
146
+ };
147
+ 'border-left': {
148
+ borderRadius: number;
149
+ borderWidth: number[];
150
+ };
151
+ 'border-right': {
152
+ borderRadius: number;
153
+ borderWidth: number[];
154
+ };
155
+ top: {
156
+ borderBottomLeftRadius: number;
157
+ borderBottomRightRadius: number;
158
+ };
159
+ bottom: {
160
+ borderTopLeftRadius: number;
161
+ borderTopRightRadius: number;
162
+ };
163
+ 'top-left': {
164
+ borderTopRightRadius: number;
165
+ borderBottomLeftRadius: number;
166
+ borderBottomRightRadius: number;
167
+ };
168
+ 'top-right': {
169
+ borderTopLeftRadius: number;
170
+ borderBottomLeftRadius: number;
171
+ borderBottomRightRadius: number;
172
+ };
173
+ 'bottom-left': {
174
+ borderTopLeftRadius: number;
175
+ borderTopRightRadius: number;
176
+ borderBottomRightRadius: number;
177
+ };
178
+ 'bottom-right': {
179
+ borderTopLeftRadius: number;
180
+ borderTopRightRadius: number;
181
+ borderBottomLeftRadius: number;
182
+ };
183
+ left: {
184
+ borderTopRightRadius: number;
185
+ borderBottomRightRadius: number;
186
+ };
187
+ right: {
188
+ borderTopLeftRadius: number;
189
+ borderBottomLeftRadius: number;
190
+ };
191
+ middle: {
192
+ borderRadius: number;
193
+ };
194
+ controls: {
195
+ display: string;
196
+ gridArea: string;
197
+ };
198
+ icon: {
199
+ display: string;
200
+ alignItems: string;
201
+ padding: number[];
202
+ width: number;
203
+ transition: string;
204
+ boxSizing: string;
205
+ '&:last-child': {
206
+ paddingRight: number;
207
+ };
208
+ '& + $units': {
209
+ marginLeft: number;
210
+ };
211
+ };
212
+ clearIcon: {
213
+ extend: string;
214
+ };
215
+ inputIcon: {
216
+ extend: string;
217
+ };
218
+ withIcons: {
219
+ paddingRight: number;
220
+ };
221
+ withControls: {};
222
+ invalid: {};
223
+ disabled: {};
224
+ invalidLabel: {};
225
+ error: {
226
+ fontSize: number;
227
+ };
228
+ info: {
229
+ fontSize: number;
230
+ paddingTop: number;
231
+ paddingLeft: number;
232
+ };
233
+ 'error-top': {
234
+ position: string;
235
+ top: number;
236
+ left: number;
237
+ padding: number[];
238
+ zIndex: number;
239
+ };
240
+ 'error-bottom': {
241
+ paddingTop: number;
242
+ paddingLeft: number;
243
+ };
244
+ loading: {};
245
+ tweakPreloader: {};
246
246
  };
247
247
  export declare type InputStyles = ComponentStyles<typeof styles>;
@@ -3,19 +3,19 @@ import { ICommonProps } from '../../types';
3
3
  import { IIconType } from '../Icon';
4
4
  import { ListStyles } from './List.styles';
5
5
  export interface IListItem {
6
- item: ReactNode;
7
- icon?: IIconType | ReactElement;
8
- disabled?: boolean;
9
- shouldDrawSpacerAbove?: boolean;
10
- shouldDrawSpacerBelow?: boolean;
11
- withIconGap?: boolean;
12
- testId?: string;
13
- onClick(): void;
6
+ item: ReactNode;
7
+ icon?: IIconType | ReactElement;
8
+ disabled?: boolean;
9
+ shouldDrawSpacerAbove?: boolean;
10
+ shouldDrawSpacerBelow?: boolean;
11
+ withIconGap?: boolean;
12
+ testId?: string;
13
+ onClick(): void;
14
14
  }
15
15
  export interface IListProps extends ICommonProps {
16
- tweakStyles?: ListStyles;
17
- items: IListItem[];
18
- testId?: string;
19
- onClick?(): void;
16
+ tweakStyles?: ListStyles;
17
+ items: IListItem[];
18
+ testId?: string;
19
+ onClick?(): void;
20
20
  }
21
21
  export declare const List: FC<IListProps>;
@@ -1,39 +1,39 @@
1
1
  import { ComponentStyles } from '../../types';
2
2
  export declare const styles: {
3
- root: {
4
- minWidth: number;
5
- backgroundColor: '#ffffff';
6
- padding: number[];
7
- listStyle: string;
8
- margin: number;
9
- };
10
- item: {
11
- display: string;
12
- alignItems: string;
13
- boxSizing: string;
14
- fontSize: number;
15
- whiteSpace: string;
16
- minHeight: number;
17
- padding: number[];
18
- transition: string;
19
- cursor: string;
20
- };
21
- disabledItem: {
22
- cursor: string;
23
- };
24
- spacer: {
25
- height: number;
26
- backgroundColor: '#dde3ed';
27
- };
28
- withIconGap: {
29
- paddingLeft: number;
30
- };
31
- icon: {
32
- width: number;
33
- height: number;
34
- marginRight: number;
35
- flexShrink: number;
36
- };
37
- content: {};
3
+ root: {
4
+ minWidth: number;
5
+ backgroundColor: "#ffffff";
6
+ padding: number[];
7
+ listStyle: string;
8
+ margin: number;
9
+ };
10
+ item: {
11
+ display: string;
12
+ alignItems: string;
13
+ boxSizing: string;
14
+ fontSize: number;
15
+ whiteSpace: string;
16
+ minHeight: number;
17
+ padding: number[];
18
+ transition: string;
19
+ cursor: string;
20
+ };
21
+ disabledItem: {
22
+ cursor: string;
23
+ };
24
+ spacer: {
25
+ height: number;
26
+ backgroundColor: "#dde3ed";
27
+ };
28
+ withIconGap: {
29
+ paddingLeft: number;
30
+ };
31
+ icon: {
32
+ width: number;
33
+ height: number;
34
+ marginRight: number;
35
+ flexShrink: number;
36
+ };
37
+ content: {};
38
38
  };
39
39
  export declare type ListStyles = ComponentStyles<typeof styles>;
@@ -3,24 +3,24 @@ import { ICommonProps } from '../../types';
3
3
  import { ModalStyles } from './Modal.styles';
4
4
  export declare type IModalPosition = 'center' | 'left' | 'right' | 'static';
5
5
  export interface IModalProps extends ICommonProps {
6
- tweakStyles?: ModalStyles;
7
- title?: ReactNode;
8
- size?: 'l' | 'm' | 's';
9
- isFooterSticky?: boolean;
10
- buttons?: ReactNode[];
11
- buttonsAlign?: 'left' | 'center' | 'right';
12
- children?: ReactNode | ReactNode[];
13
- position?: IModalPosition;
14
- hasCloseButton?: boolean;
15
- hasOverlay?: boolean;
16
- shouldCloseOnOverlayClick?: boolean;
17
- shouldCloseOnEsc?: boolean;
18
- shouldBlockScroll?: boolean;
19
- isOpen?: boolean;
20
- zIndex?: number;
21
- testId?: string;
22
- onEnter?(): void;
23
- onClose?(): void;
24
- onCompletelyHidden?(): void;
6
+ tweakStyles?: ModalStyles;
7
+ title?: ReactNode;
8
+ size?: 'l' | 'm' | 's';
9
+ isFooterSticky?: boolean;
10
+ buttons?: ReactNode[];
11
+ buttonsAlign?: 'left' | 'center' | 'right';
12
+ children?: ReactNode | ReactNode[];
13
+ position?: IModalPosition;
14
+ hasCloseButton?: boolean;
15
+ hasOverlay?: boolean;
16
+ shouldCloseOnOverlayClick?: boolean;
17
+ shouldCloseOnEsc?: boolean;
18
+ shouldBlockScroll?: boolean;
19
+ isOpen?: boolean;
20
+ zIndex?: number;
21
+ testId?: string;
22
+ onEnter?(): void;
23
+ onClose?(): void;
24
+ onCompletelyHidden?(): void;
25
25
  }
26
26
  export declare const Modal: FC<IModalProps>;