@megafon/ui-shared 9.0.0-alpha.2 → 9.0.0-alpha.21
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.d.ts +3 -1
- package/dist/es/components/BenefitCards/BenefitCard/BenefitCard.css +1 -0
- package/dist/es/components/BenefitCards/BenefitCard/BenefitCard.d.ts +13 -0
- package/dist/es/components/BenefitCards/BenefitCard/BenefitCard.js +59 -0
- package/dist/es/components/BenefitCards/BenefitCards.css +1 -0
- package/dist/es/components/BenefitCards/BenefitCards.d.ts +27 -0
- package/dist/es/components/BenefitCards/BenefitCards.js +35 -0
- package/dist/es/components/BenefitCards/helpers.d.ts +1 -0
- package/dist/es/components/BenefitCards/helpers.js +19 -0
- package/dist/es/components/BenefitCards/types.d.ts +24 -0
- package/dist/es/components/BenefitCards/types.js +1 -0
- package/dist/es/components/BlogBox/BlogBox.d.ts +3 -0
- package/dist/es/components/BlogBox/BlogBox.js +8 -3
- package/dist/es/components/BlogBox/components/BlogBoxTile.css +1 -1
- package/dist/es/components/BlogBox/components/BlogBoxTile.d.ts +5 -1
- package/dist/es/components/BlogBox/components/BlogBoxTile.js +3 -2
- package/dist/es/components/Breadcrumbs/Breadcrumbs.d.ts +2 -0
- package/dist/es/components/Breadcrumbs/Breadcrumbs.js +3 -0
- package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.d.ts +1 -0
- package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.js +18 -13
- package/dist/es/components/Card/Card.css +1 -1
- package/dist/es/components/Card/Card.d.ts +2 -1
- package/dist/es/components/Card/Card.js +23 -16
- package/dist/es/components/Card/types.d.ts +3 -5
- package/dist/es/components/CardsOnBackground/CardsOnBackground.css +1 -0
- package/dist/es/components/CardsOnBackground/CardsOnBackground.d.ts +34 -0
- package/dist/es/components/CardsOnBackground/CardsOnBackground.js +99 -0
- package/dist/es/components/CardsOnBackground/components/CardOnBackground.css +1 -0
- package/dist/es/components/CardsOnBackground/components/CardOnBackground.d.ts +22 -0
- package/dist/es/components/CardsOnBackground/components/CardOnBackground.js +94 -0
- package/dist/es/components/CardsOnBackground/types.d.ts +42 -0
- package/dist/es/components/CardsOnBackground/types.js +6 -0
- package/dist/es/components/CardsOnBackground/useUniformHeights.d.ts +9 -0
- package/dist/es/components/CardsOnBackground/useUniformHeights.js +88 -0
- package/dist/es/components/Container/Container.css +1 -1
- package/dist/es/components/Container/Container.d.ts +4 -0
- package/dist/es/components/Container/Container.js +4 -1
- package/dist/es/components/DarkGradientCards/DarkGradientCards.d.ts +5 -0
- package/dist/es/components/DarkGradientCards/DarkGradientCards.js +9 -4
- package/dist/es/components/DarkGradientCards/components/DarkGradientCard.css +1 -1
- package/dist/es/components/DarkGradientCards/components/DarkGradientCard.d.ts +1 -0
- package/dist/es/components/DarkGradientCards/components/DarkGradientCard.js +1 -1
- package/dist/es/components/DownloadLinks/DownloadLink.css +1 -1
- package/dist/es/components/DownloadLinks/DownloadLink.js +3 -1
- package/dist/es/components/InfoCards/components/InfoCard/InfoCard.css +1 -1
- package/dist/es/components/InfoCards/components/InfoCard/InfoCard.js +4 -2
- package/dist/es/components/Instructions/Instructions.css +1 -1
- package/dist/es/components/Instructions/Instructions.d.ts +0 -2
- package/dist/es/components/Instructions/Instructions.js +19 -22
- package/dist/es/components/NotificationBox/NotificationBox.d.ts +1 -1
- package/dist/es/components/NotificationBox/NotificationBox.js +1 -4
- package/dist/es/components/Partners/Partners.css +1 -1
- package/dist/es/components/Partners/Partners.d.ts +3 -8
- package/dist/es/components/Partners/Partners.js +20 -31
- package/dist/es/components/Partners/components/PartnersItem/PartnersItem.css +1 -0
- package/dist/es/components/Partners/components/PartnersItem/PartnersItem.d.ts +12 -0
- package/dist/es/components/Partners/components/PartnersItem/PartnersItem.js +33 -0
- package/dist/es/components/Partners/types.d.ts +7 -0
- package/dist/es/components/Partners/types.js +1 -0
- package/dist/es/components/PictureBox/PictureBox.d.ts +1 -0
- package/dist/es/components/PictureBox/PictureBox.js +2 -0
- package/dist/es/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.d.ts +2 -0
- package/dist/es/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.js +2 -0
- package/dist/es/components/PromoCards/PromoCards.d.ts +3 -0
- package/dist/es/components/PromoCards/PromoCards.js +6 -1
- package/dist/es/components/PromoCards/components/PromoCard/PromoCard.css +1 -1
- package/dist/es/components/PromoCards/components/PromoCard/PromoCard.d.ts +2 -0
- package/dist/es/components/PromoCards/components/PromoCard/PromoCard.js +17 -9
- package/dist/es/components/ServiceCards/components/ServiceCard/ServiceCard.css +1 -1
- package/dist/es/components/ServiceCards/components/ServiceCard/ServiceCard.js +1 -1
- package/dist/es/components/SidePictureCards/SidePictureCards.d.ts +5 -0
- package/dist/es/components/SidePictureCards/SidePictureCards.js +5 -2
- package/dist/es/components/SidePictureCards/components/SidePictureCard.d.ts +2 -0
- package/dist/es/components/SidePictureCards/components/SidePictureCard.js +8 -3
- package/dist/es/components/SidePictureCards/types.d.ts +3 -1
- package/dist/es/components/StepperBox/StepperBox.d.ts +11 -0
- package/dist/es/components/StepperBox/StepperBox.js +36 -0
- package/dist/es/components/Steps/Steps.css +1 -1
- package/dist/es/components/Steps/Steps.d.ts +2 -2
- package/dist/es/components/Steps/Steps.js +1 -1
- package/dist/es/components/StoreBanner/StoreBanner.css +1 -1
- package/dist/es/components/StoreBanner/StoreBanner.d.ts +1 -5
- package/dist/es/components/StoreBanner/StoreBanner.js +1 -5
- package/dist/es/components/StoreButton/StoreButton.css +1 -1
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.css +1 -1
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +27 -1
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.js +31 -24
- package/dist/es/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/dist/es/hooks/useIsomorphicLayoutEffect.js +6 -0
- package/dist/es/index.d.ts +7 -2
- package/dist/es/index.js +7 -2
- package/dist/lib/components/AccordionBox/AccordionBox.d.ts +3 -1
- package/dist/lib/components/BenefitCards/BenefitCard/BenefitCard.css +1 -0
- package/dist/lib/components/BenefitCards/BenefitCard/BenefitCard.d.ts +13 -0
- package/dist/lib/components/BenefitCards/BenefitCard/BenefitCard.js +68 -0
- package/dist/lib/components/BenefitCards/BenefitCards.css +1 -0
- package/dist/lib/components/BenefitCards/BenefitCards.d.ts +27 -0
- package/dist/lib/components/BenefitCards/BenefitCards.js +44 -0
- package/dist/lib/components/BenefitCards/helpers.d.ts +1 -0
- package/dist/lib/components/BenefitCards/helpers.js +26 -0
- package/dist/lib/components/BenefitCards/types.d.ts +24 -0
- package/dist/lib/components/BenefitCards/types.js +5 -0
- package/dist/lib/components/BlogBox/BlogBox.d.ts +3 -0
- package/dist/lib/components/BlogBox/BlogBox.js +8 -3
- package/dist/lib/components/BlogBox/components/BlogBoxTile.css +1 -1
- package/dist/lib/components/BlogBox/components/BlogBoxTile.d.ts +5 -1
- package/dist/lib/components/BlogBox/components/BlogBoxTile.js +3 -2
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.d.ts +2 -0
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.js +3 -0
- package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.d.ts +1 -0
- package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.js +18 -13
- package/dist/lib/components/Card/Card.css +1 -1
- package/dist/lib/components/Card/Card.d.ts +2 -1
- package/dist/lib/components/Card/Card.js +22 -15
- package/dist/lib/components/Card/types.d.ts +3 -5
- package/dist/lib/components/CardsOnBackground/CardsOnBackground.css +1 -0
- package/dist/lib/components/CardsOnBackground/CardsOnBackground.d.ts +34 -0
- package/dist/lib/components/CardsOnBackground/CardsOnBackground.js +108 -0
- package/dist/lib/components/CardsOnBackground/components/CardOnBackground.css +1 -0
- package/dist/lib/components/CardsOnBackground/components/CardOnBackground.d.ts +22 -0
- package/dist/lib/components/CardsOnBackground/components/CardOnBackground.js +100 -0
- package/dist/lib/components/CardsOnBackground/types.d.ts +42 -0
- package/dist/lib/components/CardsOnBackground/types.js +12 -0
- package/dist/lib/components/CardsOnBackground/useUniformHeights.d.ts +9 -0
- package/dist/lib/components/CardsOnBackground/useUniformHeights.js +95 -0
- package/dist/lib/components/Container/Container.css +1 -1
- package/dist/lib/components/Container/Container.d.ts +4 -0
- package/dist/lib/components/Container/Container.js +4 -1
- package/dist/lib/components/DarkGradientCards/DarkGradientCards.d.ts +5 -0
- package/dist/lib/components/DarkGradientCards/DarkGradientCards.js +9 -4
- package/dist/lib/components/DarkGradientCards/components/DarkGradientCard.css +1 -1
- package/dist/lib/components/DarkGradientCards/components/DarkGradientCard.d.ts +1 -0
- package/dist/lib/components/DarkGradientCards/components/DarkGradientCard.js +1 -1
- package/dist/lib/components/DownloadLinks/DownloadLink.css +1 -1
- package/dist/lib/components/DownloadLinks/DownloadLink.js +3 -1
- package/dist/lib/components/InfoCards/components/InfoCard/InfoCard.css +1 -1
- package/dist/lib/components/InfoCards/components/InfoCard/InfoCard.js +4 -2
- package/dist/lib/components/Instructions/Instructions.css +1 -1
- package/dist/lib/components/Instructions/Instructions.d.ts +0 -2
- package/dist/lib/components/Instructions/Instructions.js +19 -21
- package/dist/lib/components/NotificationBox/NotificationBox.d.ts +1 -1
- package/dist/lib/components/NotificationBox/NotificationBox.js +1 -5
- package/dist/lib/components/Partners/Partners.css +1 -1
- package/dist/lib/components/Partners/Partners.d.ts +3 -8
- package/dist/lib/components/Partners/Partners.js +19 -30
- package/dist/lib/components/Partners/components/PartnersItem/PartnersItem.css +1 -0
- package/dist/lib/components/Partners/components/PartnersItem/PartnersItem.d.ts +12 -0
- package/dist/lib/components/Partners/components/PartnersItem/PartnersItem.js +42 -0
- package/dist/lib/components/Partners/types.d.ts +7 -0
- package/dist/lib/components/Partners/types.js +5 -0
- package/dist/lib/components/PictureBox/PictureBox.d.ts +1 -0
- package/dist/lib/components/PictureBox/PictureBox.js +2 -0
- package/dist/lib/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.d.ts +2 -0
- package/dist/lib/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.js +2 -0
- package/dist/lib/components/PromoCards/PromoCards.d.ts +3 -0
- package/dist/lib/components/PromoCards/PromoCards.js +6 -1
- package/dist/lib/components/PromoCards/components/PromoCard/PromoCard.css +1 -1
- package/dist/lib/components/PromoCards/components/PromoCard/PromoCard.d.ts +2 -0
- package/dist/lib/components/PromoCards/components/PromoCard/PromoCard.js +16 -9
- package/dist/lib/components/ServiceCards/components/ServiceCard/ServiceCard.css +1 -1
- package/dist/lib/components/ServiceCards/components/ServiceCard/ServiceCard.js +1 -1
- package/dist/lib/components/SidePictureCards/SidePictureCards.d.ts +5 -0
- package/dist/lib/components/SidePictureCards/SidePictureCards.js +5 -2
- package/dist/lib/components/SidePictureCards/components/SidePictureCard.d.ts +2 -0
- package/dist/lib/components/SidePictureCards/components/SidePictureCard.js +8 -3
- package/dist/lib/components/SidePictureCards/types.d.ts +3 -1
- package/dist/lib/components/StepperBox/StepperBox.d.ts +11 -0
- package/dist/lib/components/StepperBox/StepperBox.js +46 -0
- package/dist/lib/components/Steps/Steps.css +1 -1
- package/dist/lib/components/Steps/Steps.d.ts +2 -2
- package/dist/lib/components/Steps/Steps.js +1 -1
- package/dist/lib/components/StoreBanner/StoreBanner.css +1 -1
- package/dist/lib/components/StoreBanner/StoreBanner.d.ts +1 -5
- package/dist/lib/components/StoreBanner/StoreBanner.js +1 -5
- package/dist/lib/components/StoreButton/StoreButton.css +1 -1
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.css +1 -1
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +27 -1
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.js +30 -23
- package/dist/lib/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/dist/lib/hooks/useIsomorphicLayoutEffect.js +13 -0
- package/dist/lib/index.d.ts +7 -2
- package/dist/lib/index.js +45 -10
- package/package.json +6 -6
- package/dist/es/components/Stepper/Stepper.css +0 -1
- package/dist/es/components/Stepper/Stepper.d.ts +0 -52
- package/dist/es/components/Stepper/Stepper.js +0 -159
- package/dist/es/components/Stepper/StepperItem.css +0 -1
- package/dist/es/components/Stepper/StepperItem.d.ts +0 -57
- package/dist/es/components/Stepper/StepperItem.js +0 -99
- package/dist/es/components/Stepper/img/separator-mobile.png +0 -0
- package/dist/es/components/Stepper/img/separator-vertical.png +0 -0
- package/dist/es/components/Stepper/img/separator.png +0 -0
- package/dist/es/components/StoreBanner/img/black-iphone.png +0 -0
- package/dist/es/components/StoreBanner/img/iphone12.png +0 -0
- package/dist/es/components/StoreBanner/img/white-iphone.png +0 -0
- package/dist/lib/components/Stepper/Stepper.css +0 -1
- package/dist/lib/components/Stepper/Stepper.d.ts +0 -52
- package/dist/lib/components/Stepper/Stepper.js +0 -168
- package/dist/lib/components/Stepper/StepperItem.css +0 -1
- package/dist/lib/components/Stepper/StepperItem.d.ts +0 -57
- package/dist/lib/components/Stepper/StepperItem.js +0 -108
- package/dist/lib/components/Stepper/img/separator-mobile.png +0 -0
- package/dist/lib/components/Stepper/img/separator-vertical.png +0 -0
- package/dist/lib/components/Stepper/img/separator.png +0 -0
- package/dist/lib/components/StoreBanner/img/black-iphone.png +0 -0
- package/dist/lib/components/StoreBanner/img/iphone12.png +0 -0
- package/dist/lib/components/StoreBanner/img/white-iphone.png +0 -0
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { ContentArea } from '@megafon/ui-core';
|
|
2
3
|
import './Container.scss';
|
|
4
|
+
type DisableIndentsType = React.ComponentProps<typeof ContentArea>['disableIndents'];
|
|
3
5
|
export declare const BackgroundColors: {
|
|
4
6
|
readonly DEFAULT: "default";
|
|
5
7
|
readonly LIGHT_GRAY: "light-gray";
|
|
@@ -30,6 +32,8 @@ type Props = {
|
|
|
30
32
|
disableRadiusTop?: boolean;
|
|
31
33
|
/** Отключить скругление снизу */
|
|
32
34
|
disableRadiusBottom?: boolean;
|
|
35
|
+
/** Отключение горизонтальных отступов на различных разрешениях */
|
|
36
|
+
disableHorizontalIndents?: DisableIndentsType;
|
|
33
37
|
/** Включить тень в нижней части компонента */
|
|
34
38
|
bottomShadow?: boolean;
|
|
35
39
|
/** Предотвратить прохождение верхнего отступа дочернего компонента через верхнюю границу контейнера */
|
|
@@ -30,6 +30,7 @@ var Container = function Container(_ref) {
|
|
|
30
30
|
disablePaddingBottom = _ref.disablePaddingBottom,
|
|
31
31
|
disableRadiusTop = _ref.disableRadiusTop,
|
|
32
32
|
disableRadiusBottom = _ref.disableRadiusBottom,
|
|
33
|
+
disableHorizontalIndents = _ref.disableHorizontalIndents,
|
|
33
34
|
_ref$bottomShadow = _ref.bottomShadow,
|
|
34
35
|
bottomShadow = _ref$bottomShadow === void 0 ? false : _ref$bottomShadow,
|
|
35
36
|
_ref$preventMarginTop = _ref.preventMarginTopCollapse,
|
|
@@ -49,6 +50,8 @@ var Container = function Container(_ref) {
|
|
|
49
50
|
className: cn('inner', {
|
|
50
51
|
prevent: preventMarginTopCollapse
|
|
51
52
|
}, [className, classes === null || classes === void 0 ? void 0 : classes.inner])
|
|
52
|
-
}, /*#__PURE__*/React.createElement(_uiCore.ContentArea,
|
|
53
|
+
}, /*#__PURE__*/React.createElement(_uiCore.ContentArea, {
|
|
54
|
+
disableIndents: disableHorizontalIndents
|
|
55
|
+
}, children)));
|
|
53
56
|
};
|
|
54
57
|
var _default = exports["default"] = Container;
|
|
@@ -16,6 +16,7 @@ export interface IDarkGradientCards {
|
|
|
16
16
|
classes?: {
|
|
17
17
|
root?: string;
|
|
18
18
|
item?: string;
|
|
19
|
+
itemTitle?: string;
|
|
19
20
|
};
|
|
20
21
|
/** Дополнительные data атрибуты к внутренним элементам */
|
|
21
22
|
dataAttrs?: {
|
|
@@ -23,6 +24,10 @@ export interface IDarkGradientCards {
|
|
|
23
24
|
carousel?: Record<string, string>;
|
|
24
25
|
item?: Record<string, string>;
|
|
25
26
|
};
|
|
27
|
+
/** Обработчик смены слайда карусели */
|
|
28
|
+
onCarouselChange?: CarouselProps['onChange'];
|
|
29
|
+
/** Ссылка на корневой элемент */
|
|
30
|
+
rootRef?: React.Ref<HTMLDivElement>;
|
|
26
31
|
}
|
|
27
32
|
declare const DarkGradientCards: React.FC<IDarkGradientCards>;
|
|
28
33
|
export default DarkGradientCards;
|
|
@@ -32,7 +32,9 @@ var DarkGradientCards = function DarkGradientCards(_ref) {
|
|
|
32
32
|
className = _ref.className,
|
|
33
33
|
_ref$classes = _ref.classes,
|
|
34
34
|
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
|
35
|
-
dataAttrs = _ref.dataAttrs
|
|
35
|
+
dataAttrs = _ref.dataAttrs,
|
|
36
|
+
onCarouselChange = _ref.onCarouselChange,
|
|
37
|
+
rootRef = _ref.rootRef;
|
|
36
38
|
var _useResolutions = (0, _useResolutions2["default"])(),
|
|
37
39
|
isDesktopWide = _useResolutions.isDesktopWide;
|
|
38
40
|
var isCarouselActive = items.length > MIN_ITEMS_COUNT || items.length === MIN_ITEMS_COUNT && !isDesktopWide;
|
|
@@ -42,7 +44,8 @@ var DarkGradientCards = function DarkGradientCards(_ref) {
|
|
|
42
44
|
size: i === 0 ? 'big' : 'small',
|
|
43
45
|
className: cn('card'),
|
|
44
46
|
classes: {
|
|
45
|
-
root: classes.item
|
|
47
|
+
root: classes.item,
|
|
48
|
+
title: classes.itemTitle
|
|
46
49
|
},
|
|
47
50
|
dataAttrs: {
|
|
48
51
|
root: (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.item, i + 1))
|
|
@@ -53,7 +56,8 @@ var DarkGradientCards = function DarkGradientCards(_ref) {
|
|
|
53
56
|
return null;
|
|
54
57
|
}
|
|
55
58
|
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
|
56
|
-
className: cn([className, classes.root])
|
|
59
|
+
className: cn([className, classes.root]),
|
|
60
|
+
ref: rootRef
|
|
57
61
|
}), isCarouselActive ? /*#__PURE__*/React.createElement(_uiCore.Carousel, {
|
|
58
62
|
dataAttrs: {
|
|
59
63
|
root: (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.carousel))
|
|
@@ -62,7 +66,8 @@ var DarkGradientCards = function DarkGradientCards(_ref) {
|
|
|
62
66
|
navTheme: carouselNavTheme,
|
|
63
67
|
threshold: CAROUSEL_THRESHOLD,
|
|
64
68
|
gradient: true,
|
|
65
|
-
gradientColor: carouselGradientColor
|
|
69
|
+
gradientColor: carouselGradientColor,
|
|
70
|
+
onChange: onCarouselChange
|
|
66
71
|
}, cards) : /*#__PURE__*/React.createElement("div", {
|
|
67
72
|
className: cn('cards')
|
|
68
73
|
}, cards));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-9-dark-gradient-card{background-position:50%;background-size:cover;border-radius:24px;color:var(--stcWhite);display:-webkit-box;display:-ms-flexbox;display:flex;min-height:420px;padding:24px;position:relative;text-decoration:none;width:298px}@media screen and (max-width:359px){.mfui-9-dark-gradient-card{width:265px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-dark-gradient-card{width:211px}}@media screen and (min-width:1024px){.mfui-9-dark-gradient-card{min-height:520px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-9-dark-gradient-card{width:285px}}@media screen and (min-width:1280px) and (max-width:1439px){.mfui-9-dark-gradient-card{width:265px}}@media screen and (min-width:1280px){.mfui-9-dark-gradient-card{padding:32px}}@media screen and (min-width:1440px){.mfui-9-dark-gradient-card{width:345px}}.mfui-9-dark-gradient-card:hover{text-decoration:none}.mfui-9-dark-gradient-card:before{background-image:-webkit-gradient(linear,left top,left bottom,from(transparent),to(#000));background-image:linear-gradient(180deg,transparent,#000);border-radius:inherit;bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:0}.mfui-9-dark-gradient-card_active:hover:before{background-image:-webkit-gradient(linear,left top,left bottom,from(transparent),to(rgba(0,0,0,.9)));background-image:linear-gradient(180deg,transparent,rgba(0,0,0,.9))}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-dark-gradient-card_size_big{width:441px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-9-dark-gradient-card_size_big{width:591px}}@media screen and (min-width:1280px) and (max-width:1439px){.mfui-9-dark-gradient-card_size_big{width:550px}}@media screen and (min-width:1440px){.mfui-9-dark-gradient-card_size_big{width:710px}}.mfui-9-dark-gradient-card__inner{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;gap:12px;width:100%}.mfui-9-dark-gradient-card__title{margin-top:auto}.mfui-9-dark-gradient-card_size_small .mfui-9-dark-gradient-card__title{font-size:18px;font-weight:500;letter-spacing:.5px;line-height:24px}@media screen and (min-width:1280px){.mfui-9-dark-gradient-card_size_small .mfui-9-dark-gradient-card__title{font-size:20px;line-height:28px}}.mfui-9-dark-gradient-card_size_big .mfui-9-dark-gradient-card__title{font-size:22px;font-weight:600;letter-spacing:.5px;line-height:28px}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-dark-gradient-card_size_big .mfui-9-dark-gradient-card__title{font-size:26px;line-height:32px}}@media screen and (min-width:1024px){.mfui-9-dark-gradient-card_size_big .mfui-9-dark-gradient-card__title{font-size:28px;line-height:36px}}@media screen and (min-width:1280px){.mfui-9-dark-gradient-card_size_big .mfui-9-dark-gradient-card__title{font-size:32px;line-height:40px}}.mfui-9-dark-gradient-card__subtitle{font-size:15px;line-height:24px}.mfui-9-dark-gradient-card__more{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:15px;font-weight:500;gap:8px;line-height:24px;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.mfui-9-dark-gradient-card__more-icon{display:block;max-height:24px;min-width:24px;width:24px}.mfui-9-dark-gradient-card__more-icon svg{display:block;height:100%;width:100%;fill:var(--stcWhite)}
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-9-dark-gradient-card{background-position:50%;background-size:cover;border-radius:24px;color:var(--stcWhite);display:-webkit-box;display:-ms-flexbox;display:flex;min-height:420px;padding:24px;position:relative;text-decoration:none;width:298px}.mfui-9-dark-gradient-card:focus-visible{-webkit-animation:focus-outline-shrink .3s linear forwards;animation:focus-outline-shrink .3s linear forwards;outline-offset:2px}@-webkit-keyframes focus-outline-shrink{0%{outline:0 solid var(--137C)}to{outline:4px solid var(--137C)}}@keyframes focus-outline-shrink{0%{outline:0 solid var(--137C)}to{outline:4px solid var(--137C)}}.mfui-9-dark-gradient-card:focus{outline:none}@media screen and (max-width:359px){.mfui-9-dark-gradient-card{width:265px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-dark-gradient-card{width:211px}}@media screen and (min-width:1024px){.mfui-9-dark-gradient-card{min-height:520px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-9-dark-gradient-card{width:285px}}@media screen and (min-width:1280px) and (max-width:1439px){.mfui-9-dark-gradient-card{width:265px}}@media screen and (min-width:1280px){.mfui-9-dark-gradient-card{padding:32px}}@media screen and (min-width:1440px){.mfui-9-dark-gradient-card{width:345px}}.mfui-9-dark-gradient-card:hover{text-decoration:none}.mfui-9-dark-gradient-card:before{background-image:-webkit-gradient(linear,left top,left bottom,from(transparent),to(#000));background-image:linear-gradient(180deg,transparent,#000);border-radius:inherit;bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:0}.mfui-9-dark-gradient-card_active:hover:before{background-image:-webkit-gradient(linear,left top,left bottom,from(transparent),to(rgba(0,0,0,.9)));background-image:linear-gradient(180deg,transparent,rgba(0,0,0,.9))}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-dark-gradient-card_size_big{width:441px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-9-dark-gradient-card_size_big{width:591px}}@media screen and (min-width:1280px) and (max-width:1439px){.mfui-9-dark-gradient-card_size_big{width:550px}}@media screen and (min-width:1440px){.mfui-9-dark-gradient-card_size_big{width:710px}}.mfui-9-dark-gradient-card__inner{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;gap:12px;width:100%}.mfui-9-dark-gradient-card__title{margin-top:auto}.mfui-9-dark-gradient-card_size_small .mfui-9-dark-gradient-card__title{font-size:18px;font-weight:500;letter-spacing:.5px;line-height:24px}@media screen and (min-width:1280px){.mfui-9-dark-gradient-card_size_small .mfui-9-dark-gradient-card__title{font-size:20px;line-height:28px}}.mfui-9-dark-gradient-card_size_big .mfui-9-dark-gradient-card__title{font-size:22px;font-weight:600;letter-spacing:.5px;line-height:28px}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-dark-gradient-card_size_big .mfui-9-dark-gradient-card__title{font-size:26px;line-height:32px}}@media screen and (min-width:1024px){.mfui-9-dark-gradient-card_size_big .mfui-9-dark-gradient-card__title{font-size:28px;line-height:36px}}@media screen and (min-width:1280px){.mfui-9-dark-gradient-card_size_big .mfui-9-dark-gradient-card__title{font-size:32px;line-height:40px}}.mfui-9-dark-gradient-card__subtitle{font-size:15px;line-height:24px}.mfui-9-dark-gradient-card__more{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:15px;font-weight:500;gap:8px;line-height:24px;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.mfui-9-dark-gradient-card__more-icon{display:block;max-height:24px;min-width:24px;width:24px}.mfui-9-dark-gradient-card__more-icon svg{display:block;height:100%;width:100%;fill:var(--stcWhite)}
|
|
@@ -47,7 +47,7 @@ var DarkGradientCard = function DarkGradientCard(_ref) {
|
|
|
47
47
|
}), /*#__PURE__*/React.createElement("div", {
|
|
48
48
|
className: cn('inner')
|
|
49
49
|
}, /*#__PURE__*/React.createElement("div", {
|
|
50
|
-
className: cn('title')
|
|
50
|
+
className: cn('title', [classes.title])
|
|
51
51
|
}, (0, _uiHelpers.convert)(title, {})), subtitle && /*#__PURE__*/React.createElement("div", {
|
|
52
52
|
className: cn('subtitle')
|
|
53
53
|
}, (0, _uiHelpers.convert)(subtitle, {})), !!moreText && /*#__PURE__*/React.createElement("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-9-download-link{display:-webkit-box;display:-ms-flexbox;display:flex}.mfui-9-download-link__icon{-ms-flex-negative:0;flex-shrink:0;height:40px;margin-right:
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-9-download-link{display:-webkit-box;display:-ms-flexbox;display:flex}.mfui-9-download-link__icon{-ms-flex-negative:0;flex-shrink:0;height:40px;margin-right:8px;width:40px;fill:var(--content)}@media screen and (max-width:1023px){.mfui-9-download-link__icon{height:32px;width:32px}}@media screen and (min-width:1280px){.mfui-9-download-link__icon{margin-right:16px}}.mfui-9-download-link__icon-svg{height:inherit;width:inherit}.mfui-9-download-link__info{color:var(--spbSky3);font-size:12px;line-height:18px;margin:0;text-transform:uppercase}
|
|
@@ -18,7 +18,9 @@ var DownloadIcon = function DownloadIcon(props) {
|
|
|
18
18
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
19
19
|
viewBox: "0 0 40 40"
|
|
20
20
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
21
|
-
d: "
|
|
21
|
+
d: "M33 18a2 2 0 012 2c0 1.862-.398 3.701-1.165 5.411a13.988 13.988 0 01-3.286 4.544 15.123 15.123 0 01-4.86 3A15.948 15.948 0 0120 34c-1.948 0-3.882-.354-5.69-1.045a15.124 15.124 0 01-4.859-3 13.987 13.987 0 01-3.286-4.544A13.204 13.204 0 015 20a2 2 0 014 0c0 1.29.275 2.572.814 3.773a9.984 9.984 0 002.35 3.243 11.123 11.123 0 003.575 2.203c1.347.515 2.795.781 4.261.781 1.466 0 2.914-.266 4.26-.781a11.123 11.123 0 003.576-2.203 9.983 9.983 0 002.35-3.243A9.203 9.203 0 0031 20a2 2 0 012-2z"
|
|
22
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
23
|
+
d: "M20 8a2 2 0 012 2v7.172l2.586-2.586a2 2 0 112.828 2.828l-5.293 5.293-.111.107a3 3 0 01-4.131-.107l-5.293-5.293a2 2 0 112.828-2.828L18 17.172V10a2 2 0 012-2z"
|
|
22
24
|
}));
|
|
23
25
|
};
|
|
24
26
|
var cn = (0, _uiHelpers.cnCreate)('mfui-9-download-link');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-9-info-card{border-radius:24px;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--content);-webkit-column-gap:12px;-moz-column-gap:12px;column-gap:12px;display:-webkit-box;display:-ms-flexbox;display:flex;font-family:inherit;font-size:15px;line-height:24px;-webkit-transition:background-color .3s,-webkit-box-shadow .3s;transition:background-color .3s,-webkit-box-shadow .3s;transition:background-color .3s,box-shadow .3s;transition:background-color .3s,box-shadow .3s,-webkit-box-shadow .3s}.mfui-9-info-card
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-9-info-card{border-radius:24px;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--content);-webkit-column-gap:12px;-moz-column-gap:12px;column-gap:12px;display:-webkit-box;display:-ms-flexbox;display:flex;font-family:inherit;font-size:15px;line-height:24px;text-decoration:none;-webkit-transition:background-color .3s,-webkit-box-shadow .3s;transition:background-color .3s,-webkit-box-shadow .3s;transition:background-color .3s,box-shadow .3s;transition:background-color .3s,box-shadow .3s,-webkit-box-shadow .3s}.mfui-9-info-card:focus-visible{-webkit-animation:focus-outline-shrink .3s linear forwards;animation:focus-outline-shrink .3s linear forwards;outline-offset:2px}@-webkit-keyframes focus-outline-shrink{0%{outline:0 solid var(--137C)}to{outline:4px solid var(--137C)}}@keyframes focus-outline-shrink{0%{outline:0 solid var(--137C)}to{outline:4px solid var(--137C)}}.mfui-9-info-card:focus{outline:none}.mfui-9-info-card:hover{text-decoration:none}.mfui-9-info-card__content{display:-webkit-box;display:-ms-flexbox;display:flex;-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}.mfui-9-info-card__title+.mfui-9-info-card__description{margin-top:8px}.mfui-9-info-card__more-info{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:12px;line-height:18px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-weight:500;margin-top:auto;padding-top:12px;-webkit-transition:color .3s;transition:color .3s}.mfui-9-info-card_active{cursor:pointer}.mfui-9-info-card_active:hover .mfui-9-info-card__more-info{color:var(--brandGreen)}.mfui-9-info-card__more-info-text{margin-top:-2px}.mfui-9-info-card__more-info-arrow{height:20px;width:20px;fill:currentColor}.mfui-9-info-card_size_small{padding:16px 20px}.mfui-9-info-card_size_small .mfui-9-info-card__image{height:64px;margin-bottom:16px;width:64px}.mfui-9-info-card_size_small .mfui-9-info-card__title{font-size:15px;font-weight:500;line-height:24px}.mfui-9-info-card_size_small .mfui-9-info-card__description{font-size:12px;line-height:18px}.mfui-9-info-card_size_medium{padding:20px 24px}.mfui-9-info-card_size_medium .mfui-9-info-card__image{height:80px;margin-bottom:16px;width:80px}@media screen and (min-width:768px){.mfui-9-info-card_size_medium .mfui-9-info-card__image{margin-bottom:24px}}.mfui-9-info-card_size_medium .mfui-9-info-card__title{font-size:18px;font-weight:500;letter-spacing:.5px;line-height:24px}@media screen and (min-width:1280px){.mfui-9-info-card_size_medium .mfui-9-info-card__title{font-size:20px;line-height:28px}}.mfui-9-info-card_size_big{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:24px}@media screen and (min-width:768px){.mfui-9-info-card_size_big{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:32px}}.mfui-9-info-card_size_big .mfui-9-info-card__image{-ms-flex-item-align:center;align-self:center;-webkit-box-ordinal-group:2;-ms-flex-order:1;height:150px;order:1;width:150px}@media screen and (max-width:767px){.mfui-9-info-card_size_big .mfui-9-info-card__image{-ms-flex-item-align:start;align-self:start;-webkit-box-ordinal-group:1;-ms-flex-order:0;margin-bottom:16px;order:0}}.mfui-9-info-card_size_big .mfui-9-info-card__title{font-size:18px;font-weight:500;letter-spacing:.5px;line-height:24px}@media screen and (min-width:1280px){.mfui-9-info-card_size_big .mfui-9-info-card__title{font-size:20px;line-height:28px}}.mfui-9-info-card_size_big .mfui-9-info-card__more-info{font-size:15px;line-height:24px;padding-top:24px}.mfui-9-info-card_size_big .mfui-9-info-card__more-info-arrow{height:32px;width:32px}.mfui-9-info-card_position_top-left{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.mfui-9-info-card_position_right-side{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.mfui-9-info-card_position_right-side .mfui-9-info-card__image{-ms-flex-item-align:center;align-self:center;-webkit-box-ordinal-group:2;-ms-flex-order:1;margin-bottom:0;order:1}.mfui-9-info-card_position_right-side .mfui-9-info-card__title+.mfui-9-info-card__description{margin-top:6px}.mfui-9-info-card_position_right-side .mfui-9-info-card__more-info{padding-top:8px}@media screen and (min-width:768px){.mfui-9-info-card_size_big.mfui-9-info-card_align-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-9-info-card_size_big.mfui-9-info-card_align-center .mfui-9-info-card__more-info{margin-top:0}}.mfui-9-info-card_position_right-side.mfui-9-info-card_align-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-9-info-card_position_right-side.mfui-9-info-card_align-center .mfui-9-info-card__more-info{margin-top:0}.mfui-9-info-card_background_stroke{border:1px solid var(--spbSky2)}.mfui-9-info-card_background_shadow{background-color:var(--base);-webkit-box-shadow:0 2px 12px rgba(0,0,0,.1);box-shadow:0 2px 12px rgba(0,0,0,.1)}.mfui-9-info-card_background_green{background-color:var(--brandGreen20)}.mfui-9-info-card_background_purple{background-color:var(--brandPurple20)}.mfui-9-info-card_background_white{background-color:var(--base)}.mfui-9-info-card_background_gray{background-color:var(--spbSky0)}.mfui-9-info-card_background_no{padding:0}.mfui-9-info-card_background_stroke.mfui-9-info-card_active:hover{background-color:var(--spbSky0)}.mfui-9-info-card_background_shadow.mfui-9-info-card_active:hover,.mfui-9-info-card_background_white.mfui-9-info-card_active:hover{-webkit-box-shadow:0 8px 28px rgba(0,0,0,.1);box-shadow:0 8px 28px rgba(0,0,0,.1)}.mfui-9-info-card_background_gray.mfui-9-info-card_active:hover{background-color:var(--spbSky1)}.mfui-9-info-card_background_purple.mfui-9-info-card_active:hover{background-color:var(--buttonHoverPurpleSoft)}.mfui-9-info-card_background_green.mfui-9-info-card_active:hover{background-color:var(--buttonHoverGreenSoft)}
|
|
@@ -18,14 +18,14 @@ var ArrowRight16 = function ArrowRight16(props) {
|
|
|
18
18
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
19
19
|
viewBox: "0 0 20 20"
|
|
20
20
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
21
|
-
d: "
|
|
21
|
+
d: "M10.084 5.282a1 1 0 011.414.022l3.61 3.726c.522.54.523 1.4 0 1.94l-3.61 3.726a1 1 0 01-1.436-1.392l2.225-2.297H5.5a1 1 0 010-2h6.8l-2.239-2.31a1 1 0 01.023-1.415z"
|
|
22
22
|
}));
|
|
23
23
|
};
|
|
24
24
|
var ArrowRight24 = function ArrowRight24(props) {
|
|
25
25
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
26
26
|
viewBox: "0 0 32 32"
|
|
27
27
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
28
|
-
d: "
|
|
28
|
+
d: "M16.326 9.118a1.25 1.25 0 011.768-.004l5.618 5.592a1.825 1.825 0 010 2.588l-5.618 5.592a1.25 1.25 0 01-1.764-1.772l3.871-3.853H9a1.25 1.25 0 010-2.5h11.223l-3.893-3.875a1.25 1.25 0 01-.004-1.768z"
|
|
29
29
|
}));
|
|
30
30
|
};
|
|
31
31
|
var cn = (0, _uiHelpers.cnCreate)('mfui-9-info-card');
|
|
@@ -75,6 +75,8 @@ var InfoCard = function InfoCard(_ref) {
|
|
|
75
75
|
active: isActive,
|
|
76
76
|
'align-center': !moreInfo
|
|
77
77
|
}, [className, classes === null || classes === void 0 ? void 0 : classes.root])
|
|
78
|
+
}, !!onClick && {
|
|
79
|
+
tabIndex: 0
|
|
78
80
|
}), /*#__PURE__*/React.createElement("img", {
|
|
79
81
|
className: cn('image'),
|
|
80
82
|
src: imgSrc,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-9-instructions__title_resolution_mobile{margin-bottom:32px;text-align:center}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions__title_resolution_mobile{margin-bottom:40px}}@media screen and (min-width:1024px){.mfui-9-instructions__title_resolution_mobile{display:none}}.mfui-9-instructions__title_resolution_desktop{margin-bottom:40px}@media screen and (max-width:1023px){.mfui-9-instructions__title_resolution_desktop{display:none}}.mfui-9-instructions .swiper-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex}@media screen and (min-width:1024px){.mfui-9-instructions__wrapper{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;justify-content:center}.mfui-9-instructions__wrapper_vertical-align_top{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.mfui-9-instructions__wrapper_vertical-align_unset{-webkit-box-align:unset;-ms-flex-align:unset;align-items:unset}}.mfui-9-instructions .mfui-9-instructions__text{margin-top:48px}@media screen and (max-width:1023px){.mfui-9-instructions .mfui-9-instructions__text{text-align:center}}.mfui-9-instructions .mfui-9-instructions__button{display:block;margin-top:32px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}@media screen and (max-width:1023px){.mfui-9-instructions .mfui-9-instructions__button{margin-left:auto;margin-right:auto}}@media screen and (min-width:768px){.mfui-9-instructions .mfui-9-instructions__button{margin-top:40px}}.mfui-9-instructions__picture{max-height:490px;max-width:530px;overflow:hidden;position:relative}@media screen and (max-width:1023px){.mfui-9-instructions__picture{margin:0 auto}}@media screen and (min-width:1024px){.mfui-9-instructions__picture{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2;width:50%}.mfui-9-instructions__picture_align_left{-webkit-box-ordinal-group:1;-ms-flex-order:0;margin-right:40px;order:0}}.mfui-9-instructions_mask_none .mfui-9-instructions__slide{display:-webkit-box;display:-ms-flexbox;display:flex}.mfui-9-instructions__swiper-img{height:100%;width:100%}.mfui-9-instructions__swiper-img_video{-webkit-filter:brightness(108.5%);filter:brightness(108.5%)}.mfui-9-instructions__img-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;height:490px;position:relative}@media screen and (max-width:1023px){.mfui-9-instructions__img-wrapper:before{background:var(--spbSky2);bottom:0;content:"";display:block;height:1px;left:0;margin:0 auto;position:absolute;right:0;width:324px;z-index:2}}.mfui-9-instructions__device-screen{overflow:hidden;pointer-events:none}@media screen and (max-width:1023px){.mfui-9-instructions_mask_android .mfui-9-instructions__img-wrapper,.mfui-9-instructions_mask_black-iphone .mfui-9-instructions__img-wrapper,.mfui-9-instructions_mask_white-iphone .mfui-9-instructions__img-wrapper{height:421px}}.mfui-9-instructions_mask_android .mfui-9-instructions__device-screen,.mfui-9-instructions_mask_black-iphone .mfui-9-instructions__device-screen,.mfui-9-instructions_mask_white-iphone .mfui-9-instructions__device-screen{height:490px;margin:auto;width:100%}.mfui-9-instructions_mask_android .mfui-9-instructions__swiper,.mfui-9-instructions_mask_black-iphone .mfui-9-instructions__swiper,.mfui-9-instructions_mask_white-iphone .mfui-9-instructions__swiper{height:363px;left:0;margin:auto;overflow:hidden;position:absolute;right:0;top:59px;width:204px}.mfui-9-instructions_mask_black-iphone .mfui-9-instructions__device-screen{background:url(img/blackIphone.png) 50% no-repeat;background-size:contain}.mfui-9-instructions_mask_white-iphone .mfui-9-instructions__device-screen{background:url(img/whiteIphone.png) 50% no-repeat;background-size:contain}@media screen and (max-width:1023px){.mfui-9-instructions_mask_android .mfui-9-instructions__img-wrapper{height:424px}}.mfui-9-instructions_mask_android .mfui-9-instructions__device-screen{background:url(img/android.png) 50% no-repeat;background-size:contain}.mfui-9-instructions_mask_android .mfui-9-instructions__swiper{height:370px;width:206px}@media screen and (max-width:1023px){.mfui-9-instructions_mask_new-iphone .mfui-9-instructions__img-wrapper{height:460px}}.mfui-9-instructions_mask_new-iphone .mfui-9-instructions__device-screen{background:url(img/newIphone.png) 50% no-repeat;background-size:contain;height:490px;margin:auto;position:relative;width:100%;z-index:2}.mfui-9-instructions_mask_new-iphone .mfui-9-instructions__swiper{border-radius:20px;height:462px;left:0;margin:auto;overflow:hidden;position:absolute;right:0;top:14px;width:214px;z-index:1}@media screen and (max-width:1023px){.mfui-9-instructions_mask_iphone-12 .mfui-9-instructions__img-wrapper:before{display:none}}.mfui-9-instructions_mask_iphone-12 .mfui-9-instructions__device-screen{background:url(img/iphone12.png) 50% no-repeat;background-size:contain;height:490px;margin:auto;position:relative;width:100%;z-index:2}.mfui-9-instructions_mask_iphone-12 .mfui-9-instructions__swiper{border-radius:20px;height:462px;left:0;margin:auto;overflow:hidden;position:absolute;right:0;top:14px;width:214px;z-index:1}.mfui-9-instructions_mask_iphone-15 .mfui-9-instructions__img-wrapper{height:487px}@media screen and (max-width:1023px){.mfui-9-instructions_mask_iphone-15 .mfui-9-instructions__img-wrapper:before{display:none}}.mfui-9-instructions_mask_iphone-15 .mfui-9-instructions__device-screen{background:url(img/iphone15.png) 50% no-repeat;background-size:contain;height:486px;margin:auto;position:relative;width:100%;z-index:2}.mfui-9-instructions_mask_iphone-15 .mfui-9-instructions__swiper{border-radius:20px;height:468px;left:0;margin:auto;overflow:hidden;position:absolute;right:0;top:10px;width:217px;z-index:1}.mfui-9-instructions_mask_android-cropped .mfui-9-instructions__img-wrapper{height:420px;min-height:420px}@media screen and (min-width:1024px){.mfui-9-instructions_mask_android-cropped .mfui-9-instructions__img-wrapper{height:440px;min-height:440px}}.mfui-9-instructions_mask_android-cropped .mfui-9-instructions__img-wrapper:before{background:var(--spbSky2);bottom:0;content:"";display:block;height:1px;left:0;margin:0 auto;position:absolute;right:0;width:324px;z-index:2}.mfui-9-instructions_mask_android-cropped .mfui-9-instructions__device-screen{background:url(img/android-new.png) 50% no-repeat;background-size:contain;height:510px;margin-top:24px;position:relative;width:100%;z-index:1}@media screen and (min-width:1024px){.mfui-9-instructions_mask_android-cropped .mfui-9-instructions__device-screen{height:574px}}.mfui-9-instructions_mask_android-cropped .mfui-9-instructions__swiper{left:0;margin:auto;overflow:hidden;position:absolute;right:0;top:54px;width:222px}@media screen and (min-width:1024px){.mfui-9-instructions_mask_android-cropped .mfui-9-instructions__swiper{top:58px;width:250px}}.mfui-9-instructions_mask_iphone-cropped .mfui-9-instructions__img-wrapper{height:420px;min-height:420px}.mfui-9-instructions_mask_iphone-cropped .mfui-9-instructions__img-wrapper:before{background:var(--spbSky2);bottom:0;content:"";display:block;height:1px;left:0;margin:0 auto;position:absolute;right:0;width:324px;z-index:2}.mfui-9-instructions_mask_iphone-cropped .mfui-9-instructions__device-screen{background:url(img/iphone-new.png) 50% no-repeat;background-size:contain;height:469px;margin-top:24px;position:relative;width:100%;z-index:1}.mfui-9-instructions_mask_iphone-cropped .mfui-9-instructions__swiper{left:0;margin:auto;overflow:hidden;position:absolute;right:0;top:38px;width:205px}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions_mask_laptop .mfui-9-instructions__img-wrapper{background:url(img/laptop.png) 50% 0 no-repeat;background-size:100%;height:0;padding-bottom:53.4%}}@media screen and (min-width:480px) and (max-width:767px){.mfui-9-instructions_mask_laptop .mfui-9-instructions__img-wrapper{height:208px}}@media screen and (max-width:479px){.mfui-9-instructions_mask_laptop .mfui-9-instructions__img-wrapper{height:115px}.mfui-9-instructions_mask_laptop .mfui-9-instructions__img-wrapper:before{width:310px}}@media screen and (min-width:480px) and (max-width:767px){.mfui-9-instructions_mask_laptop .mfui-9-instructions__img-wrapper:before{width:460px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions_mask_laptop .mfui-9-instructions__img-wrapper:before{width:590px}}.mfui-9-instructions_mask_laptop .mfui-9-instructions__device-screen{background:url(img/laptop.png) 50% 0 no-repeat;background-size:100%;height:100%;margin:auto;position:relative;width:100%}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions_mask_laptop .mfui-9-instructions__device-screen{width:530px}}@media screen and (min-width:480px) and (max-width:767px){.mfui-9-instructions_mask_laptop .mfui-9-instructions__device-screen{width:450px}}@media screen and (max-width:479px){.mfui-9-instructions_mask_laptop .mfui-9-instructions__device-screen{width:270px}}@media screen and (min-width:1024px){.mfui-9-instructions_mask_laptop .mfui-9-instructions__device-screen{background:url(img/laptop.png) 50% no-repeat;background-size:contain}}.mfui-9-instructions_mask_laptop .mfui-9-instructions__swiper{left:50%;margin:auto;overflow:hidden;position:absolute;right:0;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:78%}@media screen and (min-width:480px) and (max-width:767px){.mfui-9-instructions_mask_laptop .mfui-9-instructions__swiper{height:190px;max-width:345px}}@media screen and (max-width:479px){.mfui-9-instructions_mask_laptop .mfui-9-instructions__swiper{height:105px;max-width:210px}}@media screen and (min-width:1024px){.mfui-9-instructions_mask_laptop .mfui-9-instructions__swiper{-webkit-transform:translate(-50%,-53%);transform:translate(-50%,-53%)}}@media screen and (max-width:1023px){.mfui-9-instructions_mask_laptop-new .mfui-9-instructions__img-wrapper{background:url(img/laptop-new.png) 50% 0 no-repeat;background-size:100%;height:0;padding-bottom:58.9%}}.mfui-9-instructions_mask_laptop-new .mfui-9-instructions__img-wrapper:before{display:none}.mfui-9-instructions_mask_laptop-new .mfui-9-instructions__device-screen{background:url(img/laptop-new.png) 50% 0 no-repeat;background-size:100%;height:100%;margin:auto;position:relative;width:100%}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions_mask_laptop-new .mfui-9-instructions__device-screen{width:530px}}@media screen and (min-width:480px) and (max-width:767px){.mfui-9-instructions_mask_laptop-new .mfui-9-instructions__device-screen{width:450px}}@media screen and (max-width:479px){.mfui-9-instructions_mask_laptop-new .mfui-9-instructions__device-screen{width:270px}}@media screen and (min-width:1024px){.mfui-9-instructions_mask_laptop-new .mfui-9-instructions__device-screen{background:url(img/laptop-new.png) 50% no-repeat;background-size:contain}}.mfui-9-instructions_mask_laptop-new .mfui-9-instructions__swiper{left:50%;margin:auto;overflow:hidden;position:absolute;right:0;top:4px;-webkit-transform:translate(-49.5%);transform:translate(-49.5%);width:78%}@media screen and (min-width:480px) and (max-width:767px){.mfui-9-instructions_mask_laptop-new .mfui-9-instructions__swiper{max-width:415px;top:7px}}@media screen and (max-width:479px){.mfui-9-instructions_mask_laptop-new .mfui-9-instructions__swiper{max-width:302px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions_mask_laptop-new .mfui-9-instructions__swiper{top:12px}}@media screen and (min-width:1024px){.mfui-9-instructions_mask_laptop-new .mfui-9-instructions__swiper{top:50%;-webkit-transform:translate(-49.5%,-55%);transform:translate(-49.5%,-55%)}}.mfui-9-instructions__slide{-ms-flex-negative:0;flex-shrink:0;height:100%}@media screen and (max-width:767px){.mfui-9-instructions__articles{margin-top:24px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions__articles{margin-top:32px}}@media screen and (min-width:1024px){.mfui-9-instructions__articles{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1;width:50%}.mfui-9-instructions__articles_align_right{margin-right:40px}}.mfui-9-instructions__articles-list{list-style-type:none;margin:0;padding:0}@media screen and (min-width:1024px){.mfui-9-instructions__articles-list_mobile{display:none}}@media screen and (max-width:1023px){.mfui-9-instructions__articles-list_desktop{display:none}}.mfui-9-instructions__articles-item{min-height:40px;opacity:.5;position:relative}@media screen and (min-width:1024px){.mfui-9-instructions__articles-item{margin-bottom:48px}}.mfui-9-instructions__articles-item:hover,.mfui-9-instructions__articles-item_active{opacity:1}.mfui-9-instructions__articles-item:hover .mfui-9-instructions__articles-item-dot,.mfui-9-instructions__articles-item_active .mfui-9-instructions__articles-item-dot{color:var(--stcWhite)}.mfui-9-instructions__articles-item:hover .mfui-9-instructions__articles-item-dot:before,.mfui-9-instructions__articles-item_active .mfui-9-instructions__articles-item-dot:before{background:var(--brandGreen);bottom:0;left:0;right:0;top:0}@media screen and (min-width:1024px){.mfui-9-instructions__articles-item:last-child{margin-bottom:0}}.mfui-9-instructions__articles-item-dot{border-radius:12px;-webkit-box-shadow:inset 0 0 0 1px var(--spbSky3);box-shadow:inset 0 0 0 1px var(--spbSky3);cursor:pointer;display:inline-block;font-size:15px;font-weight:500;height:40px;line-height:40px;position:absolute;text-align:center;width:40px}@media screen and (max-width:479px){.mfui-9-instructions__articles-item-dot{min-width:40px}}.mfui-9-instructions__articles-item-dot:before{border-radius:12px;bottom:50%;content:"";left:50%;position:absolute;right:50%;top:50%;-webkit-transition:all .3s ease;transition:all .3s ease}.mfui-9-instructions__articles-item-dot-number{position:relative}.mfui-9-instructions__articles-item-title{cursor:pointer;display:inline-block;font-size:15px;font-weight:400;line-height:24px}@media screen and (min-width:1024px){.mfui-9-instructions__articles-item-title{padding:8px 0 0 56px}}.mfui-9-instructions__articles-dots{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;list-style-type:none;margin:0;padding:0}@media screen and (max-width:767px){.mfui-9-instructions__articles-dots{margin-top:16px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions__articles-dots{margin-top:24px}}@media screen and (min-width:1024px){.mfui-9-instructions__articles-dots{display:none}}.mfui-9-instructions__articles-dots_text-after{margin-bottom:48px}.mfui-9-instructions__articles-dot{background:var(--spbSky2);border-radius:4px;cursor:pointer;display:inline-block;height:8px;margin-right:12px;position:relative;width:8px}.mfui-9-instructions__articles-dot:hover,.mfui-9-instructions__articles-dot_active{background:var(--brandGreen)}.mfui-9-instructions__articles-dot_active{width:20px}.mfui-9-instructions__articles-dot:last-child{margin-right:0}.mfui-9-instructions__articles-title-block{margin:0 auto;text-align:center}@media screen and (max-width:767px){.mfui-9-instructions__articles-title-block{width:55%}}@media screen and (max-width:479px){.mfui-9-instructions__articles-title-block{width:100%}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions__articles-title-block{max-width:530px;width:100%}}.mfui-9-instructions__articles-title-block_with-numeration{text-align:left}.mfui-9-instructions__articles-title{font-weight:400;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.mfui-9-instructions__articles-num,.mfui-9-instructions__articles-title{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:15px;line-height:24px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.mfui-9-instructions__articles-num{font-weight:500;-ms-flex-negative:0;flex-shrink:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--brandGreen);border-radius:50%;color:var(--stcWhite);height:40px;margin-right:16px;width:40px}@media screen and (min-width:1024px){.mfui-9-instructions__articles-num{display:none}}.mfui-9-instructions__picture_background_spbSky0{background-color:var(--spbSky0);border-radius:12px}.mfui-9-instructions__picture_background_spbSky0 .mfui-9-instructions__img-wrapper:before{display:none}.mfui-9-instructions__arrow{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);z-index:2}@media screen and (max-width:767px){.mfui-9-instructions__arrow{display:none}}.mfui-9-instructions__arrow_prev{left:24px}.mfui-9-instructions__arrow_next{right:24px}.mfui-9-instructions__qr-code{-webkit-box-sizing:border-box;box-sizing:border-box;display:none;padding:12px;position:absolute;right:64px;top:12px;width:126px;z-index:3}@media screen and (min-width:768px){.mfui-9-instructions__qr-code{display:block}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-9-instructions__qr-code{right:44px}}.mfui-9-instructions__qr-code-image{display:block;height:auto;width:100%}.mfui-9-instructions__qr-code-text{font-size:12px;font-weight:500;line-height:12px;margin-bottom:12px;text-align:center}.mfui-9-instructions_reversed .mfui-9-instructions__title_resolution_mobile{margin-bottom:16px}@media screen and (max-width:1023px){.mfui-9-instructions_reversed .mfui-9-instructions__picture{margin-bottom:0;max-height:100%}.mfui-9-instructions_reversed .mfui-9-instructions__articles{display:none}}@media screen and (max-width:767px){.mfui-9-instructions_reversed .mfui-9-instructions__articles-title-block{margin-bottom:32px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions_reversed .mfui-9-instructions__articles-title-block{margin-bottom:40px}}@media screen and (min-width:1024px){.mfui-9-instructions_items-gap_medium .mfui-9-instructions__articles-item:not(:last-child){margin-bottom:24px}}.mfui-9-instructions_items-gap_medium .mfui-9-instructions__text{margin-top:32px}@media screen and (min-width:768px){.mfui-9-instructions_items-gap_medium .mfui-9-instructions__text{margin-top:40px}}
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-9-instructions__title_resolution_mobile{margin-bottom:32px;text-align:center}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions__title_resolution_mobile{margin-bottom:40px}}@media screen and (min-width:1024px){.mfui-9-instructions__title_resolution_mobile{display:none}}.mfui-9-instructions__title_resolution_desktop{margin-bottom:40px}@media screen and (max-width:1023px){.mfui-9-instructions__title_resolution_desktop{display:none}}.mfui-9-instructions .swiper-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex}@media screen and (min-width:1024px){.mfui-9-instructions__wrapper{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;justify-content:center}.mfui-9-instructions__wrapper_vertical-align_top{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.mfui-9-instructions__wrapper_vertical-align_unset{-webkit-box-align:unset;-ms-flex-align:unset;align-items:unset}}.mfui-9-instructions .mfui-9-instructions__text{margin-top:32px}@media screen and (max-width:1023px){.mfui-9-instructions .mfui-9-instructions__text{margin-top:40px;text-align:center}}.mfui-9-instructions .mfui-9-instructions__button{display:block;margin-top:32px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}@media screen and (max-width:1023px){.mfui-9-instructions .mfui-9-instructions__button{margin-left:auto;margin-right:auto}}@media screen and (min-width:768px){.mfui-9-instructions .mfui-9-instructions__button{margin-top:40px}}.mfui-9-instructions__picture{max-height:490px;max-width:530px;overflow:hidden;position:relative}@media screen and (max-width:1023px){.mfui-9-instructions__picture{margin:0 auto}}@media screen and (min-width:1024px){.mfui-9-instructions__picture{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2;width:50%}.mfui-9-instructions__picture_align_left{-webkit-box-ordinal-group:1;-ms-flex-order:0;margin-right:40px;order:0}}.mfui-9-instructions_mask_none .mfui-9-instructions__slide{display:-webkit-box;display:-ms-flexbox;display:flex}.mfui-9-instructions__swiper-img{height:100%;width:100%}.mfui-9-instructions__swiper-img_video{-webkit-filter:brightness(108.5%);filter:brightness(108.5%)}.mfui-9-instructions__img-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;height:490px;position:relative}@media screen and (max-width:1023px){.mfui-9-instructions__img-wrapper:before{background:var(--spbSky2);bottom:0;content:"";display:block;height:1px;left:0;margin:0 auto;position:absolute;right:0;width:324px;z-index:2}}.mfui-9-instructions__device-screen{overflow:hidden;pointer-events:none}@media screen and (max-width:1023px){.mfui-9-instructions_mask_android .mfui-9-instructions__img-wrapper,.mfui-9-instructions_mask_black-iphone .mfui-9-instructions__img-wrapper,.mfui-9-instructions_mask_white-iphone .mfui-9-instructions__img-wrapper{height:421px}}.mfui-9-instructions_mask_android .mfui-9-instructions__device-screen,.mfui-9-instructions_mask_black-iphone .mfui-9-instructions__device-screen,.mfui-9-instructions_mask_white-iphone .mfui-9-instructions__device-screen{height:490px;margin:auto;width:100%}.mfui-9-instructions_mask_android .mfui-9-instructions__swiper,.mfui-9-instructions_mask_black-iphone .mfui-9-instructions__swiper,.mfui-9-instructions_mask_white-iphone .mfui-9-instructions__swiper{height:363px;left:0;margin:auto;overflow:hidden;position:absolute;right:0;top:59px;width:204px}.mfui-9-instructions_mask_black-iphone .mfui-9-instructions__device-screen{background:url(img/blackIphone.png) 50% no-repeat;background-size:contain}.mfui-9-instructions_mask_white-iphone .mfui-9-instructions__device-screen{background:url(img/whiteIphone.png) 50% no-repeat;background-size:contain}@media screen and (max-width:1023px){.mfui-9-instructions_mask_android .mfui-9-instructions__img-wrapper{height:424px}}.mfui-9-instructions_mask_android .mfui-9-instructions__device-screen{background:url(img/android.png) 50% no-repeat;background-size:contain}.mfui-9-instructions_mask_android .mfui-9-instructions__swiper{height:370px;width:206px}@media screen and (max-width:1023px){.mfui-9-instructions_mask_new-iphone .mfui-9-instructions__img-wrapper{height:460px}}.mfui-9-instructions_mask_new-iphone .mfui-9-instructions__device-screen{background:url(img/newIphone.png) 50% no-repeat;background-size:contain;height:490px;margin:auto;position:relative;width:100%;z-index:2}.mfui-9-instructions_mask_new-iphone .mfui-9-instructions__swiper{border-radius:20px;height:462px;left:0;margin:auto;overflow:hidden;position:absolute;right:0;top:14px;width:214px;z-index:1}@media screen and (max-width:1023px){.mfui-9-instructions_mask_iphone-12 .mfui-9-instructions__img-wrapper:before{display:none}}.mfui-9-instructions_mask_iphone-12 .mfui-9-instructions__device-screen{background:url(img/iphone12.png) 50% no-repeat;background-size:contain;height:490px;margin:auto;position:relative;width:100%;z-index:2}.mfui-9-instructions_mask_iphone-12 .mfui-9-instructions__swiper{border-radius:20px;height:462px;left:0;margin:auto;overflow:hidden;position:absolute;right:0;top:14px;width:214px;z-index:1}.mfui-9-instructions_mask_iphone-15 .mfui-9-instructions__img-wrapper{height:487px}@media screen and (max-width:1023px){.mfui-9-instructions_mask_iphone-15 .mfui-9-instructions__img-wrapper:before{display:none}}.mfui-9-instructions_mask_iphone-15 .mfui-9-instructions__device-screen{background:url(img/iphone15.png) 50% no-repeat;background-size:contain;height:486px;margin:auto;position:relative;width:100%;z-index:2}.mfui-9-instructions_mask_iphone-15 .mfui-9-instructions__swiper{border-radius:20px;height:468px;left:0;margin:auto;overflow:hidden;position:absolute;right:0;top:10px;width:217px;z-index:1}.mfui-9-instructions_mask_android-cropped .mfui-9-instructions__img-wrapper{height:420px;min-height:420px}@media screen and (min-width:1024px){.mfui-9-instructions_mask_android-cropped .mfui-9-instructions__img-wrapper{height:440px;min-height:440px}}.mfui-9-instructions_mask_android-cropped .mfui-9-instructions__img-wrapper:before{background:var(--spbSky2);bottom:0;content:"";display:block;height:1px;left:0;margin:0 auto;position:absolute;right:0;width:324px;z-index:2}.mfui-9-instructions_mask_android-cropped .mfui-9-instructions__device-screen{background:url(img/android-new.png) 50% no-repeat;background-size:contain;height:510px;margin-top:24px;position:relative;width:100%;z-index:1}@media screen and (min-width:1024px){.mfui-9-instructions_mask_android-cropped .mfui-9-instructions__device-screen{height:574px}}.mfui-9-instructions_mask_android-cropped .mfui-9-instructions__swiper{left:0;margin:auto;overflow:hidden;position:absolute;right:0;top:54px;width:222px}@media screen and (min-width:1024px){.mfui-9-instructions_mask_android-cropped .mfui-9-instructions__swiper{top:58px;width:250px}}.mfui-9-instructions_mask_iphone-cropped .mfui-9-instructions__img-wrapper{height:420px;min-height:420px}.mfui-9-instructions_mask_iphone-cropped .mfui-9-instructions__img-wrapper:before{background:var(--spbSky2);bottom:0;content:"";display:block;height:1px;left:0;margin:0 auto;position:absolute;right:0;width:324px;z-index:2}.mfui-9-instructions_mask_iphone-cropped .mfui-9-instructions__device-screen{background:url(img/iphone-new.png) 50% no-repeat;background-size:contain;height:469px;margin-top:24px;position:relative;width:100%;z-index:1}.mfui-9-instructions_mask_iphone-cropped .mfui-9-instructions__swiper{left:0;margin:auto;overflow:hidden;position:absolute;right:0;top:38px;width:205px}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions_mask_laptop .mfui-9-instructions__img-wrapper{background:url(img/laptop.png) 50% 0 no-repeat;background-size:100%;height:0;padding-bottom:53.4%}}@media screen and (min-width:480px) and (max-width:767px){.mfui-9-instructions_mask_laptop .mfui-9-instructions__img-wrapper{height:208px}}@media screen and (max-width:479px){.mfui-9-instructions_mask_laptop .mfui-9-instructions__img-wrapper{height:115px}.mfui-9-instructions_mask_laptop .mfui-9-instructions__img-wrapper:before{width:310px}}@media screen and (min-width:480px) and (max-width:767px){.mfui-9-instructions_mask_laptop .mfui-9-instructions__img-wrapper:before{width:460px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions_mask_laptop .mfui-9-instructions__img-wrapper:before{width:590px}}.mfui-9-instructions_mask_laptop .mfui-9-instructions__device-screen{background:url(img/laptop.png) 50% 0 no-repeat;background-size:100%;height:100%;margin:auto;position:relative;width:100%}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions_mask_laptop .mfui-9-instructions__device-screen{width:530px}}@media screen and (min-width:480px) and (max-width:767px){.mfui-9-instructions_mask_laptop .mfui-9-instructions__device-screen{width:450px}}@media screen and (max-width:479px){.mfui-9-instructions_mask_laptop .mfui-9-instructions__device-screen{width:270px}}@media screen and (min-width:1024px){.mfui-9-instructions_mask_laptop .mfui-9-instructions__device-screen{background:url(img/laptop.png) 50% no-repeat;background-size:contain}}.mfui-9-instructions_mask_laptop .mfui-9-instructions__swiper{left:50%;margin:auto;overflow:hidden;position:absolute;right:0;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:78%}@media screen and (min-width:480px) and (max-width:767px){.mfui-9-instructions_mask_laptop .mfui-9-instructions__swiper{height:190px;max-width:345px}}@media screen and (max-width:479px){.mfui-9-instructions_mask_laptop .mfui-9-instructions__swiper{height:105px;max-width:210px}}@media screen and (min-width:1024px){.mfui-9-instructions_mask_laptop .mfui-9-instructions__swiper{-webkit-transform:translate(-50%,-53%);transform:translate(-50%,-53%)}}@media screen and (max-width:1023px){.mfui-9-instructions_mask_laptop-new .mfui-9-instructions__img-wrapper{background:url(img/laptop-new.png) 50% 0 no-repeat;background-size:100%;height:0;padding-bottom:58.9%}}.mfui-9-instructions_mask_laptop-new .mfui-9-instructions__img-wrapper:before{display:none}.mfui-9-instructions_mask_laptop-new .mfui-9-instructions__device-screen{background:url(img/laptop-new.png) 50% 0 no-repeat;background-size:100%;height:100%;margin:auto;position:relative;width:100%}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions_mask_laptop-new .mfui-9-instructions__device-screen{width:530px}}@media screen and (min-width:480px) and (max-width:767px){.mfui-9-instructions_mask_laptop-new .mfui-9-instructions__device-screen{width:450px}}@media screen and (max-width:479px){.mfui-9-instructions_mask_laptop-new .mfui-9-instructions__device-screen{width:270px}}@media screen and (min-width:1024px){.mfui-9-instructions_mask_laptop-new .mfui-9-instructions__device-screen{background:url(img/laptop-new.png) 50% no-repeat;background-size:contain}}.mfui-9-instructions_mask_laptop-new .mfui-9-instructions__swiper{left:50%;margin:auto;overflow:hidden;position:absolute;right:0;top:4px;-webkit-transform:translate(-49.5%);transform:translate(-49.5%);width:78%}@media screen and (min-width:480px) and (max-width:767px){.mfui-9-instructions_mask_laptop-new .mfui-9-instructions__swiper{max-width:415px;top:7px}}@media screen and (max-width:479px){.mfui-9-instructions_mask_laptop-new .mfui-9-instructions__swiper{max-width:302px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions_mask_laptop-new .mfui-9-instructions__swiper{top:12px}}@media screen and (min-width:1024px){.mfui-9-instructions_mask_laptop-new .mfui-9-instructions__swiper{top:50%;-webkit-transform:translate(-49.5%,-55%);transform:translate(-49.5%,-55%)}}.mfui-9-instructions__slide{-ms-flex-negative:0;flex-shrink:0;height:100%}@media screen and (max-width:767px){.mfui-9-instructions__articles{margin-top:24px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions__articles{margin-top:32px}}@media screen and (min-width:1024px){.mfui-9-instructions__articles{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1;width:50%}.mfui-9-instructions__articles_align_right{margin-right:40px}}.mfui-9-instructions__articles-list{list-style-type:none;margin:0;padding:0}@media screen and (min-width:1024px){.mfui-9-instructions__articles-list_mobile{display:none}}@media screen and (max-width:1023px){.mfui-9-instructions__articles-list_desktop{display:none}}.mfui-9-instructions__articles-item{min-height:40px;opacity:.5;position:relative}@media screen and (min-width:1024px){.mfui-9-instructions__articles-item{margin-bottom:24px}}.mfui-9-instructions__articles-item:hover,.mfui-9-instructions__articles-item_active{opacity:1}.mfui-9-instructions__articles-item:hover .mfui-9-instructions__articles-item-dot,.mfui-9-instructions__articles-item_active .mfui-9-instructions__articles-item-dot{color:var(--stcWhite)}.mfui-9-instructions__articles-item:hover .mfui-9-instructions__articles-item-dot:before,.mfui-9-instructions__articles-item_active .mfui-9-instructions__articles-item-dot:before{background:var(--brandGreen);bottom:0;left:0;right:0;top:0}@media screen and (min-width:1024px){.mfui-9-instructions__articles-item:last-child{margin-bottom:0}}.mfui-9-instructions__articles-item-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;border-radius:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:pointer;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;outline:none;padding:0;text-decoration:none;-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:12px;display:-webkit-box;display:-ms-flexbox;display:flex;min-height:40px;position:relative;text-align:start;width:100%}.mfui-9-instructions__articles-item-button:focus-visible{-webkit-animation:focus-outline-shrink .3s linear forwards;animation:focus-outline-shrink .3s linear forwards;outline-offset:2px}@-webkit-keyframes focus-outline-shrink{0%{outline:0 solid var(--137C)}to{outline:4px solid var(--137C)}}@keyframes focus-outline-shrink{0%{outline:0 solid var(--137C)}to{outline:4px solid var(--137C)}}.mfui-9-instructions__articles-item-button:focus{outline:none}.mfui-9-instructions__articles-item-button:disabled{color:inherit;cursor:auto}.mfui-9-instructions__articles-item-dot{border-radius:12px;-webkit-box-shadow:inset 0 0 0 1px var(--spbSky3);box-shadow:inset 0 0 0 1px var(--spbSky3);cursor:pointer;display:inline-block;font-size:15px;font-weight:500;height:40px;line-height:40px;position:absolute;text-align:center;width:40px}@media screen and (max-width:479px){.mfui-9-instructions__articles-item-dot{min-width:40px}}.mfui-9-instructions__articles-item-dot:before{border-radius:12px;bottom:50%;content:"";left:50%;position:absolute;right:50%;top:50%;-webkit-transition:all .3s ease;transition:all .3s ease}.mfui-9-instructions__articles-item-dot-number{position:relative}.mfui-9-instructions__articles-item-title{cursor:pointer;display:inline-block;font-size:15px;font-weight:400;line-height:24px}@media screen and (min-width:1024px){.mfui-9-instructions__articles-item-title{padding:8px 0 0 56px}}.mfui-9-instructions__articles-dots{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;list-style-type:none;margin:0;padding:0}@media screen and (max-width:767px){.mfui-9-instructions__articles-dots{margin-top:16px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions__articles-dots{margin-top:24px}}@media screen and (min-width:1024px){.mfui-9-instructions__articles-dots{display:none}}.mfui-9-instructions__articles-dots_text-after{margin-bottom:48px}.mfui-9-instructions__articles-dot{background:var(--spbSky2);border-radius:4px;cursor:pointer;display:inline-block;height:8px;margin-right:12px;position:relative;width:8px}.mfui-9-instructions__articles-dot:hover,.mfui-9-instructions__articles-dot_active{background:var(--brandGreen)}.mfui-9-instructions__articles-dot_active{width:20px}.mfui-9-instructions__articles-dot:last-child{margin-right:0}.mfui-9-instructions__articles-title-block{margin:0 auto;text-align:center}@media screen and (max-width:767px){.mfui-9-instructions__articles-title-block{width:55%}}@media screen and (max-width:479px){.mfui-9-instructions__articles-title-block{width:100%}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions__articles-title-block{max-width:530px;width:100%}}.mfui-9-instructions__articles-title-block_with-numeration{text-align:left}.mfui-9-instructions__articles-title{font-weight:400;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.mfui-9-instructions__articles-num,.mfui-9-instructions__articles-title{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:15px;line-height:24px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.mfui-9-instructions__articles-num{font-weight:500;-ms-flex-negative:0;flex-shrink:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--brandGreen);border-radius:50%;color:var(--stcWhite);height:40px;margin-right:16px;width:40px}@media screen and (min-width:1024px){.mfui-9-instructions__articles-num{display:none}}.mfui-9-instructions__picture_background_spbSky0{background-color:var(--spbSky0);border-radius:12px}.mfui-9-instructions__picture_background_spbSky0 .mfui-9-instructions__img-wrapper:before{display:none}.mfui-9-instructions__arrow{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);z-index:2}@media screen and (max-width:767px){.mfui-9-instructions__arrow{display:none}}.mfui-9-instructions__arrow_prev{left:24px}.mfui-9-instructions__arrow_next{right:24px}.mfui-9-instructions__qr-code{-webkit-box-sizing:border-box;box-sizing:border-box;display:none;padding:12px;position:absolute;right:64px;top:12px;width:126px;z-index:3}@media screen and (min-width:768px){.mfui-9-instructions__qr-code{display:block}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-9-instructions__qr-code{right:44px}}.mfui-9-instructions__qr-code-image{display:block;height:auto;width:100%}.mfui-9-instructions__qr-code-text{font-size:12px;font-weight:500;line-height:12px;margin-bottom:12px;text-align:center}.mfui-9-instructions_reversed .mfui-9-instructions__title_resolution_mobile{margin-bottom:16px}@media screen and (max-width:1023px){.mfui-9-instructions_reversed .mfui-9-instructions__picture{margin-bottom:0;max-height:100%}.mfui-9-instructions_reversed .mfui-9-instructions__articles{display:none}}@media screen and (max-width:767px){.mfui-9-instructions_reversed .mfui-9-instructions__articles-title-block{margin-bottom:32px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions_reversed .mfui-9-instructions__articles-title-block{margin-bottom:40px}}
|
|
@@ -91,8 +91,6 @@ export interface IInstructionsProps {
|
|
|
91
91
|
title?: string;
|
|
92
92
|
/** Пункты инструкции */
|
|
93
93
|
instructionItems: InstructionItemType[];
|
|
94
|
-
/** Отступ между пунктами инструкции. DEPRECATED: 'large' */
|
|
95
|
-
itemsGap?: 'medium' | 'large';
|
|
96
94
|
/** Описание после инструкции */
|
|
97
95
|
additionalText?: string;
|
|
98
96
|
/** Расположение изображения по горизонтали */
|
|
@@ -27,7 +27,7 @@ try {
|
|
|
27
27
|
SwiperSlide = SwiperAll.SwiperSlide;
|
|
28
28
|
} catch (e) {
|
|
29
29
|
// eslint-disable-next-line no-console
|
|
30
|
-
console.warn("\n WARNING: megafon/ui-share is using the latest version of swiper
|
|
30
|
+
console.warn("\n WARNING: megafon/ui-share is using the latest version of swiper.\n For more information about server-side rendering\n please check the Instructions component documentation at:\n https://ui.megafon.ru/components/instructions\n ");
|
|
31
31
|
}
|
|
32
32
|
var pictureAlignTypes = exports.pictureAlignTypes = {
|
|
33
33
|
LEFT: 'left',
|
|
@@ -84,7 +84,6 @@ var Instructions = function Instructions(_ref) {
|
|
|
84
84
|
_ref$title = _ref.title,
|
|
85
85
|
title = _ref$title === void 0 ? '' : _ref$title,
|
|
86
86
|
instructionItems = _ref.instructionItems,
|
|
87
|
-
itemsGap = _ref.itemsGap,
|
|
88
87
|
_ref$pictureAlign = _ref.pictureAlign,
|
|
89
88
|
pictureAlign = _ref$pictureAlign === void 0 ? 'left' : _ref$pictureAlign,
|
|
90
89
|
_ref$pictureVerticalA = _ref.pictureVerticalAlign,
|
|
@@ -251,23 +250,23 @@ var Instructions = function Instructions(_ref) {
|
|
|
251
250
|
"data-testid": "".concat(testIdPrefix, "-articles-list-desktop")
|
|
252
251
|
}, instructionItems.map(function (_ref5, i) {
|
|
253
252
|
var itemTitle = _ref5.title;
|
|
254
|
-
return /*#__PURE__*/(
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
);
|
|
253
|
+
return /*#__PURE__*/React.createElement("li", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.item, i + 1), {
|
|
254
|
+
className: cn('articles-item', {
|
|
255
|
+
active: slideIndex === i
|
|
256
|
+
}, [getActiveCustomClass(i, slideIndex), instructionItem, desktopInstructionItem]),
|
|
257
|
+
"data-index": i,
|
|
258
|
+
key: i
|
|
259
|
+
}), /*#__PURE__*/React.createElement("button", {
|
|
260
|
+
className: cn('articles-item-button'),
|
|
261
|
+
type: "button",
|
|
262
|
+
onClick: handleArticleClick(i)
|
|
263
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
264
|
+
className: cn('articles-item-dot')
|
|
265
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
266
|
+
className: cn('articles-item-dot-number')
|
|
267
|
+
}, i + 1)), /*#__PURE__*/React.createElement("div", {
|
|
268
|
+
className: cn('articles-item-title', [desktopItemTitle])
|
|
269
|
+
}, itemTitle)));
|
|
271
270
|
}));
|
|
272
271
|
}, [desktopInstructionItem, desktopItemTitle, getActiveCustomClass, handleArticleClick, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.item, instructionItem, instructionItems, slideIndex, text]);
|
|
273
272
|
var renderMobileArticles = React.useCallback(function () {
|
|
@@ -344,8 +343,7 @@ var Instructions = function Instructions(_ref) {
|
|
|
344
343
|
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
|
345
344
|
className: cn({
|
|
346
345
|
mask: pictureMask,
|
|
347
|
-
reversed: isMobileReversed
|
|
348
|
-
'items-gap': itemsGap
|
|
346
|
+
reversed: isMobileReversed
|
|
349
347
|
}),
|
|
350
348
|
ref: rootRef
|
|
351
349
|
}), /*#__PURE__*/React.createElement(_uiCore.Grid, {
|
|
@@ -7,7 +7,7 @@ export declare const Align: {
|
|
|
7
7
|
};
|
|
8
8
|
type AlignType = (typeof Align)[keyof typeof Align];
|
|
9
9
|
type NotificationProps = React.ComponentProps<typeof Notification>;
|
|
10
|
-
type NotificationBoxProps =
|
|
10
|
+
type NotificationBoxProps = NotificationProps & {
|
|
11
11
|
/** Горизонтальное выравнивание */
|
|
12
12
|
align?: AlignType;
|
|
13
13
|
};
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports["default"] = exports.Align = void 0;
|
|
8
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
8
|
require("core-js/modules/es.symbol.js");
|
|
10
9
|
require("core-js/modules/es.array.index-of.js");
|
|
11
10
|
var React = _interopRequireWildcard(require("react"));
|
|
@@ -13,7 +12,6 @@ var _uiCore = require("@megafon/ui-core");
|
|
|
13
12
|
var _uiHelpers = require("@megafon/ui-helpers");
|
|
14
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); }
|
|
15
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; }
|
|
16
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
17
15
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
18
16
|
var t = {};
|
|
19
17
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
@@ -37,8 +35,6 @@ var NotificationBox = function NotificationBox(_a) {
|
|
|
37
35
|
})
|
|
38
36
|
}, /*#__PURE__*/React.createElement("div", {
|
|
39
37
|
className: cn('notification')
|
|
40
|
-
}, /*#__PURE__*/React.createElement(_uiCore.Notification,
|
|
41
|
-
isColored: false
|
|
42
|
-
}))));
|
|
38
|
+
}, /*#__PURE__*/React.createElement(_uiCore.Notification, restProps)));
|
|
43
39
|
};
|
|
44
40
|
var _default = exports["default"] = NotificationBox;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-9-
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-9-partners__grid{display:grid;gap:20px;grid-template-columns:repeat(12,1fr)}@media screen and (max-width:767px){.mfui-9-partners__grid{grid-template-columns:repeat(2,1fr)}}.mfui-9-partners__grid-item{grid-column:span 6}@media screen and (max-width:767px){.mfui-9-partners__grid-item{grid-column:span 2}}.mfui-9-partners__grid:has(.mfui-9-partners__grid-item:nth-child(2)) .mfui-9-partners__grid-item:nth-child(-n+2){grid-column:span 6}@media screen and (max-width:767px){.mfui-9-partners__grid:has(.mfui-9-partners__grid-item:nth-child(2)) .mfui-9-partners__grid-item:nth-child(-n+2){grid-column:span 1}}.mfui-9-partners__grid:has(.mfui-9-partners__grid-item:nth-child(3)) .mfui-9-partners__grid-item:nth-child(-n+3){grid-column:span 4}@media screen and (max-width:767px){.mfui-9-partners__grid:has(.mfui-9-partners__grid-item:nth-child(3)) .mfui-9-partners__grid-item:first-child{grid-column:span 2}.mfui-9-partners__grid:has(.mfui-9-partners__grid-item:nth-child(3)) .mfui-9-partners__grid-item:nth-child(n+2){grid-column:span 1}}.mfui-9-partners__grid:has(.mfui-9-partners__grid-item:nth-child(4)) .mfui-9-partners__grid-item:nth-child(-n+4){grid-column:span 3}@media screen and (max-width:767px){.mfui-9-partners__grid:has(.mfui-9-partners__grid-item:nth-child(4)) .mfui-9-partners__grid-item:nth-child(-n+4){grid-column:span 1}}.mfui-9-partners__grid:has(.mfui-9-partners__grid-item:nth-child(5)) .mfui-9-partners__grid-item:nth-child(-n+2){grid-column:span 6}.mfui-9-partners__grid:has(.mfui-9-partners__grid-item:nth-child(5)) .mfui-9-partners__grid-item:nth-child(n+3){grid-column:span 4}@media screen and (max-width:767px){.mfui-9-partners__grid:has(.mfui-9-partners__grid-item:nth-child(5)) .mfui-9-partners__grid-item:first-child{grid-column:span 2}.mfui-9-partners__grid:has(.mfui-9-partners__grid-item:nth-child(5)) .mfui-9-partners__grid-item:nth-child(n+2){grid-column:span 1}}.mfui-9-partners__grid:has(.mfui-9-partners__grid-item:nth-child(6)) .mfui-9-partners__grid-item:nth-child(-n+6){grid-column:span 4}@media screen and (max-width:767px){.mfui-9-partners__grid:has(.mfui-9-partners__grid-item:nth-child(6)) .mfui-9-partners__grid-item:nth-child(-n+6){grid-column:span 1}}.mfui-9-partners__grid:has(.mfui-9-partners__grid-item:nth-child(7)) .mfui-9-partners__grid-item:nth-child(-n+3){grid-column:span 4}.mfui-9-partners__grid:has(.mfui-9-partners__grid-item:nth-child(7)) .mfui-9-partners__grid-item:nth-child(n+4){grid-column:span 3}@media screen and (max-width:767px){.mfui-9-partners__grid:has(.mfui-9-partners__grid-item:nth-child(7)) .mfui-9-partners__grid-item:first-child{grid-column:span 2}.mfui-9-partners__grid:has(.mfui-9-partners__grid-item:nth-child(7)) .mfui-9-partners__grid-item:nth-child(n+2){grid-column:span 1}}.mfui-9-partners__grid:has(.mfui-9-partners__grid-item:nth-child(8)) .mfui-9-partners__grid-item:nth-child(-n+8){grid-column:span 3}@media screen and (max-width:767px){.mfui-9-partners__grid:has(.mfui-9-partners__grid-item:nth-child(8)) .mfui-9-partners__grid-item:nth-child(-n+8){grid-column:span 1}}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { BackgroundType, ItemType } from './types';
|
|
2
3
|
import './Partners.scss';
|
|
3
|
-
export type ItemType = {
|
|
4
|
-
src: string;
|
|
5
|
-
href?: string;
|
|
6
|
-
alt: string;
|
|
7
|
-
rel?: string;
|
|
8
|
-
};
|
|
9
4
|
export interface IPartnersProps {
|
|
10
5
|
/** Дополнительные data атрибуты к внутренним элементам */
|
|
11
6
|
dataAttrs?: {
|
|
@@ -24,8 +19,8 @@ export interface IPartnersProps {
|
|
|
24
19
|
className?: string;
|
|
25
20
|
/** Список логотипов */
|
|
26
21
|
items: ItemType[];
|
|
27
|
-
/**
|
|
28
|
-
|
|
22
|
+
/** Фон карточки */
|
|
23
|
+
background?: BackgroundType;
|
|
29
24
|
/** Обработчик клика по стрелке вперед (должен быть обернут в useCallback) */
|
|
30
25
|
onNextClick?: (index: number) => void;
|
|
31
26
|
/** Обработчик клика по стрелке назад (должен быть обернут в useCallback) */
|
|
@@ -12,6 +12,7 @@ require("core-js/modules/es.array.slice.js");
|
|
|
12
12
|
var React = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _uiCore = require("@megafon/ui-core");
|
|
14
14
|
var _uiHelpers = require("@megafon/ui-helpers");
|
|
15
|
+
var _PartnersItem = _interopRequireDefault(require("./components/PartnersItem/PartnersItem"));
|
|
15
16
|
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
17
|
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
18
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
@@ -38,50 +39,38 @@ var Partners = function Partners(_ref) {
|
|
|
38
39
|
dataAttrs = _ref.dataAttrs,
|
|
39
40
|
className = _ref.className,
|
|
40
41
|
items = _ref.items,
|
|
41
|
-
_ref$
|
|
42
|
-
|
|
42
|
+
_ref$background = _ref.background,
|
|
43
|
+
background = _ref$background === void 0 ? 'shadow' : _ref$background,
|
|
43
44
|
onChange = _ref.onChange,
|
|
44
45
|
onNextClick = _ref.onNextClick,
|
|
45
46
|
onPrevClick = _ref.onPrevClick;
|
|
46
|
-
var renderItem = React.useCallback(function (item) {
|
|
47
|
-
var index = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
47
|
+
var renderItem = React.useCallback(function (item, index) {
|
|
48
48
|
if (!item) {
|
|
49
49
|
return null;
|
|
50
50
|
}
|
|
51
51
|
var src = item.src,
|
|
52
|
-
href = item.href,
|
|
53
52
|
alt = item.alt,
|
|
54
|
-
rel = item.rel
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
rel = item.rel,
|
|
54
|
+
href = item.href;
|
|
55
|
+
return /*#__PURE__*/React.createElement(_PartnersItem["default"], {
|
|
56
|
+
className: itemClass,
|
|
57
|
+
src: src,
|
|
58
|
+
alt: alt,
|
|
57
59
|
rel: rel,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
isInteractive: !!href,
|
|
61
|
-
className: cn('tile'),
|
|
60
|
+
href: href,
|
|
61
|
+
background: background,
|
|
62
62
|
dataAttrs: {
|
|
63
63
|
root: (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.item, index + 1))
|
|
64
64
|
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
"data-testid": "".concat(testIdPrefix, "-tile-inner")
|
|
68
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
69
|
-
className: cn('img-wrapper')
|
|
70
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
71
|
-
src: src,
|
|
72
|
-
alt: alt,
|
|
73
|
-
className: cn('tile-img')
|
|
74
|
-
}))));
|
|
75
|
-
}, [radius, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.item, itemClass]);
|
|
65
|
+
});
|
|
66
|
+
}, [background, dataAttrs, itemClass]);
|
|
76
67
|
var renderGrid = React.useCallback(function () {
|
|
77
|
-
return /*#__PURE__*/React.createElement(
|
|
78
|
-
|
|
79
|
-
guttersBottom: "medium"
|
|
68
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
69
|
+
className: cn('grid')
|
|
80
70
|
}, items.map(function (item, i) {
|
|
81
|
-
return /*#__PURE__*/React.createElement(
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
mobile: "6"
|
|
71
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
72
|
+
className: cn('grid-item'),
|
|
73
|
+
key: i + item.src
|
|
85
74
|
}, renderItem(item, i));
|
|
86
75
|
}));
|
|
87
76
|
}, [items, renderItem]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-9-partners-item{background-color:var(--base);border-radius:24px;display:block}.mfui-9-partners-item:focus-visible{-webkit-animation:focus-outline-shrink .3s linear forwards;animation:focus-outline-shrink .3s linear forwards;outline-offset:2px}@-webkit-keyframes focus-outline-shrink{0%{outline:0 solid var(--137C)}to{outline:4px solid var(--137C)}}@keyframes focus-outline-shrink{0%{outline:0 solid var(--137C)}to{outline:4px solid var(--137C)}}.mfui-9-partners-item:focus{outline:none}.mfui-9-partners-item:not(:last-child){margin-bottom:20px}@media screen and (max-width:767px){.mfui-9-partners-item:not(:last-child){margin-bottom:16px}}.mfui-9-partners-item_background_shadow{-webkit-box-shadow:0 2px 12px rgba(0,0,0,.1);box-shadow:0 2px 12px rgba(0,0,0,.1)}.mfui-9-partners-item_background_shadow.mfui-9-partners-item_interactive:hover,.mfui-9-partners-item_background_white.mfui-9-partners-item_interactive:hover{background-color:var(--stcWhite10);-webkit-box-shadow:0 8px 28px rgba(0,0,0,.1);box-shadow:0 8px 28px rgba(0,0,0,.1)}.mfui-9-partners-item_background_outline{background-color:transparent;border:1px solid var(--spbSky2)}.mfui-9-partners-item_background_outline.mfui-9-partners-item_interactive:hover{background-color:var(--spbSky0)}.mfui-9-partners-item__background_white{background-color:var(--base)}.mfui-9-partners-item_background_gray{background-color:var(--spbSky0)}.mfui-9-partners-item_background_gray.mfui-9-partners-item_interactive:hover{background-color:var(--spbSky1)}.mfui-9-partners-item__inner{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;-webkit-box-sizing:border-box;box-sizing:border-box;height:132px;justify-content:center;padding:16px 0}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-9-partners-item__inner{height:104px;padding:18px 0}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-partners-item__inner{height:77px;padding:8px 0}}@media screen and (max-width:767px){.mfui-9-partners-item__inner{height:68px;padding:4px 0}}.mfui-9-partners-item__img-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;overflow:hidden;width:220px}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-9-partners-item__img-wrapper{width:152px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-partners-item__img-wrapper{width:136px}}@media screen and (max-width:767px){.mfui-9-partners-item__img-wrapper{width:120px}}.mfui-9-partners-item__img{height:100%;width:100%}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BackgroundType, ItemType } from '../../types';
|
|
3
|
+
import './PartnersItem.scss';
|
|
4
|
+
interface IPartnersItem extends ItemType {
|
|
5
|
+
className?: string;
|
|
6
|
+
background?: BackgroundType;
|
|
7
|
+
dataAttrs?: {
|
|
8
|
+
root?: Record<string, string>;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
declare const PartnersItem: React.FC<IPartnersItem>;
|
|
12
|
+
export default PartnersItem;
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
var React = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _uiHelpers = require("@megafon/ui-helpers");
|
|
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 && {}.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; }
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
|
+
var cn = (0, _uiHelpers.cnCreate)('mfui-9-partners-item');
|
|
15
|
+
var PartnersItem = function PartnersItem(_ref) {
|
|
16
|
+
var src = _ref.src,
|
|
17
|
+
rel = _ref.rel,
|
|
18
|
+
alt = _ref.alt,
|
|
19
|
+
href = _ref.href,
|
|
20
|
+
className = _ref.className,
|
|
21
|
+
background = _ref.background,
|
|
22
|
+
dataAttrs = _ref.dataAttrs;
|
|
23
|
+
var RootElement = href ? 'a' : 'div';
|
|
24
|
+
var isLink = !!href;
|
|
25
|
+
return /*#__PURE__*/React.createElement(RootElement, (0, _extends2["default"])({
|
|
26
|
+
href: isLink ? href : undefined,
|
|
27
|
+
rel: isLink ? rel : undefined,
|
|
28
|
+
className: cn({
|
|
29
|
+
background: background,
|
|
30
|
+
interactive: !!href
|
|
31
|
+
}, [className])
|
|
32
|
+
}, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), /*#__PURE__*/React.createElement("div", {
|
|
33
|
+
className: cn('inner')
|
|
34
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
35
|
+
className: cn('img-wrapper')
|
|
36
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
37
|
+
src: src,
|
|
38
|
+
alt: alt,
|
|
39
|
+
className: cn('img')
|
|
40
|
+
}))));
|
|
41
|
+
};
|
|
42
|
+
var _default = exports["default"] = PartnersItem;
|