@megafon/ui-shared 6.0.0-beta.5 → 6.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 (312) hide show
  1. package/CHANGELOG.md +4043 -0
  2. package/dist/es/components/AccordionBox/AccordionBox.css +15 -1
  3. package/dist/es/components/AccordionBox/AccordionBox.d.ts +2 -2
  4. package/dist/es/components/AccordionBox/AccordionBox.js +49 -6
  5. package/dist/es/components/AudioPlayer/AudioPlayer.d.ts +2 -2
  6. package/dist/es/components/AudioPlayer/AudioPlayer.js +27 -11
  7. package/dist/es/components/AudioPlayer/AudioProgress.d.ts +1 -1
  8. package/dist/es/components/AudioPlayer/AudioProgress.js +22 -10
  9. package/dist/es/components/AudioPlayer/AudioRange.d.ts +1 -1
  10. package/dist/es/components/AudioPlayer/AudioRange.js +10 -8
  11. package/dist/es/components/AudioPlayer/AudioVolume.d.ts +1 -1
  12. package/dist/es/components/AudioPlayer/AudioVolume.js +12 -3
  13. package/dist/es/components/AudioPlayer/hooks/useTrackDuration.js +10 -4
  14. package/dist/es/components/AudioPlayer/style/AudioPlayer.css +58 -1
  15. package/dist/es/components/AudioPlayer/style/AudioProgress.css +35 -1
  16. package/dist/es/components/AudioPlayer/style/AudioRange.css +68 -1
  17. package/dist/es/components/AudioPlayer/style/AudioVolume.css +34 -1
  18. package/dist/es/components/AudioPlayer/timerFormatUtil.js +9 -1
  19. package/dist/es/components/BannerBox/BannerBox.d.ts +1 -1
  20. package/dist/es/components/BannerBox/BannerBox.js +12 -3
  21. package/dist/es/components/BenefitsIcons/BenefitsIcons.d.ts +1 -1
  22. package/dist/es/components/BenefitsIcons/BenefitsIcons.js +64 -23
  23. package/dist/es/components/BenefitsIcons/BenefitsIconsTile.d.ts +1 -1
  24. package/dist/es/components/BenefitsIcons/BenefitsIconsTile.js +36 -9
  25. package/dist/es/components/BenefitsIcons/helpers.d.ts +3 -3
  26. package/dist/es/components/BenefitsIcons/helpers.js +20 -6
  27. package/dist/es/components/BenefitsIcons/style/BenefitsIcons.css +38 -1
  28. package/dist/es/components/BenefitsIcons/style/BenefitsIconsTile.css +90 -1
  29. package/dist/es/components/BenefitsIcons/types.d.ts +5 -5
  30. package/dist/es/components/BenefitsPictures/BenefitsPictures.d.ts +1 -1
  31. package/dist/es/components/BenefitsPictures/BenefitsPictures.js +49 -19
  32. package/dist/es/components/BenefitsPictures/BenfitsPictures.css +43 -1
  33. package/dist/es/components/BenefitsPictures/helpers.d.ts +2 -2
  34. package/dist/es/components/BenefitsPictures/helpers.js +14 -0
  35. package/dist/es/components/BenefitsPictures/types.d.ts +3 -3
  36. package/dist/es/components/BenefitsPictures/types.js +0 -1
  37. package/dist/es/components/BlogBox/BlogBox.css +92 -0
  38. package/dist/es/components/BlogBox/BlogBox.d.ts +28 -0
  39. package/dist/es/components/BlogBox/BlogBox.js +101 -0
  40. package/dist/es/components/BlogBox/components/BlogBoxTile.css +197 -0
  41. package/dist/es/components/BlogBox/components/BlogBoxTile.d.ts +9 -0
  42. package/dist/es/components/BlogBox/components/BlogBoxTile.js +67 -0
  43. package/dist/es/components/BlogBox/types.d.ts +37 -0
  44. package/dist/es/components/BlogBox/types.js +0 -0
  45. package/dist/es/components/Breadcrumbs/Breadcrumbs.css +43 -1
  46. package/dist/es/components/Breadcrumbs/Breadcrumbs.d.ts +6 -6
  47. package/dist/es/components/Breadcrumbs/Breadcrumbs.js +39 -10
  48. package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.css +16 -1
  49. package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.d.ts +4 -4
  50. package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.js +36 -11
  51. package/dist/es/components/ButtonBanner/ButtonBanner.css +122 -1
  52. package/dist/es/components/ButtonBanner/ButtonBanner.d.ts +7 -7
  53. package/dist/es/components/ButtonBanner/ButtonBanner.js +53 -22
  54. package/dist/es/components/ButtonLinkBox/ButtonLinkBox.css +19 -1
  55. package/dist/es/components/ButtonLinkBox/ButtonLinkBox.d.ts +3 -3
  56. package/dist/es/components/ButtonLinkBox/ButtonLinkBox.js +51 -20
  57. package/dist/es/components/Card/Card.css +354 -1
  58. package/dist/es/components/Card/Card.d.ts +4 -4
  59. package/dist/es/components/Card/Card.js +115 -25
  60. package/dist/es/components/Card/types.d.ts +10 -10
  61. package/dist/es/components/Card/types.js +0 -1
  62. package/dist/es/components/CardsBox/CardsBox.js +14 -3
  63. package/dist/es/components/CardsBox/helpers.d.ts +2 -2
  64. package/dist/es/components/CardsBox/helpers.js +4 -0
  65. package/dist/es/components/CarouselBox/CarouselBox.d.ts +2 -2
  66. package/dist/es/components/CarouselBox/CarouselBox.js +24 -11
  67. package/dist/es/components/Container/Container.css +3287 -1
  68. package/dist/es/components/Container/Container.d.ts +5 -7
  69. package/dist/es/components/Container/Container.js +25 -10
  70. package/dist/es/components/DownloadLinks/DownloadLink.css +37 -1
  71. package/dist/es/components/DownloadLinks/DownloadLink.d.ts +1 -1
  72. package/dist/es/components/DownloadLinks/DownloadLink.js +44 -13
  73. package/dist/es/components/DownloadLinks/DownloadLinks.css +36 -1
  74. package/dist/es/components/DownloadLinks/DownloadLinks.d.ts +3 -3
  75. package/dist/es/components/DownloadLinks/DownloadLinks.js +13 -2
  76. package/dist/es/components/FaqWrapper/FaqWrapper.d.ts +2 -5
  77. package/dist/es/components/FaqWrapper/FaqWrapper.js +3 -1
  78. package/dist/es/components/ImageBanner/ImageBanner.css +252 -1
  79. package/dist/es/components/ImageBanner/ImageBanner.d.ts +7 -8
  80. package/dist/es/components/ImageBanner/ImageBanner.js +88 -37
  81. package/dist/es/components/Instructions/Instructions.css +827 -1
  82. package/dist/es/components/Instructions/Instructions.d.ts +13 -11
  83. package/dist/es/components/Instructions/Instructions.js +101 -44
  84. package/dist/es/components/NotificationBox/NotificationBox.d.ts +4 -4
  85. package/dist/es/components/NotificationBox/NotificationBox.js +19 -5
  86. package/dist/es/components/NotificationBox/style/NotificationBox.css +28 -0
  87. package/dist/es/components/PageTitle/PageTitle.css +80 -1
  88. package/dist/es/components/PageTitle/PageTitle.d.ts +2 -2
  89. package/dist/es/components/PageTitle/PageTitle.js +37 -12
  90. package/dist/es/components/Partners/Partners.css +53 -1
  91. package/dist/es/components/Partners/Partners.d.ts +2 -2
  92. package/dist/es/components/Partners/Partners.js +48 -17
  93. package/dist/es/components/PictureWithDescription/PictureWithDescription.css +80 -1
  94. package/dist/es/components/PictureWithDescription/PictureWithDescription.d.ts +2 -4
  95. package/dist/es/components/PictureWithDescription/PictureWithDescription.js +28 -10
  96. package/dist/es/components/Property/Property.css +156 -1
  97. package/dist/es/components/Property/Property.d.ts +4 -4
  98. package/dist/es/components/Property/Property.js +81 -37
  99. package/dist/es/components/Property/PropertyDescription.css +17 -1
  100. package/dist/es/components/Property/PropertyDescription.d.ts +3 -3
  101. package/dist/es/components/Property/PropertyDescription.js +28 -8
  102. package/dist/es/components/Property/types.d.ts +5 -7
  103. package/dist/es/components/Property/types.js +0 -1
  104. package/dist/es/components/Steps/Steps.css +41 -1
  105. package/dist/es/components/Steps/Steps.d.ts +1 -2
  106. package/dist/es/components/Steps/Steps.js +19 -4
  107. package/dist/es/components/Steps/StepsItem.css +42 -1
  108. package/dist/es/components/Steps/StepsItem.d.ts +2 -2
  109. package/dist/es/components/Steps/StepsItem.js +9 -2
  110. package/dist/es/components/StoreBanner/StoreBanner.css +346 -1
  111. package/dist/es/components/StoreBanner/StoreBanner.d.ts +5 -5
  112. package/dist/es/components/StoreBanner/StoreBanner.js +97 -41
  113. package/dist/es/components/StoreBanner/doc/img/android-screen.png +0 -0
  114. package/dist/es/components/StoreBanner/doc/img/qr-code.png +0 -0
  115. package/dist/es/components/StoreBanner/doc/img/screen.png +0 -0
  116. package/dist/es/components/StoreButton/StoreButton.css +327 -1
  117. package/dist/es/components/StoreButton/StoreButton.d.ts +3 -3
  118. package/dist/es/components/StoreButton/StoreButton.js +44 -13
  119. package/dist/es/components/Table/Table.css +157 -1
  120. package/dist/es/components/Table/Table.d.ts +1 -1
  121. package/dist/es/components/Table/Table.js +51 -31
  122. package/dist/es/components/Table/TableCell.js +6 -0
  123. package/dist/es/components/Table/TableRow.js +10 -1
  124. package/dist/es/components/TabsBox/TabsBox.d.ts +1 -1
  125. package/dist/es/components/TabsBox/TabsBox.js +13 -4
  126. package/dist/es/components/TextBox/TextBox.css +25 -1
  127. package/dist/es/components/TextBox/TextBox.d.ts +1 -2
  128. package/dist/es/components/TextBox/TextBox.js +23 -8
  129. package/dist/es/components/TextBox/TextBoxPicture.css +27 -1
  130. package/dist/es/components/TextBox/TextBoxPicture.d.ts +2 -2
  131. package/dist/es/components/TextBox/TextBoxPicture.js +14 -5
  132. package/dist/es/components/TextWithIcon/TextWithIcon.css +10 -1
  133. package/dist/es/components/TextWithIcon/TextWithIcon.d.ts +1 -1
  134. package/dist/es/components/TextWithIcon/TextWithIcon.js +24 -6
  135. package/dist/es/components/TextWithIcon/TextWithIconItem.css +29 -1
  136. package/dist/es/components/TextWithIcon/TextWithIconItem.d.ts +1 -1
  137. package/dist/es/components/TextWithIcon/TextWithIconItem.js +21 -6
  138. package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.css +31 -1
  139. package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +1 -1
  140. package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.js +23 -6
  141. package/dist/es/components/VideoBanner/VideoBanner.css +225 -1
  142. package/dist/es/components/VideoBanner/VideoBanner.d.ts +7 -7
  143. package/dist/es/components/VideoBanner/VideoBanner.js +110 -47
  144. package/dist/es/components/VideoBlock/VideoBlock.css +106 -1
  145. package/dist/es/components/VideoBlock/VideoBlock.d.ts +4 -4
  146. package/dist/es/components/VideoBlock/VideoBlock.js +75 -35
  147. package/dist/es/helpers/getColumnConfig.d.ts +1 -5
  148. package/dist/es/helpers/setRelAttribute.d.ts +1 -0
  149. package/dist/es/helpers/setRelAttribute.js +11 -0
  150. package/dist/es/hooks/useResolutions.d.ts +7 -0
  151. package/dist/es/hooks/useResolutions.js +60 -0
  152. package/dist/es/index.d.ts +2 -0
  153. package/dist/es/index.js +2 -0
  154. package/dist/lib/components/AccordionBox/AccordionBox.css +15 -1
  155. package/dist/lib/components/AccordionBox/AccordionBox.d.ts +2 -2
  156. package/dist/lib/components/AccordionBox/AccordionBox.js +66 -10
  157. package/dist/lib/components/AudioPlayer/AudioPlayer.d.ts +2 -2
  158. package/dist/lib/components/AudioPlayer/AudioPlayer.js +56 -32
  159. package/dist/lib/components/AudioPlayer/AudioProgress.d.ts +1 -1
  160. package/dist/lib/components/AudioPlayer/AudioProgress.js +43 -12
  161. package/dist/lib/components/AudioPlayer/AudioRange.d.ts +1 -1
  162. package/dist/lib/components/AudioPlayer/AudioRange.js +17 -9
  163. package/dist/lib/components/AudioPlayer/AudioVolume.d.ts +1 -1
  164. package/dist/lib/components/AudioPlayer/AudioVolume.js +23 -4
  165. package/dist/lib/components/AudioPlayer/hooks/useTrackDuration.js +16 -5
  166. package/dist/lib/components/AudioPlayer/style/AudioPlayer.css +58 -1
  167. package/dist/lib/components/AudioPlayer/style/AudioProgress.css +35 -1
  168. package/dist/lib/components/AudioPlayer/style/AudioRange.css +68 -1
  169. package/dist/lib/components/AudioPlayer/style/AudioVolume.css +34 -1
  170. package/dist/lib/components/AudioPlayer/timerFormatUtil.js +13 -2
  171. package/dist/lib/components/BannerBox/BannerBox.d.ts +1 -1
  172. package/dist/lib/components/BannerBox/BannerBox.js +25 -7
  173. package/dist/lib/components/BenefitsIcons/BenefitsIcons.d.ts +1 -1
  174. package/dist/lib/components/BenefitsIcons/BenefitsIcons.js +86 -26
  175. package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.d.ts +1 -1
  176. package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.js +53 -13
  177. package/dist/lib/components/BenefitsIcons/helpers.d.ts +3 -3
  178. package/dist/lib/components/BenefitsIcons/helpers.js +37 -10
  179. package/dist/lib/components/BenefitsIcons/style/BenefitsIcons.css +38 -1
  180. package/dist/lib/components/BenefitsIcons/style/BenefitsIconsTile.css +90 -1
  181. package/dist/lib/components/BenefitsIcons/types.d.ts +5 -5
  182. package/dist/lib/components/BenefitsIcons/types.js +8 -5
  183. package/dist/lib/components/BenefitsPictures/BenefitsPictures.d.ts +1 -1
  184. package/dist/lib/components/BenefitsPictures/BenefitsPictures.js +71 -24
  185. package/dist/lib/components/BenefitsPictures/BenfitsPictures.css +43 -1
  186. package/dist/lib/components/BenefitsPictures/helpers.d.ts +2 -2
  187. package/dist/lib/components/BenefitsPictures/helpers.js +40 -9
  188. package/dist/lib/components/BenefitsPictures/types.d.ts +3 -3
  189. package/dist/lib/components/BenefitsPictures/types.js +1 -5
  190. package/dist/lib/components/BlogBox/BlogBox.css +92 -0
  191. package/dist/lib/components/BlogBox/BlogBox.d.ts +28 -0
  192. package/dist/lib/components/BlogBox/BlogBox.js +120 -0
  193. package/dist/lib/components/BlogBox/components/BlogBoxTile.css +197 -0
  194. package/dist/lib/components/BlogBox/components/BlogBoxTile.d.ts +9 -0
  195. package/dist/lib/components/BlogBox/components/BlogBoxTile.js +80 -0
  196. package/dist/lib/components/BlogBox/types.d.ts +37 -0
  197. package/dist/lib/components/BlogBox/types.js +1 -0
  198. package/dist/lib/components/Breadcrumbs/Breadcrumbs.css +43 -1
  199. package/dist/lib/components/Breadcrumbs/Breadcrumbs.d.ts +6 -6
  200. package/dist/lib/components/Breadcrumbs/Breadcrumbs.js +60 -18
  201. package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.css +16 -1
  202. package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.d.ts +4 -4
  203. package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.js +55 -22
  204. package/dist/lib/components/ButtonBanner/ButtonBanner.css +122 -1
  205. package/dist/lib/components/ButtonBanner/ButtonBanner.d.ts +7 -7
  206. package/dist/lib/components/ButtonBanner/ButtonBanner.js +89 -40
  207. package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.css +19 -1
  208. package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.d.ts +3 -3
  209. package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.js +72 -29
  210. package/dist/lib/components/Card/Card.css +354 -1
  211. package/dist/lib/components/Card/Card.d.ts +4 -4
  212. package/dist/lib/components/Card/Card.js +164 -67
  213. package/dist/lib/components/Card/types.d.ts +10 -10
  214. package/dist/lib/components/Card/types.js +1 -5
  215. package/dist/lib/components/CardsBox/CardsBox.js +31 -7
  216. package/dist/lib/components/CardsBox/helpers.d.ts +2 -2
  217. package/dist/lib/components/CardsBox/helpers.js +8 -1
  218. package/dist/lib/components/CarouselBox/CarouselBox.d.ts +2 -2
  219. package/dist/lib/components/CarouselBox/CarouselBox.js +39 -15
  220. package/dist/lib/components/Container/Container.css +3287 -1
  221. package/dist/lib/components/Container/Container.d.ts +5 -7
  222. package/dist/lib/components/Container/Container.js +40 -18
  223. package/dist/lib/components/DownloadLinks/DownloadLink.css +37 -1
  224. package/dist/lib/components/DownloadLinks/DownloadLink.d.ts +1 -1
  225. package/dist/lib/components/DownloadLinks/DownloadLink.js +60 -17
  226. package/dist/lib/components/DownloadLinks/DownloadLinks.css +36 -1
  227. package/dist/lib/components/DownloadLinks/DownloadLinks.d.ts +3 -3
  228. package/dist/lib/components/DownloadLinks/DownloadLinks.js +33 -8
  229. package/dist/lib/components/FaqWrapper/FaqWrapper.d.ts +2 -5
  230. package/dist/lib/components/FaqWrapper/FaqWrapper.js +9 -6
  231. package/dist/lib/components/ImageBanner/ImageBanner.css +252 -1
  232. package/dist/lib/components/ImageBanner/ImageBanner.d.ts +7 -8
  233. package/dist/lib/components/ImageBanner/ImageBanner.js +138 -61
  234. package/dist/lib/components/Instructions/Instructions.css +827 -1
  235. package/dist/lib/components/Instructions/Instructions.d.ts +13 -11
  236. package/dist/lib/components/Instructions/Instructions.js +193 -106
  237. package/dist/lib/components/NotificationBox/NotificationBox.d.ts +4 -4
  238. package/dist/lib/components/NotificationBox/NotificationBox.js +37 -9
  239. package/dist/lib/components/NotificationBox/style/NotificationBox.css +28 -0
  240. package/dist/lib/components/PageTitle/PageTitle.css +80 -1
  241. package/dist/lib/components/PageTitle/PageTitle.d.ts +2 -2
  242. package/dist/lib/components/PageTitle/PageTitle.js +52 -15
  243. package/dist/lib/components/Partners/Partners.css +53 -1
  244. package/dist/lib/components/Partners/Partners.d.ts +2 -2
  245. package/dist/lib/components/Partners/Partners.js +65 -21
  246. package/dist/lib/components/PictureWithDescription/PictureWithDescription.css +80 -1
  247. package/dist/lib/components/PictureWithDescription/PictureWithDescription.d.ts +2 -4
  248. package/dist/lib/components/PictureWithDescription/PictureWithDescription.js +46 -16
  249. package/dist/lib/components/Property/Property.css +156 -1
  250. package/dist/lib/components/Property/Property.d.ts +4 -4
  251. package/dist/lib/components/Property/Property.js +120 -60
  252. package/dist/lib/components/Property/PropertyDescription.css +17 -1
  253. package/dist/lib/components/Property/PropertyDescription.d.ts +3 -3
  254. package/dist/lib/components/Property/PropertyDescription.js +46 -15
  255. package/dist/lib/components/Property/types.d.ts +5 -7
  256. package/dist/lib/components/Property/types.js +1 -5
  257. package/dist/lib/components/Steps/Steps.css +41 -1
  258. package/dist/lib/components/Steps/Steps.d.ts +1 -2
  259. package/dist/lib/components/Steps/Steps.js +35 -8
  260. package/dist/lib/components/Steps/StepsItem.css +42 -1
  261. package/dist/lib/components/Steps/StepsItem.d.ts +2 -2
  262. package/dist/lib/components/Steps/StepsItem.js +23 -11
  263. package/dist/lib/components/StoreBanner/StoreBanner.css +346 -1
  264. package/dist/lib/components/StoreBanner/StoreBanner.d.ts +5 -5
  265. package/dist/lib/components/StoreBanner/StoreBanner.js +118 -47
  266. package/dist/lib/components/StoreBanner/doc/img/android-screen.png +0 -0
  267. package/dist/lib/components/StoreBanner/doc/img/qr-code.png +0 -0
  268. package/dist/lib/components/StoreBanner/doc/img/screen.png +0 -0
  269. package/dist/lib/components/StoreButton/StoreButton.css +327 -1
  270. package/dist/lib/components/StoreButton/StoreButton.d.ts +3 -3
  271. package/dist/lib/components/StoreButton/StoreButton.js +63 -17
  272. package/dist/lib/components/Table/Table.css +157 -1
  273. package/dist/lib/components/Table/Table.d.ts +1 -1
  274. package/dist/lib/components/Table/Table.js +68 -35
  275. package/dist/lib/components/Table/TableCell.js +16 -4
  276. package/dist/lib/components/Table/TableRow.js +19 -5
  277. package/dist/lib/components/TabsBox/TabBox.js +4 -1
  278. package/dist/lib/components/TabsBox/TabsBox.d.ts +1 -1
  279. package/dist/lib/components/TabsBox/TabsBox.js +26 -8
  280. package/dist/lib/components/TextBox/TextBox.css +25 -1
  281. package/dist/lib/components/TextBox/TextBox.d.ts +1 -2
  282. package/dist/lib/components/TextBox/TextBox.js +36 -12
  283. package/dist/lib/components/TextBox/TextBoxPicture.css +27 -1
  284. package/dist/lib/components/TextBox/TextBoxPicture.d.ts +2 -2
  285. package/dist/lib/components/TextBox/TextBoxPicture.js +29 -11
  286. package/dist/lib/components/TextWithIcon/TextWithIcon.css +10 -1
  287. package/dist/lib/components/TextWithIcon/TextWithIcon.d.ts +1 -1
  288. package/dist/lib/components/TextWithIcon/TextWithIcon.js +39 -10
  289. package/dist/lib/components/TextWithIcon/TextWithIconItem.css +29 -1
  290. package/dist/lib/components/TextWithIcon/TextWithIconItem.d.ts +1 -1
  291. package/dist/lib/components/TextWithIcon/TextWithIconItem.js +37 -10
  292. package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.css +31 -1
  293. package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +1 -1
  294. package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.js +40 -10
  295. package/dist/lib/components/VideoBanner/VideoBanner.css +225 -1
  296. package/dist/lib/components/VideoBanner/VideoBanner.d.ts +7 -7
  297. package/dist/lib/components/VideoBanner/VideoBanner.js +176 -83
  298. package/dist/lib/components/VideoBlock/VideoBlock.css +106 -1
  299. package/dist/lib/components/VideoBlock/VideoBlock.d.ts +4 -4
  300. package/dist/lib/components/VideoBlock/VideoBlock.js +114 -58
  301. package/dist/lib/constants/throttleTime.js +3 -2
  302. package/dist/lib/helpers/getColumnConfig.d.ts +1 -5
  303. package/dist/lib/helpers/getColumnConfig.js +5 -2
  304. package/dist/lib/helpers/setRelAttribute.d.ts +1 -0
  305. package/dist/lib/helpers/setRelAttribute.js +20 -0
  306. package/dist/lib/hooks/useResolutions.d.ts +7 -0
  307. package/dist/lib/hooks/useResolutions.js +75 -0
  308. package/dist/lib/index.d.ts +2 -0
  309. package/dist/lib/index.js +73 -10
  310. package/package.json +92 -87
  311. package/dist/es/components/NotificationBox/NotificationBox.css +0 -1
  312. package/dist/lib/components/NotificationBox/NotificationBox.css +0 -1
