@zesty-io/material 0.6.4 → 0.6.6
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/es/LegacyTheme/index.d.ts +1 -1
- package/es/LegacyTheme/index.js +28 -9
- package/es/theme/index.js +25 -0
- package/es/theme/palette.d.ts +2 -0
- package/es/theme/palette.js +22 -10
- package/package.json +1 -1
package/es/LegacyTheme/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// No checking legacy theme to not have conflicting module augmentation
|
|
2
2
|
// @ts-nocheck
|
|
3
|
-
import palette from
|
|
4
|
-
import typography from
|
|
5
|
-
import { createTheme } from
|
|
3
|
+
import palette from "./palette";
|
|
4
|
+
import typography from "./typography";
|
|
5
|
+
import { createTheme } from "@mui/material/styles";
|
|
6
6
|
let theme = createTheme({
|
|
7
7
|
palette,
|
|
8
8
|
typography,
|
|
@@ -12,14 +12,14 @@ theme = createTheme(theme, {
|
|
|
12
12
|
MuiAccordionSummary: {
|
|
13
13
|
styleOverrides: {
|
|
14
14
|
root: {
|
|
15
|
-
backgroundColor:
|
|
15
|
+
backgroundColor: "#e4e9f1",
|
|
16
16
|
},
|
|
17
17
|
},
|
|
18
18
|
},
|
|
19
19
|
MuiButton: {
|
|
20
20
|
styleOverrides: {
|
|
21
21
|
root: {
|
|
22
|
-
minWidth:
|
|
22
|
+
minWidth: "auto",
|
|
23
23
|
},
|
|
24
24
|
},
|
|
25
25
|
},
|
|
@@ -28,8 +28,8 @@ theme = createTheme(theme, {
|
|
|
28
28
|
tooltip: {
|
|
29
29
|
color: theme.palette.primary.contrastText,
|
|
30
30
|
backgroundColor: theme.palette.primary.main,
|
|
31
|
-
fontSize:
|
|
32
|
-
lineHeight:
|
|
31
|
+
fontSize: "14px",
|
|
32
|
+
lineHeight: "20px",
|
|
33
33
|
},
|
|
34
34
|
arrow: {
|
|
35
35
|
color: theme.palette.primary.main,
|
|
@@ -56,14 +56,14 @@ theme = createTheme(theme, {
|
|
|
56
56
|
MuiCard: {
|
|
57
57
|
styleOverrides: {
|
|
58
58
|
root: {
|
|
59
|
-
overflow:
|
|
59
|
+
overflow: "visible",
|
|
60
60
|
},
|
|
61
61
|
},
|
|
62
62
|
},
|
|
63
63
|
MuiCardHeader: {
|
|
64
64
|
styleOverrides: {
|
|
65
65
|
root: {
|
|
66
|
-
backgroundColor:
|
|
66
|
+
backgroundColor: "#e4e9f1",
|
|
67
67
|
},
|
|
68
68
|
},
|
|
69
69
|
},
|
|
@@ -78,6 +78,25 @@ theme = createTheme(theme, {
|
|
|
78
78
|
}),
|
|
79
79
|
},
|
|
80
80
|
},
|
|
81
|
+
MuiCssBaseline: {
|
|
82
|
+
styleOverrides: {
|
|
83
|
+
body: {
|
|
84
|
+
boxSizing: "content-box",
|
|
85
|
+
"&::-webkit-scrollbar, & *::-webkit-scrollbar": {
|
|
86
|
+
width: "8px",
|
|
87
|
+
height: "8px",
|
|
88
|
+
},
|
|
89
|
+
"&::-webkit-scrollbar-track-piece, & *::-webkit-scrollbar-track-piece": {
|
|
90
|
+
backgroundColor: "#f2f4f7",
|
|
91
|
+
borderRadius: "4px",
|
|
92
|
+
},
|
|
93
|
+
"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb": {
|
|
94
|
+
backgroundColor: "#d0d5dd",
|
|
95
|
+
borderRadius: "4px",
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
},
|
|
81
100
|
},
|
|
82
101
|
});
|
|
83
102
|
export default theme;
|
package/es/theme/index.js
CHANGED
|
@@ -417,6 +417,31 @@ theme = createTheme(theme, {
|
|
|
417
417
|
},
|
|
418
418
|
},
|
|
419
419
|
},
|
|
420
|
+
MuiCssBaseline: {
|
|
421
|
+
styleOverrides: {
|
|
422
|
+
body: {
|
|
423
|
+
"&::-webkit-scrollbar, & *::-webkit-scrollbar": {
|
|
424
|
+
width: "8px",
|
|
425
|
+
height: "8px",
|
|
426
|
+
},
|
|
427
|
+
"&::-webkit-scrollbar-track-piece, & *::-webkit-scrollbar-track-piece": {
|
|
428
|
+
backgroundColor: theme.palette.grey[100],
|
|
429
|
+
borderRadius: "4px",
|
|
430
|
+
},
|
|
431
|
+
"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb": {
|
|
432
|
+
backgroundColor: theme.palette.grey[300],
|
|
433
|
+
borderRadius: "4px",
|
|
434
|
+
},
|
|
435
|
+
},
|
|
436
|
+
},
|
|
437
|
+
},
|
|
438
|
+
MuiDivider: {
|
|
439
|
+
styleOverrides: {
|
|
440
|
+
root: {
|
|
441
|
+
borderColor: theme.palette.border
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
420
445
|
},
|
|
421
446
|
});
|
|
422
447
|
export default theme;
|
package/es/theme/palette.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ declare module '@mui/material/styles' {
|
|
|
9
9
|
blue: Color;
|
|
10
10
|
green: Color;
|
|
11
11
|
purple: Color;
|
|
12
|
+
yellow: Color;
|
|
12
13
|
}
|
|
13
14
|
interface PaletteOptions {
|
|
14
15
|
red?: Partial<Color>;
|
|
@@ -18,6 +19,7 @@ declare module '@mui/material/styles' {
|
|
|
18
19
|
blue?: Partial<Color>;
|
|
19
20
|
green?: Partial<Color>;
|
|
20
21
|
purple?: Partial<Color>;
|
|
22
|
+
yellow?: Partial<Color>;
|
|
21
23
|
border?: string;
|
|
22
24
|
}
|
|
23
25
|
}
|
package/es/theme/palette.js
CHANGED
|
@@ -115,16 +115,28 @@ const palette = {
|
|
|
115
115
|
900: '#054F31',
|
|
116
116
|
},
|
|
117
117
|
purple: {
|
|
118
|
-
50: '#
|
|
119
|
-
100: '#
|
|
120
|
-
200: '#
|
|
121
|
-
300: '#
|
|
122
|
-
400: '#
|
|
123
|
-
500: '#
|
|
124
|
-
600: '#
|
|
125
|
-
700: '#
|
|
126
|
-
800: '#
|
|
127
|
-
900: '#
|
|
118
|
+
50: '#F4F3FF',
|
|
119
|
+
100: '#EBE9FE',
|
|
120
|
+
200: '#D9D6FE',
|
|
121
|
+
300: '#BDB4FE',
|
|
122
|
+
400: '#9B8AFB',
|
|
123
|
+
500: '#7A5AF8',
|
|
124
|
+
600: '#6938EF',
|
|
125
|
+
700: '#5925DC',
|
|
126
|
+
800: '#4A1FB8',
|
|
127
|
+
900: '#3E1C96',
|
|
128
|
+
},
|
|
129
|
+
yellow: {
|
|
130
|
+
50: '#FFFCF5',
|
|
131
|
+
100: '#FEF0C7',
|
|
132
|
+
200: '#FEDF89',
|
|
133
|
+
300: '#FEC84B',
|
|
134
|
+
400: '#FDB022',
|
|
135
|
+
500: '#F79009',
|
|
136
|
+
600: '#DC6803',
|
|
137
|
+
700: '#B54708',
|
|
138
|
+
800: '#93370D',
|
|
139
|
+
900: '#7A2E0E',
|
|
128
140
|
},
|
|
129
141
|
border: "#F2F4F7",
|
|
130
142
|
action: {
|