@megafon/ui-shared 3.1.2 → 3.2.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 +30 -0
- package/dist/es/components/Instructions/Instructions.js +3 -2
- package/dist/es/components/StoreButton/StoreButton.d.ts +1 -1
- package/dist/es/components/StoreButton/StoreButton.js +2 -1
- package/dist/lib/components/Instructions/Instructions.js +3 -2
- package/dist/lib/components/StoreButton/StoreButton.d.ts +1 -1
- package/dist/lib/components/StoreButton/StoreButton.js +2 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,36 @@
|
|
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
|
+
# [3.2.0](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@3.1.4...@megafon/ui-shared@3.2.0) (2022-04-05)
|
7
|
+
|
8
|
+
|
9
|
+
### Features
|
10
|
+
|
11
|
+
* **instructions:** added children for Instruction component ([33b5296](https://github.com/MegafonWebLab/megafon-ui/commit/33b5296e7f1ccede197fed5d8887ec871586f0f8))
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
## [3.1.4](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@3.1.3...@megafon/ui-shared@3.1.4) (2022-03-21)
|
18
|
+
|
19
|
+
|
20
|
+
### Bug Fixes
|
21
|
+
|
22
|
+
* **storebutton:** fixed test for Select and update type for StoreButton ([8996754](https://github.com/MegafonWebLab/megafon-ui/commit/8996754482e9cf899fdcb0f488c8a9fa1afddd11))
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
## [3.1.3](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@3.1.2...@megafon/ui-shared@3.1.3) (2022-03-15)
|
29
|
+
|
30
|
+
**Note:** Version bump only for package @megafon/ui-shared
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
|
6
36
|
## [3.1.2](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@3.1.1...@megafon/ui-shared@3.1.2) (2022-03-14)
|
7
37
|
|
8
38
|
**Note:** Version bump only for package @megafon/ui-shared
|
@@ -48,7 +48,8 @@ var Instructions = function Instructions(_ref) {
|
|
48
48
|
_ref$pictureMask = _ref.pictureMask,
|
49
49
|
pictureMask = _ref$pictureMask === void 0 ? 'none' : _ref$pictureMask,
|
50
50
|
getSwiper = _ref.getSwiper,
|
51
|
-
text = _ref.additionalText
|
51
|
+
text = _ref.additionalText,
|
52
|
+
children = _ref.children;
|
52
53
|
|
53
54
|
var _React$useState = React.useState(),
|
54
55
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
@@ -211,7 +212,7 @@ var Instructions = function Instructions(_ref) {
|
|
211
212
|
className: cn('articles', {
|
212
213
|
align: pictureAlign
|
213
214
|
})
|
214
|
-
}, renderTitle('desktop'), renderMobileArticles(), renderDesktopArticles(), text && renderText())))));
|
215
|
+
}, renderTitle('desktop'), renderMobileArticles(), renderDesktopArticles(), text && renderText(), children)))));
|
215
216
|
};
|
216
217
|
|
217
218
|
Instructions.propTypes = {
|
@@ -7,7 +7,7 @@ export declare enum Theme {
|
|
7
7
|
HUAWEI_STORE = "huawei-store"
|
8
8
|
}
|
9
9
|
declare type LinkPropTypes = React.ComponentProps<typeof Link>;
|
10
|
-
export declare type Props = Required<Pick<LinkPropTypes, 'href'>> & Pick<LinkPropTypes, 'onClick' | 'dataAttrs'> & {
|
10
|
+
export declare type Props = Required<Pick<LinkPropTypes, 'href'>> & Pick<LinkPropTypes, 'target'> & Pick<LinkPropTypes, 'onClick' | 'dataAttrs'> & {
|
11
11
|
/** Тема кнопки */
|
12
12
|
theme: Theme;
|
13
13
|
/** Дополнительный класс */
|
@@ -51,6 +51,7 @@ StoreButton.propTypes = {
|
|
51
51
|
href: PropTypes.string.isRequired,
|
52
52
|
theme: PropTypes.oneOf(Object.values(Theme)).isRequired,
|
53
53
|
onClick: PropTypes.func,
|
54
|
-
className: PropTypes.string
|
54
|
+
className: PropTypes.string,
|
55
|
+
target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top'])
|
55
56
|
};
|
56
57
|
export default StoreButton;
|
@@ -66,7 +66,8 @@ var Instructions = function Instructions(_ref) {
|
|
66
66
|
_ref$pictureMask = _ref.pictureMask,
|
67
67
|
pictureMask = _ref$pictureMask === void 0 ? 'none' : _ref$pictureMask,
|
68
68
|
getSwiper = _ref.getSwiper,
|
69
|
-
text = _ref.additionalText
|
69
|
+
text = _ref.additionalText,
|
70
|
+
children = _ref.children;
|
70
71
|
|
71
72
|
var _React$useState = _react["default"].useState(),
|
72
73
|
_React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
|
@@ -239,7 +240,7 @@ var Instructions = function Instructions(_ref) {
|
|
239
240
|
className: cn('articles', {
|
240
241
|
align: pictureAlign
|
241
242
|
})
|
242
|
-
}, renderTitle('desktop'), renderMobileArticles(), renderDesktopArticles(), text && renderText())))));
|
243
|
+
}, renderTitle('desktop'), renderMobileArticles(), renderDesktopArticles(), text && renderText(), children)))));
|
243
244
|
};
|
244
245
|
|
245
246
|
Instructions.propTypes = {
|
@@ -7,7 +7,7 @@ export declare enum Theme {
|
|
7
7
|
HUAWEI_STORE = "huawei-store"
|
8
8
|
}
|
9
9
|
declare type LinkPropTypes = React.ComponentProps<typeof Link>;
|
10
|
-
export declare type Props = Required<Pick<LinkPropTypes, 'href'>> & Pick<LinkPropTypes, 'onClick' | 'dataAttrs'> & {
|
10
|
+
export declare type Props = Required<Pick<LinkPropTypes, 'href'>> & Pick<LinkPropTypes, 'target'> & Pick<LinkPropTypes, 'onClick' | 'dataAttrs'> & {
|
11
11
|
/** Тема кнопки */
|
12
12
|
theme: Theme;
|
13
13
|
/** Дополнительный класс */
|
@@ -73,7 +73,8 @@ StoreButton.propTypes = {
|
|
73
73
|
href: _propTypes["default"].string.isRequired,
|
74
74
|
theme: _propTypes["default"].oneOf(Object.values(Theme)).isRequired,
|
75
75
|
onClick: _propTypes["default"].func,
|
76
|
-
className: _propTypes["default"].string
|
76
|
+
className: _propTypes["default"].string,
|
77
|
+
target: _propTypes["default"].oneOf(['_self', '_blank', '_parent', '_top'])
|
77
78
|
};
|
78
79
|
var _default = StoreButton;
|
79
80
|
exports["default"] = _default;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@megafon/ui-shared",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.2.0",
|
4
4
|
"files": [
|
5
5
|
"dist"
|
6
6
|
],
|
@@ -52,7 +52,7 @@
|
|
52
52
|
"@babel/preset-env": "^7.8.6",
|
53
53
|
"@babel/preset-react": "^7.8.3",
|
54
54
|
"@babel/preset-typescript": "^7.8.3",
|
55
|
-
"@megafon/ui-icons": "^1.1.
|
55
|
+
"@megafon/ui-icons": "^1.1.1",
|
56
56
|
"@svgr/core": "^2.4.1",
|
57
57
|
"@types/enzyme": "^3.10.5",
|
58
58
|
"@types/enzyme-adapter-react-16": "^1.0.6",
|
@@ -82,13 +82,13 @@
|
|
82
82
|
},
|
83
83
|
"dependencies": {
|
84
84
|
"@babel/runtime": "^7.8.4",
|
85
|
-
"@megafon/ui-core": "^3.
|
86
|
-
"@megafon/ui-helpers": "^2.1.
|
85
|
+
"@megafon/ui-core": "^3.5.0",
|
86
|
+
"@megafon/ui-helpers": "^2.1.1",
|
87
87
|
"core-js": "^3.6.4",
|
88
88
|
"htmr": "^0.9.2",
|
89
89
|
"lodash.throttle": "^4.1.1",
|
90
90
|
"prop-types": "^15.7.2",
|
91
91
|
"swiper": "^6.5.6"
|
92
92
|
},
|
93
|
-
"gitHead": "
|
93
|
+
"gitHead": "48ac683c2daf04dfdc42d1359024800699f2e7dc"
|
94
94
|
}
|