@megafon/ui-shared 2.0.0-beta.223 → 2.0.0-beta.227

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.
Files changed (74) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/dist/es/components/BenefitsIcons/BenefitsIcons.d.ts +2 -0
  3. package/dist/es/components/BenefitsIcons/BenefitsIcons.js +4 -1
  4. package/dist/es/components/BenefitsIcons/style/BenefitsIcons.css +1 -1
  5. package/dist/es/components/BenefitsIcons/style/BenefitsIconsTile.css +2 -2
  6. package/dist/es/components/BenefitsPictures/BenfitsPictures.css +1 -1
  7. package/dist/es/components/Breadcrumbs/Breadcrumbs.css +1 -1
  8. package/dist/es/components/ButtonBanner/ButtonBanner.css +6 -6
  9. package/dist/es/components/Card/Card.css +16 -12
  10. package/dist/es/components/Card/Card.d.ts +2 -2
  11. package/dist/es/components/Card/Card.js +4 -5
  12. package/dist/es/components/Container/Container.css +26 -18
  13. package/dist/es/components/Instructions/Instructions.css +42 -32
  14. package/dist/es/components/Instructions/Instructions.js +9 -23
  15. package/dist/es/components/PageTitle/PageTitle.css +7 -7
  16. package/dist/es/components/PageTitle/PageTitle.js +12 -7
  17. package/dist/es/components/Partners/Partners.css +2 -2
  18. package/dist/es/components/PictureWithDescription/PictureWithDescription.css +2 -2
  19. package/dist/es/components/Property/Property.css +12 -12
  20. package/dist/es/components/Property/PropertyDescription.css +1 -1
  21. package/dist/es/components/Steps/Steps.css +2 -2
  22. package/dist/es/components/Steps/StepsItem.css +3 -3
  23. package/dist/es/components/StoreBanner/StoreBanner.css +51 -8
  24. package/dist/es/components/StoreBanner/StoreBanner.d.ts +11 -2
  25. package/dist/es/components/StoreBanner/StoreBanner.js +39 -19
  26. package/dist/es/components/StoreButton/StoreButton.css +5 -2
  27. package/dist/es/components/StoreButton/StoreButton.d.ts +2 -1
  28. package/dist/es/components/StoreButton/StoreButton.js +1 -0
  29. package/dist/es/components/StoreButton/img/huawei-store.png +0 -0
  30. package/dist/es/components/Table/Table.css +48 -48
  31. package/dist/es/components/TextBox/TextBoxPicture.css +23 -0
  32. package/dist/es/components/TextBox/TextBoxPicture.d.ts +17 -0
  33. package/dist/es/components/TextBox/TextBoxPicture.js +31 -0
  34. package/dist/es/components/VideoBanner/VideoBanner.css +8 -9
  35. package/dist/es/components/VideoBlock/VideoBlock.css +3 -3
  36. package/dist/es/index.d.ts +1 -0
  37. package/dist/es/index.js +1 -0
  38. package/dist/lib/components/BenefitsIcons/BenefitsIcons.d.ts +2 -0
  39. package/dist/lib/components/BenefitsIcons/BenefitsIcons.js +4 -1
  40. package/dist/lib/components/BenefitsIcons/style/BenefitsIcons.css +1 -1
  41. package/dist/lib/components/BenefitsIcons/style/BenefitsIconsTile.css +2 -2
  42. package/dist/lib/components/BenefitsPictures/BenfitsPictures.css +1 -1
  43. package/dist/lib/components/Breadcrumbs/Breadcrumbs.css +1 -1
  44. package/dist/lib/components/ButtonBanner/ButtonBanner.css +6 -6
  45. package/dist/lib/components/Card/Card.css +16 -12
  46. package/dist/lib/components/Card/Card.d.ts +2 -2
  47. package/dist/lib/components/Card/Card.js +3 -4
  48. package/dist/lib/components/Container/Container.css +26 -18
  49. package/dist/lib/components/Instructions/Instructions.css +42 -32
  50. package/dist/lib/components/Instructions/Instructions.js +8 -25
  51. package/dist/lib/components/PageTitle/PageTitle.css +7 -7
  52. package/dist/lib/components/PageTitle/PageTitle.js +12 -7
  53. package/dist/lib/components/Partners/Partners.css +2 -2
  54. package/dist/lib/components/PictureWithDescription/PictureWithDescription.css +2 -2
  55. package/dist/lib/components/Property/Property.css +12 -12
  56. package/dist/lib/components/Property/PropertyDescription.css +1 -1
  57. package/dist/lib/components/Steps/Steps.css +2 -2
  58. package/dist/lib/components/Steps/StepsItem.css +3 -3
  59. package/dist/lib/components/StoreBanner/StoreBanner.css +51 -8
  60. package/dist/lib/components/StoreBanner/StoreBanner.d.ts +11 -2
  61. package/dist/lib/components/StoreBanner/StoreBanner.js +38 -18
  62. package/dist/lib/components/StoreButton/StoreButton.css +5 -2
  63. package/dist/lib/components/StoreButton/StoreButton.d.ts +2 -1
  64. package/dist/lib/components/StoreButton/StoreButton.js +1 -0
  65. package/dist/lib/components/StoreButton/img/huawei-store.png +0 -0
  66. package/dist/lib/components/Table/Table.css +48 -48
  67. package/dist/lib/components/TextBox/TextBoxPicture.css +23 -0
  68. package/dist/lib/components/TextBox/TextBoxPicture.d.ts +17 -0
  69. package/dist/lib/components/TextBox/TextBoxPicture.js +48 -0
  70. package/dist/lib/components/VideoBanner/VideoBanner.css +8 -9
  71. package/dist/lib/components/VideoBlock/VideoBlock.css +3 -3
  72. package/dist/lib/index.d.ts +1 -0
  73. package/dist/lib/index.js +8 -0
  74. package/package.json +9 -12
