@megafon/ui-shared 6.4.0 → 7.0.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 (335) hide show
  1. package/dist/es/components/AccordionBox/AccordionBox.css +1 -15
  2. package/dist/es/components/AccordionBox/AccordionBox.d.ts +2 -2
  3. package/dist/es/components/AccordionBox/AccordionBox.js +6 -49
  4. package/dist/es/components/AudioPlayer/AudioPlayer.d.ts +2 -2
  5. package/dist/es/components/AudioPlayer/AudioPlayer.js +11 -27
  6. package/dist/es/components/AudioPlayer/AudioProgress.d.ts +1 -1
  7. package/dist/es/components/AudioPlayer/AudioProgress.js +10 -22
  8. package/dist/es/components/AudioPlayer/AudioRange.d.ts +1 -1
  9. package/dist/es/components/AudioPlayer/AudioRange.js +8 -10
  10. package/dist/es/components/AudioPlayer/AudioVolume.d.ts +1 -1
  11. package/dist/es/components/AudioPlayer/AudioVolume.js +3 -12
  12. package/dist/es/components/AudioPlayer/hooks/useTrackDuration.js +4 -10
  13. package/dist/es/components/AudioPlayer/style/AudioPlayer.css +1 -58
  14. package/dist/es/components/AudioPlayer/style/AudioProgress.css +1 -35
  15. package/dist/es/components/AudioPlayer/style/AudioRange.css +1 -68
  16. package/dist/es/components/AudioPlayer/style/AudioVolume.css +1 -34
  17. package/dist/es/components/AudioPlayer/timerFormatUtil.js +1 -9
  18. package/dist/es/components/BannerBox/BannerBox.d.ts +1 -1
  19. package/dist/es/components/BannerBox/BannerBox.js +3 -12
  20. package/dist/es/components/BenefitsIcons/BenefitsIcons.d.ts +1 -1
  21. package/dist/es/components/BenefitsIcons/BenefitsIcons.js +23 -64
  22. package/dist/es/components/BenefitsIcons/BenefitsIconsTile.d.ts +1 -1
  23. package/dist/es/components/BenefitsIcons/BenefitsIconsTile.js +9 -36
  24. package/dist/es/components/BenefitsIcons/helpers.d.ts +3 -3
  25. package/dist/es/components/BenefitsIcons/helpers.js +6 -20
  26. package/dist/es/components/BenefitsIcons/style/BenefitsIcons.css +1 -38
  27. package/dist/es/components/BenefitsIcons/style/BenefitsIconsTile.css +1 -90
  28. package/dist/es/components/BenefitsIcons/types.d.ts +5 -6
  29. package/dist/es/components/BenefitsPictures/BenefitsPictures.d.ts +1 -1
  30. package/dist/es/components/BenefitsPictures/BenefitsPictures.js +19 -49
  31. package/dist/es/components/BenefitsPictures/BenfitsPictures.css +1 -43
  32. package/dist/es/components/BenefitsPictures/helpers.js +0 -14
  33. package/dist/es/components/BenefitsPictures/types.d.ts +3 -4
  34. package/dist/es/components/BenefitsPictures/types.js +1 -0
  35. package/dist/es/components/BlogBox/BlogBox.css +1 -92
  36. package/dist/es/components/BlogBox/BlogBox.d.ts +2 -2
  37. package/dist/es/components/BlogBox/BlogBox.js +10 -44
  38. package/dist/es/components/BlogBox/components/BlogBoxTile.css +1 -197
  39. package/dist/es/components/BlogBox/components/BlogBoxTile.d.ts +4 -4
  40. package/dist/es/components/BlogBox/components/BlogBoxTile.js +13 -20
  41. package/dist/es/components/BlogBox/types.d.ts +5 -5
  42. package/dist/es/components/BlogBox/types.js +1 -0
  43. package/dist/es/components/Breadcrumbs/Breadcrumbs.css +1 -43
  44. package/dist/es/components/Breadcrumbs/Breadcrumbs.d.ts +6 -6
  45. package/dist/es/components/Breadcrumbs/Breadcrumbs.js +10 -39
  46. package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.css +1 -16
  47. package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.d.ts +4 -4
  48. package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.js +11 -36
  49. package/dist/es/components/ButtonBanner/ButtonBanner.css +1 -122
  50. package/dist/es/components/ButtonBanner/ButtonBanner.d.ts +7 -7
  51. package/dist/es/components/ButtonBanner/ButtonBanner.js +22 -53
  52. package/dist/es/components/ButtonLinkBox/ButtonLinkBox.css +1 -19
  53. package/dist/es/components/ButtonLinkBox/ButtonLinkBox.d.ts +3 -3
  54. package/dist/es/components/ButtonLinkBox/ButtonLinkBox.js +20 -51
  55. package/dist/es/components/Card/Card.css +1 -354
  56. package/dist/es/components/Card/Card.d.ts +4 -4
  57. package/dist/es/components/Card/Card.js +25 -115
  58. package/dist/es/components/Card/types.d.ts +10 -11
  59. package/dist/es/components/Card/types.js +1 -0
  60. package/dist/es/components/CardsBox/CardsBox.js +3 -14
  61. package/dist/es/components/CardsBox/helpers.d.ts +2 -2
  62. package/dist/es/components/CardsBox/helpers.js +0 -4
  63. package/dist/es/components/CarouselBox/CarouselBox.d.ts +2 -2
  64. package/dist/es/components/CarouselBox/CarouselBox.js +11 -24
  65. package/dist/es/components/Container/Container.css +1 -4178
  66. package/dist/es/components/Container/Container.d.ts +7 -5
  67. package/dist/es/components/Container/Container.js +10 -25
  68. package/dist/es/components/DownloadLinks/DownloadLink.css +1 -37
  69. package/dist/es/components/DownloadLinks/DownloadLink.d.ts +1 -1
  70. package/dist/es/components/DownloadLinks/DownloadLink.js +13 -44
  71. package/dist/es/components/DownloadLinks/DownloadLinks.css +1 -36
  72. package/dist/es/components/DownloadLinks/DownloadLinks.d.ts +3 -3
  73. package/dist/es/components/DownloadLinks/DownloadLinks.js +2 -13
  74. package/dist/es/components/FaqWrapper/FaqWrapper.d.ts +5 -2
  75. package/dist/es/components/FaqWrapper/FaqWrapper.js +1 -3
  76. package/dist/es/components/ImageBanner/ImageBanner.css +1 -252
  77. package/dist/es/components/ImageBanner/ImageBanner.d.ts +8 -7
  78. package/dist/es/components/ImageBanner/ImageBanner.js +37 -88
  79. package/dist/es/components/InfoCards/InfoCards.css +1 -75
  80. package/dist/es/components/InfoCards/InfoCards.d.ts +1 -1
  81. package/dist/es/components/InfoCards/InfoCards.js +10 -37
  82. package/dist/es/components/InfoCards/components/InfoCard/InfoCard.css +1 -237
  83. package/dist/es/components/InfoCards/components/InfoCard/InfoCard.d.ts +1 -1
  84. package/dist/es/components/InfoCards/components/InfoCard/InfoCard.js +17 -46
  85. package/dist/es/components/InfoCards/types.js +1 -0
  86. package/dist/es/components/Instructions/Instructions.css +1 -827
  87. package/dist/es/components/Instructions/Instructions.d.ts +11 -11
  88. package/dist/es/components/Instructions/Instructions.js +56 -96
  89. package/dist/es/components/NotificationBox/NotificationBox.css +1 -0
  90. package/dist/es/components/NotificationBox/NotificationBox.d.ts +4 -4
  91. package/dist/es/components/NotificationBox/NotificationBox.js +5 -19
  92. package/dist/es/components/PageTitle/PageTitle.css +1 -80
  93. package/dist/es/components/PageTitle/PageTitle.d.ts +2 -2
  94. package/dist/es/components/PageTitle/PageTitle.js +12 -37
  95. package/dist/es/components/Partners/Partners.css +1 -53
  96. package/dist/es/components/Partners/Partners.d.ts +2 -2
  97. package/dist/es/components/Partners/Partners.js +17 -48
  98. package/dist/es/components/PictureWithDescription/PictureWithDescription.css +1 -80
  99. package/dist/es/components/PictureWithDescription/PictureWithDescription.d.ts +4 -2
  100. package/dist/es/components/PictureWithDescription/PictureWithDescription.js +10 -28
  101. package/dist/es/components/Property/Property.css +1 -156
  102. package/dist/es/components/Property/Property.d.ts +4 -4
  103. package/dist/es/components/Property/Property.js +37 -81
  104. package/dist/es/components/Property/PropertyDescription.css +1 -17
  105. package/dist/es/components/Property/PropertyDescription.d.ts +3 -3
  106. package/dist/es/components/Property/PropertyDescription.js +8 -28
  107. package/dist/es/components/Property/types.d.ts +7 -5
  108. package/dist/es/components/Property/types.js +1 -0
  109. package/dist/es/components/SidePictureCards/SidePictureCards.d.ts +1 -1
  110. package/dist/es/components/SidePictureCards/SidePictureCards.js +8 -41
  111. package/dist/es/components/SidePictureCards/components/SidePictureCard.css +1 -183
  112. package/dist/es/components/SidePictureCards/components/SidePictureCard.d.ts +2 -2
  113. package/dist/es/components/SidePictureCards/components/SidePictureCard.js +21 -23
  114. package/dist/es/components/SidePictureCards/types.d.ts +8 -8
  115. package/dist/es/components/SidePictureCards/types.js +1 -0
  116. package/dist/es/components/Steps/Steps.css +1 -41
  117. package/dist/es/components/Steps/Steps.d.ts +2 -1
  118. package/dist/es/components/Steps/Steps.js +4 -19
  119. package/dist/es/components/Steps/StepsItem.css +1 -42
  120. package/dist/es/components/Steps/StepsItem.d.ts +2 -2
  121. package/dist/es/components/Steps/StepsItem.js +2 -9
  122. package/dist/es/components/StoreBanner/StoreBanner.css +1 -346
  123. package/dist/es/components/StoreBanner/StoreBanner.d.ts +5 -5
  124. package/dist/es/components/StoreBanner/StoreBanner.js +41 -97
  125. package/dist/es/components/StoreButton/StoreButton.css +1 -327
  126. package/dist/es/components/StoreButton/StoreButton.d.ts +3 -3
  127. package/dist/es/components/StoreButton/StoreButton.js +13 -44
  128. package/dist/es/components/Table/Table.css +1 -157
  129. package/dist/es/components/Table/Table.d.ts +1 -1
  130. package/dist/es/components/Table/Table.js +31 -51
  131. package/dist/es/components/Table/TableCell.js +0 -6
  132. package/dist/es/components/Table/TableRow.js +1 -10
  133. package/dist/es/components/TabsBox/TabsBox.d.ts +1 -1
  134. package/dist/es/components/TabsBox/TabsBox.js +4 -13
  135. package/dist/es/components/TextBox/TextBox.css +1 -25
  136. package/dist/es/components/TextBox/TextBox.d.ts +2 -1
  137. package/dist/es/components/TextBox/TextBox.js +8 -23
  138. package/dist/es/components/TextBox/TextBoxPicture.css +1 -27
  139. package/dist/es/components/TextBox/TextBoxPicture.d.ts +2 -2
  140. package/dist/es/components/TextBox/TextBoxPicture.js +5 -14
  141. package/dist/es/components/TextWithIcon/TextWithIcon.css +1 -10
  142. package/dist/es/components/TextWithIcon/TextWithIcon.d.ts +1 -1
  143. package/dist/es/components/TextWithIcon/TextWithIcon.js +6 -24
  144. package/dist/es/components/TextWithIcon/TextWithIconItem.css +1 -38
  145. package/dist/es/components/TextWithIcon/TextWithIconItem.d.ts +1 -1
  146. package/dist/es/components/TextWithIcon/TextWithIconItem.js +8 -24
  147. package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.css +1 -31
  148. package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +1 -1
  149. package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.js +6 -23
  150. package/dist/es/components/VideoBanner/VideoBanner.css +1 -225
  151. package/dist/es/components/VideoBanner/VideoBanner.d.ts +7 -7
  152. package/dist/es/components/VideoBanner/VideoBanner.js +47 -110
  153. package/dist/es/components/VideoBlock/VideoBlock.css +1 -106
  154. package/dist/es/components/VideoBlock/VideoBlock.d.ts +4 -4
  155. package/dist/es/components/VideoBlock/VideoBlock.js +37 -77
  156. package/dist/es/helpers/getColumnConfig.d.ts +5 -1
  157. package/dist/es/helpers/setRelAttribute.d.ts +3 -1
  158. package/dist/es/helpers/setRelAttribute.js +0 -2
  159. package/dist/es/hooks/useResolutions.d.ts +1 -1
  160. package/dist/es/hooks/useResolutions.js +13 -21
  161. package/dist/lib/components/AccordionBox/AccordionBox.css +1 -15
  162. package/dist/lib/components/AccordionBox/AccordionBox.d.ts +2 -2
  163. package/dist/lib/components/AccordionBox/AccordionBox.js +11 -67
  164. package/dist/lib/components/AudioPlayer/AudioPlayer.d.ts +2 -2
  165. package/dist/lib/components/AudioPlayer/AudioPlayer.js +33 -57
  166. package/dist/lib/components/AudioPlayer/AudioProgress.d.ts +1 -1
  167. package/dist/lib/components/AudioPlayer/AudioProgress.js +13 -44
  168. package/dist/lib/components/AudioPlayer/AudioRange.d.ts +1 -1
  169. package/dist/lib/components/AudioPlayer/AudioRange.js +10 -18
  170. package/dist/lib/components/AudioPlayer/AudioVolume.d.ts +1 -1
  171. package/dist/lib/components/AudioPlayer/AudioVolume.js +5 -24
  172. package/dist/lib/components/AudioPlayer/hooks/useTrackDuration.js +6 -17
  173. package/dist/lib/components/AudioPlayer/style/AudioPlayer.css +1 -58
  174. package/dist/lib/components/AudioPlayer/style/AudioProgress.css +1 -35
  175. package/dist/lib/components/AudioPlayer/style/AudioRange.css +1 -68
  176. package/dist/lib/components/AudioPlayer/style/AudioVolume.css +1 -34
  177. package/dist/lib/components/AudioPlayer/timerFormatUtil.js +2 -13
  178. package/dist/lib/components/BannerBox/BannerBox.d.ts +1 -1
  179. package/dist/lib/components/BannerBox/BannerBox.js +7 -25
  180. package/dist/lib/components/BenefitsIcons/BenefitsIcons.d.ts +1 -1
  181. package/dist/lib/components/BenefitsIcons/BenefitsIcons.js +27 -87
  182. package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.d.ts +1 -1
  183. package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.js +14 -54
  184. package/dist/lib/components/BenefitsIcons/helpers.d.ts +3 -3
  185. package/dist/lib/components/BenefitsIcons/helpers.js +11 -38
  186. package/dist/lib/components/BenefitsIcons/style/BenefitsIcons.css +1 -38
  187. package/dist/lib/components/BenefitsIcons/style/BenefitsIconsTile.css +1 -90
  188. package/dist/lib/components/BenefitsIcons/types.d.ts +5 -6
  189. package/dist/lib/components/BenefitsIcons/types.js +5 -8
  190. package/dist/lib/components/BenefitsPictures/BenefitsPictures.d.ts +1 -1
  191. package/dist/lib/components/BenefitsPictures/BenefitsPictures.js +25 -72
  192. package/dist/lib/components/BenefitsPictures/BenfitsPictures.css +1 -43
  193. package/dist/lib/components/BenefitsPictures/helpers.js +10 -41
  194. package/dist/lib/components/BenefitsPictures/types.d.ts +3 -4
  195. package/dist/lib/components/BenefitsPictures/types.js +5 -1
  196. package/dist/lib/components/BlogBox/BlogBox.css +1 -92
  197. package/dist/lib/components/BlogBox/BlogBox.d.ts +2 -2
  198. package/dist/lib/components/BlogBox/BlogBox.js +21 -65
  199. package/dist/lib/components/BlogBox/components/BlogBoxTile.css +1 -197
  200. package/dist/lib/components/BlogBox/components/BlogBoxTile.d.ts +4 -4
  201. package/dist/lib/components/BlogBox/components/BlogBoxTile.js +27 -38
  202. package/dist/lib/components/BlogBox/types.d.ts +5 -5
  203. package/dist/lib/components/BlogBox/types.js +5 -1
  204. package/dist/lib/components/Breadcrumbs/Breadcrumbs.css +1 -43
  205. package/dist/lib/components/Breadcrumbs/Breadcrumbs.d.ts +6 -6
  206. package/dist/lib/components/Breadcrumbs/Breadcrumbs.js +19 -61
  207. package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.css +1 -16
  208. package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.d.ts +4 -4
  209. package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.js +23 -56
  210. package/dist/lib/components/ButtonBanner/ButtonBanner.css +1 -122
  211. package/dist/lib/components/ButtonBanner/ButtonBanner.d.ts +7 -7
  212. package/dist/lib/components/ButtonBanner/ButtonBanner.js +41 -90
  213. package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.css +1 -19
  214. package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.d.ts +3 -3
  215. package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.js +30 -73
  216. package/dist/lib/components/Card/Card.css +1 -354
  217. package/dist/lib/components/Card/Card.d.ts +4 -4
  218. package/dist/lib/components/Card/Card.js +68 -165
  219. package/dist/lib/components/Card/types.d.ts +10 -11
  220. package/dist/lib/components/Card/types.js +5 -1
  221. package/dist/lib/components/CardsBox/CardsBox.js +8 -32
  222. package/dist/lib/components/CardsBox/helpers.d.ts +2 -2
  223. package/dist/lib/components/CardsBox/helpers.js +2 -9
  224. package/dist/lib/components/CarouselBox/CarouselBox.d.ts +2 -2
  225. package/dist/lib/components/CarouselBox/CarouselBox.js +16 -40
  226. package/dist/lib/components/Container/Container.css +1 -4178
  227. package/dist/lib/components/Container/Container.d.ts +7 -5
  228. package/dist/lib/components/Container/Container.js +18 -40
  229. package/dist/lib/components/DownloadLinks/DownloadLink.css +1 -37
  230. package/dist/lib/components/DownloadLinks/DownloadLink.d.ts +1 -1
  231. package/dist/lib/components/DownloadLinks/DownloadLink.js +18 -61
  232. package/dist/lib/components/DownloadLinks/DownloadLinks.css +1 -36
  233. package/dist/lib/components/DownloadLinks/DownloadLinks.d.ts +3 -3
  234. package/dist/lib/components/DownloadLinks/DownloadLinks.js +9 -34
  235. package/dist/lib/components/FaqWrapper/FaqWrapper.d.ts +5 -2
  236. package/dist/lib/components/FaqWrapper/FaqWrapper.js +6 -9
  237. package/dist/lib/components/ImageBanner/ImageBanner.css +1 -252
  238. package/dist/lib/components/ImageBanner/ImageBanner.d.ts +8 -7
  239. package/dist/lib/components/ImageBanner/ImageBanner.js +62 -139
  240. package/dist/lib/components/InfoCards/InfoCards.css +1 -75
  241. package/dist/lib/components/InfoCards/InfoCards.d.ts +1 -1
  242. package/dist/lib/components/InfoCards/InfoCards.js +15 -55
  243. package/dist/lib/components/InfoCards/components/InfoCard/InfoCard.css +1 -237
  244. package/dist/lib/components/InfoCards/components/InfoCard/InfoCard.d.ts +1 -1
  245. package/dist/lib/components/InfoCards/components/InfoCard/InfoCard.js +22 -63
  246. package/dist/lib/components/InfoCards/types.js +5 -1
  247. package/dist/lib/components/Instructions/Instructions.css +1 -827
  248. package/dist/lib/components/Instructions/Instructions.d.ts +11 -11
  249. package/dist/lib/components/Instructions/Instructions.js +121 -191
  250. package/dist/lib/components/NotificationBox/NotificationBox.css +1 -0
  251. package/dist/lib/components/NotificationBox/NotificationBox.d.ts +4 -4
  252. package/dist/lib/components/NotificationBox/NotificationBox.js +10 -38
  253. package/dist/lib/components/PageTitle/PageTitle.css +1 -80
  254. package/dist/lib/components/PageTitle/PageTitle.d.ts +2 -2
  255. package/dist/lib/components/PageTitle/PageTitle.js +16 -53
  256. package/dist/lib/components/Partners/Partners.css +1 -53
  257. package/dist/lib/components/Partners/Partners.d.ts +2 -2
  258. package/dist/lib/components/Partners/Partners.js +22 -66
  259. package/dist/lib/components/PictureWithDescription/PictureWithDescription.css +1 -80
  260. package/dist/lib/components/PictureWithDescription/PictureWithDescription.d.ts +4 -2
  261. package/dist/lib/components/PictureWithDescription/PictureWithDescription.js +16 -46
  262. package/dist/lib/components/Property/Property.css +1 -156
  263. package/dist/lib/components/Property/Property.d.ts +4 -4
  264. package/dist/lib/components/Property/Property.js +61 -121
  265. package/dist/lib/components/Property/PropertyDescription.css +1 -17
  266. package/dist/lib/components/Property/PropertyDescription.d.ts +3 -3
  267. package/dist/lib/components/Property/PropertyDescription.js +16 -47
  268. package/dist/lib/components/Property/types.d.ts +7 -5
  269. package/dist/lib/components/Property/types.js +5 -1
  270. package/dist/lib/components/SidePictureCards/SidePictureCards.d.ts +1 -1
  271. package/dist/lib/components/SidePictureCards/SidePictureCards.js +17 -58
  272. package/dist/lib/components/SidePictureCards/components/SidePictureCard.css +1 -183
  273. package/dist/lib/components/SidePictureCards/components/SidePictureCard.d.ts +2 -2
  274. package/dist/lib/components/SidePictureCards/components/SidePictureCard.js +23 -36
  275. package/dist/lib/components/SidePictureCards/types.d.ts +8 -8
  276. package/dist/lib/components/SidePictureCards/types.js +5 -1
  277. package/dist/lib/components/Steps/Steps.css +1 -41
  278. package/dist/lib/components/Steps/Steps.d.ts +2 -1
  279. package/dist/lib/components/Steps/Steps.js +8 -35
  280. package/dist/lib/components/Steps/StepsItem.css +1 -42
  281. package/dist/lib/components/Steps/StepsItem.d.ts +2 -2
  282. package/dist/lib/components/Steps/StepsItem.js +11 -23
  283. package/dist/lib/components/StoreBanner/StoreBanner.css +1 -346
  284. package/dist/lib/components/StoreBanner/StoreBanner.d.ts +5 -5
  285. package/dist/lib/components/StoreBanner/StoreBanner.js +48 -119
  286. package/dist/lib/components/StoreButton/StoreButton.css +1 -327
  287. package/dist/lib/components/StoreButton/StoreButton.d.ts +3 -3
  288. package/dist/lib/components/StoreButton/StoreButton.js +18 -64
  289. package/dist/lib/components/Table/Table.css +1 -157
  290. package/dist/lib/components/Table/Table.d.ts +1 -1
  291. package/dist/lib/components/Table/Table.js +36 -69
  292. package/dist/lib/components/Table/TableCell.js +4 -16
  293. package/dist/lib/components/Table/TableRow.js +5 -19
  294. package/dist/lib/components/TabsBox/TabBox.js +1 -4
  295. package/dist/lib/components/TabsBox/TabsBox.d.ts +1 -1
  296. package/dist/lib/components/TabsBox/TabsBox.js +8 -26
  297. package/dist/lib/components/TextBox/TextBox.css +1 -25
  298. package/dist/lib/components/TextBox/TextBox.d.ts +2 -1
  299. package/dist/lib/components/TextBox/TextBox.js +12 -36
  300. package/dist/lib/components/TextBox/TextBoxPicture.css +1 -27
  301. package/dist/lib/components/TextBox/TextBoxPicture.d.ts +2 -2
  302. package/dist/lib/components/TextBox/TextBoxPicture.js +11 -29
  303. package/dist/lib/components/TextWithIcon/TextWithIcon.css +1 -10
  304. package/dist/lib/components/TextWithIcon/TextWithIcon.d.ts +1 -1
  305. package/dist/lib/components/TextWithIcon/TextWithIcon.js +11 -40
  306. package/dist/lib/components/TextWithIcon/TextWithIconItem.css +1 -38
  307. package/dist/lib/components/TextWithIcon/TextWithIconItem.d.ts +1 -1
  308. package/dist/lib/components/TextWithIcon/TextWithIconItem.js +13 -41
  309. package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.css +1 -31
  310. package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +1 -1
  311. package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.js +11 -41
  312. package/dist/lib/components/VideoBanner/VideoBanner.css +1 -225
  313. package/dist/lib/components/VideoBanner/VideoBanner.d.ts +7 -7
  314. package/dist/lib/components/VideoBanner/VideoBanner.js +84 -177
  315. package/dist/lib/components/VideoBlock/VideoBlock.css +1 -106
  316. package/dist/lib/components/VideoBlock/VideoBlock.d.ts +4 -4
  317. package/dist/lib/components/VideoBlock/VideoBlock.js +59 -115
  318. package/dist/lib/constants/throttleTime.js +2 -3
  319. package/dist/lib/helpers/getColumnConfig.d.ts +5 -1
  320. package/dist/lib/helpers/getColumnConfig.js +2 -5
  321. package/dist/lib/helpers/setRelAttribute.d.ts +3 -1
  322. package/dist/lib/helpers/setRelAttribute.js +2 -7
  323. package/dist/lib/hooks/useResolutions.d.ts +1 -1
  324. package/dist/lib/hooks/useResolutions.js +15 -31
  325. package/dist/lib/index.js +11 -64
  326. package/package.json +87 -92
  327. package/CHANGELOG.md +0 -4104
  328. package/dist/es/components/NotificationBox/style/NotificationBox.css +0 -28
  329. package/dist/es/components/StoreBanner/doc/img/android-screen.png +0 -0
  330. package/dist/es/components/StoreBanner/doc/img/qr-code.png +0 -0
  331. package/dist/es/components/StoreBanner/doc/img/screen.png +0 -0
  332. package/dist/lib/components/NotificationBox/style/NotificationBox.css +0 -28
  333. package/dist/lib/components/StoreBanner/doc/img/android-screen.png +0 -0
  334. package/dist/lib/components/StoreBanner/doc/img/qr-code.png +0 -0
  335. package/dist/lib/components/StoreBanner/doc/img/screen.png +0 -0
