@megafon/ui-shared 9.0.0-alpha.2 → 9.0.0-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/AccordionBox/AccordionBox.d.ts +3 -1
- package/dist/es/components/BenefitCards/BenefitCard/BenefitCard.css +1 -0
- package/dist/es/components/BenefitCards/BenefitCard/BenefitCard.d.ts +13 -0
- package/dist/es/components/BenefitCards/BenefitCard/BenefitCard.js +59 -0
- package/dist/es/components/BenefitCards/BenefitCards.css +1 -0
- package/dist/es/components/BenefitCards/BenefitCards.d.ts +27 -0
- package/dist/es/components/BenefitCards/BenefitCards.js +35 -0
- package/dist/es/components/BenefitCards/helpers.d.ts +1 -0
- package/dist/es/components/BenefitCards/helpers.js +19 -0
- package/dist/es/components/BenefitCards/types.d.ts +24 -0
- package/dist/es/components/BenefitCards/types.js +1 -0
- package/dist/es/components/BlogBox/BlogBox.d.ts +3 -0
- package/dist/es/components/BlogBox/BlogBox.js +8 -3
- package/dist/es/components/BlogBox/components/BlogBoxTile.css +1 -1
- package/dist/es/components/BlogBox/components/BlogBoxTile.d.ts +5 -1
- package/dist/es/components/BlogBox/components/BlogBoxTile.js +3 -2
- package/dist/es/components/Breadcrumbs/Breadcrumbs.d.ts +2 -0
- package/dist/es/components/Breadcrumbs/Breadcrumbs.js +3 -0
- package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.d.ts +1 -0
- package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.js +18 -13
- package/dist/es/components/Card/Card.css +1 -1
- package/dist/es/components/Card/Card.d.ts +2 -1
- package/dist/es/components/Card/Card.js +23 -16
- package/dist/es/components/Card/types.d.ts +3 -5
- package/dist/es/components/CardsOnBackground/CardsOnBackground.css +1 -0
- package/dist/es/components/CardsOnBackground/CardsOnBackground.d.ts +34 -0
- package/dist/es/components/CardsOnBackground/CardsOnBackground.js +99 -0
- package/dist/es/components/CardsOnBackground/components/CardOnBackground.css +1 -0
- package/dist/es/components/CardsOnBackground/components/CardOnBackground.d.ts +22 -0
- package/dist/es/components/CardsOnBackground/components/CardOnBackground.js +94 -0
- package/dist/es/components/CardsOnBackground/types.d.ts +42 -0
- package/dist/es/components/CardsOnBackground/types.js +6 -0
- package/dist/es/components/CardsOnBackground/useUniformHeights.d.ts +9 -0
- package/dist/es/components/CardsOnBackground/useUniformHeights.js +88 -0
- package/dist/es/components/Container/Container.css +1 -1
- package/dist/es/components/Container/Container.d.ts +4 -0
- package/dist/es/components/Container/Container.js +4 -1
- package/dist/es/components/DarkGradientCards/DarkGradientCards.d.ts +5 -0
- package/dist/es/components/DarkGradientCards/DarkGradientCards.js +9 -4
- package/dist/es/components/DarkGradientCards/components/DarkGradientCard.css +1 -1
- package/dist/es/components/DarkGradientCards/components/DarkGradientCard.d.ts +1 -0
- package/dist/es/components/DarkGradientCards/components/DarkGradientCard.js +1 -1
- package/dist/es/components/DownloadLinks/DownloadLink.css +1 -1
- package/dist/es/components/DownloadLinks/DownloadLink.js +3 -1
- package/dist/es/components/InfoCards/components/InfoCard/InfoCard.css +1 -1
- package/dist/es/components/InfoCards/components/InfoCard/InfoCard.js +4 -2
- package/dist/es/components/Instructions/Instructions.css +1 -1
- package/dist/es/components/Instructions/Instructions.d.ts +0 -2
- package/dist/es/components/Instructions/Instructions.js +19 -22
- package/dist/es/components/NotificationBox/NotificationBox.d.ts +1 -1
- package/dist/es/components/NotificationBox/NotificationBox.js +1 -4
- package/dist/es/components/Partners/Partners.css +1 -1
- package/dist/es/components/Partners/Partners.d.ts +3 -8
- package/dist/es/components/Partners/Partners.js +20 -31
- package/dist/es/components/Partners/components/PartnersItem/PartnersItem.css +1 -0
- package/dist/es/components/Partners/components/PartnersItem/PartnersItem.d.ts +12 -0
- package/dist/es/components/Partners/components/PartnersItem/PartnersItem.js +33 -0
- package/dist/es/components/Partners/types.d.ts +7 -0
- package/dist/es/components/Partners/types.js +1 -0
- package/dist/es/components/PictureBox/PictureBox.d.ts +1 -0
- package/dist/es/components/PictureBox/PictureBox.js +2 -0
- package/dist/es/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.d.ts +2 -0
- package/dist/es/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.js +2 -0
- package/dist/es/components/PromoCards/PromoCards.d.ts +3 -0
- package/dist/es/components/PromoCards/PromoCards.js +6 -1
- package/dist/es/components/PromoCards/components/PromoCard/PromoCard.css +1 -1
- package/dist/es/components/PromoCards/components/PromoCard/PromoCard.d.ts +2 -0
- package/dist/es/components/PromoCards/components/PromoCard/PromoCard.js +17 -9
- package/dist/es/components/ServiceCards/components/ServiceCard/ServiceCard.css +1 -1
- package/dist/es/components/ServiceCards/components/ServiceCard/ServiceCard.js +1 -1
- package/dist/es/components/SidePictureCards/SidePictureCards.d.ts +5 -0
- package/dist/es/components/SidePictureCards/SidePictureCards.js +5 -2
- package/dist/es/components/SidePictureCards/components/SidePictureCard.d.ts +2 -0
- package/dist/es/components/SidePictureCards/components/SidePictureCard.js +8 -3
- package/dist/es/components/SidePictureCards/types.d.ts +3 -1
- package/dist/es/components/StepperBox/StepperBox.d.ts +11 -0
- package/dist/es/components/StepperBox/StepperBox.js +36 -0
- package/dist/es/components/Steps/Steps.css +1 -1
- package/dist/es/components/Steps/Steps.d.ts +2 -2
- package/dist/es/components/Steps/Steps.js +1 -1
- package/dist/es/components/StoreBanner/StoreBanner.css +1 -1
- package/dist/es/components/StoreBanner/StoreBanner.d.ts +1 -5
- package/dist/es/components/StoreBanner/StoreBanner.js +1 -5
- package/dist/es/components/StoreButton/StoreButton.css +1 -1
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.css +1 -1
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +27 -1
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.js +31 -24
- package/dist/es/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/dist/es/hooks/useIsomorphicLayoutEffect.js +6 -0
- package/dist/es/index.d.ts +7 -2
- package/dist/es/index.js +7 -2
- package/dist/lib/components/AccordionBox/AccordionBox.d.ts +3 -1
- package/dist/lib/components/BenefitCards/BenefitCard/BenefitCard.css +1 -0
- package/dist/lib/components/BenefitCards/BenefitCard/BenefitCard.d.ts +13 -0
- package/dist/lib/components/BenefitCards/BenefitCard/BenefitCard.js +68 -0
- package/dist/lib/components/BenefitCards/BenefitCards.css +1 -0
- package/dist/lib/components/BenefitCards/BenefitCards.d.ts +27 -0
- package/dist/lib/components/BenefitCards/BenefitCards.js +44 -0
- package/dist/lib/components/BenefitCards/helpers.d.ts +1 -0
- package/dist/lib/components/BenefitCards/helpers.js +26 -0
- package/dist/lib/components/BenefitCards/types.d.ts +24 -0
- package/dist/lib/components/BenefitCards/types.js +5 -0
- package/dist/lib/components/BlogBox/BlogBox.d.ts +3 -0
- package/dist/lib/components/BlogBox/BlogBox.js +8 -3
- package/dist/lib/components/BlogBox/components/BlogBoxTile.css +1 -1
- package/dist/lib/components/BlogBox/components/BlogBoxTile.d.ts +5 -1
- package/dist/lib/components/BlogBox/components/BlogBoxTile.js +3 -2
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.d.ts +2 -0
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.js +3 -0
- package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.d.ts +1 -0
- package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.js +18 -13
- package/dist/lib/components/Card/Card.css +1 -1
- package/dist/lib/components/Card/Card.d.ts +2 -1
- package/dist/lib/components/Card/Card.js +22 -15
- package/dist/lib/components/Card/types.d.ts +3 -5
- package/dist/lib/components/CardsOnBackground/CardsOnBackground.css +1 -0
- package/dist/lib/components/CardsOnBackground/CardsOnBackground.d.ts +34 -0
- package/dist/lib/components/CardsOnBackground/CardsOnBackground.js +108 -0
- package/dist/lib/components/CardsOnBackground/components/CardOnBackground.css +1 -0
- package/dist/lib/components/CardsOnBackground/components/CardOnBackground.d.ts +22 -0
- package/dist/lib/components/CardsOnBackground/components/CardOnBackground.js +100 -0
- package/dist/lib/components/CardsOnBackground/types.d.ts +42 -0
- package/dist/lib/components/CardsOnBackground/types.js +12 -0
- package/dist/lib/components/CardsOnBackground/useUniformHeights.d.ts +9 -0
- package/dist/lib/components/CardsOnBackground/useUniformHeights.js +95 -0
- package/dist/lib/components/Container/Container.css +1 -1
- package/dist/lib/components/Container/Container.d.ts +4 -0
- package/dist/lib/components/Container/Container.js +4 -1
- package/dist/lib/components/DarkGradientCards/DarkGradientCards.d.ts +5 -0
- package/dist/lib/components/DarkGradientCards/DarkGradientCards.js +9 -4
- package/dist/lib/components/DarkGradientCards/components/DarkGradientCard.css +1 -1
- package/dist/lib/components/DarkGradientCards/components/DarkGradientCard.d.ts +1 -0
- package/dist/lib/components/DarkGradientCards/components/DarkGradientCard.js +1 -1
- package/dist/lib/components/DownloadLinks/DownloadLink.css +1 -1
- package/dist/lib/components/DownloadLinks/DownloadLink.js +3 -1
- package/dist/lib/components/InfoCards/components/InfoCard/InfoCard.css +1 -1
- package/dist/lib/components/InfoCards/components/InfoCard/InfoCard.js +4 -2
- package/dist/lib/components/Instructions/Instructions.css +1 -1
- package/dist/lib/components/Instructions/Instructions.d.ts +0 -2
- package/dist/lib/components/Instructions/Instructions.js +19 -21
- package/dist/lib/components/NotificationBox/NotificationBox.d.ts +1 -1
- package/dist/lib/components/NotificationBox/NotificationBox.js +1 -5
- package/dist/lib/components/Partners/Partners.css +1 -1
- package/dist/lib/components/Partners/Partners.d.ts +3 -8
- package/dist/lib/components/Partners/Partners.js +19 -30
- package/dist/lib/components/Partners/components/PartnersItem/PartnersItem.css +1 -0
- package/dist/lib/components/Partners/components/PartnersItem/PartnersItem.d.ts +12 -0
- package/dist/lib/components/Partners/components/PartnersItem/PartnersItem.js +42 -0
- package/dist/lib/components/Partners/types.d.ts +7 -0
- package/dist/lib/components/Partners/types.js +5 -0
- package/dist/lib/components/PictureBox/PictureBox.d.ts +1 -0
- package/dist/lib/components/PictureBox/PictureBox.js +2 -0
- package/dist/lib/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.d.ts +2 -0
- package/dist/lib/components/PromoBanner/components/PromoBannerSlide/PromoBannerSlide.js +2 -0
- package/dist/lib/components/PromoCards/PromoCards.d.ts +3 -0
- package/dist/lib/components/PromoCards/PromoCards.js +6 -1
- package/dist/lib/components/PromoCards/components/PromoCard/PromoCard.css +1 -1
- package/dist/lib/components/PromoCards/components/PromoCard/PromoCard.d.ts +2 -0
- package/dist/lib/components/PromoCards/components/PromoCard/PromoCard.js +16 -9
- package/dist/lib/components/ServiceCards/components/ServiceCard/ServiceCard.css +1 -1
- package/dist/lib/components/ServiceCards/components/ServiceCard/ServiceCard.js +1 -1
- package/dist/lib/components/SidePictureCards/SidePictureCards.d.ts +5 -0
- package/dist/lib/components/SidePictureCards/SidePictureCards.js +5 -2
- package/dist/lib/components/SidePictureCards/components/SidePictureCard.d.ts +2 -0
- package/dist/lib/components/SidePictureCards/components/SidePictureCard.js +8 -3
- package/dist/lib/components/SidePictureCards/types.d.ts +3 -1
- package/dist/lib/components/StepperBox/StepperBox.d.ts +11 -0
- package/dist/lib/components/StepperBox/StepperBox.js +46 -0
- package/dist/lib/components/Steps/Steps.css +1 -1
- package/dist/lib/components/Steps/Steps.d.ts +2 -2
- package/dist/lib/components/Steps/Steps.js +1 -1
- package/dist/lib/components/StoreBanner/StoreBanner.css +1 -1
- package/dist/lib/components/StoreBanner/StoreBanner.d.ts +1 -5
- package/dist/lib/components/StoreBanner/StoreBanner.js +1 -5
- package/dist/lib/components/StoreButton/StoreButton.css +1 -1
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.css +1 -1
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +27 -1
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.js +30 -23
- package/dist/lib/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/dist/lib/hooks/useIsomorphicLayoutEffect.js +13 -0
- package/dist/lib/index.d.ts +7 -2
- package/dist/lib/index.js +45 -10
- package/package.json +6 -6
- package/dist/es/components/Stepper/Stepper.css +0 -1
- package/dist/es/components/Stepper/Stepper.d.ts +0 -52
- package/dist/es/components/Stepper/Stepper.js +0 -159
- package/dist/es/components/Stepper/StepperItem.css +0 -1
- package/dist/es/components/Stepper/StepperItem.d.ts +0 -57
- package/dist/es/components/Stepper/StepperItem.js +0 -99
- package/dist/es/components/Stepper/img/separator-mobile.png +0 -0
- package/dist/es/components/Stepper/img/separator-vertical.png +0 -0
- package/dist/es/components/Stepper/img/separator.png +0 -0
- package/dist/es/components/StoreBanner/img/black-iphone.png +0 -0
- package/dist/es/components/StoreBanner/img/iphone12.png +0 -0
- package/dist/es/components/StoreBanner/img/white-iphone.png +0 -0
- package/dist/lib/components/Stepper/Stepper.css +0 -1
- package/dist/lib/components/Stepper/Stepper.d.ts +0 -52
- package/dist/lib/components/Stepper/Stepper.js +0 -168
- package/dist/lib/components/Stepper/StepperItem.css +0 -1
- package/dist/lib/components/Stepper/StepperItem.d.ts +0 -57
- package/dist/lib/components/Stepper/StepperItem.js +0 -108
- package/dist/lib/components/Stepper/img/separator-mobile.png +0 -0
- package/dist/lib/components/Stepper/img/separator-vertical.png +0 -0
- package/dist/lib/components/Stepper/img/separator.png +0 -0
- package/dist/lib/components/StoreBanner/img/black-iphone.png +0 -0
- package/dist/lib/components/StoreBanner/img/iphone12.png +0 -0
- package/dist/lib/components/StoreBanner/img/white-iphone.png +0 -0
|
@@ -57,6 +57,7 @@ var PictureBox = function PictureBox(_ref) {
|
|
|
57
57
|
href: button.href,
|
|
58
58
|
target: button.target,
|
|
59
59
|
rel: button.rel,
|
|
60
|
+
icon: button.icon,
|
|
60
61
|
dataAttrs: {
|
|
61
62
|
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.button
|
|
62
63
|
},
|
|
@@ -68,6 +69,7 @@ var PictureBox = function PictureBox(_ref) {
|
|
|
68
69
|
href: extraButton.href,
|
|
69
70
|
target: extraButton.target,
|
|
70
71
|
rel: extraButton.rel,
|
|
72
|
+
icon: extraButton.icon,
|
|
71
73
|
type: "outline",
|
|
72
74
|
dataAttrs: {
|
|
73
75
|
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.extraButton
|
|
@@ -77,6 +77,7 @@ var PromoBannerSlide = function PromoBannerSlide(_ref) {
|
|
|
77
77
|
theme: buttonColor,
|
|
78
78
|
href: button.href,
|
|
79
79
|
target: button.target,
|
|
80
|
+
icon: button.icon,
|
|
80
81
|
rel: button.rel,
|
|
81
82
|
classes: {
|
|
82
83
|
root: classes === null || classes === void 0 ? void 0 : classes.button
|
|
@@ -89,6 +90,7 @@ var PromoBannerSlide = function PromoBannerSlide(_ref) {
|
|
|
89
90
|
theme: buttonColor,
|
|
90
91
|
href: extraButton.href,
|
|
91
92
|
target: extraButton.target,
|
|
93
|
+
icon: extraButton.icon,
|
|
92
94
|
rel: extraButton.rel,
|
|
93
95
|
type: "outline",
|
|
94
96
|
classes: {
|
|
@@ -15,12 +15,15 @@ export interface IPromoCards extends IPromoCardSettings {
|
|
|
15
15
|
classes?: {
|
|
16
16
|
root?: string;
|
|
17
17
|
card?: string;
|
|
18
|
+
cardTitle?: string;
|
|
18
19
|
};
|
|
19
20
|
/** Дополнительные data атрибуты к внутренним элементам */
|
|
20
21
|
dataAttrs?: {
|
|
21
22
|
root?: Record<string, string>;
|
|
22
23
|
card?: Record<string, string>;
|
|
23
24
|
};
|
|
25
|
+
/** Обработчик смены слайда карусели */
|
|
26
|
+
onCarouselChange?: CarouselProps['onChange'];
|
|
24
27
|
/** Ссылка на элемент */
|
|
25
28
|
rootRef?: React.Ref<HTMLDivElement>;
|
|
26
29
|
/** Дочерние элементы. Минимальное количество 2 элемента */
|
|
@@ -36,6 +36,7 @@ var PromoCards = function PromoCards(_ref) {
|
|
|
36
36
|
dataAttrs = _ref.dataAttrs,
|
|
37
37
|
className = _ref.className,
|
|
38
38
|
classes = _ref.classes,
|
|
39
|
+
onCarouselChange = _ref.onCarouselChange,
|
|
39
40
|
rootRef = _ref.rootRef,
|
|
40
41
|
children = _ref.children;
|
|
41
42
|
var itemsLength = (items === null || items === void 0 ? void 0 : items.length) || 0;
|
|
@@ -46,6 +47,9 @@ var PromoCards = function PromoCards(_ref) {
|
|
|
46
47
|
var renderItems = (items || []).map(function (item, i) {
|
|
47
48
|
return /*#__PURE__*/React.createElement(_PromoCard["default"], (0, _extends2["default"])({}, item, {
|
|
48
49
|
className: classes === null || classes === void 0 ? void 0 : classes.card,
|
|
50
|
+
classes: {
|
|
51
|
+
title: classes === null || classes === void 0 ? void 0 : classes.cardTitle
|
|
52
|
+
},
|
|
49
53
|
dataAttrs: {
|
|
50
54
|
root: (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.card, i + 1)
|
|
51
55
|
},
|
|
@@ -60,7 +64,8 @@ var PromoCards = function PromoCards(_ref) {
|
|
|
60
64
|
slidesSettings: slidesSettings,
|
|
61
65
|
navTheme: carouselNavTheme,
|
|
62
66
|
gradient: true,
|
|
63
|
-
gradientColor: carouselGradientColor
|
|
67
|
+
gradientColor: carouselGradientColor,
|
|
68
|
+
onChange: onCarouselChange
|
|
64
69
|
}, childrenLength ? children : renderItems));
|
|
65
70
|
};
|
|
66
71
|
var _default = exports["default"] = PromoCards;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-9-promo-card{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;-webkit-box-orient:vertical;-webkit-box-direction:normal;background-color:var(--base);border-radius:24px;color:var(--content);cursor:pointer;-ms-flex-direction:column;flex-direction:column;min-height:100%;text-decoration:none;-webkit-transition:background-color,.3s,.3s,-webkit-box-shadow;transition:background-color,.3s,.3s,-webkit-box-shadow;transition:background-color,.3s,box-shadow,.3s;transition:background-color,.3s,box-shadow,.3s,-webkit-box-shadow}.mfui-9-promo-card_background_shadow{-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.mfui-9-promo-card_background_shadow:hover,.mfui-9-promo-card_background_white:hover{-webkit-box-shadow:0 8px 28px 0 rgba(0,0,0,.1);box-shadow:0 8px 28px 0 rgba(0,0,0,.1);text-decoration:none}.mfui-9-promo-card_background_gray{background-color:var(--spbSky0)}.mfui-9-promo-card_background_gray:hover{background-color:var(--spbSky1);text-decoration:none}.mfui-9-promo-card__ad-title{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--stcBlack20);border:none;border-radius:8px;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--stcWhite);cursor:pointer;font-family:inherit;font-size:12px;line-height:18px;margin:0;outline:none;padding:1px 8px 3px;position:absolute;right:16px;text-decoration:none;top:16px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mfui-9-promo-card__ad-tooltip{max-width:232px}.mfui-9-promo-card__ad-tooltip-content{font-size:12px;line-height:18px}.mfui-9-promo-card__image{border-radius:inherit;vertical-align:top;width:100%}.mfui-9-promo-card__content{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;-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;padding:32px 24px}@media screen and (min-width:1280px){.mfui-9-promo-card__content{padding:32px}}.mfui-9-promo-card__badge{left:24px;position:absolute;top:0;translate:0 -50%}@media screen and (min-width:1280px){.mfui-9-promo-card__badge{left:32px}}.mfui-9-promo-card__logo{background-color:var(--base);border:4px solid var(--base);border-radius:50%;position:absolute;right:44px;top:0;-webkit-transition:border-color,.3s;transition:border-color,.3s;translate:0 -50%}@media screen and (min-width:1280px){.mfui-9-promo-card__logo{right:52px}}.mfui-9-promo-card__logo:after,.mfui-9-promo-card__logo:before{content:"";height:10px;position:absolute;top:50%;translate:0 -100%;width:10px}.mfui-9-promo-card__logo:before{background-image:radial-gradient(circle at 0 0,transparent 9px,var(--base) 10px);left:-12px}.mfui-9-promo-card__logo:after{background-image:radial-gradient(circle at 100% 0,transparent 9px,var(--base) 10px);right:-12px}.mfui-9-promo-card_background_gray .mfui-9-promo-card__logo{background-color:var(--spbSky0);border-color:var(--spbSky0)}.mfui-9-promo-card_background_gray .mfui-9-promo-card__logo:before{background-image:radial-gradient(circle at 0 0,transparent 9px,var(--spbSky0) 10px)}.mfui-9-promo-card_background_gray .mfui-9-promo-card__logo:after{background-image:radial-gradient(circle at 100% 0,transparent 9px,var(--spbSky0) 10px)}.mfui-9-promo-card_background_gray:hover .mfui-9-promo-card__logo{background-color:var(--spbSky1);border-color:var(--spbSky1)}.mfui-9-promo-card_background_gray:hover .mfui-9-promo-card__logo:before{background-image:radial-gradient(circle at 0 0,transparent 9px,var(--spbSky1) 10px)}.mfui-9-promo-card_background_gray:hover .mfui-9-promo-card__logo:after{background-image:radial-gradient(circle at 100% 0,transparent 9px,var(--spbSky1) 10px)}.mfui-9-promo-card__logo-img{border:1px solid var(--spbSky1);border-radius:inherit;height:56px;vertical-align:top;width:56px}@media screen and (min-width:768px){.mfui-9-promo-card__logo-img{height:64px;width:64px}}@media screen and (min-width:1280px){.mfui-9-promo-card__logo-img{height:72px;width:72px}}.mfui-9-promo-card__subtitle{margin-top:8px}.mfui-9-promo-card__list{font-size:15px;font-weight:400;line-height:24px;list-style:none;margin:8px 0 0;padding:0}.mfui-9-promo-card__list-item{margin:0;padding:0 0 0 20px;position:relative}.mfui-9-promo-card__list-item:before{background-color:var(--spbSky2);border-radius:50%;content:"";height:6px;left:1px;position:absolute;top:9px;width:6px}.mfui-9-promo-card__list-item:not(:last-child){margin-bottom:12px}.mfui-9-promo-card__list-item b{font-weight:500}.mfui-9-promo-card__footer{margin-top:auto;padding-top:16px}
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-9-promo-card{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;-webkit-box-orient:vertical;-webkit-box-direction:normal;background-color:var(--base);border-radius:24px;color:var(--content);cursor:pointer;-ms-flex-direction:column;flex-direction:column;min-height:100%;text-decoration:none;-webkit-transition:background-color,.3s,.3s,-webkit-box-shadow;transition:background-color,.3s,.3s,-webkit-box-shadow;transition:background-color,.3s,box-shadow,.3s;transition:background-color,.3s,box-shadow,.3s,-webkit-box-shadow}.mfui-9-promo-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-promo-card:focus{outline:none}.mfui-9-promo-card_background_shadow{-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.mfui-9-promo-card_background_shadow:hover,.mfui-9-promo-card_background_white:hover{-webkit-box-shadow:0 8px 28px 0 rgba(0,0,0,.1);box-shadow:0 8px 28px 0 rgba(0,0,0,.1);text-decoration:none}.mfui-9-promo-card_background_gray{background-color:var(--spbSky0)}.mfui-9-promo-card_background_gray:hover{background-color:var(--spbSky1);text-decoration:none}.mfui-9-promo-card__ad-title{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--stcBlack20);border:none;border-radius:8px;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--stcWhite);cursor:pointer;font-family:inherit;font-size:12px;line-height:18px;margin:0;outline:none;padding:1px 8px 3px;position:absolute;right:16px;text-decoration:none;top:16px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mfui-9-promo-card__ad-tooltip{max-width:232px}.mfui-9-promo-card__ad-tooltip-content{font-size:12px;line-height:18px}.mfui-9-promo-card__image{border-radius:inherit;vertical-align:top;width:100%}.mfui-9-promo-card__content{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;-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;padding:32px 24px}@media screen and (min-width:1280px){.mfui-9-promo-card__content{padding:32px}}.mfui-9-promo-card__badge{left:24px;position:absolute;top:0;translate:0 -50%}@media screen and (min-width:1280px){.mfui-9-promo-card__badge{left:32px}}.mfui-9-promo-card__logo{background-color:var(--base);border:4px solid var(--base);border-radius:50%;position:absolute;right:44px;top:0;-webkit-transition:border-color,.3s;transition:border-color,.3s;translate:0 -50%}@media screen and (min-width:1280px){.mfui-9-promo-card__logo{right:52px}}.mfui-9-promo-card__logo:after,.mfui-9-promo-card__logo:before{content:"";height:10px;position:absolute;top:50%;translate:0 -100%;width:10px}.mfui-9-promo-card__logo:before{background-image:radial-gradient(circle at 0 0,transparent 9px,var(--base) 10px);left:-12px}.mfui-9-promo-card__logo:after{background-image:radial-gradient(circle at 100% 0,transparent 9px,var(--base) 10px);right:-12px}.mfui-9-promo-card_background_gray .mfui-9-promo-card__logo{background-color:var(--spbSky0);border-color:var(--spbSky0)}.mfui-9-promo-card_background_gray .mfui-9-promo-card__logo:before{background-image:radial-gradient(circle at 0 0,transparent 9px,var(--spbSky0) 10px)}.mfui-9-promo-card_background_gray .mfui-9-promo-card__logo:after{background-image:radial-gradient(circle at 100% 0,transparent 9px,var(--spbSky0) 10px)}.mfui-9-promo-card_background_gray:hover .mfui-9-promo-card__logo{background-color:var(--spbSky1);border-color:var(--spbSky1)}.mfui-9-promo-card_background_gray:hover .mfui-9-promo-card__logo:before{background-image:radial-gradient(circle at 0 0,transparent 9px,var(--spbSky1) 10px)}.mfui-9-promo-card_background_gray:hover .mfui-9-promo-card__logo:after{background-image:radial-gradient(circle at 100% 0,transparent 9px,var(--spbSky1) 10px)}.mfui-9-promo-card__logo-img{border:1px solid var(--spbSky1);border-radius:inherit;height:56px;vertical-align:top;width:56px}@media screen and (min-width:768px){.mfui-9-promo-card__logo-img{height:64px;width:64px}}@media screen and (min-width:1280px){.mfui-9-promo-card__logo-img{height:72px;width:72px}}.mfui-9-promo-card__subtitle{margin-top:8px}.mfui-9-promo-card__list{font-size:15px;font-weight:400;line-height:24px;list-style:none;margin:8px 0 0;padding:0}.mfui-9-promo-card__list-item{margin:0;padding:0 0 0 20px;position:relative}.mfui-9-promo-card__list-item:before{background-color:var(--spbSky2);border-radius:50%;content:"";height:6px;left:1px;position:absolute;top:9px;width:6px}.mfui-9-promo-card__list-item:not(:last-child){margin-bottom:12px}.mfui-9-promo-card__list-item b{font-weight:500}.mfui-9-promo-card__footer{margin-top:auto;padding-top:16px}
|
|
@@ -7,6 +7,7 @@ export interface IPromoCard extends IPromoCardData, IPromoCardSettings {
|
|
|
7
7
|
/** Дополнительные css классы для корневого элемента */
|
|
8
8
|
classes?: {
|
|
9
9
|
root?: string;
|
|
10
|
+
title?: string;
|
|
10
11
|
};
|
|
11
12
|
/** Дополнительные data атрибуты к корневому и внутренним элементам */
|
|
12
13
|
dataAttrs?: {
|
|
@@ -14,6 +15,7 @@ export interface IPromoCard extends IPromoCardData, IPromoCardSettings {
|
|
|
14
15
|
image?: Record<string, string>;
|
|
15
16
|
badge?: Record<string, string>;
|
|
16
17
|
logo?: Record<string, string>;
|
|
18
|
+
title?: Record<string, string>;
|
|
17
19
|
subtitle?: Record<string, string>;
|
|
18
20
|
list?: Record<string, string>;
|
|
19
21
|
adTitle?: Record<string, string>;
|
|
@@ -89,14 +89,17 @@ var PromoCard = function PromoCard(_ref2) {
|
|
|
89
89
|
color: promoBadgeColor
|
|
90
90
|
}, promoBadgeText);
|
|
91
91
|
case !!priceBadgeText:
|
|
92
|
-
return /*#__PURE__*/
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
92
|
+
return /*#__PURE__*/(
|
|
93
|
+
// TODO: заменить компонент на InfoBadge после релиза UI-219
|
|
94
|
+
React.createElement(_uiCore.PriceBadge, {
|
|
95
|
+
className: cn('badge'),
|
|
96
|
+
dataAttrs: {
|
|
97
|
+
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.badge
|
|
98
|
+
},
|
|
99
|
+
iconType: priceBadgeIcon,
|
|
100
|
+
theme: priceBadgeTheme
|
|
101
|
+
}, priceBadgeText)
|
|
102
|
+
);
|
|
100
103
|
default:
|
|
101
104
|
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.badge), {
|
|
102
105
|
className: cn('badge')
|
|
@@ -154,7 +157,11 @@ var PromoCard = function PromoCard(_ref2) {
|
|
|
154
157
|
src: logo.src,
|
|
155
158
|
alt: logo.alt || ''
|
|
156
159
|
})), /*#__PURE__*/React.createElement(_uiCore.Header, {
|
|
157
|
-
as: "h3"
|
|
160
|
+
as: "h3",
|
|
161
|
+
className: classes === null || classes === void 0 ? void 0 : classes.title,
|
|
162
|
+
dataAttrs: {
|
|
163
|
+
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.title
|
|
164
|
+
}
|
|
158
165
|
}, (0, _uiHelpers.convert)(title, {})), !!subtitle && /*#__PURE__*/React.createElement("div", {
|
|
159
166
|
className: cn('subtitle')
|
|
160
167
|
}, /*#__PURE__*/React.createElement(_uiCore.Paragraph, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-9-service-card{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-pack:justify;-ms-flex-pack:justify;background-color:var(--base);border-radius:24px;color:var(--content);height:100%;justify-content:space-between;overflow:hidden;padding:24px 24px 22px;-webkit-transition:background-color,-webkit-box-shadow;transition:background-color,-webkit-box-shadow;transition:background-color,box-shadow;transition:background-color,box-shadow,-webkit-box-shadow;-webkit-transition-duration:.3s;transition-duration:.3s;width:100%}@media screen and (min-width:768px){.mfui-9-service-card{padding-bottom:32px}}.mfui-9-service-card:hover{text-decoration:none}.mfui-9-service-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-service-card__title{font-size:26px;line-height:32px}}@media screen and (min-width:1024px){.mfui-9-service-card__title{font-size:28px;line-height:36px}}@media screen and (min-width:1280px){.mfui-9-service-card__title{font-size:32px;line-height:40px}}.mfui-9-service-card__subtitle{font-size:15px;font-weight:400;line-height:24px;margin-top:12px}.mfui-9-service-card__image-wrapper{overflow:hidden}.mfui-9-service-card__image{display:block;height:240px;width:240px}.mfui-9-service-card__circle,.mfui-9-service-card__price{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-9-service-card__circle{-webkit-box-pack:center;-ms-flex-pack:center;border:1px solid var(--brandGreen);border-radius:50%;height:48px;justify-content:center;width:48px}.mfui-9-service-card:hover .mfui-9-service-card__circle{-webkit-animation:scale-circle 1s ease-out forwards;animation:scale-circle 1s ease-out forwards;-webkit-transform-origin:center;transform-origin:center}.mfui-9-service-card__arrow{height:32px;min-width:32px;width:32px;fill:var(--brandGreen)}.mfui-9-service-card__value{font-size:15px;font-weight:500;line-height:24px;margin-left:8px}.mfui-9-service-card_size_big .mfui-9-service-card__image-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;border-radius:24px;justify-content:center;margin:32px auto}@media screen and (min-width:768px){.mfui-9-service-card_size_big .mfui-9-service-card__image{height:auto;max-height:100%;max-width:100%;width:auto}}.mfui-9-service-card_size_small .mfui-9-service-card__title{font-size:18px;font-weight:500;letter-spacing:.5px;line-height:24px}@media screen and (min-width:1280px){.mfui-9-service-card_size_small .mfui-9-service-card__title{font-size:20px;line-height:28px}}.mfui-9-service-card_size_small .mfui-9-service-card__subtitle{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:3}.mfui-9-service-card_size_small .mfui-9-service-card__footer{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}@media screen and (max-width:767px){.mfui-9-service-card_size_small .mfui-9-service-card__footer{margin-top:20px}}.mfui-9-service-card_size_small .mfui-9-service-card__image-wrapper{margin-bottom:-22px;margin-right:-24px}@media screen and (min-width:768px){.mfui-9-service-card_size_small .mfui-9-service-card__image-wrapper{margin-bottom:-32px}}.mfui-9-service-card_size_small .mfui-9-service-card__image{height:110px;width:110px}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-service-card_size_small .mfui-9-service-card__image{height:125px;width:125px}}@media screen and (min-width:1024px){.mfui-9-service-card_size_small .mfui-9-service-card__image{height:150px;width:150px}}@media screen and (max-width:767px){.mfui-9-service-card_size_small .mfui-9-service-card__circle{height:32px;width:32px}.mfui-9-service-card_size_small .mfui-9-service-card__arrow{height:20px;min-width:20px;width:20px}}.mfui-9-service-card:hover:not(.mfui-9-service-card_background_gray){-webkit-box-shadow:0 8px 28px rgba(0,0,0,.1);box-shadow:0 8px 28px rgba(0,0,0,.1)}.mfui-9-service-card_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-service-card_background_gray{background-color:var(--spbSky0)}.mfui-9-service-card_background_gray:hover{background-color:var(--spbSky1)}@-webkit-keyframes scale-circle{0%{scale:1}50%{scale:.6875}to{scale:1}}@keyframes scale-circle{0%{scale:1}50%{scale:.6875}to{scale:1}}
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-9-service-card{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-pack:justify;-ms-flex-pack:justify;background-color:var(--base);border-radius:24px;color:var(--content);height:100%;justify-content:space-between;overflow:hidden;padding:24px 24px 22px;-webkit-transition:background-color,-webkit-box-shadow;transition:background-color,-webkit-box-shadow;transition:background-color,box-shadow;transition:background-color,box-shadow,-webkit-box-shadow;-webkit-transition-duration:.3s;transition-duration:.3s;width:100%}.mfui-9-service-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-service-card:focus{outline:none}@media screen and (min-width:768px){.mfui-9-service-card{padding-bottom:32px}}.mfui-9-service-card:hover{text-decoration:none}.mfui-9-service-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-service-card__title{font-size:26px;line-height:32px}}@media screen and (min-width:1024px){.mfui-9-service-card__title{font-size:28px;line-height:36px}}@media screen and (min-width:1280px){.mfui-9-service-card__title{font-size:32px;line-height:40px}}.mfui-9-service-card__subtitle{font-size:15px;font-weight:400;line-height:24px;margin-top:12px}.mfui-9-service-card__image-wrapper{overflow:hidden}.mfui-9-service-card__image{display:block;height:240px;width:240px}.mfui-9-service-card__circle,.mfui-9-service-card__price{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-9-service-card__circle{-webkit-box-pack:center;-ms-flex-pack:center;border:1px solid var(--brandGreen);border-radius:50%;height:48px;justify-content:center;width:48px}.mfui-9-service-card:hover .mfui-9-service-card__circle{-webkit-animation:scale-circle 1s ease-out forwards;animation:scale-circle 1s ease-out forwards;-webkit-transform-origin:center;transform-origin:center}.mfui-9-service-card__arrow{height:32px;min-width:32px;width:32px;fill:var(--brandGreen)}.mfui-9-service-card__value{font-size:15px;font-weight:500;line-height:24px;margin-left:8px}.mfui-9-service-card_size_big .mfui-9-service-card__image-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;border-radius:24px;justify-content:center;margin:32px auto}@media screen and (min-width:768px){.mfui-9-service-card_size_big .mfui-9-service-card__image{height:auto;max-height:100%;max-width:100%;width:auto}}.mfui-9-service-card_size_small .mfui-9-service-card__title{font-size:18px;font-weight:500;letter-spacing:.5px;line-height:24px}@media screen and (min-width:1280px){.mfui-9-service-card_size_small .mfui-9-service-card__title{font-size:20px;line-height:28px}}.mfui-9-service-card_size_small .mfui-9-service-card__subtitle{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:3}.mfui-9-service-card_size_small .mfui-9-service-card__footer{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}@media screen and (max-width:767px){.mfui-9-service-card_size_small .mfui-9-service-card__footer{margin-top:20px}}.mfui-9-service-card_size_small .mfui-9-service-card__image-wrapper{margin-bottom:-22px;margin-right:-24px}@media screen and (min-width:768px){.mfui-9-service-card_size_small .mfui-9-service-card__image-wrapper{margin-bottom:-32px}}.mfui-9-service-card_size_small .mfui-9-service-card__image{height:110px;width:110px}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-service-card_size_small .mfui-9-service-card__image{height:125px;width:125px}}@media screen and (min-width:1024px){.mfui-9-service-card_size_small .mfui-9-service-card__image{height:150px;width:150px}}@media screen and (max-width:767px){.mfui-9-service-card_size_small .mfui-9-service-card__circle{height:32px;width:32px}.mfui-9-service-card_size_small .mfui-9-service-card__arrow{height:20px;min-width:20px;width:20px}}.mfui-9-service-card:hover:not(.mfui-9-service-card_background_gray){-webkit-box-shadow:0 8px 28px rgba(0,0,0,.1);box-shadow:0 8px 28px rgba(0,0,0,.1)}.mfui-9-service-card_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-service-card_background_gray{background-color:var(--spbSky0)}.mfui-9-service-card_background_gray:hover{background-color:var(--spbSky1)}@-webkit-keyframes scale-circle{0%{scale:1}50%{scale:.6875}to{scale:1}}@keyframes scale-circle{0%{scale:1}50%{scale:.6875}to{scale:1}}
|
|
@@ -17,7 +17,7 @@ var ArrowRight = function ArrowRight(props) {
|
|
|
17
17
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
18
18
|
viewBox: "0 0 32 32"
|
|
19
19
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
20
|
-
d: "
|
|
20
|
+
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"
|
|
21
21
|
}));
|
|
22
22
|
};
|
|
23
23
|
var cn = (0, _uiHelpers.cnCreate)('mfui-9-service-card');
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { Carousel } from '@megafon/ui-core';
|
|
2
3
|
import { BackgroundType, CardDataType } from './types';
|
|
4
|
+
type CarouselProps = React.ComponentProps<typeof Carousel>;
|
|
3
5
|
export interface ISidePictureCards {
|
|
4
6
|
/** Карточки. Минимальное количество 2 карточки */
|
|
5
7
|
items: CardDataType[];
|
|
@@ -13,12 +15,15 @@ export interface ISidePictureCards {
|
|
|
13
15
|
classes?: {
|
|
14
16
|
root?: string;
|
|
15
17
|
item?: string;
|
|
18
|
+
itemTitle?: string;
|
|
16
19
|
};
|
|
17
20
|
/** Дополнительные data атрибуты к внутренним элементам */
|
|
18
21
|
dataAttrs?: {
|
|
19
22
|
root?: Record<string, string>;
|
|
20
23
|
item?: Record<string, string>;
|
|
21
24
|
};
|
|
25
|
+
/** Обработчик смены слайда карусели */
|
|
26
|
+
onCarouselChange?: CarouselProps['onChange'];
|
|
22
27
|
/** Ссылка на корневой элемент */
|
|
23
28
|
rootRef?: React.Ref<HTMLDivElement>;
|
|
24
29
|
}
|
|
@@ -35,6 +35,7 @@ var SidePictureCards = function SidePictureCards(_ref) {
|
|
|
35
35
|
_ref$classes = _ref.classes,
|
|
36
36
|
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
|
37
37
|
dataAttrs = _ref.dataAttrs,
|
|
38
|
+
onCarouselChange = _ref.onCarouselChange,
|
|
38
39
|
rootRef = _ref.rootRef;
|
|
39
40
|
if (items.length < MIN_ITEMS_COUNT) {
|
|
40
41
|
return null;
|
|
@@ -44,7 +45,8 @@ var SidePictureCards = function SidePictureCards(_ref) {
|
|
|
44
45
|
background: background,
|
|
45
46
|
key: "".concat(item === null || item === void 0 ? void 0 : item.title, "_").concat(index),
|
|
46
47
|
classes: {
|
|
47
|
-
root: classes.item
|
|
48
|
+
root: classes.item,
|
|
49
|
+
title: classes.itemTitle
|
|
48
50
|
},
|
|
49
51
|
dataAttrs: {
|
|
50
52
|
root: (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.item, index + 1))
|
|
@@ -54,7 +56,8 @@ var SidePictureCards = function SidePictureCards(_ref) {
|
|
|
54
56
|
var renderContent = function renderContent() {
|
|
55
57
|
if (hasCarousel) {
|
|
56
58
|
return /*#__PURE__*/React.createElement(_uiCore.Carousel, {
|
|
57
|
-
slidesSettings: slidesSettings
|
|
59
|
+
slidesSettings: slidesSettings,
|
|
60
|
+
onChange: onCarouselChange
|
|
58
61
|
}, items.map(renderItem));
|
|
59
62
|
}
|
|
60
63
|
return /*#__PURE__*/React.createElement(_uiCore.Grid, {
|
|
@@ -5,10 +5,12 @@ export type SidePictureCardType = CardDataType & {
|
|
|
5
5
|
background: BackgroundType;
|
|
6
6
|
classes?: {
|
|
7
7
|
root?: string;
|
|
8
|
+
title?: string;
|
|
8
9
|
button?: string;
|
|
9
10
|
};
|
|
10
11
|
dataAttrs?: {
|
|
11
12
|
root?: Record<string, string>;
|
|
13
|
+
title?: Record<string, string>;
|
|
12
14
|
button?: Record<string, string>;
|
|
13
15
|
};
|
|
14
16
|
};
|
|
@@ -32,7 +32,8 @@ var SidePictureCard = function SidePictureCard(_ref) {
|
|
|
32
32
|
buttonTitle = _ref2.title,
|
|
33
33
|
buttonHref = _ref2.href,
|
|
34
34
|
buttonTarget = _ref2.target,
|
|
35
|
-
buttonRel = _ref2.rel
|
|
35
|
+
buttonRel = _ref2.rel,
|
|
36
|
+
onButtonClick = _ref2.onClick;
|
|
36
37
|
var isLink = !!href && !buttonHref;
|
|
37
38
|
var ElementType = isLink ? 'a' : 'div';
|
|
38
39
|
var currentRel = (0, _setRelAttribute.setRelAttribute)(rel, target);
|
|
@@ -69,7 +70,10 @@ var SidePictureCard = function SidePictureCard(_ref) {
|
|
|
69
70
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
70
71
|
className: cn('content')
|
|
71
72
|
}, !!title && /*#__PURE__*/_react["default"].createElement(_uiCore.Header, {
|
|
72
|
-
className: cn('title'),
|
|
73
|
+
className: cn('title', [classes === null || classes === void 0 ? void 0 : classes.title]),
|
|
74
|
+
dataAttrs: {
|
|
75
|
+
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.title
|
|
76
|
+
},
|
|
73
77
|
as: "h3"
|
|
74
78
|
}, (0, _uiHelpers.convert)(title, {})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
75
79
|
className: cn('items')
|
|
@@ -80,7 +84,8 @@ var SidePictureCard = function SidePictureCard(_ref) {
|
|
|
80
84
|
},
|
|
81
85
|
href: buttonHref,
|
|
82
86
|
target: buttonTarget,
|
|
83
|
-
rel: currentButtonRel
|
|
87
|
+
rel: currentButtonRel,
|
|
88
|
+
onClick: onButtonClick
|
|
84
89
|
}, buttonTitle)), /*#__PURE__*/_react["default"].createElement("picture", {
|
|
85
90
|
className: cn('picture')
|
|
86
91
|
}, /*#__PURE__*/_react["default"].createElement("source", {
|
|
@@ -4,11 +4,13 @@ type ButtonType = {
|
|
|
4
4
|
/** Название */
|
|
5
5
|
title: string;
|
|
6
6
|
/** Ссылка */
|
|
7
|
-
href
|
|
7
|
+
href?: string;
|
|
8
8
|
/** Атрибут ссылки target */
|
|
9
9
|
target?: TargetType;
|
|
10
10
|
/** Атрибут ссылки rel */
|
|
11
11
|
rel?: string;
|
|
12
|
+
/** Обработчик клика */
|
|
13
|
+
onClick?: (e: React.SyntheticEvent<EventTarget>) => void;
|
|
12
14
|
};
|
|
13
15
|
type ImageType = {
|
|
14
16
|
/** Изображение на разрешении экрана 0-1279 */
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Stepper } from '@megafon/ui-core';
|
|
3
|
+
export type StepperPropsType = Pick<React.ComponentProps<typeof Stepper>, 'items' | 'align' | 'isNumeric' | 'rootRef' | 'className' | 'classes' | 'dataAttrs'>;
|
|
4
|
+
interface IStepperBox extends StepperPropsType {
|
|
5
|
+
/** Шаги */
|
|
6
|
+
items: NonNullable<StepperPropsType['items']>;
|
|
7
|
+
/** Вертикальное направление на разрешении экрана 0-767 */
|
|
8
|
+
isVerticalMobile?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const StepperBox: React.FC<IStepperBox>;
|
|
11
|
+
export default StepperBox;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
require("core-js/modules/es.symbol.js");
|
|
10
|
+
require("core-js/modules/es.array.index-of.js");
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _uiCore = require("@megafon/ui-core");
|
|
13
|
+
var _uiHelpers = require("@megafon/ui-helpers");
|
|
14
|
+
var _useResolutions2 = _interopRequireDefault(require("../../hooks/useResolutions"));
|
|
15
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
18
|
+
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
19
|
+
var t = {};
|
|
20
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
21
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
22
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
23
|
+
}
|
|
24
|
+
return t;
|
|
25
|
+
};
|
|
26
|
+
var cn = (0, _uiHelpers.cnCreate)('mfui-9-stepper-box');
|
|
27
|
+
var StepperBox = function StepperBox(_a) {
|
|
28
|
+
var items = _a.items,
|
|
29
|
+
_a$isVerticalMobile = _a.isVerticalMobile,
|
|
30
|
+
isVerticalMobile = _a$isVerticalMobile === void 0 ? false : _a$isVerticalMobile,
|
|
31
|
+
_a$align = _a.align,
|
|
32
|
+
align = _a$align === void 0 ? 'center' : _a$align,
|
|
33
|
+
restProps = __rest(_a, ["items", "isVerticalMobile", "align"]);
|
|
34
|
+
var _useResolutions = (0, _useResolutions2["default"])(),
|
|
35
|
+
isMobile = _useResolutions.isMobile;
|
|
36
|
+
var isHorizontal = !(isMobile && isVerticalMobile);
|
|
37
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
38
|
+
className: cn()
|
|
39
|
+
}, /*#__PURE__*/React.createElement(_uiCore.Stepper, (0, _extends2["default"])({
|
|
40
|
+
items: items,
|
|
41
|
+
align: align,
|
|
42
|
+
isHorizontal: isHorizontal,
|
|
43
|
+
isAllChecked: true
|
|
44
|
+
}, restProps)));
|
|
45
|
+
};
|
|
46
|
+
var _default = exports["default"] = StepperBox;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-9-steps{margin-left:auto;margin-right:auto;width:100%}@media screen and (min-width:768px){.mfui-9-steps{width:66%}}@media screen and (min-width:1280px){.mfui-9-steps{width:49%}}.mfui-9-steps__title{margin-bottom:24px}@media screen and (min-width:1024px){.mfui-9-steps__title{margin-bottom:40px}}.mfui-9-steps__list{list-style:none;margin:0;padding:0}.mfui-9-steps__item{border-radius:24px;margin-bottom:12px;padding:16px}.mfui-9-steps__item:last-child{margin-bottom:0}.mfui-9-steps_theme_gray .mfui-9-steps__item{background-color:var(--spbSky0)}.mfui-9-steps_theme_white .mfui-9-steps__item{background-color:var(--base)}
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-9-steps{margin-left:auto;margin-right:auto;width:100%}@media screen and (min-width:768px){.mfui-9-steps{width:66%}}@media screen and (min-width:1280px){.mfui-9-steps{width:49%}}.mfui-9-steps__title{margin-bottom:24px}@media screen and (min-width:1024px){.mfui-9-steps__title{margin-bottom:40px}}.mfui-9-steps__list{list-style:none;margin:0;padding:0}.mfui-9-steps__item{border-radius:24px;margin-bottom:12px;padding:16px}.mfui-9-steps__item:last-child{margin-bottom:0}.mfui-9-steps_theme_gray .mfui-9-steps__item{background-color:var(--spbSky0)}.mfui-9-steps_theme_white .mfui-9-steps__item{background-color:var(--base)}
|
|
@@ -13,8 +13,8 @@ export interface ISteps {
|
|
|
13
13
|
rootRef?: React.Ref<HTMLDivElement>;
|
|
14
14
|
/** Заголовок */
|
|
15
15
|
title?: string;
|
|
16
|
-
/** Цветовая
|
|
17
|
-
theme?: '
|
|
16
|
+
/** Цветовая тема */
|
|
17
|
+
theme?: 'white' | 'gray';
|
|
18
18
|
children: React.ReactNode;
|
|
19
19
|
}
|
|
20
20
|
declare const Steps: React.FC<ISteps>;
|
|
@@ -18,7 +18,7 @@ var Steps = function Steps(_ref) {
|
|
|
18
18
|
title = _ref.title,
|
|
19
19
|
rootRef = _ref.rootRef,
|
|
20
20
|
_ref$theme = _ref.theme,
|
|
21
|
-
theme = _ref$theme === void 0 ? '
|
|
21
|
+
theme = _ref$theme === void 0 ? 'gray' : _ref$theme,
|
|
22
22
|
children = _ref.children;
|
|
23
23
|
return /*#__PURE__*/React.createElement("div", {
|
|
24
24
|
className: cn({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-9-store-banner_theme_default .mfui-9-store-banner__grid{background-color:var(--base)}.mfui-9-store-banner_theme_default .mfui-9-store-banner__content{color:var(--content)}.mfui-9-store-banner_theme_green .mfui-9-store-banner__grid{background-color:var(--brandGreen);border:0}.mfui-9-store-banner_theme_green .mfui-9-store-banner__content{color:var(--stcWhite)}.mfui-9-store-banner_theme_spbSky1 .mfui-9-store-banner__grid{background-color:var(--spbSky1);border-color:transparent}.mfui-9-store-banner_theme_spbSky1 .mfui-9-store-banner__content{color:var(--content)}.mfui-9-store-banner_theme_spbSky0 .mfui-9-store-banner__grid{background-color:var(--spbSky0);border-color:transparent}.mfui-9-store-banner_theme_spbSky0 .mfui-9-store-banner__content{color:var(--content)}.mfui-9-store-banner_mask_new-iphone .mfui-9-store-banner__device-mask{background-image:url(img/new-iphone.png);position:relative;z-index:2}.mfui-9-store-banner_mask_new-iphone .mfui-9-store-banner__screen{border-radius:14px;top:9px;width:90%;z-index:1}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-store-banner_mask_new-iphone .mfui-9-store-banner__screen{top:8px}}@media screen and (max-width:767px){.mfui-9-store-banner_mask_new-iphone .mfui-9-store-banner__screen{top:30px}}.mfui-9-store-banner_mask_android .mfui-9-store-banner__device-mask{background-image:url(img/android.png);position:relative;z-index:2}.mfui-9-store-banner_mask_android .mfui-9-store-banner__screen{border-radius:14px;top:9px;width:92%}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-store-banner_mask_android .mfui-9-store-banner__screen{top:8px}}@media screen and (max-width:767px){.mfui-9-store-banner_mask_android .mfui-9-store-banner__screen{top:30px}
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-9-store-banner_theme_default .mfui-9-store-banner__grid{background-color:var(--base)}.mfui-9-store-banner_theme_default .mfui-9-store-banner__content{color:var(--content)}.mfui-9-store-banner_theme_green .mfui-9-store-banner__grid{background-color:var(--brandGreen);border:0}.mfui-9-store-banner_theme_green .mfui-9-store-banner__content{color:var(--stcWhite)}.mfui-9-store-banner_theme_spbSky1 .mfui-9-store-banner__grid{background-color:var(--spbSky1);border-color:transparent}.mfui-9-store-banner_theme_spbSky1 .mfui-9-store-banner__content{color:var(--content)}.mfui-9-store-banner_theme_spbSky0 .mfui-9-store-banner__grid{background-color:var(--spbSky0);border-color:transparent}.mfui-9-store-banner_theme_spbSky0 .mfui-9-store-banner__content{color:var(--content)}.mfui-9-store-banner_mask_new-iphone .mfui-9-store-banner__device-mask{background-image:url(img/new-iphone.png);position:relative;z-index:2}.mfui-9-store-banner_mask_new-iphone .mfui-9-store-banner__screen{border-radius:14px;top:9px;width:90%;z-index:1}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-store-banner_mask_new-iphone .mfui-9-store-banner__screen{top:8px}}@media screen and (max-width:767px){.mfui-9-store-banner_mask_new-iphone .mfui-9-store-banner__screen{top:30px}}.mfui-9-store-banner_mask_android .mfui-9-store-banner__device-mask{background-image:url(img/android.png);position:relative;z-index:2}.mfui-9-store-banner_mask_android .mfui-9-store-banner__screen{border-radius:14px;top:9px;width:92%}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-store-banner_mask_android .mfui-9-store-banner__screen{top:8px}}@media screen and (max-width:767px){.mfui-9-store-banner_mask_android .mfui-9-store-banner__screen{top:30px}.mfui-9-store-banner_content-left-mobile .mfui-9-store-banner__content{text-align:left}.mfui-9-store-banner_content-left-mobile .mfui-9-store-banner__stores{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.mfui-9-store-banner_content-left-mobile .mfui-9-store-banner__button{margin:0}}@media screen and (min-width:1024px){.mfui-9-store-banner__container{padding-top:30px}}.mfui-9-store-banner__grid{border:1px solid var(--spbSky2);border-radius:24px;padding-bottom:32px;padding-top:32px}@media screen and (max-width:767px){.mfui-9-store-banner__grid{padding-bottom:0;padding-top:24px}}.mfui-9-store-banner__content{padding-left:32px}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-store-banner__content{padding-right:10px}}@media screen and (max-width:767px){.mfui-9-store-banner__content{padding-bottom:32px;padding-left:15px;padding-right:15px;text-align:center}}.mfui-9-store-banner__device-mask{background-repeat:no-repeat;background-size:cover;height:100%}.mfui-9-store-banner__device-wrapper{bottom:62px;height:calc(100% + 94px);margin-left:auto;margin-right:auto;overflow:hidden;position:relative;width:235px}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-9-store-banner__device-wrapper{width:260px}}@media screen and (max-width:1023px){.mfui-9-store-banner__device-wrapper{bottom:0}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-store-banner__device-wrapper{height:calc(100% + 32px);width:196px}}@media screen and (max-width:767px){.mfui-9-store-banner__device-wrapper{height:222px;padding-top:24px;width:163px}}.mfui-9-store-banner__links{display:-webkit-box;display:-ms-flexbox;display:flex}.mfui-9-store-banner__qr-code{-ms-flex-item-align:center;align-self:center;background-color:var(--base);border:1px solid var(--spbSky1);border-radius:8px;-webkit-box-sizing:border-box;box-sizing:border-box;height:90px;margin-right:16px;width:90px}@media screen and (max-width:767px){.mfui-9-store-banner__qr-code{display:none}}@media screen and (min-width:768px){.mfui-9-store-banner__qr-code+.mfui-9-store-banner__stores{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}}.mfui-9-store-banner__store-link{height:40px;margin-bottom:10px;margin-left:8px;margin-right:8px;width:136px}@media screen and (max-width:767px){.mfui-9-store-banner__store-link{height:35px;width:119px}}.mfui-9-store-banner__store-link:last-child{margin-bottom:0}.mfui-9-store-banner__stores{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-wrap:wrap;flex-wrap:wrap}@media screen and (max-width:767px){.mfui-9-store-banner__stores{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}}@media screen and (min-width:768px){.mfui-9-store-banner__stores{margin-left:-8px}}.mfui-9-store-banner__text{margin-bottom:32px}.mfui-9-store-banner__title{margin-bottom:16px}.mfui-9-store-banner__screen{left:50%;position:absolute;-webkit-transform:translateX(-50%);transform:translateX(-50%)}@media screen and (max-width:767px){.mfui-9-store-banner__button{margin:0 auto}}.mfui-9-store-banner__links_three .mfui-9-store-banner__qr-code{-o-object-fit:contain;object-fit:contain}@media screen and (min-width:1280px){.mfui-9-store-banner__links_three .mfui-9-store-banner__qr-code{max-height:90px;max-width:90px}}.mfui-9-store-banner__links_three .mfui-9-store-banner__qr-code+.mfui-9-store-banner__stores{max-width:305px}@media screen and (min-width:1024px){.mfui-9-store-banner__links_three .mfui-9-store-banner__qr-code+.mfui-9-store-banner__stores{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}}@media screen and (max-width:767px){.mfui-9-store-banner__links_three .mfui-9-store-banner__qr-code+.mfui-9-store-banner__stores{margin:0 auto}}.mfui-9-store-banner__links_three .mfui-9-store-banner__store-link{height:40px;width:136px}@media screen and (max-width:1023px){.mfui-9-store-banner__links_three .mfui-9-store-banner__store-link{height:35px;width:119px}}.mfui-9-store-banner__links_three .mfui-9-store-banner__store-link:not(:last-child){margin-bottom:8px}@media screen and (max-width:767px){.mfui-9-store-banner__links_three .mfui-9-store-banner__store-link:not(:last-child){margin-bottom:16px}}
|
|
@@ -11,10 +11,6 @@ type ThemeType = (typeof Theme)[keyof typeof Theme];
|
|
|
11
11
|
export declare const DeviceMask: {
|
|
12
12
|
readonly ANDROID: "android";
|
|
13
13
|
readonly NEW_IPHONE: "new-iphone";
|
|
14
|
-
/** DEPRECATED: 'black-iphone', 'white-iphone', 'iphone-12' */
|
|
15
|
-
readonly BLACK_IPHONE: "black-iphone";
|
|
16
|
-
readonly WHITE_IPHONE: "white-iphone";
|
|
17
|
-
readonly IPHONE_12: "iphone-12";
|
|
18
14
|
};
|
|
19
15
|
type DeviceMaskType = (typeof DeviceMask)[keyof typeof DeviceMask];
|
|
20
16
|
type LinkHrefType = StoreButtonPropsType['href'];
|
|
@@ -62,7 +58,7 @@ export interface IStoreBannerProps {
|
|
|
62
58
|
qrCode?: string;
|
|
63
59
|
/** Цветовая тема компонента */
|
|
64
60
|
theme?: ThemeType;
|
|
65
|
-
/** Изображение
|
|
61
|
+
/** Изображение телефона */
|
|
66
62
|
deviceMask: DeviceMaskType;
|
|
67
63
|
/** Изображение на дисплее телефона */
|
|
68
64
|
imageSrc: string;
|
|
@@ -21,11 +21,7 @@ var Theme = exports.Theme = {
|
|
|
21
21
|
};
|
|
22
22
|
var DeviceMask = exports.DeviceMask = {
|
|
23
23
|
ANDROID: 'android',
|
|
24
|
-
NEW_IPHONE: 'new-iphone'
|
|
25
|
-
/** DEPRECATED: 'black-iphone', 'white-iphone', 'iphone-12' */
|
|
26
|
-
BLACK_IPHONE: 'black-iphone',
|
|
27
|
-
WHITE_IPHONE: 'white-iphone',
|
|
28
|
-
IPHONE_12: 'iphone-12'
|
|
24
|
+
NEW_IPHONE: 'new-iphone'
|
|
29
25
|
};
|
|
30
26
|
var testIdPrefix = 'StoreBanner';
|
|
31
27
|
var cn = (0, _uiHelpers.cnCreate)('mfui-9-store-banner');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-9-store-button{background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:8px;display:inline-block}.mfui-9-store-button_size-all_small{height:35px;width:119px}.mfui-9-store-button_size-all_medium{height:40px;width:136px}.mfui-9-store-button_size-all_large{height:70px;width:238px}.mfui-9-store-button_size-all_medium.mfui-9-store-button_theme_app-store,.mfui-9-store-button_size-all_small.mfui-9-store-button_theme_app-store{background-image:url(img/app-store.png)}.mfui-9-store-button_size-all_medium.mfui-9-store-button_theme_galaxy-store,.mfui-9-store-button_size-all_small.mfui-9-store-button_theme_galaxy-store{background-image:url(img/galaxy-store.png)}.mfui-9-store-button_size-all_medium.mfui-9-store-button_theme_google-play,.mfui-9-store-button_size-all_small.mfui-9-store-button_theme_google-play{background-image:url(img/google-play.png)}.mfui-9-store-button_size-all_medium.mfui-9-store-button_theme_huawei-store,.mfui-9-store-button_size-all_small.mfui-9-store-button_theme_huawei-store{background-image:url(img/huawei-store.png)}.mfui-9-store-button_size-all_medium.mfui-9-store-button_theme_mi-store,.mfui-9-store-button_size-all_small.mfui-9-store-button_theme_mi-store{background-image:url(img/mi-store.png)}.mfui-9-store-button_size-all_medium.mfui-9-store-button_theme_ru-store,.mfui-9-store-button_size-all_small.mfui-9-store-button_theme_ru-store{background-image:url(img/ru-store.png)}.mfui-9-store-button_size-all_medium.mfui-9-store-button_theme_v-appstore,.mfui-9-store-button_size-all_small.mfui-9-store-button_theme_v-appstore{background-image:url(img/v-appstore.png)}.mfui-9-store-button_size-all_large.mfui-9-store-button_theme_app-store{background-image:url(img/app-store-large.png)}.mfui-9-store-button_size-all_large.mfui-9-store-button_theme_galaxy-store{background-image:url(img/galaxy-store-large.png)}.mfui-9-store-button_size-all_large.mfui-9-store-button_theme_google-play{background-image:url(img/google-play-large.png)}.mfui-9-store-button_size-all_large.mfui-9-store-button_theme_huawei-store{background-image:url(img/huawei-store-large.png)}.mfui-9-store-button_size-all_large.mfui-9-store-button_theme_mi-store{background-image:url(img/mi-store-large.png)}.mfui-9-store-button_size-all_large.mfui-9-store-button_theme_ru-store{background-image:url(img/ru-store-large.png)}.mfui-9-store-button_size-all_large.mfui-9-store-button_theme_v-appstore{background-image:url(img/v-appstore-large.png)}@media screen and (min-width:1024px){.mfui-9-store-button_size-desktop_small{height:35px;width:119px}.mfui-9-store-button_size-desktop_medium{height:40px;width:136px}.mfui-9-store-button_size-desktop_large{height:70px;width:238px}.mfui-9-store-button_size-desktop_medium.mfui-9-store-button_theme_app-store,.mfui-9-store-button_size-desktop_small.mfui-9-store-button_theme_app-store{background-image:url(img/app-store.png)}.mfui-9-store-button_size-desktop_medium.mfui-9-store-button_theme_galaxy-store,.mfui-9-store-button_size-desktop_small.mfui-9-store-button_theme_galaxy-store{background-image:url(img/galaxy-store.png)}.mfui-9-store-button_size-desktop_medium.mfui-9-store-button_theme_google-play,.mfui-9-store-button_size-desktop_small.mfui-9-store-button_theme_google-play{background-image:url(img/google-play.png)}.mfui-9-store-button_size-desktop_medium.mfui-9-store-button_theme_huawei-store,.mfui-9-store-button_size-desktop_small.mfui-9-store-button_theme_huawei-store{background-image:url(img/huawei-store.png)}.mfui-9-store-button_size-desktop_medium.mfui-9-store-button_theme_mi-store,.mfui-9-store-button_size-desktop_small.mfui-9-store-button_theme_mi-store{background-image:url(img/mi-store.png)}.mfui-9-store-button_size-desktop_medium.mfui-9-store-button_theme_ru-store,.mfui-9-store-button_size-desktop_small.mfui-9-store-button_theme_ru-store{background-image:url(img/ru-store.png)}.mfui-9-store-button_size-desktop_medium.mfui-9-store-button_theme_v-appstore,.mfui-9-store-button_size-desktop_small.mfui-9-store-button_theme_v-appstore{background-image:url(img/v-appstore.png)}.mfui-9-store-button_size-desktop_large.mfui-9-store-button_theme_app-store{background-image:url(img/app-store-large.png)}.mfui-9-store-button_size-desktop_large.mfui-9-store-button_theme_galaxy-store{background-image:url(img/galaxy-store-large.png)}.mfui-9-store-button_size-desktop_large.mfui-9-store-button_theme_google-play{background-image:url(img/google-play-large.png)}.mfui-9-store-button_size-desktop_large.mfui-9-store-button_theme_huawei-store{background-image:url(img/huawei-store-large.png)}.mfui-9-store-button_size-desktop_large.mfui-9-store-button_theme_mi-store{background-image:url(img/mi-store-large.png)}.mfui-9-store-button_size-desktop_large.mfui-9-store-button_theme_ru-store{background-image:url(img/ru-store-large.png)}.mfui-9-store-button_size-desktop_large.mfui-9-store-button_theme_v-appstore{background-image:url(img/v-appstore-large.png)}}@media screen and (min-width:1280px){.mfui-9-store-button_size-wide_small{height:35px;width:119px}.mfui-9-store-button_size-wide_medium{height:40px;width:136px}.mfui-9-store-button_size-wide_large{height:70px;width:238px}.mfui-9-store-button_size-wide_medium.mfui-9-store-button_theme_app-store,.mfui-9-store-button_size-wide_small.mfui-9-store-button_theme_app-store{background-image:url(img/app-store.png)}.mfui-9-store-button_size-wide_medium.mfui-9-store-button_theme_galaxy-store,.mfui-9-store-button_size-wide_small.mfui-9-store-button_theme_galaxy-store{background-image:url(img/galaxy-store.png)}.mfui-9-store-button_size-wide_medium.mfui-9-store-button_theme_google-play,.mfui-9-store-button_size-wide_small.mfui-9-store-button_theme_google-play{background-image:url(img/google-play.png)}.mfui-9-store-button_size-wide_medium.mfui-9-store-button_theme_huawei-store,.mfui-9-store-button_size-wide_small.mfui-9-store-button_theme_huawei-store{background-image:url(img/huawei-store.png)}.mfui-9-store-button_size-wide_medium.mfui-9-store-button_theme_mi-store,.mfui-9-store-button_size-wide_small.mfui-9-store-button_theme_mi-store{background-image:url(img/mi-store.png)}.mfui-9-store-button_size-wide_medium.mfui-9-store-button_theme_ru-store,.mfui-9-store-button_size-wide_small.mfui-9-store-button_theme_ru-store{background-image:url(img/ru-store.png)}.mfui-9-store-button_size-wide_medium.mfui-9-store-button_theme_v-appstore,.mfui-9-store-button_size-wide_small.mfui-9-store-button_theme_v-appstore{background-image:url(img/v-appstore.png)}.mfui-9-store-button_size-wide_large.mfui-9-store-button_theme_app-store{background-image:url(img/app-store-large.png)}.mfui-9-store-button_size-wide_large.mfui-9-store-button_theme_galaxy-store{background-image:url(img/galaxy-store-large.png)}.mfui-9-store-button_size-wide_large.mfui-9-store-button_theme_google-play{background-image:url(img/google-play-large.png)}.mfui-9-store-button_size-wide_large.mfui-9-store-button_theme_huawei-store{background-image:url(img/huawei-store-large.png)}.mfui-9-store-button_size-wide_large.mfui-9-store-button_theme_mi-store{background-image:url(img/mi-store-large.png)}.mfui-9-store-button_size-wide_large.mfui-9-store-button_theme_ru-store{background-image:url(img/ru-store-large.png)}.mfui-9-store-button_size-wide_large.mfui-9-store-button_theme_v-appstore{background-image:url(img/v-appstore-large.png)}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-store-button_size-tablet_small{height:35px;width:119px}.mfui-9-store-button_size-tablet_medium{height:40px;width:136px}.mfui-9-store-button_size-tablet_large{height:70px;width:238px}.mfui-9-store-button_size-tablet_medium.mfui-9-store-button_theme_app-store,.mfui-9-store-button_size-tablet_small.mfui-9-store-button_theme_app-store{background-image:url(img/app-store.png)}.mfui-9-store-button_size-tablet_medium.mfui-9-store-button_theme_galaxy-store,.mfui-9-store-button_size-tablet_small.mfui-9-store-button_theme_galaxy-store{background-image:url(img/galaxy-store.png)}.mfui-9-store-button_size-tablet_medium.mfui-9-store-button_theme_google-play,.mfui-9-store-button_size-tablet_small.mfui-9-store-button_theme_google-play{background-image:url(img/google-play.png)}.mfui-9-store-button_size-tablet_medium.mfui-9-store-button_theme_huawei-store,.mfui-9-store-button_size-tablet_small.mfui-9-store-button_theme_huawei-store{background-image:url(img/huawei-store.png)}.mfui-9-store-button_size-tablet_medium.mfui-9-store-button_theme_mi-store,.mfui-9-store-button_size-tablet_small.mfui-9-store-button_theme_mi-store{background-image:url(img/mi-store.png)}.mfui-9-store-button_size-tablet_medium.mfui-9-store-button_theme_ru-store,.mfui-9-store-button_size-tablet_small.mfui-9-store-button_theme_ru-store{background-image:url(img/ru-store.png)}.mfui-9-store-button_size-tablet_medium.mfui-9-store-button_theme_v-appstore,.mfui-9-store-button_size-tablet_small.mfui-9-store-button_theme_v-appstore{background-image:url(img/v-appstore.png)}.mfui-9-store-button_size-tablet_large.mfui-9-store-button_theme_app-store{background-image:url(img/app-store-large.png)}.mfui-9-store-button_size-tablet_large.mfui-9-store-button_theme_galaxy-store{background-image:url(img/galaxy-store-large.png)}.mfui-9-store-button_size-tablet_large.mfui-9-store-button_theme_google-play{background-image:url(img/google-play-large.png)}.mfui-9-store-button_size-tablet_large.mfui-9-store-button_theme_huawei-store{background-image:url(img/huawei-store-large.png)}.mfui-9-store-button_size-tablet_large.mfui-9-store-button_theme_mi-store{background-image:url(img/mi-store-large.png)}.mfui-9-store-button_size-tablet_large.mfui-9-store-button_theme_ru-store{background-image:url(img/ru-store-large.png)}.mfui-9-store-button_size-tablet_large.mfui-9-store-button_theme_v-appstore{background-image:url(img/v-appstore-large.png)}}@media screen and (max-width:767px){.mfui-9-store-button_size-mobile_small{height:35px;width:119px}.mfui-9-store-button_size-mobile_medium{height:40px;width:136px}.mfui-9-store-button_size-mobile_large{height:70px;width:238px}.mfui-9-store-button_size-mobile_medium.mfui-9-store-button_theme_app-store,.mfui-9-store-button_size-mobile_small.mfui-9-store-button_theme_app-store{background-image:url(img/app-store.png)}.mfui-9-store-button_size-mobile_medium.mfui-9-store-button_theme_galaxy-store,.mfui-9-store-button_size-mobile_small.mfui-9-store-button_theme_galaxy-store{background-image:url(img/galaxy-store.png)}.mfui-9-store-button_size-mobile_medium.mfui-9-store-button_theme_google-play,.mfui-9-store-button_size-mobile_small.mfui-9-store-button_theme_google-play{background-image:url(img/google-play.png)}.mfui-9-store-button_size-mobile_medium.mfui-9-store-button_theme_huawei-store,.mfui-9-store-button_size-mobile_small.mfui-9-store-button_theme_huawei-store{background-image:url(img/huawei-store.png)}.mfui-9-store-button_size-mobile_medium.mfui-9-store-button_theme_mi-store,.mfui-9-store-button_size-mobile_small.mfui-9-store-button_theme_mi-store{background-image:url(img/mi-store.png)}.mfui-9-store-button_size-mobile_medium.mfui-9-store-button_theme_ru-store,.mfui-9-store-button_size-mobile_small.mfui-9-store-button_theme_ru-store{background-image:url(img/ru-store.png)}.mfui-9-store-button_size-mobile_medium.mfui-9-store-button_theme_v-appstore,.mfui-9-store-button_size-mobile_small.mfui-9-store-button_theme_v-appstore{background-image:url(img/v-appstore.png)}.mfui-9-store-button_size-mobile_large.mfui-9-store-button_theme_app-store{background-image:url(img/app-store-large.png)}.mfui-9-store-button_size-mobile_large.mfui-9-store-button_theme_galaxy-store{background-image:url(img/galaxy-store-large.png)}.mfui-9-store-button_size-mobile_large.mfui-9-store-button_theme_google-play{background-image:url(img/google-play-large.png)}.mfui-9-store-button_size-mobile_large.mfui-9-store-button_theme_huawei-store{background-image:url(img/huawei-store-large.png)}.mfui-9-store-button_size-mobile_large.mfui-9-store-button_theme_mi-store{background-image:url(img/mi-store-large.png)}.mfui-9-store-button_size-mobile_large.mfui-9-store-button_theme_ru-store{background-image:url(img/ru-store-large.png)}.mfui-9-store-button_size-mobile_large.mfui-9-store-button_theme_v-appstore{background-image:url(img/v-appstore-large.png)}}
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-9-store-button{background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:8px;display:inline-block}.mfui-9-store-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-store-button:focus{outline:none}.mfui-9-store-button_size-all_small{height:35px;width:119px}.mfui-9-store-button_size-all_medium{height:40px;width:136px}.mfui-9-store-button_size-all_large{height:70px;width:238px}.mfui-9-store-button_size-all_medium.mfui-9-store-button_theme_app-store,.mfui-9-store-button_size-all_small.mfui-9-store-button_theme_app-store{background-image:url(img/app-store.png)}.mfui-9-store-button_size-all_medium.mfui-9-store-button_theme_galaxy-store,.mfui-9-store-button_size-all_small.mfui-9-store-button_theme_galaxy-store{background-image:url(img/galaxy-store.png)}.mfui-9-store-button_size-all_medium.mfui-9-store-button_theme_google-play,.mfui-9-store-button_size-all_small.mfui-9-store-button_theme_google-play{background-image:url(img/google-play.png)}.mfui-9-store-button_size-all_medium.mfui-9-store-button_theme_huawei-store,.mfui-9-store-button_size-all_small.mfui-9-store-button_theme_huawei-store{background-image:url(img/huawei-store.png)}.mfui-9-store-button_size-all_medium.mfui-9-store-button_theme_mi-store,.mfui-9-store-button_size-all_small.mfui-9-store-button_theme_mi-store{background-image:url(img/mi-store.png)}.mfui-9-store-button_size-all_medium.mfui-9-store-button_theme_ru-store,.mfui-9-store-button_size-all_small.mfui-9-store-button_theme_ru-store{background-image:url(img/ru-store.png)}.mfui-9-store-button_size-all_medium.mfui-9-store-button_theme_v-appstore,.mfui-9-store-button_size-all_small.mfui-9-store-button_theme_v-appstore{background-image:url(img/v-appstore.png)}.mfui-9-store-button_size-all_large.mfui-9-store-button_theme_app-store{background-image:url(img/app-store-large.png)}.mfui-9-store-button_size-all_large.mfui-9-store-button_theme_galaxy-store{background-image:url(img/galaxy-store-large.png)}.mfui-9-store-button_size-all_large.mfui-9-store-button_theme_google-play{background-image:url(img/google-play-large.png)}.mfui-9-store-button_size-all_large.mfui-9-store-button_theme_huawei-store{background-image:url(img/huawei-store-large.png)}.mfui-9-store-button_size-all_large.mfui-9-store-button_theme_mi-store{background-image:url(img/mi-store-large.png)}.mfui-9-store-button_size-all_large.mfui-9-store-button_theme_ru-store{background-image:url(img/ru-store-large.png)}.mfui-9-store-button_size-all_large.mfui-9-store-button_theme_v-appstore{background-image:url(img/v-appstore-large.png)}@media screen and (min-width:1024px){.mfui-9-store-button_size-desktop_small{height:35px;width:119px}.mfui-9-store-button_size-desktop_medium{height:40px;width:136px}.mfui-9-store-button_size-desktop_large{height:70px;width:238px}.mfui-9-store-button_size-desktop_medium.mfui-9-store-button_theme_app-store,.mfui-9-store-button_size-desktop_small.mfui-9-store-button_theme_app-store{background-image:url(img/app-store.png)}.mfui-9-store-button_size-desktop_medium.mfui-9-store-button_theme_galaxy-store,.mfui-9-store-button_size-desktop_small.mfui-9-store-button_theme_galaxy-store{background-image:url(img/galaxy-store.png)}.mfui-9-store-button_size-desktop_medium.mfui-9-store-button_theme_google-play,.mfui-9-store-button_size-desktop_small.mfui-9-store-button_theme_google-play{background-image:url(img/google-play.png)}.mfui-9-store-button_size-desktop_medium.mfui-9-store-button_theme_huawei-store,.mfui-9-store-button_size-desktop_small.mfui-9-store-button_theme_huawei-store{background-image:url(img/huawei-store.png)}.mfui-9-store-button_size-desktop_medium.mfui-9-store-button_theme_mi-store,.mfui-9-store-button_size-desktop_small.mfui-9-store-button_theme_mi-store{background-image:url(img/mi-store.png)}.mfui-9-store-button_size-desktop_medium.mfui-9-store-button_theme_ru-store,.mfui-9-store-button_size-desktop_small.mfui-9-store-button_theme_ru-store{background-image:url(img/ru-store.png)}.mfui-9-store-button_size-desktop_medium.mfui-9-store-button_theme_v-appstore,.mfui-9-store-button_size-desktop_small.mfui-9-store-button_theme_v-appstore{background-image:url(img/v-appstore.png)}.mfui-9-store-button_size-desktop_large.mfui-9-store-button_theme_app-store{background-image:url(img/app-store-large.png)}.mfui-9-store-button_size-desktop_large.mfui-9-store-button_theme_galaxy-store{background-image:url(img/galaxy-store-large.png)}.mfui-9-store-button_size-desktop_large.mfui-9-store-button_theme_google-play{background-image:url(img/google-play-large.png)}.mfui-9-store-button_size-desktop_large.mfui-9-store-button_theme_huawei-store{background-image:url(img/huawei-store-large.png)}.mfui-9-store-button_size-desktop_large.mfui-9-store-button_theme_mi-store{background-image:url(img/mi-store-large.png)}.mfui-9-store-button_size-desktop_large.mfui-9-store-button_theme_ru-store{background-image:url(img/ru-store-large.png)}.mfui-9-store-button_size-desktop_large.mfui-9-store-button_theme_v-appstore{background-image:url(img/v-appstore-large.png)}}@media screen and (min-width:1280px){.mfui-9-store-button_size-wide_small{height:35px;width:119px}.mfui-9-store-button_size-wide_medium{height:40px;width:136px}.mfui-9-store-button_size-wide_large{height:70px;width:238px}.mfui-9-store-button_size-wide_medium.mfui-9-store-button_theme_app-store,.mfui-9-store-button_size-wide_small.mfui-9-store-button_theme_app-store{background-image:url(img/app-store.png)}.mfui-9-store-button_size-wide_medium.mfui-9-store-button_theme_galaxy-store,.mfui-9-store-button_size-wide_small.mfui-9-store-button_theme_galaxy-store{background-image:url(img/galaxy-store.png)}.mfui-9-store-button_size-wide_medium.mfui-9-store-button_theme_google-play,.mfui-9-store-button_size-wide_small.mfui-9-store-button_theme_google-play{background-image:url(img/google-play.png)}.mfui-9-store-button_size-wide_medium.mfui-9-store-button_theme_huawei-store,.mfui-9-store-button_size-wide_small.mfui-9-store-button_theme_huawei-store{background-image:url(img/huawei-store.png)}.mfui-9-store-button_size-wide_medium.mfui-9-store-button_theme_mi-store,.mfui-9-store-button_size-wide_small.mfui-9-store-button_theme_mi-store{background-image:url(img/mi-store.png)}.mfui-9-store-button_size-wide_medium.mfui-9-store-button_theme_ru-store,.mfui-9-store-button_size-wide_small.mfui-9-store-button_theme_ru-store{background-image:url(img/ru-store.png)}.mfui-9-store-button_size-wide_medium.mfui-9-store-button_theme_v-appstore,.mfui-9-store-button_size-wide_small.mfui-9-store-button_theme_v-appstore{background-image:url(img/v-appstore.png)}.mfui-9-store-button_size-wide_large.mfui-9-store-button_theme_app-store{background-image:url(img/app-store-large.png)}.mfui-9-store-button_size-wide_large.mfui-9-store-button_theme_galaxy-store{background-image:url(img/galaxy-store-large.png)}.mfui-9-store-button_size-wide_large.mfui-9-store-button_theme_google-play{background-image:url(img/google-play-large.png)}.mfui-9-store-button_size-wide_large.mfui-9-store-button_theme_huawei-store{background-image:url(img/huawei-store-large.png)}.mfui-9-store-button_size-wide_large.mfui-9-store-button_theme_mi-store{background-image:url(img/mi-store-large.png)}.mfui-9-store-button_size-wide_large.mfui-9-store-button_theme_ru-store{background-image:url(img/ru-store-large.png)}.mfui-9-store-button_size-wide_large.mfui-9-store-button_theme_v-appstore{background-image:url(img/v-appstore-large.png)}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-store-button_size-tablet_small{height:35px;width:119px}.mfui-9-store-button_size-tablet_medium{height:40px;width:136px}.mfui-9-store-button_size-tablet_large{height:70px;width:238px}.mfui-9-store-button_size-tablet_medium.mfui-9-store-button_theme_app-store,.mfui-9-store-button_size-tablet_small.mfui-9-store-button_theme_app-store{background-image:url(img/app-store.png)}.mfui-9-store-button_size-tablet_medium.mfui-9-store-button_theme_galaxy-store,.mfui-9-store-button_size-tablet_small.mfui-9-store-button_theme_galaxy-store{background-image:url(img/galaxy-store.png)}.mfui-9-store-button_size-tablet_medium.mfui-9-store-button_theme_google-play,.mfui-9-store-button_size-tablet_small.mfui-9-store-button_theme_google-play{background-image:url(img/google-play.png)}.mfui-9-store-button_size-tablet_medium.mfui-9-store-button_theme_huawei-store,.mfui-9-store-button_size-tablet_small.mfui-9-store-button_theme_huawei-store{background-image:url(img/huawei-store.png)}.mfui-9-store-button_size-tablet_medium.mfui-9-store-button_theme_mi-store,.mfui-9-store-button_size-tablet_small.mfui-9-store-button_theme_mi-store{background-image:url(img/mi-store.png)}.mfui-9-store-button_size-tablet_medium.mfui-9-store-button_theme_ru-store,.mfui-9-store-button_size-tablet_small.mfui-9-store-button_theme_ru-store{background-image:url(img/ru-store.png)}.mfui-9-store-button_size-tablet_medium.mfui-9-store-button_theme_v-appstore,.mfui-9-store-button_size-tablet_small.mfui-9-store-button_theme_v-appstore{background-image:url(img/v-appstore.png)}.mfui-9-store-button_size-tablet_large.mfui-9-store-button_theme_app-store{background-image:url(img/app-store-large.png)}.mfui-9-store-button_size-tablet_large.mfui-9-store-button_theme_galaxy-store{background-image:url(img/galaxy-store-large.png)}.mfui-9-store-button_size-tablet_large.mfui-9-store-button_theme_google-play{background-image:url(img/google-play-large.png)}.mfui-9-store-button_size-tablet_large.mfui-9-store-button_theme_huawei-store{background-image:url(img/huawei-store-large.png)}.mfui-9-store-button_size-tablet_large.mfui-9-store-button_theme_mi-store{background-image:url(img/mi-store-large.png)}.mfui-9-store-button_size-tablet_large.mfui-9-store-button_theme_ru-store{background-image:url(img/ru-store-large.png)}.mfui-9-store-button_size-tablet_large.mfui-9-store-button_theme_v-appstore{background-image:url(img/v-appstore-large.png)}}@media screen and (max-width:767px){.mfui-9-store-button_size-mobile_small{height:35px;width:119px}.mfui-9-store-button_size-mobile_medium{height:40px;width:136px}.mfui-9-store-button_size-mobile_large{height:70px;width:238px}.mfui-9-store-button_size-mobile_medium.mfui-9-store-button_theme_app-store,.mfui-9-store-button_size-mobile_small.mfui-9-store-button_theme_app-store{background-image:url(img/app-store.png)}.mfui-9-store-button_size-mobile_medium.mfui-9-store-button_theme_galaxy-store,.mfui-9-store-button_size-mobile_small.mfui-9-store-button_theme_galaxy-store{background-image:url(img/galaxy-store.png)}.mfui-9-store-button_size-mobile_medium.mfui-9-store-button_theme_google-play,.mfui-9-store-button_size-mobile_small.mfui-9-store-button_theme_google-play{background-image:url(img/google-play.png)}.mfui-9-store-button_size-mobile_medium.mfui-9-store-button_theme_huawei-store,.mfui-9-store-button_size-mobile_small.mfui-9-store-button_theme_huawei-store{background-image:url(img/huawei-store.png)}.mfui-9-store-button_size-mobile_medium.mfui-9-store-button_theme_mi-store,.mfui-9-store-button_size-mobile_small.mfui-9-store-button_theme_mi-store{background-image:url(img/mi-store.png)}.mfui-9-store-button_size-mobile_medium.mfui-9-store-button_theme_ru-store,.mfui-9-store-button_size-mobile_small.mfui-9-store-button_theme_ru-store{background-image:url(img/ru-store.png)}.mfui-9-store-button_size-mobile_medium.mfui-9-store-button_theme_v-appstore,.mfui-9-store-button_size-mobile_small.mfui-9-store-button_theme_v-appstore{background-image:url(img/v-appstore.png)}.mfui-9-store-button_size-mobile_large.mfui-9-store-button_theme_app-store{background-image:url(img/app-store-large.png)}.mfui-9-store-button_size-mobile_large.mfui-9-store-button_theme_galaxy-store{background-image:url(img/galaxy-store-large.png)}.mfui-9-store-button_size-mobile_large.mfui-9-store-button_theme_google-play{background-image:url(img/google-play-large.png)}.mfui-9-store-button_size-mobile_large.mfui-9-store-button_theme_huawei-store{background-image:url(img/huawei-store-large.png)}.mfui-9-store-button_size-mobile_large.mfui-9-store-button_theme_mi-store{background-image:url(img/mi-store-large.png)}.mfui-9-store-button_size-mobile_large.mfui-9-store-button_theme_ru-store{background-image:url(img/ru-store-large.png)}.mfui-9-store-button_size-mobile_large.mfui-9-store-button_theme_v-appstore{background-image:url(img/v-appstore-large.png)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-9-title-description-box{color:var(--content)
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-9-title-description-box{color:var(--content);display:-webkit-box;display:-ms-flexbox;display:flex;font-family:inherit;width:100%}@media screen and (max-width:767px){.mfui-9-title-description-box{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:40px}}@media screen and (min-width:768px){.mfui-9-title-description-box{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;gap:32px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}}.mfui-9-title-description-box__text-content{-ms-flex-negative:1;flex-shrink:1;-ms-flex-item-align:center;align-self:center}@media screen and (max-width:1023px){.mfui-9-title-description-box__text-content{width:100%}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-9-title-description-box__text-content{width:83.3%}}@media screen and (min-width:1280px){.mfui-9-title-description-box__text-content{width:66.7%}}.mfui-9-title-description-box__item_header{white-space:pre-wrap}.mfui-9-title-description-box__item:not(:last-child){margin-bottom:16px}.mfui-9-title-description-box__description{font-size:15px;font-weight:400;line-height:24px}.mfui-9-title-description-box__description :last-child{margin-bottom:0!important}.mfui-9-title-description-box__button{-ms-flex-negative:0;flex-shrink:0;-ms-flex-item-align:end;align-self:flex-end}.mfui-9-title-description-box_text-color_white{color:var(--stcWhite)}.mfui-9-title-description-box_h-align_center:not(.mfui-9-title-description-box_with-button) .mfui-9-title-description-box__text-content{margin-inline:auto;text-align:center}.mfui-9-title-description-box_with-button .mfui-9-title-description-box__text-content{width:100%}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-title-description-box_with-button .mfui-9-title-description-box__text-content{max-width:440px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-9-title-description-box_with-button .mfui-9-title-description-box__text-content{max-width:590px}}@media screen and (min-width:1280px){.mfui-9-title-description-box_with-button .mfui-9-title-description-box__text-content{max-width:740px}}
|
|
@@ -1,22 +1,48 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import './TitleDescriptionBox.scss';
|
|
3
|
+
export type ButtonType = {
|
|
4
|
+
/** Название */
|
|
5
|
+
title: string;
|
|
6
|
+
/** Иконка */
|
|
7
|
+
icon?: React.JSX.Element;
|
|
8
|
+
/** Ссылка */
|
|
9
|
+
href?: string;
|
|
10
|
+
/** Target свойство кнопки */
|
|
11
|
+
target?: '_self' | '_blank' | '_parent' | '_top';
|
|
12
|
+
/** Rel - атрибут тега <a> */
|
|
13
|
+
rel?: string;
|
|
14
|
+
/** Задает атрибут download для тега <a> */
|
|
15
|
+
download?: boolean;
|
|
16
|
+
/** Показать стелку */
|
|
17
|
+
showArrow?: boolean;
|
|
18
|
+
/** Обработчик клика */
|
|
19
|
+
onClick?: (e: React.SyntheticEvent<EventTarget>) => void;
|
|
20
|
+
};
|
|
3
21
|
export interface ITitleDescriptionBoxProps {
|
|
4
22
|
/** Дополнительные data атрибуты к внутренним элементам */
|
|
5
23
|
dataAttrs?: {
|
|
6
24
|
root?: Record<string, string>;
|
|
25
|
+
button?: Record<string, string>;
|
|
7
26
|
};
|
|
8
27
|
/** Ссылка на корневой элемент */
|
|
9
28
|
rootRef?: React.Ref<HTMLDivElement>;
|
|
10
29
|
/** Дополнительный класс корневого элемента */
|
|
11
30
|
className?: string;
|
|
31
|
+
/** Дополнительные классы для внутренних элементов */
|
|
32
|
+
classes?: {
|
|
33
|
+
root?: string;
|
|
34
|
+
button?: string;
|
|
35
|
+
};
|
|
12
36
|
/** Заголовок */
|
|
13
37
|
title?: string | React.ReactNode[] | React.ReactNode;
|
|
14
38
|
/** Описание */
|
|
15
39
|
description?: string | React.ReactNode[] | React.ReactNode;
|
|
16
40
|
/** Цвет текста */
|
|
17
41
|
textColor?: 'white';
|
|
18
|
-
/** Горизонтальное выравнивание */
|
|
42
|
+
/** Горизонтальное выравнивание (в состоянии без кнопки) */
|
|
19
43
|
align?: 'center';
|
|
44
|
+
/** Кнопка */
|
|
45
|
+
button?: ButtonType;
|
|
20
46
|
}
|
|
21
47
|
declare const TitleDescriptionBox: React.FC<ITitleDescriptionBoxProps>;
|
|
22
48
|
export default TitleDescriptionBox;
|