@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,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BackgroundType, CardDataType } from '../types';
|
|
3
|
-
import './SidePictureCard.scss';
|
|
4
|
-
export type SidePictureCardType = CardDataType & {
|
|
5
|
-
background: BackgroundType;
|
|
6
|
-
classes?: {
|
|
7
|
-
root?: string;
|
|
8
|
-
title?: string;
|
|
9
|
-
button?: string;
|
|
10
|
-
};
|
|
11
|
-
dataAttrs?: {
|
|
12
|
-
root?: Record<string, string>;
|
|
13
|
-
title?: Record<string, string>;
|
|
14
|
-
button?: Record<string, string>;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
declare const SidePictureCard: React.FC<SidePictureCardType>;
|
|
18
|
-
export default SidePictureCard;
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
8
|
-
require("core-js/modules/es.array.concat.js");
|
|
9
|
-
require("core-js/modules/es.array.map.js");
|
|
10
|
-
require("core-js/modules/es.array.slice.js");
|
|
11
|
-
var _react = _interopRequireDefault(require("react"));
|
|
12
|
-
var _uiCore = require("@megafon/ui-core");
|
|
13
|
-
var _uiHelpers = require("@megafon/ui-helpers");
|
|
14
|
-
var _setRelAttribute = require("../../../helpers/setRelAttribute");
|
|
15
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
16
|
-
var MAX_ICON_ITEMS_COUNT = 4;
|
|
17
|
-
var cn = (0, _uiHelpers.cnCreate)('mfui-side-picture-card');
|
|
18
|
-
var SidePictureCard = function SidePictureCard(_ref) {
|
|
19
|
-
var background = _ref.background,
|
|
20
|
-
title = _ref.title,
|
|
21
|
-
image = _ref.image,
|
|
22
|
-
_ref$iconItems = _ref.iconItems,
|
|
23
|
-
iconItems = _ref$iconItems === void 0 ? [] : _ref$iconItems,
|
|
24
|
-
button = _ref.button,
|
|
25
|
-
href = _ref.href,
|
|
26
|
-
target = _ref.target,
|
|
27
|
-
rel = _ref.rel,
|
|
28
|
-
_ref$classes = _ref.classes,
|
|
29
|
-
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
|
30
|
-
dataAttrs = _ref.dataAttrs;
|
|
31
|
-
var _ref2 = button || {},
|
|
32
|
-
buttonTitle = _ref2.title,
|
|
33
|
-
buttonHref = _ref2.href,
|
|
34
|
-
buttonTarget = _ref2.target,
|
|
35
|
-
buttonRel = _ref2.rel,
|
|
36
|
-
onButtonClick = _ref2.onClick;
|
|
37
|
-
var isLink = !!href && !buttonHref;
|
|
38
|
-
var ElementType = isLink ? 'a' : 'div';
|
|
39
|
-
var currentRel = (0, _setRelAttribute.setRelAttribute)(rel, target);
|
|
40
|
-
var currentButtonRel = (0, _setRelAttribute.setRelAttribute)(buttonRel, buttonTarget);
|
|
41
|
-
var visibleIconItems = iconItems.slice(0, MAX_ICON_ITEMS_COUNT);
|
|
42
|
-
var items = visibleIconItems.map(function (item, i) {
|
|
43
|
-
var icon = item.icon,
|
|
44
|
-
_item$text = item.text,
|
|
45
|
-
text = _item$text === void 0 ? '' : _item$text,
|
|
46
|
-
_item$info = item.info,
|
|
47
|
-
info = _item$info === void 0 ? '' : _item$info;
|
|
48
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
49
|
-
className: cn('item'),
|
|
50
|
-
key: "".concat(text || info, "_").concat(i)
|
|
51
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
52
|
-
className: cn('item-icon')
|
|
53
|
-
}, icon), /*#__PURE__*/_react["default"].createElement("div", {
|
|
54
|
-
className: cn('item-description')
|
|
55
|
-
}, !!text && /*#__PURE__*/_react["default"].createElement("div", {
|
|
56
|
-
className: cn('item-text')
|
|
57
|
-
}, (0, _uiHelpers.convert)(text, {})), !!info && /*#__PURE__*/_react["default"].createElement("div", {
|
|
58
|
-
className: cn('item-info')
|
|
59
|
-
}, (0, _uiHelpers.convert)(info, {}))));
|
|
60
|
-
});
|
|
61
|
-
return /*#__PURE__*/_react["default"].createElement(ElementType, (0, _extends2["default"])({
|
|
62
|
-
className: cn({
|
|
63
|
-
background: background,
|
|
64
|
-
active: isLink
|
|
65
|
-
}, [classes.root])
|
|
66
|
-
}, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root, {
|
|
67
|
-
href: href,
|
|
68
|
-
target: isLink ? target : undefined,
|
|
69
|
-
rel: isLink ? currentRel : undefined
|
|
70
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
71
|
-
className: cn('content')
|
|
72
|
-
}, !!title && /*#__PURE__*/_react["default"].createElement(_uiCore.Header, {
|
|
73
|
-
className: cn('title', [classes === null || classes === void 0 ? void 0 : classes.title]),
|
|
74
|
-
dataAttrs: {
|
|
75
|
-
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.title
|
|
76
|
-
},
|
|
77
|
-
as: "h3"
|
|
78
|
-
}, (0, _uiHelpers.convert)(title, {})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
79
|
-
className: cn('items')
|
|
80
|
-
}, items), !!buttonTitle && /*#__PURE__*/_react["default"].createElement(_uiCore.Button, {
|
|
81
|
-
className: cn('button', [classes.button]),
|
|
82
|
-
dataAttrs: {
|
|
83
|
-
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.button
|
|
84
|
-
},
|
|
85
|
-
href: buttonHref,
|
|
86
|
-
target: buttonTarget,
|
|
87
|
-
rel: currentButtonRel,
|
|
88
|
-
onClick: onButtonClick
|
|
89
|
-
}, buttonTitle)), /*#__PURE__*/_react["default"].createElement("picture", {
|
|
90
|
-
className: cn('picture')
|
|
91
|
-
}, /*#__PURE__*/_react["default"].createElement("source", {
|
|
92
|
-
media: "(min-width: ".concat(_uiHelpers.breakpoints.DESKTOP_MIDDLE_START, "px)"),
|
|
93
|
-
srcSet: image.srcWide
|
|
94
|
-
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
95
|
-
className: cn('image'),
|
|
96
|
-
src: image.src,
|
|
97
|
-
alt: image.alt || 'image'
|
|
98
|
-
})));
|
|
99
|
-
};
|
|
100
|
-
var _default = exports["default"] = SidePictureCard;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type TargetType = '_self' | '_blank' | '_parent' | '_top';
|
|
3
|
-
type ButtonType = {
|
|
4
|
-
/** Название */
|
|
5
|
-
title: string;
|
|
6
|
-
/** Ссылка */
|
|
7
|
-
href?: string;
|
|
8
|
-
/** Атрибут ссылки target */
|
|
9
|
-
target?: TargetType;
|
|
10
|
-
/** Атрибут ссылки rel */
|
|
11
|
-
rel?: string;
|
|
12
|
-
/** Обработчик клика */
|
|
13
|
-
onClick?: (e: React.SyntheticEvent<EventTarget>) => void;
|
|
14
|
-
};
|
|
15
|
-
type ImageType = {
|
|
16
|
-
/** Изображение на разрешении экрана 0-1279 */
|
|
17
|
-
src: string;
|
|
18
|
-
/** Изображение на разрешении экрана 1280+ */
|
|
19
|
-
srcWide: string;
|
|
20
|
-
/** Значение тега alt для изображения */
|
|
21
|
-
alt?: string;
|
|
22
|
-
};
|
|
23
|
-
type IconContentType = {
|
|
24
|
-
/** Иконка */
|
|
25
|
-
icon: React.ReactNode;
|
|
26
|
-
/** Текст-описание */
|
|
27
|
-
text?: string;
|
|
28
|
-
/** Дополнительная информация, значение */
|
|
29
|
-
info?: string;
|
|
30
|
-
};
|
|
31
|
-
export type CardDataType = {
|
|
32
|
-
/** Заголовок */
|
|
33
|
-
title?: string;
|
|
34
|
-
/** Изображение */
|
|
35
|
-
image: ImageType;
|
|
36
|
-
/** Список пунктов с иконками */
|
|
37
|
-
iconItems: IconContentType[];
|
|
38
|
-
/** Кнопка */
|
|
39
|
-
button?: ButtonType;
|
|
40
|
-
/** Ссылка */
|
|
41
|
-
href?: string;
|
|
42
|
-
/** Атрибут ссылки target */
|
|
43
|
-
target?: TargetType;
|
|
44
|
-
/** Атрибут ссылки rel */
|
|
45
|
-
rel?: string;
|
|
46
|
-
};
|
|
47
|
-
export type BackgroundType = 'white' | 'gray';
|
|
48
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-stepper{gap:16px}.mfui-stepper,.mfui-stepper__items-wrap{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.mfui-stepper__items-wrap{gap:12px;overflow-x:auto}.mfui-stepper::-webkit-scrollbar{height:8px}.mfui-stepper::-webkit-scrollbar-thumb{background-color:var(--spbSky2);border-radius:8px}.mfui-stepper_is-horizontal .mfui-stepper__items-wrap{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { IStepperItemProps } from './StepperItem';
|
|
3
|
-
import './Stepper.scss';
|
|
4
|
-
export type StepperItemType = Pick<IStepperItemProps, 'title' | 'text' | 'icon' | 'linkText' | 'linkUrl'>;
|
|
5
|
-
export interface IStepperProps {
|
|
6
|
-
/** Дополнительный класс корневого элемента */
|
|
7
|
-
className?: string;
|
|
8
|
-
/** Дополнительные классы элементов */
|
|
9
|
-
classes?: {
|
|
10
|
-
root?: string;
|
|
11
|
-
itemsWrap?: string;
|
|
12
|
-
item?: string;
|
|
13
|
-
itemIconButton?: string;
|
|
14
|
-
itemTitle?: string;
|
|
15
|
-
itemText?: string;
|
|
16
|
-
itemLink?: string;
|
|
17
|
-
};
|
|
18
|
-
/** Ссылка на корневой элемент */
|
|
19
|
-
rootRef?: React.Ref<HTMLDivElement>;
|
|
20
|
-
/** Индекс активного шага */
|
|
21
|
-
activeStep?: number;
|
|
22
|
-
/** Количество шагов */
|
|
23
|
-
stepCount?: number;
|
|
24
|
-
/** Шаги */
|
|
25
|
-
items?: StepperItemType[];
|
|
26
|
-
/** Направление */
|
|
27
|
-
isHorizontal?: boolean;
|
|
28
|
-
/** Цифры вместо галочек */
|
|
29
|
-
isNumeric?: boolean;
|
|
30
|
-
/** Отключение кнопок */
|
|
31
|
-
isDisabled?: boolean;
|
|
32
|
-
/** Все шаги пройдены */
|
|
33
|
-
isAllChecked?: boolean;
|
|
34
|
-
/** Отображение контента только активного шага */
|
|
35
|
-
showActiveStepContent?: boolean;
|
|
36
|
-
/** Выравнивание */
|
|
37
|
-
align?: 'center' | 'left';
|
|
38
|
-
/** Дополнительные data атрибуты к внутренним элементам */
|
|
39
|
-
dataAttrs?: {
|
|
40
|
-
root?: Record<string, string>;
|
|
41
|
-
itemsWrap?: Record<string, string>;
|
|
42
|
-
item?: Record<string, string>;
|
|
43
|
-
itemIconButton?: Record<string, string>;
|
|
44
|
-
itemTitle?: Record<string, string>;
|
|
45
|
-
itemText?: Record<string, string>;
|
|
46
|
-
itemLink?: Record<string, string>;
|
|
47
|
-
};
|
|
48
|
-
/** Обработчик события смены шага */
|
|
49
|
-
onChange?: (index: number) => void;
|
|
50
|
-
}
|
|
51
|
-
declare const Stepper: React.FC<IStepperProps>;
|
|
52
|
-
export default Stepper;
|
|
@@ -1,168 +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 _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
-
require("core-js/modules/es.array.from.js");
|
|
11
|
-
require("core-js/modules/es.array.map.js");
|
|
12
|
-
require("core-js/modules/es.string.iterator.js");
|
|
13
|
-
var React = _interopRequireWildcard(require("react"));
|
|
14
|
-
var _uiHelpers = require("@megafon/ui-helpers");
|
|
15
|
-
var _StepperItem = _interopRequireWildcard(require("./StepperItem"));
|
|
16
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
17
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
18
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
19
|
-
var CheckedIcon = function CheckedIcon(props) {
|
|
20
|
-
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
21
|
-
viewBox: "0 0 20 20"
|
|
22
|
-
}, props), /*#__PURE__*/React.createElement("path", {
|
|
23
|
-
d: "M8.832 11.547L6.619 9.335l-1.414 1.413 2.462 2.462 1.445 1.446 5.932-8.486-1.638-1.148-4.574 6.525z"
|
|
24
|
-
}));
|
|
25
|
-
};
|
|
26
|
-
var cn = (0, _uiHelpers.cnCreate)('mfui-stepper');
|
|
27
|
-
var Stepper = function Stepper(_ref) {
|
|
28
|
-
var className = _ref.className,
|
|
29
|
-
_ref$classes = _ref.classes,
|
|
30
|
-
_ref$classes2 = _ref$classes === void 0 ? {} : _ref$classes,
|
|
31
|
-
rootClassName = _ref$classes2.root,
|
|
32
|
-
itemsWrapClassName = _ref$classes2.itemsWrap,
|
|
33
|
-
itemClassName = _ref$classes2.item,
|
|
34
|
-
itemIconButtonClassName = _ref$classes2.itemIconButton,
|
|
35
|
-
itemTitleClassName = _ref$classes2.itemTitle,
|
|
36
|
-
itemTextClassname = _ref$classes2.itemText,
|
|
37
|
-
itemLinkClassName = _ref$classes2.itemLink,
|
|
38
|
-
rootRef = _ref.rootRef,
|
|
39
|
-
_ref$activeStep = _ref.activeStep,
|
|
40
|
-
activeStep = _ref$activeStep === void 0 ? 0 : _ref$activeStep,
|
|
41
|
-
_ref$stepCount = _ref.stepCount,
|
|
42
|
-
stepCount = _ref$stepCount === void 0 ? 2 : _ref$stepCount,
|
|
43
|
-
_ref$items = _ref.items,
|
|
44
|
-
items = _ref$items === void 0 ? [] : _ref$items,
|
|
45
|
-
_ref$isHorizontal = _ref.isHorizontal,
|
|
46
|
-
isHorizontal = _ref$isHorizontal === void 0 ? true : _ref$isHorizontal,
|
|
47
|
-
isNumeric = _ref.isNumeric,
|
|
48
|
-
isDisabled = _ref.isDisabled,
|
|
49
|
-
isAllChecked = _ref.isAllChecked,
|
|
50
|
-
_ref$showActiveStepCo = _ref.showActiveStepContent,
|
|
51
|
-
showActiveStepContent = _ref$showActiveStepCo === void 0 ? false : _ref$showActiveStepCo,
|
|
52
|
-
_ref$align = _ref.align,
|
|
53
|
-
align = _ref$align === void 0 ? 'center' : _ref$align,
|
|
54
|
-
_ref$dataAttrs = _ref.dataAttrs,
|
|
55
|
-
_ref$dataAttrs2 = _ref$dataAttrs === void 0 ? {} : _ref$dataAttrs,
|
|
56
|
-
rootAttrs = _ref$dataAttrs2.root,
|
|
57
|
-
itemsWrapAttrs = _ref$dataAttrs2.itemsWrap,
|
|
58
|
-
itemAttrs = _ref$dataAttrs2.item,
|
|
59
|
-
itemIconButtonAttrs = _ref$dataAttrs2.itemIconButton,
|
|
60
|
-
itemTitleAttrs = _ref$dataAttrs2.itemTitle,
|
|
61
|
-
itemTextAttrs = _ref$dataAttrs2.itemText,
|
|
62
|
-
itemLinkAttrs = _ref$dataAttrs2.itemLink,
|
|
63
|
-
_ref$onChange = _ref.onChange,
|
|
64
|
-
onChange = _ref$onChange === void 0 ? function () {
|
|
65
|
-
return null;
|
|
66
|
-
} : _ref$onChange;
|
|
67
|
-
var _React$useState = React.useState(activeStep),
|
|
68
|
-
_React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
|
|
69
|
-
currentIndex = _React$useState2[0],
|
|
70
|
-
setCurrentIndex = _React$useState2[1];
|
|
71
|
-
var hasCustomItems = !!items.length;
|
|
72
|
-
var isHorizontalContent = isHorizontal || showActiveStepContent;
|
|
73
|
-
var currentItems = hasCustomItems ? items : Array.from({
|
|
74
|
-
length: stepCount
|
|
75
|
-
});
|
|
76
|
-
var isCorrectDisabled = React.useMemo(function () {
|
|
77
|
-
return !!isAllChecked || !!isDisabled;
|
|
78
|
-
}, [isAllChecked, isDisabled]);
|
|
79
|
-
var defineItemTheme = React.useCallback(function (index) {
|
|
80
|
-
switch (true) {
|
|
81
|
-
case isAllChecked:
|
|
82
|
-
case index < currentIndex:
|
|
83
|
-
{
|
|
84
|
-
return _StepperItem.STEPPER_ITEM_THEME_ENUM.CHECKED;
|
|
85
|
-
}
|
|
86
|
-
case index === currentIndex:
|
|
87
|
-
{
|
|
88
|
-
return _StepperItem.STEPPER_ITEM_THEME_ENUM.ACTIVE;
|
|
89
|
-
}
|
|
90
|
-
default:
|
|
91
|
-
{
|
|
92
|
-
return _StepperItem.STEPPER_ITEM_THEME_ENUM.DEFAULT;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}, [currentIndex, isAllChecked]);
|
|
96
|
-
var handleClickItem = React.useCallback(function (index) {
|
|
97
|
-
return function () {
|
|
98
|
-
if (isCorrectDisabled) {
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
setCurrentIndex(index);
|
|
102
|
-
onChange(index);
|
|
103
|
-
};
|
|
104
|
-
}, [isCorrectDisabled, onChange]);
|
|
105
|
-
React.useEffect(function () {
|
|
106
|
-
if (activeStep === undefined) {
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
setCurrentIndex(activeStep);
|
|
110
|
-
}, [activeStep]);
|
|
111
|
-
var renderIcon = React.useCallback(function (index, theme) {
|
|
112
|
-
var isChecked = theme === _StepperItem.STEPPER_ITEM_THEME_ENUM.CHECKED;
|
|
113
|
-
if (isNumeric || !isChecked) {
|
|
114
|
-
return index + 1;
|
|
115
|
-
}
|
|
116
|
-
return /*#__PURE__*/React.createElement(CheckedIcon, null);
|
|
117
|
-
}, [isNumeric]);
|
|
118
|
-
var renderItem = React.useCallback(function (props, index) {
|
|
119
|
-
return /*#__PURE__*/React.createElement(_StepperItem["default"], (0, _extends2["default"])({}, props, {
|
|
120
|
-
key: index,
|
|
121
|
-
className: itemClassName,
|
|
122
|
-
classes: {
|
|
123
|
-
iconButton: itemIconButtonClassName,
|
|
124
|
-
title: itemTitleClassName,
|
|
125
|
-
text: itemTextClassname,
|
|
126
|
-
link: itemLinkClassName
|
|
127
|
-
},
|
|
128
|
-
dataAttrs: {
|
|
129
|
-
root: itemAttrs,
|
|
130
|
-
iconButton: itemIconButtonAttrs,
|
|
131
|
-
title: itemTitleAttrs,
|
|
132
|
-
text: itemTextAttrs,
|
|
133
|
-
link: itemLinkAttrs
|
|
134
|
-
}
|
|
135
|
-
}));
|
|
136
|
-
}, [itemAttrs, itemIconButtonAttrs, itemIconButtonClassName, itemClassName, itemLinkAttrs, itemLinkClassName, itemTextAttrs, itemTextClassname, itemTitleAttrs, itemTitleClassName]);
|
|
137
|
-
var renderItems = React.useMemo(function () {
|
|
138
|
-
return currentItems.map(function (elem, i) {
|
|
139
|
-
var item = elem || {};
|
|
140
|
-
var itemTheme = defineItemTheme(i);
|
|
141
|
-
var itemIcon = item.icon || renderIcon(i, itemTheme);
|
|
142
|
-
return renderItem((0, _extends2["default"])((0, _extends2["default"])({}, item), {
|
|
143
|
-
icon: itemIcon,
|
|
144
|
-
hasSeparator: i < currentItems.length - 1,
|
|
145
|
-
isHorizontal: isHorizontalContent,
|
|
146
|
-
isDisabled: isCorrectDisabled,
|
|
147
|
-
align: align,
|
|
148
|
-
theme: itemTheme,
|
|
149
|
-
view: showActiveStepContent ? _StepperItem.STEPPER_ITEM_VIEW_ENUM.ICON : _StepperItem.STEPPER_ITEM_VIEW_ENUM.DEFAULT,
|
|
150
|
-
onClick: handleClickItem(i)
|
|
151
|
-
}), i);
|
|
152
|
-
});
|
|
153
|
-
}, [align, currentItems, isCorrectDisabled, showActiveStepContent, isHorizontalContent, defineItemTheme, handleClickItem, renderIcon, renderItem]);
|
|
154
|
-
var renderSingleItem = renderItem((0, _extends2["default"])((0, _extends2["default"])({}, currentItems[currentIndex]), {
|
|
155
|
-
isDisabled: isCorrectDisabled,
|
|
156
|
-
align: align,
|
|
157
|
-
view: _StepperItem.STEPPER_ITEM_VIEW_ENUM.CONTENT
|
|
158
|
-
}));
|
|
159
|
-
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(rootAttrs), {
|
|
160
|
-
className: cn([className, rootClassName], {
|
|
161
|
-
'is-horizontal': isHorizontalContent
|
|
162
|
-
}),
|
|
163
|
-
ref: rootRef
|
|
164
|
-
}), /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(itemsWrapAttrs), {
|
|
165
|
-
className: cn('items-wrap', [itemsWrapClassName])
|
|
166
|
-
}), renderItems), showActiveStepContent && renderSingleItem);
|
|
167
|
-
};
|
|
168
|
-
var _default = exports["default"] = Stepper;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-stepper-item{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;gap:16px}.mfui-stepper-item_is-horizontal{-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}.mfui-stepper-item_is-horizontal .mfui-stepper-item__separator{-o-border-image:url(img/separator-mobile.png) 2 round;border-image:url(img/separator-mobile.png) 2 round;border-left:none;border-radius:100px;border-top:2px solid transparent;height:2px;left:calc(50% + 22px);min-height:2px;position:absolute;top:19px;width:calc(100% - 32px)}@media screen and (min-width:768px){.mfui-stepper-item_is-horizontal .mfui-stepper-item__separator{-o-border-image:url(img/separator.png) 2 repeat;border-image:url(img/separator.png) 2 repeat}}@media screen and (min-width:1024px){.mfui-stepper-item_is-horizontal .mfui-stepper-item__separator{left:calc(50% + 32px);width:calc(100% - 52px)}}.mfui-stepper-item_theme_active .mfui-stepper-item__icon-button{background-color:var(--night20)}.mfui-stepper-item_theme_active .mfui-stepper-item__icon{background-color:var(--night)}.mfui-stepper-item_theme_checked .mfui-stepper-item__icon-button{background-color:var(--brandGreen20)}.mfui-stepper-item_theme_checked .mfui-stepper-item__icon{background-color:var(--brandGreen)}.mfui-stepper-item_theme_checked .mfui-stepper-item__separator{border-color:var(--brandGreen);-o-border-image:none;border-image:none}.mfui-stepper-item_align_left{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.mfui-stepper-item_align_left .mfui-stepper-item__separator{left:42px;right:0}@media screen and (min-width:1024px){.mfui-stepper-item_align_left .mfui-stepper-item__separator{left:auto}}.mfui-stepper-item_align_left .mfui-stepper-item__content,.mfui-stepper-item_align_left .mfui-stepper-item__icon-button-area{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.mfui-stepper-item__icon-button-area{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:12px;-ms-flex-align:center;-ms-flex-item-align:stretch;align-self:stretch}.mfui-stepper-item__icon-button,.mfui-stepper-item__icon-button-area{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;align-items:center}.mfui-stepper-item__icon-button{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;background-color:var(--spbSky0);border:none;border-radius:100%;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;height:40px;justify-content:center;outline:none;-webkit-transition:background-color .25s ease-out;transition:background-color .25s ease-out;width:40px}.mfui-stepper-item__icon-button:disabled{cursor:default}.mfui-stepper-item__icon{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-color:var(--spbSky2);border-radius:100%;color:var(--stcWhite);font-weight:500;height:24px;justify-content:center;-webkit-transition:background-color .25s ease-out;transition:background-color .25s ease-out;width:24px}.mfui-stepper-item__icon svg{height:20px;width:20px;fill:var(--stcWhite)}.mfui-stepper-item__separator{-o-border-image:url(img/separator-vertical.png) 2 repeat;border-image:url(img/separator-vertical.png) 2 repeat;border-left:2px solid transparent;border-top:none;height:100%;min-height:20px;position:static;-webkit-transition:border-color .25s ease-out;transition:border-color .25s ease-out;width:2px}.mfui-stepper-item__content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:4px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;min-width:160px;padding-bottom:20px}.mfui-stepper-item__link{margin-top:13px}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './StepperItem.scss';
|
|
3
|
-
export declare enum STEPPER_ITEM_THEME_ENUM {
|
|
4
|
-
CHECKED = "checked",
|
|
5
|
-
ACTIVE = "active",
|
|
6
|
-
DEFAULT = "default"
|
|
7
|
-
}
|
|
8
|
-
export declare enum STEPPER_ITEM_VIEW_ENUM {
|
|
9
|
-
ICON = "icon",
|
|
10
|
-
CONTENT = "content",
|
|
11
|
-
DEFAULT = "default"
|
|
12
|
-
}
|
|
13
|
-
export interface IStepperItemProps {
|
|
14
|
-
/** Дополнительный класс корневого элемента */
|
|
15
|
-
className?: string;
|
|
16
|
-
/** Дополнительные классы элементов */
|
|
17
|
-
classes?: {
|
|
18
|
-
iconButton?: string;
|
|
19
|
-
title?: string;
|
|
20
|
-
text?: string;
|
|
21
|
-
link?: string;
|
|
22
|
-
};
|
|
23
|
-
/** Тема */
|
|
24
|
-
theme?: STEPPER_ITEM_THEME_ENUM;
|
|
25
|
-
/** Заголовок */
|
|
26
|
-
title?: string;
|
|
27
|
-
/** Текст */
|
|
28
|
-
text?: string;
|
|
29
|
-
/** Текст ссылки */
|
|
30
|
-
linkText?: string;
|
|
31
|
-
/** Адрес ссылки */
|
|
32
|
-
linkUrl?: string;
|
|
33
|
-
/** Иконка */
|
|
34
|
-
icon?: string | number | JSX.Element;
|
|
35
|
-
/** Наличие разделителя */
|
|
36
|
-
hasSeparator?: boolean;
|
|
37
|
-
/** Направление */
|
|
38
|
-
isHorizontal?: boolean;
|
|
39
|
-
/** Отключение */
|
|
40
|
-
isDisabled?: boolean;
|
|
41
|
-
/** Выравнивание */
|
|
42
|
-
align?: 'center' | 'left';
|
|
43
|
-
/** Варианты отображения */
|
|
44
|
-
view?: STEPPER_ITEM_VIEW_ENUM;
|
|
45
|
-
/** Дополнительные data атрибуты к внутренним элементам */
|
|
46
|
-
dataAttrs?: {
|
|
47
|
-
root?: Record<string, string>;
|
|
48
|
-
iconButton?: Record<string, string>;
|
|
49
|
-
title?: Record<string, string>;
|
|
50
|
-
text?: Record<string, string>;
|
|
51
|
-
link?: Record<string, string>;
|
|
52
|
-
};
|
|
53
|
-
/** Обработчик события клика */
|
|
54
|
-
onClick?: () => void;
|
|
55
|
-
}
|
|
56
|
-
declare const StepperItem: React.FC<IStepperItemProps>;
|
|
57
|
-
export default StepperItem;
|
|
@@ -1,108 +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.STEPPER_ITEM_VIEW_ENUM = exports.STEPPER_ITEM_THEME_ENUM = 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 STEPPER_ITEM_THEME_ENUM;
|
|
17
|
-
(function (STEPPER_ITEM_THEME_ENUM) {
|
|
18
|
-
STEPPER_ITEM_THEME_ENUM["CHECKED"] = "checked";
|
|
19
|
-
STEPPER_ITEM_THEME_ENUM["ACTIVE"] = "active";
|
|
20
|
-
STEPPER_ITEM_THEME_ENUM["DEFAULT"] = "default";
|
|
21
|
-
})(STEPPER_ITEM_THEME_ENUM || (exports.STEPPER_ITEM_THEME_ENUM = STEPPER_ITEM_THEME_ENUM = {}));
|
|
22
|
-
var STEPPER_ITEM_VIEW_ENUM;
|
|
23
|
-
(function (STEPPER_ITEM_VIEW_ENUM) {
|
|
24
|
-
STEPPER_ITEM_VIEW_ENUM["ICON"] = "icon";
|
|
25
|
-
STEPPER_ITEM_VIEW_ENUM["CONTENT"] = "content";
|
|
26
|
-
STEPPER_ITEM_VIEW_ENUM["DEFAULT"] = "default";
|
|
27
|
-
})(STEPPER_ITEM_VIEW_ENUM || (exports.STEPPER_ITEM_VIEW_ENUM = STEPPER_ITEM_VIEW_ENUM = {}));
|
|
28
|
-
var cn = (0, _uiHelpers.cnCreate)('mfui-stepper-item');
|
|
29
|
-
var StepperItem = function StepperItem(_ref) {
|
|
30
|
-
var className = _ref.className,
|
|
31
|
-
_ref$classes = _ref.classes,
|
|
32
|
-
_ref$classes2 = _ref$classes === void 0 ? {} : _ref$classes,
|
|
33
|
-
iconButtonClassName = _ref$classes2.iconButton,
|
|
34
|
-
titleClassName = _ref$classes2.title,
|
|
35
|
-
textClassName = _ref$classes2.text,
|
|
36
|
-
linkClassName = _ref$classes2.link,
|
|
37
|
-
_ref$theme = _ref.theme,
|
|
38
|
-
theme = _ref$theme === void 0 ? STEPPER_ITEM_THEME_ENUM.DEFAULT : _ref$theme,
|
|
39
|
-
title = _ref.title,
|
|
40
|
-
text = _ref.text,
|
|
41
|
-
linkText = _ref.linkText,
|
|
42
|
-
linkUrl = _ref.linkUrl,
|
|
43
|
-
icon = _ref.icon,
|
|
44
|
-
hasSeparator = _ref.hasSeparator,
|
|
45
|
-
_ref$isHorizontal = _ref.isHorizontal,
|
|
46
|
-
isHorizontal = _ref$isHorizontal === void 0 ? true : _ref$isHorizontal,
|
|
47
|
-
isDisabled = _ref.isDisabled,
|
|
48
|
-
_ref$align = _ref.align,
|
|
49
|
-
align = _ref$align === void 0 ? 'center' : _ref$align,
|
|
50
|
-
_ref$view = _ref.view,
|
|
51
|
-
view = _ref$view === void 0 ? STEPPER_ITEM_VIEW_ENUM.DEFAULT : _ref$view,
|
|
52
|
-
_ref$dataAttrs = _ref.dataAttrs,
|
|
53
|
-
_ref$dataAttrs2 = _ref$dataAttrs === void 0 ? {} : _ref$dataAttrs,
|
|
54
|
-
rootAttrs = _ref$dataAttrs2.root,
|
|
55
|
-
iconButtonAttrs = _ref$dataAttrs2.iconButton,
|
|
56
|
-
titleAttrs = _ref$dataAttrs2.title,
|
|
57
|
-
textAttrs = _ref$dataAttrs2.text,
|
|
58
|
-
linkAttrs = _ref$dataAttrs2.link,
|
|
59
|
-
onClick = _ref.onClick;
|
|
60
|
-
var hasLink = !!linkText && !!linkUrl;
|
|
61
|
-
var hasContent = !!title || !!text || hasLink;
|
|
62
|
-
var showContent = view !== STEPPER_ITEM_VIEW_ENUM.ICON && hasContent;
|
|
63
|
-
var showIcon = view !== STEPPER_ITEM_VIEW_ENUM.CONTENT;
|
|
64
|
-
var renderContent = /*#__PURE__*/React.createElement("div", {
|
|
65
|
-
className: cn('content')
|
|
66
|
-
}, title && /*#__PURE__*/React.createElement(_uiCore.Header, {
|
|
67
|
-
className: cn([titleClassName]),
|
|
68
|
-
dataAttrs: {
|
|
69
|
-
root: titleAttrs
|
|
70
|
-
},
|
|
71
|
-
as: "h5",
|
|
72
|
-
align: align
|
|
73
|
-
}, title), text && /*#__PURE__*/React.createElement(_uiCore.Paragraph, {
|
|
74
|
-
className: cn([textClassName]),
|
|
75
|
-
dataAttrs: {
|
|
76
|
-
root: textAttrs
|
|
77
|
-
},
|
|
78
|
-
hasMargin: false,
|
|
79
|
-
align: align
|
|
80
|
-
}, text), hasLink && /*#__PURE__*/React.createElement(_uiCore.Button, {
|
|
81
|
-
className: cn('link', [linkClassName]),
|
|
82
|
-
dataAttrs: {
|
|
83
|
-
root: linkAttrs
|
|
84
|
-
},
|
|
85
|
-
href: linkUrl,
|
|
86
|
-
type: "text",
|
|
87
|
-
sizeAll: "extra-small"
|
|
88
|
-
}, linkText));
|
|
89
|
-
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(rootAttrs), {
|
|
90
|
-
className: cn([className], {
|
|
91
|
-
theme: theme,
|
|
92
|
-
align: align,
|
|
93
|
-
'is-horizontal': isHorizontal
|
|
94
|
-
})
|
|
95
|
-
}), showIcon && /*#__PURE__*/React.createElement("div", {
|
|
96
|
-
className: cn('icon-button-area')
|
|
97
|
-
}, /*#__PURE__*/React.createElement("button", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(iconButtonAttrs), {
|
|
98
|
-
className: cn('icon-button', [iconButtonClassName]),
|
|
99
|
-
type: "button",
|
|
100
|
-
disabled: isDisabled,
|
|
101
|
-
onClick: onClick
|
|
102
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
103
|
-
className: cn('icon')
|
|
104
|
-
}, icon)), hasSeparator && /*#__PURE__*/React.createElement("span", {
|
|
105
|
-
className: cn('separator')
|
|
106
|
-
})), showContent && renderContent);
|
|
107
|
-
};
|
|
108
|
-
var _default = exports["default"] = StepperItem;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-steps{margin-left:auto;margin-right:auto;width:100%}@media screen and (min-width:768px){.mfui-steps{width:66%}}@media screen and (min-width:1280px){.mfui-steps{width:49%}}.mfui-steps__title{margin-bottom:24px}@media screen and (min-width:1024px){.mfui-steps__title{margin-bottom:40px}}.mfui-steps__list{list-style:none;margin:0;padding:0}.mfui-steps__item{border-radius:24px;margin-bottom:12px;padding:16px}.mfui-steps__item:last-child{margin-bottom:0}.mfui-steps_theme_gray .mfui-steps__item{background-color:var(--spbSky0)}.mfui-steps_theme_white .mfui-steps__item{background-color:var(--base)}.mfui-steps_theme_none .mfui-steps__title{margin-bottom:40px}.mfui-steps_theme_none .mfui-steps__item{border-radius:0;margin-bottom:48px;padding:0}@media screen and (max-width:767px){.mfui-steps_theme_none .mfui-steps__item{margin-bottom:24px}}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './Steps.scss';
|
|
3
|
-
export interface ISteps {
|
|
4
|
-
/** Дополнительный класс корневого элемента */
|
|
5
|
-
className?: string;
|
|
6
|
-
/** Дополнительные классы для корневого и внутренних элементов */
|
|
7
|
-
classes?: {
|
|
8
|
-
title?: string;
|
|
9
|
-
list?: string;
|
|
10
|
-
item?: string;
|
|
11
|
-
};
|
|
12
|
-
/** Ссылка на корневой элемент */
|
|
13
|
-
rootRef?: React.Ref<HTMLDivElement>;
|
|
14
|
-
/** Заголовок */
|
|
15
|
-
title?: string;
|
|
16
|
-
/** Цветовая тема. DEPRECATED: 'none' */
|
|
17
|
-
theme?: 'none' | 'white' | 'gray';
|
|
18
|
-
children: React.ReactNode;
|
|
19
|
-
}
|
|
20
|
-
declare const Steps: React.FC<ISteps>;
|
|
21
|
-
export default Steps;
|
|
@@ -1,40 +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
|
-
require("core-js/modules/es.array.map.js");
|
|
9
|
-
var React = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _uiCore = require("@megafon/ui-core");
|
|
11
|
-
var _uiHelpers = require("@megafon/ui-helpers");
|
|
12
|
-
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); }
|
|
13
|
-
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; }
|
|
14
|
-
var cn = (0, _uiHelpers.cnCreate)('mfui-steps');
|
|
15
|
-
var Steps = function Steps(_ref) {
|
|
16
|
-
var className = _ref.className,
|
|
17
|
-
classes = _ref.classes,
|
|
18
|
-
title = _ref.title,
|
|
19
|
-
rootRef = _ref.rootRef,
|
|
20
|
-
_ref$theme = _ref.theme,
|
|
21
|
-
theme = _ref$theme === void 0 ? 'none' : _ref$theme,
|
|
22
|
-
children = _ref.children;
|
|
23
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
24
|
-
className: cn({
|
|
25
|
-
theme: theme
|
|
26
|
-
}, [className]),
|
|
27
|
-
ref: rootRef
|
|
28
|
-
}, !!title && /*#__PURE__*/React.createElement(_uiCore.Header, {
|
|
29
|
-
as: "h2",
|
|
30
|
-
align: "center",
|
|
31
|
-
className: cn('title', [classes === null || classes === void 0 ? void 0 : classes.title])
|
|
32
|
-
}, (0, _uiHelpers.convert)(title, _uiHelpers.titleConvertConfig)), /*#__PURE__*/React.createElement("ul", {
|
|
33
|
-
className: cn('list', [classes === null || classes === void 0 ? void 0 : classes.list])
|
|
34
|
-
}, React.Children.map(children, function (child) {
|
|
35
|
-
return /*#__PURE__*/React.createElement("li", {
|
|
36
|
-
className: cn('item', [classes === null || classes === void 0 ? void 0 : classes.item])
|
|
37
|
-
}, child);
|
|
38
|
-
})));
|
|
39
|
-
};
|
|
40
|
-
var _default = exports["default"] = Steps;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-steps-item,.mfui-steps-item__step-number{display:-webkit-box;display:-ms-flexbox;display:flex}.mfui-steps-item__step-number{font-size:15px;font-weight:500;line-height:24px;-ms-flex-negative:0;flex-shrink:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;background-color:var(--brandGreen);border-radius:12px;color:var(--stcWhite);height:40px;justify-content:center;width:40px}.mfui-steps-item__text-wrapper{padding-left:16px;padding-top:8px}.mfui-steps-item__nodes{font-size:15px;font-weight:400;line-height:24px}
|