@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,82 +0,0 @@
|
|
1
|
-
import "core-js/modules/es.date.to-string";
|
2
|
-
import "core-js/modules/es.object.to-string";
|
3
|
-
import "core-js/modules/es.reflect.construct";
|
4
|
-
import "core-js/modules/es.regexp.to-string";
|
5
|
-
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
6
|
-
import _createClass from "@babel/runtime/helpers/createClass";
|
7
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
8
|
-
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
9
|
-
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
10
|
-
|
11
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
12
|
-
|
13
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
14
|
-
|
15
|
-
import * as React from 'react';
|
16
|
-
import * as PropTypes from 'prop-types';
|
17
|
-
import { cnCreate } from '@megafon/ui-core';
|
18
|
-
import "./ProductCardFeatures.css";
|
19
|
-
import ProductCardFeaturesTop from "./ProductCardFeaturesTop";
|
20
|
-
import ProductCardFeaturesBottom from "./ProductCardFeaturesBottom";
|
21
|
-
var cn = cnCreate('mfui-beta-product-card-features');
|
22
|
-
|
23
|
-
var ProductCardFeatures = /*#__PURE__*/function (_React$Component) {
|
24
|
-
_inherits(ProductCardFeatures, _React$Component);
|
25
|
-
|
26
|
-
var _super = _createSuper(ProductCardFeatures);
|
27
|
-
|
28
|
-
function ProductCardFeatures() {
|
29
|
-
_classCallCheck(this, ProductCardFeatures);
|
30
|
-
|
31
|
-
return _super.apply(this, arguments);
|
32
|
-
}
|
33
|
-
|
34
|
-
_createClass(ProductCardFeatures, [{
|
35
|
-
key: "render",
|
36
|
-
value: function render() {
|
37
|
-
var _this$props = this.props,
|
38
|
-
firstParam = _this$props.firstParam,
|
39
|
-
secondParam = _this$props.secondParam,
|
40
|
-
className = _this$props.className,
|
41
|
-
classNameTop = _this$props.classNameTop,
|
42
|
-
classNameBottom = _this$props.classNameBottom;
|
43
|
-
return /*#__PURE__*/React.createElement("div", {
|
44
|
-
className: cn('', {}, className)
|
45
|
-
}, firstParam && /*#__PURE__*/React.createElement(ProductCardFeaturesTop, {
|
46
|
-
className: cn('top', {}, classNameTop),
|
47
|
-
title: firstParam.title,
|
48
|
-
caption: firstParam.caption,
|
49
|
-
params: firstParam.children
|
50
|
-
}), secondParam && /*#__PURE__*/React.createElement(ProductCardFeaturesBottom, {
|
51
|
-
className: cn('bottom', {}, classNameBottom),
|
52
|
-
title: secondParam.title,
|
53
|
-
params: secondParam.children
|
54
|
-
}));
|
55
|
-
}
|
56
|
-
}]);
|
57
|
-
|
58
|
-
return ProductCardFeatures;
|
59
|
-
}(React.Component);
|
60
|
-
|
61
|
-
ProductCardFeatures.propTypes = {
|
62
|
-
firstParam: PropTypes.shape({
|
63
|
-
title: PropTypes.string.isRequired,
|
64
|
-
caption: PropTypes.string,
|
65
|
-
children: PropTypes.arrayOf(PropTypes.shape({
|
66
|
-
title: PropTypes.string.isRequired,
|
67
|
-
svgIcon: PropTypes.element.isRequired
|
68
|
-
}))
|
69
|
-
}),
|
70
|
-
secondParam: PropTypes.shape({
|
71
|
-
title: PropTypes.string,
|
72
|
-
children: PropTypes.arrayOf(PropTypes.shape({
|
73
|
-
title: PropTypes.string.isRequired,
|
74
|
-
caption: PropTypes.string,
|
75
|
-
svgIcon: PropTypes.element.isRequired
|
76
|
-
})).isRequired
|
77
|
-
}),
|
78
|
-
className: PropTypes.string,
|
79
|
-
classNameTop: PropTypes.string,
|
80
|
-
classNameBottom: PropTypes.string
|
81
|
-
};
|
82
|
-
export default ProductCardFeatures;
|
@@ -1,41 +0,0 @@
|
|
1
|
-
h1,
|
2
|
-
h2,
|
3
|
-
h3,
|
4
|
-
h4,
|
5
|
-
h5 {
|
6
|
-
margin: 0;
|
7
|
-
}
|
8
|
-
.mfui-beta-product-card-features-bottom {
|
9
|
-
font-family: inherit;
|
10
|
-
}
|
11
|
-
.mfui-beta-product-card-features-bottom__list {
|
12
|
-
list-style: none;
|
13
|
-
margin: 0;
|
14
|
-
padding: 0;
|
15
|
-
}
|
16
|
-
.mfui-beta-product-card-features-bottom__title {
|
17
|
-
margin: 0 0 8px 0;
|
18
|
-
}
|
19
|
-
.mfui-beta-product-card-features-bottom__item {
|
20
|
-
position: relative;
|
21
|
-
padding-left: 0;
|
22
|
-
}
|
23
|
-
.mfui-beta-product-card-features-bottom__item + .mfui-beta-product-card-features-bottom__item {
|
24
|
-
margin-top: 9px;
|
25
|
-
}
|
26
|
-
.mfui-beta-product-card-features-bottom__item_icon {
|
27
|
-
padding-left: 41px;
|
28
|
-
margin-left: -4px;
|
29
|
-
}
|
30
|
-
.mfui-beta-product-card-features-bottom__item-icon {
|
31
|
-
position: absolute;
|
32
|
-
top: 0;
|
33
|
-
left: 0;
|
34
|
-
width: 32px;
|
35
|
-
height: 32px;
|
36
|
-
fill: #00B956;
|
37
|
-
pointer-events: none;
|
38
|
-
}
|
39
|
-
.mfui-beta-product-card-features-bottom__item-title {
|
40
|
-
margin: 0;
|
41
|
-
}
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import * as PropTypes from 'prop-types';
|
3
|
-
import './ProductCardFeaturesBottom.less';
|
4
|
-
import { ISecondParamChildren } from './ProductCardFeatures';
|
5
|
-
export interface IProductCardFeaturesBottomProps {
|
6
|
-
/** Custom class name */
|
7
|
-
className?: string;
|
8
|
-
/** Title */
|
9
|
-
title?: string;
|
10
|
-
/** Showcase params childrens list */
|
11
|
-
params: Array<Partial<ISecondParamChildren>>;
|
12
|
-
}
|
13
|
-
declare class ProductCardFeaturesBottom extends React.Component<IProductCardFeaturesBottomProps, {}> {
|
14
|
-
static propTypes: {
|
15
|
-
className: PropTypes.Requireable<string>;
|
16
|
-
params: PropTypes.Validator<any[]>;
|
17
|
-
title: PropTypes.Requireable<string>;
|
18
|
-
};
|
19
|
-
static defaultProps: IProductCardFeaturesBottomProps;
|
20
|
-
render(): JSX.Element;
|
21
|
-
}
|
22
|
-
export default ProductCardFeaturesBottom;
|
@@ -1,80 +0,0 @@
|
|
1
|
-
import "core-js/modules/es.array.map";
|
2
|
-
import "core-js/modules/es.date.to-string";
|
3
|
-
import "core-js/modules/es.object.to-string";
|
4
|
-
import "core-js/modules/es.reflect.construct";
|
5
|
-
import "core-js/modules/es.regexp.to-string";
|
6
|
-
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
7
|
-
import _createClass from "@babel/runtime/helpers/createClass";
|
8
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
9
|
-
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
10
|
-
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
11
|
-
|
12
|
-
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); }; }
|
13
|
-
|
14
|
-
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; } }
|
15
|
-
|
16
|
-
import * as React from 'react';
|
17
|
-
import * as PropTypes from 'prop-types';
|
18
|
-
import "./ProductCardFeaturesBottom.css";
|
19
|
-
import { Header, Paragraph, cnCreate } from '@megafon/ui-core';
|
20
|
-
var cn = cnCreate('mfui-beta-product-card-features-bottom');
|
21
|
-
|
22
|
-
var ProductCardFeaturesBottom = /*#__PURE__*/function (_React$Component) {
|
23
|
-
_inherits(ProductCardFeaturesBottom, _React$Component);
|
24
|
-
|
25
|
-
var _super = _createSuper(ProductCardFeaturesBottom);
|
26
|
-
|
27
|
-
function ProductCardFeaturesBottom() {
|
28
|
-
_classCallCheck(this, ProductCardFeaturesBottom);
|
29
|
-
|
30
|
-
return _super.apply(this, arguments);
|
31
|
-
}
|
32
|
-
|
33
|
-
_createClass(ProductCardFeaturesBottom, [{
|
34
|
-
key: "render",
|
35
|
-
value: function render() {
|
36
|
-
var _this$props = this.props,
|
37
|
-
params = _this$props.params,
|
38
|
-
title = _this$props.title,
|
39
|
-
className = _this$props.className;
|
40
|
-
return /*#__PURE__*/React.createElement("div", {
|
41
|
-
className: cn('', {}, className)
|
42
|
-
}, title && /*#__PURE__*/React.createElement(Header, {
|
43
|
-
className: cn('title'),
|
44
|
-
as: "h3",
|
45
|
-
margin: false
|
46
|
-
}, title), /*#__PURE__*/React.createElement("ul", {
|
47
|
-
className: cn('list')
|
48
|
-
}, params.map(function (param) {
|
49
|
-
return /*#__PURE__*/React.createElement("li", {
|
50
|
-
className: cn('item', {
|
51
|
-
icon: !!param.svgIcon
|
52
|
-
}),
|
53
|
-
key: param.title
|
54
|
-
}, param.svgIcon && React.cloneElement(param.svgIcon, {
|
55
|
-
className: cn('item-icon')
|
56
|
-
}), /*#__PURE__*/React.createElement(Header, {
|
57
|
-
className: cn('item-title'),
|
58
|
-
as: "h5",
|
59
|
-
margin: false
|
60
|
-
}, param.title), /*#__PURE__*/React.createElement(Paragraph, {
|
61
|
-
className: cn('item-text'),
|
62
|
-
hasMargin: false,
|
63
|
-
size: "small"
|
64
|
-
}, param.caption));
|
65
|
-
})));
|
66
|
-
}
|
67
|
-
}]);
|
68
|
-
|
69
|
-
return ProductCardFeaturesBottom;
|
70
|
-
}(React.Component);
|
71
|
-
|
72
|
-
ProductCardFeaturesBottom.propTypes = {
|
73
|
-
className: PropTypes.string,
|
74
|
-
params: PropTypes.array.isRequired,
|
75
|
-
title: PropTypes.string
|
76
|
-
};
|
77
|
-
ProductCardFeaturesBottom.defaultProps = {
|
78
|
-
params: []
|
79
|
-
};
|
80
|
-
export default ProductCardFeaturesBottom;
|
@@ -1,16 +0,0 @@
|
|
1
|
-
h1,
|
2
|
-
h2,
|
3
|
-
h3,
|
4
|
-
h4,
|
5
|
-
h5 {
|
6
|
-
margin: 0;
|
7
|
-
}
|
8
|
-
.mfui-beta-product-card-features-top {
|
9
|
-
font-family: inherit;
|
10
|
-
}
|
11
|
-
.mfui-beta-product-card-features-top__title {
|
12
|
-
margin: 0;
|
13
|
-
}
|
14
|
-
.mfui-beta-product-card-features-top__text {
|
15
|
-
margin-bottom: 4px;
|
16
|
-
}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import * as PropTypes from 'prop-types';
|
3
|
-
import './ProductCardFeaturesTop.less';
|
4
|
-
import { IFirstParamChildren } from './ProductCardFeatures';
|
5
|
-
export interface IProductCardFeaturesTopProps {
|
6
|
-
/** Custom class name */
|
7
|
-
className?: string;
|
8
|
-
/** Title */
|
9
|
-
title?: string;
|
10
|
-
/** Caption */
|
11
|
-
caption?: string;
|
12
|
-
/** Showcase params childrens list */
|
13
|
-
params: Array<Partial<IFirstParamChildren>>;
|
14
|
-
}
|
15
|
-
declare class ProductCardFeaturesTop extends React.Component<IProductCardFeaturesTopProps, {}> {
|
16
|
-
static propTypes: {
|
17
|
-
className: PropTypes.Requireable<string>;
|
18
|
-
title: PropTypes.Requireable<string>;
|
19
|
-
caption: PropTypes.Requireable<string>;
|
20
|
-
params: PropTypes.Requireable<any[]>;
|
21
|
-
};
|
22
|
-
static defaultProps: IProductCardFeaturesTopProps;
|
23
|
-
render(): JSX.Element;
|
24
|
-
}
|
25
|
-
export default ProductCardFeaturesTop;
|
@@ -1,67 +0,0 @@
|
|
1
|
-
import "core-js/modules/es.date.to-string";
|
2
|
-
import "core-js/modules/es.object.to-string";
|
3
|
-
import "core-js/modules/es.reflect.construct";
|
4
|
-
import "core-js/modules/es.regexp.to-string";
|
5
|
-
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
6
|
-
import _createClass from "@babel/runtime/helpers/createClass";
|
7
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
8
|
-
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
9
|
-
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
10
|
-
|
11
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
12
|
-
|
13
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
14
|
-
|
15
|
-
import * as React from 'react';
|
16
|
-
import * as PropTypes from 'prop-types';
|
17
|
-
import "./ProductCardFeaturesTop.css";
|
18
|
-
import { Header, cnCreate, DropdownSocialList } from '@megafon/ui-core';
|
19
|
-
var cn = cnCreate('mfui-beta-product-card-features-top');
|
20
|
-
|
21
|
-
var ProductCardFeaturesTop = /*#__PURE__*/function (_React$Component) {
|
22
|
-
_inherits(ProductCardFeaturesTop, _React$Component);
|
23
|
-
|
24
|
-
var _super = _createSuper(ProductCardFeaturesTop);
|
25
|
-
|
26
|
-
function ProductCardFeaturesTop() {
|
27
|
-
_classCallCheck(this, ProductCardFeaturesTop);
|
28
|
-
|
29
|
-
return _super.apply(this, arguments);
|
30
|
-
}
|
31
|
-
|
32
|
-
_createClass(ProductCardFeaturesTop, [{
|
33
|
-
key: "render",
|
34
|
-
value: function render() {
|
35
|
-
var _this$props = this.props,
|
36
|
-
title = _this$props.title,
|
37
|
-
caption = _this$props.caption,
|
38
|
-
params = _this$props.params;
|
39
|
-
return /*#__PURE__*/React.createElement("div", {
|
40
|
-
className: cn('', {}, this.props.className)
|
41
|
-
}, /*#__PURE__*/React.createElement("div", {
|
42
|
-
className: cn('inner')
|
43
|
-
}, /*#__PURE__*/React.createElement(Header, {
|
44
|
-
className: cn('title'),
|
45
|
-
as: "h3",
|
46
|
-
margin: false
|
47
|
-
}, title), /*#__PURE__*/React.createElement("div", {
|
48
|
-
className: cn('text')
|
49
|
-
}, caption), !!params.length && /*#__PURE__*/React.createElement(DropdownSocialList, {
|
50
|
-
icons: params
|
51
|
-
})));
|
52
|
-
}
|
53
|
-
}]);
|
54
|
-
|
55
|
-
return ProductCardFeaturesTop;
|
56
|
-
}(React.Component);
|
57
|
-
|
58
|
-
ProductCardFeaturesTop.propTypes = {
|
59
|
-
className: PropTypes.string,
|
60
|
-
title: PropTypes.string,
|
61
|
-
caption: PropTypes.string,
|
62
|
-
params: PropTypes.array
|
63
|
-
};
|
64
|
-
ProductCardFeaturesTop.defaultProps = {
|
65
|
-
params: []
|
66
|
-
};
|
67
|
-
export default ProductCardFeaturesTop;
|
@@ -1,236 +0,0 @@
|
|
1
|
-
h1,
|
2
|
-
h2,
|
3
|
-
h3,
|
4
|
-
h4,
|
5
|
-
h5 {
|
6
|
-
margin: 0;
|
7
|
-
}
|
8
|
-
.mfui-beta-product-card-info {
|
9
|
-
font-family: inherit;
|
10
|
-
}
|
11
|
-
@media screen and (min-width: 768px) {
|
12
|
-
.mfui-beta-product-card-info {
|
13
|
-
-webkit-box-sizing: border-box;
|
14
|
-
box-sizing: border-box;
|
15
|
-
-ms-flex-negative: 0;
|
16
|
-
flex-shrink: 0;
|
17
|
-
width: 32.3%;
|
18
|
-
padding-right: 16px;
|
19
|
-
}
|
20
|
-
}
|
21
|
-
@media screen and (min-width: 1024px) {
|
22
|
-
.mfui-beta-product-card-info {
|
23
|
-
display: -webkit-box;
|
24
|
-
display: -ms-flexbox;
|
25
|
-
display: flex;
|
26
|
-
-webkit-box-align: baseline;
|
27
|
-
-ms-flex-align: baseline;
|
28
|
-
align-items: baseline;
|
29
|
-
width: 41%;
|
30
|
-
}
|
31
|
-
}
|
32
|
-
.mfui-beta-product-card-info__description {
|
33
|
-
-ms-flex-negative: 0;
|
34
|
-
flex-shrink: 0;
|
35
|
-
-webkit-box-sizing: border-box;
|
36
|
-
box-sizing: border-box;
|
37
|
-
margin-bottom: 32px;
|
38
|
-
}
|
39
|
-
@media screen and (max-width: 479px) {
|
40
|
-
.mfui-beta-product-card-info__description {
|
41
|
-
text-align: center;
|
42
|
-
}
|
43
|
-
}
|
44
|
-
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
45
|
-
.mfui-beta-product-card-info__description {
|
46
|
-
margin-bottom: 24px;
|
47
|
-
}
|
48
|
-
}
|
49
|
-
@media screen and (min-width: 1024px) {
|
50
|
-
.mfui-beta-product-card-info__description {
|
51
|
-
width: 59%;
|
52
|
-
padding-right: 16px;
|
53
|
-
margin-bottom: 0;
|
54
|
-
}
|
55
|
-
}
|
56
|
-
.mfui-beta-product-card-info__description-title {
|
57
|
-
margin: 0 0 12px 0;
|
58
|
-
max-width: 180px;
|
59
|
-
}
|
60
|
-
@media screen and (max-width: 479px) {
|
61
|
-
.mfui-beta-product-card-info__description-title {
|
62
|
-
margin-left: auto;
|
63
|
-
margin-right: auto;
|
64
|
-
}
|
65
|
-
}
|
66
|
-
@media screen and (min-width: 768px) {
|
67
|
-
.mfui-beta-product-card-info__description-title {
|
68
|
-
max-width: 200px;
|
69
|
-
}
|
70
|
-
}
|
71
|
-
@media screen and (min-width: 1280px) {
|
72
|
-
.mfui-beta-product-card-info__description-title {
|
73
|
-
max-width: 250px;
|
74
|
-
}
|
75
|
-
}
|
76
|
-
.mfui-beta-product-card-info__description-text {
|
77
|
-
font-size: 12px;
|
78
|
-
line-height: 16px;
|
79
|
-
-ms-flex-negative: 1;
|
80
|
-
flex-shrink: 1;
|
81
|
-
}
|
82
|
-
@media screen and (max-width: 767px) {
|
83
|
-
.mfui-beta-product-card-info__description-text {
|
84
|
-
font-size: 15px;
|
85
|
-
line-height: 24px;
|
86
|
-
font-weight: 400;
|
87
|
-
}
|
88
|
-
}
|
89
|
-
@media screen and (min-width: 1280px) {
|
90
|
-
.mfui-beta-product-card-info__description-text {
|
91
|
-
font-size: 15px;
|
92
|
-
line-height: 24px;
|
93
|
-
font-weight: 400;
|
94
|
-
}
|
95
|
-
}
|
96
|
-
.mfui-beta-product-card-info__description-icon {
|
97
|
-
display: block;
|
98
|
-
width: 40px;
|
99
|
-
height: 40px;
|
100
|
-
margin-right: 8px;
|
101
|
-
margin-left: -4px;
|
102
|
-
fill: #00B956;
|
103
|
-
-ms-flex-negative: 0;
|
104
|
-
flex-shrink: 0;
|
105
|
-
pointer-events: none;
|
106
|
-
}
|
107
|
-
@media screen and (max-width: 767px) {
|
108
|
-
.mfui-beta-product-card-info__description-icon {
|
109
|
-
margin-top: 2px;
|
110
|
-
}
|
111
|
-
}
|
112
|
-
@media screen and (min-width: 1280px) {
|
113
|
-
.mfui-beta-product-card-info__description-icon {
|
114
|
-
margin-top: 2px;
|
115
|
-
}
|
116
|
-
}
|
117
|
-
.mfui-beta-product-card-info__badge {
|
118
|
-
font-size: 12px;
|
119
|
-
line-height: 16px;
|
120
|
-
display: inline-block;
|
121
|
-
color: #FFFFFF;
|
122
|
-
margin-right: 10px;
|
123
|
-
margin-bottom: 12px;
|
124
|
-
}
|
125
|
-
.mfui-beta-product-card-info__badge:last-child {
|
126
|
-
margin-right: 0;
|
127
|
-
}
|
128
|
-
.mfui-beta-product-card-info__badge_type_action {
|
129
|
-
background-color: #34AAF2;
|
130
|
-
}
|
131
|
-
.mfui-beta-product-card-info__badge_type_recommendation {
|
132
|
-
background-color: #00B956;
|
133
|
-
}
|
134
|
-
.mfui-beta-product-card-info__badge_type_orange {
|
135
|
-
background-color: #FFA717;
|
136
|
-
}
|
137
|
-
.mfui-beta-product-card-info__badge_type_purple {
|
138
|
-
background-color: #731982;
|
139
|
-
}
|
140
|
-
.mfui-beta-product-card-info__badge_filter_primary {
|
141
|
-
display: none;
|
142
|
-
}
|
143
|
-
.mfui-beta-product-card-info__badge-title {
|
144
|
-
padding: 4px 8px;
|
145
|
-
}
|
146
|
-
.mfui-beta-product-card-info__description-wrap {
|
147
|
-
display: -webkit-box;
|
148
|
-
display: -ms-flexbox;
|
149
|
-
display: flex;
|
150
|
-
margin-bottom: 12px;
|
151
|
-
max-width: 270px;
|
152
|
-
}
|
153
|
-
@media screen and (max-width: 479px) {
|
154
|
-
.mfui-beta-product-card-info__description-wrap {
|
155
|
-
text-align: left;
|
156
|
-
margin-left: auto;
|
157
|
-
margin-right: auto;
|
158
|
-
}
|
159
|
-
}
|
160
|
-
@media screen and (min-width: 768px) {
|
161
|
-
.mfui-beta-product-card-info__description-wrap {
|
162
|
-
max-width: 180px;
|
163
|
-
}
|
164
|
-
}
|
165
|
-
@media screen and (min-width: 1024px) {
|
166
|
-
.mfui-beta-product-card-info__description-wrap {
|
167
|
-
max-width: 210px;
|
168
|
-
}
|
169
|
-
}
|
170
|
-
.mfui-beta-product-card-info__params {
|
171
|
-
-webkit-box-sizing: border-box;
|
172
|
-
box-sizing: border-box;
|
173
|
-
}
|
174
|
-
@media screen and (max-width: 767px) {
|
175
|
-
.mfui-beta-product-card-info__params {
|
176
|
-
margin-bottom: 28px;
|
177
|
-
}
|
178
|
-
}
|
179
|
-
@media screen and (min-width: 1024px) {
|
180
|
-
.mfui-beta-product-card-info__params {
|
181
|
-
width: 43%;
|
182
|
-
}
|
183
|
-
}
|
184
|
-
.mfui-beta-product-card-info__params [data-amount='∞'] {
|
185
|
-
position: relative;
|
186
|
-
bottom: 2px;
|
187
|
-
color: #FFFFFF;
|
188
|
-
font-size: 1px;
|
189
|
-
display: inline-block;
|
190
|
-
vertical-align: middle;
|
191
|
-
line-height: 18px;
|
192
|
-
}
|
193
|
-
.mfui-beta-product-card-info__params [data-amount='∞']:before {
|
194
|
-
content: '';
|
195
|
-
display: inline-block;
|
196
|
-
vertical-align: bottom;
|
197
|
-
width: 38px;
|
198
|
-
height: 18px;
|
199
|
-
background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2040%2040%22%3E%3Cpath%20d%3D%22M10%2028c4.87%200%208.44-4%2010-6.19C21.56%2024%2025.13%2028%2030%2028a8%208%200%20000-16c-4.87%200-8.44%204-10%206.19C18.44%2016%2014.87%2012%2010%2012a8%208%200%20000%2016zm20-14a6%206%200%20010%2012c-4.46%200-7.81-4.48-8.82-6%201.01-1.51%204.35-6%208.82-6zm-20%200c4.46%200%207.81%204.48%208.82%206-1%201.52-4.35%206-8.82%206a6%206%200%20010-12z%22%2F%3E%3C%2Fsvg%3E") 0 50% no-repeat;
|
200
|
-
background-size: 100% auto;
|
201
|
-
}
|
202
|
-
.mfui-beta-product-card-info__params-list {
|
203
|
-
font-size: 18px;
|
204
|
-
line-height: 24px;
|
205
|
-
font-weight: 500;
|
206
|
-
letter-spacing: 0.5px;
|
207
|
-
list-style: none;
|
208
|
-
margin: 0;
|
209
|
-
padding: 0;
|
210
|
-
}
|
211
|
-
@media screen and (max-width: 767px) {
|
212
|
-
.mfui-beta-product-card-info__params-list {
|
213
|
-
display: -webkit-box;
|
214
|
-
display: -ms-flexbox;
|
215
|
-
display: flex;
|
216
|
-
-ms-flex-wrap: wrap;
|
217
|
-
flex-wrap: wrap;
|
218
|
-
}
|
219
|
-
}
|
220
|
-
@media screen and (min-width: 1280px) {
|
221
|
-
.mfui-beta-product-card-info__params-list {
|
222
|
-
font-size: 20px;
|
223
|
-
line-height: 28px;
|
224
|
-
}
|
225
|
-
}
|
226
|
-
@media screen and (max-width: 767px) {
|
227
|
-
.mfui-beta-product-card-info__params-item {
|
228
|
-
margin-right: 14px;
|
229
|
-
margin-bottom: 4px;
|
230
|
-
}
|
231
|
-
}
|
232
|
-
@media screen and (min-width: 768px) {
|
233
|
-
.mfui-beta-product-card-info__params-item + .mfui-beta-product-card-info__params-item {
|
234
|
-
margin-top: 12px;
|
235
|
-
}
|
236
|
-
}
|
@@ -1,75 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import * as PropTypes from 'prop-types';
|
3
|
-
import './ProductCardInfo.less';
|
4
|
-
interface IBadge {
|
5
|
-
title: string;
|
6
|
-
code: string;
|
7
|
-
hint?: string;
|
8
|
-
}
|
9
|
-
interface IAdditionalParams {
|
10
|
-
title: string;
|
11
|
-
value: string | number;
|
12
|
-
unit: string | JSX.Element;
|
13
|
-
}
|
14
|
-
export interface IProductCardInfoProps {
|
15
|
-
/** Title */
|
16
|
-
title: string;
|
17
|
-
/** Link */
|
18
|
-
link: string;
|
19
|
-
/** Link target */
|
20
|
-
linkTarget?: '_self' | '_blank' | '_parent' | '_top';
|
21
|
-
/** Link text */
|
22
|
-
linkText?: string;
|
23
|
-
/** Description
|
24
|
-
* string or JSX.element with custom styles
|
25
|
-
*/
|
26
|
-
description?: string | JSX.Element;
|
27
|
-
/** Description Svg */
|
28
|
-
descriptionIcon?: JSX.Element;
|
29
|
-
/** Badges
|
30
|
-
* list of objects with args: title(required), code(required), hint
|
31
|
-
*/
|
32
|
-
badges?: IBadge[];
|
33
|
-
/** Additional params
|
34
|
-
* list of params with args: title(required), value(required), unit(required)
|
35
|
-
*/
|
36
|
-
additionalParams?: IAdditionalParams[];
|
37
|
-
className?: string;
|
38
|
-
classNameDescription?: string;
|
39
|
-
classNameDescriptionText?: string;
|
40
|
-
classNameParams?: string;
|
41
|
-
classNameParamsItem?: string;
|
42
|
-
onClickMoreInfo?: (e: React.SyntheticEvent<EventTarget>) => void;
|
43
|
-
}
|
44
|
-
declare class ProductCardInfo extends React.Component<IProductCardInfoProps, {}> {
|
45
|
-
static propTypes: {
|
46
|
-
title: PropTypes.Validator<string>;
|
47
|
-
link: PropTypes.Validator<string>;
|
48
|
-
linkTarget: PropTypes.Requireable<string>;
|
49
|
-
linkText: PropTypes.Requireable<string>;
|
50
|
-
description: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
|
51
|
-
descriptionIcon: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
52
|
-
badges: PropTypes.Requireable<(PropTypes.InferProps<{
|
53
|
-
title: PropTypes.Validator<string>;
|
54
|
-
code: PropTypes.Validator<string>;
|
55
|
-
hint: PropTypes.Requireable<string>;
|
56
|
-
}> | null | undefined)[]>;
|
57
|
-
additionalParams: PropTypes.Requireable<(PropTypes.InferProps<{
|
58
|
-
title: PropTypes.Validator<string>;
|
59
|
-
value: PropTypes.Validator<string | number>;
|
60
|
-
unit: PropTypes.Validator<string | PropTypes.ReactElementLike>;
|
61
|
-
}> | null | undefined)[]>;
|
62
|
-
className: PropTypes.Requireable<string>;
|
63
|
-
classNameDescription: PropTypes.Requireable<string>;
|
64
|
-
classNameDescriptionText: PropTypes.Requireable<string>;
|
65
|
-
classNameParams: PropTypes.Requireable<string>;
|
66
|
-
classNameParamsItem: PropTypes.Requireable<string>;
|
67
|
-
onClickMoreInfo: PropTypes.Requireable<(...args: any[]) => any>;
|
68
|
-
};
|
69
|
-
static defaultProps: Partial<IProductCardInfoProps>;
|
70
|
-
renderBadges(): JSX.Element;
|
71
|
-
renderBubbleHint(title: JSX.Element, hint: string): JSX.Element;
|
72
|
-
handleClickMoreInfo: (e: React.SyntheticEvent<EventTarget, Event>) => void;
|
73
|
-
render(): JSX.Element;
|
74
|
-
}
|
75
|
-
export default ProductCardInfo;
|