@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 +0,0 @@
|
|
1
|
-
export declare const DESKTOP_MIDDLE_START = 1280;
|
@@ -1 +0,0 @@
|
|
1
|
-
export var DESKTOP_MIDDLE_START = 1280;
|
@@ -1,35 +0,0 @@
|
|
1
|
-
h1,
|
2
|
-
h2,
|
3
|
-
h3,
|
4
|
-
h4,
|
5
|
-
h5 {
|
6
|
-
margin: 0;
|
7
|
-
}
|
8
|
-
.mfui-beta-product-card-features {
|
9
|
-
font-family: inherit;
|
10
|
-
}
|
11
|
-
@media screen and (min-width: 768px) {
|
12
|
-
.mfui-beta-product-card-features {
|
13
|
-
-webkit-box-sizing: border-box;
|
14
|
-
box-sizing: border-box;
|
15
|
-
-webkit-box-flex: 1;
|
16
|
-
-ms-flex-positive: 1;
|
17
|
-
flex-grow: 1;
|
18
|
-
-ms-flex-negative: 1;
|
19
|
-
flex-shrink: 1;
|
20
|
-
padding-right: 16px;
|
21
|
-
}
|
22
|
-
}
|
23
|
-
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
24
|
-
.mfui-beta-product-card-features {
|
25
|
-
padding-right: 8px;
|
26
|
-
}
|
27
|
-
}
|
28
|
-
.mfui-beta-product-card-features__top {
|
29
|
-
margin-bottom: 28px;
|
30
|
-
}
|
31
|
-
@media screen and (max-width: 767px) {
|
32
|
-
.mfui-beta-product-card-features__bottom {
|
33
|
-
margin-bottom: 32px;
|
34
|
-
}
|
35
|
-
}
|
@@ -1,61 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import * as PropTypes from 'prop-types';
|
3
|
-
import './ProductCardFeatures.less';
|
4
|
-
interface IFirstParam {
|
5
|
-
title: string;
|
6
|
-
caption?: string;
|
7
|
-
children?: Array<Partial<IFirstParamChildren>>;
|
8
|
-
}
|
9
|
-
interface ISecondParam {
|
10
|
-
title?: string;
|
11
|
-
children: Array<Partial<ISecondParamChildren>>;
|
12
|
-
}
|
13
|
-
export interface IFirstParamChildren {
|
14
|
-
title: string;
|
15
|
-
svgIcon: JSX.Element;
|
16
|
-
}
|
17
|
-
export interface ISecondParamChildren {
|
18
|
-
title: string;
|
19
|
-
caption?: string;
|
20
|
-
svgIcon: JSX.Element;
|
21
|
-
}
|
22
|
-
export interface IProductCardFeaturesProps {
|
23
|
-
/** Showcase first param
|
24
|
-
* Param with args: title: string(requred), caption: string,
|
25
|
-
* children: [JSX.Element(requred), title: string(requred)]
|
26
|
-
*/
|
27
|
-
firstParam?: IFirstParam;
|
28
|
-
/** Showcase second param
|
29
|
-
* Param with args: title: string,
|
30
|
-
* children: [JSX.Element(requred), title: string(requred), caption: string](requred)
|
31
|
-
*/
|
32
|
-
secondParam?: ISecondParam;
|
33
|
-
className?: string;
|
34
|
-
classNameTop?: string;
|
35
|
-
classNameBottom?: string;
|
36
|
-
}
|
37
|
-
declare class ProductCardFeatures extends React.Component<IProductCardFeaturesProps, {}> {
|
38
|
-
static propTypes: {
|
39
|
-
firstParam: PropTypes.Requireable<PropTypes.InferProps<{
|
40
|
-
title: PropTypes.Validator<string>;
|
41
|
-
caption: PropTypes.Requireable<string>;
|
42
|
-
children: PropTypes.Requireable<(PropTypes.InferProps<{
|
43
|
-
title: PropTypes.Validator<string>;
|
44
|
-
svgIcon: PropTypes.Validator<PropTypes.ReactElementLike>;
|
45
|
-
}> | null | undefined)[]>;
|
46
|
-
}>>;
|
47
|
-
secondParam: PropTypes.Requireable<PropTypes.InferProps<{
|
48
|
-
title: PropTypes.Requireable<string>;
|
49
|
-
children: PropTypes.Validator<(PropTypes.InferProps<{
|
50
|
-
title: PropTypes.Validator<string>;
|
51
|
-
caption: PropTypes.Requireable<string>;
|
52
|
-
svgIcon: PropTypes.Validator<PropTypes.ReactElementLike>;
|
53
|
-
}> | null | undefined)[]>;
|
54
|
-
}>>;
|
55
|
-
className: PropTypes.Requireable<string>;
|
56
|
-
classNameTop: PropTypes.Requireable<string>;
|
57
|
-
classNameBottom: PropTypes.Requireable<string>;
|
58
|
-
};
|
59
|
-
render(): JSX.Element;
|
60
|
-
}
|
61
|
-
export default ProductCardFeatures;
|
@@ -1,141 +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
|
-
var _ProductCardFeaturesTop = _interopRequireDefault(require("./ProductCardFeaturesTop"));
|
43
|
-
|
44
|
-
var _ProductCardFeaturesBottom = _interopRequireDefault(require("./ProductCardFeaturesBottom"));
|
45
|
-
|
46
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
47
|
-
|
48
|
-
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; }
|
49
|
-
|
50
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
51
|
-
|
52
|
-
function _createSuper(Derived) {
|
53
|
-
return function () {
|
54
|
-
var Super = (0, _getPrototypeOf2["default"])(Derived),
|
55
|
-
result;
|
56
|
-
|
57
|
-
if (_isNativeReflectConstruct()) {
|
58
|
-
var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor;
|
59
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
60
|
-
} else {
|
61
|
-
result = Super.apply(this, arguments);
|
62
|
-
}
|
63
|
-
|
64
|
-
return (0, _possibleConstructorReturn2["default"])(this, result);
|
65
|
-
};
|
66
|
-
}
|
67
|
-
|
68
|
-
function _isNativeReflectConstruct() {
|
69
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
70
|
-
if (Reflect.construct.sham) return false;
|
71
|
-
if (typeof Proxy === "function") return true;
|
72
|
-
|
73
|
-
try {
|
74
|
-
Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
|
75
|
-
return true;
|
76
|
-
} catch (e) {
|
77
|
-
return false;
|
78
|
-
}
|
79
|
-
}
|
80
|
-
|
81
|
-
var cn = (0, _uiCore.cnCreate)('mfui-beta-product-card-features');
|
82
|
-
|
83
|
-
var ProductCardFeatures = /*#__PURE__*/function (_React$Component) {
|
84
|
-
(0, _inherits2["default"])(ProductCardFeatures, _React$Component);
|
85
|
-
|
86
|
-
var _super = _createSuper(ProductCardFeatures);
|
87
|
-
|
88
|
-
function ProductCardFeatures() {
|
89
|
-
(0, _classCallCheck2["default"])(this, ProductCardFeatures);
|
90
|
-
return _super.apply(this, arguments);
|
91
|
-
}
|
92
|
-
|
93
|
-
(0, _createClass2["default"])(ProductCardFeatures, [{
|
94
|
-
key: "render",
|
95
|
-
value: function render() {
|
96
|
-
var _this$props = this.props,
|
97
|
-
firstParam = _this$props.firstParam,
|
98
|
-
secondParam = _this$props.secondParam,
|
99
|
-
className = _this$props.className,
|
100
|
-
classNameTop = _this$props.classNameTop,
|
101
|
-
classNameBottom = _this$props.classNameBottom;
|
102
|
-
return /*#__PURE__*/React.createElement("div", {
|
103
|
-
className: cn('', {}, className)
|
104
|
-
}, firstParam && /*#__PURE__*/React.createElement(_ProductCardFeaturesTop["default"], {
|
105
|
-
className: cn('top', {}, classNameTop),
|
106
|
-
title: firstParam.title,
|
107
|
-
caption: firstParam.caption,
|
108
|
-
params: firstParam.children
|
109
|
-
}), secondParam && /*#__PURE__*/React.createElement(_ProductCardFeaturesBottom["default"], {
|
110
|
-
className: cn('bottom', {}, classNameBottom),
|
111
|
-
title: secondParam.title,
|
112
|
-
params: secondParam.children
|
113
|
-
}));
|
114
|
-
}
|
115
|
-
}]);
|
116
|
-
return ProductCardFeatures;
|
117
|
-
}(React.Component);
|
118
|
-
|
119
|
-
ProductCardFeatures.propTypes = {
|
120
|
-
firstParam: PropTypes.shape({
|
121
|
-
title: PropTypes.string.isRequired,
|
122
|
-
caption: PropTypes.string,
|
123
|
-
children: PropTypes.arrayOf(PropTypes.shape({
|
124
|
-
title: PropTypes.string.isRequired,
|
125
|
-
svgIcon: PropTypes.element.isRequired
|
126
|
-
}))
|
127
|
-
}),
|
128
|
-
secondParam: PropTypes.shape({
|
129
|
-
title: PropTypes.string,
|
130
|
-
children: PropTypes.arrayOf(PropTypes.shape({
|
131
|
-
title: PropTypes.string.isRequired,
|
132
|
-
caption: PropTypes.string,
|
133
|
-
svgIcon: PropTypes.element.isRequired
|
134
|
-
})).isRequired
|
135
|
-
}),
|
136
|
-
className: PropTypes.string,
|
137
|
-
classNameTop: PropTypes.string,
|
138
|
-
classNameBottom: PropTypes.string
|
139
|
-
};
|
140
|
-
var _default = ProductCardFeatures;
|
141
|
-
exports["default"] = _default;
|
@@ -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,140 +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.array.map");
|
6
|
-
|
7
|
-
require("core-js/modules/es.date.to-string");
|
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.array.map");
|
21
|
-
|
22
|
-
require("core-js/modules/es.date.to-string");
|
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 _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
31
|
-
|
32
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
33
|
-
|
34
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
35
|
-
|
36
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
37
|
-
|
38
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
39
|
-
|
40
|
-
var React = _interopRequireWildcard(require("react"));
|
41
|
-
|
42
|
-
var PropTypes = _interopRequireWildcard(require("prop-types"));
|
43
|
-
|
44
|
-
var _uiCore = require("@megafon/ui-core");
|
45
|
-
|
46
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
47
|
-
|
48
|
-
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; }
|
49
|
-
|
50
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
51
|
-
|
52
|
-
function _createSuper(Derived) {
|
53
|
-
return function () {
|
54
|
-
var Super = (0, _getPrototypeOf2["default"])(Derived),
|
55
|
-
result;
|
56
|
-
|
57
|
-
if (_isNativeReflectConstruct()) {
|
58
|
-
var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor;
|
59
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
60
|
-
} else {
|
61
|
-
result = Super.apply(this, arguments);
|
62
|
-
}
|
63
|
-
|
64
|
-
return (0, _possibleConstructorReturn2["default"])(this, result);
|
65
|
-
};
|
66
|
-
}
|
67
|
-
|
68
|
-
function _isNativeReflectConstruct() {
|
69
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
70
|
-
if (Reflect.construct.sham) return false;
|
71
|
-
if (typeof Proxy === "function") return true;
|
72
|
-
|
73
|
-
try {
|
74
|
-
Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
|
75
|
-
return true;
|
76
|
-
} catch (e) {
|
77
|
-
return false;
|
78
|
-
}
|
79
|
-
}
|
80
|
-
|
81
|
-
var cn = (0, _uiCore.cnCreate)('mfui-beta-product-card-features-bottom');
|
82
|
-
|
83
|
-
var ProductCardFeaturesBottom = /*#__PURE__*/function (_React$Component) {
|
84
|
-
(0, _inherits2["default"])(ProductCardFeaturesBottom, _React$Component);
|
85
|
-
|
86
|
-
var _super = _createSuper(ProductCardFeaturesBottom);
|
87
|
-
|
88
|
-
function ProductCardFeaturesBottom() {
|
89
|
-
(0, _classCallCheck2["default"])(this, ProductCardFeaturesBottom);
|
90
|
-
return _super.apply(this, arguments);
|
91
|
-
}
|
92
|
-
|
93
|
-
(0, _createClass2["default"])(ProductCardFeaturesBottom, [{
|
94
|
-
key: "render",
|
95
|
-
value: function render() {
|
96
|
-
var _this$props = this.props,
|
97
|
-
params = _this$props.params,
|
98
|
-
title = _this$props.title,
|
99
|
-
className = _this$props.className;
|
100
|
-
return /*#__PURE__*/React.createElement("div", {
|
101
|
-
className: cn('', {}, className)
|
102
|
-
}, title && /*#__PURE__*/React.createElement(_uiCore.Header, {
|
103
|
-
className: cn('title'),
|
104
|
-
as: "h3",
|
105
|
-
margin: false
|
106
|
-
}, title), /*#__PURE__*/React.createElement("ul", {
|
107
|
-
className: cn('list')
|
108
|
-
}, params.map(function (param) {
|
109
|
-
return /*#__PURE__*/React.createElement("li", {
|
110
|
-
className: cn('item', {
|
111
|
-
icon: !!param.svgIcon
|
112
|
-
}),
|
113
|
-
key: param.title
|
114
|
-
}, param.svgIcon && React.cloneElement(param.svgIcon, {
|
115
|
-
className: cn('item-icon')
|
116
|
-
}), /*#__PURE__*/React.createElement(_uiCore.Header, {
|
117
|
-
className: cn('item-title'),
|
118
|
-
as: "h5",
|
119
|
-
margin: false
|
120
|
-
}, param.title), /*#__PURE__*/React.createElement(_uiCore.Paragraph, {
|
121
|
-
className: cn('item-text'),
|
122
|
-
hasMargin: false,
|
123
|
-
size: "small"
|
124
|
-
}, param.caption));
|
125
|
-
})));
|
126
|
-
}
|
127
|
-
}]);
|
128
|
-
return ProductCardFeaturesBottom;
|
129
|
-
}(React.Component);
|
130
|
-
|
131
|
-
ProductCardFeaturesBottom.propTypes = {
|
132
|
-
className: PropTypes.string,
|
133
|
-
params: PropTypes.array.isRequired,
|
134
|
-
title: PropTypes.string
|
135
|
-
};
|
136
|
-
ProductCardFeaturesBottom.defaultProps = {
|
137
|
-
params: []
|
138
|
-
};
|
139
|
-
var _default = ProductCardFeaturesBottom;
|
140
|
-
exports["default"] = _default;
|
@@ -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,124 +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 cn = (0, _uiCore.cnCreate)('mfui-beta-product-card-features-top');
|
78
|
-
|
79
|
-
var ProductCardFeaturesTop = /*#__PURE__*/function (_React$Component) {
|
80
|
-
(0, _inherits2["default"])(ProductCardFeaturesTop, _React$Component);
|
81
|
-
|
82
|
-
var _super = _createSuper(ProductCardFeaturesTop);
|
83
|
-
|
84
|
-
function ProductCardFeaturesTop() {
|
85
|
-
(0, _classCallCheck2["default"])(this, ProductCardFeaturesTop);
|
86
|
-
return _super.apply(this, arguments);
|
87
|
-
}
|
88
|
-
|
89
|
-
(0, _createClass2["default"])(ProductCardFeaturesTop, [{
|
90
|
-
key: "render",
|
91
|
-
value: function render() {
|
92
|
-
var _this$props = this.props,
|
93
|
-
title = _this$props.title,
|
94
|
-
caption = _this$props.caption,
|
95
|
-
params = _this$props.params;
|
96
|
-
return /*#__PURE__*/React.createElement("div", {
|
97
|
-
className: cn('', {}, this.props.className)
|
98
|
-
}, /*#__PURE__*/React.createElement("div", {
|
99
|
-
className: cn('inner')
|
100
|
-
}, /*#__PURE__*/React.createElement(_uiCore.Header, {
|
101
|
-
className: cn('title'),
|
102
|
-
as: "h3",
|
103
|
-
margin: false
|
104
|
-
}, title), /*#__PURE__*/React.createElement("div", {
|
105
|
-
className: cn('text')
|
106
|
-
}, caption), !!params.length && /*#__PURE__*/React.createElement(_uiCore.DropdownSocialList, {
|
107
|
-
icons: params
|
108
|
-
})));
|
109
|
-
}
|
110
|
-
}]);
|
111
|
-
return ProductCardFeaturesTop;
|
112
|
-
}(React.Component);
|
113
|
-
|
114
|
-
ProductCardFeaturesTop.propTypes = {
|
115
|
-
className: PropTypes.string,
|
116
|
-
title: PropTypes.string,
|
117
|
-
caption: PropTypes.string,
|
118
|
-
params: PropTypes.array
|
119
|
-
};
|
120
|
-
ProductCardFeaturesTop.defaultProps = {
|
121
|
-
params: []
|
122
|
-
};
|
123
|
-
var _default = ProductCardFeaturesTop;
|
124
|
-
exports["default"] = _default;
|