@megafon/ui-shared 8.13.2 → 8.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -5
- package/dist/es/components/AccordionBox/AccordionBox.css +0 -1
- package/dist/es/components/AccordionBox/AccordionBox.d.ts +0 -49
- package/dist/es/components/AccordionBox/AccordionBox.js +0 -42
- package/dist/es/components/AudioPlayer/AudioPlayer.d.ts +0 -10
- package/dist/es/components/AudioPlayer/AudioPlayer.js +0 -107
- package/dist/es/components/AudioPlayer/AudioProgress.d.ts +0 -14
- package/dist/es/components/AudioPlayer/AudioProgress.js +0 -96
- package/dist/es/components/AudioPlayer/AudioRange.d.ts +0 -15
- package/dist/es/components/AudioPlayer/AudioRange.js +0 -31
- package/dist/es/components/AudioPlayer/AudioVolume.d.ts +0 -7
- package/dist/es/components/AudioPlayer/AudioVolume.js +0 -77
- package/dist/es/components/AudioPlayer/hooks/useTrackDuration.d.ts +0 -3
- package/dist/es/components/AudioPlayer/hooks/useTrackDuration.js +0 -26
- package/dist/es/components/AudioPlayer/style/AudioPlayer.css +0 -1
- package/dist/es/components/AudioPlayer/style/AudioProgress.css +0 -1
- package/dist/es/components/AudioPlayer/style/AudioRange.css +0 -1
- package/dist/es/components/AudioPlayer/style/AudioVolume.css +0 -1
- package/dist/es/components/AudioPlayer/timerFormatUtil.d.ts +0 -2
- package/dist/es/components/AudioPlayer/timerFormatUtil.js +0 -25
- package/dist/es/components/BannerBox/BannerBox.d.ts +0 -5
- package/dist/es/components/BannerBox/BannerBox.js +0 -22
- package/dist/es/components/BenefitsIcons/BenefitsIcons.d.ts +0 -30
- package/dist/es/components/BenefitsIcons/BenefitsIcons.js +0 -104
- package/dist/es/components/BenefitsIcons/BenefitsIconsTile.d.ts +0 -10
- package/dist/es/components/BenefitsIcons/BenefitsIconsTile.js +0 -51
- package/dist/es/components/BenefitsIcons/helpers.d.ts +0 -8
- package/dist/es/components/BenefitsIcons/helpers.js +0 -102
- package/dist/es/components/BenefitsIcons/style/BenefitsIcons.css +0 -1
- package/dist/es/components/BenefitsIcons/style/BenefitsIconsTile.css +0 -1
- package/dist/es/components/BenefitsIcons/types.d.ts +0 -54
- package/dist/es/components/BenefitsIcons/types.js +0 -17
- package/dist/es/components/BenefitsPictures/BenefitsPictures.d.ts +0 -27
- package/dist/es/components/BenefitsPictures/BenefitsPictures.js +0 -111
- package/dist/es/components/BenefitsPictures/BenfitsPictures.css +0 -1
- package/dist/es/components/BenefitsPictures/helpers.d.ts +0 -11
- package/dist/es/components/BenefitsPictures/helpers.js +0 -85
- package/dist/es/components/BenefitsPictures/types.d.ts +0 -24
- package/dist/es/components/BenefitsPictures/types.js +0 -1
- package/dist/es/components/BlogBox/BlogBox.css +0 -1
- package/dist/es/components/BlogBox/BlogBox.d.ts +0 -31
- package/dist/es/components/BlogBox/BlogBox.js +0 -72
- package/dist/es/components/BlogBox/components/BlogBoxTile.css +0 -1
- package/dist/es/components/BlogBox/components/BlogBoxTile.d.ts +0 -13
- package/dist/es/components/BlogBox/components/BlogBoxTile.js +0 -61
- package/dist/es/components/BlogBox/types.d.ts +0 -37
- package/dist/es/components/BlogBox/types.js +0 -1
- package/dist/es/components/Breadcrumbs/Breadcrumbs.css +0 -1
- package/dist/es/components/Breadcrumbs/Breadcrumbs.d.ts +0 -41
- package/dist/es/components/Breadcrumbs/Breadcrumbs.js +0 -66
- package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.css +0 -1
- package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.d.ts +0 -29
- package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.js +0 -57
- package/dist/es/components/ButtonBanner/ButtonBanner.css +0 -1
- package/dist/es/components/ButtonBanner/ButtonBanner.d.ts +0 -64
- package/dist/es/components/ButtonBanner/ButtonBanner.js +0 -96
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.css +0 -1
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.d.ts +0 -52
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.js +0 -65
- package/dist/es/components/ButtonsBox/ButtonsBox.css +0 -1
- package/dist/es/components/ButtonsBox/ButtonsBox.d.ts +0 -48
- package/dist/es/components/ButtonsBox/ButtonsBox.js +0 -47
- package/dist/es/components/Card/Card.css +0 -1
- package/dist/es/components/Card/Card.d.ts +0 -55
- package/dist/es/components/Card/Card.js +0 -229
- package/dist/es/components/Card/types.d.ts +0 -86
- package/dist/es/components/Card/types.js +0 -1
- package/dist/es/components/CardsBox/CardsBox.d.ts +0 -14
- package/dist/es/components/CardsBox/CardsBox.js +0 -26
- package/dist/es/components/CardsBox/helpers.d.ts +0 -10
- package/dist/es/components/CardsBox/helpers.js +0 -21
- package/dist/es/components/CarouselBox/CarouselBox.d.ts +0 -10
- package/dist/es/components/CarouselBox/CarouselBox.js +0 -45
- package/dist/es/components/ChipsBox/ChipBox.d.ts +0 -5
- package/dist/es/components/ChipsBox/ChipBox.js +0 -7
- package/dist/es/components/ChipsBox/ChipsBox.css +0 -1
- package/dist/es/components/ChipsBox/ChipsBox.d.ts +0 -16
- package/dist/es/components/ChipsBox/ChipsBox.js +0 -76
- package/dist/es/components/Container/Container.css +0 -1
- package/dist/es/components/Container/Container.d.ts +0 -41
- package/dist/es/components/Container/Container.js +0 -46
- package/dist/es/components/DarkGradientCards/DarkGradientCards.css +0 -1
- package/dist/es/components/DarkGradientCards/DarkGradientCards.d.ts +0 -33
- package/dist/es/components/DarkGradientCards/DarkGradientCards.js +0 -66
- package/dist/es/components/DarkGradientCards/components/DarkGradientCard.css +0 -1
- package/dist/es/components/DarkGradientCards/components/DarkGradientCard.d.ts +0 -16
- package/dist/es/components/DarkGradientCards/components/DarkGradientCard.js +0 -50
- package/dist/es/components/DarkGradientCards/types.d.ts +0 -20
- package/dist/es/components/DarkGradientCards/types.js +0 -1
- package/dist/es/components/DownloadLinks/DownloadLink.css +0 -1
- package/dist/es/components/DownloadLinks/DownloadLink.d.ts +0 -36
- package/dist/es/components/DownloadLinks/DownloadLink.js +0 -61
- package/dist/es/components/DownloadLinks/DownloadLinks.css +0 -1
- package/dist/es/components/DownloadLinks/DownloadLinks.d.ts +0 -20
- package/dist/es/components/DownloadLinks/DownloadLinks.js +0 -64
- package/dist/es/components/FaqWrapper/FaqWrapper.d.ts +0 -6
- package/dist/es/components/FaqWrapper/FaqWrapper.js +0 -9
- package/dist/es/components/ImageBanner/ImageBanner.css +0 -1
- package/dist/es/components/ImageBanner/ImageBanner.d.ts +0 -94
- package/dist/es/components/ImageBanner/ImageBanner.js +0 -164
- package/dist/es/components/InfoCards/InfoCards.css +0 -1
- package/dist/es/components/InfoCards/InfoCards.d.ts +0 -24
- package/dist/es/components/InfoCards/InfoCards.js +0 -44
- package/dist/es/components/InfoCards/components/InfoCard/InfoCard.css +0 -1
- package/dist/es/components/InfoCards/components/InfoCard/InfoCard.d.ts +0 -19
- package/dist/es/components/InfoCards/components/InfoCard/InfoCard.js +0 -85
- package/dist/es/components/InfoCards/types.d.ts +0 -31
- package/dist/es/components/InfoCards/types.js +0 -1
- package/dist/es/components/Instructions/Instructions.css +0 -1
- package/dist/es/components/Instructions/Instructions.d.ts +0 -120
- package/dist/es/components/Instructions/Instructions.js +0 -362
- package/dist/es/components/Instructions/img/android-new.png +0 -0
- package/dist/es/components/Instructions/img/android.png +0 -0
- package/dist/es/components/Instructions/img/blackIphone.png +0 -0
- package/dist/es/components/Instructions/img/iphone-new.png +0 -0
- package/dist/es/components/Instructions/img/iphone12.png +0 -0
- package/dist/es/components/Instructions/img/iphone15.png +0 -0
- package/dist/es/components/Instructions/img/laptop-new.png +0 -0
- package/dist/es/components/Instructions/img/laptop.png +0 -0
- package/dist/es/components/Instructions/img/newIphone.png +0 -0
- package/dist/es/components/Instructions/img/whiteIphone.png +0 -0
- package/dist/es/components/NotificationBox/NotificationBox.css +0 -1
- package/dist/es/components/NotificationBox/NotificationBox.d.ts +0 -15
- package/dist/es/components/NotificationBox/NotificationBox.js +0 -35
- package/dist/es/components/NumbersBox/NumbersBox.css +0 -1
- package/dist/es/components/NumbersBox/NumbersBox.d.ts +0 -35
- package/dist/es/components/NumbersBox/NumbersBox.js +0 -72
- package/dist/es/components/NumbersBox/components/NumbersCard/NumbersCard.css +0 -1
- package/dist/es/components/NumbersBox/components/NumbersCard/NumbersCard.d.ts +0 -16
- package/dist/es/components/NumbersBox/components/NumbersCard/NumbersCard.js +0 -28
- package/dist/es/components/NumbersBox/types.d.ts +0 -7
- package/dist/es/components/NumbersBox/types.js +0 -1
- package/dist/es/components/PageTitle/PageTitle.css +0 -1
- package/dist/es/components/PageTitle/PageTitle.d.ts +0 -36
- package/dist/es/components/PageTitle/PageTitle.js +0 -74
- package/dist/es/components/Partners/Partners.css +0 -1
- package/dist/es/components/Partners/Partners.d.ts +0 -37
- package/dist/es/components/Partners/Partners.js +0 -111
- package/dist/es/components/PictureBox/PictureBox.css +0 -1
- package/dist/es/components/PictureBox/PictureBox.d.ts +0 -48
- package/dist/es/components/PictureBox/PictureBox.js +0 -96
- package/dist/es/components/PictureBox/img/mac-book-1x.png +0 -0
- package/dist/es/components/PictureBox/img/mac-book-2x.png +0 -0
- package/dist/es/components/PictureWithDescription/PictureWithDescription.css +0 -1
- package/dist/es/components/PictureWithDescription/PictureWithDescription.d.ts +0 -32
- package/dist/es/components/PictureWithDescription/PictureWithDescription.js +0 -48
- package/dist/es/components/PromoBanner/PromoBanner.d.ts +0 -5
- package/dist/es/components/PromoBanner/PromoBanner.js +0 -26
- package/dist/es/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.css +0 -1
- package/dist/es/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.d.ts +0 -82
- package/dist/es/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.js +0 -142
- package/dist/es/components/PromoCards/PromoCards.d.ts +0 -33
- package/dist/es/components/PromoCards/PromoCards.js +0 -61
- package/dist/es/components/PromoCards/components/PromoCard/PromoCard.css +0 -1
- package/dist/es/components/PromoCards/components/PromoCard/PromoCard.d.ts +0 -25
- package/dist/es/components/PromoCards/components/PromoCard/PromoCard.js +0 -175
- package/dist/es/components/PromoCards/types.d.ts +0 -62
- package/dist/es/components/PromoCards/types.js +0 -1
- package/dist/es/components/Property/Property.d.ts +0 -5
- package/dist/es/components/Property/Property.js +0 -10
- package/dist/es/components/ServiceCards/ServiceCards.css +0 -1
- package/dist/es/components/ServiceCards/ServiceCards.d.ts +0 -28
- package/dist/es/components/ServiceCards/ServiceCards.js +0 -42
- package/dist/es/components/ServiceCards/components/ServiceCard/ServiceCard.css +0 -1
- package/dist/es/components/ServiceCards/components/ServiceCard/ServiceCard.d.ts +0 -19
- package/dist/es/components/ServiceCards/components/ServiceCard/ServiceCard.js +0 -81
- package/dist/es/components/ServiceCards/types.d.ts +0 -26
- package/dist/es/components/ServiceCards/types.js +0 -1
- package/dist/es/components/SidePictureCards/SidePictureCards.d.ts +0 -31
- package/dist/es/components/SidePictureCards/SidePictureCards.js +0 -69
- package/dist/es/components/SidePictureCards/components/SidePictureCard.css +0 -1
- package/dist/es/components/SidePictureCards/components/SidePictureCard.d.ts +0 -18
- package/dist/es/components/SidePictureCards/components/SidePictureCard.js +0 -94
- package/dist/es/components/SidePictureCards/types.d.ts +0 -48
- package/dist/es/components/SidePictureCards/types.js +0 -1
- package/dist/es/components/Stepper/Stepper.css +0 -1
- package/dist/es/components/Stepper/Stepper.d.ts +0 -52
- package/dist/es/components/Stepper/Stepper.js +0 -159
- package/dist/es/components/Stepper/StepperItem.css +0 -1
- package/dist/es/components/Stepper/StepperItem.d.ts +0 -57
- package/dist/es/components/Stepper/StepperItem.js +0 -99
- package/dist/es/components/Stepper/img/separator-mobile.png +0 -0
- package/dist/es/components/Stepper/img/separator-vertical.png +0 -0
- package/dist/es/components/Stepper/img/separator.png +0 -0
- package/dist/es/components/Steps/Steps.css +0 -1
- package/dist/es/components/Steps/Steps.d.ts +0 -21
- package/dist/es/components/Steps/Steps.js +0 -32
- package/dist/es/components/Steps/StepsItem.css +0 -1
- package/dist/es/components/Steps/StepsItem.d.ts +0 -10
- package/dist/es/components/Steps/StepsItem.js +0 -21
- package/dist/es/components/StoreBanner/StoreBanner.css +0 -1
- package/dist/es/components/StoreBanner/StoreBanner.d.ts +0 -101
- package/dist/es/components/StoreBanner/StoreBanner.js +0 -200
- package/dist/es/components/StoreBanner/img/android.png +0 -0
- package/dist/es/components/StoreBanner/img/black-iphone.png +0 -0
- package/dist/es/components/StoreBanner/img/iphone12.png +0 -0
- package/dist/es/components/StoreBanner/img/new-iphone.png +0 -0
- package/dist/es/components/StoreBanner/img/white-iphone.png +0 -0
- package/dist/es/components/StoreButton/StoreButton.css +0 -1
- package/dist/es/components/StoreButton/StoreButton.d.ts +0 -36
- package/dist/es/components/StoreButton/StoreButton.js +0 -60
- package/dist/es/components/StoreButton/img/app-store-large.png +0 -0
- package/dist/es/components/StoreButton/img/app-store.png +0 -0
- package/dist/es/components/StoreButton/img/galaxy-store-large.png +0 -0
- package/dist/es/components/StoreButton/img/galaxy-store.png +0 -0
- package/dist/es/components/StoreButton/img/google-play-large.png +0 -0
- package/dist/es/components/StoreButton/img/google-play.png +0 -0
- package/dist/es/components/StoreButton/img/huawei-store-large.png +0 -0
- package/dist/es/components/StoreButton/img/huawei-store.png +0 -0
- package/dist/es/components/StoreButton/img/mi-store-large.png +0 -0
- package/dist/es/components/StoreButton/img/mi-store.png +0 -0
- package/dist/es/components/StoreButton/img/ru-store-large.png +0 -0
- package/dist/es/components/StoreButton/img/ru-store.png +0 -0
- package/dist/es/components/StoreButton/img/v-appstore-large.png +0 -0
- package/dist/es/components/StoreButton/img/v-appstore.png +0 -0
- package/dist/es/components/Table/Table.css +0 -1
- package/dist/es/components/Table/Table.d.ts +0 -18
- package/dist/es/components/Table/Table.js +0 -127
- package/dist/es/components/Table/TableCell.d.ts +0 -6
- package/dist/es/components/Table/TableCell.js +0 -6
- package/dist/es/components/Table/TableRow.d.ts +0 -11
- package/dist/es/components/Table/TableRow.js +0 -7
- package/dist/es/components/TabsBox/TabBox.d.ts +0 -2
- package/dist/es/components/TabsBox/TabBox.js +0 -2
- package/dist/es/components/TabsBox/TabsBox.d.ts +0 -8
- package/dist/es/components/TabsBox/TabsBox.js +0 -24
- package/dist/es/components/TextBox/TextBox.css +0 -1
- package/dist/es/components/TextBox/TextBox.d.ts +0 -17
- package/dist/es/components/TextBox/TextBox.js +0 -43
- package/dist/es/components/TextBox/TextBoxPicture.css +0 -1
- package/dist/es/components/TextBox/TextBoxPicture.d.ts +0 -21
- package/dist/es/components/TextBox/TextBoxPicture.js +0 -30
- package/dist/es/components/TextWithIcon/TextWithIcon.css +0 -1
- package/dist/es/components/TextWithIcon/TextWithIcon.d.ts +0 -21
- package/dist/es/components/TextWithIcon/TextWithIcon.js +0 -41
- package/dist/es/components/TextWithIcon/TextWithIconItem.css +0 -1
- package/dist/es/components/TextWithIcon/TextWithIconItem.d.ts +0 -25
- package/dist/es/components/TextWithIcon/TextWithIconItem.js +0 -40
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.css +0 -1
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +0 -22
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.js +0 -60
- package/dist/es/components/VideoBanner/VideoBanner.css +0 -1
- package/dist/es/components/VideoBanner/VideoBanner.d.ts +0 -112
- package/dist/es/components/VideoBanner/VideoBanner.js +0 -245
- package/dist/es/components/VideoBlock/VideoBlock.css +0 -1
- package/dist/es/components/VideoBlock/VideoBlock.d.ts +0 -63
- package/dist/es/components/VideoBlock/VideoBlock.js +0 -230
- package/dist/es/constants/throttleTime.d.ts +0 -4
- package/dist/es/constants/throttleTime.js +0 -3
- package/dist/es/helpers/getColumnConfig.d.ts +0 -6
- package/dist/es/helpers/getColumnConfig.js +0 -10
- package/dist/es/helpers/setRelAttribute.d.ts +0 -3
- package/dist/es/helpers/setRelAttribute.js +0 -9
- package/dist/es/hooks/useResolutions.d.ts +0 -8
- package/dist/es/hooks/useResolutions.js +0 -62
- package/dist/es/index.d.ts +0 -67
- package/dist/es/index.js +0 -67
- package/dist/lib/components/AccordionBox/AccordionBox.css +0 -1
- package/dist/lib/components/AccordionBox/AccordionBox.d.ts +0 -49
- package/dist/lib/components/AccordionBox/AccordionBox.js +0 -51
- package/dist/lib/components/AudioPlayer/AudioPlayer.d.ts +0 -10
- package/dist/lib/components/AudioPlayer/AudioPlayer.js +0 -116
- package/dist/lib/components/AudioPlayer/AudioProgress.d.ts +0 -14
- package/dist/lib/components/AudioPlayer/AudioProgress.js +0 -102
- package/dist/lib/components/AudioPlayer/AudioRange.d.ts +0 -15
- package/dist/lib/components/AudioPlayer/AudioRange.js +0 -37
- package/dist/lib/components/AudioPlayer/AudioVolume.d.ts +0 -7
- package/dist/lib/components/AudioPlayer/AudioVolume.js +0 -83
- package/dist/lib/components/AudioPlayer/hooks/useTrackDuration.d.ts +0 -3
- package/dist/lib/components/AudioPlayer/hooks/useTrackDuration.js +0 -33
- package/dist/lib/components/AudioPlayer/style/AudioPlayer.css +0 -1
- package/dist/lib/components/AudioPlayer/style/AudioProgress.css +0 -1
- package/dist/lib/components/AudioPlayer/style/AudioRange.css +0 -1
- package/dist/lib/components/AudioPlayer/style/AudioVolume.css +0 -1
- package/dist/lib/components/AudioPlayer/timerFormatUtil.d.ts +0 -2
- package/dist/lib/components/AudioPlayer/timerFormatUtil.js +0 -31
- package/dist/lib/components/BannerBox/BannerBox.d.ts +0 -5
- package/dist/lib/components/BannerBox/BannerBox.js +0 -31
- package/dist/lib/components/BenefitsIcons/BenefitsIcons.d.ts +0 -30
- package/dist/lib/components/BenefitsIcons/BenefitsIcons.js +0 -113
- package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.d.ts +0 -10
- package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.js +0 -60
- package/dist/lib/components/BenefitsIcons/helpers.d.ts +0 -8
- package/dist/lib/components/BenefitsIcons/helpers.js +0 -108
- package/dist/lib/components/BenefitsIcons/style/BenefitsIcons.css +0 -1
- package/dist/lib/components/BenefitsIcons/style/BenefitsIconsTile.css +0 -1
- package/dist/lib/components/BenefitsIcons/types.d.ts +0 -54
- package/dist/lib/components/BenefitsIcons/types.js +0 -23
- package/dist/lib/components/BenefitsPictures/BenefitsPictures.d.ts +0 -27
- package/dist/lib/components/BenefitsPictures/BenefitsPictures.js +0 -120
- package/dist/lib/components/BenefitsPictures/BenfitsPictures.css +0 -1
- package/dist/lib/components/BenefitsPictures/helpers.d.ts +0 -11
- package/dist/lib/components/BenefitsPictures/helpers.js +0 -91
- package/dist/lib/components/BenefitsPictures/types.d.ts +0 -24
- package/dist/lib/components/BenefitsPictures/types.js +0 -5
- package/dist/lib/components/BlogBox/BlogBox.css +0 -1
- package/dist/lib/components/BlogBox/BlogBox.d.ts +0 -31
- package/dist/lib/components/BlogBox/BlogBox.js +0 -81
- package/dist/lib/components/BlogBox/components/BlogBoxTile.css +0 -1
- package/dist/lib/components/BlogBox/components/BlogBoxTile.d.ts +0 -13
- package/dist/lib/components/BlogBox/components/BlogBoxTile.js +0 -70
- package/dist/lib/components/BlogBox/types.d.ts +0 -37
- package/dist/lib/components/BlogBox/types.js +0 -5
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.css +0 -1
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.d.ts +0 -41
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.js +0 -75
- package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.css +0 -1
- package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.d.ts +0 -29
- package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.js +0 -66
- package/dist/lib/components/ButtonBanner/ButtonBanner.css +0 -1
- package/dist/lib/components/ButtonBanner/ButtonBanner.d.ts +0 -64
- package/dist/lib/components/ButtonBanner/ButtonBanner.js +0 -105
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.css +0 -1
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.d.ts +0 -52
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.js +0 -74
- package/dist/lib/components/ButtonsBox/ButtonsBox.css +0 -1
- package/dist/lib/components/ButtonsBox/ButtonsBox.d.ts +0 -48
- package/dist/lib/components/ButtonsBox/ButtonsBox.js +0 -56
- package/dist/lib/components/Card/Card.css +0 -1
- package/dist/lib/components/Card/Card.d.ts +0 -55
- package/dist/lib/components/Card/Card.js +0 -238
- package/dist/lib/components/Card/types.d.ts +0 -86
- package/dist/lib/components/Card/types.js +0 -5
- package/dist/lib/components/CardsBox/CardsBox.d.ts +0 -14
- package/dist/lib/components/CardsBox/CardsBox.js +0 -36
- package/dist/lib/components/CardsBox/helpers.d.ts +0 -10
- package/dist/lib/components/CardsBox/helpers.js +0 -28
- package/dist/lib/components/CarouselBox/CarouselBox.d.ts +0 -10
- package/dist/lib/components/CarouselBox/CarouselBox.js +0 -55
- package/dist/lib/components/ChipsBox/ChipBox.d.ts +0 -5
- package/dist/lib/components/ChipsBox/ChipBox.js +0 -17
- package/dist/lib/components/ChipsBox/ChipsBox.css +0 -1
- package/dist/lib/components/ChipsBox/ChipsBox.d.ts +0 -16
- package/dist/lib/components/ChipsBox/ChipsBox.js +0 -85
- package/dist/lib/components/Container/Container.css +0 -1
- package/dist/lib/components/Container/Container.d.ts +0 -41
- package/dist/lib/components/Container/Container.js +0 -54
- package/dist/lib/components/DarkGradientCards/DarkGradientCards.css +0 -1
- package/dist/lib/components/DarkGradientCards/DarkGradientCards.d.ts +0 -33
- package/dist/lib/components/DarkGradientCards/DarkGradientCards.js +0 -75
- package/dist/lib/components/DarkGradientCards/components/DarkGradientCard.css +0 -1
- package/dist/lib/components/DarkGradientCards/components/DarkGradientCard.d.ts +0 -16
- package/dist/lib/components/DarkGradientCards/components/DarkGradientCard.js +0 -59
- package/dist/lib/components/DarkGradientCards/types.d.ts +0 -20
- package/dist/lib/components/DarkGradientCards/types.js +0 -5
- package/dist/lib/components/DownloadLinks/DownloadLink.css +0 -1
- package/dist/lib/components/DownloadLinks/DownloadLink.d.ts +0 -36
- package/dist/lib/components/DownloadLinks/DownloadLink.js +0 -70
- package/dist/lib/components/DownloadLinks/DownloadLinks.css +0 -1
- package/dist/lib/components/DownloadLinks/DownloadLinks.d.ts +0 -20
- package/dist/lib/components/DownloadLinks/DownloadLinks.js +0 -73
- package/dist/lib/components/FaqWrapper/FaqWrapper.d.ts +0 -6
- package/dist/lib/components/FaqWrapper/FaqWrapper.js +0 -18
- package/dist/lib/components/ImageBanner/ImageBanner.css +0 -1
- package/dist/lib/components/ImageBanner/ImageBanner.d.ts +0 -94
- package/dist/lib/components/ImageBanner/ImageBanner.js +0 -173
- package/dist/lib/components/InfoCards/InfoCards.css +0 -1
- package/dist/lib/components/InfoCards/InfoCards.d.ts +0 -24
- package/dist/lib/components/InfoCards/InfoCards.js +0 -53
- package/dist/lib/components/InfoCards/components/InfoCard/InfoCard.css +0 -1
- package/dist/lib/components/InfoCards/components/InfoCard/InfoCard.d.ts +0 -19
- package/dist/lib/components/InfoCards/components/InfoCard/InfoCard.js +0 -94
- package/dist/lib/components/InfoCards/types.d.ts +0 -31
- package/dist/lib/components/InfoCards/types.js +0 -5
- package/dist/lib/components/Instructions/Instructions.css +0 -1
- package/dist/lib/components/Instructions/Instructions.d.ts +0 -120
- package/dist/lib/components/Instructions/Instructions.js +0 -371
- package/dist/lib/components/Instructions/img/android-new.png +0 -0
- package/dist/lib/components/Instructions/img/android.png +0 -0
- package/dist/lib/components/Instructions/img/blackIphone.png +0 -0
- package/dist/lib/components/Instructions/img/iphone-new.png +0 -0
- package/dist/lib/components/Instructions/img/iphone12.png +0 -0
- package/dist/lib/components/Instructions/img/iphone15.png +0 -0
- package/dist/lib/components/Instructions/img/laptop-new.png +0 -0
- package/dist/lib/components/Instructions/img/laptop.png +0 -0
- package/dist/lib/components/Instructions/img/newIphone.png +0 -0
- package/dist/lib/components/Instructions/img/whiteIphone.png +0 -0
- package/dist/lib/components/NotificationBox/NotificationBox.css +0 -1
- package/dist/lib/components/NotificationBox/NotificationBox.d.ts +0 -15
- package/dist/lib/components/NotificationBox/NotificationBox.js +0 -44
- package/dist/lib/components/NumbersBox/NumbersBox.css +0 -1
- package/dist/lib/components/NumbersBox/NumbersBox.d.ts +0 -35
- package/dist/lib/components/NumbersBox/NumbersBox.js +0 -81
- package/dist/lib/components/NumbersBox/components/NumbersCard/NumbersCard.css +0 -1
- package/dist/lib/components/NumbersBox/components/NumbersCard/NumbersCard.d.ts +0 -16
- package/dist/lib/components/NumbersBox/components/NumbersCard/NumbersCard.js +0 -37
- package/dist/lib/components/NumbersBox/types.d.ts +0 -7
- package/dist/lib/components/NumbersBox/types.js +0 -5
- package/dist/lib/components/PageTitle/PageTitle.css +0 -1
- package/dist/lib/components/PageTitle/PageTitle.d.ts +0 -36
- package/dist/lib/components/PageTitle/PageTitle.js +0 -83
- package/dist/lib/components/Partners/Partners.css +0 -1
- package/dist/lib/components/Partners/Partners.d.ts +0 -37
- package/dist/lib/components/Partners/Partners.js +0 -120
- package/dist/lib/components/PictureBox/PictureBox.css +0 -1
- package/dist/lib/components/PictureBox/PictureBox.d.ts +0 -48
- package/dist/lib/components/PictureBox/PictureBox.js +0 -105
- package/dist/lib/components/PictureBox/img/mac-book-1x.png +0 -0
- package/dist/lib/components/PictureBox/img/mac-book-2x.png +0 -0
- package/dist/lib/components/PictureWithDescription/PictureWithDescription.css +0 -1
- package/dist/lib/components/PictureWithDescription/PictureWithDescription.d.ts +0 -32
- package/dist/lib/components/PictureWithDescription/PictureWithDescription.js +0 -56
- package/dist/lib/components/PromoBanner/PromoBanner.d.ts +0 -5
- package/dist/lib/components/PromoBanner/PromoBanner.js +0 -36
- package/dist/lib/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.css +0 -1
- package/dist/lib/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.d.ts +0 -82
- package/dist/lib/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.js +0 -151
- package/dist/lib/components/PromoCards/PromoCards.d.ts +0 -33
- package/dist/lib/components/PromoCards/PromoCards.js +0 -71
- package/dist/lib/components/PromoCards/components/PromoCard/PromoCard.css +0 -1
- package/dist/lib/components/PromoCards/components/PromoCard/PromoCard.d.ts +0 -25
- package/dist/lib/components/PromoCards/components/PromoCard/PromoCard.js +0 -184
- package/dist/lib/components/PromoCards/types.d.ts +0 -62
- package/dist/lib/components/PromoCards/types.js +0 -5
- package/dist/lib/components/Property/Property.d.ts +0 -5
- package/dist/lib/components/Property/Property.js +0 -19
- package/dist/lib/components/ServiceCards/ServiceCards.css +0 -1
- package/dist/lib/components/ServiceCards/ServiceCards.d.ts +0 -28
- package/dist/lib/components/ServiceCards/ServiceCards.js +0 -51
- package/dist/lib/components/ServiceCards/components/ServiceCard/ServiceCard.css +0 -1
- package/dist/lib/components/ServiceCards/components/ServiceCard/ServiceCard.d.ts +0 -19
- package/dist/lib/components/ServiceCards/components/ServiceCard/ServiceCard.js +0 -90
- package/dist/lib/components/ServiceCards/types.d.ts +0 -26
- package/dist/lib/components/ServiceCards/types.js +0 -5
- package/dist/lib/components/SidePictureCards/SidePictureCards.d.ts +0 -31
- package/dist/lib/components/SidePictureCards/SidePictureCards.js +0 -79
- package/dist/lib/components/SidePictureCards/components/SidePictureCard.css +0 -1
- package/dist/lib/components/SidePictureCards/components/SidePictureCard.d.ts +0 -18
- package/dist/lib/components/SidePictureCards/components/SidePictureCard.js +0 -100
- package/dist/lib/components/SidePictureCards/types.d.ts +0 -48
- package/dist/lib/components/SidePictureCards/types.js +0 -5
- package/dist/lib/components/Stepper/Stepper.css +0 -1
- package/dist/lib/components/Stepper/Stepper.d.ts +0 -52
- package/dist/lib/components/Stepper/Stepper.js +0 -168
- package/dist/lib/components/Stepper/StepperItem.css +0 -1
- package/dist/lib/components/Stepper/StepperItem.d.ts +0 -57
- package/dist/lib/components/Stepper/StepperItem.js +0 -108
- package/dist/lib/components/Stepper/img/separator-mobile.png +0 -0
- package/dist/lib/components/Stepper/img/separator-vertical.png +0 -0
- package/dist/lib/components/Stepper/img/separator.png +0 -0
- package/dist/lib/components/Steps/Steps.css +0 -1
- package/dist/lib/components/Steps/Steps.d.ts +0 -21
- package/dist/lib/components/Steps/Steps.js +0 -40
- package/dist/lib/components/Steps/StepsItem.css +0 -1
- package/dist/lib/components/Steps/StepsItem.d.ts +0 -10
- package/dist/lib/components/Steps/StepsItem.js +0 -29
- package/dist/lib/components/StoreBanner/StoreBanner.css +0 -1
- package/dist/lib/components/StoreBanner/StoreBanner.d.ts +0 -101
- package/dist/lib/components/StoreBanner/StoreBanner.js +0 -209
- package/dist/lib/components/StoreBanner/img/android.png +0 -0
- package/dist/lib/components/StoreBanner/img/black-iphone.png +0 -0
- package/dist/lib/components/StoreBanner/img/iphone12.png +0 -0
- package/dist/lib/components/StoreBanner/img/new-iphone.png +0 -0
- package/dist/lib/components/StoreBanner/img/white-iphone.png +0 -0
- package/dist/lib/components/StoreButton/StoreButton.css +0 -1
- package/dist/lib/components/StoreButton/StoreButton.d.ts +0 -36
- package/dist/lib/components/StoreButton/StoreButton.js +0 -69
- package/dist/lib/components/StoreButton/img/app-store-large.png +0 -0
- package/dist/lib/components/StoreButton/img/app-store.png +0 -0
- package/dist/lib/components/StoreButton/img/galaxy-store-large.png +0 -0
- package/dist/lib/components/StoreButton/img/galaxy-store.png +0 -0
- package/dist/lib/components/StoreButton/img/google-play-large.png +0 -0
- package/dist/lib/components/StoreButton/img/google-play.png +0 -0
- package/dist/lib/components/StoreButton/img/huawei-store-large.png +0 -0
- package/dist/lib/components/StoreButton/img/huawei-store.png +0 -0
- package/dist/lib/components/StoreButton/img/mi-store-large.png +0 -0
- package/dist/lib/components/StoreButton/img/mi-store.png +0 -0
- package/dist/lib/components/StoreButton/img/ru-store-large.png +0 -0
- package/dist/lib/components/StoreButton/img/ru-store.png +0 -0
- package/dist/lib/components/StoreButton/img/v-appstore-large.png +0 -0
- package/dist/lib/components/StoreButton/img/v-appstore.png +0 -0
- package/dist/lib/components/Table/Table.css +0 -1
- package/dist/lib/components/Table/Table.d.ts +0 -18
- package/dist/lib/components/Table/Table.js +0 -136
- package/dist/lib/components/Table/TableCell.d.ts +0 -6
- package/dist/lib/components/Table/TableCell.js +0 -15
- package/dist/lib/components/Table/TableRow.d.ts +0 -11
- package/dist/lib/components/Table/TableRow.js +0 -17
- package/dist/lib/components/TabsBox/TabBox.d.ts +0 -2
- package/dist/lib/components/TabsBox/TabBox.js +0 -8
- package/dist/lib/components/TabsBox/TabsBox.d.ts +0 -8
- package/dist/lib/components/TabsBox/TabsBox.js +0 -33
- package/dist/lib/components/TextBox/TextBox.css +0 -1
- package/dist/lib/components/TextBox/TextBox.d.ts +0 -17
- package/dist/lib/components/TextBox/TextBox.js +0 -51
- package/dist/lib/components/TextBox/TextBoxPicture.css +0 -1
- package/dist/lib/components/TextBox/TextBoxPicture.d.ts +0 -21
- package/dist/lib/components/TextBox/TextBoxPicture.js +0 -38
- package/dist/lib/components/TextWithIcon/TextWithIcon.css +0 -1
- package/dist/lib/components/TextWithIcon/TextWithIcon.d.ts +0 -21
- package/dist/lib/components/TextWithIcon/TextWithIcon.js +0 -50
- package/dist/lib/components/TextWithIcon/TextWithIconItem.css +0 -1
- package/dist/lib/components/TextWithIcon/TextWithIconItem.d.ts +0 -25
- package/dist/lib/components/TextWithIcon/TextWithIconItem.js +0 -49
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.css +0 -1
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +0 -22
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.js +0 -69
- package/dist/lib/components/VideoBanner/VideoBanner.css +0 -1
- package/dist/lib/components/VideoBanner/VideoBanner.d.ts +0 -112
- package/dist/lib/components/VideoBanner/VideoBanner.js +0 -253
- package/dist/lib/components/VideoBlock/VideoBlock.css +0 -1
- package/dist/lib/components/VideoBlock/VideoBlock.d.ts +0 -63
- package/dist/lib/components/VideoBlock/VideoBlock.js +0 -238
- package/dist/lib/constants/throttleTime.d.ts +0 -4
- package/dist/lib/constants/throttleTime.js +0 -9
- package/dist/lib/helpers/getColumnConfig.d.ts +0 -6
- package/dist/lib/helpers/getColumnConfig.js +0 -16
- package/dist/lib/helpers/setRelAttribute.d.ts +0 -3
- package/dist/lib/helpers/setRelAttribute.js +0 -15
- package/dist/lib/hooks/useResolutions.d.ts +0 -8
- package/dist/lib/hooks/useResolutions.js +0 -69
- package/dist/lib/index.d.ts +0 -67
- package/dist/lib/index.js +0 -475
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import "core-js/modules/es.symbol.js";
|
|
3
|
-
import "core-js/modules/es.symbol.description.js";
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import { Header, Paragraph, Grid, GridColumn } from '@megafon/ui-core';
|
|
6
|
-
import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
|
7
|
-
import "./TitleDescriptionBox.css";
|
|
8
|
-
var testIdPrefix = 'TitleDescriptionBox';
|
|
9
|
-
var cn = cnCreate('mfui-title-description-box');
|
|
10
|
-
var TitleDescriptionBox = function TitleDescriptionBox(_ref) {
|
|
11
|
-
var dataAttrs = _ref.dataAttrs,
|
|
12
|
-
title = _ref.title,
|
|
13
|
-
description = _ref.description,
|
|
14
|
-
textColor = _ref.textColor,
|
|
15
|
-
align = _ref.align,
|
|
16
|
-
rootRef = _ref.rootRef,
|
|
17
|
-
className = _ref.className;
|
|
18
|
-
var renderDescription = React.useCallback(function () {
|
|
19
|
-
if (typeof description === 'string') {
|
|
20
|
-
return /*#__PURE__*/React.createElement(Paragraph, {
|
|
21
|
-
className: cn('item'),
|
|
22
|
-
hasMargin: false,
|
|
23
|
-
color: "inherit",
|
|
24
|
-
dataAttrs: {
|
|
25
|
-
root: {
|
|
26
|
-
'data-testid': "".concat(testIdPrefix, "-description-text")
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}, description);
|
|
30
|
-
}
|
|
31
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
32
|
-
className: cn('description'),
|
|
33
|
-
"data-testid": "".concat(testIdPrefix, "-description-node")
|
|
34
|
-
}, description);
|
|
35
|
-
}, [description]);
|
|
36
|
-
return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
|
37
|
-
className: cn({
|
|
38
|
-
'h-align': align,
|
|
39
|
-
'text-color': textColor
|
|
40
|
-
}, className),
|
|
41
|
-
ref: rootRef
|
|
42
|
-
}), /*#__PURE__*/React.createElement(Grid, {
|
|
43
|
-
hAlign: align,
|
|
44
|
-
dataAttrs: {
|
|
45
|
-
container: {
|
|
46
|
-
'data-testid': "".concat(testIdPrefix, "-grid")
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}, /*#__PURE__*/React.createElement(GridColumn, {
|
|
50
|
-
wide: "8",
|
|
51
|
-
desktop: "10"
|
|
52
|
-
}, title && /*#__PURE__*/React.createElement(Header, {
|
|
53
|
-
className: cn('item', {
|
|
54
|
-
header: true
|
|
55
|
-
}),
|
|
56
|
-
as: "h2",
|
|
57
|
-
color: "inherit"
|
|
58
|
-
}, title), description && renderDescription())));
|
|
59
|
-
};
|
|
60
|
-
export default TitleDescriptionBox;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-video-banner{overflow:hidden;position:relative}@media screen and (min-width:1280px){.mfui-video-banner{margin-left:-80px;margin-right:-80px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-video-banner{margin-left:-64px;margin-right:-64px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-video-banner{margin-left:-48px;margin-right:-48px}}@media screen and (max-width:767px){.mfui-video-banner{margin-left:-16px;margin-right:-16px}}.mfui-video-banner_bottom-shadow:after{background:-webkit-gradient(linear,left top,left bottom,color-stop(95.25%,hsla(0,0%,100%,0)),to(rgba(0,0,0,.024)));background:linear-gradient(180deg,hsla(0,0%,100%,0) 95.25%,rgba(0,0,0,.024));bottom:0;content:"";height:100%;position:absolute;right:0;width:100%}.mfui-video-banner__wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;min-height:400px}@media screen and (min-width:1440px){.mfui-video-banner__wrapper{height:562px}}@media screen and (min-width:1280px) and (max-width:1439px){.mfui-video-banner__wrapper{height:500px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-video-banner__wrapper{max-height:440px;padding-bottom:52px;padding-top:52px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-video-banner__wrapper{max-height:440px;padding-bottom:64px;padding-top:64px}}@media screen and (max-width:767px){.mfui-video-banner__wrapper{max-height:488px;padding-bottom:42px;padding-top:42px}}.mfui-video-banner__background-image,.mfui-video-banner__video{left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.mfui-video-banner__background-image{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.mfui-video-banner__content{-webkit-box-sizing:border-box;box-sizing:border-box;position:relative}@media screen and (min-width:1440px){.mfui-video-banner__content{max-height:422px}}@media screen and (min-width:1280px) and (max-width:1439px){.mfui-video-banner__content{max-height:360px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-video-banner__content{max-height:336px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-video-banner__content{max-height:312px}}@media screen and (max-width:767px){.mfui-video-banner__content{max-height:404px}}.mfui-video-banner__content_text-color_black{color:var(--stcBlack)}.mfui-video-banner__content_text-color_white{color:var(--stcWhite)}@media screen and (max-width:767px){.mfui-video-banner__content_text-color-mobile_black{color:var(--stcBlack)}.mfui-video-banner__content_text-color-mobile_white{color:var(--stcWhite)}}.mfui-video-banner__description{margin-bottom:32px;white-space:pre-wrap}.mfui-video-banner__title{margin-bottom:24px}@media screen and (max-width:767px){.mfui-video-banner__title{margin-bottom:20px}}.mfui-video-banner__text,.mfui-video-banner__title{white-space:pre-wrap}@media screen and (max-width:767px){.mfui-video-banner__text,.mfui-video-banner__title{text-align:center}}.mfui-video-banner__btns-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;margin:-24px -10px 0}@media screen and (max-width:767px){.mfui-video-banner__btns-wrapper{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}}@media screen and (max-width:479px){.mfui-video-banner__btns-wrapper{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}}.mfui-video-banner__button,.mfui-video-banner__link{margin:24px 10px 0}.mfui-video-banner__cost{font-size:12px;line-height:18px;margin-bottom:18px}.mfui-video-banner__value{display:inline;margin:0 3px}.mfui-video-banner__breadcrumbs,.mfui-video-banner__content{z-index:1}.mfui-video-banner__breadcrumbs{position:absolute;top:32px}.mfui-video-banner__grid{width:100%}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Props as BreadcrumbsPropsType } from '../Breadcrumbs/Breadcrumbs';
|
|
3
|
-
import './VideoBanner.scss';
|
|
4
|
-
export type BreadCrumbsItemsType = BreadcrumbsPropsType['items'];
|
|
5
|
-
export declare const testIdPrefix = "VideoBanner";
|
|
6
|
-
export declare enum ClassName {
|
|
7
|
-
BUTTON = "button",
|
|
8
|
-
LINK = "link"
|
|
9
|
-
}
|
|
10
|
-
export declare const VideoType: {
|
|
11
|
-
readonly YOUTUBE: "youtube";
|
|
12
|
-
readonly VIDEO: "video";
|
|
13
|
-
};
|
|
14
|
-
type VideoType = (typeof VideoType)[keyof typeof VideoType];
|
|
15
|
-
export declare const ButtonColor: {
|
|
16
|
-
readonly GREEN: "green";
|
|
17
|
-
readonly PURPLE: "purple";
|
|
18
|
-
};
|
|
19
|
-
export type ButtonColorType = (typeof ButtonColor)[keyof typeof ButtonColor];
|
|
20
|
-
export declare const TextColor: {
|
|
21
|
-
readonly BLACK: "black";
|
|
22
|
-
readonly WHITE: "white";
|
|
23
|
-
};
|
|
24
|
-
type TextColorType = (typeof TextColor)[keyof typeof TextColor];
|
|
25
|
-
export interface IContent {
|
|
26
|
-
/** Заголовок */
|
|
27
|
-
title: string;
|
|
28
|
-
/** Текст-описание */
|
|
29
|
-
description: string;
|
|
30
|
-
/** Текст кнопки */
|
|
31
|
-
buttonTitle?: string;
|
|
32
|
-
/** Ссылка на кнопке */
|
|
33
|
-
buttonHref?: string;
|
|
34
|
-
/** Target свойство кнопки */
|
|
35
|
-
buttonTarget?: '_self' | '_blank' | '_parent' | '_top';
|
|
36
|
-
/** Добавляет атрибут download для тега <a> компонента Button */
|
|
37
|
-
buttonDownload?: boolean;
|
|
38
|
-
/** Добавляет атрибут rel для тега <a> компонента Button */
|
|
39
|
-
buttonRel?: string;
|
|
40
|
-
/** Цвет кнопки */
|
|
41
|
-
buttonColor?: ButtonColorType;
|
|
42
|
-
/** Обработчик клика по кнопке */
|
|
43
|
-
onButtonClick?: (e: React.SyntheticEvent<EventTarget>) => void;
|
|
44
|
-
/** Обработчик клика по ссылке */
|
|
45
|
-
onLinkClick?: (e: React.SyntheticEvent<EventTarget>) => void;
|
|
46
|
-
/** Цвет текста */
|
|
47
|
-
textColor?: TextColorType;
|
|
48
|
-
/** Цвет текста на мобильном разрешении */
|
|
49
|
-
textColorMobile?: TextColorType;
|
|
50
|
-
/** Текст ссылки */
|
|
51
|
-
linkTitle?: string;
|
|
52
|
-
/** Адрес ссылки */
|
|
53
|
-
linkUrl?: string;
|
|
54
|
-
/** Target свойство ссылки */
|
|
55
|
-
linkTarget?: '_self' | '_blank' | '_parent' | '_top';
|
|
56
|
-
/** Добавляет атрибут download для тега <a> компонента TextLink */
|
|
57
|
-
linkDownload?: boolean;
|
|
58
|
-
/** Добавляет атрибут rel для тега <a> компонента TextLink */
|
|
59
|
-
linkRel?: string;
|
|
60
|
-
/** Строка со стоимостью услуги */
|
|
61
|
-
cost?: string;
|
|
62
|
-
}
|
|
63
|
-
export interface IVideoBannerProps {
|
|
64
|
-
/** Дополнительные data атрибуты к внутренним элементам */
|
|
65
|
-
dataAttrs?: {
|
|
66
|
-
root?: Record<string, string>;
|
|
67
|
-
breadcrumbs?: Record<string, string>;
|
|
68
|
-
breadcrumbsLink?: Record<string, string>;
|
|
69
|
-
button?: Record<string, string>;
|
|
70
|
-
link?: Record<string, string>;
|
|
71
|
-
};
|
|
72
|
-
/** Дополнительный класс корневого элемента */
|
|
73
|
-
className?: string;
|
|
74
|
-
/** Дополнительные классы для корневого и внутренних элементов */
|
|
75
|
-
classes?: {
|
|
76
|
-
root?: string;
|
|
77
|
-
button?: string;
|
|
78
|
-
link?: string;
|
|
79
|
-
breadcrumbs?: string;
|
|
80
|
-
video?: string;
|
|
81
|
-
};
|
|
82
|
-
/** Ссылка на корневой элемент */
|
|
83
|
-
rootRef?: React.Ref<HTMLDivElement>;
|
|
84
|
-
/** Данные для блока с контентом */
|
|
85
|
-
content?: IContent;
|
|
86
|
-
/** Источник видео. */
|
|
87
|
-
videoSrc?: string;
|
|
88
|
-
/** Тип видео */
|
|
89
|
-
videoType?: VideoType;
|
|
90
|
-
/** Разрешить проигрывать видео на мобильном разрешении */
|
|
91
|
-
videoMobile?: boolean;
|
|
92
|
-
/** Наличие звука в видео */
|
|
93
|
-
isMuted?: boolean;
|
|
94
|
-
/** Изображение для мобильного разрешения */
|
|
95
|
-
imageMobile: string;
|
|
96
|
-
/** Изображение для планшетного разрешения */
|
|
97
|
-
imageTablet: string;
|
|
98
|
-
/** Изображение для компьютерного разрешения */
|
|
99
|
-
imageDesktop?: string;
|
|
100
|
-
/** Изображение для большого компьютерного разрешения */
|
|
101
|
-
imageDesktopWide?: string;
|
|
102
|
-
/** Значение тега alt для изображения */
|
|
103
|
-
imageAlt?: string;
|
|
104
|
-
/** Хлебные крошки */
|
|
105
|
-
breadcrumbs?: BreadCrumbsItemsType;
|
|
106
|
-
/** Включить микроразметку хлебных крошек */
|
|
107
|
-
hasBreadcrumbsMicrodata?: boolean;
|
|
108
|
-
/** Включить тень в нижней части компонента */
|
|
109
|
-
bottomShadow?: boolean;
|
|
110
|
-
}
|
|
111
|
-
declare const VideoBanner: React.FC<IVideoBannerProps>;
|
|
112
|
-
export default VideoBanner;
|
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
-
import "core-js/modules/es.symbol.js";
|
|
4
|
-
import "core-js/modules/es.symbol.description.js";
|
|
5
|
-
import "core-js/modules/es.array.concat.js";
|
|
6
|
-
import "core-js/modules/es.string.link.js";
|
|
7
|
-
import * as React from 'react';
|
|
8
|
-
import { Button, Header, ContentArea, TextLink, Grid, GridColumn } from '@megafon/ui-core';
|
|
9
|
-
import { breakpoints, cnCreate, filterDataAttrs, convert, titleConvertConfig } from '@megafon/ui-helpers';
|
|
10
|
-
import throttle from 'lodash.throttle';
|
|
11
|
-
import throttleTime from "../../constants/throttleTime";
|
|
12
|
-
import Breadcrumbs from "../Breadcrumbs/Breadcrumbs";
|
|
13
|
-
import "./VideoBanner.css";
|
|
14
|
-
export var testIdPrefix = 'VideoBanner';
|
|
15
|
-
var cn = cnCreate('mfui-video-banner');
|
|
16
|
-
export var ClassName;
|
|
17
|
-
(function (ClassName) {
|
|
18
|
-
ClassName["BUTTON"] = "button";
|
|
19
|
-
ClassName["LINK"] = "link";
|
|
20
|
-
})(ClassName || (ClassName = {}));
|
|
21
|
-
var typographyConfig = {
|
|
22
|
-
b: {
|
|
23
|
-
component: function component(_ref) {
|
|
24
|
-
var children = _ref.children;
|
|
25
|
-
return /*#__PURE__*/React.createElement(Header, {
|
|
26
|
-
className: cn('value'),
|
|
27
|
-
as: "h3",
|
|
28
|
-
color: "inherit"
|
|
29
|
-
}, children);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
export var VideoType = {
|
|
34
|
-
YOUTUBE: 'youtube',
|
|
35
|
-
VIDEO: 'video'
|
|
36
|
-
};
|
|
37
|
-
export var ButtonColor = {
|
|
38
|
-
GREEN: 'green',
|
|
39
|
-
PURPLE: 'purple'
|
|
40
|
-
};
|
|
41
|
-
export var TextColor = {
|
|
42
|
-
BLACK: 'black',
|
|
43
|
-
WHITE: 'white'
|
|
44
|
-
};
|
|
45
|
-
var VideoBanner = function VideoBanner(_ref2) {
|
|
46
|
-
var dataAttrs = _ref2.dataAttrs,
|
|
47
|
-
className = _ref2.className,
|
|
48
|
-
_ref2$classes = _ref2.classes,
|
|
49
|
-
classes = _ref2$classes === void 0 ? {} : _ref2$classes,
|
|
50
|
-
rootRef = _ref2.rootRef,
|
|
51
|
-
videoSrc = _ref2.videoSrc,
|
|
52
|
-
videoType = _ref2.videoType,
|
|
53
|
-
imageMobile = _ref2.imageMobile,
|
|
54
|
-
imageTablet = _ref2.imageTablet,
|
|
55
|
-
_ref2$imageDesktop = _ref2.imageDesktop,
|
|
56
|
-
imageDesktop = _ref2$imageDesktop === void 0 ? '' : _ref2$imageDesktop,
|
|
57
|
-
_ref2$imageDesktopWid = _ref2.imageDesktopWide,
|
|
58
|
-
imageDesktopWide = _ref2$imageDesktopWid === void 0 ? '' : _ref2$imageDesktopWid,
|
|
59
|
-
imageAlt = _ref2.imageAlt,
|
|
60
|
-
content = _ref2.content,
|
|
61
|
-
_ref2$isMuted = _ref2.isMuted,
|
|
62
|
-
isMuted = _ref2$isMuted === void 0 ? true : _ref2$isMuted,
|
|
63
|
-
breadcrumbs = _ref2.breadcrumbs,
|
|
64
|
-
_ref2$videoMobile = _ref2.videoMobile,
|
|
65
|
-
videoMobile = _ref2$videoMobile === void 0 ? false : _ref2$videoMobile,
|
|
66
|
-
_ref2$hasBreadcrumbsM = _ref2.hasBreadcrumbsMicrodata,
|
|
67
|
-
hasBreadcrumbsMicrodata = _ref2$hasBreadcrumbsM === void 0 ? false : _ref2$hasBreadcrumbsM,
|
|
68
|
-
_ref2$bottomShadow = _ref2.bottomShadow,
|
|
69
|
-
bottomShadow = _ref2$bottomShadow === void 0 ? false : _ref2$bottomShadow;
|
|
70
|
-
var _React$useState = React.useState(true),
|
|
71
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
72
|
-
isMobile = _React$useState2[0],
|
|
73
|
-
setIsMobile = _React$useState2[1];
|
|
74
|
-
var isVideoData = !!videoSrc && !!videoType;
|
|
75
|
-
var isRenderVideo = (!isMobile || videoMobile) && isVideoData;
|
|
76
|
-
var renderContent = React.useCallback(function (_ref3) {
|
|
77
|
-
var title = _ref3.title,
|
|
78
|
-
description = _ref3.description,
|
|
79
|
-
buttonTitle = _ref3.buttonTitle,
|
|
80
|
-
buttonHref = _ref3.buttonHref,
|
|
81
|
-
buttonTarget = _ref3.buttonTarget,
|
|
82
|
-
buttonDownload = _ref3.buttonDownload,
|
|
83
|
-
_ref3$buttonColor = _ref3.buttonColor,
|
|
84
|
-
buttonColor = _ref3$buttonColor === void 0 ? ButtonColor.GREEN : _ref3$buttonColor,
|
|
85
|
-
buttonRel = _ref3.buttonRel,
|
|
86
|
-
onButtonClick = _ref3.onButtonClick,
|
|
87
|
-
onLinkClick = _ref3.onLinkClick,
|
|
88
|
-
_ref3$textColor = _ref3.textColor,
|
|
89
|
-
textColor = _ref3$textColor === void 0 ? TextColor.BLACK : _ref3$textColor,
|
|
90
|
-
textColorMobile = _ref3.textColorMobile,
|
|
91
|
-
linkTitle = _ref3.linkTitle,
|
|
92
|
-
linkUrl = _ref3.linkUrl,
|
|
93
|
-
linkTarget = _ref3.linkTarget,
|
|
94
|
-
linkDownload = _ref3.linkDownload,
|
|
95
|
-
linkRel = _ref3.linkRel,
|
|
96
|
-
cost = _ref3.cost;
|
|
97
|
-
return /*#__PURE__*/React.createElement(Grid, {
|
|
98
|
-
className: cn('grid'),
|
|
99
|
-
guttersLeft: "medium"
|
|
100
|
-
}, /*#__PURE__*/React.createElement(GridColumn, {
|
|
101
|
-
mobile: "12",
|
|
102
|
-
tablet: "7",
|
|
103
|
-
desktop: "7",
|
|
104
|
-
wide: "6"
|
|
105
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
106
|
-
className: cn('content', {
|
|
107
|
-
'text-color': textColor,
|
|
108
|
-
'text-color-mobile': textColorMobile
|
|
109
|
-
}),
|
|
110
|
-
"data-testid": "".concat(testIdPrefix, "-content")
|
|
111
|
-
}, /*#__PURE__*/React.createElement(Header, {
|
|
112
|
-
className: cn('title'),
|
|
113
|
-
as: "h1",
|
|
114
|
-
color: "inherit"
|
|
115
|
-
}, convert(title, titleConvertConfig)), /*#__PURE__*/React.createElement("div", {
|
|
116
|
-
className: cn('text')
|
|
117
|
-
}, /*#__PURE__*/React.createElement(Header, {
|
|
118
|
-
as: "h5",
|
|
119
|
-
color: "inherit",
|
|
120
|
-
className: cn('description')
|
|
121
|
-
}, convert(description, titleConvertConfig)), cost && /*#__PURE__*/React.createElement("div", {
|
|
122
|
-
className: cn('cost')
|
|
123
|
-
}, convert(cost, typographyConfig))), /*#__PURE__*/React.createElement("div", {
|
|
124
|
-
className: cn('btns-wrapper')
|
|
125
|
-
}, buttonTitle && /*#__PURE__*/React.createElement(Button, {
|
|
126
|
-
dataAttrs: {
|
|
127
|
-
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.button
|
|
128
|
-
},
|
|
129
|
-
className: cn(ClassName.BUTTON, [classes.button]),
|
|
130
|
-
theme: buttonColor,
|
|
131
|
-
href: buttonHref,
|
|
132
|
-
target: buttonTarget,
|
|
133
|
-
onClick: onButtonClick,
|
|
134
|
-
download: buttonDownload,
|
|
135
|
-
rel: buttonRel
|
|
136
|
-
}, buttonTitle), linkTitle && /*#__PURE__*/React.createElement(TextLink, {
|
|
137
|
-
dataAttrs: {
|
|
138
|
-
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.link
|
|
139
|
-
},
|
|
140
|
-
className: cn(ClassName.LINK, [classes.link]),
|
|
141
|
-
href: linkUrl,
|
|
142
|
-
download: linkDownload,
|
|
143
|
-
target: linkTarget,
|
|
144
|
-
onClick: onLinkClick,
|
|
145
|
-
rel: linkRel
|
|
146
|
-
}, linkTitle)))));
|
|
147
|
-
}, [classes.button, classes.link, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.button, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.link]);
|
|
148
|
-
var renderVideo = React.useCallback(function () {
|
|
149
|
-
switch (videoType) {
|
|
150
|
-
case VideoType.YOUTUBE:
|
|
151
|
-
{
|
|
152
|
-
var url = "https://www.youtube.com/embed/".concat(videoSrc, "?");
|
|
153
|
-
var autoplay = '&autoplay=1';
|
|
154
|
-
var mute = "&mute=".concat(isMuted ? 1 : 0);
|
|
155
|
-
var loop = '&loop=1';
|
|
156
|
-
var rel = '&rel=0';
|
|
157
|
-
var controls = '&controls=0';
|
|
158
|
-
var info = '&showinfo=0e';
|
|
159
|
-
var policy = '&iv_load_policy=3';
|
|
160
|
-
var playlist = "&playlist=".concat(videoSrc);
|
|
161
|
-
var src = "".concat(url).concat(autoplay).concat(mute).concat(loop).concat(rel).concat(controls).concat(info).concat(policy).concat(playlist);
|
|
162
|
-
return /*#__PURE__*/React.createElement("iframe", {
|
|
163
|
-
title: "iframe",
|
|
164
|
-
className: cn('video'),
|
|
165
|
-
src: src,
|
|
166
|
-
width: "100%",
|
|
167
|
-
height: "100%",
|
|
168
|
-
frameBorder: "0",
|
|
169
|
-
allow: "autoplay",
|
|
170
|
-
"data-testid": "".concat(testIdPrefix, "-iframe-video")
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
case VideoType.VIDEO:
|
|
174
|
-
{
|
|
175
|
-
return (
|
|
176
|
-
/*#__PURE__*/
|
|
177
|
-
// eslint-disable-next-line jsx-a11y/media-has-caption
|
|
178
|
-
React.createElement("video", {
|
|
179
|
-
className: cn('video', [classes.video]),
|
|
180
|
-
autoPlay: true,
|
|
181
|
-
loop: true,
|
|
182
|
-
muted: isMuted,
|
|
183
|
-
"data-testid": "".concat(testIdPrefix, "-video")
|
|
184
|
-
}, /*#__PURE__*/React.createElement("source", {
|
|
185
|
-
src: videoSrc,
|
|
186
|
-
type: "video/mp4"
|
|
187
|
-
}))
|
|
188
|
-
);
|
|
189
|
-
}
|
|
190
|
-
default:
|
|
191
|
-
{
|
|
192
|
-
return null;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}, [videoType, videoSrc, isMuted, classes.video]);
|
|
196
|
-
React.useEffect(function () {
|
|
197
|
-
var resizeHandler = function resizeHandler() {
|
|
198
|
-
setIsMobile(window.innerWidth < breakpoints.DESKTOP_SMALL_START);
|
|
199
|
-
};
|
|
200
|
-
var resizeHandlerThrottled = throttle(resizeHandler, throttleTime.resize);
|
|
201
|
-
resizeHandler();
|
|
202
|
-
window.addEventListener('resize', resizeHandlerThrottled);
|
|
203
|
-
return function () {
|
|
204
|
-
window.removeEventListener('resize', resizeHandlerThrottled);
|
|
205
|
-
};
|
|
206
|
-
}, [setIsMobile]);
|
|
207
|
-
return /*#__PURE__*/React.createElement("div", _extends({
|
|
208
|
-
ref: rootRef
|
|
209
|
-
}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
|
210
|
-
className: cn({
|
|
211
|
-
'bottom-shadow': bottomShadow
|
|
212
|
-
}, [className, classes.root])
|
|
213
|
-
}), /*#__PURE__*/React.createElement(ContentArea, null, /*#__PURE__*/React.createElement("div", {
|
|
214
|
-
className: cn('wrapper')
|
|
215
|
-
}, !!(breadcrumbs === null || breadcrumbs === void 0 ? void 0 : breadcrumbs.length) && /*#__PURE__*/React.createElement(Breadcrumbs, {
|
|
216
|
-
disabledOnMobile: true,
|
|
217
|
-
hasMicrodata: hasBreadcrumbsMicrodata,
|
|
218
|
-
dataAttrs: {
|
|
219
|
-
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.breadcrumbs,
|
|
220
|
-
link: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.breadcrumbsLink
|
|
221
|
-
},
|
|
222
|
-
className: cn('breadcrumbs'),
|
|
223
|
-
items: breadcrumbs,
|
|
224
|
-
color: content === null || content === void 0 ? void 0 : content.textColor,
|
|
225
|
-
classes: {
|
|
226
|
-
item: classes.breadcrumbs
|
|
227
|
-
}
|
|
228
|
-
}), content && renderContent(content), isRenderVideo && renderVideo(), !isRenderVideo && /*#__PURE__*/React.createElement("picture", {
|
|
229
|
-
"data-testid": "".concat(testIdPrefix, "-picture")
|
|
230
|
-
}, /*#__PURE__*/React.createElement("source", {
|
|
231
|
-
media: "(min-width: ".concat(breakpoints.DESKTOP_MIDDLE_START, "px)"),
|
|
232
|
-
srcSet: imageDesktopWide
|
|
233
|
-
}), /*#__PURE__*/React.createElement("source", {
|
|
234
|
-
media: "(min-width: ".concat(breakpoints.DESKTOP_SMALL_START, "px)"),
|
|
235
|
-
srcSet: imageDesktop
|
|
236
|
-
}), /*#__PURE__*/React.createElement("source", {
|
|
237
|
-
media: "(min-width: ".concat(breakpoints.MOBILE_BIG_START, "px)"),
|
|
238
|
-
srcSet: imageTablet
|
|
239
|
-
}), /*#__PURE__*/React.createElement("img", {
|
|
240
|
-
className: cn('background-image'),
|
|
241
|
-
src: imageMobile,
|
|
242
|
-
alt: imageAlt
|
|
243
|
-
})))));
|
|
244
|
-
};
|
|
245
|
-
export default VideoBanner;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-video-block{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-video-block,.mfui-video-block__content{display:-webkit-box;display:-ms-flexbox;display:flex}.mfui-video-block__content{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}@media screen and (max-width:767px){.mfui-video-block__content{margin-top:24px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-video-block__content{margin-top:32px}}@media screen and (min-width:1024px){.mfui-video-block__content{height:100%;margin-right:20px;padding-right:20px}.mfui-video-block__content_position-right{margin:0 0 0 20px;padding:0 0 0 20px}}.mfui-video-block__header{margin-bottom:24px}@media screen and (max-width:1023px){.mfui-video-block__header{margin-bottom:16px}}.mfui-video-block__description{font-size:15px;font-weight:400;line-height:24px}.mfui-video-block__button{-ms-flex-item-align:start;align-self:flex-start;margin-top:32px;max-width:100%}@media screen and (max-width:767px){.mfui-video-block__button{-ms-flex-item-align:center;align-self:center}}.mfui-video-block__video{-o-object-fit:contain;object-fit:contain;width:100%}.mfui-video-block__video_fix-background{-webkit-filter:brightness(108.5%);filter:brightness(108.5%)}.mfui-video-block__rutube,.mfui-video-block__vk,.mfui-video-block__youtube{padding-bottom:56.25%;position:relative}.mfui-video-block__iframe{left:0;position:absolute;top:0}.mfui-video-block__grid{width:100%}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './VideoBlock.scss';
|
|
3
|
-
export interface IContent {
|
|
4
|
-
/** Заголовок */
|
|
5
|
-
title: string;
|
|
6
|
-
/** Текст-описание */
|
|
7
|
-
description: string | React.ReactNode[] | React.ReactNode;
|
|
8
|
-
/** Текст кнопки */
|
|
9
|
-
buttonTitle?: string;
|
|
10
|
-
/** Добавляет атрибут download для тега <a> компонента Button */
|
|
11
|
-
buttonDownload?: boolean;
|
|
12
|
-
/** Добавляет атрибут rel для тега <a> компонента Button */
|
|
13
|
-
buttonRel?: string;
|
|
14
|
-
/** Ссылка на кнопке */
|
|
15
|
-
href?: string;
|
|
16
|
-
/** Обработчик клика по кнопке */
|
|
17
|
-
onButtonClick?: (e: React.SyntheticEvent<EventTarget>) => void;
|
|
18
|
-
}
|
|
19
|
-
export declare const VideoTypes: {
|
|
20
|
-
readonly YOUTUBE: "youtube";
|
|
21
|
-
readonly RUTUBE: "rutube";
|
|
22
|
-
readonly VK: "vk";
|
|
23
|
-
readonly VIDEO: "video";
|
|
24
|
-
};
|
|
25
|
-
type VideoType = (typeof VideoTypes)[keyof typeof VideoTypes];
|
|
26
|
-
export interface IVideoBlockProps {
|
|
27
|
-
/** Дополнительные data атрибуты к внутренним элементам */
|
|
28
|
-
dataAttrs?: {
|
|
29
|
-
root?: Record<string, string>;
|
|
30
|
-
button?: Record<string, string>;
|
|
31
|
-
};
|
|
32
|
-
/** Дополнительный класс корневого элемента */
|
|
33
|
-
className?: string;
|
|
34
|
-
/** Дополнительные классы для корневого и внутренних элементов */
|
|
35
|
-
classes?: {
|
|
36
|
-
root?: string;
|
|
37
|
-
button?: string;
|
|
38
|
-
description?: string;
|
|
39
|
-
};
|
|
40
|
-
/** Ссылка на корневой элемент */
|
|
41
|
-
rootRef?: React.Ref<HTMLDivElement>;
|
|
42
|
-
/** Данные для блока с контентом */
|
|
43
|
-
content?: IContent;
|
|
44
|
-
/** Тип видео */
|
|
45
|
-
videoType?: VideoType;
|
|
46
|
-
/** Источник видео. Если видео с youtube или rutube, то необходимо указать id. Для видео из VK необходимо указать полный id вместе с _ (например: 22822305_456241864) */
|
|
47
|
-
videoSrc: string;
|
|
48
|
-
/** Наличие звука в видео */
|
|
49
|
-
isMuted?: boolean;
|
|
50
|
-
/** Автоматическое проигрывание видео */
|
|
51
|
-
isAutoplay?: boolean;
|
|
52
|
-
/** Ссылка на изображение для превью к HTML5 видео */
|
|
53
|
-
poster?: string;
|
|
54
|
-
/** Расположение контента справа от видео. Только для десктопа */
|
|
55
|
-
contentPositionRight?: boolean;
|
|
56
|
-
/** Воспроизводит видео на iOS устройствах без перехода в полноэкранный режим */
|
|
57
|
-
playsinline?: boolean;
|
|
58
|
-
/** Фикс для белого фона */
|
|
59
|
-
fixWhiteVideoBackground?: boolean;
|
|
60
|
-
}
|
|
61
|
-
export declare const testIdPrefix = "VideoBlock";
|
|
62
|
-
declare const VideoBlock: React.FC<IVideoBlockProps>;
|
|
63
|
-
export default VideoBlock;
|