@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.
Files changed (93) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/es/components/AccordionBox/AccordionBox.js +2 -2
  3. package/dist/es/components/AudioPlayer/AudioProgress.js +2 -2
  4. package/dist/es/components/AudioPlayer/AudioVolume.js +1 -1
  5. package/dist/es/components/AudioPlayer/style/AudioPlayer.css +1 -1
  6. package/dist/es/components/AudioPlayer/timerFormatUtil.js +2 -2
  7. package/dist/es/components/BannerBox/BannerBox.js +2 -2
  8. package/dist/es/components/BenefitsIcons/BenefitsIcons.js +2 -2
  9. package/dist/es/components/BenefitsIcons/BenefitsIconsTile.js +1 -1
  10. package/dist/es/components/BenefitsPictures/BenefitsPictures.js +1 -1
  11. package/dist/es/components/Breadcrumbs/Breadcrumbs.js +4 -4
  12. package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.js +2 -2
  13. package/dist/es/components/ButtonBanner/ButtonBanner.js +1 -1
  14. package/dist/es/components/ButtonLinkBox/ButtonLinkBox.js +1 -1
  15. package/dist/es/components/Card/Card.js +2 -2
  16. package/dist/es/components/CardsBox/CardsBox.js +1 -1
  17. package/dist/es/components/CarouselBox/CarouselBox.js +2 -2
  18. package/dist/es/components/Container/Container.css +21 -0
  19. package/dist/es/components/Container/Container.js +1 -1
  20. package/dist/es/components/DownloadLinks/DownloadLink.js +2 -2
  21. package/dist/es/components/DownloadLinks/DownloadLinks.js +1 -1
  22. package/dist/es/components/Instructions/Instructions.js +1 -1
  23. package/dist/es/components/NotificationBox/NotificationBox.d.ts +15 -0
  24. package/dist/es/components/NotificationBox/NotificationBox.js +49 -0
  25. package/dist/es/components/NotificationBox/style/NotificationBox.css +28 -0
  26. package/dist/es/components/Partners/Partners.js +2 -2
  27. package/dist/es/components/Property/Property.js +3 -3
  28. package/dist/es/components/Steps/Steps.js +1 -1
  29. package/dist/es/components/Steps/StepsItem.css +5 -0
  30. package/dist/es/components/Steps/StepsItem.js +4 -2
  31. package/dist/es/components/StoreBanner/StoreBanner.js +1 -1
  32. package/dist/es/components/StoreButton/StoreButton.js +3 -3
  33. package/dist/es/components/Table/Table.js +1 -1
  34. package/dist/es/components/TabsBox/TabsBox.js +2 -2
  35. package/dist/es/components/TextBox/TextBoxPicture.css +3 -0
  36. package/dist/es/components/TextBox/TextBoxPicture.d.ts +2 -0
  37. package/dist/es/components/TextBox/TextBoxPicture.js +8 -3
  38. package/dist/es/components/TextWithIcon/TextWithIconItem.js +2 -2
  39. package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.js +2 -2
  40. package/dist/es/components/VideoBanner/VideoBanner.js +5 -5
  41. package/dist/es/components/VideoBlock/VideoBlock.js +4 -4
  42. package/dist/es/index.d.ts +1 -0
  43. package/dist/es/index.js +1 -0
  44. package/dist/lib/components/AccordionBox/AccordionBox.js +4 -4
  45. package/dist/lib/components/AudioPlayer/AudioProgress.js +3 -3
  46. package/dist/lib/components/AudioPlayer/AudioVolume.js +2 -2
  47. package/dist/lib/components/AudioPlayer/style/AudioPlayer.css +1 -1
  48. package/dist/lib/components/AudioPlayer/timerFormatUtil.js +2 -2
  49. package/dist/lib/components/BannerBox/BannerBox.js +4 -4
  50. package/dist/lib/components/BenefitsIcons/BenefitsIcons.js +6 -6
  51. package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.js +3 -3
  52. package/dist/lib/components/BenefitsPictures/BenefitsPictures.js +4 -4
  53. package/dist/lib/components/Breadcrumbs/Breadcrumbs.js +7 -7
  54. package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.js +3 -3
  55. package/dist/lib/components/ButtonBanner/ButtonBanner.js +4 -4
  56. package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.js +4 -4
  57. package/dist/lib/components/Card/Card.js +3 -3
  58. package/dist/lib/components/CardsBox/CardsBox.js +4 -4
  59. package/dist/lib/components/CarouselBox/CarouselBox.js +4 -4
  60. package/dist/lib/components/Container/Container.css +21 -0
  61. package/dist/lib/components/Container/Container.js +1 -1
  62. package/dist/lib/components/DownloadLinks/DownloadLink.js +5 -5
  63. package/dist/lib/components/DownloadLinks/DownloadLinks.js +4 -4
  64. package/dist/lib/components/Instructions/Instructions.js +2 -2
  65. package/dist/lib/components/NotificationBox/NotificationBox.d.ts +15 -0
  66. package/dist/lib/components/NotificationBox/NotificationBox.js +72 -0
  67. package/dist/lib/components/NotificationBox/style/NotificationBox.css +28 -0
  68. package/dist/lib/components/PageTitle/PageTitle.js +2 -2
  69. package/dist/lib/components/Partners/Partners.js +6 -6
  70. package/dist/lib/components/PictureWithDescription/PictureWithDescription.js +2 -2
  71. package/dist/lib/components/Property/Property.js +4 -4
  72. package/dist/lib/components/Property/PropertyDescription.js +2 -2
  73. package/dist/lib/components/Steps/Steps.js +3 -3
  74. package/dist/lib/components/Steps/StepsItem.css +5 -0
  75. package/dist/lib/components/Steps/StepsItem.js +4 -2
  76. package/dist/lib/components/StoreBanner/StoreBanner.js +4 -4
  77. package/dist/lib/components/StoreButton/StoreButton.js +6 -6
  78. package/dist/lib/components/Table/Table.js +4 -4
  79. package/dist/lib/components/Table/TableCell.js +2 -2
  80. package/dist/lib/components/Table/TableRow.js +2 -2
  81. package/dist/lib/components/TabsBox/TabsBox.js +4 -4
  82. package/dist/lib/components/TextBox/TextBox.js +2 -2
  83. package/dist/lib/components/TextBox/TextBoxPicture.css +3 -0
  84. package/dist/lib/components/TextBox/TextBoxPicture.d.ts +2 -0
  85. package/dist/lib/components/TextBox/TextBoxPicture.js +10 -5
  86. package/dist/lib/components/TextWithIcon/TextWithIcon.js +2 -2
  87. package/dist/lib/components/TextWithIcon/TextWithIconItem.js +5 -5
  88. package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.js +5 -5
  89. package/dist/lib/components/VideoBanner/VideoBanner.js +9 -9
  90. package/dist/lib/components/VideoBlock/VideoBlock.js +5 -5
  91. package/dist/lib/index.d.ts +1 -0
  92. package/dist/lib/index.js +8 -0
  93. 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,5 +1,5 @@
