@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,10 +1,9 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- import "core-js/modules/es.string.link.js";
3
2
  import "core-js/modules/es.array.map.js";
4
- import React from 'react';
3
+ import "core-js/modules/es.string.link.js";
4
+ import * as React from 'react';
5
5
  import { Button, Header } from '@megafon/ui-core';
6
6
  import { cnCreate, convert, filterDataAttrs } from '@megafon/ui-helpers';
7
- import PropTypes from 'prop-types';
8
7
  import "./Card.css";
9
8
  var textsConvertConfig = {
10
9
  b: {
@@ -33,43 +32,40 @@ var textsConvertConfig = {
33
32
  }
34
33
  };
35
34
  var cn = cnCreate('mfui-card');
36
-
37
35
  var Card = function Card(_ref5) {
38
36
  var dataAttrs = _ref5.dataAttrs,
39
- className = _ref5.className,
40
- classes = _ref5.classes,
41
- rootRef = _ref5.rootRef,
42
- _ref5$isFullHeight = _ref5.isFullHeight,
43
- isFullHeight = _ref5$isFullHeight === void 0 ? false : _ref5$isFullHeight,
44
- link = _ref5.link,
45
- _ref5$view = _ref5.view,
46
- view = _ref5$view === void 0 ? 'shadow' : _ref5$view,
47
- image = _ref5.image,
48
- icon = _ref5.icon,
49
- title = _ref5.title,
50
- markerList = _ref5.markerList,
51
- textsList = _ref5.textsList,
52
- featuresList = _ref5.featuresList,
53
- iconsList = _ref5.iconsList,
54
- price = _ref5.price,
55
- button = _ref5.button,
56
- extraButton = _ref5.extraButton,
57
- badge = _ref5.badge,
58
- onClick = _ref5.onClick;
37
+ className = _ref5.className,
38
+ classes = _ref5.classes,
39
+ rootRef = _ref5.rootRef,
40
+ _ref5$isFullHeight = _ref5.isFullHeight,
41
+ isFullHeight = _ref5$isFullHeight === void 0 ? false : _ref5$isFullHeight,
42
+ link = _ref5.link,
43
+ _ref5$view = _ref5.view,
44
+ view = _ref5$view === void 0 ? 'shadow' : _ref5$view,
45
+ image = _ref5.image,
46
+ icon = _ref5.icon,
47
+ title = _ref5.title,
48
+ markerList = _ref5.markerList,
49
+ textsList = _ref5.textsList,
50
+ featuresList = _ref5.featuresList,
51
+ iconsList = _ref5.iconsList,
52
+ price = _ref5.price,
53
+ button = _ref5.button,
54
+ extraButton = _ref5.extraButton,
55
+ badge = _ref5.badge,
56
+ onClick = _ref5.onClick;
59
57
  var isOnlyTitle = !image && !icon && !markerList && !textsList && !featuresList && !iconsList && !price && !button && !extraButton;
60
58
  var isLink = (link === null || link === void 0 ? void 0 : link.href) && !button && !extraButton;
61
59
  var isBottomImage = (image === null || image === void 0 ? void 0 : image.position) === 'bottom';
62
60
  var ElementType = isLink ? 'a' : 'div';
63
-
64
61
  var renderImage = function renderImage() {
65
62
  if (!image) {
66
63
  return null;
67
64
  }
68
-
69
65
  var _image$position = image.position,
70
- position = _image$position === void 0 ? 'top' : _image$position,
71
- src = image.src,
72
- alt = image.alt;
66
+ position = _image$position === void 0 ? 'top' : _image$position,
67
+ src = image.src,
68
+ alt = image.alt;
73
69
  return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.imgBox), {
74
70
  className: cn('img-box', {
75
71
  position: position
@@ -80,17 +76,14 @@ var Card = function Card(_ref5) {
80
76
  alt: alt
81
77
  }));
82
78
  };
83
-
84
79
  var renderIcon = function renderIcon() {
85
80
  if (!icon) {
86
81
  return null;
87
82
  }
88
-
89
83
  return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.icon), {
90
84
  className: cn('icon')
91
85
  }), icon);
