@megafon/ui-shared 3.1.3 → 3.2.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 CHANGED
@@ -3,6 +3,39 @@
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.1](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@3.2.0...@megafon/ui-shared@3.2.1) (2022-04-11)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **colors:** fix colors usage in components: Notification, Preloader, Tile and Card ([96d0eef](https://github.com/MegafonWebLab/megafon-ui/commit/96d0eef51458b35c5b69c1677ec6f4a22f7f130d))
12
+
13
+
14
+
15
+
16
+
17
+ # [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)
18
+
19
+
20
+ ### Features
21
+
22
+ * **instructions:** added children for Instruction component ([33b5296](https://github.com/MegafonWebLab/megafon-ui/commit/33b5296e7f1ccede197fed5d8887ec871586f0f8))
23
+
24
+
25
+
26
+
27
+
28
+ ## [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)
29
+
30
+
31
+ ### Bug Fixes
32
+
33
+ * **storebutton:** fixed test for Select and update type for StoreButton ([8996754](https://github.com/MegafonWebLab/megafon-ui/commit/8996754482e9cf899fdcb0f488c8a9fa1afddd11))
34
+
35
+
36
+
37
+
38
+
6
39
  ## [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)
7
40
 
8
41
  **Note:** Version bump only for package @megafon/ui-shared
@@ -11,7 +11,7 @@ h5 {
11
11
  display: flex;
12
12
  border-radius: 8px;
13
13
  overflow: hidden;
14
- background-color: var(--background);
14
+ background-color: var(--base);
15
15
  -webkit-box-shadow: 0 0.25px 3px rgba(0, 0, 0, 0.25);
16
16
  box-shadow: 0 0.25px 3px rgba(0, 0, 0, 0.25);
17
17
  }
@@ -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;
@@ -11,7 +11,7 @@ h5 {
11
11
  display: flex;
12
12
  border-radius: 8px;
13
13
  overflow: hidden;
14
- background-color: var(--background);
14
+ background-color: var(--base);
15
15
  -webkit-box-shadow: 0 0.25px 3px rgba(0, 0, 0, 0.25);
16
16
  box-shadow: 0 0.25px 3px rgba(0, 0, 0, 0.25);
17
17
  }
@@ -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.1.3",
3
+ "version": "3.2.1",
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.0",
55
+ "@megafon/ui-icons": "^1.2.0",
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.3.1",
86
- "@megafon/ui-helpers": "^2.1.0",
85
+ "@megafon/ui-core": "^3.5.1",
86
+ "@megafon/ui-helpers": "^2.1.2",
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": "4ef906c6961b5da2721dcde19062766c4fe8ba84"
93
+ "gitHead": "f5ab6a57d56a26ac5ca11697e1ca650c053b6214"
94
94
  }