@megafon/ui-shared 3.1.4 → 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 CHANGED
@@ -3,6 +3,17 @@
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
+
6
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)
7
18
 
8
19
 
@@ -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 = {
@@ -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 = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megafon/ui-shared",
3
- "version": "3.1.4",
3
+ "version": "3.2.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -82,7 +82,7 @@
82
82
  },
83
83
  "dependencies": {
84
84
  "@babel/runtime": "^7.8.4",
85
- "@megafon/ui-core": "^3.4.0",
85
+ "@megafon/ui-core": "^3.5.0",
86
86
  "@megafon/ui-helpers": "^2.1.1",
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": "41f248304dfc4d0e060bf47b12b663077f215d5b"
93
+ "gitHead": "48ac683c2daf04dfdc42d1359024800699f2e7dc"
94
94
  }