@megafon/ui-shared 2.0.0-beta.98 → 2.1.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.
Files changed (211) hide show
  1. package/CHANGELOG.md +1637 -0
  2. package/README.md +0 -5
  3. package/dist/es/components/AccordionBox/AccordionBox.css +13 -0
  4. package/dist/es/components/AccordionBox/AccordionBox.d.ts +16 -1
  5. package/dist/es/components/AccordionBox/AccordionBox.js +29 -13
  6. package/dist/es/components/BannerBox/BannerBox.js +3 -2
  7. package/dist/es/components/BenefitsIcons/BenefitsIcons.d.ts +13 -2
  8. package/dist/es/components/BenefitsIcons/BenefitsIcons.js +82 -17
  9. package/dist/es/components/BenefitsIcons/BenefitsIconsTile.d.ts +2 -1
  10. package/dist/es/components/BenefitsIcons/BenefitsIconsTile.js +15 -14
  11. package/dist/es/components/BenefitsIcons/style/BenefitsIcons.css +3 -3
  12. package/dist/es/components/BenefitsIcons/style/BenefitsIconsTile.css +19 -12
  13. package/dist/es/components/BenefitsIcons/types.d.ts +7 -2
  14. package/dist/es/components/BenefitsIcons/types.js +4 -0
  15. package/dist/es/components/BenefitsPictures/BenefitsPictures.d.ts +10 -1
  16. package/dist/es/components/BenefitsPictures/BenefitsPictures.js +28 -12
  17. package/dist/es/components/BenefitsPictures/BenfitsPictures.css +4 -4
  18. package/dist/es/components/Breadcrumbs/Breadcrumbs.css +46 -0
  19. package/dist/es/components/Breadcrumbs/Breadcrumbs.d.ts +21 -0
  20. package/dist/es/components/Breadcrumbs/Breadcrumbs.js +49 -0
  21. package/dist/es/components/ButtonBanner/ButtonBanner.css +122 -0
  22. package/dist/es/components/ButtonBanner/ButtonBanner.d.ts +54 -0
  23. package/dist/es/components/ButtonBanner/ButtonBanner.js +107 -0
  24. package/dist/es/components/ButtonLinkBox/ButtonLinkBox.css +3 -3
  25. package/dist/es/components/ButtonLinkBox/ButtonLinkBox.d.ts +22 -2
  26. package/dist/es/components/ButtonLinkBox/ButtonLinkBox.js +37 -8
  27. package/dist/es/components/Card/Card.css +71 -44
  28. package/dist/es/components/Card/Card.d.ts +33 -3
  29. package/dist/es/components/Card/Card.js +103 -42
  30. package/dist/es/components/CardsBox/CardsBox.d.ts +10 -2
  31. package/dist/es/components/CardsBox/CardsBox.js +26 -13
  32. package/dist/es/components/CarouselBox/CarouselBox.js +3 -2
  33. package/dist/es/components/Container/Container.css +1848 -533
  34. package/dist/es/components/Container/Container.d.ts +11 -1
  35. package/dist/es/components/Container/Container.js +28 -6
  36. package/dist/es/components/DownloadLinks/DownloadLink.css +6 -6
  37. package/dist/es/components/DownloadLinks/DownloadLink.d.ts +7 -0
  38. package/dist/es/components/DownloadLinks/DownloadLink.js +28 -6
  39. package/dist/es/components/DownloadLinks/DownloadLinks.css +9 -6
  40. package/dist/es/components/DownloadLinks/DownloadLinks.d.ts +2 -0
  41. package/dist/es/components/DownloadLinks/DownloadLinks.js +18 -3
  42. package/dist/es/components/Instructions/Instructions.css +189 -130
  43. package/dist/es/components/Instructions/Instructions.d.ts +21 -2
  44. package/dist/es/components/Instructions/Instructions.js +115 -74
  45. package/dist/es/components/Instructions/img/iphone12.png +0 -0
  46. package/dist/es/components/PageTitle/PageTitle.css +80 -0
  47. package/dist/es/components/PageTitle/PageTitle.d.ts +23 -0
  48. package/dist/es/components/PageTitle/PageTitle.js +65 -0
  49. package/dist/es/components/Partners/Partners.css +22 -31
  50. package/dist/es/components/Partners/Partners.d.ts +13 -1
  51. package/dist/es/components/Partners/Partners.js +40 -18
  52. package/dist/es/components/PictureWithDescription/PictureWithDescription.css +25 -10
  53. package/dist/es/components/PictureWithDescription/PictureWithDescription.d.ts +13 -0
  54. package/dist/es/components/PictureWithDescription/PictureWithDescription.js +31 -7
  55. package/dist/es/components/Property/Property.css +79 -71
  56. package/dist/es/components/Property/Property.d.ts +21 -2
  57. package/dist/es/components/Property/Property.js +80 -34
  58. package/dist/es/components/Property/PropertyDescription.css +3 -3
  59. package/dist/es/components/Property/PropertyDescription.js +19 -21
  60. package/dist/es/components/Property/types.d.ts +7 -2
  61. package/dist/es/components/Steps/Steps.css +41 -0
  62. package/dist/es/components/Steps/Steps.d.ts +10 -0
  63. package/dist/es/components/Steps/Steps.js +35 -0
  64. package/dist/es/components/Steps/StepsItem.css +37 -0
  65. package/dist/es/components/Steps/StepsItem.d.ts +10 -0
  66. package/dist/es/components/Steps/StepsItem.js +26 -0
  67. package/dist/es/components/StoreBanner/StoreBanner.css +293 -0
  68. package/dist/es/components/StoreBanner/StoreBanner.d.ts +67 -0
  69. package/dist/es/components/StoreBanner/StoreBanner.js +164 -0
  70. package/dist/es/components/StoreBanner/doc/img/new-iphone-screen.png +0 -0
  71. package/dist/es/components/StoreBanner/doc/img/qr-code.png +0 -0
  72. package/dist/es/components/StoreBanner/doc/img/screen.png +0 -0
  73. package/dist/es/components/StoreBanner/img/android.png +0 -0
  74. package/dist/es/components/StoreBanner/img/black-iphone.png +0 -0
  75. package/dist/es/components/StoreBanner/img/new-iphone.png +0 -0
  76. package/dist/es/components/StoreBanner/img/white-iphone.png +0 -0
  77. package/dist/es/components/StoreButton/StoreButton.css +15 -0
  78. package/dist/es/components/StoreButton/StoreButton.d.ts +17 -0
  79. package/dist/es/components/StoreButton/StoreButton.js +37 -0
  80. package/dist/es/components/StoreButton/img/app-store.png +0 -0
  81. package/dist/es/components/StoreButton/img/google-play.png +0 -0
  82. package/dist/es/components/StoreButton/img/huawei-store.png +0 -0
  83. package/dist/es/components/Table/Table.css +67 -67
  84. package/dist/es/components/Table/Table.js +4 -4
  85. package/dist/es/components/Table/TableRow.js +1 -0
  86. package/dist/es/components/TabsBox/TabsBox.d.ts +4 -1
  87. package/dist/es/components/TabsBox/TabsBox.js +24 -3
  88. package/dist/es/components/TextBox/TextBox.css +7 -1
  89. package/dist/es/components/TextBox/TextBox.d.ts +8 -0
  90. package/dist/es/components/TextBox/TextBox.js +37 -5
  91. package/dist/es/components/TextBox/TextBoxPicture.css +24 -0
  92. package/dist/es/components/TextBox/TextBoxPicture.d.ts +17 -0
  93. package/dist/es/components/TextBox/TextBoxPicture.js +32 -0
  94. package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.css +15 -4
  95. package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +8 -2
  96. package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.js +34 -14
  97. package/dist/es/components/VideoBanner/VideoBanner.css +155 -76
  98. package/dist/es/components/VideoBanner/VideoBanner.d.ts +64 -13
  99. package/dist/es/components/VideoBanner/VideoBanner.js +202 -70
  100. package/dist/es/components/VideoBlock/VideoBlock.css +32 -28
  101. package/dist/es/components/VideoBlock/VideoBlock.d.ts +20 -6
  102. package/dist/es/components/VideoBlock/VideoBlock.js +63 -44
  103. package/dist/es/constants/throttleTime.d.ts +4 -0
  104. package/dist/es/constants/throttleTime.js +3 -0
  105. package/dist/es/index.d.ts +8 -0
  106. package/dist/es/index.js +8 -0
  107. package/dist/lib/components/AccordionBox/AccordionBox.css +13 -0
  108. package/dist/lib/components/AccordionBox/AccordionBox.d.ts +16 -1
  109. package/dist/lib/components/AccordionBox/AccordionBox.js +31 -19
  110. package/dist/lib/components/BannerBox/BannerBox.js +3 -5
  111. package/dist/lib/components/BenefitsIcons/BenefitsIcons.d.ts +13 -2
  112. package/dist/lib/components/BenefitsIcons/BenefitsIcons.js +84 -20
  113. package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.d.ts +2 -1
  114. package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.js +15 -16
  115. package/dist/lib/components/BenefitsIcons/style/BenefitsIcons.css +3 -3
  116. package/dist/lib/components/BenefitsIcons/style/BenefitsIconsTile.css +19 -12
  117. package/dist/lib/components/BenefitsIcons/types.d.ts +7 -2
  118. package/dist/lib/components/BenefitsIcons/types.js +7 -2
  119. package/dist/lib/components/BenefitsPictures/BenefitsPictures.d.ts +10 -1
  120. package/dist/lib/components/BenefitsPictures/BenefitsPictures.js +32 -15
  121. package/dist/lib/components/BenefitsPictures/BenfitsPictures.css +4 -4
  122. package/dist/lib/components/Breadcrumbs/Breadcrumbs.css +46 -0
  123. package/dist/lib/components/Breadcrumbs/Breadcrumbs.d.ts +21 -0
  124. package/dist/lib/components/Breadcrumbs/Breadcrumbs.js +65 -0
  125. package/dist/lib/components/ButtonBanner/ButtonBanner.css +122 -0
  126. package/dist/lib/components/ButtonBanner/ButtonBanner.d.ts +54 -0
  127. package/dist/lib/components/ButtonBanner/ButtonBanner.js +133 -0
  128. package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.css +3 -3
  129. package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.d.ts +22 -2
  130. package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.js +45 -11
  131. package/dist/lib/components/Card/Card.css +71 -44
  132. package/dist/lib/components/Card/Card.d.ts +33 -3
  133. package/dist/lib/components/Card/Card.js +118 -59
  134. package/dist/lib/components/CardsBox/CardsBox.d.ts +10 -2
  135. package/dist/lib/components/CardsBox/CardsBox.js +30 -16
  136. package/dist/lib/components/CarouselBox/CarouselBox.js +3 -5
  137. package/dist/lib/components/Container/Container.css +1848 -533
  138. package/dist/lib/components/Container/Container.d.ts +11 -1
  139. package/dist/lib/components/Container/Container.js +32 -11
  140. package/dist/lib/components/DownloadLinks/DownloadLink.css +6 -6
  141. package/dist/lib/components/DownloadLinks/DownloadLink.d.ts +7 -0
  142. package/dist/lib/components/DownloadLinks/DownloadLink.js +32 -11
  143. package/dist/lib/components/DownloadLinks/DownloadLinks.css +9 -6
  144. package/dist/lib/components/DownloadLinks/DownloadLinks.d.ts +2 -0
  145. package/dist/lib/components/DownloadLinks/DownloadLinks.js +20 -6
  146. package/dist/lib/components/Instructions/Instructions.css +189 -130
  147. package/dist/lib/components/Instructions/Instructions.d.ts +21 -2
  148. package/dist/lib/components/Instructions/Instructions.js +148 -104
  149. package/dist/lib/components/Instructions/img/iphone12.png +0 -0
  150. package/dist/lib/components/PageTitle/PageTitle.css +80 -0
  151. package/dist/lib/components/PageTitle/PageTitle.d.ts +23 -0
  152. package/dist/lib/components/PageTitle/PageTitle.js +85 -0
  153. package/dist/lib/components/Partners/Partners.css +22 -31
  154. package/dist/lib/components/Partners/Partners.d.ts +13 -1
  155. package/dist/lib/components/Partners/Partners.js +43 -23
  156. package/dist/lib/components/PictureWithDescription/PictureWithDescription.css +25 -10
  157. package/dist/lib/components/PictureWithDescription/PictureWithDescription.d.ts +13 -0
  158. package/dist/lib/components/PictureWithDescription/PictureWithDescription.js +33 -8
  159. package/dist/lib/components/Property/Property.css +79 -71
  160. package/dist/lib/components/Property/Property.d.ts +21 -2
  161. package/dist/lib/components/Property/Property.js +93 -53
  162. package/dist/lib/components/Property/PropertyDescription.css +3 -3
  163. package/dist/lib/components/Property/PropertyDescription.js +21 -25
  164. package/dist/lib/components/Property/types.d.ts +7 -2
  165. package/dist/lib/components/Steps/Steps.css +41 -0
  166. package/dist/lib/components/Steps/Steps.d.ts +10 -0
  167. package/dist/lib/components/Steps/Steps.js +55 -0
  168. package/dist/lib/components/Steps/StepsItem.css +37 -0
  169. package/dist/lib/components/Steps/StepsItem.d.ts +10 -0
  170. package/dist/lib/components/Steps/StepsItem.js +39 -0
  171. package/dist/lib/components/StoreBanner/StoreBanner.css +293 -0
  172. package/dist/lib/components/StoreBanner/StoreBanner.d.ts +67 -0
  173. package/dist/lib/components/StoreBanner/StoreBanner.js +191 -0
  174. package/dist/lib/components/StoreBanner/doc/img/new-iphone-screen.png +0 -0
  175. package/dist/lib/components/StoreBanner/doc/img/qr-code.png +0 -0
  176. package/dist/lib/components/StoreBanner/doc/img/screen.png +0 -0
  177. package/dist/lib/components/StoreBanner/img/android.png +0 -0
  178. package/dist/lib/components/StoreBanner/img/black-iphone.png +0 -0
  179. package/dist/lib/components/StoreBanner/img/new-iphone.png +0 -0
  180. package/dist/lib/components/StoreBanner/img/white-iphone.png +0 -0
  181. package/dist/lib/components/StoreButton/StoreButton.css +15 -0
  182. package/dist/lib/components/StoreButton/StoreButton.d.ts +17 -0
  183. package/dist/lib/components/StoreButton/StoreButton.js +58 -0
  184. package/dist/lib/components/StoreButton/img/app-store.png +0 -0
  185. package/dist/lib/components/StoreButton/img/google-play.png +0 -0
  186. package/dist/lib/components/StoreButton/img/huawei-store.png +0 -0
  187. package/dist/lib/components/Table/Table.css +67 -67
  188. package/dist/lib/components/Table/Table.js +6 -8
  189. package/dist/lib/components/Table/TableRow.js +1 -0
  190. package/dist/lib/components/TabsBox/TabsBox.d.ts +4 -1
  191. package/dist/lib/components/TabsBox/TabsBox.js +25 -2
  192. package/dist/lib/components/TextBox/TextBox.css +7 -1
  193. package/dist/lib/components/TextBox/TextBox.d.ts +8 -0
  194. package/dist/lib/components/TextBox/TextBox.js +39 -6
  195. package/dist/lib/components/TextBox/TextBoxPicture.css +24 -0
  196. package/dist/lib/components/TextBox/TextBoxPicture.d.ts +17 -0
  197. package/dist/lib/components/TextBox/TextBoxPicture.js +49 -0
  198. package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.css +15 -4
  199. package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +8 -2
  200. package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.js +39 -19
  201. package/dist/lib/components/VideoBanner/VideoBanner.css +155 -76
  202. package/dist/lib/components/VideoBanner/VideoBanner.d.ts +64 -13
  203. package/dist/lib/components/VideoBanner/VideoBanner.js +225 -89
  204. package/dist/lib/components/VideoBlock/VideoBlock.css +32 -28
  205. package/dist/lib/components/VideoBlock/VideoBlock.d.ts +20 -6
  206. package/dist/lib/components/VideoBlock/VideoBlock.js +76 -68
  207. package/dist/lib/constants/throttleTime.d.ts +4 -0
  208. package/dist/lib/constants/throttleTime.js +10 -0
  209. package/dist/lib/index.d.ts +8 -0
  210. package/dist/lib/index.js +64 -0
  211. package/package.json +20 -75