@@ -6,20 +6,38 @@ h5 {
6
6
  margin: 0;
7
7
  }
8
8
  .mfui-beta-table {
9
- font-family: inherit;
10
- font-size: 15px;
11
- line-height: 24px;
12
9
  display: -webkit-box;
13
10
  display: -ms-flexbox;
14
11
  display: flex;
12
+ font-family: inherit;
13
+ font-size: 15px;
14
+ line-height: 24px;
15
+ }
16
+ .mfui-beta-table:not(.mfui-beta-table_touch) ::-webkit-scrollbar {
17
+ width: 8px;
18
+ height: 8px;
19
+ }
20
+ .mfui-beta-table:not(.mfui-beta-table_touch) ::-webkit-scrollbar-track {
21
+ background-color: #EDEDED;
22
+ }
23
+ .mfui-beta-table:not(.mfui-beta-table_touch) ::-webkit-scrollbar-thumb {
24
+ border-radius: 4px;
25
+ background-color: #D8D8D8;
26
+ }
27
+ .mfui-beta-table:not(.mfui-beta-table_touch) ::-webkit-scrollbar-corner {
28
+ background-color: #FFFFFF;
29
+ }
30
+ .mfui-beta-table:not(.mfui-beta-table_touch) .mfui-beta-table__scroll {
31
+ scrollbar-color: #D8D8D8 #EDEDED;
32
+ scrollbar-width: thin;
15
33
  }
16
34
  .mfui-beta-table__scroll {
35
+ position: relative;
17
36
  display: grid;
18
37
  grid-template-columns: auto auto auto;
19
38
  max-width: 100%;
20
- overflow: auto;
21
- position: relative;
22
39
  border: 1px solid #D8D8D8;
40
+ overflow: auto;
23
41
  }
24
42
  @media screen and (min-width: 1024px) {
25
43
  .mfui-beta-table__scroll {
@@ -30,76 +48,76 @@ h5 {
30
48
  position: -webkit-sticky;
31
49
  position: sticky;
32
50
  top: 0;
33
- width: 100%;
51
+ z-index: 2;
34
52
  display: block;
35
- grid-column-end: 4;
36
53
  grid-column-start: 1;
37
- z-index: 2;
38
- margin-bottom: -6px;
54
+ grid-column-end: 4;
55
+ width: 100%;
39
56
  height: 6px;
57
+ margin-bottom: -6px;
40
58
  background: linear-gradient(359.94deg, rgba(0, 0, 0, 0.0001) 0.06%, rgba(0, 0, 0, 0.03) 38.08%, rgba(0, 0, 0, 0.08) 74.98%);
41
59
  }
42
60
  .mfui-beta-table__left-shadow {
43
61
  position: -webkit-sticky;
44
62
  position: sticky;
45
- z-index: 2;
46
- width: 6px;
47
- left: 0;
48
63
  top: 0;
49
64
  bottom: 0;
65
+ left: 0;
66
+ z-index: 2;
67
+ width: 6px;
50
68
  margin-right: -6px;
51
69
  background: -webkit-gradient(linear, right top, left top, color-stop(16.3%, rgba(0, 0, 0, 0.0001)), color-stop(51.81%, rgba(0, 0, 0, 0.03)), color-stop(86.27%, rgba(0, 0, 0, 0.08)));
52
70
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.0001) 16.3%, rgba(0, 0, 0, 0.03) 51.81%, rgba(0, 0, 0, 0.08) 86.27%);
53
71
  }
