@megafon/ui-shared 4.17.0 → 4.18.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.
- package/CHANGELOG.md +19 -0
- package/dist/es/components/Instructions/Instructions.css +7 -0
- package/dist/es/components/Instructions/Instructions.d.ts +8 -1
- package/dist/es/components/Instructions/Instructions.js +8 -1
- package/dist/es/components/StoreBanner/StoreBanner.d.ts +8 -2
- package/dist/es/components/StoreBanner/StoreBanner.js +18 -0
- package/dist/es/components/StoreButton/StoreButton.css +3 -0
- package/dist/es/components/StoreButton/StoreButton.d.ts +1 -0
- package/dist/es/components/StoreButton/StoreButton.js +1 -0
- package/dist/es/components/StoreButton/img/app-store.png +0 -0
- package/dist/es/components/StoreButton/img/galaxy-store.png +0 -0
- package/dist/es/components/StoreButton/img/google-play.png +0 -0
- package/dist/es/components/StoreButton/img/huawei-store.png +0 -0
- package/dist/es/components/StoreButton/img/mi-store.png +0 -0
- package/dist/es/components/StoreButton/img/ru-store.png +0 -0
- package/dist/lib/components/Instructions/Instructions.css +7 -0
- package/dist/lib/components/Instructions/Instructions.d.ts +8 -1
- package/dist/lib/components/Instructions/Instructions.js +10 -2
- package/dist/lib/components/StoreBanner/StoreBanner.d.ts +8 -2
- package/dist/lib/components/StoreBanner/StoreBanner.js +18 -0
- package/dist/lib/components/StoreButton/StoreButton.css +3 -0
- package/dist/lib/components/StoreButton/StoreButton.d.ts +1 -0
- package/dist/lib/components/StoreButton/StoreButton.js +1 -0
- package/dist/lib/components/StoreButton/img/app-store.png +0 -0
- package/dist/lib/components/StoreButton/img/galaxy-store.png +0 -0
- package/dist/lib/components/StoreButton/img/google-play.png +0 -0
- package/dist/lib/components/StoreButton/img/huawei-store.png +0 -0
- package/dist/lib/components/StoreButton/img/mi-store.png +0 -0
- package/dist/lib/components/StoreButton/img/ru-store.png +0 -0
- package/package.json +3 -3
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
|
+
# [4.18.0](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@4.17.0...@megafon/ui-shared@4.18.0) (2023-04-14)
|
7
|
+
|
8
|
+
|
9
|
+
### Bug Fixes
|
10
|
+
|
11
|
+
* **instructions:** fixed screen scroll for iphone devices ([fae9838](https://github.com/MegafonWebLab/megafon-ui/commit/fae98383271ed7a291665cbb7f9011d17ec0bc93))
|
12
|
+
* **storebanner:** fix cn for galaxy store ([02f484b](https://github.com/MegafonWebLab/megafon-ui/commit/02f484bee25550f5091a85b1d08a8252a6f361ee))
|
13
|
+
* **storebutton:** compress png buttons ([3e0a2a0](https://github.com/MegafonWebLab/megafon-ui/commit/3e0a2a006dd7d102478164acfcda75816d07b7a9))
|
14
|
+
|
15
|
+
|
16
|
+
### Features
|
17
|
+
|
18
|
+
* **instructions:** add prop pictureVerticalAlign ([e380224](https://github.com/MegafonWebLab/megafon-ui/commit/e38022435ce3a5eaf2864bf6ed5a0028e81c9ec1))
|
19
|
+
* **storebanner:** add Samsung Galaxy Store button ([ed28f42](https://github.com/MegafonWebLab/megafon-ui/commit/ed28f4270033c91acf23cbe113158f1051c6eff7))
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
6
25
|
# [4.17.0](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@4.16.0...@megafon/ui-shared@4.17.0) (2023-04-11)
|
7
26
|
|
8
27
|
|
@@ -81,6 +81,12 @@ h5 {
|
|
81
81
|
margin-right: 40px;
|
82
82
|
}
|
83
83
|
}
|
84
|
+
@media screen and (min-width: 1024px) {
|
85
|
+
.mfui-instructions__picture_vertical-align_top {
|
86
|
+
-ms-flex-item-align: start;
|
87
|
+
align-self: flex-start;
|
88
|
+
}
|
89
|
+
}
|
84
90
|
.mfui-instructions_mask_none .mfui-instructions__slide {
|
85
91
|
display: -webkit-box;
|
86
92
|
display: -ms-flexbox;
|
@@ -119,6 +125,7 @@ h5 {
|
|
119
125
|
}
|
120
126
|
.mfui-instructions__device-screen {
|
121
127
|
overflow: hidden;
|
128
|
+
pointer-events: none;
|
122
129
|
}
|
123
130
|
@media screen and (max-width: 1023px) {
|
124
131
|
.mfui-instructions_mask_black-iphone .mfui-instructions__img-wrapper,
|
@@ -5,6 +5,10 @@ export declare const pictureAlignTypes: {
|
|
5
5
|
readonly LEFT: "left";
|
6
6
|
readonly RIGHT: "right";
|
7
7
|
};
|
8
|
+
export declare const pictureVerticalAlignTypes: {
|
9
|
+
CENTER: string;
|
10
|
+
TOP: string;
|
11
|
+
};
|
8
12
|
export declare const pictureMaskTypes: {
|
9
13
|
readonly ANDROID: "android";
|
10
14
|
readonly NEW_IPHONE: "new-iphone";
|
@@ -15,6 +19,7 @@ export declare const pictureMaskTypes: {
|
|
15
19
|
readonly NONE: "none";
|
16
20
|
};
|
17
21
|
declare type PictureAlignTypesType = typeof pictureAlignTypes[keyof typeof pictureAlignTypes];
|
22
|
+
declare type PictureVerticalAlignTypesType = typeof pictureVerticalAlignTypes[keyof typeof pictureVerticalAlignTypes];
|
18
23
|
declare type PictureMaskTypesType = typeof pictureMaskTypes[keyof typeof pictureMaskTypes];
|
19
24
|
export declare type InstructionItemType = {
|
20
25
|
title: string | React.ReactNode | React.ReactNode[];
|
@@ -49,8 +54,10 @@ export interface IInstructionsProps {
|
|
49
54
|
instructionItems: InstructionItemType[];
|
50
55
|
/** Описание после инструкции */
|
51
56
|
additionalText?: string;
|
52
|
-
/** Расположение изображения */
|
57
|
+
/** Расположение изображения по горизонтали */
|
53
58
|
pictureAlign?: PictureAlignTypesType;
|
59
|
+
/** Расположение изображения по вертикали */
|
60
|
+
pictureVerticalAlign?: PictureVerticalAlignTypesType;
|
54
61
|
/** Маска изображения */
|
55
62
|
pictureMask?: PictureMaskTypesType;
|
56
63
|
/** Ref на swiper */
|
@@ -15,6 +15,10 @@ export var pictureAlignTypes = {
|
|
15
15
|
LEFT: 'left',
|
16
16
|
RIGHT: 'right'
|
17
17
|
};
|
18
|
+
export var pictureVerticalAlignTypes = {
|
19
|
+
CENTER: 'center',
|
20
|
+
TOP: 'top'
|
21
|
+
};
|
18
22
|
export var pictureMaskTypes = {
|
19
23
|
ANDROID: 'android',
|
20
24
|
NEW_IPHONE: 'new-iphone',
|
@@ -44,6 +48,8 @@ var Instructions = function Instructions(_ref) {
|
|
44
48
|
instructionItems = _ref.instructionItems,
|
45
49
|
_ref$pictureAlign = _ref.pictureAlign,
|
46
50
|
pictureAlign = _ref$pictureAlign === void 0 ? 'left' : _ref$pictureAlign,
|
51
|
+
_ref$pictureVerticalA = _ref.pictureVerticalAlign,
|
52
|
+
pictureVerticalAlign = _ref$pictureVerticalA === void 0 ? 'center' : _ref$pictureVerticalA,
|
47
53
|
_ref$pictureMask = _ref.pictureMask,
|
48
54
|
pictureMask = _ref$pictureMask === void 0 ? 'none' : _ref$pictureMask,
|
49
55
|
getSwiper = _ref.getSwiper,
|
@@ -214,7 +220,8 @@ var Instructions = function Instructions(_ref) {
|
|
214
220
|
className: cn('wrapper')
|
215
221
|
}, /*#__PURE__*/React.createElement("div", {
|
216
222
|
className: cn('picture', {
|
217
|
-
align: pictureAlign
|
223
|
+
align: pictureAlign,
|
224
|
+
'vertical-align': pictureVerticalAlign
|
218
225
|
})
|
219
226
|
}, renderPicture()), /*#__PURE__*/React.createElement("div", {
|
220
227
|
className: cn('articles', {
|
@@ -31,9 +31,13 @@ export interface IStoreBannerProps {
|
|
31
31
|
linkGoogle?: LinkHrefType;
|
32
32
|
/** Обработчик клика по ссылке в Google Play */
|
33
33
|
onClickGoogle?: LinkOnClickType;
|
34
|
-
/** Ссылка на скачивание приложения в
|
34
|
+
/** Ссылка на скачивание приложения в Samsung Galaxy Store */
|
35
|
+
linkGalaxyStore?: LinkHrefType;
|
36
|
+
/** Обработчик клика по ссылке в Samsung Galaxy Store */
|
37
|
+
onClickGalaxyStore?: LinkOnClickType;
|
38
|
+
/** Ссылка на скачивание приложения в Huawei AppGallery */
|
35
39
|
linkHuawei?: LinkHrefType;
|
36
|
-
/** Обработчик клика по ссылке в Huawei
|
40
|
+
/** Обработчик клика по ссылке в Huawei AppGallery */
|
37
41
|
onClickHuawei?: LinkOnClickType;
|
38
42
|
/** Ссылка на скачивание приложения в RuStore */
|
39
43
|
linkRuStore?: LinkHrefType;
|
@@ -65,6 +69,7 @@ export interface IStoreBannerProps {
|
|
65
69
|
classes?: {
|
66
70
|
root?: string;
|
67
71
|
appleLink?: string;
|
72
|
+
galaxyStoreLink?: string;
|
68
73
|
googleLink?: string;
|
69
74
|
huaweiLink?: string;
|
70
75
|
miStoreLink?: string;
|
@@ -77,6 +82,7 @@ export interface IStoreBannerProps {
|
|
77
82
|
root?: Record<string, string>;
|
78
83
|
button?: Record<string, string>;
|
79
84
|
linkApple?: Record<string, string>;
|
85
|
+
linkGalaxyStore?: Record<string, string>;
|
80
86
|
linkGoogle?: Record<string, string>;
|
81
87
|
linkHuawei?: Record<string, string>;
|
82
88
|
linkMiStore?: Record<string, string>;
|
@@ -27,6 +27,7 @@ var StoreBanner = function StoreBanner(_ref) {
|
|
27
27
|
_ref$classes = _ref$classes === void 0 ? {} : _ref$classes;
|
28
28
|
var rootClassName = _ref$classes.root,
|
29
29
|
appleLinkClassName = _ref$classes.appleLink,
|
30
|
+
galaxyStoreLinkClassName = _ref$classes.galaxyStoreLink,
|
30
31
|
googleLinkClassName = _ref$classes.googleLink,
|
31
32
|
huaweiLinkClassName = _ref$classes.huaweiLink,
|
32
33
|
miStoreLinkClassName = _ref$classes.miStoreLink,
|
@@ -34,6 +35,7 @@ var StoreBanner = function StoreBanner(_ref) {
|
|
34
35
|
title = _ref.title,
|
35
36
|
text = _ref.text,
|
36
37
|
linkApple = _ref.linkApple,
|
38
|
+
linkGalaxyStore = _ref.linkGalaxyStore,
|
37
39
|
linkGoogle = _ref.linkGoogle,
|
38
40
|
linkHuawei = _ref.linkHuawei,
|
39
41
|
linkMiStore = _ref.linkMiStore,
|
@@ -51,6 +53,7 @@ var StoreBanner = function StoreBanner(_ref) {
|
|
51
53
|
rootRef = _ref.rootRef,
|
52
54
|
dataAttrs = _ref.dataAttrs,
|
53
55
|
onClickApple = _ref.onClickApple,
|
56
|
+
onClickGalaxyStore = _ref.onClickGalaxyStore,
|
54
57
|
onClickGoogle = _ref.onClickGoogle,
|
55
58
|
onClickHuawei = _ref.onClickHuawei,
|
56
59
|
onClickMiStore = _ref.onClickMiStore,
|
@@ -123,6 +126,17 @@ var StoreBanner = function StoreBanner(_ref) {
|
|
123
126
|
'ru-store': true
|
124
127
|
}, ruStoreLinkClassName),
|
125
128
|
onClick: onClickRuStore
|
129
|
+
}), linkGalaxyStore && /*#__PURE__*/React.createElement(StoreButton, {
|
130
|
+
dataAttrs: {
|
131
|
+
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.linkGalaxyStore
|
132
|
+
},
|
133
|
+
theme: StoreButtonTheme.GALAXY_STORE,
|
134
|
+
href: linkGalaxyStore,
|
135
|
+
rel: rel,
|
136
|
+
className: cn('store-link', {
|
137
|
+
'galaxy-store': true
|
138
|
+
}, galaxyStoreLinkClassName),
|
139
|
+
onClick: onClickGalaxyStore
|
126
140
|
}), linkHuawei && /*#__PURE__*/React.createElement(StoreButton, {
|
127
141
|
dataAttrs: {
|
128
142
|
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.linkHuawei
|
@@ -174,6 +188,8 @@ StoreBanner.propTypes = {
|
|
174
188
|
text: PropTypes.string.isRequired,
|
175
189
|
linkApple: PropTypes.string,
|
176
190
|
onClickApple: PropTypes.func,
|
191
|
+
linkGalaxyStore: PropTypes.string,
|
192
|
+
onClickGalaxyStore: PropTypes.func,
|
177
193
|
linkGoogle: PropTypes.string,
|
178
194
|
onClickGoogle: PropTypes.func,
|
179
195
|
linkHuawei: PropTypes.string,
|
@@ -191,6 +207,7 @@ StoreBanner.propTypes = {
|
|
191
207
|
className: PropTypes.string,
|
192
208
|
classes: PropTypes.shape({
|
193
209
|
appleLink: PropTypes.string,
|
210
|
+
galaxyStoreLink: PropTypes.string,
|
194
211
|
googleLink: PropTypes.string,
|
195
212
|
huaweiLink: PropTypes.string,
|
196
213
|
miStoreLink: PropTypes.string,
|
@@ -204,6 +221,7 @@ StoreBanner.propTypes = {
|
|
204
221
|
root: PropTypes.objectOf(PropTypes.string.isRequired),
|
205
222
|
button: PropTypes.objectOf(PropTypes.string.isRequired),
|
206
223
|
linkApple: PropTypes.objectOf(PropTypes.string.isRequired),
|
224
|
+
linkGalaxyStore: PropTypes.objectOf(PropTypes.string.isRequired),
|
207
225
|
linkGoogle: PropTypes.objectOf(PropTypes.string.isRequired),
|
208
226
|
linkHuawei: PropTypes.objectOf(PropTypes.string.isRequired),
|
209
227
|
linkMiStore: PropTypes.objectOf(PropTypes.string.isRequired),
|
@@ -7,6 +7,9 @@
|
|
7
7
|
.mfui-store-button_theme_app-store {
|
8
8
|
background-image: url('./img/app-store.png');
|
9
9
|
}
|
10
|
+
.mfui-store-button_theme_galaxy-store {
|
11
|
+
background-image: url('./img/galaxy-store.png');
|
12
|
+
}
|
10
13
|
.mfui-store-button_theme_google-play {
|
11
14
|
background-image: url('./img/google-play.png');
|
12
15
|
}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -81,6 +81,12 @@ h5 {
|
|
81
81
|
margin-right: 40px;
|
82
82
|
}
|
83
83
|
}
|
84
|
+
@media screen and (min-width: 1024px) {
|
85
|
+
.mfui-instructions__picture_vertical-align_top {
|
86
|
+
-ms-flex-item-align: start;
|
87
|
+
align-self: flex-start;
|
88
|
+
}
|
89
|
+
}
|
84
90
|
.mfui-instructions_mask_none .mfui-instructions__slide {
|
85
91
|
display: -webkit-box;
|
86
92
|
display: -ms-flexbox;
|
@@ -119,6 +125,7 @@ h5 {
|
|
119
125
|
}
|
120
126
|
.mfui-instructions__device-screen {
|
121
127
|
overflow: hidden;
|
128
|
+
pointer-events: none;
|
122
129
|
}
|
123
130
|
@media screen and (max-width: 1023px) {
|
124
131
|
.mfui-instructions_mask_black-iphone .mfui-instructions__img-wrapper,
|
@@ -5,6 +5,10 @@ export declare const pictureAlignTypes: {
|
|
5
5
|
readonly LEFT: "left";
|
6
6
|
readonly RIGHT: "right";
|
7
7
|
};
|
8
|
+
export declare const pictureVerticalAlignTypes: {
|
9
|
+
CENTER: string;
|
10
|
+
TOP: string;
|
11
|
+
};
|
8
12
|
export declare const pictureMaskTypes: {
|
9
13
|
readonly ANDROID: "android";
|
10
14
|
readonly NEW_IPHONE: "new-iphone";
|
@@ -15,6 +19,7 @@ export declare const pictureMaskTypes: {
|
|
15
19
|
readonly NONE: "none";
|
16
20
|
};
|
17
21
|
declare type PictureAlignTypesType = typeof pictureAlignTypes[keyof typeof pictureAlignTypes];
|
22
|
+
declare type PictureVerticalAlignTypesType = typeof pictureVerticalAlignTypes[keyof typeof pictureVerticalAlignTypes];
|
18
23
|
declare type PictureMaskTypesType = typeof pictureMaskTypes[keyof typeof pictureMaskTypes];
|
19
24
|
export declare type InstructionItemType = {
|
20
25
|
title: string | React.ReactNode | React.ReactNode[];
|
@@ -49,8 +54,10 @@ export interface IInstructionsProps {
|
|
49
54
|
instructionItems: InstructionItemType[];
|
50
55
|
/** Описание после инструкции */
|
51
56
|
additionalText?: string;
|
52
|
-
/** Расположение изображения */
|
57
|
+
/** Расположение изображения по горизонтали */
|
53
58
|
pictureAlign?: PictureAlignTypesType;
|
59
|
+
/** Расположение изображения по вертикали */
|
60
|
+
pictureVerticalAlign?: PictureVerticalAlignTypesType;
|
54
61
|
/** Маска изображения */
|
55
62
|
pictureMask?: PictureMaskTypesType;
|
56
63
|
/** Ref на swiper */
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports["default"] = exports.pictureMaskTypes = exports.pictureAlignTypes = void 0;
|
6
|
+
exports["default"] = exports.pictureMaskTypes = exports.pictureVerticalAlignTypes = exports.pictureAlignTypes = void 0;
|
7
7
|
|
8
8
|
require("core-js/modules/es.array.map");
|
9
9
|
|
@@ -31,6 +31,11 @@ var pictureAlignTypes = {
|
|
31
31
|
RIGHT: 'right'
|
32
32
|
};
|
33
33
|
exports.pictureAlignTypes = pictureAlignTypes;
|
34
|
+
var pictureVerticalAlignTypes = {
|
35
|
+
CENTER: 'center',
|
36
|
+
TOP: 'top'
|
37
|
+
};
|
38
|
+
exports.pictureVerticalAlignTypes = pictureVerticalAlignTypes;
|
34
39
|
var pictureMaskTypes = {
|
35
40
|
ANDROID: 'android',
|
36
41
|
NEW_IPHONE: 'new-iphone',
|
@@ -61,6 +66,8 @@ var Instructions = function Instructions(_ref) {
|
|
61
66
|
instructionItems = _ref.instructionItems,
|
62
67
|
_ref$pictureAlign = _ref.pictureAlign,
|
63
68
|
pictureAlign = _ref$pictureAlign === void 0 ? 'left' : _ref$pictureAlign,
|
69
|
+
_ref$pictureVerticalA = _ref.pictureVerticalAlign,
|
70
|
+
pictureVerticalAlign = _ref$pictureVerticalA === void 0 ? 'center' : _ref$pictureVerticalA,
|
64
71
|
_ref$pictureMask = _ref.pictureMask,
|
65
72
|
pictureMask = _ref$pictureMask === void 0 ? 'none' : _ref$pictureMask,
|
66
73
|
getSwiper = _ref.getSwiper,
|
@@ -242,7 +249,8 @@ var Instructions = function Instructions(_ref) {
|
|
242
249
|
className: cn('wrapper')
|
243
250
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
244
251
|
className: cn('picture', {
|
245
|
-
align: pictureAlign
|
252
|
+
align: pictureAlign,
|
253
|
+
'vertical-align': pictureVerticalAlign
|
246
254
|
})
|
247
255
|
}, renderPicture()), /*#__PURE__*/_react["default"].createElement("div", {
|
248
256
|
className: cn('articles', {
|
@@ -31,9 +31,13 @@ export interface IStoreBannerProps {
|
|
31
31
|
linkGoogle?: LinkHrefType;
|
32
32
|
/** Обработчик клика по ссылке в Google Play */
|
33
33
|
onClickGoogle?: LinkOnClickType;
|
34
|
-
/** Ссылка на скачивание приложения в
|
34
|
+
/** Ссылка на скачивание приложения в Samsung Galaxy Store */
|
35
|
+
linkGalaxyStore?: LinkHrefType;
|
36
|
+
/** Обработчик клика по ссылке в Samsung Galaxy Store */
|
37
|
+
onClickGalaxyStore?: LinkOnClickType;
|
38
|
+
/** Ссылка на скачивание приложения в Huawei AppGallery */
|
35
39
|
linkHuawei?: LinkHrefType;
|
36
|
-
/** Обработчик клика по ссылке в Huawei
|
40
|
+
/** Обработчик клика по ссылке в Huawei AppGallery */
|
37
41
|
onClickHuawei?: LinkOnClickType;
|
38
42
|
/** Ссылка на скачивание приложения в RuStore */
|
39
43
|
linkRuStore?: LinkHrefType;
|
@@ -65,6 +69,7 @@ export interface IStoreBannerProps {
|
|
65
69
|
classes?: {
|
66
70
|
root?: string;
|
67
71
|
appleLink?: string;
|
72
|
+
galaxyStoreLink?: string;
|
68
73
|
googleLink?: string;
|
69
74
|
huaweiLink?: string;
|
70
75
|
miStoreLink?: string;
|
@@ -77,6 +82,7 @@ export interface IStoreBannerProps {
|
|
77
82
|
root?: Record<string, string>;
|
78
83
|
button?: Record<string, string>;
|
79
84
|
linkApple?: Record<string, string>;
|
85
|
+
linkGalaxyStore?: Record<string, string>;
|
80
86
|
linkGoogle?: Record<string, string>;
|
81
87
|
linkHuawei?: Record<string, string>;
|
82
88
|
linkMiStore?: Record<string, string>;
|
@@ -50,6 +50,7 @@ var StoreBanner = function StoreBanner(_ref) {
|
|
50
50
|
_ref$classes = _ref$classes === void 0 ? {} : _ref$classes;
|
51
51
|
var rootClassName = _ref$classes.root,
|
52
52
|
appleLinkClassName = _ref$classes.appleLink,
|
53
|
+
galaxyStoreLinkClassName = _ref$classes.galaxyStoreLink,
|
53
54
|
googleLinkClassName = _ref$classes.googleLink,
|
54
55
|
huaweiLinkClassName = _ref$classes.huaweiLink,
|
55
56
|
miStoreLinkClassName = _ref$classes.miStoreLink,
|
@@ -57,6 +58,7 @@ var StoreBanner = function StoreBanner(_ref) {
|
|
57
58
|
title = _ref.title,
|
58
59
|
text = _ref.text,
|
59
60
|
linkApple = _ref.linkApple,
|
61
|
+
linkGalaxyStore = _ref.linkGalaxyStore,
|
60
62
|
linkGoogle = _ref.linkGoogle,
|
61
63
|
linkHuawei = _ref.linkHuawei,
|
62
64
|
linkMiStore = _ref.linkMiStore,
|
@@ -74,6 +76,7 @@ var StoreBanner = function StoreBanner(_ref) {
|
|
74
76
|
rootRef = _ref.rootRef,
|
75
77
|
dataAttrs = _ref.dataAttrs,
|
76
78
|
onClickApple = _ref.onClickApple,
|
79
|
+
onClickGalaxyStore = _ref.onClickGalaxyStore,
|
77
80
|
onClickGoogle = _ref.onClickGoogle,
|
78
81
|
onClickHuawei = _ref.onClickHuawei,
|
79
82
|
onClickMiStore = _ref.onClickMiStore,
|
@@ -146,6 +149,17 @@ var StoreBanner = function StoreBanner(_ref) {
|
|
146
149
|
'ru-store': true
|
147
150
|
}, ruStoreLinkClassName),
|
148
151
|
onClick: onClickRuStore
|
152
|
+
}), linkGalaxyStore && /*#__PURE__*/React.createElement(_StoreButton["default"], {
|
153
|
+
dataAttrs: {
|
154
|
+
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.linkGalaxyStore
|
155
|
+
},
|
156
|
+
theme: _StoreButton.Theme.GALAXY_STORE,
|
157
|
+
href: linkGalaxyStore,
|
158
|
+
rel: rel,
|
159
|
+
className: cn('store-link', {
|
160
|
+
'galaxy-store': true
|
161
|
+
}, galaxyStoreLinkClassName),
|
162
|
+
onClick: onClickGalaxyStore
|
149
163
|
}), linkHuawei && /*#__PURE__*/React.createElement(_StoreButton["default"], {
|
150
164
|
dataAttrs: {
|
151
165
|
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.linkHuawei
|
@@ -197,6 +211,8 @@ StoreBanner.propTypes = {
|
|
197
211
|
text: _propTypes["default"].string.isRequired,
|
198
212
|
linkApple: _propTypes["default"].string,
|
199
213
|
onClickApple: _propTypes["default"].func,
|
214
|
+
linkGalaxyStore: _propTypes["default"].string,
|
215
|
+
onClickGalaxyStore: _propTypes["default"].func,
|
200
216
|
linkGoogle: _propTypes["default"].string,
|
201
217
|
onClickGoogle: _propTypes["default"].func,
|
202
218
|
linkHuawei: _propTypes["default"].string,
|
@@ -214,6 +230,7 @@ StoreBanner.propTypes = {
|
|
214
230
|
className: _propTypes["default"].string,
|
215
231
|
classes: _propTypes["default"].shape({
|
216
232
|
appleLink: _propTypes["default"].string,
|
233
|
+
galaxyStoreLink: _propTypes["default"].string,
|
217
234
|
googleLink: _propTypes["default"].string,
|
218
235
|
huaweiLink: _propTypes["default"].string,
|
219
236
|
miStoreLink: _propTypes["default"].string,
|
@@ -227,6 +244,7 @@ StoreBanner.propTypes = {
|
|
227
244
|
root: _propTypes["default"].objectOf(_propTypes["default"].string.isRequired),
|
228
245
|
button: _propTypes["default"].objectOf(_propTypes["default"].string.isRequired),
|
229
246
|
linkApple: _propTypes["default"].objectOf(_propTypes["default"].string.isRequired),
|
247
|
+
linkGalaxyStore: _propTypes["default"].objectOf(_propTypes["default"].string.isRequired),
|
230
248
|
linkGoogle: _propTypes["default"].objectOf(_propTypes["default"].string.isRequired),
|
231
249
|
linkHuawei: _propTypes["default"].objectOf(_propTypes["default"].string.isRequired),
|
232
250
|
linkMiStore: _propTypes["default"].objectOf(_propTypes["default"].string.isRequired),
|
@@ -7,6 +7,9 @@
|
|
7
7
|
.mfui-store-button_theme_app-store {
|
8
8
|
background-image: url('./img/app-store.png');
|
9
9
|
}
|
10
|
+
.mfui-store-button_theme_galaxy-store {
|
11
|
+
background-image: url('./img/galaxy-store.png');
|
12
|
+
}
|
10
13
|
.mfui-store-button_theme_google-play {
|
11
14
|
background-image: url('./img/google-play.png');
|
12
15
|
}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@megafon/ui-shared",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.18.0",
|
4
4
|
"files": [
|
5
5
|
"dist"
|
6
6
|
],
|
@@ -86,7 +86,7 @@
|
|
86
86
|
},
|
87
87
|
"dependencies": {
|
88
88
|
"@babel/runtime": "^7.8.4",
|
89
|
-
"@megafon/ui-core": "^4.15.
|
89
|
+
"@megafon/ui-core": "^4.15.3",
|
90
90
|
"@megafon/ui-helpers": "^2.4.0",
|
91
91
|
"core-js": "^3.6.4",
|
92
92
|
"htmr": "^0.9.2",
|
@@ -94,5 +94,5 @@
|
|
94
94
|
"prop-types": "^15.7.2",
|
95
95
|
"swiper": "^6.5.6"
|
96
96
|
},
|
97
|
-
"gitHead": "
|
97
|
+
"gitHead": "f51175c15bbd3009ef1a67aebb8107d21f43052a"
|
98
98
|
}
|