@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.
Files changed (74) hide show
  1. package/CHANGELOG.md +124 -10
  2. package/dist/es/components/AccordionBox/AccordionBox.d.ts +3 -6
  3. package/dist/es/components/AccordionBox/AccordionBox.js +3 -4
  4. package/dist/es/components/Breadcrumbs/Breadcrumbs.css +5 -2
  5. package/dist/es/components/Breadcrumbs/Breadcrumbs.d.ts +3 -1
  6. package/dist/es/components/Breadcrumbs/Breadcrumbs.js +5 -3
  7. package/dist/es/components/ButtonBanner/ButtonBanner.css +3 -3
  8. package/dist/es/components/ButtonBanner/ButtonBanner.d.ts +2 -2
  9. package/dist/es/components/ButtonBanner/ButtonBanner.js +4 -2
  10. package/dist/es/components/ButtonLinkBox/ButtonLinkBox.d.ts +2 -2
  11. package/dist/es/components/ButtonLinkBox/ButtonLinkBox.js +4 -2
  12. package/dist/es/components/Card/Card.css +3 -3
  13. package/dist/es/components/Container/Container.css +5 -168
  14. package/dist/es/components/DownloadLinks/DownloadLink.css +2 -1
  15. package/dist/es/components/Instructions/Instructions.css +7 -7
  16. package/dist/es/components/PageTitle/PageTitle.css +2 -2
  17. package/dist/es/components/Property/Property.css +5 -5
  18. package/dist/es/components/Property/PropertyDescription.css +3 -3
  19. package/dist/es/components/Steps/StepsItem.css +2 -2
  20. package/dist/es/components/StoreBanner/StoreBanner.css +31 -32
  21. package/dist/es/components/StoreBanner/StoreBanner.d.ts +3 -5
  22. package/dist/es/components/StoreBanner/StoreBanner.js +8 -25
  23. package/dist/es/components/StoreBanner/doc/img/qr-code.png +0 -0
  24. package/dist/es/components/Table/Table.css +15 -15
  25. package/dist/es/components/TextBox/TextBox.css +0 -9
  26. package/dist/es/components/TextBox/TextBoxPicture.css +1 -1
  27. package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.css +2 -2
  28. package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +2 -2
  29. package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.js +4 -2
  30. package/dist/es/components/VideoBanner/VideoBanner.css +4 -4
  31. package/dist/es/components/VideoBlock/VideoBlock.d.ts +1 -1
  32. package/dist/es/components/VideoBlock/VideoBlock.js +3 -3
  33. package/dist/es/index.d.ts +0 -1
  34. package/dist/es/index.js +0 -1
  35. package/dist/lib/components/AccordionBox/AccordionBox.d.ts +3 -6
  36. package/dist/lib/components/AccordionBox/AccordionBox.js +3 -4
  37. package/dist/lib/components/Breadcrumbs/Breadcrumbs.css +5 -2
  38. package/dist/lib/components/Breadcrumbs/Breadcrumbs.d.ts +3 -1
  39. package/dist/lib/components/Breadcrumbs/Breadcrumbs.js +5 -3
  40. package/dist/lib/components/ButtonBanner/ButtonBanner.css +3 -3
  41. package/dist/lib/components/ButtonBanner/ButtonBanner.d.ts +2 -2
  42. package/dist/lib/components/ButtonBanner/ButtonBanner.js +4 -2
  43. package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.d.ts +2 -2
  44. package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.js +4 -2
  45. package/dist/lib/components/Card/Card.css +3 -3
  46. package/dist/lib/components/Container/Container.css +5 -168
  47. package/dist/lib/components/DownloadLinks/DownloadLink.css +2 -1
  48. package/dist/lib/components/Instructions/Instructions.css +7 -7
  49. package/dist/lib/components/PageTitle/PageTitle.css +2 -2
  50. package/dist/lib/components/Property/Property.css +5 -5
  51. package/dist/lib/components/Property/PropertyDescription.css +3 -3
  52. package/dist/lib/components/Steps/StepsItem.css +2 -2
  53. package/dist/lib/components/StoreBanner/StoreBanner.css +31 -32
  54. package/dist/lib/components/StoreBanner/StoreBanner.d.ts +3 -5
  55. package/dist/lib/components/StoreBanner/StoreBanner.js +8 -28
  56. package/dist/lib/components/StoreBanner/doc/img/qr-code.png +0 -0
  57. package/dist/lib/components/Table/Table.css +15 -15
  58. package/dist/lib/components/TextBox/TextBox.css +0 -9
  59. package/dist/lib/components/TextBox/TextBoxPicture.css +1 -1
  60. package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.css +2 -2
  61. package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +2 -2
  62. package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.js +4 -2
  63. package/dist/lib/components/VideoBanner/VideoBanner.css +4 -4
  64. package/dist/lib/components/VideoBlock/VideoBlock.d.ts +1 -1
  65. package/dist/lib/components/VideoBlock/VideoBlock.js +3 -3
  66. package/dist/lib/index.d.ts +0 -1
  67. package/dist/lib/index.js +0 -8
  68. package/package.json +6 -5
  69. package/dist/es/components/TextWithIcon/TextWithIcon.css +0 -57
  70. package/dist/es/components/TextWithIcon/TextWithIcon.d.ts +0 -21
  71. package/dist/es/components/TextWithIcon/TextWithIcon.js +0 -53
  72. package/dist/lib/components/TextWithIcon/TextWithIcon.css +0 -57
  73. package/dist/lib/components/TextWithIcon/TextWithIcon.d.ts +0 -21
  74. package/dist/lib/components/TextWithIcon/TextWithIcon.js +0 -74
