@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,86 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import * as PropTypes from 'prop-types';
|
3
|
-
import './ProductCardTotal.less';
|
4
|
-
export declare type TLinkTargetType = '_self' | '_blank' | '_parent' | '_top';
|
5
|
-
export interface IProductCardTotalProps {
|
6
|
-
/** Payment
|
7
|
-
* Object with args: value: string(required), unit: string(required), oldValue: string
|
8
|
-
*/
|
9
|
-
payment?: {
|
10
|
-
value: string | number;
|
11
|
-
unit: string;
|
12
|
-
oldValue?: string;
|
13
|
-
};
|
14
|
-
/** Info - any type - return with onSubmit, onClickConnect, onClickMore */
|
15
|
-
info?: {};
|
16
|
-
/** Submit text */
|
17
|
-
submitText?: string;
|
18
|
-
/** Submit link,
|
19
|
-
* show button if included
|
20
|
-
*/
|
21
|
-
submitLink?: string;
|
22
|
-
/** Submit link target */
|
23
|
-
submitLinkTarget?: TLinkTargetType;
|
24
|
-
/** More text */
|
25
|
-
moreText?: string;
|
26
|
-
/** More link,
|
27
|
-
* show button if included
|
28
|
-
*/
|
29
|
-
moreLink?: string;
|
30
|
-
/** More link target */
|
31
|
-
moreLinkTarget?: TLinkTargetType;
|
32
|
-
/** Connect text */
|
33
|
-
connectText?: string;
|
34
|
-
className?: string;
|
35
|
-
classNameWrap?: string;
|
36
|
-
classNameCost?: string;
|
37
|
-
classNameButtons?: string;
|
38
|
-
classNameSubmit?: string;
|
39
|
-
classNameMore?: string;
|
40
|
-
classNameConnect?: string;
|
41
|
-
/** Submit hander,
|
42
|
-
* show button if included
|
43
|
-
*/
|
44
|
-
onSubmit?: (e: React.SyntheticEvent<EventTarget>, info: {}) => void;
|
45
|
-
/** Connect hander,
|
46
|
-
* show button if included
|
47
|
-
*/
|
48
|
-
onClickConnect?: (e: React.SyntheticEvent<EventTarget>, info: {}) => void;
|
49
|
-
/** More hander,
|
50
|
-
* show button if included
|
51
|
-
*/
|
52
|
-
onClickMore?: (e: React.SyntheticEvent<EventTarget>, info: {}) => void;
|
53
|
-
}
|
54
|
-
declare class ProductCardTotal extends React.Component<IProductCardTotalProps, {}> {
|
55
|
-
static propTypes: {
|
56
|
-
payment: PropTypes.Requireable<PropTypes.InferProps<{
|
57
|
-
value: PropTypes.Validator<string | number>;
|
58
|
-
unit: PropTypes.Validator<string>;
|
59
|
-
oldValue: PropTypes.Requireable<string>;
|
60
|
-
}>>;
|
61
|
-
info: PropTypes.Requireable<object>;
|
62
|
-
submitText: PropTypes.Requireable<string>;
|
63
|
-
submitLink: PropTypes.Requireable<string>;
|
64
|
-
submitLinkTarget: PropTypes.Requireable<string>;
|
65
|
-
moreText: PropTypes.Requireable<string>;
|
66
|
-
moreLink: PropTypes.Requireable<string>;
|
67
|
-
moreLinkTarget: PropTypes.Requireable<string>;
|
68
|
-
connectText: PropTypes.Requireable<string>;
|
69
|
-
className: PropTypes.Requireable<string>;
|
70
|
-
classNameWrap: PropTypes.Requireable<string>;
|
71
|
-
classNameCost: PropTypes.Requireable<string>;
|
72
|
-
classNameButtons: PropTypes.Requireable<string>;
|
73
|
-
classNameSubmit: PropTypes.Requireable<string>;
|
74
|
-
classNameMore: PropTypes.Requireable<string>;
|
75
|
-
classNameConnect: PropTypes.Requireable<string>;
|
76
|
-
onSubmit: PropTypes.Requireable<(...args: any[]) => any>;
|
77
|
-
onClickConnect: PropTypes.Requireable<(...args: any[]) => any>;
|
78
|
-
onClickMore: PropTypes.Requireable<(...args: any[]) => any>;
|
79
|
-
};
|
80
|
-
static defaultProps: Partial<IProductCardTotalProps>;
|
81
|
-
handleSubmit: (e: React.SyntheticEvent<EventTarget, Event>) => void;
|
82
|
-
handleClickConnect: (e: React.SyntheticEvent<EventTarget, Event>) => void;
|
83
|
-
handleClickMore: (e: React.SyntheticEvent<EventTarget, Event>) => void;
|
84
|
-
render(): JSX.Element;
|
85
|
-
}
|
86
|
-
export default ProductCardTotal;
|
@@ -1,218 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
4
|
-
|
5
|
-
require("core-js/modules/es.date.to-string");
|
6
|
-
|
7
|
-
require("core-js/modules/es.object.to-string");
|
8
|
-
|
9
|
-
require("core-js/modules/es.reflect.construct");
|
10
|
-
|
11
|
-
require("core-js/modules/es.regexp.to-string");
|
12
|
-
|
13
|
-
Object.defineProperty(exports, "__esModule", {
|
14
|
-
value: true
|
15
|
-
});
|
16
|
-
exports["default"] = void 0;
|
17
|
-
|
18
|
-
require("core-js/modules/es.date.to-string");
|
19
|
-
|
20
|
-
require("core-js/modules/es.object.to-string");
|
21
|
-
|
22
|
-
require("core-js/modules/es.reflect.construct");
|
23
|
-
|
24
|
-
require("core-js/modules/es.regexp.to-string");
|
25
|
-
|
26
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
27
|
-
|
28
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
29
|
-
|
30
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
31
|
-
|
32
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
33
|
-
|
34
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
35
|
-
|
36
|
-
var React = _interopRequireWildcard(require("react"));
|
37
|
-
|
38
|
-
var PropTypes = _interopRequireWildcard(require("prop-types"));
|
39
|
-
|
40
|
-
var _uiCore = require("@megafon/ui-core");
|
41
|
-
|
42
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
43
|
-
|
44
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
45
|
-
|
46
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
47
|
-
|
48
|
-
function _createSuper(Derived) {
|
49
|
-
return function () {
|
50
|
-
var Super = (0, _getPrototypeOf2["default"])(Derived),
|
51
|
-
result;
|
52
|
-
|
53
|
-
if (_isNativeReflectConstruct()) {
|
54
|
-
var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor;
|
55
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
56
|
-
} else {
|
57
|
-
result = Super.apply(this, arguments);
|
58
|
-
}
|
59
|
-
|
60
|
-
return (0, _possibleConstructorReturn2["default"])(this, result);
|
61
|
-
};
|
62
|
-
}
|
63
|
-
|
64
|
-
function _isNativeReflectConstruct() {
|
65
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
66
|
-
if (Reflect.construct.sham) return false;
|
67
|
-
if (typeof Proxy === "function") return true;
|
68
|
-
|
69
|
-
try {
|
70
|
-
Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
|
71
|
-
return true;
|
72
|
-
} catch (e) {
|
73
|
-
return false;
|
74
|
-
}
|
75
|
-
}
|
76
|
-
|
77
|
-
var LinkTargetType = PropTypes.oneOf(['_self', '_blank', '_parent', '_top']);
|
78
|
-
var cn = (0, _uiCore.cnCreate)('mfui-beta-product-card-total');
|
79
|
-
|
80
|
-
var ProductCardTotal = /*#__PURE__*/function (_React$Component) {
|
81
|
-
(0, _inherits2["default"])(ProductCardTotal, _React$Component);
|
82
|
-
|
83
|
-
var _super = _createSuper(ProductCardTotal);
|
84
|
-
|
85
|
-
function ProductCardTotal() {
|
86
|
-
var _this;
|
87
|
-
|
88
|
-
(0, _classCallCheck2["default"])(this, ProductCardTotal);
|
89
|
-
_this = _super.apply(this, arguments);
|
90
|
-
|
91
|
-
_this.handleSubmit = function (e) {
|
92
|
-
var _this$props = _this.props,
|
93
|
-
onSubmit = _this$props.onSubmit,
|
94
|
-
info = _this$props.info;
|
95
|
-
onSubmit && onSubmit(e, info || {});
|
96
|
-
};
|
97
|
-
|
98
|
-
_this.handleClickConnect = function (e) {
|
99
|
-
var _this$props2 = _this.props,
|
100
|
-
onClickConnect = _this$props2.onClickConnect,
|
101
|
-
info = _this$props2.info;
|
102
|
-
onClickConnect && onClickConnect(e, info || {});
|
103
|
-
};
|
104
|
-
|
105
|
-
_this.handleClickMore = function (e) {
|
106
|
-
var _this$props3 = _this.props,
|
107
|
-
onClickMore = _this$props3.onClickMore,
|
108
|
-
info = _this$props3.info;
|
109
|
-
onClickMore && onClickMore(e, info || {});
|
110
|
-
};
|
111
|
-
|
112
|
-
return _this;
|
113
|
-
}
|
114
|
-
|
115
|
-
(0, _createClass2["default"])(ProductCardTotal, [{
|
116
|
-
key: "render",
|
117
|
-
value: function render() {
|
118
|
-
var _this$props4 = this.props,
|
119
|
-
payment = _this$props4.payment,
|
120
|
-
onSubmit = _this$props4.onSubmit,
|
121
|
-
submitLink = _this$props4.submitLink,
|
122
|
-
submitText = _this$props4.submitText,
|
123
|
-
onClickMore = _this$props4.onClickMore,
|
124
|
-
moreLink = _this$props4.moreLink,
|
125
|
-
onClickConnect = _this$props4.onClickConnect,
|
126
|
-
moreText = _this$props4.moreText,
|
127
|
-
connectText = _this$props4.connectText,
|
128
|
-
className = _this$props4.className,
|
129
|
-
classNameCost = _this$props4.classNameCost,
|
130
|
-
classNameButtons = _this$props4.classNameButtons,
|
131
|
-
classNameSubmit = _this$props4.classNameSubmit,
|
132
|
-
classNameMore = _this$props4.classNameMore,
|
133
|
-
classNameConnect = _this$props4.classNameConnect,
|
134
|
-
classNameWrap = _this$props4.classNameWrap,
|
135
|
-
moreLinkTarget = _this$props4.moreLinkTarget,
|
136
|
-
submitLinkTarget = _this$props4.submitLinkTarget;
|
137
|
-
var isSubmit = onSubmit || submitLink;
|
138
|
-
var isMore = onClickMore || moreLink;
|
139
|
-
return /*#__PURE__*/React.createElement("div", {
|
140
|
-
className: cn('', {}, className)
|
141
|
-
}, /*#__PURE__*/React.createElement("div", {
|
142
|
-
className: cn('wrap', {}, classNameWrap)
|
143
|
-
}, payment && /*#__PURE__*/React.createElement("div", {
|
144
|
-
className: cn('cost', {
|
145
|
-
'old-value': !!payment.oldValue
|
146
|
-
}, classNameCost)
|
147
|
-
}, /*#__PURE__*/React.createElement("span", {
|
148
|
-
className: cn('price')
|
149
|
-
}, payment.value), "\xA0", payment.oldValue && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
150
|
-
className: cn('old-price')
|
151
|
-
}, payment.oldValue), /*#__PURE__*/React.createElement("br", null)), /*#__PURE__*/React.createElement("span", {
|
152
|
-
className: cn('unit')
|
153
|
-
}, payment.unit)), /*#__PURE__*/React.createElement("div", {
|
154
|
-
className: cn('buttons', classNameButtons)
|
155
|
-
}, isSubmit && /*#__PURE__*/React.createElement(_uiCore.Button, {
|
156
|
-
classes: {
|
157
|
-
root: cn('button', classNameSubmit)
|
158
|
-
},
|
159
|
-
fullWidth: true,
|
160
|
-
href: submitLink,
|
161
|
-
onClick: this.handleSubmit,
|
162
|
-
target: submitLinkTarget
|
163
|
-
}, submitText), !isSubmit && isMore && /*#__PURE__*/React.createElement(_uiCore.Button, {
|
164
|
-
classes: {
|
165
|
-
root: cn('description-more', classNameMore)
|
166
|
-
},
|
167
|
-
type: "outline",
|
168
|
-
fullWidth: true,
|
169
|
-
href: moreLink,
|
170
|
-
target: moreLinkTarget,
|
171
|
-
onClick: this.handleClickMore
|
172
|
-
}, moreText), onClickConnect && /*#__PURE__*/React.createElement("div", {
|
173
|
-
className: cn('connect-button', classNameConnect),
|
174
|
-
onClick: this.handleClickConnect
|
175
|
-
}, /*#__PURE__*/React.createElement("div", {
|
176
|
-
className: cn('connect-text-block')
|
177
|
-
}, /*#__PURE__*/React.createElement("span", {
|
178
|
-
className: cn('connect-text-words')
|
179
|
-
}, connectText), "\u0430\u0431\u043E\u043D\u0435\u043D\u0442\u0430\u043C \u041C\u0435\u0433\u0430\u0424\u043E\u043D\u0430")))));
|
180
|
-
}
|
181
|
-
}]);
|
182
|
-
return ProductCardTotal;
|
183
|
-
}(React.Component);
|
184
|
-
|
185
|
-
ProductCardTotal.propTypes = {
|
186
|
-
payment: PropTypes.shape({
|
187
|
-
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
|
188
|
-
unit: PropTypes.string.isRequired,
|
189
|
-
oldValue: PropTypes.string
|
190
|
-
}),
|
191
|
-
info: PropTypes.object,
|
192
|
-
submitText: PropTypes.string,
|
193
|
-
submitLink: PropTypes.string,
|
194
|
-
submitLinkTarget: LinkTargetType,
|
195
|
-
moreText: PropTypes.string,
|
196
|
-
moreLink: PropTypes.string,
|
197
|
-
moreLinkTarget: LinkTargetType,
|
198
|
-
connectText: PropTypes.string,
|
199
|
-
className: PropTypes.string,
|
200
|
-
classNameWrap: PropTypes.string,
|
201
|
-
classNameCost: PropTypes.string,
|
202
|
-
classNameButtons: PropTypes.string,
|
203
|
-
classNameSubmit: PropTypes.string,
|
204
|
-
classNameMore: PropTypes.string,
|
205
|
-
classNameConnect: PropTypes.string,
|
206
|
-
onSubmit: PropTypes.func,
|
207
|
-
onClickConnect: PropTypes.func,
|
208
|
-
onClickMore: PropTypes.func
|
209
|
-
};
|
210
|
-
ProductCardTotal.defaultProps = {
|
211
|
-
submitText: 'Выбрать',
|
212
|
-
moreText: 'Подробнее',
|
213
|
-
connectText: 'Подключить',
|
214
|
-
moreLinkTarget: '_self',
|
215
|
-
submitLinkTarget: '_self'
|
216
|
-
};
|
217
|
-
var _default = ProductCardTotal;
|
218
|
-
exports["default"] = _default;
|
@@ -1,162 +0,0 @@
|
|
1
|
-
h1,
|
2
|
-
h2,
|
3
|
-
h3,
|
4
|
-
h4,
|
5
|
-
h5 {
|
6
|
-
margin: 0;
|
7
|
-
}
|
8
|
-
.mfui-beta-product-card-wrapper {
|
9
|
-
font-family: inherit;
|
10
|
-
-webkit-box-sizing: border-box;
|
11
|
-
box-sizing: border-box;
|
12
|
-
position: relative;
|
13
|
-
}
|
14
|
-
.mfui-beta-product-card-wrapper_bt {
|
15
|
-
border-top: 1px solid #D8D8D8;
|
16
|
-
}
|
17
|
-
.mfui-beta-product-card-wrapper_bt_sky {
|
18
|
-
border-top: 1px solid #EDEDED;
|
19
|
-
}
|
20
|
-
.mfui-beta-product-card-wrapper_bb {
|
21
|
-
border-bottom: 1px solid #D8D8D8;
|
22
|
-
}
|
23
|
-
.mfui-beta-product-card-wrapper_bb_sky {
|
24
|
-
border-bottom: 1px solid #EDEDED;
|
25
|
-
}
|
26
|
-
@media screen and (max-width: 767px) {
|
27
|
-
.mfui-beta-product-card-wrapper_bl {
|
28
|
-
border-left: 1px solid #D8D8D8;
|
29
|
-
}
|
30
|
-
.mfui-beta-product-card-wrapper_bl_sky {
|
31
|
-
border-left: 1px solid #EDEDED;
|
32
|
-
}
|
33
|
-
.mfui-beta-product-card-wrapper_br {
|
34
|
-
border-right: 1px solid #D8D8D8;
|
35
|
-
}
|
36
|
-
.mfui-beta-product-card-wrapper_br_sky {
|
37
|
-
border-right: 1px solid #EDEDED;
|
38
|
-
}
|
39
|
-
}
|
40
|
-
.no-touchevents .mfui-beta-product-card-wrapper:hover {
|
41
|
-
z-index: 3;
|
42
|
-
-webkit-box-shadow: 0 1px 5px 2px #D8D8D8;
|
43
|
-
box-shadow: 0 1px 5px 2px #D8D8D8;
|
44
|
-
}
|
45
|
-
.mfui-beta-product-card-wrapper_hint_green {
|
46
|
-
border-color: #00B956 !important;
|
47
|
-
}
|
48
|
-
.mfui-beta-product-card-wrapper_hint_green .mfui-beta-product-card-wrapper__hint-box {
|
49
|
-
background: #00B956 !important;
|
50
|
-
}
|
51
|
-
.mfui-beta-product-card-wrapper_hint_orange .mfui-beta-product-card-wrapper__hint-box {
|
52
|
-
background: #FFA717 !important;
|
53
|
-
}
|
54
|
-
.mfui-beta-product-card-wrapper_hint_black .mfui-beta-product-card-wrapper__hint-box {
|
55
|
-
background: #333333 !important;
|
56
|
-
}
|
57
|
-
@media screen and (max-width: 767px) {
|
58
|
-
.mfui-beta-product-card-wrapper_theme_default {
|
59
|
-
border-left: 1px solid #D8D8D8;
|
60
|
-
border-right: 1px solid #D8D8D8;
|
61
|
-
}
|
62
|
-
}
|
63
|
-
.mfui-beta-product-card-wrapper_theme_default .mfui-beta-product-card-wrapper__inner {
|
64
|
-
padding: 40px 20px 40px 20px;
|
65
|
-
}
|
66
|
-
@media screen and (min-width: 768px) {
|
67
|
-
.mfui-beta-product-card-wrapper_theme_default .mfui-beta-product-card-wrapper__inner {
|
68
|
-
padding: 36px 24px 36px 24px;
|
69
|
-
}
|
70
|
-
}
|
71
|
-
@media screen and (min-width: 1024px) {
|
72
|
-
.mfui-beta-product-card-wrapper_theme_default .mfui-beta-product-card-wrapper__inner {
|
73
|
-
padding-left: 32px;
|
74
|
-
padding-right: 32px;
|
75
|
-
}
|
76
|
-
}
|
77
|
-
@media screen and (min-width: 1280px) {
|
78
|
-
.mfui-beta-product-card-wrapper_theme_default .mfui-beta-product-card-wrapper__inner {
|
79
|
-
padding-left: 40px;
|
80
|
-
}
|
81
|
-
}
|
82
|
-
.mfui-beta-product-card-wrapper__hint-box {
|
83
|
-
display: block;
|
84
|
-
position: absolute;
|
85
|
-
color: #FFFFFF;
|
86
|
-
}
|
87
|
-
@media screen and (max-width: 767px) {
|
88
|
-
.mfui-beta-product-card-wrapper__hint-box {
|
89
|
-
top: 0;
|
90
|
-
right: 0;
|
91
|
-
left: 0;
|
92
|
-
padding: 6px 0;
|
93
|
-
text-align: center;
|
94
|
-
}
|
95
|
-
}
|
96
|
-
@media screen and (min-width: 768px) {
|
97
|
-
.mfui-beta-product-card-wrapper__hint-box {
|
98
|
-
top: -1px;
|
99
|
-
right: 100%;
|
100
|
-
bottom: -1px;
|
101
|
-
}
|
102
|
-
}
|
103
|
-
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
104
|
-
.mfui-beta-product-card-wrapper__hint-box {
|
105
|
-
width: 24px;
|
106
|
-
}
|
107
|
-
}
|
108
|
-
@media screen and (min-width: 1024px) and (max-width: 1279px) {
|
109
|
-
.mfui-beta-product-card-wrapper__hint-box {
|
110
|
-
width: 32px;
|
111
|
-
}
|
112
|
-
}
|
113
|
-
@media screen and (min-width: 1280px) {
|
114
|
-
.mfui-beta-product-card-wrapper__hint-box {
|
115
|
-
width: 40px;
|
116
|
-
}
|
117
|
-
}
|
118
|
-
@media screen and (min-width: 768px) {
|
119
|
-
.mfui-beta-product-card-wrapper__hint-text {
|
120
|
-
-webkit-transform-origin: 0 0;
|
121
|
-
transform-origin: 0 0;
|
122
|
-
-webkit-transform: translateY(-50%) rotate(-90deg);
|
123
|
-
transform: translateY(-50%) rotate(-90deg);
|
124
|
-
position: absolute;
|
125
|
-
top: 50%;
|
126
|
-
width: 100px;
|
127
|
-
margin-top: 60px;
|
128
|
-
}
|
129
|
-
}
|
130
|
-
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
131
|
-
.mfui-beta-product-card-wrapper__hint-text {
|
132
|
-
margin-left: -2px;
|
133
|
-
}
|
134
|
-
}
|
135
|
-
@media screen and (min-width: 1024px) and (max-width: 1279px) {
|
136
|
-
.mfui-beta-product-card-wrapper__hint-text {
|
137
|
-
margin-left: 2px;
|
138
|
-
}
|
139
|
-
}
|
140
|
-
@media screen and (min-width: 1280px) {
|
141
|
-
.mfui-beta-product-card-wrapper__hint-text {
|
142
|
-
margin-left: 6px;
|
143
|
-
}
|
144
|
-
}
|
145
|
-
@media screen and (min-width: 768px) {
|
146
|
-
.mfui-beta-product-card-wrapper__container {
|
147
|
-
display: -webkit-box;
|
148
|
-
display: -ms-flexbox;
|
149
|
-
display: flex;
|
150
|
-
-webkit-box-align: baseline;
|
151
|
-
-ms-flex-align: baseline;
|
152
|
-
align-items: baseline;
|
153
|
-
-webkit-box-pack: justify;
|
154
|
-
-ms-flex-pack: justify;
|
155
|
-
justify-content: space-between;
|
156
|
-
}
|
157
|
-
}
|
158
|
-
@media screen and (max-width: 767px) {
|
159
|
-
.mfui-beta-product-card-wrapper_hint .mfui-beta-product-card-wrapper__container {
|
160
|
-
margin-top: 40px;
|
161
|
-
}
|
162
|
-
}
|
@@ -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,170 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
4
|
-
|
5
|
-
require("core-js/modules/es.date.to-string");
|
6
|
-
|
7
|
-
require("core-js/modules/es.function.name");
|
8
|
-
|
9
|
-
require("core-js/modules/es.object.to-string");
|
10
|
-
|
11
|
-
require("core-js/modules/es.reflect.construct");
|
12
|
-
|
13
|
-
require("core-js/modules/es.regexp.to-string");
|
14
|
-
|
15
|
-
Object.defineProperty(exports, "__esModule", {
|
16
|
-
value: true
|
17
|
-
});
|
18
|
-
exports["default"] = void 0;
|
19
|
-
|
20
|
-
require("core-js/modules/es.date.to-string");
|
21
|
-
|
22
|
-
require("core-js/modules/es.function.name");
|
23
|
-
|
24
|
-
require("core-js/modules/es.object.to-string");
|
25
|
-
|
26
|
-
require("core-js/modules/es.reflect.construct");
|
27
|
-
|
28
|
-
require("core-js/modules/es.regexp.to-string");
|
29
|
-
|
30
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
31
|
-
|
32
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
33
|
-
|
34
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
35
|
-
|
36
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
37
|
-
|
38
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
39
|
-
|
40
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
41
|
-
|
42
|
-
var React = _interopRequireWildcard(require("react"));
|
43
|
-
|
44
|
-
var PropTypes = _interopRequireWildcard(require("prop-types"));
|
45
|
-
|
46
|
-
var _uiCore = require("@megafon/ui-core");
|
47
|
-
|
48
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
49
|
-
|
50
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
51
|
-
|
52
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
53
|
-
|
54
|
-
function _createSuper(Derived) {
|
55
|
-
return function () {
|
56
|
-
var Super = (0, _getPrototypeOf2["default"])(Derived),
|
57
|
-
result;
|
58
|
-
|
59
|
-
if (_isNativeReflectConstruct()) {
|
60
|
-
var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor;
|
61
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
62
|
-
} else {
|
63
|
-
result = Super.apply(this, arguments);
|
64
|
-
}
|
65
|
-
|
66
|
-
return (0, _possibleConstructorReturn2["default"])(this, result);
|
67
|
-
};
|
68
|
-
}
|
69
|
-
|
70
|
-
function _isNativeReflectConstruct() {
|
71
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
72
|
-
if (Reflect.construct.sham) return false;
|
73
|
-
if (typeof Proxy === "function") return true;
|
74
|
-
|
75
|
-
try {
|
76
|
-
Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
|
77
|
-
return true;
|
78
|
-
} catch (e) {
|
79
|
-
return false;
|
80
|
-
}
|
81
|
-
}
|
82
|
-
|
83
|
-
var cn = (0, _uiCore.cnCreate)('mfui-beta-product-card-wrapper');
|
84
|
-
|
85
|
-
var ProductCardWrapper = /*#__PURE__*/function (_React$Component) {
|
86
|
-
(0, _inherits2["default"])(ProductCardWrapper, _React$Component);
|
87
|
-
|
88
|
-
var _super = _createSuper(ProductCardWrapper);
|
89
|
-
|
90
|
-
function ProductCardWrapper() {
|
91
|
-
var _this;
|
92
|
-
|
93
|
-
(0, _classCallCheck2["default"])(this, ProductCardWrapper);
|
94
|
-
_this = _super.apply(this, arguments);
|
95
|
-
|
96
|
-
_this.handleClick = function (e) {
|
97
|
-
return e.target.tagName !== 'A';
|
98
|
-
};
|
99
|
-
|
100
|
-
return _this;
|
101
|
-
}
|
102
|
-
|
103
|
-
(0, _createClass2["default"])(ProductCardWrapper, [{
|
104
|
-
key: "renderHintLabel",
|
105
|
-
value: function renderHintLabel() {
|
106
|
-
var hint = this.props.hint;
|
107
|
-
return /*#__PURE__*/React.createElement("div", {
|
108
|
-
className: cn('hint-box')
|
109
|
-
}, /*#__PURE__*/React.createElement("div", {
|
110
|
-
className: cn('hint-text')
|
111
|
-
}, hint && hint.title));
|
112
|
-
}
|
113
|
-
}, {
|
114
|
-
key: "render",
|
115
|
-
value: function render() {
|
116
|
-
var _cn;
|
117
|
-
|
118
|
-
var _this$props = this.props,
|
119
|
-
hint = _this$props.hint,
|
120
|
-
border = _this$props.border,
|
121
|
-
theme = _this$props.theme,
|
122
|
-
className = _this$props.className,
|
123
|
-
classNameInner = _this$props.classNameInner,
|
124
|
-
classNameContainer = _this$props.classNameContainer;
|
125
|
-
|
126
|
-
var getHintColor = function getHintColor() {
|
127
|
-
return !!hint && hint.constructor.name === 'Object' ? hint.color : null;
|
128
|
-
};
|
129
|
-
|
130
|
-
var color = getHintColor();
|
131
|
-
return /*#__PURE__*/React.createElement("div", {
|
132
|
-
className: cn('', (_cn = {
|
133
|
-
hint: !!hint
|
134
|
-
}, (0, _defineProperty2["default"])(_cn, "hint_".concat(color), !!color), (0, _defineProperty2["default"])(_cn, "bl", border.left), (0, _defineProperty2["default"])(_cn, "br", border.right), (0, _defineProperty2["default"])(_cn, "bt", border.top), (0, _defineProperty2["default"])(_cn, "bb", border.bottom), (0, _defineProperty2["default"])(_cn, "theme", theme), _cn), className),
|
135
|
-
onClick: this.handleClick
|
136
|
-
}, /*#__PURE__*/React.createElement("div", {
|
137
|
-
className: cn('inner', {}, classNameInner)
|
138
|
-
}, hint && this.renderHintLabel(), /*#__PURE__*/React.createElement("div", {
|
139
|
-
className: cn('container', {}, classNameContainer)
|
140
|
-
}, this.props.children)));
|
141
|
-
}
|
142
|
-
}]);
|
143
|
-
return ProductCardWrapper;
|
144
|
-
}(React.Component);
|
145
|
-
|
146
|
-
ProductCardWrapper.propTypes = {
|
147
|
-
theme: PropTypes.oneOf(['default']),
|
148
|
-
hint: PropTypes.shape({
|
149
|
-
title: PropTypes.string.isRequired,
|
150
|
-
color: PropTypes.oneOf(['green', 'orange', 'black']).isRequired
|
151
|
-
}),
|
152
|
-
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.element), PropTypes.element, PropTypes.node]),
|
153
|
-
border: PropTypes.shape({
|
154
|
-
top: PropTypes.oneOf([false, true, 'sky']),
|
155
|
-
right: PropTypes.oneOf([false, true, 'sky']),
|
156
|
-
bottom: PropTypes.oneOf([false, true, 'sky']),
|
157
|
-
left: PropTypes.oneOf([false, true, 'sky'])
|
158
|
-
}),
|
159
|
-
className: PropTypes.string,
|
160
|
-
classNameInner: PropTypes.string,
|
161
|
-
classNameContainer: PropTypes.string
|
162
|
-
};
|
163
|
-
ProductCardWrapper.defaultProps = {
|
164
|
-
border: {
|
165
|
-
right: true,
|
166
|
-
left: true
|
167
|
-
}
|
168
|
-
};
|
169
|
-
var _default = ProductCardWrapper;
|
170
|
-
exports["default"] = _default;
|