@megafon/ui-shared 5.2.1 → 5.2.3
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 +22 -0
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.js +1 -1
- package/dist/es/components/Instructions/img/android.png +0 -0
- package/dist/es/components/Instructions/img/blackIphone.png +0 -0
- package/dist/es/components/Instructions/img/laptop.png +0 -0
- package/dist/es/components/Instructions/img/newIphone.png +0 -0
- package/dist/es/components/Instructions/img/whiteIphone.png +0 -0
- package/dist/es/components/StoreBanner/StoreBanner.d.ts +1 -0
- package/dist/es/components/StoreBanner/StoreBanner.js +4 -2
- package/dist/es/components/StoreBanner/doc/img/new-iphone-screen.png +0 -0
- package/dist/es/components/StoreBanner/doc/img/qr-code.png +0 -0
- package/dist/es/components/StoreBanner/doc/img/screen.png +0 -0
- package/dist/es/components/StoreBanner/img/android.png +0 -0
- package/dist/es/components/StoreBanner/img/black-iphone.png +0 -0
- package/dist/es/components/StoreBanner/img/new-iphone.png +0 -0
- package/dist/es/components/StoreBanner/img/white-iphone.png +0 -0
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.js +15 -3
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.js +1 -1
- package/dist/lib/components/Instructions/img/android.png +0 -0
- package/dist/lib/components/Instructions/img/blackIphone.png +0 -0
- package/dist/lib/components/Instructions/img/laptop.png +0 -0
- package/dist/lib/components/Instructions/img/newIphone.png +0 -0
- package/dist/lib/components/Instructions/img/whiteIphone.png +0 -0
- package/dist/lib/components/StoreBanner/StoreBanner.d.ts +1 -0
- package/dist/lib/components/StoreBanner/StoreBanner.js +4 -2
- package/dist/lib/components/StoreBanner/doc/img/new-iphone-screen.png +0 -0
- package/dist/lib/components/StoreBanner/doc/img/qr-code.png +0 -0
- package/dist/lib/components/StoreBanner/doc/img/screen.png +0 -0
- package/dist/lib/components/StoreBanner/img/android.png +0 -0
- package/dist/lib/components/StoreBanner/img/black-iphone.png +0 -0
- package/dist/lib/components/StoreBanner/img/new-iphone.png +0 -0
- package/dist/lib/components/StoreBanner/img/white-iphone.png +0 -0
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.js +15 -3
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,28 @@
|
|
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.2.3](https://hq-gitlab.megafon.ru/site-portal/services/megafon-ui/compare/@megafon/ui-shared@5.2.2...@megafon/ui-shared@5.2.3) (2023-11-22)
|
7
|
+
|
8
|
+
|
9
|
+
### Bug Fixes
|
10
|
+
|
11
|
+
* **buttonlinkbox:** fixed align prop type ([2853625](https://hq-gitlab.megafon.ru/site-portal/services/megafon-ui/commit/2853625a89a85f3cdb2f92a642a3331c95e23c4c))
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
## [5.2.2](https://hq-gitlab.megafon.ru/site-portal/services/megafon-ui/compare/@megafon/ui-shared@5.2.1...@megafon/ui-shared@5.2.2) (2023-11-08)
|
18
|
+
|
19
|
+
|
20
|
+
### Bug Fixes
|
21
|
+
|
22
|
+
* **storebanner:** add button class ([80645ab](https://hq-gitlab.megafon.ru/site-portal/services/megafon-ui/commit/80645ab5a8a634746632ddb6c997a7045e431796))
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
6
28
|
## [5.2.1](https://hq-gitlab.megafon.ru/site-portal/services/megafon-ui/compare/@megafon/ui-shared@5.2.0...@megafon/ui-shared@5.2.1) (2023-10-17)
|
7
29
|
|
8
30
|
**Note:** Version bump only for package @megafon/ui-shared
|
@@ -86,7 +86,7 @@ ButtonLinkBox.propTypes = {
|
|
86
86
|
linkUrl: PropTypes.string,
|
87
87
|
linkDownload: PropTypes.bool,
|
88
88
|
linkRel: PropTypes.string,
|
89
|
-
align: PropTypes.oneOf(['center']),
|
89
|
+
align: PropTypes.oneOf(['center', 'left']),
|
90
90
|
onButtonClick: PropTypes.func,
|
91
91
|
onLinkClick: PropTypes.func
|
92
92
|
};
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -33,6 +33,7 @@ var StoreBanner = function StoreBanner(_ref) {
|
|
33
33
|
huaweiLinkClassName = _ref$classes.huaweiLink,
|
34
34
|
miStoreLinkClassName = _ref$classes.miStoreLink,
|
35
35
|
ruStoreLinkClassName = _ref$classes.ruStoreLink,
|
36
|
+
buttonClassName = _ref$classes.button,
|
36
37
|
title = _ref.title,
|
37
38
|
text = _ref.text,
|
38
39
|
linkApple = _ref.linkApple,
|
@@ -166,7 +167,7 @@ var StoreBanner = function StoreBanner(_ref) {
|
|
166
167
|
dataAttrs: {
|
167
168
|
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.button
|
168
169
|
},
|
169
|
-
className: cn('button'),
|
170
|
+
className: cn('button', [buttonClassName]),
|
170
171
|
href: linkButton,
|
171
172
|
rel: rel,
|
172
173
|
theme: theme === 'green' ? 'purple' : 'green'
|
@@ -214,7 +215,8 @@ StoreBanner.propTypes = {
|
|
214
215
|
googleLink: PropTypes.string,
|
215
216
|
huaweiLink: PropTypes.string,
|
216
217
|
miStoreLink: PropTypes.string,
|
217
|
-
ruStoreLink: PropTypes.string
|
218
|
+
ruStoreLink: PropTypes.string,
|
219
|
+
button: PropTypes.string
|
218
220
|
}),
|
219
221
|
rootRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
|
220
222
|
current: PropTypes.elementType
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -6,6 +6,7 @@ import { Header, Paragraph, Grid, GridColumn } from '@megafon/ui-core';
|
|
6
6
|
import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
7
7
|
import * as PropTypes from 'prop-types';
|
8
8
|
import "./TitleDescriptionBox.css";
|
9
|
+
var testIdPrefix = 'TitleDescriptionBox';
|
9
10
|
var cn = cnCreate('mfui-title-description-box');
|
10
11
|
|
11
12
|
var TitleDescriptionBox = function TitleDescriptionBox(_ref) {
|
@@ -21,12 +22,18 @@ var TitleDescriptionBox = function TitleDescriptionBox(_ref) {
|
|
21
22
|
return /*#__PURE__*/React.createElement(Paragraph, {
|
22
23
|
className: cn('item'),
|
23
24
|
hasMargin: false,
|
24
|
-
color: "inherit"
|
25
|
+
color: "inherit",
|
26
|
+
dataAttrs: {
|
27
|
+
root: {
|
28
|
+
'data-testid': "".concat(testIdPrefix, "-description-text")
|
29
|
+
}
|
30
|
+
}
|
25
31
|
}, description);
|
26
32
|
}
|
27
33
|
|
28
34
|
return /*#__PURE__*/React.createElement("div", {
|
29
|
-
className: cn('description')
|
35
|
+
className: cn('description'),
|
36
|
+
"data-testid": "".concat(testIdPrefix, "-description-node")
|
30
37
|
}, description);
|
31
38
|
}, [description]);
|
32
39
|
return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
@@ -36,7 +43,12 @@ var TitleDescriptionBox = function TitleDescriptionBox(_ref) {
|
|
36
43
|
}, className),
|
37
44
|
ref: rootRef
|
38
45
|
}), /*#__PURE__*/React.createElement(Grid, {
|
39
|
-
hAlign: align
|
46
|
+
hAlign: align,
|
47
|
+
dataAttrs: {
|
48
|
+
container: {
|
49
|
+
'data-testid': "".concat(testIdPrefix, "-grid")
|
50
|
+
}
|
51
|
+
}
|
40
52
|
}, /*#__PURE__*/React.createElement(GridColumn, {
|
41
53
|
wide: "8",
|
42
54
|
desktop: "10"
|
@@ -106,7 +106,7 @@ ButtonLinkBox.propTypes = {
|
|
106
106
|
linkUrl: PropTypes.string,
|
107
107
|
linkDownload: PropTypes.bool,
|
108
108
|
linkRel: PropTypes.string,
|
109
|
-
align: PropTypes.oneOf(['center']),
|
109
|
+
align: PropTypes.oneOf(['center', 'left']),
|
110
110
|
onButtonClick: PropTypes.func,
|
111
111
|
onLinkClick: PropTypes.func
|
112
112
|
};
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -56,6 +56,7 @@ var StoreBanner = function StoreBanner(_ref) {
|
|
56
56
|
huaweiLinkClassName = _ref$classes.huaweiLink,
|
57
57
|
miStoreLinkClassName = _ref$classes.miStoreLink,
|
58
58
|
ruStoreLinkClassName = _ref$classes.ruStoreLink,
|
59
|
+
buttonClassName = _ref$classes.button,
|
59
60
|
title = _ref.title,
|
60
61
|
text = _ref.text,
|
61
62
|
linkApple = _ref.linkApple,
|
@@ -189,7 +190,7 @@ var StoreBanner = function StoreBanner(_ref) {
|
|
189
190
|
dataAttrs: {
|
190
191
|
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.button
|
191
192
|
},
|
192
|
-
className: cn('button'),
|
193
|
+
className: cn('button', [buttonClassName]),
|
193
194
|
href: linkButton,
|
194
195
|
rel: rel,
|
195
196
|
theme: theme === 'green' ? 'purple' : 'green'
|
@@ -237,7 +238,8 @@ StoreBanner.propTypes = {
|
|
237
238
|
googleLink: _propTypes["default"].string,
|
238
239
|
huaweiLink: _propTypes["default"].string,
|
239
240
|
miStoreLink: _propTypes["default"].string,
|
240
|
-
ruStoreLink: _propTypes["default"].string
|
241
|
+
ruStoreLink: _propTypes["default"].string,
|
242
|
+
button: _propTypes["default"].string
|
241
243
|
}),
|
242
244
|
rootRef: _propTypes["default"].oneOfType([_propTypes["default"].func, _propTypes["default"].oneOfType([_propTypes["default"].shape({
|
243
245
|
current: _propTypes["default"].elementType
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -27,6 +27,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
27
27
|
|
28
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
29
29
|
|
30
|
+
var testIdPrefix = 'TitleDescriptionBox';
|
30
31
|
var cn = (0, _uiHelpers.cnCreate)('mfui-title-description-box');
|
31
32
|
|
32
33
|
var TitleDescriptionBox = function TitleDescriptionBox(_ref) {
|
@@ -42,12 +43,18 @@ var TitleDescriptionBox = function TitleDescriptionBox(_ref) {
|
|
42
43
|
return /*#__PURE__*/React.createElement(_uiCore.Paragraph, {
|
43
44
|
className: cn('item'),
|
44
45
|
hasMargin: false,
|
45
|
-
color: "inherit"
|
46
|
+
color: "inherit",
|
47
|
+
dataAttrs: {
|
48
|
+
root: {
|
49
|
+
'data-testid': "".concat(testIdPrefix, "-description-text")
|
50
|
+
}
|
51
|
+
}
|
46
52
|
}, description);
|
47
53
|
}
|
48
54
|
|
49
55
|
return /*#__PURE__*/React.createElement("div", {
|
50
|
-
className: cn('description')
|
56
|
+
className: cn('description'),
|
57
|
+
"data-testid": "".concat(testIdPrefix, "-description-node")
|
51
58
|
}, description);
|
52
59
|
}, [description]);
|
53
60
|
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
@@ -57,7 +64,12 @@ var TitleDescriptionBox = function TitleDescriptionBox(_ref) {
|
|
57
64
|
}, className),
|
58
65
|
ref: rootRef
|
59
66
|
}), /*#__PURE__*/React.createElement(_uiCore.Grid, {
|
60
|
-
hAlign: align
|
67
|
+
hAlign: align,
|
68
|
+
dataAttrs: {
|
69
|
+
container: {
|
70
|
+
'data-testid': "".concat(testIdPrefix, "-grid")
|
71
|
+
}
|
72
|
+
}
|
61
73
|
}, /*#__PURE__*/React.createElement(_uiCore.GridColumn, {
|
62
74
|
wide: "8",
|
63
75
|
desktop: "10"
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@megafon/ui-shared",
|
3
|
-
"version": "5.2.
|
3
|
+
"version": "5.2.3",
|
4
4
|
"files": [
|
5
5
|
"dist"
|
6
6
|
],
|
@@ -48,7 +48,7 @@
|
|
48
48
|
"@babel/preset-env": "^7.8.6",
|
49
49
|
"@babel/preset-react": "^7.8.3",
|
50
50
|
"@babel/preset-typescript": "^7.8.3",
|
51
|
-
"@megafon/ui-icons": "^2.
|
51
|
+
"@megafon/ui-icons": "^2.15.0",
|
52
52
|
"@svgr/core": "^2.4.1",
|
53
53
|
"@testing-library/jest-dom": "5.16.2",
|
54
54
|
"@testing-library/react": "12.1.2",
|
@@ -82,7 +82,7 @@
|
|
82
82
|
},
|
83
83
|
"dependencies": {
|
84
84
|
"@babel/runtime": "^7.8.4",
|
85
|
-
"@megafon/ui-core": "^5.
|
85
|
+
"@megafon/ui-core": "^5.4.0",
|
86
86
|
"@megafon/ui-helpers": "^2.5.3",
|
87
87
|
"core-js": "^3.6.4",
|
88
88
|
"htmr": "^0.9.2",
|
@@ -90,5 +90,5 @@
|
|
90
90
|
"prop-types": "^15.7.2",
|
91
91
|
"swiper": "^6.5.6"
|
92
92
|
},
|
93
|
-
"gitHead": "
|
93
|
+
"gitHead": "e78c7c397c514016ee74020939dc3807e09bf49a"
|
94
94
|
}
|