@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
@@ -0,0 +1,216 @@
|
|
1
|
+
h1,
|
2
|
+
h2,
|
3
|
+
h3,
|
4
|
+
h4,
|
5
|
+
h5 {
|
6
|
+
margin: 0;
|
7
|
+
}
|
8
|
+
.mfui-beta-video-banner {
|
9
|
+
position: relative;
|
10
|
+
overflow: hidden;
|
11
|
+
}
|
12
|
+
@media screen and (min-width: 1280px) {
|
13
|
+
.mfui-beta-video-banner {
|
14
|
+
margin-right: -80px;
|
15
|
+
margin-left: -80px;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
@media screen and (min-width: 1024px) and (max-width: 1279px) {
|
19
|
+
.mfui-beta-video-banner {
|
20
|
+
margin-right: -64px;
|
21
|
+
margin-left: -64px;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
25
|
+
.mfui-beta-video-banner {
|
26
|
+
margin-right: -48px;
|
27
|
+
margin-left: -48px;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
@media screen and (max-width: 767px) {
|
31
|
+
.mfui-beta-video-banner {
|
32
|
+
margin-right: -16px;
|
33
|
+
margin-left: -16px;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
.mfui-beta-video-banner__wrapper {
|
37
|
+
display: -webkit-box;
|
38
|
+
display: -ms-flexbox;
|
39
|
+
display: flex;
|
40
|
+
-webkit-box-align: center;
|
41
|
+
-ms-flex-align: center;
|
42
|
+
align-items: center;
|
43
|
+
min-height: 400px;
|
44
|
+
}
|
45
|
+
@media screen and (min-width: 1440px) {
|
46
|
+
.mfui-beta-video-banner__wrapper {
|
47
|
+
height: 562px;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
@media screen and (min-width: 1280px) and (max-width: 1439px) {
|
51
|
+
.mfui-beta-video-banner__wrapper {
|
52
|
+
height: 500px;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
@media screen and (min-width: 1024px) and (max-width: 1279px) {
|
56
|
+
.mfui-beta-video-banner__wrapper {
|
57
|
+
max-height: 440px;
|
58
|
+
padding-top: 52px;
|
59
|
+
padding-bottom: 52px;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
63
|
+
.mfui-beta-video-banner__wrapper {
|
64
|
+
max-height: 440px;
|
65
|
+
padding-top: 64px;
|
66
|
+
padding-bottom: 64px;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
@media screen and (max-width: 767px) {
|
70
|
+
.mfui-beta-video-banner__wrapper {
|
71
|
+
max-height: 488px;
|
72
|
+
padding-top: 42px;
|
73
|
+
padding-bottom: 42px;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
.mfui-beta-video-banner__background-image,
|
77
|
+
.mfui-beta-video-banner__video {
|
78
|
+
position: absolute;
|
79
|
+
top: 50%;
|
80
|
+
left: 50%;
|
81
|
+
-webkit-transform: translate(-50%, -50%);
|
82
|
+
transform: translate(-50%, -50%);
|
83
|
+
}
|
84
|
+
.mfui-beta-video-banner__background-image {
|
85
|
+
width: 100%;
|
86
|
+
height: 100%;
|
87
|
+
background-repeat: no-repeat;
|
88
|
+
background-position: center;
|
89
|
+
background-size: cover;
|
90
|
+
}
|
91
|
+
.mfui-beta-video-banner__content {
|
92
|
+
position: relative;
|
93
|
+
-webkit-box-sizing: border-box;
|
94
|
+
box-sizing: border-box;
|
95
|
+
}
|
96
|
+
@media screen and (min-width: 1440px) {
|
97
|
+
.mfui-beta-video-banner__content {
|
98
|
+
max-height: calc(562px - 2 * 70px);
|
99
|
+
}
|
100
|
+
}
|
101
|
+
@media screen and (min-width: 1280px) and (max-width: 1439px) {
|
102
|
+
.mfui-beta-video-banner__content {
|
103
|
+
max-height: calc(500px - 2 * 70px);
|
104
|
+
}
|
105
|
+
}
|
106
|
+
@media screen and (min-width: 1024px) and (max-width: 1279px) {
|
107
|
+
.mfui-beta-video-banner__content {
|
108
|
+
max-height: calc(440px - 2 * 52px);
|
109
|
+
}
|
110
|
+
}
|
111
|
+
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
112
|
+
.mfui-beta-video-banner__content {
|
113
|
+
max-height: calc(440px - 2 * 64px);
|
114
|
+
}
|
115
|
+
}
|
116
|
+
@media screen and (max-width: 767px) {
|
117
|
+
.mfui-beta-video-banner__content {
|
118
|
+
max-height: calc(488px - 2 * 42px);
|
119
|
+
}
|
120
|
+
}
|
121
|
+
.mfui-beta-video-banner__content_text-color_black {
|
122
|
+
color: #333333;
|
123
|
+
}
|
124
|
+
.mfui-beta-video-banner__content_text-color_white {
|
125
|
+
color: #FFFFFF;
|
126
|
+
}
|
127
|
+
@media screen and (max-width: 767px) {
|
128
|
+
.mfui-beta-video-banner__content_text-color-mobile_black {
|
129
|
+
color: #333333;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
@media screen and (max-width: 767px) {
|
133
|
+
.mfui-beta-video-banner__content_text-color-mobile_white {
|
134
|
+
color: #FFFFFF;
|
135
|
+
}
|
136
|
+
}
|
137
|
+
.mfui-beta-video-banner__description {
|
138
|
+
margin-bottom: 32px;
|
139
|
+
white-space: pre-wrap;
|
140
|
+
}
|
141
|
+
.mfui-beta-video-banner__title {
|
142
|
+
margin-bottom: 24px;
|
143
|
+
}
|
144
|
+
@media screen and (max-width: 767px) {
|
145
|
+
.mfui-beta-video-banner__title {
|
146
|
+
margin-bottom: 20px;
|
147
|
+
}
|
148
|
+
}
|
149
|
+
.mfui-beta-video-banner__title,
|
150
|
+
.mfui-beta-video-banner__text {
|
151
|
+
white-space: pre-wrap;
|
152
|
+
}
|
153
|
+
@media screen and (max-width: 767px) {
|
154
|
+
.mfui-beta-video-banner__title,
|
155
|
+
.mfui-beta-video-banner__text {
|
156
|
+
text-align: center;
|
157
|
+
}
|
158
|
+
}
|
159
|
+
.mfui-beta-video-banner__btns-wrapper {
|
160
|
+
display: -webkit-box;
|
161
|
+
display: -ms-flexbox;
|
162
|
+
display: flex;
|
163
|
+
-ms-flex-wrap: wrap;
|
164
|
+
flex-wrap: wrap;
|
165
|
+
-webkit-box-align: center;
|
166
|
+
-ms-flex-align: center;
|
167
|
+
align-items: center;
|
168
|
+
-webkit-box-pack: start;
|
169
|
+
-ms-flex-pack: start;
|
170
|
+
justify-content: flex-start;
|
171
|
+
margin: -24px -10px 0;
|
172
|
+
}
|
173
|
+
@media screen and (max-width: 767px) {
|
174
|
+
.mfui-beta-video-banner__btns-wrapper {
|
175
|
+
-webkit-box-pack: center;
|
176
|
+
-ms-flex-pack: center;
|
177
|
+
justify-content: center;
|
178
|
+
}
|
179
|
+
}
|
180
|
+
@media screen and (max-width: 479px) {
|
181
|
+
.mfui-beta-video-banner__btns-wrapper {
|
182
|
+
-webkit-box-orient: vertical;
|
183
|
+
-webkit-box-direction: normal;
|
184
|
+
-ms-flex-direction: column;
|
185
|
+
flex-direction: column;
|
186
|
+
}
|
187
|
+
}
|
188
|
+
.mfui-beta-video-banner__link,
|
189
|
+
.mfui-beta-video-banner__button {
|
190
|
+
margin: 24px 10px 0;
|
191
|
+
}
|
192
|
+
.mfui-beta-video-banner__cost {
|
193
|
+
font-size: 12px;
|
194
|
+
line-height: 16px;
|
195
|
+
margin-bottom: 18px;
|
196
|
+
}
|
197
|
+
.mfui-beta-video-banner__value {
|
198
|
+
display: inline;
|
199
|
+
margin: 0 3px;
|
200
|
+
}
|
201
|
+
.mfui-beta-video-banner__content,
|
202
|
+
.mfui-beta-video-banner__breadcrumbs {
|
203
|
+
z-index: 1;
|
204
|
+
}
|
205
|
+
.mfui-beta-video-banner__breadcrumbs {
|
206
|
+
position: absolute;
|
207
|
+
top: 32px;
|
208
|
+
}
|
209
|
+
@media screen and (max-width: 767px) {
|
210
|
+
.mfui-beta-video-banner__breadcrumbs {
|
211
|
+
display: none;
|
212
|
+
}
|
213
|
+
}
|
214
|
+
.mfui-beta-video-banner__grid {
|
215
|
+
width: 100%;
|
216
|
+
}
|
@@ -0,0 +1,90 @@
|
|
1
|
+
import React, { Ref } from 'react';
|
2
|
+
import { Props as BreadcrumbsPropsType } from '../Breadcrumbs/Breadcrumbs';
|
3
|
+
import './VideoBanner.less';
|
4
|
+
declare type BreadCrumbsItemsType = BreadcrumbsPropsType['items'];
|
5
|
+
export declare enum ClassName {
|
6
|
+
BUTTON = "button",
|
7
|
+
LINK = "link"
|
8
|
+
}
|
9
|
+
export declare const VideoType: {
|
10
|
+
readonly YOUTUBE: "youtube";
|
11
|
+
readonly VIDEO: "video";
|
12
|
+
};
|
13
|
+
declare type VideoType = typeof VideoType[keyof typeof VideoType];
|
14
|
+
export declare const ButtonColor: {
|
15
|
+
readonly GREEN: "green";
|
16
|
+
readonly PURPLE: "purple";
|
17
|
+
};
|
18
|
+
export declare type ButtonColorType = typeof ButtonColor[keyof typeof ButtonColor];
|
19
|
+
export declare const TextColor: {
|
20
|
+
readonly BLACK: "black";
|
21
|
+
readonly WHITE: "white";
|
22
|
+
};
|
23
|
+
declare type TextColorType = typeof TextColor[keyof typeof TextColor];
|
24
|
+
export interface IContent {
|
25
|
+
/** Заголовок */
|
26
|
+
title: string;
|
27
|
+
/** Текст-описание */
|
28
|
+
description: string;
|
29
|
+
/** Текст кнопки */
|
30
|
+
buttonTitle?: string;
|
31
|
+
/** Ссылка на кнопке */
|
32
|
+
buttonHref?: string;
|
33
|
+
/** Добавляет атрибут download для тега <a> компонента Button */
|
34
|
+
buttonDownload?: boolean;
|
35
|
+
/** Цвет кнопки */
|
36
|
+
buttonColor?: ButtonColorType;
|
37
|
+
/** Обработчик клика по кнопке */
|
38
|
+
onButtonClick?: (e: React.SyntheticEvent<EventTarget>) => void;
|
39
|
+
/** Обработчик клика по ссылке */
|
40
|
+
onLinkClick?: (e: React.SyntheticEvent<EventTarget>) => void;
|
41
|
+
/** Цвет текста */
|
42
|
+
textColor?: TextColorType;
|
43
|
+
/** Цвет текста на мобильном разрешении */
|
44
|
+
textColorMobile?: TextColorType;
|
45
|
+
/** Текст ссылки */
|
46
|
+
linkTitle?: string;
|
47
|
+
/** Адрес ссылки */
|
48
|
+
linkUrl?: string;
|
49
|
+
/** Добавляет атрибут download для тега <a> компонента TextLink */
|
50
|
+
linkDownload?: boolean;
|
51
|
+
/** Строка со стоимостью услуги */
|
52
|
+
cost?: string;
|
53
|
+
}
|
54
|
+
interface IVideoBannerProps {
|
55
|
+
/** Дата атрибуты для корневого элемента */
|
56
|
+
dataAttrs?: {
|
57
|
+
[key: string]: string;
|
58
|
+
};
|
59
|
+
/** Дополнительный класс корневого элемента */
|
60
|
+
className?: string;
|
61
|
+
/** Дополнительные классы для корневого и внутренних элементов */
|
62
|
+
classes?: {
|
63
|
+
root?: string;
|
64
|
+
button?: string;
|
65
|
+
link?: string;
|
66
|
+
breadcrumbs?: string;
|
67
|
+
};
|
68
|
+
/** Ссылка на корневой элемент */
|
69
|
+
rootRef?: Ref<HTMLDivElement>;
|
70
|
+
/** Данные для блока с контентом */
|
71
|
+
content?: IContent;
|
72
|
+
/** Источник видео. */
|
73
|
+
videoSrc?: string;
|
74
|
+
/** Тип видео */
|
75
|
+
videoType?: VideoType;
|
76
|
+
/** Наличие звука в видео */
|
77
|
+
isMuted?: boolean;
|
78
|
+
/** Изображение для мобильного разрешения */
|
79
|
+
imageMobile: string;
|
80
|
+
/** Изображение для планшетного разрешения */
|
81
|
+
imageTablet: string;
|
82
|
+
/** Изображение для компьютерного разрешения */
|
83
|
+
imageDesktop?: string;
|
84
|
+
/** Изображение для большого компьютерного разрешения */
|
85
|
+
imageDesktopWide?: string;
|
86
|
+
/** Хлебные крошки */
|
87
|
+
breadcrumbs?: BreadCrumbsItemsType;
|
88
|
+
}
|
89
|
+
declare const VideoBanner: React.FC<IVideoBannerProps>;
|
90
|
+
export default VideoBanner;
|
@@ -0,0 +1,272 @@
|
|
1
|
+
import "core-js/modules/es.symbol";
|
2
|
+
import "core-js/modules/es.symbol.description";
|
3
|
+
import "core-js/modules/es.array.concat";
|
4
|
+
import "core-js/modules/es.object.values";
|
5
|
+
import "core-js/modules/es.string.link";
|
6
|
+
import _extends from "@babel/runtime/helpers/extends";
|
7
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
8
|
+
import React from 'react';
|
9
|
+
import * as PropTypes from 'prop-types';
|
10
|
+
import throttle from 'lodash.throttle';
|
11
|
+
import { Button, Header, ContentArea, TextLink, Grid, GridColumn } from '@megafon/ui-core';
|
12
|
+
import { breakpoints, cnCreate, filterDataAttrs, convert } from '@megafon/ui-helpers';
|
13
|
+
import Breadcrumbs from "../Breadcrumbs/Breadcrumbs";
|
14
|
+
import throttleTime from "../../constants/throttleTime";
|
15
|
+
import "./VideoBanner.css";
|
16
|
+
export var ClassName;
|
17
|
+
|
18
|
+
(function (ClassName) {
|
19
|
+
ClassName["BUTTON"] = "button";
|
20
|
+
ClassName["LINK"] = "link";
|
21
|
+
})(ClassName || (ClassName = {}));
|
22
|
+
|
23
|
+
var typographyConfig = {
|
24
|
+
b: {
|
25
|
+
component: function component(_ref) {
|
26
|
+
var children = _ref.children;
|
27
|
+
return /*#__PURE__*/React.createElement(Header, {
|
28
|
+
className: cn('value'),
|
29
|
+
as: "h3",
|
30
|
+
color: "inherit"
|
31
|
+
}, children);
|
32
|
+
}
|
33
|
+
}
|
34
|
+
};
|
35
|
+
export var VideoType = {
|
36
|
+
YOUTUBE: 'youtube',
|
37
|
+
VIDEO: 'video'
|
38
|
+
};
|
39
|
+
export var ButtonColor = {
|
40
|
+
GREEN: 'green',
|
41
|
+
PURPLE: 'purple'
|
42
|
+
};
|
43
|
+
export var TextColor = {
|
44
|
+
BLACK: 'black',
|
45
|
+
WHITE: 'white'
|
46
|
+
};
|
47
|
+
var cn = cnCreate('mfui-beta-video-banner');
|
48
|
+
|
49
|
+
var VideoBanner = function VideoBanner(_ref2) {
|
50
|
+
var dataAttrs = _ref2.dataAttrs,
|
51
|
+
className = _ref2.className,
|
52
|
+
_ref2$classes = _ref2.classes,
|
53
|
+
classes = _ref2$classes === void 0 ? {} : _ref2$classes,
|
54
|
+
rootRef = _ref2.rootRef,
|
55
|
+
videoSrc = _ref2.videoSrc,
|
56
|
+
videoType = _ref2.videoType,
|
57
|
+
imageMobile = _ref2.imageMobile,
|
58
|
+
imageTablet = _ref2.imageTablet,
|
59
|
+
_ref2$imageDesktop = _ref2.imageDesktop,
|
60
|
+
imageDesktop = _ref2$imageDesktop === void 0 ? '' : _ref2$imageDesktop,
|
61
|
+
_ref2$imageDesktopWid = _ref2.imageDesktopWide,
|
62
|
+
imageDesktopWide = _ref2$imageDesktopWid === void 0 ? '' : _ref2$imageDesktopWid,
|
63
|
+
content = _ref2.content,
|
64
|
+
_ref2$isMuted = _ref2.isMuted,
|
65
|
+
isMuted = _ref2$isMuted === void 0 ? true : _ref2$isMuted,
|
66
|
+
breadcrumbs = _ref2.breadcrumbs;
|
67
|
+
|
68
|
+
var _React$useState = React.useState(true),
|
69
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
70
|
+
isMobile = _React$useState2[0],
|
71
|
+
setIsMobile = _React$useState2[1];
|
72
|
+
|
73
|
+
var _React$useState3 = React.useState(imageMobile),
|
74
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
75
|
+
imageSrc = _React$useState4[0],
|
76
|
+
setImageSrc = _React$useState4[1];
|
77
|
+
|
78
|
+
var isVideoData = !!videoSrc && !!videoType;
|
79
|
+
var isRenderVideo = !isMobile && isVideoData;
|
80
|
+
var renderContent = React.useCallback(function (_ref3) {
|
81
|
+
var title = _ref3.title,
|
82
|
+
description = _ref3.description,
|
83
|
+
buttonTitle = _ref3.buttonTitle,
|
84
|
+
buttonHref = _ref3.buttonHref,
|
85
|
+
buttonDownload = _ref3.buttonDownload,
|
86
|
+
_ref3$buttonColor = _ref3.buttonColor,
|
87
|
+
buttonColor = _ref3$buttonColor === void 0 ? ButtonColor.GREEN : _ref3$buttonColor,
|
88
|
+
onButtonClick = _ref3.onButtonClick,
|
89
|
+
onLinkClick = _ref3.onLinkClick,
|
90
|
+
_ref3$textColor = _ref3.textColor,
|
91
|
+
textColor = _ref3$textColor === void 0 ? TextColor.BLACK : _ref3$textColor,
|
92
|
+
textColorMobile = _ref3.textColorMobile,
|
93
|
+
linkTitle = _ref3.linkTitle,
|
94
|
+
linkUrl = _ref3.linkUrl,
|
95
|
+
linkDownload = _ref3.linkDownload,
|
96
|
+
cost = _ref3.cost;
|
97
|
+
return /*#__PURE__*/React.createElement(Grid, {
|
98
|
+
className: cn('grid'),
|
99
|
+
guttersLeft: "medium"
|
100
|
+
}, /*#__PURE__*/React.createElement(GridColumn, {
|
101
|
+
mobile: "12",
|
102
|
+
tablet: "7",
|
103
|
+
desktop: "7",
|
104
|
+
wide: "6"
|
105
|
+
}, /*#__PURE__*/React.createElement("div", {
|
106
|
+
className: cn('content', {
|
107
|
+
'text-color': textColor,
|
108
|
+
'text-color-mobile': textColorMobile
|
109
|
+
})
|
110
|
+
}, /*#__PURE__*/React.createElement(Header, {
|
111
|
+
className: cn('title'),
|
112
|
+
as: "h1",
|
113
|
+
color: "inherit"
|
114
|
+
}, title), /*#__PURE__*/React.createElement("div", {
|
115
|
+
className: cn('text')
|
116
|
+
}, /*#__PURE__*/React.createElement(Header, {
|
117
|
+
as: "h5",
|
118
|
+
color: "inherit",
|
119
|
+
className: cn('description')
|
120
|
+
}, description), cost && /*#__PURE__*/React.createElement("div", {
|
121
|
+
className: cn('cost')
|
122
|
+
}, convert(cost, typographyConfig))), /*#__PURE__*/React.createElement("div", {
|
123
|
+
className: cn('btns-wrapper')
|
124
|
+
}, buttonTitle && /*#__PURE__*/React.createElement(Button, {
|
125
|
+
className: cn(ClassName.BUTTON, [classes.button]),
|
126
|
+
theme: buttonColor,
|
127
|
+
href: buttonHref,
|
128
|
+
onClick: onButtonClick,
|
129
|
+
download: buttonDownload
|
130
|
+
}, buttonTitle), linkTitle && /*#__PURE__*/React.createElement(TextLink, {
|
131
|
+
className: cn(ClassName.LINK, [classes.link]),
|
132
|
+
href: linkUrl,
|
133
|
+
download: linkDownload,
|
134
|
+
onClick: onLinkClick
|
135
|
+
}, linkTitle)))));
|
136
|
+
}, []);
|
137
|
+
var renderVideo = React.useCallback(function () {
|
138
|
+
switch (videoType) {
|
139
|
+
case VideoType.YOUTUBE:
|
140
|
+
{
|
141
|
+
var url = "https://www.youtube.com/embed/".concat(videoSrc, "?");
|
142
|
+
var autoplay = '&autoplay=1';
|
143
|
+
var mute = "&mute=".concat(isMuted ? 1 : 0);
|
144
|
+
var loop = '&loop=1';
|
145
|
+
var rel = '&rel=0';
|
146
|
+
var controls = '&controls=0';
|
147
|
+
var info = '&showinfo=0e';
|
148
|
+
var policy = '&iv_load_policy=3';
|
149
|
+
var playlist = "&playlist=".concat(videoSrc);
|
150
|
+
var src = "".concat(url).concat(autoplay).concat(mute).concat(loop).concat(rel).concat(controls).concat(info).concat(policy).concat(playlist);
|
151
|
+
return /*#__PURE__*/React.createElement("iframe", {
|
152
|
+
title: "iframe",
|
153
|
+
className: cn('video'),
|
154
|
+
src: src,
|
155
|
+
width: "100%",
|
156
|
+
height: "100%",
|
157
|
+
frameBorder: "0",
|
158
|
+
allow: "autoplay"
|
159
|
+
});
|
160
|
+
}
|
161
|
+
|
162
|
+
case VideoType.VIDEO:
|
163
|
+
{
|
164
|
+
return /*#__PURE__*/React.createElement("video", {
|
165
|
+
className: cn('video'),
|
166
|
+
autoPlay: true,
|
167
|
+
loop: true,
|
168
|
+
muted: isMuted
|
169
|
+
}, /*#__PURE__*/React.createElement("source", {
|
170
|
+
src: videoSrc,
|
171
|
+
type: "video/mp4"
|
172
|
+
}));
|
173
|
+
}
|
174
|
+
|
175
|
+
default:
|
176
|
+
{
|
177
|
+
return null;
|
178
|
+
}
|
179
|
+
}
|
180
|
+
}, [videoType, videoSrc, isMuted]);
|
181
|
+
React.useEffect(function () {
|
182
|
+
var getImageSrc = function getImageSrc() {
|
183
|
+
var windowWidth = window.innerWidth;
|
184
|
+
|
185
|
+
switch (true) {
|
186
|
+
case windowWidth >= breakpoints.DESKTOP_MIDDLE_START:
|
187
|
+
return imageDesktopWide;
|
188
|
+
|
189
|
+
case windowWidth >= breakpoints.DESKTOP_SMALL_START && windowWidth <= breakpoints.DESKTOP_SMALL_END:
|
190
|
+
return imageDesktop;
|
191
|
+
|
192
|
+
case windowWidth >= breakpoints.MOBILE_BIG_START && windowWidth <= breakpoints.MOBILE_BIG_END:
|
193
|
+
return imageTablet;
|
194
|
+
|
195
|
+
default:
|
196
|
+
return imageMobile;
|
197
|
+
}
|
198
|
+
};
|
199
|
+
|
200
|
+
var resizeHandler = function resizeHandler() {
|
201
|
+
setIsMobile(window.innerWidth < breakpoints.DESKTOP_SMALL_START);
|
202
|
+
setImageSrc(getImageSrc());
|
203
|
+
};
|
204
|
+
|
205
|
+
var resizeHandlerThrottled = throttle(resizeHandler, throttleTime.resize);
|
206
|
+
resizeHandler();
|
207
|
+
window.addEventListener('resize', resizeHandlerThrottled);
|
208
|
+
return function () {
|
209
|
+
window.removeEventListener('resize', resizeHandlerThrottled);
|
210
|
+
};
|
211
|
+
}, []);
|
212
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs), {
|
213
|
+
className: cn([className, classes.root]),
|
214
|
+
ref: rootRef
|
215
|
+
}), /*#__PURE__*/React.createElement(ContentArea, null, /*#__PURE__*/React.createElement("div", {
|
216
|
+
className: cn('wrapper')
|
217
|
+
}, !!(breadcrumbs === null || breadcrumbs === void 0 ? void 0 : breadcrumbs.length) && /*#__PURE__*/React.createElement(Breadcrumbs, {
|
218
|
+
className: cn('breadcrumbs'),
|
219
|
+
items: breadcrumbs,
|
220
|
+
color: content === null || content === void 0 ? void 0 : content.textColor,
|
221
|
+
classes: {
|
222
|
+
item: classes.breadcrumbs
|
223
|
+
}
|
224
|
+
}), content && renderContent(content), isRenderVideo && renderVideo(), !isRenderVideo && /*#__PURE__*/React.createElement("div", {
|
225
|
+
style: {
|
226
|
+
backgroundImage: "url(".concat(imageSrc, ")")
|
227
|
+
},
|
228
|
+
className: cn('background-image')
|
229
|
+
}))));
|
230
|
+
};
|
231
|
+
|
232
|
+
VideoBanner.propTypes = {
|
233
|
+
dataAttrs: PropTypes.objectOf(PropTypes.string.isRequired),
|
234
|
+
className: PropTypes.string,
|
235
|
+
classes: PropTypes.shape({
|
236
|
+
root: PropTypes.string,
|
237
|
+
button: PropTypes.string,
|
238
|
+
link: PropTypes.string,
|
239
|
+
breadcrumbs: PropTypes.string
|
240
|
+
}),
|
241
|
+
rootRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
|
242
|
+
current: PropTypes.elementType
|
243
|
+
}), PropTypes.any])]),
|
244
|
+
videoSrc: PropTypes.string,
|
245
|
+
videoType: PropTypes.oneOf(Object.values(VideoType)),
|
246
|
+
content: PropTypes.shape({
|
247
|
+
title: PropTypes.string.isRequired,
|
248
|
+
description: PropTypes.string.isRequired,
|
249
|
+
buttonTitle: PropTypes.string,
|
250
|
+
buttonHref: PropTypes.string,
|
251
|
+
buttonDownload: PropTypes.bool,
|
252
|
+
buttonColor: PropTypes.oneOf(Object.values(ButtonColor)),
|
253
|
+
onButtonClick: PropTypes.func,
|
254
|
+
onLinkClick: PropTypes.func,
|
255
|
+
textColor: PropTypes.oneOf(Object.values(TextColor)),
|
256
|
+
textColorMobile: PropTypes.oneOf(Object.values(TextColor)),
|
257
|
+
linkTitle: PropTypes.string,
|
258
|
+
linkUrl: PropTypes.string,
|
259
|
+
linkDownload: PropTypes.bool,
|
260
|
+
cost: PropTypes.string
|
261
|
+
}),
|
262
|
+
isMuted: PropTypes.bool,
|
263
|
+
imageMobile: PropTypes.string.isRequired,
|
264
|
+
imageTablet: PropTypes.string.isRequired,
|
265
|
+
imageDesktop: PropTypes.string,
|
266
|
+
imageDesktopWide: PropTypes.string,
|
267
|
+
breadcrumbs: PropTypes.arrayOf(PropTypes.shape({
|
268
|
+
title: PropTypes.string.isRequired,
|
269
|
+
href: PropTypes.string
|
270
|
+
}).isRequired)
|
271
|
+
};
|
272
|
+
export default VideoBanner;
|
@@ -0,0 +1,127 @@
|
|
1
|
+
h1,
|
2
|
+
h2,
|
3
|
+
h3,
|
4
|
+
h4,
|
5
|
+
h5 {
|
6
|
+
margin: 0;
|
7
|
+
}
|
8
|
+
.mfui-beta-video-block {
|
9
|
+
display: -webkit-box;
|
10
|
+
display: -ms-flexbox;
|
11
|
+
display: flex;
|
12
|
+
-webkit-box-align: center;
|
13
|
+
-ms-flex-align: center;
|
14
|
+
align-items: center;
|
15
|
+
}
|
16
|
+
.mfui-beta-video-block__content {
|
17
|
+
display: -webkit-box;
|
18
|
+
display: -ms-flexbox;
|
19
|
+
display: flex;
|
20
|
+
-webkit-box-orient: vertical;
|
21
|
+
-webkit-box-direction: normal;
|
22
|
+
-ms-flex-direction: column;
|
23
|
+
flex-direction: column;
|
24
|
+
-webkit-box-pack: center;
|
25
|
+
-ms-flex-pack: center;
|
26
|
+
justify-content: center;
|
27
|
+
height: 100%;
|
28
|
+
}
|
29
|
+
@media screen and (max-width: 767px) {
|
30
|
+
.mfui-beta-video-block__content {
|
31
|
+
margin-top: 24px;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
35
|
+
.mfui-beta-video-block__content {
|
36
|
+
margin-top: 32px;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
@media screen and (min-width: 768px) {
|
40
|
+
.mfui-beta-video-block__content {
|
41
|
+
margin-right: 20px;
|
42
|
+
padding-right: 20px;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
.mfui-beta-video-block__header {
|
46
|
+
margin-bottom: 24px;
|
47
|
+
}
|
48
|
+
@media screen and (max-width: 1023px) {
|
49
|
+
.mfui-beta-video-block__header {
|
50
|
+
margin-bottom: 16px;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
.mfui-beta-video-block__description {
|
54
|
+
font-size: 15px;
|
55
|
+
line-height: 24px;
|
56
|
+
font-weight: 400;
|
57
|
+
}
|
58
|
+
.mfui-beta-video-block__button {
|
59
|
+
-ms-flex-item-align: start;
|
60
|
+
align-self: flex-start;
|
61
|
+
max-width: 100%;
|
62
|
+
margin-top: 32px;
|
63
|
+
}
|
64
|
+
@media screen and (max-width: 767px) {
|
65
|
+
.mfui-beta-video-block__button {
|
66
|
+
-ms-flex-item-align: center;
|
67
|
+
align-self: center;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
.mfui-beta-video-block__video {
|
71
|
+
width: 100%;
|
72
|
+
height: 100%;
|
73
|
+
-o-object-fit: contain;
|
74
|
+
object-fit: contain;
|
75
|
+
}
|
76
|
+
.mfui-beta-video-block__video-wrapper {
|
77
|
+
height: 674px;
|
78
|
+
overflow: hidden;
|
79
|
+
}
|
80
|
+
@media screen and (min-width: 1440px) and (max-width: 1599px) {
|
81
|
+
.mfui-beta-video-block__video-wrapper {
|
82
|
+
height: 600px;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
@media screen and (min-width: 1280px) and (max-width: 1439px) {
|
86
|
+
.mfui-beta-video-block__video-wrapper {
|
87
|
+
height: 524px;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
@media screen and (min-width: 1024px) and (max-width: 1279px) {
|
91
|
+
.mfui-beta-video-block__video-wrapper {
|
92
|
+
height: 505px;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
.mfui-beta-video-block__video-wrapper_with-content {
|
96
|
+
height: 468px;
|
97
|
+
}
|
98
|
+
@media screen and (min-width: 1440px) and (max-width: 1599px) {
|
99
|
+
.mfui-beta-video-block__video-wrapper_with-content {
|
100
|
+
height: 415px;
|
101
|
+
}
|
102
|
+
}
|
103
|
+
@media screen and (min-width: 1280px) and (max-width: 1439px) {
|
104
|
+
.mfui-beta-video-block__video-wrapper_with-content {
|
105
|
+
height: 363px;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
@media screen and (min-width: 1024px) and (max-width: 1279px) {
|
109
|
+
.mfui-beta-video-block__video-wrapper_with-content {
|
110
|
+
height: 328px;
|
111
|
+
}
|
112
|
+
}
|
113
|
+
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
114
|
+
.mfui-beta-video-block__video-wrapper,
|
115
|
+
.mfui-beta-video-block__video-wrapper_with-content {
|
116
|
+
height: 379px;
|
117
|
+
}
|
118
|
+
}
|
119
|
+
@media screen and (max-width: 767px) {
|
120
|
+
.mfui-beta-video-block__video-wrapper,
|
121
|
+
.mfui-beta-video-block__video-wrapper_with-content {
|
122
|
+
height: 162px;
|
123
|
+
}
|
124
|
+
}
|
125
|
+
.mfui-beta-video-block__grid {
|
126
|
+
width: 100%;
|
127
|
+
}
|