@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,53 +0,0 @@
1
- import * as React from 'react';
2
- import * as PropTypes from 'prop-types';
3
- import './ProductCardWrapper.less';
4
- export interface IProductCardWrapperProps {
5
- /** This option add specific className on container
6
- * and child components change styles: background, paddings, font-size...
7
- */
8
- theme?: 'default';
9
- /** Hint from left */
10
- hint?: {
11
- title: string;
12
- color: 'green' | 'orange' | 'black';
13
- };
14
- /** Show border
15
- * each property:'sky' or true(bool)
16
- * true - get default color #D8D8D8
17
- * sky - #EDEDED
18
- */
19
- border?: Partial<{
20
- top: boolean | 'sky';
21
- right: boolean | 'sky';
22
- bottom: boolean | 'sky';
23
- left: boolean | 'sky';
24
- }>;
25
- children: JSX.Element[] | Element[] | JSX.Element | Element;
26
- className?: string;
27
- classNameInner?: string;
28
- classNameContainer?: string;
29
- }
30
- declare class ProductCardWrapper extends React.Component<IProductCardWrapperProps, {}> {
31
- static propTypes: {
32
- theme: PropTypes.Requireable<string>;
33
- hint: PropTypes.Requireable<PropTypes.InferProps<{
34
- title: PropTypes.Validator<string>;
35
- color: PropTypes.Validator<string>;
36
- }>>;
37
- children: PropTypes.Requireable<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
38
- border: PropTypes.Requireable<PropTypes.InferProps<{
39
- top: PropTypes.Requireable<string | boolean>;
40
- right: PropTypes.Requireable<string | boolean>;
41
- bottom: PropTypes.Requireable<string | boolean>;
42
- left: PropTypes.Requireable<string | boolean>;
43
- }>>;
44
- className: PropTypes.Requireable<string>;
45
- classNameInner: PropTypes.Requireable<string>;
46
- classNameContainer: PropTypes.Requireable<string>;
47
- };
48
- static defaultProps: Partial<IProductCardWrapperProps>;
49
- handleClick: (e: React.MouseEvent<HTMLElement, MouseEvent>) => boolean;
50
- renderHintLabel(): JSX.Element;
51
- render(): JSX.Element;
52
- }
53
- export default ProductCardWrapper;
@@ -1,109 +0,0 @@
1
- import "core-js/modules/es.date.to-string";
2
- import "core-js/modules/es.function.name";
3
- import "core-js/modules/es.object.to-string";
4
- import "core-js/modules/es.reflect.construct";
5
- import "core-js/modules/es.regexp.to-string";
6
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
7
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
8
- import _createClass from "@babel/runtime/helpers/createClass";
9
- import _inherits from "@babel/runtime/helpers/inherits";
10
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
11
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
12
-
13
- 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); }; }
14
-
15
- 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; } }
16
-
17
- import * as React from 'react';
18
- import * as PropTypes from 'prop-types';
19
- import { cnCreate } from '@megafon/ui-core';
20
- import "./ProductCardWrapper.css";
21
- var cn = cnCreate('mfui-beta-product-card-wrapper');
22
-
23
- var ProductCardWrapper = /*#__PURE__*/function (_React$Component) {
24
- _inherits(ProductCardWrapper, _React$Component);
25
-
26
- var _super = _createSuper(ProductCardWrapper);
27
-
28
- function ProductCardWrapper() {
29
- var _this;
30
-
31
- _classCallCheck(this, ProductCardWrapper);
32
-
33
- _this = _super.apply(this, arguments);
34
-
35
- _this.handleClick = function (e) {
36
- return e.target.tagName !== 'A';
37
- };
38
-
39
- return _this;
40
- }
41
-
42
- _createClass(ProductCardWrapper, [{
43
- key: "renderHintLabel",
44
- value: function renderHintLabel() {
45
- var hint = this.props.hint;
46
- return /*#__PURE__*/React.createElement("div", {
47
- className: cn('hint-box')
48
- }, /*#__PURE__*/React.createElement("div", {
49
- className: cn('hint-text')
50
- }, hint && hint.title));
51
- }
52
- }, {
53
- key: "render",
54
- value: function render() {
55
- var _cn;
56
-
57
- var _this$props = this.props,
58
- hint = _this$props.hint,
59
- border = _this$props.border,
60
- theme = _this$props.theme,
61
- className = _this$props.className,
62
- classNameInner = _this$props.classNameInner,
63
- classNameContainer = _this$props.classNameContainer;
64
-
65
- var getHintColor = function getHintColor() {
66
- return !!hint && hint.constructor.name === 'Object' ? hint.color : null;
67
- };
68
-
69
- var color = getHintColor();
70
- return /*#__PURE__*/React.createElement("div", {
71
- className: cn('', (_cn = {
72
- hint: !!hint
73
- }, _defineProperty(_cn, "hint_".concat(color), !!color), _defineProperty(_cn, "bl", border.left), _defineProperty(_cn, "br", border.right), _defineProperty(_cn, "bt", border.top), _defineProperty(_cn, "bb", border.bottom), _defineProperty(_cn, "theme", theme), _cn), className),
74
- onClick: this.handleClick
75
- }, /*#__PURE__*/React.createElement("div", {
76
- className: cn('inner', {}, classNameInner)
77
- }, hint && this.renderHintLabel(), /*#__PURE__*/React.createElement("div", {
78
- className: cn('container', {}, classNameContainer)
79
- }, this.props.children)));
80
- }
81
- }]);
82
-
83
- return ProductCardWrapper;
84
- }(React.Component);
85
-
86
- ProductCardWrapper.propTypes = {
87
- theme: PropTypes.oneOf(['default']),
88
- hint: PropTypes.shape({
89
- title: PropTypes.string.isRequired,
90
- color: PropTypes.oneOf(['green', 'orange', 'black']).isRequired
91
- }),
92
- children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.element), PropTypes.element, PropTypes.node]),
93
- border: PropTypes.shape({
94
- top: PropTypes.oneOf([false, true, 'sky']),
95
- right: PropTypes.oneOf([false, true, 'sky']),
96
- bottom: PropTypes.oneOf([false, true, 'sky']),
97
- left: PropTypes.oneOf([false, true, 'sky'])
98
- }),
99
- className: PropTypes.string,
100
- classNameInner: PropTypes.string,
101
- classNameContainer: PropTypes.string
102
- };
103
- ProductCardWrapper.defaultProps = {
104
- border: {
105
- right: true,
106
- left: true
107
- }
108
- };
109
- export default ProductCardWrapper;
@@ -1,372 +0,0 @@
1
- h1,
2
- h2,
3
- h3,
4
- h4,
5
- h5 {
6
- margin: 0;
7
- }
8
- .mfui-beta-product-switcher {
9
- font-family: inherit;
10
- display: inline-block;
11
- vertical-align: top;
12
- position: relative;
13
- background-color: #00863e;
14
- border-radius: 50px;
15
- }
16
- .mfui-beta-product-switcher__row {
17
- position: relative;
18
- z-index: 1;
19
- display: -webkit-box;
20
- display: -ms-flexbox;
21
- display: flex;
22
- -webkit-box-flex: 1;
23
- -ms-flex-positive: 1;
24
- flex-grow: 1;
25
- }
26
- .mfui-beta-product-switcher__item {
27
- -webkit-box-align: center;
28
- -ms-flex-align: center;
29
- align-items: center;
30
- -webkit-box-pack: center;
31
- -ms-flex-pack: center;
32
- justify-content: center;
33
- display: -webkit-box;
34
- display: -ms-flexbox;
35
- display: flex;
36
- cursor: pointer;
37
- }
38
- @media screen and (max-width: 767px) {
39
- .mfui-beta-product-switcher__item {
40
- width: 54px;
41
- }
42
- }
43
- @media screen and (min-width: 768px) and (max-width: 1023px) {
44
- .mfui-beta-product-switcher__item {
45
- width: 61px;
46
- }
47
- }
48
- .mfui-beta-product-switcher__item:first-child {
49
- -webkit-box-pack: start;
50
- -ms-flex-pack: start;
51
- justify-content: flex-start;
52
- }
53
- .mfui-beta-product-switcher__item:last-child {
54
- -webkit-box-pack: end;
55
- -ms-flex-pack: end;
56
- justify-content: flex-end;
57
- }
58
- .mfui-beta-product-switcher__label {
59
- font-size: 22px;
60
- line-height: 28px;
61
- font-weight: 600;
62
- letter-spacing: 0.5px;
63
- width: 64px;
64
- height: 64px;
65
- display: -webkit-box;
66
- display: -ms-flexbox;
67
- display: 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
- color: #FFFFFF;
75
- -webkit-transition: color 0.2s ease-in-out 0.05s;
76
- transition: color 0.2s ease-in-out 0.05s;
77
- }
78
- @media screen and (min-width: 768px) and (max-width: 1023px) {
79
- .mfui-beta-product-switcher__label {
80
- font-size: 26px;
81
- line-height: 32px;
82
- }
83
- }
84
- @media screen and (min-width: 1024px) {
85
- .mfui-beta-product-switcher__label {
86
- font-size: 28px;
87
- line-height: 36px;
88
- }
89
- }
90
- @media screen and (min-width: 1280px) {
91
- .mfui-beta-product-switcher__label {
92
- font-size: 32px;
93
- line-height: 40px;
94
- }
95
- }
96
- @media screen and (max-width: 767px) {
97
- .mfui-beta-product-switcher__label {
98
- width: 48px;
99
- height: 48px;
100
- }
101
- }
102
- @media screen and (min-width: 768px) and (max-width: 1023px) {
103
- .mfui-beta-product-switcher__label {
104
- width: 56px;
105
- height: 56px;
106
- }
107
- }
108
- @media screen and (min-width: 1024px) and (max-width: 1279px) {
109
- .mfui-beta-product-switcher__label {
110
- font-size: 32px;
111
- line-height: 40px;
112
- }
113
- }
114
- .mfui-beta-product-switcher__label-unit {
115
- display: none;
116
- }
117
- .mfui-beta-product-switcher__pointer {
118
- position: absolute;
119
- top: 0;
120
- left: 0;
121
- z-index: 0;
122
- width: 64px;
123
- height: 64px;
124
- border-radius: 50%;
125
- background-color: #FFFFFF;
126
- -webkit-transition: -webkit-transform 0.2s ease-in-out;
127
- transition: -webkit-transform 0.2s ease-in-out;
128
- transition: transform 0.2s ease-in-out;
129
- transition: transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out;
130
- cursor: pointer;
131
- }
132
- @media screen and (max-width: 767px) {
133
- .mfui-beta-product-switcher__pointer {
134
- width: 48px;
135
- height: 48px;
136
- }
137
- }
138
- @media screen and (min-width: 768px) and (max-width: 1023px) {
139
- .mfui-beta-product-switcher__pointer {
140
- width: 56px;
141
- height: 56px;
142
- }
143
- }
144
- .mfui-beta-product-switcher__item_active {
145
- cursor: default;
146
- }
147
- .mfui-beta-product-switcher__item_active .mfui-beta-product-switcher__label {
148
- color: #00B956;
149
- }
150
- .mfui-beta-product-switcher__color-row {
151
- display: none;
152
- }
153
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_tariff-showcase {
154
- width: 100%;
155
- background-color: #FFFFFF;
156
- -webkit-box-shadow: 0 0 0 1px #EDEDED;
157
- box-shadow: 0 0 0 1px #EDEDED;
158
- }
159
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_tariff-showcase .mfui-beta-product-switcher__row {
160
- -webkit-box-pack: justify;
161
- -ms-flex-pack: justify;
162
- justify-content: space-between;
163
- }
164
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_tariff-showcase .mfui-beta-product-switcher__label {
165
- font-size: 12px;
166
- font-weight: normal;
167
- line-height: 44px;
168
- color: #000000;
169
- width: 44px;
170
- height: 44px;
171
- }
172
- @media screen and (min-width: 1280px) {
173
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_tariff-showcase .mfui-beta-product-switcher__label {
174
- width: 52px;
175
- height: 52px;
176
- }
177
- }
178
- @media screen and (min-width: 768px) and (max-width: 1023px) {
179
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_tariff-showcase .mfui-beta-product-switcher__item {
180
- width: 44px;
181
- }
182
- }
183
- @media screen and (min-width: 1024px) and (max-width: 1279px) {
184
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_tariff-showcase .mfui-beta-product-switcher__item {
185
- width: 63px;
186
- }
187
- }
188
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_tariff-showcase .mfui-beta-product-switcher__item:hover .mfui-beta-product-switcher__label {
189
- color: #10E272;
190
- }
191
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_tariff-showcase .mfui-beta-product-switcher__item_active .mfui-beta-product-switcher__label {
192
- color: #FFFFFF !important;
193
- font-size: 15px;
194
- font-weight: 500;
195
- }
196
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_tariff-showcase .mfui-beta-product-switcher__pointer {
197
- border: 2px solid #FFFFFF;
198
- -webkit-box-sizing: border-box;
199
- box-sizing: border-box;
200
- background-color: #00B956;
201
- width: 44px;
202
- height: 44px;
203
- }
204
- @media screen and (min-width: 1280px) {
205
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_tariff-showcase .mfui-beta-product-switcher__pointer {
206
- width: 52px;
207
- height: 52px;
208
- }
209
- }
210
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_with-unit-values {
211
- border-radius: 35px;
212
- }
213
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_with-unit-values .mfui-beta-product-switcher__item {
214
- width: 95px;
215
- }
216
- @media screen and (min-width: 768px) and (max-width: 1023px) {
217
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_with-unit-values .mfui-beta-product-switcher__item {
218
- width: 106px;
219
- }
220
- }
221
- @media screen and (min-width: 1024px) and (max-width: 1279px) {
222
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_with-unit-values .mfui-beta-product-switcher__item {
223
- width: 112px;
224
- }
225
- }
226
- @media screen and (min-width: 1280px) {
227
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_with-unit-values .mfui-beta-product-switcher__item {
228
- width: 131px;
229
- }
230
- }
231
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_with-unit-values .mfui-beta-product-switcher__label {
232
- width: 95px;
233
- }
234
- @media screen and (min-width: 768px) and (max-width: 1023px) {
235
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_with-unit-values .mfui-beta-product-switcher__label {
236
- width: 106px;
237
- }
238
- }
239
- @media screen and (min-width: 1024px) and (max-width: 1279px) {
240
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_with-unit-values .mfui-beta-product-switcher__label {
241
- width: 112px;
242
- }
243
- }
244
- @media screen and (min-width: 1280px) {
245
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_with-unit-values .mfui-beta-product-switcher__label {
246
- width: 131px;
247
- }
248
- }
249
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_with-unit-values .mfui-beta-product-switcher__pointer {
250
- border-radius: 24px;
251
- width: 95px;
252
- }
253
- @media screen and (min-width: 768px) and (max-width: 1023px) {
254
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_with-unit-values .mfui-beta-product-switcher__pointer {
255
- width: 106px;
256
- border-radius: 26px;
257
- }
258
- }
259
- @media screen and (min-width: 1024px) {
260
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_with-unit-values .mfui-beta-product-switcher__pointer {
261
- border-radius: 32px;
262
- }
263
- }
264
- @media screen and (min-width: 1024px) and (max-width: 1279px) {
265
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_with-unit-values .mfui-beta-product-switcher__pointer {
266
- width: 112px;
267
- }
268
- }
269
- @media screen and (min-width: 1280px) {
270
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_with-unit-values .mfui-beta-product-switcher__pointer {
271
- width: 131px;
272
- }
273
- }
274
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_with-color-row {
275
- display: -webkit-box;
276
- display: -ms-flexbox;
277
- display: flex;
278
- -webkit-box-align: center;
279
- -ms-flex-align: center;
280
- align-items: center;
281
- width: 100%;
282
- height: 66px;
283
- background-color: transparent;
284
- border-radius: 6px;
285
- -webkit-touch-callout: none;
286
- -webkit-user-select: none;
287
- -moz-user-select: none;
288
- -ms-user-select: none;
289
- user-select: none;
290
- }
291
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_with-color-row:not(:first-child) {
292
- margin-top: 16px;
293
- }
294
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_with-color-row .mfui-beta-product-switcher__row {
295
- height: 12px;
296
- -webkit-box-pack: justify;
297
- -ms-flex-pack: justify;
298
- justify-content: space-between;
299
- background-color: #EDEDED;
300
- border-radius: 6px;
301
- z-index: auto;
302
- }
303
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_with-color-row .mfui-beta-product-switcher__item {
304
- width: 24px;
305
- z-index: 3;
306
- }
307
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_with-color-row .mfui-beta-product-switcher__item:last-child .mfui-beta-product-switcher__label {
308
- right: 0;
309
- }
310
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_with-color-row .mfui-beta-product-switcher__item_active {
311
- display: block;
312
- }
313
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_with-color-row .mfui-beta-product-switcher__item_active .mfui-beta-product-switcher__label {
314
- font-size: 15px;
315
- font-weight: 500;
316
- height: 24px;
317
- line-height: 24px;
318
- top: -34px;
319
- -webkit-transform: translateX(-50%);
320
- transform: translateX(-50%);
321
- }
322
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_with-color-row .mfui-beta-product-switcher__item_active .mfui-beta-product-switcher__label-unit {
323
- display: block;
324
- margin-left: 4px;
325
- }
326
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_with-color-row .mfui-beta-product-switcher__item_active .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_with-color-row .mfui-beta-product-switcher:last-child .mfui-beta-product-switcher__label,
327
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_with-color-row .mfui-beta-product-switcher__item_active .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_with-color-row .mfui-beta-product-switcher:first-child .mfui-beta-product-switcher__label {
328
- -webkit-transform: none;
329
- transform: none;
330
- }
331
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_with-color-row .mfui-beta-product-switcher__item_disabled .mfui-beta-product-switcher__label {
332
- color: #D8D8D8;
333
- }
334
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_with-color-row .mfui-beta-product-switcher__label {
335
- width: auto;
336
- position: absolute;
337
- top: 17px;
338
- color: #333333;
339
- height: 12px;
340
- line-height: 16px;
341
- font-size: 12px;
342
- font-weight: 400;
343
- -webkit-transition: none;
344
- transition: none;
345
- white-space: nowrap;
346
- }
347
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_with-color-row .mfui-beta-product-switcher__pointer {
348
- border-radius: 24px;
349
- width: 24px;
350
- height: 24px;
351
- position: absolute;
352
- top: 21px;
353
- left: 0;
354
- z-index: 3;
355
- -webkit-transition: none;
356
- transition: none;
357
- -webkit-box-shadow: 0 0 7px 0 rgba(32, 39, 48, 0.29), 0 0 3px 0 rgba(38, 41, 61, 0.06);
358
- box-shadow: 0 0 7px 0 rgba(32, 39, 48, 0.29), 0 0 3px 0 rgba(38, 41, 61, 0.06);
359
- }
360
- .mfui-beta-product-switcher.mfui-beta-product-switcher_theme_with-color-row .mfui-beta-product-switcher__color-row {
361
- display: block;
362
- background-color: #00B956;
363
- position: absolute;
364
- top: 27px;
365
- left: 0;
366
- height: 12px;
367
- border-top-left-radius: 6px;
368
- border-bottom-left-radius: 6px;
369
- z-index: 2;
370
- -webkit-transition: none;
371
- transition: none;
372
- }
@@ -1,86 +0,0 @@
1
- import * as React from 'react';
2
- import * as PropTypes from 'prop-types';
3
- import './ProductSwitcher.less';
4
- interface IItem {
5
- title: string;
6
- value: string;
7
- unit?: string;
8
- }
9
- export interface IProductSwitcherProps {
10
- /** Class name */
11
- items: IItem[];
12
- /** Start index */
13
- startIndex?: number;
14
- /** Theme */
15
- theme?: 'tariff-showcase' | 'with-unit-values' | 'with-color-row';
16
- /** Custom class name */
17
- className: string;
18
- /** Change handler */
19
- onChange(e: React.SyntheticEvent<EventTarget> | TouchEvent | MouseEvent, value: string, index: number): boolean;
20
- }
21
- interface IProductSwitcherState {
22
- /** Current value */
23
- currentValue: string;
24
- currentIndex: number;
25
- isPointerPressed: boolean;
26
- isPressedPointerLeaveBlock: boolean;
27
- }
28
- declare class ProductSwitcher extends React.Component<IProductSwitcherProps, IProductSwitcherState> {
29
- static propTypes: {
30
- items: PropTypes.Validator<any[]>;
31
- startIndex: PropTypes.Requireable<number>;
32
- onChange: PropTypes.Requireable<(...args: any[]) => any>;
33
- theme: PropTypes.Requireable<string>;
34
- };
35
- static defaultProps: Pick<IProductSwitcherProps, 'startIndex'>;
36
- labelNodes: object;
37
- rootNode: HTMLElement | null;
38
- pointerNode: HTMLElement | null;
39
- colorRowNode: HTMLElement | null;
40
- timer: number;
41
- isTouch: boolean;
42
- swipeRowWidth: number;
43
- constructor(props: IProductSwitcherProps);
44
- componentDidMount(): void;
45
- componentWillUnmount(): void;
46
- componentDidUpdate(prevProps: IProductSwitcherProps): void;
47
- getSafeStartIndex(startIndex: number, items: IItem[]): number;
48
- handleWindowSize: () => void;
49
- handleClickItem: (value: string, index: number) => (e: React.SyntheticEvent<EventTarget, Event>) => void;
50
- setHandlers: () => void;
51
- removeHandlers: () => void;
52
- setPointerState: (e: Event) => void;
53
- handleTouchMove: (e: TouchEvent) => void;
54
- handleMouseMove: (e: MouseEvent) => void;
55
- handleMouseLeave: (e: MouseEvent) => void;
56
- handleMouseUp: (e: MouseEvent) => void;
57
- handleBodyMouseUp: (e: MouseEvent) => void;
58
- handleTouchEnd: (e: TouchEvent) => void;
59
- moveSwitcher: (e: MouseEvent | TouchEvent | React.SyntheticEvent<EventTarget, Event>, eventXCoord: number) => void;
60
- handleEndSwitchActions: (e: MouseEvent | TouchEvent | React.SyntheticEvent<EventTarget, Event>, eventXCoord: number) => void;
61
- getEntryPointsRange: (centralСoordinate: number) => number[];
62
- getNearPoint: (outRowPoint: number) => {
63
- item: number;
64
- coord: number;
65
- title: string;
66
- value: string;
67
- unit?: string | undefined;
68
- }[];
69
- getRangeWrapperCoords: (node: HTMLElement) => DOMRect;
70
- getSwitcherStep: () => number | undefined;
71
- getRowItemsInfo: () => {
72
- item: number;
73
- coord: number;
74
- title: string;
75
- value: string;
76
- unit?: string | undefined;
77
- }[];
78
- movePointer(value: string): void;
79
- moveSwipePointer: (value: string) => void;
80
- getRootNode: (node: HTMLElement | null) => void;
81
- getLabelNodes: (value: string) => (node: HTMLElement | null) => void;
82
- getPointerNode: (node: HTMLElement | null) => void;
83
- getColorRowNode: (node: HTMLElement | null) => void;
84
- render(): JSX.Element;
85
- }
86
- export default ProductSwitcher;