@megafon/ui-shared 8.14.0 → 8.14.2
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/dist/es/components/AccordionBox/AccordionBox.css +1 -0
- package/dist/es/components/AccordionBox/AccordionBox.d.ts +49 -0
- package/dist/es/components/AccordionBox/AccordionBox.js +42 -0
- package/dist/es/components/AudioPlayer/AudioPlayer.d.ts +10 -0
- package/dist/es/components/AudioPlayer/AudioPlayer.js +107 -0
- package/dist/es/components/AudioPlayer/AudioProgress.d.ts +14 -0
- package/dist/es/components/AudioPlayer/AudioProgress.js +96 -0
- package/dist/es/components/AudioPlayer/AudioRange.d.ts +15 -0
- package/dist/es/components/AudioPlayer/AudioRange.js +31 -0
- package/dist/es/components/AudioPlayer/AudioVolume.d.ts +7 -0
- package/dist/es/components/AudioPlayer/AudioVolume.js +77 -0
- package/dist/es/components/AudioPlayer/hooks/useTrackDuration.d.ts +3 -0
- package/dist/es/components/AudioPlayer/hooks/useTrackDuration.js +26 -0
- package/dist/es/components/AudioPlayer/style/AudioPlayer.css +1 -0
- package/dist/es/components/AudioPlayer/style/AudioProgress.css +1 -0
- package/dist/es/components/AudioPlayer/style/AudioRange.css +1 -0
- package/dist/es/components/AudioPlayer/style/AudioVolume.css +1 -0
- package/dist/es/components/AudioPlayer/timerFormatUtil.d.ts +2 -0
- package/dist/es/components/AudioPlayer/timerFormatUtil.js +25 -0
- package/dist/es/components/BannerBox/BannerBox.d.ts +5 -0
- package/dist/es/components/BannerBox/BannerBox.js +22 -0
- package/dist/es/components/BenefitsIcons/BenefitsIcons.d.ts +30 -0
- package/dist/es/components/BenefitsIcons/BenefitsIcons.js +104 -0
- package/dist/es/components/BenefitsIcons/BenefitsIconsTile.d.ts +10 -0
- package/dist/es/components/BenefitsIcons/BenefitsIconsTile.js +51 -0
- package/dist/es/components/BenefitsIcons/helpers.d.ts +8 -0
- package/dist/es/components/BenefitsIcons/helpers.js +102 -0
- package/dist/es/components/BenefitsIcons/style/BenefitsIcons.css +1 -0
- package/dist/es/components/BenefitsIcons/style/BenefitsIconsTile.css +1 -0
- package/dist/es/components/BenefitsIcons/types.d.ts +54 -0
- package/dist/es/components/BenefitsIcons/types.js +17 -0
- package/dist/es/components/BenefitsPictures/BenefitsPictures.d.ts +27 -0
- package/dist/es/components/BenefitsPictures/BenefitsPictures.js +111 -0
- package/dist/es/components/BenefitsPictures/BenfitsPictures.css +1 -0
- package/dist/es/components/BenefitsPictures/helpers.d.ts +11 -0
- package/dist/es/components/BenefitsPictures/helpers.js +85 -0
- package/dist/es/components/BenefitsPictures/types.d.ts +24 -0
- package/dist/es/components/BenefitsPictures/types.js +1 -0
- package/dist/es/components/BlogBox/BlogBox.css +1 -0
- package/dist/es/components/BlogBox/BlogBox.d.ts +31 -0
- package/dist/es/components/BlogBox/BlogBox.js +72 -0
- package/dist/es/components/BlogBox/components/BlogBoxTile.css +1 -0
- package/dist/es/components/BlogBox/components/BlogBoxTile.d.ts +13 -0
- package/dist/es/components/BlogBox/components/BlogBoxTile.js +61 -0
- package/dist/es/components/BlogBox/types.d.ts +37 -0
- package/dist/es/components/BlogBox/types.js +1 -0
- package/dist/es/components/Breadcrumbs/Breadcrumbs.css +1 -0
- package/dist/es/components/Breadcrumbs/Breadcrumbs.d.ts +43 -0
- package/dist/es/components/Breadcrumbs/Breadcrumbs.js +69 -0
- package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.css +1 -0
- package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.d.ts +30 -0
- package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.js +62 -0
- package/dist/es/components/ButtonBanner/ButtonBanner.css +1 -0
- package/dist/es/components/ButtonBanner/ButtonBanner.d.ts +64 -0
- package/dist/es/components/ButtonBanner/ButtonBanner.js +96 -0
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.css +1 -0
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.d.ts +52 -0
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.js +65 -0
- package/dist/es/components/ButtonsBox/ButtonsBox.css +1 -0
- package/dist/es/components/ButtonsBox/ButtonsBox.d.ts +48 -0
- package/dist/es/components/ButtonsBox/ButtonsBox.js +47 -0
- package/dist/es/components/Card/Card.css +1 -0
- package/dist/es/components/Card/Card.d.ts +55 -0
- package/dist/es/components/Card/Card.js +229 -0
- package/dist/es/components/Card/types.d.ts +86 -0
- package/dist/es/components/Card/types.js +1 -0
- package/dist/es/components/CardsBox/CardsBox.d.ts +14 -0
- package/dist/es/components/CardsBox/CardsBox.js +26 -0
- package/dist/es/components/CardsBox/helpers.d.ts +10 -0
- package/dist/es/components/CardsBox/helpers.js +21 -0
- package/dist/es/components/CarouselBox/CarouselBox.d.ts +10 -0
- package/dist/es/components/CarouselBox/CarouselBox.js +45 -0
- package/dist/es/components/ChipsBox/ChipBox.d.ts +5 -0
- package/dist/es/components/ChipsBox/ChipBox.js +7 -0
- package/dist/es/components/ChipsBox/ChipsBox.css +1 -0
- package/dist/es/components/ChipsBox/ChipsBox.d.ts +16 -0
- package/dist/es/components/ChipsBox/ChipsBox.js +76 -0
- package/dist/es/components/Container/Container.css +1 -0
- package/dist/es/components/Container/Container.d.ts +41 -0
- package/dist/es/components/Container/Container.js +46 -0
- package/dist/es/components/DarkGradientCards/DarkGradientCards.css +1 -0
- package/dist/es/components/DarkGradientCards/DarkGradientCards.d.ts +33 -0
- package/dist/es/components/DarkGradientCards/DarkGradientCards.js +66 -0
- package/dist/es/components/DarkGradientCards/components/DarkGradientCard.css +1 -0
- package/dist/es/components/DarkGradientCards/components/DarkGradientCard.d.ts +16 -0
- package/dist/es/components/DarkGradientCards/components/DarkGradientCard.js +50 -0
- package/dist/es/components/DarkGradientCards/types.d.ts +20 -0
- package/dist/es/components/DarkGradientCards/types.js +1 -0
- package/dist/es/components/DownloadLinks/DownloadLink.css +1 -0
- package/dist/es/components/DownloadLinks/DownloadLink.d.ts +36 -0
- package/dist/es/components/DownloadLinks/DownloadLink.js +61 -0
- package/dist/es/components/DownloadLinks/DownloadLinks.css +1 -0
- package/dist/es/components/DownloadLinks/DownloadLinks.d.ts +20 -0
- package/dist/es/components/DownloadLinks/DownloadLinks.js +64 -0
- package/dist/es/components/FaqWrapper/FaqWrapper.d.ts +6 -0
- package/dist/es/components/FaqWrapper/FaqWrapper.js +9 -0
- package/dist/es/components/ImageBanner/ImageBanner.css +1 -0
- package/dist/es/components/ImageBanner/ImageBanner.d.ts +94 -0
- package/dist/es/components/ImageBanner/ImageBanner.js +164 -0
- package/dist/es/components/InfoCards/InfoCards.css +1 -0
- package/dist/es/components/InfoCards/InfoCards.d.ts +24 -0
- package/dist/es/components/InfoCards/InfoCards.js +44 -0
- package/dist/es/components/InfoCards/components/InfoCard/InfoCard.css +1 -0
- package/dist/es/components/InfoCards/components/InfoCard/InfoCard.d.ts +19 -0
- package/dist/es/components/InfoCards/components/InfoCard/InfoCard.js +85 -0
- package/dist/es/components/InfoCards/types.d.ts +31 -0
- package/dist/es/components/InfoCards/types.js +1 -0
- package/dist/es/components/Instructions/Instructions.css +1 -0
- package/dist/es/components/Instructions/Instructions.d.ts +120 -0
- package/dist/es/components/Instructions/Instructions.js +362 -0
- package/dist/es/components/Instructions/img/android-new.png +0 -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/iphone-new.png +0 -0
- package/dist/es/components/Instructions/img/iphone12.png +0 -0
- package/dist/es/components/Instructions/img/iphone15.png +0 -0
- package/dist/es/components/Instructions/img/laptop-new.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/NotificationBox/NotificationBox.css +1 -0
- package/dist/es/components/NotificationBox/NotificationBox.d.ts +15 -0
- package/dist/es/components/NotificationBox/NotificationBox.js +35 -0
- package/dist/es/components/NumbersBox/NumbersBox.css +1 -0
- package/dist/es/components/NumbersBox/NumbersBox.d.ts +35 -0
- package/dist/es/components/NumbersBox/NumbersBox.js +72 -0
- package/dist/es/components/NumbersBox/components/NumbersCard/NumbersCard.css +1 -0
- package/dist/es/components/NumbersBox/components/NumbersCard/NumbersCard.d.ts +16 -0
- package/dist/es/components/NumbersBox/components/NumbersCard/NumbersCard.js +28 -0
- package/dist/es/components/NumbersBox/types.d.ts +7 -0
- package/dist/es/components/NumbersBox/types.js +1 -0
- package/dist/es/components/PageTitle/PageTitle.css +1 -0
- package/dist/es/components/PageTitle/PageTitle.d.ts +36 -0
- package/dist/es/components/PageTitle/PageTitle.js +74 -0
- package/dist/es/components/Partners/Partners.css +1 -0
- package/dist/es/components/Partners/Partners.d.ts +37 -0
- package/dist/es/components/Partners/Partners.js +111 -0
- package/dist/es/components/PictureBox/PictureBox.css +1 -0
- package/dist/es/components/PictureBox/PictureBox.d.ts +48 -0
- package/dist/es/components/PictureBox/PictureBox.js +96 -0
- package/dist/es/components/PictureBox/img/mac-book-1x.png +0 -0
- package/dist/es/components/PictureBox/img/mac-book-2x.png +0 -0
- package/dist/es/components/PictureWithDescription/PictureWithDescription.css +1 -0
- package/dist/es/components/PictureWithDescription/PictureWithDescription.d.ts +32 -0
- package/dist/es/components/PictureWithDescription/PictureWithDescription.js +48 -0
- package/dist/es/components/PromoBanner/PromoBanner.d.ts +5 -0
- package/dist/es/components/PromoBanner/PromoBanner.js +26 -0
- package/dist/es/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.css +1 -0
- package/dist/es/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.d.ts +82 -0
- package/dist/es/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.js +142 -0
- package/dist/es/components/PromoCards/PromoCards.d.ts +33 -0
- package/dist/es/components/PromoCards/PromoCards.js +61 -0
- package/dist/es/components/PromoCards/components/PromoCard/PromoCard.css +1 -0
- package/dist/es/components/PromoCards/components/PromoCard/PromoCard.d.ts +25 -0
- package/dist/es/components/PromoCards/components/PromoCard/PromoCard.js +175 -0
- package/dist/es/components/PromoCards/types.d.ts +62 -0
- package/dist/es/components/PromoCards/types.js +1 -0
- package/dist/es/components/Property/Property.d.ts +5 -0
- package/dist/es/components/Property/Property.js +10 -0
- package/dist/es/components/ServiceCards/ServiceCards.css +1 -0
- package/dist/es/components/ServiceCards/ServiceCards.d.ts +28 -0
- package/dist/es/components/ServiceCards/ServiceCards.js +42 -0
- package/dist/es/components/ServiceCards/components/ServiceCard/ServiceCard.css +1 -0
- package/dist/es/components/ServiceCards/components/ServiceCard/ServiceCard.d.ts +19 -0
- package/dist/es/components/ServiceCards/components/ServiceCard/ServiceCard.js +81 -0
- package/dist/es/components/ServiceCards/types.d.ts +26 -0
- package/dist/es/components/ServiceCards/types.js +1 -0
- package/dist/es/components/SidePictureCards/SidePictureCards.d.ts +31 -0
- package/dist/es/components/SidePictureCards/SidePictureCards.js +69 -0
- package/dist/es/components/SidePictureCards/components/SidePictureCard.css +1 -0
- package/dist/es/components/SidePictureCards/components/SidePictureCard.d.ts +18 -0
- package/dist/es/components/SidePictureCards/components/SidePictureCard.js +94 -0
- package/dist/es/components/SidePictureCards/types.d.ts +48 -0
- package/dist/es/components/SidePictureCards/types.js +1 -0
- package/dist/es/components/Stepper/Stepper.css +1 -0
- package/dist/es/components/Stepper/Stepper.d.ts +52 -0
- package/dist/es/components/Stepper/Stepper.js +159 -0
- package/dist/es/components/Stepper/StepperItem.css +1 -0
- package/dist/es/components/Stepper/StepperItem.d.ts +57 -0
- package/dist/es/components/Stepper/StepperItem.js +99 -0
- package/dist/es/components/Stepper/img/separator-mobile.png +0 -0
- package/dist/es/components/Stepper/img/separator-vertical.png +0 -0
- package/dist/es/components/Stepper/img/separator.png +0 -0
- package/dist/es/components/Steps/Steps.css +1 -0
- package/dist/es/components/Steps/Steps.d.ts +21 -0
- package/dist/es/components/Steps/Steps.js +32 -0
- package/dist/es/components/Steps/StepsItem.css +1 -0
- package/dist/es/components/Steps/StepsItem.d.ts +10 -0
- package/dist/es/components/Steps/StepsItem.js +21 -0
- package/dist/es/components/StoreBanner/StoreBanner.css +1 -0
- package/dist/es/components/StoreBanner/StoreBanner.d.ts +101 -0
- package/dist/es/components/StoreBanner/StoreBanner.js +200 -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/iphone12.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 +1 -0
- package/dist/es/components/StoreButton/StoreButton.d.ts +36 -0
- package/dist/es/components/StoreButton/StoreButton.js +60 -0
- package/dist/es/components/StoreButton/img/app-store-large.png +0 -0
- package/dist/es/components/StoreButton/img/app-store.png +0 -0
- package/dist/es/components/StoreButton/img/galaxy-store-large.png +0 -0
- package/dist/es/components/StoreButton/img/galaxy-store.png +0 -0
- package/dist/es/components/StoreButton/img/google-play-large.png +0 -0
- package/dist/es/components/StoreButton/img/google-play.png +0 -0
- package/dist/es/components/StoreButton/img/huawei-store-large.png +0 -0
- package/dist/es/components/StoreButton/img/huawei-store.png +0 -0
- package/dist/es/components/StoreButton/img/mi-store-large.png +0 -0
- package/dist/es/components/StoreButton/img/mi-store.png +0 -0
- package/dist/es/components/StoreButton/img/ru-store-large.png +0 -0
- package/dist/es/components/StoreButton/img/ru-store.png +0 -0
- package/dist/es/components/StoreButton/img/v-appstore-large.png +0 -0
- package/dist/es/components/StoreButton/img/v-appstore.png +0 -0
- package/dist/es/components/Table/Table.css +1 -0
- package/dist/es/components/Table/Table.d.ts +18 -0
- package/dist/es/components/Table/Table.js +127 -0
- package/dist/es/components/Table/TableCell.d.ts +6 -0
- package/dist/es/components/Table/TableCell.js +6 -0
- package/dist/es/components/Table/TableRow.d.ts +11 -0
- package/dist/es/components/Table/TableRow.js +7 -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 +24 -0
- package/dist/es/components/TextBox/TextBox.css +1 -0
- package/dist/es/components/TextBox/TextBox.d.ts +17 -0
- package/dist/es/components/TextBox/TextBox.js +43 -0
- package/dist/es/components/TextBox/TextBoxPicture.css +1 -0
- package/dist/es/components/TextBox/TextBoxPicture.d.ts +21 -0
- package/dist/es/components/TextBox/TextBoxPicture.js +30 -0
- package/dist/es/components/TextWithIcon/TextWithIcon.css +1 -0
- package/dist/es/components/TextWithIcon/TextWithIcon.d.ts +21 -0
- package/dist/es/components/TextWithIcon/TextWithIcon.js +41 -0
- package/dist/es/components/TextWithIcon/TextWithIconItem.css +1 -0
- package/dist/es/components/TextWithIcon/TextWithIconItem.d.ts +25 -0
- package/dist/es/components/TextWithIcon/TextWithIconItem.js +40 -0
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.css +1 -0
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +22 -0
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.js +60 -0
- package/dist/es/components/VideoBanner/VideoBanner.css +1 -0
- package/dist/es/components/VideoBanner/VideoBanner.d.ts +112 -0
- package/dist/es/components/VideoBanner/VideoBanner.js +245 -0
- package/dist/es/components/VideoBlock/VideoBlock.css +1 -0
- package/dist/es/components/VideoBlock/VideoBlock.d.ts +63 -0
- package/dist/es/components/VideoBlock/VideoBlock.js +230 -0
- package/dist/es/constants/throttleTime.d.ts +4 -0
- package/dist/es/constants/throttleTime.js +3 -0
- package/dist/es/helpers/getColumnConfig.d.ts +6 -0
- package/dist/es/helpers/getColumnConfig.js +10 -0
- package/dist/es/helpers/setRelAttribute.d.ts +3 -0
- package/dist/es/helpers/setRelAttribute.js +9 -0
- package/dist/es/hooks/useResolutions.d.ts +8 -0
- package/dist/es/hooks/useResolutions.js +62 -0
- package/dist/es/index.d.ts +67 -0
- package/dist/es/index.js +67 -0
- package/dist/lib/components/AccordionBox/AccordionBox.css +1 -0
- package/dist/lib/components/AccordionBox/AccordionBox.d.ts +49 -0
- package/dist/lib/components/AccordionBox/AccordionBox.js +51 -0
- package/dist/lib/components/AudioPlayer/AudioPlayer.d.ts +10 -0
- package/dist/lib/components/AudioPlayer/AudioPlayer.js +116 -0
- package/dist/lib/components/AudioPlayer/AudioProgress.d.ts +14 -0
- package/dist/lib/components/AudioPlayer/AudioProgress.js +102 -0
- package/dist/lib/components/AudioPlayer/AudioRange.d.ts +15 -0
- package/dist/lib/components/AudioPlayer/AudioRange.js +37 -0
- package/dist/lib/components/AudioPlayer/AudioVolume.d.ts +7 -0
- package/dist/lib/components/AudioPlayer/AudioVolume.js +83 -0
- package/dist/lib/components/AudioPlayer/hooks/useTrackDuration.d.ts +3 -0
- package/dist/lib/components/AudioPlayer/hooks/useTrackDuration.js +33 -0
- package/dist/lib/components/AudioPlayer/style/AudioPlayer.css +1 -0
- package/dist/lib/components/AudioPlayer/style/AudioProgress.css +1 -0
- package/dist/lib/components/AudioPlayer/style/AudioRange.css +1 -0
- package/dist/lib/components/AudioPlayer/style/AudioVolume.css +1 -0
- package/dist/lib/components/AudioPlayer/timerFormatUtil.d.ts +2 -0
- package/dist/lib/components/AudioPlayer/timerFormatUtil.js +31 -0
- package/dist/lib/components/BannerBox/BannerBox.d.ts +5 -0
- package/dist/lib/components/BannerBox/BannerBox.js +31 -0
- package/dist/lib/components/BenefitsIcons/BenefitsIcons.d.ts +30 -0
- package/dist/lib/components/BenefitsIcons/BenefitsIcons.js +113 -0
- package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.d.ts +10 -0
- package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.js +60 -0
- package/dist/lib/components/BenefitsIcons/helpers.d.ts +8 -0
- package/dist/lib/components/BenefitsIcons/helpers.js +108 -0
- package/dist/lib/components/BenefitsIcons/style/BenefitsIcons.css +1 -0
- package/dist/lib/components/BenefitsIcons/style/BenefitsIconsTile.css +1 -0
- package/dist/lib/components/BenefitsIcons/types.d.ts +54 -0
- package/dist/lib/components/BenefitsIcons/types.js +23 -0
- package/dist/lib/components/BenefitsPictures/BenefitsPictures.d.ts +27 -0
- package/dist/lib/components/BenefitsPictures/BenefitsPictures.js +120 -0
- package/dist/lib/components/BenefitsPictures/BenfitsPictures.css +1 -0
- package/dist/lib/components/BenefitsPictures/helpers.d.ts +11 -0
- package/dist/lib/components/BenefitsPictures/helpers.js +91 -0
- package/dist/lib/components/BenefitsPictures/types.d.ts +24 -0
- package/dist/lib/components/BenefitsPictures/types.js +5 -0
- package/dist/lib/components/BlogBox/BlogBox.css +1 -0
- package/dist/lib/components/BlogBox/BlogBox.d.ts +31 -0
- package/dist/lib/components/BlogBox/BlogBox.js +81 -0
- package/dist/lib/components/BlogBox/components/BlogBoxTile.css +1 -0
- package/dist/lib/components/BlogBox/components/BlogBoxTile.d.ts +13 -0
- package/dist/lib/components/BlogBox/components/BlogBoxTile.js +70 -0
- package/dist/lib/components/BlogBox/types.d.ts +37 -0
- package/dist/lib/components/BlogBox/types.js +5 -0
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.css +1 -0
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.d.ts +43 -0
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.js +78 -0
- package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.css +1 -0
- package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.d.ts +30 -0
- package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.js +71 -0
- package/dist/lib/components/ButtonBanner/ButtonBanner.css +1 -0
- package/dist/lib/components/ButtonBanner/ButtonBanner.d.ts +64 -0
- package/dist/lib/components/ButtonBanner/ButtonBanner.js +105 -0
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.css +1 -0
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.d.ts +52 -0
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.js +74 -0
- package/dist/lib/components/ButtonsBox/ButtonsBox.css +1 -0
- package/dist/lib/components/ButtonsBox/ButtonsBox.d.ts +48 -0
- package/dist/lib/components/ButtonsBox/ButtonsBox.js +56 -0
- package/dist/lib/components/Card/Card.css +1 -0
- package/dist/lib/components/Card/Card.d.ts +55 -0
- package/dist/lib/components/Card/Card.js +238 -0
- package/dist/lib/components/Card/types.d.ts +86 -0
- package/dist/lib/components/Card/types.js +5 -0
- package/dist/lib/components/CardsBox/CardsBox.d.ts +14 -0
- package/dist/lib/components/CardsBox/CardsBox.js +36 -0
- package/dist/lib/components/CardsBox/helpers.d.ts +10 -0
- package/dist/lib/components/CardsBox/helpers.js +28 -0
- package/dist/lib/components/CarouselBox/CarouselBox.d.ts +10 -0
- package/dist/lib/components/CarouselBox/CarouselBox.js +55 -0
- package/dist/lib/components/ChipsBox/ChipBox.d.ts +5 -0
- package/dist/lib/components/ChipsBox/ChipBox.js +17 -0
- package/dist/lib/components/ChipsBox/ChipsBox.css +1 -0
- package/dist/lib/components/ChipsBox/ChipsBox.d.ts +16 -0
- package/dist/lib/components/ChipsBox/ChipsBox.js +85 -0
- package/dist/lib/components/Container/Container.css +1 -0
- package/dist/lib/components/Container/Container.d.ts +41 -0
- package/dist/lib/components/Container/Container.js +54 -0
- package/dist/lib/components/DarkGradientCards/DarkGradientCards.css +1 -0
- package/dist/lib/components/DarkGradientCards/DarkGradientCards.d.ts +33 -0
- package/dist/lib/components/DarkGradientCards/DarkGradientCards.js +75 -0
- package/dist/lib/components/DarkGradientCards/components/DarkGradientCard.css +1 -0
- package/dist/lib/components/DarkGradientCards/components/DarkGradientCard.d.ts +16 -0
- package/dist/lib/components/DarkGradientCards/components/DarkGradientCard.js +59 -0
- package/dist/lib/components/DarkGradientCards/types.d.ts +20 -0
- package/dist/lib/components/DarkGradientCards/types.js +5 -0
- package/dist/lib/components/DownloadLinks/DownloadLink.css +1 -0
- package/dist/lib/components/DownloadLinks/DownloadLink.d.ts +36 -0
- package/dist/lib/components/DownloadLinks/DownloadLink.js +70 -0
- package/dist/lib/components/DownloadLinks/DownloadLinks.css +1 -0
- package/dist/lib/components/DownloadLinks/DownloadLinks.d.ts +20 -0
- package/dist/lib/components/DownloadLinks/DownloadLinks.js +73 -0
- package/dist/lib/components/FaqWrapper/FaqWrapper.d.ts +6 -0
- package/dist/lib/components/FaqWrapper/FaqWrapper.js +18 -0
- package/dist/lib/components/ImageBanner/ImageBanner.css +1 -0
- package/dist/lib/components/ImageBanner/ImageBanner.d.ts +94 -0
- package/dist/lib/components/ImageBanner/ImageBanner.js +173 -0
- package/dist/lib/components/InfoCards/InfoCards.css +1 -0
- package/dist/lib/components/InfoCards/InfoCards.d.ts +24 -0
- package/dist/lib/components/InfoCards/InfoCards.js +53 -0
- package/dist/lib/components/InfoCards/components/InfoCard/InfoCard.css +1 -0
- package/dist/lib/components/InfoCards/components/InfoCard/InfoCard.d.ts +19 -0
- package/dist/lib/components/InfoCards/components/InfoCard/InfoCard.js +94 -0
- package/dist/lib/components/InfoCards/types.d.ts +31 -0
- package/dist/lib/components/InfoCards/types.js +5 -0
- package/dist/lib/components/Instructions/Instructions.css +1 -0
- package/dist/lib/components/Instructions/Instructions.d.ts +120 -0
- package/dist/lib/components/Instructions/Instructions.js +371 -0
- package/dist/lib/components/Instructions/img/android-new.png +0 -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/iphone-new.png +0 -0
- package/dist/lib/components/Instructions/img/iphone12.png +0 -0
- package/dist/lib/components/Instructions/img/iphone15.png +0 -0
- package/dist/lib/components/Instructions/img/laptop-new.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/NotificationBox/NotificationBox.css +1 -0
- package/dist/lib/components/NotificationBox/NotificationBox.d.ts +15 -0
- package/dist/lib/components/NotificationBox/NotificationBox.js +44 -0
- package/dist/lib/components/NumbersBox/NumbersBox.css +1 -0
- package/dist/lib/components/NumbersBox/NumbersBox.d.ts +35 -0
- package/dist/lib/components/NumbersBox/NumbersBox.js +81 -0
- package/dist/lib/components/NumbersBox/components/NumbersCard/NumbersCard.css +1 -0
- package/dist/lib/components/NumbersBox/components/NumbersCard/NumbersCard.d.ts +16 -0
- package/dist/lib/components/NumbersBox/components/NumbersCard/NumbersCard.js +37 -0
- package/dist/lib/components/NumbersBox/types.d.ts +7 -0
- package/dist/lib/components/NumbersBox/types.js +5 -0
- package/dist/lib/components/PageTitle/PageTitle.css +1 -0
- package/dist/lib/components/PageTitle/PageTitle.d.ts +36 -0
- package/dist/lib/components/PageTitle/PageTitle.js +83 -0
- package/dist/lib/components/Partners/Partners.css +1 -0
- package/dist/lib/components/Partners/Partners.d.ts +37 -0
- package/dist/lib/components/Partners/Partners.js +120 -0
- package/dist/lib/components/PictureBox/PictureBox.css +1 -0
- package/dist/lib/components/PictureBox/PictureBox.d.ts +48 -0
- package/dist/lib/components/PictureBox/PictureBox.js +105 -0
- package/dist/lib/components/PictureBox/img/mac-book-1x.png +0 -0
- package/dist/lib/components/PictureBox/img/mac-book-2x.png +0 -0
- package/dist/lib/components/PictureWithDescription/PictureWithDescription.css +1 -0
- package/dist/lib/components/PictureWithDescription/PictureWithDescription.d.ts +32 -0
- package/dist/lib/components/PictureWithDescription/PictureWithDescription.js +56 -0
- package/dist/lib/components/PromoBanner/PromoBanner.d.ts +5 -0
- package/dist/lib/components/PromoBanner/PromoBanner.js +36 -0
- package/dist/lib/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.css +1 -0
- package/dist/lib/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.d.ts +82 -0
- package/dist/lib/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.js +151 -0
- package/dist/lib/components/PromoCards/PromoCards.d.ts +33 -0
- package/dist/lib/components/PromoCards/PromoCards.js +71 -0
- package/dist/lib/components/PromoCards/components/PromoCard/PromoCard.css +1 -0
- package/dist/lib/components/PromoCards/components/PromoCard/PromoCard.d.ts +25 -0
- package/dist/lib/components/PromoCards/components/PromoCard/PromoCard.js +184 -0
- package/dist/lib/components/PromoCards/types.d.ts +62 -0
- package/dist/lib/components/PromoCards/types.js +5 -0
- package/dist/lib/components/Property/Property.d.ts +5 -0
- package/dist/lib/components/Property/Property.js +19 -0
- package/dist/lib/components/ServiceCards/ServiceCards.css +1 -0
- package/dist/lib/components/ServiceCards/ServiceCards.d.ts +28 -0
- package/dist/lib/components/ServiceCards/ServiceCards.js +51 -0
- package/dist/lib/components/ServiceCards/components/ServiceCard/ServiceCard.css +1 -0
- package/dist/lib/components/ServiceCards/components/ServiceCard/ServiceCard.d.ts +19 -0
- package/dist/lib/components/ServiceCards/components/ServiceCard/ServiceCard.js +90 -0
- package/dist/lib/components/ServiceCards/types.d.ts +26 -0
- package/dist/lib/components/ServiceCards/types.js +5 -0
- package/dist/lib/components/SidePictureCards/SidePictureCards.d.ts +31 -0
- package/dist/lib/components/SidePictureCards/SidePictureCards.js +79 -0
- package/dist/lib/components/SidePictureCards/components/SidePictureCard.css +1 -0
- package/dist/lib/components/SidePictureCards/components/SidePictureCard.d.ts +18 -0
- package/dist/lib/components/SidePictureCards/components/SidePictureCard.js +100 -0
- package/dist/lib/components/SidePictureCards/types.d.ts +48 -0
- package/dist/lib/components/SidePictureCards/types.js +5 -0
- package/dist/lib/components/Stepper/Stepper.css +1 -0
- package/dist/lib/components/Stepper/Stepper.d.ts +52 -0
- package/dist/lib/components/Stepper/Stepper.js +168 -0
- package/dist/lib/components/Stepper/StepperItem.css +1 -0
- package/dist/lib/components/Stepper/StepperItem.d.ts +57 -0
- package/dist/lib/components/Stepper/StepperItem.js +108 -0
- package/dist/lib/components/Stepper/img/separator-mobile.png +0 -0
- package/dist/lib/components/Stepper/img/separator-vertical.png +0 -0
- package/dist/lib/components/Stepper/img/separator.png +0 -0
- package/dist/lib/components/Steps/Steps.css +1 -0
- package/dist/lib/components/Steps/Steps.d.ts +21 -0
- package/dist/lib/components/Steps/Steps.js +40 -0
- package/dist/lib/components/Steps/StepsItem.css +1 -0
- package/dist/lib/components/Steps/StepsItem.d.ts +10 -0
- package/dist/lib/components/Steps/StepsItem.js +29 -0
- package/dist/lib/components/StoreBanner/StoreBanner.css +1 -0
- package/dist/lib/components/StoreBanner/StoreBanner.d.ts +101 -0
- package/dist/lib/components/StoreBanner/StoreBanner.js +209 -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/iphone12.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 +1 -0
- package/dist/lib/components/StoreButton/StoreButton.d.ts +36 -0
- package/dist/lib/components/StoreButton/StoreButton.js +69 -0
- package/dist/lib/components/StoreButton/img/app-store-large.png +0 -0
- package/dist/lib/components/StoreButton/img/app-store.png +0 -0
- package/dist/lib/components/StoreButton/img/galaxy-store-large.png +0 -0
- package/dist/lib/components/StoreButton/img/galaxy-store.png +0 -0
- package/dist/lib/components/StoreButton/img/google-play-large.png +0 -0
- package/dist/lib/components/StoreButton/img/google-play.png +0 -0
- package/dist/lib/components/StoreButton/img/huawei-store-large.png +0 -0
- package/dist/lib/components/StoreButton/img/huawei-store.png +0 -0
- package/dist/lib/components/StoreButton/img/mi-store-large.png +0 -0
- package/dist/lib/components/StoreButton/img/mi-store.png +0 -0
- package/dist/lib/components/StoreButton/img/ru-store-large.png +0 -0
- package/dist/lib/components/StoreButton/img/ru-store.png +0 -0
- package/dist/lib/components/StoreButton/img/v-appstore-large.png +0 -0
- package/dist/lib/components/StoreButton/img/v-appstore.png +0 -0
- package/dist/lib/components/Table/Table.css +1 -0
- package/dist/lib/components/Table/Table.d.ts +18 -0
- package/dist/lib/components/Table/Table.js +136 -0
- package/dist/lib/components/Table/TableCell.d.ts +6 -0
- package/dist/lib/components/Table/TableCell.js +15 -0
- package/dist/lib/components/Table/TableRow.d.ts +11 -0
- package/dist/lib/components/Table/TableRow.js +17 -0
- package/dist/lib/components/TabsBox/TabBox.d.ts +2 -0
- package/dist/lib/components/TabsBox/TabBox.js +8 -0
- package/dist/lib/components/TabsBox/TabsBox.d.ts +8 -0
- package/dist/lib/components/TabsBox/TabsBox.js +33 -0
- package/dist/lib/components/TextBox/TextBox.css +1 -0
- package/dist/lib/components/TextBox/TextBox.d.ts +17 -0
- package/dist/lib/components/TextBox/TextBox.js +51 -0
- package/dist/lib/components/TextBox/TextBoxPicture.css +1 -0
- package/dist/lib/components/TextBox/TextBoxPicture.d.ts +21 -0
- package/dist/lib/components/TextBox/TextBoxPicture.js +38 -0
- package/dist/lib/components/TextWithIcon/TextWithIcon.css +1 -0
- package/dist/lib/components/TextWithIcon/TextWithIcon.d.ts +21 -0
- package/dist/lib/components/TextWithIcon/TextWithIcon.js +50 -0
- package/dist/lib/components/TextWithIcon/TextWithIconItem.css +1 -0
- package/dist/lib/components/TextWithIcon/TextWithIconItem.d.ts +25 -0
- package/dist/lib/components/TextWithIcon/TextWithIconItem.js +49 -0
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.css +1 -0
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +22 -0
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.js +69 -0
- package/dist/lib/components/VideoBanner/VideoBanner.css +1 -0
- package/dist/lib/components/VideoBanner/VideoBanner.d.ts +112 -0
- package/dist/lib/components/VideoBanner/VideoBanner.js +253 -0
- package/dist/lib/components/VideoBlock/VideoBlock.css +1 -0
- package/dist/lib/components/VideoBlock/VideoBlock.d.ts +63 -0
- package/dist/lib/components/VideoBlock/VideoBlock.js +238 -0
- package/dist/lib/constants/throttleTime.d.ts +4 -0
- package/dist/lib/constants/throttleTime.js +9 -0
- package/dist/lib/helpers/getColumnConfig.d.ts +6 -0
- package/dist/lib/helpers/getColumnConfig.js +16 -0
- package/dist/lib/helpers/setRelAttribute.d.ts +3 -0
- package/dist/lib/helpers/setRelAttribute.js +15 -0
- package/dist/lib/hooks/useResolutions.d.ts +8 -0
- package/dist/lib/hooks/useResolutions.js +69 -0
- package/dist/lib/index.d.ts +67 -0
- package/dist/lib/index.js +475 -0
- package/package.json +5 -5
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import "core-js/modules/es.symbol.js";
|
|
3
|
+
import "core-js/modules/es.symbol.description.js";
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { Header, Grid, GridColumn } from '@megafon/ui-core';
|
|
6
|
+
import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
|
7
|
+
import Breadcrumbs from "../Breadcrumbs/Breadcrumbs";
|
|
8
|
+
import "./PageTitle.css";
|
|
9
|
+
var testIdPrefix = 'PageTitle';
|
|
10
|
+
var cn = cnCreate('mfui-page-title');
|
|
11
|
+
var PageTitle = function PageTitle(_ref) {
|
|
12
|
+
var dataAttrs = _ref.dataAttrs,
|
|
13
|
+
title = _ref.title,
|
|
14
|
+
description = _ref.description,
|
|
15
|
+
breadcrumbs = _ref.breadcrumbs,
|
|
16
|
+
badge = _ref.badge,
|
|
17
|
+
_ref$isFullWidth = _ref.isFullWidth,
|
|
18
|
+
isFullWidth = _ref$isFullWidth === void 0 ? true : _ref$isFullWidth,
|
|
19
|
+
_ref$hasBreadcrumbsMi = _ref.hasBreadcrumbsMicrodata,
|
|
20
|
+
hasBreadcrumbsMicrodata = _ref$hasBreadcrumbsMi === void 0 ? false : _ref$hasBreadcrumbsMi,
|
|
21
|
+
_ref$marginTop = _ref.marginTop,
|
|
22
|
+
marginTop = _ref$marginTop === void 0 ? 'default' : _ref$marginTop,
|
|
23
|
+
className = _ref.className,
|
|
24
|
+
_ref$classes = _ref.classes,
|
|
25
|
+
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
|
26
|
+
rootRef = _ref.rootRef;
|
|
27
|
+
var isBreadcrumbs = !!(breadcrumbs === null || breadcrumbs === void 0 ? void 0 : breadcrumbs.length);
|
|
28
|
+
var titleContent = /*#__PURE__*/React.createElement(React.Fragment, null, badge && /*#__PURE__*/React.createElement("div", {
|
|
29
|
+
className: cn('badge', {
|
|
30
|
+
'under-breadcrumbs': isBreadcrumbs
|
|
31
|
+
})
|
|
32
|
+
}, badge), /*#__PURE__*/React.createElement(Header, {
|
|
33
|
+
className: cn('title', {
|
|
34
|
+
single: !isBreadcrumbs && !badge,
|
|
35
|
+
'margin-top': marginTop,
|
|
36
|
+
'under-breadcrumbs': isBreadcrumbs && !badge
|
|
37
|
+
}, [classes.title]),
|
|
38
|
+
as: "h1"
|
|
39
|
+
}, title), description && /*#__PURE__*/React.createElement("div", {
|
|
40
|
+
className: cn('description')
|
|
41
|
+
}, description));
|
|
42
|
+
var renderContent = function renderContent() {
|
|
43
|
+
if (isFullWidth) {
|
|
44
|
+
return titleContent;
|
|
45
|
+
}
|
|
46
|
+
return /*#__PURE__*/React.createElement(Grid, {
|
|
47
|
+
dataAttrs: {
|
|
48
|
+
root: {
|
|
49
|
+
'data-testid': "".concat(testIdPrefix, "-grid")
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}, /*#__PURE__*/React.createElement(GridColumn, {
|
|
53
|
+
wide: "8",
|
|
54
|
+
desktop: "10",
|
|
55
|
+
tablet: "12",
|
|
56
|
+
mobile: "12"
|
|
57
|
+
}, titleContent));
|
|
58
|
+
};
|
|
59
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
|
60
|
+
className: cn([className]),
|
|
61
|
+
ref: rootRef
|
|
62
|
+
}), (breadcrumbs === null || breadcrumbs === void 0 ? void 0 : breadcrumbs.length) && /*#__PURE__*/React.createElement(Breadcrumbs, {
|
|
63
|
+
disabledOnMobile: true,
|
|
64
|
+
hasMarginTop: true,
|
|
65
|
+
hasMicrodata: hasBreadcrumbsMicrodata,
|
|
66
|
+
items: breadcrumbs,
|
|
67
|
+
dataAttrs: {
|
|
68
|
+
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.breadcrumbs,
|
|
69
|
+
link: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.breadcrumbsLink
|
|
70
|
+
},
|
|
71
|
+
className: cn('breadcrumbs', [classes.breadcrumbs])
|
|
72
|
+
}), renderContent());
|
|
73
|
+
};
|
|
74
|
+
export default PageTitle;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-partners__tile:not(:last-child){margin-bottom:20px}@media screen and (max-width:767px){.mfui-partners__tile:not(:last-child){margin-bottom:16px}}.mfui-partners__tile-inner{-webkit-box-sizing:border-box;box-sizing:border-box;height:132px;padding:28px 48px}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-partners__tile-inner{height:104px;padding:22px 37px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-partners__tile-inner{height:77px;padding:10px}}@media screen and (max-width:767px){.mfui-partners__tile-inner{height:60px;padding:8px}}.mfui-partners__img-wrapper{height:100%;position:relative;width:100%}.mfui-partners__tile-img{left:50%;max-height:100%;max-width:100%;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './Partners.scss';
|
|
3
|
+
export type ItemType = {
|
|
4
|
+
src: string;
|
|
5
|
+
href?: string;
|
|
6
|
+
alt: string;
|
|
7
|
+
rel?: string;
|
|
8
|
+
};
|
|
9
|
+
export interface IPartnersProps {
|
|
10
|
+
/** Дополнительные data атрибуты к внутренним элементам */
|
|
11
|
+
dataAttrs?: {
|
|
12
|
+
root?: Record<string, string>;
|
|
13
|
+
item?: Record<string, string>;
|
|
14
|
+
};
|
|
15
|
+
/** Ссылка на корневой элемент */
|
|
16
|
+
rootRef?: React.Ref<HTMLDivElement>;
|
|
17
|
+
/** Дополнительные классы для корневого и внутренних элементов */
|
|
18
|
+
classes?: {
|
|
19
|
+
root?: string;
|
|
20
|
+
itemClass?: string;
|
|
21
|
+
slide?: string;
|
|
22
|
+
};
|
|
23
|
+
/** Дополнительный класс корневого элемента */
|
|
24
|
+
className?: string;
|
|
25
|
+
/** Список логотипов */
|
|
26
|
+
items: ItemType[];
|
|
27
|
+
/** Радиус границы логотипов */
|
|
28
|
+
radius?: 'default' | 'rounded';
|
|
29
|
+
/** Обработчик клика по стрелке вперед (должен быть обернут в useCallback) */
|
|
30
|
+
onNextClick?: (index: number) => void;
|
|
31
|
+
/** Обработчик клика по стрелке назад (должен быть обернут в useCallback) */
|
|
32
|
+
onPrevClick?: (index: number) => void;
|
|
33
|
+
/** Обработчик смены слайда (должен быть обернут в useCallback) */
|
|
34
|
+
onChange?: (currentIndex: number, previousIndex: number, slidesPerView?: number | 'auto') => void;
|
|
35
|
+
}
|
|
36
|
+
declare const Partners: React.FC<IPartnersProps>;
|
|
37
|
+
export default Partners;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
+
import "core-js/modules/es.array.map.js";
|
|
4
|
+
import "core-js/modules/es.array.slice.js";
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { Grid, GridColumn, Tile, Carousel } from '@megafon/ui-core';
|
|
7
|
+
import { breakpoints, cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
|
8
|
+
import "./Partners.css";
|
|
9
|
+
var MAX_GRID_ITEMS_LENGTH = 8;
|
|
10
|
+
var slidesSettings = _defineProperty(_defineProperty(_defineProperty({}, breakpoints.MOBILE_SMALL_START, {
|
|
11
|
+
slidesPerView: 2,
|
|
12
|
+
spaceBetween: 16
|
|
13
|
+
}), breakpoints.MOBILE_MIDDLE_START, {
|
|
14
|
+
slidesPerView: 3,
|
|
15
|
+
spaceBetween: 20
|
|
16
|
+
}), breakpoints.DESKTOP_SMALL_START, {
|
|
17
|
+
slidesPerView: 4,
|
|
18
|
+
spaceBetween: 20
|
|
19
|
+
});
|
|
20
|
+
var testIdPrefix = 'Partners';
|
|
21
|
+
var cn = cnCreate('mfui-partners');
|
|
22
|
+
var Partners = function Partners(_ref) {
|
|
23
|
+
var rootRef = _ref.rootRef,
|
|
24
|
+
_ref$classes = _ref.classes,
|
|
25
|
+
_ref$classes2 = _ref$classes === void 0 ? {} : _ref$classes,
|
|
26
|
+
root = _ref$classes2.root,
|
|
27
|
+
itemClass = _ref$classes2.itemClass,
|
|
28
|
+
slide = _ref$classes2.slide,
|
|
29
|
+
dataAttrs = _ref.dataAttrs,
|
|
30
|
+
className = _ref.className,
|
|
31
|
+
items = _ref.items,
|
|
32
|
+
_ref$radius = _ref.radius,
|
|
33
|
+
radius = _ref$radius === void 0 ? 'default' : _ref$radius,
|
|
34
|
+
onChange = _ref.onChange,
|
|
35
|
+
onNextClick = _ref.onNextClick,
|
|
36
|
+
onPrevClick = _ref.onPrevClick;
|
|
37
|
+
var renderItem = React.useCallback(function (item) {
|
|
38
|
+
var index = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
39
|
+
if (!item) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
var src = item.src,
|
|
43
|
+
href = item.href,
|
|
44
|
+
alt = item.alt,
|
|
45
|
+
rel = item.rel;
|
|
46
|
+
return /*#__PURE__*/React.createElement(Tile, {
|
|
47
|
+
href: href,
|
|
48
|
+
rel: rel,
|
|
49
|
+
shadowLevel: "default",
|
|
50
|
+
radius: radius,
|
|
51
|
+
isInteractive: !!href,
|
|
52
|
+
className: cn('tile'),
|
|
53
|
+
dataAttrs: {
|
|
54
|
+
root: _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.item, index + 1))
|
|
55
|
+
}
|
|
56
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
57
|
+
className: cn('tile-inner', [itemClass]),
|
|
58
|
+
"data-testid": "".concat(testIdPrefix, "-tile-inner")
|
|
59
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
60
|
+
className: cn('img-wrapper')
|
|
61
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
62
|
+
src: src,
|
|
63
|
+
alt: alt,
|
|
64
|
+
className: cn('tile-img')
|
|
65
|
+
}))));
|
|
66
|
+
}, [radius, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.item, itemClass]);
|
|
67
|
+
var renderGrid = React.useCallback(function () {
|
|
68
|
+
return /*#__PURE__*/React.createElement(Grid, {
|
|
69
|
+
guttersLeft: "medium",
|
|
70
|
+
guttersBottom: "medium"
|
|
71
|
+
}, items.map(function (item, i) {
|
|
72
|
+
return /*#__PURE__*/React.createElement(GridColumn, {
|
|
73
|
+
key: i + item.src,
|
|
74
|
+
all: "3",
|
|
75
|
+
mobile: "6"
|
|
76
|
+
}, renderItem(item, i));
|
|
77
|
+
}));
|
|
78
|
+
}, [items, renderItem]);
|
|
79
|
+
var renderCarousel = React.useCallback(function () {
|
|
80
|
+
var halfItemsLength = Math.ceil(items.length / 2);
|
|
81
|
+
var topRow = items.slice(0, halfItemsLength);
|
|
82
|
+
var bottomRow = items.slice(halfItemsLength);
|
|
83
|
+
return /*#__PURE__*/React.createElement(Carousel, {
|
|
84
|
+
classes: {
|
|
85
|
+
slide: cn('slide', [slide])
|
|
86
|
+
},
|
|
87
|
+
slidesSettings: slidesSettings,
|
|
88
|
+
onChange: onChange,
|
|
89
|
+
onNextClick: onNextClick,
|
|
90
|
+
onPrevClick: onPrevClick,
|
|
91
|
+
dataAttrs: {
|
|
92
|
+
prev: {
|
|
93
|
+
'data-testid': "".concat(testIdPrefix, "-prev")
|
|
94
|
+
},
|
|
95
|
+
next: {
|
|
96
|
+
'data-testid': "".concat(testIdPrefix, "-next")
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}, topRow.map(function (item, i) {
|
|
100
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
101
|
+
key: i + item.src,
|
|
102
|
+
className: cn('slide')
|
|
103
|
+
}, renderItem(item, i), renderItem(bottomRow[i], i));
|
|
104
|
+
}));
|
|
105
|
+
}, [items, slide, onChange, onNextClick, onPrevClick, renderItem]);
|
|
106
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
107
|
+
ref: rootRef,
|
|
108
|
+
className: cn([root, className])
|
|
109
|
+
}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root)), items.length > MAX_GRID_ITEMS_LENGTH ? renderCarousel() : renderGrid());
|
|
110
|
+
};
|
|
111
|
+
export default Partners;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-picture-box_mask_none .mfui-picture-box__image{border-radius:24px;vertical-align:top;width:100%}@media screen and (min-width:768px){.mfui-picture-box_mask_none .mfui-picture-box__image{height:414px;-o-object-fit:cover;object-fit:cover}}@media screen and (min-width:1280px){.mfui-picture-box_mask_none .mfui-picture-box__image{height:520px}}.mfui-picture-box_mask_mac-book .mfui-picture-box__image{border-top-left-radius:1.4% 2.2988505747%;border-top-right-radius:1.4% 2.2988505747%;height:87%;left:0;margin:0 auto;-o-object-fit:cover;object-fit:cover;position:absolute;right:0;top:2%;width:82%}.mfui-picture-box__content{-ms-flex-item-align:center;align-self:center;margin-top:32px}@media screen and (min-width:1024px){.mfui-picture-box__content{margin-top:0}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-picture-box_align_left .mfui-picture-box__content{margin-left:12px}}@media screen and (min-width:1280px){.mfui-picture-box_align_left .mfui-picture-box__content{margin-left:44px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-picture-box_align_right .mfui-picture-box__content{margin-right:12px}}@media screen and (min-width:1280px){.mfui-picture-box_align_right .mfui-picture-box__content{margin-right:44px}}.mfui-picture-box__button-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:20px;margin-top:32px}.mfui-picture-box_mask_mac-book .mfui-picture-box__mask{background-image:url(img/mac-book-1x.png);background-repeat:no-repeat;background-size:100% auto;padding-bottom:60.9%;position:relative}@media screen and (-webkit-min-device-pixel-ratio:2),screen and (min-device-pixel-ratio:2),screen and (min-resolution:192dpi),screen and (min-resolution:2dppx){.mfui-picture-box_mask_mac-book .mfui-picture-box__mask{background-image:url(img/mac-book-2x.png)}}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './PictureBox.scss';
|
|
3
|
+
type ImageType = {
|
|
4
|
+
src: string;
|
|
5
|
+
src2x?: string;
|
|
6
|
+
align?: 'right' | 'left';
|
|
7
|
+
alt?: string;
|
|
8
|
+
};
|
|
9
|
+
type ButtonType = {
|
|
10
|
+
title?: string;
|
|
11
|
+
href?: string;
|
|
12
|
+
target?: '_self' | '_blank';
|
|
13
|
+
rel?: string;
|
|
14
|
+
onClick?: (e: React.SyntheticEvent<EventTarget>) => void;
|
|
15
|
+
};
|
|
16
|
+
export interface IPictureBoxProps {
|
|
17
|
+
/** Изображение */
|
|
18
|
+
image: ImageType;
|
|
19
|
+
/** Кнопка */
|
|
20
|
+
button?: ButtonType;
|
|
21
|
+
/** Дополнительная кнопка */
|
|
22
|
+
extraButton?: ButtonType;
|
|
23
|
+
/** Маска */
|
|
24
|
+
pictureMask?: 'mac-book' | 'none';
|
|
25
|
+
/** Дочерние элементы */
|
|
26
|
+
children: React.ReactNode;
|
|
27
|
+
/** Ссылка на корневой элемент */
|
|
28
|
+
rootRef?: React.Ref<HTMLDivElement>;
|
|
29
|
+
/** Дополнительный класс для корневого элемента */
|
|
30
|
+
className?: string;
|
|
31
|
+
/** Дополнительный класс корневого элемента */
|
|
32
|
+
classes?: {
|
|
33
|
+
root?: string;
|
|
34
|
+
button?: string;
|
|
35
|
+
extraButton?: string;
|
|
36
|
+
};
|
|
37
|
+
/** Дополнительные data атрибуты к внутренним элементам */
|
|
38
|
+
dataAttrs?: {
|
|
39
|
+
root?: Record<string, string>;
|
|
40
|
+
button?: Record<string, string>;
|
|
41
|
+
extraButton?: Record<string, string>;
|
|
42
|
+
image?: Record<string, string>;
|
|
43
|
+
mask?: Record<string, string>;
|
|
44
|
+
buttonsWrapper?: Record<string, string>;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
declare const PictureBox: React.FC<IPictureBoxProps>;
|
|
48
|
+
export default PictureBox;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import "core-js/modules/es.array.concat.js";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { Button, Grid, GridColumn } from '@megafon/ui-core';
|
|
5
|
+
import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
|
6
|
+
import "./PictureBox.css";
|
|
7
|
+
var cn = cnCreate('mfui-picture-box');
|
|
8
|
+
var PictureBox = function PictureBox(_ref) {
|
|
9
|
+
var image = _ref.image,
|
|
10
|
+
button = _ref.button,
|
|
11
|
+
extraButton = _ref.extraButton,
|
|
12
|
+
_ref$pictureMask = _ref.pictureMask,
|
|
13
|
+
pictureMask = _ref$pictureMask === void 0 ? 'none' : _ref$pictureMask,
|
|
14
|
+
dataAttrs = _ref.dataAttrs,
|
|
15
|
+
className = _ref.className,
|
|
16
|
+
classes = _ref.classes,
|
|
17
|
+
rootRef = _ref.rootRef,
|
|
18
|
+
children = _ref.children;
|
|
19
|
+
var imageSrc = image.src,
|
|
20
|
+
imageSrc2x = image.src2x,
|
|
21
|
+
_image$align = image.align,
|
|
22
|
+
imageAlign = _image$align === void 0 ? 'left' : _image$align,
|
|
23
|
+
_image$alt = image.alt,
|
|
24
|
+
imageAlt = _image$alt === void 0 ? '' : _image$alt;
|
|
25
|
+
var imageOrder = imageAlign === 'left' ? '0' : '1';
|
|
26
|
+
var renderImg = function renderImg() {
|
|
27
|
+
var srcSet = imageSrc2x ? "".concat(imageSrc, ", ").concat(imageSrc2x, " 2x") : undefined;
|
|
28
|
+
var img = /*#__PURE__*/React.createElement("img", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.image), {
|
|
29
|
+
className: cn('image'),
|
|
30
|
+
srcSet: srcSet,
|
|
31
|
+
src: imageSrc,
|
|
32
|
+
alt: imageAlt
|
|
33
|
+
}));
|
|
34
|
+
if (pictureMask !== 'none') {
|
|
35
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.mask), {
|
|
36
|
+
className: cn('mask')
|
|
37
|
+
}), img);
|
|
38
|
+
}
|
|
39
|
+
return img;
|
|
40
|
+
};
|
|
41
|
+
var renderButtons = function renderButtons() {
|
|
42
|
+
if (!button && !extraButton) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.buttonsWrapper), {
|
|
46
|
+
className: cn('button-wrapper')
|
|
47
|
+
}), !!button && /*#__PURE__*/React.createElement(Button, {
|
|
48
|
+
href: button.href,
|
|
49
|
+
target: button.target,
|
|
50
|
+
rel: button.rel,
|
|
51
|
+
dataAttrs: {
|
|
52
|
+
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.button
|
|
53
|
+
},
|
|
54
|
+
classes: {
|
|
55
|
+
root: classes === null || classes === void 0 ? void 0 : classes.button
|
|
56
|
+
},
|
|
57
|
+
onClick: button.onClick
|
|
58
|
+
}, button.title), !!extraButton && /*#__PURE__*/React.createElement(Button, {
|
|
59
|
+
href: extraButton.href,
|
|
60
|
+
target: extraButton.target,
|
|
61
|
+
rel: extraButton.rel,
|
|
62
|
+
type: "outline",
|
|
63
|
+
dataAttrs: {
|
|
64
|
+
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.extraButton
|
|
65
|
+
},
|
|
66
|
+
classes: {
|
|
67
|
+
root: classes === null || classes === void 0 ? void 0 : classes.extraButton
|
|
68
|
+
},
|
|
69
|
+
onClick: extraButton.onClick
|
|
70
|
+
}, extraButton.title));
|
|
71
|
+
};
|
|
72
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
73
|
+
className: cn({
|
|
74
|
+
align: imageAlign,
|
|
75
|
+
mask: pictureMask
|
|
76
|
+
}, [classes === null || classes === void 0 ? void 0 : classes.root, className])
|
|
77
|
+
}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
|
78
|
+
ref: rootRef
|
|
79
|
+
}), /*#__PURE__*/React.createElement(Grid, {
|
|
80
|
+
guttersLeft: "medium"
|
|
81
|
+
}, /*#__PURE__*/React.createElement(GridColumn, {
|
|
82
|
+
all: "7",
|
|
83
|
+
tablet: "12",
|
|
84
|
+
mobile: "12",
|
|
85
|
+
orderWide: imageOrder,
|
|
86
|
+
orderDesktop: imageOrder
|
|
87
|
+
}, renderImg()), /*#__PURE__*/React.createElement(GridColumn, {
|
|
88
|
+
all: "5",
|
|
89
|
+
tablet: "12",
|
|
90
|
+
mobile: "12",
|
|
91
|
+
flex: true
|
|
92
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
93
|
+
className: cn('content')
|
|
94
|
+
}, children, renderButtons()))));
|
|
95
|
+
};
|
|
96
|
+
export default PictureBox;
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}@media screen and (min-width:1024px){.mfui-picture-with-description{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}}.mfui-picture-with-description__title{margin-bottom:24px}.mfui-picture-with-description__picture{-ms-flex-item-align:start;align-self:flex-start;overflow:hidden;text-align:center}@media screen and (max-width:1023px){.mfui-picture-with-description__picture{margin:0 auto 32px}}@media screen and (min-width:1024px){.mfui-picture-with-description__picture{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2;width:50%}.mfui-picture-with-description__picture_align_left{-webkit-box-ordinal-group:1;-ms-flex-order:0;margin-right:20px;order:0}}.mfui-picture-with-description__img{height:100%;max-width:550px;width:100%}.mfui-picture-with-description__content>:first-child{margin-top:0!important}.mfui-picture-with-description__content>:last-child{margin-bottom:0!important}@media screen and (min-width:1024px){.mfui-picture-with-description__articles{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1;width:50%}.mfui-picture-with-description__articles_text-top-align{-ms-flex-item-align:start;align-self:flex-start}.mfui-picture-with-description__articles_align_right{margin-right:20px}}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './PictureWithDescription.scss';
|
|
3
|
+
export declare const pictureAlignTypes: {
|
|
4
|
+
readonly LEFT: "left";
|
|
5
|
+
readonly RIGHT: "right";
|
|
6
|
+
};
|
|
7
|
+
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
|
+
/** Значение тега alt для изображения */
|
|
25
|
+
pictureAlt?: string;
|
|
26
|
+
/** Выравнивание текста по верхнему краю */
|
|
27
|
+
isTextTopAlign?: boolean;
|
|
28
|
+
/** Дочерний элемент компонента */
|
|
29
|
+
children?: React.ReactNode;
|
|
30
|
+
}
|
|
31
|
+
declare const PictureWithDescription: React.FC<IPictureWithDescriptionProps>;
|
|
32
|
+
export default PictureWithDescription;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Header } from '@megafon/ui-core';
|
|
3
|
+
import { cnCreate } from '@megafon/ui-helpers';
|
|
4
|
+
import "./PictureWithDescription.css";
|
|
5
|
+
export var pictureAlignTypes = {
|
|
6
|
+
LEFT: 'left',
|
|
7
|
+
RIGHT: 'right'
|
|
8
|
+
};
|
|
9
|
+
var testIdPrefix = 'PictureWithDescription';
|
|
10
|
+
var cn = cnCreate('mfui-picture-with-description');
|
|
11
|
+
var PictureWithDescription = function PictureWithDescription(_ref) {
|
|
12
|
+
var rootRef = _ref.rootRef,
|
|
13
|
+
className = _ref.className,
|
|
14
|
+
_ref$classes = _ref.classes,
|
|
15
|
+
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
|
16
|
+
title = _ref.title,
|
|
17
|
+
pictureUrl = _ref.pictureUrl,
|
|
18
|
+
_ref$pictureAlign = _ref.pictureAlign,
|
|
19
|
+
pictureAlign = _ref$pictureAlign === void 0 ? 'left' : _ref$pictureAlign,
|
|
20
|
+
pictureAlt = _ref.pictureAlt,
|
|
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
|
+
"data-testid": "".concat(testIdPrefix, "-picture")
|
|
31
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
32
|
+
className: cn('img'),
|
|
33
|
+
src: pictureUrl,
|
|
34
|
+
alt: pictureAlt
|
|
35
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
36
|
+
className: cn('articles', {
|
|
37
|
+
align: pictureAlign,
|
|
38
|
+
'text-top-align': isTextTopAlign
|
|
39
|
+
}),
|
|
40
|
+
"data-testid": "".concat(testIdPrefix, "-articles")
|
|
41
|
+
}, !!title && /*#__PURE__*/React.createElement(Header, {
|
|
42
|
+
className: cn('title', [classes.title]),
|
|
43
|
+
as: "h2"
|
|
44
|
+
}, title), /*#__PURE__*/React.createElement("div", {
|
|
45
|
+
className: cn('content')
|
|
46
|
+
}, children)));
|
|
47
|
+
};
|
|
48
|
+
export default PictureWithDescription;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Banner } from '@megafon/ui-core';
|
|
3
|
+
export type PromoBannerPropsType = Omit<React.ComponentProps<typeof Banner>, 'autoHeight' | 'arrowTheme'>;
|
|
4
|
+
declare const PromoBanner: React.FC<PromoBannerPropsType>;
|
|
5
|
+
export default PromoBanner;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import "core-js/modules/es.symbol.js";
|
|
3
|
+
import "core-js/modules/es.array.index-of.js";
|
|
4
|
+
var __rest = this && this.__rest || function (s, e) {
|
|
5
|
+
var t = {};
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
7
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import * as React from 'react';
|
|
13
|
+
import { Banner } from '@megafon/ui-core';
|
|
14
|
+
import { cnCreate } from '@megafon/ui-helpers';
|
|
15
|
+
var cn = cnCreate('mfui-promo-banner');
|
|
16
|
+
var PromoBanner = function PromoBanner(_a) {
|
|
17
|
+
var children = _a.children,
|
|
18
|
+
props = __rest(_a, ["children"]);
|
|
19
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
20
|
+
className: cn()
|
|
21
|
+
}, /*#__PURE__*/React.createElement(Banner, _extends({}, props, {
|
|
22
|
+
autoHeight: true,
|
|
23
|
+
arrowTheme: "white"
|
|
24
|
+
}), children));
|
|
25
|
+
};
|
|
26
|
+
export default PromoBanner;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-promo-banner-slide{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;-webkit-box-orient:vertical;-webkit-box-direction:normal;border-radius:24px;-ms-flex-direction:column;flex-direction:column;min-height:100%;overflow:hidden}.mfui-promo-banner-slide_background_dark-violet{background-image:-webkit-gradient(linear,right top,left top,from(#ada6ba),color-stop(108%,#f6f2f9));background-image:linear-gradient(270deg,#ada6ba,#f6f2f9 108%)}.mfui-promo-banner-slide_background_light-violet{background:#f6f2f9}.mfui-promo-banner-slide_background_green-20{background:var(--brandGreen20)}.mfui-promo-banner-slide_background_purple-20{background:var(--brandPurple20)}.mfui-promo-banner-slide_background_night-20{background:var(--night20)}.mfui-promo-banner-slide_background_sky-20{background:var(--sky20)}.mfui-promo-banner-slide_background_flamingo-20{background:var(--flamingo20)}.mfui-promo-banner-slide_background_berry-20{background:var(--berry20)}.mfui-promo-banner-slide_background_gradient-purple-1{background:linear-gradient(92deg,#731982 12.66%,#aa5aff 78.46%)}.mfui-promo-banner-slide_background_gradient-purple-2{background:linear-gradient(93deg,#731982 33.39%,#e64de6 83.5%)}.mfui-promo-banner-slide_background_gradient-purple-3{background:linear-gradient(92deg,#731982 6.47%,#00d2ff 100.69%)}.mfui-promo-banner-slide_background_gradient-purple-4{background:linear-gradient(92deg,#731982 -.82%,#1b61ac 90.9%)}.mfui-promo-banner-slide__container{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;z-index:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;padding:32px 20px 0}@media screen and (min-width:768px) and (max-width:1023px){.mfui-promo-banner-slide__container{padding:38px 40px}}@media screen and (min-width:768px){.mfui-promo-banner-slide__container{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;min-height:308px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-promo-banner-slide__container{padding:34px 64px}}@media screen and (min-width:1280px){.mfui-promo-banner-slide__container{padding:42px 80px}}.mfui-promo-banner-slide__content{color:var(--stcBlack)}@media screen and (min-width:768px) and (max-width:1023px){.mfui-promo-banner-slide__content{max-width:350px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-promo-banner-slide__content{max-width:450px}}@media screen and (min-width:1280px){.mfui-promo-banner-slide__content{max-width:645px}}.mfui-promo-banner-slide__title{margin-bottom:12px}@media screen and (min-width:1280px){.mfui-promo-banner-slide__description{margin-right:82px}}.mfui-promo-banner-slide__buttons-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;z-index:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:16px;margin-top:24px}@media screen and (min-width:768px){.mfui-promo-banner-slide__buttons-wrapper{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;margin-top:32px}}.mfui-promo-banner-slide__picture{display:block;position:relative;z-index:0}@media screen and (max-width:767px){.mfui-promo-banner-slide__picture{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-top:12px}}@media screen and (min-width:768px){.mfui-promo-banner-slide__picture{height:100%;position:absolute;top:0}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-promo-banner-slide__picture{left:404px;width:523px}}@media screen and (min-width:1024px){.mfui-promo-banner-slide__picture{width:696px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-promo-banner-slide__picture{left:534px}}@media screen and (min-width:1280px){.mfui-promo-banner-slide__picture{left:744px}}.mfui-promo-banner-slide__image{height:100%;-o-object-fit:cover;object-fit:cover;vertical-align:top;width:100%}@media screen and (max-width:767px){.mfui-promo-banner-slide__image{max-height:180px;min-height:150px;width:auto}}@media screen and (min-width:768px){.mfui-promo-banner-slide__image{-o-object-fit:contain;object-fit:contain}}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './PromoBannerSlide.scss';
|
|
3
|
+
export declare const BackgroundColor: {
|
|
4
|
+
readonly DARK_VIOLET: "dark-violet";
|
|
5
|
+
readonly LIGHT_VIOLET: "light-violet";
|
|
6
|
+
readonly GREEN_20: "green-20";
|
|
7
|
+
readonly PURPLE_20: "purple-20";
|
|
8
|
+
readonly NIGHT_20: "night-20";
|
|
9
|
+
readonly FLAMINGO_20: "flamingo-20";
|
|
10
|
+
readonly BERRY_20: "berry-20";
|
|
11
|
+
readonly GRADIENT_PURPLE_1: "gradient-purple-1";
|
|
12
|
+
readonly GRADIENT_PURPLE_2: "gradient-purple-2";
|
|
13
|
+
readonly GRADIENT_PURPLE_3: "gradient-purple-3";
|
|
14
|
+
readonly GRADIENT_PURPLE_4: "gradient-purple-4";
|
|
15
|
+
};
|
|
16
|
+
export type BackgroundColorType = (typeof BackgroundColor)[keyof typeof BackgroundColor];
|
|
17
|
+
type ButtonType = {
|
|
18
|
+
/** Заголовок */
|
|
19
|
+
title?: string;
|
|
20
|
+
/** Иконка */
|
|
21
|
+
icon?: JSX.Element;
|
|
22
|
+
/** Ссылка */
|
|
23
|
+
href?: string;
|
|
24
|
+
/** Target - свойство тега <a> */
|
|
25
|
+
target?: '_self' | '_blank';
|
|
26
|
+
/** Rel - атрибут тега <a> */
|
|
27
|
+
rel?: string;
|
|
28
|
+
/** Обработчик клика по кнопке */
|
|
29
|
+
onClick?: (e: React.SyntheticEvent<EventTarget>) => void;
|
|
30
|
+
};
|
|
31
|
+
type ImageType = {
|
|
32
|
+
/** Изображение на разрешении экрана 1024+ */
|
|
33
|
+
desktopSrc: string;
|
|
34
|
+
/** Изображение 2x на разрешении экрана 1024+ */
|
|
35
|
+
desktopSrc2x?: string;
|
|
36
|
+
/** Изображение на разрешении экрана 768-1023 */
|
|
37
|
+
tabletSrc: string;
|
|
38
|
+
/** Изображение 2x на разрешении экрана 768-1023 */
|
|
39
|
+
tabletSrc2x?: string;
|
|
40
|
+
/** Изображение на разрешении экрана 0-767 */
|
|
41
|
+
mobileSrc: string;
|
|
42
|
+
/** Изображение 2x на разрешении экрана 0-767 */
|
|
43
|
+
mobileSrc2x?: string;
|
|
44
|
+
/** Значение тега alt для изображения */
|
|
45
|
+
alt?: string;
|
|
46
|
+
};
|
|
47
|
+
export interface IPromoBannerSlideProps {
|
|
48
|
+
/** Дополнительный класс корневого элемента */
|
|
49
|
+
className?: string;
|
|
50
|
+
/** Заголовок */
|
|
51
|
+
title: string | React.ReactNode | React.ReactNode[];
|
|
52
|
+
/** Текст-описание */
|
|
53
|
+
description: string | React.ReactNode | React.ReactNode[];
|
|
54
|
+
/** Кнопка */
|
|
55
|
+
button?: ButtonType;
|
|
56
|
+
/** Дополнительная кнопка */
|
|
57
|
+
extraButton?: ButtonType;
|
|
58
|
+
/** Изображение */
|
|
59
|
+
image: ImageType;
|
|
60
|
+
/** Фон */
|
|
61
|
+
background?: BackgroundColorType;
|
|
62
|
+
/** Дополнительные классы для корневого и внутренних элементов */
|
|
63
|
+
classes?: {
|
|
64
|
+
root?: string;
|
|
65
|
+
button?: string;
|
|
66
|
+
extraButton?: string;
|
|
67
|
+
};
|
|
68
|
+
/** Дополнительные data атрибуты к внутренним элементам */
|
|
69
|
+
dataAttrs?: {
|
|
70
|
+
root?: Record<string, string>;
|
|
71
|
+
image?: Record<string, string>;
|
|
72
|
+
desktopImageSource?: Record<string, string>;
|
|
73
|
+
tabletImageSource?: Record<string, string>;
|
|
74
|
+
buttonsWrapper?: Record<string, string>;
|
|
75
|
+
button?: Record<string, string>;
|
|
76
|
+
extraButton?: Record<string, string>;
|
|
77
|
+
};
|
|
78
|
+
/** Ссылка на корневой элемент */
|
|
79
|
+
rootRef?: React.Ref<HTMLDivElement>;
|
|
80
|
+
}
|
|
81
|
+
declare const PromoBannerSlide: React.FC<IPromoBannerSlideProps>;
|
|
82
|
+
export default PromoBannerSlide;
|