@megafon/ui-shared 8.13.2 → 8.14.0
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/package.json +5 -5
- package/dist/es/components/AccordionBox/AccordionBox.css +0 -1
- package/dist/es/components/AccordionBox/AccordionBox.d.ts +0 -49
- package/dist/es/components/AccordionBox/AccordionBox.js +0 -42
- package/dist/es/components/AudioPlayer/AudioPlayer.d.ts +0 -10
- package/dist/es/components/AudioPlayer/AudioPlayer.js +0 -107
- package/dist/es/components/AudioPlayer/AudioProgress.d.ts +0 -14
- package/dist/es/components/AudioPlayer/AudioProgress.js +0 -96
- package/dist/es/components/AudioPlayer/AudioRange.d.ts +0 -15
- package/dist/es/components/AudioPlayer/AudioRange.js +0 -31
- package/dist/es/components/AudioPlayer/AudioVolume.d.ts +0 -7
- package/dist/es/components/AudioPlayer/AudioVolume.js +0 -77
- package/dist/es/components/AudioPlayer/hooks/useTrackDuration.d.ts +0 -3
- package/dist/es/components/AudioPlayer/hooks/useTrackDuration.js +0 -26
- package/dist/es/components/AudioPlayer/style/AudioPlayer.css +0 -1
- package/dist/es/components/AudioPlayer/style/AudioProgress.css +0 -1
- package/dist/es/components/AudioPlayer/style/AudioRange.css +0 -1
- package/dist/es/components/AudioPlayer/style/AudioVolume.css +0 -1
- package/dist/es/components/AudioPlayer/timerFormatUtil.d.ts +0 -2
- package/dist/es/components/AudioPlayer/timerFormatUtil.js +0 -25
- package/dist/es/components/BannerBox/BannerBox.d.ts +0 -5
- package/dist/es/components/BannerBox/BannerBox.js +0 -22
- package/dist/es/components/BenefitsIcons/BenefitsIcons.d.ts +0 -30
- package/dist/es/components/BenefitsIcons/BenefitsIcons.js +0 -104
- package/dist/es/components/BenefitsIcons/BenefitsIconsTile.d.ts +0 -10
- package/dist/es/components/BenefitsIcons/BenefitsIconsTile.js +0 -51
- package/dist/es/components/BenefitsIcons/helpers.d.ts +0 -8
- package/dist/es/components/BenefitsIcons/helpers.js +0 -102
- package/dist/es/components/BenefitsIcons/style/BenefitsIcons.css +0 -1
- package/dist/es/components/BenefitsIcons/style/BenefitsIconsTile.css +0 -1
- package/dist/es/components/BenefitsIcons/types.d.ts +0 -54
- package/dist/es/components/BenefitsIcons/types.js +0 -17
- package/dist/es/components/BenefitsPictures/BenefitsPictures.d.ts +0 -27
- package/dist/es/components/BenefitsPictures/BenefitsPictures.js +0 -111
- package/dist/es/components/BenefitsPictures/BenfitsPictures.css +0 -1
- package/dist/es/components/BenefitsPictures/helpers.d.ts +0 -11
- package/dist/es/components/BenefitsPictures/helpers.js +0 -85
- package/dist/es/components/BenefitsPictures/types.d.ts +0 -24
- package/dist/es/components/BenefitsPictures/types.js +0 -1
- package/dist/es/components/BlogBox/BlogBox.css +0 -1
- package/dist/es/components/BlogBox/BlogBox.d.ts +0 -31
- package/dist/es/components/BlogBox/BlogBox.js +0 -72
- package/dist/es/components/BlogBox/components/BlogBoxTile.css +0 -1
- package/dist/es/components/BlogBox/components/BlogBoxTile.d.ts +0 -13
- package/dist/es/components/BlogBox/components/BlogBoxTile.js +0 -61
- package/dist/es/components/BlogBox/types.d.ts +0 -37
- package/dist/es/components/BlogBox/types.js +0 -1
- package/dist/es/components/Breadcrumbs/Breadcrumbs.css +0 -1
- package/dist/es/components/Breadcrumbs/Breadcrumbs.d.ts +0 -41
- package/dist/es/components/Breadcrumbs/Breadcrumbs.js +0 -66
- package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.css +0 -1
- package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.d.ts +0 -29
- package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.js +0 -57
- package/dist/es/components/ButtonBanner/ButtonBanner.css +0 -1
- package/dist/es/components/ButtonBanner/ButtonBanner.d.ts +0 -64
- package/dist/es/components/ButtonBanner/ButtonBanner.js +0 -96
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.css +0 -1
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.d.ts +0 -52
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.js +0 -65
- package/dist/es/components/ButtonsBox/ButtonsBox.css +0 -1
- package/dist/es/components/ButtonsBox/ButtonsBox.d.ts +0 -48
- package/dist/es/components/ButtonsBox/ButtonsBox.js +0 -47
- package/dist/es/components/Card/Card.css +0 -1
- package/dist/es/components/Card/Card.d.ts +0 -55
- package/dist/es/components/Card/Card.js +0 -229
- package/dist/es/components/Card/types.d.ts +0 -86
- package/dist/es/components/Card/types.js +0 -1
- package/dist/es/components/CardsBox/CardsBox.d.ts +0 -14
- package/dist/es/components/CardsBox/CardsBox.js +0 -26
- package/dist/es/components/CardsBox/helpers.d.ts +0 -10
- package/dist/es/components/CardsBox/helpers.js +0 -21
- package/dist/es/components/CarouselBox/CarouselBox.d.ts +0 -10
- package/dist/es/components/CarouselBox/CarouselBox.js +0 -45
- package/dist/es/components/ChipsBox/ChipBox.d.ts +0 -5
- package/dist/es/components/ChipsBox/ChipBox.js +0 -7
- package/dist/es/components/ChipsBox/ChipsBox.css +0 -1
- package/dist/es/components/ChipsBox/ChipsBox.d.ts +0 -16
- package/dist/es/components/ChipsBox/ChipsBox.js +0 -76
- package/dist/es/components/Container/Container.css +0 -1
- package/dist/es/components/Container/Container.d.ts +0 -41
- package/dist/es/components/Container/Container.js +0 -46
- package/dist/es/components/DarkGradientCards/DarkGradientCards.css +0 -1
- package/dist/es/components/DarkGradientCards/DarkGradientCards.d.ts +0 -33
- package/dist/es/components/DarkGradientCards/DarkGradientCards.js +0 -66
- package/dist/es/components/DarkGradientCards/components/DarkGradientCard.css +0 -1
- package/dist/es/components/DarkGradientCards/components/DarkGradientCard.d.ts +0 -16
- package/dist/es/components/DarkGradientCards/components/DarkGradientCard.js +0 -50
- package/dist/es/components/DarkGradientCards/types.d.ts +0 -20
- package/dist/es/components/DarkGradientCards/types.js +0 -1
- package/dist/es/components/DownloadLinks/DownloadLink.css +0 -1
- package/dist/es/components/DownloadLinks/DownloadLink.d.ts +0 -36
- package/dist/es/components/DownloadLinks/DownloadLink.js +0 -61
- package/dist/es/components/DownloadLinks/DownloadLinks.css +0 -1
- package/dist/es/components/DownloadLinks/DownloadLinks.d.ts +0 -20
- package/dist/es/components/DownloadLinks/DownloadLinks.js +0 -64
- package/dist/es/components/FaqWrapper/FaqWrapper.d.ts +0 -6
- package/dist/es/components/FaqWrapper/FaqWrapper.js +0 -9
- package/dist/es/components/ImageBanner/ImageBanner.css +0 -1
- package/dist/es/components/ImageBanner/ImageBanner.d.ts +0 -94
- package/dist/es/components/ImageBanner/ImageBanner.js +0 -164
- package/dist/es/components/InfoCards/InfoCards.css +0 -1
- package/dist/es/components/InfoCards/InfoCards.d.ts +0 -24
- package/dist/es/components/InfoCards/InfoCards.js +0 -44
- package/dist/es/components/InfoCards/components/InfoCard/InfoCard.css +0 -1
- package/dist/es/components/InfoCards/components/InfoCard/InfoCard.d.ts +0 -19
- package/dist/es/components/InfoCards/components/InfoCard/InfoCard.js +0 -85
- package/dist/es/components/InfoCards/types.d.ts +0 -31
- package/dist/es/components/InfoCards/types.js +0 -1
- package/dist/es/components/Instructions/Instructions.css +0 -1
- package/dist/es/components/Instructions/Instructions.d.ts +0 -120
- package/dist/es/components/Instructions/Instructions.js +0 -362
- 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 +0 -1
- package/dist/es/components/NotificationBox/NotificationBox.d.ts +0 -15
- package/dist/es/components/NotificationBox/NotificationBox.js +0 -35
- package/dist/es/components/NumbersBox/NumbersBox.css +0 -1
- package/dist/es/components/NumbersBox/NumbersBox.d.ts +0 -35
- package/dist/es/components/NumbersBox/NumbersBox.js +0 -72
- package/dist/es/components/NumbersBox/components/NumbersCard/NumbersCard.css +0 -1
- package/dist/es/components/NumbersBox/components/NumbersCard/NumbersCard.d.ts +0 -16
- package/dist/es/components/NumbersBox/components/NumbersCard/NumbersCard.js +0 -28
- package/dist/es/components/NumbersBox/types.d.ts +0 -7
- package/dist/es/components/NumbersBox/types.js +0 -1
- package/dist/es/components/PageTitle/PageTitle.css +0 -1
- package/dist/es/components/PageTitle/PageTitle.d.ts +0 -36
- package/dist/es/components/PageTitle/PageTitle.js +0 -74
- package/dist/es/components/Partners/Partners.css +0 -1
- package/dist/es/components/Partners/Partners.d.ts +0 -37
- package/dist/es/components/Partners/Partners.js +0 -111
- package/dist/es/components/PictureBox/PictureBox.css +0 -1
- package/dist/es/components/PictureBox/PictureBox.d.ts +0 -48
- package/dist/es/components/PictureBox/PictureBox.js +0 -96
- 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 +0 -1
- package/dist/es/components/PictureWithDescription/PictureWithDescription.d.ts +0 -32
- package/dist/es/components/PictureWithDescription/PictureWithDescription.js +0 -48
- package/dist/es/components/PromoBanner/PromoBanner.d.ts +0 -5
- package/dist/es/components/PromoBanner/PromoBanner.js +0 -26
- package/dist/es/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.css +0 -1
- package/dist/es/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.d.ts +0 -82
- package/dist/es/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.js +0 -142
- package/dist/es/components/PromoCards/PromoCards.d.ts +0 -33
- package/dist/es/components/PromoCards/PromoCards.js +0 -61
- package/dist/es/components/PromoCards/components/PromoCard/PromoCard.css +0 -1
- package/dist/es/components/PromoCards/components/PromoCard/PromoCard.d.ts +0 -25
- package/dist/es/components/PromoCards/components/PromoCard/PromoCard.js +0 -175
- package/dist/es/components/PromoCards/types.d.ts +0 -62
- package/dist/es/components/PromoCards/types.js +0 -1
- package/dist/es/components/Property/Property.d.ts +0 -5
- package/dist/es/components/Property/Property.js +0 -10
- package/dist/es/components/ServiceCards/ServiceCards.css +0 -1
- package/dist/es/components/ServiceCards/ServiceCards.d.ts +0 -28
- package/dist/es/components/ServiceCards/ServiceCards.js +0 -42
- package/dist/es/components/ServiceCards/components/ServiceCard/ServiceCard.css +0 -1
- package/dist/es/components/ServiceCards/components/ServiceCard/ServiceCard.d.ts +0 -19
- package/dist/es/components/ServiceCards/components/ServiceCard/ServiceCard.js +0 -81
- package/dist/es/components/ServiceCards/types.d.ts +0 -26
- package/dist/es/components/ServiceCards/types.js +0 -1
- package/dist/es/components/SidePictureCards/SidePictureCards.d.ts +0 -31
- package/dist/es/components/SidePictureCards/SidePictureCards.js +0 -69
- package/dist/es/components/SidePictureCards/components/SidePictureCard.css +0 -1
- package/dist/es/components/SidePictureCards/components/SidePictureCard.d.ts +0 -18
- package/dist/es/components/SidePictureCards/components/SidePictureCard.js +0 -94
- package/dist/es/components/SidePictureCards/types.d.ts +0 -48
- package/dist/es/components/SidePictureCards/types.js +0 -1
- package/dist/es/components/Stepper/Stepper.css +0 -1
- package/dist/es/components/Stepper/Stepper.d.ts +0 -52
- package/dist/es/components/Stepper/Stepper.js +0 -159
- package/dist/es/components/Stepper/StepperItem.css +0 -1
- package/dist/es/components/Stepper/StepperItem.d.ts +0 -57
- package/dist/es/components/Stepper/StepperItem.js +0 -99
- 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 +0 -1
- package/dist/es/components/Steps/Steps.d.ts +0 -21
- package/dist/es/components/Steps/Steps.js +0 -32
- package/dist/es/components/Steps/StepsItem.css +0 -1
- package/dist/es/components/Steps/StepsItem.d.ts +0 -10
- package/dist/es/components/Steps/StepsItem.js +0 -21
- package/dist/es/components/StoreBanner/StoreBanner.css +0 -1
- package/dist/es/components/StoreBanner/StoreBanner.d.ts +0 -101
- package/dist/es/components/StoreBanner/StoreBanner.js +0 -200
- 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 +0 -1
- package/dist/es/components/StoreButton/StoreButton.d.ts +0 -36
- package/dist/es/components/StoreButton/StoreButton.js +0 -60
- 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 +0 -1
- package/dist/es/components/Table/Table.d.ts +0 -18
- package/dist/es/components/Table/Table.js +0 -127
- package/dist/es/components/Table/TableCell.d.ts +0 -6
- package/dist/es/components/Table/TableCell.js +0 -6
- package/dist/es/components/Table/TableRow.d.ts +0 -11
- package/dist/es/components/Table/TableRow.js +0 -7
- package/dist/es/components/TabsBox/TabBox.d.ts +0 -2
- package/dist/es/components/TabsBox/TabBox.js +0 -2
- package/dist/es/components/TabsBox/TabsBox.d.ts +0 -8
- package/dist/es/components/TabsBox/TabsBox.js +0 -24
- package/dist/es/components/TextBox/TextBox.css +0 -1
- package/dist/es/components/TextBox/TextBox.d.ts +0 -17
- package/dist/es/components/TextBox/TextBox.js +0 -43
- package/dist/es/components/TextBox/TextBoxPicture.css +0 -1
- package/dist/es/components/TextBox/TextBoxPicture.d.ts +0 -21
- package/dist/es/components/TextBox/TextBoxPicture.js +0 -30
- package/dist/es/components/TextWithIcon/TextWithIcon.css +0 -1
- package/dist/es/components/TextWithIcon/TextWithIcon.d.ts +0 -21
- package/dist/es/components/TextWithIcon/TextWithIcon.js +0 -41
- package/dist/es/components/TextWithIcon/TextWithIconItem.css +0 -1
- package/dist/es/components/TextWithIcon/TextWithIconItem.d.ts +0 -25
- package/dist/es/components/TextWithIcon/TextWithIconItem.js +0 -40
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.css +0 -1
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +0 -22
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.js +0 -60
- package/dist/es/components/VideoBanner/VideoBanner.css +0 -1
- package/dist/es/components/VideoBanner/VideoBanner.d.ts +0 -112
- package/dist/es/components/VideoBanner/VideoBanner.js +0 -245
- package/dist/es/components/VideoBlock/VideoBlock.css +0 -1
- package/dist/es/components/VideoBlock/VideoBlock.d.ts +0 -63
- package/dist/es/components/VideoBlock/VideoBlock.js +0 -230
- package/dist/es/constants/throttleTime.d.ts +0 -4
- package/dist/es/constants/throttleTime.js +0 -3
- package/dist/es/helpers/getColumnConfig.d.ts +0 -6
- package/dist/es/helpers/getColumnConfig.js +0 -10
- package/dist/es/helpers/setRelAttribute.d.ts +0 -3
- package/dist/es/helpers/setRelAttribute.js +0 -9
- package/dist/es/hooks/useResolutions.d.ts +0 -8
- package/dist/es/hooks/useResolutions.js +0 -62
- package/dist/es/index.d.ts +0 -67
- package/dist/es/index.js +0 -67
- package/dist/lib/components/AccordionBox/AccordionBox.css +0 -1
- package/dist/lib/components/AccordionBox/AccordionBox.d.ts +0 -49
- package/dist/lib/components/AccordionBox/AccordionBox.js +0 -51
- package/dist/lib/components/AudioPlayer/AudioPlayer.d.ts +0 -10
- package/dist/lib/components/AudioPlayer/AudioPlayer.js +0 -116
- package/dist/lib/components/AudioPlayer/AudioProgress.d.ts +0 -14
- package/dist/lib/components/AudioPlayer/AudioProgress.js +0 -102
- package/dist/lib/components/AudioPlayer/AudioRange.d.ts +0 -15
- package/dist/lib/components/AudioPlayer/AudioRange.js +0 -37
- package/dist/lib/components/AudioPlayer/AudioVolume.d.ts +0 -7
- package/dist/lib/components/AudioPlayer/AudioVolume.js +0 -83
- package/dist/lib/components/AudioPlayer/hooks/useTrackDuration.d.ts +0 -3
- package/dist/lib/components/AudioPlayer/hooks/useTrackDuration.js +0 -33
- package/dist/lib/components/AudioPlayer/style/AudioPlayer.css +0 -1
- package/dist/lib/components/AudioPlayer/style/AudioProgress.css +0 -1
- package/dist/lib/components/AudioPlayer/style/AudioRange.css +0 -1
- package/dist/lib/components/AudioPlayer/style/AudioVolume.css +0 -1
- package/dist/lib/components/AudioPlayer/timerFormatUtil.d.ts +0 -2
- package/dist/lib/components/AudioPlayer/timerFormatUtil.js +0 -31
- package/dist/lib/components/BannerBox/BannerBox.d.ts +0 -5
- package/dist/lib/components/BannerBox/BannerBox.js +0 -31
- package/dist/lib/components/BenefitsIcons/BenefitsIcons.d.ts +0 -30
- package/dist/lib/components/BenefitsIcons/BenefitsIcons.js +0 -113
- package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.d.ts +0 -10
- package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.js +0 -60
- package/dist/lib/components/BenefitsIcons/helpers.d.ts +0 -8
- package/dist/lib/components/BenefitsIcons/helpers.js +0 -108
- package/dist/lib/components/BenefitsIcons/style/BenefitsIcons.css +0 -1
- package/dist/lib/components/BenefitsIcons/style/BenefitsIconsTile.css +0 -1
- package/dist/lib/components/BenefitsIcons/types.d.ts +0 -54
- package/dist/lib/components/BenefitsIcons/types.js +0 -23
- package/dist/lib/components/BenefitsPictures/BenefitsPictures.d.ts +0 -27
- package/dist/lib/components/BenefitsPictures/BenefitsPictures.js +0 -120
- package/dist/lib/components/BenefitsPictures/BenfitsPictures.css +0 -1
- package/dist/lib/components/BenefitsPictures/helpers.d.ts +0 -11
- package/dist/lib/components/BenefitsPictures/helpers.js +0 -91
- package/dist/lib/components/BenefitsPictures/types.d.ts +0 -24
- package/dist/lib/components/BenefitsPictures/types.js +0 -5
- package/dist/lib/components/BlogBox/BlogBox.css +0 -1
- package/dist/lib/components/BlogBox/BlogBox.d.ts +0 -31
- package/dist/lib/components/BlogBox/BlogBox.js +0 -81
- package/dist/lib/components/BlogBox/components/BlogBoxTile.css +0 -1
- package/dist/lib/components/BlogBox/components/BlogBoxTile.d.ts +0 -13
- package/dist/lib/components/BlogBox/components/BlogBoxTile.js +0 -70
- package/dist/lib/components/BlogBox/types.d.ts +0 -37
- package/dist/lib/components/BlogBox/types.js +0 -5
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.css +0 -1
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.d.ts +0 -41
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.js +0 -75
- package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.css +0 -1
- package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.d.ts +0 -29
- package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.js +0 -66
- package/dist/lib/components/ButtonBanner/ButtonBanner.css +0 -1
- package/dist/lib/components/ButtonBanner/ButtonBanner.d.ts +0 -64
- package/dist/lib/components/ButtonBanner/ButtonBanner.js +0 -105
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.css +0 -1
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.d.ts +0 -52
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.js +0 -74
- package/dist/lib/components/ButtonsBox/ButtonsBox.css +0 -1
- package/dist/lib/components/ButtonsBox/ButtonsBox.d.ts +0 -48
- package/dist/lib/components/ButtonsBox/ButtonsBox.js +0 -56
- package/dist/lib/components/Card/Card.css +0 -1
- package/dist/lib/components/Card/Card.d.ts +0 -55
- package/dist/lib/components/Card/Card.js +0 -238
- package/dist/lib/components/Card/types.d.ts +0 -86
- package/dist/lib/components/Card/types.js +0 -5
- package/dist/lib/components/CardsBox/CardsBox.d.ts +0 -14
- package/dist/lib/components/CardsBox/CardsBox.js +0 -36
- package/dist/lib/components/CardsBox/helpers.d.ts +0 -10
- package/dist/lib/components/CardsBox/helpers.js +0 -28
- package/dist/lib/components/CarouselBox/CarouselBox.d.ts +0 -10
- package/dist/lib/components/CarouselBox/CarouselBox.js +0 -55
- package/dist/lib/components/ChipsBox/ChipBox.d.ts +0 -5
- package/dist/lib/components/ChipsBox/ChipBox.js +0 -17
- package/dist/lib/components/ChipsBox/ChipsBox.css +0 -1
- package/dist/lib/components/ChipsBox/ChipsBox.d.ts +0 -16
- package/dist/lib/components/ChipsBox/ChipsBox.js +0 -85
- package/dist/lib/components/Container/Container.css +0 -1
- package/dist/lib/components/Container/Container.d.ts +0 -41
- package/dist/lib/components/Container/Container.js +0 -54
- package/dist/lib/components/DarkGradientCards/DarkGradientCards.css +0 -1
- package/dist/lib/components/DarkGradientCards/DarkGradientCards.d.ts +0 -33
- package/dist/lib/components/DarkGradientCards/DarkGradientCards.js +0 -75
- package/dist/lib/components/DarkGradientCards/components/DarkGradientCard.css +0 -1
- package/dist/lib/components/DarkGradientCards/components/DarkGradientCard.d.ts +0 -16
- package/dist/lib/components/DarkGradientCards/components/DarkGradientCard.js +0 -59
- package/dist/lib/components/DarkGradientCards/types.d.ts +0 -20
- package/dist/lib/components/DarkGradientCards/types.js +0 -5
- package/dist/lib/components/DownloadLinks/DownloadLink.css +0 -1
- package/dist/lib/components/DownloadLinks/DownloadLink.d.ts +0 -36
- package/dist/lib/components/DownloadLinks/DownloadLink.js +0 -70
- package/dist/lib/components/DownloadLinks/DownloadLinks.css +0 -1
- package/dist/lib/components/DownloadLinks/DownloadLinks.d.ts +0 -20
- package/dist/lib/components/DownloadLinks/DownloadLinks.js +0 -73
- package/dist/lib/components/FaqWrapper/FaqWrapper.d.ts +0 -6
- package/dist/lib/components/FaqWrapper/FaqWrapper.js +0 -18
- package/dist/lib/components/ImageBanner/ImageBanner.css +0 -1
- package/dist/lib/components/ImageBanner/ImageBanner.d.ts +0 -94
- package/dist/lib/components/ImageBanner/ImageBanner.js +0 -173
- package/dist/lib/components/InfoCards/InfoCards.css +0 -1
- package/dist/lib/components/InfoCards/InfoCards.d.ts +0 -24
- package/dist/lib/components/InfoCards/InfoCards.js +0 -53
- package/dist/lib/components/InfoCards/components/InfoCard/InfoCard.css +0 -1
- package/dist/lib/components/InfoCards/components/InfoCard/InfoCard.d.ts +0 -19
- package/dist/lib/components/InfoCards/components/InfoCard/InfoCard.js +0 -94
- package/dist/lib/components/InfoCards/types.d.ts +0 -31
- package/dist/lib/components/InfoCards/types.js +0 -5
- package/dist/lib/components/Instructions/Instructions.css +0 -1
- package/dist/lib/components/Instructions/Instructions.d.ts +0 -120
- package/dist/lib/components/Instructions/Instructions.js +0 -371
- 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 +0 -1
- package/dist/lib/components/NotificationBox/NotificationBox.d.ts +0 -15
- package/dist/lib/components/NotificationBox/NotificationBox.js +0 -44
- package/dist/lib/components/NumbersBox/NumbersBox.css +0 -1
- package/dist/lib/components/NumbersBox/NumbersBox.d.ts +0 -35
- package/dist/lib/components/NumbersBox/NumbersBox.js +0 -81
- package/dist/lib/components/NumbersBox/components/NumbersCard/NumbersCard.css +0 -1
- package/dist/lib/components/NumbersBox/components/NumbersCard/NumbersCard.d.ts +0 -16
- package/dist/lib/components/NumbersBox/components/NumbersCard/NumbersCard.js +0 -37
- package/dist/lib/components/NumbersBox/types.d.ts +0 -7
- package/dist/lib/components/NumbersBox/types.js +0 -5
- package/dist/lib/components/PageTitle/PageTitle.css +0 -1
- package/dist/lib/components/PageTitle/PageTitle.d.ts +0 -36
- package/dist/lib/components/PageTitle/PageTitle.js +0 -83
- package/dist/lib/components/Partners/Partners.css +0 -1
- package/dist/lib/components/Partners/Partners.d.ts +0 -37
- package/dist/lib/components/Partners/Partners.js +0 -120
- package/dist/lib/components/PictureBox/PictureBox.css +0 -1
- package/dist/lib/components/PictureBox/PictureBox.d.ts +0 -48
- package/dist/lib/components/PictureBox/PictureBox.js +0 -105
- 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 +0 -1
- package/dist/lib/components/PictureWithDescription/PictureWithDescription.d.ts +0 -32
- package/dist/lib/components/PictureWithDescription/PictureWithDescription.js +0 -56
- package/dist/lib/components/PromoBanner/PromoBanner.d.ts +0 -5
- package/dist/lib/components/PromoBanner/PromoBanner.js +0 -36
- package/dist/lib/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.css +0 -1
- package/dist/lib/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.d.ts +0 -82
- package/dist/lib/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.js +0 -151
- package/dist/lib/components/PromoCards/PromoCards.d.ts +0 -33
- package/dist/lib/components/PromoCards/PromoCards.js +0 -71
- package/dist/lib/components/PromoCards/components/PromoCard/PromoCard.css +0 -1
- package/dist/lib/components/PromoCards/components/PromoCard/PromoCard.d.ts +0 -25
- package/dist/lib/components/PromoCards/components/PromoCard/PromoCard.js +0 -184
- package/dist/lib/components/PromoCards/types.d.ts +0 -62
- package/dist/lib/components/PromoCards/types.js +0 -5
- package/dist/lib/components/Property/Property.d.ts +0 -5
- package/dist/lib/components/Property/Property.js +0 -19
- package/dist/lib/components/ServiceCards/ServiceCards.css +0 -1
- package/dist/lib/components/ServiceCards/ServiceCards.d.ts +0 -28
- package/dist/lib/components/ServiceCards/ServiceCards.js +0 -51
- package/dist/lib/components/ServiceCards/components/ServiceCard/ServiceCard.css +0 -1
- package/dist/lib/components/ServiceCards/components/ServiceCard/ServiceCard.d.ts +0 -19
- package/dist/lib/components/ServiceCards/components/ServiceCard/ServiceCard.js +0 -90
- package/dist/lib/components/ServiceCards/types.d.ts +0 -26
- package/dist/lib/components/ServiceCards/types.js +0 -5
- package/dist/lib/components/SidePictureCards/SidePictureCards.d.ts +0 -31
- package/dist/lib/components/SidePictureCards/SidePictureCards.js +0 -79
- package/dist/lib/components/SidePictureCards/components/SidePictureCard.css +0 -1
- package/dist/lib/components/SidePictureCards/components/SidePictureCard.d.ts +0 -18
- package/dist/lib/components/SidePictureCards/components/SidePictureCard.js +0 -100
- package/dist/lib/components/SidePictureCards/types.d.ts +0 -48
- package/dist/lib/components/SidePictureCards/types.js +0 -5
- package/dist/lib/components/Stepper/Stepper.css +0 -1
- package/dist/lib/components/Stepper/Stepper.d.ts +0 -52
- package/dist/lib/components/Stepper/Stepper.js +0 -168
- package/dist/lib/components/Stepper/StepperItem.css +0 -1
- package/dist/lib/components/Stepper/StepperItem.d.ts +0 -57
- package/dist/lib/components/Stepper/StepperItem.js +0 -108
- 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 +0 -1
- package/dist/lib/components/Steps/Steps.d.ts +0 -21
- package/dist/lib/components/Steps/Steps.js +0 -40
- package/dist/lib/components/Steps/StepsItem.css +0 -1
- package/dist/lib/components/Steps/StepsItem.d.ts +0 -10
- package/dist/lib/components/Steps/StepsItem.js +0 -29
- package/dist/lib/components/StoreBanner/StoreBanner.css +0 -1
- package/dist/lib/components/StoreBanner/StoreBanner.d.ts +0 -101
- package/dist/lib/components/StoreBanner/StoreBanner.js +0 -209
- 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 +0 -1
- package/dist/lib/components/StoreButton/StoreButton.d.ts +0 -36
- package/dist/lib/components/StoreButton/StoreButton.js +0 -69
- 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 +0 -1
- package/dist/lib/components/Table/Table.d.ts +0 -18
- package/dist/lib/components/Table/Table.js +0 -136
- package/dist/lib/components/Table/TableCell.d.ts +0 -6
- package/dist/lib/components/Table/TableCell.js +0 -15
- package/dist/lib/components/Table/TableRow.d.ts +0 -11
- package/dist/lib/components/Table/TableRow.js +0 -17
- package/dist/lib/components/TabsBox/TabBox.d.ts +0 -2
- package/dist/lib/components/TabsBox/TabBox.js +0 -8
- package/dist/lib/components/TabsBox/TabsBox.d.ts +0 -8
- package/dist/lib/components/TabsBox/TabsBox.js +0 -33
- package/dist/lib/components/TextBox/TextBox.css +0 -1
- package/dist/lib/components/TextBox/TextBox.d.ts +0 -17
- package/dist/lib/components/TextBox/TextBox.js +0 -51
- package/dist/lib/components/TextBox/TextBoxPicture.css +0 -1
- package/dist/lib/components/TextBox/TextBoxPicture.d.ts +0 -21
- package/dist/lib/components/TextBox/TextBoxPicture.js +0 -38
- package/dist/lib/components/TextWithIcon/TextWithIcon.css +0 -1
- package/dist/lib/components/TextWithIcon/TextWithIcon.d.ts +0 -21
- package/dist/lib/components/TextWithIcon/TextWithIcon.js +0 -50
- package/dist/lib/components/TextWithIcon/TextWithIconItem.css +0 -1
- package/dist/lib/components/TextWithIcon/TextWithIconItem.d.ts +0 -25
- package/dist/lib/components/TextWithIcon/TextWithIconItem.js +0 -49
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.css +0 -1
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +0 -22
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.js +0 -69
- package/dist/lib/components/VideoBanner/VideoBanner.css +0 -1
- package/dist/lib/components/VideoBanner/VideoBanner.d.ts +0 -112
- package/dist/lib/components/VideoBanner/VideoBanner.js +0 -253
- package/dist/lib/components/VideoBlock/VideoBlock.css +0 -1
- package/dist/lib/components/VideoBlock/VideoBlock.d.ts +0 -63
- package/dist/lib/components/VideoBlock/VideoBlock.js +0 -238
- package/dist/lib/constants/throttleTime.d.ts +0 -4
- package/dist/lib/constants/throttleTime.js +0 -9
- package/dist/lib/helpers/getColumnConfig.d.ts +0 -6
- package/dist/lib/helpers/getColumnConfig.js +0 -16
- package/dist/lib/helpers/setRelAttribute.d.ts +0 -3
- package/dist/lib/helpers/setRelAttribute.js +0 -15
- package/dist/lib/hooks/useResolutions.d.ts +0 -8
- package/dist/lib/hooks/useResolutions.js +0 -69
- package/dist/lib/index.d.ts +0 -67
- package/dist/lib/index.js +0 -475
|
@@ -1 +0,0 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-dark-gradient-card{background-position:50%;background-size:cover;border-radius:24px;color:var(--stcWhite);display:-webkit-box;display:-ms-flexbox;display:flex;min-height:420px;padding:24px;position:relative;text-decoration:none;width:298px}@media screen and (max-width:359px){.mfui-dark-gradient-card{width:265px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-dark-gradient-card{width:211px}}@media screen and (min-width:1024px){.mfui-dark-gradient-card{min-height:520px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-dark-gradient-card{width:285px}}@media screen and (min-width:1280px) and (max-width:1439px){.mfui-dark-gradient-card{width:265px}}@media screen and (min-width:1280px){.mfui-dark-gradient-card{padding:32px}}@media screen and (min-width:1440px){.mfui-dark-gradient-card{width:345px}}.mfui-dark-gradient-card:hover{text-decoration:none}.mfui-dark-gradient-card:before{background-image:-webkit-gradient(linear,left top,left bottom,from(transparent),to(#000));background-image:linear-gradient(180deg,transparent,#000);border-radius:inherit;bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:0}.mfui-dark-gradient-card_active:hover:before{background-image:-webkit-gradient(linear,left top,left bottom,from(transparent),to(rgba(0,0,0,.9)));background-image:linear-gradient(180deg,transparent,rgba(0,0,0,.9))}@media screen and (min-width:768px) and (max-width:1023px){.mfui-dark-gradient-card_size_big{width:441px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-dark-gradient-card_size_big{width:591px}}@media screen and (min-width:1280px) and (max-width:1439px){.mfui-dark-gradient-card_size_big{width:550px}}@media screen and (min-width:1440px){.mfui-dark-gradient-card_size_big{width:710px}}.mfui-dark-gradient-card__inner{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;gap:12px;width:100%}.mfui-dark-gradient-card__title{margin-top:auto}.mfui-dark-gradient-card_size_small .mfui-dark-gradient-card__title{font-size:18px;font-weight:500;letter-spacing:.5px;line-height:24px}@media screen and (min-width:1280px){.mfui-dark-gradient-card_size_small .mfui-dark-gradient-card__title{font-size:20px;line-height:28px}}.mfui-dark-gradient-card_size_big .mfui-dark-gradient-card__title{font-size:22px;font-weight:600;letter-spacing:.5px;line-height:28px}@media screen and (min-width:768px) and (max-width:1023px){.mfui-dark-gradient-card_size_big .mfui-dark-gradient-card__title{font-size:26px;line-height:32px}}@media screen and (min-width:1024px){.mfui-dark-gradient-card_size_big .mfui-dark-gradient-card__title{font-size:28px;line-height:36px}}@media screen and (min-width:1280px){.mfui-dark-gradient-card_size_big .mfui-dark-gradient-card__title{font-size:32px;line-height:40px}}.mfui-dark-gradient-card__more,.mfui-dark-gradient-card__subtitle{font-size:15px;line-height:24px}.mfui-dark-gradient-card__more{display:-webkit-box;display:-ms-flexbox;display:flex;font-weight:500;gap:8px;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.mfui-dark-gradient-card__more-icon{display:block;max-height:24px;min-width:24px;width:24px}.mfui-dark-gradient-card__more-icon svg{display:block;height:100%;width:100%;fill:var(--stcWhite)}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ItemType } from '../types';
|
|
3
|
-
import './DarkGradientCard.scss';
|
|
4
|
-
export type DarkGradientCardType = ItemType & {
|
|
5
|
-
size?: 'small' | 'big';
|
|
6
|
-
className?: string;
|
|
7
|
-
classes?: {
|
|
8
|
-
root?: string;
|
|
9
|
-
title?: string;
|
|
10
|
-
};
|
|
11
|
-
dataAttrs?: {
|
|
12
|
-
root?: Record<string, string>;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
declare const DarkGradientCard: React.FC<DarkGradientCardType>;
|
|
16
|
-
export default DarkGradientCard;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { cnCreate, convert } from '@megafon/ui-helpers';
|
|
4
|
-
import { setRelAttribute } from "../../../helpers/setRelAttribute";
|
|
5
|
-
import "./DarkGradientCard.css";
|
|
6
|
-
var cn = cnCreate('mfui-dark-gradient-card');
|
|
7
|
-
var DarkGradientCard = function DarkGradientCard(_ref) {
|
|
8
|
-
var imageSrc = _ref.imageSrc,
|
|
9
|
-
title = _ref.title,
|
|
10
|
-
subtitle = _ref.subtitle,
|
|
11
|
-
moreIcon = _ref.moreIcon,
|
|
12
|
-
moreText = _ref.moreText,
|
|
13
|
-
href = _ref.href,
|
|
14
|
-
_ref$target = _ref.target,
|
|
15
|
-
target = _ref$target === void 0 ? '_self' : _ref$target,
|
|
16
|
-
rel = _ref.rel,
|
|
17
|
-
_ref$size = _ref.size,
|
|
18
|
-
size = _ref$size === void 0 ? 'small' : _ref$size,
|
|
19
|
-
className = _ref.className,
|
|
20
|
-
_ref$classes = _ref.classes,
|
|
21
|
-
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
|
22
|
-
dataAttrs = _ref.dataAttrs;
|
|
23
|
-
var isLink = !!href;
|
|
24
|
-
var ElementType = isLink ? 'a' : 'div';
|
|
25
|
-
var currentRel = setRelAttribute(rel, target);
|
|
26
|
-
return /*#__PURE__*/React.createElement(ElementType, _extends({
|
|
27
|
-
className: cn({
|
|
28
|
-
size: size,
|
|
29
|
-
active: isLink
|
|
30
|
-
}, [className, classes.root])
|
|
31
|
-
}, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root, {
|
|
32
|
-
href: href,
|
|
33
|
-
target: isLink ? target : undefined,
|
|
34
|
-
rel: isLink ? currentRel : undefined,
|
|
35
|
-
style: {
|
|
36
|
-
backgroundImage: "url(".concat(imageSrc, ")")
|
|
37
|
-
}
|
|
38
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
39
|
-
className: cn('inner')
|
|
40
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
41
|
-
className: cn('title', [classes.title])
|
|
42
|
-
}, convert(title, {})), subtitle && /*#__PURE__*/React.createElement("div", {
|
|
43
|
-
className: cn('subtitle')
|
|
44
|
-
}, convert(subtitle, {})), !!moreText && /*#__PURE__*/React.createElement("div", {
|
|
45
|
-
className: cn('more')
|
|
46
|
-
}, !!moreIcon && /*#__PURE__*/React.createElement("div", {
|
|
47
|
-
className: cn('more-icon')
|
|
48
|
-
}, moreIcon), convert(moreText, {}))));
|
|
49
|
-
};
|
|
50
|
-
export default DarkGradientCard;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
type TargetType = '_self' | '_blank' | '_parent' | '_top';
|
|
2
|
-
export type ItemType = {
|
|
3
|
-
/** Изображение */
|
|
4
|
-
imageSrc: string;
|
|
5
|
-
/** Заголовок */
|
|
6
|
-
title: string;
|
|
7
|
-
/** Подзаголовок */
|
|
8
|
-
subtitle?: string;
|
|
9
|
-
/** Иконка */
|
|
10
|
-
moreIcon?: JSX.Element;
|
|
11
|
-
/** Текст */
|
|
12
|
-
moreText?: string;
|
|
13
|
-
/** Ссылка */
|
|
14
|
-
href?: string;
|
|
15
|
-
/** Атрибут ссылки target */
|
|
16
|
-
target?: TargetType;
|
|
17
|
-
/** Атрибут ссылки rel */
|
|
18
|
-
rel?: string;
|
|
19
|
-
};
|
|
20
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-download-link{display:-webkit-box;display:-ms-flexbox;display:flex}.mfui-download-link__icon{-ms-flex-negative:0;flex-shrink:0;height:40px;margin-right:22px;width:40px;fill:var(--content)}@media screen and (max-width:1023px){.mfui-download-link__icon{height:32px;width:32px}}.mfui-download-link__icon-svg{height:inherit;width:inherit}.mfui-download-link__info{color:var(--spbSky3);font-size:12px;line-height:18px;margin:0;text-transform:uppercase}
|
|
@@ -1,36 +0,0 @@
|
|
|
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;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import "core-js/modules/es.array.concat.js";
|
|
3
|
-
import "core-js/modules/es.string.link.js";
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import { TextLink } from '@megafon/ui-core';
|
|
6
|
-
import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
|
7
|
-
import "./DownloadLink.css";
|
|
8
|
-
var DownloadIcon = function DownloadIcon(props) {
|
|
9
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
10
|
-
viewBox: "0 0 40 40"
|
|
11
|
-
}, props), /*#__PURE__*/React.createElement("path", {
|
|
12
|
-
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"
|
|
13
|
-
}));
|
|
14
|
-
};
|
|
15
|
-
var cn = cnCreate('mfui-download-link');
|
|
16
|
-
var DownloadLink = function DownloadLink(_ref) {
|
|
17
|
-
var href = _ref.href,
|
|
18
|
-
text = _ref.text,
|
|
19
|
-
extension = _ref.extension,
|
|
20
|
-
fileSize = _ref.fileSize,
|
|
21
|
-
onClick = _ref.onClick,
|
|
22
|
-
className = _ref.className,
|
|
23
|
-
_ref$classes = _ref.classes,
|
|
24
|
-
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
|
25
|
-
rootRef = _ref.rootRef,
|
|
26
|
-
dataAttrs = _ref.dataAttrs,
|
|
27
|
-
disableDownload = _ref.disableDownload,
|
|
28
|
-
target = _ref.target,
|
|
29
|
-
rel = _ref.rel;
|
|
30
|
-
var setRelAttribute = function setRelAttribute() {
|
|
31
|
-
if (rel) {
|
|
32
|
-
return rel;
|
|
33
|
-
}
|
|
34
|
-
if (target && target !== '_self') {
|
|
35
|
-
return 'noreferrer noopener';
|
|
36
|
-
}
|
|
37
|
-
return undefined;
|
|
38
|
-
};
|
|
39
|
-
return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
|
40
|
-
className: cn([className, classes.root]),
|
|
41
|
-
ref: rootRef
|
|
42
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
43
|
-
className: cn('icon')
|
|
44
|
-
}, /*#__PURE__*/React.createElement(DownloadIcon, {
|
|
45
|
-
className: cn('icon-svg')
|
|
46
|
-
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(TextLink, _extends({}, !disableDownload && {
|
|
47
|
-
download: true
|
|
48
|
-
}, {
|
|
49
|
-
href: href,
|
|
50
|
-
onClick: onClick,
|
|
51
|
-
dataAttrs: {
|
|
52
|
-
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.link
|
|
53
|
-
},
|
|
54
|
-
className: cn('link', [classes.link]),
|
|
55
|
-
target: target,
|
|
56
|
-
rel: setRelAttribute()
|
|
57
|
-
}), text), /*#__PURE__*/React.createElement("p", {
|
|
58
|
-
className: cn('info')
|
|
59
|
-
}, "".concat(extension).concat(extension && fileSize ? ', ' : '').concat(fileSize))));
|
|
60
|
-
};
|
|
61
|
-
export default DownloadLink;
|
|
@@ -1 +0,0 @@
|
|
|
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}
|
|
@@ -1,20 +0,0 @@
|
|
|
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;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import "core-js/modules/es.array.map.js";
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { Grid, GridColumn } from '@megafon/ui-core';
|
|
5
|
-
import { cnCreate } from '@megafon/ui-helpers';
|
|
6
|
-
import "./DownloadLinks.css";
|
|
7
|
-
export var getColumnConfig = function getColumnConfig(itemsCount) {
|
|
8
|
-
switch (true) {
|
|
9
|
-
case itemsCount <= 2:
|
|
10
|
-
{
|
|
11
|
-
return {
|
|
12
|
-
all: '7',
|
|
13
|
-
mobile: '12'
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
case itemsCount <= 4:
|
|
17
|
-
{
|
|
18
|
-
return {
|
|
19
|
-
all: '6',
|
|
20
|
-
mobile: '12'
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
default:
|
|
24
|
-
{
|
|
25
|
-
return {
|
|
26
|
-
wide: '4',
|
|
27
|
-
desktop: '4',
|
|
28
|
-
tablet: '6',
|
|
29
|
-
mobile: '12'
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
var testIdPrefix = 'DownloadLinks';
|
|
35
|
-
var cn = cnCreate('mfui-download-links');
|
|
36
|
-
var DownloadLinks = function DownloadLinks(_ref) {
|
|
37
|
-
var _ref$inOneColumn = _ref.inOneColumn,
|
|
38
|
-
inOneColumn = _ref$inOneColumn === void 0 ? false : _ref$inOneColumn,
|
|
39
|
-
children = _ref.children;
|
|
40
|
-
if (inOneColumn) {
|
|
41
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
42
|
-
className: cn(),
|
|
43
|
-
"data-testid": "".concat(testIdPrefix, "-oneColumn")
|
|
44
|
-
}, React.Children.map(children, function (child) {
|
|
45
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
46
|
-
className: cn('item')
|
|
47
|
-
}, child);
|
|
48
|
-
}));
|
|
49
|
-
}
|
|
50
|
-
var itemsCount = React.Children.count(children);
|
|
51
|
-
var columnConfig = getColumnConfig(itemsCount);
|
|
52
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
53
|
-
className: cn({
|
|
54
|
-
count: "".concat(itemsCount)
|
|
55
|
-
})
|
|
56
|
-
}, /*#__PURE__*/React.createElement(Grid, {
|
|
57
|
-
guttersLeft: "medium"
|
|
58
|
-
}, React.Children.map(children, function (child) {
|
|
59
|
-
return /*#__PURE__*/React.createElement(GridColumn, _extends({}, columnConfig, {
|
|
60
|
-
className: cn('column')
|
|
61
|
-
}), child);
|
|
62
|
-
})));
|
|
63
|
-
};
|
|
64
|
-
export default DownloadLinks;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
var FaqWrapper = function FaqWrapper(_ref) {
|
|
3
|
-
var children = _ref.children;
|
|
4
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
5
|
-
itemScope: true,
|
|
6
|
-
itemType: "http://schema.org/FAQPage"
|
|
7
|
-
}, children);
|
|
8
|
-
};
|
|
9
|
-
export default FaqWrapper;
|
|
@@ -1 +0,0 @@
|
|
|
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)}
|
|
@@ -1,94 +0,0 @@
|
|
|
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;
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
-
import "core-js/modules/es.symbol.js";
|
|
4
|
-
import "core-js/modules/es.symbol.description.js";
|
|
5
|
-
import "core-js/modules/es.array.concat.js";
|
|
6
|
-
import * as React from 'react';
|
|
7
|
-
import { Header } from '@megafon/ui-core';
|
|
8
|
-
import { breakpoints, cnCreate, filterDataAttrs, convert, titleConvertConfig } from '@megafon/ui-helpers';
|
|
9
|
-
import "./ImageBanner.css";
|
|
10
|
-
export var BackgroundColor = {
|
|
11
|
-
TRANSPARENT: 'transparent',
|
|
12
|
-
GREEN: 'green',
|
|
13
|
-
PURPLE: 'purple',
|
|
14
|
-
SPB_SKY_0: 'spbSky0',
|
|
15
|
-
GRADIENT: 'gradient',
|
|
16
|
-
LIGHT: 'light'
|
|
17
|
-
};
|
|
18
|
-
export var Radius = {
|
|
19
|
-
CORNERS: 'corners',
|
|
20
|
-
ROUNDED: 'rounded'
|
|
21
|
-
};
|
|
22
|
-
export var NavTheme = {
|
|
23
|
-
LIGHT: 'light',
|
|
24
|
-
DARK: 'dark'
|
|
25
|
-
};
|
|
26
|
-
export var ImageVerticalAlign = {
|
|
27
|
-
TOP: 'top',
|
|
28
|
-
CENTER: 'center',
|
|
29
|
-
BOTTOM: 'bottom'
|
|
30
|
-
};
|
|
31
|
-
var getTheme = function getTheme(backgrounColor) {
|
|
32
|
-
switch (backgrounColor) {
|
|
33
|
-
case BackgroundColor.GREEN:
|
|
34
|
-
case BackgroundColor.PURPLE:
|
|
35
|
-
return NavTheme.LIGHT;
|
|
36
|
-
default:
|
|
37
|
-
return NavTheme.DARK;
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
var cn = cnCreate('mfui-image-banner');
|
|
41
|
-
var typographyConfig = {
|
|
42
|
-
b: {
|
|
43
|
-
component: function component(_ref) {
|
|
44
|
-
var children = _ref.children;
|
|
45
|
-
return /*#__PURE__*/React.createElement(Header, {
|
|
46
|
-
className: cn('value'),
|
|
47
|
-
as: "h3",
|
|
48
|
-
color: "inherit"
|
|
49
|
-
}, children);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
var ImageBanner = function ImageBanner(_ref2) {
|
|
54
|
-
var dataAttrs = _ref2.dataAttrs,
|
|
55
|
-
className = _ref2.className,
|
|
56
|
-
_ref2$classes = _ref2.classes,
|
|
57
|
-
classes = _ref2$classes === void 0 ? {} : _ref2$classes,
|
|
58
|
-
rootRef = _ref2.rootRef,
|
|
59
|
-
_ref2$imageMobile = _ref2.imageMobile,
|
|
60
|
-
imageMobile = _ref2$imageMobile === void 0 ? '' : _ref2$imageMobile,
|
|
61
|
-
_ref2$imageMobile2x = _ref2.imageMobile2x,
|
|
62
|
-
imageMobile2x = _ref2$imageMobile2x === void 0 ? '' : _ref2$imageMobile2x,
|
|
63
|
-
_ref2$imageDesktop = _ref2.imageDesktop,
|
|
64
|
-
imageDesktop = _ref2$imageDesktop === void 0 ? '' : _ref2$imageDesktop,
|
|
65
|
-
_ref2$imageDesktop2x = _ref2.imageDesktop2x,
|
|
66
|
-
imageDesktop2x = _ref2$imageDesktop2x === void 0 ? '' : _ref2$imageDesktop2x,
|
|
67
|
-
_ref2$imageAlt = _ref2.imageAlt,
|
|
68
|
-
imageAlt = _ref2$imageAlt === void 0 ? '' : _ref2$imageAlt,
|
|
69
|
-
_ref2$imageVerticalAl = _ref2.imageVerticalAlign,
|
|
70
|
-
imageVerticalAlign = _ref2$imageVerticalAl === void 0 ? ImageVerticalAlign.CENTER : _ref2$imageVerticalAl,
|
|
71
|
-
_ref2$fetchPriority = _ref2.fetchPriority,
|
|
72
|
-
fetchPriority = _ref2$fetchPriority === void 0 ? 'auto' : _ref2$fetchPriority,
|
|
73
|
-
title = _ref2.title,
|
|
74
|
-
description = _ref2.description,
|
|
75
|
-
cost = _ref2.cost,
|
|
76
|
-
_ref2$headerLevelMobi = _ref2.headerLevelMobile,
|
|
77
|
-
headerLevelMobile = _ref2$headerLevelMobi === void 0 ? 'h1' : _ref2$headerLevelMobi,
|
|
78
|
-
_ref2$headerLevel = _ref2.headerLevel,
|
|
79
|
-
headerLevel = _ref2$headerLevel === void 0 ? 'h1' : _ref2$headerLevel,
|
|
80
|
-
_ref2$backgroundColor = _ref2.backgroundColor,
|
|
81
|
-
backgroundColor = _ref2$backgroundColor === void 0 ? BackgroundColor.TRANSPARENT : _ref2$backgroundColor,
|
|
82
|
-
_ref2$radius = _ref2.radius,
|
|
83
|
-
radius = _ref2$radius === void 0 ? Radius.CORNERS : _ref2$radius,
|
|
84
|
-
autoHeight = _ref2.autoHeight,
|
|
85
|
-
isImageFullWidth = _ref2.isImageFullWidth,
|
|
86
|
-
badges = _ref2.badges,
|
|
87
|
-
adBlock = _ref2.adBlock,
|
|
88
|
-
_ref2$hasMarginTop = _ref2.hasMarginTop,
|
|
89
|
-
hasMarginTop = _ref2$hasMarginTop === void 0 ? false : _ref2$hasMarginTop,
|
|
90
|
-
_ref2$fullHeightOnMob = _ref2.fullHeightOnMobile,
|
|
91
|
-
fullHeightOnMobile = _ref2$fullHeightOnMob === void 0 ? false : _ref2$fullHeightOnMob,
|
|
92
|
-
_ref2$children = _ref2.children,
|
|
93
|
-
children = _ref2$children === void 0 ? [] : _ref2$children;
|
|
94
|
-
var _React$useState = React.useState(false),
|
|
95
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
96
|
-
isMobile = _React$useState2[0],
|
|
97
|
-
setIsMobile = _React$useState2[1];
|
|
98
|
-
React.useEffect(function () {
|
|
99
|
-
var mediaQuery = window.matchMedia("(max-width: ".concat(breakpoints.MOBILE_MIDDLE_END, "px)"));
|
|
100
|
-
var handleMediaChange = function handleMediaChange(_ref3) {
|
|
101
|
-
var matches = _ref3.matches;
|
|
102
|
-
setIsMobile(matches);
|
|
103
|
-
};
|
|
104
|
-
setIsMobile(mediaQuery.matches);
|
|
105
|
-
mediaQuery.addEventListener('change', handleMediaChange);
|
|
106
|
-
return function () {
|
|
107
|
-
mediaQuery.removeEventListener('change', handleMediaChange);
|
|
108
|
-
};
|
|
109
|
-
}, []);
|
|
110
|
-
var navTheme = getTheme(backgroundColor);
|
|
111
|
-
var hasImage = !!(imageMobile || imageMobile2x || imageDesktop || imageDesktop2x);
|
|
112
|
-
var renderBadges = !!badges && /*#__PURE__*/React.createElement("div", {
|
|
113
|
-
className: cn('badges', [classes.badges])
|
|
114
|
-
}, badges);
|
|
115
|
-
var renderAdBlock = !!adBlock && /*#__PURE__*/React.createElement("div", {
|
|
116
|
-
className: cn('ad-block', [classes.adBlock])
|
|
117
|
-
}, adBlock);
|
|
118
|
-
var renderContent = /*#__PURE__*/React.createElement("div", {
|
|
119
|
-
className: cn('content')
|
|
120
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
121
|
-
className: cn('badges-container', [classes.badgesContainer])
|
|
122
|
-
}, renderBadges, renderAdBlock), !!title && /*#__PURE__*/React.createElement(Header, {
|
|
123
|
-
className: cn('title', [classes.title]),
|
|
124
|
-
color: "inherit",
|
|
125
|
-
as: isMobile ? headerLevelMobile : headerLevel
|
|
126
|
-
}, typeof title === 'string' ? convert(title, titleConvertConfig) : title), !!description && /*#__PURE__*/React.createElement(Header, {
|
|
127
|
-
className: cn('description', [classes.description]),
|
|
128
|
-
as: "h5",
|
|
129
|
-
color: "inherit"
|
|
130
|
-
}, typeof description === 'string' ? convert(description, titleConvertConfig) : description), !!cost && /*#__PURE__*/React.createElement("div", {
|
|
131
|
-
className: cn('cost', [classes.cost])
|
|
132
|
-
}, convert(cost, typographyConfig)), !!children && !!React.Children.count(children) && /*#__PURE__*/React.createElement("div", {
|
|
133
|
-
className: cn('children', [classes.children])
|
|
134
|
-
}, children));
|
|
135
|
-
var renderImage = /*#__PURE__*/React.createElement("picture", {
|
|
136
|
-
className: cn('picture', {
|
|
137
|
-
'v-align': imageVerticalAlign
|
|
138
|
-
})
|
|
139
|
-
}, /*#__PURE__*/React.createElement("source", {
|
|
140
|
-
className: classes.imageSource,
|
|
141
|
-
media: "(min-width: ".concat(breakpoints.DESKTOP_SMALL_START, "px)"),
|
|
142
|
-
srcSet: "".concat(imageDesktop, ", ").concat(imageDesktop2x, " 2x")
|
|
143
|
-
}), /*#__PURE__*/React.createElement("img", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.image), {
|
|
144
|
-
className: cn('image', [classes.image]),
|
|
145
|
-
src: imageMobile || imageMobile2x,
|
|
146
|
-
srcSet: imageMobile2x ? "".concat(imageMobile2x, " 2x") : undefined,
|
|
147
|
-
alt: imageAlt,
|
|
148
|
-
fetchPriority: fetchPriority
|
|
149
|
-
})));
|
|
150
|
-
return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
|
151
|
-
className: cn({
|
|
152
|
-
'background-color': backgroundColor,
|
|
153
|
-
'text-color': navTheme,
|
|
154
|
-
'has-image': hasImage,
|
|
155
|
-
'auto-height': autoHeight,
|
|
156
|
-
'full-width': isImageFullWidth,
|
|
157
|
-
'margin-top': hasMarginTop,
|
|
158
|
-
'full-height-on-mobile': fullHeightOnMobile,
|
|
159
|
-
radius: radius
|
|
160
|
-
}, [className, classes.root]),
|
|
161
|
-
ref: rootRef
|
|
162
|
-
}), renderContent, hasImage && renderImage);
|
|
163
|
-
};
|
|
164
|
-
export default ImageBanner;
|
|
@@ -1 +0,0 @@
|
|
|
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}
|
|
@@ -1,24 +0,0 @@
|
|
|
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;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import "core-js/modules/es.array.concat.js";
|
|
3
|
-
import "core-js/modules/es.array.map.js";
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
|
6
|
-
import InfoCard from "./components/InfoCard/InfoCard";
|
|
7
|
-
import "./InfoCards.css";
|
|
8
|
-
var cn = cnCreate('mfui-info-cards');
|
|
9
|
-
var InfoCards = function InfoCards(_ref) {
|
|
10
|
-
var className = _ref.className,
|
|
11
|
-
classes = _ref.classes,
|
|
12
|
-
items = _ref.items,
|
|
13
|
-
_ref$size = _ref.size,
|
|
14
|
-
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
15
|
-
_ref$imgPosition = _ref.imgPosition,
|
|
16
|
-
imgPosition = _ref$imgPosition === void 0 ? 'top-left' : _ref$imgPosition,
|
|
17
|
-
_ref$background = _ref.background,
|
|
18
|
-
background = _ref$background === void 0 ? 'stroke' : _ref$background,
|
|
19
|
-
dataAttrs = _ref.dataAttrs,
|
|
20
|
-
rootRef = _ref.rootRef;
|
|
21
|
-
return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
|
22
|
-
className: cn({
|
|
23
|
-
size: size,
|
|
24
|
-
position: imgPosition,
|
|
25
|
-
background: background
|
|
26
|
-
}, [className, classes === null || classes === void 0 ? void 0 : classes.root]),
|
|
27
|
-
ref: rootRef
|
|
28
|
-
}), items.map(function (item, i) {
|
|
29
|
-
return /*#__PURE__*/React.createElement(InfoCard, _extends({}, item, {
|
|
30
|
-
className: classes === null || classes === void 0 ? void 0 : classes.card,
|
|
31
|
-
size: size,
|
|
32
|
-
imgPosition: imgPosition,
|
|
33
|
-
background: background,
|
|
34
|
-
dataAttrs: {
|
|
35
|
-
root: filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.card, i + 1)
|
|
36
|
-
},
|
|
37
|
-
classes: {
|
|
38
|
-
title: classes === null || classes === void 0 ? void 0 : classes.cardTitle
|
|
39
|
-
},
|
|
40
|
-
key: "".concat(item.title, "_").concat(i)
|
|
41
|
-
}));
|
|
42
|
-
}));
|
|
43
|
-
};
|
|
44
|
-
export default InfoCards;
|