@megafon/ui-core 4.1.0 → 4.3.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.
- package/CHANGELOG.md +28 -0
- package/dist/es/components/Counter/Counter.css +1 -2
- package/dist/es/components/Select/Select.d.ts +2 -0
- package/dist/es/components/Select/Select.js +2 -1
- package/dist/es/components/Tabs/Tabs.d.ts +2 -0
- package/dist/es/components/Tabs/Tabs.js +12 -14
- package/dist/es/components/TextField/TextField.d.ts +1 -0
- package/dist/es/components/TextField/TextField.js +6 -6
- package/dist/lib/components/Counter/Counter.css +1 -2
- package/dist/lib/components/Select/Select.d.ts +2 -0
- package/dist/lib/components/Select/Select.js +2 -1
- package/dist/lib/components/Tabs/Tabs.d.ts +2 -0
- package/dist/lib/components/Tabs/Tabs.js +12 -14
- package/dist/lib/components/TextField/TextField.d.ts +1 -0
- package/dist/lib/components/TextField/TextField.js +6 -6
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,34 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [4.3.0](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-core@4.2.0...@megafon/ui-core@4.3.0) (2022-10-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **tabs:** update prop classes with new keys wrapper and swiperWrapper ([1832aac](https://github.com/MegafonWebLab/megafon-ui/commit/1832aac3a0cdba03c9e74fd4e570be72c4156387))
|
|
12
|
+
* **textfield:** update pros classes with new key label ([db2a10d](https://github.com/MegafonWebLab/megafon-ui/commit/db2a10dd23e0ac6634510207202ba86886ae6d61))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# [4.2.0](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-core@4.1.0...@megafon/ui-core@4.2.0) (2022-10-04)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* **counter:** fixes background color that falls outside the element ([7359504](https://github.com/MegafonWebLab/megafon-ui/commit/73595047533cd7bddf75220624e7afcebb2fc94f))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
|
|
28
|
+
* **select:** add class to list-inner element ([3e16e59](https://github.com/MegafonWebLab/megafon-ui/commit/3e16e590687043b8582f33271d2b7dcc7cd7a2c3))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
6
34
|
# [4.1.0](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-core@4.0.2...@megafon/ui-core@4.1.0) (2022-09-16)
|
|
7
35
|
|
|
8
36
|
|
|
@@ -16,7 +16,6 @@ h5 {
|
|
|
16
16
|
box-sizing: border-box;
|
|
17
17
|
width: 120px;
|
|
18
18
|
height: 32px;
|
|
19
|
-
background-color: var(--base);
|
|
20
19
|
}
|
|
21
20
|
.mfui-counter__btn {
|
|
22
21
|
display: -webkit-box;
|
|
@@ -43,7 +42,7 @@ h5 {
|
|
|
43
42
|
border: 1px solid var(--spbSky2);
|
|
44
43
|
font-size: 20px;
|
|
45
44
|
text-decoration: none;
|
|
46
|
-
background-color:
|
|
45
|
+
background-color: var(--base);
|
|
47
46
|
outline: none;
|
|
48
47
|
cursor: pointer;
|
|
49
48
|
-webkit-appearance: none;
|
|
@@ -65,6 +65,7 @@ export interface ISelectProps<T extends SelectItemValueType> {
|
|
|
65
65
|
title?: string;
|
|
66
66
|
titleInner?: string;
|
|
67
67
|
list?: string;
|
|
68
|
+
listInner?: string;
|
|
68
69
|
listItem?: string;
|
|
69
70
|
listItemTitle?: string;
|
|
70
71
|
};
|
|
@@ -106,6 +107,7 @@ declare const Select: {
|
|
|
106
107
|
title: PropTypes.Requireable<string>;
|
|
107
108
|
titleInner: PropTypes.Requireable<string>;
|
|
108
109
|
list: PropTypes.Requireable<string>;
|
|
110
|
+
listInner: PropTypes.Requireable<string>;
|
|
109
111
|
listItem: PropTypes.Requireable<string>;
|
|
110
112
|
listItemTitle: PropTypes.Requireable<string>;
|
|
111
113
|
}>>;
|
|
@@ -380,7 +380,7 @@ var Select = function Select(_ref) {
|
|
|
380
380
|
return /*#__PURE__*/React.createElement("div", {
|
|
381
381
|
className: cn('list', [classes.list])
|
|
382
382
|
}, /*#__PURE__*/React.createElement("div", {
|
|
383
|
-
className: cn('list-inner'),
|
|
383
|
+
className: cn('list-inner', [classes.listInner]),
|
|
384
384
|
ref: itemWrapperNode
|
|
385
385
|
}, currentItems.map(function (_ref3, i) {
|
|
386
386
|
var title = _ref3.title,
|
|
@@ -450,6 +450,7 @@ Select.propTypes = {
|
|
|
450
450
|
title: PropTypes.string,
|
|
451
451
|
titleInner: PropTypes.string,
|
|
452
452
|
list: PropTypes.string,
|
|
453
|
+
listInner: PropTypes.string,
|
|
453
454
|
listItem: PropTypes.string,
|
|
454
455
|
listItemTitle: PropTypes.string
|
|
455
456
|
}),
|
|
@@ -38,12 +38,8 @@ var cn = cnCreate('mfui-tabs');
|
|
|
38
38
|
|
|
39
39
|
var Tabs = function Tabs(_ref) {
|
|
40
40
|
var className = _ref.className,
|
|
41
|
-
_ref$classes = _ref.classes
|
|
42
|
-
|
|
43
|
-
var rootClass = _ref$classes.root,
|
|
44
|
-
innerIndentsClass = _ref$classes.innerIndents,
|
|
45
|
-
tabClass = _ref$classes.tab,
|
|
46
|
-
activeTabClass = _ref$classes.activeTab,
|
|
41
|
+
_ref$classes = _ref.classes,
|
|
42
|
+
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
|
47
43
|
_ref$size = _ref.size,
|
|
48
44
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
49
45
|
_ref$tabColorTheme = _ref.tabColorTheme,
|
|
@@ -287,15 +283,15 @@ var Tabs = function Tabs(_ref) {
|
|
|
287
283
|
renderTabWrapper = _child$props.renderTabWrapper,
|
|
288
284
|
data = _child$props.dataAttrs;
|
|
289
285
|
var tab = renderTab(i, title, icon, href, data === null || data === void 0 ? void 0 : data.inner);
|
|
290
|
-
var activeTabClassName = currentIndex === i ?
|
|
286
|
+
var activeTabClassName = currentIndex === i ? classes === null || classes === void 0 ? void 0 : classes.activeTab : undefined;
|
|
291
287
|
return /*#__PURE__*/React.createElement(SwiperSlide, {
|
|
292
288
|
className: cn('slide')
|
|
293
289
|
}, /*#__PURE__*/React.createElement("div", _extends({
|
|
294
|
-
className: cn('tab', [
|
|
290
|
+
className: cn('tab', [classes === null || classes === void 0 ? void 0 : classes.tab, activeTabClassName]),
|
|
295
291
|
ref: setTabRef
|
|
296
292
|
}, filterDataAttrs(data === null || data === void 0 ? void 0 : data.root, i + 1)), renderTabWrapper ? renderTabWrapper(tab) : tab));
|
|
297
293
|
});
|
|
298
|
-
}, [renderTab, children,
|
|
294
|
+
}, [renderTab, children, classes === null || classes === void 0 ? void 0 : classes.activeTab, currentIndex, setTabRef, classes === null || classes === void 0 ? void 0 : classes.tab]);
|
|
299
295
|
var renderPanels = React.useCallback(function () {
|
|
300
296
|
return React.Children.map(children, function (child, i) {
|
|
301
297
|
var panel = child.props.children;
|
|
@@ -364,19 +360,19 @@ var Tabs = function Tabs(_ref) {
|
|
|
364
360
|
size: size,
|
|
365
361
|
'tab-color': tabColorTheme,
|
|
366
362
|
'h-align': align,
|
|
367
|
-
indents: !
|
|
363
|
+
indents: !(classes === null || classes === void 0 ? void 0 : classes.innerIndents),
|
|
368
364
|
sticky: isSticky,
|
|
369
365
|
'auto-width': autoWidth
|
|
370
|
-
}, [className,
|
|
366
|
+
}, [className, classes.root]),
|
|
371
367
|
ref: rootRef
|
|
372
368
|
}), /*#__PURE__*/React.createElement("div", {
|
|
373
|
-
className: cn('wrapper'),
|
|
369
|
+
className: cn('wrapper', [classes === null || classes === void 0 ? void 0 : classes.wrapper]),
|
|
374
370
|
ref: tabListRef,
|
|
375
371
|
style: {
|
|
376
372
|
height: tabListHeight
|
|
377
373
|
}
|
|
378
374
|
}, /*#__PURE__*/React.createElement("div", {
|
|
379
|
-
className: cn('swiper-wrapper'),
|
|
375
|
+
className: cn('swiper-wrapper', [classes === null || classes === void 0 ? void 0 : classes.swiperWrapper]),
|
|
380
376
|
style: {
|
|
381
377
|
paddingLeft: stickyOffset.left,
|
|
382
378
|
paddingRight: stickyOffset.right
|
|
@@ -386,7 +382,7 @@ var Tabs = function Tabs(_ref) {
|
|
|
386
382
|
className: cn('swiper', {
|
|
387
383
|
beginning: isBeginning,
|
|
388
384
|
end: isEnd
|
|
389
|
-
}, [
|
|
385
|
+
}, [classes === null || classes === void 0 ? void 0 : classes.innerIndents]),
|
|
390
386
|
watchOverflow: true,
|
|
391
387
|
slidesPerView: "auto",
|
|
392
388
|
initialSlide: currentIndex,
|
|
@@ -421,6 +417,8 @@ Tabs.propTypes = {
|
|
|
421
417
|
className: PropTypes.string,
|
|
422
418
|
classes: PropTypes.shape({
|
|
423
419
|
root: PropTypes.string,
|
|
420
|
+
wrapper: PropTypes.string,
|
|
421
|
+
swiperWrapper: PropTypes.string,
|
|
424
422
|
innerIndents: PropTypes.string,
|
|
425
423
|
tab: PropTypes.string,
|
|
426
424
|
activeTab: PropTypes.string
|
|
@@ -119,9 +119,8 @@ var TextField = function TextField(_ref) {
|
|
|
119
119
|
inputRef = _ref.inputRef,
|
|
120
120
|
inputMode = _ref.inputMode,
|
|
121
121
|
autoComplete = _ref.autoComplete,
|
|
122
|
-
_ref$classes = _ref.classes
|
|
123
|
-
|
|
124
|
-
var input = _ref$classes.input,
|
|
122
|
+
_ref$classes = _ref.classes,
|
|
123
|
+
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
|
125
124
|
dataAttrs = _ref.dataAttrs;
|
|
126
125
|
|
|
127
126
|
var _useState = useState(true),
|
|
@@ -313,7 +312,7 @@ var TextField = function TextField(_ref) {
|
|
|
313
312
|
});
|
|
314
313
|
|
|
315
314
|
var inputParams = _extends(_extends({}, commonParams), {
|
|
316
|
-
className: cn('field', input),
|
|
315
|
+
className: cn('field', classes === null || classes === void 0 ? void 0 : classes.input),
|
|
317
316
|
type: isVisiblePassword ? 'text' : type,
|
|
318
317
|
autoComplete: autoComplete
|
|
319
318
|
});
|
|
@@ -329,7 +328,7 @@ var TextField = function TextField(_ref) {
|
|
|
329
328
|
type: textareaType,
|
|
330
329
|
textarea: textarea,
|
|
331
330
|
resized: isTextareaResizeFocused
|
|
332
|
-
}, input)
|
|
331
|
+
}, classes === null || classes === void 0 ? void 0 : classes.input)
|
|
333
332
|
});
|
|
334
333
|
|
|
335
334
|
var getFieldNode = function getFieldNode(node) {
|
|
@@ -377,7 +376,7 @@ var TextField = function TextField(_ref) {
|
|
|
377
376
|
var currentLabel = label || actualPlaceholder;
|
|
378
377
|
return /*#__PURE__*/React.createElement("label", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.label), {
|
|
379
378
|
htmlFor: id,
|
|
380
|
-
className: cn('label'),
|
|
379
|
+
className: cn('label', [classes === null || classes === void 0 ? void 0 : classes.label]),
|
|
381
380
|
ref: labelRef
|
|
382
381
|
}), currentLabel, required && /*#__PURE__*/React.createElement("span", {
|
|
383
382
|
className: cn('require-mark')
|
|
@@ -494,6 +493,7 @@ TextField.propTypes = {
|
|
|
494
493
|
onCustomIconClick: PropTypes.func,
|
|
495
494
|
inputRef: PropTypes.func,
|
|
496
495
|
classes: PropTypes.shape({
|
|
496
|
+
label: PropTypes.string,
|
|
497
497
|
input: PropTypes.string
|
|
498
498
|
}),
|
|
499
499
|
dataAttrs: PropTypes.shape({
|
|
@@ -16,7 +16,6 @@ h5 {
|
|
|
16
16
|
box-sizing: border-box;
|
|
17
17
|
width: 120px;
|
|
18
18
|
height: 32px;
|
|
19
|
-
background-color: var(--base);
|
|
20
19
|
}
|
|
21
20
|
.mfui-counter__btn {
|
|
22
21
|
display: -webkit-box;
|
|
@@ -43,7 +42,7 @@ h5 {
|
|
|
43
42
|
border: 1px solid var(--spbSky2);
|
|
44
43
|
font-size: 20px;
|
|
45
44
|
text-decoration: none;
|
|
46
|
-
background-color:
|
|
45
|
+
background-color: var(--base);
|
|
47
46
|
outline: none;
|
|
48
47
|
cursor: pointer;
|
|
49
48
|
-webkit-appearance: none;
|
|
@@ -65,6 +65,7 @@ export interface ISelectProps<T extends SelectItemValueType> {
|
|
|
65
65
|
title?: string;
|
|
66
66
|
titleInner?: string;
|
|
67
67
|
list?: string;
|
|
68
|
+
listInner?: string;
|
|
68
69
|
listItem?: string;
|
|
69
70
|
listItemTitle?: string;
|
|
70
71
|
};
|
|
@@ -106,6 +107,7 @@ declare const Select: {
|
|
|
106
107
|
title: PropTypes.Requireable<string>;
|
|
107
108
|
titleInner: PropTypes.Requireable<string>;
|
|
108
109
|
list: PropTypes.Requireable<string>;
|
|
110
|
+
listInner: PropTypes.Requireable<string>;
|
|
109
111
|
listItem: PropTypes.Requireable<string>;
|
|
110
112
|
listItemTitle: PropTypes.Requireable<string>;
|
|
111
113
|
}>>;
|
|
@@ -415,7 +415,7 @@ var Select = function Select(_ref) {
|
|
|
415
415
|
return /*#__PURE__*/React.createElement("div", {
|
|
416
416
|
className: cn('list', [classes.list])
|
|
417
417
|
}, /*#__PURE__*/React.createElement("div", {
|
|
418
|
-
className: cn('list-inner'),
|
|
418
|
+
className: cn('list-inner', [classes.listInner]),
|
|
419
419
|
ref: itemWrapperNode
|
|
420
420
|
}, currentItems.map(function (_ref3, i) {
|
|
421
421
|
var title = _ref3.title,
|
|
@@ -485,6 +485,7 @@ Select.propTypes = {
|
|
|
485
485
|
title: PropTypes.string,
|
|
486
486
|
titleInner: PropTypes.string,
|
|
487
487
|
list: PropTypes.string,
|
|
488
|
+
listInner: PropTypes.string,
|
|
488
489
|
listItem: PropTypes.string,
|
|
489
490
|
listItemTitle: PropTypes.string
|
|
490
491
|
}),
|
|
@@ -68,12 +68,8 @@ var cn = (0, _uiHelpers.cnCreate)('mfui-tabs');
|
|
|
68
68
|
|
|
69
69
|
var Tabs = function Tabs(_ref) {
|
|
70
70
|
var className = _ref.className,
|
|
71
|
-
_ref$classes = _ref.classes
|
|
72
|
-
|
|
73
|
-
var rootClass = _ref$classes.root,
|
|
74
|
-
innerIndentsClass = _ref$classes.innerIndents,
|
|
75
|
-
tabClass = _ref$classes.tab,
|
|
76
|
-
activeTabClass = _ref$classes.activeTab,
|
|
71
|
+
_ref$classes = _ref.classes,
|
|
72
|
+
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
|
77
73
|
_ref$size = _ref.size,
|
|
78
74
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
79
75
|
_ref$tabColorTheme = _ref.tabColorTheme,
|
|
@@ -316,15 +312,15 @@ var Tabs = function Tabs(_ref) {
|
|
|
316
312
|
renderTabWrapper = _child$props.renderTabWrapper,
|
|
317
313
|
data = _child$props.dataAttrs;
|
|
318
314
|
var tab = renderTab(i, title, icon, href, data === null || data === void 0 ? void 0 : data.inner);
|
|
319
|
-
var activeTabClassName = currentIndex === i ?
|
|
315
|
+
var activeTabClassName = currentIndex === i ? classes === null || classes === void 0 ? void 0 : classes.activeTab : undefined;
|
|
320
316
|
return /*#__PURE__*/React.createElement(_react2.SwiperSlide, {
|
|
321
317
|
className: cn('slide')
|
|
322
318
|
}, /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
|
|
323
|
-
className: cn('tab', [
|
|
319
|
+
className: cn('tab', [classes === null || classes === void 0 ? void 0 : classes.tab, activeTabClassName]),
|
|
324
320
|
ref: setTabRef
|
|
325
321
|
}, (0, _uiHelpers.filterDataAttrs)(data === null || data === void 0 ? void 0 : data.root, i + 1)), renderTabWrapper ? renderTabWrapper(tab) : tab));
|
|
326
322
|
});
|
|
327
|
-
}, [renderTab, children,
|
|
323
|
+
}, [renderTab, children, classes === null || classes === void 0 ? void 0 : classes.activeTab, currentIndex, setTabRef, classes === null || classes === void 0 ? void 0 : classes.tab]);
|
|
328
324
|
var renderPanels = React.useCallback(function () {
|
|
329
325
|
return React.Children.map(children, function (child, i) {
|
|
330
326
|
var panel = child.props.children;
|
|
@@ -393,19 +389,19 @@ var Tabs = function Tabs(_ref) {
|
|
|
393
389
|
size: size,
|
|
394
390
|
'tab-color': tabColorTheme,
|
|
395
391
|
'h-align': align,
|
|
396
|
-
indents: !
|
|
392
|
+
indents: !(classes === null || classes === void 0 ? void 0 : classes.innerIndents),
|
|
397
393
|
sticky: isSticky,
|
|
398
394
|
'auto-width': autoWidth
|
|
399
|
-
}, [className,
|
|
395
|
+
}, [className, classes.root]),
|
|
400
396
|
ref: rootRef
|
|
401
397
|
}), /*#__PURE__*/React.createElement("div", {
|
|
402
|
-
className: cn('wrapper'),
|
|
398
|
+
className: cn('wrapper', [classes === null || classes === void 0 ? void 0 : classes.wrapper]),
|
|
403
399
|
ref: tabListRef,
|
|
404
400
|
style: {
|
|
405
401
|
height: tabListHeight
|
|
406
402
|
}
|
|
407
403
|
}, /*#__PURE__*/React.createElement("div", {
|
|
408
|
-
className: cn('swiper-wrapper'),
|
|
404
|
+
className: cn('swiper-wrapper', [classes === null || classes === void 0 ? void 0 : classes.swiperWrapper]),
|
|
409
405
|
style: {
|
|
410
406
|
paddingLeft: stickyOffset.left,
|
|
411
407
|
paddingRight: stickyOffset.right
|
|
@@ -415,7 +411,7 @@ var Tabs = function Tabs(_ref) {
|
|
|
415
411
|
className: cn('swiper', {
|
|
416
412
|
beginning: isBeginning,
|
|
417
413
|
end: isEnd
|
|
418
|
-
}, [
|
|
414
|
+
}, [classes === null || classes === void 0 ? void 0 : classes.innerIndents]),
|
|
419
415
|
watchOverflow: true,
|
|
420
416
|
slidesPerView: "auto",
|
|
421
417
|
initialSlide: currentIndex,
|
|
@@ -450,6 +446,8 @@ Tabs.propTypes = {
|
|
|
450
446
|
className: _propTypes["default"].string,
|
|
451
447
|
classes: _propTypes["default"].shape({
|
|
452
448
|
root: _propTypes["default"].string,
|
|
449
|
+
wrapper: _propTypes["default"].string,
|
|
450
|
+
swiperWrapper: _propTypes["default"].string,
|
|
453
451
|
innerIndents: _propTypes["default"].string,
|
|
454
452
|
tab: _propTypes["default"].string,
|
|
455
453
|
activeTab: _propTypes["default"].string
|
|
@@ -147,9 +147,8 @@ var TextField = function TextField(_ref) {
|
|
|
147
147
|
inputRef = _ref.inputRef,
|
|
148
148
|
inputMode = _ref.inputMode,
|
|
149
149
|
autoComplete = _ref.autoComplete,
|
|
150
|
-
_ref$classes = _ref.classes
|
|
151
|
-
|
|
152
|
-
var input = _ref$classes.input,
|
|
150
|
+
_ref$classes = _ref.classes,
|
|
151
|
+
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
|
153
152
|
dataAttrs = _ref.dataAttrs;
|
|
154
153
|
|
|
155
154
|
var _useState = (0, React.useState)(true),
|
|
@@ -339,7 +338,7 @@ var TextField = function TextField(_ref) {
|
|
|
339
338
|
inputMode: inputMode
|
|
340
339
|
});
|
|
341
340
|
var inputParams = (0, _extends2["default"])((0, _extends2["default"])({}, commonParams), {
|
|
342
|
-
className: cn('field', input),
|
|
341
|
+
className: cn('field', classes === null || classes === void 0 ? void 0 : classes.input),
|
|
343
342
|
type: isVisiblePassword ? 'text' : type,
|
|
344
343
|
autoComplete: autoComplete
|
|
345
344
|
});
|
|
@@ -353,7 +352,7 @@ var TextField = function TextField(_ref) {
|
|
|
353
352
|
type: textareaType,
|
|
354
353
|
textarea: textarea,
|
|
355
354
|
resized: isTextareaResizeFocused
|
|
356
|
-
}, input)
|
|
355
|
+
}, classes === null || classes === void 0 ? void 0 : classes.input)
|
|
357
356
|
});
|
|
358
357
|
|
|
359
358
|
var getFieldNode = function getFieldNode(node) {
|
|
@@ -401,7 +400,7 @@ var TextField = function TextField(_ref) {
|
|
|
401
400
|
var currentLabel = label || actualPlaceholder;
|
|
402
401
|
return /*#__PURE__*/React.createElement("label", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.label), {
|
|
403
402
|
htmlFor: id,
|
|
404
|
-
className: cn('label'),
|
|
403
|
+
className: cn('label', [classes === null || classes === void 0 ? void 0 : classes.label]),
|
|
405
404
|
ref: labelRef
|
|
406
405
|
}), currentLabel, required && /*#__PURE__*/React.createElement("span", {
|
|
407
406
|
className: cn('require-mark')
|
|
@@ -518,6 +517,7 @@ TextField.propTypes = {
|
|
|
518
517
|
onCustomIconClick: PropTypes.func,
|
|
519
518
|
inputRef: PropTypes.func,
|
|
520
519
|
classes: PropTypes.shape({
|
|
520
|
+
label: PropTypes.string,
|
|
521
521
|
input: PropTypes.string
|
|
522
522
|
}),
|
|
523
523
|
dataAttrs: PropTypes.shape({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@megafon/ui-core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist",
|
|
6
6
|
"styles"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@babel/preset-env": "^7.8.6",
|
|
55
55
|
"@babel/preset-react": "^7.8.3",
|
|
56
56
|
"@babel/preset-typescript": "^7.8.3",
|
|
57
|
-
"@megafon/ui-icons": "^2.0
|
|
57
|
+
"@megafon/ui-icons": "^2.1.0",
|
|
58
58
|
"@svgr/core": "^2.4.1",
|
|
59
59
|
"@testing-library/react-hooks": "^7.0.1",
|
|
60
60
|
"@types/enzyme": "^3.10.5",
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
"react-popper": "^2.2.3",
|
|
98
98
|
"swiper": "^6.5.6"
|
|
99
99
|
},
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "d46a63dbfc20ee931c4e12a82287b7385596bbcf"
|
|
101
101
|
}
|