@megafon/ui-shared 2.0.0-beta.24 → 2.0.0-beta.240

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 (347) hide show
  1. package/CHANGELOG.md +2292 -0
  2. package/README.md +0 -5
  3. package/dist/es/components/AccordionBox/AccordionBox.css +13 -0
  4. package/dist/es/components/AccordionBox/AccordionBox.d.ts +33 -0
  5. package/dist/es/components/AccordionBox/AccordionBox.js +62 -0
  6. package/dist/es/components/BannerBox/BannerBox.d.ts +5 -0
  7. package/dist/es/components/BannerBox/BannerBox.js +31 -0
  8. package/dist/es/components/BenefitsIcons/BenefitsIcons.d.ts +16 -5
  9. package/dist/es/components/BenefitsIcons/BenefitsIcons.js +79 -14
  10. package/dist/es/components/BenefitsIcons/BenefitsIconsTile.d.ts +3 -2
  11. package/dist/es/components/BenefitsIcons/BenefitsIconsTile.js +13 -12
  12. package/dist/es/components/BenefitsIcons/style/BenefitsIcons.css +1 -1
  13. package/dist/es/components/BenefitsIcons/style/BenefitsIconsTile.css +11 -4
  14. package/dist/es/components/BenefitsIcons/types.d.ts +16 -7
  15. package/dist/es/components/BenefitsIcons/types.js +9 -7
  16. package/dist/es/components/BenefitsPictures/BenefitsPictures.d.ts +12 -3
  17. package/dist/es/components/BenefitsPictures/BenefitsPictures.js +25 -11
  18. package/dist/es/components/BenefitsPictures/BenfitsPictures.css +1 -1
  19. package/dist/es/components/BenefitsPictures/types.d.ts +3 -0
  20. package/dist/es/components/Breadcrumbs/Breadcrumbs.css +46 -0
  21. package/dist/es/components/Breadcrumbs/Breadcrumbs.d.ts +21 -0
  22. package/dist/es/components/Breadcrumbs/Breadcrumbs.js +49 -0
  23. package/dist/es/components/ButtonBanner/ButtonBanner.css +122 -0
  24. package/dist/es/components/ButtonBanner/ButtonBanner.d.ts +54 -0
  25. package/dist/es/components/ButtonBanner/ButtonBanner.js +107 -0
  26. package/dist/es/components/ButtonLinkBox/ButtonLinkBox.d.ts +32 -8
  27. package/dist/es/components/ButtonLinkBox/ButtonLinkBox.js +45 -10
  28. package/dist/es/components/Card/Card.css +130 -0
  29. package/dist/es/components/Card/Card.d.ts +67 -0
  30. package/dist/es/components/Card/Card.js +176 -0
  31. package/dist/es/components/CardsBox/CardsBox.d.ts +15 -0
  32. package/dist/es/components/CardsBox/CardsBox.js +80 -0
  33. package/dist/es/components/CarouselBox/CarouselBox.d.ts +5 -0
  34. package/dist/es/components/CarouselBox/CarouselBox.js +31 -0
  35. package/dist/es/components/Container/Container.css +2830 -0
  36. package/dist/es/components/Container/Container.d.ts +26 -0
  37. package/dist/es/components/Container/Container.js +46 -0
  38. package/dist/es/components/DownloadLinks/DownloadLink.css +36 -0
  39. package/dist/es/components/DownloadLinks/DownloadLink.d.ts +25 -0
  40. package/dist/es/components/DownloadLinks/DownloadLink.js +62 -0
  41. package/dist/es/components/DownloadLinks/DownloadLinks.css +36 -0
  42. package/dist/es/components/DownloadLinks/DownloadLinks.d.ts +10 -0
  43. package/dist/es/components/DownloadLinks/DownloadLinks.js +75 -0
  44. package/dist/es/components/Instructions/Instructions.css +489 -0
  45. package/dist/es/components/Instructions/Instructions.d.ts +52 -0
  46. package/dist/es/components/Instructions/Instructions.js +229 -0
  47. package/dist/es/components/Instructions/img/android.png +0 -0
  48. package/dist/es/components/Instructions/img/blackIphone.png +0 -0
  49. package/dist/es/components/Instructions/img/iphone12.png +0 -0
  50. package/dist/es/components/Instructions/img/laptop.png +0 -0
  51. package/dist/es/components/Instructions/img/newIphone.png +0 -0
  52. package/dist/es/components/Instructions/img/whiteIphone.png +0 -0
  53. package/dist/es/components/PageTitle/PageTitle.css +80 -0
  54. package/dist/es/components/PageTitle/PageTitle.d.ts +23 -0
  55. package/dist/es/components/PageTitle/PageTitle.js +65 -0
  56. package/dist/es/components/Partners/Partners.css +53 -0
  57. package/dist/es/components/Partners/Partners.d.ts +32 -0
  58. package/dist/es/components/Partners/Partners.js +114 -0
  59. package/dist/es/components/PictureWithDescription/PictureWithDescription.css +80 -0
  60. package/dist/es/components/PictureWithDescription/PictureWithDescription.d.ts +28 -0
  61. package/dist/es/components/PictureWithDescription/PictureWithDescription.js +61 -0
  62. package/dist/es/components/Property/Property.css +125 -0
  63. package/dist/es/components/Property/Property.d.ts +33 -0
  64. package/dist/es/components/Property/Property.js +130 -0
  65. package/dist/es/components/Property/PropertyDescription.css +17 -0
  66. package/dist/es/components/Property/PropertyDescription.d.ts +5 -0
  67. package/dist/es/components/Property/PropertyDescription.js +51 -0
  68. package/dist/es/components/Property/types.d.ts +14 -0
  69. package/dist/es/components/Property/types.js +0 -0
  70. package/dist/es/components/Steps/Steps.css +41 -0
  71. package/dist/es/components/Steps/Steps.d.ts +10 -0
  72. package/dist/es/components/Steps/Steps.js +35 -0
  73. package/dist/es/components/Steps/StepsItem.css +37 -0
  74. package/dist/es/components/Steps/StepsItem.d.ts +10 -0
  75. package/dist/es/components/Steps/StepsItem.js +26 -0
  76. package/dist/es/components/StoreBanner/StoreBanner.css +289 -0
  77. package/dist/es/components/StoreBanner/StoreBanner.d.ts +65 -0
  78. package/dist/es/components/StoreBanner/StoreBanner.js +145 -0
  79. package/dist/es/components/StoreBanner/doc/img/new-iphone-screen.png +0 -0
  80. package/dist/es/components/StoreBanner/doc/img/qr-code.png +0 -0
  81. package/dist/es/components/StoreBanner/doc/img/screen.png +0 -0
  82. package/dist/es/components/StoreBanner/img/android.png +0 -0
  83. package/dist/es/components/StoreBanner/img/black-iphone.png +0 -0
  84. package/dist/es/components/StoreBanner/img/new-iphone.png +0 -0
  85. package/dist/es/components/StoreBanner/img/white-iphone.png +0 -0
  86. package/dist/es/components/StoreButton/StoreButton.css +15 -0
  87. package/dist/es/components/StoreButton/StoreButton.d.ts +17 -0
  88. package/dist/es/components/StoreButton/StoreButton.js +37 -0
  89. package/dist/es/components/StoreButton/img/app-store.png +0 -0
  90. package/dist/es/components/StoreButton/img/google-play.png +0 -0
  91. package/dist/es/components/StoreButton/img/huawei-store.png +0 -0
  92. package/dist/es/components/Table/Table.css +153 -0
  93. package/dist/es/components/Table/Table.d.ts +14 -0
  94. package/dist/es/components/Table/Table.js +124 -0
  95. package/dist/es/components/Table/TableCell.d.ts +6 -0
  96. package/dist/es/components/Table/TableCell.js +12 -0
  97. package/dist/es/components/Table/TableRow.d.ts +9 -0
  98. package/dist/es/components/Table/TableRow.js +13 -0
  99. package/dist/es/components/TabsBox/TabBox.d.ts +2 -0
  100. package/dist/es/components/TabsBox/TabBox.js +2 -0
  101. package/dist/es/components/TabsBox/TabsBox.d.ts +8 -0
  102. package/dist/es/components/TabsBox/TabsBox.js +32 -0
  103. package/dist/es/components/TextBox/TextBox.css +16 -0
  104. package/dist/es/components/TextBox/TextBox.d.ts +16 -0
  105. package/dist/es/components/TextBox/TextBox.js +53 -0
  106. package/dist/es/components/TextBox/TextBoxPicture.css +24 -0
  107. package/dist/es/components/TextBox/TextBoxPicture.d.ts +17 -0
  108. package/dist/es/components/TextBox/TextBoxPicture.js +31 -0
  109. package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.css +11 -0
  110. package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +13 -7
  111. package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.js +33 -13
  112. package/dist/es/components/VideoBanner/VideoBanner.css +216 -0
  113. package/dist/es/components/VideoBanner/VideoBanner.d.ts +90 -0
  114. package/dist/es/components/VideoBanner/VideoBanner.js +272 -0
  115. package/dist/es/components/VideoBlock/VideoBlock.css +127 -0
  116. package/dist/es/components/VideoBlock/VideoBlock.d.ts +49 -0
  117. package/dist/es/components/VideoBlock/VideoBlock.js +147 -0
  118. package/dist/es/constants/throttleTime.d.ts +4 -0
  119. package/dist/es/constants/throttleTime.js +3 -0
  120. package/dist/es/index.d.ts +29 -17
  121. package/dist/es/index.js +30 -18
  122. package/dist/lib/components/AccordionBox/AccordionBox.css +13 -0
  123. package/dist/lib/components/AccordionBox/AccordionBox.d.ts +33 -0
  124. package/dist/lib/components/AccordionBox/AccordionBox.js +80 -0
  125. package/dist/lib/components/BannerBox/BannerBox.d.ts +5 -0
  126. package/dist/lib/components/BannerBox/BannerBox.js +49 -0
  127. package/dist/lib/components/BenefitsIcons/BenefitsIcons.d.ts +16 -5
  128. package/dist/lib/components/BenefitsIcons/BenefitsIcons.js +82 -17
  129. package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.d.ts +3 -2
  130. package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.js +14 -15
  131. package/dist/lib/components/BenefitsIcons/style/BenefitsIcons.css +1 -1
  132. package/dist/lib/components/BenefitsIcons/style/BenefitsIconsTile.css +11 -4
  133. package/dist/lib/components/BenefitsIcons/types.d.ts +16 -7
  134. package/dist/lib/components/BenefitsIcons/types.js +11 -8
  135. package/dist/lib/components/BenefitsPictures/BenefitsPictures.d.ts +12 -3
  136. package/dist/lib/components/BenefitsPictures/BenefitsPictures.js +27 -13
  137. package/dist/lib/components/BenefitsPictures/BenfitsPictures.css +1 -1
  138. package/dist/lib/components/BenefitsPictures/types.d.ts +3 -0
  139. package/dist/lib/components/Breadcrumbs/Breadcrumbs.css +46 -0
  140. package/dist/lib/components/Breadcrumbs/Breadcrumbs.d.ts +21 -0
  141. package/dist/lib/components/Breadcrumbs/Breadcrumbs.js +65 -0
  142. package/dist/lib/components/ButtonBanner/ButtonBanner.css +122 -0
  143. package/dist/lib/components/ButtonBanner/ButtonBanner.d.ts +54 -0
  144. package/dist/lib/components/ButtonBanner/ButtonBanner.js +133 -0
  145. package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.d.ts +32 -8
  146. package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.js +53 -13
  147. package/dist/lib/components/Card/Card.css +130 -0
  148. package/dist/lib/components/Card/Card.d.ts +67 -0
  149. package/dist/lib/components/Card/Card.js +199 -0
  150. package/dist/lib/components/CardsBox/CardsBox.d.ts +15 -0
  151. package/dist/lib/components/CardsBox/CardsBox.js +105 -0
  152. package/dist/lib/components/CarouselBox/CarouselBox.d.ts +5 -0
  153. package/dist/lib/components/CarouselBox/CarouselBox.js +49 -0
  154. package/dist/lib/components/Container/Container.css +2830 -0
  155. package/dist/lib/components/Container/Container.d.ts +26 -0
  156. package/dist/lib/components/Container/Container.js +61 -0
  157. package/dist/lib/components/DownloadLinks/DownloadLink.css +36 -0
  158. package/dist/lib/components/DownloadLinks/DownloadLink.d.ts +25 -0
  159. package/dist/lib/components/DownloadLinks/DownloadLink.js +83 -0
  160. package/dist/lib/components/DownloadLinks/DownloadLinks.css +36 -0
  161. package/dist/lib/components/DownloadLinks/DownloadLinks.d.ts +10 -0
  162. package/dist/lib/components/DownloadLinks/DownloadLinks.js +95 -0
  163. package/dist/lib/components/Instructions/Instructions.css +489 -0
  164. package/dist/lib/components/Instructions/Instructions.d.ts +52 -0
  165. package/dist/lib/components/Instructions/Instructions.js +258 -0
  166. package/dist/lib/components/Instructions/img/android.png +0 -0
  167. package/dist/lib/components/Instructions/img/blackIphone.png +0 -0
  168. package/dist/lib/components/Instructions/img/iphone12.png +0 -0
  169. package/dist/lib/components/Instructions/img/laptop.png +0 -0
  170. package/dist/lib/components/Instructions/img/newIphone.png +0 -0
  171. package/dist/lib/components/Instructions/img/whiteIphone.png +0 -0
  172. package/dist/lib/components/PageTitle/PageTitle.css +80 -0
  173. package/dist/lib/components/PageTitle/PageTitle.d.ts +23 -0
  174. package/dist/lib/components/PageTitle/PageTitle.js +85 -0
  175. package/dist/lib/components/Partners/Partners.css +53 -0
  176. package/dist/lib/components/Partners/Partners.d.ts +32 -0
  177. package/dist/lib/components/Partners/Partners.js +136 -0
  178. package/dist/lib/components/PictureWithDescription/PictureWithDescription.css +80 -0
  179. package/dist/lib/components/PictureWithDescription/PictureWithDescription.d.ts +28 -0
  180. package/dist/lib/components/PictureWithDescription/PictureWithDescription.js +81 -0
  181. package/dist/lib/components/Property/Property.css +125 -0
  182. package/dist/lib/components/Property/Property.d.ts +33 -0
  183. package/dist/lib/components/Property/Property.js +152 -0
  184. package/dist/lib/components/Property/PropertyDescription.css +17 -0
  185. package/dist/lib/components/Property/PropertyDescription.d.ts +5 -0
  186. package/dist/lib/components/Property/PropertyDescription.js +71 -0
  187. package/dist/lib/components/Property/types.d.ts +14 -0
  188. package/dist/lib/components/Property/types.js +1 -0
  189. package/dist/lib/components/Steps/Steps.css +41 -0
  190. package/dist/lib/components/Steps/Steps.d.ts +10 -0
  191. package/dist/lib/components/Steps/Steps.js +55 -0
  192. package/dist/lib/components/Steps/StepsItem.css +37 -0
  193. package/dist/lib/components/Steps/StepsItem.d.ts +10 -0
  194. package/dist/lib/components/Steps/StepsItem.js +39 -0
  195. package/dist/lib/components/StoreBanner/StoreBanner.css +289 -0
  196. package/dist/lib/components/StoreBanner/StoreBanner.d.ts +65 -0
  197. package/dist/lib/components/StoreBanner/StoreBanner.js +169 -0
  198. package/dist/lib/components/StoreBanner/doc/img/new-iphone-screen.png +0 -0
  199. package/dist/lib/components/StoreBanner/doc/img/qr-code.png +0 -0
  200. package/dist/lib/components/StoreBanner/doc/img/screen.png +0 -0
  201. package/dist/lib/components/StoreBanner/img/android.png +0 -0
  202. package/dist/lib/components/StoreBanner/img/black-iphone.png +0 -0
  203. package/dist/lib/components/StoreBanner/img/new-iphone.png +0 -0
  204. package/dist/lib/components/StoreBanner/img/white-iphone.png +0 -0
  205. package/dist/lib/components/StoreButton/StoreButton.css +15 -0
  206. package/dist/lib/components/StoreButton/StoreButton.d.ts +17 -0
  207. package/dist/lib/components/StoreButton/StoreButton.js +58 -0
  208. package/dist/lib/components/StoreButton/img/app-store.png +0 -0
  209. package/dist/lib/components/StoreButton/img/google-play.png +0 -0
  210. package/dist/lib/components/StoreButton/img/huawei-store.png +0 -0
  211. package/dist/lib/components/Table/Table.css +153 -0
  212. package/dist/lib/components/Table/Table.d.ts +14 -0
  213. package/dist/lib/components/Table/Table.js +146 -0
  214. package/dist/lib/components/Table/TableCell.d.ts +6 -0
  215. package/dist/lib/components/Table/TableCell.js +27 -0
  216. package/dist/lib/components/Table/TableRow.d.ts +9 -0
  217. package/dist/lib/components/Table/TableRow.js +28 -0
  218. package/dist/lib/components/TabsBox/TabBox.d.ts +2 -0
  219. package/dist/lib/components/TabsBox/TabBox.js +11 -0
  220. package/dist/lib/components/TabsBox/TabsBox.d.ts +8 -0
  221. package/dist/lib/components/TabsBox/TabsBox.js +50 -0
  222. package/dist/lib/components/TextBox/TextBox.css +16 -0
  223. package/dist/lib/components/TextBox/TextBox.d.ts +16 -0
  224. package/dist/lib/components/TextBox/TextBox.js +70 -0
  225. package/dist/lib/components/TextBox/TextBoxPicture.css +24 -0
  226. package/dist/lib/components/TextBox/TextBoxPicture.d.ts +17 -0
  227. package/dist/lib/components/TextBox/TextBoxPicture.js +48 -0
  228. package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.css +11 -0
  229. package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +13 -7
  230. package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.js +37 -17
  231. package/dist/lib/components/VideoBanner/VideoBanner.css +216 -0
  232. package/dist/lib/components/VideoBanner/VideoBanner.d.ts +90 -0
  233. package/dist/lib/components/VideoBanner/VideoBanner.js +309 -0
  234. package/dist/lib/components/VideoBlock/VideoBlock.css +127 -0
  235. package/dist/lib/components/VideoBlock/VideoBlock.d.ts +49 -0
  236. package/dist/lib/components/VideoBlock/VideoBlock.js +170 -0
  237. package/dist/lib/constants/throttleTime.d.ts +4 -0
  238. package/dist/lib/constants/throttleTime.js +10 -0
  239. package/dist/lib/index.d.ts +29 -17
  240. package/dist/lib/index.js +147 -51
  241. package/package.json +22 -77
  242. package/dist/es/components/ProductCard/ProductCardFeatures.css +0 -35
  243. package/dist/es/components/ProductCard/ProductCardFeatures.d.ts +0 -61
  244. package/dist/es/components/ProductCard/ProductCardFeatures.js +0 -82
  245. package/dist/es/components/ProductCard/ProductCardFeaturesBottom.css +0 -41
  246. package/dist/es/components/ProductCard/ProductCardFeaturesBottom.d.ts +0 -22
  247. package/dist/es/components/ProductCard/ProductCardFeaturesBottom.js +0 -80
  248. package/dist/es/components/ProductCard/ProductCardFeaturesTop.css +0 -16
  249. package/dist/es/components/ProductCard/ProductCardFeaturesTop.d.ts +0 -25
  250. package/dist/es/components/ProductCard/ProductCardFeaturesTop.js +0 -67
  251. package/dist/es/components/ProductCard/ProductCardInfo.css +0 -236
  252. package/dist/es/components/ProductCard/ProductCardInfo.d.ts +0 -75
  253. package/dist/es/components/ProductCard/ProductCardInfo.js +0 -169
  254. package/dist/es/components/ProductCard/ProductCardTotal.css +0 -113
  255. package/dist/es/components/ProductCard/ProductCardTotal.d.ts +0 -86
  256. package/dist/es/components/ProductCard/ProductCardTotal.js +0 -161
  257. package/dist/es/components/ProductCard/ProductCardWrapper.css +0 -162
  258. package/dist/es/components/ProductCard/ProductCardWrapper.d.ts +0 -53
  259. package/dist/es/components/ProductCard/ProductCardWrapper.js +0 -109
  260. package/dist/es/components/ProductSwitcher/ProductSwitcher.css +0 -372
  261. package/dist/es/components/ProductSwitcher/ProductSwitcher.d.ts +0 -86
  262. package/dist/es/components/ProductSwitcher/ProductSwitcher.js +0 -612
  263. package/dist/es/components/ProductTile/ProductTile.d.ts +0 -287
  264. package/dist/es/components/ProductTile/ProductTile.js +0 -497
  265. package/dist/es/components/ProductTile/ProductTileBuy.d.ts +0 -53
  266. package/dist/es/components/ProductTile/ProductTileBuy.js +0 -99
  267. package/dist/es/components/ProductTile/ProductTileCashback.d.ts +0 -20
  268. package/dist/es/components/ProductTile/ProductTileCashback.js +0 -60
  269. package/dist/es/components/ProductTile/ProductTileDynamic.d.ts +0 -42
  270. package/dist/es/components/ProductTile/ProductTileDynamic.js +0 -109
  271. package/dist/es/components/ProductTile/ProductTileHint.d.ts +0 -24
  272. package/dist/es/components/ProductTile/ProductTileHint.js +0 -67
  273. package/dist/es/components/ProductTile/ProductTileOptions.d.ts +0 -31
  274. package/dist/es/components/ProductTile/ProductTileOptions.js +0 -130
  275. package/dist/es/components/ProductTile/ProductTilePrice.d.ts +0 -26
  276. package/dist/es/components/ProductTile/ProductTilePrice.js +0 -75
  277. package/dist/es/components/ProductTile/ProductTileStatic.d.ts +0 -20
  278. package/dist/es/components/ProductTile/ProductTileStatic.js +0 -60
  279. package/dist/es/components/ProductTile/ProductTileValue.d.ts +0 -31
  280. package/dist/es/components/ProductTile/ProductTileValue.js +0 -111
  281. package/dist/es/components/ProductTile/style/ProductTile.css +0 -146
  282. package/dist/es/components/ProductTile/style/ProductTileBuy.css +0 -76
  283. package/dist/es/components/ProductTile/style/ProductTileCashback.css +0 -23
  284. package/dist/es/components/ProductTile/style/ProductTileDynamic.css +0 -38
  285. package/dist/es/components/ProductTile/style/ProductTileHint.css +0 -93
  286. package/dist/es/components/ProductTile/style/ProductTileOptions.css +0 -84
  287. package/dist/es/components/ProductTile/style/ProductTilePrice.css +0 -105
  288. package/dist/es/components/ProductTile/style/ProductTileStatic.css +0 -23
  289. package/dist/es/components/ProductTile/style/ProductTileValue.css +0 -58
  290. package/dist/es/components/ProductTileRest/ProductTileRest.css +0 -226
  291. package/dist/es/components/ProductTileRest/ProductTileRest.d.ts +0 -109
  292. package/dist/es/components/ProductTileRest/ProductTileRest.js +0 -291
  293. package/dist/es/constants/breakpoints.d.ts +0 -1
  294. package/dist/es/constants/breakpoints.js +0 -1
  295. package/dist/lib/components/ProductCard/ProductCardFeatures.css +0 -35
  296. package/dist/lib/components/ProductCard/ProductCardFeatures.d.ts +0 -61
  297. package/dist/lib/components/ProductCard/ProductCardFeatures.js +0 -141
  298. package/dist/lib/components/ProductCard/ProductCardFeaturesBottom.css +0 -41
  299. package/dist/lib/components/ProductCard/ProductCardFeaturesBottom.d.ts +0 -22
  300. package/dist/lib/components/ProductCard/ProductCardFeaturesBottom.js +0 -140
  301. package/dist/lib/components/ProductCard/ProductCardFeaturesTop.css +0 -16
  302. package/dist/lib/components/ProductCard/ProductCardFeaturesTop.d.ts +0 -25
  303. package/dist/lib/components/ProductCard/ProductCardFeaturesTop.js +0 -124
  304. package/dist/lib/components/ProductCard/ProductCardInfo.css +0 -236
  305. package/dist/lib/components/ProductCard/ProductCardInfo.d.ts +0 -75
  306. package/dist/lib/components/ProductCard/ProductCardInfo.js +0 -241
  307. package/dist/lib/components/ProductCard/ProductCardTotal.css +0 -113
  308. package/dist/lib/components/ProductCard/ProductCardTotal.d.ts +0 -86
  309. package/dist/lib/components/ProductCard/ProductCardTotal.js +0 -218
  310. package/dist/lib/components/ProductCard/ProductCardWrapper.css +0 -162
  311. package/dist/lib/components/ProductCard/ProductCardWrapper.d.ts +0 -53
  312. package/dist/lib/components/ProductCard/ProductCardWrapper.js +0 -170
  313. package/dist/lib/components/ProductSwitcher/ProductSwitcher.css +0 -372
  314. package/dist/lib/components/ProductSwitcher/ProductSwitcher.d.ts +0 -86
  315. package/dist/lib/components/ProductSwitcher/ProductSwitcher.js +0 -686
  316. package/dist/lib/components/ProductTile/ProductTile.d.ts +0 -287
  317. package/dist/lib/components/ProductTile/ProductTile.js +0 -590
  318. package/dist/lib/components/ProductTile/ProductTileBuy.d.ts +0 -53
  319. package/dist/lib/components/ProductTile/ProductTileBuy.js +0 -156
  320. package/dist/lib/components/ProductTile/ProductTileCashback.d.ts +0 -20
  321. package/dist/lib/components/ProductTile/ProductTileCashback.js +0 -117
  322. package/dist/lib/components/ProductTile/ProductTileDynamic.d.ts +0 -42
  323. package/dist/lib/components/ProductTile/ProductTileDynamic.js +0 -174
  324. package/dist/lib/components/ProductTile/ProductTileHint.d.ts +0 -24
  325. package/dist/lib/components/ProductTile/ProductTileHint.js +0 -124
  326. package/dist/lib/components/ProductTile/ProductTileOptions.d.ts +0 -31
  327. package/dist/lib/components/ProductTile/ProductTileOptions.js +0 -193
  328. package/dist/lib/components/ProductTile/ProductTilePrice.d.ts +0 -26
  329. package/dist/lib/components/ProductTile/ProductTilePrice.js +0 -136
  330. package/dist/lib/components/ProductTile/ProductTileStatic.d.ts +0 -20
  331. package/dist/lib/components/ProductTile/ProductTileStatic.js +0 -123
  332. package/dist/lib/components/ProductTile/ProductTileValue.d.ts +0 -31
  333. package/dist/lib/components/ProductTile/ProductTileValue.js +0 -171
  334. package/dist/lib/components/ProductTile/style/ProductTile.css +0 -146
  335. package/dist/lib/components/ProductTile/style/ProductTileBuy.css +0 -76
  336. package/dist/lib/components/ProductTile/style/ProductTileCashback.css +0 -23
  337. package/dist/lib/components/ProductTile/style/ProductTileDynamic.css +0 -38
  338. package/dist/lib/components/ProductTile/style/ProductTileHint.css +0 -93
  339. package/dist/lib/components/ProductTile/style/ProductTileOptions.css +0 -84
  340. package/dist/lib/components/ProductTile/style/ProductTilePrice.css +0 -105
  341. package/dist/lib/components/ProductTile/style/ProductTileStatic.css +0 -23
  342. package/dist/lib/components/ProductTile/style/ProductTileValue.css +0 -58
  343. package/dist/lib/components/ProductTileRest/ProductTileRest.css +0 -226
  344. package/dist/lib/components/ProductTileRest/ProductTileRest.d.ts +0 -109
  345. package/dist/lib/components/ProductTileRest/ProductTileRest.js +0 -364
  346. package/dist/lib/constants/breakpoints.d.ts +0 -1
  347. package/dist/lib/constants/breakpoints.js +0 -8
