@megafon/ui-shared 8.13.1 → 8.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (513) hide show
  1. package/package.json +6 -6
  2. package/dist/es/components/AccordionBox/AccordionBox.css +0 -1
  3. package/dist/es/components/AccordionBox/AccordionBox.d.ts +0 -49
  4. package/dist/es/components/AccordionBox/AccordionBox.js +0 -42
  5. package/dist/es/components/AudioPlayer/AudioPlayer.d.ts +0 -10
  6. package/dist/es/components/AudioPlayer/AudioPlayer.js +0 -107
  7. package/dist/es/components/AudioPlayer/AudioProgress.d.ts +0 -14
  8. package/dist/es/components/AudioPlayer/AudioProgress.js +0 -96
  9. package/dist/es/components/AudioPlayer/AudioRange.d.ts +0 -15
  10. package/dist/es/components/AudioPlayer/AudioRange.js +0 -31
  11. package/dist/es/components/AudioPlayer/AudioVolume.d.ts +0 -7
  12. package/dist/es/components/AudioPlayer/AudioVolume.js +0 -77
  13. package/dist/es/components/AudioPlayer/hooks/useTrackDuration.d.ts +0 -3
  14. package/dist/es/components/AudioPlayer/hooks/useTrackDuration.js +0 -26
  15. package/dist/es/components/AudioPlayer/style/AudioPlayer.css +0 -1
  16. package/dist/es/components/AudioPlayer/style/AudioProgress.css +0 -1
  17. package/dist/es/components/AudioPlayer/style/AudioRange.css +0 -1
  18. package/dist/es/components/AudioPlayer/style/AudioVolume.css +0 -1
  19. package/dist/es/components/AudioPlayer/timerFormatUtil.d.ts +0 -2
  20. package/dist/es/components/AudioPlayer/timerFormatUtil.js +0 -25
  21. package/dist/es/components/BannerBox/BannerBox.d.ts +0 -5
  22. package/dist/es/components/BannerBox/BannerBox.js +0 -22
  23. package/dist/es/components/BenefitsIcons/BenefitsIcons.d.ts +0 -30
  24. package/dist/es/components/BenefitsIcons/BenefitsIcons.js +0 -104
  25. package/dist/es/components/BenefitsIcons/BenefitsIconsTile.d.ts +0 -10
  26. package/dist/es/components/BenefitsIcons/BenefitsIconsTile.js +0 -51
  27. package/dist/es/components/BenefitsIcons/helpers.d.ts +0 -8
  28. package/dist/es/components/BenefitsIcons/helpers.js +0 -102
  29. package/dist/es/components/BenefitsIcons/style/BenefitsIcons.css +0 -1
  30. package/dist/es/components/BenefitsIcons/style/BenefitsIconsTile.css +0 -1
  31. package/dist/es/components/BenefitsIcons/types.d.ts +0 -54
  32. package/dist/es/components/BenefitsIcons/types.js +0 -17
  33. package/dist/es/components/BenefitsPictures/BenefitsPictures.d.ts +0 -27
  34. package/dist/es/components/BenefitsPictures/BenefitsPictures.js +0 -111
  35. package/dist/es/components/BenefitsPictures/BenfitsPictures.css +0 -1
  36. package/dist/es/components/BenefitsPictures/helpers.d.ts +0 -11
  37. package/dist/es/components/BenefitsPictures/helpers.js +0 -85
  38. package/dist/es/components/BenefitsPictures/types.d.ts +0 -24
  39. package/dist/es/components/BenefitsPictures/types.js +0 -1
  40. package/dist/es/components/BlogBox/BlogBox.css +0 -1
  41. package/dist/es/components/BlogBox/BlogBox.d.ts +0 -31
  42. package/dist/es/components/BlogBox/BlogBox.js +0 -72
  43. package/dist/es/components/BlogBox/components/BlogBoxTile.css +0 -1
  44. package/dist/es/components/BlogBox/components/BlogBoxTile.d.ts +0 -13
  45. package/dist/es/components/BlogBox/components/BlogBoxTile.js +0 -61
  46. package/dist/es/components/BlogBox/types.d.ts +0 -37
  47. package/dist/es/components/BlogBox/types.js +0 -1
  48. package/dist/es/components/Breadcrumbs/Breadcrumbs.css +0 -1
  49. package/dist/es/components/Breadcrumbs/Breadcrumbs.d.ts +0 -41
  50. package/dist/es/components/Breadcrumbs/Breadcrumbs.js +0 -66
  51. package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.css +0 -1
  52. package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.d.ts +0 -29
  53. package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.js +0 -57
  54. package/dist/es/components/ButtonBanner/ButtonBanner.css +0 -1
  55. package/dist/es/components/ButtonBanner/ButtonBanner.d.ts +0 -64
  56. package/dist/es/components/ButtonBanner/ButtonBanner.js +0 -96
  57. package/dist/es/components/ButtonLinkBox/ButtonLinkBox.css +0 -1
  58. package/dist/es/components/ButtonLinkBox/ButtonLinkBox.d.ts +0 -52
  59. package/dist/es/components/ButtonLinkBox/ButtonLinkBox.js +0 -65
  60. package/dist/es/components/ButtonsBox/ButtonsBox.css +0 -1
  61. package/dist/es/components/ButtonsBox/ButtonsBox.d.ts +0 -48
  62. package/dist/es/components/ButtonsBox/ButtonsBox.js +0 -47
  63. package/dist/es/components/Card/Card.css +0 -1
  64. package/dist/es/components/Card/Card.d.ts +0 -55
  65. package/dist/es/components/Card/Card.js +0 -229
  66. package/dist/es/components/Card/types.d.ts +0 -86
  67. package/dist/es/components/Card/types.js +0 -1
  68. package/dist/es/components/CardsBox/CardsBox.d.ts +0 -14
  69. package/dist/es/components/CardsBox/CardsBox.js +0 -26
  70. package/dist/es/components/CardsBox/helpers.d.ts +0 -10
  71. package/dist/es/components/CardsBox/helpers.js +0 -21
  72. package/dist/es/components/CarouselBox/CarouselBox.d.ts +0 -10
  73. package/dist/es/components/CarouselBox/CarouselBox.js +0 -45
  74. package/dist/es/components/ChipsBox/ChipBox.d.ts +0 -5
  75. package/dist/es/components/ChipsBox/ChipBox.js +0 -7
  76. package/dist/es/components/ChipsBox/ChipsBox.css +0 -1
  77. package/dist/es/components/ChipsBox/ChipsBox.d.ts +0 -16
  78. package/dist/es/components/ChipsBox/ChipsBox.js +0 -76
  79. package/dist/es/components/Container/Container.css +0 -1
  80. package/dist/es/components/Container/Container.d.ts +0 -41
  81. package/dist/es/components/Container/Container.js +0 -46
  82. package/dist/es/components/DarkGradientCards/DarkGradientCards.css +0 -1
  83. package/dist/es/components/DarkGradientCards/DarkGradientCards.d.ts +0 -33
  84. package/dist/es/components/DarkGradientCards/DarkGradientCards.js +0 -66
  85. package/dist/es/components/DarkGradientCards/components/DarkGradientCard.css +0 -1
  86. package/dist/es/components/DarkGradientCards/components/DarkGradientCard.d.ts +0 -16
  87. package/dist/es/components/DarkGradientCards/components/DarkGradientCard.js +0 -50
  88. package/dist/es/components/DarkGradientCards/types.d.ts +0 -20
  89. package/dist/es/components/DarkGradientCards/types.js +0 -1
  90. package/dist/es/components/DownloadLinks/DownloadLink.css +0 -1
  91. package/dist/es/components/DownloadLinks/DownloadLink.d.ts +0 -36
  92. package/dist/es/components/DownloadLinks/DownloadLink.js +0 -61
  93. package/dist/es/components/DownloadLinks/DownloadLinks.css +0 -1
  94. package/dist/es/components/DownloadLinks/DownloadLinks.d.ts +0 -20
  95. package/dist/es/components/DownloadLinks/DownloadLinks.js +0 -64
  96. package/dist/es/components/FaqWrapper/FaqWrapper.d.ts +0 -6
  97. package/dist/es/components/FaqWrapper/FaqWrapper.js +0 -9
  98. package/dist/es/components/ImageBanner/ImageBanner.css +0 -1
  99. package/dist/es/components/ImageBanner/ImageBanner.d.ts +0 -94
  100. package/dist/es/components/ImageBanner/ImageBanner.js +0 -164
  101. package/dist/es/components/InfoCards/InfoCards.css +0 -1
  102. package/dist/es/components/InfoCards/InfoCards.d.ts +0 -24
  103. package/dist/es/components/InfoCards/InfoCards.js +0 -44
  104. package/dist/es/components/InfoCards/components/InfoCard/InfoCard.css +0 -1
  105. package/dist/es/components/InfoCards/components/InfoCard/InfoCard.d.ts +0 -19
  106. package/dist/es/components/InfoCards/components/InfoCard/InfoCard.js +0 -85
  107. package/dist/es/components/InfoCards/types.d.ts +0 -31
  108. package/dist/es/components/InfoCards/types.js +0 -1
  109. package/dist/es/components/Instructions/Instructions.css +0 -1
  110. package/dist/es/components/Instructions/Instructions.d.ts +0 -120
  111. package/dist/es/components/Instructions/Instructions.js +0 -362
  112. package/dist/es/components/Instructions/img/android-new.png +0 -0
  113. package/dist/es/components/Instructions/img/android.png +0 -0
  114. package/dist/es/components/Instructions/img/blackIphone.png +0 -0
  115. package/dist/es/components/Instructions/img/iphone-new.png +0 -0
  116. package/dist/es/components/Instructions/img/iphone12.png +0 -0
  117. package/dist/es/components/Instructions/img/iphone15.png +0 -0
  118. package/dist/es/components/Instructions/img/laptop-new.png +0 -0
  119. package/dist/es/components/Instructions/img/laptop.png +0 -0
  120. package/dist/es/components/Instructions/img/newIphone.png +0 -0
  121. package/dist/es/components/Instructions/img/whiteIphone.png +0 -0
  122. package/dist/es/components/NotificationBox/NotificationBox.css +0 -1
  123. package/dist/es/components/NotificationBox/NotificationBox.d.ts +0 -15
  124. package/dist/es/components/NotificationBox/NotificationBox.js +0 -35
  125. package/dist/es/components/NumbersBox/NumbersBox.css +0 -1
  126. package/dist/es/components/NumbersBox/NumbersBox.d.ts +0 -35
  127. package/dist/es/components/NumbersBox/NumbersBox.js +0 -72
  128. package/dist/es/components/NumbersBox/components/NumbersCard/NumbersCard.css +0 -1
  129. package/dist/es/components/NumbersBox/components/NumbersCard/NumbersCard.d.ts +0 -16
  130. package/dist/es/components/NumbersBox/components/NumbersCard/NumbersCard.js +0 -28
  131. package/dist/es/components/NumbersBox/types.d.ts +0 -7
  132. package/dist/es/components/NumbersBox/types.js +0 -1
  133. package/dist/es/components/PageTitle/PageTitle.css +0 -1
  134. package/dist/es/components/PageTitle/PageTitle.d.ts +0 -36
  135. package/dist/es/components/PageTitle/PageTitle.js +0 -74
  136. package/dist/es/components/Partners/Partners.css +0 -1
  137. package/dist/es/components/Partners/Partners.d.ts +0 -37
  138. package/dist/es/components/Partners/Partners.js +0 -111
  139. package/dist/es/components/PictureBox/PictureBox.css +0 -1
  140. package/dist/es/components/PictureBox/PictureBox.d.ts +0 -48
  141. package/dist/es/components/PictureBox/PictureBox.js +0 -96
  142. package/dist/es/components/PictureBox/img/mac-book-1x.png +0 -0
  143. package/dist/es/components/PictureBox/img/mac-book-2x.png +0 -0
  144. package/dist/es/components/PictureWithDescription/PictureWithDescription.css +0 -1
  145. package/dist/es/components/PictureWithDescription/PictureWithDescription.d.ts +0 -32
  146. package/dist/es/components/PictureWithDescription/PictureWithDescription.js +0 -48
  147. package/dist/es/components/PromoBanner/PromoBanner.d.ts +0 -5
  148. package/dist/es/components/PromoBanner/PromoBanner.js +0 -26
  149. package/dist/es/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.css +0 -1
  150. package/dist/es/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.d.ts +0 -82
  151. package/dist/es/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.js +0 -142
  152. package/dist/es/components/PromoCards/PromoCards.d.ts +0 -33
  153. package/dist/es/components/PromoCards/PromoCards.js +0 -61
  154. package/dist/es/components/PromoCards/components/PromoCard/PromoCard.css +0 -1
  155. package/dist/es/components/PromoCards/components/PromoCard/PromoCard.d.ts +0 -25
  156. package/dist/es/components/PromoCards/components/PromoCard/PromoCard.js +0 -175
  157. package/dist/es/components/PromoCards/types.d.ts +0 -62
  158. package/dist/es/components/PromoCards/types.js +0 -1
  159. package/dist/es/components/Property/Property.d.ts +0 -5
  160. package/dist/es/components/Property/Property.js +0 -10
  161. package/dist/es/components/ServiceCards/ServiceCards.css +0 -1
  162. package/dist/es/components/ServiceCards/ServiceCards.d.ts +0 -28
  163. package/dist/es/components/ServiceCards/ServiceCards.js +0 -42
  164. package/dist/es/components/ServiceCards/components/ServiceCard/ServiceCard.css +0 -1
  165. package/dist/es/components/ServiceCards/components/ServiceCard/ServiceCard.d.ts +0 -19
  166. package/dist/es/components/ServiceCards/components/ServiceCard/ServiceCard.js +0 -81
  167. package/dist/es/components/ServiceCards/types.d.ts +0 -26
  168. package/dist/es/components/ServiceCards/types.js +0 -1
  169. package/dist/es/components/SidePictureCards/SidePictureCards.d.ts +0 -31
  170. package/dist/es/components/SidePictureCards/SidePictureCards.js +0 -69
  171. package/dist/es/components/SidePictureCards/components/SidePictureCard.css +0 -1
  172. package/dist/es/components/SidePictureCards/components/SidePictureCard.d.ts +0 -18
  173. package/dist/es/components/SidePictureCards/components/SidePictureCard.js +0 -94
  174. package/dist/es/components/SidePictureCards/types.d.ts +0 -48
  175. package/dist/es/components/SidePictureCards/types.js +0 -1
  176. package/dist/es/components/Stepper/Stepper.css +0 -1
  177. package/dist/es/components/Stepper/Stepper.d.ts +0 -52
  178. package/dist/es/components/Stepper/Stepper.js +0 -159
  179. package/dist/es/components/Stepper/StepperItem.css +0 -1
  180. package/dist/es/components/Stepper/StepperItem.d.ts +0 -57
  181. package/dist/es/components/Stepper/StepperItem.js +0 -99
  182. package/dist/es/components/Stepper/img/separator-mobile.png +0 -0
  183. package/dist/es/components/Stepper/img/separator-vertical.png +0 -0
  184. package/dist/es/components/Stepper/img/separator.png +0 -0
  185. package/dist/es/components/Steps/Steps.css +0 -1
  186. package/dist/es/components/Steps/Steps.d.ts +0 -21
  187. package/dist/es/components/Steps/Steps.js +0 -32
  188. package/dist/es/components/Steps/StepsItem.css +0 -1
  189. package/dist/es/components/Steps/StepsItem.d.ts +0 -10
  190. package/dist/es/components/Steps/StepsItem.js +0 -21
  191. package/dist/es/components/StoreBanner/StoreBanner.css +0 -1
  192. package/dist/es/components/StoreBanner/StoreBanner.d.ts +0 -101
  193. package/dist/es/components/StoreBanner/StoreBanner.js +0 -200
  194. package/dist/es/components/StoreBanner/img/android.png +0 -0
  195. package/dist/es/components/StoreBanner/img/black-iphone.png +0 -0
  196. package/dist/es/components/StoreBanner/img/iphone12.png +0 -0
  197. package/dist/es/components/StoreBanner/img/new-iphone.png +0 -0
  198. package/dist/es/components/StoreBanner/img/white-iphone.png +0 -0
  199. package/dist/es/components/StoreButton/StoreButton.css +0 -1
  200. package/dist/es/components/StoreButton/StoreButton.d.ts +0 -36
  201. package/dist/es/components/StoreButton/StoreButton.js +0 -60
  202. package/dist/es/components/StoreButton/img/app-store-large.png +0 -0
  203. package/dist/es/components/StoreButton/img/app-store.png +0 -0
  204. package/dist/es/components/StoreButton/img/galaxy-store-large.png +0 -0
  205. package/dist/es/components/StoreButton/img/galaxy-store.png +0 -0
  206. package/dist/es/components/StoreButton/img/google-play-large.png +0 -0
  207. package/dist/es/components/StoreButton/img/google-play.png +0 -0
  208. package/dist/es/components/StoreButton/img/huawei-store-large.png +0 -0
  209. package/dist/es/components/StoreButton/img/huawei-store.png +0 -0
  210. package/dist/es/components/StoreButton/img/mi-store-large.png +0 -0
  211. package/dist/es/components/StoreButton/img/mi-store.png +0 -0
  212. package/dist/es/components/StoreButton/img/ru-store-large.png +0 -0
  213. package/dist/es/components/StoreButton/img/ru-store.png +0 -0
  214. package/dist/es/components/StoreButton/img/v-appstore-large.png +0 -0
  215. package/dist/es/components/StoreButton/img/v-appstore.png +0 -0
  216. package/dist/es/components/Table/Table.css +0 -1
  217. package/dist/es/components/Table/Table.d.ts +0 -18
  218. package/dist/es/components/Table/Table.js +0 -127
  219. package/dist/es/components/Table/TableCell.d.ts +0 -6
  220. package/dist/es/components/Table/TableCell.js +0 -6
  221. package/dist/es/components/Table/TableRow.d.ts +0 -11
  222. package/dist/es/components/Table/TableRow.js +0 -7
  223. package/dist/es/components/TabsBox/TabBox.d.ts +0 -2
  224. package/dist/es/components/TabsBox/TabBox.js +0 -2
  225. package/dist/es/components/TabsBox/TabsBox.d.ts +0 -8
  226. package/dist/es/components/TabsBox/TabsBox.js +0 -24
  227. package/dist/es/components/TextBox/TextBox.css +0 -1
  228. package/dist/es/components/TextBox/TextBox.d.ts +0 -17
  229. package/dist/es/components/TextBox/TextBox.js +0 -43
  230. package/dist/es/components/TextBox/TextBoxPicture.css +0 -1
  231. package/dist/es/components/TextBox/TextBoxPicture.d.ts +0 -21
  232. package/dist/es/components/TextBox/TextBoxPicture.js +0 -30
  233. package/dist/es/components/TextWithIcon/TextWithIcon.css +0 -1
  234. package/dist/es/components/TextWithIcon/TextWithIcon.d.ts +0 -21
  235. package/dist/es/components/TextWithIcon/TextWithIcon.js +0 -41
  236. package/dist/es/components/TextWithIcon/TextWithIconItem.css +0 -1
  237. package/dist/es/components/TextWithIcon/TextWithIconItem.d.ts +0 -25
  238. package/dist/es/components/TextWithIcon/TextWithIconItem.js +0 -40
  239. package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.css +0 -1
  240. package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +0 -22
  241. package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.js +0 -60
  242. package/dist/es/components/VideoBanner/VideoBanner.css +0 -1
  243. package/dist/es/components/VideoBanner/VideoBanner.d.ts +0 -112
  244. package/dist/es/components/VideoBanner/VideoBanner.js +0 -245
  245. package/dist/es/components/VideoBlock/VideoBlock.css +0 -1
  246. package/dist/es/components/VideoBlock/VideoBlock.d.ts +0 -63
  247. package/dist/es/components/VideoBlock/VideoBlock.js +0 -230
  248. package/dist/es/constants/throttleTime.d.ts +0 -4
  249. package/dist/es/constants/throttleTime.js +0 -3
  250. package/dist/es/helpers/getColumnConfig.d.ts +0 -6
  251. package/dist/es/helpers/getColumnConfig.js +0 -10
  252. package/dist/es/helpers/setRelAttribute.d.ts +0 -3
  253. package/dist/es/helpers/setRelAttribute.js +0 -9
  254. package/dist/es/hooks/useResolutions.d.ts +0 -8
  255. package/dist/es/hooks/useResolutions.js +0 -62
  256. package/dist/es/index.d.ts +0 -67
  257. package/dist/es/index.js +0 -67
  258. package/dist/lib/components/AccordionBox/AccordionBox.css +0 -1
  259. package/dist/lib/components/AccordionBox/AccordionBox.d.ts +0 -49
  260. package/dist/lib/components/AccordionBox/AccordionBox.js +0 -51
  261. package/dist/lib/components/AudioPlayer/AudioPlayer.d.ts +0 -10
  262. package/dist/lib/components/AudioPlayer/AudioPlayer.js +0 -116
  263. package/dist/lib/components/AudioPlayer/AudioProgress.d.ts +0 -14
  264. package/dist/lib/components/AudioPlayer/AudioProgress.js +0 -102
  265. package/dist/lib/components/AudioPlayer/AudioRange.d.ts +0 -15
  266. package/dist/lib/components/AudioPlayer/AudioRange.js +0 -37
  267. package/dist/lib/components/AudioPlayer/AudioVolume.d.ts +0 -7
  268. package/dist/lib/components/AudioPlayer/AudioVolume.js +0 -83
  269. package/dist/lib/components/AudioPlayer/hooks/useTrackDuration.d.ts +0 -3
  270. package/dist/lib/components/AudioPlayer/hooks/useTrackDuration.js +0 -33
  271. package/dist/lib/components/AudioPlayer/style/AudioPlayer.css +0 -1
  272. package/dist/lib/components/AudioPlayer/style/AudioProgress.css +0 -1
  273. package/dist/lib/components/AudioPlayer/style/AudioRange.css +0 -1
  274. package/dist/lib/components/AudioPlayer/style/AudioVolume.css +0 -1
  275. package/dist/lib/components/AudioPlayer/timerFormatUtil.d.ts +0 -2
  276. package/dist/lib/components/AudioPlayer/timerFormatUtil.js +0 -31
  277. package/dist/lib/components/BannerBox/BannerBox.d.ts +0 -5
  278. package/dist/lib/components/BannerBox/BannerBox.js +0 -31
  279. package/dist/lib/components/BenefitsIcons/BenefitsIcons.d.ts +0 -30
  280. package/dist/lib/components/BenefitsIcons/BenefitsIcons.js +0 -113
  281. package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.d.ts +0 -10
  282. package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.js +0 -60
  283. package/dist/lib/components/BenefitsIcons/helpers.d.ts +0 -8
  284. package/dist/lib/components/BenefitsIcons/helpers.js +0 -108
  285. package/dist/lib/components/BenefitsIcons/style/BenefitsIcons.css +0 -1
  286. package/dist/lib/components/BenefitsIcons/style/BenefitsIconsTile.css +0 -1
  287. package/dist/lib/components/BenefitsIcons/types.d.ts +0 -54
  288. package/dist/lib/components/BenefitsIcons/types.js +0 -23
  289. package/dist/lib/components/BenefitsPictures/BenefitsPictures.d.ts +0 -27
  290. package/dist/lib/components/BenefitsPictures/BenefitsPictures.js +0 -120
  291. package/dist/lib/components/BenefitsPictures/BenfitsPictures.css +0 -1
  292. package/dist/lib/components/BenefitsPictures/helpers.d.ts +0 -11
  293. package/dist/lib/components/BenefitsPictures/helpers.js +0 -91
  294. package/dist/lib/components/BenefitsPictures/types.d.ts +0 -24
  295. package/dist/lib/components/BenefitsPictures/types.js +0 -5
  296. package/dist/lib/components/BlogBox/BlogBox.css +0 -1
  297. package/dist/lib/components/BlogBox/BlogBox.d.ts +0 -31
  298. package/dist/lib/components/BlogBox/BlogBox.js +0 -81
  299. package/dist/lib/components/BlogBox/components/BlogBoxTile.css +0 -1
  300. package/dist/lib/components/BlogBox/components/BlogBoxTile.d.ts +0 -13
  301. package/dist/lib/components/BlogBox/components/BlogBoxTile.js +0 -70
  302. package/dist/lib/components/BlogBox/types.d.ts +0 -37
  303. package/dist/lib/components/BlogBox/types.js +0 -5
  304. package/dist/lib/components/Breadcrumbs/Breadcrumbs.css +0 -1
  305. package/dist/lib/components/Breadcrumbs/Breadcrumbs.d.ts +0 -41
  306. package/dist/lib/components/Breadcrumbs/Breadcrumbs.js +0 -75
  307. package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.css +0 -1
  308. package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.d.ts +0 -29
  309. package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.js +0 -66
  310. package/dist/lib/components/ButtonBanner/ButtonBanner.css +0 -1
  311. package/dist/lib/components/ButtonBanner/ButtonBanner.d.ts +0 -64
  312. package/dist/lib/components/ButtonBanner/ButtonBanner.js +0 -105
  313. package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.css +0 -1
  314. package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.d.ts +0 -52
  315. package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.js +0 -74
  316. package/dist/lib/components/ButtonsBox/ButtonsBox.css +0 -1
  317. package/dist/lib/components/ButtonsBox/ButtonsBox.d.ts +0 -48
  318. package/dist/lib/components/ButtonsBox/ButtonsBox.js +0 -56
  319. package/dist/lib/components/Card/Card.css +0 -1
  320. package/dist/lib/components/Card/Card.d.ts +0 -55
  321. package/dist/lib/components/Card/Card.js +0 -238
  322. package/dist/lib/components/Card/types.d.ts +0 -86
  323. package/dist/lib/components/Card/types.js +0 -5
  324. package/dist/lib/components/CardsBox/CardsBox.d.ts +0 -14
  325. package/dist/lib/components/CardsBox/CardsBox.js +0 -36
  326. package/dist/lib/components/CardsBox/helpers.d.ts +0 -10
  327. package/dist/lib/components/CardsBox/helpers.js +0 -28
  328. package/dist/lib/components/CarouselBox/CarouselBox.d.ts +0 -10
  329. package/dist/lib/components/CarouselBox/CarouselBox.js +0 -55
  330. package/dist/lib/components/ChipsBox/ChipBox.d.ts +0 -5
  331. package/dist/lib/components/ChipsBox/ChipBox.js +0 -17
  332. package/dist/lib/components/ChipsBox/ChipsBox.css +0 -1
  333. package/dist/lib/components/ChipsBox/ChipsBox.d.ts +0 -16
  334. package/dist/lib/components/ChipsBox/ChipsBox.js +0 -85
  335. package/dist/lib/components/Container/Container.css +0 -1
  336. package/dist/lib/components/Container/Container.d.ts +0 -41
  337. package/dist/lib/components/Container/Container.js +0 -54
  338. package/dist/lib/components/DarkGradientCards/DarkGradientCards.css +0 -1
  339. package/dist/lib/components/DarkGradientCards/DarkGradientCards.d.ts +0 -33
  340. package/dist/lib/components/DarkGradientCards/DarkGradientCards.js +0 -75
  341. package/dist/lib/components/DarkGradientCards/components/DarkGradientCard.css +0 -1
  342. package/dist/lib/components/DarkGradientCards/components/DarkGradientCard.d.ts +0 -16
  343. package/dist/lib/components/DarkGradientCards/components/DarkGradientCard.js +0 -59
  344. package/dist/lib/components/DarkGradientCards/types.d.ts +0 -20
  345. package/dist/lib/components/DarkGradientCards/types.js +0 -5
  346. package/dist/lib/components/DownloadLinks/DownloadLink.css +0 -1
  347. package/dist/lib/components/DownloadLinks/DownloadLink.d.ts +0 -36
  348. package/dist/lib/components/DownloadLinks/DownloadLink.js +0 -70
  349. package/dist/lib/components/DownloadLinks/DownloadLinks.css +0 -1
  350. package/dist/lib/components/DownloadLinks/DownloadLinks.d.ts +0 -20
  351. package/dist/lib/components/DownloadLinks/DownloadLinks.js +0 -73
  352. package/dist/lib/components/FaqWrapper/FaqWrapper.d.ts +0 -6
  353. package/dist/lib/components/FaqWrapper/FaqWrapper.js +0 -18
  354. package/dist/lib/components/ImageBanner/ImageBanner.css +0 -1
  355. package/dist/lib/components/ImageBanner/ImageBanner.d.ts +0 -94
  356. package/dist/lib/components/ImageBanner/ImageBanner.js +0 -173
  357. package/dist/lib/components/InfoCards/InfoCards.css +0 -1
  358. package/dist/lib/components/InfoCards/InfoCards.d.ts +0 -24
  359. package/dist/lib/components/InfoCards/InfoCards.js +0 -53
  360. package/dist/lib/components/InfoCards/components/InfoCard/InfoCard.css +0 -1
  361. package/dist/lib/components/InfoCards/components/InfoCard/InfoCard.d.ts +0 -19
  362. package/dist/lib/components/InfoCards/components/InfoCard/InfoCard.js +0 -94
  363. package/dist/lib/components/InfoCards/types.d.ts +0 -31
  364. package/dist/lib/components/InfoCards/types.js +0 -5
  365. package/dist/lib/components/Instructions/Instructions.css +0 -1
  366. package/dist/lib/components/Instructions/Instructions.d.ts +0 -120
  367. package/dist/lib/components/Instructions/Instructions.js +0 -371
  368. package/dist/lib/components/Instructions/img/android-new.png +0 -0
  369. package/dist/lib/components/Instructions/img/android.png +0 -0
  370. package/dist/lib/components/Instructions/img/blackIphone.png +0 -0
  371. package/dist/lib/components/Instructions/img/iphone-new.png +0 -0
  372. package/dist/lib/components/Instructions/img/iphone12.png +0 -0
  373. package/dist/lib/components/Instructions/img/iphone15.png +0 -0
  374. package/dist/lib/components/Instructions/img/laptop-new.png +0 -0
  375. package/dist/lib/components/Instructions/img/laptop.png +0 -0
  376. package/dist/lib/components/Instructions/img/newIphone.png +0 -0
  377. package/dist/lib/components/Instructions/img/whiteIphone.png +0 -0
  378. package/dist/lib/components/NotificationBox/NotificationBox.css +0 -1
  379. package/dist/lib/components/NotificationBox/NotificationBox.d.ts +0 -15
  380. package/dist/lib/components/NotificationBox/NotificationBox.js +0 -44
  381. package/dist/lib/components/NumbersBox/NumbersBox.css +0 -1
  382. package/dist/lib/components/NumbersBox/NumbersBox.d.ts +0 -35
  383. package/dist/lib/components/NumbersBox/NumbersBox.js +0 -81
  384. package/dist/lib/components/NumbersBox/components/NumbersCard/NumbersCard.css +0 -1
  385. package/dist/lib/components/NumbersBox/components/NumbersCard/NumbersCard.d.ts +0 -16
  386. package/dist/lib/components/NumbersBox/components/NumbersCard/NumbersCard.js +0 -37
  387. package/dist/lib/components/NumbersBox/types.d.ts +0 -7
  388. package/dist/lib/components/NumbersBox/types.js +0 -5
  389. package/dist/lib/components/PageTitle/PageTitle.css +0 -1
  390. package/dist/lib/components/PageTitle/PageTitle.d.ts +0 -36
  391. package/dist/lib/components/PageTitle/PageTitle.js +0 -83
  392. package/dist/lib/components/Partners/Partners.css +0 -1
  393. package/dist/lib/components/Partners/Partners.d.ts +0 -37
  394. package/dist/lib/components/Partners/Partners.js +0 -120
  395. package/dist/lib/components/PictureBox/PictureBox.css +0 -1
  396. package/dist/lib/components/PictureBox/PictureBox.d.ts +0 -48
  397. package/dist/lib/components/PictureBox/PictureBox.js +0 -105
  398. package/dist/lib/components/PictureBox/img/mac-book-1x.png +0 -0
  399. package/dist/lib/components/PictureBox/img/mac-book-2x.png +0 -0
  400. package/dist/lib/components/PictureWithDescription/PictureWithDescription.css +0 -1
  401. package/dist/lib/components/PictureWithDescription/PictureWithDescription.d.ts +0 -32
  402. package/dist/lib/components/PictureWithDescription/PictureWithDescription.js +0 -56
  403. package/dist/lib/components/PromoBanner/PromoBanner.d.ts +0 -5
  404. package/dist/lib/components/PromoBanner/PromoBanner.js +0 -36
  405. package/dist/lib/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.css +0 -1
  406. package/dist/lib/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.d.ts +0 -82
  407. package/dist/lib/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.js +0 -151
  408. package/dist/lib/components/PromoCards/PromoCards.d.ts +0 -33
  409. package/dist/lib/components/PromoCards/PromoCards.js +0 -71
  410. package/dist/lib/components/PromoCards/components/PromoCard/PromoCard.css +0 -1
  411. package/dist/lib/components/PromoCards/components/PromoCard/PromoCard.d.ts +0 -25
  412. package/dist/lib/components/PromoCards/components/PromoCard/PromoCard.js +0 -184
  413. package/dist/lib/components/PromoCards/types.d.ts +0 -62
  414. package/dist/lib/components/PromoCards/types.js +0 -5
  415. package/dist/lib/components/Property/Property.d.ts +0 -5
  416. package/dist/lib/components/Property/Property.js +0 -19
  417. package/dist/lib/components/ServiceCards/ServiceCards.css +0 -1
  418. package/dist/lib/components/ServiceCards/ServiceCards.d.ts +0 -28
  419. package/dist/lib/components/ServiceCards/ServiceCards.js +0 -51
  420. package/dist/lib/components/ServiceCards/components/ServiceCard/ServiceCard.css +0 -1
  421. package/dist/lib/components/ServiceCards/components/ServiceCard/ServiceCard.d.ts +0 -19
  422. package/dist/lib/components/ServiceCards/components/ServiceCard/ServiceCard.js +0 -90
  423. package/dist/lib/components/ServiceCards/types.d.ts +0 -26
  424. package/dist/lib/components/ServiceCards/types.js +0 -5
  425. package/dist/lib/components/SidePictureCards/SidePictureCards.d.ts +0 -31
  426. package/dist/lib/components/SidePictureCards/SidePictureCards.js +0 -79
  427. package/dist/lib/components/SidePictureCards/components/SidePictureCard.css +0 -1
  428. package/dist/lib/components/SidePictureCards/components/SidePictureCard.d.ts +0 -18
  429. package/dist/lib/components/SidePictureCards/components/SidePictureCard.js +0 -100
  430. package/dist/lib/components/SidePictureCards/types.d.ts +0 -48
  431. package/dist/lib/components/SidePictureCards/types.js +0 -5
  432. package/dist/lib/components/Stepper/Stepper.css +0 -1
  433. package/dist/lib/components/Stepper/Stepper.d.ts +0 -52
  434. package/dist/lib/components/Stepper/Stepper.js +0 -168
  435. package/dist/lib/components/Stepper/StepperItem.css +0 -1
  436. package/dist/lib/components/Stepper/StepperItem.d.ts +0 -57
  437. package/dist/lib/components/Stepper/StepperItem.js +0 -108
  438. package/dist/lib/components/Stepper/img/separator-mobile.png +0 -0
  439. package/dist/lib/components/Stepper/img/separator-vertical.png +0 -0
  440. package/dist/lib/components/Stepper/img/separator.png +0 -0
  441. package/dist/lib/components/Steps/Steps.css +0 -1
  442. package/dist/lib/components/Steps/Steps.d.ts +0 -21
  443. package/dist/lib/components/Steps/Steps.js +0 -40
  444. package/dist/lib/components/Steps/StepsItem.css +0 -1
  445. package/dist/lib/components/Steps/StepsItem.d.ts +0 -10
  446. package/dist/lib/components/Steps/StepsItem.js +0 -29
  447. package/dist/lib/components/StoreBanner/StoreBanner.css +0 -1
  448. package/dist/lib/components/StoreBanner/StoreBanner.d.ts +0 -101
  449. package/dist/lib/components/StoreBanner/StoreBanner.js +0 -209
  450. package/dist/lib/components/StoreBanner/img/android.png +0 -0
  451. package/dist/lib/components/StoreBanner/img/black-iphone.png +0 -0
  452. package/dist/lib/components/StoreBanner/img/iphone12.png +0 -0
  453. package/dist/lib/components/StoreBanner/img/new-iphone.png +0 -0
  454. package/dist/lib/components/StoreBanner/img/white-iphone.png +0 -0
  455. package/dist/lib/components/StoreButton/StoreButton.css +0 -1
  456. package/dist/lib/components/StoreButton/StoreButton.d.ts +0 -36
  457. package/dist/lib/components/StoreButton/StoreButton.js +0 -69
  458. package/dist/lib/components/StoreButton/img/app-store-large.png +0 -0
  459. package/dist/lib/components/StoreButton/img/app-store.png +0 -0
  460. package/dist/lib/components/StoreButton/img/galaxy-store-large.png +0 -0
  461. package/dist/lib/components/StoreButton/img/galaxy-store.png +0 -0
  462. package/dist/lib/components/StoreButton/img/google-play-large.png +0 -0
  463. package/dist/lib/components/StoreButton/img/google-play.png +0 -0
  464. package/dist/lib/components/StoreButton/img/huawei-store-large.png +0 -0
  465. package/dist/lib/components/StoreButton/img/huawei-store.png +0 -0
  466. package/dist/lib/components/StoreButton/img/mi-store-large.png +0 -0
  467. package/dist/lib/components/StoreButton/img/mi-store.png +0 -0
  468. package/dist/lib/components/StoreButton/img/ru-store-large.png +0 -0
  469. package/dist/lib/components/StoreButton/img/ru-store.png +0 -0
  470. package/dist/lib/components/StoreButton/img/v-appstore-large.png +0 -0
  471. package/dist/lib/components/StoreButton/img/v-appstore.png +0 -0
  472. package/dist/lib/components/Table/Table.css +0 -1
  473. package/dist/lib/components/Table/Table.d.ts +0 -18
  474. package/dist/lib/components/Table/Table.js +0 -136
  475. package/dist/lib/components/Table/TableCell.d.ts +0 -6
  476. package/dist/lib/components/Table/TableCell.js +0 -15
  477. package/dist/lib/components/Table/TableRow.d.ts +0 -11
  478. package/dist/lib/components/Table/TableRow.js +0 -17
  479. package/dist/lib/components/TabsBox/TabBox.d.ts +0 -2
  480. package/dist/lib/components/TabsBox/TabBox.js +0 -8
  481. package/dist/lib/components/TabsBox/TabsBox.d.ts +0 -8
  482. package/dist/lib/components/TabsBox/TabsBox.js +0 -33
  483. package/dist/lib/components/TextBox/TextBox.css +0 -1
  484. package/dist/lib/components/TextBox/TextBox.d.ts +0 -17
  485. package/dist/lib/components/TextBox/TextBox.js +0 -51
  486. package/dist/lib/components/TextBox/TextBoxPicture.css +0 -1
  487. package/dist/lib/components/TextBox/TextBoxPicture.d.ts +0 -21
  488. package/dist/lib/components/TextBox/TextBoxPicture.js +0 -38
  489. package/dist/lib/components/TextWithIcon/TextWithIcon.css +0 -1
  490. package/dist/lib/components/TextWithIcon/TextWithIcon.d.ts +0 -21
  491. package/dist/lib/components/TextWithIcon/TextWithIcon.js +0 -50
  492. package/dist/lib/components/TextWithIcon/TextWithIconItem.css +0 -1
  493. package/dist/lib/components/TextWithIcon/TextWithIconItem.d.ts +0 -25
  494. package/dist/lib/components/TextWithIcon/TextWithIconItem.js +0 -49
  495. package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.css +0 -1
  496. package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +0 -22
  497. package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.js +0 -69
  498. package/dist/lib/components/VideoBanner/VideoBanner.css +0 -1
  499. package/dist/lib/components/VideoBanner/VideoBanner.d.ts +0 -112
  500. package/dist/lib/components/VideoBanner/VideoBanner.js +0 -253
  501. package/dist/lib/components/VideoBlock/VideoBlock.css +0 -1
  502. package/dist/lib/components/VideoBlock/VideoBlock.d.ts +0 -63
  503. package/dist/lib/components/VideoBlock/VideoBlock.js +0 -238
  504. package/dist/lib/constants/throttleTime.d.ts +0 -4
  505. package/dist/lib/constants/throttleTime.js +0 -9
  506. package/dist/lib/helpers/getColumnConfig.d.ts +0 -6
  507. package/dist/lib/helpers/getColumnConfig.js +0 -16
  508. package/dist/lib/helpers/setRelAttribute.d.ts +0 -3
  509. package/dist/lib/helpers/setRelAttribute.js +0 -15
  510. package/dist/lib/hooks/useResolutions.d.ts +0 -8
  511. package/dist/lib/hooks/useResolutions.js +0 -69
  512. package/dist/lib/index.d.ts +0 -67
  513. package/dist/lib/index.js +0 -475
