@zesty-io/material 0.6.6 → 0.9.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/es/FieldTypeText/index.d.ts +6 -6
- package/es/FieldTypeText/index.js +14 -4
- package/es/IconButton/IconButton.stories.d.ts +5 -0
- package/es/IconButton/IconButton.stories.js +11 -0
- package/es/IconButton/index.d.ts +32 -0
- package/es/IconButton/index.js +15 -0
- package/es/LegacyTheme/index.d.ts +1 -2
- package/es/LegacyTheme/index.js +55 -11
- package/es/LegacyTheme/palette.d.ts +1 -1
- package/es/LegacyTheme/palette.js +10 -10
- package/es/icons/Home.d.ts +3 -0
- package/es/icons/Home.js +3 -0
- package/es/icons/index.d.ts +1 -0
- package/es/icons/index.js +1 -0
- package/es/index.d.ts +16 -15
- package/es/index.js +16 -15
- package/es/theme/Theme.stories.d.ts +3 -2
- package/es/theme/Theme.stories.js +10 -6
- package/es/theme/index.d.ts +13 -3
- package/es/theme/index.js +448 -361
- package/es/theme/palette.d.ts +42 -5
- package/es/theme/palette.js +85 -68
- package/package.json +1 -1
package/es/theme/index.js
CHANGED
|
@@ -1,447 +1,534 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { lightThemePalette, darkThemePalette } from "./palette";
|
|
2
2
|
import typography from "./typography";
|
|
3
3
|
import { alpha, createTheme } from "@mui/material/styles";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
})
|
|
8
|
-
theme
|
|
9
|
-
|
|
10
|
-
MuiFormLabel: {
|
|
11
|
-
styleOverrides: {
|
|
12
|
-
root: {
|
|
13
|
-
...theme.typography.body2,
|
|
14
|
-
},
|
|
15
|
-
},
|
|
4
|
+
const components = {
|
|
5
|
+
MuiFormLabel: {
|
|
6
|
+
styleOverrides: {
|
|
7
|
+
root: ({ theme }) => ({
|
|
8
|
+
...theme.typography.body2,
|
|
9
|
+
}),
|
|
16
10
|
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
11
|
+
},
|
|
12
|
+
MuiTab: {
|
|
13
|
+
styleOverrides: {
|
|
14
|
+
root: ({ theme }) => ({
|
|
15
|
+
padding: "8px",
|
|
16
|
+
margin: "8px",
|
|
17
|
+
borderRadius: "8px",
|
|
18
|
+
minHeight: "unset",
|
|
19
|
+
minWidth: "unset",
|
|
20
|
+
textTransform: "none",
|
|
21
|
+
"&:hover": {
|
|
22
|
+
backgroundColor: theme.palette.grey[100],
|
|
23
|
+
},
|
|
24
|
+
"&.Mui-selected": {
|
|
26
25
|
"&:hover": {
|
|
27
|
-
backgroundColor: theme.palette.
|
|
28
|
-
},
|
|
29
|
-
"&.Mui-selected": {
|
|
30
|
-
"&:hover": {
|
|
31
|
-
backgroundColor: theme.palette.deepOrange[50],
|
|
32
|
-
},
|
|
26
|
+
backgroundColor: theme.palette.deepOrange[50],
|
|
33
27
|
},
|
|
34
28
|
},
|
|
35
|
-
},
|
|
29
|
+
}),
|
|
36
30
|
},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
31
|
+
},
|
|
32
|
+
MuiCardHeader: {
|
|
33
|
+
styleOverrides: {
|
|
34
|
+
root: {
|
|
35
|
+
padding: "16px 16px 0px",
|
|
42
36
|
},
|
|
43
37
|
},
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
38
|
+
},
|
|
39
|
+
MuiCardContent: {
|
|
40
|
+
styleOverrides: {
|
|
41
|
+
root: {
|
|
42
|
+
padding: "8px 16px 16px",
|
|
43
|
+
":last-child": {
|
|
44
|
+
paddingBottom: "16px",
|
|
51
45
|
},
|
|
52
46
|
},
|
|
53
47
|
},
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
48
|
+
},
|
|
49
|
+
MuiButton: {
|
|
50
|
+
variants: [
|
|
51
|
+
{
|
|
52
|
+
props: { size: "xsmall" },
|
|
53
|
+
style: {
|
|
54
|
+
padding: "2px 10px",
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
styleOverrides: {
|
|
59
|
+
root: {
|
|
60
|
+
textTransform: "none",
|
|
61
|
+
},
|
|
62
|
+
sizeSmall: {
|
|
63
|
+
fontSize: "14px",
|
|
64
|
+
},
|
|
65
|
+
outlinedInherit: ({ theme }) => ({
|
|
66
|
+
color: theme.palette.text.secondary,
|
|
67
|
+
borderColor: theme.palette.border,
|
|
68
|
+
}),
|
|
69
|
+
containedInherit: ({ theme }) => ({
|
|
70
|
+
color: theme.palette.text.secondary,
|
|
71
|
+
backgroundColor: theme.palette.grey[100],
|
|
72
|
+
}),
|
|
73
|
+
textInherit: ({ theme }) => ({
|
|
74
|
+
color: theme.palette.text.secondary,
|
|
75
|
+
}),
|
|
76
|
+
},
|
|
77
|
+
defaultProps: {
|
|
78
|
+
disableElevation: true,
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
MuiButtonGroup: {
|
|
82
|
+
defaultProps: {
|
|
83
|
+
disableElevation: true,
|
|
84
|
+
},
|
|
85
|
+
styleOverrides: {
|
|
86
|
+
groupedContained: ({ theme }) => ({
|
|
87
|
+
color: theme.palette.primary.main,
|
|
88
|
+
backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.hoverOpacity),
|
|
89
|
+
"&:hover": {
|
|
90
|
+
backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
|
|
66
91
|
},
|
|
67
|
-
|
|
68
|
-
|
|
92
|
+
}),
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
MuiOutlinedInput: {
|
|
96
|
+
styleOverrides: {
|
|
97
|
+
root: ({ theme }) => ({
|
|
98
|
+
padding: "0px 8px",
|
|
99
|
+
borderRadius: "8px",
|
|
100
|
+
backgroundColor: theme.palette.background.paper,
|
|
101
|
+
"&.Mui-disabled .MuiOutlinedInput-notchedOutline": {
|
|
102
|
+
borderColor: theme.palette.border,
|
|
69
103
|
},
|
|
70
|
-
|
|
71
|
-
color: theme.palette.text.secondary,
|
|
104
|
+
"&:hover .MuiOutlinedInput-notchedOutline": {
|
|
72
105
|
borderColor: theme.palette.border,
|
|
73
106
|
},
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
backgroundColor: theme.palette.grey[100],
|
|
107
|
+
"&.Mui-focused:hover .MuiOutlinedInput-notchedOutline": {
|
|
108
|
+
borderColor: theme.palette.primary.main,
|
|
77
109
|
},
|
|
78
|
-
|
|
79
|
-
color: theme.palette.
|
|
110
|
+
"&.MuiInputBase-adornedStart .MuiInputAdornment-root": {
|
|
111
|
+
color: theme.palette.action.active,
|
|
80
112
|
},
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
MuiButtonGroup: {
|
|
87
|
-
defaultProps: {
|
|
88
|
-
disableElevation: true,
|
|
89
|
-
},
|
|
90
|
-
styleOverrides: {
|
|
91
|
-
groupedContained: {
|
|
92
|
-
color: theme.palette.primary.main,
|
|
93
|
-
backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.hoverOpacity),
|
|
94
|
-
"&:hover": {
|
|
95
|
-
backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
|
|
96
|
-
},
|
|
113
|
+
}),
|
|
114
|
+
input: ({ theme }) => ({
|
|
115
|
+
padding: "10px 0px",
|
|
116
|
+
":read-only": {
|
|
117
|
+
color: theme.palette.text.secondary,
|
|
97
118
|
},
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
MuiOutlinedInput: {
|
|
101
|
-
styleOverrides: {
|
|
102
|
-
root: {
|
|
103
|
-
padding: "0px 8px",
|
|
104
|
-
borderRadius: "8px",
|
|
105
|
-
backgroundColor: theme.palette.common.white,
|
|
106
|
-
"&.Mui-disabled .MuiOutlinedInput-notchedOutline": {
|
|
107
|
-
borderColor: theme.palette.border,
|
|
108
|
-
},
|
|
109
|
-
"&:hover .MuiOutlinedInput-notchedOutline": {
|
|
110
|
-
borderColor: theme.palette.border,
|
|
111
|
-
},
|
|
112
|
-
"&.Mui-focused:hover .MuiOutlinedInput-notchedOutline": {
|
|
113
|
-
borderColor: theme.palette.primary.main,
|
|
114
|
-
},
|
|
119
|
+
"::placeholder": {
|
|
120
|
+
color: theme.palette.text.disabled,
|
|
115
121
|
},
|
|
122
|
+
}),
|
|
123
|
+
sizeSmall: {
|
|
116
124
|
input: {
|
|
117
|
-
padding: "
|
|
118
|
-
":read-only": {
|
|
119
|
-
color: theme.palette.text.secondary,
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
sizeSmall: {
|
|
123
|
-
input: {
|
|
124
|
-
padding: "8px 0px",
|
|
125
|
-
},
|
|
126
|
-
},
|
|
127
|
-
notchedOutline: {
|
|
128
|
-
borderColor: theme.palette.border,
|
|
125
|
+
padding: "8px 0px",
|
|
129
126
|
},
|
|
130
127
|
},
|
|
128
|
+
notchedOutline: ({ theme }) => ({
|
|
129
|
+
borderColor: theme.palette.border,
|
|
130
|
+
}),
|
|
131
131
|
},
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
},
|
|
132
|
+
},
|
|
133
|
+
MuiFormHelperText: {
|
|
134
|
+
styleOverrides: {
|
|
135
|
+
root: ({ theme }) => ({
|
|
136
|
+
...theme.typography.body2,
|
|
137
|
+
margin: "4px 0px 0px 0px",
|
|
138
|
+
}),
|
|
139
139
|
},
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
140
|
+
},
|
|
141
|
+
MuiInputBase: {
|
|
142
|
+
styleOverrides: {
|
|
143
|
+
input: ({ theme }) => ({
|
|
144
|
+
...theme.typography.body2,
|
|
145
|
+
"::placeholder": {
|
|
146
|
+
color: theme.palette.text.disabled,
|
|
147
|
+
opacity: 1,
|
|
148
148
|
},
|
|
149
|
-
},
|
|
149
|
+
}),
|
|
150
150
|
},
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
},
|
|
151
|
+
},
|
|
152
|
+
MuiInputLabel: {
|
|
153
|
+
styleOverrides: {
|
|
154
|
+
root: ({ theme }) => ({
|
|
155
|
+
...theme.typography.body2,
|
|
156
|
+
color: theme.palette.text.primary,
|
|
157
|
+
marginBottom: "4px",
|
|
158
|
+
fontWeight: 600,
|
|
159
|
+
}),
|
|
160
160
|
},
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
161
|
+
},
|
|
162
|
+
MuiInputAdornment: {
|
|
163
|
+
styleOverrides: {
|
|
164
|
+
root: {
|
|
165
|
+
"& > .MuiSvgIcon-root": {
|
|
166
|
+
margin: "4px",
|
|
167
167
|
},
|
|
168
168
|
},
|
|
169
169
|
},
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
170
|
+
},
|
|
171
|
+
MuiIconButton: {
|
|
172
|
+
styleOverrides: {
|
|
173
|
+
root: {
|
|
174
|
+
borderRadius: "4px",
|
|
175
175
|
},
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
styleOverrides: {
|
|
179
|
-
paper: {
|
|
180
|
-
borderRadius: "8px",
|
|
181
|
-
},
|
|
182
|
-
paperWidthXs: {
|
|
183
|
-
width: "480px",
|
|
184
|
-
maxWidth: "480px",
|
|
185
|
-
},
|
|
176
|
+
sizeSmall: {
|
|
177
|
+
padding: "4px",
|
|
186
178
|
},
|
|
187
179
|
},
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
180
|
+
variants: [
|
|
181
|
+
{
|
|
182
|
+
props: { size: "xsmall" },
|
|
183
|
+
style: {
|
|
184
|
+
width: "24px",
|
|
185
|
+
height: "24px",
|
|
186
|
+
padding: "3px",
|
|
194
187
|
},
|
|
195
188
|
},
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
},
|
|
203
|
-
dividers: {
|
|
204
|
-
borderColor: theme.palette.border,
|
|
189
|
+
{
|
|
190
|
+
props: { size: "xxsmall" },
|
|
191
|
+
style: {
|
|
192
|
+
width: "20px",
|
|
193
|
+
height: "20px",
|
|
194
|
+
padding: "2px",
|
|
205
195
|
},
|
|
206
196
|
},
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
197
|
+
],
|
|
198
|
+
},
|
|
199
|
+
MuiDialog: {
|
|
200
|
+
styleOverrides: {
|
|
201
|
+
paper: {
|
|
202
|
+
borderRadius: "8px",
|
|
213
203
|
},
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
root: {
|
|
218
|
-
padding: "20px",
|
|
219
|
-
paddingTop: 0,
|
|
220
|
-
},
|
|
204
|
+
paperWidthXs: {
|
|
205
|
+
width: "480px",
|
|
206
|
+
maxWidth: "480px",
|
|
221
207
|
},
|
|
222
208
|
},
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
},
|
|
209
|
+
},
|
|
210
|
+
MuiDialogTitle: {
|
|
211
|
+
styleOverrides: {
|
|
212
|
+
root: ({ theme }) => ({
|
|
213
|
+
...theme.typography.h5,
|
|
214
|
+
fontWeight: 600,
|
|
215
|
+
padding: "20px",
|
|
216
|
+
}),
|
|
232
217
|
},
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
218
|
+
},
|
|
219
|
+
MuiDialogContent: {
|
|
220
|
+
styleOverrides: {
|
|
221
|
+
root: {
|
|
222
|
+
padding: "20px",
|
|
223
|
+
paddingTop: 0,
|
|
238
224
|
},
|
|
225
|
+
dividers: ({ theme }) => ({
|
|
226
|
+
borderColor: theme.palette.border,
|
|
227
|
+
}),
|
|
239
228
|
},
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
},
|
|
247
|
-
},
|
|
229
|
+
},
|
|
230
|
+
MuiDialogContentText: {
|
|
231
|
+
styleOverrides: {
|
|
232
|
+
root: ({ theme }) => ({
|
|
233
|
+
...theme.typography.body2,
|
|
234
|
+
}),
|
|
248
235
|
},
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
236
|
+
},
|
|
237
|
+
MuiDialogActions: {
|
|
238
|
+
styleOverrides: {
|
|
239
|
+
root: {
|
|
240
|
+
padding: "20px",
|
|
241
|
+
paddingTop: 0,
|
|
254
242
|
},
|
|
255
243
|
},
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
backgroundColor: theme.palette.grey[200],
|
|
265
|
-
},
|
|
266
|
-
":focus": {
|
|
267
|
-
backgroundColor: theme.palette.grey[300],
|
|
268
|
-
},
|
|
269
|
-
},
|
|
244
|
+
},
|
|
245
|
+
MuiBackdrop: {
|
|
246
|
+
styleOverrides: {
|
|
247
|
+
root: ({ theme }) => ({
|
|
248
|
+
backgroundColor: alpha(theme.palette.grey[900], 0.5),
|
|
249
|
+
}),
|
|
250
|
+
invisible: {
|
|
251
|
+
backgroundColor: "transparent",
|
|
270
252
|
},
|
|
271
253
|
},
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
standardWarning: {
|
|
278
|
-
" .MuiAlert-icon": {
|
|
279
|
-
color: theme.palette.common.black,
|
|
280
|
-
},
|
|
281
|
-
},
|
|
282
|
-
standardInfo: {
|
|
283
|
-
backgroundColor: alpha(theme.palette.blue[500], 0.1),
|
|
284
|
-
" .MuiAlert-icon": {
|
|
285
|
-
color: theme.palette.info.main,
|
|
286
|
-
},
|
|
287
|
-
},
|
|
288
|
-
standardError: {
|
|
289
|
-
backgroundColor: alpha(theme.palette.error.main, 0.1),
|
|
290
|
-
" .MuiAlert-icon": {
|
|
291
|
-
color: theme.palette.error.main,
|
|
292
|
-
},
|
|
293
|
-
},
|
|
254
|
+
},
|
|
255
|
+
MuiMenu: {
|
|
256
|
+
styleOverrides: {
|
|
257
|
+
list: {
|
|
258
|
+
minWidth: "240px",
|
|
294
259
|
},
|
|
295
260
|
},
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
261
|
+
},
|
|
262
|
+
MuiAccordion: {
|
|
263
|
+
styleOverrides: {
|
|
264
|
+
root: ({ theme }) => ({
|
|
265
|
+
"&:before": {
|
|
266
|
+
backgroundColor: theme.palette.border,
|
|
301
267
|
},
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
268
|
+
}),
|
|
269
|
+
},
|
|
270
|
+
},
|
|
271
|
+
MuiSlider: {
|
|
272
|
+
styleOverrides: {
|
|
273
|
+
rail: ({ theme }) => ({
|
|
274
|
+
backgroundColor: theme.palette.grey[400],
|
|
275
|
+
}),
|
|
276
|
+
},
|
|
277
|
+
},
|
|
278
|
+
MuiChip: {
|
|
279
|
+
styleOverrides: {
|
|
280
|
+
root: {
|
|
281
|
+
borderRadius: "4px",
|
|
282
|
+
},
|
|
283
|
+
// @ts-ignore
|
|
284
|
+
colorDefault: ({ theme }) => ({
|
|
285
|
+
backgroundColor: theme.palette.grey[100],
|
|
286
|
+
":hover": {
|
|
287
|
+
backgroundColor: theme.palette.grey[200],
|
|
308
288
|
},
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
backgroundColor: theme.palette.grey[50],
|
|
289
|
+
":focus": {
|
|
290
|
+
backgroundColor: theme.palette.grey[300],
|
|
312
291
|
},
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
292
|
+
}),
|
|
293
|
+
},
|
|
294
|
+
},
|
|
295
|
+
MuiAlert: {
|
|
296
|
+
styleOverrides: {
|
|
297
|
+
icon: {
|
|
298
|
+
alignSelf: "center",
|
|
299
|
+
},
|
|
300
|
+
standardWarning: ({ theme }) => ({
|
|
301
|
+
" .MuiAlert-icon": {
|
|
302
|
+
color: theme.palette.common.black,
|
|
318
303
|
},
|
|
319
|
-
|
|
320
|
-
|
|
304
|
+
}),
|
|
305
|
+
standardInfo: ({ theme }) => ({
|
|
306
|
+
backgroundColor: alpha(theme.palette.blue[500], 0.1),
|
|
307
|
+
" .MuiAlert-icon": {
|
|
308
|
+
color: theme.palette.info.main,
|
|
321
309
|
},
|
|
322
|
-
|
|
323
|
-
|
|
310
|
+
}),
|
|
311
|
+
standardError: ({ theme }) => ({
|
|
312
|
+
backgroundColor: alpha(theme.palette.error.main, 0.1),
|
|
313
|
+
" .MuiAlert-icon": {
|
|
314
|
+
color: theme.palette.error.main,
|
|
324
315
|
},
|
|
325
|
-
},
|
|
316
|
+
}),
|
|
326
317
|
},
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
318
|
+
},
|
|
319
|
+
MuiDataGrid: {
|
|
320
|
+
styleOverrides: {
|
|
321
|
+
root: ({ theme }) => ({
|
|
322
|
+
borderColor: theme.palette.border,
|
|
323
|
+
borderRadius: "8px",
|
|
324
|
+
}),
|
|
325
|
+
cell: ({ theme }) => ({
|
|
326
|
+
borderColor: theme.palette.border,
|
|
327
|
+
padding: "0 16px",
|
|
328
|
+
"&:focus": {
|
|
329
|
+
outline: "none",
|
|
330
|
+
},
|
|
331
|
+
}),
|
|
332
|
+
columnHeaders: ({ theme }) => ({
|
|
333
|
+
borderColor: theme.palette.border,
|
|
334
|
+
backgroundColor: theme.palette.grey[50],
|
|
335
|
+
}),
|
|
336
|
+
columnHeader: {
|
|
337
|
+
padding: "0 16px",
|
|
338
|
+
"&:focus": {
|
|
339
|
+
outline: "none",
|
|
340
|
+
},
|
|
341
|
+
},
|
|
342
|
+
columnHeaderTitle: {
|
|
343
|
+
fontWeight: 600,
|
|
344
|
+
},
|
|
345
|
+
columnSeparator: {
|
|
346
|
+
visibility: "hidden",
|
|
332
347
|
},
|
|
333
348
|
},
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
349
|
+
},
|
|
350
|
+
MuiFab: {
|
|
351
|
+
styleOverrides: {
|
|
352
|
+
root: {
|
|
353
|
+
boxShadow: "none",
|
|
339
354
|
},
|
|
340
355
|
},
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
},
|
|
347
|
-
staticTooltipLabel: {
|
|
348
|
-
...theme.typography.body2,
|
|
349
|
-
fontWeight: 500,
|
|
350
|
-
color: theme.palette.common.white,
|
|
351
|
-
backgroundColor: "transparent",
|
|
352
|
-
whiteSpace: "nowrap",
|
|
353
|
-
boxShadow: "none",
|
|
354
|
-
paddingRight: 0,
|
|
355
|
-
},
|
|
356
|
+
},
|
|
357
|
+
MuiSpeedDial: {
|
|
358
|
+
styleOverrides: {
|
|
359
|
+
actions: {
|
|
360
|
+
paddingTop: "38px !important",
|
|
356
361
|
},
|
|
357
362
|
},
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
363
|
+
},
|
|
364
|
+
MuiSpeedDialAction: {
|
|
365
|
+
styleOverrides: {
|
|
366
|
+
fab: {
|
|
367
|
+
marginTop: "6px",
|
|
368
|
+
marginBottom: "6px",
|
|
369
|
+
},
|
|
370
|
+
staticTooltipLabel: ({ theme }) => ({
|
|
371
|
+
...theme.typography.body2,
|
|
372
|
+
fontWeight: 500,
|
|
373
|
+
color: theme.palette.common.white,
|
|
374
|
+
backgroundColor: "transparent",
|
|
375
|
+
whiteSpace: "nowrap",
|
|
376
|
+
boxShadow: "none",
|
|
377
|
+
paddingRight: 0,
|
|
378
|
+
}),
|
|
379
|
+
},
|
|
380
|
+
},
|
|
381
|
+
MuiListItemButton: {
|
|
382
|
+
styleOverrides: {
|
|
383
|
+
divider: ({ theme }) => ({
|
|
384
|
+
borderColor: theme.palette.border,
|
|
385
|
+
}),
|
|
386
|
+
},
|
|
387
|
+
},
|
|
388
|
+
MuiLink: {
|
|
389
|
+
styleOverrides: {
|
|
390
|
+
root: ({ theme }) => ({
|
|
391
|
+
color: theme.palette.info.dark,
|
|
392
|
+
textDecorationColor: theme.palette.info.main,
|
|
393
|
+
"&:hover": {
|
|
394
|
+
textDecorationColor: theme.palette.info.dark,
|
|
362
395
|
},
|
|
396
|
+
}),
|
|
397
|
+
},
|
|
398
|
+
defaultProps: {
|
|
399
|
+
underline: "hover",
|
|
400
|
+
},
|
|
401
|
+
},
|
|
402
|
+
MuiTooltip: {
|
|
403
|
+
styleOverrides: {
|
|
404
|
+
popper: {
|
|
405
|
+
maxWidth: "240px",
|
|
363
406
|
},
|
|
407
|
+
tooltip: ({ theme }) => ({
|
|
408
|
+
...theme.typography.body3,
|
|
409
|
+
}),
|
|
364
410
|
},
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
411
|
+
},
|
|
412
|
+
MuiTreeItem: {
|
|
413
|
+
styleOverrides: {
|
|
414
|
+
root: ({ theme }) => ({
|
|
415
|
+
color: theme.palette.text.disabled,
|
|
416
|
+
svg: {
|
|
417
|
+
color: theme.palette.action.active,
|
|
418
|
+
},
|
|
419
|
+
}),
|
|
420
|
+
content: ({ theme }) => ({
|
|
421
|
+
paddingTop: "6px",
|
|
422
|
+
paddingBottom: "6px",
|
|
423
|
+
paddingLeft: 0,
|
|
424
|
+
paddingRight: "12px",
|
|
425
|
+
borderRadius: 4,
|
|
426
|
+
width: "unset",
|
|
427
|
+
"&.Mui-focused:hover": {
|
|
428
|
+
background: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
|
|
429
|
+
},
|
|
430
|
+
"&.Mui-selected, &.Mui-selected:hover, &.Mui-selected.Mui-focused": {
|
|
431
|
+
background: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
|
|
432
|
+
" .MuiTreeItem-label .MuiSvgIcon-root": {
|
|
433
|
+
color: theme.palette.primary.main,
|
|
434
|
+
},
|
|
435
|
+
" .MuiTypography-root": {
|
|
436
|
+
color: theme.palette.primary.main,
|
|
372
437
|
},
|
|
373
438
|
},
|
|
439
|
+
}),
|
|
440
|
+
label: {
|
|
441
|
+
paddingLeft: "0",
|
|
374
442
|
},
|
|
375
|
-
|
|
376
|
-
|
|
443
|
+
iconContainer: {
|
|
444
|
+
marginRight: "0",
|
|
445
|
+
width: "24px",
|
|
446
|
+
svg: {
|
|
447
|
+
fontSize: "24px",
|
|
448
|
+
},
|
|
377
449
|
},
|
|
378
450
|
},
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
},
|
|
451
|
+
},
|
|
452
|
+
MuiCssBaseline: {
|
|
453
|
+
styleOverrides: {
|
|
454
|
+
body: {
|
|
455
|
+
"&::-webkit-scrollbar, & *::-webkit-scrollbar": {
|
|
456
|
+
width: "8px",
|
|
457
|
+
height: "8px",
|
|
458
|
+
},
|
|
459
|
+
"&::-webkit-scrollbar-track-piece, & *::-webkit-scrollbar-track-piece": ({ theme }) => ({
|
|
460
|
+
backgroundColor: theme.palette.grey[100],
|
|
461
|
+
borderRadius: "4px",
|
|
462
|
+
}),
|
|
463
|
+
"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb": ({ theme, }) => ({
|
|
464
|
+
backgroundColor: theme.palette.grey[300],
|
|
465
|
+
borderRadius: "4px",
|
|
466
|
+
}),
|
|
387
467
|
},
|
|
388
468
|
},
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
469
|
+
},
|
|
470
|
+
MuiDivider: {
|
|
471
|
+
styleOverrides: {
|
|
472
|
+
root: ({ theme }) => ({
|
|
473
|
+
borderColor: theme.palette.border,
|
|
474
|
+
}),
|
|
475
|
+
},
|
|
476
|
+
},
|
|
477
|
+
MuiListItem: {
|
|
478
|
+
styleOverrides: {
|
|
479
|
+
root: ({ theme }) => ({
|
|
480
|
+
color: theme.palette.text.secondary,
|
|
481
|
+
"&.Mui-selected": {
|
|
482
|
+
backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
|
|
483
|
+
color: theme.palette.primary.main,
|
|
484
|
+
svg: {
|
|
485
|
+
color: theme.palette.primary.main,
|
|
406
486
|
},
|
|
407
487
|
},
|
|
408
|
-
|
|
409
|
-
|
|
488
|
+
}),
|
|
489
|
+
},
|
|
490
|
+
},
|
|
491
|
+
MuiScopedCssBaseline: {
|
|
492
|
+
styleOverrides: {
|
|
493
|
+
root: ({ theme }) => ({
|
|
494
|
+
"&::-webkit-scrollbar, & *::-webkit-scrollbar": {
|
|
495
|
+
width: "8px",
|
|
496
|
+
height: "8px",
|
|
497
|
+
},
|
|
498
|
+
"&::-webkit-scrollbar-track-piece, & *::-webkit-scrollbar-track-piece": {
|
|
499
|
+
backgroundColor: theme.palette.grey[800],
|
|
500
|
+
borderRadius: "4px",
|
|
410
501
|
},
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
svg: {
|
|
415
|
-
fontSize: "24px",
|
|
416
|
-
},
|
|
502
|
+
"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb": {
|
|
503
|
+
backgroundColor: theme.palette.grey[700],
|
|
504
|
+
borderRadius: "4px",
|
|
417
505
|
},
|
|
418
|
-
},
|
|
506
|
+
}),
|
|
419
507
|
},
|
|
420
|
-
|
|
508
|
+
},
|
|
509
|
+
};
|
|
510
|
+
export let theme = createTheme({
|
|
511
|
+
typography,
|
|
512
|
+
palette: {
|
|
513
|
+
mode: "light",
|
|
514
|
+
...lightThemePalette,
|
|
515
|
+
},
|
|
516
|
+
components,
|
|
517
|
+
});
|
|
518
|
+
export let darkTheme = createTheme(theme, {
|
|
519
|
+
palette: {
|
|
520
|
+
mode: "dark",
|
|
521
|
+
...darkThemePalette,
|
|
522
|
+
},
|
|
523
|
+
components: {
|
|
524
|
+
MuiIconButton: {
|
|
421
525
|
styleOverrides: {
|
|
422
|
-
|
|
423
|
-
"
|
|
424
|
-
|
|
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",
|
|
526
|
+
root: {
|
|
527
|
+
"&:hover": {
|
|
528
|
+
backgroundColor: theme.palette.grey[800],
|
|
434
529
|
},
|
|
435
530
|
},
|
|
436
531
|
},
|
|
437
532
|
},
|
|
438
|
-
MuiDivider: {
|
|
439
|
-
styleOverrides: {
|
|
440
|
-
root: {
|
|
441
|
-
borderColor: theme.palette.border
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
533
|
},
|
|
446
534
|
});
|
|
447
|
-
export default theme;
|