@megafon/ui-shared 8.1.0 → 8.2.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/dist/es/components/Container/Container.css +1 -1
- package/dist/es/components/Instructions/Instructions.css +1 -1
- package/dist/es/components/Instructions/Instructions.d.ts +15 -0
- package/dist/es/components/Instructions/Instructions.js +32 -3
- package/dist/es/components/PictureBox/PictureBox.css +1 -0
- package/dist/es/components/PictureBox/PictureBox.d.ts +48 -0
- package/dist/es/components/PictureBox/PictureBox.js +96 -0
- package/dist/es/components/PromoBanner/PromoBanner.d.ts +5 -0
- package/dist/es/components/PromoBanner/PromoBanner.js +26 -0
- package/dist/es/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.css +1 -0
- package/dist/es/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.d.ts +66 -0
- package/dist/es/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.js +99 -0
- package/dist/es/components/PromoCards/PromoCards.js +1 -1
- package/dist/es/components/Stepper/StepperItem.css +1 -1
- package/dist/es/components/Stepper/img/separator-vertical.png +0 -0
- package/dist/es/components/Stepper/img/separator.png +0 -0
- package/dist/es/index.d.ts +3 -0
- package/dist/es/index.js +3 -0
- package/dist/lib/components/Container/Container.css +1 -1
- package/dist/lib/components/Instructions/Instructions.css +1 -1
- package/dist/lib/components/Instructions/Instructions.d.ts +15 -0
- package/dist/lib/components/Instructions/Instructions.js +31 -2
- package/dist/lib/components/PictureBox/PictureBox.css +1 -0
- package/dist/lib/components/PictureBox/PictureBox.d.ts +48 -0
- package/dist/lib/components/PictureBox/PictureBox.js +105 -0
- package/dist/lib/components/PromoBanner/PromoBanner.d.ts +5 -0
- package/dist/lib/components/PromoBanner/PromoBanner.js +36 -0
- package/dist/lib/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.css +1 -0
- package/dist/lib/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.d.ts +66 -0
- package/dist/lib/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.js +108 -0
- package/dist/lib/components/PromoCards/PromoCards.js +1 -1
- package/dist/lib/components/Stepper/StepperItem.css +1 -1
- package/dist/lib/components/Stepper/img/separator-vertical.png +0 -0
- package/dist/lib/components/Stepper/img/separator.png +0 -0
- package/dist/lib/index.d.ts +3 -0
- package/dist/lib/index.js +21 -0
- package/package.json +4 -4
@@ -50,6 +50,15 @@ export type InstructionItemType = {
|
|
50
50
|
/** Текст для плашки с изображением QR-кода */
|
51
51
|
qrCodeText?: string | React.ReactNode | React.ReactNode[];
|
52
52
|
};
|
53
|
+
export type ButtonType = {
|
54
|
+
title: string;
|
55
|
+
type?: 'primary' | 'outline';
|
56
|
+
icon?: React.JSX.Element;
|
57
|
+
href?: string;
|
58
|
+
target?: '_self' | '_blank' | '_parent' | '_top';
|
59
|
+
rel?: string;
|
60
|
+
onClick?: (e: React.SyntheticEvent<EventTarget>) => void;
|
61
|
+
};
|
53
62
|
export interface IInstructionsProps {
|
54
63
|
/** Дополнительные data атрибуты к внутренним элементам */
|
55
64
|
dataAttrs?: {
|
@@ -60,6 +69,7 @@ export interface IInstructionsProps {
|
|
60
69
|
wrapper?: Record<string, string>;
|
61
70
|
arrowPrev?: Record<string, string>;
|
62
71
|
arrowNext?: Record<string, string>;
|
72
|
+
button?: Record<string, string>;
|
63
73
|
};
|
64
74
|
/** Ссылка на корневой элемент */
|
65
75
|
rootRef?: React.Ref<HTMLDivElement>;
|
@@ -75,11 +85,14 @@ export interface IInstructionsProps {
|
|
75
85
|
additionalText?: string;
|
76
86
|
arrowPrev?: string;
|
77
87
|
arrowNext?: string;
|
88
|
+
button?: string;
|
78
89
|
};
|
79
90
|
/** Заголовок инструкции */
|
80
91
|
title?: string;
|
81
92
|
/** Пункты инструкции */
|
82
93
|
instructionItems: InstructionItemType[];
|
94
|
+
/** Отступ между пунктами инструкции. DEPRECATED: 'large' */
|
95
|
+
itemsGap?: 'medium' | 'large';
|
83
96
|
/** Описание после инструкции */
|
84
97
|
additionalText?: string;
|
85
98
|
/** Расположение изображения по горизонтали */
|
@@ -98,6 +111,8 @@ export interface IInstructionsProps {
|
|
98
111
|
elementOrder?: ElementOrderType;
|
99
112
|
/** Показать нумерацию пунктов инструкции на мобильных устройствах */
|
100
113
|
showMobileNumeration?: boolean;
|
114
|
+
/** Кнопка */
|
115
|
+
button?: ButtonType;
|
101
116
|
/** Ref на swiper */
|
102
117
|
getSwiper?: (instance: SwiperCore) => void;
|
103
118
|
}
|
@@ -11,6 +11,7 @@ require("core-js/modules/es.array.map.js");
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
12
12
|
var _uiCore = require("@megafon/ui-core");
|
13
13
|
var _uiHelpers = require("@megafon/ui-helpers");
|
14
|
+
var _setRelAttribute = require("../../helpers/setRelAttribute");
|
14
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); }
|
15
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 && {}.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; }
|
16
17
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
@@ -79,9 +80,11 @@ var Instructions = function Instructions(_ref) {
|
|
79
80
|
additionalText = _ref$classes2.additionalText,
|
80
81
|
arrowPrev = _ref$classes2.arrowPrev,
|
81
82
|
arrowNext = _ref$classes2.arrowNext,
|
83
|
+
buttonClass = _ref$classes2.button,
|
82
84
|
_ref$title = _ref.title,
|
83
85
|
title = _ref$title === void 0 ? '' : _ref$title,
|
84
86
|
instructionItems = _ref.instructionItems,
|
87
|
+
itemsGap = _ref.itemsGap,
|
85
88
|
_ref$pictureAlign = _ref.pictureAlign,
|
86
89
|
pictureAlign = _ref$pictureAlign === void 0 ? 'left' : _ref$pictureAlign,
|
87
90
|
_ref$pictureVerticalA = _ref.pictureVerticalAlign,
|
@@ -97,6 +100,7 @@ var Instructions = function Instructions(_ref) {
|
|
97
100
|
_ref$elementOrder = _ref.elementOrder,
|
98
101
|
elementOrder = _ref$elementOrder === void 0 ? 'default' : _ref$elementOrder,
|
99
102
|
showMobileNumeration = _ref.showMobileNumeration,
|
103
|
+
button = _ref.button,
|
100
104
|
children = _ref.children;
|
101
105
|
var _React$useState = React.useState(),
|
102
106
|
_React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
|
@@ -106,6 +110,7 @@ var Instructions = function Instructions(_ref) {
|
|
106
110
|
_React$useState4 = (0, _slicedToArray2["default"])(_React$useState3, 2),
|
107
111
|
slideIndex = _React$useState4[0],
|
108
112
|
setSlideIndex = _React$useState4[1];
|
113
|
+
var showButton = button === null || button === void 0 ? void 0 : button.title;
|
109
114
|
var isMobileReversed = elementOrder === 'reversed';
|
110
115
|
var getSwiperInstance = React.useCallback(function (swiper) {
|
111
116
|
setSwiperInstance(swiper);
|
@@ -313,10 +318,34 @@ var Instructions = function Instructions(_ref) {
|
|
313
318
|
onClick: handleNextClick
|
314
319
|
}));
|
315
320
|
}, [handlePrevClick, handleNextClick, arrowsTheme, arrowPrev, arrowNext, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.arrowPrev, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.arrowNext, slideIndex, instructionItems.length]);
|
321
|
+
var renderButton = React.useCallback(function () {
|
322
|
+
var _ref7 = button || {},
|
323
|
+
buttonTitle = _ref7.title,
|
324
|
+
type = _ref7.type,
|
325
|
+
icon = _ref7.icon,
|
326
|
+
href = _ref7.href,
|
327
|
+
target = _ref7.target,
|
328
|
+
rel = _ref7.rel,
|
329
|
+
onClick = _ref7.onClick;
|
330
|
+
return /*#__PURE__*/React.createElement(_uiCore.Button, {
|
331
|
+
dataAttrs: {
|
332
|
+
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.button
|
333
|
+
},
|
334
|
+
className: cn('button', [buttonClass]),
|
335
|
+
type: type,
|
336
|
+
theme: "green",
|
337
|
+
icon: icon,
|
338
|
+
href: href,
|
339
|
+
target: target,
|
340
|
+
rel: (0, _setRelAttribute.setRelAttribute)(rel, target),
|
341
|
+
onClick: onClick
|
342
|
+
}, buttonTitle);
|
343
|
+
}, [button, buttonClass, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.button]);
|
316
344
|
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
317
345
|
className: cn({
|
318
346
|
mask: pictureMask,
|
319
|
-
reversed: isMobileReversed
|
347
|
+
reversed: isMobileReversed,
|
348
|
+
'items-gap': itemsGap
|
320
349
|
}),
|
321
350
|
ref: rootRef
|
322
351
|
}), /*#__PURE__*/React.createElement(_uiCore.Grid, {
|
@@ -337,6 +366,6 @@ var Instructions = function Instructions(_ref) {
|
|
337
366
|
className: cn('articles', {
|
338
367
|
align: pictureAlign
|
339
368
|
})
|
340
|
-
}, !!title && renderTitle('desktop'), !isMobileReversed && renderMobileArticles(), renderDesktopArticles(), text && renderText(), children)))));
|
369
|
+
}, !!title && renderTitle('desktop'), !isMobileReversed && renderMobileArticles(), renderDesktopArticles(), text && renderText(), showButton && renderButton(), children)))));
|
341
370
|
};
|
342
371
|
var _default = exports["default"] = Instructions;
|
@@ -0,0 +1 @@
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-picture-box_mask_none .mfui-picture-box__image{border-radius:24px;vertical-align:top;width:100%}@media screen and (min-width:768px){.mfui-picture-box_mask_none .mfui-picture-box__image{height:414px;-o-object-fit:cover;object-fit:cover}}@media screen and (min-width:1280px){.mfui-picture-box_mask_none .mfui-picture-box__image{height:520px}}.mfui-picture-box_mask_mac-book .mfui-picture-box__image{border-top-left-radius:1.4% 2.2988505747%;border-top-right-radius:1.4% 2.2988505747%;height:87%;left:0;margin:0 auto;-o-object-fit:cover;object-fit:cover;position:absolute;right:0;top:2%;width:82%}.mfui-picture-box__content{-ms-flex-item-align:center;align-self:center;margin-top:32px}@media screen and (min-width:1024px){.mfui-picture-box__content{margin-top:0}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-picture-box_align_left .mfui-picture-box__content{margin-left:12px}}@media screen and (min-width:1280px){.mfui-picture-box_align_left .mfui-picture-box__content{margin-left:44px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-picture-box_align_right .mfui-picture-box__content{margin-right:12px}}@media screen and (min-width:1280px){.mfui-picture-box_align_right .mfui-picture-box__content{margin-right:44px}}.mfui-picture-box__button-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:20px;margin-top:32px}.mfui-picture-box_mask_mac-book .mfui-picture-box__mask{background-image:url(i/mac-book-1x.png);background-repeat:no-repeat;background-size:100% auto;padding-bottom:60.9%;position:relative}@media screen and (-webkit-min-device-pixel-ratio:2),screen and (min-device-pixel-ratio:2),screen and (min-resolution:192dpi),screen and (min-resolution:2dppx){.mfui-picture-box_mask_mac-book .mfui-picture-box__mask{background-image:url(i/mac-book-2x.png)}}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import './PictureBox.scss';
|
3
|
+
type ImageType = {
|
4
|
+
src: string;
|
5
|
+
src2x?: string;
|
6
|
+
align?: 'right' | 'left';
|
7
|
+
alt?: string;
|
8
|
+
};
|
9
|
+
type ButtonType = {
|
10
|
+
title?: string;
|
11
|
+
href?: string;
|
12
|
+
target?: '_self' | '_blank';
|
13
|
+
rel?: string;
|
14
|
+
onClick?: (e: React.SyntheticEvent<EventTarget>) => void;
|
15
|
+
};
|
16
|
+
export interface IPictureBoxProps {
|
17
|
+
/** Изображение */
|
18
|
+
image: ImageType;
|
19
|
+
/** Кнопка */
|
20
|
+
button?: ButtonType;
|
21
|
+
/** Дополнительная кнопка */
|
22
|
+
extraButton?: ButtonType;
|
23
|
+
/** Маска */
|
24
|
+
pictureMask?: 'mac-book' | 'none';
|
25
|
+
/** Дочерние элементы */
|
26
|
+
children: React.ReactNode;
|
27
|
+
/** Ссылка на корневой элемент */
|
28
|
+
rootRef?: React.Ref<HTMLDivElement>;
|
29
|
+
/** Дополнительный класс для корневого элемента */
|
30
|
+
className?: string;
|
31
|
+
/** Дополнительный класс корневого элемента */
|
32
|
+
classes?: {
|
33
|
+
root?: string;
|
34
|
+
button?: string;
|
35
|
+
extraButton?: string;
|
36
|
+
};
|
37
|
+
/** Дополнительные data атрибуты к внутренним элементам */
|
38
|
+
dataAttrs?: {
|
39
|
+
root?: Record<string, string>;
|
40
|
+
button?: Record<string, string>;
|
41
|
+
extraButton?: Record<string, string>;
|
42
|
+
image?: Record<string, string>;
|
43
|
+
mask?: Record<string, string>;
|
44
|
+
buttonsWrapper?: Record<string, string>;
|
45
|
+
};
|
46
|
+
}
|
47
|
+
declare const PictureBox: React.FC<IPictureBoxProps>;
|
48
|
+
export default PictureBox;
|
@@ -0,0 +1,105 @@
|
|
1
|
+
"use strict";
|
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
|
+
Object.defineProperty(exports, "__esModule", {
|
5
|
+
value: true
|
6
|
+
});
|
7
|
+
exports["default"] = void 0;
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
9
|
+
require("core-js/modules/es.array.concat.js");
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
11
|
+
var _uiCore = require("@megafon/ui-core");
|
12
|
+
var _uiHelpers = require("@megafon/ui-helpers");
|
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 && {}.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; }
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
16
|
+
var cn = (0, _uiHelpers.cnCreate)('mfui-picture-box');
|
17
|
+
var PictureBox = function PictureBox(_ref) {
|
18
|
+
var image = _ref.image,
|
19
|
+
button = _ref.button,
|
20
|
+
extraButton = _ref.extraButton,
|
21
|
+
_ref$pictureMask = _ref.pictureMask,
|
22
|
+
pictureMask = _ref$pictureMask === void 0 ? 'none' : _ref$pictureMask,
|
23
|
+
dataAttrs = _ref.dataAttrs,
|
24
|
+
className = _ref.className,
|
25
|
+
classes = _ref.classes,
|
26
|
+
rootRef = _ref.rootRef,
|
27
|
+
children = _ref.children;
|
28
|
+
var imageSrc = image.src,
|
29
|
+
imageSrc2x = image.src2x,
|
30
|
+
_image$align = image.align,
|
31
|
+
imageAlign = _image$align === void 0 ? 'left' : _image$align,
|
32
|
+
_image$alt = image.alt,
|
33
|
+
imageAlt = _image$alt === void 0 ? '' : _image$alt;
|
34
|
+
var imageOrder = imageAlign === 'left' ? '0' : '1';
|
35
|
+
var renderImg = function renderImg() {
|
36
|
+
var srcSet = imageSrc2x ? "".concat(imageSrc, ", ").concat(imageSrc2x, " 2x") : undefined;
|
37
|
+
var img = /*#__PURE__*/React.createElement("img", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.image), {
|
38
|
+
className: cn('image'),
|
39
|
+
srcSet: srcSet,
|
40
|
+
src: imageSrc,
|
41
|
+
alt: imageAlt
|
42
|
+
}));
|
43
|
+
if (pictureMask !== 'none') {
|
44
|
+
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.mask), {
|
45
|
+
className: cn('mask')
|
46
|
+
}), img);
|
47
|
+
}
|
48
|
+
return img;
|
49
|
+
};
|
50
|
+
var renderButtons = function renderButtons() {
|
51
|
+
if (!button && !extraButton) {
|
52
|
+
return null;
|
53
|
+
}
|
54
|
+
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.buttonsWrapper), {
|
55
|
+
className: cn('button-wrapper')
|
56
|
+
}), !!button && /*#__PURE__*/React.createElement(_uiCore.Button, {
|
57
|
+
href: button.href,
|
58
|
+
target: button.target,
|
59
|
+
rel: button.rel,
|
60
|
+
dataAttrs: {
|
61
|
+
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.button
|
62
|
+
},
|
63
|
+
classes: {
|
64
|
+
root: classes === null || classes === void 0 ? void 0 : classes.button
|
65
|
+
},
|
66
|
+
onClick: button.onClick
|
67
|
+
}, button.title), !!extraButton && /*#__PURE__*/React.createElement(_uiCore.Button, {
|
68
|
+
href: extraButton.href,
|
69
|
+
target: extraButton.target,
|
70
|
+
rel: extraButton.rel,
|
71
|
+
type: "outline",
|
72
|
+
dataAttrs: {
|
73
|
+
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.extraButton
|
74
|
+
},
|
75
|
+
classes: {
|
76
|
+
root: classes === null || classes === void 0 ? void 0 : classes.extraButton
|
77
|
+
},
|
78
|
+
onClick: extraButton.onClick
|
79
|
+
}, extraButton.title));
|
80
|
+
};
|
81
|
+
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
|
82
|
+
className: cn({
|
83
|
+
align: imageAlign,
|
84
|
+
mask: pictureMask
|
85
|
+
}, [classes === null || classes === void 0 ? void 0 : classes.root, className])
|
86
|
+
}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
87
|
+
ref: rootRef
|
88
|
+
}), /*#__PURE__*/React.createElement(_uiCore.Grid, {
|
89
|
+
guttersLeft: "medium"
|
90
|
+
}, /*#__PURE__*/React.createElement(_uiCore.GridColumn, {
|
91
|
+
all: "7",
|
92
|
+
tablet: "12",
|
93
|
+
mobile: "12",
|
94
|
+
orderWide: imageOrder,
|
95
|
+
orderDesktop: imageOrder
|
96
|
+
}, renderImg()), /*#__PURE__*/React.createElement(_uiCore.GridColumn, {
|
97
|
+
all: "5",
|
98
|
+
tablet: "12",
|
99
|
+
mobile: "12",
|
100
|
+
flex: true
|
101
|
+
}, /*#__PURE__*/React.createElement("div", {
|
102
|
+
className: cn('content')
|
103
|
+
}, children, renderButtons()))));
|
104
|
+
};
|
105
|
+
var _default = exports["default"] = PictureBox;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { Banner } from '@megafon/ui-core';
|
3
|
+
export type PromoBannerPropsType = Omit<React.ComponentProps<typeof Banner>, 'autoHeight' | 'arrowTheme'>;
|
4
|
+
declare const PromoBanner: React.FC<PromoBannerPropsType>;
|
5
|
+
export default PromoBanner;
|
@@ -0,0 +1,36 @@
|
|
1
|
+
"use strict";
|
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
|
+
Object.defineProperty(exports, "__esModule", {
|
5
|
+
value: true
|
6
|
+
});
|
7
|
+
exports["default"] = void 0;
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
9
|
+
require("core-js/modules/es.symbol.js");
|
10
|
+
require("core-js/modules/es.array.index-of.js");
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
12
|
+
var _uiCore = require("@megafon/ui-core");
|
13
|
+
var _uiHelpers = require("@megafon/ui-helpers");
|
14
|
+
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); }
|
15
|
+
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 && {}.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; }
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
17
|
+
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
18
|
+
var t = {};
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
20
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
21
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
22
|
+
}
|
23
|
+
return t;
|
24
|
+
};
|
25
|
+
var cn = (0, _uiHelpers.cnCreate)('mfui-promo-banner');
|
26
|
+
var PromoBanner = function PromoBanner(_a) {
|
27
|
+
var children = _a.children,
|
28
|
+
props = __rest(_a, ["children"]);
|
29
|
+
return /*#__PURE__*/React.createElement("div", {
|
30
|
+
className: cn()
|
31
|
+
}, /*#__PURE__*/React.createElement(_uiCore.Banner, (0, _extends2["default"])({}, props, {
|
32
|
+
autoHeight: true,
|
33
|
+
arrowTheme: "white"
|
34
|
+
}), children));
|
35
|
+
};
|
36
|
+
var _default = exports["default"] = PromoBanner;
|
@@ -0,0 +1 @@
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-promo-banner-slide{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;-webkit-box-orient:vertical;-webkit-box-direction:normal;border-radius:24px;-ms-flex-direction:column;flex-direction:column;min-height:100%;overflow:hidden}.mfui-promo-banner-slide_background_dark-violet{background-image:-webkit-gradient(linear,right top,left top,from(#ada6ba),color-stop(108%,#f6f2f9));background-image:linear-gradient(270deg,#ada6ba,#f6f2f9 108%)}.mfui-promo-banner-slide_background_light-violet{background:#f6f2f9}.mfui-promo-banner-slide__container{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;z-index:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;gap:24px;padding:32px 20px 12px}@media screen and (min-width:768px) and (max-width:1023px){.mfui-promo-banner-slide__container{padding:38px 40px}}@media screen and (min-width:768px){.mfui-promo-banner-slide__container{gap:32px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;min-height:308px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-promo-banner-slide__container{padding:34px 64px}}@media screen and (min-width:1280px){.mfui-promo-banner-slide__container{padding:42px 80px}}.mfui-promo-banner-slide__content{color:var(--stcBlack)}@media screen and (min-width:768px) and (max-width:1023px){.mfui-promo-banner-slide__content{max-width:350px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-promo-banner-slide__content{max-width:450px}}@media screen and (min-width:1280px){.mfui-promo-banner-slide__content{max-width:645px}}.mfui-promo-banner-slide__title{margin-bottom:12px}@media screen and (min-width:1280px){.mfui-promo-banner-slide__description{margin-right:82px}}.mfui-promo-banner-slide__buttons-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:16px}@media screen and (min-width:768px){.mfui-promo-banner-slide__buttons-wrapper{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}.mfui-promo-banner-slide__picture{display:block;height:150px;position:relative;z-index:0}@media screen and (min-width:768px){.mfui-promo-banner-slide__picture{height:100%;position:absolute;top:0}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-promo-banner-slide__picture{left:404px;width:523px}}@media screen and (min-width:1024px){.mfui-promo-banner-slide__picture{width:696px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-promo-banner-slide__picture{left:534px}}@media screen and (min-width:1280px){.mfui-promo-banner-slide__picture{left:744px}}.mfui-promo-banner-slide__image{height:100%;-o-object-fit:cover;object-fit:cover;vertical-align:top;width:100%}@media screen and (min-width:768px){.mfui-promo-banner-slide__image{-o-object-fit:contain;object-fit:contain}}
|
@@ -0,0 +1,66 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import './PromoBannerSlide.scss';
|
3
|
+
type ButtonType = {
|
4
|
+
/** Заголовок */
|
5
|
+
title?: string;
|
6
|
+
/** Ссылка */
|
7
|
+
href?: string;
|
8
|
+
/** Target - свойство тега <a> */
|
9
|
+
target?: '_self' | '_blank';
|
10
|
+
/** Rel - атрибут тега <a> */
|
11
|
+
rel?: string;
|
12
|
+
/** Обработчик клика по кнопке */
|
13
|
+
onClick?: (e: React.SyntheticEvent<EventTarget>) => void;
|
14
|
+
};
|
15
|
+
type ImageType = {
|
16
|
+
/** Изображение на разрешении экрана 1024+ */
|
17
|
+
desktopSrc: string;
|
18
|
+
/** Изображение 2x на разрешении экрана 1024+ */
|
19
|
+
desktopSrc2x?: string;
|
20
|
+
/** Изображение на разрешении экрана 768-1023 */
|
21
|
+
tabletSrc: string;
|
22
|
+
/** Изображение 2x на разрешении экрана 768-1023 */
|
23
|
+
tabletSrc2x?: string;
|
24
|
+
/** Изображение на разрешении экрана 0-767 */
|
25
|
+
mobileSrc: string;
|
26
|
+
/** Изображение 2x на разрешении экрана 0-767 */
|
27
|
+
mobileSrc2x?: string;
|
28
|
+
/** Значение тега alt для изображения */
|
29
|
+
alt?: string;
|
30
|
+
};
|
31
|
+
export interface IPromoBannerSlideProps {
|
32
|
+
/** Дополнительный класс корневого элемента */
|
33
|
+
className?: string;
|
34
|
+
/** Заголовок */
|
35
|
+
title: string | React.ReactNode | React.ReactNode[];
|
36
|
+
/** Текст-описание */
|
37
|
+
description: string | React.ReactNode | React.ReactNode[];
|
38
|
+
/** Кнопка */
|
39
|
+
button?: ButtonType;
|
40
|
+
/** Дополнительная кнопка */
|
41
|
+
extraButton?: ButtonType;
|
42
|
+
/** Изображение */
|
43
|
+
image: ImageType;
|
44
|
+
/** Фон */
|
45
|
+
background?: 'light-violet' | 'dark-violet';
|
46
|
+
/** Дополнительные классы для корневого и внутренних элементов */
|
47
|
+
classes?: {
|
48
|
+
root?: string;
|
49
|
+
button?: string;
|
50
|
+
extraButton?: string;
|
51
|
+
};
|
52
|
+
/** Дополнительные data атрибуты к внутренним элементам */
|
53
|
+
dataAttrs?: {
|
54
|
+
root?: Record<string, string>;
|
55
|
+
image?: Record<string, string>;
|
56
|
+
desktopImageSource?: Record<string, string>;
|
57
|
+
tabletImageSource?: Record<string, string>;
|
58
|
+
buttonsWrapper?: Record<string, string>;
|
59
|
+
button?: Record<string, string>;
|
60
|
+
extraButton?: Record<string, string>;
|
61
|
+
};
|
62
|
+
/** Ссылка на корневой элемент */
|
63
|
+
rootRef?: React.Ref<HTMLDivElement>;
|
64
|
+
}
|
65
|
+
declare const PromoBannerSlide: React.FC<IPromoBannerSlideProps>;
|
66
|
+
export default PromoBannerSlide;
|
@@ -0,0 +1,108 @@
|
|
1
|
+
"use strict";
|
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
|
+
Object.defineProperty(exports, "__esModule", {
|
5
|
+
value: true
|
6
|
+
});
|
7
|
+
exports["default"] = void 0;
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
9
|
+
require("core-js/modules/es.symbol.js");
|
10
|
+
require("core-js/modules/es.symbol.description.js");
|
11
|
+
require("core-js/modules/es.array.concat.js");
|
12
|
+
var React = _interopRequireWildcard(require("react"));
|
13
|
+
var _uiCore = require("@megafon/ui-core");
|
14
|
+
var _uiHelpers = require("@megafon/ui-helpers");
|
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 && {}.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; }
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
18
|
+
var cn = (0, _uiHelpers.cnCreate)('mfui-promo-banner-slide');
|
19
|
+
var PromoBannerSlide = function PromoBannerSlide(_ref) {
|
20
|
+
var className = _ref.className,
|
21
|
+
title = _ref.title,
|
22
|
+
description = _ref.description,
|
23
|
+
button = _ref.button,
|
24
|
+
extraButton = _ref.extraButton,
|
25
|
+
image = _ref.image,
|
26
|
+
_ref$background = _ref.background,
|
27
|
+
background = _ref$background === void 0 ? 'dark-violet' : _ref$background,
|
28
|
+
classes = _ref.classes,
|
29
|
+
dataAttrs = _ref.dataAttrs,
|
30
|
+
rootRef = _ref.rootRef;
|
31
|
+
var renderButtons = function renderButtons() {
|
32
|
+
if (!button && !extraButton) {
|
33
|
+
return null;
|
34
|
+
}
|
35
|
+
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
|
36
|
+
className: cn('buttons-wrapper')
|
37
|
+
}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.buttonsWrapper)), !!button && /*#__PURE__*/React.createElement(_uiCore.Button, {
|
38
|
+
href: button.href,
|
39
|
+
target: button.target,
|
40
|
+
rel: button.rel,
|
41
|
+
classes: {
|
42
|
+
root: classes === null || classes === void 0 ? void 0 : classes.button
|
43
|
+
},
|
44
|
+
dataAttrs: {
|
45
|
+
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.button
|
46
|
+
},
|
47
|
+
onClick: button.onClick
|
48
|
+
}, button.title), !!extraButton && /*#__PURE__*/React.createElement(_uiCore.Button, {
|
49
|
+
href: extraButton.href,
|
50
|
+
target: extraButton.target,
|
51
|
+
rel: extraButton.rel,
|
52
|
+
type: "outline",
|
53
|
+
classes: {
|
54
|
+
root: classes === null || classes === void 0 ? void 0 : classes.extraButton
|
55
|
+
},
|
56
|
+
dataAttrs: {
|
57
|
+
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.extraButton
|
58
|
+
},
|
59
|
+
onClick: extraButton.onClick
|
60
|
+
}, extraButton.title));
|
61
|
+
};
|
62
|
+
var renderImage = function renderImage() {
|
63
|
+
var desktopSrc = image.desktopSrc,
|
64
|
+
desktopSrc2x = image.desktopSrc2x,
|
65
|
+
tabletSrc = image.tabletSrc,
|
66
|
+
tabletSrc2x = image.tabletSrc2x,
|
67
|
+
mobileSrc = image.mobileSrc,
|
68
|
+
mobileSrc2x = image.mobileSrc2x,
|
69
|
+
alt = image.alt;
|
70
|
+
var desktopSrcSet = desktopSrc2x ? "".concat(desktopSrc, ", ").concat(desktopSrc2x, " 2x") : desktopSrc;
|
71
|
+
var tabletSrcSet = tabletSrc2x ? "".concat(tabletSrc, ", ").concat(tabletSrc2x, " 2x") : tabletSrc;
|
72
|
+
var mobileSrcSet = mobileSrc2x ? "".concat(mobileSrc, ", ").concat(mobileSrc2x, " 2x") : mobileSrc;
|
73
|
+
return /*#__PURE__*/React.createElement("picture", {
|
74
|
+
className: cn('picture')
|
75
|
+
}, /*#__PURE__*/React.createElement("source", (0, _extends2["default"])({
|
76
|
+
media: "(min-width: ".concat(_uiHelpers.breakpoints.DESKTOP_SMALL_START, "px)"),
|
77
|
+
srcSet: desktopSrcSet
|
78
|
+
}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.desktopImageSource))), /*#__PURE__*/React.createElement("source", (0, _extends2["default"])({
|
79
|
+
media: "(min-width: ".concat(_uiHelpers.breakpoints.MOBILE_BIG_START, "px)"),
|
80
|
+
srcSet: tabletSrcSet
|
81
|
+
}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.tabletImageSource))), /*#__PURE__*/React.createElement("img", (0, _extends2["default"])({
|
82
|
+
className: cn('image'),
|
83
|
+
src: mobileSrc,
|
84
|
+
srcSet: mobileSrcSet,
|
85
|
+
alt: alt || ''
|
86
|
+
}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.image))));
|
87
|
+
};
|
88
|
+
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
|
89
|
+
className: cn({
|
90
|
+
background: background
|
91
|
+
}, [classes === null || classes === void 0 ? void 0 : classes.root, className])
|
92
|
+
}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
93
|
+
ref: rootRef
|
94
|
+
}), /*#__PURE__*/React.createElement("div", {
|
95
|
+
className: cn('container')
|
96
|
+
}, /*#__PURE__*/React.createElement("div", {
|
97
|
+
className: cn('content')
|
98
|
+
}, /*#__PURE__*/React.createElement(_uiCore.Header, {
|
99
|
+
className: cn('title'),
|
100
|
+
as: "h2",
|
101
|
+
color: "inherit"
|
102
|
+
}, typeof title === 'string' ? (0, _uiHelpers.convert)(title, _uiHelpers.titleConvertConfig) : title), /*#__PURE__*/React.createElement(_uiCore.Paragraph, {
|
103
|
+
className: cn('description'),
|
104
|
+
hasMargin: false,
|
105
|
+
color: "inherit"
|
106
|
+
}, typeof description === 'string' ? (0, _uiHelpers.convert)(description, _uiHelpers.textConvertConfig) : description)), renderButtons()), renderImage());
|
107
|
+
};
|
108
|
+
var _default = exports["default"] = PromoBannerSlide;
|
@@ -53,7 +53,7 @@ var PromoCards = function PromoCards(_ref) {
|
|
53
53
|
dataAttrs: {
|
54
54
|
root: (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.card, i + 1)
|
55
55
|
},
|
56
|
-
className:
|
56
|
+
className: classes === null || classes === void 0 ? void 0 : classes.card,
|
57
57
|
key: i + item.title
|
58
58
|
}));
|
59
59
|
})));
|
@@ -1 +1 @@
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-stepper-item{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;gap:16px}.mfui-stepper-item_is-horizontal{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-stepper-item_is-horizontal .mfui-stepper-item__separator{-o-border-image:url(
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-stepper-item{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;gap:16px}.mfui-stepper-item_is-horizontal{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-stepper-item_is-horizontal .mfui-stepper-item__separator{-o-border-image:url(img/separator.png) 2 repeat;border-image:url(img/separator.png) 2 repeat;border-left:none;border-radius:100px;border-top:2px solid transparent;height:2px;left:calc(50% + 24px);min-height:2px;position:absolute;top:19px;width:calc(100% - 36px)}@media screen and (min-width:1024px){.mfui-stepper-item_is-horizontal .mfui-stepper-item__separator{left:calc(50% + 32px);width:calc(100% - 52px)}}.mfui-stepper-item_theme_active .mfui-stepper-item__icon-button{background-color:var(--night20)}.mfui-stepper-item_theme_active .mfui-stepper-item__icon{background-color:var(--night)}.mfui-stepper-item_theme_checked .mfui-stepper-item__icon-button{background-color:var(--brandGreen20)}.mfui-stepper-item_theme_checked .mfui-stepper-item__icon{background-color:var(--brandGreen)}.mfui-stepper-item_theme_checked .mfui-stepper-item__separator{border-color:var(--brandGreen);-o-border-image:none;border-image:none}.mfui-stepper-item_align_left{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.mfui-stepper-item_align_left .mfui-stepper-item__separator{left:auto;right:0}.mfui-stepper-item_align_left .mfui-stepper-item__content,.mfui-stepper-item_align_left .mfui-stepper-item__icon-button-area{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.mfui-stepper-item__icon-button-area{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:12px;-ms-flex-align:center;-ms-flex-item-align:stretch;align-self:stretch}.mfui-stepper-item__icon-button,.mfui-stepper-item__icon-button-area{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;align-items:center}.mfui-stepper-item__icon-button{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;background-color:var(--spbSky0);border-radius:100%;height:40px;justify-content:center;-webkit-transition:background-color .25s ease-out;transition:background-color .25s ease-out;width:40px}.mfui-stepper-item__icon-button:disabled{cursor:default}.mfui-stepper-item__icon{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;background-color:var(--spbSky2);border-radius:100%;color:var(--stcWhite);font-weight:500;height:24px;justify-content:center;-webkit-transition:background-color .25s ease-out;transition:background-color .25s ease-out;width:24px}.mfui-stepper-item__icon svg{width:20px;fill:var(--stcWhite)}.mfui-stepper-item__separator{-o-border-image:url(img/separator-vertical.png) 2 repeat;border-image:url(img/separator-vertical.png) 2 repeat;border-left:2px solid transparent;border-top:none;height:100%;min-height:20px;position:static;-webkit-transition:border-color .25s ease-out;transition:border-color .25s ease-out;width:2px}.mfui-stepper-item__content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:4px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;min-width:160px;padding-bottom:20px}.mfui-stepper-item__link{margin-top:13px}
|
Binary file
|
Binary file
|
package/dist/lib/index.d.ts
CHANGED
@@ -30,7 +30,10 @@ export { default as Instructions } from './components/Instructions/Instructions'
|
|
30
30
|
export { default as NotificationBox } from './components/NotificationBox/NotificationBox';
|
31
31
|
export { default as PageTitle } from './components/PageTitle/PageTitle';
|
32
32
|
export { default as Partners } from './components/Partners/Partners';
|
33
|
+
export { default as PictureBox } from './components/PictureBox/PictureBox';
|
33
34
|
export { default as PictureWithDescription } from './components/PictureWithDescription/PictureWithDescription';
|
35
|
+
export { default as PromoBanner } from './components/PromoBanner/PromoBanner';
|
36
|
+
export { default as PromoBannerSlide } from './components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide';
|
34
37
|
export { default as PromoCard } from './components/PromoCards/components/PromoCard/PromoCard';
|
35
38
|
export { default as PromoCards } from './components/PromoCards/PromoCards';
|
36
39
|
export { default as Property } from './components/Property/Property';
|
package/dist/lib/index.js
CHANGED
@@ -195,12 +195,30 @@ Object.defineProperty(exports, "Partners", {
|
|
195
195
|
return _Partners["default"];
|
196
196
|
}
|
197
197
|
});
|
198
|
+
Object.defineProperty(exports, "PictureBox", {
|
199
|
+
enumerable: true,
|
200
|
+
get: function get() {
|
201
|
+
return _PictureBox["default"];
|
202
|
+
}
|
203
|
+
});
|
198
204
|
Object.defineProperty(exports, "PictureWithDescription", {
|
199
205
|
enumerable: true,
|
200
206
|
get: function get() {
|
201
207
|
return _PictureWithDescription["default"];
|
202
208
|
}
|
203
209
|
});
|
210
|
+
Object.defineProperty(exports, "PromoBanner", {
|
211
|
+
enumerable: true,
|
212
|
+
get: function get() {
|
213
|
+
return _PromoBanner["default"];
|
214
|
+
}
|
215
|
+
});
|
216
|
+
Object.defineProperty(exports, "PromoBannerSlide", {
|
217
|
+
enumerable: true,
|
218
|
+
get: function get() {
|
219
|
+
return _PromoBannerSlide["default"];
|
220
|
+
}
|
221
|
+
});
|
204
222
|
Object.defineProperty(exports, "PromoCard", {
|
205
223
|
enumerable: true,
|
206
224
|
get: function get() {
|
@@ -395,7 +413,10 @@ var _Instructions = _interopRequireDefault(require("./components/Instructions/In
|
|
395
413
|
var _NotificationBox = _interopRequireDefault(require("./components/NotificationBox/NotificationBox"));
|
396
414
|
var _PageTitle = _interopRequireDefault(require("./components/PageTitle/PageTitle"));
|
397
415
|
var _Partners = _interopRequireDefault(require("./components/Partners/Partners"));
|
416
|
+
var _PictureBox = _interopRequireDefault(require("./components/PictureBox/PictureBox"));
|
398
417
|
var _PictureWithDescription = _interopRequireDefault(require("./components/PictureWithDescription/PictureWithDescription"));
|
418
|
+
var _PromoBanner = _interopRequireDefault(require("./components/PromoBanner/PromoBanner"));
|
419
|
+
var _PromoBannerSlide = _interopRequireDefault(require("./components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide"));
|
399
420
|
var _PromoCard = _interopRequireDefault(require("./components/PromoCards/components/PromoCard/PromoCard"));
|
400
421
|
var _PromoCards = _interopRequireDefault(require("./components/PromoCards/PromoCards"));
|
401
422
|
var _Property = _interopRequireDefault(require("./components/Property/Property"));
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@megafon/ui-shared",
|
3
|
-
"version": "8.
|
3
|
+
"version": "8.2.0",
|
4
4
|
"files": [
|
5
5
|
"dist"
|
6
6
|
],
|
@@ -77,13 +77,13 @@
|
|
77
77
|
},
|
78
78
|
"dependencies": {
|
79
79
|
"@babel/runtime": "^7.8.4",
|
80
|
-
"@megafon/ui-core": "^8.
|
80
|
+
"@megafon/ui-core": "^8.2.0",
|
81
81
|
"@megafon/ui-helpers": "^4.0.1",
|
82
|
-
"@megafon/ui-icons": "^3.
|
82
|
+
"@megafon/ui-icons": "^3.9.0",
|
83
83
|
"core-js": "^3.6.4",
|
84
84
|
"htmr": "^1.0.2",
|
85
85
|
"lodash.throttle": "^4.1.1",
|
86
86
|
"swiper": "^11.1.1"
|
87
87
|
},
|
88
|
-
"gitHead": "
|
88
|
+
"gitHead": "bf090c9d8db62ae578449898acfd83da9f5b0e55"
|
89
89
|
}
|