@megafon/ui-shared 6.8.0 → 6.9.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 +2471 -0
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.d.ts +3 -1
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.js +5 -1
- package/dist/es/helpers/getColumnConfig.d.ts +1 -1
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.d.ts +3 -1
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.js +5 -1
- package/dist/lib/helpers/getColumnConfig.d.ts +1 -1
- package/package.json +4 -4
@@ -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> для кнопки */
|
@@ -15,6 +15,8 @@ var ButtonLinkBox = function ButtonLinkBox(_ref) {
|
|
15
15
|
buttonDownload = _ref.buttonDownload,
|
16
16
|
_ref$buttonColor = _ref.buttonColor,
|
17
17
|
buttonColor = _ref$buttonColor === void 0 ? 'green' : _ref$buttonColor,
|
18
|
+
_ref$buttonType = _ref.buttonType,
|
19
|
+
buttonType = _ref$buttonType === void 0 ? 'primary' : _ref$buttonType,
|
18
20
|
buttonRel = _ref.buttonRel,
|
19
21
|
linkTitle = _ref.linkTitle,
|
20
22
|
linkUrl = _ref.linkUrl,
|
@@ -42,6 +44,7 @@ var ButtonLinkBox = function ButtonLinkBox(_ref) {
|
|
42
44
|
className: classes.button,
|
43
45
|
href: buttonUrl,
|
44
46
|
theme: buttonColor,
|
47
|
+
type: buttonType,
|
45
48
|
onClick: onButtonClick,
|
46
49
|
target: buttonTarget,
|
47
50
|
download: buttonDownload,
|
@@ -80,7 +83,8 @@ ButtonLinkBox.propTypes = {
|
|
80
83
|
buttonTitle: PropTypes.string,
|
81
84
|
buttonUrl: PropTypes.string,
|
82
85
|
buttonDownload: PropTypes.bool,
|
83
|
-
buttonColor: PropTypes.oneOf(['green', 'purple']),
|
86
|
+
buttonColor: PropTypes.oneOf(['green', 'purple', 'green-soft', 'purple-soft', 'black']),
|
87
|
+
buttonType: PropTypes.oneOf(['primary', 'outline']),
|
84
88
|
buttonRel: PropTypes.string,
|
85
89
|
linkTitle: PropTypes.string,
|
86
90
|
linkUrl: PropTypes.string,
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
export declare const getColumnConfig: (isFullWidth: boolean) => Pick<React.PropsWithChildren<import("
|
2
|
+
export declare const getColumnConfig: (isFullWidth: boolean) => Pick<React.PropsWithChildren<import("@megafon/ui-core/dist/lib/components/Grid/GridColumn").IGridColumn>, "all" | "wide" | "mobile" | "desktop" | "tablet">;
|
@@ -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> для кнопки */
|
@@ -35,6 +35,8 @@ var ButtonLinkBox = function ButtonLinkBox(_ref) {
|
|
35
35
|
buttonDownload = _ref.buttonDownload,
|
36
36
|
_ref$buttonColor = _ref.buttonColor,
|
37
37
|
buttonColor = _ref$buttonColor === void 0 ? 'green' : _ref$buttonColor,
|
38
|
+
_ref$buttonType = _ref.buttonType,
|
39
|
+
buttonType = _ref$buttonType === void 0 ? 'primary' : _ref$buttonType,
|
38
40
|
buttonRel = _ref.buttonRel,
|
39
41
|
linkTitle = _ref.linkTitle,
|
40
42
|
linkUrl = _ref.linkUrl,
|
@@ -62,6 +64,7 @@ var ButtonLinkBox = function ButtonLinkBox(_ref) {
|
|
62
64
|
className: classes.button,
|
63
65
|
href: buttonUrl,
|
64
66
|
theme: buttonColor,
|
67
|
+
type: buttonType,
|
65
68
|
onClick: onButtonClick,
|
66
69
|
target: buttonTarget,
|
67
70
|
download: buttonDownload,
|
@@ -100,7 +103,8 @@ ButtonLinkBox.propTypes = {
|
|
100
103
|
buttonTitle: PropTypes.string,
|
101
104
|
buttonUrl: PropTypes.string,
|
102
105
|
buttonDownload: PropTypes.bool,
|
103
|
-
buttonColor: PropTypes.oneOf(['green', 'purple']),
|
106
|
+
buttonColor: PropTypes.oneOf(['green', 'purple', 'green-soft', 'purple-soft', 'black']),
|
107
|
+
buttonType: PropTypes.oneOf(['primary', 'outline']),
|
104
108
|
buttonRel: PropTypes.string,
|
105
109
|
linkTitle: PropTypes.string,
|
106
110
|
linkUrl: PropTypes.string,
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
export declare const getColumnConfig: (isFullWidth: boolean) => Pick<React.PropsWithChildren<import("
|
2
|
+
export declare const getColumnConfig: (isFullWidth: boolean) => Pick<React.PropsWithChildren<import("@megafon/ui-core/dist/lib/components/Grid/GridColumn").IGridColumn>, "all" | "wide" | "mobile" | "desktop" | "tablet">;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@megafon/ui-shared",
|
3
|
-
"version": "6.
|
3
|
+
"version": "6.9.1",
|
4
4
|
"files": [
|
5
5
|
"dist"
|
6
6
|
],
|
@@ -48,7 +48,7 @@
|
|
48
48
|
"@babel/preset-env": "^7.8.6",
|
49
49
|
"@babel/preset-react": "^7.8.3",
|
50
50
|
"@babel/preset-typescript": "^7.8.3",
|
51
|
-
"@megafon/ui-icons": "^2.
|
51
|
+
"@megafon/ui-icons": "^2.31.1",
|
52
52
|
"@svgr/core": "^2.4.1",
|
53
53
|
"@testing-library/jest-dom": "5.16.2",
|
54
54
|
"@testing-library/react": "12.1.2",
|
@@ -82,7 +82,7 @@
|
|
82
82
|
},
|
83
83
|
"dependencies": {
|
84
84
|
"@babel/runtime": "^7.8.4",
|
85
|
-
"@megafon/ui-core": "^6.4.
|
85
|
+
"@megafon/ui-core": "^6.4.4",
|
86
86
|
"@megafon/ui-helpers": "^2.6.0",
|
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": "
|
93
|
+
"gitHead": "cb2d3e9827cb0754536a50f64c09a3b4a37af255"
|
94
94
|
}
|