@@ -1,6 +1,6 @@
1
- import React, { Ref } from 'react';
1
+ import * as React from 'react';
2
2
  import SwiperCore from 'swiper';
3
- import './Instructions.less';
3
+ import './Instructions.scss';
4
4
  export declare const pictureAlignTypes: {
5
5
  readonly LEFT: "left";
6
6
  readonly RIGHT: "right";
@@ -34,13 +34,13 @@ export declare const elementOrderTypes: {
34
34
  readonly DEFAULT: "default";
35
35
  readonly REVERSED: "reversed";
36
36
  };
37
- declare type PictureAlignTypesType = typeof pictureAlignTypes[keyof typeof pictureAlignTypes];
38
- declare type PictureVerticalAlignTypesType = typeof pictureVerticalAlignTypes[keyof typeof pictureVerticalAlignTypes];
39
- declare type PictureMaskTypesType = typeof pictureMaskTypes[keyof typeof pictureMaskTypes];
40
- declare type PictureBackgroundColorsType = typeof pictureBackgroundColorTypes[keyof typeof pictureBackgroundColorTypes];
41
- declare type ArrowThemeType = typeof arrowTheme[keyof typeof arrowTheme];
42
- declare type ElementOrderType = typeof elementOrderTypes[keyof typeof elementOrderTypes];
43
- export declare type InstructionItemType = {
37
+ type PictureAlignTypesType = (typeof pictureAlignTypes)[keyof typeof pictureAlignTypes];
38
+ type PictureVerticalAlignTypesType = (typeof pictureVerticalAlignTypes)[keyof typeof pictureVerticalAlignTypes];
39
+ type PictureMaskTypesType = (typeof pictureMaskTypes)[keyof typeof pictureMaskTypes];
40
+ type PictureBackgroundColorsType = (typeof pictureBackgroundColorTypes)[keyof typeof pictureBackgroundColorTypes];
41
+ type ArrowThemeType = (typeof arrowTheme)[keyof typeof arrowTheme];
42
+ type ElementOrderType = (typeof elementOrderTypes)[keyof typeof elementOrderTypes];
43
+ export type InstructionItemType = {
44
44
  title: string | React.ReactNode | React.ReactNode[];
45
45
  mediaUrl: string;
46
46
  isVideo: boolean;
@@ -62,7 +62,7 @@ export interface IInstructionsProps {
62
62
  arrowNext?: Record<string, string>;
63
63
  };
64
64
  /** Ссылка на корневой элемент */
65
- rootRef?: Ref<HTMLDivElement>;
65
+ rootRef?: React.Ref<HTMLDivElement>;
66
66
  /** Дополнительные классы для внутренних элементов */
67
67
  classes?: {
68
68
  instructionItem?: string;
@@ -101,5 +101,5 @@ export interface IInstructionsProps {
101
101
  /** Ref на swiper */
102
102
  getSwiper?: (instance: SwiperCore) => void;
103
103
  }
104
- declare const Instructions: React.FC<IInstructionsProps>;
104
+ declare const Instructions: React.FC<React.PropsWithChildren<IInstructionsProps>>;
105
105
  export default Instructions;
@@ -1,16 +1,23 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import "core-js/modules/es.array.map.js";
4
-
5
4
  /* eslint-disable jsx-a11y/no-static-element-interactions */
6
-
7
5
  /* eslint-disable jsx-a11y/click-events-have-key-events */
8
- import React from 'react';
6
+ import * as React from 'react';
9
7
  import { Grid, GridColumn, Header, NavArrow, Paragraph, Tile } from '@megafon/ui-core';
10
8
  import { cnCreate, filterDataAttrs, titleConvertConfig, convert, textConvertConfig } from '@megafon/ui-helpers';
11
- import PropTypes from 'prop-types';
12
- import { Swiper, SwiperSlide } from 'swiper/react';
13
9
  import "./Instructions.css";
10
+ var Swiper = null;
11
+ var SwiperSlide = null;
12
+ try {
13
+ // eslint-disable-next-line global-require, @typescript-eslint/no-var-requires
14
+ var SwiperAll = require('swiper/react');
15
+ Swiper = SwiperAll.Swiper;
16
+ SwiperSlide = SwiperAll.SwiperSlide;
17
+ } catch (e) {
18
+ // eslint-disable-next-line no-console
19
+ console.warn("\n WARNING: megafon/ui-share is using the latest version of swiper. \n For more information about server-side rendering\n please check the Instructions component documentation at:\n https://ui.megafon.ru/components/instructions\n ");
20
+ }
14
21
  export var pictureAlignTypes = {
15
22
  LEFT: 'left',
16
23
  RIGHT: 'right'
@@ -47,52 +54,48 @@ export var elementOrderTypes = {
47
54
  var testIdPrefix = 'Instructions';
48
55
  var cn = cnCreate('mfui-instructions');
49
56
  var swiperSlideCn = cn('slide');
50
-
51
57
  var Instructions = function Instructions(_ref) {
52
58
  var dataAttrs = _ref.dataAttrs,
53
- rootRef = _ref.rootRef,
54
- _ref$classes = _ref.classes;
55
- _ref$classes = _ref$classes === void 0 ? {} : _ref$classes;
56
- var instructionItem = _ref$classes.instructionItem,
57
- desktopInstructionItem = _ref$classes.desktopInstructionItem,
58
- mobileInstructionItem = _ref$classes.mobileInstructionItem,
59
- activeInstructionItem = _ref$classes.activeInstructionItem,
60
- desktopItemTitle = _ref$classes.desktopItemTitle,
61
- mobileItemTitle = _ref$classes.mobileItemTitle,
62
- instructionItemImg = _ref$classes.instructionItemImg,
63
- additionalText = _ref$classes.additionalText,
64
- arrowPrev = _ref$classes.arrowPrev,
65
- arrowNext = _ref$classes.arrowNext,
66
- _ref$title = _ref.title,
67
- title = _ref$title === void 0 ? '' : _ref$title,
68
- instructionItems = _ref.instructionItems,
69
- _ref$pictureAlign = _ref.pictureAlign,
70
- pictureAlign = _ref$pictureAlign === void 0 ? 'left' : _ref$pictureAlign,
71
- _ref$pictureVerticalA = _ref.pictureVerticalAlign,
72
- pictureVerticalAlign = _ref$pictureVerticalA === void 0 ? 'center' : _ref$pictureVerticalA,
73
- _ref$pictureMask = _ref.pictureMask,
74
- pictureMask = _ref$pictureMask === void 0 ? 'none' : _ref$pictureMask,
75
- pictureBackgroundColor = _ref.pictureBackgroundColor,
76
- getSwiper = _ref.getSwiper,
77
- text = _ref.additionalText,
78
- showArrows = _ref.showArrows,
79
- _ref$arrowsTheme = _ref.arrowsTheme,
80
- arrowsTheme = _ref$arrowsTheme === void 0 ? arrowTheme.DARK : _ref$arrowsTheme,
81
- _ref$elementOrder = _ref.elementOrder,
82
- elementOrder = _ref$elementOrder === void 0 ? 'default' : _ref$elementOrder,
83
- showMobileNumeration = _ref.showMobileNumeration,
84
- children = _ref.children;
85
-
59
+ rootRef = _ref.rootRef,
60
+ _ref$classes = _ref.classes,
61
+ _ref$classes2 = _ref$classes === void 0 ? {} : _ref$classes,
62
+ instructionItem = _ref$classes2.instructionItem,
63
+ desktopInstructionItem = _ref$classes2.desktopInstructionItem,
64
+ mobileInstructionItem = _ref$classes2.mobileInstructionItem,
65
+ activeInstructionItem = _ref$classes2.activeInstructionItem,
66
+ desktopItemTitle = _ref$classes2.desktopItemTitle,
67
+ mobileItemTitle = _ref$classes2.mobileItemTitle,
68
+ instructionItemImg = _ref$classes2.instructionItemImg,
69
+ additionalText = _ref$classes2.additionalText,
70
+ arrowPrev = _ref$classes2.arrowPrev,
71
+ arrowNext = _ref$classes2.arrowNext,
72
+ _ref$title = _ref.title,
73
+ title = _ref$title === void 0 ? '' : _ref$title,
74
+ instructionItems = _ref.instructionItems,
75
+ _ref$pictureAlign = _ref.pictureAlign,
76
+ pictureAlign = _ref$pictureAlign === void 0 ? 'left' : _ref$pictureAlign,
77
+ _ref$pictureVerticalA = _ref.pictureVerticalAlign,
78
+ pictureVerticalAlign = _ref$pictureVerticalA === void 0 ? 'center' : _ref$pictureVerticalA,
79
+ _ref$pictureMask = _ref.pictureMask,
80
+ pictureMask = _ref$pictureMask === void 0 ? 'none' : _ref$pictureMask,
81
+ pictureBackgroundColor = _ref.pictureBackgroundColor,
82
+ getSwiper = _ref.getSwiper,
83
+ text = _ref.additionalText,
84
+ showArrows = _ref.showArrows,
85
+ _ref$arrowsTheme = _ref.arrowsTheme,
86
+ arrowsTheme = _ref$arrowsTheme === void 0 ? arrowTheme.DARK : _ref$arrowsTheme,
87
+ _ref$elementOrder = _ref.elementOrder,
88
+ elementOrder = _ref$elementOrder === void 0 ? 'default' : _ref$elementOrder,
89
+ showMobileNumeration = _ref.showMobileNumeration,
90
+ children = _ref.children;
86
91
  var _React$useState = React.useState(),
87
- _React$useState2 = _slicedToArray(_React$useState, 2),
88
- swiperInstance = _React$useState2[0],
89
- setSwiperInstance = _React$useState2[1];
90
-
92
+ _React$useState2 = _slicedToArray(_React$useState, 2),
93
+ swiperInstance = _React$useState2[0],
94
+ setSwiperInstance = _React$useState2[1];
91
95
  var _React$useState3 = React.useState(0),
92
- _React$useState4 = _slicedToArray(_React$useState3, 2),
93
- slideIndex = _React$useState4[0],
94
- setSlideIndex = _React$useState4[1];
95
-
96
+ _React$useState4 = _slicedToArray(_React$useState3, 2),
97
+ slideIndex = _React$useState4[0],
98
+ setSlideIndex = _React$useState4[1];
96
99
  var isMobileReversed = elementOrder === 'reversed';
97
100
  var getSwiperInstance = React.useCallback(function (swiper) {
98
101
  setSwiperInstance(swiper);
@@ -102,7 +105,6 @@ var Instructions = function Instructions(_ref) {
102
105
  if (articleIndex !== activeIndex) {
103
106
  return undefined;
104
107
  }
105
-
106
108
  return activeInstructionItem;
107
109
  }, [activeInstructionItem]);
108
110
  var handleArticleClick = React.useCallback(function (ind) {
@@ -119,14 +121,12 @@ var Instructions = function Instructions(_ref) {
119
121
  if (!swiperInstance) {
120
122
  return;
121
123
  }
122
-
123
124
  swiperInstance.slidePrev();
124
125
  }, [swiperInstance]);
125
126
  var handleNextClick = React.useCallback(function () {
126
127
  if (!swiperInstance) {
127
128
  return;
128
129
  }
129
-
130
130
  swiperInstance.slideNext();
131
131
  }, [swiperInstance]);
132
132
  var renderVideo = React.useCallback(function (mediaUrl, index) {
@@ -160,6 +160,9 @@ var Instructions = function Instructions(_ref) {
160
160
  }));
161
161
  }, [instructionItems, dataAttrs, slideIndex, instructionItem, mobileInstructionItem, getActiveCustomClass, handleArticleClick, isMobileReversed]);
162
162
  var renderSlider = React.useCallback(function () {
163
+ if (!Swiper || !SwiperSlide) {
164
+ return /*#__PURE__*/React.createElement(React.Fragment, null);
165
+ }
163
166
  return /*#__PURE__*/React.createElement(Swiper, {
164
167
  noSwiping: false,
165
168
  onSwiper: getSwiperInstance,
@@ -168,8 +171,8 @@ var Instructions = function Instructions(_ref) {
168
171
  className: cn('swiper')
169
172
  }, instructionItems.map(function (_ref3, i) {
170
173
  var mediaUrl = _ref3.mediaUrl,
171
- isVideo = _ref3.isVideo,
172
- imageAlt = _ref3.imageAlt;
174
+ isVideo = _ref3.isVideo,
175
+ imageAlt = _ref3.imageAlt;
173
176
  return /*#__PURE__*/React.createElement(SwiperSlide, {
174
177
  className: swiperSlideCn,
175
178
  key: i + mediaUrl
@@ -192,7 +195,7 @@ var Instructions = function Instructions(_ref) {
192
195
  var renderQrCode = React.useCallback(function () {
193
196
  return /*#__PURE__*/React.createElement(React.Fragment, null, instructionItems.map(function (_ref4, i) {
194
197
  var qrCode = _ref4.qrCode,
195
- qrCodeText = _ref4.qrCodeText;
198
+ qrCodeText = _ref4.qrCodeText;
196
199
  return slideIndex === i && !!qrCode && /*#__PURE__*/React.createElement(Tile, {
197
200
  className: cn('qr-code'),
198
201
  radius: "rounded",
@@ -217,7 +220,6 @@ var Instructions = function Instructions(_ref) {
217
220
  if (pictureMask === pictureMaskTypes.NONE) {
218
221
  return renderSlider();
219
222
  }
220
-
221
223
  return /*#__PURE__*/React.createElement("div", {
222
224
  className: cn('img-wrapper'),
223
225
  "data-testid": "".concat(testIdPrefix, "-img-wrapper")
@@ -328,46 +330,4 @@ var Instructions = function Instructions(_ref) {
328
330
  })
329
331
  }, !!title && renderTitle('desktop'), !isMobileReversed && renderMobileArticles(), renderDesktopArticles(), text && renderText(), children)))));
330
332
  };
331
-
332
- Instructions.propTypes = {
333
- dataAttrs: PropTypes.shape({
334
- root: PropTypes.objectOf(PropTypes.string.isRequired),
335
- item: PropTypes.objectOf(PropTypes.string.isRequired),
336
- image: PropTypes.objectOf(PropTypes.string.isRequired),
337
- mobileItemText: PropTypes.objectOf(PropTypes.string.isRequired),
338
- wrapper: PropTypes.objectOf(PropTypes.string.isRequired),
339
- arrowPrev: PropTypes.objectOf(PropTypes.string.isRequired),
340
- arrowNext: PropTypes.objectOf(PropTypes.string.isRequired)
341
- }),
342
- rootRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
343
- current: PropTypes.elementType
344
- }), PropTypes.any])]),
345
- classes: PropTypes.shape({
346
- instructionItem: PropTypes.string,
347
- desktopInstructionItem: PropTypes.string,
348
- mobileInstructionItem: PropTypes.string,
349
- activeInstructionItem: PropTypes.string,
350
- desktopItemTitle: PropTypes.string,
351
- mobileItemTitle: PropTypes.string,
352
- instructionItemImg: PropTypes.string,
353
- arrowPrev: PropTypes.string,
354
- arrowNext: PropTypes.string
355
- }),
356
- title: PropTypes.string,
357
- additionalText: PropTypes.string,
358
- instructionItems: PropTypes.arrayOf(PropTypes.shape({
359
- title: PropTypes.oneOfType([PropTypes.string, PropTypes.node, PropTypes.arrayOf(PropTypes.node)]).isRequired,
360
- mediaUrl: PropTypes.string.isRequired,
361
- isVideo: PropTypes.bool.isRequired,
362
- imageAlt: PropTypes.string
363
- }).isRequired).isRequired,
364
- pictureAlign: PropTypes.oneOf([pictureAlignTypes.LEFT, pictureAlignTypes.RIGHT]),
365
- pictureVerticalAlign: PropTypes.oneOf([pictureVerticalAlignTypes.CENTER, pictureVerticalAlignTypes.TOP, pictureVerticalAlignTypes.UNSET]),
366
- pictureMask: PropTypes.oneOf([pictureMaskTypes.ANDROID, pictureMaskTypes.ANDROID_CROPPED, pictureMaskTypes.NEW_IPHONE, pictureMaskTypes.WHITE_IPHONE, pictureMaskTypes.BLACK_IPHONE, pictureMaskTypes.LAPTOP, pictureMaskTypes.LAPTOP_NEW, pictureMaskTypes.IPHONE_12, pictureMaskTypes.IPHONE_15, pictureMaskTypes.IPHONE_CROPPED, pictureMaskTypes.NONE]),
367
- pictureBackgroundColor: PropTypes.oneOf([pictureBackgroundColorTypes.SPB_SKY_0]),
368
- showArrows: PropTypes.bool,
369
- arrowsTheme: PropTypes.oneOf([arrowTheme.DARK, arrowTheme.PURPLE]),
370
- elementOrder: PropTypes.oneOf([elementOrderTypes.DEFAULT, elementOrderTypes.REVERSED]),
371
- getSwiper: PropTypes.func
372
- };
373
333
  export default Instructions;
@@ -0,0 +1 @@
1
+ h1,h2,h3,h4,h5{margin:0}.mfui-notification-box{display:-webkit-box;display:-ms-flexbox;display:flex}.mfui-notification-box:not(:first-child){margin-top:24px}.mfui-notification-box__notification{max-width:740px}.mfui-notification-box_align_left{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.mfui-notification-box_align_center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}
@@ -1,13 +1,13 @@
1
1
  import * as React from 'react';
2
2
  import { Notification } from '@megafon/ui-core';
3
- import './style/NotificationBox.less';
3
+ import './NotificationBox.scss';
4
4
  export declare const Align: {
5
5
  readonly LEFT: "left";
6
6
  readonly CENTER: "center";
7
7
  };
8
- declare type AlignType = typeof Align[keyof typeof Align];
9
- declare type NotificationProps = React.ComponentProps<typeof Notification>;
10
- declare type NotificationBoxProps = Omit<NotificationProps, 'isColored'> & {
8
+ type AlignType = (typeof Align)[keyof typeof Align];
9
+ type NotificationProps = React.ComponentProps<typeof Notification>;
10
+ type NotificationBoxProps = Omit<NotificationProps, 'isColored'> & {
11
11
  /** Горизонтальное выравнивание */
12
12
  align?: AlignType;
13
13
  };
@@ -1,37 +1,27 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- import "core-js/modules/es.array.index-of.js";
3
2
  import "core-js/modules/es.symbol.js";
4
- import "core-js/modules/es.object.values.js";
5
-
3
+ import "core-js/modules/es.array.index-of.js";
6
4
  var __rest = this && this.__rest || function (s, e) {
7
5
  var t = {};
8
-
9
- for (var p in s) {
10
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
11
- }
12
-
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
13
7
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
14
8
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
15
9
  }
16
10
  return t;
17
11
  };
18
-
19
12
  import * as React from 'react';
20
13
  import { Notification } from '@megafon/ui-core';
21
14
  import { cnCreate } from '@megafon/ui-helpers';
22
- import PropTypes from 'prop-types';
23
- import "./style/NotificationBox.css";
15
+ import "./NotificationBox.css";
24
16
  export var Align = {
25
17
  LEFT: 'left',
26
18
  CENTER: 'center'
27
19
  };
28
20
  var cn = cnCreate('mfui-notification-box');
29
-
30
21
  var NotificationBox = function NotificationBox(_a) {
31
22
  var _a$align = _a.align,
32
- align = _a$align === void 0 ? 'left' : _a$align,
33
- restProps = __rest(_a, ["align"]);
34
-
23
+ align = _a$align === void 0 ? 'left' : _a$align,
24
+ restProps = __rest(_a, ["align"]);
35
25
  return /*#__PURE__*/React.createElement("div", {
36
26
  className: cn({
37
27
  align: align
@@ -42,8 +32,4 @@ var NotificationBox = function NotificationBox(_a) {
42
32
  isColored: false
43
33
  }))));
44
34
  };
45
-
46
- NotificationBox.propTypes = {
47
- align: PropTypes.oneOf(Object.values(Align))
48
- };
49
35
  export default NotificationBox;
@@ -1,80 +1 @@
1
- h1,
2
- h2,
3
- h3,
4
- h4,
5
- h5 {
6
- margin: 0;
7
- }
8
- .mfui-page-title {
9
- display: inline-block;
10
- width: 100%;
11
- }
12
- .mfui-page-title__breadcrumbs {
13
- margin-top: 32px;
14
- }
15
- @media screen and (max-width: 767px) {
16
- .mfui-page-title__breadcrumbs {
17
- display: none;
18
- }
19
- }
20
- .mfui-page-title__title {
21
- margin-top: 110px;
22
- }
23
- @media screen and (min-width: 1024px) and (max-width: 1279px) {
24
- .mfui-page-title__title {
25
- margin-top: 100px;
26
- }
27
- }
28
- @media screen and (min-width: 768px) and (max-width: 1023px) {
29
- .mfui-page-title__title {
30
- margin-top: 90px;
31
- }
32
- }
33
- @media screen and (max-width: 767px) {
34
- .mfui-page-title__title {
35
- margin-top: 45px;
36
- }
37
- }
38
- .mfui-page-title__badge {
39
- font-size: 12px;
40
- line-height: 18px;
41
- display: inline-block;
42
- margin-top: 16px;
43
- padding: 2px 14px;
44
- color: var(--stcWhite);
45
- font-weight: 500;
46
- background-color: var(--brandPurple);
47
- }
48
- @media screen and (min-width: 1280px) {
49
- .mfui-page-title__badge_under-breadcrumbs {
50
- margin-top: 32px;
51
- }
52
- }
53
- @media screen and (min-width: 1024px) and (max-width: 1279px) {
54
- .mfui-page-title__badge_under-breadcrumbs {
55
- margin-top: 24px;
56
- }
57
- }
58
- @media screen and (min-width: 768px) and (max-width: 1023px) {
59
- .mfui-page-title__badge_under-breadcrumbs {
60
- margin-top: 16px;
61
- }
62
- }
63
- @media screen and (min-width: 1280px) {
64
- .mfui-page-title__title_under-breadcrumbs {
65
- margin-top: 60px;
66
- }
67
- }
68
- @media screen and (min-width: 1024px) and (max-width: 1279px) {
69
- .mfui-page-title__title_under-breadcrumbs {
70
- margin-top: 50px;
71
- }
72
- }
73
- @media screen and (min-width: 768px) and (max-width: 1023px) {
74
- .mfui-page-title__title_under-breadcrumbs {
75
- margin-top: 45px;
76
- }
77
- }
78
- .mfui-page-title__badge + .mfui-page-title__title {
79
- margin-top: 8px;
80
- }
1
+ h1,h2,h3,h4,h5{margin:0}.mfui-page-title{display:inline-block;width:100%}.mfui-page-title__breadcrumbs{margin-top:32px}@media screen and (max-width:767px){.mfui-page-title__breadcrumbs{display:none}}.mfui-page-title__title{margin-top:110px}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-page-title__title{margin-top:100px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-page-title__title{margin-top:90px}}@media screen and (max-width:767px){.mfui-page-title__title{margin-top:45px}}.mfui-page-title__badge{background-color:var(--brandPurple);color:var(--stcWhite);display:inline-block;font-size:12px;font-weight:500;line-height:18px;margin-top:16px;padding:2px 14px}@media screen and (min-width:1280px){.mfui-page-title__badge_under-breadcrumbs{margin-top:32px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-page-title__badge_under-breadcrumbs{margin-top:24px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-page-title__badge_under-breadcrumbs{margin-top:16px}}@media screen and (min-width:1280px){.mfui-page-title__title_under-breadcrumbs{margin-top:60px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-page-title__title_under-breadcrumbs{margin-top:50px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-page-title__title_under-breadcrumbs{margin-top:45px}}.mfui-page-title__badge+.mfui-page-title__title{margin-top:8px}
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
- import './PageTitle.less';
3
2
  import { Props as BreadcrumbsType } from '../Breadcrumbs/Breadcrumbs';
4
- export declare type PageTitleProps = {
3
+ import './PageTitle.scss';
4
+ export type PageTitleProps = {
5
5
  /** Дополнительные data атрибуты к внутренним элементам */
6
6
  dataAttrs?: {
7
7
  root?: Record<string, string>;
@@ -2,25 +2,23 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import * as React from 'react';
3
3
  import { Header, Grid, GridColumn } from '@megafon/ui-core';
4
4
  import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
5
- import PropTypes from 'prop-types';
6
- import "./PageTitle.css";
7
5
  import Breadcrumbs from "../Breadcrumbs/Breadcrumbs";
6
+ import "./PageTitle.css";
8
7
  var testIdPrefix = 'PageTitle';
9
8
  var cn = cnCreate('mfui-page-title');
10
-
11
9
  var PageTitle = function PageTitle(_ref) {
12
10
  var dataAttrs = _ref.dataAttrs,
13
- title = _ref.title,
14
- breadcrumbs = _ref.breadcrumbs,
15
- badge = _ref.badge,
16
- _ref$isFullWidth = _ref.isFullWidth,
17
- isFullWidth = _ref$isFullWidth === void 0 ? true : _ref$isFullWidth,
18
- _ref$hasBreadcrumbsMi = _ref.hasBreadcrumbsMicrodata,
19
- hasBreadcrumbsMicrodata = _ref$hasBreadcrumbsMi === void 0 ? false : _ref$hasBreadcrumbsMi,
20
- className = _ref.className,
21
- _ref$classes = _ref.classes,
22
- classes = _ref$classes === void 0 ? {} : _ref$classes,
23
- rootRef = _ref.rootRef;
11
+ title = _ref.title,
12
+ breadcrumbs = _ref.breadcrumbs,
13
+ badge = _ref.badge,
14
+ _ref$isFullWidth = _ref.isFullWidth,
15
+ isFullWidth = _ref$isFullWidth === void 0 ? true : _ref$isFullWidth,
16
+ _ref$hasBreadcrumbsMi = _ref.hasBreadcrumbsMicrodata,
17
+ hasBreadcrumbsMicrodata = _ref$hasBreadcrumbsMi === void 0 ? false : _ref$hasBreadcrumbsMi,
18
+ className = _ref.className,
19
+ _ref$classes = _ref.classes,
20
+ classes = _ref$classes === void 0 ? {} : _ref$classes,
21
+ rootRef = _ref.rootRef;
24
22
  var isBreadcrumbs = !!(breadcrumbs === null || breadcrumbs === void 0 ? void 0 : breadcrumbs.length);
25
23
  var renderPageTitle = React.useCallback(function () {
26
24
  return /*#__PURE__*/React.createElement(React.Fragment, null, badge && /*#__PURE__*/React.createElement("div", {
@@ -61,27 +59,4 @@ var PageTitle = function PageTitle(_ref) {
61
59
  className: cn('breadcrumbs', [classes.breadcrumbs])
62
60
  }), isFullWidth ? renderPageTitle() : renderPageTitleWithGrid());
63
61
  };
64
-
65
- PageTitle.propTypes = {
66
- dataAttrs: PropTypes.shape({
67
- root: PropTypes.objectOf(PropTypes.string.isRequired),
68
- breadcrumbs: PropTypes.objectOf(PropTypes.string.isRequired),
69
- breadcrumbsLink: PropTypes.objectOf(PropTypes.string.isRequired)
70
- }),
71
- title: PropTypes.oneOfType([PropTypes.string, PropTypes.node, PropTypes.arrayOf(PropTypes.node)]).isRequired,
72
- breadcrumbs: PropTypes.arrayOf(PropTypes.shape({
73
- title: PropTypes.string.isRequired,
74
- href: PropTypes.string
75
- }).isRequired),
76
- badge: PropTypes.string,
77
- isFullWidth: PropTypes.bool,
78
- hasBreadcrumbsMicrodata: PropTypes.bool,
79
- className: PropTypes.string,
80
- classes: PropTypes.shape({
81
- breadcrumbs: PropTypes.string
82
- }),
83
- rootRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
84
- current: PropTypes.elementType
85
- }), PropTypes.any])])
86
- };
87
62
  export default PageTitle;
@@ -1,53 +1 @@
1
- h1,
2
- h2,
3
- h3,
4
- h4,
5
- h5 {
6
- margin: 0;
7
- }
8
- .mfui-partners__tile:not(:last-child) {
9
- margin-bottom: 20px;
10
- }
11
- @media screen and (max-width: 767px) {
12
- .mfui-partners__tile:not(:last-child) {
13
- margin-bottom: 16px;
14
- }
15
- }
16
- .mfui-partners__tile-inner {
17
- -webkit-box-sizing: border-box;
18
- box-sizing: border-box;
19
- height: 132px;
20
- padding: 28px 48px;
21
- }
22
- @media screen and (min-width: 1024px) and (max-width: 1279px) {
23
- .mfui-partners__tile-inner {
24
- height: 104px;
25
- padding: 22px 37px;
26
- }
27
- }
28
- @media screen and (min-width: 768px) and (max-width: 1023px) {
29
- .mfui-partners__tile-inner {
30
- height: 77px;
31
- padding: 10px;
32
- }
33
- }
34
- @media screen and (max-width: 767px) {
35
- .mfui-partners__tile-inner {
36
- height: 60px;
37
- padding: 8px;
38
- }
39
- }
40
- .mfui-partners__img-wrapper {
41
- position: relative;
42
- width: 100%;
43
- height: 100%;
44
- }
45
- .mfui-partners__tile-img {
46
- position: absolute;
47
- top: 50%;
48
- left: 50%;
49
- max-width: 100%;
50
- max-height: 100%;
51
- -webkit-transform: translate(-50%, -50%);
52
- transform: translate(-50%, -50%);
53
- }
1
+ h1,h2,h3,h4,h5{margin:0}.mfui-partners__tile:not(:last-child){margin-bottom:20px}@media screen and (max-width:767px){.mfui-partners__tile:not(:last-child){margin-bottom:16px}}.mfui-partners__tile-inner{-webkit-box-sizing:border-box;box-sizing:border-box;height:132px;padding:28px 48px}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-partners__tile-inner{height:104px;padding:22px 37px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-partners__tile-inner{height:77px;padding:10px}}@media screen and (max-width:767px){.mfui-partners__tile-inner{height:60px;padding:8px}}.mfui-partners__img-wrapper{height:100%;position:relative;width:100%}.mfui-partners__tile-img{left:50%;max-height:100%;max-width:100%;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import './Partners.less';
3
- export declare type ItemType = {
2
+ import './Partners.scss';
3
+ export type ItemType = {
4
4
  src: string;
5
5
  href?: string;
6
6
  alt: string;