92
86
  };
93
-
94
87
  var renderContent = function renderContent() {
95
88
  if (markerList) {
96
89
  return /*#__PURE__*/React.createElement("ul", {
@@ -104,7 +97,6 @@ var Card = function Card(_ref5) {
104
97
  }, convert(item.note, {})));
105
98
  }));
106
99
  }
107
-
108
100
  if (textsList) {
109
101
  return /*#__PURE__*/React.createElement("div", {
110
102
  className: cn('texts')
@@ -119,7 +111,6 @@ var Card = function Card(_ref5) {
119
111
  }, convert(item.desc, textsConvertConfig)));
120
112
  }));
121
113
  }
122
-
123
114
  if (featuresList) {
124
115
  return /*#__PURE__*/React.createElement("div", {
125
116
  className: cn('features')
@@ -140,7 +131,6 @@ var Card = function Card(_ref5) {
140
131
  }, item.value)));
141
132
  })), featuresList.desc);
142
133
  }
143
-
144
134
  if (iconsList) {
145
135
  return /*#__PURE__*/React.createElement("div", {
146
136
  className: cn('icons')
@@ -159,15 +149,12 @@ var Card = function Card(_ref5) {
159
149
  }, item.text));
160
150
  })));
161
151
  }
162
-
163
152
  return null;
164
153
  };
165
-
166
154
  var renderPrice = function renderPrice() {
167
155
  if (!price) {
168
156
  return null;
169
157
  }
170
-
171
158
  return /*#__PURE__*/React.createElement("div", {
172
159
  className: cn('price')
173
160
  }, !!price.oldValue && /*#__PURE__*/React.createElement("div", {
@@ -178,12 +165,10 @@ var Card = function Card(_ref5) {
178
165
  className: cn('price-period')
179
166
  }, price.period));
180
167
  };
181
-
182
168
  var renderButtons = function renderButtons() {
183
169
  if (!button && !extraButton) {
184
170
  return null;
185
171
  }
186
-
187
172
  return /*#__PURE__*/React.createElement("div", {
188
173
  className: cn('buttons', {
189
174
  centered: (button === null || button === void 0 ? void 0 : button.isCentered) || (extraButton === null || extraButton === void 0 ? void 0 : extraButton.isCentered)
@@ -207,17 +192,14 @@ var Card = function Card(_ref5) {
207
192
  onClick: extraButton === null || extraButton === void 0 ? void 0 : extraButton.onClick
208
193
  }, extraButton.title));
209
194
  };
210
-
211
195
  var renderFooter = function renderFooter() {
212
196
  if (!price && !button && !extraButton && !image) {
213
197
  return null;
214
198
  }
215
-
216
199
  return /*#__PURE__*/React.createElement("div", {
217
200
  className: cn('footer')
218
201
  }, isBottomImage && renderImage(), renderPrice(), renderButtons());
219
202
  };
220
-
221
203
  return /*#__PURE__*/React.createElement(ElementType, _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
222
204
  className: cn({
223
205
  'only-title': isOnlyTitle,
@@ -237,76 +219,4 @@ var Card = function Card(_ref5) {
237
219
  align: title.align
238
220
  }, title.text), badge), renderContent(), renderFooter());
239
221
  };
240
-
241
- Card.propTypes = {
242
- dataAttrs: PropTypes.shape({
243
- root: PropTypes.objectOf(PropTypes.string.isRequired),
244
- icon: PropTypes.objectOf(PropTypes.string.isRequired),
245
- imgBox: PropTypes.objectOf(PropTypes.string.isRequired),
246
- button: PropTypes.objectOf(PropTypes.string.isRequired),
247
- extraButton: PropTypes.objectOf(PropTypes.string.isRequired)
248
- }),
249
- className: PropTypes.string,
250
- classes: PropTypes.shape({
251
- root: PropTypes.string,
252
- button: PropTypes.string,
253
- extraButton: PropTypes.string
254
- }),
255
- rootRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
256
- current: PropTypes.elementType
257
- }), PropTypes.any])]),
258
- view: PropTypes.oneOf(['shadow', 'background']),
259
- link: PropTypes.shape({
260
- href: PropTypes.string,
261
- target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top'])
262
- }),
263
- image: PropTypes.shape({
264
- src: PropTypes.string.isRequired,
265
- alt: PropTypes.string,
266
- position: PropTypes.oneOf(['top', 'bottom'])
267
- }),
268
- icon: PropTypes.node,
269
- title: PropTypes.shape({
270
- text: PropTypes.string.isRequired,
271
- align: PropTypes.oneOf(['left', 'center'])
272
- }).isRequired,
273
- textsList: PropTypes.arrayOf(PropTypes.shape({
274
- title: PropTypes.string,
275
- desc: PropTypes.string.isRequired
276
- }).isRequired),
277
- featuresList: PropTypes.shape({
278
- desc: PropTypes.string,
279
- items: PropTypes.arrayOf(PropTypes.shape({
280
- title: PropTypes.string.isRequired,
281
- value: PropTypes.string.isRequired
282
- }).isRequired).isRequired
283
- }),
284
- iconsList: PropTypes.shape({
285
- desc: PropTypes.string,
286
- items: PropTypes.arrayOf(PropTypes.shape({
287
- icon: PropTypes.node.isRequired,
288
- text: PropTypes.string.isRequired
289
- }).isRequired).isRequired
290
- }),
291
- price: PropTypes.shape({
292
- oldValue: PropTypes.string,
293
- value: PropTypes.string.isRequired,
294
- period: PropTypes.string
295
- }),
296
- button: PropTypes.shape({
297
- title: PropTypes.string.isRequired,
298
- href: PropTypes.string,
299
- target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top']),
300
- isCentered: PropTypes.bool,
301
- onClick: PropTypes.func
302
- }),
303
- extraButton: PropTypes.shape({
304
- title: PropTypes.string.isRequired,
305
- href: PropTypes.string,
306
- target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top']),
307
- isCentered: PropTypes.bool,
308
- onClick: PropTypes.func
309
- }),
310
- onClick: PropTypes.func
311
- };
312
222
  export default Card;
