@megafon/ui-core 2.2.0 → 3.0.0-beta.3
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 +74 -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 +3 -11
- package/dist/es/colors/Colors.js +51 -4
- package/dist/es/colors/colorsData.js +78 -71
- package/dist/es/components/Accordion/Accordion.css +6 -12
- package/dist/es/components/Accordion/Accordion.d.ts +1 -1
- package/dist/es/components/Accordion/Accordion.js +10 -5
- 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/Calendar/components/Month/Month.js +21 -5
- package/dist/es/components/Carousel/Carousel.css +4 -11
- package/dist/es/components/Checkbox/Checkbox.css +18 -25
- package/dist/es/components/Checkbox/Checkbox.d.ts +3 -25
- package/dist/es/components/Checkbox/Checkbox.js +71 -89
- 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/Search/Search.css +20 -25
- package/dist/es/components/Select/Select.css +29 -35
- package/dist/es/components/Select/Select.d.ts +1 -1
- package/dist/es/components/Switcher/Switcher.css +18 -28
- package/dist/es/components/Tabs/Tabs.css +30 -37
- 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/es/components/Tooltip/Tooltip.d.ts +3 -2
- package/dist/es/components/Tooltip/Tooltip.js +2 -9
- package/dist/lib/colors/ColorItem/ColorItem.css +1 -8
- package/dist/lib/colors/ColorItem/ColorItem.js +1 -1
- package/dist/lib/colors/Colors.css +3 -11
- package/dist/lib/colors/Colors.js +53 -4
- package/dist/lib/colors/colorsData.js +78 -71
- package/dist/lib/components/Accordion/Accordion.css +6 -12
- package/dist/lib/components/Accordion/Accordion.d.ts +1 -1
- package/dist/lib/components/Accordion/Accordion.js +9 -4
- 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/Calendar/components/Month/Month.js +20 -4
- package/dist/lib/components/Carousel/Carousel.css +4 -11
- package/dist/lib/components/Checkbox/Checkbox.css +18 -25
- package/dist/lib/components/Checkbox/Checkbox.d.ts +3 -25
- package/dist/lib/components/Checkbox/Checkbox.js +76 -124
- 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/Search/Search.css +20 -25
- package/dist/lib/components/Select/Select.css +29 -35
- package/dist/lib/components/Select/Select.d.ts +1 -1
- package/dist/lib/components/Switcher/Switcher.css +18 -28
- package/dist/lib/components/Tabs/Tabs.css +30 -37
- 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/dist/lib/components/Tooltip/Tooltip.d.ts +3 -2
- package/dist/lib/components/Tooltip/Tooltip.js +1 -8
- package/package.json +4 -4
- package/styles/base.css +54 -0
- package/styles/base.less +61 -73
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
h1,
|
|
2
|
-
h2,
|
|
3
|
-
h3,
|
|
4
|
-
h4,
|
|
5
|
-
h5 {
|
|
6
|
-
margin: 0;
|
|
7
|
-
}
|
|
8
1
|
.mfui-search {
|
|
9
2
|
font-family: inherit;
|
|
10
3
|
font-size: 15px;
|
|
@@ -12,11 +5,11 @@ h5 {
|
|
|
12
5
|
position: relative;
|
|
13
6
|
z-index: auto;
|
|
14
7
|
min-height: 40px;
|
|
15
|
-
color:
|
|
8
|
+
color: var(--content);
|
|
16
9
|
}
|
|
17
10
|
.mfui-search__require-mark {
|
|
18
11
|
margin-left: 1px;
|
|
19
|
-
color:
|
|
12
|
+
color: var(--fury);
|
|
20
13
|
font-size: 20px;
|
|
21
14
|
line-height: 0;
|
|
22
15
|
}
|
|
@@ -31,8 +24,8 @@ h5 {
|
|
|
31
24
|
width: 100%;
|
|
32
25
|
height: 48px;
|
|
33
26
|
padding: 0 16px 0 20px;
|
|
34
|
-
border: 1px solid
|
|
35
|
-
background-color:
|
|
27
|
+
border: 1px solid var(--spbSky2);
|
|
28
|
+
background-color: var(--base);
|
|
36
29
|
outline: none;
|
|
37
30
|
cursor: pointer;
|
|
38
31
|
-webkit-user-select: none;
|
|
@@ -41,7 +34,7 @@ h5 {
|
|
|
41
34
|
user-select: none;
|
|
42
35
|
}
|
|
43
36
|
.mfui-search__control_error {
|
|
44
|
-
border-color:
|
|
37
|
+
border-color: var(--fury);
|
|
45
38
|
}
|
|
46
39
|
.mfui-search__search-field {
|
|
47
40
|
position: relative;
|
|
@@ -56,6 +49,7 @@ h5 {
|
|
|
56
49
|
border: none;
|
|
57
50
|
border-radius: 0;
|
|
58
51
|
overflow: auto;
|
|
52
|
+
color: var(--content);
|
|
59
53
|
font-family: inherit;
|
|
60
54
|
line-height: 25px;
|
|
61
55
|
background-color: transparent;
|
|
@@ -79,7 +73,7 @@ h5 {
|
|
|
79
73
|
left: -1px;
|
|
80
74
|
z-index: 0;
|
|
81
75
|
display: none;
|
|
82
|
-
background-color:
|
|
76
|
+
background-color: var(--base);
|
|
83
77
|
-webkit-box-shadow: 0 1px 16px rgba(0, 0, 0, 0.2);
|
|
84
78
|
box-shadow: 0 1px 16px rgba(0, 0, 0, 0.2);
|
|
85
79
|
}
|
|
@@ -91,7 +85,7 @@ h5 {
|
|
|
91
85
|
-moz-user-select: none;
|
|
92
86
|
-ms-user-select: none;
|
|
93
87
|
user-select: none;
|
|
94
|
-
fill:
|
|
88
|
+
fill: var(--content);
|
|
95
89
|
}
|
|
96
90
|
.mfui-search__icon-box {
|
|
97
91
|
display: -webkit-box;
|
|
@@ -105,6 +99,7 @@ h5 {
|
|
|
105
99
|
justify-content: center;
|
|
106
100
|
height: 100%;
|
|
107
101
|
text-align: center;
|
|
102
|
+
fill: var(--content);
|
|
108
103
|
}
|
|
109
104
|
.mfui-search__list-inner {
|
|
110
105
|
-webkit-box-sizing: border-box;
|
|
@@ -116,11 +111,11 @@ h5 {
|
|
|
116
111
|
.mfui-search__list-item {
|
|
117
112
|
font-family: inherit;
|
|
118
113
|
padding: 8px 32px;
|
|
119
|
-
background-color:
|
|
114
|
+
background-color: var(--base);
|
|
120
115
|
cursor: pointer;
|
|
121
116
|
}
|
|
122
117
|
.mfui-search__list-item_active {
|
|
123
|
-
background-color:
|
|
118
|
+
background-color: var(--spbSky0);
|
|
124
119
|
}
|
|
125
120
|
.mfui-search__item-title {
|
|
126
121
|
position: relative;
|
|
@@ -137,23 +132,23 @@ h5 {
|
|
|
137
132
|
right: 0;
|
|
138
133
|
bottom: 0;
|
|
139
134
|
width: 40px;
|
|
140
|
-
background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), to(
|
|
141
|
-
background: linear-gradient(to right, rgba(255, 255, 255, 0),
|
|
135
|
+
background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), to(var(--base)));
|
|
136
|
+
background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--base));
|
|
142
137
|
}
|
|
143
138
|
.mfui-search__list-item_active .mfui-search__item-title:after {
|
|
144
|
-
background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), to(
|
|
145
|
-
background: linear-gradient(to right, rgba(255, 255, 255, 0),
|
|
139
|
+
background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), to(var(--spbSky0)));
|
|
140
|
+
background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--spbSky0));
|
|
146
141
|
}
|
|
147
142
|
.mfui-search_open .mfui-search__list {
|
|
148
143
|
display: block;
|
|
149
|
-
border-color:
|
|
144
|
+
border-color: var(--content);
|
|
150
145
|
}
|
|
151
146
|
.mfui-search_open {
|
|
152
147
|
z-index: 12;
|
|
153
148
|
}
|
|
154
149
|
.mfui-search_disabled .mfui-search__control {
|
|
155
|
-
border-color:
|
|
156
|
-
background-color:
|
|
150
|
+
border-color: var(--spbSky1);
|
|
151
|
+
background-color: var(--spbSky1);
|
|
157
152
|
cursor: default;
|
|
158
153
|
pointer-events: none;
|
|
159
154
|
}
|
|
@@ -169,8 +164,8 @@ h5 {
|
|
|
169
164
|
line-height: 16px;
|
|
170
165
|
}
|
|
171
166
|
.mfui-search__notice_error {
|
|
172
|
-
color:
|
|
167
|
+
color: var(--fury);
|
|
173
168
|
}
|
|
174
169
|
.mfui-search__notice_success {
|
|
175
|
-
color:
|
|
170
|
+
color: var(--brandGreen);
|
|
176
171
|
}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
h1,
|
|
2
|
-
h2,
|
|
3
|
-
h3,
|
|
4
|
-
h4,
|
|
5
|
-
h5 {
|
|
6
|
-
margin: 0;
|
|
7
|
-
}
|
|
8
1
|
.mfui-select {
|
|
9
2
|
font-family: inherit;
|
|
10
3
|
font-size: 15px;
|
|
@@ -13,7 +6,7 @@ h5 {
|
|
|
13
6
|
position: relative;
|
|
14
7
|
z-index: 1;
|
|
15
8
|
min-height: 40px;
|
|
16
|
-
color:
|
|
9
|
+
color: var(--content);
|
|
17
10
|
}
|
|
18
11
|
.mfui-select__inner {
|
|
19
12
|
position: relative;
|
|
@@ -25,8 +18,8 @@ h5 {
|
|
|
25
18
|
box-sizing: border-box;
|
|
26
19
|
width: 100%;
|
|
27
20
|
height: 48px;
|
|
28
|
-
border: 1px solid
|
|
29
|
-
background-color:
|
|
21
|
+
border: 1px solid var(--spbSky2);
|
|
22
|
+
background-color: var(--base);
|
|
30
23
|
outline: none;
|
|
31
24
|
cursor: pointer;
|
|
32
25
|
}
|
|
@@ -40,7 +33,7 @@ h5 {
|
|
|
40
33
|
border-right: 5px solid transparent;
|
|
41
34
|
border-bottom: none;
|
|
42
35
|
border-left: 5px solid transparent;
|
|
43
|
-
color:
|
|
36
|
+
color: var(--content);
|
|
44
37
|
-webkit-transform: translateY(-50%);
|
|
45
38
|
transform: translateY(-50%);
|
|
46
39
|
cursor: pointer;
|
|
@@ -59,6 +52,7 @@ h5 {
|
|
|
59
52
|
border: none;
|
|
60
53
|
border-radius: 0;
|
|
61
54
|
overflow: auto;
|
|
55
|
+
color: var(--content);
|
|
62
56
|
background-color: transparent;
|
|
63
57
|
outline: none;
|
|
64
58
|
-webkit-box-shadow: none;
|
|
@@ -70,7 +64,7 @@ h5 {
|
|
|
70
64
|
appearance: none;
|
|
71
65
|
}
|
|
72
66
|
.mfui-select_no-touch .mfui-select__control:hover {
|
|
73
|
-
border-color:
|
|
67
|
+
border-color: var(--content);
|
|
74
68
|
}
|
|
75
69
|
.mfui-select__title {
|
|
76
70
|
position: relative;
|
|
@@ -86,7 +80,7 @@ h5 {
|
|
|
86
80
|
outline: none;
|
|
87
81
|
}
|
|
88
82
|
.mfui-select__title_placeholder {
|
|
89
|
-
color:
|
|
83
|
+
color: var(--spbSky3);
|
|
90
84
|
}
|
|
91
85
|
.mfui-select__title-inner {
|
|
92
86
|
position: relative;
|
|
@@ -111,26 +105,26 @@ h5 {
|
|
|
111
105
|
right: 0;
|
|
112
106
|
bottom: 0;
|
|
113
107
|
width: 40px;
|
|
114
|
-
background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), to(
|
|
115
|
-
background: linear-gradient(to right, rgba(255, 255, 255, 0),
|
|
108
|
+
background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), to(var(--base)));
|
|
109
|
+
background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--base));
|
|
116
110
|
}
|
|
117
111
|
.mfui-select__require-mark {
|
|
118
112
|
margin-left: 1px;
|
|
119
|
-
color:
|
|
113
|
+
color: var(--fury);
|
|
120
114
|
font-size: 20px;
|
|
121
115
|
line-height: 0;
|
|
122
116
|
}
|
|
123
117
|
.mfui-select input::-webkit-input-placeholder {
|
|
124
|
-
color:
|
|
118
|
+
color: var(--spbSky3);
|
|
125
119
|
}
|
|
126
120
|
.mfui-select input::-moz-placeholder {
|
|
127
|
-
color:
|
|
121
|
+
color: var(--spbSky3);
|
|
128
122
|
}
|
|
129
123
|
.mfui-select input:-moz-placeholder {
|
|
130
|
-
color:
|
|
124
|
+
color: var(--spbSky3);
|
|
131
125
|
}
|
|
132
126
|
.mfui-select input:-ms-input-placeholder {
|
|
133
|
-
color:
|
|
127
|
+
color: var(--spbSky3);
|
|
134
128
|
}
|
|
135
129
|
.mfui-select__list {
|
|
136
130
|
position: absolute;
|
|
@@ -139,7 +133,7 @@ h5 {
|
|
|
139
133
|
left: 0;
|
|
140
134
|
z-index: 10;
|
|
141
135
|
display: none;
|
|
142
|
-
background-color:
|
|
136
|
+
background-color: var(--base);
|
|
143
137
|
-webkit-box-shadow: 0 1px 16px rgba(0, 0, 0, 0.2);
|
|
144
138
|
box-shadow: 0 1px 16px rgba(0, 0, 0, 0.2);
|
|
145
139
|
}
|
|
@@ -153,11 +147,11 @@ h5 {
|
|
|
153
147
|
.mfui-select__list-item {
|
|
154
148
|
font-family: inherit;
|
|
155
149
|
padding: 8px 32px;
|
|
156
|
-
background-color:
|
|
150
|
+
background-color: var(--base);
|
|
157
151
|
cursor: pointer;
|
|
158
152
|
}
|
|
159
153
|
.mfui-select__list-item_active {
|
|
160
|
-
background-color:
|
|
154
|
+
background-color: var(--spbSky0);
|
|
161
155
|
}
|
|
162
156
|
.mfui-select__item-title {
|
|
163
157
|
position: relative;
|
|
@@ -180,12 +174,12 @@ h5 {
|
|
|
180
174
|
right: 0;
|
|
181
175
|
bottom: 0;
|
|
182
176
|
width: 40px;
|
|
183
|
-
background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), to(
|
|
184
|
-
background: linear-gradient(to right, rgba(255, 255, 255, 0),
|
|
177
|
+
background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), to(var(--base)));
|
|
178
|
+
background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--base));
|
|
185
179
|
}
|
|
186
180
|
.mfui-select__list-item_active .mfui-select__item-title:after {
|
|
187
|
-
background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), to(
|
|
188
|
-
background: linear-gradient(to right, rgba(255, 255, 255, 0),
|
|
181
|
+
background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), to(var(--spbSky0)));
|
|
182
|
+
background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--spbSky0));
|
|
189
183
|
}
|
|
190
184
|
.mfui-select__not-found {
|
|
191
185
|
padding: 8px 32px;
|
|
@@ -208,26 +202,26 @@ h5 {
|
|
|
208
202
|
}
|
|
209
203
|
.mfui-select_open .mfui-select__list {
|
|
210
204
|
display: block;
|
|
211
|
-
border-color:
|
|
205
|
+
border-color: var(--content);
|
|
212
206
|
}
|
|
213
207
|
.mfui-select_open .mfui-select__control {
|
|
214
|
-
border-color:
|
|
208
|
+
border-color: var(--content);
|
|
215
209
|
}
|
|
216
210
|
.mfui-select_valid .mfui-select__control {
|
|
217
|
-
border-color:
|
|
211
|
+
border-color: var(--brandGreen) !important;
|
|
218
212
|
}
|
|
219
213
|
.mfui-select_valid .mfui-select__text {
|
|
220
|
-
color:
|
|
214
|
+
color: var(--brandGreen);
|
|
221
215
|
}
|
|
222
216
|
.mfui-select_error .mfui-select__control {
|
|
223
|
-
border-color:
|
|
217
|
+
border-color: var(--fury) !important;
|
|
224
218
|
}
|
|
225
219
|
.mfui-select_error .mfui-select__text {
|
|
226
|
-
color:
|
|
220
|
+
color: var(--fury);
|
|
227
221
|
}
|
|
228
222
|
.mfui-select_disabled .mfui-select__control {
|
|
229
|
-
border-color:
|
|
230
|
-
background-color:
|
|
223
|
+
border-color: var(--spbSky1);
|
|
224
|
+
background-color: var(--spbSky1);
|
|
231
225
|
-webkit-user-select: none;
|
|
232
226
|
-moz-user-select: none;
|
|
233
227
|
-ms-user-select: none;
|
|
@@ -132,7 +132,7 @@ declare class Select<T extends SelectItemValueType> extends React.Component<ISel
|
|
|
132
132
|
handleClosed: () => void;
|
|
133
133
|
handleClickOutside: (e: MouseEvent) => void;
|
|
134
134
|
handleOpenDropdown: () => void;
|
|
135
|
-
handleSelectItem: (e: React.
|
|
135
|
+
handleSelectItem: (e: React.KeyboardEvent<HTMLDivElement> | React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
136
136
|
handleHoverItem: (index: number) => (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
137
137
|
handleComboboxFocus: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
138
138
|
handleChangeCombobox: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
@@ -1,54 +1,44 @@
|
|
|
1
|
-
h1,
|
|
2
|
-
h2,
|
|
3
|
-
h3,
|
|
4
|
-
h4,
|
|
5
|
-
h5 {
|
|
6
|
-
margin: 0;
|
|
7
|
-
}
|
|
8
1
|
.mfui-switcher {
|
|
9
2
|
top: 22px;
|
|
10
3
|
right: 28px;
|
|
11
|
-
width:
|
|
12
|
-
height:
|
|
4
|
+
width: 40px;
|
|
5
|
+
height: 24px;
|
|
13
6
|
border-radius: 15.5px;
|
|
14
|
-
background-color:
|
|
15
|
-
-webkit-box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
|
|
16
|
-
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
|
|
7
|
+
background-color: var(--spbSky1);
|
|
17
8
|
cursor: pointer;
|
|
18
9
|
-webkit-transition: all 0.3s;
|
|
19
10
|
transition: all 0.3s;
|
|
20
11
|
}
|
|
21
12
|
.mfui-switcher_no-touch:hover {
|
|
22
|
-
background-color:
|
|
13
|
+
background-color: var(--spbSky1);
|
|
23
14
|
}
|
|
24
15
|
.mfui-switcher__pointer {
|
|
25
16
|
position: relative;
|
|
26
|
-
top:
|
|
27
|
-
left:
|
|
28
|
-
width:
|
|
29
|
-
height:
|
|
30
|
-
border: 1px solid #D8D8D8;
|
|
17
|
+
top: 2px;
|
|
18
|
+
left: 2px;
|
|
19
|
+
width: 20px;
|
|
20
|
+
height: 20px;
|
|
31
21
|
border-radius: 50%;
|
|
32
|
-
background-color:
|
|
33
|
-
-webkit-box-shadow: 0 3px 1px 0 rgba(0, 0, 0, 0.05), 0 3px 3px 0 rgba(0, 0, 0, 0.05);
|
|
34
|
-
box-shadow: 0 3px 1px 0 rgba(0, 0, 0, 0.05), 0 3px 3px 0 rgba(0, 0, 0, 0.05);
|
|
22
|
+
background-color: var(--base);
|
|
35
23
|
-webkit-transition: all 0.3s;
|
|
36
24
|
transition: all 0.3s;
|
|
37
25
|
}
|
|
38
26
|
.mfui-switcher_checked {
|
|
39
|
-
background-color:
|
|
27
|
+
background-color: var(--brandGreen);
|
|
40
28
|
}
|
|
41
29
|
.mfui-switcher_checked .mfui-switcher__pointer {
|
|
42
|
-
left:
|
|
30
|
+
left: 18px;
|
|
43
31
|
}
|
|
44
32
|
.mfui-switcher_checked.mfui-switcher_no-touch:hover {
|
|
45
|
-
background-color:
|
|
33
|
+
background-color: var(--buttonHoverGreen);
|
|
46
34
|
}
|
|
47
35
|
.mfui-switcher_disabled {
|
|
48
|
-
background-color:
|
|
36
|
+
background-color: var(--spbSky1);
|
|
49
37
|
cursor: default;
|
|
50
38
|
}
|
|
51
|
-
.mfui-switcher_checked.mfui-
|
|
52
|
-
|
|
53
|
-
|
|
39
|
+
.mfui-switcher_disabled.mfui-switcher_checked.mfui-switcher_no-touch.mfui-switcher:hover {
|
|
40
|
+
background-color: var(--spbSky1);
|
|
41
|
+
}
|
|
42
|
+
.mfui-switcher_disabled .mfui-switcher__pointer {
|
|
43
|
+
background-color: var(--spbSky2);
|
|
54
44
|
}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
h1,
|
|
2
|
-
h2,
|
|
3
|
-
h3,
|
|
4
|
-
h4,
|
|
5
|
-
h5 {
|
|
6
|
-
margin: 0;
|
|
7
|
-
}
|
|
8
1
|
.mfui-tabs__swiper {
|
|
9
2
|
font-family: inherit;
|
|
10
3
|
font-size: 15px;
|
|
@@ -28,13 +21,13 @@ h5 {
|
|
|
28
21
|
}
|
|
29
22
|
.mfui-tabs__swiper:before {
|
|
30
23
|
left: 0;
|
|
31
|
-
background: -webkit-gradient(linear, left top, right top, from(
|
|
32
|
-
background: linear-gradient(to right,
|
|
24
|
+
background: -webkit-gradient(linear, left top, right top, from(var(--base)), to(rgba(255, 255, 255, 0)));
|
|
25
|
+
background: linear-gradient(to right, var(--base), rgba(255, 255, 255, 0));
|
|
33
26
|
}
|
|
34
27
|
.mfui-tabs__swiper:after {
|
|
35
28
|
right: 0;
|
|
36
|
-
background: -webkit-gradient(linear, right top, left top, from(
|
|
37
|
-
background: linear-gradient(to left,
|
|
29
|
+
background: -webkit-gradient(linear, right top, left top, from(var(--base)), to(rgba(255, 255, 255, 0)));
|
|
30
|
+
background: linear-gradient(to left, var(--base), rgba(255, 255, 255, 0));
|
|
38
31
|
}
|
|
39
32
|
.mfui-tabs__swiper_beginning:before {
|
|
40
33
|
display: none;
|
|
@@ -80,19 +73,19 @@ h5 {
|
|
|
80
73
|
-webkit-box-sizing: content-box;
|
|
81
74
|
box-sizing: content-box;
|
|
82
75
|
height: 32px;
|
|
83
|
-
color:
|
|
76
|
+
color: var(--content);
|
|
84
77
|
white-space: nowrap;
|
|
85
78
|
text-decoration: none;
|
|
86
79
|
cursor: pointer;
|
|
87
|
-
fill:
|
|
80
|
+
fill: var(--content);
|
|
88
81
|
}
|
|
89
82
|
.mfui-tabs__tab-inner:hover {
|
|
90
|
-
color:
|
|
91
|
-
fill:
|
|
83
|
+
color: var(--brandGreen);
|
|
84
|
+
fill: var(--brandGreen);
|
|
92
85
|
}
|
|
93
86
|
.mfui-tabs__tab-inner_current {
|
|
94
|
-
color:
|
|
95
|
-
fill:
|
|
87
|
+
color: var(--brandGreen);
|
|
88
|
+
fill: var(--brandGreen);
|
|
96
89
|
}
|
|
97
90
|
.mfui-tabs__tab-icon {
|
|
98
91
|
width: 32px;
|
|
@@ -116,7 +109,7 @@ h5 {
|
|
|
116
109
|
bottom: 0;
|
|
117
110
|
left: 0;
|
|
118
111
|
height: 2px;
|
|
119
|
-
background-color:
|
|
112
|
+
background-color: var(--brandGreen);
|
|
120
113
|
-webkit-transition-duration: 0.3s;
|
|
121
114
|
transition-duration: 0.3s;
|
|
122
115
|
}
|
|
@@ -128,11 +121,11 @@ h5 {
|
|
|
128
121
|
width: 16px;
|
|
129
122
|
height: 16px;
|
|
130
123
|
border-radius: 50%;
|
|
131
|
-
background-color:
|
|
124
|
+
background-color: var(--content);
|
|
132
125
|
-webkit-transform: translateY(-50%);
|
|
133
126
|
transform: translateY(-50%);
|
|
134
127
|
cursor: pointer;
|
|
135
|
-
fill:
|
|
128
|
+
fill: var(--base);
|
|
136
129
|
}
|
|
137
130
|
@media screen and (max-width: 1023px) {
|
|
138
131
|
.mfui-tabs__arrow {
|
|
@@ -206,7 +199,7 @@ h5 {
|
|
|
206
199
|
justify-content: center;
|
|
207
200
|
}
|
|
208
201
|
.mfui-tabs_h-align_center .mfui-tabs__tab {
|
|
209
|
-
border-bottom: 1px solid
|
|
202
|
+
border-bottom: 1px solid var(--stcWhite);
|
|
210
203
|
}
|
|
211
204
|
.mfui-tabs_h-align_left .mfui-tabs__swiper-wrapper {
|
|
212
205
|
position: relative;
|
|
@@ -218,7 +211,7 @@ h5 {
|
|
|
218
211
|
left: 0;
|
|
219
212
|
width: 100%;
|
|
220
213
|
height: 1px;
|
|
221
|
-
background-color:
|
|
214
|
+
background-color: var(--spbSky2);
|
|
222
215
|
}
|
|
223
216
|
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
|
224
217
|
.mfui-tabs_indents .mfui-tabs__swiper {
|
|
@@ -238,37 +231,37 @@ h5 {
|
|
|
238
231
|
right: 0;
|
|
239
232
|
left: 0;
|
|
240
233
|
z-index: 100;
|
|
241
|
-
background-color:
|
|
234
|
+
background-color: var(--base);
|
|
242
235
|
}
|
|
243
236
|
.mfui-tabs_tab-color_green:not(.mfui-tabs_sticky) .mfui-tabs__swiper:before {
|
|
244
237
|
left: 0;
|
|
245
|
-
background: -webkit-gradient(linear, left top, right top, from(
|
|
246
|
-
background: linear-gradient(to right,
|
|
238
|
+
background: -webkit-gradient(linear, left top, right top, from(var(--brandGreen)), to(transparent));
|
|
239
|
+
background: linear-gradient(to right, var(--brandGreen), transparent);
|
|
247
240
|
}
|
|
248
241
|
.mfui-tabs_tab-color_green:not(.mfui-tabs_sticky) .mfui-tabs__swiper:after {
|
|
249
242
|
right: 0;
|
|
250
|
-
background: -webkit-gradient(linear, right top, left top, from(
|
|
251
|
-
background: linear-gradient(to left,
|
|
243
|
+
background: -webkit-gradient(linear, right top, left top, from(var(--brandGreen)), to(transparent));
|
|
244
|
+
background: linear-gradient(to left, var(--brandGreen), transparent);
|
|
252
245
|
}
|
|
253
246
|
.mfui-tabs_tab-color_green:not(.mfui-tabs_sticky) .mfui-tabs__tab {
|
|
254
|
-
border-color:
|
|
247
|
+
border-color: var(--stcBlack5);
|
|
255
248
|
}
|
|
256
249
|
.mfui-tabs_tab-color_green:not(.mfui-tabs_sticky) .mfui-tabs__tab-inner {
|
|
257
|
-
color:
|
|
258
|
-
fill:
|
|
250
|
+
color: var(--stcWhite50);
|
|
251
|
+
fill: var(--stcWhite50);
|
|
259
252
|
}
|
|
260
253
|
.mfui-tabs_tab-color_green:not(.mfui-tabs_sticky) .mfui-tabs__tab-inner:hover {
|
|
261
|
-
color:
|
|
262
|
-
fill:
|
|
254
|
+
color: var(--stcWhite);
|
|
255
|
+
fill: var(--stcWhite);
|
|
263
256
|
}
|
|
264
257
|
.mfui-tabs_tab-color_green:not(.mfui-tabs_sticky) .mfui-tabs__tab-inner_current {
|
|
265
|
-
color:
|
|
266
|
-
fill:
|
|
258
|
+
color: var(--stcWhite);
|
|
259
|
+
fill: var(--stcWhite);
|
|
267
260
|
}
|
|
268
261
|
.mfui-tabs_tab-color_green:not(.mfui-tabs_sticky) .mfui-tabs__underline {
|
|
269
|
-
background-color:
|
|
262
|
+
background-color: var(--stcWhite);
|
|
270
263
|
}
|
|
271
264
|
.mfui-tabs_tab-color_green:not(.mfui-tabs_sticky) .mfui-tabs__arrow {
|
|
272
|
-
background-color:
|
|
273
|
-
fill:
|
|
265
|
+
background-color: var(--stcWhite);
|
|
266
|
+
fill: var(--brandGreen);
|
|
274
267
|
}
|
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
h1,
|
|
2
|
-
h2,
|
|
3
|
-
h3,
|
|
4
|
-
h4,
|
|
5
|
-
h5 {
|
|
6
|
-
margin: 0;
|
|
7
|
-
}
|
|
8
1
|
.mfui-text-field {
|
|
9
2
|
font-family: inherit;
|
|
10
3
|
font-size: 15px;
|
|
11
4
|
line-height: 24px;
|
|
12
|
-
color:
|
|
5
|
+
color: var(--content);
|
|
13
6
|
}
|
|
14
7
|
.mfui-text-field__field {
|
|
15
8
|
font-family: inherit;
|
|
@@ -45,13 +38,13 @@ h5 {
|
|
|
45
38
|
overflow: auto;
|
|
46
39
|
}
|
|
47
40
|
.mfui-text-field input::-webkit-input-placeholder {
|
|
48
|
-
color:
|
|
41
|
+
color: var(--spbSky3);
|
|
49
42
|
}
|
|
50
43
|
.mfui-text-field input:-moz-placeholder {
|
|
51
|
-
color:
|
|
44
|
+
color: var(--spbSky3);
|
|
52
45
|
}
|
|
53
46
|
.mfui-text-field input:-ms-input-placeholder {
|
|
54
|
-
color:
|
|
47
|
+
color: var(--spbSky3);
|
|
55
48
|
}
|
|
56
49
|
.mfui-text-field input::-ms-clear,
|
|
57
50
|
.mfui-text-field input::-ms-reveal {
|
|
@@ -62,7 +55,7 @@ h5 {
|
|
|
62
55
|
-webkit-box-flex: 1;
|
|
63
56
|
-ms-flex: 1 0 100px;
|
|
64
57
|
flex: 1 0 100px;
|
|
65
|
-
background:
|
|
58
|
+
background: var(--base);
|
|
66
59
|
}
|
|
67
60
|
.mfui-text-field__icon-box {
|
|
68
61
|
position: absolute;
|
|
@@ -83,6 +76,7 @@ h5 {
|
|
|
83
76
|
box-sizing: border-box;
|
|
84
77
|
padding-right: 16px;
|
|
85
78
|
text-align: center;
|
|
79
|
+
fill: var(--content);
|
|
86
80
|
}
|
|
87
81
|
.mfui-text-field__icon-box_error,
|
|
88
82
|
.mfui-text-field__icon-box_password,
|
|
@@ -105,7 +99,7 @@ h5 {
|
|
|
105
99
|
}
|
|
106
100
|
.mfui-text-field__require-mark {
|
|
107
101
|
margin-left: 1px;
|
|
108
|
-
color:
|
|
102
|
+
color: var(--fury);
|
|
109
103
|
font-size: 20px;
|
|
110
104
|
line-height: 0;
|
|
111
105
|
}
|
|
@@ -123,64 +117,64 @@ h5 {
|
|
|
123
117
|
opacity: 0.5;
|
|
124
118
|
}
|
|
125
119
|
.mfui-text-field__counter_error {
|
|
126
|
-
color:
|
|
120
|
+
color: var(--fury);
|
|
127
121
|
opacity: 1;
|
|
128
122
|
}
|
|
129
123
|
.mfui-text-field_theme_default .mfui-text-field__field {
|
|
130
|
-
border: 1px solid
|
|
131
|
-
color:
|
|
124
|
+
border: 1px solid var(--spbSky2);
|
|
125
|
+
color: var(--content);
|
|
132
126
|
background-color: transparent;
|
|
133
127
|
}
|
|
134
128
|
.mfui-text-field_theme_default .mfui-text-field__field-wrapper_no-touch:hover .mfui-text-field__field,
|
|
135
129
|
.mfui-text-field_theme_default .mfui-text-field__field:focus {
|
|
136
|
-
border-color:
|
|
130
|
+
border-color: var(--content);
|
|
137
131
|
}
|
|
138
132
|
.mfui-text-field_theme_default.mfui-text-field_valid .mfui-text-field__field-wrapper_no-touch:hover .mfui-text-field__field,
|
|
139
133
|
.mfui-text-field_theme_default.mfui-text-field_valid .mfui-text-field__field {
|
|
140
|
-
border-color:
|
|
134
|
+
border-color: var(--brandGreen);
|
|
141
135
|
}
|
|
142
136
|
.mfui-text-field_theme_default.mfui-text-field_valid .mfui-text-field__icon {
|
|
143
|
-
fill:
|
|
137
|
+
fill: var(--brandGreen);
|
|
144
138
|
}
|
|
145
139
|
.mfui-text-field_theme_default.mfui-text-field_error .mfui-text-field__field-wrapper:hover .mfui-text-field__field,
|
|
146
140
|
.mfui-text-field_theme_default.mfui-text-field_error .mfui-text-field__field {
|
|
147
|
-
border-color:
|
|
141
|
+
border-color: var(--fury);
|
|
148
142
|
}
|
|
149
143
|
.mfui-text-field_theme_default.mfui-text-field_error .mfui-text-field__icon {
|
|
150
|
-
fill:
|
|
144
|
+
fill: var(--fury);
|
|
151
145
|
}
|
|
152
146
|
.mfui-text-field_theme_default.mfui-text-field_error .mfui-text-field__text_error {
|
|
153
|
-
color:
|
|
147
|
+
color: var(--fury);
|
|
154
148
|
}
|
|
155
149
|
.mfui-text-field_theme_white .mfui-text-field__field {
|
|
156
|
-
border: 1px solid
|
|
157
|
-
color:
|
|
150
|
+
border: 1px solid var(--base);
|
|
151
|
+
color: var(--content);
|
|
158
152
|
}
|
|
159
153
|
.mfui-text-field_theme_white .mfui-text-field__field-wrapper:hover .mfui-text-field__field,
|
|
160
154
|
.mfui-text-field_theme_white .mfui-text-field__field:focus {
|
|
161
|
-
border-color:
|
|
155
|
+
border-color: var(--content);
|
|
162
156
|
}
|
|
163
157
|
.mfui-text-field_theme_white.mfui-text-field_error .mfui-text-field__field-wrapper:hover .mfui-text-field__field,
|
|
164
158
|
.mfui-text-field_theme_white.mfui-text-field_error .mfui-text-field__field {
|
|
165
|
-
border-color:
|
|
159
|
+
border-color: var(--fury);
|
|
166
160
|
}
|
|
167
161
|
.mfui-text-field_theme_white.mfui-text-field_error .mfui-text-field__icon {
|
|
168
|
-
fill:
|
|
162
|
+
fill: var(--fury);
|
|
169
163
|
}
|
|
170
164
|
.mfui-text-field_theme_white.mfui-text-field_error .mfui-text-field__text_error {
|
|
171
|
-
color:
|
|
165
|
+
color: var(--fury);
|
|
172
166
|
}
|
|
173
167
|
.mfui-text-field__text_success {
|
|
174
|
-
color:
|
|
168
|
+
color: var(--brandGreen);
|
|
175
169
|
}
|
|
176
170
|
.mfui-text-field_disabled .mfui-text-field__field-wrapper {
|
|
177
|
-
background-color:
|
|
171
|
+
background-color: var(--spbSky1) !important;
|
|
178
172
|
}
|
|
179
173
|
.mfui-text-field_disabled .mfui-text-field__field {
|
|
180
|
-
border-color:
|
|
181
|
-
color:
|
|
174
|
+
border-color: var(--spbSky1) !important;
|
|
175
|
+
color: var(--content) !important;
|
|
182
176
|
cursor: default !important;
|
|
183
|
-
-webkit-text-fill-color:
|
|
177
|
+
-webkit-text-fill-color: var(--content) !important;
|
|
184
178
|
}
|
|
185
179
|
.mfui-text-field_disabled .mfui-text-field__icon-box {
|
|
186
180
|
cursor: default !important;
|