@megafon/ui-shared 8.13.1 → 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 +6 -6
- 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
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-notification-box{display:-webkit-box;display:-ms-flexbox;display:flex}.mfui-notification-box:not(:first-child){margin-top:24px}.mfui-notification-box__notification{max-width:740px}.mfui-notification-box_align_left{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.mfui-notification-box_align_center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Notification } from '@megafon/ui-core';
|
|
3
|
-
import './NotificationBox.scss';
|
|
4
|
-
export declare const Align: {
|
|
5
|
-
readonly LEFT: "left";
|
|
6
|
-
readonly CENTER: "center";
|
|
7
|
-
};
|
|
8
|
-
type AlignType = (typeof Align)[keyof typeof Align];
|
|
9
|
-
type NotificationProps = React.ComponentProps<typeof Notification>;
|
|
10
|
-
type NotificationBoxProps = Omit<NotificationProps, 'isColored'> & {
|
|
11
|
-
/** Горизонтальное выравнивание */
|
|
12
|
-
align?: AlignType;
|
|
13
|
-
};
|
|
14
|
-
declare const NotificationBox: React.FC<NotificationBoxProps>;
|
|
15
|
-
export default NotificationBox;
|
|
@@ -1,44 +0,0 @@
|
|
|
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.Align = void 0;
|
|
8
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
-
require("core-js/modules/es.symbol.js");
|
|
10
|
-
require("core-js/modules/es.array.index-of.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 __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
18
|
-
var t = {};
|
|
19
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
20
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
21
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
22
|
-
}
|
|
23
|
-
return t;
|
|
24
|
-
};
|
|
25
|
-
var Align = exports.Align = {
|
|
26
|
-
LEFT: 'left',
|
|
27
|
-
CENTER: 'center'
|
|
28
|
-
};
|
|
29
|
-
var cn = (0, _uiHelpers.cnCreate)('mfui-notification-box');
|
|
30
|
-
var NotificationBox = function NotificationBox(_a) {
|
|
31
|
-
var _a$align = _a.align,
|
|
32
|
-
align = _a$align === void 0 ? 'left' : _a$align,
|
|
33
|
-
restProps = __rest(_a, ["align"]);
|
|
34
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
35
|
-
className: cn({
|
|
36
|
-
align: align
|
|
37
|
-
})
|
|
38
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
39
|
-
className: cn('notification')
|
|
40
|
-
}, /*#__PURE__*/React.createElement(_uiCore.Notification, (0, _extends2["default"])({}, restProps, {
|
|
41
|
-
isColored: false
|
|
42
|
-
}))));
|
|
43
|
-
};
|
|
44
|
-
var _default = exports["default"] = NotificationBox;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-numbers-box{display:block}.mfui-numbers-box_line{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:20px}@media screen and (min-width:768px){.mfui-numbers-box_line{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}.mfui-numbers-box_line .mfui-numbers-box__card{-webkit-box-flex:1;-ms-flex:1;flex:1}@media screen and (min-width:768px) and (max-width:1023px){.mfui-numbers-box_grid{display:grid;grid-gap:20px;grid-template-columns:repeat(2,1fr)}}@media screen and (max-width:767px){.mfui-numbers-box_spaced{gap:40px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-numbers-box_spaced{-webkit-column-gap:20px;-moz-column-gap:20px;column-gap:20px;row-gap:40px}}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Carousel } from '@megafon/ui-core';
|
|
3
|
-
import { BackgroundType, CardDataType, SubtitleSizeType, TitleColorType } from './types';
|
|
4
|
-
import './NumbersBox.scss';
|
|
5
|
-
type CarouselProps = React.ComponentProps<typeof Carousel>;
|
|
6
|
-
export interface INumbersBox {
|
|
7
|
-
/** Список карточек. Минимальное количество 3 карточки */
|
|
8
|
-
items: CardDataType[];
|
|
9
|
-
/** Визуальный эффект фона для карточки */
|
|
10
|
-
background?: BackgroundType;
|
|
11
|
-
/** Цвет текста заголовка карточки */
|
|
12
|
-
titleColor?: TitleColorType;
|
|
13
|
-
/** Размер дополнительного текста карточки */
|
|
14
|
-
subtitleSize?: SubtitleSizeType;
|
|
15
|
-
/** Тема навигации для карусели */
|
|
16
|
-
carouselNavTheme?: CarouselProps['navTheme'];
|
|
17
|
-
/** Цвет градиента для карусели */
|
|
18
|
-
carouselGradientColor?: CarouselProps['gradientColor'];
|
|
19
|
-
/** Дополнительный css класс для корневого элемента */
|
|
20
|
-
className?: string;
|
|
21
|
-
/** Дополнительные css классы для корневого и внутренних элементов */
|
|
22
|
-
classes?: {
|
|
23
|
-
root?: string;
|
|
24
|
-
card?: string;
|
|
25
|
-
};
|
|
26
|
-
/** Дополнительные data атрибуты к внутренним элементам */
|
|
27
|
-
dataAttrs?: {
|
|
28
|
-
root?: Record<string, string>;
|
|
29
|
-
card?: Record<string, string>;
|
|
30
|
-
};
|
|
31
|
-
/** Ссылка на элемент */
|
|
32
|
-
rootRef?: React.Ref<HTMLDivElement>;
|
|
33
|
-
}
|
|
34
|
-
declare const NumbersBox: React.FC<INumbersBox>;
|
|
35
|
-
export default NumbersBox;
|
|
@@ -1,81 +0,0 @@
|
|
|
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
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
-
require("core-js/modules/es.array.map.js");
|
|
11
|
-
var React = _interopRequireWildcard(require("react"));
|
|
12
|
-
var _uiCore = require("@megafon/ui-core");
|
|
13
|
-
var _uiHelpers = require("@megafon/ui-helpers");
|
|
14
|
-
var _NumbersCard = _interopRequireDefault(require("./components/NumbersCard/NumbersCard"));
|
|
15
|
-
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); }
|
|
16
|
-
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; }
|
|
17
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
18
|
-
var slidesSettings = (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])({}, _uiHelpers.breakpoints.MOBILE_SMALL_START, {
|
|
19
|
-
slidesPerView: 1,
|
|
20
|
-
spaceBetween: 20
|
|
21
|
-
}), _uiHelpers.breakpoints.MOBILE_BIG_START, {
|
|
22
|
-
slidesPerView: 3,
|
|
23
|
-
spaceBetween: 20
|
|
24
|
-
}), _uiHelpers.breakpoints.DESKTOP_SMALL_START, {
|
|
25
|
-
slidesPerView: 4,
|
|
26
|
-
spaceBetween: 20
|
|
27
|
-
});
|
|
28
|
-
var MIN_ITEMS_COUNT = 3;
|
|
29
|
-
var FOUR_ITEMS = 4;
|
|
30
|
-
var MIN_CAROUSEL_ITEMS_COUNT = 5;
|
|
31
|
-
var cn = (0, _uiHelpers.cnCreate)('mfui-numbers-box');
|
|
32
|
-
var NumbersBox = function NumbersBox(_ref) {
|
|
33
|
-
var items = _ref.items,
|
|
34
|
-
_ref$background = _ref.background,
|
|
35
|
-
background = _ref$background === void 0 ? 'shadow' : _ref$background,
|
|
36
|
-
_ref$titleColor = _ref.titleColor,
|
|
37
|
-
titleColor = _ref$titleColor === void 0 ? 'default' : _ref$titleColor,
|
|
38
|
-
_ref$subtitleSize = _ref.subtitleSize,
|
|
39
|
-
subtitleSize = _ref$subtitleSize === void 0 ? 'medium' : _ref$subtitleSize,
|
|
40
|
-
carouselNavTheme = _ref.carouselNavTheme,
|
|
41
|
-
carouselGradientColor = _ref.carouselGradientColor,
|
|
42
|
-
dataAttrs = _ref.dataAttrs,
|
|
43
|
-
className = _ref.className,
|
|
44
|
-
classes = _ref.classes,
|
|
45
|
-
rootRef = _ref.rootRef;
|
|
46
|
-
if (items.length < MIN_ITEMS_COUNT) {
|
|
47
|
-
return null;
|
|
48
|
-
}
|
|
49
|
-
var showCarousel = items.length >= MIN_CAROUSEL_ITEMS_COUNT;
|
|
50
|
-
var isGridLayout = items.length === FOUR_ITEMS;
|
|
51
|
-
var hasLargeSpacing = background === 'none' && !showCarousel;
|
|
52
|
-
var renderItem = function renderItem(item, index) {
|
|
53
|
-
return /*#__PURE__*/React.createElement(_NumbersCard["default"], (0, _extends2["default"])({}, item, {
|
|
54
|
-
background: background,
|
|
55
|
-
titleColor: titleColor,
|
|
56
|
-
subtitleSize: subtitleSize,
|
|
57
|
-
dataAttrs: {
|
|
58
|
-
root: (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.card, index + 1)
|
|
59
|
-
},
|
|
60
|
-
className: cn('card', [classes === null || classes === void 0 ? void 0 : classes.card]),
|
|
61
|
-
key: index + item.title
|
|
62
|
-
}));
|
|
63
|
-
};
|
|
64
|
-
var renderCarousel = function renderCarousel() {
|
|
65
|
-
return /*#__PURE__*/React.createElement(_uiCore.Carousel, {
|
|
66
|
-
slidesSettings: slidesSettings,
|
|
67
|
-
navTheme: carouselNavTheme,
|
|
68
|
-
gradient: true,
|
|
69
|
-
gradientColor: carouselGradientColor
|
|
70
|
-
}, items.map(renderItem));
|
|
71
|
-
};
|
|
72
|
-
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
|
73
|
-
className: cn({
|
|
74
|
-
line: !showCarousel,
|
|
75
|
-
grid: isGridLayout,
|
|
76
|
-
spaced: hasLargeSpacing
|
|
77
|
-
}, [className, classes === null || classes === void 0 ? void 0 : classes.root]),
|
|
78
|
-
ref: rootRef
|
|
79
|
-
}), showCarousel ? renderCarousel() : items.map(renderItem));
|
|
80
|
-
};
|
|
81
|
-
var _default = exports["default"] = NumbersBox;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-numbers-card{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;background-color:var(--base);border-radius:24px;color:var(--content);-ms-flex-direction:column;flex-direction:column;gap:4px;min-height:100%;padding:24px}@media screen and (min-width:1280px){.mfui-numbers-card{gap:8px;padding:32px}}.mfui-numbers-card_background_shadow{-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.mfui-numbers-card_background_stroke{background-color:transparent;border:1px solid var(--spbSky2)}.mfui-numbers-card_background_gray{background-color:var(--spbSky0)}.mfui-numbers-card_background_none{background-color:transparent;border-radius:0;padding:0}.mfui-numbers-card__title{color:var(--brandGreen);font-size:36px;font-weight:600;font-weight:700;letter-spacing:.5px;line-height:30px}@media screen and (min-width:768px) and (max-width:1023px){.mfui-numbers-card__title{font-size:36px;line-height:40px}}@media screen and (min-width:1024px){.mfui-numbers-card__title{font-size:44px;line-height:48px}}@media screen and (min-width:1280px){.mfui-numbers-card__title{font-size:52px;line-height:56px}}@media screen and (max-width:1023px){.mfui-numbers-card__title{letter-spacing:0;line-height:40px}}.mfui-numbers-card__title_color_night{color:var(--night)}.mfui-numbers-card__title_color_berry{color:var(--berry)}.mfui-numbers-card__title_color_flamingo{color:var(--flamingo)}.mfui-numbers-card__subtitle{font-size:18px;font-weight:500;letter-spacing:.5px;line-height:24px;overflow:hidden}@media screen and (min-width:1280px){.mfui-numbers-card__subtitle{font-size:20px;line-height:28px}}@media screen and (max-width:1023px){.mfui-numbers-card__subtitle{letter-spacing:0}}.mfui-numbers-card__subtitle_size_small{font-size:15px;font-weight:500;line-height:24px}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BackgroundType, SubtitleSizeType, TitleColorType } from '../../types';
|
|
3
|
-
import './NumbersCard.scss';
|
|
4
|
-
export interface INumbersCard {
|
|
5
|
-
title: string;
|
|
6
|
-
subtitle: string;
|
|
7
|
-
titleColor?: TitleColorType;
|
|
8
|
-
subtitleSize?: SubtitleSizeType;
|
|
9
|
-
background?: BackgroundType;
|
|
10
|
-
className?: string;
|
|
11
|
-
dataAttrs?: {
|
|
12
|
-
root?: Record<string, string>;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
declare const NumbersCard: React.FC<INumbersCard>;
|
|
16
|
-
export default NumbersCard;
|
|
@@ -1,37 +0,0 @@
|
|
|
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
|
-
var React = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _uiHelpers = require("@megafon/ui-helpers");
|
|
11
|
-
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); }
|
|
12
|
-
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; }
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
|
-
var cn = (0, _uiHelpers.cnCreate)('mfui-numbers-card');
|
|
15
|
-
var NumbersCard = function NumbersCard(_ref) {
|
|
16
|
-
var title = _ref.title,
|
|
17
|
-
titleColor = _ref.titleColor,
|
|
18
|
-
subtitle = _ref.subtitle,
|
|
19
|
-
subtitleSize = _ref.subtitleSize,
|
|
20
|
-
background = _ref.background,
|
|
21
|
-
className = _ref.className,
|
|
22
|
-
dataAttrs = _ref.dataAttrs;
|
|
23
|
-
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
|
|
24
|
-
className: cn({
|
|
25
|
-
background: background
|
|
26
|
-
}, [className])
|
|
27
|
-
}, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), /*#__PURE__*/React.createElement("div", {
|
|
28
|
-
className: cn('title', {
|
|
29
|
-
color: titleColor
|
|
30
|
-
})
|
|
31
|
-
}, (0, _uiHelpers.convert)(title, {})), /*#__PURE__*/React.createElement("div", {
|
|
32
|
-
className: cn('subtitle', {
|
|
33
|
-
size: subtitleSize
|
|
34
|
-
})
|
|
35
|
-
}, (0, _uiHelpers.convert)(subtitle, _uiHelpers.textConvertConfig)));
|
|
36
|
-
};
|
|
37
|
-
var _default = exports["default"] = NumbersCard;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export type CardDataType = {
|
|
2
|
-
title: string;
|
|
3
|
-
subtitle: string;
|
|
4
|
-
};
|
|
5
|
-
export type TitleColorType = 'default' | 'night' | 'berry' | 'flamingo';
|
|
6
|
-
export type SubtitleSizeType = 'small' | 'medium';
|
|
7
|
-
export type BackgroundType = 'shadow' | 'stroke' | 'gray' | 'white' | 'none';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-page-title{display:inline-block;width:100%}.mfui-page-title__title{margin-top:110px}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-page-title__title{margin-top:100px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-page-title__title{margin-top:90px}}@media screen and (max-width:767px){.mfui-page-title__title{margin-top:45px}}.mfui-page-title__badge{background-color:var(--brandPurple);color:var(--stcWhite);display:inline-block;font-size:12px;font-weight:500;line-height:18px;margin-top:16px;padding:2px 14px}@media screen and (min-width:1280px){.mfui-page-title__badge_under-breadcrumbs{margin-top:32px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-page-title__badge_under-breadcrumbs{margin-top:24px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-page-title__badge_under-breadcrumbs{margin-top:16px}}@media screen and (min-width:1280px){.mfui-page-title__title_under-breadcrumbs{margin-top:60px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-page-title__title_under-breadcrumbs{margin-top:50px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-page-title__title_under-breadcrumbs{margin-top:45px}}.mfui-page-title__title_single.mfui-page-title__title_margin-top_small{margin-top:48px}@media screen and (min-width:768px) and (max-width:1023px){.mfui-page-title__title_single.mfui-page-title__title_margin-top_small{margin-top:40px}}@media screen and (max-width:767px){.mfui-page-title__title_single.mfui-page-title__title_margin-top_small{margin-top:32px}}.mfui-page-title__description{color:inherit;font-family:inherit;font-size:15px;font-weight:400;line-height:24px;margin-top:24px;white-space:pre-wrap}@media screen and (max-width:767px){.mfui-page-title__description{margin-top:16px}}.mfui-page-title__badge+.mfui-page-title__title{margin-top:8px}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Props as BreadcrumbsType } from '../Breadcrumbs/Breadcrumbs';
|
|
3
|
-
import './PageTitle.scss';
|
|
4
|
-
export type PageTitleProps = {
|
|
5
|
-
/** Дополнительные data атрибуты к внутренним элементам */
|
|
6
|
-
dataAttrs?: {
|
|
7
|
-
root?: Record<string, string>;
|
|
8
|
-
breadcrumbs?: Record<string, string>;
|
|
9
|
-
breadcrumbsLink?: Record<string, string>;
|
|
10
|
-
};
|
|
11
|
-
/** Текст заголовка */
|
|
12
|
-
title: string | React.ReactNode | React.ReactNode[];
|
|
13
|
-
/** Описание */
|
|
14
|
-
description?: string | React.ReactNode | React.ReactNode[];
|
|
15
|
-
/** Хлебные крошки */
|
|
16
|
-
breadcrumbs?: BreadcrumbsType['items'];
|
|
17
|
-
/** Текст бейджа */
|
|
18
|
-
badge?: string;
|
|
19
|
-
/** Растягивание компонента на всю доступную ширину */
|
|
20
|
-
isFullWidth?: boolean;
|
|
21
|
-
/** Включить микроразметку для хлебных крошек */
|
|
22
|
-
hasBreadcrumbsMicrodata?: boolean;
|
|
23
|
-
/** Отступ сверху */
|
|
24
|
-
marginTop?: 'default' | 'small';
|
|
25
|
-
/** Класс для корневого элемента */
|
|
26
|
-
className?: string;
|
|
27
|
-
/** Дополнительные классы для внутренних элементов */
|
|
28
|
-
classes?: {
|
|
29
|
-
title?: string;
|
|
30
|
-
breadcrumbs?: string;
|
|
31
|
-
};
|
|
32
|
-
/** Ссылка на корневой элемент */
|
|
33
|
-
rootRef?: React.RefObject<HTMLDivElement>;
|
|
34
|
-
};
|
|
35
|
-
declare const PageTitle: React.FC<PageTitleProps>;
|
|
36
|
-
export default PageTitle;
|
|
@@ -1,83 +0,0 @@
|
|
|
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.symbol.js");
|
|
10
|
-
require("core-js/modules/es.symbol.description.js");
|
|
11
|
-
var React = _interopRequireWildcard(require("react"));
|
|
12
|
-
var _uiCore = require("@megafon/ui-core");
|
|
13
|
-
var _uiHelpers = require("@megafon/ui-helpers");
|
|
14
|
-
var _Breadcrumbs = _interopRequireDefault(require("../Breadcrumbs/Breadcrumbs"));
|
|
15
|
-
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); }
|
|
16
|
-
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; }
|
|
17
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
18
|
-
var testIdPrefix = 'PageTitle';
|
|
19
|
-
var cn = (0, _uiHelpers.cnCreate)('mfui-page-title');
|
|
20
|
-
var PageTitle = function PageTitle(_ref) {
|
|
21
|
-
var dataAttrs = _ref.dataAttrs,
|
|
22
|
-
title = _ref.title,
|
|
23
|
-
description = _ref.description,
|
|
24
|
-
breadcrumbs = _ref.breadcrumbs,
|
|
25
|
-
badge = _ref.badge,
|
|
26
|
-
_ref$isFullWidth = _ref.isFullWidth,
|
|
27
|
-
isFullWidth = _ref$isFullWidth === void 0 ? true : _ref$isFullWidth,
|
|
28
|
-
_ref$hasBreadcrumbsMi = _ref.hasBreadcrumbsMicrodata,
|
|
29
|
-
hasBreadcrumbsMicrodata = _ref$hasBreadcrumbsMi === void 0 ? false : _ref$hasBreadcrumbsMi,
|
|
30
|
-
_ref$marginTop = _ref.marginTop,
|
|
31
|
-
marginTop = _ref$marginTop === void 0 ? 'default' : _ref$marginTop,
|
|
32
|
-
className = _ref.className,
|
|
33
|
-
_ref$classes = _ref.classes,
|
|
34
|
-
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
|
35
|
-
rootRef = _ref.rootRef;
|
|
36
|
-
var isBreadcrumbs = !!(breadcrumbs === null || breadcrumbs === void 0 ? void 0 : breadcrumbs.length);
|
|
37
|
-
var titleContent = /*#__PURE__*/React.createElement(React.Fragment, null, badge && /*#__PURE__*/React.createElement("div", {
|
|
38
|
-
className: cn('badge', {
|
|
39
|
-
'under-breadcrumbs': isBreadcrumbs
|
|
40
|
-
})
|
|
41
|
-
}, badge), /*#__PURE__*/React.createElement(_uiCore.Header, {
|
|
42
|
-
className: cn('title', {
|
|
43
|
-
single: !isBreadcrumbs && !badge,
|
|
44
|
-
'margin-top': marginTop,
|
|
45
|
-
'under-breadcrumbs': isBreadcrumbs && !badge
|
|
46
|
-
}, [classes.title]),
|
|
47
|
-
as: "h1"
|
|
48
|
-
}, title), description && /*#__PURE__*/React.createElement("div", {
|
|
49
|
-
className: cn('description')
|
|
50
|
-
}, description));
|
|
51
|
-
var renderContent = function renderContent() {
|
|
52
|
-
if (isFullWidth) {
|
|
53
|
-
return titleContent;
|
|
54
|
-
}
|
|
55
|
-
return /*#__PURE__*/React.createElement(_uiCore.Grid, {
|
|
56
|
-
dataAttrs: {
|
|
57
|
-
root: {
|
|
58
|
-
'data-testid': "".concat(testIdPrefix, "-grid")
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}, /*#__PURE__*/React.createElement(_uiCore.GridColumn, {
|
|
62
|
-
wide: "8",
|
|
63
|
-
desktop: "10",
|
|
64
|
-
tablet: "12",
|
|
65
|
-
mobile: "12"
|
|
66
|
-
}, titleContent));
|
|
67
|
-
};
|
|
68
|
-
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
|
69
|
-
className: cn([className]),
|
|
70
|
-
ref: rootRef
|
|
71
|
-
}), (breadcrumbs === null || breadcrumbs === void 0 ? void 0 : breadcrumbs.length) && /*#__PURE__*/React.createElement(_Breadcrumbs["default"], {
|
|
72
|
-
disabledOnMobile: true,
|
|
73
|
-
hasMarginTop: true,
|
|
74
|
-
hasMicrodata: hasBreadcrumbsMicrodata,
|
|
75
|
-
items: breadcrumbs,
|
|
76
|
-
dataAttrs: {
|
|
77
|
-
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.breadcrumbs,
|
|
78
|
-
link: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.breadcrumbsLink
|
|
79
|
-
},
|
|
80
|
-
className: cn('breadcrumbs', [classes.breadcrumbs])
|
|
81
|
-
}), renderContent());
|
|
82
|
-
};
|
|
83
|
-
var _default = exports["default"] = PageTitle;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-partners__tile:not(:last-child){margin-bottom:20px}@media screen and (max-width:767px){.mfui-partners__tile:not(:last-child){margin-bottom:16px}}.mfui-partners__tile-inner{-webkit-box-sizing:border-box;box-sizing:border-box;height:132px;padding:28px 48px}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-partners__tile-inner{height:104px;padding:22px 37px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-partners__tile-inner{height:77px;padding:10px}}@media screen and (max-width:767px){.mfui-partners__tile-inner{height:60px;padding:8px}}.mfui-partners__img-wrapper{height:100%;position:relative;width:100%}.mfui-partners__tile-img{left:50%;max-height:100%;max-width:100%;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './Partners.scss';
|
|
3
|
-
export type ItemType = {
|
|
4
|
-
src: string;
|
|
5
|
-
href?: string;
|
|
6
|
-
alt: string;
|
|
7
|
-
rel?: string;
|
|
8
|
-
};
|
|
9
|
-
export interface IPartnersProps {
|
|
10
|
-
/** Дополнительные data атрибуты к внутренним элементам */
|
|
11
|
-
dataAttrs?: {
|
|
12
|
-
root?: Record<string, string>;
|
|
13
|
-
item?: Record<string, string>;
|
|
14
|
-
};
|
|
15
|
-
/** Ссылка на корневой элемент */
|
|
16
|
-
rootRef?: React.Ref<HTMLDivElement>;
|
|
17
|
-
/** Дополнительные классы для корневого и внутренних элементов */
|
|
18
|
-
classes?: {
|
|
19
|
-
root?: string;
|
|
20
|
-
itemClass?: string;
|
|
21
|
-
slide?: string;
|
|
22
|
-
};
|
|
23
|
-
/** Дополнительный класс корневого элемента */
|
|
24
|
-
className?: string;
|
|
25
|
-
/** Список логотипов */
|
|
26
|
-
items: ItemType[];
|
|
27
|
-
/** Радиус границы логотипов */
|
|
28
|
-
radius?: 'default' | 'rounded';
|
|
29
|
-
/** Обработчик клика по стрелке вперед (должен быть обернут в useCallback) */
|
|
30
|
-
onNextClick?: (index: number) => void;
|
|
31
|
-
/** Обработчик клика по стрелке назад (должен быть обернут в useCallback) */
|
|
32
|
-
onPrevClick?: (index: number) => void;
|
|
33
|
-
/** Обработчик смены слайда (должен быть обернут в useCallback) */
|
|
34
|
-
onChange?: (currentIndex: number, previousIndex: number, slidesPerView?: number | 'auto') => void;
|
|
35
|
-
}
|
|
36
|
-
declare const Partners: React.FC<IPartnersProps>;
|
|
37
|
-
export default Partners;
|
|
@@ -1,120 +0,0 @@
|
|
|
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
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
-
require("core-js/modules/es.array.map.js");
|
|
11
|
-
require("core-js/modules/es.array.slice.js");
|
|
12
|
-
var React = _interopRequireWildcard(require("react"));
|
|
13
|
-
var _uiCore = require("@megafon/ui-core");
|
|
14
|
-
var _uiHelpers = require("@megafon/ui-helpers");
|
|
15
|
-
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); }
|
|
16
|
-
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; }
|
|
17
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
18
|
-
var MAX_GRID_ITEMS_LENGTH = 8;
|
|
19
|
-
var slidesSettings = (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])({}, _uiHelpers.breakpoints.MOBILE_SMALL_START, {
|
|
20
|
-
slidesPerView: 2,
|
|
21
|
-
spaceBetween: 16
|
|
22
|
-
}), _uiHelpers.breakpoints.MOBILE_MIDDLE_START, {
|
|
23
|
-
slidesPerView: 3,
|
|
24
|
-
spaceBetween: 20
|
|
25
|
-
}), _uiHelpers.breakpoints.DESKTOP_SMALL_START, {
|
|
26
|
-
slidesPerView: 4,
|
|
27
|
-
spaceBetween: 20
|
|
28
|
-
});
|
|
29
|
-
var testIdPrefix = 'Partners';
|
|
30
|
-
var cn = (0, _uiHelpers.cnCreate)('mfui-partners');
|
|
31
|
-
var Partners = function Partners(_ref) {
|
|
32
|
-
var rootRef = _ref.rootRef,
|
|
33
|
-
_ref$classes = _ref.classes,
|
|
34
|
-
_ref$classes2 = _ref$classes === void 0 ? {} : _ref$classes,
|
|
35
|
-
root = _ref$classes2.root,
|
|
36
|
-
itemClass = _ref$classes2.itemClass,
|
|
37
|
-
slide = _ref$classes2.slide,
|
|
38
|
-
dataAttrs = _ref.dataAttrs,
|
|
39
|
-
className = _ref.className,
|
|
40
|
-
items = _ref.items,
|
|
41
|
-
_ref$radius = _ref.radius,
|
|
42
|
-
radius = _ref$radius === void 0 ? 'default' : _ref$radius,
|
|
43
|
-
onChange = _ref.onChange,
|
|
44
|
-
onNextClick = _ref.onNextClick,
|
|
45
|
-
onPrevClick = _ref.onPrevClick;
|
|
46
|
-
var renderItem = React.useCallback(function (item) {
|
|
47
|
-
var index = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
48
|
-
if (!item) {
|
|
49
|
-
return null;
|
|
50
|
-
}
|
|
51
|
-
var src = item.src,
|
|
52
|
-
href = item.href,
|
|
53
|
-
alt = item.alt,
|
|
54
|
-
rel = item.rel;
|
|
55
|
-
return /*#__PURE__*/React.createElement(_uiCore.Tile, {
|
|
56
|
-
href: href,
|
|
57
|
-
rel: rel,
|
|
58
|
-
shadowLevel: "default",
|
|
59
|
-
radius: radius,
|
|
60
|
-
isInteractive: !!href,
|
|
61
|
-
className: cn('tile'),
|
|
62
|
-
dataAttrs: {
|
|
63
|
-
root: (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.item, index + 1))
|
|
64
|
-
}
|
|
65
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
66
|
-
className: cn('tile-inner', [itemClass]),
|
|
67
|
-
"data-testid": "".concat(testIdPrefix, "-tile-inner")
|
|
68
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
69
|
-
className: cn('img-wrapper')
|
|
70
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
71
|
-
src: src,
|
|
72
|
-
alt: alt,
|
|
73
|
-
className: cn('tile-img')
|
|
74
|
-
}))));
|
|
75
|
-
}, [radius, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.item, itemClass]);
|
|
76
|
-
var renderGrid = React.useCallback(function () {
|
|
77
|
-
return /*#__PURE__*/React.createElement(_uiCore.Grid, {
|
|
78
|
-
guttersLeft: "medium",
|
|
79
|
-
guttersBottom: "medium"
|
|
80
|
-
}, items.map(function (item, i) {
|
|
81
|
-
return /*#__PURE__*/React.createElement(_uiCore.GridColumn, {
|
|
82
|
-
key: i + item.src,
|
|
83
|
-
all: "3",
|
|
84
|
-
mobile: "6"
|
|
85
|
-
}, renderItem(item, i));
|
|
86
|
-
}));
|
|
87
|
-
}, [items, renderItem]);
|
|
88
|
-
var renderCarousel = React.useCallback(function () {
|
|
89
|
-
var halfItemsLength = Math.ceil(items.length / 2);
|
|
90
|
-
var topRow = items.slice(0, halfItemsLength);
|
|
91
|
-
var bottomRow = items.slice(halfItemsLength);
|
|
92
|
-
return /*#__PURE__*/React.createElement(_uiCore.Carousel, {
|
|
93
|
-
classes: {
|
|
94
|
-
slide: cn('slide', [slide])
|
|
95
|
-
},
|
|
96
|
-
slidesSettings: slidesSettings,
|
|
97
|
-
onChange: onChange,
|
|
98
|
-
onNextClick: onNextClick,
|
|
99
|
-
onPrevClick: onPrevClick,
|
|
100
|
-
dataAttrs: {
|
|
101
|
-
prev: {
|
|
102
|
-
'data-testid': "".concat(testIdPrefix, "-prev")
|
|
103
|
-
},
|
|
104
|
-
next: {
|
|
105
|
-
'data-testid': "".concat(testIdPrefix, "-next")
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}, topRow.map(function (item, i) {
|
|
109
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
110
|
-
key: i + item.src,
|
|
111
|
-
className: cn('slide')
|
|
112
|
-
}, renderItem(item, i), renderItem(bottomRow[i], i));
|
|
113
|
-
}));
|
|
114
|
-
}, [items, slide, onChange, onNextClick, onPrevClick, renderItem]);
|
|
115
|
-
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
|
|
116
|
-
ref: rootRef,
|
|
117
|
-
className: cn([root, className])
|
|
118
|
-
}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root)), items.length > MAX_GRID_ITEMS_LENGTH ? renderCarousel() : renderGrid());
|
|
119
|
-
};
|
|
120
|
-
var _default = exports["default"] = Partners;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-picture-box_mask_none .mfui-picture-box__image{border-radius:24px;vertical-align:top;width:100%}@media screen and (min-width:768px){.mfui-picture-box_mask_none .mfui-picture-box__image{height:414px;-o-object-fit:cover;object-fit:cover}}@media screen and (min-width:1280px){.mfui-picture-box_mask_none .mfui-picture-box__image{height:520px}}.mfui-picture-box_mask_mac-book .mfui-picture-box__image{border-top-left-radius:1.4% 2.2988505747%;border-top-right-radius:1.4% 2.2988505747%;height:87%;left:0;margin:0 auto;-o-object-fit:cover;object-fit:cover;position:absolute;right:0;top:2%;width:82%}.mfui-picture-box__content{-ms-flex-item-align:center;align-self:center;margin-top:32px}@media screen and (min-width:1024px){.mfui-picture-box__content{margin-top:0}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-picture-box_align_left .mfui-picture-box__content{margin-left:12px}}@media screen and (min-width:1280px){.mfui-picture-box_align_left .mfui-picture-box__content{margin-left:44px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-picture-box_align_right .mfui-picture-box__content{margin-right:12px}}@media screen and (min-width:1280px){.mfui-picture-box_align_right .mfui-picture-box__content{margin-right:44px}}.mfui-picture-box__button-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:20px;margin-top:32px}.mfui-picture-box_mask_mac-book .mfui-picture-box__mask{background-image:url(img/mac-book-1x.png);background-repeat:no-repeat;background-size:100% auto;padding-bottom:60.9%;position:relative}@media screen and (-webkit-min-device-pixel-ratio:2),screen and (min-device-pixel-ratio:2),screen and (min-resolution:192dpi),screen and (min-resolution:2dppx){.mfui-picture-box_mask_mac-book .mfui-picture-box__mask{background-image:url(img/mac-book-2x.png)}}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './PictureBox.scss';
|
|
3
|
-
type ImageType = {
|
|
4
|
-
src: string;
|
|
5
|
-
src2x?: string;
|
|
6
|
-
align?: 'right' | 'left';
|
|
7
|
-
alt?: string;
|
|
8
|
-
};
|
|
9
|
-
type ButtonType = {
|
|
10
|
-
title?: string;
|
|
11
|
-
href?: string;
|
|
12
|
-
target?: '_self' | '_blank';
|
|
13
|
-
rel?: string;
|
|
14
|
-
onClick?: (e: React.SyntheticEvent<EventTarget>) => void;
|
|
15
|
-
};
|
|
16
|
-
export interface IPictureBoxProps {
|
|
17
|
-
/** Изображение */
|
|
18
|
-
image: ImageType;
|
|
19
|
-
/** Кнопка */
|
|
20
|
-
button?: ButtonType;
|
|
21
|
-
/** Дополнительная кнопка */
|
|
22
|
-
extraButton?: ButtonType;
|
|
23
|
-
/** Маска */
|
|
24
|
-
pictureMask?: 'mac-book' | 'none';
|
|
25
|
-
/** Дочерние элементы */
|
|
26
|
-
children: React.ReactNode;
|
|
27
|
-
/** Ссылка на корневой элемент */
|
|
28
|
-
rootRef?: React.Ref<HTMLDivElement>;
|
|
29
|
-
/** Дополнительный класс для корневого элемента */
|
|
30
|
-
className?: string;
|
|
31
|
-
/** Дополнительный класс корневого элемента */
|
|
32
|
-
classes?: {
|
|
33
|
-
root?: string;
|
|
34
|
-
button?: string;
|
|
35
|
-
extraButton?: string;
|
|
36
|
-
};
|
|
37
|
-
/** Дополнительные data атрибуты к внутренним элементам */
|
|
38
|
-
dataAttrs?: {
|
|
39
|
-
root?: Record<string, string>;
|
|
40
|
-
button?: Record<string, string>;
|
|
41
|
-
extraButton?: Record<string, string>;
|
|
42
|
-
image?: Record<string, string>;
|
|
43
|
-
mask?: Record<string, string>;
|
|
44
|
-
buttonsWrapper?: Record<string, string>;
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
declare const PictureBox: React.FC<IPictureBoxProps>;
|
|
48
|
-
export default PictureBox;
|