@megafon/ui-shared 7.3.0 → 7.4.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.
@@ -24,7 +24,9 @@ export interface IButtonLinkBoxProps {
|
|
24
24
|
/** Добавляет атрибут download для тега <a> компонента Button */
|
25
25
|
buttonDownload?: boolean;
|
26
26
|
/** Цвет кнопки */
|
27
|
-
buttonColor?: 'green' | 'purple';
|
27
|
+
buttonColor?: 'green' | 'purple' | 'green-soft' | 'purple-soft' | 'black';
|
28
|
+
/** Тип кнопки */
|
29
|
+
buttonType?: 'primary' | 'outline';
|
28
30
|
/** Target свойство кнопки */
|
29
31
|
buttonTarget?: '_self' | '_blank' | '_parent' | '_top';
|
30
32
|
/** Rel - атрибут тега <a> для кнопки */
|
@@ -13,6 +13,8 @@ var ButtonLinkBox = function ButtonLinkBox(_ref) {
|
|
13
13
|
buttonDownload = _ref.buttonDownload,
|
14
14
|
_ref$buttonColor = _ref.buttonColor,
|
15
15
|
buttonColor = _ref$buttonColor === void 0 ? 'green' : _ref$buttonColor,
|
16
|
+
_ref$buttonType = _ref.buttonType,
|
17
|
+
buttonType = _ref$buttonType === void 0 ? 'primary' : _ref$buttonType,
|
16
18
|
buttonRel = _ref.buttonRel,
|
17
19
|
linkTitle = _ref.linkTitle,
|
18
20
|
linkUrl = _ref.linkUrl,
|
@@ -40,6 +42,7 @@ var ButtonLinkBox = function ButtonLinkBox(_ref) {
|
|
40
42
|
className: classes.button,
|
41
43
|
href: buttonUrl,
|
42
44
|
theme: buttonColor,
|
45
|
+
type: buttonType,
|
43
46
|
onClick: onButtonClick,
|
44
47
|
target: buttonTarget,
|
45
48
|
download: buttonDownload,
|
@@ -24,7 +24,9 @@ export interface IButtonLinkBoxProps {
|
|
24
24
|
/** Добавляет атрибут download для тега <a> компонента Button */
|
25
25
|
buttonDownload?: boolean;
|
26
26
|
/** Цвет кнопки */
|
27
|
-
buttonColor?: 'green' | 'purple';
|
27
|
+
buttonColor?: 'green' | 'purple' | 'green-soft' | 'purple-soft' | 'black';
|
28
|
+
/** Тип кнопки */
|
29
|
+
buttonType?: 'primary' | 'outline';
|
28
30
|
/** Target свойство кнопки */
|
29
31
|
buttonTarget?: '_self' | '_blank' | '_parent' | '_top';
|
30
32
|
/** Rel - атрибут тега <a> для кнопки */
|
@@ -22,6 +22,8 @@ var ButtonLinkBox = function ButtonLinkBox(_ref) {
|
|
22
22
|
buttonDownload = _ref.buttonDownload,
|
23
23
|
_ref$buttonColor = _ref.buttonColor,
|
24
24
|
buttonColor = _ref$buttonColor === void 0 ? 'green' : _ref$buttonColor,
|
25
|
+
_ref$buttonType = _ref.buttonType,
|
26
|
+
buttonType = _ref$buttonType === void 0 ? 'primary' : _ref$buttonType,
|
25
27
|
buttonRel = _ref.buttonRel,
|
26
28
|
linkTitle = _ref.linkTitle,
|
27
29
|
linkUrl = _ref.linkUrl,
|
@@ -49,6 +51,7 @@ var ButtonLinkBox = function ButtonLinkBox(_ref) {
|
|
49
51
|
className: classes.button,
|
50
52
|
href: buttonUrl,
|
51
53
|
theme: buttonColor,
|
54
|
+
type: buttonType,
|
52
55
|
onClick: onButtonClick,
|
53
56
|
target: buttonTarget,
|
54
57
|
download: buttonDownload,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@megafon/ui-shared",
|
3
|
-
"version": "7.
|
3
|
+
"version": "7.4.0",
|
4
4
|
"files": [
|
5
5
|
"dist"
|
6
6
|
],
|
@@ -77,13 +77,13 @@
|
|
77
77
|
},
|
78
78
|
"dependencies": {
|
79
79
|
"@babel/runtime": "^7.8.4",
|
80
|
-
"@megafon/ui-core": "^7.2.
|
80
|
+
"@megafon/ui-core": "^7.2.1",
|
81
81
|
"@megafon/ui-helpers": "^3.1.1",
|
82
|
-
"@megafon/ui-icons": "^3.
|
82
|
+
"@megafon/ui-icons": "^3.2.0",
|
83
83
|
"core-js": "^3.6.4",
|
84
84
|
"htmr": "^1.0.2",
|
85
85
|
"lodash.throttle": "^4.1.1",
|
86
86
|
"swiper": "^11.1.1"
|
87
87
|
},
|
88
|
-
"gitHead": "
|
88
|
+
"gitHead": "30ed829a286373798a4328c575e1b23f8b726b41"
|
89
89
|
}
|