@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
@@ -1,169 +0,0 @@
1
- import "core-js/modules/es.symbol";
2
- import "core-js/modules/es.symbol.description";
3
- import "core-js/modules/es.array.concat";
4
- import "core-js/modules/es.array.map";
5
- import "core-js/modules/es.date.to-string";
6
- import "core-js/modules/es.object.to-string";
7
- import "core-js/modules/es.reflect.construct";
8
- import "core-js/modules/es.regexp.to-string";
9
- import "core-js/modules/es.string.link";
10
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
11
- import _createClass from "@babel/runtime/helpers/createClass";
12
- import _inherits from "@babel/runtime/helpers/inherits";
13
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
14
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
15
-
16
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
17
-
18
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
19
-
20
- import * as React from 'react';
21
- import * as PropTypes from 'prop-types';
22
- import { cnCreate, Header, BubbleHint, TextLink } from '@megafon/ui-core';
23
- import "./ProductCardInfo.css";
24
- var cn = cnCreate('mfui-beta-product-card-info');
25
-
26
- var ProductCardInfo = /*#__PURE__*/function (_React$Component) {
27
- _inherits(ProductCardInfo, _React$Component);
28
-
29
- var _super = _createSuper(ProductCardInfo);
30
-
31
- function ProductCardInfo() {
32
- var _this;
33
-
34
- _classCallCheck(this, ProductCardInfo);
35
-
36
- _this = _super.apply(this, arguments);
37
-
38
- _this.handleClickMoreInfo = function (e) {
39
- var onClickMoreInfo = _this.props.onClickMoreInfo;
40
- onClickMoreInfo && onClickMoreInfo(e);
41
- };
42
-
43
- return _this;
44
- }
45
-
46
- _createClass(ProductCardInfo, [{
47
- key: "renderBadges",
48
- value: function renderBadges() {
49
- var _this2 = this;
50
-
51
- var badgeTitle = function badgeTitle(badge) {
52
- return /*#__PURE__*/React.createElement("div", {
53
- className: cn('badge-title')
54
- }, badge.title);
55
- };
56
-
57
- return /*#__PURE__*/React.createElement("div", {
58
- className: cn('badges')
59
- }, this.props.badges.map(function (badge, key) {
60
- return /*#__PURE__*/React.createElement("div", {
61
- key: "".concat(badge.title).concat(key),
62
- className: cn('badge', {
63
- type: badge.code
64
- })
65
- }, badge.hint ? _this2.renderBubbleHint(badgeTitle(badge), badge.hint) : badgeTitle(badge));
66
- }));
67
- }
68
- }, {
69
- key: "renderBubbleHint",
70
- value: function renderBubbleHint(title, hint) {
71
- return /*#__PURE__*/React.createElement(BubbleHint, {
72
- popupWidth: "small",
73
- placement: "right",
74
- trigger: title
75
- }, /*#__PURE__*/React.createElement("div", {
76
- dangerouslySetInnerHTML: {
77
- __html: hint
78
- }
79
- }));
80
- }
81
- }, {
82
- key: "render",
83
- value: function render() {
84
- var _this$props = this.props,
85
- badges = _this$props.badges,
86
- description = _this$props.description,
87
- descriptionIcon = _this$props.descriptionIcon,
88
- link = _this$props.link,
89
- linkText = _this$props.linkText,
90
- title = _this$props.title,
91
- additionalParams = _this$props.additionalParams,
92
- className = _this$props.className,
93
- classNameDescription = _this$props.classNameDescription,
94
- classNameDescriptionText = _this$props.classNameDescriptionText,
95
- classNameParams = _this$props.classNameParams,
96
- classNameParamsItem = _this$props.classNameParamsItem,
97
- linkTarget = _this$props.linkTarget;
98
- return /*#__PURE__*/React.createElement("div", {
99
- className: cn('', {}, className)
100
- }, /*#__PURE__*/React.createElement("div", {
101
- className: cn('description', {}, classNameDescription)
102
- }, /*#__PURE__*/React.createElement(Header, {
103
- className: cn('description-title'),
104
- as: "h2",
105
- margin: false
106
- }, title), badges && this.renderBadges(), description && /*#__PURE__*/React.createElement("div", {
107
- className: cn('description-wrap')
108
- }, descriptionIcon && React.cloneElement(descriptionIcon, {
109
- className: cn('description-icon')
110
- }), typeof description === 'string' ? /*#__PURE__*/React.createElement("div", {
111
- className: cn('description-text', {}, classNameDescriptionText),
112
- dangerouslySetInnerHTML: {
113
- __html: description
114
- }
115
- }) : /*#__PURE__*/React.createElement("div", {
116
- className: cn('description-text', {}, classNameDescriptionText)
117
- }, description)), /*#__PURE__*/React.createElement(TextLink, {
118
- className: cn('description-more'),
119
- href: link,
120
- target: linkTarget,
121
- onClick: this.handleClickMoreInfo
122
- }, linkText)), /*#__PURE__*/React.createElement("div", {
123
- className: cn('params', {}, classNameParams)
124
- }, /*#__PURE__*/React.createElement("ul", {
125
- className: cn('params-list')
126
- }, additionalParams.map(function (param, key) {
127
- return /*#__PURE__*/React.createElement("li", {
128
- key: param.title + key,
129
- className: cn('params-item', {}, classNameParamsItem)
130
- }, /*#__PURE__*/React.createElement("span", {
131
- "data-amount": param.value
132
- }, param.value), " ", param.unit);
133
- }))));
134
- }
135
- }]);
136
-
137
- return ProductCardInfo;
138
- }(React.Component);
139
-
140
- ProductCardInfo.propTypes = {
141
- title: PropTypes.string.isRequired,
142
- link: PropTypes.string.isRequired,
143
- linkTarget: PropTypes.oneOf(['_self', '_blank', '_parent', '_top']),
144
- linkText: PropTypes.string,
145
- description: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
146
- descriptionIcon: PropTypes.element,
147
- badges: PropTypes.arrayOf(PropTypes.shape({
148
- title: PropTypes.string.isRequired,
149
- code: PropTypes.string.isRequired,
150
- hint: PropTypes.string
151
- })),
152
- additionalParams: PropTypes.arrayOf(PropTypes.shape({
153
- title: PropTypes.string.isRequired,
154
- value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
155
- unit: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).isRequired
156
- })),
157
- className: PropTypes.string,
158
- classNameDescription: PropTypes.string,
159
- classNameDescriptionText: PropTypes.string,
160
- classNameParams: PropTypes.string,
161
- classNameParamsItem: PropTypes.string,
162
- onClickMoreInfo: PropTypes.func
163
- };
164
- ProductCardInfo.defaultProps = {
165
- linkTarget: '_self',
166
- linkText: 'Подробнее',
167
- additionalParams: []
168
- };
169
- export default ProductCardInfo;
@@ -1,113 +0,0 @@
1
- h1,
2
- h2,
3
- h3,
4
- h4,
5
- h5 {
6
- margin: 0;
7
- }
8
- .mfui-beta-product-card-total {
9
- font-family: inherit;
10
- -ms-flex-negative: 0;
11
- flex-shrink: 0;
12
- }
13
- .mfui-beta-product-card-total__wrap {
14
- text-align: center;
15
- }
16
- .mfui-beta-product-card-total__cost {
17
- font-size: 18px;
18
- line-height: 24px;
19
- font-weight: 500;
20
- letter-spacing: 0.5px;
21
- margin-bottom: 8px;
22
- }
23
- @media screen and (min-width: 1280px) {
24
- .mfui-beta-product-card-total__cost {
25
- font-size: 20px;
26
- line-height: 28px;
27
- }
28
- }
29
- .mfui-beta-product-card-total__cost_old-value .mfui-beta-product-card-total__price {
30
- font-size: 28px;
31
- font-weight: bold;
32
- }
33
- .mfui-beta-product-card-total__old-price {
34
- position: relative;
35
- }
36
- .mfui-beta-product-card-total__old-price:before {
37
- content: '';
38
- position: absolute;
39
- left: 0;
40
- right: 0;
41
- top: 10px;
42
- border-bottom: 2px solid #F62434;
43
- }
44
- .mfui-beta-product-card-total__buttons .b-link {
45
- width: 100% !important;
46
- margin-bottom: 0 !important;
47
- margin-right: 0 !important;
48
- padding-left: 0 !important;
49
- padding-right: 0 !important;
50
- }
51
- .mfui-beta-product-card-total__buttons .b-link + .b-link {
52
- margin-top: 12px;
53
- }
54
- .mfui-beta-product-card-total__buttons .b-link_view_with-subtitle {
55
- padding-top: 0;
56
- }
57
- .mfui-beta-product-card-total__buttons .b-link_view_with-subtitle .b-link__title {
58
- margin-bottom: 0;
59
- }
60
- .mfui-beta-product-card-total__connect-button {
61
- cursor: pointer;
62
- height: 48px;
63
- -webkit-box-sizing: border-box;
64
- box-sizing: border-box;
65
- display: -webkit-inline-box;
66
- display: -ms-inline-flexbox;
67
- display: inline-flex;
68
- -webkit-box-align: center;
69
- -ms-flex-align: center;
70
- align-items: center;
71
- -webkit-box-pack: center;
72
- -ms-flex-pack: center;
73
- justify-content: center;
74
- width: 100%;
75
- vertical-align: top;
76
- }
77
- .mfui-beta-product-card-total__connect-text-block {
78
- -ms-flex-negative: 1;
79
- flex-shrink: 1;
80
- }
81
- .mfui-beta-product-card-total__connect-text-words {
82
- display: inline-block;
83
- width: 100%;
84
- color: #34AAF2;
85
- }
86
- .product-card-wrapper_theme_default .mfui-beta-product-card-total {
87
- width: 200px;
88
- }
89
- @media screen and (max-width: 479px) {
90
- .product-card-wrapper_theme_default .mfui-beta-product-card-total {
91
- margin: 0 auto;
92
- }
93
- }
94
- @media screen and (min-width: 768px) and (max-width: 1023px) {
95
- .product-card-wrapper_theme_default .mfui-beta-product-card-total {
96
- width: 165px;
97
- }
98
- }
99
- @media screen and (min-width: 1024px) {
100
- .product-card-wrapper_theme_default .mfui-beta-product-card-total {
101
- width: 196px;
102
- }
103
- }
104
- @media screen and (min-width: 1280px) {
105
- .product-card-wrapper_theme_default .mfui-beta-product-card-total {
106
- width: 268px;
107
- }
108
- }
109
- @media screen and (min-width: 1280px) {
110
- .product-card-wrapper_theme_default .mfui-beta-product-card-total__wrap {
111
- width: 200px;
112
- }
113
- }
@@ -1,86 +0,0 @@
1
- import * as React from 'react';
2
- import * as PropTypes from 'prop-types';
3
- import './ProductCardTotal.less';
4
- export declare type TLinkTargetType = '_self' | '_blank' | '_parent' | '_top';
5
- export interface IProductCardTotalProps {
6
- /** Payment
7
- * Object with args: value: string(required), unit: string(required), oldValue: string
8
- */
9
- payment?: {
10
- value: string | number;
11
- unit: string;
12
- oldValue?: string;
13
- };
14
- /** Info - any type - return with onSubmit, onClickConnect, onClickMore */
15
- info?: {};
16
- /** Submit text */
17
- submitText?: string;
18
- /** Submit link,
19
- * show button if included
20
- */
21
- submitLink?: string;
22
- /** Submit link target */
23
- submitLinkTarget?: TLinkTargetType;
24
- /** More text */
25
- moreText?: string;
26
- /** More link,
27
- * show button if included
28
- */
29
- moreLink?: string;
30
- /** More link target */
31
- moreLinkTarget?: TLinkTargetType;
32
- /** Connect text */
33
- connectText?: string;
34
- className?: string;
35
- classNameWrap?: string;
36
- classNameCost?: string;
37
- classNameButtons?: string;
38
- classNameSubmit?: string;
39
- classNameMore?: string;
40
- classNameConnect?: string;
41
- /** Submit hander,
42
- * show button if included
43
- */
44
- onSubmit?: (e: React.SyntheticEvent<EventTarget>, info: {}) => void;
45
- /** Connect hander,
46
- * show button if included
47
- */
48
- onClickConnect?: (e: React.SyntheticEvent<EventTarget>, info: {}) => void;
49
- /** More hander,
50
- * show button if included
51
- */
52
- onClickMore?: (e: React.SyntheticEvent<EventTarget>, info: {}) => void;
53
- }
54
- declare class ProductCardTotal extends React.Component<IProductCardTotalProps, {}> {
55
- static propTypes: {
56
- payment: PropTypes.Requireable<PropTypes.InferProps<{
57
- value: PropTypes.Validator<string | number>;
58
- unit: PropTypes.Validator<string>;
59
- oldValue: PropTypes.Requireable<string>;
60
- }>>;
61
- info: PropTypes.Requireable<object>;
62
- submitText: PropTypes.Requireable<string>;
63
- submitLink: PropTypes.Requireable<string>;
64
- submitLinkTarget: PropTypes.Requireable<string>;
65
- moreText: PropTypes.Requireable<string>;
66
- moreLink: PropTypes.Requireable<string>;
67
- moreLinkTarget: PropTypes.Requireable<string>;
68
- connectText: PropTypes.Requireable<string>;
69
- className: PropTypes.Requireable<string>;
70
- classNameWrap: PropTypes.Requireable<string>;
71
- classNameCost: PropTypes.Requireable<string>;
72
- classNameButtons: PropTypes.Requireable<string>;
73
- classNameSubmit: PropTypes.Requireable<string>;
74
- classNameMore: PropTypes.Requireable<string>;
75
- classNameConnect: PropTypes.Requireable<string>;
76
- onSubmit: PropTypes.Requireable<(...args: any[]) => any>;
77
- onClickConnect: PropTypes.Requireable<(...args: any[]) => any>;
78
- onClickMore: PropTypes.Requireable<(...args: any[]) => any>;
79
- };
80
- static defaultProps: Partial<IProductCardTotalProps>;
81
- handleSubmit: (e: React.SyntheticEvent<EventTarget, Event>) => void;
82
- handleClickConnect: (e: React.SyntheticEvent<EventTarget, Event>) => void;
83
- handleClickMore: (e: React.SyntheticEvent<EventTarget, Event>) => void;
84
- render(): JSX.Element;
85
- }
86
- export default ProductCardTotal;
@@ -1,161 +0,0 @@
1
- import "core-js/modules/es.date.to-string";
2
- import "core-js/modules/es.object.to-string";
3
- import "core-js/modules/es.reflect.construct";
4
- import "core-js/modules/es.regexp.to-string";
5
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
6
- import _createClass from "@babel/runtime/helpers/createClass";
7
- import _inherits from "@babel/runtime/helpers/inherits";
8
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
9
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
10
-
11
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12
-
13
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
14
-
15
- import * as React from 'react';
16
- import * as PropTypes from 'prop-types';
17
- import { cnCreate, Button } from '@megafon/ui-core';
18
- import "./ProductCardTotal.css";
19
- var LinkTargetType = PropTypes.oneOf(['_self', '_blank', '_parent', '_top']);
20
- var cn = cnCreate('mfui-beta-product-card-total');
21
-
22
- var ProductCardTotal = /*#__PURE__*/function (_React$Component) {
23
- _inherits(ProductCardTotal, _React$Component);
24
-
25
- var _super = _createSuper(ProductCardTotal);
26
-
27
- function ProductCardTotal() {
28
- var _this;
29
-
30
- _classCallCheck(this, ProductCardTotal);
31
-
32
- _this = _super.apply(this, arguments);
33
-
34
- _this.handleSubmit = function (e) {
35
- var _this$props = _this.props,
36
- onSubmit = _this$props.onSubmit,
37
- info = _this$props.info;
38
- onSubmit && onSubmit(e, info || {});
39
- };
40
-
41
- _this.handleClickConnect = function (e) {
42
- var _this$props2 = _this.props,
43
- onClickConnect = _this$props2.onClickConnect,
44
- info = _this$props2.info;
45
- onClickConnect && onClickConnect(e, info || {});
46
- };
47
-
48
- _this.handleClickMore = function (e) {
49
- var _this$props3 = _this.props,
50
- onClickMore = _this$props3.onClickMore,
51
- info = _this$props3.info;
52
- onClickMore && onClickMore(e, info || {});
53
- };
54
-
55
- return _this;
56
- }
57
-
58
- _createClass(ProductCardTotal, [{
59
- key: "render",
60
- value: function render() {
61
- var _this$props4 = this.props,
62
- payment = _this$props4.payment,
63
- onSubmit = _this$props4.onSubmit,
64
- submitLink = _this$props4.submitLink,
65
- submitText = _this$props4.submitText,
66
- onClickMore = _this$props4.onClickMore,
67
- moreLink = _this$props4.moreLink,
68
- onClickConnect = _this$props4.onClickConnect,
69
- moreText = _this$props4.moreText,
70
- connectText = _this$props4.connectText,
71
- className = _this$props4.className,
72
- classNameCost = _this$props4.classNameCost,
73
- classNameButtons = _this$props4.classNameButtons,
74
- classNameSubmit = _this$props4.classNameSubmit,
75
- classNameMore = _this$props4.classNameMore,
76
- classNameConnect = _this$props4.classNameConnect,
77
- classNameWrap = _this$props4.classNameWrap,
78
- moreLinkTarget = _this$props4.moreLinkTarget,
79
- submitLinkTarget = _this$props4.submitLinkTarget;
80
- var isSubmit = onSubmit || submitLink;
81
- var isMore = onClickMore || moreLink;
82
- return /*#__PURE__*/React.createElement("div", {
83
- className: cn('', {}, className)
84
- }, /*#__PURE__*/React.createElement("div", {
85
- className: cn('wrap', {}, classNameWrap)
86
- }, payment && /*#__PURE__*/React.createElement("div", {
87
- className: cn('cost', {
88
- 'old-value': !!payment.oldValue
89
- }, classNameCost)
90
- }, /*#__PURE__*/React.createElement("span", {
91
- className: cn('price')
92
- }, payment.value), "\xA0", payment.oldValue && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
93
- className: cn('old-price')
94
- }, payment.oldValue), /*#__PURE__*/React.createElement("br", null)), /*#__PURE__*/React.createElement("span", {
95
- className: cn('unit')
96
- }, payment.unit)), /*#__PURE__*/React.createElement("div", {
97
- className: cn('buttons', classNameButtons)
98
- }, isSubmit && /*#__PURE__*/React.createElement(Button, {
99
- classes: {
100
- root: cn('button', classNameSubmit)
101
- },
102
- fullWidth: true,
103
- href: submitLink,
104
- onClick: this.handleSubmit,
105
- target: submitLinkTarget
106
- }, submitText), !isSubmit && isMore && /*#__PURE__*/React.createElement(Button, {
107
- classes: {
108
- root: cn('description-more', classNameMore)
109
- },
110
- type: "outline",
111
- fullWidth: true,
112
- href: moreLink,
113
- target: moreLinkTarget,
114
- onClick: this.handleClickMore
115
- }, moreText), onClickConnect && /*#__PURE__*/React.createElement("div", {
116
- className: cn('connect-button', classNameConnect),
117
- onClick: this.handleClickConnect
118
- }, /*#__PURE__*/React.createElement("div", {
119
- className: cn('connect-text-block')
120
- }, /*#__PURE__*/React.createElement("span", {
121
- className: cn('connect-text-words')
122
- }, connectText), "\u0430\u0431\u043E\u043D\u0435\u043D\u0442\u0430\u043C \u041C\u0435\u0433\u0430\u0424\u043E\u043D\u0430")))));
123
- }
124
- }]);
125
-
126
- return ProductCardTotal;
127
- }(React.Component);
128
-
129
- ProductCardTotal.propTypes = {
130
- payment: PropTypes.shape({
131
- value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
132
- unit: PropTypes.string.isRequired,
133
- oldValue: PropTypes.string
134
- }),
135
- info: PropTypes.object,
136
- submitText: PropTypes.string,
137
- submitLink: PropTypes.string,
138
- submitLinkTarget: LinkTargetType,
139
- moreText: PropTypes.string,
140
- moreLink: PropTypes.string,
141
- moreLinkTarget: LinkTargetType,
142
- connectText: PropTypes.string,
143
- className: PropTypes.string,
144
- classNameWrap: PropTypes.string,
145
- classNameCost: PropTypes.string,
146
- classNameButtons: PropTypes.string,
147
- classNameSubmit: PropTypes.string,
148
- classNameMore: PropTypes.string,
149
- classNameConnect: PropTypes.string,
150
- onSubmit: PropTypes.func,
151
- onClickConnect: PropTypes.func,
152
- onClickMore: PropTypes.func
153
- };
154
- ProductCardTotal.defaultProps = {
155
- submitText: 'Выбрать',
156
- moreText: 'Подробнее',
157
- connectText: 'Подключить',
158
- moreLinkTarget: '_self',
159
- submitLinkTarget: '_self'
160
- };
161
- export default ProductCardTotal;
@@ -1,162 +0,0 @@
1
- h1,
2
- h2,
3
- h3,
4
- h4,
5
- h5 {
6
- margin: 0;
7
- }
8
- .mfui-beta-product-card-wrapper {
9
- font-family: inherit;
10
- -webkit-box-sizing: border-box;
11
- box-sizing: border-box;
12
- position: relative;
13
- }
14
- .mfui-beta-product-card-wrapper_bt {
15
- border-top: 1px solid #D8D8D8;
16
- }
17
- .mfui-beta-product-card-wrapper_bt_sky {
18
- border-top: 1px solid #EDEDED;
19
- }
20
- .mfui-beta-product-card-wrapper_bb {
21
- border-bottom: 1px solid #D8D8D8;
22
- }
23
- .mfui-beta-product-card-wrapper_bb_sky {
24
- border-bottom: 1px solid #EDEDED;
25
- }
26
- @media screen and (max-width: 767px) {
27
- .mfui-beta-product-card-wrapper_bl {
28
- border-left: 1px solid #D8D8D8;
29
- }
30
- .mfui-beta-product-card-wrapper_bl_sky {
31
- border-left: 1px solid #EDEDED;
32
- }
33
- .mfui-beta-product-card-wrapper_br {
34
- border-right: 1px solid #D8D8D8;
35
- }
36
- .mfui-beta-product-card-wrapper_br_sky {
37
- border-right: 1px solid #EDEDED;
38
- }
39
- }
40
- .no-touchevents .mfui-beta-product-card-wrapper:hover {
41
- z-index: 3;
42
- -webkit-box-shadow: 0 1px 5px 2px #D8D8D8;
43
- box-shadow: 0 1px 5px 2px #D8D8D8;
44
- }
45
- .mfui-beta-product-card-wrapper_hint_green {
46
- border-color: #00B956 !important;
47
- }
48
- .mfui-beta-product-card-wrapper_hint_green .mfui-beta-product-card-wrapper__hint-box {
49
- background: #00B956 !important;
50
- }
51
- .mfui-beta-product-card-wrapper_hint_orange .mfui-beta-product-card-wrapper__hint-box {
52
- background: #FFA717 !important;
53
- }
54
- .mfui-beta-product-card-wrapper_hint_black .mfui-beta-product-card-wrapper__hint-box {
55
- background: #333333 !important;
56
- }
57
- @media screen and (max-width: 767px) {
58
- .mfui-beta-product-card-wrapper_theme_default {
59
- border-left: 1px solid #D8D8D8;
60
- border-right: 1px solid #D8D8D8;
61
- }
62
- }
63
- .mfui-beta-product-card-wrapper_theme_default .mfui-beta-product-card-wrapper__inner {
64
- padding: 40px 20px 40px 20px;
65
- }
66
- @media screen and (min-width: 768px) {
67
- .mfui-beta-product-card-wrapper_theme_default .mfui-beta-product-card-wrapper__inner {
68
- padding: 36px 24px 36px 24px;
69
- }
70
- }
71
- @media screen and (min-width: 1024px) {
72
- .mfui-beta-product-card-wrapper_theme_default .mfui-beta-product-card-wrapper__inner {
73
- padding-left: 32px;
74
- padding-right: 32px;
75
- }
76
- }
77
- @media screen and (min-width: 1280px) {
78
- .mfui-beta-product-card-wrapper_theme_default .mfui-beta-product-card-wrapper__inner {
79
- padding-left: 40px;
80
- }
81
- }
82
- .mfui-beta-product-card-wrapper__hint-box {
83
- display: block;
84
- position: absolute;
85
- color: #FFFFFF;
86
- }
87
- @media screen and (max-width: 767px) {
88
- .mfui-beta-product-card-wrapper__hint-box {
89
- top: 0;
90
- right: 0;
91
- left: 0;
92
- padding: 6px 0;
93
- text-align: center;
94
- }
95
- }
96
- @media screen and (min-width: 768px) {
97
- .mfui-beta-product-card-wrapper__hint-box {
98
- top: -1px;
99
- right: 100%;
100
- bottom: -1px;
101
- }
102
- }
103
- @media screen and (min-width: 768px) and (max-width: 1023px) {
104
- .mfui-beta-product-card-wrapper__hint-box {
105
- width: 24px;
106
- }
107
- }
108
- @media screen and (min-width: 1024px) and (max-width: 1279px) {
109
- .mfui-beta-product-card-wrapper__hint-box {
110
- width: 32px;
111
- }
112
- }
113
- @media screen and (min-width: 1280px) {
114
- .mfui-beta-product-card-wrapper__hint-box {
115
- width: 40px;
116
- }
117
- }
118
- @media screen and (min-width: 768px) {
119
- .mfui-beta-product-card-wrapper__hint-text {
120
- -webkit-transform-origin: 0 0;
121
- transform-origin: 0 0;
122
- -webkit-transform: translateY(-50%) rotate(-90deg);
123
- transform: translateY(-50%) rotate(-90deg);
124
- position: absolute;
125
- top: 50%;
126
- width: 100px;
127
- margin-top: 60px;
128
- }
129
- }
130
- @media screen and (min-width: 768px) and (max-width: 1023px) {
131
- .mfui-beta-product-card-wrapper__hint-text {
132
- margin-left: -2px;
133
- }
134
- }
135
- @media screen and (min-width: 1024px) and (max-width: 1279px) {
136
- .mfui-beta-product-card-wrapper__hint-text {
137
- margin-left: 2px;
138
- }
139
- }
140
- @media screen and (min-width: 1280px) {
141
- .mfui-beta-product-card-wrapper__hint-text {
142
- margin-left: 6px;
143
- }
144
- }
145
- @media screen and (min-width: 768px) {
146
- .mfui-beta-product-card-wrapper__container {
147
- display: -webkit-box;
148
- display: -ms-flexbox;
149
- display: flex;
150
- -webkit-box-align: baseline;
151
- -ms-flex-align: baseline;
152
- align-items: baseline;
153
- -webkit-box-pack: justify;
154
- -ms-flex-pack: justify;
155
- justify-content: space-between;
156
- }
157
- }
158
- @media screen and (max-width: 767px) {
159
- .mfui-beta-product-card-wrapper_hint .mfui-beta-product-card-wrapper__container {
160
- margin-top: 40px;
161
- }
162
- }