@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,49 @@
|
|
1
|
+
import React, { Ref } from 'react';
|
2
|
+
import './VideoBlock.less';
|
3
|
+
export interface IContent {
|
4
|
+
/** Заголовок */
|
5
|
+
title: string;
|
6
|
+
/** Текст-описание */
|
7
|
+
description: string | React.ReactNode[] | React.ReactNode;
|
8
|
+
/** Текст кнопки */
|
9
|
+
buttonTitle: string;
|
10
|
+
/** Добавляет атрибут download для тега <a> компонента Button */
|
11
|
+
buttonDownload?: boolean;
|
12
|
+
/** Ссылка на кнопке */
|
13
|
+
href?: string;
|
14
|
+
/** Обработчик клика по кнопке */
|
15
|
+
onButtonClick?: (e: React.SyntheticEvent<EventTarget>) => void;
|
16
|
+
}
|
17
|
+
export declare const VideoTypes: {
|
18
|
+
readonly YOUTUBE: "youtube";
|
19
|
+
readonly VIDEO: "video";
|
20
|
+
};
|
21
|
+
declare type VideoType = typeof VideoTypes[keyof typeof VideoTypes];
|
22
|
+
export interface Props {
|
23
|
+
/** Дата атрибуты для корневого элемента */
|
24
|
+
dataAttrs?: {
|
25
|
+
[key: string]: string;
|
26
|
+
};
|
27
|
+
/** Дополнительный класс корневого элемента */
|
28
|
+
className?: string;
|
29
|
+
/** Дополнительные классы для корневого и внутренних элементов */
|
30
|
+
classes?: {
|
31
|
+
root?: string;
|
32
|
+
button?: string;
|
33
|
+
description?: string;
|
34
|
+
};
|
35
|
+
/** Ссылка на корневой элемент */
|
36
|
+
rootRef?: Ref<HTMLDivElement>;
|
37
|
+
/** Данные для блока с контентом */
|
38
|
+
content?: IContent;
|
39
|
+
/** Тип видео */
|
40
|
+
videoType?: VideoType;
|
41
|
+
/** Источник видео. Если видео с youtube, то необходимо указать id */
|
42
|
+
videoSrc: string;
|
43
|
+
/** Наличие звука в видео */
|
44
|
+
isMuted?: boolean;
|
45
|
+
/** Автоматическое проигрывание видео */
|
46
|
+
isAutoplay?: boolean;
|
47
|
+
}
|
48
|
+
declare const VideoBlock: React.FC<Props>;
|
49
|
+
export default VideoBlock;
|
@@ -0,0 +1,147 @@
|
|
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 _extends from "@babel/runtime/helpers/extends";
|
6
|
+
import React from 'react';
|
7
|
+
import PropTypes from 'prop-types';
|
8
|
+
import "./VideoBlock.css";
|
9
|
+
import { Header, Button, Grid, GridColumn } from '@megafon/ui-core';
|
10
|
+
import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
11
|
+
export var VideoTypes = {
|
12
|
+
YOUTUBE: 'youtube',
|
13
|
+
VIDEO: 'video'
|
14
|
+
};
|
15
|
+
var cn = cnCreate('mfui-beta-video-block');
|
16
|
+
|
17
|
+
var VideoBlock = function VideoBlock(_ref) {
|
18
|
+
var dataAttrs = _ref.dataAttrs,
|
19
|
+
className = _ref.className,
|
20
|
+
_ref$classes = _ref.classes,
|
21
|
+
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
22
|
+
rootRef = _ref.rootRef,
|
23
|
+
content = _ref.content,
|
24
|
+
_ref$videoType = _ref.videoType,
|
25
|
+
videoType = _ref$videoType === void 0 ? 'video' : _ref$videoType,
|
26
|
+
videoSrc = _ref.videoSrc,
|
27
|
+
_ref$isMuted = _ref.isMuted,
|
28
|
+
isMuted = _ref$isMuted === void 0 ? true : _ref$isMuted,
|
29
|
+
_ref$isAutoplay = _ref.isAutoplay,
|
30
|
+
isAutoplay = _ref$isAutoplay === void 0 ? false : _ref$isAutoplay;
|
31
|
+
var renderVideo = React.useCallback(function () {
|
32
|
+
switch (videoType) {
|
33
|
+
case VideoTypes.YOUTUBE:
|
34
|
+
{
|
35
|
+
var src = "https://www.youtube.com/embed/".concat(videoSrc, "?&autoplay=").concat(isAutoplay ? 1 : 0, "&mute=").concat(isMuted ? 1 : 0, "&loop=1&rel=0&controls=0&showinfo=0e&iv_load_policy=3&playlist=").concat(videoSrc);
|
36
|
+
return /*#__PURE__*/React.createElement("iframe", {
|
37
|
+
src: src,
|
38
|
+
width: "100%",
|
39
|
+
height: "100%",
|
40
|
+
frameBorder: "0",
|
41
|
+
allow: "autoplay",
|
42
|
+
title: "iframe"
|
43
|
+
});
|
44
|
+
}
|
45
|
+
|
46
|
+
case VideoTypes.VIDEO:
|
47
|
+
{
|
48
|
+
return /*#__PURE__*/React.createElement("video", {
|
49
|
+
className: cn('video'),
|
50
|
+
autoPlay: isAutoplay,
|
51
|
+
muted: isMuted,
|
52
|
+
controls: !isAutoplay,
|
53
|
+
loop: true
|
54
|
+
}, /*#__PURE__*/React.createElement("source", {
|
55
|
+
src: videoSrc,
|
56
|
+
type: "video/mp4"
|
57
|
+
}));
|
58
|
+
}
|
59
|
+
|
60
|
+
default:
|
61
|
+
{
|
62
|
+
return null;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}, [videoType, videoSrc]);
|
66
|
+
var renderContent = React.useCallback(function (_ref2) {
|
67
|
+
var title = _ref2.title,
|
68
|
+
description = _ref2.description,
|
69
|
+
href = _ref2.href,
|
70
|
+
buttonDownload = _ref2.buttonDownload,
|
71
|
+
buttonTitle = _ref2.buttonTitle,
|
72
|
+
onButtonClick = _ref2.onButtonClick;
|
73
|
+
return /*#__PURE__*/React.createElement("div", {
|
74
|
+
className: cn('content')
|
75
|
+
}, /*#__PURE__*/React.createElement(Header, {
|
76
|
+
as: "h2",
|
77
|
+
className: cn('header')
|
78
|
+
}, title), /*#__PURE__*/React.createElement("div", {
|
79
|
+
className: cn('description', [classes.description])
|
80
|
+
}, description), /*#__PURE__*/React.createElement(Button, {
|
81
|
+
className: cn('button', [classes.button]),
|
82
|
+
href: href,
|
83
|
+
onClick: onButtonClick,
|
84
|
+
download: buttonDownload
|
85
|
+
}, buttonTitle));
|
86
|
+
}, [content]);
|
87
|
+
var renderGridColumns = React.useCallback(function () {
|
88
|
+
var columns = [];
|
89
|
+
var columnWidth = content ? '7' : '10';
|
90
|
+
|
91
|
+
if (content) {
|
92
|
+
columns.push( /*#__PURE__*/React.createElement(GridColumn, {
|
93
|
+
all: "5",
|
94
|
+
tablet: "12",
|
95
|
+
mobile: "12",
|
96
|
+
orderTablet: "2",
|
97
|
+
orderMobile: "2",
|
98
|
+
key: 'column-content'
|
99
|
+
}, renderContent && renderContent(content)));
|
100
|
+
}
|
101
|
+
|
102
|
+
columns.push( /*#__PURE__*/React.createElement(GridColumn, {
|
103
|
+
all: columnWidth,
|
104
|
+
tablet: "12",
|
105
|
+
mobile: "12",
|
106
|
+
key: 'column-video'
|
107
|
+
}, /*#__PURE__*/React.createElement("div", {
|
108
|
+
className: cn('video-wrapper', {
|
109
|
+
'with-content': !!content
|
110
|
+
})
|
111
|
+
}, renderVideo())));
|
112
|
+
return columns;
|
113
|
+
}, [renderContent, renderVideo, content]);
|
114
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs), {
|
115
|
+
className: cn([className, classes.root]),
|
116
|
+
ref: rootRef
|
117
|
+
}), /*#__PURE__*/React.createElement(Grid, {
|
118
|
+
hAlign: "center",
|
119
|
+
className: cn('grid')
|
120
|
+
}, renderGridColumns()));
|
121
|
+
};
|
122
|
+
|
123
|
+
VideoBlock.propTypes = {
|
124
|
+
dataAttrs: PropTypes.objectOf(PropTypes.string.isRequired),
|
125
|
+
className: PropTypes.string,
|
126
|
+
classes: PropTypes.shape({
|
127
|
+
root: PropTypes.string,
|
128
|
+
button: PropTypes.string,
|
129
|
+
description: PropTypes.string
|
130
|
+
}),
|
131
|
+
rootRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
|
132
|
+
current: PropTypes.elementType
|
133
|
+
}), PropTypes.any])]),
|
134
|
+
content: PropTypes.shape({
|
135
|
+
title: PropTypes.string.isRequired,
|
136
|
+
description: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired,
|
137
|
+
href: PropTypes.string,
|
138
|
+
buttonTitle: PropTypes.string.isRequired,
|
139
|
+
buttonDownload: PropTypes.bool,
|
140
|
+
onButtonClick: PropTypes.func
|
141
|
+
}),
|
142
|
+
videoType: PropTypes.oneOf(Object.values(VideoTypes)),
|
143
|
+
videoSrc: PropTypes.string.isRequired,
|
144
|
+
isMuted: PropTypes.bool,
|
145
|
+
isAutoplay: PropTypes.bool
|
146
|
+
};
|
147
|
+
export default VideoBlock;
|
package/dist/es/index.d.ts
CHANGED
@@ -1,22 +1,34 @@
|
|
1
|
+
export { default as AccordionBox } from './components/AccordionBox/AccordionBox';
|
2
|
+
export { default as BannerBox } from './components/BannerBox/BannerBox';
|
1
3
|
export { default as BenefitsIcons } from './components/BenefitsIcons/BenefitsIcons';
|
2
4
|
export { default as BenefitsIconsTile } from './components/BenefitsIcons/BenefitsIconsTile';
|
3
5
|
export { default as BenefitsPictures } from './components/BenefitsPictures/BenefitsPictures';
|
6
|
+
export { default as Breadcrumbs } from './components/Breadcrumbs/Breadcrumbs';
|
7
|
+
export { default as ButtonBanner } from './components/ButtonBanner/ButtonBanner';
|
4
8
|
export { default as ButtonLinkBox } from './components/ButtonLinkBox/ButtonLinkBox';
|
5
|
-
export { default as
|
6
|
-
export { default as
|
7
|
-
export { default as
|
8
|
-
export { default as
|
9
|
-
export { default as
|
10
|
-
export { default as
|
11
|
-
export { default as
|
12
|
-
export { default as
|
13
|
-
export { default as
|
14
|
-
export { default as
|
15
|
-
export { default as
|
16
|
-
export { default as
|
17
|
-
export { default as
|
18
|
-
export { default as
|
19
|
-
export { default as
|
20
|
-
export { default as
|
21
|
-
export { default as
|
9
|
+
export { default as Card } from './components/Card/Card';
|
10
|
+
export { default as CardsBox } from './components/CardsBox/CardsBox';
|
11
|
+
export { default as CarouselBox } from './components/CarouselBox/CarouselBox';
|
12
|
+
export { default as Container } from './components/Container/Container';
|
13
|
+
export { default as DownloadLink } from './components/DownloadLinks/DownloadLink';
|
14
|
+
export { default as DownloadLinks } from './components/DownloadLinks/DownloadLinks';
|
15
|
+
export { default as Instructions } from './components/Instructions/Instructions';
|
16
|
+
export { default as PageTitle } from './components/PageTitle/PageTitle';
|
17
|
+
export { default as Partners } from './components/Partners/Partners';
|
18
|
+
export { default as PictureWithDescription } from './components/PictureWithDescription/PictureWithDescription';
|
19
|
+
export { default as Property } from './components/Property/Property';
|
20
|
+
export { default as PropertyDescription } from './components/Property/PropertyDescription';
|
21
|
+
export { default as Steps } from './components/Steps/Steps';
|
22
|
+
export { default as StepsItem } from './components/Steps/StepsItem';
|
23
|
+
export { default as StoreBanner } from './components/StoreBanner/StoreBanner';
|
24
|
+
export { default as StoreButton } from './components/StoreButton/StoreButton';
|
25
|
+
export { default as TabBox } from './components/TabsBox/TabBox';
|
26
|
+
export { default as Table } from './components/Table/Table';
|
27
|
+
export { default as TableCell } from './components/Table/TableCell';
|
28
|
+
export { default as TableRow } from './components/Table/TableRow';
|
29
|
+
export { default as TabsBox } from './components/TabsBox/TabsBox';
|
30
|
+
export { default as TextBox } from './components/TextBox/TextBox';
|
31
|
+
export { default as TextBoxPicture } from './components/TextBox/TextBoxPicture';
|
22
32
|
export { default as TitleDescriptionBox } from './components/TitleDescriptionBox/TitleDescriptionBox';
|
33
|
+
export { default as VideoBanner } from './components/VideoBanner/VideoBanner';
|
34
|
+
export { default as VideoBlock } from './components/VideoBlock/VideoBlock';
|
package/dist/es/index.js
CHANGED
@@ -1,22 +1,34 @@
|
|
1
|
+
export { default as AccordionBox } from "./components/AccordionBox/AccordionBox";
|
2
|
+
export { default as BannerBox } from "./components/BannerBox/BannerBox";
|
1
3
|
export { default as BenefitsIcons } from "./components/BenefitsIcons/BenefitsIcons";
|
2
4
|
export { default as BenefitsIconsTile } from "./components/BenefitsIcons/BenefitsIconsTile";
|
3
5
|
export { default as BenefitsPictures } from "./components/BenefitsPictures/BenefitsPictures";
|
6
|
+
export { default as Breadcrumbs } from "./components/Breadcrumbs/Breadcrumbs";
|
7
|
+
export { default as ButtonBanner } from "./components/ButtonBanner/ButtonBanner";
|
4
8
|
export { default as ButtonLinkBox } from "./components/ButtonLinkBox/ButtonLinkBox";
|
5
|
-
export { default as
|
6
|
-
export { default as
|
7
|
-
export { default as
|
8
|
-
export { default as
|
9
|
-
export { default as
|
10
|
-
export { default as
|
11
|
-
export { default as
|
12
|
-
export { default as
|
13
|
-
export { default as
|
14
|
-
export { default as
|
15
|
-
export { default as
|
16
|
-
export { default as
|
17
|
-
export { default as
|
18
|
-
export { default as
|
19
|
-
export { default as
|
20
|
-
export { default as
|
21
|
-
export { default as
|
22
|
-
export { default as
|
9
|
+
export { default as Card } from "./components/Card/Card";
|
10
|
+
export { default as CardsBox } from "./components/CardsBox/CardsBox";
|
11
|
+
export { default as CarouselBox } from "./components/CarouselBox/CarouselBox";
|
12
|
+
export { default as Container } from "./components/Container/Container";
|
13
|
+
export { default as DownloadLink } from "./components/DownloadLinks/DownloadLink";
|
14
|
+
export { default as DownloadLinks } from "./components/DownloadLinks/DownloadLinks";
|
15
|
+
export { default as Instructions } from "./components/Instructions/Instructions";
|
16
|
+
export { default as PageTitle } from "./components/PageTitle/PageTitle";
|
17
|
+
export { default as Partners } from "./components/Partners/Partners";
|
18
|
+
export { default as PictureWithDescription } from "./components/PictureWithDescription/PictureWithDescription";
|
19
|
+
export { default as Property } from "./components/Property/Property";
|
20
|
+
export { default as PropertyDescription } from "./components/Property/PropertyDescription";
|
21
|
+
export { default as Steps } from "./components/Steps/Steps";
|
22
|
+
export { default as StepsItem } from "./components/Steps/StepsItem";
|
23
|
+
export { default as StoreBanner } from "./components/StoreBanner/StoreBanner";
|
24
|
+
export { default as StoreButton } from "./components/StoreButton/StoreButton";
|
25
|
+
export { default as TabBox } from "./components/TabsBox/TabBox";
|
26
|
+
export { default as Table } from "./components/Table/Table";
|
27
|
+
export { default as TableCell } from "./components/Table/TableCell";
|
28
|
+
export { default as TableRow } from "./components/Table/TableRow";
|
29
|
+
export { default as TabsBox } from "./components/TabsBox/TabsBox";
|
30
|
+
export { default as TextBox } from "./components/TextBox/TextBox";
|
31
|
+
export { default as TextBoxPicture } from "./components/TextBox/TextBoxPicture";
|
32
|
+
export { default as TitleDescriptionBox } from "./components/TitleDescriptionBox/TitleDescriptionBox";
|
33
|
+
export { default as VideoBanner } from "./components/VideoBanner/VideoBanner";
|
34
|
+
export { default as VideoBlock } from "./components/VideoBlock/VideoBlock";
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import './AccordionBox.less';
|
3
|
+
export interface IAccordionBox {
|
4
|
+
/** Дата атрибуты для корневого элемента */
|
5
|
+
dataAttrs?: {
|
6
|
+
[key: string]: string;
|
7
|
+
};
|
8
|
+
/** Ссылка на корневой элемент */
|
9
|
+
rootRef?: React.Ref<HTMLDivElement>;
|
10
|
+
/** Заголовок аккордеона */
|
11
|
+
title: string;
|
12
|
+
/** Состояние аккордеона, заданное извне */
|
13
|
+
isOpened?: boolean;
|
14
|
+
/** Отключить ограничение ширины */
|
15
|
+
isFullWidth?: boolean;
|
16
|
+
/** Центрирование по горизонтали для расширения 1280+ */
|
17
|
+
hCenterAlignWide?: boolean;
|
18
|
+
/** Вертикальные отступы */
|
19
|
+
hasVerticalPaddings?: boolean;
|
20
|
+
/** Дополнительный класс для корнеовго элемента */
|
21
|
+
className?: string;
|
22
|
+
/** Дополнительные классы для корневого и внутренних элементов */
|
23
|
+
classes?: {
|
24
|
+
openedClass?: string;
|
25
|
+
root?: string;
|
26
|
+
collapse?: string;
|
27
|
+
titleWrap?: string;
|
28
|
+
};
|
29
|
+
/** Обработчик клика */
|
30
|
+
onClickAccordion?: (isOpened: boolean, title: string) => void;
|
31
|
+
}
|
32
|
+
declare const AccordionBox: React.FC<IAccordionBox>;
|
33
|
+
export default AccordionBox;
|
@@ -0,0 +1,80 @@
|
|
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
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports["default"] = void 0;
|
9
|
+
|
10
|
+
require("core-js/modules/es.symbol");
|
11
|
+
|
12
|
+
require("core-js/modules/es.array.index-of");
|
13
|
+
|
14
|
+
var React = _interopRequireWildcard(require("react"));
|
15
|
+
|
16
|
+
var PropTypes = _interopRequireWildcard(require("prop-types"));
|
17
|
+
|
18
|
+
var _uiCore = require("@megafon/ui-core");
|
19
|
+
|
20
|
+
var _uiHelpers = require("@megafon/ui-helpers");
|
21
|
+
|
22
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
23
|
+
|
24
|
+
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; }
|
25
|
+
|
26
|
+
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
27
|
+
var t = {};
|
28
|
+
|
29
|
+
for (var p in s) {
|
30
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
31
|
+
}
|
32
|
+
|
33
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
34
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
35
|
+
}
|
36
|
+
return t;
|
37
|
+
};
|
38
|
+
|
39
|
+
var cn = (0, _uiHelpers.cnCreate)('mfui-beta-accordion-box');
|
40
|
+
|
41
|
+
var AccordionBox = function AccordionBox(_a) {
|
42
|
+
var _a$hCenterAlignWide = _a.hCenterAlignWide,
|
43
|
+
hCenterAlignWide = _a$hCenterAlignWide === void 0 ? false : _a$hCenterAlignWide,
|
44
|
+
_a$isFullWidth = _a.isFullWidth,
|
45
|
+
isFullWidth = _a$isFullWidth === void 0 ? false : _a$isFullWidth,
|
46
|
+
restProps = __rest(_a, ["hCenterAlignWide", "isFullWidth"]);
|
47
|
+
|
48
|
+
var renderAccordionWithGrid = React.useCallback(function () {
|
49
|
+
return /*#__PURE__*/React.createElement("div", {
|
50
|
+
className: cn()
|
51
|
+
}, /*#__PURE__*/React.createElement(_uiCore.Grid, {
|
52
|
+
hAlign: hCenterAlignWide ? 'center' : 'left'
|
53
|
+
}, /*#__PURE__*/React.createElement(_uiCore.GridColumn, {
|
54
|
+
wide: "8"
|
55
|
+
}, /*#__PURE__*/React.createElement(_uiCore.Accordion, restProps))));
|
56
|
+
}, [restProps, hCenterAlignWide]);
|
57
|
+
return isFullWidth ? /*#__PURE__*/React.createElement(_uiCore.Accordion, restProps) : renderAccordionWithGrid();
|
58
|
+
};
|
59
|
+
|
60
|
+
AccordionBox.propTypes = {
|
61
|
+
dataAttrs: PropTypes.objectOf(PropTypes.string.isRequired),
|
62
|
+
rootRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
|
63
|
+
current: PropTypes.elementType
|
64
|
+
}), PropTypes.any])]),
|
65
|
+
title: PropTypes.string.isRequired,
|
66
|
+
isFullWidth: PropTypes.bool,
|
67
|
+
isOpened: PropTypes.bool,
|
68
|
+
hCenterAlignWide: PropTypes.bool,
|
69
|
+
hasVerticalPaddings: PropTypes.bool,
|
70
|
+
className: PropTypes.string,
|
71
|
+
classes: PropTypes.shape({
|
72
|
+
openedClass: PropTypes.string,
|
73
|
+
root: PropTypes.string,
|
74
|
+
collapse: PropTypes.string,
|
75
|
+
titleWrap: PropTypes.string
|
76
|
+
}),
|
77
|
+
onClickAccordion: PropTypes.func
|
78
|
+
};
|
79
|
+
var _default = AccordionBox;
|
80
|
+
exports["default"] = _default;
|
@@ -0,0 +1,49 @@
|
|
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
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports["default"] = void 0;
|
9
|
+
|
10
|
+
require("core-js/modules/es.symbol");
|
11
|
+
|
12
|
+
require("core-js/modules/es.array.index-of");
|
13
|
+
|
14
|
+
var React = _interopRequireWildcard(require("react"));
|
15
|
+
|
16
|
+
var _uiCore = require("@megafon/ui-core");
|
17
|
+
|
18
|
+
var _uiHelpers = require("@megafon/ui-helpers");
|
19
|
+
|
20
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
21
|
+
|
22
|
+
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; }
|
23
|
+
|
24
|
+
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
25
|
+
var t = {};
|
26
|
+
|
27
|
+
for (var p in s) {
|
28
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
29
|
+
}
|
30
|
+
|
31
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
32
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
33
|
+
}
|
34
|
+
return t;
|
35
|
+
};
|
36
|
+
|
37
|
+
var cn = (0, _uiHelpers.cnCreate)('mfui-beta-banner-box');
|
38
|
+
|
39
|
+
var BannerBox = function BannerBox(_a) {
|
40
|
+
var children = _a.children,
|
41
|
+
props = __rest(_a, ["children"]);
|
42
|
+
|
43
|
+
return /*#__PURE__*/React.createElement("div", {
|
44
|
+
className: cn()
|
45
|
+
}, /*#__PURE__*/React.createElement(_uiCore.Banner, props, children));
|
46
|
+
};
|
47
|
+
|
48
|
+
var _default = BannerBox;
|
49
|
+
exports["default"] = _default;
|
@@ -1,13 +1,24 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import './style/BenefitsIcons.less';
|
3
|
-
import {
|
3
|
+
import { IconPosition, IBenefit } from './types';
|
4
4
|
export interface IBenefitsIcons {
|
5
|
-
/**
|
6
|
-
|
7
|
-
/**
|
5
|
+
/** Ссылка на корневой элемент */
|
6
|
+
rootRef?: React.Ref<HTMLDivElement>;
|
7
|
+
/** Позиция иконки */
|
8
|
+
iconPosition?: IconPosition;
|
9
|
+
/** Выстраивать бенефиты в одну колонку вне зависимости от количества */
|
10
|
+
inOneColumn?: boolean;
|
11
|
+
/** Список бенефитов */
|
8
12
|
items: IBenefit[];
|
9
|
-
/**
|
13
|
+
/** Дополнительный css класс для корневого элемента */
|
10
14
|
className?: string;
|
15
|
+
/** Дополнительные css классы для корневого и внутренних элементов */
|
16
|
+
classes?: {
|
17
|
+
root?: string;
|
18
|
+
item?: string;
|
19
|
+
grid?: string;
|
20
|
+
gridColumn?: string;
|
21
|
+
};
|
11
22
|
}
|
12
23
|
declare const BenefitsIcons: React.FC<IBenefitsIcons>;
|
13
24
|
export default BenefitsIcons;
|