@@ -7,8 +7,8 @@ h5 {
7
7
  }
8
8
  .mfui-button-banner {
9
9
  position: relative;
10
- border: 1px solid #D8D8D8;
11
- background-color: #FFFFFF;
10
+ border: 1px solid var(--spbSky2);
11
+ background-color: var(--base);
12
12
  border-radius: 0 8px 8px 0;
13
13
  }
14
14
  @media screen and (max-width: 767px) {
@@ -23,7 +23,7 @@ h5 {
23
23
  bottom: 0;
24
24
  left: 0;
25
25
  width: 12px;
26
- background-color: #00B956;
26
+ background-color: var(--brandGreen);
27
27
  border-radius: 0 12px 12px 0;
28
28
  }
29
29
  @media screen and (max-width: 767px) {
@@ -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
- [key: string]: string;
21
+ root?: Record<string, string>;
22
22
  };
23
23
  /** Дополнительный css класс для корневого элемента */
24
24
  className?: string;
@@ -79,7 +79,7 @@ var ButtonBanner = function ButtonBanner(_ref) {
79
79
  download: buttonDownload
80
80
  }, buttonText);
81
81
 
82
- return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs), {
82
+ return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
83
83
  className: cn({
84
84
  image: !!imageUrl,
85
85
  scaling: imageScaling
@@ -110,7 +110,9 @@ var ButtonBanner = function ButtonBanner(_ref) {
110
110
  };
111
111
 
112
112
  ButtonBanner.propTypes = {
113
- dataAttrs: PropTypes.objectOf(PropTypes.string.isRequired),
113
+ dataAttrs: PropTypes.shape({
114
+ root: PropTypes.objectOf(PropTypes.string.isRequired)
115
+ }),
114
116
  className: PropTypes.string,
115
117
  classes: PropTypes.shape({
116
118
  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
- [key: string]: string;
6
+ root?: Record<string, string>;
7
7
  };
8
8
  /** Дополнительный класс корневого элемента */
9
9
  className?: string;
@@ -46,7 +46,7 @@ var ButtonLinkBox = function ButtonLinkBox(_ref) {
46
46
  classes = _ref$classes === void 0 ? {} : _ref$classes,
47
47
  onButtonClick = _ref.onButtonClick,
48
48
  onLinkClick = _ref.onLinkClick;
49
- return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs), {
49
+ return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
50
50
  className: cn({
51
51
  'h-align': hAlign
52
52
  }, [className, classes.root]),
@@ -73,7 +73,9 @@ var ButtonLinkBox = function ButtonLinkBox(_ref) {
73
73
  };
74
74
 
75
75
  ButtonLinkBox.propTypes = {
76
- dataAttrs: PropTypes.objectOf(PropTypes.string.isRequired),
76
+ dataAttrs: PropTypes.shape({
77
+ root: PropTypes.objectOf(PropTypes.string.isRequired)
78
+ }),
77
79
  className: PropTypes.string,
78
80
  classes: PropTypes.shape({
79
81
  root: PropTypes.string,
@@ -11,7 +11,7 @@ h5 {
11
11
  display: flex;
12
12
  border-radius: 8px;
13
13
  overflow: hidden;
14
- background-color: #FFFFFF;
14
+ background-color: var(--background);
15
15
  -webkit-box-shadow: 0 0.25px 3px rgba(0, 0, 0, 0.25);
16
16
  box-shadow: 0 0.25px 3px rgba(0, 0, 0, 0.25);
17
17
  }
@@ -43,7 +43,7 @@ h5 {
43
43
  line-height: 24px;
44
44
  font-weight: 400;
45
45
  margin-top: 12px;
46
- color: #333333;
46
+ color: var(--content);
47
47
  }
48
48
  .mfui-card__btns-wrapper {
49
49
  display: -webkit-box;
@@ -66,7 +66,7 @@ h5 {
66
66
  justify-content: flex-start;
67
67
  }
68
68
  .mfui-card__fake-link {
69
- color: #34AAF2;
69
+ color: var(--systemBlue);
70
70
  }
71
71
  .mfui-card__button,
72
72
  .mfui-card__link,
@@ -9,19 +9,19 @@ h5 {
9
9
  padding-bottom: 96px;
10
10
  }
11
11
  .mfui-container_bg-color_default {
12
- background-color: #FFFFFF;
12
+ background-color: var(--base);
13
13
  }
14
14
  .mfui-container_bg-color_light-gray {
15
- background-color: #F6F6F6;
15
+ background-color: var(--spbSky0);
16
16
  }
17
17
  .mfui-container_bg-color_gray {
18
- background-color: #EDEDED;
18
+ background-color: var(--spbSky1);
19
19
  }
20
20
  .mfui-container_bg-color_green {
21
- background-color: #00B956;
21
+ background-color: var(--brandGreen);
22
22
  }
23
23
  .mfui-container_bg-color_purple {
24
- background-color: #731982;
24
+ background-color: var(--brandPurple);
25
25
  }
26
26
  @media screen and (min-width: 768px) and (max-width: 1023px) {
27
27
  .mfui-container {
@@ -344,9 +344,6 @@ 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
- }
350
347
  @media screen and (min-width: 768px) and (max-width: 1023px) {
351
348
  .mfui-container .mfui-title-description-box + .mfui-benefits-icons {
352
349
  margin-top: 48px;
@@ -2233,9 +2230,6 @@ h5 {
2233
2230
  .mfui-container .mfui-text-box + .mfui-download-links {
2234
2231
  margin-top: 32px;
2235
2232
  }
2236
- .mfui-container .mfui-text-box + .mfui-text-with-icon {
2237
- margin-top: 32px;
2238
- }
2239
2233
  @media screen and (min-width: 768px) and (max-width: 1023px) {
2240
2234
  .mfui-container .mfui-text-box + .mfui-benefits-icons {
2241
2235
  margin-top: 48px;
@@ -2875,163 +2869,6 @@ h5 {
2875
2869
  .mfui-container .mfui-page-title + .mfui-button-link-box {
2876
2870
  margin-top: 0 !important;
2877
2871
  }
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
- }
3035
2872
  .mfui-container_disable-padding-top {
3036
2873
  padding-top: 0 !important;
3037
2874
  }
@@ -16,6 +16,7 @@ h5 {
16
16
  width: 40px;
17
17
  height: 40px;
18
18
  margin-right: 22px;
19
+ fill: var(--content);
19
20
  }
20
21
  @media screen and (max-width: 1023px) {
21
22
  .mfui-download-link__icon {
@@ -31,6 +32,6 @@ h5 {
31
32
  margin: 0;
32
33
  font-size: 12px;
33
34
  line-height: 16px;
34
- color: #33333380;
35
+ color: var(--stcBlack5);
35
36
  text-transform: uppercase;
36
37
  }
@@ -111,7 +111,7 @@ h5 {
111
111
  width: 324px;
112
112
  height: 1px;
113
113
  margin: 0 auto;
114
- background: #D8D8D8;
114
+ background: var(--spbSky2);
115
115
  }
116
116
  }
117
117
  .mfui-instructions__device-screen {
@@ -355,7 +355,7 @@ h5 {
355
355
  }
356
356
  .mfui-instructions__articles-item:hover .mfui-instructions__articles-item-dot,
357
357
  .mfui-instructions__articles-item_active .mfui-instructions__articles-item-dot {
358
- color: #FFFFFF;
358
+ color: var(--stcWhite);
359
359
  }
360
360
  .mfui-instructions__articles-item:hover .mfui-instructions__articles-item-dot:before,
361
361
  .mfui-instructions__articles-item_active .mfui-instructions__articles-item-dot:before {
@@ -363,7 +363,7 @@ h5 {
363
363
  right: 0;
364
364
  bottom: 0;
365
365
  left: 0;
366
- background: #00B956;
366
+ background: var(--brandGreen);
367
367
  }
368
368
  @media screen and (min-width: 1024px) {
369
369
  .mfui-instructions__articles-item:last-child {
@@ -381,8 +381,8 @@ h5 {
381
381
  font-size: 15px;
382
382
  line-height: 40px;
383
383
  text-align: center;
384
- -webkit-box-shadow: inset 0 0 0 1px #B2B2B2;
385
- box-shadow: inset 0 0 0 1px #B2B2B2;
384
+ -webkit-box-shadow: inset 0 0 0 1px var(--spbSky3);
385
+ box-shadow: inset 0 0 0 1px var(--spbSky3);
386
386
  cursor: pointer;
387
387
  }
388
388
  @media screen and (max-width: 479px) {
@@ -449,7 +449,7 @@ h5 {
449
449
  }
450
450
  .mfui-instructions__articles-dot:hover,
451
451
  .mfui-instructions__articles-dot_active {
452
- color: #FFFFFF;
452
+ color: var(--stcWhite);
453
453
  }
454
454
  .mfui-instructions__articles-dot:hover:before,
455
455
  .mfui-instructions__articles-dot_active:before {
@@ -457,7 +457,7 @@ h5 {
457
457
  right: 0;
458
458
  bottom: 0;
459
459
  left: 0;
460
- background: #00B956;
460
+ background: var(--brandGreen);
461
461
  }
462
462
  .mfui-instructions__articles-dot:last-child {
463
463
  margin-right: 0;
@@ -41,9 +41,9 @@ h5 {
41
41
  display: inline-block;
42
42
  margin-top: 16px;
43
43
  padding: 2px 14px;
44
- color: #FFFFFF;
44
+ color: var(--stcWhite);
45
45
  font-weight: 500;
46
- background-color: #731982;
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 #D8D8D8;
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 #D8D8D8;
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: #FFFFFF;
49
+ color: var(--stcWhite);
50
50
  font-size: 12px;
51
- background: #FFA717;
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 #D8D8D8;
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: #34AAF2;
9
+ color: var(--systemBlue);
10
10
  font-size: 12px;
11
- -webkit-text-decoration: underline dashed #34AAF2;
12
- text-decoration: underline dashed #34AAF2;
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 {
@@ -28,8 +28,8 @@ h5 {
28
28
  width: 40px;
29
29
  height: 40px;
30
30
  border-radius: 50%;
31
- color: #FFFFFF;
32
- background-color: #00B956;
31
+ color: var(--stcWhite);
32
+ background-color: var(--brandGreen);
33
33
  }
34
34
  .mfui-steps-item__text-wrapper {
35
35
  padding-top: 8px;
@@ -5,25 +5,23 @@ h4,
5
5
  h5 {
6
6
  margin: 0;
7
7
  }
8
- .mfui-store-banner_theme_base .mfui-store-banner__grid,
9
- .mfui-store-banner_theme_clearWhite .mfui-store-banner__grid {
10
- background-color: #FFFFFF;
8
+ .mfui-store-banner_theme_default .mfui-store-banner__grid {
9
+ background-color: var(--base);
11
10
  }
12
- .mfui-store-banner_theme_base .mfui-store-banner__content,
13
- .mfui-store-banner_theme_clearWhite .mfui-store-banner__content {
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: #00B956;
15
+ background-color: var(--brandGreen);
18
16
  }
19
17
  .mfui-store-banner_theme_green .mfui-store-banner__content {
20
- color: #FFFFFF;
18
+ color: var(--stcWhite);
21
19
  }
22
20
  .mfui-store-banner_theme_spbSky1 .mfui-store-banner__grid {
23
- background-color: #EDEDED;
21
+ background-color: var(--spbSky1);
24
22
  }
25
23
  .mfui-store-banner_theme_spbSky1 .mfui-store-banner__content {
26
- color: #333333;
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 #D8D8D8;
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-bottom: 0;
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: 90px;
253
- max-height: 90px;
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 BASE: "base";
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
- [key: string]: string;
61
+ root?: Record<string, string>;
64
62
  };
65
63
  }
66
64
  declare const StoreBanner: React.FC<IStoreBannerProps>;