@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,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.array.index-of.js";
|
|
4
|
-
var __rest = this && this.__rest || function (s, e) {
|
|
5
|
-
var t = {};
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
7
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import * as React from 'react';
|
|
13
|
-
import { Link } from '@megafon/ui-core';
|
|
14
|
-
import { cnCreate } from '@megafon/ui-helpers';
|
|
15
|
-
import "./StoreButton.css";
|
|
16
|
-
export var ButtonSizes;
|
|
17
|
-
(function (ButtonSizes) {
|
|
18
|
-
ButtonSizes["SMALL"] = "small";
|
|
19
|
-
ButtonSizes["MEDIUM"] = "medium";
|
|
20
|
-
ButtonSizes["LARGE"] = "large";
|
|
21
|
-
})(ButtonSizes || (ButtonSizes = {}));
|
|
22
|
-
export var Theme;
|
|
23
|
-
(function (Theme) {
|
|
24
|
-
Theme["APP_STORE"] = "app-store";
|
|
25
|
-
Theme["GALAXY_STORE"] = "galaxy-store";
|
|
26
|
-
Theme["GOOGLE_PLAY"] = "google-play";
|
|
27
|
-
Theme["HUAWEI_STORE"] = "huawei-store";
|
|
28
|
-
Theme["MI_STORE"] = "mi-store";
|
|
29
|
-
Theme["RU_STORE"] = "ru-store";
|
|
30
|
-
Theme["V_APPSTORE"] = "v-appstore";
|
|
31
|
-
})(Theme || (Theme = {}));
|
|
32
|
-
var cn = cnCreate('mfui-store-button');
|
|
33
|
-
var StoreButton = function StoreButton(_a) {
|
|
34
|
-
var href = _a.href,
|
|
35
|
-
rel = _a.rel,
|
|
36
|
-
onClick = _a.onClick,
|
|
37
|
-
theme = _a.theme,
|
|
38
|
-
className = _a.className,
|
|
39
|
-
_a$sizeAll = _a.sizeAll,
|
|
40
|
-
sizeAll = _a$sizeAll === void 0 ? ButtonSizes.MEDIUM : _a$sizeAll,
|
|
41
|
-
sizeWide = _a.sizeWide,
|
|
42
|
-
sizeDesktop = _a.sizeDesktop,
|
|
43
|
-
sizeTablet = _a.sizeTablet,
|
|
44
|
-
sizeMobile = _a.sizeMobile,
|
|
45
|
-
rest = __rest(_a, ["href", "rel", "onClick", "theme", "className", "sizeAll", "sizeWide", "sizeDesktop", "sizeTablet", "sizeMobile"]);
|
|
46
|
-
return /*#__PURE__*/React.createElement(Link, _extends({}, rest, {
|
|
47
|
-
href: href,
|
|
48
|
-
rel: rel,
|
|
49
|
-
onClick: onClick,
|
|
50
|
-
className: cn({
|
|
51
|
-
theme: theme,
|
|
52
|
-
'size-all': sizeAll,
|
|
53
|
-
'size-wide': sizeWide,
|
|
54
|
-
'size-desktop': sizeDesktop,
|
|
55
|
-
'size-tablet': sizeTablet,
|
|
56
|
-
'size-mobile': sizeMobile
|
|
57
|
-
}, className)
|
|
58
|
-
}));
|
|
59
|
-
};
|
|
60
|
-
export default StoreButton;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-table{display:-webkit-box;display:-ms-flexbox;display:flex;font-family:inherit;font-size:15px;line-height:24px}@supports (-moz-appearance:none){.mfui-table__scroll{scrollbar-color:var(--spbSky2) var(--spbSky1);scrollbar-width:auto}}.mfui-table:not(.mfui-table_touch) .mfui-table__scroll::-webkit-scrollbar{background-color:var(--spbSky1);border-radius:100px;height:8px;width:8px}.mfui-table:not(.mfui-table_touch) .mfui-table__scroll::-webkit-scrollbar-track{background-color:var(--spbSky0);border-radius:100px}.mfui-table:not(.mfui-table_touch) .mfui-table__scroll::-webkit-scrollbar-thumb{background-color:var(--spbSky2);border-radius:100px}.mfui-table:not(.mfui-table_touch) .mfui-table__scroll::-webkit-scrollbar-corner{background:transparent}.mfui-table__scroll{display:grid;grid-template-columns:auto auto auto;max-width:100%;overflow:auto;position:relative}@media screen and (min-width:1024px){.mfui-table__scroll_limit{max-height:500px}}.mfui-table__top-shadow{background:-webkit-gradient(linear,left top,left bottom,color-stop(.01%,rgba(0,0,0,.04)),color-stop(49.5%,rgba(0,0,0,.01)),color-stop(99.98%,hsla(0,0%,100%,0)));background:linear-gradient(180deg,rgba(0,0,0,.04) .01%,rgba(0,0,0,.01) 49.5%,hsla(0,0%,100%,0) 99.98%);display:block;grid-column-end:4;grid-column-start:1;height:18px;margin-bottom:-18px;position:sticky;top:0;width:100%;z-index:2}.mfui-table__left-shadow{background:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.04)),color-stop(49.5%,rgba(0,0,0,.01)),to(hsla(0,0%,100%,0)));background:linear-gradient(90deg,rgba(0,0,0,.04),rgba(0,0,0,.01) 49.5%,hsla(0,0%,100%,0));bottom:0;left:0;margin-right:-18px;position:sticky;top:0;width:18px;z-index:2}.mfui-table__bottom-gradient{background:-webkit-gradient(linear,left bottom,left top,color-stop(25%,var(--base)),to(hsla(0,0%,100%,0)));background:linear-gradient(to top,var(--base) 25%,hsla(0,0%,100%,0));bottom:0;display:block;grid-column-end:4;grid-column-start:1;height:48px;margin-top:-48px;position:sticky;width:100%;z-index:1}.mfui-table__right-gradient{background:-webkit-gradient(linear,right top,left top,color-stop(25%,var(--base)),to(hsla(0,0%,100%,0)));background:linear-gradient(to left,var(--base) 25%,hsla(0,0%,100%,0));display:block;height:100%;margin-left:-48px;position:sticky;right:0;width:48px;z-index:1}.mfui-table__table{background-color:var(--base);border-collapse:separate;border-spacing:0;border-width:0}.mfui-table__cell{background-color:var(--base);-webkit-box-sizing:border-box;box-sizing:border-box;padding:24px}@media screen and (max-width:767px){.mfui-table__cell{padding-left:16px;padding-right:16px}}.mfui-table__cell:first-child{left:0;min-width:144px;position:relative;width:144px}.mfui-table__cell:not(:first-child){max-width:288px}.mfui-table__row_head .mfui-table__cell{background-color:var(--spbSky0);color:var(--spbSky3);font-size:12px;height:72px;line-height:18px;padding-bottom:12px;vertical-align:bottom}.mfui-table__row_head .mfui-table__cell:first-child{border-bottom-left-radius:16px;border-top-left-radius:16px}.mfui-table__row_head .mfui-table__cell:last-child{border-bottom-right-radius:16px;border-top-right-radius:16px}.mfui-table__row_content:last-child .mfui-table__cell{border-bottom:1px solid var(--spbSky1)}.mfui-table__row_content .mfui-table__cell{border-top:1px solid var(--spbSky1)}.mfui-table__row_head+.mfui-table__row_content .mfui-table__cell{border-top:none}.mfui-table__row_align_bottom .mfui-table__cell{vertical-align:bottom}.mfui-table__row_align_top .mfui-table__cell{vertical-align:top}.mfui-table__row_align_top.mfui-table__row_head .mfui-table__cell{padding-top:12px}.mfui-table_min-cell-size_small .mfui-table__cell:not(:first-child){min-width:72px}.mfui-table_min-cell-size_large .mfui-table__cell:not(:first-child){min-width:144px}.mfui-table_fix-column .mfui-table__cell:first-child{position:sticky}.mfui-table_fix-column .mfui-table__left-shadow{left:144px}.mfui-table_fix-column .mfui-table__bottom-gradient{z-index:3}.mfui-table_bold-font .mfui-table__cell:first-child{font-weight:500}.mfui-table_horizontal-scroll .mfui-table__row:last-child .mfui-table__cell{border-bottom:none}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './Table.scss';
|
|
3
|
-
import { ITableRow } from './TableRow';
|
|
4
|
-
export interface ITable {
|
|
5
|
-
/** Дополнительный класс корневого элемента */
|
|
6
|
-
className?: string;
|
|
7
|
-
/** Фиксация первой колонки */
|
|
8
|
-
fixColumn?: boolean;
|
|
9
|
-
/** Жирный текст в первой колонке */
|
|
10
|
-
boldFontInFirstColumn?: boolean;
|
|
11
|
-
/** Минимальный размер ячеек */
|
|
12
|
-
minCellSize?: 'small' | 'large';
|
|
13
|
-
/** Отключить ограничение по высоте при разрешении больше 1024px */
|
|
14
|
-
disableHeightLimit?: boolean;
|
|
15
|
-
children: Array<React.ReactElement<ITableRow>>;
|
|
16
|
-
}
|
|
17
|
-
declare const Table: React.FC<ITable>;
|
|
18
|
-
export default Table;
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
import "core-js/modules/es.array.map.js";
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { cnCreate, detectTouch } from '@megafon/ui-helpers';
|
|
5
|
-
import convert from 'htmr';
|
|
6
|
-
import throttle from 'lodash.throttle';
|
|
7
|
-
import "./Table.css";
|
|
8
|
-
var cn = cnCreate('mfui-table');
|
|
9
|
-
var Table = function Table(_ref) {
|
|
10
|
-
var className = _ref.className,
|
|
11
|
-
_ref$fixColumn = _ref.fixColumn,
|
|
12
|
-
fixColumn = _ref$fixColumn === void 0 ? true : _ref$fixColumn,
|
|
13
|
-
_ref$boldFontInFirstC = _ref.boldFontInFirstColumn,
|
|
14
|
-
boldFontInFirstColumn = _ref$boldFontInFirstC === void 0 ? false : _ref$boldFontInFirstC,
|
|
15
|
-
_ref$minCellSize = _ref.minCellSize,
|
|
16
|
-
minCellSize = _ref$minCellSize === void 0 ? 'large' : _ref$minCellSize,
|
|
17
|
-
_ref$disableHeightLim = _ref.disableHeightLimit,
|
|
18
|
-
disableHeightLimit = _ref$disableHeightLim === void 0 ? false : _ref$disableHeightLim,
|
|
19
|
-
children = _ref.children;
|
|
20
|
-
var scrollRef = React.useRef(null);
|
|
21
|
-
var _React$useState = React.useState({
|
|
22
|
-
top: false,
|
|
23
|
-
left: false
|
|
24
|
-
}),
|
|
25
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
26
|
-
shadow = _React$useState2[0],
|
|
27
|
-
setShadow = _React$useState2[1];
|
|
28
|
-
var _React$useState3 = React.useState({
|
|
29
|
-
right: false,
|
|
30
|
-
bottom: false
|
|
31
|
-
}),
|
|
32
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
33
|
-
gradient = _React$useState4[0],
|
|
34
|
-
setGradient = _React$useState4[1];
|
|
35
|
-
var _React$useState5 = React.useState(false),
|
|
36
|
-
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
37
|
-
hasHorizontalScroll = _React$useState6[0],
|
|
38
|
-
setHasHorizontalScroll = _React$useState6[1];
|
|
39
|
-
var _React$useState7 = React.useState(false),
|
|
40
|
-
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
41
|
-
isTouchDevice = _React$useState8[0],
|
|
42
|
-
setTouchDevice = _React$useState8[1];
|
|
43
|
-
var handleTableScroll = React.useCallback(function () {
|
|
44
|
-
var scrollNode = scrollRef.current;
|
|
45
|
-
if (!scrollNode) {
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
var scrollHeight = scrollNode.scrollHeight,
|
|
49
|
-
clientHeight = scrollNode.clientHeight,
|
|
50
|
-
scrollTop = scrollNode.scrollTop,
|
|
51
|
-
scrollWidth = scrollNode.scrollWidth,
|
|
52
|
-
clientWidth = scrollNode.clientWidth,
|
|
53
|
-
scrollLeft = scrollNode.scrollLeft;
|
|
54
|
-
var deltaHeight = scrollHeight - clientHeight;
|
|
55
|
-
var deltaWidth = scrollWidth - clientWidth;
|
|
56
|
-
setGradient({
|
|
57
|
-
right: deltaWidth !== Math.floor(scrollLeft),
|
|
58
|
-
bottom: deltaHeight !== Math.floor(scrollTop)
|
|
59
|
-
});
|
|
60
|
-
setShadow({
|
|
61
|
-
top: !!scrollTop,
|
|
62
|
-
left: !!scrollLeft
|
|
63
|
-
});
|
|
64
|
-
setHasHorizontalScroll(!!deltaWidth);
|
|
65
|
-
}, []);
|
|
66
|
-
React.useEffect(function () {
|
|
67
|
-
var handleResize = throttle(handleTableScroll, 300);
|
|
68
|
-
handleTableScroll();
|
|
69
|
-
window.addEventListener('resize', handleResize);
|
|
70
|
-
return function () {
|
|
71
|
-
window.removeEventListener('resize', handleResize);
|
|
72
|
-
};
|
|
73
|
-
}, [handleTableScroll]);
|
|
74
|
-
React.useEffect(function () {
|
|
75
|
-
setTouchDevice(detectTouch());
|
|
76
|
-
}, []);
|
|
77
|
-
var renderRows = function renderRows() {
|
|
78
|
-
return React.Children.map(children, function (_ref2, index) {
|
|
79
|
-
var _ref2$props = _ref2.props,
|
|
80
|
-
cells = _ref2$props.children,
|
|
81
|
-
head = _ref2$props.head,
|
|
82
|
-
_ref2$props$vAlign = _ref2$props.vAlign,
|
|
83
|
-
vAlign = _ref2$props$vAlign === void 0 ? 'default' : _ref2$props$vAlign;
|
|
84
|
-
return /*#__PURE__*/React.createElement("tr", {
|
|
85
|
-
key: index,
|
|
86
|
-
className: cn('row', {
|
|
87
|
-
head: head,
|
|
88
|
-
content: !head,
|
|
89
|
-
align: vAlign
|
|
90
|
-
}),
|
|
91
|
-
"data-testid": "Table-row"
|
|
92
|
-
}, React.Children.map(cells, function (_ref3, cellIndex) {
|
|
93
|
-
var cell = _ref3.props.children;
|
|
94
|
-
return /*#__PURE__*/React.createElement("td", {
|
|
95
|
-
key: cellIndex,
|
|
96
|
-
className: cn('cell')
|
|
97
|
-
}, typeof cell === 'string' ? convert(cell) : cell);
|
|
98
|
-
}));
|
|
99
|
-
});
|
|
100
|
-
};
|
|
101
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
102
|
-
className: cn({
|
|
103
|
-
'fix-column': fixColumn,
|
|
104
|
-
'min-cell-size': minCellSize,
|
|
105
|
-
'bold-font': boldFontInFirstColumn,
|
|
106
|
-
'horizontal-scroll': hasHorizontalScroll,
|
|
107
|
-
touch: isTouchDevice
|
|
108
|
-
}, [className])
|
|
109
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
110
|
-
className: cn('scroll', {
|
|
111
|
-
limit: !disableHeightLimit
|
|
112
|
-
}),
|
|
113
|
-
ref: scrollRef,
|
|
114
|
-
onScroll: handleTableScroll
|
|
115
|
-
}, shadow.top && /*#__PURE__*/React.createElement("div", {
|
|
116
|
-
className: cn('top-shadow')
|
|
117
|
-
}), shadow.left && /*#__PURE__*/React.createElement("div", {
|
|
118
|
-
className: cn('left-shadow')
|
|
119
|
-
}), /*#__PURE__*/React.createElement("table", {
|
|
120
|
-
className: cn('table')
|
|
121
|
-
}, /*#__PURE__*/React.createElement("tbody", null, renderRows())), gradient.right && /*#__PURE__*/React.createElement("div", {
|
|
122
|
-
className: cn('right-gradient')
|
|
123
|
-
}), gradient.bottom && /*#__PURE__*/React.createElement("div", {
|
|
124
|
-
className: cn('bottom-gradient')
|
|
125
|
-
})));
|
|
126
|
-
};
|
|
127
|
-
export default Table;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ITableCell } from './TableCell';
|
|
3
|
-
export interface ITableRow {
|
|
4
|
-
/** Ряд таблицы как заголовок */
|
|
5
|
-
head?: boolean;
|
|
6
|
-
/** Выравнивание по вертикали в ячейках таблицы */
|
|
7
|
-
vAlign?: 'default' | 'bottom' | 'top';
|
|
8
|
-
children: Array<React.ReactElement<ITableCell>>;
|
|
9
|
-
}
|
|
10
|
-
declare const TableRow: React.FC<ITableRow>;
|
|
11
|
-
export default TableRow;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Tabs } from '@megafon/ui-core';
|
|
3
|
-
export type TabsPropsType = React.ComponentProps<typeof Tabs> & {
|
|
4
|
-
/** Ссылка на корневой элемент */
|
|
5
|
-
rootRef?: React.Ref<HTMLDivElement>;
|
|
6
|
-
};
|
|
7
|
-
declare const TabsBox: React.FC<TabsPropsType>;
|
|
8
|
-
export default TabsBox;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import "core-js/modules/es.symbol.js";
|
|
2
|
-
import "core-js/modules/es.array.index-of.js";
|
|
3
|
-
var __rest = this && this.__rest || function (s, e) {
|
|
4
|
-
var t = {};
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
import * as React from 'react';
|
|
12
|
-
import { Tabs } from '@megafon/ui-core';
|
|
13
|
-
import { cnCreate } from '@megafon/ui-helpers';
|
|
14
|
-
var cn = cnCreate('mfui-tabs-box');
|
|
15
|
-
var TabsBox = function TabsBox(_a) {
|
|
16
|
-
var rootRef = _a.rootRef,
|
|
17
|
-
children = _a.children,
|
|
18
|
-
props = __rest(_a, ["rootRef", "children"]);
|
|
19
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
20
|
-
ref: rootRef,
|
|
21
|
-
className: cn()
|
|
22
|
-
}, /*#__PURE__*/React.createElement(Tabs, props, children));
|
|
23
|
-
};
|
|
24
|
-
export default TabsBox;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-text-box__content :first-child{margin-top:0!important}.mfui-text-box__content :last-child{margin-bottom:0!important}.mfui-text-box_text-center{text-align:center}.mfui-text-box .mfui-text-with-icon{margin:24px 0}.mfui-text-box .mfui-text-with-icon+.mfui-header{margin-top:32px}.mfui-text-box .mfui-text-box-picture+.mfui-text-with-icon{margin:32px 0 24px}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './TextBox.scss';
|
|
3
|
-
export interface ITextBoxProps {
|
|
4
|
-
/** Центрирование текста по горизонтали */
|
|
5
|
-
textCenter?: boolean;
|
|
6
|
-
/** Центрирование компонента по горизонтали при ограниченной ширине */
|
|
7
|
-
centeringWithLimitedWidth?: boolean;
|
|
8
|
-
/** Растягивание компонента на всю доступную ширину */
|
|
9
|
-
isFullWidth?: boolean;
|
|
10
|
-
/** Ссылка на корневой элемент */
|
|
11
|
-
rootRef?: React.Ref<HTMLDivElement>;
|
|
12
|
-
/** Дополнительный класс для корневого элемента */
|
|
13
|
-
className?: string;
|
|
14
|
-
children?: React.ReactNode;
|
|
15
|
-
}
|
|
16
|
-
declare const TextBox: React.FC<ITextBoxProps>;
|
|
17
|
-
export default TextBox;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Grid, GridColumn } from '@megafon/ui-core';
|
|
3
|
-
import { cnCreate } from '@megafon/ui-helpers';
|
|
4
|
-
import "./TextBox.css";
|
|
5
|
-
var cn = cnCreate('mfui-text-box');
|
|
6
|
-
var TextBox = function TextBox(_ref) {
|
|
7
|
-
var _ref$textCenter = _ref.textCenter,
|
|
8
|
-
textCenter = _ref$textCenter === void 0 ? false : _ref$textCenter,
|
|
9
|
-
_ref$centeringWithLim = _ref.centeringWithLimitedWidth,
|
|
10
|
-
centeringWithLimitedWidth = _ref$centeringWithLim === void 0 ? false : _ref$centeringWithLim,
|
|
11
|
-
_ref$isFullWidth = _ref.isFullWidth,
|
|
12
|
-
isFullWidth = _ref$isFullWidth === void 0 ? true : _ref$isFullWidth,
|
|
13
|
-
rootRef = _ref.rootRef,
|
|
14
|
-
className = _ref.className,
|
|
15
|
-
children = _ref.children;
|
|
16
|
-
var renderContent = function renderContent() {
|
|
17
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
18
|
-
className: cn('content')
|
|
19
|
-
}, children);
|
|
20
|
-
};
|
|
21
|
-
var renderTextBoxWithGrid = function renderTextBoxWithGrid() {
|
|
22
|
-
return /*#__PURE__*/React.createElement(Grid, {
|
|
23
|
-
hAlign: centeringWithLimitedWidth ? 'center' : 'left',
|
|
24
|
-
dataAttrs: {
|
|
25
|
-
container: {
|
|
26
|
-
'data-testid': 'TextBox-grid'
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}, /*#__PURE__*/React.createElement(GridColumn, {
|
|
30
|
-
wide: "8",
|
|
31
|
-
desktop: "10",
|
|
32
|
-
tablet: "12",
|
|
33
|
-
mobile: "12"
|
|
34
|
-
}, renderContent()));
|
|
35
|
-
};
|
|
36
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
37
|
-
className: cn({
|
|
38
|
-
'text-center': textCenter
|
|
39
|
-
}, [className]),
|
|
40
|
-
ref: rootRef
|
|
41
|
-
}, isFullWidth ? renderContent() : renderTextBoxWithGrid());
|
|
42
|
-
};
|
|
43
|
-
export default TextBox;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-text-box-picture_margin_default{margin:16px 0}.mfui-text-box-picture_margin_big-top{margin:24px 0 16px}.mfui-text-box-picture_margin_big-bottom{margin:16px 0 24px}.mfui-text-box-picture_margin_big-vertical{margin:24px 0}.mfui-text-box-picture__img{border:1px solid var(--spbSky1);display:block;max-width:100%}.mfui-text-box-picture__img_no-border{border:none}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './TextBoxPicture.scss';
|
|
3
|
-
export declare const pictureMarginTypes: {
|
|
4
|
-
readonly DEFAULT: "default";
|
|
5
|
-
readonly BIG_TOP: "big-top";
|
|
6
|
-
readonly BIG_BOTTOM: "big-bottom";
|
|
7
|
-
readonly BIG_VERTICAL: "big-vertical";
|
|
8
|
-
};
|
|
9
|
-
type PictureMarginTypesType = (typeof pictureMarginTypes)[keyof typeof pictureMarginTypes];
|
|
10
|
-
export interface ITextBoxPictureProps {
|
|
11
|
-
/** URL картинки */
|
|
12
|
-
url: string;
|
|
13
|
-
/** Значение вертикальных отступов */
|
|
14
|
-
margin?: PictureMarginTypesType;
|
|
15
|
-
/** Значение тега alt для изображения */
|
|
16
|
-
alt?: string;
|
|
17
|
-
/** Отключить отображение рамки вокруг картинки */
|
|
18
|
-
disableBorder?: boolean;
|
|
19
|
-
}
|
|
20
|
-
declare const TextBoxPicture: React.FC<ITextBoxPictureProps>;
|
|
21
|
-
export default TextBoxPicture;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { cnCreate } from '@megafon/ui-helpers';
|
|
3
|
-
import "./TextBoxPicture.css";
|
|
4
|
-
export var pictureMarginTypes = {
|
|
5
|
-
DEFAULT: 'default',
|
|
6
|
-
BIG_TOP: 'big-top',
|
|
7
|
-
BIG_BOTTOM: 'big-bottom',
|
|
8
|
-
BIG_VERTICAL: 'big-vertical'
|
|
9
|
-
};
|
|
10
|
-
var cn = cnCreate('mfui-text-box-picture');
|
|
11
|
-
var TextBoxPicture = function TextBoxPicture(_ref) {
|
|
12
|
-
var url = _ref.url,
|
|
13
|
-
_ref$margin = _ref.margin,
|
|
14
|
-
margin = _ref$margin === void 0 ? pictureMarginTypes.DEFAULT : _ref$margin,
|
|
15
|
-
alt = _ref.alt,
|
|
16
|
-
_ref$disableBorder = _ref.disableBorder,
|
|
17
|
-
disableBorder = _ref$disableBorder === void 0 ? false : _ref$disableBorder;
|
|
18
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
19
|
-
className: cn({
|
|
20
|
-
margin: margin
|
|
21
|
-
})
|
|
22
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
23
|
-
className: cn('img', {
|
|
24
|
-
'no-border': disableBorder
|
|
25
|
-
}),
|
|
26
|
-
src: url,
|
|
27
|
-
alt: alt
|
|
28
|
-
}));
|
|
29
|
-
};
|
|
30
|
-
export default TextBoxPicture;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-text-with-icon__header{margin-bottom:24px}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ITextWithIconItem } from './TextWithIconItem';
|
|
3
|
-
import './TextWithIcon.scss';
|
|
4
|
-
export interface ITextWithIconProps {
|
|
5
|
-
/** Заголовок */
|
|
6
|
-
title?: string;
|
|
7
|
-
/** Ссылка на корневой элемент */
|
|
8
|
-
rootRef?: React.Ref<HTMLDivElement>;
|
|
9
|
-
/** Дополнительные data атрибуты к внутренним элементам */
|
|
10
|
-
dataAttrs?: {
|
|
11
|
-
root?: Record<string, string>;
|
|
12
|
-
};
|
|
13
|
-
/** Дополнительный класс для корневого элемента */
|
|
14
|
-
className?: string;
|
|
15
|
-
/** Включить растягивание на всю ширину контейнера */
|
|
16
|
-
isFullWidth?: boolean;
|
|
17
|
-
/** Допустимый дочерний компонент */
|
|
18
|
-
children: React.ReactElement<ITextWithIconItem>[] | React.ReactElement<ITextWithIconItem>;
|
|
19
|
-
}
|
|
20
|
-
declare const TextWithIcon: React.FC<ITextWithIconProps>;
|
|
21
|
-
export default TextWithIcon;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { Header, Grid, GridColumn } from '@megafon/ui-core';
|
|
4
|
-
import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
|
5
|
-
import "./TextWithIcon.css";
|
|
6
|
-
var testIdPrefix = 'TextWithIcon';
|
|
7
|
-
var cn = cnCreate('mfui-text-with-icon');
|
|
8
|
-
var TextWithIcon = function TextWithIcon(_ref) {
|
|
9
|
-
var title = _ref.title,
|
|
10
|
-
rootRef = _ref.rootRef,
|
|
11
|
-
dataAttrs = _ref.dataAttrs,
|
|
12
|
-
className = _ref.className,
|
|
13
|
-
_ref$isFullWidth = _ref.isFullWidth,
|
|
14
|
-
isFullWidth = _ref$isFullWidth === void 0 ? false : _ref$isFullWidth,
|
|
15
|
-
children = _ref.children;
|
|
16
|
-
var renderContent = function renderContent() {
|
|
17
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, title && /*#__PURE__*/React.createElement(Header, {
|
|
18
|
-
className: cn('header'),
|
|
19
|
-
as: "h5"
|
|
20
|
-
}, title), children);
|
|
21
|
-
};
|
|
22
|
-
var renderContentWithGrid = function renderContentWithGrid() {
|
|
23
|
-
return /*#__PURE__*/React.createElement(Grid, {
|
|
24
|
-
dataAttrs: {
|
|
25
|
-
container: {
|
|
26
|
-
'data-testid': "".concat(testIdPrefix, "-grid")
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}, /*#__PURE__*/React.createElement(GridColumn, {
|
|
30
|
-
mobile: '12',
|
|
31
|
-
tablet: '7',
|
|
32
|
-
desktop: '6',
|
|
33
|
-
wide: '6'
|
|
34
|
-
}, renderContent()));
|
|
35
|
-
};
|
|
36
|
-
return /*#__PURE__*/React.createElement("div", _extends({
|
|
37
|
-
className: cn([className]),
|
|
38
|
-
ref: rootRef
|
|
39
|
-
}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root)), isFullWidth ? renderContent() : renderContentWithGrid());
|
|
40
|
-
};
|
|
41
|
-
export default TextWithIcon;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-text-with-icon-item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-text-with-icon-item:not(:first-of-type){margin-top:12px}.mfui-text-with-icon-item__svg-icon{-webkit-box-sizing:border-box;box-sizing:border-box;height:40px;margin-right:12px;min-height:40px;min-width:40px;overflow:hidden;width:40px}.mfui-text-with-icon-item_icon-background_stroke .mfui-text-with-icon-item__svg-icon{border:1px solid var(--spbSky2);border-radius:50%;padding:3px}.mfui-text-with-icon-item_icon-background_gray .mfui-text-with-icon-item__svg-icon{background-color:var(--spbSky0);border-radius:50%;padding:4px}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './TextWithIconItem.scss';
|
|
3
|
-
export interface ITextWithIconItem {
|
|
4
|
-
/** Дополнительные классы для внутренних элементов */
|
|
5
|
-
classes?: {
|
|
6
|
-
icon?: string;
|
|
7
|
-
text?: string;
|
|
8
|
-
};
|
|
9
|
-
/** Текст */
|
|
10
|
-
text: string | string[];
|
|
11
|
-
/** Иконка */
|
|
12
|
-
icon: React.ReactNode;
|
|
13
|
-
/** Фон для иконки */
|
|
14
|
-
iconBackground?: 'no' | 'stroke' | 'gray';
|
|
15
|
-
/** Ссылка на корневой элемент */
|
|
16
|
-
rootRef?: React.Ref<HTMLDivElement>;
|
|
17
|
-
/** Дополнительные data атрибуты к внутренним элементам */
|
|
18
|
-
dataAttrs?: {
|
|
19
|
-
root?: Record<string, string>;
|
|
20
|
-
};
|
|
21
|
-
/** Дополнительный класс для корневого элемента */
|
|
22
|
-
className?: string;
|
|
23
|
-
}
|
|
24
|
-
declare const TextWithIconItem: React.FC<ITextWithIconItem>;
|
|
25
|
-
export default TextWithIconItem;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import "core-js/modules/es.array.is-array.js";
|
|
3
|
-
import "core-js/modules/es.array.map.js";
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import { cnCreate, convert, filterDataAttrs, textConvertConfig } from '@megafon/ui-helpers';
|
|
6
|
-
import "./TextWithIconItem.css";
|
|
7
|
-
var testIdPrefix = 'TextWithIconItem';
|
|
8
|
-
var cn = cnCreate('mfui-text-with-icon-item');
|
|
9
|
-
var TextWithIconItem = function TextWithIconItem(_ref) {
|
|
10
|
-
var className = _ref.className,
|
|
11
|
-
_ref$classes = _ref.classes,
|
|
12
|
-
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
|
13
|
-
text = _ref.text,
|
|
14
|
-
icon = _ref.icon,
|
|
15
|
-
_ref$iconBackground = _ref.iconBackground,
|
|
16
|
-
iconBackground = _ref$iconBackground === void 0 ? 'no' : _ref$iconBackground,
|
|
17
|
-
rootRef = _ref.rootRef,
|
|
18
|
-
dataAttrs = _ref.dataAttrs;
|
|
19
|
-
var renderText = React.useMemo(function () {
|
|
20
|
-
if (Array.isArray(text)) {
|
|
21
|
-
return text.map(function (item) {
|
|
22
|
-
return convert(item, textConvertConfig);
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
return convert(text, textConvertConfig);
|
|
26
|
-
}, [text]);
|
|
27
|
-
return /*#__PURE__*/React.createElement("div", _extends({
|
|
28
|
-
className: cn({
|
|
29
|
-
'icon-background': iconBackground
|
|
30
|
-
}, [className]),
|
|
31
|
-
ref: rootRef
|
|
32
|
-
}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root)), /*#__PURE__*/React.createElement("div", {
|
|
33
|
-
className: cn('svg-icon', [classes.icon]),
|
|
34
|
-
"data-testid": "".concat(testIdPrefix, "-icon")
|
|
35
|
-
}, icon), /*#__PURE__*/React.createElement("div", {
|
|
36
|
-
className: cn('text', [classes.text]),
|
|
37
|
-
"data-testid": "".concat(testIdPrefix, "-text")
|
|
38
|
-
}, renderText));
|
|
39
|
-
};
|
|
40
|
-
export default TextWithIconItem;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-title-description-box{color:var(--content),.mfui-title-description-box __item_header;font-family:inherit;color-white-space:pre-wrap}.mfui-title-description-box__item:not(:last-child){margin-bottom:16px}.mfui-title-description-box_text-color_white{color:var(--stcWhite)}.mfui-title-description-box_h-align_center{text-align:center}.mfui-title-description-box__description{font-size:15px;font-weight:400;line-height:24px}.mfui-title-description-box__description :last-child{margin-bottom:0!important}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './TitleDescriptionBox.scss';
|
|
3
|
-
export interface ITitleDescriptionBoxProps {
|
|
4
|
-
/** Дополнительные data атрибуты к внутренним элементам */
|
|
5
|
-
dataAttrs?: {
|
|
6
|
-
root?: Record<string, string>;
|
|
7
|
-
};
|
|
8
|
-
/** Ссылка на корневой элемент */
|
|
9
|
-
rootRef?: React.Ref<HTMLDivElement>;
|
|
10
|
-
/** Дополнительный класс корневого элемента */
|
|
11
|
-
className?: string;
|
|
12
|
-
/** Заголовок */
|
|
13
|
-
title?: string | React.ReactNode[] | React.ReactNode;
|
|
14
|
-
/** Описание */
|
|
15
|
-
description?: string | React.ReactNode[] | React.ReactNode;
|
|
16
|
-
/** Цвет текста */
|
|
17
|
-
textColor?: 'white';
|
|
18
|
-
/** Горизонтальное выравнивание */
|
|
19
|
-
align?: 'center';
|
|
20
|
-
}
|
|
21
|
-
declare const TitleDescriptionBox: React.FC<ITitleDescriptionBoxProps>;
|
|
22
|
-
export default TitleDescriptionBox;
|