@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.
- package/CHANGELOG.md +66 -0
- package/dist/es/colors/ColorItem/ColorItem.css +1 -8
- package/dist/es/colors/ColorItem/ColorItem.js +1 -1
- package/dist/es/colors/Colors.css +6 -14
- package/dist/es/colors/Colors.js +36 -5
- package/dist/es/colors/colorsData.js +84 -68
- package/dist/es/components/Accordion/Accordion.css +6 -12
- package/dist/es/components/Banner/Banner.css +2 -9
- package/dist/es/components/Banner/BannerDot.css +4 -11
- package/dist/es/components/Button/Button.css +83 -74
- package/dist/es/components/Calendar/Calendar.css +0 -7
- package/dist/es/components/Calendar/components/Day/Day.css +10 -17
- package/dist/es/components/Calendar/components/Month/Month.css +3 -10
- package/dist/es/components/Carousel/Carousel.css +4 -11
- package/dist/es/components/Checkbox/Checkbox.css +18 -25
- package/dist/es/components/ContentArea/ContentArea.css +61 -20
- package/dist/es/components/ContentArea/ContentArea.d.ts +0 -1
- package/dist/es/components/ContentArea/ContentArea.js +0 -1
- package/dist/es/components/Counter/Counter.css +61 -11
- package/dist/es/components/Grid/Grid.css +47 -0
- package/dist/es/components/Grid/GridColumn.css +0 -7
- package/dist/es/components/Header/Header.css +8 -12
- package/dist/es/components/Header/Header.d.ts +1 -1
- package/dist/es/components/Header/Header.js +2 -2
- package/dist/es/components/InputLabel/InputLabel.css +0 -7
- package/dist/es/components/List/List.css +9 -13
- package/dist/es/components/List/List.d.ts +1 -1
- package/dist/es/components/List/List.js +2 -2
- package/dist/es/components/List/ListItem.css +0 -7
- package/dist/es/components/Logo/Logo.css +0 -7
- package/dist/es/components/Logo/Logo.js +4 -8
- package/dist/es/components/NavArrow/NavArrow.css +5 -12
- package/dist/es/components/Notification/Notification.css +88 -24
- package/dist/es/components/Pagination/Pagination.css +0 -7
- package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.css +56 -9
- package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.css +47 -0
- package/dist/es/components/Paragraph/Paragraph.css +7 -17
- package/dist/es/components/Paragraph/Paragraph.d.ts +0 -1
- package/dist/es/components/Paragraph/Paragraph.js +1 -2
- package/dist/es/components/Preloader/Preloader.css +5 -12
- package/dist/es/components/RadioButton/RadioButton.css +7 -14
- package/dist/es/components/RadioButton/RadioButton.d.ts +5 -1
- package/dist/es/components/RadioButton/RadioButton.js +7 -5
- package/dist/es/components/Search/Search.css +20 -25
- package/dist/es/components/Select/Select.css +29 -35
- package/dist/es/components/Switcher/Switcher.css +18 -28
- package/dist/es/components/Tabs/Tabs.css +30 -37
- package/dist/es/components/Tabs/Tabs.js +41 -32
- package/dist/es/components/TextField/TextField.css +27 -33
- package/dist/es/components/TextLink/TextLink.css +10 -14
- package/dist/es/components/TextLink/TextLink.d.ts +1 -1
- package/dist/es/components/TextLink/TextLink.js +1 -1
- package/dist/es/components/Tile/Tile.css +2 -8
- package/dist/es/components/Tooltip/Tooltip.css +1 -8
- package/dist/lib/colors/ColorItem/ColorItem.css +1 -8
- package/dist/lib/colors/ColorItem/ColorItem.js +1 -1
- package/dist/lib/colors/Colors.css +6 -14
- package/dist/lib/colors/Colors.js +37 -5
- package/dist/lib/colors/colorsData.js +84 -68
- package/dist/lib/components/Accordion/Accordion.css +6 -12
- package/dist/lib/components/Banner/Banner.css +2 -9
- package/dist/lib/components/Banner/BannerDot.css +4 -11
- package/dist/lib/components/Button/Button.css +83 -74
- package/dist/lib/components/Calendar/Calendar.css +0 -7
- package/dist/lib/components/Calendar/components/Day/Day.css +10 -17
- package/dist/lib/components/Calendar/components/Month/Month.css +3 -10
- package/dist/lib/components/Carousel/Carousel.css +4 -11
- package/dist/lib/components/Checkbox/Checkbox.css +18 -25
- package/dist/lib/components/ContentArea/ContentArea.css +61 -20
- package/dist/lib/components/ContentArea/ContentArea.d.ts +0 -1
- package/dist/lib/components/ContentArea/ContentArea.js +0 -1
- package/dist/lib/components/Counter/Counter.css +61 -11
- package/dist/lib/components/Grid/Grid.css +47 -0
- package/dist/lib/components/Grid/GridColumn.css +0 -7
- package/dist/lib/components/Header/Header.css +8 -12
- package/dist/lib/components/Header/Header.d.ts +1 -1
- package/dist/lib/components/Header/Header.js +2 -2
- package/dist/lib/components/InputLabel/InputLabel.css +0 -7
- package/dist/lib/components/List/List.css +9 -13
- package/dist/lib/components/List/List.d.ts +1 -1
- package/dist/lib/components/List/List.js +2 -2
- package/dist/lib/components/List/ListItem.css +0 -7
- package/dist/lib/components/Logo/Logo.css +0 -7
- package/dist/lib/components/Logo/Logo.js +4 -8
- package/dist/lib/components/NavArrow/NavArrow.css +5 -12
- package/dist/lib/components/Notification/Notification.css +88 -24
- package/dist/lib/components/Pagination/Pagination.css +0 -7
- package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.css +56 -9
- package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.css +47 -0
- package/dist/lib/components/Paragraph/Paragraph.css +7 -17
- package/dist/lib/components/Paragraph/Paragraph.d.ts +0 -1
- package/dist/lib/components/Paragraph/Paragraph.js +1 -2
- package/dist/lib/components/Preloader/Preloader.css +5 -12
- package/dist/lib/components/RadioButton/RadioButton.css +7 -14
- package/dist/lib/components/RadioButton/RadioButton.d.ts +5 -1
- package/dist/lib/components/RadioButton/RadioButton.js +6 -4
- package/dist/lib/components/Search/Search.css +20 -25
- package/dist/lib/components/Select/Select.css +29 -35
- package/dist/lib/components/Switcher/Switcher.css +18 -28
- package/dist/lib/components/Tabs/Tabs.css +30 -37
- package/dist/lib/components/Tabs/Tabs.js +41 -32
- package/dist/lib/components/TextField/TextField.css +27 -33
- package/dist/lib/components/TextLink/TextLink.css +10 -14
- package/dist/lib/components/TextLink/TextLink.d.ts +1 -1
- package/dist/lib/components/TextLink/TextLink.js +1 -1
- package/dist/lib/components/Tile/Tile.css +2 -8
- package/dist/lib/components/Tooltip/Tooltip.css +1 -8
- package/package.json +4 -4
- package/styles/base.css +54 -0
- 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:
|
|
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:
|
|
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:
|
|
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:
|
|
204
|
+
background-color: var(--spbSky2);
|
|
213
205
|
}
|
|
214
206
|
.colors__underline:after,
|
|
215
207
|
.colors__underline:before {
|
package/dist/es/colors/Colors.js
CHANGED
|
@@ -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: "
|
|
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: "
|
|
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: '
|
|
7
|
+
name: 'Brand Green',
|
|
8
|
+
code: 'brandGreen'
|
|
9
9
|
}, {
|
|
10
|
-
name: 'Purple',
|
|
11
|
-
code: '
|
|
10
|
+
name: 'Brand Purple',
|
|
11
|
+
code: 'brandPurple'
|
|
12
12
|
}]
|
|
13
13
|
}, {
|
|
14
14
|
description: 'Градация оттенков серого',
|
|
15
15
|
colors: [{
|
|
16
16
|
name: 'Base',
|
|
17
|
-
code: '
|
|
18
|
-
border: '1px solid
|
|
17
|
+
code: 'base',
|
|
18
|
+
border: '1px solid var(--spbSky1)'
|
|
19
19
|
}, {
|
|
20
20
|
name: 'Content',
|
|
21
|
-
code: '
|
|
21
|
+
code: 'content',
|
|
22
|
+
border: '1px solid var(--spbSky1)'
|
|
22
23
|
}, {
|
|
23
24
|
name: 'Spb Sky 0',
|
|
24
|
-
code: '
|
|
25
|
-
border: '2px solid
|
|
25
|
+
code: 'spbSky0',
|
|
26
|
+
border: '2px solid var(--spbSky1)'
|
|
26
27
|
}, {
|
|
27
28
|
name: 'Spb Sky 1',
|
|
28
|
-
code: '
|
|
29
|
+
code: 'spbSky1'
|
|
29
30
|
}, {
|
|
30
31
|
name: 'Spb Sky 2',
|
|
31
|
-
code: '
|
|
32
|
+
code: 'spbSky2'
|
|
32
33
|
}, {
|
|
33
34
|
name: 'Spb Sky 3',
|
|
34
|
-
code: '
|
|
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: '
|
|
45
|
+
code: 'warmRedC'
|
|
45
46
|
}, {
|
|
46
47
|
name: '137C',
|
|
47
|
-
code: '
|
|
48
|
+
code: '137C'
|
|
48
49
|
}, {
|
|
49
50
|
name: '311C',
|
|
50
|
-
code: '
|
|
51
|
+
code: '311C'
|
|
51
52
|
}, {
|
|
52
53
|
name: 'Reflex Blue',
|
|
53
|
-
code: '
|
|
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: '
|
|
64
|
+
code: 'fury'
|
|
64
65
|
}, {
|
|
65
66
|
name: 'System Blue',
|
|
66
|
-
code: '
|
|
67
|
+
code: 'systemBlue'
|
|
67
68
|
}, {
|
|
68
69
|
name: 'Background',
|
|
69
|
-
code: '
|
|
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: '
|
|
89
|
+
code: 'gradientBasic',
|
|
80
90
|
gradient: 'linear-gradient(90deg, #01873F 0%, #00B956 74%, #14CD6A 100%)'
|
|
81
91
|
}, {
|
|
82
92
|
name: 'VIP',
|
|
83
|
-
code: '
|
|
93
|
+
code: 'gradientVIP',
|
|
84
94
|
gradient: 'linear-gradient(90deg, #5B1168 0%, #731982 74%, #821E93 100%)'
|
|
85
95
|
}, {
|
|
86
96
|
name: 'Exclusive',
|
|
87
|
-
code: '
|
|
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: '
|
|
99
|
-
border: '1px solid
|
|
108
|
+
code: 'stcWhite',
|
|
109
|
+
border: '1px solid var(--spbSky1)'
|
|
100
110
|
}, {
|
|
101
111
|
name: 'STC Black',
|
|
102
|
-
code: '
|
|
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: '
|
|
113
|
-
border: '1px solid
|
|
123
|
+
code: 'stcWhite5',
|
|
124
|
+
border: '1px solid var(--spbSky1)'
|
|
114
125
|
}, {
|
|
115
126
|
name: 'STC White 10%',
|
|
116
|
-
code: '
|
|
117
|
-
border: '1px solid
|
|
127
|
+
code: 'stcWhite10',
|
|
128
|
+
border: '1px solid var(--spbSky1)'
|
|
118
129
|
}, {
|
|
119
130
|
name: 'STC White 20%',
|
|
120
|
-
code: '
|
|
121
|
-
border: '1px solid
|
|
131
|
+
code: 'stcWhite20',
|
|
132
|
+
border: '1px solid var(--spbSky1)'
|
|
122
133
|
}, {
|
|
123
134
|
name: 'STC White 50%',
|
|
124
|
-
code: '
|
|
135
|
+
code: 'stcWhite50',
|
|
136
|
+
border: '1px solid var(--spbSky1)'
|
|
125
137
|
}, {
|
|
126
138
|
name: 'STC Black 5%',
|
|
127
|
-
code: '
|
|
139
|
+
code: 'stcBlack5',
|
|
140
|
+
border: '1px solid var(--spbSky1)'
|
|
128
141
|
}, {
|
|
129
142
|
name: 'STC Black 10%',
|
|
130
|
-
code: '
|
|
143
|
+
code: 'stcBlack10',
|
|
144
|
+
border: '1px solid var(--spbSky1)'
|
|
131
145
|
}, {
|
|
132
146
|
name: 'STC Black 20%',
|
|
133
|
-
code: '
|
|
147
|
+
code: 'stcBlack20',
|
|
148
|
+
border: '1px solid var(--spbSky1)'
|
|
134
149
|
}, {
|
|
135
150
|
name: 'STC Black 50%',
|
|
136
|
-
code: '
|
|
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: '
|
|
147
|
-
parentColor: '
|
|
161
|
+
name: 'Brand Green 80',
|
|
162
|
+
code: 'brandGreen80',
|
|
163
|
+
parentColor: 'green'
|
|
148
164
|
}, {
|
|
149
|
-
name: 'Purple 80',
|
|
150
|
-
code: '
|
|
151
|
-
parentColor: '
|
|
165
|
+
name: 'Brand Purple 80',
|
|
166
|
+
code: 'brandPurple80',
|
|
167
|
+
parentColor: 'purple'
|
|
152
168
|
}, {
|
|
153
169
|
name: 'Warm Red C 80',
|
|
154
|
-
code: '
|
|
155
|
-
parentColor: '
|
|
170
|
+
code: 'warmRedC80',
|
|
171
|
+
parentColor: 'warmRedC'
|
|
156
172
|
}, {
|
|
157
173
|
name: '137C 80',
|
|
158
|
-
code: '
|
|
159
|
-
parentColor: '
|
|
174
|
+
code: '137C80',
|
|
175
|
+
parentColor: '137C'
|
|
160
176
|
}, {
|
|
161
177
|
name: '311C 80',
|
|
162
|
-
code: '
|
|
163
|
-
parentColor: '
|
|
178
|
+
code: '311C80',
|
|
179
|
+
parentColor: '311C'
|
|
164
180
|
}, {
|
|
165
181
|
name: 'Reflex Blue 80',
|
|
166
|
-
code: '
|
|
167
|
-
parentColor: '
|
|
182
|
+
code: 'reflexBlue80',
|
|
183
|
+
parentColor: 'reflexBlue'
|
|
168
184
|
}, {
|
|
169
185
|
name: 'Fury 80',
|
|
170
|
-
code: '
|
|
171
|
-
parentColor: '
|
|
186
|
+
code: 'fury80',
|
|
187
|
+
parentColor: 'fury'
|
|
172
188
|
}, {
|
|
173
|
-
name: 'Green 20',
|
|
174
|
-
code: '
|
|
175
|
-
parentColor: '
|
|
189
|
+
name: 'Brand Green 20',
|
|
190
|
+
code: 'brandGreen20',
|
|
191
|
+
parentColor: 'green'
|
|
176
192
|
}, {
|
|
177
|
-
name: 'Purple 20',
|
|
178
|
-
code: '
|
|
179
|
-
parentColor: '
|
|
193
|
+
name: 'Brand Purple 20',
|
|
194
|
+
code: 'brandPurple20',
|
|
195
|
+
parentColor: 'purple'
|
|
180
196
|
}, {
|
|
181
197
|
name: 'Warm Red C 20',
|
|
182
|
-
code: '
|
|
183
|
-
parentColor: '
|
|
198
|
+
code: 'warmRedC20',
|
|
199
|
+
parentColor: 'warmRedC'
|
|
184
200
|
}, {
|
|
185
201
|
name: '137C 20',
|
|
186
|
-
code: '
|
|
187
|
-
parentColor: '
|
|
202
|
+
code: '137C20',
|
|
203
|
+
parentColor: '137C'
|
|
188
204
|
}, {
|
|
189
205
|
name: '311C 20',
|
|
190
|
-
code: '
|
|
191
|
-
parentColor: '
|
|
206
|
+
code: '311C20',
|
|
207
|
+
parentColor: '311C'
|
|
192
208
|
}, {
|
|
193
209
|
name: 'Reflex Blue 20',
|
|
194
|
-
code: '
|
|
195
|
-
parentColor: '
|
|
210
|
+
code: 'reflexBlue20',
|
|
211
|
+
parentColor: 'reflexBlue'
|
|
196
212
|
}, {
|
|
197
213
|
name: 'Fury 20',
|
|
198
|
-
code: '
|
|
199
|
-
parentColor: '
|
|
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
|
|
10
|
-
border-bottom: 1px solid
|
|
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:
|
|
9
|
+
background: var(--spbSky0);
|
|
17
10
|
}
|
|
18
11
|
.mfui-accordion.mfui-accordion_open .mfui-accordion__title-wrap {
|
|
19
|
-
background:
|
|
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:
|
|
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:
|
|
96
|
+
background-color: var(--brandGreen);
|
|
104
97
|
}
|
|
105
98
|
.mfui-banner__pagination_theme_dark {
|
|
106
|
-
background-color:
|
|
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:
|
|
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:
|
|
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:
|
|
58
|
-
stroke:
|
|
50
|
+
fill: var(--stcWhite50);
|
|
51
|
+
stroke: var(--base);
|
|
59
52
|
stroke-width: 100;
|
|
60
53
|
stroke-dasharray: 1000;
|
|
61
54
|
}
|