@@ -0,0 +1,80 @@
1
+ h1,
2
+ h2,
3
+ h3,
4
+ h4,
5
+ h5 {
6
+ margin: 0;
7
+ }
8
+ @media screen and (min-width: 1024px) {
9
+ .mfui-beta-picture-with-description {
10
+ display: -webkit-box;
11
+ display: -ms-flexbox;
12
+ display: flex;
13
+ -webkit-box-align: center;
14
+ -ms-flex-align: center;
15
+ align-items: center;
16
+ -webkit-box-pack: center;
17
+ -ms-flex-pack: center;
18
+ justify-content: center;
19
+ }
20
+ }
21
+ .mfui-beta-picture-with-description__title {
22
+ margin-bottom: 24px;
23
+ }
24
+ .mfui-beta-picture-with-description__picture {
25
+ -ms-flex-item-align: start;
26
+ align-self: flex-start;
27
+ overflow: hidden;
28
+ text-align: center;
29
+ }
30
+ @media screen and (max-width: 1023px) {
31
+ .mfui-beta-picture-with-description__picture {
32
+ margin: 0 auto 32px;
33
+ }
34
+ }
35
+ @media screen and (min-width: 1024px) {
36
+ .mfui-beta-picture-with-description__picture {
37
+ -webkit-box-ordinal-group: 3;
38
+ -ms-flex-order: 2;
39
+ order: 2;
40
+ width: 50%;
41
+ }
42
+ }
43
+ @media screen and (min-width: 1024px) {
44
+ .mfui-beta-picture-with-description__picture_align_left {
45
+ -webkit-box-ordinal-group: 1;
46
+ -ms-flex-order: 0;
47
+ order: 0;
48
+ margin-right: 20px;
49
+ }
50
+ }
51
+ .mfui-beta-picture-with-description__img {
52
+ width: 100%;
53
+ max-width: 550px;
54
+ height: 100%;
55
+ }
56
+ .mfui-beta-picture-with-description__content :first-child {
57
+ margin-top: 0 !important;
58
+ }
59
+ .mfui-beta-picture-with-description__content :last-child {
60
+ margin-bottom: 0 !important;
61
+ }
62
+ @media screen and (min-width: 1024px) {
63
+ .mfui-beta-picture-with-description__articles {
64
+ -webkit-box-ordinal-group: 2;
65
+ -ms-flex-order: 1;
66
+ order: 1;
67
+ width: 50%;
68
+ }
69
+ }
70
+ @media screen and (min-width: 1024px) {
71
+ .mfui-beta-picture-with-description__articles_text-top-align {
72
+ -ms-flex-item-align: start;
73
+ align-self: flex-start;
74
+ }
75
+ }
76
+ @media screen and (min-width: 1024px) {
77
+ .mfui-beta-picture-with-description__articles_align_right {
78
+ margin-right: 20px;
79
+ }
80
+ }
@@ -0,0 +1,28 @@
1
+ import * as React from 'react';
2
+ import './PictureWithDescription.less';
3
+ export declare const pictureAlignTypes: {
4
+ readonly LEFT: "left";
5
+ readonly RIGHT: "right";
6
+ };
7
+ declare 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
+ /** Выравнивание текста по верхнему краю */
25
+ isTextTopAlign?: boolean;
26
+ }
27
+ declare const PictureWithDescription: React.FC<IPictureWithDescriptionProps>;
28
+ export default PictureWithDescription;
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = exports.pictureAlignTypes = void 0;
9
+
10
+ var React = _interopRequireWildcard(require("react"));
11
+
12
+ var _propTypes = _interopRequireDefault(require("prop-types"));
13
+
14
+ var _uiHelpers = require("@megafon/ui-helpers");
15
+
16
+ var _uiCore = require("@megafon/ui-core");
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
+
20
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
21
+
22
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
+
24
+ var pictureAlignTypes = {
25
+ LEFT: 'left',
26
+ RIGHT: 'right'
27
+ };
28
+ exports.pictureAlignTypes = pictureAlignTypes;
29
+ var cn = (0, _uiHelpers.cnCreate)('mfui-beta-picture-with-description');
30
+
31
+ var PictureWithDescription = function PictureWithDescription(_ref) {
32
+ var rootRef = _ref.rootRef,
33
+ className = _ref.className,
34
+ _ref$classes = _ref.classes,
35
+ classes = _ref$classes === void 0 ? {} : _ref$classes,
36
+ title = _ref.title,
37
+ pictureUrl = _ref.pictureUrl,
38
+ _ref$pictureAlign = _ref.pictureAlign,
39
+ pictureAlign = _ref$pictureAlign === void 0 ? 'left' : _ref$pictureAlign,
40
+ isTextTopAlign = _ref.isTextTopAlign,
41
+ children = _ref.children;
42
+ return /*#__PURE__*/React.createElement("div", {
43
+ className: cn([className, classes.root]),
44
+ ref: rootRef
45
+ }, /*#__PURE__*/React.createElement("div", {
46
+ className: cn('picture', {
47
+ align: pictureAlign
48
+ })
49
+ }, /*#__PURE__*/React.createElement("img", {
50
+ className: cn('img'),
51
+ src: pictureUrl,
52
+ alt: ""
53
+ })), /*#__PURE__*/React.createElement("div", {
54
+ className: cn('articles', {
55
+ align: pictureAlign,
56
+ 'text-top-align': isTextTopAlign
57
+ })
58
+ }, !!title && /*#__PURE__*/React.createElement(_uiCore.Header, {
59
+ className: cn('title', [classes.title]),
60
+ as: "h2"
61
+ }, title), /*#__PURE__*/React.createElement("div", {
62
+ className: cn('content')
63
+ }, children)));
64
+ };
65
+
66
+ PictureWithDescription.propTypes = {
67
+ rootRef: _propTypes["default"].oneOfType([_propTypes["default"].func, _propTypes["default"].oneOfType([_propTypes["default"].shape({
68
+ current: _propTypes["default"].elementType
69
+ }), _propTypes["default"].any])]),
70
+ className: _propTypes["default"].string,
71
+ classes: _propTypes["default"].shape({
72
+ root: _propTypes["default"].string,
73
+ title: _propTypes["default"].string
74
+ }),
75
+ title: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].node, _propTypes["default"].arrayOf(_propTypes["default"].node)]),
76
+ pictureUrl: _propTypes["default"].string.isRequired,
77
+ pictureAlign: _propTypes["default"].oneOf([pictureAlignTypes.LEFT, pictureAlignTypes.RIGHT]),
78
+ isTextTopAlign: _propTypes["default"].bool
79
+ };
80
+ var _default = PictureWithDescription;
81
+ exports["default"] = _default;
@@ -0,0 +1,125 @@
1
+ h1,
2
+ h2,
3
+ h3,
4
+ h4,
5
+ h5 {
6
+ margin: 0;
7
+ }
8
+ .mfui-beta-property__wrapper {
9
+ display: -webkit-box;
10
+ display: -ms-flexbox;
11
+ display: flex;
12
+ -webkit-box-orient: vertical;
13
+ -webkit-box-direction: normal;
14
+ -ms-flex-direction: column;
15
+ flex-direction: column;
16
+ padding: 24px 0;
17
+ border-top: 1px solid #D8D8D8;
18
+ }
19
+ @media screen and (min-width: 1280px) {
20
+ .mfui-beta-property__wrapper {
21
+ padding: 26px 0;
22
+ }
23
+ }
24
+ .mfui-beta-property_border-bottom .mfui-beta-property__wrapper {
25
+ border-bottom: 1px solid #D8D8D8;
26
+ }
27
+ .mfui-beta-property__content {
28
+ display: -webkit-box;
29
+ display: -ms-flexbox;
30
+ display: flex;
31
+ }
32
+ .mfui-beta-property__item {
33
+ display: -webkit-box;
34
+ display: -ms-flexbox;
35
+ display: flex;
36
+ }
37
+ .mfui-beta-property__icon {
38
+ display: inline-block;
39
+ width: 24px;
40
+ height: 24px;
41
+ margin-right: 9px;
42
+ margin-left: 1px;
43
+ overflow: hidden;
44
+ vertical-align: bottom;
45
+ }
46
+ .mfui-beta-property__badge {
47
+ padding: 2px 8px;
48
+ border-radius: 2px;
49
+ color: #FFFFFF;
50
+ font-size: 12px;
51
+ background: #FFA717;
52
+ }
53
+ .mfui-beta-property__inner {
54
+ -webkit-box-flex: 1;
55
+ -ms-flex-positive: 1;
56
+ flex-grow: 1;
57
+ padding-right: 20px;
58
+ }
59
+ @media screen and (min-width: 768px) and (max-width: 1023px) {
60
+ .mfui-beta-property__inner {
61
+ padding-right: 77px;
62
+ }
63
+ }
64
+ @media screen and (max-width: 767px) {
65
+ .mfui-beta-property__inner {
66
+ padding-right: 8px;
67
+ }
68
+ }
69
+ .mfui-beta-property__items-wrapper {
70
+ width: 100%;
71
+ }
72
+ .mfui-beta-property__value-wrapper {
73
+ display: -webkit-box;
74
+ display: -ms-flexbox;
75
+ display: flex;
76
+ -ms-flex-negative: 0;
77
+ flex-shrink: 0;
78
+ -webkit-box-align: start;
79
+ -ms-flex-align: start;
80
+ align-items: flex-start;
81
+ -webkit-box-pack: end;
82
+ -ms-flex-pack: end;
83
+ justify-content: flex-end;
84
+ width: 35%;
85
+ }
86
+ @media screen and (max-width: 479px) {
87
+ .mfui-beta-property__value-wrapper {
88
+ width: auto;
89
+ padding-left: 10px;
90
+ }
91
+ }
92
+ .mfui-beta-property__value-wrapper_merged {
93
+ -webkit-box-align: center;
94
+ -ms-flex-align: center;
95
+ align-items: center;
96
+ border-left: 1px solid #D8D8D8;
97
+ }
98
+ .mfui-beta-property__desc {
99
+ margin-top: 8px;
100
+ }
101
+ .mfui-beta-property__item + .mfui-beta-property__item {
102
+ margin-top: 16px;
103
+ }
104
+ .mfui-beta-property__value {
105
+ max-width: 234px;
106
+ white-space: pre-line;
107
+ text-align: right;
108
+ font-weight: 500;
109
+ font-size: 18px;
110
+ line-height: 24px;
111
+ letter-spacing: 0.5px;
112
+ }
113
+ @media screen and (min-width: 1280px) {
114
+ .mfui-beta-property__value {
115
+ font-size: 20px;
116
+ line-height: 28px;
117
+ }
118
+ }
119
+ @media screen and (max-width: 767px) {
120
+ .mfui-beta-property__value {
121
+ font-size: 15px;
122
+ line-height: 24px;
123
+ font-weight: 500;
124
+ }
125
+ }
@@ -0,0 +1,33 @@
1
+ import React, { Ref } from 'react';
2
+ import './Property.less';
3
+ import { Item } from './types';
4
+ export interface IProperty {
5
+ /** Ссылка на корневой элемент */
6
+ rootRef?: Ref<HTMLDivElement>;
7
+ /** Массив с данными для строки */
8
+ items: Item[];
9
+ /** Дополнительный класс для основного контейнера */
10
+ className?: string;
11
+ /** Текст для бейджа */
12
+ badge?: string;
13
+ /** Наличие нижней границы */
14
+ borderBottom?: boolean;
15
+ /** Единое значение для всей строки */
16
+ mergedValue?: string;
17
+ /** Иконка для строки */
18
+ icon?: React.ReactNode;
19
+ /** Растягивание компонента на всю доступную ширину */
20
+ fullWidth?: boolean;
21
+ /** Дата атрибуты для корневого элемента */
22
+ dataAttrs?: {
23
+ [key: string]: string;
24
+ };
25
+ /** Дополнительные классы для внутренних элементов */
26
+ classes?: {
27
+ title?: string;
28
+ openedDescription?: string;
29
+ toggleDescription?: string;
30
+ };
31
+ }
32
+ declare const Property: React.FC<IProperty>;
33
+ export default Property;
@@ -0,0 +1,152 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ require("core-js/modules/es.symbol");
9
+
10
+ require("core-js/modules/es.symbol.description");
11
+
12
+ require("core-js/modules/es.array.map");
13
+
14
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
15
+
16
+ var _react = _interopRequireDefault(require("react"));
17
+
18
+ var _propTypes = _interopRequireDefault(require("prop-types"));
19
+
20
+ var _uiCore = require("@megafon/ui-core");
21
+
22
+ var _uiHelpers = require("@megafon/ui-helpers");
23
+
24
+ var _PropertyDescription = _interopRequireDefault(require("./PropertyDescription"));
25
+
26
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
+
28
+ var cn = (0, _uiHelpers.cnCreate)('mfui-beta-property');
29
+
30
+ var Property = function Property(_ref) {
31
+ var rootRef = _ref.rootRef,
32
+ items = _ref.items,
33
+ className = _ref.className,
34
+ _ref$badge = _ref.badge,
35
+ badge = _ref$badge === void 0 ? '' : _ref$badge,
36
+ icon = _ref.icon,
37
+ _ref$borderBottom = _ref.borderBottom,
38
+ borderBottom = _ref$borderBottom === void 0 ? false : _ref$borderBottom,
39
+ _ref$mergedValue = _ref.mergedValue,
40
+ mergedValue = _ref$mergedValue === void 0 ? '' : _ref$mergedValue,
41
+ _ref$fullWidth = _ref.fullWidth,
42
+ fullWidth = _ref$fullWidth === void 0 ? false : _ref$fullWidth,
43
+ _ref$classes = _ref.classes,
44
+ classes = _ref$classes === void 0 ? {} : _ref$classes,
45
+ dataAttrs = _ref.dataAttrs;
46
+
47
+ var renderTitle = _react["default"].useCallback(function (title) {
48
+ return title && title.map(function (titleItem, i) {
49
+ return /*#__PURE__*/_react["default"].createElement(_uiCore.Header, {
50
+ as: 'h5',
51
+ key: i,
52
+ className: classes.title
53
+ }, icon && i === 0 && /*#__PURE__*/_react["default"].createElement("div", {
54
+ className: cn('icon')
55
+ }, icon), titleItem);
56
+ });
57
+ }, []);
58
+
59
+ var renderDescription = _react["default"].useCallback(function (description) {
60
+ return description && description.map(function (_ref2, j) {
61
+ var value = _ref2.value,
62
+ isCollapsible = _ref2.isCollapsible;
63
+ return /*#__PURE__*/_react["default"].createElement("div", {
64
+ className: cn('desc'),
65
+ key: j
66
+ }, /*#__PURE__*/_react["default"].createElement(_PropertyDescription["default"], {
67
+ value: value,
68
+ isCollapsible: isCollapsible,
69
+ classes: {
70
+ open: classes.openedDescription,
71
+ toggle: classes.toggleDescription
72
+ }
73
+ }));
74
+ });
75
+ }, []);
76
+
77
+ var getColumnConfig = _react["default"].useCallback(function () {
78
+ return fullWidth ? {
79
+ all: '12'
80
+ } : {
81
+ wide: '8',
82
+ desktop: '10',
83
+ tablet: '12',
84
+ mobile: '12'
85
+ };
86
+ }, [fullWidth]);
87
+
88
+ return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
89
+ className: cn({
90
+ 'border-bottom': borderBottom
91
+ }, [className]),
92
+ ref: rootRef
93
+ }, (0, _uiHelpers.filterDataAttrs)(dataAttrs)), /*#__PURE__*/_react["default"].createElement(_uiCore.Grid, null, /*#__PURE__*/_react["default"].createElement(_uiCore.GridColumn, getColumnConfig(), /*#__PURE__*/_react["default"].createElement("div", {
94
+ className: cn('wrapper')
95
+ }, badge && /*#__PURE__*/_react["default"].createElement("div", {
96
+ className: cn('badge-wrapper')
97
+ }, /*#__PURE__*/_react["default"].createElement("span", {
98
+ className: cn('badge')
99
+ }, badge)), /*#__PURE__*/_react["default"].createElement("div", {
100
+ className: cn('content')
101
+ }, /*#__PURE__*/_react["default"].createElement("div", {
102
+ className: cn('items-wrapper')
103
+ }, items.map(function (_ref3, i) {
104
+ var title = _ref3.title,
105
+ value = _ref3.value,
106
+ description = _ref3.description;
107
+ return /*#__PURE__*/_react["default"].createElement("div", {
108
+ className: cn('item'),
109
+ key: i
110
+ }, /*#__PURE__*/_react["default"].createElement("div", {
111
+ className: cn('inner')
112
+ }, renderTitle(title), renderDescription(description)), !mergedValue && /*#__PURE__*/_react["default"].createElement("div", {
113
+ className: cn('value-wrapper')
114
+ }, value && /*#__PURE__*/_react["default"].createElement("span", {
115
+ className: cn('value')
116
+ }, value)));
117
+ })), mergedValue && /*#__PURE__*/_react["default"].createElement("div", {
118
+ className: cn('value-wrapper', {
119
+ merged: true
120
+ })
121
+ }, /*#__PURE__*/_react["default"].createElement(_uiCore.Header, {
122
+ as: "h3"
123
+ }, mergedValue)))))));
124
+ };
125
+
126
+ Property.propTypes = {
127
+ rootRef: _propTypes["default"].oneOfType([_propTypes["default"].func, _propTypes["default"].oneOfType([_propTypes["default"].shape({
128
+ current: _propTypes["default"].elementType
129
+ }), _propTypes["default"].any])]),
130
+ items: _propTypes["default"].arrayOf(_propTypes["default"].shape({
131
+ title: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].arrayOf(_propTypes["default"].node)]),
132
+ description: _propTypes["default"].arrayOf(_propTypes["default"].shape({
133
+ value: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].arrayOf(_propTypes["default"].node)]).isRequired,
134
+ isCollapsible: _propTypes["default"].bool
135
+ })),
136
+ value: _propTypes["default"].string
137
+ }).isRequired).isRequired,
138
+ className: _propTypes["default"].string,
139
+ badge: _propTypes["default"].string,
140
+ borderBottom: _propTypes["default"].bool,
141
+ mergedValue: _propTypes["default"].string,
142
+ icon: _propTypes["default"].node,
143
+ fullWidth: _propTypes["default"].bool,
144
+ dataAttrs: _propTypes["default"].objectOf(_propTypes["default"].string.isRequired),
145
+ classes: _propTypes["default"].shape({
146
+ title: _propTypes["default"].string,
147
+ openedDescription: _propTypes["default"].string,
148
+ toggleDescription: _propTypes["default"].string
149
+ })
150
+ };
151
+ var _default = Property;
152
+ exports["default"] = _default;
@@ -0,0 +1,17 @@
1
+ h1,
2
+ h2,
3
+ h3,
4
+ h4,
5
+ h5 {
6
+ margin: 0;
7
+ }
8
+ .mfui-beta-property-description__collapse {
9
+ color: #34AAF2;
10
+ font-size: 12px;
11
+ -webkit-text-decoration: underline dashed #34AAF2;
12
+ text-decoration: underline dashed #34AAF2;
13
+ cursor: pointer;
14
+ }
15
+ .mfui-beta-property-description__content-inner {
16
+ margin-top: 8px;
17
+ }
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import './PropertyDescription.less';
3
+ import { Desc } from './types';
4
+ declare const PropertyDescription: React.FC<Desc>;
5
+ export default PropertyDescription;
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
+
12
+ var React = _interopRequireWildcard(require("react"));
13
+
14
+ var _propTypes = _interopRequireDefault(require("prop-types"));
15
+
16
+ var _uiCore = require("@megafon/ui-core");
17
+
18
+ var _uiHelpers = require("@megafon/ui-helpers");
19
+
20
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
21
+
22
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
+
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
+
26
+ var cn = (0, _uiHelpers.cnCreate)('mfui-beta-property-description');
27
+
28
+ var PropertyDescription = function PropertyDescription(_ref) {
29
+ var value = _ref.value,
30
+ _ref$isCollapsible = _ref.isCollapsible,
31
+ isCollapsible = _ref$isCollapsible === void 0 ? false : _ref$isCollapsible,
32
+ _ref$classes = _ref.classes,
33
+ classes = _ref$classes === void 0 ? {} : _ref$classes;
34
+
35
+ var _React$useState = React.useState(false),
36
+ _React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
37
+ isOpened = _React$useState2[0],
38
+ setIsOpened = _React$useState2[1];
39
+
40
+ var handleClickDesc = React.useCallback(function () {
41
+ return setIsOpened(!isOpened);
42
+ }, [isOpened]);
43
+
44
+ if (isCollapsible) {
45
+ return /*#__PURE__*/React.createElement("div", {
46
+ className: cn([isOpened ? classes.open : undefined])
47
+ }, /*#__PURE__*/React.createElement("span", {
48
+ className: cn('collapse', classes.toggle),
49
+ onClick: handleClickDesc
50
+ }, isOpened ? 'Скрыть' : 'Подробнее'), /*#__PURE__*/React.createElement(_uiCore.Collapse, {
51
+ className: cn('content'),
52
+ classNameContainer: cn('content-inner'),
53
+ isOpened: isOpened
54
+ }, value));
55
+ }
56
+
57
+ return /*#__PURE__*/React.createElement("div", {
58
+ className: cn()
59
+ }, value);
60
+ };
61
+
62
+ PropertyDescription.propTypes = {
63
+ value: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].arrayOf(_propTypes["default"].node)]).isRequired,
64
+ isCollapsible: _propTypes["default"].bool,
65
+ classes: _propTypes["default"].shape({
66
+ open: _propTypes["default"].string,
67
+ toggle: _propTypes["default"].string
68
+ })
69
+ };
70
+ var _default = PropertyDescription;
71
+ exports["default"] = _default;
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ export declare type Desc = {
3
+ value: string | React.ReactNode[];
4
+ isCollapsible?: boolean;
5
+ classes?: {
6
+ toggle?: string;
7
+ open?: string;
8
+ };
9
+ };
10
+ export declare type Item = {
11
+ title?: string[] | React.ReactNode[];
12
+ description?: Desc[];
13
+ value?: string;
14
+ };
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,41 @@
1
+ h1,
2
+ h2,
3
+ h3,
4
+ h4,
5
+ h5 {
6
+ margin: 0;
7
+ }
8
+ .mfui-beta-steps {
9
+ width: 66%;
10
+ margin-right: auto;
11
+ margin-left: auto;
12
+ }
13
+ @media screen and (min-width: 1280px) {
14
+ .mfui-beta-steps {
15
+ width: 49%;
16
+ }
17
+ }
18
+ @media screen and (max-width: 767px) {
19
+ .mfui-beta-steps {
20
+ width: 100%;
21
+ }
22
+ }
23
+ .mfui-beta-steps__title {
24
+ margin-bottom: 40px;
25
+ }
26
+ .mfui-beta-steps__list {
27
+ margin: 0;
28
+ padding: 0;
29
+ list-style: none;
30
+ }
31
+ .mfui-beta-steps__item {
32
+ margin-bottom: 48px;
33
+ }
34
+ @media screen and (max-width: 767px) {
35
+ .mfui-beta-steps__item {
36
+ margin-bottom: 24px;
37
+ }
38
+ }
39
+ .mfui-beta-steps__item:last-child {
40
+ margin-bottom: 0;
41
+ }
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import './Steps.less';
3
+ export interface ISteps {
4
+ /** Ссылка на корневой элемент */
5
+ rootRef?: React.Ref<HTMLDivElement>;
6
+ /** Заголовок */
7
+ title: string;
8
+ }
9
+ declare const Steps: React.FC<ISteps>;
10
+ export default Steps;