@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,31 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import * as PropTypes from 'prop-types';
|
3
|
-
import './style/ProductTileOptions.less';
|
4
|
-
import { IOption } from './ProductTile';
|
5
|
-
export interface IProductTileOptionsProps {
|
6
|
-
/** Has head */
|
7
|
-
head?: string;
|
8
|
-
/** Options */
|
9
|
-
options: IOption[];
|
10
|
-
/** Handle bubble */
|
11
|
-
onClickBubble?: () => void;
|
12
|
-
}
|
13
|
-
declare class ProductTileOptions extends React.Component<IProductTileOptionsProps> {
|
14
|
-
static propTypes: {
|
15
|
-
head: PropTypes.Requireable<string>;
|
16
|
-
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
17
|
-
title: PropTypes.Requireable<string>;
|
18
|
-
caption: PropTypes.Requireable<string>;
|
19
|
-
value: PropTypes.Requireable<string>;
|
20
|
-
unit: PropTypes.Requireable<string>;
|
21
|
-
footnote: PropTypes.Requireable<string>;
|
22
|
-
svgIcon: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
23
|
-
}> | null | undefined)[]>;
|
24
|
-
onClickBubble: PropTypes.Requireable<(...args: any[]) => any>;
|
25
|
-
};
|
26
|
-
renderFootnote(title: string, footnote: string): JSX.Element;
|
27
|
-
renderContent(title: string, caption?: string, value?: string, unit?: string): JSX.Element;
|
28
|
-
renderIcon(svgIcon?: JSX.Element | null): JSX.Element;
|
29
|
-
render(): JSX.Element;
|
30
|
-
}
|
31
|
-
export default ProductTileOptions;
|
@@ -1,193 +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.concat");
|
6
|
-
|
7
|
-
require("core-js/modules/es.array.map");
|
8
|
-
|
9
|
-
require("core-js/modules/es.date.to-string");
|
10
|
-
|
11
|
-
require("core-js/modules/es.object.to-string");
|
12
|
-
|
13
|
-
require("core-js/modules/es.reflect.construct");
|
14
|
-
|
15
|
-
require("core-js/modules/es.regexp.to-string");
|
16
|
-
|
17
|
-
Object.defineProperty(exports, "__esModule", {
|
18
|
-
value: true
|
19
|
-
});
|
20
|
-
exports["default"] = void 0;
|
21
|
-
|
22
|
-
require("core-js/modules/es.array.concat");
|
23
|
-
|
24
|
-
require("core-js/modules/es.array.map");
|
25
|
-
|
26
|
-
require("core-js/modules/es.date.to-string");
|
27
|
-
|
28
|
-
require("core-js/modules/es.object.to-string");
|
29
|
-
|
30
|
-
require("core-js/modules/es.reflect.construct");
|
31
|
-
|
32
|
-
require("core-js/modules/es.regexp.to-string");
|
33
|
-
|
34
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
35
|
-
|
36
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
37
|
-
|
38
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
39
|
-
|
40
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
41
|
-
|
42
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
43
|
-
|
44
|
-
var React = _interopRequireWildcard(require("react"));
|
45
|
-
|
46
|
-
var PropTypes = _interopRequireWildcard(require("prop-types"));
|
47
|
-
|
48
|
-
var _uiCore = require("@megafon/ui-core");
|
49
|
-
|
50
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
51
|
-
|
52
|
-
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; }
|
53
|
-
|
54
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
55
|
-
|
56
|
-
function _createSuper(Derived) {
|
57
|
-
return function () {
|
58
|
-
var Super = (0, _getPrototypeOf2["default"])(Derived),
|
59
|
-
result;
|
60
|
-
|
61
|
-
if (_isNativeReflectConstruct()) {
|
62
|
-
var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor;
|
63
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
64
|
-
} else {
|
65
|
-
result = Super.apply(this, arguments);
|
66
|
-
}
|
67
|
-
|
68
|
-
return (0, _possibleConstructorReturn2["default"])(this, result);
|
69
|
-
};
|
70
|
-
}
|
71
|
-
|
72
|
-
function _isNativeReflectConstruct() {
|
73
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
74
|
-
if (Reflect.construct.sham) return false;
|
75
|
-
if (typeof Proxy === "function") return true;
|
76
|
-
|
77
|
-
try {
|
78
|
-
Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
|
79
|
-
return true;
|
80
|
-
} catch (e) {
|
81
|
-
return false;
|
82
|
-
}
|
83
|
-
}
|
84
|
-
|
85
|
-
var cn = (0, _uiCore.cnCreate)('mfui-beta-product-tile-options');
|
86
|
-
|
87
|
-
var ProductTileOptions = /*#__PURE__*/function (_React$Component) {
|
88
|
-
(0, _inherits2["default"])(ProductTileOptions, _React$Component);
|
89
|
-
|
90
|
-
var _super = _createSuper(ProductTileOptions);
|
91
|
-
|
92
|
-
function ProductTileOptions() {
|
93
|
-
(0, _classCallCheck2["default"])(this, ProductTileOptions);
|
94
|
-
return _super.apply(this, arguments);
|
95
|
-
}
|
96
|
-
|
97
|
-
(0, _createClass2["default"])(ProductTileOptions, [{
|
98
|
-
key: "renderFootnote",
|
99
|
-
value: function renderFootnote(title, footnote) {
|
100
|
-
var onClickBubble = this.props.onClickBubble;
|
101
|
-
return /*#__PURE__*/React.createElement("div", {
|
102
|
-
className: cn('content')
|
103
|
-
}, /*#__PURE__*/React.createElement("div", {
|
104
|
-
className: cn('title'),
|
105
|
-
dangerouslySetInnerHTML: {
|
106
|
-
__html: title
|
107
|
-
}
|
108
|
-
}), /*#__PURE__*/React.createElement(_uiCore.BubbleHint, {
|
109
|
-
className: cn('cashback-c'),
|
110
|
-
popupWidth: "small",
|
111
|
-
placement: "bottom",
|
112
|
-
click: true,
|
113
|
-
trigger: /*#__PURE__*/React.createElement("span", {
|
114
|
-
className: cn('bubble-trigger'),
|
115
|
-
onClick: onClickBubble
|
116
|
-
}, "\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435")
|
117
|
-
}, /*#__PURE__*/React.createElement("div", {
|
118
|
-
className: cn('hint-text'),
|
119
|
-
dangerouslySetInnerHTML: {
|
120
|
-
__html: footnote
|
121
|
-
}
|
122
|
-
})));
|
123
|
-
}
|
124
|
-
}, {
|
125
|
-
key: "renderContent",
|
126
|
-
value: function renderContent(title) {
|
127
|
-
var caption = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
128
|
-
var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
129
|
-
var unit = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';
|
130
|
-
return /*#__PURE__*/React.createElement("div", {
|
131
|
-
className: cn('content')
|
132
|
-
}, /*#__PURE__*/React.createElement("div", {
|
133
|
-
className: cn('title'),
|
134
|
-
dangerouslySetInnerHTML: {
|
135
|
-
__html: title
|
136
|
-
}
|
137
|
-
}), /*#__PURE__*/React.createElement("div", {
|
138
|
-
className: cn('description')
|
139
|
-
}, caption || "".concat(value, " ").concat(unit)));
|
140
|
-
}
|
141
|
-
}, {
|
142
|
-
key: "renderIcon",
|
143
|
-
value: function renderIcon() {
|
144
|
-
var svgIcon = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
145
|
-
return /*#__PURE__*/React.createElement("div", {
|
146
|
-
className: cn('icon')
|
147
|
-
}, svgIcon);
|
148
|
-
}
|
149
|
-
}, {
|
150
|
-
key: "render",
|
151
|
-
value: function render() {
|
152
|
-
var _this = this;
|
153
|
-
|
154
|
-
var _this$props = this.props,
|
155
|
-
options = _this$props.options,
|
156
|
-
head = _this$props.head;
|
157
|
-
return /*#__PURE__*/React.createElement("div", {
|
158
|
-
className: cn('')
|
159
|
-
}, !!head && /*#__PURE__*/React.createElement("div", {
|
160
|
-
className: cn('head')
|
161
|
-
}, head), /*#__PURE__*/React.createElement("div", {
|
162
|
-
className: cn('wrapper')
|
163
|
-
}, options.map(function (option, index) {
|
164
|
-
var title = option.title,
|
165
|
-
caption = option.caption,
|
166
|
-
value = option.value,
|
167
|
-
unit = option.unit,
|
168
|
-
svgIcon = option.svgIcon,
|
169
|
-
footnote = option.footnote;
|
170
|
-
return /*#__PURE__*/React.createElement("div", {
|
171
|
-
className: cn('option'),
|
172
|
-
key: title + index
|
173
|
-
}, _this.renderIcon(svgIcon), footnote ? _this.renderFootnote(title, footnote) : _this.renderContent(title, caption, value, unit));
|
174
|
-
})));
|
175
|
-
}
|
176
|
-
}]);
|
177
|
-
return ProductTileOptions;
|
178
|
-
}(React.Component);
|
179
|
-
|
180
|
-
ProductTileOptions.propTypes = {
|
181
|
-
head: PropTypes.string,
|
182
|
-
options: PropTypes.arrayOf(PropTypes.shape({
|
183
|
-
title: PropTypes.string,
|
184
|
-
caption: PropTypes.string,
|
185
|
-
value: PropTypes.string,
|
186
|
-
unit: PropTypes.string,
|
187
|
-
footnote: PropTypes.string,
|
188
|
-
svgIcon: PropTypes.element
|
189
|
-
})),
|
190
|
-
onClickBubble: PropTypes.func
|
191
|
-
};
|
192
|
-
var _default = ProductTileOptions;
|
193
|
-
exports["default"] = _default;
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import * as PropTypes from 'prop-types';
|
3
|
-
import './style/ProductTilePrice.less';
|
4
|
-
export interface IProductTilePriceProps {
|
5
|
-
/** title */
|
6
|
-
title?: string;
|
7
|
-
/** value */
|
8
|
-
value: string;
|
9
|
-
/** unitExtra */
|
10
|
-
unitExtra: string;
|
11
|
-
/** unitValue */
|
12
|
-
unitValue: string;
|
13
|
-
/** discount */
|
14
|
-
discount?: string;
|
15
|
-
}
|
16
|
-
declare class ProductTilePrice extends React.Component<IProductTilePriceProps> {
|
17
|
-
static propTypes: {
|
18
|
-
title: PropTypes.Requireable<string>;
|
19
|
-
value: PropTypes.Validator<string>;
|
20
|
-
unitExtra: PropTypes.Requireable<string>;
|
21
|
-
unitValue: PropTypes.Requireable<string>;
|
22
|
-
discount: PropTypes.Requireable<string>;
|
23
|
-
};
|
24
|
-
render(): JSX.Element;
|
25
|
-
}
|
26
|
-
export default ProductTilePrice;
|
@@ -1,136 +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.concat");
|
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.concat");
|
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
|
-
var _ProductTileValue = _interopRequireDefault(require("./ProductTileValue"));
|
47
|
-
|
48
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
49
|
-
|
50
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
51
|
-
|
52
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
53
|
-
|
54
|
-
function _createSuper(Derived) {
|
55
|
-
return function () {
|
56
|
-
var Super = (0, _getPrototypeOf2["default"])(Derived),
|
57
|
-
result;
|
58
|
-
|
59
|
-
if (_isNativeReflectConstruct()) {
|
60
|
-
var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor;
|
61
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
62
|
-
} else {
|
63
|
-
result = Super.apply(this, arguments);
|
64
|
-
}
|
65
|
-
|
66
|
-
return (0, _possibleConstructorReturn2["default"])(this, result);
|
67
|
-
};
|
68
|
-
}
|
69
|
-
|
70
|
-
function _isNativeReflectConstruct() {
|
71
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
72
|
-
if (Reflect.construct.sham) return false;
|
73
|
-
if (typeof Proxy === "function") return true;
|
74
|
-
|
75
|
-
try {
|
76
|
-
Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
|
77
|
-
return true;
|
78
|
-
} catch (e) {
|
79
|
-
return false;
|
80
|
-
}
|
81
|
-
}
|
82
|
-
|
83
|
-
var cn = (0, _uiCore.cnCreate)('mfui-beta-product-tile-price');
|
84
|
-
|
85
|
-
var ProductTilePrice = /*#__PURE__*/function (_React$Component) {
|
86
|
-
(0, _inherits2["default"])(ProductTilePrice, _React$Component);
|
87
|
-
|
88
|
-
var _super = _createSuper(ProductTilePrice);
|
89
|
-
|
90
|
-
function ProductTilePrice() {
|
91
|
-
(0, _classCallCheck2["default"])(this, ProductTilePrice);
|
92
|
-
return _super.apply(this, arguments);
|
93
|
-
}
|
94
|
-
|
95
|
-
(0, _createClass2["default"])(ProductTilePrice, [{
|
96
|
-
key: "render",
|
97
|
-
value: function render() {
|
98
|
-
var _this$props = this.props,
|
99
|
-
title = _this$props.title,
|
100
|
-
value = _this$props.value,
|
101
|
-
unitExtra = _this$props.unitExtra,
|
102
|
-
unitValue = _this$props.unitValue,
|
103
|
-
discount = _this$props.discount;
|
104
|
-
var valueElem = /*#__PURE__*/React.createElement(_ProductTileValue["default"], {
|
105
|
-
value: (discount || value) + " ".concat(unitValue)
|
106
|
-
});
|
107
|
-
var unitElem = /*#__PURE__*/React.createElement("span", {
|
108
|
-
className: cn('payment-period')
|
109
|
-
}, unitExtra);
|
110
|
-
return /*#__PURE__*/React.createElement("div", {
|
111
|
-
className: cn('', {
|
112
|
-
discount: !!discount
|
113
|
-
})
|
114
|
-
}, /*#__PURE__*/React.createElement("span", {
|
115
|
-
className: cn('old-price')
|
116
|
-
}, /*#__PURE__*/React.createElement("span", {
|
117
|
-
className: cn('old-price-value')
|
118
|
-
}, discount ? "".concat(value, " ").concat(unitValue) : ' ')), /*#__PURE__*/React.createElement("span", {
|
119
|
-
className: cn('actual-price')
|
120
|
-
}, valueElem, " ", unitElem), /*#__PURE__*/React.createElement("div", {
|
121
|
-
className: cn('discount-condition')
|
122
|
-
}, title));
|
123
|
-
}
|
124
|
-
}]);
|
125
|
-
return ProductTilePrice;
|
126
|
-
}(React.Component);
|
127
|
-
|
128
|
-
ProductTilePrice.propTypes = {
|
129
|
-
title: PropTypes.string,
|
130
|
-
value: PropTypes.string.isRequired,
|
131
|
-
unitExtra: PropTypes.string,
|
132
|
-
unitValue: PropTypes.string,
|
133
|
-
discount: PropTypes.string
|
134
|
-
};
|
135
|
-
var _default = ProductTilePrice;
|
136
|
-
exports["default"] = _default;
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import * as PropTypes from 'prop-types';
|
3
|
-
import './style/ProductTileStatic.less';
|
4
|
-
import { IPack } from './ProductTile';
|
5
|
-
export interface IProductTileStaticProps {
|
6
|
-
/** Packs */
|
7
|
-
packs: Array<Partial<IPack>>;
|
8
|
-
}
|
9
|
-
declare class ProductTileStatic extends React.Component<IProductTileStaticProps> {
|
10
|
-
static propTypes: {
|
11
|
-
packs: PropTypes.Requireable<(PropTypes.InferProps<{
|
12
|
-
value: PropTypes.Requireable<number>;
|
13
|
-
unit: PropTypes.Requireable<string>;
|
14
|
-
title: PropTypes.Requireable<string>;
|
15
|
-
isDelim: PropTypes.Requireable<boolean>;
|
16
|
-
}> | null | undefined)[]>;
|
17
|
-
};
|
18
|
-
render(): JSX.Element;
|
19
|
-
}
|
20
|
-
export default ProductTileStatic;
|
@@ -1,123 +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.concat");
|
6
|
-
|
7
|
-
require("core-js/modules/es.array.map");
|
8
|
-
|
9
|
-
require("core-js/modules/es.date.to-string");
|
10
|
-
|
11
|
-
require("core-js/modules/es.object.to-string");
|
12
|
-
|
13
|
-
require("core-js/modules/es.reflect.construct");
|
14
|
-
|
15
|
-
require("core-js/modules/es.regexp.to-string");
|
16
|
-
|
17
|
-
Object.defineProperty(exports, "__esModule", {
|
18
|
-
value: true
|
19
|
-
});
|
20
|
-
exports["default"] = void 0;
|
21
|
-
|
22
|
-
require("core-js/modules/es.array.concat");
|
23
|
-
|
24
|
-
require("core-js/modules/es.array.map");
|
25
|
-
|
26
|
-
require("core-js/modules/es.date.to-string");
|
27
|
-
|
28
|
-
require("core-js/modules/es.object.to-string");
|
29
|
-
|
30
|
-
require("core-js/modules/es.reflect.construct");
|
31
|
-
|
32
|
-
require("core-js/modules/es.regexp.to-string");
|
33
|
-
|
34
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
35
|
-
|
36
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
37
|
-
|
38
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
39
|
-
|
40
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
41
|
-
|
42
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
43
|
-
|
44
|
-
var React = _interopRequireWildcard(require("react"));
|
45
|
-
|
46
|
-
var PropTypes = _interopRequireWildcard(require("prop-types"));
|
47
|
-
|
48
|
-
var _uiCore = require("@megafon/ui-core");
|
49
|
-
|
50
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
51
|
-
|
52
|
-
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; }
|
53
|
-
|
54
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
55
|
-
|
56
|
-
function _createSuper(Derived) {
|
57
|
-
return function () {
|
58
|
-
var Super = (0, _getPrototypeOf2["default"])(Derived),
|
59
|
-
result;
|
60
|
-
|
61
|
-
if (_isNativeReflectConstruct()) {
|
62
|
-
var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor;
|
63
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
64
|
-
} else {
|
65
|
-
result = Super.apply(this, arguments);
|
66
|
-
}
|
67
|
-
|
68
|
-
return (0, _possibleConstructorReturn2["default"])(this, result);
|
69
|
-
};
|
70
|
-
}
|
71
|
-
|
72
|
-
function _isNativeReflectConstruct() {
|
73
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
74
|
-
if (Reflect.construct.sham) return false;
|
75
|
-
if (typeof Proxy === "function") return true;
|
76
|
-
|
77
|
-
try {
|
78
|
-
Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
|
79
|
-
return true;
|
80
|
-
} catch (e) {
|
81
|
-
return false;
|
82
|
-
}
|
83
|
-
}
|
84
|
-
|
85
|
-
var cn = (0, _uiCore.cnCreate)('mfui-beta-product-tile-static');
|
86
|
-
|
87
|
-
var ProductTileStatic = /*#__PURE__*/function (_React$Component) {
|
88
|
-
(0, _inherits2["default"])(ProductTileStatic, _React$Component);
|
89
|
-
|
90
|
-
var _super = _createSuper(ProductTileStatic);
|
91
|
-
|
92
|
-
function ProductTileStatic() {
|
93
|
-
(0, _classCallCheck2["default"])(this, ProductTileStatic);
|
94
|
-
return _super.apply(this, arguments);
|
95
|
-
}
|
96
|
-
|
97
|
-
(0, _createClass2["default"])(ProductTileStatic, [{
|
98
|
-
key: "render",
|
99
|
-
value: function render() {
|
100
|
-
var packs = this.props.packs;
|
101
|
-
return /*#__PURE__*/React.createElement("div", {
|
102
|
-
className: cn('')
|
103
|
-
}, packs.map(function (item) {
|
104
|
-
return /*#__PURE__*/React.createElement("div", {
|
105
|
-
className: cn('constructor-pack'),
|
106
|
-
key: "".concat(item.title || '').concat(item.value || '').concat(item.unit || '')
|
107
|
-
}, item.isDelim ? item.title : "".concat(item.value, " ").concat(item.unit));
|
108
|
-
}));
|
109
|
-
}
|
110
|
-
}]);
|
111
|
-
return ProductTileStatic;
|
112
|
-
}(React.Component);
|
113
|
-
|
114
|
-
ProductTileStatic.propTypes = {
|
115
|
-
packs: PropTypes.arrayOf(PropTypes.shape({
|
116
|
-
value: PropTypes.number,
|
117
|
-
unit: PropTypes.string,
|
118
|
-
title: PropTypes.string,
|
119
|
-
isDelim: PropTypes.bool
|
120
|
-
}))
|
121
|
-
};
|
122
|
-
var _default = ProductTileStatic;
|
123
|
-
exports["default"] = _default;
|
@@ -1,31 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import * as PropTypes from 'prop-types';
|
3
|
-
import './style/ProductTileValue.less';
|
4
|
-
export interface IProductTileValueProps {
|
5
|
-
/** Value */
|
6
|
-
value: string;
|
7
|
-
/** hAlign */
|
8
|
-
hAlign?: 'center';
|
9
|
-
}
|
10
|
-
interface IProductTileValueState {
|
11
|
-
prevValue: string;
|
12
|
-
currentValue: string;
|
13
|
-
isAnimating: boolean;
|
14
|
-
}
|
15
|
-
declare class ProductTileValue extends React.PureComponent<IProductTileValueProps, IProductTileValueState> {
|
16
|
-
static propTypes: {
|
17
|
-
value: PropTypes.Validator<string>;
|
18
|
-
hAlign: PropTypes.Requireable<string>;
|
19
|
-
};
|
20
|
-
constructor(props: IProductTileValueProps);
|
21
|
-
static getDerivedStateFromProps(props: IProductTileValueProps, state: IProductTileValueState): {
|
22
|
-
prevValue: string;
|
23
|
-
currentValue: string;
|
24
|
-
isAnimating: boolean;
|
25
|
-
};
|
26
|
-
componentDidUpdate(): void;
|
27
|
-
renderPrevPrice(): JSX.Element;
|
28
|
-
renderCurrentPrice(): JSX.Element;
|
29
|
-
render(): JSX.Element;
|
30
|
-
}
|
31
|
-
export default ProductTileValue;
|