@megafon/ui-shared 3.4.6 → 3.5.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,25 @@
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.5.1](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@3.5.0...@megafon/ui-shared@3.5.1) (2022-10-03)
7
+
8
+ **Note:** Version bump only for package @megafon/ui-shared
9
+
10
+
11
+
12
+
13
+
14
+ # [3.5.0](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@3.4.6...@megafon/ui-shared@3.5.0) (2022-09-14)
15
+
16
+
17
+ ### Features
18
+
19
+ * **videobanner:** add buttonTarget and linkTarget props ([96dcfbc](https://github.com/MegafonWebLab/megafon-ui/commit/96dcfbc4ecffeb9fca9e9e15d2a5434e1b978481))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [3.4.6](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@3.4.5...@megafon/ui-shared@3.4.6) (2022-09-06)
7
26
 
8
27
  **Note:** Version bump only for package @megafon/ui-shared
@@ -30,6 +30,8 @@ export interface IContent {
30
30
  buttonTitle?: string;
31
31
  /** Ссылка на кнопке */
32
32
  buttonHref?: string;
33
+ /** Target свойство кнопки */
34
+ buttonTarget?: '_self' | '_blank' | '_parent' | '_top';
33
35
  /** Добавляет атрибут download для тега <a> компонента Button */
34
36
  buttonDownload?: boolean;
35
37
  /** Цвет кнопки */
@@ -46,6 +48,8 @@ export interface IContent {
46
48
  linkTitle?: string;
47
49
  /** Адрес ссылки */
48
50
  linkUrl?: string;
51
+ /** Target свойство ссылки */
52
+ linkTarget?: '_self' | '_blank' | '_parent' | '_top';
49
53
  /** Добавляет атрибут download для тега <a> компонента TextLink */
50
54
  linkDownload?: boolean;
51
55
  /** Строка со стоимостью услуги */
@@ -79,6 +79,7 @@ var VideoBanner = function VideoBanner(_ref2) {
79
79
  description = _ref3.description,
80
80
  buttonTitle = _ref3.buttonTitle,
81
81
  buttonHref = _ref3.buttonHref,
82
+ buttonTarget = _ref3.buttonTarget,
82
83
  buttonDownload = _ref3.buttonDownload,
83
84
  _ref3$buttonColor = _ref3.buttonColor,
84
85
  buttonColor = _ref3$buttonColor === void 0 ? ButtonColor.GREEN : _ref3$buttonColor,
@@ -89,6 +90,7 @@ var VideoBanner = function VideoBanner(_ref2) {
89
90
  textColorMobile = _ref3.textColorMobile,
90
91
  linkTitle = _ref3.linkTitle,
91
92
  linkUrl = _ref3.linkUrl,
93
+ linkTarget = _ref3.linkTarget,
92
94
  linkDownload = _ref3.linkDownload,
93
95
  cost = _ref3.cost;
94
96
  return /*#__PURE__*/React.createElement(Grid, {
@@ -125,6 +127,7 @@ var VideoBanner = function VideoBanner(_ref2) {
125
127
  className: cn(ClassName.BUTTON, [classes.button]),
126
128
  theme: buttonColor,
127
129
  href: buttonHref,
130
+ target: buttonTarget,
128
131
  onClick: onButtonClick,
129
132
  download: buttonDownload
130
133
  }, buttonTitle), linkTitle && /*#__PURE__*/React.createElement(TextLink, {
@@ -134,6 +137,7 @@ var VideoBanner = function VideoBanner(_ref2) {
134
137
  className: cn(ClassName.LINK, [classes.link]),
135
138
  href: linkUrl,
136
139
  download: linkDownload,
140
+ target: linkTarget,
137
141
  onClick: onLinkClick
138
142
  }, linkTitle)))));
139
143
  }, [classes.button, classes.link, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.button, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.link]);
@@ -30,6 +30,8 @@ export interface IContent {
30
30
  buttonTitle?: string;
31
31
  /** Ссылка на кнопке */
32
32
  buttonHref?: string;
33
+ /** Target свойство кнопки */
34
+ buttonTarget?: '_self' | '_blank' | '_parent' | '_top';
33
35
  /** Добавляет атрибут download для тега <a> компонента Button */
34
36
  buttonDownload?: boolean;
35
37
  /** Цвет кнопки */
@@ -46,6 +48,8 @@ export interface IContent {
46
48
  linkTitle?: string;
47
49
  /** Адрес ссылки */
48
50
  linkUrl?: string;
51
+ /** Target свойство ссылки */
52
+ linkTarget?: '_self' | '_blank' | '_parent' | '_top';
49
53
  /** Добавляет атрибут download для тега <a> компонента TextLink */
50
54
  linkDownload?: boolean;
51
55
  /** Строка со стоимостью услуги */
@@ -112,6 +112,7 @@ var VideoBanner = function VideoBanner(_ref2) {
112
112
  description = _ref3.description,
113
113
  buttonTitle = _ref3.buttonTitle,
114
114
  buttonHref = _ref3.buttonHref,
115
+ buttonTarget = _ref3.buttonTarget,
115
116
  buttonDownload = _ref3.buttonDownload,
116
117
  _ref3$buttonColor = _ref3.buttonColor,
117
118
  buttonColor = _ref3$buttonColor === void 0 ? ButtonColor.GREEN : _ref3$buttonColor,
@@ -122,6 +123,7 @@ var VideoBanner = function VideoBanner(_ref2) {
122
123
  textColorMobile = _ref3.textColorMobile,
123
124
  linkTitle = _ref3.linkTitle,
124
125
  linkUrl = _ref3.linkUrl,
126
+ linkTarget = _ref3.linkTarget,
125
127
  linkDownload = _ref3.linkDownload,
126
128
  cost = _ref3.cost;
127
129
  return /*#__PURE__*/_react["default"].createElement(_uiCore.Grid, {
@@ -158,6 +160,7 @@ var VideoBanner = function VideoBanner(_ref2) {
158
160
  className: cn(ClassName.BUTTON, [classes.button]),
159
161
  theme: buttonColor,
160
162
  href: buttonHref,
163
+ target: buttonTarget,
161
164
  onClick: onButtonClick,
162
165
  download: buttonDownload
163
166
  }, buttonTitle), linkTitle && /*#__PURE__*/_react["default"].createElement(_uiCore.TextLink, {
@@ -167,6 +170,7 @@ var VideoBanner = function VideoBanner(_ref2) {
167
170
  className: cn(ClassName.LINK, [classes.link]),
168
171
  href: linkUrl,
169
172
  download: linkDownload,
173
+ target: linkTarget,
170
174
  onClick: onLinkClick
171
175
  }, linkTitle)))));
172
176
  }, [classes.button, classes.link, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.button, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.link]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megafon/ui-shared",
3
- "version": "3.4.6",
3
+ "version": "3.5.1",
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.14.0",
85
+ "@megafon/ui-core": "^3.15.0",
86
86
  "@megafon/ui-helpers": "^2.1.2",
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": "24435bfc98f949ea9e2d60a415d4e90554cb1166"
93
+ "gitHead": "16be55dd99791687663b209a67e4ab6ec485b19c"
94
94
  }