@megafon/ui-shared 4.13.2 → 4.15.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 +22 -0
- package/dist/es/components/ButtonBanner/ButtonBanner.css +4 -4
- package/dist/es/components/Card/Card.css +3 -3
- package/dist/es/components/Container/Container.css +32 -12
- package/dist/es/components/Property/Property.css +3 -1
- package/dist/es/components/Property/Property.d.ts +2 -0
- package/dist/es/components/Property/Property.js +4 -0
- package/dist/es/components/StoreBanner/StoreBanner.css +10 -1
- package/dist/es/components/StoreBanner/StoreBanner.d.ts +1 -0
- package/dist/es/components/StoreBanner/StoreBanner.js +2 -1
- package/dist/lib/components/ButtonBanner/ButtonBanner.css +4 -4
- package/dist/lib/components/Card/Card.css +3 -3
- package/dist/lib/components/Container/Container.css +32 -12
- package/dist/lib/components/Property/Property.css +3 -1
- package/dist/lib/components/Property/Property.d.ts +2 -0
- package/dist/lib/components/Property/Property.js +4 -0
- package/dist/lib/components/StoreBanner/StoreBanner.css +10 -1
- package/dist/lib/components/StoreBanner/StoreBanner.d.ts +1 -0
- package/dist/lib/components/StoreBanner/StoreBanner.js +2 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,28 @@
|
|
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
|
+
# [4.15.0](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@4.14.0...@megafon/ui-shared@4.15.0) (2023-03-20)
|
7
|
+
|
8
|
+
|
9
|
+
### Features
|
10
|
+
|
11
|
+
* **storebanner:** add new theme ([908aa58](https://github.com/MegafonWebLab/megafon-ui/commit/908aa588067c8e450ef17b10a9c9025bfae9d3c1))
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
# [4.14.0](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@4.13.2...@megafon/ui-shared@4.14.0) (2023-03-15)
|
18
|
+
|
19
|
+
|
20
|
+
### Features
|
21
|
+
|
22
|
+
* **property:** add prop disableBorderTop ([dd74ac7](https://github.com/MegafonWebLab/megafon-ui/commit/dd74ac7e4391cbaf947b05b409ca82b068c1a490))
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
6
28
|
## [4.13.2](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@4.13.1...@megafon/ui-shared@4.13.2) (2023-03-07)
|
7
29
|
|
8
30
|
**Note:** Version bump only for package @megafon/ui-shared
|
@@ -9,11 +9,11 @@ h5 {
|
|
9
9
|
position: relative;
|
10
10
|
border: 1px solid var(--spbSky2);
|
11
11
|
background-color: var(--base);
|
12
|
-
border-radius: 0
|
12
|
+
border-radius: 0 12px 12px 0;
|
13
13
|
}
|
14
14
|
@media screen and (max-width: 767px) {
|
15
15
|
.mfui-button-banner {
|
16
|
-
border-radius: 0 0
|
16
|
+
border-radius: 0 0 12px 12px;
|
17
17
|
}
|
18
18
|
}
|
19
19
|
.mfui-button-banner:before {
|
@@ -79,11 +79,11 @@ h5 {
|
|
79
79
|
overflow: hidden;
|
80
80
|
background-repeat: no-repeat;
|
81
81
|
background-position: center;
|
82
|
-
border-radius: 0
|
82
|
+
border-radius: 0 12px 12px 0;
|
83
83
|
}
|
84
84
|
@media screen and (max-width: 767px) {
|
85
85
|
.mfui-button-banner__media {
|
86
|
-
border-radius: 0 0
|
86
|
+
border-radius: 0 0 12px 12px;
|
87
87
|
}
|
88
88
|
}
|
89
89
|
@media screen and (max-width: 767px) {
|
@@ -9,11 +9,11 @@ h5 {
|
|
9
9
|
display: -webkit-box;
|
10
10
|
display: -ms-flexbox;
|
11
11
|
display: flex;
|
12
|
-
border-radius:
|
12
|
+
border-radius: 12px;
|
13
13
|
overflow: hidden;
|
14
14
|
background-color: var(--base);
|
15
|
-
-webkit-box-shadow: 0
|
16
|
-
box-shadow: 0
|
15
|
+
-webkit-box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
|
16
|
+
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
|
17
17
|
}
|
18
18
|
.mfui-card__inner {
|
19
19
|
display: -webkit-box;
|
@@ -347,6 +347,9 @@ h5 {
|
|
347
347
|
.mfui-container .mfui-title-description-box + .mfui-text-with-icon {
|
348
348
|
margin-top: 24px;
|
349
349
|
}
|
350
|
+
.mfui-container .mfui-title-description-box + .mfui-audio-player {
|
351
|
+
margin-top: 32px;
|
352
|
+
}
|
350
353
|
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
351
354
|
.mfui-container .mfui-title-description-box + .mfui-benefits-icons {
|
352
355
|
margin-top: 48px;
|
@@ -393,12 +396,6 @@ h5 {
|
|
393
396
|
.mfui-container .mfui-title-description-box + .mfui-picture-with-description {
|
394
397
|
margin-top: 48px;
|
395
398
|
}
|
396
|
-
.mfui-container .mfui-title-description-box + .mfui-button-link-box {
|
397
|
-
margin-top: 32px;
|
398
|
-
}
|
399
|
-
.mfui-container .mfui-title-description-box + .mfui-download-links {
|
400
|
-
margin-top: 32px;
|
401
|
-
}
|
402
399
|
}
|
403
400
|
@media screen and (max-width: 767px) {
|
404
401
|
.mfui-container .mfui-title-description-box + .mfui-benefits-icons {
|
@@ -446,12 +443,17 @@ h5 {
|
|
446
443
|
.mfui-container .mfui-title-description-box + .mfui-picture-with-description {
|
447
444
|
margin-top: 40px;
|
448
445
|
}
|
446
|
+
}
|
447
|
+
@media screen and (max-width: 1023px) {
|
449
448
|
.mfui-container .mfui-title-description-box + .mfui-button-link-box {
|
450
449
|
margin-top: 32px;
|
451
450
|
}
|
452
451
|
.mfui-container .mfui-title-description-box + .mfui-download-links {
|
453
452
|
margin-top: 32px;
|
454
453
|
}
|
454
|
+
.mfui-container .mfui-title-description-box + .mfui-audio-player {
|
455
|
+
margin-top: 24px;
|
456
|
+
}
|
455
457
|
}
|
456
458
|
.mfui-container .mfui-benefits-icons + .mfui-benefits-pictures {
|
457
459
|
margin-top: 56px;
|
@@ -2236,6 +2238,9 @@ h5 {
|
|
2236
2238
|
.mfui-container .mfui-text-box + .mfui-text-with-icon {
|
2237
2239
|
margin-top: 32px;
|
2238
2240
|
}
|
2241
|
+
.mfui-container .mfui-text-box + .mfui-audio-player {
|
2242
|
+
margin-top: 32px;
|
2243
|
+
}
|
2239
2244
|
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
2240
2245
|
.mfui-container .mfui-text-box + .mfui-benefits-icons {
|
2241
2246
|
margin-top: 48px;
|
@@ -2291,12 +2296,6 @@ h5 {
|
|
2291
2296
|
.mfui-container .mfui-text-box + .mfui-steps {
|
2292
2297
|
margin-top: 48px;
|
2293
2298
|
}
|
2294
|
-
.mfui-container .mfui-text-box + .mfui-button-link-box {
|
2295
|
-
margin-top: 32px;
|
2296
|
-
}
|
2297
|
-
.mfui-container .mfui-text-box + .mfui-download-links {
|
2298
|
-
margin-top: 32px;
|
2299
|
-
}
|
2300
2299
|
}
|
2301
2300
|
@media screen and (max-width: 767px) {
|
2302
2301
|
.mfui-container .mfui-text-box + .mfui-benefits-icons {
|
@@ -2353,12 +2352,17 @@ h5 {
|
|
2353
2352
|
.mfui-container .mfui-text-box + .mfui-steps {
|
2354
2353
|
margin-top: 40px;
|
2355
2354
|
}
|
2355
|
+
}
|
2356
|
+
@media screen and (max-width: 1023px) {
|
2356
2357
|
.mfui-container .mfui-text-box + .mfui-button-link-box {
|
2357
2358
|
margin-top: 32px;
|
2358
2359
|
}
|
2359
2360
|
.mfui-container .mfui-text-box + .mfui-download-links {
|
2360
2361
|
margin-top: 32px;
|
2361
2362
|
}
|
2363
|
+
.mfui-container .mfui-text-box + .mfui-audio-player {
|
2364
|
+
margin-top: 24px;
|
2365
|
+
}
|
2362
2366
|
}
|
2363
2367
|
.mfui-container .mfui-picture-with-description + .mfui-benefits-icons {
|
2364
2368
|
margin-top: 56px;
|
@@ -2769,6 +2773,9 @@ h5 {
|
|
2769
2773
|
.mfui-container .mfui-page-title + .mfui-picture-with-description {
|
2770
2774
|
margin-top: 56px;
|
2771
2775
|
}
|
2776
|
+
.mfui-container .mfui-page-title + .mfui-audio-player {
|
2777
|
+
margin-top: 32px;
|
2778
|
+
}
|
2772
2779
|
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
2773
2780
|
.mfui-container .mfui-page-title + .mfui-title-description-box {
|
2774
2781
|
margin-top: 48px;
|
@@ -2869,6 +2876,11 @@ h5 {
|
|
2869
2876
|
margin-top: 40px;
|
2870
2877
|
}
|
2871
2878
|
}
|
2879
|
+
@media screen and (max-width: 1023px) {
|
2880
|
+
.mfui-container .mfui-page-title + .mfui-audio-player {
|
2881
|
+
margin-top: 24px;
|
2882
|
+
}
|
2883
|
+
}
|
2872
2884
|
.mfui-container .mfui-page-title + .mfui-download-links {
|
2873
2885
|
margin-top: 32px;
|
2874
2886
|
}
|
@@ -3032,6 +3044,14 @@ h5 {
|
|
3032
3044
|
margin-top: 56px;
|
3033
3045
|
}
|
3034
3046
|
}
|
3047
|
+
.mfui-container .mfui-audio-player + .mfui-text-box {
|
3048
|
+
margin-top: 32px;
|
3049
|
+
}
|
3050
|
+
@media screen and (max-width: 767px) {
|
3051
|
+
.mfui-container .mfui-audio-player + .mfui-text-box {
|
3052
|
+
margin-top: 24px;
|
3053
|
+
}
|
3054
|
+
}
|
3035
3055
|
.mfui-container_disable-padding-top {
|
3036
3056
|
padding-top: 0 !important;
|
3037
3057
|
}
|
@@ -14,13 +14,15 @@ h5 {
|
|
14
14
|
-ms-flex-direction: column;
|
15
15
|
flex-direction: column;
|
16
16
|
padding: 24px 0;
|
17
|
-
border-top: 1px solid var(--spbSky2);
|
18
17
|
}
|
19
18
|
@media screen and (min-width: 1280px) {
|
20
19
|
.mfui-property__wrapper {
|
21
20
|
padding: 26px 0;
|
22
21
|
}
|
23
22
|
}
|
23
|
+
.mfui-property_border-top .mfui-property__wrapper {
|
24
|
+
border-top: 1px solid var(--spbSky2);
|
25
|
+
}
|
24
26
|
.mfui-property_border-bottom .mfui-property__wrapper {
|
25
27
|
border-bottom: 1px solid var(--spbSky2);
|
26
28
|
}
|
@@ -10,6 +10,8 @@ export interface IProperty {
|
|
10
10
|
className?: string;
|
11
11
|
/** Текст для бейджа */
|
12
12
|
badge?: string;
|
13
|
+
/** Отключить верхнюю границу */
|
14
|
+
disableBorderTop?: boolean;
|
13
15
|
/** Наличие нижней границы */
|
14
16
|
borderBottom?: boolean;
|
15
17
|
/** Единое значение для всей строки */
|
@@ -18,6 +18,8 @@ var Property = function Property(_ref) {
|
|
18
18
|
_ref$badge = _ref.badge,
|
19
19
|
badge = _ref$badge === void 0 ? '' : _ref$badge,
|
20
20
|
icon = _ref.icon,
|
21
|
+
_ref$disableBorderTop = _ref.disableBorderTop,
|
22
|
+
disableBorderTop = _ref$disableBorderTop === void 0 ? false : _ref$disableBorderTop,
|
21
23
|
_ref$borderBottom = _ref.borderBottom,
|
22
24
|
borderBottom = _ref$borderBottom === void 0 ? false : _ref$borderBottom,
|
23
25
|
_ref$mergedValue = _ref.mergedValue,
|
@@ -60,6 +62,7 @@ var Property = function Property(_ref) {
|
|
60
62
|
}, [classes.openedDescription, classes.toggleDescription, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.moreLink]);
|
61
63
|
return /*#__PURE__*/React.createElement("div", _extends({
|
62
64
|
className: cn({
|
65
|
+
'border-top': !disableBorderTop,
|
63
66
|
'border-bottom': borderBottom
|
64
67
|
}, [className]),
|
65
68
|
ref: rootRef
|
@@ -110,6 +113,7 @@ Property.propTypes = {
|
|
110
113
|
}).isRequired).isRequired,
|
111
114
|
className: PropTypes.string,
|
112
115
|
badge: PropTypes.string,
|
116
|
+
disableBorderTop: PropTypes.bool,
|
113
117
|
borderBottom: PropTypes.bool,
|
114
118
|
mergedValue: PropTypes.string,
|
115
119
|
icon: PropTypes.node,
|
@@ -12,17 +12,26 @@ h5 {
|
|
12
12
|
color: var(--content);
|
13
13
|
}
|
14
14
|
.mfui-store-banner_theme_green .mfui-store-banner__grid {
|
15
|
+
border-color: transparent;
|
15
16
|
background-color: var(--brandGreen);
|
16
17
|
}
|
17
18
|
.mfui-store-banner_theme_green .mfui-store-banner__content {
|
18
19
|
color: var(--stcWhite);
|
19
20
|
}
|
20
21
|
.mfui-store-banner_theme_spbSky1 .mfui-store-banner__grid {
|
22
|
+
border-color: transparent;
|
21
23
|
background-color: var(--spbSky1);
|
22
24
|
}
|
23
25
|
.mfui-store-banner_theme_spbSky1 .mfui-store-banner__content {
|
24
26
|
color: var(--content);
|
25
27
|
}
|
28
|
+
.mfui-store-banner_theme_spbSky0 .mfui-store-banner__grid {
|
29
|
+
border-color: transparent;
|
30
|
+
background-color: var(--spbSky0);
|
31
|
+
}
|
32
|
+
.mfui-store-banner_theme_spbSky0 .mfui-store-banner__content {
|
33
|
+
color: var(--content);
|
34
|
+
}
|
26
35
|
.mfui-store-banner_mask_new-iphone .mfui-store-banner__device-mask {
|
27
36
|
position: relative;
|
28
37
|
z-index: 2;
|
@@ -92,7 +101,7 @@ h5 {
|
|
92
101
|
padding-top: 32px;
|
93
102
|
padding-bottom: 32px;
|
94
103
|
border: 1px solid var(--spbSky2);
|
95
|
-
border-radius:
|
104
|
+
border-radius: 12px;
|
96
105
|
}
|
97
106
|
@media screen and (max-width: 767px) {
|
98
107
|
.mfui-store-banner__grid {
|
@@ -9,11 +9,11 @@ h5 {
|
|
9
9
|
position: relative;
|
10
10
|
border: 1px solid var(--spbSky2);
|
11
11
|
background-color: var(--base);
|
12
|
-
border-radius: 0
|
12
|
+
border-radius: 0 12px 12px 0;
|
13
13
|
}
|
14
14
|
@media screen and (max-width: 767px) {
|
15
15
|
.mfui-button-banner {
|
16
|
-
border-radius: 0 0
|
16
|
+
border-radius: 0 0 12px 12px;
|
17
17
|
}
|
18
18
|
}
|
19
19
|
.mfui-button-banner:before {
|
@@ -79,11 +79,11 @@ h5 {
|
|
79
79
|
overflow: hidden;
|
80
80
|
background-repeat: no-repeat;
|
81
81
|
background-position: center;
|
82
|
-
border-radius: 0
|
82
|
+
border-radius: 0 12px 12px 0;
|
83
83
|
}
|
84
84
|
@media screen and (max-width: 767px) {
|
85
85
|
.mfui-button-banner__media {
|
86
|
-
border-radius: 0 0
|
86
|
+
border-radius: 0 0 12px 12px;
|
87
87
|
}
|
88
88
|
}
|
89
89
|
@media screen and (max-width: 767px) {
|
@@ -9,11 +9,11 @@ h5 {
|
|
9
9
|
display: -webkit-box;
|
10
10
|
display: -ms-flexbox;
|
11
11
|
display: flex;
|
12
|
-
border-radius:
|
12
|
+
border-radius: 12px;
|
13
13
|
overflow: hidden;
|
14
14
|
background-color: var(--base);
|
15
|
-
-webkit-box-shadow: 0
|
16
|
-
box-shadow: 0
|
15
|
+
-webkit-box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
|
16
|
+
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
|
17
17
|
}
|
18
18
|
.mfui-card__inner {
|
19
19
|
display: -webkit-box;
|
@@ -347,6 +347,9 @@ h5 {
|
|
347
347
|
.mfui-container .mfui-title-description-box + .mfui-text-with-icon {
|
348
348
|
margin-top: 24px;
|
349
349
|
}
|
350
|
+
.mfui-container .mfui-title-description-box + .mfui-audio-player {
|
351
|
+
margin-top: 32px;
|
352
|
+
}
|
350
353
|
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
351
354
|
.mfui-container .mfui-title-description-box + .mfui-benefits-icons {
|
352
355
|
margin-top: 48px;
|
@@ -393,12 +396,6 @@ h5 {
|
|
393
396
|
.mfui-container .mfui-title-description-box + .mfui-picture-with-description {
|
394
397
|
margin-top: 48px;
|
395
398
|
}
|
396
|
-
.mfui-container .mfui-title-description-box + .mfui-button-link-box {
|
397
|
-
margin-top: 32px;
|
398
|
-
}
|
399
|
-
.mfui-container .mfui-title-description-box + .mfui-download-links {
|
400
|
-
margin-top: 32px;
|
401
|
-
}
|
402
399
|
}
|
403
400
|
@media screen and (max-width: 767px) {
|
404
401
|
.mfui-container .mfui-title-description-box + .mfui-benefits-icons {
|
@@ -446,12 +443,17 @@ h5 {
|
|
446
443
|
.mfui-container .mfui-title-description-box + .mfui-picture-with-description {
|
447
444
|
margin-top: 40px;
|
448
445
|
}
|
446
|
+
}
|
447
|
+
@media screen and (max-width: 1023px) {
|
449
448
|
.mfui-container .mfui-title-description-box + .mfui-button-link-box {
|
450
449
|
margin-top: 32px;
|
451
450
|
}
|
452
451
|
.mfui-container .mfui-title-description-box + .mfui-download-links {
|
453
452
|
margin-top: 32px;
|
454
453
|
}
|
454
|
+
.mfui-container .mfui-title-description-box + .mfui-audio-player {
|
455
|
+
margin-top: 24px;
|
456
|
+
}
|
455
457
|
}
|
456
458
|
.mfui-container .mfui-benefits-icons + .mfui-benefits-pictures {
|
457
459
|
margin-top: 56px;
|
@@ -2236,6 +2238,9 @@ h5 {
|
|
2236
2238
|
.mfui-container .mfui-text-box + .mfui-text-with-icon {
|
2237
2239
|
margin-top: 32px;
|
2238
2240
|
}
|
2241
|
+
.mfui-container .mfui-text-box + .mfui-audio-player {
|
2242
|
+
margin-top: 32px;
|
2243
|
+
}
|
2239
2244
|
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
2240
2245
|
.mfui-container .mfui-text-box + .mfui-benefits-icons {
|
2241
2246
|
margin-top: 48px;
|
@@ -2291,12 +2296,6 @@ h5 {
|
|
2291
2296
|
.mfui-container .mfui-text-box + .mfui-steps {
|
2292
2297
|
margin-top: 48px;
|
2293
2298
|
}
|
2294
|
-
.mfui-container .mfui-text-box + .mfui-button-link-box {
|
2295
|
-
margin-top: 32px;
|
2296
|
-
}
|
2297
|
-
.mfui-container .mfui-text-box + .mfui-download-links {
|
2298
|
-
margin-top: 32px;
|
2299
|
-
}
|
2300
2299
|
}
|
2301
2300
|
@media screen and (max-width: 767px) {
|
2302
2301
|
.mfui-container .mfui-text-box + .mfui-benefits-icons {
|
@@ -2353,12 +2352,17 @@ h5 {
|
|
2353
2352
|
.mfui-container .mfui-text-box + .mfui-steps {
|
2354
2353
|
margin-top: 40px;
|
2355
2354
|
}
|
2355
|
+
}
|
2356
|
+
@media screen and (max-width: 1023px) {
|
2356
2357
|
.mfui-container .mfui-text-box + .mfui-button-link-box {
|
2357
2358
|
margin-top: 32px;
|
2358
2359
|
}
|
2359
2360
|
.mfui-container .mfui-text-box + .mfui-download-links {
|
2360
2361
|
margin-top: 32px;
|
2361
2362
|
}
|
2363
|
+
.mfui-container .mfui-text-box + .mfui-audio-player {
|
2364
|
+
margin-top: 24px;
|
2365
|
+
}
|
2362
2366
|
}
|
2363
2367
|
.mfui-container .mfui-picture-with-description + .mfui-benefits-icons {
|
2364
2368
|
margin-top: 56px;
|
@@ -2769,6 +2773,9 @@ h5 {
|
|
2769
2773
|
.mfui-container .mfui-page-title + .mfui-picture-with-description {
|
2770
2774
|
margin-top: 56px;
|
2771
2775
|
}
|
2776
|
+
.mfui-container .mfui-page-title + .mfui-audio-player {
|
2777
|
+
margin-top: 32px;
|
2778
|
+
}
|
2772
2779
|
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
2773
2780
|
.mfui-container .mfui-page-title + .mfui-title-description-box {
|
2774
2781
|
margin-top: 48px;
|
@@ -2869,6 +2876,11 @@ h5 {
|
|
2869
2876
|
margin-top: 40px;
|
2870
2877
|
}
|
2871
2878
|
}
|
2879
|
+
@media screen and (max-width: 1023px) {
|
2880
|
+
.mfui-container .mfui-page-title + .mfui-audio-player {
|
2881
|
+
margin-top: 24px;
|
2882
|
+
}
|
2883
|
+
}
|
2872
2884
|
.mfui-container .mfui-page-title + .mfui-download-links {
|
2873
2885
|
margin-top: 32px;
|
2874
2886
|
}
|
@@ -3032,6 +3044,14 @@ h5 {
|
|
3032
3044
|
margin-top: 56px;
|
3033
3045
|
}
|
3034
3046
|
}
|
3047
|
+
.mfui-container .mfui-audio-player + .mfui-text-box {
|
3048
|
+
margin-top: 32px;
|
3049
|
+
}
|
3050
|
+
@media screen and (max-width: 767px) {
|
3051
|
+
.mfui-container .mfui-audio-player + .mfui-text-box {
|
3052
|
+
margin-top: 24px;
|
3053
|
+
}
|
3054
|
+
}
|
3035
3055
|
.mfui-container_disable-padding-top {
|
3036
3056
|
padding-top: 0 !important;
|
3037
3057
|
}
|
@@ -14,13 +14,15 @@ h5 {
|
|
14
14
|
-ms-flex-direction: column;
|
15
15
|
flex-direction: column;
|
16
16
|
padding: 24px 0;
|
17
|
-
border-top: 1px solid var(--spbSky2);
|
18
17
|
}
|
19
18
|
@media screen and (min-width: 1280px) {
|
20
19
|
.mfui-property__wrapper {
|
21
20
|
padding: 26px 0;
|
22
21
|
}
|
23
22
|
}
|
23
|
+
.mfui-property_border-top .mfui-property__wrapper {
|
24
|
+
border-top: 1px solid var(--spbSky2);
|
25
|
+
}
|
24
26
|
.mfui-property_border-bottom .mfui-property__wrapper {
|
25
27
|
border-bottom: 1px solid var(--spbSky2);
|
26
28
|
}
|
@@ -10,6 +10,8 @@ export interface IProperty {
|
|
10
10
|
className?: string;
|
11
11
|
/** Текст для бейджа */
|
12
12
|
badge?: string;
|
13
|
+
/** Отключить верхнюю границу */
|
14
|
+
disableBorderTop?: boolean;
|
13
15
|
/** Наличие нижней границы */
|
14
16
|
borderBottom?: boolean;
|
15
17
|
/** Единое значение для всей строки */
|
@@ -36,6 +36,8 @@ var Property = function Property(_ref) {
|
|
36
36
|
_ref$badge = _ref.badge,
|
37
37
|
badge = _ref$badge === void 0 ? '' : _ref$badge,
|
38
38
|
icon = _ref.icon,
|
39
|
+
_ref$disableBorderTop = _ref.disableBorderTop,
|
40
|
+
disableBorderTop = _ref$disableBorderTop === void 0 ? false : _ref$disableBorderTop,
|
39
41
|
_ref$borderBottom = _ref.borderBottom,
|
40
42
|
borderBottom = _ref$borderBottom === void 0 ? false : _ref$borderBottom,
|
41
43
|
_ref$mergedValue = _ref.mergedValue,
|
@@ -81,6 +83,7 @@ var Property = function Property(_ref) {
|
|
81
83
|
|
82
84
|
return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
|
83
85
|
className: cn({
|
86
|
+
'border-top': !disableBorderTop,
|
84
87
|
'border-bottom': borderBottom
|
85
88
|
}, [className]),
|
86
89
|
ref: rootRef
|
@@ -131,6 +134,7 @@ Property.propTypes = {
|
|
131
134
|
}).isRequired).isRequired,
|
132
135
|
className: _propTypes["default"].string,
|
133
136
|
badge: _propTypes["default"].string,
|
137
|
+
disableBorderTop: _propTypes["default"].bool,
|
134
138
|
borderBottom: _propTypes["default"].bool,
|
135
139
|
mergedValue: _propTypes["default"].string,
|
136
140
|
icon: _propTypes["default"].node,
|
@@ -12,17 +12,26 @@ h5 {
|
|
12
12
|
color: var(--content);
|
13
13
|
}
|
14
14
|
.mfui-store-banner_theme_green .mfui-store-banner__grid {
|
15
|
+
border-color: transparent;
|
15
16
|
background-color: var(--brandGreen);
|
16
17
|
}
|
17
18
|
.mfui-store-banner_theme_green .mfui-store-banner__content {
|
18
19
|
color: var(--stcWhite);
|
19
20
|
}
|
20
21
|
.mfui-store-banner_theme_spbSky1 .mfui-store-banner__grid {
|
22
|
+
border-color: transparent;
|
21
23
|
background-color: var(--spbSky1);
|
22
24
|
}
|
23
25
|
.mfui-store-banner_theme_spbSky1 .mfui-store-banner__content {
|
24
26
|
color: var(--content);
|
25
27
|
}
|
28
|
+
.mfui-store-banner_theme_spbSky0 .mfui-store-banner__grid {
|
29
|
+
border-color: transparent;
|
30
|
+
background-color: var(--spbSky0);
|
31
|
+
}
|
32
|
+
.mfui-store-banner_theme_spbSky0 .mfui-store-banner__content {
|
33
|
+
color: var(--content);
|
34
|
+
}
|
26
35
|
.mfui-store-banner_mask_new-iphone .mfui-store-banner__device-mask {
|
27
36
|
position: relative;
|
28
37
|
z-index: 2;
|
@@ -92,7 +101,7 @@ h5 {
|
|
92
101
|
padding-top: 32px;
|
93
102
|
padding-bottom: 32px;
|
94
103
|
border: 1px solid var(--spbSky2);
|
95
|
-
border-radius:
|
104
|
+
border-radius: 12px;
|
96
105
|
}
|
97
106
|
@media screen and (max-width: 767px) {
|
98
107
|
.mfui-store-banner__grid {
|
@@ -30,7 +30,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
30
30
|
var Theme = {
|
31
31
|
DEFAULT: 'default',
|
32
32
|
GREEN: 'green',
|
33
|
-
SPB_SKY_1: 'spbSky1'
|
33
|
+
SPB_SKY_1: 'spbSky1',
|
34
|
+
SPB_SKY_0: 'spbSky0'
|
34
35
|
};
|
35
36
|
exports.Theme = Theme;
|
36
37
|
var DeviceMask = {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@megafon/ui-shared",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.15.0",
|
4
4
|
"files": [
|
5
5
|
"dist"
|
6
6
|
],
|
@@ -52,7 +52,7 @@
|
|
52
52
|
"@babel/preset-env": "^7.8.6",
|
53
53
|
"@babel/preset-react": "^7.8.3",
|
54
54
|
"@babel/preset-typescript": "^7.8.3",
|
55
|
-
"@megafon/ui-icons": "^2.
|
55
|
+
"@megafon/ui-icons": "^2.8.0",
|
56
56
|
"@svgr/core": "^2.4.1",
|
57
57
|
"@testing-library/jest-dom": "5.16.2",
|
58
58
|
"@testing-library/react": "12.1.2",
|
@@ -85,7 +85,7 @@
|
|
85
85
|
},
|
86
86
|
"dependencies": {
|
87
87
|
"@babel/runtime": "^7.8.4",
|
88
|
-
"@megafon/ui-core": "^4.14.
|
88
|
+
"@megafon/ui-core": "^4.14.2",
|
89
89
|
"@megafon/ui-helpers": "^2.4.0",
|
90
90
|
"core-js": "^3.6.4",
|
91
91
|
"htmr": "^0.9.2",
|
@@ -93,5 +93,5 @@
|
|
93
93
|
"prop-types": "^15.7.2",
|
94
94
|
"swiper": "^6.5.6"
|
95
95
|
},
|
96
|
-
"gitHead": "
|
96
|
+
"gitHead": "43725eddf6f23f91c95f9f7c932e9b9589a4af04"
|
97
97
|
}
|