@@ -5,133 +5,212 @@ h4,
5
5
  h5 {
6
6
  margin: 0;
7
7
  }
8
- .mfui-beta-video-banner {
8
+ .mfui-video-banner {
9
9
  position: relative;
10
10
  overflow: hidden;
11
11
  }
12
- .mfui-beta-video-banner__wrapper {
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
- height: 400px;
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-beta-video-banner__wrapper {
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-beta-video-banner__wrapper {
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-beta-video-banner__wrapper {
36
- padding-left: 64px;
37
- padding-right: 64px;
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-beta-video-banner__wrapper {
42
- padding-left: 48px;
43
- padding-right: 48px;
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-beta-video-banner__wrapper {
48
- display: -webkit-box;
49
- display: -ms-flexbox;
50
- display: flex;
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-beta-video-banner__video {
62
- max-width: 100%;
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
- @media screen and (min-width: 1024px) {
73
- .mfui-beta-video-banner__background-image_mobile {
74
- display: none;
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-beta-video-banner__content {
91
+ .mfui-video-banner__content {
92
+ position: relative;
78
93
  -webkit-box-sizing: border-box;
79
94
  box-sizing: border-box;
80
- position: relative;
81
- z-index: 1;
82
- -ms-flex-item-align: center;
83
- align-self: center;
84
- display: -webkit-box;
85
- display: -ms-flexbox;
86
- display: flex;
87
- -webkit-box-orient: vertical;
88
- -webkit-box-direction: normal;
89
- -ms-flex-direction: column;
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-beta-video-banner__content {
102
- width: 512px;
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-beta-video-banner__content {
108
- width: 384px;
109
- height: 272px;
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-beta-video-banner__content {
114
- -webkit-box-align: center;
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-beta-video-banner__text {
137
+ .mfui-video-banner__description {
122
138
  margin-bottom: 32px;
139
+ white-space: pre-wrap;
123
140
  }
124
- .mfui-beta-video-banner__title {
141
+ .mfui-video-banner__title {
125
142
  margin-bottom: 24px;
126
143
  }
127
144
  @media screen and (max-width: 767px) {
128
- .mfui-beta-video-banner__title {
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-beta-video-banner__title,
134
- .mfui-beta-video-banner__text {
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 * as React from 'react';
1
+ import React, { Ref } from 'react';
2
+ import { Props as BreadcrumbsPropsType } from '../Breadcrumbs/Breadcrumbs';
2
3
  import './VideoBanner.less';
3
- export declare const VideoTypes: {
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 VideoTypes[keyof typeof VideoTypes];
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: string;
30
+ buttonTitle?: string;
15
31
  /** Ссылка на кнопке */
16
- href?: string;
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
- export interface IImage {
21
- /** Изображение для мобильных устройств */
22
- mobile: string;
23
- /** Изображение для компьютерных устройств */
24
- desktop?: string;
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
- image: IImage;
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;