@megafon/ui-core 2.1.2 → 3.0.0-beta.0
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 +50 -0
- package/dist/es/colors/ColorItem/ColorItem.css +48 -1
- package/dist/es/colors/Colors.css +54 -7
- package/dist/es/colors/Colors.js +2 -2
- package/dist/es/colors/colorsData.js +24 -8
- package/dist/es/components/Accordion/Accordion.css +53 -5
- package/dist/es/components/Banner/Banner.css +49 -2
- package/dist/es/components/Banner/BannerDot.css +51 -4
- package/dist/es/components/Button/Button.css +124 -67
- package/dist/es/components/Calendar/Calendar.css +47 -0
- package/dist/es/components/Calendar/components/Day/Day.css +57 -10
- package/dist/es/components/Calendar/components/Month/Month.css +50 -3
- package/dist/es/components/Carousel/Carousel.css +51 -4
- package/dist/es/components/Checkbox/Checkbox.css +65 -18
- package/dist/es/components/ContentArea/ContentArea.css +63 -20
- package/dist/es/components/ContentArea/ContentArea.d.ts +3 -2
- package/dist/es/components/ContentArea/ContentArea.js +13 -6
- 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 +47 -0
- package/dist/es/components/Header/Header.css +55 -5
- 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 +47 -0
- package/dist/es/components/List/List.css +56 -6
- 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 +47 -0
- package/dist/es/components/Logo/Logo.css +47 -0
- package/dist/es/components/Logo/Logo.js +4 -8
- package/dist/es/components/NavArrow/NavArrow.css +52 -5
- package/dist/es/components/Notification/Notification.css +88 -24
- package/dist/es/components/Pagination/Pagination.css +47 -0
- 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 +54 -10
- 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 +52 -5
- package/dist/es/components/RadioButton/RadioButton.css +54 -7
- 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 +67 -18
- package/dist/es/components/Select/Select.css +76 -28
- package/dist/es/components/Switcher/Switcher.css +65 -21
- package/dist/es/components/Tabs/Tabs.css +77 -30
- package/dist/es/components/Tabs/Tabs.js +41 -32
- package/dist/es/components/TextField/TextField.css +74 -26
- package/dist/es/components/TextLink/TextLink.css +57 -7
- 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 +49 -1
- package/dist/es/components/Tooltip/Tooltip.css +48 -1
- package/dist/es/styles/base.css +54 -0
- package/dist/lib/colors/ColorItem/ColorItem.css +48 -1
- package/dist/lib/colors/Colors.css +54 -7
- package/dist/lib/colors/Colors.js +2 -2
- package/dist/lib/colors/colorsData.js +24 -8
- package/dist/lib/components/Accordion/Accordion.css +53 -5
- package/dist/lib/components/Banner/Banner.css +49 -2
- package/dist/lib/components/Banner/BannerDot.css +51 -4
- package/dist/lib/components/Button/Button.css +124 -67
- package/dist/lib/components/Calendar/Calendar.css +47 -0
- package/dist/lib/components/Calendar/components/Day/Day.css +57 -10
- package/dist/lib/components/Calendar/components/Month/Month.css +50 -3
- package/dist/lib/components/Carousel/Carousel.css +51 -4
- package/dist/lib/components/Checkbox/Checkbox.css +65 -18
- package/dist/lib/components/ContentArea/ContentArea.css +63 -20
- package/dist/lib/components/ContentArea/ContentArea.d.ts +3 -2
- package/dist/lib/components/ContentArea/ContentArea.js +13 -6
- 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 +47 -0
- package/dist/lib/components/Header/Header.css +55 -5
- 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 +47 -0
- package/dist/lib/components/List/List.css +56 -6
- 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 +47 -0
- package/dist/lib/components/Logo/Logo.css +47 -0
- package/dist/lib/components/Logo/Logo.js +4 -8
- package/dist/lib/components/NavArrow/NavArrow.css +52 -5
- package/dist/lib/components/Notification/Notification.css +88 -24
- package/dist/lib/components/Pagination/Pagination.css +47 -0
- 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 +54 -10
- 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 +52 -5
- package/dist/lib/components/RadioButton/RadioButton.css +54 -7
- 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 +67 -18
- package/dist/lib/components/Select/Select.css +76 -28
- package/dist/lib/components/Switcher/Switcher.css +65 -21
- package/dist/lib/components/Tabs/Tabs.css +77 -30
- package/dist/lib/components/Tabs/Tabs.js +41 -32
- package/dist/lib/components/TextField/TextField.css +74 -26
- package/dist/lib/components/TextLink/TextLink.css +57 -7
- 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 +49 -1
- package/dist/lib/components/Tooltip/Tooltip.css +48 -1
- package/dist/lib/styles/base.css +54 -0
- package/package.json +4 -4
- package/styles/base.less +61 -75
|
@@ -1,3 +1,50 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--green: #00B956;
|
|
3
|
+
--purple: #731982;
|
|
4
|
+
--base: #FFFFFF;
|
|
5
|
+
--content: #333333;
|
|
6
|
+
--spbSky0: #F6F6F6;
|
|
7
|
+
--spbSky1: #EDEDED;
|
|
8
|
+
--spbSky2: #D8D8D8;
|
|
9
|
+
--spbSky3: #999999;
|
|
10
|
+
--warmRedC: #EB5A40;
|
|
11
|
+
--137C: #FFA717;
|
|
12
|
+
--311C: #5BD9E5;
|
|
13
|
+
--reflexBlue: #444189;
|
|
14
|
+
--fury: #F62434;
|
|
15
|
+
--systemBlue: #34AAF2;
|
|
16
|
+
--background: #FFFFFF;
|
|
17
|
+
--buttonHoverGreen: #10E272;
|
|
18
|
+
--buttonhoverPurple: #534455;
|
|
19
|
+
--buttonDown: #404D46;
|
|
20
|
+
--gradientBasic: linear-gradient(90deg, #01873F 0%, #00B956 74%, #14CD6A 100%);
|
|
21
|
+
--gradientVIP: linear-gradient(90deg, #5B1168 0%, #731982 74%, #821E93 100%);
|
|
22
|
+
--gradientExclusive: linear-gradient(90deg, #2A2674 0%, #444189 74%, #504D93 100%);
|
|
23
|
+
--STCWhite: #FFFFFF;
|
|
24
|
+
--STCBlack: #333333;
|
|
25
|
+
--STCWhite5: #FFFFFF0D;
|
|
26
|
+
--STCWhite10: #FFFFFF1A;
|
|
27
|
+
--STCWhite20: #FFFFFF33;
|
|
28
|
+
--STCWhite50: #FFFFFF80;
|
|
29
|
+
--STCBlack5: #3333330D;
|
|
30
|
+
--STCBlack10: #3333331A;
|
|
31
|
+
--STCBlack20: #33333333;
|
|
32
|
+
--STCBlack50: #33333380;
|
|
33
|
+
--green80: #0CDC78;
|
|
34
|
+
--green20: #DDFFEC;
|
|
35
|
+
--purple80: #AA67C1;
|
|
36
|
+
--purple20: #FFEEFF;
|
|
37
|
+
--warmRedC80: #FF765D;
|
|
38
|
+
--warmRedC20: #FFCFC7;
|
|
39
|
+
--137C80: #FFB945;
|
|
40
|
+
--137C20: #FFEDD1;
|
|
41
|
+
--311C80: #62E3FF;
|
|
42
|
+
--311C20: #E1FAFF;
|
|
43
|
+
--reflexBlue80: #554FC9;
|
|
44
|
+
--reflexBlue20: #EBEAFF;
|
|
45
|
+
--fury80: #F8505D;
|
|
46
|
+
--fury20: #FFC5C9;
|
|
47
|
+
}
|
|
1
48
|
h1,
|
|
2
49
|
h2,
|
|
3
50
|
h3,
|
|
@@ -48,7 +95,7 @@ h5 {
|
|
|
48
95
|
left: 0;
|
|
49
96
|
-webkit-transform: rotate(45deg);
|
|
50
97
|
transform: rotate(45deg);
|
|
51
|
-
background-color:
|
|
98
|
+
background-color: var(--base);
|
|
52
99
|
}
|
|
53
100
|
.mfui-tooltip__arrow-shadow {
|
|
54
101
|
width: 12px;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--green: #00B956;
|
|
3
|
+
--purple: #731982;
|
|
4
|
+
--base: #FFFFFF;
|
|
5
|
+
--content: #333333;
|
|
6
|
+
--spbSky0: #F6F6F6;
|
|
7
|
+
--spbSky1: #EDEDED;
|
|
8
|
+
--spbSky2: #D8D8D8;
|
|
9
|
+
--spbSky3: #999999;
|
|
10
|
+
--warmRedC: #EB5A40;
|
|
11
|
+
--137C: #FFA717;
|
|
12
|
+
--311C: #5BD9E5;
|
|
13
|
+
--reflexBlue: #444189;
|
|
14
|
+
--fury: #F62434;
|
|
15
|
+
--systemBlue: #34AAF2;
|
|
16
|
+
--background: #FFFFFF;
|
|
17
|
+
--buttonHoverGreen: #10E272;
|
|
18
|
+
--buttonhoverPurple: #534455;
|
|
19
|
+
--buttonDown: #404D46;
|
|
20
|
+
--gradientBasic: linear-gradient(90deg, #01873F 0%, #00B956 74%, #14CD6A 100%);
|
|
21
|
+
--gradientVIP: linear-gradient(90deg, #5B1168 0%, #731982 74%, #821E93 100%);
|
|
22
|
+
--gradientExclusive: linear-gradient(90deg, #2A2674 0%, #444189 74%, #504D93 100%);
|
|
23
|
+
--STCWhite: #FFFFFF;
|
|
24
|
+
--STCBlack: #333333;
|
|
25
|
+
--STCWhite5: #FFFFFF0D;
|
|
26
|
+
--STCWhite10: #FFFFFF1A;
|
|
27
|
+
--STCWhite20: #FFFFFF33;
|
|
28
|
+
--STCWhite50: #FFFFFF80;
|
|
29
|
+
--STCBlack5: #3333330D;
|
|
30
|
+
--STCBlack10: #3333331A;
|
|
31
|
+
--STCBlack20: #33333333;
|
|
32
|
+
--STCBlack50: #33333380;
|
|
33
|
+
--green80: #0CDC78;
|
|
34
|
+
--green20: #DDFFEC;
|
|
35
|
+
--purple80: #AA67C1;
|
|
36
|
+
--purple20: #FFEEFF;
|
|
37
|
+
--warmRedC80: #FF765D;
|
|
38
|
+
--warmRedC20: #FFCFC7;
|
|
39
|
+
--137C80: #FFB945;
|
|
40
|
+
--137C20: #FFEDD1;
|
|
41
|
+
--311C80: #62E3FF;
|
|
42
|
+
--311C20: #E1FAFF;
|
|
43
|
+
--reflexBlue80: #554FC9;
|
|
44
|
+
--reflexBlue20: #EBEAFF;
|
|
45
|
+
--fury80: #F8505D;
|
|
46
|
+
--fury20: #FFC5C9;
|
|
47
|
+
}
|
|
48
|
+
h1,
|
|
49
|
+
h2,
|
|
50
|
+
h3,
|
|
51
|
+
h4,
|
|
52
|
+
h5 {
|
|
53
|
+
margin: 0;
|
|
54
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@megafon/ui-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-beta.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist",
|
|
6
6
|
"styles"
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@babel/preset-env": "^7.8.6",
|
|
54
54
|
"@babel/preset-react": "^7.8.3",
|
|
55
55
|
"@babel/preset-typescript": "^7.8.3",
|
|
56
|
-
"@megafon/ui-icons": "^0.
|
|
56
|
+
"@megafon/ui-icons": "^1.0.0-beta.0",
|
|
57
57
|
"@svgr/core": "^2.4.1",
|
|
58
58
|
"@testing-library/react-hooks": "^7.0.1",
|
|
59
59
|
"@types/enzyme": "^3.10.5",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"dependencies": {
|
|
86
86
|
"@babel/runtime": "^7.8.4",
|
|
87
87
|
"@datepicker-react/hooks": "^2.7.0",
|
|
88
|
-
"@megafon/ui-helpers": "^
|
|
88
|
+
"@megafon/ui-helpers": "^2.0.0-beta.0",
|
|
89
89
|
"@popperjs/core": "^2.5.3",
|
|
90
90
|
"core-js": "^3.6.4",
|
|
91
91
|
"date-fns": "^2.16.1",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"react-popper": "^2.2.3",
|
|
97
97
|
"swiper": "^6.5.6"
|
|
98
98
|
},
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "42f072baa654d12403f32bb734d406595cf8d5ac"
|
|
100
100
|
}
|
package/styles/base.less
CHANGED
|
@@ -1,77 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
// Secondary Colors
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
// System Colors
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
@buttonhoverPurple: #534455;
|
|
62
|
-
@buttonDown: #404D46;
|
|
63
|
-
|
|
64
|
-
// Notification Colors
|
|
65
|
-
// TODO: будут отрефакторены после обновления дизайном Notification по новой палитре
|
|
66
|
-
@error: #FFC4C9;
|
|
67
|
-
@spbSky160: fade(@spbSky1, 60);
|
|
68
|
-
@base30: fade(@base, 30);
|
|
69
|
-
|
|
70
|
-
// Additional Colors Variants
|
|
71
|
-
@content25: fade(@content, 25);
|
|
72
|
-
@fullBlack25: fade(@fullBlack, 25);
|
|
73
|
-
@fullBlack50: fade(@fullBlack, 50);
|
|
74
|
-
@contentLighten50: lighten(@content, 50);
|
|
1
|
+
:root {
|
|
2
|
+
// Basic Colors
|
|
3
|
+
--green: #00B956;
|
|
4
|
+
--purple: #731982;
|
|
5
|
+
--base: #FFFFFF;
|
|
6
|
+
--content: #333333;
|
|
7
|
+
--spbSky0: #F6F6F6;
|
|
8
|
+
--spbSky1: #EDEDED;
|
|
9
|
+
--spbSky2: #D8D8D8;
|
|
10
|
+
--spbSky3: #999999;
|
|
11
|
+
|
|
12
|
+
// Secondary Colors
|
|
13
|
+
--warmRedC: #EB5A40;
|
|
14
|
+
--137C: #FFA717;
|
|
15
|
+
--311C: #5BD9E5;
|
|
16
|
+
--reflexBlue: #444189;
|
|
17
|
+
|
|
18
|
+
// System Colors
|
|
19
|
+
--fury: #F62434;
|
|
20
|
+
--systemBlue: #34AAF2;
|
|
21
|
+
--background: #FFFFFF;
|
|
22
|
+
--buttonHoverGreen: #10E272;
|
|
23
|
+
--buttonhoverPurple: #534455;
|
|
24
|
+
--buttonDown: #404D46;
|
|
25
|
+
|
|
26
|
+
// Gradients
|
|
27
|
+
--gradientBasic: linear-gradient(90deg, #01873F 0%, #00B956 74%, #14CD6A 100%);
|
|
28
|
+
--gradientVIP: linear-gradient(90deg, #5B1168 0%, #731982 74%, #821E93 100%);
|
|
29
|
+
--gradientExclusive: linear-gradient(90deg, #2A2674 0%, #444189 74%, #504D93 100%);
|
|
30
|
+
|
|
31
|
+
// Static
|
|
32
|
+
--STCWhite: #FFFFFF;
|
|
33
|
+
--STCBlack: #333333;
|
|
34
|
+
|
|
35
|
+
// Static Opacity
|
|
36
|
+
--STCWhite5: #FFFFFF0D;
|
|
37
|
+
--STCWhite10: #FFFFFF1A;
|
|
38
|
+
--STCWhite20: #FFFFFF33;
|
|
39
|
+
--STCWhite50: #FFFFFF80;
|
|
40
|
+
--STCBlack5: #3333330D;
|
|
41
|
+
--STCBlack10: #3333331A;
|
|
42
|
+
--STCBlack20: #33333333;
|
|
43
|
+
--STCBlack50: #33333380;
|
|
44
|
+
|
|
45
|
+
// Soft (new)
|
|
46
|
+
--green80: #0CDC78;
|
|
47
|
+
--green20: #DDFFEC;
|
|
48
|
+
--purple80: #AA67C1;
|
|
49
|
+
--purple20: #FFEEFF;
|
|
50
|
+
--warmRedC80: #FF765D;
|
|
51
|
+
--warmRedC20: #FFCFC7;
|
|
52
|
+
--137C80: #FFB945;
|
|
53
|
+
--137C20: #FFEDD1;
|
|
54
|
+
--311C80: #62E3FF;
|
|
55
|
+
--311C20: #E1FAFF;
|
|
56
|
+
--reflexBlue80: #554FC9;
|
|
57
|
+
--reflexBlue20: #EBEAFF;
|
|
58
|
+
--fury80: #F8505D;
|
|
59
|
+
--fury20: #FFC5C9;
|
|
60
|
+
}
|
|
75
61
|
|
|
76
62
|
// BREAKPOINTS
|
|
77
63
|
@mobileSmallEnd: 479px;
|
|
@@ -229,7 +215,7 @@ h5 {
|
|
|
229
215
|
}
|
|
230
216
|
|
|
231
217
|
.link() {
|
|
232
|
-
color:
|
|
218
|
+
color: var(--systemBlue);
|
|
233
219
|
text-decoration: none;
|
|
234
220
|
|
|
235
221
|
&:hover {
|