@megafon/ui-shared 3.0.0-beta.6 → 3.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/CHANGELOG.md +31 -53
- package/dist/es/components/AccordionBox/AccordionBox.d.ts +2 -4
- package/dist/es/components/AccordionBox/AccordionBox.js +3 -2
- package/dist/es/components/ButtonBanner/ButtonBanner.d.ts +2 -2
- package/dist/es/components/ButtonBanner/ButtonBanner.js +4 -2
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.d.ts +2 -2
- package/dist/es/components/ButtonLinkBox/ButtonLinkBox.js +4 -2
- package/dist/es/components/Container/Container.css +163 -0
- package/dist/es/components/StoreBanner/StoreBanner.css +21 -22
- package/dist/es/components/StoreBanner/StoreBanner.d.ts +2 -2
- package/dist/es/components/StoreBanner/StoreBanner.js +5 -3
- package/dist/es/components/StoreBanner/doc/img/qr-code.png +0 -0
- package/dist/es/components/TextBox/TextBox.css +9 -0
- package/dist/es/components/TextWithIcon/TextWithIcon.css +15 -0
- package/dist/es/components/TextWithIcon/TextWithIcon.d.ts +19 -0
- package/dist/es/components/TextWithIcon/TextWithIcon.js +40 -0
- package/dist/es/components/TextWithIcon/TextWithIconItem.css +49 -0
- package/dist/es/components/TextWithIcon/TextWithIconItem.d.ts +18 -0
- package/dist/es/components/TextWithIcon/TextWithIconItem.js +35 -0
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +2 -2
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.js +4 -2
- package/dist/es/components/VideoBlock/VideoBlock.d.ts +1 -1
- package/dist/es/components/VideoBlock/VideoBlock.js +3 -3
- package/dist/es/index.d.ts +2 -0
- package/dist/es/index.js +2 -0
- package/dist/lib/components/AccordionBox/AccordionBox.d.ts +2 -4
- package/dist/lib/components/AccordionBox/AccordionBox.js +3 -2
- package/dist/lib/components/ButtonBanner/ButtonBanner.d.ts +2 -2
- package/dist/lib/components/ButtonBanner/ButtonBanner.js +4 -2
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.d.ts +2 -2
- package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.js +4 -2
- package/dist/lib/components/Container/Container.css +163 -0
- package/dist/lib/components/StoreBanner/StoreBanner.css +21 -22
- package/dist/lib/components/StoreBanner/StoreBanner.d.ts +2 -2
- package/dist/lib/components/StoreBanner/StoreBanner.js +5 -3
- package/dist/lib/components/StoreBanner/doc/img/qr-code.png +0 -0
- package/dist/lib/components/TextBox/TextBox.css +9 -0
- package/dist/lib/components/TextWithIcon/TextWithIcon.css +15 -0
- package/dist/lib/components/TextWithIcon/TextWithIcon.d.ts +19 -0
- package/dist/lib/components/TextWithIcon/TextWithIcon.js +60 -0
- package/dist/lib/components/TextWithIcon/TextWithIconItem.css +49 -0
- package/dist/lib/components/TextWithIcon/TextWithIconItem.d.ts +18 -0
- package/dist/lib/components/TextWithIcon/TextWithIconItem.js +54 -0
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +2 -2
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.js +4 -2
- package/dist/lib/components/VideoBlock/VideoBlock.d.ts +1 -1
- package/dist/lib/components/VideoBlock/VideoBlock.js +3 -3
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/index.js +16 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
@@ -3,18 +3,31 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
-
# [3.0.0
|
6
|
+
# [3.0.0](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@2.3.0...@megafon/ui-shared@3.0.0) (2022-02-09)
|
7
7
|
|
8
8
|
|
9
9
|
### Bug Fixes
|
10
10
|
|
11
|
-
*
|
12
|
-
*
|
13
|
-
*
|
11
|
+
* **components:** change tests for dataAttrs prop ([eae8ecb](https://github.com/MegafonWebLab/megafon-ui/commit/eae8ecb5104c050ec0e67357ed5edecdfb042838))
|
12
|
+
* color props values changes ([9e3dd31](https://github.com/MegafonWebLab/megafon-ui/commit/9e3dd31a8fd57012482c68c1173aae74028aa3a9))
|
13
|
+
* remove deprecated props values ([d09c460](https://github.com/MegafonWebLab/megafon-ui/commit/d09c4606ce6e41f7144e18c2216d039d859288e2))
|
14
|
+
* **accordion-box:** change type of onClickAccordion prop ([f464221](https://github.com/MegafonWebLab/megafon-ui/commit/f4642216a3869d7f11005f0162f009225f9661c4))
|
15
|
+
* **colors:** renabe green and purple to brandGreen and brandPurple to avoid postcss-colormin bug ([089dd42](https://github.com/MegafonWebLab/megafon-ui/commit/089dd42cd18db7fc83e690da45d09b88c636a6f7))
|
16
|
+
* **core:** fix build ui-core ([fa9522a](https://github.com/MegafonWebLab/megafon-ui/commit/fa9522ac0931edb7ec772ad040557997db080687))
|
17
|
+
|
18
|
+
|
19
|
+
### Features
|
20
|
+
|
21
|
+
* **accordionbox:** remove prop hasVerticalPaddings ([7dfe546](https://github.com/MegafonWebLab/megafon-ui/commit/7dfe546336aa0a94643299309e90fe7e56936e85))
|
22
|
+
* **colors:** css custom properties and color themes support ([16df5b7](https://github.com/MegafonWebLab/megafon-ui/commit/16df5b7b2644e15bb6c6e49e7347c0f8e4839e58))
|
23
|
+
* **header:** made header as a functional component ([b983934](https://github.com/MegafonWebLab/megafon-ui/commit/b983934ced137ede35f64ce2dfe0c953c1690db0))
|
24
|
+
* **textwithicon:** prop items removed, list items are now added by child components ([44ee66c](https://github.com/MegafonWebLab/megafon-ui/commit/44ee66c3964da1111957553c75046407f789e673))
|
14
25
|
|
15
26
|
|
16
27
|
### BREAKING CHANGES
|
17
28
|
|
29
|
+
* **textwithicon:** prop items removed, list items are now added by child components
|
30
|
+
* **accordionbox:** remove prop hasVerticalPaddings
|
18
31
|
* ContentArea: prop color change values from 'base' to 'white' and from 'content' to 'default';
|
19
32
|
remove depreacted value 'freshAsphalt'
|
20
33
|
Paragraph: prop color change values from 'base' to 'white' and from 'contend' to 'default';
|
@@ -22,82 +35,47 @@ remove deprecared values 'freshAsphalt' and 'clearWhite'
|
|
22
35
|
StoreBanner: prop theme change value from 'black' to 'default'; remove deprecated value 'clearWhite'
|
23
36
|
* ContentArea, Paragraph, StoreBanner and Breadcrumbs components from no don't have
|
24
37
|
freshAsphalt and clearWhite as values for colorize props
|
38
|
+
* **accordion-box:** remove parameter 'title' in onClickAccordion prop
|
39
|
+
* **colors:** green, green20, green80, purple, purple20 and purple80 colors now have 'brand'
|
40
|
+
prefix (e.g. brandGreen)
|
41
|
+
* **colors:** read commit description
|
25
42
|
|
26
43
|
|
27
44
|
|
28
45
|
|
29
46
|
|
30
|
-
# [3.0
|
47
|
+
# [2.3.0](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@2.2.1...@megafon/ui-shared@2.3.0) (2022-02-07)
|
31
48
|
|
32
49
|
|
33
50
|
### Features
|
34
51
|
|
35
|
-
* **
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
# [3.0.0-beta.4](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@3.0.0-beta.3...@megafon/ui-shared@3.0.0-beta.4) (2022-01-27)
|
42
|
-
|
43
|
-
**Note:** Version bump only for package @megafon/ui-shared
|
52
|
+
* **container:** fix margin rules for component TextWithIcon ([3c2de9d](https://github.com/MegafonWebLab/megafon-ui/commit/3c2de9db5a01bdd246daee22dd5545e21dce55ba))
|
53
|
+
* **textbox:** add styles for use TextWithIcon inside component ([c993657](https://github.com/MegafonWebLab/megafon-ui/commit/c993657a2f143f87607a7d1474d44c4596d73558))
|
44
54
|
|
45
55
|
|
46
56
|
|
47
57
|
|
48
58
|
|
49
|
-
|
59
|
+
## [2.2.1](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@2.2.0...@megafon/ui-shared@2.2.1) (2022-01-31)
|
50
60
|
|
51
61
|
|
52
62
|
### Bug Fixes
|
53
63
|
|
54
|
-
* **
|
55
|
-
|
56
|
-
|
57
|
-
### BREAKING CHANGES
|
58
|
-
|
59
|
-
* **accordion-box:** remove parameter 'title' in onClickAccordion prop
|
60
|
-
|
64
|
+
* **storebanner:** update qr code image for storebanner examples and fix qr code container styles ([1845222](https://github.com/MegafonWebLab/megafon-ui/commit/1845222e5211e70a8f5aa36ab4a710ecd46e8a14))
|
61
65
|
|
62
66
|
|
63
67
|
|
64
68
|
|
65
|
-
# [3.0.0-beta.2](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@3.0.0-beta.1...@megafon/ui-shared@3.0.0-beta.2) (2022-01-21)
|
66
|
-
|
67
|
-
**Note:** Version bump only for package @megafon/ui-shared
|
68
|
-
|
69
69
|
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
# [3.0.0-beta.1](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@3.0.0-beta.0...@megafon/ui-shared@3.0.0-beta.1) (2022-01-20)
|
74
|
-
|
75
|
-
|
76
|
-
### Bug Fixes
|
77
|
-
|
78
|
-
* **colors:** renabe green and purple to brandGreen and brandPurple to avoid postcss-colormin bug ([563d97c](https://github.com/MegafonWebLab/megafon-ui/commit/563d97c42900099415a6872f57b500b87aeed647))
|
79
|
-
|
80
|
-
|
81
|
-
### BREAKING CHANGES
|
82
|
-
|
83
|
-
* **colors:** green, green20, green80, purple, purple20 and purple80 colors now have 'brand'
|
84
|
-
prefix (e.g. brandGreen)
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
# [3.0.0-beta.0](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@2.1.5...@megafon/ui-shared@3.0.0-beta.0) (2022-01-19)
|
70
|
+
# [2.2.0](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@2.1.5...@megafon/ui-shared@2.2.0) (2022-01-24)
|
91
71
|
|
92
72
|
|
93
73
|
### Features
|
94
74
|
|
95
|
-
* **
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
* **colors:** read commit description
|
75
|
+
* **accordionbox:** props hasVerticalPaddings marked as deprecated ([7dbb43b](https://github.com/MegafonWebLab/megafon-ui/commit/7dbb43b1178f4055ecd0f4eed5614024da638091))
|
76
|
+
* **container:** add rules for TextWithIcon component ([4c692ab](https://github.com/MegafonWebLab/megafon-ui/commit/4c692ab43db115dc7c5aeba39713d6f2ae2daaff))
|
77
|
+
* **textwithicon:** add component TextWithIcon ([b772728](https://github.com/MegafonWebLab/megafon-ui/commit/b772728b8739dbbfa550eef1c8eedb56cda620c9))
|
78
|
+
* **videoblock:** made button optional ([eef7c17](https://github.com/MegafonWebLab/megafon-ui/commit/eef7c174415b28fe3512d8c28fcd9bb73774dd2e))
|
101
79
|
|
102
80
|
|
103
81
|
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import './AccordionBox.less';
|
3
3
|
export interface IAccordionBox {
|
4
|
-
/**
|
4
|
+
/** Дополнительные data атрибуты к внутренним элементам */
|
5
5
|
dataAttrs?: {
|
6
|
-
|
6
|
+
root?: Record<string, string>;
|
7
7
|
};
|
8
8
|
/** Ссылка на корневой элемент */
|
9
9
|
rootRef?: React.Ref<HTMLDivElement>;
|
@@ -15,8 +15,6 @@ export interface IAccordionBox {
|
|
15
15
|
isFullWidth?: boolean;
|
16
16
|
/** Центрирование по горизонтали для расширения 1280+ */
|
17
17
|
hCenterAlignWide?: boolean;
|
18
|
-
/** Вертикальные отступы */
|
19
|
-
hasVerticalPaddings?: boolean;
|
20
18
|
/** Дополнительный класс для корнеовго элемента */
|
21
19
|
className?: string;
|
22
20
|
/** Дополнительные классы для корневого и внутренних элементов */
|
@@ -41,7 +41,9 @@ var AccordionBox = function AccordionBox(_a) {
|
|
41
41
|
};
|
42
42
|
|
43
43
|
AccordionBox.propTypes = {
|
44
|
-
dataAttrs: PropTypes.
|
44
|
+
dataAttrs: PropTypes.shape({
|
45
|
+
root: PropTypes.objectOf(PropTypes.string.isRequired)
|
46
|
+
}),
|
45
47
|
rootRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
|
46
48
|
current: PropTypes.elementType
|
47
49
|
}), PropTypes.any])]),
|
@@ -49,7 +51,6 @@ AccordionBox.propTypes = {
|
|
49
51
|
isFullWidth: PropTypes.bool,
|
50
52
|
isOpened: PropTypes.bool,
|
51
53
|
hCenterAlignWide: PropTypes.bool,
|
52
|
-
hasVerticalPaddings: PropTypes.bool,
|
53
54
|
className: PropTypes.string,
|
54
55
|
classes: PropTypes.shape({
|
55
56
|
openedClass: PropTypes.string,
|
@@ -16,9 +16,9 @@ export declare const ImageScaling: {
|
|
16
16
|
};
|
17
17
|
declare type ImageScalingType = typeof ImageScaling[keyof typeof ImageScaling];
|
18
18
|
export interface IButtonBannerProps {
|
19
|
-
/**
|
19
|
+
/** Дополнительные data атрибуты к внутренним элементам */
|
20
20
|
dataAttrs?: {
|
21
|
-
|
21
|
+
root?: Record<string, string>;
|
22
22
|
};
|
23
23
|
/** Дополнительный css класс для корневого элемента */
|
24
24
|
className?: string;
|
@@ -54,7 +54,7 @@ var ButtonBanner = function ButtonBanner(_ref) {
|
|
54
54
|
onClick: onButtonClick,
|
55
55
|
download: buttonDownload
|
56
56
|
}, buttonText);
|
57
|
-
return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs), {
|
57
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
58
58
|
className: cn({
|
59
59
|
image: !!imageUrl,
|
60
60
|
scaling: imageScaling
|
@@ -85,7 +85,9 @@ var ButtonBanner = function ButtonBanner(_ref) {
|
|
85
85
|
};
|
86
86
|
|
87
87
|
ButtonBanner.propTypes = {
|
88
|
-
dataAttrs: PropTypes.
|
88
|
+
dataAttrs: PropTypes.shape({
|
89
|
+
root: PropTypes.objectOf(PropTypes.string.isRequired)
|
90
|
+
}),
|
89
91
|
className: PropTypes.string,
|
90
92
|
classes: PropTypes.shape({
|
91
93
|
root: PropTypes.string,
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import React, { Ref } from 'react';
|
2
2
|
import './ButtonLinkBox.less';
|
3
3
|
export interface IButtonLinkBoxProps {
|
4
|
-
/**
|
4
|
+
/** Дополнительные data атрибуты к внутренним элементам */
|
5
5
|
dataAttrs?: {
|
6
|
-
|
6
|
+
root?: Record<string, string>;
|
7
7
|
};
|
8
8
|
/** Дополнительный класс корневого элемента */
|
9
9
|
className?: string;
|
@@ -26,7 +26,7 @@ var ButtonLinkBox = function ButtonLinkBox(_ref) {
|
|
26
26
|
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
27
27
|
onButtonClick = _ref.onButtonClick,
|
28
28
|
onLinkClick = _ref.onLinkClick;
|
29
|
-
return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs), {
|
29
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
30
30
|
className: cn({
|
31
31
|
'h-align': hAlign
|
32
32
|
}, [className, classes.root]),
|
@@ -53,7 +53,9 @@ var ButtonLinkBox = function ButtonLinkBox(_ref) {
|
|
53
53
|
};
|
54
54
|
|
55
55
|
ButtonLinkBox.propTypes = {
|
56
|
-
dataAttrs: PropTypes.
|
56
|
+
dataAttrs: PropTypes.shape({
|
57
|
+
root: PropTypes.objectOf(PropTypes.string.isRequired)
|
58
|
+
}),
|
57
59
|
className: PropTypes.string,
|
58
60
|
classes: PropTypes.shape({
|
59
61
|
root: PropTypes.string,
|
@@ -344,6 +344,9 @@ h5 {
|
|
344
344
|
.mfui-container .mfui-title-description-box + .mfui-download-links {
|
345
345
|
margin-top: 32px;
|
346
346
|
}
|
347
|
+
.mfui-container .mfui-title-description-box + .mfui-text-with-icon {
|
348
|
+
margin-top: 24px;
|
349
|
+
}
|
347
350
|
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
348
351
|
.mfui-container .mfui-title-description-box + .mfui-benefits-icons {
|
349
352
|
margin-top: 48px;
|
@@ -2230,6 +2233,9 @@ h5 {
|
|
2230
2233
|
.mfui-container .mfui-text-box + .mfui-download-links {
|
2231
2234
|
margin-top: 32px;
|
2232
2235
|
}
|
2236
|
+
.mfui-container .mfui-text-box + .mfui-text-with-icon {
|
2237
|
+
margin-top: 32px;
|
2238
|
+
}
|
2233
2239
|
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
2234
2240
|
.mfui-container .mfui-text-box + .mfui-benefits-icons {
|
2235
2241
|
margin-top: 48px;
|
@@ -2869,6 +2875,163 @@ h5 {
|
|
2869
2875
|
.mfui-container .mfui-page-title + .mfui-button-link-box {
|
2870
2876
|
margin-top: 0 !important;
|
2871
2877
|
}
|
2878
|
+
.mfui-container .mfui-text-with-icon + .mfui-benefits-pictures {
|
2879
|
+
margin-top: 40px;
|
2880
|
+
}
|
2881
|
+
.mfui-container .mfui-text-with-icon + .mfui-cards-box {
|
2882
|
+
margin-top: 40px;
|
2883
|
+
}
|
2884
|
+
.mfui-container .mfui-text-with-icon + .mfui-carousel-box {
|
2885
|
+
margin-top: 40px;
|
2886
|
+
}
|
2887
|
+
.mfui-container .mfui-text-with-icon + .mfui-video-block {
|
2888
|
+
margin-top: 40px;
|
2889
|
+
}
|
2890
|
+
.mfui-container .mfui-text-with-icon + .mfui-tabs-box {
|
2891
|
+
margin-top: 40px;
|
2892
|
+
}
|
2893
|
+
.mfui-container .mfui-text-with-icon + .mfui-partners {
|
2894
|
+
margin-top: 40px;
|
2895
|
+
}
|
2896
|
+
.mfui-container .mfui-text-with-icon + .mfui-instructions {
|
2897
|
+
margin-top: 40px;
|
2898
|
+
}
|
2899
|
+
.mfui-container .mfui-text-with-icon + .mfui-property {
|
2900
|
+
margin-top: 40px;
|
2901
|
+
}
|
2902
|
+
.mfui-container .mfui-text-with-icon + .mfui-table {
|
2903
|
+
margin-top: 40px;
|
2904
|
+
}
|
2905
|
+
.mfui-container .mfui-text-with-icon + .mfui-accordion-box {
|
2906
|
+
margin-top: 40px;
|
2907
|
+
}
|
2908
|
+
.mfui-container .mfui-text-with-icon + .mfui-button-link-box {
|
2909
|
+
margin-top: 40px;
|
2910
|
+
}
|
2911
|
+
.mfui-container .mfui-text-with-icon + .mfui-download-links {
|
2912
|
+
margin-top: 40px;
|
2913
|
+
}
|
2914
|
+
.mfui-container .mfui-text-with-icon + .mfui-text-box {
|
2915
|
+
margin-top: 32px;
|
2916
|
+
}
|
2917
|
+
.mfui-container .mfui-text-with-icon + .mfui-picture-with-description {
|
2918
|
+
margin-top: 40px;
|
2919
|
+
}
|
2920
|
+
.mfui-container .mfui-text-with-icon + .mfui-store-banner {
|
2921
|
+
margin-top: 40px;
|
2922
|
+
}
|
2923
|
+
.mfui-container .mfui-text-with-icon + .mfui-button-banner {
|
2924
|
+
margin-top: 40px;
|
2925
|
+
}
|
2926
|
+
.mfui-container .mfui-text-with-icon + .mfui-steps {
|
2927
|
+
margin-top: 40px;
|
2928
|
+
}
|
2929
|
+
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
2930
|
+
.mfui-container .mfui-text-with-icon + .mfui-benefits-pictures {
|
2931
|
+
margin-top: 48px;
|
2932
|
+
}
|
2933
|
+
.mfui-container .mfui-text-with-icon + .mfui-cards-box {
|
2934
|
+
margin-top: 48px;
|
2935
|
+
}
|
2936
|
+
.mfui-container .mfui-text-with-icon + .mfui-carousel-box {
|
2937
|
+
margin-top: 48px;
|
2938
|
+
}
|
2939
|
+
.mfui-container .mfui-text-with-icon + .mfui-video-block {
|
2940
|
+
margin-top: 48px;
|
2941
|
+
}
|
2942
|
+
.mfui-container .mfui-text-with-icon + .mfui-tabs-box {
|
2943
|
+
margin-top: 48px;
|
2944
|
+
}
|
2945
|
+
.mfui-container .mfui-text-with-icon + .mfui-partners {
|
2946
|
+
margin-top: 48px;
|
2947
|
+
}
|
2948
|
+
.mfui-container .mfui-text-with-icon + .mfui-instructions {
|
2949
|
+
margin-top: 48px;
|
2950
|
+
}
|
2951
|
+
.mfui-container .mfui-text-with-icon + .mfui-property {
|
2952
|
+
margin-top: 48px;
|
2953
|
+
}
|
2954
|
+
.mfui-container .mfui-text-with-icon + .mfui-table {
|
2955
|
+
margin-top: 48px;
|
2956
|
+
}
|
2957
|
+
.mfui-container .mfui-text-with-icon + .mfui-accordion-box {
|
2958
|
+
margin-top: 48px;
|
2959
|
+
}
|
2960
|
+
.mfui-container .mfui-text-with-icon + .mfui-button-link-box {
|
2961
|
+
margin-top: 48px;
|
2962
|
+
}
|
2963
|
+
.mfui-container .mfui-text-with-icon + .mfui-download-links {
|
2964
|
+
margin-top: 48px;
|
2965
|
+
}
|
2966
|
+
.mfui-container .mfui-text-with-icon + .mfui-text-box {
|
2967
|
+
margin-top: 32px;
|
2968
|
+
}
|
2969
|
+
.mfui-container .mfui-text-with-icon + .mfui-picture-with-description {
|
2970
|
+
margin-top: 48px;
|
2971
|
+
}
|
2972
|
+
.mfui-container .mfui-text-with-icon + .mfui-store-banner {
|
2973
|
+
margin-top: 48px;
|
2974
|
+
}
|
2975
|
+
.mfui-container .mfui-text-with-icon + .mfui-button-banner {
|
2976
|
+
margin-top: 48px;
|
2977
|
+
}
|
2978
|
+
.mfui-container .mfui-text-with-icon + .mfui-steps {
|
2979
|
+
margin-top: 48px;
|
2980
|
+
}
|
2981
|
+
}
|
2982
|
+
@media screen and (min-width: 1024px) {
|
2983
|
+
.mfui-container .mfui-text-with-icon + .mfui-benefits-pictures {
|
2984
|
+
margin-top: 56px;
|
2985
|
+
}
|
2986
|
+
.mfui-container .mfui-text-with-icon + .mfui-cards-box {
|
2987
|
+
margin-top: 56px;
|
2988
|
+
}
|
2989
|
+
.mfui-container .mfui-text-with-icon + .mfui-carousel-box {
|
2990
|
+
margin-top: 56px;
|
2991
|
+
}
|
2992
|
+
.mfui-container .mfui-text-with-icon + .mfui-video-block {
|
2993
|
+
margin-top: 56px;
|
2994
|
+
}
|
2995
|
+
.mfui-container .mfui-text-with-icon + .mfui-tabs-box {
|
2996
|
+
margin-top: 56px;
|
2997
|
+
}
|
2998
|
+
.mfui-container .mfui-text-with-icon + .mfui-partners {
|
2999
|
+
margin-top: 56px;
|
3000
|
+
}
|
3001
|
+
.mfui-container .mfui-text-with-icon + .mfui-instructions {
|
3002
|
+
margin-top: 56px;
|
3003
|
+
}
|
3004
|
+
.mfui-container .mfui-text-with-icon + .mfui-property {
|
3005
|
+
margin-top: 56px;
|
3006
|
+
}
|
3007
|
+
.mfui-container .mfui-text-with-icon + .mfui-table {
|
3008
|
+
margin-top: 56px;
|
3009
|
+
}
|
3010
|
+
.mfui-container .mfui-text-with-icon + .mfui-accordion-box {
|
3011
|
+
margin-top: 56px;
|
3012
|
+
}
|
3013
|
+
.mfui-container .mfui-text-with-icon + .mfui-button-link-box {
|
3014
|
+
margin-top: 48px;
|
3015
|
+
}
|
3016
|
+
.mfui-container .mfui-text-with-icon + .mfui-download-links {
|
3017
|
+
margin-top: 48px;
|
3018
|
+
}
|
3019
|
+
.mfui-container .mfui-text-with-icon + .mfui-text-box {
|
3020
|
+
margin-top: 32px;
|
3021
|
+
}
|
3022
|
+
.mfui-container .mfui-text-with-icon + .mfui-picture-with-description {
|
3023
|
+
margin-top: 56px;
|
3024
|
+
}
|
3025
|
+
.mfui-container .mfui-text-with-icon + .mfui-store-banner {
|
3026
|
+
margin-top: 56px;
|
3027
|
+
}
|
3028
|
+
.mfui-container .mfui-text-with-icon + .mfui-button-banner {
|
3029
|
+
margin-top: 56px;
|
3030
|
+
}
|
3031
|
+
.mfui-container .mfui-text-with-icon + .mfui-steps {
|
3032
|
+
margin-top: 56px;
|
3033
|
+
}
|
3034
|
+
}
|
2872
3035
|
.mfui-container_disable-padding-top {
|
2873
3036
|
padding-top: 0 !important;
|
2874
3037
|
}
|
@@ -159,7 +159,16 @@ h5 {
|
|
159
159
|
display: flex;
|
160
160
|
}
|
161
161
|
.mfui-store-banner__qr-code {
|
162
|
+
-ms-flex-item-align: center;
|
163
|
+
align-self: center;
|
164
|
+
-webkit-box-sizing: border-box;
|
165
|
+
box-sizing: border-box;
|
166
|
+
width: 90px;
|
167
|
+
height: 90px;
|
162
168
|
margin-right: 16px;
|
169
|
+
border: 1px solid var(--spbSky1);
|
170
|
+
border-radius: 8px;
|
171
|
+
background-color: var(--base);
|
163
172
|
}
|
164
173
|
@media screen and (max-width: 767px) {
|
165
174
|
.mfui-store-banner__qr-code {
|
@@ -180,6 +189,9 @@ h5 {
|
|
180
189
|
.mfui-store-banner__store-link {
|
181
190
|
width: 136px;
|
182
191
|
height: 40px;
|
192
|
+
margin-right: 8px;
|
193
|
+
margin-bottom: 10px;
|
194
|
+
margin-left: 8px;
|
183
195
|
}
|
184
196
|
@media screen and (max-width: 767px) {
|
185
197
|
.mfui-store-banner__store-link {
|
@@ -187,9 +199,8 @@ h5 {
|
|
187
199
|
height: 35px;
|
188
200
|
}
|
189
201
|
}
|
190
|
-
.mfui-store-banner__store-link:
|
191
|
-
margin-
|
192
|
-
margin-bottom: 10px;
|
202
|
+
.mfui-store-banner__store-link:last-child {
|
203
|
+
margin-bottom: 0;
|
193
204
|
}
|
194
205
|
.mfui-store-banner__stores {
|
195
206
|
display: -webkit-box;
|
@@ -208,6 +219,11 @@ h5 {
|
|
208
219
|
justify-content: center;
|
209
220
|
}
|
210
221
|
}
|
222
|
+
@media screen and (min-width: 768px) {
|
223
|
+
.mfui-store-banner__stores {
|
224
|
+
margin-left: -8px;
|
225
|
+
}
|
226
|
+
}
|
211
227
|
.mfui-store-banner__text {
|
212
228
|
margin-bottom: 32px;
|
213
229
|
}
|
@@ -229,16 +245,10 @@ h5 {
|
|
229
245
|
-o-object-fit: contain;
|
230
246
|
object-fit: contain;
|
231
247
|
}
|
232
|
-
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
233
|
-
.mfui-store-banner__links_three .mfui-store-banner__qr-code {
|
234
|
-
width: 120px;
|
235
|
-
height: 120px;
|
236
|
-
}
|
237
|
-
}
|
238
248
|
@media screen and (min-width: 1280px) {
|
239
249
|
.mfui-store-banner__links_three .mfui-store-banner__qr-code {
|
240
|
-
max-width:
|
241
|
-
max-height:
|
250
|
+
max-width: 90px;
|
251
|
+
max-height: 90px;
|
242
252
|
}
|
243
253
|
}
|
244
254
|
.mfui-store-banner__links_three .mfui-store-banner__qr-code + .mfui-store-banner__stores {
|
@@ -260,12 +270,6 @@ h5 {
|
|
260
270
|
margin: 0 auto;
|
261
271
|
}
|
262
272
|
}
|
263
|
-
.mfui-store-banner__links_three .mfui-store-banner__qr-code + .mfui-store-banner__stores .mfui-store-banner__store-link {
|
264
|
-
margin-right: 16px;
|
265
|
-
}
|
266
|
-
.mfui-store-banner__links_three .mfui-store-banner__qr-code + .mfui-store-banner__stores .mfui-store-banner__store-link:not(:first-child) {
|
267
|
-
margin-right: 0;
|
268
|
-
}
|
269
273
|
.mfui-store-banner__links_three .mfui-store-banner__store-link {
|
270
274
|
width: 136px;
|
271
275
|
height: 40px;
|
@@ -284,8 +288,3 @@ h5 {
|
|
284
288
|
margin-bottom: 16px;
|
285
289
|
}
|
286
290
|
}
|
287
|
-
@media screen and (max-width: 1023px) {
|
288
|
-
.mfui-store-banner__links_three .mfui-store-banner__store-link:not(:first-child) {
|
289
|
-
margin-right: 0;
|
290
|
-
}
|
291
|
-
}
|
@@ -56,9 +56,9 @@ export interface IStoreBannerProps {
|
|
56
56
|
};
|
57
57
|
/** Ссылка на корневой элемент */
|
58
58
|
rootRef?: React.Ref<HTMLDivElement>;
|
59
|
-
/**
|
59
|
+
/** Дополнительные data атрибуты к внутренним элементам */
|
60
60
|
dataAttrs?: {
|
61
|
-
|
61
|
+
root?: Record<string, string>;
|
62
62
|
};
|
63
63
|
}
|
64
64
|
declare const StoreBanner: React.FC<IStoreBannerProps>;
|
@@ -52,7 +52,7 @@ var StoreBanner = function StoreBanner(_ref) {
|
|
52
52
|
mask: deviceMask
|
53
53
|
}, [className, rootClassName]),
|
54
54
|
ref: rootRef
|
55
|
-
}, filterDataAttrs(dataAttrs)), /*#__PURE__*/React.createElement("div", {
|
55
|
+
}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root)), /*#__PURE__*/React.createElement("div", {
|
56
56
|
className: cn('container')
|
57
57
|
}, /*#__PURE__*/React.createElement("div", {
|
58
58
|
className: cn('grid')
|
@@ -139,7 +139,9 @@ StoreBanner.propTypes = {
|
|
139
139
|
rootRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
|
140
140
|
current: PropTypes.elementType
|
141
141
|
}), PropTypes.any])]),
|
142
|
-
|
143
|
-
|
142
|
+
theme: PropTypes.oneOf(Object.values(Theme)),
|
143
|
+
dataAttrs: PropTypes.shape({
|
144
|
+
root: PropTypes.objectOf(PropTypes.string.isRequired)
|
145
|
+
})
|
144
146
|
};
|
145
147
|
export default StoreBanner;
|
Binary file
|
@@ -14,3 +14,12 @@ h5 {
|
|
14
14
|
.mfui-text-box_text-center {
|
15
15
|
text-align: center;
|
16
16
|
}
|
17
|
+
.mfui-text-box .mfui-text-with-icon {
|
18
|
+
margin: 24px 0;
|
19
|
+
}
|
20
|
+
.mfui-text-box .mfui-text-with-icon + .mfui-header {
|
21
|
+
margin-top: 32px;
|
22
|
+
}
|
23
|
+
.mfui-text-box .mfui-text-box-picture + .mfui-text-with-icon {
|
24
|
+
margin: 32px 0 24px;
|
25
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { ITextWithIconItem } from './TextWithIconItem';
|
3
|
+
import './TextWithIcon.less';
|
4
|
+
export interface ITextWithIconProps {
|
5
|
+
/** Заголовок */
|
6
|
+
title?: string;
|
7
|
+
/** Ссылка на корневой элемент */
|
8
|
+
rootRef?: React.Ref<HTMLDivElement>;
|
9
|
+
/** Дополнительные data атрибуты к внутренним элементам */
|
10
|
+
dataAttrs?: {
|
11
|
+
root?: Record<string, string>;
|
12
|
+
};
|
13
|
+
/** Дополнительный класс для корневого элемента */
|
14
|
+
className?: string;
|
15
|
+
/** Допустимый дочерний компонент */
|
16
|
+
children: React.ReactElement<ITextWithIconItem>[] | React.ReactElement<ITextWithIconItem>;
|
17
|
+
}
|
18
|
+
declare const TextWithIcon: React.FC<ITextWithIconProps>;
|
19
|
+
export default TextWithIcon;
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
2
|
+
import * as React from 'react';
|
3
|
+
import { Header, Grid, GridColumn } from '@megafon/ui-core';
|
4
|
+
import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
5
|
+
import * as PropTypes from 'prop-types';
|
6
|
+
import "./TextWithIcon.css";
|
7
|
+
var cn = cnCreate('mfui-text-with-icon');
|
8
|
+
|
9
|
+
var TextWithIcon = function TextWithIcon(_ref) {
|
10
|
+
var title = _ref.title,
|
11
|
+
rootRef = _ref.rootRef,
|
12
|
+
dataAttrs = _ref.dataAttrs,
|
13
|
+
className = _ref.className,
|
14
|
+
children = _ref.children;
|
15
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
16
|
+
className: cn([className]),
|
17
|
+
ref: rootRef
|
18
|
+
}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root)), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(GridColumn, {
|
19
|
+
mobile: '12',
|
20
|
+
tablet: '7',
|
21
|
+
desktop: '6',
|
22
|
+
wide: '6'
|
23
|
+
}, title && /*#__PURE__*/React.createElement(Header, {
|
24
|
+
className: cn('header'),
|
25
|
+
as: "h5"
|
26
|
+
}, title), children)));
|
27
|
+
};
|
28
|
+
|
29
|
+
TextWithIcon.propTypes = {
|
30
|
+
title: PropTypes.string,
|
31
|
+
rootRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
|
32
|
+
current: PropTypes.elementType
|
33
|
+
}), PropTypes.any])]),
|
34
|
+
dataAttrs: PropTypes.shape({
|
35
|
+
root: PropTypes.objectOf(PropTypes.string.isRequired)
|
36
|
+
}),
|
37
|
+
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.element.isRequired), PropTypes.element.isRequired]).isRequired,
|
38
|
+
className: PropTypes.string
|
39
|
+
};
|
40
|
+
export default TextWithIcon;
|