@megafon/ui-shared 6.4.0 → 7.0.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/dist/es/components/AccordionBox/AccordionBox.css +1 -15
- package/dist/es/components/AccordionBox/AccordionBox.d.ts +2 -2
- package/dist/es/components/AccordionBox/AccordionBox.js +6 -49
- package/dist/es/components/AudioPlayer/AudioPlayer.d.ts +2 -2
- package/dist/es/components/AudioPlayer/AudioPlayer.js +11 -27
- package/dist/es/components/AudioPlayer/AudioProgress.d.ts +1 -1
- package/dist/es/components/AudioPlayer/AudioProgress.js +10 -22
- package/dist/es/components/AudioPlayer/AudioRange.d.ts +1 -1
- package/dist/es/components/AudioPlayer/AudioRange.js +8 -10
- package/dist/es/components/AudioPlayer/AudioVolume.d.ts +1 -1
- package/dist/es/components/AudioPlayer/AudioVolume.js +3 -12
- package/dist/es/components/AudioPlayer/hooks/useTrackDuration.js +4 -10
- package/dist/es/components/AudioPlayer/style/AudioPlayer.css +1 -58
- package/dist/es/components/AudioPlayer/style/AudioProgress.css +1 -35
- package/dist/es/components/AudioPlayer/style/AudioRange.css +1 -68
- package/dist/es/components/AudioPlayer/style/AudioVolume.css +1 -34
- package/dist/es/components/AudioPlayer/timerFormatUtil.js +1 -9
- package/dist/es/components/BannerBox/BannerBox.d.ts +1 -1
- package/dist/es/components/BannerBox/BannerBox.js +3 -12
- package/dist/es/components/BenefitsIcons/BenefitsIcons.d.ts +1 -1
- package/dist/es/components/BenefitsIcons/BenefitsIcons.js +23 -64
- package/dist/es/components/BenefitsIcons/BenefitsIconsTile.d.ts +1 -1
- package/dist/es/components/BenefitsIcons/BenefitsIconsTile.js +9 -36
- package/dist/es/components/BenefitsIcons/helpers.d.ts +3 -3
- package/dist/es/components/BenefitsIcons/helpers.js +6 -20
- package/dist/es/components/BenefitsIcons/style/BenefitsIcons.css +1 -38
- package/dist/es/components/BenefitsIcons/style/BenefitsIconsTile.css +1 -90
- package/dist/es/components/BenefitsIcons/types.d.ts +5 -6
- package/dist/es/components/BenefitsPictures/BenefitsPictures.d.ts +1 -1
- package/dist/es/components/BenefitsPictures/BenefitsPictures.js +19 -49
- package/dist/es/components/BenefitsPictures/BenfitsPictures.css +1 -43
- package/dist/es/components/BenefitsPictures/helpers.js +0 -14
- package/dist/es/components/BenefitsPictures/types.d.ts +3 -4
- package/dist/es/components/BenefitsPictures/types.js +1 -0
- package/dist/es/components/BlogBox/BlogBox.css +1 -92
- package/dist/es/components/BlogBox/BlogBox.d.ts +2 -2
- package/dist/es/components/BlogBox/BlogBox.js +10 -44
- package/dist/es/components/BlogBox/components/BlogBoxTile.css +1 -197
- package/dist/es/components/BlogBox/components/BlogBoxTile.d.ts +4 -4
- package/dist/es/components/BlogBox/components/BlogBoxTile.js +13 -20
- package/dist/es/components/BlogBox/types.d.ts +5 -5
- package/dist/es/components/BlogBox/types.js +1 -0
- package/dist/es/components/Breadcrumbs/Breadcrumbs.css +1 -43
- package/dist/es/components/Breadcrumbs/Breadcrumbs.d.ts +6 -6
- package/dist/es/components/Breadcrumbs/Breadcrumbs.js +10 -39
- package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.css +1 -16
- package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.d.ts +4 -4
- package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.js +11 -36
- package/dist/es/components/ButtonBanner/ButtonBanner.css +1 -122
- package/dist/es/components/ButtonBanner/ButtonBanner.d.ts +7 -7
- package/dist/es/components/ButtonBanner/ButtonBanner.js +22 -53
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.css +1 -19
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.d.ts +3 -3
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.js +20 -51
- package/dist/es/components/Card/Card.css +1 -354
- package/dist/es/components/Card/Card.d.ts +4 -4
- package/dist/es/components/Card/Card.js +25 -115
- package/dist/es/components/Card/types.d.ts +10 -11
- package/dist/es/components/Card/types.js +1 -0
- package/dist/es/components/CardsBox/CardsBox.js +3 -14
- package/dist/es/components/CardsBox/helpers.d.ts +2 -2
- package/dist/es/components/CardsBox/helpers.js +0 -4
- package/dist/es/components/CarouselBox/CarouselBox.d.ts +2 -2
- package/dist/es/components/CarouselBox/CarouselBox.js +11 -24
- package/dist/es/components/Container/Container.css +1 -4178
- package/dist/es/components/Container/Container.d.ts +7 -5
- package/dist/es/components/Container/Container.js +10 -25
- package/dist/es/components/DownloadLinks/DownloadLink.css +1 -37
- package/dist/es/components/DownloadLinks/DownloadLink.d.ts +1 -1
- package/dist/es/components/DownloadLinks/DownloadLink.js +13 -44
- package/dist/es/components/DownloadLinks/DownloadLinks.css +1 -36
- package/dist/es/components/DownloadLinks/DownloadLinks.d.ts +3 -3
- package/dist/es/components/DownloadLinks/DownloadLinks.js +2 -13
- package/dist/es/components/FaqWrapper/FaqWrapper.d.ts +5 -2
- package/dist/es/components/FaqWrapper/FaqWrapper.js +1 -3
- package/dist/es/components/ImageBanner/ImageBanner.css +1 -252
- package/dist/es/components/ImageBanner/ImageBanner.d.ts +8 -7
- package/dist/es/components/ImageBanner/ImageBanner.js +37 -88
- package/dist/es/components/InfoCards/InfoCards.css +1 -75
- package/dist/es/components/InfoCards/InfoCards.d.ts +1 -1
- package/dist/es/components/InfoCards/InfoCards.js +10 -37
- package/dist/es/components/InfoCards/components/InfoCard/InfoCard.css +1 -237
- package/dist/es/components/InfoCards/components/InfoCard/InfoCard.d.ts +1 -1
- package/dist/es/components/InfoCards/components/InfoCard/InfoCard.js +17 -46
- package/dist/es/components/InfoCards/types.js +1 -0
- package/dist/es/components/Instructions/Instructions.css +1 -827
- package/dist/es/components/Instructions/Instructions.d.ts +11 -11
- package/dist/es/components/Instructions/Instructions.js +56 -96
- package/dist/es/components/NotificationBox/NotificationBox.css +1 -0
- package/dist/es/components/NotificationBox/NotificationBox.d.ts +4 -4
- package/dist/es/components/NotificationBox/NotificationBox.js +5 -19
- package/dist/es/components/PageTitle/PageTitle.css +1 -80
- package/dist/es/components/PageTitle/PageTitle.d.ts +2 -2
- package/dist/es/components/PageTitle/PageTitle.js +12 -37
- package/dist/es/components/Partners/Partners.css +1 -53
- package/dist/es/components/Partners/Partners.d.ts +2 -2
- package/dist/es/components/Partners/Partners.js +17 -48
- package/dist/es/components/PictureWithDescription/PictureWithDescription.css +1 -80
- package/dist/es/components/PictureWithDescription/PictureWithDescription.d.ts +4 -2
- package/dist/es/components/PictureWithDescription/PictureWithDescription.js +10 -28
- package/dist/es/components/Property/Property.css +1 -156
- package/dist/es/components/Property/Property.d.ts +4 -4
- package/dist/es/components/Property/Property.js +37 -81
- package/dist/es/components/Property/PropertyDescription.css +1 -17
- package/dist/es/components/Property/PropertyDescription.d.ts +3 -3
- package/dist/es/components/Property/PropertyDescription.js +8 -28
- package/dist/es/components/Property/types.d.ts +7 -5
- package/dist/es/components/Property/types.js +1 -0
- package/dist/es/components/SidePictureCards/SidePictureCards.d.ts +1 -1
- package/dist/es/components/SidePictureCards/SidePictureCards.js +8 -41
- package/dist/es/components/SidePictureCards/components/SidePictureCard.css +1 -183
- package/dist/es/components/SidePictureCards/components/SidePictureCard.d.ts +2 -2
- package/dist/es/components/SidePictureCards/components/SidePictureCard.js +21 -23
- package/dist/es/components/SidePictureCards/types.d.ts +8 -8
- package/dist/es/components/SidePictureCards/types.js +1 -0
- package/dist/es/components/Steps/Steps.css +1 -41
- package/dist/es/components/Steps/Steps.d.ts +2 -1
- package/dist/es/components/Steps/Steps.js +4 -19
- package/dist/es/components/Steps/StepsItem.css +1 -42
- package/dist/es/components/Steps/StepsItem.d.ts +2 -2
- package/dist/es/components/Steps/StepsItem.js +2 -9
- package/dist/es/components/StoreBanner/StoreBanner.css +1 -346
- package/dist/es/components/StoreBanner/StoreBanner.d.ts +5 -5
- package/dist/es/components/StoreBanner/StoreBanner.js +41 -97
- package/dist/es/components/StoreButton/StoreButton.css +1 -327
- package/dist/es/components/StoreButton/StoreButton.d.ts +3 -3
- package/dist/es/components/StoreButton/StoreButton.js +13 -44
- package/dist/es/components/Table/Table.css +1 -157
- package/dist/es/components/Table/Table.d.ts +1 -1
- package/dist/es/components/Table/Table.js +31 -51
- package/dist/es/components/Table/TableCell.js +0 -6
- package/dist/es/components/Table/TableRow.js +1 -10
- package/dist/es/components/TabsBox/TabsBox.d.ts +1 -1
- package/dist/es/components/TabsBox/TabsBox.js +4 -13
- package/dist/es/components/TextBox/TextBox.css +1 -25
- package/dist/es/components/TextBox/TextBox.d.ts +2 -1
- package/dist/es/components/TextBox/TextBox.js +8 -23
- package/dist/es/components/TextBox/TextBoxPicture.css +1 -27
- package/dist/es/components/TextBox/TextBoxPicture.d.ts +2 -2
- package/dist/es/components/TextBox/TextBoxPicture.js +5 -14
- package/dist/es/components/TextWithIcon/TextWithIcon.css +1 -10
- package/dist/es/components/TextWithIcon/TextWithIcon.d.ts +1 -1
- package/dist/es/components/TextWithIcon/TextWithIcon.js +6 -24
- package/dist/es/components/TextWithIcon/TextWithIconItem.css +1 -38
- package/dist/es/components/TextWithIcon/TextWithIconItem.d.ts +1 -1
- package/dist/es/components/TextWithIcon/TextWithIconItem.js +8 -24
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.css +1 -31
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +1 -1
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.js +6 -23
- package/dist/es/components/VideoBanner/VideoBanner.css +1 -225
- package/dist/es/components/VideoBanner/VideoBanner.d.ts +7 -7
- package/dist/es/components/VideoBanner/VideoBanner.js +47 -110
- package/dist/es/components/VideoBlock/VideoBlock.css +1 -106
- package/dist/es/components/VideoBlock/VideoBlock.d.ts +4 -4
- package/dist/es/components/VideoBlock/VideoBlock.js +37 -77
- package/dist/es/helpers/getColumnConfig.d.ts +5 -1
- package/dist/es/helpers/setRelAttribute.d.ts +3 -1
- package/dist/es/helpers/setRelAttribute.js +0 -2
- package/dist/es/hooks/useResolutions.d.ts +1 -1
- package/dist/es/hooks/useResolutions.js +13 -21
- package/dist/lib/components/AccordionBox/AccordionBox.css +1 -15
- package/dist/lib/components/AccordionBox/AccordionBox.d.ts +2 -2
- package/dist/lib/components/AccordionBox/AccordionBox.js +11 -67
- package/dist/lib/components/AudioPlayer/AudioPlayer.d.ts +2 -2
- package/dist/lib/components/AudioPlayer/AudioPlayer.js +33 -57
- package/dist/lib/components/AudioPlayer/AudioProgress.d.ts +1 -1
- package/dist/lib/components/AudioPlayer/AudioProgress.js +13 -44
- package/dist/lib/components/AudioPlayer/AudioRange.d.ts +1 -1
- package/dist/lib/components/AudioPlayer/AudioRange.js +10 -18
- package/dist/lib/components/AudioPlayer/AudioVolume.d.ts +1 -1
- package/dist/lib/components/AudioPlayer/AudioVolume.js +5 -24
- package/dist/lib/components/AudioPlayer/hooks/useTrackDuration.js +6 -17
- package/dist/lib/components/AudioPlayer/style/AudioPlayer.css +1 -58
- package/dist/lib/components/AudioPlayer/style/AudioProgress.css +1 -35
- package/dist/lib/components/AudioPlayer/style/AudioRange.css +1 -68
- package/dist/lib/components/AudioPlayer/style/AudioVolume.css +1 -34
- package/dist/lib/components/AudioPlayer/timerFormatUtil.js +2 -13
- package/dist/lib/components/BannerBox/BannerBox.d.ts +1 -1
- package/dist/lib/components/BannerBox/BannerBox.js +7 -25
- package/dist/lib/components/BenefitsIcons/BenefitsIcons.d.ts +1 -1
- package/dist/lib/components/BenefitsIcons/BenefitsIcons.js +27 -87
- package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.d.ts +1 -1
- package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.js +14 -54
- package/dist/lib/components/BenefitsIcons/helpers.d.ts +3 -3
- package/dist/lib/components/BenefitsIcons/helpers.js +11 -38
- package/dist/lib/components/BenefitsIcons/style/BenefitsIcons.css +1 -38
- package/dist/lib/components/BenefitsIcons/style/BenefitsIconsTile.css +1 -90
- package/dist/lib/components/BenefitsIcons/types.d.ts +5 -6
- package/dist/lib/components/BenefitsIcons/types.js +5 -8
- package/dist/lib/components/BenefitsPictures/BenefitsPictures.d.ts +1 -1
- package/dist/lib/components/BenefitsPictures/BenefitsPictures.js +25 -72
- package/dist/lib/components/BenefitsPictures/BenfitsPictures.css +1 -43
- package/dist/lib/components/BenefitsPictures/helpers.js +10 -41
- package/dist/lib/components/BenefitsPictures/types.d.ts +3 -4
- package/dist/lib/components/BenefitsPictures/types.js +5 -1
- package/dist/lib/components/BlogBox/BlogBox.css +1 -92
- package/dist/lib/components/BlogBox/BlogBox.d.ts +2 -2
- package/dist/lib/components/BlogBox/BlogBox.js +21 -65
- package/dist/lib/components/BlogBox/components/BlogBoxTile.css +1 -197
- package/dist/lib/components/BlogBox/components/BlogBoxTile.d.ts +4 -4
- package/dist/lib/components/BlogBox/components/BlogBoxTile.js +27 -38
- package/dist/lib/components/BlogBox/types.d.ts +5 -5
- package/dist/lib/components/BlogBox/types.js +5 -1
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.css +1 -43
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.d.ts +6 -6
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.js +19 -61
- package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.css +1 -16
- package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.d.ts +4 -4
- package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.js +23 -56
- package/dist/lib/components/ButtonBanner/ButtonBanner.css +1 -122
- package/dist/lib/components/ButtonBanner/ButtonBanner.d.ts +7 -7
- package/dist/lib/components/ButtonBanner/ButtonBanner.js +41 -90
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.css +1 -19
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.d.ts +3 -3
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.js +30 -73
- package/dist/lib/components/Card/Card.css +1 -354
- package/dist/lib/components/Card/Card.d.ts +4 -4
- package/dist/lib/components/Card/Card.js +68 -165
- package/dist/lib/components/Card/types.d.ts +10 -11
- package/dist/lib/components/Card/types.js +5 -1
- package/dist/lib/components/CardsBox/CardsBox.js +8 -32
- package/dist/lib/components/CardsBox/helpers.d.ts +2 -2
- package/dist/lib/components/CardsBox/helpers.js +2 -9
- package/dist/lib/components/CarouselBox/CarouselBox.d.ts +2 -2
- package/dist/lib/components/CarouselBox/CarouselBox.js +16 -40
- package/dist/lib/components/Container/Container.css +1 -4178
- package/dist/lib/components/Container/Container.d.ts +7 -5
- package/dist/lib/components/Container/Container.js +18 -40
- package/dist/lib/components/DownloadLinks/DownloadLink.css +1 -37
- package/dist/lib/components/DownloadLinks/DownloadLink.d.ts +1 -1
- package/dist/lib/components/DownloadLinks/DownloadLink.js +18 -61
- package/dist/lib/components/DownloadLinks/DownloadLinks.css +1 -36
- package/dist/lib/components/DownloadLinks/DownloadLinks.d.ts +3 -3
- package/dist/lib/components/DownloadLinks/DownloadLinks.js +9 -34
- package/dist/lib/components/FaqWrapper/FaqWrapper.d.ts +5 -2
- package/dist/lib/components/FaqWrapper/FaqWrapper.js +6 -9
- package/dist/lib/components/ImageBanner/ImageBanner.css +1 -252
- package/dist/lib/components/ImageBanner/ImageBanner.d.ts +8 -7
- package/dist/lib/components/ImageBanner/ImageBanner.js +62 -139
- package/dist/lib/components/InfoCards/InfoCards.css +1 -75
- package/dist/lib/components/InfoCards/InfoCards.d.ts +1 -1
- package/dist/lib/components/InfoCards/InfoCards.js +15 -55
- package/dist/lib/components/InfoCards/components/InfoCard/InfoCard.css +1 -237
- package/dist/lib/components/InfoCards/components/InfoCard/InfoCard.d.ts +1 -1
- package/dist/lib/components/InfoCards/components/InfoCard/InfoCard.js +22 -63
- package/dist/lib/components/InfoCards/types.js +5 -1
- package/dist/lib/components/Instructions/Instructions.css +1 -827
- package/dist/lib/components/Instructions/Instructions.d.ts +11 -11
- package/dist/lib/components/Instructions/Instructions.js +121 -191
- package/dist/lib/components/NotificationBox/NotificationBox.css +1 -0
- package/dist/lib/components/NotificationBox/NotificationBox.d.ts +4 -4
- package/dist/lib/components/NotificationBox/NotificationBox.js +10 -38
- package/dist/lib/components/PageTitle/PageTitle.css +1 -80
- package/dist/lib/components/PageTitle/PageTitle.d.ts +2 -2
- package/dist/lib/components/PageTitle/PageTitle.js +16 -53
- package/dist/lib/components/Partners/Partners.css +1 -53
- package/dist/lib/components/Partners/Partners.d.ts +2 -2
- package/dist/lib/components/Partners/Partners.js +22 -66
- package/dist/lib/components/PictureWithDescription/PictureWithDescription.css +1 -80
- package/dist/lib/components/PictureWithDescription/PictureWithDescription.d.ts +4 -2
- package/dist/lib/components/PictureWithDescription/PictureWithDescription.js +16 -46
- package/dist/lib/components/Property/Property.css +1 -156
- package/dist/lib/components/Property/Property.d.ts +4 -4
- package/dist/lib/components/Property/Property.js +61 -121
- package/dist/lib/components/Property/PropertyDescription.css +1 -17
- package/dist/lib/components/Property/PropertyDescription.d.ts +3 -3
- package/dist/lib/components/Property/PropertyDescription.js +16 -47
- package/dist/lib/components/Property/types.d.ts +7 -5
- package/dist/lib/components/Property/types.js +5 -1
- package/dist/lib/components/SidePictureCards/SidePictureCards.d.ts +1 -1
- package/dist/lib/components/SidePictureCards/SidePictureCards.js +17 -58
- package/dist/lib/components/SidePictureCards/components/SidePictureCard.css +1 -183
- package/dist/lib/components/SidePictureCards/components/SidePictureCard.d.ts +2 -2
- package/dist/lib/components/SidePictureCards/components/SidePictureCard.js +23 -36
- package/dist/lib/components/SidePictureCards/types.d.ts +8 -8
- package/dist/lib/components/SidePictureCards/types.js +5 -1
- package/dist/lib/components/Steps/Steps.css +1 -41
- package/dist/lib/components/Steps/Steps.d.ts +2 -1
- package/dist/lib/components/Steps/Steps.js +8 -35
- package/dist/lib/components/Steps/StepsItem.css +1 -42
- package/dist/lib/components/Steps/StepsItem.d.ts +2 -2
- package/dist/lib/components/Steps/StepsItem.js +11 -23
- package/dist/lib/components/StoreBanner/StoreBanner.css +1 -346
- package/dist/lib/components/StoreBanner/StoreBanner.d.ts +5 -5
- package/dist/lib/components/StoreBanner/StoreBanner.js +48 -119
- package/dist/lib/components/StoreButton/StoreButton.css +1 -327
- package/dist/lib/components/StoreButton/StoreButton.d.ts +3 -3
- package/dist/lib/components/StoreButton/StoreButton.js +18 -64
- package/dist/lib/components/Table/Table.css +1 -157
- package/dist/lib/components/Table/Table.d.ts +1 -1
- package/dist/lib/components/Table/Table.js +36 -69
- package/dist/lib/components/Table/TableCell.js +4 -16
- package/dist/lib/components/Table/TableRow.js +5 -19
- package/dist/lib/components/TabsBox/TabBox.js +1 -4
- package/dist/lib/components/TabsBox/TabsBox.d.ts +1 -1
- package/dist/lib/components/TabsBox/TabsBox.js +8 -26
- package/dist/lib/components/TextBox/TextBox.css +1 -25
- package/dist/lib/components/TextBox/TextBox.d.ts +2 -1
- package/dist/lib/components/TextBox/TextBox.js +12 -36
- package/dist/lib/components/TextBox/TextBoxPicture.css +1 -27
- package/dist/lib/components/TextBox/TextBoxPicture.d.ts +2 -2
- package/dist/lib/components/TextBox/TextBoxPicture.js +11 -29
- package/dist/lib/components/TextWithIcon/TextWithIcon.css +1 -10
- package/dist/lib/components/TextWithIcon/TextWithIcon.d.ts +1 -1
- package/dist/lib/components/TextWithIcon/TextWithIcon.js +11 -40
- package/dist/lib/components/TextWithIcon/TextWithIconItem.css +1 -38
- package/dist/lib/components/TextWithIcon/TextWithIconItem.d.ts +1 -1
- package/dist/lib/components/TextWithIcon/TextWithIconItem.js +13 -41
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.css +1 -31
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +1 -1
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.js +11 -41
- package/dist/lib/components/VideoBanner/VideoBanner.css +1 -225
- package/dist/lib/components/VideoBanner/VideoBanner.d.ts +7 -7
- package/dist/lib/components/VideoBanner/VideoBanner.js +84 -177
- package/dist/lib/components/VideoBlock/VideoBlock.css +1 -106
- package/dist/lib/components/VideoBlock/VideoBlock.d.ts +4 -4
- package/dist/lib/components/VideoBlock/VideoBlock.js +59 -115
- package/dist/lib/constants/throttleTime.js +2 -3
- package/dist/lib/helpers/getColumnConfig.d.ts +5 -1
- package/dist/lib/helpers/getColumnConfig.js +2 -5
- package/dist/lib/helpers/setRelAttribute.d.ts +3 -1
- package/dist/lib/helpers/setRelAttribute.js +2 -7
- package/dist/lib/hooks/useResolutions.d.ts +1 -1
- package/dist/lib/hooks/useResolutions.js +15 -31
- package/dist/lib/index.js +11 -64
- package/package.json +87 -92
- package/CHANGELOG.md +0 -4104
- package/dist/es/components/NotificationBox/style/NotificationBox.css +0 -28
- package/dist/es/components/StoreBanner/doc/img/android-screen.png +0 -0
- package/dist/es/components/StoreBanner/doc/img/qr-code.png +0 -0
- package/dist/es/components/StoreBanner/doc/img/screen.png +0 -0
- package/dist/lib/components/NotificationBox/style/NotificationBox.css +0 -28
- package/dist/lib/components/StoreBanner/doc/img/android-screen.png +0 -0
- package/dist/lib/components/StoreBanner/doc/img/qr-code.png +0 -0
- package/dist/lib/components/StoreBanner/doc/img/screen.png +0 -0
@@ -1,52 +1,45 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
3
|
-
|
4
|
-
var _slidesSettings;
|
5
|
-
|
6
3
|
import "core-js/modules/es.array.map.js";
|
7
4
|
import "core-js/modules/es.array.slice.js";
|
8
5
|
import * as React from 'react';
|
9
6
|
import { Grid, GridColumn, Tile, Carousel } from '@megafon/ui-core';
|
10
7
|
import { breakpoints, cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
11
|
-
import * as PropTypes from 'prop-types';
|
12
8
|
import "./Partners.css";
|
13
9
|
var MAX_GRID_ITEMS_LENGTH = 8;
|
14
|
-
var slidesSettings = (
|
10
|
+
var slidesSettings = _defineProperty(_defineProperty(_defineProperty({}, breakpoints.MOBILE_SMALL_START, {
|
15
11
|
slidesPerView: 2,
|
16
12
|
spaceBetween: 16
|
17
|
-
}),
|
13
|
+
}), breakpoints.MOBILE_MIDDLE_START, {
|
18
14
|
slidesPerView: 3,
|
19
15
|
spaceBetween: 20
|
20
|
-
}),
|
16
|
+
}), breakpoints.DESKTOP_SMALL_START, {
|
21
17
|
slidesPerView: 4,
|
22
18
|
spaceBetween: 20
|
23
|
-
})
|
19
|
+
});
|
24
20
|
var testIdPrefix = 'Partners';
|
25
21
|
var cn = cnCreate('mfui-partners');
|
26
|
-
|
27
22
|
var Partners = function Partners(_ref) {
|
28
23
|
var rootRef = _ref.rootRef,
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
24
|
+
_ref$classes = _ref.classes,
|
25
|
+
_ref$classes2 = _ref$classes === void 0 ? {} : _ref$classes,
|
26
|
+
root = _ref$classes2.root,
|
27
|
+
itemClass = _ref$classes2.itemClass,
|
28
|
+
dataAttrs = _ref.dataAttrs,
|
29
|
+
className = _ref.className,
|
30
|
+
items = _ref.items,
|
31
|
+
onChange = _ref.onChange,
|
32
|
+
onNextClick = _ref.onNextClick,
|
33
|
+
onPrevClick = _ref.onPrevClick;
|
39
34
|
var renderItem = React.useCallback(function (item) {
|
40
35
|
var index = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
41
|
-
|
42
36
|
if (!item) {
|
43
37
|
return null;
|
44
38
|
}
|
45
|
-
|
46
39
|
var src = item.src,
|
47
|
-
|
48
|
-
|
49
|
-
|
40
|
+
href = item.href,
|
41
|
+
alt = item.alt,
|
42
|
+
rel = item.rel;
|
50
43
|
return /*#__PURE__*/React.createElement(Tile, {
|
51
44
|
href: href,
|
52
45
|
rel: rel,
|
@@ -108,28 +101,4 @@ var Partners = function Partners(_ref) {
|
|
108
101
|
className: cn([root, className])
|
109
102
|
}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root)), items.length > MAX_GRID_ITEMS_LENGTH ? renderCarousel() : renderGrid());
|
110
103
|
};
|
111
|
-
|
112
|
-
Partners.propTypes = {
|
113
|
-
rootRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
|
114
|
-
current: PropTypes.elementType
|
115
|
-
}), PropTypes.any])]),
|
116
|
-
classes: PropTypes.shape({
|
117
|
-
root: PropTypes.string,
|
118
|
-
itemClass: PropTypes.string
|
119
|
-
}),
|
120
|
-
dataAttrs: PropTypes.shape({
|
121
|
-
root: PropTypes.objectOf(PropTypes.string.isRequired),
|
122
|
-
item: PropTypes.objectOf(PropTypes.string.isRequired)
|
123
|
-
}),
|
124
|
-
className: PropTypes.string,
|
125
|
-
items: PropTypes.arrayOf(PropTypes.shape({
|
126
|
-
href: PropTypes.string,
|
127
|
-
rel: PropTypes.string,
|
128
|
-
src: PropTypes.string.isRequired,
|
129
|
-
alt: PropTypes.string.isRequired
|
130
|
-
}).isRequired).isRequired,
|
131
|
-
onChange: PropTypes.func,
|
132
|
-
onNextClick: PropTypes.func,
|
133
|
-
onPrevClick: PropTypes.func
|
134
|
-
};
|
135
104
|
export default Partners;
|
@@ -1,80 +1 @@
|
|
1
|
-
h1,
|
2
|
-
h2,
|
3
|
-
h3,
|
4
|
-
h4,
|
5
|
-
h5 {
|
6
|
-
margin: 0;
|
7
|
-
}
|
8
|
-
@media screen and (min-width: 1024px) {
|
9
|
-
.mfui-picture-with-description {
|
10
|
-
display: -webkit-box;
|
11
|
-
display: -ms-flexbox;
|
12
|
-
display: flex;
|
13
|
-
-webkit-box-align: center;
|
14
|
-
-ms-flex-align: center;
|
15
|
-
align-items: center;
|
16
|
-
-webkit-box-pack: center;
|
17
|
-
-ms-flex-pack: center;
|
18
|
-
justify-content: center;
|
19
|
-
}
|
20
|
-
}
|
21
|
-
.mfui-picture-with-description__title {
|
22
|
-
margin-bottom: 24px;
|
23
|
-
}
|
24
|
-
.mfui-picture-with-description__picture {
|
25
|
-
-ms-flex-item-align: start;
|
26
|
-
align-self: flex-start;
|
27
|
-
overflow: hidden;
|
28
|
-
text-align: center;
|
29
|
-
}
|
30
|
-
@media screen and (max-width: 1023px) {
|
31
|
-
.mfui-picture-with-description__picture {
|
32
|
-
margin: 0 auto 32px;
|
33
|
-
}
|
34
|
-
}
|
35
|
-
@media screen and (min-width: 1024px) {
|
36
|
-
.mfui-picture-with-description__picture {
|
37
|
-
-webkit-box-ordinal-group: 3;
|
38
|
-
-ms-flex-order: 2;
|
39
|
-
order: 2;
|
40
|
-
width: 50%;
|
41
|
-
}
|
42
|
-
}
|
43
|
-
@media screen and (min-width: 1024px) {
|
44
|
-
.mfui-picture-with-description__picture_align_left {
|
45
|
-
-webkit-box-ordinal-group: 1;
|
46
|
-
-ms-flex-order: 0;
|
47
|
-
order: 0;
|
48
|
-
margin-right: 20px;
|
49
|
-
}
|
50
|
-
}
|
51
|
-
.mfui-picture-with-description__img {
|
52
|
-
width: 100%;
|
53
|
-
max-width: 550px;
|
54
|
-
height: 100%;
|
55
|
-
}
|
56
|
-
.mfui-picture-with-description__content > :first-child {
|
57
|
-
margin-top: 0 !important;
|
58
|
-
}
|
59
|
-
.mfui-picture-with-description__content > :last-child {
|
60
|
-
margin-bottom: 0 !important;
|
61
|
-
}
|
62
|
-
@media screen and (min-width: 1024px) {
|
63
|
-
.mfui-picture-with-description__articles {
|
64
|
-
-webkit-box-ordinal-group: 2;
|
65
|
-
-ms-flex-order: 1;
|
66
|
-
order: 1;
|
67
|
-
width: 50%;
|
68
|
-
}
|
69
|
-
}
|
70
|
-
@media screen and (min-width: 1024px) {
|
71
|
-
.mfui-picture-with-description__articles_text-top-align {
|
72
|
-
-ms-flex-item-align: start;
|
73
|
-
align-self: flex-start;
|
74
|
-
}
|
75
|
-
}
|
76
|
-
@media screen and (min-width: 1024px) {
|
77
|
-
.mfui-picture-with-description__articles_align_right {
|
78
|
-
margin-right: 20px;
|
79
|
-
}
|
80
|
-
}
|
1
|
+
h1,h2,h3,h4,h5{margin:0}@media screen and (min-width:1024px){.mfui-picture-with-description{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;justify-content:center}}.mfui-picture-with-description__title{margin-bottom:24px}.mfui-picture-with-description__picture{-ms-flex-item-align:start;align-self:flex-start;overflow:hidden;text-align:center}@media screen and (max-width:1023px){.mfui-picture-with-description__picture{margin:0 auto 32px}}@media screen and (min-width:1024px){.mfui-picture-with-description__picture{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2;width:50%}.mfui-picture-with-description__picture_align_left{-webkit-box-ordinal-group:1;-ms-flex-order:0;margin-right:20px;order:0}}.mfui-picture-with-description__img{height:100%;max-width:550px;width:100%}.mfui-picture-with-description__content>:first-child{margin-top:0!important}.mfui-picture-with-description__content>:last-child{margin-bottom:0!important}@media screen and (min-width:1024px){.mfui-picture-with-description__articles{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1;width:50%}.mfui-picture-with-description__articles_text-top-align{-ms-flex-item-align:start;align-self:flex-start}.mfui-picture-with-description__articles_align_right{margin-right:20px}}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import './PictureWithDescription.
|
2
|
+
import './PictureWithDescription.scss';
|
3
3
|
export declare const pictureAlignTypes: {
|
4
4
|
readonly LEFT: "left";
|
5
5
|
readonly RIGHT: "right";
|
6
6
|
};
|
7
|
-
|
7
|
+
type PictureAlignTypesType = (typeof pictureAlignTypes)[keyof typeof pictureAlignTypes];
|
8
8
|
export interface IPictureWithDescriptionProps {
|
9
9
|
/** Ссылка на корневой элемент */
|
10
10
|
rootRef?: React.Ref<HTMLDivElement>;
|
@@ -25,6 +25,8 @@ export interface IPictureWithDescriptionProps {
|
|
25
25
|
pictureAlt?: string;
|
26
26
|
/** Выравнивание текста по верхнему краю */
|
27
27
|
isTextTopAlign?: boolean;
|
28
|
+
/** Дочерний элемент компонента */
|
29
|
+
children?: React.ReactNode;
|
28
30
|
}
|
29
31
|
declare const PictureWithDescription: React.FC<IPictureWithDescriptionProps>;
|
30
32
|
export default PictureWithDescription;
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { Header } from '@megafon/ui-core';
|
3
3
|
import { cnCreate } from '@megafon/ui-helpers';
|
4
|
-
import PropTypes from 'prop-types';
|
5
4
|
import "./PictureWithDescription.css";
|
6
5
|
export var pictureAlignTypes = {
|
7
6
|
LEFT: 'left',
|
@@ -9,19 +8,18 @@ export var pictureAlignTypes = {
|
|
9
8
|
};
|
10
9
|
var testIdPrefix = 'PictureWithDescription';
|
11
10
|
var cn = cnCreate('mfui-picture-with-description');
|
12
|
-
|
13
11
|
var PictureWithDescription = function PictureWithDescription(_ref) {
|
14
12
|
var rootRef = _ref.rootRef,
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
13
|
+
className = _ref.className,
|
14
|
+
_ref$classes = _ref.classes,
|
15
|
+
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
16
|
+
title = _ref.title,
|
17
|
+
pictureUrl = _ref.pictureUrl,
|
18
|
+
_ref$pictureAlign = _ref.pictureAlign,
|
19
|
+
pictureAlign = _ref$pictureAlign === void 0 ? 'left' : _ref$pictureAlign,
|
20
|
+
pictureAlt = _ref.pictureAlt,
|
21
|
+
isTextTopAlign = _ref.isTextTopAlign,
|
22
|
+
children = _ref.children;
|
25
23
|
return /*#__PURE__*/React.createElement("div", {
|
26
24
|
className: cn([className, classes.root]),
|
27
25
|
ref: rootRef
|
@@ -47,20 +45,4 @@ var PictureWithDescription = function PictureWithDescription(_ref) {
|
|
47
45
|
className: cn('content')
|
48
46
|
}, children)));
|
49
47
|
};
|
50
|
-
|
51
|
-
PictureWithDescription.propTypes = {
|
52
|
-
rootRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
|
53
|
-
current: PropTypes.elementType
|
54
|
-
}), PropTypes.any])]),
|
55
|
-
className: PropTypes.string,
|
56
|
-
classes: PropTypes.shape({
|
57
|
-
root: PropTypes.string,
|
58
|
-
title: PropTypes.string
|
59
|
-
}),
|
60
|
-
title: PropTypes.oneOfType([PropTypes.string, PropTypes.node, PropTypes.arrayOf(PropTypes.node)]),
|
61
|
-
pictureUrl: PropTypes.string.isRequired,
|
62
|
-
pictureAlign: PropTypes.oneOf([pictureAlignTypes.LEFT, pictureAlignTypes.RIGHT]),
|
63
|
-
pictureAlt: PropTypes.string,
|
64
|
-
isTextTopAlign: PropTypes.bool
|
65
|
-
};
|
66
48
|
export default PictureWithDescription;
|
@@ -1,156 +1 @@
|
|
1
|
-
h1,
|
2
|
-
h2,
|
3
|
-
h3,
|
4
|
-
h4,
|
5
|
-
h5 {
|
6
|
-
margin: 0;
|
7
|
-
}
|
8
|
-
.mfui-property__wrapper {
|
9
|
-
display: -webkit-box;
|
10
|
-
display: -ms-flexbox;
|
11
|
-
display: flex;
|
12
|
-
-webkit-box-orient: vertical;
|
13
|
-
-webkit-box-direction: normal;
|
14
|
-
-ms-flex-direction: column;
|
15
|
-
flex-direction: column;
|
16
|
-
padding: 24px 0;
|
17
|
-
}
|
18
|
-
.mfui-property_border-top.mfui-property_border-color_default .mfui-property__wrapper {
|
19
|
-
border-top: 1px solid var(--spbSky1);
|
20
|
-
}
|
21
|
-
.mfui-property_border-bottom.mfui-property_border-color_default .mfui-property__wrapper {
|
22
|
-
border-bottom: 1px solid var(--spbSky1);
|
23
|
-
}
|
24
|
-
.mfui-property_border-top.mfui-property_border-color_darker .mfui-property__wrapper {
|
25
|
-
border-top: 1px solid var(--spbSky2);
|
26
|
-
}
|
27
|
-
.mfui-property_border-bottom.mfui-property_border-color_darker .mfui-property__wrapper {
|
28
|
-
border-bottom: 1px solid var(--spbSky2);
|
29
|
-
}
|
30
|
-
.mfui-property__main {
|
31
|
-
display: -webkit-box;
|
32
|
-
display: -ms-flexbox;
|
33
|
-
display: flex;
|
34
|
-
gap: 20px;
|
35
|
-
-webkit-box-align: baseline;
|
36
|
-
-ms-flex-align: baseline;
|
37
|
-
align-items: baseline;
|
38
|
-
-webkit-box-pack: justify;
|
39
|
-
-ms-flex-pack: justify;
|
40
|
-
justify-content: space-between;
|
41
|
-
}
|
42
|
-
.mfui-property__main:not(:first-child) {
|
43
|
-
margin-top: 24px;
|
44
|
-
}
|
45
|
-
.mfui-property__main_with-out-title {
|
46
|
-
margin-top: 16px !important;
|
47
|
-
}
|
48
|
-
.mfui-property__main_with-badge {
|
49
|
-
-webkit-box-align: center;
|
50
|
-
-ms-flex-align: center;
|
51
|
-
align-items: center;
|
52
|
-
}
|
53
|
-
.mfui-property__title-item_size_default {
|
54
|
-
font-size: 15px;
|
55
|
-
line-height: 24px;
|
56
|
-
font-weight: 500;
|
57
|
-
}
|
58
|
-
.mfui-property__title-item_size_big {
|
59
|
-
font-weight: 500;
|
60
|
-
font-size: 18px;
|
61
|
-
line-height: 24px;
|
62
|
-
letter-spacing: 0.5px;
|
63
|
-
}
|
64
|
-
@media screen and (min-width: 1280px) {
|
65
|
-
.mfui-property__title-item_size_big {
|
66
|
-
font-size: 20px;
|
67
|
-
line-height: 28px;
|
68
|
-
}
|
69
|
-
}
|
70
|
-
@media screen and (max-width: 767px) {
|
71
|
-
.mfui-property__title-item {
|
72
|
-
font-size: 15px;
|
73
|
-
line-height: 24px;
|
74
|
-
font-weight: 500;
|
75
|
-
}
|
76
|
-
}
|
77
|
-
.mfui-property__icon {
|
78
|
-
display: inline-block;
|
79
|
-
width: 24px;
|
80
|
-
height: 24px;
|
81
|
-
margin-right: 8px;
|
82
|
-
margin-left: 1px;
|
83
|
-
overflow: hidden;
|
84
|
-
vertical-align: bottom;
|
85
|
-
}
|
86
|
-
.mfui-property__badge {
|
87
|
-
margin-bottom: 8px;
|
88
|
-
}
|
89
|
-
@media screen and (min-width: 768px) {
|
90
|
-
.mfui-property__title .mfui-property__desc {
|
91
|
-
width: 100%;
|
92
|
-
}
|
93
|
-
}
|
94
|
-
.mfui-property__tooltip {
|
95
|
-
display: inline-block;
|
96
|
-
width: 20px;
|
97
|
-
height: 20px;
|
98
|
-
margin-left: 8px;
|
99
|
-
vertical-align: text-bottom;
|
100
|
-
cursor: pointer;
|
101
|
-
fill: var(--spbSky2);
|
102
|
-
}
|
103
|
-
.mfui-property__tooltip-inner {
|
104
|
-
max-width: 350px;
|
105
|
-
}
|
106
|
-
.mfui-property__desc {
|
107
|
-
margin-top: 12px;
|
108
|
-
}
|
109
|
-
@media screen and (min-width: 768px) {
|
110
|
-
.mfui-property__desc {
|
111
|
-
width: 70%;
|
112
|
-
}
|
113
|
-
}
|
114
|
-
.mfui-property__desc_collapsible {
|
115
|
-
margin-top: 12px;
|
116
|
-
}
|
117
|
-
.mfui-property__value-wrapper {
|
118
|
-
display: -webkit-box;
|
119
|
-
display: -ms-flexbox;
|
120
|
-
display: flex;
|
121
|
-
-webkit-box-align: baseline;
|
122
|
-
-ms-flex-align: baseline;
|
123
|
-
align-items: baseline;
|
124
|
-
padding: 4px 8px;
|
125
|
-
border-radius: 8px;
|
126
|
-
white-space: pre-line;
|
127
|
-
text-align: right;
|
128
|
-
}
|
129
|
-
.mfui-property__value-wrapper_frame_default {
|
130
|
-
background: var(--base);
|
131
|
-
}
|
132
|
-
.mfui-property__value-wrapper_frame_gray {
|
133
|
-
background: var(--spbSky0);
|
134
|
-
}
|
135
|
-
.mfui-property__value {
|
136
|
-
font-weight: 500;
|
137
|
-
font-size: 18px;
|
138
|
-
line-height: 24px;
|
139
|
-
letter-spacing: 0.5px;
|
140
|
-
}
|
141
|
-
@media screen and (min-width: 1280px) {
|
142
|
-
.mfui-property__value {
|
143
|
-
font-size: 20px;
|
144
|
-
line-height: 28px;
|
145
|
-
}
|
146
|
-
}
|
147
|
-
@media screen and (max-width: 767px) {
|
148
|
-
.mfui-property__value {
|
149
|
-
font-size: 15px;
|
150
|
-
line-height: 24px;
|
151
|
-
font-weight: 500;
|
152
|
-
}
|
153
|
-
}
|
154
|
-
.mfui-property__value-unit:before {
|
155
|
-
content: '\00a0';
|
156
|
-
}
|
1
|
+
@charset "UTF-8";h1,h2,h3,h4,h5{margin:0}.mfui-property__wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:24px 0}.mfui-property_border-top.mfui-property_border-color_default .mfui-property__wrapper{border-top:1px solid var(--spbSky1)}.mfui-property_border-bottom.mfui-property_border-color_default .mfui-property__wrapper{border-bottom:1px solid var(--spbSky1)}.mfui-property_border-top.mfui-property_border-color_darker .mfui-property__wrapper{border-top:1px solid var(--spbSky2)}.mfui-property_border-bottom.mfui-property_border-color_darker .mfui-property__wrapper{border-bottom:1px solid var(--spbSky2)}.mfui-property__main{display:-webkit-box;display:-ms-flexbox;display:flex;gap:20px;-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.mfui-property__main:not(:first-child){margin-top:24px}.mfui-property__main_with-out-title{margin-top:16px!important}.mfui-property__main_with-badge{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-property__title-item_size_default{font-size:15px;font-weight:500;line-height:24px}.mfui-property__title-item_size_big{font-size:18px;font-weight:500;letter-spacing:.5px;line-height:24px}@media screen and (min-width:1280px){.mfui-property__title-item_size_big{font-size:20px;line-height:28px}}@media screen and (max-width:767px){.mfui-property__title-item{font-size:15px;font-weight:500;line-height:24px}}.mfui-property__icon{display:inline-block;height:24px;margin-left:1px;margin-right:8px;overflow:hidden;vertical-align:bottom;width:24px}.mfui-property__badge{margin-bottom:8px}@media screen and (min-width:768px){.mfui-property__title .mfui-property__desc{width:100%}}.mfui-property__tooltip{cursor:pointer;display:inline-block;height:20px;margin-left:8px;vertical-align:text-bottom;width:20px;fill:var(--spbSky2)}.mfui-property__tooltip-inner{max-width:350px}.mfui-property__desc{margin-top:12px}@media screen and (min-width:768px){.mfui-property__desc{width:70%}}.mfui-property__desc_collapsible{margin-top:12px}.mfui-property__value-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline;border-radius:8px;padding:4px 8px;text-align:right;white-space:pre-line}.mfui-property__value-wrapper_frame_default{background:var(--base)}.mfui-property__value-wrapper_frame_gray{background:var(--spbSky0)}.mfui-property__value{font-size:18px;font-weight:500;letter-spacing:.5px;line-height:24px}@media screen and (min-width:1280px){.mfui-property__value{font-size:20px;line-height:28px}}@media screen and (max-width:767px){.mfui-property__value{font-size:15px;font-weight:500;line-height:24px}}.mfui-property__value-unit:before{content:" "}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import
|
1
|
+
import * as React from 'react';
|
2
2
|
import { PromoBadge } from '@megafon/ui-core';
|
3
|
-
import './Property.
|
3
|
+
import './Property.scss';
|
4
4
|
import { Item } from './types';
|
5
5
|
export interface IProperty {
|
6
6
|
/** Ссылка на корневой элемент */
|
7
|
-
rootRef?: Ref<HTMLDivElement>;
|
7
|
+
rootRef?: React.Ref<HTMLDivElement>;
|
8
8
|
/** Массив с данными для строки */
|
9
9
|
items: Item[];
|
10
10
|
/** Дополнительный класс для основного контейнера */
|
@@ -12,7 +12,7 @@ export interface IProperty {
|
|
12
12
|
/** Текст для бейджа */
|
13
13
|
badge?: string;
|
14
14
|
/** Тип бейджа */
|
15
|
-
badgeType?: ComponentProps<typeof PromoBadge>['type'];
|
15
|
+
badgeType?: React.ComponentProps<typeof PromoBadge>['type'];
|
16
16
|
/** Текст тултипа */
|
17
17
|
tooltip?: string;
|
18
18
|
/** Отключить верхнюю границу */
|
@@ -1,15 +1,13 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
|
-
import "core-js/modules/es.array.map.js";
|
3
2
|
import "core-js/modules/es.symbol.js";
|
4
3
|
import "core-js/modules/es.symbol.description.js";
|
5
|
-
import
|
4
|
+
import "core-js/modules/es.array.map.js";
|
5
|
+
import * as React from 'react';
|
6
6
|
import { Grid, GridColumn, PromoBadge, Caption, Tooltip } from '@megafon/ui-core';
|
7
7
|
import { cnCreate, filterDataAttrs, convert } from '@megafon/ui-helpers';
|
8
|
-
import PropTypes from 'prop-types';
|
9
8
|
import "./Property.css";
|
10
9
|
import { getColumnConfig } from "../../helpers/getColumnConfig";
|
11
10
|
import PropertyDescription from "./PropertyDescription";
|
12
|
-
|
13
11
|
var InfoIcon = function InfoIcon(props) {
|
14
12
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
15
13
|
viewBox: "0 0 20 20"
|
@@ -17,37 +15,34 @@ var InfoIcon = function InfoIcon(props) {
|
|
17
15
|
d: "M10 2c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8zm0 5c.6 0 1-.4 1-1s-.4-1-1-1-1 .4-1 1 .4 1 1 1zm1 8V9H9v6h2z"
|
18
16
|
}));
|
19
17
|
};
|
20
|
-
|
21
18
|
export var testIdPrefix = 'Property';
|
22
19
|
var cn = cnCreate('mfui-property');
|
23
|
-
|
24
20
|
var Property = function Property(_ref) {
|
25
21
|
var rootRef = _ref.rootRef,
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
var tooltipRef = useRef(null);
|
48
|
-
|
49
|
-
|
50
|
-
return title && title.map(function (titleItem, i) {
|
22
|
+
items = _ref.items,
|
23
|
+
className = _ref.className,
|
24
|
+
_ref$badge = _ref.badge,
|
25
|
+
badge = _ref$badge === void 0 ? '' : _ref$badge,
|
26
|
+
_ref$badgeType = _ref.badgeType,
|
27
|
+
badgeType = _ref$badgeType === void 0 ? 'popular' : _ref$badgeType,
|
28
|
+
tooltip = _ref.tooltip,
|
29
|
+
icon = _ref.icon,
|
30
|
+
_ref$disableBorderTop = _ref.disableBorderTop,
|
31
|
+
disableBorderTop = _ref$disableBorderTop === void 0 ? false : _ref$disableBorderTop,
|
32
|
+
_ref$borderBottom = _ref.borderBottom,
|
33
|
+
borderBottom = _ref$borderBottom === void 0 ? false : _ref$borderBottom,
|
34
|
+
_ref$borderColor = _ref.borderColor,
|
35
|
+
borderColor = _ref$borderColor === void 0 ? 'default' : _ref$borderColor,
|
36
|
+
_ref$mergedValue = _ref.mergedValue,
|
37
|
+
mergedValue = _ref$mergedValue === void 0 ? '' : _ref$mergedValue,
|
38
|
+
_ref$fullWidth = _ref.fullWidth,
|
39
|
+
fullWidth = _ref$fullWidth === void 0 ? false : _ref$fullWidth,
|
40
|
+
_ref$classes = _ref.classes,
|
41
|
+
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
42
|
+
dataAttrs = _ref.dataAttrs;
|
43
|
+
var tooltipRef = React.useRef(null);
|
44
|
+
var renderTitle = function renderTitle(titles, titleSize, isFirstItem) {
|
45
|
+
return titles === null || titles === void 0 ? void 0 : titles.map(function (titleItem, i) {
|
51
46
|
var isFirstTitle = i === 0;
|
52
47
|
return /*#__PURE__*/React.createElement("div", {
|
53
48
|
key: i,
|
@@ -66,11 +61,10 @@ var Property = function Property(_ref) {
|
|
66
61
|
}, tooltip)));
|
67
62
|
});
|
68
63
|
};
|
69
|
-
|
70
64
|
var renderDescription = function renderDescription(description) {
|
71
|
-
return description
|
65
|
+
return description === null || description === void 0 ? void 0 : description.map(function (_ref2, j) {
|
72
66
|
var value = _ref2.value,
|
73
|
-
|
67
|
+
isCollapsible = _ref2.isCollapsible;
|
74
68
|
return /*#__PURE__*/React.createElement("div", {
|
75
69
|
className: cn('desc', {
|
76
70
|
collapsible: isCollapsible
|
@@ -89,7 +83,6 @@ var Property = function Property(_ref) {
|
|
89
83
|
}));
|
90
84
|
});
|
91
85
|
};
|
92
|
-
|
93
86
|
var renderValue = function renderValue(valueFrameColor, value, valueUnit) {
|
94
87
|
return /*#__PURE__*/React.createElement("div", {
|
95
88
|
className: cn('value-wrapper', {
|
@@ -103,7 +96,6 @@ var Property = function Property(_ref) {
|
|
103
96
|
hasMargin: false
|
104
97
|
}, convert(valueUnit, {})));
|
105
98
|
};
|
106
|
-
|
107
99
|
return /*#__PURE__*/React.createElement("div", _extends({
|
108
100
|
className: cn({
|
109
101
|
'border-top': !disableBorderTop,
|
@@ -121,17 +113,17 @@ var Property = function Property(_ref) {
|
|
121
113
|
className: cn('wrapper')
|
122
114
|
}, items.map(function (_ref3, i) {
|
123
115
|
var title = _ref3.title,
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
116
|
+
value = _ref3.value,
|
117
|
+
description = _ref3.description,
|
118
|
+
_ref3$valueUnit = _ref3.valueUnit,
|
119
|
+
valueUnit = _ref3$valueUnit === void 0 ? '' : _ref3$valueUnit,
|
120
|
+
_ref3$titleSize = _ref3.titleSize,
|
121
|
+
titleSize = _ref3$titleSize === void 0 ? 'default' : _ref3$titleSize,
|
122
|
+
_ref3$valueFrameColor = _ref3.valueFrameColor,
|
123
|
+
valueFrameColor = _ref3$valueFrameColor === void 0 ? 'none' : _ref3$valueFrameColor;
|
132
124
|
var isFirstItem = i === 0;
|
133
125
|
var isRenderBadge = isFirstItem && !!badge;
|
134
|
-
return /*#__PURE__*/React.createElement(Fragment, {
|
126
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
135
127
|
key: i
|
136
128
|
}, /*#__PURE__*/React.createElement("div", {
|
137
129
|
className: cn('main', {
|
@@ -146,40 +138,4 @@ var Property = function Property(_ref) {
|
|
146
138
|
}, badge), title ? renderTitle(title, titleSize, isFirstItem) : renderDescription(description)), mergedValue && isFirstItem && renderValue(valueFrameColor, mergedValue, valueUnit), !mergedValue && value && renderValue(valueFrameColor, value, valueUnit)), title && renderDescription(description));
|
147
139
|
})))));
|
148
140
|
};
|
149
|
-
|
150
|
-
Property.propTypes = {
|
151
|
-
rootRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
|
152
|
-
current: PropTypes.elementType
|
153
|
-
}), PropTypes.any])]),
|
154
|
-
items: PropTypes.arrayOf(PropTypes.shape({
|
155
|
-
title: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.node)]),
|
156
|
-
description: PropTypes.arrayOf(PropTypes.shape({
|
157
|
-
value: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.node)]).isRequired,
|
158
|
-
isCollapsible: PropTypes.bool
|
159
|
-
})),
|
160
|
-
value: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
161
|
-
titleSize: PropTypes.oneOf(['default', 'big']),
|
162
|
-
valueUnit: PropTypes.string,
|
163
|
-
valueFrameColor: PropTypes.oneOf(['none', 'default', 'gray'])
|
164
|
-
}).isRequired).isRequired,
|
165
|
-
className: PropTypes.string,
|
166
|
-
badge: PropTypes.string,
|
167
|
-
badgeType: PropTypes.oneOf(['hit', 'new', 'vip', 'popular', 'user-choice', 'interests']),
|
168
|
-
tooltip: PropTypes.string,
|
169
|
-
disableBorderTop: PropTypes.bool,
|
170
|
-
borderBottom: PropTypes.bool,
|
171
|
-
borderColor: PropTypes.oneOf(['default', 'darker']),
|
172
|
-
mergedValue: PropTypes.string,
|
173
|
-
icon: PropTypes.node,
|
174
|
-
fullWidth: PropTypes.bool,
|
175
|
-
dataAttrs: PropTypes.shape({
|
176
|
-
root: PropTypes.objectOf(PropTypes.string.isRequired),
|
177
|
-
moreLink: PropTypes.objectOf(PropTypes.string.isRequired)
|
178
|
-
}),
|
179
|
-
classes: PropTypes.shape({
|
180
|
-
title: PropTypes.string,
|
181
|
-
openedDescription: PropTypes.string,
|
182
|
-
toggleDescription: PropTypes.string
|
183
|
-
})
|
184
|
-
};
|
185
141
|
export default Property;
|
@@ -1,17 +1 @@
|
|
1
|
-
h1,
|
2
|
-
h2,
|
3
|
-
h3,
|
4
|
-
h4,
|
5
|
-
h5 {
|
6
|
-
margin: 0;
|
7
|
-
}
|
8
|
-
.mfui-property-description__collapse {
|
9
|
-
color: var(--systemBlue);
|
10
|
-
font-size: 12px;
|
11
|
-
-webkit-text-decoration: underline dashed var(--systemBlue);
|
12
|
-
text-decoration: underline dashed var(--systemBlue);
|
13
|
-
cursor: pointer;
|
14
|
-
}
|
15
|
-
.mfui-property-description__content-inner {
|
16
|
-
margin-bottom: 8px;
|
17
|
-
}
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-property-description__collapse{color:var(--systemBlue);cursor:pointer;font-size:12px;-webkit-text-decoration:underline dashed var(--systemBlue);text-decoration:underline dashed var(--systemBlue)}.mfui-property-description__content-inner{margin-bottom:8px}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import './PropertyDescription.
|
3
|
-
import {
|
2
|
+
import './PropertyDescription.scss';
|
3
|
+
import { DescriptionType } from './types';
|
4
4
|
export declare const testIdPrefix = "PropertyDescription";
|
5
|
-
declare const PropertyDescription: React.FC<
|
5
|
+
declare const PropertyDescription: React.FC<DescriptionType>;
|
6
6
|
export default PropertyDescription;
|