@@ -1 +1,346 @@
1
- h1,h2,h3,h4,h5{margin:0}.mfui-store-banner_theme_default .mfui-store-banner__grid{background-color:var(--base)}.mfui-store-banner_theme_default .mfui-store-banner__content{color:var(--content)}.mfui-store-banner_theme_green .mfui-store-banner__grid{background-color:var(--brandGreen);border:0}.mfui-store-banner_theme_green .mfui-store-banner__content{color:var(--stcWhite)}.mfui-store-banner_theme_spbSky1 .mfui-store-banner__grid{background-color:var(--spbSky1);border-color:transparent}.mfui-store-banner_theme_spbSky1 .mfui-store-banner__content{color:var(--content)}.mfui-store-banner_theme_spbSky0 .mfui-store-banner__grid{background-color:var(--spbSky0);border-color:transparent}.mfui-store-banner_theme_spbSky0 .mfui-store-banner__content{color:var(--content)}.mfui-store-banner_mask_new-iphone .mfui-store-banner__device-mask{background-image:url(img/new-iphone.png);position:relative;z-index:2}.mfui-store-banner_mask_new-iphone .mfui-store-banner__screen{border-radius:14px;top:9px;width:90%;z-index:1}@media screen and (min-width:768px) and (max-width:1023px){.mfui-store-banner_mask_new-iphone .mfui-store-banner__screen{top:8px}}@media screen and (max-width:767px){.mfui-store-banner_mask_new-iphone .mfui-store-banner__screen{top:30px}}.mfui-store-banner_mask_android .mfui-store-banner__device-mask{background-image:url(img/android.png);position:relative;z-index:2}.mfui-store-banner_mask_android .mfui-store-banner__screen{border-radius:14px;top:9px;width:92%}@media screen and (min-width:768px) and (max-width:1023px){.mfui-store-banner_mask_android .mfui-store-banner__screen{top:8px}}@media screen and (max-width:767px){.mfui-store-banner_mask_android .mfui-store-banner__screen{top:30px}}.mfui-store-banner_mask_white-iphone .mfui-store-banner__device-mask{background-image:url(img/white-iphone.png)}.mfui-store-banner_mask_black-iphone .mfui-store-banner__device-mask{background-image:url(img/black-iphone.png)}.mfui-store-banner_mask_black-iphone .mfui-store-banner__screen,.mfui-store-banner_mask_white-iphone .mfui-store-banner__screen{top:57px;width:87%}@media screen and (min-width:768px) and (max-width:1023px){.mfui-store-banner_mask_black-iphone .mfui-store-banner__screen,.mfui-store-banner_mask_white-iphone .mfui-store-banner__screen{top:47px}}@media screen and (max-width:767px){.mfui-store-banner_mask_black-iphone .mfui-store-banner__screen,.mfui-store-banner_mask_white-iphone .mfui-store-banner__screen{top:63px}}.mfui-store-banner_mask_iphone-12 .mfui-store-banner__device-mask{background-image:url(img/iphone12.png);position:relative;z-index:2}.mfui-store-banner_mask_iphone-12 .mfui-store-banner__screen{border-radius:4px;top:16px;width:87%;z-index:1}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-store-banner_mask_iphone-12 .mfui-store-banner__screen{top:17px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-store-banner_mask_iphone-12 .mfui-store-banner__screen{top:13px}}@media screen and (max-width:767px){.mfui-store-banner_mask_iphone-12 .mfui-store-banner__screen{top:35px}.mfui-store-banner_content-left-mobile .mfui-store-banner__content{text-align:left}.mfui-store-banner_content-left-mobile .mfui-store-banner__stores{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.mfui-store-banner_content-left-mobile .mfui-store-banner__button{margin:0}}@media screen and (min-width:1024px){.mfui-store-banner__container{padding-top:30px}}.mfui-store-banner__grid{border:1px solid var(--spbSky2);border-radius:24px;padding-bottom:32px;padding-top:32px}@media screen and (max-width:767px){.mfui-store-banner__grid{padding-bottom:0;padding-top:24px}}.mfui-store-banner__content{padding-left:32px}@media screen and (min-width:768px) and (max-width:1023px){.mfui-store-banner__content{padding-right:10px}}@media screen and (max-width:767px){.mfui-store-banner__content{padding-bottom:32px;padding-left:15px;padding-right:15px;text-align:center}}.mfui-store-banner__device-mask{background-repeat:no-repeat;background-size:cover;height:100%}.mfui-store-banner__device-wrapper{bottom:62px;height:calc(100% + 94px);margin-left:auto;margin-right:auto;overflow:hidden;position:relative;width:235px}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-store-banner__device-wrapper{width:260px}}@media screen and (max-width:1023px){.mfui-store-banner__device-wrapper{bottom:0}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-store-banner__device-wrapper{height:calc(100% + 32px);width:196px}}@media screen and (max-width:767px){.mfui-store-banner__device-wrapper{height:222px;padding-top:24px;width:163px}}.mfui-store-banner__links{display:-webkit-box;display:-ms-flexbox;display:flex}.mfui-store-banner__qr-code{-ms-flex-item-align:center;align-self:center;background-color:var(--base);border:1px solid var(--spbSky1);border-radius:8px;-webkit-box-sizing:border-box;box-sizing:border-box;height:90px;margin-right:16px;width:90px}@media screen and (max-width:767px){.mfui-store-banner__qr-code{display:none}}@media screen and (min-width:768px){.mfui-store-banner__qr-code+.mfui-store-banner__stores{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}}.mfui-store-banner__store-link{height:40px;margin-bottom:10px;margin-left:8px;margin-right:8px;width:136px}@media screen and (max-width:767px){.mfui-store-banner__store-link{height:35px;width:119px}}.mfui-store-banner__store-link:last-child{margin-bottom:0}.mfui-store-banner__stores{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-wrap:wrap;flex-wrap:wrap}@media screen and (max-width:767px){.mfui-store-banner__stores{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}}@media screen and (min-width:768px){.mfui-store-banner__stores{margin-left:-8px}}.mfui-store-banner__text{margin-bottom:32px}.mfui-store-banner__title{margin-bottom:16px}.mfui-store-banner__screen{left:50%;position:absolute;-webkit-transform:translateX(-50%);transform:translateX(-50%)}@media screen and (max-width:767px){.mfui-store-banner__button{margin:0 auto}}.mfui-store-banner__links_three .mfui-store-banner__qr-code{-o-object-fit:contain;object-fit:contain}@media screen and (min-width:1280px){.mfui-store-banner__links_three .mfui-store-banner__qr-code{max-height:90px;max-width:90px}}.mfui-store-banner__links_three .mfui-store-banner__qr-code+.mfui-store-banner__stores{max-width:305px}@media screen and (min-width:1024px){.mfui-store-banner__links_three .mfui-store-banner__qr-code+.mfui-store-banner__stores{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}}@media screen and (max-width:767px){.mfui-store-banner__links_three .mfui-store-banner__qr-code+.mfui-store-banner__stores{margin:0 auto}}.mfui-store-banner__links_three .mfui-store-banner__store-link{height:40px;width:136px}@media screen and (max-width:1023px){.mfui-store-banner__links_three .mfui-store-banner__store-link{height:35px;width:119px}}.mfui-store-banner__links_three .mfui-store-banner__store-link:not(:last-child){margin-bottom:8px}@media screen and (max-width:767px){.mfui-store-banner__links_three .mfui-store-banner__store-link:not(:last-child){margin-bottom:16px}}
1
+ h1,
2
+ h2,
3
+ h3,
4
+ h4,
5
+ h5 {
6
+ margin: 0;
7
+ }
8
+ .mfui-store-banner_theme_default .mfui-store-banner__grid {
9
+ background-color: var(--base);
10
+ }
11
+ .mfui-store-banner_theme_default .mfui-store-banner__content {
12
+ color: var(--content);
13
+ }
14
+ .mfui-store-banner_theme_green .mfui-store-banner__grid {
15
+ border: 0;
16
+ background-color: var(--brandGreen);
17
+ }
18
+ .mfui-store-banner_theme_green .mfui-store-banner__content {
19
+ color: var(--stcWhite);
20
+ }
21
+ .mfui-store-banner_theme_spbSky1 .mfui-store-banner__grid {
22
+ border-color: transparent;
23
+ background-color: var(--spbSky1);
24
+ }
25
+ .mfui-store-banner_theme_spbSky1 .mfui-store-banner__content {
26
+ color: var(--content);
27
+ }
28
+ .mfui-store-banner_theme_spbSky0 .mfui-store-banner__grid {
29
+ border-color: transparent;
30
+ background-color: var(--spbSky0);
31
+ }
32
+ .mfui-store-banner_theme_spbSky0 .mfui-store-banner__content {
33
+ color: var(--content);
34
+ }
35
+ .mfui-store-banner_mask_new-iphone .mfui-store-banner__device-mask {
36
+ position: relative;
37
+ z-index: 2;
38
+ background-image: url('./img/new-iphone.png');
39
+ }
40
+ .mfui-store-banner_mask_new-iphone .mfui-store-banner__screen {
41
+ top: 9px;
42
+ z-index: 1;
43
+ width: 90%;
44
+ border-radius: 14px;
45
+ }
46
+ @media screen and (min-width: 768px) and (max-width: 1023px) {
47
+ .mfui-store-banner_mask_new-iphone .mfui-store-banner__screen {
48
+ top: 8px;
49
+ }
50
+ }
51
+ @media screen and (max-width: 767px) {
52
+ .mfui-store-banner_mask_new-iphone .mfui-store-banner__screen {
53
+ top: 30px;
54
+ }
55
+ }
56
+ .mfui-store-banner_mask_android .mfui-store-banner__device-mask {
57
+ position: relative;
58
+ z-index: 2;
59
+ background-image: url('./img/android.png');
60
+ }
61
+ .mfui-store-banner_mask_android .mfui-store-banner__screen {
62
+ top: 9px;
63
+ width: 92%;
64
+ border-radius: 14px;
65
+ }
66
+ @media screen and (min-width: 768px) and (max-width: 1023px) {
67
+ .mfui-store-banner_mask_android .mfui-store-banner__screen {
68
+ top: 8px;
69
+ }
70
+ }
71
+ @media screen and (max-width: 767px) {
72
+ .mfui-store-banner_mask_android .mfui-store-banner__screen {
73
+ top: 30px;
74
+ }
75
+ }
76
+ .mfui-store-banner_mask_white-iphone .mfui-store-banner__device-mask {
77
+ background-image: url('./img/white-iphone.png');
78
+ }
79
+ .mfui-store-banner_mask_black-iphone .mfui-store-banner__device-mask {
80
+ background-image: url('./img/black-iphone.png');
81
+ }
82
+ .mfui-store-banner_mask_white-iphone .mfui-store-banner__screen,
83
+ .mfui-store-banner_mask_black-iphone .mfui-store-banner__screen {
84
+ top: 57px;
85
+ width: 87%;
86
+ }
87
+ @media screen and (min-width: 768px) and (max-width: 1023px) {
88
+ .mfui-store-banner_mask_white-iphone .mfui-store-banner__screen,
89
+ .mfui-store-banner_mask_black-iphone .mfui-store-banner__screen {
90
+ top: 47px;
91
+ }
92
+ }
93
+ @media screen and (max-width: 767px) {
94
+ .mfui-store-banner_mask_white-iphone .mfui-store-banner__screen,
95
+ .mfui-store-banner_mask_black-iphone .mfui-store-banner__screen {
96
+ top: 63px;
97
+ }
98
+ }
99
+ .mfui-store-banner_mask_iphone-12 .mfui-store-banner__device-mask {
100
+ position: relative;
101
+ z-index: 2;
102
+ background-image: url('./img/iphone12.png');
103
+ }
104
+ .mfui-store-banner_mask_iphone-12 .mfui-store-banner__screen {
105
+ top: 16px;
106
+ z-index: 1;
107
+ width: 87%;
108
+ border-radius: 4px;
109
+ }
110
+ @media screen and (min-width: 1024px) and (max-width: 1279px) {
111
+ .mfui-store-banner_mask_iphone-12 .mfui-store-banner__screen {
112
+ top: 17px;
113
+ }
114
+ }
115
+ @media screen and (min-width: 768px) and (max-width: 1023px) {
116
+ .mfui-store-banner_mask_iphone-12 .mfui-store-banner__screen {
117
+ top: 13px;
118
+ }
119
+ }
120
+ @media screen and (max-width: 767px) {
121
+ .mfui-store-banner_mask_iphone-12 .mfui-store-banner__screen {
122
+ top: 35px;
123
+ }
124
+ }
125
+ @media screen and (max-width: 767px) {
126
+ .mfui-store-banner_content-left-mobile .mfui-store-banner__content {
127
+ text-align: left;
128
+ }
129
+ }
130
+ @media screen and (max-width: 767px) {
131
+ .mfui-store-banner_content-left-mobile .mfui-store-banner__stores {
132
+ -webkit-box-pack: start;
133
+ -ms-flex-pack: start;
134
+ justify-content: flex-start;
135
+ }
136
+ }
137
+ @media screen and (max-width: 767px) {
138
+ .mfui-store-banner_content-left-mobile .mfui-store-banner__button {
139
+ margin: 0;
140
+ }
141
+ }
142
+ @media screen and (min-width: 1024px) {
143
+ .mfui-store-banner__container {
144
+ padding-top: 30px;
145
+ }
146
+ }
147
+ .mfui-store-banner__grid {
148
+ padding-top: 32px;
149
+ padding-bottom: 32px;
150
+ border: 1px solid var(--spbSky2);
151
+ border-radius: 24px;
152
+ }
153
+ @media screen and (max-width: 767px) {
154
+ .mfui-store-banner__grid {
155
+ padding-top: 24px;
156
+ padding-bottom: 0;
157
+ }
158
+ }
159
+ .mfui-store-banner__content {
160
+ padding-left: 32px;
161
+ }
162
+ @media screen and (min-width: 768px) and (max-width: 1023px) {
163
+ .mfui-store-banner__content {
164
+ padding-right: 10px;
165
+ }
166
+ }
167
+ @media screen and (max-width: 767px) {
168
+ .mfui-store-banner__content {
169
+ padding-right: 15px;
170
+ padding-bottom: 32px;
171
+ padding-left: 15px;
172
+ text-align: center;
173
+ }
174
+ }
175
+ .mfui-store-banner__device-mask {
176
+ height: 100%;
177
+ background-repeat: no-repeat;
178
+ background-size: cover;
179
+ }
180
+ .mfui-store-banner__device-wrapper {
181
+ position: relative;
182
+ bottom: calc(2 * (32px - 1px));
183
+ width: 235px;
184
+ height: calc(100% + 2 * 32px + 30px);
185
+ margin-right: auto;
186
+ margin-left: auto;
187
+ overflow: hidden;
188
+ }
189
+ @media screen and (min-width: 1024px) and (max-width: 1279px) {
190
+ .mfui-store-banner__device-wrapper {
191
+ width: 260px;
192
+ }
193
+ }
194
+ @media screen and (max-width: 1023px) {
195
+ .mfui-store-banner__device-wrapper {
196
+ bottom: 0;
197
+ }
198
+ }
199
+ @media screen and (min-width: 768px) and (max-width: 1023px) {
200
+ .mfui-store-banner__device-wrapper {
201
+ width: 196px;
202
+ height: calc(100% + 32px);
203
+ }
204
+ }
205
+ @media screen and (max-width: 767px) {
206
+ .mfui-store-banner__device-wrapper {
207
+ width: 163px;
208
+ height: 222px;
209
+ padding-top: 24px;
210
+ }
211
+ }
212
+ .mfui-store-banner__links {
213
+ display: -webkit-box;
214
+ display: -ms-flexbox;
215
+ display: flex;
216
+ }
217
+ .mfui-store-banner__qr-code {
218
+ -ms-flex-item-align: center;
219
+ align-self: center;
220
+ -webkit-box-sizing: border-box;
221
+ box-sizing: border-box;
222
+ width: 90px;
223
+ height: 90px;
224
+ margin-right: 16px;
225
+ border: 1px solid var(--spbSky1);
226
+ border-radius: 8px;
227
+ background-color: var(--base);
228
+ }
229
+ @media screen and (max-width: 767px) {
230
+ .mfui-store-banner__qr-code {
231
+ display: none;
232
+ }
233
+ }
234
+ @media screen and (min-width: 768px) {
235
+ .mfui-store-banner__qr-code + .mfui-store-banner__stores {
236
+ -webkit-box-orient: vertical;
237
+ -webkit-box-direction: normal;
238
+ -ms-flex-direction: column;
239
+ flex-direction: column;
240
+ -webkit-box-pack: justify;
241
+ -ms-flex-pack: justify;
242
+ justify-content: space-between;
243
+ }
244
+ }
245
+ .mfui-store-banner__store-link {
246
+ width: 136px;
247
+ height: 40px;
248
+ margin-right: 8px;
249
+ margin-bottom: 10px;
250
+ margin-left: 8px;
251
+ }
252
+ @media screen and (max-width: 767px) {
253
+ .mfui-store-banner__store-link {
254
+ width: 119px;
255
+ height: 35px;
256
+ }
257
+ }
258
+ .mfui-store-banner__store-link:last-child {
259
+ margin-bottom: 0;
260
+ }
261
+ .mfui-store-banner__stores {
262
+ display: -webkit-box;
263
+ display: -ms-flexbox;
264
+ display: flex;
265
+ -webkit-box-flex: 1;
266
+ -ms-flex-positive: 1;
267
+ flex-grow: 1;
268
+ -ms-flex-wrap: wrap;
269
+ flex-wrap: wrap;
270
+ }
271
+ @media screen and (max-width: 767px) {
272
+ .mfui-store-banner__stores {
273
+ -webkit-box-pack: center;
274
+ -ms-flex-pack: center;
275
+ justify-content: center;
276
+ }
277
+ }
278
+ @media screen and (min-width: 768px) {
279
+ .mfui-store-banner__stores {
280
+ margin-left: -8px;
281
+ }
282
+ }
283
+ .mfui-store-banner__text {
284
+ margin-bottom: 32px;
285
+ }
286
+ .mfui-store-banner__title {
287
+ margin-bottom: 16px;
288
+ }
289
+ .mfui-store-banner__screen {
290
+ position: absolute;
291
+ left: 50%;
292
+ -webkit-transform: translateX(-50%);
293
+ transform: translateX(-50%);
294
+ }
295
+ @media screen and (max-width: 767px) {
296
+ .mfui-store-banner__button {
297
+ margin: 0 auto;
298
+ }
299
+ }
300
+ .mfui-store-banner__links_three .mfui-store-banner__qr-code {
301
+ -o-object-fit: contain;
302
+ object-fit: contain;
303
+ }
304
+ @media screen and (min-width: 1280px) {
305
+ .mfui-store-banner__links_three .mfui-store-banner__qr-code {
306
+ max-width: 90px;
307
+ max-height: 90px;
308
+ }
309
+ }
310
+ .mfui-store-banner__links_three .mfui-store-banner__qr-code + .mfui-store-banner__stores {
311
+ max-width: 305px;
312
+ }
313
+ @media screen and (min-width: 1024px) {
314
+ .mfui-store-banner__links_three .mfui-store-banner__qr-code + .mfui-store-banner__stores {
315
+ -webkit-box-orient: horizontal;
316
+ -webkit-box-direction: normal;
317
+ -ms-flex-direction: row;
318
+ flex-direction: row;
319
+ -webkit-box-pack: start;
320
+ -ms-flex-pack: start;
321
+ justify-content: flex-start;
322
+ }
323
+ }
324
+ @media screen and (max-width: 767px) {
325
+ .mfui-store-banner__links_three .mfui-store-banner__qr-code + .mfui-store-banner__stores {
326
+ margin: 0 auto;
327
+ }
328
+ }
329
+ .mfui-store-banner__links_three .mfui-store-banner__store-link {
330
+ width: 136px;
331
+ height: 40px;
332
+ }
333
+ @media screen and (max-width: 1023px) {
334
+ .mfui-store-banner__links_three .mfui-store-banner__store-link {
335
+ width: 119px;
336
+ height: 35px;
337
+ }
338
+ }
339
+ .mfui-store-banner__links_three .mfui-store-banner__store-link:not(:last-child) {
340
+ margin-bottom: 8px;
341
+ }
342
+ @media screen and (max-width: 767px) {
343
+ .mfui-store-banner__links_three .mfui-store-banner__store-link:not(:last-child) {
344
+ margin-bottom: 16px;
345
+ }
346
+ }
@@ -1,13 +1,13 @@
1
1
  import * as React from 'react';
