@megafon/ui-shared 2.3.0 → 3.0.0-beta.11
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 +124 -10
- package/dist/es/components/AccordionBox/AccordionBox.d.ts +3 -6
- package/dist/es/components/AccordionBox/AccordionBox.js +3 -4
- package/dist/es/components/Breadcrumbs/Breadcrumbs.css +5 -2
- package/dist/es/components/Breadcrumbs/Breadcrumbs.d.ts +3 -1
- package/dist/es/components/Breadcrumbs/Breadcrumbs.js +5 -3
- package/dist/es/components/ButtonBanner/ButtonBanner.css +3 -3
- 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/Card/Card.css +3 -3
- package/dist/es/components/Container/Container.css +5 -168
- package/dist/es/components/DownloadLinks/DownloadLink.css +2 -1
- package/dist/es/components/Instructions/Instructions.css +7 -7
- package/dist/es/components/PageTitle/PageTitle.css +2 -2
- package/dist/es/components/Property/Property.css +5 -5
- package/dist/es/components/Property/PropertyDescription.css +3 -3
- package/dist/es/components/Steps/StepsItem.css +2 -2
- package/dist/es/components/StoreBanner/StoreBanner.css +31 -32
- package/dist/es/components/StoreBanner/StoreBanner.d.ts +3 -5
- package/dist/es/components/StoreBanner/StoreBanner.js +8 -25
- package/dist/es/components/StoreBanner/doc/img/qr-code.png +0 -0
- package/dist/es/components/Table/Table.css +15 -15
- package/dist/es/components/TextBox/TextBox.css +0 -9
- package/dist/es/components/TextBox/TextBoxPicture.css +1 -1
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.css +2 -2
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +2 -2
- package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.js +4 -2
- package/dist/es/components/VideoBanner/VideoBanner.css +4 -4
- 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 +0 -1
- package/dist/es/index.js +0 -1
- package/dist/lib/components/AccordionBox/AccordionBox.d.ts +3 -6
- package/dist/lib/components/AccordionBox/AccordionBox.js +3 -4
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.css +5 -2
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.d.ts +3 -1
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.js +5 -3
- package/dist/lib/components/ButtonBanner/ButtonBanner.css +3 -3
- 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/Card/Card.css +3 -3
- package/dist/lib/components/Container/Container.css +5 -168
- package/dist/lib/components/DownloadLinks/DownloadLink.css +2 -1
- package/dist/lib/components/Instructions/Instructions.css +7 -7
- package/dist/lib/components/PageTitle/PageTitle.css +2 -2
- package/dist/lib/components/Property/Property.css +5 -5
- package/dist/lib/components/Property/PropertyDescription.css +3 -3
- package/dist/lib/components/Steps/StepsItem.css +2 -2
- package/dist/lib/components/StoreBanner/StoreBanner.css +31 -32
- package/dist/lib/components/StoreBanner/StoreBanner.d.ts +3 -5
- package/dist/lib/components/StoreBanner/StoreBanner.js +8 -28
- package/dist/lib/components/StoreBanner/doc/img/qr-code.png +0 -0
- package/dist/lib/components/Table/Table.css +15 -15
- package/dist/lib/components/TextBox/TextBox.css +0 -9
- package/dist/lib/components/TextBox/TextBoxPicture.css +1 -1
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.css +2 -2
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +2 -2
- package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.js +4 -2
- package/dist/lib/components/VideoBanner/VideoBanner.css +4 -4
- 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 +0 -1
- package/dist/lib/index.js +0 -8
- package/package.json +6 -5
- package/dist/es/components/TextWithIcon/TextWithIcon.css +0 -57
- package/dist/es/components/TextWithIcon/TextWithIcon.d.ts +0 -21
- package/dist/es/components/TextWithIcon/TextWithIcon.js +0 -53
- package/dist/lib/components/TextWithIcon/TextWithIcon.css +0 -57
- package/dist/lib/components/TextWithIcon/TextWithIcon.d.ts +0 -21
- package/dist/lib/components/TextWithIcon/TextWithIcon.js +0 -74
@@ -41,9 +41,9 @@ h5 {
|
|
41
41
|
display: inline-block;
|
42
42
|
margin-top: 16px;
|
43
43
|
padding: 2px 14px;
|
44
|
-
color:
|
44
|
+
color: var(--stcWhite);
|
45
45
|
font-weight: 500;
|
46
|
-
background-color:
|
46
|
+
background-color: var(--brandPurple);
|
47
47
|
}
|
48
48
|
@media screen and (min-width: 1280px) {
|
49
49
|
.mfui-page-title__badge_under-breadcrumbs {
|
@@ -14,7 +14,7 @@ h5 {
|
|
14
14
|
-ms-flex-direction: column;
|
15
15
|
flex-direction: column;
|
16
16
|
padding: 24px 0;
|
17
|
-
border-top: 1px solid
|
17
|
+
border-top: 1px solid var(--spbSky2);
|
18
18
|
}
|
19
19
|
@media screen and (min-width: 1280px) {
|
20
20
|
.mfui-property__wrapper {
|
@@ -22,7 +22,7 @@ h5 {
|
|
22
22
|
}
|
23
23
|
}
|
24
24
|
.mfui-property_border-bottom .mfui-property__wrapper {
|
25
|
-
border-bottom: 1px solid
|
25
|
+
border-bottom: 1px solid var(--spbSky2);
|
26
26
|
}
|
27
27
|
.mfui-property__content {
|
28
28
|
display: -webkit-box;
|
@@ -46,9 +46,9 @@ h5 {
|
|
46
46
|
.mfui-property__badge {
|
47
47
|
padding: 2px 8px;
|
48
48
|
border-radius: 2px;
|
49
|
-
color:
|
49
|
+
color: var(--stcWhite);
|
50
50
|
font-size: 12px;
|
51
|
-
background:
|
51
|
+
background: var(--137C);
|
52
52
|
}
|
53
53
|
.mfui-property__inner {
|
54
54
|
-webkit-box-flex: 1;
|
@@ -93,7 +93,7 @@ h5 {
|
|
93
93
|
-webkit-box-align: center;
|
94
94
|
-ms-flex-align: center;
|
95
95
|
align-items: center;
|
96
|
-
border-left: 1px solid
|
96
|
+
border-left: 1px solid var(--spbSky2);
|
97
97
|
}
|
98
98
|
.mfui-property__desc {
|
99
99
|
margin-top: 8px;
|
@@ -6,10 +6,10 @@ h5 {
|
|
6
6
|
margin: 0;
|
7
7
|
}
|
8
8
|
.mfui-property-description__collapse {
|
9
|
-
color:
|
9
|
+
color: var(--systemBlue);
|
10
10
|
font-size: 12px;
|
11
|
-
-webkit-text-decoration: underline dashed
|
12
|
-
text-decoration: underline dashed
|
11
|
+
-webkit-text-decoration: underline dashed var(--systemBlue);
|
12
|
+
text-decoration: underline dashed var(--systemBlue);
|
13
13
|
cursor: pointer;
|
14
14
|
}
|
15
15
|
.mfui-property-description__content-inner {
|
@@ -5,25 +5,23 @@ h4,
|
|
5
5
|
h5 {
|
6
6
|
margin: 0;
|
7
7
|
}
|
8
|
-
.mfui-store-
|
9
|
-
|
10
|
-
background-color: #FFFFFF;
|
8
|
+
.mfui-store-banner_theme_default .mfui-store-banner__grid {
|
9
|
+
background-color: var(--base);
|
11
10
|
}
|
12
|
-
.mfui-store-
|
13
|
-
|
14
|
-
color: #333333;
|
11
|
+
.mfui-store-banner_theme_default .mfui-store-banner__content {
|
12
|
+
color: var(--content);
|
15
13
|
}
|
16
14
|
.mfui-store-banner_theme_green .mfui-store-banner__grid {
|
17
|
-
background-color:
|
15
|
+
background-color: var(--brandGreen);
|
18
16
|
}
|
19
17
|
.mfui-store-banner_theme_green .mfui-store-banner__content {
|
20
|
-
color:
|
18
|
+
color: var(--stcWhite);
|
21
19
|
}
|
22
20
|
.mfui-store-banner_theme_spbSky1 .mfui-store-banner__grid {
|
23
|
-
background-color:
|
21
|
+
background-color: var(--spbSky1);
|
24
22
|
}
|
25
23
|
.mfui-store-banner_theme_spbSky1 .mfui-store-banner__content {
|
26
|
-
color:
|
24
|
+
color: var(--content);
|
27
25
|
}
|
28
26
|
.mfui-store-banner_mask_new-iphone .mfui-store-banner__device-mask {
|
29
27
|
position: relative;
|
@@ -93,7 +91,7 @@ h5 {
|
|
93
91
|
.mfui-store-banner__grid {
|
94
92
|
padding-top: 32px;
|
95
93
|
padding-bottom: 32px;
|
96
|
-
border: 1px solid
|
94
|
+
border: 1px solid var(--spbSky2);
|
97
95
|
border-radius: 8px;
|
98
96
|
}
|
99
97
|
@media screen and (max-width: 767px) {
|
@@ -161,16 +159,7 @@ h5 {
|
|
161
159
|
display: flex;
|
162
160
|
}
|
163
161
|
.mfui-store-banner__qr-code {
|
164
|
-
-ms-flex-item-align: center;
|
165
|
-
align-self: center;
|
166
|
-
-webkit-box-sizing: border-box;
|
167
|
-
box-sizing: border-box;
|
168
|
-
width: 90px;
|
169
|
-
height: 90px;
|
170
162
|
margin-right: 16px;
|
171
|
-
border: 1px solid #EDEDED;
|
172
|
-
border-radius: 8px;
|
173
|
-
background-color: #FFFFFF;
|
174
163
|
}
|
175
164
|
@media screen and (max-width: 767px) {
|
176
165
|
.mfui-store-banner__qr-code {
|
@@ -191,9 +180,6 @@ h5 {
|
|
191
180
|
.mfui-store-banner__store-link {
|
192
181
|
width: 136px;
|
193
182
|
height: 40px;
|
194
|
-
margin-right: 8px;
|
195
|
-
margin-bottom: 10px;
|
196
|
-
margin-left: 8px;
|
197
183
|
}
|
198
184
|
@media screen and (max-width: 767px) {
|
199
185
|
.mfui-store-banner__store-link {
|
@@ -201,8 +187,9 @@ h5 {
|
|
201
187
|
height: 35px;
|
202
188
|
}
|
203
189
|
}
|
204
|
-
.mfui-store-banner__store-link:last-child {
|
205
|
-
margin-
|
190
|
+
.mfui-store-banner__store-link:not(:last-child) {
|
191
|
+
margin-right: 16px;
|
192
|
+
margin-bottom: 10px;
|
206
193
|
}
|
207
194
|
.mfui-store-banner__stores {
|
208
195
|
display: -webkit-box;
|
@@ -221,11 +208,6 @@ h5 {
|
|
221
208
|
justify-content: center;
|
222
209
|
}
|
223
210
|
}
|
224
|
-
@media screen and (min-width: 768px) {
|
225
|
-
.mfui-store-banner__stores {
|
226
|
-
margin-left: -8px;
|
227
|
-
}
|
228
|
-
}
|
229
211
|
.mfui-store-banner__text {
|
230
212
|
margin-bottom: 32px;
|
231
213
|
}
|
@@ -247,10 +229,16 @@ h5 {
|
|
247
229
|
-o-object-fit: contain;
|
248
230
|
object-fit: contain;
|
249
231
|
}
|
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
|
+
}
|
250
238
|
@media screen and (min-width: 1280px) {
|
251
239
|
.mfui-store-banner__links_three .mfui-store-banner__qr-code {
|
252
|
-
max-width:
|
253
|
-
max-height:
|
240
|
+
max-width: 88px;
|
241
|
+
max-height: 88px;
|
254
242
|
}
|
255
243
|
}
|
256
244
|
.mfui-store-banner__links_three .mfui-store-banner__qr-code + .mfui-store-banner__stores {
|
@@ -272,6 +260,12 @@ h5 {
|
|
272
260
|
margin: 0 auto;
|
273
261
|
}
|
274
262
|
}
|
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
|
+
}
|
275
269
|
.mfui-store-banner__links_three .mfui-store-banner__store-link {
|
276
270
|
width: 136px;
|
277
271
|
height: 40px;
|
@@ -290,3 +284,8 @@ h5 {
|
|
290
284
|
margin-bottom: 16px;
|
291
285
|
}
|
292
286
|
}
|
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
|
+
}
|
@@ -2,11 +2,9 @@ import * as React from 'react';
|
|
2
2
|
import { Props as StoreButtonPropsType } from '../StoreButton/StoreButton';
|
3
3
|
import './StoreBanner.less';
|
4
4
|
export declare const Theme: {
|
5
|
-
readonly
|
5
|
+
readonly DEFAULT: "default";
|
6
6
|
readonly GREEN: "green";
|
7
7
|
readonly SPB_SKY_1: "spbSky1";
|
8
|
-
/** @deprecated */
|
9
|
-
readonly CLEAR_WHITE: "clearWhite";
|
10
8
|
};
|
11
9
|
declare type ThemeType = typeof Theme[keyof typeof Theme];
|
12
10
|
export declare const DeviceMask: {
|
@@ -58,9 +56,9 @@ export interface IStoreBannerProps {
|
|
58
56
|
};
|
59
57
|
/** Ссылка на корневой элемент */
|
60
58
|
rootRef?: React.Ref<HTMLDivElement>;
|
61
|
-
/**
|
59
|
+
/** Дополнительные data атрибуты к внутренним элементам */
|
62
60
|
dataAttrs?: {
|
63
|
-
|
61
|
+
root?: Record<string, string>;
|
64
62
|
};
|
65
63
|
}
|
66
64
|
declare const StoreBanner: React.FC<IStoreBannerProps>;
|
@@ -1,7 +1,4 @@
|
|
1
|
-
import "core-js/modules/es.array.concat";
|
2
|
-
import "core-js/modules/es.array.includes";
|
3
1
|
import "core-js/modules/es.object.values";
|
4
|
-
import "core-js/modules/es.string.includes";
|
5
2
|
import _extends from "@babel/runtime/helpers/extends";
|
6
3
|
import * as React from 'react';
|
7
4
|
import { Button, Grid, GridColumn, Header, Paragraph } from '@megafon/ui-core';
|
@@ -10,12 +7,9 @@ import PropTypes from 'prop-types';
|
|
10
7
|
import StoreButton, { Theme as StoreButtonTheme } from "../StoreButton/StoreButton";
|
11
8
|
import "./StoreBanner.css";
|
12
9
|
export var Theme = {
|
13
|
-
|
10
|
+
DEFAULT: 'default',
|
14
11
|
GREEN: 'green',
|
15
|
-
SPB_SKY_1: 'spbSky1'
|
16
|
-
|
17
|
-
/** @deprecated */
|
18
|
-
CLEAR_WHITE: 'clearWhite'
|
12
|
+
SPB_SKY_1: 'spbSky1'
|
19
13
|
};
|
20
14
|
export var DeviceMask = {
|
21
15
|
ANDROID: 'android',
|
@@ -45,7 +39,7 @@ var StoreBanner = function StoreBanner(_ref) {
|
|
45
39
|
qrCode = _ref.qrCode,
|
46
40
|
imageSrc = _ref.imageSrc,
|
47
41
|
_ref$theme = _ref.theme,
|
48
|
-
theme = _ref$theme === void 0 ? Theme.
|
42
|
+
theme = _ref$theme === void 0 ? Theme.DEFAULT : _ref$theme,
|
49
43
|
deviceMask = _ref.deviceMask,
|
50
44
|
rootRef = _ref.rootRef,
|
51
45
|
dataAttrs = _ref.dataAttrs,
|
@@ -58,7 +52,7 @@ var StoreBanner = function StoreBanner(_ref) {
|
|
58
52
|
mask: deviceMask
|
59
53
|
}, [className, rootClassName]),
|
60
54
|
ref: rootRef
|
61
|
-
}, filterDataAttrs(dataAttrs)), /*#__PURE__*/React.createElement("div", {
|
55
|
+
}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root)), /*#__PURE__*/React.createElement("div", {
|
62
56
|
className: cn('container')
|
63
57
|
}, /*#__PURE__*/React.createElement("div", {
|
64
58
|
className: cn('grid')
|
@@ -145,20 +139,9 @@ StoreBanner.propTypes = {
|
|
145
139
|
rootRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
|
146
140
|
current: PropTypes.elementType
|
147
141
|
}), PropTypes.any])]),
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
if (propValue && !Object.values(Theme).includes(propValue)) {
|
154
|
-
return new Error("Failed prop type: Invalid prop '".concat(propName, "' of value '").concat(propValue, "' supplied to '").concat(componentName, "',\n expected one of [").concat(Object.values(Theme), "]"));
|
155
|
-
}
|
156
|
-
|
157
|
-
if (propValue && propValue === deprecatedValue) {
|
158
|
-
return new Error("Failed prop type: Invalid prop '".concat(propName, "' of value '").concat(propValue, "' supplied to '").concat(componentName, "',\n value '").concat(deprecatedValue, "' is deprecated, please use value '").concat(Theme.BASE, "'"));
|
159
|
-
}
|
160
|
-
|
161
|
-
return null;
|
162
|
-
}
|
142
|
+
theme: PropTypes.oneOf(Object.values(Theme)),
|
143
|
+
dataAttrs: PropTypes.shape({
|
144
|
+
root: PropTypes.objectOf(PropTypes.string.isRequired)
|
145
|
+
})
|
163
146
|
};
|
164
147
|
export default StoreBanner;
|
Binary file
|
@@ -18,17 +18,17 @@ h5 {
|
|
18
18
|
height: 8px;
|
19
19
|
}
|
20
20
|
.mfui-table:not(.mfui-table_touch) ::-webkit-scrollbar-track {
|
21
|
-
background-color:
|
21
|
+
background-color: var(--spbSky1);
|
22
22
|
}
|
23
23
|
.mfui-table:not(.mfui-table_touch) ::-webkit-scrollbar-thumb {
|
24
24
|
border-radius: 4px;
|
25
|
-
background-color:
|
25
|
+
background-color: var(--spbSky2);
|
26
26
|
}
|
27
27
|
.mfui-table:not(.mfui-table_touch) ::-webkit-scrollbar-corner {
|
28
|
-
background-color:
|
28
|
+
background-color: var(--base);
|
29
29
|
}
|
30
30
|
.mfui-table:not(.mfui-table_touch) .mfui-table__scroll {
|
31
|
-
scrollbar-color:
|
31
|
+
scrollbar-color: var(--spbSky2) var(--spbSky1);
|
32
32
|
scrollbar-width: thin;
|
33
33
|
}
|
34
34
|
.mfui-table__scroll {
|
@@ -36,7 +36,7 @@ h5 {
|
|
36
36
|
display: grid;
|
37
37
|
grid-template-columns: auto auto auto;
|
38
38
|
max-width: 100%;
|
39
|
-
border: 1px solid
|
39
|
+
border: 1px solid var(--spbSky2);
|
40
40
|
overflow: auto;
|
41
41
|
}
|
42
42
|
@media screen and (min-width: 1024px) {
|
@@ -80,8 +80,8 @@ h5 {
|
|
80
80
|
width: 100%;
|
81
81
|
height: 48px;
|
82
82
|
margin-top: -48px;
|
83
|
-
background: -webkit-gradient(linear, left bottom, left top, color-stop(25%,
|
84
|
-
background: linear-gradient(to top,
|
83
|
+
background: -webkit-gradient(linear, left bottom, left top, color-stop(25%, var(--base)), to(rgba(255, 255, 255, 0)));
|
84
|
+
background: linear-gradient(to top, var(--base) 25%, rgba(255, 255, 255, 0));
|
85
85
|
}
|
86
86
|
.mfui-table__right-gradient {
|
87
87
|
position: -webkit-sticky;
|
@@ -92,20 +92,20 @@ h5 {
|
|
92
92
|
width: 48px;
|
93
93
|
height: 100%;
|
94
94
|
margin-left: -48px;
|
95
|
-
background: -webkit-gradient(linear, right top, left top, color-stop(25%,
|
96
|
-
background: linear-gradient(to left,
|
95
|
+
background: -webkit-gradient(linear, right top, left top, color-stop(25%, var(--base)), to(rgba(255, 255, 255, 0)));
|
96
|
+
background: linear-gradient(to left, var(--base) 25%, rgba(255, 255, 255, 0));
|
97
97
|
}
|
98
98
|
.mfui-table__table {
|
99
99
|
border-width: 0;
|
100
100
|
border-collapse: separate;
|
101
101
|
border-spacing: 0;
|
102
|
-
background-color:
|
102
|
+
background-color: var(--base);
|
103
103
|
}
|
104
104
|
.mfui-table__cell {
|
105
105
|
-webkit-box-sizing: border-box;
|
106
106
|
box-sizing: border-box;
|
107
107
|
padding: 24px;
|
108
|
-
background-color:
|
108
|
+
background-color: var(--base);
|
109
109
|
}
|
110
110
|
@media screen and (max-width: 767px) {
|
111
111
|
.mfui-table__cell {
|
@@ -118,7 +118,7 @@ h5 {
|
|
118
118
|
left: 0;
|
119
119
|
width: 144px;
|
120
120
|
min-width: 144px;
|
121
|
-
border-right: 1px solid
|
121
|
+
border-right: 1px solid var(--spbSky2);
|
122
122
|
}
|
123
123
|
.mfui-table__cell:not(:first-child) {
|
124
124
|
max-width: 288px;
|
@@ -128,12 +128,12 @@ h5 {
|
|
128
128
|
line-height: 16px;
|
129
129
|
height: 72px;
|
130
130
|
padding-bottom: 12px;
|
131
|
-
color:
|
131
|
+
color: var(--stcBlack5);
|
132
132
|
vertical-align: bottom;
|
133
|
-
background-color:
|
133
|
+
background-color: var(--spbSky0);
|
134
134
|
}
|
135
135
|
.mfui-table__row:not(:last-child) .mfui-table__cell {
|
136
|
-
border-bottom: 1px solid
|
136
|
+
border-bottom: 1px solid var(--spbSky2);
|
137
137
|
}
|
138
138
|
.mfui-table_min-cell-size_small .mfui-table__cell:not(:first-child) {
|
139
139
|
min-width: 72px;
|
@@ -14,12 +14,3 @@ 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
|
-
}
|
@@ -7,7 +7,7 @@ h5 {
|
|
7
7
|
}
|
8
8
|
.mfui-title-description-box {
|
9
9
|
font-family: inherit;
|
10
|
-
color:
|
10
|
+
color: var(--content);
|
11
11
|
}
|
12
12
|
.mfui-title-description-box__item_header {
|
13
13
|
white-space: pre-wrap;
|
@@ -16,7 +16,7 @@ h5 {
|
|
16
16
|
margin-bottom: 16px;
|
17
17
|
}
|
18
18
|
.mfui-title-description-box_text-color_white {
|
19
|
-
color:
|
19
|
+
color: var(--stcWhite);
|
20
20
|
}
|
21
21
|
.mfui-title-description-box_h-align_center {
|
22
22
|
text-align: center;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import './TitleDescriptionBox.less';
|
3
3
|
export interface ITitleDescriptionBoxProps {
|
4
|
-
/**
|
4
|
+
/** Дополнительные data атрибуты к внутренним элементам */
|
5
5
|
dataAttrs?: {
|
6
|
-
|
6
|
+
root?: Record<string, string>;
|
7
7
|
};
|
8
8
|
/** Ссылка на корневой элемент */
|
9
9
|
rootRef?: React.Ref<HTMLDivElement>;
|
@@ -29,7 +29,7 @@ var TitleDescriptionBox = function TitleDescriptionBox(_ref) {
|
|
29
29
|
className: cn('description')
|
30
30
|
}, description);
|
31
31
|
}, [description]);
|
32
|
-
return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs), {
|
32
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
33
33
|
className: cn({
|
34
34
|
'h-align': hAlign,
|
35
35
|
'text-color': textColor
|
@@ -50,7 +50,9 @@ var TitleDescriptionBox = function TitleDescriptionBox(_ref) {
|
|
50
50
|
};
|
51
51
|
|
52
52
|
TitleDescriptionBox.propTypes = {
|
53
|
-
dataAttrs: PropTypes.
|
53
|
+
dataAttrs: PropTypes.shape({
|
54
|
+
root: PropTypes.objectOf(PropTypes.string.isRequired)
|
55
|
+
}),
|
54
56
|
rootRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
|
55
57
|
current: PropTypes.elementType
|
56
58
|
}), PropTypes.any])]),
|
@@ -119,19 +119,19 @@ h5 {
|
|
119
119
|
}
|
120
120
|
}
|
121
121
|
.mfui-video-banner__content_text-color_black {
|
122
|
-
color:
|
122
|
+
color: var(--stcBlack);
|
123
123
|
}
|
124
124
|
.mfui-video-banner__content_text-color_white {
|
125
|
-
color:
|
125
|
+
color: var(--stcWhite);
|
126
126
|
}
|
127
127
|
@media screen and (max-width: 767px) {
|
128
128
|
.mfui-video-banner__content_text-color-mobile_black {
|
129
|
-
color:
|
129
|
+
color: var(--stcBlack);
|
130
130
|
}
|
131
131
|
}
|
132
132
|
@media screen and (max-width: 767px) {
|
133
133
|
.mfui-video-banner__content_text-color-mobile_white {
|
134
|
-
color:
|
134
|
+
color: var(--stcWhite);
|
135
135
|
}
|
136
136
|
}
|
137
137
|
.mfui-video-banner__description {
|
@@ -6,7 +6,7 @@ export interface IContent {
|
|
6
6
|
/** Текст-описание */
|
7
7
|
description: string | React.ReactNode[] | React.ReactNode;
|
8
8
|
/** Текст кнопки */
|
9
|
-
buttonTitle
|
9
|
+
buttonTitle: string;
|
10
10
|
/** Добавляет атрибут download для тега <a> компонента Button */
|
11
11
|
buttonDownload?: boolean;
|
12
12
|
/** Ссылка на кнопке */
|
@@ -81,7 +81,7 @@ var VideoBlock = function VideoBlock(_ref) {
|
|
81
81
|
className: cn('header')
|
82
82
|
}, title), /*#__PURE__*/React.createElement("div", {
|
83
83
|
className: cn('description', [classes.description])
|
84
|
-
}, description),
|
84
|
+
}, description), /*#__PURE__*/React.createElement(Button, {
|
85
85
|
className: cn('button', [classes.button]),
|
86
86
|
href: href,
|
87
87
|
onClick: onButtonClick,
|
@@ -100,7 +100,7 @@ var VideoBlock = function VideoBlock(_ref) {
|
|
100
100
|
orderTablet: "2",
|
101
101
|
orderMobile: "2",
|
102
102
|
key: "column-content"
|
103
|
-
}, renderContent(content)));
|
103
|
+
}, renderContent && renderContent(content)));
|
104
104
|
}
|
105
105
|
|
106
106
|
columns.push( /*#__PURE__*/React.createElement(GridColumn, {
|
@@ -139,7 +139,7 @@ VideoBlock.propTypes = {
|
|
139
139
|
title: PropTypes.string.isRequired,
|
140
140
|
description: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired,
|
141
141
|
href: PropTypes.string,
|
142
|
-
buttonTitle: PropTypes.string,
|
142
|
+
buttonTitle: PropTypes.string.isRequired,
|
143
143
|
buttonDownload: PropTypes.bool,
|
144
144
|
onButtonClick: PropTypes.func
|
145
145
|
}),
|
package/dist/es/index.d.ts
CHANGED
@@ -29,7 +29,6 @@ export { default as TableRow } from './components/Table/TableRow';
|
|
29
29
|
export { default as TabsBox } from './components/TabsBox/TabsBox';
|
30
30
|
export { default as TextBox } from './components/TextBox/TextBox';
|
31
31
|
export { default as TextBoxPicture } from './components/TextBox/TextBoxPicture';
|
32
|
-
export { default as TextWithIcon } from './components/TextWithIcon/TextWithIcon';
|
33
32
|
export { default as TitleDescriptionBox } from './components/TitleDescriptionBox/TitleDescriptionBox';
|
34
33
|
export { default as VideoBanner } from './components/VideoBanner/VideoBanner';
|
35
34
|
export { default as VideoBlock } from './components/VideoBlock/VideoBlock';
|
package/dist/es/index.js
CHANGED
@@ -29,7 +29,6 @@ export { default as TableRow } from "./components/Table/TableRow";
|
|
29
29
|
export { default as TabsBox } from "./components/TabsBox/TabsBox";
|
30
30
|
export { default as TextBox } from "./components/TextBox/TextBox";
|
31
31
|
export { default as TextBoxPicture } from "./components/TextBox/TextBoxPicture";
|
32
|
-
export { default as TextWithIcon } from "./components/TextWithIcon/TextWithIcon";
|
33
32
|
export { default as TitleDescriptionBox } from "./components/TitleDescriptionBox/TitleDescriptionBox";
|
34
33
|
export { default as VideoBanner } from "./components/VideoBanner/VideoBanner";
|
35
34
|
export { default as VideoBlock } from "./components/VideoBlock/VideoBlock";
|
@@ -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,9 +15,6 @@ export interface IAccordionBox {
|
|
15
15
|
isFullWidth?: boolean;
|
16
16
|
/** Центрирование по горизонтали для расширения 1280+ */
|
17
17
|
hCenterAlignWide?: boolean;
|
18
|
-
/** Вертикальные отступы */
|
19
|
-
/** @deprecated */
|
20
|
-
hasVerticalPaddings?: boolean;
|
21
18
|
/** Дополнительный класс для корнеовго элемента */
|
22
19
|
className?: string;
|
23
20
|
/** Дополнительные классы для корневого и внутренних элементов */
|
@@ -28,7 +25,7 @@ export interface IAccordionBox {
|
|
28
25
|
titleWrap?: string;
|
29
26
|
};
|
30
27
|
/** Обработчик клика */
|
31
|
-
onClickAccordion?: (isOpened: boolean
|
28
|
+
onClickAccordion?: (isOpened: boolean) => void;
|
32
29
|
}
|
33
30
|
declare const AccordionBox: React.FC<IAccordionBox>;
|
34
31
|
export default AccordionBox;
|
@@ -58,7 +58,9 @@ var AccordionBox = function AccordionBox(_a) {
|
|
58
58
|
};
|
59
59
|
|
60
60
|
AccordionBox.propTypes = {
|
61
|
-
dataAttrs: PropTypes.
|
61
|
+
dataAttrs: PropTypes.shape({
|
62
|
+
root: PropTypes.objectOf(PropTypes.string.isRequired)
|
63
|
+
}),
|
62
64
|
rootRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
|
63
65
|
current: PropTypes.elementType
|
64
66
|
}), PropTypes.any])]),
|
@@ -66,9 +68,6 @@ AccordionBox.propTypes = {
|
|
66
68
|
isFullWidth: PropTypes.bool,
|
67
69
|
isOpened: PropTypes.bool,
|
68
70
|
hCenterAlignWide: PropTypes.bool,
|
69
|
-
hasVerticalPaddings: function hasVerticalPaddings(props, propName) {
|
70
|
-
return props[propName] && new Error('Failed prop type: Prop "hasVerticalPaddings" is deprecated');
|
71
|
-
},
|
72
71
|
className: PropTypes.string,
|
73
72
|
classes: PropTypes.shape({
|
74
73
|
openedClass: PropTypes.string,
|
@@ -12,11 +12,14 @@ h5 {
|
|
12
12
|
-ms-flex-wrap: wrap;
|
13
13
|
flex-wrap: wrap;
|
14
14
|
}
|
15
|
+
.mfui-breadcrumbs_color_default .mfui-breadcrumbs__item:before {
|
16
|
+
color: var(--content);
|
17
|
+
}
|
15
18
|
.mfui-breadcrumbs_color_black .mfui-breadcrumbs__item:before {
|
16
|
-
color:
|
19
|
+
color: var(--stcBlack);
|
17
20
|
}
|
18
21
|
.mfui-breadcrumbs_color_white .mfui-breadcrumbs__item:before {
|
19
|
-
color:
|
22
|
+
color: var(--stcWhite);
|
20
23
|
}
|
21
24
|
.mfui-breadcrumbs__icon {
|
22
25
|
position: relative;
|
@@ -1,10 +1,12 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import './Breadcrumbs.less';
|
3
3
|
declare type ItemType = {
|
4
|
-
|
4
|
+
component?: React.ReactElement;
|
5
|
+
title?: string;
|
5
6
|
href?: string;
|
6
7
|
};
|
7
8
|
export declare const TextColor: {
|
9
|
+
readonly DEFAULT: "default";
|
8
10
|
readonly BLACK: "black";
|
9
11
|
readonly WHITE: "white";
|
10
12
|
};
|
@@ -20,6 +20,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
21
21
|
|
22
22
|
var TextColor = {
|
23
|
+
DEFAULT: 'default',
|
23
24
|
BLACK: 'black',
|
24
25
|
WHITE: 'white'
|
25
26
|
};
|
@@ -38,15 +39,16 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
38
39
|
color: color
|
39
40
|
}, className)
|
40
41
|
}, items.map(function (_ref2) {
|
41
|
-
var
|
42
|
+
var component = _ref2.component,
|
43
|
+
title = _ref2.title,
|
42
44
|
href = _ref2.href;
|
43
45
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
44
46
|
className: cn('item', classes.item),
|
45
47
|
key: title
|
46
|
-
}, /*#__PURE__*/_react["default"].createElement(_uiCore.TextLink, {
|
48
|
+
}, component, !component && /*#__PURE__*/_react["default"].createElement(_uiCore.TextLink, {
|
47
49
|
href: href,
|
48
50
|
color: color
|
49
|
-
}, title));
|
51
|
+
}, component || title));
|
50
52
|
}));
|
51
53
|
};
|
52
54
|
|