@megafon/ui-shared 9.0.0-alpha.8 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/components/BlogBoxTile.css +1 -1
- 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 +37 -0
- package/dist/es/components/CardsOnBackground/CardsOnBackground.js +98 -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 +47 -0
- package/dist/es/components/CardsOnBackground/types.js +10 -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/components/DarkGradientCard.css +1 -1
- package/dist/es/components/DownloadLinks/DownloadLink.css +1 -1
- package/dist/es/components/DownloadLinks/DownloadLink.js +3 -1
- package/dist/es/components/ImageBanner/ImageBanner.d.ts +3 -0
- package/dist/es/components/ImageBanner/ImageBanner.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 +23 -7
- package/dist/es/components/Instructions/Instructions.js +46 -30
- package/dist/es/components/Instructions/img/android.png +0 -0
- package/dist/es/components/Instructions/img/laptop.png +0 -0
- package/dist/es/components/Instructions/img/logo-base.png +0 -0
- package/dist/es/components/Instructions/img/logo-cropped-base-with-opacity.png +0 -0
- package/dist/es/components/Instructions/img/logo-cropped-spb-sky-3.png +0 -0
- package/dist/es/components/Instructions/img/logo-spb-sky-0.png +0 -0
- 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/components/PromoCard/PromoCard.css +1 -1
- 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/StepperBox/StepperBox.d.ts +11 -0
- package/dist/es/components/StepperBox/StepperBox.js +36 -0
- 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/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/components/BlogBoxTile.css +1 -1
- 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 +37 -0
- package/dist/lib/components/CardsOnBackground/CardsOnBackground.js +107 -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 +47 -0
- package/dist/lib/components/CardsOnBackground/types.js +16 -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/components/DarkGradientCard.css +1 -1
- package/dist/lib/components/DownloadLinks/DownloadLink.css +1 -1
- package/dist/lib/components/DownloadLinks/DownloadLink.js +3 -1
- package/dist/lib/components/ImageBanner/ImageBanner.d.ts +3 -0
- package/dist/lib/components/ImageBanner/ImageBanner.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 +23 -7
- package/dist/lib/components/Instructions/Instructions.js +47 -30
- package/dist/lib/components/Instructions/img/android.png +0 -0
- package/dist/lib/components/Instructions/img/laptop.png +0 -0
- package/dist/lib/components/Instructions/img/logo-base.png +0 -0
- package/dist/lib/components/Instructions/img/logo-cropped-base-with-opacity.png +0 -0
- package/dist/lib/components/Instructions/img/logo-cropped-spb-sky-3.png +0 -0
- package/dist/lib/components/Instructions/img/logo-spb-sky-0.png +0 -0
- 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/components/PromoCard/PromoCard.css +1 -1
- 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/StepperBox/StepperBox.d.ts +11 -0
- package/dist/lib/components/StepperBox/StepperBox.js +46 -0
- 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/Instructions/img/android-new.png +0 -0
- package/dist/es/components/Instructions/img/blackIphone.png +0 -0
- package/dist/es/components/Instructions/img/iphone-new.png +0 -0
- package/dist/es/components/Instructions/img/iphone12.png +0 -0
- package/dist/es/components/Instructions/img/laptop-new.png +0 -0
- 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/lib/components/Instructions/img/android-new.png +0 -0
- package/dist/lib/components/Instructions/img/blackIphone.png +0 -0
- package/dist/lib/components/Instructions/img/iphone-new.png +0 -0
- package/dist/lib/components/Instructions/img/iphone12.png +0 -0
- package/dist/lib/components/Instructions/img/laptop-new.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/es/components/Instructions/img/{iphone15.png → iphone.png} +0 -0
- /package/dist/lib/components/Instructions/img/{iphone15.png → 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
|
/** Предотвратить прохождение верхнего отступа дочернего компонента через верхнюю границу контейнера */
|
|
@@ -22,6 +22,7 @@ var Container = function Container(_ref) {
|
|
|
22
22
|
disablePaddingBottom = _ref.disablePaddingBottom,
|
|
23
23
|
disableRadiusTop = _ref.disableRadiusTop,
|
|
24
24
|
disableRadiusBottom = _ref.disableRadiusBottom,
|
|
25
|
+
disableHorizontalIndents = _ref.disableHorizontalIndents,
|
|
25
26
|
_ref$bottomShadow = _ref.bottomShadow,
|
|
26
27
|
bottomShadow = _ref$bottomShadow === void 0 ? false : _ref$bottomShadow,
|
|
27
28
|
_ref$preventMarginTop = _ref.preventMarginTopCollapse,
|
|
@@ -41,6 +42,8 @@ var Container = function Container(_ref) {
|
|
|
41
42
|
className: cn('inner', {
|
|
42
43
|
prevent: preventMarginTopCollapse
|
|
43
44
|
}, [className, classes === null || classes === void 0 ? void 0 : classes.inner])
|
|
44
|
-
}, /*#__PURE__*/React.createElement(ContentArea,
|
|
45
|
+
}, /*#__PURE__*/React.createElement(ContentArea, {
|
|
46
|
+
disableIndents: disableHorizontalIndents
|
|
47
|
+
}, children)));
|
|
45
48
|
};
|
|
46
49
|
export default Container;
|
|
@@ -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)}
|
|
@@ -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}
|
|
@@ -9,7 +9,9 @@ var DownloadIcon = function DownloadIcon(props) {
|
|
|
9
9
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
10
10
|
viewBox: "0 0 40 40"
|
|
11
11
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
12
|
-
d: "
|
|
12
|
+
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"
|
|
13
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
14
|
+
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"
|
|
13
15
|
}));
|
|
14
16
|
};
|
|
15
17
|
var cn = cnCreate('mfui-9-download-link');
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { IHeaderProps } from '@megafon/ui-core/dist/lib/components/Header/Header';
|
|
2
3
|
import './ImageBanner.scss';
|
|
3
4
|
export declare const BackgroundColor: {
|
|
4
5
|
readonly TRANSPARENT: "transparent";
|
|
@@ -58,6 +59,8 @@ export interface IImageBannerProps {
|
|
|
58
59
|
headerLevelMobile?: 'h1' | 'h2';
|
|
59
60
|
/** Тег заголовка на разрешении экрана 768+ */
|
|
60
61
|
headerLevel?: 'h1' | 'h2';
|
|
62
|
+
/** Тег заголовка для семантической разметки (переопределение тега без изменения стилей) */
|
|
63
|
+
headerTag?: IHeaderProps['tag'];
|
|
61
64
|
/** Фоновый цвет */
|
|
62
65
|
backgroundColor?: BackgroundColorType;
|
|
63
66
|
/** Радиус границы */
|
|
@@ -77,6 +77,7 @@ var ImageBanner = function ImageBanner(_ref2) {
|
|
|
77
77
|
headerLevelMobile = _ref2$headerLevelMobi === void 0 ? 'h1' : _ref2$headerLevelMobi,
|
|
78
78
|
_ref2$headerLevel = _ref2.headerLevel,
|
|
79
79
|
headerLevel = _ref2$headerLevel === void 0 ? 'h1' : _ref2$headerLevel,
|
|
80
|
+
headerTag = _ref2.headerTag,
|
|
80
81
|
_ref2$backgroundColor = _ref2.backgroundColor,
|
|
81
82
|
backgroundColor = _ref2$backgroundColor === void 0 ? BackgroundColor.TRANSPARENT : _ref2$backgroundColor,
|
|
82
83
|
_ref2$radius = _ref2.radius,
|
|
@@ -122,7 +123,8 @@ var ImageBanner = function ImageBanner(_ref2) {
|
|
|
122
123
|
}, renderBadges, renderAdBlock), !!title && /*#__PURE__*/React.createElement(Header, {
|
|
123
124
|
className: cn('title', [classes.title]),
|
|
124
125
|
color: "inherit",
|
|
125
|
-
as: isMobile ? headerLevelMobile : headerLevel
|
|
126
|
+
as: isMobile ? headerLevelMobile : headerLevel,
|
|
127
|
+
tag: headerTag
|
|
126
128
|
}, typeof title === 'string' ? convert(title, titleConvertConfig) : title), !!description && /*#__PURE__*/React.createElement(Header, {
|
|
127
129
|
className: cn('description', [classes.description]),
|
|
128
130
|
as: "h5",
|
|
@@ -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)}
|
|
@@ -9,14 +9,14 @@ var ArrowRight16 = function ArrowRight16(props) {
|
|
|
9
9
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
10
10
|
viewBox: "0 0 20 20"
|
|
11
11
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
12
|
-
d: "
|
|
12
|
+
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"
|
|
13
13
|
}));
|
|
14
14
|
};
|
|
15
15
|
var ArrowRight24 = function ArrowRight24(props) {
|
|
16
16
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
17
17
|
viewBox: "0 0 32 32"
|
|
18
18
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
19
|
-
d: "
|
|
19
|
+
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"
|
|
20
20
|
}));
|
|
21
21
|
};
|
|
22
22
|
var cn = cnCreate('mfui-9-info-card');
|
|
@@ -66,6 +66,8 @@ var InfoCard = function InfoCard(_ref) {
|
|
|
66
66
|
active: isActive,
|
|
67
67
|
'align-center': !moreInfo
|
|
68
68
|
}, [className, classes === null || classes === void 0 ? void 0 : classes.root])
|
|
69
|
+
}, !!onClick && {
|
|
70
|
+
tabIndex: 0
|
|
69
71
|
}), /*#__PURE__*/React.createElement("img", {
|
|
70
72
|
className: cn('image'),
|
|
71
73
|
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: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-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}}
|
|
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_mask_none .mfui-9-instructions__swiper-img,.mfui-9-instructions_mask_none .mfui-9-instructions__swiper-img_video{border-radius:24px}.mfui-9-instructions_mask_none.mfui-9-instructions_size_big .swiper-wrapper{height:100%}.mfui-9-instructions_mask_none.mfui-9-instructions_size_big .mfui-9-instructions__picture{max-height:529px;max-width:832px;width:100%}@media screen and (min-width:1280px) and (max-width:1439px){.mfui-9-instructions_mask_none.mfui-9-instructions_size_big .mfui-9-instructions__picture{max-height:410px;max-width:645px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-9-instructions_mask_none.mfui-9-instructions_size_big .mfui-9-instructions__picture{max-height:422px;max-width:663px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions_mask_none.mfui-9-instructions_size_big .mfui-9-instructions__picture{max-height:427px;max-width:672px}}@media screen and (max-width:767px){.mfui-9-instructions_mask_none.mfui-9-instructions_size_big .mfui-9-instructions__picture{height:auto;max-height:none}}.mfui-9-instructions_mask_none.mfui-9-instructions_size_big .mfui-9-instructions__swiper{height:529px}@media screen and (min-width:1280px) and (max-width:1439px){.mfui-9-instructions_mask_none.mfui-9-instructions_size_big .mfui-9-instructions__swiper{height:410px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-9-instructions_mask_none.mfui-9-instructions_size_big .mfui-9-instructions__swiper{height:422px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions_mask_none.mfui-9-instructions_size_big .mfui-9-instructions__swiper{height:427px}}@media screen and (max-width:767px){.mfui-9-instructions_mask_none.mfui-9-instructions_size_big .mfui-9-instructions__swiper{height:auto}}.mfui-9-instructions__swiper-img{border-radius:0;height:100%;width:100%}.mfui-9-instructions__swiper-img_video{border-radius:0;-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}.mfui-9-instructions_mask_android .mfui-9-instructions__img-wrapper,.mfui-9-instructions_mask_iphone .mfui-9-instructions__img-wrapper{height:487px}@media screen and (max-width:1023px){.mfui-9-instructions_mask_android .mfui-9-instructions__img-wrapper:before,.mfui-9-instructions_mask_iphone .mfui-9-instructions__img-wrapper:before{display:none}}.mfui-9-instructions_mask_android .mfui-9-instructions__device-screen,.mfui-9-instructions_mask_iphone .mfui-9-instructions__device-screen{background:50% no-repeat;background-size:contain;height:100%;margin:auto;position:relative;width:100%;z-index:2}.mfui-9-instructions_mask_android .mfui-9-instructions__swiper,.mfui-9-instructions_mask_iphone .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 .mfui-9-instructions__qr-code,.mfui-9-instructions_mask_iphone .mfui-9-instructions__qr-code{left:61.2%;top:16px}.mfui-9-instructions_mask_android .mfui-9-instructions__device-screen{background-image:url(img/android.png)}.mfui-9-instructions_mask_android.mfui-9-instructions_size_big .mfui-9-instructions__picture,.mfui-9-instructions_mask_iphone.mfui-9-instructions_size_big .mfui-9-instructions__picture{max-height:529px;max-width:530px;width:100%}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-9-instructions_mask_android.mfui-9-instructions_size_big .mfui-9-instructions__picture,.mfui-9-instructions_mask_iphone.mfui-9-instructions_size_big .mfui-9-instructions__picture{max-height:513px;max-width:514px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions_mask_android.mfui-9-instructions_size_big .mfui-9-instructions__picture,.mfui-9-instructions_mask_iphone.mfui-9-instructions_size_big .mfui-9-instructions__picture{max-height:529px;max-width:530px}}.mfui-9-instructions_mask_android.mfui-9-instructions_size_big .mfui-9-instructions__img-wrapper,.mfui-9-instructions_mask_iphone.mfui-9-instructions_size_big .mfui-9-instructions__img-wrapper{height:529px}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-9-instructions_mask_android.mfui-9-instructions_size_big .mfui-9-instructions__img-wrapper,.mfui-9-instructions_mask_iphone.mfui-9-instructions_size_big .mfui-9-instructions__img-wrapper{height:513px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions_mask_android.mfui-9-instructions_size_big .mfui-9-instructions__img-wrapper,.mfui-9-instructions_mask_iphone.mfui-9-instructions_size_big .mfui-9-instructions__img-wrapper{height:529px}}@media screen and (max-width:767px){.mfui-9-instructions_mask_android.mfui-9-instructions_size_big .mfui-9-instructions__img-wrapper,.mfui-9-instructions_mask_iphone.mfui-9-instructions_size_big .mfui-9-instructions__img-wrapper{height:427px}}.mfui-9-instructions_mask_android.mfui-9-instructions_size_big .mfui-9-instructions__device-screen,.mfui-9-instructions_mask_iphone.mfui-9-instructions_size_big .mfui-9-instructions__device-screen{height:100%}.mfui-9-instructions_mask_android.mfui-9-instructions_size_big .mfui-9-instructions__swiper,.mfui-9-instructions_mask_iphone.mfui-9-instructions_size_big .mfui-9-instructions__swiper{height:529px;top:0;width:240px}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-9-instructions_mask_android.mfui-9-instructions_size_big .mfui-9-instructions__swiper,.mfui-9-instructions_mask_iphone.mfui-9-instructions_size_big .mfui-9-instructions__swiper{height:513px;width:232px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions_mask_android.mfui-9-instructions_size_big .mfui-9-instructions__swiper,.mfui-9-instructions_mask_iphone.mfui-9-instructions_size_big .mfui-9-instructions__swiper{height:529px;width:240px}}@media screen and (max-width:767px){.mfui-9-instructions_mask_android.mfui-9-instructions_size_big .mfui-9-instructions__swiper,.mfui-9-instructions_mask_iphone.mfui-9-instructions_size_big .mfui-9-instructions__swiper{height:426px;width:196px}}.mfui-9-instructions_mask_android-cropped .mfui-9-instructions__img-wrapper,.mfui-9-instructions_mask_iphone-cropped .mfui-9-instructions__img-wrapper{height:420px;min-height:420px}.mfui-9-instructions_mask_android-cropped .mfui-9-instructions__img-wrapper:before,.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_android-cropped .mfui-9-instructions__device-screen,.mfui-9-instructions_mask_iphone-cropped .mfui-9-instructions__device-screen{background:50% no-repeat;background-size:contain;height:490px;margin-top:20px;position:relative;width:100%;z-index:1}.mfui-9-instructions_mask_android-cropped .mfui-9-instructions__swiper,.mfui-9-instructions_mask_iphone-cropped .mfui-9-instructions__swiper{left:0;margin:auto;overflow:hidden;position:absolute;right:0;top:28px;width:218px}.mfui-9-instructions_mask_android-cropped .mfui-9-instructions__qr-code,.mfui-9-instructions_mask_iphone-cropped .mfui-9-instructions__qr-code{left:61.2%;top:8px}.mfui-9-instructions_mask_android-cropped .mfui-9-instructions__device-screen{background-image:url(img/android.png)}.mfui-9-instructions_mask_android-cropped.mfui-9-instructions_size_big .mfui-9-instructions__picture,.mfui-9-instructions_mask_iphone-cropped.mfui-9-instructions_size_big .mfui-9-instructions__picture{max-height:659px;max-width:832px;width:100%}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-9-instructions_mask_android-cropped.mfui-9-instructions_size_big .mfui-9-instructions__picture,.mfui-9-instructions_mask_iphone-cropped.mfui-9-instructions_size_big .mfui-9-instructions__picture{max-height:511px;max-width:645px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions_mask_android-cropped.mfui-9-instructions_size_big .mfui-9-instructions__picture,.mfui-9-instructions_mask_iphone-cropped.mfui-9-instructions_size_big .mfui-9-instructions__picture{max-height:532px;max-width:672px}}@media screen and (max-width:767px){.mfui-9-instructions_mask_android-cropped.mfui-9-instructions_size_big .mfui-9-instructions__picture,.mfui-9-instructions_mask_iphone-cropped.mfui-9-instructions_size_big .mfui-9-instructions__picture{max-height:490px;max-width:530px}}.mfui-9-instructions_mask_android-cropped.mfui-9-instructions_size_big .mfui-9-instructions__img-wrapper,.mfui-9-instructions_mask_iphone-cropped.mfui-9-instructions_size_big .mfui-9-instructions__img-wrapper{height:659px;min-height:659px}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-9-instructions_mask_android-cropped.mfui-9-instructions_size_big .mfui-9-instructions__img-wrapper,.mfui-9-instructions_mask_iphone-cropped.mfui-9-instructions_size_big .mfui-9-instructions__img-wrapper{height:511px;min-height:511px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions_mask_android-cropped.mfui-9-instructions_size_big .mfui-9-instructions__img-wrapper,.mfui-9-instructions_mask_iphone-cropped.mfui-9-instructions_size_big .mfui-9-instructions__img-wrapper{height:532px;min-height:532px}}@media screen and (max-width:767px){.mfui-9-instructions_mask_android-cropped.mfui-9-instructions_size_big .mfui-9-instructions__img-wrapper,.mfui-9-instructions_mask_iphone-cropped.mfui-9-instructions_size_big .mfui-9-instructions__img-wrapper{height:420px;min-height:420px}}.mfui-9-instructions_mask_android-cropped.mfui-9-instructions_size_big .mfui-9-instructions__img-wrapper:before,.mfui-9-instructions_mask_iphone-cropped.mfui-9-instructions_size_big .mfui-9-instructions__img-wrapper:before{width:380px}.mfui-9-instructions_mask_android-cropped.mfui-9-instructions_size_big .mfui-9-instructions__device-screen,.mfui-9-instructions_mask_iphone-cropped.mfui-9-instructions_size_big .mfui-9-instructions__device-screen{background-size:384px 759px;height:759px;margin-top:31px}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-9-instructions_mask_android-cropped.mfui-9-instructions_size_big .mfui-9-instructions__device-screen,.mfui-9-instructions_mask_iphone-cropped.mfui-9-instructions_size_big .mfui-9-instructions__device-screen{background-size:298px 576px;height:576px;margin-top:25px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions_mask_android-cropped.mfui-9-instructions_size_big .mfui-9-instructions__device-screen,.mfui-9-instructions_mask_iphone-cropped.mfui-9-instructions_size_big .mfui-9-instructions__device-screen{background-size:310px 621px;height:621px;margin-top:25px}}@media screen and (max-width:767px){.mfui-9-instructions_mask_android-cropped.mfui-9-instructions_size_big .mfui-9-instructions__device-screen,.mfui-9-instructions_mask_iphone-cropped.mfui-9-instructions_size_big .mfui-9-instructions__device-screen{background-size:241px 490px;height:490px;margin-top:20px}}.mfui-9-instructions_mask_android-cropped.mfui-9-instructions_size_big .mfui-9-instructions__swiper,.mfui-9-instructions_mask_iphone-cropped.mfui-9-instructions_size_big .mfui-9-instructions__swiper{top:45px;width:348px}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-9-instructions_mask_android-cropped.mfui-9-instructions_size_big .mfui-9-instructions__swiper,.mfui-9-instructions_mask_iphone-cropped.mfui-9-instructions_size_big .mfui-9-instructions__swiper{top:37px;width:276px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions_mask_android-cropped.mfui-9-instructions_size_big .mfui-9-instructions__swiper,.mfui-9-instructions_mask_iphone-cropped.mfui-9-instructions_size_big .mfui-9-instructions__swiper{top:38px;width:282px}}@media screen and (max-width:767px){.mfui-9-instructions_mask_android-cropped.mfui-9-instructions_size_big .mfui-9-instructions__swiper,.mfui-9-instructions_mask_iphone-cropped.mfui-9-instructions_size_big .mfui-9-instructions__swiper{top:28px;width:218px}}.mfui-9-instructions_mask_android-cropped.mfui-9-instructions_size_big .mfui-9-instructions__qr-code,.mfui-9-instructions_mask_iphone-cropped.mfui-9-instructions_size_big .mfui-9-instructions__qr-code{left:66%}.mfui-9-instructions_mask_iphone .mfui-9-instructions__device-screen{background-image:url(img/iphone.png)}.mfui-9-instructions_mask_iphone.mfui-9-instructions_size_big .mfui-9-instructions__swiper{border-radius:40px}.mfui-9-instructions_mask_iphone-cropped .mfui-9-instructions__device-screen{background-image:url(img/iphone.png)}.mfui-9-instructions_mask_iphone-cropped .mfui-9-instructions__swiper{border-radius:24px}@media screen 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:58.9%}}.mfui-9-instructions_mask_laptop .mfui-9-instructions__img-wrapper:before{display:none}.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: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 .mfui-9-instructions__swiper{max-width:415px;top:7px}}@media screen and (max-width:479px){.mfui-9-instructions_mask_laptop .mfui-9-instructions__swiper{max-width:302px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions_mask_laptop .mfui-9-instructions__swiper{top:12px}}@media screen and (min-width:1024px){.mfui-9-instructions_mask_laptop .mfui-9-instructions__swiper{top:50%;-webkit-transform:translate(-49.5%,-55%);transform:translate(-49.5%,-55%)}}.mfui-9-instructions_mask_laptop.mfui-9-instructions_size_big .mfui-9-instructions__picture{max-height:487px;max-width:832px;width:100%}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-9-instructions_mask_laptop.mfui-9-instructions_size_big .mfui-9-instructions__picture{max-width:100%;min-width:514px;width:66%}}@media screen and (max-width:1023px){.mfui-9-instructions_mask_laptop.mfui-9-instructions_size_big .mfui-9-instructions__picture{max-height:393px;max-width:672px}}.mfui-9-instructions_mask_laptop.mfui-9-instructions_size_big .mfui-9-instructions__img-wrapper{height:487px}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-instructions_mask_laptop.mfui-9-instructions_size_big .mfui-9-instructions__img-wrapper{height:393px;padding-bottom:393px}}@media screen and (max-width:767px){.mfui-9-instructions_mask_laptop.mfui-9-instructions_size_big .mfui-9-instructions__img-wrapper{height:0}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-9-instructions_mask_laptop.mfui-9-instructions_size_big .mfui-9-instructions__swiper{max-width:514px}}@media screen and (max-width:1023px){.mfui-9-instructions_mask_laptop.mfui-9-instructions_size_big .mfui-9-instructions__swiper{max-width:672px}}.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_base,.mfui-9-instructions__picture_background_spbSky0,.mfui-9-instructions__picture_background_spbSky1,.mfui-9-instructions__picture_background_transparent,.mfui-9-instructions__picture_background_violet{border-radius:24px}.mfui-9-instructions__picture_background_base .mfui-9-instructions__img-wrapper:before,.mfui-9-instructions__picture_background_spbSky0 .mfui-9-instructions__img-wrapper:before,.mfui-9-instructions__picture_background_spbSky1 .mfui-9-instructions__img-wrapper:before,.mfui-9-instructions__picture_background_transparent .mfui-9-instructions__img-wrapper:before,.mfui-9-instructions__picture_background_violet .mfui-9-instructions__img-wrapper:before{display:none}.mfui-9-instructions__picture_background_spbSky0{background-color:var(--spbSky0)}.mfui-9-instructions__picture_background_spbSky1{background-color:var(--spbSky1)}.mfui-9-instructions__picture_background_base{background-color:var(--base)}.mfui-9-instructions__picture_background_violet{background-color:#e1dcea}.mfui-9-instructions__picture_background_transparent{background-color:transparent}.mfui-9-instructions__picture_overlay_logo-base,.mfui-9-instructions__picture_overlay_logo-cropped-base-with-opacity,.mfui-9-instructions__picture_overlay_logo-cropped-spb-sky-3,.mfui-9-instructions__picture_overlay_logo-spb-sky-0{background-position:50%;background-repeat:no-repeat;background-size:contain}.mfui-9-instructions__picture_overlay_logo-base{background-image:url(img/logo-base.png)}.mfui-9-instructions__picture_overlay_logo-spb-sky-0{background-image:url(img/logo-spb-sky-0.png)}.mfui-9-instructions__picture_overlay_logo-cropped-base-with-opacity{background-image:url(img/logo-cropped-base-with-opacity.png)}.mfui-9-instructions__picture_overlay_logo-cropped-spb-sky-3{background-image:url(img/logo-cropped-spb-sky-3.png)}.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}}.mfui-9-instructions_reversed.mfui-9-instructions_size_big .mfui-9-instructions__picture{max-height:100%}
|
|
@@ -13,18 +13,28 @@ export declare const pictureVerticalAlignTypes: {
|
|
|
13
13
|
export declare const pictureMaskTypes: {
|
|
14
14
|
readonly ANDROID: "android";
|
|
15
15
|
readonly ANDROID_CROPPED: "android-cropped";
|
|
16
|
-
readonly
|
|
17
|
-
readonly BLACK_IPHONE: "black-iphone";
|
|
18
|
-
readonly WHITE_IPHONE: "white-iphone";
|
|
19
|
-
readonly LAPTOP: "laptop";
|
|
20
|
-
readonly LAPTOP_NEW: "laptop-new";
|
|
21
|
-
readonly IPHONE_12: "iphone-12";
|
|
22
|
-
readonly IPHONE_15: "iphone-15";
|
|
16
|
+
readonly IPHONE: "iphone";
|
|
23
17
|
readonly IPHONE_CROPPED: "iphone-cropped";
|
|
18
|
+
readonly LAPTOP: "laptop";
|
|
24
19
|
readonly NONE: "none";
|
|
25
20
|
};
|
|
26
21
|
export declare const pictureBackgroundColorTypes: {
|
|
27
22
|
readonly SPB_SKY_0: "spbSky0";
|
|
23
|
+
readonly SPB_SKY_1: "spbSky1";
|
|
24
|
+
readonly BASE: "base";
|
|
25
|
+
readonly VIOLET: "violet";
|
|
26
|
+
readonly TRANSPARENT: "transparent";
|
|
27
|
+
};
|
|
28
|
+
export declare const pictureOverlayTypes: {
|
|
29
|
+
readonly LOGO_BASE: "logo-base";
|
|
30
|
+
readonly LOGO_SPB_SKY_0: "logo-spb-sky-0";
|
|
31
|
+
readonly LOGO_CROPPED_BASE_WITH_OPACITY: "logo-cropped-base-with-opacity";
|
|
32
|
+
readonly LOGO_CROPPED_SPB_SKY_3: "logo-cropped-spb-sky-3";
|
|
33
|
+
readonly NONE: "none";
|
|
34
|
+
};
|
|
35
|
+
export declare const sizeTypes: {
|
|
36
|
+
readonly DEFAULT: "default";
|
|
37
|
+
readonly BIG: "big";
|
|
28
38
|
};
|
|
29
39
|
export declare const arrowTheme: {
|
|
30
40
|
readonly PURPLE: "purple";
|
|
@@ -38,6 +48,8 @@ type PictureAlignTypesType = (typeof pictureAlignTypes)[keyof typeof pictureAlig
|
|
|
38
48
|
type PictureVerticalAlignTypesType = (typeof pictureVerticalAlignTypes)[keyof typeof pictureVerticalAlignTypes];
|
|
39
49
|
type PictureMaskTypesType = (typeof pictureMaskTypes)[keyof typeof pictureMaskTypes];
|
|
40
50
|
type PictureBackgroundColorsType = (typeof pictureBackgroundColorTypes)[keyof typeof pictureBackgroundColorTypes];
|
|
51
|
+
export type PictureOverlayType = (typeof pictureOverlayTypes)[keyof typeof pictureOverlayTypes];
|
|
52
|
+
type SizeType = (typeof sizeTypes)[keyof typeof sizeTypes];
|
|
41
53
|
type ArrowThemeType = (typeof arrowTheme)[keyof typeof arrowTheme];
|
|
42
54
|
type ElementOrderType = (typeof elementOrderTypes)[keyof typeof elementOrderTypes];
|
|
43
55
|
export type InstructionItemType = {
|
|
@@ -101,6 +113,10 @@ export interface IInstructionsProps {
|
|
|
101
113
|
pictureMask?: PictureMaskTypesType;
|
|
102
114
|
/** Цвет фона изображения */
|
|
103
115
|
pictureBackgroundColor?: PictureBackgroundColorsType;
|
|
116
|
+
/** * Оверлей поверх цвета фона */
|
|
117
|
+
pictureOverlay?: PictureOverlayType;
|
|
118
|
+
/** Размер картинки или маски */
|
|
119
|
+
size?: SizeType;
|
|
104
120
|
/** Показать стрелки для смены пунктов инструкции */
|
|
105
121
|
showArrows?: boolean;
|
|
106
122
|
/** Цветовая тема стрелок навигации */
|
|
@@ -17,7 +17,7 @@ try {
|
|
|
17
17
|
SwiperSlide = SwiperAll.SwiperSlide;
|
|
18
18
|
} catch (e) {
|
|
19
19
|
// eslint-disable-next-line no-console
|
|
20
|
-
console.warn("\n WARNING: megafon/ui-share is using the latest version of swiper
|
|
20
|
+
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 ");
|
|
21
21
|
}
|
|
22
22
|
export var pictureAlignTypes = {
|
|
23
23
|
LEFT: 'left',
|
|
@@ -31,18 +31,28 @@ export var pictureVerticalAlignTypes = {
|
|
|
31
31
|
export var pictureMaskTypes = {
|
|
32
32
|
ANDROID: 'android',
|
|
33
33
|
ANDROID_CROPPED: 'android-cropped',
|
|
34
|
-
|
|
35
|
-
BLACK_IPHONE: 'black-iphone',
|
|
36
|
-
WHITE_IPHONE: 'white-iphone',
|
|
37
|
-
LAPTOP: 'laptop',
|
|
38
|
-
LAPTOP_NEW: 'laptop-new',
|
|
39
|
-
IPHONE_12: 'iphone-12',
|
|
40
|
-
IPHONE_15: 'iphone-15',
|
|
34
|
+
IPHONE: 'iphone',
|
|
41
35
|
IPHONE_CROPPED: 'iphone-cropped',
|
|
36
|
+
LAPTOP: 'laptop',
|
|
42
37
|
NONE: 'none'
|
|
43
38
|
};
|
|
44
39
|
export var pictureBackgroundColorTypes = {
|
|
45
|
-
SPB_SKY_0: 'spbSky0'
|
|
40
|
+
SPB_SKY_0: 'spbSky0',
|
|
41
|
+
SPB_SKY_1: 'spbSky1',
|
|
42
|
+
BASE: 'base',
|
|
43
|
+
VIOLET: 'violet',
|
|
44
|
+
TRANSPARENT: 'transparent'
|
|
45
|
+
};
|
|
46
|
+
export var pictureOverlayTypes = {
|
|
47
|
+
LOGO_BASE: 'logo-base',
|
|
48
|
+
LOGO_SPB_SKY_0: 'logo-spb-sky-0',
|
|
49
|
+
LOGO_CROPPED_BASE_WITH_OPACITY: 'logo-cropped-base-with-opacity',
|
|
50
|
+
LOGO_CROPPED_SPB_SKY_3: 'logo-cropped-spb-sky-3',
|
|
51
|
+
NONE: 'none'
|
|
52
|
+
};
|
|
53
|
+
export var sizeTypes = {
|
|
54
|
+
DEFAULT: 'default',
|
|
55
|
+
BIG: 'big'
|
|
46
56
|
};
|
|
47
57
|
export var arrowTheme = {
|
|
48
58
|
PURPLE: 'purple',
|
|
@@ -80,7 +90,12 @@ var Instructions = function Instructions(_ref) {
|
|
|
80
90
|
pictureVerticalAlign = _ref$pictureVerticalA === void 0 ? 'center' : _ref$pictureVerticalA,
|
|
81
91
|
_ref$pictureMask = _ref.pictureMask,
|
|
82
92
|
pictureMask = _ref$pictureMask === void 0 ? 'none' : _ref$pictureMask,
|
|
83
|
-
|
|
93
|
+
_ref$pictureBackgroun = _ref.pictureBackgroundColor,
|
|
94
|
+
pictureBackgroundColor = _ref$pictureBackgroun === void 0 ? 'transparent' : _ref$pictureBackgroun,
|
|
95
|
+
_ref$pictureOverlay = _ref.pictureOverlay,
|
|
96
|
+
pictureOverlay = _ref$pictureOverlay === void 0 ? 'none' : _ref$pictureOverlay,
|
|
97
|
+
_ref$size = _ref.size,
|
|
98
|
+
size = _ref$size === void 0 ? 'default' : _ref$size,
|
|
84
99
|
getSwiper = _ref.getSwiper,
|
|
85
100
|
text = _ref.additionalText,
|
|
86
101
|
showArrows = _ref.showArrows,
|
|
@@ -240,24 +255,23 @@ var Instructions = function Instructions(_ref) {
|
|
|
240
255
|
"data-testid": "".concat(testIdPrefix, "-articles-list-desktop")
|
|
241
256
|
}, instructionItems.map(function (_ref5, i) {
|
|
242
257
|
var itemTitle = _ref5.title;
|
|
243
|
-
return (
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
);
|
|
258
|
+
return /*#__PURE__*/React.createElement("li", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.item, i + 1), {
|
|
259
|
+
className: cn('articles-item', {
|
|
260
|
+
active: slideIndex === i
|
|
261
|
+
}, [getActiveCustomClass(i, slideIndex), instructionItem, desktopInstructionItem]),
|
|
262
|
+
"data-index": i,
|
|
263
|
+
key: i
|
|
264
|
+
}), /*#__PURE__*/React.createElement("button", {
|
|
265
|
+
className: cn('articles-item-button'),
|
|
266
|
+
type: "button",
|
|
267
|
+
onClick: handleArticleClick(i)
|
|
268
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
269
|
+
className: cn('articles-item-dot')
|
|
270
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
271
|
+
className: cn('articles-item-dot-number')
|
|
272
|
+
}, i + 1)), /*#__PURE__*/React.createElement("div", {
|
|
273
|
+
className: cn('articles-item-title', [desktopItemTitle])
|
|
274
|
+
}, itemTitle)));
|
|
261
275
|
}));
|
|
262
276
|
}, [desktopInstructionItem, desktopItemTitle, getActiveCustomClass, handleArticleClick, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.item, instructionItem, instructionItems, slideIndex, text]);
|
|
263
277
|
var renderMobileArticles = React.useCallback(function () {
|
|
@@ -334,7 +348,8 @@ var Instructions = function Instructions(_ref) {
|
|
|
334
348
|
return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
|
335
349
|
className: cn({
|
|
336
350
|
mask: pictureMask,
|
|
337
|
-
reversed: isMobileReversed
|
|
351
|
+
reversed: isMobileReversed,
|
|
352
|
+
size: size
|
|
338
353
|
}),
|
|
339
354
|
ref: rootRef
|
|
340
355
|
}), /*#__PURE__*/React.createElement(Grid, {
|
|
@@ -348,7 +363,8 @@ var Instructions = function Instructions(_ref) {
|
|
|
348
363
|
}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.wrapper)), /*#__PURE__*/React.createElement("div", {
|
|
349
364
|
className: cn('picture', {
|
|
350
365
|
align: pictureAlign,
|
|
351
|
-
background: pictureBackgroundColor
|
|
366
|
+
background: pictureBackgroundColor,
|
|
367
|
+
overlay: pictureOverlay
|
|
352
368
|
}),
|
|
353
369
|
"data-testid": "".concat(testIdPrefix, "-picture")
|
|
354
370
|
}, isMobileReversed && renderMobileArticles(), renderPicture(), !!showArrows && renderArrows(), renderQrCode()), renderMobileDots(), /*#__PURE__*/React.createElement("div", {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -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) */
|
|
@@ -3,8 +3,9 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
import "core-js/modules/es.array.map.js";
|
|
4
4
|
import "core-js/modules/es.array.slice.js";
|
|
5
5
|
import * as React from 'react';
|
|
6
|
-
import {
|
|
6
|
+
import { Carousel } from '@megafon/ui-core';
|
|
7
7
|
import { breakpoints, cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
|
8
|
+
import PartnersItem from "./components/PartnersItem/PartnersItem";
|
|
8
9
|
import "./Partners.css";
|
|
9
10
|
var MAX_GRID_ITEMS_LENGTH = 8;
|
|
10
11
|
var slidesSettings = _defineProperty(_defineProperty(_defineProperty({}, breakpoints.MOBILE_SMALL_START, {
|
|
@@ -29,50 +30,38 @@ var Partners = function Partners(_ref) {
|
|
|
29
30
|
dataAttrs = _ref.dataAttrs,
|
|
30
31
|
className = _ref.className,
|
|
31
32
|
items = _ref.items,
|
|
32
|
-
_ref$
|
|
33
|
-
|
|
33
|
+
_ref$background = _ref.background,
|
|
34
|
+
background = _ref$background === void 0 ? 'shadow' : _ref$background,
|
|
34
35
|
onChange = _ref.onChange,
|
|
35
36
|
onNextClick = _ref.onNextClick,
|
|
36
37
|
onPrevClick = _ref.onPrevClick;
|
|
37
|
-
var renderItem = React.useCallback(function (item) {
|
|
38
|
-
var index = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
38
|
+
var renderItem = React.useCallback(function (item, index) {
|
|
39
39
|
if (!item) {
|
|
40
40
|
return null;
|
|
41
41
|
}
|
|
42
42
|
var src = item.src,
|
|
43
|
-
href = item.href,
|
|
44
43
|
alt = item.alt,
|
|
45
|
-
rel = item.rel
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
rel = item.rel,
|
|
45
|
+
href = item.href;
|
|
46
|
+
return /*#__PURE__*/React.createElement(PartnersItem, {
|
|
47
|
+
className: itemClass,
|
|
48
|
+
src: src,
|
|
49
|
+
alt: alt,
|
|
48
50
|
rel: rel,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
isInteractive: !!href,
|
|
52
|
-
className: cn('tile'),
|
|
51
|
+
href: href,
|
|
52
|
+
background: background,
|
|
53
53
|
dataAttrs: {
|
|
54
54
|
root: _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.item, index + 1))
|
|
55
55
|
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
"data-testid": "".concat(testIdPrefix, "-tile-inner")
|
|
59
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
60
|
-
className: cn('img-wrapper')
|
|
61
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
62
|
-
src: src,
|
|
63
|
-
alt: alt,
|
|
64
|
-
className: cn('tile-img')
|
|
65
|
-
}))));
|
|
66
|
-
}, [radius, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.item, itemClass]);
|
|
56
|
+
});
|
|
57
|
+
}, [background, dataAttrs, itemClass]);
|
|
67
58
|
var renderGrid = React.useCallback(function () {
|
|
68
|
-
return /*#__PURE__*/React.createElement(
|
|
69
|
-
|
|
70
|
-
guttersBottom: "medium"
|
|
59
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
60
|
+
className: cn('grid')
|
|
71
61
|
}, items.map(function (item, i) {
|
|
72
|
-
return /*#__PURE__*/React.createElement(
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
mobile: "6"
|
|
62
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
63
|
+
className: cn('grid-item'),
|
|
64
|
+
key: i + item.src
|
|
76
65
|
}, renderItem(item, i));
|
|
77
66
|
}));
|
|
78
67
|
}, [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;
|