@megafon/ui-shared 4.18.3 → 4.20.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 +36 -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 +41 -0
- package/dist/es/components/Container/Container.d.ts +2 -0
- package/dist/es/components/Container/Container.js +7 -3
- 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.css +10 -0
- package/dist/es/components/VideoBanner/VideoBanner.d.ts +2 -0
- package/dist/es/components/VideoBanner/VideoBanner.js +15 -9
- 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 +41 -0
- package/dist/lib/components/Container/Container.d.ts +2 -0
- package/dist/lib/components/Container/Container.js +7 -3
- 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.css +10 -0
- package/dist/lib/components/VideoBanner/VideoBanner.d.ts +2 -0
- package/dist/lib/components/VideoBanner/VideoBanner.js +19 -13
- 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,42 @@
|
|
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.20.0](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@4.19.0...@megafon/ui-shared@4.20.0) (2023-05-23)
|
7
|
+
|
8
|
+
|
9
|
+
### Bug Fixes
|
10
|
+
|
11
|
+
* **counterbadge:** fix required props ([6824153](https://github.com/MegafonWebLab/megafon-ui/commit/6824153b4f2543eb3961cd408c447c8bcb9cd83d))
|
12
|
+
|
13
|
+
|
14
|
+
### Features
|
15
|
+
|
16
|
+
* **container:** add bottomShadow props ([b8d8249](https://github.com/MegafonWebLab/megafon-ui/commit/b8d82492b7300211548b71049820264bdc54a761))
|
17
|
+
* **videobanner:** add bottomShadow prop ([b103f1d](https://github.com/MegafonWebLab/megafon-ui/commit/b103f1defc5562bd50ef1ff5dcd5e568310378cf))
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
# [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)
|
24
|
+
|
25
|
+
|
26
|
+
### Bug Fixes
|
27
|
+
|
28
|
+
* **audioplayer:** fix margin-top style ([0bde07a](https://github.com/MegafonWebLab/megafon-ui/commit/0bde07a42675da3a2c83ab1fb77f63e3924d8a4b))
|
29
|
+
|
30
|
+
|
31
|
+
### Features
|
32
|
+
|
33
|
+
* **container:** add margins for NotificationBox ([ce2334a](https://github.com/MegafonWebLab/megafon-ui/commit/ce2334ae8c8448abdb66d72831e51bba65e15a03))
|
34
|
+
* **notificationbox:** add new component NotificationBox ([1ec74b8](https://github.com/MegafonWebLab/megafon-ui/commit/1ec74b8911a50a03dfe712b860916a32f80437ac))
|
35
|
+
* **stepsitem:** render text without paragraph when text is react nodes ([dc43c69](https://github.com/MegafonWebLab/megafon-ui/commit/dc43c69b73e38e288dee0a22b6c8e4f8a51221fd))
|
36
|
+
* **textboxpicture:** add disableBorder props ([a39bfbb](https://github.com/MegafonWebLab/megafon-ui/commit/a39bfbba2e56dc6edfe29063e46e836213cf16e2))
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
|
6
42
|
## [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)
|
7
43
|
|
8
44
|
**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';
|
@@ -6,6 +6,7 @@ h5 {
|
|
6
6
|
margin: 0;
|
7
7
|
}
|
8
8
|
.mfui-container {
|
9
|
+
position: relative;
|
9
10
|
padding-bottom: 96px;
|
10
11
|
}
|
11
12
|
.mfui-container_bg-color_default {
|
@@ -27,11 +28,17 @@ h5 {
|
|
27
28
|
.mfui-container {
|
28
29
|
padding-bottom: 72px;
|
29
30
|
}
|
31
|
+
.mfui-container_bottom-shadow:after {
|
32
|
+
bottom: 72px !important;
|
33
|
+
}
|
30
34
|
}
|
31
35
|
@media screen and (max-width: 767px) {
|
32
36
|
.mfui-container {
|
33
37
|
padding-bottom: 48px;
|
34
38
|
}
|
39
|
+
.mfui-container_bottom-shadow:after {
|
40
|
+
bottom: 48px !important;
|
41
|
+
}
|
35
42
|
}
|
36
43
|
.mfui-container_bg-color_default + .mfui-container_bg-color_light-gray {
|
37
44
|
padding-top: 96px;
|
@@ -347,6 +354,9 @@ h5 {
|
|
347
354
|
.mfui-container .mfui-title-description-box + .mfui-text-with-icon {
|
348
355
|
margin-top: 24px;
|
349
356
|
}
|
357
|
+
.mfui-container .mfui-title-description-box + .mfui-notification-box {
|
358
|
+
margin-top: 24px;
|
359
|
+
}
|
350
360
|
.mfui-container .mfui-title-description-box + .mfui-audio-player {
|
351
361
|
margin-top: 32px;
|
352
362
|
}
|
@@ -1809,6 +1819,9 @@ h5 {
|
|
1809
1819
|
.mfui-container .mfui-property + .mfui-steps {
|
1810
1820
|
margin-top: 56px;
|
1811
1821
|
}
|
1822
|
+
.mfui-container .mfui-property + .mfui-notification-box {
|
1823
|
+
margin-top: 24px;
|
1824
|
+
}
|
1812
1825
|
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
1813
1826
|
.mfui-container .mfui-property + .mfui-benefits-icons {
|
1814
1827
|
margin-top: 48px;
|
@@ -2238,6 +2251,9 @@ h5 {
|
|
2238
2251
|
.mfui-container .mfui-text-box + .mfui-text-with-icon {
|
2239
2252
|
margin-top: 32px;
|
2240
2253
|
}
|
2254
|
+
.mfui-container .mfui-text-box + .mfui-notification-box {
|
2255
|
+
margin-top: 24px;
|
2256
|
+
}
|
2241
2257
|
.mfui-container .mfui-text-box + .mfui-audio-player {
|
2242
2258
|
margin-top: 32px;
|
2243
2259
|
}
|
@@ -2773,6 +2789,9 @@ h5 {
|
|
2773
2789
|
.mfui-container .mfui-page-title + .mfui-picture-with-description {
|
2774
2790
|
margin-top: 56px;
|
2775
2791
|
}
|
2792
|
+
.mfui-container .mfui-page-title + .mfui-notification-box {
|
2793
|
+
margin-top: 24px;
|
2794
|
+
}
|
2776
2795
|
.mfui-container .mfui-page-title + .mfui-audio-player {
|
2777
2796
|
margin-top: 32px;
|
2778
2797
|
}
|
@@ -3044,6 +3063,15 @@ h5 {
|
|
3044
3063
|
margin-top: 56px;
|
3045
3064
|
}
|
3046
3065
|
}
|
3066
|
+
.mfui-container .mfui-notification-box + .mfui-property {
|
3067
|
+
margin-top: 32px;
|
3068
|
+
}
|
3069
|
+
.mfui-container .mfui-notification-box + .mfui-text-box {
|
3070
|
+
margin-top: 24px;
|
3071
|
+
}
|
3072
|
+
.mfui-container .mfui-notification-box + .mfui-page-title {
|
3073
|
+
margin-top: 24px;
|
3074
|
+
}
|
3047
3075
|
.mfui-container .mfui-audio-player + .mfui-text-box {
|
3048
3076
|
margin-top: 32px;
|
3049
3077
|
}
|
@@ -3052,9 +3080,22 @@ h5 {
|
|
3052
3080
|
margin-top: 24px;
|
3053
3081
|
}
|
3054
3082
|
}
|
3083
|
+
.mfui-container_bottom-shadow:after {
|
3084
|
+
content: '';
|
3085
|
+
position: absolute;
|
3086
|
+
right: 0;
|
3087
|
+
bottom: 96px;
|
3088
|
+
width: 100%;
|
3089
|
+
height: 100%;
|
3090
|
+
background: -webkit-gradient(linear, left top, left bottom, color-stop(95.25%, rgba(255, 255, 255, 0)), to(rgba(0, 0, 0, 0.024)));
|
3091
|
+
background: linear-gradient(180deg, rgba(255, 255, 255, 0) 95.25%, rgba(0, 0, 0, 0.024) 100%);
|
3092
|
+
}
|
3055
3093
|
.mfui-container_disable-padding-top {
|
3056
3094
|
padding-top: 0 !important;
|
3057
3095
|
}
|
3058
3096
|
.mfui-container_disable-padding-bottom {
|
3059
3097
|
padding-bottom: 0 !important;
|
3060
3098
|
}
|
3099
|
+
.mfui-container_disable-padding-bottom.mfui-container_bottom-shadow:after {
|
3100
|
+
bottom: 0 !important;
|
3101
|
+
}
|
@@ -21,6 +21,8 @@ declare type Props = {
|
|
21
21
|
disablePaddingTop?: boolean;
|
22
22
|
/** Отключить отступ снизу */
|
23
23
|
disablePaddingBottom?: boolean;
|
24
|
+
/** Включить тень в нижней части компонента */
|
25
|
+
bottomShadow?: boolean;
|
24
26
|
};
|
25
27
|
declare const Container: React.FC<Props>;
|
26
28
|
export default Container;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import "core-js/modules/es.object.values";
|
1
|
+
import "core-js/modules/es.object.values.js";
|
2
2
|
import React from 'react';
|
3
3
|
import { ContentArea } from '@megafon/ui-core';
|
4
4
|
import { cnCreate } from '@megafon/ui-helpers';
|
@@ -21,10 +21,13 @@ var Container = function Container(_ref) {
|
|
21
21
|
className = _ref.className,
|
22
22
|
children = _ref.children,
|
23
23
|
disablePaddingTop = _ref.disablePaddingTop,
|
24
|
-
disablePaddingBottom = _ref.disablePaddingBottom
|
24
|
+
disablePaddingBottom = _ref.disablePaddingBottom,
|
25
|
+
_ref$bottomShadow = _ref.bottomShadow,
|
26
|
+
bottomShadow = _ref$bottomShadow === void 0 ? false : _ref$bottomShadow;
|
25
27
|
return /*#__PURE__*/React.createElement("div", {
|
26
28
|
className: cn({
|
27
29
|
'bg-color': backgroundColor,
|
30
|
+
'bottom-shadow': bottomShadow,
|
28
31
|
'disable-padding-top': disablePaddingTop,
|
29
32
|
'disable-padding-bottom': disablePaddingBottom
|
30
33
|
}, [className]),
|
@@ -41,6 +44,7 @@ Container.propTypes = {
|
|
41
44
|
current: PropTypes.elementType
|
42
45
|
}), PropTypes.any])]),
|
43
46
|
disablePaddingTop: PropTypes.bool,
|
44
|
-
disablePaddingBottom: PropTypes.bool
|
47
|
+
disablePaddingBottom: PropTypes.bool,
|
48
|
+
bottomShadow: PropTypes.bool
|
45
49
|
};
|
46
50
|
export default Container;
|
@@ -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';
|