@itcase/ui 1.0.80 → 1.0.81

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 (47) hide show
  1. package/dist/components/Accordion.js +2 -4
  2. package/dist/components/Avatar.js +4 -3
  3. package/dist/components/Badge.js +2 -2
  4. package/dist/components/Breadcrumbs.js +45 -51
  5. package/dist/components/Button.js +10 -35
  6. package/dist/components/Cell.js +73 -71
  7. package/dist/components/Choice.js +1 -1
  8. package/dist/components/DatePicker.js +82 -15
  9. package/dist/components/Icon.js +8 -8
  10. package/dist/components/Label.js +1 -1
  11. package/dist/components/MenuItem.js +2 -2
  12. package/dist/components/Modal.js +17 -15
  13. package/dist/components/Pagination.js +64 -2
  14. package/dist/components/Search.js +9 -39
  15. package/dist/components/Segmented.js +18 -4
  16. package/dist/components/Swiper.js +2 -2
  17. package/dist/components/Tab.js +9 -9
  18. package/dist/components/Text.js +1 -1
  19. package/dist/components/Tile.js +1 -1
  20. package/dist/components/Title.js +1 -1
  21. package/dist/constants/componentProps/strokeColor.js +1 -1
  22. package/dist/constants/componentProps/textColor.js +1 -1
  23. package/dist/constants/componentProps/textColorActive.js +1 -1
  24. package/dist/constants/componentProps/textColorHover.js +1 -1
  25. package/dist/css/components/Avatar/Avatar.css +6 -3
  26. package/dist/css/components/Choice/Choice.css +3 -3
  27. package/dist/css/components/Choice/css/__item/choice__item.css +1 -2
  28. package/dist/css/components/DadataHintField/DadataHintField.css +1 -0
  29. package/dist/css/components/DatePicker/DatePicker.css +27 -0
  30. package/dist/css/components/Dropdown/Dropdown.css +9 -0
  31. package/dist/css/components/MenuItem/MenuItem.css +11 -1
  32. package/dist/css/components/Notification/Notification.css +36 -23
  33. package/dist/css/components/Notification/css/__item/notification__item_set_float.css +2 -9
  34. package/dist/css/components/Notification/css/__item/notification__item_set_form.css +2 -3
  35. package/dist/css/components/Notification/css/__item/notification__item_set_toast.css +19 -0
  36. package/dist/css/components/Notification/css/__item/notification__item_set_top.css +0 -1
  37. package/dist/css/components/Notification/css/__item/notification__item_status.css +3 -3
  38. package/dist/css/components/Notification/css/__item/notification__item_type_close-button.css +10 -7
  39. package/dist/css/components/Search/Search.css +7 -7
  40. package/dist/css/components/Search/css/search-input/search-input.css +7 -7
  41. package/dist/css/components/Select/Select.css +7 -4
  42. package/dist/css/components/Select/css/__control/select__control_shape.css +1 -1
  43. package/dist/css/components/Select/css/__multi-value/select__multi-value.css +5 -2
  44. package/dist/css/components/Swiper/Swiper.css +2 -2
  45. package/dist/css/components/Tab/Tab.css +0 -10
  46. package/dist/css/components/Textarea/Textarea.css +1 -1
  47. package/package.json +15 -15
@@ -165,6 +165,8 @@ const Modal = /*#__PURE__*/React__default.default.forwardRef(function Modal(prop
165
165
  prefix: 'fill_',
166
166
  propsKey: 'fill'
167
167
  });
168
+
169
+ // Collect classes and styles
168
170
  const shapeClass = useDeviceTargetClass.useDeviceTargetClass(props, {
169
171
  prefix: 'modal-shape_',
170
172
  propsKey: 'shape'
@@ -196,21 +198,21 @@ const Modal = /*#__PURE__*/React__default.default.forwardRef(function Modal(prop
196
198
  className: clsx__default.default('modal-content', contentClassName, fillClass, shapeClass, borderColorClass, borderWidthClass, borderTypeClass, elevationClass),
197
199
  id: id,
198
200
  ref: modalContentRef,
201
+ style: modalStyles,
199
202
  tabIndex: 0,
200
- onBlur: debug ? undefined : closeModal,
201
- style: modalStyles
203
+ onBlur: debug ? undefined : closeModal
202
204
  }, closeButton && /*#__PURE__*/React__default.default.createElement("div", {
203
205
  className: "modal-content__close",
204
206
  onClick: closeModal
205
207
  }, closeButton), /*#__PURE__*/React__default.default.createElement("div", {
206
208
  className: "modal-content__wrapper"
207
209
  }, children)), /*#__PURE__*/React__default.default.createElement(index.Fader, {
208
- ref: modalFaderRef,
210
+ className: clsx__default.default('modal__fader', 'fader_type_modal', faderClassName),
209
211
  fill: faderFill,
210
212
  fillGradient: faderFillGradient,
213
+ isFader: isFader,
211
214
  opacity: faderOpacity,
212
- className: clsx__default.default('modal__fader', 'fader_type_modal', faderClassName),
213
- isFader: isFader
215
+ ref: modalFaderRef
214
216
  })) : null,
215
217
  // A DOM element
216
218
  modalElement);
