@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,28 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import './PictureWithDescription.less';
|
3
|
+
export declare const pictureAlignTypes: {
|
4
|
+
readonly LEFT: "left";
|
5
|
+
readonly RIGHT: "right";
|
6
|
+
};
|
7
|
+
declare type PictureAlignTypesType = typeof pictureAlignTypes[keyof typeof pictureAlignTypes];
|
8
|
+
export interface IPictureWithDescriptionProps {
|
9
|
+
/** Ссылка на корневой элемент */
|
10
|
+
rootRef?: React.Ref<HTMLDivElement>;
|
11
|
+
/** Дополнительный класс для корневого элемента */
|
12
|
+
className?: string;
|
13
|
+
/** Дополнительные классы для корневого и внутренних элементов */
|
14
|
+
classes?: {
|
15
|
+
root?: string;
|
16
|
+
title?: string;
|
17
|
+
};
|
18
|
+
/** Заголовок */
|
19
|
+
title?: string | React.ReactNode | React.ReactNode[];
|
20
|
+
/** Url изображения */
|
21
|
+
pictureUrl: string;
|
22
|
+
/** Расположение изображения */
|
23
|
+
pictureAlign?: PictureAlignTypesType;
|
24
|
+
/** Выравнивание текста по верхнему краю */
|
25
|
+
isTextTopAlign?: boolean;
|
26
|
+
}
|
27
|
+
declare const PictureWithDescription: React.FC<IPictureWithDescriptionProps>;
|
28
|
+
export default PictureWithDescription;
|
@@ -0,0 +1,61 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
import "./PictureWithDescription.css";
|
4
|
+
import { cnCreate } from '@megafon/ui-helpers';
|
5
|
+
import { Header } from '@megafon/ui-core';
|
6
|
+
export var pictureAlignTypes = {
|
7
|
+
LEFT: 'left',
|
8
|
+
RIGHT: 'right'
|
9
|
+
};
|
10
|
+
var cn = cnCreate('mfui-beta-picture-with-description');
|
11
|
+
|
12
|
+
var PictureWithDescription = function PictureWithDescription(_ref) {
|
13
|
+
var rootRef = _ref.rootRef,
|
14
|
+
className = _ref.className,
|
15
|
+
_ref$classes = _ref.classes,
|
16
|
+
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
17
|
+
title = _ref.title,
|
18
|
+
pictureUrl = _ref.pictureUrl,
|
19
|
+
_ref$pictureAlign = _ref.pictureAlign,
|
20
|
+
pictureAlign = _ref$pictureAlign === void 0 ? 'left' : _ref$pictureAlign,
|
21
|
+
isTextTopAlign = _ref.isTextTopAlign,
|
22
|
+
children = _ref.children;
|
23
|
+
return /*#__PURE__*/React.createElement("div", {
|
24
|
+
className: cn([className, classes.root]),
|
25
|
+
ref: rootRef
|
26
|
+
}, /*#__PURE__*/React.createElement("div", {
|
27
|
+
className: cn('picture', {
|
28
|
+
align: pictureAlign
|
29
|
+
})
|
30
|
+
}, /*#__PURE__*/React.createElement("img", {
|
31
|
+
className: cn('img'),
|
32
|
+
src: pictureUrl,
|
33
|
+
alt: ""
|
34
|
+
})), /*#__PURE__*/React.createElement("div", {
|
35
|
+
className: cn('articles', {
|
36
|
+
align: pictureAlign,
|
37
|
+
'text-top-align': isTextTopAlign
|
38
|
+
})
|
39
|
+
}, !!title && /*#__PURE__*/React.createElement(Header, {
|
40
|
+
className: cn('title', [classes.title]),
|
41
|
+
as: "h2"
|
42
|
+
}, title), /*#__PURE__*/React.createElement("div", {
|
43
|
+
className: cn('content')
|
44
|
+
}, children)));
|
45
|
+
};
|
46
|
+
|
47
|
+
PictureWithDescription.propTypes = {
|
48
|
+
rootRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
|
49
|
+
current: PropTypes.elementType
|
50
|
+
}), PropTypes.any])]),
|
51
|
+
className: PropTypes.string,
|
52
|
+
classes: PropTypes.shape({
|
53
|
+
root: PropTypes.string,
|
54
|
+
title: PropTypes.string
|
55
|
+
}),
|
56
|
+
title: PropTypes.oneOfType([PropTypes.string, PropTypes.node, PropTypes.arrayOf(PropTypes.node)]),
|
57
|
+
pictureUrl: PropTypes.string.isRequired,
|
58
|
+
pictureAlign: PropTypes.oneOf([pictureAlignTypes.LEFT, pictureAlignTypes.RIGHT]),
|
59
|
+
isTextTopAlign: PropTypes.bool
|
60
|
+
};
|
61
|
+
export default PictureWithDescription;
|
@@ -0,0 +1,125 @@
|
|
1
|
+
h1,
|
2
|
+
h2,
|
3
|
+
h3,
|
4
|
+
h4,
|
5
|
+
h5 {
|
6
|
+
margin: 0;
|
7
|
+
}
|
8
|
+
.mfui-beta-property__wrapper {
|
9
|
+
display: -webkit-box;
|
10
|
+
display: -ms-flexbox;
|
11
|
+
display: flex;
|
12
|
+
-webkit-box-orient: vertical;
|
13
|
+
-webkit-box-direction: normal;
|
14
|
+
-ms-flex-direction: column;
|
15
|
+
flex-direction: column;
|
16
|
+
padding: 24px 0;
|
17
|
+
border-top: 1px solid #D8D8D8;
|
18
|
+
}
|
19
|
+
@media screen and (min-width: 1280px) {
|
20
|
+
.mfui-beta-property__wrapper {
|
21
|
+
padding: 26px 0;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
.mfui-beta-property_border-bottom .mfui-beta-property__wrapper {
|
25
|
+
border-bottom: 1px solid #D8D8D8;
|
26
|
+
}
|
27
|
+
.mfui-beta-property__content {
|
28
|
+
display: -webkit-box;
|
29
|
+
display: -ms-flexbox;
|
30
|
+
display: flex;
|
31
|
+
}
|
32
|
+
.mfui-beta-property__item {
|
33
|
+
display: -webkit-box;
|
34
|
+
display: -ms-flexbox;
|
35
|
+
display: flex;
|
36
|
+
}
|
37
|
+
.mfui-beta-property__icon {
|
38
|
+
display: inline-block;
|
39
|
+
width: 24px;
|
40
|
+
height: 24px;
|
41
|
+
margin-right: 9px;
|
42
|
+
margin-left: 1px;
|
43
|
+
overflow: hidden;
|
44
|
+
vertical-align: bottom;
|
45
|
+
}
|
46
|
+
.mfui-beta-property__badge {
|
47
|
+
padding: 2px 8px;
|
48
|
+
border-radius: 2px;
|
49
|
+
color: #FFFFFF;
|
50
|
+
font-size: 12px;
|
51
|
+
background: #FFA717;
|
52
|
+
}
|
53
|
+
.mfui-beta-property__inner {
|
54
|
+
-webkit-box-flex: 1;
|
55
|
+
-ms-flex-positive: 1;
|
56
|
+
flex-grow: 1;
|
57
|
+
padding-right: 20px;
|
58
|
+
}
|
59
|
+
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
60
|
+
.mfui-beta-property__inner {
|
61
|
+
padding-right: 77px;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
@media screen and (max-width: 767px) {
|
65
|
+
.mfui-beta-property__inner {
|
66
|
+
padding-right: 8px;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
.mfui-beta-property__items-wrapper {
|
70
|
+
width: 100%;
|
71
|
+
}
|
72
|
+
.mfui-beta-property__value-wrapper {
|
73
|
+
display: -webkit-box;
|
74
|
+
display: -ms-flexbox;
|
75
|
+
display: flex;
|
76
|
+
-ms-flex-negative: 0;
|
77
|
+
flex-shrink: 0;
|
78
|
+
-webkit-box-align: start;
|
79
|
+
-ms-flex-align: start;
|
80
|
+
align-items: flex-start;
|
81
|
+
-webkit-box-pack: end;
|
82
|
+
-ms-flex-pack: end;
|
83
|
+
justify-content: flex-end;
|
84
|
+
width: 35%;
|
85
|
+
}
|
86
|
+
@media screen and (max-width: 479px) {
|
87
|
+
.mfui-beta-property__value-wrapper {
|
88
|
+
width: auto;
|
89
|
+
padding-left: 10px;
|
90
|
+
}
|
91
|
+
}
|
92
|
+
.mfui-beta-property__value-wrapper_merged {
|
93
|
+
-webkit-box-align: center;
|
94
|
+
-ms-flex-align: center;
|
95
|
+
align-items: center;
|
96
|
+
border-left: 1px solid #D8D8D8;
|
97
|
+
}
|
98
|
+
.mfui-beta-property__desc {
|
99
|
+
margin-top: 8px;
|
100
|
+
}
|
101
|
+
.mfui-beta-property__item + .mfui-beta-property__item {
|
102
|
+
margin-top: 16px;
|
103
|
+
}
|
104
|
+
.mfui-beta-property__value {
|
105
|
+
max-width: 234px;
|
106
|
+
white-space: pre-line;
|
107
|
+
text-align: right;
|
108
|
+
font-weight: 500;
|
109
|
+
font-size: 18px;
|
110
|
+
line-height: 24px;
|
111
|
+
letter-spacing: 0.5px;
|
112
|
+
}
|
113
|
+
@media screen and (min-width: 1280px) {
|
114
|
+
.mfui-beta-property__value {
|
115
|
+
font-size: 20px;
|
116
|
+
line-height: 28px;
|
117
|
+
}
|
118
|
+
}
|
119
|
+
@media screen and (max-width: 767px) {
|
120
|
+
.mfui-beta-property__value {
|
121
|
+
font-size: 15px;
|
122
|
+
line-height: 24px;
|
123
|
+
font-weight: 500;
|
124
|
+
}
|
125
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import React, { Ref } from 'react';
|
2
|
+
import './Property.less';
|
3
|
+
import { Item } from './types';
|
4
|
+
export interface IProperty {
|
5
|
+
/** Ссылка на корневой элемент */
|
6
|
+
rootRef?: Ref<HTMLDivElement>;
|
7
|
+
/** Массив с данными для строки */
|
8
|
+
items: Item[];
|
9
|
+
/** Дополнительный класс для основного контейнера */
|
10
|
+
className?: string;
|
11
|
+
/** Текст для бейджа */
|
12
|
+
badge?: string;
|
13
|
+
/** Наличие нижней границы */
|
14
|
+
borderBottom?: boolean;
|
15
|
+
/** Единое значение для всей строки */
|
16
|
+
mergedValue?: string;
|
17
|
+
/** Иконка для строки */
|
18
|
+
icon?: React.ReactNode;
|
19
|
+
/** Растягивание компонента на всю доступную ширину */
|
20
|
+
fullWidth?: boolean;
|
21
|
+
/** Дата атрибуты для корневого элемента */
|
22
|
+
dataAttrs?: {
|
23
|
+
[key: string]: string;
|
24
|
+
};
|
25
|
+
/** Дополнительные классы для внутренних элементов */
|
26
|
+
classes?: {
|
27
|
+
title?: string;
|
28
|
+
openedDescription?: string;
|
29
|
+
toggleDescription?: string;
|
30
|
+
};
|
31
|
+
}
|
32
|
+
declare const Property: React.FC<IProperty>;
|
33
|
+
export default Property;
|
@@ -0,0 +1,130 @@
|
|
1
|
+
import "core-js/modules/es.symbol";
|
2
|
+
import "core-js/modules/es.symbol.description";
|
3
|
+
import "core-js/modules/es.array.map";
|
4
|
+
import _extends from "@babel/runtime/helpers/extends";
|
5
|
+
import React from 'react';
|
6
|
+
import PropTypes from 'prop-types';
|
7
|
+
import { Header, Grid, GridColumn } from '@megafon/ui-core';
|
8
|
+
import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
9
|
+
import "./Property.css";
|
10
|
+
import PropertyDescription from "./PropertyDescription";
|
11
|
+
var cn = cnCreate('mfui-beta-property');
|
12
|
+
|
13
|
+
var Property = function Property(_ref) {
|
14
|
+
var rootRef = _ref.rootRef,
|
15
|
+
items = _ref.items,
|
16
|
+
className = _ref.className,
|
17
|
+
_ref$badge = _ref.badge,
|
18
|
+
badge = _ref$badge === void 0 ? '' : _ref$badge,
|
19
|
+
icon = _ref.icon,
|
20
|
+
_ref$borderBottom = _ref.borderBottom,
|
21
|
+
borderBottom = _ref$borderBottom === void 0 ? false : _ref$borderBottom,
|
22
|
+
_ref$mergedValue = _ref.mergedValue,
|
23
|
+
mergedValue = _ref$mergedValue === void 0 ? '' : _ref$mergedValue,
|
24
|
+
_ref$fullWidth = _ref.fullWidth,
|
25
|
+
fullWidth = _ref$fullWidth === void 0 ? false : _ref$fullWidth,
|
26
|
+
_ref$classes = _ref.classes,
|
27
|
+
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
28
|
+
dataAttrs = _ref.dataAttrs;
|
29
|
+
var renderTitle = React.useCallback(function (title) {
|
30
|
+
return title && title.map(function (titleItem, i) {
|
31
|
+
return /*#__PURE__*/React.createElement(Header, {
|
32
|
+
as: 'h5',
|
33
|
+
key: i,
|
34
|
+
className: classes.title
|
35
|
+
}, icon && i === 0 && /*#__PURE__*/React.createElement("div", {
|
36
|
+
className: cn('icon')
|
37
|
+
}, icon), titleItem);
|
38
|
+
});
|
39
|
+
}, []);
|
40
|
+
var renderDescription = React.useCallback(function (description) {
|
41
|
+
return description && description.map(function (_ref2, j) {
|
42
|
+
var value = _ref2.value,
|
43
|
+
isCollapsible = _ref2.isCollapsible;
|
44
|
+
return /*#__PURE__*/React.createElement("div", {
|
45
|
+
className: cn('desc'),
|
46
|
+
key: j
|
47
|
+
}, /*#__PURE__*/React.createElement(PropertyDescription, {
|
48
|
+
value: value,
|
49
|
+
isCollapsible: isCollapsible,
|
50
|
+
classes: {
|
51
|
+
open: classes.openedDescription,
|
52
|
+
toggle: classes.toggleDescription
|
53
|
+
}
|
54
|
+
}));
|
55
|
+
});
|
56
|
+
}, []);
|
57
|
+
var getColumnConfig = React.useCallback(function () {
|
58
|
+
return fullWidth ? {
|
59
|
+
all: '12'
|
60
|
+
} : {
|
61
|
+
wide: '8',
|
62
|
+
desktop: '10',
|
63
|
+
tablet: '12',
|
64
|
+
mobile: '12'
|
65
|
+
};
|
66
|
+
}, [fullWidth]);
|
67
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
68
|
+
className: cn({
|
69
|
+
'border-bottom': borderBottom
|
70
|
+
}, [className]),
|
71
|
+
ref: rootRef
|
72
|
+
}, filterDataAttrs(dataAttrs)), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(GridColumn, getColumnConfig(), /*#__PURE__*/React.createElement("div", {
|
73
|
+
className: cn('wrapper')
|
74
|
+
}, badge && /*#__PURE__*/React.createElement("div", {
|
75
|
+
className: cn('badge-wrapper')
|
76
|
+
}, /*#__PURE__*/React.createElement("span", {
|
77
|
+
className: cn('badge')
|
78
|
+
}, badge)), /*#__PURE__*/React.createElement("div", {
|
79
|
+
className: cn('content')
|
80
|
+
}, /*#__PURE__*/React.createElement("div", {
|
81
|
+
className: cn('items-wrapper')
|
82
|
+
}, items.map(function (_ref3, i) {
|
83
|
+
var title = _ref3.title,
|
84
|
+
value = _ref3.value,
|
85
|
+
description = _ref3.description;
|
86
|
+
return /*#__PURE__*/React.createElement("div", {
|
87
|
+
className: cn('item'),
|
88
|
+
key: i
|
89
|
+
}, /*#__PURE__*/React.createElement("div", {
|
90
|
+
className: cn('inner')
|
91
|
+
}, renderTitle(title), renderDescription(description)), !mergedValue && /*#__PURE__*/React.createElement("div", {
|
92
|
+
className: cn('value-wrapper')
|
93
|
+
}, value && /*#__PURE__*/React.createElement("span", {
|
94
|
+
className: cn('value')
|
95
|
+
}, value)));
|
96
|
+
})), mergedValue && /*#__PURE__*/React.createElement("div", {
|
97
|
+
className: cn('value-wrapper', {
|
98
|
+
merged: true
|
99
|
+
})
|
100
|
+
}, /*#__PURE__*/React.createElement(Header, {
|
101
|
+
as: "h3"
|
102
|
+
}, mergedValue)))))));
|
103
|
+
};
|
104
|
+
|
105
|
+
Property.propTypes = {
|
106
|
+
rootRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
|
107
|
+
current: PropTypes.elementType
|
108
|
+
}), PropTypes.any])]),
|
109
|
+
items: PropTypes.arrayOf(PropTypes.shape({
|
110
|
+
title: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.node)]),
|
111
|
+
description: PropTypes.arrayOf(PropTypes.shape({
|
112
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.node)]).isRequired,
|
113
|
+
isCollapsible: PropTypes.bool
|
114
|
+
})),
|
115
|
+
value: PropTypes.string
|
116
|
+
}).isRequired).isRequired,
|
117
|
+
className: PropTypes.string,
|
118
|
+
badge: PropTypes.string,
|
119
|
+
borderBottom: PropTypes.bool,
|
120
|
+
mergedValue: PropTypes.string,
|
121
|
+
icon: PropTypes.node,
|
122
|
+
fullWidth: PropTypes.bool,
|
123
|
+
dataAttrs: PropTypes.objectOf(PropTypes.string.isRequired),
|
124
|
+
classes: PropTypes.shape({
|
125
|
+
title: PropTypes.string,
|
126
|
+
openedDescription: PropTypes.string,
|
127
|
+
toggleDescription: PropTypes.string
|
128
|
+
})
|
129
|
+
};
|
130
|
+
export default Property;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
h1,
|
2
|
+
h2,
|
3
|
+
h3,
|
4
|
+
h4,
|
5
|
+
h5 {
|
6
|
+
margin: 0;
|
7
|
+
}
|
8
|
+
.mfui-beta-property-description__collapse {
|
9
|
+
color: #34AAF2;
|
10
|
+
font-size: 12px;
|
11
|
+
-webkit-text-decoration: underline dashed #34AAF2;
|
12
|
+
text-decoration: underline dashed #34AAF2;
|
13
|
+
cursor: pointer;
|
14
|
+
}
|
15
|
+
.mfui-beta-property-description__content-inner {
|
16
|
+
margin-top: 8px;
|
17
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
2
|
+
import * as React from 'react';
|
3
|
+
import PropTypes from 'prop-types';
|
4
|
+
import { Collapse } from '@megafon/ui-core';
|
5
|
+
import { cnCreate } from '@megafon/ui-helpers';
|
6
|
+
import "./PropertyDescription.css";
|
7
|
+
var cn = cnCreate('mfui-beta-property-description');
|
8
|
+
|
9
|
+
var PropertyDescription = function PropertyDescription(_ref) {
|
10
|
+
var value = _ref.value,
|
11
|
+
_ref$isCollapsible = _ref.isCollapsible,
|
12
|
+
isCollapsible = _ref$isCollapsible === void 0 ? false : _ref$isCollapsible,
|
13
|
+
_ref$classes = _ref.classes,
|
14
|
+
classes = _ref$classes === void 0 ? {} : _ref$classes;
|
15
|
+
|
16
|
+
var _React$useState = React.useState(false),
|
17
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
18
|
+
isOpened = _React$useState2[0],
|
19
|
+
setIsOpened = _React$useState2[1];
|
20
|
+
|
21
|
+
var handleClickDesc = React.useCallback(function () {
|
22
|
+
return setIsOpened(!isOpened);
|
23
|
+
}, [isOpened]);
|
24
|
+
|
25
|
+
if (isCollapsible) {
|
26
|
+
return /*#__PURE__*/React.createElement("div", {
|
27
|
+
className: cn([isOpened ? classes.open : undefined])
|
28
|
+
}, /*#__PURE__*/React.createElement("span", {
|
29
|
+
className: cn('collapse', classes.toggle),
|
30
|
+
onClick: handleClickDesc
|
31
|
+
}, isOpened ? 'Скрыть' : 'Подробнее'), /*#__PURE__*/React.createElement(Collapse, {
|
32
|
+
className: cn('content'),
|
33
|
+
classNameContainer: cn('content-inner'),
|
34
|
+
isOpened: isOpened
|
35
|
+
}, value));
|
36
|
+
}
|
37
|
+
|
38
|
+
return /*#__PURE__*/React.createElement("div", {
|
39
|
+
className: cn()
|
40
|
+
}, value);
|
41
|
+
};
|
42
|
+
|
43
|
+
PropertyDescription.propTypes = {
|
44
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.node)]).isRequired,
|
45
|
+
isCollapsible: PropTypes.bool,
|
46
|
+
classes: PropTypes.shape({
|
47
|
+
open: PropTypes.string,
|
48
|
+
toggle: PropTypes.string
|
49
|
+
})
|
50
|
+
};
|
51
|
+
export default PropertyDescription;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
export declare type Desc = {
|
3
|
+
value: string | React.ReactNode[];
|
4
|
+
isCollapsible?: boolean;
|
5
|
+
classes?: {
|
6
|
+
toggle?: string;
|
7
|
+
open?: string;
|
8
|
+
};
|
9
|
+
};
|
10
|
+
export declare type Item = {
|
11
|
+
title?: string[] | React.ReactNode[];
|
12
|
+
description?: Desc[];
|
13
|
+
value?: string;
|
14
|
+
};
|
File without changes
|
@@ -0,0 +1,41 @@
|
|
1
|
+
h1,
|
2
|
+
h2,
|
3
|
+
h3,
|
4
|
+
h4,
|
5
|
+
h5 {
|
6
|
+
margin: 0;
|
7
|
+
}
|
8
|
+
.mfui-beta-steps {
|
9
|
+
width: 66%;
|
10
|
+
margin-right: auto;
|
11
|
+
margin-left: auto;
|
12
|
+
}
|
13
|
+
@media screen and (min-width: 1280px) {
|
14
|
+
.mfui-beta-steps {
|
15
|
+
width: 49%;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
@media screen and (max-width: 767px) {
|
19
|
+
.mfui-beta-steps {
|
20
|
+
width: 100%;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
.mfui-beta-steps__title {
|
24
|
+
margin-bottom: 40px;
|
25
|
+
}
|
26
|
+
.mfui-beta-steps__list {
|
27
|
+
margin: 0;
|
28
|
+
padding: 0;
|
29
|
+
list-style: none;
|
30
|
+
}
|
31
|
+
.mfui-beta-steps__item {
|
32
|
+
margin-bottom: 48px;
|
33
|
+
}
|
34
|
+
@media screen and (max-width: 767px) {
|
35
|
+
.mfui-beta-steps__item {
|
36
|
+
margin-bottom: 24px;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
.mfui-beta-steps__item:last-child {
|
40
|
+
margin-bottom: 0;
|
41
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import './Steps.less';
|
3
|
+
export interface ISteps {
|
4
|
+
/** Ссылка на корневой элемент */
|
5
|
+
rootRef?: React.Ref<HTMLDivElement>;
|
6
|
+
/** Заголовок */
|
7
|
+
title: string;
|
8
|
+
}
|
9
|
+
declare const Steps: React.FC<ISteps>;
|
10
|
+
export default Steps;
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import "core-js/modules/es.array.map";
|
2
|
+
import * as React from 'react';
|
3
|
+
import PropTypes from 'prop-types';
|
4
|
+
import { Header } from '@megafon/ui-core';
|
5
|
+
import { cnCreate } from '@megafon/ui-helpers';
|
6
|
+
import "./Steps.css";
|
7
|
+
var cn = cnCreate('mfui-beta-steps');
|
8
|
+
|
9
|
+
var Steps = function Steps(_ref) {
|
10
|
+
var title = _ref.title,
|
11
|
+
rootRef = _ref.rootRef,
|
12
|
+
children = _ref.children;
|
13
|
+
return /*#__PURE__*/React.createElement("div", {
|
14
|
+
className: cn(),
|
15
|
+
ref: rootRef
|
16
|
+
}, /*#__PURE__*/React.createElement(Header, {
|
17
|
+
as: "h2",
|
18
|
+
hAlign: "center",
|
19
|
+
className: cn('title')
|
20
|
+
}, title), /*#__PURE__*/React.createElement("ul", {
|
21
|
+
className: cn('list')
|
22
|
+
}, React.Children.map(children, function (child) {
|
23
|
+
return /*#__PURE__*/React.createElement("li", {
|
24
|
+
className: cn('item')
|
25
|
+
}, child);
|
26
|
+
})));
|
27
|
+
};
|
28
|
+
|
29
|
+
Steps.propTypes = {
|
30
|
+
rootRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
|
31
|
+
current: PropTypes.elementType
|
32
|
+
}), PropTypes.any])]),
|
33
|
+
title: PropTypes.string.isRequired
|
34
|
+
};
|
35
|
+
export default Steps;
|
@@ -0,0 +1,37 @@
|
|
1
|
+
h1,
|
2
|
+
h2,
|
3
|
+
h3,
|
4
|
+
h4,
|
5
|
+
h5 {
|
6
|
+
margin: 0;
|
7
|
+
}
|
8
|
+
.mfui-beta-steps-item {
|
9
|
+
display: -webkit-box;
|
10
|
+
display: -ms-flexbox;
|
11
|
+
display: flex;
|
12
|
+
}
|
13
|
+
.mfui-beta-steps-item__step-number {
|
14
|
+
font-size: 15px;
|
15
|
+
line-height: 24px;
|
16
|
+
font-weight: 500;
|
17
|
+
display: -webkit-box;
|
18
|
+
display: -ms-flexbox;
|
19
|
+
display: flex;
|
20
|
+
-ms-flex-negative: 0;
|
21
|
+
flex-shrink: 0;
|
22
|
+
-webkit-box-align: center;
|
23
|
+
-ms-flex-align: center;
|
24
|
+
align-items: center;
|
25
|
+
-webkit-box-pack: center;
|
26
|
+
-ms-flex-pack: center;
|
27
|
+
justify-content: center;
|
28
|
+
width: 40px;
|
29
|
+
height: 40px;
|
30
|
+
border-radius: 50%;
|
31
|
+
color: #FFFFFF;
|
32
|
+
background-color: #00B956;
|
33
|
+
}
|
34
|
+
.mfui-beta-steps-item__text-wrapper {
|
35
|
+
padding-top: 8px;
|
36
|
+
padding-left: 16px;
|
37
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
import { Paragraph } from '@megafon/ui-core';
|
4
|
+
import { cnCreate } from '@megafon/ui-helpers';
|
5
|
+
import "./StepsItem.css";
|
6
|
+
var cn = cnCreate('mfui-beta-steps-item');
|
7
|
+
|
8
|
+
var StepsItem = function StepsItem(_ref) {
|
9
|
+
var index = _ref.index,
|
10
|
+
text = _ref.text;
|
11
|
+
return /*#__PURE__*/React.createElement("div", {
|
12
|
+
className: cn()
|
13
|
+
}, /*#__PURE__*/React.createElement("span", {
|
14
|
+
className: cn('step-number')
|
15
|
+
}, index), /*#__PURE__*/React.createElement("div", {
|
16
|
+
className: cn('text-wrapper')
|
17
|
+
}, /*#__PURE__*/React.createElement(Paragraph, {
|
18
|
+
hasMargin: false
|
19
|
+
}, text)));
|
20
|
+
};
|
21
|
+
|
22
|
+
StepsItem.propTypes = {
|
23
|
+
index: PropTypes.number.isRequired,
|
24
|
+
text: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.node)]).isRequired
|
25
|
+
};
|
26
|
+
export default StepsItem;
|