@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.
- package/CHANGELOG.md +2292 -0
- package/README.md +0 -5
- package/dist/es/components/AccordionBox/AccordionBox.css +13 -0
- package/dist/es/components/AccordionBox/AccordionBox.d.ts +33 -0
- package/dist/es/components/AccordionBox/AccordionBox.js +62 -0
- package/dist/es/components/BannerBox/BannerBox.d.ts +5 -0
- package/dist/es/components/BannerBox/BannerBox.js +31 -0
- package/dist/es/components/BenefitsIcons/BenefitsIcons.d.ts +16 -5
- package/dist/es/components/BenefitsIcons/BenefitsIcons.js +79 -14
- package/dist/es/components/BenefitsIcons/BenefitsIconsTile.d.ts +3 -2
- package/dist/es/components/BenefitsIcons/BenefitsIconsTile.js +13 -12
- package/dist/es/components/BenefitsIcons/style/BenefitsIcons.css +1 -1
- package/dist/es/components/BenefitsIcons/style/BenefitsIconsTile.css +11 -4
- package/dist/es/components/BenefitsIcons/types.d.ts +16 -7
- package/dist/es/components/BenefitsIcons/types.js +9 -7
- package/dist/es/components/BenefitsPictures/BenefitsPictures.d.ts +12 -3
- package/dist/es/components/BenefitsPictures/BenefitsPictures.js +25 -11
- package/dist/es/components/BenefitsPictures/BenfitsPictures.css +1 -1
- package/dist/es/components/BenefitsPictures/types.d.ts +3 -0
- package/dist/es/components/Breadcrumbs/Breadcrumbs.css +46 -0
- package/dist/es/components/Breadcrumbs/Breadcrumbs.d.ts +21 -0
- package/dist/es/components/Breadcrumbs/Breadcrumbs.js +49 -0
- package/dist/es/components/ButtonBanner/ButtonBanner.css +122 -0
- package/dist/es/components/ButtonBanner/ButtonBanner.d.ts +54 -0
- package/dist/es/components/ButtonBanner/ButtonBanner.js +107 -0
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.d.ts +32 -8
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.js +45 -10
- package/dist/es/components/Card/Card.css +130 -0
- package/dist/es/components/Card/Card.d.ts +67 -0
- package/dist/es/components/Card/Card.js +176 -0
- package/dist/es/components/CardsBox/CardsBox.d.ts +15 -0
- package/dist/es/components/CardsBox/CardsBox.js +80 -0
- package/dist/es/components/CarouselBox/CarouselBox.d.ts +5 -0
- package/dist/es/components/CarouselBox/CarouselBox.js +31 -0
- package/dist/es/components/Container/Container.css +2830 -0
- package/dist/es/components/Container/Container.d.ts +26 -0
- package/dist/es/components/Container/Container.js +46 -0
- package/dist/es/components/DownloadLinks/DownloadLink.css +36 -0
- package/dist/es/components/DownloadLinks/DownloadLink.d.ts +25 -0
- package/dist/es/components/DownloadLinks/DownloadLink.js +62 -0
- package/dist/es/components/DownloadLinks/DownloadLinks.css +36 -0
- package/dist/es/components/DownloadLinks/DownloadLinks.d.ts +10 -0
- package/dist/es/components/DownloadLinks/DownloadLinks.js +75 -0
- package/dist/es/components/Instructions/Instructions.css +489 -0
- package/dist/es/components/Instructions/Instructions.d.ts +52 -0
- package/dist/es/components/Instructions/Instructions.js +229 -0
- package/dist/es/components/Instructions/img/android.png +0 -0
- package/dist/es/components/Instructions/img/blackIphone.png +0 -0
- package/dist/es/components/Instructions/img/iphone12.png +0 -0
- package/dist/es/components/Instructions/img/laptop.png +0 -0
- package/dist/es/components/Instructions/img/newIphone.png +0 -0
- package/dist/es/components/Instructions/img/whiteIphone.png +0 -0
- package/dist/es/components/PageTitle/PageTitle.css +80 -0
- package/dist/es/components/PageTitle/PageTitle.d.ts +23 -0
- package/dist/es/components/PageTitle/PageTitle.js +65 -0
- package/dist/es/components/Partners/Partners.css +53 -0
- package/dist/es/components/Partners/Partners.d.ts +32 -0
- package/dist/es/components/Partners/Partners.js +114 -0
- package/dist/es/components/PictureWithDescription/PictureWithDescription.css +80 -0
- package/dist/es/components/PictureWithDescription/PictureWithDescription.d.ts +28 -0
- package/dist/es/components/PictureWithDescription/PictureWithDescription.js +61 -0
- package/dist/es/components/Property/Property.css +125 -0
- package/dist/es/components/Property/Property.d.ts +33 -0
- package/dist/es/components/Property/Property.js +130 -0
- package/dist/es/components/Property/PropertyDescription.css +17 -0
- package/dist/es/components/Property/PropertyDescription.d.ts +5 -0
- package/dist/es/components/Property/PropertyDescription.js +51 -0
- package/dist/es/components/Property/types.d.ts +14 -0
- package/dist/es/components/Property/types.js +0 -0
- package/dist/es/components/Steps/Steps.css +41 -0
- package/dist/es/components/Steps/Steps.d.ts +10 -0
- package/dist/es/components/Steps/Steps.js +35 -0
- package/dist/es/components/Steps/StepsItem.css +37 -0
- package/dist/es/components/Steps/StepsItem.d.ts +10 -0
- package/dist/es/components/Steps/StepsItem.js +26 -0
- package/dist/es/components/StoreBanner/StoreBanner.css +289 -0
- package/dist/es/components/StoreBanner/StoreBanner.d.ts +65 -0
- package/dist/es/components/StoreBanner/StoreBanner.js +145 -0
- package/dist/es/components/StoreBanner/doc/img/new-iphone-screen.png +0 -0
- package/dist/es/components/StoreBanner/doc/img/qr-code.png +0 -0
- package/dist/es/components/StoreBanner/doc/img/screen.png +0 -0
- package/dist/es/components/StoreBanner/img/android.png +0 -0
- package/dist/es/components/StoreBanner/img/black-iphone.png +0 -0
- package/dist/es/components/StoreBanner/img/new-iphone.png +0 -0
- package/dist/es/components/StoreBanner/img/white-iphone.png +0 -0
- package/dist/es/components/StoreButton/StoreButton.css +15 -0
- package/dist/es/components/StoreButton/StoreButton.d.ts +17 -0
- package/dist/es/components/StoreButton/StoreButton.js +37 -0
- package/dist/es/components/StoreButton/img/app-store.png +0 -0
- package/dist/es/components/StoreButton/img/google-play.png +0 -0
- package/dist/es/components/StoreButton/img/huawei-store.png +0 -0
- package/dist/es/components/Table/Table.css +153 -0
- package/dist/es/components/Table/Table.d.ts +14 -0
- package/dist/es/components/Table/Table.js +124 -0
- package/dist/es/components/Table/TableCell.d.ts +6 -0
- package/dist/es/components/Table/TableCell.js +12 -0
- package/dist/es/components/Table/TableRow.d.ts +9 -0
- package/dist/es/components/Table/TableRow.js +13 -0
- package/dist/es/components/TabsBox/TabBox.d.ts +2 -0
- package/dist/es/components/TabsBox/TabBox.js +2 -0
- package/dist/es/components/TabsBox/TabsBox.d.ts +8 -0
- package/dist/es/components/TabsBox/TabsBox.js +32 -0
- package/dist/es/components/TextBox/TextBox.css +16 -0
- package/dist/es/components/TextBox/TextBox.d.ts +16 -0
- package/dist/es/components/TextBox/TextBox.js +53 -0
- package/dist/es/components/TextBox/TextBoxPicture.css +24 -0
- package/dist/es/components/TextBox/TextBoxPicture.d.ts +17 -0
- package/dist/es/components/TextBox/TextBoxPicture.js +31 -0
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.css +11 -0
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +13 -7
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.js +33 -13
- package/dist/es/components/VideoBanner/VideoBanner.css +216 -0
- package/dist/es/components/VideoBanner/VideoBanner.d.ts +90 -0
- package/dist/es/components/VideoBanner/VideoBanner.js +272 -0
- package/dist/es/components/VideoBlock/VideoBlock.css +127 -0
- package/dist/es/components/VideoBlock/VideoBlock.d.ts +49 -0
- package/dist/es/components/VideoBlock/VideoBlock.js +147 -0
- package/dist/es/constants/throttleTime.d.ts +4 -0
- package/dist/es/constants/throttleTime.js +3 -0
- package/dist/es/index.d.ts +29 -17
- package/dist/es/index.js +30 -18
- package/dist/lib/components/AccordionBox/AccordionBox.css +13 -0
- package/dist/lib/components/AccordionBox/AccordionBox.d.ts +33 -0
- package/dist/lib/components/AccordionBox/AccordionBox.js +80 -0
- package/dist/lib/components/BannerBox/BannerBox.d.ts +5 -0
- package/dist/lib/components/BannerBox/BannerBox.js +49 -0
- package/dist/lib/components/BenefitsIcons/BenefitsIcons.d.ts +16 -5
- package/dist/lib/components/BenefitsIcons/BenefitsIcons.js +82 -17
- package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.d.ts +3 -2
- package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.js +14 -15
- package/dist/lib/components/BenefitsIcons/style/BenefitsIcons.css +1 -1
- package/dist/lib/components/BenefitsIcons/style/BenefitsIconsTile.css +11 -4
- package/dist/lib/components/BenefitsIcons/types.d.ts +16 -7
- package/dist/lib/components/BenefitsIcons/types.js +11 -8
- package/dist/lib/components/BenefitsPictures/BenefitsPictures.d.ts +12 -3
- package/dist/lib/components/BenefitsPictures/BenefitsPictures.js +27 -13
- package/dist/lib/components/BenefitsPictures/BenfitsPictures.css +1 -1
- package/dist/lib/components/BenefitsPictures/types.d.ts +3 -0
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.css +46 -0
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.d.ts +21 -0
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.js +65 -0
- package/dist/lib/components/ButtonBanner/ButtonBanner.css +122 -0
- package/dist/lib/components/ButtonBanner/ButtonBanner.d.ts +54 -0
- package/dist/lib/components/ButtonBanner/ButtonBanner.js +133 -0
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.d.ts +32 -8
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.js +53 -13
- package/dist/lib/components/Card/Card.css +130 -0
- package/dist/lib/components/Card/Card.d.ts +67 -0
- package/dist/lib/components/Card/Card.js +199 -0
- package/dist/lib/components/CardsBox/CardsBox.d.ts +15 -0
- package/dist/lib/components/CardsBox/CardsBox.js +105 -0
- package/dist/lib/components/CarouselBox/CarouselBox.d.ts +5 -0
- package/dist/lib/components/CarouselBox/CarouselBox.js +49 -0
- package/dist/lib/components/Container/Container.css +2830 -0
- package/dist/lib/components/Container/Container.d.ts +26 -0
- package/dist/lib/components/Container/Container.js +61 -0
- package/dist/lib/components/DownloadLinks/DownloadLink.css +36 -0
- package/dist/lib/components/DownloadLinks/DownloadLink.d.ts +25 -0
- package/dist/lib/components/DownloadLinks/DownloadLink.js +83 -0
- package/dist/lib/components/DownloadLinks/DownloadLinks.css +36 -0
- package/dist/lib/components/DownloadLinks/DownloadLinks.d.ts +10 -0
- package/dist/lib/components/DownloadLinks/DownloadLinks.js +95 -0
- package/dist/lib/components/Instructions/Instructions.css +489 -0
- package/dist/lib/components/Instructions/Instructions.d.ts +52 -0
- package/dist/lib/components/Instructions/Instructions.js +258 -0
- package/dist/lib/components/Instructions/img/android.png +0 -0
- package/dist/lib/components/Instructions/img/blackIphone.png +0 -0
- package/dist/lib/components/Instructions/img/iphone12.png +0 -0
- package/dist/lib/components/Instructions/img/laptop.png +0 -0
- package/dist/lib/components/Instructions/img/newIphone.png +0 -0
- package/dist/lib/components/Instructions/img/whiteIphone.png +0 -0
- package/dist/lib/components/PageTitle/PageTitle.css +80 -0
- package/dist/lib/components/PageTitle/PageTitle.d.ts +23 -0
- package/dist/lib/components/PageTitle/PageTitle.js +85 -0
- package/dist/lib/components/Partners/Partners.css +53 -0
- package/dist/lib/components/Partners/Partners.d.ts +32 -0
- package/dist/lib/components/Partners/Partners.js +136 -0
- package/dist/lib/components/PictureWithDescription/PictureWithDescription.css +80 -0
- package/dist/lib/components/PictureWithDescription/PictureWithDescription.d.ts +28 -0
- package/dist/lib/components/PictureWithDescription/PictureWithDescription.js +81 -0
- package/dist/lib/components/Property/Property.css +125 -0
- package/dist/lib/components/Property/Property.d.ts +33 -0
- package/dist/lib/components/Property/Property.js +152 -0
- package/dist/lib/components/Property/PropertyDescription.css +17 -0
- package/dist/lib/components/Property/PropertyDescription.d.ts +5 -0
- package/dist/lib/components/Property/PropertyDescription.js +71 -0
- package/dist/lib/components/Property/types.d.ts +14 -0
- package/dist/lib/components/Property/types.js +1 -0
- package/dist/lib/components/Steps/Steps.css +41 -0
- package/dist/lib/components/Steps/Steps.d.ts +10 -0
- package/dist/lib/components/Steps/Steps.js +55 -0
- package/dist/lib/components/Steps/StepsItem.css +37 -0
- package/dist/lib/components/Steps/StepsItem.d.ts +10 -0
- package/dist/lib/components/Steps/StepsItem.js +39 -0
- package/dist/lib/components/StoreBanner/StoreBanner.css +289 -0
- package/dist/lib/components/StoreBanner/StoreBanner.d.ts +65 -0
- package/dist/lib/components/StoreBanner/StoreBanner.js +169 -0
- package/dist/lib/components/StoreBanner/doc/img/new-iphone-screen.png +0 -0
- package/dist/lib/components/StoreBanner/doc/img/qr-code.png +0 -0
- package/dist/lib/components/StoreBanner/doc/img/screen.png +0 -0
- package/dist/lib/components/StoreBanner/img/android.png +0 -0
- package/dist/lib/components/StoreBanner/img/black-iphone.png +0 -0
- package/dist/lib/components/StoreBanner/img/new-iphone.png +0 -0
- package/dist/lib/components/StoreBanner/img/white-iphone.png +0 -0
- package/dist/lib/components/StoreButton/StoreButton.css +15 -0
- package/dist/lib/components/StoreButton/StoreButton.d.ts +17 -0
- package/dist/lib/components/StoreButton/StoreButton.js +58 -0
- package/dist/lib/components/StoreButton/img/app-store.png +0 -0
- package/dist/lib/components/StoreButton/img/google-play.png +0 -0
- package/dist/lib/components/StoreButton/img/huawei-store.png +0 -0
- package/dist/lib/components/Table/Table.css +153 -0
- package/dist/lib/components/Table/Table.d.ts +14 -0
- package/dist/lib/components/Table/Table.js +146 -0
- package/dist/lib/components/Table/TableCell.d.ts +6 -0
- package/dist/lib/components/Table/TableCell.js +27 -0
- package/dist/lib/components/Table/TableRow.d.ts +9 -0
- package/dist/lib/components/Table/TableRow.js +28 -0
- package/dist/lib/components/TabsBox/TabBox.d.ts +2 -0
- package/dist/lib/components/TabsBox/TabBox.js +11 -0
- package/dist/lib/components/TabsBox/TabsBox.d.ts +8 -0
- package/dist/lib/components/TabsBox/TabsBox.js +50 -0
- package/dist/lib/components/TextBox/TextBox.css +16 -0
- package/dist/lib/components/TextBox/TextBox.d.ts +16 -0
- package/dist/lib/components/TextBox/TextBox.js +70 -0
- package/dist/lib/components/TextBox/TextBoxPicture.css +24 -0
- package/dist/lib/components/TextBox/TextBoxPicture.d.ts +17 -0
- package/dist/lib/components/TextBox/TextBoxPicture.js +48 -0
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.css +11 -0
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +13 -7
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.js +37 -17
- package/dist/lib/components/VideoBanner/VideoBanner.css +216 -0
- package/dist/lib/components/VideoBanner/VideoBanner.d.ts +90 -0
- package/dist/lib/components/VideoBanner/VideoBanner.js +309 -0
- package/dist/lib/components/VideoBlock/VideoBlock.css +127 -0
- package/dist/lib/components/VideoBlock/VideoBlock.d.ts +49 -0
- package/dist/lib/components/VideoBlock/VideoBlock.js +170 -0
- package/dist/lib/constants/throttleTime.d.ts +4 -0
- package/dist/lib/constants/throttleTime.js +10 -0
- package/dist/lib/index.d.ts +29 -17
- package/dist/lib/index.js +147 -51
- package/package.json +22 -77
- package/dist/es/components/ProductCard/ProductCardFeatures.css +0 -35
- package/dist/es/components/ProductCard/ProductCardFeatures.d.ts +0 -61
- package/dist/es/components/ProductCard/ProductCardFeatures.js +0 -82
- package/dist/es/components/ProductCard/ProductCardFeaturesBottom.css +0 -41
- package/dist/es/components/ProductCard/ProductCardFeaturesBottom.d.ts +0 -22
- package/dist/es/components/ProductCard/ProductCardFeaturesBottom.js +0 -80
- package/dist/es/components/ProductCard/ProductCardFeaturesTop.css +0 -16
- package/dist/es/components/ProductCard/ProductCardFeaturesTop.d.ts +0 -25
- package/dist/es/components/ProductCard/ProductCardFeaturesTop.js +0 -67
- package/dist/es/components/ProductCard/ProductCardInfo.css +0 -236
- package/dist/es/components/ProductCard/ProductCardInfo.d.ts +0 -75
- package/dist/es/components/ProductCard/ProductCardInfo.js +0 -169
- package/dist/es/components/ProductCard/ProductCardTotal.css +0 -113
- package/dist/es/components/ProductCard/ProductCardTotal.d.ts +0 -86
- package/dist/es/components/ProductCard/ProductCardTotal.js +0 -161
- package/dist/es/components/ProductCard/ProductCardWrapper.css +0 -162
- package/dist/es/components/ProductCard/ProductCardWrapper.d.ts +0 -53
- package/dist/es/components/ProductCard/ProductCardWrapper.js +0 -109
- package/dist/es/components/ProductSwitcher/ProductSwitcher.css +0 -372
- package/dist/es/components/ProductSwitcher/ProductSwitcher.d.ts +0 -86
- package/dist/es/components/ProductSwitcher/ProductSwitcher.js +0 -612
- package/dist/es/components/ProductTile/ProductTile.d.ts +0 -287
- package/dist/es/components/ProductTile/ProductTile.js +0 -497
- package/dist/es/components/ProductTile/ProductTileBuy.d.ts +0 -53
- package/dist/es/components/ProductTile/ProductTileBuy.js +0 -99
- package/dist/es/components/ProductTile/ProductTileCashback.d.ts +0 -20
- package/dist/es/components/ProductTile/ProductTileCashback.js +0 -60
- package/dist/es/components/ProductTile/ProductTileDynamic.d.ts +0 -42
- package/dist/es/components/ProductTile/ProductTileDynamic.js +0 -109
- package/dist/es/components/ProductTile/ProductTileHint.d.ts +0 -24
- package/dist/es/components/ProductTile/ProductTileHint.js +0 -67
- package/dist/es/components/ProductTile/ProductTileOptions.d.ts +0 -31
- package/dist/es/components/ProductTile/ProductTileOptions.js +0 -130
- package/dist/es/components/ProductTile/ProductTilePrice.d.ts +0 -26
- package/dist/es/components/ProductTile/ProductTilePrice.js +0 -75
- package/dist/es/components/ProductTile/ProductTileStatic.d.ts +0 -20
- package/dist/es/components/ProductTile/ProductTileStatic.js +0 -60
- package/dist/es/components/ProductTile/ProductTileValue.d.ts +0 -31
- package/dist/es/components/ProductTile/ProductTileValue.js +0 -111
- package/dist/es/components/ProductTile/style/ProductTile.css +0 -146
- package/dist/es/components/ProductTile/style/ProductTileBuy.css +0 -76
- package/dist/es/components/ProductTile/style/ProductTileCashback.css +0 -23
- package/dist/es/components/ProductTile/style/ProductTileDynamic.css +0 -38
- package/dist/es/components/ProductTile/style/ProductTileHint.css +0 -93
- package/dist/es/components/ProductTile/style/ProductTileOptions.css +0 -84
- package/dist/es/components/ProductTile/style/ProductTilePrice.css +0 -105
- package/dist/es/components/ProductTile/style/ProductTileStatic.css +0 -23
- package/dist/es/components/ProductTile/style/ProductTileValue.css +0 -58
- package/dist/es/components/ProductTileRest/ProductTileRest.css +0 -226
- package/dist/es/components/ProductTileRest/ProductTileRest.d.ts +0 -109
- package/dist/es/components/ProductTileRest/ProductTileRest.js +0 -291
- package/dist/es/constants/breakpoints.d.ts +0 -1
- package/dist/es/constants/breakpoints.js +0 -1
- package/dist/lib/components/ProductCard/ProductCardFeatures.css +0 -35
- package/dist/lib/components/ProductCard/ProductCardFeatures.d.ts +0 -61
- package/dist/lib/components/ProductCard/ProductCardFeatures.js +0 -141
- package/dist/lib/components/ProductCard/ProductCardFeaturesBottom.css +0 -41
- package/dist/lib/components/ProductCard/ProductCardFeaturesBottom.d.ts +0 -22
- package/dist/lib/components/ProductCard/ProductCardFeaturesBottom.js +0 -140
- package/dist/lib/components/ProductCard/ProductCardFeaturesTop.css +0 -16
- package/dist/lib/components/ProductCard/ProductCardFeaturesTop.d.ts +0 -25
- package/dist/lib/components/ProductCard/ProductCardFeaturesTop.js +0 -124
- package/dist/lib/components/ProductCard/ProductCardInfo.css +0 -236
- package/dist/lib/components/ProductCard/ProductCardInfo.d.ts +0 -75
- package/dist/lib/components/ProductCard/ProductCardInfo.js +0 -241
- package/dist/lib/components/ProductCard/ProductCardTotal.css +0 -113
- package/dist/lib/components/ProductCard/ProductCardTotal.d.ts +0 -86
- package/dist/lib/components/ProductCard/ProductCardTotal.js +0 -218
- package/dist/lib/components/ProductCard/ProductCardWrapper.css +0 -162
- package/dist/lib/components/ProductCard/ProductCardWrapper.d.ts +0 -53
- package/dist/lib/components/ProductCard/ProductCardWrapper.js +0 -170
- package/dist/lib/components/ProductSwitcher/ProductSwitcher.css +0 -372
- package/dist/lib/components/ProductSwitcher/ProductSwitcher.d.ts +0 -86
- package/dist/lib/components/ProductSwitcher/ProductSwitcher.js +0 -686
- package/dist/lib/components/ProductTile/ProductTile.d.ts +0 -287
- package/dist/lib/components/ProductTile/ProductTile.js +0 -590
- package/dist/lib/components/ProductTile/ProductTileBuy.d.ts +0 -53
- package/dist/lib/components/ProductTile/ProductTileBuy.js +0 -156
- package/dist/lib/components/ProductTile/ProductTileCashback.d.ts +0 -20
- package/dist/lib/components/ProductTile/ProductTileCashback.js +0 -117
- package/dist/lib/components/ProductTile/ProductTileDynamic.d.ts +0 -42
- package/dist/lib/components/ProductTile/ProductTileDynamic.js +0 -174
- package/dist/lib/components/ProductTile/ProductTileHint.d.ts +0 -24
- package/dist/lib/components/ProductTile/ProductTileHint.js +0 -124
- package/dist/lib/components/ProductTile/ProductTileOptions.d.ts +0 -31
- package/dist/lib/components/ProductTile/ProductTileOptions.js +0 -193
- package/dist/lib/components/ProductTile/ProductTilePrice.d.ts +0 -26
- package/dist/lib/components/ProductTile/ProductTilePrice.js +0 -136
- package/dist/lib/components/ProductTile/ProductTileStatic.d.ts +0 -20
- package/dist/lib/components/ProductTile/ProductTileStatic.js +0 -123
- package/dist/lib/components/ProductTile/ProductTileValue.d.ts +0 -31
- package/dist/lib/components/ProductTile/ProductTileValue.js +0 -171
- package/dist/lib/components/ProductTile/style/ProductTile.css +0 -146
- package/dist/lib/components/ProductTile/style/ProductTileBuy.css +0 -76
- package/dist/lib/components/ProductTile/style/ProductTileCashback.css +0 -23
- package/dist/lib/components/ProductTile/style/ProductTileDynamic.css +0 -38
- package/dist/lib/components/ProductTile/style/ProductTileHint.css +0 -93
- package/dist/lib/components/ProductTile/style/ProductTileOptions.css +0 -84
- package/dist/lib/components/ProductTile/style/ProductTilePrice.css +0 -105
- package/dist/lib/components/ProductTile/style/ProductTileStatic.css +0 -23
- package/dist/lib/components/ProductTile/style/ProductTileValue.css +0 -58
- package/dist/lib/components/ProductTileRest/ProductTileRest.css +0 -226
- package/dist/lib/components/ProductTileRest/ProductTileRest.d.ts +0 -109
- package/dist/lib/components/ProductTileRest/ProductTileRest.js +0 -364
- package/dist/lib/constants/breakpoints.d.ts +0 -1
- package/dist/lib/constants/breakpoints.js +0 -8
@@ -1,23 +0,0 @@
|
|
1
|
-
h1,
|
2
|
-
h2,
|
3
|
-
h3,
|
4
|
-
h4,
|
5
|
-
h5 {
|
6
|
-
margin: 0;
|
7
|
-
}
|
8
|
-
.mfui-beta-product-tile-static {
|
9
|
-
font-family: inherit;
|
10
|
-
}
|
11
|
-
.mfui-beta-product-tile-static__constructor-pack {
|
12
|
-
font-size: 18px;
|
13
|
-
font-weight: 500;
|
14
|
-
line-height: 24px;
|
15
|
-
letter-spacing: 0.5px;
|
16
|
-
text-align: center;
|
17
|
-
margin-bottom: 8px;
|
18
|
-
}
|
19
|
-
@media screen and (min-width: 1280px) {
|
20
|
-
.mfui-beta-product-tile-static__constructor-pack {
|
21
|
-
font-size: 20px;
|
22
|
-
}
|
23
|
-
}
|
@@ -1,58 +0,0 @@
|
|
1
|
-
h1,
|
2
|
-
h2,
|
3
|
-
h3,
|
4
|
-
h4,
|
5
|
-
h5 {
|
6
|
-
margin: 0;
|
7
|
-
}
|
8
|
-
.mfui-beta-product-tile-value {
|
9
|
-
font-family: inherit;
|
10
|
-
position: relative;
|
11
|
-
white-space: nowrap;
|
12
|
-
display: inline-block;
|
13
|
-
text-align: center;
|
14
|
-
overflow: hidden;
|
15
|
-
vertical-align: bottom;
|
16
|
-
max-height: 28px;
|
17
|
-
}
|
18
|
-
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
19
|
-
.mfui-beta-product-tile-value {
|
20
|
-
max-height: 32px;
|
21
|
-
}
|
22
|
-
}
|
23
|
-
@media screen and (min-width: 1024px) and (max-width: 1279px) {
|
24
|
-
.mfui-beta-product-tile-value {
|
25
|
-
max-height: 36px;
|
26
|
-
}
|
27
|
-
}
|
28
|
-
@media screen and (min-width: 1280px) {
|
29
|
-
.mfui-beta-product-tile-value {
|
30
|
-
max-height: 40px;
|
31
|
-
}
|
32
|
-
}
|
33
|
-
.mfui-beta-product-tile-value__prev {
|
34
|
-
opacity: 1;
|
35
|
-
-webkit-transition: none;
|
36
|
-
transition: none;
|
37
|
-
}
|
38
|
-
.mfui-beta-product-tile-value__prev_hide {
|
39
|
-
opacity: 0;
|
40
|
-
-webkit-transition: opacity 0.5s;
|
41
|
-
transition: opacity 0.5s;
|
42
|
-
position: absolute;
|
43
|
-
left: 50%;
|
44
|
-
-webkit-transform: translateX(-50%);
|
45
|
-
transform: translateX(-50%);
|
46
|
-
}
|
47
|
-
.mfui-beta-product-tile-value__current {
|
48
|
-
opacity: 1;
|
49
|
-
-webkit-transition: opacity 0.5s;
|
50
|
-
transition: opacity 0.5s;
|
51
|
-
display: inline-block;
|
52
|
-
}
|
53
|
-
.mfui-beta-product-tile-value__current_hide {
|
54
|
-
opacity: 0;
|
55
|
-
-webkit-transition: none;
|
56
|
-
transition: none;
|
57
|
-
position: absolute;
|
58
|
-
}
|
@@ -1,226 +0,0 @@
|
|
1
|
-
h1,
|
2
|
-
h2,
|
3
|
-
h3,
|
4
|
-
h4,
|
5
|
-
h5 {
|
6
|
-
margin: 0;
|
7
|
-
}
|
8
|
-
.mfui-beta-product-tile-rest {
|
9
|
-
font-family: inherit;
|
10
|
-
display: -webkit-box;
|
11
|
-
display: -ms-flexbox;
|
12
|
-
display: flex;
|
13
|
-
-webkit-box-orient: vertical;
|
14
|
-
-webkit-box-direction: normal;
|
15
|
-
-ms-flex-direction: column;
|
16
|
-
flex-direction: column;
|
17
|
-
-webkit-box-pack: justify;
|
18
|
-
-ms-flex-pack: justify;
|
19
|
-
justify-content: space-between;
|
20
|
-
width: 100%;
|
21
|
-
height: 100%;
|
22
|
-
padding: 24px 8px 16px;
|
23
|
-
border-radius: 9px;
|
24
|
-
background-color: #FFFFFF;
|
25
|
-
-webkit-box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2);
|
26
|
-
box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2);
|
27
|
-
-webkit-box-sizing: border-box;
|
28
|
-
box-sizing: border-box;
|
29
|
-
}
|
30
|
-
.mfui-beta-product-tile-rest:hover {
|
31
|
-
-webkit-box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
|
32
|
-
box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
|
33
|
-
}
|
34
|
-
@media screen and (min-width: 1280px) {
|
35
|
-
.mfui-beta-product-tile-rest {
|
36
|
-
padding: 32px 16px 16px;
|
37
|
-
}
|
38
|
-
}
|
39
|
-
.mfui-beta-product-tile-rest__info,
|
40
|
-
.mfui-beta-product-tile-rest__buy {
|
41
|
-
text-align: center;
|
42
|
-
}
|
43
|
-
.mfui-beta-product-tile-rest__header {
|
44
|
-
font-size: 18px;
|
45
|
-
font-weight: 500;
|
46
|
-
margin-bottom: 4px;
|
47
|
-
letter-spacing: 0.5px;
|
48
|
-
}
|
49
|
-
@media screen and (min-width: 1280px) {
|
50
|
-
.mfui-beta-product-tile-rest__header {
|
51
|
-
font-size: 20px;
|
52
|
-
line-height: 28px;
|
53
|
-
margin-bottom: 0;
|
54
|
-
}
|
55
|
-
}
|
56
|
-
.mfui-beta-product-tile-rest__detail-link {
|
57
|
-
margin-bottom: 14px;
|
58
|
-
display: block;
|
59
|
-
}
|
60
|
-
.mfui-beta-product-tile-rest__options {
|
61
|
-
margin-bottom: 12px;
|
62
|
-
}
|
63
|
-
@media screen and (max-width: 767px) {
|
64
|
-
.mfui-beta-product-tile-rest__options {
|
65
|
-
margin-bottom: 24px;
|
66
|
-
}
|
67
|
-
}
|
68
|
-
@media screen and (min-width: 1280px) {
|
69
|
-
.mfui-beta-product-tile-rest__options {
|
70
|
-
margin-bottom: 24px;
|
71
|
-
}
|
72
|
-
}
|
73
|
-
.mfui-beta-product-tile-rest__option:not(:last-child) {
|
74
|
-
margin-bottom: 8px;
|
75
|
-
}
|
76
|
-
.mfui-beta-product-tile-rest__option-title {
|
77
|
-
font-size: 15px;
|
78
|
-
line-height: 24px;
|
79
|
-
font-weight: 500;
|
80
|
-
}
|
81
|
-
.mfui-beta-product-tile-rest__option-title a {
|
82
|
-
color: #34AAF2;
|
83
|
-
text-decoration: none;
|
84
|
-
word-break: break-word;
|
85
|
-
}
|
86
|
-
.mfui-beta-product-tile-rest__option-title a:hover {
|
87
|
-
text-decoration: underline;
|
88
|
-
}
|
89
|
-
.mfui-beta-product-tile-rest__option-description {
|
90
|
-
font-size: 12px;
|
91
|
-
line-height: 16px;
|
92
|
-
}
|
93
|
-
.mfui-beta-product-tile-rest__description {
|
94
|
-
font-size: 12px;
|
95
|
-
line-height: 16px;
|
96
|
-
margin-bottom: 25px;
|
97
|
-
}
|
98
|
-
.mfui-beta-product-tile-rest__pack {
|
99
|
-
margin-bottom: 8px;
|
100
|
-
font-size: 15px;
|
101
|
-
font-weight: 500;
|
102
|
-
}
|
103
|
-
.mfui-beta-product-tile-rest__messangers {
|
104
|
-
margin-bottom: 24px;
|
105
|
-
}
|
106
|
-
.mfui-beta-product-tile-rest__messangers-list {
|
107
|
-
display: -webkit-box;
|
108
|
-
display: -ms-flexbox;
|
109
|
-
display: flex;
|
110
|
-
-webkit-box-pack: center;
|
111
|
-
-ms-flex-pack: center;
|
112
|
-
justify-content: center;
|
113
|
-
-ms-flex-wrap: wrap;
|
114
|
-
flex-wrap: wrap;
|
115
|
-
}
|
116
|
-
.mfui-beta-product-tile-rest__messangers-list svg,
|
117
|
-
.mfui-beta-product-tile-rest__messangers-list img {
|
118
|
-
width: 32px;
|
119
|
-
height: 32px;
|
120
|
-
}
|
121
|
-
.mfui-beta-product-tile-rest__messangers-list svg {
|
122
|
-
pointer-events: none;
|
123
|
-
}
|
124
|
-
.mfui-beta-product-tile-rest__messangers-description {
|
125
|
-
font-size: 12px;
|
126
|
-
letter-spacing: 0.33px;
|
127
|
-
line-height: 16px;
|
128
|
-
}
|
129
|
-
.mfui-beta-product-tile-rest__reward-icon svg,
|
130
|
-
.mfui-beta-product-tile-rest__reward-icon img {
|
131
|
-
width: 32px;
|
132
|
-
height: 32px;
|
133
|
-
}
|
134
|
-
.mfui-beta-product-tile-rest__reward-icon svg {
|
135
|
-
pointer-events: none;
|
136
|
-
}
|
137
|
-
.mfui-beta-product-tile-rest__buy-button {
|
138
|
-
margin-bottom: 11px;
|
139
|
-
width: 159px;
|
140
|
-
}
|
141
|
-
.mfui-beta-product-tile-rest__buy-button_additional-margin {
|
142
|
-
margin-bottom: 48px;
|
143
|
-
}
|
144
|
-
@media screen and (max-width: 767px) {
|
145
|
-
.mfui-beta-product-tile-rest__buy-button_additional-margin {
|
146
|
-
margin-bottom: 11px;
|
147
|
-
}
|
148
|
-
}
|
149
|
-
.mfui-beta-product-tile-rest__actual-price {
|
150
|
-
font-size: 20px;
|
151
|
-
font-weight: 500;
|
152
|
-
line-height: 28px;
|
153
|
-
letter-spacing: 0.5px;
|
154
|
-
}
|
155
|
-
.mfui-beta-product-tile-rest__payment-period {
|
156
|
-
font-size: 15px;
|
157
|
-
line-height: 24px;
|
158
|
-
font-weight: normal;
|
159
|
-
letter-spacing: 0;
|
160
|
-
}
|
161
|
-
.mfui-beta-product-tile-rest__options-list {
|
162
|
-
-webkit-box-align: center !important;
|
163
|
-
-ms-flex-align: center !important;
|
164
|
-
align-items: center !important;
|
165
|
-
}
|
166
|
-
.mfui-beta-product-tile-rest__discount-condition {
|
167
|
-
font-size: 12px;
|
168
|
-
font-weight: normal;
|
169
|
-
line-height: 16px;
|
170
|
-
min-height: 16px;
|
171
|
-
margin-bottom: 26px;
|
172
|
-
}
|
173
|
-
@media screen and (max-width: 767px) {
|
174
|
-
.mfui-beta-product-tile-rest__discount-condition {
|
175
|
-
margin-bottom: 18px;
|
176
|
-
}
|
177
|
-
}
|
178
|
-
@media screen and (min-width: 1280px) {
|
179
|
-
.mfui-beta-product-tile-rest__discount-condition {
|
180
|
-
margin-bottom: 24px;
|
181
|
-
}
|
182
|
-
}
|
183
|
-
.mfui-beta-product-tile-rest__old-price-wrapper {
|
184
|
-
display: -webkit-box;
|
185
|
-
display: -ms-flexbox;
|
186
|
-
display: flex;
|
187
|
-
-webkit-box-pack: center;
|
188
|
-
-ms-flex-pack: center;
|
189
|
-
justify-content: center;
|
190
|
-
-webkit-box-flex: 0;
|
191
|
-
-ms-flex-positive: 0;
|
192
|
-
flex-grow: 0;
|
193
|
-
-ms-flex-negative: 0;
|
194
|
-
flex-shrink: 0;
|
195
|
-
}
|
196
|
-
.mfui-beta-product-tile-rest__old-price {
|
197
|
-
font-size: 15px;
|
198
|
-
position: relative;
|
199
|
-
line-height: 20px;
|
200
|
-
letter-spacing: 0.5px;
|
201
|
-
color: #999999;
|
202
|
-
}
|
203
|
-
.mfui-beta-product-tile-rest__old-price:before {
|
204
|
-
content: '';
|
205
|
-
position: absolute;
|
206
|
-
width: 100%;
|
207
|
-
height: 2px;
|
208
|
-
margin: auto;
|
209
|
-
top: 0;
|
210
|
-
bottom: 0;
|
211
|
-
background-color: #F62434;
|
212
|
-
}
|
213
|
-
.mfui-beta-product-tile-rest__price .mfui-beta-product-tile-rest__old-price-wrapper {
|
214
|
-
visibility: hidden;
|
215
|
-
}
|
216
|
-
.mfui-beta-product-tile-rest__price_discount .mfui-beta-product-tile-rest__old-price-wrapper {
|
217
|
-
visibility: visible;
|
218
|
-
}
|
219
|
-
.mfui-beta-product-tile-rest_active {
|
220
|
-
-webkit-box-shadow: inset 0 0 0 2px #00863e, 0 4px 10px 0 rgba(0, 0, 0, 0.2);
|
221
|
-
box-shadow: inset 0 0 0 2px #00863e, 0 4px 10px 0 rgba(0, 0, 0, 0.2);
|
222
|
-
}
|
223
|
-
.mfui-beta-product-tile-rest_active:hover {
|
224
|
-
-webkit-box-shadow: inset 0 0 0 2px #00863e, 0 4px 10px 0 rgba(0, 0, 0, 0.2);
|
225
|
-
box-shadow: inset 0 0 0 2px #00863e, 0 4px 10px 0 rgba(0, 0, 0, 0.2);
|
226
|
-
}
|
@@ -1,109 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import * as PropTypes from 'prop-types';
|
3
|
-
import { Button } from '@megafon/ui-core';
|
4
|
-
import './ProductTileRest.less';
|
5
|
-
export declare type TLinkTargetType = '_self' | '_blank' | '_parent' | '_top';
|
6
|
-
declare type IButtonProps = React.ComponentProps<typeof Button>;
|
7
|
-
export interface IProductTileRestProps {
|
8
|
-
className?: string;
|
9
|
-
title: string;
|
10
|
-
description: string;
|
11
|
-
shopTag: string;
|
12
|
-
link: string;
|
13
|
-
linkTarget?: TLinkTargetType;
|
14
|
-
moreLinkText: string;
|
15
|
-
showMoreLink: boolean;
|
16
|
-
buyLink: string;
|
17
|
-
buyLinkTarget?: TLinkTargetType;
|
18
|
-
buyButtonText: string;
|
19
|
-
showBuyButton: boolean;
|
20
|
-
/** button theme */
|
21
|
-
buttonTheme?: IButtonProps['theme'];
|
22
|
-
/** button type */
|
23
|
-
buttonType?: IButtonProps['type'];
|
24
|
-
connectLink: string;
|
25
|
-
connectLinkTarget?: TLinkTargetType;
|
26
|
-
connectButtonText: string;
|
27
|
-
showConnectButton: boolean;
|
28
|
-
payment: any;
|
29
|
-
packs: any;
|
30
|
-
firstParams: any;
|
31
|
-
secondParams: any;
|
32
|
-
info: any;
|
33
|
-
isActive?: boolean;
|
34
|
-
onClickConnect: any;
|
35
|
-
onClickBuy: any;
|
36
|
-
onClickMore: any;
|
37
|
-
}
|
38
|
-
declare class ProductTileRest extends React.Component<IProductTileRestProps> {
|
39
|
-
static propTypes: {
|
40
|
-
title: PropTypes.Requireable<string>;
|
41
|
-
description: PropTypes.Requireable<string>;
|
42
|
-
shopTag: PropTypes.Requireable<string>;
|
43
|
-
link: PropTypes.Requireable<string>;
|
44
|
-
linkTarget: PropTypes.Requireable<string>;
|
45
|
-
moreLinkText: PropTypes.Requireable<string>;
|
46
|
-
showMoreLink: PropTypes.Requireable<boolean>;
|
47
|
-
buyLink: PropTypes.Requireable<string>;
|
48
|
-
buyLinkTarget: PropTypes.Requireable<string>;
|
49
|
-
buyButtonText: PropTypes.Requireable<string>;
|
50
|
-
showBuyButton: PropTypes.Requireable<boolean>;
|
51
|
-
connectLink: PropTypes.Requireable<string>;
|
52
|
-
connectLinkTarget: PropTypes.Requireable<string>;
|
53
|
-
connectButtonText: PropTypes.Requireable<string>;
|
54
|
-
showConnectButton: PropTypes.Requireable<boolean>;
|
55
|
-
buttonTheme: React.Validator<"black" | "green" | "purple" | "white" | null | undefined> | undefined;
|
56
|
-
buttonType: React.Validator<"primary" | "outline" | null | undefined> | undefined;
|
57
|
-
payment: PropTypes.Validator<PropTypes.InferProps<{
|
58
|
-
title: PropTypes.Requireable<string>;
|
59
|
-
value: PropTypes.Validator<string>;
|
60
|
-
unitExtra: PropTypes.Requireable<string>;
|
61
|
-
unitValue: PropTypes.Requireable<string>;
|
62
|
-
discount: PropTypes.Requireable<string>;
|
63
|
-
}>>;
|
64
|
-
packs: PropTypes.Requireable<(PropTypes.InferProps<{
|
65
|
-
value: PropTypes.Requireable<number>;
|
66
|
-
unit: PropTypes.Requireable<string>;
|
67
|
-
title: PropTypes.Requireable<string>;
|
68
|
-
isDelim: PropTypes.Requireable<boolean>;
|
69
|
-
}> | null | undefined)[]>;
|
70
|
-
firstParams: PropTypes.Requireable<PropTypes.InferProps<{
|
71
|
-
title: PropTypes.Requireable<string>;
|
72
|
-
caption: PropTypes.Requireable<string>;
|
73
|
-
icons: PropTypes.Requireable<(PropTypes.InferProps<{
|
74
|
-
title: PropTypes.Requireable<string>;
|
75
|
-
svgIcon: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
76
|
-
}> | null | undefined)[]>;
|
77
|
-
}>>;
|
78
|
-
secondParams: PropTypes.Requireable<(PropTypes.InferProps<{
|
79
|
-
title: PropTypes.Requireable<string>;
|
80
|
-
value: PropTypes.Requireable<string>;
|
81
|
-
unit: PropTypes.Requireable<string>;
|
82
|
-
}> | null | undefined)[]>;
|
83
|
-
info: PropTypes.Requireable<object>;
|
84
|
-
isActive: PropTypes.Requireable<boolean>;
|
85
|
-
onClickConnect: PropTypes.Requireable<(...args: any[]) => any>;
|
86
|
-
onClickBuy: PropTypes.Requireable<(...args: any[]) => any>;
|
87
|
-
onClickMore: PropTypes.Requireable<(...args: any[]) => any>;
|
88
|
-
};
|
89
|
-
static defaultProps: {
|
90
|
-
moreLinkText: string;
|
91
|
-
showMoreLink: boolean;
|
92
|
-
buyButtonText: string;
|
93
|
-
showBuyButton: boolean;
|
94
|
-
connectButtonText: string;
|
95
|
-
showConnectButton: boolean;
|
96
|
-
shopTag: string;
|
97
|
-
linkTarget: string;
|
98
|
-
buyLinkTarget: string;
|
99
|
-
connectLinkTarget: string;
|
100
|
-
};
|
101
|
-
handleClickConnect: (e: React.SyntheticEvent<EventTarget, Event>) => void;
|
102
|
-
handleClickBuy: (e: React.SyntheticEvent<EventTarget, Event>) => void;
|
103
|
-
handleClickMore: (e: React.SyntheticEvent<EventTarget, Event>) => void;
|
104
|
-
renderIcons(): JSX.Element;
|
105
|
-
renderOptions(): JSX.Element | null;
|
106
|
-
renderShowcase(): JSX.Element;
|
107
|
-
render(): JSX.Element;
|
108
|
-
}
|
109
|
-
export default ProductTileRest;
|
@@ -1,291 +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 _extends from "@babel/runtime/helpers/extends";
|
11
|
-
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
12
|
-
import _createClass from "@babel/runtime/helpers/createClass";
|
13
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
14
|
-
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
15
|
-
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
16
|
-
|
17
|
-
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); }; }
|
18
|
-
|
19
|
-
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; } }
|
20
|
-
|
21
|
-
var _a, _b;
|
22
|
-
|
23
|
-
import * as React from 'react';
|
24
|
-
import * as PropTypes from 'prop-types';
|
25
|
-
import { cnCreate, Header, TextLink, Button, DropdownSocialList } from '@megafon/ui-core';
|
26
|
-
import "./ProductTileRest.css";
|
27
|
-
var LinkTargetType = PropTypes.oneOf(['_self', '_blank', '_parent', '_top']);
|
28
|
-
var cn = cnCreate('mfui-beta-product-tile-rest');
|
29
|
-
|
30
|
-
var ProductTileRest = /*#__PURE__*/function (_React$Component) {
|
31
|
-
_inherits(ProductTileRest, _React$Component);
|
32
|
-
|
33
|
-
var _super = _createSuper(ProductTileRest);
|
34
|
-
|
35
|
-
function ProductTileRest() {
|
36
|
-
var _this;
|
37
|
-
|
38
|
-
_classCallCheck(this, ProductTileRest);
|
39
|
-
|
40
|
-
_this = _super.apply(this, arguments);
|
41
|
-
|
42
|
-
_this.handleClickConnect = function (e) {
|
43
|
-
var _this$props = _this.props,
|
44
|
-
info = _this$props.info,
|
45
|
-
shopTag = _this$props.shopTag,
|
46
|
-
onClickConnect = _this$props.onClickConnect;
|
47
|
-
onClickConnect && onClickConnect(_extends(_extends({}, info), {
|
48
|
-
shopTag: shopTag
|
49
|
-
}), e);
|
50
|
-
};
|
51
|
-
|
52
|
-
_this.handleClickBuy = function (e) {
|
53
|
-
var _this$props2 = _this.props,
|
54
|
-
info = _this$props2.info,
|
55
|
-
shopTag = _this$props2.shopTag,
|
56
|
-
onClickBuy = _this$props2.onClickBuy,
|
57
|
-
_this$props2$payment = _this$props2.payment,
|
58
|
-
value = _this$props2$payment.value,
|
59
|
-
discount = _this$props2$payment.discount,
|
60
|
-
unitValue = _this$props2$payment.unitValue,
|
61
|
-
unitExtra = _this$props2$payment.unitExtra;
|
62
|
-
var priceValue = discount || value;
|
63
|
-
onClickBuy && onClickBuy(_extends(_extends({}, info), {
|
64
|
-
shopTag: shopTag,
|
65
|
-
price: priceValue,
|
66
|
-
unitValue: unitValue,
|
67
|
-
unitExtra: unitExtra
|
68
|
-
}), e);
|
69
|
-
};
|
70
|
-
|
71
|
-
_this.handleClickMore = function (e) {
|
72
|
-
var _this$props3 = _this.props,
|
73
|
-
info = _this$props3.info,
|
74
|
-
shopTag = _this$props3.shopTag,
|
75
|
-
onClickMore = _this$props3.onClickMore;
|
76
|
-
onClickMore && onClickMore(_extends(_extends({}, info), {
|
77
|
-
shopTag: shopTag
|
78
|
-
}), e);
|
79
|
-
};
|
80
|
-
|
81
|
-
return _this;
|
82
|
-
}
|
83
|
-
|
84
|
-
_createClass(ProductTileRest, [{
|
85
|
-
key: "renderIcons",
|
86
|
-
value: function renderIcons() {
|
87
|
-
var _this$props$firstPara = this.props.firstParams,
|
88
|
-
title = _this$props$firstPara.title,
|
89
|
-
caption = _this$props$firstPara.caption,
|
90
|
-
items = _this$props$firstPara.items;
|
91
|
-
return /*#__PURE__*/React.createElement("div", {
|
92
|
-
className: cn('messangers')
|
93
|
-
}, !!items.length && /*#__PURE__*/React.createElement("div", {
|
94
|
-
className: cn('messangers-list')
|
95
|
-
}, /*#__PURE__*/React.createElement(DropdownSocialList, {
|
96
|
-
icons: items,
|
97
|
-
maxIconNumber: 4,
|
98
|
-
className: cn('options-list')
|
99
|
-
})), title && /*#__PURE__*/React.createElement("div", {
|
100
|
-
className: cn('messangers-description')
|
101
|
-
}, title, /*#__PURE__*/React.createElement("br", null), " ", caption));
|
102
|
-
}
|
103
|
-
}, {
|
104
|
-
key: "renderOptions",
|
105
|
-
value: function renderOptions() {
|
106
|
-
var secondParams = this.props.secondParams;
|
107
|
-
|
108
|
-
if (!secondParams.length) {
|
109
|
-
return null;
|
110
|
-
}
|
111
|
-
|
112
|
-
return /*#__PURE__*/React.createElement("div", {
|
113
|
-
className: cn('options')
|
114
|
-
}, secondParams.map(function (param, index) {
|
115
|
-
var title = param.title,
|
116
|
-
value = param.value,
|
117
|
-
unit = param.unit;
|
118
|
-
return /*#__PURE__*/React.createElement("div", {
|
119
|
-
className: cn('option'),
|
120
|
-
key: title + index
|
121
|
-
}, /*#__PURE__*/React.createElement("div", {
|
122
|
-
className: cn('option-title'),
|
123
|
-
dangerouslySetInnerHTML: {
|
124
|
-
__html: title
|
125
|
-
}
|
126
|
-
}), /*#__PURE__*/React.createElement("div", {
|
127
|
-
className: cn('option-description')
|
128
|
-
}, "".concat(value, " ").concat(unit)));
|
129
|
-
}));
|
130
|
-
}
|
131
|
-
}, {
|
132
|
-
key: "renderShowcase",
|
133
|
-
value: function renderShowcase() {
|
134
|
-
var _this$props4 = this.props,
|
135
|
-
_this$props4$payment = _this$props4.payment,
|
136
|
-
title = _this$props4$payment.title,
|
137
|
-
value = _this$props4$payment.value,
|
138
|
-
unitExtra = _this$props4$payment.unitExtra,
|
139
|
-
unitValue = _this$props4$payment.unitValue,
|
140
|
-
discount = _this$props4$payment.discount,
|
141
|
-
packs = _this$props4.packs;
|
142
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
143
|
-
className: cn('price', {
|
144
|
-
discount: !!discount
|
145
|
-
})
|
146
|
-
}, /*#__PURE__*/React.createElement("div", {
|
147
|
-
className: cn('old-price-wrapper')
|
148
|
-
}, /*#__PURE__*/React.createElement("div", {
|
149
|
-
className: cn('old-price')
|
150
|
-
}, "".concat(value, " ").concat(unitValue))), /*#__PURE__*/React.createElement("div", {
|
151
|
-
className: cn('actual-price')
|
152
|
-
}, "".concat(discount || value, " ").concat(unitValue, " ").concat(unitExtra)), /*#__PURE__*/React.createElement("div", {
|
153
|
-
className: cn('discount-condition')
|
154
|
-
}, title)), packs.map(function (param, index) {
|
155
|
-
var paramValue = param.value,
|
156
|
-
paramUnit = param.unit,
|
157
|
-
paramTitle = param.title,
|
158
|
-
isDelim = param.isDelim;
|
159
|
-
return /*#__PURE__*/React.createElement("div", {
|
160
|
-
className: cn('pack'),
|
161
|
-
key: paramValue + paramUnit + index
|
162
|
-
}, isDelim ? paramTitle : "".concat(paramValue, " ").concat(paramUnit));
|
163
|
-
}));
|
164
|
-
}
|
165
|
-
}, {
|
166
|
-
key: "render",
|
167
|
-
value: function render() {
|
168
|
-
var _this$props5 = this.props,
|
169
|
-
title = _this$props5.title,
|
170
|
-
description = _this$props5.description,
|
171
|
-
link = _this$props5.link,
|
172
|
-
showMoreLink = _this$props5.showMoreLink,
|
173
|
-
moreLinkText = _this$props5.moreLinkText,
|
174
|
-
connectLink = _this$props5.connectLink,
|
175
|
-
connectButtonText = _this$props5.connectButtonText,
|
176
|
-
showConnectButton = _this$props5.showConnectButton,
|
177
|
-
buyLink = _this$props5.buyLink,
|
178
|
-
showBuyButton = _this$props5.showBuyButton,
|
179
|
-
buyButtonText = _this$props5.buyButtonText,
|
180
|
-
buttonTheme = _this$props5.buttonTheme,
|
181
|
-
buttonType = _this$props5.buttonType,
|
182
|
-
isActive = _this$props5.isActive,
|
183
|
-
className = _this$props5.className,
|
184
|
-
linkTarget = _this$props5.linkTarget,
|
185
|
-
buyLinkTarget = _this$props5.buyLinkTarget,
|
186
|
-
connectLinkTarget = _this$props5.connectLinkTarget;
|
187
|
-
return /*#__PURE__*/React.createElement("div", {
|
188
|
-
className: cn('', {
|
189
|
-
active: isActive
|
190
|
-
}, className)
|
191
|
-
}, /*#__PURE__*/React.createElement("div", {
|
192
|
-
className: cn('info')
|
193
|
-
}, /*#__PURE__*/React.createElement(Header, {
|
194
|
-
className: cn('header'),
|
195
|
-
as: "h3"
|
196
|
-
}, title), showMoreLink && /*#__PURE__*/React.createElement(TextLink, {
|
197
|
-
className: cn('detail-link'),
|
198
|
-
href: link,
|
199
|
-
target: linkTarget,
|
200
|
-
onClick: this.handleClickMore
|
201
|
-
}, moreLinkText), this.renderShowcase(), this.renderIcons(), this.renderOptions(), description && /*#__PURE__*/React.createElement("div", {
|
202
|
-
className: cn('description')
|
203
|
-
}, description)), /*#__PURE__*/React.createElement("div", {
|
204
|
-
className: cn('buy')
|
205
|
-
}, showBuyButton && /*#__PURE__*/React.createElement(Button, {
|
206
|
-
classes: {
|
207
|
-
root: cn('buy-button', {
|
208
|
-
'additional-margin': !showConnectButton
|
209
|
-
})
|
210
|
-
},
|
211
|
-
theme: buttonTheme,
|
212
|
-
type: buttonType,
|
213
|
-
sizeAll: "medium",
|
214
|
-
href: buyLink,
|
215
|
-
target: buyLinkTarget,
|
216
|
-
onClick: this.handleClickBuy
|
217
|
-
}, buyButtonText), showConnectButton && /*#__PURE__*/React.createElement(TextLink, {
|
218
|
-
className: cn('detail-link'),
|
219
|
-
href: connectLink,
|
220
|
-
onClick: this.handleClickConnect,
|
221
|
-
target: connectLinkTarget
|
222
|
-
}, connectButtonText)));
|
223
|
-
}
|
224
|
-
}]);
|
225
|
-
|
226
|
-
return ProductTileRest;
|
227
|
-
}(React.Component);
|
228
|
-
|
229
|
-
ProductTileRest.propTypes = {
|
230
|
-
title: PropTypes.string,
|
231
|
-
description: PropTypes.string,
|
232
|
-
shopTag: PropTypes.string,
|
233
|
-
link: PropTypes.string,
|
234
|
-
linkTarget: LinkTargetType,
|
235
|
-
moreLinkText: PropTypes.string,
|
236
|
-
showMoreLink: PropTypes.bool,
|
237
|
-
buyLink: PropTypes.string,
|
238
|
-
buyLinkTarget: LinkTargetType,
|
239
|
-
buyButtonText: PropTypes.string,
|
240
|
-
showBuyButton: PropTypes.bool,
|
241
|
-
connectLink: PropTypes.string,
|
242
|
-
connectLinkTarget: LinkTargetType,
|
243
|
-
connectButtonText: PropTypes.string,
|
244
|
-
showConnectButton: PropTypes.bool,
|
245
|
-
buttonTheme: (_a = Button.propTypes) === null || _a === void 0 ? void 0 : _a.theme,
|
246
|
-
buttonType: (_b = Button.propTypes) === null || _b === void 0 ? void 0 : _b.type,
|
247
|
-
payment: PropTypes.shape({
|
248
|
-
title: PropTypes.string,
|
249
|
-
value: PropTypes.string.isRequired,
|
250
|
-
unitExtra: PropTypes.string,
|
251
|
-
unitValue: PropTypes.string,
|
252
|
-
discount: PropTypes.string
|
253
|
-
}).isRequired,
|
254
|
-
packs: PropTypes.arrayOf(PropTypes.shape({
|
255
|
-
value: PropTypes.number,
|
256
|
-
unit: PropTypes.string,
|
257
|
-
title: PropTypes.string,
|
258
|
-
isDelim: PropTypes.bool
|
259
|
-
})),
|
260
|
-
firstParams: PropTypes.shape({
|
261
|
-
title: PropTypes.string,
|
262
|
-
caption: PropTypes.string,
|
263
|
-
icons: PropTypes.arrayOf(PropTypes.shape({
|
264
|
-
title: PropTypes.string,
|
265
|
-
svgIcon: PropTypes.element
|
266
|
-
}))
|
267
|
-
}),
|
268
|
-
secondParams: PropTypes.arrayOf(PropTypes.shape({
|
269
|
-
title: PropTypes.string,
|
270
|
-
value: PropTypes.string,
|
271
|
-
unit: PropTypes.string
|
272
|
-
})),
|
273
|
-
info: PropTypes.object,
|
274
|
-
isActive: PropTypes.bool,
|
275
|
-
onClickConnect: PropTypes.func,
|
276
|
-
onClickBuy: PropTypes.func,
|
277
|
-
onClickMore: PropTypes.func
|
278
|
-
};
|
279
|
-
ProductTileRest.defaultProps = {
|
280
|
-
moreLinkText: 'Подробнее',
|
281
|
-
showMoreLink: true,
|
282
|
-
buyButtonText: 'Купить',
|
283
|
-
showBuyButton: true,
|
284
|
-
connectButtonText: 'Перейти на тариф',
|
285
|
-
showConnectButton: true,
|
286
|
-
shopTag: '',
|
287
|
-
linkTarget: '_self',
|
288
|
-
buyLinkTarget: '_self',
|
289
|
-
connectLinkTarget: '_self'
|
290
|
-
};
|
291
|
-
export default ProductTileRest;
|