2
2
  import { Props as StoreButtonPropsType } from '../StoreButton/StoreButton';
3
- import './StoreBanner.scss';
3
+ import './StoreBanner.less';
4
4
  export declare const Theme: {
5
5
  readonly DEFAULT: "default";
6
6
  readonly GREEN: "green";
7
7
  readonly SPB_SKY_1: "spbSky1";
8
8
  readonly SPB_SKY_0: "spbSky0";
9
9
  };
10
- type ThemeType = (typeof Theme)[keyof typeof Theme];
10
+ declare type ThemeType = typeof Theme[keyof typeof Theme];
11
11
  export declare const DeviceMask: {
12
12
  readonly ANDROID: "android";
13
13
  readonly NEW_IPHONE: "new-iphone";
@@ -16,9 +16,9 @@ export declare const DeviceMask: {
16
16
  readonly WHITE_IPHONE: "white-iphone";
17
17
  readonly IPHONE_12: "iphone-12";
18
18
  };
19
- type DeviceMaskType = (typeof DeviceMask)[keyof typeof DeviceMask];
20
- type LinkHrefType = StoreButtonPropsType['href'];
21
- type LinkOnClickType = StoreButtonPropsType['onClick'];
19
+ declare type DeviceMaskType = typeof DeviceMask[keyof typeof DeviceMask];
20
+ declare type LinkHrefType = StoreButtonPropsType['href'];
21
+ declare type LinkOnClickType = StoreButtonPropsType['onClick'];
22
22
  export interface IStoreBannerProps {
23
23
  /** Заголовок */
24
24
  title: string;
@@ -1,75 +1,93 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
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
+
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
7
- exports["default"] = exports.Theme = exports.DeviceMask = void 0;
8
+ exports["default"] = exports.DeviceMask = exports.Theme = void 0;
9
+
8
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+
12
+ require("core-js/modules/es.object.values.js");
13
+
9
14
  var React = _interopRequireWildcard(require("react"));
15
+
10
16
  var _uiCore = require("@megafon/ui-core");
17
+
11
18
  var _uiHelpers = require("@megafon/ui-helpers");
19
+
20
+ var _propTypes = _interopRequireDefault(require("prop-types"));
21
+
12
22
  var _StoreButton = _interopRequireWildcard(require("../StoreButton/StoreButton"));
13
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
23
+
24
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
25
+
26
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && 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
+
15
28
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
16
- var Theme = exports.Theme = {
29
+
30
+ var Theme = {
17
31
  DEFAULT: 'default',
18
32
  GREEN: 'green',
19
33
  SPB_SKY_1: 'spbSky1',
20
34
  SPB_SKY_0: 'spbSky0'
21
35
  };
22
- var DeviceMask = exports.DeviceMask = {
36
+ exports.Theme = Theme;
37
+ var DeviceMask = {
23
38
  ANDROID: 'android',
24
39
  NEW_IPHONE: 'new-iphone',
40
+
25
41
  /** DEPRECATED: 'black-iphone', 'white-iphone', 'iphone-12' */
26
42
  BLACK_IPHONE: 'black-iphone',
27
43
  WHITE_IPHONE: 'white-iphone',
28
44
  IPHONE_12: 'iphone-12'
29
45
  };
46
+ exports.DeviceMask = DeviceMask;
30
47
  var testIdPrefix = 'StoreBanner';
31
48
  var cn = (0, _uiHelpers.cnCreate)('mfui-store-banner');
49
+
32
50
  var StoreBanner = function StoreBanner(_ref) {
33
51
  var className = _ref.className,
34
- _ref$classes = _ref.classes,
35
- _ref$classes2 = _ref$classes === void 0 ? {} : _ref$classes,
36
- rootClassName = _ref$classes2.root,
37
- appleLinkClassName = _ref$classes2.appleLink,
38
- galaxyStoreLinkClassName = _ref$classes2.galaxyStoreLink,
39
- googleLinkClassName = _ref$classes2.googleLink,
40
- huaweiLinkClassName = _ref$classes2.huaweiLink,
41
- miStoreLinkClassName = _ref$classes2.miStoreLink,
42
- ruStoreLinkClassName = _ref$classes2.ruStoreLink,
43
- vAppstoreLinkClassName = _ref$classes2.vAppstoreLink,
44
- buttonClassName = _ref$classes2.button,
45
- title = _ref.title,
46
- text = _ref.text,
47
- linkApple = _ref.linkApple,
48
- linkGalaxyStore = _ref.linkGalaxyStore,
49
- linkGoogle = _ref.linkGoogle,
50
- linkHuawei = _ref.linkHuawei,
51
- linkMiStore = _ref.linkMiStore,
52
- linkRuStore = _ref.linkRuStore,
53
- linkVAppstore = _ref.linkVAppstore,
54
- linkButton = _ref.linkButton,
55
- _ref$textButton = _ref.textButton,
56
- textButton = _ref$textButton === void 0 ? 'Установите приложение' : _ref$textButton,
57
- rel = _ref.rel,
58
- qrCode = _ref.qrCode,
59
- imageSrc = _ref.imageSrc,
60
- _ref$theme = _ref.theme,
61
- theme = _ref$theme === void 0 ? 'default' : _ref$theme,
62
- deviceMask = _ref.deviceMask,
63
- isContentLeftMobile = _ref.isContentLeftMobile,
64
- rootRef = _ref.rootRef,
65
- dataAttrs = _ref.dataAttrs,
66
- onClickApple = _ref.onClickApple,
67
- onClickGalaxyStore = _ref.onClickGalaxyStore,
68
- onClickGoogle = _ref.onClickGoogle,
69
- onClickHuawei = _ref.onClickHuawei,
70
- onClickMiStore = _ref.onClickMiStore,
71
- onClickRuStore = _ref.onClickRuStore,
72
- onClickVAppstore = _ref.onClickVAppstore;
52
+ _ref$classes = _ref.classes;
53
+ _ref$classes = _ref$classes === void 0 ? {} : _ref$classes;
54
+ var rootClassName = _ref$classes.root,
55
+ appleLinkClassName = _ref$classes.appleLink,
56
+ galaxyStoreLinkClassName = _ref$classes.galaxyStoreLink,
57
+ googleLinkClassName = _ref$classes.googleLink,
58
+ huaweiLinkClassName = _ref$classes.huaweiLink,
59
+ miStoreLinkClassName = _ref$classes.miStoreLink,
60
+ ruStoreLinkClassName = _ref$classes.ruStoreLink,
61
+ vAppstoreLinkClassName = _ref$classes.vAppstoreLink,
62
+ buttonClassName = _ref$classes.button,
63
+ title = _ref.title,
64
+ text = _ref.text,
65
+ linkApple = _ref.linkApple,
66
+ linkGalaxyStore = _ref.linkGalaxyStore,
67
+ linkGoogle = _ref.linkGoogle,
68
+ linkHuawei = _ref.linkHuawei,
69
+ linkMiStore = _ref.linkMiStore,
70
+ linkRuStore = _ref.linkRuStore,
71
+ linkVAppstore = _ref.linkVAppstore,
72
+ linkButton = _ref.linkButton,
73
+ _ref$textButton = _ref.textButton,
74
+ textButton = _ref$textButton === void 0 ? 'Установите приложение' : _ref$textButton,
75
+ rel = _ref.rel,
76
+ qrCode = _ref.qrCode,
77
+ imageSrc = _ref.imageSrc,
78
+ _ref$theme = _ref.theme,
79
+ theme = _ref$theme === void 0 ? 'default' : _ref$theme,
80
+ deviceMask = _ref.deviceMask,
81
+ isContentLeftMobile = _ref.isContentLeftMobile,
82
+ rootRef = _ref.rootRef,
83
+ dataAttrs = _ref.dataAttrs,
84
+ onClickApple = _ref.onClickApple,
85
+ onClickGalaxyStore = _ref.onClickGalaxyStore,
86
+ onClickGoogle = _ref.onClickGoogle,
87
+ onClickHuawei = _ref.onClickHuawei,
88
+ onClickMiStore = _ref.onClickMiStore,
89
+ onClickRuStore = _ref.onClickRuStore,
90
+ onClickVAppstore = _ref.onClickVAppstore;
73
91
  return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
74
92
  className: cn({
75
93
  theme: theme,
@@ -91,8 +109,9 @@ var StoreBanner = function StoreBanner(_ref) {
91
109
  as: "h2",
92
110
  className: cn('title'),
93
111
  color: "inherit"
94
- }, (0, _uiHelpers.convert)(title, _uiHelpers.titleConvertConfig)), /*#__PURE__*/React.createElement("div", {
112
+ }, (0, _uiHelpers.convert)(title, _uiHelpers.titleConvertConfig)), /*#__PURE__*/React.createElement(_uiCore.Paragraph, {
95
113
  className: cn('text'),
114
+ hasMargin: false,
96
115
  color: "inherit"
97
116
  }, (0, _uiHelpers.convert)(text, _uiHelpers.textConvertConfig)), /*#__PURE__*/React.createElement("div", {
98
117
  className: cn('links', {
@@ -206,4 +225,56 @@ var StoreBanner = function StoreBanner(_ref) {
206
225
  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"
207
226
  })))))));
208
227
  };
209
- var _default = exports["default"] = StoreBanner;
228
+
229
+ StoreBanner.propTypes = {
230
+ title: _propTypes["default"].string.isRequired,
231
+ text: _propTypes["default"].string.isRequired,
232
+ linkApple: _propTypes["default"].string,
233
+ onClickApple: _propTypes["default"].func,
234
+ linkGalaxyStore: _propTypes["default"].string,
235
+ onClickGalaxyStore: _propTypes["default"].func,
236
+ linkGoogle: _propTypes["default"].string,
237
+ onClickGoogle: _propTypes["default"].func,
238
+ linkHuawei: _propTypes["default"].string,
239
+ onClickHuawei: _propTypes["default"].func,
240
+ linkMiStore: _propTypes["default"].string,
241
+ onClickMiStore: _propTypes["default"].func,
242
+ linkRuStore: _propTypes["default"].string,
243
+ onClickRuStore: _propTypes["default"].func,
244
+ linkVAppstore: _propTypes["default"].string,
245
+ onClickVAppstore: _propTypes["default"].func,
246
+ textButton: _propTypes["default"].string,
247
+ linkButton: _propTypes["default"].string,
248
+ rel: _propTypes["default"].string,
249
+ qrCode: _propTypes["default"].string,
250
+ deviceMask: _propTypes["default"].oneOf(Object.values(DeviceMask)).isRequired,
251
+ imageSrc: _propTypes["default"].string.isRequired,
252
+ className: _propTypes["default"].string,
253
+ classes: _propTypes["default"].shape({
254
+ appleLink: _propTypes["default"].string,
255
+ galaxyStoreLink: _propTypes["default"].string,
256
+ googleLink: _propTypes["default"].string,
257
+ huaweiLink: _propTypes["default"].string,
258
+ miStoreLink: _propTypes["default"].string,
259
+ ruStoreLink: _propTypes["default"].string,
260
+ vAppstoreLink: _propTypes["default"].string,
261
+ button: _propTypes["default"].string
262
+ }),
263
+ rootRef: _propTypes["default"].oneOfType([_propTypes["default"].func, _propTypes["default"].oneOfType([_propTypes["default"].shape({
264
+ current: _propTypes["default"].elementType
265
+ }), _propTypes["default"].any])]),
266
+ theme: _propTypes["default"].oneOf(Object.values(Theme)),
267
+ dataAttrs: _propTypes["default"].shape({
268
+ root: _propTypes["default"].objectOf(_propTypes["default"].string.isRequired),
269
+ button: _propTypes["default"].objectOf(_propTypes["default"].string.isRequired),
270
+ linkApple: _propTypes["default"].objectOf(_propTypes["default"].string.isRequired),
271
+ linkGalaxyStore: _propTypes["default"].objectOf(_propTypes["default"].string.isRequired),
272
+ linkGoogle: _propTypes["default"].objectOf(_propTypes["default"].string.isRequired),
273
+ linkHuawei: _propTypes["default"].objectOf(_propTypes["default"].string.isRequired),
274
+ linkMiStore: _propTypes["default"].objectOf(_propTypes["default"].string.isRequired),
275
+ linkRuStore: _propTypes["default"].objectOf(_propTypes["default"].string.isRequired),
276
+ linkVAppstore: _propTypes["default"].objectOf(_propTypes["default"].string.isRequired)
277
+ })
278
+ };
279
+ var _default = StoreBanner;
280
+ exports["default"] = _default;