54
72
  .mfui-beta-table__bottom-gradient {
55
- display: block;
56
- height: 48px;
57
- width: 100%;
58
- margin-top: -48px;
59
73
  position: -webkit-sticky;
60
74
  position: sticky;
61
- z-index: 1;
62
75
  bottom: 0;
76
+ z-index: 1;
77
+ display: block;
78
+ grid-column-start: 1;
79
+ grid-column-end: 4;
80
+ width: 100%;
81
+ height: 48px;
82
+ margin-top: -48px;
63
83
  background: -webkit-gradient(linear, left bottom, left top, color-stop(25%, #FFFFFF), to(rgba(255, 255, 255, 0)));
64
84
  background: linear-gradient(to top, #FFFFFF 25%, rgba(255, 255, 255, 0));
65
- grid-column-end: 4;
66
- grid-column-start: 1;
67
85
  }
68
86
  .mfui-beta-table__right-gradient {
69
- display: block;
70
- height: 100%;
71
- width: 48px;
72
87
  position: -webkit-sticky;
73
88
  position: sticky;
74
- z-index: 1;
75
89
  right: 0;
90
+ z-index: 1;
91
+ display: block;
92
+ width: 48px;
93
+ height: 100%;
76
94
  margin-left: -48px;
77
95
  background: -webkit-gradient(linear, right top, left top, color-stop(25%, #FFFFFF), to(rgba(255, 255, 255, 0)));
78
96
  background: linear-gradient(to left, #FFFFFF 25%, rgba(255, 255, 255, 0));
79
97
  }
80
98
  .mfui-beta-table__table {
81
- border-spacing: 0;
82
99
  border-width: 0;
83
100
  border-collapse: separate;
101
+ border-spacing: 0;
84
102
  background-color: #FFFFFF;
85
103
  }
86
104
  .mfui-beta-table__cell {
87
- padding: 24px;
88
105
  -webkit-box-sizing: border-box;
89
106
  box-sizing: border-box;
107
+ padding: 24px;
90
108
  background-color: #FFFFFF;
91
109
  }
92
110
  @media screen and (max-width: 767px) {
93
111
  .mfui-beta-table__cell {
94
- padding-left: 16px;
95
112
  padding-right: 16px;
113
+ padding-left: 16px;
96
114
  }
97
115
  }
98
116
  .mfui-beta-table__cell:first-child {
117
+ position: relative;
99
118
  left: 0;
100
- min-width: 144px;
101
119
  width: 144px;
102
- position: relative;
120
+ min-width: 144px;
103
121
  border-right: 1px solid #D8D8D8;
104
122
  }
105
123
  .mfui-beta-table__cell:not(:first-child) {
@@ -109,10 +127,10 @@ h5 {
109
127
  font-size: 12px;
110
128
  line-height: 16px;
111
129
  height: 72px;
112
- background-color: #F6F6F6;
113
- color: rgba(51, 51, 51, 0.5);
114
130
  padding-bottom: 12px;
131
+ color: rgba(51, 51, 51, 0.5);
115
132
  vertical-align: bottom;
133
+ background-color: #F6F6F6;
116
134
  }
117
135
  .mfui-beta-table__row:not(:last-child) .mfui-beta-table__cell {
118
136
  border-bottom: 1px solid #D8D8D8;
@@ -133,21 +151,3 @@ h5 {
133
151
  .mfui-beta-table_fix-column .mfui-beta-table__bottom-gradient {
134
152
  z-index: 3;
135
153
  }
136
- .mfui-beta-table:not(.mfui-beta-table_touch) ::-webkit-scrollbar {
137
- width: 8px;
138
- height: 8px;
139
- }
140
- .mfui-beta-table:not(.mfui-beta-table_touch) ::-webkit-scrollbar-track {
141
- background-color: #EDEDED;
142
- }
143
- .mfui-beta-table:not(.mfui-beta-table_touch) ::-webkit-scrollbar-thumb {
144
- border-radius: 4px;
145
- background-color: #D8D8D8;
146
- }
147
- .mfui-beta-table:not(.mfui-beta-table_touch) ::-webkit-scrollbar-corner {
148
- background-color: #FFFFFF;
149
- }
150
- .mfui-beta-table:not(.mfui-beta-table_touch) .mfui-beta-table__scroll {
151
- scrollbar-color: #D8D8D8 #EDEDED;
152
- scrollbar-width: thin;
153
- }
@@ -0,0 +1,23 @@
1
+ h1,
2
+ h2,
3
+ h3,
4
+ h4,
5
+ h5 {
6
+ margin: 0;
7
+ }
8
+ .mfui-beta-text-box-picture_margin_default {
9
+ margin: 16px 0;
10
+ }
11
+ .mfui-beta-text-box-picture_margin_big-top {
12
+ margin: 24px 0 16px;
13
+ }
14
+ .mfui-beta-text-box-picture_margin_big-bottom {
15
+ margin: 16px 0 24px;
16
+ }
17
+ .mfui-beta-text-box-picture_margin_big-vertical {
18
+ margin: 24px 0;
19
+ }
20
+ .mfui-beta-text-box-picture__img {
21
+ width: 100%;
22
+ height: 100%;
23
+ }
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ import './TextBoxPicture.less';
3
+ export declare const pictureMarginTypes: {
4
+ readonly DEFAULT: "default";
5
+ readonly BIG_TOP: "big-top";
6
+ readonly BIG_BOTTOM: "big-bottom";
7
+ readonly BIG_VERTICAL: "big-vertical";
8
+ };
9
+ declare type PictureMarginTypesType = typeof pictureMarginTypes[keyof typeof pictureMarginTypes];
10
+ export interface ITextBoxPictureProps {
11
+ /** URL картинки */
12
+ url: string;
13
+ /** Значение вертикальных отступов */
14
+ margin?: PictureMarginTypesType;
15
+ }
16
+ declare const TextBoxPicture: React.FC<ITextBoxPictureProps>;
17
+ export default TextBoxPicture;
@@ -0,0 +1,31 @@
1
+ import * as React from 'react';
2
+ import * as PropTypes from 'prop-types';
3
+ import { cnCreate } from '@megafon/ui-helpers';
4
+ import "./TextBoxPicture.css";
5
+ export var pictureMarginTypes = {
6
+ DEFAULT: 'default',
7
+ BIG_TOP: 'big-top',
8
+ BIG_BOTTOM: 'big-bottom',
9
+ BIG_VERTICAL: 'big-vertical'
10
+ };
11
+ var cn = cnCreate('mfui-beta-text-box-picture');
12
+
13
+ var TextBoxPicture = function TextBoxPicture(_ref) {
14
+ var url = _ref.url,
15
+ _ref$margin = _ref.margin,
16
+ margin = _ref$margin === void 0 ? pictureMarginTypes.DEFAULT : _ref$margin;
17
+ return /*#__PURE__*/React.createElement("div", {
18
+ className: cn({
19
+ margin: margin
20
+ })
21
+ }, /*#__PURE__*/React.createElement("img", {
22
+ className: cn('img'),
23
+ src: url
24
+ }));
25
+ };
26
+
27
+ TextBoxPicture.propTypes = {
28
+ url: PropTypes.string.isRequired,
29
+ margin: PropTypes.oneOf([pictureMarginTypes.DEFAULT, pictureMarginTypes.BIG_TOP, pictureMarginTypes.BIG_BOTTOM, pictureMarginTypes.BIG_VERTICAL])
30
+ };
31
+ export default TextBoxPicture;
@@ -11,26 +11,26 @@ h5 {
11
11
  }
12
12
  @media screen and (min-width: 1280px) {
13
13
  .mfui-beta-video-banner {
14
- margin-left: -80px;
15
14
  margin-right: -80px;
15
+ margin-left: -80px;
16
16
  }
17
17
  }
18
18
  @media screen and (min-width: 1024px) and (max-width: 1279px) {
19
19
  .mfui-beta-video-banner {
20
- margin-left: -64px;
21
20
  margin-right: -64px;
21
+ margin-left: -64px;
22
22
  }
23
23
  }
24
24
  @media screen and (min-width: 768px) and (max-width: 1023px) {
25
25
  .mfui-beta-video-banner {
26
- margin-left: -48px;
27
26
  margin-right: -48px;
27
+ margin-left: -48px;
28
28
  }
29
29
  }
30
30
  @media screen and (max-width: 767px) {
31
31
  .mfui-beta-video-banner {
32
- margin-left: -16px;
33
32
  margin-right: -16px;
33
+ margin-left: -16px;
34
34
  }
35
35
  }
36
36
  .mfui-beta-video-banner__wrapper {
@@ -76,18 +76,17 @@ h5 {
76
76
  .mfui-beta-video-banner__background-image,
77
77
  .mfui-beta-video-banner__video {
78
78
  position: absolute;
79
- left: 50%;
80
79
  top: 50%;
80
+ left: 50%;
81
81
  -webkit-transform: translate(-50%, -50%);
82
82
  transform: translate(-50%, -50%);
83
- max-width: 1440px;
84
83
  }
85
84
  .mfui-beta-video-banner__background-image {
86
85
  width: 100%;
87
86
  height: 100%;
87
+ background-repeat: no-repeat;
88
88
  background-position: center;
89
89
  background-size: cover;
90
- background-repeat: no-repeat;
91
90
  }
92
91
  .mfui-beta-video-banner__content {
93
92
  position: relative;
@@ -161,14 +160,14 @@ h5 {
161
160
  display: -webkit-box;
162
161
  display: -ms-flexbox;
163
162
  display: flex;
163
+ -ms-flex-wrap: wrap;
164
+ flex-wrap: wrap;
164
165
  -webkit-box-align: center;
165
166
  -ms-flex-align: center;
166
167
  align-items: center;
167
168
  -webkit-box-pack: start;
168
169
  -ms-flex-pack: start;
169
170
  justify-content: flex-start;
170
- -ms-flex-wrap: wrap;
171
- flex-wrap: wrap;
172
171
  margin: -24px -10px 0;
173
172
  }
174
173
  @media screen and (max-width: 767px) {
@@ -21,10 +21,10 @@ h5 {
21
21
  -webkit-box-direction: normal;
22
22
  -ms-flex-direction: column;
23
23
  flex-direction: column;
24
- height: 100%;
25
24
  -webkit-box-pack: center;
26
25
  -ms-flex-pack: center;
27
26
  justify-content: center;
27
+ height: 100%;
28
28
  }
29
29
  @media screen and (max-width: 767px) {
30
30
  .mfui-beta-video-block__content {
@@ -38,8 +38,8 @@ h5 {
38
38
  }
39
39
  @media screen and (min-width: 768px) {
40
40
  .mfui-beta-video-block__content {
41
- padding-right: 20px;
42
41
  margin-right: 20px;
42
+ padding-right: 20px;
43
43
  }
44
44
  }
45
45
  .mfui-beta-video-block__header {
@@ -54,8 +54,8 @@ h5 {
54
54
  margin-top: 24px;
55
55
  }
56
56
  .mfui-beta-video-block__button {
57
- margin-top: 32px;
58
57
  width: 171px;
58
+ margin-top: 32px;
59
59
  }
60
60
  @media screen and (max-width: 767px) {
61
61
  .mfui-beta-video-block__button {
@@ -28,6 +28,7 @@ export { default as TableCell } from './components/Table/TableCell';
28
28
  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
+ export { default as TextBoxPicture } from './components/TextBox/TextBoxPicture';
31
32
  export { default as TitleDescriptionBox } from './components/TitleDescriptionBox/TitleDescriptionBox';
32
33
  export { default as VideoBanner } from './components/VideoBanner/VideoBanner';
33
34
  export { default as VideoBlock } from './components/VideoBlock/VideoBlock';
package/dist/es/index.js CHANGED
@@ -28,6 +28,7 @@ export { default as TableCell } from "./components/Table/TableCell";
28
28
  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
+ export { default as TextBoxPicture } from "./components/TextBox/TextBoxPicture";
31
32
  export { default as TitleDescriptionBox } from "./components/TitleDescriptionBox/TitleDescriptionBox";
32
33
  export { default as VideoBanner } from "./components/VideoBanner/VideoBanner";
33
34
  export { default as VideoBlock } from "./components/VideoBlock/VideoBlock";
@@ -14,6 +14,8 @@ export interface IBenefitsIcons {
14
14
  classes?: {
15
15
  root?: string;
16
16
  item?: string;
17
+ grid?: string;
18
+ gridColumn?: string;
17
19
  };
18
20
  }
19
21
  declare const BenefitsIcons: React.FC<IBenefitsIcons>;
@@ -148,13 +148,16 @@ var BenefitsIcons = function BenefitsIcons(_ref) {
148
148
  }, /*#__PURE__*/React.createElement("div", {
149
149
  className: cn('inner')
150
150
  }, /*#__PURE__*/React.createElement(_uiCore.Grid, {
151
+ className: classes.grid,
151
152
  guttersLeft: "medium",
152
153
  hAlign: hAlign
153
154
  }, items.map(function (_ref2, i) {
154
155
  var title = _ref2.title,
155
156
  text = _ref2.text,
156
157
  icon = _ref2.icon;
157
- return /*#__PURE__*/React.createElement(_uiCore.GridColumn, (0, _extends2["default"])({}, getColumnConfig(iconPosition, items.length, i), {
158
+ return /*#__PURE__*/React.createElement(_uiCore.GridColumn, (0, _extends2["default"])({
159
+ className: classes.gridColumn
160
+ }, getColumnConfig(iconPosition, items.length, i), {
158
161
  key: i
159
162
  }), /*#__PURE__*/React.createElement(_BenefitsIconsTile["default"], {
160
163
  className: classes.item,
@@ -6,8 +6,8 @@ h5 {
6
6
  margin: 0;
7
7
  }
8
8
  .mfui-beta-benefits-icons {
9
- font-size: 10px;
10
9
  overflow: hidden;
10
+ font-size: 10px;
11
11
  }
12
12
  .mfui-beta-benefits-icons__inner {
13
13
  margin-bottom: -48px;
@@ -23,8 +23,8 @@ h5 {
23
23
  margin-bottom: 0;
24
24
  }
25
25
  .mfui-beta-benefits-icons-tile__svg-icon {
26
- width: 44px;
27
- height: 44px;
26
+ width: 40px;
27
+ height: 40px;
28
28
  overflow: hidden;
29
29
  }
30
30
  .mfui-beta-benefits-icons-tile_icon-position_left-side {
@@ -11,8 +11,8 @@ h5 {
11
11
  }
12
12
  .mfui-beta-benefits-pictures__img_h-align_center {
13
13
  display: block;
14
- margin-left: auto;
15
14
  margin-right: auto;
15
+ margin-left: auto;
16
16
  }
17
17
  .mfui-beta-benefits-pictures__title {
18
18
  margin-bottom: 12px;
@@ -26,8 +26,8 @@ h5 {
26
26
  }
27
27
  .mfui-beta-breadcrumbs__item {
28
28
  position: relative;
29
- padding-left: 22px;
30
29
  margin-right: 10px;
30
+ padding-left: 22px;
31
31
  }
32
32
  .mfui-beta-breadcrumbs__item:before {
33
33
  content: '→';
@@ -19,9 +19,9 @@ h5 {
19
19
  .mfui-beta-button-banner:before {
20
20
  content: '';
21
21
  position: absolute;
22
- left: 0;
23
22
  top: 0;
24
23
  bottom: 0;
24
+ left: 0;
25
25
  width: 12px;
26
26
  background-color: #00B956;
27
27
  border-radius: 0 12px 12px 0;
@@ -33,8 +33,8 @@ h5 {
33
33
  }
34
34
  @media screen and (max-width: 767px) {
35
35
  .mfui-beta-button-banner:before {
36
- bottom: auto;
37
36
  right: 0;
37
+ bottom: auto;
38
38
  width: auto;
39
39
  height: 12px;
40
40
  }
@@ -45,8 +45,8 @@ h5 {
45
45
  }
46
46
  @media screen and (max-width: 767px) {
47
47
  .mfui-beta-button-banner__content {
48
- text-align: center;
49
48
  padding: 36px 16px 32px;
49
+ text-align: center;
50
50
  }
51
51
  }
52
52
  @media screen and (min-width: 768px) and (max-width: 1023px) {
@@ -65,8 +65,6 @@ h5 {
65
65
  }
66
66
  }
67
67
  .mfui-beta-button-banner__media {
68
- overflow: hidden;
69
- height: 100%;
70
68
  display: -webkit-box;
71
69
  display: -ms-flexbox;
72
70
  display: flex;
@@ -76,9 +74,11 @@ h5 {
76
74
  -webkit-box-pack: center;
77
75
  -ms-flex-pack: center;
78
76
  justify-content: center;
77
+ height: 100%;
78
+ padding: 0 20px;
79
+ overflow: hidden;
79
80
  background-repeat: no-repeat;
80
81
  background-position: center;
81
- padding: 0 20px;
82
82
  border-radius: 0 8px 8px 0;
83
83
  }
84
84
  @media screen and (max-width: 767px) {
@@ -10,10 +10,10 @@ h5 {
10
10
  display: -ms-flexbox;
11
11
  display: flex;
12
12
  border-radius: 8px;
13
+ overflow: hidden;
14
+ background-color: #FFFFFF;
13
15
  -webkit-box-shadow: 0 0.25px 3px rgba(0, 0, 0, 0.25);
14
16
  box-shadow: 0 0.25px 3px rgba(0, 0, 0, 0.25);
15
- background-color: #FFFFFF;
16
- overflow: hidden;
17
17
  }
18
18
  .mfui-beta-card__inner {
19
19
  display: -webkit-box;
@@ -28,9 +28,9 @@ h5 {
28
28
  flex-grow: 0;
29
29
  -ms-flex-negative: 1;
30
30
  flex-shrink: 1;
31
- width: 100%;
32
31
  -webkit-box-sizing: border-box;
33
32
  box-sizing: border-box;
33
+ width: 100%;
34
34
  padding: 32px 20px;
35
35
  }
36
36
  @media screen and (max-width: 767px) {
@@ -39,7 +39,11 @@ h5 {
39
39
  }
40
40
  }
41
41
  .mfui-beta-card__text {
42
+ font-size: 15px;
43
+ line-height: 24px;
44
+ font-weight: 400;
42
45
  margin-top: 12px;
46
+ color: #333333;
43
47
  }
44
48
  .mfui-beta-card__btns-wrapper {
45
49
  display: -webkit-box;
@@ -47,14 +51,14 @@ h5 {
47
51
  display: flex;
48
52
  -ms-flex-wrap: wrap;
49
53
  flex-wrap: wrap;
50
- -webkit-box-pack: space-evenly;
51
- -ms-flex-pack: space-evenly;
52
- justify-content: space-evenly;
53
54
  -webkit-box-align: center;
54
55
  -ms-flex-align: center;
55
56
  align-items: center;
56
- padding-top: 12px;
57
+ -webkit-box-pack: space-evenly;
58
+ -ms-flex-pack: space-evenly;
59
+ justify-content: space-evenly;
57
60
  margin-top: auto;
61
+ padding-top: 12px;
58
62
  }
59
63
  .mfui-beta-card__btns-wrapper_left-align {
60
64
  -webkit-box-pack: start;
@@ -88,21 +92,21 @@ h5 {
88
92
  display: -webkit-box;
89
93
  display: -ms-flexbox;
90
94
  display: flex;
91
- -webkit-box-pack: center;
92
- -ms-flex-pack: center;
93
- justify-content: center;
94
95
  -webkit-box-align: center;
95
96
  -ms-flex-align: center;
96
97
  align-items: center;
98
+ -webkit-box-pack: center;
99
+ -ms-flex-pack: center;
100
+ justify-content: center;
97
101
  margin-top: -32px;
98
- margin-left: -20px;
99
102
  margin-right: -20px;
103
+ margin-left: -20px;
100
104
  }
101
105
  @media screen and (max-width: 767px) {
102
106
  .mfui-beta-card__pic-wrapper_img {
103
107
  margin-top: -24px;
104
- margin-left: -16px;
105
108
  margin-right: -16px;
109
+ margin-left: -16px;
106
110
  }
107
111
  }
108
112
  .mfui-beta-card__pic-wrapper_object-fit_fill img {
@@ -43,9 +43,9 @@ export interface ICard {
43
43
  /** Иконка в карточке */
44
44
  svgSrc?: React.ReactNode;
45
45
  /** Заголовок карточки */
46
- title: string;
46
+ title: string | React.ReactNode[] | React.ReactNode;
47
47
  /** Текст карточки */
48
- text?: string;
48
+ text?: string | React.ReactNode[] | React.ReactNode;
49
49
  /** Данные для кнопки */
50
50
  button?: IButton;
51
51
  /** Данные для ссылки */
@@ -156,8 +156,7 @@ var Card = function Card(_ref) {
156
156
  }, /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, renderImage(), /*#__PURE__*/_react["default"].createElement(_uiCore.Header, {
157
157
  as: "h3",
158
158
  className: cn('title')
159
- }, title), !!text && /*#__PURE__*/_react["default"].createElement(_uiCore.Paragraph, {
160
- hasMargin: false,
159
+ }, title), !!text && /*#__PURE__*/_react["default"].createElement("div", {
161
160
  className: cn('text')
162
161
  }, text), renderBtnsWrapper())));
163
162
  };
@@ -176,8 +175,8 @@ Card.propTypes = {
176
175
  }), _propTypes["default"].any])]),
177
176
  imageSrc: _propTypes["default"].string,
178
177
  svgSrc: _propTypes["default"].node,
179
- title: _propTypes["default"].string.isRequired,
180
- text: _propTypes["default"].string,
178
+ title: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].node, _propTypes["default"].arrayOf(_propTypes["default"].node)]).isRequired,
179
+ text: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].node, _propTypes["default"].arrayOf(_propTypes["default"].node)]),
181
180
  button: _propTypes["default"].shape({
182
181
  title: _propTypes["default"].string.isRequired,
183
182
  href: _propTypes["default"].string.isRequired,
@@ -8,22 +8,6 @@ h5 {
8
8
  .mfui-beta-container {
9
9
  padding-bottom: 96px;
10
10
  }
11
- .mfui-beta-container_disable-padding-top {
12
- padding-top: 0 !important;
13
- }
14
- .mfui-beta-container_disable-padding-bottom {
15
- padding-bottom: 0 !important;
16
- }
17
- @media screen and (min-width: 768px) and (max-width: 1023px) {
18
- .mfui-beta-container {
19
- padding-bottom: 72px;
20
- }
21
- }
22
- @media screen and (max-width: 767px) {
23
- .mfui-beta-container {
24
- padding-bottom: 48px;
25
- }
26
- }
27
11
  .mfui-beta-container_bg-color_default {
28
12
  background-color: #FFFFFF;
29
13
  }
@@ -39,6 +23,16 @@ h5 {
39
23
  .mfui-beta-container_bg-color_purple {
40
24
  background-color: #731982;
41
25
  }
26
+ @media screen and (min-width: 768px) and (max-width: 1023px) {
27
+ .mfui-beta-container {
28
+ padding-bottom: 72px;
29
+ }
30
+ }
31
+ @media screen and (max-width: 767px) {
32
+ .mfui-beta-container {
33
+ padding-bottom: 48px;
34
+ }
35
+ }
42
36
  .mfui-beta-container_bg-color_default + .mfui-beta-container_bg-color_light-gray {
43
37
  padding-top: 96px;
44
38
  }
@@ -1897,10 +1891,18 @@ h5 {
1897
1891
  margin-top: 40px;
1898
1892
  }
1899
1893
  }
1900
- .mfui-beta-container .mfui-beta-property + .mfui-beta-property,
1894
+ .mfui-beta-container .mfui-beta-property + .mfui-beta-property {
1895
+ margin-top: 0 !important;
1896
+ }
1901
1897
  .mfui-beta-container .mfui-beta-property + .mfui-beta-button-link-box,
1902
1898
  .mfui-beta-container .mfui-beta-property + .mfui-beta-download-links {
1903
- margin-top: 0 !important;
1899
+ margin-top: 48px;
1900
+ }
1901
+ @media screen and (max-width: 1023px) {
1902
+ .mfui-beta-container .mfui-beta-property + .mfui-beta-button-link-box,
1903
+ .mfui-beta-container .mfui-beta-property + .mfui-beta-download-links {
1904
+ margin-top: 32px;
1905
+ }
1904
1906
  }
1905
1907
  .mfui-beta-container .mfui-beta-table + .mfui-beta-benefits-icons {
1906
1908
  margin-top: 56px;
@@ -2798,3 +2800,9 @@ h5 {
2798
2800
  .mfui-beta-container .mfui-beta-page-title + .mfui-beta-button-link-box {
2799
2801
  margin-top: 0 !important;
2800
2802
  }
2803
+ .mfui-beta-container_disable-padding-top {
2804
+ padding-top: 0 !important;
2805
+ }
2806
+ .mfui-beta-container_disable-padding-bottom {
2807
+ padding-bottom: 0 !important;
2808
+ }