@@ -1,105 +0,0 @@
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 _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
- require("core-js/modules/es.array.concat.js");
10
- var React = _interopRequireWildcard(require("react"));
11
- var _uiCore = require("@megafon/ui-core");
12
- var _uiHelpers = require("@megafon/ui-helpers");
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 cn = (0, _uiHelpers.cnCreate)('mfui-picture-box');
17
- var PictureBox = function PictureBox(_ref) {
18
- var image = _ref.image,
19
- button = _ref.button,
20
- extraButton = _ref.extraButton,
21
- _ref$pictureMask = _ref.pictureMask,
22
- pictureMask = _ref$pictureMask === void 0 ? 'none' : _ref$pictureMask,
23
- dataAttrs = _ref.dataAttrs,
24
- className = _ref.className,
25
- classes = _ref.classes,
26
- rootRef = _ref.rootRef,
27
- children = _ref.children;
28
- var imageSrc = image.src,
29
- imageSrc2x = image.src2x,
30
- _image$align = image.align,
31
- imageAlign = _image$align === void 0 ? 'left' : _image$align,
32
- _image$alt = image.alt,
33
- imageAlt = _image$alt === void 0 ? '' : _image$alt;
34
- var imageOrder = imageAlign === 'left' ? '0' : '1';
35
- var renderImg = function renderImg() {
36
- var srcSet = imageSrc2x ? "".concat(imageSrc, ", ").concat(imageSrc2x, " 2x") : undefined;
37
- var img = /*#__PURE__*/React.createElement("img", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.image), {
38
- className: cn('image'),
39
- srcSet: srcSet,
40
- src: imageSrc,
41
- alt: imageAlt
42
- }));
43
- if (pictureMask !== 'none') {
44
- return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.mask), {
45
- className: cn('mask')
46
- }), img);
47
- }
48
- return img;
49
- };
50
- var renderButtons = function renderButtons() {
51
- if (!button && !extraButton) {
52
- return null;
53
- }
54
- return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.buttonsWrapper), {
55
- className: cn('button-wrapper')
56
- }), !!button && /*#__PURE__*/React.createElement(_uiCore.Button, {
57
- href: button.href,
58
- target: button.target,
59
- rel: button.rel,
60
- dataAttrs: {
61
- root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.button
62
- },
63
- classes: {
64
- root: classes === null || classes === void 0 ? void 0 : classes.button
65
- },
66
- onClick: button.onClick
67
- }, button.title), !!extraButton && /*#__PURE__*/React.createElement(_uiCore.Button, {
68
- href: extraButton.href,
69
- target: extraButton.target,
70
- rel: extraButton.rel,
71
- type: "outline",
72
- dataAttrs: {
73
- root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.extraButton
74
- },
75
- classes: {
76
- root: classes === null || classes === void 0 ? void 0 : classes.extraButton
77
- },
78
- onClick: extraButton.onClick
79
- }, extraButton.title));
80
- };
81
- return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
82
- className: cn({
83
- align: imageAlign,
84
- mask: pictureMask
85
- }, [classes === null || classes === void 0 ? void 0 : classes.root, className])
86
- }, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
87
- ref: rootRef
88
- }), /*#__PURE__*/React.createElement(_uiCore.Grid, {
89
- guttersLeft: "medium"
90
- }, /*#__PURE__*/React.createElement(_uiCore.GridColumn, {
91
- all: "7",
92
- tablet: "12",
93
- mobile: "12",
94
- orderWide: imageOrder,
95
- orderDesktop: imageOrder
96
- }, renderImg()), /*#__PURE__*/React.createElement(_uiCore.GridColumn, {
97
- all: "5",
98
- tablet: "12",
99
- mobile: "12",
100
- flex: true
101
- }, /*#__PURE__*/React.createElement("div", {
102
- className: cn('content')
103
- }, children, renderButtons()))));
104
- };
105
- var _default = exports["default"] = PictureBox;
@@ -1 +0,0 @@
1
- h1,h2,h3,h4,h5{margin:0}@media screen and (min-width:1024px){.mfui-picture-with-description{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}}.mfui-picture-with-description__title{margin-bottom:24px}.mfui-picture-with-description__picture{-ms-flex-item-align:start;align-self:flex-start;overflow:hidden;text-align:center}@media screen and (max-width:1023px){.mfui-picture-with-description__picture{margin:0 auto 32px}}@media screen and (min-width:1024px){.mfui-picture-with-description__picture{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2;width:50%}.mfui-picture-with-description__picture_align_left{-webkit-box-ordinal-group:1;-ms-flex-order:0;margin-right:20px;order:0}}.mfui-picture-with-description__img{height:100%;max-width:550px;width:100%}.mfui-picture-with-description__content>:first-child{margin-top:0!important}.mfui-picture-with-description__content>:last-child{margin-bottom:0!important}@media screen and (min-width:1024px){.mfui-picture-with-description__articles{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1;width:50%}.mfui-picture-with-description__articles_text-top-align{-ms-flex-item-align:start;align-self:flex-start}.mfui-picture-with-description__articles_align_right{margin-right:20px}}
@@ -1,32 +0,0 @@
1
- import * as React from 'react';
2
- import './PictureWithDescription.scss';
3
- export declare const pictureAlignTypes: {
4
- readonly LEFT: "left";
5
- readonly RIGHT: "right";
6
- };
7
- type PictureAlignTypesType = (typeof pictureAlignTypes)[keyof typeof pictureAlignTypes];
8
- export interface IPictureWithDescriptionProps {
9
- /** Ссылка на корневой элемент */
10
- rootRef?: React.Ref<HTMLDivElement>;
11
- /** Дополнительный класс для корневого элемента */
12
- className?: string;
13
- /** Дополнительные классы для корневого и внутренних элементов */
14
- classes?: {
15
- root?: string;
16
- title?: string;
17
- };
18
- /** Заголовок */
19
- title?: string | React.ReactNode | React.ReactNode[];
20
- /** Url изображения */
21
- pictureUrl: string;
22
- /** Расположение изображения */
23
- pictureAlign?: PictureAlignTypesType;
24
- /** Значение тега alt для изображения */
25
- pictureAlt?: string;
26
- /** Выравнивание текста по верхнему краю */
27
- isTextTopAlign?: boolean;
28
- /** Дочерний элемент компонента */
29
- children?: React.ReactNode;
30
- }
31
- declare const PictureWithDescription: React.FC<IPictureWithDescriptionProps>;
32
- export default PictureWithDescription;
@@ -1,56 +0,0 @@
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.pictureAlignTypes = 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 pictureAlignTypes = exports.pictureAlignTypes = {
14
- LEFT: 'left',
15
- RIGHT: 'right'
16
- };
17
- var testIdPrefix = 'PictureWithDescription';
18
- var cn = (0, _uiHelpers.cnCreate)('mfui-picture-with-description');
19
- var PictureWithDescription = function PictureWithDescription(_ref) {
20
- var rootRef = _ref.rootRef,
21
- className = _ref.className,
22
- _ref$classes = _ref.classes,
23
- classes = _ref$classes === void 0 ? {} : _ref$classes,
24
- title = _ref.title,
25
- pictureUrl = _ref.pictureUrl,
26
- _ref$pictureAlign = _ref.pictureAlign,
27
- pictureAlign = _ref$pictureAlign === void 0 ? 'left' : _ref$pictureAlign,
28
- pictureAlt = _ref.pictureAlt,
29
- isTextTopAlign = _ref.isTextTopAlign,
30
- children = _ref.children;
31
- return /*#__PURE__*/React.createElement("div", {
32
- className: cn([className, classes.root]),
33
- ref: rootRef
34
- }, /*#__PURE__*/React.createElement("div", {
35
- className: cn('picture', {
36
- align: pictureAlign
37
- }),
38
- "data-testid": "".concat(testIdPrefix, "-picture")
39
- }, /*#__PURE__*/React.createElement("img", {
40
- className: cn('img'),
41
- src: pictureUrl,
42
- alt: pictureAlt
43
- })), /*#__PURE__*/React.createElement("div", {
44
- className: cn('articles', {
45
- align: pictureAlign,
46
- 'text-top-align': isTextTopAlign
47
- }),
48
- "data-testid": "".concat(testIdPrefix, "-articles")
49
- }, !!title && /*#__PURE__*/React.createElement(_uiCore.Header, {
50
- className: cn('title', [classes.title]),
51
- as: "h2"
52
- }, title), /*#__PURE__*/React.createElement("div", {
53
- className: cn('content')
54
- }, children)));
55
- };
56
- var _default = exports["default"] = PictureWithDescription;
@@ -1,5 +0,0 @@
1
- import * as React from 'react';
2
- import { Banner } from '@megafon/ui-core';
3
- export type PromoBannerPropsType = Omit<React.ComponentProps<typeof Banner>, 'autoHeight' | 'arrowTheme'>;
4
- declare const PromoBanner: React.FC<PromoBannerPropsType>;
5
- export default PromoBanner;
@@ -1,36 +0,0 @@
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 _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 cn = (0, _uiHelpers.cnCreate)('mfui-promo-banner');
26
- var PromoBanner = function PromoBanner(_a) {
27
- var children = _a.children,
28
- props = __rest(_a, ["children"]);
29
- return /*#__PURE__*/React.createElement("div", {
30
- className: cn()
31
- }, /*#__PURE__*/React.createElement(_uiCore.Banner, (0, _extends2["default"])({}, props, {
32
- autoHeight: true,
33
- arrowTheme: "white"
34
- }), children));
35
- };
36
- var _default = exports["default"] = PromoBanner;
@@ -1 +0,0 @@
1
- h1,h2,h3,h4,h5{margin:0}.mfui-promo-banner-slide{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;-webkit-box-orient:vertical;-webkit-box-direction:normal;border-radius:24px;-ms-flex-direction:column;flex-direction:column;min-height:100%;overflow:hidden}.mfui-promo-banner-slide_background_dark-violet{background-image:-webkit-gradient(linear,right top,left top,from(#ada6ba),color-stop(108%,#f6f2f9));background-image:linear-gradient(270deg,#ada6ba,#f6f2f9 108%)}.mfui-promo-banner-slide_background_light-violet{background:#f6f2f9}.mfui-promo-banner-slide_background_green-20{background:var(--brandGreen20)}.mfui-promo-banner-slide_background_purple-20{background:var(--brandPurple20)}.mfui-promo-banner-slide_background_night-20{background:var(--night20)}.mfui-promo-banner-slide_background_sky-20{background:var(--sky20)}.mfui-promo-banner-slide_background_flamingo-20{background:var(--flamingo20)}.mfui-promo-banner-slide_background_berry-20{background:var(--berry20)}.mfui-promo-banner-slide_background_gradient-purple-1{background:linear-gradient(92deg,#731982 12.66%,#aa5aff 78.46%)}.mfui-promo-banner-slide_background_gradient-purple-2{background:linear-gradient(93deg,#731982 33.39%,#e64de6 83.5%)}.mfui-promo-banner-slide_background_gradient-purple-3{background:linear-gradient(92deg,#731982 6.47%,#00d2ff 100.69%)}.mfui-promo-banner-slide_background_gradient-purple-4{background:linear-gradient(92deg,#731982 -.82%,#1b61ac 90.9%)}.mfui-promo-banner-slide__container{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;z-index:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;padding:32px 20px 0}@media screen and (min-width:768px) and (max-width:1023px){.mfui-promo-banner-slide__container{padding:38px 40px}}@media screen and (min-width:768px){.mfui-promo-banner-slide__container{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;min-height:308px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-promo-banner-slide__container{padding:34px 64px}}@media screen and (min-width:1280px){.mfui-promo-banner-slide__container{padding:42px 80px}}.mfui-promo-banner-slide__content{color:var(--stcBlack)}@media screen and (min-width:768px) and (max-width:1023px){.mfui-promo-banner-slide__content{max-width:350px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-promo-banner-slide__content{max-width:450px}}@media screen and (min-width:1280px){.mfui-promo-banner-slide__content{max-width:645px}}.mfui-promo-banner-slide__title{margin-bottom:12px}@media screen and (min-width:1280px){.mfui-promo-banner-slide__description{margin-right:82px}}.mfui-promo-banner-slide__buttons-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;z-index:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:16px;margin-top:24px}@media screen and (min-width:768px){.mfui-promo-banner-slide__buttons-wrapper{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;margin-top:32px}}.mfui-promo-banner-slide__picture{display:block;position:relative;z-index:0}@media screen and (max-width:767px){.mfui-promo-banner-slide__picture{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-top:12px}}@media screen and (min-width:768px){.mfui-promo-banner-slide__picture{height:100%;position:absolute;top:0}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-promo-banner-slide__picture{left:404px;width:523px}}@media screen and (min-width:1024px){.mfui-promo-banner-slide__picture{width:696px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-promo-banner-slide__picture{left:534px}}@media screen and (min-width:1280px){.mfui-promo-banner-slide__picture{left:744px}}.mfui-promo-banner-slide__image{height:100%;-o-object-fit:cover;object-fit:cover;vertical-align:top;width:100%}@media screen and (max-width:767px){.mfui-promo-banner-slide__image{max-height:180px;min-height:150px;width:auto}}@media screen and (min-width:768px){.mfui-promo-banner-slide__image{-o-object-fit:contain;object-fit:contain}}
@@ -1,82 +0,0 @@
1
- import * as React from 'react';
2
- import './PromoBannerSlide.scss';
3
- export declare const BackgroundColor: {
4
- readonly DARK_VIOLET: "dark-violet";
5
- readonly LIGHT_VIOLET: "light-violet";
6
- readonly GREEN_20: "green-20";
7
- readonly PURPLE_20: "purple-20";
8
- readonly NIGHT_20: "night-20";
9
- readonly FLAMINGO_20: "flamingo-20";
10
- readonly BERRY_20: "berry-20";
11
- readonly GRADIENT_PURPLE_1: "gradient-purple-1";
12
- readonly GRADIENT_PURPLE_2: "gradient-purple-2";
13
- readonly GRADIENT_PURPLE_3: "gradient-purple-3";
14
- readonly GRADIENT_PURPLE_4: "gradient-purple-4";
15
- };
16
- export type BackgroundColorType = (typeof BackgroundColor)[keyof typeof BackgroundColor];
17
- type ButtonType = {
18
- /** Заголовок */
19
- title?: string;
20
- /** Иконка */
21
- icon?: JSX.Element;
22
- /** Ссылка */
23
- href?: string;
24
- /** Target - свойство тега <a> */
25
- target?: '_self' | '_blank';
26
- /** Rel - атрибут тега <a> */
27
- rel?: string;
28
- /** Обработчик клика по кнопке */
29
- onClick?: (e: React.SyntheticEvent<EventTarget>) => void;
30
- };
31
- type ImageType = {
32
- /** Изображение на разрешении экрана 1024+ */
33
- desktopSrc: string;
34
- /** Изображение 2x на разрешении экрана 1024+ */
35
- desktopSrc2x?: string;
36
- /** Изображение на разрешении экрана 768-1023 */
37
- tabletSrc: string;
38
- /** Изображение 2x на разрешении экрана 768-1023 */
39
- tabletSrc2x?: string;
40
- /** Изображение на разрешении экрана 0-767 */
41
- mobileSrc: string;
42
- /** Изображение 2x на разрешении экрана 0-767 */
43
- mobileSrc2x?: string;
44
- /** Значение тега alt для изображения */
45
- alt?: string;
46
- };
47
- export interface IPromoBannerSlideProps {
48
- /** Дополнительный класс корневого элемента */
49
- className?: string;
50
- /** Заголовок */
51
- title: string | React.ReactNode | React.ReactNode[];
52
- /** Текст-описание */
53
- description: string | React.ReactNode | React.ReactNode[];
54
- /** Кнопка */
55
- button?: ButtonType;
56
- /** Дополнительная кнопка */
57
- extraButton?: ButtonType;
58
- /** Изображение */
59
- image: ImageType;
60
- /** Фон */
61
- background?: BackgroundColorType;
62
- /** Дополнительные классы для корневого и внутренних элементов */
63
- classes?: {
64
- root?: string;
65
- button?: string;
66
- extraButton?: string;
67
- };
68
- /** Дополнительные data атрибуты к внутренним элементам */
69
- dataAttrs?: {
70
- root?: Record<string, string>;
71
- image?: Record<string, string>;
72
- desktopImageSource?: Record<string, string>;
73
- tabletImageSource?: Record<string, string>;
74
- buttonsWrapper?: Record<string, string>;
75
- button?: Record<string, string>;
76
- extraButton?: Record<string, string>;
77
- };
78
- /** Ссылка на корневой элемент */
79
- rootRef?: React.Ref<HTMLDivElement>;
80
- }
81
- declare const PromoBannerSlide: React.FC<IPromoBannerSlideProps>;
82
- export default PromoBannerSlide;
@@ -1,151 +0,0 @@
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.BackgroundColor = 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.symbol.description.js");
11
- require("core-js/modules/es.array.concat.js");
12
- var React = _interopRequireWildcard(require("react"));
13
- var _uiCore = require("@megafon/ui-core");
14
- var _uiHelpers = require("@megafon/ui-helpers");
15
- 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); }
16
- 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; }
17
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
18
- var BackgroundColor = exports.BackgroundColor = {
19
- DARK_VIOLET: 'dark-violet',
20
- LIGHT_VIOLET: 'light-violet',
21
- GREEN_20: 'green-20',
22
- PURPLE_20: 'purple-20',
23
- NIGHT_20: 'night-20',
24
- FLAMINGO_20: 'flamingo-20',
25
- BERRY_20: 'berry-20',
26
- GRADIENT_PURPLE_1: 'gradient-purple-1',
27
- GRADIENT_PURPLE_2: 'gradient-purple-2',
28
- GRADIENT_PURPLE_3: 'gradient-purple-3',
29
- GRADIENT_PURPLE_4: 'gradient-purple-4'
30
- };
31
- var getThemeSettings = function getThemeSettings(bgColor) {
32
- switch (bgColor) {
33
- case BackgroundColor.DARK_VIOLET:
34
- case BackgroundColor.LIGHT_VIOLET:
35
- return {
36
- buttonColor: 'green',
37
- textColor: 'inherit'
38
- };
39
- case BackgroundColor.GRADIENT_PURPLE_1:
40
- case BackgroundColor.GRADIENT_PURPLE_2:
41
- case BackgroundColor.GRADIENT_PURPLE_3:
42
- case BackgroundColor.GRADIENT_PURPLE_4:
43
- return {
44
- buttonColor: 'white',
45
- textColor: 'white'
46
- };
47
- default:
48
- return {
49
- buttonColor: 'green',
50
- textColor: 'default'
51
- };
52
- }
53
- };
54
- var cn = (0, _uiHelpers.cnCreate)('mfui-promo-banner-slide');
55
- var PromoBannerSlide = function PromoBannerSlide(_ref) {
56
- var className = _ref.className,
57
- title = _ref.title,
58
- description = _ref.description,
59
- button = _ref.button,
60
- extraButton = _ref.extraButton,
61
- image = _ref.image,
62
- _ref$background = _ref.background,
63
- background = _ref$background === void 0 ? 'dark-violet' : _ref$background,
64
- classes = _ref.classes,
65
- dataAttrs = _ref.dataAttrs,
66
- rootRef = _ref.rootRef;
67
- var _getThemeSettings = getThemeSettings(background),
68
- buttonColor = _getThemeSettings.buttonColor,
69
- textColor = _getThemeSettings.textColor;
70
- var renderButtons = function renderButtons() {
71
- if (!button && !extraButton) {
72
- return null;
73
- }
74
- return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
75
- className: cn('buttons-wrapper')
76
- }, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.buttonsWrapper)), !!button && /*#__PURE__*/React.createElement(_uiCore.Button, {
77
- theme: buttonColor,
78
- href: button.href,
79
- target: button.target,
80
- icon: button.icon,
81
- rel: button.rel,
82
- classes: {
83
- root: classes === null || classes === void 0 ? void 0 : classes.button
84
- },
85
- dataAttrs: {
86
- root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.button
87
- },
88
- onClick: button.onClick
89
- }, button.title), !!extraButton && /*#__PURE__*/React.createElement(_uiCore.Button, {
90
- theme: buttonColor,
91
- href: extraButton.href,
92
- target: extraButton.target,
93
- icon: extraButton.icon,
94
- rel: extraButton.rel,
95
- type: "outline",
96
- classes: {
97
- root: classes === null || classes === void 0 ? void 0 : classes.extraButton
98
- },
99
- dataAttrs: {
100
- root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.extraButton
101
- },
102
- onClick: extraButton.onClick
103
- }, extraButton.title));
104
- };
105
- var renderImage = function renderImage() {
106
- var desktopSrc = image.desktopSrc,
107
- desktopSrc2x = image.desktopSrc2x,
108
- tabletSrc = image.tabletSrc,
109
- tabletSrc2x = image.tabletSrc2x,
110
- mobileSrc = image.mobileSrc,
111
- mobileSrc2x = image.mobileSrc2x,
112
- alt = image.alt;
113
- var desktopSrcSet = desktopSrc2x ? "".concat(desktopSrc, ", ").concat(desktopSrc2x, " 2x") : desktopSrc;
114
- var tabletSrcSet = tabletSrc2x ? "".concat(tabletSrc, ", ").concat(tabletSrc2x, " 2x") : tabletSrc;
115
- var mobileSrcSet = mobileSrc2x ? "".concat(mobileSrc, ", ").concat(mobileSrc2x, " 2x") : mobileSrc;
116
- return /*#__PURE__*/React.createElement("picture", {
117
- className: cn('picture')
118
- }, /*#__PURE__*/React.createElement("source", (0, _extends2["default"])({
119
- media: "(min-width: ".concat(_uiHelpers.breakpoints.DESKTOP_SMALL_START, "px)"),
120
- srcSet: desktopSrcSet
121
- }, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.desktopImageSource))), /*#__PURE__*/React.createElement("source", (0, _extends2["default"])({
122
- media: "(min-width: ".concat(_uiHelpers.breakpoints.MOBILE_BIG_START, "px)"),
123
- srcSet: tabletSrcSet
124
- }, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.tabletImageSource))), /*#__PURE__*/React.createElement("img", (0, _extends2["default"])({
125
- className: cn('image'),
126
- src: mobileSrc,
127
- srcSet: mobileSrcSet,
128
- alt: alt || ''
129
- }, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.image))));
130
- };
131
- return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
132
- className: cn({
133
- background: background
134
- }, [classes === null || classes === void 0 ? void 0 : classes.root, className])
135
- }, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
136
- ref: rootRef
137
- }), /*#__PURE__*/React.createElement("div", {
138
- className: cn('container')
139
- }, /*#__PURE__*/React.createElement("div", {
140
- className: cn('content')
141
- }, /*#__PURE__*/React.createElement(_uiCore.Header, {
142
- className: cn('title'),
143
- as: "h2",
144
- color: textColor
145
- }, typeof title === 'string' ? (0, _uiHelpers.convert)(title, _uiHelpers.titleConvertConfig) : title), /*#__PURE__*/React.createElement(_uiCore.Paragraph, {
146
- className: cn('description'),
147
- hasMargin: false,
148
- color: textColor
149
- }, typeof description === 'string' ? (0, _uiHelpers.convert)(description, _uiHelpers.textConvertConfig) : description)), renderButtons(), renderImage()));
150
- };
151
- var _default = exports["default"] = PromoBannerSlide;
@@ -1,33 +0,0 @@
1
- import * as React from 'react';
2
- import { Carousel } from '@megafon/ui-core';
3
- import { IPromoCardData, IPromoCardSettings } from './types';
4
- type CarouselProps = React.ComponentProps<typeof Carousel>;
5
- export interface IPromoCards extends IPromoCardSettings {
6
- /** Список карточек. Минимальное количество 2 карточки */
7
- items?: IPromoCardData[];
8
- /** Тема навигации для карусели */
9
- carouselNavTheme?: CarouselProps['navTheme'];
10
- /** Цвет градиента для карусели */
11
- carouselGradientColor?: CarouselProps['gradientColor'];
12
- /** Дополнительный css класс для корневого элемента */
13
- className?: string;
14
- /** Дополнительные css классы для корневого и внутренних элементов */
15
- classes?: {
16
- root?: string;
17
- card?: string;
18
- cardTitle?: string;
19
- };
20
- /** Дополнительные data атрибуты к внутренним элементам */
21
- dataAttrs?: {
22
- root?: Record<string, string>;
23
- card?: Record<string, string>;
24
- };
25
- /** Обработчик смены слайда карусели */
26
- onCarouselChange?: CarouselProps['onChange'];
27
- /** Ссылка на элемент */
28
- rootRef?: React.Ref<HTMLDivElement>;
29
- /** Дочерние элементы. Минимальное количество 2 элемента */
30
- children?: React.ReactNode;
31
- }
32
- declare const PromoCards: React.FC<IPromoCards>;
33
- export default PromoCards;
@@ -1,71 +0,0 @@
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 _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
- require("core-js/modules/es.array.is-array.js");
11
- require("core-js/modules/es.array.map.js");
12
- var React = _interopRequireWildcard(require("react"));
13
- var _uiCore = require("@megafon/ui-core");
14
- var _uiHelpers = require("@megafon/ui-helpers");
15
- var _PromoCard = _interopRequireDefault(require("./components/PromoCard/PromoCard"));
16
- 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); }
17
- 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; }
18
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
19
- var slidesSettings = (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])({}, _uiHelpers.breakpoints.MOBILE_SMALL_START, {
20
- slidesPerView: 1,
21
- spaceBetween: 16
22
- }), _uiHelpers.breakpoints.MOBILE_BIG_START, {
23
- slidesPerView: 2,
24
- spaceBetween: 20
25
- }), _uiHelpers.breakpoints.DESKTOP_SMALL_START, {
26
- slidesPerView: 3,
27
- spaceBetween: 20
28
- });
29
- var MIN_ITEMS_COUNT = 2;
30
- var cn = (0, _uiHelpers.cnCreate)('mfui-promo-cards');
31
- var PromoCards = function PromoCards(_ref) {
32
- var items = _ref.items,
33
- carouselNavTheme = _ref.carouselNavTheme,
34
- carouselGradientColor = _ref.carouselGradientColor,
35
- background = _ref.background,
36
- dataAttrs = _ref.dataAttrs,
37
- className = _ref.className,
38
- classes = _ref.classes,
39
- onCarouselChange = _ref.onCarouselChange,
40
- rootRef = _ref.rootRef,
41
- children = _ref.children;
42
- var itemsLength = (items === null || items === void 0 ? void 0 : items.length) || 0;
43
- var childrenLength = Array.isArray(children) ? children.length : 0;
44
- if ((childrenLength || itemsLength) < MIN_ITEMS_COUNT) {
45
- return null;
46
- }
47
- var renderItems = (items || []).map(function (item, i) {
48
- return /*#__PURE__*/React.createElement(_PromoCard["default"], (0, _extends2["default"])({}, item, {
49
- className: classes === null || classes === void 0 ? void 0 : classes.card,
50
- classes: {
51
- title: classes === null || classes === void 0 ? void 0 : classes.cardTitle
52
- },
53
- dataAttrs: {
54
- root: (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.card, i + 1)
55
- },
56
- background: background,
57
- key: i + item.title
58
- }));
59
- });
60
- return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
61
- className: cn([className, classes === null || classes === void 0 ? void 0 : classes.root]),
62
- ref: rootRef
63
- }), /*#__PURE__*/React.createElement(_uiCore.Carousel, {
64
- slidesSettings: slidesSettings,
65
- navTheme: carouselNavTheme,
66
- gradient: true,
67
- gradientColor: carouselGradientColor,
68
- onChange: onCarouselChange
69
- }, childrenLength ? children : renderItems));
70
- };
71
- var _default = exports["default"] = PromoCards;
@@ -1 +0,0 @@
1
- h1,h2,h3,h4,h5{margin:0}.mfui-promo-card{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;-webkit-box-orient:vertical;-webkit-box-direction:normal;background-color:var(--base);border-radius:24px;color:var(--content);cursor:pointer;-ms-flex-direction:column;flex-direction:column;min-height:100%;text-decoration:none;-webkit-transition:background-color,.3s,.3s,-webkit-box-shadow;transition:background-color,.3s,.3s,-webkit-box-shadow;transition:background-color,.3s,box-shadow,.3s;transition:background-color,.3s,box-shadow,.3s,-webkit-box-shadow}.mfui-promo-card_background_shadow{-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.mfui-promo-card_background_shadow:hover,.mfui-promo-card_background_white:hover{-webkit-box-shadow:0 8px 28px 0 rgba(0,0,0,.1);box-shadow:0 8px 28px 0 rgba(0,0,0,.1);text-decoration:none}.mfui-promo-card_background_gray{background-color:var(--spbSky0)}.mfui-promo-card_background_gray:hover{background-color:var(--spbSky1);text-decoration:none}.mfui-promo-card__ad-title{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--stcBlack20);border:none;border-radius:8px;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--stcWhite);cursor:pointer;font-family:inherit;font-size:12px;line-height:18px;margin:0;outline:none;padding:1px 8px 3px;position:absolute;right:16px;text-decoration:none;top:16px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mfui-promo-card__ad-tooltip{max-width:232px}.mfui-promo-card__ad-tooltip-content{font-size:12px;line-height:18px}.mfui-promo-card__image{border-radius:inherit;vertical-align:top;width:100%}.mfui-promo-card__content{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;padding:32px 24px}@media screen and (min-width:1280px){.mfui-promo-card__content{padding:32px}}.mfui-promo-card__badge{left:24px;position:absolute;top:0;translate:0 -50%}@media screen and (min-width:1280px){.mfui-promo-card__badge{left:32px}}.mfui-promo-card__logo{background-color:var(--base);border:4px solid var(--base);border-radius:50%;position:absolute;right:44px;top:0;-webkit-transition:border-color,.3s;transition:border-color,.3s;translate:0 -50%}@media screen and (min-width:1280px){.mfui-promo-card__logo{right:52px}}.mfui-promo-card__logo:after,.mfui-promo-card__logo:before{content:"";height:10px;position:absolute;top:50%;translate:0 -100%;width:10px}.mfui-promo-card__logo:before{background-image:radial-gradient(circle at 0 0,transparent 9px,var(--base) 10px);left:-12px}.mfui-promo-card__logo:after{background-image:radial-gradient(circle at 100% 0,transparent 9px,var(--base) 10px);right:-12px}.mfui-promo-card_background_gray .mfui-promo-card__logo{background-color:var(--spbSky0);border-color:var(--spbSky0)}.mfui-promo-card_background_gray .mfui-promo-card__logo:before{background-image:radial-gradient(circle at 0 0,transparent 9px,var(--spbSky0) 10px)}.mfui-promo-card_background_gray .mfui-promo-card__logo:after{background-image:radial-gradient(circle at 100% 0,transparent 9px,var(--spbSky0) 10px)}.mfui-promo-card_background_gray:hover .mfui-promo-card__logo{background-color:var(--spbSky1);border-color:var(--spbSky1)}.mfui-promo-card_background_gray:hover .mfui-promo-card__logo:before{background-image:radial-gradient(circle at 0 0,transparent 9px,var(--spbSky1) 10px)}.mfui-promo-card_background_gray:hover .mfui-promo-card__logo:after{background-image:radial-gradient(circle at 100% 0,transparent 9px,var(--spbSky1) 10px)}.mfui-promo-card__logo-img{border:1px solid var(--spbSky1);border-radius:inherit;height:56px;vertical-align:top;width:56px}@media screen and (min-width:768px){.mfui-promo-card__logo-img{height:64px;width:64px}}@media screen and (min-width:1280px){.mfui-promo-card__logo-img{height:72px;width:72px}}.mfui-promo-card__subtitle{margin-top:8px}.mfui-promo-card__list{font-size:15px;font-weight:400;line-height:24px;list-style:none;margin:8px 0 0;padding:0}.mfui-promo-card__list-item{margin:0;padding:0 0 0 20px;position:relative}.mfui-promo-card__list-item:before{background-color:var(--spbSky2);border-radius:50%;content:"";height:6px;left:1px;position:absolute;top:9px;width:6px}.mfui-promo-card__list-item:not(:last-child){margin-bottom:12px}.mfui-promo-card__list-item b{font-weight:500}.mfui-promo-card__footer{margin-top:auto;padding-top:16px}
@@ -1,25 +0,0 @@
1
- import * as React from 'react';
2
- import { IPromoCardData, IPromoCardSettings } from '../../types';
3
- import './PromoCard.scss';
4
- export interface IPromoCard extends IPromoCardData, IPromoCardSettings {
5
- /** Дополнительный css класс для корневого элемента */
6
- className?: string;
7
- /** Дополнительные css классы для корневого элемента */
8
- classes?: {
9
- root?: string;
10
- title?: string;
11
- };
12
- /** Дополнительные data атрибуты к корневому и внутренним элементам */
13
- dataAttrs?: {
14
- root?: Record<string, string>;
15
- image?: Record<string, string>;
16
- badge?: Record<string, string>;
17
- logo?: Record<string, string>;
18
- title?: Record<string, string>;
19
- subtitle?: Record<string, string>;
20
- list?: Record<string, string>;
21
- adTitle?: Record<string, string>;
22
- };
23
- }
24
- declare const PromoCard: React.FC<IPromoCard>;
25
- export default PromoCard;