@megafon/ui-shared 2.0.0-beta.96 → 2.0.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 +1634 -0
- package/README.md +0 -5
- package/dist/es/components/AccordionBox/AccordionBox.css +13 -0
- package/dist/es/components/AccordionBox/AccordionBox.d.ts +16 -1
- package/dist/es/components/AccordionBox/AccordionBox.js +29 -13
- package/dist/es/components/BannerBox/BannerBox.js +3 -2
- package/dist/es/components/BenefitsIcons/BenefitsIcons.d.ts +13 -2
- package/dist/es/components/BenefitsIcons/BenefitsIcons.js +82 -17
- package/dist/es/components/BenefitsIcons/BenefitsIconsTile.d.ts +2 -1
- package/dist/es/components/BenefitsIcons/BenefitsIconsTile.js +15 -14
- package/dist/es/components/BenefitsIcons/style/BenefitsIcons.css +3 -3
- package/dist/es/components/BenefitsIcons/style/BenefitsIconsTile.css +19 -12
- package/dist/es/components/BenefitsIcons/types.d.ts +7 -2
- package/dist/es/components/BenefitsIcons/types.js +4 -0
- package/dist/es/components/BenefitsPictures/BenefitsPictures.d.ts +10 -1
- package/dist/es/components/BenefitsPictures/BenefitsPictures.js +28 -12
- package/dist/es/components/BenefitsPictures/BenfitsPictures.css +4 -4
- package/dist/es/components/Breadcrumbs/Breadcrumbs.css +46 -0
- package/dist/es/components/Breadcrumbs/Breadcrumbs.d.ts +21 -0
- package/dist/es/components/Breadcrumbs/Breadcrumbs.js +49 -0
- package/dist/es/components/ButtonBanner/ButtonBanner.css +122 -0
- package/dist/es/components/ButtonBanner/ButtonBanner.d.ts +54 -0
- package/dist/es/components/ButtonBanner/ButtonBanner.js +107 -0
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.css +3 -3
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.d.ts +22 -2
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.js +37 -8
- package/dist/es/components/Card/Card.css +71 -44
- package/dist/es/components/Card/Card.d.ts +33 -3
- package/dist/es/components/Card/Card.js +103 -42
- package/dist/es/components/CardsBox/CardsBox.d.ts +10 -2
- package/dist/es/components/CardsBox/CardsBox.js +26 -13
- package/dist/es/components/CarouselBox/CarouselBox.js +3 -2
- package/dist/es/components/Container/Container.css +1815 -547
- package/dist/es/components/Container/Container.d.ts +11 -1
- package/dist/es/components/Container/Container.js +28 -6
- package/dist/es/components/DownloadLinks/DownloadLink.css +5 -5
- package/dist/es/components/DownloadLinks/DownloadLink.d.ts +7 -0
- package/dist/es/components/DownloadLinks/DownloadLink.js +28 -6
- package/dist/es/components/DownloadLinks/DownloadLinks.css +9 -6
- package/dist/es/components/DownloadLinks/DownloadLinks.d.ts +2 -0
- package/dist/es/components/DownloadLinks/DownloadLinks.js +18 -3
- package/dist/es/components/Instructions/Instructions.css +189 -130
- package/dist/es/components/Instructions/Instructions.d.ts +21 -2
- package/dist/es/components/Instructions/Instructions.js +115 -74
- package/dist/es/components/Instructions/img/iphone12.png +0 -0
- package/dist/es/components/PageTitle/PageTitle.css +80 -0
- package/dist/es/components/PageTitle/PageTitle.d.ts +23 -0
- package/dist/es/components/PageTitle/PageTitle.js +65 -0
- package/dist/es/components/Partners/Partners.css +22 -31
- package/dist/es/components/Partners/Partners.d.ts +13 -1
- package/dist/es/components/Partners/Partners.js +40 -18
- package/dist/es/components/PictureWithDescription/PictureWithDescription.css +25 -10
- package/dist/es/components/PictureWithDescription/PictureWithDescription.d.ts +13 -0
- package/dist/es/components/PictureWithDescription/PictureWithDescription.js +31 -7
- package/dist/es/components/Property/Property.css +79 -71
- package/dist/es/components/Property/Property.d.ts +21 -2
- package/dist/es/components/Property/Property.js +80 -34
- package/dist/es/components/Property/PropertyDescription.css +3 -3
- package/dist/es/components/Property/PropertyDescription.js +19 -21
- package/dist/es/components/Property/types.d.ts +7 -2
- package/dist/es/components/Steps/Steps.css +41 -0
- package/dist/es/components/Steps/Steps.d.ts +10 -0
- package/dist/es/components/Steps/Steps.js +35 -0
- package/dist/es/components/Steps/StepsItem.css +37 -0
- package/dist/es/components/Steps/StepsItem.d.ts +10 -0
- package/dist/es/components/Steps/StepsItem.js +26 -0
- package/dist/es/components/StoreBanner/StoreBanner.css +289 -0
- package/dist/es/components/StoreBanner/StoreBanner.d.ts +65 -0
- package/dist/es/components/StoreBanner/StoreBanner.js +145 -0
- package/dist/es/components/StoreBanner/doc/img/new-iphone-screen.png +0 -0
- package/dist/es/components/StoreBanner/doc/img/qr-code.png +0 -0
- package/dist/es/components/StoreBanner/doc/img/screen.png +0 -0
- package/dist/es/components/StoreBanner/img/android.png +0 -0
- package/dist/es/components/StoreBanner/img/black-iphone.png +0 -0
- package/dist/es/components/StoreBanner/img/new-iphone.png +0 -0
- package/dist/es/components/StoreBanner/img/white-iphone.png +0 -0
- package/dist/es/components/StoreButton/StoreButton.css +15 -0
- package/dist/es/components/StoreButton/StoreButton.d.ts +17 -0
- package/dist/es/components/StoreButton/StoreButton.js +37 -0
- package/dist/es/components/StoreButton/img/app-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/Table/Table.css +67 -67
- package/dist/es/components/Table/Table.js +4 -4
- package/dist/es/components/Table/TableRow.js +1 -0
- package/dist/es/components/TabsBox/TabsBox.d.ts +4 -1
- package/dist/es/components/TabsBox/TabsBox.js +24 -3
- package/dist/es/components/TextBox/TextBox.css +7 -1
- package/dist/es/components/TextBox/TextBox.d.ts +8 -0
- package/dist/es/components/TextBox/TextBox.js +37 -5
- package/dist/es/components/TextBox/TextBoxPicture.css +24 -0
- package/dist/es/components/TextBox/TextBoxPicture.d.ts +17 -0
- package/dist/es/components/TextBox/TextBoxPicture.js +32 -0
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.css +15 -4
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +8 -2
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.js +34 -14
- package/dist/es/components/VideoBanner/VideoBanner.css +155 -76
- package/dist/es/components/VideoBanner/VideoBanner.d.ts +64 -13
- package/dist/es/components/VideoBanner/VideoBanner.js +202 -70
- package/dist/es/components/VideoBlock/VideoBlock.css +32 -28
- package/dist/es/components/VideoBlock/VideoBlock.d.ts +20 -6
- package/dist/es/components/VideoBlock/VideoBlock.js +63 -44
- package/dist/es/constants/throttleTime.d.ts +4 -0
- package/dist/es/constants/throttleTime.js +3 -0
- package/dist/es/index.d.ts +8 -0
- package/dist/es/index.js +8 -0
- package/dist/lib/components/AccordionBox/AccordionBox.css +13 -0
- package/dist/lib/components/AccordionBox/AccordionBox.d.ts +16 -1
- package/dist/lib/components/AccordionBox/AccordionBox.js +31 -19
- package/dist/lib/components/BannerBox/BannerBox.js +3 -5
- package/dist/lib/components/BenefitsIcons/BenefitsIcons.d.ts +13 -2
- package/dist/lib/components/BenefitsIcons/BenefitsIcons.js +84 -20
- package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.d.ts +2 -1
- package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.js +15 -16
- package/dist/lib/components/BenefitsIcons/style/BenefitsIcons.css +3 -3
- package/dist/lib/components/BenefitsIcons/style/BenefitsIconsTile.css +19 -12
- package/dist/lib/components/BenefitsIcons/types.d.ts +7 -2
- package/dist/lib/components/BenefitsIcons/types.js +7 -2
- package/dist/lib/components/BenefitsPictures/BenefitsPictures.d.ts +10 -1
- package/dist/lib/components/BenefitsPictures/BenefitsPictures.js +32 -15
- package/dist/lib/components/BenefitsPictures/BenfitsPictures.css +4 -4
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.css +46 -0
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.d.ts +21 -0
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.js +65 -0
- package/dist/lib/components/ButtonBanner/ButtonBanner.css +122 -0
- package/dist/lib/components/ButtonBanner/ButtonBanner.d.ts +54 -0
- package/dist/lib/components/ButtonBanner/ButtonBanner.js +133 -0
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.css +3 -3
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.d.ts +22 -2
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.js +45 -11
- package/dist/lib/components/Card/Card.css +71 -44
- package/dist/lib/components/Card/Card.d.ts +33 -3
- package/dist/lib/components/Card/Card.js +118 -59
- package/dist/lib/components/CardsBox/CardsBox.d.ts +10 -2
- package/dist/lib/components/CardsBox/CardsBox.js +30 -16
- package/dist/lib/components/CarouselBox/CarouselBox.js +3 -5
- package/dist/lib/components/Container/Container.css +1815 -547
- package/dist/lib/components/Container/Container.d.ts +11 -1
- package/dist/lib/components/Container/Container.js +32 -11
- package/dist/lib/components/DownloadLinks/DownloadLink.css +5 -5
- package/dist/lib/components/DownloadLinks/DownloadLink.d.ts +7 -0
- package/dist/lib/components/DownloadLinks/DownloadLink.js +32 -11
- package/dist/lib/components/DownloadLinks/DownloadLinks.css +9 -6
- package/dist/lib/components/DownloadLinks/DownloadLinks.d.ts +2 -0
- package/dist/lib/components/DownloadLinks/DownloadLinks.js +20 -6
- package/dist/lib/components/Instructions/Instructions.css +189 -130
- package/dist/lib/components/Instructions/Instructions.d.ts +21 -2
- package/dist/lib/components/Instructions/Instructions.js +148 -104
- package/dist/lib/components/Instructions/img/iphone12.png +0 -0
- package/dist/lib/components/PageTitle/PageTitle.css +80 -0
- package/dist/lib/components/PageTitle/PageTitle.d.ts +23 -0
- package/dist/lib/components/PageTitle/PageTitle.js +85 -0
- package/dist/lib/components/Partners/Partners.css +22 -31
- package/dist/lib/components/Partners/Partners.d.ts +13 -1
- package/dist/lib/components/Partners/Partners.js +43 -23
- package/dist/lib/components/PictureWithDescription/PictureWithDescription.css +25 -10
- package/dist/lib/components/PictureWithDescription/PictureWithDescription.d.ts +13 -0
- package/dist/lib/components/PictureWithDescription/PictureWithDescription.js +33 -8
- package/dist/lib/components/Property/Property.css +79 -71
- package/dist/lib/components/Property/Property.d.ts +21 -2
- package/dist/lib/components/Property/Property.js +93 -53
- package/dist/lib/components/Property/PropertyDescription.css +3 -3
- package/dist/lib/components/Property/PropertyDescription.js +21 -25
- package/dist/lib/components/Property/types.d.ts +7 -2
- package/dist/lib/components/Steps/Steps.css +41 -0
- package/dist/lib/components/Steps/Steps.d.ts +10 -0
- package/dist/lib/components/Steps/Steps.js +55 -0
- package/dist/lib/components/Steps/StepsItem.css +37 -0
- package/dist/lib/components/Steps/StepsItem.d.ts +10 -0
- package/dist/lib/components/Steps/StepsItem.js +39 -0
- package/dist/lib/components/StoreBanner/StoreBanner.css +289 -0
- package/dist/lib/components/StoreBanner/StoreBanner.d.ts +65 -0
- package/dist/lib/components/StoreBanner/StoreBanner.js +169 -0
- package/dist/lib/components/StoreBanner/doc/img/new-iphone-screen.png +0 -0
- package/dist/lib/components/StoreBanner/doc/img/qr-code.png +0 -0
- package/dist/lib/components/StoreBanner/doc/img/screen.png +0 -0
- package/dist/lib/components/StoreBanner/img/android.png +0 -0
- package/dist/lib/components/StoreBanner/img/black-iphone.png +0 -0
- package/dist/lib/components/StoreBanner/img/new-iphone.png +0 -0
- package/dist/lib/components/StoreBanner/img/white-iphone.png +0 -0
- package/dist/lib/components/StoreButton/StoreButton.css +15 -0
- package/dist/lib/components/StoreButton/StoreButton.d.ts +17 -0
- package/dist/lib/components/StoreButton/StoreButton.js +58 -0
- package/dist/lib/components/StoreButton/img/app-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/Table/Table.css +67 -67
- package/dist/lib/components/Table/Table.js +6 -8
- package/dist/lib/components/Table/TableRow.js +1 -0
- package/dist/lib/components/TabsBox/TabsBox.d.ts +4 -1
- package/dist/lib/components/TabsBox/TabsBox.js +25 -2
- package/dist/lib/components/TextBox/TextBox.css +7 -1
- package/dist/lib/components/TextBox/TextBox.d.ts +8 -0
- package/dist/lib/components/TextBox/TextBox.js +39 -6
- package/dist/lib/components/TextBox/TextBoxPicture.css +24 -0
- package/dist/lib/components/TextBox/TextBoxPicture.d.ts +17 -0
- package/dist/lib/components/TextBox/TextBoxPicture.js +49 -0
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.css +15 -4
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +8 -2
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.js +39 -19
- package/dist/lib/components/VideoBanner/VideoBanner.css +155 -76
- package/dist/lib/components/VideoBanner/VideoBanner.d.ts +64 -13
- package/dist/lib/components/VideoBanner/VideoBanner.js +225 -89
- package/dist/lib/components/VideoBlock/VideoBlock.css +32 -28
- package/dist/lib/components/VideoBlock/VideoBlock.d.ts +20 -6
- package/dist/lib/components/VideoBlock/VideoBlock.js +76 -68
- package/dist/lib/constants/throttleTime.d.ts +4 -0
- package/dist/lib/constants/throttleTime.js +10 -0
- package/dist/lib/index.d.ts +8 -0
- package/dist/lib/index.js +64 -0
- package/package.json +19 -75
@@ -0,0 +1,289 @@
|
|
1
|
+
h1,
|
2
|
+
h2,
|
3
|
+
h3,
|
4
|
+
h4,
|
5
|
+
h5 {
|
6
|
+
margin: 0;
|
7
|
+
}
|
8
|
+
.mfui-store-banner_theme_clearWhite .mfui-store-banner__grid {
|
9
|
+
background-color: #FFFFFF;
|
10
|
+
}
|
11
|
+
.mfui-store-banner_theme_clearWhite .mfui-store-banner__content {
|
12
|
+
color: #333333;
|
13
|
+
}
|
14
|
+
.mfui-store-banner_theme_green .mfui-store-banner__grid {
|
15
|
+
background-color: #00B956;
|
16
|
+
}
|
17
|
+
.mfui-store-banner_theme_green .mfui-store-banner__content {
|
18
|
+
color: #FFFFFF;
|
19
|
+
}
|
20
|
+
.mfui-store-banner_theme_spbSky1 .mfui-store-banner__grid {
|
21
|
+
background-color: #EDEDED;
|
22
|
+
}
|
23
|
+
.mfui-store-banner_theme_spbSky1 .mfui-store-banner__content {
|
24
|
+
color: #333333;
|
25
|
+
}
|
26
|
+
.mfui-store-banner_mask_new-iphone .mfui-store-banner__device-mask {
|
27
|
+
position: relative;
|
28
|
+
z-index: 2;
|
29
|
+
background-image: url('./img/new-iphone.png');
|
30
|
+
}
|
31
|
+
.mfui-store-banner_mask_new-iphone .mfui-store-banner__screen {
|
32
|
+
top: 13px;
|
33
|
+
z-index: 1;
|
34
|
+
width: 87%;
|
35
|
+
}
|
36
|
+
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
37
|
+
.mfui-store-banner_mask_new-iphone .mfui-store-banner__screen {
|
38
|
+
top: 10px;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
@media screen and (max-width: 767px) {
|
42
|
+
.mfui-store-banner_mask_new-iphone .mfui-store-banner__screen {
|
43
|
+
top: 33px;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
.mfui-store-banner_mask_android .mfui-store-banner__device-mask {
|
47
|
+
background-image: url('./img/android.png');
|
48
|
+
}
|
49
|
+
.mfui-store-banner_mask_android .mfui-store-banner__screen {
|
50
|
+
top: 59px;
|
51
|
+
width: 86%;
|
52
|
+
}
|
53
|
+
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
54
|
+
.mfui-store-banner_mask_android .mfui-store-banner__screen {
|
55
|
+
top: 48px;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
@media screen and (max-width: 767px) {
|
59
|
+
.mfui-store-banner_mask_android .mfui-store-banner__screen {
|
60
|
+
top: 64px;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
.mfui-store-banner_mask_white-iphone .mfui-store-banner__device-mask {
|
64
|
+
background-image: url('./img/white-iphone.png');
|
65
|
+
}
|
66
|
+
.mfui-store-banner_mask_black-iphone .mfui-store-banner__device-mask {
|
67
|
+
background-image: url('./img/black-iphone.png');
|
68
|
+
}
|
69
|
+
.mfui-store-banner_mask_white-iphone .mfui-store-banner__screen,
|
70
|
+
.mfui-store-banner_mask_black-iphone .mfui-store-banner__screen {
|
71
|
+
top: 57px;
|
72
|
+
width: 87%;
|
73
|
+
}
|
74
|
+
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
75
|
+
.mfui-store-banner_mask_white-iphone .mfui-store-banner__screen,
|
76
|
+
.mfui-store-banner_mask_black-iphone .mfui-store-banner__screen {
|
77
|
+
top: 47px;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
@media screen and (max-width: 767px) {
|
81
|
+
.mfui-store-banner_mask_white-iphone .mfui-store-banner__screen,
|
82
|
+
.mfui-store-banner_mask_black-iphone .mfui-store-banner__screen {
|
83
|
+
top: 63px;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
@media screen and (min-width: 1024px) {
|
87
|
+
.mfui-store-banner__container {
|
88
|
+
padding-top: 30px;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
.mfui-store-banner__grid {
|
92
|
+
padding-top: 32px;
|
93
|
+
padding-bottom: 32px;
|
94
|
+
border: 1px solid #D8D8D8;
|
95
|
+
border-radius: 8px;
|
96
|
+
}
|
97
|
+
@media screen and (max-width: 767px) {
|
98
|
+
.mfui-store-banner__grid {
|
99
|
+
padding-top: 24px;
|
100
|
+
padding-bottom: 0;
|
101
|
+
}
|
102
|
+
}
|
103
|
+
.mfui-store-banner__content {
|
104
|
+
padding-left: 32px;
|
105
|
+
}
|
106
|
+
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
107
|
+
.mfui-store-banner__content {
|
108
|
+
padding-right: 10px;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
@media screen and (max-width: 767px) {
|
112
|
+
.mfui-store-banner__content {
|
113
|
+
padding-right: 15px;
|
114
|
+
padding-bottom: 32px;
|
115
|
+
padding-left: 15px;
|
116
|
+
text-align: center;
|
117
|
+
}
|
118
|
+
}
|
119
|
+
.mfui-store-banner__device-mask {
|
120
|
+
height: 100%;
|
121
|
+
background-repeat: no-repeat;
|
122
|
+
background-size: cover;
|
123
|
+
}
|
124
|
+
.mfui-store-banner__device-wrapper {
|
125
|
+
position: relative;
|
126
|
+
bottom: calc(2 * (32px - 1px));
|
127
|
+
width: 235px;
|
128
|
+
height: calc(100% + 2 * 32px + 30px);
|
129
|
+
margin-right: auto;
|
130
|
+
margin-left: auto;
|
131
|
+
overflow: hidden;
|
132
|
+
}
|
133
|
+
@media screen and (min-width: 1024px) and (max-width: 1279px) {
|
134
|
+
.mfui-store-banner__device-wrapper {
|
135
|
+
width: 260px;
|
136
|
+
}
|
137
|
+
}
|
138
|
+
@media screen and (max-width: 1023px) {
|
139
|
+
.mfui-store-banner__device-wrapper {
|
140
|
+
bottom: 0;
|
141
|
+
}
|
142
|
+
}
|
143
|
+
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
144
|
+
.mfui-store-banner__device-wrapper {
|
145
|
+
width: 196px;
|
146
|
+
height: calc(100% + 32px);
|
147
|
+
}
|
148
|
+
}
|
149
|
+
@media screen and (max-width: 767px) {
|
150
|
+
.mfui-store-banner__device-wrapper {
|
151
|
+
width: 163px;
|
152
|
+
height: 222px;
|
153
|
+
padding-top: 24px;
|
154
|
+
}
|
155
|
+
}
|
156
|
+
.mfui-store-banner__links {
|
157
|
+
display: -webkit-box;
|
158
|
+
display: -ms-flexbox;
|
159
|
+
display: flex;
|
160
|
+
}
|
161
|
+
.mfui-store-banner__qr-code {
|
162
|
+
margin-right: 16px;
|
163
|
+
}
|
164
|
+
@media screen and (max-width: 767px) {
|
165
|
+
.mfui-store-banner__qr-code {
|
166
|
+
display: none;
|
167
|
+
}
|
168
|
+
}
|
169
|
+
@media screen and (min-width: 768px) {
|
170
|
+
.mfui-store-banner__qr-code + .mfui-store-banner__stores {
|
171
|
+
-webkit-box-orient: vertical;
|
172
|
+
-webkit-box-direction: normal;
|
173
|
+
-ms-flex-direction: column;
|
174
|
+
flex-direction: column;
|
175
|
+
-webkit-box-pack: justify;
|
176
|
+
-ms-flex-pack: justify;
|
177
|
+
justify-content: space-between;
|
178
|
+
}
|
179
|
+
}
|
180
|
+
.mfui-store-banner__store-link {
|
181
|
+
width: 136px;
|
182
|
+
height: 40px;
|
183
|
+
}
|
184
|
+
@media screen and (max-width: 767px) {
|
185
|
+
.mfui-store-banner__store-link {
|
186
|
+
width: 119px;
|
187
|
+
height: 35px;
|
188
|
+
}
|
189
|
+
}
|
190
|
+
.mfui-store-banner__store-link:not(:last-child) {
|
191
|
+
margin-right: 16px;
|
192
|
+
margin-bottom: 10px;
|
193
|
+
}
|
194
|
+
.mfui-store-banner__stores {
|
195
|
+
display: -webkit-box;
|
196
|
+
display: -ms-flexbox;
|
197
|
+
display: flex;
|
198
|
+
-webkit-box-flex: 1;
|
199
|
+
-ms-flex-positive: 1;
|
200
|
+
flex-grow: 1;
|
201
|
+
-ms-flex-wrap: wrap;
|
202
|
+
flex-wrap: wrap;
|
203
|
+
}
|
204
|
+
@media screen and (max-width: 767px) {
|
205
|
+
.mfui-store-banner__stores {
|
206
|
+
-webkit-box-pack: center;
|
207
|
+
-ms-flex-pack: center;
|
208
|
+
justify-content: center;
|
209
|
+
}
|
210
|
+
}
|
211
|
+
.mfui-store-banner__text {
|
212
|
+
margin-bottom: 32px;
|
213
|
+
}
|
214
|
+
.mfui-store-banner__title {
|
215
|
+
margin-bottom: 16px;
|
216
|
+
}
|
217
|
+
.mfui-store-banner__screen {
|
218
|
+
position: absolute;
|
219
|
+
left: 50%;
|
220
|
+
-webkit-transform: translateX(-50%);
|
221
|
+
transform: translateX(-50%);
|
222
|
+
}
|
223
|
+
.mfui-store-banner__button {
|
224
|
+
margin: 0 auto;
|
225
|
+
}
|
226
|
+
.mfui-store-banner__links_three .mfui-store-banner__qr-code {
|
227
|
+
-o-object-fit: contain;
|
228
|
+
object-fit: contain;
|
229
|
+
}
|
230
|
+
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
231
|
+
.mfui-store-banner__links_three .mfui-store-banner__qr-code {
|
232
|
+
width: 120px;
|
233
|
+
height: 120px;
|
234
|
+
}
|
235
|
+
}
|
236
|
+
@media screen and (min-width: 1280px) {
|
237
|
+
.mfui-store-banner__links_three .mfui-store-banner__qr-code {
|
238
|
+
max-width: 88px;
|
239
|
+
max-height: 88px;
|
240
|
+
}
|
241
|
+
}
|
242
|
+
.mfui-store-banner__links_three .mfui-store-banner__qr-code + .mfui-store-banner__stores {
|
243
|
+
max-width: 305px;
|
244
|
+
}
|
245
|
+
@media screen and (min-width: 1024px) {
|
246
|
+
.mfui-store-banner__links_three .mfui-store-banner__qr-code + .mfui-store-banner__stores {
|
247
|
+
-webkit-box-orient: horizontal;
|
248
|
+
-webkit-box-direction: normal;
|
249
|
+
-ms-flex-direction: row;
|
250
|
+
flex-direction: row;
|
251
|
+
-webkit-box-pack: start;
|
252
|
+
-ms-flex-pack: start;
|
253
|
+
justify-content: flex-start;
|
254
|
+
}
|
255
|
+
}
|
256
|
+
@media screen and (max-width: 767px) {
|
257
|
+
.mfui-store-banner__links_three .mfui-store-banner__qr-code + .mfui-store-banner__stores {
|
258
|
+
margin: 0 auto;
|
259
|
+
}
|
260
|
+
}
|
261
|
+
.mfui-store-banner__links_three .mfui-store-banner__qr-code + .mfui-store-banner__stores .mfui-store-banner__store-link {
|
262
|
+
margin-right: 16px;
|
263
|
+
}
|
264
|
+
.mfui-store-banner__links_three .mfui-store-banner__qr-code + .mfui-store-banner__stores .mfui-store-banner__store-link:not(:first-child) {
|
265
|
+
margin-right: 0;
|
266
|
+
}
|
267
|
+
.mfui-store-banner__links_three .mfui-store-banner__store-link {
|
268
|
+
width: 136px;
|
269
|
+
height: 40px;
|
270
|
+
}
|
271
|
+
@media screen and (max-width: 1023px) {
|
272
|
+
.mfui-store-banner__links_three .mfui-store-banner__store-link {
|
273
|
+
width: 119px;
|
274
|
+
height: 35px;
|
275
|
+
}
|
276
|
+
}
|
277
|
+
.mfui-store-banner__links_three .mfui-store-banner__store-link:not(:last-child) {
|
278
|
+
margin-bottom: 8px;
|
279
|
+
}
|
280
|
+
@media screen and (max-width: 767px) {
|
281
|
+
.mfui-store-banner__links_three .mfui-store-banner__store-link:not(:last-child) {
|
282
|
+
margin-bottom: 16px;
|
283
|
+
}
|
284
|
+
}
|
285
|
+
@media screen and (max-width: 1023px) {
|
286
|
+
.mfui-store-banner__links_three .mfui-store-banner__store-link:not(:first-child) {
|
287
|
+
margin-right: 0;
|
288
|
+
}
|
289
|
+
}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { Props as StoreButtonPropsType } from '../StoreButton/StoreButton';
|
3
|
+
import './StoreBanner.less';
|
4
|
+
export declare const Theme: {
|
5
|
+
readonly CLEAR_WHITE: "clearWhite";
|
6
|
+
readonly GREEN: "green";
|
7
|
+
readonly SPB_SKY_1: "spbSky1";
|
8
|
+
};
|
9
|
+
declare type ThemeType = typeof Theme[keyof typeof Theme];
|
10
|
+
export declare const DeviceMask: {
|
11
|
+
readonly ANDROID: "android";
|
12
|
+
readonly NEW_IPHONE: "new-iphone";
|
13
|
+
readonly BLACK_IPHONE: "black-iphone";
|
14
|
+
readonly WHITE_IPHONE: "white-iphone";
|
15
|
+
};
|
16
|
+
declare type DeviceMaskType = typeof DeviceMask[keyof typeof DeviceMask];
|
17
|
+
declare type LinkHrefType = StoreButtonPropsType['href'];
|
18
|
+
declare type LinkOnClickType = StoreButtonPropsType['onClick'];
|
19
|
+
export interface IStoreBannerProps {
|
20
|
+
/** Заголовок */
|
21
|
+
title: string;
|
22
|
+
/** Текст */
|
23
|
+
text: string;
|
24
|
+
/** Ссылка на скачивание приложения в App Store */
|
25
|
+
linkApple?: LinkHrefType;
|
26
|
+
/** Обработчик клика по ссылке в App Store */
|
27
|
+
onClickApple?: LinkOnClickType;
|
28
|
+
/** Ссылка на скачивание приложения в Google Play */
|
29
|
+
linkGoogle?: LinkHrefType;
|
30
|
+
/** Обработчик клика по ссылке в Google Play */
|
31
|
+
onClickGoogle?: LinkOnClickType;
|
32
|
+
/** Ссылка на скачивание приложения в Huawei Store */
|
33
|
+
linkHuawei?: LinkHrefType;
|
34
|
+
/** Обработчик клика по ссылке в Huawei Store */
|
35
|
+
onClickHuawei?: LinkOnClickType;
|
36
|
+
/** Текст кнопки */
|
37
|
+
textButton?: string;
|
38
|
+
/** Ссылка для кнопки */
|
39
|
+
linkButton?: string;
|
40
|
+
/** Ссылка на картинку с QR-кодом */
|
41
|
+
qrCode?: string;
|
42
|
+
/** Цветовая тема компонента */
|
43
|
+
theme?: ThemeType;
|
44
|
+
/** Изображение телефона */
|
45
|
+
deviceMask: DeviceMaskType;
|
46
|
+
/** Изображение на дисплее телефона */
|
47
|
+
imageSrc: string;
|
48
|
+
/** Дополнительный класс корневого элемента */
|
49
|
+
className?: string;
|
50
|
+
/** Дополнительные классы для корневого и внутренних элементов */
|
51
|
+
classes?: {
|
52
|
+
root?: string;
|
53
|
+
appleLink?: string;
|
54
|
+
googleLink?: string;
|
55
|
+
huaweiLink?: string;
|
56
|
+
};
|
57
|
+
/** Ссылка на корневой элемент */
|
58
|
+
rootRef?: React.Ref<HTMLDivElement>;
|
59
|
+
/** Дата атрибуты для корневого элемента */
|
60
|
+
dataAttrs?: {
|
61
|
+
[key: string]: string;
|
62
|
+
};
|
63
|
+
}
|
64
|
+
declare const StoreBanner: React.FC<IStoreBannerProps>;
|
65
|
+
export default StoreBanner;
|
@@ -0,0 +1,169 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports["default"] = exports.DeviceMask = exports.Theme = void 0;
|
9
|
+
|
10
|
+
require("core-js/modules/es.object.values");
|
11
|
+
|
12
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
13
|
+
|
14
|
+
var React = _interopRequireWildcard(require("react"));
|
15
|
+
|
16
|
+
var _uiCore = require("@megafon/ui-core");
|
17
|
+
|
18
|
+
var _uiHelpers = require("@megafon/ui-helpers");
|
19
|
+
|
20
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
21
|
+
|
22
|
+
var _StoreButton = _interopRequireWildcard(require("../StoreButton/StoreButton"));
|
23
|
+
|
24
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
25
|
+
|
26
|
+
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
27
|
+
|
28
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
29
|
+
|
30
|
+
var Theme = {
|
31
|
+
CLEAR_WHITE: 'clearWhite',
|
32
|
+
GREEN: 'green',
|
33
|
+
SPB_SKY_1: 'spbSky1'
|
34
|
+
};
|
35
|
+
exports.Theme = Theme;
|
36
|
+
var DeviceMask = {
|
37
|
+
ANDROID: 'android',
|
38
|
+
NEW_IPHONE: 'new-iphone',
|
39
|
+
BLACK_IPHONE: 'black-iphone',
|
40
|
+
WHITE_IPHONE: 'white-iphone'
|
41
|
+
};
|
42
|
+
exports.DeviceMask = DeviceMask;
|
43
|
+
var DEFAULT_TEXT_BUTTON = 'Установите приложение';
|
44
|
+
var cn = (0, _uiHelpers.cnCreate)('mfui-store-banner');
|
45
|
+
|
46
|
+
var StoreBanner = function StoreBanner(_ref) {
|
47
|
+
var className = _ref.className,
|
48
|
+
_ref$classes = _ref.classes;
|
49
|
+
_ref$classes = _ref$classes === void 0 ? {} : _ref$classes;
|
50
|
+
var rootClassName = _ref$classes.root,
|
51
|
+
appleLinkClassName = _ref$classes.appleLink,
|
52
|
+
googleLinkClassName = _ref$classes.googleLink,
|
53
|
+
huaweiLinkClassName = _ref$classes.huaweiLink,
|
54
|
+
title = _ref.title,
|
55
|
+
text = _ref.text,
|
56
|
+
linkApple = _ref.linkApple,
|
57
|
+
linkGoogle = _ref.linkGoogle,
|
58
|
+
linkHuawei = _ref.linkHuawei,
|
59
|
+
linkButton = _ref.linkButton,
|
60
|
+
_ref$textButton = _ref.textButton,
|
61
|
+
textButton = _ref$textButton === void 0 ? DEFAULT_TEXT_BUTTON : _ref$textButton,
|
62
|
+
qrCode = _ref.qrCode,
|
63
|
+
imageSrc = _ref.imageSrc,
|
64
|
+
_ref$theme = _ref.theme,
|
65
|
+
theme = _ref$theme === void 0 ? Theme.CLEAR_WHITE : _ref$theme,
|
66
|
+
deviceMask = _ref.deviceMask,
|
67
|
+
rootRef = _ref.rootRef,
|
68
|
+
dataAttrs = _ref.dataAttrs,
|
69
|
+
onClickApple = _ref.onClickApple,
|
70
|
+
onClickGoogle = _ref.onClickGoogle,
|
71
|
+
onClickHuawei = _ref.onClickHuawei;
|
72
|
+
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
|
73
|
+
className: cn({
|
74
|
+
theme: theme,
|
75
|
+
mask: deviceMask
|
76
|
+
}, [className, rootClassName]),
|
77
|
+
ref: rootRef
|
78
|
+
}, (0, _uiHelpers.filterDataAttrs)(dataAttrs)), /*#__PURE__*/React.createElement("div", {
|
79
|
+
className: cn('container')
|
80
|
+
}, /*#__PURE__*/React.createElement("div", {
|
81
|
+
className: cn('grid')
|
82
|
+
}, /*#__PURE__*/React.createElement(_uiCore.Grid, null, /*#__PURE__*/React.createElement(_uiCore.GridColumn, {
|
83
|
+
all: "6",
|
84
|
+
mobile: "12",
|
85
|
+
rightOffsetWide: "1"
|
86
|
+
}, /*#__PURE__*/React.createElement("div", {
|
87
|
+
className: cn('content')
|
88
|
+
}, /*#__PURE__*/React.createElement(_uiCore.Header, {
|
89
|
+
as: "h2",
|
90
|
+
className: cn('title'),
|
91
|
+
color: "inherit"
|
92
|
+
}, title), /*#__PURE__*/React.createElement(_uiCore.Paragraph, {
|
93
|
+
className: cn('text'),
|
94
|
+
hasMargin: false,
|
95
|
+
color: "inherit"
|
96
|
+
}, text), /*#__PURE__*/React.createElement("div", {
|
97
|
+
className: cn('links', {
|
98
|
+
three: !!linkApple && !!linkGoogle && !!linkHuawei
|
99
|
+
})
|
100
|
+
}, !linkButton && qrCode && /*#__PURE__*/React.createElement("img", {
|
101
|
+
src: qrCode,
|
102
|
+
className: cn('qr-code'),
|
103
|
+
alt: "QR-\u043A\u043E\u0434"
|
104
|
+
}), !linkButton && /*#__PURE__*/React.createElement("div", {
|
105
|
+
className: cn('stores')
|
106
|
+
}, linkApple && /*#__PURE__*/React.createElement(_StoreButton["default"], {
|
107
|
+
theme: _StoreButton.Theme.APP_STORE,
|
108
|
+
href: linkApple,
|
109
|
+
onClick: onClickApple,
|
110
|
+
className: cn('store-link', {
|
111
|
+
'app-store': true
|
112
|
+
}, appleLinkClassName)
|
113
|
+
}), linkGoogle && /*#__PURE__*/React.createElement(_StoreButton["default"], {
|
114
|
+
theme: _StoreButton.Theme.GOOGLE_PLAY,
|
115
|
+
href: linkGoogle,
|
116
|
+
className: cn('store-link', {
|
117
|
+
'google-play': true
|
118
|
+
}, googleLinkClassName),
|
119
|
+
onClick: onClickGoogle
|
120
|
+
}), linkHuawei && /*#__PURE__*/React.createElement(_StoreButton["default"], {
|
121
|
+
theme: _StoreButton.Theme.HUAWEI_STORE,
|
122
|
+
href: linkHuawei,
|
123
|
+
className: cn('store-link', {
|
124
|
+
'huawei-store': true
|
125
|
+
}, huaweiLinkClassName),
|
126
|
+
onClick: onClickHuawei
|
127
|
+
})), linkButton && /*#__PURE__*/React.createElement(_uiCore.Button, {
|
128
|
+
className: cn('button'),
|
129
|
+
href: linkButton,
|
130
|
+
theme: theme === 'green' ? 'purple' : 'green'
|
131
|
+
}, textButton)))), /*#__PURE__*/React.createElement(_uiCore.GridColumn, {
|
132
|
+
all: "4",
|
133
|
+
desktop: "6",
|
134
|
+
tablet: "6",
|
135
|
+
mobile: "12"
|
136
|
+
}, /*#__PURE__*/React.createElement("div", {
|
137
|
+
className: cn('device-wrapper')
|
138
|
+
}, /*#__PURE__*/React.createElement("div", {
|
139
|
+
className: cn('device-mask')
|
140
|
+
}), /*#__PURE__*/React.createElement("img", {
|
141
|
+
src: imageSrc,
|
142
|
+
className: cn('screen'),
|
143
|
+
alt: "\u0418\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F \u043D\u0430 \u044D\u043A\u0440\u0430\u043D\u0435 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430"
|
144
|
+
})))))));
|
145
|
+
};
|
146
|
+
|
147
|
+
StoreBanner.propTypes = {
|
148
|
+
title: _propTypes["default"].string.isRequired,
|
149
|
+
text: _propTypes["default"].string.isRequired,
|
150
|
+
linkApple: _propTypes["default"].string,
|
151
|
+
onClickApple: _propTypes["default"].func,
|
152
|
+
linkGoogle: _propTypes["default"].string,
|
153
|
+
onClickGoogle: _propTypes["default"].func,
|
154
|
+
qrCode: _propTypes["default"].string,
|
155
|
+
theme: _propTypes["default"].oneOf(Object.values(Theme)),
|
156
|
+
deviceMask: _propTypes["default"].oneOf(Object.values(DeviceMask)).isRequired,
|
157
|
+
imageSrc: _propTypes["default"].string.isRequired,
|
158
|
+
className: _propTypes["default"].string,
|
159
|
+
classes: _propTypes["default"].shape({
|
160
|
+
appleLink: _propTypes["default"].string,
|
161
|
+
googleLink: _propTypes["default"].string
|
162
|
+
}),
|
163
|
+
rootRef: _propTypes["default"].oneOfType([_propTypes["default"].func, _propTypes["default"].oneOfType([_propTypes["default"].shape({
|
164
|
+
current: _propTypes["default"].elementType
|
165
|
+
}), _propTypes["default"].any])]),
|
166
|
+
dataAttrs: _propTypes["default"].objectOf(_propTypes["default"].string.isRequired)
|
167
|
+
};
|
168
|
+
var _default = StoreBanner;
|
169
|
+
exports["default"] = _default;
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,15 @@
|
|
1
|
+
.mfui-store-button {
|
2
|
+
border-radius: 8px;
|
3
|
+
background-repeat: no-repeat;
|
4
|
+
background-position: center;
|
5
|
+
background-size: cover;
|
6
|
+
}
|
7
|
+
.mfui-store-button_theme_app-store {
|
8
|
+
background-image: url('./img/app-store.png');
|
9
|
+
}
|
10
|
+
.mfui-store-button_theme_google-play {
|
11
|
+
background-image: url('./img/google-play.png');
|
12
|
+
}
|
13
|
+
.mfui-store-button_theme_huawei-store {
|
14
|
+
background-image: url('./img/huawei-store.png');
|
15
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { Link } from '@megafon/ui-core';
|
3
|
+
import './StoreButton.less';
|
4
|
+
export declare enum Theme {
|
5
|
+
GOOGLE_PLAY = "google-play",
|
6
|
+
APP_STORE = "app-store",
|
7
|
+
HUAWEI_STORE = "huawei-store"
|
8
|
+
}
|
9
|
+
declare type LinkPropTypes = React.ComponentProps<typeof Link>;
|
10
|
+
export declare type Props = Required<Pick<LinkPropTypes, 'href'>> & Pick<LinkPropTypes, 'onClick'> & {
|
11
|
+
/** Тема кнопки */
|
12
|
+
theme: Theme;
|
13
|
+
/** Дополнительный класс */
|
14
|
+
className?: string;
|
15
|
+
};
|
16
|
+
declare const StoreButton: React.FC<Props>;
|
17
|
+
export default StoreButton;
|
@@ -0,0 +1,58 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports["default"] = exports.Theme = void 0;
|
9
|
+
|
10
|
+
require("core-js/modules/es.object.values");
|
11
|
+
|
12
|
+
var React = _interopRequireWildcard(require("react"));
|
13
|
+
|
14
|
+
var _uiCore = require("@megafon/ui-core");
|
15
|
+
|
16
|
+
var _uiHelpers = require("@megafon/ui-helpers");
|
17
|
+
|
18
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
19
|
+
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
21
|
+
|
22
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
23
|
+
|
24
|
+
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
25
|
+
|
26
|
+
var Theme;
|
27
|
+
exports.Theme = Theme;
|
28
|
+
|
29
|
+
(function (Theme) {
|
30
|
+
Theme["GOOGLE_PLAY"] = "google-play";
|
31
|
+
Theme["APP_STORE"] = "app-store";
|
32
|
+
Theme["HUAWEI_STORE"] = "huawei-store";
|
33
|
+
})(Theme || (exports.Theme = Theme = {}));
|
34
|
+
|
35
|
+
var cn = (0, _uiHelpers.cnCreate)('mfui-store-button');
|
36
|
+
|
37
|
+
var StoreButton = function StoreButton(_ref) {
|
38
|
+
var href = _ref.href,
|
39
|
+
onClick = _ref.onClick,
|
40
|
+
theme = _ref.theme,
|
41
|
+
className = _ref.className;
|
42
|
+
return /*#__PURE__*/React.createElement(_uiCore.Link, {
|
43
|
+
href: href,
|
44
|
+
onClick: onClick,
|
45
|
+
className: cn({
|
46
|
+
theme: theme
|
47
|
+
}, className)
|
48
|
+
});
|
49
|
+
};
|
50
|
+
|
51
|
+
StoreButton.propTypes = {
|
52
|
+
href: _propTypes["default"].string.isRequired,
|
53
|
+
theme: _propTypes["default"].oneOf(Object.values(Theme)).isRequired,
|
54
|
+
onClick: _propTypes["default"].func,
|
55
|
+
className: _propTypes["default"].string
|
56
|
+
};
|
57
|
+
var _default = StoreButton;
|
58
|
+
exports["default"] = _default;
|
Binary file
|
Binary file
|
Binary file
|