@megafon/ui-shared 8.14.0 → 8.14.2

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 (513) hide show
  1. package/dist/es/components/AccordionBox/AccordionBox.css +1 -0
  2. package/dist/es/components/AccordionBox/AccordionBox.d.ts +49 -0
  3. package/dist/es/components/AccordionBox/AccordionBox.js +42 -0
  4. package/dist/es/components/AudioPlayer/AudioPlayer.d.ts +10 -0
  5. package/dist/es/components/AudioPlayer/AudioPlayer.js +107 -0
  6. package/dist/es/components/AudioPlayer/AudioProgress.d.ts +14 -0
  7. package/dist/es/components/AudioPlayer/AudioProgress.js +96 -0
  8. package/dist/es/components/AudioPlayer/AudioRange.d.ts +15 -0
  9. package/dist/es/components/AudioPlayer/AudioRange.js +31 -0
  10. package/dist/es/components/AudioPlayer/AudioVolume.d.ts +7 -0
  11. package/dist/es/components/AudioPlayer/AudioVolume.js +77 -0
  12. package/dist/es/components/AudioPlayer/hooks/useTrackDuration.d.ts +3 -0
  13. package/dist/es/components/AudioPlayer/hooks/useTrackDuration.js +26 -0
  14. package/dist/es/components/AudioPlayer/style/AudioPlayer.css +1 -0
  15. package/dist/es/components/AudioPlayer/style/AudioProgress.css +1 -0
  16. package/dist/es/components/AudioPlayer/style/AudioRange.css +1 -0
  17. package/dist/es/components/AudioPlayer/style/AudioVolume.css +1 -0
  18. package/dist/es/components/AudioPlayer/timerFormatUtil.d.ts +2 -0
  19. package/dist/es/components/AudioPlayer/timerFormatUtil.js +25 -0
  20. package/dist/es/components/BannerBox/BannerBox.d.ts +5 -0
  21. package/dist/es/components/BannerBox/BannerBox.js +22 -0
  22. package/dist/es/components/BenefitsIcons/BenefitsIcons.d.ts +30 -0
  23. package/dist/es/components/BenefitsIcons/BenefitsIcons.js +104 -0
  24. package/dist/es/components/BenefitsIcons/BenefitsIconsTile.d.ts +10 -0
  25. package/dist/es/components/BenefitsIcons/BenefitsIconsTile.js +51 -0
  26. package/dist/es/components/BenefitsIcons/helpers.d.ts +8 -0
  27. package/dist/es/components/BenefitsIcons/helpers.js +102 -0
  28. package/dist/es/components/BenefitsIcons/style/BenefitsIcons.css +1 -0
  29. package/dist/es/components/BenefitsIcons/style/BenefitsIconsTile.css +1 -0
  30. package/dist/es/components/BenefitsIcons/types.d.ts +54 -0
  31. package/dist/es/components/BenefitsIcons/types.js +17 -0
  32. package/dist/es/components/BenefitsPictures/BenefitsPictures.d.ts +27 -0
  33. package/dist/es/components/BenefitsPictures/BenefitsPictures.js +111 -0
  34. package/dist/es/components/BenefitsPictures/BenfitsPictures.css +1 -0
  35. package/dist/es/components/BenefitsPictures/helpers.d.ts +11 -0
  36. package/dist/es/components/BenefitsPictures/helpers.js +85 -0
  37. package/dist/es/components/BenefitsPictures/types.d.ts +24 -0
  38. package/dist/es/components/BenefitsPictures/types.js +1 -0
  39. package/dist/es/components/BlogBox/BlogBox.css +1 -0
  40. package/dist/es/components/BlogBox/BlogBox.d.ts +31 -0
  41. package/dist/es/components/BlogBox/BlogBox.js +72 -0
  42. package/dist/es/components/BlogBox/components/BlogBoxTile.css +1 -0
  43. package/dist/es/components/BlogBox/components/BlogBoxTile.d.ts +13 -0
  44. package/dist/es/components/BlogBox/components/BlogBoxTile.js +61 -0
  45. package/dist/es/components/BlogBox/types.d.ts +37 -0
  46. package/dist/es/components/BlogBox/types.js +1 -0
  47. package/dist/es/components/Breadcrumbs/Breadcrumbs.css +1 -0
  48. package/dist/es/components/Breadcrumbs/Breadcrumbs.d.ts +43 -0
  49. package/dist/es/components/Breadcrumbs/Breadcrumbs.js +69 -0
  50. package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.css +1 -0
  51. package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.d.ts +30 -0
  52. package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.js +62 -0
  53. package/dist/es/components/ButtonBanner/ButtonBanner.css +1 -0
  54. package/dist/es/components/ButtonBanner/ButtonBanner.d.ts +64 -0
  55. package/dist/es/components/ButtonBanner/ButtonBanner.js +96 -0
  56. package/dist/es/components/ButtonLinkBox/ButtonLinkBox.css +1 -0
  57. package/dist/es/components/ButtonLinkBox/ButtonLinkBox.d.ts +52 -0
  58. package/dist/es/components/ButtonLinkBox/ButtonLinkBox.js +65 -0
  59. package/dist/es/components/ButtonsBox/ButtonsBox.css +1 -0
  60. package/dist/es/components/ButtonsBox/ButtonsBox.d.ts +48 -0
  61. package/dist/es/components/ButtonsBox/ButtonsBox.js +47 -0
  62. package/dist/es/components/Card/Card.css +1 -0
  63. package/dist/es/components/Card/Card.d.ts +55 -0
  64. package/dist/es/components/Card/Card.js +229 -0
  65. package/dist/es/components/Card/types.d.ts +86 -0
  66. package/dist/es/components/Card/types.js +1 -0
  67. package/dist/es/components/CardsBox/CardsBox.d.ts +14 -0
  68. package/dist/es/components/CardsBox/CardsBox.js +26 -0
  69. package/dist/es/components/CardsBox/helpers.d.ts +10 -0
  70. package/dist/es/components/CardsBox/helpers.js +21 -0
  71. package/dist/es/components/CarouselBox/CarouselBox.d.ts +10 -0
  72. package/dist/es/components/CarouselBox/CarouselBox.js +45 -0
  73. package/dist/es/components/ChipsBox/ChipBox.d.ts +5 -0
  74. package/dist/es/components/ChipsBox/ChipBox.js +7 -0
  75. package/dist/es/components/ChipsBox/ChipsBox.css +1 -0
  76. package/dist/es/components/ChipsBox/ChipsBox.d.ts +16 -0
  77. package/dist/es/components/ChipsBox/ChipsBox.js +76 -0
  78. package/dist/es/components/Container/Container.css +1 -0
  79. package/dist/es/components/Container/Container.d.ts +41 -0
  80. package/dist/es/components/Container/Container.js +46 -0
  81. package/dist/es/components/DarkGradientCards/DarkGradientCards.css +1 -0
  82. package/dist/es/components/DarkGradientCards/DarkGradientCards.d.ts +33 -0
  83. package/dist/es/components/DarkGradientCards/DarkGradientCards.js +66 -0
  84. package/dist/es/components/DarkGradientCards/components/DarkGradientCard.css +1 -0
  85. package/dist/es/components/DarkGradientCards/components/DarkGradientCard.d.ts +16 -0
  86. package/dist/es/components/DarkGradientCards/components/DarkGradientCard.js +50 -0
  87. package/dist/es/components/DarkGradientCards/types.d.ts +20 -0
  88. package/dist/es/components/DarkGradientCards/types.js +1 -0
  89. package/dist/es/components/DownloadLinks/DownloadLink.css +1 -0
  90. package/dist/es/components/DownloadLinks/DownloadLink.d.ts +36 -0
  91. package/dist/es/components/DownloadLinks/DownloadLink.js +61 -0
  92. package/dist/es/components/DownloadLinks/DownloadLinks.css +1 -0
  93. package/dist/es/components/DownloadLinks/DownloadLinks.d.ts +20 -0
  94. package/dist/es/components/DownloadLinks/DownloadLinks.js +64 -0
  95. package/dist/es/components/FaqWrapper/FaqWrapper.d.ts +6 -0
  96. package/dist/es/components/FaqWrapper/FaqWrapper.js +9 -0
  97. package/dist/es/components/ImageBanner/ImageBanner.css +1 -0
  98. package/dist/es/components/ImageBanner/ImageBanner.d.ts +94 -0
  99. package/dist/es/components/ImageBanner/ImageBanner.js +164 -0
  100. package/dist/es/components/InfoCards/InfoCards.css +1 -0
  101. package/dist/es/components/InfoCards/InfoCards.d.ts +24 -0
  102. package/dist/es/components/InfoCards/InfoCards.js +44 -0
  103. package/dist/es/components/InfoCards/components/InfoCard/InfoCard.css +1 -0
  104. package/dist/es/components/InfoCards/components/InfoCard/InfoCard.d.ts +19 -0
  105. package/dist/es/components/InfoCards/components/InfoCard/InfoCard.js +85 -0
  106. package/dist/es/components/InfoCards/types.d.ts +31 -0
  107. package/dist/es/components/InfoCards/types.js +1 -0
  108. package/dist/es/components/Instructions/Instructions.css +1 -0
  109. package/dist/es/components/Instructions/Instructions.d.ts +120 -0
  110. package/dist/es/components/Instructions/Instructions.js +362 -0
  111. package/dist/es/components/Instructions/img/android-new.png +0 -0
  112. package/dist/es/components/Instructions/img/android.png +0 -0
  113. package/dist/es/components/Instructions/img/blackIphone.png +0 -0
  114. package/dist/es/components/Instructions/img/iphone-new.png +0 -0
  115. package/dist/es/components/Instructions/img/iphone12.png +0 -0
  116. package/dist/es/components/Instructions/img/iphone15.png +0 -0
  117. package/dist/es/components/Instructions/img/laptop-new.png +0 -0
  118. package/dist/es/components/Instructions/img/laptop.png +0 -0
  119. package/dist/es/components/Instructions/img/newIphone.png +0 -0
  120. package/dist/es/components/Instructions/img/whiteIphone.png +0 -0
  121. package/dist/es/components/NotificationBox/NotificationBox.css +1 -0
  122. package/dist/es/components/NotificationBox/NotificationBox.d.ts +15 -0
  123. package/dist/es/components/NotificationBox/NotificationBox.js +35 -0
  124. package/dist/es/components/NumbersBox/NumbersBox.css +1 -0
  125. package/dist/es/components/NumbersBox/NumbersBox.d.ts +35 -0
  126. package/dist/es/components/NumbersBox/NumbersBox.js +72 -0
  127. package/dist/es/components/NumbersBox/components/NumbersCard/NumbersCard.css +1 -0
  128. package/dist/es/components/NumbersBox/components/NumbersCard/NumbersCard.d.ts +16 -0
  129. package/dist/es/components/NumbersBox/components/NumbersCard/NumbersCard.js +28 -0
  130. package/dist/es/components/NumbersBox/types.d.ts +7 -0
  131. package/dist/es/components/NumbersBox/types.js +1 -0
  132. package/dist/es/components/PageTitle/PageTitle.css +1 -0
  133. package/dist/es/components/PageTitle/PageTitle.d.ts +36 -0
  134. package/dist/es/components/PageTitle/PageTitle.js +74 -0
  135. package/dist/es/components/Partners/Partners.css +1 -0
  136. package/dist/es/components/Partners/Partners.d.ts +37 -0
  137. package/dist/es/components/Partners/Partners.js +111 -0
  138. package/dist/es/components/PictureBox/PictureBox.css +1 -0
  139. package/dist/es/components/PictureBox/PictureBox.d.ts +48 -0
  140. package/dist/es/components/PictureBox/PictureBox.js +96 -0
  141. package/dist/es/components/PictureBox/img/mac-book-1x.png +0 -0
  142. package/dist/es/components/PictureBox/img/mac-book-2x.png +0 -0
  143. package/dist/es/components/PictureWithDescription/PictureWithDescription.css +1 -0
  144. package/dist/es/components/PictureWithDescription/PictureWithDescription.d.ts +32 -0
  145. package/dist/es/components/PictureWithDescription/PictureWithDescription.js +48 -0
  146. package/dist/es/components/PromoBanner/PromoBanner.d.ts +5 -0
  147. package/dist/es/components/PromoBanner/PromoBanner.js +26 -0
  148. package/dist/es/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.css +1 -0
  149. package/dist/es/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.d.ts +82 -0
  150. package/dist/es/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.js +142 -0
  151. package/dist/es/components/PromoCards/PromoCards.d.ts +33 -0
  152. package/dist/es/components/PromoCards/PromoCards.js +61 -0
  153. package/dist/es/components/PromoCards/components/PromoCard/PromoCard.css +1 -0
  154. package/dist/es/components/PromoCards/components/PromoCard/PromoCard.d.ts +25 -0
  155. package/dist/es/components/PromoCards/components/PromoCard/PromoCard.js +175 -0
  156. package/dist/es/components/PromoCards/types.d.ts +62 -0
  157. package/dist/es/components/PromoCards/types.js +1 -0
  158. package/dist/es/components/Property/Property.d.ts +5 -0
  159. package/dist/es/components/Property/Property.js +10 -0
  160. package/dist/es/components/ServiceCards/ServiceCards.css +1 -0
  161. package/dist/es/components/ServiceCards/ServiceCards.d.ts +28 -0
  162. package/dist/es/components/ServiceCards/ServiceCards.js +42 -0
  163. package/dist/es/components/ServiceCards/components/ServiceCard/ServiceCard.css +1 -0
  164. package/dist/es/components/ServiceCards/components/ServiceCard/ServiceCard.d.ts +19 -0
  165. package/dist/es/components/ServiceCards/components/ServiceCard/ServiceCard.js +81 -0
  166. package/dist/es/components/ServiceCards/types.d.ts +26 -0
  167. package/dist/es/components/ServiceCards/types.js +1 -0
  168. package/dist/es/components/SidePictureCards/SidePictureCards.d.ts +31 -0
  169. package/dist/es/components/SidePictureCards/SidePictureCards.js +69 -0
  170. package/dist/es/components/SidePictureCards/components/SidePictureCard.css +1 -0
  171. package/dist/es/components/SidePictureCards/components/SidePictureCard.d.ts +18 -0
  172. package/dist/es/components/SidePictureCards/components/SidePictureCard.js +94 -0
  173. package/dist/es/components/SidePictureCards/types.d.ts +48 -0
  174. package/dist/es/components/SidePictureCards/types.js +1 -0
  175. package/dist/es/components/Stepper/Stepper.css +1 -0
  176. package/dist/es/components/Stepper/Stepper.d.ts +52 -0
  177. package/dist/es/components/Stepper/Stepper.js +159 -0
  178. package/dist/es/components/Stepper/StepperItem.css +1 -0
  179. package/dist/es/components/Stepper/StepperItem.d.ts +57 -0
  180. package/dist/es/components/Stepper/StepperItem.js +99 -0
  181. package/dist/es/components/Stepper/img/separator-mobile.png +0 -0
  182. package/dist/es/components/Stepper/img/separator-vertical.png +0 -0
  183. package/dist/es/components/Stepper/img/separator.png +0 -0
  184. package/dist/es/components/Steps/Steps.css +1 -0
  185. package/dist/es/components/Steps/Steps.d.ts +21 -0
  186. package/dist/es/components/Steps/Steps.js +32 -0
  187. package/dist/es/components/Steps/StepsItem.css +1 -0
  188. package/dist/es/components/Steps/StepsItem.d.ts +10 -0
  189. package/dist/es/components/Steps/StepsItem.js +21 -0
  190. package/dist/es/components/StoreBanner/StoreBanner.css +1 -0
  191. package/dist/es/components/StoreBanner/StoreBanner.d.ts +101 -0
  192. package/dist/es/components/StoreBanner/StoreBanner.js +200 -0
  193. package/dist/es/components/StoreBanner/img/android.png +0 -0
  194. package/dist/es/components/StoreBanner/img/black-iphone.png +0 -0
  195. package/dist/es/components/StoreBanner/img/iphone12.png +0 -0
  196. package/dist/es/components/StoreBanner/img/new-iphone.png +0 -0
  197. package/dist/es/components/StoreBanner/img/white-iphone.png +0 -0
  198. package/dist/es/components/StoreButton/StoreButton.css +1 -0
  199. package/dist/es/components/StoreButton/StoreButton.d.ts +36 -0
  200. package/dist/es/components/StoreButton/StoreButton.js +60 -0
  201. package/dist/es/components/StoreButton/img/app-store-large.png +0 -0
  202. package/dist/es/components/StoreButton/img/app-store.png +0 -0
  203. package/dist/es/components/StoreButton/img/galaxy-store-large.png +0 -0
  204. package/dist/es/components/StoreButton/img/galaxy-store.png +0 -0
  205. package/dist/es/components/StoreButton/img/google-play-large.png +0 -0
  206. package/dist/es/components/StoreButton/img/google-play.png +0 -0
  207. package/dist/es/components/StoreButton/img/huawei-store-large.png +0 -0
  208. package/dist/es/components/StoreButton/img/huawei-store.png +0 -0
  209. package/dist/es/components/StoreButton/img/mi-store-large.png +0 -0
  210. package/dist/es/components/StoreButton/img/mi-store.png +0 -0
  211. package/dist/es/components/StoreButton/img/ru-store-large.png +0 -0
  212. package/dist/es/components/StoreButton/img/ru-store.png +0 -0
  213. package/dist/es/components/StoreButton/img/v-appstore-large.png +0 -0
  214. package/dist/es/components/StoreButton/img/v-appstore.png +0 -0
  215. package/dist/es/components/Table/Table.css +1 -0
  216. package/dist/es/components/Table/Table.d.ts +18 -0
  217. package/dist/es/components/Table/Table.js +127 -0
  218. package/dist/es/components/Table/TableCell.d.ts +6 -0
  219. package/dist/es/components/Table/TableCell.js +6 -0
  220. package/dist/es/components/Table/TableRow.d.ts +11 -0
  221. package/dist/es/components/Table/TableRow.js +7 -0
  222. package/dist/es/components/TabsBox/TabBox.d.ts +2 -0
  223. package/dist/es/components/TabsBox/TabBox.js +2 -0
  224. package/dist/es/components/TabsBox/TabsBox.d.ts +8 -0
  225. package/dist/es/components/TabsBox/TabsBox.js +24 -0
  226. package/dist/es/components/TextBox/TextBox.css +1 -0
  227. package/dist/es/components/TextBox/TextBox.d.ts +17 -0
  228. package/dist/es/components/TextBox/TextBox.js +43 -0
  229. package/dist/es/components/TextBox/TextBoxPicture.css +1 -0
  230. package/dist/es/components/TextBox/TextBoxPicture.d.ts +21 -0
  231. package/dist/es/components/TextBox/TextBoxPicture.js +30 -0
  232. package/dist/es/components/TextWithIcon/TextWithIcon.css +1 -0
  233. package/dist/es/components/TextWithIcon/TextWithIcon.d.ts +21 -0
  234. package/dist/es/components/TextWithIcon/TextWithIcon.js +41 -0
  235. package/dist/es/components/TextWithIcon/TextWithIconItem.css +1 -0
  236. package/dist/es/components/TextWithIcon/TextWithIconItem.d.ts +25 -0
  237. package/dist/es/components/TextWithIcon/TextWithIconItem.js +40 -0
  238. package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.css +1 -0
  239. package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +22 -0
  240. package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.js +60 -0
  241. package/dist/es/components/VideoBanner/VideoBanner.css +1 -0
  242. package/dist/es/components/VideoBanner/VideoBanner.d.ts +112 -0
  243. package/dist/es/components/VideoBanner/VideoBanner.js +245 -0
  244. package/dist/es/components/VideoBlock/VideoBlock.css +1 -0
  245. package/dist/es/components/VideoBlock/VideoBlock.d.ts +63 -0
  246. package/dist/es/components/VideoBlock/VideoBlock.js +230 -0
  247. package/dist/es/constants/throttleTime.d.ts +4 -0
  248. package/dist/es/constants/throttleTime.js +3 -0
  249. package/dist/es/helpers/getColumnConfig.d.ts +6 -0
  250. package/dist/es/helpers/getColumnConfig.js +10 -0
  251. package/dist/es/helpers/setRelAttribute.d.ts +3 -0
  252. package/dist/es/helpers/setRelAttribute.js +9 -0
  253. package/dist/es/hooks/useResolutions.d.ts +8 -0
  254. package/dist/es/hooks/useResolutions.js +62 -0
  255. package/dist/es/index.d.ts +67 -0
  256. package/dist/es/index.js +67 -0
  257. package/dist/lib/components/AccordionBox/AccordionBox.css +1 -0
  258. package/dist/lib/components/AccordionBox/AccordionBox.d.ts +49 -0
  259. package/dist/lib/components/AccordionBox/AccordionBox.js +51 -0
  260. package/dist/lib/components/AudioPlayer/AudioPlayer.d.ts +10 -0
  261. package/dist/lib/components/AudioPlayer/AudioPlayer.js +116 -0
  262. package/dist/lib/components/AudioPlayer/AudioProgress.d.ts +14 -0
  263. package/dist/lib/components/AudioPlayer/AudioProgress.js +102 -0
  264. package/dist/lib/components/AudioPlayer/AudioRange.d.ts +15 -0
  265. package/dist/lib/components/AudioPlayer/AudioRange.js +37 -0
  266. package/dist/lib/components/AudioPlayer/AudioVolume.d.ts +7 -0
  267. package/dist/lib/components/AudioPlayer/AudioVolume.js +83 -0
  268. package/dist/lib/components/AudioPlayer/hooks/useTrackDuration.d.ts +3 -0
  269. package/dist/lib/components/AudioPlayer/hooks/useTrackDuration.js +33 -0
  270. package/dist/lib/components/AudioPlayer/style/AudioPlayer.css +1 -0
  271. package/dist/lib/components/AudioPlayer/style/AudioProgress.css +1 -0
  272. package/dist/lib/components/AudioPlayer/style/AudioRange.css +1 -0
  273. package/dist/lib/components/AudioPlayer/style/AudioVolume.css +1 -0
  274. package/dist/lib/components/AudioPlayer/timerFormatUtil.d.ts +2 -0
  275. package/dist/lib/components/AudioPlayer/timerFormatUtil.js +31 -0
  276. package/dist/lib/components/BannerBox/BannerBox.d.ts +5 -0
  277. package/dist/lib/components/BannerBox/BannerBox.js +31 -0
  278. package/dist/lib/components/BenefitsIcons/BenefitsIcons.d.ts +30 -0
  279. package/dist/lib/components/BenefitsIcons/BenefitsIcons.js +113 -0
  280. package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.d.ts +10 -0
  281. package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.js +60 -0
  282. package/dist/lib/components/BenefitsIcons/helpers.d.ts +8 -0
  283. package/dist/lib/components/BenefitsIcons/helpers.js +108 -0
  284. package/dist/lib/components/BenefitsIcons/style/BenefitsIcons.css +1 -0
  285. package/dist/lib/components/BenefitsIcons/style/BenefitsIconsTile.css +1 -0
  286. package/dist/lib/components/BenefitsIcons/types.d.ts +54 -0
  287. package/dist/lib/components/BenefitsIcons/types.js +23 -0
  288. package/dist/lib/components/BenefitsPictures/BenefitsPictures.d.ts +27 -0
  289. package/dist/lib/components/BenefitsPictures/BenefitsPictures.js +120 -0
  290. package/dist/lib/components/BenefitsPictures/BenfitsPictures.css +1 -0
  291. package/dist/lib/components/BenefitsPictures/helpers.d.ts +11 -0
  292. package/dist/lib/components/BenefitsPictures/helpers.js +91 -0
  293. package/dist/lib/components/BenefitsPictures/types.d.ts +24 -0
  294. package/dist/lib/components/BenefitsPictures/types.js +5 -0
  295. package/dist/lib/components/BlogBox/BlogBox.css +1 -0
  296. package/dist/lib/components/BlogBox/BlogBox.d.ts +31 -0
  297. package/dist/lib/components/BlogBox/BlogBox.js +81 -0
  298. package/dist/lib/components/BlogBox/components/BlogBoxTile.css +1 -0
  299. package/dist/lib/components/BlogBox/components/BlogBoxTile.d.ts +13 -0
  300. package/dist/lib/components/BlogBox/components/BlogBoxTile.js +70 -0
  301. package/dist/lib/components/BlogBox/types.d.ts +37 -0
  302. package/dist/lib/components/BlogBox/types.js +5 -0
  303. package/dist/lib/components/Breadcrumbs/Breadcrumbs.css +1 -0
  304. package/dist/lib/components/Breadcrumbs/Breadcrumbs.d.ts +43 -0
  305. package/dist/lib/components/Breadcrumbs/Breadcrumbs.js +78 -0
  306. package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.css +1 -0
  307. package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.d.ts +30 -0
  308. package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.js +71 -0
  309. package/dist/lib/components/ButtonBanner/ButtonBanner.css +1 -0
  310. package/dist/lib/components/ButtonBanner/ButtonBanner.d.ts +64 -0
  311. package/dist/lib/components/ButtonBanner/ButtonBanner.js +105 -0
  312. package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.css +1 -0
  313. package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.d.ts +52 -0
  314. package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.js +74 -0
  315. package/dist/lib/components/ButtonsBox/ButtonsBox.css +1 -0
  316. package/dist/lib/components/ButtonsBox/ButtonsBox.d.ts +48 -0
  317. package/dist/lib/components/ButtonsBox/ButtonsBox.js +56 -0
  318. package/dist/lib/components/Card/Card.css +1 -0
  319. package/dist/lib/components/Card/Card.d.ts +55 -0
  320. package/dist/lib/components/Card/Card.js +238 -0
  321. package/dist/lib/components/Card/types.d.ts +86 -0
  322. package/dist/lib/components/Card/types.js +5 -0
  323. package/dist/lib/components/CardsBox/CardsBox.d.ts +14 -0
  324. package/dist/lib/components/CardsBox/CardsBox.js +36 -0
  325. package/dist/lib/components/CardsBox/helpers.d.ts +10 -0
  326. package/dist/lib/components/CardsBox/helpers.js +28 -0
  327. package/dist/lib/components/CarouselBox/CarouselBox.d.ts +10 -0
  328. package/dist/lib/components/CarouselBox/CarouselBox.js +55 -0
  329. package/dist/lib/components/ChipsBox/ChipBox.d.ts +5 -0
  330. package/dist/lib/components/ChipsBox/ChipBox.js +17 -0
  331. package/dist/lib/components/ChipsBox/ChipsBox.css +1 -0
  332. package/dist/lib/components/ChipsBox/ChipsBox.d.ts +16 -0
  333. package/dist/lib/components/ChipsBox/ChipsBox.js +85 -0
  334. package/dist/lib/components/Container/Container.css +1 -0
  335. package/dist/lib/components/Container/Container.d.ts +41 -0
  336. package/dist/lib/components/Container/Container.js +54 -0
  337. package/dist/lib/components/DarkGradientCards/DarkGradientCards.css +1 -0
  338. package/dist/lib/components/DarkGradientCards/DarkGradientCards.d.ts +33 -0
  339. package/dist/lib/components/DarkGradientCards/DarkGradientCards.js +75 -0
  340. package/dist/lib/components/DarkGradientCards/components/DarkGradientCard.css +1 -0
  341. package/dist/lib/components/DarkGradientCards/components/DarkGradientCard.d.ts +16 -0
  342. package/dist/lib/components/DarkGradientCards/components/DarkGradientCard.js +59 -0
  343. package/dist/lib/components/DarkGradientCards/types.d.ts +20 -0
  344. package/dist/lib/components/DarkGradientCards/types.js +5 -0
  345. package/dist/lib/components/DownloadLinks/DownloadLink.css +1 -0
  346. package/dist/lib/components/DownloadLinks/DownloadLink.d.ts +36 -0
  347. package/dist/lib/components/DownloadLinks/DownloadLink.js +70 -0
  348. package/dist/lib/components/DownloadLinks/DownloadLinks.css +1 -0
  349. package/dist/lib/components/DownloadLinks/DownloadLinks.d.ts +20 -0
  350. package/dist/lib/components/DownloadLinks/DownloadLinks.js +73 -0
  351. package/dist/lib/components/FaqWrapper/FaqWrapper.d.ts +6 -0
  352. package/dist/lib/components/FaqWrapper/FaqWrapper.js +18 -0
  353. package/dist/lib/components/ImageBanner/ImageBanner.css +1 -0
  354. package/dist/lib/components/ImageBanner/ImageBanner.d.ts +94 -0
  355. package/dist/lib/components/ImageBanner/ImageBanner.js +173 -0
  356. package/dist/lib/components/InfoCards/InfoCards.css +1 -0
  357. package/dist/lib/components/InfoCards/InfoCards.d.ts +24 -0
  358. package/dist/lib/components/InfoCards/InfoCards.js +53 -0
  359. package/dist/lib/components/InfoCards/components/InfoCard/InfoCard.css +1 -0
  360. package/dist/lib/components/InfoCards/components/InfoCard/InfoCard.d.ts +19 -0
  361. package/dist/lib/components/InfoCards/components/InfoCard/InfoCard.js +94 -0
  362. package/dist/lib/components/InfoCards/types.d.ts +31 -0
  363. package/dist/lib/components/InfoCards/types.js +5 -0
  364. package/dist/lib/components/Instructions/Instructions.css +1 -0
  365. package/dist/lib/components/Instructions/Instructions.d.ts +120 -0
  366. package/dist/lib/components/Instructions/Instructions.js +371 -0
  367. package/dist/lib/components/Instructions/img/android-new.png +0 -0
  368. package/dist/lib/components/Instructions/img/android.png +0 -0
  369. package/dist/lib/components/Instructions/img/blackIphone.png +0 -0
  370. package/dist/lib/components/Instructions/img/iphone-new.png +0 -0
  371. package/dist/lib/components/Instructions/img/iphone12.png +0 -0
  372. package/dist/lib/components/Instructions/img/iphone15.png +0 -0
  373. package/dist/lib/components/Instructions/img/laptop-new.png +0 -0
  374. package/dist/lib/components/Instructions/img/laptop.png +0 -0
  375. package/dist/lib/components/Instructions/img/newIphone.png +0 -0
  376. package/dist/lib/components/Instructions/img/whiteIphone.png +0 -0
  377. package/dist/lib/components/NotificationBox/NotificationBox.css +1 -0
  378. package/dist/lib/components/NotificationBox/NotificationBox.d.ts +15 -0
  379. package/dist/lib/components/NotificationBox/NotificationBox.js +44 -0
  380. package/dist/lib/components/NumbersBox/NumbersBox.css +1 -0
  381. package/dist/lib/components/NumbersBox/NumbersBox.d.ts +35 -0
  382. package/dist/lib/components/NumbersBox/NumbersBox.js +81 -0
  383. package/dist/lib/components/NumbersBox/components/NumbersCard/NumbersCard.css +1 -0
  384. package/dist/lib/components/NumbersBox/components/NumbersCard/NumbersCard.d.ts +16 -0
  385. package/dist/lib/components/NumbersBox/components/NumbersCard/NumbersCard.js +37 -0
  386. package/dist/lib/components/NumbersBox/types.d.ts +7 -0
  387. package/dist/lib/components/NumbersBox/types.js +5 -0
  388. package/dist/lib/components/PageTitle/PageTitle.css +1 -0
  389. package/dist/lib/components/PageTitle/PageTitle.d.ts +36 -0
  390. package/dist/lib/components/PageTitle/PageTitle.js +83 -0
  391. package/dist/lib/components/Partners/Partners.css +1 -0
  392. package/dist/lib/components/Partners/Partners.d.ts +37 -0
  393. package/dist/lib/components/Partners/Partners.js +120 -0
  394. package/dist/lib/components/PictureBox/PictureBox.css +1 -0
  395. package/dist/lib/components/PictureBox/PictureBox.d.ts +48 -0
  396. package/dist/lib/components/PictureBox/PictureBox.js +105 -0
  397. package/dist/lib/components/PictureBox/img/mac-book-1x.png +0 -0
  398. package/dist/lib/components/PictureBox/img/mac-book-2x.png +0 -0
  399. package/dist/lib/components/PictureWithDescription/PictureWithDescription.css +1 -0
  400. package/dist/lib/components/PictureWithDescription/PictureWithDescription.d.ts +32 -0
  401. package/dist/lib/components/PictureWithDescription/PictureWithDescription.js +56 -0
  402. package/dist/lib/components/PromoBanner/PromoBanner.d.ts +5 -0
  403. package/dist/lib/components/PromoBanner/PromoBanner.js +36 -0
  404. package/dist/lib/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.css +1 -0
  405. package/dist/lib/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.d.ts +82 -0
  406. package/dist/lib/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.js +151 -0
  407. package/dist/lib/components/PromoCards/PromoCards.d.ts +33 -0
  408. package/dist/lib/components/PromoCards/PromoCards.js +71 -0
  409. package/dist/lib/components/PromoCards/components/PromoCard/PromoCard.css +1 -0
  410. package/dist/lib/components/PromoCards/components/PromoCard/PromoCard.d.ts +25 -0
  411. package/dist/lib/components/PromoCards/components/PromoCard/PromoCard.js +184 -0
  412. package/dist/lib/components/PromoCards/types.d.ts +62 -0
  413. package/dist/lib/components/PromoCards/types.js +5 -0
  414. package/dist/lib/components/Property/Property.d.ts +5 -0
  415. package/dist/lib/components/Property/Property.js +19 -0
  416. package/dist/lib/components/ServiceCards/ServiceCards.css +1 -0
  417. package/dist/lib/components/ServiceCards/ServiceCards.d.ts +28 -0
  418. package/dist/lib/components/ServiceCards/ServiceCards.js +51 -0
  419. package/dist/lib/components/ServiceCards/components/ServiceCard/ServiceCard.css +1 -0
  420. package/dist/lib/components/ServiceCards/components/ServiceCard/ServiceCard.d.ts +19 -0
  421. package/dist/lib/components/ServiceCards/components/ServiceCard/ServiceCard.js +90 -0
  422. package/dist/lib/components/ServiceCards/types.d.ts +26 -0
  423. package/dist/lib/components/ServiceCards/types.js +5 -0
  424. package/dist/lib/components/SidePictureCards/SidePictureCards.d.ts +31 -0
  425. package/dist/lib/components/SidePictureCards/SidePictureCards.js +79 -0
  426. package/dist/lib/components/SidePictureCards/components/SidePictureCard.css +1 -0
  427. package/dist/lib/components/SidePictureCards/components/SidePictureCard.d.ts +18 -0
  428. package/dist/lib/components/SidePictureCards/components/SidePictureCard.js +100 -0
  429. package/dist/lib/components/SidePictureCards/types.d.ts +48 -0
  430. package/dist/lib/components/SidePictureCards/types.js +5 -0
  431. package/dist/lib/components/Stepper/Stepper.css +1 -0
  432. package/dist/lib/components/Stepper/Stepper.d.ts +52 -0
  433. package/dist/lib/components/Stepper/Stepper.js +168 -0
  434. package/dist/lib/components/Stepper/StepperItem.css +1 -0
  435. package/dist/lib/components/Stepper/StepperItem.d.ts +57 -0
  436. package/dist/lib/components/Stepper/StepperItem.js +108 -0
  437. package/dist/lib/components/Stepper/img/separator-mobile.png +0 -0
  438. package/dist/lib/components/Stepper/img/separator-vertical.png +0 -0
  439. package/dist/lib/components/Stepper/img/separator.png +0 -0
  440. package/dist/lib/components/Steps/Steps.css +1 -0
  441. package/dist/lib/components/Steps/Steps.d.ts +21 -0
  442. package/dist/lib/components/Steps/Steps.js +40 -0
  443. package/dist/lib/components/Steps/StepsItem.css +1 -0
  444. package/dist/lib/components/Steps/StepsItem.d.ts +10 -0
  445. package/dist/lib/components/Steps/StepsItem.js +29 -0
  446. package/dist/lib/components/StoreBanner/StoreBanner.css +1 -0
  447. package/dist/lib/components/StoreBanner/StoreBanner.d.ts +101 -0
  448. package/dist/lib/components/StoreBanner/StoreBanner.js +209 -0
  449. package/dist/lib/components/StoreBanner/img/android.png +0 -0
  450. package/dist/lib/components/StoreBanner/img/black-iphone.png +0 -0
  451. package/dist/lib/components/StoreBanner/img/iphone12.png +0 -0
  452. package/dist/lib/components/StoreBanner/img/new-iphone.png +0 -0
  453. package/dist/lib/components/StoreBanner/img/white-iphone.png +0 -0
  454. package/dist/lib/components/StoreButton/StoreButton.css +1 -0
  455. package/dist/lib/components/StoreButton/StoreButton.d.ts +36 -0
  456. package/dist/lib/components/StoreButton/StoreButton.js +69 -0
  457. package/dist/lib/components/StoreButton/img/app-store-large.png +0 -0
  458. package/dist/lib/components/StoreButton/img/app-store.png +0 -0
  459. package/dist/lib/components/StoreButton/img/galaxy-store-large.png +0 -0
  460. package/dist/lib/components/StoreButton/img/galaxy-store.png +0 -0
  461. package/dist/lib/components/StoreButton/img/google-play-large.png +0 -0
  462. package/dist/lib/components/StoreButton/img/google-play.png +0 -0
  463. package/dist/lib/components/StoreButton/img/huawei-store-large.png +0 -0
  464. package/dist/lib/components/StoreButton/img/huawei-store.png +0 -0
  465. package/dist/lib/components/StoreButton/img/mi-store-large.png +0 -0
  466. package/dist/lib/components/StoreButton/img/mi-store.png +0 -0
  467. package/dist/lib/components/StoreButton/img/ru-store-large.png +0 -0
  468. package/dist/lib/components/StoreButton/img/ru-store.png +0 -0
  469. package/dist/lib/components/StoreButton/img/v-appstore-large.png +0 -0
  470. package/dist/lib/components/StoreButton/img/v-appstore.png +0 -0
  471. package/dist/lib/components/Table/Table.css +1 -0
  472. package/dist/lib/components/Table/Table.d.ts +18 -0
  473. package/dist/lib/components/Table/Table.js +136 -0
  474. package/dist/lib/components/Table/TableCell.d.ts +6 -0
  475. package/dist/lib/components/Table/TableCell.js +15 -0
  476. package/dist/lib/components/Table/TableRow.d.ts +11 -0
  477. package/dist/lib/components/Table/TableRow.js +17 -0
  478. package/dist/lib/components/TabsBox/TabBox.d.ts +2 -0
  479. package/dist/lib/components/TabsBox/TabBox.js +8 -0
  480. package/dist/lib/components/TabsBox/TabsBox.d.ts +8 -0
  481. package/dist/lib/components/TabsBox/TabsBox.js +33 -0
  482. package/dist/lib/components/TextBox/TextBox.css +1 -0
  483. package/dist/lib/components/TextBox/TextBox.d.ts +17 -0
  484. package/dist/lib/components/TextBox/TextBox.js +51 -0
  485. package/dist/lib/components/TextBox/TextBoxPicture.css +1 -0
  486. package/dist/lib/components/TextBox/TextBoxPicture.d.ts +21 -0
  487. package/dist/lib/components/TextBox/TextBoxPicture.js +38 -0
  488. package/dist/lib/components/TextWithIcon/TextWithIcon.css +1 -0
  489. package/dist/lib/components/TextWithIcon/TextWithIcon.d.ts +21 -0
  490. package/dist/lib/components/TextWithIcon/TextWithIcon.js +50 -0
  491. package/dist/lib/components/TextWithIcon/TextWithIconItem.css +1 -0
  492. package/dist/lib/components/TextWithIcon/TextWithIconItem.d.ts +25 -0
  493. package/dist/lib/components/TextWithIcon/TextWithIconItem.js +49 -0
  494. package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.css +1 -0
  495. package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +22 -0
  496. package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.js +69 -0
  497. package/dist/lib/components/VideoBanner/VideoBanner.css +1 -0
  498. package/dist/lib/components/VideoBanner/VideoBanner.d.ts +112 -0
  499. package/dist/lib/components/VideoBanner/VideoBanner.js +253 -0
  500. package/dist/lib/components/VideoBlock/VideoBlock.css +1 -0
  501. package/dist/lib/components/VideoBlock/VideoBlock.d.ts +63 -0
  502. package/dist/lib/components/VideoBlock/VideoBlock.js +238 -0
  503. package/dist/lib/constants/throttleTime.d.ts +4 -0
  504. package/dist/lib/constants/throttleTime.js +9 -0
  505. package/dist/lib/helpers/getColumnConfig.d.ts +6 -0
  506. package/dist/lib/helpers/getColumnConfig.js +16 -0
  507. package/dist/lib/helpers/setRelAttribute.d.ts +3 -0
  508. package/dist/lib/helpers/setRelAttribute.js +15 -0
  509. package/dist/lib/hooks/useResolutions.d.ts +8 -0
  510. package/dist/lib/hooks/useResolutions.js +69 -0
  511. package/dist/lib/index.d.ts +67 -0
  512. package/dist/lib/index.js +475 -0
  513. package/package.json +5 -5
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import './StepsItem.scss';
3
+ interface IStepsItem {
4
+ /** Номер элемента */
5
+ index: number;
6
+ /** Текст */
7
+ text: string | React.ReactNode[];
8
+ }
9
+ declare const StepsItem: React.FC<IStepsItem>;
10
+ export default StepsItem;
@@ -0,0 +1,29 @@
1
+ "use strict";
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); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var React = _interopRequireWildcard(require("react"));
9
+ var _uiCore = require("@megafon/ui-core");
10
+ var _uiHelpers = require("@megafon/ui-helpers");
11
+ 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); }
12
+ 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 && {}.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; }
13
+ var cn = (0, _uiHelpers.cnCreate)('mfui-steps-item');
14
+ var StepsItem = function StepsItem(_ref) {
15
+ var index = _ref.index,
16
+ text = _ref.text;
17
+ return /*#__PURE__*/React.createElement("div", {
18
+ className: cn()
19
+ }, /*#__PURE__*/React.createElement("span", {
20
+ className: cn('step-number')
21
+ }, index), /*#__PURE__*/React.createElement("div", {
22
+ className: cn('text-wrapper')
23
+ }, typeof text === 'string' ? /*#__PURE__*/React.createElement(_uiCore.Paragraph, {
24
+ hasMargin: false
25
+ }, (0, _uiHelpers.convert)(text, _uiHelpers.textConvertConfig)) : /*#__PURE__*/React.createElement("div", {
26
+ className: cn('nodes')
27
+ }, text)));
28
+ };
29
+ var _default = exports["default"] = StepsItem;
@@ -0,0 +1 @@
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}}
@@ -0,0 +1,101 @@
1
+ import * as React from 'react';
2
+ import { Props as StoreButtonPropsType } from '../StoreButton/StoreButton';
3
+ import './StoreBanner.scss';
4
+ export declare const Theme: {
5
+ readonly DEFAULT: "default";
6
+ readonly GREEN: "green";
7
+ readonly SPB_SKY_1: "spbSky1";
8
+ readonly SPB_SKY_0: "spbSky0";
9
+ };
10
+ type ThemeType = (typeof Theme)[keyof typeof Theme];
11
+ export declare const DeviceMask: {
12
+ readonly ANDROID: "android";
13
+ readonly NEW_IPHONE: "new-iphone";
14
+ /** DEPRECATED: 'black-iphone', 'white-iphone', 'iphone-12' */
15
+ readonly BLACK_IPHONE: "black-iphone";
16
+ readonly WHITE_IPHONE: "white-iphone";
17
+ readonly IPHONE_12: "iphone-12";
18
+ };
19
+ type DeviceMaskType = (typeof DeviceMask)[keyof typeof DeviceMask];
20
+ type LinkHrefType = StoreButtonPropsType['href'];
21
+ type LinkOnClickType = StoreButtonPropsType['onClick'];
22
+ export interface IStoreBannerProps {
23
+ /** Заголовок */
24
+ title: string;
25
+ /** Текст */
26
+ text: string;
27
+ /** Ссылка на скачивание приложения в App Store */
28
+ linkApple?: LinkHrefType;
29
+ /** Обработчик клика по ссылке в App Store */
30
+ onClickApple?: LinkOnClickType;
31
+ /** Ссылка на скачивание приложения в Google Play */
32
+ linkGoogle?: LinkHrefType;
33
+ /** Обработчик клика по ссылке в Google Play */
34
+ onClickGoogle?: LinkOnClickType;
35
+ /** Ссылка на скачивание приложения в Samsung Galaxy Store */
36
+ linkGalaxyStore?: LinkHrefType;
37
+ /** Обработчик клика по ссылке в Samsung Galaxy Store */
38
+ onClickGalaxyStore?: LinkOnClickType;
39
+ /** Ссылка на скачивание приложения в Huawei AppGallery */
40
+ linkHuawei?: LinkHrefType;
41
+ /** Обработчик клика по ссылке в Huawei AppGallery */
42
+ onClickHuawei?: LinkOnClickType;
43
+ /** Ссылка на скачивание приложения в RuStore */
44
+ linkRuStore?: LinkHrefType;
45
+ /** Обработчик клика по ссылке в RuStore */
46
+ onClickRuStore?: LinkOnClickType;
47
+ /** Ссылка на скачивание приложения в Mi App Store */
48
+ linkMiStore?: LinkHrefType;
49
+ /** Обработчик клика по ссылке в Mi App Store */
50
+ onClickMiStore?: LinkOnClickType;
51
+ /** Ссылка на скачивание приложения в V-Appstore */
52
+ linkVAppstore?: LinkHrefType;
53
+ /** Обработчик клика по ссылке в V-Appstore */
54
+ onClickVAppstore?: LinkOnClickType;
55
+ /** Текст кнопки */
56
+ textButton?: string;
57
+ /** Ссылка для кнопки */
58
+ linkButton?: string;
59
+ /** Rel - атрибут тега <a> для всех кнопок баннера */
60
+ rel?: string;
61
+ /** Ссылка на картинку с QR-кодом */
62
+ qrCode?: string;
63
+ /** Цветовая тема компонента */
64
+ theme?: ThemeType;
65
+ /** Изображение телефона. DEPRECATED: 'black-iphone', 'white-iphone', 'iphone-12' */
66
+ deviceMask: DeviceMaskType;
67
+ /** Изображение на дисплее телефона */
68
+ imageSrc: string;
69
+ /** Выравнивание контента слева на мобильном разрешении */
70
+ isContentLeftMobile?: boolean;
71
+ /** Дополнительный класс корневого элемента */
72
+ className?: string;
73
+ /** Дополнительные классы для корневого и внутренних элементов */
74
+ classes?: {
75
+ root?: string;
76
+ appleLink?: string;
77
+ galaxyStoreLink?: string;
78
+ googleLink?: string;
79
+ huaweiLink?: string;
80
+ miStoreLink?: string;
81
+ ruStoreLink?: string;
82
+ vAppstoreLink?: string;
83
+ button?: string;
84
+ };
85
+ /** Ссылка на корневой элемент */
86
+ rootRef?: React.Ref<HTMLDivElement>;
87
+ /** Дополнительные data атрибуты к внутренним элементам */
88
+ dataAttrs?: {
89
+ root?: Record<string, string>;
90
+ button?: Record<string, string>;
91
+ linkApple?: Record<string, string>;
92
+ linkGalaxyStore?: Record<string, string>;
93
+ linkGoogle?: Record<string, string>;
94
+ linkHuawei?: Record<string, string>;
95
+ linkMiStore?: Record<string, string>;
96
+ linkRuStore?: Record<string, string>;
97
+ linkVAppstore?: Record<string, string>;
98
+ };
99
+ }
100
+ declare const StoreBanner: React.FC<IStoreBannerProps>;
101
+ export default StoreBanner;
@@ -0,0 +1,209 @@
1
+ "use strict";
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); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = exports.Theme = exports.DeviceMask = void 0;
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
+ var React = _interopRequireWildcard(require("react"));
10
+ var _uiCore = require("@megafon/ui-core");
11
+ var _uiHelpers = require("@megafon/ui-helpers");
12
+ 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 && {}.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; }
15
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
16
+ var Theme = exports.Theme = {
17
+ DEFAULT: 'default',
18
+ GREEN: 'green',
19
+ SPB_SKY_1: 'spbSky1',
20
+ SPB_SKY_0: 'spbSky0'
21
+ };
22
+ var DeviceMask = exports.DeviceMask = {
23
+ ANDROID: 'android',
24
+ NEW_IPHONE: 'new-iphone',
25
+ /** DEPRECATED: 'black-iphone', 'white-iphone', 'iphone-12' */
26
+ BLACK_IPHONE: 'black-iphone',
27
+ WHITE_IPHONE: 'white-iphone',
28
+ IPHONE_12: 'iphone-12'
29
+ };
30
+ var testIdPrefix = 'StoreBanner';
31
+ var cn = (0, _uiHelpers.cnCreate)('mfui-store-banner');
32
+ var StoreBanner = function StoreBanner(_ref) {
33
+ 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;
73
+ return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
74
+ className: cn({
75
+ theme: theme,
76
+ mask: deviceMask,
77
+ 'content-left-mobile': isContentLeftMobile
78
+ }, [className, rootClassName]),
79
+ ref: rootRef
80
+ }, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root)), /*#__PURE__*/React.createElement("div", {
81
+ className: cn('container')
82
+ }, /*#__PURE__*/React.createElement("div", {
83
+ className: cn('grid')
84
+ }, /*#__PURE__*/React.createElement(_uiCore.Grid, null, /*#__PURE__*/React.createElement(_uiCore.GridColumn, {
85
+ all: "6",
86
+ mobile: "12",
87
+ rightOffsetWide: "1"
88
+ }, /*#__PURE__*/React.createElement("div", {
89
+ className: cn('content')
90
+ }, /*#__PURE__*/React.createElement(_uiCore.Header, {
91
+ as: "h2",
92
+ className: cn('title'),
93
+ color: "inherit"
94
+ }, (0, _uiHelpers.convert)(title, _uiHelpers.titleConvertConfig)), /*#__PURE__*/React.createElement("div", {
95
+ className: cn('text'),
96
+ color: "inherit"
97
+ }, (0, _uiHelpers.convert)(text, _uiHelpers.textConvertConfig)), /*#__PURE__*/React.createElement("div", {
98
+ className: cn('links', {
99
+ three: !!linkApple && !!linkGoogle && !!linkHuawei
100
+ })
101
+ }, !linkButton && qrCode && /*#__PURE__*/React.createElement("img", {
102
+ src: qrCode,
103
+ className: cn('qr-code'),
104
+ alt: "QR-\u043A\u043E\u0434",
105
+ "data-testid": "".concat(testIdPrefix, "-qrCode")
106
+ }), !linkButton && /*#__PURE__*/React.createElement("div", {
107
+ className: cn('stores'),
108
+ "data-testid": "".concat(testIdPrefix, "-stores")
109
+ }, linkApple && /*#__PURE__*/React.createElement(_StoreButton["default"], {
110
+ dataAttrs: {
111
+ root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.linkApple
112
+ },
113
+ theme: _StoreButton.Theme.APP_STORE,
114
+ href: linkApple,
115
+ rel: rel,
116
+ onClick: onClickApple,
117
+ className: cn('store-link', {
118
+ 'app-store': true
119
+ }, appleLinkClassName)
120
+ }), linkGoogle && /*#__PURE__*/React.createElement(_StoreButton["default"], {
121
+ dataAttrs: {
122
+ root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.linkGoogle
123
+ },
124
+ theme: _StoreButton.Theme.GOOGLE_PLAY,
125
+ href: linkGoogle,
126
+ rel: rel,
127
+ className: cn('store-link', {
128
+ 'google-play': true
129
+ }, googleLinkClassName),
130
+ onClick: onClickGoogle
131
+ }), linkRuStore && /*#__PURE__*/React.createElement(_StoreButton["default"], {
132
+ dataAttrs: {
133
+ root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.linkRuStore
134
+ },
135
+ theme: _StoreButton.Theme.RU_STORE,
136
+ href: linkRuStore,
137
+ rel: rel,
138
+ className: cn('store-link', {
139
+ 'ru-store': true
140
+ }, ruStoreLinkClassName),
141
+ onClick: onClickRuStore
142
+ }), linkGalaxyStore && /*#__PURE__*/React.createElement(_StoreButton["default"], {
143
+ dataAttrs: {
144
+ root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.linkGalaxyStore
145
+ },
146
+ theme: _StoreButton.Theme.GALAXY_STORE,
147
+ href: linkGalaxyStore,
148
+ rel: rel,
149
+ className: cn('store-link', {
150
+ 'galaxy-store': true
151
+ }, galaxyStoreLinkClassName),
152
+ onClick: onClickGalaxyStore
153
+ }), linkHuawei && /*#__PURE__*/React.createElement(_StoreButton["default"], {
154
+ dataAttrs: {
155
+ root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.linkHuawei
156
+ },
157
+ theme: _StoreButton.Theme.HUAWEI_STORE,
158
+ href: linkHuawei,
159
+ rel: rel,
160
+ className: cn('store-link', {
161
+ 'huawei-store': true
162
+ }, huaweiLinkClassName),
163
+ onClick: onClickHuawei
164
+ }), linkMiStore && /*#__PURE__*/React.createElement(_StoreButton["default"], {
165
+ dataAttrs: {
166
+ root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.linkMiStore
167
+ },
168
+ theme: _StoreButton.Theme.MI_STORE,
169
+ href: linkMiStore,
170
+ rel: rel,
171
+ className: cn('store-link', {
172
+ 'mi-store': true
173
+ }, miStoreLinkClassName),
174
+ onClick: onClickMiStore
175
+ }), linkVAppstore && /*#__PURE__*/React.createElement(_StoreButton["default"], {
176
+ dataAttrs: {
177
+ root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.linkVAppstore
178
+ },
179
+ theme: _StoreButton.Theme.V_APPSTORE,
180
+ href: linkVAppstore,
181
+ rel: rel,
182
+ className: cn('store-link', {
183
+ 'v-appstore': true
184
+ }, vAppstoreLinkClassName),
185
+ onClick: onClickVAppstore
186
+ })), linkButton && /*#__PURE__*/React.createElement(_uiCore.Button, {
187
+ dataAttrs: {
188
+ root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.button
189
+ },
190
+ className: cn('button', [buttonClassName]),
191
+ href: linkButton,
192
+ rel: rel,
193
+ theme: theme === 'green' ? 'purple' : 'green'
194
+ }, textButton)))), /*#__PURE__*/React.createElement(_uiCore.GridColumn, {
195
+ all: "4",
196
+ desktop: "6",
197
+ tablet: "6",
198
+ mobile: "12"
199
+ }, /*#__PURE__*/React.createElement("div", {
200
+ className: cn('device-wrapper')
201
+ }, /*#__PURE__*/React.createElement("div", {
202
+ className: cn('device-mask')
203
+ }), /*#__PURE__*/React.createElement("img", {
204
+ src: imageSrc,
205
+ className: cn('screen'),
206
+ 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
+ })))))));
208
+ };
209
+ var _default = exports["default"] = StoreBanner;
@@ -0,0 +1 @@
1
+ h1,h2,h3,h4,h5{margin:0}.mfui-store-button{background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:8px;display:inline-block}.mfui-store-button_size-all_small{height:35px;width:119px}.mfui-store-button_size-all_medium{height:40px;width:136px}.mfui-store-button_size-all_large{height:70px;width:238px}.mfui-store-button_size-all_medium.mfui-store-button_theme_app-store,.mfui-store-button_size-all_small.mfui-store-button_theme_app-store{background-image:url(img/app-store.png)}.mfui-store-button_size-all_medium.mfui-store-button_theme_galaxy-store,.mfui-store-button_size-all_small.mfui-store-button_theme_galaxy-store{background-image:url(img/galaxy-store.png)}.mfui-store-button_size-all_medium.mfui-store-button_theme_google-play,.mfui-store-button_size-all_small.mfui-store-button_theme_google-play{background-image:url(img/google-play.png)}.mfui-store-button_size-all_medium.mfui-store-button_theme_huawei-store,.mfui-store-button_size-all_small.mfui-store-button_theme_huawei-store{background-image:url(img/huawei-store.png)}.mfui-store-button_size-all_medium.mfui-store-button_theme_mi-store,.mfui-store-button_size-all_small.mfui-store-button_theme_mi-store{background-image:url(img/mi-store.png)}.mfui-store-button_size-all_medium.mfui-store-button_theme_ru-store,.mfui-store-button_size-all_small.mfui-store-button_theme_ru-store{background-image:url(img/ru-store.png)}.mfui-store-button_size-all_medium.mfui-store-button_theme_v-appstore,.mfui-store-button_size-all_small.mfui-store-button_theme_v-appstore{background-image:url(img/v-appstore.png)}.mfui-store-button_size-all_large.mfui-store-button_theme_app-store{background-image:url(img/app-store-large.png)}.mfui-store-button_size-all_large.mfui-store-button_theme_galaxy-store{background-image:url(img/galaxy-store-large.png)}.mfui-store-button_size-all_large.mfui-store-button_theme_google-play{background-image:url(img/google-play-large.png)}.mfui-store-button_size-all_large.mfui-store-button_theme_huawei-store{background-image:url(img/huawei-store-large.png)}.mfui-store-button_size-all_large.mfui-store-button_theme_mi-store{background-image:url(img/mi-store-large.png)}.mfui-store-button_size-all_large.mfui-store-button_theme_ru-store{background-image:url(img/ru-store-large.png)}.mfui-store-button_size-all_large.mfui-store-button_theme_v-appstore{background-image:url(img/v-appstore-large.png)}@media screen and (min-width:1024px){.mfui-store-button_size-desktop_small{height:35px;width:119px}.mfui-store-button_size-desktop_medium{height:40px;width:136px}.mfui-store-button_size-desktop_large{height:70px;width:238px}.mfui-store-button_size-desktop_medium.mfui-store-button_theme_app-store,.mfui-store-button_size-desktop_small.mfui-store-button_theme_app-store{background-image:url(img/app-store.png)}.mfui-store-button_size-desktop_medium.mfui-store-button_theme_galaxy-store,.mfui-store-button_size-desktop_small.mfui-store-button_theme_galaxy-store{background-image:url(img/galaxy-store.png)}.mfui-store-button_size-desktop_medium.mfui-store-button_theme_google-play,.mfui-store-button_size-desktop_small.mfui-store-button_theme_google-play{background-image:url(img/google-play.png)}.mfui-store-button_size-desktop_medium.mfui-store-button_theme_huawei-store,.mfui-store-button_size-desktop_small.mfui-store-button_theme_huawei-store{background-image:url(img/huawei-store.png)}.mfui-store-button_size-desktop_medium.mfui-store-button_theme_mi-store,.mfui-store-button_size-desktop_small.mfui-store-button_theme_mi-store{background-image:url(img/mi-store.png)}.mfui-store-button_size-desktop_medium.mfui-store-button_theme_ru-store,.mfui-store-button_size-desktop_small.mfui-store-button_theme_ru-store{background-image:url(img/ru-store.png)}.mfui-store-button_size-desktop_medium.mfui-store-button_theme_v-appstore,.mfui-store-button_size-desktop_small.mfui-store-button_theme_v-appstore{background-image:url(img/v-appstore.png)}.mfui-store-button_size-desktop_large.mfui-store-button_theme_app-store{background-image:url(img/app-store-large.png)}.mfui-store-button_size-desktop_large.mfui-store-button_theme_galaxy-store{background-image:url(img/galaxy-store-large.png)}.mfui-store-button_size-desktop_large.mfui-store-button_theme_google-play{background-image:url(img/google-play-large.png)}.mfui-store-button_size-desktop_large.mfui-store-button_theme_huawei-store{background-image:url(img/huawei-store-large.png)}.mfui-store-button_size-desktop_large.mfui-store-button_theme_mi-store{background-image:url(img/mi-store-large.png)}.mfui-store-button_size-desktop_large.mfui-store-button_theme_ru-store{background-image:url(img/ru-store-large.png)}.mfui-store-button_size-desktop_large.mfui-store-button_theme_v-appstore{background-image:url(img/v-appstore-large.png)}}@media screen and (min-width:1280px){.mfui-store-button_size-wide_small{height:35px;width:119px}.mfui-store-button_size-wide_medium{height:40px;width:136px}.mfui-store-button_size-wide_large{height:70px;width:238px}.mfui-store-button_size-wide_medium.mfui-store-button_theme_app-store,.mfui-store-button_size-wide_small.mfui-store-button_theme_app-store{background-image:url(img/app-store.png)}.mfui-store-button_size-wide_medium.mfui-store-button_theme_galaxy-store,.mfui-store-button_size-wide_small.mfui-store-button_theme_galaxy-store{background-image:url(img/galaxy-store.png)}.mfui-store-button_size-wide_medium.mfui-store-button_theme_google-play,.mfui-store-button_size-wide_small.mfui-store-button_theme_google-play{background-image:url(img/google-play.png)}.mfui-store-button_size-wide_medium.mfui-store-button_theme_huawei-store,.mfui-store-button_size-wide_small.mfui-store-button_theme_huawei-store{background-image:url(img/huawei-store.png)}.mfui-store-button_size-wide_medium.mfui-store-button_theme_mi-store,.mfui-store-button_size-wide_small.mfui-store-button_theme_mi-store{background-image:url(img/mi-store.png)}.mfui-store-button_size-wide_medium.mfui-store-button_theme_ru-store,.mfui-store-button_size-wide_small.mfui-store-button_theme_ru-store{background-image:url(img/ru-store.png)}.mfui-store-button_size-wide_medium.mfui-store-button_theme_v-appstore,.mfui-store-button_size-wide_small.mfui-store-button_theme_v-appstore{background-image:url(img/v-appstore.png)}.mfui-store-button_size-wide_large.mfui-store-button_theme_app-store{background-image:url(img/app-store-large.png)}.mfui-store-button_size-wide_large.mfui-store-button_theme_galaxy-store{background-image:url(img/galaxy-store-large.png)}.mfui-store-button_size-wide_large.mfui-store-button_theme_google-play{background-image:url(img/google-play-large.png)}.mfui-store-button_size-wide_large.mfui-store-button_theme_huawei-store{background-image:url(img/huawei-store-large.png)}.mfui-store-button_size-wide_large.mfui-store-button_theme_mi-store{background-image:url(img/mi-store-large.png)}.mfui-store-button_size-wide_large.mfui-store-button_theme_ru-store{background-image:url(img/ru-store-large.png)}.mfui-store-button_size-wide_large.mfui-store-button_theme_v-appstore{background-image:url(img/v-appstore-large.png)}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-store-button_size-tablet_small{height:35px;width:119px}.mfui-store-button_size-tablet_medium{height:40px;width:136px}.mfui-store-button_size-tablet_large{height:70px;width:238px}.mfui-store-button_size-tablet_medium.mfui-store-button_theme_app-store,.mfui-store-button_size-tablet_small.mfui-store-button_theme_app-store{background-image:url(img/app-store.png)}.mfui-store-button_size-tablet_medium.mfui-store-button_theme_galaxy-store,.mfui-store-button_size-tablet_small.mfui-store-button_theme_galaxy-store{background-image:url(img/galaxy-store.png)}.mfui-store-button_size-tablet_medium.mfui-store-button_theme_google-play,.mfui-store-button_size-tablet_small.mfui-store-button_theme_google-play{background-image:url(img/google-play.png)}.mfui-store-button_size-tablet_medium.mfui-store-button_theme_huawei-store,.mfui-store-button_size-tablet_small.mfui-store-button_theme_huawei-store{background-image:url(img/huawei-store.png)}.mfui-store-button_size-tablet_medium.mfui-store-button_theme_mi-store,.mfui-store-button_size-tablet_small.mfui-store-button_theme_mi-store{background-image:url(img/mi-store.png)}.mfui-store-button_size-tablet_medium.mfui-store-button_theme_ru-store,.mfui-store-button_size-tablet_small.mfui-store-button_theme_ru-store{background-image:url(img/ru-store.png)}.mfui-store-button_size-tablet_medium.mfui-store-button_theme_v-appstore,.mfui-store-button_size-tablet_small.mfui-store-button_theme_v-appstore{background-image:url(img/v-appstore.png)}.mfui-store-button_size-tablet_large.mfui-store-button_theme_app-store{background-image:url(img/app-store-large.png)}.mfui-store-button_size-tablet_large.mfui-store-button_theme_galaxy-store{background-image:url(img/galaxy-store-large.png)}.mfui-store-button_size-tablet_large.mfui-store-button_theme_google-play{background-image:url(img/google-play-large.png)}.mfui-store-button_size-tablet_large.mfui-store-button_theme_huawei-store{background-image:url(img/huawei-store-large.png)}.mfui-store-button_size-tablet_large.mfui-store-button_theme_mi-store{background-image:url(img/mi-store-large.png)}.mfui-store-button_size-tablet_large.mfui-store-button_theme_ru-store{background-image:url(img/ru-store-large.png)}.mfui-store-button_size-tablet_large.mfui-store-button_theme_v-appstore{background-image:url(img/v-appstore-large.png)}}@media screen and (max-width:767px){.mfui-store-button_size-mobile_small{height:35px;width:119px}.mfui-store-button_size-mobile_medium{height:40px;width:136px}.mfui-store-button_size-mobile_large{height:70px;width:238px}.mfui-store-button_size-mobile_medium.mfui-store-button_theme_app-store,.mfui-store-button_size-mobile_small.mfui-store-button_theme_app-store{background-image:url(img/app-store.png)}.mfui-store-button_size-mobile_medium.mfui-store-button_theme_galaxy-store,.mfui-store-button_size-mobile_small.mfui-store-button_theme_galaxy-store{background-image:url(img/galaxy-store.png)}.mfui-store-button_size-mobile_medium.mfui-store-button_theme_google-play,.mfui-store-button_size-mobile_small.mfui-store-button_theme_google-play{background-image:url(img/google-play.png)}.mfui-store-button_size-mobile_medium.mfui-store-button_theme_huawei-store,.mfui-store-button_size-mobile_small.mfui-store-button_theme_huawei-store{background-image:url(img/huawei-store.png)}.mfui-store-button_size-mobile_medium.mfui-store-button_theme_mi-store,.mfui-store-button_size-mobile_small.mfui-store-button_theme_mi-store{background-image:url(img/mi-store.png)}.mfui-store-button_size-mobile_medium.mfui-store-button_theme_ru-store,.mfui-store-button_size-mobile_small.mfui-store-button_theme_ru-store{background-image:url(img/ru-store.png)}.mfui-store-button_size-mobile_medium.mfui-store-button_theme_v-appstore,.mfui-store-button_size-mobile_small.mfui-store-button_theme_v-appstore{background-image:url(img/v-appstore.png)}.mfui-store-button_size-mobile_large.mfui-store-button_theme_app-store{background-image:url(img/app-store-large.png)}.mfui-store-button_size-mobile_large.mfui-store-button_theme_galaxy-store{background-image:url(img/galaxy-store-large.png)}.mfui-store-button_size-mobile_large.mfui-store-button_theme_google-play{background-image:url(img/google-play-large.png)}.mfui-store-button_size-mobile_large.mfui-store-button_theme_huawei-store{background-image:url(img/huawei-store-large.png)}.mfui-store-button_size-mobile_large.mfui-store-button_theme_mi-store{background-image:url(img/mi-store-large.png)}.mfui-store-button_size-mobile_large.mfui-store-button_theme_ru-store{background-image:url(img/ru-store-large.png)}.mfui-store-button_size-mobile_large.mfui-store-button_theme_v-appstore{background-image:url(img/v-appstore-large.png)}}
@@ -0,0 +1,36 @@
1
+ import * as React from 'react';
2
+ import { Link } from '@megafon/ui-core';
3
+ import './StoreButton.scss';
4
+ export declare enum ButtonSizes {
5
+ SMALL = "small",
6
+ MEDIUM = "medium",
7
+ LARGE = "large"
8
+ }
9
+ export declare enum Theme {
10
+ APP_STORE = "app-store",
11
+ GALAXY_STORE = "galaxy-store",
12
+ GOOGLE_PLAY = "google-play",
13
+ HUAWEI_STORE = "huawei-store",
14
+ MI_STORE = "mi-store",
15
+ RU_STORE = "ru-store",
16
+ V_APPSTORE = "v-appstore"
17
+ }
18
+ type LinkPropTypes = React.ComponentProps<typeof Link>;
19
+ export type Props = Required<Pick<LinkPropTypes, 'href'>> & Pick<LinkPropTypes, 'target' | 'rel' | 'onClick' | 'dataAttrs'> & {
20
+ /** Тема кнопки */
21
+ theme: Theme;
22
+ /** Дополнительный класс */
23
+ className?: string;
24
+ /** Размер на всех разрешениях экрана */
25
+ sizeAll?: ButtonSizes;
26
+ /** Размер на разрешении экрана 1280+ */
27
+ sizeWide?: ButtonSizes;
28
+ /** Размер на разрешении экрана 1024+ */
29
+ sizeDesktop?: ButtonSizes;
30
+ /** Размер на разрешении экрана 768-1023 */
31
+ sizeTablet?: ButtonSizes;
32
+ /** Размер на разрешении экрана 0-767 */
33
+ sizeMobile?: ButtonSizes;
34
+ };
35
+ declare const StoreButton: React.FC<Props>;
36
+ export default StoreButton;
@@ -0,0 +1,69 @@
1
+ "use strict";
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); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = exports.Theme = exports.ButtonSizes = void 0;
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
+ require("core-js/modules/es.symbol.js");
10
+ require("core-js/modules/es.array.index-of.js");
11
+ var React = _interopRequireWildcard(require("react"));
12
+ var _uiCore = require("@megafon/ui-core");
13
+ var _uiHelpers = require("@megafon/ui-helpers");
14
+ 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); }
15
+ 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 && {}.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; }
16
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
17
+ var __rest = void 0 && (void 0).__rest || function (s, e) {
18
+ var t = {};
19
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
20
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
21
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
22
+ }
23
+ return t;
24
+ };
25
+ var ButtonSizes;
26
+ (function (ButtonSizes) {
27
+ ButtonSizes["SMALL"] = "small";
28
+ ButtonSizes["MEDIUM"] = "medium";
29
+ ButtonSizes["LARGE"] = "large";
30
+ })(ButtonSizes || (exports.ButtonSizes = ButtonSizes = {}));
31
+ var Theme;
32
+ (function (Theme) {
33
+ Theme["APP_STORE"] = "app-store";
34
+ Theme["GALAXY_STORE"] = "galaxy-store";
35
+ Theme["GOOGLE_PLAY"] = "google-play";
36
+ Theme["HUAWEI_STORE"] = "huawei-store";
37
+ Theme["MI_STORE"] = "mi-store";
38
+ Theme["RU_STORE"] = "ru-store";
39
+ Theme["V_APPSTORE"] = "v-appstore";
40
+ })(Theme || (exports.Theme = Theme = {}));
41
+ var cn = (0, _uiHelpers.cnCreate)('mfui-store-button');
42
+ var StoreButton = function StoreButton(_a) {
43
+ var href = _a.href,
44
+ rel = _a.rel,
45
+ onClick = _a.onClick,
46
+ theme = _a.theme,
47
+ className = _a.className,
48
+ _a$sizeAll = _a.sizeAll,
49
+ sizeAll = _a$sizeAll === void 0 ? ButtonSizes.MEDIUM : _a$sizeAll,
50
+ sizeWide = _a.sizeWide,
51
+ sizeDesktop = _a.sizeDesktop,
52
+ sizeTablet = _a.sizeTablet,
53
+ sizeMobile = _a.sizeMobile,
54
+ rest = __rest(_a, ["href", "rel", "onClick", "theme", "className", "sizeAll", "sizeWide", "sizeDesktop", "sizeTablet", "sizeMobile"]);
55
+ return /*#__PURE__*/React.createElement(_uiCore.Link, (0, _extends2["default"])({}, rest, {
56
+ href: href,
57
+ rel: rel,
58
+ onClick: onClick,
59
+ className: cn({
60
+ theme: theme,
61
+ 'size-all': sizeAll,
62
+ 'size-wide': sizeWide,
63
+ 'size-desktop': sizeDesktop,
64
+ 'size-tablet': sizeTablet,
65
+ 'size-mobile': sizeMobile
66
+ }, className)
67
+ }));
68
+ };
69
+ var _default = exports["default"] = StoreButton;
@@ -0,0 +1 @@
1
+ h1,h2,h3,h4,h5{margin:0}.mfui-table{display:-webkit-box;display:-ms-flexbox;display:flex;font-family:inherit;font-size:15px;line-height:24px}@supports (-moz-appearance:none){.mfui-table__scroll{scrollbar-color:var(--spbSky2) var(--spbSky1);scrollbar-width:auto}}.mfui-table:not(.mfui-table_touch) .mfui-table__scroll::-webkit-scrollbar{background-color:var(--spbSky1);border-radius:100px;height:8px;width:8px}.mfui-table:not(.mfui-table_touch) .mfui-table__scroll::-webkit-scrollbar-track{background-color:var(--spbSky0);border-radius:100px}.mfui-table:not(.mfui-table_touch) .mfui-table__scroll::-webkit-scrollbar-thumb{background-color:var(--spbSky2);border-radius:100px}.mfui-table:not(.mfui-table_touch) .mfui-table__scroll::-webkit-scrollbar-corner{background:transparent}.mfui-table__scroll{display:grid;grid-template-columns:auto auto auto;max-width:100%;overflow:auto;position:relative}@media screen and (min-width:1024px){.mfui-table__scroll_limit{max-height:500px}}.mfui-table__top-shadow{background:-webkit-gradient(linear,left top,left bottom,color-stop(.01%,rgba(0,0,0,.04)),color-stop(49.5%,rgba(0,0,0,.01)),color-stop(99.98%,hsla(0,0%,100%,0)));background:linear-gradient(180deg,rgba(0,0,0,.04) .01%,rgba(0,0,0,.01) 49.5%,hsla(0,0%,100%,0) 99.98%);display:block;grid-column-end:4;grid-column-start:1;height:18px;margin-bottom:-18px;position:sticky;top:0;width:100%;z-index:2}.mfui-table__left-shadow{background:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.04)),color-stop(49.5%,rgba(0,0,0,.01)),to(hsla(0,0%,100%,0)));background:linear-gradient(90deg,rgba(0,0,0,.04),rgba(0,0,0,.01) 49.5%,hsla(0,0%,100%,0));bottom:0;left:0;margin-right:-18px;position:sticky;top:0;width:18px;z-index:2}.mfui-table__bottom-gradient{background:-webkit-gradient(linear,left bottom,left top,color-stop(25%,var(--base)),to(hsla(0,0%,100%,0)));background:linear-gradient(to top,var(--base) 25%,hsla(0,0%,100%,0));bottom:0;display:block;grid-column-end:4;grid-column-start:1;height:48px;margin-top:-48px;position:sticky;width:100%;z-index:1}.mfui-table__right-gradient{background:-webkit-gradient(linear,right top,left top,color-stop(25%,var(--base)),to(hsla(0,0%,100%,0)));background:linear-gradient(to left,var(--base) 25%,hsla(0,0%,100%,0));display:block;height:100%;margin-left:-48px;position:sticky;right:0;width:48px;z-index:1}.mfui-table__table{background-color:var(--base);border-collapse:separate;border-spacing:0;border-width:0}.mfui-table__cell{background-color:var(--base);-webkit-box-sizing:border-box;box-sizing:border-box;padding:24px}@media screen and (max-width:767px){.mfui-table__cell{padding-left:16px;padding-right:16px}}.mfui-table__cell:first-child{left:0;min-width:144px;position:relative;width:144px}.mfui-table__cell:not(:first-child){max-width:288px}.mfui-table__row_head .mfui-table__cell{background-color:var(--spbSky0);color:var(--spbSky3);font-size:12px;height:72px;line-height:18px;padding-bottom:12px;vertical-align:bottom}.mfui-table__row_head .mfui-table__cell:first-child{border-bottom-left-radius:16px;border-top-left-radius:16px}.mfui-table__row_head .mfui-table__cell:last-child{border-bottom-right-radius:16px;border-top-right-radius:16px}.mfui-table__row_content:last-child .mfui-table__cell{border-bottom:1px solid var(--spbSky1)}.mfui-table__row_content .mfui-table__cell{border-top:1px solid var(--spbSky1)}.mfui-table__row_head+.mfui-table__row_content .mfui-table__cell{border-top:none}.mfui-table__row_align_bottom .mfui-table__cell{vertical-align:bottom}.mfui-table__row_align_top .mfui-table__cell{vertical-align:top}.mfui-table__row_align_top.mfui-table__row_head .mfui-table__cell{padding-top:12px}.mfui-table_min-cell-size_small .mfui-table__cell:not(:first-child){min-width:72px}.mfui-table_min-cell-size_large .mfui-table__cell:not(:first-child){min-width:144px}.mfui-table_fix-column .mfui-table__cell:first-child{position:sticky}.mfui-table_fix-column .mfui-table__left-shadow{left:144px}.mfui-table_fix-column .mfui-table__bottom-gradient{z-index:3}.mfui-table_bold-font .mfui-table__cell:first-child{font-weight:500}.mfui-table_horizontal-scroll .mfui-table__row:last-child .mfui-table__cell{border-bottom:none}
@@ -0,0 +1,18 @@
1
+ import * as React from 'react';
2
+ import './Table.scss';
3
+ import { ITableRow } from './TableRow';
4
+ export interface ITable {
5
+ /** Дополнительный класс корневого элемента */
6
+ className?: string;
7
+ /** Фиксация первой колонки */
8
+ fixColumn?: boolean;
9
+ /** Жирный текст в первой колонке */
10
+ boldFontInFirstColumn?: boolean;
11
+ /** Минимальный размер ячеек */
12
+ minCellSize?: 'small' | 'large';
13
+ /** Отключить ограничение по высоте при разрешении больше 1024px */
14
+ disableHeightLimit?: boolean;
15
+ children: Array<React.ReactElement<ITableRow>>;
16
+ }
17
+ declare const Table: React.FC<ITable>;
18
+ export default Table;