@megafon/ui-core 4.16.1 → 5.0.1
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 +35 -0
- package/dist/es/components/Notification/Notification.d.ts +0 -4
- package/dist/es/components/Notification/Notification.js +0 -6
- package/dist/es/components/TextField/TextField.d.ts +2 -2
- package/dist/es/components/TextField/TextField.js +16 -8
- package/dist/es/components/Tile/Tile.css +0 -16
- package/dist/es/components/Tile/Tile.d.ts +0 -4
- package/dist/es/components/Tile/Tile.js +1 -7
- package/dist/es/components/Tooltip/Tooltip.js +1 -1
- package/dist/lib/components/Notification/Notification.d.ts +0 -4
- package/dist/lib/components/Notification/Notification.js +0 -6
- package/dist/lib/components/TextField/TextField.d.ts +2 -2
- package/dist/lib/components/TextField/TextField.js +17 -8
- package/dist/lib/components/Tile/Tile.css +0 -16
- package/dist/lib/components/Tile/Tile.d.ts +0 -4
- package/dist/lib/components/Tile/Tile.js +1 -7
- package/dist/lib/components/Tooltip/Tooltip.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,41 @@
|
|
|
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
|
+
## [5.0.1](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-core@5.0.0...@megafon/ui-core@5.0.1) (2023-07-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **tile:** remove shadow prop deprecated values: low, high ([87982fc](https://github.com/MegafonWebLab/megafon-ui/commit/87982fcad5483256fd5db21a6d9a5a567e34e856))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [5.0.0](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-core@4.16.1...@megafon/ui-core@5.0.0) (2023-06-22)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **textfield:** rename prop onCustomIconClick; change behavior of clear icon; ([4b827a6](https://github.com/MegafonWebLab/megafon-ui/commit/4b827a682c8139674fb8dc14c7bd92c25c8ec789))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### BREAKING CHANGES
|
|
26
|
+
|
|
27
|
+
* **textfield:** Prop onCustomIconClick renamed to onIconClick. Clicking on the clear icon performs the following
|
|
28
|
+
actions: clearing and focusing the field, triggering the change event with an empty value.
|
|
29
|
+
These actions are performed in both controlled and uncontrolled state, regardless of the
|
|
30
|
+
presence of a onIconClick handler.
|
|
31
|
+
|
|
32
|
+
How to migrate:
|
|
33
|
+
- rename prop onCustomIconClick to onIconClick;
|
|
34
|
+
- remove clear field in handler onIconClick;
|
|
35
|
+
- remove field focus in handler onIconClick;
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
6
41
|
## [4.16.1](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-core@4.16.0...@megafon/ui-core@4.16.1) (2023-05-23)
|
|
7
42
|
|
|
8
43
|
|
|
@@ -9,10 +9,6 @@ declare const NotificationTypes: {
|
|
|
9
9
|
declare type NotificationType = typeof NotificationTypes[keyof typeof NotificationTypes];
|
|
10
10
|
declare const ShadowTypes: {
|
|
11
11
|
readonly ZERO: "zero";
|
|
12
|
-
/** @deprecated TODO: нужно удалить значение при выпуске мажорной версии */
|
|
13
|
-
readonly LOW: "low";
|
|
14
|
-
/** @deprecated TODO: нужно удалить значение при выпуске мажорной версии */
|
|
15
|
-
readonly HIGH: "high";
|
|
16
12
|
readonly HOVER: "hover";
|
|
17
13
|
readonly PRESSED: "pressed";
|
|
18
14
|
readonly DEFAULT: "default";
|
|
@@ -82,12 +82,6 @@ var NotificationTypes = {
|
|
|
82
82
|
};
|
|
83
83
|
var ShadowTypes = {
|
|
84
84
|
ZERO: 'zero',
|
|
85
|
-
|
|
86
|
-
/** @deprecated TODO: нужно удалить значение при выпуске мажорной версии */
|
|
87
|
-
LOW: 'low',
|
|
88
|
-
|
|
89
|
-
/** @deprecated TODO: нужно удалить значение при выпуске мажорной версии */
|
|
90
|
-
HIGH: 'high',
|
|
91
85
|
HOVER: 'hover',
|
|
92
86
|
PRESSED: 'pressed',
|
|
93
87
|
DEFAULT: 'default'
|
|
@@ -109,8 +109,8 @@ export declare type TextFieldProps = {
|
|
|
109
109
|
onFocus?: (e: React.FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
110
110
|
/** Обработчик поднятия клавиши */
|
|
111
111
|
onKeyUp?: (e: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
112
|
-
/** Обработчик клика
|
|
113
|
-
|
|
112
|
+
/** Обработчик клика по иконке */
|
|
113
|
+
onIconClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
114
114
|
};
|
|
115
115
|
declare const TextField: React.FC<TextFieldProps>;
|
|
116
116
|
export default TextField;
|
|
@@ -4,6 +4,7 @@ import "core-js/modules/es.function.name.js";
|
|
|
4
4
|
import "core-js/modules/es.parse-float.js";
|
|
5
5
|
import "core-js/modules/es.regexp.exec.js";
|
|
6
6
|
import "core-js/modules/es.string.replace.js";
|
|
7
|
+
import "core-js/modules/es.object.get-own-property-descriptor.js";
|
|
7
8
|
import "core-js/modules/es.array.concat.js";
|
|
8
9
|
import "core-js/modules/es.object.values.js";
|
|
9
10
|
|
|
@@ -117,7 +118,7 @@ var TextField = function TextField(_ref) {
|
|
|
117
118
|
onBlur = _ref.onBlur,
|
|
118
119
|
onChange = _ref.onChange,
|
|
119
120
|
onBeforeMaskChange = _ref.onBeforeMaskChange,
|
|
120
|
-
|
|
121
|
+
onIconClick = _ref.onIconClick,
|
|
121
122
|
onFocus = _ref.onFocus,
|
|
122
123
|
onKeyUp = _ref.onKeyUp,
|
|
123
124
|
_ref$theme = _ref.theme,
|
|
@@ -298,16 +299,23 @@ var TextField = function TextField(_ref) {
|
|
|
298
299
|
};
|
|
299
300
|
|
|
300
301
|
var handleIconClick = useCallback(function (e) {
|
|
301
|
-
var
|
|
302
|
+
var _a;
|
|
303
|
+
|
|
302
304
|
var field = fieldNode.current;
|
|
303
305
|
isPasswordType && togglePasswordHiding();
|
|
304
|
-
onCustomIconClick === null || onCustomIconClick === void 0 ? void 0 : onCustomIconClick(e);
|
|
305
306
|
|
|
306
|
-
if (!
|
|
307
|
-
|
|
307
|
+
if (!customIcon && hasClearIcon) {
|
|
308
|
+
var nativeInputValue = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, 'value');
|
|
309
|
+
var inputEvent = new Event('change', {
|
|
310
|
+
bubbles: true
|
|
311
|
+
});
|
|
312
|
+
(_a = nativeInputValue === null || nativeInputValue === void 0 ? void 0 : nativeInputValue.set) === null || _a === void 0 ? void 0 : _a.call(field, '');
|
|
313
|
+
field === null || field === void 0 ? void 0 : field.dispatchEvent(inputEvent);
|
|
308
314
|
field === null || field === void 0 ? void 0 : field.focus();
|
|
309
315
|
}
|
|
310
|
-
|
|
316
|
+
|
|
317
|
+
onIconClick === null || onIconClick === void 0 ? void 0 : onIconClick(e);
|
|
318
|
+
}, [isPasswordType, togglePasswordHiding, onIconClick, customIcon, hasClearIcon]);
|
|
311
319
|
var handleFocus = useCallback(function (e) {
|
|
312
320
|
onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);
|
|
313
321
|
}, [onFocus]);
|
|
@@ -430,7 +438,7 @@ var TextField = function TextField(_ref) {
|
|
|
430
438
|
className: cn('icon-box', {
|
|
431
439
|
error: isErrorVerification && !customIcon,
|
|
432
440
|
password: isPasswordType,
|
|
433
|
-
'custom-handler': !!
|
|
441
|
+
'custom-handler': !!onIconClick
|
|
434
442
|
}),
|
|
435
443
|
onClick: handleIconClick
|
|
436
444
|
}), icon);
|
|
@@ -520,7 +528,7 @@ TextField.propTypes = {
|
|
|
520
528
|
onBlur: PropTypes.func,
|
|
521
529
|
onFocus: PropTypes.func,
|
|
522
530
|
onKeyUp: PropTypes.func,
|
|
523
|
-
|
|
531
|
+
onIconClick: PropTypes.func,
|
|
524
532
|
inputRef: PropTypes.func,
|
|
525
533
|
classes: PropTypes.shape({
|
|
526
534
|
label: PropTypes.string,
|
|
@@ -8,22 +8,6 @@
|
|
|
8
8
|
.mfui-tile_pointer {
|
|
9
9
|
cursor: pointer;
|
|
10
10
|
}
|
|
11
|
-
.mfui-tile_theme_light.mfui-tile_shadow_low {
|
|
12
|
-
-webkit-box-shadow: 0 0.25px 3px rgba(0, 0, 0, 0.25);
|
|
13
|
-
box-shadow: 0 0.25px 3px rgba(0, 0, 0, 0.25);
|
|
14
|
-
}
|
|
15
|
-
.mfui-tile_theme_light.mfui-tile_shadow_high {
|
|
16
|
-
-webkit-box-shadow: 0 2px 9px rgba(0, 0, 0, 0.15);
|
|
17
|
-
box-shadow: 0 2px 9px rgba(0, 0, 0, 0.15);
|
|
18
|
-
}
|
|
19
|
-
.mfui-tile_theme_dark.mfui-tile_shadow_low {
|
|
20
|
-
-webkit-box-shadow: 0 0.25px 3px rgba(0, 0, 0, 0.45);
|
|
21
|
-
box-shadow: 0 0.25px 3px rgba(0, 0, 0, 0.45);
|
|
22
|
-
}
|
|
23
|
-
.mfui-tile_theme_dark.mfui-tile_shadow_high {
|
|
24
|
-
-webkit-box-shadow: 0 2px 9px rgba(0, 0, 0, 0.25);
|
|
25
|
-
box-shadow: 0 2px 9px rgba(0, 0, 0, 0.25);
|
|
26
|
-
}
|
|
27
11
|
.mfui-tile_theme_light.mfui-tile_shadow_default {
|
|
28
12
|
-webkit-box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
|
|
29
13
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
|
|
@@ -15,10 +15,6 @@ export declare const ShadowLevel: {
|
|
|
15
15
|
readonly DEFAULT: "default";
|
|
16
16
|
readonly HOVER: "hover";
|
|
17
17
|
readonly PRESSED: "pressed";
|
|
18
|
-
/** @deprecated TODO: нужно удалить значение при выпуске мажорной версии */
|
|
19
|
-
readonly HIGH: "high";
|
|
20
|
-
/** @deprecated TODO: нужно удалить значение при выпуске мажорной версии */
|
|
21
|
-
readonly LOW: "low";
|
|
22
18
|
};
|
|
23
19
|
declare type ShadowLevelType = typeof ShadowLevel[keyof typeof ShadowLevel];
|
|
24
20
|
export interface ITileProps {
|
|
@@ -16,13 +16,7 @@ export var ShadowLevel = {
|
|
|
16
16
|
ZERO: 'zero',
|
|
17
17
|
DEFAULT: 'default',
|
|
18
18
|
HOVER: 'hover',
|
|
19
|
-
PRESSED: 'pressed'
|
|
20
|
-
|
|
21
|
-
/** @deprecated TODO: нужно удалить значение при выпуске мажорной версии */
|
|
22
|
-
HIGH: 'high',
|
|
23
|
-
|
|
24
|
-
/** @deprecated TODO: нужно удалить значение при выпуске мажорной версии */
|
|
25
|
-
LOW: 'low'
|
|
19
|
+
PRESSED: 'pressed'
|
|
26
20
|
};
|
|
27
21
|
var cn = cnCreate('mfui-tile');
|
|
28
22
|
|
|
@@ -362,7 +362,7 @@ var Tooltip = function Tooltip(_ref) {
|
|
|
362
362
|
className: cn('close-icon')
|
|
363
363
|
})), isBigSize && renderedFullContent, !isBigSize && !!text && renderedText), /*#__PURE__*/React.createElement(Tile, {
|
|
364
364
|
radius: "rounded",
|
|
365
|
-
shadowLevel: "
|
|
365
|
+
shadowLevel: "pressed",
|
|
366
366
|
className: cn('content-shadow', [contentShadowClassName])
|
|
367
367
|
})));
|
|
368
368
|
/* Не в эффекте, чтобы не создавать лишний перерендер компонента. Из-за синхронности кода в return уже будет элемент */
|
|
@@ -9,10 +9,6 @@ declare const NotificationTypes: {
|
|
|
9
9
|
declare type NotificationType = typeof NotificationTypes[keyof typeof NotificationTypes];
|
|
10
10
|
declare const ShadowTypes: {
|
|
11
11
|
readonly ZERO: "zero";
|
|
12
|
-
/** @deprecated TODO: нужно удалить значение при выпуске мажорной версии */
|
|
13
|
-
readonly LOW: "low";
|
|
14
|
-
/** @deprecated TODO: нужно удалить значение при выпуске мажорной версии */
|
|
15
|
-
readonly HIGH: "high";
|
|
16
12
|
readonly HOVER: "hover";
|
|
17
13
|
readonly PRESSED: "pressed";
|
|
18
14
|
readonly DEFAULT: "default";
|
|
@@ -106,12 +106,6 @@ var NotificationTypes = {
|
|
|
106
106
|
};
|
|
107
107
|
var ShadowTypes = {
|
|
108
108
|
ZERO: 'zero',
|
|
109
|
-
|
|
110
|
-
/** @deprecated TODO: нужно удалить значение при выпуске мажорной версии */
|
|
111
|
-
LOW: 'low',
|
|
112
|
-
|
|
113
|
-
/** @deprecated TODO: нужно удалить значение при выпуске мажорной версии */
|
|
114
|
-
HIGH: 'high',
|
|
115
109
|
HOVER: 'hover',
|
|
116
110
|
PRESSED: 'pressed',
|
|
117
111
|
DEFAULT: 'default'
|
|
@@ -109,8 +109,8 @@ export declare type TextFieldProps = {
|
|
|
109
109
|
onFocus?: (e: React.FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
110
110
|
/** Обработчик поднятия клавиши */
|
|
111
111
|
onKeyUp?: (e: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
112
|
-
/** Обработчик клика
|
|
113
|
-
|
|
112
|
+
/** Обработчик клика по иконке */
|
|
113
|
+
onIconClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
114
114
|
};
|
|
115
115
|
declare const TextField: React.FC<TextFieldProps>;
|
|
116
116
|
export default TextField;
|
|
@@ -19,6 +19,8 @@ require("core-js/modules/es.regexp.exec.js");
|
|
|
19
19
|
|
|
20
20
|
require("core-js/modules/es.string.replace.js");
|
|
21
21
|
|
|
22
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
23
|
+
|
|
22
24
|
require("core-js/modules/es.array.concat.js");
|
|
23
25
|
|
|
24
26
|
require("core-js/modules/es.object.values.js");
|
|
@@ -146,7 +148,7 @@ var TextField = function TextField(_ref) {
|
|
|
146
148
|
onBlur = _ref.onBlur,
|
|
147
149
|
onChange = _ref.onChange,
|
|
148
150
|
onBeforeMaskChange = _ref.onBeforeMaskChange,
|
|
149
|
-
|
|
151
|
+
onIconClick = _ref.onIconClick,
|
|
150
152
|
onFocus = _ref.onFocus,
|
|
151
153
|
onKeyUp = _ref.onKeyUp,
|
|
152
154
|
_ref$theme = _ref.theme,
|
|
@@ -327,16 +329,23 @@ var TextField = function TextField(_ref) {
|
|
|
327
329
|
};
|
|
328
330
|
|
|
329
331
|
var handleIconClick = (0, React.useCallback)(function (e) {
|
|
330
|
-
var
|
|
332
|
+
var _a;
|
|
333
|
+
|
|
331
334
|
var field = fieldNode.current;
|
|
332
335
|
isPasswordType && togglePasswordHiding();
|
|
333
|
-
onCustomIconClick === null || onCustomIconClick === void 0 ? void 0 : onCustomIconClick(e);
|
|
334
336
|
|
|
335
|
-
if (!
|
|
336
|
-
|
|
337
|
+
if (!customIcon && hasClearIcon) {
|
|
338
|
+
var nativeInputValue = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, 'value');
|
|
339
|
+
var inputEvent = new Event('change', {
|
|
340
|
+
bubbles: true
|
|
341
|
+
});
|
|
342
|
+
(_a = nativeInputValue === null || nativeInputValue === void 0 ? void 0 : nativeInputValue.set) === null || _a === void 0 ? void 0 : _a.call(field, '');
|
|
343
|
+
field === null || field === void 0 ? void 0 : field.dispatchEvent(inputEvent);
|
|
337
344
|
field === null || field === void 0 ? void 0 : field.focus();
|
|
338
345
|
}
|
|
339
|
-
|
|
346
|
+
|
|
347
|
+
onIconClick === null || onIconClick === void 0 ? void 0 : onIconClick(e);
|
|
348
|
+
}, [isPasswordType, togglePasswordHiding, onIconClick, customIcon, hasClearIcon]);
|
|
340
349
|
var handleFocus = (0, React.useCallback)(function (e) {
|
|
341
350
|
onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);
|
|
342
351
|
}, [onFocus]);
|
|
@@ -455,7 +464,7 @@ var TextField = function TextField(_ref) {
|
|
|
455
464
|
className: cn('icon-box', {
|
|
456
465
|
error: isErrorVerification && !customIcon,
|
|
457
466
|
password: isPasswordType,
|
|
458
|
-
'custom-handler': !!
|
|
467
|
+
'custom-handler': !!onIconClick
|
|
459
468
|
}),
|
|
460
469
|
onClick: handleIconClick
|
|
461
470
|
}), icon);
|
|
@@ -545,7 +554,7 @@ TextField.propTypes = {
|
|
|
545
554
|
onBlur: PropTypes.func,
|
|
546
555
|
onFocus: PropTypes.func,
|
|
547
556
|
onKeyUp: PropTypes.func,
|
|
548
|
-
|
|
557
|
+
onIconClick: PropTypes.func,
|
|
549
558
|
inputRef: PropTypes.func,
|
|
550
559
|
classes: PropTypes.shape({
|
|
551
560
|
label: PropTypes.string,
|
|
@@ -8,22 +8,6 @@
|
|
|
8
8
|
.mfui-tile_pointer {
|
|
9
9
|
cursor: pointer;
|
|
10
10
|
}
|
|
11
|
-
.mfui-tile_theme_light.mfui-tile_shadow_low {
|
|
12
|
-
-webkit-box-shadow: 0 0.25px 3px rgba(0, 0, 0, 0.25);
|
|
13
|
-
box-shadow: 0 0.25px 3px rgba(0, 0, 0, 0.25);
|
|
14
|
-
}
|
|
15
|
-
.mfui-tile_theme_light.mfui-tile_shadow_high {
|
|
16
|
-
-webkit-box-shadow: 0 2px 9px rgba(0, 0, 0, 0.15);
|
|
17
|
-
box-shadow: 0 2px 9px rgba(0, 0, 0, 0.15);
|
|
18
|
-
}
|
|
19
|
-
.mfui-tile_theme_dark.mfui-tile_shadow_low {
|
|
20
|
-
-webkit-box-shadow: 0 0.25px 3px rgba(0, 0, 0, 0.45);
|
|
21
|
-
box-shadow: 0 0.25px 3px rgba(0, 0, 0, 0.45);
|
|
22
|
-
}
|
|
23
|
-
.mfui-tile_theme_dark.mfui-tile_shadow_high {
|
|
24
|
-
-webkit-box-shadow: 0 2px 9px rgba(0, 0, 0, 0.25);
|
|
25
|
-
box-shadow: 0 2px 9px rgba(0, 0, 0, 0.25);
|
|
26
|
-
}
|
|
27
11
|
.mfui-tile_theme_light.mfui-tile_shadow_default {
|
|
28
12
|
-webkit-box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
|
|
29
13
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
|
|
@@ -15,10 +15,6 @@ export declare const ShadowLevel: {
|
|
|
15
15
|
readonly DEFAULT: "default";
|
|
16
16
|
readonly HOVER: "hover";
|
|
17
17
|
readonly PRESSED: "pressed";
|
|
18
|
-
/** @deprecated TODO: нужно удалить значение при выпуске мажорной версии */
|
|
19
|
-
readonly HIGH: "high";
|
|
20
|
-
/** @deprecated TODO: нужно удалить значение при выпуске мажорной версии */
|
|
21
|
-
readonly LOW: "low";
|
|
22
18
|
};
|
|
23
19
|
declare type ShadowLevelType = typeof ShadowLevel[keyof typeof ShadowLevel];
|
|
24
20
|
export interface ITileProps {
|
|
@@ -31,13 +31,7 @@ var ShadowLevel = {
|
|
|
31
31
|
ZERO: 'zero',
|
|
32
32
|
DEFAULT: 'default',
|
|
33
33
|
HOVER: 'hover',
|
|
34
|
-
PRESSED: 'pressed'
|
|
35
|
-
|
|
36
|
-
/** @deprecated TODO: нужно удалить значение при выпуске мажорной версии */
|
|
37
|
-
HIGH: 'high',
|
|
38
|
-
|
|
39
|
-
/** @deprecated TODO: нужно удалить значение при выпуске мажорной версии */
|
|
40
|
-
LOW: 'low'
|
|
34
|
+
PRESSED: 'pressed'
|
|
41
35
|
};
|
|
42
36
|
exports.ShadowLevel = ShadowLevel;
|
|
43
37
|
var cn = (0, _uiHelpers.cnCreate)('mfui-tile');
|
|
@@ -395,7 +395,7 @@ var Tooltip = function Tooltip(_ref) {
|
|
|
395
395
|
className: cn('close-icon')
|
|
396
396
|
})), isBigSize && renderedFullContent, !isBigSize && !!text && renderedText), /*#__PURE__*/_react["default"].createElement(_Tile["default"], {
|
|
397
397
|
radius: "rounded",
|
|
398
|
-
shadowLevel: "
|
|
398
|
+
shadowLevel: "pressed",
|
|
399
399
|
className: cn('content-shadow', [contentShadowClassName])
|
|
400
400
|
})));
|
|
401
401
|
/* Не в эффекте, чтобы не создавать лишний перерендер компонента. Из-за синхронности кода в return уже будет элемент */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@megafon/ui-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.1",
|
|
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.
|
|
57
|
+
"@megafon/ui-icons": "^2.12.0",
|
|
58
58
|
"@svgr/core": "^2.4.1",
|
|
59
59
|
"@testing-library/jest-dom": "5.16.2",
|
|
60
60
|
"@testing-library/react": "12.1.2",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"react-popper": "^2.2.3",
|
|
101
101
|
"swiper": "^6.5.6"
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "363663b39f257510b1ae1ee3c776d15d7f075a1f"
|
|
104
104
|
}
|