@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,36 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './DownloadLink.scss';
|
|
3
|
+
export interface IDownloadLink {
|
|
4
|
+
/** Дополнительные data атрибуты к внутренним элементам */
|
|
5
|
+
dataAttrs?: {
|
|
6
|
+
root?: Record<string, string>;
|
|
7
|
+
link?: Record<string, string>;
|
|
8
|
+
};
|
|
9
|
+
/** Ссылка на корневой элемент */
|
|
10
|
+
rootRef?: React.Ref<HTMLDivElement>;
|
|
11
|
+
/** Адресы ссылки */
|
|
12
|
+
href: string;
|
|
13
|
+
/** Текст ссылки */
|
|
14
|
+
text: string;
|
|
15
|
+
/** Расширение файла */
|
|
16
|
+
extension: string;
|
|
17
|
+
/** Размер файла */
|
|
18
|
+
fileSize: string;
|
|
19
|
+
/** Дополнительный класс для компонента */
|
|
20
|
+
className?: string;
|
|
21
|
+
/** Дополнительные классы для корневого и внутренних элементов */
|
|
22
|
+
classes?: {
|
|
23
|
+
root?: string;
|
|
24
|
+
link?: string;
|
|
25
|
+
};
|
|
26
|
+
/** Обработчик клика по ссылке */
|
|
27
|
+
onClick?: (e: React.SyntheticEvent<EventTarget>) => void;
|
|
28
|
+
/** Флаг для управления атрибутом download в теге <a> */
|
|
29
|
+
disableDownload?: boolean;
|
|
30
|
+
/** target - аргумент тега <a> */
|
|
31
|
+
target?: '_self' | '_blank' | '_parent' | '_top';
|
|
32
|
+
/** rel - аргумент тега <a> */
|
|
33
|
+
rel?: string;
|
|
34
|
+
}
|
|
35
|
+
declare const DownloadLink: React.FC<IDownloadLink>;
|
|
36
|
+
export default DownloadLink;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
require("core-js/modules/es.array.concat.js");
|
|
10
|
+
require("core-js/modules/es.string.link.js");
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _uiCore = require("@megafon/ui-core");
|
|
13
|
+
var _uiHelpers = require("@megafon/ui-helpers");
|
|
14
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
15
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
17
|
+
var DownloadIcon = function DownloadIcon(props) {
|
|
18
|
+
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
19
|
+
viewBox: "0 0 40 40"
|
|
20
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
21
|
+
d: "M21 6v14l2.68-4 1.65 1-4.44 6.74h-1.77L14.68 17l1.65-1L19 20V6zM8 20H6a14 14 0 0028 0h-2a12 12 0 01-24 0z"
|
|
22
|
+
}));
|
|
23
|
+
};
|
|
24
|
+
var cn = (0, _uiHelpers.cnCreate)('mfui-download-link');
|
|
25
|
+
var DownloadLink = function DownloadLink(_ref) {
|
|
26
|
+
var href = _ref.href,
|
|
27
|
+
text = _ref.text,
|
|
28
|
+
extension = _ref.extension,
|
|
29
|
+
fileSize = _ref.fileSize,
|
|
30
|
+
onClick = _ref.onClick,
|
|
31
|
+
className = _ref.className,
|
|
32
|
+
_ref$classes = _ref.classes,
|
|
33
|
+
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
|
34
|
+
rootRef = _ref.rootRef,
|
|
35
|
+
dataAttrs = _ref.dataAttrs,
|
|
36
|
+
disableDownload = _ref.disableDownload,
|
|
37
|
+
target = _ref.target,
|
|
38
|
+
rel = _ref.rel;
|
|
39
|
+
var setRelAttribute = function setRelAttribute() {
|
|
40
|
+
if (rel) {
|
|
41
|
+
return rel;
|
|
42
|
+
}
|
|
43
|
+
if (target && target !== '_self') {
|
|
44
|
+
return 'noreferrer noopener';
|
|
45
|
+
}
|
|
46
|
+
return undefined;
|
|
47
|
+
};
|
|
48
|
+
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
|
49
|
+
className: cn([className, classes.root]),
|
|
50
|
+
ref: rootRef
|
|
51
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
52
|
+
className: cn('icon')
|
|
53
|
+
}, /*#__PURE__*/React.createElement(DownloadIcon, {
|
|
54
|
+
className: cn('icon-svg')
|
|
55
|
+
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(_uiCore.TextLink, (0, _extends2["default"])({}, !disableDownload && {
|
|
56
|
+
download: true
|
|
57
|
+
}, {
|
|
58
|
+
href: href,
|
|
59
|
+
onClick: onClick,
|
|
60
|
+
dataAttrs: {
|
|
61
|
+
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.link
|
|
62
|
+
},
|
|
63
|
+
className: cn('link', [classes.link]),
|
|
64
|
+
target: target,
|
|
65
|
+
rel: setRelAttribute()
|
|
66
|
+
}), text), /*#__PURE__*/React.createElement("p", {
|
|
67
|
+
className: cn('info')
|
|
68
|
+
}, "".concat(extension).concat(extension && fileSize ? ', ' : '').concat(fileSize))));
|
|
69
|
+
};
|
|
70
|
+
var _default = exports["default"] = DownloadLink;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}@media screen and (min-width:1024px){.mfui-download-links__column:nth-child(n+4){margin-top:24px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-download-links__column:nth-child(n+3){margin-top:24px}}@media screen and (max-width:767px){.mfui-download-links__column:not(:first-child){margin-top:24px}}@media screen and (min-width:768px){.mfui-download-links_count_2 .mfui-download-links__column:nth-child(n+2),.mfui-download-links_count_3 .mfui-download-links__column:nth-child(n+3),.mfui-download-links_count_4 .mfui-download-links__column:nth-child(n+3){margin-top:24px}}.mfui-download-links__item:not(:first-child){margin-top:24px}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { GridColumn } from '@megafon/ui-core';
|
|
3
|
+
import './DownloadLinks.scss';
|
|
4
|
+
import { IDownloadLink } from './DownloadLink';
|
|
5
|
+
type GridColumnType = React.ComponentProps<typeof GridColumn>;
|
|
6
|
+
type ColumnConfig = {
|
|
7
|
+
wide?: GridColumnType['wide'];
|
|
8
|
+
desktop?: GridColumnType['desktop'];
|
|
9
|
+
tablet?: GridColumnType['tablet'];
|
|
10
|
+
mobile?: GridColumnType['mobile'];
|
|
11
|
+
all?: GridColumnType['all'];
|
|
12
|
+
};
|
|
13
|
+
export declare const getColumnConfig: (itemsCount: number) => ColumnConfig;
|
|
14
|
+
interface IDownloadLinks {
|
|
15
|
+
/** Выстраивать ссылки в одну колонку вне зависимости от количества */
|
|
16
|
+
inOneColumn?: boolean;
|
|
17
|
+
children: Array<React.ReactElement<IDownloadLink>> | React.ReactElement<IDownloadLink>;
|
|
18
|
+
}
|
|
19
|
+
declare const DownloadLinks: React.FC<IDownloadLinks>;
|
|
20
|
+
export default DownloadLinks;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.getColumnConfig = exports["default"] = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
require("core-js/modules/es.array.map.js");
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _uiCore = require("@megafon/ui-core");
|
|
12
|
+
var _uiHelpers = require("@megafon/ui-helpers");
|
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
16
|
+
var getColumnConfig = exports.getColumnConfig = function getColumnConfig(itemsCount) {
|
|
17
|
+
switch (true) {
|
|
18
|
+
case itemsCount <= 2:
|
|
19
|
+
{
|
|
20
|
+
return {
|
|
21
|
+
all: '7',
|
|
22
|
+
mobile: '12'
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
case itemsCount <= 4:
|
|
26
|
+
{
|
|
27
|
+
return {
|
|
28
|
+
all: '6',
|
|
29
|
+
mobile: '12'
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
default:
|
|
33
|
+
{
|
|
34
|
+
return {
|
|
35
|
+
wide: '4',
|
|
36
|
+
desktop: '4',
|
|
37
|
+
tablet: '6',
|
|
38
|
+
mobile: '12'
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
var testIdPrefix = 'DownloadLinks';
|
|
44
|
+
var cn = (0, _uiHelpers.cnCreate)('mfui-download-links');
|
|
45
|
+
var DownloadLinks = function DownloadLinks(_ref) {
|
|
46
|
+
var _ref$inOneColumn = _ref.inOneColumn,
|
|
47
|
+
inOneColumn = _ref$inOneColumn === void 0 ? false : _ref$inOneColumn,
|
|
48
|
+
children = _ref.children;
|
|
49
|
+
if (inOneColumn) {
|
|
50
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
51
|
+
className: cn(),
|
|
52
|
+
"data-testid": "".concat(testIdPrefix, "-oneColumn")
|
|
53
|
+
}, React.Children.map(children, function (child) {
|
|
54
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
55
|
+
className: cn('item')
|
|
56
|
+
}, child);
|
|
57
|
+
}));
|
|
58
|
+
}
|
|
59
|
+
var itemsCount = React.Children.count(children);
|
|
60
|
+
var columnConfig = getColumnConfig(itemsCount);
|
|
61
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
62
|
+
className: cn({
|
|
63
|
+
count: "".concat(itemsCount)
|
|
64
|
+
})
|
|
65
|
+
}, /*#__PURE__*/React.createElement(_uiCore.Grid, {
|
|
66
|
+
guttersLeft: "medium"
|
|
67
|
+
}, React.Children.map(children, function (child) {
|
|
68
|
+
return /*#__PURE__*/React.createElement(_uiCore.GridColumn, (0, _extends2["default"])({}, columnConfig, {
|
|
69
|
+
className: cn('column')
|
|
70
|
+
}), child);
|
|
71
|
+
})));
|
|
72
|
+
};
|
|
73
|
+
var _default = exports["default"] = DownloadLinks;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
10
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
11
|
+
var FaqWrapper = function FaqWrapper(_ref) {
|
|
12
|
+
var children = _ref.children;
|
|
13
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
14
|
+
itemScope: true,
|
|
15
|
+
itemType: "http://schema.org/FAQPage"
|
|
16
|
+
}, children);
|
|
17
|
+
};
|
|
18
|
+
var _default = exports["default"] = FaqWrapper;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-image-banner{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;overflow:hidden}@media screen and (min-width:1024px){.mfui-image-banner{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:420px}}.mfui-image-banner__picture{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}@media screen and (min-width:1024px){.mfui-image-banner__picture{height:100%;max-width:672px;width:50%}}.mfui-image-banner__picture_v-align_top{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.mfui-image-banner__picture_v-align_center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-image-banner__picture_v-align_bottom{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.mfui-image-banner__image{display:block;max-height:150px;max-width:100%}@media screen and (min-width:768px) and (max-width:1023px){.mfui-image-banner__image{max-height:230px}}@media screen and (min-width:1024px){.mfui-image-banner__image{max-height:100%;-o-object-fit:contain;object-fit:contain}}.mfui-image-banner__content{z-index:1;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}@media screen and (max-width:1023px){.mfui-image-banner__content{padding:24px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-image-banner__content{text-align:center}}@media screen and (min-width:1024px){.mfui-image-banner__content{padding:0 80px;width:50%}}.mfui-image-banner__description{margin-top:16px;white-space:pre-wrap}.mfui-image-banner__cost{font-size:15px;font-weight:500;line-height:24px;margin-top:16px}.mfui-image-banner__value{display:inline;margin:0 4px}@media screen and (max-width:1023px),screen and (min-width:1024px) and (max-width:1279px){.mfui-image-banner__value{line-height:21px}}.mfui-image-banner__text,.mfui-image-banner__title{white-space:pre-wrap}.mfui-image-banner__children{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-top:32px}@media screen and (max-width:767px){.mfui-image-banner__children{-webkit-box-align:center;-ms-flex-align:center;align-items:center}}@media screen and (min-width:768px){.mfui-image-banner__children{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}@media screen and (min-width:1024px){.mfui-image-banner__children{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}}@media screen and (max-width:1023px){.mfui-image-banner__badges-container{display:-webkit-box;display:-ms-flexbox;display:flex;gap:8px}}.mfui-image-banner__badges{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:8px;margin-bottom:16px}.mfui-image-banner__ad-block{margin:0 0 16px auto}@media screen and (min-width:1024px){.mfui-image-banner__ad-block{position:absolute;right:24px;top:24px}}.mfui-image-banner_margin-top{margin-top:24px}.mfui-image-banner_radius_rounded{border-radius:24px}@media screen and (max-width:1023px){.mfui-image-banner_full-height-on-mobile{height:100%}}@media screen and (min-width:1024px){.mfui-image-banner_auto-height .mfui-image-banner__content{padding:48px 80px}.mfui-image-banner_auto-height{height:auto}.mfui-image-banner_has-image .mfui-image-banner__content{padding-right:0}.mfui-image-banner_full-width .mfui-image-banner__image{bottom:0;display:block;max-width:unset;position:absolute;right:0}.mfui-image-banner_full-width.mfui-image-banner_auto-height .mfui-image-banner__image{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}}.mfui-image-banner_background-color_green{background-color:var(--brandGreen)}.mfui-image-banner_background-color_purple{background-color:var(--brandPurple)}.mfui-image-banner_background-color_gradient{background:-webkit-gradient(linear,right top,left top,from(#ada6ba),to(#f6f2f9));background:linear-gradient(270deg,#ada6ba,#f6f2f9)}.mfui-image-banner_background-color_light{background-color:#f6f2f9}.mfui-image-banner_background-color_spbSky0{background-color:var(--spbSky0)}.mfui-image-banner_text-color_light .mfui-image-banner__content{color:var(--stcWhite)}.mfui-image-banner_text-color_dark .mfui-image-banner__content{color:var(--stcBlack)}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './ImageBanner.scss';
|
|
3
|
+
export declare const BackgroundColor: {
|
|
4
|
+
readonly TRANSPARENT: "transparent";
|
|
5
|
+
readonly GREEN: "green";
|
|
6
|
+
readonly PURPLE: "purple";
|
|
7
|
+
readonly SPB_SKY_0: "spbSky0";
|
|
8
|
+
readonly GRADIENT: "gradient";
|
|
9
|
+
readonly LIGHT: "light";
|
|
10
|
+
};
|
|
11
|
+
export type BackgroundColorType = (typeof BackgroundColor)[keyof typeof BackgroundColor];
|
|
12
|
+
export declare const Radius: {
|
|
13
|
+
readonly CORNERS: "corners";
|
|
14
|
+
readonly ROUNDED: "rounded";
|
|
15
|
+
};
|
|
16
|
+
export type RadiusType = (typeof Radius)[keyof typeof Radius];
|
|
17
|
+
export declare const NavTheme: {
|
|
18
|
+
readonly LIGHT: "light";
|
|
19
|
+
readonly DARK: "dark";
|
|
20
|
+
};
|
|
21
|
+
export type NavThemeType = (typeof NavTheme)[keyof typeof NavTheme];
|
|
22
|
+
export declare const ImageVerticalAlign: {
|
|
23
|
+
readonly TOP: "top";
|
|
24
|
+
readonly CENTER: "center";
|
|
25
|
+
readonly BOTTOM: "bottom";
|
|
26
|
+
};
|
|
27
|
+
export type ImageVerticalAlignType = (typeof ImageVerticalAlign)[keyof typeof ImageVerticalAlign];
|
|
28
|
+
export interface IImageBannerProps {
|
|
29
|
+
/** Дополнительные data атрибуты к внутренним элементам */
|
|
30
|
+
dataAttrs?: {
|
|
31
|
+
root?: Record<string, string>;
|
|
32
|
+
image?: Record<string, string>;
|
|
33
|
+
};
|
|
34
|
+
/** Дополнительный класс корневого элемента */
|
|
35
|
+
className?: string;
|
|
36
|
+
/** Дополнительные классы для корневого и внутренних элементов */
|
|
37
|
+
classes?: {
|
|
38
|
+
root?: string;
|
|
39
|
+
image?: string;
|
|
40
|
+
imageSource?: string;
|
|
41
|
+
title?: string;
|
|
42
|
+
description?: string;
|
|
43
|
+
cost?: string;
|
|
44
|
+
badgesContainer?: string;
|
|
45
|
+
badges?: string;
|
|
46
|
+
adBlock?: string;
|
|
47
|
+
children?: string;
|
|
48
|
+
};
|
|
49
|
+
/** Ссылка на корневой элемент */
|
|
50
|
+
rootRef?: React.Ref<HTMLDivElement>;
|
|
51
|
+
/** Заголовок */
|
|
52
|
+
title?: string | React.ReactNode | React.ReactNode[];
|
|
53
|
+
/** Текст-описание */
|
|
54
|
+
description?: string | React.ReactNode | React.ReactNode[];
|
|
55
|
+
/** Строка со стоимостью услуги */
|
|
56
|
+
cost?: string;
|
|
57
|
+
/** Тег заголовка на разрешении экрана 0-767 */
|
|
58
|
+
headerLevelMobile?: 'h1' | 'h2';
|
|
59
|
+
/** Тег заголовка на разрешении экрана 768+ */
|
|
60
|
+
headerLevel?: 'h1' | 'h2';
|
|
61
|
+
/** Фоновый цвет */
|
|
62
|
+
backgroundColor?: BackgroundColorType;
|
|
63
|
+
/** Радиус границы */
|
|
64
|
+
radius?: RadiusType;
|
|
65
|
+
/** Изображение на разрешении экрана 0-1023 */
|
|
66
|
+
imageMobile?: string;
|
|
67
|
+
/** Изображение 2x на разрешении экрана 0-1023 */
|
|
68
|
+
imageMobile2x?: string;
|
|
69
|
+
/** Изображение на разрешении экрана 1024+ */
|
|
70
|
+
imageDesktop?: string;
|
|
71
|
+
/** Изображение на разрешении экрана 1024+ */
|
|
72
|
+
imageDesktop2x?: string;
|
|
73
|
+
/** Значение тега alt для изображения */
|
|
74
|
+
imageAlt?: string;
|
|
75
|
+
/** Выравнивание изображения по вертикали (по умолчанию center) */
|
|
76
|
+
imageVerticalAlign?: ImageVerticalAlignType;
|
|
77
|
+
/** Приоритет загрузки изображения */
|
|
78
|
+
fetchPriority?: 'auto' | 'high' | 'low';
|
|
79
|
+
/** Высота баннера зависит от высоты контента (по умолчанию фиксированная) */
|
|
80
|
+
autoHeight?: boolean;
|
|
81
|
+
/** Изображение растягивается на всю высоту на разрешении экрана 0-1023 */
|
|
82
|
+
fullHeightOnMobile?: boolean;
|
|
83
|
+
/** Изображение растягивается на всю ширину или вписывается в фиксированный фрейм (по умолчанию фрейм) */
|
|
84
|
+
isImageFullWidth?: boolean;
|
|
85
|
+
/** Бейджи */
|
|
86
|
+
badges?: JSX.Element[] | JSX.Element;
|
|
87
|
+
/** Элемент блока с рекламой */
|
|
88
|
+
adBlock?: JSX.Element | null;
|
|
89
|
+
/** Отступ сверху */
|
|
90
|
+
hasMarginTop?: boolean;
|
|
91
|
+
children?: React.ReactNode;
|
|
92
|
+
}
|
|
93
|
+
declare const ImageBanner: React.FC<IImageBannerProps>;
|
|
94
|
+
export default ImageBanner;
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = exports.Radius = exports.NavTheme = exports.ImageVerticalAlign = exports.BackgroundColor = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
+
require("core-js/modules/es.symbol.js");
|
|
11
|
+
require("core-js/modules/es.symbol.description.js");
|
|
12
|
+
require("core-js/modules/es.array.concat.js");
|
|
13
|
+
var React = _interopRequireWildcard(require("react"));
|
|
14
|
+
var _uiCore = require("@megafon/ui-core");
|
|
15
|
+
var _uiHelpers = require("@megafon/ui-helpers");
|
|
16
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
17
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
18
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
19
|
+
var BackgroundColor = exports.BackgroundColor = {
|
|
20
|
+
TRANSPARENT: 'transparent',
|
|
21
|
+
GREEN: 'green',
|
|
22
|
+
PURPLE: 'purple',
|
|
23
|
+
SPB_SKY_0: 'spbSky0',
|
|
24
|
+
GRADIENT: 'gradient',
|
|
25
|
+
LIGHT: 'light'
|
|
26
|
+
};
|
|
27
|
+
var Radius = exports.Radius = {
|
|
28
|
+
CORNERS: 'corners',
|
|
29
|
+
ROUNDED: 'rounded'
|
|
30
|
+
};
|
|
31
|
+
var NavTheme = exports.NavTheme = {
|
|
32
|
+
LIGHT: 'light',
|
|
33
|
+
DARK: 'dark'
|
|
34
|
+
};
|
|
35
|
+
var ImageVerticalAlign = exports.ImageVerticalAlign = {
|
|
36
|
+
TOP: 'top',
|
|
37
|
+
CENTER: 'center',
|
|
38
|
+
BOTTOM: 'bottom'
|
|
39
|
+
};
|
|
40
|
+
var getTheme = function getTheme(backgrounColor) {
|
|
41
|
+
switch (backgrounColor) {
|
|
42
|
+
case BackgroundColor.GREEN:
|
|
43
|
+
case BackgroundColor.PURPLE:
|
|
44
|
+
return NavTheme.LIGHT;
|
|
45
|
+
default:
|
|
46
|
+
return NavTheme.DARK;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
var cn = (0, _uiHelpers.cnCreate)('mfui-image-banner');
|
|
50
|
+
var typographyConfig = {
|
|
51
|
+
b: {
|
|
52
|
+
component: function component(_ref) {
|
|
53
|
+
var children = _ref.children;
|
|
54
|
+
return /*#__PURE__*/React.createElement(_uiCore.Header, {
|
|
55
|
+
className: cn('value'),
|
|
56
|
+
as: "h3",
|
|
57
|
+
color: "inherit"
|
|
58
|
+
}, children);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
var ImageBanner = function ImageBanner(_ref2) {
|
|
63
|
+
var dataAttrs = _ref2.dataAttrs,
|
|
64
|
+
className = _ref2.className,
|
|
65
|
+
_ref2$classes = _ref2.classes,
|
|
66
|
+
classes = _ref2$classes === void 0 ? {} : _ref2$classes,
|
|
67
|
+
rootRef = _ref2.rootRef,
|
|
68
|
+
_ref2$imageMobile = _ref2.imageMobile,
|
|
69
|
+
imageMobile = _ref2$imageMobile === void 0 ? '' : _ref2$imageMobile,
|
|
70
|
+
_ref2$imageMobile2x = _ref2.imageMobile2x,
|
|
71
|
+
imageMobile2x = _ref2$imageMobile2x === void 0 ? '' : _ref2$imageMobile2x,
|
|
72
|
+
_ref2$imageDesktop = _ref2.imageDesktop,
|
|
73
|
+
imageDesktop = _ref2$imageDesktop === void 0 ? '' : _ref2$imageDesktop,
|
|
74
|
+
_ref2$imageDesktop2x = _ref2.imageDesktop2x,
|
|
75
|
+
imageDesktop2x = _ref2$imageDesktop2x === void 0 ? '' : _ref2$imageDesktop2x,
|
|
76
|
+
_ref2$imageAlt = _ref2.imageAlt,
|
|
77
|
+
imageAlt = _ref2$imageAlt === void 0 ? '' : _ref2$imageAlt,
|
|
78
|
+
_ref2$imageVerticalAl = _ref2.imageVerticalAlign,
|
|
79
|
+
imageVerticalAlign = _ref2$imageVerticalAl === void 0 ? ImageVerticalAlign.CENTER : _ref2$imageVerticalAl,
|
|
80
|
+
_ref2$fetchPriority = _ref2.fetchPriority,
|
|
81
|
+
fetchPriority = _ref2$fetchPriority === void 0 ? 'auto' : _ref2$fetchPriority,
|
|
82
|
+
title = _ref2.title,
|
|
83
|
+
description = _ref2.description,
|
|
84
|
+
cost = _ref2.cost,
|
|
85
|
+
_ref2$headerLevelMobi = _ref2.headerLevelMobile,
|
|
86
|
+
headerLevelMobile = _ref2$headerLevelMobi === void 0 ? 'h1' : _ref2$headerLevelMobi,
|
|
87
|
+
_ref2$headerLevel = _ref2.headerLevel,
|
|
88
|
+
headerLevel = _ref2$headerLevel === void 0 ? 'h1' : _ref2$headerLevel,
|
|
89
|
+
_ref2$backgroundColor = _ref2.backgroundColor,
|
|
90
|
+
backgroundColor = _ref2$backgroundColor === void 0 ? BackgroundColor.TRANSPARENT : _ref2$backgroundColor,
|
|
91
|
+
_ref2$radius = _ref2.radius,
|
|
92
|
+
radius = _ref2$radius === void 0 ? Radius.CORNERS : _ref2$radius,
|
|
93
|
+
autoHeight = _ref2.autoHeight,
|
|
94
|
+
isImageFullWidth = _ref2.isImageFullWidth,
|
|
95
|
+
badges = _ref2.badges,
|
|
96
|
+
adBlock = _ref2.adBlock,
|
|
97
|
+
_ref2$hasMarginTop = _ref2.hasMarginTop,
|
|
98
|
+
hasMarginTop = _ref2$hasMarginTop === void 0 ? false : _ref2$hasMarginTop,
|
|
99
|
+
_ref2$fullHeightOnMob = _ref2.fullHeightOnMobile,
|
|
100
|
+
fullHeightOnMobile = _ref2$fullHeightOnMob === void 0 ? false : _ref2$fullHeightOnMob,
|
|
101
|
+
_ref2$children = _ref2.children,
|
|
102
|
+
children = _ref2$children === void 0 ? [] : _ref2$children;
|
|
103
|
+
var _React$useState = React.useState(false),
|
|
104
|
+
_React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
|
|
105
|
+
isMobile = _React$useState2[0],
|
|
106
|
+
setIsMobile = _React$useState2[1];
|
|
107
|
+
React.useEffect(function () {
|
|
108
|
+
var mediaQuery = window.matchMedia("(max-width: ".concat(_uiHelpers.breakpoints.MOBILE_MIDDLE_END, "px)"));
|
|
109
|
+
var handleMediaChange = function handleMediaChange(_ref3) {
|
|
110
|
+
var matches = _ref3.matches;
|
|
111
|
+
setIsMobile(matches);
|
|
112
|
+
};
|
|
113
|
+
setIsMobile(mediaQuery.matches);
|
|
114
|
+
mediaQuery.addEventListener('change', handleMediaChange);
|
|
115
|
+
return function () {
|
|
116
|
+
mediaQuery.removeEventListener('change', handleMediaChange);
|
|
117
|
+
};
|
|
118
|
+
}, []);
|
|
119
|
+
var navTheme = getTheme(backgroundColor);
|
|
120
|
+
var hasImage = !!(imageMobile || imageMobile2x || imageDesktop || imageDesktop2x);
|
|
121
|
+
var renderBadges = !!badges && /*#__PURE__*/React.createElement("div", {
|
|
122
|
+
className: cn('badges', [classes.badges])
|
|
123
|
+
}, badges);
|
|
124
|
+
var renderAdBlock = !!adBlock && /*#__PURE__*/React.createElement("div", {
|
|
125
|
+
className: cn('ad-block', [classes.adBlock])
|
|
126
|
+
}, adBlock);
|
|
127
|
+
var renderContent = /*#__PURE__*/React.createElement("div", {
|
|
128
|
+
className: cn('content')
|
|
129
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
130
|
+
className: cn('badges-container', [classes.badgesContainer])
|
|
131
|
+
}, renderBadges, renderAdBlock), !!title && /*#__PURE__*/React.createElement(_uiCore.Header, {
|
|
132
|
+
className: cn('title', [classes.title]),
|
|
133
|
+
color: "inherit",
|
|
134
|
+
as: isMobile ? headerLevelMobile : headerLevel
|
|
135
|
+
}, typeof title === 'string' ? (0, _uiHelpers.convert)(title, _uiHelpers.titleConvertConfig) : title), !!description && /*#__PURE__*/React.createElement(_uiCore.Header, {
|
|
136
|
+
className: cn('description', [classes.description]),
|
|
137
|
+
as: "h5",
|
|
138
|
+
color: "inherit"
|
|
139
|
+
}, typeof description === 'string' ? (0, _uiHelpers.convert)(description, _uiHelpers.titleConvertConfig) : description), !!cost && /*#__PURE__*/React.createElement("div", {
|
|
140
|
+
className: cn('cost', [classes.cost])
|
|
141
|
+
}, (0, _uiHelpers.convert)(cost, typographyConfig)), !!children && !!React.Children.count(children) && /*#__PURE__*/React.createElement("div", {
|
|
142
|
+
className: cn('children', [classes.children])
|
|
143
|
+
}, children));
|
|
144
|
+
var renderImage = /*#__PURE__*/React.createElement("picture", {
|
|
145
|
+
className: cn('picture', {
|
|
146
|
+
'v-align': imageVerticalAlign
|
|
147
|
+
})
|
|
148
|
+
}, /*#__PURE__*/React.createElement("source", {
|
|
149
|
+
className: classes.imageSource,
|
|
150
|
+
media: "(min-width: ".concat(_uiHelpers.breakpoints.DESKTOP_SMALL_START, "px)"),
|
|
151
|
+
srcSet: "".concat(imageDesktop, ", ").concat(imageDesktop2x, " 2x")
|
|
152
|
+
}), /*#__PURE__*/React.createElement("img", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.image), {
|
|
153
|
+
className: cn('image', [classes.image]),
|
|
154
|
+
src: imageMobile || imageMobile2x,
|
|
155
|
+
srcSet: imageMobile2x ? "".concat(imageMobile2x, " 2x") : undefined,
|
|
156
|
+
alt: imageAlt,
|
|
157
|
+
fetchPriority: fetchPriority
|
|
158
|
+
})));
|
|
159
|
+
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
|
160
|
+
className: cn({
|
|
161
|
+
'background-color': backgroundColor,
|
|
162
|
+
'text-color': navTheme,
|
|
163
|
+
'has-image': hasImage,
|
|
164
|
+
'auto-height': autoHeight,
|
|
165
|
+
'full-width': isImageFullWidth,
|
|
166
|
+
'margin-top': hasMarginTop,
|
|
167
|
+
'full-height-on-mobile': fullHeightOnMobile,
|
|
168
|
+
radius: radius
|
|
169
|
+
}, [className, classes.root]),
|
|
170
|
+
ref: rootRef
|
|
171
|
+
}), renderContent, hasImage && renderImage);
|
|
172
|
+
};
|
|
173
|
+
var _default = exports["default"] = ImageBanner;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-info-cards{display:grid;gap:20px;grid-template-columns:auto}@media screen and (min-width:768px){.mfui-info-cards_size_small.mfui-info-cards_position_right-side{grid-template-columns:repeat(auto-fit,minmax(326px,1fr))}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-info-cards_size_small.mfui-info-cards_position_right-side{grid-template-columns:repeat(auto-fit,minmax(438px,1fr))}}@media screen and (min-width:1280px){.mfui-info-cards_size_small.mfui-info-cards_position_right-side{grid-template-columns:repeat(auto-fit,minmax(265px,1fr))}}@media screen and (min-width:768px){.mfui-info-cards_size_small.mfui-info-cards_position_top-left{grid-template-columns:repeat(auto-fit,minmax(326px,1fr))}}@media screen and (min-width:1024px){.mfui-info-cards_size_small.mfui-info-cards_position_top-left{grid-template-columns:repeat(auto-fit,minmax(208px,1fr))}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-info-cards_size_medium.mfui-info-cards_position_right-side{grid-template-columns:repeat(auto-fit,minmax(326px,1fr))}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-info-cards_size_medium.mfui-info-cards_position_right-side{grid-template-columns:repeat(auto-fit,minmax(438px,1fr))}}@media screen and (min-width:1280px){.mfui-info-cards_size_medium.mfui-info-cards_position_right-side{grid-template-columns:repeat(auto-fit,minmax(360px,1fr))}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-info-cards_size_medium.mfui-info-cards_position_top-left{grid-template-columns:repeat(auto-fit,minmax(326px,1fr))}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-info-cards_size_medium.mfui-info-cards_position_top-left{grid-template-columns:repeat(auto-fit,minmax(209px,1fr))}}@media screen and (min-width:1280px){.mfui-info-cards_size_medium.mfui-info-cards_position_top-left{grid-template-columns:repeat(auto-fit,minmax(265px,1fr))}}@media screen and (min-width:1024px){.mfui-info-cards_size_big{grid-template-columns:1fr 1fr}}.mfui-info-cards_position_top-left.mfui-info-cards_background_no{row-gap:40px}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IInfoCardData, IInfoCardSettings } from './types';
|
|
3
|
+
import './InfoCards.scss';
|
|
4
|
+
export interface IInfoCards extends IInfoCardSettings {
|
|
5
|
+
/** Дополнительный css класс для корневого элемента */
|
|
6
|
+
className?: string;
|
|
7
|
+
/** Дополнительные css классы для корневого и внутренних элементов */
|
|
8
|
+
classes?: {
|
|
9
|
+
root?: string;
|
|
10
|
+
card?: string;
|
|
11
|
+
cardTitle?: string;
|
|
12
|
+
};
|
|
13
|
+
/** Дополнительные data атрибуты к внутренним элементам */
|
|
14
|
+
dataAttrs?: {
|
|
15
|
+
root?: Record<string, string>;
|
|
16
|
+
card?: Record<string, string>;
|
|
17
|
+
};
|
|
18
|
+
/** Список карточек */
|
|
19
|
+
items: IInfoCardData[];
|
|
20
|
+
/** Ссылка на корневой элемент */
|
|
21
|
+
rootRef?: React.Ref<HTMLDivElement>;
|
|
22
|
+
}
|
|
23
|
+
declare const InfoCards: React.FC<IInfoCards>;
|
|
24
|
+
export default InfoCards;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
require("core-js/modules/es.array.concat.js");
|
|
10
|
+
require("core-js/modules/es.array.map.js");
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _uiHelpers = require("@megafon/ui-helpers");
|
|
13
|
+
var _InfoCard = _interopRequireDefault(require("./components/InfoCard/InfoCard"));
|
|
14
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
15
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
17
|
+
var cn = (0, _uiHelpers.cnCreate)('mfui-info-cards');
|
|
18
|
+
var InfoCards = function InfoCards(_ref) {
|
|
19
|
+
var className = _ref.className,
|
|
20
|
+
classes = _ref.classes,
|
|
21
|
+
items = _ref.items,
|
|
22
|
+
_ref$size = _ref.size,
|
|
23
|
+
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
24
|
+
_ref$imgPosition = _ref.imgPosition,
|
|
25
|
+
imgPosition = _ref$imgPosition === void 0 ? 'top-left' : _ref$imgPosition,
|
|
26
|
+
_ref$background = _ref.background,
|
|
27
|
+
background = _ref$background === void 0 ? 'stroke' : _ref$background,
|
|
28
|
+
dataAttrs = _ref.dataAttrs,
|
|
29
|
+
rootRef = _ref.rootRef;
|
|
30
|
+
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
|
31
|
+
className: cn({
|
|
32
|
+
size: size,
|
|
33
|
+
position: imgPosition,
|
|
34
|
+
background: background
|
|
35
|
+
}, [className, classes === null || classes === void 0 ? void 0 : classes.root]),
|
|
36
|
+
ref: rootRef
|
|
37
|
+
}), items.map(function (item, i) {
|
|
38
|
+
return /*#__PURE__*/React.createElement(_InfoCard["default"], (0, _extends2["default"])({}, item, {
|
|
39
|
+
className: classes === null || classes === void 0 ? void 0 : classes.card,
|
|
40
|
+
size: size,
|
|
41
|
+
imgPosition: imgPosition,
|
|
42
|
+
background: background,
|
|
43
|
+
dataAttrs: {
|
|
44
|
+
root: (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.card, i + 1)
|
|
45
|
+
},
|
|
46
|
+
classes: {
|
|
47
|
+
title: classes === null || classes === void 0 ? void 0 : classes.cardTitle
|
|
48
|
+
},
|
|
49
|
+
key: "".concat(item.title, "_").concat(i)
|
|
50
|
+
}));
|
|
51
|
+
}));
|
|
52
|
+
};
|
|
53
|
+
var _default = exports["default"] = InfoCards;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-info-card{border-radius:24px;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--content);-webkit-column-gap:12px;-moz-column-gap:12px;column-gap:12px;display:-webkit-box;display:-ms-flexbox;display:flex;font-family:inherit;font-size:15px;line-height:24px;-webkit-transition:background-color .3s,-webkit-box-shadow .3s;transition:background-color .3s,-webkit-box-shadow .3s;transition:background-color .3s,box-shadow .3s;transition:background-color .3s,box-shadow .3s,-webkit-box-shadow .3s}.mfui-info-card,.mfui-info-card:hover{text-decoration:none}.mfui-info-card__content{display:-webkit-box;display:-ms-flexbox;display:flex;-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}.mfui-info-card__title+.mfui-info-card__description{margin-top:8px}.mfui-info-card__more-info{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:12px;line-height:18px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-weight:500;margin-top:auto;padding-top:12px;-webkit-transition:color .3s;transition:color .3s}.mfui-info-card_active{cursor:pointer}.mfui-info-card_active:hover .mfui-info-card__more-info{color:var(--brandGreen)}.mfui-info-card__more-info-text{margin-top:-2px}.mfui-info-card__more-info-arrow{height:20px;width:20px;fill:currentColor}.mfui-info-card_size_small{padding:16px 20px}.mfui-info-card_size_small .mfui-info-card__image{height:64px;margin-bottom:16px;width:64px}.mfui-info-card_size_small .mfui-info-card__title{font-size:15px;font-weight:500;line-height:24px}.mfui-info-card_size_small .mfui-info-card__description{font-size:12px;line-height:18px}.mfui-info-card_size_medium{padding:20px 24px}.mfui-info-card_size_medium .mfui-info-card__image{height:80px;margin-bottom:16px;width:80px}@media screen and (min-width:768px){.mfui-info-card_size_medium .mfui-info-card__image{margin-bottom:24px}}.mfui-info-card_size_medium .mfui-info-card__title{font-size:18px;font-weight:500;letter-spacing:.5px;line-height:24px}@media screen and (min-width:1280px){.mfui-info-card_size_medium .mfui-info-card__title{font-size:20px;line-height:28px}}.mfui-info-card_size_big{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:24px}@media screen and (min-width:768px){.mfui-info-card_size_big{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:32px}}.mfui-info-card_size_big .mfui-info-card__image{-ms-flex-item-align:center;align-self:center;-webkit-box-ordinal-group:2;-ms-flex-order:1;height:150px;order:1;width:150px}@media screen and (max-width:767px){.mfui-info-card_size_big .mfui-info-card__image{-ms-flex-item-align:start;align-self:start;-webkit-box-ordinal-group:1;-ms-flex-order:0;margin-bottom:16px;order:0}}.mfui-info-card_size_big .mfui-info-card__title{font-size:18px;font-weight:500;letter-spacing:.5px;line-height:24px}@media screen and (min-width:1280px){.mfui-info-card_size_big .mfui-info-card__title{font-size:20px;line-height:28px}}.mfui-info-card_size_big .mfui-info-card__more-info{font-size:15px;line-height:24px;padding-top:24px}.mfui-info-card_size_big .mfui-info-card__more-info-arrow{height:32px;width:32px}.mfui-info-card_position_top-left{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.mfui-info-card_position_right-side{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.mfui-info-card_position_right-side .mfui-info-card__image{-ms-flex-item-align:center;align-self:center;-webkit-box-ordinal-group:2;-ms-flex-order:1;margin-bottom:0;order:1}.mfui-info-card_position_right-side .mfui-info-card__title+.mfui-info-card__description{margin-top:6px}.mfui-info-card_position_right-side .mfui-info-card__more-info{padding-top:8px}@media screen and (min-width:768px){.mfui-info-card_size_big.mfui-info-card_align-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-info-card_size_big.mfui-info-card_align-center .mfui-info-card__more-info{margin-top:0}}.mfui-info-card_position_right-side.mfui-info-card_align-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-info-card_position_right-side.mfui-info-card_align-center .mfui-info-card__more-info{margin-top:0}.mfui-info-card_background_stroke{border:1px solid var(--spbSky2)}.mfui-info-card_background_shadow{background-color:var(--base);-webkit-box-shadow:0 2px 12px rgba(0,0,0,.1);box-shadow:0 2px 12px rgba(0,0,0,.1)}.mfui-info-card_background_green{background-color:var(--brandGreen20)}.mfui-info-card_background_purple{background-color:var(--brandPurple20)}.mfui-info-card_background_white{background-color:var(--base)}.mfui-info-card_background_gray{background-color:var(--spbSky0)}.mfui-info-card_background_no{padding:0}.mfui-info-card_background_stroke.mfui-info-card_active:hover{background-color:var(--spbSky0)}.mfui-info-card_background_shadow.mfui-info-card_active:hover,.mfui-info-card_background_white.mfui-info-card_active:hover{-webkit-box-shadow:0 8px 28px rgba(0,0,0,.1);box-shadow:0 8px 28px rgba(0,0,0,.1)}.mfui-info-card_background_gray.mfui-info-card_active:hover{background-color:var(--spbSky1)}.mfui-info-card_background_purple.mfui-info-card_active:hover{background-color:var(--buttonHoverPurpleSoft)}.mfui-info-card_background_green.mfui-info-card_active:hover{background-color:var(--buttonHoverGreenSoft)}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IInfoCardData, IInfoCardSettings } from '../../types';
|
|
3
|
+
import './InfoCard.scss';
|
|
4
|
+
export interface IInfoCard extends IInfoCardSettings, IInfoCardData {
|
|
5
|
+
className?: string;
|
|
6
|
+
classes?: {
|
|
7
|
+
root?: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
};
|
|
10
|
+
dataAttrs?: {
|
|
11
|
+
root?: Record<string, string>;
|
|
12
|
+
title?: Record<string, string>;
|
|
13
|
+
description?: Record<string, string>;
|
|
14
|
+
moreInfo?: Record<string, string>;
|
|
15
|
+
moreArrow?: Record<string, string>;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
declare const InfoCard: React.FC<IInfoCard>;
|
|
19
|
+
export default InfoCard;
|