@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 @@
1
+ h1,h2,h3,h4,h5{margin:0}.mfui-accordion-box+.mfui-accordion-box{margin-top:8px}@media screen and (min-width:768px){.mfui-accordion-box+.mfui-accordion-box{margin-top:12px}}
@@ -0,0 +1,49 @@
1
+ import * as React from 'react';
2
+ import { IHeaderProps } from '@megafon/ui-core/dist/lib/components/Header/Header';
3
+ import './AccordionBox.scss';
4
+ export interface IAccordionBox {
5
+ /** Дополнительные data атрибуты к внутренним элементам */
6
+ dataAttrs?: {
7
+ root?: Record<string, string>;
8
+ header?: {
9
+ root: Record<string, string>;
10
+ };
11
+ collapse?: {
12
+ root?: Record<string, string>;
13
+ inner?: Record<string, string>;
14
+ };
15
+ titleWrap?: Record<string, string>;
16
+ arrowUp?: Record<string, string>;
17
+ arrowDown?: Record<string, string>;
18
+ };
19
+ /** Ссылка на корневой элемент */
20
+ rootRef?: React.Ref<HTMLDivElement>;
21
+ /** Заголовок аккордеона */
22
+ title: string;
23
+ /** Тег заголовка (определяет базовый тег и стили) */
24
+ titleTag?: IHeaderProps['as'];
25
+ /** Тег заголовка для семантической разметки (переопределение тега без изменения стилей) */
26
+ titleTagName?: IHeaderProps['tag'];
27
+ /** Состояние аккордеона, заданное извне */
28
+ isOpened?: boolean;
29
+ /** Включить микроразметку */
30
+ hasMicrodata?: boolean;
31
+ /** Отключить ограничение ширины */
32
+ isFullWidth?: boolean;
33
+ /** Центрирование по горизонтали для расширения 1280+ */
34
+ hCenterAlignWide?: boolean;
35
+ /** Дополнительный класс для корневого элемента */
36
+ className?: string;
37
+ /** Дополнительные классы для корневого и внутренних элементов */
38
+ classes?: {
39
+ openedClass?: string;
40
+ root?: string;
41
+ collapse?: string;
42
+ titleWrap?: string;
43
+ title?: string;
44
+ };
45
+ /** Обработчик клика */
46
+ onClickAccordion?: (isOpened: boolean) => void;
47
+ }
48
+ declare const AccordionBox: React.FC<React.PropsWithChildren<IAccordionBox>>;
49
+ export default AccordionBox;
@@ -0,0 +1,42 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import "core-js/modules/es.symbol.js";
3
+ import "core-js/modules/es.array.index-of.js";
4
+ var __rest = this && this.__rest || function (s, e) {
5
+ var t = {};
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
7
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import * as React from 'react';
13
+ import { Grid, GridColumn, Accordion } from '@megafon/ui-core';
14
+ import { cnCreate } from '@megafon/ui-helpers';
15
+ import "./AccordionBox.css";
16
+ import { getColumnConfig } from "../../helpers/getColumnConfig";
17
+ var testIdPrefix = 'AccordionBox';
18
+ var cn = cnCreate('mfui-accordion-box');
19
+ var AccordionBox = function AccordionBox(_a) {
20
+ var _a$hCenterAlignWide = _a.hCenterAlignWide,
21
+ hCenterAlignWide = _a$hCenterAlignWide === void 0 ? false : _a$hCenterAlignWide,
22
+ _a$isFullWidth = _a.isFullWidth,
23
+ isFullWidth = _a$isFullWidth === void 0 ? false : _a$isFullWidth,
24
+ restProps = __rest(_a, ["hCenterAlignWide", "isFullWidth"]);
25
+ return /*#__PURE__*/React.createElement("div", {
26
+ className: cn()
27
+ }, /*#__PURE__*/React.createElement(Grid, {
28
+ hAlign: hCenterAlignWide ? 'center' : 'left',
29
+ dataAttrs: {
30
+ container: {
31
+ 'data-testid': "".concat(testIdPrefix, "-container")
32
+ }
33
+ }
34
+ }, /*#__PURE__*/React.createElement(GridColumn, _extends({}, getColumnConfig(isFullWidth), {
35
+ dataAttrs: {
36
+ root: {
37
+ 'data-testid': "".concat(testIdPrefix, "-column")
38
+ }
39
+ }
40
+ }), /*#__PURE__*/React.createElement(Accordion, restProps))));
41
+ };
42
+ export default AccordionBox;
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import './style/AudioPlayer.scss';
3
+ export interface IAudioPlayerProps {
4
+ audioSrc: string;
5
+ audioTitle: string;
6
+ position?: 'left' | 'center' | 'right';
7
+ isFullWidth?: boolean;
8
+ }
9
+ declare const AudioPlayer: React.FC<IAudioPlayerProps>;
10
+ export default AudioPlayer;
@@ -0,0 +1,107 @@
1
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
+ import _extends from "@babel/runtime/helpers/extends";
3
+ import * as React from 'react';
4
+ import { Button } from '@megafon/ui-core';
5
+ import { cnCreate } from '@megafon/ui-helpers';
6
+ import AudioProgress from "./AudioProgress";
7
+ import AudioVolume from "./AudioVolume";
8
+ import "./style/AudioPlayer.css";
9
+ var IconPause = function IconPause(props) {
10
+ return /*#__PURE__*/React.createElement("svg", _extends({
11
+ viewBox: "0 0 32 32"
12
+ }, props), /*#__PURE__*/React.createElement("path", {
13
+ d: "M11 10.5v11a.5.5 0 00.5.5h2a.5.5 0 00.5-.5v-11a.5.5 0 00-.5-.5h-2a.5.5 0 00-.5.5zm7 0v11a.5.5 0 00.5.5h2a.5.5 0 00.5-.5v-11a.5.5 0 00-.5-.5h-2a.5.5 0 00-.5.5z"
14
+ }));
15
+ };
16
+ var IconPlay = function IconPlay(props) {
17
+ return /*#__PURE__*/React.createElement("svg", _extends({
18
+ viewBox: "0 0 32 32"
19
+ }, props), /*#__PURE__*/React.createElement("path", {
20
+ d: "M11.5 22.13V9.87a.5.5 0 01.752-.431l10.508 6.13a.5.5 0 010 .863l-10.508 6.13a.5.5 0 01-.752-.433z"
21
+ }));
22
+ };
23
+ var cn = cnCreate('mfui-audio-player');
24
+ var AudioPlayer = function AudioPlayer(_ref) {
25
+ var audioSrc = _ref.audioSrc,
26
+ audioTitle = _ref.audioTitle,
27
+ _ref$position = _ref.position,
28
+ position = _ref$position === void 0 ? 'center' : _ref$position,
29
+ isFullWidth = _ref.isFullWidth;
30
+ var audioRef = React.useRef(null);
31
+ var _React$useState = React.useState(false),
32
+ _React$useState2 = _slicedToArray(_React$useState, 2),
33
+ isPlaying = _React$useState2[0],
34
+ setIsPlaying = _React$useState2[1];
35
+ var _React$useState3 = React.useState(false),
36
+ _React$useState4 = _slicedToArray(_React$useState3, 2),
37
+ isPause = _React$useState4[0],
38
+ setIsPause = _React$useState4[1];
39
+ var handlePLay = function handlePLay() {
40
+ var _a;
41
+ setIsPlaying(true);
42
+ setIsPause(false);
43
+ (_a = audioRef.current) === null || _a === void 0 ? void 0 : _a.play();
44
+ };
45
+ var handlePause = function handlePause() {
46
+ var _a;
47
+ setIsPlaying(false);
48
+ setIsPause(true);
49
+ (_a = audioRef.current) === null || _a === void 0 ? void 0 : _a.pause();
50
+ };
51
+ var handleChangeAudioCurrentTime = function handleChangeAudioCurrentTime(currentTime) {
52
+ if (!audioRef || !audioRef.current) {
53
+ return;
54
+ }
55
+ audioRef.current.currentTime = currentTime;
56
+ };
57
+ var handleChangeAudioVolume = function handleChangeAudioVolume(volume) {
58
+ if (!audioRef || !audioRef.current) {
59
+ return;
60
+ }
61
+ audioRef.current.volume = volume;
62
+ audioRef.current.muted = !volume;
63
+ };
64
+ var playingIconHandleClick = React.useMemo(function () {
65
+ return isPlaying ? handlePause : handlePLay;
66
+ }, [isPlaying]);
67
+ return /*#__PURE__*/React.createElement("div", {
68
+ className: cn({
69
+ 'full-width': isFullWidth,
70
+ position: position
71
+ }),
72
+ "data-testid": "AudioPlayer"
73
+ }, /*#__PURE__*/React.createElement("div", {
74
+ className: cn('player')
75
+ }, /*#__PURE__*/React.createElement("audio", {
76
+ className: cn('audio'),
77
+ ref: audioRef,
78
+ controls: false,
79
+ "data-testid": "AudioPlayer-audio"
80
+ }, /*#__PURE__*/React.createElement("source", {
81
+ src: audioSrc,
82
+ type: "audio/mpeg"
83
+ })), /*#__PURE__*/React.createElement("div", {
84
+ className: cn('playing-controls')
85
+ }, /*#__PURE__*/React.createElement(Button, {
86
+ icon: isPlaying ? /*#__PURE__*/React.createElement(IconPause, null) : /*#__PURE__*/React.createElement(IconPlay, null),
87
+ onClick: playingIconHandleClick,
88
+ sizeAll: "small",
89
+ className: cn('button'),
90
+ dataAttrs: {
91
+ root: {
92
+ 'data-testid': 'AudioPlayer-btn'
93
+ }
94
+ }
95
+ })), /*#__PURE__*/React.createElement(AudioProgress, {
96
+ audioRef: audioRef,
97
+ audioTitle: audioTitle,
98
+ isPlaying: isPlaying,
99
+ isPause: isPause,
100
+ onChangeAudioCurrentTime: handleChangeAudioCurrentTime,
101
+ onPlay: handlePLay,
102
+ onSetIsPlaying: setIsPlaying
103
+ }), /*#__PURE__*/React.createElement(AudioVolume, {
104
+ onChangeAudioVolume: handleChangeAudioVolume
105
+ })));
106
+ };
107
+ export default AudioPlayer;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import './style/AudioProgress.scss';
3
+ export declare const INTERVAL_DELAY = 1000;
4
+ export interface IAudioProgressProps {
5
+ audioRef: React.MutableRefObject<HTMLAudioElement | null>;
6
+ audioTitle: string;
7
+ isPlaying: boolean;
8
+ isPause: boolean;
9
+ onChangeAudioCurrentTime?: (currentTime: number) => void;
10
+ onPlay?: () => void;
11
+ onSetIsPlaying?: (value: boolean) => void;
12
+ }
13
+ declare const AudioProgress: React.FC<IAudioProgressProps>;
14
+ export default AudioProgress;
@@ -0,0 +1,96 @@
1
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
+ import "core-js/modules/es.number.constructor.js";
3
+ import "core-js/modules/web.timers.js";
4
+ import React from 'react';
5
+ import { cnCreate } from '@megafon/ui-helpers';
6
+ import AudioRange from "./AudioRange";
7
+ import useTrackDuration from "./hooks/useTrackDuration";
8
+ import timerFormat from "./timerFormatUtil";
9
+ import "./style/AudioProgress.css";
10
+ export var INTERVAL_DELAY = 1000;
11
+ var cn = cnCreate('mfui-audio-progress');
12
+ var AudioProgress = function AudioProgress(_ref) {
13
+ var audioRef = _ref.audioRef,
14
+ audioTitle = _ref.audioTitle,
15
+ isPlaying = _ref.isPlaying,
16
+ isPause = _ref.isPause,
17
+ onChangeAudioCurrentTime = _ref.onChangeAudioCurrentTime,
18
+ onPlay = _ref.onPlay,
19
+ onSetIsPlaying = _ref.onSetIsPlaying;
20
+ var intervalId = React.useRef(null);
21
+ var _React$useState = React.useState(0),
22
+ _React$useState2 = _slicedToArray(_React$useState, 2),
23
+ trackProgress = _React$useState2[0],
24
+ setTrackProgress = _React$useState2[1];
25
+ var trackDuration = useTrackDuration(audioRef);
26
+ var progressColorPercent = React.useMemo(function () {
27
+ return trackProgress / trackDuration * 100;
28
+ }, [trackDuration, trackProgress]);
29
+ var progressValue = React.useMemo(function () {
30
+ return isPlaying || isPause ? trackProgress : trackDuration;
31
+ }, [isPause, isPlaying, trackDuration, trackProgress]);
32
+ var handleStartTimer = React.useCallback(function () {
33
+ intervalId.current && clearInterval(intervalId.current);
34
+ intervalId.current = setInterval(function () {
35
+ var _a, _b, _c;
36
+ if ((_a = audioRef.current) === null || _a === void 0 ? void 0 : _a.ended) {
37
+ onSetIsPlaying === null || onSetIsPlaying === void 0 ? void 0 : onSetIsPlaying(false);
38
+ setTrackProgress(Math.floor(((_b = audioRef.current) === null || _b === void 0 ? void 0 : _b.duration) || 0));
39
+ return;
40
+ }
41
+ setTrackProgress(Math.floor(((_c = audioRef.current) === null || _c === void 0 ? void 0 : _c.currentTime) || 0));
42
+ }, INTERVAL_DELAY);
43
+ }, [audioRef, onSetIsPlaying]);
44
+ var handleScrubProgress = function handleScrubProgress(e) {
45
+ var currentTime = Number(e.target.value);
46
+ setTrackProgress(currentTime);
47
+ onChangeAudioCurrentTime === null || onChangeAudioCurrentTime === void 0 ? void 0 : onChangeAudioCurrentTime(currentTime);
48
+ };
49
+ var handleScrubEndProgress = function handleScrubEndProgress() {
50
+ if (!isPlaying) {
51
+ onPlay === null || onPlay === void 0 ? void 0 : onPlay();
52
+ }
53
+ handleStartTimer();
54
+ };
55
+ React.useEffect(function () {
56
+ var _a;
57
+ setTrackProgress(Math.floor(((_a = audioRef === null || audioRef === void 0 ? void 0 : audioRef.current) === null || _a === void 0 ? void 0 : _a.currentTime) || 0));
58
+ }, [audioRef]);
59
+ React.useEffect(function () {
60
+ if (isPlaying) {
61
+ handleStartTimer();
62
+ }
63
+ if (isPause) {
64
+ intervalId.current && clearInterval(intervalId.current);
65
+ }
66
+ }, [handleStartTimer, isPause, isPlaying]);
67
+ React.useEffect(function () {
68
+ return function () {
69
+ intervalId.current && clearInterval(intervalId.current);
70
+ };
71
+ }, []);
72
+ return /*#__PURE__*/React.createElement("div", {
73
+ className: cn()
74
+ }, /*#__PURE__*/React.createElement("div", {
75
+ className: cn('info')
76
+ }, /*#__PURE__*/React.createElement("span", {
77
+ className: cn('title')
78
+ }, audioTitle), /*#__PURE__*/React.createElement("span", {
79
+ className: cn('value')
80
+ }, timerFormat(progressValue))), /*#__PURE__*/React.createElement("div", {
81
+ className: cn('range-wrapper')
82
+ }, /*#__PURE__*/React.createElement(AudioRange, {
83
+ className: cn('range'),
84
+ maxValue: trackDuration,
85
+ value: trackProgress,
86
+ step: "1",
87
+ colorPercent: progressColorPercent || 0,
88
+ onChange: handleScrubProgress,
89
+ onMouseUp: handleScrubEndProgress,
90
+ onTouchEnd: handleScrubEndProgress,
91
+ dataAttrs: {
92
+ 'data-testid': 'AudioTimeRange'
93
+ }
94
+ })));
95
+ };
96
+ export default AudioProgress;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import './style/AudioRange.scss';
3
+ export interface IAudioRangeProps {
4
+ className?: string;
5
+ maxValue: number | string;
6
+ value: number;
7
+ step: string;
8
+ colorPercent: number;
9
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
10
+ onMouseUp?: () => void;
11
+ onTouchEnd?: () => void;
12
+ dataAttrs?: Record<string, string>;
13
+ }
14
+ declare const AudioRange: React.FC<IAudioRangeProps>;
15
+ export default AudioRange;
@@ -0,0 +1,31 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import React from 'react';
3
+ import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
4
+ import "./style/AudioRange.css";
5
+ var cn = cnCreate('mfui-audio-range');
6
+ var AudioRange = function AudioRange(_ref) {
7
+ var className = _ref.className,
8
+ maxValue = _ref.maxValue,
9
+ value = _ref.value,
10
+ step = _ref.step,
11
+ colorPercent = _ref.colorPercent,
12
+ onChange = _ref.onChange,
13
+ onMouseUp = _ref.onMouseUp,
14
+ onTouchEnd = _ref.onTouchEnd,
15
+ dataAttrs = _ref.dataAttrs;
16
+ return /*#__PURE__*/React.createElement("input", _extends({
17
+ className: cn([className]),
18
+ style: {
19
+ backgroundSize: "".concat(colorPercent, "% 100%")
20
+ },
21
+ type: "range",
22
+ min: "0",
23
+ max: maxValue,
24
+ step: step,
25
+ value: value,
26
+ onChange: onChange,
27
+ onMouseUp: onMouseUp,
28
+ onTouchEnd: onTouchEnd
29
+ }, filterDataAttrs(dataAttrs)));
30
+ };
31
+ export default AudioRange;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import './style/AudioVolume.scss';
3
+ export interface IAudioVolumeProps {
4
+ onChangeAudioVolume?: (volume: number) => void;
5
+ }
6
+ declare const AudioVolume: React.FC<IAudioVolumeProps>;
7
+ export default AudioVolume;
@@ -0,0 +1,77 @@
1
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
+ import _extends from "@babel/runtime/helpers/extends";
3
+ import "core-js/modules/es.number.constructor.js";
4
+ import React from 'react';
5
+ import { Tooltip } from '@megafon/ui-core';
6
+ import { cnCreate } from '@megafon/ui-helpers';
7
+ import AudioRange from "./AudioRange";
8
+ import "./style/AudioVolume.css";
9
+ var NoVolumeIcon = function NoVolumeIcon(props) {
10
+ return /*#__PURE__*/React.createElement("svg", _extends({
11
+ viewBox: "0 0 24 24"
12
+ }, props), /*#__PURE__*/React.createElement("path", {
13
+ d: "M14 20.15c0 .322.299.56.606.467a9.004 9.004 0 004.96-13.493l-1.525 1.34a7.002 7.002 0 01-3.687 10.13.525.525 0 00-.354.488v1.069z"
14
+ }), /*#__PURE__*/React.createElement("path", {
15
+ d: "M16.094 10.174c.261.56.406 1.177.406 1.826 0 1.426-.7 2.701-1.8 3.548-.3.23-.7-.004-.7-.382v-3.152l2.094-1.84zm-1.225-1.586L14 9.35v-.517c0-.378.4-.613.7-.382.058.044.114.09.169.136zm1.923-1.69a6.998 6.998 0 00-2.438-1.491.525.525 0 01-.354-.489V3.849c0-.32.299-.559.606-.466a8.994 8.994 0 013.694 2.19l-1.508 1.325zM12 11.108V5.36a.5.5 0 00-.342-.474l-.822-.274a.5.5 0 00-.553.167L7.15 8.807A.5.5 0 016.756 9H3.707a.5.5 0 00-.353.146l-.207.208A.5.5 0 003 9.707v4.586a.5.5 0 00.147.353l.207.208a.5.5 0 00.353.146h3.049a.5.5 0 01.394.193l.082.105L12 11.108zM8.462 16.88l1.82 2.34a.5.5 0 00.554.168l.822-.274A.5.5 0 0012 18.64v-4.87l-3.538 3.11zm-5.488 3.563a.5.5 0 01.046-.705L21.497 3.503a.5.5 0 11.66.751L3.68 20.49a.5.5 0 01-.706-.046z"
16
+ }));
17
+ };
18
+ var VolumeIcon = function VolumeIcon(props) {
19
+ return /*#__PURE__*/React.createElement("svg", _extends({
20
+ viewBox: "0 0 24 24"
21
+ }, props), /*#__PURE__*/React.createElement("path", {
22
+ d: "M14 20.15c0 .322.299.56.606.467a9.004 9.004 0 000-17.234.475.475 0 00-.606.466v1.069c0 .221.146.414.354.489a7.002 7.002 0 010 13.186.525.525 0 00-.354.489v1.069zM3.146 14.646A.5.5 0 013 14.293V9.707a.5.5 0 01.146-.353l.208-.208A.5.5 0 013.707 9h3.048a.5.5 0 00.395-.193l3.133-4.028a.5.5 0 01.553-.167l.822.274A.5.5 0 0112 5.36v13.28a.5.5 0 01-.342.474l-.822.274a.5.5 0 01-.553-.167L7.15 15.193A.5.5 0 006.755 15H3.707a.5.5 0 01-.353-.146l-.208-.208z"
23
+ }), /*#__PURE__*/React.createElement("path", {
24
+ d: "M16.5 12c0 1.426-.7 2.701-1.8 3.548-.3.23-.7-.004-.7-.382V8.834c0-.378.4-.613.7-.382 1.1.847 1.8 2.122 1.8 3.548z"
25
+ }));
26
+ };
27
+ var cn = cnCreate('mfui-audio-volume');
28
+ var AudioVolume = function AudioVolume(_ref) {
29
+ var onChangeAudioVolume = _ref.onChangeAudioVolume;
30
+ var tooltipTrigger = React.useRef(null);
31
+ var _React$useState = React.useState(0.3),
32
+ _React$useState2 = _slicedToArray(_React$useState, 2),
33
+ trackVolume = _React$useState2[0],
34
+ setTrackVolume = _React$useState2[1];
35
+ var volumeColorPercent = React.useMemo(function () {
36
+ return trackVolume * 100;
37
+ }, [trackVolume]);
38
+ var handleScrubVolume = function handleScrubVolume(e) {
39
+ var currentVolume = Number(e.target.value);
40
+ setTrackVolume(currentVolume);
41
+ onChangeAudioVolume === null || onChangeAudioVolume === void 0 ? void 0 : onChangeAudioVolume(currentVolume);
42
+ };
43
+ return /*#__PURE__*/React.createElement("div", {
44
+ className: cn()
45
+ }, /*#__PURE__*/React.createElement("div", {
46
+ className: cn('icon-area'),
47
+ ref: tooltipTrigger
48
+ }, /*#__PURE__*/React.createElement(VolumeIcon, {
49
+ className: cn('icon', {
50
+ visible: !!trackVolume
51
+ })
52
+ }), /*#__PURE__*/React.createElement(NoVolumeIcon, {
53
+ className: cn('icon', {
54
+ visible: !trackVolume
55
+ })
56
+ })), /*#__PURE__*/React.createElement(Tooltip, {
57
+ classes: {
58
+ content: "".concat(cn('tooltip-content')),
59
+ contentShadow: "".concat(cn('tooltip-content-shadow'))
60
+ },
61
+ triggerElement: tooltipTrigger,
62
+ triggerEvent: "click",
63
+ placement: "top",
64
+ paddings: "none"
65
+ }, /*#__PURE__*/React.createElement(AudioRange, {
66
+ className: cn('range'),
67
+ maxValue: "1",
68
+ value: trackVolume,
69
+ step: "0.01",
70
+ colorPercent: volumeColorPercent || 0,
71
+ onChange: handleScrubVolume,
72
+ dataAttrs: {
73
+ 'data-testid': 'AudioVolumeRange'
74
+ }
75
+ })));
76
+ };
77
+ export default AudioVolume;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const useTrackDuration: (audioRef: React.RefObject<HTMLAudioElement>) => number;
3
+ export default useTrackDuration;
@@ -0,0 +1,26 @@
1
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
+ import React from 'react';
3
+ var useTrackDuration = function useTrackDuration(audioRef) {
4
+ var _React$useState = React.useState(0),
5
+ _React$useState2 = _slicedToArray(_React$useState, 2),
6
+ trackDuration = _React$useState2[0],
7
+ setTrackDuration = _React$useState2[1];
8
+ React.useEffect(function () {
9
+ var audioNode = audioRef.current;
10
+ if (!audioNode) {
11
+ return;
12
+ }
13
+ var readyState = audioNode.readyState,
14
+ duration = audioNode.duration;
15
+ if (readyState > 0) {
16
+ setTrackDuration(Math.round(duration));
17
+ } else {
18
+ audioNode.onloadedmetadata = function (e) {
19
+ var el = e.target;
20
+ setTrackDuration(Math.round(el.duration));
21
+ };
22
+ }
23
+ }, [audioRef]);
24
+ return trackDuration;
25
+ };
26
+ export default useTrackDuration;
@@ -0,0 +1 @@
1
+ h1,h2,h3,h4,h5{margin:0}.mfui-audio-player{margin-top:24px}.mfui-audio-player__player{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;background:var(--spbSky0);border-radius:12px;-webkit-box-sizing:border-box;box-sizing:border-box;justify-content:space-between;padding:16px}@media screen and (min-width:768px) and (max-width:1023px){.mfui-audio-player__player{max-width:530px}}@media screen and (min-width:1024px){.mfui-audio-player__player{max-width:550px}}.mfui-audio-player__playing-controls{margin-right:16px}.mfui-audio-player_position_center .mfui-audio-player__player{margin:0 auto}.mfui-audio-player_position_left .mfui-audio-player__player{margin-right:auto}.mfui-audio-player_position_right .mfui-audio-player__player{margin-left:auto}@media screen and (min-width:768px) and (max-width:1023px){.mfui-audio-player_full-width .mfui-audio-player__player{max-width:100%}}@media screen and (min-width:1024px){.mfui-audio-player_full-width .mfui-audio-player__player{max-width:100%}}
@@ -0,0 +1 @@
1
+ h1,h2,h3,h4,h5{margin:0}.mfui-audio-progress{margin-right:16px;width:100%}.mfui-audio-progress__info{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.mfui-audio-progress__value{color:var(-spbSky3);font-size:12px;line-height:18px}.mfui-audio-progress__range-wrapper{margin-top:-2px}.mfui-audio-progress__title{color:var(--stcBlack);font-size:12px;line-height:18px}
@@ -0,0 +1 @@
1
+ h1,h2,h3,h4,h5{margin:0}.mfui-audio-range{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--spbSky2);background-image:-webkit-gradient(linear,left top,left bottom,from(#00b956),to(#00b956));background-image:linear-gradient(#00b956,#00b956);background-repeat:no-repeat;border-radius:2px;cursor:pointer;height:4px;width:100%}.mfui-audio-range:focus{outline:none}.mfui-audio-range::-webkit-slider-thumb{-webkit-appearance:none;background:var(--stcWhite);border:none;border-radius:50%;-webkit-box-shadow:0 2px 9px fade(#000,15%);box-shadow:0 2px 9px fade(#000,15%);height:16px;width:16px}.mfui-audio-range::-moz-range-thumb{-webkit-appearance:none;background:var(--stcWhite);border:none;border-radius:50%;box-shadow:0 2px 9px fade(#000,15%);height:16px;width:16px}.mfui-audio-range::-ms-thumb{-webkit-appearance:none;background:var(--stcWhite);border:none;border-radius:50%;box-shadow:0 2px 9px fade(#000,15%);height:16px;width:16px}.mfui-audio-range::-webkit-slider-runnable-track{-webkit-appearance:none;background:transparent;border:none;-webkit-box-shadow:none;box-shadow:none}.mfui-audio-range::-moz-range-track{-webkit-appearance:none;background:transparent;border:none;box-shadow:none}.mfui-audio-range::-ms-track{-webkit-appearance:none;background:transparent;border:none;box-shadow:none}
@@ -0,0 +1 @@
1
+ h1,h2,h3,h4,h5{margin:0}.mfui-audio-volume{width:24px}.mfui-audio-volume__tooltip-content{border-radius:12px;padding:7px 16px 14px}.mfui-audio-volume__tooltip-content-shadow{border-radius:12px}.mfui-audio-volume__icon{cursor:pointer;display:none;height:24px;min-width:24px;width:24px;fill:var(--brandGreen)}.mfui-audio-volume__icon_visible{display:block}.mfui-audio-volume__icon:hover{fill:var(--buttonHoverGreen)}.mfui-audio-volume__range{max-width:128px}
@@ -0,0 +1,2 @@
1
+ declare const timerFormat: (sec: number) => string;
2
+ export default timerFormat;
@@ -0,0 +1,25 @@
1
+ import "core-js/modules/es.array.concat.js";
2
+ import "core-js/modules/es.parse-int.js";
3
+ var getMinutes = function getMinutes(sec) {
4
+ var min = parseInt("".concat(sec / 60), 10);
5
+ if (min < 10) {
6
+ return "0".concat(min);
7
+ }
8
+ return "".concat(min);
9
+ };
10
+ /**
11
+ * @param {Number} sec
12
+ * @returns {String}
13
+ */
14
+ var getSeconds = function getSeconds(sec) {
15
+ if (sec < 10) {
16
+ return "0".concat(sec);
17
+ }
18
+ return "".concat(sec);
19
+ };
20
+ var timerFormat = function timerFormat(sec) {
21
+ var min = getMinutes(sec);
22
+ var seconds = getSeconds(sec % 60);
23
+ return "".concat(min, ":").concat(seconds);
24
+ };
25
+ export default timerFormat;
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import { Banner } from '@megafon/ui-core';
3
+ type BannerBoxProps = React.ComponentProps<typeof Banner> & React.PropsWithChildren;
4
+ declare const BannerBox: React.FC<BannerBoxProps>;
5
+ export default BannerBox;
@@ -0,0 +1,22 @@
1
+ import "core-js/modules/es.symbol.js";
2
+ import "core-js/modules/es.array.index-of.js";
3
+ var __rest = this && this.__rest || function (s, e) {
4
+ var t = {};
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
8
+ }
9
+ return t;
10
+ };
11
+ import * as React from 'react';
12
+ import { Banner } from '@megafon/ui-core';
13
+ import { cnCreate } from '@megafon/ui-helpers';
14
+ var cn = cnCreate('mfui-banner-box');
15
+ var BannerBox = function BannerBox(_a) {
16
+ var children = _a.children,
17
+ props = __rest(_a, ["children"]);
18
+ return /*#__PURE__*/React.createElement("div", {
19
+ className: cn()
20
+ }, /*#__PURE__*/React.createElement(Banner, props, children));
21
+ };
22
+ export default BannerBox;
@@ -0,0 +1,30 @@
1
+ import * as React from 'react';
2
+ import { IconPosition, IBenefit, BackgroundType } from './types';
3
+ import './style/BenefitsIcons.scss';
4
+ export interface IBenefitsIcons {
5
+ /** Дополнительные data атрибуты к внутренним элементам */
6
+ dataAttrs?: {
7
+ root?: Record<string, string>;
8
+ };
9
+ /** Ссылка на корневой элемент */
10
+ rootRef?: React.Ref<HTMLDivElement>;
11
+ /** Позиция иконки */
12
+ iconPosition?: IconPosition;
13
+ /** Цвет фона */
14
+ background?: BackgroundType;
15
+ /** Выстраивать бенефиты в одну колонку вне зависимости от количества */
16
+ inOneColumn?: boolean;
17
+ /** Список бенефитов */
18
+ items: IBenefit[];
19
+ /** Дополнительный css класс для корневого элемента */
20
+ className?: string;
21
+ /** Дополнительные css классы для корневого и внутренних элементов */
22
+ classes?: {
23
+ root?: string;
24
+ item?: string;
25
+ grid?: string;
26
+ gridColumn?: string;
27
+ };
28
+ }
29
+ declare const BenefitsIcons: React.FC<IBenefitsIcons>;
30
+ export default BenefitsIcons;