1
- import "core-js/modules/es.symbol";
2
- import "core-js/modules/es.array.index-of";
1
+ import "core-js/modules/es.array.index-of.js";
2
+ import "core-js/modules/es.symbol.js";
3
3
 
4
4
  var __rest = this && this.__rest || function (s, e) {
5
5
  var t = {};
@@ -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';
@@ -6,7 +6,7 @@ h5 {
6
6
  margin: 0;
7
7
  }
8
8
  .mfui-audio-player {
9
- margin-top: 32px;
9
+ margin-top: 24px;
10
10
  }
11
11
  .mfui-audio-player__player {
12
12
  display: -webkit-box;
@@ -1,5 +1,5 @@
1
- import "core-js/modules/es.array.concat";
2
- import "core-js/modules/es.parse-int";
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,5 +1,5 @@
1
- import "core-js/modules/es.symbol";
2
- import "core-js/modules/es.array.index-of";
1
+ import "core-js/modules/es.array.index-of.js";
2
+ import "core-js/modules/es.symbol.js";
3
3
 
4
4
  var __rest = this && this.__rest || function (s, e) {
5
5
  var t = {};
@@ -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,4 +1,4 @@
1
- import "core-js/modules/es.object.values";
1
+ import "core-js/modules/es.object.values.js";
2
2
  import * as React from 'react';
3
3
  import { Header } from '@megafon/ui-core';
4
4
  import { cnCreate } 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';
@@ -1,5 +1,5 @@
1
- import "core-js/modules/es.symbol";
2
- import "core-js/modules/es.array.index-of";
1
+ import "core-js/modules/es.array.index-of.js";
2
+ import "core-js/modules/es.symbol.js";
3
3
 
4
4
  var __rest = this && this.__rest || function (s, e) {
5
5
  var t = {};
@@ -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,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';
@@ -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';
@@ -1,4 +1,4 @@
1
- import "core-js/modules/es.array.map";
1
+ import "core-js/modules/es.array.map.js";
2
2
  import * as React from 'react';
3
3
  import { Header } from '@megafon/ui-core';
4
4
  import { cnCreate, convert, titleConvertConfig } from '@megafon/ui-helpers';
@@ -35,3 +35,8 @@ h5 {
35
35
  padding-top: 8px;
36
36
  padding-left: 16px;
37
37
  }
38
+ .mfui-steps-item__nodes {
39
+ font-size: 15px;
40
+ line-height: 24px;
41
+ font-weight: 400;
42
+ }
@@ -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
- }, typeof text === 'string' ? convert(text, textConvertConfig) : text)));
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';
@@ -1,5 +1,5 @@
1
- import "core-js/modules/es.symbol";
2
- import "core-js/modules/es.array.index-of";
1
+ import "core-js/modules/es.array.index-of.js";
2
+ import "core-js/modules/es.symbol.js";
3
3
 
4
4
  var __rest = this && this.__rest || function (s, e) {
5
5
  var t = {};
@@ -22,3 +22,6 @@ h5 {
22
22
  max-width: 100%;
23
23
  border: 1px solid var(--spbSky1);
24
24
  }
25
+ .mfui-text-box-picture__img_no-border {
26
+ border: none;
27
+ }
@@ -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';
@@ -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.symbol");
10
+ require("core-js/modules/es.array.index-of.js");
11
11
 
12
- require("core-js/modules/es.array.index-of");
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 cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
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 = {};