@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,15 +1 @@
|
|
1
|
-
h1,
|
2
|
-
h2,
|
3
|
-
h3,
|
4
|
-
h4,
|
5
|
-
h5 {
|
6
|
-
margin: 0;
|
7
|
-
}
|
8
|
-
.mfui-accordion-box + .mfui-accordion-box {
|
9
|
-
margin-top: 8px;
|
10
|
-
}
|
11
|
-
@media screen and (min-width: 768px) {
|
12
|
-
.mfui-accordion-box + .mfui-accordion-box {
|
13
|
-
margin-top: 12px;
|
14
|
-
}
|
15
|
-
}
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-accordion-box+.mfui-accordion-box{margin-top:8px}@media screen and (min-width:768px){.mfui-accordion-box+.mfui-accordion-box{margin-top:12px}}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { IHeaderProps } from '@megafon/ui-core/dist/lib/components/Header/Header';
|
3
|
-
import './AccordionBox.
|
3
|
+
import './AccordionBox.scss';
|
4
4
|
export interface IAccordionBox {
|
5
5
|
/** Дополнительные data атрибуты к внутренним элементам */
|
6
6
|
dataAttrs?: {
|
@@ -43,5 +43,5 @@ export interface IAccordionBox {
|
|
43
43
|
/** Обработчик клика */
|
44
44
|
onClickAccordion?: (isOpened: boolean) => void;
|
45
45
|
}
|
46
|
-
declare const AccordionBox: React.FC<IAccordionBox
|
46
|
+
declare const AccordionBox: React.FC<React.PropsWithChildren<IAccordionBox>>;
|
47
47
|
export default AccordionBox;
|
@@ -1,36 +1,27 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
|
-
import "core-js/modules/es.array.index-of.js";
|
3
2
|
import "core-js/modules/es.symbol.js";
|
4
|
-
|
3
|
+
import "core-js/modules/es.array.index-of.js";
|
5
4
|
var __rest = this && this.__rest || function (s, e) {
|
6
5
|
var t = {};
|
7
|
-
|
8
|
-
for (var p in s) {
|
9
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
10
|
-
}
|
11
|
-
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
12
7
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
13
8
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
14
9
|
}
|
15
10
|
return t;
|
16
11
|
};
|
17
|
-
|
18
12
|
import * as React from 'react';
|
19
13
|
import { Grid, GridColumn, Accordion } from '@megafon/ui-core';
|
20
14
|
import { cnCreate } from '@megafon/ui-helpers';
|
21
|
-
import * as PropTypes from 'prop-types';
|
22
15
|
import "./AccordionBox.css";
|
23
16
|
import { getColumnConfig } from "../../helpers/getColumnConfig";
|
24
17
|
var testIdPrefix = 'AccordionBox';
|
25
18
|
var cn = cnCreate('mfui-accordion-box');
|
26
|
-
|
27
19
|
var AccordionBox = function AccordionBox(_a) {
|
28
20
|
var _a$hCenterAlignWide = _a.hCenterAlignWide,
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
21
|
+
hCenterAlignWide = _a$hCenterAlignWide === void 0 ? false : _a$hCenterAlignWide,
|
22
|
+
_a$isFullWidth = _a.isFullWidth,
|
23
|
+
isFullWidth = _a$isFullWidth === void 0 ? false : _a$isFullWidth,
|
24
|
+
restProps = __rest(_a, ["hCenterAlignWide", "isFullWidth"]);
|
34
25
|
return /*#__PURE__*/React.createElement("div", {
|
35
26
|
className: cn()
|
36
27
|
}, /*#__PURE__*/React.createElement(Grid, {
|
@@ -48,38 +39,4 @@ var AccordionBox = function AccordionBox(_a) {
|
|
48
39
|
}
|
49
40
|
}), /*#__PURE__*/React.createElement(Accordion, restProps))));
|
50
41
|
};
|
51
|
-
|
52
|
-
AccordionBox.propTypes = {
|
53
|
-
dataAttrs: PropTypes.shape({
|
54
|
-
root: PropTypes.objectOf(PropTypes.string.isRequired),
|
55
|
-
header: PropTypes.shape({
|
56
|
-
root: PropTypes.objectOf(PropTypes.string.isRequired)
|
57
|
-
}),
|
58
|
-
collapse: PropTypes.shape({
|
59
|
-
root: PropTypes.objectOf(PropTypes.string.isRequired),
|
60
|
-
inner: PropTypes.objectOf(PropTypes.string.isRequired)
|
61
|
-
}),
|
62
|
-
titleWrap: PropTypes.objectOf(PropTypes.string.isRequired),
|
63
|
-
arrowUp: PropTypes.objectOf(PropTypes.string.isRequired),
|
64
|
-
arrowDown: PropTypes.objectOf(PropTypes.string.isRequired)
|
65
|
-
}),
|
66
|
-
rootRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
|
67
|
-
current: PropTypes.elementType
|
68
|
-
}), PropTypes.any])]),
|
69
|
-
title: PropTypes.string.isRequired,
|
70
|
-
titleTag: PropTypes.oneOf(['h1', 'h2', 'h3', 'h5']),
|
71
|
-
isFullWidth: PropTypes.bool,
|
72
|
-
isOpened: PropTypes.bool,
|
73
|
-
hasMicrodata: PropTypes.bool,
|
74
|
-
hCenterAlignWide: PropTypes.bool,
|
75
|
-
className: PropTypes.string,
|
76
|
-
classes: PropTypes.shape({
|
77
|
-
openedClass: PropTypes.string,
|
78
|
-
root: PropTypes.string,
|
79
|
-
collapse: PropTypes.string,
|
80
|
-
titleWrap: PropTypes.string,
|
81
|
-
title: PropTypes.string
|
82
|
-
}),
|
83
|
-
onClickAccordion: PropTypes.func
|
84
|
-
};
|
85
42
|
export default AccordionBox;
|
@@ -1,12 +1,11 @@
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
3
|
-
import React from 'react';
|
3
|
+
import * as React from 'react';
|
4
4
|
import { Button } from '@megafon/ui-core';
|
5
5
|
import { cnCreate } from '@megafon/ui-helpers';
|
6
6
|
import AudioProgress from "./AudioProgress";
|
7
7
|
import AudioVolume from "./AudioVolume";
|
8
8
|
import "./style/AudioPlayer.css";
|
9
|
-
|
10
9
|
var IconPause = function IconPause(props) {
|
11
10
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
12
11
|
viewBox: "0 0 32 32"
|
@@ -14,7 +13,6 @@ var IconPause = function IconPause(props) {
|
|
14
13
|
d: "M11 10.5v11a.5.5 0 00.5.5h2a.5.5 0 00.5-.5v-11a.5.5 0 00-.5-.5h-2a.5.5 0 00-.5.5zm7 0v11a.5.5 0 00.5.5h2a.5.5 0 00.5-.5v-11a.5.5 0 00-.5-.5h-2a.5.5 0 00-.5.5z"
|
15
14
|
}));
|
16
15
|
};
|
17
|
-
|
18
16
|
var IconPlay = function IconPlay(props) {
|
19
17
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
20
18
|
viewBox: "0 0 32 32"
|
@@ -22,60 +20,47 @@ var IconPlay = function IconPlay(props) {
|
|
22
20
|
d: "M11.5 22.13V9.87a.5.5 0 01.752-.431l10.508 6.13a.5.5 0 010 .863l-10.508 6.13a.5.5 0 01-.752-.433z"
|
23
21
|
}));
|
24
22
|
};
|
25
|
-
|
26
23
|
var cn = cnCreate('mfui-audio-player');
|
27
|
-
|
28
24
|
var AudioPlayer = function AudioPlayer(_ref) {
|
29
25
|
var audioSrc = _ref.audioSrc,
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
26
|
+
audioTitle = _ref.audioTitle,
|
27
|
+
_ref$position = _ref.position,
|
28
|
+
position = _ref$position === void 0 ? 'center' : _ref$position,
|
29
|
+
isFullWidth = _ref.isFullWidth;
|
34
30
|
var audioRef = React.useRef(null);
|
35
|
-
|
36
31
|
var _React$useState = React.useState(false),
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
32
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
33
|
+
isPlaying = _React$useState2[0],
|
34
|
+
setIsPlaying = _React$useState2[1];
|
41
35
|
var _React$useState3 = React.useState(false),
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
36
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
37
|
+
isPause = _React$useState4[0],
|
38
|
+
setIsPause = _React$useState4[1];
|
46
39
|
var handlePLay = function handlePLay() {
|
47
40
|
var _a;
|
48
|
-
|
49
41
|
setIsPlaying(true);
|
50
42
|
setIsPause(false);
|
51
43
|
(_a = audioRef.current) === null || _a === void 0 ? void 0 : _a.play();
|
52
44
|
};
|
53
|
-
|
54
45
|
var handlePause = function handlePause() {
|
55
46
|
var _a;
|
56
|
-
|
57
47
|
setIsPlaying(false);
|
58
48
|
setIsPause(true);
|
59
49
|
(_a = audioRef.current) === null || _a === void 0 ? void 0 : _a.pause();
|
60
50
|
};
|
61
|
-
|
62
51
|
var handleChangeAudioCurrentTime = function handleChangeAudioCurrentTime(currentTime) {
|
63
52
|
if (!audioRef || !audioRef.current) {
|
64
53
|
return;
|
65
54
|
}
|
66
|
-
|
67
55
|
audioRef.current.currentTime = currentTime;
|
68
56
|
};
|
69
|
-
|
70
57
|
var handleChangeAudioVolume = function handleChangeAudioVolume(volume) {
|
71
58
|
if (!audioRef || !audioRef.current) {
|
72
59
|
return;
|
73
60
|
}
|
74
|
-
|
75
61
|
audioRef.current.volume = volume;
|
76
62
|
audioRef.current.muted = !volume;
|
77
63
|
};
|
78
|
-
|
79
64
|
var playingIconHandleClick = React.useMemo(function () {
|
80
65
|
return isPlaying ? handlePause : handlePLay;
|
81
66
|
}, [isPlaying]);
|
@@ -119,5 +104,4 @@ var AudioPlayer = function AudioPlayer(_ref) {
|
|
119
104
|
onChangeAudioVolume: handleChangeAudioVolume
|
120
105
|
})));
|
121
106
|
};
|
122
|
-
|
123
107
|
export default AudioPlayer;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
2
|
-
import "core-js/modules/web.timers.js";
|
3
2
|
import "core-js/modules/es.number.constructor.js";
|
3
|
+
import "core-js/modules/web.timers.js";
|
4
4
|
import React from 'react';
|
5
5
|
import { cnCreate } from '@megafon/ui-helpers';
|
6
6
|
import AudioRange from "./AudioRange";
|
@@ -9,22 +9,19 @@ import timerFormat from "./timerFormatUtil";
|
|
9
9
|
import "./style/AudioProgress.css";
|
10
10
|
export var INTERVAL_DELAY = 1000;
|
11
11
|
var cn = cnCreate('mfui-audio-progress');
|
12
|
-
|
13
12
|
var AudioProgress = function AudioProgress(_ref) {
|
14
13
|
var audioRef = _ref.audioRef,
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
14
|
+
audioTitle = _ref.audioTitle,
|
15
|
+
isPlaying = _ref.isPlaying,
|
16
|
+
isPause = _ref.isPause,
|
17
|
+
onChangeAudioCurrentTime = _ref.onChangeAudioCurrentTime,
|
18
|
+
onPlay = _ref.onPlay,
|
19
|
+
onSetIsPlaying = _ref.onSetIsPlaying;
|
21
20
|
var intervalId = React.useRef(null);
|
22
|
-
|
23
21
|
var _React$useState = React.useState(0),
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
22
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
23
|
+
trackProgress = _React$useState2[0],
|
24
|
+
setTrackProgress = _React$useState2[1];
|
28
25
|
var trackDuration = useTrackDuration(audioRef);
|
29
26
|
var progressColorPercent = React.useMemo(function () {
|
30
27
|
return trackProgress / trackDuration * 100;
|
@@ -36,41 +33,33 @@ var AudioProgress = function AudioProgress(_ref) {
|
|
36
33
|
intervalId.current && clearInterval(intervalId.current);
|
37
34
|
intervalId.current = setInterval(function () {
|
38
35
|
var _a, _b, _c;
|
39
|
-
|
40
36
|
if ((_a = audioRef.current) === null || _a === void 0 ? void 0 : _a.ended) {
|
41
37
|
onSetIsPlaying === null || onSetIsPlaying === void 0 ? void 0 : onSetIsPlaying(false);
|
42
38
|
setTrackProgress(Math.floor(((_b = audioRef.current) === null || _b === void 0 ? void 0 : _b.duration) || 0));
|
43
39
|
return;
|
44
40
|
}
|
45
|
-
|
46
41
|
setTrackProgress(Math.floor(((_c = audioRef.current) === null || _c === void 0 ? void 0 : _c.currentTime) || 0));
|
47
42
|
}, INTERVAL_DELAY);
|
48
43
|
}, [audioRef, onSetIsPlaying]);
|
49
|
-
|
50
44
|
var handleScrubProgress = function handleScrubProgress(e) {
|
51
45
|
var currentTime = Number(e.target.value);
|
52
46
|
setTrackProgress(currentTime);
|
53
47
|
onChangeAudioCurrentTime === null || onChangeAudioCurrentTime === void 0 ? void 0 : onChangeAudioCurrentTime(currentTime);
|
54
48
|
};
|
55
|
-
|
56
49
|
var handleScrubEndProgress = function handleScrubEndProgress() {
|
57
50
|
if (!isPlaying) {
|
58
51
|
onPlay === null || onPlay === void 0 ? void 0 : onPlay();
|
59
52
|
}
|
60
|
-
|
61
53
|
handleStartTimer();
|
62
54
|
};
|
63
|
-
|
64
55
|
React.useEffect(function () {
|
65
56
|
var _a;
|
66
|
-
|
67
57
|
setTrackProgress(Math.floor(((_a = audioRef === null || audioRef === void 0 ? void 0 : audioRef.current) === null || _a === void 0 ? void 0 : _a.currentTime) || 0));
|
68
58
|
}, [audioRef]);
|
69
59
|
React.useEffect(function () {
|
70
60
|
if (isPlaying) {
|
71
61
|
handleStartTimer();
|
72
62
|
}
|
73
|
-
|
74
63
|
if (isPause) {
|
75
64
|
intervalId.current && clearInterval(intervalId.current);
|
76
65
|
}
|
@@ -104,5 +93,4 @@ var AudioProgress = function AudioProgress(_ref) {
|
|
104
93
|
}
|
105
94
|
})));
|
106
95
|
};
|
107
|
-
|
108
96
|
export default AudioProgress;
|
@@ -3,17 +3,16 @@ import React from 'react';
|
|
3
3
|
import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
4
4
|
import "./style/AudioRange.css";
|
5
5
|
var cn = cnCreate('mfui-audio-range');
|
6
|
-
|
7
6
|
var AudioRange = function AudioRange(_ref) {
|
8
7
|
var className = _ref.className,
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
8
|
+
maxValue = _ref.maxValue,
|
9
|
+
value = _ref.value,
|
10
|
+
step = _ref.step,
|
11
|
+
colorPercent = _ref.colorPercent,
|
12
|
+
onChange = _ref.onChange,
|
13
|
+
onMouseUp = _ref.onMouseUp,
|
14
|
+
onTouchEnd = _ref.onTouchEnd,
|
15
|
+
dataAttrs = _ref.dataAttrs;
|
17
16
|
return /*#__PURE__*/React.createElement("input", _extends({
|
18
17
|
className: cn([className]),
|
19
18
|
style: {
|
@@ -29,5 +28,4 @@ var AudioRange = function AudioRange(_ref) {
|
|
29
28
|
onTouchEnd: onTouchEnd
|
30
29
|
}, filterDataAttrs(dataAttrs)));
|
31
30
|
};
|
32
|
-
|
33
31
|
export default AudioRange;
|
@@ -6,7 +6,6 @@ import { Tooltip } from '@megafon/ui-core';
|
|
6
6
|
import { cnCreate } from '@megafon/ui-helpers';
|
7
7
|
import AudioRange from "./AudioRange";
|
8
8
|
import "./style/AudioVolume.css";
|
9
|
-
|
10
9
|
var NoVolumeIcon = function NoVolumeIcon(props) {
|
11
10
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
12
11
|
viewBox: "0 0 24 24"
|
@@ -16,7 +15,6 @@ var NoVolumeIcon = function NoVolumeIcon(props) {
|
|
16
15
|
d: "M16.094 10.174c.261.56.406 1.177.406 1.826 0 1.426-.7 2.701-1.8 3.548-.3.23-.7-.004-.7-.382v-3.152l2.094-1.84zm-1.225-1.586L14 9.35v-.517c0-.378.4-.613.7-.382.058.044.114.09.169.136zm1.923-1.69a6.998 6.998 0 00-2.438-1.491.525.525 0 01-.354-.489V3.849c0-.32.299-.559.606-.466a8.994 8.994 0 013.694 2.19l-1.508 1.325zM12 11.108V5.36a.5.5 0 00-.342-.474l-.822-.274a.5.5 0 00-.553.167L7.15 8.807A.5.5 0 016.756 9H3.707a.5.5 0 00-.353.146l-.207.208A.5.5 0 003 9.707v4.586a.5.5 0 00.147.353l.207.208a.5.5 0 00.353.146h3.049a.5.5 0 01.394.193l.082.105L12 11.108zM8.462 16.88l1.82 2.34a.5.5 0 00.554.168l.822-.274A.5.5 0 0012 18.64v-4.87l-3.538 3.11zm-5.488 3.563a.5.5 0 01.046-.705L21.497 3.503a.5.5 0 11.66.751L3.68 20.49a.5.5 0 01-.706-.046z"
|
17
16
|
}));
|
18
17
|
};
|
19
|
-
|
20
18
|
var VolumeIcon = function VolumeIcon(props) {
|
21
19
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
22
20
|
viewBox: "0 0 24 24"
|
@@ -26,28 +24,22 @@ var VolumeIcon = function VolumeIcon(props) {
|
|
26
24
|
d: "M16.5 12c0 1.426-.7 2.701-1.8 3.548-.3.23-.7-.004-.7-.382V8.834c0-.378.4-.613.7-.382 1.1.847 1.8 2.122 1.8 3.548z"
|
27
25
|
}));
|
28
26
|
};
|
29
|
-
|
30
27
|
var cn = cnCreate('mfui-audio-volume');
|
31
|
-
|
32
28
|
var AudioVolume = function AudioVolume(_ref) {
|
33
29
|
var onChangeAudioVolume = _ref.onChangeAudioVolume;
|
34
30
|
var tooltipTrigger = React.useRef(null);
|
35
|
-
|
36
31
|
var _React$useState = React.useState(0.3),
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
32
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
33
|
+
trackVolume = _React$useState2[0],
|
34
|
+
setTrackVolume = _React$useState2[1];
|
41
35
|
var volumeColorPercent = React.useMemo(function () {
|
42
36
|
return trackVolume * 100;
|
43
37
|
}, [trackVolume]);
|
44
|
-
|
45
38
|
var handleScrubVolume = function handleScrubVolume(e) {
|
46
39
|
var currentVolume = Number(e.target.value);
|
47
40
|
setTrackVolume(currentVolume);
|
48
41
|
onChangeAudioVolume === null || onChangeAudioVolume === void 0 ? void 0 : onChangeAudioVolume(currentVolume);
|
49
42
|
};
|
50
|
-
|
51
43
|
return /*#__PURE__*/React.createElement("div", {
|
52
44
|
className: cn()
|
53
45
|
}, /*#__PURE__*/React.createElement("div", {
|
@@ -82,5 +74,4 @@ var AudioVolume = function AudioVolume(_ref) {
|
|
82
74
|
}
|
83
75
|
})));
|
84
76
|
};
|
85
|
-
|
86
77
|
export default AudioVolume;
|
@@ -1,22 +1,17 @@
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
2
2
|
import React from 'react';
|
3
|
-
|
4
3
|
var useTrackDuration = function useTrackDuration(audioRef) {
|
5
4
|
var _React$useState = React.useState(0),
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
6
|
+
trackDuration = _React$useState2[0],
|
7
|
+
setTrackDuration = _React$useState2[1];
|
10
8
|
React.useEffect(function () {
|
11
9
|
var audioNode = audioRef.current;
|
12
|
-
|
13
10
|
if (!audioNode) {
|
14
11
|
return;
|
15
12
|
}
|
16
|
-
|
17
13
|
var readyState = audioNode.readyState,
|
18
|
-
|
19
|
-
|
14
|
+
duration = audioNode.duration;
|
20
15
|
if (readyState > 0) {
|
21
16
|
setTrackDuration(Math.round(duration));
|
22
17
|
} else {
|
@@ -28,5 +23,4 @@ var useTrackDuration = function useTrackDuration(audioRef) {
|
|
28
23
|
}, [audioRef]);
|
29
24
|
return trackDuration;
|
30
25
|
};
|
31
|
-
|
32
26
|
export default useTrackDuration;
|
@@ -1,58 +1 @@
|
|
1
|
-
h1,
|
2
|
-
h2,
|
3
|
-
h3,
|
4
|
-
h4,
|
5
|
-
h5 {
|
6
|
-
margin: 0;
|
7
|
-
}
|
8
|
-
.mfui-audio-player {
|
9
|
-
margin-top: 24px;
|
10
|
-
}
|
11
|
-
.mfui-audio-player__player {
|
12
|
-
display: -webkit-box;
|
13
|
-
display: -ms-flexbox;
|
14
|
-
display: flex;
|
15
|
-
-webkit-box-align: center;
|
16
|
-
-ms-flex-align: center;
|
17
|
-
align-items: center;
|
18
|
-
-webkit-box-pack: justify;
|
19
|
-
-ms-flex-pack: justify;
|
20
|
-
justify-content: space-between;
|
21
|
-
-webkit-box-sizing: border-box;
|
22
|
-
box-sizing: border-box;
|
23
|
-
padding: 16px;
|
24
|
-
border-radius: 12px;
|
25
|
-
background: var(--spbSky0);
|
26
|
-
}
|
27
|
-
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
28
|
-
.mfui-audio-player__player {
|
29
|
-
max-width: 530px;
|
30
|
-
}
|
31
|
-
}
|
32
|
-
@media screen and (min-width: 1024px) {
|
33
|
-
.mfui-audio-player__player {
|
34
|
-
max-width: 550px;
|
35
|
-
}
|
36
|
-
}
|
37
|
-
.mfui-audio-player__playing-controls {
|
38
|
-
margin-right: 16px;
|
39
|
-
}
|
40
|
-
.mfui-audio-player_position_center .mfui-audio-player__player {
|
41
|
-
margin: 0 auto;
|
42
|
-
}
|
43
|
-
.mfui-audio-player_position_left .mfui-audio-player__player {
|
44
|
-
margin-right: auto;
|
45
|
-
}
|
46
|
-
.mfui-audio-player_position_right .mfui-audio-player__player {
|
47
|
-
margin-left: auto;
|
48
|
-
}
|
49
|
-
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
50
|
-
.mfui-audio-player_full-width .mfui-audio-player__player {
|
51
|
-
max-width: 100%;
|
52
|
-
}
|
53
|
-
}
|
54
|
-
@media screen and (min-width: 1024px) {
|
55
|
-
.mfui-audio-player_full-width .mfui-audio-player__player {
|
56
|
-
max-width: 100%;
|
57
|
-
}
|
58
|
-
}
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-audio-player{margin-top:24px}.mfui-audio-player__player{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;background:var(--spbSky0);border-radius:12px;-webkit-box-sizing:border-box;box-sizing:border-box;justify-content:space-between;padding:16px}@media screen and (min-width:768px) and (max-width:1023px){.mfui-audio-player__player{max-width:530px}}@media screen and (min-width:1024px){.mfui-audio-player__player{max-width:550px}}.mfui-audio-player__playing-controls{margin-right:16px}.mfui-audio-player_position_center .mfui-audio-player__player{margin:0 auto}.mfui-audio-player_position_left .mfui-audio-player__player{margin-right:auto}.mfui-audio-player_position_right .mfui-audio-player__player{margin-left:auto}@media screen and (min-width:768px) and (max-width:1023px){.mfui-audio-player_full-width .mfui-audio-player__player{max-width:100%}}@media screen and (min-width:1024px){.mfui-audio-player_full-width .mfui-audio-player__player{max-width:100%}}
|
@@ -1,35 +1 @@
|
|
1
|
-
h1,
|
2
|
-
h2,
|
3
|
-
h3,
|
4
|
-
h4,
|
5
|
-
h5 {
|
6
|
-
margin: 0;
|
7
|
-
}
|
8
|
-
.mfui-audio-progress {
|
9
|
-
width: 100%;
|
10
|
-
margin-right: 16px;
|
11
|
-
}
|
12
|
-
.mfui-audio-progress__info {
|
13
|
-
display: -webkit-box;
|
14
|
-
display: -ms-flexbox;
|
15
|
-
display: flex;
|
16
|
-
-webkit-box-align: center;
|
17
|
-
-ms-flex-align: center;
|
18
|
-
align-items: center;
|
19
|
-
-webkit-box-pack: justify;
|
20
|
-
-ms-flex-pack: justify;
|
21
|
-
justify-content: space-between;
|
22
|
-
}
|
23
|
-
.mfui-audio-progress__value {
|
24
|
-
color: var(-spbSky3);
|
25
|
-
font-size: 12px;
|
26
|
-
line-height: 18px;
|
27
|
-
}
|
28
|
-
.mfui-audio-progress__range-wrapper {
|
29
|
-
margin-top: -2px;
|
30
|
-
}
|
31
|
-
.mfui-audio-progress__title {
|
32
|
-
color: var(--stcBlack);
|
33
|
-
font-size: 12px;
|
34
|
-
line-height: 18px;
|
35
|
-
}
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-audio-progress{margin-right:16px;width:100%}.mfui-audio-progress__info{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.mfui-audio-progress__value{color:var(-spbSky3);font-size:12px;line-height:18px}.mfui-audio-progress__range-wrapper{margin-top:-2px}.mfui-audio-progress__title{color:var(--stcBlack);font-size:12px;line-height:18px}
|
@@ -1,68 +1 @@
|
|
1
|
-
h1,
|
2
|
-
h2,
|
3
|
-
h3,
|
4
|
-
h4,
|
5
|
-
h5 {
|
6
|
-
margin: 0;
|
7
|
-
}
|
8
|
-
.mfui-audio-range {
|
9
|
-
width: 100%;
|
10
|
-
height: 4px;
|
11
|
-
border-radius: 2px;
|
12
|
-
background: var(--spbSky2);
|
13
|
-
background-image: -webkit-gradient(linear, left top, left bottom, from(#00B956), to(#00B956));
|
14
|
-
background-image: linear-gradient(#00B956, #00B956);
|
15
|
-
background-repeat: no-repeat;
|
16
|
-
cursor: pointer;
|
17
|
-
-webkit-appearance: none;
|
18
|
-
}
|
19
|
-
.mfui-audio-range:focus {
|
20
|
-
outline: none;
|
21
|
-
}
|
22
|
-
.mfui-audio-range::-webkit-slider-thumb {
|
23
|
-
width: 16px;
|
24
|
-
height: 16px;
|
25
|
-
border: none;
|
26
|
-
border-radius: 50%;
|
27
|
-
background: var(--stcWhite);
|
28
|
-
-webkit-box-shadow: 0 2px 9px rgba(0, 0, 0, 0.15);
|
29
|
-
box-shadow: 0 2px 9px rgba(0, 0, 0, 0.15);
|
30
|
-
-webkit-appearance: none;
|
31
|
-
}
|
32
|
-
.mfui-audio-range::-moz-range-thumb {
|
33
|
-
width: 16px;
|
34
|
-
height: 16px;
|
35
|
-
border: none;
|
36
|
-
border-radius: 50%;
|
37
|
-
background: var(--stcWhite);
|
38
|
-
box-shadow: 0 2px 9px rgba(0, 0, 0, 0.15);
|
39
|
-
-webkit-appearance: none;
|
40
|
-
}
|
41
|
-
.mfui-audio-range::-ms-thumb {
|
42
|
-
width: 16px;
|
43
|
-
height: 16px;
|
44
|
-
border: none;
|
45
|
-
border-radius: 50%;
|
46
|
-
background: var(--stcWhite);
|
47
|
-
box-shadow: 0 2px 9px rgba(0, 0, 0, 0.15);
|
48
|
-
-webkit-appearance: none;
|
49
|
-
}
|
50
|
-
.mfui-audio-range::-webkit-slider-runnable-track {
|
51
|
-
border: none;
|
52
|
-
background: transparent;
|
53
|
-
-webkit-box-shadow: none;
|
54
|
-
box-shadow: none;
|
55
|
-
-webkit-appearance: none;
|
56
|
-
}
|
57
|
-
.mfui-audio-range::-moz-range-track {
|
58
|
-
border: none;
|
59
|
-
background: transparent;
|
60
|
-
box-shadow: none;
|
61
|
-
-webkit-appearance: none;
|
62
|
-
}
|
63
|
-
.mfui-audio-range::-ms-track {
|
64
|
-
border: none;
|
65
|
-
background: transparent;
|
66
|
-
box-shadow: none;
|
67
|
-
-webkit-appearance: none;
|
68
|
-
}
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-audio-range{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--spbSky2);background-image:-webkit-gradient(linear,left top,left bottom,from(#00b956),to(#00b956));background-image:linear-gradient(#00b956,#00b956);background-repeat:no-repeat;border-radius:2px;cursor:pointer;height:4px;width:100%}.mfui-audio-range:focus{outline:none}.mfui-audio-range::-webkit-slider-thumb{-webkit-appearance:none;background:var(--stcWhite);border:none;border-radius:50%;-webkit-box-shadow:0 2px 9px fade(#000,15%);box-shadow:0 2px 9px fade(#000,15%);height:16px;width:16px}.mfui-audio-range::-moz-range-thumb{-webkit-appearance:none;background:var(--stcWhite);border:none;border-radius:50%;box-shadow:0 2px 9px fade(#000,15%);height:16px;width:16px}.mfui-audio-range::-ms-thumb{-webkit-appearance:none;background:var(--stcWhite);border:none;border-radius:50%;box-shadow:0 2px 9px fade(#000,15%);height:16px;width:16px}.mfui-audio-range::-webkit-slider-runnable-track{-webkit-appearance:none;background:transparent;border:none;-webkit-box-shadow:none;box-shadow:none}.mfui-audio-range::-moz-range-track{-webkit-appearance:none;background:transparent;border:none;box-shadow:none}.mfui-audio-range::-ms-track{-webkit-appearance:none;background:transparent;border:none;box-shadow:none}
|
@@ -1,34 +1 @@
|
|
1
|
-
h1,
|
2
|
-
h2,
|
3
|
-
h3,
|
4
|
-
h4,
|
5
|
-
h5 {
|
6
|
-
margin: 0;
|
7
|
-
}
|
8
|
-
.mfui-audio-volume {
|
9
|
-
width: 24px;
|
10
|
-
}
|
11
|
-
.mfui-audio-volume__tooltip-content {
|
12
|
-
padding: 7px 16px 14px;
|
13
|
-
border-radius: 12px;
|
14
|
-
}
|
15
|
-
.mfui-audio-volume__tooltip-content-shadow {
|
16
|
-
border-radius: 12px;
|
17
|
-
}
|
18
|
-
.mfui-audio-volume__icon {
|
19
|
-
display: none;
|
20
|
-
width: 24px;
|
21
|
-
min-width: 24px;
|
22
|
-
height: 24px;
|
23
|
-
cursor: pointer;
|
24
|
-
fill: var(--brandGreen);
|
25
|
-
}
|
26
|
-
.mfui-audio-volume__icon_visible {
|
27
|
-
display: block;
|
28
|
-
}
|
29
|
-
.mfui-audio-volume__icon:hover {
|
30
|
-
fill: var(--buttonHoverGreen);
|
31
|
-
}
|
32
|
-
.mfui-audio-volume__range {
|
33
|
-
max-width: 128px;
|
34
|
-
}
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-audio-volume{width:24px}.mfui-audio-volume__tooltip-content{border-radius:12px;padding:7px 16px 14px}.mfui-audio-volume__tooltip-content-shadow{border-radius:12px}.mfui-audio-volume__icon{cursor:pointer;display:none;height:24px;min-width:24px;width:24px;fill:var(--brandGreen)}.mfui-audio-volume__icon_visible{display:block}.mfui-audio-volume__icon:hover{fill:var(--buttonHoverGreen)}.mfui-audio-volume__range{max-width:128px}
|