@megafon/ui-shared 5.17.0 → 6.0.0-beta.2
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/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/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.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.d.ts +4 -4
- package/dist/es/components/Card/Card.js +25 -115
- package/dist/es/components/Card/types.d.ts +10 -10
- 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.d.ts +7 -5
- package/dist/es/components/Container/Container.js +10 -25
- 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.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.d.ts +8 -7
- package/dist/es/components/ImageBanner/ImageBanner.js +37 -88
- 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.d.ts +4 -4
- package/dist/es/components/NotificationBox/NotificationBox.js +5 -19
- 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.d.ts +2 -2
- package/dist/es/components/Partners/Partners.js +17 -48
- 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.d.ts +4 -4
- package/dist/es/components/Property/Property.js +37 -81
- 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.d.ts +2 -1
- package/dist/es/components/Steps/Steps.js +4 -19
- 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.d.ts +5 -5
- package/dist/es/components/StoreBanner/StoreBanner.js +41 -97
- 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.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.d.ts +2 -1
- package/dist/es/components/TextBox/TextBox.js +8 -23
- 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.d.ts +1 -1
- package/dist/es/components/TextWithIcon/TextWithIcon.js +6 -24
- 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.d.ts +1 -1
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.js +6 -23
- 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.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/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/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.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.d.ts +4 -4
- package/dist/lib/components/Card/Card.js +67 -164
- package/dist/lib/components/Card/types.d.ts +10 -10
- 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.d.ts +7 -5
- package/dist/lib/components/Container/Container.js +18 -40
- 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.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.d.ts +8 -7
- package/dist/lib/components/ImageBanner/ImageBanner.js +61 -138
- 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.d.ts +4 -4
- package/dist/lib/components/NotificationBox/NotificationBox.js +9 -37
- 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.d.ts +2 -2
- package/dist/lib/components/Partners/Partners.js +21 -65
- 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.d.ts +4 -4
- package/dist/lib/components/Property/Property.js +60 -120
- 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.d.ts +2 -1
- package/dist/lib/components/Steps/Steps.js +8 -35
- 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.d.ts +5 -5
- package/dist/lib/components/StoreBanner/StoreBanner.js +47 -118
- 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.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.d.ts +2 -1
- package/dist/lib/components/TextBox/TextBox.js +12 -36
- 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.d.ts +1 -1
- package/dist/lib/components/TextWithIcon/TextWithIcon.js +10 -39
- 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.d.ts +1 -1
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.js +10 -40
- 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.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 +87 -92
- package/CHANGELOG.md +0 -4002
- package/dist/es/components/AudioPlayer/style/AudioPlayer.css +0 -58
- package/dist/es/components/AudioPlayer/style/AudioProgress.css +0 -35
- package/dist/es/components/AudioPlayer/style/AudioRange.css +0 -68
- package/dist/es/components/AudioPlayer/style/AudioVolume.css +0 -34
- package/dist/es/components/BenefitsIcons/style/BenefitsIcons.css +0 -38
- package/dist/es/components/BenefitsIcons/style/BenefitsIconsTile.css +0 -90
- package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.css +0 -16
- package/dist/es/components/Card/Card.css +0 -354
- package/dist/es/components/Container/Container.css +0 -3245
- package/dist/es/components/DownloadLinks/DownloadLink.css +0 -37
- package/dist/es/components/DownloadLinks/DownloadLinks.css +0 -36
- package/dist/es/components/ImageBanner/ImageBanner.css +0 -252
- package/dist/es/components/Instructions/Instructions.css +0 -790
- package/dist/es/components/NotificationBox/style/NotificationBox.css +0 -28
- package/dist/es/components/PageTitle/PageTitle.css +0 -80
- package/dist/es/components/Partners/Partners.css +0 -53
- package/dist/es/components/PictureWithDescription/PictureWithDescription.css +0 -80
- package/dist/es/components/Property/Property.css +0 -156
- package/dist/es/components/Property/PropertyDescription.css +0 -17
- package/dist/es/components/Steps/Steps.css +0 -41
- package/dist/es/components/Steps/StepsItem.css +0 -42
- package/dist/es/components/StoreBanner/StoreBanner.css +0 -346
- 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 +0 -327
- package/dist/es/components/Table/Table.css +0 -157
- package/dist/es/components/TextBox/TextBox.css +0 -25
- package/dist/es/components/TextBox/TextBoxPicture.css +0 -27
- package/dist/es/components/TextWithIcon/TextWithIcon.css +0 -10
- package/dist/es/components/TextWithIcon/TextWithIconItem.css +0 -29
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.css +0 -31
- package/dist/es/components/VideoBanner/VideoBanner.css +0 -225
- package/dist/es/components/VideoBlock/VideoBlock.css +0 -106
- package/dist/lib/components/AudioPlayer/style/AudioPlayer.css +0 -58
- package/dist/lib/components/AudioPlayer/style/AudioProgress.css +0 -35
- package/dist/lib/components/AudioPlayer/style/AudioRange.css +0 -68
- package/dist/lib/components/AudioPlayer/style/AudioVolume.css +0 -34
- package/dist/lib/components/BenefitsIcons/style/BenefitsIcons.css +0 -38
- package/dist/lib/components/BenefitsIcons/style/BenefitsIconsTile.css +0 -90
- package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.css +0 -16
- package/dist/lib/components/Card/Card.css +0 -354
- package/dist/lib/components/Container/Container.css +0 -3245
- package/dist/lib/components/DownloadLinks/DownloadLink.css +0 -37
- package/dist/lib/components/DownloadLinks/DownloadLinks.css +0 -36
- package/dist/lib/components/ImageBanner/ImageBanner.css +0 -252
- package/dist/lib/components/Instructions/Instructions.css +0 -790
- package/dist/lib/components/NotificationBox/style/NotificationBox.css +0 -28
- package/dist/lib/components/PageTitle/PageTitle.css +0 -80
- package/dist/lib/components/Partners/Partners.css +0 -53
- package/dist/lib/components/PictureWithDescription/PictureWithDescription.css +0 -80
- package/dist/lib/components/Property/Property.css +0 -156
- package/dist/lib/components/Property/PropertyDescription.css +0 -17
- package/dist/lib/components/Steps/Steps.css +0 -41
- package/dist/lib/components/Steps/StepsItem.css +0 -42
- package/dist/lib/components/StoreBanner/StoreBanner.css +0 -346
- 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 +0 -327
- package/dist/lib/components/Table/Table.css +0 -157
- package/dist/lib/components/TextBox/TextBox.css +0 -25
- package/dist/lib/components/TextBox/TextBoxPicture.css +0 -27
- package/dist/lib/components/TextWithIcon/TextWithIcon.css +0 -10
- package/dist/lib/components/TextWithIcon/TextWithIconItem.css +0 -29
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.css +0 -31
- package/dist/lib/components/VideoBanner/VideoBanner.css +0 -225
- package/dist/lib/components/VideoBlock/VideoBlock.css +0 -106
@@ -1,106 +1,85 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
function _typeof(
|
4
|
-
|
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); }
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
6
5
|
value: true
|
7
6
|
});
|
8
|
-
exports["default"] =
|
9
|
-
|
7
|
+
exports.testIdPrefix = exports["default"] = void 0;
|
10
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
11
|
-
|
12
|
-
require("core-js/modules/es.array.map.js");
|
13
|
-
|
14
9
|
require("core-js/modules/es.symbol.js");
|
15
|
-
|
16
10
|
require("core-js/modules/es.symbol.description.js");
|
17
|
-
|
18
|
-
var
|
19
|
-
|
11
|
+
require("core-js/modules/es.array.map.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 _propTypes = _interopRequireDefault(require("prop-types"));
|
25
|
-
|
26
15
|
var _getColumnConfig = require("../../helpers/getColumnConfig");
|
27
|
-
|
28
16
|
var _PropertyDescription = _interopRequireDefault(require("./PropertyDescription"));
|
29
|
-
|
30
|
-
function
|
31
|
-
|
32
|
-
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; }
|
33
|
-
|
17
|
+
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); }
|
18
|
+
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; }
|
34
19
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
35
|
-
|
36
20
|
var InfoIcon = function InfoIcon(props) {
|
37
|
-
return /*#__PURE__*/
|
21
|
+
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
38
22
|
viewBox: "0 0 20 20"
|
39
|
-
}, props), /*#__PURE__*/
|
23
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
40
24
|
d: "M10 2c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8zm0 5c.6 0 1-.4 1-1s-.4-1-1-1-1 .4-1 1 .4 1 1 1zm1 8V9H9v6h2z"
|
41
25
|
}));
|
42
26
|
};
|
43
|
-
|
44
|
-
var testIdPrefix = 'Property';
|
45
|
-
exports.testIdPrefix = testIdPrefix;
|
27
|
+
var testIdPrefix = exports.testIdPrefix = 'Property';
|
46
28
|
var cn = (0, _uiHelpers.cnCreate)('mfui-property');
|
47
|
-
|
48
29
|
var Property = function Property(_ref) {
|
49
30
|
var rootRef = _ref.rootRef,
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
var tooltipRef =
|
72
|
-
|
73
|
-
|
74
|
-
return title && title.map(function (titleItem, i) {
|
31
|
+
items = _ref.items,
|
32
|
+
className = _ref.className,
|
33
|
+
_ref$badge = _ref.badge,
|
34
|
+
badge = _ref$badge === void 0 ? '' : _ref$badge,
|
35
|
+
_ref$badgeType = _ref.badgeType,
|
36
|
+
badgeType = _ref$badgeType === void 0 ? 'popular' : _ref$badgeType,
|
37
|
+
tooltip = _ref.tooltip,
|
38
|
+
icon = _ref.icon,
|
39
|
+
_ref$disableBorderTop = _ref.disableBorderTop,
|
40
|
+
disableBorderTop = _ref$disableBorderTop === void 0 ? false : _ref$disableBorderTop,
|
41
|
+
_ref$borderBottom = _ref.borderBottom,
|
42
|
+
borderBottom = _ref$borderBottom === void 0 ? false : _ref$borderBottom,
|
43
|
+
_ref$borderColor = _ref.borderColor,
|
44
|
+
borderColor = _ref$borderColor === void 0 ? 'default' : _ref$borderColor,
|
45
|
+
_ref$mergedValue = _ref.mergedValue,
|
46
|
+
mergedValue = _ref$mergedValue === void 0 ? '' : _ref$mergedValue,
|
47
|
+
_ref$fullWidth = _ref.fullWidth,
|
48
|
+
fullWidth = _ref$fullWidth === void 0 ? false : _ref$fullWidth,
|
49
|
+
_ref$classes = _ref.classes,
|
50
|
+
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
51
|
+
dataAttrs = _ref.dataAttrs;
|
52
|
+
var tooltipRef = React.useRef(null);
|
53
|
+
var renderTitle = function renderTitle(titles, titleSize, isFirstItem) {
|
54
|
+
return titles === null || titles === void 0 ? void 0 : titles.map(function (titleItem, i) {
|
75
55
|
var isFirstTitle = i === 0;
|
76
|
-
return /*#__PURE__*/
|
56
|
+
return /*#__PURE__*/React.createElement("div", {
|
77
57
|
key: i,
|
78
58
|
className: cn('title-item', {
|
79
59
|
size: titleSize
|
80
60
|
}, [classes.title]),
|
81
61
|
"data-testid": "".concat(testIdPrefix, "-title-item")
|
82
|
-
}, icon && isFirstTitle && /*#__PURE__*/
|
62
|
+
}, icon && isFirstTitle && /*#__PURE__*/React.createElement("div", {
|
83
63
|
className: cn('icon')
|
84
|
-
}, icon), titleItem, tooltip && isFirstItem && isFirstTitle && /*#__PURE__*/
|
64
|
+
}, icon), titleItem, tooltip && isFirstItem && isFirstTitle && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
85
65
|
className: cn('tooltip'),
|
86
66
|
ref: tooltipRef
|
87
|
-
}, /*#__PURE__*/
|
67
|
+
}, /*#__PURE__*/React.createElement(InfoIcon, null)), /*#__PURE__*/React.createElement(_uiCore.Tooltip, {
|
88
68
|
className: cn('tooltip-inner'),
|
89
69
|
triggerElement: tooltipRef
|
90
70
|
}, tooltip)));
|
91
71
|
});
|
92
72
|
};
|
93
|
-
|
94
73
|
var renderDescription = function renderDescription(description) {
|
95
|
-
return description
|
74
|
+
return description === null || description === void 0 ? void 0 : description.map(function (_ref2, j) {
|
96
75
|
var value = _ref2.value,
|
97
|
-
|
98
|
-
return /*#__PURE__*/
|
76
|
+
isCollapsible = _ref2.isCollapsible;
|
77
|
+
return /*#__PURE__*/React.createElement("div", {
|
99
78
|
className: cn('desc', {
|
100
79
|
collapsible: isCollapsible
|
101
80
|
}),
|
102
81
|
key: j
|
103
|
-
}, /*#__PURE__*/
|
82
|
+
}, /*#__PURE__*/React.createElement(_PropertyDescription["default"], {
|
104
83
|
value: value,
|
105
84
|
isCollapsible: isCollapsible,
|
106
85
|
dataAttrs: {
|
@@ -113,98 +92,59 @@ var Property = function Property(_ref) {
|
|
113
92
|
}));
|
114
93
|
});
|
115
94
|
};
|
116
|
-
|
117
95
|
var renderValue = function renderValue(valueFrameColor, value, valueUnit) {
|
118
|
-
return /*#__PURE__*/
|
96
|
+
return /*#__PURE__*/React.createElement("div", {
|
119
97
|
className: cn('value-wrapper', {
|
120
98
|
frame: valueFrameColor
|
121
99
|
}),
|
122
100
|
"data-testid": "".concat(testIdPrefix, "-value")
|
123
|
-
}, /*#__PURE__*/
|
101
|
+
}, /*#__PURE__*/React.createElement("div", {
|
124
102
|
className: cn('value')
|
125
|
-
}, typeof value === 'string' ? (0, _uiHelpers.convert)(value, {}) : value), valueUnit && /*#__PURE__*/
|
103
|
+
}, typeof value === 'string' ? (0, _uiHelpers.convert)(value, {}) : value), valueUnit && /*#__PURE__*/React.createElement(_uiCore.Caption, {
|
126
104
|
className: cn('value-unit'),
|
127
105
|
hasMargin: false
|
128
106
|
}, (0, _uiHelpers.convert)(valueUnit, {})));
|
129
107
|
};
|
130
|
-
|
131
|
-
return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
|
108
|
+
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
|
132
109
|
className: cn({
|
133
110
|
'border-top': !disableBorderTop,
|
134
111
|
'border-bottom': borderBottom,
|
135
112
|
'border-color': borderColor
|
136
113
|
}, [className]),
|
137
114
|
ref: rootRef
|
138
|
-
}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root)), /*#__PURE__*/
|
115
|
+
}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root)), /*#__PURE__*/React.createElement(_uiCore.Grid, null, /*#__PURE__*/React.createElement(_uiCore.GridColumn, (0, _extends2["default"])({}, (0, _getColumnConfig.getColumnConfig)(fullWidth), {
|
139
116
|
dataAttrs: {
|
140
117
|
root: {
|
141
118
|
'data-testid': "".concat(testIdPrefix, "-gridColumn")
|
142
119
|
}
|
143
120
|
}
|
144
|
-
}), /*#__PURE__*/
|
121
|
+
}), /*#__PURE__*/React.createElement("div", {
|
145
122
|
className: cn('wrapper')
|
146
123
|
}, items.map(function (_ref3, i) {
|
147
124
|
var title = _ref3.title,
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
125
|
+
value = _ref3.value,
|
126
|
+
description = _ref3.description,
|
127
|
+
_ref3$valueUnit = _ref3.valueUnit,
|
128
|
+
valueUnit = _ref3$valueUnit === void 0 ? '' : _ref3$valueUnit,
|
129
|
+
_ref3$titleSize = _ref3.titleSize,
|
130
|
+
titleSize = _ref3$titleSize === void 0 ? 'default' : _ref3$titleSize,
|
131
|
+
_ref3$valueFrameColor = _ref3.valueFrameColor,
|
132
|
+
valueFrameColor = _ref3$valueFrameColor === void 0 ? 'none' : _ref3$valueFrameColor;
|
156
133
|
var isFirstItem = i === 0;
|
157
134
|
var isRenderBadge = isFirstItem && !!badge;
|
158
|
-
return /*#__PURE__*/
|
135
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
159
136
|
key: i
|
160
|
-
}, /*#__PURE__*/
|
137
|
+
}, /*#__PURE__*/React.createElement("div", {
|
161
138
|
className: cn('main', {
|
162
139
|
'with-badge': isRenderBadge,
|
163
140
|
'with-out-title': !title
|
164
141
|
})
|
165
|
-
}, /*#__PURE__*/
|
142
|
+
}, /*#__PURE__*/React.createElement("div", {
|
166
143
|
className: cn('title')
|
167
|
-
}, isRenderBadge && /*#__PURE__*/
|
144
|
+
}, isRenderBadge && /*#__PURE__*/React.createElement(_uiCore.PromoBadge, {
|
168
145
|
className: cn('badge'),
|
169
146
|
type: badgeType
|
170
147
|
}, badge), title ? renderTitle(title, titleSize, isFirstItem) : renderDescription(description)), mergedValue && isFirstItem && renderValue(valueFrameColor, mergedValue, valueUnit), !mergedValue && value && renderValue(valueFrameColor, value, valueUnit)), title && renderDescription(description));
|
171
148
|
})))));
|
172
149
|
};
|
173
|
-
|
174
|
-
Property.propTypes = {
|
175
|
-
rootRef: _propTypes["default"].oneOfType([_propTypes["default"].func, _propTypes["default"].oneOfType([_propTypes["default"].shape({
|
176
|
-
current: _propTypes["default"].elementType
|
177
|
-
}), _propTypes["default"].any])]),
|
178
|
-
items: _propTypes["default"].arrayOf(_propTypes["default"].shape({
|
179
|
-
title: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].arrayOf(_propTypes["default"].node)]),
|
180
|
-
description: _propTypes["default"].arrayOf(_propTypes["default"].shape({
|
181
|
-
value: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].arrayOf(_propTypes["default"].node)]).isRequired,
|
182
|
-
isCollapsible: _propTypes["default"].bool
|
183
|
-
})),
|
184
|
-
value: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].node]),
|
185
|
-
titleSize: _propTypes["default"].oneOf(['default', 'big']),
|
186
|
-
valueUnit: _propTypes["default"].string,
|
187
|
-
valueFrameColor: _propTypes["default"].oneOf(['none', 'default', 'gray'])
|
188
|
-
}).isRequired).isRequired,
|
189
|
-
className: _propTypes["default"].string,
|
190
|
-
badge: _propTypes["default"].string,
|
191
|
-
badgeType: _propTypes["default"].oneOf(['hit', 'new', 'vip', 'popular', 'user-choice', 'interests']),
|
192
|
-
tooltip: _propTypes["default"].string,
|
193
|
-
disableBorderTop: _propTypes["default"].bool,
|
194
|
-
borderBottom: _propTypes["default"].bool,
|
195
|
-
borderColor: _propTypes["default"].oneOf(['default', 'darker']),
|
196
|
-
mergedValue: _propTypes["default"].string,
|
197
|
-
icon: _propTypes["default"].node,
|
198
|
-
fullWidth: _propTypes["default"].bool,
|
199
|
-
dataAttrs: _propTypes["default"].shape({
|
200
|
-
root: _propTypes["default"].objectOf(_propTypes["default"].string.isRequired),
|
201
|
-
moreLink: _propTypes["default"].objectOf(_propTypes["default"].string.isRequired)
|
202
|
-
}),
|
203
|
-
classes: _propTypes["default"].shape({
|
204
|
-
title: _propTypes["default"].string,
|
205
|
-
openedDescription: _propTypes["default"].string,
|
206
|
-
toggleDescription: _propTypes["default"].string
|
207
|
-
})
|
208
|
-
};
|
209
|
-
var _default = Property;
|
210
|
-
exports["default"] = _default;
|
150
|
+
var _default = exports["default"] = Property;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import './PropertyDescription.
|
3
|
-
import {
|
2
|
+
import './PropertyDescription.scss';
|
3
|
+
import { DescriptionType } from './types';
|
4
4
|
export declare const testIdPrefix = "PropertyDescription";
|
5
|
-
declare const PropertyDescription: React.FC<
|
5
|
+
declare const PropertyDescription: React.FC<DescriptionType>;
|
6
6
|
export default PropertyDescription;
|
@@ -1,54 +1,37 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
function _typeof(
|
4
|
-
|
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); }
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
6
5
|
value: true
|
7
6
|
});
|
8
|
-
exports["default"] =
|
9
|
-
|
7
|
+
exports.testIdPrefix = exports["default"] = void 0;
|
10
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
11
|
-
|
12
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
13
|
-
|
14
10
|
var React = _interopRequireWildcard(require("react"));
|
15
|
-
|
16
11
|
var _uiCore = require("@megafon/ui-core");
|
17
|
-
|
18
12
|
var _uiHelpers = require("@megafon/ui-helpers");
|
19
|
-
|
20
|
-
var
|
21
|
-
|
22
|
-
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); }
|
23
|
-
|
24
|
-
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; }
|
25
|
-
|
13
|
+
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); }
|
14
|
+
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
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
27
|
-
|
28
16
|
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
29
|
-
|
30
17
|
/* eslint-disable jsx-a11y/click-events-have-key-events */
|
31
|
-
var testIdPrefix = 'PropertyDescription';
|
32
|
-
exports.testIdPrefix = testIdPrefix;
|
33
|
-
var cn = (0, _uiHelpers.cnCreate)('mfui-property-description');
|
34
18
|
|
19
|
+
var testIdPrefix = exports.testIdPrefix = 'PropertyDescription';
|
20
|
+
var cn = (0, _uiHelpers.cnCreate)('mfui-property-description');
|
35
21
|
var PropertyDescription = function PropertyDescription(_ref) {
|
36
22
|
var value = _ref.value,
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
23
|
+
_ref$isCollapsible = _ref.isCollapsible,
|
24
|
+
isCollapsible = _ref$isCollapsible === void 0 ? false : _ref$isCollapsible,
|
25
|
+
_ref$classes = _ref.classes,
|
26
|
+
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
27
|
+
dataAttrs = _ref.dataAttrs;
|
43
28
|
var _React$useState = React.useState(false),
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
29
|
+
_React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
|
30
|
+
isOpened = _React$useState2[0],
|
31
|
+
setIsOpened = _React$useState2[1];
|
48
32
|
var handleClickDesc = React.useCallback(function () {
|
49
33
|
return setIsOpened(!isOpened);
|
50
34
|
}, [isOpened]);
|
51
|
-
|
52
35
|
if (isCollapsible) {
|
53
36
|
return /*#__PURE__*/React.createElement("div", {
|
54
37
|
className: cn([isOpened ? classes.open : undefined]),
|
@@ -63,22 +46,8 @@ var PropertyDescription = function PropertyDescription(_ref) {
|
|
63
46
|
className: cn('collapse', classes.toggle)
|
64
47
|
}), isOpened ? 'Скрыть' : 'Подробнее'));
|
65
48
|
}
|
66
|
-
|
67
49
|
return /*#__PURE__*/React.createElement("div", {
|
68
50
|
className: cn()
|
69
51
|
}, value);
|
70
52
|
};
|
71
|
-
|
72
|
-
PropertyDescription.propTypes = {
|
73
|
-
value: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].arrayOf(_propTypes["default"].node)]).isRequired,
|
74
|
-
isCollapsible: _propTypes["default"].bool,
|
75
|
-
classes: _propTypes["default"].shape({
|
76
|
-
open: _propTypes["default"].string,
|
77
|
-
toggle: _propTypes["default"].string
|
78
|
-
}),
|
79
|
-
dataAttrs: _propTypes["default"].shape({
|
80
|
-
moreLink: _propTypes["default"].objectOf(_propTypes["default"].string.isRequired)
|
81
|
-
})
|
82
|
-
};
|
83
|
-
var _default = PropertyDescription;
|
84
|
-
exports["default"] = _default;
|
53
|
+
var _default = exports["default"] = PropertyDescription;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
export
|
2
|
+
export type DescriptionType = {
|
3
3
|
value: string | React.ReactNode[];
|
4
4
|
isCollapsible?: boolean;
|
5
5
|
classes?: {
|
@@ -10,10 +10,12 @@ export declare type Desc = {
|
|
10
10
|
moreLink?: Record<string, string>;
|
11
11
|
};
|
12
12
|
};
|
13
|
-
export
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
export type TitleSizeType = 'default' | 'big';
|
14
|
+
export type ValueFrameColor = 'none' | 'default' | 'gray';
|
15
|
+
export type Item = {
|
16
|
+
title?: React.ReactNode[];
|
17
|
+
titleSize?: TitleSizeType;
|
18
|
+
description?: DescriptionType[];
|
17
19
|
value?: string | React.ReactNode;
|
18
20
|
valueUnit?: string;
|
19
21
|
valueFrameColor?: 'none' | 'default' | 'gray';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import './Steps.
|
2
|
+
import './Steps.scss';
|
3
3
|
export interface ISteps {
|
4
4
|
/** Дополнительный класс корневого элемента */
|
5
5
|
className?: string;
|
@@ -13,6 +13,7 @@ export interface ISteps {
|
|
13
13
|
rootRef?: React.Ref<HTMLDivElement>;
|
14
14
|
/** Заголовок */
|
15
15
|
title?: string;
|
16
|
+
children: React.ReactNode;
|
16
17
|
}
|
17
18
|
declare const Steps: React.FC<ISteps>;
|
18
19
|
export default Steps;
|
@@ -1,36 +1,23 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
function _typeof(
|
4
|
-
|
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); }
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
6
5
|
value: true
|
7
6
|
});
|
8
7
|
exports["default"] = void 0;
|
9
|
-
|
10
8
|
require("core-js/modules/es.array.map.js");
|
11
|
-
|
12
9
|
var React = _interopRequireWildcard(require("react"));
|
13
|
-
|
14
10
|
var _uiCore = require("@megafon/ui-core");
|
15
|
-
|
16
11
|
var _uiHelpers = require("@megafon/ui-helpers");
|
17
|
-
|
18
|
-
var
|
19
|
-
|
20
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
21
|
-
|
22
|
-
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); }
|
23
|
-
|
24
|
-
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; }
|
25
|
-
|
12
|
+
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); }
|
13
|
+
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
14
|
var cn = (0, _uiHelpers.cnCreate)('mfui-steps');
|
27
|
-
|
28
15
|
var Steps = function Steps(_ref) {
|
29
16
|
var className = _ref.className,
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
17
|
+
classes = _ref.classes,
|
18
|
+
title = _ref.title,
|
19
|
+
rootRef = _ref.rootRef,
|
20
|
+
children = _ref.children;
|
34
21
|
return /*#__PURE__*/React.createElement("div", {
|
35
22
|
className: cn([className]),
|
36
23
|
ref: rootRef
|
@@ -46,18 +33,4 @@ var Steps = function Steps(_ref) {
|
|
46
33
|
}, child);
|
47
34
|
})));
|
48
35
|
};
|
49
|
-
|
50
|
-
Steps.propTypes = {
|
51
|
-
className: _propTypes["default"].string,
|
52
|
-
classes: _propTypes["default"].shape({
|
53
|
-
title: _propTypes["default"].string,
|
54
|
-
list: _propTypes["default"].string,
|
55
|
-
item: _propTypes["default"].string
|
56
|
-
}),
|
57
|
-
rootRef: _propTypes["default"].oneOfType([_propTypes["default"].func, _propTypes["default"].oneOfType([_propTypes["default"].shape({
|
58
|
-
current: _propTypes["default"].elementType
|
59
|
-
}), _propTypes["default"].any])]),
|
60
|
-
title: _propTypes["default"].string
|
61
|
-
};
|
62
|
-
var _default = Steps;
|
63
|
-
exports["default"] = _default;
|
36
|
+
var _default = exports["default"] = Steps;
|
@@ -1,41 +1,29 @@
|
|
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
7
|
exports["default"] = void 0;
|
7
|
-
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
9
|
-
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
10
9
|
var _uiCore = require("@megafon/ui-core");
|
11
|
-
|
12
10
|
var _uiHelpers = require("@megafon/ui-helpers");
|
13
|
-
|
14
|
-
var
|
15
|
-
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
17
|
-
|
11
|
+
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); }
|
12
|
+
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; }
|
18
13
|
var cn = (0, _uiHelpers.cnCreate)('mfui-steps-item');
|
19
|
-
|
20
14
|
var StepsItem = function StepsItem(_ref) {
|
21
15
|
var index = _ref.index,
|
22
|
-
|
23
|
-
return /*#__PURE__*/
|
16
|
+
text = _ref.text;
|
17
|
+
return /*#__PURE__*/React.createElement("div", {
|
24
18
|
className: cn()
|
25
|
-
}, /*#__PURE__*/
|
19
|
+
}, /*#__PURE__*/React.createElement("span", {
|
26
20
|
className: cn('step-number')
|
27
|
-
}, index), /*#__PURE__*/
|
21
|
+
}, index), /*#__PURE__*/React.createElement("div", {
|
28
22
|
className: cn('text-wrapper')
|
29
|
-
}, typeof text === 'string' ? /*#__PURE__*/
|
23
|
+
}, typeof text === 'string' ? /*#__PURE__*/React.createElement(_uiCore.Paragraph, {
|
30
24
|
hasMargin: false
|
31
|
-
}, (0, _uiHelpers.convert)(text, _uiHelpers.textConvertConfig)) : /*#__PURE__*/
|
25
|
+
}, (0, _uiHelpers.convert)(text, _uiHelpers.textConvertConfig)) : /*#__PURE__*/React.createElement("div", {
|
32
26
|
className: cn('nodes')
|
33
27
|
}, text)));
|
34
28
|
};
|
35
|
-
|
36
|
-
StepsItem.propTypes = {
|
37
|
-
index: _propTypes["default"].number.isRequired,
|
38
|
-
text: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].arrayOf(_propTypes["default"].node)]).isRequired
|
39
|
-
};
|
40
|
-
var _default = StepsItem;
|
41
|
-
exports["default"] = _default;
|
29
|
+
var _default = exports["default"] = StepsItem;
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { Props as StoreButtonPropsType } from '../StoreButton/StoreButton';
|
3
|
-
import './StoreBanner.
|
3
|
+
import './StoreBanner.scss';
|
4
4
|
export declare const Theme: {
|
5
5
|
readonly DEFAULT: "default";
|
6
6
|
readonly GREEN: "green";
|
7
7
|
readonly SPB_SKY_1: "spbSky1";
|
8
8
|
readonly SPB_SKY_0: "spbSky0";
|
9
9
|
};
|
10
|
-
|
10
|
+
type ThemeType = (typeof Theme)[keyof typeof Theme];
|
11
11
|
export declare const DeviceMask: {
|
12
12
|
readonly ANDROID: "android";
|
13
13
|
readonly NEW_IPHONE: "new-iphone";
|
@@ -16,9 +16,9 @@ export declare const DeviceMask: {
|
|
16
16
|
readonly WHITE_IPHONE: "white-iphone";
|
17
17
|
readonly IPHONE_12: "iphone-12";
|
18
18
|
};
|
19
|
-
|
20
|
-
|
21
|
-
|
19
|
+
type DeviceMaskType = (typeof DeviceMask)[keyof typeof DeviceMask];
|
20
|
+
type LinkHrefType = StoreButtonPropsType['href'];
|
21
|
+
type LinkOnClickType = StoreButtonPropsType['onClick'];
|
22
22
|
export interface IStoreBannerProps {
|
23
23
|
/** Заголовок */
|
24
24
|
title: string;
|