@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
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export interface IBenefit {
|
|
2
|
-
/** Заголовок бенефита */
|
|
3
|
-
title?: string;
|
|
4
|
-
/** Основной текст в бенефите */
|
|
5
|
-
text?: string | React.ReactNode | React.ReactNode[];
|
|
6
|
-
/** Изображение */
|
|
7
|
-
img: string;
|
|
8
|
-
/** Значение тега alt для изображения */
|
|
9
|
-
alt?: string;
|
|
10
|
-
}
|
|
11
|
-
type TGridSizeValues = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12';
|
|
12
|
-
export type GridConfig = {
|
|
13
|
-
wide?: TGridSizeValues;
|
|
14
|
-
desktop?: TGridSizeValues;
|
|
15
|
-
tablet?: TGridSizeValues;
|
|
16
|
-
leftOffsetWide?: TGridSizeValues;
|
|
17
|
-
leftOffsetDesktop?: TGridSizeValues;
|
|
18
|
-
leftOffsetTablet?: TGridSizeValues;
|
|
19
|
-
rightOffsetDesktop?: TGridSizeValues;
|
|
20
|
-
rightOffsetTablet?: TGridSizeValues;
|
|
21
|
-
rightOffsetWide?: TGridSizeValues;
|
|
22
|
-
};
|
|
23
|
-
export type GridGutterSize = 'large' | 'medium';
|
|
24
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-blog-box{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center}@media screen and (min-width:1024px){.mfui-blog-box__list{-webkit-column-gap:20px;-moz-column-gap:20px;column-gap:20px;display:grid;grid-template-columns:1fr 1fr;row-gap:24px}}.mfui-blog-box__list_row{grid-template-columns:repeat(6,1fr)}.mfui-blog-box__list_row .mfui-blog-box__item{grid-column-end:span 2}.mfui-blog-box__list_row-size_1 .mfui-blog-box__item{grid-column-start:3}.mfui-blog-box__list_row-size_2 .mfui-blog-box__item:first-child{grid-column-start:2}.mfui-blog-box__item_view_thumbnail{margin-top:16px}@media screen and (min-width:1024px){.mfui-blog-box__item_view_thumbnail{grid-column-end:2;grid-column-start:1;margin-top:0}}.mfui-blog-box__item_view_full{margin-bottom:24px}@media screen and (min-width:768px) and (max-width:1023px){.mfui-blog-box__item_view_full{margin-bottom:32px}}@media screen and (min-width:1024px){.mfui-blog-box__item_view_full{grid-column-end:3;grid-column-start:2;grid-row-end:4;grid-row-start:1;margin-bottom:0}}.mfui-blog-box__button-wrapper{margin-top:32px}@media screen and (min-width:768px) and (max-width:1023px){.mfui-blog-box__button-wrapper{margin-top:40px}}@media screen and (min-width:1024px){.mfui-blog-box__button-wrapper{margin-top:56px}}.mfui-blog-box__button{min-width:208px}.mfui-blog-box_align-left{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.mfui-blog-box_align-left .mfui-blog-box__item:first-child{grid-column-start:1}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ButtonType, TileDataType } from './types';
|
|
3
|
-
import './BlogBox.scss';
|
|
4
|
-
export interface IBlogBox {
|
|
5
|
-
/** Статьи (не более 4, остальные будут проигнорированы) */
|
|
6
|
-
items: TileDataType[];
|
|
7
|
-
/** Кнопка */
|
|
8
|
-
button?: ButtonType;
|
|
9
|
-
/** Выравнивание по левому краю (при количестве статей менее трех) */
|
|
10
|
-
hasAlignLeft?: boolean;
|
|
11
|
-
/** Дополнительный класс для компонента */
|
|
12
|
-
className?: string;
|
|
13
|
-
/** Дополнительные классы для внутренних элементов */
|
|
14
|
-
classes?: {
|
|
15
|
-
root?: string;
|
|
16
|
-
item?: string;
|
|
17
|
-
itemTitle?: string;
|
|
18
|
-
button?: string;
|
|
19
|
-
};
|
|
20
|
-
/** Дополнительные data атрибуты к внутренним элементам */
|
|
21
|
-
dataAttrs?: {
|
|
22
|
-
root?: Record<string, string>;
|
|
23
|
-
list?: Record<string, string>;
|
|
24
|
-
item?: Record<string, string>;
|
|
25
|
-
button?: Record<string, string>;
|
|
26
|
-
};
|
|
27
|
-
/** Ссылка на корневой элемент */
|
|
28
|
-
rootRef?: React.Ref<HTMLDivElement>;
|
|
29
|
-
}
|
|
30
|
-
declare const BlogBox: React.FC<IBlogBox>;
|
|
31
|
-
export default BlogBox;
|
|
@@ -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
|
-
require("core-js/modules/es.array.concat.js");
|
|
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
|
-
var _useResolutions2 = _interopRequireDefault(require("../../hooks/useResolutions"));
|
|
16
|
-
var _BlogBoxTile = _interopRequireDefault(require("./components/BlogBoxTile"));
|
|
17
|
-
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); }
|
|
18
|
-
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; }
|
|
19
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
20
|
-
var maxItemsCount = 4;
|
|
21
|
-
var cn = (0, _uiHelpers.cnCreate)('mfui-blog-box');
|
|
22
|
-
var BlogBox = function BlogBox(_ref) {
|
|
23
|
-
var items = _ref.items,
|
|
24
|
-
button = _ref.button,
|
|
25
|
-
_ref$hasAlignLeft = _ref.hasAlignLeft,
|
|
26
|
-
hasAlignLeft = _ref$hasAlignLeft === void 0 ? false : _ref$hasAlignLeft,
|
|
27
|
-
className = _ref.className,
|
|
28
|
-
classes = _ref.classes,
|
|
29
|
-
dataAttrs = _ref.dataAttrs,
|
|
30
|
-
rootRef = _ref.rootRef;
|
|
31
|
-
var _useResolutions = (0, _useResolutions2["default"])(),
|
|
32
|
-
isDesktop = _useResolutions.isDesktop;
|
|
33
|
-
var visibleItems = items.slice(0, maxItemsCount);
|
|
34
|
-
var itemsCount = visibleItems.length;
|
|
35
|
-
var isRow = isDesktop && itemsCount < maxItemsCount;
|
|
36
|
-
var isAlignLeft = isRow && hasAlignLeft;
|
|
37
|
-
var getView = function getView(isCompact, i) {
|
|
38
|
-
if (isCompact) {
|
|
39
|
-
return 'compact';
|
|
40
|
-
}
|
|
41
|
-
if (i === 0) {
|
|
42
|
-
return 'full';
|
|
43
|
-
}
|
|
44
|
-
return 'thumbnail';
|
|
45
|
-
};
|
|
46
|
-
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
|
47
|
-
className: cn({
|
|
48
|
-
'align-left': isAlignLeft
|
|
49
|
-
}, [className, classes === null || classes === void 0 ? void 0 : classes.root]),
|
|
50
|
-
ref: rootRef
|
|
51
|
-
}), /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.list), {
|
|
52
|
-
className: cn('list', {
|
|
53
|
-
row: isRow,
|
|
54
|
-
'row-size': isRow && "".concat(itemsCount)
|
|
55
|
-
})
|
|
56
|
-
}), visibleItems.map(function (item, i) {
|
|
57
|
-
var view = getView(isRow, i);
|
|
58
|
-
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.item, i + 1), {
|
|
59
|
-
className: cn('item', {
|
|
60
|
-
view: view
|
|
61
|
-
}, [classes === null || classes === void 0 ? void 0 : classes.item]),
|
|
62
|
-
key: "".concat(item.title, "_").concat(i)
|
|
63
|
-
}), /*#__PURE__*/React.createElement(_BlogBoxTile["default"], (0, _extends2["default"])({}, item, {
|
|
64
|
-
view: view,
|
|
65
|
-
classes: {
|
|
66
|
-
title: classes === null || classes === void 0 ? void 0 : classes.itemTitle
|
|
67
|
-
}
|
|
68
|
-
})));
|
|
69
|
-
})), (button === null || button === void 0 ? void 0 : button.title) && /*#__PURE__*/React.createElement("div", {
|
|
70
|
-
className: cn('button-wrapper')
|
|
71
|
-
}, /*#__PURE__*/React.createElement(_uiCore.Button, {
|
|
72
|
-
dataAttrs: {
|
|
73
|
-
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.button
|
|
74
|
-
},
|
|
75
|
-
className: cn('button', [classes === null || classes === void 0 ? void 0 : classes.button]),
|
|
76
|
-
href: button.href,
|
|
77
|
-
target: button.target,
|
|
78
|
-
rel: button.rel
|
|
79
|
-
}, button.title)));
|
|
80
|
-
};
|
|
81
|
-
var _default = exports["default"] = BlogBox;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-blog-box-tile{color:var(--content);display:block;position:relative}.mfui-blog-box-tile,.mfui-blog-box-tile:hover{text-decoration:none}.mfui-blog-box-tile:hover .mfui-blog-box-tile__title{color:var(--brandGreen)}.mfui-blog-box-tile__image{border-radius:24px;height:100%;-o-object-fit:cover;object-fit:cover;vertical-align:top;width:100%}.mfui-blog-box-tile__picture{display:block}.mfui-blog-box-tile__date{color:var(--spbSky3);margin-bottom:4px}.mfui-blog-box-tile__title{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:4;-webkit-transition:color .3s;transition:color .3s}.mfui-blog-box-tile_view_thumbnail{display:-webkit-box;display:-ms-flexbox;display:flex;gap:20px}.mfui-blog-box-tile_view_thumbnail .mfui-blog-box-tile__picture{-ms-flex-negative:0;flex-shrink:0;height:102px;width:133px}@media screen and (min-width:1280px){.mfui-blog-box-tile_view_thumbnail .mfui-blog-box-tile__picture{height:130px;width:170px}}@media screen and (min-width:1440px){.mfui-blog-box-tile_view_thumbnail .mfui-blog-box-tile__picture{height:170px;width:233px}}.mfui-blog-box-tile_view_thumbnail .mfui-blog-box-tile__content{-ms-flex-item-align:center;align-self:center}.mfui-blog-box-tile_view_thumbnail .mfui-blog-box-tile__date{font-size:12px;line-height:18px}@media screen and (min-width:1280px){.mfui-blog-box-tile_view_thumbnail .mfui-blog-box-tile__date{font-size:15px;line-height:24px}}.mfui-blog-box-tile_view_thumbnail .mfui-blog-box-tile__title{font-size:18px;font-weight:500;letter-spacing:.5px;line-height:24px}@media screen and (min-width:1280px){.mfui-blog-box-tile_view_thumbnail .mfui-blog-box-tile__title{font-size:20px;line-height:28px}}.mfui-blog-box-tile_view_full .mfui-blog-box-tile__picture{height:358px}@media screen and (min-width:1280px){.mfui-blog-box-tile_view_full .mfui-blog-box-tile__picture{height:438px}}@media screen and (min-width:1440px){.mfui-blog-box-tile_view_full .mfui-blog-box-tile__picture{height:558px}}.mfui-blog-box-tile_view_full .mfui-blog-box-tile__content{background-color:var(--base);border-radius:24px;bottom:8px;left:8px;padding:16px;position:absolute;right:8px}@media screen and (min-width:768px) and (max-width:1023px){.mfui-blog-box-tile_view_full .mfui-blog-box-tile__content{padding:24px}}@media screen and (min-width:768px){.mfui-blog-box-tile_view_full .mfui-blog-box-tile__content{bottom:12px;left:12px;right:12px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-blog-box-tile_view_full .mfui-blog-box-tile__content{padding:16px}}@media screen and (min-width:1280px){.mfui-blog-box-tile_view_full .mfui-blog-box-tile__content{padding:24px}}.mfui-blog-box-tile_view_full .mfui-blog-box-tile__title{font-size:22px;font-weight:600;letter-spacing:.5px;line-height:28px}@media screen and (min-width:768px) and (max-width:1023px){.mfui-blog-box-tile_view_full .mfui-blog-box-tile__title{font-size:26px;line-height:32px}}@media screen and (min-width:1024px){.mfui-blog-box-tile_view_full .mfui-blog-box-tile__title{font-size:28px;line-height:36px}}@media screen and (min-width:1280px){.mfui-blog-box-tile_view_full .mfui-blog-box-tile__title{font-size:32px;line-height:40px}}.mfui-blog-box-tile_view_compact .mfui-blog-box-tile__picture{height:233px}@media screen and (min-width:1280px){.mfui-blog-box-tile_view_compact .mfui-blog-box-tile__picture{height:288px}}@media screen and (min-width:1440px){.mfui-blog-box-tile_view_compact .mfui-blog-box-tile__picture{height:367px}}.mfui-blog-box-tile_view_compact .mfui-blog-box-tile__content{background-color:var(--base);border-radius:24px;bottom:12px;left:12px;padding:16px;position:absolute;right:12px}.mfui-blog-box-tile_view_compact .mfui-blog-box-tile__title{font-size:18px;font-weight:500;letter-spacing:.5px;line-height:24px}@media screen and (min-width:1280px){.mfui-blog-box-tile_view_compact .mfui-blog-box-tile__title{font-size:20px;line-height:28px}}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { TileDataType, TileViewType } from '../types';
|
|
3
|
-
import './BlogBoxTile.scss';
|
|
4
|
-
type TileSettingsType = {
|
|
5
|
-
view: TileViewType;
|
|
6
|
-
};
|
|
7
|
-
export type BlogBoxTileType = TileDataType & TileSettingsType & {
|
|
8
|
-
classes?: {
|
|
9
|
-
title?: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
declare const BlogBoxTile: React.FC<BlogBoxTileType>;
|
|
13
|
-
export default BlogBoxTile;
|
|
@@ -1,70 +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 React = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _uiHelpers = require("@megafon/ui-helpers");
|
|
10
|
-
var _setRelAttribute = require("../../../helpers/setRelAttribute");
|
|
11
|
-
var _useResolutions2 = _interopRequireDefault(require("../../../hooks/useResolutions"));
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
14
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
15
|
-
var cn = (0, _uiHelpers.cnCreate)('mfui-blog-box-tile');
|
|
16
|
-
var BlogBoxTile = function BlogBoxTile(_ref) {
|
|
17
|
-
var date = _ref.date,
|
|
18
|
-
title = _ref.title,
|
|
19
|
-
href = _ref.href,
|
|
20
|
-
target = _ref.target,
|
|
21
|
-
rel = _ref.rel,
|
|
22
|
-
_ref$image = _ref.image,
|
|
23
|
-
srcMobile = _ref$image.srcMobile,
|
|
24
|
-
srcDesktop = _ref$image.srcDesktop,
|
|
25
|
-
srcThumbnail = _ref$image.srcThumbnail,
|
|
26
|
-
_ref$image$alt = _ref$image.alt,
|
|
27
|
-
alt = _ref$image$alt === void 0 ? 'image' : _ref$image$alt,
|
|
28
|
-
view = _ref.view,
|
|
29
|
-
classes = _ref.classes;
|
|
30
|
-
var _useResolutions = (0, _useResolutions2["default"])(),
|
|
31
|
-
isMobile = _useResolutions.isMobile;
|
|
32
|
-
var isViewThumbnail = view === 'thumbnail';
|
|
33
|
-
var currentRel = (0, _setRelAttribute.setRelAttribute)(rel, target);
|
|
34
|
-
var renderImage = function renderImage() {
|
|
35
|
-
if (isViewThumbnail) {
|
|
36
|
-
return isMobile ? null : /*#__PURE__*/React.createElement("picture", {
|
|
37
|
-
className: cn('picture')
|
|
38
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
39
|
-
className: cn('image'),
|
|
40
|
-
src: srcThumbnail,
|
|
41
|
-
alt: alt
|
|
42
|
-
}));
|
|
43
|
-
}
|
|
44
|
-
return /*#__PURE__*/React.createElement("picture", {
|
|
45
|
-
className: cn('picture')
|
|
46
|
-
}, /*#__PURE__*/React.createElement("source", {
|
|
47
|
-
media: "(min-width: ".concat(_uiHelpers.breakpoints.DESKTOP_SMALL_START, "px)"),
|
|
48
|
-
srcSet: srcDesktop
|
|
49
|
-
}), /*#__PURE__*/React.createElement("img", {
|
|
50
|
-
className: cn('image'),
|
|
51
|
-
src: srcMobile,
|
|
52
|
-
alt: alt
|
|
53
|
-
}));
|
|
54
|
-
};
|
|
55
|
-
return /*#__PURE__*/React.createElement("a", {
|
|
56
|
-
className: cn({
|
|
57
|
-
view: view
|
|
58
|
-
}),
|
|
59
|
-
href: href,
|
|
60
|
-
target: target,
|
|
61
|
-
rel: currentRel
|
|
62
|
-
}, renderImage(), /*#__PURE__*/React.createElement("div", {
|
|
63
|
-
className: cn('content')
|
|
64
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
65
|
-
className: cn('date')
|
|
66
|
-
}, date), /*#__PURE__*/React.createElement("div", {
|
|
67
|
-
className: cn('title', [classes === null || classes === void 0 ? void 0 : classes.title])
|
|
68
|
-
}, title)));
|
|
69
|
-
};
|
|
70
|
-
var _default = exports["default"] = BlogBoxTile;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
type TargetType = '_self' | '_blank' | '_parent' | '_top';
|
|
2
|
-
export type ButtonType = {
|
|
3
|
-
/** Название */
|
|
4
|
-
title: string;
|
|
5
|
-
/** Ссылка */
|
|
6
|
-
href: string;
|
|
7
|
-
/** Атрибут ссылки target */
|
|
8
|
-
target?: TargetType;
|
|
9
|
-
/** Атрибут ссылки rel */
|
|
10
|
-
rel?: string;
|
|
11
|
-
};
|
|
12
|
-
export type ImageType = {
|
|
13
|
-
/** Изображение на разрешении экрана 0-1023 */
|
|
14
|
-
srcMobile: string;
|
|
15
|
-
/** Изображение на разрешении экрана 1024+ */
|
|
16
|
-
srcDesktop: string;
|
|
17
|
-
/** Миниатюра */
|
|
18
|
-
srcThumbnail: string;
|
|
19
|
-
/** Значение тега alt для изображения */
|
|
20
|
-
alt?: string;
|
|
21
|
-
};
|
|
22
|
-
export type TileDataType = {
|
|
23
|
-
/** Дата */
|
|
24
|
-
date: string;
|
|
25
|
-
/** Заголовок */
|
|
26
|
-
title: string;
|
|
27
|
-
/** Изображение */
|
|
28
|
-
image: ImageType;
|
|
29
|
-
/** Ссылка */
|
|
30
|
-
href: string;
|
|
31
|
-
/** Атрибут ссылки target */
|
|
32
|
-
target?: TargetType;
|
|
33
|
-
/** Атрибут ссылки rel */
|
|
34
|
-
rel?: string;
|
|
35
|
-
};
|
|
36
|
-
export type TileViewType = 'full' | 'thumbnail' | 'compact';
|
|
37
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@charset "UTF-8";h1,h2,h3,h4,h5{margin:0}.mfui-breadcrumbs{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.mfui-breadcrumbs_color_default .mfui-breadcrumbs__item:before{color:var(--content)}.mfui-breadcrumbs_color_black .mfui-breadcrumbs__item:before{color:var(--stcBlack)}.mfui-breadcrumbs_color_white .mfui-breadcrumbs__item:before{color:var(--stcWhite)}.mfui-breadcrumbs_margin-top{margin-top:24px}.mfui-breadcrumbs__item{margin-right:10px;padding-left:26px;position:relative}.mfui-breadcrumbs__item:before{content:"→";left:0;position:absolute;top:-1px}.mfui-breadcrumbs__item:first-child{padding-left:0}.mfui-breadcrumbs__item:first-child:before{display:none}.mfui-breadcrumbs__item:last-child{pointer-events:none}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { TextColor } from './components/BreadcrumbsItem';
|
|
3
|
-
import './Breadcrumbs.scss';
|
|
4
|
-
type ItemObjectType = {
|
|
5
|
-
title?: string;
|
|
6
|
-
href?: string;
|
|
7
|
-
};
|
|
8
|
-
type ItemType = JSX.Element | ItemObjectType;
|
|
9
|
-
export type TextColorType = (typeof TextColor)[keyof typeof TextColor];
|
|
10
|
-
export type Props = {
|
|
11
|
-
/** Дополнительный класс корневого элемента */
|
|
12
|
-
className?: string;
|
|
13
|
-
/** Список элементов */
|
|
14
|
-
items: ItemType[];
|
|
15
|
-
/** Цвет */
|
|
16
|
-
color?: TextColorType;
|
|
17
|
-
/** Включить микроразметку */
|
|
18
|
-
hasMicrodata?: boolean;
|
|
19
|
-
/** Отключить на разрешении < 768 px */
|
|
20
|
-
disabledOnMobile?: boolean;
|
|
21
|
-
/** Отступ сверху */
|
|
22
|
-
hasMarginTop?: boolean;
|
|
23
|
-
/** Дополнительные классы для корневого и внутренних элементов */
|
|
24
|
-
classes?: {
|
|
25
|
-
item?: string;
|
|
26
|
-
itemTitle?: string;
|
|
27
|
-
lastItemTitle?: string;
|
|
28
|
-
link?: string;
|
|
29
|
-
};
|
|
30
|
-
/** Дополнительные data атрибуты к внутренним элементам */
|
|
31
|
-
dataAttrs?: {
|
|
32
|
-
root?: Record<string, string>;
|
|
33
|
-
item?: Record<string, string>;
|
|
34
|
-
itemInner?: Record<string, string>;
|
|
35
|
-
itemTitle?: Record<string, string>;
|
|
36
|
-
itemMeta?: Record<string, string>;
|
|
37
|
-
link?: Record<string, string>;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
declare const Breadcrumbs: React.FC<Props>;
|
|
41
|
-
export default Breadcrumbs;
|
|
@@ -1,75 +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.array.map.js");
|
|
10
|
-
require("core-js/modules/es.string.link.js");
|
|
11
|
-
var React = _interopRequireWildcard(require("react"));
|
|
12
|
-
var _uiHelpers = require("@megafon/ui-helpers");
|
|
13
|
-
var _useResolutions2 = _interopRequireDefault(require("../../hooks/useResolutions"));
|
|
14
|
-
var _BreadcrumbsItem = _interopRequireDefault(require("./components/BreadcrumbsItem"));
|
|
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 isObjectElement = function isObjectElement(item) {
|
|
19
|
-
return ! /*#__PURE__*/React.isValidElement(item);
|
|
20
|
-
};
|
|
21
|
-
var cn = (0, _uiHelpers.cnCreate)('mfui-breadcrumbs');
|
|
22
|
-
var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
23
|
-
var items = _ref.items,
|
|
24
|
-
_ref$color = _ref.color,
|
|
25
|
-
color = _ref$color === void 0 ? 'default' : _ref$color,
|
|
26
|
-
className = _ref.className,
|
|
27
|
-
_ref$classes = _ref.classes,
|
|
28
|
-
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
|
29
|
-
dataAttrs = _ref.dataAttrs,
|
|
30
|
-
_ref$hasMicrodata = _ref.hasMicrodata,
|
|
31
|
-
hasMicrodata = _ref$hasMicrodata === void 0 ? false : _ref$hasMicrodata,
|
|
32
|
-
_ref$disabledOnMobile = _ref.disabledOnMobile,
|
|
33
|
-
disabledOnMobile = _ref$disabledOnMobile === void 0 ? false : _ref$disabledOnMobile,
|
|
34
|
-
_ref$hasMarginTop = _ref.hasMarginTop,
|
|
35
|
-
hasMarginTop = _ref$hasMarginTop === void 0 ? false : _ref$hasMarginTop;
|
|
36
|
-
var _useResolutions = (0, _useResolutions2["default"])(),
|
|
37
|
-
isMobile = _useResolutions.isMobile;
|
|
38
|
-
if (isMobile && disabledOnMobile) {
|
|
39
|
-
return null;
|
|
40
|
-
}
|
|
41
|
-
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
|
|
42
|
-
className: cn({
|
|
43
|
-
color: color,
|
|
44
|
-
'margin-top': hasMarginTop
|
|
45
|
-
}, className)
|
|
46
|
-
}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), hasMicrodata && {
|
|
47
|
-
itemScope: true,
|
|
48
|
-
itemType: 'https://schema.org/BreadcrumbList'
|
|
49
|
-
}), items.map(function (item, i) {
|
|
50
|
-
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
|
|
51
|
-
className: cn('item', classes.item)
|
|
52
|
-
}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.item, i + 1), {
|
|
53
|
-
key: i
|
|
54
|
-
}), isObjectElement(item) ? /*#__PURE__*/React.createElement(_BreadcrumbsItem["default"], {
|
|
55
|
-
title: item.title,
|
|
56
|
-
href: item.href,
|
|
57
|
-
color: color,
|
|
58
|
-
index: i,
|
|
59
|
-
isLastItem: i === items.length - 1,
|
|
60
|
-
hasMicrodata: hasMicrodata,
|
|
61
|
-
dataAttrs: {
|
|
62
|
-
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.itemInner,
|
|
63
|
-
link: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.link,
|
|
64
|
-
itemTitle: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.itemTitle,
|
|
65
|
-
meta: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.itemMeta
|
|
66
|
-
},
|
|
67
|
-
classes: {
|
|
68
|
-
link: classes === null || classes === void 0 ? void 0 : classes.link,
|
|
69
|
-
itemTitle: classes === null || classes === void 0 ? void 0 : classes.itemTitle,
|
|
70
|
-
lastItemTitle: classes === null || classes === void 0 ? void 0 : classes.lastItemTitle
|
|
71
|
-
}
|
|
72
|
-
}) : item);
|
|
73
|
-
}));
|
|
74
|
-
};
|
|
75
|
-
var _default = exports["default"] = Breadcrumbs;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-breadcrumbs-item_color_default{color:var(--content)}.mfui-breadcrumbs-item_color_black{color:var(--stcBlack)}.mfui-breadcrumbs-item_color_white{color:var(--stcWhite)}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './BreadcrumbsItem.scss';
|
|
3
|
-
export declare const TextColor: {
|
|
4
|
-
readonly DEFAULT: "default";
|
|
5
|
-
readonly BLACK: "black";
|
|
6
|
-
readonly WHITE: "white";
|
|
7
|
-
};
|
|
8
|
-
type TextColorType = (typeof TextColor)[keyof typeof TextColor];
|
|
9
|
-
export type Props = {
|
|
10
|
-
title?: string;
|
|
11
|
-
href?: string;
|
|
12
|
-
color?: TextColorType;
|
|
13
|
-
index?: number;
|
|
14
|
-
isLastItem?: boolean;
|
|
15
|
-
hasMicrodata?: boolean;
|
|
16
|
-
classes?: {
|
|
17
|
-
link?: string;
|
|
18
|
-
itemTitle?: string;
|
|
19
|
-
lastItemTitle?: string;
|
|
20
|
-
};
|
|
21
|
-
dataAttrs?: {
|
|
22
|
-
root?: Record<string, string>;
|
|
23
|
-
link?: Record<string, string>;
|
|
24
|
-
itemTitle?: Record<string, string>;
|
|
25
|
-
meta?: Record<string, string>;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
declare const BreadcrumbsItem: React.FC<Props>;
|
|
29
|
-
export default BreadcrumbsItem;
|
|
@@ -1,66 +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.TextColor = void 0;
|
|
8
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
-
require("core-js/modules/es.string.link.js");
|
|
10
|
-
var React = _interopRequireWildcard(require("react"));
|
|
11
|
-
var _uiCore = require("@megafon/ui-core");
|
|
12
|
-
var _uiHelpers = require("@megafon/ui-helpers");
|
|
13
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
14
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
15
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
16
|
-
var TextColor = exports.TextColor = {
|
|
17
|
-
DEFAULT: 'default',
|
|
18
|
-
BLACK: 'black',
|
|
19
|
-
WHITE: 'white'
|
|
20
|
-
};
|
|
21
|
-
var cn = (0, _uiHelpers.cnCreate)('mfui-breadcrumbs-item');
|
|
22
|
-
var BreadcrumbsItem = function BreadcrumbsItem(_ref) {
|
|
23
|
-
var title = _ref.title,
|
|
24
|
-
href = _ref.href,
|
|
25
|
-
color = _ref.color,
|
|
26
|
-
_ref$index = _ref.index,
|
|
27
|
-
index = _ref$index === void 0 ? 0 : _ref$index,
|
|
28
|
-
_ref$isLastItem = _ref.isLastItem,
|
|
29
|
-
isLastItem = _ref$isLastItem === void 0 ? false : _ref$isLastItem,
|
|
30
|
-
_ref$hasMicrodata = _ref.hasMicrodata,
|
|
31
|
-
hasMicrodata = _ref$hasMicrodata === void 0 ? false : _ref$hasMicrodata,
|
|
32
|
-
classes = _ref.classes,
|
|
33
|
-
dataAttrs = _ref.dataAttrs;
|
|
34
|
-
if (isLastItem) {
|
|
35
|
-
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
|
|
36
|
-
className: cn({
|
|
37
|
-
color: color
|
|
38
|
-
})
|
|
39
|
-
}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root, index + 1)), /*#__PURE__*/React.createElement("span", (0, _extends2["default"])({
|
|
40
|
-
className: classes === null || classes === void 0 ? void 0 : classes.lastItemTitle
|
|
41
|
-
}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.itemTitle, index + 1)), title));
|
|
42
|
-
}
|
|
43
|
-
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
|
|
44
|
-
className: cn()
|
|
45
|
-
}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root, index + 1), hasMicrodata && {
|
|
46
|
-
itemScope: true,
|
|
47
|
-
itemProp: 'itemListElement',
|
|
48
|
-
itemType: 'https://schema.org/ListItem'
|
|
49
|
-
}), /*#__PURE__*/React.createElement(_uiCore.TextLink, {
|
|
50
|
-
className: classes === null || classes === void 0 ? void 0 : classes.link,
|
|
51
|
-
href: href,
|
|
52
|
-
color: color,
|
|
53
|
-
dataAttrs: {
|
|
54
|
-
root: (dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.link) ? (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.link, index + 1)) : undefined
|
|
55
|
-
},
|
|
56
|
-
itemProp: hasMicrodata ? 'item' : undefined
|
|
57
|
-
}, /*#__PURE__*/React.createElement("span", (0, _extends2["default"])({
|
|
58
|
-
className: classes === null || classes === void 0 ? void 0 : classes.itemTitle
|
|
59
|
-
}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.itemTitle, index + 1), hasMicrodata && {
|
|
60
|
-
itemProp: 'name'
|
|
61
|
-
}), title)), hasMicrodata && /*#__PURE__*/React.createElement("meta", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.meta, index + 1), {
|
|
62
|
-
itemProp: "position",
|
|
63
|
-
content: String(index + 1)
|
|
64
|
-
})));
|
|
65
|
-
};
|
|
66
|
-
var _default = exports["default"] = BreadcrumbsItem;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-button-banner{background-color:var(--base);border:1px solid var(--spbSky2);border-radius:0 12px 12px 0;position:relative}@media screen and (max-width:767px){.mfui-button-banner{border-radius:0 0 12px 12px}}.mfui-button-banner:before{background-color:var(--brandGreen);border-radius:0 12px 12px 0;bottom:0;content:"";left:0;position:absolute;top:0;width:12px}@media screen and (max-width:767px){.mfui-button-banner:before{border-radius:0 0 12px 12px;bottom:auto;height:12px;right:0;width:auto}}.mfui-button-banner__content{-webkit-box-sizing:border-box;box-sizing:border-box}@media screen and (max-width:767px){.mfui-button-banner__content{padding:36px 16px 32px;text-align:center}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-button-banner__content{padding:32px 0}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-button-banner__content{padding:40px 0}}@media screen and (min-width:1280px){.mfui-button-banner__content{padding:48px 0}}.mfui-button-banner__media{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;background-position:50%;background-repeat:no-repeat;border-radius:0 12px 12px 0;height:100%;justify-content:center;overflow:hidden;padding:0 20px}@media screen and (max-width:767px){.mfui-button-banner__media{border-radius:0 0 12px 12px;height:auto;padding:0 16px 24px}}.mfui-button-banner_scaling_cover .mfui-button-banner__media{background-size:cover}.mfui-button-banner_scaling_contain .mfui-button-banner__media{background-size:contain}.mfui-button-banner__header{margin-bottom:16px}.mfui-button-banner__button{max-width:100%}.mfui-button-banner__text{font-size:15px;font-weight:400;line-height:24px}.mfui-button-banner_image .mfui-button-banner__media{padding:0}@media screen and (max-width:767px){.mfui-button-banner_image .mfui-button-banner__media{height:222px}}.mfui-button-banner_image .mfui-button-banner__text{margin-bottom:32px}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './ButtonBanner.scss';
|
|
3
|
-
export declare const ButtonColor: {
|
|
4
|
-
readonly GREEN: "green";
|
|
5
|
-
readonly PURPLE: "purple";
|
|
6
|
-
};
|
|
7
|
-
type ButtonColorType = (typeof ButtonColor)[keyof typeof ButtonColor];
|
|
8
|
-
export declare const ButtonTypes: {
|
|
9
|
-
readonly PRIMARY: "primary";
|
|
10
|
-
readonly OUTLINE: "outline";
|
|
11
|
-
};
|
|
12
|
-
type ButtonTypesType = (typeof ButtonTypes)[keyof typeof ButtonTypes];
|
|
13
|
-
export declare const ButtonTarget: {
|
|
14
|
-
readonly SELF: "_self";
|
|
15
|
-
readonly BLANK: "_blank";
|
|
16
|
-
};
|
|
17
|
-
type ButtonTargetType = (typeof ButtonTarget)[keyof typeof ButtonTarget];
|
|
18
|
-
export declare const ImageScaling: {
|
|
19
|
-
readonly COVER: "cover";
|
|
20
|
-
readonly CONTAIN: "contain";
|
|
21
|
-
};
|
|
22
|
-
type ImageScalingType = (typeof ImageScaling)[keyof typeof ImageScaling];
|
|
23
|
-
export interface IButtonBannerProps {
|
|
24
|
-
/** Дополнительные data атрибуты к внутренним элементам */
|
|
25
|
-
dataAttrs?: {
|
|
26
|
-
root?: Record<string, string>;
|
|
27
|
-
button?: Record<string, string>;
|
|
28
|
-
};
|
|
29
|
-
/** Дополнительный css класс для корневого элемента */
|
|
30
|
-
className?: string;
|
|
31
|
-
/** Дополнительный css классы для корневого и внутренних элементов */
|
|
32
|
-
classes?: {
|
|
33
|
-
root?: string;
|
|
34
|
-
button?: string;
|
|
35
|
-
};
|
|
36
|
-
/** Ссылка на корневой элемент */
|
|
37
|
-
rootRef?: React.Ref<HTMLDivElement>;
|
|
38
|
-
/** Заголовок */
|
|
39
|
-
title: string;
|
|
40
|
-
/** Текст */
|
|
41
|
-
text: string | React.ReactNode | React.ReactNode[];
|
|
42
|
-
/** URL изображения */
|
|
43
|
-
imageUrl?: string;
|
|
44
|
-
/** Текст кнопки */
|
|
45
|
-
buttonText: string;
|
|
46
|
-
/** URL кнопки */
|
|
47
|
-
buttonUrl?: string;
|
|
48
|
-
/** Download - свойство тега <a> */
|
|
49
|
-
buttonDownload?: boolean;
|
|
50
|
-
/** Target - свойство тега <a> */
|
|
51
|
-
buttonTarget?: ButtonTargetType;
|
|
52
|
-
/** Цвет кнопки */
|
|
53
|
-
buttonColor?: ButtonColorType;
|
|
54
|
-
/** Тип кнопки */
|
|
55
|
-
buttonType?: ButtonTypesType;
|
|
56
|
-
/** Rel - атрибут тега <a> */
|
|
57
|
-
buttonRel?: string;
|
|
58
|
-
/** Масштабирование изображения */
|
|
59
|
-
imageScaling?: ImageScalingType;
|
|
60
|
-
/** Обработчик клика по кнопке */
|
|
61
|
-
onButtonClick?: (e: React.SyntheticEvent<EventTarget>) => void;
|
|
62
|
-
}
|
|
63
|
-
declare const ButtonBanner: React.FC<IButtonBannerProps>;
|
|
64
|
-
export default ButtonBanner;
|