@megafon/ui-shared 3.1.1 → 3.1.4

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,33 @@
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.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
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **storebutton:** fixed test for Select and update type for StoreButton ([8996754](https://github.com/MegafonWebLab/megafon-ui/commit/8996754482e9cf899fdcb0f488c8a9fa1afddd11))
12
+
13
+
14
+
15
+
16
+
17
+ ## [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)
18
+
19
+ **Note:** Version bump only for package @megafon/ui-shared
20
+
21
+
22
+
23
+
24
+
25
+ ## [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)
26
+
27
+ **Note:** Version bump only for package @megafon/ui-shared
28
+
29
+
30
+
31
+
32
+
6
33
  ## [3.1.1](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@3.1.0...@megafon/ui-shared@3.1.1) (2022-02-28)
7
34
 
8
35
  **Note:** Version bump only for package @megafon/ui-shared
@@ -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;
@@ -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.1",
3
+ "version": "3.1.4",
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.0.2",
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.2.0",
86
- "@megafon/ui-helpers": "^2.0.1",
85
+ "@megafon/ui-core": "^3.4.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": "c0a542f967f26e925dfb99dd6e07a2df2e97be14"
93
+ "gitHead": "41f248304dfc4d0e060bf47b12b663077f215d5b"
94
94
  }