@megafon/ui-core 2.1.3 → 3.0.0-beta.1

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 (110) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/dist/es/colors/ColorItem/ColorItem.css +1 -8
  3. package/dist/es/colors/ColorItem/ColorItem.js +1 -1
  4. package/dist/es/colors/Colors.css +6 -14
  5. package/dist/es/colors/Colors.js +36 -5
  6. package/dist/es/colors/colorsData.js +84 -68
  7. package/dist/es/components/Accordion/Accordion.css +6 -12
  8. package/dist/es/components/Banner/Banner.css +2 -9
  9. package/dist/es/components/Banner/BannerDot.css +4 -11
  10. package/dist/es/components/Button/Button.css +83 -74
  11. package/dist/es/components/Calendar/Calendar.css +0 -7
  12. package/dist/es/components/Calendar/components/Day/Day.css +10 -17
  13. package/dist/es/components/Calendar/components/Month/Month.css +3 -10
  14. package/dist/es/components/Carousel/Carousel.css +4 -11
  15. package/dist/es/components/Checkbox/Checkbox.css +18 -25
  16. package/dist/es/components/ContentArea/ContentArea.css +61 -20
  17. package/dist/es/components/ContentArea/ContentArea.d.ts +0 -1
  18. package/dist/es/components/ContentArea/ContentArea.js +0 -1
  19. package/dist/es/components/Counter/Counter.css +61 -11
  20. package/dist/es/components/Grid/Grid.css +47 -0
  21. package/dist/es/components/Grid/GridColumn.css +0 -7
  22. package/dist/es/components/Header/Header.css +8 -12
  23. package/dist/es/components/Header/Header.d.ts +1 -1
  24. package/dist/es/components/Header/Header.js +2 -2
  25. package/dist/es/components/InputLabel/InputLabel.css +0 -7
  26. package/dist/es/components/List/List.css +9 -13
  27. package/dist/es/components/List/List.d.ts +1 -1
  28. package/dist/es/components/List/List.js +2 -2
  29. package/dist/es/components/List/ListItem.css +0 -7
  30. package/dist/es/components/Logo/Logo.css +0 -7
  31. package/dist/es/components/Logo/Logo.js +4 -8
  32. package/dist/es/components/NavArrow/NavArrow.css +5 -12
  33. package/dist/es/components/Notification/Notification.css +88 -24
  34. package/dist/es/components/Pagination/Pagination.css +0 -7
  35. package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.css +56 -9
  36. package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.css +47 -0
  37. package/dist/es/components/Paragraph/Paragraph.css +7 -17
  38. package/dist/es/components/Paragraph/Paragraph.d.ts +0 -1
  39. package/dist/es/components/Paragraph/Paragraph.js +1 -2
  40. package/dist/es/components/Preloader/Preloader.css +5 -12
  41. package/dist/es/components/RadioButton/RadioButton.css +7 -14
  42. package/dist/es/components/RadioButton/RadioButton.d.ts +5 -1
  43. package/dist/es/components/RadioButton/RadioButton.js +7 -5
  44. package/dist/es/components/Search/Search.css +20 -25
  45. package/dist/es/components/Select/Select.css +29 -35
  46. package/dist/es/components/Switcher/Switcher.css +18 -28
  47. package/dist/es/components/Tabs/Tabs.css +30 -37
  48. package/dist/es/components/Tabs/Tabs.js +41 -32
  49. package/dist/es/components/TextField/TextField.css +27 -33
  50. package/dist/es/components/TextLink/TextLink.css +10 -14
  51. package/dist/es/components/TextLink/TextLink.d.ts +1 -1
  52. package/dist/es/components/TextLink/TextLink.js +1 -1
  53. package/dist/es/components/Tile/Tile.css +2 -8
  54. package/dist/es/components/Tooltip/Tooltip.css +1 -8
  55. package/dist/lib/colors/ColorItem/ColorItem.css +1 -8
  56. package/dist/lib/colors/ColorItem/ColorItem.js +1 -1
  57. package/dist/lib/colors/Colors.css +6 -14
  58. package/dist/lib/colors/Colors.js +37 -5
  59. package/dist/lib/colors/colorsData.js +84 -68
  60. package/dist/lib/components/Accordion/Accordion.css +6 -12
  61. package/dist/lib/components/Banner/Banner.css +2 -9
  62. package/dist/lib/components/Banner/BannerDot.css +4 -11
  63. package/dist/lib/components/Button/Button.css +83 -74
  64. package/dist/lib/components/Calendar/Calendar.css +0 -7
  65. package/dist/lib/components/Calendar/components/Day/Day.css +10 -17
  66. package/dist/lib/components/Calendar/components/Month/Month.css +3 -10
  67. package/dist/lib/components/Carousel/Carousel.css +4 -11
  68. package/dist/lib/components/Checkbox/Checkbox.css +18 -25
  69. package/dist/lib/components/ContentArea/ContentArea.css +61 -20
  70. package/dist/lib/components/ContentArea/ContentArea.d.ts +0 -1
  71. package/dist/lib/components/ContentArea/ContentArea.js +0 -1
  72. package/dist/lib/components/Counter/Counter.css +61 -11
  73. package/dist/lib/components/Grid/Grid.css +47 -0
  74. package/dist/lib/components/Grid/GridColumn.css +0 -7
  75. package/dist/lib/components/Header/Header.css +8 -12
  76. package/dist/lib/components/Header/Header.d.ts +1 -1
  77. package/dist/lib/components/Header/Header.js +2 -2
  78. package/dist/lib/components/InputLabel/InputLabel.css +0 -7
  79. package/dist/lib/components/List/List.css +9 -13
  80. package/dist/lib/components/List/List.d.ts +1 -1
  81. package/dist/lib/components/List/List.js +2 -2
  82. package/dist/lib/components/List/ListItem.css +0 -7
  83. package/dist/lib/components/Logo/Logo.css +0 -7
  84. package/dist/lib/components/Logo/Logo.js +4 -8
  85. package/dist/lib/components/NavArrow/NavArrow.css +5 -12
  86. package/dist/lib/components/Notification/Notification.css +88 -24
  87. package/dist/lib/components/Pagination/Pagination.css +0 -7
  88. package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.css +56 -9
  89. package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.css +47 -0
  90. package/dist/lib/components/Paragraph/Paragraph.css +7 -17
  91. package/dist/lib/components/Paragraph/Paragraph.d.ts +0 -1
  92. package/dist/lib/components/Paragraph/Paragraph.js +1 -2
  93. package/dist/lib/components/Preloader/Preloader.css +5 -12
  94. package/dist/lib/components/RadioButton/RadioButton.css +7 -14
  95. package/dist/lib/components/RadioButton/RadioButton.d.ts +5 -1
  96. package/dist/lib/components/RadioButton/RadioButton.js +6 -4
  97. package/dist/lib/components/Search/Search.css +20 -25
  98. package/dist/lib/components/Select/Select.css +29 -35
  99. package/dist/lib/components/Switcher/Switcher.css +18 -28
  100. package/dist/lib/components/Tabs/Tabs.css +30 -37
  101. package/dist/lib/components/Tabs/Tabs.js +41 -32
  102. package/dist/lib/components/TextField/TextField.css +27 -33
  103. package/dist/lib/components/TextLink/TextLink.css +10 -14
  104. package/dist/lib/components/TextLink/TextLink.d.ts +1 -1
  105. package/dist/lib/components/TextLink/TextLink.js +1 -1
  106. package/dist/lib/components/Tile/Tile.css +2 -8
  107. package/dist/lib/components/Tooltip/Tooltip.css +1 -8
  108. package/package.json +4 -4
  109. package/styles/base.css +54 -0
  110. package/styles/base.less +61 -75
