@iobroker/gui-components 10.0.5 → 10.0.7
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/README.md +9 -1
- package/build/Components/ToggleThemeMenu.js +5 -2
- package/build/Components/ToggleThemeMenu.js.map +1 -1
- package/build/Components/Utils.js +13 -11
- package/build/Components/Utils.js.map +1 -1
- package/build/Theme.d.ts +35 -1
- package/build/Theme.js +12 -3
- package/build/Theme.js.map +1 -1
- package/build/ThemeModern.d.ts +53 -0
- package/build/ThemeModern.js +586 -0
- package/build/ThemeModern.js.map +1 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/index.js.map +1 -1
- package/build/types.d.ts +13 -1
- package/package.json +7 -7
|
@@ -0,0 +1,586 @@
|
|
|
1
|
+
import { alpha } from '@mui/material/styles';
|
|
2
|
+
export const MODERN_DARK = {
|
|
3
|
+
background: '#0A121D',
|
|
4
|
+
paper: '#121A26',
|
|
5
|
+
sidebar: '#141C29',
|
|
6
|
+
elevated: '#1A2434',
|
|
7
|
+
border: '#1E2837',
|
|
8
|
+
cardBorder: '#1B2533',
|
|
9
|
+
textPrimary: '#E8EDF5',
|
|
10
|
+
textSecondary: '#8B97A8',
|
|
11
|
+
textDisabled: '#586576',
|
|
12
|
+
primary: '#137BF8',
|
|
13
|
+
primaryDark: '#0B62D6',
|
|
14
|
+
primaryLight: '#4B9BFA',
|
|
15
|
+
secondary: '#436A93',
|
|
16
|
+
gradient: 'linear-gradient(90deg, #2E93F9 0%, #0B76F5 100%)',
|
|
17
|
+
gradientHover: 'linear-gradient(90deg, #48A1FA 0%, #1B84F8 100%)',
|
|
18
|
+
success: '#2EA043',
|
|
19
|
+
warning: '#E8A33D',
|
|
20
|
+
error: '#E5534B',
|
|
21
|
+
info: '#3FA9F5',
|
|
22
|
+
expert: '#2EA043',
|
|
23
|
+
nonAck: '#E5534B',
|
|
24
|
+
hover: 'rgba(255, 255, 255, 0.05)',
|
|
25
|
+
selected: 'rgba(19, 123, 248, 0.16)',
|
|
26
|
+
};
|
|
27
|
+
export const MODERN_LIGHT = {
|
|
28
|
+
background: '#F4F7FB',
|
|
29
|
+
paper: '#FFFFFF',
|
|
30
|
+
sidebar: '#FFFFFF',
|
|
31
|
+
elevated: '#FFFFFF',
|
|
32
|
+
border: '#E2E8F0',
|
|
33
|
+
cardBorder: '#E2E8F0',
|
|
34
|
+
textPrimary: '#101827',
|
|
35
|
+
textSecondary: '#5B6878',
|
|
36
|
+
textDisabled: '#98A4B3',
|
|
37
|
+
primary: '#137BF8',
|
|
38
|
+
primaryDark: '#0B62D6',
|
|
39
|
+
primaryLight: '#4B9BFA',
|
|
40
|
+
secondary: '#164477',
|
|
41
|
+
gradient: 'linear-gradient(90deg, #2E93F9 0%, #0B76F5 100%)',
|
|
42
|
+
gradientHover: 'linear-gradient(90deg, #48A1FA 0%, #1B84F8 100%)',
|
|
43
|
+
success: '#1E8E3E',
|
|
44
|
+
warning: '#C77700',
|
|
45
|
+
error: '#D93025',
|
|
46
|
+
info: '#0B72D9',
|
|
47
|
+
expert: '#1E8E3E',
|
|
48
|
+
nonAck: '#D93025',
|
|
49
|
+
hover: 'rgba(16, 24, 39, 0.04)',
|
|
50
|
+
selected: 'rgba(19, 123, 248, 0.10)',
|
|
51
|
+
};
|
|
52
|
+
const FONT_FAMILY = '"Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif';
|
|
53
|
+
/** Height of the app bar. Used for `MuiToolbar` and for `mixins.toolbar` - the two must not drift apart */
|
|
54
|
+
const TOOLBAR_HEIGHT = 52;
|
|
55
|
+
/**
|
|
56
|
+
* Build the 25 MUI shadows. The default MUI shadows are too heavy for this design,
|
|
57
|
+
* so they are replaced by a soft two-layer shadow.
|
|
58
|
+
*/
|
|
59
|
+
function buildShadows(type) {
|
|
60
|
+
const rgb = type === 'dark' ? '0, 0, 0' : '15, 23, 42';
|
|
61
|
+
const nearOpacity = type === 'dark' ? 0.24 : 0.04;
|
|
62
|
+
const farOpacity = type === 'dark' ? 0.36 : 0.08;
|
|
63
|
+
const shadows = ['none'];
|
|
64
|
+
for (let i = 1; i <= 24; i++) {
|
|
65
|
+
const y = Math.round(1 + i * 0.7);
|
|
66
|
+
const blur = Math.round(2 + i * 1.6);
|
|
67
|
+
shadows.push(`0px ${Math.max(1, Math.round(y / 2))}px ${Math.max(2, Math.round(blur / 2))}px rgba(${rgb}, ${nearOpacity}), ` +
|
|
68
|
+
`0px ${y}px ${blur}px rgba(${rgb}, ${farOpacity})`);
|
|
69
|
+
}
|
|
70
|
+
return shadows;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Options and component overrides of the "modern" themes (`modernDark` and `modernLight`).
|
|
74
|
+
*/
|
|
75
|
+
export function getModernTheme(name, type) {
|
|
76
|
+
const t = type === 'dark' ? MODERN_DARK : MODERN_LIGHT;
|
|
77
|
+
const options = {
|
|
78
|
+
name,
|
|
79
|
+
shape: { borderRadius: 10 },
|
|
80
|
+
// The app bar is lower than in the MUI default. `mixins.toolbar` has to say so too: consumers
|
|
81
|
+
// (e.g. the admin) take the top margin of their content from it, and with MUI's 64px they
|
|
82
|
+
// would leave a gap below the bar.
|
|
83
|
+
mixins: {
|
|
84
|
+
toolbar: {
|
|
85
|
+
minHeight: TOOLBAR_HEIGHT,
|
|
86
|
+
'@media (min-width:0px) and (orientation: landscape)': { minHeight: TOOLBAR_HEIGHT },
|
|
87
|
+
'@media (min-width:600px)': { minHeight: TOOLBAR_HEIGHT },
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
shadows: buildShadows(type),
|
|
91
|
+
typography: {
|
|
92
|
+
fontFamily: FONT_FAMILY,
|
|
93
|
+
h1: { fontWeight: 700, letterSpacing: '-0.02em' },
|
|
94
|
+
h2: { fontWeight: 700, letterSpacing: '-0.02em' },
|
|
95
|
+
h3: { fontWeight: 600, letterSpacing: '-0.02em' },
|
|
96
|
+
h4: { fontWeight: 600, letterSpacing: '-0.01em' },
|
|
97
|
+
h5: { fontWeight: 600 },
|
|
98
|
+
h6: { fontWeight: 600, fontSize: '1.05rem' },
|
|
99
|
+
subtitle1: { fontWeight: 500 },
|
|
100
|
+
subtitle2: { fontWeight: 500 },
|
|
101
|
+
body2: { fontSize: '0.875rem' },
|
|
102
|
+
button: { fontWeight: 500, textTransform: 'none', letterSpacing: 0 },
|
|
103
|
+
caption: { fontSize: '0.75rem' },
|
|
104
|
+
},
|
|
105
|
+
palette: {
|
|
106
|
+
mode: type,
|
|
107
|
+
background: {
|
|
108
|
+
default: t.background,
|
|
109
|
+
paper: t.paper,
|
|
110
|
+
},
|
|
111
|
+
primary: {
|
|
112
|
+
main: t.primary,
|
|
113
|
+
dark: t.primaryDark,
|
|
114
|
+
light: t.primaryLight,
|
|
115
|
+
contrastText: '#FFFFFF',
|
|
116
|
+
},
|
|
117
|
+
secondary: {
|
|
118
|
+
main: t.secondary,
|
|
119
|
+
contrastText: '#FFFFFF',
|
|
120
|
+
},
|
|
121
|
+
success: { main: t.success },
|
|
122
|
+
warning: { main: t.warning },
|
|
123
|
+
error: { main: t.error },
|
|
124
|
+
info: { main: t.info },
|
|
125
|
+
divider: t.border,
|
|
126
|
+
text: {
|
|
127
|
+
primary: t.textPrimary,
|
|
128
|
+
secondary: t.textSecondary,
|
|
129
|
+
disabled: t.textDisabled,
|
|
130
|
+
},
|
|
131
|
+
action: {
|
|
132
|
+
hover: t.hover,
|
|
133
|
+
hoverOpacity: type === 'dark' ? 0.06 : 0.04,
|
|
134
|
+
selected: t.selected,
|
|
135
|
+
selectedOpacity: type === 'dark' ? 0.16 : 0.1,
|
|
136
|
+
},
|
|
137
|
+
expert: t.expert,
|
|
138
|
+
nonAck: t.nonAck,
|
|
139
|
+
},
|
|
140
|
+
toolbar: {
|
|
141
|
+
height: 52,
|
|
142
|
+
},
|
|
143
|
+
saveToolbar: {
|
|
144
|
+
background: t.primary,
|
|
145
|
+
button: {
|
|
146
|
+
borderRadius: 8,
|
|
147
|
+
height: 34,
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
};
|
|
151
|
+
const components = {
|
|
152
|
+
MuiCssBaseline: {
|
|
153
|
+
styleOverrides: {
|
|
154
|
+
body: {
|
|
155
|
+
backgroundColor: t.background,
|
|
156
|
+
color: t.textPrimary,
|
|
157
|
+
scrollbarColor: `${t.border} transparent`,
|
|
158
|
+
},
|
|
159
|
+
'*::-webkit-scrollbar': {
|
|
160
|
+
width: 10,
|
|
161
|
+
height: 10,
|
|
162
|
+
},
|
|
163
|
+
'*::-webkit-scrollbar-track': {
|
|
164
|
+
backgroundColor: 'transparent',
|
|
165
|
+
},
|
|
166
|
+
'*::-webkit-scrollbar-thumb': {
|
|
167
|
+
backgroundColor: t.border,
|
|
168
|
+
borderRadius: 8,
|
|
169
|
+
border: `2px solid ${t.background}`,
|
|
170
|
+
},
|
|
171
|
+
'*::-webkit-scrollbar-thumb:hover': {
|
|
172
|
+
backgroundColor: t.textDisabled,
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
MuiPaper: {
|
|
177
|
+
defaultProps: {
|
|
178
|
+
elevation: 0,
|
|
179
|
+
},
|
|
180
|
+
styleOverrides: {
|
|
181
|
+
root: {
|
|
182
|
+
// remove the MUI overlay gradient of the dark mode - the colors are defined explicitly
|
|
183
|
+
backgroundImage: 'none',
|
|
184
|
+
backgroundColor: t.paper,
|
|
185
|
+
},
|
|
186
|
+
outlined: {
|
|
187
|
+
border: `1px solid ${t.border}`,
|
|
188
|
+
},
|
|
189
|
+
rounded: {
|
|
190
|
+
borderRadius: 12,
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
MuiCard: {
|
|
195
|
+
defaultProps: {
|
|
196
|
+
elevation: 0,
|
|
197
|
+
},
|
|
198
|
+
styleOverrides: {
|
|
199
|
+
root: {
|
|
200
|
+
backgroundColor: t.paper,
|
|
201
|
+
border: `1px solid ${t.cardBorder}`,
|
|
202
|
+
borderRadius: 12,
|
|
203
|
+
backgroundImage: 'none',
|
|
204
|
+
boxShadow: type === 'dark' ? '0 1px 3px rgba(0, 0, 0, 0.4)' : '0 1px 2px rgba(15, 23, 42, 0.05)',
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
MuiCardHeader: {
|
|
209
|
+
styleOverrides: {
|
|
210
|
+
root: {
|
|
211
|
+
padding: '16px 20px 8px 20px',
|
|
212
|
+
},
|
|
213
|
+
title: {
|
|
214
|
+
fontSize: '1rem',
|
|
215
|
+
fontWeight: 600,
|
|
216
|
+
},
|
|
217
|
+
subheader: {
|
|
218
|
+
fontSize: '0.8125rem',
|
|
219
|
+
color: t.textSecondary,
|
|
220
|
+
},
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
MuiCardContent: {
|
|
224
|
+
styleOverrides: {
|
|
225
|
+
root: {
|
|
226
|
+
padding: 20,
|
|
227
|
+
'&:last-child': { paddingBottom: 20 },
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
MuiAppBar: {
|
|
232
|
+
defaultProps: {
|
|
233
|
+
elevation: 0,
|
|
234
|
+
color: 'default',
|
|
235
|
+
},
|
|
236
|
+
styleOverrides: {
|
|
237
|
+
root: {
|
|
238
|
+
backgroundColor: t.paper,
|
|
239
|
+
backgroundImage: 'none',
|
|
240
|
+
color: t.textPrimary,
|
|
241
|
+
// Drawn inside instead of as a border: a real border would add a pixel to the bar
|
|
242
|
+
// height, and the content below positions itself by `mixins.toolbar`.
|
|
243
|
+
boxShadow: `inset 0 -1px 0 ${t.border}`,
|
|
244
|
+
},
|
|
245
|
+
colorDefault: {
|
|
246
|
+
backgroundColor: t.paper,
|
|
247
|
+
},
|
|
248
|
+
colorPrimary: {
|
|
249
|
+
backgroundColor: t.paper,
|
|
250
|
+
color: t.textPrimary,
|
|
251
|
+
},
|
|
252
|
+
},
|
|
253
|
+
},
|
|
254
|
+
MuiToolbar: {
|
|
255
|
+
styleOverrides: {
|
|
256
|
+
root: {
|
|
257
|
+
minHeight: TOOLBAR_HEIGHT,
|
|
258
|
+
'@media (min-width: 600px)': { minHeight: TOOLBAR_HEIGHT },
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
},
|
|
262
|
+
MuiDrawer: {
|
|
263
|
+
styleOverrides: {
|
|
264
|
+
paper: {
|
|
265
|
+
backgroundColor: t.sidebar,
|
|
266
|
+
backgroundImage: 'none',
|
|
267
|
+
borderRight: `1px solid ${t.border}`,
|
|
268
|
+
},
|
|
269
|
+
},
|
|
270
|
+
},
|
|
271
|
+
MuiDivider: {
|
|
272
|
+
styleOverrides: {
|
|
273
|
+
root: {
|
|
274
|
+
borderColor: t.border,
|
|
275
|
+
},
|
|
276
|
+
},
|
|
277
|
+
},
|
|
278
|
+
MuiListItemButton: {
|
|
279
|
+
styleOverrides: {
|
|
280
|
+
root: {
|
|
281
|
+
borderRadius: 8,
|
|
282
|
+
paddingTop: 7,
|
|
283
|
+
paddingBottom: 7,
|
|
284
|
+
'&:hover': {
|
|
285
|
+
backgroundColor: t.hover,
|
|
286
|
+
},
|
|
287
|
+
'&.Mui-selected': {
|
|
288
|
+
// the active navigation item is filled with a gradient
|
|
289
|
+
background: t.gradient,
|
|
290
|
+
color: '#FFFFFF',
|
|
291
|
+
boxShadow: `0 2px 8px ${alpha(t.primary, type === 'dark' ? 0.35 : 0.25)}`,
|
|
292
|
+
'& .MuiListItemIcon-root': { color: '#FFFFFF' },
|
|
293
|
+
'&:hover': { background: t.gradientHover },
|
|
294
|
+
},
|
|
295
|
+
},
|
|
296
|
+
},
|
|
297
|
+
},
|
|
298
|
+
MuiListItemIcon: {
|
|
299
|
+
styleOverrides: {
|
|
300
|
+
root: {
|
|
301
|
+
color: t.textSecondary,
|
|
302
|
+
minWidth: 36,
|
|
303
|
+
},
|
|
304
|
+
},
|
|
305
|
+
},
|
|
306
|
+
MuiListItemText: {
|
|
307
|
+
styleOverrides: {
|
|
308
|
+
primary: {
|
|
309
|
+
fontSize: '0.9rem',
|
|
310
|
+
},
|
|
311
|
+
},
|
|
312
|
+
},
|
|
313
|
+
MuiMenu: {
|
|
314
|
+
styleOverrides: {
|
|
315
|
+
paper: {
|
|
316
|
+
backgroundColor: t.elevated,
|
|
317
|
+
backgroundImage: 'none',
|
|
318
|
+
border: `1px solid ${t.border}`,
|
|
319
|
+
borderRadius: 10,
|
|
320
|
+
},
|
|
321
|
+
list: {
|
|
322
|
+
padding: 6,
|
|
323
|
+
},
|
|
324
|
+
},
|
|
325
|
+
},
|
|
326
|
+
MuiMenuItem: {
|
|
327
|
+
styleOverrides: {
|
|
328
|
+
root: {
|
|
329
|
+
borderRadius: 6,
|
|
330
|
+
fontSize: '0.875rem',
|
|
331
|
+
'&.Mui-selected': {
|
|
332
|
+
backgroundColor: t.selected,
|
|
333
|
+
},
|
|
334
|
+
},
|
|
335
|
+
},
|
|
336
|
+
},
|
|
337
|
+
MuiPopover: {
|
|
338
|
+
styleOverrides: {
|
|
339
|
+
paper: {
|
|
340
|
+
backgroundColor: t.elevated,
|
|
341
|
+
backgroundImage: 'none',
|
|
342
|
+
border: `1px solid ${t.border}`,
|
|
343
|
+
borderRadius: 10,
|
|
344
|
+
},
|
|
345
|
+
},
|
|
346
|
+
},
|
|
347
|
+
MuiDialog: {
|
|
348
|
+
styleOverrides: {
|
|
349
|
+
paper: {
|
|
350
|
+
backgroundColor: t.elevated,
|
|
351
|
+
backgroundImage: 'none',
|
|
352
|
+
border: `1px solid ${t.border}`,
|
|
353
|
+
borderRadius: 14,
|
|
354
|
+
},
|
|
355
|
+
},
|
|
356
|
+
},
|
|
357
|
+
MuiDialogTitle: {
|
|
358
|
+
styleOverrides: {
|
|
359
|
+
root: {
|
|
360
|
+
fontSize: '1.05rem',
|
|
361
|
+
fontWeight: 600,
|
|
362
|
+
},
|
|
363
|
+
},
|
|
364
|
+
},
|
|
365
|
+
MuiButton: {
|
|
366
|
+
defaultProps: {
|
|
367
|
+
disableElevation: true,
|
|
368
|
+
},
|
|
369
|
+
styleOverrides: {
|
|
370
|
+
root: {
|
|
371
|
+
borderRadius: 8,
|
|
372
|
+
textTransform: 'none',
|
|
373
|
+
fontWeight: 500,
|
|
374
|
+
boxShadow: 'none',
|
|
375
|
+
'&:hover': { boxShadow: 'none' },
|
|
376
|
+
},
|
|
377
|
+
sizeSmall: {
|
|
378
|
+
borderRadius: 6,
|
|
379
|
+
},
|
|
380
|
+
outlined: {
|
|
381
|
+
borderColor: t.border,
|
|
382
|
+
},
|
|
383
|
+
},
|
|
384
|
+
},
|
|
385
|
+
MuiIconButton: {
|
|
386
|
+
styleOverrides: {
|
|
387
|
+
root: {
|
|
388
|
+
borderRadius: 8,
|
|
389
|
+
color: t.textSecondary,
|
|
390
|
+
'&:hover': { backgroundColor: t.hover, color: t.textPrimary },
|
|
391
|
+
},
|
|
392
|
+
},
|
|
393
|
+
},
|
|
394
|
+
MuiToggleButton: {
|
|
395
|
+
styleOverrides: {
|
|
396
|
+
root: {
|
|
397
|
+
borderRadius: 8,
|
|
398
|
+
borderColor: t.border,
|
|
399
|
+
textTransform: 'none',
|
|
400
|
+
'&.Mui-selected': {
|
|
401
|
+
backgroundColor: t.selected,
|
|
402
|
+
color: t.primaryLight,
|
|
403
|
+
},
|
|
404
|
+
},
|
|
405
|
+
},
|
|
406
|
+
},
|
|
407
|
+
MuiChip: {
|
|
408
|
+
styleOverrides: {
|
|
409
|
+
root: {
|
|
410
|
+
borderRadius: 6,
|
|
411
|
+
fontWeight: 500,
|
|
412
|
+
fontSize: '0.75rem',
|
|
413
|
+
},
|
|
414
|
+
sizeSmall: {
|
|
415
|
+
height: 22,
|
|
416
|
+
},
|
|
417
|
+
outlined: {
|
|
418
|
+
borderColor: t.border,
|
|
419
|
+
},
|
|
420
|
+
},
|
|
421
|
+
},
|
|
422
|
+
MuiTooltip: {
|
|
423
|
+
styleOverrides: {
|
|
424
|
+
tooltip: {
|
|
425
|
+
backgroundColor: type === 'dark' ? '#242C37' : '#1F2937',
|
|
426
|
+
border: type === 'dark' ? `1px solid ${t.border}` : undefined,
|
|
427
|
+
borderRadius: 8,
|
|
428
|
+
fontSize: '0.75rem',
|
|
429
|
+
padding: '6px 10px',
|
|
430
|
+
},
|
|
431
|
+
arrow: {
|
|
432
|
+
color: type === 'dark' ? '#242C37' : '#1F2937',
|
|
433
|
+
},
|
|
434
|
+
},
|
|
435
|
+
},
|
|
436
|
+
MuiOutlinedInput: {
|
|
437
|
+
styleOverrides: {
|
|
438
|
+
root: {
|
|
439
|
+
borderRadius: 8,
|
|
440
|
+
backgroundColor: type === 'dark' ? alpha('#FFFFFF', 0.03) : alpha('#0F172A', 0.02),
|
|
441
|
+
'& .MuiOutlinedInput-notchedOutline': { borderColor: t.border },
|
|
442
|
+
'&:hover .MuiOutlinedInput-notchedOutline': { borderColor: t.textDisabled },
|
|
443
|
+
},
|
|
444
|
+
input: {
|
|
445
|
+
padding: '10px 12px',
|
|
446
|
+
},
|
|
447
|
+
},
|
|
448
|
+
},
|
|
449
|
+
MuiInputBase: {
|
|
450
|
+
styleOverrides: {
|
|
451
|
+
root: {
|
|
452
|
+
fontSize: '0.875rem',
|
|
453
|
+
},
|
|
454
|
+
},
|
|
455
|
+
},
|
|
456
|
+
MuiInputLabel: {
|
|
457
|
+
styleOverrides: {
|
|
458
|
+
root: {
|
|
459
|
+
color: t.textSecondary,
|
|
460
|
+
},
|
|
461
|
+
},
|
|
462
|
+
},
|
|
463
|
+
MuiSelect: {
|
|
464
|
+
styleOverrides: {
|
|
465
|
+
select: {
|
|
466
|
+
fontSize: '0.875rem',
|
|
467
|
+
},
|
|
468
|
+
},
|
|
469
|
+
},
|
|
470
|
+
MuiTabs: {
|
|
471
|
+
styleOverrides: {
|
|
472
|
+
root: {
|
|
473
|
+
minHeight: 42,
|
|
474
|
+
borderBottom: `1px solid ${t.border}`,
|
|
475
|
+
},
|
|
476
|
+
indicator: {
|
|
477
|
+
height: 2,
|
|
478
|
+
borderRadius: 2,
|
|
479
|
+
},
|
|
480
|
+
},
|
|
481
|
+
},
|
|
482
|
+
MuiTab: {
|
|
483
|
+
styleOverrides: {
|
|
484
|
+
root: {
|
|
485
|
+
minHeight: 42,
|
|
486
|
+
textTransform: 'none',
|
|
487
|
+
fontWeight: 500,
|
|
488
|
+
fontSize: '0.8125rem',
|
|
489
|
+
letterSpacing: '0.02em',
|
|
490
|
+
color: t.textSecondary,
|
|
491
|
+
'&.Mui-selected': { color: t.primaryLight },
|
|
492
|
+
},
|
|
493
|
+
},
|
|
494
|
+
},
|
|
495
|
+
MuiTable: {
|
|
496
|
+
styleOverrides: {
|
|
497
|
+
root: {
|
|
498
|
+
borderCollapse: 'separate',
|
|
499
|
+
},
|
|
500
|
+
},
|
|
501
|
+
},
|
|
502
|
+
MuiTableCell: {
|
|
503
|
+
styleOverrides: {
|
|
504
|
+
root: {
|
|
505
|
+
borderBottom: `1px solid ${t.border}`,
|
|
506
|
+
fontSize: '0.8125rem',
|
|
507
|
+
padding: '10px 14px',
|
|
508
|
+
},
|
|
509
|
+
head: {
|
|
510
|
+
color: t.textSecondary,
|
|
511
|
+
fontWeight: 600,
|
|
512
|
+
fontSize: '0.75rem',
|
|
513
|
+
backgroundColor: t.paper,
|
|
514
|
+
},
|
|
515
|
+
},
|
|
516
|
+
},
|
|
517
|
+
MuiTableRow: {
|
|
518
|
+
styleOverrides: {
|
|
519
|
+
root: {
|
|
520
|
+
'&:hover': { backgroundColor: t.hover },
|
|
521
|
+
'&.Mui-selected': {
|
|
522
|
+
backgroundColor: t.selected,
|
|
523
|
+
'&:hover': { backgroundColor: t.selected },
|
|
524
|
+
},
|
|
525
|
+
},
|
|
526
|
+
},
|
|
527
|
+
},
|
|
528
|
+
MuiLinearProgress: {
|
|
529
|
+
styleOverrides: {
|
|
530
|
+
root: {
|
|
531
|
+
height: 6,
|
|
532
|
+
borderRadius: 4,
|
|
533
|
+
backgroundColor: type === 'dark' ? alpha('#FFFFFF', 0.08) : alpha('#0F172A', 0.08),
|
|
534
|
+
},
|
|
535
|
+
bar: {
|
|
536
|
+
borderRadius: 4,
|
|
537
|
+
},
|
|
538
|
+
},
|
|
539
|
+
},
|
|
540
|
+
MuiSwitch: {
|
|
541
|
+
styleOverrides: {
|
|
542
|
+
track: {
|
|
543
|
+
borderRadius: 12,
|
|
544
|
+
},
|
|
545
|
+
},
|
|
546
|
+
},
|
|
547
|
+
MuiCheckbox: {
|
|
548
|
+
styleOverrides: {
|
|
549
|
+
root: {
|
|
550
|
+
color: t.textDisabled,
|
|
551
|
+
},
|
|
552
|
+
},
|
|
553
|
+
},
|
|
554
|
+
MuiAlert: {
|
|
555
|
+
styleOverrides: {
|
|
556
|
+
root: {
|
|
557
|
+
borderRadius: 10,
|
|
558
|
+
border: `1px solid ${t.border}`,
|
|
559
|
+
},
|
|
560
|
+
},
|
|
561
|
+
},
|
|
562
|
+
MuiAccordion: {
|
|
563
|
+
styleOverrides: {
|
|
564
|
+
root: {
|
|
565
|
+
backgroundColor: t.paper,
|
|
566
|
+
backgroundImage: 'none',
|
|
567
|
+
border: `1px solid ${t.border}`,
|
|
568
|
+
borderRadius: 10,
|
|
569
|
+
'&::before': { display: 'none' },
|
|
570
|
+
},
|
|
571
|
+
},
|
|
572
|
+
},
|
|
573
|
+
MuiLink: {
|
|
574
|
+
styleOverrides: {
|
|
575
|
+
root: {
|
|
576
|
+
color: t.primaryLight,
|
|
577
|
+
textDecorationColor: alpha(t.primaryLight, 0.4),
|
|
578
|
+
transition: 'color .2s ease',
|
|
579
|
+
'&:hover': { color: t.primary },
|
|
580
|
+
},
|
|
581
|
+
},
|
|
582
|
+
},
|
|
583
|
+
};
|
|
584
|
+
return { options, components };
|
|
585
|
+
}
|
|
586
|
+
//# sourceMappingURL=ThemeModern.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeModern.js","sourceRoot":"./src/","sources":["ThemeModern.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAgB,MAAM,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;oBACF,eAAe,EAAE,CAAC,CAAC,KAAK;oBACxB,eAAe,EAAE,MAAM;oBACvB,MAAM,EAAE,aAAa,CAAC,CAAC,MAAM,EAAE;oBAC/B,YAAY,EAAE,EAAE;oBAChB,WAAW,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;iBACnC;aACJ;SACJ;QACD,OAAO,EAAE;YACL,cAAc,EAAE;gBACZ,IAAI,EAAE;oBACF,KAAK,EAAE,CAAC,CAAC,YAAY;oBACrB,mBAAmB,EAAE,KAAK,CAAC,CAAC,CAAC,YAAY,EAAE,GAAG,CAAC;oBAC/C,UAAU,EAAE,gBAAgB;oBAC5B,SAAS,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE;iBAClC;aACJ;SACJ;KACJ,CAAC;IAEF,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AACnC,CAAC","sourcesContent":["import { alpha, type Shadows } from '@mui/material/styles';\n\nimport type { ThemeName, ThemeType } from './types';\nimport type { ThemeOptions } from './Theme';\n\n/**\n * Flat design tokens of the \"modern\" themes.\n * Everything that is used more than once in the theme definition below is listed here,\n * so a new variation can be created by copying this object only.\n */\nexport interface ModernTokens {\n /** Background of the page (behind the cards) */\n background: string;\n /** Background of cards, tables and dialogs */\n paper: string;\n /** Background of the left navigation */\n sidebar: string;\n /** Background of menus, popovers and dialogs (one step above `paper`) */\n elevated: string;\n /** Color of the dividers inside of the cards (table rows, lists) */\n border: string;\n /** Border of the cards. In the dark theme the cards are separated by the background, not by a border */\n cardBorder: string;\n textPrimary: string;\n textSecondary: string;\n textDisabled: string;\n primary: string;\n primaryDark: string;\n primaryLight: string;\n secondary: string;\n /** Background of the selected navigation item */\n gradient: string;\n /** Background of the selected navigation item if hovered */\n gradientHover: string;\n success: string;\n warning: string;\n error: string;\n info: string;\n /** Color of the expert-mode elements */\n expert: string;\n /** Color of the not acknowledged values in the object browser */\n nonAck: string;\n /** Background of the hovered rows and list items */\n hover: string;\n /** Background of the selected rows and list items */\n selected: string;\n}\n\nexport const MODERN_DARK: ModernTokens = {\n background: '#0A121D',\n paper: '#121A26',\n sidebar: '#141C29',\n elevated: '#1A2434',\n border: '#1E2837',\n cardBorder: '#1B2533',\n textPrimary: '#E8EDF5',\n textSecondary: '#8B97A8',\n textDisabled: '#586576',\n primary: '#137BF8',\n primaryDark: '#0B62D6',\n primaryLight: '#4B9BFA',\n secondary: '#436A93',\n gradient: 'linear-gradient(90deg, #2E93F9 0%, #0B76F5 100%)',\n gradientHover: 'linear-gradient(90deg, #48A1FA 0%, #1B84F8 100%)',\n success: '#2EA043',\n warning: '#E8A33D',\n error: '#E5534B',\n info: '#3FA9F5',\n expert: '#2EA043',\n nonAck: '#E5534B',\n hover: 'rgba(255, 255, 255, 0.05)',\n selected: 'rgba(19, 123, 248, 0.16)',\n};\n\nexport const MODERN_LIGHT: ModernTokens = {\n background: '#F4F7FB',\n paper: '#FFFFFF',\n sidebar: '#FFFFFF',\n elevated: '#FFFFFF',\n border: '#E2E8F0',\n cardBorder: '#E2E8F0',\n textPrimary: '#101827',\n textSecondary: '#5B6878',\n textDisabled: '#98A4B3',\n primary: '#137BF8',\n primaryDark: '#0B62D6',\n primaryLight: '#4B9BFA',\n secondary: '#164477',\n gradient: 'linear-gradient(90deg, #2E93F9 0%, #0B76F5 100%)',\n gradientHover: 'linear-gradient(90deg, #48A1FA 0%, #1B84F8 100%)',\n success: '#1E8E3E',\n warning: '#C77700',\n error: '#D93025',\n info: '#0B72D9',\n expert: '#1E8E3E',\n nonAck: '#D93025',\n hover: 'rgba(16, 24, 39, 0.04)',\n selected: 'rgba(19, 123, 248, 0.10)',\n};\n\nconst FONT_FAMILY = '\"Inter\", \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif';\n/** Height of the app bar. Used for `MuiToolbar` and for `mixins.toolbar` - the two must not drift apart */\nconst TOOLBAR_HEIGHT = 52;\n\n/**\n * Build the 25 MUI shadows. The default MUI shadows are too heavy for this design,\n * so they are replaced by a soft two-layer shadow.\n */\nfunction buildShadows(type: ThemeType): Shadows {\n const rgb = type === 'dark' ? '0, 0, 0' : '15, 23, 42';\n const nearOpacity = type === 'dark' ? 0.24 : 0.04;\n const farOpacity = type === 'dark' ? 0.36 : 0.08;\n\n const shadows: string[] = ['none'];\n for (let i = 1; i <= 24; i++) {\n const y = Math.round(1 + i * 0.7);\n const blur = Math.round(2 + i * 1.6);\n shadows.push(\n `0px ${Math.max(1, Math.round(y / 2))}px ${Math.max(2, Math.round(blur / 2))}px rgba(${rgb}, ${nearOpacity}), ` +\n `0px ${y}px ${blur}px rgba(${rgb}, ${farOpacity})`,\n );\n }\n\n return shadows as unknown as Shadows;\n}\n\n/**\n * Options and component overrides of the \"modern\" themes (`modernDark` and `modernLight`).\n */\nexport function getModernTheme(\n name: ThemeName,\n type: ThemeType,\n): { options: ThemeOptions; components: Record<string, any> } {\n const t: ModernTokens = type === 'dark' ? MODERN_DARK : MODERN_LIGHT;\n\n const options: ThemeOptions = {\n name,\n shape: { borderRadius: 10 },\n // The app bar is lower than in the MUI default. `mixins.toolbar` has to say so too: consumers\n // (e.g. the admin) take the top margin of their content from it, and with MUI's 64px they\n // would leave a gap below the bar.\n mixins: {\n toolbar: {\n minHeight: TOOLBAR_HEIGHT,\n '@media (min-width:0px) and (orientation: landscape)': { minHeight: TOOLBAR_HEIGHT },\n '@media (min-width:600px)': { minHeight: TOOLBAR_HEIGHT },\n },\n },\n shadows: buildShadows(type),\n typography: {\n fontFamily: FONT_FAMILY,\n h1: { fontWeight: 700, letterSpacing: '-0.02em' },\n h2: { fontWeight: 700, letterSpacing: '-0.02em' },\n h3: { fontWeight: 600, letterSpacing: '-0.02em' },\n h4: { fontWeight: 600, letterSpacing: '-0.01em' },\n h5: { fontWeight: 600 },\n h6: { fontWeight: 600, fontSize: '1.05rem' },\n subtitle1: { fontWeight: 500 },\n subtitle2: { fontWeight: 500 },\n body2: { fontSize: '0.875rem' },\n button: { fontWeight: 500, textTransform: 'none', letterSpacing: 0 },\n caption: { fontSize: '0.75rem' },\n },\n palette: {\n mode: type,\n background: {\n default: t.background,\n paper: t.paper,\n },\n primary: {\n main: t.primary,\n dark: t.primaryDark,\n light: t.primaryLight,\n contrastText: '#FFFFFF',\n },\n secondary: {\n main: t.secondary,\n contrastText: '#FFFFFF',\n },\n success: { main: t.success },\n warning: { main: t.warning },\n error: { main: t.error },\n info: { main: t.info },\n divider: t.border,\n text: {\n primary: t.textPrimary,\n secondary: t.textSecondary,\n disabled: t.textDisabled,\n },\n action: {\n hover: t.hover,\n hoverOpacity: type === 'dark' ? 0.06 : 0.04,\n selected: t.selected,\n selectedOpacity: type === 'dark' ? 0.16 : 0.1,\n },\n expert: t.expert,\n nonAck: t.nonAck,\n },\n toolbar: {\n height: 52,\n },\n saveToolbar: {\n background: t.primary,\n button: {\n borderRadius: 8,\n height: 34,\n },\n },\n };\n\n const components: Record<string, any> = {\n MuiCssBaseline: {\n styleOverrides: {\n body: {\n backgroundColor: t.background,\n color: t.textPrimary,\n scrollbarColor: `${t.border} transparent`,\n },\n '*::-webkit-scrollbar': {\n width: 10,\n height: 10,\n },\n '*::-webkit-scrollbar-track': {\n backgroundColor: 'transparent',\n },\n '*::-webkit-scrollbar-thumb': {\n backgroundColor: t.border,\n borderRadius: 8,\n border: `2px solid ${t.background}`,\n },\n '*::-webkit-scrollbar-thumb:hover': {\n backgroundColor: t.textDisabled,\n },\n },\n },\n MuiPaper: {\n defaultProps: {\n elevation: 0,\n },\n styleOverrides: {\n root: {\n // remove the MUI overlay gradient of the dark mode - the colors are defined explicitly\n backgroundImage: 'none',\n backgroundColor: t.paper,\n },\n outlined: {\n border: `1px solid ${t.border}`,\n },\n rounded: {\n borderRadius: 12,\n },\n },\n },\n MuiCard: {\n defaultProps: {\n elevation: 0,\n },\n styleOverrides: {\n root: {\n backgroundColor: t.paper,\n border: `1px solid ${t.cardBorder}`,\n borderRadius: 12,\n backgroundImage: 'none',\n boxShadow: type === 'dark' ? '0 1px 3px rgba(0, 0, 0, 0.4)' : '0 1px 2px rgba(15, 23, 42, 0.05)',\n },\n },\n },\n MuiCardHeader: {\n styleOverrides: {\n root: {\n padding: '16px 20px 8px 20px',\n },\n title: {\n fontSize: '1rem',\n fontWeight: 600,\n },\n subheader: {\n fontSize: '0.8125rem',\n color: t.textSecondary,\n },\n },\n },\n MuiCardContent: {\n styleOverrides: {\n root: {\n padding: 20,\n '&:last-child': { paddingBottom: 20 },\n },\n },\n },\n MuiAppBar: {\n defaultProps: {\n elevation: 0,\n color: 'default',\n },\n styleOverrides: {\n root: {\n backgroundColor: t.paper,\n backgroundImage: 'none',\n color: t.textPrimary,\n // Drawn inside instead of as a border: a real border would add a pixel to the bar\n // height, and the content below positions itself by `mixins.toolbar`.\n boxShadow: `inset 0 -1px 0 ${t.border}`,\n },\n colorDefault: {\n backgroundColor: t.paper,\n },\n colorPrimary: {\n backgroundColor: t.paper,\n color: t.textPrimary,\n },\n },\n },\n MuiToolbar: {\n styleOverrides: {\n root: {\n minHeight: TOOLBAR_HEIGHT,\n '@media (min-width: 600px)': { minHeight: TOOLBAR_HEIGHT },\n },\n },\n },\n MuiDrawer: {\n styleOverrides: {\n paper: {\n backgroundColor: t.sidebar,\n backgroundImage: 'none',\n borderRight: `1px solid ${t.border}`,\n },\n },\n },\n MuiDivider: {\n styleOverrides: {\n root: {\n borderColor: t.border,\n },\n },\n },\n MuiListItemButton: {\n styleOverrides: {\n root: {\n borderRadius: 8,\n paddingTop: 7,\n paddingBottom: 7,\n '&:hover': {\n backgroundColor: t.hover,\n },\n '&.Mui-selected': {\n // the active navigation item is filled with a gradient\n background: t.gradient,\n color: '#FFFFFF',\n boxShadow: `0 2px 8px ${alpha(t.primary, type === 'dark' ? 0.35 : 0.25)}`,\n '& .MuiListItemIcon-root': { color: '#FFFFFF' },\n '&:hover': { background: t.gradientHover },\n },\n },\n },\n },\n MuiListItemIcon: {\n styleOverrides: {\n root: {\n color: t.textSecondary,\n minWidth: 36,\n },\n },\n },\n MuiListItemText: {\n styleOverrides: {\n primary: {\n fontSize: '0.9rem',\n },\n },\n },\n MuiMenu: {\n styleOverrides: {\n paper: {\n backgroundColor: t.elevated,\n backgroundImage: 'none',\n border: `1px solid ${t.border}`,\n borderRadius: 10,\n },\n list: {\n padding: 6,\n },\n },\n },\n MuiMenuItem: {\n styleOverrides: {\n root: {\n borderRadius: 6,\n fontSize: '0.875rem',\n '&.Mui-selected': {\n backgroundColor: t.selected,\n },\n },\n },\n },\n MuiPopover: {\n styleOverrides: {\n paper: {\n backgroundColor: t.elevated,\n backgroundImage: 'none',\n border: `1px solid ${t.border}`,\n borderRadius: 10,\n },\n },\n },\n MuiDialog: {\n styleOverrides: {\n paper: {\n backgroundColor: t.elevated,\n backgroundImage: 'none',\n border: `1px solid ${t.border}`,\n borderRadius: 14,\n },\n },\n },\n MuiDialogTitle: {\n styleOverrides: {\n root: {\n fontSize: '1.05rem',\n fontWeight: 600,\n },\n },\n },\n MuiButton: {\n defaultProps: {\n disableElevation: true,\n },\n styleOverrides: {\n root: {\n borderRadius: 8,\n textTransform: 'none',\n fontWeight: 500,\n boxShadow: 'none',\n '&:hover': { boxShadow: 'none' },\n },\n sizeSmall: {\n borderRadius: 6,\n },\n outlined: {\n borderColor: t.border,\n },\n },\n },\n MuiIconButton: {\n styleOverrides: {\n root: {\n borderRadius: 8,\n color: t.textSecondary,\n '&:hover': { backgroundColor: t.hover, color: t.textPrimary },\n },\n },\n },\n MuiToggleButton: {\n styleOverrides: {\n root: {\n borderRadius: 8,\n borderColor: t.border,\n textTransform: 'none',\n '&.Mui-selected': {\n backgroundColor: t.selected,\n color: t.primaryLight,\n },\n },\n },\n },\n MuiChip: {\n styleOverrides: {\n root: {\n borderRadius: 6,\n fontWeight: 500,\n fontSize: '0.75rem',\n },\n sizeSmall: {\n height: 22,\n },\n outlined: {\n borderColor: t.border,\n },\n },\n },\n MuiTooltip: {\n styleOverrides: {\n tooltip: {\n backgroundColor: type === 'dark' ? '#242C37' : '#1F2937',\n border: type === 'dark' ? `1px solid ${t.border}` : undefined,\n borderRadius: 8,\n fontSize: '0.75rem',\n padding: '6px 10px',\n },\n arrow: {\n color: type === 'dark' ? '#242C37' : '#1F2937',\n },\n },\n },\n MuiOutlinedInput: {\n styleOverrides: {\n root: {\n borderRadius: 8,\n backgroundColor: type === 'dark' ? alpha('#FFFFFF', 0.03) : alpha('#0F172A', 0.02),\n '& .MuiOutlinedInput-notchedOutline': { borderColor: t.border },\n '&:hover .MuiOutlinedInput-notchedOutline': { borderColor: t.textDisabled },\n },\n input: {\n padding: '10px 12px',\n },\n },\n },\n MuiInputBase: {\n styleOverrides: {\n root: {\n fontSize: '0.875rem',\n },\n },\n },\n MuiInputLabel: {\n styleOverrides: {\n root: {\n color: t.textSecondary,\n },\n },\n },\n MuiSelect: {\n styleOverrides: {\n select: {\n fontSize: '0.875rem',\n },\n },\n },\n MuiTabs: {\n styleOverrides: {\n root: {\n minHeight: 42,\n borderBottom: `1px solid ${t.border}`,\n },\n indicator: {\n height: 2,\n borderRadius: 2,\n },\n },\n },\n MuiTab: {\n styleOverrides: {\n root: {\n minHeight: 42,\n textTransform: 'none',\n fontWeight: 500,\n fontSize: '0.8125rem',\n letterSpacing: '0.02em',\n color: t.textSecondary,\n '&.Mui-selected': { color: t.primaryLight },\n },\n },\n },\n MuiTable: {\n styleOverrides: {\n root: {\n borderCollapse: 'separate',\n },\n },\n },\n MuiTableCell: {\n styleOverrides: {\n root: {\n borderBottom: `1px solid ${t.border}`,\n fontSize: '0.8125rem',\n padding: '10px 14px',\n },\n head: {\n color: t.textSecondary,\n fontWeight: 600,\n fontSize: '0.75rem',\n backgroundColor: t.paper,\n },\n },\n },\n MuiTableRow: {\n styleOverrides: {\n root: {\n '&:hover': { backgroundColor: t.hover },\n '&.Mui-selected': {\n backgroundColor: t.selected,\n '&:hover': { backgroundColor: t.selected },\n },\n },\n },\n },\n MuiLinearProgress: {\n styleOverrides: {\n root: {\n height: 6,\n borderRadius: 4,\n backgroundColor: type === 'dark' ? alpha('#FFFFFF', 0.08) : alpha('#0F172A', 0.08),\n },\n bar: {\n borderRadius: 4,\n },\n },\n },\n MuiSwitch: {\n styleOverrides: {\n track: {\n borderRadius: 12,\n },\n },\n },\n MuiCheckbox: {\n styleOverrides: {\n root: {\n color: t.textDisabled,\n },\n },\n },\n MuiAlert: {\n styleOverrides: {\n root: {\n borderRadius: 10,\n border: `1px solid ${t.border}`,\n },\n },\n },\n MuiAccordion: {\n styleOverrides: {\n root: {\n backgroundColor: t.paper,\n backgroundImage: 'none',\n border: `1px solid ${t.border}`,\n borderRadius: 10,\n '&::before': { display: 'none' },\n },\n },\n },\n MuiLink: {\n styleOverrides: {\n root: {\n color: t.primaryLight,\n textDecorationColor: alpha(t.primaryLight, 0.4),\n transition: 'color .2s ease',\n '&:hover': { color: t.primary },\n },\n },\n },\n };\n\n return { options, components };\n}\n"]}
|
package/build/index.d.ts
CHANGED