@megafon/ui-shared 5.16.0 → 6.0.0-beta.1
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/dist/es/components/AccordionBox/AccordionBox.css +1 -15
- package/dist/es/components/AccordionBox/AccordionBox.d.ts +2 -2
- package/dist/es/components/AccordionBox/AccordionBox.js +6 -49
- package/dist/es/components/AudioPlayer/AudioPlayer.d.ts +2 -2
- package/dist/es/components/AudioPlayer/AudioPlayer.js +11 -27
- package/dist/es/components/AudioPlayer/AudioProgress.d.ts +1 -1
- package/dist/es/components/AudioPlayer/AudioProgress.js +10 -22
- package/dist/es/components/AudioPlayer/AudioRange.d.ts +1 -1
- package/dist/es/components/AudioPlayer/AudioRange.js +8 -10
- package/dist/es/components/AudioPlayer/AudioVolume.d.ts +1 -1
- package/dist/es/components/AudioPlayer/AudioVolume.js +3 -12
- package/dist/es/components/AudioPlayer/hooks/useTrackDuration.js +4 -10
- package/dist/es/components/AudioPlayer/style/AudioPlayer.css +1 -58
- package/dist/es/components/AudioPlayer/style/AudioProgress.css +1 -35
- package/dist/es/components/AudioPlayer/style/AudioRange.css +1 -68
- package/dist/es/components/AudioPlayer/style/AudioVolume.css +1 -34
- package/dist/es/components/AudioPlayer/timerFormatUtil.js +1 -9
- package/dist/es/components/BannerBox/BannerBox.d.ts +1 -1
- package/dist/es/components/BannerBox/BannerBox.js +3 -12
- package/dist/es/components/BenefitsIcons/BenefitsIcons.d.ts +1 -1
- package/dist/es/components/BenefitsIcons/BenefitsIcons.js +23 -64
- package/dist/es/components/BenefitsIcons/BenefitsIconsTile.d.ts +1 -1
- package/dist/es/components/BenefitsIcons/BenefitsIconsTile.js +9 -36
- package/dist/es/components/BenefitsIcons/helpers.d.ts +3 -3
- package/dist/es/components/BenefitsIcons/helpers.js +6 -20
- package/dist/es/components/BenefitsIcons/style/BenefitsIcons.css +1 -38
- package/dist/es/components/BenefitsIcons/style/BenefitsIconsTile.css +1 -90
- 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 +19 -49
- package/dist/es/components/BenefitsPictures/BenfitsPictures.css +1 -43
- package/dist/es/components/BenefitsPictures/helpers.d.ts +2 -2
- package/dist/es/components/BenefitsPictures/helpers.js +0 -14
- package/dist/es/components/BenefitsPictures/types.d.ts +3 -3
- package/dist/es/components/BenefitsPictures/types.js +1 -0
- package/dist/es/components/Breadcrumbs/Breadcrumbs.css +1 -43
- package/dist/es/components/Breadcrumbs/Breadcrumbs.d.ts +6 -6
- package/dist/es/components/Breadcrumbs/Breadcrumbs.js +10 -39
- package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.css +1 -16
- package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.d.ts +4 -4
- package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.js +11 -36
- package/dist/es/components/ButtonBanner/ButtonBanner.css +1 -122
- package/dist/es/components/ButtonBanner/ButtonBanner.d.ts +7 -7
- package/dist/es/components/ButtonBanner/ButtonBanner.js +22 -53
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.css +1 -19
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.d.ts +3 -3
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.js +20 -51
- package/dist/es/components/Card/Card.css +1 -354
- package/dist/es/components/Card/Card.d.ts +5 -9
- package/dist/es/components/Card/Card.js +26 -136
- package/dist/es/components/Card/types.d.ts +9 -15
- package/dist/es/components/Card/types.js +1 -0
- package/dist/es/components/CardsBox/CardsBox.js +3 -14
- package/dist/es/components/CardsBox/helpers.d.ts +2 -2
- package/dist/es/components/CardsBox/helpers.js +0 -4
- package/dist/es/components/CarouselBox/CarouselBox.d.ts +2 -2
- package/dist/es/components/CarouselBox/CarouselBox.js +11 -24
- package/dist/es/components/Container/Container.css +1 -3230
- package/dist/es/components/Container/Container.d.ts +7 -5
- package/dist/es/components/Container/Container.js +10 -25
- package/dist/es/components/DownloadLinks/DownloadLink.css +1 -37
- package/dist/es/components/DownloadLinks/DownloadLink.d.ts +1 -1
- package/dist/es/components/DownloadLinks/DownloadLink.js +13 -44
- package/dist/es/components/DownloadLinks/DownloadLinks.css +1 -36
- package/dist/es/components/DownloadLinks/DownloadLinks.d.ts +3 -3
- package/dist/es/components/DownloadLinks/DownloadLinks.js +2 -13
- package/dist/es/components/FaqWrapper/FaqWrapper.d.ts +5 -2
- package/dist/es/components/FaqWrapper/FaqWrapper.js +1 -3
- package/dist/es/components/ImageBanner/ImageBanner.css +1 -248
- package/dist/es/components/ImageBanner/ImageBanner.d.ts +21 -17
- package/dist/es/components/ImageBanner/ImageBanner.js +51 -109
- package/dist/es/components/Instructions/Instructions.css +1 -790
- package/dist/es/components/Instructions/Instructions.d.ts +11 -11
- package/dist/es/components/Instructions/Instructions.js +41 -94
- package/dist/es/components/NotificationBox/NotificationBox.css +1 -0
- package/dist/es/components/NotificationBox/NotificationBox.d.ts +4 -4
- package/dist/es/components/NotificationBox/NotificationBox.js +5 -19
- package/dist/es/components/PageTitle/PageTitle.css +1 -80
- package/dist/es/components/PageTitle/PageTitle.d.ts +2 -2
- package/dist/es/components/PageTitle/PageTitle.js +12 -37
- package/dist/es/components/Partners/Partners.css +1 -53
- package/dist/es/components/Partners/Partners.d.ts +2 -2
- package/dist/es/components/Partners/Partners.js +17 -48
- package/dist/es/components/PictureWithDescription/PictureWithDescription.css +1 -80
- package/dist/es/components/PictureWithDescription/PictureWithDescription.d.ts +4 -2
- package/dist/es/components/PictureWithDescription/PictureWithDescription.js +10 -28
- package/dist/es/components/Property/Property.css +1 -156
- package/dist/es/components/Property/Property.d.ts +4 -4
- package/dist/es/components/Property/Property.js +37 -81
- package/dist/es/components/Property/PropertyDescription.css +1 -17
- package/dist/es/components/Property/PropertyDescription.d.ts +3 -3
- package/dist/es/components/Property/PropertyDescription.js +8 -28
- package/dist/es/components/Property/types.d.ts +7 -5
- package/dist/es/components/Property/types.js +1 -0
- package/dist/es/components/Steps/Steps.css +1 -41
- package/dist/es/components/Steps/Steps.d.ts +2 -1
- package/dist/es/components/Steps/Steps.js +4 -19
- package/dist/es/components/Steps/StepsItem.css +1 -42
- package/dist/es/components/Steps/StepsItem.d.ts +2 -2
- package/dist/es/components/Steps/StepsItem.js +2 -9
- package/dist/es/components/StoreBanner/StoreBanner.css +1 -346
- package/dist/es/components/StoreBanner/StoreBanner.d.ts +5 -5
- package/dist/es/components/StoreBanner/StoreBanner.js +41 -97
- package/dist/es/components/StoreButton/StoreButton.css +1 -327
- package/dist/es/components/StoreButton/StoreButton.d.ts +3 -3
- package/dist/es/components/StoreButton/StoreButton.js +13 -44
- package/dist/es/components/Table/Table.css +1 -157
- package/dist/es/components/Table/Table.d.ts +1 -1
- package/dist/es/components/Table/Table.js +31 -51
- package/dist/es/components/Table/TableCell.js +0 -6
- package/dist/es/components/Table/TableRow.js +1 -10
- package/dist/es/components/TabsBox/TabsBox.d.ts +1 -1
- package/dist/es/components/TabsBox/TabsBox.js +4 -13
- package/dist/es/components/TextBox/TextBox.css +1 -25
- package/dist/es/components/TextBox/TextBox.d.ts +2 -1
- package/dist/es/components/TextBox/TextBox.js +8 -23
- package/dist/es/components/TextBox/TextBoxPicture.css +1 -27
- package/dist/es/components/TextBox/TextBoxPicture.d.ts +2 -2
- package/dist/es/components/TextBox/TextBoxPicture.js +5 -14
- package/dist/es/components/TextWithIcon/TextWithIcon.css +1 -10
- package/dist/es/components/TextWithIcon/TextWithIcon.d.ts +1 -1
- package/dist/es/components/TextWithIcon/TextWithIcon.js +6 -24
- package/dist/es/components/TextWithIcon/TextWithIconItem.css +1 -29
- package/dist/es/components/TextWithIcon/TextWithIconItem.d.ts +1 -1
- package/dist/es/components/TextWithIcon/TextWithIconItem.js +6 -21
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.css +1 -31
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +1 -1
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.js +6 -23
- package/dist/es/components/VideoBanner/VideoBanner.css +1 -225
- package/dist/es/components/VideoBanner/VideoBanner.d.ts +7 -7
- package/dist/es/components/VideoBanner/VideoBanner.js +47 -110
- package/dist/es/components/VideoBlock/VideoBlock.css +1 -106
- package/dist/es/components/VideoBlock/VideoBlock.d.ts +4 -4
- package/dist/es/components/VideoBlock/VideoBlock.js +35 -75
- package/dist/es/helpers/getColumnConfig.d.ts +5 -1
- package/dist/lib/components/AccordionBox/AccordionBox.css +1 -15
- package/dist/lib/components/AccordionBox/AccordionBox.d.ts +2 -2
- package/dist/lib/components/AccordionBox/AccordionBox.js +10 -66
- package/dist/lib/components/AudioPlayer/AudioPlayer.d.ts +2 -2
- package/dist/lib/components/AudioPlayer/AudioPlayer.js +32 -56
- package/dist/lib/components/AudioPlayer/AudioProgress.d.ts +1 -1
- package/dist/lib/components/AudioPlayer/AudioProgress.js +12 -43
- package/dist/lib/components/AudioPlayer/AudioRange.d.ts +1 -1
- package/dist/lib/components/AudioPlayer/AudioRange.js +9 -17
- package/dist/lib/components/AudioPlayer/AudioVolume.d.ts +1 -1
- package/dist/lib/components/AudioPlayer/AudioVolume.js +4 -23
- package/dist/lib/components/AudioPlayer/hooks/useTrackDuration.js +5 -16
- package/dist/lib/components/AudioPlayer/style/AudioPlayer.css +1 -58
- package/dist/lib/components/AudioPlayer/style/AudioProgress.css +1 -35
- package/dist/lib/components/AudioPlayer/style/AudioRange.css +1 -68
- package/dist/lib/components/AudioPlayer/style/AudioVolume.css +1 -34
- package/dist/lib/components/AudioPlayer/timerFormatUtil.js +2 -13
- package/dist/lib/components/BannerBox/BannerBox.d.ts +1 -1
- package/dist/lib/components/BannerBox/BannerBox.js +7 -25
- package/dist/lib/components/BenefitsIcons/BenefitsIcons.d.ts +1 -1
- package/dist/lib/components/BenefitsIcons/BenefitsIcons.js +26 -86
- package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.d.ts +1 -1
- package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.js +13 -53
- package/dist/lib/components/BenefitsIcons/helpers.d.ts +3 -3
- package/dist/lib/components/BenefitsIcons/helpers.js +10 -37
- package/dist/lib/components/BenefitsIcons/style/BenefitsIcons.css +1 -38
- package/dist/lib/components/BenefitsIcons/style/BenefitsIconsTile.css +1 -90
- package/dist/lib/components/BenefitsIcons/types.d.ts +5 -5
- package/dist/lib/components/BenefitsIcons/types.js +5 -8
- package/dist/lib/components/BenefitsPictures/BenefitsPictures.d.ts +1 -1
- package/dist/lib/components/BenefitsPictures/BenefitsPictures.js +24 -71
- package/dist/lib/components/BenefitsPictures/BenfitsPictures.css +1 -43
- package/dist/lib/components/BenefitsPictures/helpers.d.ts +2 -2
- package/dist/lib/components/BenefitsPictures/helpers.js +9 -40
- package/dist/lib/components/BenefitsPictures/types.d.ts +3 -3
- package/dist/lib/components/BenefitsPictures/types.js +5 -1
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.css +1 -43
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.d.ts +6 -6
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.js +18 -60
- package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.css +1 -16
- package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.d.ts +4 -4
- package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.js +22 -55
- package/dist/lib/components/ButtonBanner/ButtonBanner.css +1 -122
- package/dist/lib/components/ButtonBanner/ButtonBanner.d.ts +7 -7
- package/dist/lib/components/ButtonBanner/ButtonBanner.js +40 -89
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.css +1 -19
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.d.ts +3 -3
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.js +29 -72
- package/dist/lib/components/Card/Card.css +1 -354
- package/dist/lib/components/Card/Card.d.ts +5 -9
- package/dist/lib/components/Card/Card.js +63 -180
- package/dist/lib/components/Card/types.d.ts +9 -15
- package/dist/lib/components/Card/types.js +5 -1
- package/dist/lib/components/CardsBox/CardsBox.js +7 -31
- package/dist/lib/components/CardsBox/helpers.d.ts +2 -2
- package/dist/lib/components/CardsBox/helpers.js +1 -8
- package/dist/lib/components/CarouselBox/CarouselBox.d.ts +2 -2
- package/dist/lib/components/CarouselBox/CarouselBox.js +15 -39
- package/dist/lib/components/Container/Container.css +1 -3230
- package/dist/lib/components/Container/Container.d.ts +7 -5
- package/dist/lib/components/Container/Container.js +17 -39
- package/dist/lib/components/DownloadLinks/DownloadLink.css +1 -37
- package/dist/lib/components/DownloadLinks/DownloadLink.d.ts +1 -1
- package/dist/lib/components/DownloadLinks/DownloadLink.js +17 -60
- package/dist/lib/components/DownloadLinks/DownloadLinks.css +1 -36
- package/dist/lib/components/DownloadLinks/DownloadLinks.d.ts +3 -3
- package/dist/lib/components/DownloadLinks/DownloadLinks.js +8 -33
- package/dist/lib/components/FaqWrapper/FaqWrapper.d.ts +5 -2
- package/dist/lib/components/FaqWrapper/FaqWrapper.js +6 -9
- package/dist/lib/components/ImageBanner/ImageBanner.css +1 -248
- package/dist/lib/components/ImageBanner/ImageBanner.d.ts +21 -17
- package/dist/lib/components/ImageBanner/ImageBanner.js +71 -155
- package/dist/lib/components/Instructions/Instructions.css +1 -790
- package/dist/lib/components/Instructions/Instructions.d.ts +11 -11
- package/dist/lib/components/Instructions/Instructions.js +103 -186
- package/dist/lib/components/NotificationBox/NotificationBox.css +1 -0
- package/dist/lib/components/NotificationBox/NotificationBox.d.ts +4 -4
- package/dist/lib/components/NotificationBox/NotificationBox.js +9 -37
- package/dist/lib/components/PageTitle/PageTitle.css +1 -80
- package/dist/lib/components/PageTitle/PageTitle.d.ts +2 -2
- package/dist/lib/components/PageTitle/PageTitle.js +15 -52
- package/dist/lib/components/Partners/Partners.css +1 -53
- package/dist/lib/components/Partners/Partners.d.ts +2 -2
- package/dist/lib/components/Partners/Partners.js +21 -65
- package/dist/lib/components/PictureWithDescription/PictureWithDescription.css +1 -80
- package/dist/lib/components/PictureWithDescription/PictureWithDescription.d.ts +4 -2
- package/dist/lib/components/PictureWithDescription/PictureWithDescription.js +16 -46
- package/dist/lib/components/Property/Property.css +1 -156
- package/dist/lib/components/Property/Property.d.ts +4 -4
- package/dist/lib/components/Property/Property.js +60 -120
- package/dist/lib/components/Property/PropertyDescription.css +1 -17
- package/dist/lib/components/Property/PropertyDescription.d.ts +3 -3
- package/dist/lib/components/Property/PropertyDescription.js +15 -46
- package/dist/lib/components/Property/types.d.ts +7 -5
- package/dist/lib/components/Property/types.js +5 -1
- package/dist/lib/components/Steps/Steps.css +1 -41
- package/dist/lib/components/Steps/Steps.d.ts +2 -1
- package/dist/lib/components/Steps/Steps.js +8 -35
- package/dist/lib/components/Steps/StepsItem.css +1 -42
- package/dist/lib/components/Steps/StepsItem.d.ts +2 -2
- package/dist/lib/components/Steps/StepsItem.js +11 -23
- package/dist/lib/components/StoreBanner/StoreBanner.css +1 -346
- package/dist/lib/components/StoreBanner/StoreBanner.d.ts +5 -5
- package/dist/lib/components/StoreBanner/StoreBanner.js +47 -118
- package/dist/lib/components/StoreButton/StoreButton.css +1 -327
- package/dist/lib/components/StoreButton/StoreButton.d.ts +3 -3
- package/dist/lib/components/StoreButton/StoreButton.js +17 -63
- package/dist/lib/components/Table/Table.css +1 -157
- package/dist/lib/components/Table/Table.d.ts +1 -1
- package/dist/lib/components/Table/Table.js +35 -68
- package/dist/lib/components/Table/TableCell.js +4 -16
- package/dist/lib/components/Table/TableRow.js +5 -19
- package/dist/lib/components/TabsBox/TabBox.js +1 -4
- package/dist/lib/components/TabsBox/TabsBox.d.ts +1 -1
- package/dist/lib/components/TabsBox/TabsBox.js +8 -26
- package/dist/lib/components/TextBox/TextBox.css +1 -25
- package/dist/lib/components/TextBox/TextBox.d.ts +2 -1
- package/dist/lib/components/TextBox/TextBox.js +12 -36
- package/dist/lib/components/TextBox/TextBoxPicture.css +1 -27
- package/dist/lib/components/TextBox/TextBoxPicture.d.ts +2 -2
- package/dist/lib/components/TextBox/TextBoxPicture.js +11 -29
- package/dist/lib/components/TextWithIcon/TextWithIcon.css +1 -10
- package/dist/lib/components/TextWithIcon/TextWithIcon.d.ts +1 -1
- package/dist/lib/components/TextWithIcon/TextWithIcon.js +10 -39
- package/dist/lib/components/TextWithIcon/TextWithIconItem.css +1 -29
- package/dist/lib/components/TextWithIcon/TextWithIconItem.d.ts +1 -1
- package/dist/lib/components/TextWithIcon/TextWithIconItem.js +10 -37
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.css +1 -31
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +1 -1
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.js +10 -40
- package/dist/lib/components/VideoBanner/VideoBanner.css +1 -225
- package/dist/lib/components/VideoBanner/VideoBanner.d.ts +7 -7
- package/dist/lib/components/VideoBanner/VideoBanner.js +83 -176
- package/dist/lib/components/VideoBlock/VideoBlock.css +1 -106
- package/dist/lib/components/VideoBlock/VideoBlock.d.ts +4 -4
- package/dist/lib/components/VideoBlock/VideoBlock.js +58 -114
- package/dist/lib/constants/throttleTime.js +2 -3
- package/dist/lib/helpers/getColumnConfig.d.ts +5 -1
- package/dist/lib/helpers/getColumnConfig.js +2 -5
- package/dist/lib/index.js +10 -57
- package/package.json +89 -92
- package/CHANGELOG.md +0 -3984
- package/dist/es/components/NotificationBox/style/NotificationBox.css +0 -28
- 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/lib/components/NotificationBox/style/NotificationBox.css +0 -28
- 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
@@ -1,62 +1,48 @@
|
|
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); }
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
4
5
|
value: true
|
5
6
|
});
|
6
|
-
exports["default"] = exports.
|
7
|
-
|
7
|
+
exports.testIdPrefix = exports["default"] = exports.VideoTypes = void 0;
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
9
|
-
|
10
|
-
require("core-js/modules/es.array.concat.js");
|
11
|
-
|
12
9
|
require("core-js/modules/es.symbol.js");
|
13
|
-
|
14
10
|
require("core-js/modules/es.symbol.description.js");
|
15
|
-
|
16
|
-
require("
|
17
|
-
|
18
|
-
var _react = _interopRequireDefault(require("react"));
|
19
|
-
|
11
|
+
require("core-js/modules/es.array.concat.js");
|
12
|
+
var React = _interopRequireWildcard(require("react"));
|
20
13
|
var _uiCore = require("@megafon/ui-core");
|
21
|
-
|
22
14
|
var _uiHelpers = require("@megafon/ui-helpers");
|
23
|
-
|
24
|
-
var
|
25
|
-
|
15
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
26
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
27
|
-
|
28
|
-
var VideoTypes = {
|
18
|
+
var VideoTypes = exports.VideoTypes = {
|
29
19
|
YOUTUBE: 'youtube',
|
30
20
|
VIDEO: 'video'
|
31
21
|
};
|
32
|
-
exports.
|
33
|
-
var testIdPrefix = 'VideoBlock';
|
34
|
-
exports.testIdPrefix = testIdPrefix;
|
22
|
+
var testIdPrefix = exports.testIdPrefix = 'VideoBlock';
|
35
23
|
var cn = (0, _uiHelpers.cnCreate)('mfui-video-block');
|
36
|
-
|
37
24
|
var VideoBlock = function VideoBlock(_ref) {
|
38
25
|
var dataAttrs = _ref.dataAttrs,
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
var renderVideo = _react["default"].useCallback(function () {
|
26
|
+
className = _ref.className,
|
27
|
+
_ref$classes = _ref.classes,
|
28
|
+
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
29
|
+
rootRef = _ref.rootRef,
|
30
|
+
content = _ref.content,
|
31
|
+
_ref$videoType = _ref.videoType,
|
32
|
+
videoType = _ref$videoType === void 0 ? 'video' : _ref$videoType,
|
33
|
+
videoSrc = _ref.videoSrc,
|
34
|
+
_ref$isMuted = _ref.isMuted,
|
35
|
+
isMuted = _ref$isMuted === void 0 ? true : _ref$isMuted,
|
36
|
+
_ref$isAutoplay = _ref.isAutoplay,
|
37
|
+
isAutoplay = _ref$isAutoplay === void 0 ? false : _ref$isAutoplay,
|
38
|
+
_ref$contentPositionR = _ref.contentPositionRight,
|
39
|
+
contentPositionRight = _ref$contentPositionR === void 0 ? false : _ref$contentPositionR,
|
40
|
+
poster = _ref.poster,
|
41
|
+
_ref$playsinline = _ref.playsinline,
|
42
|
+
playsinline = _ref$playsinline === void 0 ? false : _ref$playsinline,
|
43
|
+
_ref$fixWhiteVideoBac = _ref.fixWhiteVideoBackground,
|
44
|
+
fixWhiteVideoBackground = _ref$fixWhiteVideoBac === void 0 ? false : _ref$fixWhiteVideoBac;
|
45
|
+
var renderVideo = React.useCallback(function () {
|
60
46
|
switch (videoType) {
|
61
47
|
case VideoTypes.YOUTUBE:
|
62
48
|
{
|
@@ -71,9 +57,9 @@ var VideoBlock = function VideoBlock(_ref) {
|
|
71
57
|
var playlist = "&playlist=".concat(videoSrc);
|
72
58
|
var playsinlineProp = "&playsinline=".concat(playsinline ? 1 : 0);
|
73
59
|
var src = "".concat(url).concat(autoplay).concat(mute).concat(loop).concat(rel).concat(controls).concat(showinfo).concat(ivLoadPolicy).concat(playlist).concat(playsinlineProp);
|
74
|
-
return /*#__PURE__*/
|
60
|
+
return /*#__PURE__*/React.createElement("div", {
|
75
61
|
className: cn('youtube')
|
76
|
-
}, /*#__PURE__*/
|
62
|
+
}, /*#__PURE__*/React.createElement("iframe", {
|
77
63
|
className: cn('iframe'),
|
78
64
|
src: src,
|
79
65
|
width: "100%",
|
@@ -85,13 +71,11 @@ var VideoBlock = function VideoBlock(_ref) {
|
|
85
71
|
"data-testid": "".concat(testIdPrefix, "-iframe-video")
|
86
72
|
}));
|
87
73
|
}
|
88
|
-
|
89
74
|
case VideoTypes.VIDEO:
|
90
75
|
{
|
91
|
-
return (
|
92
|
-
/*#__PURE__*/
|
76
|
+
return /*#__PURE__*/(
|
93
77
|
// eslint-disable-next-line jsx-a11y/media-has-caption
|
94
|
-
|
78
|
+
React.createElement("video", {
|
95
79
|
className: cn('video', {
|
96
80
|
'fix-background': fixWhiteVideoBackground
|
97
81
|
}),
|
@@ -102,39 +86,37 @@ var VideoBlock = function VideoBlock(_ref) {
|
|
102
86
|
poster: poster,
|
103
87
|
playsInline: playsinline,
|
104
88
|
"data-testid": "".concat(testIdPrefix, "-video")
|
105
|
-
}, /*#__PURE__*/
|
89
|
+
}, /*#__PURE__*/React.createElement("source", {
|
106
90
|
src: videoSrc,
|
107
91
|
type: "video/mp4"
|
108
92
|
}))
|
109
93
|
);
|
110
94
|
}
|
111
|
-
|
112
95
|
default:
|
113
96
|
{
|
114
97
|
return null;
|
115
98
|
}
|
116
99
|
}
|
117
100
|
}, [videoType, videoSrc, isAutoplay, isMuted, poster, playsinline, fixWhiteVideoBackground]);
|
118
|
-
|
119
|
-
var renderContent = _react["default"].useCallback(function (_ref2) {
|
101
|
+
var renderContent = React.useCallback(function (_ref2) {
|
120
102
|
var title = _ref2.title,
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
return /*#__PURE__*/
|
103
|
+
description = _ref2.description,
|
104
|
+
href = _ref2.href,
|
105
|
+
buttonDownload = _ref2.buttonDownload,
|
106
|
+
buttonTitle = _ref2.buttonTitle,
|
107
|
+
buttonRel = _ref2.buttonRel,
|
108
|
+
onButtonClick = _ref2.onButtonClick;
|
109
|
+
return /*#__PURE__*/React.createElement("div", {
|
128
110
|
className: cn('content', {
|
129
111
|
'position-right': contentPositionRight
|
130
112
|
}),
|
131
113
|
"data-testid": "".concat(testIdPrefix, "-content")
|
132
|
-
}, /*#__PURE__*/
|
114
|
+
}, /*#__PURE__*/React.createElement(_uiCore.Header, {
|
133
115
|
as: "h2",
|
134
116
|
className: cn('header')
|
135
|
-
}, (0, _uiHelpers.convert)(title, _uiHelpers.titleConvertConfig)), /*#__PURE__*/
|
117
|
+
}, (0, _uiHelpers.convert)(title, _uiHelpers.titleConvertConfig)), /*#__PURE__*/React.createElement("div", {
|
136
118
|
className: cn('description', [classes.description])
|
137
|
-
}, typeof description === 'string' ? (0, _uiHelpers.convert)(description, _uiHelpers.textConvertConfig) : description), buttonTitle && /*#__PURE__*/
|
119
|
+
}, typeof description === 'string' ? (0, _uiHelpers.convert)(description, _uiHelpers.textConvertConfig) : description), buttonTitle && /*#__PURE__*/React.createElement(_uiCore.Button, {
|
138
120
|
dataAttrs: {
|
139
121
|
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.button
|
140
122
|
},
|
@@ -145,77 +127,39 @@ var VideoBlock = function VideoBlock(_ref) {
|
|
145
127
|
rel: buttonRel
|
146
128
|
}, buttonTitle));
|
147
129
|
}, [classes.button, classes.description, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.button, contentPositionRight]);
|
148
|
-
|
149
|
-
var renderGridColumns = _react["default"].useCallback(function () {
|
130
|
+
var renderGridColumns = React.useCallback(function () {
|
150
131
|
var columns = [];
|
151
132
|
var columnWidth = content ? '7' : '10';
|
152
|
-
|
153
133
|
if (content) {
|
154
|
-
columns.push( /*#__PURE__*/
|
134
|
+
columns.push( /*#__PURE__*/React.createElement(_uiCore.GridColumn, {
|
155
135
|
all: "5",
|
156
136
|
tablet: "12",
|
157
137
|
mobile: "12",
|
158
|
-
orderTablet: "
|
159
|
-
orderMobile: "
|
138
|
+
orderTablet: "1",
|
139
|
+
orderMobile: "1",
|
140
|
+
orderWide: contentPositionRight ? '1' : '0',
|
141
|
+
orderDesktop: contentPositionRight ? '1' : '0',
|
160
142
|
key: "column-content",
|
161
|
-
className: cn('content-column'
|
162
|
-
'position-right': contentPositionRight
|
163
|
-
})
|
143
|
+
className: cn('content-column')
|
164
144
|
}, renderContent(content)));
|
165
145
|
}
|
166
|
-
|
167
|
-
columns.push( /*#__PURE__*/_react["default"].createElement(_uiCore.GridColumn, {
|
146
|
+
columns.push( /*#__PURE__*/React.createElement(_uiCore.GridColumn, {
|
168
147
|
all: columnWidth,
|
169
148
|
tablet: "12",
|
170
149
|
mobile: "12",
|
171
150
|
key: "column-video",
|
172
|
-
|
173
|
-
|
174
|
-
|
151
|
+
orderDesktop: contentPositionRight ? '0' : '1',
|
152
|
+
orderWide: contentPositionRight ? '0' : '1',
|
153
|
+
className: cn('video-column')
|
175
154
|
}, renderVideo()));
|
176
155
|
return columns;
|
177
156
|
}, [renderContent, renderVideo, content, contentPositionRight]);
|
178
|
-
|
179
|
-
return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
157
|
+
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
180
158
|
className: cn([className, classes.root]),
|
181
159
|
ref: rootRef
|
182
|
-
}), /*#__PURE__*/
|
160
|
+
}), /*#__PURE__*/React.createElement(_uiCore.Grid, {
|
183
161
|
hAlign: "center",
|
184
162
|
className: cn('grid')
|
185
163
|
}, renderGridColumns()));
|
186
164
|
};
|
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;
|
165
|
+
var _default = exports["default"] = VideoBlock;
|
@@ -1,2 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
|
2
|
+
import { GridColumn } from '@megafon/ui-core';
|
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 {};
|
@@ -4,8 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.getColumnConfig = void 0;
|
7
|
-
|
8
|
-
var getColumnConfig = function getColumnConfig(isFullWidth) {
|
7
|
+
var getColumnConfig = exports.getColumnConfig = function getColumnConfig(isFullWidth) {
|
9
8
|
return isFullWidth ? {
|
10
9
|
all: '12'
|
11
10
|
} : {
|
@@ -14,6 +13,4 @@ var getColumnConfig = function getColumnConfig(isFullWidth) {
|
|
14
13
|
tablet: '12',
|
15
14
|
mobile: '12'
|
16
15
|
};
|
17
|
-
};
|
18
|
-
|
19
|
-
exports.getColumnConfig = getColumnConfig;
|
16
|
+
};
|
package/dist/lib/index.js
CHANGED
@@ -249,127 +249,80 @@ Object.defineProperty(exports, "TextWithIconItem", {
|
|
249
249
|
return _TextWithIconItem["default"];
|
250
250
|
}
|
251
251
|
});
|
252
|
-
Object.defineProperty(exports, "
|
252
|
+
Object.defineProperty(exports, "TitleDescriptionBox", {
|
253
253
|
enumerable: true,
|
254
254
|
get: function get() {
|
255
|
-
return
|
255
|
+
return _TitleDescriptionBox["default"];
|
256
256
|
}
|
257
257
|
});
|
258
|
-
Object.defineProperty(exports, "
|
258
|
+
Object.defineProperty(exports, "VideoBanner", {
|
259
259
|
enumerable: true,
|
260
260
|
get: function get() {
|
261
|
-
return
|
261
|
+
return _VideoBanner["default"];
|
262
262
|
}
|
263
263
|
});
|
264
|
-
Object.defineProperty(exports, "
|
264
|
+
Object.defineProperty(exports, "VideoBlock", {
|
265
265
|
enumerable: true,
|
266
266
|
get: function get() {
|
267
|
-
return
|
267
|
+
return _VideoBlock["default"];
|
268
268
|
}
|
269
269
|
});
|
270
|
-
Object.defineProperty(exports, "
|
270
|
+
Object.defineProperty(exports, "timerFormatUtil", {
|
271
271
|
enumerable: true,
|
272
272
|
get: function get() {
|
273
|
-
return
|
273
|
+
return _timerFormatUtil["default"];
|
274
274
|
}
|
275
275
|
});
|
276
|
-
Object.defineProperty(exports, "
|
276
|
+
Object.defineProperty(exports, "useTrackDuration", {
|
277
277
|
enumerable: true,
|
278
278
|
get: function get() {
|
279
|
-
return
|
279
|
+
return _useTrackDuration["default"];
|
280
280
|
}
|
281
281
|
});
|
282
|
-
|
283
282
|
var _AccordionBox = _interopRequireDefault(require("./components/AccordionBox/AccordionBox"));
|
284
|
-
|
285
283
|
var _AudioPlayer = _interopRequireDefault(require("./components/AudioPlayer/AudioPlayer"));
|
286
|
-
|
287
284
|
var _AudioProgress = _interopRequireDefault(require("./components/AudioPlayer/AudioProgress"));
|
288
|
-
|
289
285
|
var _AudioRange = _interopRequireDefault(require("./components/AudioPlayer/AudioRange"));
|
290
|
-
|
291
286
|
var _AudioVolume = _interopRequireDefault(require("./components/AudioPlayer/AudioVolume"));
|
292
|
-
|
293
287
|
var _BannerBox = _interopRequireDefault(require("./components/BannerBox/BannerBox"));
|
294
|
-
|
295
288
|
var _BenefitsIcons = _interopRequireDefault(require("./components/BenefitsIcons/BenefitsIcons"));
|
296
|
-
|
297
289
|
var _BenefitsIconsTile = _interopRequireDefault(require("./components/BenefitsIcons/BenefitsIconsTile"));
|
298
|
-
|
299
290
|
var _BenefitsPictures = _interopRequireDefault(require("./components/BenefitsPictures/BenefitsPictures"));
|
300
|
-
|
301
291
|
var _Breadcrumbs = _interopRequireDefault(require("./components/Breadcrumbs/Breadcrumbs"));
|
302
|
-
|
303
292
|
var _BreadcrumbsItem = _interopRequireDefault(require("./components/Breadcrumbs/components/BreadcrumbsItem"));
|
304
|
-
|
305
293
|
var _ButtonBanner = _interopRequireDefault(require("./components/ButtonBanner/ButtonBanner"));
|
306
|
-
|
307
294
|
var _ButtonLinkBox = _interopRequireDefault(require("./components/ButtonLinkBox/ButtonLinkBox"));
|
308
|
-
|
309
295
|
var _Card = _interopRequireDefault(require("./components/Card/Card"));
|
310
|
-
|
311
296
|
var _CardsBox = _interopRequireDefault(require("./components/CardsBox/CardsBox"));
|
312
|
-
|
313
297
|
var _CarouselBox = _interopRequireDefault(require("./components/CarouselBox/CarouselBox"));
|
314
|
-
|
315
298
|
var _Container = _interopRequireDefault(require("./components/Container/Container"));
|
316
|
-
|
317
299
|
var _DownloadLink = _interopRequireDefault(require("./components/DownloadLinks/DownloadLink"));
|
318
|
-
|
319
300
|
var _DownloadLinks = _interopRequireDefault(require("./components/DownloadLinks/DownloadLinks"));
|
320
|
-
|
321
301
|
var _FaqWrapper = _interopRequireDefault(require("./components/FaqWrapper/FaqWrapper"));
|
322
|
-
|
323
302
|
var _ImageBanner = _interopRequireDefault(require("./components/ImageBanner/ImageBanner"));
|
324
|
-
|
325
303
|
var _Instructions = _interopRequireDefault(require("./components/Instructions/Instructions"));
|
326
|
-
|
327
304
|
var _NotificationBox = _interopRequireDefault(require("./components/NotificationBox/NotificationBox"));
|
328
|
-
|
329
305
|
var _PageTitle = _interopRequireDefault(require("./components/PageTitle/PageTitle"));
|
330
|
-
|
331
306
|
var _Partners = _interopRequireDefault(require("./components/Partners/Partners"));
|
332
|
-
|
333
307
|
var _PictureWithDescription = _interopRequireDefault(require("./components/PictureWithDescription/PictureWithDescription"));
|
334
|
-
|
335
308
|
var _Property = _interopRequireDefault(require("./components/Property/Property"));
|
336
|
-
|
337
309
|
var _PropertyDescription = _interopRequireDefault(require("./components/Property/PropertyDescription"));
|
338
|
-
|
339
310
|
var _Steps = _interopRequireDefault(require("./components/Steps/Steps"));
|
340
|
-
|
341
311
|
var _StepsItem = _interopRequireDefault(require("./components/Steps/StepsItem"));
|
342
|
-
|
343
312
|
var _StoreBanner = _interopRequireDefault(require("./components/StoreBanner/StoreBanner"));
|
344
|
-
|
345
313
|
var _StoreButton = _interopRequireDefault(require("./components/StoreButton/StoreButton"));
|
346
|
-
|
347
314
|
var _TabBox = _interopRequireDefault(require("./components/TabsBox/TabBox"));
|
348
|
-
|
349
315
|
var _Table = _interopRequireDefault(require("./components/Table/Table"));
|
350
|
-
|
351
316
|
var _TableCell = _interopRequireDefault(require("./components/Table/TableCell"));
|
352
|
-
|
353
317
|
var _TableRow = _interopRequireDefault(require("./components/Table/TableRow"));
|
354
|
-
|
355
318
|
var _TabsBox = _interopRequireDefault(require("./components/TabsBox/TabsBox"));
|
356
|
-
|
357
319
|
var _TextBox = _interopRequireDefault(require("./components/TextBox/TextBox"));
|
358
|
-
|
359
320
|
var _TextBoxPicture = _interopRequireDefault(require("./components/TextBox/TextBoxPicture"));
|
360
|
-
|
361
321
|
var _TextWithIcon = _interopRequireDefault(require("./components/TextWithIcon/TextWithIcon"));
|
362
|
-
|
363
322
|
var _TextWithIconItem = _interopRequireDefault(require("./components/TextWithIcon/TextWithIconItem"));
|
364
|
-
|
365
323
|
var _timerFormatUtil = _interopRequireDefault(require("./components/AudioPlayer/timerFormatUtil"));
|
366
|
-
|
367
324
|
var _TitleDescriptionBox = _interopRequireDefault(require("./components/TitleDescriptionBox/TitleDescriptionBox"));
|
368
|
-
|
369
325
|
var _useTrackDuration = _interopRequireDefault(require("./components/AudioPlayer/hooks/useTrackDuration"));
|
370
|
-
|
371
326
|
var _VideoBanner = _interopRequireDefault(require("./components/VideoBanner/VideoBanner"));
|
372
|
-
|
373
327
|
var _VideoBlock = _interopRequireDefault(require("./components/VideoBlock/VideoBlock"));
|
374
|
-
|
375
328
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
package/package.json
CHANGED
@@ -1,94 +1,91 @@
|
|
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
|
-
|
89
|
-
|
90
|
-
"
|
91
|
-
"swiper": "^6.5.6"
|
92
|
-
},
|
93
|
-
"gitHead": "083ea89de7d915f3d2d74aff90e4ec8213a235f5"
|
2
|
+
"name": "@megafon/ui-shared",
|
3
|
+
"version": "6.0.0-beta.1",
|
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": ">=18",
|
42
|
+
"react-dom": ">18"
|
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": "^3.0.0-beta.1",
|
52
|
+
"@svgr/core": "^2.4.1",
|
53
|
+
"@testing-library/jest-dom": "6.4.2",
|
54
|
+
"@testing-library/react": "14.2.1",
|
55
|
+
"@testing-library/user-event": "14.5.2",
|
56
|
+
"@types/jest": "^29.5.12",
|
57
|
+
"@types/react": "^18.2.63",
|
58
|
+
"@types/react-dom": "^18.2.19",
|
59
|
+
"autoprefixer": "^10.4.18",
|
60
|
+
"babel-plugin-module-resolver": "^3.2.0",
|
61
|
+
"cssnano": "^6.1.0",
|
62
|
+
"del": "^3.0.0",
|
63
|
+
"glob": "^7.1.6",
|
64
|
+
"gulp": "^4.0.2",
|
65
|
+
"gulp-babel": "^8.0.0-beta.2",
|
66
|
+
"gulp-imagemin": "^7.1.0",
|
67
|
+
"gulp-less": "^4.0.1",
|
68
|
+
"gulp-postcss": "^10.0.0",
|
69
|
+
"gulp-sass": "^5.1.0",
|
70
|
+
"gulp-typescript": "^5.0.1",
|
71
|
+
"jest": "^29.7.0",
|
72
|
+
"less-plugin-autoprefix": "^2.0.0",
|
73
|
+
"merge2": "^1.3.0",
|
74
|
+
"react": "^18.2.0",
|
75
|
+
"react-dom": "^18.2.0",
|
76
|
+
"sass": "^1.72.0",
|
77
|
+
"stylelint": "^9.10.1",
|
78
|
+
"through2": "^2.0.5",
|
79
|
+
"typescript": "^5.3.3"
|
80
|
+
},
|
81
|
+
"dependencies": {
|
82
|
+
"@babel/runtime": "^7.8.4",
|
83
|
+
"@megafon/ui-core": "^6.0.0-beta.1",
|
84
|
+
"@megafon/ui-helpers": "^3.0.0-beta.1",
|
85
|
+
"core-js": "^3.6.4",
|
86
|
+
"htmr": "^1.0.2",
|
87
|
+
"lodash.throttle": "^4.1.1",
|
88
|
+
"swiper": "^11.1.1"
|
89
|
+
},
|
90
|
+
"gitHead": "2db17c7af18944d764c52bb54e00af56f03499b1"
|
94
91
|
}
|