@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,10 +1,9 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
|
-
import "core-js/modules/es.string.link.js";
|
3
2
|
import "core-js/modules/es.array.map.js";
|
4
|
-
import
|
3
|
+
import "core-js/modules/es.string.link.js";
|
4
|
+
import * as React from 'react';
|
5
5
|
import { Button, Header } from '@megafon/ui-core';
|
6
6
|
import { cnCreate, convert, filterDataAttrs } from '@megafon/ui-helpers';
|
7
|
-
import PropTypes from 'prop-types';
|
8
7
|
import "./Card.css";
|
9
8
|
var textsConvertConfig = {
|
10
9
|
b: {
|
@@ -33,43 +32,40 @@ var textsConvertConfig = {
|
|
33
32
|
}
|
34
33
|
};
|
35
34
|
var cn = cnCreate('mfui-card');
|
36
|
-
|
37
35
|
var Card = function Card(_ref5) {
|
38
36
|
var dataAttrs = _ref5.dataAttrs,
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
37
|
+
className = _ref5.className,
|
38
|
+
classes = _ref5.classes,
|
39
|
+
rootRef = _ref5.rootRef,
|
40
|
+
_ref5$isFullHeight = _ref5.isFullHeight,
|
41
|
+
isFullHeight = _ref5$isFullHeight === void 0 ? false : _ref5$isFullHeight,
|
42
|
+
link = _ref5.link,
|
43
|
+
_ref5$view = _ref5.view,
|
44
|
+
view = _ref5$view === void 0 ? 'shadow' : _ref5$view,
|
45
|
+
image = _ref5.image,
|
46
|
+
icon = _ref5.icon,
|
47
|
+
title = _ref5.title,
|
48
|
+
markerList = _ref5.markerList,
|
49
|
+
textsList = _ref5.textsList,
|
50
|
+
featuresList = _ref5.featuresList,
|
51
|
+
iconsList = _ref5.iconsList,
|
52
|
+
price = _ref5.price,
|
53
|
+
button = _ref5.button,
|
54
|
+
extraButton = _ref5.extraButton,
|
55
|
+
badge = _ref5.badge,
|
56
|
+
onClick = _ref5.onClick;
|
59
57
|
var isOnlyTitle = !image && !icon && !markerList && !textsList && !featuresList && !iconsList && !price && !button && !extraButton;
|
60
58
|
var isLink = (link === null || link === void 0 ? void 0 : link.href) && !button && !extraButton;
|
61
59
|
var isBottomImage = (image === null || image === void 0 ? void 0 : image.position) === 'bottom';
|
62
60
|
var ElementType = isLink ? 'a' : 'div';
|
63
|
-
|
64
61
|
var renderImage = function renderImage() {
|
65
62
|
if (!image) {
|
66
63
|
return null;
|
67
64
|
}
|
68
|
-
|
69
65
|
var _image$position = image.position,
|
70
|
-
|
71
|
-
|
72
|
-
|
66
|
+
position = _image$position === void 0 ? 'top' : _image$position,
|
67
|
+
src = image.src,
|
68
|
+
alt = image.alt;
|
73
69
|
return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.imgBox), {
|
74
70
|
className: cn('img-box', {
|
75
71
|
position: position
|
@@ -80,17 +76,14 @@ var Card = function Card(_ref5) {
|
|
80
76
|
alt: alt
|
81
77
|
}));
|
82
78
|
};
|
83
|
-
|
84
79
|
var renderIcon = function renderIcon() {
|
85
80
|
if (!icon) {
|
86
81
|
return null;
|
87
82
|
}
|
88
|
-
|
89
83
|
return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.icon), {
|
90
84
|
className: cn('icon')
|
91
85
|
}), icon);
|
92
86
|
};
|
93
|
-
|
94
87
|
var renderContent = function renderContent() {
|
95
88
|
if (markerList) {
|
96
89
|
return /*#__PURE__*/React.createElement("ul", {
|
@@ -104,7 +97,6 @@ var Card = function Card(_ref5) {
|
|
104
97
|
}, convert(item.note, {})));
|
105
98
|
}));
|
106
99
|
}
|
107
|
-
|
108
100
|
if (textsList) {
|
109
101
|
return /*#__PURE__*/React.createElement("div", {
|
110
102
|
className: cn('texts')
|
@@ -119,7 +111,6 @@ var Card = function Card(_ref5) {
|
|
119
111
|
}, convert(item.desc, textsConvertConfig)));
|
120
112
|
}));
|
121
113
|
}
|
122
|
-
|
123
114
|
if (featuresList) {
|
124
115
|
return /*#__PURE__*/React.createElement("div", {
|
125
116
|
className: cn('features')
|
@@ -140,7 +131,6 @@ var Card = function Card(_ref5) {
|
|
140
131
|
}, item.value)));
|
141
132
|
})), featuresList.desc);
|
142
133
|
}
|
143
|
-
|
144
134
|
if (iconsList) {
|
145
135
|
return /*#__PURE__*/React.createElement("div", {
|
146
136
|
className: cn('icons')
|
@@ -159,15 +149,12 @@ var Card = function Card(_ref5) {
|
|
159
149
|
}, item.text));
|
160
150
|
})));
|
161
151
|
}
|
162
|
-
|
163
152
|
return null;
|
164
153
|
};
|
165
|
-
|
166
154
|
var renderPrice = function renderPrice() {
|
167
155
|
if (!price) {
|
168
156
|
return null;
|
169
157
|
}
|
170
|
-
|
171
158
|
return /*#__PURE__*/React.createElement("div", {
|
172
159
|
className: cn('price')
|
173
160
|
}, !!price.oldValue && /*#__PURE__*/React.createElement("div", {
|
@@ -178,12 +165,10 @@ var Card = function Card(_ref5) {
|
|
178
165
|
className: cn('price-period')
|
179
166
|
}, price.period));
|
180
167
|
};
|
181
|
-
|
182
168
|
var renderButtons = function renderButtons() {
|
183
169
|
if (!button && !extraButton) {
|
184
170
|
return null;
|
185
171
|
}
|
186
|
-
|
187
172
|
return /*#__PURE__*/React.createElement("div", {
|
188
173
|
className: cn('buttons', {
|
189
174
|
centered: (button === null || button === void 0 ? void 0 : button.isCentered) || (extraButton === null || extraButton === void 0 ? void 0 : extraButton.isCentered)
|
@@ -207,17 +192,14 @@ var Card = function Card(_ref5) {
|
|
207
192
|
onClick: extraButton === null || extraButton === void 0 ? void 0 : extraButton.onClick
|
208
193
|
}, extraButton.title));
|
209
194
|
};
|
210
|
-
|
211
195
|
var renderFooter = function renderFooter() {
|
212
196
|
if (!price && !button && !extraButton && !image) {
|
213
197
|
return null;
|
214
198
|
}
|
215
|
-
|
216
199
|
return /*#__PURE__*/React.createElement("div", {
|
217
200
|
className: cn('footer')
|
218
201
|
}, isBottomImage && renderImage(), renderPrice(), renderButtons());
|
219
202
|
};
|
220
|
-
|
221
203
|
return /*#__PURE__*/React.createElement(ElementType, _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
222
204
|
className: cn({
|
223
205
|
'only-title': isOnlyTitle,
|
@@ -237,76 +219,4 @@ var Card = function Card(_ref5) {
|
|
237
219
|
align: title.align
|
238
220
|
}, title.text), badge), renderContent(), renderFooter());
|
239
221
|
};
|
240
|
-
|
241
|
-
Card.propTypes = {
|
242
|
-
dataAttrs: PropTypes.shape({
|
243
|
-
root: PropTypes.objectOf(PropTypes.string.isRequired),
|
244
|
-
icon: PropTypes.objectOf(PropTypes.string.isRequired),
|
245
|
-
imgBox: PropTypes.objectOf(PropTypes.string.isRequired),
|
246
|
-
button: PropTypes.objectOf(PropTypes.string.isRequired),
|
247
|
-
extraButton: PropTypes.objectOf(PropTypes.string.isRequired)
|
248
|
-
}),
|
249
|
-
className: PropTypes.string,
|
250
|
-
classes: PropTypes.shape({
|
251
|
-
root: PropTypes.string,
|
252
|
-
button: PropTypes.string,
|
253
|
-
extraButton: PropTypes.string
|
254
|
-
}),
|
255
|
-
rootRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
|
256
|
-
current: PropTypes.elementType
|
257
|
-
}), PropTypes.any])]),
|
258
|
-
view: PropTypes.oneOf(['shadow', 'background']),
|
259
|
-
link: PropTypes.shape({
|
260
|
-
href: PropTypes.string,
|
261
|
-
target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top'])
|
262
|
-
}),
|
263
|
-
image: PropTypes.shape({
|
264
|
-
src: PropTypes.string.isRequired,
|
265
|
-
alt: PropTypes.string,
|
266
|
-
position: PropTypes.oneOf(['top', 'bottom'])
|
267
|
-
}),
|
268
|
-
icon: PropTypes.node,
|
269
|
-
title: PropTypes.shape({
|
270
|
-
text: PropTypes.string.isRequired,
|
271
|
-
align: PropTypes.oneOf(['left', 'center'])
|
272
|
-
}).isRequired,
|
273
|
-
textsList: PropTypes.arrayOf(PropTypes.shape({
|
274
|
-
title: PropTypes.string,
|
275
|
-
desc: PropTypes.string.isRequired
|
276
|
-
}).isRequired),
|
277
|
-
featuresList: PropTypes.shape({
|
278
|
-
desc: PropTypes.string,
|
279
|
-
items: PropTypes.arrayOf(PropTypes.shape({
|
280
|
-
title: PropTypes.string.isRequired,
|
281
|
-
value: PropTypes.string.isRequired
|
282
|
-
}).isRequired).isRequired
|
283
|
-
}),
|
284
|
-
iconsList: PropTypes.shape({
|
285
|
-
desc: PropTypes.string,
|
286
|
-
items: PropTypes.arrayOf(PropTypes.shape({
|
287
|
-
icon: PropTypes.node.isRequired,
|
288
|
-
text: PropTypes.string.isRequired
|
289
|
-
}).isRequired).isRequired
|
290
|
-
}),
|
291
|
-
price: PropTypes.shape({
|
292
|
-
oldValue: PropTypes.string,
|
293
|
-
value: PropTypes.string.isRequired,
|
294
|
-
period: PropTypes.string
|
295
|
-
}),
|
296
|
-
button: PropTypes.shape({
|
297
|
-
title: PropTypes.string.isRequired,
|
298
|
-
href: PropTypes.string,
|
299
|
-
target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top']),
|
300
|
-
isCentered: PropTypes.bool,
|
301
|
-
onClick: PropTypes.func
|
302
|
-
}),
|
303
|
-
extraButton: PropTypes.shape({
|
304
|
-
title: PropTypes.string.isRequired,
|
305
|
-
href: PropTypes.string,
|
306
|
-
target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top']),
|
307
|
-
isCentered: PropTypes.bool,
|
308
|
-
onClick: PropTypes.func
|
309
|
-
}),
|
310
|
-
onClick: PropTypes.func
|
311
|
-
};
|
312
222
|
export default Card;
|
@@ -1,12 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
export declare type Link = {
|
1
|
+
type Target = '_self' | '_blank' | '_parent' | '_top';
|
2
|
+
export type Link = {
|
4
3
|
/** Ссылка */
|
5
4
|
href?: string;
|
6
5
|
/** Target свойство ссылки */
|
7
6
|
target?: Target;
|
8
7
|
};
|
9
|
-
export
|
8
|
+
export type Image = {
|
10
9
|
/** Ссылка на изображение */
|
11
10
|
src: string;
|
12
11
|
/** Значение тега alt для изображения */
|
@@ -14,25 +13,25 @@ export declare type Image = {
|
|
14
13
|
/** Позиция изображения */
|
15
14
|
position?: 'top' | 'bottom';
|
16
15
|
};
|
17
|
-
export
|
16
|
+
export type Title = {
|
18
17
|
/** Текст */
|
19
18
|
text: string;
|
20
19
|
/** Выравнивание */
|
21
20
|
align?: 'left' | 'center';
|
22
21
|
};
|
23
|
-
export
|
22
|
+
export type MarkerList = {
|
24
23
|
/** Заголовок */
|
25
24
|
title: string;
|
26
25
|
/** Примечание */
|
27
26
|
note?: string;
|
28
27
|
}[];
|
29
|
-
export
|
28
|
+
export type TextsList = {
|
30
29
|
/** Заголовок */
|
31
30
|
title?: string;
|
32
31
|
/** Описание */
|
33
32
|
desc: string;
|
34
33
|
}[];
|
35
|
-
export
|
34
|
+
export type FeaturesList = {
|
36
35
|
/** Список */
|
37
36
|
items: {
|
38
37
|
/** Заголовок */
|
@@ -43,7 +42,7 @@ export declare type FeaturesList = {
|
|
43
42
|
/** Описание */
|
44
43
|
desc?: string;
|
45
44
|
};
|
46
|
-
export
|
45
|
+
export type IconsList = {
|
47
46
|
/** Список */
|
48
47
|
items: {
|
49
48
|
/** Иконка */
|
@@ -54,7 +53,7 @@ export declare type IconsList = {
|
|
54
53
|
/** Описание */
|
55
54
|
desc?: string;
|
56
55
|
};
|
57
|
-
export
|
56
|
+
export type Price = {
|
58
57
|
/** Старая цена */
|
59
58
|
oldValue?: string;
|
60
59
|
/** Текущая цена */
|
@@ -62,7 +61,7 @@ export declare type Price = {
|
|
62
61
|
/** Период */
|
63
62
|
period?: string;
|
64
63
|
};
|
65
|
-
export
|
64
|
+
export type ButtonType = {
|
66
65
|
/** Название */
|
67
66
|
title: string;
|
68
67
|
/** Ссылка */
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -3,15 +3,13 @@ import "core-js/modules/es.array.map.js";
|
|
3
3
|
import * as React from 'react';
|
4
4
|
import { Grid, GridColumn } from '@megafon/ui-core';
|
5
5
|
import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
6
|
-
import * as PropTypes from 'prop-types';
|
7
6
|
import getColumnConfig from "./helpers";
|
8
7
|
var cn = cnCreate('mfui-cards-box');
|
9
|
-
|
10
8
|
var CardsBox = function CardsBox(_ref) {
|
11
9
|
var _ref$renderTwoColumns = _ref.renderTwoColumnsInRow,
|
12
|
-
|
13
|
-
|
14
|
-
|
10
|
+
renderTwoColumnsInRow = _ref$renderTwoColumns === void 0 ? false : _ref$renderTwoColumns,
|
11
|
+
dataAttrs = _ref.dataAttrs,
|
12
|
+
children = _ref.children;
|
15
13
|
return /*#__PURE__*/React.createElement("div", _extends({
|
16
14
|
className: cn()
|
17
15
|
}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root)), /*#__PURE__*/React.createElement(Grid, {
|
@@ -25,13 +23,4 @@ var CardsBox = function CardsBox(_ref) {
|
|
25
23
|
}, getColumnConfig(React.Children.count(children), i, renderTwoColumnsInRow)), child);
|
26
24
|
})));
|
27
25
|
};
|
28
|
-
|
29
|
-
CardsBox.propTypes = {
|
30
|
-
renderTwoColumnsInRow: PropTypes.bool,
|
31
|
-
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.element.isRequired), PropTypes.element]).isRequired,
|
32
|
-
dataAttrs: PropTypes.shape({
|
33
|
-
root: PropTypes.objectOf(PropTypes.string.isRequired),
|
34
|
-
column: PropTypes.objectOf(PropTypes.string.isRequired)
|
35
|
-
})
|
36
|
-
};
|
37
26
|
export default CardsBox;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
type TGridSizeValues = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12';
|
2
|
+
type GridConfig = {
|
3
3
|
all?: TGridSizeValues;
|
4
4
|
tablet?: TGridSizeValues;
|
5
5
|
mobile?: TGridSizeValues;
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
|
-
|
3
2
|
var getColumnConfig = function getColumnConfig(count, index, renderTwoColumnsInRow) {
|
4
3
|
var offset = renderTwoColumnsInRow ? '2' : undefined;
|
5
4
|
var offsetForEvenColumn = index % 2 ? undefined : offset;
|
@@ -8,7 +7,6 @@ var getColumnConfig = function getColumnConfig(count, index, renderTwoColumnsInR
|
|
8
7
|
tablet: '6',
|
9
8
|
mobile: '12'
|
10
9
|
};
|
11
|
-
|
12
10
|
switch (count) {
|
13
11
|
case 2:
|
14
12
|
case 4:
|
@@ -16,10 +14,8 @@ var getColumnConfig = function getColumnConfig(count, index, renderTwoColumnsInR
|
|
16
14
|
leftOffsetWide: offsetForEvenColumn,
|
17
15
|
leftOffsetDesktop: offsetForEvenColumn
|
18
16
|
});
|
19
|
-
|
20
17
|
default:
|
21
18
|
return _extends({}, columnSize);
|
22
19
|
}
|
23
20
|
};
|
24
|
-
|
25
21
|
export default getColumnConfig;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { Carousel } from '@megafon/ui-core';
|
3
|
-
|
4
|
-
|
3
|
+
type CarouselPropsTypes = React.ComponentProps<typeof Carousel>;
|
4
|
+
type DesktopSlidesPerView = 3 | 4;
|
5
5
|
interface ICarouselBox extends CarouselPropsTypes {
|
6
6
|
/** Количество видимых слайдов на разрешении 1280 и выше */
|
7
7
|
desktopSlidesPerView?: DesktopSlidesPerView;
|
@@ -1,52 +1,40 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
3
|
-
import "core-js/modules/es.array.index-of.js";
|
4
3
|
import "core-js/modules/es.symbol.js";
|
5
|
-
|
4
|
+
import "core-js/modules/es.array.index-of.js";
|
6
5
|
var __rest = this && this.__rest || function (s, e) {
|
7
6
|
var t = {};
|
8
|
-
|
9
|
-
for (var p in s) {
|
10
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
11
|
-
}
|
12
|
-
|
7
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
13
8
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
14
9
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
15
10
|
}
|
16
11
|
return t;
|
17
12
|
};
|
18
|
-
|
19
13
|
import * as React from 'react';
|
20
14
|
import { Carousel } from '@megafon/ui-core';
|
21
15
|
import { cnCreate, breakpoints } from '@megafon/ui-helpers';
|
22
|
-
|
23
16
|
var getDefaultSlideSettings = function getDefaultSlideSettings(desktopSlidesPerView) {
|
24
|
-
|
25
|
-
|
26
|
-
return _ref = {}, _defineProperty(_ref, breakpoints.MOBILE_SMALL_START, {
|
17
|
+
return _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, breakpoints.MOBILE_SMALL_START, {
|
27
18
|
slidesPerView: 1,
|
28
19
|
spaceBetween: 16
|
29
|
-
}),
|
20
|
+
}), breakpoints.MOBILE_BIG_START, {
|
30
21
|
slidesPerView: 2,
|
31
22
|
spaceBetween: 20
|
32
|
-
}),
|
23
|
+
}), breakpoints.DESKTOP_SMALL_START, {
|
33
24
|
slidesPerView: 3,
|
34
25
|
spaceBetween: 20
|
35
|
-
}),
|
26
|
+
}), breakpoints.DESKTOP_MIDDLE_START, {
|
36
27
|
slidesPerView: desktopSlidesPerView,
|
37
28
|
spaceBetween: 20
|
38
|
-
})
|
29
|
+
});
|
39
30
|
};
|
40
|
-
|
41
31
|
var cn = cnCreate('mfui-carousel-box');
|
42
|
-
|
43
32
|
var CarouselBox = function CarouselBox(_a) {
|
44
33
|
var children = _a.children,
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
34
|
+
slidesSettings = _a.slidesSettings,
|
35
|
+
_a$desktopSlidesPerVi = _a.desktopSlidesPerView,
|
36
|
+
desktopSlidesPerView = _a$desktopSlidesPerVi === void 0 ? 4 : _a$desktopSlidesPerVi,
|
37
|
+
props = __rest(_a, ["children", "slidesSettings", "desktopSlidesPerView"]);
|
50
38
|
var settings = slidesSettings || getDefaultSlideSettings(desktopSlidesPerView);
|
51
39
|
return /*#__PURE__*/React.createElement("div", {
|
52
40
|
className: cn()
|
@@ -54,5 +42,4 @@ var CarouselBox = function CarouselBox(_a) {
|
|
54
42
|
slidesSettings: settings
|
55
43
|
}), children));
|
56
44
|
};
|
57
|
-
|
58
45
|
export default CarouselBox;
|