@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
@@ -5,133 +5,212 @@ h4,
|
|
5
5
|
h5 {
|
6
6
|
margin: 0;
|
7
7
|
}
|
8
|
-
.mfui-
|
8
|
+
.mfui-video-banner {
|
9
9
|
position: relative;
|
10
10
|
overflow: hidden;
|
11
11
|
}
|
12
|
-
|
12
|
+
@media screen and (min-width: 1280px) {
|
13
|
+
.mfui-video-banner {
|
14
|
+
margin-right: -80px;
|
15
|
+
margin-left: -80px;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
@media screen and (min-width: 1024px) and (max-width: 1279px) {
|
19
|
+
.mfui-video-banner {
|
20
|
+
margin-right: -64px;
|
21
|
+
margin-left: -64px;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
25
|
+
.mfui-video-banner {
|
26
|
+
margin-right: -48px;
|
27
|
+
margin-left: -48px;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
@media screen and (max-width: 767px) {
|
31
|
+
.mfui-video-banner {
|
32
|
+
margin-right: -16px;
|
33
|
+
margin-left: -16px;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
.mfui-video-banner__wrapper {
|
13
37
|
display: -webkit-box;
|
14
38
|
display: -ms-flexbox;
|
15
39
|
display: flex;
|
16
|
-
|
40
|
+
-webkit-box-align: center;
|
41
|
+
-ms-flex-align: center;
|
42
|
+
align-items: center;
|
43
|
+
min-height: 400px;
|
17
44
|
}
|
18
45
|
@media screen and (min-width: 1440px) {
|
19
|
-
.mfui-
|
46
|
+
.mfui-video-banner__wrapper {
|
20
47
|
height: 562px;
|
21
48
|
}
|
22
49
|
}
|
23
50
|
@media screen and (min-width: 1280px) and (max-width: 1439px) {
|
24
|
-
.mfui-
|
51
|
+
.mfui-video-banner__wrapper {
|
25
52
|
height: 500px;
|
26
53
|
}
|
27
54
|
}
|
28
|
-
@media screen and (min-width: 1280px) {
|
29
|
-
.mfui-beta-video-banner__wrapper {
|
30
|
-
padding-left: 80px;
|
31
|
-
padding-right: 80px;
|
32
|
-
}
|
33
|
-
}
|
34
55
|
@media screen and (min-width: 1024px) and (max-width: 1279px) {
|
35
|
-
.mfui-
|
36
|
-
|
37
|
-
padding-
|
56
|
+
.mfui-video-banner__wrapper {
|
57
|
+
max-height: 440px;
|
58
|
+
padding-top: 52px;
|
59
|
+
padding-bottom: 52px;
|
38
60
|
}
|
39
61
|
}
|
40
62
|
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
41
|
-
.mfui-
|
42
|
-
|
43
|
-
padding-
|
63
|
+
.mfui-video-banner__wrapper {
|
64
|
+
max-height: 440px;
|
65
|
+
padding-top: 64px;
|
66
|
+
padding-bottom: 64px;
|
44
67
|
}
|
45
68
|
}
|
46
69
|
@media screen and (max-width: 767px) {
|
47
|
-
.mfui-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
-webkit-box-align: center;
|
52
|
-
-ms-flex-align: center;
|
53
|
-
align-items: center;
|
54
|
-
-webkit-box-pack: center;
|
55
|
-
-ms-flex-pack: center;
|
56
|
-
justify-content: center;
|
57
|
-
padding-left: 16px;
|
58
|
-
padding-right: 16px;
|
70
|
+
.mfui-video-banner__wrapper {
|
71
|
+
max-height: 488px;
|
72
|
+
padding-top: 42px;
|
73
|
+
padding-bottom: 42px;
|
59
74
|
}
|
60
75
|
}
|
61
|
-
.mfui-
|
62
|
-
|
63
|
-
}
|
64
|
-
.mfui-beta-video-banner__background-image,
|
65
|
-
.mfui-beta-video-banner__video {
|
76
|
+
.mfui-video-banner__background-image,
|
77
|
+
.mfui-video-banner__video {
|
66
78
|
position: absolute;
|
67
|
-
left: 50%;
|
68
79
|
top: 50%;
|
80
|
+
left: 50%;
|
69
81
|
-webkit-transform: translate(-50%, -50%);
|
70
82
|
transform: translate(-50%, -50%);
|
71
83
|
}
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
84
|
+
.mfui-video-banner__background-image {
|
85
|
+
width: 100%;
|
86
|
+
height: 100%;
|
87
|
+
background-repeat: no-repeat;
|
88
|
+
background-position: center;
|
89
|
+
background-size: cover;
|
76
90
|
}
|
77
|
-
.mfui-
|
91
|
+
.mfui-video-banner__content {
|
92
|
+
position: relative;
|
78
93
|
-webkit-box-sizing: border-box;
|
79
94
|
box-sizing: border-box;
|
80
|
-
|
81
|
-
|
82
|
-
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
-
|
88
|
-
|
89
|
-
|
90
|
-
flex-direction: column;
|
91
|
-
-webkit-box-pack: center;
|
92
|
-
-ms-flex-pack: center;
|
93
|
-
justify-content: center;
|
94
|
-
-webkit-box-align: start;
|
95
|
-
-ms-flex-align: start;
|
96
|
-
align-items: flex-start;
|
97
|
-
width: 550px;
|
98
|
-
height: 320px;
|
95
|
+
}
|
96
|
+
@media screen and (min-width: 1440px) {
|
97
|
+
.mfui-video-banner__content {
|
98
|
+
max-height: calc(562px - 2 * 70px);
|
99
|
+
}
|
100
|
+
}
|
101
|
+
@media screen and (min-width: 1280px) and (max-width: 1439px) {
|
102
|
+
.mfui-video-banner__content {
|
103
|
+
max-height: calc(500px - 2 * 70px);
|
104
|
+
}
|
99
105
|
}
|
100
106
|
@media screen and (min-width: 1024px) and (max-width: 1279px) {
|
101
|
-
.mfui-
|
102
|
-
|
103
|
-
height: 296px;
|
107
|
+
.mfui-video-banner__content {
|
108
|
+
max-height: calc(440px - 2 * 52px);
|
104
109
|
}
|
105
110
|
}
|
106
111
|
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
107
|
-
.mfui-
|
108
|
-
|
109
|
-
|
112
|
+
.mfui-video-banner__content {
|
113
|
+
max-height: calc(440px - 2 * 64px);
|
114
|
+
}
|
115
|
+
}
|
116
|
+
@media screen and (max-width: 767px) {
|
117
|
+
.mfui-video-banner__content {
|
118
|
+
max-height: calc(488px - 2 * 42px);
|
119
|
+
}
|
120
|
+
}
|
121
|
+
.mfui-video-banner__content_text-color_black {
|
122
|
+
color: #333333;
|
123
|
+
}
|
124
|
+
.mfui-video-banner__content_text-color_white {
|
125
|
+
color: #FFFFFF;
|
126
|
+
}
|
127
|
+
@media screen and (max-width: 767px) {
|
128
|
+
.mfui-video-banner__content_text-color-mobile_black {
|
129
|
+
color: #333333;
|
110
130
|
}
|
111
131
|
}
|
112
132
|
@media screen and (max-width: 767px) {
|
113
|
-
.mfui-
|
114
|
-
|
115
|
-
-ms-flex-align: center;
|
116
|
-
align-items: center;
|
117
|
-
width: 288px;
|
118
|
-
height: 316px;
|
133
|
+
.mfui-video-banner__content_text-color-mobile_white {
|
134
|
+
color: #FFFFFF;
|
119
135
|
}
|
120
136
|
}
|
121
|
-
.mfui-
|
137
|
+
.mfui-video-banner__description {
|
122
138
|
margin-bottom: 32px;
|
139
|
+
white-space: pre-wrap;
|
123
140
|
}
|
124
|
-
.mfui-
|
141
|
+
.mfui-video-banner__title {
|
125
142
|
margin-bottom: 24px;
|
126
143
|
}
|
127
144
|
@media screen and (max-width: 767px) {
|
128
|
-
.mfui-
|
145
|
+
.mfui-video-banner__title {
|
129
146
|
margin-bottom: 20px;
|
130
147
|
}
|
131
148
|
}
|
149
|
+
.mfui-video-banner__title,
|
150
|
+
.mfui-video-banner__text {
|
151
|
+
white-space: pre-wrap;
|
152
|
+
}
|
132
153
|
@media screen and (max-width: 767px) {
|
133
|
-
.mfui-
|
134
|
-
.mfui-
|
154
|
+
.mfui-video-banner__title,
|
155
|
+
.mfui-video-banner__text {
|
135
156
|
text-align: center;
|
136
157
|
}
|
137
158
|
}
|
159
|
+
.mfui-video-banner__btns-wrapper {
|
160
|
+
display: -webkit-box;
|
161
|
+
display: -ms-flexbox;
|
162
|
+
display: flex;
|
163
|
+
-ms-flex-wrap: wrap;
|
164
|
+
flex-wrap: wrap;
|
165
|
+
-webkit-box-align: center;
|
166
|
+
-ms-flex-align: center;
|
167
|
+
align-items: center;
|
168
|
+
-webkit-box-pack: start;
|
169
|
+
-ms-flex-pack: start;
|
170
|
+
justify-content: flex-start;
|
171
|
+
margin: -24px -10px 0;
|
172
|
+
}
|
173
|
+
@media screen and (max-width: 767px) {
|
174
|
+
.mfui-video-banner__btns-wrapper {
|
175
|
+
-webkit-box-pack: center;
|
176
|
+
-ms-flex-pack: center;
|
177
|
+
justify-content: center;
|
178
|
+
}
|
179
|
+
}
|
180
|
+
@media screen and (max-width: 479px) {
|
181
|
+
.mfui-video-banner__btns-wrapper {
|
182
|
+
-webkit-box-orient: vertical;
|
183
|
+
-webkit-box-direction: normal;
|
184
|
+
-ms-flex-direction: column;
|
185
|
+
flex-direction: column;
|
186
|
+
}
|
187
|
+
}
|
188
|
+
.mfui-video-banner__link,
|
189
|
+
.mfui-video-banner__button {
|
190
|
+
margin: 24px 10px 0;
|
191
|
+
}
|
192
|
+
.mfui-video-banner__cost {
|
193
|
+
font-size: 12px;
|
194
|
+
line-height: 16px;
|
195
|
+
margin-bottom: 18px;
|
196
|
+
}
|
197
|
+
.mfui-video-banner__value {
|
198
|
+
display: inline;
|
199
|
+
margin: 0 3px;
|
200
|
+
}
|
201
|
+
.mfui-video-banner__content,
|
202
|
+
.mfui-video-banner__breadcrumbs {
|
203
|
+
z-index: 1;
|
204
|
+
}
|
205
|
+
.mfui-video-banner__breadcrumbs {
|
206
|
+
position: absolute;
|
207
|
+
top: 32px;
|
208
|
+
}
|
209
|
+
@media screen and (max-width: 767px) {
|
210
|
+
.mfui-video-banner__breadcrumbs {
|
211
|
+
display: none;
|
212
|
+
}
|
213
|
+
}
|
214
|
+
.mfui-video-banner__grid {
|
215
|
+
width: 100%;
|
216
|
+
}
|
@@ -1,31 +1,72 @@
|
|
1
|
-
import
|
1
|
+
import React, { Ref } from 'react';
|
2
|
+
import { Props as BreadcrumbsPropsType } from '../Breadcrumbs/Breadcrumbs';
|
2
3
|
import './VideoBanner.less';
|
3
|
-
|
4
|
+
declare type BreadCrumbsItemsType = BreadcrumbsPropsType['items'];
|
5
|
+
export declare enum ClassName {
|
6
|
+
BUTTON = "button",
|
7
|
+
LINK = "link"
|
8
|
+
}
|
9
|
+
export declare const VideoType: {
|
4
10
|
readonly YOUTUBE: "youtube";
|
5
11
|
readonly VIDEO: "video";
|
6
12
|
};
|
7
|
-
declare type VideoType = typeof
|
13
|
+
declare type VideoType = typeof VideoType[keyof typeof VideoType];
|
14
|
+
export declare const ButtonColor: {
|
15
|
+
readonly GREEN: "green";
|
16
|
+
readonly PURPLE: "purple";
|
17
|
+
};
|
18
|
+
export declare type ButtonColorType = typeof ButtonColor[keyof typeof ButtonColor];
|
19
|
+
export declare const TextColor: {
|
20
|
+
readonly BLACK: "black";
|
21
|
+
readonly WHITE: "white";
|
22
|
+
};
|
23
|
+
declare type TextColorType = typeof TextColor[keyof typeof TextColor];
|
8
24
|
export interface IContent {
|
9
25
|
/** Заголовок */
|
10
26
|
title: string;
|
11
27
|
/** Текст-описание */
|
12
28
|
description: string;
|
13
29
|
/** Текст кнопки */
|
14
|
-
buttonTitle
|
30
|
+
buttonTitle?: string;
|
15
31
|
/** Ссылка на кнопке */
|
16
|
-
|
32
|
+
buttonHref?: string;
|
33
|
+
/** Добавляет атрибут download для тега <a> компонента Button */
|
34
|
+
buttonDownload?: boolean;
|
35
|
+
/** Цвет кнопки */
|
36
|
+
buttonColor?: ButtonColorType;
|
17
37
|
/** Обработчик клика по кнопке */
|
18
38
|
onButtonClick?: (e: React.SyntheticEvent<EventTarget>) => void;
|
19
|
-
|
20
|
-
|
21
|
-
/**
|
22
|
-
|
23
|
-
/**
|
24
|
-
|
39
|
+
/** Обработчик клика по ссылке */
|
40
|
+
onLinkClick?: (e: React.SyntheticEvent<EventTarget>) => void;
|
41
|
+
/** Цвет текста */
|
42
|
+
textColor?: TextColorType;
|
43
|
+
/** Цвет текста на мобильном разрешении */
|
44
|
+
textColorMobile?: TextColorType;
|
45
|
+
/** Текст ссылки */
|
46
|
+
linkTitle?: string;
|
47
|
+
/** Адрес ссылки */
|
48
|
+
linkUrl?: string;
|
49
|
+
/** Добавляет атрибут download для тега <a> компонента TextLink */
|
50
|
+
linkDownload?: boolean;
|
51
|
+
/** Строка со стоимостью услуги */
|
52
|
+
cost?: string;
|
25
53
|
}
|
26
54
|
interface IVideoBannerProps {
|
27
|
-
/**
|
28
|
-
|
55
|
+
/** Дата атрибуты для корневого элемента */
|
56
|
+
dataAttrs?: {
|
57
|
+
[key: string]: string;
|
58
|
+
};
|
59
|
+
/** Дополнительный класс корневого элемента */
|
60
|
+
className?: string;
|
61
|
+
/** Дополнительные классы для корневого и внутренних элементов */
|
62
|
+
classes?: {
|
63
|
+
root?: string;
|
64
|
+
button?: string;
|
65
|
+
link?: string;
|
66
|
+
breadcrumbs?: string;
|
67
|
+
};
|
68
|
+
/** Ссылка на корневой элемент */
|
69
|
+
rootRef?: Ref<HTMLDivElement>;
|
29
70
|
/** Данные для блока с контентом */
|
30
71
|
content?: IContent;
|
31
72
|
/** Источник видео. */
|
@@ -34,6 +75,16 @@ interface IVideoBannerProps {
|
|
34
75
|
videoType?: VideoType;
|
35
76
|
/** Наличие звука в видео */
|
36
77
|
isMuted?: boolean;
|
78
|
+
/** Изображение для мобильного разрешения */
|
79
|
+
imageMobile: string;
|
80
|
+
/** Изображение для планшетного разрешения */
|
81
|
+
imageTablet: string;
|
82
|
+
/** Изображение для компьютерного разрешения */
|
83
|
+
imageDesktop?: string;
|
84
|
+
/** Изображение для большого компьютерного разрешения */
|
85
|
+
imageDesktopWide?: string;
|
86
|
+
/** Хлебные крошки */
|
87
|
+
breadcrumbs?: BreadCrumbsItemsType;
|
37
88
|
}
|
38
89
|
declare const VideoBanner: React.FC<IVideoBannerProps>;
|
39
90
|
export default VideoBanner;
|