@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,5 +1,5 @@
|
|
1
|
-
import
|
2
|
-
import './Container.
|
1
|
+
import React, { Ref } from 'react';
|
2
|
+
import './Container.less';
|
3
3
|
export declare const BackgroundColors: {
|
4
4
|
readonly DEFAULT: "default";
|
5
5
|
readonly LIGHT_GRAY: "light-gray";
|
@@ -7,12 +7,12 @@ export declare const BackgroundColors: {
|
|
7
7
|
readonly GREEN: "green";
|
8
8
|
readonly PURPLE: "purple";
|
9
9
|
};
|
10
|
-
type BackgroundColorType =
|
11
|
-
type Props = {
|
10
|
+
declare type BackgroundColorType = typeof BackgroundColors[keyof typeof BackgroundColors];
|
11
|
+
declare type Props = {
|
12
12
|
/** Атрибут корневого тега */
|
13
13
|
id?: string;
|
14
14
|
/** Ссылка на корневой элемент */
|
15
|
-
rootRef?:
|
15
|
+
rootRef?: Ref<HTMLDivElement>;
|
16
16
|
/** Дополнительный класс корневого элемента */
|
17
17
|
className?: string;
|
18
18
|
/** Цвет фона */
|
@@ -23,8 +23,6 @@ type Props = {
|
|
23
23
|
disablePaddingBottom?: boolean;
|
24
24
|
/** Включить тень в нижней части компонента */
|
25
25
|
bottomShadow?: boolean;
|
26
|
-
/** Дочерние элементы */
|
27
|
-
children?: React.ReactNode;
|
28
26
|
};
|
29
27
|
declare const Container: React.FC<Props>;
|
30
28
|
export default Container;
|
@@ -1,6 +1,8 @@
|
|
1
|
-
import
|
1
|
+
import "core-js/modules/es.object.values.js";
|
2
|
+
import React from 'react';
|
2
3
|
import { ContentArea } from '@megafon/ui-core';
|
3
4
|
import { cnCreate } from '@megafon/ui-helpers';
|
5
|
+
import PropTypes from 'prop-types';
|
4
6
|
import "./Container.css";
|
5
7
|
export var BackgroundColors = {
|
6
8
|
DEFAULT: 'default',
|
@@ -10,17 +12,18 @@ export var BackgroundColors = {
|
|
10
12
|
PURPLE: 'purple'
|
11
13
|
};
|
12
14
|
var cn = cnCreate('mfui-container');
|
15
|
+
|
13
16
|
var Container = function Container(_ref) {
|
14
17
|
var _ref$backgroundColor = _ref.backgroundColor,
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
18
|
+
backgroundColor = _ref$backgroundColor === void 0 ? 'default' : _ref$backgroundColor,
|
19
|
+
rootRef = _ref.rootRef,
|
20
|
+
id = _ref.id,
|
21
|
+
className = _ref.className,
|
22
|
+
children = _ref.children,
|
23
|
+
disablePaddingTop = _ref.disablePaddingTop,
|
24
|
+
disablePaddingBottom = _ref.disablePaddingBottom,
|
25
|
+
_ref$bottomShadow = _ref.bottomShadow,
|
26
|
+
bottomShadow = _ref$bottomShadow === void 0 ? false : _ref$bottomShadow;
|
24
27
|
return /*#__PURE__*/React.createElement("div", {
|
25
28
|
className: cn({
|
26
29
|
'bg-color': backgroundColor,
|
@@ -34,4 +37,16 @@ var Container = function Container(_ref) {
|
|
34
37
|
className: cn('inner')
|
35
38
|
}, /*#__PURE__*/React.createElement(ContentArea, null, children)));
|
36
39
|
};
|
40
|
+
|
41
|
+
Container.propTypes = {
|
42
|
+
id: PropTypes.string,
|
43
|
+
className: PropTypes.string,
|
44
|
+
backgroundColor: PropTypes.oneOf(Object.values(BackgroundColors)),
|
45
|
+
rootRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
|
46
|
+
current: PropTypes.elementType
|
47
|
+
}), PropTypes.any])]),
|
48
|
+
disablePaddingTop: PropTypes.bool,
|
49
|
+
disablePaddingBottom: PropTypes.bool,
|
50
|
+
bottomShadow: PropTypes.bool
|
51
|
+
};
|
37
52
|
export default Container;
|
@@ -1 +1,37 @@
|
|
1
|
-
h1,
|
1
|
+
h1,
|
2
|
+
h2,
|
3
|
+
h3,
|
4
|
+
h4,
|
5
|
+
h5 {
|
6
|
+
margin: 0;
|
7
|
+
}
|
8
|
+
.mfui-download-link {
|
9
|
+
display: -webkit-box;
|
10
|
+
display: -ms-flexbox;
|
11
|
+
display: flex;
|
12
|
+
}
|
13
|
+
.mfui-download-link__icon {
|
14
|
+
-ms-flex-negative: 0;
|
15
|
+
flex-shrink: 0;
|
16
|
+
width: 40px;
|
17
|
+
height: 40px;
|
18
|
+
margin-right: 22px;
|
19
|
+
fill: var(--content);
|
20
|
+
}
|
21
|
+
@media screen and (max-width: 1023px) {
|
22
|
+
.mfui-download-link__icon {
|
23
|
+
width: 32px;
|
24
|
+
height: 32px;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
.mfui-download-link__icon-svg {
|
28
|
+
width: inherit;
|
29
|
+
height: inherit;
|
30
|
+
}
|
31
|
+
.mfui-download-link__info {
|
32
|
+
margin: 0;
|
33
|
+
font-size: 12px;
|
34
|
+
line-height: 18px;
|
35
|
+
color: var(--spbSky3);
|
36
|
+
text-transform: uppercase;
|
37
|
+
}
|
@@ -1,10 +1,12 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
|
-
import "core-js/modules/es.array.concat.js";
|
3
2
|
import "core-js/modules/es.string.link.js";
|
3
|
+
import "core-js/modules/es.array.concat.js";
|
4
4
|
import * as React from 'react';
|
5
5
|
import { TextLink } from '@megafon/ui-core';
|
6
6
|
import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
7
|
+
import * as PropTypes from 'prop-types';
|
7
8
|
import "./DownloadLink.css";
|
9
|
+
|
8
10
|
var DownloadIcon = function DownloadIcon(props) {
|
9
11
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
10
12
|
viewBox: "0 0 40 40"
|
@@ -12,30 +14,36 @@ var DownloadIcon = function DownloadIcon(props) {
|
|
12
14
|
d: "M21 6v14l2.68-4 1.65 1-4.44 6.74h-1.77L14.68 17l1.65-1L19 20V6zM8 20H6a14 14 0 0028 0h-2a12 12 0 01-24 0z"
|
13
15
|
}));
|
14
16
|
};
|
17
|
+
|
15
18
|
var cn = cnCreate('mfui-download-link');
|
19
|
+
|
16
20
|
var DownloadLink = function DownloadLink(_ref) {
|
17
21
|
var href = _ref.href,
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
22
|
+
text = _ref.text,
|
23
|
+
extension = _ref.extension,
|
24
|
+
fileSize = _ref.fileSize,
|
25
|
+
onClick = _ref.onClick,
|
26
|
+
className = _ref.className,
|
27
|
+
_ref$classes = _ref.classes,
|
28
|
+
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
29
|
+
rootRef = _ref.rootRef,
|
30
|
+
dataAttrs = _ref.dataAttrs,
|
31
|
+
disableDownload = _ref.disableDownload,
|
32
|
+
target = _ref.target,
|
33
|
+
rel = _ref.rel;
|
34
|
+
|
30
35
|
var setRelAttribute = function setRelAttribute() {
|
31
36
|
if (rel) {
|
32
37
|
return rel;
|
33
38
|
}
|
39
|
+
|
34
40
|
if (target && target !== '_self') {
|
35
41
|
return 'noreferrer noopener';
|
36
42
|
}
|
43
|
+
|
37
44
|
return undefined;
|
38
45
|
};
|
46
|
+
|
39
47
|
return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
40
48
|
className: cn([className, classes.root]),
|
41
49
|
ref: rootRef
|
@@ -58,4 +66,27 @@ var DownloadLink = function DownloadLink(_ref) {
|
|
58
66
|
className: cn('info')
|
59
67
|
}, "".concat(extension).concat(extension && fileSize ? ', ' : '').concat(fileSize))));
|
60
68
|
};
|
69
|
+
|
70
|
+
DownloadLink.propTypes = {
|
71
|
+
dataAttrs: PropTypes.shape({
|
72
|
+
root: PropTypes.objectOf(PropTypes.string.isRequired),
|
73
|
+
link: PropTypes.objectOf(PropTypes.string.isRequired)
|
74
|
+
}),
|
75
|
+
rootRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
|
76
|
+
current: PropTypes.elementType
|
77
|
+
}), PropTypes.any])]),
|
78
|
+
href: PropTypes.string.isRequired,
|
79
|
+
text: PropTypes.string.isRequired,
|
80
|
+
extension: PropTypes.string.isRequired,
|
81
|
+
fileSize: PropTypes.string.isRequired,
|
82
|
+
className: PropTypes.string,
|
83
|
+
classes: PropTypes.shape({
|
84
|
+
root: PropTypes.string,
|
85
|
+
link: PropTypes.string
|
86
|
+
}),
|
87
|
+
onClick: PropTypes.func,
|
88
|
+
disableDownload: PropTypes.bool,
|
89
|
+
target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top']),
|
90
|
+
rel: PropTypes.string
|
91
|
+
};
|
61
92
|
export default DownloadLink;
|
@@ -1 +1,36 @@
|
|
1
|
-
h1,
|
1
|
+
h1,
|
2
|
+
h2,
|
3
|
+
h3,
|
4
|
+
h4,
|
5
|
+
h5 {
|
6
|
+
margin: 0;
|
7
|
+
}
|
8
|
+
@media screen and (min-width: 1024px) {
|
9
|
+
.mfui-download-links__column:nth-child(n + 4) {
|
10
|
+
margin-top: 24px;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
14
|
+
.mfui-download-links__column:nth-child(n + 3) {
|
15
|
+
margin-top: 24px;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
@media screen and (max-width: 767px) {
|
19
|
+
.mfui-download-links__column:not(:first-child) {
|
20
|
+
margin-top: 24px;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
@media screen and (min-width: 768px) {
|
24
|
+
.mfui-download-links_count_2 .mfui-download-links__column:nth-child(n + 2) {
|
25
|
+
margin-top: 24px;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
@media screen and (min-width: 768px) {
|
29
|
+
.mfui-download-links_count_3 .mfui-download-links__column:nth-child(n + 3),
|
30
|
+
.mfui-download-links_count_4 .mfui-download-links__column:nth-child(n + 3) {
|
31
|
+
margin-top: 24px;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
.mfui-download-links__item:not(:first-child) {
|
35
|
+
margin-top: 24px;
|
36
|
+
}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { GridColumn } from '@megafon/ui-core';
|
3
|
-
import './DownloadLinks.
|
3
|
+
import './DownloadLinks.less';
|
4
4
|
import { IDownloadLink } from './DownloadLink';
|
5
|
-
type GridColumnType = React.ComponentProps<typeof GridColumn>;
|
6
|
-
type ColumnConfig = {
|
5
|
+
declare type GridColumnType = React.ComponentProps<typeof GridColumn>;
|
6
|
+
declare type ColumnConfig = {
|
7
7
|
wide?: GridColumnType['wide'];
|
8
8
|
desktop?: GridColumnType['desktop'];
|
9
9
|
tablet?: GridColumnType['tablet'];
|
@@ -3,6 +3,7 @@ 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 } from '@megafon/ui-helpers';
|
6
|
+
import * as PropTypes from 'prop-types';
|
6
7
|
import "./DownloadLinks.css";
|
7
8
|
export var getColumnConfig = function getColumnConfig(itemsCount) {
|
8
9
|
switch (true) {
|
@@ -13,6 +14,7 @@ export var getColumnConfig = function getColumnConfig(itemsCount) {
|
|
13
14
|
mobile: '12'
|
14
15
|
};
|
15
16
|
}
|
17
|
+
|
16
18
|
case itemsCount <= 4:
|
17
19
|
{
|
18
20
|
return {
|
@@ -20,6 +22,7 @@ export var getColumnConfig = function getColumnConfig(itemsCount) {
|
|
20
22
|
mobile: '12'
|
21
23
|
};
|
22
24
|
}
|
25
|
+
|
23
26
|
default:
|
24
27
|
{
|
25
28
|
return {
|
@@ -33,10 +36,12 @@ export var getColumnConfig = function getColumnConfig(itemsCount) {
|
|
33
36
|
};
|
34
37
|
var testIdPrefix = 'DownloadLinks';
|
35
38
|
var cn = cnCreate('mfui-download-links');
|
39
|
+
|
36
40
|
var DownloadLinks = function DownloadLinks(_ref) {
|
37
41
|
var _ref$inOneColumn = _ref.inOneColumn,
|
38
|
-
|
39
|
-
|
42
|
+
inOneColumn = _ref$inOneColumn === void 0 ? false : _ref$inOneColumn,
|
43
|
+
children = _ref.children;
|
44
|
+
|
40
45
|
if (inOneColumn) {
|
41
46
|
return /*#__PURE__*/React.createElement("div", {
|
42
47
|
className: cn(),
|
@@ -47,6 +52,7 @@ var DownloadLinks = function DownloadLinks(_ref) {
|
|
47
52
|
}, child);
|
48
53
|
}));
|
49
54
|
}
|
55
|
+
|
50
56
|
var itemsCount = React.Children.count(children);
|
51
57
|
var columnConfig = getColumnConfig(itemsCount);
|
52
58
|
return /*#__PURE__*/React.createElement("div", {
|
@@ -61,4 +67,9 @@ var DownloadLinks = function DownloadLinks(_ref) {
|
|
61
67
|
}), child);
|
62
68
|
})));
|
63
69
|
};
|
70
|
+
|
71
|
+
DownloadLinks.propTypes = {
|
72
|
+
inOneColumn: PropTypes.bool,
|
73
|
+
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.element.isRequired), PropTypes.element]).isRequired
|
74
|
+
};
|
64
75
|
export default DownloadLinks;
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import
|
1
|
+
import React from 'react';
|
2
|
+
|
2
3
|
var FaqWrapper = function FaqWrapper(_ref) {
|
3
4
|
var children = _ref.children;
|
4
5
|
return /*#__PURE__*/React.createElement("div", {
|
@@ -6,4 +7,5 @@ var FaqWrapper = function FaqWrapper(_ref) {
|
|
6
7
|
itemType: "http://schema.org/FAQPage"
|
7
8
|
}, children);
|
8
9
|
};
|
10
|
+
|
9
11
|
export default FaqWrapper;
|
@@ -1 +1,252 @@
|
|
1
|
-
h1,
|
1
|
+
h1,
|
2
|
+
h2,
|
3
|
+
h3,
|
4
|
+
h4,
|
5
|
+
h5 {
|
6
|
+
margin: 0;
|
7
|
+
}
|
8
|
+
.mfui-image-banner {
|
9
|
+
position: relative;
|
10
|
+
display: -webkit-box;
|
11
|
+
display: -ms-flexbox;
|
12
|
+
display: flex;
|
13
|
+
-webkit-box-orient: vertical;
|
14
|
+
-webkit-box-direction: normal;
|
15
|
+
-ms-flex-direction: column;
|
16
|
+
flex-direction: column;
|
17
|
+
-webkit-box-pack: justify;
|
18
|
+
-ms-flex-pack: justify;
|
19
|
+
justify-content: space-between;
|
20
|
+
overflow: hidden;
|
21
|
+
}
|
22
|
+
@media screen and (min-width: 1024px) {
|
23
|
+
.mfui-image-banner {
|
24
|
+
-webkit-box-orient: horizontal;
|
25
|
+
-webkit-box-direction: normal;
|
26
|
+
-ms-flex-direction: row;
|
27
|
+
flex-direction: row;
|
28
|
+
-webkit-box-align: center;
|
29
|
+
-ms-flex-align: center;
|
30
|
+
align-items: center;
|
31
|
+
height: 420px;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
.mfui-image-banner__picture {
|
35
|
+
display: -webkit-box;
|
36
|
+
display: -ms-flexbox;
|
37
|
+
display: flex;
|
38
|
+
-ms-flex-negative: 0;
|
39
|
+
flex-shrink: 0;
|
40
|
+
-webkit-box-pack: center;
|
41
|
+
-ms-flex-pack: center;
|
42
|
+
justify-content: center;
|
43
|
+
}
|
44
|
+
@media screen and (min-width: 1024px) {
|
45
|
+
.mfui-image-banner__picture {
|
46
|
+
width: 50%;
|
47
|
+
max-width: 672px;
|
48
|
+
height: 100%;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
.mfui-image-banner__picture_v-align_top {
|
52
|
+
-webkit-box-align: start;
|
53
|
+
-ms-flex-align: start;
|
54
|
+
align-items: flex-start;
|
55
|
+
}
|
56
|
+
.mfui-image-banner__picture_v-align_center {
|
57
|
+
-webkit-box-align: center;
|
58
|
+
-ms-flex-align: center;
|
59
|
+
align-items: center;
|
60
|
+
}
|
61
|
+
.mfui-image-banner__picture_v-align_bottom {
|
62
|
+
-webkit-box-align: end;
|
63
|
+
-ms-flex-align: end;
|
64
|
+
align-items: flex-end;
|
65
|
+
}
|
66
|
+
.mfui-image-banner__image {
|
67
|
+
display: block;
|
68
|
+
max-width: 100%;
|
69
|
+
max-height: 150px;
|
70
|
+
}
|
71
|
+
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
72
|
+
.mfui-image-banner__image {
|
73
|
+
max-height: 230px;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
@media screen and (min-width: 1024px) {
|
77
|
+
.mfui-image-banner__image {
|
78
|
+
max-height: 100%;
|
79
|
+
-o-object-fit: contain;
|
80
|
+
object-fit: contain;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
.mfui-image-banner__content {
|
84
|
+
z-index: 1;
|
85
|
+
-webkit-box-flex: 1;
|
86
|
+
-ms-flex-positive: 1;
|
87
|
+
flex-grow: 1;
|
88
|
+
}
|
89
|
+
@media screen and (max-width: 1023px) {
|
90
|
+
.mfui-image-banner__content {
|
91
|
+
padding: 24px;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
95
|
+
.mfui-image-banner__content {
|
96
|
+
text-align: center;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
@media screen and (min-width: 1024px) {
|
100
|
+
.mfui-image-banner__content {
|
101
|
+
width: 50%;
|
102
|
+
padding: 0 80px;
|
103
|
+
}
|
104
|
+
}
|
105
|
+
.mfui-image-banner__description {
|
106
|
+
margin-top: 16px;
|
107
|
+
white-space: pre-wrap;
|
108
|
+
}
|
109
|
+
.mfui-image-banner__cost {
|
110
|
+
font-size: 15px;
|
111
|
+
line-height: 24px;
|
112
|
+
font-weight: 500;
|
113
|
+
margin-top: 16px;
|
114
|
+
}
|
115
|
+
.mfui-image-banner__value {
|
116
|
+
display: inline;
|
117
|
+
margin: 0 4px;
|
118
|
+
}
|
119
|
+
@media screen and (max-width: 1023px), screen and (min-width: 1024px) and (max-width: 1279px) {
|
120
|
+
.mfui-image-banner__value {
|
121
|
+
line-height: 21px;
|
122
|
+
}
|
123
|
+
}
|
124
|
+
.mfui-image-banner__title,
|
125
|
+
.mfui-image-banner__text {
|
126
|
+
white-space: pre-wrap;
|
127
|
+
}
|
128
|
+
.mfui-image-banner__children {
|
129
|
+
display: -webkit-box;
|
130
|
+
display: -ms-flexbox;
|
131
|
+
display: flex;
|
132
|
+
-webkit-box-orient: vertical;
|
133
|
+
-webkit-box-direction: normal;
|
134
|
+
-ms-flex-direction: column;
|
135
|
+
flex-direction: column;
|
136
|
+
-ms-flex-wrap: wrap;
|
137
|
+
flex-wrap: wrap;
|
138
|
+
gap: 16px;
|
139
|
+
-webkit-box-pack: center;
|
140
|
+
-ms-flex-pack: center;
|
141
|
+
justify-content: center;
|
142
|
+
margin-top: 32px;
|
143
|
+
}
|
144
|
+
@media screen and (max-width: 767px) {
|
145
|
+
.mfui-image-banner__children {
|
146
|
+
-webkit-box-align: center;
|
147
|
+
-ms-flex-align: center;
|
148
|
+
align-items: center;
|
149
|
+
}
|
150
|
+
}
|
151
|
+
@media screen and (min-width: 768px) {
|
152
|
+
.mfui-image-banner__children {
|
153
|
+
-webkit-box-orient: horizontal;
|
154
|
+
-webkit-box-direction: normal;
|
155
|
+
-ms-flex-direction: row;
|
156
|
+
flex-direction: row;
|
157
|
+
}
|
158
|
+
}
|
159
|
+
@media screen and (min-width: 1024px) {
|
160
|
+
.mfui-image-banner__children {
|
161
|
+
-webkit-box-pack: start;
|
162
|
+
-ms-flex-pack: start;
|
163
|
+
justify-content: flex-start;
|
164
|
+
}
|
165
|
+
}
|
166
|
+
@media screen and (max-width: 1023px) {
|
167
|
+
.mfui-image-banner__badges-container {
|
168
|
+
display: -webkit-box;
|
169
|
+
display: -ms-flexbox;
|
170
|
+
display: flex;
|
171
|
+
gap: 8px;
|
172
|
+
}
|
173
|
+
}
|
174
|
+
.mfui-image-banner__badges {
|
175
|
+
display: -webkit-box;
|
176
|
+
display: -ms-flexbox;
|
177
|
+
display: flex;
|
178
|
+
-webkit-box-flex: 1;
|
179
|
+
-ms-flex-positive: 1;
|
180
|
+
flex-grow: 1;
|
181
|
+
-ms-flex-wrap: wrap;
|
182
|
+
flex-wrap: wrap;
|
183
|
+
gap: 8px;
|
184
|
+
margin-bottom: 16px;
|
185
|
+
}
|
186
|
+
.mfui-image-banner__ad-block {
|
187
|
+
margin: 0 0 16px auto;
|
188
|
+
}
|
189
|
+
@media screen and (min-width: 1024px) {
|
190
|
+
.mfui-image-banner__ad-block {
|
191
|
+
position: absolute;
|
192
|
+
top: 24px;
|
193
|
+
right: 24px;
|
194
|
+
}
|
195
|
+
}
|
196
|
+
.mfui-image-banner_radius_rounded {
|
197
|
+
border-radius: 24px;
|
198
|
+
}
|
199
|
+
@media screen and (min-width: 1024px) {
|
200
|
+
.mfui-image-banner_auto-height .mfui-image-banner__content {
|
201
|
+
padding: 48px 80px;
|
202
|
+
}
|
203
|
+
}
|
204
|
+
@media screen and (min-width: 1024px) {
|
205
|
+
.mfui-image-banner_auto-height {
|
206
|
+
height: auto;
|
207
|
+
}
|
208
|
+
}
|
209
|
+
@media screen and (min-width: 1024px) {
|
210
|
+
.mfui-image-banner_has-image .mfui-image-banner__content {
|
211
|
+
padding-right: 0;
|
212
|
+
}
|
213
|
+
}
|
214
|
+
@media screen and (min-width: 1024px) {
|
215
|
+
.mfui-image-banner_full-width .mfui-image-banner__image {
|
216
|
+
position: absolute;
|
217
|
+
right: 0;
|
218
|
+
bottom: 0;
|
219
|
+
display: block;
|
220
|
+
max-width: unset;
|
221
|
+
}
|
222
|
+
}
|
223
|
+
@media screen and (min-width: 1024px) {
|
224
|
+
.mfui-image-banner_full-width.mfui-image-banner_auto-height .mfui-image-banner__image {
|
225
|
+
width: 100%;
|
226
|
+
height: 100%;
|
227
|
+
-o-object-fit: cover;
|
228
|
+
object-fit: cover;
|
229
|
+
}
|
230
|
+
}
|
231
|
+
.mfui-image-banner_background-color_green {
|
232
|
+
background-color: var(--brandGreen);
|
233
|
+
}
|
234
|
+
.mfui-image-banner_background-color_purple {
|
235
|
+
background-color: var(--brandPurple);
|
236
|
+
}
|
237
|
+
.mfui-image-banner_background-color_gradient {
|
238
|
+
background: -webkit-gradient(linear, right top, left top, from(#ADA6BA), to(#F6F2F9));
|
239
|
+
background: linear-gradient(270deg, #ADA6BA 0%, #F6F2F9 100%);
|
240
|
+
}
|
241
|
+
.mfui-image-banner_background-color_light {
|
242
|
+
background-color: #F6F2F9;
|
243
|
+
}
|
244
|
+
.mfui-image-banner_background-color_spbSky0 {
|
245
|
+
background-color: var(--spbSky0);
|
246
|
+
}
|
247
|
+
.mfui-image-banner_text-color_light .mfui-image-banner__content {
|
248
|
+
color: var(--stcWhite);
|
249
|
+
}
|
250
|
+
.mfui-image-banner_text-color_dark .mfui-image-banner__content {
|
251
|
+
color: var(--stcBlack);
|
252
|
+
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import
|
2
|
-
import './ImageBanner.
|
1
|
+
import React, { Ref } from 'react';
|
2
|
+
import './ImageBanner.less';
|
3
3
|
export declare const BackgroundColor: {
|
4
4
|
readonly TRANSPARENT: "transparent";
|
5
5
|
readonly GREEN: "green";
|
@@ -8,23 +8,23 @@ export declare const BackgroundColor: {
|
|
8
8
|
readonly GRADIENT: "gradient";
|
9
9
|
readonly LIGHT: "light";
|
10
10
|
};
|
11
|
-
export type BackgroundColorType =
|
11
|
+
export declare type BackgroundColorType = typeof BackgroundColor[keyof typeof BackgroundColor];
|
12
12
|
export declare const Radius: {
|
13
13
|
readonly CORNERS: "corners";
|
14
14
|
readonly ROUNDED: "rounded";
|
15
15
|
};
|
16
|
-
export type RadiusType =
|
16
|
+
export declare type RadiusType = typeof Radius[keyof typeof Radius];
|
17
17
|
export declare const NavTheme: {
|
18
18
|
readonly LIGHT: "light";
|
19
19
|
readonly DARK: "dark";
|
20
20
|
};
|
21
|
-
export type NavThemeType =
|
21
|
+
export declare type NavThemeType = typeof NavTheme[keyof typeof NavTheme];
|
22
22
|
export declare const ImageVerticalAlign: {
|
23
23
|
readonly TOP: "top";
|
24
24
|
readonly CENTER: "center";
|
25
25
|
readonly BOTTOM: "bottom";
|
26
26
|
};
|
27
|
-
export type ImageVerticalAlignType =
|
27
|
+
export declare type ImageVerticalAlignType = typeof ImageVerticalAlign[keyof typeof ImageVerticalAlign];
|
28
28
|
export interface IImageBannerProps {
|
29
29
|
/** Дополнительные data атрибуты к внутренним элементам */
|
30
30
|
dataAttrs?: {
|
@@ -47,7 +47,7 @@ export interface IImageBannerProps {
|
|
47
47
|
children?: string;
|
48
48
|
};
|
49
49
|
/** Ссылка на корневой элемент */
|
50
|
-
rootRef?:
|
50
|
+
rootRef?: Ref<HTMLDivElement>;
|
51
51
|
/** Заголовок */
|
52
52
|
title?: string | React.ReactNode | React.ReactNode[];
|
53
53
|
/** Текст-описание */
|
@@ -82,7 +82,6 @@ export interface IImageBannerProps {
|
|
82
82
|
badges?: JSX.Element[] | JSX.Element;
|
83
83
|
/** Элемент блока с рекламой */
|
84
84
|
adBlock?: JSX.Element | null;
|
85
|
-
children?: React.ReactNode;
|
86
85
|
}
|
87
86
|
declare const ImageBanner: React.FC<IImageBannerProps>;
|
88
87
|
export default ImageBanner;
|