@megafon/ui-shared 6.0.0-beta.4 → 6.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/CHANGELOG.md +4031 -0
- package/dist/es/components/AccordionBox/AccordionBox.css +15 -1
- package/dist/es/components/AccordionBox/AccordionBox.d.ts +2 -2
- package/dist/es/components/AccordionBox/AccordionBox.js +49 -6
- package/dist/es/components/AudioPlayer/AudioPlayer.d.ts +2 -2
- package/dist/es/components/AudioPlayer/AudioPlayer.js +27 -11
- package/dist/es/components/AudioPlayer/AudioProgress.d.ts +1 -1
- package/dist/es/components/AudioPlayer/AudioProgress.js +22 -10
- package/dist/es/components/AudioPlayer/AudioRange.d.ts +1 -1
- package/dist/es/components/AudioPlayer/AudioRange.js +10 -8
- package/dist/es/components/AudioPlayer/AudioVolume.d.ts +1 -1
- package/dist/es/components/AudioPlayer/AudioVolume.js +12 -3
- package/dist/es/components/AudioPlayer/hooks/useTrackDuration.js +10 -4
- package/dist/es/components/AudioPlayer/style/AudioPlayer.css +58 -1
- package/dist/es/components/AudioPlayer/style/AudioProgress.css +35 -1
- package/dist/es/components/AudioPlayer/style/AudioRange.css +68 -1
- package/dist/es/components/AudioPlayer/style/AudioVolume.css +34 -1
- package/dist/es/components/AudioPlayer/timerFormatUtil.js +9 -1
- package/dist/es/components/BannerBox/BannerBox.d.ts +1 -1
- package/dist/es/components/BannerBox/BannerBox.js +12 -3
- package/dist/es/components/BenefitsIcons/BenefitsIcons.d.ts +1 -1
- package/dist/es/components/BenefitsIcons/BenefitsIcons.js +64 -23
- package/dist/es/components/BenefitsIcons/BenefitsIconsTile.d.ts +1 -1
- package/dist/es/components/BenefitsIcons/BenefitsIconsTile.js +36 -9
- package/dist/es/components/BenefitsIcons/helpers.d.ts +3 -3
- package/dist/es/components/BenefitsIcons/helpers.js +20 -6
- package/dist/es/components/BenefitsIcons/style/BenefitsIcons.css +38 -1
- package/dist/es/components/BenefitsIcons/style/BenefitsIconsTile.css +90 -1
- package/dist/es/components/BenefitsIcons/types.d.ts +5 -5
- package/dist/es/components/BenefitsPictures/BenefitsPictures.d.ts +1 -1
- package/dist/es/components/BenefitsPictures/BenefitsPictures.js +49 -19
- package/dist/es/components/BenefitsPictures/BenfitsPictures.css +43 -1
- package/dist/es/components/BenefitsPictures/helpers.d.ts +2 -2
- package/dist/es/components/BenefitsPictures/helpers.js +14 -0
- package/dist/es/components/BenefitsPictures/types.d.ts +3 -3
- package/dist/es/components/BenefitsPictures/types.js +0 -1
- package/dist/es/components/Breadcrumbs/Breadcrumbs.css +43 -1
- package/dist/es/components/Breadcrumbs/Breadcrumbs.d.ts +6 -6
- package/dist/es/components/Breadcrumbs/Breadcrumbs.js +39 -10
- package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.css +16 -1
- package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.d.ts +4 -4
- package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.js +36 -11
- package/dist/es/components/ButtonBanner/ButtonBanner.css +122 -1
- package/dist/es/components/ButtonBanner/ButtonBanner.d.ts +7 -7
- package/dist/es/components/ButtonBanner/ButtonBanner.js +53 -22
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.css +19 -1
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.d.ts +3 -3
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.js +51 -20
- package/dist/es/components/Card/Card.css +354 -1
- package/dist/es/components/Card/Card.d.ts +4 -4
- package/dist/es/components/Card/Card.js +115 -25
- package/dist/es/components/Card/types.d.ts +10 -10
- package/dist/es/components/Card/types.js +0 -1
- package/dist/es/components/CardsBox/CardsBox.js +14 -3
- package/dist/es/components/CardsBox/helpers.d.ts +2 -2
- package/dist/es/components/CardsBox/helpers.js +4 -0
- package/dist/es/components/CarouselBox/CarouselBox.d.ts +2 -2
- package/dist/es/components/CarouselBox/CarouselBox.js +24 -11
- package/dist/es/components/Container/Container.css +3287 -1
- package/dist/es/components/Container/Container.d.ts +5 -7
- package/dist/es/components/Container/Container.js +25 -10
- package/dist/es/components/DownloadLinks/DownloadLink.css +37 -1
- package/dist/es/components/DownloadLinks/DownloadLink.d.ts +1 -1
- package/dist/es/components/DownloadLinks/DownloadLink.js +44 -13
- package/dist/es/components/DownloadLinks/DownloadLinks.css +36 -1
- package/dist/es/components/DownloadLinks/DownloadLinks.d.ts +3 -3
- package/dist/es/components/DownloadLinks/DownloadLinks.js +13 -2
- package/dist/es/components/FaqWrapper/FaqWrapper.d.ts +2 -5
- package/dist/es/components/FaqWrapper/FaqWrapper.js +3 -1
- package/dist/es/components/ImageBanner/ImageBanner.css +252 -1
- package/dist/es/components/ImageBanner/ImageBanner.d.ts +7 -8
- package/dist/es/components/ImageBanner/ImageBanner.js +88 -37
- package/dist/es/components/Instructions/Instructions.css +790 -1
- package/dist/es/components/Instructions/Instructions.d.ts +11 -11
- package/dist/es/components/Instructions/Instructions.js +94 -41
- package/dist/es/components/NotificationBox/NotificationBox.d.ts +4 -4
- package/dist/es/components/NotificationBox/NotificationBox.js +19 -5
- package/dist/es/components/NotificationBox/style/NotificationBox.css +28 -0
- package/dist/es/components/PageTitle/PageTitle.css +80 -1
- package/dist/es/components/PageTitle/PageTitle.d.ts +2 -2
- package/dist/es/components/PageTitle/PageTitle.js +37 -12
- package/dist/es/components/Partners/Partners.css +53 -1
- package/dist/es/components/Partners/Partners.d.ts +2 -2
- package/dist/es/components/Partners/Partners.js +48 -17
- package/dist/es/components/PictureWithDescription/PictureWithDescription.css +80 -1
- package/dist/es/components/PictureWithDescription/PictureWithDescription.d.ts +2 -4
- package/dist/es/components/PictureWithDescription/PictureWithDescription.js +28 -10
- package/dist/es/components/Property/Property.css +156 -1
- package/dist/es/components/Property/Property.d.ts +4 -4
- package/dist/es/components/Property/Property.js +81 -37
- package/dist/es/components/Property/PropertyDescription.css +17 -1
- package/dist/es/components/Property/PropertyDescription.d.ts +3 -3
- package/dist/es/components/Property/PropertyDescription.js +28 -8
- package/dist/es/components/Property/types.d.ts +5 -7
- package/dist/es/components/Property/types.js +0 -1
- package/dist/es/components/Steps/Steps.css +41 -1
- package/dist/es/components/Steps/Steps.d.ts +1 -2
- package/dist/es/components/Steps/Steps.js +19 -4
- package/dist/es/components/Steps/StepsItem.css +42 -1
- package/dist/es/components/Steps/StepsItem.d.ts +2 -2
- package/dist/es/components/Steps/StepsItem.js +9 -2
- package/dist/es/components/StoreBanner/StoreBanner.css +346 -1
- package/dist/es/components/StoreBanner/StoreBanner.d.ts +5 -5
- package/dist/es/components/StoreBanner/StoreBanner.js +97 -41
- 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/es/components/StoreButton/StoreButton.css +327 -1
- package/dist/es/components/StoreButton/StoreButton.d.ts +3 -3
- package/dist/es/components/StoreButton/StoreButton.js +44 -13
- package/dist/es/components/Table/Table.css +157 -1
- package/dist/es/components/Table/Table.d.ts +1 -1
- package/dist/es/components/Table/Table.js +51 -31
- package/dist/es/components/Table/TableCell.js +6 -0
- package/dist/es/components/Table/TableRow.js +10 -1
- package/dist/es/components/TabsBox/TabsBox.d.ts +1 -1
- package/dist/es/components/TabsBox/TabsBox.js +13 -4
- package/dist/es/components/TextBox/TextBox.css +25 -1
- package/dist/es/components/TextBox/TextBox.d.ts +1 -2
- package/dist/es/components/TextBox/TextBox.js +23 -8
- package/dist/es/components/TextBox/TextBoxPicture.css +27 -1
- package/dist/es/components/TextBox/TextBoxPicture.d.ts +2 -2
- package/dist/es/components/TextBox/TextBoxPicture.js +14 -5
- package/dist/es/components/TextWithIcon/TextWithIcon.css +10 -1
- package/dist/es/components/TextWithIcon/TextWithIcon.d.ts +1 -1
- package/dist/es/components/TextWithIcon/TextWithIcon.js +24 -6
- package/dist/es/components/TextWithIcon/TextWithIconItem.css +29 -1
- package/dist/es/components/TextWithIcon/TextWithIconItem.d.ts +1 -1
- package/dist/es/components/TextWithIcon/TextWithIconItem.js +21 -6
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.css +31 -1
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +1 -1
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.js +23 -6
- package/dist/es/components/VideoBanner/VideoBanner.css +225 -1
- package/dist/es/components/VideoBanner/VideoBanner.d.ts +7 -7
- package/dist/es/components/VideoBanner/VideoBanner.js +110 -47
- package/dist/es/components/VideoBlock/VideoBlock.css +106 -1
- package/dist/es/components/VideoBlock/VideoBlock.d.ts +4 -4
- package/dist/es/components/VideoBlock/VideoBlock.js +75 -35
- package/dist/es/helpers/getColumnConfig.d.ts +1 -5
- package/dist/lib/components/AccordionBox/AccordionBox.css +15 -1
- package/dist/lib/components/AccordionBox/AccordionBox.d.ts +2 -2
- package/dist/lib/components/AccordionBox/AccordionBox.js +66 -10
- package/dist/lib/components/AudioPlayer/AudioPlayer.d.ts +2 -2
- package/dist/lib/components/AudioPlayer/AudioPlayer.js +56 -32
- package/dist/lib/components/AudioPlayer/AudioProgress.d.ts +1 -1
- package/dist/lib/components/AudioPlayer/AudioProgress.js +43 -12
- package/dist/lib/components/AudioPlayer/AudioRange.d.ts +1 -1
- package/dist/lib/components/AudioPlayer/AudioRange.js +17 -9
- package/dist/lib/components/AudioPlayer/AudioVolume.d.ts +1 -1
- package/dist/lib/components/AudioPlayer/AudioVolume.js +23 -4
- package/dist/lib/components/AudioPlayer/hooks/useTrackDuration.js +16 -5
- package/dist/lib/components/AudioPlayer/style/AudioPlayer.css +58 -1
- package/dist/lib/components/AudioPlayer/style/AudioProgress.css +35 -1
- package/dist/lib/components/AudioPlayer/style/AudioRange.css +68 -1
- package/dist/lib/components/AudioPlayer/style/AudioVolume.css +34 -1
- package/dist/lib/components/AudioPlayer/timerFormatUtil.js +13 -2
- package/dist/lib/components/BannerBox/BannerBox.d.ts +1 -1
- package/dist/lib/components/BannerBox/BannerBox.js +25 -7
- package/dist/lib/components/BenefitsIcons/BenefitsIcons.d.ts +1 -1
- package/dist/lib/components/BenefitsIcons/BenefitsIcons.js +86 -26
- package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.d.ts +1 -1
- package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.js +53 -13
- package/dist/lib/components/BenefitsIcons/helpers.d.ts +3 -3
- package/dist/lib/components/BenefitsIcons/helpers.js +37 -10
- package/dist/lib/components/BenefitsIcons/style/BenefitsIcons.css +38 -1
- package/dist/lib/components/BenefitsIcons/style/BenefitsIconsTile.css +90 -1
- package/dist/lib/components/BenefitsIcons/types.d.ts +5 -5
- package/dist/lib/components/BenefitsIcons/types.js +8 -5
- package/dist/lib/components/BenefitsPictures/BenefitsPictures.d.ts +1 -1
- package/dist/lib/components/BenefitsPictures/BenefitsPictures.js +71 -24
- package/dist/lib/components/BenefitsPictures/BenfitsPictures.css +43 -1
- package/dist/lib/components/BenefitsPictures/helpers.d.ts +2 -2
- package/dist/lib/components/BenefitsPictures/helpers.js +40 -9
- package/dist/lib/components/BenefitsPictures/types.d.ts +3 -3
- package/dist/lib/components/BenefitsPictures/types.js +1 -5
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.css +43 -1
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.d.ts +6 -6
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.js +60 -18
- package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.css +16 -1
- package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.d.ts +4 -4
- package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.js +55 -22
- package/dist/lib/components/ButtonBanner/ButtonBanner.css +122 -1
- package/dist/lib/components/ButtonBanner/ButtonBanner.d.ts +7 -7
- package/dist/lib/components/ButtonBanner/ButtonBanner.js +89 -40
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.css +19 -1
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.d.ts +3 -3
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.js +72 -29
- package/dist/lib/components/Card/Card.css +354 -1
- package/dist/lib/components/Card/Card.d.ts +4 -4
- package/dist/lib/components/Card/Card.js +164 -67
- package/dist/lib/components/Card/types.d.ts +10 -10
- package/dist/lib/components/Card/types.js +1 -5
- package/dist/lib/components/CardsBox/CardsBox.js +31 -7
- package/dist/lib/components/CardsBox/helpers.d.ts +2 -2
- package/dist/lib/components/CardsBox/helpers.js +8 -1
- package/dist/lib/components/CarouselBox/CarouselBox.d.ts +2 -2
- package/dist/lib/components/CarouselBox/CarouselBox.js +39 -15
- package/dist/lib/components/Container/Container.css +3287 -1
- package/dist/lib/components/Container/Container.d.ts +5 -7
- package/dist/lib/components/Container/Container.js +40 -18
- package/dist/lib/components/DownloadLinks/DownloadLink.css +37 -1
- package/dist/lib/components/DownloadLinks/DownloadLink.d.ts +1 -1
- package/dist/lib/components/DownloadLinks/DownloadLink.js +60 -17
- package/dist/lib/components/DownloadLinks/DownloadLinks.css +36 -1
- package/dist/lib/components/DownloadLinks/DownloadLinks.d.ts +3 -3
- package/dist/lib/components/DownloadLinks/DownloadLinks.js +33 -8
- package/dist/lib/components/FaqWrapper/FaqWrapper.d.ts +2 -5
- package/dist/lib/components/FaqWrapper/FaqWrapper.js +9 -6
- package/dist/lib/components/ImageBanner/ImageBanner.css +252 -1
- package/dist/lib/components/ImageBanner/ImageBanner.d.ts +7 -8
- package/dist/lib/components/ImageBanner/ImageBanner.js +138 -61
- package/dist/lib/components/Instructions/Instructions.css +790 -1
- package/dist/lib/components/Instructions/Instructions.d.ts +11 -11
- package/dist/lib/components/Instructions/Instructions.js +186 -103
- package/dist/lib/components/NotificationBox/NotificationBox.d.ts +4 -4
- package/dist/lib/components/NotificationBox/NotificationBox.js +37 -9
- package/dist/lib/components/NotificationBox/style/NotificationBox.css +28 -0
- package/dist/lib/components/PageTitle/PageTitle.css +80 -1
- package/dist/lib/components/PageTitle/PageTitle.d.ts +2 -2
- package/dist/lib/components/PageTitle/PageTitle.js +52 -15
- package/dist/lib/components/Partners/Partners.css +53 -1
- package/dist/lib/components/Partners/Partners.d.ts +2 -2
- package/dist/lib/components/Partners/Partners.js +65 -21
- package/dist/lib/components/PictureWithDescription/PictureWithDescription.css +80 -1
- package/dist/lib/components/PictureWithDescription/PictureWithDescription.d.ts +2 -4
- package/dist/lib/components/PictureWithDescription/PictureWithDescription.js +46 -16
- package/dist/lib/components/Property/Property.css +156 -1
- package/dist/lib/components/Property/Property.d.ts +4 -4
- package/dist/lib/components/Property/Property.js +120 -60
- package/dist/lib/components/Property/PropertyDescription.css +17 -1
- package/dist/lib/components/Property/PropertyDescription.d.ts +3 -3
- package/dist/lib/components/Property/PropertyDescription.js +46 -15
- package/dist/lib/components/Property/types.d.ts +5 -7
- package/dist/lib/components/Property/types.js +1 -5
- package/dist/lib/components/Steps/Steps.css +41 -1
- package/dist/lib/components/Steps/Steps.d.ts +1 -2
- package/dist/lib/components/Steps/Steps.js +35 -8
- package/dist/lib/components/Steps/StepsItem.css +42 -1
- package/dist/lib/components/Steps/StepsItem.d.ts +2 -2
- package/dist/lib/components/Steps/StepsItem.js +23 -11
- package/dist/lib/components/StoreBanner/StoreBanner.css +346 -1
- package/dist/lib/components/StoreBanner/StoreBanner.d.ts +5 -5
- package/dist/lib/components/StoreBanner/StoreBanner.js +118 -47
- 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
- package/dist/lib/components/StoreButton/StoreButton.css +327 -1
- package/dist/lib/components/StoreButton/StoreButton.d.ts +3 -3
- package/dist/lib/components/StoreButton/StoreButton.js +63 -17
- package/dist/lib/components/Table/Table.css +157 -1
- package/dist/lib/components/Table/Table.d.ts +1 -1
- package/dist/lib/components/Table/Table.js +68 -35
- package/dist/lib/components/Table/TableCell.js +16 -4
- package/dist/lib/components/Table/TableRow.js +19 -5
- package/dist/lib/components/TabsBox/TabBox.js +4 -1
- package/dist/lib/components/TabsBox/TabsBox.d.ts +1 -1
- package/dist/lib/components/TabsBox/TabsBox.js +26 -8
- package/dist/lib/components/TextBox/TextBox.css +25 -1
- package/dist/lib/components/TextBox/TextBox.d.ts +1 -2
- package/dist/lib/components/TextBox/TextBox.js +36 -12
- package/dist/lib/components/TextBox/TextBoxPicture.css +27 -1
- package/dist/lib/components/TextBox/TextBoxPicture.d.ts +2 -2
- package/dist/lib/components/TextBox/TextBoxPicture.js +29 -11
- package/dist/lib/components/TextWithIcon/TextWithIcon.css +10 -1
- package/dist/lib/components/TextWithIcon/TextWithIcon.d.ts +1 -1
- package/dist/lib/components/TextWithIcon/TextWithIcon.js +39 -10
- package/dist/lib/components/TextWithIcon/TextWithIconItem.css +29 -1
- package/dist/lib/components/TextWithIcon/TextWithIconItem.d.ts +1 -1
- package/dist/lib/components/TextWithIcon/TextWithIconItem.js +37 -10
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.css +31 -1
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +1 -1
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.js +40 -10
- package/dist/lib/components/VideoBanner/VideoBanner.css +225 -1
- package/dist/lib/components/VideoBanner/VideoBanner.d.ts +7 -7
- package/dist/lib/components/VideoBanner/VideoBanner.js +176 -83
- package/dist/lib/components/VideoBlock/VideoBlock.css +106 -1
- package/dist/lib/components/VideoBlock/VideoBlock.d.ts +4 -4
- package/dist/lib/components/VideoBlock/VideoBlock.js +114 -58
- package/dist/lib/constants/throttleTime.js +3 -2
- package/dist/lib/helpers/getColumnConfig.d.ts +1 -5
- package/dist/lib/helpers/getColumnConfig.js +5 -2
- package/dist/lib/index.js +57 -10
- package/package.json +92 -87
- package/dist/es/components/NotificationBox/NotificationBox.css +0 -1
- package/dist/lib/components/NotificationBox/NotificationBox.css +0 -1
@@ -1 +1,15 @@
|
|
1
|
-
h1,
|
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,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.less';
|
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<
|
46
|
+
declare const AccordionBox: React.FC<IAccordionBox>;
|
47
47
|
export default AccordionBox;
|
@@ -1,27 +1,36 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
|
-
import "core-js/modules/es.symbol.js";
|
3
2
|
import "core-js/modules/es.array.index-of.js";
|
3
|
+
import "core-js/modules/es.symbol.js";
|
4
|
+
|
4
5
|
var __rest = this && this.__rest || function (s, e) {
|
5
6
|
var t = {};
|
6
|
-
|
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
|
+
|
7
12
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
8
13
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
9
14
|
}
|
10
15
|
return t;
|
11
16
|
};
|
17
|
+
|
12
18
|
import * as React from 'react';
|
13
19
|
import { Grid, GridColumn, Accordion } from '@megafon/ui-core';
|
14
20
|
import { cnCreate } from '@megafon/ui-helpers';
|
21
|
+
import * as PropTypes from 'prop-types';
|
15
22
|
import "./AccordionBox.css";
|
16
23
|
import { getColumnConfig } from "../../helpers/getColumnConfig";
|
17
24
|
var testIdPrefix = 'AccordionBox';
|
18
25
|
var cn = cnCreate('mfui-accordion-box');
|
26
|
+
|
19
27
|
var AccordionBox = function AccordionBox(_a) {
|
20
28
|
var _a$hCenterAlignWide = _a.hCenterAlignWide,
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
29
|
+
hCenterAlignWide = _a$hCenterAlignWide === void 0 ? false : _a$hCenterAlignWide,
|
30
|
+
_a$isFullWidth = _a.isFullWidth,
|
31
|
+
isFullWidth = _a$isFullWidth === void 0 ? false : _a$isFullWidth,
|
32
|
+
restProps = __rest(_a, ["hCenterAlignWide", "isFullWidth"]);
|
33
|
+
|
25
34
|
return /*#__PURE__*/React.createElement("div", {
|
26
35
|
className: cn()
|
27
36
|
}, /*#__PURE__*/React.createElement(Grid, {
|
@@ -39,4 +48,38 @@ var AccordionBox = function AccordionBox(_a) {
|
|
39
48
|
}
|
40
49
|
}), /*#__PURE__*/React.createElement(Accordion, restProps))));
|
41
50
|
};
|
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
|
+
};
|
42
85
|
export default AccordionBox;
|
@@ -1,11 +1,12 @@
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
3
|
-
import
|
3
|
+
import 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
|
+
|
9
10
|
var IconPause = function IconPause(props) {
|
10
11
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
11
12
|
viewBox: "0 0 32 32"
|
@@ -13,6 +14,7 @@ var IconPause = function IconPause(props) {
|
|
13
14
|
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"
|
14
15
|
}));
|
15
16
|
};
|
17
|
+
|
16
18
|
var IconPlay = function IconPlay(props) {
|
17
19
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
18
20
|
viewBox: "0 0 32 32"
|
@@ -20,47 +22,60 @@ var IconPlay = function IconPlay(props) {
|
|
20
22
|
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"
|
21
23
|
}));
|
22
24
|
};
|
25
|
+
|
23
26
|
var cn = cnCreate('mfui-audio-player');
|
27
|
+
|
24
28
|
var AudioPlayer = function AudioPlayer(_ref) {
|
25
29
|
var audioSrc = _ref.audioSrc,
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
+
audioTitle = _ref.audioTitle,
|
31
|
+
_ref$position = _ref.position,
|
32
|
+
position = _ref$position === void 0 ? 'center' : _ref$position,
|
33
|
+
isFullWidth = _ref.isFullWidth;
|
30
34
|
var audioRef = React.useRef(null);
|
35
|
+
|
31
36
|
var _React$useState = React.useState(false),
|
32
|
-
|
33
|
-
|
34
|
-
|
37
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
38
|
+
isPlaying = _React$useState2[0],
|
39
|
+
setIsPlaying = _React$useState2[1];
|
40
|
+
|
35
41
|
var _React$useState3 = React.useState(false),
|
36
|
-
|
37
|
-
|
38
|
-
|
42
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
43
|
+
isPause = _React$useState4[0],
|
44
|
+
setIsPause = _React$useState4[1];
|
45
|
+
|
39
46
|
var handlePLay = function handlePLay() {
|
40
47
|
var _a;
|
48
|
+
|
41
49
|
setIsPlaying(true);
|
42
50
|
setIsPause(false);
|
43
51
|
(_a = audioRef.current) === null || _a === void 0 ? void 0 : _a.play();
|
44
52
|
};
|
53
|
+
|
45
54
|
var handlePause = function handlePause() {
|
46
55
|
var _a;
|
56
|
+
|
47
57
|
setIsPlaying(false);
|
48
58
|
setIsPause(true);
|
49
59
|
(_a = audioRef.current) === null || _a === void 0 ? void 0 : _a.pause();
|
50
60
|
};
|
61
|
+
|
51
62
|
var handleChangeAudioCurrentTime = function handleChangeAudioCurrentTime(currentTime) {
|
52
63
|
if (!audioRef || !audioRef.current) {
|
53
64
|
return;
|
54
65
|
}
|
66
|
+
|
55
67
|
audioRef.current.currentTime = currentTime;
|
56
68
|
};
|
69
|
+
|
57
70
|
var handleChangeAudioVolume = function handleChangeAudioVolume(volume) {
|
58
71
|
if (!audioRef || !audioRef.current) {
|
59
72
|
return;
|
60
73
|
}
|
74
|
+
|
61
75
|
audioRef.current.volume = volume;
|
62
76
|
audioRef.current.muted = !volume;
|
63
77
|
};
|
78
|
+
|
64
79
|
var playingIconHandleClick = React.useMemo(function () {
|
65
80
|
return isPlaying ? handlePause : handlePLay;
|
66
81
|
}, [isPlaying]);
|
@@ -104,4 +119,5 @@ var AudioPlayer = function AudioPlayer(_ref) {
|
|
104
119
|
onChangeAudioVolume: handleChangeAudioVolume
|
105
120
|
})));
|
106
121
|
};
|
122
|
+
|
107
123
|
export default AudioPlayer;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
2
|
-
import "core-js/modules/es.number.constructor.js";
|
3
2
|
import "core-js/modules/web.timers.js";
|
3
|
+
import "core-js/modules/es.number.constructor.js";
|
4
4
|
import React from 'react';
|
5
5
|
import { cnCreate } from '@megafon/ui-helpers';
|
6
6
|
import AudioRange from "./AudioRange";
|
@@ -9,19 +9,22 @@ 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
|
+
|
12
13
|
var AudioProgress = function AudioProgress(_ref) {
|
13
14
|
var audioRef = _ref.audioRef,
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
15
|
+
audioTitle = _ref.audioTitle,
|
16
|
+
isPlaying = _ref.isPlaying,
|
17
|
+
isPause = _ref.isPause,
|
18
|
+
onChangeAudioCurrentTime = _ref.onChangeAudioCurrentTime,
|
19
|
+
onPlay = _ref.onPlay,
|
20
|
+
onSetIsPlaying = _ref.onSetIsPlaying;
|
20
21
|
var intervalId = React.useRef(null);
|
22
|
+
|
21
23
|
var _React$useState = React.useState(0),
|
22
|
-
|
23
|
-
|
24
|
-
|
24
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
25
|
+
trackProgress = _React$useState2[0],
|
26
|
+
setTrackProgress = _React$useState2[1];
|
27
|
+
|
25
28
|
var trackDuration = useTrackDuration(audioRef);
|
26
29
|
var progressColorPercent = React.useMemo(function () {
|
27
30
|
return trackProgress / trackDuration * 100;
|
@@ -33,33 +36,41 @@ var AudioProgress = function AudioProgress(_ref) {
|
|
33
36
|
intervalId.current && clearInterval(intervalId.current);
|
34
37
|
intervalId.current = setInterval(function () {
|
35
38
|
var _a, _b, _c;
|
39
|
+
|
36
40
|
if ((_a = audioRef.current) === null || _a === void 0 ? void 0 : _a.ended) {
|
37
41
|
onSetIsPlaying === null || onSetIsPlaying === void 0 ? void 0 : onSetIsPlaying(false);
|
38
42
|
setTrackProgress(Math.floor(((_b = audioRef.current) === null || _b === void 0 ? void 0 : _b.duration) || 0));
|
39
43
|
return;
|
40
44
|
}
|
45
|
+
|
41
46
|
setTrackProgress(Math.floor(((_c = audioRef.current) === null || _c === void 0 ? void 0 : _c.currentTime) || 0));
|
42
47
|
}, INTERVAL_DELAY);
|
43
48
|
}, [audioRef, onSetIsPlaying]);
|
49
|
+
|
44
50
|
var handleScrubProgress = function handleScrubProgress(e) {
|
45
51
|
var currentTime = Number(e.target.value);
|
46
52
|
setTrackProgress(currentTime);
|
47
53
|
onChangeAudioCurrentTime === null || onChangeAudioCurrentTime === void 0 ? void 0 : onChangeAudioCurrentTime(currentTime);
|
48
54
|
};
|
55
|
+
|
49
56
|
var handleScrubEndProgress = function handleScrubEndProgress() {
|
50
57
|
if (!isPlaying) {
|
51
58
|
onPlay === null || onPlay === void 0 ? void 0 : onPlay();
|
52
59
|
}
|
60
|
+
|
53
61
|
handleStartTimer();
|
54
62
|
};
|
63
|
+
|
55
64
|
React.useEffect(function () {
|
56
65
|
var _a;
|
66
|
+
|
57
67
|
setTrackProgress(Math.floor(((_a = audioRef === null || audioRef === void 0 ? void 0 : audioRef.current) === null || _a === void 0 ? void 0 : _a.currentTime) || 0));
|
58
68
|
}, [audioRef]);
|
59
69
|
React.useEffect(function () {
|
60
70
|
if (isPlaying) {
|
61
71
|
handleStartTimer();
|
62
72
|
}
|
73
|
+
|
63
74
|
if (isPause) {
|
64
75
|
intervalId.current && clearInterval(intervalId.current);
|
65
76
|
}
|
@@ -93,4 +104,5 @@ var AudioProgress = function AudioProgress(_ref) {
|
|
93
104
|
}
|
94
105
|
})));
|
95
106
|
};
|
107
|
+
|
96
108
|
export default AudioProgress;
|
@@ -3,16 +3,17 @@ 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
|
+
|
6
7
|
var AudioRange = function AudioRange(_ref) {
|
7
8
|
var className = _ref.className,
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
9
|
+
maxValue = _ref.maxValue,
|
10
|
+
value = _ref.value,
|
11
|
+
step = _ref.step,
|
12
|
+
colorPercent = _ref.colorPercent,
|
13
|
+
onChange = _ref.onChange,
|
14
|
+
onMouseUp = _ref.onMouseUp,
|
15
|
+
onTouchEnd = _ref.onTouchEnd,
|
16
|
+
dataAttrs = _ref.dataAttrs;
|
16
17
|
return /*#__PURE__*/React.createElement("input", _extends({
|
17
18
|
className: cn([className]),
|
18
19
|
style: {
|
@@ -28,4 +29,5 @@ var AudioRange = function AudioRange(_ref) {
|
|
28
29
|
onTouchEnd: onTouchEnd
|
29
30
|
}, filterDataAttrs(dataAttrs)));
|
30
31
|
};
|
32
|
+
|
31
33
|
export default AudioRange;
|
@@ -6,6 +6,7 @@ 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
|
+
|
9
10
|
var NoVolumeIcon = function NoVolumeIcon(props) {
|
10
11
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
11
12
|
viewBox: "0 0 24 24"
|
@@ -15,6 +16,7 @@ var NoVolumeIcon = function NoVolumeIcon(props) {
|
|
15
16
|
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"
|
16
17
|
}));
|
17
18
|
};
|
19
|
+
|
18
20
|
var VolumeIcon = function VolumeIcon(props) {
|
19
21
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
20
22
|
viewBox: "0 0 24 24"
|
@@ -24,22 +26,28 @@ var VolumeIcon = function VolumeIcon(props) {
|
|
24
26
|
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"
|
25
27
|
}));
|
26
28
|
};
|
29
|
+
|
27
30
|
var cn = cnCreate('mfui-audio-volume');
|
31
|
+
|
28
32
|
var AudioVolume = function AudioVolume(_ref) {
|
29
33
|
var onChangeAudioVolume = _ref.onChangeAudioVolume;
|
30
34
|
var tooltipTrigger = React.useRef(null);
|
35
|
+
|
31
36
|
var _React$useState = React.useState(0.3),
|
32
|
-
|
33
|
-
|
34
|
-
|
37
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
38
|
+
trackVolume = _React$useState2[0],
|
39
|
+
setTrackVolume = _React$useState2[1];
|
40
|
+
|
35
41
|
var volumeColorPercent = React.useMemo(function () {
|
36
42
|
return trackVolume * 100;
|
37
43
|
}, [trackVolume]);
|
44
|
+
|
38
45
|
var handleScrubVolume = function handleScrubVolume(e) {
|
39
46
|
var currentVolume = Number(e.target.value);
|
40
47
|
setTrackVolume(currentVolume);
|
41
48
|
onChangeAudioVolume === null || onChangeAudioVolume === void 0 ? void 0 : onChangeAudioVolume(currentVolume);
|
42
49
|
};
|
50
|
+
|
43
51
|
return /*#__PURE__*/React.createElement("div", {
|
44
52
|
className: cn()
|
45
53
|
}, /*#__PURE__*/React.createElement("div", {
|
@@ -74,4 +82,5 @@ var AudioVolume = function AudioVolume(_ref) {
|
|
74
82
|
}
|
75
83
|
})));
|
76
84
|
};
|
85
|
+
|
77
86
|
export default AudioVolume;
|
@@ -1,17 +1,22 @@
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
2
2
|
import React from 'react';
|
3
|
+
|
3
4
|
var useTrackDuration = function useTrackDuration(audioRef) {
|
4
5
|
var _React$useState = React.useState(0),
|
5
|
-
|
6
|
-
|
7
|
-
|
6
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
7
|
+
trackDuration = _React$useState2[0],
|
8
|
+
setTrackDuration = _React$useState2[1];
|
9
|
+
|
8
10
|
React.useEffect(function () {
|
9
11
|
var audioNode = audioRef.current;
|
12
|
+
|
10
13
|
if (!audioNode) {
|
11
14
|
return;
|
12
15
|
}
|
16
|
+
|
13
17
|
var readyState = audioNode.readyState,
|
14
|
-
|
18
|
+
duration = audioNode.duration;
|
19
|
+
|
15
20
|
if (readyState > 0) {
|
16
21
|
setTrackDuration(Math.round(duration));
|
17
22
|
} else {
|
@@ -23,4 +28,5 @@ var useTrackDuration = function useTrackDuration(audioRef) {
|
|
23
28
|
}, [audioRef]);
|
24
29
|
return trackDuration;
|
25
30
|
};
|
31
|
+
|
26
32
|
export default useTrackDuration;
|
@@ -1 +1,58 @@
|
|
1
|
-
h1,
|
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 +1,35 @@
|
|
1
|
-
h1,
|
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 +1,68 @@
|
|
1
|
-
h1,
|
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 +1,34 @@
|
|
1
|
-
h1,
|
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
|
+
}
|