package/CHANGELOG.md CHANGED
@@ -3,6 +3,72 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.0.0-beta.1](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-core@3.0.0-beta.0...@megafon/ui-core@3.0.0-beta.1) (2022-01-20)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **colors:** fix colors component ([3061f7c](https://github.com/MegafonWebLab/megafon-ui/commit/3061f7c7b56d5baa32f109d7ce941bcc7e70c5b9))
12
+ * **colors:** remove unused classname modifiers ([d919cdc](https://github.com/MegafonWebLab/megafon-ui/commit/d919cdcf1fa79d60230fc85811518ded1c0537ad))
13
+ * **colors:** remove unused method ([2970295](https://github.com/MegafonWebLab/megafon-ui/commit/2970295df9053a4f54ed19d3d46deb07994844e0))
14
+ * **colors:** renabe green and purple to brandGreen and brandPurple to avoid postcss-colormin bug ([563d97c](https://github.com/MegafonWebLab/megafon-ui/commit/563d97c42900099415a6872f57b500b87aeed647))
15
+ * **colors:** update color values on colors page when user switches theme ([8552ff6](https://github.com/MegafonWebLab/megafon-ui/commit/8552ff69a66153ef890437ffc4dd2e50c31d6f2e))
16
+ * **less:** import base.less file through reference ([5a13aae](https://github.com/MegafonWebLab/megafon-ui/commit/5a13aaedec3a7fd09f77dcddfe437fda604f60a5))
17
+
18
+
19
+ ### Features
20
+
21
+ * **styles:** export css version for base.less ([14aff17](https://github.com/MegafonWebLab/megafon-ui/commit/14aff17f8d3f77ec7beb2e3cb5c8a489ecd77e74))
22
+
23
+
24
+ ### BREAKING CHANGES
25
+
26
+ * **colors:** green, green20, green80, purple, purple20 and purple80 colors now have 'brand'
27
+ prefix (e.g. brandGreen)
28
+
29
+
30
+
31
+
32
+
33
+ # [3.0.0-beta.0](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-core@2.2.0...@megafon/ui-core@3.0.0-beta.0) (2022-01-19)
34
+
35
+
36
+ ### Features
37
+
38
+ * **colors:** css custom properties and color themes support ([b19a9a5](https://github.com/MegafonWebLab/megafon-ui/commit/b19a9a5112ebc7427d60f6514d606dd9d71ca444))
39
+
40
+
41
+ ### BREAKING CHANGES
42
+
43
+ * **colors:** read commit description
44
+
45
+
46
+
47
+
48
+
49
+ # [2.2.0](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-core@2.1.4...@megafon/ui-core@2.2.0) (2021-12-29)
50
+
51
+
52
+ ### Features
53
+
54
+ * **radiobutton:** add dataAttrs prop ([3f8d0b4](https://github.com/MegafonWebLab/megafon-ui/commit/3f8d0b4c4ec4a6ca301ab44feed2842ec8e54f3a))
55
+
56
+
57
+
58
+
59
+
60
+ ## [2.1.4](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-core@2.1.3...@megafon/ui-core@2.1.4) (2021-12-20)
61
+
62
+
63
+ ### Bug Fixes
64
+
65
+ * **colors:** add hover colors to system group ([634ac03](https://github.com/MegafonWebLab/megafon-ui/commit/634ac034445fdcd08b60ff056f75683025cb6d49))
66
+ * **tabs:** fix active tab underline width ([4499399](https://github.com/MegafonWebLab/megafon-ui/commit/449939942730143712a92930a279a8b6fc17a012))
67
+
68
+
69
+
70
+
71
+
6
72
  ## [2.1.3](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-core@2.1.2...@megafon/ui-core@2.1.3) (2021-12-14)
7
73
 
8
74
 
@@ -1,10 +1,3 @@
1
- h1,
2
- h2,
3
- h3,
4
- h4,
5
- h5 {
6
- margin: 0;
7
- }
8
1
  .color-item {
9
2
  display: -webkit-box;
10
3
  display: -ms-flexbox;
@@ -46,7 +39,7 @@ h5 {
46
39
  line-height: 20px;
47
40
  }
48
41
  .color-item__code {
49
- color: #33333380;
42
+ color: var(--spbSky3);
50
43
  font-size: 12px;
51
44
  line-height: 18px;
52
45
  }
@@ -23,7 +23,7 @@ var ColorItem = function ColorItem(_ref) {
23
23
  }), !!parentColorCode && /*#__PURE__*/React.createElement("div", {
24
24
  className: cn('parent-color'),
25
25
  style: {
26
- background: parentColorCode
26
+ background: "var(--".concat(parentColorCode, ")")
27
27
  }
28
28
  })), /*#__PURE__*/React.createElement("span", {
29
29
  className: cn('name')
@@ -1,14 +1,7 @@
1
- h1,
2
- h2,
3
- h3,
4
- h4,
5
- h5 {
6
- margin: 0;
7
- }
8
1
  .colors__inner {
9
2
  margin: 0 -80px;
10
3
  padding: 56px 80px 40px;
11
- background-color: #F6F6F6;
4
+ background-color: var(--spbSky0);
12
5
  }
13
6
  @media screen and (max-width: 1120px) {
14
7
  .colors__inner {
@@ -70,13 +63,13 @@ h5 {
70
63
  }
71
64
  }
72
65
  .colors__list {
66
+ -webkit-box-pack: space-evenly;
67
+ -ms-flex-pack: space-evenly;
68
+ justify-content: space-evenly;
73
69
  padding-bottom: 12px;
74
70
  }
75
71
  @media screen and (max-width: 1023px) {
76
72
  .colors__list {
77
- -webkit-box-pack: space-evenly;
78
- -ms-flex-pack: space-evenly;
79
- justify-content: space-evenly;
80
73
  -webkit-box-ordinal-group: 3;
81
74
  -ms-flex-order: 2;
82
75
  order: 2;
@@ -90,7 +83,6 @@ h5 {
90
83
  .colors__description {
91
84
  position: relative;
92
85
  padding-top: 15px;
93
- color: #33333380;
94
86
  font-size: 12px;
95
87
  line-height: 18px;
96
88
  text-align: center;
@@ -198,7 +190,7 @@ h5 {
198
190
  display: block;
199
191
  width: 100%;
200
192
  height: 1px;
201
- background-color: #D8D8D8;
193
+ background-color: var(--spbSky2);
202
194
  -webkit-transform: translateY(-50%);
203
195
  transform: translateY(-50%);
204
196
  }
@@ -209,7 +201,7 @@ h5 {
209
201
  position: absolute;
210
202
  width: 1px;
211
203
  height: 4px;
212
- background-color: #D8D8D8;
204
+ background-color: var(--spbSky2);
213
205
  }
214
206
  .colors__underline:after,
215
207
  .colors__underline:before {
@@ -2,6 +2,7 @@ import "core-js/modules/es.symbol";
2
2
  import "core-js/modules/es.symbol.description";
3
3
  import "core-js/modules/es.array.map";
4
4
  import "core-js/modules/es.function.name";
5
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
5
6
  import _extends from "@babel/runtime/helpers/extends";
6
7
  import * as React from 'react';
7
8
  import { cnCreate } from '@megafon/ui-helpers';
@@ -107,6 +108,36 @@ var basic = colorsData.basic,
107
108
  var cn = cnCreate('colors');
108
109
 
109
110
  var Colors = function Colors() {
111
+ var _React$useState = React.useState(window.localStorage.getItem('theme') === 'dark' ? 'dark' : 'light'),
112
+ _React$useState2 = _slicedToArray(_React$useState, 2),
113
+ setCurrentTheme = _React$useState2[1];
114
+
115
+ var getCurrentColorValue = function getCurrentColorValue(code) {
116
+ return document.documentElement.style.getPropertyValue("--".concat(code));
117
+ };
118
+
119
+ React.useEffect(function () {
120
+ // theme switcher from src/gatsby-theme-docz/components/SideBar/index.tsx
121
+ var themeSwitcher = document.querySelector('[data-current-theme]');
122
+
123
+ if (themeSwitcher) {
124
+ var themeSwitcherObserver = new MutationObserver(function (mutationsList) {
125
+ var data = mutationsList[0];
126
+ setCurrentTheme(data.oldValue === 'light' ? 'dark' : 'light');
127
+ });
128
+ var config = {
129
+ attributeOldValue: true,
130
+ attributeFilter: ['data-current-theme']
131
+ };
132
+ themeSwitcherObserver.observe(themeSwitcher, config);
133
+ return function () {
134
+ return themeSwitcherObserver.disconnect();
135
+ };
136
+ }
137
+
138
+ return undefined;
139
+ }, []);
140
+
110
141
  var renderUnderline = function renderUnderline() {
111
142
  return /*#__PURE__*/React.createElement("div", {
112
143
  className: cn('underline')
@@ -142,7 +173,7 @@ var Colors = function Colors() {
142
173
  return /*#__PURE__*/React.createElement(ColorItem, {
143
174
  className: cn('item'),
144
175
  colorName: name,
145
- colorCode: code,
176
+ colorCode: getCurrentColorValue(code),
146
177
  key: name,
147
178
  border: border
148
179
  });
@@ -172,7 +203,7 @@ var Colors = function Colors() {
172
203
  return /*#__PURE__*/React.createElement(ColorItem, {
173
204
  className: cn('item'),
174
205
  colorName: name,
175
- colorCode: code,
206
+ colorCode: getCurrentColorValue(code),
176
207
  gradient: gradient,
177
208
  key: name,
178
209
  border: border
@@ -204,7 +235,7 @@ var Colors = function Colors() {
204
235
  soft: true
205
236
  }),
206
237
  colorName: name,
207
- colorCode: code,
238
+ colorCode: getCurrentColorValue(code),
208
239
  parentColorCode: parentColor,
209
240
  key: name
210
241
  });
@@ -229,7 +260,7 @@ var Colors = function Colors() {
229
260
  mobile: "12",
230
261
  tablet: "12"
231
262
  }, renderColorBlock(secondary)), /*#__PURE__*/React.createElement(GridColumn, {
232
- all: "5",
263
+ all: "10",
233
264
  mobile: "12",
234
265
  tablet: "12"
235
266
  }, renderColorBlock(system))), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(GridColumn, {
@@ -238,7 +269,7 @@ var Colors = function Colors() {
238
269
  tablet: "12"
239
270
  }, renderColorBlock(gradientColors)), /*#__PURE__*/React.createElement(GridColumn, {
240
271
  all: "3",
241
- leftOffsetWide: "1",
272
+ leftOffsetWide: "2",
242
273
  leftOffsetTablet: "1",
243
274
  leftOffsetDesktop: "1",
244
275
  mobile: "12",
@@ -4,34 +4,35 @@ var colors = {
4
4
  colorsGroup: [{
5
5
  description: 'Основные цвета бренда',
6
6
  colors: [{
7
- name: 'Green',
8
- code: '#00B956'
7
+ name: 'Brand Green',
8
+ code: 'brandGreen'
9
9
  }, {
10
- name: 'Purple',
11
- code: '#731982'
10
+ name: 'Brand Purple',
11
+ code: 'brandPurple'
12
12
  }]
13
13
  }, {
14
14
  description: 'Градация оттенков серого',
15
15
  colors: [{
16
16
  name: 'Base',
17
- code: '#FFFFFF',
18
- border: '1px solid #EDEDED'
17
+ code: 'base',
18
+ border: '1px solid var(--spbSky1)'
19
19
  }, {
20
20
  name: 'Content',
21
- code: '#333333'
21
+ code: 'content',
22
+ border: '1px solid var(--spbSky1)'
22
23
  }, {
23
24
  name: 'Spb Sky 0',
24
- code: '#F6F6F6',
25
- border: '2px solid #EDEDED'
25
+ code: 'spbSky0',
26
+ border: '2px solid var(--spbSky1)'
26
27
  }, {
27
28
  name: 'Spb Sky 1',
28
- code: '#EDEDED'
29
+ code: 'spbSky1'
29
30
  }, {
30
31
  name: 'Spb Sky 2',
31
- code: '#D8D8D8'
32
+ code: 'spbSky2'
32
33
  }, {
33
34
  name: 'Spb Sky 3',
34
- code: '#999999'
35
+ code: 'spbSky3'
35
36
  }]
36
37
  }]
37
38
  },
@@ -41,16 +42,16 @@ var colors = {
41
42
  description: 'Акцентные цвета',
42
43
  colors: [{
43
44
  name: 'Warm Red C',
44
- code: '#EB5A40'
45
+ code: 'warmRedC'
45
46
  }, {
46
47
  name: '137C',
47
- code: '#FFA717'
48
+ code: '137C'
48
49
  }, {
49
50
  name: '311C',
50
- code: '#5BD9E5'
51
+ code: '311C'
51
52
  }, {
52
53
  name: 'Reflex Blue',
53
- code: '#444189'
54
+ code: 'reflexBlue'
54
55
  }]
55
56
  }
56
57
  },
@@ -60,13 +61,22 @@ var colors = {
60
61
  description: 'Системные цвета, используемые для отображения состояний интерфейсов и ссылок',
61
62
  colors: [{
62
63
  name: 'Fury',
63
- code: '#F62434'
64
+ code: 'fury'
64
65
  }, {
65
66
  name: 'System Blue',
66
- code: '#34AAF2'
67
+ code: 'systemBlue'
67
68
  }, {
68
69
  name: 'Background',
69
- code: '#FFFFFF'
70
+ code: 'background'
71
+ }, {
72
+ name: 'Button Hov. G.',
73
+ code: 'buttonHoverGreen'
74
+ }, {
75
+ name: 'Button Hov. P.',
76
+ code: 'buttonhoverPurple'
77
+ }, {
78
+ name: 'Button Down',
79
+ code: 'buttonDown'
70
80
  }]
71
81
  }
72
82
  },
@@ -76,15 +86,15 @@ var colors = {
76
86
  description: 'Градиентные заливки ',
77
87
  colors: [{
78
88
  name: 'Basic',
79
- code: '#01873F #00B956 #14CD6A',
89
+ code: 'gradientBasic',
80
90
  gradient: 'linear-gradient(90deg, #01873F 0%, #00B956 74%, #14CD6A 100%)'
81
91
  }, {
82
92
  name: 'VIP',
83
- code: '#5B1168 #731982 #821E93',
93
+ code: 'gradientVIP',
84
94
  gradient: 'linear-gradient(90deg, #5B1168 0%, #731982 74%, #821E93 100%)'
85
95
  }, {
86
96
  name: 'Exclusive',
87
- code: '#2A2674 #444189 #504D93',
97
+ code: 'gradientExclusive',
88
98
  gradient: 'linear-gradient(90deg, #2A2674 0%, #444189 74%, #504D93 100%)'
89
99
  }]
90
100
  }
@@ -95,11 +105,12 @@ var colors = {
95
105
  description: 'Цвета не зависящие от темы',
96
106
  colors: [{
97
107
  name: 'STC White',
98
- code: '#FFFFFFF',
99
- border: '1px solid #EDEDED'
108
+ code: 'stcWhite',
109
+ border: '1px solid var(--spbSky1)'
100
110
  }, {
101
111
  name: 'STC Black',
102
- code: '#333333'
112
+ code: 'stcBlack',
113
+ border: '1px solid var(--spbSky1)'
103
114
  }]
104
115
  }
105
116
  },
@@ -109,31 +120,36 @@ var colors = {
109
120
  description: 'Цвета c прозрачностью не зависящие от темы',
110
121
  colors: [{
111
122
  name: 'STC White 5%',
112
- code: '#FFFFFF0D',
113
- border: '1px solid #EDEDED'
123
+ code: 'stcWhite5',
124
+ border: '1px solid var(--spbSky1)'
114
125
  }, {
115
126
  name: 'STC White 10%',
116
- code: '#FFFFFF1A',
117
- border: '1px solid #EDEDED'
127
+ code: 'stcWhite10',
128
+ border: '1px solid var(--spbSky1)'
118
129
  }, {
119
130
  name: 'STC White 20%',
120
- code: '#FFFFFF33',
121
- border: '1px solid #EDEDED'
131
+ code: 'stcWhite20',
132
+ border: '1px solid var(--spbSky1)'
122
133
  }, {
123
134
  name: 'STC White 50%',
124
- code: '#FFFFFF80'
135
+ code: 'stcWhite50',
136
+ border: '1px solid var(--spbSky1)'
125
137
  }, {
126
138
  name: 'STC Black 5%',
127
- code: '#3333330D'
139
+ code: 'stcBlack5',
140
+ border: '1px solid var(--spbSky1)'
128
141
  }, {
129
142
  name: 'STC Black 10%',
130
- code: '#3333331A'
143
+ code: 'stcBlack10',
144
+ border: '1px solid var(--spbSky1)'
131
145
  }, {
132
146
  name: 'STC Black 20%',
133
- code: '#33333333'
147
+ code: 'stcBlack20',
148
+ border: '1px solid var(--spbSky1)'
134
149
  }, {
135
150
  name: 'STC Black 50%',
136
- code: '#33333380'
151
+ code: 'stcBlack50',
152
+ border: '1px solid var(--spbSky1)'
137
153
  }]
138
154
  }
139
155
  },
@@ -142,61 +158,61 @@ var colors = {
142
158
  colorsList: {
143
159
  description: 'Дополнительная (вспомогательная) палитра, образованная от Basic, Secondary и System цветов. Каждый цвет из Soft палитры работает в паре с его родительским цветом.',
144
160
  colors: [{
145
- name: 'Green 80',
146
- code: '#0CDC78',
147
- parentColor: '#00B956'
161
+ name: 'Brand Green 80',
162
+ code: 'brandGreen80',
163
+ parentColor: 'green'
148
164
  }, {
149
- name: 'Purple 80',
150
- code: '#AA67C1',
151
- parentColor: '#731982'
165
+ name: 'Brand Purple 80',
166
+ code: 'brandPurple80',
167
+ parentColor: 'purple'
152
168
  }, {
153
169
  name: 'Warm Red C 80',
154
- code: '#FF765D',
155
- parentColor: '#EB5A40'
170
+ code: 'warmRedC80',
171
+ parentColor: 'warmRedC'
156
172
  }, {
157
173
  name: '137C 80',
158
- code: '#FFB945',
159
- parentColor: '#FFB945'
174
+ code: '137C80',
175
+ parentColor: '137C'
160
176
  }, {
161
177
  name: '311C 80',
162
- code: '#62E3FF',
163
- parentColor: '#5BD9E5'
178
+ code: '311C80',
179
+ parentColor: '311C'
164
180
  }, {
165
181
  name: 'Reflex Blue 80',
166
- code: '#554FC9',
167
- parentColor: '#444189'
182
+ code: 'reflexBlue80',
183
+ parentColor: 'reflexBlue'
168
184
  }, {
169
185
  name: 'Fury 80',
170
- code: '#F8505D',
171
- parentColor: '#F62434'
186
+ code: 'fury80',
187
+ parentColor: 'fury'
172
188
  }, {
173
- name: 'Green 20',
174
- code: '#DDFFEC',
175
- parentColor: '#00B956'
189
+ name: 'Brand Green 20',
190
+ code: 'brandGreen20',
191
+ parentColor: 'green'
176
192
  }, {
177
- name: 'Purple 20',
178
- code: '#FFEEFF',
179
- parentColor: '#731982'
193
+ name: 'Brand Purple 20',
194
+ code: 'brandPurple20',
195
+ parentColor: 'purple'
180
196
  }, {
181
197
  name: 'Warm Red C 20',
182
- code: '#FFCFC7',
183
- parentColor: '#EB5A40'
198
+ code: 'warmRedC20',
199
+ parentColor: 'warmRedC'
184
200
  }, {
185
201
  name: '137C 20',
186
- code: '#FFEDD1',
187
- parentColor: '#FFB945'
202
+ code: '137C20',
203
+ parentColor: '137C'
188
204
  }, {
189
205
  name: '311C 20',
190
- code: '#E1FAFF',
191
- parentColor: '#5BD9E5'
206
+ code: '311C20',
207
+ parentColor: '311C'
192
208
  }, {
193
209
  name: 'Reflex Blue 20',
194
- code: '#EBEAFF',
195
- parentColor: '#444189'
210
+ code: 'reflexBlue20',
211
+ parentColor: 'reflexBlue'
196
212
  }, {
197
213
  name: 'Fury 20',
198
- code: '#FFC5C9',
199
- parentColor: '#F62434'
214
+ code: 'fury20',
215
+ parentColor: 'fury'
200
216
  }]
201
217
  }
202
218
  }
@@ -1,22 +1,15 @@
1
- h1,
2
- h2,
3
- h3,
4
- h4,
5
- h5 {
6
- margin: 0;
7
- }
8
1
  .mfui-accordion {
9
- border-top: 1px solid #D8D8D8;
10
- border-bottom: 1px solid #D8D8D8;
2
+ border-top: 1px solid var(--spbSky2);
3
+ border-bottom: 1px solid var(--spbSky2);
11
4
  }
12
5
  .mfui-accordion + .mfui-accordion {
13
6
  border-top: none;
14
7
  }
15
8
  .mfui-accordion:not(.mfui-accordion_open) .mfui-accordion__title-wrap:hover {
16
- background: rgba(237, 237, 237, 0.5);
9
+ background: var(--spbSky0);
17
10
  }
18
11
  .mfui-accordion.mfui-accordion_open .mfui-accordion__title-wrap {
19
- background: #EDEDED;
12
+ background: var(--spbSky1);
20
13
  }
21
14
  .mfui-accordion__title-wrap {
22
15
  position: relative;
@@ -42,6 +35,7 @@ h5 {
42
35
  -webkit-transform: translateY(-50%);
43
36
  transform: translateY(-50%);
44
37
  opacity: 1;
38
+ fill: var(--content);
45
39
  }
46
40
  .mfui-accordion__content-inner {
47
41
  padding: 24px 16px;
@@ -66,5 +60,5 @@ h5 {
66
60
  padding-bottom: 24px;
67
61
  }
68
62
  .mfui-accordion__icon {
69
- fill: #000000;
63
+ fill: var(--content);
70
64
  }
@@ -1,10 +1,3 @@
1
- h1,
2
- h2,
3
- h3,
4
- h4,
5
- h5 {
6
- margin: 0;
7
- }
8
1
  .mfui-banner {
9
2
  position: relative;
10
3
  overflow: hidden;
@@ -100,10 +93,10 @@ h5 {
100
93
  background-color: transparent;
101
94
  }
102
95
  .mfui-banner__pagination_theme_green {
103
- background-color: #00B956;
96
+ background-color: var(--brandGreen);
104
97
  }
105
98
  .mfui-banner__pagination_theme_dark {
106
- background-color: rgba(0, 0, 0, 0.25);
99
+ background-color: var(--stcBlack20);
107
100
  }
108
101
  .mfui-banner__dot {
109
102
  width: 12px;
@@ -1,10 +1,3 @@
1
- h1,
2
- h2,
3
- h3,
4
- h4,
5
- h5 {
6
- margin: 0;
7
- }
8
1
  .mfui-banner-dot {
9
2
  display: -webkit-box;
10
3
  display: -ms-flexbox;
@@ -27,14 +20,14 @@ h5 {
27
20
  width: 100%;
28
21
  height: 100%;
29
22
  border-radius: 50%;
30
- background-color: #FFFFFF80;
23
+ background-color: var(--stcWhite50);
31
24
  }
32
25
  .mfui-banner-dot_active {
33
26
  padding: 0;
34
27
  cursor: default;
35
28
  }
36
29
  .mfui-banner-dot_active:before {
37
- background-color: #FFFFFF;
30
+ background-color: var(--stcWhite);
38
31
  }
39
32
  .mfui-banner-dot_active.mfui-banner-dot_timer:before {
40
33
  display: none;
@@ -54,8 +47,8 @@ h5 {
54
47
  transform-origin: center;
55
48
  -webkit-animation: timer linear;
56
49
  animation: timer linear;
57
- fill: #FFFFFF80;
58
- stroke: #FFFFFF;
50
+ fill: var(--stcWhite50);
51
+ stroke: var(--base);
59
52
  stroke-width: 100;
60
53
  stroke-dasharray: 1000;
61
54
  }