@@ -220,16 +222,16 @@ Modal.propTypes = {
220
222
  className: PropTypes__default.default.string,
221
223
  closeIcon: PropTypes__default.default.string,
222
224
  closeText: PropTypes__default.default.string,
225
+ contentClassName: PropTypes__default.default.string,
226
+ debug: PropTypes__default.default.bool,
223
227
  faderFill: PropTypes__default.default.string,
224
228
  faderFillGradient: PropTypes__default.default.string,
225
229
  faderOpacity: PropTypes__default.default.string,
226
- contentClassName: PropTypes__default.default.string,
227
230
  id: PropTypes__default.default.string,
228
231
  isFader: PropTypes__default.default.bool,
229
232
  isScrollOnOpen: PropTypes__default.default.bool,
230
233
  isSetFocusOnOpen: PropTypes__default.default.bool,
231
234
  modalQuerySelector: PropTypes__default.default.string,
232
- debug: PropTypes__default.default.bool,
233
235
  onCloseModal: PropTypes__default.default.func,
234
236
  onOpenModal: PropTypes__default.default.func
235
237
  };
@@ -324,45 +326,45 @@ Modal.__docgenInfo = {
324
326
  },
325
327
  "required": false
326
328
  },
327
- "faderFill": {
329
+ "contentClassName": {
328
330
  "description": "",
329
331
  "type": {
330
332
  "name": "string"
331
333
  },
332
334
  "required": false
333
335
  },
334
- "faderFillGradient": {
336
+ "debug": {
335
337
  "description": "",
336
338
  "type": {
337
- "name": "string"
339
+ "name": "bool"
338
340
  },
339
341
  "required": false
340
342
  },
341
- "faderOpacity": {
343
+ "faderFill": {
342
344
  "description": "",
343
345
  "type": {
344
346
  "name": "string"
345
347
  },
346
348
  "required": false
347
349
  },
348
- "contentClassName": {
350
+ "faderFillGradient": {
349
351
  "description": "",
350
352
  "type": {
351
353
  "name": "string"
352
354
  },
353
355
  "required": false
354
356
  },
355
- "id": {
357
+ "faderOpacity": {
356
358
  "description": "",
357
359
  "type": {
358
360
  "name": "string"
359
361
  },
360
362
  "required": false
361
363
  },
362
- "debug": {
364
+ "id": {
363
365
  "description": "",
364
366
  "type": {
365
- "name": "bool"
367
+ "name": "string"
366
368
  },
367
369
  "required": false
368
370
  },
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var React = require('react');
4
- require('prop-types');
4
+ var PropTypes = require('prop-types');
5
5
  var clsx = require('clsx');
6
6
  var ceil = require('lodash/ceil');
7
7
  var ReactPaginate = require('react-paginate');
@@ -15,6 +15,7 @@ require('react-responsive');
15
15
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
16
16
 
17
17
  var React__default = /*#__PURE__*/_interopDefault(React);
18
+ var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
18
19
  var clsx__default = /*#__PURE__*/_interopDefault(clsx);
19
20
  var ceil__default = /*#__PURE__*/_interopDefault(ceil);
20
21
  var ReactPaginate__default = /*#__PURE__*/_interopDefault(ReactPaginate);
@@ -93,7 +94,32 @@ function Pagination(props) {
93
94
  onPageChange: onPageChange
94
95
  });
95
96
  }
96
- Pagination.propTypes = {};
97
+ Pagination.propTypes = {
98
+ /**
99
+ *Количество всех элементов
100
+ */
101
+ allItemsCount: PropTypes__default.default.number,
102
+ /**
103
+ * Количество страниц, отображаемых после троеточия
104
+ */
105
+ marginPagesDisplayed: PropTypes__default.default.number,
106
+ /**
107
+ *Кнопка навигации вперед
108
+ */
109
+ nextLabel: PropTypes__default.default.element,
110
+ /**
111
+ * Количество страниц, отображаемых до троеточия
112
+ */
113
+ pageRangeDisplayed: PropTypes__default.default.number,
114
+ /**
115
+ * Количество элементов, отображаемых на станице
116
+ */
117
+ perPageCount: PropTypes__default.default.number,
118
+ /**
119
+ * Кнопка навигации назад
120
+ */
121
+ previousLabel: PropTypes__default.default.element
122
+ };
97
123
  Pagination.defaultProps = {
98
124
  pageNumber: 0,
99
125
  perPageCount: 0,
@@ -116,6 +142,10 @@ Pagination.__docgenInfo = {
116
142
  "value": "0",
117
143
  "computed": false
118
144
  },
145
+ "description": "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432, \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0430\u0435\u043C\u044B\u0445 \u043D\u0430 \u0441\u0442\u0430\u043D\u0438\u0446\u0435",
146
+ "type": {
147
+ "name": "number"
148
+ },
119
149
  "required": false
120
150
  },
121
151
  "allItemsCount": {
@@ -123,6 +153,38 @@ Pagination.__docgenInfo = {
123
153
  "value": "0",
124
154
  "computed": false
125
155
  },
156
+ "description": "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0441\u0435\u0445 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432",
157
+ "type": {
158
+ "name": "number"
159
+ },
160
+ "required": false
161
+ },
162
+ "marginPagesDisplayed": {
163
+ "description": "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0441\u0442\u0440\u0430\u043D\u0438\u0446, \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0430\u0435\u043C\u044B\u0445 \u043F\u043E\u0441\u043B\u0435 \u0442\u0440\u043E\u0435\u0442\u043E\u0447\u0438\u044F",
164
+ "type": {
165
+ "name": "number"
166
+ },
167
+ "required": false
168
+ },
169
+ "nextLabel": {
170
+ "description": "\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438 \u0432\u043F\u0435\u0440\u0435\u0434",
171
+ "type": {
172
+ "name": "element"
173
+ },
174
+ "required": false
175
+ },
176
+ "pageRangeDisplayed": {
177
+ "description": "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0441\u0442\u0440\u0430\u043D\u0438\u0446, \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0430\u0435\u043C\u044B\u0445 \u0434\u043E \u0442\u0440\u043E\u0435\u0442\u043E\u0447\u0438\u044F",
178
+ "type": {
179
+ "name": "number"
180
+ },
181
+ "required": false
182
+ },
183
+ "previousLabel": {
184
+ "description": "\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438 \u043D\u0430\u0437\u0430\u0434",
185
+ "type": {
186
+ "name": "element"
187
+ },
126
188
  "required": false
127
189
  }
128
190
  }
@@ -49,20 +49,19 @@ const SearchInput = /*#__PURE__*/React__default.default.forwardRef(function Sear
49
49
  size,
50
50
  dataTour,
51
51
  iconAfter,
52
- iconAfterBgFill,
52
+ iconAfterSrc,
53
53
  iconAfterFill,
54
54
  iconAfterSize,
55
55
  iconAfterStroke,
56
56
  iconBefore,
57
- iconBeforeBgFill,
57
+ iconBeforeSrc,
58
58
  iconBeforeFill,
59
59
  iconBeforeSize,
60
60
  iconBeforeStroke,
61
61
  iconClear,
62
- iconClearBgFill,
62
+ iconClearSrc,
63
63
  iconClearFill,
64
64
  iconClearSize,
65
- iconClearStroke,
66
65
  placeholder,
67
66
  type,
68
67
  value,
@@ -166,9 +165,10 @@ const SearchInput = /*#__PURE__*/React__default.default.forwardRef(function Sear
166
165
  className: clsx__default.default(className, 'search-input', shapeClass, fillClass, widthClass, borderColorClass, borderColorHoverClass, borderWidthClass, borderTypeClass, size && `search-input_size_${size}`, type && `search-input_type_${type}`),
167
166
  "data-tour": dataTour,
168
167
  style: searchInputStyles
169
- }, before, iconBefore && /*#__PURE__*/React__default.default.createElement(index.Icon, {
168
+ }, before, (iconBefore || iconBeforeSrc) && /*#__PURE__*/React__default.default.createElement(index.Icon, {
170
169
  className: "search-input__icon search-input__icon-before",
171
170
  SvgImage: iconBefore,
171
+ imageSrc: iconBeforeSrc,
172
172
  size: iconBeforeSize,
173
173
  iconFill: iconBeforeFill,
174
174
  iconStroke: iconBeforeStroke
@@ -191,15 +191,17 @@ const SearchInput = /*#__PURE__*/React__default.default.forwardRef(function Sear
191
191
  textWeight: placeholderWeightClass,
192
192
  textStyle: placeholderStyleClass,
193
193
  textColor: placeholderColorClass
194
- }, placeholder || 'Search')), value && /*#__PURE__*/React__default.default.createElement(index.Icon, {
194
+ }, placeholder || 'Search')), (iconClear || iconClearSrc) && /*#__PURE__*/React__default.default.createElement(index.Icon, {
195
195
  className: "search-input__clear",
196
196
  SvgImage: iconClear,
197
+ imageSrc: iconClearSrc,
197
198
  size: iconClearSize,
198
199
  iconFill: iconClearFill,
199
200
  onClick: onClickClearIcon
200
- })), iconAfter && /*#__PURE__*/React__default.default.createElement(index.Icon, {
201
+ })), (iconAfter || iconAfterSrc) && /*#__PURE__*/React__default.default.createElement(index.Icon, {
201
202
  className: "search-input__icon search-input__icon-after",
202
203
  SvgImage: iconAfter,
204
+ imageSrc: iconAfterSrc,
203
205
  size: iconAfterSize,
204
206
  iconFill: iconAfterFill,
205
207
  iconStroke: iconAfterStroke
@@ -221,20 +223,16 @@ SearchInput.propTypes = {
221
223
  fillMobile: PropTypes__default.default.oneOf(fill.default),
222
224
  fillTablet: PropTypes__default.default.oneOf(fill.default),
223
225
  iconAfter: PropTypes__default.default.any,
224
- iconAfterBgFill: PropTypes__default.default.any,
225
226
  iconAfterFill: PropTypes__default.default.any,
226
227
  iconAfterSize: PropTypes__default.default.any,
227
228
  iconAfterStroke: PropTypes__default.default.any,
228
229
  iconBefore: PropTypes__default.default.any,
229
- iconBeforeBgFill: PropTypes__default.default.any,
230
230
  iconBeforeFill: PropTypes__default.default.any,
231
231
  iconBeforeSize: PropTypes__default.default.any,
232
232
  iconBeforeStroke: PropTypes__default.default.any,
233
233
  iconClear: PropTypes__default.default.any,
234
- iconClearBgFill: PropTypes__default.default.any,
235
234
  iconClearFill: PropTypes__default.default.any,
236
235
  iconClearSize: PropTypes__default.default.any,
237
- iconClearStroke: PropTypes__default.default.any,
238
236
  inputTextSize: PropTypes__default.default.string,
239
237
  placeholder: PropTypes__default.default.string,
240
238
  placeholderTextColor: PropTypes__default.default.string,
@@ -343,13 +341,6 @@ SearchInput.__docgenInfo = {
343
341
  },
344
342
  "required": false
345
343
  },
346
- "iconAfterBgFill": {
347
- "description": "",
348
- "type": {
349
- "name": "any"
350
- },
351
- "required": false
352
- },
353
344
  "iconAfterFill": {
354
345
  "description": "",
355
346
  "type": {
@@ -378,13 +369,6 @@ SearchInput.__docgenInfo = {
378
369
  },
379
370
  "required": false
380
371
  },
381
- "iconBeforeBgFill": {
382
- "description": "",
383
- "type": {
384
- "name": "any"
385
- },
386
- "required": false
387
- },
388
372
  "iconBeforeFill": {
389
373
  "description": "",
390
374
  "type": {
@@ -413,13 +397,6 @@ SearchInput.__docgenInfo = {
413
397
  },
414
398
  "required": false
415
399
  },
416
- "iconClearBgFill": {
417
- "description": "",
418
- "type": {
419
- "name": "any"
420
- },
421
- "required": false
422
- },
423
400
  "iconClearFill": {
424
401
  "description": "",
425
402
  "type": {
@@ -434,13 +411,6 @@ SearchInput.__docgenInfo = {
434
411
  },
435
412
  "required": false
436
413
  },
437
- "iconClearStroke": {
438
- "description": "",
439
- "type": {
440
- "name": "any"
441
- },
442
- "required": false
443
- },
444
414
  "placeholder": {
445
415
  "description": "",
446
416
  "type": {
@@ -4,6 +4,7 @@ var React = require('react');
4
4
  var PropTypes = require('prop-types');
5
5
  var clsx = require('clsx');
6
6
  var index = require('./Text.js');
7
+ var fill = require('../constants/componentProps/fill.js');
7
8
  var useDeviceTargetClass = require('../hooks/useDeviceTargetClass.js');
8
9
  require('../constants/componentProps/textColor.js');
9
10
  require('../constants/componentProps/textColorActive.js');
@@ -88,12 +89,12 @@ const Segmented = /*#__PURE__*/React__default.default.forwardRef((props, ref) =>
88
89
  propsKey: 'fillHover'
89
90
  });
90
91
  return /*#__PURE__*/React__default.default.createElement("div", {
91
- className: clsx__default.default(className, 'segmented', shapeClass, fillClass, widthClass, size && `segmented_size_${size}`, type && `segmented_type_${type}`),
92
+ className: clsx__default.default(className, 'segmented', shapeClass, fillClass, widthClass, size && `segmented_size_${size}`, type && `segmented_type_${type}`, borderColorClass, borderWidthClass, borderTypeClass),
92
93
  ref: controlRef
93
94
  }, /*#__PURE__*/React__default.default.createElement("div", {
94
95
  className: "segmented__wrapper"
95
96
  }, /*#__PURE__*/React__default.default.createElement("div", {
96
- className: clsx__default.default('segmented__wrapper-inner', borderColorClass, borderWidthClass, borderTypeClass)
97
+ className: clsx__default.default('segmented__wrapper-inner')
97
98
  }, segments?.map((item, i) => /*#__PURE__*/React__default.default.createElement("div", {
98
99
  className: clsx__default.default('segmented__item', fillHoverClass, item.value === activeSegment.value && 'segmented__item_active'),
99
100
  key: item.value,
@@ -111,8 +112,8 @@ const Segmented = /*#__PURE__*/React__default.default.forwardRef((props, ref) =>
111
112
  htmlFor: item.label
112
113
  }, /*#__PURE__*/React__default.default.createElement(index.Text, {
113
114
  className: "segmented__item-label-text",
114
- textColor: item.value === activeSegment.value ? labelTextActiveColor : labelTextColor,
115
- size: labelTextSize
115
+ size: labelTextSize,
116
+ textColor: item.value === activeSegment.value ? labelTextActiveColor : labelTextColor
116
117
  }, item.label)))), /*#__PURE__*/React__default.default.createElement("div", {
117
118
  className: clsx__default.default('segmented__indicator', indicatorFillClass)
118
119
  }, "\xA0"))));
@@ -122,6 +123,10 @@ Segmented.propTypes = {
122
123
  activeSegment: PropTypes__default.default.object,
123
124
  className: PropTypes__default.default.string,
124
125
  fill: PropTypes__default.default.string,
126
+ /**
127
+ * цвет бэкграунда выбранного элемента
128
+ */
129
+ indicatorFill: PropTypes__default.default.oneOf(fill.default),
125
130
  name: PropTypes__default.default.string,
126
131
  segments: PropTypes__default.default.array,
127
132
  setActiveSegment: PropTypes__default.default.func,
@@ -160,6 +165,15 @@ Segmented.__docgenInfo = {
160
165
  },
161
166
  "required": false
162
167
  },
168
+ "indicatorFill": {
169
+ "description": "\u0446\u0432\u0435\u0442 \u0431\u044D\u043A\u0433\u0440\u0430\u0443\u043D\u0434\u0430 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",
170
+ "type": {
171
+ "name": "enum",
172
+ "computed": true,
173
+ "value": "fillProps"
174
+ },
175
+ "required": false
176
+ },
163
177
  "name": {
164
178
  "description": "",
165
179
  "type": {
@@ -4664,7 +4664,7 @@ const updateOnVirtualData = swiper => {
4664
4664
  };
4665
4665
 
4666
4666
  /**
4667
- * Swiper React 11.0.3
4667
+ * Swiper React 11.0.4
4668
4668
  * Most modern mobile touch slider and framework with hardware accelerated transitions
4669
4669
  * https://swiperjs.com
4670
4670
  *
@@ -4672,7 +4672,7 @@ const updateOnVirtualData = swiper => {
4672
4672
  *
4673
4673
  * Released under the MIT License
4674
4674
  *
4675
- * Released on: October 26, 2023
4675
+ * Released on: November 9, 2023
4676
4676
  */
4677
4677
 
4678
4678
 
@@ -139,7 +139,7 @@ function Tab(props) {
139
139
  styles: tab
140
140
  } = useStyles.useStyles(props);
141
141
  return /*#__PURE__*/React__default.default.createElement("div", {
142
- className: clsx__default.default('tab', isActive && 'tab_state_active', isHover && 'tab_state_hover', appearance && tabConfig.appearance[appearance] && `fill_${tabConfig.appearance[appearance].fillClass}`.replace(/([A-Z])/g, '-$1').toLowerCase(), appearance && tabConfig.appearance[appearance] && `fill_hover_${tabConfig.appearance[appearance].fillHoverClass}`.replace(/([A-Z])/g, '-$1').toLowerCase(), className, sizeClass, fillClass, fillHoverClass, fillActiveClass, fillActiveHoverClass, fillDisabledClass, shapeClass, typeClass, widthClass, set && `tab_set_${set}`, justifyContentClass),
142
+ className: clsx__default.default('tab', isActive && 'tab_state_active', isHover && 'tab_state_hover', fillClass || tabConfig.appearance[appearance] && `fill_${tabConfig.appearance[appearance].fillClass}`.replace(/([A-Z])/g, '-$1').toLowerCase(), fillHoverClass || tabConfig.appearance[appearance] && `fill_hover_${tabConfig.appearance[appearance].fillHoverClass}`.replace(/([A-Z])/g, '-$1').toLowerCase(), className, sizeClass, fillActiveClass, fillActiveHoverClass, fillDisabledClass, shapeClass, typeClass, widthClass, set && `tab_set_${set}`, justifyContentClass),
143
143
  style: tab,
144
144
  onClick: onClick,
145
145
  onMouseEnter: onMouseEnter,
@@ -154,29 +154,29 @@ function Tab(props) {
154
154
  className: "tab__wrapper"
155
155
  }, label && /*#__PURE__*/React__default.default.createElement(index$1.Text, {
156
156
  className: "tab__label",
157
- textColorActive: isActive && labelColorActive || appearance && tabConfig.appearance[appearance].labelColorActive.replace(/([A-Z])/g, '-$1').toLowerCase(),
157
+ textColorActive: isActive && (labelColorActive || tabConfig.appearance[appearance] && tabConfig.appearance[appearance].labelColorActive.replace(/([A-Z])/g, '-$1').toLowerCase()),
158
158
  textColorGradient: labelTextGradient,
159
159
  size: labelTextSize,
160
160
  textWeight: labelTextWeight,
161
- textColor: labelColor || appearance && tabConfig.appearance[appearance].labelColor.replace(/([A-Z])/g, '-$1').toLowerCase(),
161
+ textColor: labelColor || tabConfig.appearance[appearance] && tabConfig.appearance[appearance].labelColor.replace(/([A-Z])/g, '-$1').toLowerCase(),
162
162
  textWrap: labelTextWrap,
163
163
  textColorHover: labelTextColorHover,
164
164
  textStyle: labelTextStyle
165
165
  }, dividerFillActive, " ", label), badgeValue && /*#__PURE__*/React__default.default.createElement(index$2.Badge, {
166
- size: badgeSize,
167
166
  fill: badgeFill,
167
+ size: badgeSize,
168
168
  textColor: badgeTextColor,
169
169
  textSize: badgeTextSize,
170
170
  value: badgeValue
171
171
  })), /*#__PURE__*/React__default.default.createElement(index$3.Divider, {
172
- width: "fill",
173
- fill: dividerFill || appearance && tabConfig.appearance[appearance].dividerFill.replace(/([A-Z])/g, '-$1').toLowerCase(),
174
- fillHover: isHover && (dividerFillHover || appearance && tabConfig.appearance[appearance].dividerFillHover.replace(/([A-Z])/g, '-$1').toLowerCase()),
175
- fillActive: isActive && (dividerFillActive || appearance && tabConfig.appearance[appearance].dividerFillActive.replace(/([A-Z])/g, '-$1').toLowerCase()),
172
+ direction: dividerDirection,
173
+ fill: dividerFill || tabConfig.appearance[appearance] && tabConfig.appearance[appearance].dividerFill.replace(/([A-Z])/g, '-$1').toLowerCase(),
174
+ fillActive: isActive && (dividerFillActive || tabConfig.appearance[appearance] && tabConfig.appearance[appearance].dividerFillActive.replace(/([A-Z])/g, '-$1').toLowerCase()),
176
175
  fillActiveHover: dividerFillActiveHover,
177
176
  fillDisabled: dividerFillDisabled,
177
+ fillHover: isHover && (dividerFillHover || tabConfig.appearance[appearance] && tabConfig.appearance[appearance].dividerFillHover.replace(/([A-Z])/g, '-$1').toLowerCase()),
178
178
  size: dividerSize,
179
- direction: dividerDirection
179
+ width: "fill"
180
180
  })), after)));
181
181
  }
182
182
  Tab.propTypes = {
@@ -60,7 +60,7 @@ function Text(props) {
60
60
  propsKey: 'textColor'
61
61
  });
62
62
  const textColorActiveClass = useDeviceTargetClass.useDeviceTargetClass(props, {
63
- prefix: 'text-color-active_',
63
+ prefix: 'text-color_active_',
64
64
  propsKey: 'textColorActive'
65
65
  });
66
66
  const textColorHoverClass = useDeviceTargetClass.useDeviceTargetClass(props, {
@@ -97,7 +97,7 @@ function Tile(props) {
97
97
  });
98
98
  const borderColorHoverClass = useDeviceTargetClass.useDeviceTargetClass(props, {
99
99
  prefix: 'border-color_hover_',
100
- propsKey: 'borderHover'
100
+ propsKey: 'borderColorHover'
101
101
  });
102
102
  const borderWidthClass = useDeviceTargetClass.useDeviceTargetClass(props, {
103
103
  prefix: 'border-width_',
@@ -57,7 +57,7 @@ function Title(props) {
57
57
  propsKey: 'textColor'
58
58
  });
59
59
  const textColorActiveClass = useDeviceTargetClass.useDeviceTargetClass(props, {
60
- prefix: 'text-color-active_',
60
+ prefix: 'text-color_active_',
61
61
  propsKey: 'textColorActive'
62
62
  });
63
63
  const textColorHoverClass = useDeviceTargetClass.useDeviceTargetClass(props, {
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
2
 
3
- const strokeColorProps = [null, 'accent', 'primary', 'secondary', 'tertiary', 'surface', 'error', 'success'];
3
+ const strokeColorProps = [null, 'surfaceItemPrimary', 'surfaceItemSecondary', 'surfaceItemTertiary', 'surfaceItemAccent', 'surfaceItemDisabled', 'accentItemPrimary', 'accentItemSecondary', 'primaryItemPrimary', 'secondaryItemPrimary', 'errorItemPrimary', 'errorItemSecondary', 'successItemPrimary', 'successItemSecondary'];
4
4
 
5
5
  exports.default = strokeColorProps;
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
2
 
3
- const textColorProps = [null, 'accentTextPrimary', 'accentTextSecondary', 'accentTextTertiary', 'primaryTextPrimary', 'primaryTextSecondary', 'primaryTextTertiary', 'secondaryTextPrimary', 'secondaryTextSecondary', 'secondaryTextTertiary', 'tertiaryTextPrimary', 'tertiaryTextSecondary', 'surfaceTextPrimary', 'surfaceTextSecondary', 'surfaceTextTertiary', 'surfaceTextQuaternary', 'surfaceTextAccent', 'surfaceTextHover', 'surfaceTextFocus', 'surfaceTextActive', 'surfaceTextDisabled', 'errorTextPrimary', 'errorTextSecondary', 'successTextPrimary', 'successTextSecondary'];
3
+ const textColorProps = [null, 'accentTextPrimary', 'accentTextSecondary', 'accentTextTertiary', 'primaryTextPrimary', 'primaryTextSecondary', 'primaryTextTertiary', 'secondaryTextPrimary', 'secondaryTextSecondary', 'secondaryTextTertiary', 'tertiaryTextPrimary', 'tertiaryTextSecondary', 'surfaceTextPrimary', 'surfaceTextAccent', 'surfaceTextSecondary', 'surfaceTextTertiary', 'surfaceTextQuaternary', 'surfaceTextAccent', 'surfaceTextHover', 'surfaceTextFocus', 'surfaceTextActive', 'surfaceTextDisabled', 'errorTextPrimary', 'errorTextSecondary', 'successTextPrimary', 'successTextSecondary'];
4
4
 
5
5
  exports.default = textColorProps;
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
2
 
3
- const textColorActiveProps = [null, false, 'accent', 'primary', 'secondary', 'tertiary', 'surface', 'error', 'success'];
3
+ const textColorActiveProps = [null, false, 'accentTextPrimary', 'accentTextSecondary', 'accentTextTertiary', 'primaryTextPrimary', 'primaryTextSecondary', 'primaryTextTertiary', 'secondaryTextPrimary', 'secondaryTextSecondary', 'secondaryTextTertiary', 'tertiaryTextPrimary', 'tertiaryTextSecondary', 'surfaceTextPrimary', 'surfaceTextSecondary', 'surfaceTextTertiary', 'surfaceTextQuaternary', 'surfaceTextHover', 'surfaceTextFocus', 'surfaceTextActive', 'surfaceTextDisabled', 'errorTextPrimary', 'errorTextSecondary', 'successTextPrimary', 'successTextSecondary'];
4
4
 
5
5
  exports.default = textColorActiveProps;
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
2
 
3
- const textColorHoverProps = [null, 'accent', 'primary', 'secondary', 'tertiary', 'surface', 'error', 'success', 'surfaceTextAccent'];
3
+ const textColorHoverProps = [null, 'accentTextPrimary', 'accentTextSecondary', 'accentTextTertiary', 'primaryTextPrimary', 'primaryTextSecondary', 'primaryTextTertiary', 'secondaryTextPrimary', 'secondaryTextSecondary', 'secondaryTextTertiary', 'tertiaryTextPrimary', 'tertiaryTextSecondary', 'surfaceTextPrimary', 'surfaceTextSecondary', 'surfaceTextTertiary', 'surfaceTextQuaternary', 'surfaceTextHover', 'surfaceTextFocus', 'surfaceTextActive', 'surfaceTextDisabled', 'errorTextPrimary', 'errorTextSecondary', 'successTextPrimary', 'successTextSecondary'];
4
4
 
5
5
  exports.default = textColorHoverProps;
@@ -37,17 +37,20 @@
37
37
  .avatar {
38
38
  &_shape {
39
39
  &_circular {
40
- ^^&__image {
40
+ ^^&__image,
41
+ ^^&__wrapper {
41
42
  border-radius: 50%;
42
43
  }
43
44
  }
44
45
  &_geometric {
45
- ^^&__image {
46
+ ^^&__image,
47
+ ^^&__wrapper {
46
48
  border-radius: 0;
47
49
  }
48
50
  }
49
51
  &_rounded {
50
- ^^&__image {
52
+ ^^&__image,
53
+ ^^&__wrapper {
51
54
  border-radius: 10px;
52
55
  }
53
56
  }
@@ -20,7 +20,7 @@
20
20
  }
21
21
  .choice {
22
22
  &_size {
23
- @each $size in tiny, compact, normal {
23
+ @each $size in xs, s, m, l, xl, xxl, tiny, compact, normal, large {
24
24
  &_$(size) {
25
25
  ^^&__item {
26
26
  &-label {
@@ -33,14 +33,13 @@
33
33
  }
34
34
  .choice__item {
35
35
  min-width: 30px;
36
- border-width: 0;
37
36
  position: relative;
38
37
  display: flex;
39
38
  &:hover {
40
39
  background: var(--choice-item-background-hover);
41
40
  }
42
41
  &:not(:last-child) {
43
- border-right-width: 1px;
42
+ border-right: 1px solid var(--choice-border-color);
44
43
  }
45
44
  &_active {
46
45
  background: var(--choice-item-background-active);
@@ -69,4 +68,5 @@
69
68
  :root {
70
69
  --choice-item-background-hover: var(--color-surface-secondary);
71
70
  --choice-item-background-active: var(--color-surface-active);
71
+ --choice-border-color: var(--color-surface-border-tertiary);
72
72
  }
@@ -1,13 +1,12 @@
1
1
  .choice__item {
2
2
  min-width: 30px;
3
- border-width: 0;
4
3
  position: relative;
5
4
  display: flex;
6
5
  &:hover {
7
6
  background: var(--choice-item-background-hover);
8
7
  }
9
8
  &:not(:last-child) {
10
- border-right-width: 1px;
9
+ border-right: 1px solid var(--choice-border-color);
11
10
  }
12
11
  &_active {
13
12
  background: var(--choice-item-background-active);
@@ -2,6 +2,7 @@
2
2
  &__container {
3
3
  width: 100%;
4
4
  ^&__input {
5
+ height: auto;
5
6
  color: var(--react-dadata-color);
6
7
  padding: var(--react-dadata-padding);
7
8
  border: 1px solid var(--react-dadata-border);