@megafon/ui-shared 4.18.2 → 4.19.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 +27 -0
- package/dist/es/components/AccordionBox/AccordionBox.js +2 -2
- package/dist/es/components/AudioPlayer/AudioProgress.js +2 -2
- package/dist/es/components/AudioPlayer/AudioVolume.js +1 -1
- package/dist/es/components/AudioPlayer/style/AudioPlayer.css +1 -1
- package/dist/es/components/AudioPlayer/timerFormatUtil.js +2 -2
- package/dist/es/components/BannerBox/BannerBox.js +2 -2
- package/dist/es/components/BenefitsIcons/BenefitsIcons.js +2 -2
- package/dist/es/components/BenefitsIcons/BenefitsIconsTile.js +1 -1
- package/dist/es/components/BenefitsPictures/BenefitsPictures.js +1 -1
- package/dist/es/components/Breadcrumbs/Breadcrumbs.js +4 -4
- package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.js +2 -2
- package/dist/es/components/ButtonBanner/ButtonBanner.js +1 -1
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.js +1 -1
- package/dist/es/components/Card/Card.js +2 -2
- package/dist/es/components/CardsBox/CardsBox.js +1 -1
- package/dist/es/components/CarouselBox/CarouselBox.js +2 -2
- package/dist/es/components/Container/Container.css +21 -0
- package/dist/es/components/Container/Container.js +1 -1
- package/dist/es/components/DownloadLinks/DownloadLink.js +2 -2
- package/dist/es/components/DownloadLinks/DownloadLinks.js +1 -1
- package/dist/es/components/Instructions/Instructions.js +1 -1
- package/dist/es/components/NotificationBox/NotificationBox.d.ts +15 -0
- package/dist/es/components/NotificationBox/NotificationBox.js +49 -0
- package/dist/es/components/NotificationBox/style/NotificationBox.css +28 -0
- package/dist/es/components/Partners/Partners.js +2 -2
- package/dist/es/components/Property/Property.js +3 -3
- package/dist/es/components/Steps/Steps.js +1 -1
- package/dist/es/components/Steps/StepsItem.css +5 -0
- package/dist/es/components/Steps/StepsItem.js +4 -2
- package/dist/es/components/StoreBanner/StoreBanner.js +1 -1
- package/dist/es/components/StoreButton/StoreButton.js +3 -3
- package/dist/es/components/Table/Table.js +1 -1
- package/dist/es/components/TabsBox/TabsBox.js +2 -2
- package/dist/es/components/TextBox/TextBoxPicture.css +3 -0
- package/dist/es/components/TextBox/TextBoxPicture.d.ts +2 -0
- package/dist/es/components/TextBox/TextBoxPicture.js +8 -3
- package/dist/es/components/TextWithIcon/TextWithIconItem.js +2 -2
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.js +2 -2
- package/dist/es/components/VideoBanner/VideoBanner.js +5 -5
- package/dist/es/components/VideoBlock/VideoBlock.js +4 -4
- package/dist/es/index.d.ts +1 -0
- package/dist/es/index.js +1 -0
- package/dist/lib/components/AccordionBox/AccordionBox.js +4 -4
- package/dist/lib/components/AudioPlayer/AudioProgress.js +3 -3
- package/dist/lib/components/AudioPlayer/AudioVolume.js +2 -2
- package/dist/lib/components/AudioPlayer/style/AudioPlayer.css +1 -1
- package/dist/lib/components/AudioPlayer/timerFormatUtil.js +2 -2
- package/dist/lib/components/BannerBox/BannerBox.js +4 -4
- package/dist/lib/components/BenefitsIcons/BenefitsIcons.js +6 -6
- package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.js +3 -3
- package/dist/lib/components/BenefitsPictures/BenefitsPictures.js +4 -4
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.js +7 -7
- package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.js +3 -3
- package/dist/lib/components/ButtonBanner/ButtonBanner.js +4 -4
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.js +4 -4
- package/dist/lib/components/Card/Card.js +3 -3
- package/dist/lib/components/CardsBox/CardsBox.js +4 -4
- package/dist/lib/components/CarouselBox/CarouselBox.js +4 -4
- package/dist/lib/components/Container/Container.css +21 -0
- package/dist/lib/components/Container/Container.js +1 -1
- package/dist/lib/components/DownloadLinks/DownloadLink.js +5 -5
- package/dist/lib/components/DownloadLinks/DownloadLinks.js +4 -4
- package/dist/lib/components/Instructions/Instructions.js +2 -2
- package/dist/lib/components/NotificationBox/NotificationBox.d.ts +15 -0
- package/dist/lib/components/NotificationBox/NotificationBox.js +72 -0
- package/dist/lib/components/NotificationBox/style/NotificationBox.css +28 -0
- package/dist/lib/components/PageTitle/PageTitle.js +2 -2
- package/dist/lib/components/Partners/Partners.js +6 -6
- package/dist/lib/components/PictureWithDescription/PictureWithDescription.js +2 -2
- package/dist/lib/components/Property/Property.js +4 -4
- package/dist/lib/components/Property/PropertyDescription.js +2 -2
- package/dist/lib/components/Steps/Steps.js +3 -3
- package/dist/lib/components/Steps/StepsItem.css +5 -0
- package/dist/lib/components/Steps/StepsItem.js +4 -2
- package/dist/lib/components/StoreBanner/StoreBanner.js +4 -4
- package/dist/lib/components/StoreButton/StoreButton.js +6 -6
- package/dist/lib/components/Table/Table.js +4 -4
- package/dist/lib/components/Table/TableCell.js +2 -2
- package/dist/lib/components/Table/TableRow.js +2 -2
- package/dist/lib/components/TabsBox/TabsBox.js +4 -4
- package/dist/lib/components/TextBox/TextBox.js +2 -2
- package/dist/lib/components/TextBox/TextBoxPicture.css +3 -0
- package/dist/lib/components/TextBox/TextBoxPicture.d.ts +2 -0
- package/dist/lib/components/TextBox/TextBoxPicture.js +10 -5
- package/dist/lib/components/TextWithIcon/TextWithIcon.js +2 -2
- package/dist/lib/components/TextWithIcon/TextWithIconItem.js +5 -5
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.js +5 -5
- package/dist/lib/components/VideoBanner/VideoBanner.js +9 -9
- package/dist/lib/components/VideoBlock/VideoBlock.js +5 -5
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/index.js +8 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,33 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
# [4.19.0](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@4.18.3...@megafon/ui-shared@4.19.0) (2023-05-17)
|
7
|
+
|
8
|
+
|
9
|
+
### Bug Fixes
|
10
|
+
|
11
|
+
* **audioplayer:** fix margin-top style ([0bde07a](https://github.com/MegafonWebLab/megafon-ui/commit/0bde07a42675da3a2c83ab1fb77f63e3924d8a4b))
|
12
|
+
|
13
|
+
|
14
|
+
### Features
|
15
|
+
|
16
|
+
* **container:** add margins for NotificationBox ([ce2334a](https://github.com/MegafonWebLab/megafon-ui/commit/ce2334ae8c8448abdb66d72831e51bba65e15a03))
|
17
|
+
* **notificationbox:** add new component NotificationBox ([1ec74b8](https://github.com/MegafonWebLab/megafon-ui/commit/1ec74b8911a50a03dfe712b860916a32f80437ac))
|
18
|
+
* **stepsitem:** render text without paragraph when text is react nodes ([dc43c69](https://github.com/MegafonWebLab/megafon-ui/commit/dc43c69b73e38e288dee0a22b6c8e4f8a51221fd))
|
19
|
+
* **textboxpicture:** add disableBorder props ([a39bfbb](https://github.com/MegafonWebLab/megafon-ui/commit/a39bfbba2e56dc6edfe29063e46e836213cf16e2))
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
## [4.18.3](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@4.18.2...@megafon/ui-shared@4.18.3) (2023-05-02)
|
26
|
+
|
27
|
+
**Note:** Version bump only for package @megafon/ui-shared
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
|
6
33
|
## [4.18.2](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@4.18.1...@megafon/ui-shared@4.18.2) (2023-04-25)
|
7
34
|
|
8
35
|
**Note:** Version bump only for package @megafon/ui-shared
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import "core-js/modules/es.number.constructor";
|
2
|
-
import "core-js/modules/web.timers";
|
3
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
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";
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import "core-js/modules/es.number.constructor";
|
2
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
3
2
|
import _extends from "@babel/runtime/helpers/extends";
|
3
|
+
import "core-js/modules/es.number.constructor.js";
|
4
4
|
import React from 'react';
|
5
5
|
import { Tooltip } from '@megafon/ui-core';
|
6
6
|
import { cnCreate } from '@megafon/ui-helpers';
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import "core-js/modules/es.
|
2
|
-
import "core-js/modules/es.
|
1
|
+
import "core-js/modules/es.parse-int.js";
|
2
|
+
import "core-js/modules/es.array.concat.js";
|
3
3
|
|
4
4
|
var getMinutes = function getMinutes(sec) {
|
5
5
|
var min = parseInt("".concat(sec / 60), 10);
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import "core-js/modules/es.array.map";
|
2
|
-
import "core-js/modules/es.object.values";
|
3
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
4
2
|
import _extends from "@babel/runtime/helpers/extends";
|
3
|
+
import "core-js/modules/es.array.map.js";
|
4
|
+
import "core-js/modules/es.object.values.js";
|
5
5
|
import * as React from 'react';
|
6
6
|
import { Grid, GridColumn } from '@megafon/ui-core';
|
7
7
|
import { cnCreate, breakpoints } from '@megafon/ui-helpers';
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import "core-js/modules/es.array.map";
|
2
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
3
2
|
import _extends from "@babel/runtime/helpers/extends";
|
3
|
+
import "core-js/modules/es.array.map.js";
|
4
4
|
import * as React from 'react';
|
5
5
|
import { useCallback } from 'react';
|
6
6
|
import { Grid, GridColumn, Header, Paragraph } from '@megafon/ui-core';
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import "core-js/modules/es.array.map";
|
2
|
-
import "core-js/modules/es.object.values";
|
3
|
-
import "core-js/modules/es.string.link";
|
4
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
|
+
import "core-js/modules/es.array.map.js";
|
3
|
+
import "core-js/modules/es.string.link.js";
|
4
|
+
import "core-js/modules/es.object.values.js";
|
5
5
|
import React from 'react';
|
6
6
|
import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
7
7
|
import PropTypes from 'prop-types';
|
@@ -9,7 +9,7 @@ import BreadcrumbsItem, { TextColor } from "./components/BreadcrumbsItem";
|
|
9
9
|
import "./Breadcrumbs.css";
|
10
10
|
|
11
11
|
var isObjectElement = function isObjectElement(item) {
|
12
|
-
return !React.isValidElement(item);
|
12
|
+
return ! /*#__PURE__*/React.isValidElement(item);
|
13
13
|
};
|
14
14
|
|
15
15
|
var cn = cnCreate('mfui-breadcrumbs');
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import "core-js/modules/es.object.values";
|
2
|
-
import "core-js/modules/es.string.link";
|
3
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
|
+
import "core-js/modules/es.string.link.js";
|
3
|
+
import "core-js/modules/es.object.values.js";
|
4
4
|
import React from 'react';
|
5
5
|
import { TextLink } from '@megafon/ui-core';
|
6
6
|
import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import "core-js/modules/es.object.values";
|
2
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
|
+
import "core-js/modules/es.object.values.js";
|
3
3
|
import React from 'react';
|
4
4
|
import { Button, Grid, GridColumn, Header } from '@megafon/ui-core';
|
5
5
|
import { cnCreate, filterDataAttrs, convert, titleConvertConfig, textConvertConfig } from '@megafon/ui-helpers';
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import "core-js/modules/es.string.link";
|
2
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
|
+
import "core-js/modules/es.string.link.js";
|
3
3
|
import React from 'react';
|
4
4
|
import { Button, TextLink } from '@megafon/ui-core';
|
5
5
|
import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import "core-js/modules/es.object.values";
|
2
|
-
import "core-js/modules/es.string.link";
|
3
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
|
+
import "core-js/modules/es.string.link.js";
|
3
|
+
import "core-js/modules/es.object.values.js";
|
4
4
|
import React from 'react';
|
5
5
|
import "./Card.css";
|
6
6
|
import { Header, Button, TextLink, Link } from '@megafon/ui-core';
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import "core-js/modules/es.array.map";
|
2
1
|
import _extends from "@babel/runtime/helpers/extends";
|
3
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
4
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
5
4
|
|
6
5
|
var _SlidesSettings;
|
7
6
|
|
7
|
+
import "core-js/modules/es.array.map.js";
|
8
8
|
import * as React from 'react';
|
9
9
|
import { Grid, GridColumn, Carousel } from '@megafon/ui-core';
|
10
10
|
import { breakpoints, cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
@@ -347,6 +347,9 @@ h5 {
|
|
347
347
|
.mfui-container .mfui-title-description-box + .mfui-text-with-icon {
|
348
348
|
margin-top: 24px;
|
349
349
|
}
|
350
|
+
.mfui-container .mfui-title-description-box + .mfui-notification-box {
|
351
|
+
margin-top: 24px;
|
352
|
+
}
|
350
353
|
.mfui-container .mfui-title-description-box + .mfui-audio-player {
|
351
354
|
margin-top: 32px;
|
352
355
|
}
|
@@ -1809,6 +1812,9 @@ h5 {
|
|
1809
1812
|
.mfui-container .mfui-property + .mfui-steps {
|
1810
1813
|
margin-top: 56px;
|
1811
1814
|
}
|
1815
|
+
.mfui-container .mfui-property + .mfui-notification-box {
|
1816
|
+
margin-top: 24px;
|
1817
|
+
}
|
1812
1818
|
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
1813
1819
|
.mfui-container .mfui-property + .mfui-benefits-icons {
|
1814
1820
|
margin-top: 48px;
|
@@ -2238,6 +2244,9 @@ h5 {
|
|
2238
2244
|
.mfui-container .mfui-text-box + .mfui-text-with-icon {
|
2239
2245
|
margin-top: 32px;
|
2240
2246
|
}
|
2247
|
+
.mfui-container .mfui-text-box + .mfui-notification-box {
|
2248
|
+
margin-top: 24px;
|
2249
|
+
}
|
2241
2250
|
.mfui-container .mfui-text-box + .mfui-audio-player {
|
2242
2251
|
margin-top: 32px;
|
2243
2252
|
}
|
@@ -2773,6 +2782,9 @@ h5 {
|
|
2773
2782
|
.mfui-container .mfui-page-title + .mfui-picture-with-description {
|
2774
2783
|
margin-top: 56px;
|
2775
2784
|
}
|
2785
|
+
.mfui-container .mfui-page-title + .mfui-notification-box {
|
2786
|
+
margin-top: 24px;
|
2787
|
+
}
|
2776
2788
|
.mfui-container .mfui-page-title + .mfui-audio-player {
|
2777
2789
|
margin-top: 32px;
|
2778
2790
|
}
|
@@ -3044,6 +3056,15 @@ h5 {
|
|
3044
3056
|
margin-top: 56px;
|
3045
3057
|
}
|
3046
3058
|
}
|
3059
|
+
.mfui-container .mfui-notification-box + .mfui-property {
|
3060
|
+
margin-top: 32px;
|
3061
|
+
}
|
3062
|
+
.mfui-container .mfui-notification-box + .mfui-text-box {
|
3063
|
+
margin-top: 24px;
|
3064
|
+
}
|
3065
|
+
.mfui-container .mfui-notification-box + .mfui-page-title {
|
3066
|
+
margin-top: 24px;
|
3067
|
+
}
|
3047
3068
|
.mfui-container .mfui-audio-player + .mfui-text-box {
|
3048
3069
|
margin-top: 32px;
|
3049
3070
|
}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import "core-js/modules/es.array.concat";
|
2
|
-
import "core-js/modules/es.string.link";
|
3
1
|
import _extends from "@babel/runtime/helpers/extends";
|
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';
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import "core-js/modules/es.array.map";
|
2
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
|
+
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';
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import "core-js/modules/es.array.map";
|
2
1
|
import _extends from "@babel/runtime/helpers/extends";
|
3
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
3
|
+
import "core-js/modules/es.array.map.js";
|
4
4
|
|
5
5
|
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
6
6
|
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { Notification } from '@megafon/ui-core';
|
3
|
+
import './style/NotificationBox.less';
|
4
|
+
export declare const Align: {
|
5
|
+
readonly LEFT: "left";
|
6
|
+
readonly CENTER: "center";
|
7
|
+
};
|
8
|
+
declare type AlignType = typeof Align[keyof typeof Align];
|
9
|
+
declare type NotificationProps = React.ComponentProps<typeof Notification>;
|
10
|
+
declare type NotificationBoxProps = Omit<NotificationProps, 'isColored'> & {
|
11
|
+
/** Горизонтальное выравнивание */
|
12
|
+
align?: AlignType;
|
13
|
+
};
|
14
|
+
declare const NotificationBox: React.FC<NotificationBoxProps>;
|
15
|
+
export default NotificationBox;
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
2
|
+
import "core-js/modules/es.array.index-of.js";
|
3
|
+
import "core-js/modules/es.symbol.js";
|
4
|
+
import "core-js/modules/es.object.values.js";
|
5
|
+
|
6
|
+
var __rest = this && this.__rest || function (s, e) {
|
7
|
+
var t = {};
|
8
|
+
|
9
|
+
for (var p in s) {
|
10
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
11
|
+
}
|
12
|
+
|
13
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
14
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
15
|
+
}
|
16
|
+
return t;
|
17
|
+
};
|
18
|
+
|
19
|
+
import * as React from 'react';
|
20
|
+
import { Notification } from '@megafon/ui-core';
|
21
|
+
import { cnCreate } from '@megafon/ui-helpers';
|
22
|
+
import PropTypes from 'prop-types';
|
23
|
+
import "./style/NotificationBox.css";
|
24
|
+
export var Align = {
|
25
|
+
LEFT: 'left',
|
26
|
+
CENTER: 'center'
|
27
|
+
};
|
28
|
+
var cn = cnCreate('mfui-notification-box');
|
29
|
+
|
30
|
+
var NotificationBox = function NotificationBox(_a) {
|
31
|
+
var _a$align = _a.align,
|
32
|
+
align = _a$align === void 0 ? 'left' : _a$align,
|
33
|
+
restProps = __rest(_a, ["align"]);
|
34
|
+
|
35
|
+
return /*#__PURE__*/React.createElement("div", {
|
36
|
+
className: cn({
|
37
|
+
align: align
|
38
|
+
})
|
39
|
+
}, /*#__PURE__*/React.createElement("div", {
|
40
|
+
className: cn('notification')
|
41
|
+
}, /*#__PURE__*/React.createElement(Notification, _extends({}, restProps, {
|
42
|
+
isColored: false
|
43
|
+
}))));
|
44
|
+
};
|
45
|
+
|
46
|
+
NotificationBox.propTypes = {
|
47
|
+
align: PropTypes.oneOf(Object.values(Align))
|
48
|
+
};
|
49
|
+
export default NotificationBox;
|
@@ -0,0 +1,28 @@
|
|
1
|
+
h1,
|
2
|
+
h2,
|
3
|
+
h3,
|
4
|
+
h4,
|
5
|
+
h5 {
|
6
|
+
margin: 0;
|
7
|
+
}
|
8
|
+
.mfui-notification-box {
|
9
|
+
display: -webkit-box;
|
10
|
+
display: -ms-flexbox;
|
11
|
+
display: flex;
|
12
|
+
}
|
13
|
+
.mfui-notification-box:not(:first-child) {
|
14
|
+
margin-top: 24px;
|
15
|
+
}
|
16
|
+
.mfui-notification-box__notification {
|
17
|
+
max-width: 740px;
|
18
|
+
}
|
19
|
+
.mfui-notification-box_align_left {
|
20
|
+
-webkit-box-pack: start;
|
21
|
+
-ms-flex-pack: start;
|
22
|
+
justify-content: flex-start;
|
23
|
+
}
|
24
|
+
.mfui-notification-box_align_center {
|
25
|
+
-webkit-box-pack: center;
|
26
|
+
-ms-flex-pack: center;
|
27
|
+
justify-content: center;
|
28
|
+
}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import "core-js/modules/es.array.map";
|
2
|
-
import "core-js/modules/es.array.slice";
|
3
1
|
import _extends from "@babel/runtime/helpers/extends";
|
4
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
5
3
|
|
6
4
|
var _slidesSettings;
|
7
5
|
|
6
|
+
import "core-js/modules/es.array.map.js";
|
7
|
+
import "core-js/modules/es.array.slice.js";
|
8
8
|
import * as React from 'react';
|
9
9
|
import { Grid, GridColumn, Tile, Carousel } from '@megafon/ui-core';
|
10
10
|
import { breakpoints, cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import "core-js/modules/es.symbol";
|
2
|
-
import "core-js/modules/es.symbol.description";
|
3
|
-
import "core-js/modules/es.array.map";
|
4
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
|
+
import "core-js/modules/es.array.map.js";
|
3
|
+
import "core-js/modules/es.symbol.js";
|
4
|
+
import "core-js/modules/es.symbol.description.js";
|
5
5
|
import React from 'react';
|
6
6
|
import { Header, Grid, GridColumn } from '@megafon/ui-core';
|
7
7
|
import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
@@ -14,9 +14,11 @@ var StepsItem = function StepsItem(_ref) {
|
|
14
14
|
className: cn('step-number')
|
15
15
|
}, index), /*#__PURE__*/React.createElement("div", {
|
16
16
|
className: cn('text-wrapper')
|
17
|
-
}, /*#__PURE__*/React.createElement(Paragraph, {
|
17
|
+
}, typeof text === 'string' ? /*#__PURE__*/React.createElement(Paragraph, {
|
18
18
|
hasMargin: false
|
19
|
-
},
|
19
|
+
}, convert(text, textConvertConfig)) : /*#__PURE__*/React.createElement("div", {
|
20
|
+
className: cn('nodes')
|
21
|
+
}, text)));
|
20
22
|
};
|
21
23
|
|
22
24
|
StepsItem.propTypes = {
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import "core-js/modules/es.object.values";
|
2
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
|
+
import "core-js/modules/es.object.values.js";
|
3
3
|
import * as React from 'react';
|
4
4
|
import { Button, Grid, GridColumn, Header, Paragraph } from '@megafon/ui-core';
|
5
5
|
import { cnCreate, filterDataAttrs, convert, titleConvertConfig, textConvertConfig } from '@megafon/ui-helpers';
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import "core-js/modules/es.symbol";
|
2
|
-
import "core-js/modules/es.array.index-of";
|
3
|
-
import "core-js/modules/es.object.values";
|
4
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
|
+
import "core-js/modules/es.array.index-of.js";
|
3
|
+
import "core-js/modules/es.symbol.js";
|
4
|
+
import "core-js/modules/es.object.values.js";
|
5
5
|
|
6
6
|
var __rest = this && this.__rest || function (s, e) {
|
7
7
|
var t = {};
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import "core-js/modules/es.array.map";
|
2
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
2
|
+
import "core-js/modules/es.array.map.js";
|
3
3
|
import * as React from 'react';
|
4
4
|
import { cnCreate, detectTouch } from '@megafon/ui-helpers';
|
5
5
|
import convert from 'htmr';
|
@@ -14,6 +14,8 @@ export interface ITextBoxPictureProps {
|
|
14
14
|
margin?: PictureMarginTypesType;
|
15
15
|
/** Значение тега alt для изображения */
|
16
16
|
alt?: string;
|
17
|
+
/** Отключить отображение рамки вокруг картинки */
|
18
|
+
disableBorder?: boolean;
|
17
19
|
}
|
18
20
|
declare const TextBoxPicture: React.FC<ITextBoxPictureProps>;
|
19
21
|
export default TextBoxPicture;
|
@@ -14,13 +14,17 @@ var TextBoxPicture = function TextBoxPicture(_ref) {
|
|
14
14
|
var url = _ref.url,
|
15
15
|
_ref$margin = _ref.margin,
|
16
16
|
margin = _ref$margin === void 0 ? pictureMarginTypes.DEFAULT : _ref$margin,
|
17
|
-
alt = _ref.alt
|
17
|
+
alt = _ref.alt,
|
18
|
+
_ref$disableBorder = _ref.disableBorder,
|
19
|
+
disableBorder = _ref$disableBorder === void 0 ? false : _ref$disableBorder;
|
18
20
|
return /*#__PURE__*/React.createElement("div", {
|
19
21
|
className: cn({
|
20
22
|
margin: margin
|
21
23
|
})
|
22
24
|
}, /*#__PURE__*/React.createElement("img", {
|
23
|
-
className: cn('img'
|
25
|
+
className: cn('img', {
|
26
|
+
'no-border': disableBorder
|
27
|
+
}),
|
24
28
|
src: url,
|
25
29
|
alt: alt
|
26
30
|
}));
|
@@ -29,6 +33,7 @@ var TextBoxPicture = function TextBoxPicture(_ref) {
|
|
29
33
|
TextBoxPicture.propTypes = {
|
30
34
|
url: PropTypes.string.isRequired,
|
31
35
|
margin: PropTypes.oneOf([pictureMarginTypes.DEFAULT, pictureMarginTypes.BIG_TOP, pictureMarginTypes.BIG_BOTTOM, pictureMarginTypes.BIG_VERTICAL]),
|
32
|
-
alt: PropTypes.string
|
36
|
+
alt: PropTypes.string,
|
37
|
+
disableBorder: PropTypes.bool
|
33
38
|
};
|
34
39
|
export default TextBoxPicture;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import "core-js/modules/es.array.is-array";
|
2
|
-
import "core-js/modules/es.array.map";
|
3
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
|
+
import "core-js/modules/es.array.is-array.js";
|
3
|
+
import "core-js/modules/es.array.map.js";
|
4
4
|
import * as React from 'react';
|
5
5
|
import { cnCreate, convert, filterDataAttrs, textConvertConfig } from '@megafon/ui-helpers';
|
6
6
|
import * as PropTypes from 'prop-types';
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import "core-js/modules/es.symbol";
|
2
|
-
import "core-js/modules/es.symbol.description";
|
3
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
|
+
import "core-js/modules/es.symbol.js";
|
3
|
+
import "core-js/modules/es.symbol.description.js";
|
4
4
|
import * as React from 'react';
|
5
5
|
import { Header, Paragraph, Grid, GridColumn } from '@megafon/ui-core';
|
6
6
|
import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import "core-js/modules/es.symbol";
|
2
|
-
import "core-js/modules/es.symbol.description";
|
3
|
-
import "core-js/modules/es.array.concat";
|
4
|
-
import "core-js/modules/es.object.values";
|
5
|
-
import "core-js/modules/es.string.link";
|
6
1
|
import _extends from "@babel/runtime/helpers/extends";
|
7
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
3
|
+
import "core-js/modules/es.symbol.js";
|
4
|
+
import "core-js/modules/es.symbol.description.js";
|
5
|
+
import "core-js/modules/es.string.link.js";
|
6
|
+
import "core-js/modules/es.array.concat.js";
|
7
|
+
import "core-js/modules/es.object.values.js";
|
8
8
|
import React from 'react';
|
9
9
|
import { Button, Header, ContentArea, TextLink, Grid, GridColumn } from '@megafon/ui-core';
|
10
10
|
import { breakpoints, cnCreate, filterDataAttrs, convert, titleConvertConfig } from '@megafon/ui-helpers';
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import "core-js/modules/es.symbol";
|
2
|
-
import "core-js/modules/es.symbol.description";
|
3
|
-
import "core-js/modules/es.array.concat";
|
4
|
-
import "core-js/modules/es.object.values";
|
5
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
|
+
import "core-js/modules/es.array.concat.js";
|
3
|
+
import "core-js/modules/es.symbol.js";
|
4
|
+
import "core-js/modules/es.symbol.description.js";
|
5
|
+
import "core-js/modules/es.object.values.js";
|
6
6
|
import React from 'react';
|
7
7
|
import { Header, Button, Grid, GridColumn } from '@megafon/ui-core';
|
8
8
|
import { cnCreate, filterDataAttrs, convert, titleConvertConfig, textConvertConfig } from '@megafon/ui-helpers';
|
package/dist/es/index.d.ts
CHANGED
@@ -19,6 +19,7 @@ export { default as DownloadLink } from './components/DownloadLinks/DownloadLink
|
|
19
19
|
export { default as DownloadLinks } from './components/DownloadLinks/DownloadLinks';
|
20
20
|
export { default as FaqWrapper } from './components/FaqWrapper/FaqWrapper';
|
21
21
|
export { default as Instructions } from './components/Instructions/Instructions';
|
22
|
+
export { default as NotificationBox } from './components/NotificationBox/NotificationBox';
|
22
23
|
export { default as PageTitle } from './components/PageTitle/PageTitle';
|
23
24
|
export { default as Partners } from './components/Partners/Partners';
|
24
25
|
export { default as PictureWithDescription } from './components/PictureWithDescription/PictureWithDescription';
|
package/dist/es/index.js
CHANGED
@@ -19,6 +19,7 @@ export { default as DownloadLink } from "./components/DownloadLinks/DownloadLink
|
|
19
19
|
export { default as DownloadLinks } from "./components/DownloadLinks/DownloadLinks";
|
20
20
|
export { default as FaqWrapper } from "./components/FaqWrapper/FaqWrapper";
|
21
21
|
export { default as Instructions } from "./components/Instructions/Instructions";
|
22
|
+
export { default as NotificationBox } from "./components/NotificationBox/NotificationBox";
|
22
23
|
export { default as PageTitle } from "./components/PageTitle/PageTitle";
|
23
24
|
export { default as Partners } from "./components/Partners/Partners";
|
24
25
|
export { default as PictureWithDescription } from "./components/PictureWithDescription/PictureWithDescription";
|
@@ -7,9 +7,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
7
7
|
});
|
8
8
|
exports["default"] = void 0;
|
9
9
|
|
10
|
-
require("core-js/modules/es.
|
10
|
+
require("core-js/modules/es.array.index-of.js");
|
11
11
|
|
12
|
-
require("core-js/modules/es.
|
12
|
+
require("core-js/modules/es.symbol.js");
|
13
13
|
|
14
14
|
var React = _interopRequireWildcard(require("react"));
|
15
15
|
|
@@ -21,9 +21,9 @@ var PropTypes = _interopRequireWildcard(require("prop-types"));
|
|
21
21
|
|
22
22
|
var _getColumnConfig = require("../../helpers/getColumnConfig");
|
23
23
|
|
24
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
24
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
25
25
|
|
26
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
26
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
27
27
|
|
28
28
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
29
29
|
var t = {};
|