@@ -1,12 +1,11 @@
1
- /// <reference types="react" />
2
- declare type Target = '_self' | '_blank' | '_parent' | '_top';
3
- export declare type Link = {
1
+ type Target = '_self' | '_blank' | '_parent' | '_top';
2
+ export type Link = {
4
3
  /** Ссылка */
5
4
  href?: string;
6
5
  /** Target свойство ссылки */
7
6
  target?: Target;
8
7
  };
9
- export declare type Image = {
8
+ export type Image = {
10
9
  /** Ссылка на изображение */
11
10
  src: string;
12
11
  /** Значение тега alt для изображения */
@@ -14,25 +13,25 @@ export declare type Image = {
14
13
  /** Позиция изображения */
15
14
  position?: 'top' | 'bottom';
16
15
  };
17
- export declare type Title = {
16
+ export type Title = {
18
17
  /** Текст */
19
18
  text: string;
20
19
  /** Выравнивание */
21
20
  align?: 'left' | 'center';
22
21
  };
23
- export declare type MarkerList = {
22
+ export type MarkerList = {
24
23
  /** Заголовок */
25
24
  title: string;
26
25
  /** Примечание */
27
26
  note?: string;
28
27
  }[];
29
- export declare type TextsList = {
28
+ export type TextsList = {
30
29
  /** Заголовок */
31
30
  title?: string;
32
31
  /** Описание */
33
32
  desc: string;
34
33
  }[];
35
- export declare type FeaturesList = {
34
+ export type FeaturesList = {
36
35
  /** Список */
37
36
  items: {
38
37
  /** Заголовок */
@@ -43,7 +42,7 @@ export declare type FeaturesList = {
43
42
  /** Описание */
44
43
  desc?: string;
45
44
  };
46
- export declare type IconsList = {
45
+ export type IconsList = {
47
46
  /** Список */
48
47
  items: {
49
48
  /** Иконка */
@@ -54,7 +53,7 @@ export declare type IconsList = {
54
53
  /** Описание */
55
54
  desc?: string;
56
55
  };
57
- export declare type Price = {
56
+ export type Price = {
58
57
  /** Старая цена */
59
58
  oldValue?: string;
60
59
  /** Текущая цена */
@@ -62,7 +61,7 @@ export declare type Price = {
62
61
  /** Период */
63
62
  period?: string;
64
63
  };
65
- export declare type ButtonType = {
64
+ export type ButtonType = {
66
65
  /** Название */
67
66
  title: string;
68
67
  /** Ссылка */
@@ -0,0 +1 @@
1
+ export {};
@@ -3,15 +3,13 @@ import "core-js/modules/es.array.map.js";
3
3
  import * as React from 'react';
4
4
  import { Grid, GridColumn } from '@megafon/ui-core';
5
5
  import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
6
- import * as PropTypes from 'prop-types';
7
6
  import getColumnConfig from "./helpers";
8
7
  var cn = cnCreate('mfui-cards-box');
9
-
10
8
  var CardsBox = function CardsBox(_ref) {
11
9
  var _ref$renderTwoColumns = _ref.renderTwoColumnsInRow,
12
- renderTwoColumnsInRow = _ref$renderTwoColumns === void 0 ? false : _ref$renderTwoColumns,
13
- dataAttrs = _ref.dataAttrs,
14
- children = _ref.children;
10
+ renderTwoColumnsInRow = _ref$renderTwoColumns === void 0 ? false : _ref$renderTwoColumns,
11
+ dataAttrs = _ref.dataAttrs,
12
+ children = _ref.children;
15
13
  return /*#__PURE__*/React.createElement("div", _extends({
16
14
  className: cn()
17
15
  }, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root)), /*#__PURE__*/React.createElement(Grid, {
@@ -25,13 +23,4 @@ var CardsBox = function CardsBox(_ref) {
25
23
  }, getColumnConfig(React.Children.count(children), i, renderTwoColumnsInRow)), child);
26
24
  })));
27
25
  };
28
-
29
- CardsBox.propTypes = {
30
- renderTwoColumnsInRow: PropTypes.bool,
31
- children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.element.isRequired), PropTypes.element]).isRequired,
32
- dataAttrs: PropTypes.shape({
33
- root: PropTypes.objectOf(PropTypes.string.isRequired),
34
- column: PropTypes.objectOf(PropTypes.string.isRequired)
35
- })
36
- };
37
26
  export default CardsBox;
@@ -1,5 +1,5 @@
1
- declare type TGridSizeValues = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12';
2
- declare type GridConfig = {
1
+ type TGridSizeValues = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12';
2
+ type GridConfig = {
3
3
  all?: TGridSizeValues;
4
4
  tablet?: TGridSizeValues;
5
5
  mobile?: TGridSizeValues;
@@ -1,5 +1,4 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
-
3
2
  var getColumnConfig = function getColumnConfig(count, index, renderTwoColumnsInRow) {
4
3
  var offset = renderTwoColumnsInRow ? '2' : undefined;
5
4
  var offsetForEvenColumn = index % 2 ? undefined : offset;
@@ -8,7 +7,6 @@ var getColumnConfig = function getColumnConfig(count, index, renderTwoColumnsInR
8
7
  tablet: '6',
9
8
  mobile: '12'
10
9
  };
11
-
12
10
  switch (count) {
13
11
  case 2:
14
12
  case 4:
@@ -16,10 +14,8 @@ var getColumnConfig = function getColumnConfig(count, index, renderTwoColumnsInR
16
14
  leftOffsetWide: offsetForEvenColumn,
17
15
  leftOffsetDesktop: offsetForEvenColumn
18
16
  });
19
-
20
17
  default:
21
18
  return _extends({}, columnSize);
22
19
  }
23
20
  };
24
-
25
21
  export default getColumnConfig;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { Carousel } from '@megafon/ui-core';
3
- declare type CarouselPropsTypes = React.ComponentProps<typeof Carousel>;
4
- declare type DesktopSlidesPerView = 3 | 4;
3
+ type CarouselPropsTypes = React.ComponentProps<typeof Carousel>;
4
+ type DesktopSlidesPerView = 3 | 4;
5
5
  interface ICarouselBox extends CarouselPropsTypes {
6
6
  /** Количество видимых слайдов на разрешении 1280 и выше */
7
7
  desktopSlidesPerView?: DesktopSlidesPerView;
@@ -1,52 +1,40 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
- import "core-js/modules/es.array.index-of.js";
4
3
  import "core-js/modules/es.symbol.js";
5
-
4
+ import "core-js/modules/es.array.index-of.js";
6
5
  var __rest = this && this.__rest || function (s, e) {
7
6
  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
-
7
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
13
8
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
14
9
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
15
10
  }
16
11
  return t;
17
12
  };
18
-
19
13
  import * as React from 'react';
20
14
  import { Carousel } from '@megafon/ui-core';
21
15
  import { cnCreate, breakpoints } from '@megafon/ui-helpers';
22
-
23
16
  var getDefaultSlideSettings = function getDefaultSlideSettings(desktopSlidesPerView) {
24
- var _ref;
25
-
26
- return _ref = {}, _defineProperty(_ref, breakpoints.MOBILE_SMALL_START, {
17
+ return _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, breakpoints.MOBILE_SMALL_START, {
27
18
  slidesPerView: 1,
28
19
  spaceBetween: 16
29
- }), _defineProperty(_ref, breakpoints.MOBILE_BIG_START, {
20
+ }), breakpoints.MOBILE_BIG_START, {
30
21
  slidesPerView: 2,
31
22
  spaceBetween: 20
32
- }), _defineProperty(_ref, breakpoints.DESKTOP_SMALL_START, {
23
+ }), breakpoints.DESKTOP_SMALL_START, {
33
24
  slidesPerView: 3,
34
25
  spaceBetween: 20
35
- }), _defineProperty(_ref, breakpoints.DESKTOP_MIDDLE_START, {
26
+ }), breakpoints.DESKTOP_MIDDLE_START, {
36
27
  slidesPerView: desktopSlidesPerView,
37
28
  spaceBetween: 20
38
- }), _ref;
29
+ });
39
30
  };
40
-
41
31
  var cn = cnCreate('mfui-carousel-box');
42
-
43
32
  var CarouselBox = function CarouselBox(_a) {
44
33
  var children = _a.children,
45
- slidesSettings = _a.slidesSettings,
46
- _a$desktopSlidesPerVi = _a.desktopSlidesPerView,
47
- desktopSlidesPerView = _a$desktopSlidesPerVi === void 0 ? 4 : _a$desktopSlidesPerVi,
48
- props = __rest(_a, ["children", "slidesSettings", "desktopSlidesPerView"]);
49
-
34
+ slidesSettings = _a.slidesSettings,
35
+ _a$desktopSlidesPerVi = _a.desktopSlidesPerView,
36
+ desktopSlidesPerView = _a$desktopSlidesPerVi === void 0 ? 4 : _a$desktopSlidesPerVi,
37
+ props = __rest(_a, ["children", "slidesSettings", "desktopSlidesPerView"]);
50
38
  var settings = slidesSettings || getDefaultSlideSettings(desktopSlidesPerView);
51
39
  return /*#__PURE__*/React.createElement("div", {
52
40
  className: cn()
@@ -54,5 +42,4 @@ var CarouselBox = function CarouselBox(_a) {
54
42
  slidesSettings: settings
55
43
  }), children));
56
44
  };
57
-
58
45
  export default CarouselBox;