@megafon/ui-core 5.4.4 → 5.4.6
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 +19 -0
- package/dist/es/components/Counter/Counter.css +1 -0
- package/dist/es/components/Tooltip/Tooltip.d.ts +1 -0
- package/dist/es/components/Tooltip/Tooltip.js +9 -2
- package/dist/lib/components/Counter/Counter.css +1 -0
- package/dist/lib/components/Tooltip/Tooltip.d.ts +1 -0
- package/dist/lib/components/Tooltip/Tooltip.js +11 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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.4.6](https://hq-gitlab.megafon.ru/site-portal/services/megafon-ui/compare/@megafon/ui-core@5.4.5...@megafon/ui-core@5.4.6) (2024-01-30)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @megafon/ui-core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [5.4.5](https://hq-gitlab.megafon.ru/site-portal/services/megafon-ui/compare/@megafon/ui-core@5.4.4...@megafon/ui-core@5.4.5) (2024-01-22)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **counter:** reset default border radius on ios ([b47bcc5](https://hq-gitlab.megafon.ru/site-portal/services/megafon-ui/commit/b47bcc53380f9576e0b470778fa25bfa0d4fb13d))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [5.4.4](https://hq-gitlab.megafon.ru/site-portal/services/megafon-ui/compare/@megafon/ui-core@5.4.3...@megafon/ui-core@5.4.4) (2024-01-15)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @megafon/ui-core
|
|
@@ -98,5 +98,6 @@ export interface ITooltipProps {
|
|
|
98
98
|
/** Обработчик клика по кнопке */
|
|
99
99
|
onClick?: (e: React.SyntheticEvent<EventTarget>) => void;
|
|
100
100
|
}
|
|
101
|
+
export declare const testIdPrefix = "Tooltip";
|
|
101
102
|
declare const Tooltip: React.FC<ITooltipProps>;
|
|
102
103
|
export default Tooltip;
|
|
@@ -76,6 +76,7 @@ export var Size = {
|
|
|
76
76
|
SMALL: 'small',
|
|
77
77
|
BIG: 'big'
|
|
78
78
|
};
|
|
79
|
+
export var testIdPrefix = 'Tooltip';
|
|
79
80
|
var cn = cnCreate('mfui-tooltip');
|
|
80
81
|
|
|
81
82
|
var Tooltip = function Tooltip(_ref) {
|
|
@@ -343,7 +344,8 @@ var Tooltip = function Tooltip(_ref) {
|
|
|
343
344
|
ref: setArrowElement,
|
|
344
345
|
style: styles.arrow
|
|
345
346
|
}, /*#__PURE__*/React.createElement("div", {
|
|
346
|
-
className: cn('arrow', [arrowClassName])
|
|
347
|
+
className: cn('arrow', [arrowClassName]),
|
|
348
|
+
"data-testid": "".concat(testIdPrefix, "-arrow")
|
|
347
349
|
}, /*#__PURE__*/React.createElement(Arrow, {
|
|
348
350
|
className: cn('arrow-inner')
|
|
349
351
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
@@ -363,7 +365,12 @@ var Tooltip = function Tooltip(_ref) {
|
|
|
363
365
|
})), isBigSize && renderedFullContent, !isBigSize && !!text && renderedText), /*#__PURE__*/React.createElement(Tile, {
|
|
364
366
|
radius: "rounded",
|
|
365
367
|
shadowLevel: "pressed",
|
|
366
|
-
className: cn('content-shadow', [contentShadowClassName])
|
|
368
|
+
className: cn('content-shadow', [contentShadowClassName]),
|
|
369
|
+
dataAttrs: {
|
|
370
|
+
root: {
|
|
371
|
+
'data-testid': "".concat(testIdPrefix, "-content-shadow")
|
|
372
|
+
}
|
|
373
|
+
}
|
|
367
374
|
})));
|
|
368
375
|
/* Не в эффекте, чтобы не создавать лишний перерендер компонента. Из-за синхронности кода в return уже будет элемент */
|
|
369
376
|
|
|
@@ -98,5 +98,6 @@ export interface ITooltipProps {
|
|
|
98
98
|
/** Обработчик клика по кнопке */
|
|
99
99
|
onClick?: (e: React.SyntheticEvent<EventTarget>) => void;
|
|
100
100
|
}
|
|
101
|
+
export declare const testIdPrefix = "Tooltip";
|
|
101
102
|
declare const Tooltip: React.FC<ITooltipProps>;
|
|
102
103
|
export default Tooltip;
|
|
@@ -5,7 +5,7 @@ function _typeof3(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "funct
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports["default"] = exports.Size = exports.ColorTheme = exports.TriggerEvent = exports.Paddings = exports.Placement = void 0;
|
|
8
|
+
exports["default"] = exports.testIdPrefix = exports.Size = exports.ColorTheme = exports.TriggerEvent = exports.Paddings = exports.Placement = void 0;
|
|
9
9
|
|
|
10
10
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
11
11
|
|
|
@@ -106,6 +106,8 @@ var Size = {
|
|
|
106
106
|
BIG: 'big'
|
|
107
107
|
};
|
|
108
108
|
exports.Size = Size;
|
|
109
|
+
var testIdPrefix = 'Tooltip';
|
|
110
|
+
exports.testIdPrefix = testIdPrefix;
|
|
109
111
|
var cn = (0, _uiHelpers.cnCreate)('mfui-tooltip');
|
|
110
112
|
|
|
111
113
|
var Tooltip = function Tooltip(_ref) {
|
|
@@ -376,7 +378,8 @@ var Tooltip = function Tooltip(_ref) {
|
|
|
376
378
|
ref: setArrowElement,
|
|
377
379
|
style: styles.arrow
|
|
378
380
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
379
|
-
className: cn('arrow', [arrowClassName])
|
|
381
|
+
className: cn('arrow', [arrowClassName]),
|
|
382
|
+
"data-testid": "".concat(testIdPrefix, "-arrow")
|
|
380
383
|
}, /*#__PURE__*/_react["default"].createElement(Arrow, {
|
|
381
384
|
className: cn('arrow-inner')
|
|
382
385
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -396,7 +399,12 @@ var Tooltip = function Tooltip(_ref) {
|
|
|
396
399
|
})), isBigSize && renderedFullContent, !isBigSize && !!text && renderedText), /*#__PURE__*/_react["default"].createElement(_Tile["default"], {
|
|
397
400
|
radius: "rounded",
|
|
398
401
|
shadowLevel: "pressed",
|
|
399
|
-
className: cn('content-shadow', [contentShadowClassName])
|
|
402
|
+
className: cn('content-shadow', [contentShadowClassName]),
|
|
403
|
+
dataAttrs: {
|
|
404
|
+
root: {
|
|
405
|
+
'data-testid': "".concat(testIdPrefix, "-content-shadow")
|
|
406
|
+
}
|
|
407
|
+
}
|
|
400
408
|
})));
|
|
401
409
|
/* Не в эффекте, чтобы не создавать лишний перерендер компонента. Из-за синхронности кода в return уже будет элемент */
|
|
402
410
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@megafon/ui-core",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.6",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist",
|
|
6
6
|
"styles"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@babel/preset-env": "^7.8.6",
|
|
51
51
|
"@babel/preset-react": "^7.8.3",
|
|
52
52
|
"@babel/preset-typescript": "^7.8.3",
|
|
53
|
-
"@megafon/ui-icons": "^2.
|
|
53
|
+
"@megafon/ui-icons": "^2.19.0",
|
|
54
54
|
"@svgr/core": "^2.4.1",
|
|
55
55
|
"@testing-library/jest-dom": "5.16.2",
|
|
56
56
|
"@testing-library/react": "12.1.2",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"react-popper": "^2.2.3",
|
|
97
97
|
"swiper": "^6.5.6"
|
|
98
98
|
},
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "8eb28e98ee097039cd4e24d7ae88b521704fb92e"
|
|
100
100
|
}
|