@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,71 +1,47 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
function _typeof(
|
4
|
-
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
6
5
|
value: true
|
7
6
|
});
|
8
7
|
exports["default"] = void 0;
|
9
|
-
|
10
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
11
|
-
|
12
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
13
|
-
|
14
10
|
require("core-js/modules/es.array.map.js");
|
15
|
-
|
16
|
-
require("core-js/modules/es.object.values.js");
|
17
|
-
|
18
11
|
var React = _interopRequireWildcard(require("react"));
|
19
|
-
|
20
12
|
var _uiCore = require("@megafon/ui-core");
|
21
|
-
|
22
13
|
var _uiHelpers = require("@megafon/ui-helpers");
|
23
|
-
|
24
14
|
var _lodash = _interopRequireDefault(require("lodash.throttle"));
|
25
|
-
|
26
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
27
|
-
|
28
15
|
var _throttleTime = _interopRequireDefault(require("../../constants/throttleTime"));
|
29
|
-
|
30
16
|
var _BenefitsIconsTile = _interopRequireDefault(require("./BenefitsIconsTile"));
|
31
|
-
|
32
17
|
var _helpers = _interopRequireWildcard(require("./helpers"));
|
33
|
-
|
34
18
|
var _types = require("./types");
|
35
|
-
|
36
|
-
function
|
37
|
-
|
38
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
39
|
-
|
40
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
41
|
-
|
19
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
20
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
21
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
42
22
|
var testIdPrefix = 'BenefitsIcons';
|
43
23
|
var cn = (0, _uiHelpers.cnCreate)('mfui-benefits-icons');
|
44
|
-
|
45
24
|
var BenefitsIcons = function BenefitsIcons(_ref) {
|
46
25
|
var dataAttrs = _ref.dataAttrs,
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
26
|
+
rootRef = _ref.rootRef,
|
27
|
+
_ref$iconPosition = _ref.iconPosition,
|
28
|
+
iconPosition = _ref$iconPosition === void 0 ? 'left-top' : _ref$iconPosition,
|
29
|
+
_ref$background = _ref.background,
|
30
|
+
background = _ref$background === void 0 ? 'transparent' : _ref$background,
|
31
|
+
_ref$inOneColumn = _ref.inOneColumn,
|
32
|
+
inOneColumn = _ref$inOneColumn === void 0 ? false : _ref$inOneColumn,
|
33
|
+
items = _ref.items,
|
34
|
+
className = _ref.className,
|
35
|
+
_ref$classes = _ref.classes,
|
36
|
+
classes = _ref$classes === void 0 ? {} : _ref$classes;
|
59
37
|
var _React$useState = React.useState(iconPosition === _types.IconPositionEnum.CENTER_TOP ? 'center' : 'left'),
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
38
|
+
_React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
|
39
|
+
itemsAlign = _React$useState2[0],
|
40
|
+
setItemsAlign = _React$useState2[1];
|
64
41
|
var _React$useState3 = React.useState(iconPosition),
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
42
|
+
_React$useState4 = (0, _slicedToArray2["default"])(_React$useState3, 2),
|
43
|
+
localIconPosition = _React$useState4[0],
|
44
|
+
setLocalIconPosition = _React$useState4[1];
|
69
45
|
var resizeHandler = React.useCallback(function () {
|
70
46
|
if (window.innerWidth <= _uiHelpers.breakpoints.MOBILE_MIDDLE_END) {
|
71
47
|
setItemsAlign(_types.ItemsAlignEnum.CENTER);
|
@@ -77,12 +53,10 @@ var BenefitsIcons = function BenefitsIcons(_ref) {
|
|
77
53
|
}, [iconPosition]);
|
78
54
|
React.useEffect(function () {
|
79
55
|
var resizeHandlerThrottled = (0, _lodash["default"])(resizeHandler, _throttleTime["default"].resize);
|
80
|
-
|
81
56
|
if (inOneColumn) {
|
82
57
|
resizeHandler();
|
83
58
|
window.addEventListener('resize', resizeHandlerThrottled);
|
84
59
|
}
|
85
|
-
|
86
60
|
return function () {
|
87
61
|
window.removeEventListener('resize', resizeHandlerThrottled);
|
88
62
|
};
|
@@ -109,11 +83,11 @@ var BenefitsIcons = function BenefitsIcons(_ref) {
|
|
109
83
|
}
|
110
84
|
}, items.map(function (_ref2, i) {
|
111
85
|
var title = _ref2.title,
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
86
|
+
text = _ref2.text,
|
87
|
+
icon = _ref2.icon,
|
88
|
+
alt = _ref2.alt,
|
89
|
+
itemClasses = _ref2.classes,
|
90
|
+
itemDataAttrs = _ref2.dataAttrs;
|
117
91
|
var columnConfig = inOneColumn ? (0, _helpers.getOneColumnConfig)(iconPosition) : (0, _helpers["default"])(iconPosition, items.length, i);
|
118
92
|
return /*#__PURE__*/React.createElement(_uiCore.GridColumn, (0, _extends2["default"])({
|
119
93
|
className: cn('column', [classes.gridColumn]),
|
@@ -136,38 +110,4 @@ var BenefitsIcons = function BenefitsIcons(_ref) {
|
|
136
110
|
}));
|
137
111
|
}))));
|
138
112
|
};
|
139
|
-
|
140
|
-
BenefitsIcons.propTypes = {
|
141
|
-
dataAttrs: _propTypes["default"].shape({
|
142
|
-
root: _propTypes["default"].objectOf(_propTypes["default"].string.isRequired)
|
143
|
-
}),
|
144
|
-
rootRef: _propTypes["default"].oneOfType([_propTypes["default"].func, _propTypes["default"].oneOfType([_propTypes["default"].shape({
|
145
|
-
current: _propTypes["default"].elementType
|
146
|
-
}), _propTypes["default"].any])]),
|
147
|
-
iconPosition: _propTypes["default"].oneOf(Object.values(_types.IconPositionEnum)),
|
148
|
-
background: _propTypes["default"].oneOf(Object.values(_types.BackgroundEnum)),
|
149
|
-
inOneColumn: _propTypes["default"].bool,
|
150
|
-
items: _propTypes["default"].arrayOf(_propTypes["default"].shape({
|
151
|
-
dataAttrs: _propTypes["default"].shape({
|
152
|
-
root: _propTypes["default"].objectOf(_propTypes["default"].string.isRequired)
|
153
|
-
}),
|
154
|
-
classes: _propTypes["default"].shape({
|
155
|
-
root: _propTypes["default"].string,
|
156
|
-
icon: _propTypes["default"].string,
|
157
|
-
title: _propTypes["default"].string,
|
158
|
-
text: _propTypes["default"].string,
|
159
|
-
contentWrapper: _propTypes["default"].string
|
160
|
-
}),
|
161
|
-
title: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].node, _propTypes["default"].arrayOf(_propTypes["default"].node)]),
|
162
|
-
text: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].node, _propTypes["default"].arrayOf(_propTypes["default"].node)]),
|
163
|
-
icon: _propTypes["default"].node.isRequired,
|
164
|
-
alt: _propTypes["default"].string
|
165
|
-
}).isRequired).isRequired,
|
166
|
-
className: _propTypes["default"].string,
|
167
|
-
classes: _propTypes["default"].shape({
|
168
|
-
root: _propTypes["default"].string,
|
169
|
-
item: _propTypes["default"].string
|
170
|
-
})
|
171
|
-
};
|
172
|
-
var _default = BenefitsIcons;
|
173
|
-
exports["default"] = _default;
|
113
|
+
var _default = exports["default"] = BenefitsIcons;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { IBenefit, IconPosition, BackgroundType } from './types';
|
3
|
-
import './style/BenefitsIconsTile.
|
3
|
+
import './style/BenefitsIconsTile.scss';
|
4
4
|
export interface IBenefitsIconsTile extends IBenefit {
|
5
5
|
iconPosition?: IconPosition;
|
6
6
|
background?: BackgroundType;
|
@@ -1,47 +1,30 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
function _typeof(
|
4
|
-
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
6
5
|
value: true
|
7
6
|
});
|
8
7
|
exports["default"] = void 0;
|
9
|
-
|
10
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
11
|
-
|
12
|
-
require("core-js/modules/es.object.values.js");
|
13
|
-
|
14
9
|
var React = _interopRequireWildcard(require("react"));
|
15
|
-
|
16
10
|
var _uiCore = require("@megafon/ui-core");
|
17
|
-
|
18
11
|
var _uiHelpers = require("@megafon/ui-helpers");
|
19
|
-
|
20
|
-
var
|
21
|
-
|
22
|
-
var _types = require("./types");
|
23
|
-
|
24
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
25
|
-
|
26
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
27
|
-
|
28
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
29
|
-
|
12
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
30
15
|
var testIdPrefix = 'BenefitsIconsTile';
|
31
16
|
var cn = (0, _uiHelpers.cnCreate)('mfui-benefits-icons-tile');
|
32
|
-
|
33
17
|
var BenefitsIconsTile = function BenefitsIconsTile(_ref) {
|
34
18
|
var dataAttrs = _ref.dataAttrs,
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
19
|
+
_ref$classes = _ref.classes,
|
20
|
+
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
21
|
+
title = _ref.title,
|
22
|
+
text = _ref.text,
|
23
|
+
icon = _ref.icon,
|
24
|
+
iconPosition = _ref.iconPosition,
|
25
|
+
background = _ref.background,
|
26
|
+
alt = _ref.alt,
|
27
|
+
className = _ref.className;
|
45
28
|
var renderIcon = function renderIcon() {
|
46
29
|
if (typeof icon === 'string') {
|
47
30
|
return /*#__PURE__*/React.createElement("img", {
|
@@ -51,13 +34,11 @@ var BenefitsIconsTile = function BenefitsIconsTile(_ref) {
|
|
51
34
|
"data-testid": "".concat(testIdPrefix, "-img")
|
52
35
|
});
|
53
36
|
}
|
54
|
-
|
55
37
|
return /*#__PURE__*/React.createElement("div", {
|
56
38
|
className: cn('svg-icon', [classes.icon]),
|
57
39
|
"data-testid": "".concat(testIdPrefix, "-svg")
|
58
40
|
}, icon);
|
59
41
|
};
|
60
|
-
|
61
42
|
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
62
43
|
className: cn({
|
63
44
|
'icon-position': iconPosition,
|
@@ -76,25 +57,4 @@ var BenefitsIconsTile = function BenefitsIconsTile(_ref) {
|
|
76
57
|
className: cn('content', [classes.text])
|
77
58
|
}, text))));
|
78
59
|
};
|
79
|
-
|
80
|
-
BenefitsIconsTile.propTypes = {
|
81
|
-
dataAttrs: _propTypes["default"].shape({
|
82
|
-
root: _propTypes["default"].objectOf(_propTypes["default"].string.isRequired)
|
83
|
-
}),
|
84
|
-
className: _propTypes["default"].string,
|
85
|
-
classes: _propTypes["default"].shape({
|
86
|
-
root: _propTypes["default"].string,
|
87
|
-
icon: _propTypes["default"].string,
|
88
|
-
title: _propTypes["default"].string,
|
89
|
-
text: _propTypes["default"].string,
|
90
|
-
contentWrapper: _propTypes["default"].string
|
91
|
-
}),
|
92
|
-
title: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].node, _propTypes["default"].arrayOf(_propTypes["default"].node)]),
|
93
|
-
text: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].node, _propTypes["default"].arrayOf(_propTypes["default"].node)]),
|
94
|
-
iconPosition: _propTypes["default"].oneOf(Object.values(_types.IconPositionEnum)),
|
95
|
-
background: _propTypes["default"].oneOf(Object.values(_types.BackgroundEnum)),
|
96
|
-
icon: _propTypes["default"].node.isRequired,
|
97
|
-
alt: _propTypes["default"].string
|
98
|
-
};
|
99
|
-
var _default = BenefitsIconsTile;
|
100
|
-
exports["default"] = _default;
|
60
|
+
var _default = exports["default"] = BenefitsIconsTile;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { GridConfig } from './types';
|
1
|
+
import { GridConfig, IconPosition } from './types';
|
2
2
|
declare const getLeftSideConfig: (count: number, index: number) => GridConfig;
|
3
3
|
declare const getLeftTopConfig: (count: number, index: number) => GridConfig;
|
4
4
|
declare const getCenterTopConfig: (count: number, index: number) => GridConfig;
|
5
|
-
declare const getOneColumnConfig: (iconPosition:
|
6
|
-
declare const getMultiColumnConfig: (iconPosition:
|
5
|
+
declare const getOneColumnConfig: (iconPosition: IconPosition) => GridConfig;
|
6
|
+
declare const getMultiColumnConfig: (iconPosition: IconPosition, count: number, index: number) => GridConfig;
|
7
7
|
export default getMultiColumnConfig;
|
8
8
|
export { getLeftSideConfig, getLeftTopConfig, getCenterTopConfig, getOneColumnConfig };
|
@@ -3,23 +3,18 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.getOneColumnConfig = exports.
|
7
|
-
|
6
|
+
exports.getOneColumnConfig = exports.getLeftTopConfig = exports.getLeftSideConfig = exports.getCenterTopConfig = exports["default"] = void 0;
|
8
7
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
9
|
-
|
10
8
|
var _types = require("./types");
|
11
|
-
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
13
|
-
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
14
10
|
// left-aligned column with left side icon
|
15
|
-
var getLeftSideConfig = function getLeftSideConfig(count, index) {
|
11
|
+
var getLeftSideConfig = exports.getLeftSideConfig = function getLeftSideConfig(count, index) {
|
16
12
|
var everySecondWithoutOffset = index % 2 ? '1' : undefined;
|
17
13
|
var columnSize = {
|
18
14
|
wide: '4',
|
19
15
|
desktop: '5',
|
20
16
|
tablet: '10'
|
21
17
|
};
|
22
|
-
|
23
18
|
switch (count) {
|
24
19
|
case 2:
|
25
20
|
case 4:
|
@@ -27,21 +22,16 @@ var getLeftSideConfig = function getLeftSideConfig(count, index) {
|
|
27
22
|
leftOffsetWide: everySecondWithoutOffset,
|
28
23
|
leftOffsetDesktop: everySecondWithoutOffset
|
29
24
|
});
|
30
|
-
|
31
25
|
default:
|
32
26
|
return (0, _extends2["default"])((0, _extends2["default"])({}, columnSize), {
|
33
27
|
leftOffsetDesktop: everySecondWithoutOffset
|
34
28
|
});
|
35
29
|
}
|
36
|
-
};
|
37
|
-
|
38
|
-
|
39
|
-
exports.getLeftSideConfig = getLeftSideConfig;
|
40
|
-
|
41
|
-
var getLeftTopConfig = function getLeftTopConfig(count, index) {
|
30
|
+
};
|
31
|
+
// left-aligned column with left-aligned icon on top
|
32
|
+
var getLeftTopConfig = exports.getLeftTopConfig = function getLeftTopConfig(count, index) {
|
42
33
|
var everySecondWithoutOffset = index % 2 ? '1' : undefined;
|
43
34
|
var everyThirdWithoutOffset = index % 3 ? '1' : undefined;
|
44
|
-
|
45
35
|
switch (count) {
|
46
36
|
case 2:
|
47
37
|
return {
|
@@ -52,7 +42,6 @@ var getLeftTopConfig = function getLeftTopConfig(count, index) {
|
|
52
42
|
leftOffsetDesktop: everySecondWithoutOffset,
|
53
43
|
leftOffsetTablet: everySecondWithoutOffset
|
54
44
|
};
|
55
|
-
|
56
45
|
case 4:
|
57
46
|
return {
|
58
47
|
wide: '3',
|
@@ -61,7 +50,6 @@ var getLeftTopConfig = function getLeftTopConfig(count, index) {
|
|
61
50
|
leftOffsetDesktop: everySecondWithoutOffset,
|
62
51
|
leftOffsetTablet: everySecondWithoutOffset
|
63
52
|
};
|
64
|
-
|
65
53
|
default:
|
66
54
|
return {
|
67
55
|
wide: '3',
|
@@ -71,16 +59,12 @@ var getLeftTopConfig = function getLeftTopConfig(count, index) {
|
|
71
59
|
leftOffsetTablet: everySecondWithoutOffset
|
72
60
|
};
|
73
61
|
}
|
74
|
-
};
|
75
|
-
|
76
|
-
|
77
|
-
exports.getLeftTopConfig = getLeftTopConfig;
|
78
|
-
|
79
|
-
var getCenterTopConfig = function getCenterTopConfig(count, index) {
|
62
|
+
};
|
63
|
+
// center-aligned column with center-aligned icon on top
|
64
|
+
var getCenterTopConfig = exports.getCenterTopConfig = function getCenterTopConfig(count, index) {
|
80
65
|
var isEvenIndex = !(index % 2);
|
81
66
|
var everyEvenWithLeftOffset = isEvenIndex ? '1' : undefined;
|
82
67
|
var everyOddWithRightOffset = isEvenIndex ? undefined : '1';
|
83
|
-
|
84
68
|
switch (count) {
|
85
69
|
case 4:
|
86
70
|
return {
|
@@ -92,7 +76,6 @@ var getCenterTopConfig = function getCenterTopConfig(count, index) {
|
|
92
76
|
rightOffsetTablet: everyOddWithRightOffset,
|
93
77
|
rightOffsetDesktop: everyOddWithRightOffset
|
94
78
|
};
|
95
|
-
|
96
79
|
default:
|
97
80
|
return {
|
98
81
|
wide: '4',
|
@@ -101,10 +84,7 @@ var getCenterTopConfig = function getCenterTopConfig(count, index) {
|
|
101
84
|
};
|
102
85
|
}
|
103
86
|
};
|
104
|
-
|
105
|
-
exports.getCenterTopConfig = getCenterTopConfig;
|
106
|
-
|
107
|
-
var getOneColumnConfig = function getOneColumnConfig(iconPosition) {
|
87
|
+
var getOneColumnConfig = exports.getOneColumnConfig = function getOneColumnConfig(iconPosition) {
|
108
88
|
return iconPosition !== _types.IconPositionEnum.CENTER_TOP ? {
|
109
89
|
wide: '10',
|
110
90
|
desktop: '10',
|
@@ -115,21 +95,14 @@ var getOneColumnConfig = function getOneColumnConfig(iconPosition) {
|
|
115
95
|
tablet: '12'
|
116
96
|
};
|
117
97
|
};
|
118
|
-
|
119
|
-
exports.getOneColumnConfig = getOneColumnConfig;
|
120
|
-
|
121
98
|
var getMultiColumnConfig = function getMultiColumnConfig(iconPosition, count, index) {
|
122
99
|
switch (iconPosition) {
|
123
100
|
case _types.IconPositionEnum.LEFT_TOP:
|
124
101
|
return getLeftTopConfig(count, index);
|
125
|
-
|
126
102
|
case _types.IconPositionEnum.CENTER_TOP:
|
127
103
|
return getCenterTopConfig(count, index);
|
128
|
-
|
129
104
|
default:
|
130
105
|
return getLeftSideConfig(count, index);
|
131
106
|
}
|
132
107
|
};
|
133
|
-
|
134
|
-
var _default = getMultiColumnConfig;
|
135
|
-
exports["default"] = _default;
|
108
|
+
var _default = exports["default"] = getMultiColumnConfig;
|
@@ -1,38 +1 @@
|
|
1
|
-
h1,
|
2
|
-
h2,
|
3
|
-
h3,
|
4
|
-
h4,
|
5
|
-
h5 {
|
6
|
-
margin: 0;
|
7
|
-
}
|
8
|
-
.mfui-benefits-icons {
|
9
|
-
overflow: hidden;
|
10
|
-
}
|
11
|
-
.mfui-benefits-icons__inner {
|
12
|
-
margin-bottom: -20px;
|
13
|
-
}
|
14
|
-
.mfui-benefits-icons_background_transparent .mfui-benefits-icons__inner {
|
15
|
-
margin-bottom: -48px;
|
16
|
-
}
|
17
|
-
.mfui-benefits-icons__column {
|
18
|
-
margin-bottom: 20px;
|
19
|
-
}
|
20
|
-
.mfui-benefits-icons_background_transparent .mfui-benefits-icons__column {
|
21
|
-
margin-bottom: 48px;
|
22
|
-
}
|
23
|
-
.mfui-benefits-icons_one-column .mfui-benefits-icons__inner {
|
24
|
-
margin-bottom: -24px;
|
25
|
-
}
|
26
|
-
@media screen and (max-width: 767px) {
|
27
|
-
.mfui-benefits-icons_one-column .mfui-benefits-icons__inner {
|
28
|
-
margin-bottom: -32px;
|
29
|
-
}
|
30
|
-
}
|
31
|
-
.mfui-benefits-icons_one-column .mfui-benefits-icons__column {
|
32
|
-
margin-bottom: 24px;
|
33
|
-
}
|
34
|
-
@media screen and (max-width: 767px) {
|
35
|
-
.mfui-benefits-icons_one-column .mfui-benefits-icons__column {
|
36
|
-
margin-bottom: 32px;
|
37
|
-
}
|
38
|
-
}
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-benefits-icons{overflow:hidden}.mfui-benefits-icons__inner{margin-bottom:-20px}.mfui-benefits-icons_background_transparent .mfui-benefits-icons__inner{margin-bottom:-48px}.mfui-benefits-icons__column{margin-bottom:20px}.mfui-benefits-icons_background_transparent .mfui-benefits-icons__column{margin-bottom:48px}.mfui-benefits-icons_one-column .mfui-benefits-icons__inner{margin-bottom:-24px}@media screen and (max-width:767px){.mfui-benefits-icons_one-column .mfui-benefits-icons__inner{margin-bottom:-32px}}.mfui-benefits-icons_one-column .mfui-benefits-icons__column{margin-bottom:24px}@media screen and (max-width:767px){.mfui-benefits-icons_one-column .mfui-benefits-icons__column{margin-bottom:32px}}
|
@@ -1,90 +1 @@
|
|
1
|
-
h1,
|
2
|
-
h2,
|
3
|
-
h3,
|
4
|
-
h4,
|
5
|
-
h5 {
|
6
|
-
margin: 0;
|
7
|
-
}
|
8
|
-
.mfui-benefits-icons-tile {
|
9
|
-
min-height: 100%;
|
10
|
-
padding: 24px;
|
11
|
-
border-radius: 12px;
|
12
|
-
}
|
13
|
-
.mfui-benefits-icons-tile_background_transparent {
|
14
|
-
padding: 0;
|
15
|
-
}
|
16
|
-
.mfui-benefits-icons-tile_background_gray {
|
17
|
-
background-color: var(--spbSky0);
|
18
|
-
}
|
19
|
-
.mfui-benefits-icons-tile_background_green {
|
20
|
-
background-color: var(--brandGreen20);
|
21
|
-
}
|
22
|
-
.mfui-benefits-icons-tile_background_purple {
|
23
|
-
background-color: var(--brandPurple20);
|
24
|
-
}
|
25
|
-
.mfui-benefits-icons-tile .mfui-benefits-icons-tile__svg-icon {
|
26
|
-
margin-bottom: 10px;
|
27
|
-
}
|
28
|
-
.mfui-benefits-icons-tile__content {
|
29
|
-
font-size: 15px;
|
30
|
-
line-height: 24px;
|
31
|
-
font-weight: 400;
|
32
|
-
}
|
33
|
-
.mfui-benefits-icons-tile__title + .mfui-benefits-icons-tile__content {
|
34
|
-
margin-top: 4px;
|
35
|
-
}
|
36
|
-
.mfui-benefits-icons-tile__text {
|
37
|
-
margin-bottom: 0;
|
38
|
-
}
|
39
|
-
.mfui-benefits-icons-tile__img-icon {
|
40
|
-
width: 64px;
|
41
|
-
height: 64px;
|
42
|
-
border-radius: 8px;
|
43
|
-
}
|
44
|
-
.mfui-benefits-icons-tile__svg-icon {
|
45
|
-
width: 40px;
|
46
|
-
height: 40px;
|
47
|
-
overflow: hidden;
|
48
|
-
}
|
49
|
-
.mfui-benefits-icons-tile__svg-icon svg {
|
50
|
-
fill: var(--brandGreen) !important;
|
51
|
-
}
|
52
|
-
.mfui-benefits-icons-tile_background_purple .mfui-benefits-icons-tile__svg-icon svg {
|
53
|
-
fill: var(--brandPurple) !important;
|
54
|
-
}
|
55
|
-
.mfui-benefits-icons-tile_icon-position_left-side .mfui-benefits-icons-tile__inner {
|
56
|
-
display: -webkit-box;
|
57
|
-
display: -ms-flexbox;
|
58
|
-
display: flex;
|
59
|
-
}
|
60
|
-
.mfui-benefits-icons-tile_icon-position_left-side .mfui-benefits-icons-tile__content-wrapper {
|
61
|
-
padding-top: 8px;
|
62
|
-
}
|
63
|
-
.mfui-benefits-icons-tile_icon-position_left-side .mfui-benefits-icons-tile__svg-icon,
|
64
|
-
.mfui-benefits-icons-tile_icon-position_left-side .mfui-benefits-icons-tile__img-icon {
|
65
|
-
-ms-flex-negative: 0;
|
66
|
-
flex-shrink: 0;
|
67
|
-
margin-right: 14px;
|
68
|
-
margin-bottom: 0;
|
69
|
-
}
|
70
|
-
.mfui-benefits-icons-tile_icon-position_left-side.mfui-benefits-icons-tile_image .mfui-benefits-icons-tile__inner {
|
71
|
-
-webkit-box-align: center;
|
72
|
-
-ms-flex-align: center;
|
73
|
-
align-items: center;
|
74
|
-
}
|
75
|
-
.mfui-benefits-icons-tile_icon-position_left-side.mfui-benefits-icons-tile_image .mfui-benefits-icons-tile__content-wrapper {
|
76
|
-
padding-top: 0;
|
77
|
-
}
|
78
|
-
.mfui-benefits-icons-tile_icon-position_left-side.mfui-benefits-icons-tile_image .mfui-benefits-icons-tile__svg-icon,
|
79
|
-
.mfui-benefits-icons-tile_icon-position_left-side.mfui-benefits-icons-tile_image .mfui-benefits-icons-tile__img-icon {
|
80
|
-
-ms-flex-item-align: start;
|
81
|
-
align-self: start;
|
82
|
-
}
|
83
|
-
.mfui-benefits-icons-tile_icon-position_center-top .mfui-benefits-icons-tile__inner {
|
84
|
-
text-align: center;
|
85
|
-
}
|
86
|
-
.mfui-benefits-icons-tile_icon-position_center-top .mfui-benefits-icons-tile__svg-icon,
|
87
|
-
.mfui-benefits-icons-tile_icon-position_center-top .mfui-benefits-icons-tile__img-icon {
|
88
|
-
margin-right: auto;
|
89
|
-
margin-left: auto;
|
90
|
-
}
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-benefits-icons-tile{border-radius:12px;min-height:100%;padding:24px}.mfui-benefits-icons-tile_background_transparent{padding:0}.mfui-benefits-icons-tile_background_gray{background-color:var(--spbSky0)}.mfui-benefits-icons-tile_background_green{background-color:var(--brandGreen20)}.mfui-benefits-icons-tile_background_purple{background-color:var(--brandPurple20)}.mfui-benefits-icons-tile .mfui-benefits-icons-tile__svg-icon{margin-bottom:10px}.mfui-benefits-icons-tile__content{font-size:15px;font-weight:400;line-height:24px}.mfui-benefits-icons-tile__title+.mfui-benefits-icons-tile__content{margin-top:4px}.mfui-benefits-icons-tile__text{margin-bottom:0}.mfui-benefits-icons-tile__img-icon{border-radius:8px;height:64px;width:64px}.mfui-benefits-icons-tile__svg-icon{height:40px;overflow:hidden;width:40px}.mfui-benefits-icons-tile__svg-icon svg{fill:var(--brandGreen)!important}.mfui-benefits-icons-tile_background_purple .mfui-benefits-icons-tile__svg-icon svg{fill:var(--brandPurple)!important}.mfui-benefits-icons-tile_icon-position_left-side .mfui-benefits-icons-tile__inner{display:-webkit-box;display:-ms-flexbox;display:flex}.mfui-benefits-icons-tile_icon-position_left-side .mfui-benefits-icons-tile__content-wrapper{padding-top:8px}.mfui-benefits-icons-tile_icon-position_left-side .mfui-benefits-icons-tile__img-icon,.mfui-benefits-icons-tile_icon-position_left-side .mfui-benefits-icons-tile__svg-icon{-ms-flex-negative:0;flex-shrink:0;margin-bottom:0;margin-right:14px}.mfui-benefits-icons-tile_icon-position_left-side.mfui-benefits-icons-tile_image .mfui-benefits-icons-tile__inner{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-benefits-icons-tile_icon-position_left-side.mfui-benefits-icons-tile_image .mfui-benefits-icons-tile__content-wrapper{padding-top:0}.mfui-benefits-icons-tile_icon-position_left-side.mfui-benefits-icons-tile_image .mfui-benefits-icons-tile__img-icon,.mfui-benefits-icons-tile_icon-position_left-side.mfui-benefits-icons-tile_image .mfui-benefits-icons-tile__svg-icon{-ms-flex-item-align:start;align-self:start}.mfui-benefits-icons-tile_icon-position_center-top .mfui-benefits-icons-tile__inner{text-align:center}.mfui-benefits-icons-tile_icon-position_center-top .mfui-benefits-icons-tile__img-icon,.mfui-benefits-icons-tile_icon-position_center-top .mfui-benefits-icons-tile__svg-icon{margin-left:auto;margin-right:auto}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
|
2
|
-
declare type TGridSizeValues = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12';
|
1
|
+
type TGridSizeValues = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12';
|
3
2
|
export interface IBenefit {
|
4
3
|
/** Дополнительные data атрибуты к внутренним элементам */
|
5
4
|
dataAttrs?: {
|
@@ -27,20 +26,20 @@ export declare const IconPositionEnum: {
|
|
27
26
|
readonly CENTER_TOP: "center-top";
|
28
27
|
readonly LEFT_SIDE: "left-side";
|
29
28
|
};
|
30
|
-
export
|
29
|
+
export type IconPosition = (typeof IconPositionEnum)[keyof typeof IconPositionEnum];
|
31
30
|
export declare const ItemsAlignEnum: {
|
32
31
|
readonly LEFT: "left";
|
33
32
|
readonly CENTER: "center";
|
34
33
|
};
|
35
|
-
export
|
34
|
+
export type ItemsAlignType = (typeof ItemsAlignEnum)[keyof typeof ItemsAlignEnum];
|
36
35
|
export declare const BackgroundEnum: {
|
37
36
|
readonly TRANSPARENT: "transparent";
|
38
37
|
readonly GRAY: "gray";
|
39
38
|
readonly GREEN: "green";
|
40
39
|
readonly PURPLE: "purple";
|
41
40
|
};
|
42
|
-
export
|
43
|
-
export
|
41
|
+
export type BackgroundType = (typeof BackgroundEnum)[keyof typeof BackgroundEnum];
|
42
|
+
export type GridConfig = {
|
44
43
|
wide?: TGridSizeValues;
|
45
44
|
desktop?: TGridSizeValues;
|
46
45
|
tablet?: TGridSizeValues;
|
@@ -3,22 +3,19 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.
|
7
|
-
var IconPositionEnum = {
|
6
|
+
exports.ItemsAlignEnum = exports.IconPositionEnum = exports.BackgroundEnum = void 0;
|
7
|
+
var IconPositionEnum = exports.IconPositionEnum = {
|
8
8
|
LEFT_TOP: 'left-top',
|
9
9
|
CENTER_TOP: 'center-top',
|
10
10
|
LEFT_SIDE: 'left-side'
|
11
11
|
};
|
12
|
-
exports.
|
13
|
-
var ItemsAlignEnum = {
|
12
|
+
var ItemsAlignEnum = exports.ItemsAlignEnum = {
|
14
13
|
LEFT: 'left',
|
15
14
|
CENTER: 'center'
|
16
15
|
};
|
17
|
-
exports.
|
18
|
-
var BackgroundEnum = {
|
16
|
+
var BackgroundEnum = exports.BackgroundEnum = {
|
19
17
|
TRANSPARENT: 'transparent',
|
20
18
|
GRAY: 'gray',
|
21
19
|
GREEN: 'green',
|
22
20
|
PURPLE: 'purple'
|
23
|
-
};
|
24
|
-
exports.BackgroundEnum = BackgroundEnum;
|
21
|
+
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { IBenefit, GridGutterSize } from './types';
|
3
|
-
import './BenfitsPictures.
|
3
|
+
import './BenfitsPictures.scss';
|
4
4
|
export declare const ONLY_LEFT_ALIGN_ITEMS_COUNT = 3;
|
5
5
|
export interface IBenefitsPicturesProps {
|
6
6
|
/** Ссылка на корневой элемент */
|