@megafon/ui-shared 6.0.0-beta.3 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4031 -0
- package/dist/es/components/AccordionBox/AccordionBox.css +15 -1
- package/dist/es/components/AccordionBox/AccordionBox.d.ts +2 -2
- package/dist/es/components/AccordionBox/AccordionBox.js +49 -6
- package/dist/es/components/AudioPlayer/AudioPlayer.d.ts +2 -2
- package/dist/es/components/AudioPlayer/AudioPlayer.js +27 -11
- package/dist/es/components/AudioPlayer/AudioProgress.d.ts +1 -1
- package/dist/es/components/AudioPlayer/AudioProgress.js +22 -10
- package/dist/es/components/AudioPlayer/AudioRange.d.ts +1 -1
- package/dist/es/components/AudioPlayer/AudioRange.js +10 -8
- package/dist/es/components/AudioPlayer/AudioVolume.d.ts +1 -1
- package/dist/es/components/AudioPlayer/AudioVolume.js +12 -3
- package/dist/es/components/AudioPlayer/hooks/useTrackDuration.js +10 -4
- package/dist/es/components/AudioPlayer/style/AudioPlayer.css +58 -1
- package/dist/es/components/AudioPlayer/style/AudioProgress.css +35 -1
- package/dist/es/components/AudioPlayer/style/AudioRange.css +68 -1
- package/dist/es/components/AudioPlayer/style/AudioVolume.css +34 -1
- package/dist/es/components/AudioPlayer/timerFormatUtil.js +9 -1
- package/dist/es/components/BannerBox/BannerBox.d.ts +1 -1
- package/dist/es/components/BannerBox/BannerBox.js +12 -3
- package/dist/es/components/BenefitsIcons/BenefitsIcons.d.ts +1 -1
- package/dist/es/components/BenefitsIcons/BenefitsIcons.js +64 -23
- package/dist/es/components/BenefitsIcons/BenefitsIconsTile.d.ts +1 -1
- package/dist/es/components/BenefitsIcons/BenefitsIconsTile.js +36 -9
- package/dist/es/components/BenefitsIcons/helpers.d.ts +3 -3
- package/dist/es/components/BenefitsIcons/helpers.js +20 -6
- package/dist/es/components/BenefitsIcons/style/BenefitsIcons.css +38 -1
- package/dist/es/components/BenefitsIcons/style/BenefitsIconsTile.css +90 -1
- package/dist/es/components/BenefitsIcons/types.d.ts +5 -5
- package/dist/es/components/BenefitsPictures/BenefitsPictures.d.ts +1 -1
- package/dist/es/components/BenefitsPictures/BenefitsPictures.js +49 -19
- package/dist/es/components/BenefitsPictures/BenfitsPictures.css +43 -1
- package/dist/es/components/BenefitsPictures/helpers.d.ts +2 -2
- package/dist/es/components/BenefitsPictures/helpers.js +14 -0
- package/dist/es/components/BenefitsPictures/types.d.ts +3 -3
- package/dist/es/components/BenefitsPictures/types.js +0 -1
- package/dist/es/components/Breadcrumbs/Breadcrumbs.css +43 -1
- package/dist/es/components/Breadcrumbs/Breadcrumbs.d.ts +6 -6
- package/dist/es/components/Breadcrumbs/Breadcrumbs.js +39 -10
- package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.css +16 -1
- package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.d.ts +4 -4
- package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.js +36 -11
- package/dist/es/components/ButtonBanner/ButtonBanner.css +122 -1
- package/dist/es/components/ButtonBanner/ButtonBanner.d.ts +7 -7
- package/dist/es/components/ButtonBanner/ButtonBanner.js +53 -22
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.css +19 -1
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.d.ts +3 -3
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.js +51 -20
- package/dist/es/components/Card/Card.css +354 -1
- package/dist/es/components/Card/Card.d.ts +4 -4
- package/dist/es/components/Card/Card.js +115 -25
- package/dist/es/components/Card/types.d.ts +10 -10
- package/dist/es/components/Card/types.js +0 -1
- package/dist/es/components/CardsBox/CardsBox.js +14 -3
- package/dist/es/components/CardsBox/helpers.d.ts +2 -2
- package/dist/es/components/CardsBox/helpers.js +4 -0
- package/dist/es/components/CarouselBox/CarouselBox.d.ts +2 -2
- package/dist/es/components/CarouselBox/CarouselBox.js +24 -11
- package/dist/es/components/Container/Container.css +3287 -1
- package/dist/es/components/Container/Container.d.ts +5 -7
- package/dist/es/components/Container/Container.js +25 -10
- package/dist/es/components/DownloadLinks/DownloadLink.css +37 -1
- package/dist/es/components/DownloadLinks/DownloadLink.d.ts +1 -1
- package/dist/es/components/DownloadLinks/DownloadLink.js +44 -13
- package/dist/es/components/DownloadLinks/DownloadLinks.css +36 -1
- package/dist/es/components/DownloadLinks/DownloadLinks.d.ts +3 -3
- package/dist/es/components/DownloadLinks/DownloadLinks.js +13 -2
- package/dist/es/components/FaqWrapper/FaqWrapper.d.ts +2 -5
- package/dist/es/components/FaqWrapper/FaqWrapper.js +3 -1
- package/dist/es/components/ImageBanner/ImageBanner.css +252 -1
- package/dist/es/components/ImageBanner/ImageBanner.d.ts +7 -8
- package/dist/es/components/ImageBanner/ImageBanner.js +88 -37
- package/dist/es/components/Instructions/Instructions.css +790 -1
- package/dist/es/components/Instructions/Instructions.d.ts +11 -11
- package/dist/es/components/Instructions/Instructions.js +94 -41
- package/dist/es/components/NotificationBox/NotificationBox.d.ts +4 -4
- package/dist/es/components/NotificationBox/NotificationBox.js +19 -5
- package/dist/es/components/NotificationBox/style/NotificationBox.css +28 -0
- package/dist/es/components/PageTitle/PageTitle.css +80 -1
- package/dist/es/components/PageTitle/PageTitle.d.ts +2 -2
- package/dist/es/components/PageTitle/PageTitle.js +37 -12
- package/dist/es/components/Partners/Partners.css +53 -1
- package/dist/es/components/Partners/Partners.d.ts +2 -2
- package/dist/es/components/Partners/Partners.js +48 -17
- package/dist/es/components/PictureWithDescription/PictureWithDescription.css +80 -1
- package/dist/es/components/PictureWithDescription/PictureWithDescription.d.ts +2 -4
- package/dist/es/components/PictureWithDescription/PictureWithDescription.js +28 -10
- package/dist/es/components/Property/Property.css +156 -1
- package/dist/es/components/Property/Property.d.ts +4 -4
- package/dist/es/components/Property/Property.js +81 -37
- package/dist/es/components/Property/PropertyDescription.css +17 -1
- package/dist/es/components/Property/PropertyDescription.d.ts +3 -3
- package/dist/es/components/Property/PropertyDescription.js +28 -8
- package/dist/es/components/Property/types.d.ts +5 -7
- package/dist/es/components/Property/types.js +0 -1
- package/dist/es/components/Steps/Steps.css +41 -1
- package/dist/es/components/Steps/Steps.d.ts +1 -2
- package/dist/es/components/Steps/Steps.js +19 -4
- package/dist/es/components/Steps/StepsItem.css +42 -1
- package/dist/es/components/Steps/StepsItem.d.ts +2 -2
- package/dist/es/components/Steps/StepsItem.js +9 -2
- package/dist/es/components/StoreBanner/StoreBanner.css +346 -1
- package/dist/es/components/StoreBanner/StoreBanner.d.ts +5 -5
- package/dist/es/components/StoreBanner/StoreBanner.js +97 -41
- package/dist/es/components/StoreBanner/doc/img/android-screen.png +0 -0
- package/dist/es/components/StoreBanner/doc/img/qr-code.png +0 -0
- package/dist/es/components/StoreBanner/doc/img/screen.png +0 -0
- package/dist/es/components/StoreButton/StoreButton.css +327 -1
- package/dist/es/components/StoreButton/StoreButton.d.ts +3 -3
- package/dist/es/components/StoreButton/StoreButton.js +44 -13
- package/dist/es/components/Table/Table.css +157 -1
- package/dist/es/components/Table/Table.d.ts +1 -1
- package/dist/es/components/Table/Table.js +51 -31
- package/dist/es/components/Table/TableCell.js +6 -0
- package/dist/es/components/Table/TableRow.js +10 -1
- package/dist/es/components/TabsBox/TabsBox.d.ts +1 -1
- package/dist/es/components/TabsBox/TabsBox.js +13 -4
- package/dist/es/components/TextBox/TextBox.css +25 -1
- package/dist/es/components/TextBox/TextBox.d.ts +1 -2
- package/dist/es/components/TextBox/TextBox.js +23 -8
- package/dist/es/components/TextBox/TextBoxPicture.css +27 -1
- package/dist/es/components/TextBox/TextBoxPicture.d.ts +2 -2
- package/dist/es/components/TextBox/TextBoxPicture.js +14 -5
- package/dist/es/components/TextWithIcon/TextWithIcon.css +10 -1
- package/dist/es/components/TextWithIcon/TextWithIcon.d.ts +1 -1
- package/dist/es/components/TextWithIcon/TextWithIcon.js +24 -6
- package/dist/es/components/TextWithIcon/TextWithIconItem.css +29 -1
- package/dist/es/components/TextWithIcon/TextWithIconItem.d.ts +1 -1
- package/dist/es/components/TextWithIcon/TextWithIconItem.js +21 -6
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.css +31 -1
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +1 -1
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.js +23 -6
- package/dist/es/components/VideoBanner/VideoBanner.css +225 -1
- package/dist/es/components/VideoBanner/VideoBanner.d.ts +7 -7
- package/dist/es/components/VideoBanner/VideoBanner.js +110 -47
- package/dist/es/components/VideoBlock/VideoBlock.css +106 -1
- package/dist/es/components/VideoBlock/VideoBlock.d.ts +4 -4
- package/dist/es/components/VideoBlock/VideoBlock.js +75 -35
- package/dist/es/helpers/getColumnConfig.d.ts +1 -5
- package/dist/lib/components/AccordionBox/AccordionBox.css +15 -1
- package/dist/lib/components/AccordionBox/AccordionBox.d.ts +2 -2
- package/dist/lib/components/AccordionBox/AccordionBox.js +66 -10
- package/dist/lib/components/AudioPlayer/AudioPlayer.d.ts +2 -2
- package/dist/lib/components/AudioPlayer/AudioPlayer.js +56 -32
- package/dist/lib/components/AudioPlayer/AudioProgress.d.ts +1 -1
- package/dist/lib/components/AudioPlayer/AudioProgress.js +43 -12
- package/dist/lib/components/AudioPlayer/AudioRange.d.ts +1 -1
- package/dist/lib/components/AudioPlayer/AudioRange.js +17 -9
- package/dist/lib/components/AudioPlayer/AudioVolume.d.ts +1 -1
- package/dist/lib/components/AudioPlayer/AudioVolume.js +23 -4
- package/dist/lib/components/AudioPlayer/hooks/useTrackDuration.js +16 -5
- package/dist/lib/components/AudioPlayer/style/AudioPlayer.css +58 -1
- package/dist/lib/components/AudioPlayer/style/AudioProgress.css +35 -1
- package/dist/lib/components/AudioPlayer/style/AudioRange.css +68 -1
- package/dist/lib/components/AudioPlayer/style/AudioVolume.css +34 -1
- package/dist/lib/components/AudioPlayer/timerFormatUtil.js +13 -2
- package/dist/lib/components/BannerBox/BannerBox.d.ts +1 -1
- package/dist/lib/components/BannerBox/BannerBox.js +25 -7
- package/dist/lib/components/BenefitsIcons/BenefitsIcons.d.ts +1 -1
- package/dist/lib/components/BenefitsIcons/BenefitsIcons.js +86 -26
- package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.d.ts +1 -1
- package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.js +53 -13
- package/dist/lib/components/BenefitsIcons/helpers.d.ts +3 -3
- package/dist/lib/components/BenefitsIcons/helpers.js +37 -10
- package/dist/lib/components/BenefitsIcons/style/BenefitsIcons.css +38 -1
- package/dist/lib/components/BenefitsIcons/style/BenefitsIconsTile.css +90 -1
- package/dist/lib/components/BenefitsIcons/types.d.ts +5 -5
- package/dist/lib/components/BenefitsIcons/types.js +8 -5
- package/dist/lib/components/BenefitsPictures/BenefitsPictures.d.ts +1 -1
- package/dist/lib/components/BenefitsPictures/BenefitsPictures.js +71 -24
- package/dist/lib/components/BenefitsPictures/BenfitsPictures.css +43 -1
- package/dist/lib/components/BenefitsPictures/helpers.d.ts +2 -2
- package/dist/lib/components/BenefitsPictures/helpers.js +40 -9
- package/dist/lib/components/BenefitsPictures/types.d.ts +3 -3
- package/dist/lib/components/BenefitsPictures/types.js +1 -5
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.css +43 -1
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.d.ts +6 -6
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.js +60 -18
- package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.css +16 -1
- package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.d.ts +4 -4
- package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.js +55 -22
- package/dist/lib/components/ButtonBanner/ButtonBanner.css +122 -1
- package/dist/lib/components/ButtonBanner/ButtonBanner.d.ts +7 -7
- package/dist/lib/components/ButtonBanner/ButtonBanner.js +89 -40
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.css +19 -1
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.d.ts +3 -3
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.js +72 -29
- package/dist/lib/components/Card/Card.css +354 -1
- package/dist/lib/components/Card/Card.d.ts +4 -4
- package/dist/lib/components/Card/Card.js +164 -67
- package/dist/lib/components/Card/types.d.ts +10 -10
- package/dist/lib/components/Card/types.js +1 -5
- package/dist/lib/components/CardsBox/CardsBox.js +31 -7
- package/dist/lib/components/CardsBox/helpers.d.ts +2 -2
- package/dist/lib/components/CardsBox/helpers.js +8 -1
- package/dist/lib/components/CarouselBox/CarouselBox.d.ts +2 -2
- package/dist/lib/components/CarouselBox/CarouselBox.js +39 -15
- package/dist/lib/components/Container/Container.css +3287 -1
- package/dist/lib/components/Container/Container.d.ts +5 -7
- package/dist/lib/components/Container/Container.js +40 -18
- package/dist/lib/components/DownloadLinks/DownloadLink.css +37 -1
- package/dist/lib/components/DownloadLinks/DownloadLink.d.ts +1 -1
- package/dist/lib/components/DownloadLinks/DownloadLink.js +60 -17
- package/dist/lib/components/DownloadLinks/DownloadLinks.css +36 -1
- package/dist/lib/components/DownloadLinks/DownloadLinks.d.ts +3 -3
- package/dist/lib/components/DownloadLinks/DownloadLinks.js +33 -8
- package/dist/lib/components/FaqWrapper/FaqWrapper.d.ts +2 -5
- package/dist/lib/components/FaqWrapper/FaqWrapper.js +9 -6
- package/dist/lib/components/ImageBanner/ImageBanner.css +252 -1
- package/dist/lib/components/ImageBanner/ImageBanner.d.ts +7 -8
- package/dist/lib/components/ImageBanner/ImageBanner.js +138 -61
- package/dist/lib/components/Instructions/Instructions.css +790 -1
- package/dist/lib/components/Instructions/Instructions.d.ts +11 -11
- package/dist/lib/components/Instructions/Instructions.js +186 -103
- package/dist/lib/components/NotificationBox/NotificationBox.d.ts +4 -4
- package/dist/lib/components/NotificationBox/NotificationBox.js +37 -9
- package/dist/lib/components/NotificationBox/style/NotificationBox.css +28 -0
- package/dist/lib/components/PageTitle/PageTitle.css +80 -1
- package/dist/lib/components/PageTitle/PageTitle.d.ts +2 -2
- package/dist/lib/components/PageTitle/PageTitle.js +52 -15
- package/dist/lib/components/Partners/Partners.css +53 -1
- package/dist/lib/components/Partners/Partners.d.ts +2 -2
- package/dist/lib/components/Partners/Partners.js +65 -21
- package/dist/lib/components/PictureWithDescription/PictureWithDescription.css +80 -1
- package/dist/lib/components/PictureWithDescription/PictureWithDescription.d.ts +2 -4
- package/dist/lib/components/PictureWithDescription/PictureWithDescription.js +46 -16
- package/dist/lib/components/Property/Property.css +156 -1
- package/dist/lib/components/Property/Property.d.ts +4 -4
- package/dist/lib/components/Property/Property.js +120 -60
- package/dist/lib/components/Property/PropertyDescription.css +17 -1
- package/dist/lib/components/Property/PropertyDescription.d.ts +3 -3
- package/dist/lib/components/Property/PropertyDescription.js +46 -15
- package/dist/lib/components/Property/types.d.ts +5 -7
- package/dist/lib/components/Property/types.js +1 -5
- package/dist/lib/components/Steps/Steps.css +41 -1
- package/dist/lib/components/Steps/Steps.d.ts +1 -2
- package/dist/lib/components/Steps/Steps.js +35 -8
- package/dist/lib/components/Steps/StepsItem.css +42 -1
- package/dist/lib/components/Steps/StepsItem.d.ts +2 -2
- package/dist/lib/components/Steps/StepsItem.js +23 -11
- package/dist/lib/components/StoreBanner/StoreBanner.css +346 -1
- package/dist/lib/components/StoreBanner/StoreBanner.d.ts +5 -5
- package/dist/lib/components/StoreBanner/StoreBanner.js +118 -47
- package/dist/lib/components/StoreBanner/doc/img/android-screen.png +0 -0
- package/dist/lib/components/StoreBanner/doc/img/qr-code.png +0 -0
- package/dist/lib/components/StoreBanner/doc/img/screen.png +0 -0
- package/dist/lib/components/StoreButton/StoreButton.css +327 -1
- package/dist/lib/components/StoreButton/StoreButton.d.ts +3 -3
- package/dist/lib/components/StoreButton/StoreButton.js +63 -17
- package/dist/lib/components/Table/Table.css +157 -1
- package/dist/lib/components/Table/Table.d.ts +1 -1
- package/dist/lib/components/Table/Table.js +68 -35
- package/dist/lib/components/Table/TableCell.js +16 -4
- package/dist/lib/components/Table/TableRow.js +19 -5
- package/dist/lib/components/TabsBox/TabBox.js +4 -1
- package/dist/lib/components/TabsBox/TabsBox.d.ts +1 -1
- package/dist/lib/components/TabsBox/TabsBox.js +26 -8
- package/dist/lib/components/TextBox/TextBox.css +25 -1
- package/dist/lib/components/TextBox/TextBox.d.ts +1 -2
- package/dist/lib/components/TextBox/TextBox.js +36 -12
- package/dist/lib/components/TextBox/TextBoxPicture.css +27 -1
- package/dist/lib/components/TextBox/TextBoxPicture.d.ts +2 -2
- package/dist/lib/components/TextBox/TextBoxPicture.js +29 -11
- package/dist/lib/components/TextWithIcon/TextWithIcon.css +10 -1
- package/dist/lib/components/TextWithIcon/TextWithIcon.d.ts +1 -1
- package/dist/lib/components/TextWithIcon/TextWithIcon.js +39 -10
- package/dist/lib/components/TextWithIcon/TextWithIconItem.css +29 -1
- package/dist/lib/components/TextWithIcon/TextWithIconItem.d.ts +1 -1
- package/dist/lib/components/TextWithIcon/TextWithIconItem.js +37 -10
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.css +31 -1
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +1 -1
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.js +40 -10
- package/dist/lib/components/VideoBanner/VideoBanner.css +225 -1
- package/dist/lib/components/VideoBanner/VideoBanner.d.ts +7 -7
- package/dist/lib/components/VideoBanner/VideoBanner.js +176 -83
- package/dist/lib/components/VideoBlock/VideoBlock.css +106 -1
- package/dist/lib/components/VideoBlock/VideoBlock.d.ts +4 -4
- package/dist/lib/components/VideoBlock/VideoBlock.js +114 -58
- package/dist/lib/constants/throttleTime.js +3 -2
- package/dist/lib/helpers/getColumnConfig.d.ts +1 -5
- package/dist/lib/helpers/getColumnConfig.js +5 -2
- package/dist/lib/index.js +57 -10
- package/package.json +92 -87
- package/dist/es/components/NotificationBox/NotificationBox.css +0 -1
- package/dist/lib/components/NotificationBox/NotificationBox.css +0 -1
@@ -1,48 +1,62 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
5
4
|
value: true
|
6
5
|
});
|
7
|
-
exports
|
6
|
+
exports["default"] = exports.testIdPrefix = exports.VideoTypes = void 0;
|
7
|
+
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
9
|
+
|
10
|
+
require("core-js/modules/es.array.concat.js");
|
11
|
+
|
9
12
|
require("core-js/modules/es.symbol.js");
|
13
|
+
|
10
14
|
require("core-js/modules/es.symbol.description.js");
|
11
|
-
|
12
|
-
|
15
|
+
|
16
|
+
require("core-js/modules/es.object.values.js");
|
17
|
+
|
18
|
+
var _react = _interopRequireDefault(require("react"));
|
19
|
+
|
13
20
|
var _uiCore = require("@megafon/ui-core");
|
21
|
+
|
14
22
|
var _uiHelpers = require("@megafon/ui-helpers");
|
15
|
-
|
16
|
-
|
23
|
+
|
24
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
25
|
+
|
17
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
18
|
-
|
27
|
+
|
28
|
+
var VideoTypes = {
|
19
29
|
YOUTUBE: 'youtube',
|
20
30
|
VIDEO: 'video'
|
21
31
|
};
|
22
|
-
|
32
|
+
exports.VideoTypes = VideoTypes;
|
33
|
+
var testIdPrefix = 'VideoBlock';
|
34
|
+
exports.testIdPrefix = testIdPrefix;
|
23
35
|
var cn = (0, _uiHelpers.cnCreate)('mfui-video-block');
|
36
|
+
|
24
37
|
var VideoBlock = function VideoBlock(_ref) {
|
25
38
|
var dataAttrs = _ref.dataAttrs,
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
39
|
+
className = _ref.className,
|
40
|
+
_ref$classes = _ref.classes,
|
41
|
+
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
42
|
+
rootRef = _ref.rootRef,
|
43
|
+
content = _ref.content,
|
44
|
+
_ref$videoType = _ref.videoType,
|
45
|
+
videoType = _ref$videoType === void 0 ? 'video' : _ref$videoType,
|
46
|
+
videoSrc = _ref.videoSrc,
|
47
|
+
_ref$isMuted = _ref.isMuted,
|
48
|
+
isMuted = _ref$isMuted === void 0 ? true : _ref$isMuted,
|
49
|
+
_ref$isAutoplay = _ref.isAutoplay,
|
50
|
+
isAutoplay = _ref$isAutoplay === void 0 ? false : _ref$isAutoplay,
|
51
|
+
_ref$contentPositionR = _ref.contentPositionRight,
|
52
|
+
contentPositionRight = _ref$contentPositionR === void 0 ? false : _ref$contentPositionR,
|
53
|
+
poster = _ref.poster,
|
54
|
+
_ref$playsinline = _ref.playsinline,
|
55
|
+
playsinline = _ref$playsinline === void 0 ? false : _ref$playsinline,
|
56
|
+
_ref$fixWhiteVideoBac = _ref.fixWhiteVideoBackground,
|
57
|
+
fixWhiteVideoBackground = _ref$fixWhiteVideoBac === void 0 ? false : _ref$fixWhiteVideoBac;
|
58
|
+
|
59
|
+
var renderVideo = _react["default"].useCallback(function () {
|
46
60
|
switch (videoType) {
|
47
61
|
case VideoTypes.YOUTUBE:
|
48
62
|
{
|
@@ -57,9 +71,9 @@ var VideoBlock = function VideoBlock(_ref) {
|
|
57
71
|
var playlist = "&playlist=".concat(videoSrc);
|
58
72
|
var playsinlineProp = "&playsinline=".concat(playsinline ? 1 : 0);
|
59
73
|
var src = "".concat(url).concat(autoplay).concat(mute).concat(loop).concat(rel).concat(controls).concat(showinfo).concat(ivLoadPolicy).concat(playlist).concat(playsinlineProp);
|
60
|
-
return /*#__PURE__*/
|
74
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
61
75
|
className: cn('youtube')
|
62
|
-
}, /*#__PURE__*/
|
76
|
+
}, /*#__PURE__*/_react["default"].createElement("iframe", {
|
63
77
|
className: cn('iframe'),
|
64
78
|
src: src,
|
65
79
|
width: "100%",
|
@@ -71,11 +85,13 @@ var VideoBlock = function VideoBlock(_ref) {
|
|
71
85
|
"data-testid": "".concat(testIdPrefix, "-iframe-video")
|
72
86
|
}));
|
73
87
|
}
|
88
|
+
|
74
89
|
case VideoTypes.VIDEO:
|
75
90
|
{
|
76
|
-
return
|
91
|
+
return (
|
92
|
+
/*#__PURE__*/
|
77
93
|
// eslint-disable-next-line jsx-a11y/media-has-caption
|
78
|
-
|
94
|
+
_react["default"].createElement("video", {
|
79
95
|
className: cn('video', {
|
80
96
|
'fix-background': fixWhiteVideoBackground
|
81
97
|
}),
|
@@ -86,37 +102,39 @@ var VideoBlock = function VideoBlock(_ref) {
|
|
86
102
|
poster: poster,
|
87
103
|
playsInline: playsinline,
|
88
104
|
"data-testid": "".concat(testIdPrefix, "-video")
|
89
|
-
}, /*#__PURE__*/
|
105
|
+
}, /*#__PURE__*/_react["default"].createElement("source", {
|
90
106
|
src: videoSrc,
|
91
107
|
type: "video/mp4"
|
92
108
|
}))
|
93
109
|
);
|
94
110
|
}
|
111
|
+
|
95
112
|
default:
|
96
113
|
{
|
97
114
|
return null;
|
98
115
|
}
|
99
116
|
}
|
100
117
|
}, [videoType, videoSrc, isAutoplay, isMuted, poster, playsinline, fixWhiteVideoBackground]);
|
101
|
-
|
118
|
+
|
119
|
+
var renderContent = _react["default"].useCallback(function (_ref2) {
|
102
120
|
var title = _ref2.title,
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
return /*#__PURE__*/
|
121
|
+
description = _ref2.description,
|
122
|
+
href = _ref2.href,
|
123
|
+
buttonDownload = _ref2.buttonDownload,
|
124
|
+
buttonTitle = _ref2.buttonTitle,
|
125
|
+
buttonRel = _ref2.buttonRel,
|
126
|
+
onButtonClick = _ref2.onButtonClick;
|
127
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
110
128
|
className: cn('content', {
|
111
129
|
'position-right': contentPositionRight
|
112
130
|
}),
|
113
131
|
"data-testid": "".concat(testIdPrefix, "-content")
|
114
|
-
}, /*#__PURE__*/
|
132
|
+
}, /*#__PURE__*/_react["default"].createElement(_uiCore.Header, {
|
115
133
|
as: "h2",
|
116
134
|
className: cn('header')
|
117
|
-
}, (0, _uiHelpers.convert)(title, _uiHelpers.titleConvertConfig)), /*#__PURE__*/
|
135
|
+
}, (0, _uiHelpers.convert)(title, _uiHelpers.titleConvertConfig)), /*#__PURE__*/_react["default"].createElement("div", {
|
118
136
|
className: cn('description', [classes.description])
|
119
|
-
}, typeof description === 'string' ? (0, _uiHelpers.convert)(description, _uiHelpers.textConvertConfig) : description), buttonTitle && /*#__PURE__*/
|
137
|
+
}, typeof description === 'string' ? (0, _uiHelpers.convert)(description, _uiHelpers.textConvertConfig) : description), buttonTitle && /*#__PURE__*/_react["default"].createElement(_uiCore.Button, {
|
120
138
|
dataAttrs: {
|
121
139
|
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.button
|
122
140
|
},
|
@@ -127,39 +145,77 @@ var VideoBlock = function VideoBlock(_ref) {
|
|
127
145
|
rel: buttonRel
|
128
146
|
}, buttonTitle));
|
129
147
|
}, [classes.button, classes.description, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.button, contentPositionRight]);
|
130
|
-
|
148
|
+
|
149
|
+
var renderGridColumns = _react["default"].useCallback(function () {
|
131
150
|
var columns = [];
|
132
151
|
var columnWidth = content ? '7' : '10';
|
152
|
+
|
133
153
|
if (content) {
|
134
|
-
columns.push( /*#__PURE__*/
|
154
|
+
columns.push( /*#__PURE__*/_react["default"].createElement(_uiCore.GridColumn, {
|
135
155
|
all: "5",
|
136
156
|
tablet: "12",
|
137
157
|
mobile: "12",
|
138
|
-
orderTablet: "
|
139
|
-
orderMobile: "
|
140
|
-
orderWide: contentPositionRight ? '1' : '0',
|
141
|
-
orderDesktop: contentPositionRight ? '1' : '0',
|
158
|
+
orderTablet: "2",
|
159
|
+
orderMobile: "2",
|
142
160
|
key: "column-content",
|
143
|
-
className: cn('content-column'
|
161
|
+
className: cn('content-column', {
|
162
|
+
'position-right': contentPositionRight
|
163
|
+
})
|
144
164
|
}, renderContent(content)));
|
145
165
|
}
|
146
|
-
|
166
|
+
|
167
|
+
columns.push( /*#__PURE__*/_react["default"].createElement(_uiCore.GridColumn, {
|
147
168
|
all: columnWidth,
|
148
169
|
tablet: "12",
|
149
170
|
mobile: "12",
|
150
171
|
key: "column-video",
|
151
|
-
|
152
|
-
|
153
|
-
|
172
|
+
className: cn('video-column', {
|
173
|
+
'position-left': contentPositionRight
|
174
|
+
})
|
154
175
|
}, renderVideo()));
|
155
176
|
return columns;
|
156
177
|
}, [renderContent, renderVideo, content, contentPositionRight]);
|
157
|
-
|
178
|
+
|
179
|
+
return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
158
180
|
className: cn([className, classes.root]),
|
159
181
|
ref: rootRef
|
160
|
-
}), /*#__PURE__*/
|
182
|
+
}), /*#__PURE__*/_react["default"].createElement(_uiCore.Grid, {
|
161
183
|
hAlign: "center",
|
162
184
|
className: cn('grid')
|
163
185
|
}, renderGridColumns()));
|
164
186
|
};
|
165
|
-
|
187
|
+
|
188
|
+
VideoBlock.propTypes = {
|
189
|
+
dataAttrs: _propTypes["default"].shape({
|
190
|
+
root: _propTypes["default"].objectOf(_propTypes["default"].string.isRequired),
|
191
|
+
button: _propTypes["default"].objectOf(_propTypes["default"].string.isRequired)
|
192
|
+
}),
|
193
|
+
className: _propTypes["default"].string,
|
194
|
+
classes: _propTypes["default"].shape({
|
195
|
+
root: _propTypes["default"].string,
|
196
|
+
button: _propTypes["default"].string,
|
197
|
+
description: _propTypes["default"].string
|
198
|
+
}),
|
199
|
+
rootRef: _propTypes["default"].oneOfType([_propTypes["default"].func, _propTypes["default"].oneOfType([_propTypes["default"].shape({
|
200
|
+
current: _propTypes["default"].elementType
|
201
|
+
}), _propTypes["default"].any])]),
|
202
|
+
content: _propTypes["default"].shape({
|
203
|
+
title: _propTypes["default"].string.isRequired,
|
204
|
+
description: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].arrayOf(_propTypes["default"].node), _propTypes["default"].node]).isRequired,
|
205
|
+
href: _propTypes["default"].string,
|
206
|
+
buttonTitle: _propTypes["default"].string,
|
207
|
+
buttonDownload: _propTypes["default"].bool,
|
208
|
+
buttonRel: _propTypes["default"].string,
|
209
|
+
onButtonClick: _propTypes["default"].func
|
210
|
+
}),
|
211
|
+
videoType: _propTypes["default"].oneOf(Object.values(VideoTypes)),
|
212
|
+
videoSrc: _propTypes["default"].string.isRequired,
|
213
|
+
isMuted: _propTypes["default"].bool,
|
214
|
+
isAutoplay: _propTypes["default"].bool,
|
215
|
+
poster: _propTypes["default"].string,
|
216
|
+
playsinline: _propTypes["default"].bool,
|
217
|
+
contentPositionRight: _propTypes["default"].bool,
|
218
|
+
fixWhiteVideoBackground: _propTypes["default"].bool
|
219
|
+
};
|
220
|
+
var _default = VideoBlock;
|
221
|
+
exports["default"] = _default;
|
@@ -1,6 +1,2 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
|
3
|
-
type GridColumnPropsType = React.ComponentProps<typeof GridColumn>;
|
4
|
-
type GridColumnConfigType = Partial<Pick<GridColumnPropsType, 'all' | 'wide' | 'desktop' | 'tablet' | 'mobile'>>;
|
5
|
-
export declare const getColumnConfig: (isFullWidth: boolean) => GridColumnConfigType;
|
6
|
-
export {};
|
2
|
+
export declare const getColumnConfig: (isFullWidth: boolean) => Pick<React.PropsWithChildren<import("../../../ui-core/dist/lib/components/Grid/GridColumn").IGridColumn>, "all" | "wide" | "mobile" | "desktop" | "tablet">;
|
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.getColumnConfig = void 0;
|
7
|
-
|
7
|
+
|
8
|
+
var getColumnConfig = function getColumnConfig(isFullWidth) {
|
8
9
|
return isFullWidth ? {
|
9
10
|
all: '12'
|
10
11
|
} : {
|
@@ -13,4 +14,6 @@ var getColumnConfig = exports.getColumnConfig = function getColumnConfig(isFullW
|
|
13
14
|
tablet: '12',
|
14
15
|
mobile: '12'
|
15
16
|
};
|
16
|
-
};
|
17
|
+
};
|
18
|
+
|
19
|
+
exports.getColumnConfig = getColumnConfig;
|
package/dist/lib/index.js
CHANGED
@@ -249,80 +249,127 @@ Object.defineProperty(exports, "TextWithIconItem", {
|
|
249
249
|
return _TextWithIconItem["default"];
|
250
250
|
}
|
251
251
|
});
|
252
|
-
Object.defineProperty(exports, "
|
252
|
+
Object.defineProperty(exports, "timerFormatUtil", {
|
253
253
|
enumerable: true,
|
254
254
|
get: function get() {
|
255
|
-
return
|
255
|
+
return _timerFormatUtil["default"];
|
256
256
|
}
|
257
257
|
});
|
258
|
-
Object.defineProperty(exports, "
|
258
|
+
Object.defineProperty(exports, "TitleDescriptionBox", {
|
259
259
|
enumerable: true,
|
260
260
|
get: function get() {
|
261
|
-
return
|
261
|
+
return _TitleDescriptionBox["default"];
|
262
262
|
}
|
263
263
|
});
|
264
|
-
Object.defineProperty(exports, "
|
264
|
+
Object.defineProperty(exports, "useTrackDuration", {
|
265
265
|
enumerable: true,
|
266
266
|
get: function get() {
|
267
|
-
return
|
267
|
+
return _useTrackDuration["default"];
|
268
268
|
}
|
269
269
|
});
|
270
|
-
Object.defineProperty(exports, "
|
270
|
+
Object.defineProperty(exports, "VideoBanner", {
|
271
271
|
enumerable: true,
|
272
272
|
get: function get() {
|
273
|
-
return
|
273
|
+
return _VideoBanner["default"];
|
274
274
|
}
|
275
275
|
});
|
276
|
-
Object.defineProperty(exports, "
|
276
|
+
Object.defineProperty(exports, "VideoBlock", {
|
277
277
|
enumerable: true,
|
278
278
|
get: function get() {
|
279
|
-
return
|
279
|
+
return _VideoBlock["default"];
|
280
280
|
}
|
281
281
|
});
|
282
|
+
|
282
283
|
var _AccordionBox = _interopRequireDefault(require("./components/AccordionBox/AccordionBox"));
|
284
|
+
|
283
285
|
var _AudioPlayer = _interopRequireDefault(require("./components/AudioPlayer/AudioPlayer"));
|
286
|
+
|
284
287
|
var _AudioProgress = _interopRequireDefault(require("./components/AudioPlayer/AudioProgress"));
|
288
|
+
|
285
289
|
var _AudioRange = _interopRequireDefault(require("./components/AudioPlayer/AudioRange"));
|
290
|
+
|
286
291
|
var _AudioVolume = _interopRequireDefault(require("./components/AudioPlayer/AudioVolume"));
|
292
|
+
|
287
293
|
var _BannerBox = _interopRequireDefault(require("./components/BannerBox/BannerBox"));
|
294
|
+
|
288
295
|
var _BenefitsIcons = _interopRequireDefault(require("./components/BenefitsIcons/BenefitsIcons"));
|
296
|
+
|
289
297
|
var _BenefitsIconsTile = _interopRequireDefault(require("./components/BenefitsIcons/BenefitsIconsTile"));
|
298
|
+
|
290
299
|
var _BenefitsPictures = _interopRequireDefault(require("./components/BenefitsPictures/BenefitsPictures"));
|
300
|
+
|
291
301
|
var _Breadcrumbs = _interopRequireDefault(require("./components/Breadcrumbs/Breadcrumbs"));
|
302
|
+
|
292
303
|
var _BreadcrumbsItem = _interopRequireDefault(require("./components/Breadcrumbs/components/BreadcrumbsItem"));
|
304
|
+
|
293
305
|
var _ButtonBanner = _interopRequireDefault(require("./components/ButtonBanner/ButtonBanner"));
|
306
|
+
|
294
307
|
var _ButtonLinkBox = _interopRequireDefault(require("./components/ButtonLinkBox/ButtonLinkBox"));
|
308
|
+
|
295
309
|
var _Card = _interopRequireDefault(require("./components/Card/Card"));
|
310
|
+
|
296
311
|
var _CardsBox = _interopRequireDefault(require("./components/CardsBox/CardsBox"));
|
312
|
+
|
297
313
|
var _CarouselBox = _interopRequireDefault(require("./components/CarouselBox/CarouselBox"));
|
314
|
+
|
298
315
|
var _Container = _interopRequireDefault(require("./components/Container/Container"));
|
316
|
+
|
299
317
|
var _DownloadLink = _interopRequireDefault(require("./components/DownloadLinks/DownloadLink"));
|
318
|
+
|
300
319
|
var _DownloadLinks = _interopRequireDefault(require("./components/DownloadLinks/DownloadLinks"));
|
320
|
+
|
301
321
|
var _FaqWrapper = _interopRequireDefault(require("./components/FaqWrapper/FaqWrapper"));
|
322
|
+
|
302
323
|
var _ImageBanner = _interopRequireDefault(require("./components/ImageBanner/ImageBanner"));
|
324
|
+
|
303
325
|
var _Instructions = _interopRequireDefault(require("./components/Instructions/Instructions"));
|
326
|
+
|
304
327
|
var _NotificationBox = _interopRequireDefault(require("./components/NotificationBox/NotificationBox"));
|
328
|
+
|
305
329
|
var _PageTitle = _interopRequireDefault(require("./components/PageTitle/PageTitle"));
|
330
|
+
|
306
331
|
var _Partners = _interopRequireDefault(require("./components/Partners/Partners"));
|
332
|
+
|
307
333
|
var _PictureWithDescription = _interopRequireDefault(require("./components/PictureWithDescription/PictureWithDescription"));
|
334
|
+
|
308
335
|
var _Property = _interopRequireDefault(require("./components/Property/Property"));
|
336
|
+
|
309
337
|
var _PropertyDescription = _interopRequireDefault(require("./components/Property/PropertyDescription"));
|
338
|
+
|
310
339
|
var _Steps = _interopRequireDefault(require("./components/Steps/Steps"));
|
340
|
+
|
311
341
|
var _StepsItem = _interopRequireDefault(require("./components/Steps/StepsItem"));
|
342
|
+
|
312
343
|
var _StoreBanner = _interopRequireDefault(require("./components/StoreBanner/StoreBanner"));
|
344
|
+
|
313
345
|
var _StoreButton = _interopRequireDefault(require("./components/StoreButton/StoreButton"));
|
346
|
+
|
314
347
|
var _TabBox = _interopRequireDefault(require("./components/TabsBox/TabBox"));
|
348
|
+
|
315
349
|
var _Table = _interopRequireDefault(require("./components/Table/Table"));
|
350
|
+
|
316
351
|
var _TableCell = _interopRequireDefault(require("./components/Table/TableCell"));
|
352
|
+
|
317
353
|
var _TableRow = _interopRequireDefault(require("./components/Table/TableRow"));
|
354
|
+
|
318
355
|
var _TabsBox = _interopRequireDefault(require("./components/TabsBox/TabsBox"));
|
356
|
+
|
319
357
|
var _TextBox = _interopRequireDefault(require("./components/TextBox/TextBox"));
|
358
|
+
|
320
359
|
var _TextBoxPicture = _interopRequireDefault(require("./components/TextBox/TextBoxPicture"));
|
360
|
+
|
321
361
|
var _TextWithIcon = _interopRequireDefault(require("./components/TextWithIcon/TextWithIcon"));
|
362
|
+
|
322
363
|
var _TextWithIconItem = _interopRequireDefault(require("./components/TextWithIcon/TextWithIconItem"));
|
364
|
+
|
323
365
|
var _timerFormatUtil = _interopRequireDefault(require("./components/AudioPlayer/timerFormatUtil"));
|
366
|
+
|
324
367
|
var _TitleDescriptionBox = _interopRequireDefault(require("./components/TitleDescriptionBox/TitleDescriptionBox"));
|
368
|
+
|
325
369
|
var _useTrackDuration = _interopRequireDefault(require("./components/AudioPlayer/hooks/useTrackDuration"));
|
370
|
+
|
326
371
|
var _VideoBanner = _interopRequireDefault(require("./components/VideoBanner/VideoBanner"));
|
372
|
+
|
327
373
|
var _VideoBlock = _interopRequireDefault(require("./components/VideoBlock/VideoBlock"));
|
374
|
+
|
328
375
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
package/package.json
CHANGED
@@ -1,89 +1,94 @@
|
|
1
1
|
{
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
"
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
"
|
2
|
+
"name": "@megafon/ui-shared",
|
3
|
+
"version": "6.0.0",
|
4
|
+
"files": [
|
5
|
+
"dist"
|
6
|
+
],
|
7
|
+
"main": "dist/lib/index.js",
|
8
|
+
"module": "dist/es/index.js",
|
9
|
+
"typings": "dist/lib/index.d.ts",
|
10
|
+
"sideEffects": [
|
11
|
+
"*.css",
|
12
|
+
"*.less"
|
13
|
+
],
|
14
|
+
"author": "MegaFon",
|
15
|
+
"license": "MIT",
|
16
|
+
"scripts": {
|
17
|
+
"build": "gulp build",
|
18
|
+
"cleanDist": "rm -rf dist",
|
19
|
+
"coverage": "yarn coverage:unit",
|
20
|
+
"coverage:unit": "jest --coverage",
|
21
|
+
"typecheck": "tsc --noEmit -p .",
|
22
|
+
"prettier:check": "prettier --list-different \"src/**/*.{js,jsx,ts,tsx}\"",
|
23
|
+
"prettier:fix": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
|
24
|
+
"lint": "yarn lint:ts && yarn lint:less",
|
25
|
+
"lint:ts": "eslint --ext .js,.jsx,.ts,.tsx src --max-warnings=0",
|
26
|
+
"lint:less": "stylelint --syntax less src/**/*.less src/**/**/*.less",
|
27
|
+
"lint:less:fix": "yarn lint:less --fix",
|
28
|
+
"test": "yarn test:unit",
|
29
|
+
"test:unit": "jest",
|
30
|
+
"test:update": "jest --updateSnapshot"
|
31
|
+
},
|
32
|
+
"publishConfig": {
|
33
|
+
"access": "public"
|
34
|
+
},
|
35
|
+
"lint-staged": {
|
36
|
+
"src/**/**/*.(js|jsx|ts|tsx)": [
|
37
|
+
"eslint --max-warnings=0 --config ../../.eslintrc.json"
|
38
|
+
]
|
39
|
+
},
|
40
|
+
"peerDependencies": {
|
41
|
+
"react": ">=16.13.0",
|
42
|
+
"react-dom": ">=16.13.0"
|
43
|
+
},
|
44
|
+
"devDependencies": {
|
45
|
+
"@babel/core": "^7.8.6",
|
46
|
+
"@babel/plugin-transform-object-assign": "^7.8.3",
|
47
|
+
"@babel/plugin-transform-runtime": "^7.8.3",
|
48
|
+
"@babel/preset-env": "^7.8.6",
|
49
|
+
"@babel/preset-react": "^7.8.3",
|
50
|
+
"@babel/preset-typescript": "^7.8.3",
|
51
|
+
"@megafon/ui-icons": "^2.27.0",
|
52
|
+
"@svgr/core": "^2.4.1",
|
53
|
+
"@testing-library/jest-dom": "5.16.2",
|
54
|
+
"@testing-library/react": "12.1.2",
|
55
|
+
"@testing-library/react-hooks": "^8.0.1",
|
56
|
+
"@testing-library/user-event": "13.5.0",
|
57
|
+
"@types/enzyme": "^3.10.5",
|
58
|
+
"@types/enzyme-adapter-react-16": "^1.0.6",
|
59
|
+
"@types/jest": "^25.1.3",
|
60
|
+
"@types/prop-types": "^15.7.3",
|
61
|
+
"@types/react": "^16.9.23",
|
62
|
+
"@types/react-dom": "^16.9.5",
|
63
|
+
"babel-plugin-module-resolver": "^3.2.0",
|
64
|
+
"del": "^3.0.0",
|
65
|
+
"enzyme": "^3.11.0",
|
66
|
+
"enzyme-adapter-react-16": "^1.15.2",
|
67
|
+
"enzyme-to-json": "^3.4.4",
|
68
|
+
"glob": "^7.1.6",
|
69
|
+
"gulp": "^4.0.2",
|
70
|
+
"gulp-babel": "^8.0.0-beta.2",
|
71
|
+
"gulp-imagemin": "^7.1.0",
|
72
|
+
"gulp-less": "^4.0.1",
|
73
|
+
"gulp-typescript": "^5.0.1",
|
74
|
+
"jest": "^25.1.0",
|
75
|
+
"less-plugin-autoprefix": "^2.0.0",
|
76
|
+
"merge2": "^1.3.0",
|
77
|
+
"react": "^16.13.0",
|
78
|
+
"react-dom": "^16.13.0",
|
79
|
+
"stylelint": "^9.10.1",
|
80
|
+
"through2": "^2.0.5",
|
81
|
+
"typescript": "^3.8.3"
|
82
|
+
},
|
83
|
+
"dependencies": {
|
84
|
+
"@babel/runtime": "^7.8.4",
|
85
|
+
"@megafon/ui-core": "^6.0.1",
|
86
|
+
"@megafon/ui-helpers": "^2.6.0",
|
87
|
+
"core-js": "^3.6.4",
|
88
|
+
"htmr": "^0.9.2",
|
89
|
+
"lodash.throttle": "^4.1.1",
|
90
|
+
"prop-types": "^15.7.2",
|
91
|
+
"swiper": "^6.5.6"
|
92
|
+
},
|
93
|
+
"gitHead": "7a9fef927d6f5c44bebc26f35828cecdf2d8f50e"
|
89
94
|
}
|
@@ -1 +0,0 @@
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-notification-box{display:-webkit-box;display:-ms-flexbox;display:flex}.mfui-notification-box:not(:first-child){margin-top:24px}.mfui-notification-box__notification{max-width:740px}.mfui-notification-box_align_left{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.mfui-notification-box_align_center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}
|
@@ -1 +0,0 @@
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-notification-box{display:-webkit-box;display:-ms-flexbox;display:flex}.mfui-notification-box:not(:first-child){margin-top:24px}.mfui-notification-box__notification{max-width:740px}.mfui-notification-box_align_left{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.mfui-notification-box_align_center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}
|